@odoo/o-spreadsheet 16.2.19 → 16.2.20

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.
@@ -19398,7 +19398,7 @@ class ClientTag extends owl.Component {
19398
19398
  left: `${x - 1}px`,
19399
19399
  border: `1px solid ${color}`,
19400
19400
  "background-color": color,
19401
- opacity: this.props.active ? "opacity:1 !important" : undefined,
19401
+ opacity: this.props.active ? "1 !important" : undefined,
19402
19402
  });
19403
19403
  }
19404
19404
  }
@@ -39380,11 +39380,19 @@ class GridSelectionPlugin extends UIPlugin {
39380
39380
  }
39381
39381
  }
39382
39382
  getStatisticFnResults() {
39383
- // get deduplicated cells in zones
39384
- const cells = new Set(this.gridSelection.zones
39385
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
39386
- .flat()
39387
- .filter((cell) => cell.type !== CellValueType.empty));
39383
+ const sheetId = this.getters.getActiveSheetId();
39384
+ const cells = new Set();
39385
+ for (const zone of this.gridSelection.zones) {
39386
+ for (const { col, row } of positions(zone)) {
39387
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
39388
+ continue; // Skip hidden cells
39389
+ }
39390
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
39391
+ if (evaluatedCell.type !== CellValueType.empty) {
39392
+ cells.add(evaluatedCell);
39393
+ }
39394
+ }
39395
+ }
39388
39396
  let cellsTypes = new Set();
39389
39397
  let cellsValues = [];
39390
39398
  for (let cell of cells) {
@@ -45526,6 +45534,6 @@ exports.setTranslationMethod = setTranslationMethod;
45526
45534
  exports.tokenize = tokenize;
45527
45535
 
45528
45536
 
45529
- __info__.version = '16.2.19';
45530
- __info__.date = '2023-10-19T14:22:48.890Z';
45531
- __info__.hash = '79980d5';
45537
+ __info__.version = '16.2.20';
45538
+ __info__.date = '2023-10-25T10:00:14.966Z';
45539
+ __info__.hash = '25a402d';
@@ -19394,7 +19394,7 @@ class ClientTag extends Component {
19394
19394
  left: `${x - 1}px`,
19395
19395
  border: `1px solid ${color}`,
19396
19396
  "background-color": color,
19397
- opacity: this.props.active ? "opacity:1 !important" : undefined,
19397
+ opacity: this.props.active ? "1 !important" : undefined,
19398
19398
  });
19399
19399
  }
19400
19400
  }
@@ -39376,11 +39376,19 @@ class GridSelectionPlugin extends UIPlugin {
39376
39376
  }
39377
39377
  }
39378
39378
  getStatisticFnResults() {
39379
- // get deduplicated cells in zones
39380
- const cells = new Set(this.gridSelection.zones
39381
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
39382
- .flat()
39383
- .filter((cell) => cell.type !== CellValueType.empty));
39379
+ const sheetId = this.getters.getActiveSheetId();
39380
+ const cells = new Set();
39381
+ for (const zone of this.gridSelection.zones) {
39382
+ for (const { col, row } of positions(zone)) {
39383
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
39384
+ continue; // Skip hidden cells
39385
+ }
39386
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
39387
+ if (evaluatedCell.type !== CellValueType.empty) {
39388
+ cells.add(evaluatedCell);
39389
+ }
39390
+ }
39391
+ }
39384
39392
  let cellsTypes = new Set();
39385
39393
  let cellsValues = [];
39386
39394
  for (let cell of cells) {
@@ -45494,6 +45502,6 @@ function addFunction(functionName, functionDescription) {
45494
45502
  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 };
45495
45503
 
45496
45504
 
45497
- __info__.version = '16.2.19';
45498
- __info__.date = '2023-10-19T14:22:48.890Z';
45499
- __info__.hash = '79980d5';
45505
+ __info__.version = '16.2.20';
45506
+ __info__.date = '2023-10-25T10:00:14.966Z';
45507
+ __info__.hash = '25a402d';
@@ -19395,7 +19395,7 @@
19395
19395
  left: `${x - 1}px`,
19396
19396
  border: `1px solid ${color}`,
19397
19397
  "background-color": color,
19398
- opacity: this.props.active ? "opacity:1 !important" : undefined,
19398
+ opacity: this.props.active ? "1 !important" : undefined,
19399
19399
  });
19400
19400
  }
19401
19401
  }
@@ -39377,11 +39377,19 @@
39377
39377
  }
39378
39378
  }
39379
39379
  getStatisticFnResults() {
39380
- // get deduplicated cells in zones
39381
- const cells = new Set(this.gridSelection.zones
39382
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
39383
- .flat()
39384
- .filter((cell) => cell.type !== CellValueType.empty));
39380
+ const sheetId = this.getters.getActiveSheetId();
39381
+ const cells = new Set();
39382
+ for (const zone of this.gridSelection.zones) {
39383
+ for (const { col, row } of positions(zone)) {
39384
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
39385
+ continue; // Skip hidden cells
39386
+ }
39387
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
39388
+ if (evaluatedCell.type !== CellValueType.empty) {
39389
+ cells.add(evaluatedCell);
39390
+ }
39391
+ }
39392
+ }
39385
39393
  let cellsTypes = new Set();
39386
39394
  let cellsValues = [];
39387
39395
  for (let cell of cells) {
@@ -45525,9 +45533,9 @@
45525
45533
  Object.defineProperty(exports, '__esModule', { value: true });
45526
45534
 
45527
45535
 
45528
- __info__.version = '16.2.19';
45529
- __info__.date = '2023-10-19T14:22:48.890Z';
45530
- __info__.hash = '79980d5';
45536
+ __info__.version = '16.2.20';
45537
+ __info__.date = '2023-10-25T10:00:14.966Z';
45538
+ __info__.hash = '25a402d';
45531
45539
 
45532
45540
 
45533
45541
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);