@odoo/o-spreadsheet 16.1.26 → 16.1.27

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.
@@ -21761,7 +21761,7 @@ css /* scss */ `
21761
21761
  }
21762
21762
  .o-input-count {
21763
21763
  width: fit-content;
21764
- padding: 4 0 4 4;
21764
+ padding: 4px 0 4px 4px;
21765
21765
  }
21766
21766
  }
21767
21767
  }
@@ -29760,6 +29760,13 @@ class FiltersPlugin extends CorePlugin {
29760
29760
  }
29761
29761
  onDeleteColumnsRows(cmd) {
29762
29762
  for (const table of this.getFilterTables(cmd.sheetId)) {
29763
+ // Remove the filter tables whose data filter headers are in the removed rows.
29764
+ if (cmd.dimension === "ROW" && cmd.elements.includes(table.zone.top)) {
29765
+ const tables = { ...this.tables[cmd.sheetId] };
29766
+ delete tables[table.id];
29767
+ this.history.update("tables", cmd.sheetId, tables);
29768
+ continue;
29769
+ }
29763
29770
  const zone = reduceZoneOnDeletion(table.zone, cmd.dimension === "COL" ? "left" : "top", cmd.elements);
29764
29771
  if (!zone) {
29765
29772
  const tables = { ...this.tables[cmd.sheetId] };
@@ -33099,6 +33106,8 @@ class FilterEvaluationPlugin extends UIPlugin {
33099
33106
  case "EVALUATE_CELLS":
33100
33107
  case "ACTIVATE_SHEET":
33101
33108
  case "REMOVE_FILTER_TABLE":
33109
+ case "ADD_COLUMNS_ROWS":
33110
+ case "REMOVE_COLUMNS_ROWS":
33102
33111
  this.isEvaluationDirty = true;
33103
33112
  break;
33104
33113
  case "START":
@@ -44440,6 +44449,6 @@ exports.setTranslationMethod = setTranslationMethod;
44440
44449
  exports.tokenize = tokenize;
44441
44450
 
44442
44451
 
44443
- __info__.version = '16.1.26';
44444
- __info__.date = '2023-11-02T09:31:23.420Z';
44445
- __info__.hash = '1ddd8d0';
44452
+ __info__.version = '16.1.27';
44453
+ __info__.date = '2023-11-16T11:57:02.419Z';
44454
+ __info__.hash = '81f7214';
@@ -21757,7 +21757,7 @@ css /* scss */ `
21757
21757
  }
21758
21758
  .o-input-count {
21759
21759
  width: fit-content;
21760
- padding: 4 0 4 4;
21760
+ padding: 4px 0 4px 4px;
21761
21761
  }
21762
21762
  }
21763
21763
  }
@@ -29756,6 +29756,13 @@ class FiltersPlugin extends CorePlugin {
29756
29756
  }
29757
29757
  onDeleteColumnsRows(cmd) {
29758
29758
  for (const table of this.getFilterTables(cmd.sheetId)) {
29759
+ // Remove the filter tables whose data filter headers are in the removed rows.
29760
+ if (cmd.dimension === "ROW" && cmd.elements.includes(table.zone.top)) {
29761
+ const tables = { ...this.tables[cmd.sheetId] };
29762
+ delete tables[table.id];
29763
+ this.history.update("tables", cmd.sheetId, tables);
29764
+ continue;
29765
+ }
29759
29766
  const zone = reduceZoneOnDeletion(table.zone, cmd.dimension === "COL" ? "left" : "top", cmd.elements);
29760
29767
  if (!zone) {
29761
29768
  const tables = { ...this.tables[cmd.sheetId] };
@@ -33095,6 +33102,8 @@ class FilterEvaluationPlugin extends UIPlugin {
33095
33102
  case "EVALUATE_CELLS":
33096
33103
  case "ACTIVATE_SHEET":
33097
33104
  case "REMOVE_FILTER_TABLE":
33105
+ case "ADD_COLUMNS_ROWS":
33106
+ case "REMOVE_COLUMNS_ROWS":
33098
33107
  this.isEvaluationDirty = true;
33099
33108
  break;
33100
33109
  case "START":
@@ -44408,6 +44417,6 @@ function addFunction(functionName, functionDescription) {
44408
44417
  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 };
44409
44418
 
44410
44419
 
44411
- __info__.version = '16.1.26';
44412
- __info__.date = '2023-11-02T09:31:23.420Z';
44413
- __info__.hash = '1ddd8d0';
44420
+ __info__.version = '16.1.27';
44421
+ __info__.date = '2023-11-16T11:57:02.419Z';
44422
+ __info__.hash = '81f7214';
@@ -21758,7 +21758,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
21758
21758
  }
21759
21759
  .o-input-count {
21760
21760
  width: fit-content;
21761
- padding: 4 0 4 4;
21761
+ padding: 4px 0 4px 4px;
21762
21762
  }
21763
21763
  }
21764
21764
  }
@@ -29757,6 +29757,13 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
29757
29757
  }
29758
29758
  onDeleteColumnsRows(cmd) {
29759
29759
  for (const table of this.getFilterTables(cmd.sheetId)) {
29760
+ // Remove the filter tables whose data filter headers are in the removed rows.
29761
+ if (cmd.dimension === "ROW" && cmd.elements.includes(table.zone.top)) {
29762
+ const tables = { ...this.tables[cmd.sheetId] };
29763
+ delete tables[table.id];
29764
+ this.history.update("tables", cmd.sheetId, tables);
29765
+ continue;
29766
+ }
29760
29767
  const zone = reduceZoneOnDeletion(table.zone, cmd.dimension === "COL" ? "left" : "top", cmd.elements);
29761
29768
  if (!zone) {
29762
29769
  const tables = { ...this.tables[cmd.sheetId] };
@@ -33096,6 +33103,8 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
33096
33103
  case "EVALUATE_CELLS":
33097
33104
  case "ACTIVATE_SHEET":
33098
33105
  case "REMOVE_FILTER_TABLE":
33106
+ case "ADD_COLUMNS_ROWS":
33107
+ case "REMOVE_COLUMNS_ROWS":
33099
33108
  this.isEvaluationDirty = true;
33100
33109
  break;
33101
33110
  case "START":
@@ -44439,9 +44448,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
44439
44448
  Object.defineProperty(exports, '__esModule', { value: true });
44440
44449
 
44441
44450
 
44442
- __info__.version = '16.1.26';
44443
- __info__.date = '2023-11-02T09:31:23.420Z';
44444
- __info__.hash = '1ddd8d0';
44451
+ __info__.version = '16.1.27';
44452
+ __info__.date = '2023-11-16T11:57:02.419Z';
44453
+ __info__.hash = '81f7214';
44445
44454
 
44446
44455
 
44447
44456
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);