@leankylin-sheet/core 5.2.51 → 5.2.53

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
@@ -51955,7 +51955,7 @@ function updateDropCell(ctx) {
51955
51955
  cell.f = _v[2];
51956
51956
  if (cell.spl != null) {
51957
51957
  cell.spl = v[3].data;
51958
- } else if (cell.v != null) {
51958
+ } else if (cell.v != null && cell.v !== "") {
51959
51959
  if (isRealNum(cell.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(cell.v))) {
51960
51960
  if (cell.v === Infinity || cell.v === -Infinity) {
51961
51961
  cell.m = cell.v.toString();
@@ -51989,6 +51989,8 @@ function updateDropCell(ctx) {
51989
51989
  var _mask2 = _slicedToArray(_mask, 2);
51990
51990
  cell.ct = _mask2[1];
51991
51991
  }
51992
+ } else {
51993
+ cell.m = "";
51992
51994
  }
51993
51995
  }
51994
51996
  d[j][i] = cell || null;
@@ -52037,7 +52039,7 @@ function updateDropCell(ctx) {
52037
52039
  _cell.f = _v3[2];
52038
52040
  if (_cell.spl != null) {
52039
52041
  _cell.spl = _v2[3].data;
52040
- } else if (_cell.v != null) {
52042
+ } else if (_cell.v != null && _cell.v !== "") {
52041
52043
  if (isRealNum(_cell.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(_cell.v))) {
52042
52044
  if (_cell.v === Infinity || _cell.v === -Infinity) {
52043
52045
  _cell.m = _cell.v.toString();
@@ -52063,6 +52065,8 @@ function updateDropCell(ctx) {
52063
52065
  var _mask5 = _slicedToArray(_mask4, 2);
52064
52066
  _cell.ct = _mask5[1];
52065
52067
  }
52068
+ } else {
52069
+ _cell.m = "";
52066
52070
  }
52067
52071
  }
52068
52072
  d[_j][i] = _cell || null;
@@ -52117,7 +52121,7 @@ function updateDropCell(ctx) {
52117
52121
  _cell2.f = _v5[2];
52118
52122
  if (_cell2.spl != null) {
52119
52123
  _cell2.spl = _v4[3].data;
52120
- } else if (_cell2.v != null) {
52124
+ } else if (_cell2.v != null && _cell2.v !== "") {
52121
52125
  if (isRealNum(_cell2.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(_cell2.v))) {
52122
52126
  if (_cell2.v === Infinity || _cell2.v === -Infinity) {
52123
52127
  _cell2.m = _cell2.v.toString();
@@ -52143,6 +52147,8 @@ function updateDropCell(ctx) {
52143
52147
  var _mask8 = _slicedToArray(_mask7, 2);
52144
52148
  _cell2.ct = _mask8[1];
52145
52149
  }
52150
+ } else {
52151
+ _cell2.m = "";
52146
52152
  }
52147
52153
  }
52148
52154
  d[_i23][_j2] = _cell2 || null;
@@ -52191,7 +52197,7 @@ function updateDropCell(ctx) {
52191
52197
  _cell3.f = _v7[2];
52192
52198
  if (_cell3.spl != null) {
52193
52199
  _cell3.spl = _v6[3].data;
52194
- } else if (_cell3.v != null) {
52200
+ } else if (_cell3.v != null && _cell3.v !== "") {
52195
52201
  if (isRealNum(_cell3.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(_cell3.v))) {
52196
52202
  if (_cell3.v === Infinity || _cell3.v === -Infinity) {
52197
52203
  _cell3.m = _cell3.v.toString();
@@ -52217,6 +52223,8 @@ function updateDropCell(ctx) {
52217
52223
  var _mask11 = _slicedToArray(_mask10, 2);
52218
52224
  _cell3.ct = _mask11[1];
52219
52225
  }
52226
+ } else {
52227
+ _cell3.m = "";
52220
52228
  }
52221
52229
  }
52222
52230
  d[_i23][_j3] = _cell3 || null;
@@ -52395,7 +52403,7 @@ function getFirstNonEmptyRowBelow(flowdata, col, startRow) {
52395
52403
  for (var r = startRow; r < flowdata.length; r += 1) {
52396
52404
  var _flowdata$r2;
52397
52405
  var cell = (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : _flowdata$r2[col];
52398
- if (cell != null && cell.v != null && cell.v !== "") {
52406
+ if (cell != null && (cell.v != null && cell.v !== "" || !!cell.f)) {
52399
52407
  return r;
52400
52408
  }
52401
52409
  }
@@ -52406,7 +52414,7 @@ function getLastConsecutiveNonEmptyRow(flowdata, col, startRow) {
52406
52414
  for (var r = startRow; r < flowdata.length; r += 1) {
52407
52415
  var _flowdata$r3;
52408
52416
  var cell = (_flowdata$r3 = flowdata[r]) === null || _flowdata$r3 === void 0 ? void 0 : _flowdata$r3[col];
52409
- if (cell != null && cell.v != null && cell.v !== "") {
52417
+ if (cell != null && (cell.v != null && cell.v !== "" || !!cell.f)) {
52410
52418
  endRow = r;
52411
52419
  } else {
52412
52420
  break;
package/dist/index.js CHANGED
@@ -51965,7 +51965,7 @@ function updateDropCell(ctx) {
51965
51965
  cell.f = _v[2];
51966
51966
  if (cell.spl != null) {
51967
51967
  cell.spl = v[3].data;
51968
- } else if (cell.v != null) {
51968
+ } else if (cell.v != null && cell.v !== "") {
51969
51969
  if (isRealNum(cell.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(cell.v))) {
51970
51970
  if (cell.v === Infinity || cell.v === -Infinity) {
51971
51971
  cell.m = cell.v.toString();
@@ -51999,6 +51999,8 @@ function updateDropCell(ctx) {
51999
51999
  var _mask2 = _slicedToArray(_mask, 2);
52000
52000
  cell.ct = _mask2[1];
52001
52001
  }
52002
+ } else {
52003
+ cell.m = "";
52002
52004
  }
52003
52005
  }
52004
52006
  d[j][i] = cell || null;
@@ -52047,7 +52049,7 @@ function updateDropCell(ctx) {
52047
52049
  _cell.f = _v3[2];
52048
52050
  if (_cell.spl != null) {
52049
52051
  _cell.spl = _v2[3].data;
52050
- } else if (_cell.v != null) {
52052
+ } else if (_cell.v != null && _cell.v !== "") {
52051
52053
  if (isRealNum(_cell.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(_cell.v))) {
52052
52054
  if (_cell.v === Infinity || _cell.v === -Infinity) {
52053
52055
  _cell.m = _cell.v.toString();
@@ -52073,6 +52075,8 @@ function updateDropCell(ctx) {
52073
52075
  var _mask5 = _slicedToArray(_mask4, 2);
52074
52076
  _cell.ct = _mask5[1];
52075
52077
  }
52078
+ } else {
52079
+ _cell.m = "";
52076
52080
  }
52077
52081
  }
52078
52082
  d[_j][i] = _cell || null;
@@ -52127,7 +52131,7 @@ function updateDropCell(ctx) {
52127
52131
  _cell2.f = _v5[2];
52128
52132
  if (_cell2.spl != null) {
52129
52133
  _cell2.spl = _v4[3].data;
52130
- } else if (_cell2.v != null) {
52134
+ } else if (_cell2.v != null && _cell2.v !== "") {
52131
52135
  if (isRealNum(_cell2.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(_cell2.v))) {
52132
52136
  if (_cell2.v === Infinity || _cell2.v === -Infinity) {
52133
52137
  _cell2.m = _cell2.v.toString();
@@ -52153,6 +52157,8 @@ function updateDropCell(ctx) {
52153
52157
  var _mask8 = _slicedToArray(_mask7, 2);
52154
52158
  _cell2.ct = _mask8[1];
52155
52159
  }
52160
+ } else {
52161
+ _cell2.m = "";
52156
52162
  }
52157
52163
  }
52158
52164
  d[_i23][_j2] = _cell2 || null;
@@ -52201,7 +52207,7 @@ function updateDropCell(ctx) {
52201
52207
  _cell3.f = _v7[2];
52202
52208
  if (_cell3.spl != null) {
52203
52209
  _cell3.spl = _v6[3].data;
52204
- } else if (_cell3.v != null) {
52210
+ } else if (_cell3.v != null && _cell3.v !== "") {
52205
52211
  if (isRealNum(_cell3.v) && !/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[12])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test("".concat(_cell3.v))) {
52206
52212
  if (_cell3.v === Infinity || _cell3.v === -Infinity) {
52207
52213
  _cell3.m = _cell3.v.toString();
@@ -52227,6 +52233,8 @@ function updateDropCell(ctx) {
52227
52233
  var _mask11 = _slicedToArray(_mask10, 2);
52228
52234
  _cell3.ct = _mask11[1];
52229
52235
  }
52236
+ } else {
52237
+ _cell3.m = "";
52230
52238
  }
52231
52239
  }
52232
52240
  d[_i23][_j3] = _cell3 || null;
@@ -52405,7 +52413,7 @@ function getFirstNonEmptyRowBelow(flowdata, col, startRow) {
52405
52413
  for (var r = startRow; r < flowdata.length; r += 1) {
52406
52414
  var _flowdata$r2;
52407
52415
  var cell = (_flowdata$r2 = flowdata[r]) === null || _flowdata$r2 === void 0 ? void 0 : _flowdata$r2[col];
52408
- if (cell != null && cell.v != null && cell.v !== "") {
52416
+ if (cell != null && (cell.v != null && cell.v !== "" || !!cell.f)) {
52409
52417
  return r;
52410
52418
  }
52411
52419
  }
@@ -52416,7 +52424,7 @@ function getLastConsecutiveNonEmptyRow(flowdata, col, startRow) {
52416
52424
  for (var r = startRow; r < flowdata.length; r += 1) {
52417
52425
  var _flowdata$r3;
52418
52426
  var cell = (_flowdata$r3 = flowdata[r]) === null || _flowdata$r3 === void 0 ? void 0 : _flowdata$r3[col];
52419
- if (cell != null && cell.v != null && cell.v !== "") {
52427
+ if (cell != null && (cell.v != null && cell.v !== "" || !!cell.f)) {
52420
52428
  endRow = r;
52421
52429
  } else {
52422
52430
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "5.2.51",
3
+ "version": "5.2.53",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "5.2.51",
16
+ "@leankylin-sheet/formula-parser": "5.2.53",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",