@odoo/o-spreadsheet 18.4.10 → 18.4.12
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.
- package/dist/o-spreadsheet.cjs.js +41 -22
- package/dist/o-spreadsheet.esm.js +41 -22
- package/dist/o-spreadsheet.iife.js +41 -22
- package/dist/o-spreadsheet.iife.min.js +4 -4
- package/dist/o_spreadsheet.xml +9 -3
- package/package.json +15 -2
|
@@ -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.
|
|
6
|
-
* @date 2025-09-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.4.12
|
|
6
|
+
* @date 2025-09-23T12:37:43.708Z
|
|
7
|
+
* @hash 0c91305
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -891,8 +891,19 @@ function memoize(func) {
|
|
|
891
891
|
},
|
|
892
892
|
}[funcName];
|
|
893
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Removes the specified indexes from the array.
|
|
896
|
+
* Sparse (empty) elements are transformed to undefined (unless their index is explicitly removed).
|
|
897
|
+
*/
|
|
894
898
|
function removeIndexesFromArray(array, indexes) {
|
|
895
|
-
|
|
899
|
+
const toRemove = new Set(indexes);
|
|
900
|
+
const newArray = [];
|
|
901
|
+
for (let i = 0; i < array.length; i++) {
|
|
902
|
+
if (!toRemove.has(i)) {
|
|
903
|
+
newArray.push(array[i]);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
return newArray;
|
|
896
907
|
}
|
|
897
908
|
function insertItemsAtIndex(array, items, index) {
|
|
898
909
|
const newArray = [...array];
|
|
@@ -15205,8 +15216,9 @@ function interactiveSort(env, sheetId, anchor, zone, sortDirection, sortOptions)
|
|
|
15205
15216
|
}
|
|
15206
15217
|
|
|
15207
15218
|
function sortMatrix(matrix, locale, ...criteria) {
|
|
15208
|
-
for (
|
|
15209
|
-
|
|
15219
|
+
for (let i = 0; i < criteria.length; i++) {
|
|
15220
|
+
const param = i % 2 === 0 ? "sort_column" : "is_ascending";
|
|
15221
|
+
assert(criteria[i] !== undefined, _t("Value for parameter %s is missing in [[FUNCTION_NAME]].", param));
|
|
15210
15222
|
}
|
|
15211
15223
|
const sortingOrders = [];
|
|
15212
15224
|
const sortColumns = [];
|
|
@@ -54492,12 +54504,13 @@ class PivotLayoutConfigurator extends owl.Component {
|
|
|
54492
54504
|
addCalculatedMeasure() {
|
|
54493
54505
|
const { measures } = this.props.definition;
|
|
54494
54506
|
const measureName = this.env.model.getters.generateNewCalculatedMeasureName(measures);
|
|
54507
|
+
const aggregator = "sum";
|
|
54495
54508
|
this.props.onDimensionsUpdated({
|
|
54496
54509
|
measures: measures.concat([
|
|
54497
54510
|
{
|
|
54498
|
-
id: this.getMeasureId(measureName),
|
|
54511
|
+
id: this.getMeasureId(measureName, aggregator),
|
|
54499
54512
|
fieldName: measureName,
|
|
54500
|
-
aggregator
|
|
54513
|
+
aggregator,
|
|
54501
54514
|
computedBy: {
|
|
54502
54515
|
sheetId: this.env.model.getters.getActiveSheetId(),
|
|
54503
54516
|
formula: "=0",
|
|
@@ -67963,7 +67976,7 @@ function withPivotPresentationLayer (PivotClass) {
|
|
|
67963
67976
|
return { value: 0 };
|
|
67964
67977
|
}
|
|
67965
67978
|
const { columns, rows } = super.definition;
|
|
67966
|
-
if (columns.length + rows.length !== domain.length) {
|
|
67979
|
+
if (measure.aggregator && columns.length + rows.length !== domain.length) {
|
|
67967
67980
|
const values = this.getValuesToAggregate(measure, domain);
|
|
67968
67981
|
const aggregator = AGGREGATORS_FN[measure.aggregator];
|
|
67969
67982
|
if (!aggregator) {
|
|
@@ -67982,11 +67995,17 @@ function withPivotPresentationLayer (PivotClass) {
|
|
|
67982
67995
|
if (columns.find((col) => col.nameWithGranularity === symbolName)) {
|
|
67983
67996
|
const { colDomain } = domainToColRowDomain(this, domain);
|
|
67984
67997
|
const symbolIndex = colDomain.findIndex((node) => node.field === symbolName);
|
|
67998
|
+
if (symbolIndex === -1) {
|
|
67999
|
+
return new NotAvailableError();
|
|
68000
|
+
}
|
|
67985
68001
|
return this.getPivotHeaderValueAndFormat(colDomain.slice(0, symbolIndex + 1));
|
|
67986
68002
|
}
|
|
67987
68003
|
if (rows.find((row) => row.nameWithGranularity === symbolName)) {
|
|
67988
68004
|
const { rowDomain } = domainToColRowDomain(this, domain);
|
|
67989
68005
|
const symbolIndex = rowDomain.findIndex((row) => row.field === symbolName);
|
|
68006
|
+
if (symbolIndex === -1) {
|
|
68007
|
+
return new NotAvailableError();
|
|
68008
|
+
}
|
|
67990
68009
|
return this.getPivotHeaderValueAndFormat(rowDomain.slice(0, symbolIndex + 1));
|
|
67991
68010
|
}
|
|
67992
68011
|
return this.getPivotCellValueAndFormat(symbolName, domain);
|
|
@@ -71638,7 +71657,10 @@ class SortPlugin extends UIPlugin {
|
|
|
71638
71657
|
return "Success" /* CommandResult.Success */;
|
|
71639
71658
|
}
|
|
71640
71659
|
checkArrayFormulaInSortZone({ sheetId, zone }) {
|
|
71641
|
-
const arrayFormulaInZone = positions(zone).some(({ col, row }) =>
|
|
71660
|
+
const arrayFormulaInZone = positions(zone).some(({ col, row }) => {
|
|
71661
|
+
const originPosition = this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row });
|
|
71662
|
+
return originPosition && !deepEquals(originPosition, { sheetId, col, row });
|
|
71663
|
+
});
|
|
71642
71664
|
return arrayFormulaInZone ? "SortZoneWithArrayFormulas" /* CommandResult.SortZoneWithArrayFormulas */ : "Success" /* CommandResult.Success */;
|
|
71643
71665
|
}
|
|
71644
71666
|
/**
|
|
@@ -74323,13 +74345,10 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
74323
74345
|
const deltaCol = isBasedBefore && isCol ? thickness : 0;
|
|
74324
74346
|
const deltaRow = isBasedBefore && !isCol ? thickness : 0;
|
|
74325
74347
|
const toRemove = isBasedBefore ? cmd.elements.map((el) => el + thickness) : cmd.elements;
|
|
74326
|
-
const originalSize =
|
|
74327
|
-
|
|
74328
|
-
|
|
74329
|
-
|
|
74330
|
-
const isDefaultCol = isCol && size === DEFAULT_CELL_WIDTH;
|
|
74331
|
-
return [element, isDefaultCol ? undefined : size];
|
|
74332
|
-
}));
|
|
74348
|
+
const originalSize = {};
|
|
74349
|
+
for (const element of toRemove) {
|
|
74350
|
+
originalSize[element] = this.getters.getHeaderSize(cmd.sheetId, cmd.dimension, element);
|
|
74351
|
+
}
|
|
74333
74352
|
const target = [
|
|
74334
74353
|
{
|
|
74335
74354
|
left: isCol ? start + deltaCol : 0,
|
|
@@ -74365,11 +74384,11 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
74365
74384
|
for (const element of toRemove) {
|
|
74366
74385
|
const size = originalSize[element];
|
|
74367
74386
|
const currentSize = this.getters.getHeaderSize(cmd.sheetId, cmd.dimension, currentIndex);
|
|
74368
|
-
if (size
|
|
74387
|
+
if (size !== currentSize) {
|
|
74369
74388
|
resizingGroups[size] ??= [];
|
|
74370
74389
|
resizingGroups[size].push(currentIndex);
|
|
74371
|
-
currentIndex += 1;
|
|
74372
74390
|
}
|
|
74391
|
+
currentIndex += 1;
|
|
74373
74392
|
}
|
|
74374
74393
|
for (const size in resizingGroups) {
|
|
74375
74394
|
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
@@ -84840,6 +84859,6 @@ exports.tokenColors = tokenColors;
|
|
|
84840
84859
|
exports.tokenize = tokenize;
|
|
84841
84860
|
|
|
84842
84861
|
|
|
84843
|
-
__info__.version = "18.4.
|
|
84844
|
-
__info__.date = "2025-09-
|
|
84845
|
-
__info__.hash = "
|
|
84862
|
+
__info__.version = "18.4.12";
|
|
84863
|
+
__info__.date = "2025-09-23T12:37:43.708Z";
|
|
84864
|
+
__info__.hash = "0c91305";
|
|
@@ -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.
|
|
6
|
-
* @date 2025-09-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.4.12
|
|
6
|
+
* @date 2025-09-23T12:37:43.708Z
|
|
7
|
+
* @hash 0c91305
|
|
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';
|
|
@@ -889,8 +889,19 @@ function memoize(func) {
|
|
|
889
889
|
},
|
|
890
890
|
}[funcName];
|
|
891
891
|
}
|
|
892
|
+
/**
|
|
893
|
+
* Removes the specified indexes from the array.
|
|
894
|
+
* Sparse (empty) elements are transformed to undefined (unless their index is explicitly removed).
|
|
895
|
+
*/
|
|
892
896
|
function removeIndexesFromArray(array, indexes) {
|
|
893
|
-
|
|
897
|
+
const toRemove = new Set(indexes);
|
|
898
|
+
const newArray = [];
|
|
899
|
+
for (let i = 0; i < array.length; i++) {
|
|
900
|
+
if (!toRemove.has(i)) {
|
|
901
|
+
newArray.push(array[i]);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
return newArray;
|
|
894
905
|
}
|
|
895
906
|
function insertItemsAtIndex(array, items, index) {
|
|
896
907
|
const newArray = [...array];
|
|
@@ -15203,8 +15214,9 @@ function interactiveSort(env, sheetId, anchor, zone, sortDirection, sortOptions)
|
|
|
15203
15214
|
}
|
|
15204
15215
|
|
|
15205
15216
|
function sortMatrix(matrix, locale, ...criteria) {
|
|
15206
|
-
for (
|
|
15207
|
-
|
|
15217
|
+
for (let i = 0; i < criteria.length; i++) {
|
|
15218
|
+
const param = i % 2 === 0 ? "sort_column" : "is_ascending";
|
|
15219
|
+
assert(criteria[i] !== undefined, _t("Value for parameter %s is missing in [[FUNCTION_NAME]].", param));
|
|
15208
15220
|
}
|
|
15209
15221
|
const sortingOrders = [];
|
|
15210
15222
|
const sortColumns = [];
|
|
@@ -54490,12 +54502,13 @@ class PivotLayoutConfigurator extends Component {
|
|
|
54490
54502
|
addCalculatedMeasure() {
|
|
54491
54503
|
const { measures } = this.props.definition;
|
|
54492
54504
|
const measureName = this.env.model.getters.generateNewCalculatedMeasureName(measures);
|
|
54505
|
+
const aggregator = "sum";
|
|
54493
54506
|
this.props.onDimensionsUpdated({
|
|
54494
54507
|
measures: measures.concat([
|
|
54495
54508
|
{
|
|
54496
|
-
id: this.getMeasureId(measureName),
|
|
54509
|
+
id: this.getMeasureId(measureName, aggregator),
|
|
54497
54510
|
fieldName: measureName,
|
|
54498
|
-
aggregator
|
|
54511
|
+
aggregator,
|
|
54499
54512
|
computedBy: {
|
|
54500
54513
|
sheetId: this.env.model.getters.getActiveSheetId(),
|
|
54501
54514
|
formula: "=0",
|
|
@@ -67961,7 +67974,7 @@ function withPivotPresentationLayer (PivotClass) {
|
|
|
67961
67974
|
return { value: 0 };
|
|
67962
67975
|
}
|
|
67963
67976
|
const { columns, rows } = super.definition;
|
|
67964
|
-
if (columns.length + rows.length !== domain.length) {
|
|
67977
|
+
if (measure.aggregator && columns.length + rows.length !== domain.length) {
|
|
67965
67978
|
const values = this.getValuesToAggregate(measure, domain);
|
|
67966
67979
|
const aggregator = AGGREGATORS_FN[measure.aggregator];
|
|
67967
67980
|
if (!aggregator) {
|
|
@@ -67980,11 +67993,17 @@ function withPivotPresentationLayer (PivotClass) {
|
|
|
67980
67993
|
if (columns.find((col) => col.nameWithGranularity === symbolName)) {
|
|
67981
67994
|
const { colDomain } = domainToColRowDomain(this, domain);
|
|
67982
67995
|
const symbolIndex = colDomain.findIndex((node) => node.field === symbolName);
|
|
67996
|
+
if (symbolIndex === -1) {
|
|
67997
|
+
return new NotAvailableError();
|
|
67998
|
+
}
|
|
67983
67999
|
return this.getPivotHeaderValueAndFormat(colDomain.slice(0, symbolIndex + 1));
|
|
67984
68000
|
}
|
|
67985
68001
|
if (rows.find((row) => row.nameWithGranularity === symbolName)) {
|
|
67986
68002
|
const { rowDomain } = domainToColRowDomain(this, domain);
|
|
67987
68003
|
const symbolIndex = rowDomain.findIndex((row) => row.field === symbolName);
|
|
68004
|
+
if (symbolIndex === -1) {
|
|
68005
|
+
return new NotAvailableError();
|
|
68006
|
+
}
|
|
67988
68007
|
return this.getPivotHeaderValueAndFormat(rowDomain.slice(0, symbolIndex + 1));
|
|
67989
68008
|
}
|
|
67990
68009
|
return this.getPivotCellValueAndFormat(symbolName, domain);
|
|
@@ -71636,7 +71655,10 @@ class SortPlugin extends UIPlugin {
|
|
|
71636
71655
|
return "Success" /* CommandResult.Success */;
|
|
71637
71656
|
}
|
|
71638
71657
|
checkArrayFormulaInSortZone({ sheetId, zone }) {
|
|
71639
|
-
const arrayFormulaInZone = positions(zone).some(({ col, row }) =>
|
|
71658
|
+
const arrayFormulaInZone = positions(zone).some(({ col, row }) => {
|
|
71659
|
+
const originPosition = this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row });
|
|
71660
|
+
return originPosition && !deepEquals(originPosition, { sheetId, col, row });
|
|
71661
|
+
});
|
|
71640
71662
|
return arrayFormulaInZone ? "SortZoneWithArrayFormulas" /* CommandResult.SortZoneWithArrayFormulas */ : "Success" /* CommandResult.Success */;
|
|
71641
71663
|
}
|
|
71642
71664
|
/**
|
|
@@ -74321,13 +74343,10 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
74321
74343
|
const deltaCol = isBasedBefore && isCol ? thickness : 0;
|
|
74322
74344
|
const deltaRow = isBasedBefore && !isCol ? thickness : 0;
|
|
74323
74345
|
const toRemove = isBasedBefore ? cmd.elements.map((el) => el + thickness) : cmd.elements;
|
|
74324
|
-
const originalSize =
|
|
74325
|
-
|
|
74326
|
-
|
|
74327
|
-
|
|
74328
|
-
const isDefaultCol = isCol && size === DEFAULT_CELL_WIDTH;
|
|
74329
|
-
return [element, isDefaultCol ? undefined : size];
|
|
74330
|
-
}));
|
|
74346
|
+
const originalSize = {};
|
|
74347
|
+
for (const element of toRemove) {
|
|
74348
|
+
originalSize[element] = this.getters.getHeaderSize(cmd.sheetId, cmd.dimension, element);
|
|
74349
|
+
}
|
|
74331
74350
|
const target = [
|
|
74332
74351
|
{
|
|
74333
74352
|
left: isCol ? start + deltaCol : 0,
|
|
@@ -74363,11 +74382,11 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
74363
74382
|
for (const element of toRemove) {
|
|
74364
74383
|
const size = originalSize[element];
|
|
74365
74384
|
const currentSize = this.getters.getHeaderSize(cmd.sheetId, cmd.dimension, currentIndex);
|
|
74366
|
-
if (size
|
|
74385
|
+
if (size !== currentSize) {
|
|
74367
74386
|
resizingGroups[size] ??= [];
|
|
74368
74387
|
resizingGroups[size].push(currentIndex);
|
|
74369
|
-
currentIndex += 1;
|
|
74370
74388
|
}
|
|
74389
|
+
currentIndex += 1;
|
|
74371
74390
|
}
|
|
74372
74391
|
for (const size in resizingGroups) {
|
|
74373
74392
|
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
@@ -84790,6 +84809,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
84790
84809
|
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 };
|
|
84791
84810
|
|
|
84792
84811
|
|
|
84793
|
-
__info__.version = "18.4.
|
|
84794
|
-
__info__.date = "2025-09-
|
|
84795
|
-
__info__.hash = "
|
|
84812
|
+
__info__.version = "18.4.12";
|
|
84813
|
+
__info__.date = "2025-09-23T12:37:43.708Z";
|
|
84814
|
+
__info__.hash = "0c91305";
|
|
@@ -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.
|
|
6
|
-
* @date 2025-09-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.4.12
|
|
6
|
+
* @date 2025-09-23T12:37:43.708Z
|
|
7
|
+
* @hash 0c91305
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -890,8 +890,19 @@
|
|
|
890
890
|
},
|
|
891
891
|
}[funcName];
|
|
892
892
|
}
|
|
893
|
+
/**
|
|
894
|
+
* Removes the specified indexes from the array.
|
|
895
|
+
* Sparse (empty) elements are transformed to undefined (unless their index is explicitly removed).
|
|
896
|
+
*/
|
|
893
897
|
function removeIndexesFromArray(array, indexes) {
|
|
894
|
-
|
|
898
|
+
const toRemove = new Set(indexes);
|
|
899
|
+
const newArray = [];
|
|
900
|
+
for (let i = 0; i < array.length; i++) {
|
|
901
|
+
if (!toRemove.has(i)) {
|
|
902
|
+
newArray.push(array[i]);
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
return newArray;
|
|
895
906
|
}
|
|
896
907
|
function insertItemsAtIndex(array, items, index) {
|
|
897
908
|
const newArray = [...array];
|
|
@@ -15204,8 +15215,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
15204
15215
|
}
|
|
15205
15216
|
|
|
15206
15217
|
function sortMatrix(matrix, locale, ...criteria) {
|
|
15207
|
-
for (
|
|
15208
|
-
|
|
15218
|
+
for (let i = 0; i < criteria.length; i++) {
|
|
15219
|
+
const param = i % 2 === 0 ? "sort_column" : "is_ascending";
|
|
15220
|
+
assert(criteria[i] !== undefined, _t("Value for parameter %s is missing in [[FUNCTION_NAME]].", param));
|
|
15209
15221
|
}
|
|
15210
15222
|
const sortingOrders = [];
|
|
15211
15223
|
const sortColumns = [];
|
|
@@ -54491,12 +54503,13 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
54491
54503
|
addCalculatedMeasure() {
|
|
54492
54504
|
const { measures } = this.props.definition;
|
|
54493
54505
|
const measureName = this.env.model.getters.generateNewCalculatedMeasureName(measures);
|
|
54506
|
+
const aggregator = "sum";
|
|
54494
54507
|
this.props.onDimensionsUpdated({
|
|
54495
54508
|
measures: measures.concat([
|
|
54496
54509
|
{
|
|
54497
|
-
id: this.getMeasureId(measureName),
|
|
54510
|
+
id: this.getMeasureId(measureName, aggregator),
|
|
54498
54511
|
fieldName: measureName,
|
|
54499
|
-
aggregator
|
|
54512
|
+
aggregator,
|
|
54500
54513
|
computedBy: {
|
|
54501
54514
|
sheetId: this.env.model.getters.getActiveSheetId(),
|
|
54502
54515
|
formula: "=0",
|
|
@@ -67962,7 +67975,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
67962
67975
|
return { value: 0 };
|
|
67963
67976
|
}
|
|
67964
67977
|
const { columns, rows } = super.definition;
|
|
67965
|
-
if (columns.length + rows.length !== domain.length) {
|
|
67978
|
+
if (measure.aggregator && columns.length + rows.length !== domain.length) {
|
|
67966
67979
|
const values = this.getValuesToAggregate(measure, domain);
|
|
67967
67980
|
const aggregator = AGGREGATORS_FN[measure.aggregator];
|
|
67968
67981
|
if (!aggregator) {
|
|
@@ -67981,11 +67994,17 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
67981
67994
|
if (columns.find((col) => col.nameWithGranularity === symbolName)) {
|
|
67982
67995
|
const { colDomain } = domainToColRowDomain(this, domain);
|
|
67983
67996
|
const symbolIndex = colDomain.findIndex((node) => node.field === symbolName);
|
|
67997
|
+
if (symbolIndex === -1) {
|
|
67998
|
+
return new NotAvailableError();
|
|
67999
|
+
}
|
|
67984
68000
|
return this.getPivotHeaderValueAndFormat(colDomain.slice(0, symbolIndex + 1));
|
|
67985
68001
|
}
|
|
67986
68002
|
if (rows.find((row) => row.nameWithGranularity === symbolName)) {
|
|
67987
68003
|
const { rowDomain } = domainToColRowDomain(this, domain);
|
|
67988
68004
|
const symbolIndex = rowDomain.findIndex((row) => row.field === symbolName);
|
|
68005
|
+
if (symbolIndex === -1) {
|
|
68006
|
+
return new NotAvailableError();
|
|
68007
|
+
}
|
|
67989
68008
|
return this.getPivotHeaderValueAndFormat(rowDomain.slice(0, symbolIndex + 1));
|
|
67990
68009
|
}
|
|
67991
68010
|
return this.getPivotCellValueAndFormat(symbolName, domain);
|
|
@@ -71637,7 +71656,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
71637
71656
|
return "Success" /* CommandResult.Success */;
|
|
71638
71657
|
}
|
|
71639
71658
|
checkArrayFormulaInSortZone({ sheetId, zone }) {
|
|
71640
|
-
const arrayFormulaInZone = positions(zone).some(({ col, row }) =>
|
|
71659
|
+
const arrayFormulaInZone = positions(zone).some(({ col, row }) => {
|
|
71660
|
+
const originPosition = this.getters.getArrayFormulaSpreadingOn({ sheetId, col, row });
|
|
71661
|
+
return originPosition && !deepEquals(originPosition, { sheetId, col, row });
|
|
71662
|
+
});
|
|
71641
71663
|
return arrayFormulaInZone ? "SortZoneWithArrayFormulas" /* CommandResult.SortZoneWithArrayFormulas */ : "Success" /* CommandResult.Success */;
|
|
71642
71664
|
}
|
|
71643
71665
|
/**
|
|
@@ -74322,13 +74344,10 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
74322
74344
|
const deltaCol = isBasedBefore && isCol ? thickness : 0;
|
|
74323
74345
|
const deltaRow = isBasedBefore && !isCol ? thickness : 0;
|
|
74324
74346
|
const toRemove = isBasedBefore ? cmd.elements.map((el) => el + thickness) : cmd.elements;
|
|
74325
|
-
const originalSize =
|
|
74326
|
-
|
|
74327
|
-
|
|
74328
|
-
|
|
74329
|
-
const isDefaultCol = isCol && size === DEFAULT_CELL_WIDTH;
|
|
74330
|
-
return [element, isDefaultCol ? undefined : size];
|
|
74331
|
-
}));
|
|
74347
|
+
const originalSize = {};
|
|
74348
|
+
for (const element of toRemove) {
|
|
74349
|
+
originalSize[element] = this.getters.getHeaderSize(cmd.sheetId, cmd.dimension, element);
|
|
74350
|
+
}
|
|
74332
74351
|
const target = [
|
|
74333
74352
|
{
|
|
74334
74353
|
left: isCol ? start + deltaCol : 0,
|
|
@@ -74364,11 +74383,11 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
74364
74383
|
for (const element of toRemove) {
|
|
74365
74384
|
const size = originalSize[element];
|
|
74366
74385
|
const currentSize = this.getters.getHeaderSize(cmd.sheetId, cmd.dimension, currentIndex);
|
|
74367
|
-
if (size
|
|
74386
|
+
if (size !== currentSize) {
|
|
74368
74387
|
resizingGroups[size] ??= [];
|
|
74369
74388
|
resizingGroups[size].push(currentIndex);
|
|
74370
|
-
currentIndex += 1;
|
|
74371
74389
|
}
|
|
74390
|
+
currentIndex += 1;
|
|
74372
74391
|
}
|
|
74373
74392
|
for (const size in resizingGroups) {
|
|
74374
74393
|
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
@@ -84839,9 +84858,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
84839
84858
|
exports.tokenize = tokenize;
|
|
84840
84859
|
|
|
84841
84860
|
|
|
84842
|
-
__info__.version = "18.4.
|
|
84843
|
-
__info__.date = "2025-09-
|
|
84844
|
-
__info__.hash = "
|
|
84861
|
+
__info__.version = "18.4.12";
|
|
84862
|
+
__info__.date = "2025-09-23T12:37:43.708Z";
|
|
84863
|
+
__info__.hash = "0c91305";
|
|
84845
84864
|
|
|
84846
84865
|
|
|
84847
84866
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|