@odoo/o-spreadsheet 17.4.0-alpha.3 → 17.4.0-alpha.5

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
  }[];
@@ -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$_, SpreadsheetChildEnv> {
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$Z {
6306
+ interface Props$$ {
6302
6307
  class?: string;
6303
6308
  }
6304
- declare class Section extends Component<Props$Z, SpreadsheetChildEnv> {
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$Y {
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$Y, SpreadsheetChildEnv> {
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$X {
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$X, SpreadsheetChildEnv> {
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$W {
6541
+ interface Props$Y {
6537
6542
  messages: string[];
6538
6543
  msgType: "warning" | "error";
6539
6544
  }
6540
- declare class ValidationMessages extends Component<Props$W, SpreadsheetChildEnv> {
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$V {
6554
+ interface Props$X {
6550
6555
  messages: string[];
6551
6556
  }
6552
- declare class ChartErrorSection extends Component<Props$V, SpreadsheetChildEnv> {
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$U {
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$U, SpreadsheetChildEnv> {
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$U>;
6610
+ static defaultProps: Partial<Props$W>;
6606
6611
  }
6607
6612
 
6608
- interface Props$T {
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$T, SpreadsheetChildEnv> {
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$S {
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$S, SpreadsheetChildEnv> {
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$R {
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$R, SpreadsheetChildEnv> {
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$Q {
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$Q, SpreadsheetChildEnv> {
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$P {
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$P, SpreadsheetChildEnv> {
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$O {
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$O, SpreadsheetChildEnv> {
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$N {
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$N, SpreadsheetChildEnv> {
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$M {
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$M, SpreadsheetChildEnv> {
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$L {
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$L, SpreadsheetChildEnv> {
7121
+ declare class GaugeChartDesignPanel extends Component<Props$N, SpreadsheetChildEnv> {
7105
7122
  static template: string;
7106
7123
  static components: {
7107
7124
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -7122,8 +7139,6 @@ declare class GaugeChartDesignPanel extends Component<Props$L, SpreadsheetChildE
7122
7139
  protected state: PanelState;
7123
7140
  setup(): void;
7124
7141
  get designErrorMessages(): string[];
7125
- updateBackgroundColor(color: Color): void;
7126
- updateTitle(content: string): void;
7127
7142
  isRangeMinInvalid(): boolean;
7128
7143
  isRangeMaxInvalid(): boolean;
7129
7144
  get isLowerInflectionPointInvalid(): boolean;
@@ -7131,7 +7146,6 @@ declare class GaugeChartDesignPanel extends Component<Props$L, SpreadsheetChildE
7131
7146
  updateSectionColor(target: string, color: Color): void;
7132
7147
  updateSectionRule(sectionRule: SectionRule): void;
7133
7148
  canUpdateSectionRule(sectionRule: SectionRule): void;
7134
- get backgroundColorTitle(): string;
7135
7149
  }
7136
7150
 
7137
7151
  declare class LineConfigPanel extends GenericChartConfigPanel {
@@ -7151,13 +7165,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
7151
7165
  onUpdateCumulative(cumulative: boolean): void;
7152
7166
  }
7153
7167
 
7154
- interface Props$K {
7168
+ interface Props$M {
7155
7169
  figureId: UID;
7156
7170
  definition: ScorecardChartDefinition;
7157
7171
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7158
7172
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7159
7173
  }
7160
- declare class ScorecardChartConfigPanel extends Component<Props$K, SpreadsheetChildEnv> {
7174
+ declare class ScorecardChartConfigPanel extends Component<Props$M, SpreadsheetChildEnv> {
7161
7175
  static template: string;
7162
7176
  static components: {
7163
7177
  SelectionInput: typeof SelectionInput;
@@ -7186,13 +7200,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$K, SpreadsheetCh
7186
7200
  }
7187
7201
 
7188
7202
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
7189
- interface Props$J {
7203
+ interface Props$L {
7190
7204
  figureId: UID;
7191
7205
  definition: ScorecardChartDefinition;
7192
7206
  canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7193
7207
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7194
7208
  }
7195
- declare class ScorecardChartDesignPanel extends Component<Props$J, SpreadsheetChildEnv> {
7209
+ declare class ScorecardChartDesignPanel extends Component<Props$L, SpreadsheetChildEnv> {
7196
7210
  static template: string;
7197
7211
  static components: {
7198
7212
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7212,12 +7226,10 @@ declare class ScorecardChartDesignPanel extends Component<Props$J, SpreadsheetCh
7212
7226
  };
7213
7227
  get colorsSectionTitle(): string;
7214
7228
  get humanizeNumbersLabel(): string;
7215
- updateTitle(content: string): void;
7216
7229
  updateHumanizeNumbers(humanize: boolean): void;
7217
7230
  translate(term: any): string;
7218
7231
  updateBaselineDescr(ev: any): void;
7219
7232
  setColor(color: Color, colorPickerId: ColorPickerId): void;
7220
- get backgroundColorTitle(): string;
7221
7233
  }
7222
7234
 
7223
7235
  interface ChartSidePanel {
@@ -7350,13 +7362,13 @@ interface EnrichedToken extends Token {
7350
7362
  functionContext?: FunctionContext;
7351
7363
  }
7352
7364
 
7353
- interface Props$I {
7365
+ interface Props$K {
7354
7366
  proposals: AutoCompleteProposal[];
7355
7367
  selectedIndex: number | undefined;
7356
7368
  onValueSelected: (value: string) => void;
7357
7369
  onValueHovered: (index: string) => void;
7358
7370
  }
7359
- declare class TextValueProvider extends Component<Props$I> {
7371
+ declare class TextValueProvider extends Component<Props$K> {
7360
7372
  static template: string;
7361
7373
  static props: {
7362
7374
  proposals: ArrayConstructor;
@@ -7570,7 +7582,7 @@ declare class ContentEditableHelper {
7570
7582
  getText(): string;
7571
7583
  }
7572
7584
 
7573
- interface Props$H {
7585
+ interface Props$J {
7574
7586
  functionName: string;
7575
7587
  functionDescription: FunctionDescription;
7576
7588
  argToFocus: number;
@@ -7578,7 +7590,7 @@ interface Props$H {
7578
7590
  interface AssistantState {
7579
7591
  allowCellSelectionBehind: boolean;
7580
7592
  }
7581
- declare class FunctionDescriptionProvider extends Component<Props$H, SpreadsheetChildEnv> {
7593
+ declare class FunctionDescriptionProvider extends Component<Props$J, SpreadsheetChildEnv> {
7582
7594
  static template: string;
7583
7595
  static props: {
7584
7596
  functionName: StringConstructor;
@@ -7588,7 +7600,7 @@ declare class FunctionDescriptionProvider extends Component<Props$H, Spreadsheet
7588
7600
  assistantState: AssistantState;
7589
7601
  private timeOutId;
7590
7602
  setup(): void;
7591
- getContext(): Props$H;
7603
+ getContext(): Props$J;
7592
7604
  onMouseMove(): void;
7593
7605
  get formulaArgSeparator(): string;
7594
7606
  }
@@ -7779,10 +7791,10 @@ interface AutoCompleteProviderDefinition {
7779
7791
 
7780
7792
  declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
7781
7793
 
7782
- interface Props$G {
7794
+ interface Props$I {
7783
7795
  figure: Figure;
7784
7796
  }
7785
- declare class ChartJsComponent extends Component<Props$G, SpreadsheetChildEnv> {
7797
+ declare class ChartJsComponent extends Component<Props$I, SpreadsheetChildEnv> {
7786
7798
  static template: string;
7787
7799
  static props: {
7788
7800
  figure: ObjectConstructor;
@@ -7798,22 +7810,23 @@ declare class ChartJsComponent extends Component<Props$G, SpreadsheetChildEnv> {
7798
7810
  private updateChartJs;
7799
7811
  }
7800
7812
 
7801
- interface Props$F {
7813
+ interface Props$H {
7802
7814
  figure: Figure;
7803
7815
  }
7804
- declare class ScorecardChart extends Component<Props$F, SpreadsheetChildEnv> {
7816
+ declare class ScorecardChart extends Component<Props$H, SpreadsheetChildEnv> {
7805
7817
  static template: string;
7806
7818
  static props: {
7807
7819
  figure: ObjectConstructor;
7808
7820
  };
7809
7821
  private canvas;
7810
7822
  get runtime(): ScorecardChartRuntime;
7823
+ get title(): string;
7811
7824
  setup(): void;
7812
7825
  private createChart;
7813
7826
  }
7814
7827
 
7815
7828
  type MenuItemOrSeparator = Action | "separator";
7816
- interface Props$E {
7829
+ interface Props$G {
7817
7830
  position: DOMCoordinates;
7818
7831
  menuItems: Action[];
7819
7832
  depth: number;
@@ -7831,7 +7844,7 @@ interface MenuState {
7831
7844
  menuItems: Action[];
7832
7845
  isHoveringChild?: boolean;
7833
7846
  }
7834
- declare class Menu extends Component<Props$E, SpreadsheetChildEnv> {
7847
+ declare class Menu extends Component<Props$G, SpreadsheetChildEnv> {
7835
7848
  static template: string;
7836
7849
  static props: {
7837
7850
  position: ObjectConstructor;
@@ -7901,14 +7914,14 @@ declare class Menu extends Component<Props$E, SpreadsheetChildEnv> {
7901
7914
  }
7902
7915
 
7903
7916
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
7904
- interface Props$D {
7917
+ interface Props$F {
7905
7918
  figure: Figure;
7906
7919
  style: string;
7907
7920
  onFigureDeleted: () => void;
7908
7921
  onMouseDown: (ev: MouseEvent) => void;
7909
7922
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
7910
7923
  }
7911
- declare class FigureComponent extends Component<Props$D, SpreadsheetChildEnv> {
7924
+ declare class FigureComponent extends Component<Props$F, SpreadsheetChildEnv> {
7912
7925
  static template: string;
7913
7926
  static props: {
7914
7927
  figure: ObjectConstructor;
@@ -7957,11 +7970,11 @@ declare class FigureComponent extends Component<Props$D, SpreadsheetChildEnv> {
7957
7970
  private openContextMenu;
7958
7971
  }
7959
7972
 
7960
- interface Props$C {
7973
+ interface Props$E {
7961
7974
  figure: Figure;
7962
7975
  onFigureDeleted: () => void;
7963
7976
  }
7964
- declare class ChartFigure extends Component<Props$C, SpreadsheetChildEnv> {
7977
+ declare class ChartFigure extends Component<Props$E, SpreadsheetChildEnv> {
7965
7978
  static template: string;
7966
7979
  static props: {
7967
7980
  figure: ObjectConstructor;
@@ -7973,7 +7986,7 @@ declare class ChartFigure extends Component<Props$C, SpreadsheetChildEnv> {
7973
7986
  get chartComponent(): new (...args: any) => Component;
7974
7987
  }
7975
7988
 
7976
- interface Props$B {
7989
+ interface Props$D {
7977
7990
  isVisible: boolean;
7978
7991
  position: Position;
7979
7992
  }
@@ -7985,7 +7998,7 @@ interface State$8 {
7985
7998
  position: Position;
7986
7999
  handler: boolean;
7987
8000
  }
7988
- declare class Autofill extends Component<Props$B, SpreadsheetChildEnv> {
8001
+ declare class Autofill extends Component<Props$D, SpreadsheetChildEnv> {
7989
8002
  static template: string;
7990
8003
  static props: {
7991
8004
  position: ObjectConstructor;
@@ -8019,7 +8032,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
8019
8032
  get tagStyle(): string;
8020
8033
  }
8021
8034
 
8022
- interface Props$A {
8035
+ interface Props$C {
8023
8036
  gridDims: DOMDimension;
8024
8037
  onInputContextMenu: (event: MouseEvent) => void;
8025
8038
  }
@@ -8027,7 +8040,7 @@ interface Props$A {
8027
8040
  * This component is a composer which positions itself on the grid at the anchor cell.
8028
8041
  * It also applies the style of the cell to the composer input.
8029
8042
  */
8030
- declare class GridComposer extends Component<Props$A, SpreadsheetChildEnv> {
8043
+ declare class GridComposer extends Component<Props$C, SpreadsheetChildEnv> {
8031
8044
  static template: string;
8032
8045
  static props: {
8033
8046
  gridDims: ObjectConstructor;
@@ -8084,10 +8097,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
8084
8097
  isPositionVisible(position: CellPosition): boolean;
8085
8098
  }
8086
8099
 
8087
- interface Props$z {
8100
+ interface Props$B {
8088
8101
  cellPosition: CellPosition;
8089
8102
  }
8090
- declare class DataValidationCheckbox extends Component<Props$z, SpreadsheetChildEnv> {
8103
+ declare class DataValidationCheckbox extends Component<Props$B, SpreadsheetChildEnv> {
8091
8104
  static template: string;
8092
8105
  static props: {
8093
8106
  cellPosition: ObjectConstructor;
@@ -8097,10 +8110,10 @@ declare class DataValidationCheckbox extends Component<Props$z, SpreadsheetChild
8097
8110
  get isDisabled(): boolean;
8098
8111
  }
8099
8112
 
8100
- interface Props$y {
8113
+ interface Props$A {
8101
8114
  cellPosition: CellPosition;
8102
8115
  }
8103
- declare class DataValidationListIcon extends Component<Props$y, SpreadsheetChildEnv> {
8116
+ declare class DataValidationListIcon extends Component<Props$A, SpreadsheetChildEnv> {
8104
8117
  static template: string;
8105
8118
  static props: {
8106
8119
  cellPosition: ObjectConstructor;
@@ -8130,7 +8143,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
8130
8143
  }
8131
8144
 
8132
8145
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
8133
- interface Props$x {
8146
+ interface Props$z {
8134
8147
  onFigureDeleted: () => void;
8135
8148
  }
8136
8149
  interface Container {
@@ -8209,7 +8222,7 @@ interface DndState {
8209
8222
  * that occurred during the drag & drop, and to position the figure on the correct pane.
8210
8223
  *
8211
8224
  */
8212
- declare class FiguresContainer extends Component<Props$x, SpreadsheetChildEnv> {
8225
+ declare class FiguresContainer extends Component<Props$z, SpreadsheetChildEnv> {
8213
8226
  static template: string;
8214
8227
  static props: {
8215
8228
  onFigureDeleted: FunctionConstructor;
@@ -8264,10 +8277,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
8264
8277
  private computePopoverAnchorRect;
8265
8278
  }
8266
8279
 
8267
- interface Props$w {
8280
+ interface Props$y {
8268
8281
  cellPosition: CellPosition;
8269
8282
  }
8270
- declare class FilterIcon extends Component<Props$w, SpreadsheetChildEnv> {
8283
+ declare class FilterIcon extends Component<Props$y, SpreadsheetChildEnv> {
8271
8284
  static template: string;
8272
8285
  static props: {
8273
8286
  cellPosition: ObjectConstructor;
@@ -8289,10 +8302,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
8289
8302
  getFilterHeadersPositions(): CellPosition[];
8290
8303
  }
8291
8304
 
8292
- interface Props$v {
8305
+ interface Props$x {
8293
8306
  focusGrid: () => void;
8294
8307
  }
8295
- declare class GridAddRowsFooter extends Component<Props$v, SpreadsheetChildEnv> {
8308
+ declare class GridAddRowsFooter extends Component<Props$x, SpreadsheetChildEnv> {
8296
8309
  static template: string;
8297
8310
  static props: {
8298
8311
  focusGrid: FunctionConstructor;
@@ -8316,7 +8329,7 @@ declare class GridAddRowsFooter extends Component<Props$v, SpreadsheetChildEnv>
8316
8329
  private onExternalClick;
8317
8330
  }
8318
8331
 
8319
- interface Props$u {
8332
+ interface Props$w {
8320
8333
  onCellHovered: (position: Partial<Position$1>) => void;
8321
8334
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
8322
8335
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
@@ -8326,7 +8339,7 @@ interface Props$u {
8326
8339
  gridOverlayDimensions: string;
8327
8340
  onFigureDeleted: () => void;
8328
8341
  }
8329
- declare class GridOverlay extends Component<Props$u, SpreadsheetChildEnv> {
8342
+ declare class GridOverlay extends Component<Props$w, SpreadsheetChildEnv> {
8330
8343
  static template: string;
8331
8344
  static props: {
8332
8345
  onCellHovered: {
@@ -8383,12 +8396,12 @@ declare class GridOverlay extends Component<Props$u, SpreadsheetChildEnv> {
8383
8396
  private getCartesianCoordinates;
8384
8397
  }
8385
8398
 
8386
- interface Props$t {
8399
+ interface Props$v {
8387
8400
  gridRect: Rect;
8388
8401
  onClosePopover: () => void;
8389
8402
  onMouseWheel: (ev: WheelEvent) => void;
8390
8403
  }
8391
- declare class GridPopover extends Component<Props$t, SpreadsheetChildEnv> {
8404
+ declare class GridPopover extends Component<Props$v, SpreadsheetChildEnv> {
8392
8405
  static template: string;
8393
8406
  static props: {
8394
8407
  onClosePopover: FunctionConstructor;
@@ -8531,13 +8544,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
8531
8544
  }
8532
8545
 
8533
8546
  type Orientation$1 = "n" | "s" | "w" | "e";
8534
- interface Props$s {
8547
+ interface Props$u {
8535
8548
  zone: Zone;
8536
8549
  orientation: Orientation$1;
8537
8550
  isMoving: boolean;
8538
8551
  onMoveHighlight: (x: Pixel, y: Pixel) => void;
8539
8552
  }
8540
- declare class Border extends Component<Props$s, SpreadsheetChildEnv> {
8553
+ declare class Border extends Component<Props$u, SpreadsheetChildEnv> {
8541
8554
  static template: string;
8542
8555
  static props: {
8543
8556
  zone: ObjectConstructor;
@@ -8550,14 +8563,14 @@ declare class Border extends Component<Props$s, SpreadsheetChildEnv> {
8550
8563
  }
8551
8564
 
8552
8565
  type Orientation = "nw" | "ne" | "sw" | "se";
8553
- interface Props$r {
8566
+ interface Props$t {
8554
8567
  zone: Zone;
8555
8568
  color: Color;
8556
8569
  orientation: Orientation;
8557
8570
  isResizing: boolean;
8558
8571
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
8559
8572
  }
8560
- declare class Corner extends Component<Props$r, SpreadsheetChildEnv> {
8573
+ declare class Corner extends Component<Props$t, SpreadsheetChildEnv> {
8561
8574
  static template: string;
8562
8575
  static props: {
8563
8576
  zone: ObjectConstructor;
@@ -8572,14 +8585,14 @@ declare class Corner extends Component<Props$r, SpreadsheetChildEnv> {
8572
8585
  onMouseDown(ev: MouseEvent): void;
8573
8586
  }
8574
8587
 
8575
- interface Props$q {
8588
+ interface Props$s {
8576
8589
  zone: Zone;
8577
8590
  color: Color;
8578
8591
  }
8579
8592
  interface HighlightState {
8580
8593
  shiftingMode: "isMoving" | "isResizing" | "none";
8581
8594
  }
8582
- declare class Highlight extends Component<Props$q, SpreadsheetChildEnv> {
8595
+ declare class Highlight extends Component<Props$s, SpreadsheetChildEnv> {
8583
8596
  static template: string;
8584
8597
  static props: {
8585
8598
  zone: ObjectConstructor;
@@ -8596,7 +8609,7 @@ declare class Highlight extends Component<Props$q, SpreadsheetChildEnv> {
8596
8609
 
8597
8610
  type ScrollDirection = "horizontal" | "vertical";
8598
8611
 
8599
- interface Props$p {
8612
+ interface Props$r {
8600
8613
  width: Pixel;
8601
8614
  height: Pixel;
8602
8615
  direction: ScrollDirection;
@@ -8604,7 +8617,7 @@ interface Props$p {
8604
8617
  offset: Pixel;
8605
8618
  onScroll: (offset: Pixel) => void;
8606
8619
  }
8607
- declare class ScrollBar extends Component<Props$p> {
8620
+ declare class ScrollBar extends Component<Props$r> {
8608
8621
  static props: {
8609
8622
  width: {
8610
8623
  type: NumberConstructor;
@@ -8632,10 +8645,10 @@ declare class ScrollBar extends Component<Props$p> {
8632
8645
  onScroll(ev: any): void;
8633
8646
  }
8634
8647
 
8635
- interface Props$o {
8648
+ interface Props$q {
8636
8649
  leftOffset: number;
8637
8650
  }
8638
- declare class HorizontalScrollBar extends Component<Props$o, SpreadsheetChildEnv> {
8651
+ declare class HorizontalScrollBar extends Component<Props$q, SpreadsheetChildEnv> {
8639
8652
  static props: {
8640
8653
  leftOffset: {
8641
8654
  type: NumberConstructor;
@@ -8661,10 +8674,10 @@ declare class HorizontalScrollBar extends Component<Props$o, SpreadsheetChildEnv
8661
8674
  onScroll(offset: any): void;
8662
8675
  }
8663
8676
 
8664
- interface Props$n {
8677
+ interface Props$p {
8665
8678
  topOffset: number;
8666
8679
  }
8667
- declare class VerticalScrollBar extends Component<Props$n, SpreadsheetChildEnv> {
8680
+ declare class VerticalScrollBar extends Component<Props$p, SpreadsheetChildEnv> {
8668
8681
  static props: {
8669
8682
  topOffset: {
8670
8683
  type: NumberConstructor;
@@ -8690,13 +8703,13 @@ declare class VerticalScrollBar extends Component<Props$n, SpreadsheetChildEnv>
8690
8703
  onScroll(offset: any): void;
8691
8704
  }
8692
8705
 
8693
- interface Props$m {
8706
+ interface Props$o {
8694
8707
  table: Table;
8695
8708
  }
8696
8709
  interface State$7 {
8697
8710
  highlightZone: Zone | undefined;
8698
8711
  }
8699
- declare class TableResizer extends Component<Props$m, SpreadsheetChildEnv> {
8712
+ declare class TableResizer extends Component<Props$o, SpreadsheetChildEnv> {
8700
8713
  static template: string;
8701
8714
  static props: {
8702
8715
  table: ObjectConstructor;
@@ -8728,10 +8741,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
8728
8741
  * - a vertical resizer (same, for rows)
8729
8742
  */
8730
8743
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
8731
- interface Props$l {
8744
+ interface Props$n {
8732
8745
  exposeFocus: (focus: () => void) => void;
8733
8746
  }
8734
- declare class Grid extends Component<Props$l, SpreadsheetChildEnv> {
8747
+ declare class Grid extends Component<Props$n, SpreadsheetChildEnv> {
8735
8748
  static template: string;
8736
8749
  static props: {
8737
8750
  exposeFocus: FunctionConstructor;
@@ -8840,11 +8853,11 @@ declare class MainChartPanelStore extends SpreadsheetStore {
8840
8853
  changeChartType(figureId: UID, type: ChartType): void;
8841
8854
  }
8842
8855
 
8843
- interface Props$k {
8856
+ interface Props$m {
8844
8857
  onCloseSidePanel: () => void;
8845
8858
  figureId: UID;
8846
8859
  }
8847
- declare class ChartPanel extends Component<Props$k, SpreadsheetChildEnv> {
8860
+ declare class ChartPanel extends Component<Props$m, SpreadsheetChildEnv> {
8848
8861
  static template: string;
8849
8862
  static components: {
8850
8863
  Section: typeof Section;
@@ -8864,13 +8877,13 @@ declare class ChartPanel extends Component<Props$k, SpreadsheetChildEnv> {
8864
8877
  get chartTypes(): Record<string, string>;
8865
8878
  }
8866
8879
 
8867
- interface Props$j {
8880
+ interface Props$l {
8868
8881
  figureId: UID;
8869
8882
  definition: PieChartDefinition;
8870
8883
  canUpdateChart: (figureID: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
8871
8884
  updateChart: (figureId: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
8872
8885
  }
8873
- declare class PieChartDesignPanel extends Component<Props$j, SpreadsheetChildEnv> {
8886
+ declare class PieChartDesignPanel extends Component<Props$l, SpreadsheetChildEnv> {
8874
8887
  static template: string;
8875
8888
  static components: {
8876
8889
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8888,6 +8901,37 @@ declare class PieChartDesignPanel extends Component<Props$j, SpreadsheetChildEnv
8888
8901
  updateLegendPosition(ev: any): void;
8889
8902
  }
8890
8903
 
8904
+ interface CogWheelMenuItem {
8905
+ name: string;
8906
+ icon?: string;
8907
+ onClick: () => void;
8908
+ }
8909
+ interface Props$k {
8910
+ items: CogWheelMenuItem[];
8911
+ }
8912
+ declare class CogWheelMenu extends Component<Props$k, SpreadsheetChildEnv> {
8913
+ static template: string;
8914
+ static components: {
8915
+ Popover: typeof Popover;
8916
+ };
8917
+ static props: {
8918
+ items: ArrayConstructor;
8919
+ };
8920
+ private buttonRef;
8921
+ private popover;
8922
+ setup(): void;
8923
+ get popoverProps(): {
8924
+ anchorRect: {
8925
+ x: number;
8926
+ y: number;
8927
+ width: number;
8928
+ height: number;
8929
+ };
8930
+ positioning: string;
8931
+ };
8932
+ togglePopover(): void;
8933
+ }
8934
+
8891
8935
  declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightProvider {
8892
8936
  mutators: readonly ["updateSearchOptions", "updateSearchContent", "searchFormulas", "selectPreviousMatch", "selectNextMatch", "replace"];
8893
8937
  private allSheetsMatches;
@@ -8952,12 +8996,12 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
8952
8996
 
8953
8997
  /** @odoo-module */
8954
8998
 
8955
- interface Props$i {
8999
+ interface Props$j {
8956
9000
  name: string;
8957
9001
  displayName: string;
8958
9002
  onChanged: (name: string) => void;
8959
9003
  }
8960
- declare class EditableName extends Component<Props$i, SpreadsheetChildEnv> {
9004
+ declare class EditableName extends Component<Props$j, SpreadsheetChildEnv> {
8961
9005
  static template: string;
8962
9006
  static props: {
8963
9007
  name: StringConstructor;
@@ -8970,14 +9014,14 @@ declare class EditableName extends Component<Props$i, SpreadsheetChildEnv> {
8970
9014
  save(): void;
8971
9015
  }
8972
9016
 
8973
- interface Props$h {
9017
+ interface Props$i {
8974
9018
  deferUpdate: boolean;
8975
9019
  isDirty: boolean;
8976
9020
  toggleDeferUpdate: (value: boolean) => void;
8977
9021
  discard: () => void;
8978
9022
  apply: () => void;
8979
9023
  }
8980
- declare class PivotDeferUpdate extends Component<Props$h, SpreadsheetChildEnv> {
9024
+ declare class PivotDeferUpdate extends Component<Props$i, SpreadsheetChildEnv> {
8981
9025
  static template: string;
8982
9026
  static props: {
8983
9027
  deferUpdate: BooleanConstructor;
@@ -8994,11 +9038,11 @@ declare class PivotDeferUpdate extends Component<Props$h, SpreadsheetChildEnv> {
8994
9038
  get deferUpdatesTooltip(): string;
8995
9039
  }
8996
9040
 
8997
- interface Props$g {
9041
+ interface Props$h {
8998
9042
  onFieldPicked: (field: string) => void;
8999
9043
  fields: PivotField[];
9000
9044
  }
9001
- declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv> {
9045
+ declare class AddDimensionButton extends Component<Props$h, SpreadsheetChildEnv> {
9002
9046
  static template: string;
9003
9047
  static components: {
9004
9048
  Popover: typeof Popover;
@@ -9030,11 +9074,11 @@ declare class AddDimensionButton extends Component<Props$g, SpreadsheetChildEnv>
9030
9074
  onKeyDown(ev: KeyboardEvent): void;
9031
9075
  }
9032
9076
 
9033
- interface Props$f {
9077
+ interface Props$g {
9034
9078
  dimension: PivotDimension;
9035
9079
  onRemoved: (dimension: PivotDimension) => void;
9036
9080
  }
9037
- declare class PivotDimension extends Component<Props$f, SpreadsheetChildEnv> {
9081
+ declare class PivotDimension extends Component<Props$g, SpreadsheetChildEnv> {
9038
9082
  static template: string;
9039
9083
  static props: {
9040
9084
  dimension: ObjectConstructor;
@@ -9049,13 +9093,13 @@ declare class PivotDimension extends Component<Props$f, SpreadsheetChildEnv> {
9049
9093
  };
9050
9094
  }
9051
9095
 
9052
- interface Props$e {
9096
+ interface Props$f {
9053
9097
  dimension: PivotDimension$1;
9054
9098
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
9055
9099
  availableGranularities: Set<string>;
9056
9100
  allGranularities: string[];
9057
9101
  }
9058
- declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetChildEnv> {
9102
+ declare class PivotDimensionGranularity extends Component<Props$f, SpreadsheetChildEnv> {
9059
9103
  static template: string;
9060
9104
  static props: {
9061
9105
  dimension: ObjectConstructor;
@@ -9077,11 +9121,11 @@ declare class PivotDimensionGranularity extends Component<Props$e, SpreadsheetCh
9077
9121
  };
9078
9122
  }
9079
9123
 
9080
- interface Props$d {
9124
+ interface Props$e {
9081
9125
  dimension: PivotDimension$1;
9082
9126
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
9083
9127
  }
9084
- declare class PivotDimensionOrder extends Component<Props$d, SpreadsheetChildEnv> {
9128
+ declare class PivotDimensionOrder extends Component<Props$e, SpreadsheetChildEnv> {
9085
9129
  static template: string;
9086
9130
  static props: {
9087
9131
  dimension: ObjectConstructor;
@@ -9108,8 +9152,14 @@ declare function parseDimension(dimension: string): PivotCoreDimension;
9108
9152
  declare function isDateField(field: PivotField): boolean;
9109
9153
  declare function toPivotDomain(domainStr: string[]): PivotDomain;
9110
9154
  declare function flatPivotDomain(domain: PivotDomain): (string | number | boolean)[];
9155
+ /**
9156
+ * Parses the value defining a pivot group in a PIVOT formula
9157
+ * e.g. given the following formula PIVOT.VALUE("1", "stage_id", "42", "status", "won"),
9158
+ * the two group values are "42" and "won".
9159
+ */
9160
+ declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: any): CellValue;
9111
9161
 
9112
- interface Props$c {
9162
+ interface Props$d {
9113
9163
  definition: PivotRuntimeDefinition;
9114
9164
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
9115
9165
  unusedGroupableFields: PivotField[];
@@ -9117,7 +9167,7 @@ interface Props$c {
9117
9167
  unusedDateTimeGranularities: Record<string, Set<string>>;
9118
9168
  allGranularities: string[];
9119
9169
  }
9120
- declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChildEnv> {
9170
+ declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChildEnv> {
9121
9171
  static template: string;
9122
9172
  static components: {
9123
9173
  AddDimensionButton: typeof AddDimensionButton;
@@ -9157,7 +9207,7 @@ declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChil
9157
9207
 
9158
9208
  declare class PivotSidePanelStore extends SpreadsheetStore {
9159
9209
  private pivotId;
9160
- mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "renamePivot", "update"];
9210
+ mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "update"];
9161
9211
  private updatesAreDeferred;
9162
9212
  private draft;
9163
9213
  constructor(get: Get, pivotId: UID);
@@ -9174,12 +9224,36 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
9174
9224
  deferUpdates(shouldDefer: boolean): void;
9175
9225
  applyUpdate(): void;
9176
9226
  discardPendingUpdate(): void;
9177
- renamePivot(name: string): void;
9178
9227
  update(definitionUpdate: Partial<PivotCoreDefinition>): void;
9179
9228
  private addDefaultDateTimeGranularity;
9180
9229
  private getUnusedDateTimeGranularities;
9181
9230
  }
9182
9231
 
9232
+ interface Props$c {
9233
+ pivotId: UID;
9234
+ }
9235
+ declare class PivotTitleSection extends Component<Props$c, SpreadsheetChildEnv> {
9236
+ static template: string;
9237
+ static components: {
9238
+ CogWheelMenu: typeof CogWheelMenu;
9239
+ Section: typeof Section;
9240
+ EditableName: typeof EditableName;
9241
+ };
9242
+ static props: {
9243
+ pivotId: StringConstructor;
9244
+ };
9245
+ get cogWheelMenuItems(): {
9246
+ name: string;
9247
+ icon: string;
9248
+ onClick: () => void;
9249
+ }[];
9250
+ get name(): string;
9251
+ get displayName(): string;
9252
+ duplicatePivot(): void;
9253
+ delete(): void;
9254
+ onNameChanged(name: string): void;
9255
+ }
9256
+
9183
9257
  declare function isEvaluationError(error: Maybe<CellValue>): error is string;
9184
9258
  declare function toNumber(data: FPayload | CellValue | undefined, locale: Locale): number;
9185
9259
  declare function toString(data: FPayload | CellValue | undefined): string;
@@ -9272,7 +9346,7 @@ declare function getNumberOfPivotFunctions(tokens: Token[]): number;
9272
9346
 
9273
9347
  declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
9274
9348
 
9275
- declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<string | number | false>;
9349
+ declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<CellValue>;
9276
9350
 
9277
9351
  /**
9278
9352
  * This function tries to load anything that could look like a valid
@@ -11169,9 +11243,10 @@ declare const registries: {
11169
11243
  }>;
11170
11244
  };
11171
11245
  pivotRegistry: Registry<PivotRegistryItem>;
11172
- pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<string | number | false>>;
11246
+ pivotTimeAdapterRegistry: Registry<PivotTimeAdapter<CellValue>>;
11173
11247
  pivotSidePanelRegistry: Registry<PivotRegistryItem$1>;
11174
- supportedPivotExplodedFormulaRegistry: Registry<boolean>;
11248
+ pivotNormalizationValueRegistry: Registry<(value: string, granularity?: string | undefined) => CellValue>;
11249
+ supportedPivotPositionalFormulaRegistry: Registry<boolean>;
11175
11250
  };
11176
11251
  declare const helpers: {
11177
11252
  arg: typeof arg;
@@ -11180,6 +11255,7 @@ declare const helpers: {
11180
11255
  toJsDate: typeof toJsDate;
11181
11256
  toNumber: typeof toNumber;
11182
11257
  toString: typeof toString;
11258
+ toNormalizedPivotValue: typeof toNormalizedPivotValue;
11183
11259
  toXC: typeof toXC;
11184
11260
  toZone: typeof toZone;
11185
11261
  toUnboundedZone: typeof toUnboundedZone;
@@ -11275,6 +11351,8 @@ declare const components: {
11275
11351
  PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
11276
11352
  EditableName: typeof EditableName;
11277
11353
  PivotDeferUpdate: typeof PivotDeferUpdate;
11354
+ PivotTitleSection: typeof PivotTitleSection;
11355
+ CogWheelMenu: typeof CogWheelMenu;
11278
11356
  };
11279
11357
  declare const hooks: {
11280
11358
  useDragAndDropListItems: typeof useDragAndDropListItems;