@odoo/o-spreadsheet 18.1.0-alpha.6 → 18.1.0-alpha.7

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.
@@ -295,6 +295,7 @@ interface TitleDesign {
295
295
  readonly italic?: boolean;
296
296
  readonly align?: Align;
297
297
  readonly color?: Color;
298
+ readonly fontSize?: number;
298
299
  }
299
300
  type TrendType = "polynomial" | "exponential" | "logarithmic" | "trailingMovingAverage";
300
301
  interface TrendConfiguration {
@@ -1318,6 +1319,8 @@ interface SearchOptions {
1318
1319
  */
1319
1320
  declare function deepCopy<T>(obj: T): T;
1320
1321
  declare function unquote(string: string, quoteChar?: "'" | '"'): string;
1322
+ /** Replace the excel-excluded characters of a sheetName */
1323
+ declare function sanitizeSheetName(sheetName: string, replacementChar?: string): string;
1321
1324
  declare function isMarkdownLink(str: string): boolean;
1322
1325
  /**
1323
1326
  * Build a markdown link from a label and an url
@@ -7264,7 +7267,67 @@ declare class ColorPickerWidget extends Component<Props$12, SpreadsheetChildEnv>
7264
7267
  get colorPickerAnchorRect(): Rect;
7265
7268
  }
7266
7269
 
7270
+ declare class CellPopoverStore extends SpreadsheetStore {
7271
+ mutators: readonly ["open", "close"];
7272
+ private persistentPopover?;
7273
+ protected hoveredCell: {
7274
+ readonly clear: () => void;
7275
+ readonly hover: (position: Position$1) => void;
7276
+ readonly mutators: readonly ["clear", "hover"];
7277
+ readonly col: number | undefined;
7278
+ readonly row: number | undefined;
7279
+ readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
7280
+ };
7281
+ handle(cmd: Command): void;
7282
+ open({ col, row }: Position$1, type: CellPopoverType): void;
7283
+ close(): void;
7284
+ get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
7285
+ get isOpen(): boolean;
7286
+ get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
7287
+ private computePopoverAnchorRect;
7288
+ }
7289
+
7290
+ interface State$8 {
7291
+ isOpen: boolean;
7292
+ }
7267
7293
  interface Props$11 {
7294
+ currentFontSize: number;
7295
+ class: string;
7296
+ onFontSizeChanged: (fontSize: number) => void;
7297
+ onToggle?: () => void;
7298
+ }
7299
+ declare class FontSizeEditor extends Component<Props$11, SpreadsheetChildEnv> {
7300
+ static template: string;
7301
+ static props: {
7302
+ currentFontSize: NumberConstructor;
7303
+ onFontSizeChanged: FunctionConstructor;
7304
+ onToggle: {
7305
+ type: FunctionConstructor;
7306
+ optional: boolean;
7307
+ };
7308
+ class: StringConstructor;
7309
+ };
7310
+ static components: {
7311
+ Popover: typeof Popover;
7312
+ };
7313
+ fontSizes: number[];
7314
+ dropdown: State$8;
7315
+ private inputRef;
7316
+ private rootEditorRef;
7317
+ private fontSizeListRef;
7318
+ setup(): void;
7319
+ get popoverProps(): PopoverProps;
7320
+ onExternalClick(ev: MouseEvent): void;
7321
+ toggleFontList(): void;
7322
+ closeFontList(): void;
7323
+ private setSize;
7324
+ setSizeFromInput(ev: InputEvent): void;
7325
+ setSizeFromList(fontSizeStr: string): void;
7326
+ onInputFocused(ev: InputEvent): void;
7327
+ onInputKeydown(ev: KeyboardEvent): void;
7328
+ }
7329
+
7330
+ interface Props$10 {
7268
7331
  title?: string;
7269
7332
  updateTitle: (title: string) => void;
7270
7333
  name?: string;
@@ -7273,12 +7336,14 @@ interface Props$11 {
7273
7336
  updateAlignment?: (string: any) => void;
7274
7337
  updateColor?: (Color: any) => void;
7275
7338
  style: TitleDesign;
7339
+ onFontSizeChanged: (fontSize: number) => void;
7276
7340
  }
7277
- declare class ChartTitle extends Component<Props$11, SpreadsheetChildEnv> {
7341
+ declare class ChartTitle extends Component<Props$10, SpreadsheetChildEnv> {
7278
7342
  static template: string;
7279
7343
  static components: {
7280
7344
  Section: typeof Section;
7281
7345
  ColorPickerWidget: typeof ColorPickerWidget;
7346
+ FontSizeEditor: typeof FontSizeEditor;
7282
7347
  };
7283
7348
  static props: {
7284
7349
  title: {
@@ -7306,10 +7371,8 @@ declare class ChartTitle extends Component<Props$11, SpreadsheetChildEnv> {
7306
7371
  type: FunctionConstructor;
7307
7372
  optional: boolean;
7308
7373
  };
7309
- style: {
7310
- type: ObjectConstructor;
7311
- optional: boolean;
7312
- };
7374
+ style: ObjectConstructor;
7375
+ onFontSizeChanged: FunctionConstructor;
7313
7376
  };
7314
7377
  static defaultProps: {
7315
7378
  title: string;
@@ -7320,6 +7383,7 @@ declare class ChartTitle extends Component<Props$11, SpreadsheetChildEnv> {
7320
7383
  activeTool: string;
7321
7384
  };
7322
7385
  updateTitle(ev: InputEvent): void;
7386
+ updateFontSize(fontSize: number): void;
7323
7387
  toggleDropdownTool(tool: string, ev: MouseEvent): void;
7324
7388
  /**
7325
7389
  * TODO: This is clearly not a goot way to handle external click, but
@@ -7337,13 +7401,13 @@ interface AxisDefinition {
7337
7401
  id: string;
7338
7402
  name: string;
7339
7403
  }
7340
- interface Props$10 {
7404
+ interface Props$$ {
7341
7405
  figureId: UID;
7342
7406
  definition: ChartWithDataSetDefinition | WaterfallChartDefinition;
7343
7407
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition | WaterfallChartDefinition>) => DispatchResult;
7344
7408
  axesList: AxisDefinition[];
7345
7409
  }
7346
- declare class AxisDesignEditor extends Component<Props$10, SpreadsheetChildEnv> {
7410
+ declare class AxisDesignEditor extends Component<Props$$, SpreadsheetChildEnv> {
7347
7411
  static template: string;
7348
7412
  static components: {
7349
7413
  Section: typeof Section;
@@ -7365,6 +7429,7 @@ declare class AxisDesignEditor extends Component<Props$10, SpreadsheetChildEnv>
7365
7429
  label: string;
7366
7430
  }[];
7367
7431
  updateAxisTitleColor(color: Color): void;
7432
+ updateAxisTitleFontSize(fontSize: number): void;
7368
7433
  toggleBoldAxisTitle(): void;
7369
7434
  toggleItalicAxisTitle(): void;
7370
7435
  updateAxisTitleAlignment(align: "left" | "center" | "right"): void;
@@ -7373,13 +7438,13 @@ declare class AxisDesignEditor extends Component<Props$10, SpreadsheetChildEnv>
7373
7438
  updateAxisTitle(text: string): void;
7374
7439
  }
7375
7440
 
7376
- interface Props$$ {
7441
+ interface Props$_ {
7377
7442
  currentColor?: string;
7378
7443
  onColorPicked: (color: string) => void;
7379
7444
  title?: string;
7380
7445
  disableNoColor?: boolean;
7381
7446
  }
7382
- declare class RoundColorPicker extends Component<Props$$, SpreadsheetChildEnv> {
7447
+ declare class RoundColorPicker extends Component<Props$_, SpreadsheetChildEnv> {
7383
7448
  static template: string;
7384
7449
  static components: {
7385
7450
  Section: typeof Section;
@@ -7412,12 +7477,13 @@ declare class RoundColorPicker extends Component<Props$$, SpreadsheetChildEnv> {
7412
7477
  get buttonStyle(): string;
7413
7478
  }
7414
7479
 
7415
- interface Props$_ {
7480
+ interface Props$Z {
7416
7481
  figureId: UID;
7417
7482
  definition: ChartDefinition;
7418
7483
  updateChart: (figureId: UID, definition: Partial<ChartDefinition>) => DispatchResult;
7484
+ defaultChartTitleFontSize?: number;
7419
7485
  }
7420
- declare class GeneralDesignEditor extends Component<Props$_, SpreadsheetChildEnv> {
7486
+ declare class GeneralDesignEditor extends Component<Props$Z, SpreadsheetChildEnv> {
7421
7487
  static template: string;
7422
7488
  static components: {
7423
7489
  RoundColorPicker: typeof RoundColorPicker;
@@ -7429,11 +7495,18 @@ declare class GeneralDesignEditor extends Component<Props$_, SpreadsheetChildEnv
7429
7495
  figureId: StringConstructor;
7430
7496
  definition: ObjectConstructor;
7431
7497
  updateChart: FunctionConstructor;
7498
+ defaultChartTitleFontSize: {
7499
+ type: NumberConstructor;
7500
+ optional: boolean;
7501
+ };
7432
7502
  slots: {
7433
7503
  type: ObjectConstructor;
7434
7504
  optional: boolean;
7435
7505
  };
7436
7506
  };
7507
+ static defaultProps: {
7508
+ defaultChartTitleFontSize: number;
7509
+ };
7437
7510
  private state;
7438
7511
  setup(): void;
7439
7512
  get title(): TitleDesign;
@@ -7442,17 +7515,18 @@ declare class GeneralDesignEditor extends Component<Props$_, SpreadsheetChildEnv
7442
7515
  updateTitle(newTitle: string): void;
7443
7516
  get titleStyle(): TitleDesign;
7444
7517
  updateChartTitleColor(color: Color): void;
7518
+ updateChartTitleFontSize(fontSize: number): void;
7445
7519
  toggleBoldChartTitle(): void;
7446
7520
  toggleItalicChartTitle(): void;
7447
7521
  updateChartTitleAlignment(align: "left" | "center" | "right"): void;
7448
7522
  }
7449
7523
 
7450
- interface Props$Z {
7524
+ interface Props$Y {
7451
7525
  figureId: UID;
7452
7526
  definition: ChartWithDataSetDefinition;
7453
7527
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7454
7528
  }
7455
- declare class ChartLegend extends Component<Props$Z, SpreadsheetChildEnv> {
7529
+ declare class ChartLegend extends Component<Props$Y, SpreadsheetChildEnv> {
7456
7530
  static template: string;
7457
7531
  static components: {
7458
7532
  Section: typeof Section;
@@ -7469,14 +7543,14 @@ interface Choice {
7469
7543
  value: unknown;
7470
7544
  label: string;
7471
7545
  }
7472
- interface Props$Y {
7546
+ interface Props$X {
7473
7547
  choices: Choice[];
7474
7548
  onChange: (value: unknown) => void;
7475
7549
  selectedValue: string;
7476
7550
  name: string;
7477
7551
  direction: "horizontal" | "vertical";
7478
7552
  }
7479
- declare class RadioSelection extends Component<Props$Y, SpreadsheetChildEnv> {
7553
+ declare class RadioSelection extends Component<Props$X, SpreadsheetChildEnv> {
7480
7554
  static template: string;
7481
7555
  static props: {
7482
7556
  choices: ArrayConstructor;
@@ -7495,13 +7569,13 @@ declare class RadioSelection extends Component<Props$Y, SpreadsheetChildEnv> {
7495
7569
  };
7496
7570
  }
7497
7571
 
7498
- interface Props$X {
7572
+ interface Props$W {
7499
7573
  figureId: UID;
7500
7574
  definition: ChartWithDataSetDefinition;
7501
7575
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7502
7576
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7503
7577
  }
7504
- declare class SeriesDesignEditor extends Component<Props$X, SpreadsheetChildEnv> {
7578
+ declare class SeriesDesignEditor extends Component<Props$W, SpreadsheetChildEnv> {
7505
7579
  static template: string;
7506
7580
  static components: {
7507
7581
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -7529,13 +7603,13 @@ declare class SeriesDesignEditor extends Component<Props$X, SpreadsheetChildEnv>
7529
7603
  getDataSerieLabel(): string | undefined;
7530
7604
  }
7531
7605
 
7532
- interface Props$W {
7606
+ interface Props$V {
7533
7607
  figureId: UID;
7534
7608
  definition: ChartWithDataSetDefinition;
7535
7609
  canUpdateChart: (figureID: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7536
7610
  updateChart: (figureId: UID, definition: Partial<ChartWithDataSetDefinition>) => DispatchResult;
7537
7611
  }
7538
- declare class SeriesWithAxisDesignEditor extends Component<Props$W, SpreadsheetChildEnv> {
7612
+ declare class SeriesWithAxisDesignEditor extends Component<Props$V, SpreadsheetChildEnv> {
7539
7613
  static template: string;
7540
7614
  static components: {
7541
7615
  SeriesDesignEditor: typeof SeriesDesignEditor;
@@ -7576,13 +7650,13 @@ declare class SeriesWithAxisDesignEditor extends Component<Props$W, SpreadsheetC
7576
7650
  updateTrendLineValue(index: number, config: any): void;
7577
7651
  }
7578
7652
 
7579
- interface Props$V {
7653
+ interface Props$U {
7580
7654
  figureId: UID;
7581
7655
  definition: ChartWithDataSetDefinition;
7582
7656
  canUpdateChart: (figureID: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
7583
7657
  updateChart: (figureId: UID, definition: GenericDefinition<ChartWithDataSetDefinition>) => DispatchResult;
7584
7658
  }
7585
- declare class ChartWithAxisDesignPanel<P extends Props$V = Props$V> extends Component<P, SpreadsheetChildEnv> {
7659
+ declare class ChartWithAxisDesignPanel<P extends Props$U = Props$U> extends Component<P, SpreadsheetChildEnv> {
7586
7660
  static template: string;
7587
7661
  static components: {
7588
7662
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7602,13 +7676,13 @@ declare class ChartWithAxisDesignPanel<P extends Props$V = Props$V> extends Comp
7602
7676
  get axesList(): AxisDefinition[];
7603
7677
  }
7604
7678
 
7605
- interface Props$U {
7679
+ interface Props$T {
7606
7680
  figureId: UID;
7607
7681
  definition: GaugeChartDefinition;
7608
7682
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7609
7683
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7610
7684
  }
7611
- declare class GaugeChartConfigPanel extends Component<Props$U, SpreadsheetChildEnv> {
7685
+ declare class GaugeChartConfigPanel extends Component<Props$T, SpreadsheetChildEnv> {
7612
7686
  static template: string;
7613
7687
  static components: {
7614
7688
  ChartErrorSection: typeof ChartErrorSection;
@@ -7633,13 +7707,13 @@ interface PanelState {
7633
7707
  sectionRuleDispatchResult?: DispatchResult;
7634
7708
  sectionRule: SectionRule;
7635
7709
  }
7636
- interface Props$T {
7710
+ interface Props$S {
7637
7711
  figureId: UID;
7638
7712
  definition: GaugeChartDefinition;
7639
7713
  canUpdateChart: (figureID: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7640
7714
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
7641
7715
  }
7642
- declare class GaugeChartDesignPanel extends Component<Props$T, SpreadsheetChildEnv> {
7716
+ declare class GaugeChartDesignPanel extends Component<Props$S, SpreadsheetChildEnv> {
7643
7717
  static template: string;
7644
7718
  static components: {
7645
7719
  SidePanelCollapsible: typeof SidePanelCollapsible;
@@ -7684,13 +7758,13 @@ declare class LineConfigPanel extends GenericChartConfigPanel {
7684
7758
  onUpdateCumulative(cumulative: boolean): void;
7685
7759
  }
7686
7760
 
7687
- interface Props$S {
7761
+ interface Props$R {
7688
7762
  figureId: UID;
7689
7763
  definition: ScorecardChartDefinition;
7690
7764
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7691
7765
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7692
7766
  }
7693
- declare class ScorecardChartConfigPanel extends Component<Props$S, SpreadsheetChildEnv> {
7767
+ declare class ScorecardChartConfigPanel extends Component<Props$R, SpreadsheetChildEnv> {
7694
7768
  static template: string;
7695
7769
  static components: {
7696
7770
  SelectionInput: typeof SelectionInput;
@@ -7719,13 +7793,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$S, SpreadsheetCh
7719
7793
  }
7720
7794
 
7721
7795
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
7722
- interface Props$R {
7796
+ interface Props$Q {
7723
7797
  figureId: UID;
7724
7798
  definition: ScorecardChartDefinition;
7725
7799
  canUpdateChart: (figureID: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7726
7800
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
7727
7801
  }
7728
- declare class ScorecardChartDesignPanel extends Component<Props$R, SpreadsheetChildEnv> {
7802
+ declare class ScorecardChartDesignPanel extends Component<Props$Q, SpreadsheetChildEnv> {
7729
7803
  static template: string;
7730
7804
  static components: {
7731
7805
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -7745,6 +7819,7 @@ declare class ScorecardChartDesignPanel extends Component<Props$R, SpreadsheetCh
7745
7819
  };
7746
7820
  get colorsSectionTitle(): string;
7747
7821
  get humanizeNumbersLabel(): string;
7822
+ get defaultScorecardTitleFontSize(): number;
7748
7823
  updateHumanizeNumbers(humanize: boolean): void;
7749
7824
  translate(term: any): string;
7750
7825
  updateBaselineDescr(ev: any): void;
@@ -7887,13 +7962,13 @@ interface EnrichedToken extends Token {
7887
7962
  isParenthesisLinkedToCursor?: boolean;
7888
7963
  }
7889
7964
 
7890
- interface Props$Q {
7965
+ interface Props$P {
7891
7966
  proposals: AutoCompleteProposal[];
7892
7967
  selectedIndex: number | undefined;
7893
7968
  onValueSelected: (value: string) => void;
7894
7969
  onValueHovered: (index: string) => void;
7895
7970
  }
7896
- declare class TextValueProvider extends Component<Props$Q> {
7971
+ declare class TextValueProvider extends Component<Props$P> {
7897
7972
  static template: string;
7898
7973
  static props: {
7899
7974
  proposals: ArrayConstructor;
@@ -7979,19 +8054,19 @@ declare class ContentEditableHelper {
7979
8054
  getText(): string;
7980
8055
  }
7981
8056
 
7982
- interface Props$P {
8057
+ interface Props$O {
7983
8058
  functionName: string;
7984
8059
  functionDescription: FunctionDescription;
7985
8060
  argToFocus: number;
7986
8061
  }
7987
- declare class FunctionDescriptionProvider extends Component<Props$P, SpreadsheetChildEnv> {
8062
+ declare class FunctionDescriptionProvider extends Component<Props$O, SpreadsheetChildEnv> {
7988
8063
  static template: string;
7989
8064
  static props: {
7990
8065
  functionName: StringConstructor;
7991
8066
  functionDescription: ObjectConstructor;
7992
8067
  argToFocus: NumberConstructor;
7993
8068
  };
7994
- getContext(): Props$P;
8069
+ getContext(): Props$O;
7995
8070
  get formulaArgSeparator(): string;
7996
8071
  }
7997
8072
 
@@ -8098,7 +8173,7 @@ declare abstract class AbstractComposerStore extends SpreadsheetStore {
8098
8173
  */
8099
8174
  private insertText;
8100
8175
  private updateTokenColor;
8101
- private getTokenColor;
8176
+ protected getTokenColor(token: EnrichedToken): string;
8102
8177
  private rangeColor;
8103
8178
  /**
8104
8179
  * Compute for each token if it is part of the same
@@ -8369,10 +8444,10 @@ declare class ComposerFocusStore extends SpreadsheetStore {
8369
8444
  private setComposerContent;
8370
8445
  }
8371
8446
 
8372
- interface Props$O {
8447
+ interface Props$N {
8373
8448
  figure: Figure;
8374
8449
  }
8375
- declare class ChartJsComponent extends Component<Props$O, SpreadsheetChildEnv> {
8450
+ declare class ChartJsComponent extends Component<Props$N, SpreadsheetChildEnv> {
8376
8451
  static template: string;
8377
8452
  static props: {
8378
8453
  figure: ObjectConstructor;
@@ -8388,10 +8463,10 @@ declare class ChartJsComponent extends Component<Props$O, SpreadsheetChildEnv> {
8388
8463
  private updateChartJs;
8389
8464
  }
8390
8465
 
8391
- interface Props$N {
8466
+ interface Props$M {
8392
8467
  figure: Figure;
8393
8468
  }
8394
- declare class ScorecardChart$1 extends Component<Props$N, SpreadsheetChildEnv> {
8469
+ declare class ScorecardChart$1 extends Component<Props$M, SpreadsheetChildEnv> {
8395
8470
  static template: string;
8396
8471
  static props: {
8397
8472
  figure: ObjectConstructor;
@@ -8404,7 +8479,7 @@ declare class ScorecardChart$1 extends Component<Props$N, SpreadsheetChildEnv> {
8404
8479
  }
8405
8480
 
8406
8481
  type MenuItemOrSeparator = Action | "separator";
8407
- interface Props$M {
8482
+ interface Props$L {
8408
8483
  position: DOMCoordinates;
8409
8484
  menuItems: Action[];
8410
8485
  depth: number;
@@ -8423,7 +8498,7 @@ interface MenuState {
8423
8498
  menuItems: Action[];
8424
8499
  isHoveringChild?: boolean;
8425
8500
  }
8426
- declare class Menu extends Component<Props$M, SpreadsheetChildEnv> {
8501
+ declare class Menu extends Component<Props$L, SpreadsheetChildEnv> {
8427
8502
  static template: string;
8428
8503
  static props: {
8429
8504
  position: ObjectConstructor;
@@ -8499,14 +8574,14 @@ declare class Menu extends Component<Props$M, SpreadsheetChildEnv> {
8499
8574
  }
8500
8575
 
8501
8576
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
8502
- interface Props$L {
8577
+ interface Props$K {
8503
8578
  figure: Figure;
8504
8579
  style: string;
8505
8580
  onFigureDeleted: () => void;
8506
8581
  onMouseDown: (ev: MouseEvent) => void;
8507
8582
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
8508
8583
  }
8509
- declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
8584
+ declare class FigureComponent extends Component<Props$K, SpreadsheetChildEnv> {
8510
8585
  static template: string;
8511
8586
  static props: {
8512
8587
  figure: ObjectConstructor;
@@ -8555,11 +8630,11 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
8555
8630
  private openContextMenu;
8556
8631
  }
8557
8632
 
8558
- interface Props$K {
8633
+ interface Props$J {
8559
8634
  figure: Figure;
8560
8635
  onFigureDeleted: () => void;
8561
8636
  }
8562
- declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
8637
+ declare class ChartFigure extends Component<Props$J, SpreadsheetChildEnv> {
8563
8638
  static template: string;
8564
8639
  static props: {
8565
8640
  figure: ObjectConstructor;
@@ -8571,7 +8646,7 @@ declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
8571
8646
  get chartComponent(): new (...args: any) => Component;
8572
8647
  }
8573
8648
 
8574
- interface Props$J {
8649
+ interface Props$I {
8575
8650
  isVisible: boolean;
8576
8651
  position: Position;
8577
8652
  }
@@ -8579,17 +8654,17 @@ interface Position {
8579
8654
  top: HeaderIndex;
8580
8655
  left: HeaderIndex;
8581
8656
  }
8582
- interface State$8 {
8657
+ interface State$7 {
8583
8658
  position: Position;
8584
8659
  handler: boolean;
8585
8660
  }
8586
- declare class Autofill extends Component<Props$J, SpreadsheetChildEnv> {
8661
+ declare class Autofill extends Component<Props$I, SpreadsheetChildEnv> {
8587
8662
  static template: string;
8588
8663
  static props: {
8589
8664
  position: ObjectConstructor;
8590
8665
  isVisible: BooleanConstructor;
8591
8666
  };
8592
- state: State$8;
8667
+ state: State$7;
8593
8668
  get style(): string;
8594
8669
  get handlerStyle(): string;
8595
8670
  get styleNextValue(): string;
@@ -8617,7 +8692,7 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
8617
8692
  get tagStyle(): string;
8618
8693
  }
8619
8694
 
8620
- interface Props$I {
8695
+ interface Props$H {
8621
8696
  gridDims: DOMDimension;
8622
8697
  onInputContextMenu: (event: MouseEvent) => void;
8623
8698
  }
@@ -8625,7 +8700,7 @@ interface Props$I {
8625
8700
  * This component is a composer which positions itself on the grid at the anchor cell.
8626
8701
  * It also applies the style of the cell to the composer input.
8627
8702
  */
8628
- declare class GridComposer extends Component<Props$I, SpreadsheetChildEnv> {
8703
+ declare class GridComposer extends Component<Props$H, SpreadsheetChildEnv> {
8629
8704
  static template: string;
8630
8705
  static props: {
8631
8706
  gridDims: ObjectConstructor;
@@ -8683,10 +8758,10 @@ declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChild
8683
8758
  isPositionVisible(position: CellPosition): boolean;
8684
8759
  }
8685
8760
 
8686
- interface Props$H {
8761
+ interface Props$G {
8687
8762
  cellPosition: CellPosition;
8688
8763
  }
8689
- declare class DataValidationCheckbox extends Component<Props$H, SpreadsheetChildEnv> {
8764
+ declare class DataValidationCheckbox extends Component<Props$G, SpreadsheetChildEnv> {
8690
8765
  static template: string;
8691
8766
  static components: {
8692
8767
  Checkbox: typeof Checkbox;
@@ -8699,10 +8774,10 @@ declare class DataValidationCheckbox extends Component<Props$H, SpreadsheetChild
8699
8774
  get isDisabled(): boolean;
8700
8775
  }
8701
8776
 
8702
- interface Props$G {
8777
+ interface Props$F {
8703
8778
  cellPosition: CellPosition;
8704
8779
  }
8705
- declare class DataValidationListIcon extends Component<Props$G, SpreadsheetChildEnv> {
8780
+ declare class DataValidationListIcon extends Component<Props$F, SpreadsheetChildEnv> {
8706
8781
  static template: string;
8707
8782
  static props: {
8708
8783
  cellPosition: ObjectConstructor;
@@ -8732,7 +8807,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
8732
8807
  }
8733
8808
 
8734
8809
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
8735
- interface Props$F {
8810
+ interface Props$E {
8736
8811
  onFigureDeleted: () => void;
8737
8812
  }
8738
8813
  interface Container {
@@ -8811,7 +8886,7 @@ interface DndState {
8811
8886
  * that occurred during the drag & drop, and to position the figure on the correct pane.
8812
8887
  *
8813
8888
  */
8814
- declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
8889
+ declare class FiguresContainer extends Component<Props$E, SpreadsheetChildEnv> {
8815
8890
  static template: string;
8816
8891
  static props: {
8817
8892
  onFigureDeleted: FunctionConstructor;
@@ -8846,30 +8921,10 @@ declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
8846
8921
  private getSnapLineStyle;
8847
8922
  }
8848
8923
 
8849
- declare class CellPopoverStore extends SpreadsheetStore {
8850
- mutators: readonly ["open", "close"];
8851
- private persistentPopover?;
8852
- protected hoveredCell: {
8853
- readonly clear: () => void;
8854
- readonly hover: (position: Position$1) => void;
8855
- readonly mutators: readonly ["clear", "hover"];
8856
- readonly col: number | undefined;
8857
- readonly row: number | undefined;
8858
- readonly renderingLayers: readonly ("Chart" | "Background" | "Highlights" | "Clipboard" | "Autofill" | "Selection" | "Headers")[];
8859
- };
8860
- handle(cmd: Command): void;
8861
- open({ col, row }: Position$1, type: CellPopoverType): void;
8862
- close(): void;
8863
- get persistentCellPopover(): OpenCellPopover | ClosedCellPopover;
8864
- get isOpen(): boolean;
8865
- get cellPopover(): ClosedCellPopover | PositionedCellPopoverComponent;
8866
- private computePopoverAnchorRect;
8867
- }
8868
-
8869
- interface Props$E {
8924
+ interface Props$D {
8870
8925
  cellPosition: CellPosition;
8871
8926
  }
8872
- declare class FilterIcon extends Component<Props$E, SpreadsheetChildEnv> {
8927
+ declare class FilterIcon extends Component<Props$D, SpreadsheetChildEnv> {
8873
8928
  static template: string;
8874
8929
  static props: {
8875
8930
  cellPosition: ObjectConstructor;
@@ -8891,10 +8946,10 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
8891
8946
  getFilterHeadersPositions(): CellPosition[];
8892
8947
  }
8893
8948
 
8894
- interface Props$D {
8949
+ interface Props$C {
8895
8950
  focusGrid: () => void;
8896
8951
  }
8897
- declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv> {
8952
+ declare class GridAddRowsFooter extends Component<Props$C, SpreadsheetChildEnv> {
8898
8953
  static template: string;
8899
8954
  static props: {
8900
8955
  focusGrid: FunctionConstructor;
@@ -8918,7 +8973,7 @@ declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv>
8918
8973
  private onExternalClick;
8919
8974
  }
8920
8975
 
8921
- interface Props$C {
8976
+ interface Props$B {
8922
8977
  onCellHovered: (position: Partial<Position$1>) => void;
8923
8978
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
8924
8979
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers) => void;
@@ -8928,7 +8983,7 @@ interface Props$C {
8928
8983
  gridOverlayDimensions: string;
8929
8984
  onFigureDeleted: () => void;
8930
8985
  }
8931
- declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
8986
+ declare class GridOverlay extends Component<Props$B, SpreadsheetChildEnv> {
8932
8987
  static template: string;
8933
8988
  static props: {
8934
8989
  onCellHovered: {
@@ -8986,12 +9041,12 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
8986
9041
  private getCartesianCoordinates;
8987
9042
  }
8988
9043
 
8989
- interface Props$B {
9044
+ interface Props$A {
8990
9045
  gridRect: Rect;
8991
9046
  onClosePopover: () => void;
8992
9047
  onMouseWheel: (ev: WheelEvent) => void;
8993
9048
  }
8994
- declare class GridPopover extends Component<Props$B, SpreadsheetChildEnv> {
9049
+ declare class GridPopover extends Component<Props$A, SpreadsheetChildEnv> {
8995
9050
  static template: string;
8996
9051
  static props: {
8997
9052
  onClosePopover: FunctionConstructor;
@@ -9134,13 +9189,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
9134
9189
  }
9135
9190
 
9136
9191
  type Orientation$1 = "n" | "s" | "w" | "e";
9137
- interface Props$A {
9192
+ interface Props$z {
9138
9193
  zone: Zone;
9139
9194
  orientation: Orientation$1;
9140
9195
  isMoving: boolean;
9141
9196
  onMoveHighlight: (x: Pixel, y: Pixel) => void;
9142
9197
  }
9143
- declare class Border extends Component<Props$A, SpreadsheetChildEnv> {
9198
+ declare class Border extends Component<Props$z, SpreadsheetChildEnv> {
9144
9199
  static template: string;
9145
9200
  static props: {
9146
9201
  zone: ObjectConstructor;
@@ -9153,14 +9208,14 @@ declare class Border extends Component<Props$A, SpreadsheetChildEnv> {
9153
9208
  }
9154
9209
 
9155
9210
  type Orientation = "nw" | "ne" | "sw" | "se";
9156
- interface Props$z {
9211
+ interface Props$y {
9157
9212
  zone: Zone;
9158
9213
  color: Color;
9159
9214
  orientation: Orientation;
9160
9215
  isResizing: boolean;
9161
9216
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
9162
9217
  }
9163
- declare class Corner extends Component<Props$z, SpreadsheetChildEnv> {
9218
+ declare class Corner extends Component<Props$y, SpreadsheetChildEnv> {
9164
9219
  static template: string;
9165
9220
  static props: {
9166
9221
  zone: ObjectConstructor;
@@ -9175,14 +9230,14 @@ declare class Corner extends Component<Props$z, SpreadsheetChildEnv> {
9175
9230
  onMouseDown(ev: MouseEvent): void;
9176
9231
  }
9177
9232
 
9178
- interface Props$y {
9233
+ interface Props$x {
9179
9234
  zone: Zone;
9180
9235
  color: Color;
9181
9236
  }
9182
9237
  interface HighlightState {
9183
9238
  shiftingMode: "isMoving" | "isResizing" | "none";
9184
9239
  }
9185
- declare class Highlight extends Component<Props$y, SpreadsheetChildEnv> {
9240
+ declare class Highlight extends Component<Props$x, SpreadsheetChildEnv> {
9186
9241
  static template: string;
9187
9242
  static props: {
9188
9243
  zone: ObjectConstructor;
@@ -9199,7 +9254,7 @@ declare class Highlight extends Component<Props$y, SpreadsheetChildEnv> {
9199
9254
 
9200
9255
  type ScrollDirection = "horizontal" | "vertical";
9201
9256
 
9202
- interface Props$x {
9257
+ interface Props$w {
9203
9258
  width: Pixel;
9204
9259
  height: Pixel;
9205
9260
  direction: ScrollDirection;
@@ -9207,7 +9262,7 @@ interface Props$x {
9207
9262
  offset: Pixel;
9208
9263
  onScroll: (offset: Pixel) => void;
9209
9264
  }
9210
- declare class ScrollBar extends Component<Props$x> {
9265
+ declare class ScrollBar extends Component<Props$w> {
9211
9266
  static props: {
9212
9267
  width: {
9213
9268
  type: NumberConstructor;
@@ -9235,10 +9290,10 @@ declare class ScrollBar extends Component<Props$x> {
9235
9290
  onScroll(ev: any): void;
9236
9291
  }
9237
9292
 
9238
- interface Props$w {
9293
+ interface Props$v {
9239
9294
  leftOffset: number;
9240
9295
  }
9241
- declare class HorizontalScrollBar extends Component<Props$w, SpreadsheetChildEnv> {
9296
+ declare class HorizontalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
9242
9297
  static props: {
9243
9298
  leftOffset: {
9244
9299
  type: NumberConstructor;
@@ -9264,10 +9319,10 @@ declare class HorizontalScrollBar extends Component<Props$w, SpreadsheetChildEnv
9264
9319
  onScroll(offset: any): void;
9265
9320
  }
9266
9321
 
9267
- interface Props$v {
9322
+ interface Props$u {
9268
9323
  topOffset: number;
9269
9324
  }
9270
- declare class VerticalScrollBar extends Component<Props$v, SpreadsheetChildEnv> {
9325
+ declare class VerticalScrollBar extends Component<Props$u, SpreadsheetChildEnv> {
9271
9326
  static props: {
9272
9327
  topOffset: {
9273
9328
  type: NumberConstructor;
@@ -9293,18 +9348,18 @@ declare class VerticalScrollBar extends Component<Props$v, SpreadsheetChildEnv>
9293
9348
  onScroll(offset: any): void;
9294
9349
  }
9295
9350
 
9296
- interface Props$u {
9351
+ interface Props$t {
9297
9352
  table: Table;
9298
9353
  }
9299
- interface State$7 {
9354
+ interface State$6 {
9300
9355
  highlightZone: Zone | undefined;
9301
9356
  }
9302
- declare class TableResizer extends Component<Props$u, SpreadsheetChildEnv> {
9357
+ declare class TableResizer extends Component<Props$t, SpreadsheetChildEnv> {
9303
9358
  static template: string;
9304
9359
  static props: {
9305
9360
  table: ObjectConstructor;
9306
9361
  };
9307
- state: State$7;
9362
+ state: State$6;
9308
9363
  setup(): void;
9309
9364
  get containerStyle(): string;
9310
9365
  onMouseDown(ev: MouseEvent): void;
@@ -9331,10 +9386,10 @@ declare class HoveredCellStore extends SpreadsheetStore {
9331
9386
  * - a vertical resizer (same, for rows)
9332
9387
  */
9333
9388
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
9334
- interface Props$t {
9389
+ interface Props$s {
9335
9390
  exposeFocus: (focus: () => void) => void;
9336
9391
  }
9337
- declare class Grid extends Component<Props$t, SpreadsheetChildEnv> {
9392
+ declare class Grid extends Component<Props$s, SpreadsheetChildEnv> {
9338
9393
  static template: string;
9339
9394
  static props: {
9340
9395
  exposeFocus: FunctionConstructor;
@@ -9423,13 +9478,13 @@ interface DndPartialArgs {
9423
9478
  onCancel?: () => void;
9424
9479
  onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
9425
9480
  }
9426
- interface State$6 {
9481
+ interface State$5 {
9427
9482
  itemsStyle: Record<UID, string>;
9428
9483
  draggedItemId: UID | undefined;
9429
9484
  start: (direction: Direction, args: DndPartialArgs) => void;
9430
9485
  cancel: () => void;
9431
9486
  }
9432
- declare function useDragAndDropListItems(): State$6;
9487
+ declare function useDragAndDropListItems(): State$5;
9433
9488
 
9434
9489
  declare function useHighlightsOnHover(ref: Ref<HTMLElement>, highlightProvider: HighlightProvider): void;
9435
9490
  declare function useHighlights(highlightProvider: HighlightProvider): void;
@@ -9443,7 +9498,7 @@ declare class MainChartPanelStore extends SpreadsheetStore {
9443
9498
  private getChartDefinitionFromContextCreation;
9444
9499
  }
9445
9500
 
9446
- interface Props$s {
9501
+ interface Props$r {
9447
9502
  figureId: UID;
9448
9503
  chartPanelStore: MainChartPanelStore;
9449
9504
  }
@@ -9451,7 +9506,7 @@ interface ChartTypePickerState {
9451
9506
  popoverProps: PopoverProps | undefined;
9452
9507
  popoverStyle: string;
9453
9508
  }
9454
- declare class ChartTypePicker extends Component<Props$s, SpreadsheetChildEnv> {
9509
+ declare class ChartTypePicker extends Component<Props$r, SpreadsheetChildEnv> {
9455
9510
  static template: string;
9456
9511
  static components: {
9457
9512
  Section: typeof Section;
@@ -9486,11 +9541,11 @@ declare class ChartTypePicker extends Component<Props$s, SpreadsheetChildEnv> {
9486
9541
  private closePopover;
9487
9542
  }
9488
9543
 
9489
- interface Props$r {
9544
+ interface Props$q {
9490
9545
  onCloseSidePanel: () => void;
9491
9546
  figureId: UID;
9492
9547
  }
9493
- declare class ChartPanel extends Component<Props$r, SpreadsheetChildEnv> {
9548
+ declare class ChartPanel extends Component<Props$q, SpreadsheetChildEnv> {
9494
9549
  static template: string;
9495
9550
  static components: {
9496
9551
  Section: typeof Section;
@@ -9510,13 +9565,13 @@ declare class ChartPanel extends Component<Props$r, SpreadsheetChildEnv> {
9510
9565
  private getChartDefinition;
9511
9566
  }
9512
9567
 
9513
- interface Props$q {
9568
+ interface Props$p {
9514
9569
  figureId: UID;
9515
9570
  definition: PieChartDefinition;
9516
9571
  canUpdateChart: (figureID: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
9517
9572
  updateChart: (figureId: UID, definition: GenericDefinition<PieChartDefinition>) => DispatchResult;
9518
9573
  }
9519
- declare class PieChartDesignPanel extends Component<Props$q, SpreadsheetChildEnv> {
9574
+ declare class PieChartDesignPanel extends Component<Props$p, SpreadsheetChildEnv> {
9520
9575
  static template: string;
9521
9576
  static components: {
9522
9577
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -9535,10 +9590,10 @@ declare class PieChartDesignPanel extends Component<Props$q, SpreadsheetChildEnv
9535
9590
  };
9536
9591
  }
9537
9592
 
9538
- interface Props$p {
9593
+ interface Props$o {
9539
9594
  items: ActionSpec[];
9540
9595
  }
9541
- declare class CogWheelMenu extends Component<Props$p, SpreadsheetChildEnv> {
9596
+ declare class CogWheelMenu extends Component<Props$o, SpreadsheetChildEnv> {
9542
9597
  static template: string;
9543
9598
  static components: {
9544
9599
  Menu: typeof Menu;
@@ -9621,14 +9676,14 @@ declare class FindAndReplaceStore extends SpreadsheetStore implements HighlightP
9621
9676
  get highlights(): Highlight$1[];
9622
9677
  }
9623
9678
 
9624
- interface Props$o {
9679
+ interface Props$n {
9625
9680
  deferUpdate: boolean;
9626
9681
  isDirty: boolean;
9627
9682
  toggleDeferUpdate: (value: boolean) => void;
9628
9683
  discard: () => void;
9629
9684
  apply: () => void;
9630
9685
  }
9631
- declare class PivotDeferUpdate extends Component<Props$o, SpreadsheetChildEnv> {
9686
+ declare class PivotDeferUpdate extends Component<Props$n, SpreadsheetChildEnv> {
9632
9687
  static template: string;
9633
9688
  static props: {
9634
9689
  deferUpdate: BooleanConstructor;
@@ -9645,11 +9700,11 @@ declare class PivotDeferUpdate extends Component<Props$o, SpreadsheetChildEnv> {
9645
9700
  get deferUpdatesTooltip(): string;
9646
9701
  }
9647
9702
 
9648
- interface Props$n {
9703
+ interface Props$m {
9649
9704
  onFieldPicked: (field: string) => void;
9650
9705
  fields: PivotField[];
9651
9706
  }
9652
- declare class AddDimensionButton extends Component<Props$n, SpreadsheetChildEnv> {
9707
+ declare class AddDimensionButton extends Component<Props$m, SpreadsheetChildEnv> {
9653
9708
  static template: string;
9654
9709
  static components: {
9655
9710
  Popover: typeof Popover;
@@ -9685,14 +9740,14 @@ declare class AddDimensionButton extends Component<Props$n, SpreadsheetChildEnv>
9685
9740
  onKeyDown(ev: KeyboardEvent): void;
9686
9741
  }
9687
9742
 
9688
- interface Props$m {
9743
+ interface Props$l {
9689
9744
  value: string;
9690
9745
  onChange: (value: string) => void;
9691
9746
  class?: string;
9692
9747
  id?: string;
9693
9748
  placeholder?: string;
9694
9749
  }
9695
- declare class TextInput extends Component<Props$m, SpreadsheetChildEnv> {
9750
+ declare class TextInput extends Component<Props$l, SpreadsheetChildEnv> {
9696
9751
  static template: string;
9697
9752
  static props: {
9698
9753
  value: StringConstructor;
@@ -9717,13 +9772,13 @@ declare class TextInput extends Component<Props$m, SpreadsheetChildEnv> {
9717
9772
  focusInputAndSelectContent(): void;
9718
9773
  }
9719
9774
 
9720
- interface Props$l {
9775
+ interface Props$k {
9721
9776
  dimension: PivotCoreDimension | PivotCoreMeasure;
9722
9777
  onRemoved: (dimension: PivotCoreDimension | PivotCoreMeasure) => void;
9723
9778
  onNameUpdated?: (dimension: PivotCoreDimension | PivotCoreMeasure, name?: string) => void;
9724
9779
  type: "row" | "col" | "measure";
9725
9780
  }
9726
- declare class PivotDimension extends Component<Props$l, SpreadsheetChildEnv> {
9781
+ declare class PivotDimension extends Component<Props$k, SpreadsheetChildEnv> {
9727
9782
  static template: string;
9728
9783
  static props: {
9729
9784
  dimension: ObjectConstructor;
@@ -9747,13 +9802,13 @@ declare class PivotDimension extends Component<Props$l, SpreadsheetChildEnv> {
9747
9802
  updateName(name: string): void;
9748
9803
  }
9749
9804
 
9750
- interface Props$k {
9805
+ interface Props$j {
9751
9806
  dimension: PivotDimension$1;
9752
9807
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
9753
9808
  availableGranularities: Set<string>;
9754
9809
  allGranularities: string[];
9755
9810
  }
9756
- declare class PivotDimensionGranularity extends Component<Props$k, SpreadsheetChildEnv> {
9811
+ declare class PivotDimensionGranularity extends Component<Props$j, SpreadsheetChildEnv> {
9757
9812
  static template: string;
9758
9813
  static props: {
9759
9814
  dimension: ObjectConstructor;
@@ -9778,11 +9833,11 @@ declare class PivotDimensionGranularity extends Component<Props$k, SpreadsheetCh
9778
9833
  };
9779
9834
  }
9780
9835
 
9781
- interface Props$j {
9836
+ interface Props$i {
9782
9837
  dimension: PivotDimension$1;
9783
9838
  onUpdated: (dimension: PivotDimension$1, ev: InputEvent) => void;
9784
9839
  }
9785
- declare class PivotDimensionOrder extends Component<Props$j, SpreadsheetChildEnv> {
9840
+ declare class PivotDimensionOrder extends Component<Props$i, SpreadsheetChildEnv> {
9786
9841
  static template: string;
9787
9842
  static props: {
9788
9843
  dimension: ObjectConstructor;
@@ -9817,7 +9872,7 @@ declare function createPivotFormula(formulaId: string, cell: PivotTableCell): st
9817
9872
  */
9818
9873
  declare function toNormalizedPivotValue(dimension: Pick<PivotDimension$1, "type" | "displayName" | "granularity">, groupValue: any): CellValue;
9819
9874
 
9820
- interface Props$i {
9875
+ interface Props$h {
9821
9876
  onConfirm: (content: string) => void;
9822
9877
  composerContent: string;
9823
9878
  defaultRangeSheetId: UID;
@@ -9825,8 +9880,9 @@ interface Props$i {
9825
9880
  placeholder?: string;
9826
9881
  class?: string;
9827
9882
  invalid?: boolean;
9883
+ getContextualColoredSymbolToken?: (token: Token) => Color;
9828
9884
  }
9829
- declare class StandaloneComposer extends Component<Props$i, SpreadsheetChildEnv> {
9885
+ declare class StandaloneComposer extends Component<Props$h, SpreadsheetChildEnv> {
9830
9886
  static template: string;
9831
9887
  static props: {
9832
9888
  composerContent: {
@@ -9854,6 +9910,10 @@ declare class StandaloneComposer extends Component<Props$i, SpreadsheetChildEnv>
9854
9910
  type: BooleanConstructor;
9855
9911
  optional: boolean;
9856
9912
  };
9913
+ getContextualColoredSymbolToken: {
9914
+ type: FunctionConstructor;
9915
+ optional: boolean;
9916
+ };
9857
9917
  };
9858
9918
  static components: {
9859
9919
  Composer: typeof Composer;
@@ -9872,7 +9932,7 @@ declare class StandaloneComposer extends Component<Props$i, SpreadsheetChildEnv>
9872
9932
  onFocus(selection: ComposerSelection): void;
9873
9933
  }
9874
9934
 
9875
- interface Props$h {
9935
+ interface Props$g {
9876
9936
  pivotId: string;
9877
9937
  definition: PivotRuntimeDefinition;
9878
9938
  measure: PivotMeasure;
@@ -9880,7 +9940,7 @@ interface Props$h {
9880
9940
  onRemoved: () => void;
9881
9941
  generateMeasureId: (fieldName: string, aggregator?: string) => string;
9882
9942
  }
9883
- declare class PivotMeasureEditor extends Component<Props$h> {
9943
+ declare class PivotMeasureEditor extends Component<Props$g> {
9884
9944
  static template: string;
9885
9945
  static components: {
9886
9946
  PivotDimension: typeof PivotDimension;
@@ -9901,9 +9961,10 @@ declare class PivotMeasureEditor extends Component<Props$h> {
9901
9961
  updateName(measure: PivotMeasure, userDefinedName?: string): void;
9902
9962
  toggleMeasureVisibility(): void;
9903
9963
  openShowValuesAs(): void;
9964
+ getColoredSymbolToken(token: Token): Color | undefined;
9904
9965
  }
9905
9966
 
9906
- interface Props$g {
9967
+ interface Props$f {
9907
9968
  definition: PivotRuntimeDefinition;
9908
9969
  onDimensionsUpdated: (definition: Partial<PivotCoreDefinition>) => void;
9909
9970
  unusedGroupableFields: PivotField[];
@@ -9913,7 +9974,7 @@ interface Props$g {
9913
9974
  datetimeGranularities: string[];
9914
9975
  pivotId: UID;
9915
9976
  }
9916
- declare class PivotLayoutConfigurator extends Component<Props$g, SpreadsheetChildEnv> {
9977
+ declare class PivotLayoutConfigurator extends Component<Props$f, SpreadsheetChildEnv> {
9917
9978
  static template: string;
9918
9979
  static components: {
9919
9980
  AddDimensionButton: typeof AddDimensionButton;
@@ -9989,11 +10050,11 @@ declare class PivotSidePanelStore extends SpreadsheetStore {
9989
10050
  private getUnusedGranularities;
9990
10051
  }
9991
10052
 
9992
- interface Props$f {
10053
+ interface Props$e {
9993
10054
  pivotId: UID;
9994
10055
  flipAxis: () => void;
9995
10056
  }
9996
- declare class PivotTitleSection extends Component<Props$f, SpreadsheetChildEnv> {
10057
+ declare class PivotTitleSection extends Component<Props$e, SpreadsheetChildEnv> {
9997
10058
  static template: string;
9998
10059
  static components: {
9999
10060
  CogWheelMenu: typeof CogWheelMenu;
@@ -10034,7 +10095,7 @@ declare class FunctionRegistry extends Registry<FunctionDescription> {
10034
10095
  }
10035
10096
 
10036
10097
  /**
10037
- * Create a proposal entry for the compose autowcomplete
10098
+ * Create a proposal entry for the composer autocomplete
10038
10099
  * to insert a field name string in a formula.
10039
10100
  */
10040
10101
  declare function makeFieldProposal(field: PivotField, granularity?: Granularity): {
@@ -10077,13 +10138,13 @@ declare function getFirstPivotFunction(tokens: Token[]): {
10077
10138
  */
10078
10139
  declare function getNumberOfPivotFunctions(tokens: Token[]): number;
10079
10140
 
10080
- interface Props$e {
10141
+ interface Props$d {
10081
10142
  figureId: UID;
10082
10143
  definition: ComboChartDefinition;
10083
10144
  canUpdateChart: (figureID: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
10084
10145
  updateChart: (figureId: UID, definition: GenericDefinition<ComboChartDefinition>) => DispatchResult;
10085
10146
  }
10086
- declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$e> {
10147
+ declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$d> {
10087
10148
  static template: string;
10088
10149
  static components: {
10089
10150
  RadioSelection: typeof RadioSelection;
@@ -10103,13 +10164,13 @@ declare class ComboChartDesignPanel extends ChartWithAxisDesignPanel<Props$e> {
10103
10164
  getDataSeriesType(index: number): "line" | "bar";
10104
10165
  }
10105
10166
 
10106
- interface Props$d {
10167
+ interface Props$c {
10107
10168
  figureId: UID;
10108
10169
  definition: RadarChartDefinition;
10109
10170
  canUpdateChart: (figureID: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
10110
10171
  updateChart: (figureId: UID, definition: GenericDefinition<RadarChartDefinition>) => DispatchResult;
10111
10172
  }
10112
- declare class RadarChartDesignPanel extends Component<Props$d, SpreadsheetChildEnv> {
10173
+ declare class RadarChartDesignPanel extends Component<Props$c, SpreadsheetChildEnv> {
10113
10174
  static template: string;
10114
10175
  static components: {
10115
10176
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -10126,13 +10187,13 @@ declare class RadarChartDesignPanel extends Component<Props$d, SpreadsheetChildE
10126
10187
  };
10127
10188
  }
10128
10189
 
10129
- interface Props$c {
10190
+ interface Props$b {
10130
10191
  figureId: UID;
10131
10192
  definition: WaterfallChartDefinition;
10132
10193
  canUpdateChart: (figureID: UID, definition: GenericDefinition<WaterfallChartDefinition>) => DispatchResult;
10133
10194
  updateChart: (figureId: UID, definition: GenericDefinition<WaterfallChartDefinition>) => DispatchResult;
10134
10195
  }
10135
- declare class WaterfallChartDesignPanel extends Component<Props$c, SpreadsheetChildEnv> {
10196
+ declare class WaterfallChartDesignPanel extends Component<Props$b, SpreadsheetChildEnv> {
10136
10197
  static template: string;
10137
10198
  static components: {
10138
10199
  GeneralDesignEditor: typeof GeneralDesignEditor;
@@ -10497,13 +10558,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
10497
10558
  getRippleEffectProps(id: number): RippleEffectProps;
10498
10559
  }
10499
10560
 
10500
- interface Props$b {
10561
+ interface Props$a {
10501
10562
  sheetId: string;
10502
10563
  openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
10503
10564
  style?: string;
10504
10565
  onMouseDown: (ev: MouseEvent) => void;
10505
10566
  }
10506
- declare class BottomBarSheet extends Component<Props$b, SpreadsheetChildEnv> {
10567
+ declare class BottomBarSheet extends Component<Props$a, SpreadsheetChildEnv> {
10507
10568
  static template: string;
10508
10569
  static props: {
10509
10570
  sheetId: StringConstructor;
@@ -10554,11 +10615,11 @@ declare class BottomBarSheet extends Component<Props$b, SpreadsheetChildEnv> {
10554
10615
  get sheetColorStyle(): string;
10555
10616
  }
10556
10617
 
10557
- interface Props$a {
10618
+ interface Props$9 {
10558
10619
  openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
10559
10620
  closeContextMenu: () => void;
10560
10621
  }
10561
- declare class BottomBarStatistic extends Component<Props$a, SpreadsheetChildEnv> {
10622
+ declare class BottomBarStatistic extends Component<Props$9, SpreadsheetChildEnv> {
10562
10623
  static template: string;
10563
10624
  static props: {
10564
10625
  openContextMenu: FunctionConstructor;
@@ -10579,13 +10640,13 @@ interface BottomBarSheetItem {
10579
10640
  id: UID;
10580
10641
  name: string;
10581
10642
  }
10582
- interface Props$9 {
10643
+ interface Props$8 {
10583
10644
  onClick: () => void;
10584
10645
  }
10585
10646
  interface BottomBarMenuState extends MenuState {
10586
10647
  menuId: UID | undefined;
10587
10648
  }
10588
- declare class BottomBar extends Component<Props$9, SpreadsheetChildEnv> {
10649
+ declare class BottomBar extends Component<Props$8, SpreadsheetChildEnv> {
10589
10650
  static template: string;
10590
10651
  static props: {
10591
10652
  onClick: FunctionConstructor;
@@ -10641,9 +10702,9 @@ declare class ClickableCellsStore extends SpreadsheetStore {
10641
10702
  get clickableCells(): ClickableCell[];
10642
10703
  }
10643
10704
 
10644
- interface Props$8 {
10705
+ interface Props$7 {
10645
10706
  }
10646
- declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEnv> {
10707
+ declare class SpreadsheetDashboard extends Component<Props$7, SpreadsheetChildEnv> {
10647
10708
  static template: string;
10648
10709
  static props: {};
10649
10710
  static components: {
@@ -10680,7 +10741,7 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
10680
10741
  private getGridRect;
10681
10742
  }
10682
10743
 
10683
- interface Props$7 {
10744
+ interface Props$6 {
10684
10745
  group: HeaderGroup;
10685
10746
  layerOffset: number;
10686
10747
  openContextMenu(position: DOMCoordinates, menuItems: Action[]): void;
@@ -10690,7 +10751,7 @@ interface GroupBox {
10690
10751
  headerRect: Rect;
10691
10752
  isEndHidden: boolean;
10692
10753
  }
10693
- declare abstract class AbstractHeaderGroup extends Component<Props$7, SpreadsheetChildEnv> {
10754
+ declare abstract class AbstractHeaderGroup extends Component<Props$6, SpreadsheetChildEnv> {
10694
10755
  static template: string;
10695
10756
  static props: {
10696
10757
  group: ObjectConstructor;
@@ -10722,11 +10783,11 @@ declare class ColGroup extends AbstractHeaderGroup {
10722
10783
  get groupBox(): GroupBox;
10723
10784
  }
10724
10785
 
10725
- interface Props$6 {
10786
+ interface Props$5 {
10726
10787
  dimension: Dimension;
10727
10788
  layers: HeaderGroup[][];
10728
10789
  }
10729
- declare class HeaderGroupContainer extends Component<Props$6, SpreadsheetChildEnv> {
10790
+ declare class HeaderGroupContainer extends Component<Props$5, SpreadsheetChildEnv> {
10730
10791
  static template: string;
10731
10792
  static props: {
10732
10793
  dimension: StringConstructor;
@@ -10872,14 +10933,14 @@ declare namespace ACTION_EDIT {
10872
10933
  };
10873
10934
  }
10874
10935
 
10875
- interface Props$5 {
10936
+ interface Props$4 {
10876
10937
  action: ActionSpec;
10877
10938
  hasTriangleDownIcon?: boolean;
10878
10939
  selectedColor?: string;
10879
10940
  class?: string;
10880
10941
  onClick?: (ev: MouseEvent) => void;
10881
10942
  }
10882
- declare class ActionButton extends Component<Props$5, SpreadsheetChildEnv> {
10943
+ declare class ActionButton extends Component<Props$4, SpreadsheetChildEnv> {
10883
10944
  static template: string;
10884
10945
  static props: {
10885
10946
  action: ObjectConstructor;
@@ -10912,7 +10973,7 @@ declare class ActionButton extends Component<Props$5, SpreadsheetChildEnv> {
10912
10973
  }
10913
10974
 
10914
10975
  type Tool = "borderColorTool" | "borderTypeTool";
10915
- interface State$5 {
10976
+ interface State$4 {
10916
10977
  activeTool: Tool | undefined;
10917
10978
  }
10918
10979
  interface BorderEditorProps {
@@ -10963,7 +11024,7 @@ declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChild
10963
11024
  el: HTMLElement | null;
10964
11025
  };
10965
11026
  borderStyles: readonly ["thin", "medium", "thick", "dashed", "dotted"];
10966
- state: State$5;
11027
+ state: State$4;
10967
11028
  toggleDropdownTool(tool: Tool): void;
10968
11029
  closeDropdown(): void;
10969
11030
  setBorderPosition(position: BorderPosition): void;
@@ -10974,19 +11035,19 @@ declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChild
10974
11035
  get lineStylePickerAnchorRect(): Rect;
10975
11036
  }
10976
11037
 
10977
- interface Props$4 {
11038
+ interface Props$3 {
10978
11039
  toggleBorderEditor: () => void;
10979
11040
  showBorderEditor: boolean;
10980
11041
  disabled?: boolean;
10981
11042
  dropdownMaxHeight?: Pixel;
10982
11043
  class?: string;
10983
11044
  }
10984
- interface State$4 {
11045
+ interface State$3 {
10985
11046
  currentColor: Color;
10986
11047
  currentStyle: BorderStyle;
10987
11048
  currentPosition: BorderPosition | undefined;
10988
11049
  }
10989
- declare class BorderEditorWidget extends Component<Props$4, SpreadsheetChildEnv> {
11050
+ declare class BorderEditorWidget extends Component<Props$3, SpreadsheetChildEnv> {
10990
11051
  static template: string;
10991
11052
  static props: {
10992
11053
  toggleBorderEditor: FunctionConstructor;
@@ -11010,7 +11071,7 @@ declare class BorderEditorWidget extends Component<Props$4, SpreadsheetChildEnv>
11010
11071
  borderEditorButtonRef: {
11011
11072
  el: HTMLElement | null;
11012
11073
  };
11013
- state: State$4;
11074
+ state: State$3;
11014
11075
  get borderEditorAnchorRect(): Rect;
11015
11076
  onBorderPositionPicked(position: BorderPosition): void;
11016
11077
  onBorderColorPicked(color: Color): void;
@@ -11034,38 +11095,6 @@ declare class TopBarComposer extends Component<any, SpreadsheetChildEnv> {
11034
11095
  onFocus(selection: ComposerSelection): void;
11035
11096
  }
11036
11097
 
11037
- interface State$3 {
11038
- isOpen: boolean;
11039
- }
11040
- interface Props$3 {
11041
- onToggle: () => void;
11042
- dropdownStyle: string;
11043
- class: string;
11044
- }
11045
- declare class FontSizeEditor extends Component<Props$3, SpreadsheetChildEnv> {
11046
- static template: string;
11047
- static props: {
11048
- onToggle: FunctionConstructor;
11049
- dropdownStyle: StringConstructor;
11050
- class: StringConstructor;
11051
- };
11052
- static components: {};
11053
- fontSizes: number[];
11054
- dropdown: State$3;
11055
- private inputRef;
11056
- private rootEditorRef;
11057
- setup(): void;
11058
- onExternalClick(ev: MouseEvent): void;
11059
- get currentFontSize(): number;
11060
- toggleFontList(): void;
11061
- closeFontList(): void;
11062
- private setSize;
11063
- setSizeFromInput(ev: InputEvent): void;
11064
- setSizeFromList(fontSizeStr: string): void;
11065
- onInputFocused(ev: InputEvent): void;
11066
- onInputKeydown(ev: KeyboardEvent): void;
11067
- }
11068
-
11069
11098
  interface Props$2 {
11070
11099
  tableConfig: TableConfig;
11071
11100
  tableStyle: TableStyle;
@@ -11207,7 +11236,6 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
11207
11236
  onClick: FunctionConstructor;
11208
11237
  dropdownMaxHeight: NumberConstructor;
11209
11238
  };
11210
- get dropdownStyle(): string;
11211
11239
  static components: {
11212
11240
  ColorPickerWidget: typeof ColorPickerWidget;
11213
11241
  ColorPicker: typeof ColorPicker;
@@ -11231,6 +11259,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
11231
11259
  composerFocusStore: Store<ComposerFocusStore>;
11232
11260
  setup(): void;
11233
11261
  get topbarComponents(): TopbarComponent[];
11262
+ get currentFontSize(): number;
11234
11263
  onExternalClick(ev: MouseEvent): void;
11235
11264
  onClick(): void;
11236
11265
  onMenuMouseOver(menu: Action, ev: MouseEvent): void;
@@ -11242,6 +11271,7 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
11242
11271
  updateCellState(): void;
11243
11272
  getMenuName(menu: Action): string;
11244
11273
  setColor(target: string, color: Color): void;
11274
+ setFontSize(fontSize: number): void;
11245
11275
  }
11246
11276
 
11247
11277
  interface SpreadsheetProps extends Partial<NotificationStoreMethods> {
@@ -12369,6 +12399,7 @@ declare const helpers: {
12369
12399
  createPivotFormula: typeof createPivotFormula;
12370
12400
  areDomainArgsFieldsValid: typeof areDomainArgsFieldsValid;
12371
12401
  splitReference: typeof splitReference;
12402
+ sanitizeSheetName: typeof sanitizeSheetName;
12372
12403
  };
12373
12404
  declare const links: {
12374
12405
  isMarkdownLink: typeof isMarkdownLink;
@@ -12512,23 +12543,7 @@ declare const chartHelpers: {
12512
12543
  getPieChartDatasets(definition: GenericDefinition<PieChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"pie">[];
12513
12544
  getComboChartDatasets(definition: GenericDefinition<ComboChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"line" | "bar">[];
12514
12545
  getRadarChartDatasets(definition: GenericDefinition<RadarChartDefinition>, args: ChartRuntimeGenerationArgs): chart_js.ChartDataset<"radar">[];
12515
- getCommonChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12516
- autoPadding: boolean;
12517
- padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
12518
- }>> | undefined;
12519
- getBarChartLayout(definition: GenericDefinition<BarChartDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12520
- autoPadding: boolean;
12521
- padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
12522
- }>> | undefined;
12523
- getLineChartLayout(definition: GenericDefinition<LineChartDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12524
- autoPadding: boolean;
12525
- padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
12526
- }>> | undefined;
12527
- getPieChartLayout(definition: PieChartDefinition): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12528
- autoPadding: boolean;
12529
- padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
12530
- }>> | undefined;
12531
- getWaterfallChartLayout(definition: WaterfallChartDefinition): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12546
+ getChartLayout(definition: GenericDefinition<ChartWithDataSetDefinition>): chart_js_dist_types_utils._DeepPartialObject<Partial<{
12532
12547
  autoPadding: boolean;
12533
12548
  padding: chart_js.Scriptable<chart_js_dist_types_geometric.Padding, chart_js.ScriptableContext<keyof chart_js.ChartTypeRegistry>>;
12534
12549
  }>> | undefined;
@@ -12973,6 +12988,7 @@ declare const chartHelpers: {
12973
12988
  toExcelLabelRange(getters: CoreGetters, labelRange: Range | undefined, shouldRemoveFirstLabel?: boolean | undefined): string | undefined;
12974
12989
  transformChartDefinitionWithDataSetsWithZone<T extends ChartWithDataSetDefinition>(definition: T, executed: AddColumnsRowsCommand | RemoveColumnsRowsCommand): T;
12975
12990
  chartFontColor(backgroundColor: Color | undefined): Color;
12991
+ chartMutedFontColor(backgroundColor: Color | undefined): Color;
12976
12992
  checkDataset(definition: ChartWithDataSetDefinition): CommandResult;
12977
12993
  checkLabelRange(definition: ChartWithDataSetDefinition): CommandResult;
12978
12994
  shouldRemoveFirstLabel(labelRange: Range | undefined, dataset: DataSet | undefined, dataSetsHaveTitle: boolean): boolean;