@odoo/o-spreadsheet 17.0.82 → 17.0.83

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.
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 17.0.82
6
- * @date 2025-12-26T10:17:37.110Z
7
- * @hash df7c781
5
+ * @version 17.0.83
6
+ * @date 2026-01-07T16:21:02.501Z
7
+ * @hash bd315c8
8
8
  */
9
9
 
10
10
  'use strict';
@@ -29915,7 +29915,6 @@ class Grid extends owl.Component {
29915
29915
  owl.useChildSubEnv({ getPopoverContainerRect: () => this.getGridRect() });
29916
29916
  owl.useExternalListener(document.body, "cut", this.copy.bind(this, true));
29917
29917
  owl.useExternalListener(document.body, "copy", this.copy.bind(this, false));
29918
- owl.useExternalListener(window, "click", this.onExternalClick, { capture: true });
29919
29918
  owl.useExternalListener(document.body, "paste", this.paste);
29920
29919
  owl.onMounted(() => this.focusDefaultElement());
29921
29920
  this.props.exposeFocus(() => this.focusDefaultElement());
@@ -30482,12 +30481,6 @@ class Grid extends owl.Component {
30482
30481
  }
30483
30482
  }
30484
30483
  }
30485
- onExternalClick(ev) {
30486
- if (isChildEvent(this.gridEl, ev) || ev.target?.closest(".o-popover")) {
30487
- return;
30488
- }
30489
- this.onClosePopover();
30490
- }
30491
30484
  }
30492
30485
  Grid.props = {
30493
30486
  sidePanelIsOpen: Boolean,
@@ -53078,13 +53071,12 @@ class SpreadsheetDashboard extends owl.Component {
53078
53071
  onMouseWheel;
53079
53072
  canvasPosition;
53080
53073
  hoveredCell;
53081
- gridRef = owl.useRef("grid");
53082
53074
  setup() {
53083
- this.canvasPosition = useAbsoluteBoundingRect(this.gridRef);
53075
+ const gridRef = owl.useRef("grid");
53076
+ this.canvasPosition = useAbsoluteBoundingRect(gridRef);
53084
53077
  this.hoveredCell = owl.useState({ col: undefined, row: undefined });
53085
53078
  owl.useChildSubEnv({ getPopoverContainerRect: () => this.getGridRect() });
53086
53079
  useGridDrawing("canvas", this.env.model, () => this.env.model.getters.getSheetViewDimension());
53087
- owl.useExternalListener(window, "click", this.onExternalClick, { capture: true });
53088
53080
  this.onMouseWheel = useWheelHandler((deltaX, deltaY) => {
53089
53081
  this.moveCanvas(deltaX, deltaY);
53090
53082
  this.hoveredCell.col = undefined;
@@ -53181,15 +53173,6 @@ class SpreadsheetDashboard extends owl.Component {
53181
53173
  getGridRect() {
53182
53174
  return { ...this.canvasPosition, ...this.env.model.getters.getSheetViewDimensionWithHeaders() };
53183
53175
  }
53184
- onExternalClick(ev) {
53185
- const el = this.gridRef.el;
53186
- if ((el && isChildEvent(el, ev)) || ev.target?.closest(".o-popover")) {
53187
- return;
53188
- }
53189
- if (this.env.model.getters.hasOpenedPopover()) {
53190
- this.onClosePopover();
53191
- }
53192
- }
53193
53176
  }
53194
53177
  SpreadsheetDashboard.props = {};
53195
53178
 
@@ -58556,6 +58539,6 @@ exports.setTranslationMethod = setTranslationMethod;
58556
58539
  exports.tokenize = tokenize;
58557
58540
 
58558
58541
 
58559
- __info__.version = "17.0.82";
58560
- __info__.date = "2025-12-26T10:17:37.110Z";
58561
- __info__.hash = "df7c781";
58542
+ __info__.version = "17.0.83";
58543
+ __info__.date = "2026-01-07T16:21:02.501Z";
58544
+ __info__.hash = "bd315c8";
@@ -6695,7 +6695,6 @@ declare class SpreadsheetDashboard extends Component<Props$h, SpreadsheetChildEn
6695
6695
  onMouseWheel: (ev: WheelEvent) => void;
6696
6696
  canvasPosition: DOMCoordinates;
6697
6697
  hoveredCell: Partial<Position$1>;
6698
- private gridRef;
6699
6698
  setup(): void;
6700
6699
  onCellHovered({ col, row }: {
6701
6700
  col: any;
@@ -6717,7 +6716,6 @@ declare class SpreadsheetDashboard extends Component<Props$h, SpreadsheetChildEn
6717
6716
  onGridResized({ height, width }: DOMDimension): void;
6718
6717
  private moveCanvas;
6719
6718
  private getGridRect;
6720
- private onExternalClick;
6721
6719
  }
6722
6720
 
6723
6721
  interface Props$g {
@@ -7802,7 +7800,6 @@ declare class Grid extends Component<Props$1, SpreadsheetChildEnv> {
7802
7800
  private processHeaderGroupingEventOnHeaders;
7803
7801
  private processHeaderGroupingEventOnWholeSheet;
7804
7802
  private processHeaderGroupingEventOnGrid;
7805
- private onExternalClick;
7806
7803
  }
7807
7804
 
7808
7805
  type Direction = "horizontal" | "vertical";
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 17.0.82
6
- * @date 2025-12-26T10:17:37.110Z
7
- * @hash df7c781
5
+ * @version 17.0.83
6
+ * @date 2026-01-07T16:21:02.501Z
7
+ * @hash bd315c8
8
8
  */
9
9
 
10
10
  import { Component, useRef, onMounted, useEffect, onWillPatch, useState, onWillUpdateProps, onPatched, useComponent, useExternalListener, onWillUnmount, onWillStart, xml, useChildSubEnv, useSubEnv, markRaw } from '@odoo/owl';
@@ -29913,7 +29913,6 @@ class Grid extends Component {
29913
29913
  useChildSubEnv({ getPopoverContainerRect: () => this.getGridRect() });
29914
29914
  useExternalListener(document.body, "cut", this.copy.bind(this, true));
29915
29915
  useExternalListener(document.body, "copy", this.copy.bind(this, false));
29916
- useExternalListener(window, "click", this.onExternalClick, { capture: true });
29917
29916
  useExternalListener(document.body, "paste", this.paste);
29918
29917
  onMounted(() => this.focusDefaultElement());
29919
29918
  this.props.exposeFocus(() => this.focusDefaultElement());
@@ -30480,12 +30479,6 @@ class Grid extends Component {
30480
30479
  }
30481
30480
  }
30482
30481
  }
30483
- onExternalClick(ev) {
30484
- if (isChildEvent(this.gridEl, ev) || ev.target?.closest(".o-popover")) {
30485
- return;
30486
- }
30487
- this.onClosePopover();
30488
- }
30489
30482
  }
30490
30483
  Grid.props = {
30491
30484
  sidePanelIsOpen: Boolean,
@@ -53076,13 +53069,12 @@ class SpreadsheetDashboard extends Component {
53076
53069
  onMouseWheel;
53077
53070
  canvasPosition;
53078
53071
  hoveredCell;
53079
- gridRef = useRef("grid");
53080
53072
  setup() {
53081
- this.canvasPosition = useAbsoluteBoundingRect(this.gridRef);
53073
+ const gridRef = useRef("grid");
53074
+ this.canvasPosition = useAbsoluteBoundingRect(gridRef);
53082
53075
  this.hoveredCell = useState({ col: undefined, row: undefined });
53083
53076
  useChildSubEnv({ getPopoverContainerRect: () => this.getGridRect() });
53084
53077
  useGridDrawing("canvas", this.env.model, () => this.env.model.getters.getSheetViewDimension());
53085
- useExternalListener(window, "click", this.onExternalClick, { capture: true });
53086
53078
  this.onMouseWheel = useWheelHandler((deltaX, deltaY) => {
53087
53079
  this.moveCanvas(deltaX, deltaY);
53088
53080
  this.hoveredCell.col = undefined;
@@ -53179,15 +53171,6 @@ class SpreadsheetDashboard extends Component {
53179
53171
  getGridRect() {
53180
53172
  return { ...this.canvasPosition, ...this.env.model.getters.getSheetViewDimensionWithHeaders() };
53181
53173
  }
53182
- onExternalClick(ev) {
53183
- const el = this.gridRef.el;
53184
- if ((el && isChildEvent(el, ev)) || ev.target?.closest(".o-popover")) {
53185
- return;
53186
- }
53187
- if (this.env.model.getters.hasOpenedPopover()) {
53188
- this.onClosePopover();
53189
- }
53190
- }
53191
53174
  }
53192
53175
  SpreadsheetDashboard.props = {};
53193
53176
 
@@ -58519,6 +58502,6 @@ const constants = {
58519
58502
  export { AbstractChart, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, tokenize };
58520
58503
 
58521
58504
 
58522
- __info__.version = "17.0.82";
58523
- __info__.date = "2025-12-26T10:17:37.110Z";
58524
- __info__.hash = "df7c781";
58505
+ __info__.version = "17.0.83";
58506
+ __info__.date = "2026-01-07T16:21:02.501Z";
58507
+ __info__.hash = "bd315c8";
@@ -2,9 +2,9 @@
2
2
  /**
3
3
  * This file is generated by o-spreadsheet build tools. Do not edit it.
4
4
  * @see https://github.com/odoo/o-spreadsheet
5
- * @version 17.0.82
6
- * @date 2025-12-26T10:17:37.110Z
7
- * @hash df7c781
5
+ * @version 17.0.83
6
+ * @date 2026-01-07T16:21:02.501Z
7
+ * @hash bd315c8
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -29914,7 +29914,6 @@
29914
29914
  owl.useChildSubEnv({ getPopoverContainerRect: () => this.getGridRect() });
29915
29915
  owl.useExternalListener(document.body, "cut", this.copy.bind(this, true));
29916
29916
  owl.useExternalListener(document.body, "copy", this.copy.bind(this, false));
29917
- owl.useExternalListener(window, "click", this.onExternalClick, { capture: true });
29918
29917
  owl.useExternalListener(document.body, "paste", this.paste);
29919
29918
  owl.onMounted(() => this.focusDefaultElement());
29920
29919
  this.props.exposeFocus(() => this.focusDefaultElement());
@@ -30481,12 +30480,6 @@
30481
30480
  }
30482
30481
  }
30483
30482
  }
30484
- onExternalClick(ev) {
30485
- if (isChildEvent(this.gridEl, ev) || ev.target?.closest(".o-popover")) {
30486
- return;
30487
- }
30488
- this.onClosePopover();
30489
- }
30490
30483
  }
30491
30484
  Grid.props = {
30492
30485
  sidePanelIsOpen: Boolean,
@@ -53077,13 +53070,12 @@
53077
53070
  onMouseWheel;
53078
53071
  canvasPosition;
53079
53072
  hoveredCell;
53080
- gridRef = owl.useRef("grid");
53081
53073
  setup() {
53082
- this.canvasPosition = useAbsoluteBoundingRect(this.gridRef);
53074
+ const gridRef = owl.useRef("grid");
53075
+ this.canvasPosition = useAbsoluteBoundingRect(gridRef);
53083
53076
  this.hoveredCell = owl.useState({ col: undefined, row: undefined });
53084
53077
  owl.useChildSubEnv({ getPopoverContainerRect: () => this.getGridRect() });
53085
53078
  useGridDrawing("canvas", this.env.model, () => this.env.model.getters.getSheetViewDimension());
53086
- owl.useExternalListener(window, "click", this.onExternalClick, { capture: true });
53087
53079
  this.onMouseWheel = useWheelHandler((deltaX, deltaY) => {
53088
53080
  this.moveCanvas(deltaX, deltaY);
53089
53081
  this.hoveredCell.col = undefined;
@@ -53180,15 +53172,6 @@
53180
53172
  getGridRect() {
53181
53173
  return { ...this.canvasPosition, ...this.env.model.getters.getSheetViewDimensionWithHeaders() };
53182
53174
  }
53183
- onExternalClick(ev) {
53184
- const el = this.gridRef.el;
53185
- if ((el && isChildEvent(el, ev)) || ev.target?.closest(".o-popover")) {
53186
- return;
53187
- }
53188
- if (this.env.model.getters.hasOpenedPopover()) {
53189
- this.onClosePopover();
53190
- }
53191
- }
53192
53175
  }
53193
53176
  SpreadsheetDashboard.props = {};
53194
53177
 
@@ -58555,9 +58538,9 @@
58555
58538
  exports.tokenize = tokenize;
58556
58539
 
58557
58540
 
58558
- __info__.version = "17.0.82";
58559
- __info__.date = "2025-12-26T10:17:37.110Z";
58560
- __info__.hash = "df7c781";
58541
+ __info__.version = "17.0.83";
58542
+ __info__.date = "2026-01-07T16:21:02.501Z";
58543
+ __info__.hash = "bd315c8";
58561
58544
 
58562
58545
 
58563
58546
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);