@odoo/o-spreadsheet 19.0.42 → 19.0.44
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.css
CHANGED
|
@@ -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 19.0.
|
|
6
|
-
* @date 2026-07-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.44
|
|
6
|
+
* @date 2026-07-23T07:44:38.404Z
|
|
7
|
+
* @hash 459ec89
|
|
8
8
|
*/
|
|
9
9
|
/* Originates from src/components/top_bar/top_bar.scss */
|
|
10
10
|
@media (max-width: 1200px) {
|
|
@@ -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 19.0.
|
|
6
|
-
* @date 2026-07-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.44
|
|
6
|
+
* @date 2026-07-23T07:44:36.958Z
|
|
7
|
+
* @hash 459ec89
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { App, Component, blockDom, markRaw, onMounted, onPatched, onWillPatch, onWillStart, onWillUnmount, onWillUpdateProps, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, xml } from "@odoo/owl";
|
|
@@ -43609,7 +43609,7 @@ var CellComposerStore = class extends AbstractComposerStore {
|
|
|
43609
43609
|
this._cancelEdition();
|
|
43610
43610
|
this.resetContent();
|
|
43611
43611
|
}
|
|
43612
|
-
if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
|
|
43612
|
+
if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
|
|
43613
43613
|
const activePosition = this.getters.getActivePosition();
|
|
43614
43614
|
const { col, row } = this.getters.getNextVisibleCellPosition({
|
|
43615
43615
|
sheetId: cmd.sheetIdTo,
|
|
@@ -49526,7 +49526,7 @@ var ScorecardChartConfigPanel = class extends Component {
|
|
|
49526
49526
|
return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardKeyValue");
|
|
49527
49527
|
}
|
|
49528
49528
|
get isBaselineInvalid() {
|
|
49529
|
-
return !!this.state.
|
|
49529
|
+
return !!this.state.baselineDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
|
|
49530
49530
|
}
|
|
49531
49531
|
onKeyValueRangeChanged(ranges) {
|
|
49532
49532
|
this.keyValue = ranges[0];
|
|
@@ -63868,6 +63868,8 @@ var PivotUIPlugin = class extends CoreViewPlugin {
|
|
|
63868
63868
|
pivots = {};
|
|
63869
63869
|
unusedPivots;
|
|
63870
63870
|
custom;
|
|
63871
|
+
pivotPositionCache = new PositionMap();
|
|
63872
|
+
shouldInvalidateCache = false;
|
|
63871
63873
|
constructor(config) {
|
|
63872
63874
|
super(config);
|
|
63873
63875
|
this.custom = config.custom;
|
|
@@ -63878,7 +63880,11 @@ var PivotUIPlugin = class extends CoreViewPlugin {
|
|
|
63878
63880
|
}
|
|
63879
63881
|
}
|
|
63880
63882
|
handle(cmd) {
|
|
63881
|
-
if (invalidateEvaluationCommands.has(cmd.type))
|
|
63883
|
+
if (invalidateEvaluationCommands.has(cmd.type)) {
|
|
63884
|
+
this.shouldInvalidateCache = true;
|
|
63885
|
+
for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
|
|
63886
|
+
}
|
|
63887
|
+
if (cmd.type === "UPDATE_CELL") this.shouldInvalidateCache = true;
|
|
63882
63888
|
switch (cmd.type) {
|
|
63883
63889
|
case "REFRESH_PIVOT":
|
|
63884
63890
|
this.refreshPivot(cmd.id);
|
|
@@ -63918,6 +63924,12 @@ var PivotUIPlugin = class extends CoreViewPlugin {
|
|
|
63918
63924
|
break;
|
|
63919
63925
|
}
|
|
63920
63926
|
}
|
|
63927
|
+
finalize() {
|
|
63928
|
+
if (this.shouldInvalidateCache) {
|
|
63929
|
+
this.pivotPositionCache = new PositionMap();
|
|
63930
|
+
this.shouldInvalidateCache = false;
|
|
63931
|
+
}
|
|
63932
|
+
}
|
|
63921
63933
|
/**
|
|
63922
63934
|
* Get the id of the first pivot in the formula at the given position. Returns undefined if there
|
|
63923
63935
|
* is no pivot at this position
|
|
@@ -63929,9 +63941,14 @@ var PivotUIPlugin = class extends CoreViewPlugin {
|
|
|
63929
63941
|
* Get all of the ids of the pivot present in the formula at the given position.
|
|
63930
63942
|
*/
|
|
63931
63943
|
getPivotIdsFromPosition(position) {
|
|
63932
|
-
|
|
63933
|
-
|
|
63934
|
-
|
|
63944
|
+
if (!this.pivotPositionCache.has(position)) {
|
|
63945
|
+
const cell = this.getters.getCorrespondingFormulaCell(position);
|
|
63946
|
+
if (cell && cell.isFormula) {
|
|
63947
|
+
const pivotIds = this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
|
|
63948
|
+
this.pivotPositionCache.set(position, pivotIds);
|
|
63949
|
+
}
|
|
63950
|
+
}
|
|
63951
|
+
return this.pivotPositionCache.get(position) || [];
|
|
63935
63952
|
}
|
|
63936
63953
|
getPivotIdsFromFormula(sheetId, formula) {
|
|
63937
63954
|
return this.getPivotFunctions(sheetId, formula.tokens).map((pivotFunction) => {
|
|
@@ -66537,8 +66554,8 @@ var HeaderVisibilityUIPlugin = class extends UIPlugin {
|
|
|
66537
66554
|
getNextVisibleCellPosition({ sheetId, col, row }) {
|
|
66538
66555
|
return {
|
|
66539
66556
|
sheetId,
|
|
66540
|
-
col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
|
|
66541
|
-
row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
|
|
66557
|
+
col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
|
|
66558
|
+
row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
|
|
66542
66559
|
};
|
|
66543
66560
|
}
|
|
66544
66561
|
/**
|
|
@@ -79242,7 +79259,8 @@ const helpers = {
|
|
|
79242
79259
|
getUniqueText,
|
|
79243
79260
|
isNumber,
|
|
79244
79261
|
isDateTime,
|
|
79245
|
-
createCustomFields
|
|
79262
|
+
createCustomFields,
|
|
79263
|
+
PositionMap
|
|
79246
79264
|
};
|
|
79247
79265
|
const links = {
|
|
79248
79266
|
isMarkdownLink,
|
|
@@ -79357,6 +79375,6 @@ const chartHelpers = {
|
|
|
79357
79375
|
//#endregion
|
|
79358
79376
|
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, getCaretDownSvg, getCaretUpSvg, helpers, hooks, invalidateCFEvaluationCommands, invalidateChartEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
79359
79377
|
|
|
79360
|
-
__info__.version = "19.0.
|
|
79361
|
-
__info__.date = "2026-07-
|
|
79362
|
-
__info__.hash = "
|
|
79378
|
+
__info__.version = "19.0.44";
|
|
79379
|
+
__info__.date = "2026-07-23T07:44:36.958Z";
|
|
79380
|
+
__info__.hash = "459ec89";
|
|
@@ -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 19.0.
|
|
6
|
-
* @date 2026-07-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 19.0.44
|
|
6
|
+
* @date 2026-07-23T07:44:36.958Z
|
|
7
|
+
* @hash 459ec89
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function(exports, _odoo_owl) {
|
|
@@ -43611,7 +43611,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
43611
43611
|
this._cancelEdition();
|
|
43612
43612
|
this.resetContent();
|
|
43613
43613
|
}
|
|
43614
|
-
if (cmd.sheetIdFrom !== cmd.sheetIdTo) {
|
|
43614
|
+
if (this.model.selection.isListening(this) && cmd.sheetIdFrom !== cmd.sheetIdTo) {
|
|
43615
43615
|
const activePosition = this.getters.getActivePosition();
|
|
43616
43616
|
const { col, row } = this.getters.getNextVisibleCellPosition({
|
|
43617
43617
|
sheetId: cmd.sheetIdTo,
|
|
@@ -49528,7 +49528,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
49528
49528
|
return !!this.state.keyValueDispatchResult?.isCancelledBecause("InvalidScorecardKeyValue");
|
|
49529
49529
|
}
|
|
49530
49530
|
get isBaselineInvalid() {
|
|
49531
|
-
return !!this.state.
|
|
49531
|
+
return !!this.state.baselineDispatchResult?.isCancelledBecause("InvalidScorecardBaseline");
|
|
49532
49532
|
}
|
|
49533
49533
|
onKeyValueRangeChanged(ranges) {
|
|
49534
49534
|
this.keyValue = ranges[0];
|
|
@@ -63870,6 +63870,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
63870
63870
|
pivots = {};
|
|
63871
63871
|
unusedPivots;
|
|
63872
63872
|
custom;
|
|
63873
|
+
pivotPositionCache = new PositionMap();
|
|
63874
|
+
shouldInvalidateCache = false;
|
|
63873
63875
|
constructor(config) {
|
|
63874
63876
|
super(config);
|
|
63875
63877
|
this.custom = config.custom;
|
|
@@ -63880,7 +63882,11 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
63880
63882
|
}
|
|
63881
63883
|
}
|
|
63882
63884
|
handle(cmd) {
|
|
63883
|
-
if (invalidateEvaluationCommands.has(cmd.type))
|
|
63885
|
+
if (invalidateEvaluationCommands.has(cmd.type)) {
|
|
63886
|
+
this.shouldInvalidateCache = true;
|
|
63887
|
+
for (const pivotId of this.getters.getPivotIds()) this.setupPivot(pivotId, { recreate: true });
|
|
63888
|
+
}
|
|
63889
|
+
if (cmd.type === "UPDATE_CELL") this.shouldInvalidateCache = true;
|
|
63884
63890
|
switch (cmd.type) {
|
|
63885
63891
|
case "REFRESH_PIVOT":
|
|
63886
63892
|
this.refreshPivot(cmd.id);
|
|
@@ -63920,6 +63926,12 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
63920
63926
|
break;
|
|
63921
63927
|
}
|
|
63922
63928
|
}
|
|
63929
|
+
finalize() {
|
|
63930
|
+
if (this.shouldInvalidateCache) {
|
|
63931
|
+
this.pivotPositionCache = new PositionMap();
|
|
63932
|
+
this.shouldInvalidateCache = false;
|
|
63933
|
+
}
|
|
63934
|
+
}
|
|
63923
63935
|
/**
|
|
63924
63936
|
* Get the id of the first pivot in the formula at the given position. Returns undefined if there
|
|
63925
63937
|
* is no pivot at this position
|
|
@@ -63931,9 +63943,14 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
63931
63943
|
* Get all of the ids of the pivot present in the formula at the given position.
|
|
63932
63944
|
*/
|
|
63933
63945
|
getPivotIdsFromPosition(position) {
|
|
63934
|
-
|
|
63935
|
-
|
|
63936
|
-
|
|
63946
|
+
if (!this.pivotPositionCache.has(position)) {
|
|
63947
|
+
const cell = this.getters.getCorrespondingFormulaCell(position);
|
|
63948
|
+
if (cell && cell.isFormula) {
|
|
63949
|
+
const pivotIds = this.getPivotIdsFromFormula(position.sheetId, cell.compiledFormula);
|
|
63950
|
+
this.pivotPositionCache.set(position, pivotIds);
|
|
63951
|
+
}
|
|
63952
|
+
}
|
|
63953
|
+
return this.pivotPositionCache.get(position) || [];
|
|
63937
63954
|
}
|
|
63938
63955
|
getPivotIdsFromFormula(sheetId, formula) {
|
|
63939
63956
|
return this.getPivotFunctions(sheetId, formula.tokens).map((pivotFunction) => {
|
|
@@ -66539,8 +66556,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
66539
66556
|
getNextVisibleCellPosition({ sheetId, col, row }) {
|
|
66540
66557
|
return {
|
|
66541
66558
|
sheetId,
|
|
66542
|
-
col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1),
|
|
66543
|
-
row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1)
|
|
66559
|
+
col: this.findVisibleHeader(sheetId, "COL", col, this.getters.getNumberCols(sheetId) - 1) || this.findVisibleHeader(sheetId, "COL", col, 0) || 0,
|
|
66560
|
+
row: this.findVisibleHeader(sheetId, "ROW", row, this.getters.getNumberRows(sheetId) - 1) || this.findVisibleHeader(sheetId, "ROW", row, 0) || 0
|
|
66544
66561
|
};
|
|
66545
66562
|
}
|
|
66546
66563
|
/**
|
|
@@ -79244,7 +79261,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
79244
79261
|
getUniqueText,
|
|
79245
79262
|
isNumber,
|
|
79246
79263
|
isDateTime,
|
|
79247
|
-
createCustomFields
|
|
79264
|
+
createCustomFields,
|
|
79265
|
+
PositionMap
|
|
79248
79266
|
};
|
|
79249
79267
|
const links = {
|
|
79250
79268
|
isMarkdownLink,
|
|
@@ -79410,8 +79428,8 @@ exports.stores = stores;
|
|
|
79410
79428
|
exports.tokenColors = tokenColors;
|
|
79411
79429
|
exports.tokenize = tokenize;
|
|
79412
79430
|
|
|
79413
|
-
__info__.version = "19.0.
|
|
79414
|
-
__info__.date = "2026-07-
|
|
79415
|
-
__info__.hash = "
|
|
79431
|
+
__info__.version = "19.0.44";
|
|
79432
|
+
__info__.date = "2026-07-23T07:44:36.958Z";
|
|
79433
|
+
__info__.hash = "459ec89";
|
|
79416
79434
|
|
|
79417
79435
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|