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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -562,25 +562,31 @@ interface PivotTableData {
562
562
  cols: PivotTableColumn[][];
563
563
  rows: PivotTableRow[];
564
564
  measures: string[];
565
- rowTitle?: string;
566
565
  }
567
- interface PivotTableCell {
568
- isHeader: boolean;
569
- domain?: string[];
570
- content?: string;
571
- measure?: string;
566
+ interface PivotHeaderCell {
567
+ type: "HEADER";
568
+ domain: PivotDomain;
569
+ }
570
+ interface PivotValueCell {
571
+ type: "VALUE";
572
+ domain: PivotDomain;
573
+ measure: string;
574
+ }
575
+ interface PivotEmptyCell {
576
+ type: "EMPTY";
572
577
  }
578
+ type PivotTableCell = PivotHeaderCell | PivotValueCell | PivotEmptyCell;
573
579
  interface PivotTimeAdapter<T> {
574
580
  normalizeFunctionValue: (value: string) => T;
575
581
  formatValue: (normalizedValue: T, locale?: Locale) => string;
576
582
  getFormat: (locale?: Locale) => Format | undefined;
577
583
  toCellValue: (normalizedValue: T) => CellValue;
578
584
  }
579
- interface DomainArg {
585
+ interface PivotNode {
580
586
  field: string;
581
- value: string;
587
+ value: string | number | boolean;
582
588
  }
583
- type StringDomainArgs = string[];
589
+ type PivotDomain = PivotNode[];
584
590
 
585
591
  interface Table {
586
592
  readonly id: TableId;
@@ -4194,12 +4200,11 @@ declare class SpreadsheetPivotTable {
4194
4200
  readonly columns: PivotTableColumn[][];
4195
4201
  readonly rows: PivotTableRow[];
4196
4202
  readonly measures: string[];
4197
- readonly rowTitle?: string;
4198
4203
  readonly maxIndent: number;
4199
4204
  readonly pivotCells: {
4200
4205
  [key: string]: PivotTableCell[][];
4201
4206
  };
4202
- constructor(columns: PivotTableColumn[][], rows: PivotTableRow[], measures: string[], rowTitle?: string);
4207
+ constructor(columns: PivotTableColumn[][], rows: PivotTableRow[], measures: string[]);
4203
4208
  /**
4204
4209
  * Get the number of columns leafs (i.e. the number of the last row of columns)
4205
4210
  */
@@ -4215,7 +4220,6 @@ declare class SpreadsheetPivotTable {
4215
4220
  cols: PivotTableColumn[][];
4216
4221
  rows: PivotTableRow[];
4217
4222
  measures: string[];
4218
- rowTitle: string | undefined;
4219
4223
  };
4220
4224
  }
4221
4225
 
@@ -4229,8 +4233,9 @@ interface Pivot<T = PivotRuntimeDefinition> {
4229
4233
  isValid(): boolean;
4230
4234
  getTableStructure(): SpreadsheetPivotTable;
4231
4235
  getFields(): PivotFields | undefined;
4232
- getPivotHeaderValueAndFormat(domain: StringDomainArgs): FPayload;
4233
- getPivotCellValueAndFormat(measure: string, domain: StringDomainArgs): FPayload;
4236
+ getPivotHeaderValueAndFormat(domain: PivotDomain): FPayload;
4237
+ getPivotCellValueAndFormat(measure: string, domain: PivotDomain): FPayload;
4238
+ getPivotMeasureValue(measure: string, domain: PivotDomain): FPayload;
4234
4239
  getMeasure: (name: string) => PivotMeasure;
4235
4240
  assertIsValid({ throwOnError }: {
4236
4241
  throwOnError: boolean;
@@ -4272,7 +4277,10 @@ declare class PivotUIPlugin extends UIPlugin {
4272
4277
  * If the cell is the result of PIVOT, the result is the domain of the cell
4273
4278
  * as if it was the individual pivot formula
4274
4279
  */
4275
- getPivotDomainArgsFromPosition(position: CellPosition): (CellValue | Matrix<CellValue> | undefined)[] | undefined;
4280
+ getPivotDomainArgsFromPosition(position: CellPosition): {
4281
+ domainArgs: PivotDomain;
4282
+ isHeader?: boolean;
4283
+ } | undefined;
4276
4284
  getPivot(pivotId: UID): Pivot<PivotRuntimeDefinition>;
4277
4285
  isPivotUnused(pivotId: UID): boolean;
4278
4286
  /**
@@ -4280,7 +4288,7 @@ declare class PivotUIPlugin extends UIPlugin {
4280
4288
  * a pivot function are valid according to the pivot definition.
4281
4289
  * e.g. =PIVOT.VALUE(1,"revenue","country_id",...,"create_date:month",...,"source_id",...)
4282
4290
  */
4283
- areDomainArgsFieldsValid(pivotId: UID, domainArgs: string[]): boolean;
4291
+ areDomainArgsFieldsValid(pivotId: UID, domain: PivotDomain): boolean;
4284
4292
  /**
4285
4293
  * Refresh the cache of a pivot
4286
4294
  */
@@ -6246,7 +6254,7 @@ interface ChartBuilder {
6246
6254
  sequence: number;
6247
6255
  }
6248
6256
 
6249
- interface Props$Z {
6257
+ interface Props$_ {
6250
6258
  label?: string;
6251
6259
  value: boolean;
6252
6260
  className?: string;
@@ -6255,7 +6263,7 @@ interface Props$Z {
6255
6263
  disabled?: boolean;
6256
6264
  onChange: (value: boolean) => void;
6257
6265
  }
6258
- declare class Checkbox extends Component<Props$Z, SpreadsheetChildEnv> {
6266
+ declare class Checkbox extends Component<Props$_, SpreadsheetChildEnv> {
6259
6267
  static template: string;
6260
6268
  static props: {
6261
6269
  label: {
@@ -6290,10 +6298,10 @@ declare class Checkbox extends Component<Props$Z, SpreadsheetChildEnv> {
6290
6298
  onChange(ev: InputEvent): void;
6291
6299
  }
6292
6300
 
6293
- interface Props$Y {
6301
+ interface Props$Z {
6294
6302
  class?: string;
6295
6303
  }
6296
- declare class Section extends Component<Props$Y, SpreadsheetChildEnv> {
6304
+ declare class Section extends Component<Props$Z, SpreadsheetChildEnv> {
6297
6305
  static template: string;
6298
6306
  static props: {
6299
6307
  class: {
@@ -6421,7 +6429,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
6421
6429
  getIndex(rangeId: number | null): number | null;
6422
6430
  }
6423
6431
 
6424
- interface Props$X {
6432
+ interface Props$Y {
6425
6433
  ranges: string[];
6426
6434
  hasSingleRange?: boolean;
6427
6435
  required?: boolean;
@@ -6444,7 +6452,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
6444
6452
  * onSelectionChanged is called every time the input value
6445
6453
  * changes.
6446
6454
  */
6447
- declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
6455
+ declare class SelectionInput extends Component<Props$Y, SpreadsheetChildEnv> {
6448
6456
  static template: string;
6449
6457
  static props: {
6450
6458
  ranges: ArrayConstructor;
@@ -6499,13 +6507,13 @@ declare class SelectionInput extends Component<Props$X, SpreadsheetChildEnv> {
6499
6507
  confirm(): void;
6500
6508
  }
6501
6509
 
6502
- interface Props$W {
6510
+ interface Props$X {
6503
6511
  ranges: CustomizedDataSet[];
6504
6512
  hasSingleRange?: boolean;
6505
6513
  onSelectionChanged: (ranges: string[]) => void;
6506
6514
  onSelectionConfirmed: () => void;
6507
6515
  }
6508
- declare class ChartDataSeries extends Component<Props$W, SpreadsheetChildEnv> {
6516
+ declare class ChartDataSeries extends Component<Props$X, SpreadsheetChildEnv> {
6509
6517
  static template: string;
6510
6518
  static components: {
6511
6519
  SelectionInput: typeof SelectionInput;
@@ -6525,11 +6533,11 @@ declare class ChartDataSeries extends Component<Props$W, SpreadsheetChildEnv> {
6525
6533
  get title(): string;
6526
6534
  }
6527
6535
 
6528
- interface Props$V {
6536
+ interface Props$W {
6529
6537
  messages: string[];
6530
6538
  msgType: "warning" | "error";
6531
6539
  }
6532
- declare class ValidationMessages extends Component<Props$V, SpreadsheetChildEnv> {
6540
+ declare class ValidationMessages extends Component<Props$W, SpreadsheetChildEnv> {
6533
6541
  static template: string;
6534
6542
  static props: {
6535
6543
  messages: ArrayConstructor;
@@ -6538,10 +6546,10 @@ declare class ValidationMessages extends Component<Props$V, SpreadsheetChildEnv>
6538
6546
  get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
6539
6547
  }
6540
6548
 
6541
- interface Props$U {
6549
+ interface Props$V {
6542
6550
  messages: string[];
6543
6551
  }
6544
- declare class ChartErrorSection extends Component<Props$U, SpreadsheetChildEnv> {
6552
+ declare class ChartErrorSection extends Component<Props$V, SpreadsheetChildEnv> {
6545
6553
  static template: string;
6546
6554
  static components: {
6547
6555
  Section: typeof Section;
@@ -6555,7 +6563,7 @@ declare class ChartErrorSection extends Component<Props$U, SpreadsheetChildEnv>
6555
6563
  };
6556
6564
  }
6557
6565
 
6558
- interface Props$T {
6566
+ interface Props$U {
6559
6567
  title?: string;
6560
6568
  range: string;
6561
6569
  isInvalid: boolean;
@@ -6569,7 +6577,7 @@ interface Props$T {
6569
6577
  onChange: (value: boolean) => void;
6570
6578
  }>;
6571
6579
  }
6572
- declare class ChartLabelRange extends Component<Props$T, SpreadsheetChildEnv> {
6580
+ declare class ChartLabelRange extends Component<Props$U, SpreadsheetChildEnv> {
6573
6581
  static template: string;
6574
6582
  static components: {
6575
6583
  SelectionInput: typeof SelectionInput;
@@ -6594,16 +6602,16 @@ declare class ChartLabelRange extends Component<Props$T, SpreadsheetChildEnv> {
6594
6602
  optional: boolean;
6595
6603
  };
6596
6604
  };
6597
- static defaultProps: Partial<Props$T>;
6605
+ static defaultProps: Partial<Props$U>;
6598
6606
  }
6599
6607
 
6600
- interface Props$S {
6608
+ interface Props$T {
6601
6609
  figureId: UID;
6602
6610
  definition: ChartWithAxisDefinition;
6603
6611
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
6604
6612
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
6605
6613
  }
6606
- declare class GenericChartConfigPanel extends Component<Props$S, SpreadsheetChildEnv> {
6614
+ declare class GenericChartConfigPanel extends Component<Props$T, SpreadsheetChildEnv> {
6607
6615
  static template: string;
6608
6616
  static components: {
6609
6617
  ChartDataSeries: typeof ChartDataSeries;
@@ -6817,7 +6825,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
6817
6825
  isSameColor(color1: Color, color2: Color): boolean;
6818
6826
  }
6819
6827
 
6820
- interface Props$R {
6828
+ interface Props$S {
6821
6829
  currentColor: string | undefined;
6822
6830
  toggleColorPicker: () => void;
6823
6831
  showColorPicker: boolean;
@@ -6828,7 +6836,7 @@ interface Props$R {
6828
6836
  dropdownMaxHeight?: Pixel;
6829
6837
  class?: string;
6830
6838
  }
6831
- declare class ColorPickerWidget extends Component<Props$R, SpreadsheetChildEnv> {
6839
+ declare class ColorPickerWidget extends Component<Props$S, SpreadsheetChildEnv> {
6832
6840
  static template: string;
6833
6841
  static props: {
6834
6842
  currentColor: {
@@ -6866,12 +6874,12 @@ declare class ColorPickerWidget extends Component<Props$R, SpreadsheetChildEnv>
6866
6874
  get colorPickerAnchorRect(): Rect;
6867
6875
  }
6868
6876
 
6869
- interface Props$Q {
6877
+ interface Props$R {
6870
6878
  currentColor?: string;
6871
6879
  onColorPicked: (color: string) => void;
6872
6880
  title?: string;
6873
6881
  }
6874
- declare class RoundColorPicker extends Component<Props$Q, SpreadsheetChildEnv> {
6882
+ declare class RoundColorPicker extends Component<Props$R, SpreadsheetChildEnv> {
6875
6883
  static template: string;
6876
6884
  static components: {
6877
6885
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -6901,7 +6909,7 @@ declare class RoundColorPicker extends Component<Props$Q, SpreadsheetChildEnv> {
6901
6909
  get buttonStyle(): string;
6902
6910
  }
6903
6911
 
6904
- interface Props$P {
6912
+ interface Props$Q {
6905
6913
  title: string;
6906
6914
  updateTitle: (title: string) => void;
6907
6915
  name?: string;
@@ -6911,7 +6919,7 @@ interface Props$P {
6911
6919
  updateColor?: (Color: any) => void;
6912
6920
  style: TitleDesign;
6913
6921
  }
6914
- declare class ChartTitle extends Component<Props$P, SpreadsheetChildEnv> {
6922
+ declare class ChartTitle extends Component<Props$Q, SpreadsheetChildEnv> {
6915
6923
  static template: string;
6916
6924
  static components: {
6917
6925
  Section: typeof Section;
@@ -6968,13 +6976,13 @@ interface AxisDefinition {
6968
6976
  id: string;
6969
6977
  name: string;
6970
6978
  }
6971
- interface Props$O {
6979
+ interface Props$P {
6972
6980
  figureId: UID;
6973
6981
  definition: ChartWithAxisDefinition | WaterfallChartDefinition;
6974
6982
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition | WaterfallChartDefinition>) => DispatchResult;
6975
6983
  axesList: AxisDefinition[];
6976
6984
  }
6977
- declare class AxisDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
6985
+ declare class AxisDesignEditor extends Component<Props$P, SpreadsheetChildEnv> {
6978
6986
  static template: string;
6979
6987
  static components: {
6980
6988
  Section: typeof Section;
@@ -6993,12 +7001,12 @@ declare class AxisDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
6993
7001
  updateAxisTitle(text: string): void;
6994
7002
  }
6995
7003
 
6996
- interface Props$N {
7004
+ interface Props$O {
6997
7005
  figureId: UID;
6998
7006
  definition: ChartDefinition;
6999
7007
  updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
7000
7008
  }
7001
- declare class GeneralDesignEditor extends Component<Props$N, SpreadsheetChildEnv> {
7009
+ declare class GeneralDesignEditor extends Component<Props$O, SpreadsheetChildEnv> {
7002
7010
  static template: string;
7003
7011
  static components: {
7004
7012
  RoundColorPicker: typeof RoundColorPicker;
@@ -7028,13 +7036,13 @@ declare class GeneralDesignEditor extends Component<Props$N, SpreadsheetChildEnv
7028
7036
  updateChartTitleAlignment(align: "left" | "center" | "right"): void;
7029
7037
  }
7030
7038
 
7031
- interface Props$M {
7039
+ interface Props$N {
7032
7040
  figureId: UID;
7033
7041
  definition: ChartWithAxisDefinition;
7034
7042
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
7035
7043
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
7036
7044
  }
7037
- declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChildEnv> {
7045
+ declare class ChartWithAxisDesignPanel extends Component<Props$N, SpreadsheetChildEnv> {
7038
7046
  static template: string;
7039
7047
  static components: {
7040
7048
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7056,13 +7064,13 @@ declare class ChartWithAxisDesignPanel extends Component<Props$M, SpreadsheetChi
7056
7064
  getDataSerieLabel(): string | undefined;
7057
7065
  }
7058
7066
 
7059
- interface Props$L {
7067
+ interface Props$M {
7060
7068
  figureId: UID;
7061
7069
  definition: GaugeChartDefinition;
7062
7070
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7063
7071
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7064
7072
  }
7065
- declare class GaugeChartConfigPanel extends Component<Props$L, SpreadsheetChildEnv> {
7073
+ declare class GaugeChartConfigPanel extends Component<Props$M, SpreadsheetChildEnv> {
7066
7074
  static template: string;
7067
7075
  static components: {
7068
7076
  ChartErrorSection: typeof ChartErrorSection;
@@ -7087,13 +7095,13 @@ interface PanelState {
7087
7095
  sectionRuleDispatchResult?: DispatchResult;
7088
7096
  sectionRule: SectionRule;
7089
7097
  }
7090
- interface Props$K {
7098
+ interface Props$L {
7091
7099
  figureId: UID;
7092
7100
  definition: GaugeChartDefinition;
7093
7101
  canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7094
7102
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7095
7103
  }
7096
- declare class GaugeChartDesignPanel extends Component<Props$K, SpreadsheetChildEnv> {
7104
+ declare class GaugeChartDesignPanel extends Component<Props$L, SpreadsheetChildEnv> {
7097
7105
  static template: string;
7098
7106
  static components: {
7099
7107
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -7143,13 +7151,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
7143
7151
  onUpdateCumulative(cumulative: boolean): void;
7144
7152
  }
7145
7153
 
7146
- interface Props$J {
7154
+ interface Props$K {
7147
7155
  figureId: UID;
7148
7156
  definition: ScorecardChartDefinition;
7149
7157
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7150
7158
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7151
7159
  }
7152
- declare class ScorecardChartConfigPanel extends Component<Props$J, SpreadsheetChildEnv> {
7160
+ declare class ScorecardChartConfigPanel extends Component<Props$K, SpreadsheetChildEnv> {
7153
7161
  static template: string;
7154
7162
  static components: {
7155
7163
  SelectionInput: typeof SelectionInput;
@@ -7178,13 +7186,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$J, SpreadsheetCh
7178
7186
  }
7179
7187
 
7180
7188
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
7181
- interface Props$I {
7189
+ interface Props$J {
7182
7190
  figureId: UID;
7183
7191
  definition: ScorecardChartDefinition;
7184
7192
  canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7185
7193
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7186
7194
  }
7187
- declare class ScorecardChartDesignPanel extends Component<Props$I, SpreadsheetChildEnv> {
7195
+ declare class ScorecardChartDesignPanel extends Component<Props$J, SpreadsheetChildEnv> {
7188
7196
  static template: string;
7189
7197
  static components: {
7190
7198
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7246,15 +7254,18 @@ interface ClosedSidePanel {
7246
7254
  }
7247
7255
  type SidePanelState = OpenSidePanel | ClosedSidePanel;
7248
7256
  declare class SidePanelStore extends SpreadsheetStore {
7249
- mutators: readonly ["open", "toggle", "close"];
7257
+ mutators: readonly ["open", "toggle", "close", "changePanelSize", "resetPanelSize"];
7250
7258
  initialPanelProps: SidePanelProps;
7251
7259
  componentTag: string;
7260
+ panelSize: number;
7252
7261
  get isOpen(): boolean;
7253
7262
  get panelProps(): SidePanelProps;
7254
7263
  get panelKey(): string | undefined;
7255
7264
  open(componentTag: string, panelProps?: SidePanelProps): void;
7256
7265
  toggle(componentTag: string, panelProps: SidePanelProps): void;
7257
7266
  close(): void;
7267
+ changePanelSize(size: number, spreadsheetElWidth: number): void;
7268
+ resetPanelSize(): void;
7258
7269
  private computeState;
7259
7270
  }
7260
7271
 
@@ -7339,13 +7350,13 @@ interface EnrichedToken extends Token {
7339
7350
  functionContext?: FunctionContext;
7340
7351
  }
7341
7352
 
7342
- interface Props$H {
7353
+ interface Props$I {
7343
7354
  proposals: AutoCompleteProposal[];
7344
7355
  selectedIndex: number | undefined;
7345
7356
  onValueSelected: (value: string) => void;
7346
7357
  onValueHovered: (index: string) => void;
7347
7358
  }
7348
- declare class TextValueProvider extends Component<Props$H> {
7359
+ declare class TextValueProvider extends Component<Props$I> {
7349
7360
  static template: string;
7350
7361
  static props: {
7351
7362
  proposals: ArrayConstructor;
@@ -7559,7 +7570,7 @@ declare class ContentEditableHelper {
7559
7570
  getText(): string;
7560
7571
  }
7561
7572
 
7562
- interface Props$G {
7573
+ interface Props$H {
7563
7574
  functionName: string;
7564
7575
  functionDescription: FunctionDescription;
7565
7576
  argToFocus: number;
@@ -7567,7 +7578,7 @@ interface Props$G {
7567
7578
  interface AssistantState {
7568
7579
  allowCellSelectionBehind: boolean;
7569
7580
  }
7570
- declare class FunctionDescriptionProvider extends Component<Props$G, SpreadsheetChildEnv> {
7581
+ declare class FunctionDescriptionProvider extends Component<Props$H, SpreadsheetChildEnv> {
7571
7582
  static template: string;
7572
7583
  static props: {
7573
7584
  functionName: StringConstructor;
@@ -7577,7 +7588,7 @@ declare class FunctionDescriptionProvider extends Component<Props$G, Spreadsheet
7577
7588
  assistantState: AssistantState;
7578
7589
  private timeOutId;
7579
7590
  setup(): void;
7580
- getContext(): Props$G;
7591
+ getContext(): Props$H;
7581
7592
  onMouseMove(): void;
7582
7593
  get formulaArgSeparator(): string;
7583
7594
  }
@@ -7768,10 +7779,10 @@ interface AutoCompleteProviderDefinition {
7768
7779
 
7769
7780
  declare function transformRangeData(range: RangeData, executed: CoreCommand): RangeData | undefined;
7770
7781
 
7771
- interface Props$F {
7782
+ interface Props$G {
7772
7783
  figure: Figure;
7773
7784
  }
7774
- declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
7785
+ declare class ChartJsComponent extends Component<Props$G, SpreadsheetChildEnv> {
7775
7786
  static template: string;
7776
7787
  static props: {
7777
7788
  figure: ObjectConstructor;
@@ -7787,10 +7798,10 @@ declare class ChartJsComponent extends Component<Props$F, SpreadsheetChildEnv> {
7787
7798
  private updateChartJs;
7788
7799
  }
7789
7800
 
7790
- interface Props$E {
7801
+ interface Props$F {
7791
7802
  figure: Figure;
7792
7803
  }
7793
- declare class ScorecardChart extends Component<Props$E, SpreadsheetChildEnv> {
7804
+ declare class ScorecardChart extends Component<Props$F, SpreadsheetChildEnv> {
7794
7805
  static template: string;
7795
7806
  static props: {
7796
7807
  figure: ObjectConstructor;
@@ -7802,7 +7813,7 @@ declare class ScorecardChart extends Component<Props$E, SpreadsheetChildEnv> {
7802
7813
  }
7803
7814
 
7804
7815
  type MenuItemOrSeparator = Action | "separator";
7805
- interface Props$D {
7816
+ interface Props$E {
7806
7817
  position: DOMCoordinates;
7807
7818
  menuItems: Action[];
7808
7819
  depth: number;
@@ -7820,7 +7831,7 @@ interface MenuState {
7820
7831
  menuItems: Action[];
7821
7832
  isHoveringChild?: boolean;
7822
7833
  }
7823
- declare class Menu extends Component<Props$D, SpreadsheetChildEnv> {
7834
+ declare class Menu extends Component<Props$E, SpreadsheetChildEnv> {
7824
7835
  static template: string;
7825
7836
  static props: {
7826
7837
  position: ObjectConstructor;
@@ -7890,14 +7901,14 @@ declare class Menu extends Component<Props$D, SpreadsheetChildEnv> {
7890
7901
  }
7891
7902
 
7892
7903
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
7893
- interface Props$C {
7904
+ interface Props$D {
7894
7905
  figure: Figure;
7895
7906
  style: string;
7896
7907
  onFigureDeleted: () => void;
7897
7908
  onMouseDown: (ev: MouseEvent) => void;
7898
7909
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
7899
7910
  }
7900
- declare class FigureComponent extends Component<Props$C, SpreadsheetChildEnv> {
7911
+ declare class FigureComponent extends Component<Props$D, SpreadsheetChildEnv> {
7901
7912
  static template: string;
7902
7913
  static props: {
7903
7914
  figure: ObjectConstructor;
@@ -7946,11 +7957,11 @@ declare class FigureComponent extends Component<Props$C, SpreadsheetChildEnv> {
7946
7957
  private openContextMenu;
7947
7958
  }
7948
7959
 
7949
- interface Props$B {
7960
+ interface Props$C {
7950
7961
  figure: Figure;
7951
7962
  onFigureDeleted: () => void;
7952
7963
  }
7953
- declare class ChartFigure extends Component<Props$B, SpreadsheetChildEnv> {
7964
+ declare class ChartFigure extends Component<Props$C, SpreadsheetChildEnv> {
7954
7965
  static template: string;
7955
7966
  static props: {
7956
7967
  figure: ObjectConstructor;
@@ -7962,7 +7973,7 @@ declare class ChartFigure extends Component<Props$B, SpreadsheetChildEnv> {
7962
7973
  get chartComponent(): new (...args: any) => Component;
7963
7974
  }
7964
7975
 
7965
- interface Props$A {
7976
+ interface Props$B {
7966
7977
  isVisible: boolean;
7967
7978
  position: Position;
7968
7979
  }
@@ -7974,7 +7985,7 @@ interface State$8 {
7974
7985
  position: Position;
7975
7986
  handler: boolean;
7976
7987
  }
7977
- declare class Autofill extends Component<Props$A, SpreadsheetChildEnv> {
7988
+ declare class Autofill extends Component<Props$B, SpreadsheetChildEnv> {
7978
7989
  static template: string;
7979
7990
  static props: {
7980
7991
  position: ObjectConstructor;
@@ -8008,7 +8019,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
8008
8019
  get tagStyle(): string;
8009
8020
  }
8010
8021
 
8011
- interface Props$z {
8022
+ interface Props$A {
8012
8023
  gridDims: DOMDimension;
8013
8024
  onInputContextMenu: (event: MouseEvent) => void;
8014
8025
  }
@@ -8016,7 +8027,7 @@ interface Props$z {
8016
8027
  * This component is a composer which positions itself on the grid at the anchor cell.
8017
8028
  * It also applies the style of the cell to the composer input.
8018
8029
  */
8019
- declare class GridComposer extends Component<Props$z, SpreadsheetChildEnv> {
8030
+ declare class GridComposer extends Component<Props$A, SpreadsheetChildEnv> {
8020
8031
  static template: string;
8021
8032
  static props: {
8022
8033
  gridDims: ObjectConstructor;
@@ -8073,10 +8084,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
8073
8084
  isPositionVisible(position: CellPosition): boolean;
8074
8085
  }
8075
8086
 
8076
- interface Props$y {
8087
+ interface Props$z {
8077
8088
  cellPosition: CellPosition;
8078
8089
  }
8079
- declare class DataValidationCheckbox extends Component<Props$y, SpreadsheetChildEnv> {
8090
+ declare class DataValidationCheckbox extends Component<Props$z, SpreadsheetChildEnv> {
8080
8091
  static template: string;
8081
8092
  static props: {
8082
8093
  cellPosition: ObjectConstructor;
@@ -8086,10 +8097,10 @@ declare class DataValidationCheckbox extends Component<Props$y, SpreadsheetChild
8086
8097
  get isDisabled(): boolean;
8087
8098
  }
8088
8099
 
8089
- interface Props$x {
8100
+ interface Props$y {
8090
8101
  cellPosition: CellPosition;
8091
8102
  }
8092
- declare class DataValidationListIcon extends Component<Props$x, SpreadsheetChildEnv> {
8103
+ declare class DataValidationListIcon extends Component<Props$y, SpreadsheetChildEnv> {
8093
8104
  static template: string;
8094
8105
  static props: {
8095
8106
  cellPosition: ObjectConstructor;
@@ -8119,7 +8130,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
8119
8130
  }
8120
8131
 
8121
8132
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
8122
- interface Props$w {
8133
+ interface Props$x {
8123
8134
  onFigureDeleted: () => void;
8124
8135
  }
8125
8136
  interface Container {
@@ -8198,7 +8209,7 @@ interface DndState {
8198
8209
  * that occurred during the drag & drop, and to position the figure on the correct pane.
8199
8210
  *
8200
8211
  */
8201
- declare class FiguresContainer extends Component<Props$w, SpreadsheetChildEnv> {
8212
+ declare class FiguresContainer extends Component<Props$x, SpreadsheetChildEnv> {
8202
8213
  static template: string;
8203
8214
  static props: {
8204
8215
  onFigureDeleted: FunctionConstructor;
@@ -8253,10 +8264,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
8253
8264
  private computePopoverAnchorRect;
8254
8265
  }
8255
8266
 
8256
- interface Props$v {
8267
+ interface Props$w {
8257
8268
  cellPosition: CellPosition;
8258
8269
  }
8259
- declare class FilterIcon extends Component<Props$v, SpreadsheetChildEnv> {
8270
+ declare class FilterIcon extends Component<Props$w, SpreadsheetChildEnv> {
8260
8271
  static template: string;
8261
8272
  static props: {
8262
8273
  cellPosition: ObjectConstructor;
@@ -8278,10 +8289,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
8278
8289
  getFilterHeadersPositions(): CellPosition[];
8279
8290
  }
8280
8291
 
8281
- interface Props$u {
8292
+ interface Props$v {
8282
8293
  focusGrid: () => void;
8283
8294
  }
8284
- declare class GridAddRowsFooter extends Component<Props$u, SpreadsheetChildEnv> {
8295
+ declare class GridAddRowsFooter extends Component<Props$v, SpreadsheetChildEnv> {
8285
8296
  static template: string;
8286
8297
  static props: {
8287
8298
  focusGrid: FunctionConstructor;
@@ -8305,7 +8316,7 @@ declare class GridAddRowsFooter extends Component<Props$u, SpreadsheetChildEnv>
8305
8316
  private onExternalClick;
8306
8317
  }
8307
8318
 
8308
- interface Props$t {
8319
+ interface Props$u {
8309
8320
  onCellHovered: (position: Partial<Position$1>) => void;
8310
8321
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
8311
8322
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
@@ -8315,7 +8326,7 @@ interface Props$t {
8315
8326
  gridOverlayDimensions: string;
8316
8327
  onFigureDeleted: () => void;
8317
8328
  }
8318
- declare class GridOverlay extends Component<Props$t, SpreadsheetChildEnv> {
8329
+ declare class GridOverlay extends Component<Props$u, SpreadsheetChildEnv> {
8319
8330
  static template: string;
8320
8331
  static props: {
8321
8332
  onCellHovered: {
@@ -8372,12 +8383,12 @@ declare class GridOverlay extends Component<Props$t, SpreadsheetChildEnv> {
8372
8383
  private getCartesianCoordinates;
8373
8384
  }
8374
8385
 
8375
- interface Props$s {
8386
+ interface Props$t {
8376
8387
  gridRect: Rect;
8377
8388
  onClosePopover: () => void;
8378
8389
  onMouseWheel: (ev: WheelEvent) => void;
8379
8390
  }
8380
- declare class GridPopover extends Component<Props$s, SpreadsheetChildEnv> {
8391
+ declare class GridPopover extends Component<Props$t, SpreadsheetChildEnv> {
8381
8392
  static template: string;
8382
8393
  static props: {
8383
8394
  onClosePopover: FunctionConstructor;
@@ -8520,13 +8531,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
8520
8531
  }
8521
8532
 
8522
8533
  type Orientation$1 = "n" | "s" | "w" | "e";
8523
- interface Props$r {
8534
+ interface Props$s {
8524
8535
  zone: Zone;
8525
8536
  orientation: Orientation$1;
8526
8537
  isMoving: boolean;
8527
8538
  onMoveHighlight: (x: Pixel, y: Pixel) => void;
8528
8539
  }
8529
- declare class Border extends Component<Props$r, SpreadsheetChildEnv> {
8540
+ declare class Border extends Component<Props$s, SpreadsheetChildEnv> {
8530
8541
  static template: string;
8531
8542
  static props: {
8532
8543
  zone: ObjectConstructor;
@@ -8539,14 +8550,14 @@ declare class Border extends Component<Props$r, SpreadsheetChildEnv> {
8539
8550
  }
8540
8551
 
8541
8552
  type Orientation = "nw" | "ne" | "sw" | "se";
8542
- interface Props$q {
8553
+ interface Props$r {
8543
8554
  zone: Zone;
8544
8555
  color: Color;
8545
8556
  orientation: Orientation;
8546
8557
  isResizing: boolean;
8547
8558
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
8548
8559
  }
8549
- declare class Corner extends Component<Props$q, SpreadsheetChildEnv> {
8560
+ declare class Corner extends Component<Props$r, SpreadsheetChildEnv> {
8550
8561
  static template: string;
8551
8562
  static props: {
8552
8563
  zone: ObjectConstructor;
@@ -8561,14 +8572,14 @@ declare class Corner extends Component<Props$q, SpreadsheetChildEnv> {
8561
8572
  onMouseDown(ev: MouseEvent): void;
8562
8573
  }
8563
8574
 
8564
- interface Props$p {
8575
+ interface Props$q {
8565
8576
  zone: Zone;
8566
8577
  color: Color;
8567
8578
  }
8568
8579
  interface HighlightState {
8569
8580
  shiftingMode: "isMoving" | "isResizing" | "none";
8570
8581
  }
8571
- declare class Highlight extends Component<Props$p, SpreadsheetChildEnv> {
8582
+ declare class Highlight extends Component<Props$q, SpreadsheetChildEnv> {
8572
8583
  static template: string;
8573
8584
  static props: {
8574
8585
  zone: ObjectConstructor;
@@ -8585,7 +8596,7 @@ declare class Highlight extends Component<Props$p, SpreadsheetChildEnv> {
8585
8596
 
8586
8597
  type ScrollDirection = "horizontal" | "vertical";
8587
8598
 
8588
- interface Props$o {
8599
+ interface Props$p {
8589
8600
  width: Pixel;
8590
8601
  height: Pixel;
8591
8602
  direction: ScrollDirection;
@@ -8593,7 +8604,7 @@ interface Props$o {
8593
8604
  offset: Pixel;
8594
8605
  onScroll: (offset: Pixel) => void;
8595
8606
  }
8596
- declare class ScrollBar extends Component<Props$o> {
8607
+ declare class ScrollBar extends Component<Props$p> {
8597
8608
  static props: {
8598
8609
  width: {
8599
8610
  type: NumberConstructor;
@@ -8621,10 +8632,10 @@ declare class ScrollBar extends Component<Props$o> {
8621
8632
  onScroll(ev: any): void;
8622
8633
  }
8623
8634
 
8624
- interface Props$n {
8635
+ interface Props$o {
8625
8636
  leftOffset: number;
8626
8637
  }
8627
- declare class HorizontalScrollBar extends Component<Props$n, SpreadsheetChildEnv> {
8638
+ declare class HorizontalScrollBar extends Component<Props$o, SpreadsheetChildEnv> {
8628
8639
  static props: {
8629
8640
  leftOffset: {
8630
8641
  type: NumberConstructor;
@@ -8650,10 +8661,10 @@ declare class HorizontalScrollBar extends Component<Props$n, SpreadsheetChildEnv
8650
8661
  onScroll(offset: any): void;
8651
8662
  }
8652
8663
 
8653
- interface Props$m {
8664
+ interface Props$n {
8654
8665
  topOffset: number;
8655
8666
  }
8656
- declare class VerticalScrollBar extends Component<Props$m, SpreadsheetChildEnv> {
8667
+ declare class VerticalScrollBar extends Component<Props$n, SpreadsheetChildEnv> {
8657
8668
  static props: {
8658
8669
  topOffset: {
8659
8670
  type: NumberConstructor;
@@ -8679,13 +8690,13 @@ declare class VerticalScrollBar extends Component<Props$m, SpreadsheetChildEnv>
8679
8690
  onScroll(offset: any): void;
8680
8691
  }
8681
8692
 
8682
- interface Props$l {
8693
+ interface Props$m {
8683
8694
  table: Table;
8684
8695
  }
8685
8696
  interface State$7 {
8686
8697
  highlightZone: Zone | undefined;
8687
8698
  }
8688
- declare class TableResizer extends Component<Props$l, SpreadsheetChildEnv> {
8699
+ declare class TableResizer extends Component<Props$m, SpreadsheetChildEnv> {
8689
8700
  static template: string;
8690
8701
  static props: {
8691
8702
  table: ObjectConstructor;
@@ -8717,10 +8728,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
8717
8728
  * - a vertical resizer (same, for rows)
8718
8729
  */
8719
8730
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
8720
- interface Props$k {
8731
+ interface Props$l {
8721
8732
  exposeFocus: (focus: () => void) => void;
8722
8733
  }
8723
- declare class Grid extends Component<Props$k, SpreadsheetChildEnv> {
8734
+ declare class Grid extends Component<Props$l, SpreadsheetChildEnv> {
8724
8735
  static template: string;
8725
8736
  static props: {
8726
8737
  exposeFocus: FunctionConstructor;
@@ -8829,11 +8840,11 @@ declare class MainChartPanelStore extends SpreadsheetStore {
8829
8840
  changeChartType(figureId: UID, type: ChartType): void;
8830
8841
  }
8831
8842
 
8832
- interface Props$j {
8843
+ interface Props$k {
8833
8844
  onCloseSidePanel: () => void;
8834
8845
  figureId: UID;
8835
8846
  }
8836
- declare class ChartPanel extends Component<Props$j, SpreadsheetChildEnv> {
8847
+ declare class ChartPanel extends Component<Props$k, SpreadsheetChildEnv> {
8837
8848
  static template: string;
8838
8849
  static components: {
8839
8850
  Section: typeof Section;
@@ -8853,13 +8864,13 @@ declare class ChartPanel extends Component<Props$j, SpreadsheetChildEnv> {
8853
8864
  get chartTypes(): Record<string, string>;
8854
8865
  }
8855
8866
 
8856
- interface Props$i {
8867
+ interface Props$j {
8857
8868
  figureId: UID;
8858
8869
  definition: PieChartDefinition;
8859
8870
  canUpdateChart: (figureID: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
8860
8871
  updateChart: (figureId: UID, definition: Partial<PieChartDefinition>) => DispatchResult;
8861
8872
  }
8862
- declare class PieChartDesignPanel extends Component<Props$i, SpreadsheetChildEnv> {
8873
+ declare class PieChartDesignPanel extends Component<Props$j, SpreadsheetChildEnv> {
8863
8874
  static template: string;
8864
8875
  static components: {
8865
8876
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8941,12 +8952,12 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
8941
8952
 
8942
8953
  /** @odoo-module */
8943
8954
 
8944
- interface Props$h {
8955
+ interface Props$i {
8945
8956
  name: string;
8946
8957
  displayName: string;
8947
8958
  onChanged: (name: string) => void;
8948
8959
  }
8949
- declare class EditableName extends Component<Props$h, SpreadsheetChildEnv> {
8960
+ declare class EditableName extends Component<Props$i, SpreadsheetChildEnv> {
8950
8961
  static template: string;
8951
8962
  static props: {
8952
8963
  name: StringConstructor;
@@ -8959,6 +8970,30 @@ declare class EditableName extends Component<Props$h, SpreadsheetChildEnv> {
8959
8970
  save(): void;
8960
8971
  }
8961
8972
 
8973
+ interface Props$h {
8974
+ deferUpdate: boolean;
8975
+ isDirty: boolean;
8976
+ toggleDeferUpdate: (value: boolean) => void;
8977
+ discard: () => void;
8978
+ apply: () => void;
8979
+ }
8980
+ declare class PivotDeferUpdate extends Component<Props$h, SpreadsheetChildEnv> {
8981
+ static template: string;
8982
+ static props: {
8983
+ deferUpdate: BooleanConstructor;
8984
+ isDirty: BooleanConstructor;
8985
+ toggleDeferUpdate: FunctionConstructor;
8986
+ discard: FunctionConstructor;
8987
+ apply: FunctionConstructor;
8988
+ };
8989
+ static components: {
8990
+ Section: typeof Section;
8991
+ Checkbox: typeof Checkbox;
8992
+ };
8993
+ get deferUpdatesLabel(): string;
8994
+ get deferUpdatesTooltip(): string;
8995
+ }
8996
+
8962
8997
  interface Props$g {
8963
8998
  onFieldPicked: (field: string) => void;
8964
8999
  fields: PivotField[];
@@ -9065,55 +9100,14 @@ declare function makePivotFormula(formula: "PIVOT.VALUE" | "PIVOT.HEADER", args:
9065
9100
  *
9066
9101
  */
9067
9102
  declare function getMaxObjectId(o: object): number;
9068
- /**
9069
- * Get the first Pivot function description of the given formula.
9070
- */
9071
- declare function getFirstPivotFunction(tokens: Token[]): {
9072
- functionName: string;
9073
- args: AST[];
9074
- };
9075
- /**
9076
- * Parse a spreadsheet formula and detect the number of PIVOT functions that are
9077
- * present in the given formula.
9078
- */
9079
- declare function getNumberOfPivotFunctions(tokens: Token[]): number;
9080
9103
  /**
9081
9104
  * Parse a dimension string into a pivot dimension definition.
9082
9105
  * e.g "create_date:month" => { name: "create_date", granularity: "month" }
9083
9106
  */
9084
9107
  declare function parseDimension(dimension: string): PivotCoreDimension;
9085
9108
  declare function isDateField(field: PivotField): boolean;
9086
- /**
9087
- * Create a proposal entry for the compose autocomplete
9088
- * to insert a field name string in a formula.
9089
- */
9090
- declare function makeFieldProposal(field: PivotField, granularity?: Granularity): {
9091
- text: string;
9092
- description: string;
9093
- htmlContent: {
9094
- value: string;
9095
- color: "#00a82d";
9096
- }[];
9097
- fuzzySearchKey: string;
9098
- };
9099
- /**
9100
- * Perform the autocomplete of the composer by inserting the value
9101
- * at the cursor position, replacing the current token if necessary.
9102
- * Must be bound to the autocomplete provider.
9103
- */
9104
- declare function insertTokenAfterArgSeparator(this: {
9105
- composer: ComposerStore;
9106
- }, tokenAtCursor: EnrichedToken, value: string): void;
9107
- /**
9108
- * Perform the autocomplete of the composer by inserting the value
9109
- * at the cursor position, replacing the current token if necessary.
9110
- * Must be bound to the autocomplete provider.
9111
- * @param {EnrichedToken} tokenAtCursor
9112
- * @param {string} value
9113
- */
9114
- declare function insertTokenAfterLeftParenthesis(this: {
9115
- composer: ComposerStore;
9116
- }, tokenAtCursor: EnrichedToken, value: string): void;
9109
+ declare function toPivotDomain(domainStr: string[]): PivotDomain;
9110
+ declare function flatPivotDomain(domain: PivotDomain): (string | number | boolean)[];
9117
9111
 
9118
9112
  interface Props$c {
9119
9113
  definition: PivotRuntimeDefinition;
@@ -9232,6 +9226,50 @@ declare function getDefaultChartJsRuntime(chart: AbstractChart, labels: string[]
9232
9226
  /** See https://www.chartjs.org/docs/latest/charts/area.html#filling-modes */
9233
9227
  declare function getFillingMode(index: number): "origin" | number;
9234
9228
 
9229
+ /**
9230
+ * Create a proposal entry for the compose autowcomplete
9231
+ * to insert a field name string in a formula.
9232
+ */
9233
+ declare function makeFieldProposal(field: PivotField, granularity?: Granularity): {
9234
+ text: string;
9235
+ description: string;
9236
+ htmlContent: {
9237
+ value: string;
9238
+ color: "#00a82d";
9239
+ }[];
9240
+ fuzzySearchKey: string;
9241
+ };
9242
+ /**
9243
+ * Perform the autocomplete of the composer by inserting the value
9244
+ * at the cursor position, replacing the current token if necessary.
9245
+ * Must be bound to the autocomplete provider.
9246
+ */
9247
+ declare function insertTokenAfterArgSeparator(this: {
9248
+ composer: ComposerStore;
9249
+ }, tokenAtCursor: EnrichedToken, value: string): void;
9250
+ /**
9251
+ * Perform the autocomplete of the composer by inserting the value
9252
+ * at the cursor position, replacing the current token if necessary.
9253
+ * Must be bound to the autocomplete provider.
9254
+ * @param {EnrichedToken} tokenAtCursor
9255
+ * @param {string} value
9256
+ */
9257
+ declare function insertTokenAfterLeftParenthesis(this: {
9258
+ composer: ComposerStore;
9259
+ }, tokenAtCursor: EnrichedToken, value: string): void;
9260
+ /**
9261
+ * Get the first Pivot function description of the given formula.
9262
+ */
9263
+ declare function getFirstPivotFunction(tokens: Token[]): {
9264
+ functionName: string;
9265
+ args: AST[];
9266
+ };
9267
+ /**
9268
+ * Parse a spreadsheet formula and detect the number of PIVOT functions that are
9269
+ * present in the given formula.
9270
+ */
9271
+ declare function getNumberOfPivotFunctions(tokens: Token[]): number;
9272
+
9235
9273
  declare function getPivotHighlights(getters: Getters, pivotId: UID): Highlight$1[];
9236
9274
 
9237
9275
  declare function pivotTimeAdapter(granularity: Granularity): PivotTimeAdapter<string | number | false>;
@@ -9630,10 +9668,12 @@ declare class SidePanel extends Component<{}, SpreadsheetChildEnv> {
9630
9668
  static template: string;
9631
9669
  static props: {};
9632
9670
  sidePanelStore: Store<SidePanelStore>;
9671
+ spreadsheetRect: Rect;
9633
9672
  setup(): void;
9634
9673
  get panel(): SidePanelContent;
9635
9674
  close(): void;
9636
9675
  getTitle(): string;
9676
+ startHandleDrag(ev: MouseEvent): void;
9637
9677
  }
9638
9678
 
9639
9679
  declare const sortRange: ActionSpec;
@@ -10142,13 +10182,14 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
10142
10182
  spreadsheetRef: {
10143
10183
  el: HTMLElement | null;
10144
10184
  };
10185
+ spreadsheetRect: Rect;
10145
10186
  private _focusGrid?;
10146
10187
  private keyDownMapping;
10147
10188
  private isViewportTooSmall;
10148
10189
  private notificationStore;
10149
10190
  private composerFocusStore;
10150
10191
  get model(): Model;
10151
- getStyle(): "grid-template-rows: auto;" | "grid-template-rows: 63px auto 37px";
10192
+ getStyle(): string;
10152
10193
  setup(): void;
10153
10194
  private bindModelEvents;
10154
10195
  private unbindModelEvents;
@@ -11187,6 +11228,8 @@ declare const helpers: {
11187
11228
  insertTokenAfterLeftParenthesis: typeof insertTokenAfterLeftParenthesis;
11188
11229
  mergeContiguousZones: typeof mergeContiguousZones;
11189
11230
  getPivotHighlights: typeof getPivotHighlights;
11231
+ toPivotDomain: typeof toPivotDomain;
11232
+ flatPivotDomain: typeof flatPivotDomain;
11190
11233
  pivotTimeAdapter: typeof pivotTimeAdapter;
11191
11234
  UNDO_REDO_PIVOT_COMMANDS: string[];
11192
11235
  };
@@ -11231,6 +11274,7 @@ declare const components: {
11231
11274
  PivotDimension: typeof PivotDimension;
11232
11275
  PivotLayoutConfigurator: typeof PivotLayoutConfigurator;
11233
11276
  EditableName: typeof EditableName;
11277
+ PivotDeferUpdate: typeof PivotDeferUpdate;
11234
11278
  };
11235
11279
  declare const hooks: {
11236
11280
  useDragAndDropListItems: typeof useDragAndDropListItems;
@@ -11275,4 +11319,4 @@ declare const constants: {
11275
11319
  };
11276
11320
  };
11277
11321
 
11278
- export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, ChartWithAxisDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, Direction$1 as Direction, DispatchResult, DomainArg, DuplicatePivotCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotField, PivotFields, PivotMeasure, PivotRuntimeDefinition, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetScrollInfo, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, StringDomainArgs, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
11322
+ export { AST, ASTFuncall, AboveAverageRule, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, ActivateNextSheetCommand, ActivatePaintFormatCommand, ActivatePreviousSheetCommand, ActivateSheetCommand, AddColumnsRowsCommand, AddConditionalFormatCommand, AddDataValidationCommand, AddFunctionDescription, AddMergeCommand, AddPivotCommand, Aggregator, Alias, Align, AlphanumericIncrementModifier, AnchorZone, ApplyRangeChange, ApplyRangeChangeResult, Arg, ArgDefinition, ArgType, AutoFillCellCommand, AutofillAutoCommand, AutofillCellData, AutofillCommand, AutofillData, AutofillModifier, AutofillModifierImplementation, AutofillResult, AutofillSelectCommand, AutofillTableCommand, AutoresizeColumnsCommand, AutoresizeRowsCommand, AxesDesign, AxisDesign, AxisType, BeginsWithRule, BooleanCell, Border$1 as Border, BorderData, BorderDescr, BorderDescription, BorderPosition, BorderStyle, Box, BoxTextContent, CHART_TYPES, CSSProperties, CancelPaintFormatCommand, CancelledReason, Cell, CellData, CellErrorType, CellIsRule, CellPosition, CellValue, CellValueType, ChangeType, ChartCreationContext, ChartDefinition, ChartJSRuntime, ChartRuntime, ChartType, ChartWithAxisDefinition, CleanClipBoardHighlightCommand, ClearCellCommand, ClearFormattingCommand, Client, ClientId, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, ClientPosition, ClipboardCell, ClipboardCellData, ClipboardContent, ClipboardData, ClipboardFigureData, ClipboardMIMEType, ClipboardOperation, ClipboardOptions, ClipboardPasteOptions, ClipboardPasteTarget, Cloneable, CollaborationMessage, CollaborativeEvent, CollaborativeEventReceived, CollaborativeEventTypes, Color, ColorScaleMidPointThreshold, ColorScaleRule, ColorScaleThreshold, Command, CommandDispatcher, CommandHandler, CommandResult, CommandTypes, CommonPivotCoreDefinition, CompiledFormula, ComputeFunction, ComputedTableStyle, ConditionalFormat, ConditionalFormatInternal, ConditionalFormatRule, ConditionalFormattingOperatorValues, ConsecutiveIndexes, ContainsTextRule, CopyCommand, CopyModifier, CopyPasteCellsAboveCommand, CopyPasteCellsOnLeftCommand, CoreCommand, CoreCommandDispatcher, CoreCommandTypes, CoreGetters, CorePlugin, CoreTable, CoreTableType, CoreViewCommand, CoreViewCommandTypes, CreateChartCommand, CreateFigureCommand, CreateImageOverCommand, CreateRevisionOptions, CreateSheetCommand, CreateTableCommand, CreateTableStyleCommand, Currency, CustomFormulaCriterion, CustomizedDataSet, CutCommand, DEFAULT_LOCALE, DEFAULT_LOCALES, DIRECTION, DOMCoordinates, DOMDimension, DataSet, DataValidationCriterion, DataValidationCriterionType, DataValidationDateCriterion, DataValidationRule, DataValidationRuleData, DatasetDesign, DatasetValues, DateCriterionValue, DateIsAfterCriterion, DateIsBeforeCriterion, DateIsBetweenCriterion, DateIsCriterion, DateIsNotBetweenCriterion, DateIsOnOrAfterCriterion, DateIsOnOrBeforeCriterion, DateIsValidCriterion, DebouncedFunction, DeleteCellCommand, DeleteContentCommand, DeleteFigureCommand, DeleteSheetCommand, Dependencies, Dimension, Direction$1 as Direction, DispatchResult, DuplicatePivotCommand, DuplicateSheetCommand, DynamicTable, EdgeScrollInfo, EditTextOptions, EmptyCell, EndsWithRule, EnrichedToken, EnsureRange, ErrorCell, EvalContext, EvaluateCellsCommand, EvaluatedCell, EvaluationError, ExcelCellData, ExcelChartDataset, ExcelChartDefinition, ExcelChartType, ExcelFigureSize, ExcelFilterData, ExcelHeaderData, ExcelSheetData, ExcelTableData, ExcelWorkbookData, ExpressionRule, FPayload, FPayloadNumber, Figure, FigureData, FigureSize, Filter, FilterId, FoldAllHeaderGroupsCommand, FoldHeaderGroupCommand, FoldHeaderGroupsInZoneCommand, Format, FormattedValue, FormulaCell, FormulaModifier, FormulaToExecute, FreezeColumnsCommand, FreezeRowsCommand, FunctionDescription, FunctionRegistry, GeneratorCell, Getters, Granularity, GridClickModifiers, GridRenderingContext, GroupHeadersCommand, HSLA, HeaderData, HeaderDimensions, HeaderGroup, HeaderIndex, HeadersDependentCommand, HideColumnsRowsCommand, HideSheetCommand, Highlight$1 as Highlight, HistoryChange, IconSet, IconSetRule, IconThreshold, Image, Immutable, Increment, IncrementModifier, InformationNotification, InitPivotParams, InsertCellCommand, InsertNewPivotCommand, InsertPivotCommand, IsBetweenCriterion, IsCheckboxCriterion, IsEqualCriterion, IsGreaterOrEqualToCriterion, IsGreaterThanCriterion, IsLessOrEqualToCriterion, IsLessThanCriterion, IsNotBetweenCriterion, IsNotEqualCriterion, IsValueInListCriterion, IsValueInRangeCriterion, LabelValues, LayerName, Lazy, Link, LiteralCell, LocalCommand, Locale, LocaleCode, LocaleFormat, Matrix, Maybe, MenuMouseEvent, Merge, Model, MoveColumnsRowsCommand, MoveConditionalFormatCommand, MoveRangeCommand, MoveSheetCommand, MoveViewportDownCommand, MoveViewportToCellCommand, MoveViewportUpCommand, NewLocalStateUpdateEvent, NotContainsTextRule, NotificationType, NumberCell, Offset, OperationSequenceNode, OrderedLayers, PLAIN_TEXT_FORMAT, PaneDivision, PasteCommand, PasteFromOSClipboardCommand, Pivot, PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotDimension$1 as PivotDimension, PivotDomain, PivotEmptyCell, PivotField, PivotFields, PivotHeaderCell, PivotMeasure, PivotNode, PivotRuntimeDefinition, PivotTableCell, PivotTableColumn, PivotTableData, PivotTableRow, PivotTimeAdapter, PivotValueCell, Pixel, PixelPosition, Position$1 as Position, PositionDependentCommand, PropsOf, RGBA, Range, RangeCompiledFormula, RangeData, RangePart, RangeProvider, RangesDependentCommand, Rect, RedoCommand, Ref, ReferenceDenormalizer, RefreshPivotCommand, Registry, RemoteRevisionMessage, RemoteRevisionReceivedEvent, RemoveColumnsRowsCommand, RemoveConditionalFormatCommand, RemoveDataValidationCommand, RemoveDuplicatesCommand, RemoveMergeCommand, RemovePivotCommand, RemoveTableCommand, RemoveTableStyleCommand, RenamePivotCommand, RenameSheetCommand, RepeatPasteCommand, ReplaceSearchCommand, RequestRedoCommand, RequestUndoCommand, ResizeColumnsRowsCommand, ResizeDirection, ResizeTableCommand, ResizeViewportCommand, Revision, RevisionAcknowledgedEvent, RevisionData, RevisionRedone, RevisionRedoneMessage, RevisionUndone, RevisionUndoneMessage, RevisionsDroppedEvent, Row, SPREADSHEET_DIMENSIONS, ScrollDirection$1 as ScrollDirection, SelectFigureCommand, Selection, SelectionStep, SetBorderCommand, SetDecimalCommand, SetDecimalStep, SetFormattingCommand, SetGridLinesVisibilityCommand, SetViewportOffsetCommand, SetZoneBordersCommand, Sheet, SheetDOMScrollInfo, SheetData, SheetDependentCommand, SheetScrollInfo, ShowFormulaCommand, ShowSheetCommand, SingleColorRule, SingleColorRules, SnapshotEvent, SortCommand, SortDirection, SortOptions, SplitTextIntoColumnsCommand, Spreadsheet, SpreadsheetChildEnv, SpreadsheetPivotCoreDefinition, SpreadsheetPivotTable, StartChangeHighlightCommand, StartCommand, StaticTable, StoreConstructor, StoreParams, Style, SumSelectionCommand, Table, TableConfig, TableData, TableElementStyle, TableId, TableStyle, TableStyleData, TableStyleTemplateName, TargetDependentCommand, TechnicalName, TextCell, TextContainsCriterion, TextIsCriterion, TextIsEmailCriterion, TextIsLinkCriterion, TextNotContainsCriterion, TextRule, ThresholdType, TimePeriodRule, TitleDesign, Token, Tooltip, Top10Rule, Transformation, TransformationFactory, TransportService, TrimWhitespaceCommand, UID, UIPlugin, UnGroupHeadersCommand, UnboundedZone, UndoCommand, UnexpectedRevisionIdEvent, UnfoldAllHeaderGroupsCommand, UnfoldHeaderGroupCommand, UnfoldHeaderGroupsInZoneCommand, UnfreezeColumnsCommand, UnfreezeColumnsRowsCommand, UnfreezeRowsCommand, UnhideColumnsRowsCommand, UpdateCellCommand, UpdateCellData, UpdateCellPositionCommand, UpdateChartCommand, UpdateFigureCommand, UpdateFilterCommand, UpdateLocaleCommand, UpdatePivotCommand, UpdateTableCommand, Validation, VerticalAlign, Viewport, WorkbookData, WorkbookHistory, Wrapping, Zone, ZoneDependentCommand, ZoneDimension, __info__, addFunction, addRenderingLayer, astToFormula, borderStyles, canExecuteInReadonly, compile, compileTokens, components, constants, containsBlanksRule, containsErrorsRule, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateBordersCommands, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isHeadersDependant, isMatrix, isPositionDependent, isRangeDependant, isSheetDependent, isTargetDependent, isZoneDependent, iterateAstNodes, links, load, notContainsBlanksRule, notContainsErrorsRule, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };