@odoo/o-spreadsheet 17.0.73 → 17.0.74

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.73
6
- * @date 2025-09-11T08:40:46.367Z
7
- * @hash a11c622
5
+ * @version 17.0.74
6
+ * @date 2025-09-19T07:22:25.998Z
7
+ * @hash bf7d9c8
8
8
  */
9
9
 
10
10
  'use strict';
@@ -778,8 +778,19 @@ function memoize(func) {
778
778
  },
779
779
  }[funcName];
780
780
  }
781
+ /**
782
+ * Removes the specified indexes from the array.
783
+ * Sparse (empty) elements are transformed to undefined (unless their index is explicitly removed).
784
+ */
781
785
  function removeIndexesFromArray(array, indexes) {
782
- return array.filter((_, index) => !indexes.includes(index));
786
+ const toRemove = new Set(indexes);
787
+ const newArray = [];
788
+ for (let i = 0; i < array.length; i++) {
789
+ if (!toRemove.has(i)) {
790
+ newArray.push(array[i]);
791
+ }
792
+ }
793
+ return newArray;
783
794
  }
784
795
  function insertItemsAtIndex(array, items, index) {
785
796
  const newArray = [...array];
@@ -15922,8 +15933,9 @@ function interactiveSortSelection(env, sheetId, anchor, zone, sortDirection) {
15922
15933
  }
15923
15934
 
15924
15935
  function sortMatrix(matrix, locale, ...criteria) {
15925
- for (const [i, value] of criteria.entries()) {
15926
- assert(() => value !== undefined, _t("Value for parameter %d is missing, while the function [[FUNCTION_NAME]] expect a number or a range.", i + 1));
15936
+ for (let i = 0; i < criteria.length; i++) {
15937
+ const param = i % 2 === 0 ? "sort_column" : "is_ascending";
15938
+ assert(() => criteria[i] !== undefined, _t("Value for parameter %s is missing in [[FUNCTION_NAME]].", param));
15927
15939
  }
15928
15940
  const sortingOrders = [];
15929
15941
  const sortColumns = [];
@@ -58491,6 +58503,6 @@ exports.setTranslationMethod = setTranslationMethod;
58491
58503
  exports.tokenize = tokenize;
58492
58504
 
58493
58505
 
58494
- __info__.version = "17.0.73";
58495
- __info__.date = "2025-09-11T08:40:46.367Z";
58496
- __info__.hash = "a11c622";
58506
+ __info__.version = "17.0.74";
58507
+ __info__.date = "2025-09-19T07:22:25.998Z";
58508
+ __info__.hash = "bf7d9c8";
@@ -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.73
6
- * @date 2025-09-11T08:40:46.367Z
7
- * @hash a11c622
5
+ * @version 17.0.74
6
+ * @date 2025-09-19T07:22:25.998Z
7
+ * @hash bf7d9c8
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';
@@ -776,8 +776,19 @@ function memoize(func) {
776
776
  },
777
777
  }[funcName];
778
778
  }
779
+ /**
780
+ * Removes the specified indexes from the array.
781
+ * Sparse (empty) elements are transformed to undefined (unless their index is explicitly removed).
782
+ */
779
783
  function removeIndexesFromArray(array, indexes) {
780
- return array.filter((_, index) => !indexes.includes(index));
784
+ const toRemove = new Set(indexes);
785
+ const newArray = [];
786
+ for (let i = 0; i < array.length; i++) {
787
+ if (!toRemove.has(i)) {
788
+ newArray.push(array[i]);
789
+ }
790
+ }
791
+ return newArray;
781
792
  }
782
793
  function insertItemsAtIndex(array, items, index) {
783
794
  const newArray = [...array];
@@ -15920,8 +15931,9 @@ function interactiveSortSelection(env, sheetId, anchor, zone, sortDirection) {
15920
15931
  }
15921
15932
 
15922
15933
  function sortMatrix(matrix, locale, ...criteria) {
15923
- for (const [i, value] of criteria.entries()) {
15924
- assert(() => value !== undefined, _t("Value for parameter %d is missing, while the function [[FUNCTION_NAME]] expect a number or a range.", i + 1));
15934
+ for (let i = 0; i < criteria.length; i++) {
15935
+ const param = i % 2 === 0 ? "sort_column" : "is_ascending";
15936
+ assert(() => criteria[i] !== undefined, _t("Value for parameter %s is missing in [[FUNCTION_NAME]].", param));
15925
15937
  }
15926
15938
  const sortingOrders = [];
15927
15939
  const sortColumns = [];
@@ -58454,6 +58466,6 @@ const constants = {
58454
58466
  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 };
58455
58467
 
58456
58468
 
58457
- __info__.version = "17.0.73";
58458
- __info__.date = "2025-09-11T08:40:46.367Z";
58459
- __info__.hash = "a11c622";
58469
+ __info__.version = "17.0.74";
58470
+ __info__.date = "2025-09-19T07:22:25.998Z";
58471
+ __info__.hash = "bf7d9c8";
@@ -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.73
6
- * @date 2025-09-11T08:40:46.367Z
7
- * @hash a11c622
5
+ * @version 17.0.74
6
+ * @date 2025-09-19T07:22:25.998Z
7
+ * @hash bf7d9c8
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -777,8 +777,19 @@
777
777
  },
778
778
  }[funcName];
779
779
  }
780
+ /**
781
+ * Removes the specified indexes from the array.
782
+ * Sparse (empty) elements are transformed to undefined (unless their index is explicitly removed).
783
+ */
780
784
  function removeIndexesFromArray(array, indexes) {
781
- return array.filter((_, index) => !indexes.includes(index));
785
+ const toRemove = new Set(indexes);
786
+ const newArray = [];
787
+ for (let i = 0; i < array.length; i++) {
788
+ if (!toRemove.has(i)) {
789
+ newArray.push(array[i]);
790
+ }
791
+ }
792
+ return newArray;
782
793
  }
783
794
  function insertItemsAtIndex(array, items, index) {
784
795
  const newArray = [...array];
@@ -15921,8 +15932,9 @@
15921
15932
  }
15922
15933
 
15923
15934
  function sortMatrix(matrix, locale, ...criteria) {
15924
- for (const [i, value] of criteria.entries()) {
15925
- assert(() => value !== undefined, _t("Value for parameter %d is missing, while the function [[FUNCTION_NAME]] expect a number or a range.", i + 1));
15935
+ for (let i = 0; i < criteria.length; i++) {
15936
+ const param = i % 2 === 0 ? "sort_column" : "is_ascending";
15937
+ assert(() => criteria[i] !== undefined, _t("Value for parameter %s is missing in [[FUNCTION_NAME]].", param));
15926
15938
  }
15927
15939
  const sortingOrders = [];
15928
15940
  const sortColumns = [];
@@ -58490,9 +58502,9 @@
58490
58502
  exports.tokenize = tokenize;
58491
58503
 
58492
58504
 
58493
- __info__.version = "17.0.73";
58494
- __info__.date = "2025-09-11T08:40:46.367Z";
58495
- __info__.hash = "a11c622";
58505
+ __info__.version = "17.0.74";
58506
+ __info__.date = "2025-09-19T07:22:25.998Z";
58507
+ __info__.hash = "bf7d9c8";
58496
58508
 
58497
58509
 
58498
58510
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);