@odoo/o-spreadsheet 19.3.16 → 19.3.18

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.
@@ -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.16
5
- @date 2026-08-12T09:15:32.599Z
6
- @hash 464be42
4
+ @version 19.3.18
5
+ @date 2026-08-29T09:16:29.279Z
6
+ @hash 1f4b1ae
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -15,6 +15,7 @@ export declare class Session extends EventBus<CollaborativeEvent> {
15
15
  private transportService;
16
16
  private serverRevisionId;
17
17
  private commandSquisher;
18
+ private shouldVerifySquish;
18
19
  /**
19
20
  * Positions of the others client.
20
21
  */
@@ -49,8 +50,9 @@ export declare class Session extends EventBus<CollaborativeEvent> {
49
50
  * between all connected clients
50
51
  * @param serverRevisionId
51
52
  * @param commandSquisher used to squish and unsquish commands to reduce the size of messages sent to the server
53
+ * @param shouldVerifySquish either the commands should be unsquished and verified before being sent to the server
52
54
  */
53
- constructor(revisions: RevisionLog<Revision>, transportService: TransportService<CollaborationMessage>, serverRevisionId: UID | undefined, commandSquisher: ICommandSquisher);
55
+ constructor(revisions: RevisionLog<Revision>, transportService: TransportService<CollaborationMessage>, serverRevisionId: UID | undefined, commandSquisher: ICommandSquisher, shouldVerifySquish?: boolean);
54
56
  canApplyOptimisticUpdate(): boolean;
55
57
  /**
56
58
  * Add a new revision to the collaborative session.
@@ -17,6 +17,10 @@ export declare function strictToNumber(data: FunctionResultObject | CellValue |
17
17
  export declare function toInteger(value: FunctionResultObject | CellValue | undefined, locale: Locale): number;
18
18
  export declare function strictToInteger(value: FunctionResultObject | CellValue | undefined, locale: Locale): number;
19
19
  export declare function toString(data: FunctionResultObject | CellValue | undefined): string;
20
+ /**
21
+ * Only converts the decimal separator, ignore number format such as % or dates
22
+ */
23
+ export declare function toLocaleString(data: FunctionResultObject | CellValue | undefined, locale: Locale): string;
20
24
  /**
21
25
  * Normalize range by setting all the string in the range to lowercase and replacing
22
26
  * accent letters with plain letters
@@ -8,7 +8,7 @@ export declare const ADD: {
8
8
  export declare const CONCAT: {
9
9
  description: string;
10
10
  args: import("..").ArgDefinition[];
11
- compute: (value1: Maybe<FunctionResultObject>, value2: Maybe<FunctionResultObject>) => string;
11
+ compute: (this: import("..").EvalContext, value1: Maybe<FunctionResultObject>, value2: Maybe<FunctionResultObject>) => string;
12
12
  isExported: true;
13
13
  };
14
14
  export declare const DIVIDE: {
@@ -9,19 +9,19 @@ export declare const CHAR: {
9
9
  export declare const CLEAN: {
10
10
  description: string;
11
11
  args: import("..").ArgDefinition[];
12
- compute: (text: Maybe<FunctionResultObject>) => string;
12
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>) => string;
13
13
  isExported: true;
14
14
  };
15
15
  export declare const CONCATENATE: {
16
16
  description: string;
17
17
  args: import("..").ArgDefinition[];
18
- compute: (...datas: Arg[]) => string;
18
+ compute: (this: import("..").EvalContext, ...datas: Arg[]) => string;
19
19
  isExported: true;
20
20
  };
21
21
  export declare const EXACT: {
22
22
  description: string;
23
23
  args: import("..").ArgDefinition[];
24
- compute: (string1: Maybe<FunctionResultObject>, string2: Maybe<FunctionResultObject>) => boolean;
24
+ compute: (this: import("..").EvalContext, string1: Maybe<FunctionResultObject>, string2: Maybe<FunctionResultObject>) => boolean;
25
25
  isExported: true;
26
26
  };
27
27
  export declare const FIND: {
@@ -38,7 +38,7 @@ export declare const FORMAT_LARGE_NUMBER: {
38
38
  export declare const JOIN: {
39
39
  description: string;
40
40
  args: import("..").ArgDefinition[];
41
- compute: (delimiter: Maybe<FunctionResultObject>, ...valuesOrArrays: Arg[]) => string;
41
+ compute: (this: import("..").EvalContext, delimiter: Maybe<FunctionResultObject>, ...valuesOrArrays: Arg[]) => string;
42
42
  };
43
43
  export declare const LEFT: {
44
44
  description: string;
@@ -49,13 +49,13 @@ export declare const LEFT: {
49
49
  export declare const LEN: {
50
50
  description: string;
51
51
  args: import("..").ArgDefinition[];
52
- compute: (text: Maybe<FunctionResultObject>) => number;
52
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>) => number;
53
53
  isExported: true;
54
54
  };
55
55
  export declare const LOWER: {
56
56
  description: string;
57
57
  args: import("..").ArgDefinition[];
58
- compute: (text: Maybe<FunctionResultObject>) => string;
58
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>) => string;
59
59
  isExported: true;
60
60
  };
61
61
  export declare const MID: {
@@ -67,7 +67,7 @@ export declare const MID: {
67
67
  export declare const PROPER: {
68
68
  description: string;
69
69
  args: import("..").ArgDefinition[];
70
- compute: (text: Maybe<FunctionResultObject>) => string;
70
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>) => string;
71
71
  isExported: true;
72
72
  };
73
73
  export declare const REGEXTEST: {
@@ -117,7 +117,7 @@ export declare const SEARCH: {
117
117
  export declare const SPLIT: {
118
118
  description: string;
119
119
  args: import("..").ArgDefinition[];
120
- compute: (text: Maybe<FunctionResultObject>, delimiter: Maybe<FunctionResultObject>, splitByEach?: Maybe<FunctionResultObject>, removeEmptyText?: Maybe<FunctionResultObject>) => EvaluationError | import("..").Matrix<string>;
120
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, delimiter: Maybe<FunctionResultObject>, splitByEach?: Maybe<FunctionResultObject>, removeEmptyText?: Maybe<FunctionResultObject>) => EvaluationError | import("..").Matrix<string>;
121
121
  isExported: false;
122
122
  };
123
123
  export declare const SUBSTITUTE: {
@@ -129,7 +129,7 @@ export declare const SUBSTITUTE: {
129
129
  export declare const TEXTJOIN: {
130
130
  description: string;
131
131
  args: import("..").ArgDefinition[];
132
- compute: (delimiter: Maybe<FunctionResultObject>, ignoreEmpty?: Maybe<FunctionResultObject>, ...textsOrArrays: Arg[]) => string;
132
+ compute: (this: import("..").EvalContext, delimiter: Maybe<FunctionResultObject>, ignoreEmpty?: Maybe<FunctionResultObject>, ...textsOrArrays: Arg[]) => string;
133
133
  isExported: true;
134
134
  };
135
135
  export declare const TEXTSPLIT: {
@@ -141,13 +141,13 @@ export declare const TEXTSPLIT: {
141
141
  export declare const TRIM: {
142
142
  description: string;
143
143
  args: import("..").ArgDefinition[];
144
- compute: (text: Maybe<FunctionResultObject>) => string;
144
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>) => string;
145
145
  isExported: true;
146
146
  };
147
147
  export declare const UPPER: {
148
148
  description: string;
149
149
  args: import("..").ArgDefinition[];
150
- compute: (text: Maybe<FunctionResultObject>) => string;
150
+ compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>) => string;
151
151
  isExported: true;
152
152
  };
153
153
  export declare const TEXT: {
@@ -2,6 +2,6 @@ import { FunctionResultObject, Maybe } from "../types/misc";
2
2
  export declare const HYPERLINK: {
3
3
  description: string;
4
4
  args: import("..").ArgDefinition[];
5
- compute: (url: Maybe<FunctionResultObject>, linkLabel: Maybe<FunctionResultObject>) => string;
5
+ compute: (this: import("..").EvalContext, url: Maybe<FunctionResultObject>, linkLabel: Maybe<FunctionResultObject>) => string;
6
6
  isExported: true;
7
7
  };
@@ -32,6 +32,7 @@ export declare class Squisher {
32
32
  private baseFormulaWasTransformed;
33
33
  private rangeToStringOptions;
34
34
  private baseNumber;
35
+ private baseNumberFormat;
35
36
  constructor(getters: CoreGetters);
36
37
  /** Build the result object based on a transformation. Joins the numbers into a single string, tries to do the same
37
38
  * with references (unless they contain a sheet name that contains the separator). */
@@ -40,6 +41,8 @@ export declare class Squisher {
40
41
  resetBaseTo(formula: CompiledFormula): void;
41
42
  /** Reset the base formula to undefined, resetting all offsets */
42
43
  resetBaseFormula(): void;
44
+ /** Reset the base number literal chain, so the next literal number cannot be squished as an offset of it */
45
+ resetBaseNumber(): void;
43
46
  /**
44
47
  * Takes a cell and squish their formulas against the previous one (in the previous call).
45
48
  * We should call this method for each cell in the sheet, in order from top to bottom, then from left to right (all cells of a columns, for each columns left to right).
@@ -16,6 +16,7 @@ export interface RemoteRevisionMessage extends AbstractMessage {
16
16
  }
17
17
  export interface RemoteRevisionsSquishedMessage extends Omit<RemoteRevisionMessage, "commands"> {
18
18
  commands: (CoreCommand | SquishedCoreCommand)[];
19
+ squishedFailed?: boolean;
19
20
  }
20
21
  export interface RevisionUndoneMessage extends AbstractMessage {
21
22
  type: "REVISION_UNDONE";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.3.16",
3
+ "version": "19.3.18",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",