@odoo/o-spreadsheet 17.4.19 → 17.4.20
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.4.
|
|
6
|
-
* @date 2025-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.4.20
|
|
6
|
+
* @date 2025-01-31T08:00:07.103Z
|
|
7
|
+
* @hash 54a344a
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -1954,11 +1954,11 @@ const getInvaluableSymbolsRegexp = memoize(function getInvaluableSymbolsRegexp(l
|
|
|
1954
1954
|
* number from the point of view of the isNumber function.
|
|
1955
1955
|
*/
|
|
1956
1956
|
function parseNumber(str, locale) {
|
|
1957
|
+
// remove invaluable characters
|
|
1958
|
+
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
1957
1959
|
if (locale.decimalSeparator !== ".") {
|
|
1958
1960
|
str = str.replace(locale.decimalSeparator, ".");
|
|
1959
1961
|
}
|
|
1960
|
-
// remove invaluable characters
|
|
1961
|
-
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
1962
1962
|
let n = Number(str);
|
|
1963
1963
|
if (isNaN(n) && str.includes("%")) {
|
|
1964
1964
|
n = Number(str.split("%")[0]);
|
|
@@ -21616,6 +21616,12 @@ class Composer extends owl.Component {
|
|
|
21616
21616
|
}
|
|
21617
21617
|
this.contentHelper.updateEl(el);
|
|
21618
21618
|
});
|
|
21619
|
+
this.env.model.selection.observe(this, {
|
|
21620
|
+
handleEvent: () => this.autoCompleteState.hide(),
|
|
21621
|
+
});
|
|
21622
|
+
owl.onWillUnmount(() => {
|
|
21623
|
+
this.env.model.selection.detachObserver(this);
|
|
21624
|
+
});
|
|
21619
21625
|
owl.useEffect(() => {
|
|
21620
21626
|
this.processContent();
|
|
21621
21627
|
});
|
|
@@ -58535,14 +58541,12 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
58535
58541
|
}
|
|
58536
58542
|
break;
|
|
58537
58543
|
case "AUTORESIZE_ROWS":
|
|
58538
|
-
|
|
58539
|
-
|
|
58540
|
-
|
|
58541
|
-
|
|
58542
|
-
|
|
58543
|
-
|
|
58544
|
-
});
|
|
58545
|
-
}
|
|
58544
|
+
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
58545
|
+
elements: cmd.rows,
|
|
58546
|
+
dimension: "ROW",
|
|
58547
|
+
size: null,
|
|
58548
|
+
sheetId: cmd.sheetId,
|
|
58549
|
+
});
|
|
58546
58550
|
break;
|
|
58547
58551
|
}
|
|
58548
58552
|
}
|
|
@@ -65552,6 +65556,9 @@ class EventStream {
|
|
|
65552
65556
|
observe(owner, callbacks) {
|
|
65553
65557
|
this.observers.set(owner, { owner, callbacks });
|
|
65554
65558
|
}
|
|
65559
|
+
detachObserver(owner) {
|
|
65560
|
+
this.observers.delete(owner);
|
|
65561
|
+
}
|
|
65555
65562
|
/**
|
|
65556
65563
|
* Capture the stream for yourself
|
|
65557
65564
|
*/
|
|
@@ -65644,6 +65651,9 @@ class SelectionStreamProcessorImpl {
|
|
|
65644
65651
|
observe(owner, callbacks) {
|
|
65645
65652
|
this.stream.observe(owner, callbacks);
|
|
65646
65653
|
}
|
|
65654
|
+
detachObserver(owner) {
|
|
65655
|
+
this.stream.detachObserver(owner);
|
|
65656
|
+
}
|
|
65647
65657
|
release(owner) {
|
|
65648
65658
|
if (this.stream.isListening(owner)) {
|
|
65649
65659
|
this.stream.release(owner);
|
|
@@ -68863,6 +68873,6 @@ exports.tokenColors = tokenColors;
|
|
|
68863
68873
|
exports.tokenize = tokenize;
|
|
68864
68874
|
|
|
68865
68875
|
|
|
68866
|
-
__info__.version = "17.4.
|
|
68867
|
-
__info__.date = "2025-01-
|
|
68868
|
-
__info__.hash = "
|
|
68876
|
+
__info__.version = "17.4.20";
|
|
68877
|
+
__info__.date = "2025-01-31T08:00:07.103Z";
|
|
68878
|
+
__info__.hash = "54a344a";
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -3933,6 +3933,7 @@ type StatefulStream<Event, State> = {
|
|
|
3933
3933
|
resetDefaultAnchor: (owner: unknown, state: State) => void;
|
|
3934
3934
|
resetAnchor: (owner: unknown, state: State) => void;
|
|
3935
3935
|
observe: (owner: unknown, callbacks: StreamCallbacks<Event>) => void;
|
|
3936
|
+
detachObserver: (owner: unknown) => void;
|
|
3936
3937
|
release: (owner: unknown) => void;
|
|
3937
3938
|
getBackToDefault(): void;
|
|
3938
3939
|
};
|
|
@@ -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.4.
|
|
6
|
-
* @date 2025-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.4.20
|
|
6
|
+
* @date 2025-01-31T08:00:07.103Z
|
|
7
|
+
* @hash 54a344a
|
|
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';
|
|
@@ -1952,11 +1952,11 @@ const getInvaluableSymbolsRegexp = memoize(function getInvaluableSymbolsRegexp(l
|
|
|
1952
1952
|
* number from the point of view of the isNumber function.
|
|
1953
1953
|
*/
|
|
1954
1954
|
function parseNumber(str, locale) {
|
|
1955
|
+
// remove invaluable characters
|
|
1956
|
+
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
1955
1957
|
if (locale.decimalSeparator !== ".") {
|
|
1956
1958
|
str = str.replace(locale.decimalSeparator, ".");
|
|
1957
1959
|
}
|
|
1958
|
-
// remove invaluable characters
|
|
1959
|
-
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
1960
1960
|
let n = Number(str);
|
|
1961
1961
|
if (isNaN(n) && str.includes("%")) {
|
|
1962
1962
|
n = Number(str.split("%")[0]);
|
|
@@ -21614,6 +21614,12 @@ class Composer extends Component {
|
|
|
21614
21614
|
}
|
|
21615
21615
|
this.contentHelper.updateEl(el);
|
|
21616
21616
|
});
|
|
21617
|
+
this.env.model.selection.observe(this, {
|
|
21618
|
+
handleEvent: () => this.autoCompleteState.hide(),
|
|
21619
|
+
});
|
|
21620
|
+
onWillUnmount(() => {
|
|
21621
|
+
this.env.model.selection.detachObserver(this);
|
|
21622
|
+
});
|
|
21617
21623
|
useEffect(() => {
|
|
21618
21624
|
this.processContent();
|
|
21619
21625
|
});
|
|
@@ -58533,14 +58539,12 @@ class SheetUIPlugin extends UIPlugin {
|
|
|
58533
58539
|
}
|
|
58534
58540
|
break;
|
|
58535
58541
|
case "AUTORESIZE_ROWS":
|
|
58536
|
-
|
|
58537
|
-
|
|
58538
|
-
|
|
58539
|
-
|
|
58540
|
-
|
|
58541
|
-
|
|
58542
|
-
});
|
|
58543
|
-
}
|
|
58542
|
+
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
58543
|
+
elements: cmd.rows,
|
|
58544
|
+
dimension: "ROW",
|
|
58545
|
+
size: null,
|
|
58546
|
+
sheetId: cmd.sheetId,
|
|
58547
|
+
});
|
|
58544
58548
|
break;
|
|
58545
58549
|
}
|
|
58546
58550
|
}
|
|
@@ -65550,6 +65554,9 @@ class EventStream {
|
|
|
65550
65554
|
observe(owner, callbacks) {
|
|
65551
65555
|
this.observers.set(owner, { owner, callbacks });
|
|
65552
65556
|
}
|
|
65557
|
+
detachObserver(owner) {
|
|
65558
|
+
this.observers.delete(owner);
|
|
65559
|
+
}
|
|
65553
65560
|
/**
|
|
65554
65561
|
* Capture the stream for yourself
|
|
65555
65562
|
*/
|
|
@@ -65642,6 +65649,9 @@ class SelectionStreamProcessorImpl {
|
|
|
65642
65649
|
observe(owner, callbacks) {
|
|
65643
65650
|
this.stream.observe(owner, callbacks);
|
|
65644
65651
|
}
|
|
65652
|
+
detachObserver(owner) {
|
|
65653
|
+
this.stream.detachObserver(owner);
|
|
65654
|
+
}
|
|
65645
65655
|
release(owner) {
|
|
65646
65656
|
if (this.stream.isListening(owner)) {
|
|
65647
65657
|
this.stream.release(owner);
|
|
@@ -68818,6 +68828,6 @@ const constants = {
|
|
|
68818
68828
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, 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 };
|
|
68819
68829
|
|
|
68820
68830
|
|
|
68821
|
-
__info__.version = "17.4.
|
|
68822
|
-
__info__.date = "2025-01-
|
|
68823
|
-
__info__.hash = "
|
|
68831
|
+
__info__.version = "17.4.20";
|
|
68832
|
+
__info__.date = "2025-01-31T08:00:07.103Z";
|
|
68833
|
+
__info__.hash = "54a344a";
|
|
@@ -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.4.
|
|
6
|
-
* @date 2025-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.4.20
|
|
6
|
+
* @date 2025-01-31T08:00:07.103Z
|
|
7
|
+
* @hash 54a344a
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -1953,11 +1953,11 @@
|
|
|
1953
1953
|
* number from the point of view of the isNumber function.
|
|
1954
1954
|
*/
|
|
1955
1955
|
function parseNumber(str, locale) {
|
|
1956
|
+
// remove invaluable characters
|
|
1957
|
+
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
1956
1958
|
if (locale.decimalSeparator !== ".") {
|
|
1957
1959
|
str = str.replace(locale.decimalSeparator, ".");
|
|
1958
1960
|
}
|
|
1959
|
-
// remove invaluable characters
|
|
1960
|
-
str = str.replace(getInvaluableSymbolsRegexp(locale), "");
|
|
1961
1961
|
let n = Number(str);
|
|
1962
1962
|
if (isNaN(n) && str.includes("%")) {
|
|
1963
1963
|
n = Number(str.split("%")[0]);
|
|
@@ -21615,6 +21615,12 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
21615
21615
|
}
|
|
21616
21616
|
this.contentHelper.updateEl(el);
|
|
21617
21617
|
});
|
|
21618
|
+
this.env.model.selection.observe(this, {
|
|
21619
|
+
handleEvent: () => this.autoCompleteState.hide(),
|
|
21620
|
+
});
|
|
21621
|
+
owl.onWillUnmount(() => {
|
|
21622
|
+
this.env.model.selection.detachObserver(this);
|
|
21623
|
+
});
|
|
21618
21624
|
owl.useEffect(() => {
|
|
21619
21625
|
this.processContent();
|
|
21620
21626
|
});
|
|
@@ -58534,14 +58540,12 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
58534
58540
|
}
|
|
58535
58541
|
break;
|
|
58536
58542
|
case "AUTORESIZE_ROWS":
|
|
58537
|
-
|
|
58538
|
-
|
|
58539
|
-
|
|
58540
|
-
|
|
58541
|
-
|
|
58542
|
-
|
|
58543
|
-
});
|
|
58544
|
-
}
|
|
58543
|
+
this.dispatch("RESIZE_COLUMNS_ROWS", {
|
|
58544
|
+
elements: cmd.rows,
|
|
58545
|
+
dimension: "ROW",
|
|
58546
|
+
size: null,
|
|
58547
|
+
sheetId: cmd.sheetId,
|
|
58548
|
+
});
|
|
58545
58549
|
break;
|
|
58546
58550
|
}
|
|
58547
58551
|
}
|
|
@@ -65551,6 +65555,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
65551
65555
|
observe(owner, callbacks) {
|
|
65552
65556
|
this.observers.set(owner, { owner, callbacks });
|
|
65553
65557
|
}
|
|
65558
|
+
detachObserver(owner) {
|
|
65559
|
+
this.observers.delete(owner);
|
|
65560
|
+
}
|
|
65554
65561
|
/**
|
|
65555
65562
|
* Capture the stream for yourself
|
|
65556
65563
|
*/
|
|
@@ -65643,6 +65650,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
65643
65650
|
observe(owner, callbacks) {
|
|
65644
65651
|
this.stream.observe(owner, callbacks);
|
|
65645
65652
|
}
|
|
65653
|
+
detachObserver(owner) {
|
|
65654
|
+
this.stream.detachObserver(owner);
|
|
65655
|
+
}
|
|
65646
65656
|
release(owner) {
|
|
65647
65657
|
if (this.stream.isListening(owner)) {
|
|
65648
65658
|
this.stream.release(owner);
|
|
@@ -68862,9 +68872,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
68862
68872
|
exports.tokenize = tokenize;
|
|
68863
68873
|
|
|
68864
68874
|
|
|
68865
|
-
__info__.version = "17.4.
|
|
68866
|
-
__info__.date = "2025-01-
|
|
68867
|
-
__info__.hash = "
|
|
68875
|
+
__info__.version = "17.4.20";
|
|
68876
|
+
__info__.date = "2025-01-31T08:00:07.103Z";
|
|
68877
|
+
__info__.hash = "54a344a";
|
|
68868
68878
|
|
|
68869
68879
|
|
|
68870
68880
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|