@odoo/o-spreadsheet 16.2.1 → 16.2.3
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.
- package/dist/o-spreadsheet.cjs.js +308 -209
- package/dist/o-spreadsheet.d.ts +117 -95
- package/dist/o-spreadsheet.esm.js +308 -209
- package/dist/o-spreadsheet.iife.js +308 -209
- package/dist/o-spreadsheet.iife.min.js +242 -243
- package/package.json +2 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -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:
|
|
298
|
-
right:
|
|
299
|
-
top:
|
|
300
|
-
bottom:
|
|
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:
|
|
410
|
-
readonly middleColor:
|
|
411
|
-
readonly upperColor:
|
|
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:
|
|
438
|
+
color: Color;
|
|
439
439
|
};
|
|
440
440
|
valueLabel?: {
|
|
441
441
|
formatter: (() => string) | null;
|
|
442
442
|
display: boolean;
|
|
443
|
-
color:
|
|
444
|
-
backgroundColor:
|
|
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:
|
|
1626
|
-
y:
|
|
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:
|
|
1641
|
-
y:
|
|
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:
|
|
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?:
|
|
2235
|
-
textColor?:
|
|
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:
|
|
2314
|
+
color: Color | null;
|
|
2315
2315
|
}
|
|
2316
2316
|
interface PaneDivision {
|
|
2317
2317
|
/** Represents the number of frozen columns */
|
|
@@ -3301,7 +3301,7 @@ declare class Filter {
|
|
|
3301
3301
|
readonly id: UID;
|
|
3302
3302
|
readonly zoneWithHeaders: Zone;
|
|
3303
3303
|
constructor(id: UID, zone: Zone);
|
|
3304
|
-
get col():
|
|
3304
|
+
get col(): HeaderIndex;
|
|
3305
3305
|
/** Filtered zone, ie. zone of the filter without the header */
|
|
3306
3306
|
get filteredZone(): Zone | undefined;
|
|
3307
3307
|
}
|
|
@@ -3807,8 +3807,8 @@ declare class InternalViewport {
|
|
|
3807
3807
|
offsetScrollbarY: Pixel;
|
|
3808
3808
|
canScrollVertically: boolean;
|
|
3809
3809
|
canScrollHorizontally: boolean;
|
|
3810
|
-
|
|
3811
|
-
|
|
3810
|
+
viewportWidth: Pixel;
|
|
3811
|
+
viewportHeight: Pixel;
|
|
3812
3812
|
offsetCorrectionX: Pixel;
|
|
3813
3813
|
offsetCorrectionY: Pixel;
|
|
3814
3814
|
constructor(getters: Getters, sheetId: UID, boundaries: Zone, sizeInGrid: {
|
|
@@ -3821,6 +3821,10 @@ declare class InternalViewport {
|
|
|
3821
3821
|
x: Pixel;
|
|
3822
3822
|
y: Pixel;
|
|
3823
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
|
+
*/
|
|
3824
3828
|
getMaxSize(): DOMDimension;
|
|
3825
3829
|
/**
|
|
3826
3830
|
* Return the index of a column given an offset x, based on the pane left
|
|
@@ -3840,8 +3844,8 @@ declare class InternalViewport {
|
|
|
3840
3844
|
* until it contains the cell completely.
|
|
3841
3845
|
*/
|
|
3842
3846
|
adjustPosition(position?: Position$1): void;
|
|
3843
|
-
adjustPositionX(
|
|
3844
|
-
adjustPositionY(
|
|
3847
|
+
adjustPositionX(targetCol: HeaderIndex): void;
|
|
3848
|
+
adjustPositionY(targetRow: HeaderIndex): void;
|
|
3845
3849
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
3846
3850
|
adjustViewportZone(): void;
|
|
3847
3851
|
/**
|
|
@@ -3966,8 +3970,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
3966
3970
|
getSheetViewVisibleCols(): HeaderIndex[];
|
|
3967
3971
|
getSheetViewVisibleRows(): HeaderIndex[];
|
|
3968
3972
|
/**
|
|
3969
|
-
* Return the main viewport maximum size
|
|
3970
|
-
* with some bottom and right padding.
|
|
3973
|
+
* Return the main viewport maximum size relative to the client size.
|
|
3971
3974
|
*/
|
|
3972
3975
|
getMainViewportRect(): Rect;
|
|
3973
3976
|
private getMaximumSheetOffset;
|
|
@@ -4261,7 +4264,7 @@ declare class RendererPlugin extends UIPlugin {
|
|
|
4261
4264
|
interface RangeInputValue {
|
|
4262
4265
|
id: number;
|
|
4263
4266
|
xc: string;
|
|
4264
|
-
color:
|
|
4267
|
+
color: Color;
|
|
4265
4268
|
}
|
|
4266
4269
|
/**
|
|
4267
4270
|
* Selection input Plugin
|
|
@@ -4357,7 +4360,7 @@ declare class SelectionInputsManagerPlugin extends UIPlugin {
|
|
|
4357
4360
|
}
|
|
4358
4361
|
|
|
4359
4362
|
interface ClientToDisplay extends Required<Client> {
|
|
4360
|
-
color:
|
|
4363
|
+
color: Color;
|
|
4361
4364
|
}
|
|
4362
4365
|
declare class SelectionMultiUserPlugin extends UIPlugin {
|
|
4363
4366
|
static getters: readonly ["getClientsToDisplay"];
|
|
@@ -4868,7 +4871,7 @@ interface Props$B {
|
|
|
4868
4871
|
interface SelectionRange extends Omit<RangeInputValue, "color"> {
|
|
4869
4872
|
isFocused: boolean;
|
|
4870
4873
|
isValidRange: boolean;
|
|
4871
|
-
color?:
|
|
4874
|
+
color?: Color;
|
|
4872
4875
|
}
|
|
4873
4876
|
/**
|
|
4874
4877
|
* This component can be used when the user needs to input some
|
|
@@ -4942,6 +4945,21 @@ declare class BarConfigPanel extends LineBarPieConfigPanel {
|
|
|
4942
4945
|
onUpdateAggregated(ev: any): void;
|
|
4943
4946
|
}
|
|
4944
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
|
+
|
|
4945
4963
|
interface PopoverProps {
|
|
4946
4964
|
/**
|
|
4947
4965
|
* Rectangle around which the popover is displayed.
|
|
@@ -4957,6 +4975,8 @@ interface PopoverProps {
|
|
|
4957
4975
|
onMouseWheel?: () => void;
|
|
4958
4976
|
onPopoverMoved?: () => void;
|
|
4959
4977
|
onPopoverHidden?: () => void;
|
|
4978
|
+
/** Setting popover to allow dynamic zIndex */
|
|
4979
|
+
zIndex?: Number;
|
|
4960
4980
|
}
|
|
4961
4981
|
declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
|
|
4962
4982
|
static template: string;
|
|
@@ -4966,6 +4986,7 @@ declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
|
|
|
4966
4986
|
onMouseWheel: () => void;
|
|
4967
4987
|
onPopoverMoved: () => void;
|
|
4968
4988
|
onPopoverHidden: () => void;
|
|
4989
|
+
zIndex: ComponentsImportance;
|
|
4969
4990
|
};
|
|
4970
4991
|
private popoverRef;
|
|
4971
4992
|
private currentPosition;
|
|
@@ -4973,6 +4994,7 @@ declare class Popover extends Component<PopoverProps, SpreadsheetChildEnv> {
|
|
|
4973
4994
|
private spreadsheetRect;
|
|
4974
4995
|
private containerRect;
|
|
4975
4996
|
setup(): void;
|
|
4997
|
+
get popoverStyle(): string;
|
|
4976
4998
|
}
|
|
4977
4999
|
|
|
4978
5000
|
interface ColorPickerProps {
|
|
@@ -4989,7 +5011,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
4989
5011
|
static components: {
|
|
4990
5012
|
Popover: typeof Popover;
|
|
4991
5013
|
};
|
|
4992
|
-
COLORS:
|
|
5014
|
+
COLORS: Color[];
|
|
4993
5015
|
private state;
|
|
4994
5016
|
get colorPickerStyle(): string;
|
|
4995
5017
|
get popoverProps(): PopoverProps;
|
|
@@ -5003,6 +5025,7 @@ declare class ColorPicker extends Component<ColorPickerProps, SpreadsheetChildEn
|
|
|
5003
5025
|
showMagnifier(_ev: MouseEvent): void;
|
|
5004
5026
|
moveMagnifier(ev: MouseEvent): void;
|
|
5005
5027
|
get magnifyingGlassStyle(): string;
|
|
5028
|
+
isSameColor(color1: Color, color2: Color): boolean;
|
|
5006
5029
|
}
|
|
5007
5030
|
|
|
5008
5031
|
interface Props$z {
|
|
@@ -5042,7 +5065,7 @@ declare class LineBarPieDesignPanel extends Component<Props$y, SpreadsheetChildE
|
|
|
5042
5065
|
onClick(ev: MouseEvent): void;
|
|
5043
5066
|
setup(): void;
|
|
5044
5067
|
toggleColorPicker(): void;
|
|
5045
|
-
updateBackgroundColor(color:
|
|
5068
|
+
updateBackgroundColor(color: Color): void;
|
|
5046
5069
|
updateTitle(ev: any): void;
|
|
5047
5070
|
updateSelect(attr: string, ev: any): void;
|
|
5048
5071
|
}
|
|
@@ -5079,7 +5102,7 @@ declare class GaugeChartDesignPanel extends Component<Props$w, SpreadsheetChildE
|
|
|
5079
5102
|
private state;
|
|
5080
5103
|
setup(): void;
|
|
5081
5104
|
get designErrorMessages(): string[];
|
|
5082
|
-
updateBackgroundColor(color:
|
|
5105
|
+
updateBackgroundColor(color: Color): void;
|
|
5083
5106
|
updateTitle(ev: any): void;
|
|
5084
5107
|
isRangeMinInvalid(): boolean;
|
|
5085
5108
|
isRangeMaxInvalid(): boolean;
|
|
@@ -5087,7 +5110,7 @@ declare class GaugeChartDesignPanel extends Component<Props$w, SpreadsheetChildE
|
|
|
5087
5110
|
get isUpperInflectionPointInvalid(): boolean;
|
|
5088
5111
|
updateInflectionPointValue(attr: string, ev: any): void;
|
|
5089
5112
|
updateInflectionPointType(attr: string, ev: any): void;
|
|
5090
|
-
updateSectionColor(target: string, color:
|
|
5113
|
+
updateSectionColor(target: string, color: Color): void;
|
|
5091
5114
|
updateRangeMin(ev: any): void;
|
|
5092
5115
|
updateRangeMax(ev: any): void;
|
|
5093
5116
|
toggleMenu(menu: GaugeMenu): void;
|
|
@@ -5142,7 +5165,7 @@ declare class ScorecardChartDesignPanel extends Component<Props$u, SpreadsheetCh
|
|
|
5142
5165
|
updateTitle(ev: any): void;
|
|
5143
5166
|
updateBaselineDescr(ev: any): void;
|
|
5144
5167
|
toggleColorPicker(colorPickerId: ColorPickerId): void;
|
|
5145
|
-
setColor(color:
|
|
5168
|
+
setColor(color: Color, colorPickerId: ColorPickerId): void;
|
|
5146
5169
|
private closeMenus;
|
|
5147
5170
|
}
|
|
5148
5171
|
|
|
@@ -5182,7 +5205,7 @@ interface MenuItemSpec {
|
|
|
5182
5205
|
children?: MenuChildren;
|
|
5183
5206
|
separator?: boolean;
|
|
5184
5207
|
icon?: string;
|
|
5185
|
-
textColor?:
|
|
5208
|
+
textColor?: Color;
|
|
5186
5209
|
}
|
|
5187
5210
|
interface MenuItem {
|
|
5188
5211
|
id: string;
|
|
@@ -5279,8 +5302,8 @@ declare class ScorecardChart extends Component<Props$s, SpreadsheetChildEnv> {
|
|
|
5279
5302
|
get baseline(): string;
|
|
5280
5303
|
get baselineDescr(): string;
|
|
5281
5304
|
get baselineArrowDirection(): BaselineArrowDirection;
|
|
5282
|
-
get backgroundColor():
|
|
5283
|
-
get primaryFontColor():
|
|
5305
|
+
get backgroundColor(): Color;
|
|
5306
|
+
get primaryFontColor(): Color;
|
|
5284
5307
|
get secondaryFontColor(): "#525252" | "#C8C8C8";
|
|
5285
5308
|
get figure(): Figure;
|
|
5286
5309
|
get chartStyle(): string;
|
|
@@ -5434,7 +5457,7 @@ declare class Autofill extends Component<Props$o, SpreadsheetChildEnv> {
|
|
|
5434
5457
|
interface ClientTagProps {
|
|
5435
5458
|
active: boolean;
|
|
5436
5459
|
name: string;
|
|
5437
|
-
color:
|
|
5460
|
+
color: Color;
|
|
5438
5461
|
col: HeaderIndex;
|
|
5439
5462
|
row: HeaderIndex;
|
|
5440
5463
|
}
|
|
@@ -5609,6 +5632,39 @@ declare class BottomBar extends Component<Props$l, SpreadsheetChildEnv> {
|
|
|
5609
5632
|
get sheetListMaxScroll(): number;
|
|
5610
5633
|
}
|
|
5611
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
|
+
|
|
5612
5668
|
declare type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
5613
5669
|
interface DndState {
|
|
5614
5670
|
figId: string | undefined;
|
|
@@ -5617,7 +5673,7 @@ interface DndState {
|
|
|
5617
5673
|
width: Pixel;
|
|
5618
5674
|
height: Pixel;
|
|
5619
5675
|
}
|
|
5620
|
-
interface Props$
|
|
5676
|
+
interface Props$i {
|
|
5621
5677
|
onFigureDeleted: () => void;
|
|
5622
5678
|
}
|
|
5623
5679
|
interface Container {
|
|
@@ -5686,7 +5742,7 @@ interface Container {
|
|
|
5686
5742
|
* that occurred during the drag & drop, and to position the figure on the correct pane.
|
|
5687
5743
|
*
|
|
5688
5744
|
*/
|
|
5689
|
-
declare class FiguresContainer extends Component<Props$
|
|
5745
|
+
declare class FiguresContainer extends Component<Props$i, SpreadsheetChildEnv> {
|
|
5690
5746
|
static template: string;
|
|
5691
5747
|
static components: {
|
|
5692
5748
|
FigureComponent: typeof FigureComponent;
|
|
@@ -5706,7 +5762,7 @@ declare class FiguresContainer extends Component<Props$k, SpreadsheetChildEnv> {
|
|
|
5706
5762
|
private screenCoordinatesToInternal;
|
|
5707
5763
|
}
|
|
5708
5764
|
|
|
5709
|
-
interface Props$
|
|
5765
|
+
interface Props$h {
|
|
5710
5766
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
5711
5767
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
5712
5768
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
|
|
@@ -5719,7 +5775,7 @@ interface Props$j {
|
|
|
5719
5775
|
gridOverlayDimensions: string;
|
|
5720
5776
|
onFigureDeleted: () => void;
|
|
5721
5777
|
}
|
|
5722
|
-
declare class GridOverlay extends Component<Props$
|
|
5778
|
+
declare class GridOverlay extends Component<Props$h, SpreadsheetChildEnv> {
|
|
5723
5779
|
static template: string;
|
|
5724
5780
|
static components: {
|
|
5725
5781
|
FiguresContainer: typeof FiguresContainer;
|
|
@@ -5741,23 +5797,24 @@ declare class GridOverlay extends Component<Props$j, SpreadsheetChildEnv> {
|
|
|
5741
5797
|
private getCartesianCoordinates;
|
|
5742
5798
|
}
|
|
5743
5799
|
|
|
5744
|
-
interface Props$
|
|
5800
|
+
interface Props$g {
|
|
5745
5801
|
hoveredCell: Partial<Position$1>;
|
|
5746
5802
|
gridRect: Rect;
|
|
5747
5803
|
onClosePopover: () => void;
|
|
5748
5804
|
onMouseWheel: (ev: WheelEvent) => void;
|
|
5749
5805
|
}
|
|
5750
|
-
declare class GridPopover extends Component<Props$
|
|
5806
|
+
declare class GridPopover extends Component<Props$g, SpreadsheetChildEnv> {
|
|
5751
5807
|
static template: string;
|
|
5752
5808
|
static components: {
|
|
5753
5809
|
Popover: typeof Popover;
|
|
5754
5810
|
};
|
|
5811
|
+
zIndex: ComponentsImportance;
|
|
5755
5812
|
get cellPopover(): PositionedCellPopover | ClosedCellPopover;
|
|
5756
5813
|
}
|
|
5757
5814
|
|
|
5758
5815
|
declare type ScrollDirection = "horizontal" | "vertical";
|
|
5759
5816
|
|
|
5760
|
-
interface Props$
|
|
5817
|
+
interface Props$f {
|
|
5761
5818
|
width: Pixel;
|
|
5762
5819
|
height: Pixel;
|
|
5763
5820
|
direction: ScrollDirection;
|
|
@@ -5765,7 +5822,7 @@ interface Props$h {
|
|
|
5765
5822
|
offset: Pixel;
|
|
5766
5823
|
onScroll: (offset: Pixel) => void;
|
|
5767
5824
|
}
|
|
5768
|
-
declare class ScrollBar extends Component<Props$
|
|
5825
|
+
declare class ScrollBar extends Component<Props$f> {
|
|
5769
5826
|
static template: string;
|
|
5770
5827
|
static defaultProps: {
|
|
5771
5828
|
width: number;
|
|
@@ -5779,10 +5836,10 @@ declare class ScrollBar extends Component<Props$h> {
|
|
|
5779
5836
|
onScroll(ev: any): void;
|
|
5780
5837
|
}
|
|
5781
5838
|
|
|
5782
|
-
interface Props$
|
|
5839
|
+
interface Props$e {
|
|
5783
5840
|
leftOffset: number;
|
|
5784
5841
|
}
|
|
5785
|
-
declare class HorizontalScrollBar extends Component<Props$
|
|
5842
|
+
declare class HorizontalScrollBar extends Component<Props$e, SpreadsheetChildEnv> {
|
|
5786
5843
|
static components: {
|
|
5787
5844
|
ScrollBar: typeof ScrollBar;
|
|
5788
5845
|
};
|
|
@@ -5790,8 +5847,8 @@ declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv
|
|
|
5790
5847
|
static defaultProps: {
|
|
5791
5848
|
leftOffset: number;
|
|
5792
5849
|
};
|
|
5793
|
-
get offset():
|
|
5794
|
-
get width():
|
|
5850
|
+
get offset(): Pixel;
|
|
5851
|
+
get width(): Pixel;
|
|
5795
5852
|
get isDisplayed(): boolean;
|
|
5796
5853
|
get position(): {
|
|
5797
5854
|
left: string;
|
|
@@ -5802,10 +5859,10 @@ declare class HorizontalScrollBar extends Component<Props$g, SpreadsheetChildEnv
|
|
|
5802
5859
|
onScroll(offset: any): void;
|
|
5803
5860
|
}
|
|
5804
5861
|
|
|
5805
|
-
interface Props$
|
|
5862
|
+
interface Props$d {
|
|
5806
5863
|
topOffset: number;
|
|
5807
5864
|
}
|
|
5808
|
-
declare class VerticalScrollBar extends Component<Props$
|
|
5865
|
+
declare class VerticalScrollBar extends Component<Props$d, SpreadsheetChildEnv> {
|
|
5809
5866
|
static components: {
|
|
5810
5867
|
ScrollBar: typeof ScrollBar;
|
|
5811
5868
|
};
|
|
@@ -5813,8 +5870,8 @@ declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv>
|
|
|
5813
5870
|
static defaultProps: {
|
|
5814
5871
|
topOffset: number;
|
|
5815
5872
|
};
|
|
5816
|
-
get offset():
|
|
5817
|
-
get height():
|
|
5873
|
+
get offset(): Pixel;
|
|
5874
|
+
get height(): Pixel;
|
|
5818
5875
|
get isDisplayed(): boolean;
|
|
5819
5876
|
get position(): {
|
|
5820
5877
|
top: string;
|
|
@@ -5825,39 +5882,6 @@ declare class VerticalScrollBar extends Component<Props$f, SpreadsheetChildEnv>
|
|
|
5825
5882
|
onScroll(offset: any): void;
|
|
5826
5883
|
}
|
|
5827
5884
|
|
|
5828
|
-
interface Props$e {
|
|
5829
|
-
position: DOMCoordinates;
|
|
5830
|
-
isActive: boolean;
|
|
5831
|
-
onClick: () => void;
|
|
5832
|
-
}
|
|
5833
|
-
declare class FilterIcon extends Component<Props$e, SpreadsheetEnv> {
|
|
5834
|
-
static style: string;
|
|
5835
|
-
static template: string;
|
|
5836
|
-
get style(): string;
|
|
5837
|
-
}
|
|
5838
|
-
|
|
5839
|
-
interface Props$d {
|
|
5840
|
-
gridPosition: DOMCoordinates;
|
|
5841
|
-
}
|
|
5842
|
-
declare class FilterIconsOverlay extends Component<Props$d, SpreadsheetChildEnv> {
|
|
5843
|
-
static style: string;
|
|
5844
|
-
static template: string;
|
|
5845
|
-
static components: {
|
|
5846
|
-
FilterIcon: typeof FilterIcon;
|
|
5847
|
-
};
|
|
5848
|
-
static defaultProps: {
|
|
5849
|
-
gridPosition: {
|
|
5850
|
-
x: number;
|
|
5851
|
-
y: number;
|
|
5852
|
-
};
|
|
5853
|
-
};
|
|
5854
|
-
getVisibleFilterHeaders(): Position$1[];
|
|
5855
|
-
getFilterHeaderPosition(position: Position$1): DOMCoordinates;
|
|
5856
|
-
isFilterActive(position: Position$1): boolean;
|
|
5857
|
-
toggleFilterMenu(position: Position$1): void;
|
|
5858
|
-
private isPositionVisible;
|
|
5859
|
-
}
|
|
5860
|
-
|
|
5861
5885
|
interface Props$c {
|
|
5862
5886
|
}
|
|
5863
5887
|
interface ClickableCell {
|
|
@@ -5982,7 +6006,7 @@ declare class FunctionDescriptionProvider extends Component<Props$9> {
|
|
|
5982
6006
|
|
|
5983
6007
|
declare type HtmlContent = {
|
|
5984
6008
|
value: string;
|
|
5985
|
-
color?:
|
|
6009
|
+
color?: Color;
|
|
5986
6010
|
class?: string;
|
|
5987
6011
|
};
|
|
5988
6012
|
interface AutocompleteValue {
|
|
@@ -6159,8 +6183,8 @@ declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
|
|
|
6159
6183
|
undoTool: boolean;
|
|
6160
6184
|
redoTool: boolean;
|
|
6161
6185
|
paintFormatTool: boolean;
|
|
6162
|
-
fillColor:
|
|
6163
|
-
textColor:
|
|
6186
|
+
fillColor: Color;
|
|
6187
|
+
textColor: Color;
|
|
6164
6188
|
menus: MenuItem[];
|
|
6165
6189
|
setup(): void;
|
|
6166
6190
|
get topbarComponents(): TopbarComponent[];
|
|
@@ -6179,7 +6203,7 @@ declare class TopBar extends Component<Props$6, SpreadsheetChildEnv> {
|
|
|
6179
6203
|
updateCellState(): void;
|
|
6180
6204
|
getMenuName(menu: MenuItem): string;
|
|
6181
6205
|
toggleMerge(): void;
|
|
6182
|
-
setColor(target: string, color:
|
|
6206
|
+
setColor(target: string, color: Color): void;
|
|
6183
6207
|
setBorder(command: BorderCommand): void;
|
|
6184
6208
|
setFormat(format: Format, custom: boolean): void;
|
|
6185
6209
|
openCustomFormatSidePanel(custom: string): void;
|
|
@@ -6402,7 +6426,7 @@ declare class Border extends Component<Props$4, SpreadsheetChildEnv> {
|
|
|
6402
6426
|
declare type Orientation = "nw" | "ne" | "sw" | "se";
|
|
6403
6427
|
interface Props$3 {
|
|
6404
6428
|
zone: Zone;
|
|
6405
|
-
color:
|
|
6429
|
+
color: Color;
|
|
6406
6430
|
orientation: Orientation;
|
|
6407
6431
|
isResizing: boolean;
|
|
6408
6432
|
onResizeHighlight: (isLeft: boolean, isRight: boolean) => void;
|
|
@@ -6417,7 +6441,7 @@ declare class Corner extends Component<Props$3, SpreadsheetChildEnv> {
|
|
|
6417
6441
|
|
|
6418
6442
|
interface Props$2 {
|
|
6419
6443
|
zone: Zone;
|
|
6420
|
-
color:
|
|
6444
|
+
color: Color;
|
|
6421
6445
|
}
|
|
6422
6446
|
interface HighlightState {
|
|
6423
6447
|
shiftingMode: "isMoving" | "isResizing" | "none";
|
|
@@ -6567,8 +6591,6 @@ declare function createEmptySheet(sheetId: UID, name: string): SheetData;
|
|
|
6567
6591
|
declare function createEmptyWorkbookData(sheetName?: string): WorkbookData;
|
|
6568
6592
|
declare function createEmptyExcelSheet(sheetId: UID, name: string): ExcelSheetData;
|
|
6569
6593
|
|
|
6570
|
-
declare const DATETIME_FORMAT: RegExp;
|
|
6571
|
-
|
|
6572
6594
|
/**
|
|
6573
6595
|
* We export here all entities that needs to be accessed publicly by Odoo.
|
|
6574
6596
|
*
|