@odoo/o-spreadsheet 19.3.10 → 19.3.12

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.10
5
- @date 2026-07-01T05:04:43.925Z
6
- @hash 040ae04
4
+ @version 19.3.12
5
+ @date 2026-07-20T11:02:45.434Z
6
+ @hash 2b42707
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -92,6 +92,7 @@ export declare class CompiledFormula implements Omit<ICompiledFormula, "tokens"
92
92
  * Make a new instance of CompiledFormula by compiling the formula string as input by the user.
93
93
  * */
94
94
  static Compile(formula: string, sheetId: UID, getters: CoreGetters): CompiledFormula;
95
+ areRangeShapesInLineWithNormalizedFormula(): boolean;
95
96
  }
96
97
  /**
97
98
  * A compiled formula serialized
@@ -49,6 +49,7 @@ export declare class InternalViewport {
49
49
  willNewOffsetScrollViewport(offsetX: Pixel, offsetY: Pixel): boolean;
50
50
  setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
51
51
  adjustViewportZone(): void;
52
+ isZoneVisible(zone: Zone): boolean;
52
53
  /**
53
54
  *
54
55
  * Computes the visible coordinates & dimensions of a given zone inside the viewport
@@ -94,6 +94,7 @@ export declare class ViewportCollection {
94
94
  * Check if a given position is visible in the viewport.
95
95
  */
96
96
  isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
97
+ isZoneVisibleInViewport(sheetId: UID, zone: Zone): boolean;
97
98
  getScrollBarWidth(): Pixel;
98
99
  getEdgeScrollCol(sheetId: UID, x: number, previousX: number, startingX: number): EdgeScrollInfo;
99
100
  getEdgeScrollRow(sheetId: UID, y: number, previousY: number, startingY: number): EdgeScrollInfo;
@@ -67,6 +67,7 @@ import { PivotMeasureDisplayPanelStore } from "./components/side_panel/pivot/piv
67
67
  import { HoveredTableStore } from "./components/tables/hovered_table_store";
68
68
  import { TextInput } from "./components/text_input/text_input";
69
69
  import { arg } from "./functions/arguments";
70
+ import { PositionMap } from "./helpers/cells/position_map";
70
71
  import * as CHART_HELPERS from "./helpers/figures/charts";
71
72
  import * as CHART_RUNTIME_HELPERS from "./helpers/figures/charts/runtime";
72
73
  import { areDomainArgsFieldsValid, collapseHierarchicalDisplayName, createCustomFields, createPivotFormula, getMaxObjectId, isDateOrDatetimeField, parseDimension, toFunctionPivotValue, toNormalizedPivotValue } from "./helpers/pivot/pivot_helpers";
@@ -271,6 +272,7 @@ export declare const helpers: {
271
272
  isFormula: typeof isFormula;
272
273
  domainToColRowDomain: typeof domainToColRowDomain;
273
274
  collapseHierarchicalDisplayName: typeof collapseHierarchicalDisplayName;
275
+ PositionMap: typeof PositionMap;
274
276
  };
275
277
  export declare const links: {
276
278
  isMarkdownLink: typeof isMarkdownLink;
@@ -30,6 +30,7 @@ export declare class Squisher {
30
30
  private alreadyAppliedNumberOffsets;
31
31
  private previousStrings;
32
32
  private baseFormulaWasTransformed;
33
+ private rangeToStringOptions;
33
34
  private baseNumber;
34
35
  constructor(getters: CoreGetters);
35
36
  /** Build the result object based on a transformation. Joins the numbers into a single string, tries to do the same
@@ -15,9 +15,12 @@ export declare class PivotUIPlugin extends CoreViewPlugin {
15
15
  private pivots;
16
16
  private unusedPivotsInFormulas?;
17
17
  private custom;
18
+ private pivotPositionCache;
19
+ private shouldInvalidateCache;
18
20
  constructor(config: CoreViewPluginConfig);
19
21
  beforeHandle(cmd: Command): void;
20
22
  handle(cmd: Command): void;
23
+ finalize(): void;
21
24
  /**
22
25
  * Get the id of the first pivot in the formula at the given position. Returns undefined if there
23
26
  * is no pivot at this position
@@ -38,7 +38,7 @@ export declare class SelectionStreamProcessorImpl implements SelectionStreamProc
38
38
  /**
39
39
  * Select a single cell as the new anchor.
40
40
  */
41
- selectCell(col: HeaderIndex, row: HeaderIndex): DispatchResult;
41
+ selectCell(col: HeaderIndex, row: HeaderIndex, options?: SelectionEventOptions): DispatchResult;
42
42
  /**
43
43
  * Set the selection to one of the cells adjacent to the current anchor cell.
44
44
  */
@@ -2,6 +2,7 @@ import { AnchorZone } from "../misc";
2
2
  export type SelectionEventOptions = {
3
3
  scrollIntoView?: boolean;
4
4
  unbounded?: boolean;
5
+ allowsHiddenSelection?: boolean;
5
6
  };
6
7
  export interface SelectionEvent {
7
8
  anchor: AnchorZone;
@@ -22,6 +22,7 @@ export interface BoundedRange {
22
22
  export interface RangeStringOptions {
23
23
  useBoundedReference?: boolean;
24
24
  useFixedReference?: boolean;
25
+ doNotSimplifyRange?: boolean;
25
26
  }
26
27
  export interface RangeData {
27
28
  _zone: Zone | UnboundedZone;
@@ -17,7 +17,7 @@ type StatefulStream<Event, State> = {
17
17
  */
18
18
  interface SelectionProcessor {
19
19
  selectZone(anchor: AnchorZone, options?: SelectionEventOptions): DispatchResult;
20
- selectCell(col: number, row: number): DispatchResult;
20
+ selectCell(col: number, row: number, options?: SelectionEventOptions): DispatchResult;
21
21
  moveAnchorCell(direction: Direction, step: SelectionStep): DispatchResult;
22
22
  updateAnchorCell(col: number, row: number, options?: SelectionEventOptions): DispatchResult;
23
23
  setAnchorCorner(col: number, row: number): DispatchResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.3.10",
3
+ "version": "19.3.12",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",