@odoo/o-spreadsheet 19.4.10 → 19.4.11

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.10
5
- @date 2026-08-29T09:17:28.397Z
6
- @hash d7a0f18
4
+ @version 19.4.11
5
+ @date 2026-09-04T07:50:40.356Z
6
+ @hash 7660254
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -8010,7 +8010,7 @@
8010
8010
  </t>
8011
8011
  <t t-foreach="this.getMenuItems()" t-as="item" t-key="item.id">
8012
8012
  <div
8013
- class="o-chart-menu-item border-0 lh-1 p-1 d-flex align-items-center justify-content-center rounded"
8013
+ class="o-chart-menu-item lh-1 p-1 d-flex align-items-center justify-content-center rounded"
8014
8014
  t-att-title="item.label"
8015
8015
  t-on-click="item.onClick"
8016
8016
  t-att-data-id="item.id">
@@ -8018,8 +8018,8 @@
8018
8018
  </div>
8019
8019
  </t>
8020
8020
  <t t-if="this.isMenuAvailable()">
8021
- <button
8022
- class="o-chart-menu-item btn text-muted lh-1 p-1 fa fa-ellipsis-v"
8021
+ <div
8022
+ class="o-chart-menu-item lh-1 p-1 d-flex align-items-center justify-content-center rounded fa fa-ellipsis-v"
8023
8023
  t-on-click="this.openContextMenu"
8024
8024
  />
8025
8025
  </t>
@@ -12,6 +12,7 @@ export declare const FROZEN_PANE_BORDER_COLOR = "#DADFE8";
12
12
  export declare const COMPOSER_ASSISTANT_COLOR = "light-dark(#9B359B, #B972A6)";
13
13
  export declare const COLOR_TRANSPARENT = "#00000000";
14
14
  export declare const TABLE_HOVER_BACKGROUND_COLOR = "#017E8414";
15
+ export declare const DEFAULT_CHART_BACKGROUND_COLOR = "#FFFFFF";
15
16
  export declare const CHART_WATERFALL_POSITIVE_COLOR = "#4EA7F2";
16
17
  export declare const CHART_WATERFALL_NEGATIVE_COLOR = "#EA6175";
17
18
  export declare const CHART_WATERFALL_SUBTOTAL_COLOR = "#AAAAAA";
@@ -19,6 +19,10 @@ export declare function computeTextDimension(context: Canvas2DContext, text: str
19
19
  width: number;
20
20
  height: number;
21
21
  };
22
+ export declare function computeCachedTextDimension(context: Canvas2DContext, text: string, font: string): {
23
+ width: number;
24
+ height: number;
25
+ };
22
26
  export declare function fontSizeInPixels(fontSize: number): number;
23
27
  export declare function computeTextFont(style: Style, fontUnit?: "px" | "pt"): string;
24
28
  export declare function computeTextFontSizeInPixels(style?: Style): number;
@@ -9,7 +9,7 @@ interface CarouselState {
9
9
  export declare class CarouselPlugin extends CorePlugin<CarouselState> implements CarouselState {
10
10
  static getters: readonly ["getCarousel", "doesCarouselExist"];
11
11
  readonly carousels: Record<UID, Record<UID, Carousel | undefined> | undefined>;
12
- allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidFigureId | CommandResult.DuplicatedFigureId;
12
+ allowDispatch(cmd: CoreCommand): CommandResult.Success | CommandResult.InvalidFigureId | CommandResult.DuplicatedFigureId | CommandResult.ChartDoesNotExist;
13
13
  handle(cmd: CoreCommand): void;
14
14
  doesCarouselExist(figureId: UID): boolean;
15
15
  getCarousel(figureId: UID): Carousel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.4.10",
3
+ "version": "19.4.11",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",