@odoo/o-spreadsheet 16.0.56 → 16.0.57
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.
|
@@ -25039,6 +25039,9 @@ function convertFigure(figure, id, sheetData) {
|
|
|
25039
25039
|
}
|
|
25040
25040
|
function convertChartData(chartData) {
|
|
25041
25041
|
var _a;
|
|
25042
|
+
if (chartData.dataSets.length === 0) {
|
|
25043
|
+
return undefined;
|
|
25044
|
+
}
|
|
25042
25045
|
const labelRange = (_a = chartData.dataSets[0].label) === null || _a === void 0 ? void 0 : _a.replace(/\$/g, "");
|
|
25043
25046
|
let dataSets = chartData.dataSets.map((data) => data.range.replace(/\$/g, ""));
|
|
25044
25047
|
// For doughnut charts, in chartJS first dataset = outer dataset, in excel first dataset = inner dataset
|
|
@@ -27510,10 +27513,34 @@ class BordersPlugin extends CorePlugin {
|
|
|
27510
27513
|
const elements = [...cmd.elements].sort((a, b) => b - a);
|
|
27511
27514
|
for (const group of groupConsecutive(elements)) {
|
|
27512
27515
|
if (cmd.dimension === "COL") {
|
|
27513
|
-
|
|
27516
|
+
if (group[0] >= this.getters.getNumberCols(cmd.sheetId)) {
|
|
27517
|
+
for (let row = 0; row < this.getters.getNumberRows(cmd.sheetId); row++) {
|
|
27518
|
+
this.history.update("borders", cmd.sheetId, group[0] + 1, row, "vertical", undefined);
|
|
27519
|
+
}
|
|
27520
|
+
}
|
|
27521
|
+
if (group[group.length - 1] === 0) {
|
|
27522
|
+
for (let row = 0; row < this.getters.getNumberRows(cmd.sheetId); row++) {
|
|
27523
|
+
this.history.update("borders", cmd.sheetId, 0, row, "vertical", undefined);
|
|
27524
|
+
}
|
|
27525
|
+
}
|
|
27526
|
+
const zone = this.getters.getColsZone(cmd.sheetId, group[group.length - 1] + 1, group[0]);
|
|
27527
|
+
this.clearInsideBorders(cmd.sheetId, [zone]);
|
|
27528
|
+
this.shiftBordersHorizontally(cmd.sheetId, group[0] + 1, -group.length);
|
|
27514
27529
|
}
|
|
27515
27530
|
else {
|
|
27516
|
-
|
|
27531
|
+
if (group[0] >= this.getters.getNumberRows(cmd.sheetId)) {
|
|
27532
|
+
for (let col = 0; col < this.getters.getNumberCols(cmd.sheetId); col++) {
|
|
27533
|
+
this.history.update("borders", cmd.sheetId, col, group[0] + 1, "horizontal", undefined);
|
|
27534
|
+
}
|
|
27535
|
+
}
|
|
27536
|
+
if (group[group.length - 1] === 0) {
|
|
27537
|
+
for (let col = 0; col < this.getters.getNumberCols(cmd.sheetId); col++) {
|
|
27538
|
+
this.history.update("borders", cmd.sheetId, col, 0, "horizontal", undefined);
|
|
27539
|
+
}
|
|
27540
|
+
}
|
|
27541
|
+
const zone = this.getters.getRowsZone(cmd.sheetId, group[group.length - 1] + 1, group[0]);
|
|
27542
|
+
this.clearInsideBorders(cmd.sheetId, [zone]);
|
|
27543
|
+
this.shiftBordersVertically(cmd.sheetId, group[0] + 1, -group.length);
|
|
27517
27544
|
}
|
|
27518
27545
|
}
|
|
27519
27546
|
break;
|
|
@@ -27808,6 +27835,18 @@ class BordersPlugin extends CorePlugin {
|
|
|
27808
27835
|
}
|
|
27809
27836
|
}
|
|
27810
27837
|
}
|
|
27838
|
+
/**
|
|
27839
|
+
* Remove the borders inside of a zone
|
|
27840
|
+
*/
|
|
27841
|
+
clearInsideBorders(sheetId, zones) {
|
|
27842
|
+
for (let zone of zones) {
|
|
27843
|
+
for (let row = zone.top; row <= zone.bottom; row++) {
|
|
27844
|
+
for (let col = zone.left; col <= zone.right; col++) {
|
|
27845
|
+
this.history.update("borders", sheetId, col, row, undefined);
|
|
27846
|
+
}
|
|
27847
|
+
}
|
|
27848
|
+
}
|
|
27849
|
+
}
|
|
27811
27850
|
/**
|
|
27812
27851
|
* Add a border to the existing one to a cell
|
|
27813
27852
|
*/
|
|
@@ -43484,6 +43523,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
43484
43523
|
exports.tokenize = tokenize;
|
|
43485
43524
|
|
|
43486
43525
|
|
|
43487
|
-
__info__.version = '16.0.
|
|
43488
|
-
__info__.date = '
|
|
43489
|
-
__info__.hash = '
|
|
43526
|
+
__info__.version = '16.0.57';
|
|
43527
|
+
__info__.date = '2025-01-14T11:28:51.212Z';
|
|
43528
|
+
__info__.hash = '5c7bf6e';
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -3081,6 +3081,10 @@ declare class BordersPlugin extends CorePlugin<BordersPluginState> implements Bo
|
|
|
3081
3081
|
* Remove the borders of a zone
|
|
3082
3082
|
*/
|
|
3083
3083
|
private clearBorders;
|
|
3084
|
+
/**
|
|
3085
|
+
* Remove the borders inside of a zone
|
|
3086
|
+
*/
|
|
3087
|
+
private clearInsideBorders;
|
|
3084
3088
|
/**
|
|
3085
3089
|
* Add a border to the existing one to a cell
|
|
3086
3090
|
*/
|
|
@@ -25035,6 +25035,9 @@ function convertFigure(figure, id, sheetData) {
|
|
|
25035
25035
|
}
|
|
25036
25036
|
function convertChartData(chartData) {
|
|
25037
25037
|
var _a;
|
|
25038
|
+
if (chartData.dataSets.length === 0) {
|
|
25039
|
+
return undefined;
|
|
25040
|
+
}
|
|
25038
25041
|
const labelRange = (_a = chartData.dataSets[0].label) === null || _a === void 0 ? void 0 : _a.replace(/\$/g, "");
|
|
25039
25042
|
let dataSets = chartData.dataSets.map((data) => data.range.replace(/\$/g, ""));
|
|
25040
25043
|
// For doughnut charts, in chartJS first dataset = outer dataset, in excel first dataset = inner dataset
|
|
@@ -27506,10 +27509,34 @@ class BordersPlugin extends CorePlugin {
|
|
|
27506
27509
|
const elements = [...cmd.elements].sort((a, b) => b - a);
|
|
27507
27510
|
for (const group of groupConsecutive(elements)) {
|
|
27508
27511
|
if (cmd.dimension === "COL") {
|
|
27509
|
-
|
|
27512
|
+
if (group[0] >= this.getters.getNumberCols(cmd.sheetId)) {
|
|
27513
|
+
for (let row = 0; row < this.getters.getNumberRows(cmd.sheetId); row++) {
|
|
27514
|
+
this.history.update("borders", cmd.sheetId, group[0] + 1, row, "vertical", undefined);
|
|
27515
|
+
}
|
|
27516
|
+
}
|
|
27517
|
+
if (group[group.length - 1] === 0) {
|
|
27518
|
+
for (let row = 0; row < this.getters.getNumberRows(cmd.sheetId); row++) {
|
|
27519
|
+
this.history.update("borders", cmd.sheetId, 0, row, "vertical", undefined);
|
|
27520
|
+
}
|
|
27521
|
+
}
|
|
27522
|
+
const zone = this.getters.getColsZone(cmd.sheetId, group[group.length - 1] + 1, group[0]);
|
|
27523
|
+
this.clearInsideBorders(cmd.sheetId, [zone]);
|
|
27524
|
+
this.shiftBordersHorizontally(cmd.sheetId, group[0] + 1, -group.length);
|
|
27510
27525
|
}
|
|
27511
27526
|
else {
|
|
27512
|
-
|
|
27527
|
+
if (group[0] >= this.getters.getNumberRows(cmd.sheetId)) {
|
|
27528
|
+
for (let col = 0; col < this.getters.getNumberCols(cmd.sheetId); col++) {
|
|
27529
|
+
this.history.update("borders", cmd.sheetId, col, group[0] + 1, "horizontal", undefined);
|
|
27530
|
+
}
|
|
27531
|
+
}
|
|
27532
|
+
if (group[group.length - 1] === 0) {
|
|
27533
|
+
for (let col = 0; col < this.getters.getNumberCols(cmd.sheetId); col++) {
|
|
27534
|
+
this.history.update("borders", cmd.sheetId, col, 0, "horizontal", undefined);
|
|
27535
|
+
}
|
|
27536
|
+
}
|
|
27537
|
+
const zone = this.getters.getRowsZone(cmd.sheetId, group[group.length - 1] + 1, group[0]);
|
|
27538
|
+
this.clearInsideBorders(cmd.sheetId, [zone]);
|
|
27539
|
+
this.shiftBordersVertically(cmd.sheetId, group[0] + 1, -group.length);
|
|
27513
27540
|
}
|
|
27514
27541
|
}
|
|
27515
27542
|
break;
|
|
@@ -27804,6 +27831,18 @@ class BordersPlugin extends CorePlugin {
|
|
|
27804
27831
|
}
|
|
27805
27832
|
}
|
|
27806
27833
|
}
|
|
27834
|
+
/**
|
|
27835
|
+
* Remove the borders inside of a zone
|
|
27836
|
+
*/
|
|
27837
|
+
clearInsideBorders(sheetId, zones) {
|
|
27838
|
+
for (let zone of zones) {
|
|
27839
|
+
for (let row = zone.top; row <= zone.bottom; row++) {
|
|
27840
|
+
for (let col = zone.left; col <= zone.right; col++) {
|
|
27841
|
+
this.history.update("borders", sheetId, col, row, undefined);
|
|
27842
|
+
}
|
|
27843
|
+
}
|
|
27844
|
+
}
|
|
27845
|
+
}
|
|
27807
27846
|
/**
|
|
27808
27847
|
* Add a border to the existing one to a cell
|
|
27809
27848
|
*/
|
|
@@ -43452,6 +43491,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
43452
43491
|
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 };
|
|
43453
43492
|
|
|
43454
43493
|
|
|
43455
|
-
__info__.version = '16.0.
|
|
43456
|
-
__info__.date = '
|
|
43457
|
-
__info__.hash = '
|
|
43494
|
+
__info__.version = '16.0.57';
|
|
43495
|
+
__info__.date = '2025-01-14T11:28:51.212Z';
|
|
43496
|
+
__info__.hash = '5c7bf6e';
|
|
@@ -25036,6 +25036,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
25036
25036
|
}
|
|
25037
25037
|
function convertChartData(chartData) {
|
|
25038
25038
|
var _a;
|
|
25039
|
+
if (chartData.dataSets.length === 0) {
|
|
25040
|
+
return undefined;
|
|
25041
|
+
}
|
|
25039
25042
|
const labelRange = (_a = chartData.dataSets[0].label) === null || _a === void 0 ? void 0 : _a.replace(/\$/g, "");
|
|
25040
25043
|
let dataSets = chartData.dataSets.map((data) => data.range.replace(/\$/g, ""));
|
|
25041
25044
|
// For doughnut charts, in chartJS first dataset = outer dataset, in excel first dataset = inner dataset
|
|
@@ -27507,10 +27510,34 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
27507
27510
|
const elements = [...cmd.elements].sort((a, b) => b - a);
|
|
27508
27511
|
for (const group of groupConsecutive(elements)) {
|
|
27509
27512
|
if (cmd.dimension === "COL") {
|
|
27510
|
-
|
|
27513
|
+
if (group[0] >= this.getters.getNumberCols(cmd.sheetId)) {
|
|
27514
|
+
for (let row = 0; row < this.getters.getNumberRows(cmd.sheetId); row++) {
|
|
27515
|
+
this.history.update("borders", cmd.sheetId, group[0] + 1, row, "vertical", undefined);
|
|
27516
|
+
}
|
|
27517
|
+
}
|
|
27518
|
+
if (group[group.length - 1] === 0) {
|
|
27519
|
+
for (let row = 0; row < this.getters.getNumberRows(cmd.sheetId); row++) {
|
|
27520
|
+
this.history.update("borders", cmd.sheetId, 0, row, "vertical", undefined);
|
|
27521
|
+
}
|
|
27522
|
+
}
|
|
27523
|
+
const zone = this.getters.getColsZone(cmd.sheetId, group[group.length - 1] + 1, group[0]);
|
|
27524
|
+
this.clearInsideBorders(cmd.sheetId, [zone]);
|
|
27525
|
+
this.shiftBordersHorizontally(cmd.sheetId, group[0] + 1, -group.length);
|
|
27511
27526
|
}
|
|
27512
27527
|
else {
|
|
27513
|
-
|
|
27528
|
+
if (group[0] >= this.getters.getNumberRows(cmd.sheetId)) {
|
|
27529
|
+
for (let col = 0; col < this.getters.getNumberCols(cmd.sheetId); col++) {
|
|
27530
|
+
this.history.update("borders", cmd.sheetId, col, group[0] + 1, "horizontal", undefined);
|
|
27531
|
+
}
|
|
27532
|
+
}
|
|
27533
|
+
if (group[group.length - 1] === 0) {
|
|
27534
|
+
for (let col = 0; col < this.getters.getNumberCols(cmd.sheetId); col++) {
|
|
27535
|
+
this.history.update("borders", cmd.sheetId, col, 0, "horizontal", undefined);
|
|
27536
|
+
}
|
|
27537
|
+
}
|
|
27538
|
+
const zone = this.getters.getRowsZone(cmd.sheetId, group[group.length - 1] + 1, group[0]);
|
|
27539
|
+
this.clearInsideBorders(cmd.sheetId, [zone]);
|
|
27540
|
+
this.shiftBordersVertically(cmd.sheetId, group[0] + 1, -group.length);
|
|
27514
27541
|
}
|
|
27515
27542
|
}
|
|
27516
27543
|
break;
|
|
@@ -27805,6 +27832,18 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
27805
27832
|
}
|
|
27806
27833
|
}
|
|
27807
27834
|
}
|
|
27835
|
+
/**
|
|
27836
|
+
* Remove the borders inside of a zone
|
|
27837
|
+
*/
|
|
27838
|
+
clearInsideBorders(sheetId, zones) {
|
|
27839
|
+
for (let zone of zones) {
|
|
27840
|
+
for (let row = zone.top; row <= zone.bottom; row++) {
|
|
27841
|
+
for (let col = zone.left; col <= zone.right; col++) {
|
|
27842
|
+
this.history.update("borders", sheetId, col, row, undefined);
|
|
27843
|
+
}
|
|
27844
|
+
}
|
|
27845
|
+
}
|
|
27846
|
+
}
|
|
27808
27847
|
/**
|
|
27809
27848
|
* Add a border to the existing one to a cell
|
|
27810
27849
|
*/
|
|
@@ -43483,9 +43522,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
43483
43522
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
43484
43523
|
|
|
43485
43524
|
|
|
43486
|
-
__info__.version = '16.0.
|
|
43487
|
-
__info__.date = '
|
|
43488
|
-
__info__.hash = '
|
|
43525
|
+
__info__.version = '16.0.57';
|
|
43526
|
+
__info__.date = '2025-01-14T11:28:51.212Z';
|
|
43527
|
+
__info__.hash = '5c7bf6e';
|
|
43489
43528
|
|
|
43490
43529
|
|
|
43491
43530
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|