@odoo/o-spreadsheet 18.3.28 → 18.3.31
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 +129 -113
- package/dist/o-spreadsheet.d.ts +9 -24
- package/dist/o-spreadsheet.esm.js +129 -113
- package/dist/o-spreadsheet.iife.js +129 -113
- package/dist/o-spreadsheet.iife.min.js +160 -171
- package/dist/o_spreadsheet.css +44 -0
- package/dist/o_spreadsheet.xml +32 -39
- package/package.json +3 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4294,6 +4294,7 @@ interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
|
4294
4294
|
declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
4295
4295
|
private getters;
|
|
4296
4296
|
private providers;
|
|
4297
|
+
private isAdaptingRanges;
|
|
4297
4298
|
constructor(getters: CoreGetters);
|
|
4298
4299
|
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
4299
4300
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
@@ -5386,7 +5387,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
5386
5387
|
}
|
|
5387
5388
|
|
|
5388
5389
|
declare class EvaluationPlugin extends CoreViewPlugin {
|
|
5389
|
-
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
5390
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
|
|
5390
5391
|
private shouldRebuildDependenciesGraph;
|
|
5391
5392
|
private evaluator;
|
|
5392
5393
|
private positionsToUpdate;
|
|
@@ -5420,6 +5421,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
|
|
|
5420
5421
|
ignoreSpillError: boolean;
|
|
5421
5422
|
}): Zone | undefined;
|
|
5422
5423
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
5424
|
+
isArrayFormulaSpillBlocked(position: CellPosition): boolean;
|
|
5423
5425
|
/**
|
|
5424
5426
|
* Check if a zone only contains empty cells
|
|
5425
5427
|
*/
|
|
@@ -6616,6 +6618,7 @@ interface PivotRegistryItem {
|
|
|
6616
6618
|
datetimeGranularities: string[];
|
|
6617
6619
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
6618
6620
|
isGroupable: (field: PivotField) => boolean;
|
|
6621
|
+
adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
|
|
6619
6622
|
}
|
|
6620
6623
|
|
|
6621
6624
|
declare class ClipboardHandler<T> {
|
|
@@ -8654,7 +8657,7 @@ interface AutofillRule {
|
|
|
8654
8657
|
*/
|
|
8655
8658
|
interface FigureContent {
|
|
8656
8659
|
Component: any;
|
|
8657
|
-
menuBuilder: (figureId: UID,
|
|
8660
|
+
menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
|
|
8658
8661
|
SidePanelComponent?: string;
|
|
8659
8662
|
keepRatio?: boolean;
|
|
8660
8663
|
minFigSize?: number;
|
|
@@ -9092,7 +9095,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
|
|
|
9092
9095
|
interface Props$L {
|
|
9093
9096
|
figureUI: FigureUI;
|
|
9094
9097
|
style: string;
|
|
9095
|
-
onFigureDeleted: () => void;
|
|
9096
9098
|
onMouseDown: (ev: MouseEvent) => void;
|
|
9097
9099
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
9098
9100
|
}
|
|
@@ -9104,10 +9106,6 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9104
9106
|
type: StringConstructor;
|
|
9105
9107
|
optional: boolean;
|
|
9106
9108
|
};
|
|
9107
|
-
onFigureDeleted: {
|
|
9108
|
-
type: FunctionConstructor;
|
|
9109
|
-
optional: boolean;
|
|
9110
|
-
};
|
|
9111
9109
|
onMouseDown: {
|
|
9112
9110
|
type: FunctionConstructor;
|
|
9113
9111
|
optional: boolean;
|
|
@@ -9121,7 +9119,6 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9121
9119
|
Menu: typeof Menu;
|
|
9122
9120
|
};
|
|
9123
9121
|
static defaultProps: {
|
|
9124
|
-
onFigureDeleted: () => void;
|
|
9125
9122
|
onMouseDown: () => void;
|
|
9126
9123
|
onClickAnchor: () => void;
|
|
9127
9124
|
};
|
|
@@ -9148,13 +9145,11 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9148
9145
|
|
|
9149
9146
|
interface Props$K {
|
|
9150
9147
|
figureUI: FigureUI;
|
|
9151
|
-
onFigureDeleted: () => void;
|
|
9152
9148
|
}
|
|
9153
9149
|
declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
|
|
9154
9150
|
static template: string;
|
|
9155
9151
|
static props: {
|
|
9156
9152
|
figureUI: ObjectConstructor;
|
|
9157
|
-
onFigureDeleted: FunctionConstructor;
|
|
9158
9153
|
};
|
|
9159
9154
|
static components: {};
|
|
9160
9155
|
onDoubleClick(): void;
|
|
@@ -9340,7 +9335,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9340
9335
|
|
|
9341
9336
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
9342
9337
|
interface Props$F {
|
|
9343
|
-
onFigureDeleted: () => void;
|
|
9344
9338
|
}
|
|
9345
9339
|
interface Container {
|
|
9346
9340
|
type: ContainerType;
|
|
@@ -9421,9 +9415,7 @@ interface DndState {
|
|
|
9421
9415
|
*/
|
|
9422
9416
|
declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
|
|
9423
9417
|
static template: string;
|
|
9424
|
-
static props: {
|
|
9425
|
-
onFigureDeleted: FunctionConstructor;
|
|
9426
|
-
};
|
|
9418
|
+
static props: {};
|
|
9427
9419
|
static components: {
|
|
9428
9420
|
FigureComponent: typeof FigureComponent;
|
|
9429
9421
|
};
|
|
@@ -9481,16 +9473,14 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
9481
9473
|
}
|
|
9482
9474
|
|
|
9483
9475
|
interface Props$D {
|
|
9484
|
-
focusGrid: () => void;
|
|
9485
9476
|
}
|
|
9486
9477
|
declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv> {
|
|
9487
9478
|
static template: string;
|
|
9488
|
-
static props: {
|
|
9489
|
-
focusGrid: FunctionConstructor;
|
|
9490
|
-
};
|
|
9479
|
+
static props: {};
|
|
9491
9480
|
static components: {
|
|
9492
9481
|
ValidationMessages: typeof ValidationMessages;
|
|
9493
9482
|
};
|
|
9483
|
+
private DOMFocusableElementStore;
|
|
9494
9484
|
inputRef: {
|
|
9495
9485
|
el: HTMLInputElement | null;
|
|
9496
9486
|
};
|
|
@@ -9505,6 +9495,7 @@ declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv>
|
|
|
9505
9495
|
onInput(ev: InputEvent): void;
|
|
9506
9496
|
onConfirm(): void;
|
|
9507
9497
|
private onExternalClick;
|
|
9498
|
+
private focusDefaultElement;
|
|
9508
9499
|
}
|
|
9509
9500
|
|
|
9510
9501
|
interface Props$C {
|
|
@@ -9514,7 +9505,6 @@ interface Props$C {
|
|
|
9514
9505
|
onGridResized: (dimension: Rect) => void;
|
|
9515
9506
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
9516
9507
|
gridOverlayDimensions: string;
|
|
9517
|
-
onFigureDeleted: () => void;
|
|
9518
9508
|
}
|
|
9519
9509
|
declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
9520
9510
|
static template: string;
|
|
@@ -9535,10 +9525,6 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
9535
9525
|
type: FunctionConstructor;
|
|
9536
9526
|
optional: boolean;
|
|
9537
9527
|
};
|
|
9538
|
-
onFigureDeleted: {
|
|
9539
|
-
type: FunctionConstructor;
|
|
9540
|
-
optional: boolean;
|
|
9541
|
-
};
|
|
9542
9528
|
onGridMoved: FunctionConstructor;
|
|
9543
9529
|
gridOverlayDimensions: StringConstructor;
|
|
9544
9530
|
slots: {
|
|
@@ -9557,7 +9543,6 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
9557
9543
|
onCellClicked: () => void;
|
|
9558
9544
|
onCellRightClicked: () => void;
|
|
9559
9545
|
onGridResized: () => void;
|
|
9560
|
-
onFigureDeleted: () => void;
|
|
9561
9546
|
};
|
|
9562
9547
|
private gridOverlay;
|
|
9563
9548
|
private gridOverlayRect;
|