@odoo/o-spreadsheet 17.4.0-alpha.2 → 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.
@@ -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): Record<UID, EvaluatedCell>;
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(groupBy: string): {
4248
+ getPossibleFieldValues(dimension: PivotDimension$1): {
4244
4249
  value: string | boolean | number;
4245
4250
  label: string;
4246
4251
  }[];
@@ -4277,7 +4282,10 @@ declare class PivotUIPlugin extends UIPlugin {
4277
4282
  * If the cell is the result of PIVOT, the result is the domain of the cell
4278
4283
  * as if it was the individual pivot formula
4279
4284
  */
4280
- getPivotDomainArgsFromPosition(position: CellPosition): PivotDomain | undefined;
4285
+ getPivotDomainArgsFromPosition(position: CellPosition): {
4286
+ domainArgs: PivotDomain;
4287
+ isHeader?: boolean;
4288
+ } | undefined;
4281
4289
  getPivot(pivotId: UID): Pivot<PivotRuntimeDefinition>;
4282
4290
  isPivotUnused(pivotId: UID): boolean;
4283
4291
  /**
@@ -5143,6 +5151,7 @@ type Getters = {
5143
5151
  type ArgType = "ANY" | "BOOLEAN" | "NUMBER" | "STRING" | "DATE" | "RANGE" | "RANGE<BOOLEAN>" | "RANGE<NUMBER>" | "RANGE<DATE>" | "RANGE<STRING>" | "RANGE<ANY>" | "META";
5144
5152
  interface ArgDefinition {
5145
5153
  acceptMatrix?: boolean;
5154
+ acceptMatrixOnly?: boolean;
5146
5155
  repeating?: boolean;
5147
5156
  optional?: boolean;
5148
5157
  description: string;
@@ -5157,7 +5166,6 @@ interface AddFunctionDescription {
5157
5166
  description: string;
5158
5167
  category?: string;
5159
5168
  args: ArgDefinition[];
5160
- returns: ArgType[];
5161
5169
  isExported?: boolean;
5162
5170
  hidden?: boolean;
5163
5171
  }
@@ -5880,7 +5888,7 @@ declare class ClipboardHandler<T> {
5880
5888
  paste(target: ClipboardPasteTarget, clippedContent: T, options: ClipboardOptions | undefined): void;
5881
5889
  isPasteAllowed(sheetId: UID, target: Zone[], content: T, option: ClipboardOptions): CommandResult;
5882
5890
  isCutAllowed(data: ClipboardData): CommandResult;
5883
- getPasteTarget(target: Zone[], content: T, options: ClipboardOptions): ClipboardPasteTarget;
5891
+ getPasteTarget(sheetId: UID, target: Zone[], content: T, options: ClipboardOptions): ClipboardPasteTarget;
5884
5892
  convertOSClipboardData(data: any): T | undefined;
5885
5893
  }
5886
5894
 
@@ -6251,7 +6259,7 @@ interface ChartBuilder {
6251
6259
  sequence: number;
6252
6260
  }
6253
6261
 
6254
- interface Props$Z {
6262
+ interface Props$10 {
6255
6263
  label?: string;
6256
6264
  value: boolean;
6257
6265
  className?: string;
@@ -6260,7 +6268,7 @@ interface Props$Z {
6260
6268
  disabled?: boolean;
6261
6269
  onChange: (value: boolean) => void;
6262
6270
  }
6263
- declare class Checkbox extends Component<Props$Z, SpreadsheetChildEnv> {
6271
+ declare class Checkbox extends Component<Props$10, SpreadsheetChildEnv> {
6264
6272
  static template: string;
6265
6273
  static props: {
6266
6274
  label: {
@@ -6295,10 +6303,10 @@ declare class Checkbox extends Component<Props$Z, SpreadsheetChildEnv> {
6295
6303
  onChange(ev: InputEvent): void;
6296
6304
  }
6297
6305
 
6298
- interface Props$Y {
6306
+ interface Props$$ {
6299
6307
  class?: string;
6300
6308
  }
6301
- declare class Section extends Component<Props$Y, SpreadsheetChildEnv> {
6309
+ declare class Section extends Component<Props$$, SpreadsheetChildEnv> {
6302
6310
  static template: string;
6303
6311
  static props: {
6304
6312
  class: {
@@ -6426,7 +6434,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
6426
6434
  getIndex(rangeId: number | null): number | null;
6427
6435
  }
6428
6436
 
6429
- interface Props$X {
6437
+ interface Props$_ {
6430
6438
  ranges: string[];
6431
6439
  hasSingleRange?: boolean;
6432
6440
  required?: boolean;
@@ -6449,7 +6457,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
6449
6457
  * onSelectionChanged is called every time the input value
6450
6458
  * changes.
6451
6459
  */
6452
- declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
6460
+ declare class SelectionInput extends Component<Props$_, SpreadsheetChildEnv> {
6453
6461
  static template: string;
6454
6462
  static props: {
6455
6463
  ranges: ArrayConstructor;
@@ -6504,13 +6512,13 @@ declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
6504
6512
  confirm(): void;
6505
6513
  }
6506
6514
 
6507
- interface Props$W {
6515
+ interface Props$Z {
6508
6516
  ranges: CustomizedDataSet[];
6509
6517
  hasSingleRange?: boolean;
6510
6518
  onSelectionChanged: (ranges: string[]) => void;
6511
6519
  onSelectionConfirmed: () => void;
6512
6520
  }
6513
- declare class ChartDataSeries extends Component<Props$W, SpreadsheetChildEnv> {
6521
+ declare class ChartDataSeries extends Component<Props$Z, SpreadsheetChildEnv> {
6514
6522
  static template: string;
6515
6523
  static components: {
6516
6524
  SelectionInput: typeof SelectionInput;
@@ -6530,11 +6538,11 @@ declare class ChartDataSeries extends Component<Props$W, SpreadsheetChildEnv> {
6530
6538
  get title(): string;
6531
6539
  }
6532
6540
 
6533
- interface Props$V {
6541
+ interface Props$Y {
6534
6542
  messages: string[];
6535
6543
  msgType: "warning" | "error";
6536
6544
  }
6537
- declare class ValidationMessages extends Component<Props$V, SpreadsheetChildEnv> {
6545
+ declare class ValidationMessages extends Component<Props$Y, SpreadsheetChildEnv> {
6538
6546
  static template: string;
6539
6547
  static props: {
6540
6548
  messages: ArrayConstructor;
@@ -6543,10 +6551,10 @@ declare class ValidationMessages extends Component<Props$V, SpreadsheetChildEnv>
6543
6551
  get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
6544
6552
  }
6545
6553
 
6546
- interface Props$U {
6554
+ interface Props$X {
6547
6555
  messages: string[];
6548
6556
  }
6549
- declare class ChartErrorSection extends Component<Props$U, SpreadsheetChildEnv> {
6557
+ declare class ChartErrorSection extends Component<Props$X, SpreadsheetChildEnv> {
6550
6558
  static template: string;
6551
6559
  static components: {
6552
6560
  Section: typeof Section;
@@ -6560,7 +6568,7 @@ declare class ChartErrorSection extends Component<Props$U, SpreadsheetChildEnv>
6560
6568
  };
6561
6569
  }
6562
6570
 
6563
- interface Props$T {
6571
+ interface Props$W {
6564
6572
  title?: string;
6565
6573
  range: string;
6566
6574
  isInvalid: boolean;
@@ -6574,7 +6582,7 @@ interface Props$T {
6574
6582
  onChange: (value: boolean) => void;
6575
6583
  }>;
6576
6584
  }
6577
- declare class ChartLabelRange extends Component<Props$T, SpreadsheetChildEnv> {
6585
+ declare class ChartLabelRange extends Component<Props$W, SpreadsheetChildEnv> {
6578
6586
  static template: string;
6579
6587
  static components: {
6580
6588
  SelectionInput: typeof SelectionInput;
@@ -6599,16 +6607,16 @@ declare class ChartLabelRange extends Component<Props$T, SpreadsheetChildEnv> {
6599
6607
  optional: boolean;
6600
6608
  };
6601
6609
  };
6602
- static defaultProps: Partial<Props$T>;
6610
+ static defaultProps: Partial<Props$W>;
6603
6611
  }
6604
6612
 
6605
- interface Props$S {
6613
+ interface Props$V {
6606
6614
  figureId: UID;
6607
6615
  definition: ChartWithAxisDefinition;
6608
6616
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
6609
6617
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
6610
6618
  }
6611
- declare class GenericChartConfigPanel extends Component<Props$S, SpreadsheetChildEnv> {
6619
+ declare class GenericChartConfigPanel extends Component<Props$V, SpreadsheetChildEnv> {
6612
6620
  static template: string;
6613
6621
  static components: {
6614
6622
  ChartDataSeries: typeof ChartDataSeries;
@@ -6822,7 +6830,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
6822
6830
  isSameColor(color1: Color, color2: Color): boolean;
6823
6831
  }
6824
6832
 
6825
- interface Props$R {
6833
+ interface Props$U {
6826
6834
  currentColor: string | undefined;
6827
6835
  toggleColorPicker: () => void;
6828
6836
  showColorPicker: boolean;
@@ -6833,7 +6841,7 @@ interface Props$R {
6833
6841
  dropdownMaxHeight?: Pixel;
6834
6842
  class?: string;
6835
6843
  }
6836
- declare class ColorPickerWidget extends Component<Props$R, SpreadsheetChildEnv> {
6844
+ declare class ColorPickerWidget extends Component<Props$U, SpreadsheetChildEnv> {
6837
6845
  static template: string;
6838
6846
  static props: {
6839
6847
  currentColor: {
@@ -6871,12 +6879,12 @@ declare class ColorPickerWidget extends Component<Props$R, SpreadsheetChildEnv>
6871
6879
  get colorPickerAnchorRect(): Rect;
6872
6880
  }
6873
6881
 
6874
- interface Props$Q {
6882
+ interface Props$T {
6875
6883
  currentColor?: string;
6876
6884
  onColorPicked: (color: string) => void;
6877
6885
  title?: string;
6878
6886
  }
6879
- declare class RoundColorPicker extends Component<Props$Q, SpreadsheetChildEnv> {
6887
+ declare class RoundColorPicker extends Component<Props$T, SpreadsheetChildEnv> {
6880
6888
  static template: string;
6881
6889
  static components: {
6882
6890
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -6906,7 +6914,7 @@ declare class RoundColorPicker extends Component<Props$Q, SpreadsheetChildEnv> {
6906
6914
  get buttonStyle(): string;
6907
6915
  }
6908
6916
 
6909
- interface Props$P {
6917
+ interface Props$S {
6910
6918
  title: string;
6911
6919
  updateTitle: (title: string) => void;
6912
6920
  name?: string;
@@ -6916,7 +6924,7 @@ interface Props$P {
6916
6924
  updateColor?: (Color: any) => void;
6917
6925
  style: TitleDesign;
6918
6926
  }
6919
- declare class ChartTitle extends Component<Props$P, SpreadsheetChildEnv> {
6927
+ declare class ChartTitle extends Component<Props$S, SpreadsheetChildEnv> {
6920
6928
  static template: string;
6921
6929
  static components: {
6922
6930
  Section: typeof Section;
@@ -6973,18 +6981,24 @@ interface AxisDefinition {
6973
6981
  id: string;
6974
6982
  name: string;
6975
6983
  }
6976
- interface Props$O {
6984
+ interface Props$R {
6977
6985
  figureId: UID;
6978
6986
  definition: ChartWithAxisDefinition | WaterfallChartDefinition;
6979
6987
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition | WaterfallChartDefinition>) => DispatchResult;
6980
6988
  axesList: AxisDefinition[];
6981
6989
  }
6982
- declare class AxisDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
6990
+ declare class AxisDesignEditor extends Component<Props$R, SpreadsheetChildEnv> {
6983
6991
  static template: string;
6984
6992
  static components: {
6985
6993
  Section: typeof Section;
6986
6994
  ChartTitle: typeof ChartTitle;
6987
6995
  };
6996
+ static props: {
6997
+ figureId: StringConstructor;
6998
+ definition: ObjectConstructor;
6999
+ updateChart: FunctionConstructor;
7000
+ axesList: ArrayConstructor;
7001
+ };
6988
7002
  state: {
6989
7003
  currentAxis: string;
6990
7004
  };
@@ -6998,12 +7012,12 @@ declare class AxisDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
6998
7012
  updateAxisTitle(text: string): void;
6999
7013
  }
7000
7014
 
7001
- interface Props$N {
7015
+ interface Props$Q {
7002
7016
  figureId: UID;
7003
7017
  definition: ChartDefinition;
7004
7018
  updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
7005
7019
  }
7006
- declare class GeneralDesignEditor extends Component<Props$N, SpreadsheetChildEnv> {
7020
+ declare class GeneralDesignEditor extends Component<Props$Q, SpreadsheetChildEnv> {
7007
7021
  static template: string;
7008
7022
  static components: {
7009
7023
  RoundColorPicker: typeof RoundColorPicker;
@@ -7033,13 +7047,13 @@ declare class GeneralDesignEditor extends Component<Props$N, SpreadsheetChildEnv
7033
7047
  updateChartTitleAlignment(align: "left" | "center" | "right"): void;
7034
7048
  }
7035
7049
 
7036
- interface Props$M {
7050
+ interface Props$P {
7037
7051
  figureId: UID;
7038
7052
  definition: ChartWithAxisDefinition;
7039
7053
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
7040
7054
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
7041
7055
  }
7042
- declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChildEnv> {
7056
+ declare class ChartWithAxisDesignPanel extends Component<Props$P, SpreadsheetChildEnv> {
7043
7057
  static template: string;
7044
7058
  static components: {
7045
7059
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7048,6 +7062,12 @@ declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChi
7048
7062
  AxisDesignEditor: typeof AxisDesignEditor;
7049
7063
  RoundColorPicker: typeof RoundColorPicker;
7050
7064
  };
7065
+ static props: {
7066
+ figureId: StringConstructor;
7067
+ definition: ObjectConstructor;
7068
+ canUpdateChart: FunctionConstructor;
7069
+ updateChart: FunctionConstructor;
7070
+ };
7051
7071
  private state;
7052
7072
  get axesList(): AxisDefinition[];
7053
7073
  updateLegendPosition(ev: any): void;
@@ -7061,13 +7081,13 @@ declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChi
7061
7081
  getDataSerieLabel(): string | undefined;
7062
7082
  }
7063
7083
 
7064
- interface Props$L {
7084
+ interface Props$O {
7065
7085
  figureId: UID;
7066
7086
  definition: GaugeChartDefinition;
7067
7087
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7068
7088
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7069
7089
  }
7070
- declare class GaugeChartConfigPanel extends Component<Props$L, SpreadsheetChildEnv> {
7090
+ declare class GaugeChartConfigPanel extends Component<Props$O, SpreadsheetChildEnv> {
7071
7091
  static template: string;
7072
7092
  static components: {
7073
7093
  ChartErrorSection: typeof ChartErrorSection;
@@ -7092,13 +7112,13 @@ interface PanelState {
7092
7112
  sectionRuleDispatchResult?: DispatchResult;
7093
7113
  sectionRule: SectionRule;
7094
7114
  }
7095
- interface Props$K {
7115
+ interface Props$N {
7096
7116
  figureId: UID;
7097
7117
  definition: GaugeChartDefinition;
7098
7118
  canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7099
7119
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7100
7120
  }
7101
- declare class GaugeChartDesignPanel extends Component<Props$K, SpreadsheetChildEnv> {
7121
+ declare class GaugeChartDesignPanel extends Component<Props$N, SpreadsheetChildEnv> {
7102
7122
  static template: string;
7103
7123
  static components: {
7104
7124
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -7148,13 +7168,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
7148
7168
  onUpdateCumulative(cumulative: boolean): void;
7149
7169
  }
7150
7170
 
7151
- interface Props$J {
7171
+ interface Props$M {
7152
7172
  figureId: UID;
7153
7173
  definition: ScorecardChartDefinition;
7154
7174
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7155
7175
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7156
7176
  }
7157
- declare class ScorecardChartConfigPanel extends Component<Props$J, SpreadsheetChildEnv> {
7177
+ declare class ScorecardChartConfigPanel extends Component<Props$M, SpreadsheetChildEnv> {
7158
7178
  static template: string;
7159
7179
  static components: {
7160
7180
  SelectionInput: typeof SelectionInput;
@@ -7183,13 +7203,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$J, SpreadsheetCh
7183
7203
  }
7184
7204
 
7185
7205
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
7186
- interface Props$I {
7206
+ interface Props$L {
7187
7207
  figureId: UID;
7188
7208
  definition: ScorecardChartDefinition;
7189
7209
  canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7190
7210
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7191
7211
  }
7192
- declare class ScorecardChartDesignPanel extends Component<Props$I, SpreadsheetChildEnv> {
7212
+ declare class ScorecardChartDesignPanel extends Component<Props$L, SpreadsheetChildEnv> {
7193
7213
  static template: string;
7194
7214
  static components: {
7195
7215
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7347,13 +7367,13 @@ interface EnrichedToken extends Token {
7347
7367
  functionContext?: FunctionContext;
7348
7368
  }
7349
7369
 
7350
- interface Props$H {
7370
+ interface Props$K {
7351
7371
  proposals: AutoCompleteProposal[];
7352
7372
  selectedIndex: number | undefined;
7353
7373
  onValueSelected: (value: string) => void;
7354
7374
  onValueHovered: (index: string) => void;
7355
7375
  }
7356
- declare class TextValueProvider extends Component<Props$H> {
7376
+ declare class TextValueProvider extends Component<Props$K> {
7357
7377
  static template: string;
7358
7378
  static props: {
7359
7379
  proposals: ArrayConstructor;
@@ -7567,7 +7587,7 @@ declare class ContentEditableHelper {
7567
7587
  getText(): string;
7568
7588
  }
7569
7589
 
7570
- interface Props$G {
7590
+ interface Props$J {
7571
7591
  functionName: string;
7572
7592
  functionDescription: FunctionDescription;
7573
7593
  argToFocus: number;
@@ -7575,7 +7595,7 @@ interface Props$G {
7575
7595
  interface AssistantState {
7576
7596
  allowCellSelectionBehind: boolean;
7577
7597
  }
7578
- declare class FunctionDescriptionProvider extends Component<Props$G, SpreadsheetChildEnv> {
7598
+ declare class FunctionDescriptionProvider extends Component<Props$J, SpreadsheetChildEnv> {
7579
7599
  static template: string;
7580
7600
  static props: {
7581
7601
  functionName: StringConstructor;
@@ -7585,7 +7605,7 @@ declare class FunctionDescriptionProvider extends Component<Props$G, Spreadsheet
7585
7605
  assistantState: AssistantState;
7586
7606
  private timeOutId;
7587
7607
  setup(): void;
7588
- getContext(): Props$G;
7608
+ getContext(): Props$J;
7589
7609
  onMouseMove(): void;
7590
7610
  get formulaArgSeparator(): string;
7591
7611
  }
@@ -7776,10 +7796,10 @@ interface AutoCompleteProviderDefinition {
7776
7796
 
7777
7797
  declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
7778
7798
 
7779
- interface Props$F {
7799
+ interface Props$I {
7780
7800
  figure: Figure;
7781
7801
  }
7782
- declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
7802
+ declare class ChartJsComponent extends Component<Props$I, SpreadsheetChildEnv> {
7783
7803
  static template: string;
7784
7804
  static props: {
7785
7805
  figure: ObjectConstructor;
@@ -7795,10 +7815,10 @@ declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
7795
7815
  private updateChartJs;
7796
7816
  }
7797
7817
 
7798
- interface Props$E {
7818
+ interface Props$H {
7799
7819
  figure: Figure;
7800
7820
  }
7801
- declare class ScorecardChart extends Component<Props$E, SpreadsheetChildEnv> {
7821
+ declare class ScorecardChart extends Component<Props$H, SpreadsheetChildEnv> {
7802
7822
  static template: string;
7803
7823
  static props: {
7804
7824
  figure: ObjectConstructor;
@@ -7810,7 +7830,7 @@ declare class ScorecardChart extends Component<Props$E, SpreadsheetChildEnv> {
7810
7830
  }
7811
7831
 
7812
7832
  type MenuItemOrSeparator = Action | "separator";
7813
- interface Props$D {
7833
+ interface Props$G {
7814
7834
  position: DOMCoordinates;
7815
7835
  menuItems: Action[];
7816
7836
  depth: number;
@@ -7828,7 +7848,7 @@ interface MenuState {
7828
7848
  menuItems: Action[];
7829
7849
  isHoveringChild?: boolean;
7830
7850
  }
7831
- declare class Menu extends Component<Props$D, SpreadsheetChildEnv> {
7851
+ declare class Menu extends Component<Props$G, SpreadsheetChildEnv> {
7832
7852
  static template: string;
7833
7853
  static props: {
7834
7854
  position: ObjectConstructor;
@@ -7898,14 +7918,14 @@ declare class Menu extends Component<Props$D, SpreadsheetChildEnv> {
7898
7918
  }
7899
7919
 
7900
7920
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
7901
- interface Props$C {
7921
+ interface Props$F {
7902
7922
  figure: Figure;
7903
7923
  style: string;
7904
7924
  onFigureDeleted: () => void;
7905
7925
  onMouseDown: (ev: MouseEvent) => void;
7906
7926
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
7907
7927
  }
7908
- declare class FigureComponent extends Component<Props$C, SpreadsheetChildEnv> {
7928
+ declare class FigureComponent extends Component<Props$F, SpreadsheetChildEnv> {
7909
7929
  static template: string;
7910
7930
  static props: {
7911
7931
  figure: ObjectConstructor;
@@ -7954,11 +7974,11 @@ declare class FigureComponent extends Component<Props$C, SpreadsheetChildEnv> {
7954
7974
  private openContextMenu;
7955
7975
  }
7956
7976
 
7957
- interface Props$B {
7977
+ interface Props$E {
7958
7978
  figure: Figure;
7959
7979
  onFigureDeleted: () => void;
7960
7980
  }
7961
- declare class ChartFigure extends Component<Props$B, SpreadsheetChildEnv> {
7981
+ declare class ChartFigure extends Component<Props$E, SpreadsheetChildEnv> {
7962
7982
  static template: string;
7963
7983
  static props: {
7964
7984
  figure: ObjectConstructor;
@@ -7970,7 +7990,7 @@ declare class ChartFigure extends Component<Props$B, SpreadsheetChildEnv> {
7970
7990
  get chartComponent(): new (...args: any) => Component;
7971
7991
  }
7972
7992
 
7973
- interface Props$A {
7993
+ interface Props$D {
7974
7994
  isVisible: boolean;
7975
7995
  position: Position;
7976
7996
  }
@@ -7982,7 +8002,7 @@ interface State$8 {
7982
8002
  position: Position;
7983
8003
  handler: boolean;
7984
8004
  }
7985
- declare class Autofill extends Component<Props$A, SpreadsheetChildEnv> {
8005
+ declare class Autofill extends Component<Props$D, SpreadsheetChildEnv> {
7986
8006
  static template: string;
7987
8007
  static props: {
7988
8008
  position: ObjectConstructor;
@@ -8016,7 +8036,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
8016
8036
  get tagStyle(): string;
8017
8037
  }
8018
8038
 
8019
- interface Props$z {
8039
+ interface Props$C {
8020
8040
  gridDims: DOMDimension;
8021
8041
  onInputContextMenu: (event: MouseEvent) => void;
8022
8042
  }
@@ -8024,7 +8044,7 @@ interface Props$z {
8024
8044
  * This component is a composer which positions itself on the grid at the anchor cell.
8025
8045
  * It also applies the style of the cell to the composer input.
8026
8046
  */
8027
- declare class GridComposer extends Component<Props$z, SpreadsheetChildEnv> {
8047
+ declare class GridComposer extends Component<Props$C, SpreadsheetChildEnv> {
8028
8048
  static template: string;
8029
8049
  static props: {
8030
8050
  gridDims: ObjectConstructor;
@@ -8081,10 +8101,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
8081
8101
  isPositionVisible(position: CellPosition): boolean;
8082
8102
  }
8083
8103
 
8084
- interface Props$y {
8104
+ interface Props$B {
8085
8105
  cellPosition: CellPosition;
8086
8106
  }
8087
- declare class DataValidationCheckbox extends Component<Props$y, SpreadsheetChildEnv> {
8107
+ declare class DataValidationCheckbox extends Component<Props$B, SpreadsheetChildEnv> {
8088
8108
  static template: string;
8089
8109
  static props: {
8090
8110
  cellPosition: ObjectConstructor;
@@ -8094,10 +8114,10 @@ declare class DataValidationCheckbox extends Component<Props$y, SpreadsheetChild
8094
8114
  get isDisabled(): boolean;
8095
8115
  }
8096
8116
 
8097
- interface Props$x {
8117
+ interface Props$A {
8098
8118
  cellPosition: CellPosition;
8099
8119
  }
8100
- declare class DataValidationListIcon extends Component<Props$x, SpreadsheetChildEnv> {
8120
+ declare class DataValidationListIcon extends Component<Props$A, SpreadsheetChildEnv> {
8101
8121
  static template: string;
8102
8122
  static props: {
8103
8123
  cellPosition: ObjectConstructor;
@@ -8127,7 +8147,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
8127
8147
  }
8128
8148
 
8129
8149
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
8130
- interface Props$w {
8150
+ interface Props$z {
8131
8151
  onFigureDeleted: () => void;
8132
8152
  }
8133
8153
  interface Container {
@@ -8206,7 +8226,7 @@ interface DndState {
8206
8226
  * that occurred during the drag & drop, and to position the figure on the correct pane.
8207
8227
  *
8208
8228
  */
8209
- declare class FiguresContainer extends Component<Props$w, SpreadsheetChildEnv> {
8229
+ declare class FiguresContainer extends Component<Props$z, SpreadsheetChildEnv> {
8210
8230
  static template: string;
8211
8231
  static props: {
8212
8232
  onFigureDeleted: FunctionConstructor;
@@ -8261,10 +8281,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
8261
8281
  private computePopoverAnchorRect;
8262
8282
  }
8263
8283
 
8264
- interface Props$v {
8284
+ interface Props$y {
8265
8285
  cellPosition: CellPosition;
8266
8286
  }
8267
- declare class FilterIcon extends Component<Props$v, SpreadsheetChildEnv> {
8287
+ declare class FilterIcon extends Component<Props$y, SpreadsheetChildEnv> {
8268
8288
  static template: string;
8269
8289
  static props: {
8270
8290
  cellPosition: ObjectConstructor;
@@ -8286,10 +8306,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
8286
8306
  getFilterHeadersPositions(): CellPosition[];
8287
8307
  }
8288
8308
 
8289
- interface Props$u {
8309
+ interface Props$x {
8290
8310
  focusGrid: () => void;
8291
8311
  }
8292
- declare class GridAddRowsFooter extends Component<Props$u, SpreadsheetChildEnv> {
8312
+ declare class GridAddRowsFooter extends Component<Props$x, SpreadsheetChildEnv> {
8293
8313
  static template: string;
8294
8314
  static props: {
8295
8315
  focusGrid: FunctionConstructor;
@@ -8313,7 +8333,7 @@ declare class GridAddRowsFooter extends Component<Props$u, SpreadsheetChildEnv>
8313
8333
  private onExternalClick;
8314
8334
  }
8315
8335
 
8316
- interface Props$t {
8336
+ interface Props$w {
8317
8337
  onCellHovered: (position: Partial<Position$1>) => void;
8318
8338
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
8319
8339
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
@@ -8323,7 +8343,7 @@ interface Props$t {
8323
8343
  gridOverlayDimensions: string;
8324
8344
  onFigureDeleted: () => void;
8325
8345
  }
8326
- declare class GridOverlay extends Component<Props$t, SpreadsheetChildEnv> {
8346
+ declare class GridOverlay extends Component<Props$w, SpreadsheetChildEnv> {
8327
8347
  static template: string;
8328
8348
  static props: {
8329
8349
  onCellHovered: {
@@ -8380,12 +8400,12 @@ declare class GridOverlay extends Component<Props$t, SpreadsheetChildEnv> {
8380
8400
  private getCartesianCoordinates;
8381
8401
  }
8382
8402
 
8383
- interface Props$s {
8403
+ interface Props$v {
8384
8404
  gridRect: Rect;
8385
8405
  onClosePopover: () => void;
8386
8406
  onMouseWheel: (ev: WheelEvent) => void;
8387
8407
  }
8388
- declare class GridPopover extends Component<Props$s, SpreadsheetChildEnv> {
8408
+ declare class GridPopover extends Component<Props$v, SpreadsheetChildEnv> {
8389
8409
  static template: string;
8390
8410
  static props: {
8391
8411
  onClosePopover: FunctionConstructor;
@@ -8528,13 +8548,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
8528
8548
  }
8529
8549
 
8530
8550
  type Orientation$1 = "n" | "s" | "w" | "e";
8531
- interface Props$r {
8551
+ interface Props$u {
8532
8552
  zone: Zone;
8533
8553
  orientation: Orientation$1;
8534
8554
  isMoving: boolean;
8535
8555
  onMoveHighlight: (x: Pixel, y: Pixel) => void;
8536
8556
  }
8537
- declare class Border extends Component<Props$r, SpreadsheetChildEnv> {
8557
+ declare class Border extends Component<Props$u, SpreadsheetChildEnv> {
8538
8558
  static template: string;
8539
8559
  static props: {
8540
8560
  zone: ObjectConstructor;
@@ -8547,14 +8567,14 @@ declare class Border extends Component<Props$r, SpreadsheetChildEnv> {
8547
8567
  }
8548
8568
 
8549
8569
  type Orientation = "nw" | "ne" | "sw" | "se";
8550
- interface Props$q {
8570
+ interface Props$t {
8551
8571
  zone: Zone;
8552
8572
  color: Color;
8553
8573
  orientation: Orientation;
8554
8574
  isResizing: boolean;
8555
8575
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
8556
8576
  }
8557
- declare class Corner extends Component<Props$q, SpreadsheetChildEnv> {
8577
+ declare class Corner extends Component<Props$t, SpreadsheetChildEnv> {
8558
8578
  static template: string;
8559
8579
  static props: {
8560
8580
  zone: ObjectConstructor;
@@ -8569,14 +8589,14 @@ declare class Corner extends Component<Props$q, SpreadsheetChildEnv> {
8569
8589
  onMouseDown(ev: MouseEvent): void;
8570
8590
  }
8571
8591
 
8572
- interface Props$p {
8592
+ interface Props$s {
8573
8593
  zone: Zone;
8574
8594
  color: Color;
8575
8595
  }
8576
8596
  interface HighlightState {
8577
8597
  shiftingMode: "isMoving" | "isResizing" | "none";
8578
8598
  }
8579
- declare class Highlight extends Component<Props$p, SpreadsheetChildEnv> {
8599
+ declare class Highlight extends Component<Props$s, SpreadsheetChildEnv> {
8580
8600
  static template: string;
8581
8601
  static props: {
8582
8602
  zone: ObjectConstructor;
@@ -8593,7 +8613,7 @@ declare class Highlight extends Component<Props$p, SpreadsheetChildEnv> {
8593
8613
 
8594
8614
  type ScrollDirection = "horizontal" | "vertical";
8595
8615
 
8596
- interface Props$o {
8616
+ interface Props$r {
8597
8617
  width: Pixel;
8598
8618
  height: Pixel;
8599
8619
  direction: ScrollDirection;
@@ -8601,7 +8621,7 @@ interface Props$o {
8601
8621
  offset: Pixel;
8602
8622
  onScroll: (offset: Pixel) => void;
8603
8623
  }
8604
- declare class ScrollBar extends Component<Props$o> {
8624
+ declare class ScrollBar extends Component<Props$r> {
8605
8625
  static props: {
8606
8626
  width: {
8607
8627
  type: NumberConstructor;
@@ -8629,10 +8649,10 @@ declare class ScrollBar extends Component<Props$o> {
8629
8649
  onScroll(ev: any): void;
8630
8650
  }
8631
8651
 
8632
- interface Props$n {
8652
+ interface Props$q {
8633
8653
  leftOffset: number;
8634
8654
  }
8635
- declare class HorizontalScrollBar extends Component<Props$n, SpreadsheetChildEnv> {
8655
+ declare class HorizontalScrollBar extends Component<Props$q, SpreadsheetChildEnv> {
8636
8656
  static props: {
8637
8657
  leftOffset: {
8638
8658
  type: NumberConstructor;
@@ -8658,10 +8678,10 @@ declare class HorizontalScrollBar extends Component<Props$n, SpreadsheetChildEnv
8658
8678
  onScroll(offset: any): void;
8659
8679
  }
8660
8680
 
8661
- interface Props$m {
8681
+ interface Props$p {
8662
8682
  topOffset: number;
8663
8683
  }
8664
- declare class VerticalScrollBar extends Component<Props$m, SpreadsheetChildEnv> {
8684
+ declare class VerticalScrollBar extends Component<Props$p, SpreadsheetChildEnv> {
8665
8685
  static props: {
8666
8686
  topOffset: {
8667
8687
  type: NumberConstructor;
@@ -8687,13 +8707,13 @@ declare class VerticalScrollBar extends Component<Props$m, SpreadsheetChildEnv>
8687
8707
  onScroll(offset: any): void;
8688
8708
  }
8689
8709
 
8690
- interface Props$l {
8710
+ interface Props$o {
8691
8711
  table: Table;
8692
8712
  }
8693
8713
  interface State$7 {
8694
8714
  highlightZone: Zone | undefined;
8695
8715
  }
8696
- declare class TableResizer extends Component<Props$l, SpreadsheetChildEnv> {
8716
+ declare class TableResizer extends Component<Props$o, SpreadsheetChildEnv> {
8697
8717
  static template: string;
8698
8718
  static props: {
8699
8719
  table: ObjectConstructor;
@@ -8725,10 +8745,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
8725
8745
  * - a vertical resizer (same, for rows)
8726
8746
  */
8727
8747
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
8728
- interface Props$k {
8748
+ interface Props$n {
8729
8749
  exposeFocus: (focus: () => void) => void;
8730
8750
  }
8731
- declare class Grid extends Component<Props$k, SpreadsheetChildEnv> {
8751
+ declare class Grid extends Component<Props$n, SpreadsheetChildEnv> {
8732
8752
  static template: string;
8733
8753
  static props: {
8734
8754
  exposeFocus: FunctionConstructor;
@@ -8837,11 +8857,11 @@ declare class MainChartPanelStore extends SpreadsheetStore {
8837
8857
  changeChartType(figureId: UID, type: ChartType): void;
8838
8858
  }
8839
8859
 
8840
- interface Props$j {
8860
+ interface Props$m {
8841
8861
  onCloseSidePanel: () => void;
8842
8862
  figureId: UID;
8843
8863
  }
8844
- declare class ChartPanel extends Component<Props$j, SpreadsheetChildEnv> {
8864
+ declare class ChartPanel extends Component<Props$m, SpreadsheetChildEnv> {
8845
8865
  static template: string;
8846
8866
  static components: {
8847
8867
  Section: typeof Section;
@@ -8861,13 +8881,13 @@ declare class ChartPanel extends Component<Props$j, SpreadsheetChildEnv> {
8861
8881
  get chartTypes(): Record<string, string>;
8862
8882
  }
8863
8883
 
8864
- interface Props$i {
8884
+ interface Props$l {
8865
8885
  figureId: UID;
8866
8886
  definition: PieChartDefinition;
8867
8887
  canUpdateChart: (figureID: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
8868
8888
  updateChart: (figureId: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
8869
8889
  }
8870
- declare class PieChartDesignPanel extends Component<Props$i, SpreadsheetChildEnv> {
8890
+ declare class PieChartDesignPanel extends Component<Props$l, SpreadsheetChildEnv> {
8871
8891
  static template: string;
8872
8892
  static components: {
8873
8893
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8885,6 +8905,37 @@ declare class PieChartDesignPanel extends Component<Props$i, SpreadsheetChildEnv
8885
8905
  updateLegendPosition(ev: any): void;
8886
8906
  }
8887
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
+
8888
8939
  declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
8889
8940
  mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
8890
8941
  private allSheetsMatches;
@@ -8949,12 +9000,12 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
8949
9000
 
8950
9001
  /** @odoo-module */
8951
9002
 
8952
- interface Props$h {
9003
+ interface Props$j {
8953
9004
  name: string;
8954
9005
  displayName: string;
8955
9006
  onChanged: (name: string) => void;
8956
9007
  }
8957
- declare class EditableName extends Component<Props$h, SpreadsheetChildEnv> {
9008
+ declare class EditableName extends Component<Props$j, SpreadsheetChildEnv> {
8958
9009
  static template: string;
8959
9010
  static props: {
8960
9011
  name: StringConstructor;
@@ -8967,11 +9018,35 @@ declare class EditableName extends Component<Props$h, SpreadsheetChildEnv> {
8967
9018
  save(): void;
8968
9019
  }
8969
9020
 
8970
- interface Props$g {
9021
+ interface Props$i {
9022
+ deferUpdate: boolean;
9023
+ isDirty: boolean;
9024
+ toggleDeferUpdate: (value: boolean) => void;
9025
+ discard: () => void;
9026
+ apply: () => void;
9027
+ }
9028
+ declare class PivotDeferUpdate extends Component<Props$i, SpreadsheetChildEnv> {
9029
+ static template: string;
9030
+ static props: {
9031
+ deferUpdate: BooleanConstructor;
9032
+ isDirty: BooleanConstructor;
9033
+ toggleDeferUpdate: FunctionConstructor;
9034
+ discard: FunctionConstructor;
9035
+ apply: FunctionConstructor;
9036
+ };
9037
+ static components: {
9038
+ Section: typeof Section;
9039
+ Checkbox: typeof Checkbox;
9040
+ };
9041
+ get deferUpdatesLabel(): string;
9042
+ get deferUpdatesTooltip(): string;
9043
+ }
9044
+
9045
+ interface Props$h {
8971
9046
  onFieldPicked: (field: string) => void;
8972
9047
  fields: PivotField[];
8973
9048
  }
8974
- declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv> {
9049
+ declare class AddDimensionButton extends Component<Props$h, SpreadsheetChildEnv> {
8975
9050
  static template: string;
8976
9051
  static components: {
8977
9052
  Popover: typeof Popover;
@@ -9003,11 +9078,11 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
9003
9078
  onKeyDown(ev: KeyboardEvent): void;
9004
9079
  }
9005
9080
 
9006
- interface Props$f {
9081
+ interface Props$g {
9007
9082
  dimension: PivotDimension;
9008
9083
  onRemoved: (dimension: PivotDimension) => void;
9009
9084
  }
9010
- declare class PivotDimension extends Component<Props$f, SpreadsheetChildEnv> {
9085
+ declare class PivotDimension extends Component<Props$g, SpreadsheetChildEnv> {
9011
9086
  static template: string;
9012
9087
  static props: {
9013
9088
  dimension: ObjectConstructor;
@@ -9022,13 +9097,13 @@ declare class PivotDimension extends Component<Props$f, SpreadsheetChildEnv> {
9022
9097
  };
9023
9098
  }
9024
9099
 
9025
- interface Props$e {
9100
+ interface Props$f {
9026
9101
  dimension: PivotDimension$1;
9027
9102
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
9028
9103
  availableGranularities: Set<string>;
9029
9104
  allGranularities: string[];
9030
9105
  }
9031
- declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetChildEnv> {
9106
+ declare class PivotDimensionGranularity extends Component<Props$f, SpreadsheetChildEnv> {
9032
9107
  static template: string;
9033
9108
  static props: {
9034
9109
  dimension: ObjectConstructor;
@@ -9050,11 +9125,11 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
9050
9125
  };
9051
9126
  }
9052
9127
 
9053
- interface Props$d {
9128
+ interface Props$e {
9054
9129
  dimension: PivotDimension$1;
9055
9130
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
9056
9131
  }
9057
- declare class PivotDimensionOrder extends Component<Props$d, SpreadsheetChildEnv> {
9132
+ declare class PivotDimensionOrder extends Component<Props$e, SpreadsheetChildEnv> {
9058
9133
  static template: string;
9059
9134
  static props: {
9060
9135
  dimension: ObjectConstructor;
@@ -9081,8 +9156,14 @@ declare function parseDimension(dimension: string): PivotCoreDimension;
9081
9156
  declare function isDateField(field: PivotField): boolean;
9082
9157
  declare function toPivotDomain(domainStr: string[]): PivotDomain;
9083
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;
9084
9165
 
9085
- interface Props$c {
9166
+ interface Props$d {
9086
9167
  definition: PivotRuntimeDefinition;
9087
9168
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
9088
9169
  unusedGroupableFields: PivotField[];
@@ -9090,7 +9171,7 @@ interface Props$c {
9090
9171
  unusedDateTimeGranularities: Record<string, Set<string>>;
9091
9172
  allGranularities: string[];
9092
9173
  }
9093
- declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChildEnv> {
9174
+ declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChildEnv> {
9094
9175
  static template: string;
9095
9176
  static components: {
9096
9177
  AddDimensionButton: typeof AddDimensionButton;
@@ -9130,7 +9211,7 @@ declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChil
9130
9211
 
9131
9212
  declare class PivotSidePanelStore extends SpreadsheetStore {
9132
9213
  private pivotId;
9133
- mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "renamePivot", "update"];
9214
+ mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "update"];
9134
9215
  private updatesAreDeferred;
9135
9216
  private draft;
9136
9217
  constructor(get: Get, pivotId: UID);
@@ -9147,12 +9228,36 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
9147
9228
  deferUpdates(shouldDefer: boolean): void;
9148
9229
  applyUpdate(): void;
9149
9230
  discardPendingUpdate(): void;
9150
- renamePivot(name: string): void;
9151
9231
  update(definitionUpdate: Partial<PivotCoreDefinition>): void;
9152
9232
  private addDefaultDateTimeGranularity;
9153
9233
  private getUnusedDateTimeGranularities;
9154
9234
  }
9155
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
+
9156
9261
  declare function isEvaluationError(error: Maybe<CellValue>): error is string;
9157
9262
  declare function toNumber(data: FPayload | CellValue | undefined, locale: Locale): number;
9158
9263
  declare function toString(data: FPayload | CellValue | undefined): string;
@@ -9245,7 +9350,7 @@ declare function getNumberOfPivotFunctions(tokens: Token[]): number;
9245
9350
 
9246
9351
  declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
9247
9352
 
9248
- declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<string | number | false>;
9353
+ declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<CellValue>;
9249
9354
 
9250
9355
  /**
9251
9356
  * This function tries to load anything that could look like a valid
@@ -11142,9 +11247,10 @@ declare const registries: {
11142
11247
  }>;
11143
11248
  };
11144
11249
  pivotRegistry: Registry<PivotRegistryItem>;
11145
- pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<string | number | false>>;
11250
+ pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<CellValue>>;
11146
11251
  pivotSidePanelRegistry: Registry<PivotRegistryItem$1>;
11147
- supportedPivotExplodedFormulaRegistry: Registry<boolean>;
11252
+ pivotNormalizationValueRegistry: Registry<(value: string, granularity?: string | undefined) => CellValue>;
11253
+ supportedPivotPositionalFormulaRegistry: Registry<boolean>;
11148
11254
  };
11149
11255
  declare const helpers: {
11150
11256
  arg: typeof arg;
@@ -11153,6 +11259,7 @@ declare const helpers: {
11153
11259
  toJsDate: typeof toJsDate;
11154
11260
  toNumber: typeof toNumber;
11155
11261
  toString: typeof toString;
11262
+ toNormalizedPivotValue: typeof toNormalizedPivotValue;
11156
11263
  toXC: typeof toXC;
11157
11264
  toZone: typeof toZone;
11158
11265
  toUnboundedZone: typeof toUnboundedZone;
@@ -11247,6 +11354,9 @@ declare const components: {
11247
11354
  PivotDimension: typeof PivotDimension;
11248
11355
  PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
11249
11356
  EditableName: typeof EditableName;
11357
+ PivotDeferUpdate: typeof PivotDeferUpdate;
11358
+ PivotTitleSection: typeof PivotTitleSection;
11359
+ CogWheelMenu: typeof CogWheelMenu;
11250
11360
  };
11251
11361
  declare const hooks: {
11252
11362
  useDragAndDropListItems: typeof useDragAndDropListItems;