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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -915,6 +915,13 @@ interface SearchOptions {
915
915
  * Sparse arrays remain sparse.
916
916
  */
917
917
  declare function deepCopy<T>(obj: T): T;
918
+ /**
919
+ * Remove quotes from a quoted string
920
+ * ```js
921
+ * unquote('"Hello"')
922
+ * > 'Hello'
923
+ * ```
924
+ */
918
925
  declare function unquote(string: string, quoteChar?: "'" | '"'): string;
919
926
  /** Replace the excel-excluded characters of a sheetName */
920
927
  declare function sanitizeSheetName(sheetName: string, replacementChar?: string): string;
@@ -3097,6 +3104,16 @@ declare class SpreadsheetPivotTable {
3097
3104
  sort(measure: string, sortedColumn: PivotSortedColumn, getValue: (measure: string, domain: PivotDomain) => FunctionResultObject): void;
3098
3105
  private rowTreeToRows;
3099
3106
  get numberOfCells(): number;
3107
+ getColumnDomainsAtDepth(depth: number): {
3108
+ type: string;
3109
+ field: string;
3110
+ value: CellValue;
3111
+ }[][];
3112
+ getRowDomainsAtDepth(depth: number): {
3113
+ type: string;
3114
+ field: string;
3115
+ value: CellValue;
3116
+ }[][];
3100
3117
  }
3101
3118
 
3102
3119
  interface InitPivotParams {
@@ -7131,7 +7148,7 @@ interface ChartSubtypeProperties {
7131
7148
  preview: string;
7132
7149
  }
7133
7150
 
7134
- interface Props$1r {
7151
+ interface Props$1s {
7135
7152
  label?: string;
7136
7153
  value: boolean;
7137
7154
  className?: string;
@@ -7140,7 +7157,7 @@ interface Props$1r {
7140
7157
  disabled?: boolean;
7141
7158
  onChange: (value: boolean) => void;
7142
7159
  }
7143
- declare class Checkbox extends Component<Props$1r, SpreadsheetChildEnv> {
7160
+ declare class Checkbox extends Component<Props$1s, SpreadsheetChildEnv> {
7144
7161
  static template: string;
7145
7162
  static props: {
7146
7163
  label: {
@@ -7175,10 +7192,10 @@ declare class Checkbox extends Component<Props$1r, SpreadsheetChildEnv> {
7175
7192
  onChange(ev: InputEvent): void;
7176
7193
  }
7177
7194
 
7178
- interface Props$1q {
7195
+ interface Props$1r {
7179
7196
  class?: string;
7180
7197
  }
7181
- declare class Section extends Component<Props$1q, SpreadsheetChildEnv> {
7198
+ declare class Section extends Component<Props$1r, SpreadsheetChildEnv> {
7182
7199
  static template: string;
7183
7200
  static props: {
7184
7201
  class: {
@@ -7343,7 +7360,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
7343
7360
  getIndex(rangeId: number | null): number | null;
7344
7361
  }
7345
7362
 
7346
- interface Props$1p {
7363
+ interface Props$1q {
7347
7364
  ranges: string[];
7348
7365
  hasSingleRange?: boolean;
7349
7366
  required?: boolean;
@@ -7371,7 +7388,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
7371
7388
  * onSelectionChanged is called every time the input value
7372
7389
  * changes.
7373
7390
  */
7374
- declare class SelectionInput extends Component<Props$1p, SpreadsheetChildEnv> {
7391
+ declare class SelectionInput extends Component<Props$1q, SpreadsheetChildEnv> {
7375
7392
  static template: string;
7376
7393
  static props: {
7377
7394
  ranges: ArrayConstructor;
@@ -7448,7 +7465,7 @@ declare class SelectionInput extends Component<Props$1p, SpreadsheetChildEnv> {
7448
7465
  confirm(): void;
7449
7466
  }
7450
7467
 
7451
- interface Props$1o {
7468
+ interface Props$1p {
7452
7469
  ranges: CustomizedDataSet[];
7453
7470
  hasSingleRange?: boolean;
7454
7471
  onSelectionChanged: (ranges: string[]) => void;
@@ -7461,7 +7478,7 @@ interface Props$1o {
7461
7478
  canChangeDatasetOrientation?: boolean;
7462
7479
  onFlipAxis?: (structure: string) => void;
7463
7480
  }
7464
- declare class ChartDataSeries extends Component<Props$1o, SpreadsheetChildEnv> {
7481
+ declare class ChartDataSeries extends Component<Props$1p, SpreadsheetChildEnv> {
7465
7482
  static template: string;
7466
7483
  static components: {
7467
7484
  SelectionInput: typeof SelectionInput;
@@ -7510,12 +7527,12 @@ declare class ChartDataSeries extends Component<Props$1o, SpreadsheetChildEnv> {
7510
7527
  get title(): string;
7511
7528
  }
7512
7529
 
7513
- interface Props$1n {
7530
+ interface Props$1o {
7514
7531
  messages: string[];
7515
7532
  msgType: "warning" | "error" | "info";
7516
7533
  singleBox?: boolean;
7517
7534
  }
7518
- declare class ValidationMessages extends Component<Props$1n, SpreadsheetChildEnv> {
7535
+ declare class ValidationMessages extends Component<Props$1o, SpreadsheetChildEnv> {
7519
7536
  static template: string;
7520
7537
  static props: {
7521
7538
  messages: ArrayConstructor;
@@ -7529,10 +7546,10 @@ declare class ValidationMessages extends Component<Props$1n, SpreadsheetChildEnv
7529
7546
  get alertBoxes(): string[][];
7530
7547
  }
7531
7548
 
7532
- interface Props$1m {
7549
+ interface Props$1n {
7533
7550
  messages: string[];
7534
7551
  }
7535
- declare class ChartErrorSection extends Component<Props$1m, SpreadsheetChildEnv> {
7552
+ declare class ChartErrorSection extends Component<Props$1n, SpreadsheetChildEnv> {
7536
7553
  static template: string;
7537
7554
  static components: {
7538
7555
  Section: typeof Section;
@@ -7546,7 +7563,7 @@ declare class ChartErrorSection extends Component<Props$1m, SpreadsheetChildEnv>
7546
7563
  };
7547
7564
  }
7548
7565
 
7549
- interface Props$1l {
7566
+ interface Props$1m {
7550
7567
  title?: string;
7551
7568
  range: string;
7552
7569
  isInvalid: boolean;
@@ -7559,7 +7576,7 @@ interface Props$1l {
7559
7576
  onChange: (value: boolean) => void;
7560
7577
  }>;
7561
7578
  }
7562
- declare class ChartLabelRange extends Component<Props$1l, SpreadsheetChildEnv> {
7579
+ declare class ChartLabelRange extends Component<Props$1m, SpreadsheetChildEnv> {
7563
7580
  static template: string;
7564
7581
  static components: {
7565
7582
  SelectionInput: typeof SelectionInput;
@@ -7580,10 +7597,10 @@ declare class ChartLabelRange extends Component<Props$1l, SpreadsheetChildEnv> {
7580
7597
  optional: boolean;
7581
7598
  };
7582
7599
  };
7583
- static defaultProps: Partial<Props$1l>;
7600
+ static defaultProps: Partial<Props$1m>;
7584
7601
  }
7585
7602
 
7586
- interface Props$1k {
7603
+ interface Props$1l {
7587
7604
  chartId: UID;
7588
7605
  definition: ChartWithDataSetDefinition;
7589
7606
  canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
@@ -7593,7 +7610,7 @@ interface ChartPanelState {
7593
7610
  datasetDispatchResult?: DispatchResult;
7594
7611
  labelsDispatchResult?: DispatchResult;
7595
7612
  }
7596
- declare class GenericChartConfigPanel extends Component<Props$1k, SpreadsheetChildEnv> {
7613
+ declare class GenericChartConfigPanel extends Component<Props$1l, SpreadsheetChildEnv> {
7597
7614
  static template: string;
7598
7615
  static components: {
7599
7616
  ChartDataSeries: typeof ChartDataSeries;
@@ -7662,11 +7679,11 @@ declare class BarConfigPanel extends GenericChartConfigPanel {
7662
7679
  onUpdateStacked(stacked: boolean): void;
7663
7680
  }
7664
7681
 
7665
- interface Props$1j {
7682
+ interface Props$1k {
7666
7683
  isCollapsed: boolean;
7667
7684
  slots: any;
7668
7685
  }
7669
- declare class Collapse extends Component<Props$1j, SpreadsheetChildEnv> {
7686
+ declare class Collapse extends Component<Props$1k, SpreadsheetChildEnv> {
7670
7687
  static template: string;
7671
7688
  static props: {
7672
7689
  isCollapsed: BooleanConstructor;
@@ -7705,12 +7722,12 @@ interface Choice$1 {
7705
7722
  value: string;
7706
7723
  label: string;
7707
7724
  }
7708
- interface Props$1i {
7725
+ interface Props$1j {
7709
7726
  choices: Choice$1[];
7710
7727
  onChange: (value: string) => void;
7711
7728
  selectedValue: string;
7712
7729
  }
7713
- declare class BadgeSelection extends Component<Props$1i, SpreadsheetChildEnv> {
7730
+ declare class BadgeSelection extends Component<Props$1j, SpreadsheetChildEnv> {
7714
7731
  static template: string;
7715
7732
  static props: {
7716
7733
  choices: ArrayConstructor;
@@ -7719,14 +7736,14 @@ declare class BadgeSelection extends Component<Props$1i, SpreadsheetChildEnv> {
7719
7736
  };
7720
7737
  }
7721
7738
 
7722
- interface Props$1h {
7739
+ interface Props$1i {
7723
7740
  action: ActionSpec;
7724
7741
  hasTriangleDownIcon?: boolean;
7725
7742
  selectedColor?: string;
7726
7743
  class?: string;
7727
7744
  onClick?: (ev: MouseEvent) => void;
7728
7745
  }
7729
- declare class ActionButton extends Component<Props$1h, SpreadsheetChildEnv> {
7746
+ declare class ActionButton extends Component<Props$1i, SpreadsheetChildEnv> {
7730
7747
  static template: string;
7731
7748
  static props: {
7732
7749
  action: ObjectConstructor;
@@ -7892,7 +7909,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
7892
7909
  isSameColor(color1: Color, color2: Color): boolean;
7893
7910
  }
7894
7911
 
7895
- interface Props$1g {
7912
+ interface Props$1h {
7896
7913
  currentColor: string | undefined;
7897
7914
  toggleColorPicker: () => void;
7898
7915
  showColorPicker: boolean;
@@ -7903,7 +7920,7 @@ interface Props$1g {
7903
7920
  dropdownMaxHeight?: Pixel;
7904
7921
  class?: string;
7905
7922
  }
7906
- declare class ColorPickerWidget extends Component<Props$1g, SpreadsheetChildEnv> {
7923
+ declare class ColorPickerWidget extends Component<Props$1h, SpreadsheetChildEnv> {
7907
7924
  static template: string;
7908
7925
  static props: {
7909
7926
  currentColor: {
@@ -7964,14 +7981,14 @@ declare class CellPopoverStore extends SpreadsheetStore {
7964
7981
  interface State$5 {
7965
7982
  isOpen: boolean;
7966
7983
  }
7967
- interface Props$1f {
7984
+ interface Props$1g {
7968
7985
  currentFontSize: number;
7969
7986
  class: string;
7970
7987
  onFontSizeChanged: (fontSize: number) => void;
7971
7988
  onToggle?: () => void;
7972
7989
  onFocusInput?: () => void;
7973
7990
  }
7974
- declare class FontSizeEditor extends Component<Props$1f, SpreadsheetChildEnv> {
7991
+ declare class FontSizeEditor extends Component<Props$1g, SpreadsheetChildEnv> {
7975
7992
  static template: string;
7976
7993
  static props: {
7977
7994
  currentFontSize: NumberConstructor;
@@ -8009,7 +8026,7 @@ declare class FontSizeEditor extends Component<Props$1f, SpreadsheetChildEnv> {
8009
8026
  onInputKeydown(ev: KeyboardEvent): void;
8010
8027
  }
8011
8028
 
8012
- interface Props$1e {
8029
+ interface Props$1f {
8013
8030
  class?: string;
8014
8031
  style: ChartStyle;
8015
8032
  updateStyle: (style: ChartStyle) => void;
@@ -8018,7 +8035,7 @@ interface Props$1e {
8018
8035
  hasHorizontalAlign?: boolean;
8019
8036
  hasBackgroundColor?: boolean;
8020
8037
  }
8021
- declare class TextStyler extends Component<Props$1e, SpreadsheetChildEnv> {
8038
+ declare class TextStyler extends Component<Props$1f, SpreadsheetChildEnv> {
8022
8039
  static template: string;
8023
8040
  static components: {
8024
8041
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -8086,7 +8103,7 @@ declare class TextStyler extends Component<Props$1e, SpreadsheetChildEnv> {
8086
8103
  get verticalAlignActions(): ActionSpec[];
8087
8104
  }
8088
8105
 
8089
- interface Props$1d {
8106
+ interface Props$1e {
8090
8107
  title?: string;
8091
8108
  placeholder?: string;
8092
8109
  updateTitle: (title: string) => void;
@@ -8095,7 +8112,7 @@ interface Props$1d {
8095
8112
  defaultStyle?: Partial<TitleDesign>;
8096
8113
  updateStyle: (style: TitleDesign) => void;
8097
8114
  }
8098
- declare class ChartTitle extends Component<Props$1d, SpreadsheetChildEnv> {
8115
+ declare class ChartTitle extends Component<Props$1e, SpreadsheetChildEnv> {
8099
8116
  static template: string;
8100
8117
  static components: {
8101
8118
  Section: typeof Section;
@@ -8132,13 +8149,13 @@ interface AxisDefinition {
8132
8149
  id: string;
8133
8150
  name: string;
8134
8151
  }
8135
- interface Props$1c {
8152
+ interface Props$1d {
8136
8153
  chartId: UID;
8137
8154
  definition: ChartWithAxisDefinition;
8138
8155
  updateChart: (chartId: UID, definition: Partial<ChartWithAxisDefinition>) => DispatchResult;
8139
8156
  axesList: AxisDefinition[];
8140
8157
  }
8141
- declare class AxisDesignEditor extends Component<Props$1c, SpreadsheetChildEnv> {
8158
+ declare class AxisDesignEditor extends Component<Props$1d, SpreadsheetChildEnv> {
8142
8159
  static template: string;
8143
8160
  static components: {
8144
8161
  Section: typeof Section;
@@ -8170,14 +8187,14 @@ interface Choice {
8170
8187
  value: unknown;
8171
8188
  label: string;
8172
8189
  }
8173
- interface Props$1b {
8190
+ interface Props$1c {
8174
8191
  choices: Choice[];
8175
8192
  onChange: (value: unknown) => void;
8176
8193
  selectedValue: string;
8177
8194
  name: string;
8178
8195
  direction: "horizontal" | "vertical";
8179
8196
  }
8180
- declare class RadioSelection extends Component<Props$1b, SpreadsheetChildEnv> {
8197
+ declare class RadioSelection extends Component<Props$1c, SpreadsheetChildEnv> {
8181
8198
  static template: string;
8182
8199
  static props: {
8183
8200
  choices: ArrayConstructor;
@@ -8196,13 +8213,13 @@ declare class RadioSelection extends Component<Props$1b, SpreadsheetChildEnv> {
8196
8213
  };
8197
8214
  }
8198
8215
 
8199
- interface Props$1a {
8216
+ interface Props$1b {
8200
8217
  currentColor?: string;
8201
8218
  onColorPicked: (color: string) => void;
8202
8219
  title?: string;
8203
8220
  disableNoColor?: boolean;
8204
8221
  }
8205
- declare class RoundColorPicker extends Component<Props$1a, SpreadsheetChildEnv> {
8222
+ declare class RoundColorPicker extends Component<Props$1b, SpreadsheetChildEnv> {
8206
8223
  static template: string;
8207
8224
  static components: {
8208
8225
  Section: typeof Section;
@@ -8235,14 +8252,14 @@ declare class RoundColorPicker extends Component<Props$1a, SpreadsheetChildEnv>
8235
8252
  get buttonStyle(): string;
8236
8253
  }
8237
8254
 
8238
- interface Props$19 {
8255
+ interface Props$1a {
8239
8256
  chartId: UID;
8240
8257
  definition: ChartDefinition;
8241
8258
  updateChart: (chartId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
8242
8259
  canUpdateChart: (chartId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
8243
8260
  defaultChartTitleFontSize?: number;
8244
8261
  }
8245
- declare class GeneralDesignEditor extends Component<Props$19, SpreadsheetChildEnv> {
8262
+ declare class GeneralDesignEditor extends Component<Props$1a, SpreadsheetChildEnv> {
8246
8263
  static template: string;
8247
8264
  static components: {
8248
8265
  RoundColorPicker: typeof RoundColorPicker;
@@ -8277,13 +8294,13 @@ declare class GeneralDesignEditor extends Component<Props$19, SpreadsheetChildEn
8277
8294
  updateChartTitleStyle(style: TitleDesign): void;
8278
8295
  }
8279
8296
 
8280
- interface Props$18 {
8297
+ interface Props$19 {
8281
8298
  chartId: UID;
8282
8299
  definition: ChartWithDataSetDefinition;
8283
8300
  updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8284
8301
  canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8285
8302
  }
8286
- declare class ChartHumanizeNumbers extends Component<Props$18, SpreadsheetChildEnv> {
8303
+ declare class ChartHumanizeNumbers extends Component<Props$19, SpreadsheetChildEnv> {
8287
8304
  static template: string;
8288
8305
  static components: {
8289
8306
  Checkbox: typeof Checkbox;
@@ -8296,13 +8313,13 @@ declare class ChartHumanizeNumbers extends Component<Props$18, SpreadsheetChildE
8296
8313
  };
8297
8314
  }
8298
8315
 
8299
- interface Props$17 {
8316
+ interface Props$18 {
8300
8317
  chartId: UID;
8301
8318
  definition: ChartWithDataSetDefinition;
8302
8319
  updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8303
8320
  canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8304
8321
  }
8305
- declare class ChartLegend extends Component<Props$17, SpreadsheetChildEnv> {
8322
+ declare class ChartLegend extends Component<Props$18, SpreadsheetChildEnv> {
8306
8323
  static template: string;
8307
8324
  static components: {
8308
8325
  Section: typeof Section;
@@ -8316,13 +8333,13 @@ declare class ChartLegend extends Component<Props$17, SpreadsheetChildEnv> {
8316
8333
  updateLegendPosition(ev: any): void;
8317
8334
  }
8318
8335
 
8319
- interface Props$16 {
8336
+ interface Props$17 {
8320
8337
  chartId: UID;
8321
8338
  definition: ChartWithDataSetDefinition;
8322
8339
  canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8323
8340
  updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8324
8341
  }
8325
- declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv> {
8342
+ declare class SeriesDesignEditor extends Component<Props$17, SpreadsheetChildEnv> {
8326
8343
  static template: string;
8327
8344
  static components: {
8328
8345
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -8350,13 +8367,13 @@ declare class SeriesDesignEditor extends Component<Props$16, SpreadsheetChildEnv
8350
8367
  getDataSeriesLabel(): string | undefined;
8351
8368
  }
8352
8369
 
8353
- interface Props$15 {
8370
+ interface Props$16 {
8354
8371
  chartId: UID;
8355
8372
  definition: ChartWithDataSetDefinition;
8356
8373
  canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8357
8374
  updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8358
8375
  }
8359
- declare class SeriesWithAxisDesignEditor extends Component<Props$15, SpreadsheetChildEnv> {
8376
+ declare class SeriesWithAxisDesignEditor extends Component<Props$16, SpreadsheetChildEnv> {
8360
8377
  static template: string;
8361
8378
  static components: {
8362
8379
  SeriesDesignEditor: typeof SeriesDesignEditor;
@@ -8397,14 +8414,14 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$15, Spreadsheet
8397
8414
  updateTrendLineValue(index: number, config: any): void;
8398
8415
  }
8399
8416
 
8400
- interface Props$14 {
8417
+ interface Props$15 {
8401
8418
  chartId: UID;
8402
8419
  definition: ChartWithDataSetDefinition;
8403
8420
  updateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8404
8421
  canUpdateChart: (chartId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
8405
8422
  defaultValue?: boolean;
8406
8423
  }
8407
- declare class ChartShowValues extends Component<Props$14, SpreadsheetChildEnv> {
8424
+ declare class ChartShowValues extends Component<Props$15, SpreadsheetChildEnv> {
8408
8425
  static template: string;
8409
8426
  static components: {
8410
8427
  Checkbox: typeof Checkbox;
@@ -8421,13 +8438,13 @@ declare class ChartShowValues extends Component<Props$14, SpreadsheetChildEnv> {
8421
8438
  };
8422
8439
  }
8423
8440
 
8424
- interface Props$13 {
8441
+ interface Props$14 {
8425
8442
  chartId: UID;
8426
8443
  definition: ChartWithDataSetDefinition;
8427
8444
  canUpdateChart: (chartId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8428
8445
  updateChart: (chartId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
8429
8446
  }
8430
- declare class ChartWithAxisDesignPanel<P extends Props$13 = Props$13> extends Component<P, SpreadsheetChildEnv> {
8447
+ declare class ChartWithAxisDesignPanel<P extends Props$14 = Props$14> extends Component<P, SpreadsheetChildEnv> {
8431
8448
  static template: string;
8432
8449
  static components: {
8433
8450
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -8448,13 +8465,13 @@ declare class ChartWithAxisDesignPanel<P extends Props$13 = Props$13> extends Co
8448
8465
  get axesList(): AxisDefinition[];
8449
8466
  }
8450
8467
 
8451
- interface Props$12 {
8468
+ interface Props$13 {
8452
8469
  chartId: UID;
8453
8470
  definition: GaugeChartDefinition;
8454
8471
  canUpdateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8455
8472
  updateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
8456
8473
  }
8457
- declare class GaugeChartConfigPanel extends Component<Props$12, SpreadsheetChildEnv> {
8474
+ declare class GaugeChartConfigPanel extends Component<Props$13, SpreadsheetChildEnv> {
8458
8475
  static template: string;
8459
8476
  static components: {
8460
8477
  ChartErrorSection: typeof ChartErrorSection;
@@ -8519,13 +8536,13 @@ interface EnrichedToken extends Token {
8519
8536
  isInHoverContext?: boolean;
8520
8537
  }
8521
8538
 
8522
- interface Props$11 {
8539
+ interface Props$12 {
8523
8540
  proposals: AutoCompleteProposal[];
8524
8541
  selectedIndex: number | undefined;
8525
8542
  onValueSelected: (value: string) => void;
8526
8543
  onValueHovered: (index: string) => void;
8527
8544
  }
8528
- declare class TextValueProvider extends Component<Props$11> {
8545
+ declare class TextValueProvider extends Component<Props$12> {
8529
8546
  static template: string;
8530
8547
  static props: {
8531
8548
  proposals: ArrayConstructor;
@@ -8582,11 +8599,11 @@ declare class ContentEditableHelper {
8582
8599
  getText(): string;
8583
8600
  }
8584
8601
 
8585
- interface Props$10 {
8602
+ interface Props$11 {
8586
8603
  functionDescription: FunctionDescription;
8587
8604
  argsToFocus: number[];
8588
8605
  }
8589
- declare class FunctionDescriptionProvider extends Component<Props$10, SpreadsheetChildEnv> {
8606
+ declare class FunctionDescriptionProvider extends Component<Props$11, SpreadsheetChildEnv> {
8590
8607
  static template: string;
8591
8608
  static props: {
8592
8609
  functionDescription: ObjectConstructor;
@@ -8597,15 +8614,15 @@ declare class FunctionDescriptionProvider extends Component<Props$10, Spreadshee
8597
8614
  };
8598
8615
  private state;
8599
8616
  toggle(): void;
8600
- getContext(): Props$10;
8617
+ getContext(): Props$11;
8601
8618
  get formulaArgSeparator(): string;
8602
8619
  }
8603
8620
 
8604
- interface Props$$ {
8621
+ interface Props$10 {
8605
8622
  anchorRect: Rect;
8606
8623
  content: string;
8607
8624
  }
8608
- declare class SpeechBubble extends Component<Props$$, SpreadsheetChildEnv> {
8625
+ declare class SpeechBubble extends Component<Props$10, SpreadsheetChildEnv> {
8609
8626
  static template: string;
8610
8627
  static props: {
8611
8628
  content: StringConstructor;
@@ -8647,7 +8664,10 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8647
8664
  private highlightStore;
8648
8665
  constructor(get: Get);
8649
8666
  protected abstract confirmEdition(content: string): void;
8650
- protected abstract getComposerContent(position: CellPosition): string;
8667
+ protected abstract getComposerContent(position: CellPosition, selection?: ComposerSelection): {
8668
+ text: string;
8669
+ adjustedSelection?: ComposerSelection;
8670
+ };
8651
8671
  abstract stopEdition(direction?: Direction$1): void;
8652
8672
  private handleEvent;
8653
8673
  changeComposerCursorSelection(start: number, end: number): void;
@@ -8770,7 +8790,10 @@ declare class CellComposerStore extends AbstractComposerStore {
8770
8790
  private onRowsRemoved;
8771
8791
  private onAddElements;
8772
8792
  protected confirmEdition(content: string): void;
8773
- protected getComposerContent(position: CellPosition): string;
8793
+ protected getComposerContent(position: CellPosition, selection?: ComposerSelection): {
8794
+ text: string;
8795
+ adjustedSelection?: ComposerSelection;
8796
+ };
8774
8797
  private getPrettifiedFormula;
8775
8798
  private numberComposerContent;
8776
8799
  /** Add headers at the end of the sheet so the formula in the composer has enough space to spread */
@@ -8791,8 +8814,8 @@ interface CellComposerProps {
8791
8814
  inputStyle?: string;
8792
8815
  rect?: Rect;
8793
8816
  delimitation?: DOMDimension;
8794
- onComposerContentFocused: () => void;
8795
- onComposerCellFocused?: (content: String) => void;
8817
+ onComposerContentFocused: (selection: ComposerSelection) => void;
8818
+ onComposerCellFocused?: (content: string) => void;
8796
8819
  onInputContextMenu?: (event: MouseEvent) => void;
8797
8820
  isDefaultFocus?: boolean;
8798
8821
  composerStore: Store<CellComposerStore>;
@@ -9008,7 +9031,7 @@ interface AutoCompleteProviderDefinition {
9008
9031
  }, tokenAtCursor: EnrichedToken, text: string): void;
9009
9032
  }
9010
9033
 
9011
- interface Props$_ {
9034
+ interface Props$$ {
9012
9035
  onConfirm: (content: string) => void;
9013
9036
  composerContent: string;
9014
9037
  defaultRangeSheetId: UID;
@@ -9020,7 +9043,7 @@ interface Props$_ {
9020
9043
  invalid?: boolean;
9021
9044
  getContextualColoredSymbolToken?: (token: Token) => Color;
9022
9045
  }
9023
- declare class StandaloneComposer extends Component<Props$_, SpreadsheetChildEnv> {
9046
+ declare class StandaloneComposer extends Component<Props$$, SpreadsheetChildEnv> {
9024
9047
  static template: string;
9025
9048
  static props: {
9026
9049
  composerContent: {
@@ -9083,13 +9106,13 @@ interface PanelState {
9083
9106
  sectionRuleCancelledReasons?: CommandResult[];
9084
9107
  sectionRule: SectionRule;
9085
9108
  }
9086
- interface Props$Z {
9109
+ interface Props$_ {
9087
9110
  chartId: UID;
9088
9111
  definition: GaugeChartDefinition;
9089
9112
  canUpdateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
9090
9113
  updateChart: (chartId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
9091
9114
  }
9092
- declare class GaugeChartDesignPanel extends Component<Props$Z, SpreadsheetChildEnv> {
9115
+ declare class GaugeChartDesignPanel extends Component<Props$_, SpreadsheetChildEnv> {
9093
9116
  static template: string;
9094
9117
  static components: {
9095
9118
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -9140,13 +9163,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
9140
9163
  onUpdateCumulative(cumulative: boolean): void;
9141
9164
  }
9142
9165
 
9143
- interface Props$Y {
9166
+ interface Props$Z {
9144
9167
  chartId: UID;
9145
9168
  definition: ScorecardChartDefinition;
9146
9169
  canUpdateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9147
9170
  updateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9148
9171
  }
9149
- declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetChildEnv> {
9172
+ declare class ScorecardChartConfigPanel extends Component<Props$Z, SpreadsheetChildEnv> {
9150
9173
  static template: string;
9151
9174
  static components: {
9152
9175
  SelectionInput: typeof SelectionInput;
@@ -9175,13 +9198,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$Y, SpreadsheetCh
9175
9198
  }
9176
9199
 
9177
9200
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
9178
- interface Props$X {
9201
+ interface Props$Y {
9179
9202
  chartId: UID;
9180
9203
  definition: ScorecardChartDefinition;
9181
9204
  canUpdateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9182
9205
  updateChart: (chartId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
9183
9206
  }
9184
- declare class ScorecardChartDesignPanel extends Component<Props$X, SpreadsheetChildEnv> {
9207
+ declare class ScorecardChartDesignPanel extends Component<Props$Y, SpreadsheetChildEnv> {
9185
9208
  static template: string;
9186
9209
  static components: {
9187
9210
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -9366,11 +9389,11 @@ declare class ChartAnimationStore extends SpreadsheetStore {
9366
9389
  enableAnimationForChart(chartId: UID): string;
9367
9390
  }
9368
9391
 
9369
- interface Props$W {
9392
+ interface Props$X {
9370
9393
  chartId: UID;
9371
9394
  isFullScreen?: boolean;
9372
9395
  }
9373
- declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9396
+ declare class ChartJsComponent extends Component<Props$X, SpreadsheetChildEnv> {
9374
9397
  static template: string;
9375
9398
  static props: {
9376
9399
  chartId: StringConstructor;
@@ -9391,7 +9414,7 @@ declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9391
9414
  get chartRuntime(): ChartJSRuntime;
9392
9415
  setup(): void;
9393
9416
  protected unmount(): void;
9394
- protected get shouldAnimate(): boolean;
9417
+ private get shouldAnimate();
9395
9418
  protected createChart(chartRuntime: ChartJSRuntime): void;
9396
9419
  protected updateChartJs(chartRuntime: ChartJSRuntime): void;
9397
9420
  private hasChartDataChanged;
@@ -9402,16 +9425,22 @@ declare class ChartJsComponent extends Component<Props$W, SpreadsheetChildEnv> {
9402
9425
  plugins?: chart_js_auto.Plugin<any, chart_js_dist_types_basic.AnyObject>[] | undefined;
9403
9426
  platform?: typeof chart_js_auto.BasePlatform;
9404
9427
  };
9428
+ private getChartDataInRuntime;
9405
9429
  get animationChartId(): string;
9406
9430
  }
9407
9431
 
9408
- interface Props$V {
9432
+ interface Props$W {
9409
9433
  chartId: UID;
9434
+ isFullScreen?: Boolean;
9410
9435
  }
9411
- declare class ScorecardChart$1 extends Component<Props$V, SpreadsheetChildEnv> {
9436
+ declare class ScorecardChart$1 extends Component<Props$W, SpreadsheetChildEnv> {
9412
9437
  static template: string;
9413
9438
  static props: {
9414
9439
  chartId: StringConstructor;
9440
+ isFullScreen: {
9441
+ type: BooleanConstructor;
9442
+ optional: boolean;
9443
+ };
9415
9444
  };
9416
9445
  private canvas;
9417
9446
  get runtime(): ScorecardChartRuntime;
@@ -9477,6 +9506,7 @@ declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
9477
9506
  getIconColor(menu: Action): string;
9478
9507
  getName(menu: Action): string;
9479
9508
  isRoot(menu: Action): boolean;
9509
+ private hasVisibleChildren;
9480
9510
  isEnabled(menu: Action): boolean;
9481
9511
  get menuStyle(): string;
9482
9512
  onMouseEnter(menu: Action, ev: PointerEvent): void;
@@ -9484,7 +9514,7 @@ declare class Menu extends Component<MenuProps, SpreadsheetChildEnv> {
9484
9514
  onClickMenu(menu: Action, ev: CustomEvent): void;
9485
9515
  }
9486
9516
 
9487
- interface Props$U {
9517
+ interface Props$V {
9488
9518
  anchorRect: Rect;
9489
9519
  popoverPositioning: PopoverPropsPosition;
9490
9520
  menuItems: Action[];
@@ -9504,7 +9534,7 @@ interface MenuState {
9504
9534
  menuItems: Action[];
9505
9535
  isHoveringChild?: boolean;
9506
9536
  }
9507
- declare class MenuPopover extends Component<Props$U, SpreadsheetChildEnv> {
9537
+ declare class MenuPopover extends Component<Props$V, SpreadsheetChildEnv> {
9508
9538
  static template: string;
9509
9539
  static props: {
9510
9540
  anchorRect: ObjectConstructor;
@@ -9584,7 +9614,7 @@ declare class MenuPopover extends Component<Props$U, SpreadsheetChildEnv> {
9584
9614
  }
9585
9615
 
9586
9616
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
9587
- interface Props$T {
9617
+ interface Props$U {
9588
9618
  figureUI: FigureUI;
9589
9619
  style: string;
9590
9620
  class: string;
@@ -9592,7 +9622,7 @@ interface Props$T {
9592
9622
  onMouseDown: (ev: MouseEvent) => void;
9593
9623
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
9594
9624
  }
9595
- declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9625
+ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
9596
9626
  static template: string;
9597
9627
  static props: {
9598
9628
  figureUI: ObjectConstructor;
@@ -9644,12 +9674,13 @@ declare class FigureComponent extends Component<Props$T, SpreadsheetChildEnv> {
9644
9674
  private postionInBoundary;
9645
9675
  onContextMenu(ev: MouseEvent): void;
9646
9676
  showMenu(): void;
9647
- private openContextMenu;
9677
+ openContextMenu(anchorRect: Rect): void;
9648
9678
  editWrapperStyle(properties: CSSProperties): void;
9649
9679
  }
9650
9680
 
9651
- interface Props$S {
9681
+ interface Props$T {
9652
9682
  chartId: UID;
9683
+ hasFullScreenButton: boolean;
9653
9684
  }
9654
9685
  interface MenuItem {
9655
9686
  id: string;
@@ -9658,13 +9689,20 @@ interface MenuItem {
9658
9689
  onClick: () => void;
9659
9690
  preview?: string;
9660
9691
  }
9661
- declare class ChartDashboardMenu extends Component<Props$S, SpreadsheetChildEnv> {
9692
+ declare class ChartDashboardMenu extends Component<Props$T, SpreadsheetChildEnv> {
9662
9693
  static template: string;
9663
9694
  static components: {
9664
9695
  MenuPopover: typeof MenuPopover;
9665
9696
  };
9666
9697
  static props: {
9667
9698
  chartId: StringConstructor;
9699
+ hasFullScreenButton: {
9700
+ type: BooleanConstructor;
9701
+ optional: boolean;
9702
+ };
9703
+ };
9704
+ static defaultProps: {
9705
+ hasFullScreenButton: boolean;
9668
9706
  };
9669
9707
  private fullScreenFigureStore;
9670
9708
  private menuState;
@@ -9675,12 +9713,14 @@ declare class ChartDashboardMenu extends Component<Props$S, SpreadsheetChildEnv>
9675
9713
  get fullScreenMenuItem(): MenuItem | undefined;
9676
9714
  }
9677
9715
 
9678
- interface Props$R {
9716
+ interface Props$S {
9679
9717
  figureUI: FigureUI;
9680
9718
  onFigureDeleted: () => void;
9681
9719
  editFigureStyle?: (properties: CSSProperties) => void;
9720
+ isFullScreen?: boolean;
9721
+ openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
9682
9722
  }
9683
- declare class ChartFigure extends Component<Props$R, SpreadsheetChildEnv> {
9723
+ declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
9684
9724
  static template: string;
9685
9725
  static props: {
9686
9726
  figureUI: ObjectConstructor;
@@ -9689,6 +9729,14 @@ declare class ChartFigure extends Component<Props$R, SpreadsheetChildEnv> {
9689
9729
  type: FunctionConstructor;
9690
9730
  optional: boolean;
9691
9731
  };
9732
+ isFullScreen: {
9733
+ type: BooleanConstructor;
9734
+ optional: boolean;
9735
+ };
9736
+ openContextMenu: {
9737
+ type: FunctionConstructor;
9738
+ optional: boolean;
9739
+ };
9692
9740
  };
9693
9741
  static components: {
9694
9742
  ChartDashboardMenu: typeof ChartDashboardMenu;
@@ -9710,7 +9758,7 @@ declare class DelayedHoveredCellStore extends SpreadsheetStore {
9710
9758
 
9711
9759
  type DnDDirection = "all" | "vertical" | "horizontal";
9712
9760
 
9713
- interface Props$Q {
9761
+ interface Props$R {
9714
9762
  isVisible: boolean;
9715
9763
  position: Position;
9716
9764
  }
@@ -9722,7 +9770,7 @@ interface State$4 {
9722
9770
  position: Position;
9723
9771
  handler: boolean;
9724
9772
  }
9725
- declare class Autofill extends Component<Props$Q, SpreadsheetChildEnv> {
9773
+ declare class Autofill extends Component<Props$R, SpreadsheetChildEnv> {
9726
9774
  static template: string;
9727
9775
  static props: {
9728
9776
  position: ObjectConstructor;
@@ -9762,7 +9810,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
9762
9810
  get tagStyle(): string;
9763
9811
  }
9764
9812
 
9765
- interface Props$P {
9813
+ interface Props$Q {
9766
9814
  gridDims: DOMDimension;
9767
9815
  onInputContextMenu: (event: MouseEvent) => void;
9768
9816
  }
@@ -9770,7 +9818,7 @@ interface Props$P {
9770
9818
  * This component is a composer which positions itself on the grid at the anchor cell.
9771
9819
  * It also applies the style of the cell to the composer input.
9772
9820
  */
9773
- declare class GridComposer extends Component<Props$P, SpreadsheetChildEnv> {
9821
+ declare class GridComposer extends Component<Props$Q, SpreadsheetChildEnv> {
9774
9822
  static template: string;
9775
9823
  static props: {
9776
9824
  gridDims: ObjectConstructor;
@@ -9814,7 +9862,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
9814
9862
  }
9815
9863
 
9816
9864
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
9817
- interface Props$O {
9865
+ interface Props$P {
9818
9866
  onFigureDeleted: () => void;
9819
9867
  }
9820
9868
  interface Container {
@@ -9895,7 +9943,7 @@ interface DndState {
9895
9943
  * that occurred during the drag & drop, and to position the figure on the correct pane.
9896
9944
  *
9897
9945
  */
9898
- declare class FiguresContainer extends Component<Props$O, SpreadsheetChildEnv> {
9946
+ declare class FiguresContainer extends Component<Props$P, SpreadsheetChildEnv> {
9899
9947
  static template: string;
9900
9948
  static props: {
9901
9949
  onFigureDeleted: FunctionConstructor;
@@ -9933,10 +9981,10 @@ declare class FiguresContainer extends Component<Props$O, SpreadsheetChildEnv> {
9933
9981
  private getCarouselOverlappingChart;
9934
9982
  }
9935
9983
 
9936
- interface Props$N {
9984
+ interface Props$O {
9937
9985
  focusGrid: () => void;
9938
9986
  }
9939
- declare class GridAddRowsFooter extends Component<Props$N, SpreadsheetChildEnv> {
9987
+ declare class GridAddRowsFooter extends Component<Props$O, SpreadsheetChildEnv> {
9940
9988
  static template: string;
9941
9989
  static props: {
9942
9990
  focusGrid: FunctionConstructor;
@@ -9960,7 +10008,7 @@ declare class GridAddRowsFooter extends Component<Props$N, SpreadsheetChildEnv>
9960
10008
  private onExternalClick;
9961
10009
  }
9962
10010
 
9963
- interface Props$M {
10011
+ interface Props$N {
9964
10012
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
9965
10013
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
9966
10014
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
@@ -9973,7 +10021,7 @@ interface Props$M {
9973
10021
  height: number;
9974
10022
  };
9975
10023
  }
9976
- declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10024
+ declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
9977
10025
  static template: string;
9978
10026
  static props: {
9979
10027
  onCellDoubleClicked: {
@@ -10033,12 +10081,12 @@ declare class GridOverlay extends Component<Props$M, SpreadsheetChildEnv> {
10033
10081
  private getInteractiveIconAtEvent;
10034
10082
  }
10035
10083
 
10036
- interface Props$L {
10084
+ interface Props$M {
10037
10085
  gridRect: Rect;
10038
10086
  onClosePopover: () => void;
10039
10087
  onMouseWheel: (ev: WheelEvent) => void;
10040
10088
  }
10041
- declare class GridPopover extends Component<Props$L, SpreadsheetChildEnv> {
10089
+ declare class GridPopover extends Component<Props$M, SpreadsheetChildEnv> {
10042
10090
  static template: string;
10043
10091
  static props: {
10044
10092
  onClosePopover: FunctionConstructor;
@@ -10053,7 +10101,7 @@ declare class GridPopover extends Component<Props$L, SpreadsheetChildEnv> {
10053
10101
  get cellPopover(): PositionedCellPopoverComponent | ClosedCellPopover;
10054
10102
  }
10055
10103
 
10056
- interface Props$K {
10104
+ interface Props$L {
10057
10105
  headersGroups: ConsecutiveIndexes[];
10058
10106
  offset: number;
10059
10107
  headerRange: {
@@ -10061,7 +10109,7 @@ interface Props$K {
10061
10109
  end: HeaderIndex;
10062
10110
  };
10063
10111
  }
10064
- declare class UnhideRowHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10112
+ declare class UnhideRowHeaders extends Component<Props$L, SpreadsheetChildEnv> {
10065
10113
  static template: string;
10066
10114
  static props: {
10067
10115
  headersGroups: ArrayConstructor;
@@ -10080,7 +10128,7 @@ declare class UnhideRowHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10080
10128
  unhide(hiddenElements: HeaderIndex[]): void;
10081
10129
  isVisible(header: HeaderIndex): boolean;
10082
10130
  }
10083
- declare class UnhideColumnHeaders extends Component<Props$K, SpreadsheetChildEnv> {
10131
+ declare class UnhideColumnHeaders extends Component<Props$L, SpreadsheetChildEnv> {
10084
10132
  static template: string;
10085
10133
  static props: {
10086
10134
  headersGroups: ArrayConstructor;
@@ -10273,13 +10321,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
10273
10321
  }
10274
10322
 
10275
10323
  type Orientation$1 = "n" | "s" | "w" | "e";
10276
- interface Props$J {
10324
+ interface Props$K {
10277
10325
  zone: Zone;
10278
10326
  orientation: Orientation$1;
10279
10327
  isMoving: boolean;
10280
10328
  onMoveHighlight: (ev: PointerEvent) => void;
10281
10329
  }
10282
- declare class Border extends Component<Props$J, SpreadsheetChildEnv> {
10330
+ declare class Border extends Component<Props$K, SpreadsheetChildEnv> {
10283
10331
  static template: string;
10284
10332
  static props: {
10285
10333
  zone: ObjectConstructor;
@@ -10292,14 +10340,14 @@ declare class Border extends Component<Props$J, SpreadsheetChildEnv> {
10292
10340
  }
10293
10341
 
10294
10342
  type Orientation = "nw" | "ne" | "sw" | "se" | "n" | "s" | "e" | "w";
10295
- interface Props$I {
10343
+ interface Props$J {
10296
10344
  zone: Zone;
10297
10345
  color: Color;
10298
10346
  orientation: Orientation;
10299
10347
  isResizing: boolean;
10300
10348
  onResizeHighlight: (ev: PointerEvent, dirX: ResizeDirection, dirY: ResizeDirection) => void;
10301
10349
  }
10302
- declare class Corner extends Component<Props$I, SpreadsheetChildEnv> {
10350
+ declare class Corner extends Component<Props$J, SpreadsheetChildEnv> {
10303
10351
  static template: string;
10304
10352
  static props: {
10305
10353
  zone: ObjectConstructor;
@@ -10348,7 +10396,7 @@ declare class Highlight extends Component<HighlightProps, SpreadsheetChildEnv> {
10348
10396
 
10349
10397
  type ScrollDirection = "horizontal" | "vertical";
10350
10398
 
10351
- interface Props$H {
10399
+ interface Props$I {
10352
10400
  width: Pixel;
10353
10401
  height: Pixel;
10354
10402
  direction: ScrollDirection;
@@ -10356,7 +10404,7 @@ interface Props$H {
10356
10404
  offset: Pixel;
10357
10405
  onScroll: (offset: Pixel) => void;
10358
10406
  }
10359
- declare class ScrollBar extends Component<Props$H> {
10407
+ declare class ScrollBar extends Component<Props$I> {
10360
10408
  static props: {
10361
10409
  width: {
10362
10410
  type: NumberConstructor;
@@ -10384,10 +10432,10 @@ declare class ScrollBar extends Component<Props$H> {
10384
10432
  onScroll(ev: any): void;
10385
10433
  }
10386
10434
 
10387
- interface Props$G {
10435
+ interface Props$H {
10388
10436
  leftOffset: number;
10389
10437
  }
10390
- declare class HorizontalScrollBar extends Component<Props$G, SpreadsheetChildEnv> {
10438
+ declare class HorizontalScrollBar extends Component<Props$H, SpreadsheetChildEnv> {
10391
10439
  static props: {
10392
10440
  leftOffset: {
10393
10441
  type: NumberConstructor;
@@ -10413,10 +10461,10 @@ declare class HorizontalScrollBar extends Component<Props$G, SpreadsheetChildEnv
10413
10461
  onScroll(offset: any): void;
10414
10462
  }
10415
10463
 
10416
- interface Props$F {
10464
+ interface Props$G {
10417
10465
  topOffset: number;
10418
10466
  }
10419
- declare class VerticalScrollBar extends Component<Props$F, SpreadsheetChildEnv> {
10467
+ declare class VerticalScrollBar extends Component<Props$G, SpreadsheetChildEnv> {
10420
10468
  static props: {
10421
10469
  topOffset: {
10422
10470
  type: NumberConstructor;
@@ -10451,13 +10499,13 @@ declare class Selection extends Component<{}, SpreadsheetChildEnv> {
10451
10499
  get highlightProps(): HighlightProps;
10452
10500
  }
10453
10501
 
10454
- interface Props$E {
10502
+ interface Props$F {
10455
10503
  table: Table;
10456
10504
  }
10457
10505
  interface State$3 {
10458
10506
  highlightZone: Zone | undefined;
10459
10507
  }
10460
- declare class TableResizer extends Component<Props$E, SpreadsheetChildEnv> {
10508
+ declare class TableResizer extends Component<Props$F, SpreadsheetChildEnv> {
10461
10509
  static template: string;
10462
10510
  static props: {
10463
10511
  table: ObjectConstructor;
@@ -10486,11 +10534,11 @@ declare class TableResizer extends Component<Props$E, SpreadsheetChildEnv> {
10486
10534
  * - a vertical resizer (same, for rows)
10487
10535
  */
10488
10536
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
10489
- interface Props$D {
10537
+ interface Props$E {
10490
10538
  exposeFocus: (focus: () => void) => void;
10491
10539
  getGridSize: () => DOMDimension;
10492
10540
  }
10493
- declare class Grid extends Component<Props$D, SpreadsheetChildEnv> {
10541
+ declare class Grid extends Component<Props$E, SpreadsheetChildEnv> {
10494
10542
  static template: string;
10495
10543
  static props: {
10496
10544
  exposeFocus: FunctionConstructor;
@@ -10606,7 +10654,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
10606
10654
  private getChartDefinitionFromContextCreation;
10607
10655
  }
10608
10656
 
10609
- interface Props$C {
10657
+ interface Props$D {
10610
10658
  chartId: UID;
10611
10659
  chartPanelStore: MainChartPanelStore;
10612
10660
  }
@@ -10614,7 +10662,7 @@ interface ChartTypePickerState {
10614
10662
  popoverProps: PopoverProps | undefined;
10615
10663
  popoverStyle: string;
10616
10664
  }
10617
- declare class ChartTypePicker extends Component<Props$C, SpreadsheetChildEnv> {
10665
+ declare class ChartTypePicker extends Component<Props$D, SpreadsheetChildEnv> {
10618
10666
  static template: string;
10619
10667
  static components: {
10620
10668
  Section: typeof Section;
@@ -10650,11 +10698,11 @@ declare class ChartTypePicker extends Component<Props$C, SpreadsheetChildEnv> {
10650
10698
  private closePopover;
10651
10699
  }
10652
10700
 
10653
- interface Props$B {
10701
+ interface Props$C {
10654
10702
  onCloseSidePanel: () => void;
10655
10703
  chartId: UID;
10656
10704
  }
10657
- declare class ChartPanel extends Component<Props$B, SpreadsheetChildEnv> {
10705
+ declare class ChartPanel extends Component<Props$C, SpreadsheetChildEnv> {
10658
10706
  static template: string;
10659
10707
  static components: {
10660
10708
  Section: typeof Section;
@@ -10677,11 +10725,11 @@ declare class ChartPanel extends Component<Props$B, SpreadsheetChildEnv> {
10677
10725
  private getChartDefinition;
10678
10726
  }
10679
10727
 
10680
- interface Props$A {
10728
+ interface Props$B {
10681
10729
  onValueChange: (value: number) => void;
10682
10730
  value: number;
10683
10731
  }
10684
- declare class PieHoleSize extends Component<Props$A, SpreadsheetChildEnv> {
10732
+ declare class PieHoleSize extends Component<Props$B, SpreadsheetChildEnv> {
10685
10733
  static template: string;
10686
10734
  static components: {
10687
10735
  Section: typeof Section;
@@ -10694,13 +10742,13 @@ declare class PieHoleSize extends Component<Props$A, SpreadsheetChildEnv> {
10694
10742
  onChange(value: string): void;
10695
10743
  }
10696
10744
 
10697
- interface Props$z {
10745
+ interface Props$A {
10698
10746
  chartId: UID;
10699
10747
  definition: PieChartDefinition;
10700
10748
  canUpdateChart: (chartId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
10701
10749
  updateChart: (chartId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
10702
10750
  }
10703
- declare class PieChartDesignPanel extends Component<Props$z, SpreadsheetChildEnv> {
10751
+ declare class PieChartDesignPanel extends Component<Props$A, SpreadsheetChildEnv> {
10704
10752
  static template: string;
10705
10753
  static components: {
10706
10754
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -10724,10 +10772,10 @@ declare class PieChartDesignPanel extends Component<Props$z, SpreadsheetChildEnv
10724
10772
  get defaultHoleSize(): number;
10725
10773
  }
10726
10774
 
10727
- interface Props$y {
10775
+ interface Props$z {
10728
10776
  items: ActionSpec[];
10729
10777
  }
10730
- declare class CogWheelMenu extends Component<Props$y, SpreadsheetChildEnv> {
10778
+ declare class CogWheelMenu extends Component<Props$z, SpreadsheetChildEnv> {
10731
10779
  static template: string;
10732
10780
  static components: {
10733
10781
  MenuPopover: typeof MenuPopover;
@@ -10810,14 +10858,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
10810
10858
  get highlights(): Highlight$1[];
10811
10859
  }
10812
10860
 
10813
- interface Props$x {
10861
+ interface Props$y {
10814
10862
  deferUpdate: boolean;
10815
10863
  isDirty: boolean;
10816
10864
  toggleDeferUpdate: (value: boolean) => void;
10817
10865
  discard: () => void;
10818
10866
  apply: () => void;
10819
10867
  }
10820
- declare class PivotDeferUpdate extends Component<Props$x, SpreadsheetChildEnv> {
10868
+ declare class PivotDeferUpdate extends Component<Props$y, SpreadsheetChildEnv> {
10821
10869
  static template: string;
10822
10870
  static props: {
10823
10871
  deferUpdate: BooleanConstructor;
@@ -10834,11 +10882,11 @@ declare class PivotDeferUpdate extends Component<Props$x, SpreadsheetChildEnv> {
10834
10882
  get deferUpdatesTooltip(): string;
10835
10883
  }
10836
10884
 
10837
- interface Props$w {
10885
+ interface Props$x {
10838
10886
  onFieldPicked: (field: string) => void;
10839
10887
  fields: PivotField[];
10840
10888
  }
10841
- declare class AddDimensionButton extends Component<Props$w, SpreadsheetChildEnv> {
10889
+ declare class AddDimensionButton extends Component<Props$x, SpreadsheetChildEnv> {
10842
10890
  static template: string;
10843
10891
  static components: {
10844
10892
  Popover: typeof Popover;
@@ -10874,7 +10922,7 @@ declare class AddDimensionButton extends Component<Props$w, SpreadsheetChildEnv>
10874
10922
  onKeyDown(ev: KeyboardEvent): void;
10875
10923
  }
10876
10924
 
10877
- interface Props$v {
10925
+ interface Props$w {
10878
10926
  value: string;
10879
10927
  onChange: (value: string) => void;
10880
10928
  class?: string;
@@ -10883,7 +10931,7 @@ interface Props$v {
10883
10931
  autofocus?: boolean;
10884
10932
  alwaysShowBorder?: boolean;
10885
10933
  }
10886
- declare class TextInput extends Component<Props$v, SpreadsheetChildEnv> {
10934
+ declare class TextInput extends Component<Props$w, SpreadsheetChildEnv> {
10887
10935
  static template: string;
10888
10936
  static props: {
10889
10937
  value: StringConstructor;
@@ -10918,13 +10966,13 @@ declare class TextInput extends Component<Props$v, SpreadsheetChildEnv> {
10918
10966
  get inputClass(): string;
10919
10967
  }
10920
10968
 
10921
- interface Props$u {
10969
+ interface Props$v {
10922
10970
  dimension: PivotCoreDimension | PivotCoreMeasure;
10923
10971
  onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
10924
10972
  onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
10925
10973
  type: "row" | "col" | "measure";
10926
10974
  }
10927
- declare class PivotDimension extends Component<Props$u, SpreadsheetChildEnv> {
10975
+ declare class PivotDimension extends Component<Props$v, SpreadsheetChildEnv> {
10928
10976
  static template: string;
10929
10977
  static props: {
10930
10978
  dimension: ObjectConstructor;
@@ -10948,13 +10996,13 @@ declare class PivotDimension extends Component<Props$u, SpreadsheetChildEnv> {
10948
10996
  updateName(name: string): void;
10949
10997
  }
10950
10998
 
10951
- interface Props$t {
10999
+ interface Props$u {
10952
11000
  dimension: PivotDimension$1;
10953
11001
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
10954
11002
  availableGranularities: Set<string>;
10955
11003
  allGranularities: string[];
10956
11004
  }
10957
- declare class PivotDimensionGranularity extends Component<Props$t, SpreadsheetChildEnv> {
11005
+ declare class PivotDimensionGranularity extends Component<Props$u, SpreadsheetChildEnv> {
10958
11006
  static template: string;
10959
11007
  static props: {
10960
11008
  dimension: ObjectConstructor;
@@ -10979,11 +11027,11 @@ declare class PivotDimensionGranularity extends Component<Props$t, SpreadsheetCh
10979
11027
  };
10980
11028
  }
10981
11029
 
10982
- interface Props$s {
11030
+ interface Props$t {
10983
11031
  dimension: PivotDimension$1;
10984
11032
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
10985
11033
  }
10986
- declare class PivotDimensionOrder extends Component<Props$s, SpreadsheetChildEnv> {
11034
+ declare class PivotDimensionOrder extends Component<Props$t, SpreadsheetChildEnv> {
10987
11035
  static template: string;
10988
11036
  static props: {
10989
11037
  dimension: ObjectConstructor;
@@ -11020,12 +11068,12 @@ declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type"
11020
11068
  declare function toFunctionPivotValue(value: CellValue, dimension: Pick<PivotDimension$1, "type" | "granularity">): string;
11021
11069
  declare function createCustomFields(definition: PivotCoreDefinition, fields: PivotFields): PivotFields;
11022
11070
 
11023
- interface Props$r {
11071
+ interface Props$s {
11024
11072
  pivotId: UID;
11025
11073
  customField: PivotCustomGroupedField;
11026
11074
  onCustomFieldUpdated: (definition: Partial<PivotCoreDefinition>) => void;
11027
11075
  }
11028
- declare class PivotCustomGroupsCollapsible extends Component<Props$r, SpreadsheetChildEnv> {
11076
+ declare class PivotCustomGroupsCollapsible extends Component<Props$s, SpreadsheetChildEnv> {
11029
11077
  static template: string;
11030
11078
  static props: {
11031
11079
  pivotId: StringConstructor;
@@ -11045,7 +11093,7 @@ declare class PivotCustomGroupsCollapsible extends Component<Props$r, Spreadshee
11045
11093
  private updateCustomField;
11046
11094
  }
11047
11095
 
11048
- interface Props$q {
11096
+ interface Props$r {
11049
11097
  pivotId: string;
11050
11098
  definition: PivotRuntimeDefinition;
11051
11099
  measure: PivotMeasure;
@@ -11053,7 +11101,7 @@ interface Props$q {
11053
11101
  onRemoved: () => void;
11054
11102
  generateMeasureId: (fieldName: string, aggregator?: string) => string;
11055
11103
  }
11056
- declare class PivotMeasureEditor extends Component<Props$q> {
11104
+ declare class PivotMeasureEditor extends Component<Props$r> {
11057
11105
  static template: string;
11058
11106
  static components: {
11059
11107
  PivotDimension: typeof PivotDimension;
@@ -11078,11 +11126,11 @@ declare class PivotMeasureEditor extends Component<Props$q> {
11078
11126
  get isCalculatedMeasureInvalid(): boolean;
11079
11127
  }
11080
11128
 
11081
- interface Props$p {
11129
+ interface Props$q {
11082
11130
  definition: PivotRuntimeDefinition;
11083
11131
  pivotId: UID;
11084
11132
  }
11085
- declare class PivotSortSection extends Component<Props$p, SpreadsheetChildEnv> {
11133
+ declare class PivotSortSection extends Component<Props$q, SpreadsheetChildEnv> {
11086
11134
  static template: string;
11087
11135
  static components: {
11088
11136
  Section: typeof Section;
@@ -11099,7 +11147,7 @@ declare class PivotSortSection extends Component<Props$p, SpreadsheetChildEnv> {
11099
11147
  }[];
11100
11148
  }
11101
11149
 
11102
- interface Props$o {
11150
+ interface Props$p {
11103
11151
  definition: PivotRuntimeDefinition;
11104
11152
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
11105
11153
  unusedGroupableFields: PivotField[];
@@ -11110,7 +11158,7 @@ interface Props$o {
11110
11158
  getScrollableContainerEl?: () => HTMLElement;
11111
11159
  pivotId: UID;
11112
11160
  }
11113
- declare class PivotLayoutConfigurator extends Component<Props$o, SpreadsheetChildEnv> {
11161
+ declare class PivotLayoutConfigurator extends Component<Props$p, SpreadsheetChildEnv> {
11114
11162
  static template: string;
11115
11163
  static components: {
11116
11164
  AddDimensionButton: typeof AddDimensionButton;
@@ -11205,11 +11253,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
11205
11253
  private areDomainFieldsValid;
11206
11254
  }
11207
11255
 
11208
- interface Props$n {
11256
+ interface Props$o {
11209
11257
  pivotId: UID;
11210
11258
  flipAxis: () => void;
11211
11259
  }
11212
- declare class PivotTitleSection extends Component<Props$n, SpreadsheetChildEnv> {
11260
+ declare class PivotTitleSection extends Component<Props$o, SpreadsheetChildEnv> {
11213
11261
  static template: string;
11214
11262
  static components: {
11215
11263
  CogWheelMenu: typeof CogWheelMenu;
@@ -11306,11 +11354,11 @@ declare function getFirstPivotFunction(tokens: Token[]): {
11306
11354
  */
11307
11355
  declare function getNumberOfPivotFunctions(tokens: Token[]): number;
11308
11356
 
11309
- interface Props$m {
11357
+ interface Props$n {
11310
11358
  position: CellPosition;
11311
11359
  sortDirection: SortDirection | "none";
11312
11360
  }
11313
- declare class ClickableCellSortIcon extends Component<Props$m, SpreadsheetChildEnv> {
11361
+ declare class ClickableCellSortIcon extends Component<Props$n, SpreadsheetChildEnv> {
11314
11362
  static template: string;
11315
11363
  static props: {
11316
11364
  position: ObjectConstructor;
@@ -11326,7 +11374,6 @@ declare class ClickableCellSortIcon extends Component<Props$m, SpreadsheetChildE
11326
11374
  declare class ZoomableChartJsComponent extends ChartJsComponent {
11327
11375
  static template: string;
11328
11376
  private store;
11329
- private fullScreenChartStore;
11330
11377
  private masterChartCanvas;
11331
11378
  private masterChart?;
11332
11379
  private mode?;
@@ -11343,7 +11390,6 @@ declare class ZoomableChartJsComponent extends ChartJsComponent {
11343
11390
  private getMasterChartConfiguration;
11344
11391
  private getDetailChartConfiguration;
11345
11392
  private getAxisLimitsFromDataset;
11346
- protected get shouldAnimate(): boolean;
11347
11393
  protected createChart(chartRuntime: ChartJSRuntime): void;
11348
11394
  protected updateChartJs(chartRuntime: ChartJSRuntime): void;
11349
11395
  private resetAxesLimits;
@@ -11359,13 +11405,50 @@ declare class ZoomableChartJsComponent extends ChartJsComponent {
11359
11405
  onDoubleClickInMasterChart(ev: PointerEvent): void;
11360
11406
  }
11361
11407
 
11362
- declare class FullScreenChart extends Component<{}, SpreadsheetChildEnv> {
11408
+ interface Props$m {
11409
+ chartId: UID;
11410
+ isFullScreen?: boolean;
11411
+ }
11412
+ declare class GaugeChartComponent extends Component<Props$m, SpreadsheetChildEnv> {
11413
+ static template: string;
11414
+ static props: {
11415
+ chartId: StringConstructor;
11416
+ isFullScreen: {
11417
+ type: BooleanConstructor;
11418
+ optional: boolean;
11419
+ };
11420
+ };
11421
+ private canvas;
11422
+ private animationStore;
11423
+ get runtime(): GaugeChartRuntime;
11424
+ setup(): void;
11425
+ drawGaugeWithAnimation(): Animation | null;
11426
+ get canvasEl(): HTMLCanvasElement;
11427
+ get animationChartId(): string;
11428
+ }
11429
+ /**
11430
+ * Animation interpolating values using the ease-out quartic curve function (chartJS default easing)
11431
+ */
11432
+ declare class Animation {
11433
+ private startValue;
11434
+ private endValue;
11435
+ private duration;
11436
+ private callback;
11437
+ private startTime;
11438
+ private animationFrameId;
11439
+ constructor(startValue: number, endValue: number, duration: number, callback: (value: number) => void);
11440
+ start(): void;
11441
+ stop(): void;
11442
+ private animate;
11443
+ }
11444
+
11445
+ declare class FullScreenFigure extends Component<{}, SpreadsheetChildEnv> {
11363
11446
  static template: string;
11364
11447
  static props: {};
11365
11448
  static components: {
11366
- ChartDashboardMenu: typeof ChartDashboardMenu;
11449
+ ChartFigure: typeof ChartFigure;
11367
11450
  };
11368
- private fullScreenChartStore;
11451
+ private fullScreenFigureStore;
11369
11452
  private ref;
11370
11453
  spreadsheetRect: Rect;
11371
11454
  figureRegistry: Registry<FigureContent>;
@@ -11374,7 +11457,7 @@ declare class FullScreenChart extends Component<{}, SpreadsheetChildEnv> {
11374
11457
  get chartId(): UID | undefined;
11375
11458
  exitFullScreen(): void;
11376
11459
  onKeyDown(ev: KeyboardEvent): void;
11377
- get chartComponent(): (new (...args: any) => Component) | undefined;
11460
+ get figureComponent(): (new (...args: any) => Component) | undefined;
11378
11461
  }
11379
11462
 
11380
11463
  interface PivotDialogColumn {
@@ -12563,12 +12646,14 @@ declare class RibbonMenu extends Component<RibbonMenuProps, SpreadsheetChildEnv>
12563
12646
  };
12564
12647
  rootItems: Action[];
12565
12648
  private menuRef;
12649
+ private containerRef;
12566
12650
  state: State$1;
12567
12651
  setup(): void;
12568
12652
  onExternalClick(ev: Event): void;
12569
12653
  onClickMenu(menu: Action): void;
12570
12654
  get menuProps(): MenuProps;
12571
12655
  get style(): string;
12656
+ updateShadows(): void;
12572
12657
  onClickBack(): void;
12573
12658
  get backTitle(): string;
12574
12659
  }
@@ -12594,6 +12679,7 @@ declare class SmallBottomBar extends Component<Props$1, SpreadsheetChildEnv> {
12594
12679
  private menuState;
12595
12680
  setup(): void;
12596
12681
  get focus(): ComposerFocusType;
12682
+ get showFxIcon(): boolean;
12597
12683
  get rect(): Rect;
12598
12684
  get composerProps(): CellComposerProps;
12599
12685
  get symbols(): string[];
@@ -12646,6 +12732,7 @@ declare class TopBarComposer extends Component<any, SpreadsheetChildEnv> {
12646
12732
  private composerInterface;
12647
12733
  setup(): void;
12648
12734
  get focus(): ComposerFocusType;
12735
+ get showFxIcon(): boolean;
12649
12736
  get composerStyle(): string;
12650
12737
  onFocus(selection: ComposerSelection): void;
12651
12738
  }
@@ -12757,7 +12844,7 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
12757
12844
  SidePanels: typeof SidePanels;
12758
12845
  SpreadsheetDashboard: typeof SpreadsheetDashboard;
12759
12846
  HeaderGroupContainer: typeof HeaderGroupContainer;
12760
- FullScreenChart: typeof FullScreenChart;
12847
+ FullScreenFigure: typeof FullScreenFigure;
12761
12848
  };
12762
12849
  sidePanel: Store<SidePanelStore>;
12763
12850
  spreadsheetRef: {
@@ -12985,6 +13072,7 @@ declare const components: {
12985
13072
  Grid: typeof Grid;
12986
13073
  GridOverlay: typeof GridOverlay;
12987
13074
  ScorecardChart: typeof ScorecardChart$1;
13075
+ GaugeChartComponent: typeof GaugeChartComponent;
12988
13076
  LineConfigPanel: typeof LineConfigPanel;
12989
13077
  BarConfigPanel: typeof BarConfigPanel;
12990
13078
  PieChartDesignPanel: typeof PieChartDesignPanel;
@@ -13023,7 +13111,7 @@ declare const components: {
13023
13111
  RadioSelection: typeof RadioSelection;
13024
13112
  GeoChartRegionSelectSection: typeof GeoChartRegionSelectSection;
13025
13113
  ChartDashboardMenu: typeof ChartDashboardMenu;
13026
- FullScreenChart: typeof FullScreenChart;
13114
+ FullScreenFigure: typeof FullScreenFigure;
13027
13115
  };
13028
13116
  declare const hooks: {
13029
13117
  useDragAndDropListItems: typeof useDragAndDropListItems;