@odoo/o-spreadsheet 17.1.4 → 17.1.7
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 +274 -183
- package/dist/o-spreadsheet.d.ts +28 -14
- package/dist/o-spreadsheet.esm.js +274 -183
- package/dist/o-spreadsheet.iife.js +274 -183
- package/dist/o-spreadsheet.iife.min.js +294 -291
- package/dist/o_spreadsheet.xml +7 -6
- package/package.json +1 -1
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -3349,6 +3349,7 @@ declare class CellPlugin extends CorePlugin<CoreState> implements CoreState {
|
|
|
3349
3349
|
private createErrorFormula;
|
|
3350
3350
|
private checkCellOutOfSheet;
|
|
3351
3351
|
private checkUselessClearCell;
|
|
3352
|
+
private checkUselessUpdateCell;
|
|
3352
3353
|
}
|
|
3353
3354
|
|
|
3354
3355
|
/**
|
|
@@ -3853,7 +3854,7 @@ interface SheetState {
|
|
|
3853
3854
|
readonly cellPosition: Record<UID, CellPosition | undefined>;
|
|
3854
3855
|
}
|
|
3855
3856
|
declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
3856
|
-
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "getEvaluationSheets", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "
|
|
3857
|
+
static getters: readonly ["getSheetName", "tryGetSheetName", "getSheet", "tryGetSheet", "getSheetIdByName", "getSheetIds", "getVisibleSheetIds", "isSheetVisible", "getEvaluationSheets", "doesHeaderExist", "doesHeadersExist", "getCell", "getCellPosition", "getColsZone", "getRowCells", "getRowsZone", "getNumberCols", "getNumberRows", "getNumberHeaders", "getGridLinesVisibility", "getNextSheetName", "getSheetSize", "getSheetZone", "getPaneDivisions", "checkZonesExistInSheet", "getCommandZones", "getUnboundedZone", "checkElementsIncludeAllNonFrozenHeaders"];
|
|
3857
3858
|
readonly sheetIdsMapName: Record<string, UID | undefined>;
|
|
3858
3859
|
readonly orderedSheetIds: UID[];
|
|
3859
3860
|
readonly sheets: Record<UID, Sheet | undefined>;
|
|
@@ -3902,10 +3903,6 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
3902
3903
|
* This validation ensures that all rows or columns cannot be deleted when frozen panes exist.
|
|
3903
3904
|
*/
|
|
3904
3905
|
checkElementsIncludeAllNonFrozenHeaders(sheetId: UID, dimension: Dimension, elements: HeaderIndex[]): boolean;
|
|
3905
|
-
/**
|
|
3906
|
-
* Check if a zone only contains empty cells
|
|
3907
|
-
*/
|
|
3908
|
-
isEmpty(sheetId: UID, zone: Zone): boolean;
|
|
3909
3906
|
getCommandZones(cmd: Command): Zone[];
|
|
3910
3907
|
/**
|
|
3911
3908
|
* Check if zones in the command are well formed and
|
|
@@ -4000,7 +3997,7 @@ declare class SheetPlugin extends CorePlugin<SheetState> implements SheetState {
|
|
|
4000
3997
|
}
|
|
4001
3998
|
|
|
4002
3999
|
declare class EvaluationPlugin extends UIPlugin {
|
|
4003
|
-
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn"];
|
|
4000
|
+
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getSpreadPositionsOf", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
4004
4001
|
private shouldRebuildDependenciesGraph;
|
|
4005
4002
|
private evaluator;
|
|
4006
4003
|
private positionsToUpdate;
|
|
@@ -4026,6 +4023,10 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
4026
4023
|
getEvaluatedCellsInZone(sheetId: UID, zone: Zone): EvaluatedCell[];
|
|
4027
4024
|
getSpreadPositionsOf(position: CellPosition): CellPosition[];
|
|
4028
4025
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
4026
|
+
/**
|
|
4027
|
+
* Check if a zone only contains empty cells
|
|
4028
|
+
*/
|
|
4029
|
+
isEmpty(sheetId: UID, zone: Zone): boolean;
|
|
4029
4030
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
4030
4031
|
/**
|
|
4031
4032
|
* Returns the corresponding formula cell of a given cell
|
|
@@ -4125,7 +4126,7 @@ type SheetValidationResult = {
|
|
|
4125
4126
|
[col: HeaderIndex]: Array<Lazy<ValidationResult>>;
|
|
4126
4127
|
};
|
|
4127
4128
|
declare class EvaluationDataValidationPlugin extends UIPlugin {
|
|
4128
|
-
static getters: readonly ["getDataValidationInvalidCriterionValueMessage", "
|
|
4129
|
+
static getters: readonly ["getDataValidationInvalidCriterionValueMessage", "getInvalidDataValidationMessage", "getValidationResultForCellValue", "isCellValidCheckbox", "isDataValidationInvalid"];
|
|
4129
4130
|
validationResults: Record<UID, SheetValidationResult>;
|
|
4130
4131
|
handle(cmd: CoreViewCommand): void;
|
|
4131
4132
|
isDataValidationInvalid(cellPosition: CellPosition): boolean;
|
|
@@ -4139,8 +4140,6 @@ declare class EvaluationDataValidationPlugin extends UIPlugin {
|
|
|
4139
4140
|
isCellValidCheckbox(cellPosition: CellPosition): boolean;
|
|
4140
4141
|
/** Get the validation result if the cell on the given position had the given value */
|
|
4141
4142
|
getValidationResultForCellValue(cellValue: CellValue, cellPosition: CellPosition): ValidationResult;
|
|
4142
|
-
getDataValidationCheckBoxCellPositions(): CellPosition[];
|
|
4143
|
-
getDataValidationListCellsPositions(): CellPosition[];
|
|
4144
4143
|
private getValidationResultForCell;
|
|
4145
4144
|
private computeSheetValidationResults;
|
|
4146
4145
|
private getRuleErrorForCellValue;
|
|
@@ -4699,7 +4698,7 @@ declare class UIOptionsPlugin extends UIPlugin {
|
|
|
4699
4698
|
}
|
|
4700
4699
|
|
|
4701
4700
|
declare class SheetUIPlugin extends UIPlugin {
|
|
4702
|
-
static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "
|
|
4701
|
+
static getters: readonly ["doesCellHaveGridIcon", "getCellWidth", "getTextWidth", "getCellText", "getCellMultiLineText", "getContiguousZone", "isEvaluatedCellEmpty"];
|
|
4703
4702
|
private ctx;
|
|
4704
4703
|
allowDispatch(cmd: LocalCommand): CommandResult | CommandResult[];
|
|
4705
4704
|
handle(cmd: Command): void;
|
|
@@ -4717,10 +4716,15 @@ declare class SheetUIPlugin extends UIPlugin {
|
|
|
4717
4716
|
*/
|
|
4718
4717
|
getContiguousZone(sheetId: UID, zoneToExpand: Zone): Zone;
|
|
4719
4718
|
/**
|
|
4720
|
-
*
|
|
4721
|
-
* check
|
|
4719
|
+
* Checks if a cell evaluated value is empty. If the cell is part of a merge,
|
|
4720
|
+
* the check applies to the main cell of the merge.
|
|
4722
4721
|
*/
|
|
4723
|
-
|
|
4722
|
+
isEvaluatedCellEmpty(position: CellPosition): boolean;
|
|
4723
|
+
/**
|
|
4724
|
+
* Checks if a cell is empty (i.e. does not have a content or a formula does not spread over it).
|
|
4725
|
+
* If the cell is part of a merge, the check applies to the main cell of the merge.
|
|
4726
|
+
*/
|
|
4727
|
+
private isCellEmpty;
|
|
4724
4728
|
private getColMaxWidth;
|
|
4725
4729
|
/**
|
|
4726
4730
|
* Check that any "sheetId" in the command matches an existing
|
|
@@ -5023,7 +5027,7 @@ type SheetViewports = {
|
|
|
5023
5027
|
*
|
|
5024
5028
|
*/
|
|
5025
5029
|
declare class SheetViewPlugin extends UIPlugin {
|
|
5026
|
-
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPositionVisible"];
|
|
5030
|
+
static getters: readonly ["getColIndex", "getRowIndex", "getActiveMainViewport", "getSheetViewDimension", "getSheetViewDimensionWithHeaders", "getMainViewportRect", "isVisibleInViewport", "getEdgeScrollCol", "getEdgeScrollRow", "getVisibleFigures", "getVisibleRect", "getVisibleRectWithoutHeaders", "getVisibleCellPositions", "getColRowOffsetInViewport", "getMainViewportCoordinates", "getActiveSheetScrollInfo", "getActiveSheetDOMScrollInfo", "getSheetViewVisibleCols", "getSheetViewVisibleRows", "getFrozenSheetViewRatio", "isPositionVisible"];
|
|
5027
5031
|
readonly viewports: Record<UID, SheetViewports | undefined>;
|
|
5028
5032
|
/**
|
|
5029
5033
|
* The viewport dimensions are usually set by one of the components
|
|
@@ -5070,6 +5074,10 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5070
5074
|
getActiveSheetDOMScrollInfo(): SheetDOMScrollInfo;
|
|
5071
5075
|
getSheetViewVisibleCols(): HeaderIndex[];
|
|
5072
5076
|
getSheetViewVisibleRows(): HeaderIndex[];
|
|
5077
|
+
/**
|
|
5078
|
+
* Get the positions of all the cells that are visible in the viewport, taking merges into account.
|
|
5079
|
+
*/
|
|
5080
|
+
getVisibleCellPositions(): CellPosition[];
|
|
5073
5081
|
/**
|
|
5074
5082
|
* Return the main viewport maximum size relative to the client size.
|
|
5075
5083
|
*/
|
|
@@ -5086,6 +5094,10 @@ declare class SheetViewPlugin extends UIPlugin {
|
|
|
5086
5094
|
* Computes the coordinates and size to draw the zone on the canvas
|
|
5087
5095
|
*/
|
|
5088
5096
|
getVisibleRect(zone: Zone): Rect;
|
|
5097
|
+
/**
|
|
5098
|
+
* Computes the coordinates and size to draw the zone without taking the grid offset into account
|
|
5099
|
+
*/
|
|
5100
|
+
getVisibleRectWithoutHeaders(zone: Zone): Rect;
|
|
5089
5101
|
/**
|
|
5090
5102
|
* Returns the position of the MainViewport relatively to the start of the grid (without headers)
|
|
5091
5103
|
* It corresponds to the summed dimensions of the visible cols/rows (in x/y respectively)
|
|
@@ -7721,6 +7733,8 @@ declare class TextValueProvider extends Component<Props$b> {
|
|
|
7721
7733
|
onValueSelected: FunctionConstructor;
|
|
7722
7734
|
onValueHovered: FunctionConstructor;
|
|
7723
7735
|
};
|
|
7736
|
+
private autoCompleteListRef;
|
|
7737
|
+
setup(): void;
|
|
7724
7738
|
}
|
|
7725
7739
|
|
|
7726
7740
|
declare class ContentEditableHelper {
|