@odoo/o-spreadsheet 17.3.0-alpha.7 → 17.3.0
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 +4421 -2035
- package/dist/o-spreadsheet.d.ts +701 -414
- package/dist/o-spreadsheet.esm.js +4422 -2036
- package/dist/o-spreadsheet.iife.js +4420 -2034
- package/dist/o-spreadsheet.iife.min.js +583 -415
- package/dist/o_spreadsheet.xml +594 -413
- 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;
|
|
@@ -183,14 +189,14 @@ type VerticalAxisPosition = "left" | "right";
|
|
|
183
189
|
type LegendPosition = "top" | "bottom" | "left" | "right" | "none";
|
|
184
190
|
|
|
185
191
|
interface ComboBarChartDefinition {
|
|
186
|
-
readonly dataSets:
|
|
192
|
+
readonly dataSets: CustomizedDataSet[];
|
|
187
193
|
readonly dataSetsHaveTitle: boolean;
|
|
188
194
|
readonly labelRange?: string;
|
|
189
|
-
readonly title:
|
|
195
|
+
readonly title: TitleDesign;
|
|
190
196
|
readonly background?: Color;
|
|
191
|
-
readonly verticalAxisPosition: VerticalAxisPosition;
|
|
192
197
|
readonly legendPosition: LegendPosition;
|
|
193
198
|
readonly aggregated?: boolean;
|
|
199
|
+
readonly axesDesign?: AxesDesign;
|
|
194
200
|
}
|
|
195
201
|
|
|
196
202
|
interface BarChartDefinition extends ComboBarChartDefinition {
|
|
@@ -204,7 +210,6 @@ type BarChartRuntime = {
|
|
|
204
210
|
|
|
205
211
|
interface ComboChartDefinition extends ComboBarChartDefinition {
|
|
206
212
|
readonly type: "combo";
|
|
207
|
-
readonly useBothYAxis?: boolean;
|
|
208
213
|
}
|
|
209
214
|
type ComboChartRuntime = {
|
|
210
215
|
chartJsConfig: ChartConfiguration;
|
|
@@ -213,7 +218,7 @@ type ComboChartRuntime = {
|
|
|
213
218
|
|
|
214
219
|
interface GaugeChartDefinition {
|
|
215
220
|
readonly type: "gauge";
|
|
216
|
-
readonly title:
|
|
221
|
+
readonly title: TitleDesign;
|
|
217
222
|
readonly dataRange?: string;
|
|
218
223
|
readonly sectionRule: SectionRule;
|
|
219
224
|
readonly background?: Color;
|
|
@@ -240,7 +245,7 @@ interface GaugeValue {
|
|
|
240
245
|
}
|
|
241
246
|
interface GaugeChartRuntime {
|
|
242
247
|
background: Color;
|
|
243
|
-
title:
|
|
248
|
+
title: TitleDesign;
|
|
244
249
|
minValue: GaugeValue;
|
|
245
250
|
maxValue: GaugeValue;
|
|
246
251
|
gaugeValue?: GaugeValue;
|
|
@@ -250,17 +255,17 @@ interface GaugeChartRuntime {
|
|
|
250
255
|
|
|
251
256
|
interface LineChartDefinition {
|
|
252
257
|
readonly type: "line";
|
|
253
|
-
readonly dataSets:
|
|
258
|
+
readonly dataSets: CustomizedDataSet[];
|
|
254
259
|
readonly dataSetsHaveTitle: boolean;
|
|
255
260
|
readonly labelRange?: string;
|
|
256
|
-
readonly title:
|
|
261
|
+
readonly title: TitleDesign;
|
|
257
262
|
readonly background?: Color;
|
|
258
|
-
readonly verticalAxisPosition: VerticalAxisPosition;
|
|
259
263
|
readonly legendPosition: LegendPosition;
|
|
260
264
|
readonly labelsAsText: boolean;
|
|
261
265
|
readonly stacked: boolean;
|
|
262
266
|
readonly aggregated?: boolean;
|
|
263
267
|
readonly cumulative: boolean;
|
|
268
|
+
readonly axesDesign?: AxesDesign;
|
|
264
269
|
}
|
|
265
270
|
type LineChartRuntime = {
|
|
266
271
|
chartJsConfig: ChartConfiguration;
|
|
@@ -269,13 +274,14 @@ type LineChartRuntime = {
|
|
|
269
274
|
|
|
270
275
|
interface PieChartDefinition {
|
|
271
276
|
readonly type: "pie";
|
|
272
|
-
readonly dataSets:
|
|
277
|
+
readonly dataSets: CustomizedDataSet[];
|
|
273
278
|
readonly dataSetsHaveTitle: boolean;
|
|
274
279
|
readonly labelRange?: string;
|
|
275
|
-
readonly title:
|
|
280
|
+
readonly title: TitleDesign;
|
|
276
281
|
readonly background?: Color;
|
|
277
282
|
readonly legendPosition: LegendPosition;
|
|
278
283
|
readonly aggregated?: boolean;
|
|
284
|
+
readonly axesDesign?: AxesDesign;
|
|
279
285
|
}
|
|
280
286
|
type PieChartRuntime = {
|
|
281
287
|
chartJsConfig: ChartConfiguration;
|
|
@@ -289,7 +295,7 @@ type ScatterChartRuntime = LineChartRuntime;
|
|
|
289
295
|
|
|
290
296
|
interface ScorecardChartDefinition {
|
|
291
297
|
readonly type: "scorecard";
|
|
292
|
-
readonly title:
|
|
298
|
+
readonly title: TitleDesign;
|
|
293
299
|
readonly keyValue?: string;
|
|
294
300
|
readonly baseline?: string;
|
|
295
301
|
readonly baselineMode: BaselineMode;
|
|
@@ -306,7 +312,7 @@ interface ProgressBar {
|
|
|
306
312
|
readonly color: Color;
|
|
307
313
|
}
|
|
308
314
|
interface ScorecardChartRuntime {
|
|
309
|
-
readonly title:
|
|
315
|
+
readonly title: TitleDesign;
|
|
310
316
|
readonly keyValue: string;
|
|
311
317
|
readonly baselineDisplay: string;
|
|
312
318
|
readonly baselineColor?: string;
|
|
@@ -321,10 +327,10 @@ interface ScorecardChartRuntime {
|
|
|
321
327
|
|
|
322
328
|
interface WaterfallChartDefinition {
|
|
323
329
|
readonly type: "waterfall";
|
|
324
|
-
readonly dataSets:
|
|
330
|
+
readonly dataSets: CustomizedDataSet[];
|
|
325
331
|
readonly dataSetsHaveTitle: boolean;
|
|
326
332
|
readonly labelRange?: string;
|
|
327
|
-
readonly title:
|
|
333
|
+
readonly title: TitleDesign;
|
|
328
334
|
readonly background?: Color;
|
|
329
335
|
readonly verticalAxisPosition: VerticalAxisPosition;
|
|
330
336
|
readonly legendPosition: LegendPosition;
|
|
@@ -335,6 +341,7 @@ interface WaterfallChartDefinition {
|
|
|
335
341
|
readonly positiveValuesColor?: Color;
|
|
336
342
|
readonly negativeValuesColor?: Color;
|
|
337
343
|
readonly subTotalValuesColor?: Color;
|
|
344
|
+
readonly axesDesign?: AxesDesign;
|
|
338
345
|
}
|
|
339
346
|
type WaterfallChartRuntime = {
|
|
340
347
|
chartJsConfig: ChartConfiguration;
|
|
@@ -345,7 +352,7 @@ declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge",
|
|
|
345
352
|
type ChartType = (typeof CHART_TYPES)[number];
|
|
346
353
|
type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition | ComboChartDefinition | WaterfallChartDefinition;
|
|
347
354
|
type ChartWithAxisDefinition = Extract<ChartDefinition, {
|
|
348
|
-
dataSets:
|
|
355
|
+
dataSets: CustomizedDataSet[];
|
|
349
356
|
labelRange?: string;
|
|
350
357
|
}>;
|
|
351
358
|
type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | ComboChartRuntime | ScatterChartRuntime | WaterfallChartRuntime;
|
|
@@ -358,32 +365,67 @@ interface DatasetValues {
|
|
|
358
365
|
readonly label?: string;
|
|
359
366
|
readonly data: any[];
|
|
360
367
|
}
|
|
368
|
+
interface DatasetDesign {
|
|
369
|
+
readonly backgroundColor?: string;
|
|
370
|
+
readonly yAxisId?: string;
|
|
371
|
+
readonly label?: string;
|
|
372
|
+
}
|
|
373
|
+
interface AxisDesign {
|
|
374
|
+
readonly title?: TitleDesign;
|
|
375
|
+
}
|
|
376
|
+
interface AxesDesign {
|
|
377
|
+
readonly x?: AxisDesign;
|
|
378
|
+
readonly y?: AxisDesign;
|
|
379
|
+
readonly y1?: AxisDesign;
|
|
380
|
+
}
|
|
381
|
+
interface TitleDesign {
|
|
382
|
+
readonly text?: string;
|
|
383
|
+
readonly bold?: boolean;
|
|
384
|
+
readonly italic?: boolean;
|
|
385
|
+
readonly align?: Align;
|
|
386
|
+
readonly color?: Color;
|
|
387
|
+
}
|
|
388
|
+
type CustomizedDataSet = {
|
|
389
|
+
readonly dataRange: string;
|
|
390
|
+
} & DatasetDesign;
|
|
361
391
|
type AxisType = "category" | "linear" | "time";
|
|
362
392
|
interface DataSet {
|
|
363
393
|
readonly labelCell?: Range;
|
|
364
394
|
readonly dataRange: Range;
|
|
365
395
|
readonly rightYAxis?: boolean;
|
|
396
|
+
readonly backgroundColor?: Color;
|
|
397
|
+
readonly customLabel?: string;
|
|
366
398
|
}
|
|
367
399
|
interface ExcelChartDataset {
|
|
368
|
-
readonly label?:
|
|
400
|
+
readonly label?: {
|
|
401
|
+
text?: string;
|
|
402
|
+
} | {
|
|
403
|
+
reference?: string;
|
|
404
|
+
};
|
|
369
405
|
readonly range: string;
|
|
406
|
+
readonly backgroundColor?: Color;
|
|
407
|
+
readonly rightYAxis?: boolean;
|
|
370
408
|
}
|
|
371
409
|
type ExcelChartType = "line" | "bar" | "pie" | "combo" | "scatter";
|
|
372
410
|
interface ExcelChartDefinition {
|
|
373
|
-
readonly title?:
|
|
411
|
+
readonly title?: TitleDesign;
|
|
374
412
|
readonly type: ExcelChartType;
|
|
375
413
|
readonly dataSets: ExcelChartDataset[];
|
|
376
414
|
readonly labelRange?: string;
|
|
377
415
|
readonly backgroundColor: XlsxHexColor;
|
|
378
416
|
readonly fontColor: XlsxHexColor;
|
|
379
|
-
readonly verticalAxisPosition: VerticalAxisPosition;
|
|
380
417
|
readonly legendPosition: LegendPosition;
|
|
381
418
|
readonly stacked?: boolean;
|
|
382
419
|
readonly cumulative?: boolean;
|
|
420
|
+
readonly verticalAxis?: {
|
|
421
|
+
useLeftAxis?: boolean;
|
|
422
|
+
useRightAxis?: boolean;
|
|
423
|
+
};
|
|
424
|
+
readonly axesDesign?: AxesDesign;
|
|
383
425
|
}
|
|
384
426
|
interface ChartCreationContext {
|
|
385
|
-
readonly range?:
|
|
386
|
-
readonly title?:
|
|
427
|
+
readonly range?: CustomizedDataSet[];
|
|
428
|
+
readonly title?: TitleDesign;
|
|
387
429
|
readonly background?: string;
|
|
388
430
|
readonly auxiliaryRange?: string;
|
|
389
431
|
readonly aggregated?: boolean;
|
|
@@ -394,8 +436,8 @@ interface ChartCreationContext {
|
|
|
394
436
|
readonly showSubTotals?: boolean;
|
|
395
437
|
readonly showConnectorLines?: boolean;
|
|
396
438
|
readonly firstValueAsSubtotal?: boolean;
|
|
397
|
-
readonly verticalAxisPosition?: VerticalAxisPosition;
|
|
398
439
|
readonly legendPosition?: LegendPosition;
|
|
440
|
+
readonly axesDesign?: AxesDesign;
|
|
399
441
|
}
|
|
400
442
|
|
|
401
443
|
declare enum ClipboardMIMEType {
|
|
@@ -406,9 +448,9 @@ type ClipboardContent = {
|
|
|
406
448
|
[type in ClipboardMIMEType]?: string;
|
|
407
449
|
};
|
|
408
450
|
interface ClipboardOptions {
|
|
451
|
+
isCutOperation: boolean;
|
|
409
452
|
pasteOption?: ClipboardPasteOptions;
|
|
410
453
|
selectTarget?: boolean;
|
|
411
|
-
isCutOperation?: boolean;
|
|
412
454
|
}
|
|
413
455
|
type ClipboardPasteOptions = "onlyFormat" | "asValue";
|
|
414
456
|
type ClipboardOperation = "CUT" | "COPY";
|
|
@@ -457,7 +499,7 @@ interface SearchOptions {
|
|
|
457
499
|
}
|
|
458
500
|
|
|
459
501
|
type Aggregator = "array_agg" | "count" | "count_distinct" | "bool_and" | "bool_or" | "max" | "min" | "avg" | "sum";
|
|
460
|
-
type Granularity = "day" | "week" | "month" | "quarter" | "year";
|
|
502
|
+
type Granularity = "day" | "week" | "month" | "quarter" | "year" | "day_of_month" | "iso_week_number" | "month_number" | "quarter_number" | "year_number";
|
|
461
503
|
interface PivotCoreDimension {
|
|
462
504
|
name: string;
|
|
463
505
|
order?: "asc" | "desc";
|
|
@@ -475,48 +517,54 @@ interface CommonPivotCoreDefinition {
|
|
|
475
517
|
}
|
|
476
518
|
interface SpreadsheetPivotCoreDefinition extends CommonPivotCoreDefinition {
|
|
477
519
|
type: "SPREADSHEET";
|
|
520
|
+
dataSet?: {
|
|
521
|
+
sheetId: UID;
|
|
522
|
+
zone: Zone;
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
interface FakePivotDefinition extends CommonPivotCoreDefinition {
|
|
526
|
+
type: "FAKE";
|
|
478
527
|
}
|
|
479
|
-
type PivotCoreDefinition = SpreadsheetPivotCoreDefinition;
|
|
528
|
+
type PivotCoreDefinition = SpreadsheetPivotCoreDefinition | FakePivotDefinition;
|
|
529
|
+
type TechnicalName = string;
|
|
480
530
|
interface PivotField {
|
|
481
|
-
name:
|
|
531
|
+
name: TechnicalName;
|
|
482
532
|
type: string;
|
|
483
533
|
string: string;
|
|
484
|
-
relation?: string;
|
|
485
|
-
searchable?: boolean;
|
|
486
534
|
aggregator?: string;
|
|
487
|
-
store?: boolean;
|
|
488
|
-
groupable?: boolean;
|
|
489
535
|
help?: string;
|
|
490
536
|
}
|
|
491
|
-
type PivotFields = Record<
|
|
537
|
+
type PivotFields = Record<TechnicalName, PivotField | undefined>;
|
|
492
538
|
interface PivotMeasure extends PivotCoreMeasure {
|
|
493
539
|
nameWithAggregator: string;
|
|
494
540
|
displayName: string;
|
|
495
541
|
type: string;
|
|
542
|
+
isValid: boolean;
|
|
496
543
|
}
|
|
497
544
|
interface PivotDimension$1 extends PivotCoreDimension {
|
|
498
545
|
nameWithGranularity: string;
|
|
499
546
|
displayName: string;
|
|
500
547
|
type: string;
|
|
548
|
+
isValid: boolean;
|
|
501
549
|
}
|
|
502
|
-
interface
|
|
550
|
+
interface PivotTableColumn {
|
|
503
551
|
fields: string[];
|
|
504
552
|
values: string[];
|
|
505
553
|
width: number;
|
|
506
554
|
offset: number;
|
|
507
555
|
}
|
|
508
|
-
interface
|
|
556
|
+
interface PivotTableRow {
|
|
509
557
|
fields: string[];
|
|
510
558
|
values: string[];
|
|
511
559
|
indent: number;
|
|
512
560
|
}
|
|
513
|
-
interface
|
|
514
|
-
cols:
|
|
515
|
-
rows:
|
|
561
|
+
interface PivotTableData {
|
|
562
|
+
cols: PivotTableColumn[][];
|
|
563
|
+
rows: PivotTableRow[];
|
|
516
564
|
measures: string[];
|
|
517
565
|
rowTitle?: string;
|
|
518
566
|
}
|
|
519
|
-
interface
|
|
567
|
+
interface PivotTableCell {
|
|
520
568
|
isHeader: boolean;
|
|
521
569
|
domain?: string[];
|
|
522
570
|
content?: string;
|
|
@@ -528,6 +576,11 @@ interface PivotTimeAdapter<T> {
|
|
|
528
576
|
getFormat: (locale?: Locale) => Format | undefined;
|
|
529
577
|
toCellValue: (normalizedValue: T) => CellValue;
|
|
530
578
|
}
|
|
579
|
+
interface DomainArg {
|
|
580
|
+
field: string;
|
|
581
|
+
value: string;
|
|
582
|
+
}
|
|
583
|
+
type StringDomainArgs = string[];
|
|
531
584
|
|
|
532
585
|
interface Table {
|
|
533
586
|
readonly id: TableId;
|
|
@@ -644,11 +697,11 @@ interface ZoneDependentCommand {
|
|
|
644
697
|
}
|
|
645
698
|
declare function isZoneDependent(cmd: CoreCommand): boolean;
|
|
646
699
|
declare function isPositionDependent(cmd: CoreCommand): boolean;
|
|
647
|
-
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" | "
|
|
648
|
-
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" | "
|
|
649
|
-
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" | "
|
|
650
|
-
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" | "
|
|
651
|
-
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" | "
|
|
700
|
+
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">;
|
|
701
|
+
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">;
|
|
702
|
+
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">;
|
|
703
|
+
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">;
|
|
704
|
+
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">;
|
|
652
705
|
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">;
|
|
653
706
|
declare function isCoreCommand(cmd: Command): cmd is CoreCommand;
|
|
654
707
|
declare function canExecuteInReadonly(cmd: Command): boolean;
|
|
@@ -902,7 +955,7 @@ interface UpdatePivotCommand {
|
|
|
902
955
|
interface InsertPivotCommand extends PositionDependentCommand {
|
|
903
956
|
type: "INSERT_PIVOT";
|
|
904
957
|
pivotId: UID;
|
|
905
|
-
table:
|
|
958
|
+
table: PivotTableData;
|
|
906
959
|
}
|
|
907
960
|
interface RenamePivotCommand {
|
|
908
961
|
type: "RENAME_PIVOT";
|
|
@@ -1164,13 +1217,15 @@ interface SplitTextIntoColumnsCommand {
|
|
|
1164
1217
|
addNewColumns: boolean;
|
|
1165
1218
|
force?: boolean;
|
|
1166
1219
|
}
|
|
1167
|
-
interface RenderCanvasCommand {
|
|
1168
|
-
type: "RENDER_CANVAS";
|
|
1169
|
-
}
|
|
1170
1220
|
interface RefreshPivotCommand {
|
|
1171
1221
|
type: "REFRESH_PIVOT";
|
|
1172
1222
|
id: UID;
|
|
1173
1223
|
}
|
|
1224
|
+
interface InsertNewPivotCommand {
|
|
1225
|
+
type: "INSERT_NEW_PIVOT";
|
|
1226
|
+
pivotId: UID;
|
|
1227
|
+
newSheetId: UID;
|
|
1228
|
+
}
|
|
1174
1229
|
type CoreCommand =
|
|
1175
1230
|
/** CELLS */
|
|
1176
1231
|
UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContentCommand
|
|
@@ -1202,7 +1257,7 @@ UpdateCellCommand | UpdateCellPositionCommand | ClearCellCommand | DeleteContent
|
|
|
1202
1257
|
| UpdateLocaleCommand
|
|
1203
1258
|
/** PIVOT */
|
|
1204
1259
|
| AddPivotCommand | UpdatePivotCommand | InsertPivotCommand | RenamePivotCommand | RemovePivotCommand | DuplicatePivotCommand;
|
|
1205
|
-
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 |
|
|
1260
|
+
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;
|
|
1206
1261
|
type Command = CoreCommand | LocalCommand;
|
|
1207
1262
|
/**
|
|
1208
1263
|
* Holds the result of a command dispatch.
|
|
@@ -1296,6 +1351,7 @@ declare const enum CommandResult {
|
|
|
1296
1351
|
Readonly = "Readonly",
|
|
1297
1352
|
InvalidViewportSize = "InvalidViewportSize",
|
|
1298
1353
|
InvalidScrollingDirection = "InvalidScrollingDirection",
|
|
1354
|
+
ViewportScrollLimitsReached = "ViewportScrollLimitsReached",
|
|
1299
1355
|
FigureDoesNotExist = "FigureDoesNotExist",
|
|
1300
1356
|
InvalidConditionalFormatId = "InvalidConditionalFormatId",
|
|
1301
1357
|
InvalidCellPopover = "InvalidCellPopover",
|
|
@@ -1629,7 +1685,6 @@ interface PixelPosition {
|
|
|
1629
1685
|
}
|
|
1630
1686
|
interface Merge extends Zone {
|
|
1631
1687
|
id: number;
|
|
1632
|
-
topLeft: Position$1;
|
|
1633
1688
|
}
|
|
1634
1689
|
interface Highlight$1 {
|
|
1635
1690
|
zone: Zone;
|
|
@@ -1744,7 +1799,6 @@ type DebouncedFunction<T> = T & {
|
|
|
1744
1799
|
interface GridClickModifiers {
|
|
1745
1800
|
addZone: boolean;
|
|
1746
1801
|
expandZone: boolean;
|
|
1747
|
-
closePopover: boolean;
|
|
1748
1802
|
}
|
|
1749
1803
|
|
|
1750
1804
|
type LocaleCode = string & Alias;
|
|
@@ -2187,6 +2241,19 @@ interface ClipboardInterface {
|
|
|
2187
2241
|
readText(): Promise<ClipboardReadResult>;
|
|
2188
2242
|
}
|
|
2189
2243
|
|
|
2244
|
+
interface NotificationStoreMethods {
|
|
2245
|
+
notifyUser: (notification: InformationNotification) => void;
|
|
2246
|
+
raiseError: (text: string, callback?: () => void) => void;
|
|
2247
|
+
askConfirmation: (content: string, confirm: () => void, cancel?: () => void) => void;
|
|
2248
|
+
}
|
|
2249
|
+
declare class NotificationStore {
|
|
2250
|
+
mutators: readonly ["notifyUser", "raiseError", "askConfirmation", "updateNotificationCallbacks"];
|
|
2251
|
+
notifyUser: NotificationStoreMethods["notifyUser"];
|
|
2252
|
+
askConfirmation: NotificationStoreMethods["askConfirmation"];
|
|
2253
|
+
raiseError: NotificationStoreMethods["raiseError"];
|
|
2254
|
+
updateNotificationCallbacks(methods: Partial<NotificationStoreMethods>): void;
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2190
2257
|
type FilePath = string;
|
|
2191
2258
|
/**
|
|
2192
2259
|
* FileStore manage the transfer of file with the server.
|
|
@@ -2222,12 +2289,7 @@ interface InformationNotification {
|
|
|
2222
2289
|
type: NotificationType;
|
|
2223
2290
|
sticky: boolean;
|
|
2224
2291
|
}
|
|
2225
|
-
interface
|
|
2226
|
-
notifyUser: (notification: InformationNotification) => any;
|
|
2227
|
-
raiseError: (text: string, callback?: () => void) => any;
|
|
2228
|
-
askConfirmation: (content: string, confirm: () => any, cancel?: () => any) => any;
|
|
2229
|
-
}
|
|
2230
|
-
interface SpreadsheetChildEnv extends SpreadsheetEnv {
|
|
2292
|
+
interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
2231
2293
|
model: Model;
|
|
2232
2294
|
imageProvider?: ImageProviderInterface;
|
|
2233
2295
|
isDashboard: () => boolean;
|
|
@@ -2240,6 +2302,7 @@ interface SpreadsheetChildEnv extends SpreadsheetEnv {
|
|
|
2240
2302
|
getStore: Get;
|
|
2241
2303
|
}
|
|
2242
2304
|
|
|
2305
|
+
type HistoryPath = [any, ...(number | string)[]];
|
|
2243
2306
|
declare class StateObserver {
|
|
2244
2307
|
private changes;
|
|
2245
2308
|
private commands;
|
|
@@ -2252,7 +2315,7 @@ declare class StateObserver {
|
|
|
2252
2315
|
commands: CoreCommand[];
|
|
2253
2316
|
};
|
|
2254
2317
|
addCommand(command: CoreCommand): void;
|
|
2255
|
-
addChange(...args: [...
|
|
2318
|
+
addChange(...args: [...HistoryPath, any]): void;
|
|
2256
2319
|
}
|
|
2257
2320
|
|
|
2258
2321
|
interface Validator {
|
|
@@ -2336,7 +2399,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
2336
2399
|
private getters;
|
|
2337
2400
|
private providers;
|
|
2338
2401
|
constructor(getters: CoreGetters);
|
|
2339
|
-
static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid"];
|
|
2402
|
+
static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
2340
2403
|
allowDispatch(cmd: Command): CommandResult;
|
|
2341
2404
|
beforeHandle(command: Command): void;
|
|
2342
2405
|
handle(cmd: Command): void;
|
|
@@ -2360,6 +2423,10 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
|
2360
2423
|
*/
|
|
2361
2424
|
addRangeProvider(provider: RangeProvider["adaptRanges"]): void;
|
|
2362
2425
|
createAdaptedRanges(ranges: Range[], offsetX: number, offsetY: number, sheetId: UID): Range[];
|
|
2426
|
+
/**
|
|
2427
|
+
* Remove the sheet name prefix if a range is part of the given sheet.
|
|
2428
|
+
*/
|
|
2429
|
+
removeRangesSheetPrefix(sheetId: UID, ranges: Range[]): Range[];
|
|
2363
2430
|
extendRange(range: Range, dimension: Dimension, quantity: number): Range;
|
|
2364
2431
|
/**
|
|
2365
2432
|
* Creates a range from a XC reference that can contain a sheet reference
|
|
@@ -2569,7 +2636,7 @@ interface CoreState$1 {
|
|
|
2569
2636
|
* cell and sheet content.
|
|
2570
2637
|
*/
|
|
2571
2638
|
declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1 {
|
|
2572
|
-
static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById"];
|
|
2639
|
+
static getters: readonly ["zoneToXC", "getCells", "getTranslatedCellFormula", "getCellStyle", "getCellById", "getFormulaMovedInSheet"];
|
|
2573
2640
|
readonly nextId = 1;
|
|
2574
2641
|
readonly cells: {
|
|
2575
2642
|
[sheetId: string]: {
|
|
@@ -2609,6 +2676,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
2609
2676
|
getCellById(cellId: UID): Cell | undefined;
|
|
2610
2677
|
private getFormulaCellContent;
|
|
2611
2678
|
getTranslatedCellFormula(sheetId: UID, offsetX: number, offsetY: number, compiledFormula: RangeCompiledFormula): string;
|
|
2679
|
+
getFormulaMovedInSheet(targetSheetId: UID, compiledFormula: RangeCompiledFormula): string;
|
|
2612
2680
|
getCellStyle(position: CellPosition): Style;
|
|
2613
2681
|
/**
|
|
2614
2682
|
* Converts a zone to a XC coordinate system
|
|
@@ -2662,7 +2730,7 @@ declare class CellPlugin extends CorePlugin<CoreState$1> implements CoreState$1
|
|
|
2662
2730
|
*/
|
|
2663
2731
|
declare abstract class AbstractChart {
|
|
2664
2732
|
readonly sheetId: UID;
|
|
2665
|
-
readonly title:
|
|
2733
|
+
readonly title: TitleDesign;
|
|
2666
2734
|
abstract readonly type: ChartType;
|
|
2667
2735
|
protected readonly getters: CoreGetters;
|
|
2668
2736
|
constructor(definition: ChartDefinition, sheetId: UID, getters: CoreGetters);
|
|
@@ -3082,29 +3150,23 @@ declare class MergePlugin extends CorePlugin<MergeState> implements MergeState {
|
|
|
3082
3150
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
3083
3151
|
}
|
|
3084
3152
|
|
|
3085
|
-
interface
|
|
3086
|
-
|
|
3087
|
-
* The formula id is the id that is used in the formula to identify the pivot.
|
|
3088
|
-
* It's different from the pivot id, which is the id of the pivot in the state.
|
|
3089
|
-
* The formula id is a readable id, auto-incremented. The pivotId is a UID.
|
|
3090
|
-
* We need this distinction to be assured that the pivotId is unique in a
|
|
3091
|
-
* context of collaboration.
|
|
3092
|
-
*/
|
|
3153
|
+
interface Pivot$1 {
|
|
3154
|
+
definition: PivotCoreDefinition;
|
|
3093
3155
|
formulaId: string;
|
|
3094
3156
|
}
|
|
3095
3157
|
interface CoreState {
|
|
3096
3158
|
nextFormulaId: number;
|
|
3097
|
-
pivots: Record<UID,
|
|
3159
|
+
pivots: Record<UID, Pivot$1 | undefined>;
|
|
3098
3160
|
formulaIds: Record<UID, string | undefined>;
|
|
3099
3161
|
}
|
|
3100
3162
|
declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
|
|
3101
3163
|
static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getPivotName", "isExistingPivot"];
|
|
3102
3164
|
readonly nextFormulaId: number;
|
|
3103
3165
|
readonly pivots: {
|
|
3104
|
-
[
|
|
3166
|
+
[pivotId: UID]: Pivot$1 | undefined;
|
|
3105
3167
|
};
|
|
3106
3168
|
readonly formulaIds: {
|
|
3107
|
-
[
|
|
3169
|
+
[formulaId: UID]: UID | undefined;
|
|
3108
3170
|
};
|
|
3109
3171
|
allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.NoChanges | CommandResult.PivotIdNotFound | CommandResult.EmptyName;
|
|
3110
3172
|
handle(cmd: CoreCommand): void;
|
|
@@ -3119,7 +3181,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
3119
3181
|
/**
|
|
3120
3182
|
* Get the pivot ID (UID) from the formula ID (the one used in the formula)
|
|
3121
3183
|
*/
|
|
3122
|
-
getPivotId(formulaId: string):
|
|
3184
|
+
getPivotId(formulaId: string): UID | undefined;
|
|
3123
3185
|
getPivotFormulaId(pivotId: UID): string;
|
|
3124
3186
|
getPivotIds(): UID[];
|
|
3125
3187
|
isExistingPivot(pivotId: UID): boolean;
|
|
@@ -3127,6 +3189,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
3127
3189
|
private insertPivot;
|
|
3128
3190
|
private resizeSheet;
|
|
3129
3191
|
private addPivotFormula;
|
|
3192
|
+
private getPivotCore;
|
|
3130
3193
|
/**
|
|
3131
3194
|
* Import the pivots
|
|
3132
3195
|
*/
|
|
@@ -3497,9 +3560,9 @@ interface SheetData {
|
|
|
3497
3560
|
interface WorkbookSettings {
|
|
3498
3561
|
locale: Locale;
|
|
3499
3562
|
}
|
|
3500
|
-
|
|
3563
|
+
type PivotData = {
|
|
3501
3564
|
formulaId: string;
|
|
3502
|
-
}
|
|
3565
|
+
} & PivotCoreDefinition;
|
|
3503
3566
|
interface WorkbookData {
|
|
3504
3567
|
version: number;
|
|
3505
3568
|
sheets: SheetData[];
|
|
@@ -4081,6 +4144,8 @@ declare class PivotRuntimeDefinition {
|
|
|
4081
4144
|
readonly columns: PivotDimension$1[];
|
|
4082
4145
|
readonly rows: PivotDimension$1[];
|
|
4083
4146
|
constructor(definition: CommonPivotCoreDefinition, fields: PivotFields);
|
|
4147
|
+
getDimension(nameWithGranularity: string): PivotDimension$1;
|
|
4148
|
+
getMeasure(name: string): PivotMeasure;
|
|
4084
4149
|
}
|
|
4085
4150
|
|
|
4086
4151
|
/**
|
|
@@ -4126,20 +4191,20 @@ declare class PivotRuntimeDefinition {
|
|
|
4126
4191
|
*
|
|
4127
4192
|
*/
|
|
4128
4193
|
declare class SpreadsheetPivotTable {
|
|
4129
|
-
readonly columns:
|
|
4130
|
-
readonly rows:
|
|
4194
|
+
readonly columns: PivotTableColumn[][];
|
|
4195
|
+
readonly rows: PivotTableRow[];
|
|
4131
4196
|
readonly measures: string[];
|
|
4132
4197
|
readonly rowTitle?: string;
|
|
4133
4198
|
readonly maxIndent: number;
|
|
4134
4199
|
readonly pivotCells: {
|
|
4135
|
-
[key: string]:
|
|
4200
|
+
[key: string]: PivotTableCell[][];
|
|
4136
4201
|
};
|
|
4137
|
-
constructor(columns:
|
|
4202
|
+
constructor(columns: PivotTableColumn[][], rows: PivotTableRow[], measures: string[], rowTitle?: string);
|
|
4138
4203
|
/**
|
|
4139
4204
|
* Get the number of columns leafs (i.e. the number of the last row of columns)
|
|
4140
4205
|
*/
|
|
4141
4206
|
getNumberOfDataColumns(): number;
|
|
4142
|
-
getPivotCells(includeTotal?: boolean, includeColumnHeaders?: boolean):
|
|
4207
|
+
getPivotCells(includeTotal?: boolean, includeColumnHeaders?: boolean): PivotTableCell[][];
|
|
4143
4208
|
private isTotalRow;
|
|
4144
4209
|
private getPivotCell;
|
|
4145
4210
|
private getColHeaderDomain;
|
|
@@ -4147,32 +4212,34 @@ declare class SpreadsheetPivotTable {
|
|
|
4147
4212
|
private getColMeasure;
|
|
4148
4213
|
private getRowDomain;
|
|
4149
4214
|
export(): {
|
|
4150
|
-
cols:
|
|
4151
|
-
rows:
|
|
4215
|
+
cols: PivotTableColumn[][];
|
|
4216
|
+
rows: PivotTableRow[];
|
|
4152
4217
|
measures: string[];
|
|
4153
4218
|
rowTitle: string | undefined;
|
|
4154
4219
|
};
|
|
4155
4220
|
}
|
|
4156
4221
|
|
|
4222
|
+
interface InitPivotParams {
|
|
4223
|
+
reload?: boolean;
|
|
4224
|
+
}
|
|
4157
4225
|
interface Pivot<T = PivotRuntimeDefinition> {
|
|
4226
|
+
type: PivotCoreDefinition["type"];
|
|
4158
4227
|
definition: T;
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
getLastPivotGroupValue(domain: Array<string | number>): string | boolean | number;
|
|
4228
|
+
init(params?: InitPivotParams): void;
|
|
4229
|
+
isValid(): boolean;
|
|
4162
4230
|
getTableStructure(): SpreadsheetPivotTable;
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4231
|
+
getFields(): PivotFields | undefined;
|
|
4232
|
+
getPivotHeaderValueAndFormat(domain: StringDomainArgs): FPayload;
|
|
4233
|
+
getPivotCellValueAndFormat(measure: string, domain: StringDomainArgs): FPayload;
|
|
4234
|
+
getMeasure: (name: string) => PivotMeasure;
|
|
4166
4235
|
assertIsValid({ throwOnError }: {
|
|
4167
4236
|
throwOnError: boolean;
|
|
4168
4237
|
}): FPayload | undefined;
|
|
4169
|
-
load(params: unknown): Promise<void>;
|
|
4170
|
-
getFields(): PivotFields | undefined;
|
|
4171
|
-
isLoadedAndValid(): boolean;
|
|
4172
4238
|
getPossibleFieldValues(groupBy: string): {
|
|
4173
4239
|
value: string | boolean | number;
|
|
4174
4240
|
label: string;
|
|
4175
4241
|
}[];
|
|
4242
|
+
needsReevaluation: boolean;
|
|
4176
4243
|
}
|
|
4177
4244
|
|
|
4178
4245
|
declare class PivotUIPlugin extends UIPlugin {
|
|
@@ -4187,7 +4254,7 @@ declare class PivotUIPlugin extends UIPlugin {
|
|
|
4187
4254
|
* Get the id of the pivot at the given position. Returns undefined if there
|
|
4188
4255
|
* is no pivot at this position
|
|
4189
4256
|
*/
|
|
4190
|
-
getPivotIdFromPosition(position: CellPosition):
|
|
4257
|
+
getPivotIdFromPosition(position: CellPosition): "" | UID | undefined;
|
|
4191
4258
|
getFirstPivotFunction(tokens: Token[]): {
|
|
4192
4259
|
functionName: string;
|
|
4193
4260
|
args: (CellValue | Matrix<CellValue> | undefined)[];
|
|
@@ -4207,7 +4274,6 @@ declare class PivotUIPlugin extends UIPlugin {
|
|
|
4207
4274
|
*/
|
|
4208
4275
|
getPivotDomainArgsFromPosition(position: CellPosition): (CellValue | Matrix<CellValue> | undefined)[] | undefined;
|
|
4209
4276
|
getPivot(pivotId: UID): Pivot<PivotRuntimeDefinition>;
|
|
4210
|
-
getPivotDataSourceId(pivotId: UID): string;
|
|
4211
4277
|
isPivotUnused(pivotId: UID): boolean;
|
|
4212
4278
|
/**
|
|
4213
4279
|
* Check if the fields in the domain part of
|
|
@@ -4608,7 +4674,7 @@ declare class ClipboardPlugin extends UIPlugin {
|
|
|
4608
4674
|
private paintFormatStatus;
|
|
4609
4675
|
private originSheetId?;
|
|
4610
4676
|
private copiedData?;
|
|
4611
|
-
private _isCutOperation
|
|
4677
|
+
private _isCutOperation;
|
|
4612
4678
|
allowDispatch(cmd: LocalCommand): CommandResult;
|
|
4613
4679
|
handle(cmd: Command): void;
|
|
4614
4680
|
private convertOSClipboardData;
|
|
@@ -4812,6 +4878,7 @@ declare class InternalViewport {
|
|
|
4812
4878
|
adjustPosition(position: Position$1): void;
|
|
4813
4879
|
private adjustPositionX;
|
|
4814
4880
|
private adjustPositionY;
|
|
4881
|
+
willNewOffsetScrollViewport(offsetX: Pixel, offsetY: Pixel): boolean;
|
|
4815
4882
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
4816
4883
|
adjustViewportZone(): void;
|
|
4817
4884
|
/**
|
|
@@ -4980,6 +5047,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
4980
5047
|
private checkPositiveDimension;
|
|
4981
5048
|
private checkValuesAreDifferent;
|
|
4982
5049
|
private checkScrollingDirection;
|
|
5050
|
+
private checkIfViewportsWillChange;
|
|
4983
5051
|
private getMainViewport;
|
|
4984
5052
|
private getMainInternalViewport;
|
|
4985
5053
|
/** gets rid of deprecated sheetIds */
|
|
@@ -5188,9 +5256,9 @@ interface CreateRevisionOptions {
|
|
|
5188
5256
|
pending?: boolean;
|
|
5189
5257
|
}
|
|
5190
5258
|
interface HistoryChange {
|
|
5191
|
-
|
|
5259
|
+
key: string;
|
|
5260
|
+
target: any;
|
|
5192
5261
|
before: any;
|
|
5193
|
-
after: any;
|
|
5194
5262
|
}
|
|
5195
5263
|
interface WorkbookHistory<Plugin> {
|
|
5196
5264
|
update<T extends keyof Plugin>(key: T, val: Plugin[T]): void;
|
|
@@ -5326,6 +5394,12 @@ declare function rgbaToHex(rgba: RGBA): Color;
|
|
|
5326
5394
|
* Color string to RGBA representation
|
|
5327
5395
|
*/
|
|
5328
5396
|
declare function colorToRGBA(color: Color): RGBA;
|
|
5397
|
+
declare class ColorGenerator {
|
|
5398
|
+
private currentColorIndex;
|
|
5399
|
+
private colors;
|
|
5400
|
+
constructor(colors?: string[]);
|
|
5401
|
+
next(): string;
|
|
5402
|
+
}
|
|
5329
5403
|
|
|
5330
5404
|
/**
|
|
5331
5405
|
* Convert a (col) number to the corresponding letter.
|
|
@@ -5389,6 +5463,7 @@ declare class DateTime {
|
|
|
5389
5463
|
getHours(): number;
|
|
5390
5464
|
getMinutes(): number;
|
|
5391
5465
|
getSeconds(): number;
|
|
5466
|
+
getIsoWeek(): number;
|
|
5392
5467
|
setFullYear(year: number): number;
|
|
5393
5468
|
setMonth(month: number): number;
|
|
5394
5469
|
setDate(date: number): number;
|
|
@@ -5772,15 +5847,24 @@ declare class Registry<T> {
|
|
|
5772
5847
|
remove(key: string): void;
|
|
5773
5848
|
}
|
|
5774
5849
|
|
|
5850
|
+
interface PivotRegistryItem$1 {
|
|
5851
|
+
editor: new (...args: any) => Component;
|
|
5852
|
+
}
|
|
5853
|
+
|
|
5775
5854
|
interface PivotParams {
|
|
5776
5855
|
definition: PivotCoreDefinition;
|
|
5777
5856
|
getters: Getters;
|
|
5778
5857
|
}
|
|
5779
|
-
type
|
|
5780
|
-
type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields) => PivotRuntimeDefinition;
|
|
5858
|
+
type PivotUIConstructor = new (custom: ModelConfig["custom"], params: PivotParams) => Pivot;
|
|
5859
|
+
type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields: PivotFields, getters: Getters) => PivotRuntimeDefinition;
|
|
5781
5860
|
interface PivotRegistryItem {
|
|
5782
|
-
|
|
5861
|
+
ui: PivotUIConstructor;
|
|
5783
5862
|
definition: PivotDefinitionConstructor;
|
|
5863
|
+
externalData: boolean;
|
|
5864
|
+
onIterationEndEvaluation: (pivot: Pivot) => void;
|
|
5865
|
+
granularities: string[];
|
|
5866
|
+
isMeasureCandidate: (field: PivotField) => boolean;
|
|
5867
|
+
isGroupable: (field: PivotField) => boolean;
|
|
5784
5868
|
}
|
|
5785
5869
|
|
|
5786
5870
|
declare class ClipboardHandler<T> {
|
|
@@ -6134,7 +6218,7 @@ declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFu
|
|
|
6134
6218
|
}
|
|
6135
6219
|
|
|
6136
6220
|
interface CellClickableItem {
|
|
6137
|
-
condition: (position: CellPosition,
|
|
6221
|
+
condition: (position: CellPosition, getters: Getters) => boolean;
|
|
6138
6222
|
execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
6139
6223
|
sequence: number;
|
|
6140
6224
|
}
|
|
@@ -6162,6 +6246,64 @@ interface ChartBuilder {
|
|
|
6162
6246
|
sequence: number;
|
|
6163
6247
|
}
|
|
6164
6248
|
|
|
6249
|
+
interface Props$Z {
|
|
6250
|
+
label?: string;
|
|
6251
|
+
value: boolean;
|
|
6252
|
+
className?: string;
|
|
6253
|
+
name?: string;
|
|
6254
|
+
title?: string;
|
|
6255
|
+
disabled?: boolean;
|
|
6256
|
+
onChange: (value: boolean) => void;
|
|
6257
|
+
}
|
|
6258
|
+
declare class Checkbox extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
6259
|
+
static template: string;
|
|
6260
|
+
static props: {
|
|
6261
|
+
label: {
|
|
6262
|
+
type: StringConstructor;
|
|
6263
|
+
optional: boolean;
|
|
6264
|
+
};
|
|
6265
|
+
value: {
|
|
6266
|
+
type: BooleanConstructor;
|
|
6267
|
+
optional: boolean;
|
|
6268
|
+
};
|
|
6269
|
+
className: {
|
|
6270
|
+
type: StringConstructor;
|
|
6271
|
+
optional: boolean;
|
|
6272
|
+
};
|
|
6273
|
+
name: {
|
|
6274
|
+
type: StringConstructor;
|
|
6275
|
+
optional: boolean;
|
|
6276
|
+
};
|
|
6277
|
+
title: {
|
|
6278
|
+
type: StringConstructor;
|
|
6279
|
+
optional: boolean;
|
|
6280
|
+
};
|
|
6281
|
+
disabled: {
|
|
6282
|
+
type: BooleanConstructor;
|
|
6283
|
+
optional: boolean;
|
|
6284
|
+
};
|
|
6285
|
+
onChange: FunctionConstructor;
|
|
6286
|
+
};
|
|
6287
|
+
static defaultProps: {
|
|
6288
|
+
value: boolean;
|
|
6289
|
+
};
|
|
6290
|
+
onChange(ev: InputEvent): void;
|
|
6291
|
+
}
|
|
6292
|
+
|
|
6293
|
+
interface Props$Y {
|
|
6294
|
+
class?: string;
|
|
6295
|
+
}
|
|
6296
|
+
declare class Section extends Component<Props$Y, SpreadsheetChildEnv> {
|
|
6297
|
+
static template: string;
|
|
6298
|
+
static props: {
|
|
6299
|
+
class: {
|
|
6300
|
+
type: StringConstructor;
|
|
6301
|
+
optional: boolean;
|
|
6302
|
+
};
|
|
6303
|
+
slots: ObjectConstructor;
|
|
6304
|
+
};
|
|
6305
|
+
}
|
|
6306
|
+
|
|
6165
6307
|
declare class SpreadsheetStore extends DisposableStore {
|
|
6166
6308
|
protected model: Model;
|
|
6167
6309
|
protected getters: Getters;
|
|
@@ -6177,6 +6319,7 @@ interface HighlightProvider {
|
|
|
6177
6319
|
highlights: Highlight$1[];
|
|
6178
6320
|
}
|
|
6179
6321
|
declare class HighlightStore extends SpreadsheetStore {
|
|
6322
|
+
mutators: readonly ["register", "unRegister"];
|
|
6180
6323
|
private providers;
|
|
6181
6324
|
constructor(get: Get);
|
|
6182
6325
|
get renderingLayers(): readonly ["Highlights"];
|
|
@@ -6201,19 +6344,20 @@ interface RangeInputValue {
|
|
|
6201
6344
|
declare class SelectionInputStore extends SpreadsheetStore {
|
|
6202
6345
|
private initialRanges;
|
|
6203
6346
|
private readonly inputHasSingleRange;
|
|
6347
|
+
private readonly colors;
|
|
6348
|
+
mutators: readonly ["resetWithRanges", "focusById", "unfocus", "addEmptyRange", "removeRange", "changeRange", "reset", "confirm"];
|
|
6204
6349
|
ranges: RangeInputValue[];
|
|
6205
6350
|
focusedRangeIndex: number | null;
|
|
6206
6351
|
private inputSheetId;
|
|
6207
6352
|
private focusStore;
|
|
6208
6353
|
protected highlightStore: {
|
|
6209
|
-
readonly renderingLayers: readonly ["Highlights"];
|
|
6210
|
-
readonly highlights: Highlight$1[];
|
|
6211
6354
|
readonly register: (highlightProvider: HighlightProvider) => void;
|
|
6212
6355
|
readonly unRegister: (highlightProvider: HighlightProvider) => void;
|
|
6213
|
-
readonly
|
|
6214
|
-
readonly
|
|
6356
|
+
readonly mutators: readonly ["register", "unRegister"];
|
|
6357
|
+
readonly renderingLayers: readonly ["Highlights"];
|
|
6358
|
+
readonly highlights: Highlight$1[];
|
|
6215
6359
|
};
|
|
6216
|
-
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean);
|
|
6360
|
+
constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean, colors?: Color[]);
|
|
6217
6361
|
handleEvent(event: SelectionEvent): void;
|
|
6218
6362
|
handle(cmd: Command): void;
|
|
6219
6363
|
changeRange(rangeId: number, value: string): void;
|
|
@@ -6285,6 +6429,7 @@ interface Props$X {
|
|
|
6285
6429
|
class?: string;
|
|
6286
6430
|
onSelectionChanged?: (ranges: string[]) => void;
|
|
6287
6431
|
onSelectionConfirmed?: () => void;
|
|
6432
|
+
colors?: Color[];
|
|
6288
6433
|
}
|
|
6289
6434
|
interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
6290
6435
|
isFocused: boolean;
|
|
@@ -6327,6 +6472,11 @@ declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
|
|
|
6327
6472
|
type: FunctionConstructor;
|
|
6328
6473
|
optional: boolean;
|
|
6329
6474
|
};
|
|
6475
|
+
colors: {
|
|
6476
|
+
type: ArrayConstructor;
|
|
6477
|
+
optional: boolean;
|
|
6478
|
+
default: never[];
|
|
6479
|
+
};
|
|
6330
6480
|
};
|
|
6331
6481
|
private state;
|
|
6332
6482
|
private focusedInput;
|
|
@@ -6350,10 +6500,36 @@ declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
|
|
|
6350
6500
|
}
|
|
6351
6501
|
|
|
6352
6502
|
interface Props$W {
|
|
6503
|
+
ranges: CustomizedDataSet[];
|
|
6504
|
+
hasSingleRange?: boolean;
|
|
6505
|
+
onSelectionChanged: (ranges: string[]) => void;
|
|
6506
|
+
onSelectionConfirmed: () => void;
|
|
6507
|
+
}
|
|
6508
|
+
declare class ChartDataSeries extends Component<Props$W, SpreadsheetChildEnv> {
|
|
6509
|
+
static template: string;
|
|
6510
|
+
static components: {
|
|
6511
|
+
SelectionInput: typeof SelectionInput;
|
|
6512
|
+
Section: typeof Section;
|
|
6513
|
+
};
|
|
6514
|
+
static props: {
|
|
6515
|
+
ranges: ArrayConstructor;
|
|
6516
|
+
hasSingleRange: {
|
|
6517
|
+
type: BooleanConstructor;
|
|
6518
|
+
optional: boolean;
|
|
6519
|
+
};
|
|
6520
|
+
onSelectionChanged: FunctionConstructor;
|
|
6521
|
+
onSelectionConfirmed: FunctionConstructor;
|
|
6522
|
+
};
|
|
6523
|
+
get ranges(): string[];
|
|
6524
|
+
get colors(): (Color | undefined)[];
|
|
6525
|
+
get title(): string;
|
|
6526
|
+
}
|
|
6527
|
+
|
|
6528
|
+
interface Props$V {
|
|
6353
6529
|
messages: string[];
|
|
6354
6530
|
msgType: "warning" | "error";
|
|
6355
6531
|
}
|
|
6356
|
-
declare class ValidationMessages extends Component<Props$
|
|
6532
|
+
declare class ValidationMessages extends Component<Props$V, SpreadsheetChildEnv> {
|
|
6357
6533
|
static template: string;
|
|
6358
6534
|
static props: {
|
|
6359
6535
|
messages: ArrayConstructor;
|
|
@@ -6362,106 +6538,24 @@ declare class ValidationMessages extends Component<Props$W, SpreadsheetChildEnv>
|
|
|
6362
6538
|
get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
|
|
6363
6539
|
}
|
|
6364
6540
|
|
|
6365
|
-
interface Props$
|
|
6366
|
-
|
|
6367
|
-
value: boolean;
|
|
6368
|
-
className?: string;
|
|
6369
|
-
name?: string;
|
|
6370
|
-
title?: string;
|
|
6371
|
-
disabled?: boolean;
|
|
6372
|
-
onChange: (value: boolean) => void;
|
|
6541
|
+
interface Props$U {
|
|
6542
|
+
messages: string[];
|
|
6373
6543
|
}
|
|
6374
|
-
declare class
|
|
6544
|
+
declare class ChartErrorSection extends Component<Props$U, SpreadsheetChildEnv> {
|
|
6375
6545
|
static template: string;
|
|
6546
|
+
static components: {
|
|
6547
|
+
Section: typeof Section;
|
|
6548
|
+
ValidationMessages: typeof ValidationMessages;
|
|
6549
|
+
};
|
|
6376
6550
|
static props: {
|
|
6377
|
-
|
|
6378
|
-
type:
|
|
6379
|
-
|
|
6380
|
-
};
|
|
6381
|
-
value: {
|
|
6382
|
-
type: BooleanConstructor;
|
|
6383
|
-
optional: boolean;
|
|
6384
|
-
};
|
|
6385
|
-
className: {
|
|
6386
|
-
type: StringConstructor;
|
|
6387
|
-
optional: boolean;
|
|
6388
|
-
};
|
|
6389
|
-
name: {
|
|
6390
|
-
type: StringConstructor;
|
|
6391
|
-
optional: boolean;
|
|
6392
|
-
};
|
|
6393
|
-
title: {
|
|
6394
|
-
type: StringConstructor;
|
|
6395
|
-
optional: boolean;
|
|
6551
|
+
messages: {
|
|
6552
|
+
type: ArrayConstructor;
|
|
6553
|
+
element: StringConstructor;
|
|
6396
6554
|
};
|
|
6397
|
-
disabled: {
|
|
6398
|
-
type: BooleanConstructor;
|
|
6399
|
-
optional: boolean;
|
|
6400
|
-
};
|
|
6401
|
-
onChange: FunctionConstructor;
|
|
6402
|
-
};
|
|
6403
|
-
static defaultProps: {
|
|
6404
|
-
value: boolean;
|
|
6405
|
-
};
|
|
6406
|
-
onChange(ev: InputEvent): void;
|
|
6407
|
-
}
|
|
6408
|
-
|
|
6409
|
-
interface Props$U {
|
|
6410
|
-
class?: string;
|
|
6411
|
-
}
|
|
6412
|
-
declare class Section extends Component<Props$U, SpreadsheetChildEnv> {
|
|
6413
|
-
static template: string;
|
|
6414
|
-
static props: {
|
|
6415
|
-
class: {
|
|
6416
|
-
type: StringConstructor;
|
|
6417
|
-
optional: boolean;
|
|
6418
|
-
};
|
|
6419
|
-
slots: ObjectConstructor;
|
|
6420
6555
|
};
|
|
6421
6556
|
}
|
|
6422
6557
|
|
|
6423
6558
|
interface Props$T {
|
|
6424
|
-
ranges: string[];
|
|
6425
|
-
hasSingleRange?: boolean;
|
|
6426
|
-
onSelectionChanged: (ranges: string[]) => void;
|
|
6427
|
-
onSelectionConfirmed: () => void;
|
|
6428
|
-
}
|
|
6429
|
-
declare class ChartDataSeries extends Component<Props$T, SpreadsheetChildEnv> {
|
|
6430
|
-
static template: string;
|
|
6431
|
-
static components: {
|
|
6432
|
-
SelectionInput: typeof SelectionInput;
|
|
6433
|
-
Section: typeof Section;
|
|
6434
|
-
};
|
|
6435
|
-
static props: {
|
|
6436
|
-
ranges: ArrayConstructor;
|
|
6437
|
-
hasSingleRange: {
|
|
6438
|
-
type: BooleanConstructor;
|
|
6439
|
-
optional: boolean;
|
|
6440
|
-
};
|
|
6441
|
-
onSelectionChanged: FunctionConstructor;
|
|
6442
|
-
onSelectionConfirmed: FunctionConstructor;
|
|
6443
|
-
};
|
|
6444
|
-
get title(): string;
|
|
6445
|
-
}
|
|
6446
|
-
|
|
6447
|
-
interface Props$S {
|
|
6448
|
-
messages: string[];
|
|
6449
|
-
}
|
|
6450
|
-
declare class ChartErrorSection extends Component<Props$S, SpreadsheetChildEnv> {
|
|
6451
|
-
static template: string;
|
|
6452
|
-
static components: {
|
|
6453
|
-
Section: typeof Section;
|
|
6454
|
-
ValidationMessages: typeof ValidationMessages;
|
|
6455
|
-
};
|
|
6456
|
-
static props: {
|
|
6457
|
-
messages: {
|
|
6458
|
-
type: ArrayConstructor;
|
|
6459
|
-
element: StringConstructor;
|
|
6460
|
-
};
|
|
6461
|
-
};
|
|
6462
|
-
}
|
|
6463
|
-
|
|
6464
|
-
interface Props$R {
|
|
6465
6559
|
title?: string;
|
|
6466
6560
|
range: string;
|
|
6467
6561
|
isInvalid: boolean;
|
|
@@ -6475,7 +6569,7 @@ interface Props$R {
|
|
|
6475
6569
|
onChange: (value: boolean) => void;
|
|
6476
6570
|
}>;
|
|
6477
6571
|
}
|
|
6478
|
-
declare class ChartLabelRange extends Component<Props$
|
|
6572
|
+
declare class ChartLabelRange extends Component<Props$T, SpreadsheetChildEnv> {
|
|
6479
6573
|
static template: string;
|
|
6480
6574
|
static components: {
|
|
6481
6575
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6500,20 +6594,18 @@ declare class ChartLabelRange extends Component<Props$R, SpreadsheetChildEnv> {
|
|
|
6500
6594
|
optional: boolean;
|
|
6501
6595
|
};
|
|
6502
6596
|
};
|
|
6503
|
-
static defaultProps: Partial<Props$
|
|
6597
|
+
static defaultProps: Partial<Props$T>;
|
|
6504
6598
|
}
|
|
6505
6599
|
|
|
6506
|
-
interface Props$
|
|
6600
|
+
interface Props$S {
|
|
6507
6601
|
figureId: UID;
|
|
6508
6602
|
definition: ChartWithAxisDefinition;
|
|
6509
6603
|
canUpdateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
6510
6604
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
6511
6605
|
}
|
|
6512
|
-
declare class GenericChartConfigPanel extends Component<Props$
|
|
6606
|
+
declare class GenericChartConfigPanel extends Component<Props$S, SpreadsheetChildEnv> {
|
|
6513
6607
|
static template: string;
|
|
6514
6608
|
static components: {
|
|
6515
|
-
SelectionInput: typeof SelectionInput;
|
|
6516
|
-
ValidationMessages: typeof ValidationMessages;
|
|
6517
6609
|
ChartDataSeries: typeof ChartDataSeries;
|
|
6518
6610
|
ChartLabelRange: typeof ChartLabelRange;
|
|
6519
6611
|
Section: typeof Section;
|
|
@@ -6547,7 +6639,7 @@ declare class GenericChartConfigPanel extends Component<Props$Q, SpreadsheetChil
|
|
|
6547
6639
|
*/
|
|
6548
6640
|
onDataSeriesRangesChanged(ranges: string[]): void;
|
|
6549
6641
|
onDataSeriesConfirmed(): void;
|
|
6550
|
-
getDataSeriesRanges():
|
|
6642
|
+
getDataSeriesRanges(): CustomizedDataSet[];
|
|
6551
6643
|
/**
|
|
6552
6644
|
* Change the local labelRange. The model should be updated when the
|
|
6553
6645
|
* button "confirm" is clicked
|
|
@@ -6566,6 +6658,22 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
|
|
|
6566
6658
|
onUpdateAggregated(aggregated: boolean): void;
|
|
6567
6659
|
}
|
|
6568
6660
|
|
|
6661
|
+
declare class SidePanelCollapsible extends Component {
|
|
6662
|
+
static template: string;
|
|
6663
|
+
static props: {
|
|
6664
|
+
slots: ObjectConstructor;
|
|
6665
|
+
collapsedAtInit: {
|
|
6666
|
+
type: BooleanConstructor;
|
|
6667
|
+
optional: boolean;
|
|
6668
|
+
};
|
|
6669
|
+
class: {
|
|
6670
|
+
type: StringConstructor;
|
|
6671
|
+
optional: boolean;
|
|
6672
|
+
};
|
|
6673
|
+
};
|
|
6674
|
+
currentId: string;
|
|
6675
|
+
}
|
|
6676
|
+
|
|
6569
6677
|
declare enum ComponentsImportance {
|
|
6570
6678
|
Grid = 0,
|
|
6571
6679
|
Highlight = 5,
|
|
@@ -6709,7 +6817,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
6709
6817
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
6710
6818
|
}
|
|
6711
6819
|
|
|
6712
|
-
interface Props$
|
|
6820
|
+
interface Props$R {
|
|
6713
6821
|
currentColor: string | undefined;
|
|
6714
6822
|
toggleColorPicker: () => void;
|
|
6715
6823
|
showColorPicker: boolean;
|
|
@@ -6720,7 +6828,7 @@ interface Props$P {
|
|
|
6720
6828
|
dropdownMaxHeight?: Pixel;
|
|
6721
6829
|
class?: string;
|
|
6722
6830
|
}
|
|
6723
|
-
declare class ColorPickerWidget extends Component<Props$
|
|
6831
|
+
declare class ColorPickerWidget extends Component<Props$R, SpreadsheetChildEnv> {
|
|
6724
6832
|
static template: string;
|
|
6725
6833
|
static props: {
|
|
6726
6834
|
currentColor: {
|
|
@@ -6758,12 +6866,12 @@ declare class ColorPickerWidget extends Component<Props$P, SpreadsheetChildEnv>
|
|
|
6758
6866
|
get colorPickerAnchorRect(): Rect;
|
|
6759
6867
|
}
|
|
6760
6868
|
|
|
6761
|
-
interface Props$
|
|
6869
|
+
interface Props$Q {
|
|
6762
6870
|
currentColor?: string;
|
|
6763
6871
|
onColorPicked: (color: string) => void;
|
|
6764
6872
|
title?: string;
|
|
6765
6873
|
}
|
|
6766
|
-
declare class RoundColorPicker extends Component<Props$
|
|
6874
|
+
declare class RoundColorPicker extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
6767
6875
|
static template: string;
|
|
6768
6876
|
static components: {
|
|
6769
6877
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -6793,46 +6901,159 @@ declare class RoundColorPicker extends Component<Props$O, SpreadsheetChildEnv> {
|
|
|
6793
6901
|
get buttonStyle(): string;
|
|
6794
6902
|
}
|
|
6795
6903
|
|
|
6796
|
-
interface Props$
|
|
6904
|
+
interface Props$P {
|
|
6797
6905
|
title: string;
|
|
6798
|
-
|
|
6906
|
+
updateTitle: (title: string) => void;
|
|
6907
|
+
name?: string;
|
|
6908
|
+
toggleItalic?: () => void;
|
|
6909
|
+
toggleBold?: () => void;
|
|
6910
|
+
updateAlignment?: (string: any) => void;
|
|
6911
|
+
updateColor?: (Color: any) => void;
|
|
6912
|
+
style: TitleDesign;
|
|
6799
6913
|
}
|
|
6800
|
-
declare class ChartTitle extends Component<Props$
|
|
6914
|
+
declare class ChartTitle extends Component<Props$P, SpreadsheetChildEnv> {
|
|
6801
6915
|
static template: string;
|
|
6802
6916
|
static components: {
|
|
6803
6917
|
Section: typeof Section;
|
|
6918
|
+
ColorPickerWidget: typeof ColorPickerWidget;
|
|
6804
6919
|
};
|
|
6805
6920
|
static props: {
|
|
6806
6921
|
title: StringConstructor;
|
|
6807
|
-
|
|
6922
|
+
updateTitle: FunctionConstructor;
|
|
6923
|
+
name: {
|
|
6924
|
+
type: StringConstructor;
|
|
6925
|
+
optional: boolean;
|
|
6926
|
+
};
|
|
6927
|
+
toggleItalic: {
|
|
6928
|
+
type: FunctionConstructor;
|
|
6929
|
+
optional: boolean;
|
|
6930
|
+
};
|
|
6931
|
+
toggleBold: {
|
|
6932
|
+
type: FunctionConstructor;
|
|
6933
|
+
optional: boolean;
|
|
6934
|
+
};
|
|
6935
|
+
updateAlignment: {
|
|
6936
|
+
type: FunctionConstructor;
|
|
6937
|
+
optional: boolean;
|
|
6938
|
+
};
|
|
6939
|
+
updateColor: {
|
|
6940
|
+
type: FunctionConstructor;
|
|
6941
|
+
optional: boolean;
|
|
6942
|
+
};
|
|
6943
|
+
style: {
|
|
6944
|
+
type: ObjectConstructor;
|
|
6945
|
+
optional: boolean;
|
|
6946
|
+
};
|
|
6947
|
+
};
|
|
6948
|
+
openedEl: HTMLElement | null;
|
|
6949
|
+
setup(): void;
|
|
6950
|
+
state: {
|
|
6951
|
+
activeTool: string;
|
|
6808
6952
|
};
|
|
6809
6953
|
updateTitle(ev: InputEvent): void;
|
|
6954
|
+
toggleDropdownTool(tool: string, ev: MouseEvent): void;
|
|
6955
|
+
/**
|
|
6956
|
+
* TODO: This is clearly not a goot way to handle external click, but
|
|
6957
|
+
* we currently have no other way to do it ... Should be done in
|
|
6958
|
+
* another task to handle the fact we want only one menu opened at a
|
|
6959
|
+
* time with something like a menuStore ?
|
|
6960
|
+
*/
|
|
6961
|
+
onExternalClick(ev: MouseEvent): void;
|
|
6962
|
+
onColorPicked(color: Color): void;
|
|
6963
|
+
updateAlignment(aligment: "left" | "center" | "right"): void;
|
|
6964
|
+
closeMenus(): void;
|
|
6810
6965
|
}
|
|
6811
6966
|
|
|
6812
|
-
interface
|
|
6967
|
+
interface AxisDefinition {
|
|
6968
|
+
id: string;
|
|
6969
|
+
name: string;
|
|
6970
|
+
}
|
|
6971
|
+
interface Props$O {
|
|
6813
6972
|
figureId: UID;
|
|
6814
|
-
definition: ChartWithAxisDefinition;
|
|
6815
|
-
|
|
6816
|
-
|
|
6973
|
+
definition: ChartWithAxisDefinition | WaterfallChartDefinition;
|
|
6974
|
+
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition | WaterfallChartDefinition>) => DispatchResult;
|
|
6975
|
+
axesList: AxisDefinition[];
|
|
6976
|
+
}
|
|
6977
|
+
declare class AxisDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
|
|
6978
|
+
static template: string;
|
|
6979
|
+
static components: {
|
|
6980
|
+
Section: typeof Section;
|
|
6981
|
+
ChartTitle: typeof ChartTitle;
|
|
6982
|
+
};
|
|
6983
|
+
state: {
|
|
6984
|
+
currentAxis: string;
|
|
6985
|
+
};
|
|
6986
|
+
get axisTitleStyle(): TitleDesign;
|
|
6987
|
+
updateAxisTitleColor(color: Color): void;
|
|
6988
|
+
toggleBoldAxisTitle(): void;
|
|
6989
|
+
toggleItalicAxisTitle(): void;
|
|
6990
|
+
updateAxisTitleAlignment(align: "left" | "center" | "right"): void;
|
|
6991
|
+
updateAxisEditor(ev: any): void;
|
|
6992
|
+
getAxisTitle(): any;
|
|
6993
|
+
updateAxisTitle(text: string): void;
|
|
6817
6994
|
}
|
|
6818
|
-
|
|
6995
|
+
|
|
6996
|
+
interface Props$N {
|
|
6997
|
+
figureId: UID;
|
|
6998
|
+
definition: ChartDefinition;
|
|
6999
|
+
updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
|
|
7000
|
+
}
|
|
7001
|
+
declare class GeneralDesignEditor extends Component<Props$N, SpreadsheetChildEnv> {
|
|
6819
7002
|
static template: string;
|
|
6820
7003
|
static components: {
|
|
6821
7004
|
RoundColorPicker: typeof RoundColorPicker;
|
|
6822
7005
|
ChartTitle: typeof ChartTitle;
|
|
6823
7006
|
Section: typeof Section;
|
|
7007
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
6824
7008
|
};
|
|
6825
7009
|
static props: {
|
|
6826
7010
|
figureId: StringConstructor;
|
|
6827
7011
|
definition: ObjectConstructor;
|
|
6828
7012
|
updateChart: FunctionConstructor;
|
|
6829
|
-
|
|
7013
|
+
slots: {
|
|
7014
|
+
type: ObjectConstructor;
|
|
7015
|
+
optional: boolean;
|
|
7016
|
+
};
|
|
6830
7017
|
};
|
|
6831
|
-
|
|
7018
|
+
private state;
|
|
7019
|
+
setup(): void;
|
|
7020
|
+
get title(): TitleDesign;
|
|
7021
|
+
toggleDropdownTool(tool: string, ev: MouseEvent): void;
|
|
6832
7022
|
updateBackgroundColor(color: Color): void;
|
|
6833
|
-
updateTitle(
|
|
6834
|
-
|
|
6835
|
-
|
|
7023
|
+
updateTitle(newTitle: string): void;
|
|
7024
|
+
get titleStyle(): TitleDesign;
|
|
7025
|
+
updateChartTitleColor(color: Color): void;
|
|
7026
|
+
toggleBoldChartTitle(): void;
|
|
7027
|
+
toggleItalicChartTitle(): void;
|
|
7028
|
+
updateChartTitleAlignment(align: "left" | "center" | "right"): void;
|
|
7029
|
+
}
|
|
7030
|
+
|
|
7031
|
+
interface Props$M {
|
|
7032
|
+
figureId: UID;
|
|
7033
|
+
definition: ChartWithAxisDefinition;
|
|
7034
|
+
canUpdateChart: (figureID: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7035
|
+
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7036
|
+
}
|
|
7037
|
+
declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChildEnv> {
|
|
7038
|
+
static template: string;
|
|
7039
|
+
static components: {
|
|
7040
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
7041
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
7042
|
+
Section: typeof Section;
|
|
7043
|
+
AxisDesignEditor: typeof AxisDesignEditor;
|
|
7044
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
7045
|
+
};
|
|
7046
|
+
private state;
|
|
7047
|
+
get axesList(): AxisDefinition[];
|
|
7048
|
+
updateLegendPosition(ev: any): void;
|
|
7049
|
+
getDataSeries(): (string | undefined)[];
|
|
7050
|
+
updateSerieEditor(ev: any): void;
|
|
7051
|
+
updateDataSeriesColor(color: string): void;
|
|
7052
|
+
getDataSerieColor(): "" | Color;
|
|
7053
|
+
updateDataSeriesAxis(ev: any): void;
|
|
7054
|
+
getDataSerieAxis(): "left" | "right";
|
|
7055
|
+
updateDataSeriesLabel(ev: any): void;
|
|
7056
|
+
getDataSerieLabel(): string | undefined;
|
|
6836
7057
|
}
|
|
6837
7058
|
|
|
6838
7059
|
interface Props$L {
|
|
@@ -6859,34 +7080,42 @@ declare class GaugeChartConfigPanel extends Component<Props$L, SpreadsheetChildE
|
|
|
6859
7080
|
get isDataRangeInvalid(): boolean;
|
|
6860
7081
|
onDataRangeChanged(ranges: string[]): void;
|
|
6861
7082
|
updateDataRange(): void;
|
|
6862
|
-
getDataRange():
|
|
7083
|
+
getDataRange(): CustomizedDataSet;
|
|
6863
7084
|
}
|
|
6864
7085
|
|
|
7086
|
+
interface PanelState {
|
|
7087
|
+
sectionRuleDispatchResult?: DispatchResult;
|
|
7088
|
+
sectionRule: SectionRule;
|
|
7089
|
+
}
|
|
6865
7090
|
interface Props$K {
|
|
6866
7091
|
figureId: UID;
|
|
6867
7092
|
definition: GaugeChartDefinition;
|
|
6868
|
-
canUpdateChart: (
|
|
7093
|
+
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
6869
7094
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
6870
7095
|
}
|
|
6871
7096
|
declare class GaugeChartDesignPanel extends Component<Props$K, SpreadsheetChildEnv> {
|
|
6872
7097
|
static template: string;
|
|
6873
7098
|
static components: {
|
|
6874
|
-
|
|
6875
|
-
RoundColorPicker: typeof RoundColorPicker;
|
|
6876
|
-
ChartTitle: typeof ChartTitle;
|
|
7099
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
6877
7100
|
Section: typeof Section;
|
|
7101
|
+
RoundColorPicker: typeof RoundColorPicker;
|
|
7102
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
7103
|
+
ChartErrorSection: typeof ChartErrorSection;
|
|
6878
7104
|
};
|
|
6879
7105
|
static props: {
|
|
6880
7106
|
figureId: StringConstructor;
|
|
6881
7107
|
definition: ObjectConstructor;
|
|
6882
7108
|
updateChart: FunctionConstructor;
|
|
6883
|
-
canUpdateChart:
|
|
7109
|
+
canUpdateChart: {
|
|
7110
|
+
type: FunctionConstructor;
|
|
7111
|
+
optional: boolean;
|
|
7112
|
+
};
|
|
6884
7113
|
};
|
|
6885
|
-
|
|
6886
|
-
|
|
7114
|
+
protected state: PanelState;
|
|
7115
|
+
setup(): void;
|
|
6887
7116
|
get designErrorMessages(): string[];
|
|
6888
7117
|
updateBackgroundColor(color: Color): void;
|
|
6889
|
-
updateTitle(
|
|
7118
|
+
updateTitle(content: string): void;
|
|
6890
7119
|
isRangeMinInvalid(): boolean;
|
|
6891
7120
|
isRangeMaxInvalid(): boolean;
|
|
6892
7121
|
get isLowerInflectionPointInvalid(): boolean;
|
|
@@ -6952,14 +7181,15 @@ type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baseli
|
|
|
6952
7181
|
interface Props$I {
|
|
6953
7182
|
figureId: UID;
|
|
6954
7183
|
definition: ScorecardChartDefinition;
|
|
6955
|
-
canUpdateChart: (
|
|
7184
|
+
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
6956
7185
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
6957
7186
|
}
|
|
6958
7187
|
declare class ScorecardChartDesignPanel extends Component<Props$I, SpreadsheetChildEnv> {
|
|
6959
7188
|
static template: string;
|
|
6960
7189
|
static components: {
|
|
7190
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
6961
7191
|
RoundColorPicker: typeof RoundColorPicker;
|
|
6962
|
-
|
|
7192
|
+
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
6963
7193
|
Section: typeof Section;
|
|
6964
7194
|
Checkbox: typeof Checkbox;
|
|
6965
7195
|
};
|
|
@@ -6967,12 +7197,14 @@ declare class ScorecardChartDesignPanel extends Component<Props$I, SpreadsheetCh
|
|
|
6967
7197
|
figureId: StringConstructor;
|
|
6968
7198
|
definition: ObjectConstructor;
|
|
6969
7199
|
updateChart: FunctionConstructor;
|
|
6970
|
-
canUpdateChart:
|
|
7200
|
+
canUpdateChart: {
|
|
7201
|
+
type: FunctionConstructor;
|
|
7202
|
+
optional: boolean;
|
|
7203
|
+
};
|
|
6971
7204
|
};
|
|
6972
|
-
get title(): string;
|
|
6973
7205
|
get colorsSectionTitle(): string;
|
|
6974
7206
|
get humanizeNumbersLabel(): string;
|
|
6975
|
-
updateTitle(
|
|
7207
|
+
updateTitle(content: string): void;
|
|
6976
7208
|
updateHumanizeNumbers(humanize: boolean): void;
|
|
6977
7209
|
translate(term: any): string;
|
|
6978
7210
|
updateBaselineDescr(ev: any): void;
|
|
@@ -7014,6 +7246,7 @@ interface ClosedSidePanel {
|
|
|
7014
7246
|
}
|
|
7015
7247
|
type SidePanelState = OpenSidePanel | ClosedSidePanel;
|
|
7016
7248
|
declare class SidePanelStore extends SpreadsheetStore {
|
|
7249
|
+
mutators: readonly ["open", "toggle", "close"];
|
|
7017
7250
|
initialPanelProps: SidePanelProps;
|
|
7018
7251
|
componentTag: string;
|
|
7019
7252
|
get isOpen(): boolean;
|
|
@@ -7026,7 +7259,7 @@ declare class SidePanelStore extends SpreadsheetStore {
|
|
|
7026
7259
|
}
|
|
7027
7260
|
|
|
7028
7261
|
interface SidePanelContent {
|
|
7029
|
-
title: string | ((env: SpreadsheetChildEnv) => string);
|
|
7262
|
+
title: string | ((env: SpreadsheetChildEnv, props: object) => string);
|
|
7030
7263
|
Body: any;
|
|
7031
7264
|
Footer?: any;
|
|
7032
7265
|
/**
|
|
@@ -7127,12 +7360,24 @@ declare class TextValueProvider extends Component<Props$H> {
|
|
|
7127
7360
|
setup(): void;
|
|
7128
7361
|
}
|
|
7129
7362
|
|
|
7363
|
+
declare class AutoCompleteStore extends SpreadsheetStore {
|
|
7364
|
+
mutators: readonly ["useProvider", "moveSelection", "hide", "selectIndex"];
|
|
7365
|
+
selectedIndex: number | undefined;
|
|
7366
|
+
provider: AutoCompleteProvider | undefined;
|
|
7367
|
+
get selectedProposal(): AutoCompleteProposal | undefined;
|
|
7368
|
+
useProvider(provider: AutoCompleteProvider): void;
|
|
7369
|
+
hide(): void;
|
|
7370
|
+
selectIndex(index: number): void;
|
|
7371
|
+
moveSelection(direction: "previous" | "next"): void;
|
|
7372
|
+
}
|
|
7373
|
+
|
|
7130
7374
|
type EditionMode = "editing" | "selecting" | "inactive";
|
|
7131
7375
|
interface ComposerSelection {
|
|
7132
7376
|
start: number;
|
|
7133
7377
|
end: number;
|
|
7134
7378
|
}
|
|
7135
7379
|
declare class ComposerStore extends SpreadsheetStore {
|
|
7380
|
+
mutators: readonly ["startEdition", "setCurrentContent", "stopEdition", "stopComposerRangeSelection", "cancelEdition", "cycleReferences", "changeComposerCursorSelection", "replaceComposerCursorSelection"];
|
|
7136
7381
|
private col;
|
|
7137
7382
|
private row;
|
|
7138
7383
|
editionMode: EditionMode;
|
|
@@ -7239,6 +7484,7 @@ declare class ComposerStore extends SpreadsheetStore {
|
|
|
7239
7484
|
|
|
7240
7485
|
type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
|
|
7241
7486
|
declare class ComposerFocusStore extends SpreadsheetStore {
|
|
7487
|
+
mutators: readonly ["focusTopBarComposer", "focusGridComposerContent", "focusGridComposerCell"];
|
|
7242
7488
|
private composerStore;
|
|
7243
7489
|
private topBarFocus;
|
|
7244
7490
|
private gridFocusMode;
|
|
@@ -7366,10 +7612,6 @@ interface ComposerState {
|
|
|
7366
7612
|
positionStart: number;
|
|
7367
7613
|
positionEnd: number;
|
|
7368
7614
|
}
|
|
7369
|
-
interface AutoCompleteState {
|
|
7370
|
-
provider: AutoCompleteProvider | undefined;
|
|
7371
|
-
selectedIndex: number | undefined;
|
|
7372
|
-
}
|
|
7373
7615
|
interface FunctionDescriptionState {
|
|
7374
7616
|
showDescription: boolean;
|
|
7375
7617
|
functionName: string;
|
|
@@ -7423,7 +7665,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
7423
7665
|
};
|
|
7424
7666
|
contentHelper: ContentEditableHelper;
|
|
7425
7667
|
composerState: ComposerState;
|
|
7426
|
-
autoCompleteState:
|
|
7668
|
+
autoCompleteState: Store<AutoCompleteStore>;
|
|
7427
7669
|
functionDescriptionState: FunctionDescriptionState;
|
|
7428
7670
|
private compositionActive;
|
|
7429
7671
|
get assistantStyle(): string;
|
|
@@ -7450,7 +7692,6 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
7450
7692
|
onPaste(ev: ClipboardEvent): void;
|
|
7451
7693
|
onInput(ev: InputEvent): void;
|
|
7452
7694
|
onKeyup(ev: KeyboardEvent): void;
|
|
7453
|
-
showAutoComplete(provider: AutoCompleteProvider): void;
|
|
7454
7695
|
updateAutoCompleteIndex(index: number): void;
|
|
7455
7696
|
/**
|
|
7456
7697
|
* This is required to ensure the content helper selection is
|
|
@@ -7993,16 +8234,15 @@ declare class FiguresContainer extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
7993
8234
|
}
|
|
7994
8235
|
|
|
7995
8236
|
declare class CellPopoverStore extends SpreadsheetStore {
|
|
8237
|
+
mutators: readonly ["open", "close"];
|
|
7996
8238
|
private persistentPopover?;
|
|
7997
8239
|
protected hoveredCell: {
|
|
8240
|
+
readonly clear: () => void;
|
|
8241
|
+
readonly hover: (position: Position$1) => void;
|
|
8242
|
+
readonly mutators: readonly ["clear", "hover"];
|
|
7998
8243
|
readonly col: number | undefined;
|
|
7999
8244
|
readonly row: number | undefined;
|
|
8000
|
-
readonly handle: (cmd: Command) => void;
|
|
8001
|
-
readonly hover: (position: Position$1) => void;
|
|
8002
|
-
readonly clear: () => void;
|
|
8003
8245
|
readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
|
|
8004
|
-
readonly drawLayer: (ctx: GridRenderingContext, layer: "Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers") => void;
|
|
8005
|
-
readonly dispose: () => void;
|
|
8006
8246
|
};
|
|
8007
8247
|
handle(cmd: Command): void;
|
|
8008
8248
|
open({ col, row }: Position$1, type: CellPopoverType): void;
|
|
@@ -8028,14 +8268,8 @@ declare class FilterIcon extends Component<Props$v, SpreadsheetChildEnv> {
|
|
|
8028
8268
|
get iconClass(): string;
|
|
8029
8269
|
}
|
|
8030
8270
|
|
|
8031
|
-
|
|
8032
|
-
onMouseDown: (ev: MouseEvent) => void;
|
|
8033
|
-
}
|
|
8034
|
-
declare class FilterIconsOverlay extends Component<Props$u, SpreadsheetChildEnv> {
|
|
8271
|
+
declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
8035
8272
|
static template: string;
|
|
8036
|
-
static props: {
|
|
8037
|
-
onMouseDown: FunctionConstructor;
|
|
8038
|
-
};
|
|
8039
8273
|
static components: {
|
|
8040
8274
|
GridCellIcon: typeof GridCellIcon;
|
|
8041
8275
|
FilterIcon: typeof FilterIcon;
|
|
@@ -8043,10 +8277,10 @@ declare class FilterIconsOverlay extends Component<Props$u, SpreadsheetChildEnv>
|
|
|
8043
8277
|
getFilterHeadersPositions(): CellPosition[];
|
|
8044
8278
|
}
|
|
8045
8279
|
|
|
8046
|
-
interface Props$
|
|
8280
|
+
interface Props$u {
|
|
8047
8281
|
focusGrid: () => void;
|
|
8048
8282
|
}
|
|
8049
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
8283
|
+
declare class GridAddRowsFooter extends Component<Props$u, SpreadsheetChildEnv> {
|
|
8050
8284
|
static template: string;
|
|
8051
8285
|
static props: {
|
|
8052
8286
|
focusGrid: FunctionConstructor;
|
|
@@ -8070,7 +8304,7 @@ declare class GridAddRowsFooter extends Component<Props$t, SpreadsheetChildEnv>
|
|
|
8070
8304
|
private onExternalClick;
|
|
8071
8305
|
}
|
|
8072
8306
|
|
|
8073
|
-
interface Props$
|
|
8307
|
+
interface Props$t {
|
|
8074
8308
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
8075
8309
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
8076
8310
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
@@ -8080,7 +8314,7 @@ interface Props$s {
|
|
|
8080
8314
|
gridOverlayDimensions: string;
|
|
8081
8315
|
onFigureDeleted: () => void;
|
|
8082
8316
|
}
|
|
8083
|
-
declare class GridOverlay extends Component<Props$
|
|
8317
|
+
declare class GridOverlay extends Component<Props$t, SpreadsheetChildEnv> {
|
|
8084
8318
|
static template: string;
|
|
8085
8319
|
static props: {
|
|
8086
8320
|
onCellHovered: {
|
|
@@ -8126,24 +8360,23 @@ declare class GridOverlay extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
8126
8360
|
};
|
|
8127
8361
|
private gridOverlay;
|
|
8128
8362
|
private gridOverlayRect;
|
|
8363
|
+
private cellPopovers;
|
|
8129
8364
|
setup(): void;
|
|
8130
8365
|
get gridOverlayEl(): HTMLElement;
|
|
8131
8366
|
get style(): string;
|
|
8132
8367
|
get isPaintingFormat(): boolean;
|
|
8133
|
-
onMouseDown(ev: MouseEvent
|
|
8134
|
-
closePopover: boolean;
|
|
8135
|
-
}): void;
|
|
8368
|
+
onMouseDown(ev: MouseEvent): void;
|
|
8136
8369
|
onDoubleClick(ev: MouseEvent): void;
|
|
8137
8370
|
onContextMenu(ev: MouseEvent): void;
|
|
8138
8371
|
private getCartesianCoordinates;
|
|
8139
8372
|
}
|
|
8140
8373
|
|
|
8141
|
-
interface Props$
|
|
8374
|
+
interface Props$s {
|
|
8142
8375
|
gridRect: Rect;
|
|
8143
8376
|
onClosePopover: () => void;
|
|
8144
8377
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
8145
8378
|
}
|
|
8146
|
-
declare class GridPopover extends Component<Props$
|
|
8379
|
+
declare class GridPopover extends Component<Props$s, SpreadsheetChildEnv> {
|
|
8147
8380
|
static template: string;
|
|
8148
8381
|
static props: {
|
|
8149
8382
|
onClosePopover: FunctionConstructor;
|
|
@@ -8286,13 +8519,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
8286
8519
|
}
|
|
8287
8520
|
|
|
8288
8521
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
8289
|
-
interface Props$
|
|
8522
|
+
interface Props$r {
|
|
8290
8523
|
zone: Zone;
|
|
8291
8524
|
orientation: Orientation$1;
|
|
8292
8525
|
isMoving: boolean;
|
|
8293
8526
|
onMoveHighlight: (x: Pixel, y: Pixel) => void;
|
|
8294
8527
|
}
|
|
8295
|
-
declare class Border extends Component<Props$
|
|
8528
|
+
declare class Border extends Component<Props$r, SpreadsheetChildEnv> {
|
|
8296
8529
|
static template: string;
|
|
8297
8530
|
static props: {
|
|
8298
8531
|
zone: ObjectConstructor;
|
|
@@ -8305,14 +8538,14 @@ declare class Border extends Component<Props$q, SpreadsheetChildEnv> {
|
|
|
8305
8538
|
}
|
|
8306
8539
|
|
|
8307
8540
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
8308
|
-
interface Props$
|
|
8541
|
+
interface Props$q {
|
|
8309
8542
|
zone: Zone;
|
|
8310
8543
|
color: Color;
|
|
8311
8544
|
orientation: Orientation;
|
|
8312
8545
|
isResizing: boolean;
|
|
8313
8546
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
8314
8547
|
}
|
|
8315
|
-
declare class Corner extends Component<Props$
|
|
8548
|
+
declare class Corner extends Component<Props$q, SpreadsheetChildEnv> {
|
|
8316
8549
|
static template: string;
|
|
8317
8550
|
static props: {
|
|
8318
8551
|
zone: ObjectConstructor;
|
|
@@ -8327,14 +8560,14 @@ declare class Corner extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
8327
8560
|
onMouseDown(ev: MouseEvent): void;
|
|
8328
8561
|
}
|
|
8329
8562
|
|
|
8330
|
-
interface Props$
|
|
8563
|
+
interface Props$p {
|
|
8331
8564
|
zone: Zone;
|
|
8332
8565
|
color: Color;
|
|
8333
8566
|
}
|
|
8334
8567
|
interface HighlightState {
|
|
8335
8568
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
8336
8569
|
}
|
|
8337
|
-
declare class Highlight extends Component<Props$
|
|
8570
|
+
declare class Highlight extends Component<Props$p, SpreadsheetChildEnv> {
|
|
8338
8571
|
static template: string;
|
|
8339
8572
|
static props: {
|
|
8340
8573
|
zone: ObjectConstructor;
|
|
@@ -8351,7 +8584,7 @@ declare class Highlight extends Component<Props$o, SpreadsheetChildEnv> {
|
|
|
8351
8584
|
|
|
8352
8585
|
type ScrollDirection = "horizontal" | "vertical";
|
|
8353
8586
|
|
|
8354
|
-
interface Props$
|
|
8587
|
+
interface Props$o {
|
|
8355
8588
|
width: Pixel;
|
|
8356
8589
|
height: Pixel;
|
|
8357
8590
|
direction: ScrollDirection;
|
|
@@ -8359,7 +8592,7 @@ interface Props$n {
|
|
|
8359
8592
|
offset: Pixel;
|
|
8360
8593
|
onScroll: (offset: Pixel) => void;
|
|
8361
8594
|
}
|
|
8362
|
-
declare class ScrollBar extends Component<Props$
|
|
8595
|
+
declare class ScrollBar extends Component<Props$o> {
|
|
8363
8596
|
static props: {
|
|
8364
8597
|
width: {
|
|
8365
8598
|
type: NumberConstructor;
|
|
@@ -8387,10 +8620,10 @@ declare class ScrollBar extends Component<Props$n> {
|
|
|
8387
8620
|
onScroll(ev: any): void;
|
|
8388
8621
|
}
|
|
8389
8622
|
|
|
8390
|
-
interface Props$
|
|
8623
|
+
interface Props$n {
|
|
8391
8624
|
leftOffset: number;
|
|
8392
8625
|
}
|
|
8393
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
8626
|
+
declare class HorizontalScrollBar extends Component<Props$n, SpreadsheetChildEnv> {
|
|
8394
8627
|
static props: {
|
|
8395
8628
|
leftOffset: {
|
|
8396
8629
|
type: NumberConstructor;
|
|
@@ -8416,10 +8649,10 @@ declare class HorizontalScrollBar extends Component<Props$m, SpreadsheetChildEnv
|
|
|
8416
8649
|
onScroll(offset: any): void;
|
|
8417
8650
|
}
|
|
8418
8651
|
|
|
8419
|
-
interface Props$
|
|
8652
|
+
interface Props$m {
|
|
8420
8653
|
topOffset: number;
|
|
8421
8654
|
}
|
|
8422
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
8655
|
+
declare class VerticalScrollBar extends Component<Props$m, SpreadsheetChildEnv> {
|
|
8423
8656
|
static props: {
|
|
8424
8657
|
topOffset: {
|
|
8425
8658
|
type: NumberConstructor;
|
|
@@ -8445,13 +8678,13 @@ declare class VerticalScrollBar extends Component<Props$l, SpreadsheetChildEnv>
|
|
|
8445
8678
|
onScroll(offset: any): void;
|
|
8446
8679
|
}
|
|
8447
8680
|
|
|
8448
|
-
interface Props$
|
|
8681
|
+
interface Props$l {
|
|
8449
8682
|
table: Table;
|
|
8450
8683
|
}
|
|
8451
8684
|
interface State$7 {
|
|
8452
8685
|
highlightZone: Zone | undefined;
|
|
8453
8686
|
}
|
|
8454
|
-
declare class TableResizer extends Component<Props$
|
|
8687
|
+
declare class TableResizer extends Component<Props$l, SpreadsheetChildEnv> {
|
|
8455
8688
|
static template: string;
|
|
8456
8689
|
static props: {
|
|
8457
8690
|
table: ObjectConstructor;
|
|
@@ -8464,6 +8697,7 @@ declare class TableResizer extends Component<Props$k, SpreadsheetChildEnv> {
|
|
|
8464
8697
|
}
|
|
8465
8698
|
|
|
8466
8699
|
declare class HoveredCellStore extends SpreadsheetStore {
|
|
8700
|
+
mutators: readonly ["clear", "hover"];
|
|
8467
8701
|
col: number | undefined;
|
|
8468
8702
|
row: number | undefined;
|
|
8469
8703
|
handle(cmd: Command): void;
|
|
@@ -8482,10 +8716,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
|
|
|
8482
8716
|
* - a vertical resizer (same, for rows)
|
|
8483
8717
|
*/
|
|
8484
8718
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
8485
|
-
interface Props$
|
|
8719
|
+
interface Props$k {
|
|
8486
8720
|
exposeFocus: (focus: () => void) => void;
|
|
8487
8721
|
}
|
|
8488
|
-
declare class Grid extends Component<Props$
|
|
8722
|
+
declare class Grid extends Component<Props$k, SpreadsheetChildEnv> {
|
|
8489
8723
|
static template: string;
|
|
8490
8724
|
static props: {
|
|
8491
8725
|
exposeFocus: FunctionConstructor;
|
|
@@ -8587,17 +8821,18 @@ declare function useHighlightsOnHover(ref: Ref<HTMLElement>, highlightProvider:
|
|
|
8587
8821
|
declare function useHighlights(highlightProvider: HighlightProvider): void;
|
|
8588
8822
|
|
|
8589
8823
|
declare class MainChartPanelStore extends SpreadsheetStore {
|
|
8824
|
+
mutators: readonly ["activatePanel", "changeChartType"];
|
|
8590
8825
|
panel: "configuration" | "design";
|
|
8591
8826
|
private creationContext;
|
|
8592
8827
|
activatePanel(panel: "configuration" | "design"): void;
|
|
8593
8828
|
changeChartType(figureId: UID, type: ChartType): void;
|
|
8594
8829
|
}
|
|
8595
8830
|
|
|
8596
|
-
interface Props$
|
|
8831
|
+
interface Props$j {
|
|
8597
8832
|
onCloseSidePanel: () => void;
|
|
8598
8833
|
figureId: UID;
|
|
8599
8834
|
}
|
|
8600
|
-
declare class ChartPanel extends Component<Props$
|
|
8835
|
+
declare class ChartPanel extends Component<Props$j, SpreadsheetChildEnv> {
|
|
8601
8836
|
static template: string;
|
|
8602
8837
|
static components: {
|
|
8603
8838
|
Section: typeof Section;
|
|
@@ -8617,7 +8852,32 @@ declare class ChartPanel extends Component<Props$i, SpreadsheetChildEnv> {
|
|
|
8617
8852
|
get chartTypes(): Record<string, string>;
|
|
8618
8853
|
}
|
|
8619
8854
|
|
|
8855
|
+
interface Props$i {
|
|
8856
|
+
figureId: UID;
|
|
8857
|
+
definition: PieChartDefinition;
|
|
8858
|
+
canUpdateChart: (figureID: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
|
|
8859
|
+
updateChart: (figureId: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
|
|
8860
|
+
}
|
|
8861
|
+
declare class PieChartDesignPanel extends Component<Props$i, SpreadsheetChildEnv> {
|
|
8862
|
+
static template: string;
|
|
8863
|
+
static components: {
|
|
8864
|
+
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
8865
|
+
Section: typeof Section;
|
|
8866
|
+
};
|
|
8867
|
+
static props: {
|
|
8868
|
+
figureId: StringConstructor;
|
|
8869
|
+
definition: ObjectConstructor;
|
|
8870
|
+
updateChart: FunctionConstructor;
|
|
8871
|
+
canUpdateChart: {
|
|
8872
|
+
type: FunctionConstructor;
|
|
8873
|
+
optional: boolean;
|
|
8874
|
+
};
|
|
8875
|
+
};
|
|
8876
|
+
updateLegendPosition(ev: any): void;
|
|
8877
|
+
}
|
|
8878
|
+
|
|
8620
8879
|
declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
|
|
8880
|
+
mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
|
|
8621
8881
|
private allSheetsMatches;
|
|
8622
8882
|
private activeSheetMatches;
|
|
8623
8883
|
private specificRangeMatches;
|
|
@@ -8678,25 +8938,6 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
8678
8938
|
get highlights(): Highlight$1[];
|
|
8679
8939
|
}
|
|
8680
8940
|
|
|
8681
|
-
declare class PivotPreview extends Component {
|
|
8682
|
-
static template: string;
|
|
8683
|
-
static props: {
|
|
8684
|
-
pivotId: StringConstructor;
|
|
8685
|
-
};
|
|
8686
|
-
setup(): void;
|
|
8687
|
-
selectPivot(): void;
|
|
8688
|
-
get highlights(): Highlight$1[];
|
|
8689
|
-
}
|
|
8690
|
-
declare class AllPivotsSidePanel extends Component {
|
|
8691
|
-
static template: string;
|
|
8692
|
-
static components: {
|
|
8693
|
-
PivotPreview: typeof PivotPreview;
|
|
8694
|
-
};
|
|
8695
|
-
static props: {
|
|
8696
|
-
onCloseSidePanel: FunctionConstructor;
|
|
8697
|
-
};
|
|
8698
|
-
}
|
|
8699
|
-
|
|
8700
8941
|
/** @odoo-module */
|
|
8701
8942
|
|
|
8702
8943
|
interface Props$h {
|
|
@@ -8725,6 +8966,7 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
|
|
|
8725
8966
|
static template: string;
|
|
8726
8967
|
static components: {
|
|
8727
8968
|
Popover: typeof Popover;
|
|
8969
|
+
TextValueProvider: typeof TextValueProvider;
|
|
8728
8970
|
};
|
|
8729
8971
|
static props: {
|
|
8730
8972
|
onFieldPicked: FunctionConstructor;
|
|
@@ -8733,12 +8975,20 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
|
|
|
8733
8975
|
private buttonRef;
|
|
8734
8976
|
private popover;
|
|
8735
8977
|
private search;
|
|
8978
|
+
private autoComplete;
|
|
8736
8979
|
setup(): void;
|
|
8737
|
-
|
|
8980
|
+
getProvider(): AutoCompleteProvider;
|
|
8981
|
+
get proposals(): AutoCompleteProposal[];
|
|
8738
8982
|
get popoverProps(): {
|
|
8739
|
-
anchorRect:
|
|
8983
|
+
anchorRect: {
|
|
8984
|
+
x: number;
|
|
8985
|
+
y: number;
|
|
8986
|
+
width: number;
|
|
8987
|
+
height: number;
|
|
8988
|
+
};
|
|
8740
8989
|
positioning: string;
|
|
8741
8990
|
};
|
|
8991
|
+
updateSearch(searchInput: string): void;
|
|
8742
8992
|
pickField(field: PivotField): void;
|
|
8743
8993
|
togglePopover(): void;
|
|
8744
8994
|
onKeyDown(ev: KeyboardEvent): void;
|
|
@@ -8767,6 +9017,7 @@ interface Props$e {
|
|
|
8767
9017
|
dimension: PivotDimension$1;
|
|
8768
9018
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
8769
9019
|
availableGranularities: Set<string>;
|
|
9020
|
+
allGranularities: string[];
|
|
8770
9021
|
}
|
|
8771
9022
|
declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetChildEnv> {
|
|
8772
9023
|
static template: string;
|
|
@@ -8774,6 +9025,7 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
|
|
|
8774
9025
|
dimension: ObjectConstructor;
|
|
8775
9026
|
onUpdated: FunctionConstructor;
|
|
8776
9027
|
availableGranularities: SetConstructor;
|
|
9028
|
+
allGranularities: ArrayConstructor;
|
|
8777
9029
|
};
|
|
8778
9030
|
periods: {
|
|
8779
9031
|
year: string;
|
|
@@ -8781,8 +9033,12 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
|
|
|
8781
9033
|
month: string;
|
|
8782
9034
|
week: string;
|
|
8783
9035
|
day: string;
|
|
9036
|
+
year_number: string;
|
|
9037
|
+
quarter_number: string;
|
|
9038
|
+
month_number: string;
|
|
9039
|
+
iso_week_number: string;
|
|
9040
|
+
day_of_month: string;
|
|
8784
9041
|
};
|
|
8785
|
-
allGranularities: string[];
|
|
8786
9042
|
}
|
|
8787
9043
|
|
|
8788
9044
|
interface Props$d {
|
|
@@ -8830,7 +9086,7 @@ declare function isDateField(field: PivotField): boolean;
|
|
|
8830
9086
|
* Create a proposal entry for the compose autocomplete
|
|
8831
9087
|
* to insert a field name string in a formula.
|
|
8832
9088
|
*/
|
|
8833
|
-
declare function makeFieldProposal(field: PivotField): {
|
|
9089
|
+
declare function makeFieldProposal(field: PivotField, granularity?: Granularity): {
|
|
8834
9090
|
text: string;
|
|
8835
9091
|
description: string;
|
|
8836
9092
|
htmlContent: {
|
|
@@ -8864,8 +9120,9 @@ interface Props$c {
|
|
|
8864
9120
|
unusedGroupableFields: PivotField[];
|
|
8865
9121
|
unusedMeasureFields: PivotField[];
|
|
8866
9122
|
unusedDateTimeGranularities: Record<string, Set<string>>;
|
|
9123
|
+
allGranularities: string[];
|
|
8867
9124
|
}
|
|
8868
|
-
declare class
|
|
9125
|
+
declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChildEnv> {
|
|
8869
9126
|
static template: string;
|
|
8870
9127
|
static components: {
|
|
8871
9128
|
AddDimensionButton: typeof AddDimensionButton;
|
|
@@ -8879,6 +9136,7 @@ declare class PivotDimensions extends Component<Props$c, SpreadsheetChildEnv> {
|
|
|
8879
9136
|
unusedGroupableFields: ArrayConstructor;
|
|
8880
9137
|
unusedMeasureFields: ArrayConstructor;
|
|
8881
9138
|
unusedDateTimeGranularities: ObjectConstructor;
|
|
9139
|
+
allGranularities: ArrayConstructor;
|
|
8882
9140
|
};
|
|
8883
9141
|
private dimensionsRef;
|
|
8884
9142
|
private dragAndDrop;
|
|
@@ -8902,6 +9160,31 @@ declare class PivotDimensions extends Component<Props$c, SpreadsheetChildEnv> {
|
|
|
8902
9160
|
updateGranularity(dimension: PivotDimension$1, granularity: Granularity): void;
|
|
8903
9161
|
}
|
|
8904
9162
|
|
|
9163
|
+
declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
9164
|
+
private pivotId;
|
|
9165
|
+
mutators: readonly ["applyUpdate", "renamePivot", "update"];
|
|
9166
|
+
private updatesAreDeferred;
|
|
9167
|
+
private draft;
|
|
9168
|
+
constructor(get: Get, pivotId: UID);
|
|
9169
|
+
handle(cmd: Command): void;
|
|
9170
|
+
get fields(): PivotFields;
|
|
9171
|
+
get pivot(): Pivot<PivotRuntimeDefinition>;
|
|
9172
|
+
get definition(): PivotRuntimeDefinition;
|
|
9173
|
+
get isDirty(): boolean;
|
|
9174
|
+
get unusedMeasureFields(): PivotField[];
|
|
9175
|
+
get unusedGroupableFields(): PivotField[];
|
|
9176
|
+
get allGranularities(): string[];
|
|
9177
|
+
get unusedDateTimeGranularities(): {};
|
|
9178
|
+
reset(pivotId: UID): void;
|
|
9179
|
+
deferUpdates(shouldDefer: boolean): void;
|
|
9180
|
+
applyUpdate(): void;
|
|
9181
|
+
discardPendingUpdate(): void;
|
|
9182
|
+
renamePivot(name: string): void;
|
|
9183
|
+
update(definitionUpdate: Partial<PivotCoreDefinition>): void;
|
|
9184
|
+
private addDefaultDateTimeGranularity;
|
|
9185
|
+
private getUnusedDateTimeGranularities;
|
|
9186
|
+
}
|
|
9187
|
+
|
|
8905
9188
|
declare function isEvaluationError(error: Maybe<CellValue>): error is string;
|
|
8906
9189
|
declare function toNumber(data: FPayload | CellValue | undefined, locale: Locale): number;
|
|
8907
9190
|
declare function toString(data: FPayload | CellValue | undefined): string;
|
|
@@ -8923,15 +9206,21 @@ declare class FunctionRegistry extends Registry<FunctionDescription> {
|
|
|
8923
9206
|
};
|
|
8924
9207
|
}
|
|
8925
9208
|
|
|
8926
|
-
declare class ChartColors {
|
|
8927
|
-
private graphColorIndex;
|
|
8928
|
-
next(): string;
|
|
8929
|
-
}
|
|
8930
9209
|
/**
|
|
8931
9210
|
* Choose a font color based on a background color.
|
|
8932
9211
|
* The font is white with a dark background.
|
|
8933
9212
|
*/
|
|
8934
9213
|
declare function chartFontColor(backgroundColor: Color | undefined): Color;
|
|
9214
|
+
declare function getChartAxisTitleRuntime(design?: AxisDesign): {
|
|
9215
|
+
display: boolean;
|
|
9216
|
+
text: string;
|
|
9217
|
+
color?: string;
|
|
9218
|
+
font: {
|
|
9219
|
+
style: "italic" | "normal";
|
|
9220
|
+
weight: "bold" | "normal";
|
|
9221
|
+
};
|
|
9222
|
+
align: "start" | "center" | "end";
|
|
9223
|
+
} | undefined;
|
|
8935
9224
|
|
|
8936
9225
|
/**
|
|
8937
9226
|
* Get a default chart js configuration
|
|
@@ -8960,39 +9249,12 @@ declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetDa
|
|
|
8960
9249
|
|
|
8961
9250
|
declare function genericRepeat<T extends Command>(getters: Getters, command: T): T;
|
|
8962
9251
|
|
|
8963
|
-
interface NotificationStore {
|
|
8964
|
-
notifyUser: (notification: InformationNotification) => any;
|
|
8965
|
-
raiseError: (text: string, callback?: () => void) => any;
|
|
8966
|
-
askConfirmation: (content: string, confirm: () => any, cancel?: () => any) => any;
|
|
8967
|
-
}
|
|
8968
|
-
declare const NotificationStore: StoreConstructor<NotificationStore, any[]>;
|
|
8969
|
-
|
|
8970
|
-
declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
8971
|
-
private pivotId;
|
|
8972
|
-
private updatesAreDeferred;
|
|
8973
|
-
private draft;
|
|
8974
|
-
constructor(get: Get, pivotId: UID);
|
|
8975
|
-
get fields(): PivotFields;
|
|
8976
|
-
get pivot(): Pivot<PivotRuntimeDefinition>;
|
|
8977
|
-
get definition(): PivotRuntimeDefinition;
|
|
8978
|
-
get isDirty(): boolean;
|
|
8979
|
-
get unusedMeasureFields(): PivotField[];
|
|
8980
|
-
get unusedGroupableFields(): PivotField[];
|
|
8981
|
-
get unusedDateTimeGranularities(): {};
|
|
8982
|
-
reset(pivotId: UID): void;
|
|
8983
|
-
deferUpdates(shouldDefer: boolean): void;
|
|
8984
|
-
applyUpdate(): void;
|
|
8985
|
-
discardPendingUpdate(): void;
|
|
8986
|
-
update(definitionUpdate: Partial<PivotCoreDefinition>): void;
|
|
8987
|
-
private addDefaultDateTimeGranularity;
|
|
8988
|
-
private getUnusedDateTimeGranularities;
|
|
8989
|
-
}
|
|
8990
|
-
|
|
8991
9252
|
interface Renderer {
|
|
8992
9253
|
drawLayer(ctx: GridRenderingContext, layer: LayerName): void;
|
|
8993
9254
|
renderingLayers: Readonly<LayerName[]>;
|
|
8994
9255
|
}
|
|
8995
|
-
declare class RendererStore
|
|
9256
|
+
declare class RendererStore {
|
|
9257
|
+
mutators: readonly ["register", "unRegister"];
|
|
8996
9258
|
private renderers;
|
|
8997
9259
|
register(renderer: Renderer): void;
|
|
8998
9260
|
unRegister(renderer: Renderer): void;
|
|
@@ -9146,6 +9408,7 @@ declare class BottomBarSheet extends Component<Props$b, SpreadsheetChildEnv> {
|
|
|
9146
9408
|
private sheetDivRef;
|
|
9147
9409
|
private sheetNameRef;
|
|
9148
9410
|
private editionState;
|
|
9411
|
+
private DOMFocusableElementStore;
|
|
9149
9412
|
setup(): void;
|
|
9150
9413
|
private focusInputAndSelectContent;
|
|
9151
9414
|
private scrollToSheet;
|
|
@@ -9240,13 +9503,22 @@ declare class BottomBar extends Component<Props$9, SpreadsheetChildEnv> {
|
|
|
9240
9503
|
get sheetListMaxScroll(): number;
|
|
9241
9504
|
}
|
|
9242
9505
|
|
|
9243
|
-
interface Props$8 {
|
|
9244
|
-
}
|
|
9245
9506
|
interface ClickableCell {
|
|
9246
9507
|
coordinates: Rect;
|
|
9247
|
-
position:
|
|
9508
|
+
position: CellPosition;
|
|
9248
9509
|
action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
|
|
9249
9510
|
}
|
|
9511
|
+
declare class ClickableCellsStore extends SpreadsheetStore {
|
|
9512
|
+
private _clickableCells;
|
|
9513
|
+
private _registryItems;
|
|
9514
|
+
handle(cmd: Command): void;
|
|
9515
|
+
private getClickableAction;
|
|
9516
|
+
private findClickableAction;
|
|
9517
|
+
get clickableCells(): ClickableCell[];
|
|
9518
|
+
}
|
|
9519
|
+
|
|
9520
|
+
interface Props$8 {
|
|
9521
|
+
}
|
|
9250
9522
|
declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEnv> {
|
|
9251
9523
|
static template: string;
|
|
9252
9524
|
static props: {};
|
|
@@ -9261,6 +9533,7 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
|
|
|
9261
9533
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
9262
9534
|
canvasPosition: DOMCoordinates;
|
|
9263
9535
|
hoveredCell: Store<HoveredCellStore>;
|
|
9536
|
+
clickableCellsStore: Store<ClickableCellsStore>;
|
|
9264
9537
|
setup(): void;
|
|
9265
9538
|
onCellHovered({ col, row }: {
|
|
9266
9539
|
col: any;
|
|
@@ -9276,7 +9549,6 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
|
|
|
9276
9549
|
*
|
|
9277
9550
|
*/
|
|
9278
9551
|
getClickableCells(): ClickableCell[];
|
|
9279
|
-
getClickableAction(position: CellPosition): false | ((position: CellPosition, env: SpreadsheetChildEnv) => void);
|
|
9280
9552
|
selectClickableCell(clickableCell: ClickableCell): void;
|
|
9281
9553
|
onClosePopover(): void;
|
|
9282
9554
|
onGridResized({ height, width }: DOMDimension): void;
|
|
@@ -9837,13 +10109,25 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
|
|
|
9837
10109
|
setColor(target: string, color: Color): void;
|
|
9838
10110
|
}
|
|
9839
10111
|
|
|
9840
|
-
interface SpreadsheetProps {
|
|
10112
|
+
interface SpreadsheetProps extends Partial<NotificationStoreMethods> {
|
|
9841
10113
|
model: Model;
|
|
9842
10114
|
}
|
|
9843
10115
|
declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEnv> {
|
|
9844
10116
|
static template: string;
|
|
9845
10117
|
static props: {
|
|
9846
10118
|
model: ObjectConstructor;
|
|
10119
|
+
notifyUser: {
|
|
10120
|
+
type: FunctionConstructor;
|
|
10121
|
+
optional: boolean;
|
|
10122
|
+
};
|
|
10123
|
+
raiseError: {
|
|
10124
|
+
type: FunctionConstructor;
|
|
10125
|
+
optional: boolean;
|
|
10126
|
+
};
|
|
10127
|
+
askConfirmation: {
|
|
10128
|
+
type: FunctionConstructor;
|
|
10129
|
+
optional: boolean;
|
|
10130
|
+
};
|
|
9847
10131
|
};
|
|
9848
10132
|
static components: {
|
|
9849
10133
|
TopBar: typeof TopBar;
|
|
@@ -9967,7 +10251,7 @@ declare const registries: {
|
|
|
9967
10251
|
clipboardHandlersRegistries: {
|
|
9968
10252
|
figureHandlers: Registry<{
|
|
9969
10253
|
new (getters: Getters, dispatch: {
|
|
9970
|
-
<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" | "
|
|
10254
|
+
<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, {
|
|
9971
10255
|
type: T;
|
|
9972
10256
|
}> | Extract<UpdateCellPositionCommand, {
|
|
9973
10257
|
type: T;
|
|
@@ -10177,14 +10461,14 @@ declare const registries: {
|
|
|
10177
10461
|
type: T;
|
|
10178
10462
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10179
10463
|
type: T;
|
|
10180
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10181
|
-
type: T;
|
|
10182
10464
|
}> | Extract<ResizeTableCommand, {
|
|
10183
10465
|
type: T;
|
|
10184
10466
|
}> | Extract<RefreshPivotCommand, {
|
|
10185
10467
|
type: T;
|
|
10468
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10469
|
+
type: T;
|
|
10186
10470
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
10187
|
-
<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" | "
|
|
10471
|
+
<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, {
|
|
10188
10472
|
type: T_1;
|
|
10189
10473
|
}> | Extract<UpdateCellPositionCommand, {
|
|
10190
10474
|
type: T_1;
|
|
@@ -10394,18 +10678,18 @@ declare const registries: {
|
|
|
10394
10678
|
type: T_1;
|
|
10395
10679
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10396
10680
|
type: T_1;
|
|
10397
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10398
|
-
type: T_1;
|
|
10399
10681
|
}> | Extract<ResizeTableCommand, {
|
|
10400
10682
|
type: T_1;
|
|
10401
10683
|
}> | Extract<RefreshPivotCommand, {
|
|
10402
10684
|
type: T_1;
|
|
10685
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10686
|
+
type: T_1;
|
|
10403
10687
|
}>>(type: T_1, r: Omit<C_1, "type">): DispatchResult;
|
|
10404
10688
|
}): AbstractFigureClipboardHandler<any>;
|
|
10405
10689
|
}>;
|
|
10406
10690
|
cellHandlers: Registry<{
|
|
10407
10691
|
new (getters: Getters, dispatch: {
|
|
10408
|
-
<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" | "
|
|
10692
|
+
<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, {
|
|
10409
10693
|
type: T;
|
|
10410
10694
|
}> | Extract<UpdateCellPositionCommand, {
|
|
10411
10695
|
type: T;
|
|
@@ -10615,14 +10899,14 @@ declare const registries: {
|
|
|
10615
10899
|
type: T;
|
|
10616
10900
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10617
10901
|
type: T;
|
|
10618
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10619
|
-
type: T;
|
|
10620
10902
|
}> | Extract<ResizeTableCommand, {
|
|
10621
10903
|
type: T;
|
|
10622
10904
|
}> | Extract<RefreshPivotCommand, {
|
|
10623
10905
|
type: T;
|
|
10906
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
10907
|
+
type: T;
|
|
10624
10908
|
}>>(type: {} extends Omit<C, "type"> ? T : never): DispatchResult;
|
|
10625
|
-
<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" | "
|
|
10909
|
+
<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, {
|
|
10626
10910
|
type: T_1;
|
|
10627
10911
|
}> | Extract<UpdateCellPositionCommand, {
|
|
10628
10912
|
type: T_1;
|
|
@@ -10832,18 +11116,20 @@ declare const registries: {
|
|
|
10832
11116
|
type: T_1;
|
|
10833
11117
|
}> | Extract<TrimWhitespaceCommand, {
|
|
10834
11118
|
type: T_1;
|
|
10835
|
-
}> | Extract<RenderCanvasCommand, {
|
|
10836
|
-
type: T_1;
|
|
10837
11119
|
}> | Extract<ResizeTableCommand, {
|
|
10838
11120
|
type: T_1;
|
|
10839
11121
|
}> | Extract<RefreshPivotCommand, {
|
|
10840
11122
|
type: T_1;
|
|
11123
|
+
}> | Extract<InsertNewPivotCommand, {
|
|
11124
|
+
type: T_1;
|
|
10841
11125
|
}>>(type: T_1, r: Omit<C_1, "type">): DispatchResult;
|
|
10842
11126
|
}): AbstractCellClipboardHandler<any, any>;
|
|
10843
11127
|
}>;
|
|
10844
11128
|
};
|
|
10845
11129
|
pivotRegistry: Registry<PivotRegistryItem>;
|
|
10846
11130
|
pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<string | number | false>>;
|
|
11131
|
+
pivotSidePanelRegistry: Registry<PivotRegistryItem$1>;
|
|
11132
|
+
supportedPivotExplodedFormulaRegistry: Registry<boolean>;
|
|
10847
11133
|
};
|
|
10848
11134
|
declare const helpers: {
|
|
10849
11135
|
arg: typeof arg;
|
|
@@ -10861,13 +11147,14 @@ declare const helpers: {
|
|
|
10861
11147
|
UuidGenerator: typeof UuidGenerator;
|
|
10862
11148
|
formatValue: typeof formatValue;
|
|
10863
11149
|
createCurrencyFormat: typeof createCurrencyFormat;
|
|
11150
|
+
ColorGenerator: typeof ColorGenerator;
|
|
10864
11151
|
computeTextWidth: typeof computeTextWidth;
|
|
10865
11152
|
createEmptyWorkbookData: typeof createEmptyWorkbookData;
|
|
10866
11153
|
createEmptySheet: typeof createEmptySheet;
|
|
10867
11154
|
createEmptyExcelSheet: typeof createEmptyExcelSheet;
|
|
10868
11155
|
getDefaultChartJsRuntime: typeof getDefaultChartJsRuntime;
|
|
10869
11156
|
chartFontColor: typeof chartFontColor;
|
|
10870
|
-
|
|
11157
|
+
getChartAxisTitleRuntime: typeof getChartAxisTitleRuntime;
|
|
10871
11158
|
getFillingMode: typeof getFillingMode;
|
|
10872
11159
|
rgbaToHex: typeof rgbaToHex;
|
|
10873
11160
|
colorToRGBA: typeof colorToRGBA;
|
|
@@ -10924,9 +11211,10 @@ declare const components: {
|
|
|
10924
11211
|
GridOverlay: typeof GridOverlay;
|
|
10925
11212
|
ScorecardChart: typeof ScorecardChart;
|
|
10926
11213
|
LineConfigPanel: typeof LineConfigPanel;
|
|
10927
|
-
GenericChartDesignPanel: typeof GenericChartDesignPanel;
|
|
10928
11214
|
BarConfigPanel: typeof BarConfigPanel;
|
|
11215
|
+
PieChartDesignPanel: typeof PieChartDesignPanel;
|
|
10929
11216
|
GenericChartConfigPanel: typeof GenericChartConfigPanel;
|
|
11217
|
+
ChartWithAxisDesignPanel: typeof ChartWithAxisDesignPanel;
|
|
10930
11218
|
GaugeChartConfigPanel: typeof GaugeChartConfigPanel;
|
|
10931
11219
|
GaugeChartDesignPanel: typeof GaugeChartDesignPanel;
|
|
10932
11220
|
ScorecardChartConfigPanel: typeof ScorecardChartConfigPanel;
|
|
@@ -10940,9 +11228,8 @@ declare const components: {
|
|
|
10940
11228
|
PivotDimensionGranularity: typeof PivotDimensionGranularity;
|
|
10941
11229
|
PivotDimensionOrder: typeof PivotDimensionOrder;
|
|
10942
11230
|
PivotDimension: typeof PivotDimension;
|
|
10943
|
-
|
|
11231
|
+
PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
|
|
10944
11232
|
EditableName: typeof EditableName;
|
|
10945
|
-
AllPivotsSidePanel: typeof AllPivotsSidePanel;
|
|
10946
11233
|
};
|
|
10947
11234
|
declare const hooks: {
|
|
10948
11235
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|
|
@@ -10959,7 +11246,7 @@ declare const stores: {
|
|
|
10959
11246
|
HighlightStore: typeof HighlightStore;
|
|
10960
11247
|
HoveredCellStore: typeof HoveredCellStore;
|
|
10961
11248
|
ModelStore: StoreConstructor<Model, any[]>;
|
|
10962
|
-
NotificationStore:
|
|
11249
|
+
NotificationStore: typeof NotificationStore;
|
|
10963
11250
|
RendererStore: typeof RendererStore;
|
|
10964
11251
|
SelectionInputStore: typeof SelectionInputStore;
|
|
10965
11252
|
SpreadsheetStore: typeof SpreadsheetStore;
|
|
@@ -10987,4 +11274,4 @@ declare const constants: {
|
|
|
10987
11274
|
};
|
|
10988
11275
|
};
|
|
10989
11276
|
|
|
10990
|
-
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,
|
|
11277
|
+
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, AxesDesign, AxisDesign, 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, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, 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, 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, TitleDesign, 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 };
|