@odoo/o-spreadsheet 17.2.0-alpha.4 → 17.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,13 @@ import { ChartConfiguration, ChartData, ChartDataset, ChartOptions } from 'chart
8
8
  interface StoreConstructor<T = any, A extends unknown[] = any[]> {
9
9
  new (get: Get, ...args: A): T;
10
10
  }
11
+ /**
12
+ * A store constructor for a store that implements the Disposable interface.
13
+ * Useful for local stores that need to be disposed when the component unmounts.
14
+ */
15
+ interface LocalStoreConstructor<T extends Disposable = any, A extends unknown[] = unknown[]> {
16
+ new (get: Get, ...args: A): T;
17
+ }
11
18
  interface Disposable {
12
19
  dispose(): void;
13
20
  }
@@ -75,6 +82,11 @@ declare class DependencyContainer {
75
82
  * This hook should be used at the root of your app to provide the store container.
76
83
  */
77
84
  declare function useStoreProvider(): DependencyContainer;
85
+ /**
86
+ * Get the instance of a store.
87
+ */
88
+ declare function useStore<T extends StoreConstructor>(Store: T): Store<InstanceType<T>>;
89
+ declare function useLocalStore<T extends LocalStoreConstructor<any>>(Store: T, ...args: StoreParams<T>): Store<InstanceType<T>>;
78
90
 
79
91
  /**
80
92
  * This is a generic event bus based on the Owl event bus.
@@ -399,7 +411,8 @@ interface ScorecardChartRuntime {
399
411
  readonly baselineStyle?: Style;
400
412
  }
401
413
 
402
- type ChartType = "line" | "bar" | "pie" | "scorecard" | "gauge" | "scatter";
414
+ declare const CHART_TYPES: readonly ["line", "bar", "pie", "scorecard", "gauge", "scatter"];
415
+ type ChartType = (typeof CHART_TYPES)[number];
403
416
  type ChartDefinition = LineChartDefinition | PieChartDefinition | BarChartDefinition | ScorecardChartDefinition | GaugeChartDefinition | ScatterChartDefinition;
404
417
  type ChartJSRuntime = LineChartRuntime | PieChartRuntime | BarChartRuntime | GaugeChartRuntime | ScatterChartRuntime;
405
418
  type ChartRuntime = ChartJSRuntime | ScorecardChartRuntime;
@@ -2278,6 +2291,7 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
2278
2291
  private createErrorFormula;
2279
2292
  private checkCellOutOfSheet;
2280
2293
  private checkUselessClearCell;
2294
+ private checkUselessUpdateCell;
2281
2295
  }
2282
2296
 
2283
2297
  /**
@@ -2538,10 +2552,10 @@ declare class FiltersPlugin extends CorePlugin<FiltersState> implements FiltersS
2538
2552
  exportForExcel(data: ExcelWorkbookData): void;
2539
2553
  }
2540
2554
 
2541
- interface State$7 {
2555
+ interface State$6 {
2542
2556
  groups: Record<UID, Record<Dimension, HeaderGroup[]>>;
2543
2557
  }
2544
- declare class HeaderGroupingPlugin extends CorePlugin<State$7> {
2558
+ declare class HeaderGroupingPlugin extends CorePlugin<State$6> {
2545
2559
  static getters: readonly ["getHeaderGroups", "getGroupsLayers", "getVisibleGroupLayers", "getHeaderGroup", "getHeaderGroupsInZone", "isGroupFolded", "isRowFolded", "isColFolded"];
2546
2560
  private readonly groups;
2547
2561
  allowDispatch(cmd: CoreCommand): CommandResult;
@@ -3371,6 +3385,7 @@ interface UIPluginConfig {
3371
3385
  readonly custom: ModelConfig["custom"];
3372
3386
  readonly session: Session;
3373
3387
  readonly defaultCurrencyFormat?: Format;
3388
+ readonly customColors: Color[];
3374
3389
  }
3375
3390
  interface UIPluginConstructor {
3376
3391
  new (config: UIPluginConfig): UIPlugin;
@@ -3437,8 +3452,10 @@ interface CustomColorState {
3437
3452
  */
3438
3453
  declare class CustomColorsPlugin extends UIPlugin<CustomColorState> {
3439
3454
  private readonly customColors;
3455
+ private readonly configCustomColors;
3440
3456
  private readonly shouldUpdateColors;
3441
3457
  static getters: readonly ["getCustomColors"];
3458
+ constructor(config: UIPluginConfig);
3442
3459
  handle(cmd: CoreViewCommand): void;
3443
3460
  finalize(): void;
3444
3461
  getCustomColors(): Color[];
@@ -3873,7 +3890,7 @@ declare class UIOptionsPlugin extends UIPlugin {
3873
3890
  }
3874
3891
 
3875
3892
  declare class SheetUIPlugin extends UIPlugin {
3876
- static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "isCellEmpty"];
3893
+ static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "isEvaluatedCellEmpty"];
3877
3894
  private ctx;
3878
3895
  allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
3879
3896
  handle(cmd: Command): void;
@@ -3891,10 +3908,15 @@ declare class SheetUIPlugin extends UIPlugin {
3891
3908
  */
3892
3909
  getContiguousZone(sheetId: UID, zoneToExpand: Zone): Zone;
3893
3910
  /**
3894
- * Check if a cell is empty. If the cell is part of a merge,
3895
- * check if the merge containing the cell is empty.
3911
+ * Checks if a cell evaluated value is empty. If the cell is part of a merge,
3912
+ * the check applies to the main cell of the merge.
3913
+ */
3914
+ isEvaluatedCellEmpty(position: CellPosition): boolean;
3915
+ /**
3916
+ * Checks if a cell is empty (i.e. does not have a content or a formula does not spread over it).
3917
+ * If the cell is part of a merge, the check applies to the main cell of the merge.
3896
3918
  */
3897
- isCellEmpty(position: CellPosition): boolean;
3919
+ private isCellEmpty;
3898
3920
  private getColMaxWidth;
3899
3921
  /**
3900
3922
  * Check that any "sheetId" in the command matches an existing
@@ -4415,6 +4437,8 @@ type EvalContext = {
4415
4437
  locale: Locale;
4416
4438
  getters: Getters;
4417
4439
  [key: string]: any;
4440
+ updateDependencies?: (position: CellPosition) => void;
4441
+ addDependencies?: (position: CellPosition, ranges: Range[]) => void;
4418
4442
  };
4419
4443
 
4420
4444
  interface HistoryChange {
@@ -4594,6 +4618,12 @@ declare class DateTime {
4594
4618
  declare function formatValue(value: CellValue, { format, locale }: LocaleFormat): FormattedValue;
4595
4619
  declare function createCurrencyFormat(currency: Partial<Currency>): Format;
4596
4620
 
4621
+ /**
4622
+ * Deep copy arrays, plain objects and primitive values.
4623
+ * Throws an error for other types such as class instances.
4624
+ * Sparse arrays remain sparse.
4625
+ */
4626
+ declare function deepCopy<T>(obj: T): T;
4597
4627
  declare function isMarkdownLink(str: string): boolean;
4598
4628
  /**
4599
4629
  * Build a markdown link from a label and an url
@@ -4695,6 +4725,16 @@ declare function toUnboundedZone(xc: string): UnboundedZone;
4695
4725
  *
4696
4726
  */
4697
4727
  declare function toZone(xc: string): Zone;
4728
+ /**
4729
+ * Expand a zone after inserting columns or rows.
4730
+ *
4731
+ * Don't resize the zone if a col/row was added right before/after the row but only move the zone.
4732
+ */
4733
+ declare function expandZoneOnInsertion<Z extends UnboundedZone | Zone>(zone: Z, start: "left" | "top", base: number, position: "after" | "before", quantity: number): Z;
4734
+ /**
4735
+ * Reduce a zone after deletion of elements
4736
+ */
4737
+ declare function reduceZoneOnDeletion<Z extends UnboundedZone | Zone>(zone: Z, start: "left" | "top", elements: number[]): Z | undefined;
4698
4738
  /**
4699
4739
  * Compute the union of multiple zones.
4700
4740
  */
@@ -4703,6 +4743,7 @@ declare function union(...zones: Zone[]): Zone;
4703
4743
  * Return true if two zones overlap, false otherwise.
4704
4744
  */
4705
4745
  declare function overlap(z1: Zone, z2: Zone): boolean;
4746
+ declare function isInside(col: number, row: number, zone: Zone): boolean;
4706
4747
  /**
4707
4748
  * This function will compare the modifications of selection to determine
4708
4749
  * a cell that is part of the new zone and not the previous one.
@@ -4762,6 +4803,7 @@ interface ModelConfig {
4762
4803
  readonly snapshotRequested: boolean;
4763
4804
  readonly notifyUI: (payload: InformationNotification) => void;
4764
4805
  readonly raiseBlockingErrorUI: (text: string) => void;
4806
+ readonly customColors: Color[];
4765
4807
  }
4766
4808
  interface ModelExternalConfig {
4767
4809
  readonly fileStore?: FileStore;
@@ -5192,7 +5234,7 @@ declare class SelectionInputStore extends SpreadsheetStore {
5192
5234
  getIndex(rangeId: number | null): number | null;
5193
5235
  }
5194
5236
 
5195
- interface Props$Q {
5237
+ interface Props$P {
5196
5238
  ranges: string[];
5197
5239
  hasSingleRange?: boolean;
5198
5240
  required?: boolean;
@@ -5214,7 +5256,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
5214
5256
  * onSelectionChanged is called every time the input value
5215
5257
  * changes.
5216
5258
  */
5217
- declare class SelectionInput extends Component<Props$Q, SpreadsheetChildEnv> {
5259
+ declare class SelectionInput extends Component<Props$P, SpreadsheetChildEnv> {
5218
5260
  static template: string;
5219
5261
  static props: {
5220
5262
  ranges: ArrayConstructor;
@@ -5264,11 +5306,11 @@ declare class SelectionInput extends Component<Props$Q, SpreadsheetChildEnv> {
5264
5306
  confirm(): void;
5265
5307
  }
5266
5308
 
5267
- interface Props$P {
5309
+ interface Props$O {
5268
5310
  messages: string[];
5269
5311
  msgType: "warning" | "error";
5270
5312
  }
5271
- declare class ValidationMessages extends Component<Props$P, SpreadsheetChildEnv> {
5313
+ declare class ValidationMessages extends Component<Props$O, SpreadsheetChildEnv> {
5272
5314
  static template: string;
5273
5315
  static props: {
5274
5316
  messages: ArrayConstructor;
@@ -5277,14 +5319,15 @@ declare class ValidationMessages extends Component<Props$P, SpreadsheetChildEnv>
5277
5319
  get divClasses(): "o-validation-warning text-warning" | "o-validation-error text-danger";
5278
5320
  }
5279
5321
 
5280
- interface Props$O {
5322
+ interface Props$N {
5281
5323
  label?: string;
5282
5324
  value: boolean;
5283
5325
  className?: string;
5284
5326
  name?: string;
5327
+ title?: string;
5285
5328
  onChange: (value: boolean) => void;
5286
5329
  }
5287
- declare class Checkbox extends Component<Props$O, SpreadsheetChildEnv> {
5330
+ declare class Checkbox extends Component<Props$N, SpreadsheetChildEnv> {
5288
5331
  static template: string;
5289
5332
  static props: {
5290
5333
  label: {
@@ -5303,6 +5346,10 @@ declare class Checkbox extends Component<Props$O, SpreadsheetChildEnv> {
5303
5346
  type: StringConstructor;
5304
5347
  optional: boolean;
5305
5348
  };
5349
+ title: {
5350
+ type: StringConstructor;
5351
+ optional: boolean;
5352
+ };
5306
5353
  onChange: FunctionConstructor;
5307
5354
  };
5308
5355
  static defaultProps: {
@@ -5311,10 +5358,10 @@ declare class Checkbox extends Component<Props$O, SpreadsheetChildEnv> {
5311
5358
  onChange(ev: InputEvent): void;
5312
5359
  }
5313
5360
 
5314
- interface Props$N {
5361
+ interface Props$M {
5315
5362
  class?: string;
5316
5363
  }
5317
- declare class Section extends Component<Props$N, SpreadsheetChildEnv> {
5364
+ declare class Section extends Component<Props$M, SpreadsheetChildEnv> {
5318
5365
  static template: string;
5319
5366
  static props: {
5320
5367
  class: {
@@ -5325,13 +5372,13 @@ declare class Section extends Component<Props$N, SpreadsheetChildEnv> {
5325
5372
  };
5326
5373
  }
5327
5374
 
5328
- interface Props$M {
5375
+ interface Props$L {
5329
5376
  ranges: string[];
5330
5377
  hasSingleRange?: boolean;
5331
5378
  onSelectionChanged: (ranges: string[]) => void;
5332
5379
  onSelectionConfirmed: () => void;
5333
5380
  }
5334
- declare class ChartDataSeries extends Component<Props$M, SpreadsheetChildEnv> {
5381
+ declare class ChartDataSeries extends Component<Props$L, SpreadsheetChildEnv> {
5335
5382
  static template: string;
5336
5383
  static components: {
5337
5384
  SelectionInput: typeof SelectionInput;
@@ -5349,10 +5396,10 @@ declare class ChartDataSeries extends Component<Props$M, SpreadsheetChildEnv> {
5349
5396
  get title(): string;
5350
5397
  }
5351
5398
 
5352
- interface Props$L {
5399
+ interface Props$K {
5353
5400
  messages: string[];
5354
5401
  }
5355
- declare class ChartErrorSection extends Component<Props$L, SpreadsheetChildEnv> {
5402
+ declare class ChartErrorSection extends Component<Props$K, SpreadsheetChildEnv> {
5356
5403
  static template: string;
5357
5404
  static components: {
5358
5405
  Section: typeof Section;
@@ -5366,7 +5413,7 @@ declare class ChartErrorSection extends Component<Props$L, SpreadsheetChildEnv>
5366
5413
  };
5367
5414
  }
5368
5415
 
5369
- interface Props$K {
5416
+ interface Props$J {
5370
5417
  title?: string;
5371
5418
  range: string;
5372
5419
  isInvalid: boolean;
@@ -5380,7 +5427,7 @@ interface Props$K {
5380
5427
  onChange: (value: boolean) => void;
5381
5428
  }>;
5382
5429
  }
5383
- declare class ChartLabelRange extends Component<Props$K, SpreadsheetChildEnv> {
5430
+ declare class ChartLabelRange extends Component<Props$J, SpreadsheetChildEnv> {
5384
5431
  static template: string;
5385
5432
  static components: {
5386
5433
  SelectionInput: typeof SelectionInput;
@@ -5405,16 +5452,16 @@ declare class ChartLabelRange extends Component<Props$K, SpreadsheetChildEnv> {
5405
5452
  optional: boolean;
5406
5453
  };
5407
5454
  };
5408
- static defaultProps: Partial<Props$K>;
5455
+ static defaultProps: Partial<Props$J>;
5409
5456
  }
5410
5457
 
5411
- interface Props$J {
5458
+ interface Props$I {
5412
5459
  figureId: UID;
5413
5460
  definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
5414
5461
  canUpdateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
5415
5462
  updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
5416
5463
  }
5417
- declare class LineBarPieConfigPanel extends Component<Props$J, SpreadsheetChildEnv> {
5464
+ declare class LineBarPieConfigPanel extends Component<Props$I, SpreadsheetChildEnv> {
5418
5465
  static template: string;
5419
5466
  static components: {
5420
5467
  SelectionInput: typeof SelectionInput;
@@ -5614,7 +5661,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
5614
5661
  isSameColor(color1: Color, color2: Color): boolean;
5615
5662
  }
5616
5663
 
5617
- interface Props$I {
5664
+ interface Props$H {
5618
5665
  currentColor: string | undefined;
5619
5666
  toggleColorPicker: () => void;
5620
5667
  showColorPicker: boolean;
@@ -5625,7 +5672,7 @@ interface Props$I {
5625
5672
  dropdownMaxHeight?: Pixel;
5626
5673
  class?: string;
5627
5674
  }
5628
- declare class ColorPickerWidget extends Component<Props$I, SpreadsheetChildEnv> {
5675
+ declare class ColorPickerWidget extends Component<Props$H, SpreadsheetChildEnv> {
5629
5676
  static template: string;
5630
5677
  static props: {
5631
5678
  currentColor: {
@@ -5663,11 +5710,11 @@ declare class ColorPickerWidget extends Component<Props$I, SpreadsheetChildEnv>
5663
5710
  get colorPickerAnchorRect(): Rect;
5664
5711
  }
5665
5712
 
5666
- interface Props$H {
5713
+ interface Props$G {
5667
5714
  currentColor?: string;
5668
5715
  onColorPicked: (color: string) => void;
5669
5716
  }
5670
- declare class ChartColor extends Component<Props$H, SpreadsheetChildEnv> {
5717
+ declare class ChartColor extends Component<Props$G, SpreadsheetChildEnv> {
5671
5718
  static template: string;
5672
5719
  static components: {
5673
5720
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -5686,11 +5733,11 @@ declare class ChartColor extends Component<Props$H, SpreadsheetChildEnv> {
5686
5733
  togglePicker(): void;
5687
5734
  }
5688
5735
 
5689
- interface Props$G {
5736
+ interface Props$F {
5690
5737
  title: string;
5691
5738
  update: (title: string) => void;
5692
5739
  }
5693
- declare class ChartTitle extends Component<Props$G, SpreadsheetChildEnv> {
5740
+ declare class ChartTitle extends Component<Props$F, SpreadsheetChildEnv> {
5694
5741
  static template: string;
5695
5742
  static components: {
5696
5743
  Section: typeof Section;
@@ -5702,13 +5749,13 @@ declare class ChartTitle extends Component<Props$G, SpreadsheetChildEnv> {
5702
5749
  updateTitle(ev: InputEvent): void;
5703
5750
  }
5704
5751
 
5705
- interface Props$F {
5752
+ interface Props$E {
5706
5753
  figureId: UID;
5707
5754
  definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
5708
5755
  canUpdateChart: (definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
5709
5756
  updateChart: (figureId: UID, definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
5710
5757
  }
5711
- declare class LineBarPieDesignPanel extends Component<Props$F, SpreadsheetChildEnv> {
5758
+ declare class LineBarPieDesignPanel extends Component<Props$E, SpreadsheetChildEnv> {
5712
5759
  static template: string;
5713
5760
  static components: {
5714
5761
  ChartColor: typeof ChartColor;
@@ -5727,13 +5774,13 @@ declare class LineBarPieDesignPanel extends Component<Props$F, SpreadsheetChildE
5727
5774
  updateSelect(attr: string, ev: any): void;
5728
5775
  }
5729
5776
 
5730
- interface Props$E {
5777
+ interface Props$D {
5731
5778
  figureId: UID;
5732
5779
  definition: GaugeChartDefinition;
5733
5780
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
5734
5781
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
5735
5782
  }
5736
- declare class GaugeChartConfigPanel extends Component<Props$E, SpreadsheetChildEnv> {
5783
+ declare class GaugeChartConfigPanel extends Component<Props$D, SpreadsheetChildEnv> {
5737
5784
  static template: string;
5738
5785
  static components: {
5739
5786
  ChartErrorSection: typeof ChartErrorSection;
@@ -5755,13 +5802,13 @@ declare class GaugeChartConfigPanel extends Component<Props$E, SpreadsheetChildE
5755
5802
  }
5756
5803
 
5757
5804
  type GaugeMenu = "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5758
- interface Props$D {
5805
+ interface Props$C {
5759
5806
  figureId: UID;
5760
5807
  definition: GaugeChartDefinition;
5761
5808
  canUpdateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
5762
5809
  updateChart: (figureId: UID, definition: Partial<GaugeChartDefinition>) => DispatchResult;
5763
5810
  }
5764
- declare class GaugeChartDesignPanel extends Component<Props$D, SpreadsheetChildEnv> {
5811
+ declare class GaugeChartDesignPanel extends Component<Props$C, SpreadsheetChildEnv> {
5765
5812
  static template: string;
5766
5813
  static components: {
5767
5814
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -5810,13 +5857,13 @@ declare class LineConfigPanel extends LineBarPieConfigPanel {
5810
5857
  onUpdateCumulative(cumulative: boolean): void;
5811
5858
  }
5812
5859
 
5813
- interface Props$C {
5860
+ interface Props$B {
5814
5861
  figureId: UID;
5815
5862
  definition: ScorecardChartDefinition;
5816
5863
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
5817
5864
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
5818
5865
  }
5819
- declare class ScorecardChartConfigPanel extends Component<Props$C, SpreadsheetChildEnv> {
5866
+ declare class ScorecardChartConfigPanel extends Component<Props$B, SpreadsheetChildEnv> {
5820
5867
  static template: string;
5821
5868
  static components: {
5822
5869
  SelectionInput: typeof SelectionInput;
@@ -5845,13 +5892,13 @@ declare class ScorecardChartConfigPanel extends Component<Props$C, SpreadsheetCh
5845
5892
  }
5846
5893
 
5847
5894
  type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5848
- interface Props$B {
5895
+ interface Props$A {
5849
5896
  figureId: UID;
5850
5897
  definition: ScorecardChartDefinition;
5851
5898
  canUpdateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
5852
5899
  updateChart: (figureId: UID, definition: Partial<ScorecardChartDefinition>) => DispatchResult;
5853
5900
  }
5854
- declare class ScorecardChartDesignPanel extends Component<Props$B, SpreadsheetChildEnv> {
5901
+ declare class ScorecardChartDesignPanel extends Component<Props$A, SpreadsheetChildEnv> {
5855
5902
  static template: string;
5856
5903
  static components: {
5857
5904
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -6163,10 +6210,10 @@ declare class ComposerFocusStore extends SpreadsheetStore {
6163
6210
  private setComposerContent;
6164
6211
  }
6165
6212
 
6166
- interface Props$A {
6213
+ interface Props$z {
6167
6214
  figure: Figure;
6168
6215
  }
6169
- declare class ChartJsComponent extends Component<Props$A, SpreadsheetChildEnv> {
6216
+ declare class ChartJsComponent extends Component<Props$z, SpreadsheetChildEnv> {
6170
6217
  static template: string;
6171
6218
  static props: {
6172
6219
  figure: ObjectConstructor;
@@ -6181,10 +6228,10 @@ declare class ChartJsComponent extends Component<Props$A, SpreadsheetChildEnv> {
6181
6228
  private updateChartJs;
6182
6229
  }
6183
6230
 
6184
- interface Props$z {
6231
+ interface Props$y {
6185
6232
  figure: Figure;
6186
6233
  }
6187
- declare class ScorecardChart extends Component<Props$z, SpreadsheetChildEnv> {
6234
+ declare class ScorecardChart extends Component<Props$y, SpreadsheetChildEnv> {
6188
6235
  static template: string;
6189
6236
  static props: {
6190
6237
  figure: ObjectConstructor;
@@ -6196,7 +6243,7 @@ declare class ScorecardChart extends Component<Props$z, SpreadsheetChildEnv> {
6196
6243
  }
6197
6244
 
6198
6245
  type MenuItemOrSeparator = Action | "separator";
6199
- interface Props$y {
6246
+ interface Props$x {
6200
6247
  position: DOMCoordinates;
6201
6248
  menuItems: Action[];
6202
6249
  depth: number;
@@ -6212,7 +6259,7 @@ interface MenuState {
6212
6259
  scrollOffset?: Pixel;
6213
6260
  menuItems: Action[];
6214
6261
  }
6215
- declare class Menu extends Component<Props$y, SpreadsheetChildEnv> {
6262
+ declare class Menu extends Component<Props$x, SpreadsheetChildEnv> {
6216
6263
  static template: string;
6217
6264
  static props: {
6218
6265
  position: ObjectConstructor;
@@ -6273,14 +6320,14 @@ declare class Menu extends Component<Props$y, SpreadsheetChildEnv> {
6273
6320
  }
6274
6321
 
6275
6322
  type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
6276
- interface Props$x {
6323
+ interface Props$w {
6277
6324
  figure: Figure;
6278
6325
  style: string;
6279
6326
  onFigureDeleted: () => void;
6280
6327
  onMouseDown: (ev: MouseEvent) => void;
6281
6328
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
6282
6329
  }
6283
- declare class FigureComponent extends Component<Props$x, SpreadsheetChildEnv> {
6330
+ declare class FigureComponent extends Component<Props$w, SpreadsheetChildEnv> {
6284
6331
  static template: string;
6285
6332
  static props: {
6286
6333
  figure: ObjectConstructor;
@@ -6329,11 +6376,11 @@ declare class FigureComponent extends Component<Props$x, SpreadsheetChildEnv> {
6329
6376
  private openContextMenu;
6330
6377
  }
6331
6378
 
6332
- interface Props$w {
6379
+ interface Props$v {
6333
6380
  figure: Figure;
6334
6381
  onFigureDeleted: () => void;
6335
6382
  }
6336
- declare class ChartFigure extends Component<Props$w, SpreadsheetChildEnv> {
6383
+ declare class ChartFigure extends Component<Props$v, SpreadsheetChildEnv> {
6337
6384
  static template: string;
6338
6385
  static props: {
6339
6386
  figure: ObjectConstructor;
@@ -6345,7 +6392,7 @@ declare class ChartFigure extends Component<Props$w, SpreadsheetChildEnv> {
6345
6392
  get chartComponent(): new (...args: any) => Component;
6346
6393
  }
6347
6394
 
6348
- interface Props$v {
6395
+ interface Props$u {
6349
6396
  isVisible: boolean;
6350
6397
  position: Position;
6351
6398
  }
@@ -6353,17 +6400,17 @@ interface Position {
6353
6400
  top: HeaderIndex;
6354
6401
  left: HeaderIndex;
6355
6402
  }
6356
- interface State$6 {
6403
+ interface State$5 {
6357
6404
  position: Position;
6358
6405
  handler: boolean;
6359
6406
  }
6360
- declare class Autofill extends Component<Props$v, SpreadsheetChildEnv> {
6407
+ declare class Autofill extends Component<Props$u, SpreadsheetChildEnv> {
6361
6408
  static template: string;
6362
6409
  static props: {
6363
6410
  position: ObjectConstructor;
6364
6411
  isVisible: BooleanConstructor;
6365
6412
  };
6366
- state: State$6;
6413
+ state: State$5;
6367
6414
  get style(): string;
6368
6415
  get handlerStyle(): string;
6369
6416
  get styleNextValue(): string;
@@ -6391,14 +6438,14 @@ declare class ClientTag extends Component<ClientTagProps, SpreadsheetChildEnv> {
6391
6438
  get tagStyle(): string;
6392
6439
  }
6393
6440
 
6394
- interface Props$u {
6441
+ interface Props$t {
6395
6442
  values: AutocompleteValue[];
6396
6443
  selectedIndex: number | undefined;
6397
6444
  getHtmlContent: (value: string) => string;
6398
6445
  onValueSelected: (value: string) => void;
6399
6446
  onValueHovered: (index: string) => void;
6400
6447
  }
6401
- declare class TextValueProvider extends Component<Props$u> {
6448
+ declare class TextValueProvider extends Component<Props$t> {
6402
6449
  static template: string;
6403
6450
  static props: {
6404
6451
  values: ArrayConstructor;
@@ -6410,6 +6457,8 @@ declare class TextValueProvider extends Component<Props$u> {
6410
6457
  onValueSelected: FunctionConstructor;
6411
6458
  onValueHovered: FunctionConstructor;
6412
6459
  };
6460
+ private autoCompleteListRef;
6461
+ setup(): void;
6413
6462
  }
6414
6463
 
6415
6464
  declare class ContentEditableHelper {
@@ -6472,7 +6521,7 @@ declare class ContentEditableHelper {
6472
6521
  getText(): string;
6473
6522
  }
6474
6523
 
6475
- interface Props$t {
6524
+ interface Props$s {
6476
6525
  functionName: string;
6477
6526
  functionDescription: FunctionDescription;
6478
6527
  argToFocus: number;
@@ -6480,7 +6529,7 @@ interface Props$t {
6480
6529
  interface AssistantState {
6481
6530
  allowCellSelectionBehind: boolean;
6482
6531
  }
6483
- declare class FunctionDescriptionProvider extends Component<Props$t> {
6532
+ declare class FunctionDescriptionProvider extends Component<Props$s> {
6484
6533
  static template: string;
6485
6534
  static props: {
6486
6535
  functionName: StringConstructor;
@@ -6490,7 +6539,7 @@ declare class FunctionDescriptionProvider extends Component<Props$t> {
6490
6539
  assistantState: AssistantState;
6491
6540
  private timeOutId;
6492
6541
  setup(): void;
6493
- getContext(): Props$t;
6542
+ getContext(): Props$s;
6494
6543
  onMouseMove(): void;
6495
6544
  }
6496
6545
 
@@ -6635,14 +6684,14 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
6635
6684
  private showDataValidationAutocomplete;
6636
6685
  }
6637
6686
 
6638
- interface Props$s {
6687
+ interface Props$r {
6639
6688
  gridDims: DOMDimension;
6640
6689
  }
6641
6690
  /**
6642
6691
  * This component is a composer which positions itself on the grid at the anchor cell.
6643
6692
  * It also applies the style of the cell to the composer input.
6644
6693
  */
6645
- declare class GridComposer extends Component<Props$s, SpreadsheetChildEnv> {
6694
+ declare class GridComposer extends Component<Props$r, SpreadsheetChildEnv> {
6646
6695
  static template: string;
6647
6696
  static props: {
6648
6697
  gridDims: ObjectConstructor;
@@ -6724,10 +6773,10 @@ declare class CellPopoverStore extends SpreadsheetStore {
6724
6773
  private computePopoverAnchorRect;
6725
6774
  }
6726
6775
 
6727
- interface Props$r {
6776
+ interface Props$q {
6728
6777
  cellPosition: CellPosition;
6729
6778
  }
6730
- declare class FilterIcon extends Component<Props$r, SpreadsheetChildEnv> {
6779
+ declare class FilterIcon extends Component<Props$q, SpreadsheetChildEnv> {
6731
6780
  static template: string;
6732
6781
  static props: {
6733
6782
  cellPosition: ObjectConstructor;
@@ -6738,10 +6787,10 @@ declare class FilterIcon extends Component<Props$r, SpreadsheetChildEnv> {
6738
6787
  get isFilterActive(): boolean;
6739
6788
  }
6740
6789
 
6741
- interface Props$q {
6790
+ interface Props$p {
6742
6791
  gridPosition: DOMCoordinates;
6743
6792
  }
6744
- declare class FilterIconsOverlay extends Component<Props$q, SpreadsheetChildEnv> {
6793
+ declare class FilterIconsOverlay extends Component<Props$p, SpreadsheetChildEnv> {
6745
6794
  static template: string;
6746
6795
  static props: {
6747
6796
  gridPosition: {
@@ -6762,10 +6811,10 @@ declare class FilterIconsOverlay extends Component<Props$q, SpreadsheetChildEnv>
6762
6811
  getFilterHeadersPositions(): CellPosition[];
6763
6812
  }
6764
6813
 
6765
- interface Props$p {
6814
+ interface Props$o {
6766
6815
  cellPosition: CellPosition;
6767
6816
  }
6768
- declare class DataValidationCheckbox extends Component<Props$p, SpreadsheetChildEnv> {
6817
+ declare class DataValidationCheckbox extends Component<Props$o, SpreadsheetChildEnv> {
6769
6818
  static template: string;
6770
6819
  static props: {
6771
6820
  cellPosition: ObjectConstructor;
@@ -6775,10 +6824,10 @@ declare class DataValidationCheckbox extends Component<Props$p, SpreadsheetChild
6775
6824
  get isDisabled(): boolean;
6776
6825
  }
6777
6826
 
6778
- interface Props$o {
6827
+ interface Props$n {
6779
6828
  cellPosition: CellPosition;
6780
6829
  }
6781
- declare class DataValidationListIcon extends Component<Props$o, SpreadsheetChildEnv> {
6830
+ declare class DataValidationListIcon extends Component<Props$n, SpreadsheetChildEnv> {
6782
6831
  static template: string;
6783
6832
  static props: {
6784
6833
  cellPosition: ObjectConstructor;
@@ -6808,7 +6857,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
6808
6857
  }
6809
6858
 
6810
6859
  type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
6811
- interface Props$n {
6860
+ interface Props$m {
6812
6861
  onFigureDeleted: () => void;
6813
6862
  }
6814
6863
  interface Container {
@@ -6887,7 +6936,7 @@ interface DndState {
6887
6936
  * that occurred during the drag & drop, and to position the figure on the correct pane.
6888
6937
  *
6889
6938
  */
6890
- declare class FiguresContainer extends Component<Props$n, SpreadsheetChildEnv> {
6939
+ declare class FiguresContainer extends Component<Props$m, SpreadsheetChildEnv> {
6891
6940
  static template: string;
6892
6941
  static props: {
6893
6942
  onFigureDeleted: FunctionConstructor;
@@ -6922,10 +6971,10 @@ declare class FiguresContainer extends Component<Props$n, SpreadsheetChildEnv> {
6922
6971
  private getSnapLineStyle;
6923
6972
  }
6924
6973
 
6925
- interface Props$m {
6974
+ interface Props$l {
6926
6975
  focusGrid: () => void;
6927
6976
  }
6928
- declare class GridAddRowsFooter extends Component<Props$m, SpreadsheetChildEnv> {
6977
+ declare class GridAddRowsFooter extends Component<Props$l, SpreadsheetChildEnv> {
6929
6978
  static template: string;
6930
6979
  static props: {
6931
6980
  focusGrid: FunctionConstructor;
@@ -6949,7 +6998,7 @@ declare class GridAddRowsFooter extends Component<Props$m, SpreadsheetChildEnv>
6949
6998
  private onExternalClick;
6950
6999
  }
6951
7000
 
6952
- interface Props$l {
7001
+ interface Props$k {
6953
7002
  onCellHovered: (position: Partial<Position$1>) => void;
6954
7003
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
6955
7004
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
@@ -6962,7 +7011,7 @@ interface Props$l {
6962
7011
  gridOverlayDimensions: string;
6963
7012
  onFigureDeleted: () => void;
6964
7013
  }
6965
- declare class GridOverlay extends Component<Props$l, SpreadsheetChildEnv> {
7014
+ declare class GridOverlay extends Component<Props$k, SpreadsheetChildEnv> {
6966
7015
  static template: string;
6967
7016
  static props: {
6968
7017
  onCellHovered: {
@@ -7017,12 +7066,12 @@ declare class GridOverlay extends Component<Props$l, SpreadsheetChildEnv> {
7017
7066
  private getCartesianCoordinates;
7018
7067
  }
7019
7068
 
7020
- interface Props$k {
7069
+ interface Props$j {
7021
7070
  gridRect: Rect;
7022
7071
  onClosePopover: () => void;
7023
7072
  onMouseWheel: (ev: WheelEvent) => void;
7024
7073
  }
7025
- declare class GridPopover extends Component<Props$k, SpreadsheetChildEnv> {
7074
+ declare class GridPopover extends Component<Props$j, SpreadsheetChildEnv> {
7026
7075
  static template: string;
7027
7076
  static props: {
7028
7077
  onClosePopover: FunctionConstructor;
@@ -7165,13 +7214,13 @@ declare class HeadersOverlay extends Component<any, SpreadsheetChildEnv> {
7165
7214
  }
7166
7215
 
7167
7216
  type Orientation$1 = "n" | "s" | "w" | "e";
7168
- interface Props$j {
7217
+ interface Props$i {
7169
7218
  zone: Zone;
7170
7219
  orientation: Orientation$1;
7171
7220
  isMoving: boolean;
7172
7221
  onMoveHighlight: (x: Pixel, y: Pixel) => void;
7173
7222
  }
7174
- declare class Border extends Component<Props$j, SpreadsheetChildEnv> {
7223
+ declare class Border extends Component<Props$i, SpreadsheetChildEnv> {
7175
7224
  static template: string;
7176
7225
  static props: {
7177
7226
  zone: ObjectConstructor;
@@ -7184,14 +7233,14 @@ declare class Border extends Component<Props$j, SpreadsheetChildEnv> {
7184
7233
  }
7185
7234
 
7186
7235
  type Orientation = "nw" | "ne" | "sw" | "se";
7187
- interface Props$i {
7236
+ interface Props$h {
7188
7237
  zone: Zone;
7189
7238
  color: Color;
7190
7239
  orientation: Orientation;
7191
7240
  isResizing: boolean;
7192
7241
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
7193
7242
  }
7194
- declare class Corner extends Component<Props$i, SpreadsheetChildEnv> {
7243
+ declare class Corner extends Component<Props$h, SpreadsheetChildEnv> {
7195
7244
  static template: string;
7196
7245
  static props: {
7197
7246
  zone: ObjectConstructor;
@@ -7206,14 +7255,14 @@ declare class Corner extends Component<Props$i, SpreadsheetChildEnv> {
7206
7255
  onMouseDown(ev: MouseEvent): void;
7207
7256
  }
7208
7257
 
7209
- interface Props$h {
7258
+ interface Props$g {
7210
7259
  zone: Zone;
7211
7260
  color: Color;
7212
7261
  }
7213
7262
  interface HighlightState {
7214
7263
  shiftingMode: "isMoving" | "isResizing" | "none";
7215
7264
  }
7216
- declare class Highlight extends Component<Props$h, SpreadsheetChildEnv> {
7265
+ declare class Highlight extends Component<Props$g, SpreadsheetChildEnv> {
7217
7266
  static template: string;
7218
7267
  static props: {
7219
7268
  zone: ObjectConstructor;
@@ -7230,7 +7279,7 @@ declare class Highlight extends Component<Props$h, SpreadsheetChildEnv> {
7230
7279
 
7231
7280
  type ScrollDirection = "horizontal" | "vertical";
7232
7281
 
7233
- interface Props$g {
7282
+ interface Props$f {
7234
7283
  width: Pixel;
7235
7284
  height: Pixel;
7236
7285
  direction: ScrollDirection;
@@ -7238,7 +7287,7 @@ interface Props$g {
7238
7287
  offset: Pixel;
7239
7288
  onScroll: (offset: Pixel) => void;
7240
7289
  }
7241
- declare class ScrollBar extends Component<Props$g> {
7290
+ declare class ScrollBar extends Component<Props$f> {
7242
7291
  static props: {
7243
7292
  width: {
7244
7293
  type: NumberConstructor;
@@ -7266,10 +7315,10 @@ declare class ScrollBar extends Component<Props$g> {
7266
7315
  onScroll(ev: any): void;
7267
7316
  }
7268
7317
 
7269
- interface Props$f {
7318
+ interface Props$e {
7270
7319
  leftOffset: number;
7271
7320
  }
7272
- declare class HorizontalScrollBar extends Component<Props$f, SpreadsheetChildEnv> {
7321
+ declare class HorizontalScrollBar extends Component<Props$e, SpreadsheetChildEnv> {
7273
7322
  static props: {
7274
7323
  leftOffset: {
7275
7324
  type: NumberConstructor;
@@ -7295,10 +7344,10 @@ declare class HorizontalScrollBar extends Component<Props$f, SpreadsheetChildEnv
7295
7344
  onScroll(offset: any): void;
7296
7345
  }
7297
7346
 
7298
- interface Props$e {
7347
+ interface Props$d {
7299
7348
  topOffset: number;
7300
7349
  }
7301
- declare class VerticalScrollBar extends Component<Props$e, SpreadsheetChildEnv> {
7350
+ declare class VerticalScrollBar extends Component<Props$d, SpreadsheetChildEnv> {
7302
7351
  static props: {
7303
7352
  topOffset: {
7304
7353
  type: NumberConstructor;
@@ -7324,6 +7373,19 @@ declare class VerticalScrollBar extends Component<Props$e, SpreadsheetChildEnv>
7324
7373
  onScroll(offset: any): void;
7325
7374
  }
7326
7375
 
7376
+ interface SidePanelProps {
7377
+ onCloseSidePanel?: () => void;
7378
+ [key: string]: unknown;
7379
+ }
7380
+ declare class SidePanelStore extends SpreadsheetStore {
7381
+ isOpen: boolean;
7382
+ panelProps: SidePanelProps;
7383
+ componentTag: string;
7384
+ open(componentTag: string, panelProps?: SidePanelProps): void;
7385
+ toggle(componentTag: string, panelProps: SidePanelProps): void;
7386
+ close(): void;
7387
+ }
7388
+
7327
7389
  declare class HoveredCellStore extends SpreadsheetStore {
7328
7390
  col: number | undefined;
7329
7391
  row: number | undefined;
@@ -7343,14 +7405,12 @@ declare class HoveredCellStore extends SpreadsheetStore {
7343
7405
  * - a vertical resizer (same, for rows)
7344
7406
  */
7345
7407
  type ContextMenuType = "ROW" | "COL" | "CELL" | "FILTER" | "GROUP_HEADERS" | "UNGROUP_HEADERS";
7346
- interface Props$d {
7347
- sidePanelIsOpen: boolean;
7408
+ interface Props$c {
7348
7409
  exposeFocus: (focus: () => void) => void;
7349
7410
  }
7350
- declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
7411
+ declare class Grid extends Component<Props$c, SpreadsheetChildEnv> {
7351
7412
  static template: string;
7352
7413
  static props: {
7353
- sidePanelIsOpen: BooleanConstructor;
7354
7414
  exposeFocus: FunctionConstructor;
7355
7415
  };
7356
7416
  static components: {
@@ -7379,6 +7439,7 @@ declare class Grid extends Component<Props$d, SpreadsheetChildEnv> {
7379
7439
  onMouseWheel: (ev: WheelEvent) => void;
7380
7440
  canvasPosition: DOMCoordinates;
7381
7441
  hoveredCell: Store<HoveredCellStore>;
7442
+ sidePanel: Store<SidePanelStore>;
7382
7443
  setup(): void;
7383
7444
  onCellHovered({ col, row }: {
7384
7445
  col: any;
@@ -7439,21 +7500,21 @@ interface DndPartialArgs {
7439
7500
  onCancel?: () => void;
7440
7501
  onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
7441
7502
  }
7442
- interface State$5 {
7503
+ interface State$4 {
7443
7504
  itemsStyle: Record<UID, string>;
7444
7505
  draggedItemId: UID | undefined;
7445
7506
  start: (direction: Direction, args: DndPartialArgs) => void;
7446
7507
  cancel: () => void;
7447
7508
  }
7448
- declare function useDragAndDropListItems(): State$5;
7509
+ declare function useDragAndDropListItems(): State$4;
7449
7510
 
7450
7511
  declare function useHighlightsOnHover(ref: Ref<HTMLElement>, highlightProvider: HighlightProvider): void;
7451
7512
  declare function useHighlights(highlightProvider: HighlightProvider): void;
7452
7513
 
7453
- interface Props$c {
7514
+ interface Props$b {
7454
7515
  onCloseSidePanel: () => void;
7455
7516
  }
7456
- declare class ChartPanel extends Component<Props$c, SpreadsheetChildEnv> {
7517
+ declare class ChartPanel extends Component<Props$b, SpreadsheetChildEnv> {
7457
7518
  static template: string;
7458
7519
  static components: {
7459
7520
  Section: typeof Section;
@@ -7461,8 +7522,8 @@ declare class ChartPanel extends Component<Props$c, SpreadsheetChildEnv> {
7461
7522
  static props: {
7462
7523
  onCloseSidePanel: FunctionConstructor;
7463
7524
  };
7464
- private state;
7465
- get figureId(): UID;
7525
+ private store;
7526
+ get figureId(): UID | null;
7466
7527
  setup(): void;
7467
7528
  updateChart<T extends ChartDefinition>(figureId: UID, updateDefinition: Partial<T>): DispatchResult | undefined;
7468
7529
  canUpdateChart<T extends ChartDefinition>(figureId: UID, updateDefinition: Partial<T>): DispatchResult | undefined;
@@ -7470,7 +7531,6 @@ declare class ChartPanel extends Component<Props$c, SpreadsheetChildEnv> {
7470
7531
  get chartPanel(): ChartSidePanel;
7471
7532
  private getChartDefinition;
7472
7533
  get chartTypes(): Record<string, string>;
7473
- activatePanel(panel: "configuration" | "design"): void;
7474
7534
  }
7475
7535
 
7476
7536
  declare class FindAndReplaceStore extends SpreadsheetStore {
@@ -7721,13 +7781,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
7721
7781
  getRippleEffectProps(id: number): RippleEffectProps;
7722
7782
  }
7723
7783
 
7724
- interface Props$b {
7784
+ interface Props$a {
7725
7785
  sheetId: string;
7726
7786
  openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
7727
7787
  style?: string;
7728
7788
  onMouseDown: (ev: MouseEvent) => void;
7729
7789
  }
7730
- declare class BottomBarSheet extends Component<Props$b, SpreadsheetChildEnv> {
7790
+ declare class BottomBarSheet extends Component<Props$a, SpreadsheetChildEnv> {
7731
7791
  static template: string;
7732
7792
  static props: {
7733
7793
  sheetId: StringConstructor;
@@ -7773,11 +7833,11 @@ declare class BottomBarSheet extends Component<Props$b, SpreadsheetChildEnv> {
7773
7833
  get sheetName(): string;
7774
7834
  }
7775
7835
 
7776
- interface Props$a {
7836
+ interface Props$9 {
7777
7837
  openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
7778
7838
  closeContextMenu: () => void;
7779
7839
  }
7780
- declare class BottomBarStatistic extends Component<Props$a, SpreadsheetChildEnv> {
7840
+ declare class BottomBarStatistic extends Component<Props$9, SpreadsheetChildEnv> {
7781
7841
  static template: string;
7782
7842
  static props: {
7783
7843
  openContextMenu: FunctionConstructor;
@@ -7798,13 +7858,13 @@ interface BottomBarSheetItem {
7798
7858
  id: UID;
7799
7859
  name: string;
7800
7860
  }
7801
- interface Props$9 {
7861
+ interface Props$8 {
7802
7862
  onClick: () => void;
7803
7863
  }
7804
7864
  interface BottomBarMenuState extends MenuState {
7805
7865
  menuId: UID | undefined;
7806
7866
  }
7807
- declare class BottomBar extends Component<Props$9, SpreadsheetChildEnv> {
7867
+ declare class BottomBar extends Component<Props$8, SpreadsheetChildEnv> {
7808
7868
  static template: string;
7809
7869
  static props: {
7810
7870
  onClick: FunctionConstructor;
@@ -7846,7 +7906,7 @@ declare class BottomBar extends Component<Props$9, SpreadsheetChildEnv> {
7846
7906
  get sheetListMaxScroll(): number;
7847
7907
  }
7848
7908
 
7849
- interface Props$8 {
7909
+ interface Props$7 {
7850
7910
  }
7851
7911
  interface ClickableCell {
7852
7912
  coordinates: Rect;
@@ -7854,7 +7914,7 @@ interface ClickableCell {
7854
7914
  action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
7855
7915
  tKey: string;
7856
7916
  }
7857
- declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEnv> {
7917
+ declare class SpreadsheetDashboard extends Component<Props$7, SpreadsheetChildEnv> {
7858
7918
  static template: string;
7859
7919
  static props: {};
7860
7920
  static components: {
@@ -7892,7 +7952,7 @@ declare class SpreadsheetDashboard extends Component<Props$8, SpreadsheetChildEn
7892
7952
  private getGridRect;
7893
7953
  }
7894
7954
 
7895
- interface Props$7 {
7955
+ interface Props$6 {
7896
7956
  group: HeaderGroup;
7897
7957
  layerOffset: number;
7898
7958
  openContextMenu(position: DOMCoordinates, menuItems: Action[]): void;
@@ -7902,7 +7962,7 @@ interface GroupBox {
7902
7962
  headerRect: Rect;
7903
7963
  isEndHidden: boolean;
7904
7964
  }
7905
- declare abstract class AbstractHeaderGroup extends Component<Props$7, SpreadsheetChildEnv> {
7965
+ declare abstract class AbstractHeaderGroup extends Component<Props$6, SpreadsheetChildEnv> {
7906
7966
  static template: string;
7907
7967
  static props: {
7908
7968
  group: ObjectConstructor;
@@ -7934,11 +7994,11 @@ declare class ColGroup extends AbstractHeaderGroup {
7934
7994
  get groupBox(): GroupBox;
7935
7995
  }
7936
7996
 
7937
- interface Props$6 {
7997
+ interface Props$5 {
7938
7998
  dimension: Dimension;
7939
7999
  layers: HeaderGroup[][];
7940
8000
  }
7941
- declare class HeaderGroupContainer extends Component<Props$6, SpreadsheetChildEnv> {
8001
+ declare class HeaderGroupContainer extends Component<Props$5, SpreadsheetChildEnv> {
7942
8002
  static template: string;
7943
8003
  static props: {
7944
8004
  dimension: StringConstructor;
@@ -7961,26 +8021,13 @@ declare class HeaderGroupContainer extends Component<Props$6, SpreadsheetChildEn
7961
8021
  get frozenPaneContainerSize(): Pixel;
7962
8022
  }
7963
8023
 
7964
- interface Props$5 {
7965
- component: string;
7966
- panelProps: any;
7967
- onCloseSidePanel: () => void;
7968
- }
7969
- interface State$4 {
7970
- panel: SidePanelContent;
7971
- }
7972
- declare class SidePanel extends Component<Props$5, SpreadsheetChildEnv> {
8024
+ declare class SidePanel extends Component<never, SpreadsheetChildEnv> {
7973
8025
  static template: string;
7974
- static props: {
7975
- component: StringConstructor;
7976
- panelProps: {
7977
- type: ObjectConstructor;
7978
- optional: boolean;
7979
- };
7980
- onCloseSidePanel: FunctionConstructor;
7981
- };
7982
- state: State$4;
8026
+ static props: {};
8027
+ sidePanelStore: Store<SidePanelStore>;
7983
8028
  setup(): void;
8029
+ get panel(): SidePanelContent;
8030
+ close(): void;
7984
8031
  getTitle(): string;
7985
8032
  }
7986
8033
 
@@ -8532,11 +8579,6 @@ declare class TopBar extends Component<Props, SpreadsheetChildEnv> {
8532
8579
  interface SpreadsheetProps {
8533
8580
  model: Model;
8534
8581
  }
8535
- interface SidePanelState {
8536
- isOpen: boolean;
8537
- component?: string;
8538
- panelProps: any;
8539
- }
8540
8582
  declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEnv> {
8541
8583
  static template: string;
8542
8584
  static props: {
@@ -8550,7 +8592,7 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
8550
8592
  SpreadsheetDashboard: typeof SpreadsheetDashboard;
8551
8593
  HeaderGroupContainer: typeof HeaderGroupContainer;
8552
8594
  };
8553
- sidePanel: SidePanelState;
8595
+ sidePanel: Store<SidePanelStore>;
8554
8596
  spreadsheetRef: {
8555
8597
  el: HTMLElement | null;
8556
8598
  };
@@ -8565,9 +8607,6 @@ declare class Spreadsheet extends Component<SpreadsheetProps, SpreadsheetChildEn
8565
8607
  private bindModelEvents;
8566
8608
  private unbindModelEvents;
8567
8609
  private checkViewportSize;
8568
- openSidePanel(panel: string, panelProps: any): void;
8569
- closeSidePanel(): void;
8570
- toggleSidePanel(panel: string, panelProps: any): void;
8571
8610
  focusGrid(): void;
8572
8611
  onKeydown(ev: KeyboardEvent): void;
8573
8612
  get gridHeight(): Pixel;
@@ -9489,6 +9528,10 @@ declare const helpers: {
9489
9528
  deepEquals: typeof deepEquals;
9490
9529
  overlap: typeof overlap;
9491
9530
  union: typeof union;
9531
+ isInside: typeof isInside;
9532
+ deepCopy: typeof deepCopy;
9533
+ expandZoneOnInsertion: typeof expandZoneOnInsertion;
9534
+ reduceZoneOnDeletion: typeof reduceZoneOnDeletion;
9492
9535
  };
9493
9536
  declare const links: {
9494
9537
  isMarkdownLink: typeof isMarkdownLink;
@@ -9543,6 +9586,9 @@ declare const stores: {
9543
9586
  RendererStore: typeof RendererStore;
9544
9587
  SelectionInputStore: typeof SelectionInputStore;
9545
9588
  SpreadsheetStore: typeof SpreadsheetStore;
9589
+ useStore: typeof useStore;
9590
+ useLocalStore: typeof useLocalStore;
9591
+ SidePanelStore: typeof SidePanelStore;
9546
9592
  };
9547
9593
  declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
9548
9594
  addFunction: (fName: string, fDescription: AddFunctionDescription) => any;
@@ -9552,4 +9598,4 @@ declare const constants: {
9552
9598
  SECONDARY_COLOR: string;
9553
9599
  };
9554
9600
 
9555
- export { AST, ASTFuncall, AbstractChart, AddFunctionDescription, Arg, CancelledReason, Cell, CellErrorType, CellPosition, Client, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, CommandResult, CorePlugin, DispatchResult, EnrichedToken, EvalContext, EvaluationError, FPayload, FunctionRegistry, Model, Registry, RemoteRevisionMessage, Revision, RevisionRedoneMessage, RevisionUndoneMessage, SPREADSHEET_DIMENSIONS, Spreadsheet, Token, TransportService, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenize };
9601
+ export { AST, ASTFuncall, AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, AddFunctionDescription, Arg, CancelledReason, Cell, CellErrorType, CellPosition, Client, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, CommandResult, CorePlugin, DispatchResult, EnrichedToken, EvalContext, EvaluationError, FPayload, FunctionRegistry, Model, Registry, RemoteRevisionMessage, Revision, RevisionRedoneMessage, RevisionUndoneMessage, SPREADSHEET_DIMENSIONS, Spreadsheet, Token, TransportService, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenize };