@odoo/o-spreadsheet 16.4.15 → 16.4.17
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 +921 -188
- package/dist/o-spreadsheet.d.ts +19 -19
- package/dist/o-spreadsheet.esm.js +921 -188
- package/dist/o-spreadsheet.iife.js +921 -188
- package/dist/o-spreadsheet.iife.min.js +264 -264
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +4 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1715,6 +1715,7 @@ interface MoveColumnsRowsCommand extends GridDependentCommand {
|
|
|
1715
1715
|
type: "MOVE_COLUMNS_ROWS";
|
|
1716
1716
|
base: HeaderIndex;
|
|
1717
1717
|
elements: HeaderIndex[];
|
|
1718
|
+
position: "before" | "after";
|
|
1718
1719
|
}
|
|
1719
1720
|
interface ResizeColumnsRowsCommand extends GridDependentCommand {
|
|
1720
1721
|
type: "RESIZE_COLUMNS_ROWS";
|
|
@@ -3755,7 +3756,7 @@ declare class SheetPlugin extends CorePlugin<SheetState$1> implements SheetState
|
|
|
3755
3756
|
}
|
|
3756
3757
|
|
|
3757
3758
|
declare class EvaluationPlugin extends UIPlugin {
|
|
3758
|
-
static getters: readonly ["evaluateFormula", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone"];
|
|
3759
|
+
static getters: readonly ["evaluateFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone"];
|
|
3759
3760
|
private shouldRebuildDependenciesGraph;
|
|
3760
3761
|
private evaluator;
|
|
3761
3762
|
private positionsToUpdate;
|
|
@@ -3785,7 +3786,7 @@ declare class EvaluationPlugin extends UIPlugin {
|
|
|
3785
3786
|
* It could be the formula present in the cell itself or the
|
|
3786
3787
|
* formula of the array formula that spreads to the cell
|
|
3787
3788
|
*/
|
|
3788
|
-
|
|
3789
|
+
getCorrespondingFormulaCell(position: CellPosition): FormulaCell | undefined;
|
|
3789
3790
|
}
|
|
3790
3791
|
|
|
3791
3792
|
interface CustomColorState {
|
|
@@ -3810,25 +3811,23 @@ declare class CustomColorsPlugin extends UIPlugin<CustomColorState> {
|
|
|
3810
3811
|
private tryToAddColor;
|
|
3811
3812
|
}
|
|
3812
3813
|
|
|
3814
|
+
interface EvaluationChartStyle {
|
|
3815
|
+
background: Color;
|
|
3816
|
+
fontColor: Color;
|
|
3817
|
+
}
|
|
3813
3818
|
interface EvaluationChartState {
|
|
3814
3819
|
charts: Record<UID, ChartRuntime | undefined>;
|
|
3815
3820
|
}
|
|
3816
3821
|
declare class EvaluationChartPlugin extends UIPlugin<EvaluationChartState> {
|
|
3817
|
-
static getters: readonly ["getChartRuntime", "
|
|
3822
|
+
static getters: readonly ["getChartRuntime", "getStyleOfSingleCellChart"];
|
|
3818
3823
|
charts: Record<UID, ChartRuntime | undefined>;
|
|
3819
3824
|
private createRuntimeChart;
|
|
3820
3825
|
handle(cmd: CoreViewCommand): void;
|
|
3821
3826
|
getChartRuntime(figureId: UID): ChartRuntime;
|
|
3822
3827
|
/**
|
|
3823
|
-
* Get the background
|
|
3824
|
-
* of the chart. In order of priority, it will return :
|
|
3825
|
-
*
|
|
3826
|
-
* - the chart background color if one is defined
|
|
3827
|
-
* - the fill color of the cell if one is defined
|
|
3828
|
-
* - the fill color of the cell from conditional formats if one is defined
|
|
3829
|
-
* - the default chart color if no other color is defined
|
|
3828
|
+
* Get the background and textColor of a chart based on the color of the first cell of the main range of the chart.
|
|
3830
3829
|
*/
|
|
3831
|
-
|
|
3830
|
+
getStyleOfSingleCellChart(chartBackground: Color | undefined, mainRange: Range | undefined): EvaluationChartStyle;
|
|
3832
3831
|
}
|
|
3833
3832
|
|
|
3834
3833
|
declare class EvaluationConditionalFormatPlugin extends UIPlugin {
|
|
@@ -6044,8 +6043,8 @@ interface Props$k {
|
|
|
6044
6043
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
6045
6044
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
6046
6045
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
|
|
6047
|
-
|
|
6048
|
-
|
|
6046
|
+
addZone: boolean;
|
|
6047
|
+
expandZone: boolean;
|
|
6049
6048
|
}) => void;
|
|
6050
6049
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
6051
6050
|
onGridResized: (dimension: DOMDimension) => void;
|
|
@@ -6932,6 +6931,7 @@ interface ResizerState {
|
|
|
6932
6931
|
draggerShadowThickness: number;
|
|
6933
6932
|
delta: number;
|
|
6934
6933
|
base: number;
|
|
6934
|
+
position: "before" | "after";
|
|
6935
6935
|
}
|
|
6936
6936
|
interface ResizerProps {
|
|
6937
6937
|
onOpenContextMenu: (type: ContextMenuType, x: Pixel, y: Pixel) => void;
|
|
@@ -6954,7 +6954,7 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
|
|
|
6954
6954
|
abstract _getMaxSize(): Pixel;
|
|
6955
6955
|
abstract _updateSize(): void;
|
|
6956
6956
|
abstract _moveElements(): void;
|
|
6957
|
-
abstract _selectElement(index: HeaderIndex,
|
|
6957
|
+
abstract _selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
|
|
6958
6958
|
abstract _increaseSelection(index: HeaderIndex): void;
|
|
6959
6959
|
abstract _fitElementSize(index: HeaderIndex): void;
|
|
6960
6960
|
abstract _getType(): ContextMenuType;
|
|
@@ -6988,7 +6988,7 @@ declare class ColResizer extends AbstractResizer {
|
|
|
6988
6988
|
_getMaxSize(): Pixel;
|
|
6989
6989
|
_updateSize(): void;
|
|
6990
6990
|
_moveElements(): void;
|
|
6991
|
-
_selectElement(index: HeaderIndex,
|
|
6991
|
+
_selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
|
|
6992
6992
|
_increaseSelection(index: HeaderIndex): void;
|
|
6993
6993
|
_fitElementSize(index: HeaderIndex): void;
|
|
6994
6994
|
_getType(): ContextMenuType;
|
|
@@ -7013,7 +7013,7 @@ declare class RowResizer extends AbstractResizer {
|
|
|
7013
7013
|
_getMaxSize(): Pixel;
|
|
7014
7014
|
_updateSize(): void;
|
|
7015
7015
|
_moveElements(): void;
|
|
7016
|
-
_selectElement(index: HeaderIndex,
|
|
7016
|
+
_selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
|
|
7017
7017
|
_increaseSelection(index: HeaderIndex): void;
|
|
7018
7018
|
_fitElementSize(index: HeaderIndex): void;
|
|
7019
7019
|
_getType(): ContextMenuType;
|
|
@@ -7140,9 +7140,9 @@ declare class Grid extends Component<Props$1, SpreadsheetChildEnv> {
|
|
|
7140
7140
|
getClientPositionKey(client: Client): string;
|
|
7141
7141
|
isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
|
|
7142
7142
|
private getGridRect;
|
|
7143
|
-
onCellClicked(col: HeaderIndex, row: HeaderIndex, {
|
|
7144
|
-
|
|
7145
|
-
|
|
7143
|
+
onCellClicked(col: HeaderIndex, row: HeaderIndex, { addZone, expandZone }: {
|
|
7144
|
+
addZone: boolean;
|
|
7145
|
+
expandZone: boolean;
|
|
7146
7146
|
}): void;
|
|
7147
7147
|
onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
|
|
7148
7148
|
closeOpenedPopover(): void;
|