@odoo/o-spreadsheet 18.3.27 → 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 +143 -107
- package/dist/o-spreadsheet.d.ts +9 -25
- package/dist/o-spreadsheet.esm.js +143 -107
- package/dist/o-spreadsheet.iife.js +143 -107
- package/dist/o-spreadsheet.iife.min.js +381 -392
- package/dist/o_spreadsheet.css +44 -0
- package/dist/o_spreadsheet.xml +33 -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
|
*/
|
|
@@ -6612,11 +6614,11 @@ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields:
|
|
|
6612
6614
|
interface PivotRegistryItem {
|
|
6613
6615
|
ui: PivotUIConstructor;
|
|
6614
6616
|
definition: PivotDefinitionConstructor;
|
|
6615
|
-
externalData: boolean;
|
|
6616
6617
|
dateGranularities: string[];
|
|
6617
6618
|
datetimeGranularities: string[];
|
|
6618
6619
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
6619
6620
|
isGroupable: (field: PivotField) => boolean;
|
|
6621
|
+
adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
|
|
6620
6622
|
}
|
|
6621
6623
|
|
|
6622
6624
|
declare class ClipboardHandler<T> {
|
|
@@ -8655,7 +8657,7 @@ interface AutofillRule {
|
|
|
8655
8657
|
*/
|
|
8656
8658
|
interface FigureContent {
|
|
8657
8659
|
Component: any;
|
|
8658
|
-
menuBuilder: (figureId: UID,
|
|
8660
|
+
menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
|
|
8659
8661
|
SidePanelComponent?: string;
|
|
8660
8662
|
keepRatio?: boolean;
|
|
8661
8663
|
minFigSize?: number;
|
|
@@ -9093,7 +9095,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
|
|
|
9093
9095
|
interface Props$L {
|
|
9094
9096
|
figureUI: FigureUI;
|
|
9095
9097
|
style: string;
|
|
9096
|
-
onFigureDeleted: () => void;
|
|
9097
9098
|
onMouseDown: (ev: MouseEvent) => void;
|
|
9098
9099
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
9099
9100
|
}
|
|
@@ -9105,10 +9106,6 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9105
9106
|
type: StringConstructor;
|
|
9106
9107
|
optional: boolean;
|
|
9107
9108
|
};
|
|
9108
|
-
onFigureDeleted: {
|
|
9109
|
-
type: FunctionConstructor;
|
|
9110
|
-
optional: boolean;
|
|
9111
|
-
};
|
|
9112
9109
|
onMouseDown: {
|
|
9113
9110
|
type: FunctionConstructor;
|
|
9114
9111
|
optional: boolean;
|
|
@@ -9122,7 +9119,6 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9122
9119
|
Menu: typeof Menu;
|
|
9123
9120
|
};
|
|
9124
9121
|
static defaultProps: {
|
|
9125
|
-
onFigureDeleted: () => void;
|
|
9126
9122
|
onMouseDown: () => void;
|
|
9127
9123
|
onClickAnchor: () => void;
|
|
9128
9124
|
};
|
|
@@ -9149,13 +9145,11 @@ declare class FigureComponent extends Component<Props$L, SpreadsheetChildEnv> {
|
|
|
9149
9145
|
|
|
9150
9146
|
interface Props$K {
|
|
9151
9147
|
figureUI: FigureUI;
|
|
9152
|
-
onFigureDeleted: () => void;
|
|
9153
9148
|
}
|
|
9154
9149
|
declare class ChartFigure extends Component<Props$K, SpreadsheetChildEnv> {
|
|
9155
9150
|
static template: string;
|
|
9156
9151
|
static props: {
|
|
9157
9152
|
figureUI: ObjectConstructor;
|
|
9158
|
-
onFigureDeleted: FunctionConstructor;
|
|
9159
9153
|
};
|
|
9160
9154
|
static components: {};
|
|
9161
9155
|
onDoubleClick(): void;
|
|
@@ -9341,7 +9335,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9341
9335
|
|
|
9342
9336
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
9343
9337
|
interface Props$F {
|
|
9344
|
-
onFigureDeleted: () => void;
|
|
9345
9338
|
}
|
|
9346
9339
|
interface Container {
|
|
9347
9340
|
type: ContainerType;
|
|
@@ -9422,9 +9415,7 @@ interface DndState {
|
|
|
9422
9415
|
*/
|
|
9423
9416
|
declare class FiguresContainer extends Component<Props$F, SpreadsheetChildEnv> {
|
|
9424
9417
|
static template: string;
|
|
9425
|
-
static props: {
|
|
9426
|
-
onFigureDeleted: FunctionConstructor;
|
|
9427
|
-
};
|
|
9418
|
+
static props: {};
|
|
9428
9419
|
static components: {
|
|
9429
9420
|
FigureComponent: typeof FigureComponent;
|
|
9430
9421
|
};
|
|
@@ -9482,16 +9473,14 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
9482
9473
|
}
|
|
9483
9474
|
|
|
9484
9475
|
interface Props$D {
|
|
9485
|
-
focusGrid: () => void;
|
|
9486
9476
|
}
|
|
9487
9477
|
declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv> {
|
|
9488
9478
|
static template: string;
|
|
9489
|
-
static props: {
|
|
9490
|
-
focusGrid: FunctionConstructor;
|
|
9491
|
-
};
|
|
9479
|
+
static props: {};
|
|
9492
9480
|
static components: {
|
|
9493
9481
|
ValidationMessages: typeof ValidationMessages;
|
|
9494
9482
|
};
|
|
9483
|
+
private DOMFocusableElementStore;
|
|
9495
9484
|
inputRef: {
|
|
9496
9485
|
el: HTMLInputElement | null;
|
|
9497
9486
|
};
|
|
@@ -9506,6 +9495,7 @@ declare class GridAddRowsFooter extends Component<Props$D, SpreadsheetChildEnv>
|
|
|
9506
9495
|
onInput(ev: InputEvent): void;
|
|
9507
9496
|
onConfirm(): void;
|
|
9508
9497
|
private onExternalClick;
|
|
9498
|
+
private focusDefaultElement;
|
|
9509
9499
|
}
|
|
9510
9500
|
|
|
9511
9501
|
interface Props$C {
|
|
@@ -9515,7 +9505,6 @@ interface Props$C {
|
|
|
9515
9505
|
onGridResized: (dimension: Rect) => void;
|
|
9516
9506
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
9517
9507
|
gridOverlayDimensions: string;
|
|
9518
|
-
onFigureDeleted: () => void;
|
|
9519
9508
|
}
|
|
9520
9509
|
declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
9521
9510
|
static template: string;
|
|
@@ -9536,10 +9525,6 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
9536
9525
|
type: FunctionConstructor;
|
|
9537
9526
|
optional: boolean;
|
|
9538
9527
|
};
|
|
9539
|
-
onFigureDeleted: {
|
|
9540
|
-
type: FunctionConstructor;
|
|
9541
|
-
optional: boolean;
|
|
9542
|
-
};
|
|
9543
9528
|
onGridMoved: FunctionConstructor;
|
|
9544
9529
|
gridOverlayDimensions: StringConstructor;
|
|
9545
9530
|
slots: {
|
|
@@ -9558,7 +9543,6 @@ declare class GridOverlay extends Component<Props$C, SpreadsheetChildEnv> {
|
|
|
9558
9543
|
onCellClicked: () => void;
|
|
9559
9544
|
onCellRightClicked: () => void;
|
|
9560
9545
|
onGridResized: () => void;
|
|
9561
|
-
onFigureDeleted: () => void;
|
|
9562
9546
|
};
|
|
9563
9547
|
private gridOverlay;
|
|
9564
9548
|
private gridOverlayRect;
|