@odoo/o-spreadsheet 19.5.0-alpha.5 → 19.5.0-alpha.6

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.5.0-alpha.5
5
- @date 2026-07-20T10:50:14.853Z
6
- @hash a599d86
4
+ @version 19.5.0-alpha.6
5
+ @date 2026-07-23T07:49:15.559Z
6
+ @hash 192a921
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -7484,10 +7484,7 @@
7484
7484
  />
7485
7485
  <canvas t-ref="this.canvasRef" class="os-theme-dependant pe-none"/>
7486
7486
  <t t-set="focused" t-value="this.focusedClients"/>
7487
- <t
7488
- t-foreach="this.env.model.getters.getClientsToDisplay()"
7489
- t-as="client"
7490
- t-key="this.getClientPositionKey(client)">
7487
+ <t t-foreach="this.clientsToDisplay" t-as="client" t-key="this.getClientPositionKey(client)">
7491
7488
  <ClientTag
7492
7489
  name="client.name"
7493
7490
  color="client.color"
@@ -124,4 +124,5 @@ export declare class Grid extends Component<SpreadsheetChildEnv> {
124
124
  onComposerContentFocused(): void;
125
125
  get staticTables(): Table[];
126
126
  get displaySelectionHandler(): boolean;
127
+ get clientsToDisplay(): Required<Client>[];
127
128
  }
@@ -236,6 +236,7 @@ import { Select } from "./components/select/select";
236
236
  import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
237
237
  import { CalendarButton } from "./components/side_panel/criterion_form/calendar_button/calendar_button";
238
238
  import { TopBar } from "./components/top_bar/top_bar";
239
+ import { PositionMap } from "./helpers/cells/position_map";
239
240
  import { parseFormat } from "./helpers/format/format_parser";
240
241
  import { replaceSymbolInFormula } from "./helpers/formulas";
241
242
  import { getFirstPivotFunction, getNumberOfPivotFunctions } from "./helpers/pivot/pivot_composer_helpers";
@@ -316,6 +317,7 @@ export declare const helpers: {
316
317
  collapseHierarchicalDisplayName: typeof collapseHierarchicalDisplayName;
317
318
  getCanonicalSymbolName: typeof getCanonicalSymbolName;
318
319
  fuzzyLookup: typeof fuzzyLookup;
320
+ PositionMap: typeof PositionMap;
319
321
  replaceSymbolInFormula: typeof replaceSymbolInFormula;
320
322
  isSingleCellReference: typeof isSingleCellReference;
321
323
  computeCachedTextDimension: typeof computeCachedTextDimension;
@@ -427,6 +429,7 @@ export declare const stores: {
427
429
  ClientFocusStore: typeof ClientFocusStore;
428
430
  GridRenderer: typeof GridRenderer;
429
431
  ViewportsStore: typeof ViewportsStore;
432
+ globalStores: import(".").Registry<import(".").StoreConstructor<SpreadsheetStore, any[]>>;
430
433
  };
431
434
  export { getCaretDownSvg, getCaretUpSvg } from "./components/icons/icons";
432
435
  export { createAutocompleteArgumentsProvider } from "./functions/autocomplete_arguments_provider";
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ import { Registry } from "../registries/registry";
2
+ import { SpreadsheetStore } from "../stores/spreadsheet_store";
3
+ import { StoreConstructor } from "../types/store_engine";
4
+ export declare const globalStores: Registry<StoreConstructor<SpreadsheetStore, any[]>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.5.0-alpha.5",
3
+ "version": "19.5.0-alpha.6",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",