@odoo/o-spreadsheet 16.0.6 → 16.0.7
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 +53 -35
- package/dist/o-spreadsheet.d.ts +2 -2
- package/dist/o-spreadsheet.esm.js +53 -35
- package/dist/o-spreadsheet.iife.js +53 -35
- package/dist/o-spreadsheet.iife.min.js +132 -132
- package/package.json +1 -1
|
@@ -35989,48 +35989,66 @@ class InternalViewport {
|
|
|
35989
35989
|
this.adjustPositionY(row);
|
|
35990
35990
|
}
|
|
35991
35991
|
}
|
|
35992
|
-
adjustPositionX(
|
|
35992
|
+
adjustPositionX(targetCol) {
|
|
35993
35993
|
const sheetId = this.sheetId;
|
|
35994
|
-
const {
|
|
35995
|
-
|
|
35996
|
-
|
|
35997
|
-
|
|
35998
|
-
|
|
35999
|
-
this.adjustViewportZoneX();
|
|
36000
|
-
}
|
|
36001
|
-
while (col < this.left) {
|
|
36002
|
-
let leftCol;
|
|
36003
|
-
for (leftCol = this.left; leftCol >= 0; leftCol--) {
|
|
36004
|
-
if (!this.getters.isColHidden(sheetId, leftCol)) {
|
|
35994
|
+
const { end } = this.getters.getColDimensions(sheetId, targetCol);
|
|
35995
|
+
const maxCol = this.getters.getNumberCols(sheetId);
|
|
35996
|
+
if (this.offsetX + this.offsetCorrectionX + this.viewportWidth < end) {
|
|
35997
|
+
for (let col = this.left; this.offsetX + this.offsetCorrectionX + this.viewportWidth < end; col++) {
|
|
35998
|
+
if (col > maxCol) {
|
|
36005
35999
|
break;
|
|
36006
36000
|
}
|
|
36001
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
36002
|
+
continue;
|
|
36003
|
+
}
|
|
36004
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).end - this.offsetCorrectionX;
|
|
36005
|
+
this.offsetScrollbarX = this.offsetX;
|
|
36006
|
+
this.adjustViewportZoneX();
|
|
36007
|
+
}
|
|
36008
|
+
}
|
|
36009
|
+
else if (this.left > targetCol) {
|
|
36010
|
+
for (let col = this.left; col >= targetCol; col--) {
|
|
36011
|
+
if (col < 0) {
|
|
36012
|
+
break;
|
|
36013
|
+
}
|
|
36014
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
36015
|
+
continue;
|
|
36016
|
+
}
|
|
36017
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).start - this.offsetCorrectionX;
|
|
36018
|
+
this.offsetScrollbarX = this.offsetX;
|
|
36019
|
+
this.adjustViewportZoneX();
|
|
36007
36020
|
}
|
|
36008
|
-
this.offsetX =
|
|
36009
|
-
this.getters.getColDimensions(sheetId, leftCol - 1).start - this.offsetCorrectionX;
|
|
36010
|
-
this.offsetScrollbarX = this.offsetX;
|
|
36011
|
-
this.adjustViewportZoneX();
|
|
36012
36021
|
}
|
|
36013
36022
|
}
|
|
36014
|
-
adjustPositionY(
|
|
36023
|
+
adjustPositionY(targetRow) {
|
|
36015
36024
|
const sheetId = this.sheetId;
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
|
|
36019
|
-
|
|
36020
|
-
|
|
36021
|
-
this.adjustViewportZoneY();
|
|
36022
|
-
}
|
|
36023
|
-
while (row < this.top) {
|
|
36024
|
-
let topRow;
|
|
36025
|
-
for (topRow = this.top; topRow >= 0; topRow--) {
|
|
36026
|
-
if (!this.getters.isRowHidden(sheetId, topRow)) {
|
|
36025
|
+
const { end } = this.getters.getRowDimensions(sheetId, targetRow);
|
|
36026
|
+
const maxRow = this.getters.getNumberRows(sheetId);
|
|
36027
|
+
if (this.offsetY + this.viewportHeight + this.offsetCorrectionY < end) {
|
|
36028
|
+
for (let row = this.top; this.offsetY + this.viewportHeight + this.offsetCorrectionY < end; row++) {
|
|
36029
|
+
if (row > maxRow) {
|
|
36027
36030
|
break;
|
|
36028
36031
|
}
|
|
36032
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
36033
|
+
continue;
|
|
36034
|
+
}
|
|
36035
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).end - this.offsetCorrectionY;
|
|
36036
|
+
this.offsetScrollbarY = this.offsetY;
|
|
36037
|
+
this.adjustViewportZoneY();
|
|
36038
|
+
}
|
|
36039
|
+
}
|
|
36040
|
+
else if (this.top > targetRow) {
|
|
36041
|
+
for (let row = this.top; row >= targetRow; row--) {
|
|
36042
|
+
if (row < 0) {
|
|
36043
|
+
break;
|
|
36044
|
+
}
|
|
36045
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
36046
|
+
continue;
|
|
36047
|
+
}
|
|
36048
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).start - this.offsetCorrectionY;
|
|
36049
|
+
this.offsetScrollbarY = this.offsetY;
|
|
36050
|
+
this.adjustViewportZoneY();
|
|
36029
36051
|
}
|
|
36030
|
-
this.offsetY =
|
|
36031
|
-
this.getters.getRowDimensions(sheetId, topRow - 1).start - this.offsetCorrectionY;
|
|
36032
|
-
this.offsetScrollbarY = this.offsetY;
|
|
36033
|
-
this.adjustViewportZoneY();
|
|
36034
36052
|
}
|
|
36035
36053
|
}
|
|
36036
36054
|
setViewportOffset(offsetX, offsetY) {
|
|
@@ -42576,6 +42594,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
42576
42594
|
exports.tokenize = tokenize;
|
|
42577
42595
|
|
|
42578
42596
|
|
|
42579
|
-
__info__.version = '16.0.
|
|
42580
|
-
__info__.date = '2023-04-
|
|
42581
|
-
__info__.hash = '
|
|
42597
|
+
__info__.version = '16.0.7';
|
|
42598
|
+
__info__.date = '2023-04-14T12:46:24.076Z';
|
|
42599
|
+
__info__.hash = '2b4831d';
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -4267,8 +4267,8 @@ declare class InternalViewport {
|
|
|
4267
4267
|
* until it contains the cell completely.
|
|
4268
4268
|
*/
|
|
4269
4269
|
adjustPosition(position?: Position$1): void;
|
|
4270
|
-
adjustPositionX(
|
|
4271
|
-
adjustPositionY(
|
|
4270
|
+
adjustPositionX(targetCol: HeaderIndex): void;
|
|
4271
|
+
adjustPositionY(targetRow: HeaderIndex): void;
|
|
4272
4272
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
4273
4273
|
adjustViewportZone(): void;
|
|
4274
4274
|
/**
|
|
@@ -35985,48 +35985,66 @@ class InternalViewport {
|
|
|
35985
35985
|
this.adjustPositionY(row);
|
|
35986
35986
|
}
|
|
35987
35987
|
}
|
|
35988
|
-
adjustPositionX(
|
|
35988
|
+
adjustPositionX(targetCol) {
|
|
35989
35989
|
const sheetId = this.sheetId;
|
|
35990
|
-
const {
|
|
35991
|
-
|
|
35992
|
-
|
|
35993
|
-
|
|
35994
|
-
|
|
35995
|
-
this.adjustViewportZoneX();
|
|
35996
|
-
}
|
|
35997
|
-
while (col < this.left) {
|
|
35998
|
-
let leftCol;
|
|
35999
|
-
for (leftCol = this.left; leftCol >= 0; leftCol--) {
|
|
36000
|
-
if (!this.getters.isColHidden(sheetId, leftCol)) {
|
|
35990
|
+
const { end } = this.getters.getColDimensions(sheetId, targetCol);
|
|
35991
|
+
const maxCol = this.getters.getNumberCols(sheetId);
|
|
35992
|
+
if (this.offsetX + this.offsetCorrectionX + this.viewportWidth < end) {
|
|
35993
|
+
for (let col = this.left; this.offsetX + this.offsetCorrectionX + this.viewportWidth < end; col++) {
|
|
35994
|
+
if (col > maxCol) {
|
|
36001
35995
|
break;
|
|
36002
35996
|
}
|
|
35997
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
35998
|
+
continue;
|
|
35999
|
+
}
|
|
36000
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).end - this.offsetCorrectionX;
|
|
36001
|
+
this.offsetScrollbarX = this.offsetX;
|
|
36002
|
+
this.adjustViewportZoneX();
|
|
36003
|
+
}
|
|
36004
|
+
}
|
|
36005
|
+
else if (this.left > targetCol) {
|
|
36006
|
+
for (let col = this.left; col >= targetCol; col--) {
|
|
36007
|
+
if (col < 0) {
|
|
36008
|
+
break;
|
|
36009
|
+
}
|
|
36010
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
36011
|
+
continue;
|
|
36012
|
+
}
|
|
36013
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).start - this.offsetCorrectionX;
|
|
36014
|
+
this.offsetScrollbarX = this.offsetX;
|
|
36015
|
+
this.adjustViewportZoneX();
|
|
36003
36016
|
}
|
|
36004
|
-
this.offsetX =
|
|
36005
|
-
this.getters.getColDimensions(sheetId, leftCol - 1).start - this.offsetCorrectionX;
|
|
36006
|
-
this.offsetScrollbarX = this.offsetX;
|
|
36007
|
-
this.adjustViewportZoneX();
|
|
36008
36017
|
}
|
|
36009
36018
|
}
|
|
36010
|
-
adjustPositionY(
|
|
36019
|
+
adjustPositionY(targetRow) {
|
|
36011
36020
|
const sheetId = this.sheetId;
|
|
36012
|
-
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36016
|
-
|
|
36017
|
-
this.adjustViewportZoneY();
|
|
36018
|
-
}
|
|
36019
|
-
while (row < this.top) {
|
|
36020
|
-
let topRow;
|
|
36021
|
-
for (topRow = this.top; topRow >= 0; topRow--) {
|
|
36022
|
-
if (!this.getters.isRowHidden(sheetId, topRow)) {
|
|
36021
|
+
const { end } = this.getters.getRowDimensions(sheetId, targetRow);
|
|
36022
|
+
const maxRow = this.getters.getNumberRows(sheetId);
|
|
36023
|
+
if (this.offsetY + this.viewportHeight + this.offsetCorrectionY < end) {
|
|
36024
|
+
for (let row = this.top; this.offsetY + this.viewportHeight + this.offsetCorrectionY < end; row++) {
|
|
36025
|
+
if (row > maxRow) {
|
|
36023
36026
|
break;
|
|
36024
36027
|
}
|
|
36028
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
36029
|
+
continue;
|
|
36030
|
+
}
|
|
36031
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).end - this.offsetCorrectionY;
|
|
36032
|
+
this.offsetScrollbarY = this.offsetY;
|
|
36033
|
+
this.adjustViewportZoneY();
|
|
36034
|
+
}
|
|
36035
|
+
}
|
|
36036
|
+
else if (this.top > targetRow) {
|
|
36037
|
+
for (let row = this.top; row >= targetRow; row--) {
|
|
36038
|
+
if (row < 0) {
|
|
36039
|
+
break;
|
|
36040
|
+
}
|
|
36041
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
36042
|
+
continue;
|
|
36043
|
+
}
|
|
36044
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).start - this.offsetCorrectionY;
|
|
36045
|
+
this.offsetScrollbarY = this.offsetY;
|
|
36046
|
+
this.adjustViewportZoneY();
|
|
36025
36047
|
}
|
|
36026
|
-
this.offsetY =
|
|
36027
|
-
this.getters.getRowDimensions(sheetId, topRow - 1).start - this.offsetCorrectionY;
|
|
36028
|
-
this.offsetScrollbarY = this.offsetY;
|
|
36029
|
-
this.adjustViewportZoneY();
|
|
36030
36048
|
}
|
|
36031
36049
|
}
|
|
36032
36050
|
setViewportOffset(offsetX, offsetY) {
|
|
@@ -42544,6 +42562,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
42544
42562
|
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 };
|
|
42545
42563
|
|
|
42546
42564
|
|
|
42547
|
-
__info__.version = '16.0.
|
|
42548
|
-
__info__.date = '2023-04-
|
|
42549
|
-
__info__.hash = '
|
|
42565
|
+
__info__.version = '16.0.7';
|
|
42566
|
+
__info__.date = '2023-04-14T12:46:24.076Z';
|
|
42567
|
+
__info__.hash = '2b4831d';
|
|
@@ -35986,48 +35986,66 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
35986
35986
|
this.adjustPositionY(row);
|
|
35987
35987
|
}
|
|
35988
35988
|
}
|
|
35989
|
-
adjustPositionX(
|
|
35989
|
+
adjustPositionX(targetCol) {
|
|
35990
35990
|
const sheetId = this.sheetId;
|
|
35991
|
-
const {
|
|
35992
|
-
|
|
35993
|
-
|
|
35994
|
-
|
|
35995
|
-
|
|
35996
|
-
this.adjustViewportZoneX();
|
|
35997
|
-
}
|
|
35998
|
-
while (col < this.left) {
|
|
35999
|
-
let leftCol;
|
|
36000
|
-
for (leftCol = this.left; leftCol >= 0; leftCol--) {
|
|
36001
|
-
if (!this.getters.isColHidden(sheetId, leftCol)) {
|
|
35991
|
+
const { end } = this.getters.getColDimensions(sheetId, targetCol);
|
|
35992
|
+
const maxCol = this.getters.getNumberCols(sheetId);
|
|
35993
|
+
if (this.offsetX + this.offsetCorrectionX + this.viewportWidth < end) {
|
|
35994
|
+
for (let col = this.left; this.offsetX + this.offsetCorrectionX + this.viewportWidth < end; col++) {
|
|
35995
|
+
if (col > maxCol) {
|
|
36002
35996
|
break;
|
|
36003
35997
|
}
|
|
35998
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
35999
|
+
continue;
|
|
36000
|
+
}
|
|
36001
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).end - this.offsetCorrectionX;
|
|
36002
|
+
this.offsetScrollbarX = this.offsetX;
|
|
36003
|
+
this.adjustViewportZoneX();
|
|
36004
|
+
}
|
|
36005
|
+
}
|
|
36006
|
+
else if (this.left > targetCol) {
|
|
36007
|
+
for (let col = this.left; col >= targetCol; col--) {
|
|
36008
|
+
if (col < 0) {
|
|
36009
|
+
break;
|
|
36010
|
+
}
|
|
36011
|
+
if (this.getters.isColHidden(sheetId, col)) {
|
|
36012
|
+
continue;
|
|
36013
|
+
}
|
|
36014
|
+
this.offsetX = this.getters.getColDimensions(sheetId, col).start - this.offsetCorrectionX;
|
|
36015
|
+
this.offsetScrollbarX = this.offsetX;
|
|
36016
|
+
this.adjustViewportZoneX();
|
|
36004
36017
|
}
|
|
36005
|
-
this.offsetX =
|
|
36006
|
-
this.getters.getColDimensions(sheetId, leftCol - 1).start - this.offsetCorrectionX;
|
|
36007
|
-
this.offsetScrollbarX = this.offsetX;
|
|
36008
|
-
this.adjustViewportZoneX();
|
|
36009
36018
|
}
|
|
36010
36019
|
}
|
|
36011
|
-
adjustPositionY(
|
|
36020
|
+
adjustPositionY(targetRow) {
|
|
36012
36021
|
const sheetId = this.sheetId;
|
|
36013
|
-
|
|
36014
|
-
|
|
36015
|
-
|
|
36016
|
-
|
|
36017
|
-
|
|
36018
|
-
this.adjustViewportZoneY();
|
|
36019
|
-
}
|
|
36020
|
-
while (row < this.top) {
|
|
36021
|
-
let topRow;
|
|
36022
|
-
for (topRow = this.top; topRow >= 0; topRow--) {
|
|
36023
|
-
if (!this.getters.isRowHidden(sheetId, topRow)) {
|
|
36022
|
+
const { end } = this.getters.getRowDimensions(sheetId, targetRow);
|
|
36023
|
+
const maxRow = this.getters.getNumberRows(sheetId);
|
|
36024
|
+
if (this.offsetY + this.viewportHeight + this.offsetCorrectionY < end) {
|
|
36025
|
+
for (let row = this.top; this.offsetY + this.viewportHeight + this.offsetCorrectionY < end; row++) {
|
|
36026
|
+
if (row > maxRow) {
|
|
36024
36027
|
break;
|
|
36025
36028
|
}
|
|
36029
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
36030
|
+
continue;
|
|
36031
|
+
}
|
|
36032
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).end - this.offsetCorrectionY;
|
|
36033
|
+
this.offsetScrollbarY = this.offsetY;
|
|
36034
|
+
this.adjustViewportZoneY();
|
|
36035
|
+
}
|
|
36036
|
+
}
|
|
36037
|
+
else if (this.top > targetRow) {
|
|
36038
|
+
for (let row = this.top; row >= targetRow; row--) {
|
|
36039
|
+
if (row < 0) {
|
|
36040
|
+
break;
|
|
36041
|
+
}
|
|
36042
|
+
if (this.getters.isRowHidden(sheetId, row)) {
|
|
36043
|
+
continue;
|
|
36044
|
+
}
|
|
36045
|
+
this.offsetY = this.getters.getRowDimensions(sheetId, row).start - this.offsetCorrectionY;
|
|
36046
|
+
this.offsetScrollbarY = this.offsetY;
|
|
36047
|
+
this.adjustViewportZoneY();
|
|
36026
36048
|
}
|
|
36027
|
-
this.offsetY =
|
|
36028
|
-
this.getters.getRowDimensions(sheetId, topRow - 1).start - this.offsetCorrectionY;
|
|
36029
|
-
this.offsetScrollbarY = this.offsetY;
|
|
36030
|
-
this.adjustViewportZoneY();
|
|
36031
36049
|
}
|
|
36032
36050
|
}
|
|
36033
36051
|
setViewportOffset(offsetX, offsetY) {
|
|
@@ -42575,9 +42593,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
42575
42593
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
42576
42594
|
|
|
42577
42595
|
|
|
42578
|
-
__info__.version = '16.0.
|
|
42579
|
-
__info__.date = '2023-04-
|
|
42580
|
-
__info__.hash = '
|
|
42596
|
+
__info__.version = '16.0.7';
|
|
42597
|
+
__info__.date = '2023-04-14T12:46:24.076Z';
|
|
42598
|
+
__info__.hash = '2b4831d';
|
|
42581
42599
|
|
|
42582
42600
|
|
|
42583
42601
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|