@odoo/o-spreadsheet 19.1.2 → 19.1.3

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.
@@ -1353,14 +1353,18 @@ interface Pivot$1 {
1353
1353
  definition: PivotCoreDefinition;
1354
1354
  formulaId: string;
1355
1355
  }
1356
+ interface MeasureState {
1357
+ formula: RangeCompiledFormula;
1358
+ dependencies: Range[];
1359
+ }
1356
1360
  interface CoreState {
1357
1361
  nextFormulaId: number;
1358
1362
  pivots: Record<UID, Pivot$1 | undefined>;
1359
1363
  formulaIds: Record<UID, string | undefined>;
1360
- compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula | undefined>>;
1364
+ compiledMeasureFormulas: Record<UID, Record<string, MeasureState | undefined>>;
1361
1365
  }
1362
1366
  declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState {
1363
- static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot"];
1367
+ static getters: readonly ["getPivotCoreDefinition", "getPivotDisplayName", "getPivotId", "getPivotFormulaId", "getPivotIds", "getMeasureCompiledFormula", "getPivotName", "isExistingPivot", "getMeasureFullDependencies"];
1364
1368
  readonly nextFormulaId: number;
1365
1369
  readonly pivots: {
1366
1370
  [pivotId: UID]: Pivot$1 | undefined;
@@ -1368,7 +1372,7 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
1368
1372
  readonly formulaIds: {
1369
1373
  [formulaId: UID]: UID | undefined;
1370
1374
  };
1371
- readonly compiledMeasureFormulas: Record<UID, Record<string, RangeCompiledFormula>>;
1375
+ readonly compiledMeasureFormulas: Record<UID, Record<string, MeasureState>>;
1372
1376
  allowDispatch(cmd: CoreCommand): CommandResult | CommandResult[];
1373
1377
  handle(cmd: CoreCommand): void;
1374
1378
  adaptRanges(applyChange: ApplyRangeChange): void;
@@ -1387,9 +1391,11 @@ declare class PivotCorePlugin extends CorePlugin<CoreState> implements CoreState
1387
1391
  getPivotFormulaId(pivotId: UID): string;
1388
1392
  getPivotIds(): UID[];
1389
1393
  isExistingPivot(pivotId: UID): boolean;
1390
- getMeasureCompiledFormula(measure: PivotCoreMeasure): RangeCompiledFormula;
1394
+ getMeasureCompiledFormula(pivotId: UID, measure: PivotCoreMeasure): RangeCompiledFormula;
1395
+ getMeasureFullDependencies(pivotId: UID, measure: PivotCoreMeasure): Range[];
1391
1396
  private addPivot;
1392
1397
  private compileCalculatedMeasures;
1398
+ private computeMeasureFullDependencies;
1393
1399
  private insertPivot;
1394
1400
  private resizeSheet;
1395
1401
  private getPivotCore;