@odoo/o-spreadsheet 16.4.2 → 16.4.3

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.
@@ -24067,13 +24067,18 @@ class Composer extends owl.Component {
24067
24067
  });
24068
24068
  this.processTokenAtCursor();
24069
24069
  }
24070
- onKeyup() {
24070
+ onKeyup(ev) {
24071
24071
  if (this.contentHelper.el === document.activeElement) {
24072
+ const isSelectingForComposer = this.env.model.getters.isSelectingForComposer();
24073
+ if (isSelectingForComposer && ev.key?.startsWith("Arrow")) {
24074
+ return;
24075
+ }
24072
24076
  const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
24073
24077
  const { start, end } = this.contentHelper.getCurrentSelection();
24074
24078
  if (start !== oldStart || end !== oldEnd) {
24075
24079
  this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", { start, end });
24076
24080
  }
24081
+ this.processTokenAtCursor();
24077
24082
  }
24078
24083
  }
24079
24084
  showAutocomplete(searchTerm) {
@@ -42822,6 +42827,7 @@ class FilterEvaluationPlugin extends UIPlugin {
42822
42827
  this.filterValues[cmd.sheetId] = {};
42823
42828
  break;
42824
42829
  case "HIDE_COLUMNS_ROWS":
42830
+ case "UNHIDE_COLUMNS_ROWS":
42825
42831
  this.updateHiddenRows();
42826
42832
  break;
42827
42833
  case "UPDATE_FILTER":
@@ -50540,6 +50546,6 @@ exports.setTranslationMethod = setTranslationMethod;
50540
50546
  exports.tokenize = tokenize;
50541
50547
 
50542
50548
 
50543
- __info__.version = '16.4.2';
50544
- __info__.date = '2023-08-07T12:49:47.066Z';
50545
- __info__.hash = 'd5697c0';
50549
+ __info__.version = '16.4.3';
50550
+ __info__.date = '2023-08-09T09:08:41.454Z';
50551
+ __info__.hash = '1dbd302';
@@ -6706,7 +6706,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
6706
6706
  onCompositionEnd(): void;
6707
6707
  onKeydown(ev: KeyboardEvent): void;
6708
6708
  onInput(ev: InputEvent): void;
6709
- onKeyup(): void;
6709
+ onKeyup(ev: KeyboardEvent): void;
6710
6710
  showAutocomplete(searchTerm: string): void;
6711
6711
  /**
6712
6712
  * This is required to ensure the content helper selection is
@@ -24063,13 +24063,18 @@ class Composer extends Component {
24063
24063
  });
24064
24064
  this.processTokenAtCursor();
24065
24065
  }
24066
- onKeyup() {
24066
+ onKeyup(ev) {
24067
24067
  if (this.contentHelper.el === document.activeElement) {
24068
+ const isSelectingForComposer = this.env.model.getters.isSelectingForComposer();
24069
+ if (isSelectingForComposer && ev.key?.startsWith("Arrow")) {
24070
+ return;
24071
+ }
24068
24072
  const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
24069
24073
  const { start, end } = this.contentHelper.getCurrentSelection();
24070
24074
  if (start !== oldStart || end !== oldEnd) {
24071
24075
  this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", { start, end });
24072
24076
  }
24077
+ this.processTokenAtCursor();
24073
24078
  }
24074
24079
  }
24075
24080
  showAutocomplete(searchTerm) {
@@ -42818,6 +42823,7 @@ class FilterEvaluationPlugin extends UIPlugin {
42818
42823
  this.filterValues[cmd.sheetId] = {};
42819
42824
  break;
42820
42825
  case "HIDE_COLUMNS_ROWS":
42826
+ case "UNHIDE_COLUMNS_ROWS":
42821
42827
  this.updateHiddenRows();
42822
42828
  break;
42823
42829
  case "UPDATE_FILTER":
@@ -50504,6 +50510,6 @@ const constants = {
50504
50510
  export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
50505
50511
 
50506
50512
 
50507
- __info__.version = '16.4.2';
50508
- __info__.date = '2023-08-07T12:49:47.066Z';
50509
- __info__.hash = 'd5697c0';
50513
+ __info__.version = '16.4.3';
50514
+ __info__.date = '2023-08-09T09:08:41.454Z';
50515
+ __info__.hash = '1dbd302';
@@ -24064,13 +24064,18 @@
24064
24064
  });
24065
24065
  this.processTokenAtCursor();
24066
24066
  }
24067
- onKeyup() {
24067
+ onKeyup(ev) {
24068
24068
  if (this.contentHelper.el === document.activeElement) {
24069
+ const isSelectingForComposer = this.env.model.getters.isSelectingForComposer();
24070
+ if (isSelectingForComposer && ev.key?.startsWith("Arrow")) {
24071
+ return;
24072
+ }
24069
24073
  const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
24070
24074
  const { start, end } = this.contentHelper.getCurrentSelection();
24071
24075
  if (start !== oldStart || end !== oldEnd) {
24072
24076
  this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", { start, end });
24073
24077
  }
24078
+ this.processTokenAtCursor();
24074
24079
  }
24075
24080
  }
24076
24081
  showAutocomplete(searchTerm) {
@@ -42819,6 +42824,7 @@
42819
42824
  this.filterValues[cmd.sheetId] = {};
42820
42825
  break;
42821
42826
  case "HIDE_COLUMNS_ROWS":
42827
+ case "UNHIDE_COLUMNS_ROWS":
42822
42828
  this.updateHiddenRows();
42823
42829
  break;
42824
42830
  case "UPDATE_FILTER":
@@ -50539,9 +50545,9 @@
50539
50545
  Object.defineProperty(exports, '__esModule', { value: true });
50540
50546
 
50541
50547
 
50542
- __info__.version = '16.4.2';
50543
- __info__.date = '2023-08-07T12:49:47.066Z';
50544
- __info__.hash = 'd5697c0';
50548
+ __info__.version = '16.4.3';
50549
+ __info__.date = '2023-08-09T09:08:41.454Z';
50550
+ __info__.hash = '1dbd302';
50545
50551
 
50546
50552
 
50547
50553
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);