@odoo/o-spreadsheet 18.0.30 → 18.0.31

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.
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 18.0.30
6
- * @date 2025-05-26T12:35:05.184Z
7
- * @hash 838c4f7
5
+ * @version 18.0.31
6
+ * @date 2025-05-30T08:43:10.315Z
7
+ * @hash d201086
8
8
  */
9
9
 
10
10
  'use strict';
@@ -8116,9 +8116,10 @@ const AGGREGATOR_NAMES = {
8116
8116
  avg: _t("Average"),
8117
8117
  sum: _t("Sum"),
8118
8118
  };
8119
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8119
8120
  const AGGREGATORS_BY_FIELD_TYPE = {
8120
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8121
- char: ["count_distinct", "count"],
8121
+ integer: NUMBER_CHAR_AGGREGATORS,
8122
+ char: NUMBER_CHAR_AGGREGATORS,
8122
8123
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8123
8124
  };
8124
8125
  const AGGREGATORS = {};
@@ -44664,12 +44665,7 @@ class SpreadsheetPivot {
44664
44665
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
44665
44666
  }
44666
44667
  else {
44667
- if (field.type === "char") {
44668
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
44669
- }
44670
- else {
44671
- entry[field.name] = cell;
44672
- }
44668
+ entry[field.name] = cell;
44673
44669
  }
44674
44670
  }
44675
44671
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -74404,6 +74400,6 @@ exports.tokenColors = tokenColors;
74404
74400
  exports.tokenize = tokenize;
74405
74401
 
74406
74402
 
74407
- __info__.version = "18.0.30";
74408
- __info__.date = "2025-05-26T12:35:05.184Z";
74409
- __info__.hash = "838c4f7";
74403
+ __info__.version = "18.0.31";
74404
+ __info__.date = "2025-05-30T08:43:10.315Z";
74405
+ __info__.hash = "d201086";
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 18.0.30
6
- * @date 2025-05-26T12:35:05.184Z
7
- * @hash 838c4f7
5
+ * @version 18.0.31
6
+ * @date 2025-05-30T08:43:10.315Z
7
+ * @hash d201086
8
8
  */
9
9
 
10
10
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
@@ -8114,9 +8114,10 @@ const AGGREGATOR_NAMES = {
8114
8114
  avg: _t("Average"),
8115
8115
  sum: _t("Sum"),
8116
8116
  };
8117
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8117
8118
  const AGGREGATORS_BY_FIELD_TYPE = {
8118
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8119
- char: ["count_distinct", "count"],
8119
+ integer: NUMBER_CHAR_AGGREGATORS,
8120
+ char: NUMBER_CHAR_AGGREGATORS,
8120
8121
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8121
8122
  };
8122
8123
  const AGGREGATORS = {};
@@ -44662,12 +44663,7 @@ class SpreadsheetPivot {
44662
44663
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
44663
44664
  }
44664
44665
  else {
44665
- if (field.type === "char") {
44666
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
44667
- }
44668
- else {
44669
- entry[field.name] = cell;
44670
- }
44666
+ entry[field.name] = cell;
44671
44667
  }
44672
44668
  }
44673
44669
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -74359,6 +74355,6 @@ const constants = {
74359
74355
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
74360
74356
 
74361
74357
 
74362
- __info__.version = "18.0.30";
74363
- __info__.date = "2025-05-26T12:35:05.184Z";
74364
- __info__.hash = "838c4f7";
74358
+ __info__.version = "18.0.31";
74359
+ __info__.date = "2025-05-30T08:43:10.315Z";
74360
+ __info__.hash = "d201086";
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 18.0.30
6
- * @date 2025-05-26T12:35:05.184Z
7
- * @hash 838c4f7
5
+ * @version 18.0.31
6
+ * @date 2025-05-30T08:43:10.315Z
7
+ * @hash d201086
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -8115,9 +8115,10 @@
8115
8115
  avg: _t("Average"),
8116
8116
  sum: _t("Sum"),
8117
8117
  };
8118
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8118
8119
  const AGGREGATORS_BY_FIELD_TYPE = {
8119
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8120
- char: ["count_distinct", "count"],
8120
+ integer: NUMBER_CHAR_AGGREGATORS,
8121
+ char: NUMBER_CHAR_AGGREGATORS,
8121
8122
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8122
8123
  };
8123
8124
  const AGGREGATORS = {};
@@ -44663,12 +44664,7 @@ stores.inject(MyMetaStore, storeInstance);
44663
44664
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
44664
44665
  }
44665
44666
  else {
44666
- if (field.type === "char") {
44667
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
44668
- }
44669
- else {
44670
- entry[field.name] = cell;
44671
- }
44667
+ entry[field.name] = cell;
44672
44668
  }
44673
44669
  }
44674
44670
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -74403,9 +74399,9 @@ stores.inject(MyMetaStore, storeInstance);
74403
74399
  exports.tokenize = tokenize;
74404
74400
 
74405
74401
 
74406
- __info__.version = "18.0.30";
74407
- __info__.date = "2025-05-26T12:35:05.184Z";
74408
- __info__.hash = "838c4f7";
74402
+ __info__.version = "18.0.31";
74403
+ __info__.date = "2025-05-30T08:43:10.315Z";
74404
+ __info__.hash = "d201086";
74409
74405
 
74410
74406
 
74411
74407
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);