@odoo/o-spreadsheet 19.3.11 → 19.3.13
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 +101 -39
- package/dist/o_spreadsheet.css +3 -3
- package/dist/o_spreadsheet.esm.js +101 -39
- package/dist/o_spreadsheet.iife.js +101 -39
- package/dist/o_spreadsheet.min.iife.js +9 -9
- package/dist/o_spreadsheet.xml +4 -7
- package/dist/types/components/grid/grid.d.ts +1 -0
- package/dist/types/formulas/compiler.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/plugins/core/squisher.d.ts +1 -0
- package/dist/types/plugins/ui_core_views/pivot_ui.d.ts +3 -0
- package/dist/types/plugins/ui_feature/collaborative.d.ts +2 -1
- package/dist/types/types/range.d.ts +1 -0
- 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-07-
|
|
6
|
-
@hash
|
|
4
|
+
@version 19.3.13
|
|
5
|
+
@date 2026-07-23T07:41:07.163Z
|
|
6
|
+
@hash 2059bd0
|
|
7
7
|
-->
|
|
8
8
|
<odoo>
|
|
9
9
|
<t t-name="o-spreadsheet-ValidationMessages">
|
|
@@ -6950,10 +6950,7 @@
|
|
|
6950
6950
|
/>
|
|
6951
6951
|
<canvas t-ref="canvas"/>
|
|
6952
6952
|
<t t-set="focused" t-value="focusedClients"/>
|
|
6953
|
-
<t
|
|
6954
|
-
t-foreach="env.model.getters.getClientsToDisplay()"
|
|
6955
|
-
t-as="client"
|
|
6956
|
-
t-key="getClientPositionKey(client)">
|
|
6953
|
+
<t t-foreach="this.clientsToDisplay" t-as="client" t-key="getClientPositionKey(client)">
|
|
6957
6954
|
<ClientTag
|
|
6958
6955
|
name="client.name"
|
|
6959
6956
|
color="client.color"
|
|
@@ -92,6 +92,7 @@ export declare class CompiledFormula implements Omit<ICompiledFormula, "tokens"
|
|
|
92
92
|
* Make a new instance of CompiledFormula by compiling the formula string as input by the user.
|
|
93
93
|
* */
|
|
94
94
|
static Compile(formula: string, sheetId: UID, getters: CoreGetters): CompiledFormula;
|
|
95
|
+
areRangeShapesInLineWithNormalizedFormula(): boolean;
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
98
|
* A compiled formula serialized
|
package/dist/types/index.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ import { PivotMeasureDisplayPanelStore } from "./components/side_panel/pivot/piv
|
|
|
67
67
|
import { HoveredTableStore } from "./components/tables/hovered_table_store";
|
|
68
68
|
import { TextInput } from "./components/text_input/text_input";
|
|
69
69
|
import { arg } from "./functions/arguments";
|
|
70
|
+
import { PositionMap } from "./helpers/cells/position_map";
|
|
70
71
|
import * as CHART_HELPERS from "./helpers/figures/charts";
|
|
71
72
|
import * as CHART_RUNTIME_HELPERS from "./helpers/figures/charts/runtime";
|
|
72
73
|
import { areDomainArgsFieldsValid, collapseHierarchicalDisplayName, createCustomFields, createPivotFormula, getMaxObjectId, isDateOrDatetimeField, parseDimension, toFunctionPivotValue, toNormalizedPivotValue } from "./helpers/pivot/pivot_helpers";
|
|
@@ -271,6 +272,7 @@ export declare const helpers: {
|
|
|
271
272
|
isFormula: typeof isFormula;
|
|
272
273
|
domainToColRowDomain: typeof domainToColRowDomain;
|
|
273
274
|
collapseHierarchicalDisplayName: typeof collapseHierarchicalDisplayName;
|
|
275
|
+
PositionMap: typeof PositionMap;
|
|
274
276
|
};
|
|
275
277
|
export declare const links: {
|
|
276
278
|
isMarkdownLink: typeof isMarkdownLink;
|
|
@@ -30,6 +30,7 @@ export declare class Squisher {
|
|
|
30
30
|
private alreadyAppliedNumberOffsets;
|
|
31
31
|
private previousStrings;
|
|
32
32
|
private baseFormulaWasTransformed;
|
|
33
|
+
private rangeToStringOptions;
|
|
33
34
|
private baseNumber;
|
|
34
35
|
constructor(getters: CoreGetters);
|
|
35
36
|
/** Build the result object based on a transformation. Joins the numbers into a single string, tries to do the same
|
|
@@ -15,9 +15,12 @@ export declare class PivotUIPlugin extends CoreViewPlugin {
|
|
|
15
15
|
private pivots;
|
|
16
16
|
private unusedPivotsInFormulas?;
|
|
17
17
|
private custom;
|
|
18
|
+
private pivotPositionCache;
|
|
19
|
+
private shouldInvalidateCache;
|
|
18
20
|
constructor(config: CoreViewPluginConfig);
|
|
19
21
|
beforeHandle(cmd: Command): void;
|
|
20
22
|
handle(cmd: Command): void;
|
|
23
|
+
finalize(): void;
|
|
21
24
|
/**
|
|
22
25
|
* Get the id of the first pivot in the formula at the given position. Returns undefined if there
|
|
23
26
|
* is no pivot at this position
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UID } from "../..";
|
|
1
2
|
import { Client, ClientId, ClientWithColor } from "../../types/collaborative/session";
|
|
2
3
|
import { GridRenderingContext } from "../../types/rendering";
|
|
3
4
|
import { UIPlugin, UIPluginConfig } from "../ui_plugin";
|
|
@@ -18,7 +19,7 @@ export declare class CollaborativePlugin extends UIPlugin {
|
|
|
18
19
|
* Get the list of others connected clients which are present in the same sheet
|
|
19
20
|
* and with a valid position
|
|
20
21
|
*/
|
|
21
|
-
getClientsToDisplay(): ClientToDisplay[];
|
|
22
|
+
getClientsToDisplay(sheetId: UID): ClientToDisplay[];
|
|
22
23
|
drawLayer(renderingContext: GridRenderingContext): void;
|
|
23
24
|
}
|
|
24
25
|
export {};
|