@odoo/o-spreadsheet 16.2.0 → 16.2.2

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.
@@ -294,10 +294,10 @@ declare function toZone(xc: string): Zone;
294
294
  */
295
295
  declare function findCellInNewZone(oldZone: Zone, currentZone: Zone): Position$1;
296
296
  declare function positionToZone(position: Position$1): {
297
- left: number;
298
- right: number;
299
- top: number;
300
- bottom: number;
297
+ left: HeaderIndex;
298
+ right: HeaderIndex;
299
+ top: HeaderIndex;
300
+ bottom: HeaderIndex;
301
301
  };
302
302
 
303
303
  interface SelectionEventPayload {
@@ -406,9 +406,9 @@ interface SectionRule {
406
406
  readonly upperInflectionPoint: SectionThreshold;
407
407
  }
408
408
  interface ColorSet {
409
- readonly lowerColor: string;
410
- readonly middleColor: string;
411
- readonly upperColor: string;
409
+ readonly lowerColor: Color;
410
+ readonly middleColor: Color;
411
+ readonly upperColor: Color;
412
412
  }
413
413
  interface SectionThreshold {
414
414
  readonly type: "number" | "percentage";
@@ -435,13 +435,13 @@ interface GaugeChartOptions extends ChartOptions {
435
435
  radiusPercentage: number;
436
436
  widthPercentage: number;
437
437
  lengthPercentage: number;
438
- color: string;
438
+ color: Color;
439
439
  };
440
440
  valueLabel?: {
441
441
  formatter: (() => string) | null;
442
442
  display: boolean;
443
- color: string;
444
- backgroundColor: string;
443
+ color: Color;
444
+ backgroundColor: Color;
445
445
  borderRadius: number;
446
446
  fontSize: number;
447
447
  padding: {
@@ -1622,8 +1622,8 @@ interface CreateChartCommand extends SheetDependentCommand {
1622
1622
  type: "CREATE_CHART";
1623
1623
  id: UID;
1624
1624
  position?: {
1625
- x: number;
1626
- y: number;
1625
+ x: Pixel;
1626
+ y: Pixel;
1627
1627
  };
1628
1628
  size?: FigureSize;
1629
1629
  definition: ChartDefinition;
@@ -1637,8 +1637,8 @@ interface CreateImageOverCommand extends SheetDependentCommand {
1637
1637
  type: "CREATE_IMAGE";
1638
1638
  figureId: UID;
1639
1639
  position: {
1640
- x: number;
1641
- y: number;
1640
+ x: Pixel;
1641
+ y: Pixel;
1642
1642
  };
1643
1643
  size: FigureSize;
1644
1644
  definition: Image;
@@ -1742,7 +1742,7 @@ interface StopSelectionCommand {
1742
1742
  */
1743
1743
  interface SetColorCommand {
1744
1744
  type: "SET_HIGHLIGHT_COLOR";
1745
- color: string;
1745
+ color: Color;
1746
1746
  }
1747
1747
  interface EvaluateCellsCommand {
1748
1748
  type: "EVALUATE_CELLS";
@@ -2167,7 +2167,7 @@ declare type CoreCommandTypes = CoreCommand["type"];
2167
2167
  * Intellisense from resolving it.
2168
2168
  * See https://github.com/microsoft/TypeScript/issues/31940#issuecomment-841712377
2169
2169
  */
2170
- declare type Alias = {};
2170
+ declare type Alias = {} & {};
2171
2171
  declare type HeaderIndex = number & Alias;
2172
2172
  declare type Pixel = number & Alias;
2173
2173
  declare type UID = string & Alias;
@@ -2231,8 +2231,8 @@ interface Style {
2231
2231
  align?: Align;
2232
2232
  wrapping?: Wrapping;
2233
2233
  verticalAlign?: VerticalAlign;
2234
- fillColor?: string;
2235
- textColor?: string;
2234
+ fillColor?: Color;
2235
+ textColor?: Color;
2236
2236
  fontSize?: number;
2237
2237
  }
2238
2238
  interface UpdateCellData {
@@ -2311,7 +2311,7 @@ interface Merge extends Zone {
2311
2311
  interface Highlight$1 {
2312
2312
  zone: Zone;
2313
2313
  sheetId: UID;
2314
- color: string | null;
2314
+ color: Color | null;
2315
2315
  }
2316
2316
  interface PaneDivision {
2317
2317
  /** Represents the number of frozen columns */
@@ -2868,6 +2868,7 @@ declare class RangeAdapter implements CommandHandler<CoreCommand> {
2868
2868
  * Get a Xc string that represent a part of a range
2869
2869
  */
2870
2870
  private getRangePartString;
2871
+ private getInvalidRange;
2871
2872
  }
2872
2873
 
2873
2874
  interface CorePluginConfig {
@@ -3300,7 +3301,7 @@ declare class Filter {
3300
3301
  readonly id: UID;
3301
3302
  readonly zoneWithHeaders: Zone;
3302
3303
  constructor(id: UID, zone: Zone);
3303
- get col(): number;
3304
+ get col(): HeaderIndex;
3304
3305
  /** Filtered zone, ie. zone of the filter without the header */
3305
3306
  get filteredZone(): Zone | undefined;
3306
3307
  }
@@ -3806,8 +3807,8 @@ declare class InternalViewport {
3806
3807
  offsetScrollbarY: Pixel;
3807
3808
  canScrollVertically: boolean;
3808
3809
  canScrollHorizontally: boolean;
3809
- width: Pixel;
3810
- height: Pixel;
3810
+ viewportWidth: Pixel;
3811
+ viewportHeight: Pixel;
3811
3812
  offsetCorrectionX: Pixel;
3812
3813
  offsetCorrectionY: Pixel;
3813
3814
  constructor(getters: Getters, sheetId: UID, boundaries: Zone, sizeInGrid: {
@@ -3820,6 +3821,10 @@ declare class InternalViewport {
3820
3821
  x: Pixel;
3821
3822
  y: Pixel;
3822
3823
  });
3824
+ /** Returns the maximum size (in Pixels) of the viewport relative to its allocated client size
3825
+ * When the viewport grid size is smaller than its client width (resp. height), it will return
3826
+ * the client width (resp. height).
3827
+ */
3823
3828
  getMaxSize(): DOMDimension;
3824
3829
  /**
3825
3830
  * Return the index of a column given an offset x, based on the pane left
@@ -3965,8 +3970,7 @@ declare class SheetViewPlugin extends UIPlugin {
3965
3970
  getSheetViewVisibleCols(): HeaderIndex[];
3966
3971
  getSheetViewVisibleRows(): HeaderIndex[];
3967
3972
  /**
3968
- * Return the main viewport maximum size. That is the zone dimension
3969
- * with some bottom and right padding.
3973
+ * Return the main viewport maximum size relative to the client size.
3970
3974
  */
3971
3975
  getMainViewportRect(): Rect;
3972
3976
  private getMaximumSheetOffset;
@@ -4260,7 +4264,7 @@ declare class RendererPlugin extends UIPlugin {
4260
4264
  interface RangeInputValue {
4261
4265
  id: number;
4262
4266
  xc: string;
4263
- color: string;
4267
+ color: Color;
4264
4268
  }
4265
4269
  /**
4266
4270
  * Selection input Plugin
@@ -4356,7 +4360,7 @@ declare class SelectionInputsManagerPlugin extends UIPlugin {
4356
4360
  }
4357
4361
 
4358
4362
  interface ClientToDisplay extends Required<Client> {
4359
- color: string;
4363
+ color: Color;
4360
4364
  }
4361
4365
  declare class SelectionMultiUserPlugin extends UIPlugin {
4362
4366
  static getters: readonly ["getClientsToDisplay"];
@@ -4867,7 +4871,7 @@ interface Props$B {
4867
4871
  interface SelectionRange extends Omit<RangeInputValue, "color"> {
4868
4872
  isFocused: boolean;
4869
4873
  isValidRange: boolean;
4870
- color?: string;
4874
+ color?: Color;
4871
4875
  }
4872
4876
  /**
4873
4877
  * This component can be used when the user needs to input some
@@ -4941,6 +4945,21 @@ declare class BarConfigPanel extends LineBarPieConfigPanel {
4941
4945
  onUpdateAggregated(ev: any): void;
4942
4946
  }
4943
4947
 
4948
+ declare const DATETIME_FORMAT: RegExp;
4949
+ declare enum ComponentsImportance {
4950
+ Grid = 0,
4951
+ Highlight = 5,
4952
+ Figure = 10,
4953
+ ScrollBar = 15,
4954
+ GridPopover = 19,
4955
+ GridComposer = 20,
4956
+ Dropdown = 21,
4957
+ IconPicker = 25,
4958
+ TopBarComposer = 30,
4959
+ Popover = 35,
4960
+ ChartAnchor = 1000
4961
+ }
4962
+
4944
4963
  interface PopoverProps {
4945
4964
  /**
4946
4965
  * Rectangle around which the popover is displayed.
@@ -4956,6 +4975,8 @@ interface PopoverProps {
4956
4975
  onMouseWheel?: () => void;
4957
4976
  onPopoverMoved?: () => void;
4958
4977
  onPopoverHidden?: () => void;
4978
+ /** Setting popover to allow dynamic zIndex */
4979
+ zIndex?: Number;
4959
4980
  }
4960
4981
  declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
4961
4982
  static template: string;
@@ -4965,6 +4986,7 @@ declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
4965
4986
  onMouseWheel: () => void;
4966
4987
  onPopoverMoved: () => void;
4967
4988
  onPopoverHidden: () => void;
4989
+ zIndex: ComponentsImportance;
4968
4990
  };
4969
4991
  private popoverRef;
4970
4992
  private currentPosition;
@@ -4972,6 +4994,7 @@ declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
4972
4994
  private spreadsheetRect;
4973
4995
  private containerRect;
4974
4996
  setup(): void;
4997
+ get popoverStyle(): string;
4975
4998
  }
4976
4999
 
4977
5000
  interface ColorPickerProps {
@@ -4988,7 +5011,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
4988
5011
  static components: {
4989
5012
  Popover: typeof Popover;
4990
5013
  };
4991
- COLORS: string[];
5014
+ COLORS: Color[];
4992
5015
  private state;
4993
5016
  get colorPickerStyle(): string;
4994
5017
  get popoverProps(): PopoverProps;
@@ -5002,6 +5025,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
5002
5025
  showMagnifier(_ev: MouseEvent): void;
5003
5026
  moveMagnifier(ev: MouseEvent): void;
5004
5027
  get magnifyingGlassStyle(): string;
5028
+ isSameColor(color1: Color, color2: Color): boolean;
5005
5029
  }
5006
5030
 
5007
5031
  interface Props$z {
@@ -5041,7 +5065,7 @@ declare class LineBarPieDesignPanel extends Component<Props$y, SpreadsheetChildE
5041
5065
  onClick(ev: MouseEvent): void;
5042
5066
  setup(): void;
5043
5067
  toggleColorPicker(): void;
5044
- updateBackgroundColor(color: string): void;
5068
+ updateBackgroundColor(color: Color): void;
5045
5069
  updateTitle(ev: any): void;
5046
5070
  updateSelect(attr: string, ev: any): void;
5047
5071
  }
@@ -5078,7 +5102,7 @@ declare class GaugeChartDesignPanel extends Component<Props$w, SpreadsheetChildE
5078
5102
  private state;
5079
5103
  setup(): void;
5080
5104
  get designErrorMessages(): string[];
5081
- updateBackgroundColor(color: string): void;
5105
+ updateBackgroundColor(color: Color): void;
5082
5106
  updateTitle(ev: any): void;
5083
5107
  isRangeMinInvalid(): boolean;
5084
5108
  isRangeMaxInvalid(): boolean;
@@ -5086,7 +5110,7 @@ declare class GaugeChartDesignPanel extends Component<Props$w, SpreadsheetChildE
5086
5110
  get isUpperInflectionPointInvalid(): boolean;
5087
5111
  updateInflectionPointValue(attr: string, ev: any): void;
5088
5112
  updateInflectionPointType(attr: string, ev: any): void;
5089
- updateSectionColor(target: string, color: string): void;
5113
+ updateSectionColor(target: string, color: Color): void;
5090
5114
  updateRangeMin(ev: any): void;
5091
5115
  updateRangeMax(ev: any): void;
5092
5116
  toggleMenu(menu: GaugeMenu): void;
@@ -5141,7 +5165,7 @@ declare class ScorecardChartDesignPanel extends Component<Props$u, SpreadsheetCh
5141
5165
  updateTitle(ev: any): void;
5142
5166
  updateBaselineDescr(ev: any): void;
5143
5167
  toggleColorPicker(colorPickerId: ColorPickerId): void;
5144
- setColor(color: string, colorPickerId: ColorPickerId): void;
5168
+ setColor(color: Color, colorPickerId: ColorPickerId): void;
5145
5169
  private closeMenus;
5146
5170
  }
5147
5171
 
@@ -5181,7 +5205,7 @@ interface MenuItemSpec {
5181
5205
  children?: MenuChildren;
5182
5206
  separator?: boolean;
5183
5207
  icon?: string;
5184
- textColor?: string;
5208
+ textColor?: Color;
5185
5209
  }
5186
5210
  interface MenuItem {
5187
5211
  id: string;
@@ -5278,8 +5302,8 @@ declare class ScorecardChart extends Component<Props$s, SpreadsheetChildEnv> {
5278
5302
  get baseline(): string;
5279
5303
  get baselineDescr(): string;
5280
5304
  get baselineArrowDirection(): BaselineArrowDirection;
5281
- get backgroundColor(): string;
5282
- get primaryFontColor(): string;
5305
+ get backgroundColor(): Color;
5306
+ get primaryFontColor(): Color;
5283
5307
  get secondaryFontColor(): "#525252" | "#C8C8C8";
5284
5308
  get figure(): Figure;
5285
5309
  get chartStyle(): string;
@@ -5433,7 +5457,7 @@ declare class Autofill extends Component<Props$o, SpreadsheetChildEnv> {
5433
5457
  interface ClientTagProps {
5434
5458
  active: boolean;
5435
5459
  name: string;
5436
- color: string;
5460
+ color: Color;
5437
5461
  col: HeaderIndex;
5438
5462
  row: HeaderIndex;
5439
5463
  }
@@ -5608,6 +5632,39 @@ declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
5608
5632
  get sheetListMaxScroll(): number;
5609
5633
  }
5610
5634
 
5635
+ interface Props$k {
5636
+ position: DOMCoordinates;
5637
+ isActive: boolean;
5638
+ onClick: () => void;
5639
+ }
5640
+ declare class FilterIcon extends Component<Props$k, SpreadsheetEnv> {
5641
+ static style: string;
5642
+ static template: string;
5643
+ get style(): string;
5644
+ }
5645
+
5646
+ interface Props$j {
5647
+ gridPosition: DOMCoordinates;
5648
+ }
5649
+ declare class FilterIconsOverlay extends Component<Props$j, SpreadsheetChildEnv> {
5650
+ static style: string;
5651
+ static template: string;
5652
+ static components: {
5653
+ FilterIcon: typeof FilterIcon;
5654
+ };
5655
+ static defaultProps: {
5656
+ gridPosition: {
5657
+ x: number;
5658
+ y: number;
5659
+ };
5660
+ };
5661
+ getVisibleFilterHeaders(): Position$1[];
5662
+ getFilterHeaderPosition(position: Position$1): DOMCoordinates;
5663
+ isFilterActive(position: Position$1): boolean;
5664
+ toggleFilterMenu(position: Position$1): void;
5665
+ private isPositionVisible;
5666
+ }
5667
+
5611
5668
  declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
5612
5669
  interface DndState {
5613
5670
  figId: string | undefined;
@@ -5616,7 +5673,7 @@ interface DndState {
5616
5673
  width: Pixel;
5617
5674
  height: Pixel;
5618
5675
  }
5619
- interface Props$k {
5676
+ interface Props$i {
5620
5677
  onFigureDeleted: () => void;
5621
5678
  }
5622
5679
  interface Container {
@@ -5685,7 +5742,7 @@ interface Container {
5685
5742
  * that occurred during the drag & drop, and to position the figure on the correct pane.
5686
5743
  *
5687
5744
  */
5688
- declare class FiguresContainer extends Component<Props$k, SpreadsheetChildEnv> {
5745
+ declare class FiguresContainer extends Component<Props$i, SpreadsheetChildEnv> {
5689
5746
  static template: string;
5690
5747
  static components: {
5691
5748
  FigureComponent: typeof FigureComponent;
@@ -5705,7 +5762,7 @@ declare class FiguresContainer extends Component<Props$k, SpreadsheetChildEnv> {
5705
5762
  private screenCoordinatesToInternal;
5706
5763
  }
5707
5764
 
5708
- interface Props$j {
5765
+ interface Props$h {
5709
5766
  onCellHovered: (position: Partial<Position$1>) => void;
5710
5767
  onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
5711
5768
  onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
@@ -5718,7 +5775,7 @@ interface Props$j {
5718
5775
  gridOverlayDimensions: string;
5719
5776
  onFigureDeleted: () => void;
5720
5777
  }
5721
- declare class GridOverlay extends Component<Props$j, SpreadsheetChildEnv> {
5778
+ declare class GridOverlay extends Component<Props$h, SpreadsheetChildEnv> {
5722
5779
  static template: string;
5723
5780
  static components: {
5724
5781
  FiguresContainer: typeof FiguresContainer;
@@ -5740,23 +5797,24 @@ declare class GridOverlay extends Component<Props$j, SpreadsheetChildEnv> {
5740
5797
  private getCartesianCoordinates;
5741
5798
  }
5742
5799
 
5743
- interface Props$i {
5800
+ interface Props$g {
5744
5801
  hoveredCell: Partial<Position$1>;
5745
5802
  gridRect: Rect;
5746
5803
  onClosePopover: () => void;
5747
5804
  onMouseWheel: (ev: WheelEvent) => void;
5748
5805
  }
5749
- declare class GridPopover extends Component<Props$i, SpreadsheetChildEnv> {
5806
+ declare class GridPopover extends Component<Props$g, SpreadsheetChildEnv> {
5750
5807
  static template: string;
5751
5808
  static components: {
5752
5809
  Popover: typeof Popover;
5753
5810
  };
5811
+ zIndex: ComponentsImportance;
5754
5812
  get cellPopover(): PositionedCellPopover | ClosedCellPopover;
5755
5813
  }
5756
5814
 
5757
5815
  declare type ScrollDirection = "horizontal" | "vertical";
5758
5816
 
5759
- interface Props$h {
5817
+ interface Props$f {
5760
5818
  width: Pixel;
5761
5819
  height: Pixel;
5762
5820
  direction: ScrollDirection;
@@ -5764,7 +5822,7 @@ interface Props$h {
5764
5822
  offset: Pixel;
5765
5823
  onScroll: (offset: Pixel) => void;
5766
5824
  }
5767
- declare class ScrollBar extends Component<Props$h> {
5825
+ declare class ScrollBar extends Component<Props$f> {
5768
5826
  static template: string;
5769
5827
  static defaultProps: {
5770
5828
  width: number;
@@ -5778,10 +5836,10 @@ declare class ScrollBar extends Component<Props$h> {
5778
5836
  onScroll(ev: any): void;
5779
5837
  }
5780
5838
 
5781
- interface Props$g {
5839
+ interface Props$e {
5782
5840
  leftOffset: number;
5783
5841
  }
5784
- declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv> {
5842
+ declare class HorizontalScrollBar extends Component<Props$e, SpreadsheetChildEnv> {
5785
5843
  static components: {
5786
5844
  ScrollBar: typeof ScrollBar;
5787
5845
  };
@@ -5789,8 +5847,8 @@ declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv
5789
5847
  static defaultProps: {
5790
5848
  leftOffset: number;
5791
5849
  };
5792
- get offset(): number;
5793
- get width(): number;
5850
+ get offset(): Pixel;
5851
+ get width(): Pixel;
5794
5852
  get isDisplayed(): boolean;
5795
5853
  get position(): {
5796
5854
  left: string;
@@ -5801,10 +5859,10 @@ declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv
5801
5859
  onScroll(offset: any): void;
5802
5860
  }
5803
5861
 
5804
- interface Props$f {
5862
+ interface Props$d {
5805
5863
  topOffset: number;
5806
5864
  }
5807
- declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv> {
5865
+ declare class VerticalScrollBar extends Component<Props$d, SpreadsheetChildEnv> {
5808
5866
  static components: {
5809
5867
  ScrollBar: typeof ScrollBar;
5810
5868
  };
@@ -5812,8 +5870,8 @@ declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv>
5812
5870
  static defaultProps: {
5813
5871
  topOffset: number;
5814
5872
  };
5815
- get offset(): number;
5816
- get height(): number;
5873
+ get offset(): Pixel;
5874
+ get height(): Pixel;
5817
5875
  get isDisplayed(): boolean;
5818
5876
  get position(): {
5819
5877
  top: string;
@@ -5824,39 +5882,6 @@ declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv>
5824
5882
  onScroll(offset: any): void;
5825
5883
  }
5826
5884
 
5827
- interface Props$e {
5828
- position: DOMCoordinates;
5829
- isActive: boolean;
5830
- onClick: () => void;
5831
- }
5832
- declare class FilterIcon extends Component<Props$e, SpreadsheetEnv> {
5833
- static style: string;
5834
- static template: string;
5835
- get style(): string;
5836
- }
5837
-
5838
- interface Props$d {
5839
- gridPosition: DOMCoordinates;
5840
- }
5841
- declare class FilterIconsOverlay extends Component<Props$d, SpreadsheetChildEnv> {
5842
- static style: string;
5843
- static template: string;
5844
- static components: {
5845
- FilterIcon: typeof FilterIcon;
5846
- };
5847
- static defaultProps: {
5848
- gridPosition: {
5849
- x: number;
5850
- y: number;
5851
- };
5852
- };
5853
- getVisibleFilterHeaders(): Position$1[];
5854
- getFilterHeaderPosition(position: Position$1): DOMCoordinates;
5855
- isFilterActive(position: Position$1): boolean;
5856
- toggleFilterMenu(position: Position$1): void;
5857
- private isPositionVisible;
5858
- }
5859
-
5860
5885
  interface Props$c {
5861
5886
  }
5862
5887
  interface ClickableCell {
@@ -5981,7 +6006,7 @@ declare class FunctionDescriptionProvider extends Component<Props$9> {
5981
6006
 
5982
6007
  declare type HtmlContent = {
5983
6008
  value: string;
5984
- color?: string;
6009
+ color?: Color;
5985
6010
  class?: string;
5986
6011
  };
5987
6012
  interface AutocompleteValue {
@@ -6158,8 +6183,8 @@ declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
6158
6183
  undoTool: boolean;
6159
6184
  redoTool: boolean;
6160
6185
  paintFormatTool: boolean;
6161
- fillColor: string;
6162
- textColor: string;
6186
+ fillColor: Color;
6187
+ textColor: Color;
6163
6188
  menus: MenuItem[];
6164
6189
  setup(): void;
6165
6190
  get topbarComponents(): TopbarComponent[];
@@ -6178,7 +6203,7 @@ declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
6178
6203
  updateCellState(): void;
6179
6204
  getMenuName(menu: MenuItem): string;
6180
6205
  toggleMerge(): void;
6181
- setColor(target: string, color: string): void;
6206
+ setColor(target: string, color: Color): void;
6182
6207
  setBorder(command: BorderCommand): void;
6183
6208
  setFormat(format: Format, custom: boolean): void;
6184
6209
  openCustomFormatSidePanel(custom: string): void;
@@ -6401,7 +6426,7 @@ declare class Border extends Component<Props$4, SpreadsheetChildEnv> {
6401
6426
  declare type Orientation = "nw" | "ne" | "sw" | "se";
6402
6427
  interface Props$3 {
6403
6428
  zone: Zone;
6404
- color: string;
6429
+ color: Color;
6405
6430
  orientation: Orientation;
6406
6431
  isResizing: boolean;
6407
6432
  onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
@@ -6416,7 +6441,7 @@ declare class Corner extends Component<Props$3, SpreadsheetChildEnv> {
6416
6441
 
6417
6442
  interface Props$2 {
6418
6443
  zone: Zone;
6419
- color: string;
6444
+ color: Color;
6420
6445
  }
6421
6446
  interface HighlightState {
6422
6447
  shiftingMode: "isMoving" | "isResizing" | "none";
@@ -6566,8 +6591,6 @@ declare function createEmptySheet(sheetId: UID, name: string): SheetData;
6566
6591
  declare function createEmptyWorkbookData(sheetName?: string): WorkbookData;
6567
6592
  declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetData;
6568
6593
 
6569
- declare const DATETIME_FORMAT: RegExp;
6570
-
6571
6594
  /**
6572
6595
  * We export here all entities that needs to be accessed publicly by Odoo.
6573
6596
  *