@leankylin-sheet/excel 5.1.7 → 5.1.8

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.
package/dist/index.esm.js CHANGED
@@ -5084,7 +5084,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
5084
5084
  var dbrow = worksheet.getRow(rowid + 1);
5085
5085
  dbrow.height = (((_table$config = table.config) === null || _table$config === void 0 ? void 0 : (_table$config$rowlen = _table$config.rowlen) === null || _table$config$rowlen === void 0 ? void 0 : _table$config$rowlen[rowid]) || 19) / 1.2;
5086
5086
  row.every(function (cell, columnid) {
5087
- var _cell$ct;
5087
+ var _cell$ct4;
5088
5088
  if (rowid === 0) {
5089
5089
  var _table$config2, _table$config2$column;
5090
5090
  var dobCol = worksheet.getColumn(columnid + 1);
@@ -5095,11 +5095,11 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
5095
5095
  return cell.ct.fa;
5096
5096
  }
5097
5097
  function getT() {
5098
- var _cell$ct$fa;
5099
- if (cell.ct.t !== "n" && ((_cell$ct$fa = cell.ct.fa) === null || _cell$ct$fa === void 0 ? void 0 : _cell$ct$fa.includes("leanky_"))) {
5098
+ var _cell$ct, _cell$ct2, _cell$ct2$fa, _cell$ct3;
5099
+ if ((cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.t) !== "n" && (cell === null || cell === void 0 ? void 0 : (_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : (_cell$ct2$fa = _cell$ct2.fa) === null || _cell$ct2$fa === void 0 ? void 0 : _cell$ct2$fa.includes("leanky_"))) {
5100
5100
  return "n";
5101
5101
  }
5102
- return cell.ct.t;
5102
+ return cell === null || cell === void 0 ? void 0 : (_cell$ct3 = cell.ct) === null || _cell$ct3 === void 0 ? void 0 : _cell$ct3.t;
5103
5103
  }
5104
5104
  var ctT = getT();
5105
5105
  var fill = fillConvert(cell.bg);
@@ -5109,7 +5109,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
5109
5109
  target.fill = fill;
5110
5110
  target.font = font;
5111
5111
  target.alignment = alignment;
5112
- if ((_.isNil(cell.v) || _.isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.t) !== "inlineStr") return true;
5112
+ if ((_.isNil(cell.v) || _.isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$ct4 = cell.ct) === null || _cell$ct4 === void 0 ? void 0 : _cell$ct4.t) !== "inlineStr") return true;
5113
5113
  var value;
5114
5114
  var v = "";
5115
5115
  var numFmt = "";
package/dist/index.js CHANGED
@@ -5096,7 +5096,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
5096
5096
  var dbrow = worksheet.getRow(rowid + 1);
5097
5097
  dbrow.height = (((_table$config = table.config) === null || _table$config === void 0 ? void 0 : (_table$config$rowlen = _table$config.rowlen) === null || _table$config$rowlen === void 0 ? void 0 : _table$config$rowlen[rowid]) || 19) / 1.2;
5098
5098
  row.every(function (cell, columnid) {
5099
- var _cell$ct;
5099
+ var _cell$ct4;
5100
5100
  if (rowid === 0) {
5101
5101
  var _table$config2, _table$config2$column;
5102
5102
  var dobCol = worksheet.getColumn(columnid + 1);
@@ -5107,11 +5107,11 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
5107
5107
  return cell.ct.fa;
5108
5108
  }
5109
5109
  function getT() {
5110
- var _cell$ct$fa;
5111
- if (cell.ct.t !== "n" && ((_cell$ct$fa = cell.ct.fa) === null || _cell$ct$fa === void 0 ? void 0 : _cell$ct$fa.includes("leanky_"))) {
5110
+ var _cell$ct, _cell$ct2, _cell$ct2$fa, _cell$ct3;
5111
+ if ((cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.t) !== "n" && (cell === null || cell === void 0 ? void 0 : (_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : (_cell$ct2$fa = _cell$ct2.fa) === null || _cell$ct2$fa === void 0 ? void 0 : _cell$ct2$fa.includes("leanky_"))) {
5112
5112
  return "n";
5113
5113
  }
5114
- return cell.ct.t;
5114
+ return cell === null || cell === void 0 ? void 0 : (_cell$ct3 = cell.ct) === null || _cell$ct3 === void 0 ? void 0 : _cell$ct3.t;
5115
5115
  }
5116
5116
  var ctT = getT();
5117
5117
  var fill = fillConvert(cell.bg);
@@ -5121,7 +5121,7 @@ var setStyleAndValue = function setStyleAndValue(table, worksheet) {
5121
5121
  target.fill = fill;
5122
5122
  target.font = font;
5123
5123
  target.alignment = alignment;
5124
- if ((___default['default'].isNil(cell.v) || ___default['default'].isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.t) !== "inlineStr") return true;
5124
+ if ((___default['default'].isNil(cell.v) || ___default['default'].isNaN(cell.v)) && (cell === null || cell === void 0 ? void 0 : (_cell$ct4 = cell.ct) === null || _cell$ct4 === void 0 ? void 0 : _cell$ct4.t) !== "inlineStr") return true;
5125
5125
  var value;
5126
5126
  var v = "";
5127
5127
  var numFmt = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/excel",
3
- "version": "5.1.7",
3
+ "version": "5.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.esm.js",