@odoo/o-spreadsheet 18.5.0-alpha.2 → 18.5.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -566,7 +566,7 @@ interface ExcelChartTrendConfiguration {
566
566
  readonly window?: number;
567
567
  }
568
568
  type ExcelTrendlineType = "poly" | "exp" | "log" | "movingAvg" | "linear";
569
- type ExcelChartType = "line" | "bar" | "pie" | "combo" | "scatter" | "radar";
569
+ type ExcelChartType = "line" | "bar" | "pie" | "combo" | "scatter" | "radar" | "pyramid";
570
570
  interface ExcelChartDefinition {
571
571
  readonly title?: TitleDesign;
572
572
  readonly type: ExcelChartType;
@@ -582,6 +582,10 @@ interface ExcelChartDefinition {
582
582
  useRightAxis?: boolean;
583
583
  };
584
584
  readonly axesDesign?: AxesDesign;
585
+ readonly horizontal?: boolean;
586
+ readonly isDoughnut?: boolean;
587
+ readonly pieHolePercentage?: number;
588
+ readonly maxValue?: number;
585
589
  }
586
590
  interface ChartCreationContext {
587
591
  readonly range?: CustomizedDataSet[];
@@ -606,6 +610,9 @@ interface ChartCreationContext {
606
610
  readonly hideDataMarkers?: boolean;
607
611
  readonly valuesDesign?: ChartStyle;
608
612
  readonly groupColors?: (Color | undefined | null)[];
613
+ readonly horizontal?: boolean;
614
+ readonly isDoughnut?: boolean;
615
+ readonly pieHolePercentage?: number;
609
616
  readonly showHeaders?: boolean;
610
617
  readonly headerDesign?: TitleDesign;
611
618
  readonly treemapColoringOptions?: TreeMapColoringOptions;
@@ -939,7 +946,7 @@ interface Top10Rule extends SingleColorRule {
939
946
  bottom: boolean;
940
947
  rank: number;
941
948
  }
942
- type ConditionalFormattingOperatorValues = "beginsWithText" | "isBetween" | "containsText" | "isEmpty" | "isNotEmpty" | "endsWithText" | "isEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isNotBetween" | "notContainsText" | "isNotEqual";
949
+ type ConditionalFormattingOperatorValues = "beginsWithText" | "isBetween" | "containsText" | "isEmpty" | "isNotEmpty" | "endsWithText" | "isEqual" | "isGreaterThan" | "isGreaterOrEqualTo" | "isLessThan" | "isLessOrEqualTo" | "isNotBetween" | "notContainsText" | "isNotEqual" | "customFormula";
943
950
  declare const availableConditionalFormatOperators: Set<ConditionalFormattingOperatorValues>;
944
951
 
945
952
  declare const PREVIOUS_VALUE = "(previous)";
@@ -3718,6 +3725,7 @@ type FunctionResultObject = {
3718
3725
  format?: Format;
3719
3726
  errorOriginPosition?: CellPosition;
3720
3727
  message?: string;
3728
+ origin?: CellPosition;
3721
3729
  };
3722
3730
  type FunctionResultNumber = {
3723
3731
  value: number;
@@ -4675,7 +4683,7 @@ declare abstract class AbstractChart {
4675
4683
  * Get the definition of the chart that will be used for excel export.
4676
4684
  * If the chart is not supported by Excel, this function returns undefined.
4677
4685
  */
4678
- abstract getDefinitionForExcel(): ExcelChartDefinition | undefined;
4686
+ abstract getDefinitionForExcel(getters: Getters): ExcelChartDefinition | undefined;
4679
4687
  /**
4680
4688
  * This function should be used to update all the ranges of the chart after
4681
4689
  * a grid change (add/remove col/row, rename sheet, ...)
@@ -4695,6 +4703,10 @@ declare abstract class AbstractChart {
4695
4703
  * Extract the ChartCreationContext of the chart
4696
4704
  */
4697
4705
  abstract getContextCreation(): ChartCreationContext;
4706
+ protected getCommonDataSetAttributesForExcel(labelRange: Range | undefined, dataSets: DataSet[], shouldRemoveFirstLabel: boolean): {
4707
+ dataSets: ExcelChartDataset[];
4708
+ labelRange: string | undefined;
4709
+ };
4698
4710
  }
4699
4711
 
4700
4712
  /**
@@ -5557,7 +5569,10 @@ declare class EvaluationDataValidationPlugin extends CoreViewPlugin {
5557
5569
  * The value must be canonicalized.
5558
5570
  */
5559
5571
  getDataValidationInvalidCriterionValueMessage(criterionType: DataValidationCriterionType, value: string): string | undefined;
5560
- getDataValidationRangeValues(sheetId: UID, criterion: EvaluatedCriterion): string[];
5572
+ getDataValidationRangeValues(sheetId: UID, criterion: EvaluatedCriterion): {
5573
+ value: string;
5574
+ label: string;
5575
+ }[];
5561
5576
  isCellValidCheckbox(cellPosition: CellPosition): boolean;
5562
5577
  /** Get the validation result if the cell on the given position had the given value */
5563
5578
  getValidationResultForCellValue(cellValue: CellValue, cellPosition: CellPosition): ValidationResult;
@@ -5689,6 +5704,7 @@ declare class HeaderSizeUIPlugin extends CoreViewPlugin<HeaderSizeState> impleme
5689
5704
  static getters: readonly ["getRowSize", "getHeaderSize", "getMaxAnchorOffset"];
5690
5705
  readonly tallestCellInRow: Immutable<Record<UID, Array<CellWithSize | undefined>>>;
5691
5706
  private ctx;
5707
+ beforeHandle(cmd: Command): void;
5692
5708
  handle(cmd: Command): void;
5693
5709
  getRowSize(sheetId: UID, row: HeaderIndex): Pixel;
5694
5710
  getMaxAnchorOffset(sheetId: UID, height: Pixel, width: Pixel): AnchorOffset;
@@ -7002,7 +7018,7 @@ interface ChartSubtypeProperties {
7002
7018
  preview: string;
7003
7019
  }
7004
7020
 
7005
- interface Props$1j {
7021
+ interface Props$1n {
7006
7022
  label?: string;
7007
7023
  value: boolean;
7008
7024
  className?: string;
@@ -7011,7 +7027,7 @@ interface Props$1j {
7011
7027
  disabled?: boolean;
7012
7028
  onChange: (value: boolean) => void;
7013
7029
  }
7014
- declare class Checkbox extends Component<Props$1j, SpreadsheetChildEnv> {
7030
+ declare class Checkbox extends Component<Props$1n, SpreadsheetChildEnv> {
7015
7031
  static template: string;
7016
7032
  static props: {
7017
7033
  label: {
@@ -7046,10 +7062,10 @@ declare class Checkbox extends Component<Props$1j, SpreadsheetChildEnv> {
7046
7062
  onChange(ev: InputEvent): void;
7047
7063
  }
7048
7064
 
7049
- interface Props$1i {
7065
+ interface Props$1m {
7050
7066
  class?: string;
7051
7067
  }
7052
- declare class Section extends Component<Props$1i, SpreadsheetChildEnv> {
7068
+ declare class Section extends Component<Props$1m, SpreadsheetChildEnv> {
7053
7069
  static template: string;
7054
7070
  static props: {
7055
7071
  class: {
@@ -7214,7 +7230,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
7214
7230
  getIndex(rangeId: number | null): number | null;
7215
7231
  }
7216
7232
 
7217
- interface Props$1h {
7233
+ interface Props$1l {
7218
7234
  ranges: string[];
7219
7235
  hasSingleRange?: boolean;
7220
7236
  required?: boolean;
@@ -7242,7 +7258,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
7242
7258
  * onSelectionChanged is called every time the input value
7243
7259
  * changes.
7244
7260
  */
7245
- declare class SelectionInput extends Component<Props$1h, SpreadsheetChildEnv> {
7261
+ declare class SelectionInput extends Component<Props$1l, SpreadsheetChildEnv> {
7246
7262
  static template: string;
7247
7263
  static props: {
7248
7264
  ranges: ArrayConstructor;
@@ -7319,7 +7335,7 @@ declare class SelectionInput extends Component<Props$1h, SpreadsheetChildEnv> {
7319
7335
  confirm(): void;
7320
7336
  }
7321
7337
 
7322
- interface Props$1g {
7338
+ interface Props$1k {
7323
7339
  ranges: CustomizedDataSet[];
7324
7340
  hasSingleRange?: boolean;
7325
7341
  onSelectionChanged: (ranges: string[]) => void;
@@ -7332,7 +7348,7 @@ interface Props$1g {
7332
7348
  canChangeDatasetOrientation?: boolean;
7333
7349
  onFlipAxis?: (structure: string) => void;
7334
7350
  }
7335
- declare class ChartDataSeries extends Component<Props$1g, SpreadsheetChildEnv> {
7351
+ declare class ChartDataSeries extends Component<Props$1k, SpreadsheetChildEnv> {
7336
7352
  static template: string;
7337
7353
  static components: {
7338
7354
  SelectionInput: typeof SelectionInput;
@@ -7381,12 +7397,12 @@ declare class ChartDataSeries extends Component<Props$1g, SpreadsheetChildEnv> {
7381
7397
  get title(): string;
7382
7398
  }
7383
7399
 
7384
- interface Props$1f {
7400
+ interface Props$1j {
7385
7401
  messages: string[];
7386
7402
  msgType: "warning" | "error" | "info";
7387
7403
  singleBox?: boolean;
7388
7404
  }
7389
- declare class ValidationMessages extends Component<Props$1f, SpreadsheetChildEnv> {
7405
+ declare class ValidationMessages extends Component<Props$1j, SpreadsheetChildEnv> {
7390
7406
  static template: string;
7391
7407
  static props: {
7392
7408
  messages: ArrayConstructor;
@@ -7400,10 +7416,10 @@ declare class ValidationMessages extends Component<Props$1f, SpreadsheetChildEnv
7400
7416
  get alertBoxes(): string[][];
7401
7417
  }
7402
7418
 
7403
- interface Props$1e {
7419
+ interface Props$1i {
7404
7420
  messages: string[];
7405
7421
  }
7406
- declare class ChartErrorSection extends Component<Props$1e, SpreadsheetChildEnv> {
7422
+ declare class ChartErrorSection extends Component<Props$1i, SpreadsheetChildEnv> {
7407
7423
  static template: string;
7408
7424
  static components: {
7409
7425
  Section: typeof Section;
@@ -7417,7 +7433,7 @@ declare class ChartErrorSection extends Component<Props$1e, SpreadsheetChildEnv>
7417
7433
  };
7418
7434
  }
7419
7435
 
7420
- interface Props$1d {
7436
+ interface Props$1h {
7421
7437
  title?: string;
7422
7438
  range: string;
7423
7439
  isInvalid: boolean;
@@ -7430,7 +7446,7 @@ interface Props$1d {
7430
7446
  onChange: (value: boolean) => void;
7431
7447
  }>;
7432
7448
  }
7433
- declare class ChartLabelRange extends Component<Props$1d, SpreadsheetChildEnv> {
7449
+ declare class ChartLabelRange extends Component<Props$1h, SpreadsheetChildEnv> {
7434
7450
  static template: string;
7435
7451
  static components: {
7436
7452
  SelectionInput: typeof SelectionInput;
@@ -7451,10 +7467,10 @@ declare class ChartLabelRange extends Component<Props$1d, SpreadsheetChildEnv> {
7451
7467
  optional: boolean;
7452
7468
  };
7453
7469
  };
7454
- static defaultProps: Partial<Props$1d>;
7470
+ static defaultProps: Partial<Props$1h>;
7455
7471
  }
7456
7472
 
7457
- interface Props$1c {
7473
+ interface Props$1g {
7458
7474
  figureId: UID;
7459
7475
  definition: ChartWithDataSetDefinition;
7460
7476
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
@@ -7464,7 +7480,7 @@ interface ChartPanelState {
7464
7480
  datasetDispatchResult?: DispatchResult;
7465
7481
  labelsDispatchResult?: DispatchResult;
7466
7482
  }
7467
- declare class GenericChartConfigPanel extends Component<Props$1c, SpreadsheetChildEnv> {
7483
+ declare class GenericChartConfigPanel extends Component<Props$1g, SpreadsheetChildEnv> {
7468
7484
  static template: string;
7469
7485
  static components: {
7470
7486
  ChartDataSeries: typeof ChartDataSeries;
@@ -7533,11 +7549,11 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
7533
7549
  onUpdateStacked(stacked: boolean): void;
7534
7550
  }
7535
7551
 
7536
- interface Props$1b {
7552
+ interface Props$1f {
7537
7553
  isCollapsed: boolean;
7538
7554
  slots: any;
7539
7555
  }
7540
- declare class Collapse extends Component<Props$1b, SpreadsheetChildEnv> {
7556
+ declare class Collapse extends Component<Props$1f, SpreadsheetChildEnv> {
7541
7557
  static template: string;
7542
7558
  static props: {
7543
7559
  isCollapsed: BooleanConstructor;
@@ -7576,12 +7592,12 @@ interface Choice$1 {
7576
7592
  value: string;
7577
7593
  label: string;
7578
7594
  }
7579
- interface Props$1a {
7595
+ interface Props$1e {
7580
7596
  choices: Choice$1[];
7581
7597
  onChange: (value: string) => void;
7582
7598
  selectedValue: string;
7583
7599
  }
7584
- declare class BadgeSelection extends Component<Props$1a, SpreadsheetChildEnv> {
7600
+ declare class BadgeSelection extends Component<Props$1e, SpreadsheetChildEnv> {
7585
7601
  static template: string;
7586
7602
  static props: {
7587
7603
  choices: ArrayConstructor;
@@ -7590,14 +7606,14 @@ declare class BadgeSelection extends Component<Props$1a, SpreadsheetChildEnv> {
7590
7606
  };
7591
7607
  }
7592
7608
 
7593
- interface Props$19 {
7609
+ interface Props$1d {
7594
7610
  action: ActionSpec;
7595
7611
  hasTriangleDownIcon?: boolean;
7596
7612
  selectedColor?: string;
7597
7613
  class?: string;
7598
7614
  onClick?: (ev: MouseEvent) => void;
7599
7615
  }
7600
- declare class ActionButton extends Component<Props$19, SpreadsheetChildEnv> {
7616
+ declare class ActionButton extends Component<Props$1d, SpreadsheetChildEnv> {
7601
7617
  static template: string;
7602
7618
  static props: {
7603
7619
  action: ObjectConstructor;
@@ -7784,7 +7800,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
7784
7800
  isSameColor(color1: Color, color2: Color): boolean;
7785
7801
  }
7786
7802
 
7787
- interface Props$18 {
7803
+ interface Props$1c {
7788
7804
  currentColor: string | undefined;
7789
7805
  toggleColorPicker: () => void;
7790
7806
  showColorPicker: boolean;
@@ -7795,7 +7811,7 @@ interface Props$18 {
7795
7811
  dropdownMaxHeight?: Pixel;
7796
7812
  class?: string;
7797
7813
  }
7798
- declare class ColorPickerWidget extends Component<Props$18, SpreadsheetChildEnv> {
7814
+ declare class ColorPickerWidget extends Component<Props$1c, SpreadsheetChildEnv> {
7799
7815
  static template: string;
7800
7816
  static props: {
7801
7817
  currentColor: {
@@ -7856,14 +7872,14 @@ declare class CellPopoverStore extends SpreadsheetStore {
7856
7872
  interface State$5 {
7857
7873
  isOpen: boolean;
7858
7874
  }
7859
- interface Props$17 {
7875
+ interface Props$1b {
7860
7876
  currentFontSize: number;
7861
7877
  class: string;
7862
7878
  onFontSizeChanged: (fontSize: number) => void;
7863
7879
  onToggle?: () => void;
7864
7880
  onFocusInput?: () => void;
7865
7881
  }
7866
- declare class FontSizeEditor extends Component<Props$17, SpreadsheetChildEnv> {
7882
+ declare class FontSizeEditor extends Component<Props$1b, SpreadsheetChildEnv> {
7867
7883
  static template: string;
7868
7884
  static props: {
7869
7885
  currentFontSize: NumberConstructor;
@@ -7901,7 +7917,7 @@ declare class FontSizeEditor extends Component<Props$17, SpreadsheetChildEnv> {
7901
7917
  onInputKeydown(ev: KeyboardEvent): void;
7902
7918
  }
7903
7919
 
7904
- interface Props$16 {
7920
+ interface Props$1a {
7905
7921
  class?: string;
7906
7922
  style: ChartStyle;
7907
7923
  updateStyle: (style: ChartStyle) => void;
@@ -7910,7 +7926,7 @@ interface Props$16 {
7910
7926
  hasHorizontalAlign?: boolean;
7911
7927
  hasBackgroundColor?: boolean;
7912
7928
  }
7913
- declare class TextStyler extends Component<Props$16, SpreadsheetChildEnv> {
7929
+ declare class TextStyler extends Component<Props$1a, SpreadsheetChildEnv> {
7914
7930
  static template: string;
7915
7931
  static components: {
7916
7932
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -7978,7 +7994,7 @@ declare class TextStyler extends Component<Props$16, SpreadsheetChildEnv> {
7978
7994
  get verticalAlignActions(): ActionSpec[];
7979
7995
  }
7980
7996
 
7981
- interface Props$15 {
7997
+ interface Props$19 {
7982
7998
  title?: string;
7983
7999
  placeholder?: string;
7984
8000
  updateTitle: (title: string) => void;
@@ -7987,7 +8003,7 @@ interface Props$15 {
7987
8003
  defaultStyle?: Partial<TitleDesign>;
7988
8004
  updateStyle: (style: TitleDesign) => void;
7989
8005
  }
7990
- declare class ChartTitle extends Component<Props$15, SpreadsheetChildEnv> {
8006
+ declare class ChartTitle extends Component<Props$19, SpreadsheetChildEnv> {
7991
8007
  static template: string;
7992
8008
  static components: {
7993
8009
  Section: typeof Section;
@@ -8024,13 +8040,13 @@ interface AxisDefinition {
8024
8040
  id: string;
8025
8041
  name: string;
8026
8042
  }
8027
- interface Props$14 {
8043
+ interface Props$18 {
8028
8044
  figureId: UID;
8029
8045
  definition: ChartWithAxisDefinition;
8030
8046
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
8031
8047
  axesList: AxisDefinition[];
8032
8048
  }
8033
- declare class AxisDesignEditor extends Component<Props$14, SpreadsheetChildEnv> {
8049
+ declare class AxisDesignEditor extends Component<Props$18, SpreadsheetChildEnv> {
8034
8050
  static template: string;
8035
8051
  static components: {
8036
8052
  Section: typeof Section;
@@ -8062,14 +8078,14 @@ interface Choice {
8062
8078
  value: unknown;
8063
8079
  label: string;
8064
8080
  }
8065
- interface Props$13 {
8081
+ interface Props$17 {
8066
8082
  choices: Choice[];
8067
8083
  onChange: (value: unknown) => void;
8068
8084
  selectedValue: string;
8069
8085
  name: string;
8070
8086
  direction: "horizontal" | "vertical";
8071
8087
  }
8072
- declare class RadioSelection extends Component<Props$13, SpreadsheetChildEnv> {
8088
+ declare class RadioSelection extends Component<Props$17, SpreadsheetChildEnv> {
8073
8089
  static template: string;
8074
8090
  static props: {
8075
8091
  choices: ArrayConstructor;
@@ -8088,13 +8104,13 @@ declare class RadioSelection extends Component<Props$13, SpreadsheetChildEnv> {
8088
8104
  };
8089
8105
  }
8090
8106
 
8091
- interface Props$12 {
8107
+ interface Props$16 {
8092
8108
  currentColor?: string;
8093
8109
  onColorPicked: (color: string) => void;
8094
8110
  title?: string;
8095
8111
  disableNoColor?: boolean;
8096
8112
  }
8097
- declare class RoundColorPicker extends Component<Props$12, SpreadsheetChildEnv> {
8113
+ declare class RoundColorPicker extends Component<Props$16, SpreadsheetChildEnv> {
8098
8114
  static template: string;
8099
8115
  static components: {
8100
8116
  Section: typeof Section;
@@ -8127,14 +8143,14 @@ declare class RoundColorPicker extends Component<Props$12, SpreadsheetChildEnv>
8127
8143
  get buttonStyle(): string;
8128
8144
  }
8129
8145
 
8130
- interface Props$11 {
8146
+ interface Props$15 {
8131
8147
  figureId: UID;
8132
8148
  definition: ChartDefinition;
8133
8149
  updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
8134
8150
  canUpdateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
8135
8151
  defaultChartTitleFontSize?: number;
8136
8152
  }
8137
- declare class GeneralDesignEditor extends Component<Props$11, SpreadsheetChildEnv> {
8153
+ declare class GeneralDesignEditor extends Component<Props$15, SpreadsheetChildEnv> {
8138
8154
  static template: string;
8139
8155
  static components: {
8140
8156
  RoundColorPicker: typeof RoundColorPicker;
@@ -8169,13 +8185,13 @@ declare class GeneralDesignEditor extends Component<Props$11, SpreadsheetChildEn
8169
8185
  updateChartTitleStyle(style: TitleDesign): void;
8170
8186
  }
8171
8187
 
8172
- interface Props$10 {
8188
+ interface Props$14 {
8173
8189
  figureId: UID;
8174
8190
  definition: ChartWithDataSetDefinition;
8175
8191
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8176
8192
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8177
8193
  }
8178
- declare class ChartLegend extends Component<Props$10, SpreadsheetChildEnv> {
8194
+ declare class ChartLegend extends Component<Props$14, SpreadsheetChildEnv> {
8179
8195
  static template: string;
8180
8196
  static components: {
8181
8197
  Section: typeof Section;
@@ -8189,13 +8205,13 @@ declare class ChartLegend extends Component<Props$10, SpreadsheetChildEnv> {
8189
8205
  updateLegendPosition(ev: any): void;
8190
8206
  }
8191
8207
 
8192
- interface Props$$ {
8208
+ interface Props$13 {
8193
8209
  figureId: UID;
8194
8210
  definition: ChartWithDataSetDefinition;
8195
8211
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8196
8212
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8197
8213
  }
8198
- declare class SeriesDesignEditor extends Component<Props$$, SpreadsheetChildEnv> {
8214
+ declare class SeriesDesignEditor extends Component<Props$13, SpreadsheetChildEnv> {
8199
8215
  static template: string;
8200
8216
  static components: {
8201
8217
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -8223,13 +8239,13 @@ declare class SeriesDesignEditor extends Component<Props$$, SpreadsheetChildEnv>
8223
8239
  getDataSeriesLabel(): string | undefined;
8224
8240
  }
8225
8241
 
8226
- interface Props$_ {
8242
+ interface Props$12 {
8227
8243
  figureId: UID;
8228
8244
  definition: ChartWithDataSetDefinition;
8229
8245
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8230
8246
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8231
8247
  }
8232
- declare class SeriesWithAxisDesignEditor extends Component<Props$_, SpreadsheetChildEnv> {
8248
+ declare class SeriesWithAxisDesignEditor extends Component<Props$12, SpreadsheetChildEnv> {
8233
8249
  static template: string;
8234
8250
  static components: {
8235
8251
  SeriesDesignEditor: typeof SeriesDesignEditor;
@@ -8270,14 +8286,14 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$_, SpreadsheetC
8270
8286
  updateTrendLineValue(index: number, config: any): void;
8271
8287
  }
8272
8288
 
8273
- interface Props$Z {
8289
+ interface Props$11 {
8274
8290
  figureId: UID;
8275
8291
  definition: ChartWithDataSetDefinition;
8276
8292
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8277
8293
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8278
8294
  defaultValue?: boolean;
8279
8295
  }
8280
- declare class ChartShowValues extends Component<Props$Z, SpreadsheetChildEnv> {
8296
+ declare class ChartShowValues extends Component<Props$11, SpreadsheetChildEnv> {
8281
8297
  static template: string;
8282
8298
  static components: {
8283
8299
  Checkbox: typeof Checkbox;
@@ -8294,13 +8310,13 @@ declare class ChartShowValues extends Component<Props$Z, SpreadsheetChildEnv> {
8294
8310
  };
8295
8311
  }
8296
8312
 
8297
- interface Props$Y {
8313
+ interface Props$10 {
8298
8314
  figureId: UID;
8299
8315
  definition: ChartWithDataSetDefinition;
8300
8316
  canUpdateChart: (figureID: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8301
8317
  updateChart: (figureId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8302
8318
  }
8303
- declare class ChartWithAxisDesignPanel<P extends Props$Y = Props$Y> extends Component<P, SpreadsheetChildEnv> {
8319
+ declare class ChartWithAxisDesignPanel<P extends Props$10 = Props$10> extends Component<P, SpreadsheetChildEnv> {
8304
8320
  static template: string;
8305
8321
  static components: {
8306
8322
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8320,13 +8336,13 @@ declare class ChartWithAxisDesignPanel<P extends Props$Y = Props$Y> extends Comp
8320
8336
  get axesList(): AxisDefinition[];
8321
8337
  }
8322
8338
 
8323
- interface Props$X {
8339
+ interface Props$$ {
8324
8340
  figureId: UID;
8325
8341
  definition: GaugeChartDefinition;
8326
8342
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8327
8343
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8328
8344
  }
8329
- declare class GaugeChartConfigPanel extends Component<Props$X, SpreadsheetChildEnv> {
8345
+ declare class GaugeChartConfigPanel extends Component<Props$$, SpreadsheetChildEnv> {
8330
8346
  static template: string;
8331
8347
  static components: {
8332
8348
  ChartErrorSection: typeof ChartErrorSection;
@@ -8391,13 +8407,13 @@ interface EnrichedToken extends Token {
8391
8407
  isInHoverContext?: boolean;
8392
8408
  }
8393
8409
 
8394
- interface Props$W {
8410
+ interface Props$_ {
8395
8411
  proposals: AutoCompleteProposal[];
8396
8412
  selectedIndex: number | undefined;
8397
8413
  onValueSelected: (value: string) => void;
8398
8414
  onValueHovered: (index: string) => void;
8399
8415
  }
8400
- declare class TextValueProvider extends Component<Props$W> {
8416
+ declare class TextValueProvider extends Component<Props$_> {
8401
8417
  static template: string;
8402
8418
  static props: {
8403
8419
  proposals: ArrayConstructor;
@@ -8454,11 +8470,11 @@ declare class ContentEditableHelper {
8454
8470
  getText(): string;
8455
8471
  }
8456
8472
 
8457
- interface Props$V {
8473
+ interface Props$Z {
8458
8474
  functionDescription: FunctionDescription;
8459
8475
  argsToFocus: number[];
8460
8476
  }
8461
- declare class FunctionDescriptionProvider extends Component<Props$V, SpreadsheetChildEnv> {
8477
+ declare class FunctionDescriptionProvider extends Component<Props$Z, SpreadsheetChildEnv> {
8462
8478
  static template: string;
8463
8479
  static props: {
8464
8480
  functionDescription: ObjectConstructor;
@@ -8469,15 +8485,15 @@ declare class FunctionDescriptionProvider extends Component<Props$V, Spreadsheet
8469
8485
  };
8470
8486
  private state;
8471
8487
  toggle(): void;
8472
- getContext(): Props$V;
8488
+ getContext(): Props$Z;
8473
8489
  get formulaArgSeparator(): string;
8474
8490
  }
8475
8491
 
8476
- interface Props$U {
8492
+ interface Props$Y {
8477
8493
  anchorRect: Rect;
8478
8494
  content: string;
8479
8495
  }
8480
- declare class SpeechBubble extends Component<Props$U, SpreadsheetChildEnv> {
8496
+ declare class SpeechBubble extends Component<Props$Y, SpreadsheetChildEnv> {
8481
8497
  static template: string;
8482
8498
  static props: {
8483
8499
  content: StringConstructor;
@@ -8551,6 +8567,7 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8551
8567
  get autoCompleteProposals(): AutoCompleteProposal[];
8552
8568
  get autoCompleteSelectedIndex(): number | undefined;
8553
8569
  get isAutoCompleteDisplayed(): boolean;
8570
+ get canBeToggled(): boolean;
8554
8571
  cycleReferences(): void;
8555
8572
  toggleEditionMode(): void;
8556
8573
  hoverToken(tokenIndex: number | undefined): void;
@@ -8857,6 +8874,7 @@ interface AutoCompleteProvider {
8857
8874
  proposals: AutoCompleteProposal[];
8858
8875
  selectProposal(text: string): void;
8859
8876
  autoSelectFirstProposal: boolean;
8877
+ canBeToggled?: boolean;
8860
8878
  }
8861
8879
  interface ComposerStoreInterface {
8862
8880
  currentEditedCell?: CellPosition;
@@ -8876,6 +8894,7 @@ interface ComposerStoreInterface {
8876
8894
  interface AutoCompleteProviderDefinition {
8877
8895
  sequence?: number;
8878
8896
  autoSelectFirstProposal?: boolean;
8897
+ canBeToggled?: boolean;
8879
8898
  displayAllOnInitialContent?: boolean;
8880
8899
  maxDisplayedProposals?: number;
8881
8900
  getProposals(this: {
@@ -8887,7 +8906,7 @@ interface AutoCompleteProviderDefinition {
8887
8906
  }, tokenAtCursor: EnrichedToken, text: string): void;
8888
8907
  }
8889
8908
 
8890
- interface Props$T {
8909
+ interface Props$X {
8891
8910
  onConfirm: (content: string) => void;
8892
8911
  composerContent: string;
8893
8912
  defaultRangeSheetId: UID;
@@ -8899,7 +8918,7 @@ interface Props$T {
8899
8918
  invalid?: boolean;
8900
8919
  getContextualColoredSymbolToken?: (token: Token) => Color;
8901
8920
  }
8902
- declare class StandaloneComposer extends Component<Props$T, SpreadsheetChildEnv> {
8921
+ declare class StandaloneComposer extends Component<Props$X, SpreadsheetChildEnv> {
8903
8922
  static template: string;
8904
8923
  static props: {
8905
8924
  composerContent: {
@@ -8962,13 +8981,13 @@ interface PanelState {
8962
8981
  sectionRuleCancelledReasons?: CommandResult[];
8963
8982
  sectionRule: SectionRule;
8964
8983
  }
8965
- interface Props$S {
8984
+ interface Props$W {
8966
8985
  figureId: UID;
8967
8986
  definition: GaugeChartDefinition;
8968
8987
  canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8969
8988
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8970
8989
  }
8971
- declare class GaugeChartDesignPanel extends Component<Props$S, SpreadsheetChildEnv> {
8990
+ declare class GaugeChartDesignPanel extends Component<Props$W, SpreadsheetChildEnv> {
8972
8991
  static template: string;
8973
8992
  static components: {
8974
8993
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -9018,13 +9037,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
9018
9037
  onUpdateCumulative(cumulative: boolean): void;
9019
9038
  }
9020
9039
 
9021
- interface Props$R {
9040
+ interface Props$V {
9022
9041
  figureId: UID;
9023
9042
  definition: ScorecardChartDefinition;
9024
9043
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9025
9044
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9026
9045
  }
9027
- declare class ScorecardChartConfigPanel extends Component<Props$R, SpreadsheetChildEnv> {
9046
+ declare class ScorecardChartConfigPanel extends Component<Props$V, SpreadsheetChildEnv> {
9028
9047
  static template: string;
9029
9048
  static components: {
9030
9049
  SelectionInput: typeof SelectionInput;
@@ -9053,13 +9072,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$R, SpreadsheetCh
9053
9072
  }
9054
9073
 
9055
9074
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
9056
- interface Props$Q {
9075
+ interface Props$U {
9057
9076
  figureId: UID;
9058
9077
  definition: ScorecardChartDefinition;
9059
9078
  canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9060
9079
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9061
9080
  }
9062
- declare class ScorecardChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
9081
+ declare class ScorecardChartDesignPanel extends Component<Props$U, SpreadsheetChildEnv> {
9063
9082
  static template: string;
9064
9083
  static components: {
9065
9084
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -9237,11 +9256,11 @@ declare class ComposerFocusStore extends SpreadsheetStore {
9237
9256
  private setComposerContent;
9238
9257
  }
9239
9258
 
9240
- interface Props$P {
9259
+ interface Props$T {
9241
9260
  figureUI: FigureUI;
9242
9261
  isFullScreen?: boolean;
9243
9262
  }
9244
- declare class ChartJsComponent extends Component<Props$P, SpreadsheetChildEnv> {
9263
+ declare class ChartJsComponent extends Component<Props$T, SpreadsheetChildEnv> {
9245
9264
  static template: string;
9246
9265
  static props: {
9247
9266
  figureUI: ObjectConstructor;
@@ -9266,10 +9285,10 @@ declare class ChartJsComponent extends Component<Props$P, SpreadsheetChildEnv> {
9266
9285
  get animationFigureId(): string;
9267
9286
  }
9268
9287
 
9269
- interface Props$O {
9288
+ interface Props$S {
9270
9289
  figureUI: FigureUI;
9271
9290
  }
9272
- declare class ScorecardChart$1 extends Component<Props$O, SpreadsheetChildEnv> {
9291
+ declare class ScorecardChart$1 extends Component<Props$S, SpreadsheetChildEnv> {
9273
9292
  static template: string;
9274
9293
  static props: {
9275
9294
  figureUI: ObjectConstructor;
@@ -9345,7 +9364,7 @@ declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
9345
9364
  onClickMenu(menu: Action, ev: CustomEvent): void;
9346
9365
  }
9347
9366
 
9348
- interface Props$N {
9367
+ interface Props$R {
9349
9368
  anchorRect: Rect;
9350
9369
  popoverPositioning: PopoverPropsPosition;
9351
9370
  menuItems: Action[];
@@ -9365,7 +9384,7 @@ interface MenuState {
9365
9384
  menuItems: Action[];
9366
9385
  isHoveringChild?: boolean;
9367
9386
  }
9368
- declare class MenuPopover extends Component<Props$N, SpreadsheetChildEnv> {
9387
+ declare class MenuPopover extends Component<Props$R, SpreadsheetChildEnv> {
9369
9388
  static template: string;
9370
9389
  static props: {
9371
9390
  anchorRect: ObjectConstructor;
@@ -9445,14 +9464,14 @@ declare class MenuPopover extends Component<Props$N, SpreadsheetChildEnv> {
9445
9464
  }
9446
9465
 
9447
9466
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
9448
- interface Props$M {
9467
+ interface Props$Q {
9449
9468
  figureUI: FigureUI;
9450
9469
  style: string;
9451
9470
  onFigureDeleted: () => void;
9452
9471
  onMouseDown: (ev: MouseEvent) => void;
9453
9472
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9454
9473
  }
9455
- declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
9474
+ declare class FigureComponent extends Component<Props$Q, SpreadsheetChildEnv> {
9456
9475
  static template: string;
9457
9476
  static props: {
9458
9477
  figureUI: ObjectConstructor;
@@ -9502,7 +9521,7 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
9502
9521
  private openContextMenu;
9503
9522
  }
9504
9523
 
9505
- interface Props$L {
9524
+ interface Props$P {
9506
9525
  figureUI: FigureUI;
9507
9526
  }
9508
9527
  interface MenuItem {
@@ -9512,7 +9531,7 @@ interface MenuItem {
9512
9531
  onClick: () => void;
9513
9532
  isSelected?: boolean;
9514
9533
  }
9515
- declare class ChartDashboardMenu extends Component<Props$L, SpreadsheetChildEnv> {
9534
+ declare class ChartDashboardMenu extends Component<Props$P, SpreadsheetChildEnv> {
9516
9535
  static template: string;
9517
9536
  static components: {
9518
9537
  MenuPopover: typeof MenuPopover;
@@ -9520,25 +9539,21 @@ declare class ChartDashboardMenu extends Component<Props$L, SpreadsheetChildEnv>
9520
9539
  static props: {
9521
9540
  figureUI: ObjectConstructor;
9522
9541
  };
9523
- private originalChartDefinition;
9524
9542
  private fullScreenFigureStore;
9543
+ private store;
9525
9544
  private menuState;
9526
9545
  setup(): void;
9527
9546
  getMenuItems(): MenuItem[];
9528
- get changeChartTypeMenuItems(): MenuItem[];
9529
- getIconClasses(type: ChartType): "" | "fa fa-bar-chart" | "fa fa-line-chart" | "fa fa-pie-chart";
9530
- onTypeChange(type: ChartType): void;
9531
- get selectedChartType(): "line" | "bar" | "scatter" | "pie" | "radar" | "treemap" | "funnel" | "scorecard" | "gauge" | "combo" | "waterfall" | "pyramid" | "geo" | "sunburst";
9532
9547
  get backgroundColor(): string;
9533
9548
  openContextMenu(ev: MouseEvent): void;
9534
9549
  get fullScreenMenuItem(): MenuItem | undefined;
9535
9550
  }
9536
9551
 
9537
- interface Props$K {
9552
+ interface Props$O {
9538
9553
  figureUI: FigureUI;
9539
9554
  onFigureDeleted: () => void;
9540
9555
  }
9541
- declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
9556
+ declare class ChartFigure extends Component<Props$O, SpreadsheetChildEnv> {
9542
9557
  static template: string;
9543
9558
  static props: {
9544
9559
  figureUI: ObjectConstructor;
@@ -9563,7 +9578,7 @@ declare class DelayedHoveredCellStore extends SpreadsheetStore {
9563
9578
 
9564
9579
  type DnDDirection = "all" | "vertical" | "horizontal";
9565
9580
 
9566
- interface Props$J {
9581
+ interface Props$N {
9567
9582
  isVisible: boolean;
9568
9583
  position: Position;
9569
9584
  }
@@ -9575,7 +9590,7 @@ interface State$4 {
9575
9590
  position: Position;
9576
9591
  handler: boolean;
9577
9592
  }
9578
- declare class Autofill extends Component<Props$J, SpreadsheetChildEnv> {
9593
+ declare class Autofill extends Component<Props$N, SpreadsheetChildEnv> {
9579
9594
  static template: string;
9580
9595
  static props: {
9581
9596
  position: ObjectConstructor;
@@ -9615,7 +9630,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
9615
9630
  get tagStyle(): string;
9616
9631
  }
9617
9632
 
9618
- interface Props$I {
9633
+ interface Props$M {
9619
9634
  gridDims: DOMDimension;
9620
9635
  onInputContextMenu: (event: MouseEvent) => void;
9621
9636
  }
@@ -9623,7 +9638,7 @@ interface Props$I {
9623
9638
  * This component is a composer which positions itself on the grid at the anchor cell.
9624
9639
  * It also applies the style of the cell to the composer input.
9625
9640
  */
9626
- declare class GridComposer extends Component<Props$I, SpreadsheetChildEnv> {
9641
+ declare class GridComposer extends Component<Props$M, SpreadsheetChildEnv> {
9627
9642
  static template: string;
9628
9643
  static props: {
9629
9644
  gridDims: ObjectConstructor;
@@ -9667,7 +9682,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
9667
9682
  }
9668
9683
 
9669
9684
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
9670
- interface Props$H {
9685
+ interface Props$L {
9671
9686
  onFigureDeleted: () => void;
9672
9687
  }
9673
9688
  interface Container {
@@ -9747,7 +9762,7 @@ interface DndState {
9747
9762
  * that occurred during the drag & drop, and to position the figure on the correct pane.
9748
9763
  *
9749
9764
  */
9750
- declare class FiguresContainer extends Component<Props$H, SpreadsheetChildEnv> {
9765
+ declare class FiguresContainer extends Component<Props$L, SpreadsheetChildEnv> {
9751
9766
  static template: string;
9752
9767
  static props: {
9753
9768
  onFigureDeleted: FunctionConstructor;
@@ -9783,10 +9798,10 @@ declare class FiguresContainer extends Component<Props$H, SpreadsheetChildEnv> {
9783
9798
  private getSnapLineStyle;
9784
9799
  }
9785
9800
 
9786
- interface Props$G {
9801
+ interface Props$K {
9787
9802
  focusGrid: () => void;
9788
9803
  }
9789
- declare class GridAddRowsFooter extends Component<Props$G, SpreadsheetChildEnv> {
9804
+ declare class GridAddRowsFooter extends Component<Props$K, SpreadsheetChildEnv> {
9790
9805
  static template: string;
9791
9806
  static props: {
9792
9807
  focusGrid: FunctionConstructor;
@@ -9810,7 +9825,7 @@ declare class GridAddRowsFooter extends Component<Props$G, SpreadsheetChildEnv>
9810
9825
  private onExternalClick;
9811
9826
  }
9812
9827
 
9813
- interface Props$F {
9828
+ interface Props$J {
9814
9829
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
9815
9830
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
9816
9831
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
@@ -9823,7 +9838,7 @@ interface Props$F {
9823
9838
  height: number;
9824
9839
  };
9825
9840
  }
9826
- declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
9841
+ declare class GridOverlay extends Component<Props$J, SpreadsheetChildEnv> {
9827
9842
  static template: string;
9828
9843
  static props: {
9829
9844
  onCellDoubleClicked: {
@@ -9883,12 +9898,12 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
9883
9898
  private getInteractiveIconAtEvent;
9884
9899
  }
9885
9900
 
9886
- interface Props$E {
9901
+ interface Props$I {
9887
9902
  gridRect: Rect;
9888
9903
  onClosePopover: () => void;
9889
9904
  onMouseWheel: (ev: WheelEvent) => void;
9890
9905
  }
9891
- declare class GridPopover extends Component<Props$E, SpreadsheetChildEnv> {
9906
+ declare class GridPopover extends Component<Props$I, SpreadsheetChildEnv> {
9892
9907
  static template: string;
9893
9908
  static props: {
9894
9909
  onClosePopover: FunctionConstructor;
@@ -9904,7 +9919,7 @@ declare class GridPopover extends Component<Props$E, SpreadsheetChildEnv> {
9904
9919
  get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
9905
9920
  }
9906
9921
 
9907
- interface Props$D {
9922
+ interface Props$H {
9908
9923
  headersGroups: ConsecutiveIndexes[];
9909
9924
  offset: number;
9910
9925
  headerRange: {
@@ -9912,7 +9927,7 @@ interface Props$D {
9912
9927
  end: HeaderIndex;
9913
9928
  };
9914
9929
  }
9915
- declare class UnhideRowHeaders extends Component<Props$D, SpreadsheetChildEnv> {
9930
+ declare class UnhideRowHeaders extends Component<Props$H, SpreadsheetChildEnv> {
9916
9931
  static template: string;
9917
9932
  static props: {
9918
9933
  headersGroups: ArrayConstructor;
@@ -9931,7 +9946,7 @@ declare class UnhideRowHeaders extends Component<Props$D, SpreadsheetChildEnv> {
9931
9946
  unhide(hiddenElements: HeaderIndex[]): void;
9932
9947
  isVisible(header: HeaderIndex): boolean;
9933
9948
  }
9934
- declare class UnhideColumnHeaders extends Component<Props$D, SpreadsheetChildEnv> {
9949
+ declare class UnhideColumnHeaders extends Component<Props$H, SpreadsheetChildEnv> {
9935
9950
  static template: string;
9936
9951
  static props: {
9937
9952
  headersGroups: ArrayConstructor;
@@ -10124,13 +10139,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
10124
10139
  }
10125
10140
 
10126
10141
  type Orientation$1 = "n" | "s" | "w" | "e";
10127
- interface Props$C {
10142
+ interface Props$G {
10128
10143
  zone: Zone;
10129
10144
  orientation: Orientation$1;
10130
10145
  isMoving: boolean;
10131
10146
  onMoveHighlight: (ev: PointerEvent) => void;
10132
10147
  }
10133
- declare class Border extends Component<Props$C, SpreadsheetChildEnv> {
10148
+ declare class Border extends Component<Props$G, SpreadsheetChildEnv> {
10134
10149
  static template: string;
10135
10150
  static props: {
10136
10151
  zone: ObjectConstructor;
@@ -10143,14 +10158,14 @@ declare class Border extends Component<Props$C, SpreadsheetChildEnv> {
10143
10158
  }
10144
10159
 
10145
10160
  type Orientation = "nw" | "ne" | "sw" | "se" | "n" | "s" | "e" | "w";
10146
- interface Props$B {
10161
+ interface Props$F {
10147
10162
  zone: Zone;
10148
10163
  color: Color;
10149
10164
  orientation: Orientation;
10150
10165
  isResizing: boolean;
10151
10166
  onResizeHighlight: (ev: PointerEvent, dirX: ResizeDirection, dirY: ResizeDirection) => void;
10152
10167
  }
10153
- declare class Corner extends Component<Props$B, SpreadsheetChildEnv> {
10168
+ declare class Corner extends Component<Props$F, SpreadsheetChildEnv> {
10154
10169
  static template: string;
10155
10170
  static props: {
10156
10171
  zone: ObjectConstructor;
@@ -10199,7 +10214,7 @@ declare class Highlight extends Component<HighlightProps, SpreadsheetChildEnv> {
10199
10214
 
10200
10215
  type ScrollDirection = "horizontal" | "vertical";
10201
10216
 
10202
- interface Props$A {
10217
+ interface Props$E {
10203
10218
  width: Pixel;
10204
10219
  height: Pixel;
10205
10220
  direction: ScrollDirection;
@@ -10207,7 +10222,7 @@ interface Props$A {
10207
10222
  offset: Pixel;
10208
10223
  onScroll: (offset: Pixel) => void;
10209
10224
  }
10210
- declare class ScrollBar extends Component<Props$A> {
10225
+ declare class ScrollBar extends Component<Props$E> {
10211
10226
  static props: {
10212
10227
  width: {
10213
10228
  type: NumberConstructor;
@@ -10235,10 +10250,10 @@ declare class ScrollBar extends Component<Props$A> {
10235
10250
  onScroll(ev: any): void;
10236
10251
  }
10237
10252
 
10238
- interface Props$z {
10253
+ interface Props$D {
10239
10254
  leftOffset: number;
10240
10255
  }
10241
- declare class HorizontalScrollBar extends Component<Props$z, SpreadsheetChildEnv> {
10256
+ declare class HorizontalScrollBar extends Component<Props$D, SpreadsheetChildEnv> {
10242
10257
  static props: {
10243
10258
  leftOffset: {
10244
10259
  type: NumberConstructor;
@@ -10264,10 +10279,10 @@ declare class HorizontalScrollBar extends Component<Props$z, SpreadsheetChildEnv
10264
10279
  onScroll(offset: any): void;
10265
10280
  }
10266
10281
 
10267
- interface Props$y {
10282
+ interface Props$C {
10268
10283
  topOffset: number;
10269
10284
  }
10270
- declare class VerticalScrollBar extends Component<Props$y, SpreadsheetChildEnv> {
10285
+ declare class VerticalScrollBar extends Component<Props$C, SpreadsheetChildEnv> {
10271
10286
  static props: {
10272
10287
  topOffset: {
10273
10288
  type: NumberConstructor;
@@ -10302,13 +10317,13 @@ declare class Selection extends Component<{}, SpreadsheetChildEnv> {
10302
10317
  get highlightProps(): HighlightProps;
10303
10318
  }
10304
10319
 
10305
- interface Props$x {
10320
+ interface Props$B {
10306
10321
  table: Table;
10307
10322
  }
10308
10323
  interface State$3 {
10309
10324
  highlightZone: Zone | undefined;
10310
10325
  }
10311
- declare class TableResizer extends Component<Props$x, SpreadsheetChildEnv> {
10326
+ declare class TableResizer extends Component<Props$B, SpreadsheetChildEnv> {
10312
10327
  static template: string;
10313
10328
  static props: {
10314
10329
  table: ObjectConstructor;
@@ -10337,11 +10352,11 @@ declare class TableResizer extends Component<Props$x, SpreadsheetChildEnv> {
10337
10352
  * - a vertical resizer (same, for rows)
10338
10353
  */
10339
10354
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
10340
- interface Props$w {
10355
+ interface Props$A {
10341
10356
  exposeFocus: (focus: () => void) => void;
10342
10357
  getGridSize: () => DOMDimension;
10343
10358
  }
10344
- declare class Grid extends Component<Props$w, SpreadsheetChildEnv> {
10359
+ declare class Grid extends Component<Props$A, SpreadsheetChildEnv> {
10345
10360
  static template: string;
10346
10361
  static props: {
10347
10362
  exposeFocus: FunctionConstructor;
@@ -10457,7 +10472,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
10457
10472
  private getChartDefinitionFromContextCreation;
10458
10473
  }
10459
10474
 
10460
- interface Props$v {
10475
+ interface Props$z {
10461
10476
  figureId: UID;
10462
10477
  chartPanelStore: MainChartPanelStore;
10463
10478
  }
@@ -10465,7 +10480,7 @@ interface ChartTypePickerState {
10465
10480
  popoverProps: PopoverProps | undefined;
10466
10481
  popoverStyle: string;
10467
10482
  }
10468
- declare class ChartTypePicker extends Component<Props$v, SpreadsheetChildEnv> {
10483
+ declare class ChartTypePicker extends Component<Props$z, SpreadsheetChildEnv> {
10469
10484
  static template: string;
10470
10485
  static components: {
10471
10486
  Section: typeof Section;
@@ -10501,11 +10516,11 @@ declare class ChartTypePicker extends Component<Props$v, SpreadsheetChildEnv> {
10501
10516
  private closePopover;
10502
10517
  }
10503
10518
 
10504
- interface Props$u {
10519
+ interface Props$y {
10505
10520
  onCloseSidePanel: () => void;
10506
10521
  figureId: UID;
10507
10522
  }
10508
- declare class ChartPanel extends Component<Props$u, SpreadsheetChildEnv> {
10523
+ declare class ChartPanel extends Component<Props$y, SpreadsheetChildEnv> {
10509
10524
  static template: string;
10510
10525
  static components: {
10511
10526
  Section: typeof Section;
@@ -10528,11 +10543,11 @@ declare class ChartPanel extends Component<Props$u, SpreadsheetChildEnv> {
10528
10543
  private getChartDefinition;
10529
10544
  }
10530
10545
 
10531
- interface Props$t {
10546
+ interface Props$x {
10532
10547
  onValueChange: (value: number) => void;
10533
10548
  value: number;
10534
10549
  }
10535
- declare class PieHoleSize extends Component<Props$t, SpreadsheetChildEnv> {
10550
+ declare class PieHoleSize extends Component<Props$x, SpreadsheetChildEnv> {
10536
10551
  static template: string;
10537
10552
  static components: {
10538
10553
  Section: typeof Section;
@@ -10545,13 +10560,13 @@ declare class PieHoleSize extends Component<Props$t, SpreadsheetChildEnv> {
10545
10560
  onChange(value: string): void;
10546
10561
  }
10547
10562
 
10548
- interface Props$s {
10563
+ interface Props$w {
10549
10564
  figureId: UID;
10550
10565
  definition: PieChartDefinition;
10551
10566
  canUpdateChart: (figureID: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
10552
10567
  updateChart: (figureId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
10553
10568
  }
10554
- declare class PieChartDesignPanel extends Component<Props$s, SpreadsheetChildEnv> {
10569
+ declare class PieChartDesignPanel extends Component<Props$w, SpreadsheetChildEnv> {
10555
10570
  static template: string;
10556
10571
  static components: {
10557
10572
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -10570,12 +10585,13 @@ declare class PieChartDesignPanel extends Component<Props$s, SpreadsheetChildEnv
10570
10585
  };
10571
10586
  };
10572
10587
  onPieHoleSizeChange(pieHolePercentage: number): void;
10588
+ get defaultHoleSize(): number;
10573
10589
  }
10574
10590
 
10575
- interface Props$r {
10591
+ interface Props$v {
10576
10592
  items: ActionSpec[];
10577
10593
  }
10578
- declare class CogWheelMenu extends Component<Props$r, SpreadsheetChildEnv> {
10594
+ declare class CogWheelMenu extends Component<Props$v, SpreadsheetChildEnv> {
10579
10595
  static template: string;
10580
10596
  static components: {
10581
10597
  MenuPopover: typeof MenuPopover;
@@ -10658,14 +10674,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
10658
10674
  get highlights(): Highlight$1[];
10659
10675
  }
10660
10676
 
10661
- interface Props$q {
10677
+ interface Props$u {
10662
10678
  deferUpdate: boolean;
10663
10679
  isDirty: boolean;
10664
10680
  toggleDeferUpdate: (value: boolean) => void;
10665
10681
  discard: () => void;
10666
10682
  apply: () => void;
10667
10683
  }
10668
- declare class PivotDeferUpdate extends Component<Props$q, SpreadsheetChildEnv> {
10684
+ declare class PivotDeferUpdate extends Component<Props$u, SpreadsheetChildEnv> {
10669
10685
  static template: string;
10670
10686
  static props: {
10671
10687
  deferUpdate: BooleanConstructor;
@@ -10682,11 +10698,11 @@ declare class PivotDeferUpdate extends Component<Props$q, SpreadsheetChildEnv> {
10682
10698
  get deferUpdatesTooltip(): string;
10683
10699
  }
10684
10700
 
10685
- interface Props$p {
10701
+ interface Props$t {
10686
10702
  onFieldPicked: (field: string) => void;
10687
10703
  fields: PivotField[];
10688
10704
  }
10689
- declare class AddDimensionButton extends Component<Props$p, SpreadsheetChildEnv> {
10705
+ declare class AddDimensionButton extends Component<Props$t, SpreadsheetChildEnv> {
10690
10706
  static template: string;
10691
10707
  static components: {
10692
10708
  Popover: typeof Popover;
@@ -10722,7 +10738,7 @@ declare class AddDimensionButton extends Component<Props$p, SpreadsheetChildEnv>
10722
10738
  onKeyDown(ev: KeyboardEvent): void;
10723
10739
  }
10724
10740
 
10725
- interface Props$o {
10741
+ interface Props$s {
10726
10742
  value: string;
10727
10743
  onChange: (value: string) => void;
10728
10744
  class?: string;
@@ -10730,7 +10746,7 @@ interface Props$o {
10730
10746
  placeholder?: string;
10731
10747
  autofocus?: boolean;
10732
10748
  }
10733
- declare class TextInput extends Component<Props$o, SpreadsheetChildEnv> {
10749
+ declare class TextInput extends Component<Props$s, SpreadsheetChildEnv> {
10734
10750
  static template: string;
10735
10751
  static props: {
10736
10752
  value: StringConstructor;
@@ -10760,13 +10776,13 @@ declare class TextInput extends Component<Props$o, SpreadsheetChildEnv> {
10760
10776
  onMouseUp(ev: MouseEvent): void;
10761
10777
  }
10762
10778
 
10763
- interface Props$n {
10779
+ interface Props$r {
10764
10780
  dimension: PivotCoreDimension | PivotCoreMeasure;
10765
10781
  onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
10766
10782
  onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
10767
10783
  type: "row" | "col" | "measure";
10768
10784
  }
10769
- declare class PivotDimension extends Component<Props$n, SpreadsheetChildEnv> {
10785
+ declare class PivotDimension extends Component<Props$r, SpreadsheetChildEnv> {
10770
10786
  static template: string;
10771
10787
  static props: {
10772
10788
  dimension: ObjectConstructor;
@@ -10790,13 +10806,13 @@ declare class PivotDimension extends Component<Props$n, SpreadsheetChildEnv> {
10790
10806
  updateName(name: string): void;
10791
10807
  }
10792
10808
 
10793
- interface Props$m {
10809
+ interface Props$q {
10794
10810
  dimension: PivotDimension$1;
10795
10811
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
10796
10812
  availableGranularities: Set<string>;
10797
10813
  allGranularities: string[];
10798
10814
  }
10799
- declare class PivotDimensionGranularity extends Component<Props$m, SpreadsheetChildEnv> {
10815
+ declare class PivotDimensionGranularity extends Component<Props$q, SpreadsheetChildEnv> {
10800
10816
  static template: string;
10801
10817
  static props: {
10802
10818
  dimension: ObjectConstructor;
@@ -10821,11 +10837,11 @@ declare class PivotDimensionGranularity extends Component<Props$m, SpreadsheetCh
10821
10837
  };
10822
10838
  }
10823
10839
 
10824
- interface Props$l {
10840
+ interface Props$p {
10825
10841
  dimension: PivotDimension$1;
10826
10842
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
10827
10843
  }
10828
- declare class PivotDimensionOrder extends Component<Props$l, SpreadsheetChildEnv> {
10844
+ declare class PivotDimensionOrder extends Component<Props$p, SpreadsheetChildEnv> {
10829
10845
  static template: string;
10830
10846
  static props: {
10831
10847
  dimension: ObjectConstructor;
@@ -10861,7 +10877,7 @@ declare function createPivotFormula(formulaId: string, cell: PivotTableCell): st
10861
10877
  declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: Maybe<CellValue | FunctionResultObject>): CellValue;
10862
10878
  declare function toFunctionPivotValue(value: CellValue, dimension: Pick<PivotDimension$1, "type" | "granularity">): string;
10863
10879
 
10864
- interface Props$k {
10880
+ interface Props$o {
10865
10881
  pivotId: string;
10866
10882
  definition: PivotRuntimeDefinition;
10867
10883
  measure: PivotMeasure;
@@ -10869,7 +10885,7 @@ interface Props$k {
10869
10885
  onRemoved: () => void;
10870
10886
  generateMeasureId: (fieldName: string, aggregator?: string) => string;
10871
10887
  }
10872
- declare class PivotMeasureEditor extends Component<Props$k> {
10888
+ declare class PivotMeasureEditor extends Component<Props$o> {
10873
10889
  static template: string;
10874
10890
  static components: {
10875
10891
  PivotDimension: typeof PivotDimension;
@@ -10894,11 +10910,11 @@ declare class PivotMeasureEditor extends Component<Props$k> {
10894
10910
  get isCalculatedMeasureInvalid(): boolean;
10895
10911
  }
10896
10912
 
10897
- interface Props$j {
10913
+ interface Props$n {
10898
10914
  definition: PivotRuntimeDefinition;
10899
10915
  pivotId: UID;
10900
10916
  }
10901
- declare class PivotSortSection extends Component<Props$j, SpreadsheetChildEnv> {
10917
+ declare class PivotSortSection extends Component<Props$n, SpreadsheetChildEnv> {
10902
10918
  static template: string;
10903
10919
  static components: {
10904
10920
  Section: typeof Section;
@@ -10915,7 +10931,7 @@ declare class PivotSortSection extends Component<Props$j, SpreadsheetChildEnv> {
10915
10931
  }[];
10916
10932
  }
10917
10933
 
10918
- interface Props$i {
10934
+ interface Props$m {
10919
10935
  definition: PivotRuntimeDefinition;
10920
10936
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
10921
10937
  unusedGroupableFields: PivotField[];
@@ -10926,7 +10942,7 @@ interface Props$i {
10926
10942
  getScrollableContainerEl?: () => HTMLElement;
10927
10943
  pivotId: UID;
10928
10944
  }
10929
- declare class PivotLayoutConfigurator extends Component<Props$i, SpreadsheetChildEnv> {
10945
+ declare class PivotLayoutConfigurator extends Component<Props$m, SpreadsheetChildEnv> {
10930
10946
  static template: string;
10931
10947
  static components: {
10932
10948
  AddDimensionButton: typeof AddDimensionButton;
@@ -11017,11 +11033,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
11017
11033
  private areDomainFieldsValid;
11018
11034
  }
11019
11035
 
11020
- interface Props$h {
11036
+ interface Props$l {
11021
11037
  pivotId: UID;
11022
11038
  flipAxis: () => void;
11023
11039
  }
11024
- declare class PivotTitleSection extends Component<Props$h, SpreadsheetChildEnv> {
11040
+ declare class PivotTitleSection extends Component<Props$l, SpreadsheetChildEnv> {
11025
11041
  static template: string;
11026
11042
  static components: {
11027
11043
  CogWheelMenu: typeof CogWheelMenu;
@@ -11118,6 +11134,23 @@ declare function getFirstPivotFunction(tokens: Token[]): {
11118
11134
  */
11119
11135
  declare function getNumberOfPivotFunctions(tokens: Token[]): number;
11120
11136
 
11137
+ declare class ChartDashboardMenuStore extends SpreadsheetStore {
11138
+ private chartId;
11139
+ mutators: readonly ["reset"];
11140
+ private originalChartDefinition;
11141
+ constructor(get: Get, chartId: UID);
11142
+ get changeChartTypeMenuItems(): {
11143
+ id: "line" | "bar" | "scatter" | "pie" | "radar" | "treemap" | "funnel" | "combo" | "waterfall" | "pyramid" | "geo" | "sunburst" | "scorecard" | "gauge";
11144
+ label: string;
11145
+ onClick: () => void;
11146
+ isSelected: boolean;
11147
+ iconClass: string;
11148
+ }[];
11149
+ reset(chartId: UID): void;
11150
+ private updateType;
11151
+ private getIconClasses;
11152
+ }
11153
+
11121
11154
  declare class FullScreenChart extends Component<{}, SpreadsheetChildEnv> {
11122
11155
  static template: string;
11123
11156
  static props: {};
@@ -11153,7 +11186,7 @@ interface PivotDialogValue {
11153
11186
  value: string;
11154
11187
  isMissing: boolean;
11155
11188
  }
11156
- interface Props$g {
11189
+ interface Props$k {
11157
11190
  pivotId: UID;
11158
11191
  onCellClicked: (formula: string) => void;
11159
11192
  }
@@ -11162,7 +11195,7 @@ interface TableData {
11162
11195
  rows: PivotDialogRow[];
11163
11196
  values: PivotDialogValue[][];
11164
11197
  }
11165
- declare class PivotHTMLRenderer extends Component<Props$g, SpreadsheetChildEnv> {
11198
+ declare class PivotHTMLRenderer extends Component<Props$k, SpreadsheetChildEnv> {
11166
11199
  static template: string;
11167
11200
  static components: {
11168
11201
  Checkbox: typeof Checkbox;
@@ -11219,13 +11252,13 @@ declare class PivotHTMLRenderer extends Component<Props$g, SpreadsheetChildEnv>
11219
11252
  _buildValues(id: UID, table: SpreadsheetPivotTable): PivotDialogValue[][];
11220
11253
  }
11221
11254
 
11222
- interface Props$f {
11255
+ interface Props$j {
11223
11256
  figureId: UID;
11224
11257
  definition: ChartWithDataSetDefinition;
11225
11258
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
11226
11259
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
11227
11260
  }
11228
- declare class ChartShowDataMarkers extends Component<Props$f, SpreadsheetChildEnv> {
11261
+ declare class ChartShowDataMarkers extends Component<Props$j, SpreadsheetChildEnv> {
11229
11262
  static template: string;
11230
11263
  static components: {
11231
11264
  Checkbox: typeof Checkbox;
@@ -11238,13 +11271,13 @@ declare class ChartShowDataMarkers extends Component<Props$f, SpreadsheetChildEn
11238
11271
  };
11239
11272
  }
11240
11273
 
11241
- interface Props$e {
11274
+ interface Props$i {
11242
11275
  figureId: UID;
11243
11276
  definition: ComboChartDefinition;
11244
11277
  canUpdateChart: (figureID: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
11245
11278
  updateChart: (figureId: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
11246
11279
  }
11247
- declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$e> {
11280
+ declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$i> {
11248
11281
  static template: string;
11249
11282
  static components: {
11250
11283
  ChartShowDataMarkers: typeof ChartShowDataMarkers;
@@ -11265,13 +11298,13 @@ declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$e> {
11265
11298
  getDataSeriesType(index: number): "line" | "bar";
11266
11299
  }
11267
11300
 
11268
- interface Props$d {
11301
+ interface Props$h {
11269
11302
  figureId: UID;
11270
11303
  definition: FunnelChartDefinition;
11271
11304
  canUpdateChart: (figureID: UID, definition: Partial<FunnelChartDefinition>) => DispatchResult;
11272
11305
  updateChart: (figureId: UID, definition: Partial<FunnelChartDefinition>) => DispatchResult;
11273
11306
  }
11274
- declare class FunnelChartDesignPanel extends Component<Props$d, SpreadsheetChildEnv> {
11307
+ declare class FunnelChartDesignPanel extends Component<Props$h, SpreadsheetChildEnv> {
11275
11308
  static template: string;
11276
11309
  static components: {
11277
11310
  ChartShowValues: typeof ChartShowValues;
@@ -11293,13 +11326,13 @@ declare class FunnelChartDesignPanel extends Component<Props$d, SpreadsheetChild
11293
11326
  updateFunnelItemColor(index: number, color: string): void;
11294
11327
  }
11295
11328
 
11296
- interface Props$c {
11329
+ interface Props$g {
11297
11330
  figureId: UID;
11298
11331
  definition: GeoChartDefinition;
11299
11332
  canUpdateChart: (figureID: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11300
11333
  updateChart: (figureId: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11301
11334
  }
11302
- declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$c> {
11335
+ declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$g> {
11303
11336
  static template: string;
11304
11337
  static components: {
11305
11338
  RoundColorPicker: typeof RoundColorPicker;
@@ -11323,12 +11356,12 @@ declare class GeoChartDesignPanel extends ChartWithAxisDesignPanel<Props$c> {
11323
11356
  setCustomColorScaleColor(colorType: "minColor" | "midColor" | "maxColor", color: Color): void;
11324
11357
  }
11325
11358
 
11326
- interface Props$b {
11359
+ interface Props$f {
11327
11360
  figureId: UID;
11328
11361
  definition: GeoChartDefinition;
11329
11362
  updateChart: (figureId: UID, definition: Partial<GeoChartDefinition>) => DispatchResult;
11330
11363
  }
11331
- declare class GeoChartRegionSelectSection extends Component<Props$b, SpreadsheetChildEnv> {
11364
+ declare class GeoChartRegionSelectSection extends Component<Props$f, SpreadsheetChildEnv> {
11332
11365
  static template: string;
11333
11366
  static components: {
11334
11367
  Section: typeof Section;
@@ -11343,13 +11376,13 @@ declare class GeoChartRegionSelectSection extends Component<Props$b, Spreadsheet
11343
11376
  get selectedRegion(): string;
11344
11377
  }
11345
11378
 
11346
- interface Props$a {
11379
+ interface Props$e {
11347
11380
  figureId: UID;
11348
11381
  definition: ComboChartDefinition;
11349
11382
  canUpdateChart: (figureID: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
11350
11383
  updateChart: (figureId: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
11351
11384
  }
11352
- declare class LineChartDesignPanel extends ChartWithAxisDesignPanel<Props$a> {
11385
+ declare class LineChartDesignPanel extends ChartWithAxisDesignPanel<Props$e> {
11353
11386
  static template: string;
11354
11387
  static components: {
11355
11388
  ChartShowDataMarkers: typeof ChartShowDataMarkers;
@@ -11363,13 +11396,13 @@ declare class LineChartDesignPanel extends ChartWithAxisDesignPanel<Props$a> {
11363
11396
  };
11364
11397
  }
11365
11398
 
11366
- interface Props$9 {
11399
+ interface Props$d {
11367
11400
  figureId: UID;
11368
11401
  definition: RadarChartDefinition;
11369
11402
  canUpdateChart: (figureID: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
11370
11403
  updateChart: (figureId: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
11371
11404
  }
11372
- declare class RadarChartDesignPanel extends Component<Props$9, SpreadsheetChildEnv> {
11405
+ declare class RadarChartDesignPanel extends Component<Props$d, SpreadsheetChildEnv> {
11373
11406
  static template: string;
11374
11407
  static components: {
11375
11408
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -11387,6 +11420,141 @@ declare class RadarChartDesignPanel extends Component<Props$9, SpreadsheetChildE
11387
11420
  };
11388
11421
  }
11389
11422
 
11423
+ interface Props$c {
11424
+ figureId: UID;
11425
+ definition: SunburstChartDefinition;
11426
+ canUpdateChart: (figureID: UID, definition: Partial<SunburstChartDefinition>) => DispatchResult;
11427
+ updateChart: (figureId: UID, definition: Partial<SunburstChartDefinition>) => DispatchResult;
11428
+ }
11429
+ declare class SunburstChartDesignPanel extends Component<Props$c, SpreadsheetChildEnv> {
11430
+ static template: string;
11431
+ static components: {
11432
+ GeneralDesignEditor: typeof GeneralDesignEditor;
11433
+ Section: typeof Section;
11434
+ SidePanelCollapsible: typeof SidePanelCollapsible;
11435
+ ChartShowValues: typeof ChartShowValues;
11436
+ Checkbox: typeof Checkbox;
11437
+ TextStyler: typeof TextStyler;
11438
+ RoundColorPicker: typeof RoundColorPicker;
11439
+ ChartLegend: typeof ChartLegend;
11440
+ PieHoleSize: typeof PieHoleSize;
11441
+ };
11442
+ static props: {
11443
+ figureId: StringConstructor;
11444
+ definition: ObjectConstructor;
11445
+ updateChart: FunctionConstructor;
11446
+ canUpdateChart: {
11447
+ type: FunctionConstructor;
11448
+ optional: boolean;
11449
+ };
11450
+ };
11451
+ defaults: {
11452
+ showValues: boolean;
11453
+ showLabels: boolean;
11454
+ valuesDesign: ChartStyle;
11455
+ };
11456
+ get showValues(): boolean;
11457
+ get showLabels(): boolean;
11458
+ get groupColors(): {
11459
+ label: string;
11460
+ color: Color;
11461
+ }[];
11462
+ onGroupColorChanged(index: number, color: string): void;
11463
+ onPieHoleSizeChange(pieHolePercentage: number): void;
11464
+ }
11465
+
11466
+ interface Props$b {
11467
+ figureId: UID;
11468
+ definition: TreeMapChartDefinition;
11469
+ onColorChanged: (colors: TreeMapCategoryColorOptions) => DispatchResult;
11470
+ }
11471
+ declare class TreeMapCategoryColors extends Component<Props$b, SpreadsheetChildEnv> {
11472
+ static template: string;
11473
+ static components: {
11474
+ Checkbox: typeof Checkbox;
11475
+ RoundColorPicker: typeof RoundColorPicker;
11476
+ };
11477
+ static props: {
11478
+ figureId: StringConstructor;
11479
+ definition: ObjectConstructor;
11480
+ onColorChanged: FunctionConstructor;
11481
+ };
11482
+ get coloringOptions(): TreeMapCategoryColorOptions;
11483
+ getTreeGroupAndColors(): chart_js_dist_types_utils._DeepPartialArray<TreeMapGroupColor>;
11484
+ onGroupColorChanged(index: number, color: string): void;
11485
+ useValueBasedGradient(useValueBasedGradient: boolean): void;
11486
+ }
11487
+
11488
+ interface Props$a {
11489
+ figureId: UID;
11490
+ definition: TreeMapChartDefinition;
11491
+ onColorChanged: (colors: TreeMapColorScaleOptions) => DispatchResult;
11492
+ }
11493
+ declare class TreeMapColorScale extends Component<Props$a, SpreadsheetChildEnv> {
11494
+ static template: string;
11495
+ static components: {
11496
+ RoundColorPicker: typeof RoundColorPicker;
11497
+ };
11498
+ static props: {
11499
+ figureId: StringConstructor;
11500
+ definition: ObjectConstructor;
11501
+ onColorChanged: FunctionConstructor;
11502
+ };
11503
+ get coloringOptions(): TreeMapColorScaleOptions;
11504
+ setColorScaleColor(point: "minColor" | "midColor" | "maxColor", color: string): void;
11505
+ }
11506
+
11507
+ interface Props$9 {
11508
+ figureId: UID;
11509
+ definition: TreeMapChartDefinition;
11510
+ canUpdateChart: (figureID: UID, definition: Partial<TreeMapChartDefinition>) => DispatchResult;
11511
+ updateChart: (figureId: UID, definition: Partial<TreeMapChartDefinition>) => DispatchResult;
11512
+ }
11513
+ declare class TreeMapChartDesignPanel extends Component<Props$9, SpreadsheetChildEnv> {
11514
+ static template: string;
11515
+ static components: {
11516
+ GeneralDesignEditor: typeof GeneralDesignEditor;
11517
+ Section: typeof Section;
11518
+ SidePanelCollapsible: typeof SidePanelCollapsible;
11519
+ ChartShowValues: typeof ChartShowValues;
11520
+ Checkbox: typeof Checkbox;
11521
+ TextStyler: typeof TextStyler;
11522
+ RoundColorPicker: typeof RoundColorPicker;
11523
+ BadgeSelection: typeof BadgeSelection;
11524
+ TreeMapCategoryColors: typeof TreeMapCategoryColors;
11525
+ TreeMapColorScale: typeof TreeMapColorScale;
11526
+ };
11527
+ static props: {
11528
+ figureId: StringConstructor;
11529
+ definition: ObjectConstructor;
11530
+ updateChart: FunctionConstructor;
11531
+ canUpdateChart: {
11532
+ type: FunctionConstructor;
11533
+ optional: boolean;
11534
+ };
11535
+ };
11536
+ private savedColors;
11537
+ defaults: {
11538
+ showHeaders: boolean;
11539
+ headerDesign: TitleDesign;
11540
+ showValues: boolean;
11541
+ showLabels: boolean;
11542
+ valuesDesign: TitleDesign;
11543
+ coloringOptions: TreeMapCategoryColorOptions;
11544
+ };
11545
+ get showHeaders(): boolean;
11546
+ get showValues(): boolean;
11547
+ get showLabels(): boolean;
11548
+ get coloringOptions(): TreeMapColoringOptions;
11549
+ changeColoringOption(option: "categoryColor" | "colorScale"): void;
11550
+ onCategoryColorChange(coloringOptions: TreeMapCategoryColorOptions): void;
11551
+ onColorScaleChange(coloringOptions: TreeMapColorScaleOptions): void;
11552
+ get coloringOptionChoices(): {
11553
+ label: string;
11554
+ value: string;
11555
+ }[];
11556
+ }
11557
+
11390
11558
  interface Props$8 {
11391
11559
  figureId: UID;
11392
11560
  definition: WaterfallChartDefinition;
@@ -12573,6 +12741,8 @@ declare const components: {
12573
12741
  WaterfallChartDesignPanel: typeof WaterfallChartDesignPanel;
12574
12742
  ComboChartDesignPanel: typeof ComboChartDesignPanel;
12575
12743
  FunnelChartDesignPanel: typeof FunnelChartDesignPanel;
12744
+ SunburstChartDesignPanel: typeof SunburstChartDesignPanel;
12745
+ TreeMapChartDesignPanel: typeof TreeMapChartDesignPanel;
12576
12746
  ChartTypePicker: typeof ChartTypePicker;
12577
12747
  FigureComponent: typeof FigureComponent;
12578
12748
  MenuPopover: typeof MenuPopover;
@@ -12602,6 +12772,7 @@ declare const hooks: {
12602
12772
  };
12603
12773
  declare const stores: {
12604
12774
  useStoreProvider: typeof useStoreProvider;
12775
+ ChartDashboardMenuStore: typeof ChartDashboardMenuStore;
12605
12776
  DependencyContainer: typeof DependencyContainer;
12606
12777
  CellPopoverStore: typeof CellPopoverStore;
12607
12778
  ComposerFocusStore: typeof ComposerFocusStore;