@odoo/o-spreadsheet 19.1.28 → 19.1.30

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.1.28
6
- * @date 2026-07-20T11:03:22.820Z
7
- * @hash 704eb0e
5
+ * @version 19.1.30
6
+ * @date 2026-07-30T06:53:53.625Z
7
+ * @hash b4f7ab8
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.1.28
6
- * @date 2026-07-20T11:03:20.589Z
7
- * @hash 704eb0e
5
+ * @version 19.1.30
6
+ * @date 2026-07-30T06:53:51.978Z
7
+ * @hash b4f7ab8
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";
@@ -40804,7 +40804,8 @@ var Autofill = class extends Component {
40804
40804
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
40805
40805
  return cssPropertiesToCss({
40806
40806
  top: `${y}px`,
40807
- left: `${x}px`
40807
+ left: `${x}px`,
40808
+ visibility: this.props.isVisible ? "visible" : "hidden"
40808
40809
  });
40809
40810
  }
40810
40811
  get styleNextValue() {
@@ -41225,7 +41226,7 @@ var CellComposerStore = class extends AbstractComposerStore {
41225
41226
  this._cancelEdition();
41226
41227
  this.resetContent();
41227
41228
  }
41228
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
41229
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
41229
41230
  const activePosition = this.getters.getActivePosition();
41230
41231
  const { col, row } = this.getters.getNextVisibleCellPosition({
41231
41232
  sheetId: cmd.sheetIdTo,
@@ -64499,8 +64500,8 @@ var HeaderVisibilityUIPlugin = class extends UIPlugin {
64499
64500
  getNextVisibleCellPosition({ sheetId, col, row }) {
64500
64501
  return {
64501
64502
  sheetId,
64502
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
64503
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
64503
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
64504
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
64504
64505
  };
64505
64506
  }
64506
64507
  /**
@@ -65424,7 +65425,7 @@ var SheetUIPlugin = class extends UIPlugin {
65424
65425
  if (contentWidth === 0) return 0;
65425
65426
  contentWidth += 2 * 4;
65426
65427
  if (style.wrapping === "wrap") {
65427
- const colWidth = this.getters.getColSize(this.getters.getActiveSheetId(), position.col);
65428
+ const colWidth = this.getters.getColSize(position.sheetId, position.col);
65428
65429
  return Math.min(colWidth, contentWidth);
65429
65430
  }
65430
65431
  return contentWidth;
@@ -70612,6 +70613,7 @@ var SpreadsheetDashboard = class extends Component {
70612
70613
  return toRaw(this.clickableCellsStore.clickableCells);
70613
70614
  }
70614
70615
  selectClickableCell(ev, clickableCell) {
70616
+ if (![0, 1].includes(ev.button)) return;
70615
70617
  const { position, action } = clickableCell;
70616
70618
  action(position, this.env, isMiddleClickOrCtrlClick(ev));
70617
70619
  }
@@ -79117,6 +79119,6 @@ const chartHelpers = {
79117
79119
  //#endregion
79118
79120
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, CommandResult, CorePlugin, CoreViewPlugin, DEFAULT_LOCALE, DEFAULT_LOCALES, DispatchResult, EvaluationError, LocalTransportService, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, categories, chartHelpers, components, constants, convertAstNodes, coreTypes, createAutocompleteArgumentsProvider, findCellInNewZone, functionCache, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
79119
79121
 
79120
- __info__.version = "19.1.28";
79121
- __info__.date = "2026-07-20T11:03:20.589Z";
79122
- __info__.hash = "704eb0e";
79122
+ __info__.version = "19.1.30";
79123
+ __info__.date = "2026-07-30T06:53:51.978Z";
79124
+ __info__.hash = "b4f7ab8";
@@ -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.1.28
6
- * @date 2026-07-20T11:03:20.589Z
7
- * @hash 704eb0e
5
+ * @version 19.1.30
6
+ * @date 2026-07-30T06:53:51.978Z
7
+ * @hash b4f7ab8
8
8
  */
9
9
 
10
10
  (function(exports, _odoo_owl) {
@@ -40806,7 +40806,8 @@ stores.inject(MyMetaStore, storeInstance);
40806
40806
  const { x, y } = this.state.handler ? this.state.position : this.props.position;
40807
40807
  return cssPropertiesToCss({
40808
40808
  top: `${y}px`,
40809
- left: `${x}px`
40809
+ left: `${x}px`,
40810
+ visibility: this.props.isVisible ? "visible" : "hidden"
40810
40811
  });
40811
40812
  }
40812
40813
  get styleNextValue() {
@@ -41227,7 +41228,7 @@ stores.inject(MyMetaStore, storeInstance);
41227
41228
  this._cancelEdition();
41228
41229
  this.resetContent();
41229
41230
  }
41230
- if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
41231
+ if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
41231
41232
  const activePosition = this.getters.getActivePosition();
41232
41233
  const { col, row } = this.getters.getNextVisibleCellPosition({
41233
41234
  sheetId: cmd.sheetIdTo,
@@ -64501,8 +64502,8 @@ stores.inject(MyMetaStore, storeInstance);
64501
64502
  getNextVisibleCellPosition({ sheetId, col, row }) {
64502
64503
  return {
64503
64504
  sheetId,
64504
- col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
64505
- row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
64505
+ col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
64506
+ row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
64506
64507
  };
64507
64508
  }
64508
64509
  /**
@@ -65426,7 +65427,7 @@ stores.inject(MyMetaStore, storeInstance);
65426
65427
  if (contentWidth === 0) return 0;
65427
65428
  contentWidth += 2 * 4;
65428
65429
  if (style.wrapping === "wrap") {
65429
- const colWidth = this.getters.getColSize(this.getters.getActiveSheetId(), position.col);
65430
+ const colWidth = this.getters.getColSize(position.sheetId, position.col);
65430
65431
  return Math.min(colWidth, contentWidth);
65431
65432
  }
65432
65433
  return contentWidth;
@@ -70614,6 +70615,7 @@ stores.inject(MyMetaStore, storeInstance);
70614
70615
  return (0, _odoo_owl.toRaw)(this.clickableCellsStore.clickableCells);
70615
70616
  }
70616
70617
  selectClickableCell(ev, clickableCell) {
70618
+ if (![0, 1].includes(ev.button)) return;
70617
70619
  const { position, action } = clickableCell;
70618
70620
  action(position, this.env, isMiddleClickOrCtrlClick(ev));
70619
70621
  }
@@ -79172,8 +79174,8 @@ exports.stores = stores;
79172
79174
  exports.tokenColors = tokenColors;
79173
79175
  exports.tokenize = tokenize;
79174
79176
 
79175
- __info__.version = "19.1.28";
79176
- __info__.date = "2026-07-20T11:03:20.589Z";
79177
- __info__.hash = "704eb0e";
79177
+ __info__.version = "19.1.30";
79178
+ __info__.date = "2026-07-30T06:53:51.978Z";
79179
+ __info__.hash = "b4f7ab8";
79178
79180
 
79179
79181
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);