@odoo/o-spreadsheet 18.4.19 → 18.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 +129 -112
- package/dist/o-spreadsheet.d.ts +9 -24
- package/dist/o-spreadsheet.esm.js +129 -112
- package/dist/o-spreadsheet.iife.js +129 -112
- package/dist/o-spreadsheet.iife.min.js +170 -181
- package/dist/o_spreadsheet.css +192 -0
- package/dist/o_spreadsheet.xml +32 -39
- package/package.json +3 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4371,6 +4371,7 @@ interface SpreadsheetChildEnv extends NotificationStoreMethods {
|
|
|
4371
4371
|
declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
4372
4372
|
private getters;
|
|
4373
4373
|
private providers;
|
|
4374
|
+
private isAdaptingRanges;
|
|
4374
4375
|
constructor(getters: CoreGetters);
|
|
4375
4376
|
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
4376
4377
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
@@ -5462,7 +5463,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
5462
5463
|
}
|
|
5463
5464
|
|
|
5464
5465
|
declare class EvaluationPlugin extends CoreViewPlugin {
|
|
5465
|
-
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
5466
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
|
|
5466
5467
|
private shouldRebuildDependenciesGraph;
|
|
5467
5468
|
private evaluator;
|
|
5468
5469
|
private positionsToUpdate;
|
|
@@ -5496,6 +5497,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
|
|
|
5496
5497
|
ignoreSpillError: boolean;
|
|
5497
5498
|
}): Zone | undefined;
|
|
5498
5499
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
5500
|
+
isArrayFormulaSpillBlocked(position: CellPosition): boolean;
|
|
5499
5501
|
/**
|
|
5500
5502
|
* Check if a zone only contains empty cells
|
|
5501
5503
|
*/
|
|
@@ -6770,6 +6772,7 @@ interface PivotRegistryItem {
|
|
|
6770
6772
|
datetimeGranularities: string[];
|
|
6771
6773
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
6772
6774
|
isGroupable: (field: PivotField) => boolean;
|
|
6775
|
+
adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
|
|
6773
6776
|
}
|
|
6774
6777
|
|
|
6775
6778
|
declare class ClipboardHandler<T> {
|
|
@@ -9123,7 +9126,7 @@ interface ChartSidePanel {
|
|
|
9123
9126
|
*/
|
|
9124
9127
|
interface FigureContent {
|
|
9125
9128
|
Component: any;
|
|
9126
|
-
menuBuilder: (figureId: UID,
|
|
9129
|
+
menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
|
|
9127
9130
|
SidePanelComponent?: string;
|
|
9128
9131
|
keepRatio?: boolean;
|
|
9129
9132
|
minFigSize?: number;
|
|
@@ -9468,7 +9471,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
|
|
|
9468
9471
|
interface Props$M {
|
|
9469
9472
|
figureUI: FigureUI;
|
|
9470
9473
|
style: string;
|
|
9471
|
-
onFigureDeleted: () => void;
|
|
9472
9474
|
onMouseDown: (ev: MouseEvent) => void;
|
|
9473
9475
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
9474
9476
|
}
|
|
@@ -9480,10 +9482,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
9480
9482
|
type: StringConstructor;
|
|
9481
9483
|
optional: boolean;
|
|
9482
9484
|
};
|
|
9483
|
-
onFigureDeleted: {
|
|
9484
|
-
type: FunctionConstructor;
|
|
9485
|
-
optional: boolean;
|
|
9486
|
-
};
|
|
9487
9485
|
onMouseDown: {
|
|
9488
9486
|
type: FunctionConstructor;
|
|
9489
9487
|
optional: boolean;
|
|
@@ -9497,7 +9495,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
9497
9495
|
MenuPopover: typeof MenuPopover;
|
|
9498
9496
|
};
|
|
9499
9497
|
static defaultProps: {
|
|
9500
|
-
onFigureDeleted: () => void;
|
|
9501
9498
|
onMouseDown: () => void;
|
|
9502
9499
|
onClickAnchor: () => void;
|
|
9503
9500
|
};
|
|
@@ -9556,13 +9553,11 @@ declare class ChartDashboardMenu extends Component<Props$L, SpreadsheetChildEnv>
|
|
|
9556
9553
|
|
|
9557
9554
|
interface Props$K {
|
|
9558
9555
|
figureUI: FigureUI;
|
|
9559
|
-
onFigureDeleted: () => void;
|
|
9560
9556
|
}
|
|
9561
9557
|
declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
|
|
9562
9558
|
static template: string;
|
|
9563
9559
|
static props: {
|
|
9564
9560
|
figureUI: ObjectConstructor;
|
|
9565
|
-
onFigureDeleted: FunctionConstructor;
|
|
9566
9561
|
};
|
|
9567
9562
|
static components: {
|
|
9568
9563
|
ChartDashboardMenu: typeof ChartDashboardMenu;
|
|
@@ -9688,7 +9683,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9688
9683
|
|
|
9689
9684
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
9690
9685
|
interface Props$H {
|
|
9691
|
-
onFigureDeleted: () => void;
|
|
9692
9686
|
}
|
|
9693
9687
|
interface Container {
|
|
9694
9688
|
type: ContainerType;
|
|
@@ -9769,9 +9763,7 @@ interface DndState {
|
|
|
9769
9763
|
*/
|
|
9770
9764
|
declare class FiguresContainer extends Component<Props$H, SpreadsheetChildEnv> {
|
|
9771
9765
|
static template: string;
|
|
9772
|
-
static props: {
|
|
9773
|
-
onFigureDeleted: FunctionConstructor;
|
|
9774
|
-
};
|
|
9766
|
+
static props: {};
|
|
9775
9767
|
static components: {
|
|
9776
9768
|
FigureComponent: typeof FigureComponent;
|
|
9777
9769
|
};
|
|
@@ -9804,16 +9796,14 @@ declare class FiguresContainer extends Component<Props$H, SpreadsheetChildEnv> {
|
|
|
9804
9796
|
}
|
|
9805
9797
|
|
|
9806
9798
|
interface Props$G {
|
|
9807
|
-
focusGrid: () => void;
|
|
9808
9799
|
}
|
|
9809
9800
|
declare class GridAddRowsFooter extends Component<Props$G, SpreadsheetChildEnv> {
|
|
9810
9801
|
static template: string;
|
|
9811
|
-
static props: {
|
|
9812
|
-
focusGrid: FunctionConstructor;
|
|
9813
|
-
};
|
|
9802
|
+
static props: {};
|
|
9814
9803
|
static components: {
|
|
9815
9804
|
ValidationMessages: typeof ValidationMessages;
|
|
9816
9805
|
};
|
|
9806
|
+
private DOMFocusableElementStore;
|
|
9817
9807
|
inputRef: {
|
|
9818
9808
|
el: HTMLInputElement | null;
|
|
9819
9809
|
};
|
|
@@ -9828,6 +9818,7 @@ declare class GridAddRowsFooter extends Component<Props$G, SpreadsheetChildEnv>
|
|
|
9828
9818
|
onInput(ev: InputEvent): void;
|
|
9829
9819
|
onConfirm(): void;
|
|
9830
9820
|
private onExternalClick;
|
|
9821
|
+
private focusDefaultElement;
|
|
9831
9822
|
}
|
|
9832
9823
|
|
|
9833
9824
|
interface Props$F {
|
|
@@ -9837,7 +9828,6 @@ interface Props$F {
|
|
|
9837
9828
|
onGridResized: (dimension: Rect) => void;
|
|
9838
9829
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
9839
9830
|
gridOverlayDimensions: string;
|
|
9840
|
-
onFigureDeleted: () => void;
|
|
9841
9831
|
getGridSize: () => {
|
|
9842
9832
|
width: number;
|
|
9843
9833
|
height: number;
|
|
@@ -9862,10 +9852,6 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
9862
9852
|
type: FunctionConstructor;
|
|
9863
9853
|
optional: boolean;
|
|
9864
9854
|
};
|
|
9865
|
-
onFigureDeleted: {
|
|
9866
|
-
type: FunctionConstructor;
|
|
9867
|
-
optional: boolean;
|
|
9868
|
-
};
|
|
9869
9855
|
onGridMoved: FunctionConstructor;
|
|
9870
9856
|
gridOverlayDimensions: StringConstructor;
|
|
9871
9857
|
slots: {
|
|
@@ -9883,7 +9869,6 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
9883
9869
|
onCellClicked: () => void;
|
|
9884
9870
|
onCellRightClicked: () => void;
|
|
9885
9871
|
onGridResized: () => void;
|
|
9886
|
-
onFigureDeleted: () => void;
|
|
9887
9872
|
};
|
|
9888
9873
|
private gridOverlay;
|
|
9889
9874
|
private cellPopovers;
|