@odoo/o-spreadsheet 17.4.0-alpha.3 → 17.4.0-alpha.4
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 +683 -755
- package/dist/o-spreadsheet.d.ts +197 -115
- package/dist/o-spreadsheet.esm.js +683 -755
- package/dist/o-spreadsheet.iife.js +683 -755
- package/dist/o-spreadsheet.iife.min.js +364 -355
- package/dist/o_spreadsheet.xml +37 -32
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -455,16 +455,19 @@ interface ClipboardOptions {
|
|
|
455
455
|
type ClipboardPasteOptions = "onlyFormat" | "asValue";
|
|
456
456
|
type ClipboardOperation = "CUT" | "COPY";
|
|
457
457
|
type ClipboardCellData = {
|
|
458
|
+
sheetId: UID;
|
|
458
459
|
zones: Zone[];
|
|
459
460
|
rowsIndexes: HeaderIndex[];
|
|
460
461
|
columnsIndexes: HeaderIndex[];
|
|
461
462
|
clippedZones: Zone[];
|
|
462
463
|
};
|
|
463
464
|
type ClipboardFigureData = {
|
|
465
|
+
sheetId: UID;
|
|
464
466
|
figureId: UID;
|
|
465
467
|
};
|
|
466
468
|
type ClipboardData = ClipboardCellData | ClipboardFigureData;
|
|
467
469
|
type ClipboardPasteTarget = {
|
|
470
|
+
sheetId: UID;
|
|
468
471
|
zones: Zone[];
|
|
469
472
|
figureId?: UID;
|
|
470
473
|
};
|
|
@@ -1839,6 +1842,7 @@ interface CellAttributes {
|
|
|
1839
1842
|
}
|
|
1840
1843
|
interface LiteralCell extends CellAttributes {
|
|
1841
1844
|
readonly isFormula: false;
|
|
1845
|
+
readonly parsedValue: CellValue;
|
|
1842
1846
|
}
|
|
1843
1847
|
interface FormulaCell extends CellAttributes {
|
|
1844
1848
|
readonly isFormula: true;
|
|
@@ -3806,7 +3810,7 @@ declare class Session extends EventBus<CollaborativeEvent> {
|
|
|
3806
3810
|
/**
|
|
3807
3811
|
* Notify the server that the user client left the collaborative session
|
|
3808
3812
|
*/
|
|
3809
|
-
leave(): void;
|
|
3813
|
+
leave(data: WorkbookData): void;
|
|
3810
3814
|
/**
|
|
3811
3815
|
* Send a snapshot of the spreadsheet to the collaboration server
|
|
3812
3816
|
*/
|
|
@@ -3922,7 +3926,7 @@ declare class UIPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
3922
3926
|
}
|
|
3923
3927
|
|
|
3924
3928
|
declare class EvaluationPlugin extends UIPlugin {
|
|
3925
|
-
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
3929
|
+
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
3926
3930
|
private shouldRebuildDependenciesGraph;
|
|
3927
3931
|
private evaluator;
|
|
3928
3932
|
private positionsToUpdate;
|
|
@@ -3944,7 +3948,8 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3944
3948
|
*/
|
|
3945
3949
|
getRangeFormats(range: Range): (Format | undefined)[];
|
|
3946
3950
|
getEvaluatedCell(position: CellPosition): EvaluatedCell;
|
|
3947
|
-
getEvaluatedCells(sheetId: UID):
|
|
3951
|
+
getEvaluatedCells(sheetId: UID): EvaluatedCell[];
|
|
3952
|
+
getEvaluatedCellsPositions(sheetId: UID): CellPosition[];
|
|
3948
3953
|
getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
|
|
3949
3954
|
/**
|
|
3950
3955
|
* Return the spread zone the position is part of, if any
|
|
@@ -4240,7 +4245,7 @@ interface Pivot<T = PivotRuntimeDefinition> {
|
|
|
4240
4245
|
assertIsValid({ throwOnError }: {
|
|
4241
4246
|
throwOnError: boolean;
|
|
4242
4247
|
}): FPayload | undefined;
|
|
4243
|
-
getPossibleFieldValues(
|
|
4248
|
+
getPossibleFieldValues(dimension: PivotDimension$1): {
|
|
4244
4249
|
value: string | boolean | number;
|
|
4245
4250
|
label: string;
|
|
4246
4251
|
}[];
|
|
@@ -5146,6 +5151,7 @@ type Getters = {
|
|
|
5146
5151
|
type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "RANGE<ANY>" | "META";
|
|
5147
5152
|
interface ArgDefinition {
|
|
5148
5153
|
acceptMatrix?: boolean;
|
|
5154
|
+
acceptMatrixOnly?: boolean;
|
|
5149
5155
|
repeating?: boolean;
|
|
5150
5156
|
optional?: boolean;
|
|
5151
5157
|
description: string;
|
|
@@ -5160,7 +5166,6 @@ interface AddFunctionDescription {
|
|
|
5160
5166
|
description: string;
|
|
5161
5167
|
category?: string;
|
|
5162
5168
|
args: ArgDefinition[];
|
|
5163
|
-
returns: ArgType[];
|
|
5164
5169
|
isExported?: boolean;
|
|
5165
5170
|
hidden?: boolean;
|
|
5166
5171
|
}
|
|
@@ -5883,7 +5888,7 @@ declare class ClipboardHandler<T> {
|
|
|
5883
5888
|
paste(target: ClipboardPasteTarget, clippedContent: T, options: ClipboardOptions | undefined): void;
|
|
5884
5889
|
isPasteAllowed(sheetId: UID, target: Zone[], content: T, option: ClipboardOptions): CommandResult;
|
|
5885
5890
|
isCutAllowed(data: ClipboardData): CommandResult;
|
|
5886
|
-
getPasteTarget(target: Zone[], content: T, options: ClipboardOptions): ClipboardPasteTarget;
|
|
5891
|
+
getPasteTarget(sheetId: UID, target: Zone[], content: T, options: ClipboardOptions): ClipboardPasteTarget;
|
|
5887
5892
|
convertOSClipboardData(data: any): T | undefined;
|
|
5888
5893
|
}
|
|
5889
5894
|
|
|
@@ -6254,7 +6259,7 @@ interface ChartBuilder {
|
|
|
6254
6259
|
sequence: number;
|
|
6255
6260
|
}
|
|
6256
6261
|
|
|
6257
|
-
interface Props$
|
|
6262
|
+
interface Props$10 {
|
|
6258
6263
|
label?: string;
|
|
6259
6264
|
value: boolean;
|
|
6260
6265
|
className?: string;
|
|
@@ -6263,7 +6268,7 @@ interface Props$_ {
|
|
|
6263
6268
|
disabled?: boolean;
|
|
6264
6269
|
onChange: (value: boolean) => void;
|
|
6265
6270
|
}
|
|
6266
|
-
declare class Checkbox extends Component<Props$
|
|
6271
|
+
declare class Checkbox extends Component<Props$10, SpreadsheetChildEnv> {
|
|
6267
6272
|
static template: string;
|
|
6268
6273
|
static props: {
|
|
6269
6274
|
label: {
|
|
@@ -6298,10 +6303,10 @@ declare class Checkbox extends Component<Props$_, SpreadsheetChildEnv> {
|
|
|
6298
6303
|
onChange(ev: InputEvent): void;
|
|
6299
6304
|
}
|
|
6300
6305
|
|
|
6301
|
-
interface Props
|
|
6306
|
+
interface Props$$ {
|
|
6302
6307
|
class?: string;
|
|
6303
6308
|
}
|
|
6304
|
-
declare class Section extends Component<Props
|
|
6309
|
+
declare class Section extends Component<Props$$, SpreadsheetChildEnv> {
|
|
6305
6310
|
static template: string;
|
|
6306
6311
|
static props: {
|
|
6307
6312
|
class: {
|
|
@@ -6429,7 +6434,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
6429
6434
|
getIndex(rangeId: number | null): number | null;
|
|
6430
6435
|
}
|
|
6431
6436
|
|
|
6432
|
-
interface Props$
|
|
6437
|
+
interface Props$_ {
|
|
6433
6438
|
ranges: string[];
|
|
6434
6439
|
hasSingleRange?: boolean;
|
|
6435
6440
|
required?: boolean;
|
|
@@ -6452,7 +6457,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
|
6452
6457
|
* onSelectionChanged is called every time the input value
|
|
6453
6458
|
* changes.
|
|
6454
6459
|
*/
|
|
6455
|
-
declare class SelectionInput extends Component<Props$
|
|
6460
|
+
declare class SelectionInput extends Component<Props$_, SpreadsheetChildEnv> {
|
|
6456
6461
|
static template: string;
|
|
6457
6462
|
static props: {
|
|
6458
6463
|
ranges: ArrayConstructor;
|
|
@@ -6507,13 +6512,13 @@ declare class SelectionInput extends Component<Props$Y, SpreadsheetChildEnv> {
|
|
|
6507
6512
|
confirm(): void;
|
|
6508
6513
|
}
|
|
6509
6514
|
|
|
6510
|
-
interface Props$
|
|
6515
|
+
interface Props$Z {
|
|
6511
6516
|
ranges: CustomizedDataSet[];
|
|
6512
6517
|
hasSingleRange?: boolean;
|
|
6513
6518
|
onSelectionChanged: (ranges: string[]) => void;
|
|
6514
6519
|
onSelectionConfirmed: () => void;
|
|
6515
6520
|
}
|
|
6516
|
-
declare class ChartDataSeries extends Component<Props$
|
|
6521
|
+
declare class ChartDataSeries extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
6517
6522
|
static template: string;
|
|
6518
6523
|
static components: {
|
|
6519
6524
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6533,11 +6538,11 @@ declare class ChartDataSeries extends Component<Props$X, SpreadsheetChildEnv> {
|
|
|
6533
6538
|
get title(): string;
|
|
6534
6539
|
}
|
|
6535
6540
|
|
|
6536
|
-
interface Props$
|
|
6541
|
+
interface Props$Y {
|
|
6537
6542
|
messages: string[];
|
|
6538
6543
|
msgType: "warning" | "error";
|
|
6539
6544
|
}
|
|
6540
|
-
declare class ValidationMessages extends Component<Props$
|
|
6545
|
+
declare class ValidationMessages extends Component<Props$Y, SpreadsheetChildEnv> {
|
|
6541
6546
|
static template: string;
|
|
6542
6547
|
static props: {
|
|
6543
6548
|
messages: ArrayConstructor;
|
|
@@ -6546,10 +6551,10 @@ declare class ValidationMessages extends Component<Props$W, SpreadsheetChildEnv>
|
|
|
6546
6551
|
get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
|
|
6547
6552
|
}
|
|
6548
6553
|
|
|
6549
|
-
interface Props$
|
|
6554
|
+
interface Props$X {
|
|
6550
6555
|
messages: string[];
|
|
6551
6556
|
}
|
|
6552
|
-
declare class ChartErrorSection extends Component<Props$
|
|
6557
|
+
declare class ChartErrorSection extends Component<Props$X, SpreadsheetChildEnv> {
|
|
6553
6558
|
static template: string;
|
|
6554
6559
|
static components: {
|
|
6555
6560
|
Section: typeof Section;
|
|
@@ -6563,7 +6568,7 @@ declare class ChartErrorSection extends Component<Props$V, SpreadsheetChildEnv>
|
|
|
6563
6568
|
};
|
|
6564
6569
|
}
|
|
6565
6570
|
|
|
6566
|
-
interface Props$
|
|
6571
|
+
interface Props$W {
|
|
6567
6572
|
title?: string;
|
|
6568
6573
|
range: string;
|
|
6569
6574
|
isInvalid: boolean;
|
|
@@ -6577,7 +6582,7 @@ interface Props$U {
|
|
|
6577
6582
|
onChange: (value: boolean) => void;
|
|
6578
6583
|
}>;
|
|
6579
6584
|
}
|
|
6580
|
-
declare class ChartLabelRange extends Component<Props$
|
|
6585
|
+
declare class ChartLabelRange extends Component<Props$W, SpreadsheetChildEnv> {
|
|
6581
6586
|
static template: string;
|
|
6582
6587
|
static components: {
|
|
6583
6588
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6602,16 +6607,16 @@ declare class ChartLabelRange extends Component<Props$U, SpreadsheetChildEnv> {
|
|
|
6602
6607
|
optional: boolean;
|
|
6603
6608
|
};
|
|
6604
6609
|
};
|
|
6605
|
-
static defaultProps: Partial<Props$
|
|
6610
|
+
static defaultProps: Partial<Props$W>;
|
|
6606
6611
|
}
|
|
6607
6612
|
|
|
6608
|
-
interface Props$
|
|
6613
|
+
interface Props$V {
|
|
6609
6614
|
figureId: UID;
|
|
6610
6615
|
definition: ChartWithAxisDefinition;
|
|
6611
6616
|
canUpdateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
6612
6617
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
6613
6618
|
}
|
|
6614
|
-
declare class GenericChartConfigPanel extends Component<Props$
|
|
6619
|
+
declare class GenericChartConfigPanel extends Component<Props$V, SpreadsheetChildEnv> {
|
|
6615
6620
|
static template: string;
|
|
6616
6621
|
static components: {
|
|
6617
6622
|
ChartDataSeries: typeof ChartDataSeries;
|
|
@@ -6825,7 +6830,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
6825
6830
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
6826
6831
|
}
|
|
6827
6832
|
|
|
6828
|
-
interface Props$
|
|
6833
|
+
interface Props$U {
|
|
6829
6834
|
currentColor: string | undefined;
|
|
6830
6835
|
toggleColorPicker: () => void;
|
|
6831
6836
|
showColorPicker: boolean;
|
|
@@ -6836,7 +6841,7 @@ interface Props$S {
|
|
|
6836
6841
|
dropdownMaxHeight?: Pixel;
|
|
6837
6842
|
class?: string;
|
|
6838
6843
|
}
|
|
6839
|
-
declare class ColorPickerWidget extends Component<Props$
|
|
6844
|
+
declare class ColorPickerWidget extends Component<Props$U, SpreadsheetChildEnv> {
|
|
6840
6845
|
static template: string;
|
|
6841
6846
|
static props: {
|
|
6842
6847
|
currentColor: {
|
|
@@ -6874,12 +6879,12 @@ declare class ColorPickerWidget extends Component<Props$S, SpreadsheetChildEnv>
|
|
|
6874
6879
|
get colorPickerAnchorRect(): Rect;
|
|
6875
6880
|
}
|
|
6876
6881
|
|
|
6877
|
-
interface Props$
|
|
6882
|
+
interface Props$T {
|
|
6878
6883
|
currentColor?: string;
|
|
6879
6884
|
onColorPicked: (color: string) => void;
|
|
6880
6885
|
title?: string;
|
|
6881
6886
|
}
|
|
6882
|
-
declare class RoundColorPicker extends Component<Props$
|
|
6887
|
+
declare class RoundColorPicker extends Component<Props$T, SpreadsheetChildEnv> {
|
|
6883
6888
|
static template: string;
|
|
6884
6889
|
static components: {
|
|
6885
6890
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -6909,7 +6914,7 @@ declare class RoundColorPicker extends Component<Props$R, SpreadsheetChildEnv> {
|
|
|
6909
6914
|
get buttonStyle(): string;
|
|
6910
6915
|
}
|
|
6911
6916
|
|
|
6912
|
-
interface Props$
|
|
6917
|
+
interface Props$S {
|
|
6913
6918
|
title: string;
|
|
6914
6919
|
updateTitle: (title: string) => void;
|
|
6915
6920
|
name?: string;
|
|
@@ -6919,7 +6924,7 @@ interface Props$Q {
|
|
|
6919
6924
|
updateColor?: (Color: any) => void;
|
|
6920
6925
|
style: TitleDesign;
|
|
6921
6926
|
}
|
|
6922
|
-
declare class ChartTitle extends Component<Props$
|
|
6927
|
+
declare class ChartTitle extends Component<Props$S, SpreadsheetChildEnv> {
|
|
6923
6928
|
static template: string;
|
|
6924
6929
|
static components: {
|
|
6925
6930
|
Section: typeof Section;
|
|
@@ -6976,18 +6981,24 @@ interface AxisDefinition {
|
|
|
6976
6981
|
id: string;
|
|
6977
6982
|
name: string;
|
|
6978
6983
|
}
|
|
6979
|
-
interface Props$
|
|
6984
|
+
interface Props$R {
|
|
6980
6985
|
figureId: UID;
|
|
6981
6986
|
definition: ChartWithAxisDefinition | WaterfallChartDefinition;
|
|
6982
6987
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition | WaterfallChartDefinition>) => DispatchResult;
|
|
6983
6988
|
axesList: AxisDefinition[];
|
|
6984
6989
|
}
|
|
6985
|
-
declare class AxisDesignEditor extends Component<Props$
|
|
6990
|
+
declare class AxisDesignEditor extends Component<Props$R, SpreadsheetChildEnv> {
|
|
6986
6991
|
static template: string;
|
|
6987
6992
|
static components: {
|
|
6988
6993
|
Section: typeof Section;
|
|
6989
6994
|
ChartTitle: typeof ChartTitle;
|
|
6990
6995
|
};
|
|
6996
|
+
static props: {
|
|
6997
|
+
figureId: StringConstructor;
|
|
6998
|
+
definition: ObjectConstructor;
|
|
6999
|
+
updateChart: FunctionConstructor;
|
|
7000
|
+
axesList: ArrayConstructor;
|
|
7001
|
+
};
|
|
6991
7002
|
state: {
|
|
6992
7003
|
currentAxis: string;
|
|
6993
7004
|
};
|
|
@@ -7001,12 +7012,12 @@ declare class AxisDesignEditor extends Component<Props$P, SpreadsheetChildEnv> {
|
|
|
7001
7012
|
updateAxisTitle(text: string): void;
|
|
7002
7013
|
}
|
|
7003
7014
|
|
|
7004
|
-
interface Props$
|
|
7015
|
+
interface Props$Q {
|
|
7005
7016
|
figureId: UID;
|
|
7006
7017
|
definition: ChartDefinition;
|
|
7007
7018
|
updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
|
|
7008
7019
|
}
|
|
7009
|
-
declare class GeneralDesignEditor extends Component<Props$
|
|
7020
|
+
declare class GeneralDesignEditor extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
7010
7021
|
static template: string;
|
|
7011
7022
|
static components: {
|
|
7012
7023
|
RoundColorPicker: typeof RoundColorPicker;
|
|
@@ -7036,13 +7047,13 @@ declare class GeneralDesignEditor extends Component<Props$O, SpreadsheetChildEnv
|
|
|
7036
7047
|
updateChartTitleAlignment(align: "left" | "center" | "right"): void;
|
|
7037
7048
|
}
|
|
7038
7049
|
|
|
7039
|
-
interface Props$
|
|
7050
|
+
interface Props$P {
|
|
7040
7051
|
figureId: UID;
|
|
7041
7052
|
definition: ChartWithAxisDefinition;
|
|
7042
7053
|
canUpdateChart: (figureID: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7043
7054
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7044
7055
|
}
|
|
7045
|
-
declare class ChartWithAxisDesignPanel extends Component<Props$
|
|
7056
|
+
declare class ChartWithAxisDesignPanel extends Component<Props$P, SpreadsheetChildEnv> {
|
|
7046
7057
|
static template: string;
|
|
7047
7058
|
static components: {
|
|
7048
7059
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -7051,6 +7062,12 @@ declare class ChartWithAxisDesignPanel extends Component<Props$N, SpreadsheetChi
|
|
|
7051
7062
|
AxisDesignEditor: typeof AxisDesignEditor;
|
|
7052
7063
|
RoundColorPicker: typeof RoundColorPicker;
|
|
7053
7064
|
};
|
|
7065
|
+
static props: {
|
|
7066
|
+
figureId: StringConstructor;
|
|
7067
|
+
definition: ObjectConstructor;
|
|
7068
|
+
canUpdateChart: FunctionConstructor;
|
|
7069
|
+
updateChart: FunctionConstructor;
|
|
7070
|
+
};
|
|
7054
7071
|
private state;
|
|
7055
7072
|
get axesList(): AxisDefinition[];
|
|
7056
7073
|
updateLegendPosition(ev: any): void;
|
|
@@ -7064,13 +7081,13 @@ declare class ChartWithAxisDesignPanel extends Component<Props$N, SpreadsheetChi
|
|
|
7064
7081
|
getDataSerieLabel(): string | undefined;
|
|
7065
7082
|
}
|
|
7066
7083
|
|
|
7067
|
-
interface Props$
|
|
7084
|
+
interface Props$O {
|
|
7068
7085
|
figureId: UID;
|
|
7069
7086
|
definition: GaugeChartDefinition;
|
|
7070
7087
|
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7071
7088
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7072
7089
|
}
|
|
7073
|
-
declare class GaugeChartConfigPanel extends Component<Props$
|
|
7090
|
+
declare class GaugeChartConfigPanel extends Component<Props$O, SpreadsheetChildEnv> {
|
|
7074
7091
|
static template: string;
|
|
7075
7092
|
static components: {
|
|
7076
7093
|
ChartErrorSection: typeof ChartErrorSection;
|
|
@@ -7095,13 +7112,13 @@ interface PanelState {
|
|
|
7095
7112
|
sectionRuleDispatchResult?: DispatchResult;
|
|
7096
7113
|
sectionRule: SectionRule;
|
|
7097
7114
|
}
|
|
7098
|
-
interface Props$
|
|
7115
|
+
interface Props$N {
|
|
7099
7116
|
figureId: UID;
|
|
7100
7117
|
definition: GaugeChartDefinition;
|
|
7101
7118
|
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7102
7119
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7103
7120
|
}
|
|
7104
|
-
declare class GaugeChartDesignPanel extends Component<Props$
|
|
7121
|
+
declare class GaugeChartDesignPanel extends Component<Props$N, SpreadsheetChildEnv> {
|
|
7105
7122
|
static template: string;
|
|
7106
7123
|
static components: {
|
|
7107
7124
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
@@ -7151,13 +7168,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
|
7151
7168
|
onUpdateCumulative(cumulative: boolean): void;
|
|
7152
7169
|
}
|
|
7153
7170
|
|
|
7154
|
-
interface Props$
|
|
7171
|
+
interface Props$M {
|
|
7155
7172
|
figureId: UID;
|
|
7156
7173
|
definition: ScorecardChartDefinition;
|
|
7157
7174
|
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7158
7175
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7159
7176
|
}
|
|
7160
|
-
declare class ScorecardChartConfigPanel extends Component<Props$
|
|
7177
|
+
declare class ScorecardChartConfigPanel extends Component<Props$M, SpreadsheetChildEnv> {
|
|
7161
7178
|
static template: string;
|
|
7162
7179
|
static components: {
|
|
7163
7180
|
SelectionInput: typeof SelectionInput;
|
|
@@ -7186,13 +7203,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$K, SpreadsheetCh
|
|
|
7186
7203
|
}
|
|
7187
7204
|
|
|
7188
7205
|
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
7189
|
-
interface Props$
|
|
7206
|
+
interface Props$L {
|
|
7190
7207
|
figureId: UID;
|
|
7191
7208
|
definition: ScorecardChartDefinition;
|
|
7192
7209
|
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7193
7210
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7194
7211
|
}
|
|
7195
|
-
declare class ScorecardChartDesignPanel extends Component<Props$
|
|
7212
|
+
declare class ScorecardChartDesignPanel extends Component<Props$L, SpreadsheetChildEnv> {
|
|
7196
7213
|
static template: string;
|
|
7197
7214
|
static components: {
|
|
7198
7215
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -7350,13 +7367,13 @@ interface EnrichedToken extends Token {
|
|
|
7350
7367
|
functionContext?: FunctionContext;
|
|
7351
7368
|
}
|
|
7352
7369
|
|
|
7353
|
-
interface Props$
|
|
7370
|
+
interface Props$K {
|
|
7354
7371
|
proposals: AutoCompleteProposal[];
|
|
7355
7372
|
selectedIndex: number | undefined;
|
|
7356
7373
|
onValueSelected: (value: string) => void;
|
|
7357
7374
|
onValueHovered: (index: string) => void;
|
|
7358
7375
|
}
|
|
7359
|
-
declare class TextValueProvider extends Component<Props$
|
|
7376
|
+
declare class TextValueProvider extends Component<Props$K> {
|
|
7360
7377
|
static template: string;
|
|
7361
7378
|
static props: {
|
|
7362
7379
|
proposals: ArrayConstructor;
|
|
@@ -7570,7 +7587,7 @@ declare class ContentEditableHelper {
|
|
|
7570
7587
|
getText(): string;
|
|
7571
7588
|
}
|
|
7572
7589
|
|
|
7573
|
-
interface Props$
|
|
7590
|
+
interface Props$J {
|
|
7574
7591
|
functionName: string;
|
|
7575
7592
|
functionDescription: FunctionDescription;
|
|
7576
7593
|
argToFocus: number;
|
|
@@ -7578,7 +7595,7 @@ interface Props$H {
|
|
|
7578
7595
|
interface AssistantState {
|
|
7579
7596
|
allowCellSelectionBehind: boolean;
|
|
7580
7597
|
}
|
|
7581
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
7598
|
+
declare class FunctionDescriptionProvider extends Component<Props$J, SpreadsheetChildEnv> {
|
|
7582
7599
|
static template: string;
|
|
7583
7600
|
static props: {
|
|
7584
7601
|
functionName: StringConstructor;
|
|
@@ -7588,7 +7605,7 @@ declare class FunctionDescriptionProvider extends Component<Props$H, Spreadsheet
|
|
|
7588
7605
|
assistantState: AssistantState;
|
|
7589
7606
|
private timeOutId;
|
|
7590
7607
|
setup(): void;
|
|
7591
|
-
getContext(): Props$
|
|
7608
|
+
getContext(): Props$J;
|
|
7592
7609
|
onMouseMove(): void;
|
|
7593
7610
|
get formulaArgSeparator(): string;
|
|
7594
7611
|
}
|
|
@@ -7779,10 +7796,10 @@ interface AutoCompleteProviderDefinition {
|
|
|
7779
7796
|
|
|
7780
7797
|
declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
7781
7798
|
|
|
7782
|
-
interface Props$
|
|
7799
|
+
interface Props$I {
|
|
7783
7800
|
figure: Figure;
|
|
7784
7801
|
}
|
|
7785
|
-
declare class ChartJsComponent extends Component<Props$
|
|
7802
|
+
declare class ChartJsComponent extends Component<Props$I, SpreadsheetChildEnv> {
|
|
7786
7803
|
static template: string;
|
|
7787
7804
|
static props: {
|
|
7788
7805
|
figure: ObjectConstructor;
|
|
@@ -7798,10 +7815,10 @@ declare class ChartJsComponent extends Component<Props$G, SpreadsheetChildEnv> {
|
|
|
7798
7815
|
private updateChartJs;
|
|
7799
7816
|
}
|
|
7800
7817
|
|
|
7801
|
-
interface Props$
|
|
7818
|
+
interface Props$H {
|
|
7802
7819
|
figure: Figure;
|
|
7803
7820
|
}
|
|
7804
|
-
declare class ScorecardChart extends Component<Props$
|
|
7821
|
+
declare class ScorecardChart extends Component<Props$H, SpreadsheetChildEnv> {
|
|
7805
7822
|
static template: string;
|
|
7806
7823
|
static props: {
|
|
7807
7824
|
figure: ObjectConstructor;
|
|
@@ -7813,7 +7830,7 @@ declare class ScorecardChart extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
7813
7830
|
}
|
|
7814
7831
|
|
|
7815
7832
|
type MenuItemOrSeparator = Action | "separator";
|
|
7816
|
-
interface Props$
|
|
7833
|
+
interface Props$G {
|
|
7817
7834
|
position: DOMCoordinates;
|
|
7818
7835
|
menuItems: Action[];
|
|
7819
7836
|
depth: number;
|
|
@@ -7831,7 +7848,7 @@ interface MenuState {
|
|
|
7831
7848
|
menuItems: Action[];
|
|
7832
7849
|
isHoveringChild?: boolean;
|
|
7833
7850
|
}
|
|
7834
|
-
declare class Menu extends Component<Props$
|
|
7851
|
+
declare class Menu extends Component<Props$G, SpreadsheetChildEnv> {
|
|
7835
7852
|
static template: string;
|
|
7836
7853
|
static props: {
|
|
7837
7854
|
position: ObjectConstructor;
|
|
@@ -7901,14 +7918,14 @@ declare class Menu extends Component<Props$E, SpreadsheetChildEnv> {
|
|
|
7901
7918
|
}
|
|
7902
7919
|
|
|
7903
7920
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
7904
|
-
interface Props$
|
|
7921
|
+
interface Props$F {
|
|
7905
7922
|
figure: Figure;
|
|
7906
7923
|
style: string;
|
|
7907
7924
|
onFigureDeleted: () => void;
|
|
7908
7925
|
onMouseDown: (ev: MouseEvent) => void;
|
|
7909
7926
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
7910
7927
|
}
|
|
7911
|
-
declare class FigureComponent extends Component<Props$
|
|
7928
|
+
declare class FigureComponent extends Component<Props$F, SpreadsheetChildEnv> {
|
|
7912
7929
|
static template: string;
|
|
7913
7930
|
static props: {
|
|
7914
7931
|
figure: ObjectConstructor;
|
|
@@ -7957,11 +7974,11 @@ declare class FigureComponent extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
7957
7974
|
private openContextMenu;
|
|
7958
7975
|
}
|
|
7959
7976
|
|
|
7960
|
-
interface Props$
|
|
7977
|
+
interface Props$E {
|
|
7961
7978
|
figure: Figure;
|
|
7962
7979
|
onFigureDeleted: () => void;
|
|
7963
7980
|
}
|
|
7964
|
-
declare class ChartFigure extends Component<Props$
|
|
7981
|
+
declare class ChartFigure extends Component<Props$E, SpreadsheetChildEnv> {
|
|
7965
7982
|
static template: string;
|
|
7966
7983
|
static props: {
|
|
7967
7984
|
figure: ObjectConstructor;
|
|
@@ -7973,7 +7990,7 @@ declare class ChartFigure extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
7973
7990
|
get chartComponent(): new (...args: any) => Component;
|
|
7974
7991
|
}
|
|
7975
7992
|
|
|
7976
|
-
interface Props$
|
|
7993
|
+
interface Props$D {
|
|
7977
7994
|
isVisible: boolean;
|
|
7978
7995
|
position: Position;
|
|
7979
7996
|
}
|
|
@@ -7985,7 +8002,7 @@ interface State$8 {
|
|
|
7985
8002
|
position: Position;
|
|
7986
8003
|
handler: boolean;
|
|
7987
8004
|
}
|
|
7988
|
-
declare class Autofill extends Component<Props$
|
|
8005
|
+
declare class Autofill extends Component<Props$D, SpreadsheetChildEnv> {
|
|
7989
8006
|
static template: string;
|
|
7990
8007
|
static props: {
|
|
7991
8008
|
position: ObjectConstructor;
|
|
@@ -8019,7 +8036,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
8019
8036
|
get tagStyle(): string;
|
|
8020
8037
|
}
|
|
8021
8038
|
|
|
8022
|
-
interface Props$
|
|
8039
|
+
interface Props$C {
|
|
8023
8040
|
gridDims: DOMDimension;
|
|
8024
8041
|
onInputContextMenu: (event: MouseEvent) => void;
|
|
8025
8042
|
}
|
|
@@ -8027,7 +8044,7 @@ interface Props$A {
|
|
|
8027
8044
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
8028
8045
|
* It also applies the style of the cell to the composer input.
|
|
8029
8046
|
*/
|
|
8030
|
-
declare class GridComposer extends Component<Props$
|
|
8047
|
+
declare class GridComposer extends Component<Props$C, SpreadsheetChildEnv> {
|
|
8031
8048
|
static template: string;
|
|
8032
8049
|
static props: {
|
|
8033
8050
|
gridDims: ObjectConstructor;
|
|
@@ -8084,10 +8101,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
8084
8101
|
isPositionVisible(position: CellPosition): boolean;
|
|
8085
8102
|
}
|
|
8086
8103
|
|
|
8087
|
-
interface Props$
|
|
8104
|
+
interface Props$B {
|
|
8088
8105
|
cellPosition: CellPosition;
|
|
8089
8106
|
}
|
|
8090
|
-
declare class DataValidationCheckbox extends Component<Props$
|
|
8107
|
+
declare class DataValidationCheckbox extends Component<Props$B, SpreadsheetChildEnv> {
|
|
8091
8108
|
static template: string;
|
|
8092
8109
|
static props: {
|
|
8093
8110
|
cellPosition: ObjectConstructor;
|
|
@@ -8097,10 +8114,10 @@ declare class DataValidationCheckbox extends Component<Props$z, SpreadsheetChild
|
|
|
8097
8114
|
get isDisabled(): boolean;
|
|
8098
8115
|
}
|
|
8099
8116
|
|
|
8100
|
-
interface Props$
|
|
8117
|
+
interface Props$A {
|
|
8101
8118
|
cellPosition: CellPosition;
|
|
8102
8119
|
}
|
|
8103
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
8120
|
+
declare class DataValidationListIcon extends Component<Props$A, SpreadsheetChildEnv> {
|
|
8104
8121
|
static template: string;
|
|
8105
8122
|
static props: {
|
|
8106
8123
|
cellPosition: ObjectConstructor;
|
|
@@ -8130,7 +8147,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
8130
8147
|
}
|
|
8131
8148
|
|
|
8132
8149
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
8133
|
-
interface Props$
|
|
8150
|
+
interface Props$z {
|
|
8134
8151
|
onFigureDeleted: () => void;
|
|
8135
8152
|
}
|
|
8136
8153
|
interface Container {
|
|
@@ -8209,7 +8226,7 @@ interface DndState {
|
|
|
8209
8226
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
8210
8227
|
*
|
|
8211
8228
|
*/
|
|
8212
|
-
declare class FiguresContainer extends Component<Props$
|
|
8229
|
+
declare class FiguresContainer extends Component<Props$z, SpreadsheetChildEnv> {
|
|
8213
8230
|
static template: string;
|
|
8214
8231
|
static props: {
|
|
8215
8232
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -8264,10 +8281,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
|
|
|
8264
8281
|
private computePopoverAnchorRect;
|
|
8265
8282
|
}
|
|
8266
8283
|
|
|
8267
|
-
interface Props$
|
|
8284
|
+
interface Props$y {
|
|
8268
8285
|
cellPosition: CellPosition;
|
|
8269
8286
|
}
|
|
8270
|
-
declare class FilterIcon extends Component<Props$
|
|
8287
|
+
declare class FilterIcon extends Component<Props$y, SpreadsheetChildEnv> {
|
|
8271
8288
|
static template: string;
|
|
8272
8289
|
static props: {
|
|
8273
8290
|
cellPosition: ObjectConstructor;
|
|
@@ -8289,10 +8306,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
8289
8306
|
getFilterHeadersPositions(): CellPosition[];
|
|
8290
8307
|
}
|
|
8291
8308
|
|
|
8292
|
-
interface Props$
|
|
8309
|
+
interface Props$x {
|
|
8293
8310
|
focusGrid: () => void;
|
|
8294
8311
|
}
|
|
8295
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
8312
|
+
declare class GridAddRowsFooter extends Component<Props$x, SpreadsheetChildEnv> {
|
|
8296
8313
|
static template: string;
|
|
8297
8314
|
static props: {
|
|
8298
8315
|
focusGrid: FunctionConstructor;
|
|
@@ -8316,7 +8333,7 @@ declare class GridAddRowsFooter extends Component<Props$v, SpreadsheetChildEnv>
|
|
|
8316
8333
|
private onExternalClick;
|
|
8317
8334
|
}
|
|
8318
8335
|
|
|
8319
|
-
interface Props$
|
|
8336
|
+
interface Props$w {
|
|
8320
8337
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
8321
8338
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
8322
8339
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
@@ -8326,7 +8343,7 @@ interface Props$u {
|
|
|
8326
8343
|
gridOverlayDimensions: string;
|
|
8327
8344
|
onFigureDeleted: () => void;
|
|
8328
8345
|
}
|
|
8329
|
-
declare class GridOverlay extends Component<Props$
|
|
8346
|
+
declare class GridOverlay extends Component<Props$w, SpreadsheetChildEnv> {
|
|
8330
8347
|
static template: string;
|
|
8331
8348
|
static props: {
|
|
8332
8349
|
onCellHovered: {
|
|
@@ -8383,12 +8400,12 @@ declare class GridOverlay extends Component<Props$u, SpreadsheetChildEnv> {
|
|
|
8383
8400
|
private getCartesianCoordinates;
|
|
8384
8401
|
}
|
|
8385
8402
|
|
|
8386
|
-
interface Props$
|
|
8403
|
+
interface Props$v {
|
|
8387
8404
|
gridRect: Rect;
|
|
8388
8405
|
onClosePopover: () => void;
|
|
8389
8406
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
8390
8407
|
}
|
|
8391
|
-
declare class GridPopover extends Component<Props$
|
|
8408
|
+
declare class GridPopover extends Component<Props$v, SpreadsheetChildEnv> {
|
|
8392
8409
|
static template: string;
|
|
8393
8410
|
static props: {
|
|
8394
8411
|
onClosePopover: FunctionConstructor;
|
|
@@ -8531,13 +8548,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
8531
8548
|
}
|
|
8532
8549
|
|
|
8533
8550
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
8534
|
-
interface Props$
|
|
8551
|
+
interface Props$u {
|
|
8535
8552
|
zone: Zone;
|
|
8536
8553
|
orientation: Orientation$1;
|
|
8537
8554
|
isMoving: boolean;
|
|
8538
8555
|
onMoveHighlight: (x: Pixel, y: Pixel) => void;
|
|
8539
8556
|
}
|
|
8540
|
-
declare class Border extends Component<Props$
|
|
8557
|
+
declare class Border extends Component<Props$u, SpreadsheetChildEnv> {
|
|
8541
8558
|
static template: string;
|
|
8542
8559
|
static props: {
|
|
8543
8560
|
zone: ObjectConstructor;
|
|
@@ -8550,14 +8567,14 @@ declare class Border extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
8550
8567
|
}
|
|
8551
8568
|
|
|
8552
8569
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
8553
|
-
interface Props$
|
|
8570
|
+
interface Props$t {
|
|
8554
8571
|
zone: Zone;
|
|
8555
8572
|
color: Color;
|
|
8556
8573
|
orientation: Orientation;
|
|
8557
8574
|
isResizing: boolean;
|
|
8558
8575
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
8559
8576
|
}
|
|
8560
|
-
declare class Corner extends Component<Props$
|
|
8577
|
+
declare class Corner extends Component<Props$t, SpreadsheetChildEnv> {
|
|
8561
8578
|
static template: string;
|
|
8562
8579
|
static props: {
|
|
8563
8580
|
zone: ObjectConstructor;
|
|
@@ -8572,14 +8589,14 @@ declare class Corner extends Component<Props$r, SpreadsheetChildEnv> {
|
|
|
8572
8589
|
onMouseDown(ev: MouseEvent): void;
|
|
8573
8590
|
}
|
|
8574
8591
|
|
|
8575
|
-
interface Props$
|
|
8592
|
+
interface Props$s {
|
|
8576
8593
|
zone: Zone;
|
|
8577
8594
|
color: Color;
|
|
8578
8595
|
}
|
|
8579
8596
|
interface HighlightState {
|
|
8580
8597
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
8581
8598
|
}
|
|
8582
|
-
declare class Highlight extends Component<Props$
|
|
8599
|
+
declare class Highlight extends Component<Props$s, SpreadsheetChildEnv> {
|
|
8583
8600
|
static template: string;
|
|
8584
8601
|
static props: {
|
|
8585
8602
|
zone: ObjectConstructor;
|
|
@@ -8596,7 +8613,7 @@ declare class Highlight extends Component<Props$q, SpreadsheetChildEnv> {
|
|
|
8596
8613
|
|
|
8597
8614
|
type ScrollDirection = "horizontal" | "vertical";
|
|
8598
8615
|
|
|
8599
|
-
interface Props$
|
|
8616
|
+
interface Props$r {
|
|
8600
8617
|
width: Pixel;
|
|
8601
8618
|
height: Pixel;
|
|
8602
8619
|
direction: ScrollDirection;
|
|
@@ -8604,7 +8621,7 @@ interface Props$p {
|
|
|
8604
8621
|
offset: Pixel;
|
|
8605
8622
|
onScroll: (offset: Pixel) => void;
|
|
8606
8623
|
}
|
|
8607
|
-
declare class ScrollBar extends Component<Props$
|
|
8624
|
+
declare class ScrollBar extends Component<Props$r> {
|
|
8608
8625
|
static props: {
|
|
8609
8626
|
width: {
|
|
8610
8627
|
type: NumberConstructor;
|
|
@@ -8632,10 +8649,10 @@ declare class ScrollBar extends Component<Props$p> {
|
|
|
8632
8649
|
onScroll(ev: any): void;
|
|
8633
8650
|
}
|
|
8634
8651
|
|
|
8635
|
-
interface Props$
|
|
8652
|
+
interface Props$q {
|
|
8636
8653
|
leftOffset: number;
|
|
8637
8654
|
}
|
|
8638
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
8655
|
+
declare class HorizontalScrollBar extends Component<Props$q, SpreadsheetChildEnv> {
|
|
8639
8656
|
static props: {
|
|
8640
8657
|
leftOffset: {
|
|
8641
8658
|
type: NumberConstructor;
|
|
@@ -8661,10 +8678,10 @@ declare class HorizontalScrollBar extends Component<Props$o, SpreadsheetChildEnv
|
|
|
8661
8678
|
onScroll(offset: any): void;
|
|
8662
8679
|
}
|
|
8663
8680
|
|
|
8664
|
-
interface Props$
|
|
8681
|
+
interface Props$p {
|
|
8665
8682
|
topOffset: number;
|
|
8666
8683
|
}
|
|
8667
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
8684
|
+
declare class VerticalScrollBar extends Component<Props$p, SpreadsheetChildEnv> {
|
|
8668
8685
|
static props: {
|
|
8669
8686
|
topOffset: {
|
|
8670
8687
|
type: NumberConstructor;
|
|
@@ -8690,13 +8707,13 @@ declare class VerticalScrollBar extends Component<Props$n, SpreadsheetChildEnv>
|
|
|
8690
8707
|
onScroll(offset: any): void;
|
|
8691
8708
|
}
|
|
8692
8709
|
|
|
8693
|
-
interface Props$
|
|
8710
|
+
interface Props$o {
|
|
8694
8711
|
table: Table;
|
|
8695
8712
|
}
|
|
8696
8713
|
interface State$7 {
|
|
8697
8714
|
highlightZone: Zone | undefined;
|
|
8698
8715
|
}
|
|
8699
|
-
declare class TableResizer extends Component<Props$
|
|
8716
|
+
declare class TableResizer extends Component<Props$o, SpreadsheetChildEnv> {
|
|
8700
8717
|
static template: string;
|
|
8701
8718
|
static props: {
|
|
8702
8719
|
table: ObjectConstructor;
|
|
@@ -8728,10 +8745,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
|
|
|
8728
8745
|
* - a vertical resizer (same, for rows)
|
|
8729
8746
|
*/
|
|
8730
8747
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
8731
|
-
interface Props$
|
|
8748
|
+
interface Props$n {
|
|
8732
8749
|
exposeFocus: (focus: () => void) => void;
|
|
8733
8750
|
}
|
|
8734
|
-
declare class Grid extends Component<Props$
|
|
8751
|
+
declare class Grid extends Component<Props$n, SpreadsheetChildEnv> {
|
|
8735
8752
|
static template: string;
|
|
8736
8753
|
static props: {
|
|
8737
8754
|
exposeFocus: FunctionConstructor;
|
|
@@ -8840,11 +8857,11 @@ declare class MainChartPanelStore extends SpreadsheetStore {
|
|
|
8840
8857
|
changeChartType(figureId: UID, type: ChartType): void;
|
|
8841
8858
|
}
|
|
8842
8859
|
|
|
8843
|
-
interface Props$
|
|
8860
|
+
interface Props$m {
|
|
8844
8861
|
onCloseSidePanel: () => void;
|
|
8845
8862
|
figureId: UID;
|
|
8846
8863
|
}
|
|
8847
|
-
declare class ChartPanel extends Component<Props$
|
|
8864
|
+
declare class ChartPanel extends Component<Props$m, SpreadsheetChildEnv> {
|
|
8848
8865
|
static template: string;
|
|
8849
8866
|
static components: {
|
|
8850
8867
|
Section: typeof Section;
|
|
@@ -8864,13 +8881,13 @@ declare class ChartPanel extends Component<Props$k, SpreadsheetChildEnv> {
|
|
|
8864
8881
|
get chartTypes(): Record<string, string>;
|
|
8865
8882
|
}
|
|
8866
8883
|
|
|
8867
|
-
interface Props$
|
|
8884
|
+
interface Props$l {
|
|
8868
8885
|
figureId: UID;
|
|
8869
8886
|
definition: PieChartDefinition;
|
|
8870
8887
|
canUpdateChart: (figureID: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
|
|
8871
8888
|
updateChart: (figureId: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
|
|
8872
8889
|
}
|
|
8873
|
-
declare class PieChartDesignPanel extends Component<Props$
|
|
8890
|
+
declare class PieChartDesignPanel extends Component<Props$l, SpreadsheetChildEnv> {
|
|
8874
8891
|
static template: string;
|
|
8875
8892
|
static components: {
|
|
8876
8893
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -8888,6 +8905,37 @@ declare class PieChartDesignPanel extends Component<Props$j, SpreadsheetChildEnv
|
|
|
8888
8905
|
updateLegendPosition(ev: any): void;
|
|
8889
8906
|
}
|
|
8890
8907
|
|
|
8908
|
+
interface CogWheelMenuItem {
|
|
8909
|
+
name: string;
|
|
8910
|
+
icon?: string;
|
|
8911
|
+
onClick: () => void;
|
|
8912
|
+
}
|
|
8913
|
+
interface Props$k {
|
|
8914
|
+
items: CogWheelMenuItem[];
|
|
8915
|
+
}
|
|
8916
|
+
declare class CogWheelMenu extends Component<Props$k, SpreadsheetChildEnv> {
|
|
8917
|
+
static template: string;
|
|
8918
|
+
static components: {
|
|
8919
|
+
Popover: typeof Popover;
|
|
8920
|
+
};
|
|
8921
|
+
static props: {
|
|
8922
|
+
items: ArrayConstructor;
|
|
8923
|
+
};
|
|
8924
|
+
private buttonRef;
|
|
8925
|
+
private popover;
|
|
8926
|
+
setup(): void;
|
|
8927
|
+
get popoverProps(): {
|
|
8928
|
+
anchorRect: {
|
|
8929
|
+
x: number;
|
|
8930
|
+
y: number;
|
|
8931
|
+
width: number;
|
|
8932
|
+
height: number;
|
|
8933
|
+
};
|
|
8934
|
+
positioning: string;
|
|
8935
|
+
};
|
|
8936
|
+
togglePopover(): void;
|
|
8937
|
+
}
|
|
8938
|
+
|
|
8891
8939
|
declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
|
|
8892
8940
|
mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
|
|
8893
8941
|
private allSheetsMatches;
|
|
@@ -8952,12 +9000,12 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
8952
9000
|
|
|
8953
9001
|
/** @odoo-module */
|
|
8954
9002
|
|
|
8955
|
-
interface Props$
|
|
9003
|
+
interface Props$j {
|
|
8956
9004
|
name: string;
|
|
8957
9005
|
displayName: string;
|
|
8958
9006
|
onChanged: (name: string) => void;
|
|
8959
9007
|
}
|
|
8960
|
-
declare class EditableName extends Component<Props$
|
|
9008
|
+
declare class EditableName extends Component<Props$j, SpreadsheetChildEnv> {
|
|
8961
9009
|
static template: string;
|
|
8962
9010
|
static props: {
|
|
8963
9011
|
name: StringConstructor;
|
|
@@ -8970,14 +9018,14 @@ declare class EditableName extends Component<Props$i, SpreadsheetChildEnv> {
|
|
|
8970
9018
|
save(): void;
|
|
8971
9019
|
}
|
|
8972
9020
|
|
|
8973
|
-
interface Props$
|
|
9021
|
+
interface Props$i {
|
|
8974
9022
|
deferUpdate: boolean;
|
|
8975
9023
|
isDirty: boolean;
|
|
8976
9024
|
toggleDeferUpdate: (value: boolean) => void;
|
|
8977
9025
|
discard: () => void;
|
|
8978
9026
|
apply: () => void;
|
|
8979
9027
|
}
|
|
8980
|
-
declare class PivotDeferUpdate extends Component<Props$
|
|
9028
|
+
declare class PivotDeferUpdate extends Component<Props$i, SpreadsheetChildEnv> {
|
|
8981
9029
|
static template: string;
|
|
8982
9030
|
static props: {
|
|
8983
9031
|
deferUpdate: BooleanConstructor;
|
|
@@ -8994,11 +9042,11 @@ declare class PivotDeferUpdate extends Component<Props$h, SpreadsheetChildEnv> {
|
|
|
8994
9042
|
get deferUpdatesTooltip(): string;
|
|
8995
9043
|
}
|
|
8996
9044
|
|
|
8997
|
-
interface Props$
|
|
9045
|
+
interface Props$h {
|
|
8998
9046
|
onFieldPicked: (field: string) => void;
|
|
8999
9047
|
fields: PivotField[];
|
|
9000
9048
|
}
|
|
9001
|
-
declare class AddDimensionButton extends Component<Props$
|
|
9049
|
+
declare class AddDimensionButton extends Component<Props$h, SpreadsheetChildEnv> {
|
|
9002
9050
|
static template: string;
|
|
9003
9051
|
static components: {
|
|
9004
9052
|
Popover: typeof Popover;
|
|
@@ -9030,11 +9078,11 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
|
|
|
9030
9078
|
onKeyDown(ev: KeyboardEvent): void;
|
|
9031
9079
|
}
|
|
9032
9080
|
|
|
9033
|
-
interface Props$
|
|
9081
|
+
interface Props$g {
|
|
9034
9082
|
dimension: PivotDimension;
|
|
9035
9083
|
onRemoved: (dimension: PivotDimension) => void;
|
|
9036
9084
|
}
|
|
9037
|
-
declare class PivotDimension extends Component<Props$
|
|
9085
|
+
declare class PivotDimension extends Component<Props$g, SpreadsheetChildEnv> {
|
|
9038
9086
|
static template: string;
|
|
9039
9087
|
static props: {
|
|
9040
9088
|
dimension: ObjectConstructor;
|
|
@@ -9049,13 +9097,13 @@ declare class PivotDimension extends Component<Props$f, SpreadsheetChildEnv> {
|
|
|
9049
9097
|
};
|
|
9050
9098
|
}
|
|
9051
9099
|
|
|
9052
|
-
interface Props$
|
|
9100
|
+
interface Props$f {
|
|
9053
9101
|
dimension: PivotDimension$1;
|
|
9054
9102
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9055
9103
|
availableGranularities: Set<string>;
|
|
9056
9104
|
allGranularities: string[];
|
|
9057
9105
|
}
|
|
9058
|
-
declare class PivotDimensionGranularity extends Component<Props$
|
|
9106
|
+
declare class PivotDimensionGranularity extends Component<Props$f, SpreadsheetChildEnv> {
|
|
9059
9107
|
static template: string;
|
|
9060
9108
|
static props: {
|
|
9061
9109
|
dimension: ObjectConstructor;
|
|
@@ -9077,11 +9125,11 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
|
|
|
9077
9125
|
};
|
|
9078
9126
|
}
|
|
9079
9127
|
|
|
9080
|
-
interface Props$
|
|
9128
|
+
interface Props$e {
|
|
9081
9129
|
dimension: PivotDimension$1;
|
|
9082
9130
|
onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
|
|
9083
9131
|
}
|
|
9084
|
-
declare class PivotDimensionOrder extends Component<Props$
|
|
9132
|
+
declare class PivotDimensionOrder extends Component<Props$e, SpreadsheetChildEnv> {
|
|
9085
9133
|
static template: string;
|
|
9086
9134
|
static props: {
|
|
9087
9135
|
dimension: ObjectConstructor;
|
|
@@ -9108,8 +9156,14 @@ declare function parseDimension(dimension: string): PivotCoreDimension;
|
|
|
9108
9156
|
declare function isDateField(field: PivotField): boolean;
|
|
9109
9157
|
declare function toPivotDomain(domainStr: string[]): PivotDomain;
|
|
9110
9158
|
declare function flatPivotDomain(domain: PivotDomain): (string | number | boolean)[];
|
|
9159
|
+
/**
|
|
9160
|
+
* Parses the value defining a pivot group in a PIVOT formula
|
|
9161
|
+
* e.g. given the following formula PIVOT.VALUE("1", "stage_id", "42", "status", "won"),
|
|
9162
|
+
* the two group values are "42" and "won".
|
|
9163
|
+
*/
|
|
9164
|
+
declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: any): CellValue;
|
|
9111
9165
|
|
|
9112
|
-
interface Props$
|
|
9166
|
+
interface Props$d {
|
|
9113
9167
|
definition: PivotRuntimeDefinition;
|
|
9114
9168
|
onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
|
|
9115
9169
|
unusedGroupableFields: PivotField[];
|
|
@@ -9117,7 +9171,7 @@ interface Props$c {
|
|
|
9117
9171
|
unusedDateTimeGranularities: Record<string, Set<string>>;
|
|
9118
9172
|
allGranularities: string[];
|
|
9119
9173
|
}
|
|
9120
|
-
declare class PivotLayoutConfigurator extends Component<Props$
|
|
9174
|
+
declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChildEnv> {
|
|
9121
9175
|
static template: string;
|
|
9122
9176
|
static components: {
|
|
9123
9177
|
AddDimensionButton: typeof AddDimensionButton;
|
|
@@ -9157,7 +9211,7 @@ declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChil
|
|
|
9157
9211
|
|
|
9158
9212
|
declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
9159
9213
|
private pivotId;
|
|
9160
|
-
mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "
|
|
9214
|
+
mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "update"];
|
|
9161
9215
|
private updatesAreDeferred;
|
|
9162
9216
|
private draft;
|
|
9163
9217
|
constructor(get: Get, pivotId: UID);
|
|
@@ -9174,12 +9228,36 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
|
|
|
9174
9228
|
deferUpdates(shouldDefer: boolean): void;
|
|
9175
9229
|
applyUpdate(): void;
|
|
9176
9230
|
discardPendingUpdate(): void;
|
|
9177
|
-
renamePivot(name: string): void;
|
|
9178
9231
|
update(definitionUpdate: Partial<PivotCoreDefinition>): void;
|
|
9179
9232
|
private addDefaultDateTimeGranularity;
|
|
9180
9233
|
private getUnusedDateTimeGranularities;
|
|
9181
9234
|
}
|
|
9182
9235
|
|
|
9236
|
+
interface Props$c {
|
|
9237
|
+
pivotId: UID;
|
|
9238
|
+
}
|
|
9239
|
+
declare class PivotTitleSection extends Component<Props$c, SpreadsheetChildEnv> {
|
|
9240
|
+
static template: string;
|
|
9241
|
+
static components: {
|
|
9242
|
+
CogWheelMenu: typeof CogWheelMenu;
|
|
9243
|
+
Section: typeof Section;
|
|
9244
|
+
EditableName: typeof EditableName;
|
|
9245
|
+
};
|
|
9246
|
+
static props: {
|
|
9247
|
+
pivotId: StringConstructor;
|
|
9248
|
+
};
|
|
9249
|
+
get cogWheelMenuItems(): {
|
|
9250
|
+
name: string;
|
|
9251
|
+
icon: string;
|
|
9252
|
+
onClick: () => void;
|
|
9253
|
+
}[];
|
|
9254
|
+
get name(): string;
|
|
9255
|
+
get displayName(): string;
|
|
9256
|
+
duplicatePivot(): void;
|
|
9257
|
+
delete(): void;
|
|
9258
|
+
onNameChanged(name: string): void;
|
|
9259
|
+
}
|
|
9260
|
+
|
|
9183
9261
|
declare function isEvaluationError(error: Maybe<CellValue>): error is string;
|
|
9184
9262
|
declare function toNumber(data: FPayload | CellValue | undefined, locale: Locale): number;
|
|
9185
9263
|
declare function toString(data: FPayload | CellValue | undefined): string;
|
|
@@ -9272,7 +9350,7 @@ declare function getNumberOfPivotFunctions(tokens: Token[]): number;
|
|
|
9272
9350
|
|
|
9273
9351
|
declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
|
|
9274
9352
|
|
|
9275
|
-
declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<
|
|
9353
|
+
declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<CellValue>;
|
|
9276
9354
|
|
|
9277
9355
|
/**
|
|
9278
9356
|
* This function tries to load anything that could look like a valid
|
|
@@ -11169,9 +11247,10 @@ declare const registries: {
|
|
|
11169
11247
|
}>;
|
|
11170
11248
|
};
|
|
11171
11249
|
pivotRegistry: Registry<PivotRegistryItem>;
|
|
11172
|
-
pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<
|
|
11250
|
+
pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<CellValue>>;
|
|
11173
11251
|
pivotSidePanelRegistry: Registry<PivotRegistryItem$1>;
|
|
11174
|
-
|
|
11252
|
+
pivotNormalizationValueRegistry: Registry<(value: string, granularity?: string | undefined) => CellValue>;
|
|
11253
|
+
supportedPivotPositionalFormulaRegistry: Registry<boolean>;
|
|
11175
11254
|
};
|
|
11176
11255
|
declare const helpers: {
|
|
11177
11256
|
arg: typeof arg;
|
|
@@ -11180,6 +11259,7 @@ declare const helpers: {
|
|
|
11180
11259
|
toJsDate: typeof toJsDate;
|
|
11181
11260
|
toNumber: typeof toNumber;
|
|
11182
11261
|
toString: typeof toString;
|
|
11262
|
+
toNormalizedPivotValue: typeof toNormalizedPivotValue;
|
|
11183
11263
|
toXC: typeof toXC;
|
|
11184
11264
|
toZone: typeof toZone;
|
|
11185
11265
|
toUnboundedZone: typeof toUnboundedZone;
|
|
@@ -11275,6 +11355,8 @@ declare const components: {
|
|
|
11275
11355
|
PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
|
|
11276
11356
|
EditableName: typeof EditableName;
|
|
11277
11357
|
PivotDeferUpdate: typeof PivotDeferUpdate;
|
|
11358
|
+
PivotTitleSection: typeof PivotTitleSection;
|
|
11359
|
+
CogWheelMenu: typeof CogWheelMenu;
|
|
11278
11360
|
};
|
|
11279
11361
|
declare const hooks: {
|
|
11280
11362
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|