@odoo/o-spreadsheet 17.0.35 → 17.0.36

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.35
6
- * @date 2024-08-19T08:09:02.631Z
7
- * @hash 5572654
5
+ * @version 17.0.36
6
+ * @date 2024-08-26T13:49:04.635Z
7
+ * @hash 6d5069e
8
8
  */
9
9
 
10
10
  'use strict';
@@ -37538,7 +37538,10 @@ class HeaderSizePlugin extends CorePlugin {
37538
37538
  handle(cmd) {
37539
37539
  switch (cmd.type) {
37540
37540
  case "CREATE_SHEET": {
37541
- this.history.update("sizes", cmd.sheetId, { COL: [], ROW: [] });
37541
+ this.history.update("sizes", cmd.sheetId, {
37542
+ COL: Array(this.getters.getNumberCols(cmd.sheetId)).fill(undefined),
37543
+ ROW: Array(this.getters.getNumberRows(cmd.sheetId)).fill(undefined),
37544
+ });
37542
37545
  break;
37543
37546
  }
37544
37547
  case "DUPLICATE_SHEET":
@@ -45205,9 +45208,7 @@ class ClipboardCellsState extends ClipboardCellsAbstractState {
45205
45208
  const { sheetId, col, row } = target;
45206
45209
  const targetCell = this.getters.getEvaluatedCell(target);
45207
45210
  if (clipboardOption?.pasteOption === "onlyValue") {
45208
- const locale = this.getters.getLocale();
45209
- const content = formatValue(origin.evaluatedCell.value, { locale });
45210
- this.dispatch("UPDATE_CELL", { ...target, content });
45211
+ this.dispatch("UPDATE_CELL", { ...target, content: origin.evaluatedCell.value.toString() });
45211
45212
  return;
45212
45213
  }
45213
45214
  const targetBorders = this.getters.getCellBorder(target);
@@ -57621,6 +57622,6 @@ exports.setTranslationMethod = setTranslationMethod;
57621
57622
  exports.tokenize = tokenize;
57622
57623
 
57623
57624
 
57624
- __info__.version = "17.0.35";
57625
- __info__.date = "2024-08-19T08:09:02.631Z";
57626
- __info__.hash = "5572654";
57625
+ __info__.version = "17.0.36";
57626
+ __info__.date = "2024-08-26T13:49:04.635Z";
57627
+ __info__.hash = "6d5069e";
@@ -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.35
6
- * @date 2024-08-19T08:09:02.631Z
7
- * @hash 5572654
5
+ * @version 17.0.36
6
+ * @date 2024-08-26T13:49:04.635Z
7
+ * @hash 6d5069e
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';
@@ -37536,7 +37536,10 @@ class HeaderSizePlugin extends CorePlugin {
37536
37536
  handle(cmd) {
37537
37537
  switch (cmd.type) {
37538
37538
  case "CREATE_SHEET": {
37539
- this.history.update("sizes", cmd.sheetId, { COL: [], ROW: [] });
37539
+ this.history.update("sizes", cmd.sheetId, {
37540
+ COL: Array(this.getters.getNumberCols(cmd.sheetId)).fill(undefined),
37541
+ ROW: Array(this.getters.getNumberRows(cmd.sheetId)).fill(undefined),
37542
+ });
37540
37543
  break;
37541
37544
  }
37542
37545
  case "DUPLICATE_SHEET":
@@ -45203,9 +45206,7 @@ class ClipboardCellsState extends ClipboardCellsAbstractState {
45203
45206
  const { sheetId, col, row } = target;
45204
45207
  const targetCell = this.getters.getEvaluatedCell(target);
45205
45208
  if (clipboardOption?.pasteOption === "onlyValue") {
45206
- const locale = this.getters.getLocale();
45207
- const content = formatValue(origin.evaluatedCell.value, { locale });
45208
- this.dispatch("UPDATE_CELL", { ...target, content });
45209
+ this.dispatch("UPDATE_CELL", { ...target, content: origin.evaluatedCell.value.toString() });
45209
45210
  return;
45210
45211
  }
45211
45212
  const targetBorders = this.getters.getCellBorder(target);
@@ -57584,6 +57585,6 @@ const constants = {
57584
57585
  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 };
57585
57586
 
57586
57587
 
57587
- __info__.version = "17.0.35";
57588
- __info__.date = "2024-08-19T08:09:02.631Z";
57589
- __info__.hash = "5572654";
57588
+ __info__.version = "17.0.36";
57589
+ __info__.date = "2024-08-26T13:49:04.635Z";
57590
+ __info__.hash = "6d5069e";
@@ -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.35
6
- * @date 2024-08-19T08:09:02.631Z
7
- * @hash 5572654
5
+ * @version 17.0.36
6
+ * @date 2024-08-26T13:49:04.635Z
7
+ * @hash 6d5069e
8
8
  */
9
9
 
10
10
  (function (exports, owl) {
@@ -37537,7 +37537,10 @@
37537
37537
  handle(cmd) {
37538
37538
  switch (cmd.type) {
37539
37539
  case "CREATE_SHEET": {
37540
- this.history.update("sizes", cmd.sheetId, { COL: [], ROW: [] });
37540
+ this.history.update("sizes", cmd.sheetId, {
37541
+ COL: Array(this.getters.getNumberCols(cmd.sheetId)).fill(undefined),
37542
+ ROW: Array(this.getters.getNumberRows(cmd.sheetId)).fill(undefined),
37543
+ });
37541
37544
  break;
37542
37545
  }
37543
37546
  case "DUPLICATE_SHEET":
@@ -45204,9 +45207,7 @@
45204
45207
  const { sheetId, col, row } = target;
45205
45208
  const targetCell = this.getters.getEvaluatedCell(target);
45206
45209
  if (clipboardOption?.pasteOption === "onlyValue") {
45207
- const locale = this.getters.getLocale();
45208
- const content = formatValue(origin.evaluatedCell.value, { locale });
45209
- this.dispatch("UPDATE_CELL", { ...target, content });
45210
+ this.dispatch("UPDATE_CELL", { ...target, content: origin.evaluatedCell.value.toString() });
45210
45211
  return;
45211
45212
  }
45212
45213
  const targetBorders = this.getters.getCellBorder(target);
@@ -57620,9 +57621,9 @@
57620
57621
  exports.tokenize = tokenize;
57621
57622
 
57622
57623
 
57623
- __info__.version = "17.0.35";
57624
- __info__.date = "2024-08-19T08:09:02.631Z";
57625
- __info__.hash = "5572654";
57624
+ __info__.version = "17.0.36";
57625
+ __info__.date = "2024-08-26T13:49:04.635Z";
57626
+ __info__.hash = "6d5069e";
57626
57627
 
57627
57628
 
57628
57629
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);