@odoo/o-spreadsheet 18.4.14 → 18.4.16

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.14
6
- * @date 2025-10-16T06:39:40.249Z
7
- * @hash bc55c40
5
+ * @version 18.4.16
6
+ * @date 2025-11-03T12:31:57.153Z
7
+ * @hash 1ba569f
8
8
  */
9
9
 
10
10
  'use strict';
@@ -32235,7 +32235,7 @@ class ContentEditableHelper {
32235
32235
  else {
32236
32236
  text += NEWLINE;
32237
32237
  }
32238
- emptyParagraph = ["<br>", "<span><br></span>"].includes(current.value.innerHTML);
32238
+ emptyParagraph = isEmptyParagraph(current.value);
32239
32239
  continue;
32240
32240
  }
32241
32241
  if (!current.value.hasChildNodes()) {
@@ -32256,6 +32256,21 @@ function compareContentToSpanElement(content, node) {
32256
32256
  const sameContent = node.innerText === content.value;
32257
32257
  return sameColor && sameClass && sameContent;
32258
32258
  }
32259
+ const doc = new DOMParser();
32260
+ const brNode = doc.parseFromString("<br>", "text/html").body.firstChild;
32261
+ const spanBrNode = doc.parseFromString("<span><br></span>", "text/html").body.firstChild;
32262
+ function isEmptyParagraph(node) {
32263
+ if (node.childNodes.length > 1)
32264
+ return false;
32265
+ const node2 = node.firstChild?.cloneNode(true);
32266
+ if (!node2)
32267
+ return true;
32268
+ if (!(node2 instanceof Element))
32269
+ return false;
32270
+ node2.removeAttribute("class");
32271
+ node2.removeAttribute("style");
32272
+ return node2.isEqualNode(brNode) || node2.isEqualNode(spanBrNode) || false;
32273
+ }
32259
32274
 
32260
32275
  // -----------------------------------------------------------------------------
32261
32276
  // Formula Assistant component
@@ -41815,8 +41830,10 @@ const LEGACY_VERSION_MAPPING = {
41815
41830
  17: "17.4",
41816
41831
  16: "17.3",
41817
41832
  15: "17.2",
41833
+ "14.5": "16.4.1",
41818
41834
  14: "16.4",
41819
41835
  13: "16.3",
41836
+ "12.5": "15.4.1",
41820
41837
  12: "15.4",
41821
41838
  // not accurate starting at this point
41822
41839
  11: "0.10",
@@ -84905,6 +84922,6 @@ exports.tokenColors = tokenColors;
84905
84922
  exports.tokenize = tokenize;
84906
84923
 
84907
84924
 
84908
- __info__.version = "18.4.14";
84909
- __info__.date = "2025-10-16T06:39:40.249Z";
84910
- __info__.hash = "bc55c40";
84925
+ __info__.version = "18.4.16";
84926
+ __info__.date = "2025-11-03T12:31:57.153Z";
84927
+ __info__.hash = "1ba569f";
@@ -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.14
6
- * @date 2025-10-16T06:39:40.249Z
7
- * @hash bc55c40
5
+ * @version 18.4.16
6
+ * @date 2025-11-03T12:31:57.153Z
7
+ * @hash 1ba569f
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';
@@ -32233,7 +32233,7 @@ class ContentEditableHelper {
32233
32233
  else {
32234
32234
  text += NEWLINE;
32235
32235
  }
32236
- emptyParagraph = ["<br>", "<span><br></span>"].includes(current.value.innerHTML);
32236
+ emptyParagraph = isEmptyParagraph(current.value);
32237
32237
  continue;
32238
32238
  }
32239
32239
  if (!current.value.hasChildNodes()) {
@@ -32254,6 +32254,21 @@ function compareContentToSpanElement(content, node) {
32254
32254
  const sameContent = node.innerText === content.value;
32255
32255
  return sameColor && sameClass && sameContent;
32256
32256
  }
32257
+ const doc = new DOMParser();
32258
+ const brNode = doc.parseFromString("<br>", "text/html").body.firstChild;
32259
+ const spanBrNode = doc.parseFromString("<span><br></span>", "text/html").body.firstChild;
32260
+ function isEmptyParagraph(node) {
32261
+ if (node.childNodes.length > 1)
32262
+ return false;
32263
+ const node2 = node.firstChild?.cloneNode(true);
32264
+ if (!node2)
32265
+ return true;
32266
+ if (!(node2 instanceof Element))
32267
+ return false;
32268
+ node2.removeAttribute("class");
32269
+ node2.removeAttribute("style");
32270
+ return node2.isEqualNode(brNode) || node2.isEqualNode(spanBrNode) || false;
32271
+ }
32257
32272
 
32258
32273
  // -----------------------------------------------------------------------------
32259
32274
  // Formula Assistant component
@@ -41813,8 +41828,10 @@ const LEGACY_VERSION_MAPPING = {
41813
41828
  17: "17.4",
41814
41829
  16: "17.3",
41815
41830
  15: "17.2",
41831
+ "14.5": "16.4.1",
41816
41832
  14: "16.4",
41817
41833
  13: "16.3",
41834
+ "12.5": "15.4.1",
41818
41835
  12: "15.4",
41819
41836
  // not accurate starting at this point
41820
41837
  11: "0.10",
@@ -84855,6 +84872,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
84855
84872
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, ClientDisconnectedError, 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 };
84856
84873
 
84857
84874
 
84858
- __info__.version = "18.4.14";
84859
- __info__.date = "2025-10-16T06:39:40.249Z";
84860
- __info__.hash = "bc55c40";
84875
+ __info__.version = "18.4.16";
84876
+ __info__.date = "2025-11-03T12:31:57.153Z";
84877
+ __info__.hash = "1ba569f";
@@ -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.14
6
- * @date 2025-10-16T06:39:40.249Z
7
- * @hash bc55c40
5
+ * @version 18.4.16
6
+ * @date 2025-11-03T12:31:57.153Z
7
+ * @hash 1ba569f
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -32234,7 +32234,7 @@ stores.inject(MyMetaStore, storeInstance);
32234
32234
  else {
32235
32235
  text += NEWLINE;
32236
32236
  }
32237
- emptyParagraph = ["<br>", "<span><br></span>"].includes(current.value.innerHTML);
32237
+ emptyParagraph = isEmptyParagraph(current.value);
32238
32238
  continue;
32239
32239
  }
32240
32240
  if (!current.value.hasChildNodes()) {
@@ -32255,6 +32255,21 @@ stores.inject(MyMetaStore, storeInstance);
32255
32255
  const sameContent = node.innerText === content.value;
32256
32256
  return sameColor && sameClass && sameContent;
32257
32257
  }
32258
+ const doc = new DOMParser();
32259
+ const brNode = doc.parseFromString("<br>", "text/html").body.firstChild;
32260
+ const spanBrNode = doc.parseFromString("<span><br></span>", "text/html").body.firstChild;
32261
+ function isEmptyParagraph(node) {
32262
+ if (node.childNodes.length > 1)
32263
+ return false;
32264
+ const node2 = node.firstChild?.cloneNode(true);
32265
+ if (!node2)
32266
+ return true;
32267
+ if (!(node2 instanceof Element))
32268
+ return false;
32269
+ node2.removeAttribute("class");
32270
+ node2.removeAttribute("style");
32271
+ return node2.isEqualNode(brNode) || node2.isEqualNode(spanBrNode) || false;
32272
+ }
32258
32273
 
32259
32274
  // -----------------------------------------------------------------------------
32260
32275
  // Formula Assistant component
@@ -41814,8 +41829,10 @@ stores.inject(MyMetaStore, storeInstance);
41814
41829
  17: "17.4",
41815
41830
  16: "17.3",
41816
41831
  15: "17.2",
41832
+ "14.5": "16.4.1",
41817
41833
  14: "16.4",
41818
41834
  13: "16.3",
41835
+ "12.5": "15.4.1",
41819
41836
  12: "15.4",
41820
41837
  // not accurate starting at this point
41821
41838
  11: "0.10",
@@ -84904,9 +84921,9 @@ stores.inject(MyMetaStore, storeInstance);
84904
84921
  exports.tokenize = tokenize;
84905
84922
 
84906
84923
 
84907
- __info__.version = "18.4.14";
84908
- __info__.date = "2025-10-16T06:39:40.249Z";
84909
- __info__.hash = "bc55c40";
84924
+ __info__.version = "18.4.16";
84925
+ __info__.date = "2025-11-03T12:31:57.153Z";
84926
+ __info__.hash = "1ba569f";
84910
84927
 
84911
84928
 
84912
84929
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);