@odoo/o-spreadsheet 18.2.26 → 18.2.27
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 +18 -19
- package/dist/o-spreadsheet.esm.js +18 -19
- package/dist/o-spreadsheet.iife.js +18 -19
- package/dist/o-spreadsheet.iife.min.js +377 -377
- package/dist/o_spreadsheet.xml +10 -7
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.2.
|
|
6
|
-
* @date 2025-08-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.27
|
|
6
|
+
* @date 2025-08-26T10:07:14.516Z
|
|
7
|
+
* @hash fbf9445
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -6823,15 +6823,22 @@ function parseOSClipboardContent(content) {
|
|
|
6823
6823
|
};
|
|
6824
6824
|
}
|
|
6825
6825
|
const htmlDocument = new DOMParser().parseFromString(content[ClipboardMIMEType.Html], "text/html");
|
|
6826
|
-
const oSheetClipboardData = htmlDocument
|
|
6827
|
-
.querySelector("div")
|
|
6828
|
-
?.getAttribute("data-osheet-clipboard");
|
|
6829
|
-
const spreadsheetContent = oSheetClipboardData && JSON.parse(oSheetClipboardData);
|
|
6830
6826
|
return {
|
|
6831
6827
|
text: content[ClipboardMIMEType.PlainText],
|
|
6832
|
-
data:
|
|
6828
|
+
data: getOSheetDataFromHTML(htmlDocument),
|
|
6833
6829
|
};
|
|
6834
6830
|
}
|
|
6831
|
+
function getOSheetDataFromHTML(htmlDocument) {
|
|
6832
|
+
const attributes = [...htmlDocument.documentElement.attributes];
|
|
6833
|
+
// Check if it's a Microsoft Office clipboard data (it will have some namespaces defined in the root element)
|
|
6834
|
+
if (attributes.some((attr) => attr.value.includes("microsoft"))) {
|
|
6835
|
+
return undefined;
|
|
6836
|
+
}
|
|
6837
|
+
const oSheetClipboardData = htmlDocument
|
|
6838
|
+
.querySelector("div")
|
|
6839
|
+
?.getAttribute("data-osheet-clipboard");
|
|
6840
|
+
return oSheetClipboardData && JSON.parse(oSheetClipboardData);
|
|
6841
|
+
}
|
|
6835
6842
|
/**
|
|
6836
6843
|
* Applies each clipboard handler to paste its corresponding data into the target.
|
|
6837
6844
|
*/
|
|
@@ -30896,10 +30903,6 @@ class ComboChart extends AbstractChart {
|
|
|
30896
30903
|
};
|
|
30897
30904
|
}
|
|
30898
30905
|
getDefinitionForExcel() {
|
|
30899
|
-
// Excel does not support aggregating labels
|
|
30900
|
-
if (this.aggregated) {
|
|
30901
|
-
return undefined;
|
|
30902
|
-
}
|
|
30903
30906
|
const dataSets = this.dataSets
|
|
30904
30907
|
.map((ds) => toExcelDataset(this.getters, ds))
|
|
30905
30908
|
.filter((ds) => ds.range !== "" && ds.range !== CellErrorType.InvalidReference);
|
|
@@ -32051,10 +32054,6 @@ class ScatterChart extends AbstractChart {
|
|
|
32051
32054
|
return new ScatterChart(definition, this.sheetId, this.getters);
|
|
32052
32055
|
}
|
|
32053
32056
|
getDefinitionForExcel() {
|
|
32054
|
-
// Excel does not support aggregating labels
|
|
32055
|
-
if (this.aggregated) {
|
|
32056
|
-
return undefined;
|
|
32057
|
-
}
|
|
32058
32057
|
const dataSets = this.dataSets
|
|
32059
32058
|
.map((ds) => toExcelDataset(this.getters, ds))
|
|
32060
32059
|
.filter((ds) => ds.range !== "");
|
|
@@ -77286,6 +77285,6 @@ exports.tokenColors = tokenColors;
|
|
|
77286
77285
|
exports.tokenize = tokenize;
|
|
77287
77286
|
|
|
77288
77287
|
|
|
77289
|
-
__info__.version = "18.2.
|
|
77290
|
-
__info__.date = "2025-08-
|
|
77291
|
-
__info__.hash = "
|
|
77288
|
+
__info__.version = "18.2.27";
|
|
77289
|
+
__info__.date = "2025-08-26T10:07:14.516Z";
|
|
77290
|
+
__info__.hash = "fbf9445";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.2.
|
|
6
|
-
* @date 2025-08-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.27
|
|
6
|
+
* @date 2025-08-26T10:07:14.516Z
|
|
7
|
+
* @hash fbf9445
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, App, blockDom, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
|
|
@@ -6821,15 +6821,22 @@ function parseOSClipboardContent(content) {
|
|
|
6821
6821
|
};
|
|
6822
6822
|
}
|
|
6823
6823
|
const htmlDocument = new DOMParser().parseFromString(content[ClipboardMIMEType.Html], "text/html");
|
|
6824
|
-
const oSheetClipboardData = htmlDocument
|
|
6825
|
-
.querySelector("div")
|
|
6826
|
-
?.getAttribute("data-osheet-clipboard");
|
|
6827
|
-
const spreadsheetContent = oSheetClipboardData && JSON.parse(oSheetClipboardData);
|
|
6828
6824
|
return {
|
|
6829
6825
|
text: content[ClipboardMIMEType.PlainText],
|
|
6830
|
-
data:
|
|
6826
|
+
data: getOSheetDataFromHTML(htmlDocument),
|
|
6831
6827
|
};
|
|
6832
6828
|
}
|
|
6829
|
+
function getOSheetDataFromHTML(htmlDocument) {
|
|
6830
|
+
const attributes = [...htmlDocument.documentElement.attributes];
|
|
6831
|
+
// Check if it's a Microsoft Office clipboard data (it will have some namespaces defined in the root element)
|
|
6832
|
+
if (attributes.some((attr) => attr.value.includes("microsoft"))) {
|
|
6833
|
+
return undefined;
|
|
6834
|
+
}
|
|
6835
|
+
const oSheetClipboardData = htmlDocument
|
|
6836
|
+
.querySelector("div")
|
|
6837
|
+
?.getAttribute("data-osheet-clipboard");
|
|
6838
|
+
return oSheetClipboardData && JSON.parse(oSheetClipboardData);
|
|
6839
|
+
}
|
|
6833
6840
|
/**
|
|
6834
6841
|
* Applies each clipboard handler to paste its corresponding data into the target.
|
|
6835
6842
|
*/
|
|
@@ -30894,10 +30901,6 @@ class ComboChart extends AbstractChart {
|
|
|
30894
30901
|
};
|
|
30895
30902
|
}
|
|
30896
30903
|
getDefinitionForExcel() {
|
|
30897
|
-
// Excel does not support aggregating labels
|
|
30898
|
-
if (this.aggregated) {
|
|
30899
|
-
return undefined;
|
|
30900
|
-
}
|
|
30901
30904
|
const dataSets = this.dataSets
|
|
30902
30905
|
.map((ds) => toExcelDataset(this.getters, ds))
|
|
30903
30906
|
.filter((ds) => ds.range !== "" && ds.range !== CellErrorType.InvalidReference);
|
|
@@ -32049,10 +32052,6 @@ class ScatterChart extends AbstractChart {
|
|
|
32049
32052
|
return new ScatterChart(definition, this.sheetId, this.getters);
|
|
32050
32053
|
}
|
|
32051
32054
|
getDefinitionForExcel() {
|
|
32052
|
-
// Excel does not support aggregating labels
|
|
32053
|
-
if (this.aggregated) {
|
|
32054
|
-
return undefined;
|
|
32055
|
-
}
|
|
32056
32055
|
const dataSets = this.dataSets
|
|
32057
32056
|
.map((ds) => toExcelDataset(this.getters, ds))
|
|
32058
32057
|
.filter((ds) => ds.range !== "");
|
|
@@ -77239,6 +77238,6 @@ const chartHelpers = { ...CHART_HELPERS, ...CHART_RUNTIME_HELPERS };
|
|
|
77239
77238
|
export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, CoreViewPlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, chartHelpers, 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 };
|
|
77240
77239
|
|
|
77241
77240
|
|
|
77242
|
-
__info__.version = "18.2.
|
|
77243
|
-
__info__.date = "2025-08-
|
|
77244
|
-
__info__.hash = "
|
|
77241
|
+
__info__.version = "18.2.27";
|
|
77242
|
+
__info__.date = "2025-08-26T10:07:14.516Z";
|
|
77243
|
+
__info__.hash = "fbf9445";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
4
4
|
* @see https://github.com/odoo/o-spreadsheet
|
|
5
|
-
* @version 18.2.
|
|
6
|
-
* @date 2025-08-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 18.2.27
|
|
6
|
+
* @date 2025-08-26T10:07:14.516Z
|
|
7
|
+
* @hash fbf9445
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -6822,15 +6822,22 @@
|
|
|
6822
6822
|
};
|
|
6823
6823
|
}
|
|
6824
6824
|
const htmlDocument = new DOMParser().parseFromString(content[ClipboardMIMEType.Html], "text/html");
|
|
6825
|
-
const oSheetClipboardData = htmlDocument
|
|
6826
|
-
.querySelector("div")
|
|
6827
|
-
?.getAttribute("data-osheet-clipboard");
|
|
6828
|
-
const spreadsheetContent = oSheetClipboardData && JSON.parse(oSheetClipboardData);
|
|
6829
6825
|
return {
|
|
6830
6826
|
text: content[ClipboardMIMEType.PlainText],
|
|
6831
|
-
data:
|
|
6827
|
+
data: getOSheetDataFromHTML(htmlDocument),
|
|
6832
6828
|
};
|
|
6833
6829
|
}
|
|
6830
|
+
function getOSheetDataFromHTML(htmlDocument) {
|
|
6831
|
+
const attributes = [...htmlDocument.documentElement.attributes];
|
|
6832
|
+
// Check if it's a Microsoft Office clipboard data (it will have some namespaces defined in the root element)
|
|
6833
|
+
if (attributes.some((attr) => attr.value.includes("microsoft"))) {
|
|
6834
|
+
return undefined;
|
|
6835
|
+
}
|
|
6836
|
+
const oSheetClipboardData = htmlDocument
|
|
6837
|
+
.querySelector("div")
|
|
6838
|
+
?.getAttribute("data-osheet-clipboard");
|
|
6839
|
+
return oSheetClipboardData && JSON.parse(oSheetClipboardData);
|
|
6840
|
+
}
|
|
6834
6841
|
/**
|
|
6835
6842
|
* Applies each clipboard handler to paste its corresponding data into the target.
|
|
6836
6843
|
*/
|
|
@@ -30895,10 +30902,6 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
30895
30902
|
};
|
|
30896
30903
|
}
|
|
30897
30904
|
getDefinitionForExcel() {
|
|
30898
|
-
// Excel does not support aggregating labels
|
|
30899
|
-
if (this.aggregated) {
|
|
30900
|
-
return undefined;
|
|
30901
|
-
}
|
|
30902
30905
|
const dataSets = this.dataSets
|
|
30903
30906
|
.map((ds) => toExcelDataset(this.getters, ds))
|
|
30904
30907
|
.filter((ds) => ds.range !== "" && ds.range !== CellErrorType.InvalidReference);
|
|
@@ -32050,10 +32053,6 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
32050
32053
|
return new ScatterChart(definition, this.sheetId, this.getters);
|
|
32051
32054
|
}
|
|
32052
32055
|
getDefinitionForExcel() {
|
|
32053
|
-
// Excel does not support aggregating labels
|
|
32054
|
-
if (this.aggregated) {
|
|
32055
|
-
return undefined;
|
|
32056
|
-
}
|
|
32057
32056
|
const dataSets = this.dataSets
|
|
32058
32057
|
.map((ds) => toExcelDataset(this.getters, ds))
|
|
32059
32058
|
.filter((ds) => ds.range !== "");
|
|
@@ -77285,9 +77284,9 @@ stores.inject(MyMetaStore, storeInstance);
|
|
|
77285
77284
|
exports.tokenize = tokenize;
|
|
77286
77285
|
|
|
77287
77286
|
|
|
77288
|
-
__info__.version = "18.2.
|
|
77289
|
-
__info__.date = "2025-08-
|
|
77290
|
-
__info__.hash = "
|
|
77287
|
+
__info__.version = "18.2.27";
|
|
77288
|
+
__info__.date = "2025-08-26T10:07:14.516Z";
|
|
77289
|
+
__info__.hash = "fbf9445";
|
|
77291
77290
|
|
|
77292
77291
|
|
|
77293
77292
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|