@odoo/o-spreadsheet 19.0.12 → 19.0.15
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 +226 -218
- package/dist/o-spreadsheet.d.ts +9 -24
- package/dist/o-spreadsheet.esm.js +226 -218
- package/dist/o-spreadsheet.iife.js +226 -218
- package/dist/o-spreadsheet.iife.min.js +401 -412
- package/dist/o_spreadsheet.css +390 -0
- package/dist/o_spreadsheet.xml +33 -41
- package/package.json +4 -3
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -2348,6 +2348,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
|
|
|
2348
2348
|
declare class RangeAdapter$1 implements CommandHandler<CoreCommand> {
|
|
2349
2349
|
private getters;
|
|
2350
2350
|
private providers;
|
|
2351
|
+
private isAdaptingRanges;
|
|
2351
2352
|
constructor(getters: CoreGetters);
|
|
2352
2353
|
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
2353
2354
|
allowDispatch(cmd: CoreCommand): CommandResult;
|
|
@@ -2735,7 +2736,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
2735
2736
|
}
|
|
2736
2737
|
|
|
2737
2738
|
declare class EvaluationPlugin extends CoreViewPlugin {
|
|
2738
|
-
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
2739
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
|
|
2739
2740
|
private shouldRebuildDependenciesGraph;
|
|
2740
2741
|
private evaluator;
|
|
2741
2742
|
private positionsToUpdate;
|
|
@@ -2769,6 +2770,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
|
|
|
2769
2770
|
ignoreSpillError: boolean;
|
|
2770
2771
|
}): Zone | undefined;
|
|
2771
2772
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
2773
|
+
isArrayFormulaSpillBlocked(position: CellPosition): boolean;
|
|
2772
2774
|
/**
|
|
2773
2775
|
* Check if a zone only contains empty cells
|
|
2774
2776
|
*/
|
|
@@ -6888,6 +6890,7 @@ interface PivotRegistryItem {
|
|
|
6888
6890
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
6889
6891
|
isGroupable: (field: PivotField) => boolean;
|
|
6890
6892
|
canHaveCustomGroup: (field: PivotField) => boolean;
|
|
6893
|
+
adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
|
|
6891
6894
|
}
|
|
6892
6895
|
|
|
6893
6896
|
declare class ClipboardHandler<T> {
|
|
@@ -9272,7 +9275,7 @@ interface ChartSidePanel {
|
|
|
9272
9275
|
*/
|
|
9273
9276
|
interface FigureContent {
|
|
9274
9277
|
Component: any;
|
|
9275
|
-
menuBuilder: (figureId: UID,
|
|
9278
|
+
menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
|
|
9276
9279
|
SidePanelComponent?: string;
|
|
9277
9280
|
keepRatio?: boolean;
|
|
9278
9281
|
minFigSize?: number;
|
|
@@ -9640,7 +9643,6 @@ interface Props$U {
|
|
|
9640
9643
|
figureUI: FigureUI;
|
|
9641
9644
|
style: string;
|
|
9642
9645
|
class: string;
|
|
9643
|
-
onFigureDeleted: () => void;
|
|
9644
9646
|
onMouseDown: (ev: MouseEvent) => void;
|
|
9645
9647
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
9646
9648
|
}
|
|
@@ -9656,10 +9658,6 @@ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
|
|
|
9656
9658
|
type: StringConstructor;
|
|
9657
9659
|
optional: boolean;
|
|
9658
9660
|
};
|
|
9659
|
-
onFigureDeleted: {
|
|
9660
|
-
type: FunctionConstructor;
|
|
9661
|
-
optional: boolean;
|
|
9662
|
-
};
|
|
9663
9661
|
onMouseDown: {
|
|
9664
9662
|
type: FunctionConstructor;
|
|
9665
9663
|
optional: boolean;
|
|
@@ -9673,7 +9671,6 @@ declare class FigureComponent extends Component<Props$U, SpreadsheetChildEnv> {
|
|
|
9673
9671
|
MenuPopover: typeof MenuPopover;
|
|
9674
9672
|
};
|
|
9675
9673
|
static defaultProps: {
|
|
9676
|
-
onFigureDeleted: () => void;
|
|
9677
9674
|
onMouseDown: () => void;
|
|
9678
9675
|
onClickAnchor: () => void;
|
|
9679
9676
|
};
|
|
@@ -9737,7 +9734,6 @@ declare class ChartDashboardMenu extends Component<Props$T, SpreadsheetChildEnv>
|
|
|
9737
9734
|
|
|
9738
9735
|
interface Props$S {
|
|
9739
9736
|
figureUI: FigureUI;
|
|
9740
|
-
onFigureDeleted: () => void;
|
|
9741
9737
|
editFigureStyle?: (properties: CSSProperties) => void;
|
|
9742
9738
|
isFullScreen?: boolean;
|
|
9743
9739
|
openContextMenu?: (anchorRect: Rect, onClose?: () => void) => void;
|
|
@@ -9746,7 +9742,6 @@ declare class ChartFigure extends Component<Props$S, SpreadsheetChildEnv> {
|
|
|
9746
9742
|
static template: string;
|
|
9747
9743
|
static props: {
|
|
9748
9744
|
figureUI: ObjectConstructor;
|
|
9749
|
-
onFigureDeleted: FunctionConstructor;
|
|
9750
9745
|
editFigureStyle: {
|
|
9751
9746
|
type: FunctionConstructor;
|
|
9752
9747
|
optional: boolean;
|
|
@@ -9885,7 +9880,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9885
9880
|
|
|
9886
9881
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
9887
9882
|
interface Props$P {
|
|
9888
|
-
onFigureDeleted: () => void;
|
|
9889
9883
|
}
|
|
9890
9884
|
interface Container {
|
|
9891
9885
|
type: ContainerType;
|
|
@@ -9967,9 +9961,7 @@ interface DndState {
|
|
|
9967
9961
|
*/
|
|
9968
9962
|
declare class FiguresContainer extends Component<Props$P, SpreadsheetChildEnv> {
|
|
9969
9963
|
static template: string;
|
|
9970
|
-
static props: {
|
|
9971
|
-
onFigureDeleted: FunctionConstructor;
|
|
9972
|
-
};
|
|
9964
|
+
static props: {};
|
|
9973
9965
|
static components: {
|
|
9974
9966
|
FigureComponent: typeof FigureComponent;
|
|
9975
9967
|
};
|
|
@@ -10004,16 +9996,14 @@ declare class FiguresContainer extends Component<Props$P, SpreadsheetChildEnv> {
|
|
|
10004
9996
|
}
|
|
10005
9997
|
|
|
10006
9998
|
interface Props$O {
|
|
10007
|
-
focusGrid: () => void;
|
|
10008
9999
|
}
|
|
10009
10000
|
declare class GridAddRowsFooter extends Component<Props$O, SpreadsheetChildEnv> {
|
|
10010
10001
|
static template: string;
|
|
10011
|
-
static props: {
|
|
10012
|
-
focusGrid: FunctionConstructor;
|
|
10013
|
-
};
|
|
10002
|
+
static props: {};
|
|
10014
10003
|
static components: {
|
|
10015
10004
|
ValidationMessages: typeof ValidationMessages;
|
|
10016
10005
|
};
|
|
10006
|
+
private DOMFocusableElementStore;
|
|
10017
10007
|
inputRef: {
|
|
10018
10008
|
el: HTMLInputElement | null;
|
|
10019
10009
|
};
|
|
@@ -10028,6 +10018,7 @@ declare class GridAddRowsFooter extends Component<Props$O, SpreadsheetChildEnv>
|
|
|
10028
10018
|
onInput(ev: InputEvent): void;
|
|
10029
10019
|
onConfirm(): void;
|
|
10030
10020
|
private onExternalClick;
|
|
10021
|
+
private focusDefaultElement;
|
|
10031
10022
|
}
|
|
10032
10023
|
|
|
10033
10024
|
interface Props$N {
|
|
@@ -10037,7 +10028,6 @@ interface Props$N {
|
|
|
10037
10028
|
onGridResized: (dimension: Rect) => void;
|
|
10038
10029
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
10039
10030
|
gridOverlayDimensions: string;
|
|
10040
|
-
onFigureDeleted: () => void;
|
|
10041
10031
|
getGridSize: () => {
|
|
10042
10032
|
width: number;
|
|
10043
10033
|
height: number;
|
|
@@ -10062,10 +10052,6 @@ declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
|
|
|
10062
10052
|
type: FunctionConstructor;
|
|
10063
10053
|
optional: boolean;
|
|
10064
10054
|
};
|
|
10065
|
-
onFigureDeleted: {
|
|
10066
|
-
type: FunctionConstructor;
|
|
10067
|
-
optional: boolean;
|
|
10068
|
-
};
|
|
10069
10055
|
onGridMoved: FunctionConstructor;
|
|
10070
10056
|
gridOverlayDimensions: StringConstructor;
|
|
10071
10057
|
slots: {
|
|
@@ -10083,7 +10069,6 @@ declare class GridOverlay extends Component<Props$N, SpreadsheetChildEnv> {
|
|
|
10083
10069
|
onCellClicked: () => void;
|
|
10084
10070
|
onCellRightClicked: () => void;
|
|
10085
10071
|
onGridResized: () => void;
|
|
10086
|
-
onFigureDeleted: () => void;
|
|
10087
10072
|
};
|
|
10088
10073
|
private gridOverlay;
|
|
10089
10074
|
private cellPopovers;
|