@odoo/o-spreadsheet 16.2.21 → 16.2.22

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.
@@ -18736,7 +18736,7 @@ css /* scss */ `
18736
18736
  }
18737
18737
  .o-input-count {
18738
18738
  width: fit-content;
18739
- padding: 4 0 4 4;
18739
+ padding: 4px 0 4px 4px;
18740
18740
  }
18741
18741
  }
18742
18742
  }
@@ -29331,6 +29331,13 @@ class FiltersPlugin extends CorePlugin {
29331
29331
  }
29332
29332
  onDeleteColumnsRows(cmd) {
29333
29333
  for (const table of this.getFilterTables(cmd.sheetId)) {
29334
+ // Remove the filter tables whose data filter headers are in the removed rows.
29335
+ if (cmd.dimension === "ROW" && cmd.elements.includes(table.zone.top)) {
29336
+ const tables = { ...this.tables[cmd.sheetId] };
29337
+ delete tables[table.id];
29338
+ this.history.update("tables", cmd.sheetId, tables);
29339
+ continue;
29340
+ }
29334
29341
  const zone = reduceZoneOnDeletion(table.zone, cmd.dimension === "COL" ? "left" : "top", cmd.elements);
29335
29342
  if (!zone) {
29336
29343
  const tables = { ...this.tables[cmd.sheetId] };
@@ -32703,6 +32710,8 @@ class FilterEvaluationPlugin extends UIPlugin {
32703
32710
  case "EVALUATE_CELLS":
32704
32711
  case "ACTIVATE_SHEET":
32705
32712
  case "REMOVE_FILTER_TABLE":
32713
+ case "ADD_COLUMNS_ROWS":
32714
+ case "REMOVE_COLUMNS_ROWS":
32706
32715
  this.isEvaluationDirty = true;
32707
32716
  break;
32708
32717
  case "START":
@@ -45535,6 +45544,6 @@ exports.setTranslationMethod = setTranslationMethod;
45535
45544
  exports.tokenize = tokenize;
45536
45545
 
45537
45546
 
45538
- __info__.version = '16.2.21';
45539
- __info__.date = '2023-11-02T09:31:50.545Z';
45540
- __info__.hash = 'cc30e85';
45547
+ __info__.version = '16.2.22';
45548
+ __info__.date = '2023-11-16T11:57:01.482Z';
45549
+ __info__.hash = 'b78d5dd';
@@ -18732,7 +18732,7 @@ css /* scss */ `
18732
18732
  }
18733
18733
  .o-input-count {
18734
18734
  width: fit-content;
18735
- padding: 4 0 4 4;
18735
+ padding: 4px 0 4px 4px;
18736
18736
  }
18737
18737
  }
18738
18738
  }
@@ -29327,6 +29327,13 @@ class FiltersPlugin extends CorePlugin {
29327
29327
  }
29328
29328
  onDeleteColumnsRows(cmd) {
29329
29329
  for (const table of this.getFilterTables(cmd.sheetId)) {
29330
+ // Remove the filter tables whose data filter headers are in the removed rows.
29331
+ if (cmd.dimension === "ROW" && cmd.elements.includes(table.zone.top)) {
29332
+ const tables = { ...this.tables[cmd.sheetId] };
29333
+ delete tables[table.id];
29334
+ this.history.update("tables", cmd.sheetId, tables);
29335
+ continue;
29336
+ }
29330
29337
  const zone = reduceZoneOnDeletion(table.zone, cmd.dimension === "COL" ? "left" : "top", cmd.elements);
29331
29338
  if (!zone) {
29332
29339
  const tables = { ...this.tables[cmd.sheetId] };
@@ -32699,6 +32706,8 @@ class FilterEvaluationPlugin extends UIPlugin {
32699
32706
  case "EVALUATE_CELLS":
32700
32707
  case "ACTIVATE_SHEET":
32701
32708
  case "REMOVE_FILTER_TABLE":
32709
+ case "ADD_COLUMNS_ROWS":
32710
+ case "REMOVE_COLUMNS_ROWS":
32702
32711
  this.isEvaluationDirty = true;
32703
32712
  break;
32704
32713
  case "START":
@@ -45503,6 +45512,6 @@ function addFunction(functionName, functionDescription) {
45503
45512
  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 };
45504
45513
 
45505
45514
 
45506
- __info__.version = '16.2.21';
45507
- __info__.date = '2023-11-02T09:31:50.545Z';
45508
- __info__.hash = 'cc30e85';
45515
+ __info__.version = '16.2.22';
45516
+ __info__.date = '2023-11-16T11:57:01.482Z';
45517
+ __info__.hash = 'b78d5dd';
@@ -18733,7 +18733,7 @@
18733
18733
  }
18734
18734
  .o-input-count {
18735
18735
  width: fit-content;
18736
- padding: 4 0 4 4;
18736
+ padding: 4px 0 4px 4px;
18737
18737
  }
18738
18738
  }
18739
18739
  }
@@ -29328,6 +29328,13 @@
29328
29328
  }
29329
29329
  onDeleteColumnsRows(cmd) {
29330
29330
  for (const table of this.getFilterTables(cmd.sheetId)) {
29331
+ // Remove the filter tables whose data filter headers are in the removed rows.
29332
+ if (cmd.dimension === "ROW" && cmd.elements.includes(table.zone.top)) {
29333
+ const tables = { ...this.tables[cmd.sheetId] };
29334
+ delete tables[table.id];
29335
+ this.history.update("tables", cmd.sheetId, tables);
29336
+ continue;
29337
+ }
29331
29338
  const zone = reduceZoneOnDeletion(table.zone, cmd.dimension === "COL" ? "left" : "top", cmd.elements);
29332
29339
  if (!zone) {
29333
29340
  const tables = { ...this.tables[cmd.sheetId] };
@@ -32700,6 +32707,8 @@
32700
32707
  case "EVALUATE_CELLS":
32701
32708
  case "ACTIVATE_SHEET":
32702
32709
  case "REMOVE_FILTER_TABLE":
32710
+ case "ADD_COLUMNS_ROWS":
32711
+ case "REMOVE_COLUMNS_ROWS":
32703
32712
  this.isEvaluationDirty = true;
32704
32713
  break;
32705
32714
  case "START":
@@ -45534,9 +45543,9 @@
45534
45543
  Object.defineProperty(exports, '__esModule', { value: true });
45535
45544
 
45536
45545
 
45537
- __info__.version = '16.2.21';
45538
- __info__.date = '2023-11-02T09:31:50.545Z';
45539
- __info__.hash = 'cc30e85';
45546
+ __info__.version = '16.2.22';
45547
+ __info__.date = '2023-11-16T11:57:01.482Z';
45548
+ __info__.hash = 'b78d5dd';
45540
45549
 
45541
45550
 
45542
45551
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);