@odoo/o-spreadsheet 18.2.33 → 18.2.34
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 +33 -21
- package/dist/o-spreadsheet.esm.js +33 -21
- package/dist/o-spreadsheet.iife.js +33 -21
- package/dist/o-spreadsheet.iife.min.js +374 -374
- package/dist/o_spreadsheet.xml +7 -6
- package/package.json +2 -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.2.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.34
|
|
6
|
+
* @date 2025-11-12T14:15:32.431Z
|
|
7
|
+
* @hash 9ca0c4c
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -10901,7 +10901,7 @@ let ScorecardChart$1 = class ScorecardChart extends AbstractChart {
|
|
|
10901
10901
|
return {
|
|
10902
10902
|
background: context.background,
|
|
10903
10903
|
type: "scorecard",
|
|
10904
|
-
keyValue: context.range
|
|
10904
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
10905
10905
|
title: context.title || { text: "" },
|
|
10906
10906
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
10907
10907
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -18586,28 +18586,38 @@ function getTokenNextReferenceType(xc) {
|
|
|
18586
18586
|
return xc;
|
|
18587
18587
|
}
|
|
18588
18588
|
/**
|
|
18589
|
-
* Returns the given XC with the given reference type.
|
|
18589
|
+
* Returns the given XC with the given reference type.
|
|
18590
18590
|
*/
|
|
18591
18591
|
function setXcToFixedReferenceType(xc, referenceType) {
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18592
|
+
let sheetName;
|
|
18593
|
+
({ sheetName, xc } = splitReference(xc));
|
|
18594
|
+
sheetName = sheetName ? sheetName + "!" : "";
|
|
18595
18595
|
xc = xc.replace(/\$/g, "");
|
|
18596
|
-
|
|
18596
|
+
const splitIndex = xc.indexOf(":");
|
|
18597
|
+
if (splitIndex >= 0) {
|
|
18598
|
+
return `${sheetName}${_setXcToFixedReferenceType(xc.slice(0, splitIndex), referenceType)}:${_setXcToFixedReferenceType(xc.slice(splitIndex + 1), referenceType)}`;
|
|
18599
|
+
}
|
|
18600
|
+
else {
|
|
18601
|
+
return sheetName + _setXcToFixedReferenceType(xc, referenceType);
|
|
18602
|
+
}
|
|
18603
|
+
}
|
|
18604
|
+
function _setXcToFixedReferenceType(xc, referenceType) {
|
|
18605
|
+
const indexOfNumber = xc.search(/[0-9]/);
|
|
18606
|
+
const hasCol = indexOfNumber !== 0;
|
|
18607
|
+
const hasRow = indexOfNumber >= 0;
|
|
18597
18608
|
switch (referenceType) {
|
|
18598
18609
|
case "col":
|
|
18610
|
+
if (!hasCol)
|
|
18611
|
+
return xc;
|
|
18599
18612
|
return "$" + xc;
|
|
18600
18613
|
case "row":
|
|
18601
|
-
|
|
18614
|
+
if (!hasRow)
|
|
18615
|
+
return xc;
|
|
18602
18616
|
return xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18603
18617
|
case "colrow":
|
|
18604
|
-
|
|
18605
|
-
if (indexOfNumber === -1 || indexOfNumber === 0) {
|
|
18606
|
-
// no row number (eg. A) or no column (eg. 1)
|
|
18618
|
+
if (!hasRow || !hasCol)
|
|
18607
18619
|
return "$" + xc;
|
|
18608
|
-
|
|
18609
|
-
xc = xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18610
|
-
return "$" + xc;
|
|
18620
|
+
return "$" + xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18611
18621
|
case "none":
|
|
18612
18622
|
return xc;
|
|
18613
18623
|
}
|
|
@@ -21122,6 +21132,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
21122
21132
|
this.highlightStore.register(this);
|
|
21123
21133
|
this.onDispose(() => {
|
|
21124
21134
|
this.highlightStore.unRegister(this);
|
|
21135
|
+
this._cancelEdition();
|
|
21125
21136
|
});
|
|
21126
21137
|
}
|
|
21127
21138
|
handleEvent(event) {
|
|
@@ -31144,7 +31155,7 @@ class GaugeChart extends AbstractChart {
|
|
|
31144
31155
|
background: context.background,
|
|
31145
31156
|
title: context.title || { text: "" },
|
|
31146
31157
|
type: "gauge",
|
|
31147
|
-
dataRange: context.range
|
|
31158
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
31148
31159
|
sectionRule: {
|
|
31149
31160
|
colors: {
|
|
31150
31161
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -44227,6 +44238,7 @@ class DataValidationInput extends owl.Component {
|
|
|
44227
44238
|
placeholder: this.placeholder,
|
|
44228
44239
|
class: "o-sidePanel-composer",
|
|
44229
44240
|
defaultRangeSheetId: this.env.model.getters.getActiveSheetId(),
|
|
44241
|
+
defaultStatic: true,
|
|
44230
44242
|
};
|
|
44231
44243
|
}
|
|
44232
44244
|
get errorMessage() {
|
|
@@ -57854,7 +57866,7 @@ class RangeAdapter {
|
|
|
57854
57866
|
let sheetName = "";
|
|
57855
57867
|
if (prefixSheet) {
|
|
57856
57868
|
if (rangeImpl.invalidSheetName) {
|
|
57857
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
57869
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
57858
57870
|
}
|
|
57859
57871
|
else {
|
|
57860
57872
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -77373,6 +77385,6 @@ exports.tokenColors = tokenColors;
|
|
|
77373
77385
|
exports.tokenize = tokenize;
|
|
77374
77386
|
|
|
77375
77387
|
|
|
77376
|
-
__info__.version = "18.2.
|
|
77377
|
-
__info__.date = "2025-
|
|
77378
|
-
__info__.hash = "
|
|
77388
|
+
__info__.version = "18.2.34";
|
|
77389
|
+
__info__.date = "2025-11-12T14:15:32.431Z";
|
|
77390
|
+
__info__.hash = "9ca0c4c";
|
|
@@ -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.2.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.34
|
|
6
|
+
* @date 2025-11-12T14:15:32.431Z
|
|
7
|
+
* @hash 9ca0c4c
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -10899,7 +10899,7 @@ let ScorecardChart$1 = class ScorecardChart extends AbstractChart {
|
|
|
10899
10899
|
return {
|
|
10900
10900
|
background: context.background,
|
|
10901
10901
|
type: "scorecard",
|
|
10902
|
-
keyValue: context.range
|
|
10902
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
10903
10903
|
title: context.title || { text: "" },
|
|
10904
10904
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
10905
10905
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -18584,28 +18584,38 @@ function getTokenNextReferenceType(xc) {
|
|
|
18584
18584
|
return xc;
|
|
18585
18585
|
}
|
|
18586
18586
|
/**
|
|
18587
|
-
* Returns the given XC with the given reference type.
|
|
18587
|
+
* Returns the given XC with the given reference type.
|
|
18588
18588
|
*/
|
|
18589
18589
|
function setXcToFixedReferenceType(xc, referenceType) {
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18590
|
+
let sheetName;
|
|
18591
|
+
({ sheetName, xc } = splitReference(xc));
|
|
18592
|
+
sheetName = sheetName ? sheetName + "!" : "";
|
|
18593
18593
|
xc = xc.replace(/\$/g, "");
|
|
18594
|
-
|
|
18594
|
+
const splitIndex = xc.indexOf(":");
|
|
18595
|
+
if (splitIndex >= 0) {
|
|
18596
|
+
return `${sheetName}${_setXcToFixedReferenceType(xc.slice(0, splitIndex), referenceType)}:${_setXcToFixedReferenceType(xc.slice(splitIndex + 1), referenceType)}`;
|
|
18597
|
+
}
|
|
18598
|
+
else {
|
|
18599
|
+
return sheetName + _setXcToFixedReferenceType(xc, referenceType);
|
|
18600
|
+
}
|
|
18601
|
+
}
|
|
18602
|
+
function _setXcToFixedReferenceType(xc, referenceType) {
|
|
18603
|
+
const indexOfNumber = xc.search(/[0-9]/);
|
|
18604
|
+
const hasCol = indexOfNumber !== 0;
|
|
18605
|
+
const hasRow = indexOfNumber >= 0;
|
|
18595
18606
|
switch (referenceType) {
|
|
18596
18607
|
case "col":
|
|
18608
|
+
if (!hasCol)
|
|
18609
|
+
return xc;
|
|
18597
18610
|
return "$" + xc;
|
|
18598
18611
|
case "row":
|
|
18599
|
-
|
|
18612
|
+
if (!hasRow)
|
|
18613
|
+
return xc;
|
|
18600
18614
|
return xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18601
18615
|
case "colrow":
|
|
18602
|
-
|
|
18603
|
-
if (indexOfNumber === -1 || indexOfNumber === 0) {
|
|
18604
|
-
// no row number (eg. A) or no column (eg. 1)
|
|
18616
|
+
if (!hasRow || !hasCol)
|
|
18605
18617
|
return "$" + xc;
|
|
18606
|
-
|
|
18607
|
-
xc = xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18608
|
-
return "$" + xc;
|
|
18618
|
+
return "$" + xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18609
18619
|
case "none":
|
|
18610
18620
|
return xc;
|
|
18611
18621
|
}
|
|
@@ -21120,6 +21130,7 @@ class AbstractComposerStore extends SpreadsheetStore {
|
|
|
21120
21130
|
this.highlightStore.register(this);
|
|
21121
21131
|
this.onDispose(() => {
|
|
21122
21132
|
this.highlightStore.unRegister(this);
|
|
21133
|
+
this._cancelEdition();
|
|
21123
21134
|
});
|
|
21124
21135
|
}
|
|
21125
21136
|
handleEvent(event) {
|
|
@@ -31142,7 +31153,7 @@ class GaugeChart extends AbstractChart {
|
|
|
31142
31153
|
background: context.background,
|
|
31143
31154
|
title: context.title || { text: "" },
|
|
31144
31155
|
type: "gauge",
|
|
31145
|
-
dataRange: context.range
|
|
31156
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
31146
31157
|
sectionRule: {
|
|
31147
31158
|
colors: {
|
|
31148
31159
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -44225,6 +44236,7 @@ class DataValidationInput extends Component {
|
|
|
44225
44236
|
placeholder: this.placeholder,
|
|
44226
44237
|
class: "o-sidePanel-composer",
|
|
44227
44238
|
defaultRangeSheetId: this.env.model.getters.getActiveSheetId(),
|
|
44239
|
+
defaultStatic: true,
|
|
44228
44240
|
};
|
|
44229
44241
|
}
|
|
44230
44242
|
get errorMessage() {
|
|
@@ -57852,7 +57864,7 @@ class RangeAdapter {
|
|
|
57852
57864
|
let sheetName = "";
|
|
57853
57865
|
if (prefixSheet) {
|
|
57854
57866
|
if (rangeImpl.invalidSheetName) {
|
|
57855
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
57867
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
57856
57868
|
}
|
|
57857
57869
|
else {
|
|
57858
57870
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -77326,6 +77338,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
77326
77338
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, 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, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
77327
77339
|
|
|
77328
77340
|
|
|
77329
|
-
__info__.version = "18.2.
|
|
77330
|
-
__info__.date = "2025-
|
|
77331
|
-
__info__.hash = "
|
|
77341
|
+
__info__.version = "18.2.34";
|
|
77342
|
+
__info__.date = "2025-11-12T14:15:32.431Z";
|
|
77343
|
+
__info__.hash = "9ca0c4c";
|
|
@@ -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.2.
|
|
6
|
-
* @date 2025-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.34
|
|
6
|
+
* @date 2025-11-12T14:15:32.431Z
|
|
7
|
+
* @hash 9ca0c4c
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -10900,7 +10900,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
10900
10900
|
return {
|
|
10901
10901
|
background: context.background,
|
|
10902
10902
|
type: "scorecard",
|
|
10903
|
-
keyValue: context.range
|
|
10903
|
+
keyValue: context.range?.[0]?.dataRange,
|
|
10904
10904
|
title: context.title || { text: "" },
|
|
10905
10905
|
baselineMode: DEFAULT_SCORECARD_BASELINE_MODE,
|
|
10906
10906
|
baselineColorUp: DEFAULT_SCORECARD_BASELINE_COLOR_UP,
|
|
@@ -18585,28 +18585,38 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
18585
18585
|
return xc;
|
|
18586
18586
|
}
|
|
18587
18587
|
/**
|
|
18588
|
-
* Returns the given XC with the given reference type.
|
|
18588
|
+
* Returns the given XC with the given reference type.
|
|
18589
18589
|
*/
|
|
18590
18590
|
function setXcToFixedReferenceType(xc, referenceType) {
|
|
18591
|
-
|
|
18592
|
-
|
|
18593
|
-
|
|
18591
|
+
let sheetName;
|
|
18592
|
+
({ sheetName, xc } = splitReference(xc));
|
|
18593
|
+
sheetName = sheetName ? sheetName + "!" : "";
|
|
18594
18594
|
xc = xc.replace(/\$/g, "");
|
|
18595
|
-
|
|
18595
|
+
const splitIndex = xc.indexOf(":");
|
|
18596
|
+
if (splitIndex >= 0) {
|
|
18597
|
+
return `${sheetName}${_setXcToFixedReferenceType(xc.slice(0, splitIndex), referenceType)}:${_setXcToFixedReferenceType(xc.slice(splitIndex + 1), referenceType)}`;
|
|
18598
|
+
}
|
|
18599
|
+
else {
|
|
18600
|
+
return sheetName + _setXcToFixedReferenceType(xc, referenceType);
|
|
18601
|
+
}
|
|
18602
|
+
}
|
|
18603
|
+
function _setXcToFixedReferenceType(xc, referenceType) {
|
|
18604
|
+
const indexOfNumber = xc.search(/[0-9]/);
|
|
18605
|
+
const hasCol = indexOfNumber !== 0;
|
|
18606
|
+
const hasRow = indexOfNumber >= 0;
|
|
18596
18607
|
switch (referenceType) {
|
|
18597
18608
|
case "col":
|
|
18609
|
+
if (!hasCol)
|
|
18610
|
+
return xc;
|
|
18598
18611
|
return "$" + xc;
|
|
18599
18612
|
case "row":
|
|
18600
|
-
|
|
18613
|
+
if (!hasRow)
|
|
18614
|
+
return xc;
|
|
18601
18615
|
return xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18602
18616
|
case "colrow":
|
|
18603
|
-
|
|
18604
|
-
if (indexOfNumber === -1 || indexOfNumber === 0) {
|
|
18605
|
-
// no row number (eg. A) or no column (eg. 1)
|
|
18617
|
+
if (!hasRow || !hasCol)
|
|
18606
18618
|
return "$" + xc;
|
|
18607
|
-
|
|
18608
|
-
xc = xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18609
|
-
return "$" + xc;
|
|
18619
|
+
return "$" + xc.slice(0, indexOfNumber) + "$" + xc.slice(indexOfNumber);
|
|
18610
18620
|
case "none":
|
|
18611
18621
|
return xc;
|
|
18612
18622
|
}
|
|
@@ -21121,6 +21131,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
21121
21131
|
this.highlightStore.register(this);
|
|
21122
21132
|
this.onDispose(() => {
|
|
21123
21133
|
this.highlightStore.unRegister(this);
|
|
21134
|
+
this._cancelEdition();
|
|
21124
21135
|
});
|
|
21125
21136
|
}
|
|
21126
21137
|
handleEvent(event) {
|
|
@@ -31143,7 +31154,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
31143
31154
|
background: context.background,
|
|
31144
31155
|
title: context.title || { text: "" },
|
|
31145
31156
|
type: "gauge",
|
|
31146
|
-
dataRange: context.range
|
|
31157
|
+
dataRange: context.range?.[0]?.dataRange,
|
|
31147
31158
|
sectionRule: {
|
|
31148
31159
|
colors: {
|
|
31149
31160
|
lowerColor: DEFAULT_GAUGE_LOWER_COLOR,
|
|
@@ -44226,6 +44237,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
44226
44237
|
placeholder: this.placeholder,
|
|
44227
44238
|
class: "o-sidePanel-composer",
|
|
44228
44239
|
defaultRangeSheetId: this.env.model.getters.getActiveSheetId(),
|
|
44240
|
+
defaultStatic: true,
|
|
44229
44241
|
};
|
|
44230
44242
|
}
|
|
44231
44243
|
get errorMessage() {
|
|
@@ -57853,7 +57865,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
57853
57865
|
let sheetName = "";
|
|
57854
57866
|
if (prefixSheet) {
|
|
57855
57867
|
if (rangeImpl.invalidSheetName) {
|
|
57856
|
-
sheetName = rangeImpl.invalidSheetName;
|
|
57868
|
+
sheetName = getCanonicalSymbolName(rangeImpl.invalidSheetName);
|
|
57857
57869
|
}
|
|
57858
57870
|
else {
|
|
57859
57871
|
sheetName = getCanonicalSymbolName(this.getters.getSheetName(rangeImpl.sheetId));
|
|
@@ -77372,9 +77384,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
77372
77384
|
exports.tokenize = tokenize;
|
|
77373
77385
|
|
|
77374
77386
|
|
|
77375
|
-
__info__.version = "18.2.
|
|
77376
|
-
__info__.date = "2025-
|
|
77377
|
-
__info__.hash = "
|
|
77387
|
+
__info__.version = "18.2.34";
|
|
77388
|
+
__info__.date = "2025-11-12T14:15:32.431Z";
|
|
77389
|
+
__info__.hash = "9ca0c4c";
|
|
77378
77390
|
|
|
77379
77391
|
|
|
77380
77392
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|