@odoo/o-spreadsheet 19.5.0-alpha.16 → 19.5.0-alpha.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.5.0-alpha.16
5
- @date 2026-09-04T07:53:24.976Z
6
- @hash bb7357a
4
+ @version 19.5.0-alpha.18
5
+ @date 2026-09-07T12:43:30.682Z
6
+ @hash 54a0597
7
7
  -->
8
8
  <odoo>
9
9
  <t t-name="o-spreadsheet-ValidationMessages">
@@ -7571,7 +7571,6 @@
7571
7571
  maxHeight="this.cellPopover.Component.size and this.cellPopover.Component.size.maxHeight"
7572
7572
  maxWidth="this.cellPopover.Component.size and this.cellPopover.Component.size.maxWidth"
7573
7573
  anchorRect="this.cellPopover.anchorRect"
7574
- containerRect="this.env.getPopoverContainerRect()"
7575
7574
  onMouseWheel="this.props.onMouseWheel"
7576
7575
  class="'o-popover-grid-index'">
7577
7576
  <t
@@ -10,7 +10,6 @@ export declare class Popover extends Component<SpreadsheetChildEnv> {
10
10
  onMouseWheel: () => void;
11
11
  onPopoverHidden: () => void;
12
12
  onPopoverMoved: () => void;
13
- containerRect?: {} | undefined;
14
13
  maxWidth?: import("../..").Pixel | undefined;
15
14
  maxHeight?: import("../..").Pixel | undefined;
16
15
  zIndex?: number | undefined;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from "@odoo/owl";
2
+ import { Rect } from "../../types/rendering";
3
+ export declare class PopoverContainerPlugin extends Plugin {
4
+ getContainerRect: () => Rect;
5
+ }
@@ -37,7 +37,6 @@ export declare class ChartTypePickerPopover extends Component<SpreadsheetChildEn
37
37
  zIndex?: number | undefined;
38
38
  class?: string | undefined;
39
39
  anchorRect: import("../../../..").Rect;
40
- containerRect?: {} | undefined;
41
40
  positioning?: "top-right" | "bottom-left" | undefined;
42
41
  verticalOffset?: number | undefined;
43
42
  onMouseWheel?: (() => void) | undefined;
@@ -36,7 +36,6 @@ export declare class TableStylesPopover extends Component<SpreadsheetChildEnv> {
36
36
  zIndex?: number | undefined;
37
37
  class?: string | undefined;
38
38
  anchorRect: import("../../..").Rect;
39
- containerRect?: {} | undefined;
40
39
  positioning?: "top-right" | "bottom-left" | undefined;
41
40
  verticalOffset?: number | undefined;
42
41
  onMouseWheel?: (() => void) | undefined;
@@ -237,6 +237,7 @@ import { Composer } from "./components/composer/composer/composer";
237
237
  import { StandaloneComposer } from "./components/composer/standalone_composer/standalone_composer";
238
238
  import { CarouselFigure } from "./components/figures/figure_carousel/figure_carousel";
239
239
  import { getBoundingRectWithMargins, hasInteractiveElementInEventTree, isMobileOS } from "./components/helpers/dom_helpers";
240
+ import { PopoverContainerPlugin } from "./components/popover/popover_container_owl_plugin";
240
241
  import { Select } from "./components/select/select";
241
242
  import { ChartRangeDataSourceComponent } from "./components/side_panel/chart/building_blocks/range_data_source/range_data_source";
242
243
  import { CalendarButton } from "./components/side_panel/criterion_form/calendar_button/calendar_button";
@@ -446,6 +447,9 @@ export declare const stores: {
446
447
  ZoomStore: typeof ZoomStore;
447
448
  globalStores: import(".").Registry<import(".").StoreConstructor<SpreadsheetStore, any[]>>;
448
449
  };
450
+ export declare const owlPlugins: {
451
+ PopoverContainerPlugin: typeof PopoverContainerPlugin;
452
+ };
449
453
  export { getCaretDownSvg, getCaretUpSvg } from "./components/icons/icons";
450
454
  export { createAutocompleteArgumentsProvider } from "./functions/autocomplete_arguments_provider";
451
455
  export type { FunctionRegistry, NonSquishableFunctionRegistry, } from "./functions/function_registry";
@@ -7,7 +7,7 @@ export declare class RangeAdapterPlugin implements CommandHandler<CoreCommand> {
7
7
  private providers;
8
8
  private isAdaptingRanges;
9
9
  constructor(getters: CoreGetters);
10
- static getters: readonly ["copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
10
+ static getters: readonly ["copyFormulaStringForSheet", "extendRange", "getRangeString", "getRangeFromSheetXC", "clipRangesToSheet", "clipRangeToSheet", "createAdaptedRanges", "getRangeData", "getRangeDataFromXc", "getRangeDataFromZone", "getRangeFromRangeData", "getRangeFromZone", "getRangesUnion", "recomputeRanges", "isRangeValid", "removeRangesSheetPrefix"];
11
11
  allowDispatch(cmd: CoreCommand): CommandResult;
12
12
  beforeHandle(command: Command): void;
13
13
  handle(cmd: CoreCommand): void;
@@ -22,6 +22,8 @@ export declare class RangeAdapterPlugin implements CommandHandler<CoreCommand> {
22
22
  * all ranges
23
23
  */
24
24
  addRangeProvider(provider: RangeProvider["adaptRanges"]): void;
25
+ clipRangeToSheet(range: Range): Range | undefined;
26
+ clipRangesToSheet(ranges: Range[]): Range[];
25
27
  createAdaptedRanges(ranges: Range[], offsetX: number, offsetY: number, sheetId: UID): Range[];
26
28
  /**
27
29
  * Remove the sheet name prefix if a range is part of the given sheet.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odoo/o-spreadsheet",
3
- "version": "19.5.0-alpha.16",
3
+ "version": "19.5.0-alpha.18",
4
4
  "description": "A spreadsheet component",
5
5
  "type": "module",
6
6
  "main": "dist/o_spreadsheet.cjs",