@odoo/o-spreadsheet 16.0.15 → 16.0.17

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.
@@ -28870,7 +28870,7 @@ class HeaderSizePlugin extends CorePlugin {
28870
28870
  this.sizes = {};
28871
28871
  }
28872
28872
  handle(cmd) {
28873
- var _a, _b, _c;
28873
+ var _a, _b;
28874
28874
  switch (cmd.type) {
28875
28875
  case "CREATE_SHEET": {
28876
28876
  const computedSizes = this.computeSheetSizes(cmd.sheetId);
@@ -28958,7 +28958,8 @@ class HeaderSizePlugin extends CorePlugin {
28958
28958
  }
28959
28959
  break;
28960
28960
  case "UPDATE_CELL":
28961
- if (!((_c = (_b = (_a = this.sizes[cmd.sheetId]) === null || _a === void 0 ? void 0 : _a["ROW"]) === null || _b === void 0 ? void 0 : _b[cmd.row]) === null || _c === void 0 ? void 0 : _c.manualSize)) {
28961
+ const row = (_b = (_a = this.sizes[cmd.sheetId]) === null || _a === void 0 ? void 0 : _a["ROW"]) === null || _b === void 0 ? void 0 : _b[cmd.row];
28962
+ if (row && !row.manualSize) {
28962
28963
  const { sheetId, row } = cmd;
28963
28964
  this.history.update("sizes", sheetId, "ROW", row, "computedSize", lazy(() => this.getRowTallestCellSize(sheetId, row)));
28964
28965
  }
@@ -33074,6 +33075,7 @@ class FilterEvaluationPlugin extends UIPlugin {
33074
33075
  this.filterValues[cmd.sheetId] = {};
33075
33076
  break;
33076
33077
  case "HIDE_COLUMNS_ROWS":
33078
+ case "UNHIDE_COLUMNS_ROWS":
33077
33079
  this.updateHiddenRows();
33078
33080
  break;
33079
33081
  case "UPDATE_FILTER":
@@ -33325,11 +33327,15 @@ class FindAndReplacePlugin extends UIPlugin {
33325
33327
  break;
33326
33328
  case "EVALUATE_CELLS":
33327
33329
  case "UPDATE_CELL":
33330
+ case "REMOVE_FILTER_TABLE":
33331
+ case "UPDATE_FILTER":
33328
33332
  this.isSearchDirty = true;
33329
33333
  break;
33330
33334
  case "UNDO":
33331
33335
  case "REDO":
33332
33336
  case "REMOVE_COLUMNS_ROWS":
33337
+ case "HIDE_COLUMNS_ROWS":
33338
+ case "UNHIDE_COLUMNS_ROWS":
33333
33339
  case "ADD_COLUMNS_ROWS":
33334
33340
  case "ACTIVATE_SHEET":
33335
33341
  this.refreshSearch();
@@ -42855,6 +42861,6 @@ exports.setTranslationMethod = setTranslationMethod;
42855
42861
  exports.tokenize = tokenize;
42856
42862
 
42857
42863
 
42858
- __info__.version = '16.0.15';
42859
- __info__.date = '2023-07-26T12:11:24.020Z';
42860
- __info__.hash = '18da14b';
42864
+ __info__.version = '16.0.17';
42865
+ __info__.date = '2023-08-17T11:08:00.168Z';
42866
+ __info__.hash = '34011c3';
@@ -28866,7 +28866,7 @@ class HeaderSizePlugin extends CorePlugin {
28866
28866
  this.sizes = {};
28867
28867
  }
28868
28868
  handle(cmd) {
28869
- var _a, _b, _c;
28869
+ var _a, _b;
28870
28870
  switch (cmd.type) {
28871
28871
  case "CREATE_SHEET": {
28872
28872
  const computedSizes = this.computeSheetSizes(cmd.sheetId);
@@ -28954,7 +28954,8 @@ class HeaderSizePlugin extends CorePlugin {
28954
28954
  }
28955
28955
  break;
28956
28956
  case "UPDATE_CELL":
28957
- if (!((_c = (_b = (_a = this.sizes[cmd.sheetId]) === null || _a === void 0 ? void 0 : _a["ROW"]) === null || _b === void 0 ? void 0 : _b[cmd.row]) === null || _c === void 0 ? void 0 : _c.manualSize)) {
28957
+ const row = (_b = (_a = this.sizes[cmd.sheetId]) === null || _a === void 0 ? void 0 : _a["ROW"]) === null || _b === void 0 ? void 0 : _b[cmd.row];
28958
+ if (row && !row.manualSize) {
28958
28959
  const { sheetId, row } = cmd;
28959
28960
  this.history.update("sizes", sheetId, "ROW", row, "computedSize", lazy(() => this.getRowTallestCellSize(sheetId, row)));
28960
28961
  }
@@ -33070,6 +33071,7 @@ class FilterEvaluationPlugin extends UIPlugin {
33070
33071
  this.filterValues[cmd.sheetId] = {};
33071
33072
  break;
33072
33073
  case "HIDE_COLUMNS_ROWS":
33074
+ case "UNHIDE_COLUMNS_ROWS":
33073
33075
  this.updateHiddenRows();
33074
33076
  break;
33075
33077
  case "UPDATE_FILTER":
@@ -33321,11 +33323,15 @@ class FindAndReplacePlugin extends UIPlugin {
33321
33323
  break;
33322
33324
  case "EVALUATE_CELLS":
33323
33325
  case "UPDATE_CELL":
33326
+ case "REMOVE_FILTER_TABLE":
33327
+ case "UPDATE_FILTER":
33324
33328
  this.isSearchDirty = true;
33325
33329
  break;
33326
33330
  case "UNDO":
33327
33331
  case "REDO":
33328
33332
  case "REMOVE_COLUMNS_ROWS":
33333
+ case "HIDE_COLUMNS_ROWS":
33334
+ case "UNHIDE_COLUMNS_ROWS":
33329
33335
  case "ADD_COLUMNS_ROWS":
33330
33336
  case "ACTIVATE_SHEET":
33331
33337
  this.refreshSearch();
@@ -42823,6 +42829,6 @@ function addFunction(functionName, functionDescription) {
42823
42829
  export { AbstractChart, CommandResult, CorePlugin, DATETIME_FORMAT, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, cellTypes, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, load, parse, readonlyAllowedCommands, registries, setTranslationMethod, tokenize };
42824
42830
 
42825
42831
 
42826
- __info__.version = '16.0.15';
42827
- __info__.date = '2023-07-26T12:11:24.020Z';
42828
- __info__.hash = '18da14b';
42832
+ __info__.version = '16.0.17';
42833
+ __info__.date = '2023-08-17T11:08:00.168Z';
42834
+ __info__.hash = '34011c3';
@@ -28867,7 +28867,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
28867
28867
  this.sizes = {};
28868
28868
  }
28869
28869
  handle(cmd) {
28870
- var _a, _b, _c;
28870
+ var _a, _b;
28871
28871
  switch (cmd.type) {
28872
28872
  case "CREATE_SHEET": {
28873
28873
  const computedSizes = this.computeSheetSizes(cmd.sheetId);
@@ -28955,7 +28955,8 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
28955
28955
  }
28956
28956
  break;
28957
28957
  case "UPDATE_CELL":
28958
- if (!((_c = (_b = (_a = this.sizes[cmd.sheetId]) === null || _a === void 0 ? void 0 : _a["ROW"]) === null || _b === void 0 ? void 0 : _b[cmd.row]) === null || _c === void 0 ? void 0 : _c.manualSize)) {
28958
+ const row = (_b = (_a = this.sizes[cmd.sheetId]) === null || _a === void 0 ? void 0 : _a["ROW"]) === null || _b === void 0 ? void 0 : _b[cmd.row];
28959
+ if (row && !row.manualSize) {
28959
28960
  const { sheetId, row } = cmd;
28960
28961
  this.history.update("sizes", sheetId, "ROW", row, "computedSize", lazy(() => this.getRowTallestCellSize(sheetId, row)));
28961
28962
  }
@@ -33071,6 +33072,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
33071
33072
  this.filterValues[cmd.sheetId] = {};
33072
33073
  break;
33073
33074
  case "HIDE_COLUMNS_ROWS":
33075
+ case "UNHIDE_COLUMNS_ROWS":
33074
33076
  this.updateHiddenRows();
33075
33077
  break;
33076
33078
  case "UPDATE_FILTER":
@@ -33322,11 +33324,15 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
33322
33324
  break;
33323
33325
  case "EVALUATE_CELLS":
33324
33326
  case "UPDATE_CELL":
33327
+ case "REMOVE_FILTER_TABLE":
33328
+ case "UPDATE_FILTER":
33325
33329
  this.isSearchDirty = true;
33326
33330
  break;
33327
33331
  case "UNDO":
33328
33332
  case "REDO":
33329
33333
  case "REMOVE_COLUMNS_ROWS":
33334
+ case "HIDE_COLUMNS_ROWS":
33335
+ case "UNHIDE_COLUMNS_ROWS":
33330
33336
  case "ADD_COLUMNS_ROWS":
33331
33337
  case "ACTIVATE_SHEET":
33332
33338
  this.refreshSearch();
@@ -42854,9 +42860,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
42854
42860
  Object.defineProperty(exports, '__esModule', { value: true });
42855
42861
 
42856
42862
 
42857
- __info__.version = '16.0.15';
42858
- __info__.date = '2023-07-26T12:11:24.020Z';
42859
- __info__.hash = '18da14b';
42863
+ __info__.version = '16.0.17';
42864
+ __info__.date = '2023-08-17T11:08:00.168Z';
42865
+ __info__.hash = '34011c3';
42860
42866
 
42861
42867
 
42862
42868
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);