@odoo/o-spreadsheet 17.3.0-alpha.6 → 17.3.0-alpha.9
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 +2960 -1526
- package/dist/o-spreadsheet.d.ts +307 -210
- package/dist/o-spreadsheet.esm.js +2961 -1527
- package/dist/o-spreadsheet.iife.js +2960 -1526
- package/dist/o-spreadsheet.iife.min.js +364 -346
- package/dist/o_spreadsheet.xml +180 -107
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2,6 +2,51 @@ import { ChartConfiguration } from 'chart.js';
|
|
|
2
2
|
import * as _odoo_owl from '@odoo/owl';
|
|
3
3
|
import { ComponentConstructor, Component } from '@odoo/owl';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* This is a generic event bus based on the Owl event bus.
|
|
7
|
+
* This bus however ensures type safety across events and subscription callbacks.
|
|
8
|
+
*/
|
|
9
|
+
declare class EventBus<Event extends {
|
|
10
|
+
type: string;
|
|
11
|
+
}> {
|
|
12
|
+
subscriptions: {
|
|
13
|
+
[eventType: string]: Subscription[];
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Add a listener for the 'eventType' events.
|
|
17
|
+
*
|
|
18
|
+
* Note that the 'owner' of this event can be anything, but will more likely
|
|
19
|
+
* be a component or a class. The idea is that the callback will be called with
|
|
20
|
+
* the proper owner bound.
|
|
21
|
+
*
|
|
22
|
+
* Also, the owner should be kind of unique. This will be used to remove the
|
|
23
|
+
* listener.
|
|
24
|
+
*/
|
|
25
|
+
on<T extends Event["type"], E extends Extract<Event, {
|
|
26
|
+
type: T;
|
|
27
|
+
}>>(type: T, owner: any, callback: (r: Omit<E, "type">) => void): void;
|
|
28
|
+
/**
|
|
29
|
+
* Emit an event of type 'eventType'. Any extra arguments will be passed to
|
|
30
|
+
* the listeners callback.
|
|
31
|
+
*/
|
|
32
|
+
trigger<T extends Event["type"], E extends Extract<Event, {
|
|
33
|
+
type: T;
|
|
34
|
+
}>>(type: T, payload?: Omit<E, "type">): void;
|
|
35
|
+
/**
|
|
36
|
+
* Remove a listener
|
|
37
|
+
*/
|
|
38
|
+
off<T extends Event["type"]>(eventType: T, owner: any): void;
|
|
39
|
+
/**
|
|
40
|
+
* Remove all subscriptions.
|
|
41
|
+
*/
|
|
42
|
+
clear(): void;
|
|
43
|
+
}
|
|
44
|
+
type Callback = (...args: any[]) => void;
|
|
45
|
+
interface Subscription {
|
|
46
|
+
owner: any;
|
|
47
|
+
callback: Callback;
|
|
48
|
+
}
|
|
49
|
+
|
|
5
50
|
/**
|
|
6
51
|
* An injectable store constructor
|
|
7
52
|
*/
|
|
@@ -22,14 +67,19 @@ type StoreParams<T extends StoreConstructor> = SkipFirst<ConstructorParameters<T
|
|
|
22
67
|
/**
|
|
23
68
|
* A function used to inject dependencies in a store constructor
|
|
24
69
|
*/
|
|
25
|
-
type Get = <T extends StoreConstructor
|
|
70
|
+
type Get = <T extends StoreConstructor>(Store: T) => T extends StoreConstructor<infer I> ? Store<I> : never;
|
|
26
71
|
/**
|
|
27
72
|
* Remove the first element of a tuple
|
|
28
73
|
* @example
|
|
29
74
|
* type A = SkipFirst<[number, string, boolean]> // [string, boolean]
|
|
30
75
|
*/
|
|
31
76
|
type SkipFirst<T extends any[]> = T extends [any, ...infer U] ? U : never;
|
|
32
|
-
type
|
|
77
|
+
type OmitFunctions<T> = {
|
|
78
|
+
[K in keyof T as T[K] extends Function ? never : K]: T[K];
|
|
79
|
+
};
|
|
80
|
+
type Store<S> = S extends {
|
|
81
|
+
mutators: readonly (keyof S)[];
|
|
82
|
+
} ? CQS<Pick<S, S["mutators"][number]> & OmitFunctions<S>> : CQS<OmitFunctions<S>>;
|
|
33
83
|
/**
|
|
34
84
|
* Command Query Separation [1,2] implementation with types.
|
|
35
85
|
*
|
|
@@ -49,20 +99,21 @@ type CQS<T> = {
|
|
|
49
99
|
* making it write-only.
|
|
50
100
|
*/
|
|
51
101
|
type NeverReturns<T> = T extends (...args: any[]) => any ? (...args: Parameters<T>) => void : T;
|
|
52
|
-
declare class
|
|
102
|
+
declare class DisposableStore implements Disposable {
|
|
53
103
|
protected get: Get;
|
|
54
|
-
constructor(get: Get);
|
|
55
|
-
}
|
|
56
|
-
declare class DisposableStore extends ReactiveStore implements Disposable {
|
|
57
104
|
private disposeCallbacks;
|
|
105
|
+
constructor(get: Get);
|
|
58
106
|
protected onDispose(callback: () => void): void;
|
|
59
107
|
dispose(): void;
|
|
60
108
|
}
|
|
61
109
|
|
|
110
|
+
interface StoreUpdateEvent {
|
|
111
|
+
type: "store-updated";
|
|
112
|
+
}
|
|
62
113
|
/**
|
|
63
114
|
* A type-safe dependency container
|
|
64
115
|
*/
|
|
65
|
-
declare class DependencyContainer {
|
|
116
|
+
declare class DependencyContainer extends EventBus<StoreUpdateEvent> {
|
|
66
117
|
private dependencies;
|
|
67
118
|
private factory;
|
|
68
119
|
/**
|
|
@@ -87,52 +138,7 @@ declare function useStoreProvider(): DependencyContainer;
|
|
|
87
138
|
* Get the instance of a store.
|
|
88
139
|
*/
|
|
89
140
|
declare function useStore<T extends StoreConstructor>(Store: T): Store<InstanceType<T>>;
|
|
90
|
-
declare function useLocalStore<T extends LocalStoreConstructor<any>>(Store: T, ...args: StoreParams<T>): Store<InstanceType<T>>;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* This is a generic event bus based on the Owl event bus.
|
|
94
|
-
* This bus however ensures type safety across events and subscription callbacks.
|
|
95
|
-
*/
|
|
96
|
-
declare class EventBus<Event extends {
|
|
97
|
-
type: string;
|
|
98
|
-
}> {
|
|
99
|
-
subscriptions: {
|
|
100
|
-
[eventType: string]: Subscription[];
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* Add a listener for the 'eventType' events.
|
|
104
|
-
*
|
|
105
|
-
* Note that the 'owner' of this event can be anything, but will more likely
|
|
106
|
-
* be a component or a class. The idea is that the callback will be called with
|
|
107
|
-
* the proper owner bound.
|
|
108
|
-
*
|
|
109
|
-
* Also, the owner should be kind of unique. This will be used to remove the
|
|
110
|
-
* listener.
|
|
111
|
-
*/
|
|
112
|
-
on<T extends Event["type"], E extends Extract<Event, {
|
|
113
|
-
type: T;
|
|
114
|
-
}>>(type: T, owner: any, callback: (r: Omit<E, "type">) => void): void;
|
|
115
|
-
/**
|
|
116
|
-
* Emit an event of type 'eventType'. Any extra arguments will be passed to
|
|
117
|
-
* the listeners callback.
|
|
118
|
-
*/
|
|
119
|
-
trigger<T extends Event["type"], E extends Extract<Event, {
|
|
120
|
-
type: T;
|
|
121
|
-
}>>(type: T, payload?: Omit<E, "type">): void;
|
|
122
|
-
/**
|
|
123
|
-
* Remove a listener
|
|
124
|
-
*/
|
|
125
|
-
off<T extends Event["type"]>(eventType: T, owner: any): void;
|
|
126
|
-
/**
|
|
127
|
-
* Remove all subscriptions.
|
|
128
|
-
*/
|
|
129
|
-
clear(): void;
|
|
130
|
-
}
|
|
131
|
-
type Callback = (...args: any[]) => void;
|
|
132
|
-
interface Subscription {
|
|
133
|
-
owner: any;
|
|
134
|
-
callback: Callback;
|
|
135
|
-
}
|
|
141
|
+
declare function useLocalStore<T extends LocalStoreConstructor<any>>(Store: T, ...args: StoreParams<T> extends never ? [] : StoreParams<T>): Store<InstanceType<T>>;
|
|
136
142
|
|
|
137
143
|
interface Figure {
|
|
138
144
|
id: UID;
|
|
@@ -387,7 +393,15 @@ interface ChartCreationContext {
|
|
|
387
393
|
readonly background?: string;
|
|
388
394
|
readonly auxiliaryRange?: string;
|
|
389
395
|
readonly aggregated?: boolean;
|
|
390
|
-
readonly
|
|
396
|
+
readonly stacked?: boolean;
|
|
397
|
+
readonly cumulative?: boolean;
|
|
398
|
+
readonly dataSetsHaveTitle?: boolean;
|
|
399
|
+
readonly labelsAsText?: boolean;
|
|
400
|
+
readonly showSubTotals?: boolean;
|
|
401
|
+
readonly showConnectorLines?: boolean;
|
|
402
|
+
readonly firstValueAsSubtotal?: boolean;
|
|
403
|
+
readonly verticalAxisPosition?: VerticalAxisPosition;
|
|
404
|
+
readonly legendPosition?: LegendPosition;
|
|
391
405
|
}
|
|
392
406
|
|
|
393
407
|
declare enum ClipboardMIMEType {
|
|
@@ -449,7 +463,7 @@ interface SearchOptions {
|
|
|
449
463
|
}
|
|
450
464
|
|
|
451
465
|
type Aggregator = "array_agg" | "count" | "count_distinct" | "bool_and" | "bool_or" | "max" | "min" | "avg" | "sum";
|
|
452
|
-
type Granularity = "day" | "week" | "month" | "quarter" | "year";
|
|
466
|
+
type Granularity = "day" | "week" | "month" | "quarter" | "year" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number" | "year_number";
|
|
453
467
|
interface PivotCoreDimension {
|
|
454
468
|
name: string;
|
|
455
469
|
order?: "asc" | "desc";
|
|
@@ -467,48 +481,54 @@ interface CommonPivotCoreDefinition {
|
|
|
467
481
|
}
|
|
468
482
|
interface SpreadsheetPivotCoreDefinition extends CommonPivotCoreDefinition {
|
|
469
483
|
type: "SPREADSHEET";
|
|
484
|
+
dataSet?: {
|
|
485
|
+
sheetId: UID;
|
|
486
|
+
zone: Zone;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
interface FakePivotDefinition extends CommonPivotCoreDefinition {
|
|
490
|
+
type: "FAKE";
|
|
470
491
|
}
|
|
471
|
-
type PivotCoreDefinition = SpreadsheetPivotCoreDefinition;
|
|
492
|
+
type PivotCoreDefinition = SpreadsheetPivotCoreDefinition | FakePivotDefinition;
|
|
493
|
+
type TechnicalName = string;
|
|
472
494
|
interface PivotField {
|
|
473
|
-
name:
|
|
495
|
+
name: TechnicalName;
|
|
474
496
|
type: string;
|
|
475
497
|
string: string;
|
|
476
|
-
relation?: string;
|
|
477
|
-
searchable?: boolean;
|
|
478
498
|
aggregator?: string;
|
|
479
|
-
store?: boolean;
|
|
480
|
-
groupable?: boolean;
|
|
481
499
|
help?: string;
|
|
482
500
|
}
|
|
483
|
-
type PivotFields = Record<
|
|
501
|
+
type PivotFields = Record<TechnicalName, PivotField | undefined>;
|
|
484
502
|
interface PivotMeasure extends PivotCoreMeasure {
|
|
485
503
|
nameWithAggregator: string;
|
|
486
504
|
displayName: string;
|
|
487
505
|
type: string;
|
|
506
|
+
isValid: boolean;
|
|
488
507
|
}
|
|
489
508
|
interface PivotDimension$1 extends PivotCoreDimension {
|
|
490
509
|
nameWithGranularity: string;
|
|
491
510
|
displayName: string;
|
|
492
511
|
type: string;
|
|
512
|
+
isValid: boolean;
|
|
493
513
|
}
|
|
494
|
-
interface
|
|
514
|
+
interface PivotTableColumn {
|
|
495
515
|
fields: string[];
|
|
496
516
|
values: string[];
|
|
497
517
|
width: number;
|
|
498
518
|
offset: number;
|
|
499
519
|
}
|
|
500
|
-
interface
|
|
520
|
+
interface PivotTableRow {
|
|
501
521
|
fields: string[];
|
|
502
522
|
values: string[];
|
|
503
523
|
indent: number;
|
|
504
524
|
}
|
|
505
|
-
interface
|
|
506
|
-
cols:
|
|
507
|
-
rows:
|
|
525
|
+
interface PivotTableData {
|
|
526
|
+
cols: PivotTableColumn[][];
|
|
527
|
+
rows: PivotTableRow[];
|
|
508
528
|
measures: string[];
|
|
509
529
|
rowTitle?: string;
|
|
510
530
|
}
|
|
511
|
-
interface
|
|
531
|
+
interface PivotTableCell {
|
|
512
532
|
isHeader: boolean;
|
|
513
533
|
domain?: string[];
|
|
514
534
|
content?: string;
|
|
@@ -520,6 +540,11 @@ interface PivotTimeAdapter<T> {
|
|
|
520
540
|
getFormat: (locale?: Locale) => Format | undefined;
|
|
521
541
|
toCellValue: (normalizedValue: T) => CellValue;
|
|
522
542
|
}
|
|
543
|
+
interface DomainArg {
|
|
544
|
+
field: string;
|
|
545
|
+
value: string;
|
|
546
|
+
}
|
|
547
|
+
type StringDomainArgs = string[];
|
|
523
548
|
|
|
524
549
|
interface Table {
|
|
525
550
|
readonly id: TableId;
|
|
@@ -636,11 +661,11 @@ interface ZoneDependentCommand {
|
|
|
636
661
|
}
|
|
637
662
|
declare function isZoneDependent(cmd: CoreCommand): boolean;
|
|
638
663
|
declare function isPositionDependent(cmd: CoreCommand): boolean;
|
|
639
|
-
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
640
|
-
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
641
|
-
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
642
|
-
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
643
|
-
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
664
|
+
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT">;
|
|
665
|
+
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT">;
|
|
666
|
+
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT">;
|
|
667
|
+
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT">;
|
|
668
|
+
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT">;
|
|
644
669
|
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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT">;
|
|
645
670
|
declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
|
|
646
671
|
declare function canExecuteInReadonly(cmd: Command): boolean;
|
|
@@ -894,7 +919,7 @@ interface UpdatePivotCommand {
|
|
|
894
919
|
interface InsertPivotCommand extends PositionDependentCommand {
|
|
895
920
|
type: "INSERT_PIVOT";
|
|
896
921
|
pivotId: UID;
|
|
897
|
-
table:
|
|
922
|
+
table: PivotTableData;
|
|
898
923
|
}
|
|
899
924
|
interface RenamePivotCommand {
|
|
900
925
|
type: "RENAME_PIVOT";
|
|
@@ -1156,13 +1181,15 @@ interface SplitTextIntoColumnsCommand {
|
|
|
1156
1181
|
addNewColumns: boolean;
|
|
1157
1182
|
force?: boolean;
|
|
1158
1183
|
}
|
|
1159
|
-
interface RenderCanvasCommand {
|
|
1160
|
-
type: "RENDER_CANVAS";
|
|
1161
|
-
}
|
|
1162
1184
|
interface RefreshPivotCommand {
|
|
1163
1185
|
type: "REFRESH_PIVOT";
|
|
1164
1186
|
id: UID;
|
|
1165
1187
|
}
|
|
1188
|
+
interface InsertNewPivotCommand {
|
|
1189
|
+
type: "INSERT_NEW_PIVOT";
|
|
1190
|
+
pivotId: UID;
|
|
1191
|
+
newSheetId: UID;
|
|
1192
|
+
}
|
|
1166
1193
|
type CoreCommand =
|
|
1167
1194
|
/** CELLS */
|
|
1168
1195
|
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
|
|
@@ -1194,7 +1221,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
1194
1221
|
| UpdateLocaleCommand
|
|
1195
1222
|
/** PIVOT */
|
|
1196
1223
|
| AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
|
|
1197
|
-
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 |
|
|
1224
|
+
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 | ResizeTableCommand | RefreshPivotCommand | InsertNewPivotCommand;
|
|
1198
1225
|
type Command = CoreCommand | LocalCommand;
|
|
1199
1226
|
/**
|
|
1200
1227
|
* Holds the result of a command dispatch.
|
|
@@ -1288,6 +1315,7 @@ declare const enum CommandResult {
|
|
|
1288
1315
|
Readonly = "Readonly",
|
|
1289
1316
|
InvalidViewportSize = "InvalidViewportSize",
|
|
1290
1317
|
InvalidScrollingDirection = "InvalidScrollingDirection",
|
|
1318
|
+
ViewportScrollLimitsReached = "ViewportScrollLimitsReached",
|
|
1291
1319
|
FigureDoesNotExist = "FigureDoesNotExist",
|
|
1292
1320
|
InvalidConditionalFormatId = "InvalidConditionalFormatId",
|
|
1293
1321
|
InvalidCellPopover = "InvalidCellPopover",
|
|
@@ -1621,7 +1649,6 @@ interface PixelPosition {
|
|
|
1621
1649
|
}
|
|
1622
1650
|
interface Merge extends Zone {
|
|
1623
1651
|
id: number;
|
|
1624
|
-
topLeft: Position$1;
|
|
1625
1652
|
}
|
|
1626
1653
|
interface Highlight$1 {
|
|
1627
1654
|
zone: Zone;
|
|
@@ -1633,6 +1660,7 @@ interface Highlight$1 {
|
|
|
1633
1660
|
/** transparency of the fill color (0-1) */
|
|
1634
1661
|
fillAlpha?: number;
|
|
1635
1662
|
noBorder?: boolean;
|
|
1663
|
+
dashed?: boolean;
|
|
1636
1664
|
}
|
|
1637
1665
|
interface PaneDivision {
|
|
1638
1666
|
/** Represents the number of frozen columns */
|
|
@@ -2231,6 +2259,7 @@ interface SpreadsheetChildEnv extends SpreadsheetEnv {
|
|
|
2231
2259
|
getStore: Get;
|
|
2232
2260
|
}
|
|
2233
2261
|
|
|
2262
|
+
type HistoryPath = [any, ...(number | string)[]];
|
|
2234
2263
|
declare class StateObserver {
|
|
2235
2264
|
private changes;
|
|
2236
2265
|
private commands;
|
|
@@ -2243,7 +2272,7 @@ declare class StateObserver {
|
|
|
2243
2272
|
commands: CoreCommand[];
|
|
2244
2273
|
};
|
|
2245
2274
|
addCommand(command: CoreCommand): void;
|
|
2246
|
-
addChange(...args: [...
|
|
2275
|
+
addChange(...args: [...HistoryPath, any]): void;
|
|
2247
2276
|
}
|
|
2248
2277
|
|
|
2249
2278
|
interface Validator {
|
|
@@ -2327,7 +2356,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
2327
2356
|
private getters;
|
|
2328
2357
|
private providers;
|
|
2329
2358
|
constructor(getters: CoreGetters);
|
|
2330
|
-
static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid"];
|
|
2359
|
+
static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
2331
2360
|
allowDispatch(cmd: Command): CommandResult;
|
|
2332
2361
|
beforeHandle(command: Command): void;
|
|
2333
2362
|
handle(cmd: Command): void;
|
|
@@ -2351,6 +2380,10 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
2351
2380
|
*/
|
|
2352
2381
|
addRangeProvider(provider: RangeProvider["adaptRanges"]): void;
|
|
2353
2382
|
createAdaptedRanges(ranges: Range[], offsetX: number, offsetY: number, sheetId: UID): Range[];
|
|
2383
|
+
/**
|
|
2384
|
+
* Remove the sheet name prefix if a range is part of the given sheet.
|
|
2385
|
+
*/
|
|
2386
|
+
removeRangesSheetPrefix(sheetId: UID, ranges: Range[]): Range[];
|
|
2354
2387
|
extendRange(range: Range, dimension: Dimension, quantity: number): Range;
|
|
2355
2388
|
/**
|
|
2356
2389
|
* Creates a range from a XC reference that can contain a sheet reference
|
|
@@ -2560,7 +2593,7 @@ interface CoreState$1 {
|
|
|
2560
2593
|
* cell and sheet content.
|
|
2561
2594
|
*/
|
|
2562
2595
|
declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1 {
|
|
2563
|
-
static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById"];
|
|
2596
|
+
static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById", "getFormulaMovedInSheet"];
|
|
2564
2597
|
readonly nextId = 1;
|
|
2565
2598
|
readonly cells: {
|
|
2566
2599
|
[sheetId: string]: {
|
|
@@ -2600,6 +2633,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
2600
2633
|
getCellById(cellId: UID): Cell | undefined;
|
|
2601
2634
|
private getFormulaCellContent;
|
|
2602
2635
|
getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, compiledFormula: RangeCompiledFormula): string;
|
|
2636
|
+
getFormulaMovedInSheet(targetSheetId: UID, compiledFormula: RangeCompiledFormula): string;
|
|
2603
2637
|
getCellStyle(position: CellPosition): Style;
|
|
2604
2638
|
/**
|
|
2605
2639
|
* Converts a zone to a XC coordinate system
|
|
@@ -3073,29 +3107,23 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
3073
3107
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
3074
3108
|
}
|
|
3075
3109
|
|
|
3076
|
-
interface
|
|
3077
|
-
|
|
3078
|
-
* The formula id is the id that is used in the formula to identify the pivot.
|
|
3079
|
-
* It's different from the pivot id, which is the id of the pivot in the state.
|
|
3080
|
-
* The formula id is a readable id, auto-incremented. The pivotId is a UID.
|
|
3081
|
-
* We need this distinction to be assured that the pivotId is unique in a
|
|
3082
|
-
* context of collaboration.
|
|
3083
|
-
*/
|
|
3110
|
+
interface Pivot$1 {
|
|
3111
|
+
definition: PivotCoreDefinition;
|
|
3084
3112
|
formulaId: string;
|
|
3085
3113
|
}
|
|
3086
3114
|
interface CoreState {
|
|
3087
3115
|
nextFormulaId: number;
|
|
3088
|
-
pivots: Record<UID,
|
|
3116
|
+
pivots: Record<UID, Pivot$1 | undefined>;
|
|
3089
3117
|
formulaIds: Record<UID, string | undefined>;
|
|
3090
3118
|
}
|
|
3091
3119
|
declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
|
|
3092
3120
|
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getPivotName", "isExistingPivot"];
|
|
3093
3121
|
readonly nextFormulaId: number;
|
|
3094
3122
|
readonly pivots: {
|
|
3095
|
-
[
|
|
3123
|
+
[pivotId: UID]: Pivot$1 | undefined;
|
|
3096
3124
|
};
|
|
3097
3125
|
readonly formulaIds: {
|
|
3098
|
-
[
|
|
3126
|
+
[formulaId: UID]: UID | undefined;
|
|
3099
3127
|
};
|
|
3100
3128
|
allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.NoChanges | CommandResult.PivotIdNotFound | CommandResult.EmptyName;
|
|
3101
3129
|
handle(cmd: CoreCommand): void;
|
|
@@ -3110,7 +3138,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
3110
3138
|
/**
|
|
3111
3139
|
* Get the pivot ID (UID) from the formula ID (the one used in the formula)
|
|
3112
3140
|
*/
|
|
3113
|
-
getPivotId(formulaId: string):
|
|
3141
|
+
getPivotId(formulaId: string): UID | undefined;
|
|
3114
3142
|
getPivotFormulaId(pivotId: UID): string;
|
|
3115
3143
|
getPivotIds(): UID[];
|
|
3116
3144
|
isExistingPivot(pivotId: UID): boolean;
|
|
@@ -3118,6 +3146,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
3118
3146
|
private insertPivot;
|
|
3119
3147
|
private resizeSheet;
|
|
3120
3148
|
private addPivotFormula;
|
|
3149
|
+
private getPivotCore;
|
|
3121
3150
|
/**
|
|
3122
3151
|
* Import the pivots
|
|
3123
3152
|
*/
|
|
@@ -3488,9 +3517,9 @@ interface SheetData {
|
|
|
3488
3517
|
interface WorkbookSettings {
|
|
3489
3518
|
locale: Locale;
|
|
3490
3519
|
}
|
|
3491
|
-
|
|
3520
|
+
type PivotData = {
|
|
3492
3521
|
formulaId: string;
|
|
3493
|
-
}
|
|
3522
|
+
} & PivotCoreDefinition;
|
|
3494
3523
|
interface WorkbookData {
|
|
3495
3524
|
version: number;
|
|
3496
3525
|
sheets: SheetData[];
|
|
@@ -3871,7 +3900,9 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3871
3900
|
/**
|
|
3872
3901
|
* Return the spread zone the position is part of, if any
|
|
3873
3902
|
*/
|
|
3874
|
-
getSpreadZone(position: CellPosition
|
|
3903
|
+
getSpreadZone(position: CellPosition, options?: {
|
|
3904
|
+
ignoreSpillError: boolean;
|
|
3905
|
+
}): Zone | undefined;
|
|
3875
3906
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
3876
3907
|
/**
|
|
3877
3908
|
* Check if a zone only contains empty cells
|
|
@@ -4070,6 +4101,8 @@ declare class PivotRuntimeDefinition {
|
|
|
4070
4101
|
readonly columns: PivotDimension$1[];
|
|
4071
4102
|
readonly rows: PivotDimension$1[];
|
|
4072
4103
|
constructor(definition: CommonPivotCoreDefinition, fields: PivotFields);
|
|
4104
|
+
getDimension(nameWithGranularity: string): PivotDimension$1;
|
|
4105
|
+
getMeasure(name: string): PivotMeasure;
|
|
4073
4106
|
}
|
|
4074
4107
|
|
|
4075
4108
|
/**
|
|
@@ -4115,20 +4148,20 @@ declare class PivotRuntimeDefinition {
|
|
|
4115
4148
|
*
|
|
4116
4149
|
*/
|
|
4117
4150
|
declare class SpreadsheetPivotTable {
|
|
4118
|
-
readonly columns:
|
|
4119
|
-
readonly rows:
|
|
4151
|
+
readonly columns: PivotTableColumn[][];
|
|
4152
|
+
readonly rows: PivotTableRow[];
|
|
4120
4153
|
readonly measures: string[];
|
|
4121
4154
|
readonly rowTitle?: string;
|
|
4122
4155
|
readonly maxIndent: number;
|
|
4123
4156
|
readonly pivotCells: {
|
|
4124
|
-
[key: string]:
|
|
4157
|
+
[key: string]: PivotTableCell[][];
|
|
4125
4158
|
};
|
|
4126
|
-
constructor(columns:
|
|
4159
|
+
constructor(columns: PivotTableColumn[][], rows: PivotTableRow[], measures: string[], rowTitle?: string);
|
|
4127
4160
|
/**
|
|
4128
4161
|
* Get the number of columns leafs (i.e. the number of the last row of columns)
|
|
4129
4162
|
*/
|
|
4130
4163
|
getNumberOfDataColumns(): number;
|
|
4131
|
-
getPivotCells(includeTotal?: boolean, includeColumnHeaders?: boolean):
|
|
4164
|
+
getPivotCells(includeTotal?: boolean, includeColumnHeaders?: boolean): PivotTableCell[][];
|
|
4132
4165
|
private isTotalRow;
|
|
4133
4166
|
private getPivotCell;
|
|
4134
4167
|
private getColHeaderDomain;
|
|
@@ -4136,32 +4169,34 @@ declare class SpreadsheetPivotTable {
|
|
|
4136
4169
|
private getColMeasure;
|
|
4137
4170
|
private getRowDomain;
|
|
4138
4171
|
export(): {
|
|
4139
|
-
cols:
|
|
4140
|
-
rows:
|
|
4172
|
+
cols: PivotTableColumn[][];
|
|
4173
|
+
rows: PivotTableRow[];
|
|
4141
4174
|
measures: string[];
|
|
4142
4175
|
rowTitle: string | undefined;
|
|
4143
4176
|
};
|
|
4144
4177
|
}
|
|
4145
4178
|
|
|
4179
|
+
interface InitPivotParams {
|
|
4180
|
+
reload?: boolean;
|
|
4181
|
+
}
|
|
4146
4182
|
interface Pivot<T = PivotRuntimeDefinition> {
|
|
4183
|
+
type: PivotCoreDefinition["type"];
|
|
4147
4184
|
definition: T;
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
getLastPivotGroupValue(domain: Array<string | number>): string | boolean | number;
|
|
4185
|
+
init(params?: InitPivotParams): void;
|
|
4186
|
+
isValid(): boolean;
|
|
4151
4187
|
getTableStructure(): SpreadsheetPivotTable;
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4188
|
+
getFields(): PivotFields | undefined;
|
|
4189
|
+
getPivotHeaderValueAndFormat(domain: StringDomainArgs): FPayload;
|
|
4190
|
+
getPivotCellValueAndFormat(measure: string, domain: StringDomainArgs): FPayload;
|
|
4191
|
+
getMeasure: (name: string) => PivotMeasure;
|
|
4155
4192
|
assertIsValid({ throwOnError }: {
|
|
4156
4193
|
throwOnError: boolean;
|
|
4157
4194
|
}): FPayload | undefined;
|
|
4158
|
-
load(params: unknown): Promise<void>;
|
|
4159
|
-
getFields(): PivotFields | undefined;
|
|
4160
|
-
isLoadedAndValid(): boolean;
|
|
4161
4195
|
getPossibleFieldValues(groupBy: string): {
|
|
4162
4196
|
value: string | boolean | number;
|
|
4163
4197
|
label: string;
|
|
4164
4198
|
}[];
|
|
4199
|
+
needsReevaluation: boolean;
|
|
4165
4200
|
}
|
|
4166
4201
|
|
|
4167
4202
|
declare class PivotUIPlugin extends UIPlugin {
|
|
@@ -4176,7 +4211,7 @@ declare class PivotUIPlugin extends UIPlugin {
|
|
|
4176
4211
|
* Get the id of the pivot at the given position. Returns undefined if there
|
|
4177
4212
|
* is no pivot at this position
|
|
4178
4213
|
*/
|
|
4179
|
-
getPivotIdFromPosition(position: CellPosition):
|
|
4214
|
+
getPivotIdFromPosition(position: CellPosition): "" | UID | undefined;
|
|
4180
4215
|
getFirstPivotFunction(tokens: Token[]): {
|
|
4181
4216
|
functionName: string;
|
|
4182
4217
|
args: (CellValue | Matrix<CellValue> | undefined)[];
|
|
@@ -4196,7 +4231,6 @@ declare class PivotUIPlugin extends UIPlugin {
|
|
|
4196
4231
|
*/
|
|
4197
4232
|
getPivotDomainArgsFromPosition(position: CellPosition): (CellValue | Matrix<CellValue> | undefined)[] | undefined;
|
|
4198
4233
|
getPivot(pivotId: UID): Pivot<PivotRuntimeDefinition>;
|
|
4199
|
-
getPivotDataSourceId(pivotId: UID): string;
|
|
4200
4234
|
isPivotUnused(pivotId: UID): boolean;
|
|
4201
4235
|
/**
|
|
4202
4236
|
* Check if the fields in the domain part of
|
|
@@ -4801,6 +4835,7 @@ declare class InternalViewport {
|
|
|
4801
4835
|
adjustPosition(position: Position$1): void;
|
|
4802
4836
|
private adjustPositionX;
|
|
4803
4837
|
private adjustPositionY;
|
|
4838
|
+
willNewOffsetScrollViewport(offsetX: Pixel, offsetY: Pixel): boolean;
|
|
4804
4839
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
4805
4840
|
adjustViewportZone(): void;
|
|
4806
4841
|
/**
|
|
@@ -4969,6 +5004,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
4969
5004
|
private checkPositiveDimension;
|
|
4970
5005
|
private checkValuesAreDifferent;
|
|
4971
5006
|
private checkScrollingDirection;
|
|
5007
|
+
private checkIfViewportsWillChange;
|
|
4972
5008
|
private getMainViewport;
|
|
4973
5009
|
private getMainInternalViewport;
|
|
4974
5010
|
/** gets rid of deprecated sheetIds */
|
|
@@ -5177,9 +5213,9 @@ interface CreateRevisionOptions {
|
|
|
5177
5213
|
pending?: boolean;
|
|
5178
5214
|
}
|
|
5179
5215
|
interface HistoryChange {
|
|
5180
|
-
|
|
5216
|
+
key: string;
|
|
5217
|
+
target: any;
|
|
5181
5218
|
before: any;
|
|
5182
|
-
after: any;
|
|
5183
5219
|
}
|
|
5184
5220
|
interface WorkbookHistory<Plugin> {
|
|
5185
5221
|
update<T extends keyof Plugin>(key: T, val: Plugin[T]): void;
|
|
@@ -5378,6 +5414,7 @@ declare class DateTime {
|
|
|
5378
5414
|
getHours(): number;
|
|
5379
5415
|
getMinutes(): number;
|
|
5380
5416
|
getSeconds(): number;
|
|
5417
|
+
getIsoWeek(): number;
|
|
5381
5418
|
setFullYear(year: number): number;
|
|
5382
5419
|
setMonth(month: number): number;
|
|
5383
5420
|
setDate(date: number): number;
|
|
@@ -5420,7 +5457,7 @@ declare function lazy<T>(fn: (() => T) | T): Lazy<T>;
|
|
|
5420
5457
|
/**
|
|
5421
5458
|
* Compares two objects.
|
|
5422
5459
|
*/
|
|
5423
|
-
declare function deepEquals(o1: any, o2: any): boolean;
|
|
5460
|
+
declare function deepEquals(o1: any, o2: any, ignoreFunctions?: "ignoreFunctions"): boolean;
|
|
5424
5461
|
|
|
5425
5462
|
interface ConstructorArgs {
|
|
5426
5463
|
readonly zone: Readonly<Zone | UnboundedZone>;
|
|
@@ -5761,15 +5798,24 @@ declare class Registry<T> {
|
|
|
5761
5798
|
remove(key: string): void;
|
|
5762
5799
|
}
|
|
5763
5800
|
|
|
5801
|
+
interface PivotRegistryItem$1 {
|
|
5802
|
+
editor: new (...args: any) => Component;
|
|
5803
|
+
}
|
|
5804
|
+
|
|
5764
5805
|
interface PivotParams {
|
|
5765
5806
|
definition: PivotCoreDefinition;
|
|
5766
5807
|
getters: Getters;
|
|
5767
5808
|
}
|
|
5768
|
-
type
|
|
5769
|
-
type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields) => PivotRuntimeDefinition;
|
|
5809
|
+
type PivotUIConstructor = new (custom: ModelConfig["custom"], params: PivotParams) => Pivot;
|
|
5810
|
+
type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields, getters: Getters) => PivotRuntimeDefinition;
|
|
5770
5811
|
interface PivotRegistryItem {
|
|
5771
|
-
|
|
5812
|
+
ui: PivotUIConstructor;
|
|
5772
5813
|
definition: PivotDefinitionConstructor;
|
|
5814
|
+
externalData: boolean;
|
|
5815
|
+
onIterationEndEvaluation: (pivot: Pivot) => void;
|
|
5816
|
+
granularities: string[];
|
|
5817
|
+
isMeasureCandidate: (field: PivotField) => boolean;
|
|
5818
|
+
isGroupable: (field: PivotField) => boolean;
|
|
5773
5819
|
}
|
|
5774
5820
|
|
|
5775
5821
|
declare class ClipboardHandler<T> {
|
|
@@ -6123,7 +6169,7 @@ declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFu
|
|
|
6123
6169
|
}
|
|
6124
6170
|
|
|
6125
6171
|
interface CellClickableItem {
|
|
6126
|
-
condition: (position: CellPosition,
|
|
6172
|
+
condition: (position: CellPosition, getters: Getters) => boolean;
|
|
6127
6173
|
execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
6128
6174
|
sequence: number;
|
|
6129
6175
|
}
|
|
@@ -6166,6 +6212,7 @@ interface HighlightProvider {
|
|
|
6166
6212
|
highlights: Highlight$1[];
|
|
6167
6213
|
}
|
|
6168
6214
|
declare class HighlightStore extends SpreadsheetStore {
|
|
6215
|
+
mutators: readonly ["register", "unRegister"];
|
|
6169
6216
|
private providers;
|
|
6170
6217
|
constructor(get: Get);
|
|
6171
6218
|
get renderingLayers(): readonly ["Highlights"];
|
|
@@ -6190,17 +6237,17 @@ interface RangeInputValue {
|
|
|
6190
6237
|
declare class SelectionInputStore extends SpreadsheetStore {
|
|
6191
6238
|
private initialRanges;
|
|
6192
6239
|
private readonly inputHasSingleRange;
|
|
6240
|
+
mutators: readonly ["resetWithRanges", "focusById", "unfocus", "addEmptyRange", "removeRange", "changeRange", "reset", "confirm"];
|
|
6193
6241
|
ranges: RangeInputValue[];
|
|
6194
6242
|
focusedRangeIndex: number | null;
|
|
6195
6243
|
private inputSheetId;
|
|
6196
6244
|
private focusStore;
|
|
6197
6245
|
protected highlightStore: {
|
|
6198
|
-
readonly renderingLayers: readonly ["Highlights"];
|
|
6199
|
-
readonly highlights: Highlight$1[];
|
|
6200
6246
|
readonly register: (highlightProvider: HighlightProvider) => void;
|
|
6201
6247
|
readonly unRegister: (highlightProvider: HighlightProvider) => void;
|
|
6202
|
-
readonly
|
|
6203
|
-
readonly
|
|
6248
|
+
readonly mutators: readonly ["register", "unRegister"];
|
|
6249
|
+
readonly renderingLayers: readonly ["Highlights"];
|
|
6250
|
+
readonly highlights: Highlight$1[];
|
|
6204
6251
|
};
|
|
6205
6252
|
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean);
|
|
6206
6253
|
handleEvent(event: SelectionEvent): void;
|
|
@@ -7003,6 +7050,7 @@ interface ClosedSidePanel {
|
|
|
7003
7050
|
}
|
|
7004
7051
|
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
7005
7052
|
declare class SidePanelStore extends SpreadsheetStore {
|
|
7053
|
+
mutators: readonly ["open", "toggle", "close"];
|
|
7006
7054
|
initialPanelProps: SidePanelProps;
|
|
7007
7055
|
componentTag: string;
|
|
7008
7056
|
get isOpen(): boolean;
|
|
@@ -7015,7 +7063,7 @@ declare class SidePanelStore extends SpreadsheetStore {
|
|
|
7015
7063
|
}
|
|
7016
7064
|
|
|
7017
7065
|
interface SidePanelContent {
|
|
7018
|
-
title: string | ((env: SpreadsheetChildEnv) => string);
|
|
7066
|
+
title: string | ((env: SpreadsheetChildEnv, props: object) => string);
|
|
7019
7067
|
Body: any;
|
|
7020
7068
|
Footer?: any;
|
|
7021
7069
|
/**
|
|
@@ -7116,12 +7164,24 @@ declare class TextValueProvider extends Component<Props$H> {
|
|
|
7116
7164
|
setup(): void;
|
|
7117
7165
|
}
|
|
7118
7166
|
|
|
7167
|
+
declare class AutoCompleteStore extends SpreadsheetStore {
|
|
7168
|
+
mutators: readonly ["useProvider", "moveSelection", "hide", "selectIndex"];
|
|
7169
|
+
selectedIndex: number | undefined;
|
|
7170
|
+
provider: AutoCompleteProvider | undefined;
|
|
7171
|
+
get selectedProposal(): AutoCompleteProposal | undefined;
|
|
7172
|
+
useProvider(provider: AutoCompleteProvider): void;
|
|
7173
|
+
hide(): void;
|
|
7174
|
+
selectIndex(index: number): void;
|
|
7175
|
+
moveSelection(direction: "previous" | "next"): void;
|
|
7176
|
+
}
|
|
7177
|
+
|
|
7119
7178
|
type EditionMode = "editing" | "selecting" | "inactive";
|
|
7120
7179
|
interface ComposerSelection {
|
|
7121
7180
|
start: number;
|
|
7122
7181
|
end: number;
|
|
7123
7182
|
}
|
|
7124
7183
|
declare class ComposerStore extends SpreadsheetStore {
|
|
7184
|
+
mutators: readonly ["startEdition", "setCurrentContent", "stopEdition", "stopComposerRangeSelection", "cancelEdition", "cycleReferences", "changeComposerCursorSelection", "replaceComposerCursorSelection"];
|
|
7125
7185
|
private col;
|
|
7126
7186
|
private row;
|
|
7127
7187
|
editionMode: EditionMode;
|
|
@@ -7228,6 +7288,7 @@ declare class ComposerStore extends SpreadsheetStore {
|
|
|
7228
7288
|
|
|
7229
7289
|
type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
|
|
7230
7290
|
declare class ComposerFocusStore extends SpreadsheetStore {
|
|
7291
|
+
mutators: readonly ["focusTopBarComposer", "focusGridComposerContent", "focusGridComposerCell"];
|
|
7231
7292
|
private composerStore;
|
|
7232
7293
|
private topBarFocus;
|
|
7233
7294
|
private gridFocusMode;
|
|
@@ -7355,10 +7416,6 @@ interface ComposerState {
|
|
|
7355
7416
|
positionStart: number;
|
|
7356
7417
|
positionEnd: number;
|
|
7357
7418
|
}
|
|
7358
|
-
interface AutoCompleteState {
|
|
7359
|
-
provider: AutoCompleteProvider | undefined;
|
|
7360
|
-
selectedIndex: number | undefined;
|
|
7361
|
-
}
|
|
7362
7419
|
interface FunctionDescriptionState {
|
|
7363
7420
|
showDescription: boolean;
|
|
7364
7421
|
functionName: string;
|
|
@@ -7412,7 +7469,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
7412
7469
|
};
|
|
7413
7470
|
contentHelper: ContentEditableHelper;
|
|
7414
7471
|
composerState: ComposerState;
|
|
7415
|
-
autoCompleteState:
|
|
7472
|
+
autoCompleteState: Store<AutoCompleteStore>;
|
|
7416
7473
|
functionDescriptionState: FunctionDescriptionState;
|
|
7417
7474
|
private compositionActive;
|
|
7418
7475
|
get assistantStyle(): string;
|
|
@@ -7439,7 +7496,6 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
7439
7496
|
onPaste(ev: ClipboardEvent): void;
|
|
7440
7497
|
onInput(ev: InputEvent): void;
|
|
7441
7498
|
onKeyup(ev: KeyboardEvent): void;
|
|
7442
|
-
showAutoComplete(provider: AutoCompleteProvider): void;
|
|
7443
7499
|
updateAutoCompleteIndex(index: number): void;
|
|
7444
7500
|
/**
|
|
7445
7501
|
* This is required to ensure the content helper selection is
|
|
@@ -7526,6 +7582,7 @@ declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
7526
7582
|
};
|
|
7527
7583
|
private canvas;
|
|
7528
7584
|
private chart?;
|
|
7585
|
+
private currentRuntime;
|
|
7529
7586
|
get background(): string;
|
|
7530
7587
|
get canvasStyle(): string;
|
|
7531
7588
|
get chartRuntime(): ChartJSRuntime;
|
|
@@ -7981,16 +8038,15 @@ declare class FiguresContainer extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
7981
8038
|
}
|
|
7982
8039
|
|
|
7983
8040
|
declare class CellPopoverStore extends SpreadsheetStore {
|
|
8041
|
+
mutators: readonly ["open", "close"];
|
|
7984
8042
|
private persistentPopover?;
|
|
7985
8043
|
protected hoveredCell: {
|
|
8044
|
+
readonly clear: () => void;
|
|
8045
|
+
readonly hover: (position: Position$1) => void;
|
|
8046
|
+
readonly mutators: readonly ["clear", "hover"];
|
|
7986
8047
|
readonly col: number | undefined;
|
|
7987
8048
|
readonly row: number | undefined;
|
|
7988
|
-
readonly handle: (cmd: Command) => void;
|
|
7989
|
-
readonly hover: (position: Position$1) => void;
|
|
7990
|
-
readonly clear: () => void;
|
|
7991
8049
|
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
7992
|
-
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
|
|
7993
|
-
readonly dispose: () => void;
|
|
7994
8050
|
};
|
|
7995
8051
|
handle(cmd: Command): void;
|
|
7996
8052
|
open({ col, row }: Position$1, type: CellPopoverType): void;
|
|
@@ -8452,6 +8508,7 @@ declare class TableResizer extends Component<Props$k, SpreadsheetChildEnv> {
|
|
|
8452
8508
|
}
|
|
8453
8509
|
|
|
8454
8510
|
declare class HoveredCellStore extends SpreadsheetStore {
|
|
8511
|
+
mutators: readonly ["clear", "hover"];
|
|
8455
8512
|
col: number | undefined;
|
|
8456
8513
|
row: number | undefined;
|
|
8457
8514
|
handle(cmd: Command): void;
|
|
@@ -8575,8 +8632,11 @@ declare function useHighlightsOnHover(ref: Ref<HTMLElement>, highlightProvider:
|
|
|
8575
8632
|
declare function useHighlights(highlightProvider: HighlightProvider): void;
|
|
8576
8633
|
|
|
8577
8634
|
declare class MainChartPanelStore extends SpreadsheetStore {
|
|
8635
|
+
mutators: readonly ["activatePanel", "changeChartType"];
|
|
8578
8636
|
panel: "configuration" | "design";
|
|
8637
|
+
private creationContext;
|
|
8579
8638
|
activatePanel(panel: "configuration" | "design"): void;
|
|
8639
|
+
changeChartType(figureId: UID, type: ChartType): void;
|
|
8580
8640
|
}
|
|
8581
8641
|
|
|
8582
8642
|
interface Props$i {
|
|
@@ -8604,6 +8664,7 @@ declare class ChartPanel extends Component<Props$i, SpreadsheetChildEnv> {
|
|
|
8604
8664
|
}
|
|
8605
8665
|
|
|
8606
8666
|
declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
|
|
8667
|
+
mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
|
|
8607
8668
|
private allSheetsMatches;
|
|
8608
8669
|
private activeSheetMatches;
|
|
8609
8670
|
private specificRangeMatches;
|
|
@@ -8664,25 +8725,6 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
8664
8725
|
get highlights(): Highlight$1[];
|
|
8665
8726
|
}
|
|
8666
8727
|
|
|
8667
|
-
declare class PivotPreview extends Component {
|
|
8668
|
-
static template: string;
|
|
8669
|
-
static props: {
|
|
8670
|
-
pivotId: StringConstructor;
|
|
8671
|
-
};
|
|
8672
|
-
setup(): void;
|
|
8673
|
-
selectPivot(): void;
|
|
8674
|
-
get highlights(): Highlight$1[];
|
|
8675
|
-
}
|
|
8676
|
-
declare class AllPivotsSidePanel extends Component {
|
|
8677
|
-
static template: string;
|
|
8678
|
-
static components: {
|
|
8679
|
-
PivotPreview: typeof PivotPreview;
|
|
8680
|
-
};
|
|
8681
|
-
static props: {
|
|
8682
|
-
onCloseSidePanel: FunctionConstructor;
|
|
8683
|
-
};
|
|
8684
|
-
}
|
|
8685
|
-
|
|
8686
8728
|
/** @odoo-module */
|
|
8687
8729
|
|
|
8688
8730
|
interface Props$h {
|
|
@@ -8711,6 +8753,7 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
|
|
|
8711
8753
|
static template: string;
|
|
8712
8754
|
static components: {
|
|
8713
8755
|
Popover: typeof Popover;
|
|
8756
|
+
TextValueProvider: typeof TextValueProvider;
|
|
8714
8757
|
};
|
|
8715
8758
|
static props: {
|
|
8716
8759
|
onFieldPicked: FunctionConstructor;
|
|
@@ -8719,12 +8762,20 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
|
|
|
8719
8762
|
private buttonRef;
|
|
8720
8763
|
private popover;
|
|
8721
8764
|
private search;
|
|
8765
|
+
private autoComplete;
|
|
8722
8766
|
setup(): void;
|
|
8723
|
-
|
|
8767
|
+
getProvider(): AutoCompleteProvider;
|
|
8768
|
+
get proposals(): AutoCompleteProposal[];
|
|
8724
8769
|
get popoverProps(): {
|
|
8725
|
-
anchorRect:
|
|
8770
|
+
anchorRect: {
|
|
8771
|
+
x: number;
|
|
8772
|
+
y: number;
|
|
8773
|
+
width: number;
|
|
8774
|
+
height: number;
|
|
8775
|
+
};
|
|
8726
8776
|
positioning: string;
|
|
8727
8777
|
};
|
|
8778
|
+
updateSearch(searchInput: string): void;
|
|
8728
8779
|
pickField(field: PivotField): void;
|
|
8729
8780
|
togglePopover(): void;
|
|
8730
8781
|
onKeyDown(ev: KeyboardEvent): void;
|
|
@@ -8753,6 +8804,7 @@ interface Props$e {
|
|
|
8753
8804
|
dimension: PivotDimension$1;
|
|
8754
8805
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
8755
8806
|
availableGranularities: Set<string>;
|
|
8807
|
+
allGranularities: string[];
|
|
8756
8808
|
}
|
|
8757
8809
|
declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetChildEnv> {
|
|
8758
8810
|
static template: string;
|
|
@@ -8760,6 +8812,7 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
|
|
|
8760
8812
|
dimension: ObjectConstructor;
|
|
8761
8813
|
onUpdated: FunctionConstructor;
|
|
8762
8814
|
availableGranularities: SetConstructor;
|
|
8815
|
+
allGranularities: ArrayConstructor;
|
|
8763
8816
|
};
|
|
8764
8817
|
periods: {
|
|
8765
8818
|
year: string;
|
|
@@ -8767,8 +8820,12 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
|
|
|
8767
8820
|
month: string;
|
|
8768
8821
|
week: string;
|
|
8769
8822
|
day: string;
|
|
8823
|
+
year_number: string;
|
|
8824
|
+
quarter_number: string;
|
|
8825
|
+
month_number: string;
|
|
8826
|
+
iso_week_number: string;
|
|
8827
|
+
day_of_month: string;
|
|
8770
8828
|
};
|
|
8771
|
-
allGranularities: string[];
|
|
8772
8829
|
}
|
|
8773
8830
|
|
|
8774
8831
|
interface Props$d {
|
|
@@ -8816,7 +8873,7 @@ declare function isDateField(field: PivotField): boolean;
|
|
|
8816
8873
|
* Create a proposal entry for the compose autocomplete
|
|
8817
8874
|
* to insert a field name string in a formula.
|
|
8818
8875
|
*/
|
|
8819
|
-
declare function makeFieldProposal(field: PivotField): {
|
|
8876
|
+
declare function makeFieldProposal(field: PivotField, granularity?: Granularity): {
|
|
8820
8877
|
text: string;
|
|
8821
8878
|
description: string;
|
|
8822
8879
|
htmlContent: {
|
|
@@ -8850,8 +8907,9 @@ interface Props$c {
|
|
|
8850
8907
|
unusedGroupableFields: PivotField[];
|
|
8851
8908
|
unusedMeasureFields: PivotField[];
|
|
8852
8909
|
unusedDateTimeGranularities: Record<string, Set<string>>;
|
|
8910
|
+
allGranularities: string[];
|
|
8853
8911
|
}
|
|
8854
|
-
declare class
|
|
8912
|
+
declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChildEnv> {
|
|
8855
8913
|
static template: string;
|
|
8856
8914
|
static components: {
|
|
8857
8915
|
AddDimensionButton: typeof AddDimensionButton;
|
|
@@ -8865,6 +8923,7 @@ declare class PivotDimensions extends Component<Props$c, SpreadsheetChildEnv> {
|
|
|
8865
8923
|
unusedGroupableFields: ArrayConstructor;
|
|
8866
8924
|
unusedMeasureFields: ArrayConstructor;
|
|
8867
8925
|
unusedDateTimeGranularities: ObjectConstructor;
|
|
8926
|
+
allGranularities: ArrayConstructor;
|
|
8868
8927
|
};
|
|
8869
8928
|
private dimensionsRef;
|
|
8870
8929
|
private dragAndDrop;
|
|
@@ -8888,6 +8947,31 @@ declare class PivotDimensions extends Component<Props$c, SpreadsheetChildEnv> {
|
|
|
8888
8947
|
updateGranularity(dimension: PivotDimension$1, granularity: Granularity): void;
|
|
8889
8948
|
}
|
|
8890
8949
|
|
|
8950
|
+
declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
8951
|
+
private pivotId;
|
|
8952
|
+
mutators: readonly ["applyUpdate", "renamePivot", "update"];
|
|
8953
|
+
private updatesAreDeferred;
|
|
8954
|
+
private draft;
|
|
8955
|
+
constructor(get: Get, pivotId: UID);
|
|
8956
|
+
handle(cmd: Command): void;
|
|
8957
|
+
get fields(): PivotFields;
|
|
8958
|
+
get pivot(): Pivot<PivotRuntimeDefinition>;
|
|
8959
|
+
get definition(): PivotRuntimeDefinition;
|
|
8960
|
+
get isDirty(): boolean;
|
|
8961
|
+
get unusedMeasureFields(): PivotField[];
|
|
8962
|
+
get unusedGroupableFields(): PivotField[];
|
|
8963
|
+
get allGranularities(): string[];
|
|
8964
|
+
get unusedDateTimeGranularities(): {};
|
|
8965
|
+
reset(pivotId: UID): void;
|
|
8966
|
+
deferUpdates(shouldDefer: boolean): void;
|
|
8967
|
+
applyUpdate(): void;
|
|
8968
|
+
discardPendingUpdate(): void;
|
|
8969
|
+
renamePivot(name: string): void;
|
|
8970
|
+
update(definitionUpdate: Partial<PivotCoreDefinition>): void;
|
|
8971
|
+
private addDefaultDateTimeGranularity;
|
|
8972
|
+
private getUnusedDateTimeGranularities;
|
|
8973
|
+
}
|
|
8974
|
+
|
|
8891
8975
|
declare function isEvaluationError(error: Maybe<CellValue>): error is string;
|
|
8892
8976
|
declare function toNumber(data: FPayload | CellValue | undefined, locale: Locale): number;
|
|
8893
8977
|
declare function toString(data: FPayload | CellValue | undefined): string;
|
|
@@ -8922,7 +9006,9 @@ declare function chartFontColor(backgroundColor: Color | undefined): Color;
|
|
|
8922
9006
|
/**
|
|
8923
9007
|
* Get a default chart js configuration
|
|
8924
9008
|
*/
|
|
8925
|
-
declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[], fontColor: Color, { format, locale }: LocaleFormat
|
|
9009
|
+
declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[], fontColor: Color, { format, locale, truncateLabels }: LocaleFormat & {
|
|
9010
|
+
truncateLabels?: boolean;
|
|
9011
|
+
}): Required<ChartConfiguration>;
|
|
8926
9012
|
/** See https://www.chartjs.org/docs/latest/charts/area.html#filling-modes */
|
|
8927
9013
|
declare function getFillingMode(index: number): "origin" | number;
|
|
8928
9014
|
|
|
@@ -8945,38 +9031,19 @@ declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetDa
|
|
|
8945
9031
|
declare function genericRepeat<T extends Command>(getters: Getters, command: T): T;
|
|
8946
9032
|
|
|
8947
9033
|
interface NotificationStore {
|
|
9034
|
+
mutators: readonly ["notifyUser", "raiseError", "askConfirmation"];
|
|
8948
9035
|
notifyUser: (notification: InformationNotification) => any;
|
|
8949
9036
|
raiseError: (text: string, callback?: () => void) => any;
|
|
8950
9037
|
askConfirmation: (content: string, confirm: () => any, cancel?: () => any) => any;
|
|
8951
9038
|
}
|
|
8952
9039
|
declare const NotificationStore: StoreConstructor<NotificationStore, any[]>;
|
|
8953
9040
|
|
|
8954
|
-
declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
8955
|
-
private pivotId;
|
|
8956
|
-
private updatesAreDeferred;
|
|
8957
|
-
private draft;
|
|
8958
|
-
constructor(get: Get, pivotId: UID);
|
|
8959
|
-
get fields(): PivotFields;
|
|
8960
|
-
get pivot(): Pivot<PivotRuntimeDefinition>;
|
|
8961
|
-
get definition(): PivotRuntimeDefinition;
|
|
8962
|
-
get isDirty(): boolean;
|
|
8963
|
-
get unusedMeasureFields(): PivotField[];
|
|
8964
|
-
get unusedGroupableFields(): PivotField[];
|
|
8965
|
-
get unusedDateTimeGranularities(): {};
|
|
8966
|
-
reset(pivotId: UID): void;
|
|
8967
|
-
deferUpdates(shouldDefer: boolean): void;
|
|
8968
|
-
applyUpdate(): void;
|
|
8969
|
-
discardPendingUpdate(): void;
|
|
8970
|
-
update(definitionUpdate: Partial<PivotCoreDefinition>): void;
|
|
8971
|
-
private addDefaultDateTimeGranularity;
|
|
8972
|
-
private getUnusedDateTimeGranularities;
|
|
8973
|
-
}
|
|
8974
|
-
|
|
8975
9041
|
interface Renderer {
|
|
8976
9042
|
drawLayer(ctx: GridRenderingContext, layer: LayerName): void;
|
|
8977
9043
|
renderingLayers: Readonly<LayerName[]>;
|
|
8978
9044
|
}
|
|
8979
|
-
declare class RendererStore
|
|
9045
|
+
declare class RendererStore {
|
|
9046
|
+
mutators: readonly ["register", "unRegister"];
|
|
8980
9047
|
private renderers;
|
|
8981
9048
|
register(renderer: Renderer): void;
|
|
8982
9049
|
unRegister(renderer: Renderer): void;
|
|
@@ -9224,13 +9291,22 @@ declare class BottomBar extends Component<Props$9, SpreadsheetChildEnv> {
|
|
|
9224
9291
|
get sheetListMaxScroll(): number;
|
|
9225
9292
|
}
|
|
9226
9293
|
|
|
9227
|
-
interface Props$8 {
|
|
9228
|
-
}
|
|
9229
9294
|
interface ClickableCell {
|
|
9230
9295
|
coordinates: Rect;
|
|
9231
|
-
position:
|
|
9296
|
+
position: CellPosition;
|
|
9232
9297
|
action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
9233
9298
|
}
|
|
9299
|
+
declare class ClickableCellsStore extends SpreadsheetStore {
|
|
9300
|
+
private _clickableCells;
|
|
9301
|
+
private _registryItems;
|
|
9302
|
+
handle(cmd: Command): void;
|
|
9303
|
+
private getClickableAction;
|
|
9304
|
+
private findClickableAction;
|
|
9305
|
+
get clickableCells(): ClickableCell[];
|
|
9306
|
+
}
|
|
9307
|
+
|
|
9308
|
+
interface Props$8 {
|
|
9309
|
+
}
|
|
9234
9310
|
declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEnv> {
|
|
9235
9311
|
static template: string;
|
|
9236
9312
|
static props: {};
|
|
@@ -9245,6 +9321,7 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
|
|
|
9245
9321
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
9246
9322
|
canvasPosition: DOMCoordinates;
|
|
9247
9323
|
hoveredCell: Store<HoveredCellStore>;
|
|
9324
|
+
clickableCellsStore: Store<ClickableCellsStore>;
|
|
9248
9325
|
setup(): void;
|
|
9249
9326
|
onCellHovered({ col, row }: {
|
|
9250
9327
|
col: any;
|
|
@@ -9260,7 +9337,6 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
|
|
|
9260
9337
|
*
|
|
9261
9338
|
*/
|
|
9262
9339
|
getClickableCells(): ClickableCell[];
|
|
9263
|
-
getClickableAction(position: CellPosition): false | ((position: CellPosition, env: SpreadsheetChildEnv) => void);
|
|
9264
9340
|
selectClickableCell(clickableCell: ClickableCell): void;
|
|
9265
9341
|
onClosePopover(): void;
|
|
9266
9342
|
onGridResized({ height, width }: DOMDimension): void;
|
|
@@ -9648,19 +9724,42 @@ declare class FontSizeEditor extends Component<Props$3, SpreadsheetChildEnv> {
|
|
|
9648
9724
|
interface Props$2 {
|
|
9649
9725
|
tableConfig: TableConfig;
|
|
9650
9726
|
tableStyle: TableStyle;
|
|
9727
|
+
class: string;
|
|
9728
|
+
styleId?: string;
|
|
9729
|
+
selected?: boolean;
|
|
9730
|
+
onClick?: () => void;
|
|
9651
9731
|
}
|
|
9652
9732
|
declare class TableStylePreview extends Component<Props$2, SpreadsheetChildEnv> {
|
|
9653
9733
|
static template: string;
|
|
9734
|
+
static components: {
|
|
9735
|
+
Menu: typeof Menu;
|
|
9736
|
+
};
|
|
9654
9737
|
static props: {
|
|
9655
9738
|
tableConfig: ObjectConstructor;
|
|
9656
|
-
tableStyle:
|
|
9657
|
-
|
|
9739
|
+
tableStyle: ObjectConstructor;
|
|
9740
|
+
class: StringConstructor;
|
|
9741
|
+
styleId: {
|
|
9742
|
+
type: StringConstructor;
|
|
9743
|
+
optional: boolean;
|
|
9744
|
+
};
|
|
9745
|
+
selected: {
|
|
9746
|
+
type: BooleanConstructor;
|
|
9747
|
+
optional: boolean;
|
|
9748
|
+
};
|
|
9749
|
+
onClick: {
|
|
9750
|
+
type: FunctionConstructor;
|
|
9658
9751
|
optional: boolean;
|
|
9659
9752
|
};
|
|
9660
9753
|
};
|
|
9661
9754
|
private canvasRef;
|
|
9755
|
+
menu: MenuState;
|
|
9662
9756
|
setup(): void;
|
|
9663
9757
|
private drawTable;
|
|
9758
|
+
onContextMenu(event: MouseEvent): void;
|
|
9759
|
+
closeMenu(): void;
|
|
9760
|
+
get styleName(): string;
|
|
9761
|
+
get isStyleEditable(): boolean;
|
|
9762
|
+
editTableStyle(): void;
|
|
9664
9763
|
}
|
|
9665
9764
|
|
|
9666
9765
|
interface TableStylesPopoverProps {
|
|
@@ -9681,7 +9780,6 @@ declare class TableStylesPopover extends Component<TableStylesPopoverProps, Spre
|
|
|
9681
9780
|
static components: {
|
|
9682
9781
|
Popover: typeof Popover;
|
|
9683
9782
|
TableStylePreview: typeof TableStylePreview;
|
|
9684
|
-
Menu: typeof Menu;
|
|
9685
9783
|
};
|
|
9686
9784
|
static props: {
|
|
9687
9785
|
tableConfig: ObjectConstructor;
|
|
@@ -9709,10 +9807,7 @@ declare class TableStylesPopover extends Component<TableStylesPopoverProps, Spre
|
|
|
9709
9807
|
onExternalClick(ev: CustomTablePopoverMouseEvent): void;
|
|
9710
9808
|
get displayedStyles(): string[];
|
|
9711
9809
|
get initialSelectedCategory(): string;
|
|
9712
|
-
getStyleName(styleId: string): string;
|
|
9713
9810
|
newTableStyle(): void;
|
|
9714
|
-
onContextMenu(event: MouseEvent, styleId: string): void;
|
|
9715
|
-
closeMenu(): void;
|
|
9716
9811
|
}
|
|
9717
9812
|
|
|
9718
9813
|
interface State$1 {
|
|
@@ -9859,6 +9954,7 @@ declare const CellErrorType: {
|
|
|
9859
9954
|
readonly CircularDependency: "#CYCLE";
|
|
9860
9955
|
readonly UnknownFunction: "#NAME?";
|
|
9861
9956
|
readonly DivisionByZero: "#DIV/0!";
|
|
9957
|
+
readonly SpilledBlocked: "#SPILL!";
|
|
9862
9958
|
readonly GenericError: "#ERROR";
|
|
9863
9959
|
};
|
|
9864
9960
|
declare class EvaluationError extends Error {
|
|
@@ -9931,7 +10027,7 @@ declare const registries: {
|
|
|
9931
10027
|
clipboardHandlersRegistries: {
|
|
9932
10028
|
figureHandlers: Registry<{
|
|
9933
10029
|
new (getters: Getters, dispatch: {
|
|
9934
|
-
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
10030
|
+
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT", C extends Extract<UpdateCellCommand, {
|
|
9935
10031
|
type: T;
|
|
9936
10032
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9937
10033
|
type: T;
|
|
@@ -10141,14 +10237,14 @@ declare const registries: {
|
|
|
10141
10237
|
type: T;
|
|
10142
10238
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10143
10239
|
type: T;
|
|
10144
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10145
|
-
type: T;
|
|
10146
10240
|
}> | Extract<ResizeTableCommand, {
|
|
10147
10241
|
type: T;
|
|
10148
10242
|
}> | Extract<RefreshPivotCommand, {
|
|
10149
10243
|
type: T;
|
|
10244
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10245
|
+
type: T;
|
|
10150
10246
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
10151
|
-
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
10247
|
+
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT", C_1 extends Extract<UpdateCellCommand, {
|
|
10152
10248
|
type: T_1;
|
|
10153
10249
|
}> | Extract<UpdateCellPositionCommand, {
|
|
10154
10250
|
type: T_1;
|
|
@@ -10358,18 +10454,18 @@ declare const registries: {
|
|
|
10358
10454
|
type: T_1;
|
|
10359
10455
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10360
10456
|
type: T_1;
|
|
10361
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10362
|
-
type: T_1;
|
|
10363
10457
|
}> | Extract<ResizeTableCommand, {
|
|
10364
10458
|
type: T_1;
|
|
10365
10459
|
}> | Extract<RefreshPivotCommand, {
|
|
10366
10460
|
type: T_1;
|
|
10461
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10462
|
+
type: T_1;
|
|
10367
10463
|
}>>(type: T_1, r: Omit<C_1, "type">): DispatchResult;
|
|
10368
10464
|
}): AbstractFigureClipboardHandler<any>;
|
|
10369
10465
|
}>;
|
|
10370
10466
|
cellHandlers: Registry<{
|
|
10371
10467
|
new (getters: Getters, dispatch: {
|
|
10372
|
-
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
10468
|
+
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT", C extends Extract<UpdateCellCommand, {
|
|
10373
10469
|
type: T;
|
|
10374
10470
|
}> | Extract<UpdateCellPositionCommand, {
|
|
10375
10471
|
type: T;
|
|
@@ -10579,14 +10675,14 @@ declare const registries: {
|
|
|
10579
10675
|
type: T;
|
|
10580
10676
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10581
10677
|
type: T;
|
|
10582
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10583
|
-
type: T;
|
|
10584
10678
|
}> | Extract<ResizeTableCommand, {
|
|
10585
10679
|
type: T;
|
|
10586
10680
|
}> | Extract<RefreshPivotCommand, {
|
|
10587
10681
|
type: T;
|
|
10682
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10683
|
+
type: T;
|
|
10588
10684
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
10589
|
-
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "
|
|
10685
|
+
<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" | "CREATE_TABLE_STYLE" | "REMOVE_TABLE_STYLE" | "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" | "ADD_PIVOT" | "UPDATE_PIVOT" | "INSERT_PIVOT" | "RENAME_PIVOT" | "REMOVE_PIVOT" | "DUPLICATE_PIVOT" | "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" | "RESIZE_TABLE" | "REFRESH_PIVOT" | "INSERT_NEW_PIVOT", C_1 extends Extract<UpdateCellCommand, {
|
|
10590
10686
|
type: T_1;
|
|
10591
10687
|
}> | Extract<UpdateCellPositionCommand, {
|
|
10592
10688
|
type: T_1;
|
|
@@ -10796,18 +10892,20 @@ declare const registries: {
|
|
|
10796
10892
|
type: T_1;
|
|
10797
10893
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10798
10894
|
type: T_1;
|
|
10799
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10800
|
-
type: T_1;
|
|
10801
10895
|
}> | Extract<ResizeTableCommand, {
|
|
10802
10896
|
type: T_1;
|
|
10803
10897
|
}> | Extract<RefreshPivotCommand, {
|
|
10804
10898
|
type: T_1;
|
|
10899
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10900
|
+
type: T_1;
|
|
10805
10901
|
}>>(type: T_1, r: Omit<C_1, "type">): DispatchResult;
|
|
10806
10902
|
}): AbstractCellClipboardHandler<any, any>;
|
|
10807
10903
|
}>;
|
|
10808
10904
|
};
|
|
10809
10905
|
pivotRegistry: Registry<PivotRegistryItem>;
|
|
10810
10906
|
pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<string | number | false>>;
|
|
10907
|
+
pivotSidePanelRegistry: Registry<PivotRegistryItem$1>;
|
|
10908
|
+
supportedPivotExplodedFormulaRegistry: Registry<boolean>;
|
|
10811
10909
|
};
|
|
10812
10910
|
declare const helpers: {
|
|
10813
10911
|
arg: typeof arg;
|
|
@@ -10904,9 +11002,8 @@ declare const components: {
|
|
|
10904
11002
|
PivotDimensionGranularity: typeof PivotDimensionGranularity;
|
|
10905
11003
|
PivotDimensionOrder: typeof PivotDimensionOrder;
|
|
10906
11004
|
PivotDimension: typeof PivotDimension;
|
|
10907
|
-
|
|
11005
|
+
PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
|
|
10908
11006
|
EditableName: typeof EditableName;
|
|
10909
|
-
AllPivotsSidePanel: typeof AllPivotsSidePanel;
|
|
10910
11007
|
};
|
|
10911
11008
|
declare const hooks: {
|
|
10912
11009
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|
|
@@ -10951,4 +11048,4 @@ declare const constants: {
|
|
|
10951
11048
|
};
|
|
10952
11049
|
};
|
|
10953
11050
|
|
|
10954
|
-
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, 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, ChartWithAxisDefinition, 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, CreateTableStyleCommand, 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, DuplicatePivotCommand, 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, InsertPivotCommand, 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, PivotRuntimeDefinition, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand,
|
|
11051
|
+
export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, 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, ChartWithAxisDefinition, 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, CommonPivotCoreDefinition, 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, CreateTableStyleCommand, 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, DomainArg, DuplicatePivotCommand, 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, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, 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, Pivot, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotField, PivotFields, PivotMeasure, PivotRuntimeDefinition, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, 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, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, StringDomainArgs, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, 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, UpdatePivotCommand, 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 };
|