@odoo/o-spreadsheet 17.4.20 → 17.4.22
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 +182 -133
- package/dist/o-spreadsheet.d.ts +17 -15
- package/dist/o-spreadsheet.esm.js +182 -133
- package/dist/o-spreadsheet.iife.js +182 -133
- package/dist/o-spreadsheet.iife.min.js +55 -55
- package/dist/o_spreadsheet.xml +5 -4
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4958,11 +4958,11 @@ declare class InternalViewport {
|
|
|
4958
4958
|
private setViewportOffsetX;
|
|
4959
4959
|
private setViewportOffsetY;
|
|
4960
4960
|
/** Corrects the viewport's horizontal offset based on the current structure
|
|
4961
|
-
* To make sure that at least
|
|
4961
|
+
* To make sure that at least one column is visible inside the viewport.
|
|
4962
4962
|
*/
|
|
4963
4963
|
private adjustViewportOffsetX;
|
|
4964
4964
|
/** Corrects the viewport's vertical offset based on the current structure
|
|
4965
|
-
* To make sure that at least
|
|
4965
|
+
* To make sure that at least one row is visible inside the viewport.
|
|
4966
4966
|
*/
|
|
4967
4967
|
private adjustViewportOffsetY;
|
|
4968
4968
|
/** Updates the pane zone and snapped offset based on its horizontal
|
|
@@ -4973,12 +4973,6 @@ declare class InternalViewport {
|
|
|
4973
4973
|
private adjustViewportZoneY;
|
|
4974
4974
|
}
|
|
4975
4975
|
|
|
4976
|
-
type SheetViewports = {
|
|
4977
|
-
topLeft: InternalViewport | undefined;
|
|
4978
|
-
bottomLeft: InternalViewport | undefined;
|
|
4979
|
-
topRight: InternalViewport | undefined;
|
|
4980
|
-
bottomRight: InternalViewport;
|
|
4981
|
-
};
|
|
4982
4976
|
/**
|
|
4983
4977
|
* EdgeScrollCases Schema
|
|
4984
4978
|
*
|
|
@@ -5021,8 +5015,8 @@ type SheetViewports = {
|
|
|
5021
5015
|
*
|
|
5022
5016
|
*/
|
|
5023
5017
|
declare class SheetViewPlugin extends UIPlugin {
|
|
5024
|
-
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "
|
|
5025
|
-
|
|
5018
|
+
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPositionVisible", "getColDimensionsInViewport", "getRowDimensionsInViewport", "getAllActiveViewportsZonesAndRect", "getRect"];
|
|
5019
|
+
private viewports;
|
|
5026
5020
|
/**
|
|
5027
5021
|
* The viewport dimensions are usually set by one of the components
|
|
5028
5022
|
* (i.e. when grid component is mounted) to properly reflect its state in the DOM.
|
|
@@ -5077,13 +5071,13 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5077
5071
|
*/
|
|
5078
5072
|
getMainViewportRect(): Rect;
|
|
5079
5073
|
private getMaximumSheetOffset;
|
|
5080
|
-
getColRowOffsetInViewport(dimension: Dimension,
|
|
5074
|
+
getColRowOffsetInViewport(dimension: Dimension, referenceHeaderIndex: HeaderIndex, targetHeaderIndex: HeaderIndex): Pixel;
|
|
5081
5075
|
/**
|
|
5082
5076
|
* Check if a given position is visible in the viewport.
|
|
5083
5077
|
*/
|
|
5084
5078
|
isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
|
|
5085
5079
|
getEdgeScrollCol(x: number, previousX: number, startingX: number): EdgeScrollInfo;
|
|
5086
|
-
getEdgeScrollRow(y: number, previousY: number,
|
|
5080
|
+
getEdgeScrollRow(y: number, previousY: number, startingY: number): EdgeScrollInfo;
|
|
5087
5081
|
/**
|
|
5088
5082
|
* Computes the coordinates and size to draw the zone on the canvas
|
|
5089
5083
|
*/
|
|
@@ -5113,7 +5107,10 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5113
5107
|
* of the current viewport
|
|
5114
5108
|
*/
|
|
5115
5109
|
getRowDimensionsInViewport(sheetId: UID, row: HeaderIndex): HeaderDimensions;
|
|
5116
|
-
|
|
5110
|
+
getAllActiveViewportsZonesAndRect(): {
|
|
5111
|
+
zone: Zone;
|
|
5112
|
+
rect: Rect;
|
|
5113
|
+
}[];
|
|
5117
5114
|
private ensureMainViewportExist;
|
|
5118
5115
|
private getSubViewports;
|
|
5119
5116
|
private checkPositiveDimension;
|
|
@@ -5145,7 +5142,7 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5145
5142
|
xRatio: number;
|
|
5146
5143
|
yRatio: number;
|
|
5147
5144
|
};
|
|
5148
|
-
|
|
5145
|
+
mapViewportsToRect(sheetId: UID, rectCallBack: (viewport: InternalViewport) => Rect | undefined): Rect;
|
|
5149
5146
|
}
|
|
5150
5147
|
|
|
5151
5148
|
/**
|
|
@@ -8980,7 +8977,7 @@ interface DndPartialArgs {
|
|
|
8980
8977
|
draggedItemId: UID;
|
|
8981
8978
|
initialMousePosition: Pixel;
|
|
8982
8979
|
items: DragAndDropItemsPartial[];
|
|
8983
|
-
|
|
8980
|
+
scrollableContainerEl: HTMLElement;
|
|
8984
8981
|
onChange?: () => void;
|
|
8985
8982
|
onCancel?: () => void;
|
|
8986
8983
|
onDragEnd?: (itemId: UID, indexAtEnd: Pixel) => void;
|
|
@@ -9370,6 +9367,7 @@ interface Props$d {
|
|
|
9370
9367
|
unusedMeasureFields: PivotField[];
|
|
9371
9368
|
unusedDateTimeGranularities: Record<string, Set<string>>;
|
|
9372
9369
|
allGranularities: string[];
|
|
9370
|
+
getScrollableContainerEl?: () => HTMLElement;
|
|
9373
9371
|
}
|
|
9374
9372
|
declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChildEnv> {
|
|
9375
9373
|
static template: string;
|
|
@@ -9386,6 +9384,10 @@ declare class PivotLayoutConfigurator extends Component<Props$d, SpreadsheetChil
|
|
|
9386
9384
|
unusedMeasureFields: ArrayConstructor;
|
|
9387
9385
|
unusedDateTimeGranularities: ObjectConstructor;
|
|
9388
9386
|
allGranularities: ArrayConstructor;
|
|
9387
|
+
getScrollableContainerEl: {
|
|
9388
|
+
type: FunctionConstructor;
|
|
9389
|
+
optional: boolean;
|
|
9390
|
+
};
|
|
9389
9391
|
};
|
|
9390
9392
|
private dimensionsRef;
|
|
9391
9393
|
private dragAndDrop;
|