@odoo/o-spreadsheet 17.3.0 → 17.3.1

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.
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.3.0
7
- * @date 2024-05-31T14:21:26.547Z
8
- * @hash 271202e
6
+ * @version 17.3.1
7
+ * @date 2024-06-03T15:28:03.284Z
8
+ * @hash 605d098
9
9
  */
10
10
 
11
11
  'use strict';
@@ -8961,7 +8961,7 @@ class NotificationStore {
8961
8961
  "askConfirmation",
8962
8962
  "updateNotificationCallbacks",
8963
8963
  ];
8964
- notifyUser = (notification) => window.alert(notification);
8964
+ notifyUser = (notification) => window.alert(notification.text);
8965
8965
  askConfirmation = (content, confirm, cancel) => {
8966
8966
  if (window.confirm(content)) {
8967
8967
  confirm();
@@ -35753,7 +35753,14 @@ pivotRegistry.add("SPREADSHEET", {
35753
35753
 
35754
35754
  class PivotSidePanelStore extends SpreadsheetStore {
35755
35755
  pivotId;
35756
- mutators = ["applyUpdate", "renamePivot", "update"];
35756
+ mutators = [
35757
+ "reset",
35758
+ "deferUpdates",
35759
+ "applyUpdate",
35760
+ "discardPendingUpdate",
35761
+ "renamePivot",
35762
+ "update",
35763
+ ];
35757
35764
  updatesAreDeferred = true;
35758
35765
  draft = null;
35759
35766
  constructor(get, pivotId) {
@@ -38790,6 +38797,7 @@ class FilterIcon extends owl.Component {
38790
38797
 
38791
38798
  class FilterIconsOverlay extends owl.Component {
38792
38799
  static template = "o-spreadsheet-FilterIconsOverlay";
38800
+ static props = {};
38793
38801
  static components = {
38794
38802
  GridCellIcon,
38795
38803
  FilterIcon,
@@ -62782,7 +62790,9 @@ class Spreadsheet extends owl.Component {
62782
62790
  if (nextProps.model !== this.props.model) {
62783
62791
  throw new Error("Changing the props model is not supported at the moment.");
62784
62792
  }
62785
- if (!deepEquals(nextProps, this.props)) {
62793
+ if (nextProps.notifyUser !== this.props.notifyUser ||
62794
+ nextProps.askConfirmation !== this.props.askConfirmation ||
62795
+ nextProps.raiseError !== this.props.raiseError) {
62786
62796
  this.notificationStore.updateNotificationCallbacks({ ...nextProps });
62787
62797
  }
62788
62798
  });
@@ -66979,6 +66989,6 @@ exports.tokenColors = tokenColors;
66979
66989
  exports.tokenize = tokenize;
66980
66990
 
66981
66991
 
66982
- __info__.version = "17.3.0";
66983
- __info__.date = "2024-05-31T14:21:26.547Z";
66984
- __info__.hash = "271202e";
66992
+ __info__.version = "17.3.1";
66993
+ __info__.date = "2024-06-03T15:28:03.284Z";
66994
+ __info__.hash = "605d098";
@@ -8270,6 +8270,7 @@ declare class FilterIcon extends Component<Props$v, SpreadsheetChildEnv> {
8270
8270
 
8271
8271
  declare class FilterIconsOverlay extends Component<{}, SpreadsheetChildEnv> {
8272
8272
  static template: string;
8273
+ static props: {};
8273
8274
  static components: {
8274
8275
  GridCellIcon: typeof GridCellIcon;
8275
8276
  FilterIcon: typeof FilterIcon;
@@ -9162,7 +9163,7 @@ declare class PivotLayoutConfigurator extends Component<Props$c, SpreadsheetChil
9162
9163
 
9163
9164
  declare class PivotSidePanelStore extends SpreadsheetStore {
9164
9165
  private pivotId;
9165
- mutators: readonly ["applyUpdate", "renamePivot", "update"];
9166
+ mutators: readonly ["reset", "deferUpdates", "applyUpdate", "discardPendingUpdate", "renamePivot", "update"];
9166
9167
  private updatesAreDeferred;
9167
9168
  private draft;
9168
9169
  constructor(get: Get, pivotId: UID);
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.3.0
7
- * @date 2024-05-31T14:21:26.547Z
8
- * @hash 271202e
6
+ * @version 17.3.1
7
+ * @date 2024-06-03T15:28:03.284Z
8
+ * @hash 605d098
9
9
  */
10
10
 
11
11
  import { useEnv, useSubEnv, onWillUnmount, useComponent, status, Component, useRef, onMounted, useEffect, useState, onPatched, onWillPatch, onWillUpdateProps, useExternalListener, onWillStart, xml, useChildSubEnv, markRaw, toRaw } from '@odoo/owl';
@@ -8959,7 +8959,7 @@ class NotificationStore {
8959
8959
  "askConfirmation",
8960
8960
  "updateNotificationCallbacks",
8961
8961
  ];
8962
- notifyUser = (notification) => window.alert(notification);
8962
+ notifyUser = (notification) => window.alert(notification.text);
8963
8963
  askConfirmation = (content, confirm, cancel) => {
8964
8964
  if (window.confirm(content)) {
8965
8965
  confirm();
@@ -35751,7 +35751,14 @@ pivotRegistry.add("SPREADSHEET", {
35751
35751
 
35752
35752
  class PivotSidePanelStore extends SpreadsheetStore {
35753
35753
  pivotId;
35754
- mutators = ["applyUpdate", "renamePivot", "update"];
35754
+ mutators = [
35755
+ "reset",
35756
+ "deferUpdates",
35757
+ "applyUpdate",
35758
+ "discardPendingUpdate",
35759
+ "renamePivot",
35760
+ "update",
35761
+ ];
35755
35762
  updatesAreDeferred = true;
35756
35763
  draft = null;
35757
35764
  constructor(get, pivotId) {
@@ -38788,6 +38795,7 @@ class FilterIcon extends Component {
38788
38795
 
38789
38796
  class FilterIconsOverlay extends Component {
38790
38797
  static template = "o-spreadsheet-FilterIconsOverlay";
38798
+ static props = {};
38791
38799
  static components = {
38792
38800
  GridCellIcon,
38793
38801
  FilterIcon,
@@ -62780,7 +62788,9 @@ class Spreadsheet extends Component {
62780
62788
  if (nextProps.model !== this.props.model) {
62781
62789
  throw new Error("Changing the props model is not supported at the moment.");
62782
62790
  }
62783
- if (!deepEquals(nextProps, this.props)) {
62791
+ if (nextProps.notifyUser !== this.props.notifyUser ||
62792
+ nextProps.askConfirmation !== this.props.askConfirmation ||
62793
+ nextProps.raiseError !== this.props.raiseError) {
62784
62794
  this.notificationStore.updateNotificationCallbacks({ ...nextProps });
62785
62795
  }
62786
62796
  });
@@ -66934,6 +66944,6 @@ const constants = {
66934
66944
  export { AbstractCellClipboardHandler, AbstractChart, AbstractFigureClipboardHandler, CellErrorType, CommandResult, CorePlugin, DispatchResult, EvaluationError, Model, PivotRuntimeDefinition, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, SpreadsheetPivotTable, UIPlugin, __info__, addFunction, addRenderingLayer, astToFormula, compile, compileTokens, components, constants, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, hooks, invalidateCFEvaluationCommands, invalidateDependenciesCommands, invalidateEvaluationCommands, iterateAstNodes, links, load, parse, parseTokens, readonlyAllowedCommands, registries, setDefaultSheetViewSize, setTranslationMethod, stores, tokenColors, tokenize };
66935
66945
 
66936
66946
 
66937
- __info__.version = "17.3.0";
66938
- __info__.date = "2024-05-31T14:21:26.547Z";
66939
- __info__.hash = "271202e";
66947
+ __info__.version = "17.3.1";
66948
+ __info__.date = "2024-06-03T15:28:03.284Z";
66949
+ __info__.hash = "605d098";
@@ -3,9 +3,9 @@
3
3
  /**
4
4
  * This file is generated by o-spreadsheet build tools. Do not edit it.
5
5
  * @see https://github.com/odoo/o-spreadsheet
6
- * @version 17.3.0
7
- * @date 2024-05-31T14:21:26.547Z
8
- * @hash 271202e
6
+ * @version 17.3.1
7
+ * @date 2024-06-03T15:28:03.284Z
8
+ * @hash 605d098
9
9
  */
10
10
 
11
11
  (function (exports, owl) {
@@ -8960,7 +8960,7 @@ stores.inject(MyMetaStore, storeInstance);
8960
8960
  "askConfirmation",
8961
8961
  "updateNotificationCallbacks",
8962
8962
  ];
8963
- notifyUser = (notification) => window.alert(notification);
8963
+ notifyUser = (notification) => window.alert(notification.text);
8964
8964
  askConfirmation = (content, confirm, cancel) => {
8965
8965
  if (window.confirm(content)) {
8966
8966
  confirm();
@@ -35752,7 +35752,14 @@ stores.inject(MyMetaStore, storeInstance);
35752
35752
 
35753
35753
  class PivotSidePanelStore extends SpreadsheetStore {
35754
35754
  pivotId;
35755
- mutators = ["applyUpdate", "renamePivot", "update"];
35755
+ mutators = [
35756
+ "reset",
35757
+ "deferUpdates",
35758
+ "applyUpdate",
35759
+ "discardPendingUpdate",
35760
+ "renamePivot",
35761
+ "update",
35762
+ ];
35756
35763
  updatesAreDeferred = true;
35757
35764
  draft = null;
35758
35765
  constructor(get, pivotId) {
@@ -38789,6 +38796,7 @@ stores.inject(MyMetaStore, storeInstance);
38789
38796
 
38790
38797
  class FilterIconsOverlay extends owl.Component {
38791
38798
  static template = "o-spreadsheet-FilterIconsOverlay";
38799
+ static props = {};
38792
38800
  static components = {
38793
38801
  GridCellIcon,
38794
38802
  FilterIcon,
@@ -62781,7 +62789,9 @@ stores.inject(MyMetaStore, storeInstance);
62781
62789
  if (nextProps.model !== this.props.model) {
62782
62790
  throw new Error("Changing the props model is not supported at the moment.");
62783
62791
  }
62784
- if (!deepEquals(nextProps, this.props)) {
62792
+ if (nextProps.notifyUser !== this.props.notifyUser ||
62793
+ nextProps.askConfirmation !== this.props.askConfirmation ||
62794
+ nextProps.raiseError !== this.props.raiseError) {
62785
62795
  this.notificationStore.updateNotificationCallbacks({ ...nextProps });
62786
62796
  }
62787
62797
  });
@@ -66978,9 +66988,9 @@ stores.inject(MyMetaStore, storeInstance);
66978
66988
  exports.tokenize = tokenize;
66979
66989
 
66980
66990
 
66981
- __info__.version = "17.3.0";
66982
- __info__.date = "2024-05-31T14:21:26.547Z";
66983
- __info__.hash = "271202e";
66991
+ __info__.version = "17.3.1";
66992
+ __info__.date = "2024-06-03T15:28:03.284Z";
66993
+ __info__.hash = "605d098";
66984
66994
 
66985
66995
 
66986
66996
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);