@odoo/o-spreadsheet 18.1.22 → 18.1.23

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.1.22
6
- * @date 2025-05-26T12:35:56.145Z
7
- * @hash ff4b0ba
5
+ * @version 18.1.23
6
+ * @date 2025-05-30T08:45:44.408Z
7
+ * @hash a21fa01
8
8
  */
9
9
 
10
10
  'use strict';
@@ -8295,9 +8295,10 @@ const AGGREGATOR_NAMES = {
8295
8295
  avg: _t("Average"),
8296
8296
  sum: _t("Sum"),
8297
8297
  };
8298
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8298
8299
  const AGGREGATORS_BY_FIELD_TYPE = {
8299
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8300
- char: ["count_distinct", "count"],
8300
+ integer: NUMBER_CHAR_AGGREGATORS,
8301
+ char: NUMBER_CHAR_AGGREGATORS,
8301
8302
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8302
8303
  };
8303
8304
  const AGGREGATORS = {};
@@ -46756,12 +46757,7 @@ class SpreadsheetPivot {
46756
46757
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
46757
46758
  }
46758
46759
  else {
46759
- if (field.type === "char") {
46760
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
46761
- }
46762
- else {
46763
- entry[field.name] = cell;
46764
- }
46760
+ entry[field.name] = cell;
46765
46761
  }
46766
46762
  }
46767
46763
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -76437,6 +76433,6 @@ exports.tokenColors = tokenColors;
76437
76433
  exports.tokenize = tokenize;
76438
76434
 
76439
76435
 
76440
- __info__.version = "18.1.22";
76441
- __info__.date = "2025-05-26T12:35:56.145Z";
76442
- __info__.hash = "ff4b0ba";
76436
+ __info__.version = "18.1.23";
76437
+ __info__.date = "2025-05-30T08:45:44.408Z";
76438
+ __info__.hash = "a21fa01";
@@ -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.1.22
6
- * @date 2025-05-26T12:35:56.145Z
7
- * @hash ff4b0ba
5
+ * @version 18.1.23
6
+ * @date 2025-05-30T08:45:44.408Z
7
+ * @hash a21fa01
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';
@@ -8293,9 +8293,10 @@ const AGGREGATOR_NAMES = {
8293
8293
  avg: _t("Average"),
8294
8294
  sum: _t("Sum"),
8295
8295
  };
8296
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8296
8297
  const AGGREGATORS_BY_FIELD_TYPE = {
8297
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8298
- char: ["count_distinct", "count"],
8298
+ integer: NUMBER_CHAR_AGGREGATORS,
8299
+ char: NUMBER_CHAR_AGGREGATORS,
8299
8300
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8300
8301
  };
8301
8302
  const AGGREGATORS = {};
@@ -46754,12 +46755,7 @@ class SpreadsheetPivot {
46754
46755
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
46755
46756
  }
46756
46757
  else {
46757
- if (field.type === "char") {
46758
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
46759
- }
46760
- else {
46761
- entry[field.name] = cell;
46762
- }
46758
+ entry[field.name] = cell;
46763
46759
  }
46764
46760
  }
46765
46761
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -76391,6 +76387,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
76391
76387
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, 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 };
76392
76388
 
76393
76389
 
76394
- __info__.version = "18.1.22";
76395
- __info__.date = "2025-05-26T12:35:56.145Z";
76396
- __info__.hash = "ff4b0ba";
76390
+ __info__.version = "18.1.23";
76391
+ __info__.date = "2025-05-30T08:45:44.408Z";
76392
+ __info__.hash = "a21fa01";
@@ -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.1.22
6
- * @date 2025-05-26T12:35:56.145Z
7
- * @hash ff4b0ba
5
+ * @version 18.1.23
6
+ * @date 2025-05-30T08:45:44.408Z
7
+ * @hash a21fa01
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -8294,9 +8294,10 @@
8294
8294
  avg: _t("Average"),
8295
8295
  sum: _t("Sum"),
8296
8296
  };
8297
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8297
8298
  const AGGREGATORS_BY_FIELD_TYPE = {
8298
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8299
- char: ["count_distinct", "count"],
8299
+ integer: NUMBER_CHAR_AGGREGATORS,
8300
+ char: NUMBER_CHAR_AGGREGATORS,
8300
8301
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8301
8302
  };
8302
8303
  const AGGREGATORS = {};
@@ -46755,12 +46756,7 @@ stores.inject(MyMetaStore, storeInstance);
46755
46756
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
46756
46757
  }
46757
46758
  else {
46758
- if (field.type === "char") {
46759
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
46760
- }
46761
- else {
46762
- entry[field.name] = cell;
46763
- }
46759
+ entry[field.name] = cell;
46764
46760
  }
46765
46761
  }
46766
46762
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -76436,9 +76432,9 @@ stores.inject(MyMetaStore, storeInstance);
76436
76432
  exports.tokenize = tokenize;
76437
76433
 
76438
76434
 
76439
- __info__.version = "18.1.22";
76440
- __info__.date = "2025-05-26T12:35:56.145Z";
76441
- __info__.hash = "ff4b0ba";
76435
+ __info__.version = "18.1.23";
76436
+ __info__.date = "2025-05-30T08:45:44.408Z";
76437
+ __info__.hash = "a21fa01";
76442
76438
 
76443
76439
 
76444
76440
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);