@odoo/o-spreadsheet 18.0.67 → 18.0.69

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 18.0.67
5
- @date 2026-05-11T13:43:31.672Z
6
- @hash 06413da
4
+ @version 18.0.69
5
+ @date 2026-05-27T05:57:09.398Z
6
+ @hash 50b85ba
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -54,6 +54,10 @@ export declare function getFirstPivotFunction(tokens: Token[]): {
54
54
  functionName: string;
55
55
  args: import("../..").AST[];
56
56
  };
57
+ export declare function getPivotFunctions(tokens: Token[]): {
58
+ functionName: string;
59
+ args: import("../..").AST[];
60
+ }[];
57
61
  /**
58
62
  * Parse a spreadsheet formula and detect the number of PIVOT functions that are
59
63
  * present in the given formula.
@@ -1,10 +1,14 @@
1
1
  import { Token } from "../../formulas";
2
- import { CellPosition, Command, PivotCoreMeasure, PivotTableCell, UID } from "../../types";
2
+ import { CellPosition, CellValue, Command, Matrix, PivotCoreMeasure, PivotTableCell, UID } from "../../types";
3
3
  import { Pivot } from "../../types/pivot_runtime";
4
4
  import { UIPlugin, UIPluginConfig } from "../ui_plugin";
5
5
  export declare const UNDO_REDO_PIVOT_COMMANDS: string[];
6
+ interface PivotEvaluatedArgs {
7
+ functionName: string;
8
+ args: (CellValue | Matrix<CellValue> | undefined)[];
9
+ }
6
10
  export declare class PivotUIPlugin extends UIPlugin {
7
- static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotIdFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
11
+ static getters: readonly ["getPivot", "getFirstPivotFunction", "getPivotIdFromPosition", "getPivotIdsFromPosition", "getPivotCellFromPosition", "generateNewCalculatedMeasureName", "isPivotUnused", "isSpillPivotFormula"];
8
12
  private pivots;
9
13
  private unusedPivots?;
10
14
  private custom;
@@ -12,15 +16,18 @@ export declare class PivotUIPlugin extends UIPlugin {
12
16
  beforeHandle(cmd: Command): void;
13
17
  handle(cmd: Command): void;
14
18
  /**
15
- * Get the id of the pivot at the given position. Returns undefined if there
19
+ * Get the id of the first pivot in the formula at the given position. Returns undefined if there
16
20
  * is no pivot at this position
17
21
  */
18
- getPivotIdFromPosition(position: CellPosition): "" | UID | undefined;
22
+ getPivotIdFromPosition(position: CellPosition): UID | undefined;
23
+ /**
24
+ * Get all of the ids of the pivot present in the formula at the given position.
25
+ */
26
+ getPivotIdsFromPosition(position: CellPosition): UID[];
27
+ private getPivotIdsFromFormula;
19
28
  isSpillPivotFormula(position: CellPosition): boolean;
20
- getFirstPivotFunction(sheetId: UID, tokens: Token[]): {
21
- functionName: string;
22
- args: (import("../..").CellValue | import("../..").Matrix<import("../..").CellValue> | undefined)[];
23
- } | undefined;
29
+ private getPivotFunctions;
30
+ getFirstPivotFunction(sheetId: UID, tokens: Token[]): PivotEvaluatedArgs | undefined;
24
31
  /**
25
32
  * Returns the domain args of a pivot formula from a position.
26
33
  * For all those formulas:
@@ -47,3 +54,4 @@ export declare class PivotUIPlugin extends UIPlugin {
47
54
  }): void;
48
55
  _getUnusedPivots(): UID[];
49
56
  }
57
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.0.67",
3
+ "version": "18.0.69",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -29,7 +29,7 @@
29
29
  "prettier": "prettier . --write",
30
30
  "check-formatting": "prettier . --check && eslint",
31
31
  "dist": "tsc --module es6 --declaration --declarationDir dist/types && rolldown -c && npm run build:bundleXml -- --outDir dist",
32
- "postinstall": "husky install",
32
+ "prepare": "husky install",
33
33
  "watch:bundle": "npm run build:bundleJsDev -- --watch",
34
34
  "watch:ts": "npm run build:js -- --watch",
35
35
  "watch:xml": "node tools/bundle_xml/watch_xml_templates.cjs",
@@ -82,14 +82,14 @@
82
82
  "jszip": "^3.6.0",
83
83
  "lint-staged": "^12.1.2",
84
84
  "live-server": "^1.2.1",
85
- "luxon": "^3.0.1",
85
+ "luxon": "3.4.4",
86
86
  "minimist": "^1.2.8",
87
87
  "mockdate": "^3.0.2",
88
88
  "node-watch": "^0.7.3",
89
89
  "npm-run-all": "^4.1.5",
90
90
  "prettier": "^2.8.0",
91
91
  "prettier-plugin-organize-imports": "^3.2.2",
92
- "rolldown": "^1.0.0-rc.15",
92
+ "rolldown": "^1.0.0",
93
93
  "seedrandom": "^3.0.5",
94
94
  "typescript": "^6.0.2",
95
95
  "typescript-eslint": "^8.30.1",
@@ -106,21 +106,21 @@
106
106
  "@swc/core-win32-arm64-msvc": "1.6.7",
107
107
  "@swc/core-win32-ia32-msvc": "1.6.7",
108
108
  "@swc/core-win32-x64-msvc": "1.6.7",
109
- "@rolldown/binding-android-arm64": "1.0.0-rc.15",
110
- "@rolldown/binding-darwin-arm64": "1.0.0-rc.15",
111
- "@rolldown/binding-darwin-x64": "1.0.0-rc.15",
112
- "@rolldown/binding-freebsd-x64": "1.0.0-rc.15",
113
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15",
114
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15",
115
- "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15",
116
- "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15",
117
- "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15",
118
- "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15",
119
- "@rolldown/binding-linux-x64-musl": "1.0.0-rc.15",
120
- "@rolldown/binding-openharmony-arm64": "1.0.0-rc.15",
121
- "@rolldown/binding-wasm32-wasi": "1.0.0-rc.15",
122
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15",
123
- "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15"
109
+ "@rolldown/binding-android-arm64": "1.0.0",
110
+ "@rolldown/binding-darwin-arm64": "1.0.0",
111
+ "@rolldown/binding-darwin-x64": "1.0.0",
112
+ "@rolldown/binding-freebsd-x64": "1.0.0",
113
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0",
114
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0",
115
+ "@rolldown/binding-linux-arm64-musl": "1.0.0",
116
+ "@rolldown/binding-linux-ppc64-gnu": "1.0.0",
117
+ "@rolldown/binding-linux-s390x-gnu": "1.0.0",
118
+ "@rolldown/binding-linux-x64-gnu": "1.0.0",
119
+ "@rolldown/binding-linux-x64-musl": "1.0.0",
120
+ "@rolldown/binding-openharmony-arm64": "1.0.0",
121
+ "@rolldown/binding-wasm32-wasi": "1.0.0",
122
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0",
123
+ "@rolldown/binding-win32-x64-msvc": "1.0.0"
124
124
  },
125
125
  "prettier": {
126
126
  "printWidth": 100,
@@ -129,8 +129,8 @@
129
129
  "xmlSelfClosingSpace": false
130
130
  },
131
131
  "dependencies": {
132
- "@odoo/owl": "2.8.1",
133
- "bootstrap": "^5.3.3",
132
+ "@odoo/owl": "2.8.2",
133
+ "bootstrap": "5.3.3",
134
134
  "font-awesome": "^4.7.0",
135
135
  "rbush": "^3.0.1"
136
136
  },