@odoo/o-spreadsheet 18.2.35 → 18.2.39
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 +141 -114
- package/dist/o-spreadsheet.d.ts +9 -25
- package/dist/o-spreadsheet.esm.js +141 -114
- package/dist/o-spreadsheet.iife.js +141 -114
- package/dist/o-spreadsheet.iife.min.js +387 -398
- package/dist/o_spreadsheet.css +15 -0
- package/dist/o_spreadsheet.xml +33 -39
- package/package.json +3 -2
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4015,6 +4015,7 @@ interface RangeStringOptions {
|
|
|
4015
4015
|
declare class RangeAdapter implements CommandHandler<CoreCommand> {
|
|
4016
4016
|
private getters;
|
|
4017
4017
|
private providers;
|
|
4018
|
+
private isAdaptingRanges;
|
|
4018
4019
|
constructor(getters: CoreGetters);
|
|
4019
4020
|
static getters: readonly ["adaptFormulaStringDependencies", "copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
|
|
4020
4021
|
allowDispatch(cmd: Command): CommandResult;
|
|
@@ -5106,7 +5107,7 @@ declare class CoreViewPlugin<State = any> extends BasePlugin<State, Command> {
|
|
|
5106
5107
|
}
|
|
5107
5108
|
|
|
5108
5109
|
declare class EvaluationPlugin extends CoreViewPlugin {
|
|
5109
|
-
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
|
|
5110
|
+
static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
|
|
5110
5111
|
private shouldRebuildDependenciesGraph;
|
|
5111
5112
|
private evaluator;
|
|
5112
5113
|
private positionsToUpdate;
|
|
@@ -5140,6 +5141,7 @@ declare class EvaluationPlugin extends CoreViewPlugin {
|
|
|
5140
5141
|
ignoreSpillError: boolean;
|
|
5141
5142
|
}): Zone | undefined;
|
|
5142
5143
|
getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
|
|
5144
|
+
isArrayFormulaSpillBlocked(position: CellPosition): boolean;
|
|
5143
5145
|
/**
|
|
5144
5146
|
* Check if a zone only contains empty cells
|
|
5145
5147
|
*/
|
|
@@ -6363,11 +6365,11 @@ type PivotDefinitionConstructor = new (definition: PivotCoreDefinition, fields:
|
|
|
6363
6365
|
interface PivotRegistryItem {
|
|
6364
6366
|
ui: PivotUIConstructor;
|
|
6365
6367
|
definition: PivotDefinitionConstructor;
|
|
6366
|
-
externalData: boolean;
|
|
6367
6368
|
dateGranularities: string[];
|
|
6368
6369
|
datetimeGranularities: string[];
|
|
6369
6370
|
isMeasureCandidate: (field: PivotField) => boolean;
|
|
6370
6371
|
isGroupable: (field: PivotField) => boolean;
|
|
6372
|
+
adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
|
|
6371
6373
|
}
|
|
6372
6374
|
|
|
6373
6375
|
declare class ClipboardHandler<T> {
|
|
@@ -8412,7 +8414,7 @@ interface AutofillRule {
|
|
|
8412
8414
|
*/
|
|
8413
8415
|
interface FigureContent {
|
|
8414
8416
|
Component: any;
|
|
8415
|
-
menuBuilder: (figureId: UID,
|
|
8417
|
+
menuBuilder: (figureId: UID, env: SpreadsheetChildEnv) => Action[];
|
|
8416
8418
|
SidePanelComponent?: string;
|
|
8417
8419
|
keepRatio?: boolean;
|
|
8418
8420
|
minFigSize?: number;
|
|
@@ -8844,7 +8846,6 @@ type ResizeAnchor = "top left" | "top" | "top right" | "right" | "bottom right"
|
|
|
8844
8846
|
interface Props$M {
|
|
8845
8847
|
figure: Figure;
|
|
8846
8848
|
style: string;
|
|
8847
|
-
onFigureDeleted: () => void;
|
|
8848
8849
|
onMouseDown: (ev: MouseEvent) => void;
|
|
8849
8850
|
onClickAnchor(dirX: ResizeDirection, dirY: ResizeDirection, ev: MouseEvent): void;
|
|
8850
8851
|
}
|
|
@@ -8856,10 +8857,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
8856
8857
|
type: StringConstructor;
|
|
8857
8858
|
optional: boolean;
|
|
8858
8859
|
};
|
|
8859
|
-
onFigureDeleted: {
|
|
8860
|
-
type: FunctionConstructor;
|
|
8861
|
-
optional: boolean;
|
|
8862
|
-
};
|
|
8863
8860
|
onMouseDown: {
|
|
8864
8861
|
type: FunctionConstructor;
|
|
8865
8862
|
optional: boolean;
|
|
@@ -8873,7 +8870,6 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
8873
8870
|
Menu: typeof Menu;
|
|
8874
8871
|
};
|
|
8875
8872
|
static defaultProps: {
|
|
8876
|
-
onFigureDeleted: () => void;
|
|
8877
8873
|
onMouseDown: () => void;
|
|
8878
8874
|
onClickAnchor: () => void;
|
|
8879
8875
|
};
|
|
@@ -8899,13 +8895,11 @@ declare class FigureComponent extends Component<Props$M, SpreadsheetChildEnv> {
|
|
|
8899
8895
|
|
|
8900
8896
|
interface Props$L {
|
|
8901
8897
|
figure: Figure;
|
|
8902
|
-
onFigureDeleted: () => void;
|
|
8903
8898
|
}
|
|
8904
8899
|
declare class ChartFigure extends Component<Props$L, SpreadsheetChildEnv> {
|
|
8905
8900
|
static template: string;
|
|
8906
8901
|
static props: {
|
|
8907
8902
|
figure: ObjectConstructor;
|
|
8908
|
-
onFigureDeleted: FunctionConstructor;
|
|
8909
8903
|
};
|
|
8910
8904
|
static components: {};
|
|
8911
8905
|
onDoubleClick(): void;
|
|
@@ -9076,7 +9070,6 @@ interface SnapLine<T extends HFigureAxisType | VFigureAxisType> {
|
|
|
9076
9070
|
|
|
9077
9071
|
type ContainerType = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "dnd";
|
|
9078
9072
|
interface Props$G {
|
|
9079
|
-
onFigureDeleted: () => void;
|
|
9080
9073
|
}
|
|
9081
9074
|
interface Container {
|
|
9082
9075
|
type: ContainerType;
|
|
@@ -9157,9 +9150,7 @@ interface DndState {
|
|
|
9157
9150
|
*/
|
|
9158
9151
|
declare class FiguresContainer extends Component<Props$G, SpreadsheetChildEnv> {
|
|
9159
9152
|
static template: string;
|
|
9160
|
-
static props: {
|
|
9161
|
-
onFigureDeleted: FunctionConstructor;
|
|
9162
|
-
};
|
|
9153
|
+
static props: {};
|
|
9163
9154
|
static components: {
|
|
9164
9155
|
FigureComponent: typeof FigureComponent;
|
|
9165
9156
|
};
|
|
@@ -9216,16 +9207,14 @@ declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
|
|
|
9216
9207
|
}
|
|
9217
9208
|
|
|
9218
9209
|
interface Props$E {
|
|
9219
|
-
focusGrid: () => void;
|
|
9220
9210
|
}
|
|
9221
9211
|
declare class GridAddRowsFooter extends Component<Props$E, SpreadsheetChildEnv> {
|
|
9222
9212
|
static template: string;
|
|
9223
|
-
static props: {
|
|
9224
|
-
focusGrid: FunctionConstructor;
|
|
9225
|
-
};
|
|
9213
|
+
static props: {};
|
|
9226
9214
|
static components: {
|
|
9227
9215
|
ValidationMessages: typeof ValidationMessages;
|
|
9228
9216
|
};
|
|
9217
|
+
private DOMFocusableElementStore;
|
|
9229
9218
|
inputRef: {
|
|
9230
9219
|
el: HTMLInputElement | null;
|
|
9231
9220
|
};
|
|
@@ -9240,6 +9229,7 @@ declare class GridAddRowsFooter extends Component<Props$E, SpreadsheetChildEnv>
|
|
|
9240
9229
|
onInput(ev: InputEvent): void;
|
|
9241
9230
|
onConfirm(): void;
|
|
9242
9231
|
private onExternalClick;
|
|
9232
|
+
private focusDefaultElement;
|
|
9243
9233
|
}
|
|
9244
9234
|
|
|
9245
9235
|
interface Props$D {
|
|
@@ -9250,7 +9240,6 @@ interface Props$D {
|
|
|
9250
9240
|
onGridResized: (dimension: Rect) => void;
|
|
9251
9241
|
onGridMoved: (deltaX: Pixel, deltaY: Pixel) => void;
|
|
9252
9242
|
gridOverlayDimensions: string;
|
|
9253
|
-
onFigureDeleted: () => void;
|
|
9254
9243
|
}
|
|
9255
9244
|
declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
|
|
9256
9245
|
static template: string;
|
|
@@ -9275,10 +9264,6 @@ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
9275
9264
|
type: FunctionConstructor;
|
|
9276
9265
|
optional: boolean;
|
|
9277
9266
|
};
|
|
9278
|
-
onFigureDeleted: {
|
|
9279
|
-
type: FunctionConstructor;
|
|
9280
|
-
optional: boolean;
|
|
9281
|
-
};
|
|
9282
9267
|
onGridMoved: FunctionConstructor;
|
|
9283
9268
|
gridOverlayDimensions: StringConstructor;
|
|
9284
9269
|
};
|
|
@@ -9294,7 +9279,6 @@ declare class GridOverlay extends Component<Props$D, SpreadsheetChildEnv> {
|
|
|
9294
9279
|
onCellClicked: () => void;
|
|
9295
9280
|
onCellRightClicked: () => void;
|
|
9296
9281
|
onGridResized: () => void;
|
|
9297
|
-
onFigureDeleted: () => void;
|
|
9298
9282
|
};
|
|
9299
9283
|
private gridOverlay;
|
|
9300
9284
|
private gridOverlayRect;
|