@odoo/o-spreadsheet 18.4.19 → 18.4.23
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 +158 -145
- package/dist/o-spreadsheet.d.ts +14 -32
- package/dist/o-spreadsheet.esm.js +158 -145
- package/dist/o-spreadsheet.iife.js +158 -145
- package/dist/o-spreadsheet.iife.min.js +171 -182
- package/dist/o_spreadsheet.css +192 -0
- package/dist/o_spreadsheet.xml +33 -42
- 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,20 +9818,16 @@ 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 {
|
|
9834
9825
|
onCellDoubleClicked: (col: HeaderIndex, row: HeaderIndex) => void;
|
|
9835
9826
|
onCellClicked: (col: HeaderIndex, row: HeaderIndex, modifiers: GridClickModifiers, ev: PointerEvent | MouseEvent) => void;
|
|
9836
9827
|
onCellRightClicked: (col: HeaderIndex, row: HeaderIndex, coordinates: DOMCoordinates) => void;
|
|
9837
|
-
onGridResized: (
|
|
9828
|
+
onGridResized: () => void;
|
|
9838
9829
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
9839
9830
|
gridOverlayDimensions: string;
|
|
9840
|
-
onFigureDeleted: () => void;
|
|
9841
|
-
getGridSize: () => {
|
|
9842
|
-
width: number;
|
|
9843
|
-
height: number;
|
|
9844
|
-
};
|
|
9845
9831
|
}
|
|
9846
9832
|
declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
|
|
9847
9833
|
static template: string;
|
|
@@ -9862,17 +9848,12 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
9862
9848
|
type: FunctionConstructor;
|
|
9863
9849
|
optional: boolean;
|
|
9864
9850
|
};
|
|
9865
|
-
onFigureDeleted: {
|
|
9866
|
-
type: FunctionConstructor;
|
|
9867
|
-
optional: boolean;
|
|
9868
|
-
};
|
|
9869
9851
|
onGridMoved: FunctionConstructor;
|
|
9870
9852
|
gridOverlayDimensions: StringConstructor;
|
|
9871
9853
|
slots: {
|
|
9872
9854
|
type: ObjectConstructor;
|
|
9873
9855
|
optional: boolean;
|
|
9874
9856
|
};
|
|
9875
|
-
getGridSize: FunctionConstructor;
|
|
9876
9857
|
};
|
|
9877
9858
|
static components: {
|
|
9878
9859
|
FiguresContainer: typeof FiguresContainer;
|
|
@@ -9883,7 +9864,6 @@ declare class GridOverlay extends Component<Props$F, SpreadsheetChildEnv> {
|
|
|
9883
9864
|
onCellClicked: () => void;
|
|
9884
9865
|
onCellRightClicked: () => void;
|
|
9885
9866
|
onGridResized: () => void;
|
|
9886
|
-
onFigureDeleted: () => void;
|
|
9887
9867
|
};
|
|
9888
9868
|
private gridOverlay;
|
|
9889
9869
|
private cellPopovers;
|
|
@@ -10413,7 +10393,7 @@ declare class Grid extends Component<Props$w, SpreadsheetChildEnv> {
|
|
|
10413
10393
|
top: number;
|
|
10414
10394
|
};
|
|
10415
10395
|
get isAutofillVisible(): boolean;
|
|
10416
|
-
onGridResized(
|
|
10396
|
+
onGridResized(): void;
|
|
10417
10397
|
private moveCanvas;
|
|
10418
10398
|
private processSpaceKey;
|
|
10419
10399
|
getClientPositionKey(client: Client): string;
|
|
@@ -11993,6 +11973,7 @@ declare class ClickableCellsStore extends SpreadsheetStore {
|
|
|
11993
11973
|
}
|
|
11994
11974
|
|
|
11995
11975
|
interface Props$4 {
|
|
11976
|
+
getGridSize: () => DOMDimension;
|
|
11996
11977
|
}
|
|
11997
11978
|
declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEnv> {
|
|
11998
11979
|
static template: string;
|
|
@@ -12025,9 +12006,10 @@ declare class SpreadsheetDashboard extends Component<Props$4, SpreadsheetChildEn
|
|
|
12025
12006
|
getClickableCells(): ClickableCell[];
|
|
12026
12007
|
selectClickableCell(ev: MouseEvent, clickableCell: ClickableCell): void;
|
|
12027
12008
|
onClosePopover(): void;
|
|
12028
|
-
onGridResized(
|
|
12009
|
+
onGridResized(): void;
|
|
12029
12010
|
private moveCanvas;
|
|
12030
12011
|
private getGridRect;
|
|
12012
|
+
private getMaxSheetWidth;
|
|
12031
12013
|
}
|
|
12032
12014
|
|
|
12033
12015
|
interface Props$3 {
|