@odoo/o-spreadsheet 16.3.0-alpha.3 → 16.3.0-alpha.4

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.
@@ -3864,8 +3864,8 @@ declare class InternalViewport {
3864
3864
  * until it contains the cell completely.
3865
3865
  */
3866
3866
  adjustPosition(position?: Position$1): void;
3867
- adjustPositionX(col: HeaderIndex): void;
3868
- adjustPositionY(row: HeaderIndex): void;
3867
+ adjustPositionX(targetCol: HeaderIndex): void;
3868
+ adjustPositionY(targetRow: HeaderIndex): void;
3869
3869
  setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
3870
3870
  adjustViewportZone(): void;
3871
3871
  /**
@@ -4853,7 +4853,7 @@ declare class OTRegistry extends Registry<Map<CoreCommandTypes, TransformationFu
4853
4853
 
4854
4854
  interface CellClickableItem {
4855
4855
  condition: (position: CellPosition, env: SpreadsheetChildEnv) => boolean;
4856
- action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
4856
+ execute: (position: CellPosition, env: SpreadsheetChildEnv) => void;
4857
4857
  sequence: number;
4858
4858
  }
4859
4859
 
@@ -4880,7 +4880,7 @@ interface ChartBuilder {
4880
4880
  sequence: number;
4881
4881
  }
4882
4882
 
4883
- interface Props$B {
4883
+ interface Props$C {
4884
4884
  ranges: string[];
4885
4885
  hasSingleRange?: boolean;
4886
4886
  required?: boolean;
@@ -4902,7 +4902,7 @@ interface SelectionRange extends Omit<RangeInputValue, "color"> {
4902
4902
  * onSelectionChanged is called every time the input value
4903
4903
  * changes.
4904
4904
  */
4905
- declare class SelectionInput extends Component<Props$B, SpreadsheetChildEnv> {
4905
+ declare class SelectionInput extends Component<Props$C, SpreadsheetChildEnv> {
4906
4906
  static template: string;
4907
4907
  private id;
4908
4908
  private previousRanges;
@@ -4927,12 +4927,12 @@ declare class SelectionInput extends Component<Props$B, SpreadsheetChildEnv> {
4927
4927
  confirm(): void;
4928
4928
  }
4929
4929
 
4930
- interface Props$A {
4930
+ interface Props$B {
4931
4931
  figureId: UID;
4932
4932
  definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
4933
4933
  updateChart: (definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => DispatchResult;
4934
4934
  }
4935
- declare class LineBarPieConfigPanel extends Component<Props$A, SpreadsheetChildEnv> {
4935
+ declare class LineBarPieConfigPanel extends Component<Props$B, SpreadsheetChildEnv> {
4936
4936
  static template: string;
4937
4937
  static components: {
4938
4938
  SelectionInput: typeof SelectionInput;
@@ -4967,6 +4967,23 @@ declare class BarConfigPanel extends LineBarPieConfigPanel {
4967
4967
  onUpdateAggregated(ev: any): void;
4968
4968
  }
4969
4969
 
4970
+ declare const DATETIME_FORMAT: RegExp;
4971
+ declare enum ComponentsImportance {
4972
+ Grid = 0,
4973
+ Highlight = 5,
4974
+ Figure = 10,
4975
+ ScrollBar = 15,
4976
+ GridPopover = 19,
4977
+ GridComposer = 20,
4978
+ Dropdown = 21,
4979
+ IconPicker = 25,
4980
+ TopBarComposer = 30,
4981
+ Popover = 35,
4982
+ FigureAnchor = 1000,
4983
+ FigureSnapLine = 1001
4984
+ }
4985
+ declare function setDefaultSheetViewSize(size: number): void;
4986
+
4970
4987
  interface PopoverProps {
4971
4988
  /**
4972
4989
  * Rectangle around which the popover is displayed.
@@ -4982,6 +4999,8 @@ interface PopoverProps {
4982
4999
  onMouseWheel?: () => void;
4983
5000
  onPopoverMoved?: () => void;
4984
5001
  onPopoverHidden?: () => void;
5002
+ /** Setting popover to allow dynamic zIndex */
5003
+ zIndex?: Number;
4985
5004
  }
4986
5005
  declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
4987
5006
  static template: string;
@@ -4991,6 +5010,7 @@ declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
4991
5010
  onMouseWheel: () => void;
4992
5011
  onPopoverMoved: () => void;
4993
5012
  onPopoverHidden: () => void;
5013
+ zIndex: ComponentsImportance;
4994
5014
  };
4995
5015
  private popoverRef;
4996
5016
  private currentPosition;
@@ -4998,6 +5018,7 @@ declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
4998
5018
  private spreadsheetRect;
4999
5019
  private containerRect;
5000
5020
  setup(): void;
5021
+ get popoverStyle(): string;
5001
5022
  }
5002
5023
 
5003
5024
  interface ColorPickerProps {
@@ -5031,7 +5052,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
5031
5052
  isSameColor(color1: Color, color2: Color): boolean;
5032
5053
  }
5033
5054
 
5034
- interface Props$z {
5055
+ interface Props$A {
5035
5056
  currentColor: string | undefined;
5036
5057
  toggleColorPicker: () => void;
5037
5058
  showColorPicker: boolean;
@@ -5042,7 +5063,7 @@ interface Props$z {
5042
5063
  dropdownMaxHeight?: Pixel;
5043
5064
  class?: string;
5044
5065
  }
5045
- declare class ColorPickerWidget extends Component<Props$z, SpreadsheetChildEnv> {
5066
+ declare class ColorPickerWidget extends Component<Props$A, SpreadsheetChildEnv> {
5046
5067
  static template: string;
5047
5068
  static components: {
5048
5069
  ColorPicker: typeof ColorPicker;
@@ -5054,12 +5075,12 @@ declare class ColorPickerWidget extends Component<Props$z, SpreadsheetChildEnv>
5054
5075
  get colorPickerAnchorRect(): Rect;
5055
5076
  }
5056
5077
 
5057
- interface Props$y {
5078
+ interface Props$z {
5058
5079
  figureId: UID;
5059
5080
  definition: LineChartDefinition | BarChartDefinition | PieChartDefinition;
5060
5081
  updateChart: (definition: Partial<LineChartDefinition | BarChartDefinition | PieChartDefinition>) => CommandResult | CommandResult[];
5061
5082
  }
5062
- declare class LineBarPieDesignPanel extends Component<Props$y, SpreadsheetChildEnv> {
5083
+ declare class LineBarPieDesignPanel extends Component<Props$z, SpreadsheetChildEnv> {
5063
5084
  static template: string;
5064
5085
  static components: {
5065
5086
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -5073,12 +5094,12 @@ declare class LineBarPieDesignPanel extends Component<Props$y, SpreadsheetChildE
5073
5094
  updateSelect(attr: string, ev: any): void;
5074
5095
  }
5075
5096
 
5076
- interface Props$x {
5097
+ interface Props$y {
5077
5098
  figureId: UID;
5078
5099
  definition: GaugeChartDefinition;
5079
5100
  updateChart: (definition: Partial<GaugeChartDefinition>) => DispatchResult;
5080
5101
  }
5081
- declare class GaugeChartConfigPanel extends Component<Props$x, SpreadsheetChildEnv> {
5102
+ declare class GaugeChartConfigPanel extends Component<Props$y, SpreadsheetChildEnv> {
5082
5103
  static template: string;
5083
5104
  static components: {
5084
5105
  SelectionInput: typeof SelectionInput;
@@ -5092,12 +5113,12 @@ declare class GaugeChartConfigPanel extends Component<Props$x, SpreadsheetChildE
5092
5113
  }
5093
5114
 
5094
5115
  declare type GaugeMenu = "backgroundColor" | "sectionColor-lowerColor" | "sectionColor-middleColor" | "sectionColor-upperColor";
5095
- interface Props$w {
5116
+ interface Props$x {
5096
5117
  figureId: UID;
5097
5118
  definition: GaugeChartDefinition;
5098
5119
  updateChart: (definition: Partial<GaugeChartDefinition>) => DispatchResult;
5099
5120
  }
5100
- declare class GaugeChartDesignPanel extends Component<Props$w, SpreadsheetChildEnv> {
5121
+ declare class GaugeChartDesignPanel extends Component<Props$x, SpreadsheetChildEnv> {
5101
5122
  static template: string;
5102
5123
  static components: {
5103
5124
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -5129,12 +5150,12 @@ declare class LineConfigPanel extends LineBarPieConfigPanel {
5129
5150
  onUpdateAggregated(ev: any): void;
5130
5151
  }
5131
5152
 
5132
- interface Props$v {
5153
+ interface Props$w {
5133
5154
  figureId: UID;
5134
5155
  definition: ScorecardChartDefinition;
5135
5156
  updateChart: (definition: Partial<ScorecardChartDefinition>) => DispatchResult;
5136
5157
  }
5137
- declare class ScorecardChartConfigPanel extends Component<Props$v, SpreadsheetChildEnv> {
5158
+ declare class ScorecardChartConfigPanel extends Component<Props$w, SpreadsheetChildEnv> {
5138
5159
  static template: string;
5139
5160
  static components: {
5140
5161
  SelectionInput: typeof SelectionInput;
@@ -5153,12 +5174,12 @@ declare class ScorecardChartConfigPanel extends Component<Props$v, SpreadsheetCh
5153
5174
  }
5154
5175
 
5155
5176
  declare type ColorPickerId = undefined | "backgroundColor" | "baselineColorUp" | "baselineColorDown";
5156
- interface Props$u {
5177
+ interface Props$v {
5157
5178
  figureId: UID;
5158
5179
  definition: ScorecardChartDefinition;
5159
5180
  updateChart: (definition: Partial<ScorecardChartDefinition>) => DispatchResult;
5160
5181
  }
5161
- declare class ScorecardChartDesignPanel extends Component<Props$u, SpreadsheetChildEnv> {
5182
+ declare class ScorecardChartDesignPanel extends Component<Props$v, SpreadsheetChildEnv> {
5162
5183
  static template: string;
5163
5184
  static components: {
5164
5185
  ColorPickerWidget: typeof ColorPickerWidget;
@@ -5177,72 +5198,75 @@ interface ChartSidePanel {
5177
5198
  design: new (...args: any) => Component;
5178
5199
  }
5179
5200
 
5180
- /**
5181
- * An ActionMenuItem represent a menu item for the menus of the topbar.
5182
- * and the context menu in the grid.
5183
- *
5184
- * An ActionMenuItem has:
5185
- * - id, used for example to add child
5186
- * - name, which can be a string or a function to compute it
5187
- * - sequence, which represents its position inside the
5188
- * menus (the lower sequence it has, the upper it is in the menu)
5189
- * - isVisible, which can be defined to compute the visibility of the item
5190
- * - isReadonlyAllowed: is the action allowed when running spreadsheet in readonly mode
5191
- * - action, the action associated to this item. The action can return a result.
5192
- * The result will be carried by a `menu-clicked` event to the menu parent component.
5193
- * - children, subitems associated to this item
5194
- * NB: an item without action or children is not displayed !
5195
- * - separator, whether it should add a separator below the item
5196
- * NB: a separator defined on the last item is not displayed !
5197
- *
5198
- */
5199
- interface MenuItemSpec {
5201
+ interface ActionSpec {
5202
+ /**
5203
+ * String or a function to compute the name
5204
+ */
5200
5205
  name: string | ((env: SpreadsheetChildEnv) => string);
5201
5206
  description?: string;
5207
+ /**
5208
+ * which represents its position inside the
5209
+ * menus (the lower sequence it has, the upper it is in the menu)
5210
+ */
5202
5211
  sequence?: number;
5212
+ /**
5213
+ * used for example to add child
5214
+ */
5203
5215
  id?: string;
5216
+ /**
5217
+ * Can be defined to compute the visibility of the item
5218
+ */
5204
5219
  isVisible?: (env: SpreadsheetChildEnv) => boolean;
5220
+ /**
5221
+ * Can be defined to compute if the user can click on the action
5222
+ */
5205
5223
  isEnabled?: (env: SpreadsheetChildEnv) => boolean;
5224
+ /**
5225
+ * Can be defined to compute if the action is active
5226
+ */
5227
+ isActive?: (env: SpreadsheetChildEnv) => boolean;
5228
+ /**
5229
+ * Can be defined to display an icon
5230
+ */
5231
+ icon?: string;
5232
+ /**
5233
+ * is the action allowed when running spreadsheet in readonly mode
5234
+ */
5206
5235
  isReadonlyAllowed?: boolean;
5207
- action?: (env: SpreadsheetChildEnv) => unknown;
5208
- children?: MenuChildren;
5236
+ /**
5237
+ * Execute the action. The action can return a result.
5238
+ * The result will be carried by a `menu-clicked` event to the menu parent component.
5239
+ */
5240
+ execute?: (env: SpreadsheetChildEnv) => unknown;
5241
+ /**
5242
+ * subitems associated to this item
5243
+ * NB: an action without an execute function or children is not displayed !
5244
+ */
5245
+ children?: ActionChildren;
5246
+ /**
5247
+ * whether it should add a separator below the item in menus
5248
+ * NB: a separator defined on the last item is not displayed !
5249
+ */
5209
5250
  separator?: boolean;
5210
- icon?: string;
5211
5251
  textColor?: Color;
5212
5252
  }
5213
- interface MenuItem {
5214
- id: string;
5215
- sequence: number;
5253
+ interface Action {
5216
5254
  name: (env: SpreadsheetChildEnv) => string;
5255
+ description: string;
5256
+ sequence: number;
5257
+ id: string;
5217
5258
  isVisible: (env: SpreadsheetChildEnv) => boolean;
5218
5259
  isEnabled: (env: SpreadsheetChildEnv) => boolean;
5260
+ isActive?: (env: SpreadsheetChildEnv) => boolean;
5261
+ icon: string;
5219
5262
  isReadonlyAllowed: boolean;
5220
- action?: (env: SpreadsheetChildEnv) => unknown;
5221
- children: (env: SpreadsheetChildEnv) => MenuItem[];
5263
+ execute?: (env: SpreadsheetChildEnv) => unknown;
5264
+ children: (env: SpreadsheetChildEnv) => Action[];
5222
5265
  separator: boolean;
5223
- description: string;
5224
- textColor?: string;
5225
- icon?: string;
5226
- }
5227
- declare type MenuItemsBuilder = (env: SpreadsheetChildEnv) => MenuItemSpec[];
5228
- declare type MenuChildren = (MenuItemSpec | MenuItemsBuilder)[];
5229
- /**
5230
- * The class Registry is extended in order to add the function addChild
5231
- *
5232
- */
5233
- declare class MenuItemRegistry extends Registry<MenuItemSpec> {
5234
- /**
5235
- * @override
5236
- */
5237
- add(key: string, value: MenuItemSpec): MenuItemRegistry;
5238
- /**
5239
- * Add a subitem to an existing item
5240
- * @param path Path of items to add this subitem
5241
- * @param value Subitem to add
5242
- */
5243
- addChild(key: string, path: string[], value: MenuItemSpec | MenuItemsBuilder): MenuItemRegistry;
5244
- getMenuItems(): MenuItem[];
5266
+ textColor?: Color;
5245
5267
  }
5268
+ declare type ActionBuilder = (env: SpreadsheetChildEnv) => ActionSpec[];
5269
+ declare type ActionChildren = (ActionSpec | ActionBuilder)[];
5246
5270
 
5247
5271
  /**
5248
5272
  * This registry is intended to map a type of figure (tag) to a class of
@@ -5252,7 +5276,7 @@ declare class MenuItemRegistry extends Registry<MenuItemSpec> {
5252
5276
  */
5253
5277
  interface FigureContent {
5254
5278
  Component: any;
5255
- menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => MenuItem[];
5279
+ menuBuilder: (figureId: UID, onFigureDeleted: () => void, env: SpreadsheetChildEnv) => Action[];
5256
5280
  SidePanelComponent?: string;
5257
5281
  keepRatio?: boolean;
5258
5282
  minFigSize?: number;
@@ -5265,6 +5289,24 @@ interface SidePanelContent {
5265
5289
  Footer?: any;
5266
5290
  }
5267
5291
 
5292
+ /**
5293
+ * The class Registry is extended in order to add the function addChild
5294
+ *
5295
+ */
5296
+ declare class MenuItemRegistry extends Registry<ActionSpec> {
5297
+ /**
5298
+ * @override
5299
+ */
5300
+ add(key: string, value: ActionSpec): MenuItemRegistry;
5301
+ /**
5302
+ * Add a subitem to an existing item
5303
+ * @param path Path of items to add this subitem
5304
+ * @param value Subitem to add
5305
+ */
5306
+ addChild(key: string, path: string[], value: ActionSpec | ActionBuilder): MenuItemRegistry;
5307
+ getMenuItems(): Action[];
5308
+ }
5309
+
5268
5310
  /**
5269
5311
  * An AutofillRule is used to generate what to do when we need to autofill
5270
5312
  * a cell. (In a AutofillGenerator, see plugins/autofill.ts)
@@ -5278,10 +5320,10 @@ interface AutofillRule {
5278
5320
  sequence: number;
5279
5321
  }
5280
5322
 
5281
- interface Props$t {
5323
+ interface Props$u {
5282
5324
  figure: Figure;
5283
5325
  }
5284
- declare class ChartJsComponent extends Component<Props$t, SpreadsheetChildEnv> {
5326
+ declare class ChartJsComponent extends Component<Props$u, SpreadsheetChildEnv> {
5285
5327
  static template: string;
5286
5328
  private canvas;
5287
5329
  private chart?;
@@ -5293,10 +5335,10 @@ declare class ChartJsComponent extends Component<Props$t, SpreadsheetChildEnv> {
5293
5335
  private updateChartJs;
5294
5336
  }
5295
5337
 
5296
- interface Props$s {
5338
+ interface Props$t {
5297
5339
  figure: Figure;
5298
5340
  }
5299
- declare class ScorecardChart extends Component<Props$s, SpreadsheetChildEnv> {
5341
+ declare class ScorecardChart extends Component<Props$t, SpreadsheetChildEnv> {
5300
5342
  static template: string;
5301
5343
  private ctx;
5302
5344
  get runtime(): ScorecardChartRuntime;
@@ -5327,10 +5369,10 @@ declare class ScorecardChart extends Component<Props$s, SpreadsheetChildEnv> {
5327
5369
  private getWidestElement;
5328
5370
  }
5329
5371
 
5330
- declare type MenuItemOrSeparator = MenuItem | "separator";
5331
- interface Props$r {
5372
+ declare type MenuItemOrSeparator = Action | "separator";
5373
+ interface Props$s {
5332
5374
  position: DOMCoordinates;
5333
- menuItems: MenuItem[];
5375
+ menuItems: Action[];
5334
5376
  depth: number;
5335
5377
  maxHeight?: Pixel;
5336
5378
  onClose: () => void;
@@ -5339,12 +5381,12 @@ interface Props$r {
5339
5381
  }
5340
5382
  interface MenuState {
5341
5383
  isOpen: boolean;
5342
- parentMenu?: MenuItem;
5384
+ parentMenu?: Action;
5343
5385
  position: null | DOMCoordinates;
5344
5386
  scrollOffset?: Pixel;
5345
- menuItems: MenuItem[];
5387
+ menuItems: Action[];
5346
5388
  }
5347
- declare class Menu extends Component<Props$r, SpreadsheetChildEnv> {
5389
+ declare class Menu extends Component<Props$s, SpreadsheetChildEnv> {
5348
5390
  static template: string;
5349
5391
  static components: {
5350
5392
  Menu: typeof Menu;
@@ -5360,34 +5402,36 @@ declare class Menu extends Component<Props$r, SpreadsheetChildEnv> {
5360
5402
  get menuItemsAndSeparators(): MenuItemOrSeparator[];
5361
5403
  get subMenuPosition(): DOMCoordinates;
5362
5404
  get popoverProps(): PopoverProps;
5363
- getColor(menu: MenuItem): string | undefined;
5364
- activateMenu(menu: MenuItem): Promise<void>;
5405
+ get childrenHaveIcon(): boolean;
5406
+ getIconName(menu: Action): "" | "o-spreadsheet-Icon.CHECK";
5407
+ getColor(menu: Action): string | undefined;
5408
+ activateMenu(menu: Action): Promise<void>;
5365
5409
  private close;
5366
5410
  private onExternalClick;
5367
- getName(menu: MenuItem): string;
5368
- isRoot(menu: MenuItem): boolean;
5369
- isEnabled(menu: MenuItem): boolean;
5411
+ getName(menu: Action): string;
5412
+ isRoot(menu: Action): boolean;
5413
+ isEnabled(menu: Action): boolean;
5370
5414
  onScroll(ev: any): void;
5371
5415
  /**
5372
5416
  * If the given menu is not disabled, open it's submenu at the
5373
5417
  * correct position according to available surrounding space.
5374
5418
  */
5375
- openSubMenu(menu: MenuItem, menuIndex: number, ev: MouseEvent): void;
5376
- isParentMenu(subMenu: MenuState, menuItem: MenuItem): boolean;
5419
+ openSubMenu(menu: Action, menuIndex: number, ev: MouseEvent): void;
5420
+ isParentMenu(subMenu: MenuState, menuItem: Action): boolean;
5377
5421
  closeSubMenu(): void;
5378
- onClickMenu(menu: MenuItem, menuIndex: number, ev: MouseEvent): void;
5379
- onMouseOver(menu: MenuItem, position: Pixel, ev: MouseEvent): void;
5422
+ onClickMenu(menu: Action, menuIndex: number, ev: MouseEvent): void;
5423
+ onMouseOver(menu: Action, position: Pixel, ev: MouseEvent): void;
5380
5424
  }
5381
5425
 
5382
5426
  declare type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right" | "bottom" | "bottom left" | "left";
5383
- interface Props$q {
5427
+ interface Props$r {
5384
5428
  figure: Figure;
5385
5429
  style: string;
5386
5430
  onFigureDeleted: () => void;
5387
5431
  onMouseDown: (ev: MouseEvent) => void;
5388
5432
  onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
5389
5433
  }
5390
- declare class FigureComponent extends Component<Props$q, SpreadsheetChildEnv> {
5434
+ declare class FigureComponent extends Component<Props$r, SpreadsheetChildEnv> {
5391
5435
  static template: string;
5392
5436
  static components: {
5393
5437
  Menu: typeof Menu;
@@ -5417,11 +5461,11 @@ declare class FigureComponent extends Component<Props$q, SpreadsheetChildEnv> {
5417
5461
  private openContextMenu;
5418
5462
  }
5419
5463
 
5420
- interface Props$p {
5464
+ interface Props$q {
5421
5465
  figure: Figure;
5422
5466
  onFigureDeleted: () => void;
5423
5467
  }
5424
- declare class ChartFigure extends Component<Props$p, SpreadsheetChildEnv> {
5468
+ declare class ChartFigure extends Component<Props$q, SpreadsheetChildEnv> {
5425
5469
  static template: string;
5426
5470
  static components: {};
5427
5471
  onDoubleClick(): void;
@@ -5429,7 +5473,7 @@ declare class ChartFigure extends Component<Props$p, SpreadsheetChildEnv> {
5429
5473
  get chartComponent(): new (...args: any) => Component;
5430
5474
  }
5431
5475
 
5432
- interface Props$o {
5476
+ interface Props$p {
5433
5477
  isVisible: boolean;
5434
5478
  position: Position;
5435
5479
  }
@@ -5441,7 +5485,7 @@ interface State$3 {
5441
5485
  position: Position;
5442
5486
  handler: boolean;
5443
5487
  }
5444
- declare class Autofill extends Component<Props$o, SpreadsheetChildEnv> {
5488
+ declare class Autofill extends Component<Props$p, SpreadsheetChildEnv> {
5445
5489
  static template: string;
5446
5490
  state: State$3;
5447
5491
  get style(): string;
@@ -5515,13 +5559,13 @@ declare class Ripple extends Component<RippleProps, SpreadsheetChildEnv> {
5515
5559
  getRippleEffectProps(id: number): RippleEffectProps;
5516
5560
  }
5517
5561
 
5518
- interface Props$n {
5562
+ interface Props$o {
5519
5563
  sheetId: string;
5520
5564
  openContextMenu: (registry: MenuItemRegistry, ev: MouseEvent) => void;
5521
5565
  style?: string;
5522
5566
  onMouseDown: (ev: MouseEvent) => void;
5523
5567
  }
5524
- declare class BottomBarSheet extends Component<Props$n, SpreadsheetChildEnv> {
5568
+ declare class BottomBarSheet extends Component<Props$o, SpreadsheetChildEnv> {
5525
5569
  static template: string;
5526
5570
  static components: {
5527
5571
  Ripple: typeof Ripple;
@@ -5555,11 +5599,11 @@ declare class BottomBarSheet extends Component<Props$n, SpreadsheetChildEnv> {
5555
5599
  get sheetName(): string;
5556
5600
  }
5557
5601
 
5558
- interface Props$m {
5602
+ interface Props$n {
5559
5603
  openContextMenu: (x: number, y: number, registry: MenuItemRegistry) => void;
5560
5604
  closeContextMenu: () => void;
5561
5605
  }
5562
- declare class BottomBarStatistic extends Component<Props$m, SpreadsheetChildEnv> {
5606
+ declare class BottomBarStatistic extends Component<Props$n, SpreadsheetChildEnv> {
5563
5607
  static template: string;
5564
5608
  static components: {
5565
5609
  Ripple: typeof Ripple;
@@ -5581,13 +5625,13 @@ interface SheetState {
5581
5625
  isDnd: boolean;
5582
5626
  sheetDndPositions: Record<UID, number> | undefined;
5583
5627
  }
5584
- interface Props$l {
5628
+ interface Props$m {
5585
5629
  onClick: () => void;
5586
5630
  }
5587
5631
  interface BottomBarMenuState extends MenuState {
5588
5632
  menuId: UID | undefined;
5589
5633
  }
5590
- declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
5634
+ declare class BottomBar extends Component<Props$m, SpreadsheetChildEnv> {
5591
5635
  static template: string;
5592
5636
  static components: {
5593
5637
  Menu: typeof Menu;
@@ -5630,21 +5674,21 @@ declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
5630
5674
  get sheetListMaxScroll(): number;
5631
5675
  }
5632
5676
 
5633
- interface Props$k {
5677
+ interface Props$l {
5634
5678
  position: DOMCoordinates;
5635
5679
  isActive: boolean;
5636
5680
  onClick: () => void;
5637
5681
  }
5638
- declare class FilterIcon extends Component<Props$k, SpreadsheetEnv> {
5682
+ declare class FilterIcon extends Component<Props$l, SpreadsheetEnv> {
5639
5683
  static style: string;
5640
5684
  static template: string;
5641
5685
  get style(): string;
5642
5686
  }
5643
5687
 
5644
- interface Props$j {
5688
+ interface Props$k {
5645
5689
  gridPosition: DOMCoordinates;
5646
5690
  }
5647
- declare class FilterIconsOverlay extends Component<Props$j, SpreadsheetChildEnv> {
5691
+ declare class FilterIconsOverlay extends Component<Props$k, SpreadsheetChildEnv> {
5648
5692
  static style: string;
5649
5693
  static template: string;
5650
5694
  static components: {
@@ -5673,7 +5717,7 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
5673
5717
  }
5674
5718
 
5675
5719
  declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5676
- interface Props$i {
5720
+ interface Props$j {
5677
5721
  onFigureDeleted: () => void;
5678
5722
  }
5679
5723
  interface Container {
@@ -5752,7 +5796,7 @@ interface DndState {
5752
5796
  * that occurred during the drag & drop, and to position the figure on the correct pane.
5753
5797
  *
5754
5798
  */
5755
- declare class FiguresContainer extends Component<Props$i, SpreadsheetChildEnv> {
5799
+ declare class FiguresContainer extends Component<Props$j, SpreadsheetChildEnv> {
5756
5800
  static template: string;
5757
5801
  static components: {
5758
5802
  FigureComponent: typeof FigureComponent;
@@ -5784,7 +5828,7 @@ declare class FiguresContainer extends Component<Props$i, SpreadsheetChildEnv> {
5784
5828
  private getSnapLineStyle;
5785
5829
  }
5786
5830
 
5787
- interface Props$h {
5831
+ interface Props$i {
5788
5832
  onCellHovered: (position: Partial<Position$1>) => void;
5789
5833
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
5790
5834
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
@@ -5797,7 +5841,7 @@ interface Props$h {
5797
5841
  gridOverlayDimensions: string;
5798
5842
  onFigureDeleted: () => void;
5799
5843
  }
5800
- declare class GridOverlay extends Component<Props$h, SpreadsheetChildEnv> {
5844
+ declare class GridOverlay extends Component<Props$i, SpreadsheetChildEnv> {
5801
5845
  static template: string;
5802
5846
  static components: {
5803
5847
  FiguresContainer: typeof FiguresContainer;
@@ -5819,23 +5863,24 @@ declare class GridOverlay extends Component<Props$h, SpreadsheetChildEnv> {
5819
5863
  private getCartesianCoordinates;
5820
5864
  }
5821
5865
 
5822
- interface Props$g {
5866
+ interface Props$h {
5823
5867
  hoveredCell: Partial<Position$1>;
5824
5868
  gridRect: Rect;
5825
5869
  onClosePopover: () => void;
5826
5870
  onMouseWheel: (ev: WheelEvent) => void;
5827
5871
  }
5828
- declare class GridPopover extends Component<Props$g, SpreadsheetChildEnv> {
5872
+ declare class GridPopover extends Component<Props$h, SpreadsheetChildEnv> {
5829
5873
  static template: string;
5830
5874
  static components: {
5831
5875
  Popover: typeof Popover;
5832
5876
  };
5877
+ zIndex: ComponentsImportance;
5833
5878
  get cellPopover(): PositionedCellPopover | ClosedCellPopover;
5834
5879
  }
5835
5880
 
5836
5881
  declare type ScrollDirection = "horizontal" | "vertical";
5837
5882
 
5838
- interface Props$f {
5883
+ interface Props$g {
5839
5884
  width: Pixel;
5840
5885
  height: Pixel;
5841
5886
  direction: ScrollDirection;
@@ -5843,7 +5888,7 @@ interface Props$f {
5843
5888
  offset: Pixel;
5844
5889
  onScroll: (offset: Pixel) => void;
5845
5890
  }
5846
- declare class ScrollBar extends Component<Props$f> {
5891
+ declare class ScrollBar extends Component<Props$g> {
5847
5892
  static template: string;
5848
5893
  static defaultProps: {
5849
5894
  width: number;
@@ -5857,10 +5902,10 @@ declare class ScrollBar extends Component<Props$f> {
5857
5902
  onScroll(ev: any): void;
5858
5903
  }
5859
5904
 
5860
- interface Props$e {
5905
+ interface Props$f {
5861
5906
  leftOffset: number;
5862
5907
  }
5863
- declare class HorizontalScrollBar extends Component<Props$e, SpreadsheetChildEnv> {
5908
+ declare class HorizontalScrollBar extends Component<Props$f, SpreadsheetChildEnv> {
5864
5909
  static components: {
5865
5910
  ScrollBar: typeof ScrollBar;
5866
5911
  };
@@ -5880,10 +5925,10 @@ declare class HorizontalScrollBar extends Component<Props$e, SpreadsheetChildEnv
5880
5925
  onScroll(offset: any): void;
5881
5926
  }
5882
5927
 
5883
- interface Props$d {
5928
+ interface Props$e {
5884
5929
  topOffset: number;
5885
5930
  }
5886
- declare class VerticalScrollBar extends Component<Props$d, SpreadsheetChildEnv> {
5931
+ declare class VerticalScrollBar extends Component<Props$e, SpreadsheetChildEnv> {
5887
5932
  static components: {
5888
5933
  ScrollBar: typeof ScrollBar;
5889
5934
  };
@@ -5903,7 +5948,7 @@ declare class VerticalScrollBar extends Component<Props$d, SpreadsheetChildEnv>
5903
5948
  onScroll(offset: any): void;
5904
5949
  }
5905
5950
 
5906
- interface Props$c {
5951
+ interface Props$d {
5907
5952
  }
5908
5953
  interface ClickableCell {
5909
5954
  coordinates: Rect;
@@ -5911,7 +5956,7 @@ interface ClickableCell {
5911
5956
  action: (position: CellPosition, env: SpreadsheetChildEnv) => void;
5912
5957
  tKey: string;
5913
5958
  }
5914
- declare class SpreadsheetDashboard extends Component<Props$c, SpreadsheetChildEnv> {
5959
+ declare class SpreadsheetDashboard extends Component<Props$d, SpreadsheetChildEnv> {
5915
5960
  static template: string;
5916
5961
  static components: {
5917
5962
  GridOverlay: typeof GridOverlay;
@@ -5947,7 +5992,7 @@ declare class SpreadsheetDashboard extends Component<Props$c, SpreadsheetChildEn
5947
5992
  private getGridRect;
5948
5993
  }
5949
5994
 
5950
- interface Props$b {
5995
+ interface Props$c {
5951
5996
  component: string;
5952
5997
  panelProps: any;
5953
5998
  onCloseSidePanel: () => void;
@@ -5955,13 +6000,309 @@ interface Props$b {
5955
6000
  interface State$2 {
5956
6001
  panel: SidePanelContent;
5957
6002
  }
5958
- declare class SidePanel extends Component<Props$b, SpreadsheetChildEnv> {
6003
+ declare class SidePanel extends Component<Props$c, SpreadsheetChildEnv> {
5959
6004
  static template: string;
5960
6005
  state: State$2;
5961
6006
  setup(): void;
5962
6007
  getTitle(): string;
5963
6008
  }
5964
6009
 
6010
+ declare const undo: ActionSpec;
6011
+ declare const redo: ActionSpec;
6012
+ declare const copy: ActionSpec;
6013
+ declare const cut: ActionSpec;
6014
+ declare const paste: ActionSpec;
6015
+ declare const pasteSpecial: ActionSpec;
6016
+ declare const pasteSpecialValue: ActionSpec;
6017
+ declare const pasteSpecialFormat: ActionSpec;
6018
+ declare const findAndReplace: ActionSpec;
6019
+ declare const deleteValues: ActionSpec;
6020
+ declare const deleteRows: ActionSpec;
6021
+ declare const deleteRow: ActionSpec;
6022
+ declare const clearRows: ActionSpec;
6023
+ declare const deleteCols: ActionSpec;
6024
+ declare const deleteCol: ActionSpec;
6025
+ declare const clearCols: ActionSpec;
6026
+ declare const deleteCells: ActionSpec;
6027
+ declare const deleteCellShiftUp: ActionSpec;
6028
+ declare const deleteCellShiftLeft: ActionSpec;
6029
+ declare const mergeCells: ActionSpec;
6030
+
6031
+ declare const ACTION_EDIT_undo: typeof undo;
6032
+ declare const ACTION_EDIT_redo: typeof redo;
6033
+ declare const ACTION_EDIT_copy: typeof copy;
6034
+ declare const ACTION_EDIT_cut: typeof cut;
6035
+ declare const ACTION_EDIT_paste: typeof paste;
6036
+ declare const ACTION_EDIT_pasteSpecial: typeof pasteSpecial;
6037
+ declare const ACTION_EDIT_pasteSpecialValue: typeof pasteSpecialValue;
6038
+ declare const ACTION_EDIT_pasteSpecialFormat: typeof pasteSpecialFormat;
6039
+ declare const ACTION_EDIT_findAndReplace: typeof findAndReplace;
6040
+ declare const ACTION_EDIT_deleteValues: typeof deleteValues;
6041
+ declare const ACTION_EDIT_deleteRows: typeof deleteRows;
6042
+ declare const ACTION_EDIT_deleteRow: typeof deleteRow;
6043
+ declare const ACTION_EDIT_clearRows: typeof clearRows;
6044
+ declare const ACTION_EDIT_deleteCols: typeof deleteCols;
6045
+ declare const ACTION_EDIT_deleteCol: typeof deleteCol;
6046
+ declare const ACTION_EDIT_clearCols: typeof clearCols;
6047
+ declare const ACTION_EDIT_deleteCells: typeof deleteCells;
6048
+ declare const ACTION_EDIT_deleteCellShiftUp: typeof deleteCellShiftUp;
6049
+ declare const ACTION_EDIT_deleteCellShiftLeft: typeof deleteCellShiftLeft;
6050
+ declare const ACTION_EDIT_mergeCells: typeof mergeCells;
6051
+ declare namespace ACTION_EDIT {
6052
+ export {
6053
+ ACTION_EDIT_undo as undo,
6054
+ ACTION_EDIT_redo as redo,
6055
+ ACTION_EDIT_copy as copy,
6056
+ ACTION_EDIT_cut as cut,
6057
+ ACTION_EDIT_paste as paste,
6058
+ ACTION_EDIT_pasteSpecial as pasteSpecial,
6059
+ ACTION_EDIT_pasteSpecialValue as pasteSpecialValue,
6060
+ ACTION_EDIT_pasteSpecialFormat as pasteSpecialFormat,
6061
+ ACTION_EDIT_findAndReplace as findAndReplace,
6062
+ ACTION_EDIT_deleteValues as deleteValues,
6063
+ ACTION_EDIT_deleteRows as deleteRows,
6064
+ ACTION_EDIT_deleteRow as deleteRow,
6065
+ ACTION_EDIT_clearRows as clearRows,
6066
+ ACTION_EDIT_deleteCols as deleteCols,
6067
+ ACTION_EDIT_deleteCol as deleteCol,
6068
+ ACTION_EDIT_clearCols as clearCols,
6069
+ ACTION_EDIT_deleteCells as deleteCells,
6070
+ ACTION_EDIT_deleteCellShiftUp as deleteCellShiftUp,
6071
+ ACTION_EDIT_deleteCellShiftLeft as deleteCellShiftLeft,
6072
+ ACTION_EDIT_mergeCells as mergeCells,
6073
+ };
6074
+ }
6075
+
6076
+ declare const formatNumberAutomatic: ActionSpec;
6077
+ declare const formatNumberNumber: ActionSpec;
6078
+ declare const formatPercent: ActionSpec;
6079
+ declare const formatNumberPercent: ActionSpec;
6080
+ declare const formatNumberCurrency: ActionSpec;
6081
+ declare const formatNumberCurrencyRounded: ActionSpec;
6082
+ declare const formatCustomCurrency: ActionSpec;
6083
+ declare const formatNumberDate: ActionSpec;
6084
+ declare const formatNumberTime: ActionSpec;
6085
+ declare const formatNumberDateTime: ActionSpec;
6086
+ declare const formatNumberDuration: ActionSpec;
6087
+ declare const incraseDecimalPlaces: ActionSpec;
6088
+ declare const decraseDecimalPlaces: ActionSpec;
6089
+ declare const formatBold: ActionSpec;
6090
+ declare const formatItalic: ActionSpec;
6091
+ declare const formatUnderline: ActionSpec;
6092
+ declare const formatStrikethrough: ActionSpec;
6093
+ declare const formatFontSize: ActionSpec;
6094
+ declare const formatAlignment: ActionSpec;
6095
+ declare const formatAlignmentHorizontal: ActionSpec;
6096
+ declare const formatAlignmentLeft: ActionSpec;
6097
+ declare const formatAlignmentCenter: ActionSpec;
6098
+ declare const formatAlignmentRight: ActionSpec;
6099
+ declare const formatAlignmentVertical: ActionSpec;
6100
+ declare const formatAlignmentTop: ActionSpec;
6101
+ declare const formatAlignmentMiddle: ActionSpec;
6102
+ declare const formatAlignmentBottom: ActionSpec;
6103
+ declare const formatWrapping: ActionSpec;
6104
+ declare const formatWrappingOverflow: ActionSpec;
6105
+ declare const formatWrappingWrap: ActionSpec;
6106
+ declare const formatWrappingClip: ActionSpec;
6107
+ declare const textColor: ActionSpec;
6108
+ declare const fillColor: ActionSpec;
6109
+ declare const formatCF: ActionSpec;
6110
+ declare const paintFormat: ActionSpec;
6111
+ declare const clearFormat: ActionSpec;
6112
+ declare const borders: ActionSpec;
6113
+ declare const bordersAll: ActionSpec;
6114
+ declare const bordersInner: ActionSpec;
6115
+ declare const bordersHorizontal: ActionSpec;
6116
+ declare const bordersVertical: ActionSpec;
6117
+ declare const bordersExternal: ActionSpec;
6118
+ declare const bordersLeft: ActionSpec;
6119
+ declare const bordersTop: ActionSpec;
6120
+ declare const bordersRight: ActionSpec;
6121
+ declare const bordersBottom: ActionSpec;
6122
+ declare const bordersClear: ActionSpec;
6123
+
6124
+ declare const ACTION_FORMAT_formatNumberAutomatic: typeof formatNumberAutomatic;
6125
+ declare const ACTION_FORMAT_formatNumberNumber: typeof formatNumberNumber;
6126
+ declare const ACTION_FORMAT_formatPercent: typeof formatPercent;
6127
+ declare const ACTION_FORMAT_formatNumberPercent: typeof formatNumberPercent;
6128
+ declare const ACTION_FORMAT_formatNumberCurrency: typeof formatNumberCurrency;
6129
+ declare const ACTION_FORMAT_formatNumberCurrencyRounded: typeof formatNumberCurrencyRounded;
6130
+ declare const ACTION_FORMAT_formatCustomCurrency: typeof formatCustomCurrency;
6131
+ declare const ACTION_FORMAT_formatNumberDate: typeof formatNumberDate;
6132
+ declare const ACTION_FORMAT_formatNumberTime: typeof formatNumberTime;
6133
+ declare const ACTION_FORMAT_formatNumberDateTime: typeof formatNumberDateTime;
6134
+ declare const ACTION_FORMAT_formatNumberDuration: typeof formatNumberDuration;
6135
+ declare const ACTION_FORMAT_incraseDecimalPlaces: typeof incraseDecimalPlaces;
6136
+ declare const ACTION_FORMAT_decraseDecimalPlaces: typeof decraseDecimalPlaces;
6137
+ declare const ACTION_FORMAT_formatBold: typeof formatBold;
6138
+ declare const ACTION_FORMAT_formatItalic: typeof formatItalic;
6139
+ declare const ACTION_FORMAT_formatUnderline: typeof formatUnderline;
6140
+ declare const ACTION_FORMAT_formatStrikethrough: typeof formatStrikethrough;
6141
+ declare const ACTION_FORMAT_formatFontSize: typeof formatFontSize;
6142
+ declare const ACTION_FORMAT_formatAlignment: typeof formatAlignment;
6143
+ declare const ACTION_FORMAT_formatAlignmentHorizontal: typeof formatAlignmentHorizontal;
6144
+ declare const ACTION_FORMAT_formatAlignmentLeft: typeof formatAlignmentLeft;
6145
+ declare const ACTION_FORMAT_formatAlignmentCenter: typeof formatAlignmentCenter;
6146
+ declare const ACTION_FORMAT_formatAlignmentRight: typeof formatAlignmentRight;
6147
+ declare const ACTION_FORMAT_formatAlignmentVertical: typeof formatAlignmentVertical;
6148
+ declare const ACTION_FORMAT_formatAlignmentTop: typeof formatAlignmentTop;
6149
+ declare const ACTION_FORMAT_formatAlignmentMiddle: typeof formatAlignmentMiddle;
6150
+ declare const ACTION_FORMAT_formatAlignmentBottom: typeof formatAlignmentBottom;
6151
+ declare const ACTION_FORMAT_formatWrapping: typeof formatWrapping;
6152
+ declare const ACTION_FORMAT_formatWrappingOverflow: typeof formatWrappingOverflow;
6153
+ declare const ACTION_FORMAT_formatWrappingWrap: typeof formatWrappingWrap;
6154
+ declare const ACTION_FORMAT_formatWrappingClip: typeof formatWrappingClip;
6155
+ declare const ACTION_FORMAT_textColor: typeof textColor;
6156
+ declare const ACTION_FORMAT_fillColor: typeof fillColor;
6157
+ declare const ACTION_FORMAT_formatCF: typeof formatCF;
6158
+ declare const ACTION_FORMAT_paintFormat: typeof paintFormat;
6159
+ declare const ACTION_FORMAT_clearFormat: typeof clearFormat;
6160
+ declare const ACTION_FORMAT_borders: typeof borders;
6161
+ declare const ACTION_FORMAT_bordersAll: typeof bordersAll;
6162
+ declare const ACTION_FORMAT_bordersInner: typeof bordersInner;
6163
+ declare const ACTION_FORMAT_bordersHorizontal: typeof bordersHorizontal;
6164
+ declare const ACTION_FORMAT_bordersVertical: typeof bordersVertical;
6165
+ declare const ACTION_FORMAT_bordersExternal: typeof bordersExternal;
6166
+ declare const ACTION_FORMAT_bordersLeft: typeof bordersLeft;
6167
+ declare const ACTION_FORMAT_bordersTop: typeof bordersTop;
6168
+ declare const ACTION_FORMAT_bordersRight: typeof bordersRight;
6169
+ declare const ACTION_FORMAT_bordersBottom: typeof bordersBottom;
6170
+ declare const ACTION_FORMAT_bordersClear: typeof bordersClear;
6171
+ declare namespace ACTION_FORMAT {
6172
+ export {
6173
+ ACTION_FORMAT_formatNumberAutomatic as formatNumberAutomatic,
6174
+ ACTION_FORMAT_formatNumberNumber as formatNumberNumber,
6175
+ ACTION_FORMAT_formatPercent as formatPercent,
6176
+ ACTION_FORMAT_formatNumberPercent as formatNumberPercent,
6177
+ ACTION_FORMAT_formatNumberCurrency as formatNumberCurrency,
6178
+ ACTION_FORMAT_formatNumberCurrencyRounded as formatNumberCurrencyRounded,
6179
+ ACTION_FORMAT_formatCustomCurrency as formatCustomCurrency,
6180
+ ACTION_FORMAT_formatNumberDate as formatNumberDate,
6181
+ ACTION_FORMAT_formatNumberTime as formatNumberTime,
6182
+ ACTION_FORMAT_formatNumberDateTime as formatNumberDateTime,
6183
+ ACTION_FORMAT_formatNumberDuration as formatNumberDuration,
6184
+ ACTION_FORMAT_incraseDecimalPlaces as incraseDecimalPlaces,
6185
+ ACTION_FORMAT_decraseDecimalPlaces as decraseDecimalPlaces,
6186
+ ACTION_FORMAT_formatBold as formatBold,
6187
+ ACTION_FORMAT_formatItalic as formatItalic,
6188
+ ACTION_FORMAT_formatUnderline as formatUnderline,
6189
+ ACTION_FORMAT_formatStrikethrough as formatStrikethrough,
6190
+ ACTION_FORMAT_formatFontSize as formatFontSize,
6191
+ ACTION_FORMAT_formatAlignment as formatAlignment,
6192
+ ACTION_FORMAT_formatAlignmentHorizontal as formatAlignmentHorizontal,
6193
+ ACTION_FORMAT_formatAlignmentLeft as formatAlignmentLeft,
6194
+ ACTION_FORMAT_formatAlignmentCenter as formatAlignmentCenter,
6195
+ ACTION_FORMAT_formatAlignmentRight as formatAlignmentRight,
6196
+ ACTION_FORMAT_formatAlignmentVertical as formatAlignmentVertical,
6197
+ ACTION_FORMAT_formatAlignmentTop as formatAlignmentTop,
6198
+ ACTION_FORMAT_formatAlignmentMiddle as formatAlignmentMiddle,
6199
+ ACTION_FORMAT_formatAlignmentBottom as formatAlignmentBottom,
6200
+ ACTION_FORMAT_formatWrapping as formatWrapping,
6201
+ ACTION_FORMAT_formatWrappingOverflow as formatWrappingOverflow,
6202
+ ACTION_FORMAT_formatWrappingWrap as formatWrappingWrap,
6203
+ ACTION_FORMAT_formatWrappingClip as formatWrappingClip,
6204
+ ACTION_FORMAT_textColor as textColor,
6205
+ ACTION_FORMAT_fillColor as fillColor,
6206
+ ACTION_FORMAT_formatCF as formatCF,
6207
+ ACTION_FORMAT_paintFormat as paintFormat,
6208
+ ACTION_FORMAT_clearFormat as clearFormat,
6209
+ ACTION_FORMAT_borders as borders,
6210
+ ACTION_FORMAT_bordersAll as bordersAll,
6211
+ ACTION_FORMAT_bordersInner as bordersInner,
6212
+ ACTION_FORMAT_bordersHorizontal as bordersHorizontal,
6213
+ ACTION_FORMAT_bordersVertical as bordersVertical,
6214
+ ACTION_FORMAT_bordersExternal as bordersExternal,
6215
+ ACTION_FORMAT_bordersLeft as bordersLeft,
6216
+ ACTION_FORMAT_bordersTop as bordersTop,
6217
+ ACTION_FORMAT_bordersRight as bordersRight,
6218
+ ACTION_FORMAT_bordersBottom as bordersBottom,
6219
+ ACTION_FORMAT_bordersClear as bordersClear,
6220
+ };
6221
+ }
6222
+
6223
+ declare const hideCols: ActionSpec;
6224
+ declare const unhideCols: ActionSpec;
6225
+ declare const unhideAllCols: ActionSpec;
6226
+ declare const hideRows: ActionSpec;
6227
+ declare const unhideRows: ActionSpec;
6228
+ declare const unhideAllRows: ActionSpec;
6229
+ declare const unFreezePane: ActionSpec;
6230
+ declare const freezePane: ActionSpec;
6231
+ declare const unFreezeRows: ActionSpec;
6232
+ declare const freezeFirstRow: ActionSpec;
6233
+ declare const freezeSecondRow: ActionSpec;
6234
+ declare const freezeCurrentRow: ActionSpec;
6235
+ declare const unFreezeCols: ActionSpec;
6236
+ declare const freezeFirstCol: ActionSpec;
6237
+ declare const freezeSecondCol: ActionSpec;
6238
+ declare const freezeCurrentCol: ActionSpec;
6239
+ declare const viewGridlines: ActionSpec;
6240
+ declare const viewFormulas: ActionSpec;
6241
+ declare const createRemoveFilter: ActionSpec;
6242
+
6243
+ declare const ACTION_VIEW_hideCols: typeof hideCols;
6244
+ declare const ACTION_VIEW_unhideCols: typeof unhideCols;
6245
+ declare const ACTION_VIEW_unhideAllCols: typeof unhideAllCols;
6246
+ declare const ACTION_VIEW_hideRows: typeof hideRows;
6247
+ declare const ACTION_VIEW_unhideRows: typeof unhideRows;
6248
+ declare const ACTION_VIEW_unhideAllRows: typeof unhideAllRows;
6249
+ declare const ACTION_VIEW_unFreezePane: typeof unFreezePane;
6250
+ declare const ACTION_VIEW_freezePane: typeof freezePane;
6251
+ declare const ACTION_VIEW_unFreezeRows: typeof unFreezeRows;
6252
+ declare const ACTION_VIEW_freezeFirstRow: typeof freezeFirstRow;
6253
+ declare const ACTION_VIEW_freezeSecondRow: typeof freezeSecondRow;
6254
+ declare const ACTION_VIEW_freezeCurrentRow: typeof freezeCurrentRow;
6255
+ declare const ACTION_VIEW_unFreezeCols: typeof unFreezeCols;
6256
+ declare const ACTION_VIEW_freezeFirstCol: typeof freezeFirstCol;
6257
+ declare const ACTION_VIEW_freezeSecondCol: typeof freezeSecondCol;
6258
+ declare const ACTION_VIEW_freezeCurrentCol: typeof freezeCurrentCol;
6259
+ declare const ACTION_VIEW_viewGridlines: typeof viewGridlines;
6260
+ declare const ACTION_VIEW_viewFormulas: typeof viewFormulas;
6261
+ declare const ACTION_VIEW_createRemoveFilter: typeof createRemoveFilter;
6262
+ declare namespace ACTION_VIEW {
6263
+ export {
6264
+ ACTION_VIEW_hideCols as hideCols,
6265
+ ACTION_VIEW_unhideCols as unhideCols,
6266
+ ACTION_VIEW_unhideAllCols as unhideAllCols,
6267
+ ACTION_VIEW_hideRows as hideRows,
6268
+ ACTION_VIEW_unhideRows as unhideRows,
6269
+ ACTION_VIEW_unhideAllRows as unhideAllRows,
6270
+ ACTION_VIEW_unFreezePane as unFreezePane,
6271
+ ACTION_VIEW_freezePane as freezePane,
6272
+ ACTION_VIEW_unFreezeRows as unFreezeRows,
6273
+ ACTION_VIEW_freezeFirstRow as freezeFirstRow,
6274
+ ACTION_VIEW_freezeSecondRow as freezeSecondRow,
6275
+ ACTION_VIEW_freezeCurrentRow as freezeCurrentRow,
6276
+ ACTION_VIEW_unFreezeCols as unFreezeCols,
6277
+ ACTION_VIEW_freezeFirstCol as freezeFirstCol,
6278
+ ACTION_VIEW_freezeSecondCol as freezeSecondCol,
6279
+ ACTION_VIEW_freezeCurrentCol as freezeCurrentCol,
6280
+ ACTION_VIEW_viewGridlines as viewGridlines,
6281
+ ACTION_VIEW_viewFormulas as viewFormulas,
6282
+ ACTION_VIEW_createRemoveFilter as createRemoveFilter,
6283
+ };
6284
+ }
6285
+
6286
+ interface Props$b {
6287
+ action: ActionSpec;
6288
+ hasTriangleDownIcon?: boolean;
6289
+ selectedColor?: string;
6290
+ class?: string;
6291
+ onClick?: (ev: MouseEvent) => void;
6292
+ }
6293
+ declare class ActionButton extends Component<Props$b, SpreadsheetChildEnv> {
6294
+ static template: string;
6295
+ private actionButton;
6296
+ setup(): void;
6297
+ get isVisible(): boolean;
6298
+ get isEnabled(): boolean;
6299
+ get isActive(): boolean | undefined;
6300
+ get title(): string;
6301
+ get iconTitle(): string;
6302
+ onClick(ev: MouseEvent): void;
6303
+ get buttonStyle(): string;
6304
+ }
6305
+
5965
6306
  interface Props$a {
5966
6307
  values: AutocompleteValue[];
5967
6308
  selectedIndex: number;
@@ -6158,10 +6499,11 @@ declare class FontSizeEditor extends Component<Props$7, SpreadsheetChildEnv> {
6158
6499
  onInputKeydown(ev: KeyboardEvent): void;
6159
6500
  }
6160
6501
 
6161
- declare type Tool = "" | "formatTool" | "alignTool" | "textColorTool" | "fillColorTool" | "borderTool";
6162
6502
  interface State {
6163
6503
  menuState: MenuState;
6164
- activeTool: Tool;
6504
+ activeTool: string;
6505
+ fillColor: string;
6506
+ textColor: string;
6165
6507
  }
6166
6508
  interface Props$6 {
6167
6509
  onClick: () => void;
@@ -6171,73 +6513,37 @@ interface Props$6 {
6171
6513
  }
6172
6514
  declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
6173
6515
  static template: string;
6516
+ get dropdownStyle(): string;
6174
6517
  static components: {
6175
6518
  ColorPickerWidget: typeof ColorPickerWidget;
6519
+ ColorPicker: typeof ColorPicker;
6176
6520
  Menu: typeof Menu;
6177
6521
  TopBarComposer: typeof TopBarComposer;
6178
6522
  FontSizeEditor: typeof FontSizeEditor;
6523
+ ActionButton: typeof ActionButton;
6179
6524
  };
6180
- commonFormats: ({
6181
- name: string;
6182
- text: string;
6183
- description?: undefined;
6184
- value?: undefined;
6185
- } | {
6186
- name: string;
6187
- text: string;
6188
- description: string;
6189
- value: string;
6190
- })[];
6191
- customFormats: {
6192
- name: string;
6193
- text: string;
6194
- sidePanel: string;
6195
- }[];
6196
- currentFormatName: string;
6197
- get dropdownStyle(): string;
6198
- style: Style;
6199
6525
  state: State;
6200
6526
  isSelectingMenu: boolean;
6201
6527
  openedEl: HTMLElement | null;
6202
- inMerge: boolean;
6203
- cannotMerge: boolean;
6204
- undoTool: boolean;
6205
- redoTool: boolean;
6206
- paintFormatTool: boolean;
6207
- fillColor: Color;
6208
- textColor: Color;
6209
- menus: MenuItem[];
6528
+ menus: Action[];
6529
+ EDIT: typeof ACTION_EDIT;
6530
+ FORMAT: typeof ACTION_FORMAT;
6531
+ VIEW: typeof ACTION_VIEW;
6532
+ formatNumberMenuItemSpec: ActionSpec;
6533
+ isntToolbarMenu: boolean;
6210
6534
  setup(): void;
6211
6535
  get topbarComponents(): TopbarComponent[];
6212
6536
  onExternalClick(ev: MouseEvent): void;
6213
6537
  onClick(): void;
6214
- toggleStyle(style: string): void;
6215
- toggleFormat(formatName: string): void;
6216
- toggleHorizontalAlign(align: Align): void;
6217
- toggleVerticalAlign(verticalAlign: VerticalAlign): void;
6218
- toggleTextWrapping(wrapping: Wrapping): void;
6219
- onMenuMouseOver(menu: MenuItem, ev: MouseEvent): void;
6220
- toggleDropdownTool(tool: Tool, ev: MouseEvent): void;
6221
- toggleContextMenu(menu: MenuItem, ev: MouseEvent): void;
6538
+ onMenuMouseOver(menu: Action, ev: MouseEvent): void;
6539
+ toggleDropdownTool(tool: string, ev: MouseEvent): void;
6540
+ toggleContextMenu(menu: Action, ev: MouseEvent): void;
6541
+ toggleToolbarContextMenu(menuSpec: ActionSpec, ev: MouseEvent): void;
6222
6542
  private openMenu;
6223
6543
  closeMenus(): void;
6224
6544
  updateCellState(): void;
6225
- getMenuName(menu: MenuItem): string;
6226
- toggleMerge(): void;
6545
+ getMenuName(menu: Action): string;
6227
6546
  setColor(target: string, color: Color): void;
6228
- setBorder(command: BorderCommand): void;
6229
- setFormat(format: Format, custom: boolean): void;
6230
- openCustomFormatSidePanel(custom: string): void;
6231
- setDecimal(step: SetDecimalStep): void;
6232
- paintFormat(): void;
6233
- clearFormatting(): void;
6234
- doAction(action: (env: SpreadsheetChildEnv) => void): void;
6235
- undo(): void;
6236
- redo(): void;
6237
- get selectionContainsFilter(): boolean;
6238
- get cannotCreateFilter(): boolean;
6239
- createFilter(): void;
6240
- removeFilter(): void;
6241
6547
  }
6242
6548
 
6243
6549
  declare type ComposerFocusType = "inactive" | "cellFocus" | "contentFocus";
@@ -6612,8 +6918,6 @@ declare function createEmptySheet(sheetId: UID, name: string): SheetData;
6612
6918
  declare function createEmptyWorkbookData(sheetName?: string): WorkbookData;
6613
6919
  declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetData;
6614
6920
 
6615
- declare const DATETIME_FORMAT: RegExp;
6616
-
6617
6921
  /**
6618
6922
  * We export here all entities that needs to be accessed publicly by Odoo.
6619
6923
  *
@@ -6684,6 +6988,7 @@ declare const registries: {
6684
6988
  inverseCommandRegistry: Registry<(cmd: CoreCommand) => CoreCommand[]>;
6685
6989
  urlRegistry: Registry<LinkSpec>;
6686
6990
  cellPopoverRegistry: Registry<PopoverBuilders>;
6991
+ numberFormatMenuRegistry: MenuItemRegistry;
6687
6992
  };
6688
6993
  declare const helpers: {
6689
6994
  arg: typeof arg;
@@ -6739,4 +7044,4 @@ declare const components: {
6739
7044
  };
6740
7045
  declare function addFunction(functionName: string, functionDescription: FunctionDescription): void;
6741
7046
 
6742
- export { AbstractChart, CancelledReason, Client, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, CommandResult, CorePlugin, DATETIME_FORMAT, DispatchResult, EvaluationError, Model, Registry, RemoteRevisionMessage, Revision, RevisionRedoneMessage, RevisionUndoneMessage, SPREADSHEET_DIMENSIONS, Spreadsheet, TransportService, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setTranslationMethod, tokenize };
7047
+ export { AbstractChart, CancelledReason, Client, ClientJoinedMessage, ClientLeftMessage, ClientMovedMessage, CollaborationMessage, CommandResult, CorePlugin, DATETIME_FORMAT, DispatchResult, EvaluationError, Model, Registry, RemoteRevisionMessage, Revision, RevisionRedoneMessage, RevisionUndoneMessage, SPREADSHEET_DIMENSIONS, Spreadsheet, TransportService, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };