@leankylin-sheet/core 5.2.66 → 5.2.68

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
@@ -40062,6 +40062,13 @@ function setVUpdateStr(cell, vupdateStr, d, r, c, vupdate) {
40062
40062
  t: "s"
40063
40063
  };
40064
40064
  cell.v = vupdateStr;
40065
+ } else if (vupdateStr !== vupdateStr.trim()) {
40066
+ cell.m = vupdateStr;
40067
+ cell.ct = {
40068
+ fa: "@",
40069
+ t: "s"
40070
+ };
40071
+ cell.v = vupdateStr;
40065
40072
  } else if (vupdateStr.toUpperCase() === "TRUE" && (_.isNil((_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.fa) || ((_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : _cell$ct2.fa) !== "@")) {
40066
40073
  cell.m = "TRUE";
40067
40074
  cell.ct = {
@@ -43263,14 +43270,11 @@ function initSheetIndex(ctx) {
43263
43270
  var shownSheets = ctx.luckysheetfile.filter(function (singleSheet) {
43264
43271
  return _.isUndefined(singleSheet.hide) || singleSheet.hide !== 1;
43265
43272
  });
43266
- ctx.currentSheetId = _.sortBy(shownSheets, function (sheet) {
43273
+ var firstSheet = _.sortBy(shownSheets, function (sheet) {
43267
43274
  return sheet.order;
43268
- })[0].id;
43269
- for (var i = 0; i < ctx.luckysheetfile.length; i += 1) {
43270
- if (ctx.luckysheetfile[i].status === 1 && ctx.luckysheetfile[i].hide !== 1) {
43271
- ctx.currentSheetId = ctx.luckysheetfile[i].id;
43272
- break;
43273
- }
43275
+ })[0];
43276
+ if (firstSheet) {
43277
+ ctx.currentSheetId = firstSheet.id;
43274
43278
  }
43275
43279
  }
43276
43280
  function updateContextWithSheetData(ctx, data, blank) {
package/dist/index.js CHANGED
@@ -40072,6 +40072,13 @@ function setVUpdateStr(cell, vupdateStr, d, r, c, vupdate) {
40072
40072
  t: "s"
40073
40073
  };
40074
40074
  cell.v = vupdateStr;
40075
+ } else if (vupdateStr !== vupdateStr.trim()) {
40076
+ cell.m = vupdateStr;
40077
+ cell.ct = {
40078
+ fa: "@",
40079
+ t: "s"
40080
+ };
40081
+ cell.v = vupdateStr;
40075
40082
  } else if (vupdateStr.toUpperCase() === "TRUE" && (___default['default'].isNil((_cell$ct = cell.ct) === null || _cell$ct === void 0 ? void 0 : _cell$ct.fa) || ((_cell$ct2 = cell.ct) === null || _cell$ct2 === void 0 ? void 0 : _cell$ct2.fa) !== "@")) {
40076
40083
  cell.m = "TRUE";
40077
40084
  cell.ct = {
@@ -43273,14 +43280,11 @@ function initSheetIndex(ctx) {
43273
43280
  var shownSheets = ctx.luckysheetfile.filter(function (singleSheet) {
43274
43281
  return ___default['default'].isUndefined(singleSheet.hide) || singleSheet.hide !== 1;
43275
43282
  });
43276
- ctx.currentSheetId = ___default['default'].sortBy(shownSheets, function (sheet) {
43283
+ var firstSheet = ___default['default'].sortBy(shownSheets, function (sheet) {
43277
43284
  return sheet.order;
43278
- })[0].id;
43279
- for (var i = 0; i < ctx.luckysheetfile.length; i += 1) {
43280
- if (ctx.luckysheetfile[i].status === 1 && ctx.luckysheetfile[i].hide !== 1) {
43281
- ctx.currentSheetId = ctx.luckysheetfile[i].id;
43282
- break;
43283
- }
43285
+ })[0];
43286
+ if (firstSheet) {
43287
+ ctx.currentSheetId = firstSheet.id;
43284
43288
  }
43285
43289
  }
43286
43290
  function updateContextWithSheetData(ctx, data, blank) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "5.2.66",
3
+ "version": "5.2.68",
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.66",
16
+ "@leankylin-sheet/formula-parser": "5.2.68",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",