@odoo/o-spreadsheet 16.3.29 → 16.3.30
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.
|
@@ -16549,14 +16549,19 @@ const categorieFunctionAll = {
|
|
|
16549
16549
|
children: [allFunctionListMenuBuilder],
|
|
16550
16550
|
};
|
|
16551
16551
|
function allFunctionListMenuBuilder() {
|
|
16552
|
-
const fnNames = functionRegistry.getKeys();
|
|
16552
|
+
const fnNames = functionRegistry.getKeys().filter((key) => !functionRegistry.get(key).hidden);
|
|
16553
16553
|
return createFormulaFunctions(fnNames);
|
|
16554
16554
|
}
|
|
16555
16555
|
const categoriesFunctionListMenuBuilder = () => {
|
|
16556
16556
|
const functions = functionRegistry.content;
|
|
16557
|
-
const categories = [
|
|
16557
|
+
const categories = [
|
|
16558
|
+
...new Set(functionRegistry
|
|
16559
|
+
.getAll()
|
|
16560
|
+
.filter((fn) => !fn.hidden)
|
|
16561
|
+
.map((fn) => fn.category)),
|
|
16562
|
+
].filter(isDefined$1);
|
|
16558
16563
|
return categories.sort().map((category, i) => {
|
|
16559
|
-
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category);
|
|
16564
|
+
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category && !functions[key].hidden);
|
|
16560
16565
|
return {
|
|
16561
16566
|
name: category,
|
|
16562
16567
|
children: createFormulaFunctions(functionsInCategory),
|
|
@@ -20216,6 +20221,9 @@ class FigureComponent extends owl.Component {
|
|
|
20216
20221
|
el?.focus({ preventScroll: true });
|
|
20217
20222
|
}
|
|
20218
20223
|
}, () => [this.env.model.getters.getSelectedFigureId(), this.props.figure.id, this.figureRef.el]);
|
|
20224
|
+
owl.onWillUnmount(() => {
|
|
20225
|
+
this.props.onFigureDeleted();
|
|
20226
|
+
});
|
|
20219
20227
|
}
|
|
20220
20228
|
clickAnchor(dirX, dirY, ev) {
|
|
20221
20229
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -20234,6 +20242,7 @@ class FigureComponent extends owl.Component {
|
|
|
20234
20242
|
this.props.onFigureDeleted();
|
|
20235
20243
|
ev.stopPropagation();
|
|
20236
20244
|
ev.preventDefault();
|
|
20245
|
+
ev.stopPropagation();
|
|
20237
20246
|
break;
|
|
20238
20247
|
case "ArrowDown":
|
|
20239
20248
|
case "ArrowLeft":
|
|
@@ -20254,6 +20263,7 @@ class FigureComponent extends owl.Component {
|
|
|
20254
20263
|
});
|
|
20255
20264
|
ev.stopPropagation();
|
|
20256
20265
|
ev.preventDefault();
|
|
20266
|
+
ev.stopPropagation();
|
|
20257
20267
|
break;
|
|
20258
20268
|
}
|
|
20259
20269
|
}
|
|
@@ -21062,6 +21072,10 @@ class Composer extends owl.Component {
|
|
|
21062
21072
|
if (!this.isKeyStillDown) {
|
|
21063
21073
|
this.processContent();
|
|
21064
21074
|
}
|
|
21075
|
+
// Required because typing '=SUM' and double-clicking another cell leaves ShowProvider and ShowDescription true
|
|
21076
|
+
if (this.env.model.getters.getEditionMode() === "inactive") {
|
|
21077
|
+
this.processTokenAtCursor();
|
|
21078
|
+
}
|
|
21065
21079
|
});
|
|
21066
21080
|
}
|
|
21067
21081
|
// ---------------------------------------------------------------------------
|
|
@@ -41683,6 +41697,7 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
41683
41697
|
this.gridSelection.zones = this.gridSelection.zones.map((z) => this.getters.expandZone(sheetId, z));
|
|
41684
41698
|
this.gridSelection.anchor.zone = this.getters.expandZone(sheetId, this.gridSelection.anchor.zone);
|
|
41685
41699
|
this.setSelectionMixin(this.gridSelection.anchor, this.gridSelection.zones);
|
|
41700
|
+
this.selectedFigureId = null;
|
|
41686
41701
|
break;
|
|
41687
41702
|
}
|
|
41688
41703
|
/** Any change to the selection has to be reflected in the selection processor. */
|
|
@@ -48049,6 +48064,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
48049
48064
|
exports.tokenize = tokenize;
|
|
48050
48065
|
|
|
48051
48066
|
|
|
48052
|
-
__info__.version = '16.3.
|
|
48053
|
-
__info__.date = '2024-03-
|
|
48054
|
-
__info__.hash = '
|
|
48067
|
+
__info__.version = '16.3.30';
|
|
48068
|
+
__info__.date = '2024-03-25T09:36:48.685Z';
|
|
48069
|
+
__info__.hash = '0d2ee33';
|
|
@@ -16545,14 +16545,19 @@ const categorieFunctionAll = {
|
|
|
16545
16545
|
children: [allFunctionListMenuBuilder],
|
|
16546
16546
|
};
|
|
16547
16547
|
function allFunctionListMenuBuilder() {
|
|
16548
|
-
const fnNames = functionRegistry.getKeys();
|
|
16548
|
+
const fnNames = functionRegistry.getKeys().filter((key) => !functionRegistry.get(key).hidden);
|
|
16549
16549
|
return createFormulaFunctions(fnNames);
|
|
16550
16550
|
}
|
|
16551
16551
|
const categoriesFunctionListMenuBuilder = () => {
|
|
16552
16552
|
const functions = functionRegistry.content;
|
|
16553
|
-
const categories = [
|
|
16553
|
+
const categories = [
|
|
16554
|
+
...new Set(functionRegistry
|
|
16555
|
+
.getAll()
|
|
16556
|
+
.filter((fn) => !fn.hidden)
|
|
16557
|
+
.map((fn) => fn.category)),
|
|
16558
|
+
].filter(isDefined$1);
|
|
16554
16559
|
return categories.sort().map((category, i) => {
|
|
16555
|
-
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category);
|
|
16560
|
+
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category && !functions[key].hidden);
|
|
16556
16561
|
return {
|
|
16557
16562
|
name: category,
|
|
16558
16563
|
children: createFormulaFunctions(functionsInCategory),
|
|
@@ -20212,6 +20217,9 @@ class FigureComponent extends Component {
|
|
|
20212
20217
|
el?.focus({ preventScroll: true });
|
|
20213
20218
|
}
|
|
20214
20219
|
}, () => [this.env.model.getters.getSelectedFigureId(), this.props.figure.id, this.figureRef.el]);
|
|
20220
|
+
onWillUnmount(() => {
|
|
20221
|
+
this.props.onFigureDeleted();
|
|
20222
|
+
});
|
|
20215
20223
|
}
|
|
20216
20224
|
clickAnchor(dirX, dirY, ev) {
|
|
20217
20225
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -20230,6 +20238,7 @@ class FigureComponent extends Component {
|
|
|
20230
20238
|
this.props.onFigureDeleted();
|
|
20231
20239
|
ev.stopPropagation();
|
|
20232
20240
|
ev.preventDefault();
|
|
20241
|
+
ev.stopPropagation();
|
|
20233
20242
|
break;
|
|
20234
20243
|
case "ArrowDown":
|
|
20235
20244
|
case "ArrowLeft":
|
|
@@ -20250,6 +20259,7 @@ class FigureComponent extends Component {
|
|
|
20250
20259
|
});
|
|
20251
20260
|
ev.stopPropagation();
|
|
20252
20261
|
ev.preventDefault();
|
|
20262
|
+
ev.stopPropagation();
|
|
20253
20263
|
break;
|
|
20254
20264
|
}
|
|
20255
20265
|
}
|
|
@@ -21058,6 +21068,10 @@ class Composer extends Component {
|
|
|
21058
21068
|
if (!this.isKeyStillDown) {
|
|
21059
21069
|
this.processContent();
|
|
21060
21070
|
}
|
|
21071
|
+
// Required because typing '=SUM' and double-clicking another cell leaves ShowProvider and ShowDescription true
|
|
21072
|
+
if (this.env.model.getters.getEditionMode() === "inactive") {
|
|
21073
|
+
this.processTokenAtCursor();
|
|
21074
|
+
}
|
|
21061
21075
|
});
|
|
21062
21076
|
}
|
|
21063
21077
|
// ---------------------------------------------------------------------------
|
|
@@ -41679,6 +41693,7 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
41679
41693
|
this.gridSelection.zones = this.gridSelection.zones.map((z) => this.getters.expandZone(sheetId, z));
|
|
41680
41694
|
this.gridSelection.anchor.zone = this.getters.expandZone(sheetId, this.gridSelection.anchor.zone);
|
|
41681
41695
|
this.setSelectionMixin(this.gridSelection.anchor, this.gridSelection.zones);
|
|
41696
|
+
this.selectedFigureId = null;
|
|
41682
41697
|
break;
|
|
41683
41698
|
}
|
|
41684
41699
|
/** Any change to the selection has to be reflected in the selection processor. */
|
|
@@ -48017,6 +48032,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
48017
48032
|
export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
|
|
48018
48033
|
|
|
48019
48034
|
|
|
48020
|
-
__info__.version = '16.3.
|
|
48021
|
-
__info__.date = '2024-03-
|
|
48022
|
-
__info__.hash = '
|
|
48035
|
+
__info__.version = '16.3.30';
|
|
48036
|
+
__info__.date = '2024-03-25T09:36:48.685Z';
|
|
48037
|
+
__info__.hash = '0d2ee33';
|
|
@@ -16546,14 +16546,19 @@
|
|
|
16546
16546
|
children: [allFunctionListMenuBuilder],
|
|
16547
16547
|
};
|
|
16548
16548
|
function allFunctionListMenuBuilder() {
|
|
16549
|
-
const fnNames = functionRegistry.getKeys();
|
|
16549
|
+
const fnNames = functionRegistry.getKeys().filter((key) => !functionRegistry.get(key).hidden);
|
|
16550
16550
|
return createFormulaFunctions(fnNames);
|
|
16551
16551
|
}
|
|
16552
16552
|
const categoriesFunctionListMenuBuilder = () => {
|
|
16553
16553
|
const functions = functionRegistry.content;
|
|
16554
|
-
const categories = [
|
|
16554
|
+
const categories = [
|
|
16555
|
+
...new Set(functionRegistry
|
|
16556
|
+
.getAll()
|
|
16557
|
+
.filter((fn) => !fn.hidden)
|
|
16558
|
+
.map((fn) => fn.category)),
|
|
16559
|
+
].filter(isDefined$1);
|
|
16555
16560
|
return categories.sort().map((category, i) => {
|
|
16556
|
-
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category);
|
|
16561
|
+
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category && !functions[key].hidden);
|
|
16557
16562
|
return {
|
|
16558
16563
|
name: category,
|
|
16559
16564
|
children: createFormulaFunctions(functionsInCategory),
|
|
@@ -20213,6 +20218,9 @@
|
|
|
20213
20218
|
el?.focus({ preventScroll: true });
|
|
20214
20219
|
}
|
|
20215
20220
|
}, () => [this.env.model.getters.getSelectedFigureId(), this.props.figure.id, this.figureRef.el]);
|
|
20221
|
+
owl.onWillUnmount(() => {
|
|
20222
|
+
this.props.onFigureDeleted();
|
|
20223
|
+
});
|
|
20216
20224
|
}
|
|
20217
20225
|
clickAnchor(dirX, dirY, ev) {
|
|
20218
20226
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -20231,6 +20239,7 @@
|
|
|
20231
20239
|
this.props.onFigureDeleted();
|
|
20232
20240
|
ev.stopPropagation();
|
|
20233
20241
|
ev.preventDefault();
|
|
20242
|
+
ev.stopPropagation();
|
|
20234
20243
|
break;
|
|
20235
20244
|
case "ArrowDown":
|
|
20236
20245
|
case "ArrowLeft":
|
|
@@ -20251,6 +20260,7 @@
|
|
|
20251
20260
|
});
|
|
20252
20261
|
ev.stopPropagation();
|
|
20253
20262
|
ev.preventDefault();
|
|
20263
|
+
ev.stopPropagation();
|
|
20254
20264
|
break;
|
|
20255
20265
|
}
|
|
20256
20266
|
}
|
|
@@ -21059,6 +21069,10 @@
|
|
|
21059
21069
|
if (!this.isKeyStillDown) {
|
|
21060
21070
|
this.processContent();
|
|
21061
21071
|
}
|
|
21072
|
+
// Required because typing '=SUM' and double-clicking another cell leaves ShowProvider and ShowDescription true
|
|
21073
|
+
if (this.env.model.getters.getEditionMode() === "inactive") {
|
|
21074
|
+
this.processTokenAtCursor();
|
|
21075
|
+
}
|
|
21062
21076
|
});
|
|
21063
21077
|
}
|
|
21064
21078
|
// ---------------------------------------------------------------------------
|
|
@@ -41680,6 +41694,7 @@
|
|
|
41680
41694
|
this.gridSelection.zones = this.gridSelection.zones.map((z) => this.getters.expandZone(sheetId, z));
|
|
41681
41695
|
this.gridSelection.anchor.zone = this.getters.expandZone(sheetId, this.gridSelection.anchor.zone);
|
|
41682
41696
|
this.setSelectionMixin(this.gridSelection.anchor, this.gridSelection.zones);
|
|
41697
|
+
this.selectedFigureId = null;
|
|
41683
41698
|
break;
|
|
41684
41699
|
}
|
|
41685
41700
|
/** Any change to the selection has to be reflected in the selection processor. */
|
|
@@ -48048,9 +48063,9 @@
|
|
|
48048
48063
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
48049
48064
|
|
|
48050
48065
|
|
|
48051
|
-
__info__.version = '16.3.
|
|
48052
|
-
__info__.date = '2024-03-
|
|
48053
|
-
__info__.hash = '
|
|
48066
|
+
__info__.version = '16.3.30';
|
|
48067
|
+
__info__.date = '2024-03-25T09:36:48.685Z';
|
|
48068
|
+
__info__.hash = '0d2ee33';
|
|
48054
48069
|
|
|
48055
48070
|
|
|
48056
48071
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|