@odoo/o-spreadsheet 18.1.4 → 18.1.5
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 18.1.
|
|
6
|
-
* @date 2025-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.1.5
|
|
6
|
+
* @date 2025-01-31T08:00:10.263Z
|
|
7
|
+
* @hash 97acb8b
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -3350,11 +3350,11 @@ const getInvaluableSymbolsRegexp = memoize(function getInvaluableSymbolsRegexp(l
|
|
|
3350
3350
|
* number from the point of view of the isNumber function.
|
|
3351
3351
|
*/
|
|
3352
3352
|
function parseNumber(str, locale) {
|
|
3353
|
+
// remove invaluable characters
|
|
3354
|
+
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
3353
3355
|
if (locale.decimalSeparator !== ".") {
|
|
3354
3356
|
str = str.replace(locale.decimalSeparator, ".");
|
|
3355
3357
|
}
|
|
3356
|
-
// remove invaluable characters
|
|
3357
|
-
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
3358
3358
|
let n = Number(str);
|
|
3359
3359
|
if (isNaN(n) && str.includes("%")) {
|
|
3360
3360
|
n = Number(str.split("%")[0]);
|
|
@@ -40369,6 +40369,12 @@ class Composer extends owl.Component {
|
|
|
40369
40369
|
}
|
|
40370
40370
|
this.contentHelper.updateEl(el);
|
|
40371
40371
|
});
|
|
40372
|
+
this.env.model.selection.observe(this, {
|
|
40373
|
+
handleEvent: () => this.autoCompleteState.hide(),
|
|
40374
|
+
});
|
|
40375
|
+
owl.onWillUnmount(() => {
|
|
40376
|
+
this.env.model.selection.detachObserver(this);
|
|
40377
|
+
});
|
|
40372
40378
|
owl.useEffect(() => {
|
|
40373
40379
|
this.processContent();
|
|
40374
40380
|
if (document.activeElement === this.contentHelper.el &&
|
|
@@ -61320,7 +61326,7 @@ function withPivotPresentationLayer (PivotClass) {
|
|
|
61320
61326
|
const symbolIndex = rowDomain.findIndex((row) => row.field === symbolName);
|
|
61321
61327
|
return this.getPivotHeaderValueAndFormat(rowDomain.slice(0, symbolIndex + 1));
|
|
61322
61328
|
}
|
|
61323
|
-
return this.
|
|
61329
|
+
return this.getPivotCellValueAndFormat(symbolName, domain);
|
|
61324
61330
|
};
|
|
61325
61331
|
const result = this.getters.evaluateCompiledFormula(measure.computedBy.sheetId, formula, getSymbolValue);
|
|
61326
61332
|
if (isMatrix(result)) {
|
|
@@ -64491,14 +64497,12 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
64491
64497
|
}
|
|
64492
64498
|
break;
|
|
64493
64499
|
case "AUTORESIZE_ROWS":
|
|
64494
|
-
|
|
64495
|
-
|
|
64496
|
-
|
|
64497
|
-
|
|
64498
|
-
|
|
64499
|
-
|
|
64500
|
-
});
|
|
64501
|
-
}
|
|
64500
|
+
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
64501
|
+
elements: cmd.rows,
|
|
64502
|
+
dimension: "ROW",
|
|
64503
|
+
size: null,
|
|
64504
|
+
sheetId: cmd.sheetId,
|
|
64505
|
+
});
|
|
64502
64506
|
break;
|
|
64503
64507
|
}
|
|
64504
64508
|
}
|
|
@@ -71522,6 +71526,9 @@ class EventStream {
|
|
|
71522
71526
|
observe(owner, callbacks) {
|
|
71523
71527
|
this.observers.set(owner, { owner, callbacks });
|
|
71524
71528
|
}
|
|
71529
|
+
detachObserver(owner) {
|
|
71530
|
+
this.observers.delete(owner);
|
|
71531
|
+
}
|
|
71525
71532
|
/**
|
|
71526
71533
|
* Capture the stream for yourself
|
|
71527
71534
|
*/
|
|
@@ -71614,6 +71621,9 @@ class SelectionStreamProcessorImpl {
|
|
|
71614
71621
|
observe(owner, callbacks) {
|
|
71615
71622
|
this.stream.observe(owner, callbacks);
|
|
71616
71623
|
}
|
|
71624
|
+
detachObserver(owner) {
|
|
71625
|
+
this.stream.detachObserver(owner);
|
|
71626
|
+
}
|
|
71617
71627
|
release(owner) {
|
|
71618
71628
|
if (this.stream.isListening(owner)) {
|
|
71619
71629
|
this.stream.release(owner);
|
|
@@ -75033,6 +75043,6 @@ exports.tokenColors = tokenColors;
|
|
|
75033
75043
|
exports.tokenize = tokenize;
|
|
75034
75044
|
|
|
75035
75045
|
|
|
75036
|
-
__info__.version = "18.1.
|
|
75037
|
-
__info__.date = "2025-01-
|
|
75038
|
-
__info__.hash = "
|
|
75046
|
+
__info__.version = "18.1.5";
|
|
75047
|
+
__info__.date = "2025-01-31T08:00:10.263Z";
|
|
75048
|
+
__info__.hash = "97acb8b";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -1532,6 +1532,7 @@ type StatefulStream<Event, State> = {
|
|
|
1532
1532
|
resetDefaultAnchor: (owner: unknown, state: State) => void;
|
|
1533
1533
|
resetAnchor: (owner: unknown, state: State) => void;
|
|
1534
1534
|
observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
|
|
1535
|
+
detachObserver: (owner: unknown) => void;
|
|
1535
1536
|
release: (owner: unknown) => void;
|
|
1536
1537
|
getBackToDefault(): void;
|
|
1537
1538
|
};
|
|
@@ -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.1.
|
|
6
|
-
* @date 2025-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.1.5
|
|
6
|
+
* @date 2025-01-31T08:00:10.263Z
|
|
7
|
+
* @hash 97acb8b
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -3348,11 +3348,11 @@ const getInvaluableSymbolsRegexp = memoize(function getInvaluableSymbolsRegexp(l
|
|
|
3348
3348
|
* number from the point of view of the isNumber function.
|
|
3349
3349
|
*/
|
|
3350
3350
|
function parseNumber(str, locale) {
|
|
3351
|
+
// remove invaluable characters
|
|
3352
|
+
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
3351
3353
|
if (locale.decimalSeparator !== ".") {
|
|
3352
3354
|
str = str.replace(locale.decimalSeparator, ".");
|
|
3353
3355
|
}
|
|
3354
|
-
// remove invaluable characters
|
|
3355
|
-
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
3356
3356
|
let n = Number(str);
|
|
3357
3357
|
if (isNaN(n) && str.includes("%")) {
|
|
3358
3358
|
n = Number(str.split("%")[0]);
|
|
@@ -40367,6 +40367,12 @@ class Composer extends Component {
|
|
|
40367
40367
|
}
|
|
40368
40368
|
this.contentHelper.updateEl(el);
|
|
40369
40369
|
});
|
|
40370
|
+
this.env.model.selection.observe(this, {
|
|
40371
|
+
handleEvent: () => this.autoCompleteState.hide(),
|
|
40372
|
+
});
|
|
40373
|
+
onWillUnmount(() => {
|
|
40374
|
+
this.env.model.selection.detachObserver(this);
|
|
40375
|
+
});
|
|
40370
40376
|
useEffect(() => {
|
|
40371
40377
|
this.processContent();
|
|
40372
40378
|
if (document.activeElement === this.contentHelper.el &&
|
|
@@ -61318,7 +61324,7 @@ function withPivotPresentationLayer (PivotClass) {
|
|
|
61318
61324
|
const symbolIndex = rowDomain.findIndex((row) => row.field === symbolName);
|
|
61319
61325
|
return this.getPivotHeaderValueAndFormat(rowDomain.slice(0, symbolIndex + 1));
|
|
61320
61326
|
}
|
|
61321
|
-
return this.
|
|
61327
|
+
return this.getPivotCellValueAndFormat(symbolName, domain);
|
|
61322
61328
|
};
|
|
61323
61329
|
const result = this.getters.evaluateCompiledFormula(measure.computedBy.sheetId, formula, getSymbolValue);
|
|
61324
61330
|
if (isMatrix(result)) {
|
|
@@ -64489,14 +64495,12 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
64489
64495
|
}
|
|
64490
64496
|
break;
|
|
64491
64497
|
case "AUTORESIZE_ROWS":
|
|
64492
|
-
|
|
64493
|
-
|
|
64494
|
-
|
|
64495
|
-
|
|
64496
|
-
|
|
64497
|
-
|
|
64498
|
-
});
|
|
64499
|
-
}
|
|
64498
|
+
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
64499
|
+
elements: cmd.rows,
|
|
64500
|
+
dimension: "ROW",
|
|
64501
|
+
size: null,
|
|
64502
|
+
sheetId: cmd.sheetId,
|
|
64503
|
+
});
|
|
64500
64504
|
break;
|
|
64501
64505
|
}
|
|
64502
64506
|
}
|
|
@@ -71520,6 +71524,9 @@ class EventStream {
|
|
|
71520
71524
|
observe(owner, callbacks) {
|
|
71521
71525
|
this.observers.set(owner, { owner, callbacks });
|
|
71522
71526
|
}
|
|
71527
|
+
detachObserver(owner) {
|
|
71528
|
+
this.observers.delete(owner);
|
|
71529
|
+
}
|
|
71523
71530
|
/**
|
|
71524
71531
|
* Capture the stream for yourself
|
|
71525
71532
|
*/
|
|
@@ -71612,6 +71619,9 @@ class SelectionStreamProcessorImpl {
|
|
|
71612
71619
|
observe(owner, callbacks) {
|
|
71613
71620
|
this.stream.observe(owner, callbacks);
|
|
71614
71621
|
}
|
|
71622
|
+
detachObserver(owner) {
|
|
71623
|
+
this.stream.detachObserver(owner);
|
|
71624
|
+
}
|
|
71615
71625
|
release(owner) {
|
|
71616
71626
|
if (this.stream.isListening(owner)) {
|
|
71617
71627
|
this.stream.release(owner);
|
|
@@ -74987,6 +74997,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
74987
74997
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, 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 };
|
|
74988
74998
|
|
|
74989
74999
|
|
|
74990
|
-
__info__.version = "18.1.
|
|
74991
|
-
__info__.date = "2025-01-
|
|
74992
|
-
__info__.hash = "
|
|
75000
|
+
__info__.version = "18.1.5";
|
|
75001
|
+
__info__.date = "2025-01-31T08:00:10.263Z";
|
|
75002
|
+
__info__.hash = "97acb8b";
|
|
@@ -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.1.
|
|
6
|
-
* @date 2025-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.1.5
|
|
6
|
+
* @date 2025-01-31T08:00:10.263Z
|
|
7
|
+
* @hash 97acb8b
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -3349,11 +3349,11 @@
|
|
|
3349
3349
|
* number from the point of view of the isNumber function.
|
|
3350
3350
|
*/
|
|
3351
3351
|
function parseNumber(str, locale) {
|
|
3352
|
+
// remove invaluable characters
|
|
3353
|
+
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
3352
3354
|
if (locale.decimalSeparator !== ".") {
|
|
3353
3355
|
str = str.replace(locale.decimalSeparator, ".");
|
|
3354
3356
|
}
|
|
3355
|
-
// remove invaluable characters
|
|
3356
|
-
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
3357
3357
|
let n = Number(str);
|
|
3358
3358
|
if (isNaN(n) && str.includes("%")) {
|
|
3359
3359
|
n = Number(str.split("%")[0]);
|
|
@@ -40368,6 +40368,12 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
40368
40368
|
}
|
|
40369
40369
|
this.contentHelper.updateEl(el);
|
|
40370
40370
|
});
|
|
40371
|
+
this.env.model.selection.observe(this, {
|
|
40372
|
+
handleEvent: () => this.autoCompleteState.hide(),
|
|
40373
|
+
});
|
|
40374
|
+
owl.onWillUnmount(() => {
|
|
40375
|
+
this.env.model.selection.detachObserver(this);
|
|
40376
|
+
});
|
|
40371
40377
|
owl.useEffect(() => {
|
|
40372
40378
|
this.processContent();
|
|
40373
40379
|
if (document.activeElement === this.contentHelper.el &&
|
|
@@ -61319,7 +61325,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
61319
61325
|
const symbolIndex = rowDomain.findIndex((row) => row.field === symbolName);
|
|
61320
61326
|
return this.getPivotHeaderValueAndFormat(rowDomain.slice(0, symbolIndex + 1));
|
|
61321
61327
|
}
|
|
61322
|
-
return this.
|
|
61328
|
+
return this.getPivotCellValueAndFormat(symbolName, domain);
|
|
61323
61329
|
};
|
|
61324
61330
|
const result = this.getters.evaluateCompiledFormula(measure.computedBy.sheetId, formula, getSymbolValue);
|
|
61325
61331
|
if (isMatrix(result)) {
|
|
@@ -64490,14 +64496,12 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
64490
64496
|
}
|
|
64491
64497
|
break;
|
|
64492
64498
|
case "AUTORESIZE_ROWS":
|
|
64493
|
-
|
|
64494
|
-
|
|
64495
|
-
|
|
64496
|
-
|
|
64497
|
-
|
|
64498
|
-
|
|
64499
|
-
});
|
|
64500
|
-
}
|
|
64499
|
+
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
64500
|
+
elements: cmd.rows,
|
|
64501
|
+
dimension: "ROW",
|
|
64502
|
+
size: null,
|
|
64503
|
+
sheetId: cmd.sheetId,
|
|
64504
|
+
});
|
|
64501
64505
|
break;
|
|
64502
64506
|
}
|
|
64503
64507
|
}
|
|
@@ -71521,6 +71525,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
71521
71525
|
observe(owner, callbacks) {
|
|
71522
71526
|
this.observers.set(owner, { owner, callbacks });
|
|
71523
71527
|
}
|
|
71528
|
+
detachObserver(owner) {
|
|
71529
|
+
this.observers.delete(owner);
|
|
71530
|
+
}
|
|
71524
71531
|
/**
|
|
71525
71532
|
* Capture the stream for yourself
|
|
71526
71533
|
*/
|
|
@@ -71613,6 +71620,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
71613
71620
|
observe(owner, callbacks) {
|
|
71614
71621
|
this.stream.observe(owner, callbacks);
|
|
71615
71622
|
}
|
|
71623
|
+
detachObserver(owner) {
|
|
71624
|
+
this.stream.detachObserver(owner);
|
|
71625
|
+
}
|
|
71616
71626
|
release(owner) {
|
|
71617
71627
|
if (this.stream.isListening(owner)) {
|
|
71618
71628
|
this.stream.release(owner);
|
|
@@ -75032,9 +75042,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
75032
75042
|
exports.tokenize = tokenize;
|
|
75033
75043
|
|
|
75034
75044
|
|
|
75035
|
-
__info__.version = "18.1.
|
|
75036
|
-
__info__.date = "2025-01-
|
|
75037
|
-
__info__.hash = "
|
|
75045
|
+
__info__.version = "18.1.5";
|
|
75046
|
+
__info__.date = "2025-01-31T08:00:10.263Z";
|
|
75047
|
+
__info__.hash = "97acb8b";
|
|
75038
75048
|
|
|
75039
75049
|
|
|
75040
75050
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|