@odoo/o-spreadsheet 19.1.0-alpha.7 → 19.1.0-alpha.8

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.
@@ -1073,10 +1073,6 @@ interface FileStore {
1073
1073
  * Upload a file to a server and returns its path.
1074
1074
  */
1075
1075
  upload(file: File): Promise<FilePath>;
1076
- /**
1077
- * Delete a file from the server
1078
- */
1079
- delete(filePath: FilePath): Promise<void>;
1080
1076
  /**
1081
1077
  * get File from the server
1082
1078
  */
@@ -1108,10 +1104,6 @@ declare class ImagePlugin extends CorePlugin<ImageState> implements ImageState {
1108
1104
  constructor(config: CorePluginConfig);
1109
1105
  allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidFigureId;
1110
1106
  handle(cmd: CoreCommand): void;
1111
- /**
1112
- * Delete unused images from the file store
1113
- */
1114
- garbageCollectExternalResources(): void;
1115
1107
  getImage(figureId: UID): Image$1;
1116
1108
  getImagePath(figureId: UID): string;
1117
1109
  getImageSize(figureId: UID): FigureSize;
@@ -1119,7 +1111,6 @@ declare class ImagePlugin extends CorePlugin<ImageState> implements ImageState {
1119
1111
  import(data: WorkbookData): void;
1120
1112
  export(data: WorkbookData): void;
1121
1113
  exportForExcel(data: ExcelWorkbookData): void;
1122
- private getAllImages;
1123
1114
  }
1124
1115
 
1125
1116
  type SheetMergeCellMap = Record<number, Record<number, number | undefined> | undefined>;
@@ -1238,6 +1229,7 @@ interface CommonPivotCoreDefinition {
1238
1229
  sortedColumn?: PivotSortedColumn;
1239
1230
  collapsedDomains?: PivotCollapsedDomains;
1240
1231
  customFields?: Record<string, PivotCustomGroupedField>;
1232
+ style?: PivotStyle;
1241
1233
  }
1242
1234
  interface PivotSortedColumn {
1243
1235
  order: SortDirection;
@@ -1350,10 +1342,12 @@ interface DimensionTreeNode {
1350
1342
  width: number;
1351
1343
  }
1352
1344
  type DimensionTree = DimensionTreeNode[];
1353
- interface PivotVisibilityOptions {
1354
- displayColumnHeaders: boolean;
1355
- displayTotals: boolean;
1356
- displayMeasuresRow: boolean;
1345
+ interface PivotStyle {
1346
+ numberOfRows?: number;
1347
+ numberOfColumns?: number;
1348
+ displayTotals?: boolean;
1349
+ displayColumnHeaders?: boolean;
1350
+ displayMeasuresRow?: boolean;
1357
1351
  }
1358
1352
 
1359
1353
  interface Pivot$1 {
@@ -2084,11 +2078,6 @@ declare class CorePlugin<State = any> extends BasePlugin<State, CoreCommand> imp
2084
2078
  * @param sheetName couple of old and new sheet names to adapt ranges pointing to that sheet
2085
2079
  */
2086
2080
  adaptRanges(applyChange: ApplyRangeChange, sheetId: UID, sheetName: AdaptSheetName): void;
2087
- /**
2088
- * Implement this method to clean unused external resources, such as images
2089
- * stored on a server which have been deleted.
2090
- */
2091
- garbageCollectExternalResources(): void;
2092
2081
  }
2093
2082
 
2094
2083
  type ZoneBorderData = {
@@ -2891,7 +2880,7 @@ declare class SpreadsheetPivotTable {
2891
2880
  */
2892
2881
  getNumberOfDataColumns(): number;
2893
2882
  private getSkippedRows;
2894
- getPivotCells(visibilityOptions?: PivotVisibilityOptions): PivotTableCell[][];
2883
+ getPivotCells(pivotStyle?: Required<PivotStyle>): PivotTableCell[][];
2895
2884
  getRowTree(): DimensionTree;
2896
2885
  getColTree(): DimensionTree;
2897
2886
  private isTotalRow;
@@ -4470,7 +4459,6 @@ declare class Model extends EventBus<any> implements CommandDispatcher {
4470
4459
  * (e.g. open a document with several sheet and click on download before visiting each sheet)
4471
4460
  */
4472
4461
  exportXLSX(): Promise<XLSXExport>;
4473
- garbageCollectExternalResources(): void;
4474
4462
  }
4475
4463
 
4476
4464
  type ClipboardReadResult = {