@odoo/o-spreadsheet 17.0.5 → 17.0.6
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 +877 -167
- package/dist/o-spreadsheet.d.ts +17 -17
- package/dist/o-spreadsheet.esm.js +877 -167
- package/dist/o-spreadsheet.iife.js +877 -167
- package/dist/o-spreadsheet.iife.min.js +206 -206
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +6 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2667,6 +2667,7 @@ type ValueAndFormat = {
|
|
|
2667
2667
|
};
|
|
2668
2668
|
type Arg = Maybe<ValueAndFormat> | Matrix<ValueAndFormat>;
|
|
2669
2669
|
type ArgValue = Maybe<CellValue> | Matrix<CellValue>;
|
|
2670
|
+
declare function isMatrix(x: any): x is Matrix<any>;
|
|
2670
2671
|
interface HeaderDimensions {
|
|
2671
2672
|
start: Pixel;
|
|
2672
2673
|
size: Pixel;
|
|
@@ -4141,25 +4142,23 @@ declare class CustomColorsPlugin extends UIPlugin<CustomColorState> {
|
|
|
4141
4142
|
private tryToAddColor;
|
|
4142
4143
|
}
|
|
4143
4144
|
|
|
4145
|
+
interface EvaluationChartStyle {
|
|
4146
|
+
background: Color;
|
|
4147
|
+
fontColor: Color;
|
|
4148
|
+
}
|
|
4144
4149
|
interface EvaluationChartState {
|
|
4145
4150
|
charts: Record<UID, ChartRuntime | undefined>;
|
|
4146
4151
|
}
|
|
4147
4152
|
declare class EvaluationChartPlugin extends UIPlugin<EvaluationChartState> {
|
|
4148
|
-
static getters: readonly ["getChartRuntime", "
|
|
4153
|
+
static getters: readonly ["getChartRuntime", "getStyleOfSingleCellChart"];
|
|
4149
4154
|
charts: Record<UID, ChartRuntime | undefined>;
|
|
4150
4155
|
private createRuntimeChart;
|
|
4151
4156
|
handle(cmd: CoreViewCommand): void;
|
|
4152
4157
|
getChartRuntime(figureId: UID): ChartRuntime;
|
|
4153
4158
|
/**
|
|
4154
|
-
* Get the background
|
|
4155
|
-
* of the chart. In order of priority, it will return :
|
|
4156
|
-
*
|
|
4157
|
-
* - the chart background color if one is defined
|
|
4158
|
-
* - the fill color of the cell if one is defined
|
|
4159
|
-
* - the fill color of the cell from conditional formats if one is defined
|
|
4160
|
-
* - the default chart color if no other color is defined
|
|
4159
|
+
* Get the background and textColor of a chart based on the color of the first cell of the main range of the chart.
|
|
4161
4160
|
*/
|
|
4162
|
-
|
|
4161
|
+
getStyleOfSingleCellChart(chartBackground: Color | undefined, mainRange: Range | undefined): EvaluationChartStyle;
|
|
4163
4162
|
exportForExcel(data: ExcelWorkbookData): void;
|
|
4164
4163
|
}
|
|
4165
4164
|
|
|
@@ -6444,8 +6443,8 @@ interface Props$m {
|
|
|
6444
6443
|
onCellHovered: (position: Partial<Position$1>) => void;
|
|
6445
6444
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
6446
6445
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: {
|
|
6447
|
-
|
|
6448
|
-
|
|
6446
|
+
addZone: boolean;
|
|
6447
|
+
expandZone: boolean;
|
|
6449
6448
|
}) => void;
|
|
6450
6449
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
6451
6450
|
onGridResized: (dimension: Rect) => void;
|
|
@@ -7465,7 +7464,7 @@ declare abstract class AbstractResizer extends Component<ResizerProps, Spreadshe
|
|
|
7465
7464
|
abstract _getMaxSize(): Pixel;
|
|
7466
7465
|
abstract _updateSize(): void;
|
|
7467
7466
|
abstract _moveElements(): void;
|
|
7468
|
-
abstract _selectElement(index: HeaderIndex,
|
|
7467
|
+
abstract _selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
|
|
7469
7468
|
abstract _increaseSelection(index: HeaderIndex): void;
|
|
7470
7469
|
abstract _fitElementSize(index: HeaderIndex): void;
|
|
7471
7470
|
abstract _getType(): ContextMenuType;
|
|
@@ -7499,7 +7498,7 @@ declare class ColResizer extends AbstractResizer {
|
|
|
7499
7498
|
_getMaxSize(): Pixel;
|
|
7500
7499
|
_updateSize(): void;
|
|
7501
7500
|
_moveElements(): void;
|
|
7502
|
-
_selectElement(index: HeaderIndex,
|
|
7501
|
+
_selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
|
|
7503
7502
|
_increaseSelection(index: HeaderIndex): void;
|
|
7504
7503
|
_fitElementSize(index: HeaderIndex): void;
|
|
7505
7504
|
_getType(): ContextMenuType;
|
|
@@ -7524,7 +7523,7 @@ declare class RowResizer extends AbstractResizer {
|
|
|
7524
7523
|
_getMaxSize(): Pixel;
|
|
7525
7524
|
_updateSize(): void;
|
|
7526
7525
|
_moveElements(): void;
|
|
7527
|
-
_selectElement(index: HeaderIndex,
|
|
7526
|
+
_selectElement(index: HeaderIndex, addDistinctHeader: boolean): void;
|
|
7528
7527
|
_increaseSelection(index: HeaderIndex): void;
|
|
7529
7528
|
_fitElementSize(index: HeaderIndex): void;
|
|
7530
7529
|
_getType(): ContextMenuType;
|
|
@@ -7651,9 +7650,9 @@ declare class Grid extends Component<Props$1, SpreadsheetChildEnv> {
|
|
|
7651
7650
|
getClientPositionKey(client: Client): string;
|
|
7652
7651
|
isCellHovered(col: HeaderIndex, row: HeaderIndex): boolean;
|
|
7653
7652
|
private getGridRect;
|
|
7654
|
-
onCellClicked(col: HeaderIndex, row: HeaderIndex, {
|
|
7655
|
-
|
|
7656
|
-
|
|
7653
|
+
onCellClicked(col: HeaderIndex, row: HeaderIndex, { addZone, expandZone }: {
|
|
7654
|
+
addZone: boolean;
|
|
7655
|
+
expandZone: boolean;
|
|
7657
7656
|
}): void;
|
|
7658
7657
|
onCellDoubleClicked(col: HeaderIndex, row: HeaderIndex): void;
|
|
7659
7658
|
closeOpenedPopover(): void;
|
|
@@ -7867,6 +7866,7 @@ declare const helpers: {
|
|
|
7867
7866
|
colorToRGBA: typeof colorToRGBA;
|
|
7868
7867
|
positionToZone: typeof positionToZone;
|
|
7869
7868
|
isDefined: typeof isDefined;
|
|
7869
|
+
isMatrix: typeof isMatrix;
|
|
7870
7870
|
lazy: typeof lazy;
|
|
7871
7871
|
genericRepeat: typeof genericRepeat;
|
|
7872
7872
|
createAction: typeof createAction;
|