@odoo/o-spreadsheet 16.4.26 → 16.4.27
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.
|
@@ -19042,14 +19042,19 @@ const categorieFunctionAll = {
|
|
|
19042
19042
|
children: [allFunctionListMenuBuilder],
|
|
19043
19043
|
};
|
|
19044
19044
|
function allFunctionListMenuBuilder() {
|
|
19045
|
-
const fnNames = functionRegistry.getKeys();
|
|
19045
|
+
const fnNames = functionRegistry.getKeys().filter((key) => !functionRegistry.get(key).hidden);
|
|
19046
19046
|
return createFormulaFunctions(fnNames);
|
|
19047
19047
|
}
|
|
19048
19048
|
const categoriesFunctionListMenuBuilder = () => {
|
|
19049
19049
|
const functions = functionRegistry.content;
|
|
19050
|
-
const categories = [
|
|
19050
|
+
const categories = [
|
|
19051
|
+
...new Set(functionRegistry
|
|
19052
|
+
.getAll()
|
|
19053
|
+
.filter((fn) => !fn.hidden)
|
|
19054
|
+
.map((fn) => fn.category)),
|
|
19055
|
+
].filter(isDefined$1);
|
|
19051
19056
|
return categories.sort().map((category, i) => {
|
|
19052
|
-
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category);
|
|
19057
|
+
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category && !functions[key].hidden);
|
|
19053
19058
|
return {
|
|
19054
19059
|
name: category,
|
|
19055
19060
|
children: createFormulaFunctions(functionsInCategory),
|
|
@@ -23390,6 +23395,9 @@ class FigureComponent extends owl.Component {
|
|
|
23390
23395
|
el?.focus({ preventScroll: true });
|
|
23391
23396
|
}
|
|
23392
23397
|
}, () => [this.env.model.getters.getSelectedFigureId(), this.props.figure.id, this.figureRef.el]);
|
|
23398
|
+
owl.onWillUnmount(() => {
|
|
23399
|
+
this.props.onFigureDeleted();
|
|
23400
|
+
});
|
|
23393
23401
|
}
|
|
23394
23402
|
clickAnchor(dirX, dirY, ev) {
|
|
23395
23403
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -23408,6 +23416,7 @@ class FigureComponent extends owl.Component {
|
|
|
23408
23416
|
this.props.onFigureDeleted();
|
|
23409
23417
|
ev.stopPropagation();
|
|
23410
23418
|
ev.preventDefault();
|
|
23419
|
+
ev.stopPropagation();
|
|
23411
23420
|
break;
|
|
23412
23421
|
case "ArrowDown":
|
|
23413
23422
|
case "ArrowLeft":
|
|
@@ -23428,6 +23437,7 @@ class FigureComponent extends owl.Component {
|
|
|
23428
23437
|
});
|
|
23429
23438
|
ev.stopPropagation();
|
|
23430
23439
|
ev.preventDefault();
|
|
23440
|
+
ev.stopPropagation();
|
|
23431
23441
|
break;
|
|
23432
23442
|
}
|
|
23433
23443
|
}
|
|
@@ -24030,6 +24040,9 @@ class FunctionDescriptionProvider extends owl.Component {
|
|
|
24030
24040
|
this.assistantState.allowCellSelectionBehind = false;
|
|
24031
24041
|
}, 2000);
|
|
24032
24042
|
}
|
|
24043
|
+
get formulaArgSeparator() {
|
|
24044
|
+
return this.env.model.getters.getLocale().formulaArgSeparator + " ";
|
|
24045
|
+
}
|
|
24033
24046
|
}
|
|
24034
24047
|
FunctionDescriptionProvider.props = {
|
|
24035
24048
|
functionName: String,
|
|
@@ -24164,6 +24177,12 @@ class Composer extends owl.Component {
|
|
|
24164
24177
|
owl.useEffect(() => {
|
|
24165
24178
|
this.processContent();
|
|
24166
24179
|
});
|
|
24180
|
+
owl.onPatched(() => {
|
|
24181
|
+
// Required because typing '=SUM' and double-clicking another cell leaves ShowProvider/ShowDescription true
|
|
24182
|
+
if (this.env.model.getters.getEditionMode() === "inactive") {
|
|
24183
|
+
this.processTokenAtCursor();
|
|
24184
|
+
}
|
|
24185
|
+
});
|
|
24167
24186
|
}
|
|
24168
24187
|
// ---------------------------------------------------------------------------
|
|
24169
24188
|
// Handlers
|
|
@@ -44400,6 +44419,7 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
44400
44419
|
this.gridSelection.zones = this.gridSelection.zones.map((z) => this.getters.expandZone(sheetId, z));
|
|
44401
44420
|
this.gridSelection.anchor.zone = this.getters.expandZone(sheetId, this.gridSelection.anchor.zone);
|
|
44402
44421
|
this.setSelectionMixin(this.gridSelection.anchor, this.gridSelection.zones);
|
|
44422
|
+
this.selectedFigureId = null;
|
|
44403
44423
|
break;
|
|
44404
44424
|
}
|
|
44405
44425
|
/** Any change to the selection has to be reflected in the selection processor. */
|
|
@@ -51734,6 +51754,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
51734
51754
|
exports.tokenize = tokenize;
|
|
51735
51755
|
|
|
51736
51756
|
|
|
51737
|
-
__info__.version = '16.4.
|
|
51738
|
-
__info__.date = '2024-03-
|
|
51739
|
-
__info__.hash = '
|
|
51757
|
+
__info__.version = '16.4.27';
|
|
51758
|
+
__info__.date = '2024-03-25T09:41:12.743Z';
|
|
51759
|
+
__info__.hash = '42e4252';
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -6663,13 +6663,14 @@ interface Props$a {
|
|
|
6663
6663
|
interface AssistantState {
|
|
6664
6664
|
allowCellSelectionBehind: boolean;
|
|
6665
6665
|
}
|
|
6666
|
-
declare class FunctionDescriptionProvider extends Component<Props$a> {
|
|
6666
|
+
declare class FunctionDescriptionProvider extends Component<Props$a, SpreadsheetChildEnv> {
|
|
6667
6667
|
static template: string;
|
|
6668
6668
|
assistantState: AssistantState;
|
|
6669
6669
|
private timeOutId;
|
|
6670
6670
|
setup(): void;
|
|
6671
6671
|
getContext(): Props$a;
|
|
6672
6672
|
onMouseMove(): void;
|
|
6673
|
+
get formulaArgSeparator(): string;
|
|
6673
6674
|
}
|
|
6674
6675
|
|
|
6675
6676
|
type HtmlContent = {
|
|
@@ -19038,14 +19038,19 @@ const categorieFunctionAll = {
|
|
|
19038
19038
|
children: [allFunctionListMenuBuilder],
|
|
19039
19039
|
};
|
|
19040
19040
|
function allFunctionListMenuBuilder() {
|
|
19041
|
-
const fnNames = functionRegistry.getKeys();
|
|
19041
|
+
const fnNames = functionRegistry.getKeys().filter((key) => !functionRegistry.get(key).hidden);
|
|
19042
19042
|
return createFormulaFunctions(fnNames);
|
|
19043
19043
|
}
|
|
19044
19044
|
const categoriesFunctionListMenuBuilder = () => {
|
|
19045
19045
|
const functions = functionRegistry.content;
|
|
19046
|
-
const categories = [
|
|
19046
|
+
const categories = [
|
|
19047
|
+
...new Set(functionRegistry
|
|
19048
|
+
.getAll()
|
|
19049
|
+
.filter((fn) => !fn.hidden)
|
|
19050
|
+
.map((fn) => fn.category)),
|
|
19051
|
+
].filter(isDefined$1);
|
|
19047
19052
|
return categories.sort().map((category, i) => {
|
|
19048
|
-
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category);
|
|
19053
|
+
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category && !functions[key].hidden);
|
|
19049
19054
|
return {
|
|
19050
19055
|
name: category,
|
|
19051
19056
|
children: createFormulaFunctions(functionsInCategory),
|
|
@@ -23386,6 +23391,9 @@ class FigureComponent extends Component {
|
|
|
23386
23391
|
el?.focus({ preventScroll: true });
|
|
23387
23392
|
}
|
|
23388
23393
|
}, () => [this.env.model.getters.getSelectedFigureId(), this.props.figure.id, this.figureRef.el]);
|
|
23394
|
+
onWillUnmount(() => {
|
|
23395
|
+
this.props.onFigureDeleted();
|
|
23396
|
+
});
|
|
23389
23397
|
}
|
|
23390
23398
|
clickAnchor(dirX, dirY, ev) {
|
|
23391
23399
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -23404,6 +23412,7 @@ class FigureComponent extends Component {
|
|
|
23404
23412
|
this.props.onFigureDeleted();
|
|
23405
23413
|
ev.stopPropagation();
|
|
23406
23414
|
ev.preventDefault();
|
|
23415
|
+
ev.stopPropagation();
|
|
23407
23416
|
break;
|
|
23408
23417
|
case "ArrowDown":
|
|
23409
23418
|
case "ArrowLeft":
|
|
@@ -23424,6 +23433,7 @@ class FigureComponent extends Component {
|
|
|
23424
23433
|
});
|
|
23425
23434
|
ev.stopPropagation();
|
|
23426
23435
|
ev.preventDefault();
|
|
23436
|
+
ev.stopPropagation();
|
|
23427
23437
|
break;
|
|
23428
23438
|
}
|
|
23429
23439
|
}
|
|
@@ -24026,6 +24036,9 @@ class FunctionDescriptionProvider extends Component {
|
|
|
24026
24036
|
this.assistantState.allowCellSelectionBehind = false;
|
|
24027
24037
|
}, 2000);
|
|
24028
24038
|
}
|
|
24039
|
+
get formulaArgSeparator() {
|
|
24040
|
+
return this.env.model.getters.getLocale().formulaArgSeparator + " ";
|
|
24041
|
+
}
|
|
24029
24042
|
}
|
|
24030
24043
|
FunctionDescriptionProvider.props = {
|
|
24031
24044
|
functionName: String,
|
|
@@ -24160,6 +24173,12 @@ class Composer extends Component {
|
|
|
24160
24173
|
useEffect(() => {
|
|
24161
24174
|
this.processContent();
|
|
24162
24175
|
});
|
|
24176
|
+
onPatched(() => {
|
|
24177
|
+
// Required because typing '=SUM' and double-clicking another cell leaves ShowProvider/ShowDescription true
|
|
24178
|
+
if (this.env.model.getters.getEditionMode() === "inactive") {
|
|
24179
|
+
this.processTokenAtCursor();
|
|
24180
|
+
}
|
|
24181
|
+
});
|
|
24163
24182
|
}
|
|
24164
24183
|
// ---------------------------------------------------------------------------
|
|
24165
24184
|
// Handlers
|
|
@@ -44396,6 +44415,7 @@ class GridSelectionPlugin extends UIPlugin {
|
|
|
44396
44415
|
this.gridSelection.zones = this.gridSelection.zones.map((z) => this.getters.expandZone(sheetId, z));
|
|
44397
44416
|
this.gridSelection.anchor.zone = this.getters.expandZone(sheetId, this.gridSelection.anchor.zone);
|
|
44398
44417
|
this.setSelectionMixin(this.gridSelection.anchor, this.gridSelection.zones);
|
|
44418
|
+
this.selectedFigureId = null;
|
|
44399
44419
|
break;
|
|
44400
44420
|
}
|
|
44401
44421
|
/** Any change to the selection has to be reflected in the selection processor. */
|
|
@@ -51698,6 +51718,6 @@ const constants = {
|
|
|
51698
51718
|
export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
|
|
51699
51719
|
|
|
51700
51720
|
|
|
51701
|
-
__info__.version = '16.4.
|
|
51702
|
-
__info__.date = '2024-03-
|
|
51703
|
-
__info__.hash = '
|
|
51721
|
+
__info__.version = '16.4.27';
|
|
51722
|
+
__info__.date = '2024-03-25T09:41:12.743Z';
|
|
51723
|
+
__info__.hash = '42e4252';
|
|
@@ -19039,14 +19039,19 @@
|
|
|
19039
19039
|
children: [allFunctionListMenuBuilder],
|
|
19040
19040
|
};
|
|
19041
19041
|
function allFunctionListMenuBuilder() {
|
|
19042
|
-
const fnNames = functionRegistry.getKeys();
|
|
19042
|
+
const fnNames = functionRegistry.getKeys().filter((key) => !functionRegistry.get(key).hidden);
|
|
19043
19043
|
return createFormulaFunctions(fnNames);
|
|
19044
19044
|
}
|
|
19045
19045
|
const categoriesFunctionListMenuBuilder = () => {
|
|
19046
19046
|
const functions = functionRegistry.content;
|
|
19047
|
-
const categories = [
|
|
19047
|
+
const categories = [
|
|
19048
|
+
...new Set(functionRegistry
|
|
19049
|
+
.getAll()
|
|
19050
|
+
.filter((fn) => !fn.hidden)
|
|
19051
|
+
.map((fn) => fn.category)),
|
|
19052
|
+
].filter(isDefined$1);
|
|
19048
19053
|
return categories.sort().map((category, i) => {
|
|
19049
|
-
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category);
|
|
19054
|
+
const functionsInCategory = Object.keys(functions).filter((key) => functions[key].category === category && !functions[key].hidden);
|
|
19050
19055
|
return {
|
|
19051
19056
|
name: category,
|
|
19052
19057
|
children: createFormulaFunctions(functionsInCategory),
|
|
@@ -23387,6 +23392,9 @@
|
|
|
23387
23392
|
el?.focus({ preventScroll: true });
|
|
23388
23393
|
}
|
|
23389
23394
|
}, () => [this.env.model.getters.getSelectedFigureId(), this.props.figure.id, this.figureRef.el]);
|
|
23395
|
+
owl.onWillUnmount(() => {
|
|
23396
|
+
this.props.onFigureDeleted();
|
|
23397
|
+
});
|
|
23390
23398
|
}
|
|
23391
23399
|
clickAnchor(dirX, dirY, ev) {
|
|
23392
23400
|
this.props.onClickAnchor(dirX, dirY, ev);
|
|
@@ -23405,6 +23413,7 @@
|
|
|
23405
23413
|
this.props.onFigureDeleted();
|
|
23406
23414
|
ev.stopPropagation();
|
|
23407
23415
|
ev.preventDefault();
|
|
23416
|
+
ev.stopPropagation();
|
|
23408
23417
|
break;
|
|
23409
23418
|
case "ArrowDown":
|
|
23410
23419
|
case "ArrowLeft":
|
|
@@ -23425,6 +23434,7 @@
|
|
|
23425
23434
|
});
|
|
23426
23435
|
ev.stopPropagation();
|
|
23427
23436
|
ev.preventDefault();
|
|
23437
|
+
ev.stopPropagation();
|
|
23428
23438
|
break;
|
|
23429
23439
|
}
|
|
23430
23440
|
}
|
|
@@ -24027,6 +24037,9 @@
|
|
|
24027
24037
|
this.assistantState.allowCellSelectionBehind = false;
|
|
24028
24038
|
}, 2000);
|
|
24029
24039
|
}
|
|
24040
|
+
get formulaArgSeparator() {
|
|
24041
|
+
return this.env.model.getters.getLocale().formulaArgSeparator + " ";
|
|
24042
|
+
}
|
|
24030
24043
|
}
|
|
24031
24044
|
FunctionDescriptionProvider.props = {
|
|
24032
24045
|
functionName: String,
|
|
@@ -24161,6 +24174,12 @@
|
|
|
24161
24174
|
owl.useEffect(() => {
|
|
24162
24175
|
this.processContent();
|
|
24163
24176
|
});
|
|
24177
|
+
owl.onPatched(() => {
|
|
24178
|
+
// Required because typing '=SUM' and double-clicking another cell leaves ShowProvider/ShowDescription true
|
|
24179
|
+
if (this.env.model.getters.getEditionMode() === "inactive") {
|
|
24180
|
+
this.processTokenAtCursor();
|
|
24181
|
+
}
|
|
24182
|
+
});
|
|
24164
24183
|
}
|
|
24165
24184
|
// ---------------------------------------------------------------------------
|
|
24166
24185
|
// Handlers
|
|
@@ -44397,6 +44416,7 @@
|
|
|
44397
44416
|
this.gridSelection.zones = this.gridSelection.zones.map((z) => this.getters.expandZone(sheetId, z));
|
|
44398
44417
|
this.gridSelection.anchor.zone = this.getters.expandZone(sheetId, this.gridSelection.anchor.zone);
|
|
44399
44418
|
this.setSelectionMixin(this.gridSelection.anchor, this.gridSelection.zones);
|
|
44419
|
+
this.selectedFigureId = null;
|
|
44400
44420
|
break;
|
|
44401
44421
|
}
|
|
44402
44422
|
/** Any change to the selection has to be reflected in the selection processor. */
|
|
@@ -51733,9 +51753,9 @@
|
|
|
51733
51753
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
51734
51754
|
|
|
51735
51755
|
|
|
51736
|
-
__info__.version = '16.4.
|
|
51737
|
-
__info__.date = '2024-03-
|
|
51738
|
-
__info__.hash = '
|
|
51756
|
+
__info__.version = '16.4.27';
|
|
51757
|
+
__info__.date = '2024-03-25T09:41:12.743Z';
|
|
51758
|
+
__info__.hash = '42e4252';
|
|
51739
51759
|
|
|
51740
51760
|
|
|
51741
51761
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|