@odoo/o-spreadsheet 19.4.5 → 19.4.7

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.4.5
5
- @date 2026-07-30T06:55:40.786Z
6
- @hash 9308e17
4
+ @version 19.4.7
5
+ @date 2026-08-12T09:16:41.925Z
6
+ @hash 65642fe
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;
@@ -1,5 +1,5 @@
1
1
  import { Component } from "../../../owl3_compatibility_layer";
2
- import { ResizeDirection } from "../../../types/figure";
2
+ import { FigureUI, ResizeDirection } from "../../../types/figure";
3
3
  import { CSSProperties } from "../../../types/misc";
4
4
  import { Rect } from "../../../types/rendering";
5
5
  import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
@@ -11,7 +11,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
11
11
  MenuPopover: typeof MenuPopover;
12
12
  };
13
13
  protected props: import("@odoo/owl").PropsWithDefaults<{
14
- figureUI: import("../../..").FigureUI;
14
+ figureUI: FigureUI;
15
15
  style: string;
16
16
  class: string;
17
17
  onMouseDown: (ev: MouseEvent) => void;
@@ -32,7 +32,7 @@ export declare class FigureComponent extends Component<SpreadsheetChildEnv> {
32
32
  onMouseDown(ev: MouseEvent): void;
33
33
  onClick(ev: MouseEvent): void;
34
34
  onKeyDown(ev: KeyboardEvent): void;
35
- private postionInBoundary;
35
+ private positionInBoundary;
36
36
  onContextMenu(ev: MouseEvent): void;
37
37
  openContextMenu(anchorRect: Rect): void;
38
38
  editWrapperStyle(properties: CSSProperties): void;
@@ -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>;
@@ -219,6 +219,7 @@ export declare const registries: {
219
219
  getKeys(): string[];
220
220
  remove(key: string): void;
221
221
  };
222
+ NonSquishableFunctionRegistry: import(".").Registry<string>;
222
223
  };
223
224
  /** Registries Population */
224
225
  import "./clipboard_handlers/clipboard_handler_registrations";
@@ -230,6 +231,7 @@ import "./registries/chart_types";
230
231
  import "./registries/interactive_icon_on_cell_registry";
231
232
  import { Composer } from "./components/composer/composer/composer";
232
233
  import { StandaloneComposer } from "./components/composer/standalone_composer/standalone_composer";
234
+ import { CarouselFigure } from "./components/figures/figure_carousel/figure_carousel";
233
235
  import { Select } from "./components/select/select";
234
236
  import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
235
237
  import { TopBar } from "./components/top_bar/top_bar";
@@ -385,6 +387,7 @@ export declare const components: {
385
387
  NumberInput: typeof NumberInput;
386
388
  TopBar: typeof TopBar;
387
389
  Composer: typeof Composer;
390
+ CarouselFigure: typeof CarouselFigure;
388
391
  };
389
392
  export declare const hooks: {
390
393
  useDragAndDropListItems: typeof useDragAndDropListItems;
@@ -422,7 +425,7 @@ export declare const stores: {
422
425
  };
423
426
  export { getCaretDownSvg, getCaretUpSvg } from "./components/icons/icons";
424
427
  export { createAutocompleteArgumentsProvider } from "./functions/autocomplete_arguments_provider";
425
- export type { FunctionRegistry } from "./functions/function_registry";
428
+ export type { FunctionRegistry, NonSquishableFunctionRegistry, } from "./functions/function_registry";
426
429
  export { categories } from "./functions/function_registry_population";
427
430
  export type { StoreConstructor, StoreParams } from "./types/store_engine";
428
431
  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, resets the base formula to this one and returns the full formula string
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 "="
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.4.5",
3
+ "version": "19.4.7",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",
@@ -141,7 +141,7 @@
141
141
  "xmlSelfClosingSpace": false
142
142
  },
143
143
  "dependencies": {
144
- "@odoo/owl": "3.0.0-alpha.43",
144
+ "@odoo/owl": "3.0.0-alpha.45",
145
145
  "bootstrap": "5.3.3",
146
146
  "font-awesome": "^4.7.0",
147
147
  "rbush": "^3.0.1"