@odoo/o-spreadsheet 17.0.74 → 17.0.75

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 17.0.74
6
- * @date 2025-09-19T07:22:25.998Z
7
- * @hash bf7d9c8
5
+ * @version 17.0.75
6
+ * @date 2025-10-07T10:00:00.345Z
7
+ * @hash c8f1120
8
8
  */
9
9
 
10
10
  'use strict';
@@ -793,9 +793,7 @@ function removeIndexesFromArray(array, indexes) {
793
793
  return newArray;
794
794
  }
795
795
  function insertItemsAtIndex(array, items, index) {
796
- const newArray = [...array];
797
- newArray.splice(index, 0, ...items);
798
- return newArray;
796
+ return array.slice(0, index).concat(items).concat(array.slice(index));
799
797
  }
800
798
  function trimContent(content) {
801
799
  const contentLines = content.split("\n");
@@ -38424,7 +38422,7 @@ class HeaderSizePlugin extends CorePlugin {
38424
38422
  let sizes = [...this.sizes[cmd.sheetId][cmd.dimension]];
38425
38423
  const addIndex = getAddHeaderStartIndex(cmd.position, cmd.base);
38426
38424
  const baseSize = sizes[cmd.base];
38427
- sizes.splice(addIndex, 0, ...Array(cmd.quantity).fill(baseSize));
38425
+ sizes = insertItemsAtIndex(sizes, Array(cmd.quantity).fill(baseSize), addIndex);
38428
38426
  this.history.update("sizes", cmd.sheetId, cmd.dimension, sizes);
38429
38427
  break;
38430
38428
  }
@@ -38576,9 +38574,8 @@ class HeaderVisibilityPlugin extends CorePlugin {
38576
38574
  break;
38577
38575
  }
38578
38576
  case "ADD_COLUMNS_ROWS": {
38579
- const hiddenHeaders = [...this.hiddenHeaders[cmd.sheetId][cmd.dimension]];
38580
38577
  const addIndex = getAddHeaderStartIndex(cmd.position, cmd.base);
38581
- hiddenHeaders.splice(addIndex, 0, ...Array(cmd.quantity).fill(false));
38578
+ const hiddenHeaders = insertItemsAtIndex([...this.hiddenHeaders[cmd.sheetId][cmd.dimension]], Array(cmd.quantity).fill(false), addIndex);
38582
38579
  this.history.update("hiddenHeaders", cmd.sheetId, cmd.dimension, hiddenHeaders);
38583
38580
  break;
38584
38581
  }
@@ -58503,6 +58500,6 @@ exports.setTranslationMethod = setTranslationMethod;
58503
58500
  exports.tokenize = tokenize;
58504
58501
 
58505
58502
 
58506
- __info__.version = "17.0.74";
58507
- __info__.date = "2025-09-19T07:22:25.998Z";
58508
- __info__.hash = "bf7d9c8";
58503
+ __info__.version = "17.0.75";
58504
+ __info__.date = "2025-10-07T10:00:00.345Z";
58505
+ __info__.hash = "c8f1120";
@@ -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 17.0.74
6
- * @date 2025-09-19T07:22:25.998Z
7
- * @hash bf7d9c8
5
+ * @version 17.0.75
6
+ * @date 2025-10-07T10:00:00.345Z
7
+ * @hash c8f1120
8
8
  */
9
9
 
10
10
  import { Component, useRef, onMounted, useEffect, onWillPatch, useState, onWillUpdateProps, onPatched, useComponent, useExternalListener, onWillUnmount, onWillStart, xml, useChildSubEnv, useSubEnv, markRaw } from '@odoo/owl';
@@ -791,9 +791,7 @@ function removeIndexesFromArray(array, indexes) {
791
791
  return newArray;
792
792
  }
793
793
  function insertItemsAtIndex(array, items, index) {
794
- const newArray = [...array];
795
- newArray.splice(index, 0, ...items);
796
- return newArray;
794
+ return array.slice(0, index).concat(items).concat(array.slice(index));
797
795
  }
798
796
  function trimContent(content) {
799
797
  const contentLines = content.split("\n");
@@ -38422,7 +38420,7 @@ class HeaderSizePlugin extends CorePlugin {
38422
38420
  let sizes = [...this.sizes[cmd.sheetId][cmd.dimension]];
38423
38421
  const addIndex = getAddHeaderStartIndex(cmd.position, cmd.base);
38424
38422
  const baseSize = sizes[cmd.base];
38425
- sizes.splice(addIndex, 0, ...Array(cmd.quantity).fill(baseSize));
38423
+ sizes = insertItemsAtIndex(sizes, Array(cmd.quantity).fill(baseSize), addIndex);
38426
38424
  this.history.update("sizes", cmd.sheetId, cmd.dimension, sizes);
38427
38425
  break;
38428
38426
  }
@@ -38574,9 +38572,8 @@ class HeaderVisibilityPlugin extends CorePlugin {
38574
38572
  break;
38575
38573
  }
38576
38574
  case "ADD_COLUMNS_ROWS": {
38577
- const hiddenHeaders = [...this.hiddenHeaders[cmd.sheetId][cmd.dimension]];
38578
38575
  const addIndex = getAddHeaderStartIndex(cmd.position, cmd.base);
38579
- hiddenHeaders.splice(addIndex, 0, ...Array(cmd.quantity).fill(false));
38576
+ const hiddenHeaders = insertItemsAtIndex([...this.hiddenHeaders[cmd.sheetId][cmd.dimension]], Array(cmd.quantity).fill(false), addIndex);
38580
38577
  this.history.update("hiddenHeaders", cmd.sheetId, cmd.dimension, hiddenHeaders);
38581
38578
  break;
38582
38579
  }
@@ -58466,6 +58463,6 @@ const constants = {
58466
58463
  export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
58467
58464
 
58468
58465
 
58469
- __info__.version = "17.0.74";
58470
- __info__.date = "2025-09-19T07:22:25.998Z";
58471
- __info__.hash = "bf7d9c8";
58466
+ __info__.version = "17.0.75";
58467
+ __info__.date = "2025-10-07T10:00:00.345Z";
58468
+ __info__.hash = "c8f1120";
@@ -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 17.0.74
6
- * @date 2025-09-19T07:22:25.998Z
7
- * @hash bf7d9c8
5
+ * @version 17.0.75
6
+ * @date 2025-10-07T10:00:00.345Z
7
+ * @hash c8f1120
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -792,9 +792,7 @@
792
792
  return newArray;
793
793
  }
794
794
  function insertItemsAtIndex(array, items, index) {
795
- const newArray = [...array];
796
- newArray.splice(index, 0, ...items);
797
- return newArray;
795
+ return array.slice(0, index).concat(items).concat(array.slice(index));
798
796
  }
799
797
  function trimContent(content) {
800
798
  const contentLines = content.split("\n");
@@ -38423,7 +38421,7 @@
38423
38421
  let sizes = [...this.sizes[cmd.sheetId][cmd.dimension]];
38424
38422
  const addIndex = getAddHeaderStartIndex(cmd.position, cmd.base);
38425
38423
  const baseSize = sizes[cmd.base];
38426
- sizes.splice(addIndex, 0, ...Array(cmd.quantity).fill(baseSize));
38424
+ sizes = insertItemsAtIndex(sizes, Array(cmd.quantity).fill(baseSize), addIndex);
38427
38425
  this.history.update("sizes", cmd.sheetId, cmd.dimension, sizes);
38428
38426
  break;
38429
38427
  }
@@ -38575,9 +38573,8 @@
38575
38573
  break;
38576
38574
  }
38577
38575
  case "ADD_COLUMNS_ROWS": {
38578
- const hiddenHeaders = [...this.hiddenHeaders[cmd.sheetId][cmd.dimension]];
38579
38576
  const addIndex = getAddHeaderStartIndex(cmd.position, cmd.base);
38580
- hiddenHeaders.splice(addIndex, 0, ...Array(cmd.quantity).fill(false));
38577
+ const hiddenHeaders = insertItemsAtIndex([...this.hiddenHeaders[cmd.sheetId][cmd.dimension]], Array(cmd.quantity).fill(false), addIndex);
38581
38578
  this.history.update("hiddenHeaders", cmd.sheetId, cmd.dimension, hiddenHeaders);
38582
38579
  break;
38583
38580
  }
@@ -58502,9 +58499,9 @@
58502
58499
  exports.tokenize = tokenize;
58503
58500
 
58504
58501
 
58505
- __info__.version = "17.0.74";
58506
- __info__.date = "2025-09-19T07:22:25.998Z";
58507
- __info__.hash = "bf7d9c8";
58502
+ __info__.version = "17.0.75";
58503
+ __info__.date = "2025-10-07T10:00:00.345Z";
58504
+ __info__.hash = "c8f1120";
58508
58505
 
58509
58506
 
58510
58507
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);