@odoo/o-spreadsheet 19.3.14 → 19.3.16
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 +130 -33
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +130 -33
- package/dist/o_spreadsheet.iife.js +130 -33
- package/dist/o_spreadsheet.min.iife.js +260 -260
- package/dist/o_spreadsheet.xml +3 -3
- package/dist/types/components/figures/chart/chartJs/chartjs_geo_projection_plugin.d.ts +12 -0
- package/dist/types/functions/function_registry.d.ts +3 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/plugins/core/squisher.d.ts +2 -1
- package/package.json +1 -1
package/dist/o_spreadsheet.xml
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
This file is generated by o-spreadsheet build tools. Do not edit it.
|
|
3
3
|
@see https://github.com/odoo/o-spreadsheet
|
|
4
|
-
@version 19.3.
|
|
5
|
-
@date 2026-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.3.16
|
|
5
|
+
@date 2026-08-12T09:15:32.599Z
|
|
6
|
+
@hash 464be42
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Plugin } from "chart.js";
|
|
2
|
+
/**
|
|
3
|
+
* ChartJS plugin to apply custom changes to a d3 projection.
|
|
4
|
+
*
|
|
5
|
+
* We pass the projection as a string instead of a customized d3 object so
|
|
6
|
+
* Chart.js creates a fresh projection instance. Custom changes (e.g. rotation)
|
|
7
|
+
* are then applied in `beforeUpdate`.
|
|
8
|
+
*
|
|
9
|
+
* This is important because Chart.js mutates the projection instance at runtime,
|
|
10
|
+
* and a customize d3 projection object would not be copied during deepCopy.
|
|
11
|
+
*/
|
|
12
|
+
export declare const geoProjectionPlugin: Plugin;
|
|
@@ -9,3 +9,6 @@ export declare class FunctionRegistry extends Registry<FunctionDescription> {
|
|
|
9
9
|
replace(name: string, addDescr: AddFunctionDescription): this;
|
|
10
10
|
}
|
|
11
11
|
export declare const functionRegistry: FunctionRegistry;
|
|
12
|
+
/** Formulas using one of these functions are never squished: they are always exported
|
|
13
|
+
* as a full formula string, and they don't become the base formula of the next cells. */
|
|
14
|
+
export declare const NonSquishableFunctionRegistry: Registry<string>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -190,6 +190,7 @@ export declare const registries: {
|
|
|
190
190
|
register: (chart: import("./types/chart/chartjs").GlobalChart) => void;
|
|
191
191
|
unregister: (chart: import("./types/chart/chartjs").GlobalChart) => void;
|
|
192
192
|
}>;
|
|
193
|
+
NonSquishableFunctionRegistry: import(".").Registry<string>;
|
|
193
194
|
};
|
|
194
195
|
import "./helpers/figures/charts/chart_data_sources";
|
|
195
196
|
import "./registries/chart_types";
|
|
@@ -373,7 +374,7 @@ export declare const stores: {
|
|
|
373
374
|
};
|
|
374
375
|
export { getCaretDownSvg, getCaretUpSvg } from "./components/icons/icons";
|
|
375
376
|
export { createAutocompleteArgumentsProvider } from "./functions/autocomplete_arguments_provider";
|
|
376
|
-
export type { FunctionRegistry } from "./functions/function_registry";
|
|
377
|
+
export type { FunctionRegistry, NonSquishableFunctionRegistry, } from "./functions/function_registry";
|
|
377
378
|
export { categories } from "./functions/function_registry_population";
|
|
378
379
|
export type { StoreConstructor, StoreParams } from "./store_engine";
|
|
379
380
|
export declare function addFunction(functionName: string, functionDescription: AddFunctionDescription): {
|
|
@@ -47,7 +47,8 @@ export declare class Squisher {
|
|
|
47
47
|
* The result of this method is:
|
|
48
48
|
* - if the cell is not a formula, returns the content as is and resets the base formula
|
|
49
49
|
* - if the cell is a formula:
|
|
50
|
-
* - if there is no previous formula, or the normalized formula is different from the previous one
|
|
50
|
+
* - if there is no previous formula, or the normalized formula is different from the previous one or it contains blacklisted functions (see NonSquishableFunctionRegistry),
|
|
51
|
+
* resets the base formula to this one and returns the full formula string
|
|
51
52
|
* - else, compares the literal values and range dependencies to the previous formula, and for each parameter:
|
|
52
53
|
* - for numbers: returns a relative change (+N or -N) if possible, else the full number or "=" if unchanged
|
|
53
54
|
* - for strings: returns the full string if changed, else "="
|