@odoo/o-spreadsheet 16.2.32 → 16.2.33

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.
@@ -16889,7 +16889,7 @@ class SelectionInput extends owl.Component {
16889
16889
  : this.props.ranges
16890
16890
  ? this.props.ranges.map((xc, id) => ({
16891
16891
  xc,
16892
- id,
16892
+ id: id + 1,
16893
16893
  isFocused: false,
16894
16894
  }))
16895
16895
  : [];
@@ -36196,9 +36196,9 @@ class SelectionInputsManagerPlugin extends UIPlugin {
36196
36196
  break;
36197
36197
  case "FOCUS_RANGE":
36198
36198
  case "CHANGE_RANGE":
36199
- if (cmd.id !== this.focusedInputId) {
36200
- const input = this.inputs[cmd.id];
36201
- const range = input.ranges.find((range) => range.id === cmd.rangeId);
36199
+ const input = this.inputs[cmd.id];
36200
+ const range = input.ranges.find((range) => range.id === cmd.rangeId);
36201
+ if (range) {
36202
36202
  const sheetId = this.getters.getActiveSheetId();
36203
36203
  const zone = this.getters.getRangeFromSheetXC(sheetId, (range === null || range === void 0 ? void 0 : range.xc) || "A1").zone;
36204
36204
  this.selection.capture(input, { cell: { col: zone.left, row: zone.top }, zone }, { handleEvent: input.handleEvent.bind(input) });
@@ -45791,6 +45791,6 @@ exports.setTranslationMethod = setTranslationMethod;
45791
45791
  exports.tokenize = tokenize;
45792
45792
 
45793
45793
 
45794
- __info__.version = '16.2.32';
45795
- __info__.date = '2024-02-16T14:17:18.471Z';
45796
- __info__.hash = 'd5e57e6';
45794
+ __info__.version = '16.2.33';
45795
+ __info__.date = '2024-02-28T12:25:47.181Z';
45796
+ __info__.hash = '52d01b2';
@@ -16885,7 +16885,7 @@ class SelectionInput extends Component {
16885
16885
  : this.props.ranges
16886
16886
  ? this.props.ranges.map((xc, id) => ({
16887
16887
  xc,
16888
- id,
16888
+ id: id + 1,
16889
16889
  isFocused: false,
16890
16890
  }))
16891
16891
  : [];
@@ -36192,9 +36192,9 @@ class SelectionInputsManagerPlugin extends UIPlugin {
36192
36192
  break;
36193
36193
  case "FOCUS_RANGE":
36194
36194
  case "CHANGE_RANGE":
36195
- if (cmd.id !== this.focusedInputId) {
36196
- const input = this.inputs[cmd.id];
36197
- const range = input.ranges.find((range) => range.id === cmd.rangeId);
36195
+ const input = this.inputs[cmd.id];
36196
+ const range = input.ranges.find((range) => range.id === cmd.rangeId);
36197
+ if (range) {
36198
36198
  const sheetId = this.getters.getActiveSheetId();
36199
36199
  const zone = this.getters.getRangeFromSheetXC(sheetId, (range === null || range === void 0 ? void 0 : range.xc) || "A1").zone;
36200
36200
  this.selection.capture(input, { cell: { col: zone.left, row: zone.top }, zone }, { handleEvent: input.handleEvent.bind(input) });
@@ -45759,6 +45759,6 @@ function addFunction(functionName, functionDescription) {
45759
45759
  export { AbstractChart, CommandResult, CorePlugin, DATETIME_FORMAT, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setTranslationMethod, tokenize };
45760
45760
 
45761
45761
 
45762
- __info__.version = '16.2.32';
45763
- __info__.date = '2024-02-16T14:17:18.471Z';
45764
- __info__.hash = 'd5e57e6';
45762
+ __info__.version = '16.2.33';
45763
+ __info__.date = '2024-02-28T12:25:47.181Z';
45764
+ __info__.hash = '52d01b2';
@@ -16886,7 +16886,7 @@
16886
16886
  : this.props.ranges
16887
16887
  ? this.props.ranges.map((xc, id) => ({
16888
16888
  xc,
16889
- id,
16889
+ id: id + 1,
16890
16890
  isFocused: false,
16891
16891
  }))
16892
16892
  : [];
@@ -36193,9 +36193,9 @@
36193
36193
  break;
36194
36194
  case "FOCUS_RANGE":
36195
36195
  case "CHANGE_RANGE":
36196
- if (cmd.id !== this.focusedInputId) {
36197
- const input = this.inputs[cmd.id];
36198
- const range = input.ranges.find((range) => range.id === cmd.rangeId);
36196
+ const input = this.inputs[cmd.id];
36197
+ const range = input.ranges.find((range) => range.id === cmd.rangeId);
36198
+ if (range) {
36199
36199
  const sheetId = this.getters.getActiveSheetId();
36200
36200
  const zone = this.getters.getRangeFromSheetXC(sheetId, (range === null || range === void 0 ? void 0 : range.xc) || "A1").zone;
36201
36201
  this.selection.capture(input, { cell: { col: zone.left, row: zone.top }, zone }, { handleEvent: input.handleEvent.bind(input) });
@@ -45790,9 +45790,9 @@
45790
45790
  Object.defineProperty(exports, '__esModule', { value: true });
45791
45791
 
45792
45792
 
45793
- __info__.version = '16.2.32';
45794
- __info__.date = '2024-02-16T14:17:18.471Z';
45795
- __info__.hash = 'd5e57e6';
45793
+ __info__.version = '16.2.33';
45794
+ __info__.date = '2024-02-28T12:25:47.181Z';
45795
+ __info__.hash = '52d01b2';
45796
45796
 
45797
45797
 
45798
45798
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);