@odoo/o-spreadsheet 16.1.3 → 16.1.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.
- package/dist/{o_spreadsheet.cjs.js → o-spreadsheet.cjs.js} +18 -6
- package/dist/{o_spreadsheet.esm.js → o-spreadsheet.esm.js} +18 -6
- package/dist/{o_spreadsheet.iife.js → o-spreadsheet.iife.js} +18 -6
- package/dist/{o_spreadsheet.iife.min.js → o-spreadsheet.iife.min.js} +3 -3
- package/package.json +10 -9
- package/readme.md +3 -1
- /package/dist/{o_spreadsheet.d.ts → o-spreadsheet.d.ts} +0 -0
|
@@ -20014,7 +20014,7 @@ class ColorPicker extends owl.Component {
|
|
|
20014
20014
|
}
|
|
20015
20015
|
onColorClick(color) {
|
|
20016
20016
|
if (color) {
|
|
20017
|
-
this.props.onColorPicked(color);
|
|
20017
|
+
this.props.onColorPicked(toHex(color));
|
|
20018
20018
|
}
|
|
20019
20019
|
}
|
|
20020
20020
|
getCheckMarkColor() {
|
|
@@ -20029,8 +20029,10 @@ class ColorPicker extends owl.Component {
|
|
|
20029
20029
|
this.state.isCurrentColorInvalid = true;
|
|
20030
20030
|
return;
|
|
20031
20031
|
}
|
|
20032
|
+
const color = toHex(this.state.currentColor);
|
|
20032
20033
|
this.state.isCurrentColorInvalid = false;
|
|
20033
|
-
this.props.onColorPicked(
|
|
20034
|
+
this.props.onColorPicked(color);
|
|
20035
|
+
this.state.currentColor = color;
|
|
20034
20036
|
}
|
|
20035
20037
|
toggleColorPicker() {
|
|
20036
20038
|
this.state.showGradient = !this.state.showGradient;
|
|
@@ -32662,6 +32664,9 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
32662
32664
|
case "CREATE_SHEET":
|
|
32663
32665
|
this.filterValues[cmd.sheetId] = {};
|
|
32664
32666
|
break;
|
|
32667
|
+
case "HIDE_COLUMNS_ROWS":
|
|
32668
|
+
this.updateHiddenRows();
|
|
32669
|
+
break;
|
|
32665
32670
|
case "UPDATE_FILTER":
|
|
32666
32671
|
this.updateFilter(cmd);
|
|
32667
32672
|
this.updateHiddenRows();
|
|
@@ -32770,9 +32775,16 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
32770
32775
|
updateHiddenRows() {
|
|
32771
32776
|
var _a, _b;
|
|
32772
32777
|
const sheetId = this.getters.getActiveSheetId();
|
|
32773
|
-
const filters = this.getters
|
|
32778
|
+
const filters = this.getters
|
|
32779
|
+
.getFilters(sheetId)
|
|
32780
|
+
.sort((filter1, filter2) => filter1.zoneWithHeaders.top - filter2.zoneWithHeaders.top);
|
|
32774
32781
|
const hiddenRows = new Set();
|
|
32775
32782
|
for (let filter of filters) {
|
|
32783
|
+
// Disable filters whose header are hidden
|
|
32784
|
+
if (this.getters.isRowHiddenByUser(sheetId, filter.zoneWithHeaders.top))
|
|
32785
|
+
continue;
|
|
32786
|
+
if (hiddenRows.has(filter.zoneWithHeaders.top))
|
|
32787
|
+
continue;
|
|
32776
32788
|
const filteredValues = (_b = (_a = this.filterValues[sheetId]) === null || _a === void 0 ? void 0 : _a[filter.id]) === null || _b === void 0 ? void 0 : _b.map(toLowerCase);
|
|
32777
32789
|
if (!filteredValues || !filter.filteredZone)
|
|
32778
32790
|
continue;
|
|
@@ -43899,6 +43911,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
43899
43911
|
exports.tokenize = tokenize;
|
|
43900
43912
|
|
|
43901
43913
|
|
|
43902
|
-
__info__.version = '16.1.
|
|
43903
|
-
__info__.date = '2023-03-
|
|
43904
|
-
__info__.hash = '
|
|
43914
|
+
__info__.version = '16.1.4';
|
|
43915
|
+
__info__.date = '2023-03-14T09:27:28.837Z';
|
|
43916
|
+
__info__.hash = 'c8882d9';
|
|
@@ -20010,7 +20010,7 @@ class ColorPicker extends Component {
|
|
|
20010
20010
|
}
|
|
20011
20011
|
onColorClick(color) {
|
|
20012
20012
|
if (color) {
|
|
20013
|
-
this.props.onColorPicked(color);
|
|
20013
|
+
this.props.onColorPicked(toHex(color));
|
|
20014
20014
|
}
|
|
20015
20015
|
}
|
|
20016
20016
|
getCheckMarkColor() {
|
|
@@ -20025,8 +20025,10 @@ class ColorPicker extends Component {
|
|
|
20025
20025
|
this.state.isCurrentColorInvalid = true;
|
|
20026
20026
|
return;
|
|
20027
20027
|
}
|
|
20028
|
+
const color = toHex(this.state.currentColor);
|
|
20028
20029
|
this.state.isCurrentColorInvalid = false;
|
|
20029
|
-
this.props.onColorPicked(
|
|
20030
|
+
this.props.onColorPicked(color);
|
|
20031
|
+
this.state.currentColor = color;
|
|
20030
20032
|
}
|
|
20031
20033
|
toggleColorPicker() {
|
|
20032
20034
|
this.state.showGradient = !this.state.showGradient;
|
|
@@ -32658,6 +32660,9 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
32658
32660
|
case "CREATE_SHEET":
|
|
32659
32661
|
this.filterValues[cmd.sheetId] = {};
|
|
32660
32662
|
break;
|
|
32663
|
+
case "HIDE_COLUMNS_ROWS":
|
|
32664
|
+
this.updateHiddenRows();
|
|
32665
|
+
break;
|
|
32661
32666
|
case "UPDATE_FILTER":
|
|
32662
32667
|
this.updateFilter(cmd);
|
|
32663
32668
|
this.updateHiddenRows();
|
|
@@ -32766,9 +32771,16 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
32766
32771
|
updateHiddenRows() {
|
|
32767
32772
|
var _a, _b;
|
|
32768
32773
|
const sheetId = this.getters.getActiveSheetId();
|
|
32769
|
-
const filters = this.getters
|
|
32774
|
+
const filters = this.getters
|
|
32775
|
+
.getFilters(sheetId)
|
|
32776
|
+
.sort((filter1, filter2) => filter1.zoneWithHeaders.top - filter2.zoneWithHeaders.top);
|
|
32770
32777
|
const hiddenRows = new Set();
|
|
32771
32778
|
for (let filter of filters) {
|
|
32779
|
+
// Disable filters whose header are hidden
|
|
32780
|
+
if (this.getters.isRowHiddenByUser(sheetId, filter.zoneWithHeaders.top))
|
|
32781
|
+
continue;
|
|
32782
|
+
if (hiddenRows.has(filter.zoneWithHeaders.top))
|
|
32783
|
+
continue;
|
|
32772
32784
|
const filteredValues = (_b = (_a = this.filterValues[sheetId]) === null || _a === void 0 ? void 0 : _a[filter.id]) === null || _b === void 0 ? void 0 : _b.map(toLowerCase);
|
|
32773
32785
|
if (!filteredValues || !filter.filteredZone)
|
|
32774
32786
|
continue;
|
|
@@ -43867,6 +43879,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
43867
43879
|
export { AbstractChart, CommandResult, CorePlugin, DATETIME_FORMAT, 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, setTranslationMethod, tokenize };
|
|
43868
43880
|
|
|
43869
43881
|
|
|
43870
|
-
__info__.version = '16.1.
|
|
43871
|
-
__info__.date = '2023-03-
|
|
43872
|
-
__info__.hash = '
|
|
43882
|
+
__info__.version = '16.1.4';
|
|
43883
|
+
__info__.date = '2023-03-14T09:27:28.837Z';
|
|
43884
|
+
__info__.hash = 'c8882d9';
|
|
@@ -20011,7 +20011,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
20011
20011
|
}
|
|
20012
20012
|
onColorClick(color) {
|
|
20013
20013
|
if (color) {
|
|
20014
|
-
this.props.onColorPicked(color);
|
|
20014
|
+
this.props.onColorPicked(toHex(color));
|
|
20015
20015
|
}
|
|
20016
20016
|
}
|
|
20017
20017
|
getCheckMarkColor() {
|
|
@@ -20026,8 +20026,10 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
20026
20026
|
this.state.isCurrentColorInvalid = true;
|
|
20027
20027
|
return;
|
|
20028
20028
|
}
|
|
20029
|
+
const color = toHex(this.state.currentColor);
|
|
20029
20030
|
this.state.isCurrentColorInvalid = false;
|
|
20030
|
-
this.props.onColorPicked(
|
|
20031
|
+
this.props.onColorPicked(color);
|
|
20032
|
+
this.state.currentColor = color;
|
|
20031
20033
|
}
|
|
20032
20034
|
toggleColorPicker() {
|
|
20033
20035
|
this.state.showGradient = !this.state.showGradient;
|
|
@@ -32659,6 +32661,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
32659
32661
|
case "CREATE_SHEET":
|
|
32660
32662
|
this.filterValues[cmd.sheetId] = {};
|
|
32661
32663
|
break;
|
|
32664
|
+
case "HIDE_COLUMNS_ROWS":
|
|
32665
|
+
this.updateHiddenRows();
|
|
32666
|
+
break;
|
|
32662
32667
|
case "UPDATE_FILTER":
|
|
32663
32668
|
this.updateFilter(cmd);
|
|
32664
32669
|
this.updateHiddenRows();
|
|
@@ -32767,9 +32772,16 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
32767
32772
|
updateHiddenRows() {
|
|
32768
32773
|
var _a, _b;
|
|
32769
32774
|
const sheetId = this.getters.getActiveSheetId();
|
|
32770
|
-
const filters = this.getters
|
|
32775
|
+
const filters = this.getters
|
|
32776
|
+
.getFilters(sheetId)
|
|
32777
|
+
.sort((filter1, filter2) => filter1.zoneWithHeaders.top - filter2.zoneWithHeaders.top);
|
|
32771
32778
|
const hiddenRows = new Set();
|
|
32772
32779
|
for (let filter of filters) {
|
|
32780
|
+
// Disable filters whose header are hidden
|
|
32781
|
+
if (this.getters.isRowHiddenByUser(sheetId, filter.zoneWithHeaders.top))
|
|
32782
|
+
continue;
|
|
32783
|
+
if (hiddenRows.has(filter.zoneWithHeaders.top))
|
|
32784
|
+
continue;
|
|
32773
32785
|
const filteredValues = (_b = (_a = this.filterValues[sheetId]) === null || _a === void 0 ? void 0 : _a[filter.id]) === null || _b === void 0 ? void 0 : _b.map(toLowerCase);
|
|
32774
32786
|
if (!filteredValues || !filter.filteredZone)
|
|
32775
32787
|
continue;
|
|
@@ -43898,9 +43910,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
43898
43910
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
43899
43911
|
|
|
43900
43912
|
|
|
43901
|
-
__info__.version = '16.1.
|
|
43902
|
-
__info__.date = '2023-03-
|
|
43903
|
-
__info__.hash = '
|
|
43913
|
+
__info__.version = '16.1.4';
|
|
43914
|
+
__info__.date = '2023-03-14T09:27:28.837Z';
|
|
43915
|
+
__info__.hash = 'c8882d9';
|
|
43904
43916
|
|
|
43905
43917
|
|
|
43906
43918
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|