@odoo/o-spreadsheet 16.0.32 → 16.0.33
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.
|
@@ -27821,9 +27821,9 @@ class CellPlugin extends CorePlugin {
|
|
|
27821
27821
|
allowDispatch(cmd) {
|
|
27822
27822
|
switch (cmd.type) {
|
|
27823
27823
|
case "UPDATE_CELL":
|
|
27824
|
-
return this.
|
|
27824
|
+
return this.checkValidations(cmd, this.checkCellOutOfSheet, this.checkUselessUpdateCell);
|
|
27825
27825
|
case "CLEAR_CELL":
|
|
27826
|
-
return this.checkValidations(cmd, this.
|
|
27826
|
+
return this.checkValidations(cmd, this.checkCellOutOfSheet, this.checkUselessClearCell);
|
|
27827
27827
|
default:
|
|
27828
27828
|
return 0 /* CommandResult.Success */;
|
|
27829
27829
|
}
|
|
@@ -28182,6 +28182,18 @@ class CellPlugin extends CorePlugin {
|
|
|
28182
28182
|
}
|
|
28183
28183
|
return 0 /* CommandResult.Success */;
|
|
28184
28184
|
}
|
|
28185
|
+
checkUselessUpdateCell(cmd) {
|
|
28186
|
+
const cell = this.getters.getCell(cmd.sheetId, cmd.col, cmd.row);
|
|
28187
|
+
const hasContent = "content" in cmd || "formula" in cmd;
|
|
28188
|
+
const hasStyle = "style" in cmd;
|
|
28189
|
+
const hasFormat = "format" in cmd;
|
|
28190
|
+
if ((!hasContent || (cell === null || cell === void 0 ? void 0 : cell.content) === cmd.content) &&
|
|
28191
|
+
(!hasStyle || deepEquals(cell === null || cell === void 0 ? void 0 : cell.style, cmd.style)) &&
|
|
28192
|
+
(!hasFormat || (cell === null || cell === void 0 ? void 0 : cell.format) === cmd.format)) {
|
|
28193
|
+
return 88 /* CommandResult.NoChanges */;
|
|
28194
|
+
}
|
|
28195
|
+
return 0 /* CommandResult.Success */;
|
|
28196
|
+
}
|
|
28185
28197
|
}
|
|
28186
28198
|
CellPlugin.getters = [
|
|
28187
28199
|
"zoneToXC",
|
|
@@ -43259,6 +43271,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
43259
43271
|
exports.tokenize = tokenize;
|
|
43260
43272
|
|
|
43261
43273
|
|
|
43262
|
-
__info__.version = '16.0.
|
|
43263
|
-
__info__.date = '2024-02-
|
|
43264
|
-
__info__.hash = '
|
|
43274
|
+
__info__.version = '16.0.33';
|
|
43275
|
+
__info__.date = '2024-02-16T14:49:10.674Z';
|
|
43276
|
+
__info__.hash = 'c0cefe8';
|
package/dist/o-spreadsheet.d.ts
CHANGED
|
@@ -27817,9 +27817,9 @@ class CellPlugin extends CorePlugin {
|
|
|
27817
27817
|
allowDispatch(cmd) {
|
|
27818
27818
|
switch (cmd.type) {
|
|
27819
27819
|
case "UPDATE_CELL":
|
|
27820
|
-
return this.
|
|
27820
|
+
return this.checkValidations(cmd, this.checkCellOutOfSheet, this.checkUselessUpdateCell);
|
|
27821
27821
|
case "CLEAR_CELL":
|
|
27822
|
-
return this.checkValidations(cmd, this.
|
|
27822
|
+
return this.checkValidations(cmd, this.checkCellOutOfSheet, this.checkUselessClearCell);
|
|
27823
27823
|
default:
|
|
27824
27824
|
return 0 /* CommandResult.Success */;
|
|
27825
27825
|
}
|
|
@@ -28178,6 +28178,18 @@ class CellPlugin extends CorePlugin {
|
|
|
28178
28178
|
}
|
|
28179
28179
|
return 0 /* CommandResult.Success */;
|
|
28180
28180
|
}
|
|
28181
|
+
checkUselessUpdateCell(cmd) {
|
|
28182
|
+
const cell = this.getters.getCell(cmd.sheetId, cmd.col, cmd.row);
|
|
28183
|
+
const hasContent = "content" in cmd || "formula" in cmd;
|
|
28184
|
+
const hasStyle = "style" in cmd;
|
|
28185
|
+
const hasFormat = "format" in cmd;
|
|
28186
|
+
if ((!hasContent || (cell === null || cell === void 0 ? void 0 : cell.content) === cmd.content) &&
|
|
28187
|
+
(!hasStyle || deepEquals(cell === null || cell === void 0 ? void 0 : cell.style, cmd.style)) &&
|
|
28188
|
+
(!hasFormat || (cell === null || cell === void 0 ? void 0 : cell.format) === cmd.format)) {
|
|
28189
|
+
return 88 /* CommandResult.NoChanges */;
|
|
28190
|
+
}
|
|
28191
|
+
return 0 /* CommandResult.Success */;
|
|
28192
|
+
}
|
|
28181
28193
|
}
|
|
28182
28194
|
CellPlugin.getters = [
|
|
28183
28195
|
"zoneToXC",
|
|
@@ -43227,6 +43239,6 @@ function addFunction(functionName, functionDescription) {
|
|
|
43227
43239
|
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 };
|
|
43228
43240
|
|
|
43229
43241
|
|
|
43230
|
-
__info__.version = '16.0.
|
|
43231
|
-
__info__.date = '2024-02-
|
|
43232
|
-
__info__.hash = '
|
|
43242
|
+
__info__.version = '16.0.33';
|
|
43243
|
+
__info__.date = '2024-02-16T14:49:10.674Z';
|
|
43244
|
+
__info__.hash = 'c0cefe8';
|
|
@@ -27818,9 +27818,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
27818
27818
|
allowDispatch(cmd) {
|
|
27819
27819
|
switch (cmd.type) {
|
|
27820
27820
|
case "UPDATE_CELL":
|
|
27821
|
-
return this.
|
|
27821
|
+
return this.checkValidations(cmd, this.checkCellOutOfSheet, this.checkUselessUpdateCell);
|
|
27822
27822
|
case "CLEAR_CELL":
|
|
27823
|
-
return this.checkValidations(cmd, this.
|
|
27823
|
+
return this.checkValidations(cmd, this.checkCellOutOfSheet, this.checkUselessClearCell);
|
|
27824
27824
|
default:
|
|
27825
27825
|
return 0 /* CommandResult.Success */;
|
|
27826
27826
|
}
|
|
@@ -28179,6 +28179,18 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
28179
28179
|
}
|
|
28180
28180
|
return 0 /* CommandResult.Success */;
|
|
28181
28181
|
}
|
|
28182
|
+
checkUselessUpdateCell(cmd) {
|
|
28183
|
+
const cell = this.getters.getCell(cmd.sheetId, cmd.col, cmd.row);
|
|
28184
|
+
const hasContent = "content" in cmd || "formula" in cmd;
|
|
28185
|
+
const hasStyle = "style" in cmd;
|
|
28186
|
+
const hasFormat = "format" in cmd;
|
|
28187
|
+
if ((!hasContent || (cell === null || cell === void 0 ? void 0 : cell.content) === cmd.content) &&
|
|
28188
|
+
(!hasStyle || deepEquals(cell === null || cell === void 0 ? void 0 : cell.style, cmd.style)) &&
|
|
28189
|
+
(!hasFormat || (cell === null || cell === void 0 ? void 0 : cell.format) === cmd.format)) {
|
|
28190
|
+
return 88 /* CommandResult.NoChanges */;
|
|
28191
|
+
}
|
|
28192
|
+
return 0 /* CommandResult.Success */;
|
|
28193
|
+
}
|
|
28182
28194
|
}
|
|
28183
28195
|
CellPlugin.getters = [
|
|
28184
28196
|
"zoneToXC",
|
|
@@ -43258,9 +43270,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
|
|
|
43258
43270
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
43259
43271
|
|
|
43260
43272
|
|
|
43261
|
-
__info__.version = '16.0.
|
|
43262
|
-
__info__.date = '2024-02-
|
|
43263
|
-
__info__.hash = '
|
|
43273
|
+
__info__.version = '16.0.33';
|
|
43274
|
+
__info__.date = '2024-02-16T14:49:10.674Z';
|
|
43275
|
+
__info__.hash = 'c0cefe8';
|
|
43264
43276
|
|
|
43265
43277
|
|
|
43266
43278
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|