@odoo/o-spreadsheet 16.1.24 → 16.1.25

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.
@@ -39044,11 +39044,19 @@ class GridSelectionPlugin extends UIPlugin {
39044
39044
  }
39045
39045
  }
39046
39046
  getStatisticFnResults() {
39047
- // get deduplicated cells in zones
39048
- const cells = new Set(this.gridSelection.zones
39049
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
39050
- .flat()
39051
- .filter((cell) => cell.type !== CellValueType.empty));
39047
+ const sheetId = this.getters.getActiveSheetId();
39048
+ const cells = new Set();
39049
+ for (const zone of this.gridSelection.zones) {
39050
+ for (const { col, row } of positions(zone)) {
39051
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
39052
+ continue; // Skip hidden cells
39053
+ }
39054
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
39055
+ if (evaluatedCell.type !== CellValueType.empty) {
39056
+ cells.add(evaluatedCell);
39057
+ }
39058
+ }
39059
+ }
39052
39060
  let cellsTypes = new Set();
39053
39061
  let cellsValues = [];
39054
39062
  for (let cell of cells) {
@@ -44427,6 +44435,6 @@ exports.setTranslationMethod = setTranslationMethod;
44427
44435
  exports.tokenize = tokenize;
44428
44436
 
44429
44437
 
44430
- __info__.version = '16.1.24';
44431
- __info__.date = '2023-10-19T14:21:55.097Z';
44432
- __info__.hash = '1b9e9d0';
44438
+ __info__.version = '16.1.25';
44439
+ __info__.date = '2023-10-25T10:02:09.978Z';
44440
+ __info__.hash = '708e3d8';
@@ -39040,11 +39040,19 @@ class GridSelectionPlugin extends UIPlugin {
39040
39040
  }
39041
39041
  }
39042
39042
  getStatisticFnResults() {
39043
- // get deduplicated cells in zones
39044
- const cells = new Set(this.gridSelection.zones
39045
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
39046
- .flat()
39047
- .filter((cell) => cell.type !== CellValueType.empty));
39043
+ const sheetId = this.getters.getActiveSheetId();
39044
+ const cells = new Set();
39045
+ for (const zone of this.gridSelection.zones) {
39046
+ for (const { col, row } of positions(zone)) {
39047
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
39048
+ continue; // Skip hidden cells
39049
+ }
39050
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
39051
+ if (evaluatedCell.type !== CellValueType.empty) {
39052
+ cells.add(evaluatedCell);
39053
+ }
39054
+ }
39055
+ }
39048
39056
  let cellsTypes = new Set();
39049
39057
  let cellsValues = [];
39050
39058
  for (let cell of cells) {
@@ -44395,6 +44403,6 @@ function addFunction(functionName, functionDescription) {
44395
44403
  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 };
44396
44404
 
44397
44405
 
44398
- __info__.version = '16.1.24';
44399
- __info__.date = '2023-10-19T14:21:55.097Z';
44400
- __info__.hash = '1b9e9d0';
44406
+ __info__.version = '16.1.25';
44407
+ __info__.date = '2023-10-25T10:02:09.978Z';
44408
+ __info__.hash = '708e3d8';
@@ -39041,11 +39041,19 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
39041
39041
  }
39042
39042
  }
39043
39043
  getStatisticFnResults() {
39044
- // get deduplicated cells in zones
39045
- const cells = new Set(this.gridSelection.zones
39046
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
39047
- .flat()
39048
- .filter((cell) => cell.type !== CellValueType.empty));
39044
+ const sheetId = this.getters.getActiveSheetId();
39045
+ const cells = new Set();
39046
+ for (const zone of this.gridSelection.zones) {
39047
+ for (const { col, row } of positions(zone)) {
39048
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
39049
+ continue; // Skip hidden cells
39050
+ }
39051
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
39052
+ if (evaluatedCell.type !== CellValueType.empty) {
39053
+ cells.add(evaluatedCell);
39054
+ }
39055
+ }
39056
+ }
39049
39057
  let cellsTypes = new Set();
39050
39058
  let cellsValues = [];
39051
39059
  for (let cell of cells) {
@@ -44426,9 +44434,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
44426
44434
  Object.defineProperty(exports, '__esModule', { value: true });
44427
44435
 
44428
44436
 
44429
- __info__.version = '16.1.24';
44430
- __info__.date = '2023-10-19T14:21:55.097Z';
44431
- __info__.hash = '1b9e9d0';
44437
+ __info__.version = '16.1.25';
44438
+ __info__.date = '2023-10-25T10:02:09.978Z';
44439
+ __info__.hash = '708e3d8';
44432
44440
 
44433
44441
 
44434
44442
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);