@odoo/o-spreadsheet 16.4.2 → 16.4.4
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.
|
@@ -24067,13 +24067,20 @@ class Composer extends owl.Component {
|
|
|
24067
24067
|
});
|
|
24068
24068
|
this.processTokenAtCursor();
|
|
24069
24069
|
}
|
|
24070
|
-
onKeyup() {
|
|
24070
|
+
onKeyup(ev) {
|
|
24071
24071
|
if (this.contentHelper.el === document.activeElement) {
|
|
24072
|
+
if (this.autoCompleteState.showProvider && ["ArrowUp", "ArrowDown"].includes(ev.key)) {
|
|
24073
|
+
return;
|
|
24074
|
+
}
|
|
24075
|
+
if (this.env.model.getters.isSelectingForComposer() && ev.key?.startsWith("Arrow")) {
|
|
24076
|
+
return;
|
|
24077
|
+
}
|
|
24072
24078
|
const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
|
|
24073
24079
|
const { start, end } = this.contentHelper.getCurrentSelection();
|
|
24074
24080
|
if (start !== oldStart || end !== oldEnd) {
|
|
24075
24081
|
this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", { start, end });
|
|
24076
24082
|
}
|
|
24083
|
+
this.processTokenAtCursor();
|
|
24077
24084
|
}
|
|
24078
24085
|
}
|
|
24079
24086
|
showAutocomplete(searchTerm) {
|
|
@@ -42822,6 +42829,7 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
42822
42829
|
this.filterValues[cmd.sheetId] = {};
|
|
42823
42830
|
break;
|
|
42824
42831
|
case "HIDE_COLUMNS_ROWS":
|
|
42832
|
+
case "UNHIDE_COLUMNS_ROWS":
|
|
42825
42833
|
this.updateHiddenRows();
|
|
42826
42834
|
break;
|
|
42827
42835
|
case "UPDATE_FILTER":
|
|
@@ -48731,6 +48739,9 @@ function numberRef(reference) {
|
|
|
48731
48739
|
|
|
48732
48740
|
function addFormula(cell) {
|
|
48733
48741
|
const formula = cell.content;
|
|
48742
|
+
if (!formula) {
|
|
48743
|
+
return { attrs: [], node: escapeXml `` };
|
|
48744
|
+
}
|
|
48734
48745
|
const attrs = [];
|
|
48735
48746
|
let node = escapeXml ``;
|
|
48736
48747
|
let cycle = escapeXml ``;
|
|
@@ -49434,7 +49445,14 @@ function addCellWiseConditionalFormatting(dxfs // cell-wise CF
|
|
|
49434
49445
|
`;
|
|
49435
49446
|
}
|
|
49436
49447
|
|
|
49437
|
-
const
|
|
49448
|
+
const TABLE_DEFAULT_ATTRS = [
|
|
49449
|
+
["name", "TableStyleLight8"],
|
|
49450
|
+
["showFirstColumn", "0"],
|
|
49451
|
+
["showLastColumn", "0"],
|
|
49452
|
+
["showRowStripes", "0"],
|
|
49453
|
+
["showColumnStripes", "0"],
|
|
49454
|
+
];
|
|
49455
|
+
const TABLE_DEFAULT_STYLE = escapeXml /*xml*/ `<tableStyleInfo ${formatAttributes(TABLE_DEFAULT_ATTRS)}/>`;
|
|
49438
49456
|
function createTable(table, tableId, sheetData) {
|
|
49439
49457
|
const tableAttributes = [
|
|
49440
49458
|
["id", tableId],
|
|
@@ -50540,6 +50558,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
50540
50558
|
exports.tokenize = tokenize;
|
|
50541
50559
|
|
|
50542
50560
|
|
|
50543
|
-
__info__.version = '16.4.
|
|
50544
|
-
__info__.date = '2023-08-
|
|
50545
|
-
__info__.hash = '
|
|
50561
|
+
__info__.version = '16.4.4';
|
|
50562
|
+
__info__.date = '2023-08-17T11:08:07.524Z';
|
|
50563
|
+
__info__.hash = 'bdb3a4c';
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -6706,7 +6706,7 @@ declare class Composer extends Component<ComposerProps, SpreadsheetChildEnv> {
|
|
|
6706
6706
|
onCompositionEnd(): void;
|
|
6707
6707
|
onKeydown(ev: KeyboardEvent): void;
|
|
6708
6708
|
onInput(ev: InputEvent): void;
|
|
6709
|
-
onKeyup(): void;
|
|
6709
|
+
onKeyup(ev: KeyboardEvent): void;
|
|
6710
6710
|
showAutocomplete(searchTerm: string): void;
|
|
6711
6711
|
/**
|
|
6712
6712
|
* This is required to ensure the content helper selection is
|
|
@@ -24063,13 +24063,20 @@ class Composer extends Component {
|
|
|
24063
24063
|
});
|
|
24064
24064
|
this.processTokenAtCursor();
|
|
24065
24065
|
}
|
|
24066
|
-
onKeyup() {
|
|
24066
|
+
onKeyup(ev) {
|
|
24067
24067
|
if (this.contentHelper.el === document.activeElement) {
|
|
24068
|
+
if (this.autoCompleteState.showProvider && ["ArrowUp", "ArrowDown"].includes(ev.key)) {
|
|
24069
|
+
return;
|
|
24070
|
+
}
|
|
24071
|
+
if (this.env.model.getters.isSelectingForComposer() && ev.key?.startsWith("Arrow")) {
|
|
24072
|
+
return;
|
|
24073
|
+
}
|
|
24068
24074
|
const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
|
|
24069
24075
|
const { start, end } = this.contentHelper.getCurrentSelection();
|
|
24070
24076
|
if (start !== oldStart || end !== oldEnd) {
|
|
24071
24077
|
this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", { start, end });
|
|
24072
24078
|
}
|
|
24079
|
+
this.processTokenAtCursor();
|
|
24073
24080
|
}
|
|
24074
24081
|
}
|
|
24075
24082
|
showAutocomplete(searchTerm) {
|
|
@@ -42818,6 +42825,7 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
42818
42825
|
this.filterValues[cmd.sheetId] = {};
|
|
42819
42826
|
break;
|
|
42820
42827
|
case "HIDE_COLUMNS_ROWS":
|
|
42828
|
+
case "UNHIDE_COLUMNS_ROWS":
|
|
42821
42829
|
this.updateHiddenRows();
|
|
42822
42830
|
break;
|
|
42823
42831
|
case "UPDATE_FILTER":
|
|
@@ -48727,6 +48735,9 @@ function numberRef(reference) {
|
|
|
48727
48735
|
|
|
48728
48736
|
function addFormula(cell) {
|
|
48729
48737
|
const formula = cell.content;
|
|
48738
|
+
if (!formula) {
|
|
48739
|
+
return { attrs: [], node: escapeXml `` };
|
|
48740
|
+
}
|
|
48730
48741
|
const attrs = [];
|
|
48731
48742
|
let node = escapeXml ``;
|
|
48732
48743
|
let cycle = escapeXml ``;
|
|
@@ -49430,7 +49441,14 @@ function addCellWiseConditionalFormatting(dxfs // cell-wise CF
|
|
|
49430
49441
|
`;
|
|
49431
49442
|
}
|
|
49432
49443
|
|
|
49433
|
-
const
|
|
49444
|
+
const TABLE_DEFAULT_ATTRS = [
|
|
49445
|
+
["name", "TableStyleLight8"],
|
|
49446
|
+
["showFirstColumn", "0"],
|
|
49447
|
+
["showLastColumn", "0"],
|
|
49448
|
+
["showRowStripes", "0"],
|
|
49449
|
+
["showColumnStripes", "0"],
|
|
49450
|
+
];
|
|
49451
|
+
const TABLE_DEFAULT_STYLE = escapeXml /*xml*/ `<tableStyleInfo ${formatAttributes(TABLE_DEFAULT_ATTRS)}/>`;
|
|
49434
49452
|
function createTable(table, tableId, sheetData) {
|
|
49435
49453
|
const tableAttributes = [
|
|
49436
49454
|
["id", tableId],
|
|
@@ -50504,6 +50522,6 @@ const constants = {
|
|
|
50504
50522
|
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 };
|
|
50505
50523
|
|
|
50506
50524
|
|
|
50507
|
-
__info__.version = '16.4.
|
|
50508
|
-
__info__.date = '2023-08-
|
|
50509
|
-
__info__.hash = '
|
|
50525
|
+
__info__.version = '16.4.4';
|
|
50526
|
+
__info__.date = '2023-08-17T11:08:07.524Z';
|
|
50527
|
+
__info__.hash = 'bdb3a4c';
|
|
@@ -24064,13 +24064,20 @@
|
|
|
24064
24064
|
});
|
|
24065
24065
|
this.processTokenAtCursor();
|
|
24066
24066
|
}
|
|
24067
|
-
onKeyup() {
|
|
24067
|
+
onKeyup(ev) {
|
|
24068
24068
|
if (this.contentHelper.el === document.activeElement) {
|
|
24069
|
+
if (this.autoCompleteState.showProvider && ["ArrowUp", "ArrowDown"].includes(ev.key)) {
|
|
24070
|
+
return;
|
|
24071
|
+
}
|
|
24072
|
+
if (this.env.model.getters.isSelectingForComposer() && ev.key?.startsWith("Arrow")) {
|
|
24073
|
+
return;
|
|
24074
|
+
}
|
|
24069
24075
|
const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
|
|
24070
24076
|
const { start, end } = this.contentHelper.getCurrentSelection();
|
|
24071
24077
|
if (start !== oldStart || end !== oldEnd) {
|
|
24072
24078
|
this.env.model.dispatch("CHANGE_COMPOSER_CURSOR_SELECTION", { start, end });
|
|
24073
24079
|
}
|
|
24080
|
+
this.processTokenAtCursor();
|
|
24074
24081
|
}
|
|
24075
24082
|
}
|
|
24076
24083
|
showAutocomplete(searchTerm) {
|
|
@@ -42819,6 +42826,7 @@
|
|
|
42819
42826
|
this.filterValues[cmd.sheetId] = {};
|
|
42820
42827
|
break;
|
|
42821
42828
|
case "HIDE_COLUMNS_ROWS":
|
|
42829
|
+
case "UNHIDE_COLUMNS_ROWS":
|
|
42822
42830
|
this.updateHiddenRows();
|
|
42823
42831
|
break;
|
|
42824
42832
|
case "UPDATE_FILTER":
|
|
@@ -48728,6 +48736,9 @@
|
|
|
48728
48736
|
|
|
48729
48737
|
function addFormula(cell) {
|
|
48730
48738
|
const formula = cell.content;
|
|
48739
|
+
if (!formula) {
|
|
48740
|
+
return { attrs: [], node: escapeXml `` };
|
|
48741
|
+
}
|
|
48731
48742
|
const attrs = [];
|
|
48732
48743
|
let node = escapeXml ``;
|
|
48733
48744
|
let cycle = escapeXml ``;
|
|
@@ -49431,7 +49442,14 @@
|
|
|
49431
49442
|
`;
|
|
49432
49443
|
}
|
|
49433
49444
|
|
|
49434
|
-
const
|
|
49445
|
+
const TABLE_DEFAULT_ATTRS = [
|
|
49446
|
+
["name", "TableStyleLight8"],
|
|
49447
|
+
["showFirstColumn", "0"],
|
|
49448
|
+
["showLastColumn", "0"],
|
|
49449
|
+
["showRowStripes", "0"],
|
|
49450
|
+
["showColumnStripes", "0"],
|
|
49451
|
+
];
|
|
49452
|
+
const TABLE_DEFAULT_STYLE = escapeXml /*xml*/ `<tableStyleInfo ${formatAttributes(TABLE_DEFAULT_ATTRS)}/>`;
|
|
49435
49453
|
function createTable(table, tableId, sheetData) {
|
|
49436
49454
|
const tableAttributes = [
|
|
49437
49455
|
["id", tableId],
|
|
@@ -50539,9 +50557,9 @@
|
|
|
50539
50557
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
50540
50558
|
|
|
50541
50559
|
|
|
50542
|
-
__info__.version = '16.4.
|
|
50543
|
-
__info__.date = '2023-08-
|
|
50544
|
-
__info__.hash = '
|
|
50560
|
+
__info__.version = '16.4.4';
|
|
50561
|
+
__info__.date = '2023-08-17T11:08:07.524Z';
|
|
50562
|
+
__info__.hash = 'bdb3a4c';
|
|
50545
50563
|
|
|
50546
50564
|
|
|
50547
50565
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|