@odoo/o-spreadsheet 16.0.3 → 16.0.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.
|
@@ -896,6 +896,9 @@ function parseSheetLink(sheetLink) {
|
|
|
896
896
|
function isDefined$1(argument) {
|
|
897
897
|
return argument !== undefined;
|
|
898
898
|
}
|
|
899
|
+
function isNonEmptyString(str) {
|
|
900
|
+
return str !== undefined && str !== "";
|
|
901
|
+
}
|
|
899
902
|
/**
|
|
900
903
|
* Check if all the values of an object, and all the values of the objects inside of it, are undefined.
|
|
901
904
|
*/
|
|
@@ -32918,7 +32921,7 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
32918
32921
|
const valuesInFilterZone = filter.filteredZone
|
|
32919
32922
|
? positions(filter.filteredZone)
|
|
32920
32923
|
.map((pos) => { var _a; return (_a = this.getters.getCell(sheetData.id, pos.col, pos.row)) === null || _a === void 0 ? void 0 : _a.formattedValue; })
|
|
32921
|
-
.filter(
|
|
32924
|
+
.filter(isNonEmptyString)
|
|
32922
32925
|
: [];
|
|
32923
32926
|
// In xlsx, filtered values = values that are displayed, not values that are hidden
|
|
32924
32927
|
const xlsxFilteredValues = valuesInFilterZone.filter((val) => !filteredValues.includes(val));
|
|
@@ -38190,6 +38193,7 @@ class TopBar extends owl.Component {
|
|
|
38190
38193
|
this.state.menuState.parentMenu = menu;
|
|
38191
38194
|
this.isSelectingMenu = true;
|
|
38192
38195
|
this.openedEl = ev.target;
|
|
38196
|
+
this.env.model.dispatch("STOP_EDITION");
|
|
38193
38197
|
}
|
|
38194
38198
|
closeMenus() {
|
|
38195
38199
|
this.state.activeTool = "";
|
|
@@ -42467,6 +42471,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
42467
42471
|
exports.tokenize = tokenize;
|
|
42468
42472
|
|
|
42469
42473
|
|
|
42470
|
-
__info__.version = '16.0.
|
|
42471
|
-
__info__.date = '2023-03-
|
|
42472
|
-
__info__.hash = '
|
|
42474
|
+
__info__.version = '16.0.4';
|
|
42475
|
+
__info__.date = '2023-03-16T12:11:01.007Z';
|
|
42476
|
+
__info__.hash = 'ebbb1f0';
|
|
@@ -892,6 +892,9 @@ function parseSheetLink(sheetLink) {
|
|
|
892
892
|
function isDefined$1(argument) {
|
|
893
893
|
return argument !== undefined;
|
|
894
894
|
}
|
|
895
|
+
function isNonEmptyString(str) {
|
|
896
|
+
return str !== undefined && str !== "";
|
|
897
|
+
}
|
|
895
898
|
/**
|
|
896
899
|
* Check if all the values of an object, and all the values of the objects inside of it, are undefined.
|
|
897
900
|
*/
|
|
@@ -32914,7 +32917,7 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
32914
32917
|
const valuesInFilterZone = filter.filteredZone
|
|
32915
32918
|
? positions(filter.filteredZone)
|
|
32916
32919
|
.map((pos) => { var _a; return (_a = this.getters.getCell(sheetData.id, pos.col, pos.row)) === null || _a === void 0 ? void 0 : _a.formattedValue; })
|
|
32917
|
-
.filter(
|
|
32920
|
+
.filter(isNonEmptyString)
|
|
32918
32921
|
: [];
|
|
32919
32922
|
// In xlsx, filtered values = values that are displayed, not values that are hidden
|
|
32920
32923
|
const xlsxFilteredValues = valuesInFilterZone.filter((val) => !filteredValues.includes(val));
|
|
@@ -38186,6 +38189,7 @@ class TopBar extends Component {
|
|
|
38186
38189
|
this.state.menuState.parentMenu = menu;
|
|
38187
38190
|
this.isSelectingMenu = true;
|
|
38188
38191
|
this.openedEl = ev.target;
|
|
38192
|
+
this.env.model.dispatch("STOP_EDITION");
|
|
38189
38193
|
}
|
|
38190
38194
|
closeMenus() {
|
|
38191
38195
|
this.state.activeTool = "";
|
|
@@ -42435,6 +42439,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
42435
42439
|
export { AbstractChart, CommandResult, CorePlugin, DATETIME_FORMAT, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, cellTypes, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, load, parse, readonlyAllowedCommands, registries, setTranslationMethod, tokenize };
|
|
42436
42440
|
|
|
42437
42441
|
|
|
42438
|
-
__info__.version = '16.0.
|
|
42439
|
-
__info__.date = '2023-03-
|
|
42440
|
-
__info__.hash = '
|
|
42442
|
+
__info__.version = '16.0.4';
|
|
42443
|
+
__info__.date = '2023-03-16T12:11:01.007Z';
|
|
42444
|
+
__info__.hash = 'ebbb1f0';
|
|
@@ -893,6 +893,9 @@
|
|
|
893
893
|
function isDefined$1(argument) {
|
|
894
894
|
return argument !== undefined;
|
|
895
895
|
}
|
|
896
|
+
function isNonEmptyString(str) {
|
|
897
|
+
return str !== undefined && str !== "";
|
|
898
|
+
}
|
|
896
899
|
/**
|
|
897
900
|
* Check if all the values of an object, and all the values of the objects inside of it, are undefined.
|
|
898
901
|
*/
|
|
@@ -32915,7 +32918,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
32915
32918
|
const valuesInFilterZone = filter.filteredZone
|
|
32916
32919
|
? positions(filter.filteredZone)
|
|
32917
32920
|
.map((pos) => { var _a; return (_a = this.getters.getCell(sheetData.id, pos.col, pos.row)) === null || _a === void 0 ? void 0 : _a.formattedValue; })
|
|
32918
|
-
.filter(
|
|
32921
|
+
.filter(isNonEmptyString)
|
|
32919
32922
|
: [];
|
|
32920
32923
|
// In xlsx, filtered values = values that are displayed, not values that are hidden
|
|
32921
32924
|
const xlsxFilteredValues = valuesInFilterZone.filter((val) => !filteredValues.includes(val));
|
|
@@ -38187,6 +38190,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
38187
38190
|
this.state.menuState.parentMenu = menu;
|
|
38188
38191
|
this.isSelectingMenu = true;
|
|
38189
38192
|
this.openedEl = ev.target;
|
|
38193
|
+
this.env.model.dispatch("STOP_EDITION");
|
|
38190
38194
|
}
|
|
38191
38195
|
closeMenus() {
|
|
38192
38196
|
this.state.activeTool = "";
|
|
@@ -42466,9 +42470,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
42466
42470
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
42467
42471
|
|
|
42468
42472
|
|
|
42469
|
-
__info__.version = '16.0.
|
|
42470
|
-
__info__.date = '2023-03-
|
|
42471
|
-
__info__.hash = '
|
|
42473
|
+
__info__.version = '16.0.4';
|
|
42474
|
+
__info__.date = '2023-03-16T12:11:01.007Z';
|
|
42475
|
+
__info__.hash = 'ebbb1f0';
|
|
42472
42476
|
|
|
42473
42477
|
|
|
42474
42478
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|