@odoo/o-spreadsheet 19.3.12 → 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.
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 19.3.12
6
- * @date 2026-07-20T11:02:44.416Z
7
- * @hash 2b42707
5
+ * @version 19.3.13
6
+ * @date 2026-07-23T07:41:06.182Z
7
+ * @hash 2059bd0
8
8
  */
9
9
 
10
10
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
@@ -44156,7 +44156,8 @@ var Autofill = class extends _odoo_owl.Component {
44156
44156
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
44157
44157
  return cssPropertiesToCss({
44158
44158
  top: `${y}px`,
44159
- left: `${x}px`
44159
+ left: `${x}px`,
44160
+ visibility: this.props.isVisible ? "visible" : "hidden"
44160
44161
  });
44161
44162
  }
44162
44163
  get styleNextValue() {
@@ -44577,7 +44578,7 @@ var CellComposerStore = class extends AbstractComposerStore {
44577
44578
  this._cancelEdition();
44578
44579
  this.resetContent();
44579
44580
  }
44580
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
44581
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
44581
44582
  const activePosition = this.getters.getActivePosition();
44582
44583
  const { col, row } = this.getters.getNextVisibleCellPosition({
44583
44584
  sheetId: cmd.sheetIdTo,
@@ -48719,6 +48720,10 @@ var Grid = class extends _odoo_owl.Component {
48719
48720
  get displaySelectionHandler() {
48720
48721
  return this.env.isMobile() && this.composerFocusStore.activeComposer.editionMode === "inactive";
48721
48722
  }
48723
+ get clientsToDisplay() {
48724
+ const sheetId = this.env.model.getters.getActiveSheetId();
48725
+ return this.env.model.getters.getClientsToDisplay(sheetId);
48726
+ }
48722
48727
  };
48723
48728
 
48724
48729
  //#endregion
@@ -59894,12 +59899,22 @@ var TableComputedStylePlugin = class extends UIPlugin {
59894
59899
  getCellTableStyle(position) {
59895
59900
  const table = this.getters.getTable(position);
59896
59901
  if (!table) return;
59897
- return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
59902
+ try {
59903
+ return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
59904
+ } catch (e) {
59905
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
59906
+ throw e;
59907
+ }
59898
59908
  }
59899
59909
  getCellTableBorder(position) {
59900
59910
  const table = this.getters.getTable(position);
59901
59911
  if (!table) return;
59902
- return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
59912
+ try {
59913
+ return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
59914
+ } catch (e) {
59915
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
59916
+ throw e;
59917
+ }
59903
59918
  }
59904
59919
  computeTableStyle(sheetId, table) {
59905
59920
  return lazy(() => {
@@ -61242,14 +61257,13 @@ var CollaborativePlugin = class extends UIPlugin {
61242
61257
  * Get the list of others connected clients which are present in the same sheet
61243
61258
  * and with a valid position
61244
61259
  */
61245
- getClientsToDisplay() {
61260
+ getClientsToDisplay(sheetId) {
61246
61261
  try {
61247
61262
  this.getters.getCurrentClient();
61248
61263
  } catch (e) {
61249
61264
  if (e instanceof ClientDisconnectedError) return [];
61250
61265
  else throw e;
61251
61266
  }
61252
- const sheetId = this.getters.getActiveSheetId();
61253
61267
  const clients = [];
61254
61268
  for (const client of this.getters.getConnectedClients()) if (client.id !== this.getters.getCurrentClient().id && client.position && client.position.sheetId === sheetId && this.isPositionValid(client.position)) clients.push({
61255
61269
  ...client,
@@ -61260,7 +61274,7 @@ var CollaborativePlugin = class extends UIPlugin {
61260
61274
  drawLayer(renderingContext) {
61261
61275
  if (this.getters.isDashboard()) return;
61262
61276
  const { ctx, thinLineWidth, viewports, sheetId } = renderingContext;
61263
- for (const client of this.getClientsToDisplay()) {
61277
+ for (const client of this.getClientsToDisplay(sheetId)) {
61264
61278
  const { row, col } = client.position;
61265
61279
  const zone = this.getters.expandZone(sheetId, {
61266
61280
  top: row,
@@ -61563,8 +61577,8 @@ var HeaderVisibilityUIPlugin = class extends UIPlugin {
61563
61577
  getNextVisibleCellPosition({ sheetId, col, row }) {
61564
61578
  return {
61565
61579
  sheetId,
61566
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
61567
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
61580
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
61581
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
61568
61582
  };
61569
61583
  }
61570
61584
  /**
@@ -84837,6 +84851,6 @@ exports.stores = stores;
84837
84851
  exports.tokenColors = tokenColors;
84838
84852
  exports.tokenize = tokenize;
84839
84853
 
84840
- __info__.version = "19.3.12";
84841
- __info__.date = "2026-07-20T11:02:44.416Z";
84842
- __info__.hash = "2b42707";
84854
+ __info__.version = "19.3.13";
84855
+ __info__.date = "2026-07-23T07:41:06.182Z";
84856
+ __info__.hash = "2059bd0";
@@ -2,9 +2,9 @@
2
2
  /*
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 19.3.12
6
- * @date 2026-07-20T11:02:46.174Z
7
- * @hash 2b42707
5
+ * @version 19.3.13
6
+ * @date 2026-07-23T07:41:07.881Z
7
+ * @hash 2059bd0
8
8
  */
9
9
  :root {
10
10
  --os-gray-100: light-dark(#f9fafb, #1b1d26);
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 19.3.12
6
- * @date 2026-07-20T11:02:44.416Z
7
- * @hash 2b42707
5
+ * @version 19.3.13
6
+ * @date 2026-07-23T07:41:06.182Z
7
+ * @hash 2059bd0
8
8
  */
9
9
 
10
10
  import { App, Component, blockDom, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, whenReady, xml } from "@odoo/owl";
@@ -44155,7 +44155,8 @@ var Autofill = class extends Component {
44155
44155
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
44156
44156
  return cssPropertiesToCss({
44157
44157
  top: `${y}px`,
44158
- left: `${x}px`
44158
+ left: `${x}px`,
44159
+ visibility: this.props.isVisible ? "visible" : "hidden"
44159
44160
  });
44160
44161
  }
44161
44162
  get styleNextValue() {
@@ -44576,7 +44577,7 @@ var CellComposerStore = class extends AbstractComposerStore {
44576
44577
  this._cancelEdition();
44577
44578
  this.resetContent();
44578
44579
  }
44579
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
44580
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
44580
44581
  const activePosition = this.getters.getActivePosition();
44581
44582
  const { col, row } = this.getters.getNextVisibleCellPosition({
44582
44583
  sheetId: cmd.sheetIdTo,
@@ -48718,6 +48719,10 @@ var Grid = class extends Component {
48718
48719
  get displaySelectionHandler() {
48719
48720
  return this.env.isMobile() && this.composerFocusStore.activeComposer.editionMode === "inactive";
48720
48721
  }
48722
+ get clientsToDisplay() {
48723
+ const sheetId = this.env.model.getters.getActiveSheetId();
48724
+ return this.env.model.getters.getClientsToDisplay(sheetId);
48725
+ }
48721
48726
  };
48722
48727
 
48723
48728
  //#endregion
@@ -59709,12 +59714,22 @@ var TableComputedStylePlugin = class extends UIPlugin {
59709
59714
  getCellTableStyle(position) {
59710
59715
  const table = this.getters.getTable(position);
59711
59716
  if (!table) return;
59712
- return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
59717
+ try {
59718
+ return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
59719
+ } catch (e) {
59720
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
59721
+ throw e;
59722
+ }
59713
59723
  }
59714
59724
  getCellTableBorder(position) {
59715
59725
  const table = this.getters.getTable(position);
59716
59726
  if (!table) return;
59717
- return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
59727
+ try {
59728
+ return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
59729
+ } catch (e) {
59730
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
59731
+ throw e;
59732
+ }
59718
59733
  }
59719
59734
  computeTableStyle(sheetId, table) {
59720
59735
  return lazy(() => {
@@ -61057,14 +61072,13 @@ var CollaborativePlugin = class extends UIPlugin {
61057
61072
  * Get the list of others connected clients which are present in the same sheet
61058
61073
  * and with a valid position
61059
61074
  */
61060
- getClientsToDisplay() {
61075
+ getClientsToDisplay(sheetId) {
61061
61076
  try {
61062
61077
  this.getters.getCurrentClient();
61063
61078
  } catch (e) {
61064
61079
  if (e instanceof ClientDisconnectedError) return [];
61065
61080
  else throw e;
61066
61081
  }
61067
- const sheetId = this.getters.getActiveSheetId();
61068
61082
  const clients = [];
61069
61083
  for (const client of this.getters.getConnectedClients()) if (client.id !== this.getters.getCurrentClient().id && client.position && client.position.sheetId === sheetId && this.isPositionValid(client.position)) clients.push({
61070
61084
  ...client,
@@ -61075,7 +61089,7 @@ var CollaborativePlugin = class extends UIPlugin {
61075
61089
  drawLayer(renderingContext) {
61076
61090
  if (this.getters.isDashboard()) return;
61077
61091
  const { ctx, thinLineWidth, viewports, sheetId } = renderingContext;
61078
- for (const client of this.getClientsToDisplay()) {
61092
+ for (const client of this.getClientsToDisplay(sheetId)) {
61079
61093
  const { row, col } = client.position;
61080
61094
  const zone = this.getters.expandZone(sheetId, {
61081
61095
  top: row,
@@ -61378,8 +61392,8 @@ var HeaderVisibilityUIPlugin = class extends UIPlugin {
61378
61392
  getNextVisibleCellPosition({ sheetId, col, row }) {
61379
61393
  return {
61380
61394
  sheetId,
61381
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
61382
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
61395
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
61396
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
61383
61397
  };
61384
61398
  }
61385
61399
  /**
@@ -84594,6 +84608,6 @@ const chartHelpers = {
84594
84608
  //#endregion
84595
84609
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CompiledFormula, CorePlugin, CoreViewPlugin, DEFAULT_LOCALE, DEFAULT_LOCALES, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, canExecuteInReadonly, categories, chartHelpers, components, constants, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, isCoreCommand, isSheetDependent, iterateAstNodes, links, load, lockedSheetAllowedCommands, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
84596
84610
 
84597
- __info__.version = "19.3.12";
84598
- __info__.date = "2026-07-20T11:02:44.416Z";
84599
- __info__.hash = "2b42707";
84611
+ __info__.version = "19.3.13";
84612
+ __info__.date = "2026-07-23T07:41:06.182Z";
84613
+ __info__.hash = "2059bd0";
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 19.3.12
6
- * @date 2026-07-20T11:02:44.416Z
7
- * @hash 2b42707
5
+ * @version 19.3.13
6
+ * @date 2026-07-23T07:41:06.182Z
7
+ * @hash 2059bd0
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -44157,7 +44157,8 @@ stores.inject(MyMetaStore, storeInstance);
44157
44157
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
44158
44158
  return cssPropertiesToCss({
44159
44159
  top: `${y}px`,
44160
- left: `${x}px`
44160
+ left: `${x}px`,
44161
+ visibility: this.props.isVisible ? "visible" : "hidden"
44161
44162
  });
44162
44163
  }
44163
44164
  get styleNextValue() {
@@ -44578,7 +44579,7 @@ stores.inject(MyMetaStore, storeInstance);
44578
44579
  this._cancelEdition();
44579
44580
  this.resetContent();
44580
44581
  }
44581
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
44582
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
44582
44583
  const activePosition = this.getters.getActivePosition();
44583
44584
  const { col, row } = this.getters.getNextVisibleCellPosition({
44584
44585
  sheetId: cmd.sheetIdTo,
@@ -48720,6 +48721,10 @@ stores.inject(MyMetaStore, storeInstance);
48720
48721
  get displaySelectionHandler() {
48721
48722
  return this.env.isMobile() && this.composerFocusStore.activeComposer.editionMode === "inactive";
48722
48723
  }
48724
+ get clientsToDisplay() {
48725
+ const sheetId = this.env.model.getters.getActiveSheetId();
48726
+ return this.env.model.getters.getClientsToDisplay(sheetId);
48727
+ }
48723
48728
  };
48724
48729
 
48725
48730
  //#endregion
@@ -59711,12 +59716,22 @@ stores.inject(MyMetaStore, storeInstance);
59711
59716
  getCellTableStyle(position) {
59712
59717
  const table = this.getters.getTable(position);
59713
59718
  if (!table) return;
59714
- return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
59719
+ try {
59720
+ return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
59721
+ } catch (e) {
59722
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
59723
+ throw e;
59724
+ }
59715
59725
  }
59716
59726
  getCellTableBorder(position) {
59717
59727
  const table = this.getters.getTable(position);
59718
59728
  if (!table) return;
59719
- return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
59729
+ try {
59730
+ return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
59731
+ } catch (e) {
59732
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
59733
+ throw e;
59734
+ }
59720
59735
  }
59721
59736
  computeTableStyle(sheetId, table) {
59722
59737
  return lazy(() => {
@@ -61059,14 +61074,13 @@ stores.inject(MyMetaStore, storeInstance);
61059
61074
  * Get the list of others connected clients which are present in the same sheet
61060
61075
  * and with a valid position
61061
61076
  */
61062
- getClientsToDisplay() {
61077
+ getClientsToDisplay(sheetId) {
61063
61078
  try {
61064
61079
  this.getters.getCurrentClient();
61065
61080
  } catch (e) {
61066
61081
  if (e instanceof ClientDisconnectedError) return [];
61067
61082
  else throw e;
61068
61083
  }
61069
- const sheetId = this.getters.getActiveSheetId();
61070
61084
  const clients = [];
61071
61085
  for (const client of this.getters.getConnectedClients()) if (client.id !== this.getters.getCurrentClient().id && client.position && client.position.sheetId === sheetId && this.isPositionValid(client.position)) clients.push({
61072
61086
  ...client,
@@ -61077,7 +61091,7 @@ stores.inject(MyMetaStore, storeInstance);
61077
61091
  drawLayer(renderingContext) {
61078
61092
  if (this.getters.isDashboard()) return;
61079
61093
  const { ctx, thinLineWidth, viewports, sheetId } = renderingContext;
61080
- for (const client of this.getClientsToDisplay()) {
61094
+ for (const client of this.getClientsToDisplay(sheetId)) {
61081
61095
  const { row, col } = client.position;
61082
61096
  const zone = this.getters.expandZone(sheetId, {
61083
61097
  top: row,
@@ -61380,8 +61394,8 @@ stores.inject(MyMetaStore, storeInstance);
61380
61394
  getNextVisibleCellPosition({ sheetId, col, row }) {
61381
61395
  return {
61382
61396
  sheetId,
61383
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
61384
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
61397
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
61398
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
61385
61399
  };
61386
61400
  }
61387
61401
  /**
@@ -84654,8 +84668,8 @@ exports.stores = stores;
84654
84668
  exports.tokenColors = tokenColors;
84655
84669
  exports.tokenize = tokenize;
84656
84670
 
84657
- __info__.version = "19.3.12";
84658
- __info__.date = "2026-07-20T11:02:44.416Z";
84659
- __info__.hash = "2b42707";
84671
+ __info__.version = "19.3.13";
84672
+ __info__.date = "2026-07-23T07:41:06.182Z";
84673
+ __info__.hash = "2059bd0";
84660
84674
 
84661
84675
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);