@odoo/o-spreadsheet 18.4.0-alpha.1 → 18.4.0-alpha.2

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.
@@ -6,7 +6,6 @@ import * as _odoo_owl from '@odoo/owl';
6
6
  import { ComponentConstructor, Component } from '@odoo/owl';
7
7
  import * as chart_js_dist_types_utils from 'chart.js/dist/types/utils';
8
8
  import * as chart_js_dist_types_geometric from 'chart.js/dist/types/geometric';
9
- import * as chart_js_dist_types_basic from 'chart.js/dist/types/basic';
10
9
 
11
10
  interface FigureInfo {
12
11
  id: UID;
@@ -232,9 +231,10 @@ interface PieChartDefinition {
232
231
  readonly aggregated?: boolean;
233
232
  readonly isDoughnut?: boolean;
234
233
  readonly showValues?: boolean;
234
+ readonly pieHolePercentage?: number;
235
235
  }
236
236
  type PieChartRuntime = {
237
- chartJsConfig: ChartConfiguration;
237
+ chartJsConfig: ChartConfiguration<"pie" | "doughnut">;
238
238
  background: Color;
239
239
  };
240
240
 
@@ -314,6 +314,7 @@ interface SunburstChartDefinition {
314
314
  readonly showLabels?: boolean;
315
315
  readonly valuesDesign?: ChartStyle;
316
316
  readonly groupColors?: (Color | undefined | null)[];
317
+ readonly pieHolePercentage?: number;
317
318
  }
318
319
  type SunburstChartRuntime = {
319
320
  chartJsConfig: ChartConfiguration<"doughnut">;
@@ -635,6 +636,7 @@ interface ChartRuntimeGenerationArgs {
635
636
  locale: Locale;
636
637
  trendDataSetsValues?: (Point[] | undefined)[];
637
638
  axisType?: AxisType;
639
+ topPadding?: number;
638
640
  }
639
641
  /** Generic definition of chart to create a runtime: omit the chart type and the dataRange of the dataSets*/
640
642
  type GenericDefinition<T extends ChartWithDataSetDefinition> = Partial<Omit<T, "dataSets" | "type">> & {
@@ -2755,6 +2757,7 @@ interface DeleteSheetCommand extends SheetDependentCommand, SheetEditingCommand
2755
2757
  interface DuplicateSheetCommand extends SheetDependentCommand {
2756
2758
  type: "DUPLICATE_SHEET";
2757
2759
  sheetIdTo: UID;
2760
+ sheetNameTo: string;
2758
2761
  }
2759
2762
  interface MoveSheetCommand extends SheetDependentCommand {
2760
2763
  type: "MOVE_SHEET";
@@ -4673,6 +4676,7 @@ declare class ChartPlugin extends CorePlugin<ChartState> implements ChartState {
4673
4676
  private addChart;
4674
4677
  private checkChartDuplicate;
4675
4678
  private checkChartExists;
4679
+ private checkChartChanged;
4676
4680
  }
4677
4681
 
4678
4682
  interface ConditionalFormatState {
@@ -5097,7 +5101,7 @@ interface SheetState {
5097
5101
  readonly cellPosition: Record<UID, CellPosition | undefined>;
5098
5102
  }
5099
5103
  declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
5100
- static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders"];
5104
+ static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders", "getDuplicateSheetName"];
5101
5105
  readonly sheetIdsMapName: Record<string, UID | undefined>;
5102
5106
  readonly orderedSheetIds: UID[];
5103
5107
  readonly sheets: Record<UID, Sheet | undefined>;
@@ -5174,7 +5178,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
5174
5178
  private hideSheet;
5175
5179
  private showSheet;
5176
5180
  private duplicateSheet;
5177
- private getDuplicateSheetName;
5181
+ getDuplicateSheetName(sheetName: string): string;
5178
5182
  private deleteSheet;
5179
5183
  /**
5180
5184
  * Delete column. This requires a lot of handling:
@@ -6544,12 +6548,20 @@ declare class Registry<T> {
6544
6548
  [key: string]: T;
6545
6549
  };
6546
6550
  /**
6547
- * Add an item to the registry
6551
+ * Add an item to the registry, you can only add if there is no item
6552
+ * already present in the registery with the given key
6553
+ *
6554
+ * Note that this also returns the registry, so another add method call can
6555
+ * be chained
6556
+ */
6557
+ add(key: string, value: T): this;
6558
+ /**
6559
+ * Replace (or add) an item to the registry
6548
6560
  *
6549
6561
  * Note that this also returns the registry, so another add method call can
6550
6562
  * be chained
6551
6563
  */
6552
- add(key: string, value: T): Registry<T>;
6564
+ replace(key: string, value: T): this;
6553
6565
  /**
6554
6566
  * Get an item from the registry
6555
6567
  */
@@ -6815,6 +6827,7 @@ interface ChartBuilder {
6815
6827
  transformDefinition(definition: ChartDefinition, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): ChartDefinition;
6816
6828
  getChartDefinitionFromContextCreation(context: ChartCreationContext): ChartDefinition;
6817
6829
  sequence: number;
6830
+ dataSeriesLimit?: number;
6818
6831
  }
6819
6832
  type ChartUICategory = keyof typeof chartCategories;
6820
6833
  declare const chartCategories: {
@@ -6841,7 +6854,7 @@ interface ChartSubtypeProperties {
6841
6854
  preview: string;
6842
6855
  }
6843
6856
 
6844
- interface Props$1g {
6857
+ interface Props$1i {
6845
6858
  label?: string;
6846
6859
  value: boolean;
6847
6860
  className?: string;
@@ -6850,7 +6863,7 @@ interface Props$1g {
6850
6863
  disabled?: boolean;
6851
6864
  onChange: (value: boolean) => void;
6852
6865
  }
6853
- declare class Checkbox extends Component<Props$1g, SpreadsheetChildEnv> {
6866
+ declare class Checkbox extends Component<Props$1i, SpreadsheetChildEnv> {
6854
6867
  static template: string;
6855
6868
  static props: {
6856
6869
  label: {
@@ -6885,10 +6898,10 @@ declare class Checkbox extends Component<Props$1g, SpreadsheetChildEnv> {
6885
6898
  onChange(ev: InputEvent): void;
6886
6899
  }
6887
6900
 
6888
- interface Props$1f {
6901
+ interface Props$1h {
6889
6902
  class?: string;
6890
6903
  }
6891
- declare class Section extends Component<Props$1f, SpreadsheetChildEnv> {
6904
+ declare class Section extends Component<Props$1h, SpreadsheetChildEnv> {
6892
6905
  static template: string;
6893
6906
  static props: {
6894
6907
  class: {
@@ -6944,7 +6957,8 @@ declare class SelectionInputStore extends SpreadsheetStore {
6944
6957
  private initialRanges;
6945
6958
  private readonly inputHasSingleRange;
6946
6959
  colors: Color[];
6947
- mutators: readonly ["resetWithRanges", "focusById", "unfocus", "addEmptyRange", "removeRange", "changeRange", "reset", "confirm", "updateColors"];
6960
+ disabledRanges: boolean[];
6961
+ mutators: readonly ["resetWithRanges", "focusById", "unfocus", "addEmptyRange", "removeRange", "changeRange", "reset", "confirm", "updateColors", "updateDisabledRanges"];
6948
6962
  private ranges;
6949
6963
  focusedRangeIndex: number | null;
6950
6964
  private inputSheetId;
@@ -6956,13 +6970,14 @@ declare class SelectionInputStore extends SpreadsheetStore {
6956
6970
  readonly renderingLayers: readonly ["Highlights"];
6957
6971
  readonly highlights: Highlight$1[];
6958
6972
  };
6959
- constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean, colors?: Color[]);
6973
+ constructor(get: Get, initialRanges?: string[], inputHasSingleRange?: boolean, colors?: Color[], disabledRanges?: boolean[]);
6960
6974
  handleEvent(event: SelectionEvent): void;
6961
6975
  handle(cmd: Command): void;
6962
6976
  changeRange(rangeId: number, value: string): void;
6963
6977
  addEmptyRange(): void;
6964
6978
  removeRange(rangeId: number): void;
6965
6979
  updateColors(colors: Color[]): void;
6980
+ updateDisabledRanges(disabledRanges: boolean[]): void;
6966
6981
  confirm(): void;
6967
6982
  reset(): void;
6968
6983
  get selectionInputValues(): string[];
@@ -6973,6 +6988,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
6973
6988
  get selectionInputs(): (RangeInputValue & {
6974
6989
  isFocused: boolean;
6975
6990
  isValidRange: boolean;
6991
+ disabled?: boolean;
6976
6992
  })[];
6977
6993
  get isResettable(): boolean;
6978
6994
  get isConfirmable(): boolean;
@@ -7022,7 +7038,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
7022
7038
  getIndex(rangeId: number | null): number | null;
7023
7039
  }
7024
7040
 
7025
- interface Props$1e {
7041
+ interface Props$1g {
7026
7042
  ranges: string[];
7027
7043
  hasSingleRange?: boolean;
7028
7044
  required?: boolean;
@@ -7033,11 +7049,14 @@ interface Props$1e {
7033
7049
  onSelectionRemoved?: (index: number) => void;
7034
7050
  onSelectionConfirmed?: () => void;
7035
7051
  colors?: Color[];
7052
+ disabledRanges?: boolean[];
7053
+ disabledRangeTitle?: string;
7036
7054
  }
7037
7055
  interface SelectionRange extends Omit<RangeInputValue, "color"> {
7038
7056
  isFocused: boolean;
7039
7057
  isValidRange: boolean;
7040
7058
  color?: Color;
7059
+ disabled?: boolean;
7041
7060
  }
7042
7061
  /**
7043
7062
  * This component can be used when the user needs to input some
@@ -7047,7 +7066,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
7047
7066
  * onSelectionChanged is called every time the input value
7048
7067
  * changes.
7049
7068
  */
7050
- declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
7069
+ declare class SelectionInput extends Component<Props$1g, SpreadsheetChildEnv> {
7051
7070
  static template: string;
7052
7071
  static props: {
7053
7072
  ranges: ArrayConstructor;
@@ -7088,6 +7107,15 @@ declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
7088
7107
  optional: boolean;
7089
7108
  default: never[];
7090
7109
  };
7110
+ disabledRanges: {
7111
+ type: ArrayConstructor;
7112
+ optional: boolean;
7113
+ default: never[];
7114
+ };
7115
+ disabledRangeTitle: {
7116
+ type: StringConstructor;
7117
+ optional: boolean;
7118
+ };
7091
7119
  };
7092
7120
  private state;
7093
7121
  private dragAndDrop;
@@ -7099,6 +7127,7 @@ declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
7099
7127
  get isInvalid(): boolean;
7100
7128
  get isConfirmable(): boolean;
7101
7129
  get isResettable(): boolean;
7130
+ get hasDisabledRanges(): boolean;
7102
7131
  setup(): void;
7103
7132
  startDragAndDrop(rangeId: number, event: MouseEvent): void;
7104
7133
  getRangeElementsRects(): DOMRect[];
@@ -7114,16 +7143,17 @@ declare class SelectionInput extends Component<Props$1e, SpreadsheetChildEnv> {
7114
7143
  confirm(): void;
7115
7144
  }
7116
7145
 
7117
- interface Props$1d {
7146
+ interface Props$1f {
7118
7147
  ranges: CustomizedDataSet[];
7119
7148
  hasSingleRange?: boolean;
7120
7149
  onSelectionChanged: (ranges: string[]) => void;
7121
7150
  onSelectionReordered?: (indexes: number[]) => void;
7122
7151
  onSelectionRemoved?: (index: number) => void;
7123
7152
  onSelectionConfirmed: () => void;
7153
+ maxNumberOfUsedRanges?: number;
7124
7154
  title?: string;
7125
7155
  }
7126
- declare class ChartDataSeries extends Component<Props$1d, SpreadsheetChildEnv> {
7156
+ declare class ChartDataSeries extends Component<Props$1f, SpreadsheetChildEnv> {
7127
7157
  static template: string;
7128
7158
  static components: {
7129
7159
  SelectionInput: typeof SelectionInput;
@@ -7149,18 +7179,23 @@ declare class ChartDataSeries extends Component<Props$1d, SpreadsheetChildEnv> {
7149
7179
  type: StringConstructor;
7150
7180
  optional: boolean;
7151
7181
  };
7182
+ maxNumberOfUsedRanges: {
7183
+ type: NumberConstructor;
7184
+ optional: boolean;
7185
+ };
7152
7186
  };
7153
7187
  get ranges(): string[];
7188
+ get disabledRanges(): boolean[];
7154
7189
  get colors(): (Color | undefined)[];
7155
7190
  get title(): string;
7156
7191
  }
7157
7192
 
7158
- interface Props$1c {
7193
+ interface Props$1e {
7159
7194
  messages: string[];
7160
7195
  msgType: "warning" | "error" | "info";
7161
7196
  singleBox?: boolean;
7162
7197
  }
7163
- declare class ValidationMessages extends Component<Props$1c, SpreadsheetChildEnv> {
7198
+ declare class ValidationMessages extends Component<Props$1e, SpreadsheetChildEnv> {
7164
7199
  static template: string;
7165
7200
  static props: {
7166
7201
  messages: ArrayConstructor;
@@ -7174,10 +7209,10 @@ declare class ValidationMessages extends Component<Props$1c, SpreadsheetChildEnv
7174
7209
  get alertBoxes(): string[][];
7175
7210
  }
7176
7211
 
7177
- interface Props$1b {
7212
+ interface Props$1d {
7178
7213
  messages: string[];
7179
7214
  }
7180
- declare class ChartErrorSection extends Component<Props$1b, SpreadsheetChildEnv> {
7215
+ declare class ChartErrorSection extends Component<Props$1d, SpreadsheetChildEnv> {
7181
7216
  static template: string;
7182
7217
  static components: {
7183
7218
  Section: typeof Section;
@@ -7191,7 +7226,7 @@ declare class ChartErrorSection extends Component<Props$1b, SpreadsheetChildEnv>
7191
7226
  };
7192
7227
  }
7193
7228
 
7194
- interface Props$1a {
7229
+ interface Props$1c {
7195
7230
  title?: string;
7196
7231
  range: string;
7197
7232
  isInvalid: boolean;
@@ -7204,7 +7239,7 @@ interface Props$1a {
7204
7239
  onChange: (value: boolean) => void;
7205
7240
  }>;
7206
7241
  }
7207
- declare class ChartLabelRange extends Component<Props$1a, SpreadsheetChildEnv> {
7242
+ declare class ChartLabelRange extends Component<Props$1c, SpreadsheetChildEnv> {
7208
7243
  static template: string;
7209
7244
  static components: {
7210
7245
  SelectionInput: typeof SelectionInput;
@@ -7225,10 +7260,10 @@ declare class ChartLabelRange extends Component<Props$1a, SpreadsheetChildEnv> {
7225
7260
  optional: boolean;
7226
7261
  };
7227
7262
  };
7228
- static defaultProps: Partial<Props$1a>;
7263
+ static defaultProps: Partial<Props$1c>;
7229
7264
  }
7230
7265
 
7231
- interface Props$19 {
7266
+ interface Props$1b {
7232
7267
  figureId: UID;
7233
7268
  definition: ChartWithDataSetDefinition;
7234
7269
  canUpdateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
@@ -7238,7 +7273,7 @@ interface ChartPanelState {
7238
7273
  datasetDispatchResult?: DispatchResult;
7239
7274
  labelsDispatchResult?: DispatchResult;
7240
7275
  }
7241
- declare class GenericChartConfigPanel extends Component<Props$19, SpreadsheetChildEnv> {
7276
+ declare class GenericChartConfigPanel extends Component<Props$1b, SpreadsheetChildEnv> {
7242
7277
  static template: string;
7243
7278
  static components: {
7244
7279
  ChartDataSeries: typeof ChartDataSeries;
@@ -7292,6 +7327,7 @@ declare class GenericChartConfigPanel extends Component<Props$19, SpreadsheetChi
7292
7327
  getLabelRange(): string;
7293
7328
  onUpdateAggregated(aggregated: boolean): void;
7294
7329
  calculateHeaderPosition(): number | undefined;
7330
+ get maxNumberOfUsedRanges(): number | undefined;
7295
7331
  }
7296
7332
 
7297
7333
  declare class BarConfigPanel extends GenericChartConfigPanel {
@@ -7300,11 +7336,11 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
7300
7336
  onUpdateStacked(stacked: boolean): void;
7301
7337
  }
7302
7338
 
7303
- interface Props$18 {
7339
+ interface Props$1a {
7304
7340
  isCollapsed: boolean;
7305
7341
  slots: any;
7306
7342
  }
7307
- declare class Collapse extends Component<Props$18, SpreadsheetChildEnv> {
7343
+ declare class Collapse extends Component<Props$1a, SpreadsheetChildEnv> {
7308
7344
  static template: string;
7309
7345
  static props: {
7310
7346
  isCollapsed: BooleanConstructor;
@@ -7343,12 +7379,12 @@ interface Choice$1 {
7343
7379
  value: string;
7344
7380
  label: string;
7345
7381
  }
7346
- interface Props$17 {
7382
+ interface Props$19 {
7347
7383
  choices: Choice$1[];
7348
7384
  onChange: (value: string) => void;
7349
7385
  selectedValue: string;
7350
7386
  }
7351
- declare class BadgeSelection extends Component<Props$17, SpreadsheetChildEnv> {
7387
+ declare class BadgeSelection extends Component<Props$19, SpreadsheetChildEnv> {
7352
7388
  static template: string;
7353
7389
  static props: {
7354
7390
  choices: ArrayConstructor;
@@ -7357,14 +7393,14 @@ declare class BadgeSelection extends Component<Props$17, SpreadsheetChildEnv> {
7357
7393
  };
7358
7394
  }
7359
7395
 
7360
- interface Props$16 {
7396
+ interface Props$18 {
7361
7397
  action: ActionSpec;
7362
7398
  hasTriangleDownIcon?: boolean;
7363
7399
  selectedColor?: string;
7364
7400
  class?: string;
7365
7401
  onClick?: (ev: MouseEvent) => void;
7366
7402
  }
7367
- declare class ActionButton extends Component<Props$16, SpreadsheetChildEnv> {
7403
+ declare class ActionButton extends Component<Props$18, SpreadsheetChildEnv> {
7368
7404
  static template: string;
7369
7405
  static props: {
7370
7406
  action: ObjectConstructor;
@@ -7549,7 +7585,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
7549
7585
  isSameColor(color1: Color, color2: Color): boolean;
7550
7586
  }
7551
7587
 
7552
- interface Props$15 {
7588
+ interface Props$17 {
7553
7589
  currentColor: string | undefined;
7554
7590
  toggleColorPicker: () => void;
7555
7591
  showColorPicker: boolean;
@@ -7560,7 +7596,7 @@ interface Props$15 {
7560
7596
  dropdownMaxHeight?: Pixel;
7561
7597
  class?: string;
7562
7598
  }
7563
- declare class ColorPickerWidget extends Component<Props$15, SpreadsheetChildEnv> {
7599
+ declare class ColorPickerWidget extends Component<Props$17, SpreadsheetChildEnv> {
7564
7600
  static template: string;
7565
7601
  static props: {
7566
7602
  currentColor: {
@@ -7621,14 +7657,14 @@ declare class CellPopoverStore extends SpreadsheetStore {
7621
7657
  interface State$4 {
7622
7658
  isOpen: boolean;
7623
7659
  }
7624
- interface Props$14 {
7660
+ interface Props$16 {
7625
7661
  currentFontSize: number;
7626
7662
  class: string;
7627
7663
  onFontSizeChanged: (fontSize: number) => void;
7628
7664
  onToggle?: () => void;
7629
7665
  onFocusInput?: () => void;
7630
7666
  }
7631
- declare class FontSizeEditor extends Component<Props$14, SpreadsheetChildEnv> {
7667
+ declare class FontSizeEditor extends Component<Props$16, SpreadsheetChildEnv> {
7632
7668
  static template: string;
7633
7669
  static props: {
7634
7670
  currentFontSize: NumberConstructor;
@@ -7666,7 +7702,7 @@ declare class FontSizeEditor extends Component<Props$14, SpreadsheetChildEnv> {
7666
7702
  onInputKeydown(ev: KeyboardEvent): void;
7667
7703
  }
7668
7704
 
7669
- interface Props$13 {
7705
+ interface Props$15 {
7670
7706
  class?: string;
7671
7707
  style: ChartStyle;
7672
7708
  updateStyle: (style: ChartStyle) => void;
@@ -7675,7 +7711,7 @@ interface Props$13 {
7675
7711
  hasHorizontalAlign?: boolean;
7676
7712
  hasBackgroundColor?: boolean;
7677
7713
  }
7678
- declare class TextStyler extends Component<Props$13, SpreadsheetChildEnv> {
7714
+ declare class TextStyler extends Component<Props$15, SpreadsheetChildEnv> {
7679
7715
  static template: string;
7680
7716
  static components: {
7681
7717
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -7743,7 +7779,7 @@ declare class TextStyler extends Component<Props$13, SpreadsheetChildEnv> {
7743
7779
  get verticalAlignActions(): ActionSpec[];
7744
7780
  }
7745
7781
 
7746
- interface Props$12 {
7782
+ interface Props$14 {
7747
7783
  title?: string;
7748
7784
  updateTitle: (title: string) => void;
7749
7785
  name?: string;
@@ -7751,7 +7787,7 @@ interface Props$12 {
7751
7787
  defaultStyle?: Partial<TitleDesign>;
7752
7788
  updateStyle: (style: TitleDesign) => void;
7753
7789
  }
7754
- declare class ChartTitle extends Component<Props$12, SpreadsheetChildEnv> {
7790
+ declare class ChartTitle extends Component<Props$14, SpreadsheetChildEnv> {
7755
7791
  static template: string;
7756
7792
  static components: {
7757
7793
  Section: typeof Section;
@@ -7784,13 +7820,13 @@ interface AxisDefinition {
7784
7820
  id: string;
7785
7821
  name: string;
7786
7822
  }
7787
- interface Props$11 {
7823
+ interface Props$13 {
7788
7824
  figureId: UID;
7789
7825
  definition: ChartWithAxisDefinition;
7790
7826
  updateChart: (figureId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
7791
7827
  axesList: AxisDefinition[];
7792
7828
  }
7793
- declare class AxisDesignEditor extends Component<Props$11, SpreadsheetChildEnv> {
7829
+ declare class AxisDesignEditor extends Component<Props$13, SpreadsheetChildEnv> {
7794
7830
  static template: string;
7795
7831
  static components: {
7796
7832
  Section: typeof Section;
@@ -7822,14 +7858,14 @@ interface Choice {
7822
7858
  value: unknown;
7823
7859
  label: string;
7824
7860
  }
7825
- interface Props$10 {
7861
+ interface Props$12 {
7826
7862
  choices: Choice[];
7827
7863
  onChange: (value: unknown) => void;
7828
7864
  selectedValue: string;
7829
7865
  name: string;
7830
7866
  direction: "horizontal" | "vertical";
7831
7867
  }
7832
- declare class RadioSelection extends Component<Props$10, SpreadsheetChildEnv> {
7868
+ declare class RadioSelection extends Component<Props$12, SpreadsheetChildEnv> {
7833
7869
  static template: string;
7834
7870
  static props: {
7835
7871
  choices: ArrayConstructor;
@@ -7848,13 +7884,13 @@ declare class RadioSelection extends Component<Props$10, SpreadsheetChildEnv> {
7848
7884
  };
7849
7885
  }
7850
7886
 
7851
- interface Props$$ {
7887
+ interface Props$11 {
7852
7888
  currentColor?: string;
7853
7889
  onColorPicked: (color: string) => void;
7854
7890
  title?: string;
7855
7891
  disableNoColor?: boolean;
7856
7892
  }
7857
- declare class RoundColorPicker extends Component<Props$$, SpreadsheetChildEnv> {
7893
+ declare class RoundColorPicker extends Component<Props$11, SpreadsheetChildEnv> {
7858
7894
  static template: string;
7859
7895
  static components: {
7860
7896
  Section: typeof Section;
@@ -7887,13 +7923,13 @@ declare class RoundColorPicker extends Component<Props$$, SpreadsheetChildEnv> {
7887
7923
  get buttonStyle(): string;
7888
7924
  }
7889
7925
 
7890
- interface Props$_ {
7926
+ interface Props$10 {
7891
7927
  figureId: UID;
7892
7928
  definition: ChartDefinition;
7893
7929
  updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
7894
7930
  defaultChartTitleFontSize?: number;
7895
7931
  }
7896
- declare class GeneralDesignEditor extends Component<Props$_, SpreadsheetChildEnv> {
7932
+ declare class GeneralDesignEditor extends Component<Props$10, SpreadsheetChildEnv> {
7897
7933
  static template: string;
7898
7934
  static components: {
7899
7935
  RoundColorPicker: typeof RoundColorPicker;
@@ -7927,12 +7963,12 @@ declare class GeneralDesignEditor extends Component<Props$_, SpreadsheetChildEnv
7927
7963
  updateChartTitleStyle(style: TitleDesign): void;
7928
7964
  }
7929
7965
 
7930
- interface Props$Z {
7966
+ interface Props$$ {
7931
7967
  figureId: UID;
7932
7968
  definition: ChartWithDataSetDefinition;
7933
7969
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7934
7970
  }
7935
- declare class ChartLegend extends Component<Props$Z, SpreadsheetChildEnv> {
7971
+ declare class ChartLegend extends Component<Props$$, SpreadsheetChildEnv> {
7936
7972
  static template: string;
7937
7973
  static components: {
7938
7974
  Section: typeof Section;
@@ -7945,13 +7981,13 @@ declare class ChartLegend extends Component<Props$Z, SpreadsheetChildEnv> {
7945
7981
  updateLegendPosition(ev: any): void;
7946
7982
  }
7947
7983
 
7948
- interface Props$Y {
7984
+ interface Props$_ {
7949
7985
  figureId: UID;
7950
7986
  definition: ChartWithDataSetDefinition;
7951
7987
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7952
7988
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7953
7989
  }
7954
- declare class SeriesDesignEditor extends Component<Props$Y, SpreadsheetChildEnv> {
7990
+ declare class SeriesDesignEditor extends Component<Props$_, SpreadsheetChildEnv> {
7955
7991
  static template: string;
7956
7992
  static components: {
7957
7993
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -7979,13 +8015,13 @@ declare class SeriesDesignEditor extends Component<Props$Y, SpreadsheetChildEnv>
7979
8015
  getDataSeriesLabel(): string | undefined;
7980
8016
  }
7981
8017
 
7982
- interface Props$X {
8018
+ interface Props$Z {
7983
8019
  figureId: UID;
7984
8020
  definition: ChartWithDataSetDefinition;
7985
8021
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7986
8022
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7987
8023
  }
7988
- declare class SeriesWithAxisDesignEditor extends Component<Props$X, SpreadsheetChildEnv> {
8024
+ declare class SeriesWithAxisDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
7989
8025
  static template: string;
7990
8026
  static components: {
7991
8027
  SeriesDesignEditor: typeof SeriesDesignEditor;
@@ -8026,13 +8062,13 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$X, SpreadsheetC
8026
8062
  updateTrendLineValue(index: number, config: any): void;
8027
8063
  }
8028
8064
 
8029
- interface Props$W {
8065
+ interface Props$Y {
8030
8066
  figureId: UID;
8031
8067
  definition: ChartWithDataSetDefinition;
8032
8068
  canUpdateChart: (figureID: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8033
8069
  updateChart: (figureId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8034
8070
  }
8035
- declare class ChartWithAxisDesignPanel<P extends Props$W = Props$W> extends Component<P, SpreadsheetChildEnv> {
8071
+ declare class ChartWithAxisDesignPanel<P extends Props$Y = Props$Y> extends Component<P, SpreadsheetChildEnv> {
8036
8072
  static template: string;
8037
8073
  static components: {
8038
8074
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8052,13 +8088,13 @@ declare class ChartWithAxisDesignPanel<P extends Props$W = Props$W> extends Comp
8052
8088
  get axesList(): AxisDefinition[];
8053
8089
  }
8054
8090
 
8055
- interface Props$V {
8091
+ interface Props$X {
8056
8092
  figureId: UID;
8057
8093
  definition: GaugeChartDefinition;
8058
8094
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8059
8095
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8060
8096
  }
8061
- declare class GaugeChartConfigPanel extends Component<Props$V, SpreadsheetChildEnv> {
8097
+ declare class GaugeChartConfigPanel extends Component<Props$X, SpreadsheetChildEnv> {
8062
8098
  static template: string;
8063
8099
  static components: {
8064
8100
  ChartErrorSection: typeof ChartErrorSection;
@@ -8123,13 +8159,13 @@ interface EnrichedToken extends Token {
8123
8159
  isInHoverContext?: boolean;
8124
8160
  }
8125
8161
 
8126
- interface Props$U {
8162
+ interface Props$W {
8127
8163
  proposals: AutoCompleteProposal[];
8128
8164
  selectedIndex: number | undefined;
8129
8165
  onValueSelected: (value: string) => void;
8130
8166
  onValueHovered: (index: string) => void;
8131
8167
  }
8132
- declare class TextValueProvider extends Component<Props$U> {
8168
+ declare class TextValueProvider extends Component<Props$W> {
8133
8169
  static template: string;
8134
8170
  static props: {
8135
8171
  proposals: ArrayConstructor;
@@ -8185,11 +8221,11 @@ declare class ContentEditableHelper {
8185
8221
  getText(): string;
8186
8222
  }
8187
8223
 
8188
- interface Props$T {
8224
+ interface Props$V {
8189
8225
  functionDescription: FunctionDescription;
8190
8226
  argsToFocus: number[];
8191
8227
  }
8192
- declare class FunctionDescriptionProvider extends Component<Props$T, SpreadsheetChildEnv> {
8228
+ declare class FunctionDescriptionProvider extends Component<Props$V, SpreadsheetChildEnv> {
8193
8229
  static template: string;
8194
8230
  static props: {
8195
8231
  functionDescription: ObjectConstructor;
@@ -8200,15 +8236,15 @@ declare class FunctionDescriptionProvider extends Component<Props$T, Spreadsheet
8200
8236
  };
8201
8237
  private state;
8202
8238
  toggle(): void;
8203
- getContext(): Props$T;
8239
+ getContext(): Props$V;
8204
8240
  get formulaArgSeparator(): string;
8205
8241
  }
8206
8242
 
8207
- interface Props$S {
8243
+ interface Props$U {
8208
8244
  anchorRect: Rect;
8209
8245
  content: string;
8210
8246
  }
8211
- declare class SpeechBubble extends Component<Props$S, SpreadsheetChildEnv> {
8247
+ declare class SpeechBubble extends Component<Props$U, SpreadsheetChildEnv> {
8212
8248
  static template: string;
8213
8249
  static props: {
8214
8250
  content: StringConstructor;
@@ -8524,6 +8560,7 @@ declare class Composer extends Component<CellComposerProps, SpreadsheetChildEnv>
8524
8560
  onContextMenu(ev: MouseEvent): void;
8525
8561
  closeAssistant(): void;
8526
8562
  openAssistant(): void;
8563
+ onWheel(event: WheelEvent): void;
8527
8564
  private processContent;
8528
8565
  /**
8529
8566
  * Get the HTML content corresponding to the current composer token, divided by lines.
@@ -8606,7 +8643,7 @@ interface AutoCompleteProviderDefinition {
8606
8643
  }, tokenAtCursor: EnrichedToken, text: string): void;
8607
8644
  }
8608
8645
 
8609
- interface Props$R {
8646
+ interface Props$T {
8610
8647
  onConfirm: (content: string) => void;
8611
8648
  composerContent: string;
8612
8649
  defaultRangeSheetId: UID;
@@ -8618,7 +8655,7 @@ interface Props$R {
8618
8655
  invalid?: boolean;
8619
8656
  getContextualColoredSymbolToken?: (token: Token) => Color;
8620
8657
  }
8621
- declare class StandaloneComposer extends Component<Props$R, SpreadsheetChildEnv> {
8658
+ declare class StandaloneComposer extends Component<Props$T, SpreadsheetChildEnv> {
8622
8659
  static template: string;
8623
8660
  static props: {
8624
8661
  composerContent: {
@@ -8681,13 +8718,13 @@ interface PanelState {
8681
8718
  sectionRuleCancelledReasons?: CommandResult[];
8682
8719
  sectionRule: SectionRule;
8683
8720
  }
8684
- interface Props$Q {
8721
+ interface Props$S {
8685
8722
  figureId: UID;
8686
8723
  definition: GaugeChartDefinition;
8687
8724
  canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8688
8725
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8689
8726
  }
8690
- declare class GaugeChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
8727
+ declare class GaugeChartDesignPanel extends Component<Props$S, SpreadsheetChildEnv> {
8691
8728
  static template: string;
8692
8729
  static components: {
8693
8730
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -8737,13 +8774,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
8737
8774
  onUpdateCumulative(cumulative: boolean): void;
8738
8775
  }
8739
8776
 
8740
- interface Props$P {
8777
+ interface Props$R {
8741
8778
  figureId: UID;
8742
8779
  definition: ScorecardChartDefinition;
8743
8780
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
8744
8781
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
8745
8782
  }
8746
- declare class ScorecardChartConfigPanel extends Component<Props$P, SpreadsheetChildEnv> {
8783
+ declare class ScorecardChartConfigPanel extends Component<Props$R, SpreadsheetChildEnv> {
8747
8784
  static template: string;
8748
8785
  static components: {
8749
8786
  SelectionInput: typeof SelectionInput;
@@ -8772,13 +8809,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$P, SpreadsheetCh
8772
8809
  }
8773
8810
 
8774
8811
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
8775
- interface Props$O {
8812
+ interface Props$Q {
8776
8813
  figureId: UID;
8777
8814
  definition: ScorecardChartDefinition;
8778
8815
  canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
8779
8816
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
8780
8817
  }
8781
- declare class ScorecardChartDesignPanel extends Component<Props$O, SpreadsheetChildEnv> {
8818
+ declare class ScorecardChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
8782
8819
  static template: string;
8783
8820
  static components: {
8784
8821
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8873,15 +8910,15 @@ declare class MenuItemRegistry extends Registry<ActionSpec> {
8873
8910
  /**
8874
8911
  * @override
8875
8912
  */
8876
- add(key: string, value: ActionSpec): MenuItemRegistry;
8913
+ replace(key: string, value: ActionSpec): this;
8877
8914
  /**
8878
8915
  * Add a subitem to an existing item
8879
8916
  * @param path Path of items to add this subitem
8880
8917
  * @param value Subitem to add
8881
8918
  */
8882
- addChild(key: string, path: string[], value: ActionSpec | ActionBuilder, options?: {
8883
- force: boolean;
8884
- }): MenuItemRegistry;
8919
+ addChild(key: string, path: string[], value: ActionSpec | ActionBuilder): this;
8920
+ replaceChild(key: string, path: string[], value: ActionSpec | ActionBuilder): this;
8921
+ private _replaceChild;
8885
8922
  getMenuItems(): Action[];
8886
8923
  }
8887
8924
 
@@ -8925,10 +8962,10 @@ declare class ComposerFocusStore extends SpreadsheetStore {
8925
8962
  private setComposerContent;
8926
8963
  }
8927
8964
 
8928
- interface Props$N {
8965
+ interface Props$P {
8929
8966
  figureUI: FigureUI;
8930
8967
  }
8931
- declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
8968
+ declare class ChartJsComponent extends Component<Props$P, SpreadsheetChildEnv> {
8932
8969
  static template: string;
8933
8970
  static props: {
8934
8971
  figureUI: ObjectConstructor;
@@ -8945,10 +8982,10 @@ declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
8945
8982
  private updateChartJs;
8946
8983
  }
8947
8984
 
8948
- interface Props$M {
8985
+ interface Props$O {
8949
8986
  figureUI: FigureUI;
8950
8987
  }
8951
- declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
8988
+ declare class ScorecardChart$1 extends Component<Props$O, SpreadsheetChildEnv> {
8952
8989
  static template: string;
8953
8990
  static props: {
8954
8991
  figureUI: ObjectConstructor;
@@ -8961,7 +8998,7 @@ declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
8961
8998
  }
8962
8999
 
8963
9000
  type MenuItemOrSeparator = Action | "separator";
8964
- interface Props$L {
9001
+ interface Props$N {
8965
9002
  anchorRect: Rect;
8966
9003
  popoverPositioning: PopoverPropsPosition;
8967
9004
  menuItems: Action[];
@@ -8981,7 +9018,7 @@ interface MenuState {
8981
9018
  menuItems: Action[];
8982
9019
  isHoveringChild?: boolean;
8983
9020
  }
8984
- declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
9021
+ declare class Menu extends Component<Props$N, SpreadsheetChildEnv> {
8985
9022
  static template: string;
8986
9023
  static props: {
8987
9024
  anchorRect: ObjectConstructor;
@@ -9062,14 +9099,14 @@ declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
9062
9099
  }
9063
9100
 
9064
9101
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
9065
- interface Props$K {
9102
+ interface Props$M {
9066
9103
  figureUI: FigureUI;
9067
9104
  style: string;
9068
9105
  onFigureDeleted: () => void;
9069
9106
  onMouseDown: (ev: MouseEvent) => void;
9070
9107
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9071
9108
  }
9072
- declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
9109
+ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
9073
9110
  static template: string;
9074
9111
  static props: {
9075
9112
  figureUI: ObjectConstructor;
@@ -9119,17 +9156,50 @@ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
9119
9156
  private openContextMenu;
9120
9157
  }
9121
9158
 
9122
- interface Props$J {
9159
+ interface Props$L {
9160
+ figureUI: FigureUI;
9161
+ }
9162
+ declare class ChartDashboardMenu extends Component<Props$L, SpreadsheetChildEnv> {
9163
+ static template: string;
9164
+ static components: {
9165
+ Menu: typeof Menu;
9166
+ };
9167
+ static props: {
9168
+ figureUI: ObjectConstructor;
9169
+ };
9170
+ private originalChartDefinition;
9171
+ private menuState;
9172
+ setup(): void;
9173
+ getAvailableTypes(): {
9174
+ icon: string;
9175
+ chartSubtype: string;
9176
+ displayName: string;
9177
+ chartType: ChartType;
9178
+ matcher?: (definition: ChartDefinition) => boolean;
9179
+ subtypeDefinition?: Partial<ChartDefinition>;
9180
+ category: "area" | "line" | "bar" | "pie" | "column" | "hierarchical" | "misc";
9181
+ preview: string;
9182
+ }[];
9183
+ getIconClasses(type: ChartType): "" | "fa fa-bar-chart" | "fa fa-line-chart" | "fa fa-pie-chart";
9184
+ onTypeChange(type: ChartType): void;
9185
+ get selectedChartType(): "line" | "bar" | "scatter" | "pie" | "radar" | "treemap" | "funnel" | "combo" | "gauge" | "geo" | "pyramid" | "scorecard" | "sunburst" | "waterfall";
9186
+ get backgroundColor(): string;
9187
+ openContextMenu(ev: MouseEvent): void;
9188
+ }
9189
+
9190
+ interface Props$K {
9123
9191
  figureUI: FigureUI;
9124
9192
  onFigureDeleted: () => void;
9125
9193
  }
9126
- declare class ChartFigure extends Component<Props$J, SpreadsheetChildEnv> {
9194
+ declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
9127
9195
  static template: string;
9128
9196
  static props: {
9129
9197
  figureUI: ObjectConstructor;
9130
9198
  onFigureDeleted: FunctionConstructor;
9131
9199
  };
9132
- static components: {};
9200
+ static components: {
9201
+ ChartDashboardMenu: typeof ChartDashboardMenu;
9202
+ };
9133
9203
  onDoubleClick(): void;
9134
9204
  get chartType(): ChartType;
9135
9205
  get chartComponent(): new (...args: any) => Component;
@@ -9144,7 +9214,7 @@ declare class DelayedHoveredCellStore extends SpreadsheetStore {
9144
9214
  clear(): void;
9145
9215
  }
9146
9216
 
9147
- interface Props$I {
9217
+ interface Props$J {
9148
9218
  isVisible: boolean;
9149
9219
  position: Position;
9150
9220
  }
@@ -9156,7 +9226,7 @@ interface State$3 {
9156
9226
  position: Position;
9157
9227
  handler: boolean;
9158
9228
  }
9159
- declare class Autofill extends Component<Props$I, SpreadsheetChildEnv> {
9229
+ declare class Autofill extends Component<Props$J, SpreadsheetChildEnv> {
9160
9230
  static template: string;
9161
9231
  static props: {
9162
9232
  position: ObjectConstructor;
@@ -9196,7 +9266,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
9196
9266
  get tagStyle(): string;
9197
9267
  }
9198
9268
 
9199
- interface Props$H {
9269
+ interface Props$I {
9200
9270
  gridDims: DOMDimension;
9201
9271
  onInputContextMenu: (event: MouseEvent) => void;
9202
9272
  }
@@ -9204,7 +9274,7 @@ interface Props$H {
9204
9274
  * This component is a composer which positions itself on the grid at the anchor cell.
9205
9275
  * It also applies the style of the cell to the composer input.
9206
9276
  */
9207
- declare class GridComposer extends Component<Props$H, SpreadsheetChildEnv> {
9277
+ declare class GridComposer extends Component<Props$I, SpreadsheetChildEnv> {
9208
9278
  static template: string;
9209
9279
  static props: {
9210
9280
  gridDims: ObjectConstructor;
@@ -9262,10 +9332,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
9262
9332
  isPositionVisible(position: CellPosition): boolean;
9263
9333
  }
9264
9334
 
9265
- interface Props$G {
9335
+ interface Props$H {
9266
9336
  cellPosition: CellPosition;
9267
9337
  }
9268
- declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChildEnv> {
9338
+ declare class DataValidationCheckbox extends Component<Props$H, SpreadsheetChildEnv> {
9269
9339
  static template: string;
9270
9340
  static components: {
9271
9341
  Checkbox: typeof Checkbox;
@@ -9278,10 +9348,10 @@ declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChild
9278
9348
  get isDisabled(): boolean;
9279
9349
  }
9280
9350
 
9281
- interface Props$F {
9351
+ interface Props$G {
9282
9352
  cellPosition: CellPosition;
9283
9353
  }
9284
- declare class DataValidationListIcon extends Component<Props$F, SpreadsheetChildEnv> {
9354
+ declare class DataValidationListIcon extends Component<Props$G, SpreadsheetChildEnv> {
9285
9355
  static template: string;
9286
9356
  static props: {
9287
9357
  cellPosition: ObjectConstructor;
@@ -9311,7 +9381,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
9311
9381
  }
9312
9382
 
9313
9383
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
9314
- interface Props$E {
9384
+ interface Props$F {
9315
9385
  onFigureDeleted: () => void;
9316
9386
  }
9317
9387
  interface Container {
@@ -9391,7 +9461,7 @@ interface DndState {
9391
9461
  * that occurred during the drag & drop, and to position the figure on the correct pane.
9392
9462
  *
9393
9463
  */
9394
- declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
9464
+ declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
9395
9465
  static template: string;
9396
9466
  static props: {
9397
9467
  onFigureDeleted: FunctionConstructor;
@@ -9427,10 +9497,10 @@ declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
9427
9497
  private getSnapLineStyle;
9428
9498
  }
9429
9499
 
9430
- interface Props$D {
9500
+ interface Props$E {
9431
9501
  cellPosition: CellPosition;
9432
9502
  }
9433
- declare class FilterIcon extends Component<Props$D, SpreadsheetChildEnv> {
9503
+ declare class FilterIcon extends Component<Props$E, SpreadsheetChildEnv> {
9434
9504
  static template: string;
9435
9505
  static props: {
9436
9506
  cellPosition: ObjectConstructor;
@@ -9452,10 +9522,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
9452
9522
  getFilterHeadersPositions(): CellPosition[];
9453
9523
  }
9454
9524
 
9455
- interface Props$C {
9525
+ interface Props$D {
9456
9526
  focusGrid: () => void;
9457
9527
  }
9458
- declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv> {
9528
+ declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv> {
9459
9529
  static template: string;
9460
9530
  static props: {
9461
9531
  focusGrid: FunctionConstructor;
@@ -9479,7 +9549,7 @@ declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv>
9479
9549
  private onExternalClick;
9480
9550
  }
9481
9551
 
9482
- interface Props$B {
9552
+ interface Props$C {
9483
9553
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
9484
9554
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: MouseEvent) => void;
9485
9555
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
@@ -9488,7 +9558,7 @@ interface Props$B {
9488
9558
  gridOverlayDimensions: string;
9489
9559
  onFigureDeleted: () => void;
9490
9560
  }
9491
- declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
9561
+ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
9492
9562
  static template: string;
9493
9563
  static props: {
9494
9564
  onCellDoubleClicked: {
@@ -9545,12 +9615,12 @@ declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
9545
9615
  private getCartesianCoordinates;
9546
9616
  }
9547
9617
 
9548
- interface Props$A {
9618
+ interface Props$B {
9549
9619
  gridRect: Rect;
9550
9620
  onClosePopover: () => void;
9551
9621
  onMouseWheel: (ev: WheelEvent) => void;
9552
9622
  }
9553
- declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
9623
+ declare class GridPopover extends Component<Props$B, SpreadsheetChildEnv> {
9554
9624
  static template: string;
9555
9625
  static props: {
9556
9626
  onClosePopover: FunctionConstructor;
@@ -9566,7 +9636,7 @@ declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
9566
9636
  get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
9567
9637
  }
9568
9638
 
9569
- interface Props$z {
9639
+ interface Props$A {
9570
9640
  headersGroups: ConsecutiveIndexes[];
9571
9641
  offset: number;
9572
9642
  headerRange: {
@@ -9574,7 +9644,7 @@ interface Props$z {
9574
9644
  end: HeaderIndex;
9575
9645
  };
9576
9646
  }
9577
- declare class UnhideRowHeaders extends Component<Props$z, SpreadsheetChildEnv> {
9647
+ declare class UnhideRowHeaders extends Component<Props$A, SpreadsheetChildEnv> {
9578
9648
  static template: string;
9579
9649
  static props: {
9580
9650
  headersGroups: ArrayConstructor;
@@ -9593,7 +9663,7 @@ declare class UnhideRowHeaders extends Component<Props$z, SpreadsheetChildEnv> {
9593
9663
  unhide(hiddenElements: HeaderIndex[]): void;
9594
9664
  isVisible(header: HeaderIndex): boolean;
9595
9665
  }
9596
- declare class UnhideColumnHeaders extends Component<Props$z, SpreadsheetChildEnv> {
9666
+ declare class UnhideColumnHeaders extends Component<Props$A, SpreadsheetChildEnv> {
9597
9667
  static template: string;
9598
9668
  static props: {
9599
9669
  headersGroups: ArrayConstructor;
@@ -9785,13 +9855,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
9785
9855
  }
9786
9856
 
9787
9857
  type Orientation$1 = "n" | "s" | "w" | "e";
9788
- interface Props$y {
9858
+ interface Props$z {
9789
9859
  zone: Zone;
9790
9860
  orientation: Orientation$1;
9791
9861
  isMoving: boolean;
9792
9862
  onMoveHighlight: (ev: PointerEvent) => void;
9793
9863
  }
9794
- declare class Border extends Component<Props$y, SpreadsheetChildEnv> {
9864
+ declare class Border extends Component<Props$z, SpreadsheetChildEnv> {
9795
9865
  static template: string;
9796
9866
  static props: {
9797
9867
  zone: ObjectConstructor;
@@ -9804,14 +9874,14 @@ declare class Border extends Component<Props$y, SpreadsheetChildEnv> {
9804
9874
  }
9805
9875
 
9806
9876
  type Orientation = "nw" | "ne" | "sw" | "se";
9807
- interface Props$x {
9877
+ interface Props$y {
9808
9878
  zone: Zone;
9809
9879
  color: Color;
9810
9880
  orientation: Orientation;
9811
9881
  isResizing: boolean;
9812
9882
  onResizeHighlight: (ev: PointerEvent, isLeft: boolean, isTop: boolean) => void;
9813
9883
  }
9814
- declare class Corner extends Component<Props$x, SpreadsheetChildEnv> {
9884
+ declare class Corner extends Component<Props$y, SpreadsheetChildEnv> {
9815
9885
  static template: string;
9816
9886
  static props: {
9817
9887
  zone: ObjectConstructor;
@@ -9826,14 +9896,14 @@ declare class Corner extends Component<Props$x, SpreadsheetChildEnv> {
9826
9896
  onMouseDown(ev: PointerEvent): void;
9827
9897
  }
9828
9898
 
9829
- interface Props$w {
9899
+ interface Props$x {
9830
9900
  zone: Zone;
9831
9901
  color: Color;
9832
9902
  }
9833
9903
  interface HighlightState {
9834
9904
  shiftingMode: "isMoving" | "isResizing" | "none";
9835
9905
  }
9836
- declare class Highlight extends Component<Props$w, SpreadsheetChildEnv> {
9906
+ declare class Highlight extends Component<Props$x, SpreadsheetChildEnv> {
9837
9907
  static template: string;
9838
9908
  static props: {
9839
9909
  zone: ObjectConstructor;
@@ -9856,7 +9926,7 @@ declare class Highlight extends Component<Props$w, SpreadsheetChildEnv> {
9856
9926
 
9857
9927
  type ScrollDirection = "horizontal" | "vertical";
9858
9928
 
9859
- interface Props$v {
9929
+ interface Props$w {
9860
9930
  width: Pixel;
9861
9931
  height: Pixel;
9862
9932
  direction: ScrollDirection;
@@ -9864,7 +9934,7 @@ interface Props$v {
9864
9934
  offset: Pixel;
9865
9935
  onScroll: (offset: Pixel) => void;
9866
9936
  }
9867
- declare class ScrollBar extends Component<Props$v> {
9937
+ declare class ScrollBar extends Component<Props$w> {
9868
9938
  static props: {
9869
9939
  width: {
9870
9940
  type: NumberConstructor;
@@ -9892,10 +9962,10 @@ declare class ScrollBar extends Component<Props$v> {
9892
9962
  onScroll(ev: any): void;
9893
9963
  }
9894
9964
 
9895
- interface Props$u {
9965
+ interface Props$v {
9896
9966
  leftOffset: number;
9897
9967
  }
9898
- declare class HorizontalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
9968
+ declare class HorizontalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
9899
9969
  static props: {
9900
9970
  leftOffset: {
9901
9971
  type: NumberConstructor;
@@ -9921,10 +9991,10 @@ declare class HorizontalScrollBar extends Component<Props$u, SpreadsheetChildEnv
9921
9991
  onScroll(offset: any): void;
9922
9992
  }
9923
9993
 
9924
- interface Props$t {
9994
+ interface Props$u {
9925
9995
  topOffset: number;
9926
9996
  }
9927
- declare class VerticalScrollBar extends Component<Props$t, SpreadsheetChildEnv> {
9997
+ declare class VerticalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
9928
9998
  static props: {
9929
9999
  topOffset: {
9930
10000
  type: NumberConstructor;
@@ -9950,13 +10020,13 @@ declare class VerticalScrollBar extends Component<Props$t, SpreadsheetChildEnv>
9950
10020
  onScroll(offset: any): void;
9951
10021
  }
9952
10022
 
9953
- interface Props$s {
10023
+ interface Props$t {
9954
10024
  table: Table;
9955
10025
  }
9956
10026
  interface State$2 {
9957
10027
  highlightZone: Zone | undefined;
9958
10028
  }
9959
- declare class TableResizer extends Component<Props$s, SpreadsheetChildEnv> {
10029
+ declare class TableResizer extends Component<Props$t, SpreadsheetChildEnv> {
9960
10030
  static template: string;
9961
10031
  static props: {
9962
10032
  table: ObjectConstructor;
@@ -9985,10 +10055,10 @@ declare class TableResizer extends Component<Props$s, SpreadsheetChildEnv> {
9985
10055
  * - a vertical resizer (same, for rows)
9986
10056
  */
9987
10057
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
9988
- interface Props$r {
10058
+ interface Props$s {
9989
10059
  exposeFocus: (focus: () => void) => void;
9990
10060
  }
9991
- declare class Grid extends Component<Props$r, SpreadsheetChildEnv> {
10061
+ declare class Grid extends Component<Props$s, SpreadsheetChildEnv> {
9992
10062
  static template: string;
9993
10063
  static props: {
9994
10064
  exposeFocus: FunctionConstructor;
@@ -10099,7 +10169,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
10099
10169
  private getChartDefinitionFromContextCreation;
10100
10170
  }
10101
10171
 
10102
- interface Props$q {
10172
+ interface Props$r {
10103
10173
  figureId: UID;
10104
10174
  chartPanelStore: MainChartPanelStore;
10105
10175
  }
@@ -10107,7 +10177,7 @@ interface ChartTypePickerState {
10107
10177
  popoverProps: PopoverProps | undefined;
10108
10178
  popoverStyle: string;
10109
10179
  }
10110
- declare class ChartTypePicker extends Component<Props$q, SpreadsheetChildEnv> {
10180
+ declare class ChartTypePicker extends Component<Props$r, SpreadsheetChildEnv> {
10111
10181
  static template: string;
10112
10182
  static components: {
10113
10183
  Section: typeof Section;
@@ -10143,11 +10213,11 @@ declare class ChartTypePicker extends Component<Props$q, SpreadsheetChildEnv> {
10143
10213
  private closePopover;
10144
10214
  }
10145
10215
 
10146
- interface Props$p {
10216
+ interface Props$q {
10147
10217
  onCloseSidePanel: () => void;
10148
10218
  figureId: UID;
10149
10219
  }
10150
- declare class ChartPanel extends Component<Props$p, SpreadsheetChildEnv> {
10220
+ declare class ChartPanel extends Component<Props$q, SpreadsheetChildEnv> {
10151
10221
  static template: string;
10152
10222
  static components: {
10153
10223
  Section: typeof Section;
@@ -10167,6 +10237,23 @@ declare class ChartPanel extends Component<Props$p, SpreadsheetChildEnv> {
10167
10237
  private getChartDefinition;
10168
10238
  }
10169
10239
 
10240
+ interface Props$p {
10241
+ onValueChange: (value: number) => void;
10242
+ value: number;
10243
+ }
10244
+ declare class PieHoleSize extends Component<Props$p, SpreadsheetChildEnv> {
10245
+ static template: string;
10246
+ static components: {
10247
+ Section: typeof Section;
10248
+ };
10249
+ static props: {
10250
+ onValueChange: FunctionConstructor;
10251
+ value: NumberConstructor;
10252
+ };
10253
+ debouncedOnChange: DebouncedFunction<(value: string) => void>;
10254
+ onChange(value: string): void;
10255
+ }
10256
+
10170
10257
  interface Props$o {
10171
10258
  figureId: UID;
10172
10259
  definition: PieChartDefinition;
@@ -10180,6 +10267,7 @@ declare class PieChartDesignPanel extends Component<Props$o, SpreadsheetChildEnv
10180
10267
  Section: typeof Section;
10181
10268
  Checkbox: typeof Checkbox;
10182
10269
  ChartLegend: typeof ChartLegend;
10270
+ PieHoleSize: typeof PieHoleSize;
10183
10271
  };
10184
10272
  static props: {
10185
10273
  figureId: StringConstructor;
@@ -10190,6 +10278,7 @@ declare class PieChartDesignPanel extends Component<Props$o, SpreadsheetChildEnv
10190
10278
  optional: boolean;
10191
10279
  };
10192
10280
  };
10281
+ onPieHoleSizeChange(pieHolePercentage: number): void;
10193
10282
  }
10194
10283
 
10195
10284
  interface Props$n {
@@ -10689,6 +10778,7 @@ declare class FunctionRegistry extends Registry<FunctionDescription> {
10689
10778
  [key: string]: ComputeFunction<Matrix<FunctionResultObject> | FunctionResultObject>;
10690
10779
  };
10691
10780
  add(name: string, addDescr: AddFunctionDescription): this;
10781
+ replace(name: string, addDescr: AddFunctionDescription): this;
10692
10782
  }
10693
10783
 
10694
10784
  /**
@@ -11042,6 +11132,7 @@ declare class PieChart extends AbstractChart {
11042
11132
  readonly dataSetsHaveTitle: boolean;
11043
11133
  readonly isDoughnut?: boolean;
11044
11134
  readonly showValues?: boolean;
11135
+ readonly pieHolePercentage?: number;
11045
11136
  constructor(definition: PieChartDefinition, sheetId: UID, getters: CoreGetters);
11046
11137
  static transformDefinition(definition: PieChartDefinition, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): PieChartDefinition;
11047
11138
  static validateChartDefinition(validator: Validator, definition: PieChartDefinition): CommandResult | CommandResult[];
@@ -11527,8 +11618,8 @@ declare class ToolBarRegistry {
11527
11618
  content: {
11528
11619
  [key: string]: ToolBarItem[];
11529
11620
  };
11530
- add(key: string): ToolBarRegistry;
11531
- addChild(key: string, value: ToolBarItem): ToolBarRegistry;
11621
+ add(key: string): this;
11622
+ addChild(key: string, value: ToolBarItem): this;
11532
11623
  getEntries(id: string): ToolBarItem[];
11533
11624
  getCategories(): string[];
11534
11625
  }
@@ -11753,11 +11844,12 @@ declare const registries: {
11753
11844
  [key: string]: Function;
11754
11845
  };
11755
11846
  uuidGenerator: UuidGenerator;
11756
- add(name: string, value: Omit<TopbarComponent, "id">): Registry<TopbarComponent>;
11847
+ replace(name: string, value: Omit<TopbarComponent, "id">): /*elided*/ any;
11757
11848
  getAllOrdered(): TopbarComponent[];
11758
11849
  content: {
11759
11850
  [key: string]: TopbarComponent;
11760
11851
  };
11852
+ add(key: string, value: TopbarComponent): /*elided*/ any;
11761
11853
  get(key: string): TopbarComponent;
11762
11854
  contains(key: string): boolean;
11763
11855
  getAll(): TopbarComponent[];
@@ -11783,7 +11875,10 @@ declare const registries: {
11783
11875
  supportedPivotPositionalFormulaRegistry: Registry<boolean>;
11784
11876
  pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string) => string>;
11785
11877
  migrationStepRegistry: Registry<MigrationStep>;
11786
- chartJsExtensionRegistry: Registry<chart_js.Plugin<keyof chart_js.ChartTypeRegistry, chart_js_dist_types_basic.AnyObject> | ((chart: typeof window.Chart) => void)>;
11878
+ chartJsExtensionRegistry: Registry<{
11879
+ register: (chart: typeof window.Chart) => void;
11880
+ unregister: (chart: typeof window.Chart) => void;
11881
+ }>;
11787
11882
  };
11788
11883
  declare const helpers: {
11789
11884
  arg: typeof arg;
@@ -11900,6 +11995,7 @@ declare const components: {
11900
11995
  SidePanelCollapsible: typeof SidePanelCollapsible;
11901
11996
  RadioSelection: typeof RadioSelection;
11902
11997
  GeoChartRegionSelectSection: typeof GeoChartRegionSelectSection;
11998
+ ChartDashboardMenu: typeof ChartDashboardMenu;
11903
11999
  };
11904
12000
  declare const hooks: {
11905
12001
  useDragAndDropListItems: typeof useDragAndDropListItems;
@@ -11958,7 +12054,7 @@ declare const chartHelpers: {
11958
12054
  getLineChartData(definition: GenericDefinition<LineChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
11959
12055
  getPieChartData(definition: GenericDefinition<PieChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
11960
12056
  getRadarChartData(definition: GenericDefinition<RadarChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
11961
- getGeoChartData(definition: GeoChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): GeoChartRuntimeGenerationArgs;
12057
+ getGeoChartData(definition: GeoChartDefinition, fullDataSets: DataSet[], labelRange: Range | undefined, getters: Getters): GeoChartRuntimeGenerationArgs;
11962
12058
  getFunnelChartData(definition: GenericDefinition<FunnelChartDefinition>, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
11963
12059
  getHierarchalChartData(definition: SunburstChartDefinition | TreeMapChartDefinition, dataSets: DataSet[], labelRange: Range | undefined, getters: Getters): ChartRuntimeGenerationArgs;
11964
12060
  getTrendDatasetForBarChart(config: TrendConfiguration, data: any[]): chart_js.Point[] | undefined;
@@ -11967,6 +12063,7 @@ declare const chartHelpers: {
11967
12063
  getData(getters: Getters, ds: DataSet): (CellValue | undefined)[];
11968
12064
  getChartLabelFormat(getters: Getters, range: Range | undefined, shouldRemoveFirstLabel: boolean): Format | undefined;
11969
12065
  makeDatasetsCumulative(datasets: DatasetValues[], order: "asc" | "desc"): DatasetValues[];
12066
+ getTopPaddingForDashboard(definition: GenericDefinition<PieChartDefinition | LineChartDefinition | BarChartDefinition>, getters: Getters): 0 | 30;
11970
12067
  getBarChartDatasets(definition: GenericDefinition<BarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"bar" | "line">[];
11971
12068
  getWaterfallDatasetAndLabels(definition: GenericDefinition<WaterfallChartDefinition>, args: ChartRuntimeGenerationArgs): {
11972
12069
  datasets: chart_js.ChartDataset[];
@@ -11984,7 +12081,7 @@ declare const chartHelpers: {
11984
12081
  getTreeMapChartDatasets(definition: TreeMapChartDefinition, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"treemap">[];
11985
12082
  getChartColorsGenerator(definition: GenericDefinition<ChartWithDataSetDefinition>, dataSetsSize: number): ColorGenerator;
11986
12083
  GHOST_SUNBURST_VALUE: "nullValue";
11987
- getChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12084
+ getChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>, args: ChartRuntimeGenerationArgs): chart_js_dist_types_utils._DeepPartialObject<Partial<{
11988
12085
  autoPadding: boolean;
11989
12086
  padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
11990
12087
  }>> | undefined;
@@ -12474,7 +12571,20 @@ declare const chartHelpers: {
12474
12571
  getSmartChartDefinition(zone: Zone, getters: Getters): ChartDefinition;
12475
12572
  chartToImageUrl(runtime: ChartRuntime, figure: Figure, type: ChartType): string | undefined;
12476
12573
  chartToImageFile(runtime: ChartRuntime, figure: Figure, type: ChartType): Promise<File | undefined>;
12477
- CHART_COMMON_OPTIONS: chart_js.ChartOptions;
12574
+ CHART_COMMON_OPTIONS: {
12575
+ responsive: true;
12576
+ maintainAspectRatio: false;
12577
+ elements: {
12578
+ line: {
12579
+ fill: false;
12580
+ };
12581
+ point: {
12582
+ hitRadius: number;
12583
+ };
12584
+ };
12585
+ animation: false;
12586
+ events: ("click" | "mousemove" | "mouseout" | "mouseup" | "touchmove" | "touchstart")[];
12587
+ };
12478
12588
  createGaugeChartRuntime(chart: GaugeChart, getters: Getters): GaugeChartRuntime;
12479
12589
  GaugeChart: typeof GaugeChart;
12480
12590
  createLineChartRuntime(chart: LineChart, getters: Getters): ChartJSRuntime;