@odoo/o-spreadsheet 16.1.9 → 16.1.10

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.
@@ -3628,6 +3628,8 @@ exports.CommandResult = void 0;
3628
3628
  CommandResult[CommandResult["InvalidSelectionStep"] = 83] = "InvalidSelectionStep";
3629
3629
  CommandResult[CommandResult["DuplicatedChartId"] = 84] = "DuplicatedChartId";
3630
3630
  CommandResult[CommandResult["ChartDoesNotExist"] = 85] = "ChartDoesNotExist";
3631
+ CommandResult[CommandResult["InvalidHeaderIndex"] = 86] = "InvalidHeaderIndex";
3632
+ CommandResult[CommandResult["InvalidQuantity"] = 87] = "InvalidQuantity";
3631
3633
  })(exports.CommandResult || (exports.CommandResult = {}));
3632
3634
 
3633
3635
  var DIRECTION;
@@ -14497,7 +14499,7 @@ const POW = {
14497
14499
  base (number) ${_lt("The number to raise to the exponent power.")}
14498
14500
  exponent (number) ${_lt("The exponent to raise base to.")}
14499
14501
  `),
14500
- returns: ["BOOLEAN"],
14502
+ returns: ["NUMBER"],
14501
14503
  compute: function (base, exponent) {
14502
14504
  return POWER.compute(base, exponent);
14503
14505
  },
@@ -25191,7 +25193,7 @@ function extractStyle(cell, data) {
25191
25193
  if (cell.style) {
25192
25194
  style = data.styles[cell.style];
25193
25195
  }
25194
- const format = cell.format ? data.formats[cell.format] : undefined;
25196
+ const format = extractFormat(cell, data);
25195
25197
  const exportedBorder = {};
25196
25198
  if (cell.border) {
25197
25199
  const border = data.borders[cell.border];
@@ -25225,6 +25227,22 @@ function extractStyle(cell, data) {
25225
25227
  styles.font["italic"] = !!(style === null || style === void 0 ? void 0 : style.italic) || undefined;
25226
25228
  return styles;
25227
25229
  }
25230
+ function extractFormat(cell, data) {
25231
+ if (cell.format) {
25232
+ return data.formats[cell.format];
25233
+ }
25234
+ if (cell.isFormula) {
25235
+ const tokens = tokenize(cell.content || "");
25236
+ const functions = functionRegistry.content;
25237
+ const isExported = tokens
25238
+ .filter((tk) => tk.type === "FUNCTION")
25239
+ .every((tk) => functions[tk.value.toUpperCase()].isExported);
25240
+ if (!isExported) {
25241
+ return cell.computedFormat;
25242
+ }
25243
+ }
25244
+ return undefined;
25245
+ }
25228
25246
  function normalizeStyle(construct, styles) {
25229
25247
  const { id: fontId } = pushElement(styles["font"], construct.fonts);
25230
25248
  const { id: fillId } = pushElement(styles["fill"], construct.fills);
@@ -29975,9 +29993,16 @@ class HeaderVisibilityPlugin extends CorePlugin {
29975
29993
  const elements = cmd.dimension === "COL"
29976
29994
  ? this.getters.getNumberCols(cmd.sheetId)
29977
29995
  : this.getters.getNumberRows(cmd.sheetId);
29978
- return (hiddenGroup || []).flat().concat(cmd.elements).length < elements
29979
- ? 0 /* CommandResult.Success */
29980
- : 66 /* CommandResult.TooManyHiddenElements */;
29996
+ const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
29997
+ if (hiddenElements.size >= elements) {
29998
+ return 66 /* CommandResult.TooManyHiddenElements */;
29999
+ }
30000
+ else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
30001
+ return 86 /* CommandResult.InvalidHeaderIndex */;
30002
+ }
30003
+ else {
30004
+ return 0 /* CommandResult.Success */;
30005
+ }
29981
30006
  }
29982
30007
  case "REMOVE_COLUMNS_ROWS":
29983
30008
  if (!this.getters.tryGetSheet(cmd.sheetId)) {
@@ -31141,6 +31166,28 @@ class SheetPlugin extends CorePlugin {
31141
31166
  return this.orderedSheetIds.length > 1
31142
31167
  ? 0 /* CommandResult.Success */
31143
31168
  : 9 /* CommandResult.NotEnoughSheets */;
31169
+ case "ADD_COLUMNS_ROWS":
31170
+ const elements = cmd.dimension === "COL"
31171
+ ? this.getNumberCols(cmd.sheetId)
31172
+ : this.getNumberRows(cmd.sheetId);
31173
+ if (cmd.base < 0 || cmd.base > elements) {
31174
+ return 86 /* CommandResult.InvalidHeaderIndex */;
31175
+ }
31176
+ else if (cmd.quantity <= 0) {
31177
+ return 87 /* CommandResult.InvalidQuantity */;
31178
+ }
31179
+ return 0 /* CommandResult.Success */;
31180
+ case "REMOVE_COLUMNS_ROWS": {
31181
+ const elements = cmd.dimension === "COL"
31182
+ ? this.getNumberCols(cmd.sheetId)
31183
+ : this.getNumberRows(cmd.sheetId);
31184
+ if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
31185
+ return 86 /* CommandResult.InvalidHeaderIndex */;
31186
+ }
31187
+ else {
31188
+ return 0 /* CommandResult.Success */;
31189
+ }
31190
+ }
31144
31191
  case "FREEZE_ROWS": {
31145
31192
  return this.checkValidations(cmd, this.checkRowFreezeQuantity, this.checkRowFreezeOverlapMerge);
31146
31193
  }
@@ -32389,8 +32436,12 @@ class EvaluationPlugin extends UIPlugin {
32389
32436
  const cell = this.getters.getCell(position);
32390
32437
  if (cell) {
32391
32438
  const exportedCellData = sheet.cells[xc];
32392
- exportedCellData.value = this.getEvaluatedCell(position).value;
32439
+ const evaluatedCell = this.getEvaluatedCell(position);
32440
+ exportedCellData.value = evaluatedCell.value;
32393
32441
  exportedCellData.isFormula = cell.isFormula && !this.isBadExpression(cell.content);
32442
+ if (cell.format !== evaluatedCell.format) {
32443
+ exportedCellData.computedFormat = evaluatedCell.format;
32444
+ }
32394
32445
  }
32395
32446
  }
32396
32447
  }
@@ -42568,12 +42619,9 @@ function addFormula(cell) {
42568
42619
  else {
42569
42620
  // Shouldn't we always output the value then ?
42570
42621
  const value = cell.value;
42571
- // what if value = 0? Is this condition correct?
42572
- if (value) {
42573
- const type = getCellType(value);
42574
- attrs.push(["t", type]);
42575
- node = escapeXml /*xml*/ `<v>${value}</v>`;
42576
- }
42622
+ const type = getCellType(value);
42623
+ attrs.push(["t", type]);
42624
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
42577
42625
  return { attrs, node };
42578
42626
  }
42579
42627
  }
@@ -44183,6 +44231,6 @@ exports.setTranslationMethod = setTranslationMethod;
44183
44231
  exports.tokenize = tokenize;
44184
44232
 
44185
44233
 
44186
- __info__.version = '16.1.9';
44187
- __info__.date = '2023-04-21T07:29:41.080Z';
44188
- __info__.hash = '686bffa';
44234
+ __info__.version = '16.1.10';
44235
+ __info__.date = '2023-04-28T12:24:14.323Z';
44236
+ __info__.hash = '9632927';
@@ -800,6 +800,7 @@ interface ExcelWorkbookData extends WorkbookData {
800
800
  interface ExcelCellData extends CellData {
801
801
  value: CellValue;
802
802
  isFormula: Boolean;
803
+ computedFormat?: Format;
803
804
  }
804
805
  interface ExcelSheetData extends Omit<SheetData, "figureTables"> {
805
806
  cells: {
@@ -2254,7 +2255,9 @@ declare const enum CommandResult {
2254
2255
  DuplicatedFigureId = 82,
2255
2256
  InvalidSelectionStep = 83,
2256
2257
  DuplicatedChartId = 84,
2257
- ChartDoesNotExist = 85
2258
+ ChartDoesNotExist = 85,
2259
+ InvalidHeaderIndex = 86,
2260
+ InvalidQuantity = 87
2258
2261
  }
2259
2262
  interface CommandHandler<T> {
2260
2263
  allowDispatch(command: T): CommandResult | CommandResult[];
@@ -3496,7 +3499,7 @@ declare class HeaderSizePlugin extends CorePlugin<HeaderSizeState> implements He
3496
3499
  declare class HeaderVisibilityPlugin extends CorePlugin {
3497
3500
  static getters: readonly ["canRemoveHeaders", "getHiddenColsGroups", "getHiddenRowsGroups", "isRowHiddenByUser", "isColHiddenByUser"];
3498
3501
  private readonly hiddenHeaders;
3499
- allowDispatch(cmd: Command): CommandResult.Success | CommandResult.NotEnoughElements | CommandResult.InvalidSheetId | CommandResult.TooManyHiddenElements;
3502
+ allowDispatch(cmd: Command): CommandResult.Success | CommandResult.NotEnoughElements | CommandResult.InvalidSheetId | CommandResult.TooManyHiddenElements | CommandResult.InvalidHeaderIndex;
3500
3503
  handle(cmd: Command): void;
3501
3504
  canRemoveHeaders(sheetId: UID, dimension: Dimension, elements: HeaderIndex[]): boolean;
3502
3505
  isRowHiddenByUser(sheetId: UID, index: HeaderIndex): boolean;
@@ -3624,6 +3624,8 @@ var CommandResult;
3624
3624
  CommandResult[CommandResult["InvalidSelectionStep"] = 83] = "InvalidSelectionStep";
3625
3625
  CommandResult[CommandResult["DuplicatedChartId"] = 84] = "DuplicatedChartId";
3626
3626
  CommandResult[CommandResult["ChartDoesNotExist"] = 85] = "ChartDoesNotExist";
3627
+ CommandResult[CommandResult["InvalidHeaderIndex"] = 86] = "InvalidHeaderIndex";
3628
+ CommandResult[CommandResult["InvalidQuantity"] = 87] = "InvalidQuantity";
3627
3629
  })(CommandResult || (CommandResult = {}));
3628
3630
 
3629
3631
  var DIRECTION;
@@ -14493,7 +14495,7 @@ const POW = {
14493
14495
  base (number) ${_lt("The number to raise to the exponent power.")}
14494
14496
  exponent (number) ${_lt("The exponent to raise base to.")}
14495
14497
  `),
14496
- returns: ["BOOLEAN"],
14498
+ returns: ["NUMBER"],
14497
14499
  compute: function (base, exponent) {
14498
14500
  return POWER.compute(base, exponent);
14499
14501
  },
@@ -25187,7 +25189,7 @@ function extractStyle(cell, data) {
25187
25189
  if (cell.style) {
25188
25190
  style = data.styles[cell.style];
25189
25191
  }
25190
- const format = cell.format ? data.formats[cell.format] : undefined;
25192
+ const format = extractFormat(cell, data);
25191
25193
  const exportedBorder = {};
25192
25194
  if (cell.border) {
25193
25195
  const border = data.borders[cell.border];
@@ -25221,6 +25223,22 @@ function extractStyle(cell, data) {
25221
25223
  styles.font["italic"] = !!(style === null || style === void 0 ? void 0 : style.italic) || undefined;
25222
25224
  return styles;
25223
25225
  }
25226
+ function extractFormat(cell, data) {
25227
+ if (cell.format) {
25228
+ return data.formats[cell.format];
25229
+ }
25230
+ if (cell.isFormula) {
25231
+ const tokens = tokenize(cell.content || "");
25232
+ const functions = functionRegistry.content;
25233
+ const isExported = tokens
25234
+ .filter((tk) => tk.type === "FUNCTION")
25235
+ .every((tk) => functions[tk.value.toUpperCase()].isExported);
25236
+ if (!isExported) {
25237
+ return cell.computedFormat;
25238
+ }
25239
+ }
25240
+ return undefined;
25241
+ }
25224
25242
  function normalizeStyle(construct, styles) {
25225
25243
  const { id: fontId } = pushElement(styles["font"], construct.fonts);
25226
25244
  const { id: fillId } = pushElement(styles["fill"], construct.fills);
@@ -29971,9 +29989,16 @@ class HeaderVisibilityPlugin extends CorePlugin {
29971
29989
  const elements = cmd.dimension === "COL"
29972
29990
  ? this.getters.getNumberCols(cmd.sheetId)
29973
29991
  : this.getters.getNumberRows(cmd.sheetId);
29974
- return (hiddenGroup || []).flat().concat(cmd.elements).length < elements
29975
- ? 0 /* CommandResult.Success */
29976
- : 66 /* CommandResult.TooManyHiddenElements */;
29992
+ const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
29993
+ if (hiddenElements.size >= elements) {
29994
+ return 66 /* CommandResult.TooManyHiddenElements */;
29995
+ }
29996
+ else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
29997
+ return 86 /* CommandResult.InvalidHeaderIndex */;
29998
+ }
29999
+ else {
30000
+ return 0 /* CommandResult.Success */;
30001
+ }
29977
30002
  }
29978
30003
  case "REMOVE_COLUMNS_ROWS":
29979
30004
  if (!this.getters.tryGetSheet(cmd.sheetId)) {
@@ -31137,6 +31162,28 @@ class SheetPlugin extends CorePlugin {
31137
31162
  return this.orderedSheetIds.length > 1
31138
31163
  ? 0 /* CommandResult.Success */
31139
31164
  : 9 /* CommandResult.NotEnoughSheets */;
31165
+ case "ADD_COLUMNS_ROWS":
31166
+ const elements = cmd.dimension === "COL"
31167
+ ? this.getNumberCols(cmd.sheetId)
31168
+ : this.getNumberRows(cmd.sheetId);
31169
+ if (cmd.base < 0 || cmd.base > elements) {
31170
+ return 86 /* CommandResult.InvalidHeaderIndex */;
31171
+ }
31172
+ else if (cmd.quantity <= 0) {
31173
+ return 87 /* CommandResult.InvalidQuantity */;
31174
+ }
31175
+ return 0 /* CommandResult.Success */;
31176
+ case "REMOVE_COLUMNS_ROWS": {
31177
+ const elements = cmd.dimension === "COL"
31178
+ ? this.getNumberCols(cmd.sheetId)
31179
+ : this.getNumberRows(cmd.sheetId);
31180
+ if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
31181
+ return 86 /* CommandResult.InvalidHeaderIndex */;
31182
+ }
31183
+ else {
31184
+ return 0 /* CommandResult.Success */;
31185
+ }
31186
+ }
31140
31187
  case "FREEZE_ROWS": {
31141
31188
  return this.checkValidations(cmd, this.checkRowFreezeQuantity, this.checkRowFreezeOverlapMerge);
31142
31189
  }
@@ -32385,8 +32432,12 @@ class EvaluationPlugin extends UIPlugin {
32385
32432
  const cell = this.getters.getCell(position);
32386
32433
  if (cell) {
32387
32434
  const exportedCellData = sheet.cells[xc];
32388
- exportedCellData.value = this.getEvaluatedCell(position).value;
32435
+ const evaluatedCell = this.getEvaluatedCell(position);
32436
+ exportedCellData.value = evaluatedCell.value;
32389
32437
  exportedCellData.isFormula = cell.isFormula && !this.isBadExpression(cell.content);
32438
+ if (cell.format !== evaluatedCell.format) {
32439
+ exportedCellData.computedFormat = evaluatedCell.format;
32440
+ }
32390
32441
  }
32391
32442
  }
32392
32443
  }
@@ -42564,12 +42615,9 @@ function addFormula(cell) {
42564
42615
  else {
42565
42616
  // Shouldn't we always output the value then ?
42566
42617
  const value = cell.value;
42567
- // what if value = 0? Is this condition correct?
42568
- if (value) {
42569
- const type = getCellType(value);
42570
- attrs.push(["t", type]);
42571
- node = escapeXml /*xml*/ `<v>${value}</v>`;
42572
- }
42618
+ const type = getCellType(value);
42619
+ attrs.push(["t", type]);
42620
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
42573
42621
  return { attrs, node };
42574
42622
  }
42575
42623
  }
@@ -44151,6 +44199,6 @@ function addFunction(functionName, functionDescription) {
44151
44199
  export { AbstractChart, CommandResult, CorePlugin, DATETIME_FORMAT, DispatchResult, EvaluationError, Model, Registry, Revision, SPREADSHEET_DIMENSIONS, Spreadsheet, UIPlugin, __info__, addFunction, astToFormula, compile, components, convertAstNodes, coreTypes, findCellInNewZone, functionCache, helpers, invalidateEvaluationCommands, links, load, parse, readonlyAllowedCommands, registries, setTranslationMethod, tokenize };
44152
44200
 
44153
44201
 
44154
- __info__.version = '16.1.9';
44155
- __info__.date = '2023-04-21T07:29:41.080Z';
44156
- __info__.hash = '686bffa';
44202
+ __info__.version = '16.1.10';
44203
+ __info__.date = '2023-04-28T12:24:14.323Z';
44204
+ __info__.hash = '9632927';
@@ -3625,6 +3625,8 @@
3625
3625
  CommandResult[CommandResult["InvalidSelectionStep"] = 83] = "InvalidSelectionStep";
3626
3626
  CommandResult[CommandResult["DuplicatedChartId"] = 84] = "DuplicatedChartId";
3627
3627
  CommandResult[CommandResult["ChartDoesNotExist"] = 85] = "ChartDoesNotExist";
3628
+ CommandResult[CommandResult["InvalidHeaderIndex"] = 86] = "InvalidHeaderIndex";
3629
+ CommandResult[CommandResult["InvalidQuantity"] = 87] = "InvalidQuantity";
3628
3630
  })(exports.CommandResult || (exports.CommandResult = {}));
3629
3631
 
3630
3632
  var DIRECTION;
@@ -14494,7 +14496,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
14494
14496
  base (number) ${_lt("The number to raise to the exponent power.")}
14495
14497
  exponent (number) ${_lt("The exponent to raise base to.")}
14496
14498
  `),
14497
- returns: ["BOOLEAN"],
14499
+ returns: ["NUMBER"],
14498
14500
  compute: function (base, exponent) {
14499
14501
  return POWER.compute(base, exponent);
14500
14502
  },
@@ -25188,7 +25190,7 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
25188
25190
  if (cell.style) {
25189
25191
  style = data.styles[cell.style];
25190
25192
  }
25191
- const format = cell.format ? data.formats[cell.format] : undefined;
25193
+ const format = extractFormat(cell, data);
25192
25194
  const exportedBorder = {};
25193
25195
  if (cell.border) {
25194
25196
  const border = data.borders[cell.border];
@@ -25222,6 +25224,22 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
25222
25224
  styles.font["italic"] = !!(style === null || style === void 0 ? void 0 : style.italic) || undefined;
25223
25225
  return styles;
25224
25226
  }
25227
+ function extractFormat(cell, data) {
25228
+ if (cell.format) {
25229
+ return data.formats[cell.format];
25230
+ }
25231
+ if (cell.isFormula) {
25232
+ const tokens = tokenize(cell.content || "");
25233
+ const functions = functionRegistry.content;
25234
+ const isExported = tokens
25235
+ .filter((tk) => tk.type === "FUNCTION")
25236
+ .every((tk) => functions[tk.value.toUpperCase()].isExported);
25237
+ if (!isExported) {
25238
+ return cell.computedFormat;
25239
+ }
25240
+ }
25241
+ return undefined;
25242
+ }
25225
25243
  function normalizeStyle(construct, styles) {
25226
25244
  const { id: fontId } = pushElement(styles["font"], construct.fonts);
25227
25245
  const { id: fillId } = pushElement(styles["fill"], construct.fills);
@@ -29972,9 +29990,16 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
29972
29990
  const elements = cmd.dimension === "COL"
29973
29991
  ? this.getters.getNumberCols(cmd.sheetId)
29974
29992
  : this.getters.getNumberRows(cmd.sheetId);
29975
- return (hiddenGroup || []).flat().concat(cmd.elements).length < elements
29976
- ? 0 /* CommandResult.Success */
29977
- : 66 /* CommandResult.TooManyHiddenElements */;
29993
+ const hiddenElements = new Set((hiddenGroup || []).flat().concat(cmd.elements));
29994
+ if (hiddenElements.size >= elements) {
29995
+ return 66 /* CommandResult.TooManyHiddenElements */;
29996
+ }
29997
+ else if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
29998
+ return 86 /* CommandResult.InvalidHeaderIndex */;
29999
+ }
30000
+ else {
30001
+ return 0 /* CommandResult.Success */;
30002
+ }
29978
30003
  }
29979
30004
  case "REMOVE_COLUMNS_ROWS":
29980
30005
  if (!this.getters.tryGetSheet(cmd.sheetId)) {
@@ -31138,6 +31163,28 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
31138
31163
  return this.orderedSheetIds.length > 1
31139
31164
  ? 0 /* CommandResult.Success */
31140
31165
  : 9 /* CommandResult.NotEnoughSheets */;
31166
+ case "ADD_COLUMNS_ROWS":
31167
+ const elements = cmd.dimension === "COL"
31168
+ ? this.getNumberCols(cmd.sheetId)
31169
+ : this.getNumberRows(cmd.sheetId);
31170
+ if (cmd.base < 0 || cmd.base > elements) {
31171
+ return 86 /* CommandResult.InvalidHeaderIndex */;
31172
+ }
31173
+ else if (cmd.quantity <= 0) {
31174
+ return 87 /* CommandResult.InvalidQuantity */;
31175
+ }
31176
+ return 0 /* CommandResult.Success */;
31177
+ case "REMOVE_COLUMNS_ROWS": {
31178
+ const elements = cmd.dimension === "COL"
31179
+ ? this.getNumberCols(cmd.sheetId)
31180
+ : this.getNumberRows(cmd.sheetId);
31181
+ if (Math.min(...cmd.elements) < 0 || Math.max(...cmd.elements) > elements) {
31182
+ return 86 /* CommandResult.InvalidHeaderIndex */;
31183
+ }
31184
+ else {
31185
+ return 0 /* CommandResult.Success */;
31186
+ }
31187
+ }
31141
31188
  case "FREEZE_ROWS": {
31142
31189
  return this.checkValidations(cmd, this.checkRowFreezeQuantity, this.checkRowFreezeOverlapMerge);
31143
31190
  }
@@ -32386,8 +32433,12 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
32386
32433
  const cell = this.getters.getCell(position);
32387
32434
  if (cell) {
32388
32435
  const exportedCellData = sheet.cells[xc];
32389
- exportedCellData.value = this.getEvaluatedCell(position).value;
32436
+ const evaluatedCell = this.getEvaluatedCell(position);
32437
+ exportedCellData.value = evaluatedCell.value;
32390
32438
  exportedCellData.isFormula = cell.isFormula && !this.isBadExpression(cell.content);
32439
+ if (cell.format !== evaluatedCell.format) {
32440
+ exportedCellData.computedFormat = evaluatedCell.format;
32441
+ }
32391
32442
  }
32392
32443
  }
32393
32444
  }
@@ -42565,12 +42616,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
42565
42616
  else {
42566
42617
  // Shouldn't we always output the value then ?
42567
42618
  const value = cell.value;
42568
- // what if value = 0? Is this condition correct?
42569
- if (value) {
42570
- const type = getCellType(value);
42571
- attrs.push(["t", type]);
42572
- node = escapeXml /*xml*/ `<v>${value}</v>`;
42573
- }
42619
+ const type = getCellType(value);
42620
+ attrs.push(["t", type]);
42621
+ node = escapeXml /*xml*/ `<v>${value}</v>`;
42574
42622
  return { attrs, node };
42575
42623
  }
42576
42624
  }
@@ -44182,9 +44230,9 @@ day_count_convention (number, default=${DEFAULT_DAY_COUNT_CONVENTION} ) ${_lt("A
44182
44230
  Object.defineProperty(exports, '__esModule', { value: true });
44183
44231
 
44184
44232
 
44185
- __info__.version = '16.1.9';
44186
- __info__.date = '2023-04-21T07:29:41.080Z';
44187
- __info__.hash = '686bffa';
44233
+ __info__.version = '16.1.10';
44234
+ __info__.date = '2023-04-28T12:24:14.323Z';
44235
+ __info__.hash = '9632927';
44188
44236
 
44189
44237
 
44190
44238
  })(this.o_spreadsheet = this.o_spreadsheet || {}, owl);