@odoo/o-spreadsheet 16.4.3 → 16.4.5
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 +27 -23
- package/dist/o-spreadsheet.esm.js +27 -23
- package/dist/o-spreadsheet.iife.js +27 -23
- package/dist/o-spreadsheet.iife.min.js +10 -10
- package/package.json +1 -1
|
@@ -6065,7 +6065,7 @@ class Menu extends owl.Component {
|
|
|
6065
6065
|
};
|
|
6066
6066
|
}
|
|
6067
6067
|
get childrenHaveIcon() {
|
|
6068
|
-
return this.props.menuItems.some((menuItem) => !!
|
|
6068
|
+
return this.props.menuItems.some((menuItem) => !!this.getIconName(menuItem));
|
|
6069
6069
|
}
|
|
6070
6070
|
getIconName(menu) {
|
|
6071
6071
|
if (menu.icon(this.env)) {
|
|
@@ -20731,34 +20731,25 @@ class BarConfigPanel extends LineBarPieConfigPanel {
|
|
|
20731
20731
|
}
|
|
20732
20732
|
|
|
20733
20733
|
function startDnd(onMouseMove, onMouseUp, onMouseDown = () => { }) {
|
|
20734
|
-
const _onMouseDown = (ev) => {
|
|
20735
|
-
ev.preventDefault();
|
|
20736
|
-
onMouseDown(ev);
|
|
20737
|
-
};
|
|
20738
|
-
const _onMouseMove = (ev) => {
|
|
20739
|
-
ev.preventDefault();
|
|
20740
|
-
onMouseMove(ev);
|
|
20741
|
-
};
|
|
20742
20734
|
const _onMouseUp = (ev) => {
|
|
20743
|
-
ev.preventDefault();
|
|
20744
20735
|
onMouseUp(ev);
|
|
20745
|
-
window.removeEventListener("mousedown",
|
|
20736
|
+
window.removeEventListener("mousedown", onMouseDown);
|
|
20746
20737
|
window.removeEventListener("mouseup", _onMouseUp);
|
|
20747
20738
|
window.removeEventListener("dragstart", _onDragStart);
|
|
20748
|
-
window.removeEventListener("mousemove",
|
|
20749
|
-
window.removeEventListener("wheel",
|
|
20739
|
+
window.removeEventListener("mousemove", onMouseMove);
|
|
20740
|
+
window.removeEventListener("wheel", onMouseMove);
|
|
20750
20741
|
};
|
|
20751
20742
|
function _onDragStart(ev) {
|
|
20752
20743
|
ev.preventDefault();
|
|
20753
20744
|
}
|
|
20754
|
-
window.addEventListener("mousedown",
|
|
20745
|
+
window.addEventListener("mousedown", onMouseDown);
|
|
20755
20746
|
window.addEventListener("mouseup", _onMouseUp);
|
|
20756
20747
|
window.addEventListener("dragstart", _onDragStart);
|
|
20757
|
-
window.addEventListener("mousemove",
|
|
20748
|
+
window.addEventListener("mousemove", onMouseMove);
|
|
20758
20749
|
// mouse wheel on window is by default a passive event.
|
|
20759
20750
|
// preventDefault() is not allowed in passive event handler.
|
|
20760
20751
|
// https://chromestatus.com/feature/6662647093133312
|
|
20761
|
-
window.addEventListener("wheel",
|
|
20752
|
+
window.addEventListener("wheel", onMouseMove, { passive: false });
|
|
20762
20753
|
}
|
|
20763
20754
|
/**
|
|
20764
20755
|
* Function to be used during a mousedown event, this function allows to
|
|
@@ -24069,8 +24060,10 @@ class Composer extends owl.Component {
|
|
|
24069
24060
|
}
|
|
24070
24061
|
onKeyup(ev) {
|
|
24071
24062
|
if (this.contentHelper.el === document.activeElement) {
|
|
24072
|
-
|
|
24073
|
-
|
|
24063
|
+
if (this.autoCompleteState.showProvider && ["ArrowUp", "ArrowDown"].includes(ev.key)) {
|
|
24064
|
+
return;
|
|
24065
|
+
}
|
|
24066
|
+
if (this.env.model.getters.isSelectingForComposer() && ev.key?.startsWith("Arrow")) {
|
|
24074
24067
|
return;
|
|
24075
24068
|
}
|
|
24076
24069
|
const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
|
|
@@ -26774,7 +26767,8 @@ class Grid extends owl.Component {
|
|
|
26774
26767
|
}
|
|
26775
26768
|
let prevCol = col;
|
|
26776
26769
|
let prevRow = row;
|
|
26777
|
-
const onMouseMove = (col, row) => {
|
|
26770
|
+
const onMouseMove = (col, row, ev) => {
|
|
26771
|
+
ev.preventDefault();
|
|
26778
26772
|
if ((col !== prevCol && col != -1) || (row !== prevRow && row != -1)) {
|
|
26779
26773
|
prevCol = col === -1 ? prevCol : col;
|
|
26780
26774
|
prevRow = row === -1 ? prevRow : row;
|
|
@@ -48737,6 +48731,9 @@ function numberRef(reference) {
|
|
|
48737
48731
|
|
|
48738
48732
|
function addFormula(cell) {
|
|
48739
48733
|
const formula = cell.content;
|
|
48734
|
+
if (!formula) {
|
|
48735
|
+
return { attrs: [], node: escapeXml `` };
|
|
48736
|
+
}
|
|
48740
48737
|
const attrs = [];
|
|
48741
48738
|
let node = escapeXml ``;
|
|
48742
48739
|
let cycle = escapeXml ``;
|
|
@@ -49440,7 +49437,14 @@ function addCellWiseConditionalFormatting(dxfs // cell-wise CF
|
|
|
49440
49437
|
`;
|
|
49441
49438
|
}
|
|
49442
49439
|
|
|
49443
|
-
const
|
|
49440
|
+
const TABLE_DEFAULT_ATTRS = [
|
|
49441
|
+
["name", "TableStyleLight8"],
|
|
49442
|
+
["showFirstColumn", "0"],
|
|
49443
|
+
["showLastColumn", "0"],
|
|
49444
|
+
["showRowStripes", "0"],
|
|
49445
|
+
["showColumnStripes", "0"],
|
|
49446
|
+
];
|
|
49447
|
+
const TABLE_DEFAULT_STYLE = escapeXml /*xml*/ `<tableStyleInfo ${formatAttributes(TABLE_DEFAULT_ATTRS)}/>`;
|
|
49444
49448
|
function createTable(table, tableId, sheetData) {
|
|
49445
49449
|
const tableAttributes = [
|
|
49446
49450
|
["id", tableId],
|
|
@@ -50546,6 +50550,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
50546
50550
|
exports.tokenize = tokenize;
|
|
50547
50551
|
|
|
50548
50552
|
|
|
50549
|
-
__info__.version = '16.4.
|
|
50550
|
-
__info__.date = '2023-08-
|
|
50551
|
-
__info__.hash = '
|
|
50553
|
+
__info__.version = '16.4.5';
|
|
50554
|
+
__info__.date = '2023-08-29T13:55:58.527Z';
|
|
50555
|
+
__info__.hash = '105c130';
|
|
@@ -6061,7 +6061,7 @@ class Menu extends Component {
|
|
|
6061
6061
|
};
|
|
6062
6062
|
}
|
|
6063
6063
|
get childrenHaveIcon() {
|
|
6064
|
-
return this.props.menuItems.some((menuItem) => !!
|
|
6064
|
+
return this.props.menuItems.some((menuItem) => !!this.getIconName(menuItem));
|
|
6065
6065
|
}
|
|
6066
6066
|
getIconName(menu) {
|
|
6067
6067
|
if (menu.icon(this.env)) {
|
|
@@ -20727,34 +20727,25 @@ class BarConfigPanel extends LineBarPieConfigPanel {
|
|
|
20727
20727
|
}
|
|
20728
20728
|
|
|
20729
20729
|
function startDnd(onMouseMove, onMouseUp, onMouseDown = () => { }) {
|
|
20730
|
-
const _onMouseDown = (ev) => {
|
|
20731
|
-
ev.preventDefault();
|
|
20732
|
-
onMouseDown(ev);
|
|
20733
|
-
};
|
|
20734
|
-
const _onMouseMove = (ev) => {
|
|
20735
|
-
ev.preventDefault();
|
|
20736
|
-
onMouseMove(ev);
|
|
20737
|
-
};
|
|
20738
20730
|
const _onMouseUp = (ev) => {
|
|
20739
|
-
ev.preventDefault();
|
|
20740
20731
|
onMouseUp(ev);
|
|
20741
|
-
window.removeEventListener("mousedown",
|
|
20732
|
+
window.removeEventListener("mousedown", onMouseDown);
|
|
20742
20733
|
window.removeEventListener("mouseup", _onMouseUp);
|
|
20743
20734
|
window.removeEventListener("dragstart", _onDragStart);
|
|
20744
|
-
window.removeEventListener("mousemove",
|
|
20745
|
-
window.removeEventListener("wheel",
|
|
20735
|
+
window.removeEventListener("mousemove", onMouseMove);
|
|
20736
|
+
window.removeEventListener("wheel", onMouseMove);
|
|
20746
20737
|
};
|
|
20747
20738
|
function _onDragStart(ev) {
|
|
20748
20739
|
ev.preventDefault();
|
|
20749
20740
|
}
|
|
20750
|
-
window.addEventListener("mousedown",
|
|
20741
|
+
window.addEventListener("mousedown", onMouseDown);
|
|
20751
20742
|
window.addEventListener("mouseup", _onMouseUp);
|
|
20752
20743
|
window.addEventListener("dragstart", _onDragStart);
|
|
20753
|
-
window.addEventListener("mousemove",
|
|
20744
|
+
window.addEventListener("mousemove", onMouseMove);
|
|
20754
20745
|
// mouse wheel on window is by default a passive event.
|
|
20755
20746
|
// preventDefault() is not allowed in passive event handler.
|
|
20756
20747
|
// https://chromestatus.com/feature/6662647093133312
|
|
20757
|
-
window.addEventListener("wheel",
|
|
20748
|
+
window.addEventListener("wheel", onMouseMove, { passive: false });
|
|
20758
20749
|
}
|
|
20759
20750
|
/**
|
|
20760
20751
|
* Function to be used during a mousedown event, this function allows to
|
|
@@ -24065,8 +24056,10 @@ class Composer extends Component {
|
|
|
24065
24056
|
}
|
|
24066
24057
|
onKeyup(ev) {
|
|
24067
24058
|
if (this.contentHelper.el === document.activeElement) {
|
|
24068
|
-
|
|
24069
|
-
|
|
24059
|
+
if (this.autoCompleteState.showProvider && ["ArrowUp", "ArrowDown"].includes(ev.key)) {
|
|
24060
|
+
return;
|
|
24061
|
+
}
|
|
24062
|
+
if (this.env.model.getters.isSelectingForComposer() && ev.key?.startsWith("Arrow")) {
|
|
24070
24063
|
return;
|
|
24071
24064
|
}
|
|
24072
24065
|
const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
|
|
@@ -26770,7 +26763,8 @@ class Grid extends Component {
|
|
|
26770
26763
|
}
|
|
26771
26764
|
let prevCol = col;
|
|
26772
26765
|
let prevRow = row;
|
|
26773
|
-
const onMouseMove = (col, row) => {
|
|
26766
|
+
const onMouseMove = (col, row, ev) => {
|
|
26767
|
+
ev.preventDefault();
|
|
26774
26768
|
if ((col !== prevCol && col != -1) || (row !== prevRow && row != -1)) {
|
|
26775
26769
|
prevCol = col === -1 ? prevCol : col;
|
|
26776
26770
|
prevRow = row === -1 ? prevRow : row;
|
|
@@ -48733,6 +48727,9 @@ function numberRef(reference) {
|
|
|
48733
48727
|
|
|
48734
48728
|
function addFormula(cell) {
|
|
48735
48729
|
const formula = cell.content;
|
|
48730
|
+
if (!formula) {
|
|
48731
|
+
return { attrs: [], node: escapeXml `` };
|
|
48732
|
+
}
|
|
48736
48733
|
const attrs = [];
|
|
48737
48734
|
let node = escapeXml ``;
|
|
48738
48735
|
let cycle = escapeXml ``;
|
|
@@ -49436,7 +49433,14 @@ function addCellWiseConditionalFormatting(dxfs // cell-wise CF
|
|
|
49436
49433
|
`;
|
|
49437
49434
|
}
|
|
49438
49435
|
|
|
49439
|
-
const
|
|
49436
|
+
const TABLE_DEFAULT_ATTRS = [
|
|
49437
|
+
["name", "TableStyleLight8"],
|
|
49438
|
+
["showFirstColumn", "0"],
|
|
49439
|
+
["showLastColumn", "0"],
|
|
49440
|
+
["showRowStripes", "0"],
|
|
49441
|
+
["showColumnStripes", "0"],
|
|
49442
|
+
];
|
|
49443
|
+
const TABLE_DEFAULT_STYLE = escapeXml /*xml*/ `<tableStyleInfo ${formatAttributes(TABLE_DEFAULT_ATTRS)}/>`;
|
|
49440
49444
|
function createTable(table, tableId, sheetData) {
|
|
49441
49445
|
const tableAttributes = [
|
|
49442
49446
|
["id", tableId],
|
|
@@ -50510,6 +50514,6 @@ const constants = {
|
|
|
50510
50514
|
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 };
|
|
50511
50515
|
|
|
50512
50516
|
|
|
50513
|
-
__info__.version = '16.4.
|
|
50514
|
-
__info__.date = '2023-08-
|
|
50515
|
-
__info__.hash = '
|
|
50517
|
+
__info__.version = '16.4.5';
|
|
50518
|
+
__info__.date = '2023-08-29T13:55:58.527Z';
|
|
50519
|
+
__info__.hash = '105c130';
|
|
@@ -6062,7 +6062,7 @@
|
|
|
6062
6062
|
};
|
|
6063
6063
|
}
|
|
6064
6064
|
get childrenHaveIcon() {
|
|
6065
|
-
return this.props.menuItems.some((menuItem) => !!
|
|
6065
|
+
return this.props.menuItems.some((menuItem) => !!this.getIconName(menuItem));
|
|
6066
6066
|
}
|
|
6067
6067
|
getIconName(menu) {
|
|
6068
6068
|
if (menu.icon(this.env)) {
|
|
@@ -20728,34 +20728,25 @@
|
|
|
20728
20728
|
}
|
|
20729
20729
|
|
|
20730
20730
|
function startDnd(onMouseMove, onMouseUp, onMouseDown = () => { }) {
|
|
20731
|
-
const _onMouseDown = (ev) => {
|
|
20732
|
-
ev.preventDefault();
|
|
20733
|
-
onMouseDown(ev);
|
|
20734
|
-
};
|
|
20735
|
-
const _onMouseMove = (ev) => {
|
|
20736
|
-
ev.preventDefault();
|
|
20737
|
-
onMouseMove(ev);
|
|
20738
|
-
};
|
|
20739
20731
|
const _onMouseUp = (ev) => {
|
|
20740
|
-
ev.preventDefault();
|
|
20741
20732
|
onMouseUp(ev);
|
|
20742
|
-
window.removeEventListener("mousedown",
|
|
20733
|
+
window.removeEventListener("mousedown", onMouseDown);
|
|
20743
20734
|
window.removeEventListener("mouseup", _onMouseUp);
|
|
20744
20735
|
window.removeEventListener("dragstart", _onDragStart);
|
|
20745
|
-
window.removeEventListener("mousemove",
|
|
20746
|
-
window.removeEventListener("wheel",
|
|
20736
|
+
window.removeEventListener("mousemove", onMouseMove);
|
|
20737
|
+
window.removeEventListener("wheel", onMouseMove);
|
|
20747
20738
|
};
|
|
20748
20739
|
function _onDragStart(ev) {
|
|
20749
20740
|
ev.preventDefault();
|
|
20750
20741
|
}
|
|
20751
|
-
window.addEventListener("mousedown",
|
|
20742
|
+
window.addEventListener("mousedown", onMouseDown);
|
|
20752
20743
|
window.addEventListener("mouseup", _onMouseUp);
|
|
20753
20744
|
window.addEventListener("dragstart", _onDragStart);
|
|
20754
|
-
window.addEventListener("mousemove",
|
|
20745
|
+
window.addEventListener("mousemove", onMouseMove);
|
|
20755
20746
|
// mouse wheel on window is by default a passive event.
|
|
20756
20747
|
// preventDefault() is not allowed in passive event handler.
|
|
20757
20748
|
// https://chromestatus.com/feature/6662647093133312
|
|
20758
|
-
window.addEventListener("wheel",
|
|
20749
|
+
window.addEventListener("wheel", onMouseMove, { passive: false });
|
|
20759
20750
|
}
|
|
20760
20751
|
/**
|
|
20761
20752
|
* Function to be used during a mousedown event, this function allows to
|
|
@@ -24066,8 +24057,10 @@
|
|
|
24066
24057
|
}
|
|
24067
24058
|
onKeyup(ev) {
|
|
24068
24059
|
if (this.contentHelper.el === document.activeElement) {
|
|
24069
|
-
|
|
24070
|
-
|
|
24060
|
+
if (this.autoCompleteState.showProvider && ["ArrowUp", "ArrowDown"].includes(ev.key)) {
|
|
24061
|
+
return;
|
|
24062
|
+
}
|
|
24063
|
+
if (this.env.model.getters.isSelectingForComposer() && ev.key?.startsWith("Arrow")) {
|
|
24071
24064
|
return;
|
|
24072
24065
|
}
|
|
24073
24066
|
const { start: oldStart, end: oldEnd } = this.env.model.getters.getComposerSelection();
|
|
@@ -26771,7 +26764,8 @@
|
|
|
26771
26764
|
}
|
|
26772
26765
|
let prevCol = col;
|
|
26773
26766
|
let prevRow = row;
|
|
26774
|
-
const onMouseMove = (col, row) => {
|
|
26767
|
+
const onMouseMove = (col, row, ev) => {
|
|
26768
|
+
ev.preventDefault();
|
|
26775
26769
|
if ((col !== prevCol && col != -1) || (row !== prevRow && row != -1)) {
|
|
26776
26770
|
prevCol = col === -1 ? prevCol : col;
|
|
26777
26771
|
prevRow = row === -1 ? prevRow : row;
|
|
@@ -48734,6 +48728,9 @@
|
|
|
48734
48728
|
|
|
48735
48729
|
function addFormula(cell) {
|
|
48736
48730
|
const formula = cell.content;
|
|
48731
|
+
if (!formula) {
|
|
48732
|
+
return { attrs: [], node: escapeXml `` };
|
|
48733
|
+
}
|
|
48737
48734
|
const attrs = [];
|
|
48738
48735
|
let node = escapeXml ``;
|
|
48739
48736
|
let cycle = escapeXml ``;
|
|
@@ -49437,7 +49434,14 @@
|
|
|
49437
49434
|
`;
|
|
49438
49435
|
}
|
|
49439
49436
|
|
|
49440
|
-
const
|
|
49437
|
+
const TABLE_DEFAULT_ATTRS = [
|
|
49438
|
+
["name", "TableStyleLight8"],
|
|
49439
|
+
["showFirstColumn", "0"],
|
|
49440
|
+
["showLastColumn", "0"],
|
|
49441
|
+
["showRowStripes", "0"],
|
|
49442
|
+
["showColumnStripes", "0"],
|
|
49443
|
+
];
|
|
49444
|
+
const TABLE_DEFAULT_STYLE = escapeXml /*xml*/ `<tableStyleInfo ${formatAttributes(TABLE_DEFAULT_ATTRS)}/>`;
|
|
49441
49445
|
function createTable(table, tableId, sheetData) {
|
|
49442
49446
|
const tableAttributes = [
|
|
49443
49447
|
["id", tableId],
|
|
@@ -50545,9 +50549,9 @@
|
|
|
50545
50549
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
50546
50550
|
|
|
50547
50551
|
|
|
50548
|
-
__info__.version = '16.4.
|
|
50549
|
-
__info__.date = '2023-08-
|
|
50550
|
-
__info__.hash = '
|
|
50552
|
+
__info__.version = '16.4.5';
|
|
50553
|
+
__info__.date = '2023-08-29T13:55:58.527Z';
|
|
50554
|
+
__info__.hash = '105c130';
|
|
50551
50555
|
|
|
50552
50556
|
|
|
50553
50557
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|