@odoo/o-spreadsheet 18.0.68 → 18.0.70

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.68
5
- @date 2026-05-12T12:16:54.935Z
6
- @hash a0763ab
4
+ @version 18.0.70
5
+ @date 2026-06-06T06:20:40.849Z
6
+ @hash 3ff29f6
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ActionButton">
@@ -2522,6 +2522,7 @@
2522
2522
 
2523
2523
  <t t-name="o-spreadsheet-Menu">
2524
2524
  <Popover t-if="menuItemsAndSeparators.length" t-props="popoverProps">
2525
+ <t t-set="shouldDisplayIcons" t-value="this.childrenHaveIcon"/>
2525
2526
  <div
2526
2527
  t-ref="menu"
2527
2528
  class="o-menu"
@@ -2549,7 +2550,7 @@
2549
2550
  t-att-style="getColor(menuItem)">
2550
2551
  <div class="d-flex w-100">
2551
2552
  <div
2552
- t-if="childrenHaveIcon"
2553
+ t-if="shouldDisplayIcons"
2553
2554
  class="o-menu-item-icon d-flex align-items-center flex-shrink-0"
2554
2555
  t-att-style="getIconColor(menuItem)">
2555
2556
  <t t-if="getIconName(menuItem)" t-call="{{getIconName(menuItem)}}"/>
@@ -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:
@@ -45,5 +52,6 @@ export declare class PivotUIPlugin extends UIPlugin {
45
52
  setupPivot(pivotId: UID, { recreate }?: {
46
53
  recreate: boolean;
47
54
  }): void;
48
- _getUnusedPivots(): UID[];
55
+ private _getUnusedPivots;
49
56
  }
57
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "18.0.68",
3
+ "version": "18.0.70",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o-spreadsheet.cjs.js",
@@ -89,7 +89,7 @@
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,