@odoo/o-spreadsheet 19.3.4 → 19.3.5

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.
@@ -1,9 +1,9 @@
1
1
  <!--
2
2
  This file is generated by o-spreadsheet build tools. Do not edit it.
3
3
  @see https://github.com/odoo/o-spreadsheet
4
- @version 19.3.4
5
- @date 2026-05-15T07:07:35.455Z
6
- @hash 1dc7b42
4
+ @version 19.3.5
5
+ @date 2026-05-27T06:08:24.174Z
6
+ @hash 0cf1540
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -11,6 +11,10 @@ export declare function getFirstPivotFunction(compiledFormula: CompiledFormula,
11
11
  functionName: string;
12
12
  args: import("../..").AST[];
13
13
  };
14
+ export declare function getPivotFunctions(compiledFormula: CompiledFormula, getters: CoreGetters): {
15
+ functionName: string;
16
+ args: import("../..").AST[];
17
+ }[];
14
18
  /**
15
19
  * Parse a spreadsheet formula and detect the number of PIVOT functions that are
16
20
  * present in the given formula.
@@ -1,12 +1,17 @@
1
1
  import { CompiledFormula } from "../../formulas/compiler";
2
+ import { CellValue } from "../../types/cells";
2
3
  import { Command } from "../../types/commands";
3
- import { CellPosition, SortDirection, UID } from "../../types/misc";
4
+ import { CellPosition, Matrix, SortDirection, UID } from "../../types/misc";
4
5
  import { PivotCoreMeasure, PivotStyle, PivotTableCell } from "../../types/pivot";
5
6
  import { Pivot } from "../../types/pivot_runtime";
6
7
  import { CoreViewPlugin, CoreViewPluginConfig } from "../core_view_plugin";
7
8
  export declare const UNDO_REDO_PIVOT_COMMANDS: string[];
9
+ interface PivotEvaluatedArgs {
10
+ functionName: string;
11
+ args: (CellValue | Matrix<CellValue> | undefined)[];
12
+ }
8
13
  export declare class PivotUIPlugin extends CoreViewPlugin {
9
- static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula", "getAllPivotArrayFormulas", "getPivotStyleAtPosition"];
14
+ static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotCellSortDirection", "getPivotIdFromPosition", "getPivotIdsFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula", "getAllPivotArrayFormulas", "getPivotStyleAtPosition"];
10
15
  private pivots;
11
16
  private unusedPivotsInFormulas?;
12
17
  private custom;
@@ -14,15 +19,18 @@ export declare class PivotUIPlugin extends CoreViewPlugin {
14
19
  beforeHandle(cmd: Command): void;
15
20
  handle(cmd: Command): void;
16
21
  /**
17
- * Get the id of the pivot at the given position. Returns undefined if there
22
+ * Get the id of the first pivot in the formula at the given position. Returns undefined if there
18
23
  * is no pivot at this position
19
24
  */
20
- getPivotIdFromPosition(position: CellPosition): "" | UID | undefined;
25
+ getPivotIdFromPosition(position: CellPosition): UID | undefined;
26
+ /**
27
+ * Get all of the ids of the pivot present in the formula at the given position.
28
+ */
29
+ getPivotIdsFromPosition(position: CellPosition): UID[];
30
+ private getPivotIdsFromFormula;
21
31
  isSpillPivotFormula(position: CellPosition): boolean;
22
- getFirstPivotFunction(sheetId: UID, compiledFormula: CompiledFormula): {
23
- functionName: string;
24
- args: (import("../..").CellValue | import("../..").Matrix<import("../..").CellValue> | undefined)[];
25
- } | undefined;
32
+ private getPivotFunctions;
33
+ getFirstPivotFunction(sheetId: UID, formula: CompiledFormula): PivotEvaluatedArgs | undefined;
26
34
  /**
27
35
  * Returns the domain args of a pivot formula from a position.
28
36
  * For all those formulas:
@@ -60,3 +68,4 @@ export declare class PivotUIPlugin extends CoreViewPlugin {
60
68
  } | undefined;
61
69
  private isMainFunctionPivotSpreadFunction;
62
70
  }
71
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.3.4",
3
+ "version": "19.3.5",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",