@odoo/o-spreadsheet 17.1.0-alpha.5 → 17.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.
@@ -940,6 +940,35 @@ declare function toCartesian(xc: string): Position$1;
940
940
  */
941
941
  declare function toXC(col: HeaderIndex, row: HeaderIndex, rangePart?: RangePart): string;
942
942
 
943
+ /**
944
+ * A DateTime object that can be used to manipulate spreadsheet dates.
945
+ * Conceptually, a spreadsheet date is simply a number with a date format,
946
+ * and it is timezone-agnostic.
947
+ * This DateTime object consistently uses UTC time to represent a naive date and time.
948
+ */
949
+ declare class DateTime {
950
+ private jsDate;
951
+ constructor(year: number, month: number, day: number, hours?: number, minutes?: number, seconds?: number);
952
+ static fromTimestamp(timestamp: number): DateTime;
953
+ static now(): DateTime;
954
+ toString(): string;
955
+ toLocaleDateString(): string;
956
+ getTime(): number;
957
+ getFullYear(): number;
958
+ getMonth(): number;
959
+ getDate(): number;
960
+ getDay(): number;
961
+ getHours(): number;
962
+ getMinutes(): number;
963
+ getSeconds(): number;
964
+ setFullYear(year: number): number;
965
+ setMonth(month: number): number;
966
+ setDate(date: number): number;
967
+ setHours(hours: number): number;
968
+ setMinutes(minutes: number): number;
969
+ setSeconds(seconds: number): number;
970
+ }
971
+
943
972
  /**
944
973
  * Formats a cell value with its format.
945
974
  */
@@ -1616,7 +1645,7 @@ declare enum ClipboardMIMEType {
1616
1645
  type ClipboardContent = {
1617
1646
  [type in ClipboardMIMEType]?: string;
1618
1647
  };
1619
- type ClipboardPasteOptions = "onlyFormat" | "onlyValue";
1648
+ type ClipboardPasteOptions = "onlyFormat" | "asValue";
1620
1649
 
1621
1650
  interface SearchOptions {
1622
1651
  matchCase: boolean;
@@ -2595,6 +2624,7 @@ type ValueAndFormat = {
2595
2624
  };
2596
2625
  type Arg = Maybe<ValueAndFormat> | Matrix<ValueAndFormat>;
2597
2626
  type ArgValue = Maybe<CellValue> | Matrix<CellValue>;
2627
+ declare function isMatrix(x: any): x is Matrix<any>;
2598
2628
  interface HeaderDimensions {
2599
2629
  start: Pixel;
2600
2630
  size: Pixel;
@@ -4025,25 +4055,23 @@ declare class CustomColorsPlugin extends UIPlugin<CustomColorState> {
4025
4055
  private tryToAddColor;
4026
4056
  }
4027
4057
 
4058
+ interface EvaluationChartStyle {
4059
+ background: Color;
4060
+ fontColor: Color;
4061
+ }
4028
4062
  interface EvaluationChartState {
4029
4063
  charts: Record<UID, ChartRuntime | undefined>;
4030
4064
  }
4031
4065
  declare class EvaluationChartPlugin extends UIPlugin<EvaluationChartState> {
4032
- static getters: readonly ["getChartRuntime", "getBackgroundOfSingleCellChart"];
4066
+ static getters: readonly ["getChartRuntime", "getStyleOfSingleCellChart"];
4033
4067
  charts: Record<UID, ChartRuntime | undefined>;
4034
4068
  private createRuntimeChart;
4035
4069
  handle(cmd: CoreViewCommand): void;
4036
4070
  getChartRuntime(figureId: UID): ChartRuntime;
4037
4071
  /**
4038
- * Get the background color of a chart based on the color of the first cell of the main range
4039
- * of the chart. In order of priority, it will return :
4040
- *
4041
- * - the chart background color if one is defined
4042
- * - the fill color of the cell if one is defined
4043
- * - the fill color of the cell from conditional formats if one is defined
4044
- * - the default chart color if no other color is defined
4072
+ * Get the background and textColor of a chart based on the color of the first cell of the main range of the chart.
4045
4073
  */
4046
- getBackgroundOfSingleCellChart(chartBackground: Color | undefined, mainRange: Range | undefined): Color;
4074
+ getStyleOfSingleCellChart(chartBackground: Color | undefined, mainRange: Range | undefined): EvaluationChartStyle;
4047
4075
  exportForExcel(data: ExcelWorkbookData): void;
4048
4076
  }
4049
4077
 
@@ -5382,7 +5410,7 @@ interface ChartBuilder {
5382
5410
  sequence: number;
5383
5411
  }
5384
5412
 
5385
- interface Props$K {
5413
+ interface Props$R {
5386
5414
  ranges: () => string[];
5387
5415
  hasSingleRange?: boolean;
5388
5416
  required?: boolean;
@@ -5404,8 +5432,35 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
5404
5432
  * onSelectionChanged is called every time the input value
5405
5433
  * changes.
5406
5434
  */
5407
- declare class SelectionInput extends Component<Props$K, SpreadsheetChildEnv> {
5435
+ declare class SelectionInput extends Component<Props$R, SpreadsheetChildEnv> {
5408
5436
  static template: string;
5437
+ static props: {
5438
+ ranges: FunctionConstructor;
5439
+ hasSingleRange: {
5440
+ type: BooleanConstructor;
5441
+ optional: boolean;
5442
+ };
5443
+ required: {
5444
+ type: BooleanConstructor;
5445
+ optional: boolean;
5446
+ };
5447
+ isInvalid: {
5448
+ type: BooleanConstructor;
5449
+ optional: boolean;
5450
+ };
5451
+ class: {
5452
+ type: StringConstructor;
5453
+ optional: boolean;
5454
+ };
5455
+ onSelectionChanged: {
5456
+ type: FunctionConstructor;
5457
+ optional: boolean;
5458
+ };
5459
+ onSelectionConfirmed: {
5460
+ type: FunctionConstructor;
5461
+ optional: boolean;
5462
+ };
5463
+ };
5409
5464
  private id;
5410
5465
  private previousRanges;
5411
5466
  private originSheet;
@@ -5433,26 +5488,172 @@ declare class SelectionInput extends Component<Props$K, SpreadsheetChildEnv> {
5433
5488
  confirm(): void;
5434
5489
  }
5435
5490
 
5436
- interface Props$J {
5491
+ interface Props$Q {
5437
5492
  messages: string[];
5438
5493
  msgType: "warning" | "error";
5439
5494
  }
5440
- declare class ValidationMessages extends Component<Props$J, SpreadsheetChildEnv> {
5495
+ declare class ValidationMessages extends Component<Props$Q, SpreadsheetChildEnv> {
5441
5496
  static template: string;
5497
+ static props: {
5498
+ messages: ArrayConstructor;
5499
+ msgType: StringConstructor;
5500
+ };
5442
5501
  get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
5443
5502
  }
5444
5503
 
5445
- interface Props$I {
5504
+ interface Props$P {
5505
+ label?: string;
5506
+ value: boolean;
5507
+ className?: string;
5508
+ name?: string;
5509
+ onChange: (value: boolean) => void;
5510
+ }
5511
+ declare class Checkbox extends Component<Props$P, SpreadsheetChildEnv> {
5512
+ static template: string;
5513
+ static props: {
5514
+ label: {
5515
+ type: StringConstructor;
5516
+ optional: boolean;
5517
+ };
5518
+ value: {
5519
+ type: BooleanConstructor;
5520
+ optional: boolean;
5521
+ };
5522
+ className: {
5523
+ type: StringConstructor;
5524
+ optional: boolean;
5525
+ };
5526
+ name: {
5527
+ type: StringConstructor;
5528
+ optional: boolean;
5529
+ };
5530
+ onChange: FunctionConstructor;
5531
+ };
5532
+ static defaultProps: {
5533
+ value: boolean;
5534
+ };
5535
+ onChange(ev: InputEvent): void;
5536
+ }
5537
+
5538
+ interface Props$O {
5539
+ class?: string;
5540
+ }
5541
+ declare class Section extends Component<Props$O, SpreadsheetChildEnv> {
5542
+ static template: string;
5543
+ static props: {
5544
+ class: {
5545
+ type: StringConstructor;
5546
+ optional: boolean;
5547
+ };
5548
+ slots: ObjectConstructor;
5549
+ };
5550
+ }
5551
+
5552
+ interface Props$N {
5553
+ ranges: () => string[];
5554
+ hasSingleRange?: boolean;
5555
+ onSelectionChanged: (ranges: string[]) => void;
5556
+ onSelectionConfirmed: () => void;
5557
+ }
5558
+ declare class ChartDataSeries extends Component<Props$N, SpreadsheetChildEnv> {
5559
+ static template: string;
5560
+ static components: {
5561
+ SelectionInput: typeof SelectionInput;
5562
+ Section: typeof Section;
5563
+ };
5564
+ static props: {
5565
+ ranges: FunctionConstructor;
5566
+ hasSingleRange: {
5567
+ type: BooleanConstructor;
5568
+ optional: boolean;
5569
+ };
5570
+ onSelectionChanged: FunctionConstructor;
5571
+ onSelectionConfirmed: FunctionConstructor;
5572
+ };
5573
+ get title(): string;
5574
+ }
5575
+
5576
+ interface Props$M {
5577
+ messages: string[];
5578
+ }
5579
+ declare class ChartErrorSection extends Component<Props$M, SpreadsheetChildEnv> {
5580
+ static template: string;
5581
+ static components: {
5582
+ Section: typeof Section;
5583
+ ValidationMessages: typeof ValidationMessages;
5584
+ };
5585
+ static props: {
5586
+ messages: {
5587
+ type: ArrayConstructor;
5588
+ element: StringConstructor;
5589
+ };
5590
+ };
5591
+ }
5592
+
5593
+ interface Props$L {
5594
+ title?: string;
5595
+ range: () => string;
5596
+ isInvalid: boolean;
5597
+ required?: boolean;
5598
+ onSelectionChanged: (range: string) => void;
5599
+ onSelectionConfirmed: () => void;
5600
+ options?: Array<{
5601
+ name: string;
5602
+ label: string;
5603
+ value: boolean;
5604
+ update: (value: boolean) => void;
5605
+ }>;
5606
+ }
5607
+ declare class ChartLabelRange extends Component<Props$L, SpreadsheetChildEnv> {
5608
+ static template: string;
5609
+ static components: {
5610
+ SelectionInput: typeof SelectionInput;
5611
+ Checkbox: typeof Checkbox;
5612
+ Section: typeof Section;
5613
+ };
5614
+ static props: {
5615
+ title: {
5616
+ type: StringConstructor;
5617
+ optional: boolean;
5618
+ };
5619
+ range: FunctionConstructor;
5620
+ isInvalid: BooleanConstructor;
5621
+ required: {
5622
+ type: BooleanConstructor;
5623
+ optional: boolean;
5624
+ };
5625
+ onSelectionChanged: FunctionConstructor;
5626
+ onSelectionConfirmed: FunctionConstructor;
5627
+ options: {
5628
+ type: ArrayConstructor;
5629
+ optional: boolean;
5630
+ };
5631
+ };
5632
+ static defaultProps: Partial<Props$L>;
5633
+ }
5634
+
5635
+ interface Props$K {
5446
5636
  figureId: UID;
5447
5637
  definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
5448
5638
  canUpdateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
5449
5639
  updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
5450
5640
  }
5451
- declare class LineBarPieConfigPanel extends Component<Props$I, SpreadsheetChildEnv> {
5641
+ declare class LineBarPieConfigPanel extends Component<Props$K, SpreadsheetChildEnv> {
5452
5642
  static template: string;
5453
5643
  static components: {
5454
5644
  SelectionInput: typeof SelectionInput;
5455
5645
  ValidationMessages: typeof ValidationMessages;
5646
+ ChartDataSeries: typeof ChartDataSeries;
5647
+ ChartLabelRange: typeof ChartLabelRange;
5648
+ Section: typeof Section;
5649
+ Checkbox: typeof Checkbox;
5650
+ ChartErrorSection: typeof ChartErrorSection;
5651
+ };
5652
+ static props: {
5653
+ figureId: StringConstructor;
5654
+ definition: ObjectConstructor;
5655
+ updateChart: FunctionConstructor;
5656
+ canUpdateChart: FunctionConstructor;
5456
5657
  };
5457
5658
  private state;
5458
5659
  private dataSeriesRanges;
@@ -5461,7 +5662,14 @@ declare class LineBarPieConfigPanel extends Component<Props$I, SpreadsheetChildE
5461
5662
  get errorMessages(): string[];
5462
5663
  get isDatasetInvalid(): boolean;
5463
5664
  get isLabelInvalid(): boolean;
5464
- onUpdateDataSetsHaveTitle(ev: any): void;
5665
+ get dataSetsHaveTitleLabel(): string;
5666
+ getLabelRangeOptions(): {
5667
+ name: string;
5668
+ label: string;
5669
+ value: boolean | undefined;
5670
+ onChange: (aggregated: boolean) => void;
5671
+ }[];
5672
+ onUpdateDataSetsHaveTitle(dataSetsHaveTitle: boolean): void;
5465
5673
  /**
5466
5674
  * Change the local dataSeriesRanges. The model should be updated when the
5467
5675
  * button "confirm" is clicked
@@ -5476,14 +5684,15 @@ declare class LineBarPieConfigPanel extends Component<Props$I, SpreadsheetChildE
5476
5684
  onLabelRangeChanged(ranges: string[]): void;
5477
5685
  onLabelRangeConfirmed(): void;
5478
5686
  getLabelRange(): string;
5479
- onUpdateAggregated(ev: any): void;
5687
+ onUpdateAggregated(aggregated: boolean): void;
5480
5688
  calculateHeaderPosition(): number | undefined;
5481
5689
  }
5482
5690
 
5483
5691
  declare class BarConfigPanel extends LineBarPieConfigPanel {
5484
5692
  static template: string;
5485
- onUpdateStacked(ev: any): void;
5486
- onUpdateAggregated(ev: any): void;
5693
+ get stackedLabel(): string;
5694
+ onUpdateStacked(stacked: boolean): void;
5695
+ onUpdateAggregated(aggregated: boolean): void;
5487
5696
  }
5488
5697
 
5489
5698
  declare enum ComponentsImportance {
@@ -5523,6 +5732,46 @@ interface PopoverProps {
5523
5732
  }
5524
5733
  declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
5525
5734
  static template: string;
5735
+ static props: {
5736
+ anchorRect: ObjectConstructor;
5737
+ containerRect: {
5738
+ type: ObjectConstructor;
5739
+ optional: boolean;
5740
+ };
5741
+ positioning: {
5742
+ type: StringConstructor;
5743
+ optional: boolean;
5744
+ };
5745
+ maxWidth: {
5746
+ type: NumberConstructor;
5747
+ optional: boolean;
5748
+ };
5749
+ maxHeight: {
5750
+ type: NumberConstructor;
5751
+ optional: boolean;
5752
+ };
5753
+ verticalOffset: {
5754
+ type: NumberConstructor;
5755
+ optional: boolean;
5756
+ };
5757
+ onMouseWheel: {
5758
+ type: FunctionConstructor;
5759
+ optional: boolean;
5760
+ };
5761
+ onPopoverHidden: {
5762
+ type: FunctionConstructor;
5763
+ optional: boolean;
5764
+ };
5765
+ onPopoverMoved: {
5766
+ type: FunctionConstructor;
5767
+ optional: boolean;
5768
+ };
5769
+ zIndex: {
5770
+ type: NumberConstructor;
5771
+ optional: boolean;
5772
+ };
5773
+ slots: ObjectConstructor;
5774
+ };
5526
5775
  static defaultProps: {
5527
5776
  positioning: string;
5528
5777
  verticalOffset: number;
@@ -5548,6 +5797,18 @@ interface ColorPickerProps {
5548
5797
  }
5549
5798
  declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEnv> {
5550
5799
  static template: string;
5800
+ static props: {
5801
+ onColorPicked: FunctionConstructor;
5802
+ currentColor: {
5803
+ type: StringConstructor;
5804
+ optional: boolean;
5805
+ };
5806
+ maxHeight: {
5807
+ type: NumberConstructor;
5808
+ optional: boolean;
5809
+ };
5810
+ anchorRect: ObjectConstructor;
5811
+ };
5551
5812
  static defaultProps: {
5552
5813
  currentColor: string;
5553
5814
  };
@@ -5577,7 +5838,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
5577
5838
  isSameColor(color1: Color, color2: Color): boolean;
5578
5839
  }
5579
5840
 
5580
- interface Props$H {
5841
+ interface Props$J {
5581
5842
  currentColor: string | undefined;
5582
5843
  toggleColorPicker: () => void;
5583
5844
  showColorPicker: boolean;
@@ -5588,8 +5849,34 @@ interface Props$H {
5588
5849
  dropdownMaxHeight?: Pixel;
5589
5850
  class?: string;
5590
5851
  }
5591
- declare class ColorPickerWidget extends Component<Props$H, SpreadsheetChildEnv> {
5852
+ declare class ColorPickerWidget extends Component<Props$J, SpreadsheetChildEnv> {
5592
5853
  static template: string;
5854
+ static props: {
5855
+ currentColor: {
5856
+ type: StringConstructor;
5857
+ optional: boolean;
5858
+ };
5859
+ toggleColorPicker: FunctionConstructor;
5860
+ showColorPicker: BooleanConstructor;
5861
+ onColorPicked: FunctionConstructor;
5862
+ icon: StringConstructor;
5863
+ title: {
5864
+ type: StringConstructor;
5865
+ optional: boolean;
5866
+ };
5867
+ disabled: {
5868
+ type: BooleanConstructor;
5869
+ optional: boolean;
5870
+ };
5871
+ dropdownMaxHeight: {
5872
+ type: NumberConstructor;
5873
+ optional: boolean;
5874
+ };
5875
+ class: {
5876
+ type: StringConstructor;
5877
+ optional: boolean;
5878
+ };
5879
+ };
5593
5880
  static components: {
5594
5881
  ColorPicker: typeof ColorPicker;
5595
5882
  };
@@ -5600,6 +5887,46 @@ declare class ColorPickerWidget extends Component<Props$H, SpreadsheetChildEnv>
5600
5887
  get colorPickerAnchorRect(): Rect;
5601
5888
  }
5602
5889
 
5890
+ interface Props$I {
5891
+ currentColor?: string;
5892
+ onColorPicked: (color: string) => void;
5893
+ }
5894
+ declare class ChartColor extends Component<Props$I, SpreadsheetChildEnv> {
5895
+ static template: string;
5896
+ static components: {
5897
+ ColorPickerWidget: typeof ColorPickerWidget;
5898
+ Section: typeof Section;
5899
+ };
5900
+ static props: {
5901
+ currentColor: {
5902
+ type: StringConstructor;
5903
+ optional: boolean;
5904
+ };
5905
+ onColorPicked: FunctionConstructor;
5906
+ };
5907
+ private state;
5908
+ setup(): void;
5909
+ closePicker(): void;
5910
+ togglePicker(): void;
5911
+ }
5912
+
5913
+ interface Props$H {
5914
+ title: string;
5915
+ update: (title: string) => void;
5916
+ }
5917
+ declare class ChartTitle extends Component<Props$H, SpreadsheetChildEnv> {
5918
+ static template: string;
5919
+ static components: {
5920
+ ColorPickerWidget: typeof ColorPickerWidget;
5921
+ Section: typeof Section;
5922
+ };
5923
+ static props: {
5924
+ title: StringConstructor;
5925
+ update: FunctionConstructor;
5926
+ };
5927
+ updateTitle(ev: InputEvent): void;
5928
+ }
5929
+
5603
5930
  interface Props$G {
5604
5931
  figureId: UID;
5605
5932
  definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
@@ -5609,14 +5936,20 @@ interface Props$G {
5609
5936
  declare class LineBarPieDesignPanel extends Component<Props$G, SpreadsheetChildEnv> {
5610
5937
  static template: string;
5611
5938
  static components: {
5939
+ ChartColor: typeof ChartColor;
5612
5940
  ColorPickerWidget: typeof ColorPickerWidget;
5941
+ ChartTitle: typeof ChartTitle;
5942
+ Section: typeof Section;
5613
5943
  };
5614
- private state;
5615
- onClick(ev: MouseEvent): void;
5616
- setup(): void;
5617
- toggleColorPicker(): void;
5944
+ static props: {
5945
+ figureId: StringConstructor;
5946
+ definition: ObjectConstructor;
5947
+ updateChart: FunctionConstructor;
5948
+ canUpdateChart: FunctionConstructor;
5949
+ };
5950
+ get title(): string;
5618
5951
  updateBackgroundColor(color: Color): void;
5619
- updateTitle(): void;
5952
+ updateTitle(title: string): void;
5620
5953
  updateSelect(attr: string, ev: any): void;
5621
5954
  }
5622
5955
 
@@ -5630,7 +5963,14 @@ declare class GaugeChartConfigPanel extends Component<Props$F, SpreadsheetChildE
5630
5963
  static template: string;
5631
5964
  static components: {
5632
5965
  SelectionInput: typeof SelectionInput;
5633
- ValidationMessages: typeof ValidationMessages;
5966
+ ChartErrorSection: typeof ChartErrorSection;
5967
+ ChartDataSeries: typeof ChartDataSeries;
5968
+ };
5969
+ static props: {
5970
+ figureId: StringConstructor;
5971
+ definition: ObjectConstructor;
5972
+ updateChart: FunctionConstructor;
5973
+ canUpdateChart: FunctionConstructor;
5634
5974
  };
5635
5975
  private state;
5636
5976
  private dataRange;
@@ -5641,7 +5981,7 @@ declare class GaugeChartConfigPanel extends Component<Props$F, SpreadsheetChildE
5641
5981
  getDataRange(): string;
5642
5982
  }
5643
5983
 
5644
- type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5984
+ type GaugeMenu = "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5645
5985
  interface Props$E {
5646
5986
  figureId: UID;
5647
5987
  definition: GaugeChartDefinition;
@@ -5652,13 +5992,23 @@ declare class GaugeChartDesignPanel extends Component<Props$E, SpreadsheetChildE
5652
5992
  static template: string;
5653
5993
  static components: {
5654
5994
  ColorPickerWidget: typeof ColorPickerWidget;
5655
- ValidationMessages: typeof ValidationMessages;
5995
+ ChartErrorSection: typeof ChartErrorSection;
5996
+ ChartColor: typeof ChartColor;
5997
+ ChartTitle: typeof ChartTitle;
5998
+ Section: typeof Section;
5999
+ };
6000
+ static props: {
6001
+ figureId: StringConstructor;
6002
+ definition: ObjectConstructor;
6003
+ updateChart: FunctionConstructor;
6004
+ canUpdateChart: FunctionConstructor;
5656
6005
  };
5657
6006
  private state;
5658
6007
  setup(): void;
6008
+ get title(): string;
5659
6009
  get designErrorMessages(): string[];
5660
6010
  updateBackgroundColor(color: Color): void;
5661
- updateTitle(): void;
6011
+ updateTitle(title: string): void;
5662
6012
  isRangeMinInvalid(): boolean;
5663
6013
  isRangeMaxInvalid(): boolean;
5664
6014
  get isLowerInflectionPointInvalid(): boolean;
@@ -5673,10 +6023,18 @@ declare class GaugeChartDesignPanel extends Component<Props$E, SpreadsheetChildE
5673
6023
  declare class LineConfigPanel extends LineBarPieConfigPanel {
5674
6024
  static template: string;
5675
6025
  get canTreatLabelsAsText(): boolean;
5676
- onUpdateLabelsAsText(ev: any): void;
5677
- onUpdateStacked(ev: any): void;
5678
- onUpdateAggregated(ev: any): void;
5679
- onUpdateCumulative(ev: any): void;
6026
+ get stackedLabel(): string;
6027
+ get cumulativeLabel(): string;
6028
+ getLabelRangeOptions(): {
6029
+ name: string;
6030
+ label: string;
6031
+ value: boolean | undefined;
6032
+ onChange: (aggregated: boolean) => void;
6033
+ }[];
6034
+ onUpdateLabelsAsText(labelsAsText: boolean): void;
6035
+ onUpdateStacked(stacked: boolean): void;
6036
+ onUpdateAggregated(aggregated: boolean): void;
6037
+ onUpdateCumulative(cumulative: boolean): void;
5680
6038
  }
5681
6039
 
5682
6040
  interface Props$D {
@@ -5690,6 +6048,14 @@ declare class ScorecardChartConfigPanel extends Component<Props$D, SpreadsheetCh
5690
6048
  static components: {
5691
6049
  SelectionInput: typeof SelectionInput;
5692
6050
  ValidationMessages: typeof ValidationMessages;
6051
+ ChartErrorSection: typeof ChartErrorSection;
6052
+ Section: typeof Section;
6053
+ };
6054
+ static props: {
6055
+ figureId: StringConstructor;
6056
+ definition: ObjectConstructor;
6057
+ updateChart: FunctionConstructor;
6058
+ canUpdateChart: FunctionConstructor;
5693
6059
  };
5694
6060
  private state;
5695
6061
  private keyValue;
@@ -5717,10 +6083,20 @@ declare class ScorecardChartDesignPanel extends Component<Props$C, SpreadsheetCh
5717
6083
  static template: string;
5718
6084
  static components: {
5719
6085
  ColorPickerWidget: typeof ColorPickerWidget;
6086
+ ChartColor: typeof ChartColor;
6087
+ ChartTitle: typeof ChartTitle;
6088
+ Section: typeof Section;
6089
+ };
6090
+ static props: {
6091
+ figureId: StringConstructor;
6092
+ definition: ObjectConstructor;
6093
+ updateChart: FunctionConstructor;
6094
+ canUpdateChart: FunctionConstructor;
5720
6095
  };
5721
6096
  private state;
5722
6097
  setup(): void;
5723
- updateTitle(): void;
6098
+ get title(): string;
6099
+ updateTitle(title: string): void;
5724
6100
  translate(term: any): string;
5725
6101
  updateBaselineDescr(ev: any): void;
5726
6102
  toggleColorPicker(colorPickerId: ColorPickerId): void;
@@ -5869,6 +6245,9 @@ interface Props$B {
5869
6245
  }
5870
6246
  declare class ChartJsComponent extends Component<Props$B, SpreadsheetChildEnv> {
5871
6247
  static template: string;
6248
+ static props: {
6249
+ figure: ObjectConstructor;
6250
+ };
5872
6251
  private canvas;
5873
6252
  private chart?;
5874
6253
  get background(): string;
@@ -5884,6 +6263,9 @@ interface Props$A {
5884
6263
  }
5885
6264
  declare class ScorecardChart extends Component<Props$A, SpreadsheetChildEnv> {
5886
6265
  static template: string;
6266
+ static props: {
6267
+ figure: ObjectConstructor;
6268
+ };
5887
6269
  private canvas;
5888
6270
  get runtime(): ScorecardChartRuntime;
5889
6271
  setup(): void;
@@ -5909,6 +6291,27 @@ interface MenuState {
5909
6291
  }
5910
6292
  declare class Menu extends Component<Props$z, SpreadsheetChildEnv> {
5911
6293
  static template: string;
6294
+ static props: {
6295
+ position: ObjectConstructor;
6296
+ menuItems: ArrayConstructor;
6297
+ depth: {
6298
+ type: NumberConstructor;
6299
+ optional: boolean;
6300
+ };
6301
+ maxHeight: {
6302
+ type: NumberConstructor;
6303
+ optional: boolean;
6304
+ };
6305
+ onClose: FunctionConstructor;
6306
+ onMenuClicked: {
6307
+ type: FunctionConstructor;
6308
+ optional: boolean;
6309
+ };
6310
+ menuId: {
6311
+ type: StringConstructor;
6312
+ optional: boolean;
6313
+ };
6314
+ };
5912
6315
  static components: {
5913
6316
  Menu: typeof Menu;
5914
6317
  Popover: typeof Popover;
@@ -5954,6 +6357,25 @@ interface Props$y {
5954
6357
  }
5955
6358
  declare class FigureComponent extends Component<Props$y, SpreadsheetChildEnv> {
5956
6359
  static template: string;
6360
+ static props: {
6361
+ figure: ObjectConstructor;
6362
+ style: {
6363
+ type: StringConstructor;
6364
+ optional: boolean;
6365
+ };
6366
+ onFigureDeleted: {
6367
+ type: FunctionConstructor;
6368
+ optional: boolean;
6369
+ };
6370
+ onMouseDown: {
6371
+ type: FunctionConstructor;
6372
+ optional: boolean;
6373
+ };
6374
+ onClickAnchor: {
6375
+ type: FunctionConstructor;
6376
+ optional: boolean;
6377
+ };
6378
+ };
5957
6379
  static components: {
5958
6380
  Menu: typeof Menu;
5959
6381
  };
@@ -5988,6 +6410,10 @@ interface Props$x {
5988
6410
  }
5989
6411
  declare class ChartFigure extends Component<Props$x, SpreadsheetChildEnv> {
5990
6412
  static template: string;
6413
+ static props: {
6414
+ figure: ObjectConstructor;
6415
+ onFigureDeleted: FunctionConstructor;
6416
+ };
5991
6417
  static components: {};
5992
6418
  onDoubleClick(): void;
5993
6419
  get chartType(): ChartType;
@@ -6008,6 +6434,10 @@ interface State$6 {
6008
6434
  }
6009
6435
  declare class Autofill extends Component<Props$w, SpreadsheetChildEnv> {
6010
6436
  static template: string;
6437
+ static props: {
6438
+ position: ObjectConstructor;
6439
+ isVisible: BooleanConstructor;
6440
+ };
6011
6441
  state: State$6;
6012
6442
  get style(): string;
6013
6443
  get handlerStyle(): string;
@@ -6026,6 +6456,13 @@ interface ClientTagProps {
6026
6456
  }
6027
6457
  declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
6028
6458
  static template: string;
6459
+ static props: {
6460
+ active: BooleanConstructor;
6461
+ name: StringConstructor;
6462
+ color: StringConstructor;
6463
+ col: NumberConstructor;
6464
+ row: NumberConstructor;
6465
+ };
6029
6466
  get tagStyle(): string;
6030
6467
  }
6031
6468
 
@@ -6053,12 +6490,77 @@ interface RippleEffectProps extends Omit<Required<RippleProps>, "ignoreClickPosi
6053
6490
  }
6054
6491
  declare class RippleEffect extends Component<RippleEffectProps, SpreadsheetChildEnv> {
6055
6492
  static template: string;
6493
+ static props: {
6494
+ x: StringConstructor;
6495
+ y: StringConstructor;
6496
+ color: StringConstructor;
6497
+ opacity: NumberConstructor;
6498
+ duration: NumberConstructor;
6499
+ width: NumberConstructor;
6500
+ height: NumberConstructor;
6501
+ offsetY: NumberConstructor;
6502
+ offsetX: NumberConstructor;
6503
+ allowOverflow: BooleanConstructor;
6504
+ onAnimationEnd: FunctionConstructor;
6505
+ style: StringConstructor;
6506
+ };
6056
6507
  private rippleRef;
6057
6508
  setup(): void;
6058
6509
  get rippleStyle(): string;
6059
6510
  }
6060
6511
  declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
6061
6512
  static template: string;
6513
+ static props: {
6514
+ color: {
6515
+ type: StringConstructor;
6516
+ optional: boolean;
6517
+ };
6518
+ opacity: {
6519
+ type: NumberConstructor;
6520
+ optional: boolean;
6521
+ };
6522
+ duration: {
6523
+ type: NumberConstructor;
6524
+ optional: boolean;
6525
+ };
6526
+ ignoreClickPosition: {
6527
+ type: BooleanConstructor;
6528
+ optional: boolean;
6529
+ };
6530
+ width: {
6531
+ type: NumberConstructor;
6532
+ optional: boolean;
6533
+ };
6534
+ height: {
6535
+ type: NumberConstructor;
6536
+ optional: boolean;
6537
+ };
6538
+ offsetY: {
6539
+ type: NumberConstructor;
6540
+ optional: boolean;
6541
+ };
6542
+ offsetX: {
6543
+ type: NumberConstructor;
6544
+ optional: boolean;
6545
+ };
6546
+ allowOverflow: {
6547
+ type: BooleanConstructor;
6548
+ optional: boolean;
6549
+ };
6550
+ enabled: {
6551
+ type: BooleanConstructor;
6552
+ optional: boolean;
6553
+ };
6554
+ onAnimationEnd: {
6555
+ type: FunctionConstructor;
6556
+ optional: boolean;
6557
+ };
6558
+ slots: ObjectConstructor;
6559
+ class: {
6560
+ type: StringConstructor;
6561
+ optional: boolean;
6562
+ };
6563
+ };
6062
6564
  static components: {
6063
6565
  RippleEffect: typeof RippleEffect;
6064
6566
  };
@@ -6088,6 +6590,18 @@ interface Props$v {
6088
6590
  }
6089
6591
  declare class BottomBarSheet extends Component<Props$v, SpreadsheetChildEnv> {
6090
6592
  static template: string;
6593
+ static props: {
6594
+ sheetId: StringConstructor;
6595
+ openContextMenu: FunctionConstructor;
6596
+ style: {
6597
+ type: StringConstructor;
6598
+ optional: boolean;
6599
+ };
6600
+ onMouseDown: {
6601
+ type: FunctionConstructor;
6602
+ optional: boolean;
6603
+ };
6604
+ };
6091
6605
  static components: {
6092
6606
  Ripple: typeof Ripple;
6093
6607
  };
@@ -6126,6 +6640,10 @@ interface Props$u {
6126
6640
  }
6127
6641
  declare class BottomBarStatistic extends Component<Props$u, SpreadsheetChildEnv> {
6128
6642
  static template: string;
6643
+ static props: {
6644
+ openContextMenu: FunctionConstructor;
6645
+ closeContextMenu: FunctionConstructor;
6646
+ };
6129
6647
  static components: {
6130
6648
  Ripple: typeof Ripple;
6131
6649
  };
@@ -6149,6 +6667,9 @@ interface BottomBarMenuState extends MenuState {
6149
6667
  }
6150
6668
  declare class BottomBar extends Component<Props$t, SpreadsheetChildEnv> {
6151
6669
  static template: string;
6670
+ static props: {
6671
+ onClick: FunctionConstructor;
6672
+ };
6152
6673
  static components: {
6153
6674
  Menu: typeof Menu;
6154
6675
  Ripple: typeof Ripple;
@@ -6193,8 +6714,23 @@ interface GridCellIconProps {
6193
6714
  offset?: DOMCoordinates;
6194
6715
  }
6195
6716
  declare class GridCellIcon extends Component<GridCellIconProps, SpreadsheetChildEnv> {
6196
- static style: string;
6197
6717
  static template: string;
6718
+ static props: {
6719
+ cellPosition: ObjectConstructor;
6720
+ horizontalAlign: {
6721
+ type: StringConstructor;
6722
+ optional: boolean;
6723
+ };
6724
+ verticalAlign: {
6725
+ type: StringConstructor;
6726
+ optional: boolean;
6727
+ };
6728
+ offset: {
6729
+ type: ObjectConstructor;
6730
+ optional: boolean;
6731
+ };
6732
+ slots: ObjectConstructor;
6733
+ };
6198
6734
  get iconStyle(): string;
6199
6735
  private getIconVerticalPosition;
6200
6736
  private getIconHorizontalPosition;
@@ -6205,8 +6741,10 @@ interface Props$s {
6205
6741
  cellPosition: CellPosition;
6206
6742
  }
6207
6743
  declare class FilterIcon extends Component<Props$s, SpreadsheetChildEnv> {
6208
- static style: string;
6209
6744
  static template: string;
6745
+ static props: {
6746
+ cellPosition: ObjectConstructor;
6747
+ };
6210
6748
  onClick(): void;
6211
6749
  get isFilterActive(): boolean;
6212
6750
  }
@@ -6216,6 +6754,12 @@ interface Props$r {
6216
6754
  }
6217
6755
  declare class FilterIconsOverlay extends Component<Props$r, SpreadsheetChildEnv> {
6218
6756
  static template: string;
6757
+ static props: {
6758
+ gridPosition: {
6759
+ type: ObjectConstructor;
6760
+ optional: boolean;
6761
+ };
6762
+ };
6219
6763
  static components: {
6220
6764
  GridCellIcon: typeof GridCellIcon;
6221
6765
  FilterIcon: typeof FilterIcon;
@@ -6234,6 +6778,9 @@ interface Props$q {
6234
6778
  }
6235
6779
  declare class DataValidationCheckbox extends Component<Props$q, SpreadsheetChildEnv> {
6236
6780
  static template: string;
6781
+ static props: {
6782
+ cellPosition: ObjectConstructor;
6783
+ };
6237
6784
  onCheckboxChange(ev: Event): void;
6238
6785
  get checkBoxValue(): boolean;
6239
6786
  get isDisabled(): boolean;
@@ -6244,11 +6791,15 @@ interface Props$p {
6244
6791
  }
6245
6792
  declare class DataValidationListIcon extends Component<Props$p, SpreadsheetChildEnv> {
6246
6793
  static template: string;
6794
+ static props: {
6795
+ cellPosition: ObjectConstructor;
6796
+ };
6247
6797
  onClick(): void;
6248
6798
  }
6249
6799
 
6250
6800
  declare class DataValidationOverlay extends Component<{}, SpreadsheetChildEnv> {
6251
6801
  static template: string;
6802
+ static props: {};
6252
6803
  static components: {
6253
6804
  GridCellIcon: typeof GridCellIcon;
6254
6805
  DataValidationCheckbox: typeof DataValidationCheckbox;
@@ -6349,6 +6900,9 @@ interface DndState {
6349
6900
  */
6350
6901
  declare class FiguresContainer extends Component<Props$o, SpreadsheetChildEnv> {
6351
6902
  static template: string;
6903
+ static props: {
6904
+ onFigureDeleted: FunctionConstructor;
6905
+ };
6352
6906
  static components: {
6353
6907
  FigureComponent: typeof FigureComponent;
6354
6908
  };
@@ -6384,6 +6938,9 @@ interface Props$n {
6384
6938
  }
6385
6939
  declare class GridAddRowsFooter extends Component<Props$n, SpreadsheetChildEnv> {
6386
6940
  static template: string;
6941
+ static props: {
6942
+ focusGrid: FunctionConstructor;
6943
+ };
6387
6944
  static components: {
6388
6945
  ValidationMessages: typeof ValidationMessages;
6389
6946
  };
@@ -6407,8 +6964,8 @@ interface Props$m {
6407
6964
  onCellHovered: (position: Partial<Position$1>) => void;
6408
6965
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
6409
6966
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
6410
- ctrlKey: boolean;
6411
- shiftKey: boolean;
6967
+ addZone: boolean;
6968
+ expandZone: boolean;
6412
6969
  }) => void;
6413
6970
  onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
6414
6971
  onGridResized: (dimension: Rect) => void;
@@ -6418,6 +6975,34 @@ interface Props$m {
6418
6975
  }
6419
6976
  declare class GridOverlay extends Component<Props$m, SpreadsheetChildEnv> {
6420
6977
  static template: string;
6978
+ static props: {
6979
+ onCellHovered: {
6980
+ type: FunctionConstructor;
6981
+ optional: boolean;
6982
+ };
6983
+ onCellDoubleClicked: {
6984
+ type: FunctionConstructor;
6985
+ optional: boolean;
6986
+ };
6987
+ onCellClicked: {
6988
+ type: FunctionConstructor;
6989
+ optional: boolean;
6990
+ };
6991
+ onCellRightClicked: {
6992
+ type: FunctionConstructor;
6993
+ optional: boolean;
6994
+ };
6995
+ onGridResized: {
6996
+ type: FunctionConstructor;
6997
+ optional: boolean;
6998
+ };
6999
+ onFigureDeleted: {
7000
+ type: FunctionConstructor;
7001
+ optional: boolean;
7002
+ };
7003
+ onGridMoved: FunctionConstructor;
7004
+ gridOverlayDimensions: StringConstructor;
7005
+ };
6421
7006
  static components: {
6422
7007
  FiguresContainer: typeof FiguresContainer;
6423
7008
  DataValidationOverlay: typeof DataValidationOverlay;
@@ -6451,6 +7036,12 @@ interface Props$l {
6451
7036
  }
6452
7037
  declare class GridPopover extends Component<Props$l, SpreadsheetChildEnv> {
6453
7038
  static template: string;
7039
+ static props: {
7040
+ hoveredCell: ObjectConstructor;
7041
+ onClosePopover: FunctionConstructor;
7042
+ onMouseWheel: FunctionConstructor;
7043
+ gridRect: ObjectConstructor;
7044
+ };
6454
7045
  static components: {
6455
7046
  Popover: typeof Popover;
6456
7047
  };
@@ -6469,6 +7060,20 @@ interface Props$k {
6469
7060
  onScroll: (offset: Pixel) => void;
6470
7061
  }
6471
7062
  declare class ScrollBar extends Component<Props$k> {
7063
+ static props: {
7064
+ width: {
7065
+ type: NumberConstructor;
7066
+ optional: boolean;
7067
+ };
7068
+ height: {
7069
+ type: NumberConstructor;
7070
+ optional: boolean;
7071
+ };
7072
+ direction: StringConstructor;
7073
+ position: ObjectConstructor;
7074
+ offset: NumberConstructor;
7075
+ onScroll: FunctionConstructor;
7076
+ };
6472
7077
  static template: string;
6473
7078
  static defaultProps: {
6474
7079
  width: number;
@@ -6486,6 +7091,12 @@ interface Props$j {
6486
7091
  leftOffset: number;
6487
7092
  }
6488
7093
  declare class HorizontalScrollBar extends Component<Props$j, SpreadsheetChildEnv> {
7094
+ static props: {
7095
+ leftOffset: {
7096
+ type: NumberConstructor;
7097
+ optional: boolean;
7098
+ };
7099
+ };
6489
7100
  static components: {
6490
7101
  ScrollBar: typeof ScrollBar;
6491
7102
  };
@@ -6509,6 +7120,12 @@ interface Props$i {
6509
7120
  topOffset: number;
6510
7121
  }
6511
7122
  declare class VerticalScrollBar extends Component<Props$i, SpreadsheetChildEnv> {
7123
+ static props: {
7124
+ topOffset: {
7125
+ type: NumberConstructor;
7126
+ optional: boolean;
7127
+ };
7128
+ };
6512
7129
  static components: {
6513
7130
  ScrollBar: typeof ScrollBar;
6514
7131
  };
@@ -6538,6 +7155,7 @@ interface ClickableCell {
6538
7155
  }
6539
7156
  declare class SpreadsheetDashboard extends Component<Props$h, SpreadsheetChildEnv> {
6540
7157
  static template: string;
7158
+ static props: {};
6541
7159
  static components: {
6542
7160
  GridOverlay: typeof GridOverlay;
6543
7161
  GridPopover: typeof GridPopover;
@@ -6584,6 +7202,11 @@ interface GroupBox {
6584
7202
  }
6585
7203
  declare abstract class AbstractHeaderGroup extends Component<Props$g, SpreadsheetChildEnv> {
6586
7204
  static template: string;
7205
+ static props: {
7206
+ group: ObjectConstructor;
7207
+ layerOffset: NumberConstructor;
7208
+ openContextMenu: FunctionConstructor;
7209
+ };
6587
7210
  abstract dimension: Dimension;
6588
7211
  toggleGroup(): void;
6589
7212
  get groupBoxStyle(): string;
@@ -6615,6 +7238,10 @@ interface Props$f {
6615
7238
  }
6616
7239
  declare class HeaderGroupContainer extends Component<Props$f, SpreadsheetChildEnv> {
6617
7240
  static template: string;
7241
+ static props: {
7242
+ dimension: StringConstructor;
7243
+ layers: ArrayConstructor;
7244
+ };
6618
7245
  static components: {
6619
7246
  RowGroup: typeof RowGroup;
6620
7247
  ColGroup: typeof ColGroup;
@@ -6642,6 +7269,14 @@ interface State$5 {
6642
7269
  }
6643
7270
  declare class SidePanel extends Component<Props$e, SpreadsheetChildEnv> {
6644
7271
  static template: string;
7272
+ static props: {
7273
+ component: StringConstructor;
7274
+ panelProps: {
7275
+ type: ObjectConstructor;
7276
+ optional: boolean;
7277
+ };
7278
+ onCloseSidePanel: FunctionConstructor;
7279
+ };
6645
7280
  state: State$5;
6646
7281
  setup(): void;
6647
7282
  getTitle(): string;
@@ -6714,6 +7349,7 @@ declare namespace ACTION_EDIT {
6714
7349
  }
6715
7350
 
6716
7351
  declare const formatNumberAutomatic: ActionSpec;
7352
+ declare const formatNumberPlainText: ActionSpec;
6717
7353
  declare const formatNumberNumber: ActionSpec;
6718
7354
  declare const formatPercent: ActionSpec;
6719
7355
  declare const formatNumberPercent: ActionSpec;
@@ -6788,6 +7424,7 @@ declare const ACTION_FORMAT_formatNumberFullMonth: typeof formatNumberFullMonth;
6788
7424
  declare const ACTION_FORMAT_formatNumberFullWeekDayAndMonth: typeof formatNumberFullWeekDayAndMonth;
6789
7425
  declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
6790
7426
  declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
7427
+ declare const ACTION_FORMAT_formatNumberPlainText: typeof formatNumberPlainText;
6791
7428
  declare const ACTION_FORMAT_formatNumberShortMonth: typeof formatNumberShortMonth;
6792
7429
  declare const ACTION_FORMAT_formatNumberShortWeekDay: typeof formatNumberShortWeekDay;
6793
7430
  declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
@@ -6834,6 +7471,7 @@ declare namespace ACTION_FORMAT {
6834
7471
  ACTION_FORMAT_formatNumberFullWeekDayAndMonth as formatNumberFullWeekDayAndMonth,
6835
7472
  ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
6836
7473
  ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
7474
+ ACTION_FORMAT_formatNumberPlainText as formatNumberPlainText,
6837
7475
  ACTION_FORMAT_formatNumberShortMonth as formatNumberShortMonth,
6838
7476
  ACTION_FORMAT_formatNumberShortWeekDay as formatNumberShortWeekDay,
6839
7477
  ACTION_FORMAT_formatNumberTime as formatNumberTime,
@@ -6938,6 +7576,25 @@ interface Props$d {
6938
7576
  }
6939
7577
  declare class ActionButton extends Component<Props$d, SpreadsheetChildEnv> {
6940
7578
  static template: string;
7579
+ static props: {
7580
+ action: ObjectConstructor;
7581
+ hasTriangleDownIcon: {
7582
+ type: BooleanConstructor;
7583
+ optional: boolean;
7584
+ };
7585
+ selectedColor: {
7586
+ type: StringConstructor;
7587
+ optional: boolean;
7588
+ };
7589
+ class: {
7590
+ type: StringConstructor;
7591
+ optional: boolean;
7592
+ };
7593
+ onClick: {
7594
+ type: FunctionConstructor;
7595
+ optional: boolean;
7596
+ };
7597
+ };
6941
7598
  private actionButton;
6942
7599
  setup(): void;
6943
7600
  get isVisible(): boolean;
@@ -6966,6 +7623,32 @@ interface BorderEditorProps {
6966
7623
  }
6967
7624
  declare class BorderEditor extends Component<BorderEditorProps, SpreadsheetChildEnv> {
6968
7625
  static template: string;
7626
+ static props: {
7627
+ class: {
7628
+ type: StringConstructor;
7629
+ optional: boolean;
7630
+ };
7631
+ currentBorderColor: {
7632
+ type: StringConstructor;
7633
+ optional: boolean;
7634
+ };
7635
+ currentBorderStyle: {
7636
+ type: StringConstructor;
7637
+ optional: boolean;
7638
+ };
7639
+ currentBorderPosition: {
7640
+ type: StringConstructor;
7641
+ optional: boolean;
7642
+ };
7643
+ onBorderColorPicked: FunctionConstructor;
7644
+ onBorderStylePicked: FunctionConstructor;
7645
+ onBorderPositionPicked: FunctionConstructor;
7646
+ maxHeight: {
7647
+ type: NumberConstructor;
7648
+ optional: boolean;
7649
+ };
7650
+ anchorRect: ObjectConstructor;
7651
+ };
6969
7652
  static components: {
6970
7653
  ColorPickerWidget: typeof ColorPickerWidget;
6971
7654
  Popover: typeof Popover;
@@ -7000,6 +7683,22 @@ interface State$3 {
7000
7683
  }
7001
7684
  declare class BorderEditorWidget extends Component<Props$c, SpreadsheetChildEnv> {
7002
7685
  static template: string;
7686
+ static props: {
7687
+ toggleBorderEditor: FunctionConstructor;
7688
+ showBorderEditor: BooleanConstructor;
7689
+ disabled: {
7690
+ type: BooleanConstructor;
7691
+ optional: boolean;
7692
+ };
7693
+ dropdownMaxHeight: {
7694
+ type: NumberConstructor;
7695
+ optional: boolean;
7696
+ };
7697
+ class: {
7698
+ type: StringConstructor;
7699
+ optional: boolean;
7700
+ };
7701
+ };
7003
7702
  static components: {
7004
7703
  BorderEditor: typeof BorderEditor;
7005
7704
  };
@@ -7023,6 +7722,16 @@ interface Props$b {
7023
7722
  }
7024
7723
  declare class TextValueProvider extends Component<Props$b> {
7025
7724
  static template: string;
7725
+ static props: {
7726
+ values: ArrayConstructor;
7727
+ selectedIndex: {
7728
+ type: NumberConstructor;
7729
+ optional: boolean;
7730
+ };
7731
+ getHtmlContent: FunctionConstructor;
7732
+ onValueSelected: FunctionConstructor;
7733
+ onValueHovered: FunctionConstructor;
7734
+ };
7026
7735
  }
7027
7736
 
7028
7737
  declare class ContentEditableHelper {
@@ -7095,6 +7804,11 @@ interface AssistantState {
7095
7804
  }
7096
7805
  declare class FunctionDescriptionProvider extends Component<Props$a> {
7097
7806
  static template: string;
7807
+ static props: {
7808
+ functionName: StringConstructor;
7809
+ functionDescription: ObjectConstructor;
7810
+ argToFocus: NumberConstructor;
7811
+ };
7098
7812
  assistantState: AssistantState;
7099
7813
  private timeOutId;
7100
7814
  setup(): void;
@@ -7138,6 +7852,28 @@ interface FunctionDescriptionState {
7138
7852
  }
7139
7853
  declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
7140
7854
  static template: string;
7855
+ static props: {
7856
+ focus: {
7857
+ validate: (value: string) => boolean;
7858
+ };
7859
+ onComposerContentFocused: FunctionConstructor;
7860
+ inputStyle: {
7861
+ type: StringConstructor;
7862
+ optional: boolean;
7863
+ };
7864
+ rect: {
7865
+ type: ObjectConstructor;
7866
+ optional: boolean;
7867
+ };
7868
+ delimitation: {
7869
+ type: ObjectConstructor;
7870
+ optional: boolean;
7871
+ };
7872
+ onComposerUnmounted: {
7873
+ type: FunctionConstructor;
7874
+ optional: boolean;
7875
+ };
7876
+ };
7141
7877
  static components: {
7142
7878
  TextValueProvider: typeof TextValueProvider;
7143
7879
  FunctionDescriptionProvider: typeof FunctionDescriptionProvider;
@@ -7219,6 +7955,12 @@ interface Props$9 {
7219
7955
  }
7220
7956
  declare class TopBarComposer extends Component<Props$9, SpreadsheetChildEnv> {
7221
7957
  static template: string;
7958
+ static props: {
7959
+ focus: {
7960
+ validate: (value: string) => boolean;
7961
+ };
7962
+ onComposerContentFocused: FunctionConstructor;
7963
+ };
7222
7964
  static components: {
7223
7965
  Composer: typeof Composer;
7224
7966
  };
@@ -7236,6 +7978,11 @@ interface Props$8 {
7236
7978
  }
7237
7979
  declare class FontSizeEditor extends Component<Props$8, SpreadsheetChildEnv> {
7238
7980
  static template: string;
7981
+ static props: {
7982
+ onToggle: FunctionConstructor;
7983
+ dropdownStyle: StringConstructor;
7984
+ class: StringConstructor;
7985
+ };
7239
7986
  static components: {};
7240
7987
  fontSizes: number[];
7241
7988
  dropdown: State$2;
@@ -7258,6 +8005,12 @@ interface Props$7 {
7258
8005
  }
7259
8006
  declare class PaintFormatButton extends Component<Props$7, SpreadsheetChildEnv> {
7260
8007
  static template: string;
8008
+ static props: {
8009
+ class: {
8010
+ type: StringConstructor;
8011
+ optional: boolean;
8012
+ };
8013
+ };
7261
8014
  get isActive(): boolean;
7262
8015
  onDblClick(): void;
7263
8016
  togglePaintFormat(): void;
@@ -7277,6 +8030,12 @@ interface Props$6 {
7277
8030
  }
7278
8031
  declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
7279
8032
  static template: string;
8033
+ static props: {
8034
+ onClick: FunctionConstructor;
8035
+ focusComposer: StringConstructor;
8036
+ onComposerContentFocused: FunctionConstructor;
8037
+ dropdownMaxHeight: NumberConstructor;
8038
+ };
7280
8039
  get dropdownStyle(): string;
7281
8040
  static components: {
7282
8041
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -7327,6 +8086,9 @@ interface ComposerState {
7327
8086
  }
7328
8087
  declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEnv> {
7329
8088
  static template: string;
8089
+ static props: {
8090
+ model: ObjectConstructor;
8091
+ };
7330
8092
  static components: {
7331
8093
  TopBar: typeof TopBar;
7332
8094
  Grid: typeof Grid;
@@ -7381,6 +8143,14 @@ interface Props$5 {
7381
8143
  */
7382
8144
  declare class GridComposer extends Component<Props$5, SpreadsheetChildEnv> {
7383
8145
  static template: string;
8146
+ static props: {
8147
+ focus: {
8148
+ validate: (value: string) => boolean;
8149
+ };
8150
+ onComposerUnmounted: FunctionConstructor;
8151
+ onComposerContentFocused: FunctionConstructor;
8152
+ gridDims: ObjectConstructor;
8153
+ };
7384
8154
  static components: {
7385
8155
  Composer: typeof Composer;
7386
8156
  };
@@ -7415,6 +8185,9 @@ interface ResizerProps {
7415
8185
  onOpenContextMenu: (type: ContextMenuType, x: Pixel, y: Pixel) => void;
7416
8186
  }
7417
8187
  declare abstract class AbstractResizer extends Component<ResizerProps, SpreadsheetChildEnv> {
8188
+ static props: {
8189
+ onOpenContextMenu: FunctionConstructor;
8190
+ };
7418
8191
  PADDING: number;
7419
8192
  MAX_SIZE_MARGIN: number;
7420
8193
  MIN_ELEMENT_SIZE: number;
@@ -7432,7 +8205,7 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
7432
8205
  abstract _getMaxSize(): Pixel;
7433
8206
  abstract _updateSize(): void;
7434
8207
  abstract _moveElements(): void;
7435
- abstract _selectElement(index: HeaderIndex, ctrlKey: boolean): void;
8208
+ abstract _selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
7436
8209
  abstract _increaseSelection(index: HeaderIndex): void;
7437
8210
  abstract _fitElementSize(index: HeaderIndex): void;
7438
8211
  abstract _getType(): ContextMenuType;
@@ -7451,6 +8224,9 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
7451
8224
  onContextMenu(ev: MouseEvent): void;
7452
8225
  }
7453
8226
  declare class ColResizer extends AbstractResizer {
8227
+ static props: {
8228
+ onOpenContextMenu: FunctionConstructor;
8229
+ };
7454
8230
  static template: string;
7455
8231
  private colResizerRef;
7456
8232
  setup(): void;
@@ -7466,7 +8242,7 @@ declare class ColResizer extends AbstractResizer {
7466
8242
  _getMaxSize(): Pixel;
7467
8243
  _updateSize(): void;
7468
8244
  _moveElements(): void;
7469
- _selectElement(index: HeaderIndex, ctrlKey: boolean): void;
8245
+ _selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
7470
8246
  _increaseSelection(index: HeaderIndex): void;
7471
8247
  _fitElementSize(index: HeaderIndex): void;
7472
8248
  _getType(): ContextMenuType;
@@ -7476,6 +8252,9 @@ declare class ColResizer extends AbstractResizer {
7476
8252
  getUnhideButtonStyle(hiddenIndex: HeaderIndex): string;
7477
8253
  }
7478
8254
  declare class RowResizer extends AbstractResizer {
8255
+ static props: {
8256
+ onOpenContextMenu: FunctionConstructor;
8257
+ };
7479
8258
  static template: string;
7480
8259
  setup(): void;
7481
8260
  private rowResizerRef;
@@ -7491,7 +8270,7 @@ declare class RowResizer extends AbstractResizer {
7491
8270
  _getMaxSize(): Pixel;
7492
8271
  _updateSize(): void;
7493
8272
  _moveElements(): void;
7494
- _selectElement(index: HeaderIndex, ctrlKey: boolean): void;
8273
+ _selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
7495
8274
  _increaseSelection(index: HeaderIndex): void;
7496
8275
  _fitElementSize(index: HeaderIndex): void;
7497
8276
  _getType(): ContextMenuType;
@@ -7501,6 +8280,9 @@ declare class RowResizer extends AbstractResizer {
7501
8280
  getUnhideButtonStyle(hiddenIndex: HeaderIndex): string;
7502
8281
  }
7503
8282
  declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
8283
+ static props: {
8284
+ onOpenContextMenu: FunctionConstructor;
8285
+ };
7504
8286
  static template: string;
7505
8287
  static components: {
7506
8288
  ColResizer: typeof ColResizer;
@@ -7518,6 +8300,12 @@ interface Props$4 {
7518
8300
  }
7519
8301
  declare class Border extends Component<Props$4, SpreadsheetChildEnv> {
7520
8302
  static template: string;
8303
+ static props: {
8304
+ zone: ObjectConstructor;
8305
+ orientation: StringConstructor;
8306
+ isMoving: BooleanConstructor;
8307
+ onMoveHighlight: FunctionConstructor;
8308
+ };
7521
8309
  get style(): string;
7522
8310
  onMouseDown(ev: MouseEvent): void;
7523
8311
  }
@@ -7532,6 +8320,13 @@ interface Props$3 {
7532
8320
  }
7533
8321
  declare class Corner extends Component<Props$3, SpreadsheetChildEnv> {
7534
8322
  static template: string;
8323
+ static props: {
8324
+ zone: ObjectConstructor;
8325
+ color: StringConstructor;
8326
+ orientation: StringConstructor;
8327
+ isResizing: BooleanConstructor;
8328
+ onResizeHighlight: FunctionConstructor;
8329
+ };
7535
8330
  private isTop;
7536
8331
  private isLeft;
7537
8332
  get style(): string;
@@ -7547,6 +8342,10 @@ interface HighlightState {
7547
8342
  }
7548
8343
  declare class Highlight extends Component<Props$2, SpreadsheetChildEnv> {
7549
8344
  static template: string;
8345
+ static props: {
8346
+ zone: ObjectConstructor;
8347
+ color: StringConstructor;
8348
+ };
7550
8349
  static components: {
7551
8350
  Corner: typeof Corner;
7552
8351
  Border: typeof Border;
@@ -7576,6 +8375,13 @@ interface Props$1 {
7576
8375
  }
7577
8376
  declare class Grid extends Component<Props$1, SpreadsheetChildEnv> {
7578
8377
  static template: string;
8378
+ static props: {
8379
+ sidePanelIsOpen: BooleanConstructor;
8380
+ exposeFocus: FunctionConstructor;
8381
+ focusComposer: StringConstructor;
8382
+ onComposerContentFocused: FunctionConstructor;
8383
+ onGridComposerCellFocused: FunctionConstructor;
8384
+ };
7579
8385
  static components: {
7580
8386
  GridComposer: typeof GridComposer;
7581
8387
  GridOverlay: typeof GridOverlay;
@@ -7618,9 +8424,9 @@ declare class Grid extends Component<Props$1, SpreadsheetChildEnv> {
7618
8424
  getClientPositionKey(client: Client): string;
7619
8425
  isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
7620
8426
  private getGridRect;
7621
- onCellClicked(col: HeaderIndex, row: HeaderIndex, { ctrlKey, shiftKey }: {
7622
- ctrlKey: boolean;
7623
- shiftKey: boolean;
8427
+ onCellClicked(col: HeaderIndex, row: HeaderIndex, { addZone, expandZone }: {
8428
+ addZone: boolean;
8429
+ expandZone: boolean;
7624
8430
  }): void;
7625
8431
  onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
7626
8432
  closeOpenedPopover(): void;
@@ -7670,6 +8476,12 @@ interface Props {
7670
8476
  }
7671
8477
  declare class ChartPanel extends Component<Props, SpreadsheetChildEnv> {
7672
8478
  static template: string;
8479
+ static components: {
8480
+ Section: typeof Section;
8481
+ };
8482
+ static props: {
8483
+ onCloseSidePanel: FunctionConstructor;
8484
+ };
7673
8485
  private state;
7674
8486
  get figureId(): UID;
7675
8487
  setup(): void;
@@ -7685,7 +8497,7 @@ declare class ChartPanel extends Component<Props, SpreadsheetChildEnv> {
7685
8497
  declare function toNumber(value: string | number | boolean | null | undefined, locale: Locale): number;
7686
8498
  declare function toString(value: string | number | boolean | null | undefined): string;
7687
8499
  declare function toBoolean(value: string | number | boolean | null | undefined): boolean;
7688
- declare function toJsDate(value: string | number | boolean | null | undefined, locale: Locale): Date;
8500
+ declare function toJsDate(value: string | number | boolean | null | undefined, locale: Locale): DateTime;
7689
8501
 
7690
8502
  declare function arg(definition: string, description?: string): ArgDefinition;
7691
8503
 
@@ -7834,6 +8646,7 @@ declare const helpers: {
7834
8646
  colorToRGBA: typeof colorToRGBA;
7835
8647
  positionToZone: typeof positionToZone;
7836
8648
  isDefined: typeof isDefined;
8649
+ isMatrix: typeof isMatrix;
7837
8650
  lazy: typeof lazy;
7838
8651
  genericRepeat: typeof genericRepeat;
7839
8652
  createAction: typeof createAction;