@odoo/o-spreadsheet 19.3.11 → 19.3.13

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.11
5
- @date 2026-07-13T06:26:29.403Z
6
- @hash 35c06d3
4
+ @version 19.3.13
5
+ @date 2026-07-23T07:41:07.163Z
6
+ @hash 2059bd0
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -6950,10 +6950,7 @@
6950
6950
  />
6951
6951
  <canvas t-ref="canvas"/>
6952
6952
  <t t-set="focused" t-value="focusedClients"/>
6953
- <t
6954
- t-foreach="env.model.getters.getClientsToDisplay()"
6955
- t-as="client"
6956
- t-key="getClientPositionKey(client)">
6953
+ <t t-foreach="this.clientsToDisplay" t-as="client" t-key="getClientPositionKey(client)">
6957
6954
  <ClientTag
6958
6955
  name="client.name"
6959
6956
  color="client.color"
@@ -119,5 +119,6 @@ export declare class Grid extends Component<Props, SpreadsheetChildEnv> {
119
119
  onComposerContentFocused(): void;
120
120
  get staticTables(): Table[];
121
121
  get displaySelectionHandler(): boolean;
122
+ get clientsToDisplay(): Required<Client>[];
122
123
  }
123
124
  export {};
@@ -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
@@ -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
@@ -1,3 +1,4 @@
1
+ import { UID } from "../..";
1
2
  import { Client, ClientId, ClientWithColor } from "../../types/collaborative/session";
2
3
  import { GridRenderingContext } from "../../types/rendering";
3
4
  import { UIPlugin, UIPluginConfig } from "../ui_plugin";
@@ -18,7 +19,7 @@ export declare class CollaborativePlugin extends UIPlugin {
18
19
  * Get the list of others connected clients which are present in the same sheet
19
20
  * and with a valid position
20
21
  */
21
- getClientsToDisplay(): ClientToDisplay[];
22
+ getClientsToDisplay(sheetId: UID): ClientToDisplay[];
22
23
  drawLayer(renderingContext: GridRenderingContext): void;
23
24
  }
24
25
  export {};
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.3.11",
3
+ "version": "19.3.13",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",