@odoo/o-spreadsheet 17.2.23 → 17.2.24
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 +29 -18
- package/dist/o-spreadsheet.esm.js +29 -18
- package/dist/o-spreadsheet.iife.js +29 -18
- package/dist/o-spreadsheet.iife.min.js +3 -3
- package/dist/o_spreadsheet.xml +3 -3
- package/package.json +1 -1
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
5
5
|
* @see https://github.com/odoo/o-spreadsheet
|
|
6
|
-
* @version 17.2.
|
|
7
|
-
* @date 2024-
|
|
8
|
-
* @hash
|
|
6
|
+
* @version 17.2.24
|
|
7
|
+
* @date 2024-10-14T07:49:56.845Z
|
|
8
|
+
* @hash 7e88bec
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
'use strict';
|
|
@@ -163,7 +163,7 @@ const DEFAULT_STYLE = {
|
|
|
163
163
|
underline: false,
|
|
164
164
|
fontSize: 10,
|
|
165
165
|
fillColor: "",
|
|
166
|
-
textColor: "
|
|
166
|
+
textColor: "",
|
|
167
167
|
};
|
|
168
168
|
const DEFAULT_VERTICAL_ALIGN = DEFAULT_STYLE.verticalAlign;
|
|
169
169
|
const DEFAULT_WRAPPING_MODE = DEFAULT_STYLE.wrapping;
|
|
@@ -6301,25 +6301,26 @@ class TableClipboardHandler extends AbstractCellClipboardHandler {
|
|
|
6301
6301
|
for (let col of columnsIndexes) {
|
|
6302
6302
|
const position = { col, row, sheetId };
|
|
6303
6303
|
const table = this.getters.getTable(position);
|
|
6304
|
-
if (!table
|
|
6304
|
+
if (!table) {
|
|
6305
6305
|
tableCellsInRow.push({});
|
|
6306
6306
|
continue;
|
|
6307
6307
|
}
|
|
6308
|
+
let copiedTable = undefined;
|
|
6308
6309
|
// Copy whole table
|
|
6309
|
-
if (
|
|
6310
|
+
if (!copiedTablesIds.has(table.id) &&
|
|
6311
|
+
zones.some((z) => isZoneInside(table.range.zone, z))) {
|
|
6310
6312
|
copiedTablesIds.add(table.id);
|
|
6311
6313
|
const values = [];
|
|
6312
6314
|
for (const col of range(table.range.zone.left, table.range.zone.right + 1)) {
|
|
6313
6315
|
values.push(this.getters.getFilterHiddenValues({ sheetId, col, row: table.range.zone.top }));
|
|
6314
6316
|
}
|
|
6315
|
-
|
|
6316
|
-
table: { filtersValues: values, range: table.range, config: table.config },
|
|
6317
|
-
});
|
|
6318
|
-
}
|
|
6319
|
-
// Copy only style of cell
|
|
6320
|
-
else {
|
|
6321
|
-
tableCellsInRow.push({ style: this.getTableStyleToCopy(position) });
|
|
6317
|
+
copiedTable = { filtersValues: values, range: table.range, config: table.config };
|
|
6322
6318
|
}
|
|
6319
|
+
tableCellsInRow.push({
|
|
6320
|
+
table: copiedTable,
|
|
6321
|
+
style: this.getTableStyleToCopy(position),
|
|
6322
|
+
isWholeTableCopied: copiedTablesIds.has(table.id),
|
|
6323
|
+
});
|
|
6323
6324
|
}
|
|
6324
6325
|
}
|
|
6325
6326
|
return {
|
|
@@ -6411,8 +6412,12 @@ class TableClipboardHandler extends AbstractCellClipboardHandler {
|
|
|
6411
6412
|
}
|
|
6412
6413
|
}
|
|
6413
6414
|
// Do not paste table style if we're inside another table
|
|
6414
|
-
if (
|
|
6415
|
-
|
|
6415
|
+
if (this.getters.getTable(position) || options?.pasteOption === "asValue") {
|
|
6416
|
+
return;
|
|
6417
|
+
}
|
|
6418
|
+
if ((!options?.pasteOption && !tableCell.isWholeTableCopied) ||
|
|
6419
|
+
options?.pasteOption === "onlyFormat") {
|
|
6420
|
+
if (tableCell.style?.style) {
|
|
6416
6421
|
this.dispatch("UPDATE_CELL", { ...position, style: tableCell.style.style });
|
|
6417
6422
|
}
|
|
6418
6423
|
if (tableCell.style?.border) {
|
|
@@ -50673,6 +50678,7 @@ class Session extends EventBus {
|
|
|
50673
50678
|
case "REMOTE_REVISION":
|
|
50674
50679
|
case "REVISION_REDONE":
|
|
50675
50680
|
case "REVISION_UNDONE":
|
|
50681
|
+
case "SNAPSHOT_CREATED":
|
|
50676
50682
|
return this.processedRevisions.has(message.nextRevisionId);
|
|
50677
50683
|
default:
|
|
50678
50684
|
return false;
|
|
@@ -52139,6 +52145,9 @@ class TableStylePlugin extends UIPlugin {
|
|
|
52139
52145
|
case "FOLD_HEADER_GROUP":
|
|
52140
52146
|
case "FOLD_ALL_HEADER_GROUPS":
|
|
52141
52147
|
case "UNFOLD_ALL_HEADER_GROUPS":
|
|
52148
|
+
case "FOLD_HEADER_GROUPS_IN_ZONE":
|
|
52149
|
+
case "UNFOLD_HEADER_GROUPS_IN_ZONE":
|
|
52150
|
+
case "UNGROUP_HEADERS":
|
|
52142
52151
|
case "UPDATE_TABLE":
|
|
52143
52152
|
case "UPDATE_FILTER":
|
|
52144
52153
|
delete this.tableStyles[cmd.sheetId];
|
|
@@ -52834,6 +52843,8 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
52834
52843
|
case "UNFOLD_HEADER_GROUP":
|
|
52835
52844
|
case "FOLD_ALL_HEADER_GROUPS":
|
|
52836
52845
|
case "UNFOLD_ALL_HEADER_GROUPS":
|
|
52846
|
+
case "FOLD_HEADER_GROUPS_IN_ZONE":
|
|
52847
|
+
case "UNFOLD_HEADER_GROUPS_IN_ZONE":
|
|
52837
52848
|
this.updateHiddenRows(cmd.sheetId);
|
|
52838
52849
|
break;
|
|
52839
52850
|
case "UPDATE_FILTER":
|
|
@@ -60948,6 +60959,6 @@ exports.tokenColors = tokenColors;
|
|
|
60948
60959
|
exports.tokenize = tokenize;
|
|
60949
60960
|
|
|
60950
60961
|
|
|
60951
|
-
__info__.version = "17.2.
|
|
60952
|
-
__info__.date = "2024-
|
|
60953
|
-
__info__.hash = "
|
|
60962
|
+
__info__.version = "17.2.24";
|
|
60963
|
+
__info__.date = "2024-10-14T07:49:56.845Z";
|
|
60964
|
+
__info__.hash = "7e88bec";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
5
5
|
* @see https://github.com/odoo/o-spreadsheet
|
|
6
|
-
* @version 17.2.
|
|
7
|
-
* @date 2024-
|
|
8
|
-
* @hash
|
|
6
|
+
* @version 17.2.24
|
|
7
|
+
* @date 2024-10-14T07:49:56.845Z
|
|
8
|
+
* @hash 7e88bec
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw } from '@odoo/owl';
|
|
@@ -161,7 +161,7 @@ const DEFAULT_STYLE = {
|
|
|
161
161
|
underline: false,
|
|
162
162
|
fontSize: 10,
|
|
163
163
|
fillColor: "",
|
|
164
|
-
textColor: "
|
|
164
|
+
textColor: "",
|
|
165
165
|
};
|
|
166
166
|
const DEFAULT_VERTICAL_ALIGN = DEFAULT_STYLE.verticalAlign;
|
|
167
167
|
const DEFAULT_WRAPPING_MODE = DEFAULT_STYLE.wrapping;
|
|
@@ -6299,25 +6299,26 @@ class TableClipboardHandler extends AbstractCellClipboardHandler {
|
|
|
6299
6299
|
for (let col of columnsIndexes) {
|
|
6300
6300
|
const position = { col, row, sheetId };
|
|
6301
6301
|
const table = this.getters.getTable(position);
|
|
6302
|
-
if (!table
|
|
6302
|
+
if (!table) {
|
|
6303
6303
|
tableCellsInRow.push({});
|
|
6304
6304
|
continue;
|
|
6305
6305
|
}
|
|
6306
|
+
let copiedTable = undefined;
|
|
6306
6307
|
// Copy whole table
|
|
6307
|
-
if (
|
|
6308
|
+
if (!copiedTablesIds.has(table.id) &&
|
|
6309
|
+
zones.some((z) => isZoneInside(table.range.zone, z))) {
|
|
6308
6310
|
copiedTablesIds.add(table.id);
|
|
6309
6311
|
const values = [];
|
|
6310
6312
|
for (const col of range(table.range.zone.left, table.range.zone.right + 1)) {
|
|
6311
6313
|
values.push(this.getters.getFilterHiddenValues({ sheetId, col, row: table.range.zone.top }));
|
|
6312
6314
|
}
|
|
6313
|
-
|
|
6314
|
-
table: { filtersValues: values, range: table.range, config: table.config },
|
|
6315
|
-
});
|
|
6316
|
-
}
|
|
6317
|
-
// Copy only style of cell
|
|
6318
|
-
else {
|
|
6319
|
-
tableCellsInRow.push({ style: this.getTableStyleToCopy(position) });
|
|
6315
|
+
copiedTable = { filtersValues: values, range: table.range, config: table.config };
|
|
6320
6316
|
}
|
|
6317
|
+
tableCellsInRow.push({
|
|
6318
|
+
table: copiedTable,
|
|
6319
|
+
style: this.getTableStyleToCopy(position),
|
|
6320
|
+
isWholeTableCopied: copiedTablesIds.has(table.id),
|
|
6321
|
+
});
|
|
6321
6322
|
}
|
|
6322
6323
|
}
|
|
6323
6324
|
return {
|
|
@@ -6409,8 +6410,12 @@ class TableClipboardHandler extends AbstractCellClipboardHandler {
|
|
|
6409
6410
|
}
|
|
6410
6411
|
}
|
|
6411
6412
|
// Do not paste table style if we're inside another table
|
|
6412
|
-
if (
|
|
6413
|
-
|
|
6413
|
+
if (this.getters.getTable(position) || options?.pasteOption === "asValue") {
|
|
6414
|
+
return;
|
|
6415
|
+
}
|
|
6416
|
+
if ((!options?.pasteOption && !tableCell.isWholeTableCopied) ||
|
|
6417
|
+
options?.pasteOption === "onlyFormat") {
|
|
6418
|
+
if (tableCell.style?.style) {
|
|
6414
6419
|
this.dispatch("UPDATE_CELL", { ...position, style: tableCell.style.style });
|
|
6415
6420
|
}
|
|
6416
6421
|
if (tableCell.style?.border) {
|
|
@@ -50671,6 +50676,7 @@ class Session extends EventBus {
|
|
|
50671
50676
|
case "REMOTE_REVISION":
|
|
50672
50677
|
case "REVISION_REDONE":
|
|
50673
50678
|
case "REVISION_UNDONE":
|
|
50679
|
+
case "SNAPSHOT_CREATED":
|
|
50674
50680
|
return this.processedRevisions.has(message.nextRevisionId);
|
|
50675
50681
|
default:
|
|
50676
50682
|
return false;
|
|
@@ -52137,6 +52143,9 @@ class TableStylePlugin extends UIPlugin {
|
|
|
52137
52143
|
case "FOLD_HEADER_GROUP":
|
|
52138
52144
|
case "FOLD_ALL_HEADER_GROUPS":
|
|
52139
52145
|
case "UNFOLD_ALL_HEADER_GROUPS":
|
|
52146
|
+
case "FOLD_HEADER_GROUPS_IN_ZONE":
|
|
52147
|
+
case "UNFOLD_HEADER_GROUPS_IN_ZONE":
|
|
52148
|
+
case "UNGROUP_HEADERS":
|
|
52140
52149
|
case "UPDATE_TABLE":
|
|
52141
52150
|
case "UPDATE_FILTER":
|
|
52142
52151
|
delete this.tableStyles[cmd.sheetId];
|
|
@@ -52832,6 +52841,8 @@ class FilterEvaluationPlugin extends UIPlugin {
|
|
|
52832
52841
|
case "UNFOLD_HEADER_GROUP":
|
|
52833
52842
|
case "FOLD_ALL_HEADER_GROUPS":
|
|
52834
52843
|
case "UNFOLD_ALL_HEADER_GROUPS":
|
|
52844
|
+
case "FOLD_HEADER_GROUPS_IN_ZONE":
|
|
52845
|
+
case "UNFOLD_HEADER_GROUPS_IN_ZONE":
|
|
52835
52846
|
this.updateHiddenRows(cmd.sheetId);
|
|
52836
52847
|
break;
|
|
52837
52848
|
case "UPDATE_FILTER":
|
|
@@ -60905,6 +60916,6 @@ const constants = {
|
|
|
60905
60916
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
|
|
60906
60917
|
|
|
60907
60918
|
|
|
60908
|
-
__info__.version = "17.2.
|
|
60909
|
-
__info__.date = "2024-
|
|
60910
|
-
__info__.hash = "
|
|
60919
|
+
__info__.version = "17.2.24";
|
|
60920
|
+
__info__.date = "2024-10-14T07:49:56.845Z";
|
|
60921
|
+
__info__.hash = "7e88bec";
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
5
5
|
* @see https://github.com/odoo/o-spreadsheet
|
|
6
|
-
* @version 17.2.
|
|
7
|
-
* @date 2024-
|
|
8
|
-
* @hash
|
|
6
|
+
* @version 17.2.24
|
|
7
|
+
* @date 2024-10-14T07:49:56.845Z
|
|
8
|
+
* @hash 7e88bec
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
(function (exports, owl) {
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
underline: false,
|
|
163
163
|
fontSize: 10,
|
|
164
164
|
fillColor: "",
|
|
165
|
-
textColor: "
|
|
165
|
+
textColor: "",
|
|
166
166
|
};
|
|
167
167
|
const DEFAULT_VERTICAL_ALIGN = DEFAULT_STYLE.verticalAlign;
|
|
168
168
|
const DEFAULT_WRAPPING_MODE = DEFAULT_STYLE.wrapping;
|
|
@@ -6300,25 +6300,26 @@
|
|
|
6300
6300
|
for (let col of columnsIndexes) {
|
|
6301
6301
|
const position = { col, row, sheetId };
|
|
6302
6302
|
const table = this.getters.getTable(position);
|
|
6303
|
-
if (!table
|
|
6303
|
+
if (!table) {
|
|
6304
6304
|
tableCellsInRow.push({});
|
|
6305
6305
|
continue;
|
|
6306
6306
|
}
|
|
6307
|
+
let copiedTable = undefined;
|
|
6307
6308
|
// Copy whole table
|
|
6308
|
-
if (
|
|
6309
|
+
if (!copiedTablesIds.has(table.id) &&
|
|
6310
|
+
zones.some((z) => isZoneInside(table.range.zone, z))) {
|
|
6309
6311
|
copiedTablesIds.add(table.id);
|
|
6310
6312
|
const values = [];
|
|
6311
6313
|
for (const col of range(table.range.zone.left, table.range.zone.right + 1)) {
|
|
6312
6314
|
values.push(this.getters.getFilterHiddenValues({ sheetId, col, row: table.range.zone.top }));
|
|
6313
6315
|
}
|
|
6314
|
-
|
|
6315
|
-
table: { filtersValues: values, range: table.range, config: table.config },
|
|
6316
|
-
});
|
|
6317
|
-
}
|
|
6318
|
-
// Copy only style of cell
|
|
6319
|
-
else {
|
|
6320
|
-
tableCellsInRow.push({ style: this.getTableStyleToCopy(position) });
|
|
6316
|
+
copiedTable = { filtersValues: values, range: table.range, config: table.config };
|
|
6321
6317
|
}
|
|
6318
|
+
tableCellsInRow.push({
|
|
6319
|
+
table: copiedTable,
|
|
6320
|
+
style: this.getTableStyleToCopy(position),
|
|
6321
|
+
isWholeTableCopied: copiedTablesIds.has(table.id),
|
|
6322
|
+
});
|
|
6322
6323
|
}
|
|
6323
6324
|
}
|
|
6324
6325
|
return {
|
|
@@ -6410,8 +6411,12 @@
|
|
|
6410
6411
|
}
|
|
6411
6412
|
}
|
|
6412
6413
|
// Do not paste table style if we're inside another table
|
|
6413
|
-
if (
|
|
6414
|
-
|
|
6414
|
+
if (this.getters.getTable(position) || options?.pasteOption === "asValue") {
|
|
6415
|
+
return;
|
|
6416
|
+
}
|
|
6417
|
+
if ((!options?.pasteOption && !tableCell.isWholeTableCopied) ||
|
|
6418
|
+
options?.pasteOption === "onlyFormat") {
|
|
6419
|
+
if (tableCell.style?.style) {
|
|
6415
6420
|
this.dispatch("UPDATE_CELL", { ...position, style: tableCell.style.style });
|
|
6416
6421
|
}
|
|
6417
6422
|
if (tableCell.style?.border) {
|
|
@@ -50672,6 +50677,7 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
50672
50677
|
case "REMOTE_REVISION":
|
|
50673
50678
|
case "REVISION_REDONE":
|
|
50674
50679
|
case "REVISION_UNDONE":
|
|
50680
|
+
case "SNAPSHOT_CREATED":
|
|
50675
50681
|
return this.processedRevisions.has(message.nextRevisionId);
|
|
50676
50682
|
default:
|
|
50677
50683
|
return false;
|
|
@@ -52138,6 +52144,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
52138
52144
|
case "FOLD_HEADER_GROUP":
|
|
52139
52145
|
case "FOLD_ALL_HEADER_GROUPS":
|
|
52140
52146
|
case "UNFOLD_ALL_HEADER_GROUPS":
|
|
52147
|
+
case "FOLD_HEADER_GROUPS_IN_ZONE":
|
|
52148
|
+
case "UNFOLD_HEADER_GROUPS_IN_ZONE":
|
|
52149
|
+
case "UNGROUP_HEADERS":
|
|
52141
52150
|
case "UPDATE_TABLE":
|
|
52142
52151
|
case "UPDATE_FILTER":
|
|
52143
52152
|
delete this.tableStyles[cmd.sheetId];
|
|
@@ -52833,6 +52842,8 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
52833
52842
|
case "UNFOLD_HEADER_GROUP":
|
|
52834
52843
|
case "FOLD_ALL_HEADER_GROUPS":
|
|
52835
52844
|
case "UNFOLD_ALL_HEADER_GROUPS":
|
|
52845
|
+
case "FOLD_HEADER_GROUPS_IN_ZONE":
|
|
52846
|
+
case "UNFOLD_HEADER_GROUPS_IN_ZONE":
|
|
52836
52847
|
this.updateHiddenRows(cmd.sheetId);
|
|
52837
52848
|
break;
|
|
52838
52849
|
case "UPDATE_FILTER":
|
|
@@ -60947,9 +60958,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
60947
60958
|
exports.tokenize = tokenize;
|
|
60948
60959
|
|
|
60949
60960
|
|
|
60950
|
-
__info__.version = "17.2.
|
|
60951
|
-
__info__.date = "2024-
|
|
60952
|
-
__info__.hash = "
|
|
60961
|
+
__info__.version = "17.2.24";
|
|
60962
|
+
__info__.date = "2024-10-14T07:49:56.845Z";
|
|
60963
|
+
__info__.hash = "7e88bec";
|
|
60953
60964
|
|
|
60954
60965
|
|
|
60955
60966
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|