@odoo/o-spreadsheet 19.2.21 → 19.2.22

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.2.21
6
- * @date 2026-07-20T11:02:04.627Z
7
- * @hash fba73fe
5
+ * @version 19.2.22
6
+ * @date 2026-07-23T07:41:02.828Z
7
+ * @hash 2fb92b4
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.2.21
6
- * @date 2026-07-20T11:02:03.049Z
7
- * @hash fba73fe
5
+ * @version 19.2.22
6
+ * @date 2026-07-23T07:41:01.568Z
7
+ * @hash 2fb92b4
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";
@@ -50230,7 +50230,8 @@ var Autofill = class extends Component {
50230
50230
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
50231
50231
  return cssPropertiesToCss({
50232
50232
  top: `${y}px`,
50233
- left: `${x}px`
50233
+ left: `${x}px`,
50234
+ visibility: this.props.isVisible ? "visible" : "hidden"
50234
50235
  });
50235
50236
  }
50236
50237
  get styleNextValue() {
@@ -50651,7 +50652,7 @@ var CellComposerStore = class extends AbstractComposerStore {
50651
50652
  this._cancelEdition();
50652
50653
  this.resetContent();
50653
50654
  }
50654
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
50655
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
50655
50656
  const activePosition = this.getters.getActivePosition();
50656
50657
  const { col, row } = this.getters.getNextVisibleCellPosition({
50657
50658
  sheetId: cmd.sheetIdTo,
@@ -65388,12 +65389,22 @@ var TableComputedStylePlugin = class extends UIPlugin {
65388
65389
  getCellTableStyle(position) {
65389
65390
  const table = this.getters.getTable(position);
65390
65391
  if (!table) return;
65391
- return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
65392
+ try {
65393
+ return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
65394
+ } catch (e) {
65395
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
65396
+ throw e;
65397
+ }
65392
65398
  }
65393
65399
  getCellTableBorder(position) {
65394
65400
  const table = this.getters.getTable(position);
65395
65401
  if (!table) return;
65396
- return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
65402
+ try {
65403
+ return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
65404
+ } catch (e) {
65405
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
65406
+ throw e;
65407
+ }
65397
65408
  }
65398
65409
  computeTableStyle(sheetId, table) {
65399
65410
  return lazy(() => {
@@ -66879,8 +66890,8 @@ var HeaderVisibilityUIPlugin = class extends UIPlugin {
66879
66890
  getNextVisibleCellPosition({ sheetId, col, row }) {
66880
66891
  return {
66881
66892
  sheetId,
66882
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
66883
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
66893
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
66894
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
66884
66895
  };
66885
66896
  }
66886
66897
  /**
@@ -81712,6 +81723,6 @@ const chartHelpers = {
81712
81723
  //#endregion
81713
81724
  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 };
81714
81725
 
81715
- __info__.version = "19.2.21";
81716
- __info__.date = "2026-07-20T11:02:03.049Z";
81717
- __info__.hash = "fba73fe";
81726
+ __info__.version = "19.2.22";
81727
+ __info__.date = "2026-07-23T07:41:01.568Z";
81728
+ __info__.hash = "2fb92b4";
@@ -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.2.21
6
- * @date 2026-07-20T11:02:03.049Z
7
- * @hash fba73fe
5
+ * @version 19.2.22
6
+ * @date 2026-07-23T07:41:01.568Z
7
+ * @hash 2fb92b4
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -50232,7 +50232,8 @@ stores.inject(MyMetaStore, storeInstance);
50232
50232
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
50233
50233
  return cssPropertiesToCss({
50234
50234
  top: `${y}px`,
50235
- left: `${x}px`
50235
+ left: `${x}px`,
50236
+ visibility: this.props.isVisible ? "visible" : "hidden"
50236
50237
  });
50237
50238
  }
50238
50239
  get styleNextValue() {
@@ -50653,7 +50654,7 @@ stores.inject(MyMetaStore, storeInstance);
50653
50654
  this._cancelEdition();
50654
50655
  this.resetContent();
50655
50656
  }
50656
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
50657
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
50657
50658
  const activePosition = this.getters.getActivePosition();
50658
50659
  const { col, row } = this.getters.getNextVisibleCellPosition({
50659
50660
  sheetId: cmd.sheetIdTo,
@@ -65390,12 +65391,22 @@ stores.inject(MyMetaStore, storeInstance);
65390
65391
  getCellTableStyle(position) {
65391
65392
  const table = this.getters.getTable(position);
65392
65393
  if (!table) return;
65393
- return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
65394
+ try {
65395
+ return this.tableStyles[position.sheetId][table.id]().styles[position.col]?.[position.row];
65396
+ } catch (e) {
65397
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
65398
+ throw e;
65399
+ }
65394
65400
  }
65395
65401
  getCellTableBorder(position) {
65396
65402
  const table = this.getters.getTable(position);
65397
65403
  if (!table) return;
65398
- return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
65404
+ try {
65405
+ return this.tableStyles[position.sheetId][table.id]().borders[position.col]?.[position.row];
65406
+ } catch (e) {
65407
+ if (isEvaluationError(e) || e instanceof EvaluationError) return;
65408
+ throw e;
65409
+ }
65399
65410
  }
65400
65411
  computeTableStyle(sheetId, table) {
65401
65412
  return lazy(() => {
@@ -66881,8 +66892,8 @@ stores.inject(MyMetaStore, storeInstance);
66881
66892
  getNextVisibleCellPosition({ sheetId, col, row }) {
66882
66893
  return {
66883
66894
  sheetId,
66884
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
66885
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
66895
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
66896
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
66886
66897
  };
66887
66898
  }
66888
66899
  /**
@@ -81772,8 +81783,8 @@ exports.stores = stores;
81772
81783
  exports.tokenColors = tokenColors;
81773
81784
  exports.tokenize = tokenize;
81774
81785
 
81775
- __info__.version = "19.2.21";
81776
- __info__.date = "2026-07-20T11:02:03.049Z";
81777
- __info__.hash = "fba73fe";
81786
+ __info__.version = "19.2.22";
81787
+ __info__.date = "2026-07-23T07:41:01.568Z";
81788
+ __info__.hash = "2fb92b4";
81778
81789
 
81779
81790
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);