@odoo/o-spreadsheet 18.4.0-alpha.5 → 18.4.0-alpha.6

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.4.0-alpha.5
6
- * @date 2025-05-26T12:36:36.693Z
7
- * @hash 398e610
5
+ * @version 18.4.0-alpha.6
6
+ * @date 2025-05-30T08:44:33.216Z
7
+ * @hash eecf7e4
8
8
  */
9
9
 
10
10
  'use strict';
@@ -8534,9 +8534,10 @@ const AGGREGATOR_NAMES = {
8534
8534
  avg: _t("Average"),
8535
8535
  sum: _t("Sum"),
8536
8536
  };
8537
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8537
8538
  const AGGREGATORS_BY_FIELD_TYPE = {
8538
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8539
- char: ["count_distinct", "count"],
8539
+ integer: NUMBER_CHAR_AGGREGATORS,
8540
+ char: NUMBER_CHAR_AGGREGATORS,
8540
8541
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8541
8542
  datetime: ["max", "min", "count_distinct", "count"],
8542
8543
  };
@@ -54389,12 +54390,7 @@ class SpreadsheetPivot {
54389
54390
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
54390
54391
  }
54391
54392
  else {
54392
- if (field.type === "char") {
54393
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
54394
- }
54395
- else {
54396
- entry[field.name] = cell;
54397
- }
54393
+ entry[field.name] = cell;
54398
54394
  }
54399
54395
  }
54400
54396
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -82745,6 +82741,6 @@ exports.tokenColors = tokenColors;
82745
82741
  exports.tokenize = tokenize;
82746
82742
 
82747
82743
 
82748
- __info__.version = "18.4.0-alpha.5";
82749
- __info__.date = "2025-05-26T12:36:36.693Z";
82750
- __info__.hash = "398e610";
82744
+ __info__.version = "18.4.0-alpha.6";
82745
+ __info__.date = "2025-05-30T08:44:33.216Z";
82746
+ __info__.hash = "eecf7e4";
@@ -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.4.0-alpha.5
6
- * @date 2025-05-26T12:36:36.693Z
7
- * @hash 398e610
5
+ * @version 18.4.0-alpha.6
6
+ * @date 2025-05-30T08:44:33.216Z
7
+ * @hash eecf7e4
8
8
  */
9
9
 
10
10
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, useExternalListener, onWillUpdateProps, onWillStart, onWillPatch, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
@@ -8532,9 +8532,10 @@ const AGGREGATOR_NAMES = {
8532
8532
  avg: _t("Average"),
8533
8533
  sum: _t("Sum"),
8534
8534
  };
8535
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8535
8536
  const AGGREGATORS_BY_FIELD_TYPE = {
8536
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8537
- char: ["count_distinct", "count"],
8537
+ integer: NUMBER_CHAR_AGGREGATORS,
8538
+ char: NUMBER_CHAR_AGGREGATORS,
8538
8539
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8539
8540
  datetime: ["max", "min", "count_distinct", "count"],
8540
8541
  };
@@ -54387,12 +54388,7 @@ class SpreadsheetPivot {
54387
54388
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
54388
54389
  }
54389
54390
  else {
54390
- if (field.type === "char") {
54391
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
54392
- }
54393
- else {
54394
- entry[field.name] = cell;
54395
- }
54391
+ entry[field.name] = cell;
54396
54392
  }
54397
54393
  }
54398
54394
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -82696,6 +82692,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
82696
82692
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, LocalTransportService, 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, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
82697
82693
 
82698
82694
 
82699
- __info__.version = "18.4.0-alpha.5";
82700
- __info__.date = "2025-05-26T12:36:36.693Z";
82701
- __info__.hash = "398e610";
82695
+ __info__.version = "18.4.0-alpha.6";
82696
+ __info__.date = "2025-05-30T08:44:33.216Z";
82697
+ __info__.hash = "eecf7e4";
@@ -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.4.0-alpha.5
6
- * @date 2025-05-26T12:36:36.693Z
7
- * @hash 398e610
5
+ * @version 18.4.0-alpha.6
6
+ * @date 2025-05-30T08:44:33.216Z
7
+ * @hash eecf7e4
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -8533,9 +8533,10 @@
8533
8533
  avg: _t("Average"),
8534
8534
  sum: _t("Sum"),
8535
8535
  };
8536
+ const NUMBER_CHAR_AGGREGATORS = ["max", "min", "avg", "sum", "count_distinct", "count"];
8536
8537
  const AGGREGATORS_BY_FIELD_TYPE = {
8537
- integer: ["max", "min", "avg", "sum", "count_distinct", "count"],
8538
- char: ["count_distinct", "count"],
8538
+ integer: NUMBER_CHAR_AGGREGATORS,
8539
+ char: NUMBER_CHAR_AGGREGATORS,
8539
8540
  boolean: ["count_distinct", "count", "bool_and", "bool_or"],
8540
8541
  datetime: ["max", "min", "count_distinct", "count"],
8541
8542
  };
@@ -54388,12 +54389,7 @@ stores.inject(MyMetaStore, storeInstance);
54388
54389
  entry[field.name] = { value: null, type: CellValueType.empty, formattedValue: "" };
54389
54390
  }
54390
54391
  else {
54391
- if (field.type === "char") {
54392
- entry[field.name] = { ...cell, value: cell.formattedValue || null };
54393
- }
54394
- else {
54395
- entry[field.name] = cell;
54396
- }
54392
+ entry[field.name] = cell;
54397
54393
  }
54398
54394
  }
54399
54395
  entry["__count"] = { value: 1, type: CellValueType.number, formattedValue: "1" };
@@ -82744,9 +82740,9 @@ stores.inject(MyMetaStore, storeInstance);
82744
82740
  exports.tokenize = tokenize;
82745
82741
 
82746
82742
 
82747
- __info__.version = "18.4.0-alpha.5";
82748
- __info__.date = "2025-05-26T12:36:36.693Z";
82749
- __info__.hash = "398e610";
82743
+ __info__.version = "18.4.0-alpha.6";
82744
+ __info__.date = "2025-05-30T08:44:33.216Z";
82745
+ __info__.hash = "eecf7e4";
82750
82746
 
82751
82747
 
82752
82748
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);