@odoo/o-spreadsheet 16.3.14 → 16.3.15

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.
@@ -20480,7 +20480,7 @@ class ClientTag extends owl.Component {
20480
20480
  left: `${x - 1}px`,
20481
20481
  border: `1px solid ${color}`,
20482
20482
  "background-color": color,
20483
- opacity: this.props.active ? "opacity:1 !important" : undefined,
20483
+ opacity: this.props.active ? "1 !important" : undefined,
20484
20484
  });
20485
20485
  }
20486
20486
  }
@@ -41552,11 +41552,19 @@ class GridSelectionPlugin extends UIPlugin {
41552
41552
  }
41553
41553
  }
41554
41554
  getStatisticFnResults() {
41555
- // get deduplicated cells in zones
41556
- const cells = new Set(this.gridSelection.zones
41557
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
41558
- .flat()
41559
- .filter((cell) => cell.type !== CellValueType.empty));
41555
+ const sheetId = this.getters.getActiveSheetId();
41556
+ const cells = new Set();
41557
+ for (const zone of this.gridSelection.zones) {
41558
+ for (const { col, row } of positions(zone)) {
41559
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
41560
+ continue; // Skip hidden cells
41561
+ }
41562
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
41563
+ if (evaluatedCell.type !== CellValueType.empty) {
41564
+ cells.add(evaluatedCell);
41565
+ }
41566
+ }
41567
+ }
41560
41568
  let cellsTypes = new Set();
41561
41569
  let cellsValues = [];
41562
41570
  for (let cell of cells) {
@@ -43221,6 +43229,7 @@ const BORDER_POSITIONS = [
43221
43229
  css /* scss */ `
43222
43230
  .o-border-selector {
43223
43231
  padding: 4px;
43232
+ background-color: white;
43224
43233
  }
43225
43234
  .o-divider {
43226
43235
  border-right: 1px solid #e0e2e4;
@@ -47786,6 +47795,6 @@ exports.setTranslationMethod = setTranslationMethod;
47786
47795
  exports.tokenize = tokenize;
47787
47796
 
47788
47797
 
47789
- __info__.version = '16.3.14';
47790
- __info__.date = '2023-10-19T14:21:33.996Z';
47791
- __info__.hash = '7b90b3d';
47798
+ __info__.version = '16.3.15';
47799
+ __info__.date = '2023-10-25T10:03:43.272Z';
47800
+ __info__.hash = 'fb7c4dd';
@@ -20476,7 +20476,7 @@ class ClientTag extends Component {
20476
20476
  left: `${x - 1}px`,
20477
20477
  border: `1px solid ${color}`,
20478
20478
  "background-color": color,
20479
- opacity: this.props.active ? "opacity:1 !important" : undefined,
20479
+ opacity: this.props.active ? "1 !important" : undefined,
20480
20480
  });
20481
20481
  }
20482
20482
  }
@@ -41548,11 +41548,19 @@ class GridSelectionPlugin extends UIPlugin {
41548
41548
  }
41549
41549
  }
41550
41550
  getStatisticFnResults() {
41551
- // get deduplicated cells in zones
41552
- const cells = new Set(this.gridSelection.zones
41553
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
41554
- .flat()
41555
- .filter((cell) => cell.type !== CellValueType.empty));
41551
+ const sheetId = this.getters.getActiveSheetId();
41552
+ const cells = new Set();
41553
+ for (const zone of this.gridSelection.zones) {
41554
+ for (const { col, row } of positions(zone)) {
41555
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
41556
+ continue; // Skip hidden cells
41557
+ }
41558
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
41559
+ if (evaluatedCell.type !== CellValueType.empty) {
41560
+ cells.add(evaluatedCell);
41561
+ }
41562
+ }
41563
+ }
41556
41564
  let cellsTypes = new Set();
41557
41565
  let cellsValues = [];
41558
41566
  for (let cell of cells) {
@@ -43217,6 +43225,7 @@ const BORDER_POSITIONS = [
43217
43225
  css /* scss */ `
43218
43226
  .o-border-selector {
43219
43227
  padding: 4px;
43228
+ background-color: white;
43220
43229
  }
43221
43230
  .o-divider {
43222
43231
  border-right: 1px solid #e0e2e4;
@@ -47754,6 +47763,6 @@ function addFunction(functionName, functionDescription) {
47754
47763
  export { AbstractChart, CommandResult, CorePlugin, 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, setDefaultSheetViewSize, setTranslationMethod, tokenize };
47755
47764
 
47756
47765
 
47757
- __info__.version = '16.3.14';
47758
- __info__.date = '2023-10-19T14:21:33.996Z';
47759
- __info__.hash = '7b90b3d';
47766
+ __info__.version = '16.3.15';
47767
+ __info__.date = '2023-10-25T10:03:43.272Z';
47768
+ __info__.hash = 'fb7c4dd';
@@ -20477,7 +20477,7 @@
20477
20477
  left: `${x - 1}px`,
20478
20478
  border: `1px solid ${color}`,
20479
20479
  "background-color": color,
20480
- opacity: this.props.active ? "opacity:1 !important" : undefined,
20480
+ opacity: this.props.active ? "1 !important" : undefined,
20481
20481
  });
20482
20482
  }
20483
20483
  }
@@ -41549,11 +41549,19 @@
41549
41549
  }
41550
41550
  }
41551
41551
  getStatisticFnResults() {
41552
- // get deduplicated cells in zones
41553
- const cells = new Set(this.gridSelection.zones
41554
- .map((zone) => this.getters.getEvaluatedCellsInZone(this.getters.getActiveSheetId(), zone))
41555
- .flat()
41556
- .filter((cell) => cell.type !== CellValueType.empty));
41552
+ const sheetId = this.getters.getActiveSheetId();
41553
+ const cells = new Set();
41554
+ for (const zone of this.gridSelection.zones) {
41555
+ for (const { col, row } of positions(zone)) {
41556
+ if (this.getters.isRowHidden(sheetId, row) || this.getters.isColHidden(sheetId, col)) {
41557
+ continue; // Skip hidden cells
41558
+ }
41559
+ const evaluatedCell = this.getters.getEvaluatedCell({ sheetId, col, row });
41560
+ if (evaluatedCell.type !== CellValueType.empty) {
41561
+ cells.add(evaluatedCell);
41562
+ }
41563
+ }
41564
+ }
41557
41565
  let cellsTypes = new Set();
41558
41566
  let cellsValues = [];
41559
41567
  for (let cell of cells) {
@@ -43218,6 +43226,7 @@
43218
43226
  css /* scss */ `
43219
43227
  .o-border-selector {
43220
43228
  padding: 4px;
43229
+ background-color: white;
43221
43230
  }
43222
43231
  .o-divider {
43223
43232
  border-right: 1px solid #e0e2e4;
@@ -47785,9 +47794,9 @@
47785
47794
  Object.defineProperty(exports, '__esModule', { value: true });
47786
47795
 
47787
47796
 
47788
- __info__.version = '16.3.14';
47789
- __info__.date = '2023-10-19T14:21:33.996Z';
47790
- __info__.hash = '7b90b3d';
47797
+ __info__.version = '16.3.15';
47798
+ __info__.date = '2023-10-25T10:03:43.272Z';
47799
+ __info__.hash = 'fb7c4dd';
47791
47800
 
47792
47801
 
47793
47802
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);