@odoo/o-spreadsheet 17.4.0-alpha.2 → 17.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o-spreadsheet.cjs.js +47 -21
- package/dist/o-spreadsheet.d.ts +121 -93
- package/dist/o-spreadsheet.esm.js +47 -21
- package/dist/o-spreadsheet.iife.js +47 -21
- package/dist/o-spreadsheet.iife.min.js +298 -293
- package/dist/o_spreadsheet.xml +36 -28
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4277,7 +4277,10 @@ declare class PivotUIPlugin extends UIPlugin {
|
|
|
4277
4277
|
* If the cell is the result of PIVOT, the result is the domain of the cell
|
|
4278
4278
|
* as if it was the individual pivot formula
|
|
4279
4279
|
*/
|
|
4280
|
-
getPivotDomainArgsFromPosition(position: CellPosition):
|
|
4280
|
+
getPivotDomainArgsFromPosition(position: CellPosition): {
|
|
4281
|
+
domainArgs: PivotDomain;
|
|
4282
|
+
isHeader?: boolean;
|
|
4283
|
+
} | undefined;
|
|
4281
4284
|
getPivot(pivotId: UID): Pivot<PivotRuntimeDefinition>;
|
|
4282
4285
|
isPivotUnused(pivotId: UID): boolean;
|
|
4283
4286
|
/**
|
|
@@ -6251,7 +6254,7 @@ interface ChartBuilder {
|
|
|
6251
6254
|
sequence: number;
|
|
6252
6255
|
}
|
|
6253
6256
|
|
|
6254
|
-
interface Props$
|
|
6257
|
+
interface Props$_ {
|
|
6255
6258
|
label?: string;
|
|
6256
6259
|
value: boolean;
|
|
6257
6260
|
className?: string;
|
|
@@ -6260,7 +6263,7 @@ interface Props$Z {
|
|
|
6260
6263
|
disabled?: boolean;
|
|
6261
6264
|
onChange: (value: boolean) => void;
|
|
6262
6265
|
}
|
|
6263
|
-
declare class Checkbox extends Component<Props$
|
|
6266
|
+
declare class Checkbox extends Component<Props$_, SpreadsheetChildEnv> {
|
|
6264
6267
|
static template: string;
|
|
6265
6268
|
static props: {
|
|
6266
6269
|
label: {
|
|
@@ -6295,10 +6298,10 @@ declare class Checkbox extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
|
6295
6298
|
onChange(ev: InputEvent): void;
|
|
6296
6299
|
}
|
|
6297
6300
|
|
|
6298
|
-
interface Props$
|
|
6301
|
+
interface Props$Z {
|
|
6299
6302
|
class?: string;
|
|
6300
6303
|
}
|
|
6301
|
-
declare class Section extends Component<Props$
|
|
6304
|
+
declare class Section extends Component<Props$Z, SpreadsheetChildEnv> {
|
|
6302
6305
|
static template: string;
|
|
6303
6306
|
static props: {
|
|
6304
6307
|
class: {
|
|
@@ -6426,7 +6429,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
|
|
|
6426
6429
|
getIndex(rangeId: number | null): number | null;
|
|
6427
6430
|
}
|
|
6428
6431
|
|
|
6429
|
-
interface Props$
|
|
6432
|
+
interface Props$Y {
|
|
6430
6433
|
ranges: string[];
|
|
6431
6434
|
hasSingleRange?: boolean;
|
|
6432
6435
|
required?: boolean;
|
|
@@ -6449,7 +6452,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
|
6449
6452
|
* onSelectionChanged is called every time the input value
|
|
6450
6453
|
* changes.
|
|
6451
6454
|
*/
|
|
6452
|
-
declare class SelectionInput extends Component<Props$
|
|
6455
|
+
declare class SelectionInput extends Component<Props$Y, SpreadsheetChildEnv> {
|
|
6453
6456
|
static template: string;
|
|
6454
6457
|
static props: {
|
|
6455
6458
|
ranges: ArrayConstructor;
|
|
@@ -6504,13 +6507,13 @@ declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
|
|
|
6504
6507
|
confirm(): void;
|
|
6505
6508
|
}
|
|
6506
6509
|
|
|
6507
|
-
interface Props$
|
|
6510
|
+
interface Props$X {
|
|
6508
6511
|
ranges: CustomizedDataSet[];
|
|
6509
6512
|
hasSingleRange?: boolean;
|
|
6510
6513
|
onSelectionChanged: (ranges: string[]) => void;
|
|
6511
6514
|
onSelectionConfirmed: () => void;
|
|
6512
6515
|
}
|
|
6513
|
-
declare class ChartDataSeries extends Component<Props$
|
|
6516
|
+
declare class ChartDataSeries extends Component<Props$X, SpreadsheetChildEnv> {
|
|
6514
6517
|
static template: string;
|
|
6515
6518
|
static components: {
|
|
6516
6519
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6530,11 +6533,11 @@ declare class ChartDataSeries extends Component<Props$W, SpreadsheetChildEnv> {
|
|
|
6530
6533
|
get title(): string;
|
|
6531
6534
|
}
|
|
6532
6535
|
|
|
6533
|
-
interface Props$
|
|
6536
|
+
interface Props$W {
|
|
6534
6537
|
messages: string[];
|
|
6535
6538
|
msgType: "warning" | "error";
|
|
6536
6539
|
}
|
|
6537
|
-
declare class ValidationMessages extends Component<Props$
|
|
6540
|
+
declare class ValidationMessages extends Component<Props$W, SpreadsheetChildEnv> {
|
|
6538
6541
|
static template: string;
|
|
6539
6542
|
static props: {
|
|
6540
6543
|
messages: ArrayConstructor;
|
|
@@ -6543,10 +6546,10 @@ declare class ValidationMessages extends Component<Props$V, SpreadsheetChildEnv>
|
|
|
6543
6546
|
get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
|
|
6544
6547
|
}
|
|
6545
6548
|
|
|
6546
|
-
interface Props$
|
|
6549
|
+
interface Props$V {
|
|
6547
6550
|
messages: string[];
|
|
6548
6551
|
}
|
|
6549
|
-
declare class ChartErrorSection extends Component<Props$
|
|
6552
|
+
declare class ChartErrorSection extends Component<Props$V, SpreadsheetChildEnv> {
|
|
6550
6553
|
static template: string;
|
|
6551
6554
|
static components: {
|
|
6552
6555
|
Section: typeof Section;
|
|
@@ -6560,7 +6563,7 @@ declare class ChartErrorSection extends Component<Props$U, SpreadsheetChildEnv>
|
|
|
6560
6563
|
};
|
|
6561
6564
|
}
|
|
6562
6565
|
|
|
6563
|
-
interface Props$
|
|
6566
|
+
interface Props$U {
|
|
6564
6567
|
title?: string;
|
|
6565
6568
|
range: string;
|
|
6566
6569
|
isInvalid: boolean;
|
|
@@ -6574,7 +6577,7 @@ interface Props$T {
|
|
|
6574
6577
|
onChange: (value: boolean) => void;
|
|
6575
6578
|
}>;
|
|
6576
6579
|
}
|
|
6577
|
-
declare class ChartLabelRange extends Component<Props$
|
|
6580
|
+
declare class ChartLabelRange extends Component<Props$U, SpreadsheetChildEnv> {
|
|
6578
6581
|
static template: string;
|
|
6579
6582
|
static components: {
|
|
6580
6583
|
SelectionInput: typeof SelectionInput;
|
|
@@ -6599,16 +6602,16 @@ declare class ChartLabelRange extends Component<Props$T, SpreadsheetChildEnv> {
|
|
|
6599
6602
|
optional: boolean;
|
|
6600
6603
|
};
|
|
6601
6604
|
};
|
|
6602
|
-
static defaultProps: Partial<Props$
|
|
6605
|
+
static defaultProps: Partial<Props$U>;
|
|
6603
6606
|
}
|
|
6604
6607
|
|
|
6605
|
-
interface Props$
|
|
6608
|
+
interface Props$T {
|
|
6606
6609
|
figureId: UID;
|
|
6607
6610
|
definition: ChartWithAxisDefinition;
|
|
6608
6611
|
canUpdateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
6609
6612
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
6610
6613
|
}
|
|
6611
|
-
declare class GenericChartConfigPanel extends Component<Props$
|
|
6614
|
+
declare class GenericChartConfigPanel extends Component<Props$T, SpreadsheetChildEnv> {
|
|
6612
6615
|
static template: string;
|
|
6613
6616
|
static components: {
|
|
6614
6617
|
ChartDataSeries: typeof ChartDataSeries;
|
|
@@ -6822,7 +6825,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
6822
6825
|
isSameColor(color1: Color, color2: Color): boolean;
|
|
6823
6826
|
}
|
|
6824
6827
|
|
|
6825
|
-
interface Props$
|
|
6828
|
+
interface Props$S {
|
|
6826
6829
|
currentColor: string | undefined;
|
|
6827
6830
|
toggleColorPicker: () => void;
|
|
6828
6831
|
showColorPicker: boolean;
|
|
@@ -6833,7 +6836,7 @@ interface Props$R {
|
|
|
6833
6836
|
dropdownMaxHeight?: Pixel;
|
|
6834
6837
|
class?: string;
|
|
6835
6838
|
}
|
|
6836
|
-
declare class ColorPickerWidget extends Component<Props$
|
|
6839
|
+
declare class ColorPickerWidget extends Component<Props$S, SpreadsheetChildEnv> {
|
|
6837
6840
|
static template: string;
|
|
6838
6841
|
static props: {
|
|
6839
6842
|
currentColor: {
|
|
@@ -6871,12 +6874,12 @@ declare class ColorPickerWidget extends Component<Props$R, SpreadsheetChildEnv>
|
|
|
6871
6874
|
get colorPickerAnchorRect(): Rect;
|
|
6872
6875
|
}
|
|
6873
6876
|
|
|
6874
|
-
interface Props$
|
|
6877
|
+
interface Props$R {
|
|
6875
6878
|
currentColor?: string;
|
|
6876
6879
|
onColorPicked: (color: string) => void;
|
|
6877
6880
|
title?: string;
|
|
6878
6881
|
}
|
|
6879
|
-
declare class RoundColorPicker extends Component<Props$
|
|
6882
|
+
declare class RoundColorPicker extends Component<Props$R, SpreadsheetChildEnv> {
|
|
6880
6883
|
static template: string;
|
|
6881
6884
|
static components: {
|
|
6882
6885
|
ColorPickerWidget: typeof ColorPickerWidget;
|
|
@@ -6906,7 +6909,7 @@ declare class RoundColorPicker extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
|
6906
6909
|
get buttonStyle(): string;
|
|
6907
6910
|
}
|
|
6908
6911
|
|
|
6909
|
-
interface Props$
|
|
6912
|
+
interface Props$Q {
|
|
6910
6913
|
title: string;
|
|
6911
6914
|
updateTitle: (title: string) => void;
|
|
6912
6915
|
name?: string;
|
|
@@ -6916,7 +6919,7 @@ interface Props$P {
|
|
|
6916
6919
|
updateColor?: (Color: any) => void;
|
|
6917
6920
|
style: TitleDesign;
|
|
6918
6921
|
}
|
|
6919
|
-
declare class ChartTitle extends Component<Props$
|
|
6922
|
+
declare class ChartTitle extends Component<Props$Q, SpreadsheetChildEnv> {
|
|
6920
6923
|
static template: string;
|
|
6921
6924
|
static components: {
|
|
6922
6925
|
Section: typeof Section;
|
|
@@ -6973,13 +6976,13 @@ interface AxisDefinition {
|
|
|
6973
6976
|
id: string;
|
|
6974
6977
|
name: string;
|
|
6975
6978
|
}
|
|
6976
|
-
interface Props$
|
|
6979
|
+
interface Props$P {
|
|
6977
6980
|
figureId: UID;
|
|
6978
6981
|
definition: ChartWithAxisDefinition | WaterfallChartDefinition;
|
|
6979
6982
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition | WaterfallChartDefinition>) => DispatchResult;
|
|
6980
6983
|
axesList: AxisDefinition[];
|
|
6981
6984
|
}
|
|
6982
|
-
declare class AxisDesignEditor extends Component<Props$
|
|
6985
|
+
declare class AxisDesignEditor extends Component<Props$P, SpreadsheetChildEnv> {
|
|
6983
6986
|
static template: string;
|
|
6984
6987
|
static components: {
|
|
6985
6988
|
Section: typeof Section;
|
|
@@ -6998,12 +7001,12 @@ declare class AxisDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
|
|
|
6998
7001
|
updateAxisTitle(text: string): void;
|
|
6999
7002
|
}
|
|
7000
7003
|
|
|
7001
|
-
interface Props$
|
|
7004
|
+
interface Props$O {
|
|
7002
7005
|
figureId: UID;
|
|
7003
7006
|
definition: ChartDefinition;
|
|
7004
7007
|
updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
|
|
7005
7008
|
}
|
|
7006
|
-
declare class GeneralDesignEditor extends Component<Props$
|
|
7009
|
+
declare class GeneralDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
|
|
7007
7010
|
static template: string;
|
|
7008
7011
|
static components: {
|
|
7009
7012
|
RoundColorPicker: typeof RoundColorPicker;
|
|
@@ -7033,13 +7036,13 @@ declare class GeneralDesignEditor extends Component<Props$N, SpreadsheetChildEnv
|
|
|
7033
7036
|
updateChartTitleAlignment(align: "left" | "center" | "right"): void;
|
|
7034
7037
|
}
|
|
7035
7038
|
|
|
7036
|
-
interface Props$
|
|
7039
|
+
interface Props$N {
|
|
7037
7040
|
figureId: UID;
|
|
7038
7041
|
definition: ChartWithAxisDefinition;
|
|
7039
7042
|
canUpdateChart: (figureID: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7040
7043
|
updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
|
|
7041
7044
|
}
|
|
7042
|
-
declare class ChartWithAxisDesignPanel extends Component<Props$
|
|
7045
|
+
declare class ChartWithAxisDesignPanel extends Component<Props$N, SpreadsheetChildEnv> {
|
|
7043
7046
|
static template: string;
|
|
7044
7047
|
static components: {
|
|
7045
7048
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -7061,13 +7064,13 @@ declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChi
|
|
|
7061
7064
|
getDataSerieLabel(): string | undefined;
|
|
7062
7065
|
}
|
|
7063
7066
|
|
|
7064
|
-
interface Props$
|
|
7067
|
+
interface Props$M {
|
|
7065
7068
|
figureId: UID;
|
|
7066
7069
|
definition: GaugeChartDefinition;
|
|
7067
7070
|
canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7068
7071
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7069
7072
|
}
|
|
7070
|
-
declare class GaugeChartConfigPanel extends Component<Props$
|
|
7073
|
+
declare class GaugeChartConfigPanel extends Component<Props$M, SpreadsheetChildEnv> {
|
|
7071
7074
|
static template: string;
|
|
7072
7075
|
static components: {
|
|
7073
7076
|
ChartErrorSection: typeof ChartErrorSection;
|
|
@@ -7092,13 +7095,13 @@ interface PanelState {
|
|
|
7092
7095
|
sectionRuleDispatchResult?: DispatchResult;
|
|
7093
7096
|
sectionRule: SectionRule;
|
|
7094
7097
|
}
|
|
7095
|
-
interface Props$
|
|
7098
|
+
interface Props$L {
|
|
7096
7099
|
figureId: UID;
|
|
7097
7100
|
definition: GaugeChartDefinition;
|
|
7098
7101
|
canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7099
7102
|
updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
|
|
7100
7103
|
}
|
|
7101
|
-
declare class GaugeChartDesignPanel extends Component<Props$
|
|
7104
|
+
declare class GaugeChartDesignPanel extends Component<Props$L, SpreadsheetChildEnv> {
|
|
7102
7105
|
static template: string;
|
|
7103
7106
|
static components: {
|
|
7104
7107
|
SidePanelCollapsible: typeof SidePanelCollapsible;
|
|
@@ -7148,13 +7151,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
|
|
|
7148
7151
|
onUpdateCumulative(cumulative: boolean): void;
|
|
7149
7152
|
}
|
|
7150
7153
|
|
|
7151
|
-
interface Props$
|
|
7154
|
+
interface Props$K {
|
|
7152
7155
|
figureId: UID;
|
|
7153
7156
|
definition: ScorecardChartDefinition;
|
|
7154
7157
|
canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7155
7158
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7156
7159
|
}
|
|
7157
|
-
declare class ScorecardChartConfigPanel extends Component<Props$
|
|
7160
|
+
declare class ScorecardChartConfigPanel extends Component<Props$K, SpreadsheetChildEnv> {
|
|
7158
7161
|
static template: string;
|
|
7159
7162
|
static components: {
|
|
7160
7163
|
SelectionInput: typeof SelectionInput;
|
|
@@ -7183,13 +7186,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$J, SpreadsheetCh
|
|
|
7183
7186
|
}
|
|
7184
7187
|
|
|
7185
7188
|
type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
|
|
7186
|
-
interface Props$
|
|
7189
|
+
interface Props$J {
|
|
7187
7190
|
figureId: UID;
|
|
7188
7191
|
definition: ScorecardChartDefinition;
|
|
7189
7192
|
canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7190
7193
|
updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
|
|
7191
7194
|
}
|
|
7192
|
-
declare class ScorecardChartDesignPanel extends Component<Props$
|
|
7195
|
+
declare class ScorecardChartDesignPanel extends Component<Props$J, SpreadsheetChildEnv> {
|
|
7193
7196
|
static template: string;
|
|
7194
7197
|
static components: {
|
|
7195
7198
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -7347,13 +7350,13 @@ interface EnrichedToken extends Token {
|
|
|
7347
7350
|
functionContext?: FunctionContext;
|
|
7348
7351
|
}
|
|
7349
7352
|
|
|
7350
|
-
interface Props$
|
|
7353
|
+
interface Props$I {
|
|
7351
7354
|
proposals: AutoCompleteProposal[];
|
|
7352
7355
|
selectedIndex: number | undefined;
|
|
7353
7356
|
onValueSelected: (value: string) => void;
|
|
7354
7357
|
onValueHovered: (index: string) => void;
|
|
7355
7358
|
}
|
|
7356
|
-
declare class TextValueProvider extends Component<Props$
|
|
7359
|
+
declare class TextValueProvider extends Component<Props$I> {
|
|
7357
7360
|
static template: string;
|
|
7358
7361
|
static props: {
|
|
7359
7362
|
proposals: ArrayConstructor;
|
|
@@ -7567,7 +7570,7 @@ declare class ContentEditableHelper {
|
|
|
7567
7570
|
getText(): string;
|
|
7568
7571
|
}
|
|
7569
7572
|
|
|
7570
|
-
interface Props$
|
|
7573
|
+
interface Props$H {
|
|
7571
7574
|
functionName: string;
|
|
7572
7575
|
functionDescription: FunctionDescription;
|
|
7573
7576
|
argToFocus: number;
|
|
@@ -7575,7 +7578,7 @@ interface Props$G {
|
|
|
7575
7578
|
interface AssistantState {
|
|
7576
7579
|
allowCellSelectionBehind: boolean;
|
|
7577
7580
|
}
|
|
7578
|
-
declare class FunctionDescriptionProvider extends Component<Props$
|
|
7581
|
+
declare class FunctionDescriptionProvider extends Component<Props$H, SpreadsheetChildEnv> {
|
|
7579
7582
|
static template: string;
|
|
7580
7583
|
static props: {
|
|
7581
7584
|
functionName: StringConstructor;
|
|
@@ -7585,7 +7588,7 @@ declare class FunctionDescriptionProvider extends Component<Props$G, Spreadsheet
|
|
|
7585
7588
|
assistantState: AssistantState;
|
|
7586
7589
|
private timeOutId;
|
|
7587
7590
|
setup(): void;
|
|
7588
|
-
getContext(): Props$
|
|
7591
|
+
getContext(): Props$H;
|
|
7589
7592
|
onMouseMove(): void;
|
|
7590
7593
|
get formulaArgSeparator(): string;
|
|
7591
7594
|
}
|
|
@@ -7776,10 +7779,10 @@ interface AutoCompleteProviderDefinition {
|
|
|
7776
7779
|
|
|
7777
7780
|
declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
|
|
7778
7781
|
|
|
7779
|
-
interface Props$
|
|
7782
|
+
interface Props$G {
|
|
7780
7783
|
figure: Figure;
|
|
7781
7784
|
}
|
|
7782
|
-
declare class ChartJsComponent extends Component<Props$
|
|
7785
|
+
declare class ChartJsComponent extends Component<Props$G, SpreadsheetChildEnv> {
|
|
7783
7786
|
static template: string;
|
|
7784
7787
|
static props: {
|
|
7785
7788
|
figure: ObjectConstructor;
|
|
@@ -7795,10 +7798,10 @@ declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
7795
7798
|
private updateChartJs;
|
|
7796
7799
|
}
|
|
7797
7800
|
|
|
7798
|
-
interface Props$
|
|
7801
|
+
interface Props$F {
|
|
7799
7802
|
figure: Figure;
|
|
7800
7803
|
}
|
|
7801
|
-
declare class ScorecardChart extends Component<Props$
|
|
7804
|
+
declare class ScorecardChart extends Component<Props$F, SpreadsheetChildEnv> {
|
|
7802
7805
|
static template: string;
|
|
7803
7806
|
static props: {
|
|
7804
7807
|
figure: ObjectConstructor;
|
|
@@ -7810,7 +7813,7 @@ declare class ScorecardChart extends Component<Props$E, SpreadsheetChildEnv> {
|
|
|
7810
7813
|
}
|
|
7811
7814
|
|
|
7812
7815
|
type MenuItemOrSeparator = Action | "separator";
|
|
7813
|
-
interface Props$
|
|
7816
|
+
interface Props$E {
|
|
7814
7817
|
position: DOMCoordinates;
|
|
7815
7818
|
menuItems: Action[];
|
|
7816
7819
|
depth: number;
|
|
@@ -7828,7 +7831,7 @@ interface MenuState {
|
|
|
7828
7831
|
menuItems: Action[];
|
|
7829
7832
|
isHoveringChild?: boolean;
|
|
7830
7833
|
}
|
|
7831
|
-
declare class Menu extends Component<Props$
|
|
7834
|
+
declare class Menu extends Component<Props$E, SpreadsheetChildEnv> {
|
|
7832
7835
|
static template: string;
|
|
7833
7836
|
static props: {
|
|
7834
7837
|
position: ObjectConstructor;
|
|
@@ -7898,14 +7901,14 @@ declare class Menu extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
7898
7901
|
}
|
|
7899
7902
|
|
|
7900
7903
|
type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
|
|
7901
|
-
interface Props$
|
|
7904
|
+
interface Props$D {
|
|
7902
7905
|
figure: Figure;
|
|
7903
7906
|
style: string;
|
|
7904
7907
|
onFigureDeleted: () => void;
|
|
7905
7908
|
onMouseDown: (ev: MouseEvent) => void;
|
|
7906
7909
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
7907
7910
|
}
|
|
7908
|
-
declare class FigureComponent extends Component<Props$
|
|
7911
|
+
declare class FigureComponent extends Component<Props$D, SpreadsheetChildEnv> {
|
|
7909
7912
|
static template: string;
|
|
7910
7913
|
static props: {
|
|
7911
7914
|
figure: ObjectConstructor;
|
|
@@ -7954,11 +7957,11 @@ declare class FigureComponent extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
7954
7957
|
private openContextMenu;
|
|
7955
7958
|
}
|
|
7956
7959
|
|
|
7957
|
-
interface Props$
|
|
7960
|
+
interface Props$C {
|
|
7958
7961
|
figure: Figure;
|
|
7959
7962
|
onFigureDeleted: () => void;
|
|
7960
7963
|
}
|
|
7961
|
-
declare class ChartFigure extends Component<Props$
|
|
7964
|
+
declare class ChartFigure extends Component<Props$C, SpreadsheetChildEnv> {
|
|
7962
7965
|
static template: string;
|
|
7963
7966
|
static props: {
|
|
7964
7967
|
figure: ObjectConstructor;
|
|
@@ -7970,7 +7973,7 @@ declare class ChartFigure extends Component<Props$B, SpreadsheetChildEnv> {
|
|
|
7970
7973
|
get chartComponent(): new (...args: any) => Component;
|
|
7971
7974
|
}
|
|
7972
7975
|
|
|
7973
|
-
interface Props$
|
|
7976
|
+
interface Props$B {
|
|
7974
7977
|
isVisible: boolean;
|
|
7975
7978
|
position: Position;
|
|
7976
7979
|
}
|
|
@@ -7982,7 +7985,7 @@ interface State$8 {
|
|
|
7982
7985
|
position: Position;
|
|
7983
7986
|
handler: boolean;
|
|
7984
7987
|
}
|
|
7985
|
-
declare class Autofill extends Component<Props$
|
|
7988
|
+
declare class Autofill extends Component<Props$B, SpreadsheetChildEnv> {
|
|
7986
7989
|
static template: string;
|
|
7987
7990
|
static props: {
|
|
7988
7991
|
position: ObjectConstructor;
|
|
@@ -8016,7 +8019,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
|
|
|
8016
8019
|
get tagStyle(): string;
|
|
8017
8020
|
}
|
|
8018
8021
|
|
|
8019
|
-
interface Props$
|
|
8022
|
+
interface Props$A {
|
|
8020
8023
|
gridDims: DOMDimension;
|
|
8021
8024
|
onInputContextMenu: (event: MouseEvent) => void;
|
|
8022
8025
|
}
|
|
@@ -8024,7 +8027,7 @@ interface Props$z {
|
|
|
8024
8027
|
* This component is a composer which positions itself on the grid at the anchor cell.
|
|
8025
8028
|
* It also applies the style of the cell to the composer input.
|
|
8026
8029
|
*/
|
|
8027
|
-
declare class GridComposer extends Component<Props$
|
|
8030
|
+
declare class GridComposer extends Component<Props$A, SpreadsheetChildEnv> {
|
|
8028
8031
|
static template: string;
|
|
8029
8032
|
static props: {
|
|
8030
8033
|
gridDims: ObjectConstructor;
|
|
@@ -8081,10 +8084,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
|
|
|
8081
8084
|
isPositionVisible(position: CellPosition): boolean;
|
|
8082
8085
|
}
|
|
8083
8086
|
|
|
8084
|
-
interface Props$
|
|
8087
|
+
interface Props$z {
|
|
8085
8088
|
cellPosition: CellPosition;
|
|
8086
8089
|
}
|
|
8087
|
-
declare class DataValidationCheckbox extends Component<Props$
|
|
8090
|
+
declare class DataValidationCheckbox extends Component<Props$z, SpreadsheetChildEnv> {
|
|
8088
8091
|
static template: string;
|
|
8089
8092
|
static props: {
|
|
8090
8093
|
cellPosition: ObjectConstructor;
|
|
@@ -8094,10 +8097,10 @@ declare class DataValidationCheckbox extends Component<Props$y, SpreadsheetChild
|
|
|
8094
8097
|
get isDisabled(): boolean;
|
|
8095
8098
|
}
|
|
8096
8099
|
|
|
8097
|
-
interface Props$
|
|
8100
|
+
interface Props$y {
|
|
8098
8101
|
cellPosition: CellPosition;
|
|
8099
8102
|
}
|
|
8100
|
-
declare class DataValidationListIcon extends Component<Props$
|
|
8103
|
+
declare class DataValidationListIcon extends Component<Props$y, SpreadsheetChildEnv> {
|
|
8101
8104
|
static template: string;
|
|
8102
8105
|
static props: {
|
|
8103
8106
|
cellPosition: ObjectConstructor;
|
|
@@ -8127,7 +8130,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
8127
8130
|
}
|
|
8128
8131
|
|
|
8129
8132
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
8130
|
-
interface Props$
|
|
8133
|
+
interface Props$x {
|
|
8131
8134
|
onFigureDeleted: () => void;
|
|
8132
8135
|
}
|
|
8133
8136
|
interface Container {
|
|
@@ -8206,7 +8209,7 @@ interface DndState {
|
|
|
8206
8209
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
8207
8210
|
*
|
|
8208
8211
|
*/
|
|
8209
|
-
declare class FiguresContainer extends Component<Props$
|
|
8212
|
+
declare class FiguresContainer extends Component<Props$x, SpreadsheetChildEnv> {
|
|
8210
8213
|
static template: string;
|
|
8211
8214
|
static props: {
|
|
8212
8215
|
onFigureDeleted: FunctionConstructor;
|
|
@@ -8261,10 +8264,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
|
|
|
8261
8264
|
private computePopoverAnchorRect;
|
|
8262
8265
|
}
|
|
8263
8266
|
|
|
8264
|
-
interface Props$
|
|
8267
|
+
interface Props$w {
|
|
8265
8268
|
cellPosition: CellPosition;
|
|
8266
8269
|
}
|
|
8267
|
-
declare class FilterIcon extends Component<Props$
|
|
8270
|
+
declare class FilterIcon extends Component<Props$w, SpreadsheetChildEnv> {
|
|
8268
8271
|
static template: string;
|
|
8269
8272
|
static props: {
|
|
8270
8273
|
cellPosition: ObjectConstructor;
|
|
@@ -8286,10 +8289,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
8286
8289
|
getFilterHeadersPositions(): CellPosition[];
|
|
8287
8290
|
}
|
|
8288
8291
|
|
|
8289
|
-
interface Props$
|
|
8292
|
+
interface Props$v {
|
|
8290
8293
|
focusGrid: () => void;
|
|
8291
8294
|
}
|
|
8292
|
-
declare class GridAddRowsFooter extends Component<Props$
|
|
8295
|
+
declare class GridAddRowsFooter extends Component<Props$v, SpreadsheetChildEnv> {
|
|
8293
8296
|
static template: string;
|
|
8294
8297
|
static props: {
|
|
8295
8298
|
focusGrid: FunctionConstructor;
|
|
@@ -8313,7 +8316,7 @@ declare class GridAddRowsFooter extends Component<Props$u, SpreadsheetChildEnv>
|
|
|
8313
8316
|
private onExternalClick;
|
|
8314
8317
|
}
|
|
8315
8318
|
|
|
8316
|
-
interface Props$
|
|
8319
|
+
interface Props$u {
|
|
8317
8320
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
8318
8321
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
8319
8322
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
|
|
@@ -8323,7 +8326,7 @@ interface Props$t {
|
|
|
8323
8326
|
gridOverlayDimensions: string;
|
|
8324
8327
|
onFigureDeleted: () => void;
|
|
8325
8328
|
}
|
|
8326
|
-
declare class GridOverlay extends Component<Props$
|
|
8329
|
+
declare class GridOverlay extends Component<Props$u, SpreadsheetChildEnv> {
|
|
8327
8330
|
static template: string;
|
|
8328
8331
|
static props: {
|
|
8329
8332
|
onCellHovered: {
|
|
@@ -8380,12 +8383,12 @@ declare class GridOverlay extends Component<Props$t, SpreadsheetChildEnv> {
|
|
|
8380
8383
|
private getCartesianCoordinates;
|
|
8381
8384
|
}
|
|
8382
8385
|
|
|
8383
|
-
interface Props$
|
|
8386
|
+
interface Props$t {
|
|
8384
8387
|
gridRect: Rect;
|
|
8385
8388
|
onClosePopover: () => void;
|
|
8386
8389
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
8387
8390
|
}
|
|
8388
|
-
declare class GridPopover extends Component<Props$
|
|
8391
|
+
declare class GridPopover extends Component<Props$t, SpreadsheetChildEnv> {
|
|
8389
8392
|
static template: string;
|
|
8390
8393
|
static props: {
|
|
8391
8394
|
onClosePopover: FunctionConstructor;
|
|
@@ -8528,13 +8531,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
|
|
|
8528
8531
|
}
|
|
8529
8532
|
|
|
8530
8533
|
type Orientation$1 = "n" | "s" | "w" | "e";
|
|
8531
|
-
interface Props$
|
|
8534
|
+
interface Props$s {
|
|
8532
8535
|
zone: Zone;
|
|
8533
8536
|
orientation: Orientation$1;
|
|
8534
8537
|
isMoving: boolean;
|
|
8535
8538
|
onMoveHighlight: (x: Pixel, y: Pixel) => void;
|
|
8536
8539
|
}
|
|
8537
|
-
declare class Border extends Component<Props$
|
|
8540
|
+
declare class Border extends Component<Props$s, SpreadsheetChildEnv> {
|
|
8538
8541
|
static template: string;
|
|
8539
8542
|
static props: {
|
|
8540
8543
|
zone: ObjectConstructor;
|
|
@@ -8547,14 +8550,14 @@ declare class Border extends Component<Props$r, SpreadsheetChildEnv> {
|
|
|
8547
8550
|
}
|
|
8548
8551
|
|
|
8549
8552
|
type Orientation = "nw" | "ne" | "sw" | "se";
|
|
8550
|
-
interface Props$
|
|
8553
|
+
interface Props$r {
|
|
8551
8554
|
zone: Zone;
|
|
8552
8555
|
color: Color;
|
|
8553
8556
|
orientation: Orientation;
|
|
8554
8557
|
isResizing: boolean;
|
|
8555
8558
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
8556
8559
|
}
|
|
8557
|
-
declare class Corner extends Component<Props$
|
|
8560
|
+
declare class Corner extends Component<Props$r, SpreadsheetChildEnv> {
|
|
8558
8561
|
static template: string;
|
|
8559
8562
|
static props: {
|
|
8560
8563
|
zone: ObjectConstructor;
|
|
@@ -8569,14 +8572,14 @@ declare class Corner extends Component<Props$q, SpreadsheetChildEnv> {
|
|
|
8569
8572
|
onMouseDown(ev: MouseEvent): void;
|
|
8570
8573
|
}
|
|
8571
8574
|
|
|
8572
|
-
interface Props$
|
|
8575
|
+
interface Props$q {
|
|
8573
8576
|
zone: Zone;
|
|
8574
8577
|
color: Color;
|
|
8575
8578
|
}
|
|
8576
8579
|
interface HighlightState {
|
|
8577
8580
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
8578
8581
|
}
|
|
8579
|
-
declare class Highlight extends Component<Props$
|
|
8582
|
+
declare class Highlight extends Component<Props$q, SpreadsheetChildEnv> {
|
|
8580
8583
|
static template: string;
|
|
8581
8584
|
static props: {
|
|
8582
8585
|
zone: ObjectConstructor;
|
|
@@ -8593,7 +8596,7 @@ declare class Highlight extends Component<Props$p, SpreadsheetChildEnv> {
|
|
|
8593
8596
|
|
|
8594
8597
|
type ScrollDirection = "horizontal" | "vertical";
|
|
8595
8598
|
|
|
8596
|
-
interface Props$
|
|
8599
|
+
interface Props$p {
|
|
8597
8600
|
width: Pixel;
|
|
8598
8601
|
height: Pixel;
|
|
8599
8602
|
direction: ScrollDirection;
|
|
@@ -8601,7 +8604,7 @@ interface Props$o {
|
|
|
8601
8604
|
offset: Pixel;
|
|
8602
8605
|
onScroll: (offset: Pixel) => void;
|
|
8603
8606
|
}
|
|
8604
|
-
declare class ScrollBar extends Component<Props$
|
|
8607
|
+
declare class ScrollBar extends Component<Props$p> {
|
|
8605
8608
|
static props: {
|
|
8606
8609
|
width: {
|
|
8607
8610
|
type: NumberConstructor;
|
|
@@ -8629,10 +8632,10 @@ declare class ScrollBar extends Component<Props$o> {
|
|
|
8629
8632
|
onScroll(ev: any): void;
|
|
8630
8633
|
}
|
|
8631
8634
|
|
|
8632
|
-
interface Props$
|
|
8635
|
+
interface Props$o {
|
|
8633
8636
|
leftOffset: number;
|
|
8634
8637
|
}
|
|
8635
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
8638
|
+
declare class HorizontalScrollBar extends Component<Props$o, SpreadsheetChildEnv> {
|
|
8636
8639
|
static props: {
|
|
8637
8640
|
leftOffset: {
|
|
8638
8641
|
type: NumberConstructor;
|
|
@@ -8658,10 +8661,10 @@ declare class HorizontalScrollBar extends Component<Props$n, SpreadsheetChildEnv
|
|
|
8658
8661
|
onScroll(offset: any): void;
|
|
8659
8662
|
}
|
|
8660
8663
|
|
|
8661
|
-
interface Props$
|
|
8664
|
+
interface Props$n {
|
|
8662
8665
|
topOffset: number;
|
|
8663
8666
|
}
|
|
8664
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
8667
|
+
declare class VerticalScrollBar extends Component<Props$n, SpreadsheetChildEnv> {
|
|
8665
8668
|
static props: {
|
|
8666
8669
|
topOffset: {
|
|
8667
8670
|
type: NumberConstructor;
|
|
@@ -8687,13 +8690,13 @@ declare class VerticalScrollBar extends Component<Props$m, SpreadsheetChildEnv>
|
|
|
8687
8690
|
onScroll(offset: any): void;
|
|
8688
8691
|
}
|
|
8689
8692
|
|
|
8690
|
-
interface Props$
|
|
8693
|
+
interface Props$m {
|
|
8691
8694
|
table: Table;
|
|
8692
8695
|
}
|
|
8693
8696
|
interface State$7 {
|
|
8694
8697
|
highlightZone: Zone | undefined;
|
|
8695
8698
|
}
|
|
8696
|
-
declare class TableResizer extends Component<Props$
|
|
8699
|
+
declare class TableResizer extends Component<Props$m, SpreadsheetChildEnv> {
|
|
8697
8700
|
static template: string;
|
|
8698
8701
|
static props: {
|
|
8699
8702
|
table: ObjectConstructor;
|
|
@@ -8725,10 +8728,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
|
|
|
8725
8728
|
* - a vertical resizer (same, for rows)
|
|
8726
8729
|
*/
|
|
8727
8730
|
type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
|
|
8728
|
-
interface Props$
|
|
8731
|
+
interface Props$l {
|
|
8729
8732
|
exposeFocus: (focus: () => void) => void;
|
|
8730
8733
|
}
|
|
8731
|
-
declare class Grid extends Component<Props$
|
|
8734
|
+
declare class Grid extends Component<Props$l, SpreadsheetChildEnv> {
|
|
8732
8735
|
static template: string;
|
|
8733
8736
|
static props: {
|
|
8734
8737
|
exposeFocus: FunctionConstructor;
|
|
@@ -8837,11 +8840,11 @@ declare class MainChartPanelStore extends SpreadsheetStore {
|
|
|
8837
8840
|
changeChartType(figureId: UID, type: ChartType): void;
|
|
8838
8841
|
}
|
|
8839
8842
|
|
|
8840
|
-
interface Props$
|
|
8843
|
+
interface Props$k {
|
|
8841
8844
|
onCloseSidePanel: () => void;
|
|
8842
8845
|
figureId: UID;
|
|
8843
8846
|
}
|
|
8844
|
-
declare class ChartPanel extends Component<Props$
|
|
8847
|
+
declare class ChartPanel extends Component<Props$k, SpreadsheetChildEnv> {
|
|
8845
8848
|
static template: string;
|
|
8846
8849
|
static components: {
|
|
8847
8850
|
Section: typeof Section;
|
|
@@ -8861,13 +8864,13 @@ declare class ChartPanel extends Component<Props$j, SpreadsheetChildEnv> {
|
|
|
8861
8864
|
get chartTypes(): Record<string, string>;
|
|
8862
8865
|
}
|
|
8863
8866
|
|
|
8864
|
-
interface Props$
|
|
8867
|
+
interface Props$j {
|
|
8865
8868
|
figureId: UID;
|
|
8866
8869
|
definition: PieChartDefinition;
|
|
8867
8870
|
canUpdateChart: (figureID: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
|
|
8868
8871
|
updateChart: (figureId: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
|
|
8869
8872
|
}
|
|
8870
|
-
declare class PieChartDesignPanel extends Component<Props$
|
|
8873
|
+
declare class PieChartDesignPanel extends Component<Props$j, SpreadsheetChildEnv> {
|
|
8871
8874
|
static template: string;
|
|
8872
8875
|
static components: {
|
|
8873
8876
|
GeneralDesignEditor: typeof GeneralDesignEditor;
|
|
@@ -8949,12 +8952,12 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
|
|
|
8949
8952
|
|
|
8950
8953
|
/** @odoo-module */
|
|
8951
8954
|
|
|
8952
|
-
interface Props$
|
|
8955
|
+
interface Props$i {
|
|
8953
8956
|
name: string;
|
|
8954
8957
|
displayName: string;
|
|
8955
8958
|
onChanged: (name: string) => void;
|
|
8956
8959
|
}
|
|
8957
|
-
declare class EditableName extends Component<Props$
|
|
8960
|
+
declare class EditableName extends Component<Props$i, SpreadsheetChildEnv> {
|
|
8958
8961
|
static template: string;
|
|
8959
8962
|
static props: {
|
|
8960
8963
|
name: StringConstructor;
|
|
@@ -8967,6 +8970,30 @@ declare class EditableName extends Component<Props$h, SpreadsheetChildEnv> {
|
|
|
8967
8970
|
save(): void;
|
|
8968
8971
|
}
|
|
8969
8972
|
|
|
8973
|
+
interface Props$h {
|
|
8974
|
+
deferUpdate: boolean;
|
|
8975
|
+
isDirty: boolean;
|
|
8976
|
+
toggleDeferUpdate: (value: boolean) => void;
|
|
8977
|
+
discard: () => void;
|
|
8978
|
+
apply: () => void;
|
|
8979
|
+
}
|
|
8980
|
+
declare class PivotDeferUpdate extends Component<Props$h, SpreadsheetChildEnv> {
|
|
8981
|
+
static template: string;
|
|
8982
|
+
static props: {
|
|
8983
|
+
deferUpdate: BooleanConstructor;
|
|
8984
|
+
isDirty: BooleanConstructor;
|
|
8985
|
+
toggleDeferUpdate: FunctionConstructor;
|
|
8986
|
+
discard: FunctionConstructor;
|
|
8987
|
+
apply: FunctionConstructor;
|
|
8988
|
+
};
|
|
8989
|
+
static components: {
|
|
8990
|
+
Section: typeof Section;
|
|
8991
|
+
Checkbox: typeof Checkbox;
|
|
8992
|
+
};
|
|
8993
|
+
get deferUpdatesLabel(): string;
|
|
8994
|
+
get deferUpdatesTooltip(): string;
|
|
8995
|
+
}
|
|
8996
|
+
|
|
8970
8997
|
interface Props$g {
|
|
8971
8998
|
onFieldPicked: (field: string) => void;
|
|
8972
8999
|
fields: PivotField[];
|
|
@@ -11247,6 +11274,7 @@ declare const components: {
|
|
|
11247
11274
|
PivotDimension: typeof PivotDimension;
|
|
11248
11275
|
PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
|
|
11249
11276
|
EditableName: typeof EditableName;
|
|
11277
|
+
PivotDeferUpdate: typeof PivotDeferUpdate;
|
|
11250
11278
|
};
|
|
11251
11279
|
declare const hooks: {
|
|
11252
11280
|
useDragAndDropListItems: typeof useDragAndDropListItems;
|