@odoo/o-spreadsheet 18.0.50 → 18.0.54

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.
@@ -3487,6 +3487,7 @@ interface RangeStringOptions {
3487
3487
  declare class RangeAdapter implements CommandHandler<CoreCommand> {
3488
3488
  private getters;
3489
3489
  private providers;
3490
+ private isAdaptingRanges;
3490
3491
  constructor(getters: CoreGetters);
3491
3492
  static getters: readonly ["extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
3492
3493
  allowDispatch(cmd: Command): CommandResult;
@@ -4254,14 +4255,18 @@ interface Pivot$1 {
4254
4255
  definition: PivotCoreDefinition;
4255
4256
  formulaId: string;
4256
4257
  }
4258
+ interface MeasureState {
4259
+ formula: RangeCompiledFormula;
4260
+ dependencies: Range[];
4261
+ }
4257
4262
  interface CoreState {
4258
4263
  nextFormulaId: number;
4259
4264
  pivots: Record<UID, Pivot$1 | undefined>;
4260
4265
  formulaIds: Record<UID, string | undefined>;
4261
- compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula | undefined>>;
4266
+ compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
4262
4267
  }
4263
4268
  declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
4264
- static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
4269
+ static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
4265
4270
  readonly nextFormulaId: number;
4266
4271
  readonly pivots: {
4267
4272
  [pivotId: UID]: Pivot$1 | undefined;
@@ -4269,7 +4274,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
4269
4274
  readonly formulaIds: {
4270
4275
  [formulaId: UID]: UID | undefined;
4271
4276
  };
4272
- readonly compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula>>;
4277
+ readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
4273
4278
  allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.NoChanges | CommandResult.PivotIdNotFound | CommandResult.EmptyName | CommandResult.InvalidDefinition;
4274
4279
  handle(cmd: CoreCommand): void;
4275
4280
  adaptRanges(applyChange: ApplyRangeChange): void;
@@ -4288,9 +4293,11 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
4288
4293
  getPivotFormulaId(pivotId: UID): string;
4289
4294
  getPivotIds(): UID[];
4290
4295
  isExistingPivot(pivotId: UID): boolean;
4291
- getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
4296
+ getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
4297
+ getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
4292
4298
  private addPivot;
4293
4299
  private compileCalculatedMeasures;
4300
+ private computeMeasureFullDependencies;
4294
4301
  private insertPivot;
4295
4302
  private resizeSheet;
4296
4303
  private getPivotCore;
@@ -4539,7 +4546,7 @@ declare class TablePlugin extends CorePlugin<TableState> implements TableState {
4539
4546
  }
4540
4547
 
4541
4548
  declare class EvaluationPlugin extends UIPlugin {
4542
- static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isEmpty"];
4549
+ static getters: readonly ["evaluateFormula", "evaluateFormulaResult", "evaluateCompiledFormula", "getCorrespondingFormulaCell", "getRangeFormattedValues", "getRangeValues", "getRangeFormats", "getEvaluatedCell", "getEvaluatedCells", "getEvaluatedCellsInZone", "getEvaluatedCellsPositions", "getSpreadZone", "getArrayFormulaSpreadingOn", "isArrayFormulaSpillBlocked", "isEmpty"];
4543
4550
  private shouldRebuildDependenciesGraph;
4544
4551
  private evaluator;
4545
4552
  private positionsToUpdate;
@@ -4573,6 +4580,7 @@ declare class EvaluationPlugin extends UIPlugin {
4573
4580
  ignoreSpillError: boolean;
4574
4581
  }): Zone | undefined;
4575
4582
  getArrayFormulaSpreadingOn(position: CellPosition): CellPosition | undefined;
4583
+ isArrayFormulaSpillBlocked(position: CellPosition): boolean;
4576
4584
  /**
4577
4585
  * Check if a zone only contains empty cells
4578
4586
  */
@@ -6193,6 +6201,7 @@ interface PivotRegistryItem {
6193
6201
  datetimeGranularities: string[];
6194
6202
  isMeasureCandidate: (field: PivotField) => boolean;
6195
6203
  isGroupable: (field: PivotField) => boolean;
6204
+ adaptRanges?: (getters: CoreGetters, definition: PivotCoreDefinition, applyChange: ApplyRangeChange) => PivotCoreDefinition;
6196
6205
  }
6197
6206
 
6198
6207
  declare class ClipboardHandler<T> {