@odoo/o-spreadsheet 16.1.7 → 16.1.8
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.
|
@@ -33073,48 +33073,66 @@ class InternalViewport {
|
|
|
33073
33073
|
this.adjustPositionY(row);
|
|
33074
33074
|
}
|
|
33075
33075
|
}
|
|
33076
|
-
adjustPositionX(
|
|
33076
|
+
adjustPositionX(targetCol) {
|
|
33077
33077
|
const sheetId = this.sheetId;
|
|
33078
|
-
const {
|
|
33079
|
-
|
|
33080
|
-
|
|
33081
|
-
|
|
33082
|
-
|
|
33083
|
-
this.adjustViewportZoneX();
|
|
33084
|
-
}
|
|
33085
|
-
while (col < this.left) {
|
|
33086
|
-
let leftCol;
|
|
33087
|
-
for (leftCol = this.left; leftCol >= 0; leftCol--) {
|
|
33088
|
-
if (!this.getters.isColHidden(sheetId, leftCol)) {
|
|
33078
|
+
const { end } = this.getters.getColDimensions(sheetId, targetCol);
|
|
33079
|
+
const maxCol = this.getters.getNumberCols(sheetId);
|
|
33080
|
+
if (this.offsetX + this.offsetCorrectionX + this.viewportWidth < end) {
|
|
33081
|
+
for (let col = this.left; this.offsetX + this.offsetCorrectionX + this.viewportWidth < end; col++) {
|
|
33082
|
+
if (col > maxCol) {
|
|
33089
33083
|
break;
|
|
33090
33084
|
}
|
|
33085
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
33086
|
+
continue;
|
|
33087
|
+
}
|
|
33088
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).end - this.offsetCorrectionX;
|
|
33089
|
+
this.offsetScrollbarX = this.offsetX;
|
|
33090
|
+
this.adjustViewportZoneX();
|
|
33091
|
+
}
|
|
33092
|
+
}
|
|
33093
|
+
else if (this.left > targetCol) {
|
|
33094
|
+
for (let col = this.left; col >= targetCol; col--) {
|
|
33095
|
+
if (col < 0) {
|
|
33096
|
+
break;
|
|
33097
|
+
}
|
|
33098
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
33099
|
+
continue;
|
|
33100
|
+
}
|
|
33101
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).start - this.offsetCorrectionX;
|
|
33102
|
+
this.offsetScrollbarX = this.offsetX;
|
|
33103
|
+
this.adjustViewportZoneX();
|
|
33091
33104
|
}
|
|
33092
|
-
this.offsetX =
|
|
33093
|
-
this.getters.getColDimensions(sheetId, leftCol - 1).start - this.offsetCorrectionX;
|
|
33094
|
-
this.offsetScrollbarX = this.offsetX;
|
|
33095
|
-
this.adjustViewportZoneX();
|
|
33096
33105
|
}
|
|
33097
33106
|
}
|
|
33098
|
-
adjustPositionY(
|
|
33107
|
+
adjustPositionY(targetRow) {
|
|
33099
33108
|
const sheetId = this.sheetId;
|
|
33100
|
-
|
|
33101
|
-
|
|
33102
|
-
|
|
33103
|
-
|
|
33104
|
-
|
|
33105
|
-
this.adjustViewportZoneY();
|
|
33106
|
-
}
|
|
33107
|
-
while (row < this.top) {
|
|
33108
|
-
let topRow;
|
|
33109
|
-
for (topRow = this.top; topRow >= 0; topRow--) {
|
|
33110
|
-
if (!this.getters.isRowHidden(sheetId, topRow)) {
|
|
33109
|
+
const { end } = this.getters.getRowDimensions(sheetId, targetRow);
|
|
33110
|
+
const maxRow = this.getters.getNumberRows(sheetId);
|
|
33111
|
+
if (this.offsetY + this.viewportHeight + this.offsetCorrectionY < end) {
|
|
33112
|
+
for (let row = this.top; this.offsetY + this.viewportHeight + this.offsetCorrectionY < end; row++) {
|
|
33113
|
+
if (row > maxRow) {
|
|
33111
33114
|
break;
|
|
33112
33115
|
}
|
|
33116
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
33117
|
+
continue;
|
|
33118
|
+
}
|
|
33119
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).end - this.offsetCorrectionY;
|
|
33120
|
+
this.offsetScrollbarY = this.offsetY;
|
|
33121
|
+
this.adjustViewportZoneY();
|
|
33122
|
+
}
|
|
33123
|
+
}
|
|
33124
|
+
else if (this.top > targetRow) {
|
|
33125
|
+
for (let row = this.top; row >= targetRow; row--) {
|
|
33126
|
+
if (row < 0) {
|
|
33127
|
+
break;
|
|
33128
|
+
}
|
|
33129
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
33130
|
+
continue;
|
|
33131
|
+
}
|
|
33132
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).start - this.offsetCorrectionY;
|
|
33133
|
+
this.offsetScrollbarY = this.offsetY;
|
|
33134
|
+
this.adjustViewportZoneY();
|
|
33113
33135
|
}
|
|
33114
|
-
this.offsetY =
|
|
33115
|
-
this.getters.getRowDimensions(sheetId, topRow - 1).start - this.offsetCorrectionY;
|
|
33116
|
-
this.offsetScrollbarY = this.offsetY;
|
|
33117
|
-
this.adjustViewportZoneY();
|
|
33118
33136
|
}
|
|
33119
33137
|
}
|
|
33120
33138
|
setViewportOffset(offsetX, offsetY) {
|
|
@@ -44024,6 +44042,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
44024
44042
|
exports.tokenize = tokenize;
|
|
44025
44043
|
|
|
44026
44044
|
|
|
44027
|
-
__info__.version = '16.1.
|
|
44028
|
-
__info__.date = '2023-04-
|
|
44029
|
-
__info__.hash = '
|
|
44045
|
+
__info__.version = '16.1.8';
|
|
44046
|
+
__info__.date = '2023-04-14T12:46:41.355Z';
|
|
44047
|
+
__info__.hash = '4399770';
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -3953,8 +3953,8 @@ declare class InternalViewport {
|
|
|
3953
3953
|
* until it contains the cell completely.
|
|
3954
3954
|
*/
|
|
3955
3955
|
adjustPosition(position?: Position$1): void;
|
|
3956
|
-
adjustPositionX(
|
|
3957
|
-
adjustPositionY(
|
|
3956
|
+
adjustPositionX(targetCol: HeaderIndex): void;
|
|
3957
|
+
adjustPositionY(targetRow: HeaderIndex): void;
|
|
3958
3958
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
3959
3959
|
adjustViewportZone(): void;
|
|
3960
3960
|
/**
|
|
@@ -33069,48 +33069,66 @@ class InternalViewport {
|
|
|
33069
33069
|
this.adjustPositionY(row);
|
|
33070
33070
|
}
|
|
33071
33071
|
}
|
|
33072
|
-
adjustPositionX(
|
|
33072
|
+
adjustPositionX(targetCol) {
|
|
33073
33073
|
const sheetId = this.sheetId;
|
|
33074
|
-
const {
|
|
33075
|
-
|
|
33076
|
-
|
|
33077
|
-
|
|
33078
|
-
|
|
33079
|
-
this.adjustViewportZoneX();
|
|
33080
|
-
}
|
|
33081
|
-
while (col < this.left) {
|
|
33082
|
-
let leftCol;
|
|
33083
|
-
for (leftCol = this.left; leftCol >= 0; leftCol--) {
|
|
33084
|
-
if (!this.getters.isColHidden(sheetId, leftCol)) {
|
|
33074
|
+
const { end } = this.getters.getColDimensions(sheetId, targetCol);
|
|
33075
|
+
const maxCol = this.getters.getNumberCols(sheetId);
|
|
33076
|
+
if (this.offsetX + this.offsetCorrectionX + this.viewportWidth < end) {
|
|
33077
|
+
for (let col = this.left; this.offsetX + this.offsetCorrectionX + this.viewportWidth < end; col++) {
|
|
33078
|
+
if (col > maxCol) {
|
|
33085
33079
|
break;
|
|
33086
33080
|
}
|
|
33081
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
33082
|
+
continue;
|
|
33083
|
+
}
|
|
33084
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).end - this.offsetCorrectionX;
|
|
33085
|
+
this.offsetScrollbarX = this.offsetX;
|
|
33086
|
+
this.adjustViewportZoneX();
|
|
33087
|
+
}
|
|
33088
|
+
}
|
|
33089
|
+
else if (this.left > targetCol) {
|
|
33090
|
+
for (let col = this.left; col >= targetCol; col--) {
|
|
33091
|
+
if (col < 0) {
|
|
33092
|
+
break;
|
|
33093
|
+
}
|
|
33094
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
33095
|
+
continue;
|
|
33096
|
+
}
|
|
33097
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).start - this.offsetCorrectionX;
|
|
33098
|
+
this.offsetScrollbarX = this.offsetX;
|
|
33099
|
+
this.adjustViewportZoneX();
|
|
33087
33100
|
}
|
|
33088
|
-
this.offsetX =
|
|
33089
|
-
this.getters.getColDimensions(sheetId, leftCol - 1).start - this.offsetCorrectionX;
|
|
33090
|
-
this.offsetScrollbarX = this.offsetX;
|
|
33091
|
-
this.adjustViewportZoneX();
|
|
33092
33101
|
}
|
|
33093
33102
|
}
|
|
33094
|
-
adjustPositionY(
|
|
33103
|
+
adjustPositionY(targetRow) {
|
|
33095
33104
|
const sheetId = this.sheetId;
|
|
33096
|
-
|
|
33097
|
-
|
|
33098
|
-
|
|
33099
|
-
|
|
33100
|
-
|
|
33101
|
-
this.adjustViewportZoneY();
|
|
33102
|
-
}
|
|
33103
|
-
while (row < this.top) {
|
|
33104
|
-
let topRow;
|
|
33105
|
-
for (topRow = this.top; topRow >= 0; topRow--) {
|
|
33106
|
-
if (!this.getters.isRowHidden(sheetId, topRow)) {
|
|
33105
|
+
const { end } = this.getters.getRowDimensions(sheetId, targetRow);
|
|
33106
|
+
const maxRow = this.getters.getNumberRows(sheetId);
|
|
33107
|
+
if (this.offsetY + this.viewportHeight + this.offsetCorrectionY < end) {
|
|
33108
|
+
for (let row = this.top; this.offsetY + this.viewportHeight + this.offsetCorrectionY < end; row++) {
|
|
33109
|
+
if (row > maxRow) {
|
|
33107
33110
|
break;
|
|
33108
33111
|
}
|
|
33112
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
33113
|
+
continue;
|
|
33114
|
+
}
|
|
33115
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).end - this.offsetCorrectionY;
|
|
33116
|
+
this.offsetScrollbarY = this.offsetY;
|
|
33117
|
+
this.adjustViewportZoneY();
|
|
33118
|
+
}
|
|
33119
|
+
}
|
|
33120
|
+
else if (this.top > targetRow) {
|
|
33121
|
+
for (let row = this.top; row >= targetRow; row--) {
|
|
33122
|
+
if (row < 0) {
|
|
33123
|
+
break;
|
|
33124
|
+
}
|
|
33125
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
33126
|
+
continue;
|
|
33127
|
+
}
|
|
33128
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).start - this.offsetCorrectionY;
|
|
33129
|
+
this.offsetScrollbarY = this.offsetY;
|
|
33130
|
+
this.adjustViewportZoneY();
|
|
33109
33131
|
}
|
|
33110
|
-
this.offsetY =
|
|
33111
|
-
this.getters.getRowDimensions(sheetId, topRow - 1).start - this.offsetCorrectionY;
|
|
33112
|
-
this.offsetScrollbarY = this.offsetY;
|
|
33113
|
-
this.adjustViewportZoneY();
|
|
33114
33132
|
}
|
|
33115
33133
|
}
|
|
33116
33134
|
setViewportOffset(offsetX, offsetY) {
|
|
@@ -43992,6 +44010,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
43992
44010
|
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 };
|
|
43993
44011
|
|
|
43994
44012
|
|
|
43995
|
-
__info__.version = '16.1.
|
|
43996
|
-
__info__.date = '2023-04-
|
|
43997
|
-
__info__.hash = '
|
|
44013
|
+
__info__.version = '16.1.8';
|
|
44014
|
+
__info__.date = '2023-04-14T12:46:41.355Z';
|
|
44015
|
+
__info__.hash = '4399770';
|
|
@@ -33070,48 +33070,66 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
33070
33070
|
this.adjustPositionY(row);
|
|
33071
33071
|
}
|
|
33072
33072
|
}
|
|
33073
|
-
adjustPositionX(
|
|
33073
|
+
adjustPositionX(targetCol) {
|
|
33074
33074
|
const sheetId = this.sheetId;
|
|
33075
|
-
const {
|
|
33076
|
-
|
|
33077
|
-
|
|
33078
|
-
|
|
33079
|
-
|
|
33080
|
-
this.adjustViewportZoneX();
|
|
33081
|
-
}
|
|
33082
|
-
while (col < this.left) {
|
|
33083
|
-
let leftCol;
|
|
33084
|
-
for (leftCol = this.left; leftCol >= 0; leftCol--) {
|
|
33085
|
-
if (!this.getters.isColHidden(sheetId, leftCol)) {
|
|
33075
|
+
const { end } = this.getters.getColDimensions(sheetId, targetCol);
|
|
33076
|
+
const maxCol = this.getters.getNumberCols(sheetId);
|
|
33077
|
+
if (this.offsetX + this.offsetCorrectionX + this.viewportWidth < end) {
|
|
33078
|
+
for (let col = this.left; this.offsetX + this.offsetCorrectionX + this.viewportWidth < end; col++) {
|
|
33079
|
+
if (col > maxCol) {
|
|
33086
33080
|
break;
|
|
33087
33081
|
}
|
|
33082
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
33083
|
+
continue;
|
|
33084
|
+
}
|
|
33085
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).end - this.offsetCorrectionX;
|
|
33086
|
+
this.offsetScrollbarX = this.offsetX;
|
|
33087
|
+
this.adjustViewportZoneX();
|
|
33088
|
+
}
|
|
33089
|
+
}
|
|
33090
|
+
else if (this.left > targetCol) {
|
|
33091
|
+
for (let col = this.left; col >= targetCol; col--) {
|
|
33092
|
+
if (col < 0) {
|
|
33093
|
+
break;
|
|
33094
|
+
}
|
|
33095
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
33096
|
+
continue;
|
|
33097
|
+
}
|
|
33098
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).start - this.offsetCorrectionX;
|
|
33099
|
+
this.offsetScrollbarX = this.offsetX;
|
|
33100
|
+
this.adjustViewportZoneX();
|
|
33088
33101
|
}
|
|
33089
|
-
this.offsetX =
|
|
33090
|
-
this.getters.getColDimensions(sheetId, leftCol - 1).start - this.offsetCorrectionX;
|
|
33091
|
-
this.offsetScrollbarX = this.offsetX;
|
|
33092
|
-
this.adjustViewportZoneX();
|
|
33093
33102
|
}
|
|
33094
33103
|
}
|
|
33095
|
-
adjustPositionY(
|
|
33104
|
+
adjustPositionY(targetRow) {
|
|
33096
33105
|
const sheetId = this.sheetId;
|
|
33097
|
-
|
|
33098
|
-
|
|
33099
|
-
|
|
33100
|
-
|
|
33101
|
-
|
|
33102
|
-
this.adjustViewportZoneY();
|
|
33103
|
-
}
|
|
33104
|
-
while (row < this.top) {
|
|
33105
|
-
let topRow;
|
|
33106
|
-
for (topRow = this.top; topRow >= 0; topRow--) {
|
|
33107
|
-
if (!this.getters.isRowHidden(sheetId, topRow)) {
|
|
33106
|
+
const { end } = this.getters.getRowDimensions(sheetId, targetRow);
|
|
33107
|
+
const maxRow = this.getters.getNumberRows(sheetId);
|
|
33108
|
+
if (this.offsetY + this.viewportHeight + this.offsetCorrectionY < end) {
|
|
33109
|
+
for (let row = this.top; this.offsetY + this.viewportHeight + this.offsetCorrectionY < end; row++) {
|
|
33110
|
+
if (row > maxRow) {
|
|
33108
33111
|
break;
|
|
33109
33112
|
}
|
|
33113
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
33114
|
+
continue;
|
|
33115
|
+
}
|
|
33116
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).end - this.offsetCorrectionY;
|
|
33117
|
+
this.offsetScrollbarY = this.offsetY;
|
|
33118
|
+
this.adjustViewportZoneY();
|
|
33119
|
+
}
|
|
33120
|
+
}
|
|
33121
|
+
else if (this.top > targetRow) {
|
|
33122
|
+
for (let row = this.top; row >= targetRow; row--) {
|
|
33123
|
+
if (row < 0) {
|
|
33124
|
+
break;
|
|
33125
|
+
}
|
|
33126
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
33127
|
+
continue;
|
|
33128
|
+
}
|
|
33129
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).start - this.offsetCorrectionY;
|
|
33130
|
+
this.offsetScrollbarY = this.offsetY;
|
|
33131
|
+
this.adjustViewportZoneY();
|
|
33110
33132
|
}
|
|
33111
|
-
this.offsetY =
|
|
33112
|
-
this.getters.getRowDimensions(sheetId, topRow - 1).start - this.offsetCorrectionY;
|
|
33113
|
-
this.offsetScrollbarY = this.offsetY;
|
|
33114
|
-
this.adjustViewportZoneY();
|
|
33115
33133
|
}
|
|
33116
33134
|
}
|
|
33117
33135
|
setViewportOffset(offsetX, offsetY) {
|
|
@@ -44023,9 +44041,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
44023
44041
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
44024
44042
|
|
|
44025
44043
|
|
|
44026
|
-
__info__.version = '16.1.
|
|
44027
|
-
__info__.date = '2023-04-
|
|
44028
|
-
__info__.hash = '
|
|
44044
|
+
__info__.version = '16.1.8';
|
|
44045
|
+
__info__.date = '2023-04-14T12:46:41.355Z';
|
|
44046
|
+
__info__.hash = '4399770';
|
|
44029
44047
|
|
|
44030
44048
|
|
|
44031
44049
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|