@odoo/o-spreadsheet 17.0.77 → 17.0.78

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 17.0.77
6
- * @date 2025-11-12T14:14:11.932Z
7
- * @hash 789de5e
5
+ * @version 17.0.78
6
+ * @date 2025-11-24T07:39:26.523Z
7
+ * @hash 498c3fc
8
8
  */
9
9
 
10
10
  'use strict';
@@ -27210,9 +27210,7 @@ class Composer extends owl.Component {
27210
27210
  return;
27211
27211
  }
27212
27212
  const newSelection = this.contentHelper.getCurrentSelection();
27213
- this.env.model.dispatch("STOP_COMPOSER_RANGE_SELECTION");
27214
27213
  this.props.onComposerContentFocused();
27215
- if (this.props.focus === "inactive") ;
27216
27214
  this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", newSelection);
27217
27215
  this.processTokenAtCursor();
27218
27216
  }
@@ -28894,7 +28892,10 @@ class AbstractResizer extends owl.Component {
28894
28892
  this.state.waitingForMove = false;
28895
28893
  }
28896
28894
  onMouseMove(ev) {
28897
- if (this.state.isResizing || this.state.isMoving || this.state.isSelecting) {
28895
+ if (this.env.model.getters.isReadonly() ||
28896
+ this.state.isResizing ||
28897
+ this.state.isMoving ||
28898
+ this.state.isSelecting) {
28898
28899
  return;
28899
28900
  }
28900
28901
  this._computeHandleDisplay(ev);
@@ -28947,6 +28948,10 @@ class AbstractResizer extends owl.Component {
28947
28948
  if (index < 0) {
28948
28949
  return;
28949
28950
  }
28951
+ if (this.env.model.getters.isReadonly()) {
28952
+ this._selectElement(index, false);
28953
+ return;
28954
+ }
28950
28955
  if (this.state.waitingForMove === true) {
28951
28956
  if (!this.env.model.getters.isGridSelectionActive()) {
28952
28957
  this._selectElement(index, false);
@@ -49583,6 +49588,7 @@ class EditionPlugin extends UIPlugin {
49583
49588
  case "CHANGE_COMPOSER_CURSOR_SELECTION":
49584
49589
  this.selectionStart = cmd.start;
49585
49590
  this.selectionEnd = cmd.end;
49591
+ this.mode = "editing";
49586
49592
  break;
49587
49593
  case "STOP_COMPOSER_RANGE_SELECTION":
49588
49594
  if (this.isSelectingForComposer()) {
@@ -58511,6 +58517,6 @@ exports.setTranslationMethod = setTranslationMethod;
58511
58517
  exports.tokenize = tokenize;
58512
58518
 
58513
58519
 
58514
- __info__.version = "17.0.77";
58515
- __info__.date = "2025-11-12T14:14:11.932Z";
58516
- __info__.hash = "789de5e";
58520
+ __info__.version = "17.0.78";
58521
+ __info__.date = "2025-11-24T07:39:26.523Z";
58522
+ __info__.hash = "498c3fc";
@@ -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 17.0.77
6
- * @date 2025-11-12T14:14:11.932Z
7
- * @hash 789de5e
5
+ * @version 17.0.78
6
+ * @date 2025-11-24T07:39:26.523Z
7
+ * @hash 498c3fc
8
8
  */
9
9
 
10
10
  import { Component, useRef, onMounted, useEffect, onWillPatch, useState, onWillUpdateProps, onPatched, useComponent, useExternalListener, onWillUnmount, onWillStart, xml, useChildSubEnv, useSubEnv, markRaw } from '@odoo/owl';
@@ -27208,9 +27208,7 @@ class Composer extends Component {
27208
27208
  return;
27209
27209
  }
27210
27210
  const newSelection = this.contentHelper.getCurrentSelection();
27211
- this.env.model.dispatch("STOP_COMPOSER_RANGE_SELECTION");
27212
27211
  this.props.onComposerContentFocused();
27213
- if (this.props.focus === "inactive") ;
27214
27212
  this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", newSelection);
27215
27213
  this.processTokenAtCursor();
27216
27214
  }
@@ -28892,7 +28890,10 @@ class AbstractResizer extends Component {
28892
28890
  this.state.waitingForMove = false;
28893
28891
  }
28894
28892
  onMouseMove(ev) {
28895
- if (this.state.isResizing || this.state.isMoving || this.state.isSelecting) {
28893
+ if (this.env.model.getters.isReadonly() ||
28894
+ this.state.isResizing ||
28895
+ this.state.isMoving ||
28896
+ this.state.isSelecting) {
28896
28897
  return;
28897
28898
  }
28898
28899
  this._computeHandleDisplay(ev);
@@ -28945,6 +28946,10 @@ class AbstractResizer extends Component {
28945
28946
  if (index < 0) {
28946
28947
  return;
28947
28948
  }
28949
+ if (this.env.model.getters.isReadonly()) {
28950
+ this._selectElement(index, false);
28951
+ return;
28952
+ }
28948
28953
  if (this.state.waitingForMove === true) {
28949
28954
  if (!this.env.model.getters.isGridSelectionActive()) {
28950
28955
  this._selectElement(index, false);
@@ -49581,6 +49586,7 @@ class EditionPlugin extends UIPlugin {
49581
49586
  case "CHANGE_COMPOSER_CURSOR_SELECTION":
49582
49587
  this.selectionStart = cmd.start;
49583
49588
  this.selectionEnd = cmd.end;
49589
+ this.mode = "editing";
49584
49590
  break;
49585
49591
  case "STOP_COMPOSER_RANGE_SELECTION":
49586
49592
  if (this.isSelectingForComposer()) {
@@ -58474,6 +58480,6 @@ const constants = {
58474
58480
  export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
58475
58481
 
58476
58482
 
58477
- __info__.version = "17.0.77";
58478
- __info__.date = "2025-11-12T14:14:11.932Z";
58479
- __info__.hash = "789de5e";
58483
+ __info__.version = "17.0.78";
58484
+ __info__.date = "2025-11-24T07:39:26.523Z";
58485
+ __info__.hash = "498c3fc";
@@ -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 17.0.77
6
- * @date 2025-11-12T14:14:11.932Z
7
- * @hash 789de5e
5
+ * @version 17.0.78
6
+ * @date 2025-11-24T07:39:26.523Z
7
+ * @hash 498c3fc
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -27209,9 +27209,7 @@
27209
27209
  return;
27210
27210
  }
27211
27211
  const newSelection = this.contentHelper.getCurrentSelection();
27212
- this.env.model.dispatch("STOP_COMPOSER_RANGE_SELECTION");
27213
27212
  this.props.onComposerContentFocused();
27214
- if (this.props.focus === "inactive") ;
27215
27213
  this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", newSelection);
27216
27214
  this.processTokenAtCursor();
27217
27215
  }
@@ -28893,7 +28891,10 @@
28893
28891
  this.state.waitingForMove = false;
28894
28892
  }
28895
28893
  onMouseMove(ev) {
28896
- if (this.state.isResizing || this.state.isMoving || this.state.isSelecting) {
28894
+ if (this.env.model.getters.isReadonly() ||
28895
+ this.state.isResizing ||
28896
+ this.state.isMoving ||
28897
+ this.state.isSelecting) {
28897
28898
  return;
28898
28899
  }
28899
28900
  this._computeHandleDisplay(ev);
@@ -28946,6 +28947,10 @@
28946
28947
  if (index < 0) {
28947
28948
  return;
28948
28949
  }
28950
+ if (this.env.model.getters.isReadonly()) {
28951
+ this._selectElement(index, false);
28952
+ return;
28953
+ }
28949
28954
  if (this.state.waitingForMove === true) {
28950
28955
  if (!this.env.model.getters.isGridSelectionActive()) {
28951
28956
  this._selectElement(index, false);
@@ -49582,6 +49587,7 @@
49582
49587
  case "CHANGE_COMPOSER_CURSOR_SELECTION":
49583
49588
  this.selectionStart = cmd.start;
49584
49589
  this.selectionEnd = cmd.end;
49590
+ this.mode = "editing";
49585
49591
  break;
49586
49592
  case "STOP_COMPOSER_RANGE_SELECTION":
49587
49593
  if (this.isSelectingForComposer()) {
@@ -58510,9 +58516,9 @@
58510
58516
  exports.tokenize = tokenize;
58511
58517
 
58512
58518
 
58513
- __info__.version = "17.0.77";
58514
- __info__.date = "2025-11-12T14:14:11.932Z";
58515
- __info__.hash = "789de5e";
58519
+ __info__.version = "17.0.78";
58520
+ __info__.date = "2025-11-24T07:39:26.523Z";
58521
+ __info__.hash = "498c3fc";
58516
58522
 
58517
58523
 
58518
58524
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);