@odoo/o-spreadsheet 17.1.0-alpha.7 → 17.2.0-alpha.0
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 +13 -14
- package/dist/o-spreadsheet.esm.js +13 -14
- package/dist/o-spreadsheet.iife.js +13 -14
- package/dist/o-spreadsheet.iife.min.js +4 -3
- package/dist/o_spreadsheet.xml +3 -3
- 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 17.
|
|
6
|
-
* @date 2024-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.2.0-alpha.0
|
|
6
|
+
* @date 2024-01-16T08:05:32.441Z
|
|
7
|
+
* @hash a28bf5e
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
'use strict';
|
|
@@ -480,7 +480,7 @@ function isBoolean(str) {
|
|
|
480
480
|
const upperCased = str.toUpperCase();
|
|
481
481
|
return upperCased === "TRUE" || upperCased === "FALSE";
|
|
482
482
|
}
|
|
483
|
-
const MARKDOWN_LINK_REGEX = /^\[(
|
|
483
|
+
const MARKDOWN_LINK_REGEX = /^\[(.+)\]\((.+)\)$/;
|
|
484
484
|
//link must start with http or https
|
|
485
485
|
//https://stackoverflow.com/a/3809435/4760614
|
|
486
486
|
const WEB_LINK_REGEX = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
|
|
@@ -1875,12 +1875,8 @@ const invalidateEvaluationCommands = new Set([
|
|
|
1875
1875
|
"ADD_MERGE",
|
|
1876
1876
|
"UPDATE_LOCALE",
|
|
1877
1877
|
]);
|
|
1878
|
-
const invalidateDependenciesCommands = new Set([
|
|
1879
|
-
...invalidateEvaluationCommands,
|
|
1880
|
-
"MOVE_RANGES",
|
|
1881
|
-
]);
|
|
1878
|
+
const invalidateDependenciesCommands = new Set(["MOVE_RANGES"]);
|
|
1882
1879
|
const invalidateCFEvaluationCommands = new Set([
|
|
1883
|
-
...invalidateEvaluationCommands,
|
|
1884
1880
|
"DUPLICATE_SHEET",
|
|
1885
1881
|
"EVALUATE_CELLS",
|
|
1886
1882
|
"ADD_CONDITIONAL_FORMAT",
|
|
@@ -27735,6 +27731,7 @@ const CHECKBOX_WIDTH = 15;
|
|
|
27735
27731
|
const MARGIN = (GRID_ICON_EDGE_LENGTH - CHECKBOX_WIDTH) / 2;
|
|
27736
27732
|
css /* scss */ `
|
|
27737
27733
|
.o-dv-checkbox {
|
|
27734
|
+
box-sizing: border-box !important;
|
|
27738
27735
|
width: ${CHECKBOX_WIDTH}px;
|
|
27739
27736
|
height: ${CHECKBOX_WIDTH}px;
|
|
27740
27737
|
accent-color: #808080;
|
|
@@ -41722,7 +41719,8 @@ class EvaluationPlugin extends UIPlugin {
|
|
|
41722
41719
|
// Command Handling
|
|
41723
41720
|
// ---------------------------------------------------------------------------
|
|
41724
41721
|
beforeHandle(cmd) {
|
|
41725
|
-
if (
|
|
41722
|
+
if (invalidateEvaluationCommands.has(cmd.type) ||
|
|
41723
|
+
invalidateDependenciesCommands.has(cmd.type)) {
|
|
41726
41724
|
this.shouldRebuildDependenciesGraph = true;
|
|
41727
41725
|
}
|
|
41728
41726
|
}
|
|
@@ -42143,7 +42141,8 @@ class EvaluationConditionalFormatPlugin extends UIPlugin {
|
|
|
42143
42141
|
// Command Handling
|
|
42144
42142
|
// ---------------------------------------------------------------------------
|
|
42145
42143
|
handle(cmd) {
|
|
42146
|
-
if (
|
|
42144
|
+
if (invalidateEvaluationCommands.has(cmd.type) ||
|
|
42145
|
+
invalidateCFEvaluationCommands.has(cmd.type) ||
|
|
42147
42146
|
(cmd.type === "UPDATE_CELL" && ("content" in cmd || "format" in cmd))) {
|
|
42148
42147
|
this.isStale = true;
|
|
42149
42148
|
}
|
|
@@ -57036,6 +57035,6 @@ exports.setTranslationMethod = setTranslationMethod;
|
|
|
57036
57035
|
exports.tokenize = tokenize;
|
|
57037
57036
|
|
|
57038
57037
|
|
|
57039
|
-
__info__.version = "17.
|
|
57040
|
-
__info__.date = "2024-01-
|
|
57041
|
-
__info__.hash = "
|
|
57038
|
+
__info__.version = "17.2.0-alpha.0";
|
|
57039
|
+
__info__.date = "2024-01-16T08:05:32.441Z";
|
|
57040
|
+
__info__.hash = "a28bf5e";
|
|
@@ -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 17.
|
|
6
|
-
* @date 2024-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.2.0-alpha.0
|
|
6
|
+
* @date 2024-01-16T08:05:32.441Z
|
|
7
|
+
* @hash a28bf5e
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { Component, useRef, onMounted, useEffect, onWillPatch, useState, onWillUpdateProps, onPatched, useComponent, useExternalListener, onWillUnmount, onWillStart, xml, useChildSubEnv, useSubEnv, markRaw } from '@odoo/owl';
|
|
@@ -478,7 +478,7 @@ function isBoolean(str) {
|
|
|
478
478
|
const upperCased = str.toUpperCase();
|
|
479
479
|
return upperCased === "TRUE" || upperCased === "FALSE";
|
|
480
480
|
}
|
|
481
|
-
const MARKDOWN_LINK_REGEX = /^\[(
|
|
481
|
+
const MARKDOWN_LINK_REGEX = /^\[(.+)\]\((.+)\)$/;
|
|
482
482
|
//link must start with http or https
|
|
483
483
|
//https://stackoverflow.com/a/3809435/4760614
|
|
484
484
|
const WEB_LINK_REGEX = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
|
|
@@ -1873,12 +1873,8 @@ const invalidateEvaluationCommands = new Set([
|
|
|
1873
1873
|
"ADD_MERGE",
|
|
1874
1874
|
"UPDATE_LOCALE",
|
|
1875
1875
|
]);
|
|
1876
|
-
const invalidateDependenciesCommands = new Set([
|
|
1877
|
-
...invalidateEvaluationCommands,
|
|
1878
|
-
"MOVE_RANGES",
|
|
1879
|
-
]);
|
|
1876
|
+
const invalidateDependenciesCommands = new Set(["MOVE_RANGES"]);
|
|
1880
1877
|
const invalidateCFEvaluationCommands = new Set([
|
|
1881
|
-
...invalidateEvaluationCommands,
|
|
1882
1878
|
"DUPLICATE_SHEET",
|
|
1883
1879
|
"EVALUATE_CELLS",
|
|
1884
1880
|
"ADD_CONDITIONAL_FORMAT",
|
|
@@ -27733,6 +27729,7 @@ const CHECKBOX_WIDTH = 15;
|
|
|
27733
27729
|
const MARGIN = (GRID_ICON_EDGE_LENGTH - CHECKBOX_WIDTH) / 2;
|
|
27734
27730
|
css /* scss */ `
|
|
27735
27731
|
.o-dv-checkbox {
|
|
27732
|
+
box-sizing: border-box !important;
|
|
27736
27733
|
width: ${CHECKBOX_WIDTH}px;
|
|
27737
27734
|
height: ${CHECKBOX_WIDTH}px;
|
|
27738
27735
|
accent-color: #808080;
|
|
@@ -41720,7 +41717,8 @@ class EvaluationPlugin extends UIPlugin {
|
|
|
41720
41717
|
// Command Handling
|
|
41721
41718
|
// ---------------------------------------------------------------------------
|
|
41722
41719
|
beforeHandle(cmd) {
|
|
41723
|
-
if (
|
|
41720
|
+
if (invalidateEvaluationCommands.has(cmd.type) ||
|
|
41721
|
+
invalidateDependenciesCommands.has(cmd.type)) {
|
|
41724
41722
|
this.shouldRebuildDependenciesGraph = true;
|
|
41725
41723
|
}
|
|
41726
41724
|
}
|
|
@@ -42141,7 +42139,8 @@ class EvaluationConditionalFormatPlugin extends UIPlugin {
|
|
|
42141
42139
|
// Command Handling
|
|
42142
42140
|
// ---------------------------------------------------------------------------
|
|
42143
42141
|
handle(cmd) {
|
|
42144
|
-
if (
|
|
42142
|
+
if (invalidateEvaluationCommands.has(cmd.type) ||
|
|
42143
|
+
invalidateCFEvaluationCommands.has(cmd.type) ||
|
|
42145
42144
|
(cmd.type === "UPDATE_CELL" && ("content" in cmd || "format" in cmd))) {
|
|
42146
42145
|
this.isStale = true;
|
|
42147
42146
|
}
|
|
@@ -56999,6 +56998,6 @@ const constants = {
|
|
|
56999
56998
|
export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
|
|
57000
56999
|
|
|
57001
57000
|
|
|
57002
|
-
__info__.version = "17.
|
|
57003
|
-
__info__.date = "2024-01-
|
|
57004
|
-
__info__.hash = "
|
|
57001
|
+
__info__.version = "17.2.0-alpha.0";
|
|
57002
|
+
__info__.date = "2024-01-16T08:05:32.441Z";
|
|
57003
|
+
__info__.hash = "a28bf5e";
|
|
@@ -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 17.
|
|
6
|
-
* @date 2024-01-
|
|
7
|
-
* @hash
|
|
5
|
+
* @version 17.2.0-alpha.0
|
|
6
|
+
* @date 2024-01-16T08:05:32.441Z
|
|
7
|
+
* @hash a28bf5e
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
(function (exports, owl) {
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
const upperCased = str.toUpperCase();
|
|
480
480
|
return upperCased === "TRUE" || upperCased === "FALSE";
|
|
481
481
|
}
|
|
482
|
-
const MARKDOWN_LINK_REGEX = /^\[(
|
|
482
|
+
const MARKDOWN_LINK_REGEX = /^\[(.+)\]\((.+)\)$/;
|
|
483
483
|
//link must start with http or https
|
|
484
484
|
//https://stackoverflow.com/a/3809435/4760614
|
|
485
485
|
const WEB_LINK_REGEX = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/;
|
|
@@ -1874,12 +1874,8 @@
|
|
|
1874
1874
|
"ADD_MERGE",
|
|
1875
1875
|
"UPDATE_LOCALE",
|
|
1876
1876
|
]);
|
|
1877
|
-
const invalidateDependenciesCommands = new Set([
|
|
1878
|
-
...invalidateEvaluationCommands,
|
|
1879
|
-
"MOVE_RANGES",
|
|
1880
|
-
]);
|
|
1877
|
+
const invalidateDependenciesCommands = new Set(["MOVE_RANGES"]);
|
|
1881
1878
|
const invalidateCFEvaluationCommands = new Set([
|
|
1882
|
-
...invalidateEvaluationCommands,
|
|
1883
1879
|
"DUPLICATE_SHEET",
|
|
1884
1880
|
"EVALUATE_CELLS",
|
|
1885
1881
|
"ADD_CONDITIONAL_FORMAT",
|
|
@@ -27734,6 +27730,7 @@
|
|
|
27734
27730
|
const MARGIN = (GRID_ICON_EDGE_LENGTH - CHECKBOX_WIDTH) / 2;
|
|
27735
27731
|
css /* scss */ `
|
|
27736
27732
|
.o-dv-checkbox {
|
|
27733
|
+
box-sizing: border-box !important;
|
|
27737
27734
|
width: ${CHECKBOX_WIDTH}px;
|
|
27738
27735
|
height: ${CHECKBOX_WIDTH}px;
|
|
27739
27736
|
accent-color: #808080;
|
|
@@ -41721,7 +41718,8 @@
|
|
|
41721
41718
|
// Command Handling
|
|
41722
41719
|
// ---------------------------------------------------------------------------
|
|
41723
41720
|
beforeHandle(cmd) {
|
|
41724
|
-
if (
|
|
41721
|
+
if (invalidateEvaluationCommands.has(cmd.type) ||
|
|
41722
|
+
invalidateDependenciesCommands.has(cmd.type)) {
|
|
41725
41723
|
this.shouldRebuildDependenciesGraph = true;
|
|
41726
41724
|
}
|
|
41727
41725
|
}
|
|
@@ -42142,7 +42140,8 @@
|
|
|
42142
42140
|
// Command Handling
|
|
42143
42141
|
// ---------------------------------------------------------------------------
|
|
42144
42142
|
handle(cmd) {
|
|
42145
|
-
if (
|
|
42143
|
+
if (invalidateEvaluationCommands.has(cmd.type) ||
|
|
42144
|
+
invalidateCFEvaluationCommands.has(cmd.type) ||
|
|
42146
42145
|
(cmd.type === "UPDATE_CELL" && ("content" in cmd || "format" in cmd))) {
|
|
42147
42146
|
this.isStale = true;
|
|
42148
42147
|
}
|
|
@@ -57035,9 +57034,9 @@
|
|
|
57035
57034
|
exports.tokenize = tokenize;
|
|
57036
57035
|
|
|
57037
57036
|
|
|
57038
|
-
__info__.version = "17.
|
|
57039
|
-
__info__.date = "2024-01-
|
|
57040
|
-
__info__.hash = "
|
|
57037
|
+
__info__.version = "17.2.0-alpha.0";
|
|
57038
|
+
__info__.date = "2024-01-16T08:05:32.441Z";
|
|
57039
|
+
__info__.hash = "a28bf5e";
|
|
57041
57040
|
|
|
57042
57041
|
|
|
57043
57042
|
})(this.o_spreadsheet = this.o_spreadsheet || {}, owl);
|