@fileverse-dev/dsheet 2.0.19 → 2.0.20

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.
Files changed (2) hide show
  1. package/dist/index.es.js +6 -5
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -20505,9 +20505,10 @@ function gl(e) {
20505
20505
  if (a.length === 0)
20506
20506
  return;
20507
20507
  let u = "", c = "";
20508
- if (s === 0 && (u = ((d = a.match(/^\s+/)) == null ? void 0 : d[0]) || "", c = ((h = a.match(/\s+$/)) == null ? void 0 : h[0]) || "", a = a.slice(u.length, a.length - c.length), r += u, a.length === 0)) {
20509
- r += c;
20510
- return;
20508
+ if (s === 0) {
20509
+ if (u = ((d = a.match(/^\s+/)) == null ? void 0 : d[0]) || "", c = ((h = a.match(/\s+$/)) == null ? void 0 : h[0]) || "", a = a.slice(u.length, a.length - c.length), a.length === 0)
20510
+ return;
20511
+ r += u;
20511
20512
  }
20512
20513
  if (ir(_.trim(a))) {
20513
20514
  const f = oa.length > Mo ? oa[Mo] : Mo;
@@ -23351,7 +23352,7 @@ function tn(e, t, n, o, r) {
23351
23352
  let i = o[t][n];
23352
23353
  const l = !!i && !(Gt(i.v) && Gt(i.m) && Gt(i.f));
23353
23354
  let a;
23354
- _.isPlainObject(r) ? (_.isNil(i) ? i = r : (_.isNil(r.f) ? "f" in i && delete i.f : i.f = r.f, _.isNil(r.m) ? "m" in r && "m" in i && delete i.m : i.m = r.m, _.isNil(r.baseCurrency) || (i.baseValue = r.baseValue, i.baseCurrency = r.baseCurrency, i.baseCurrencyPrice = r.baseCurrencyPrice), _.isNil(r.ct) || (i.ct = _.isNil(i.ct) ? r.ct : { ...i.ct, ...r.ct }), _.isNil(r.ht) || (i.ht = r.ht)), _.isPlainObject(r.v) ? a = r.v.v : a = r.v) : a = r;
23355
+ _.isPlainObject(r) ? (_.isNil(i) ? i = r : (_.isNil(r.f) ? "f" in i && delete i.f : i.f = r.f, _.isNil(r.m) || (i.m = r.m), _.isNil(r.baseCurrency) || (i.baseValue = r.baseValue, i.baseCurrency = r.baseCurrency, i.baseCurrencyPrice = r.baseCurrencyPrice), _.isNil(r.ct) || (i.ct = _.isNil(i.ct) ? r.ct : { ...i.ct, ...r.ct }), _.isNil(r.ht) || (i.ht = r.ht)), _.isPlainObject(r.v) ? a = r.v.v : a = r.v) : a = r;
23355
23356
  const s = _.isPlainObject(r) && Array.isArray((f = r == null ? void 0 : r.ct) == null ? void 0 : f.s) ? r.ct.s : null;
23356
23357
  let u = !1;
23357
23358
  a && typeof a == "string" && a.includes(",") && (u = a.includes(","));
@@ -23384,7 +23385,7 @@ function tn(e, t, n, o, r) {
23384
23385
  } else if (!_.isNil(i.f) && typeof a == "number" && Number.isFinite(a) && !/^\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(
23385
23386
  h
23386
23387
  )) {
23387
- if (i.v = a, _.isNil(i.ct) && (i.ct = { fa: "General", t: "g" }), /^\d+$/.test(h)) {
23388
+ if (i.v = a, _.isNil(i.ct) ? i.ct = { fa: "General", t: "g" } : ((i.ct.fa == null || i.ct.fa === "") && (i.ct = { ...i.ct, fa: "General" }), (i.ct.t == null || i.ct.t === "") && (i.ct = { ...i.ct, t: "g" })), /^\d+$/.test(h)) {
23388
23389
  const B = Me(e), $ = (x = x0(i == null ? void 0 : i.f)) == null ? void 0 : x.split(","), ne = $ == null ? void 0 : $.map((J) => J.trim().toUpperCase()), ie = S0(ne, o, B);
23389
23390
  ie && (i.ct.fa = ie, bi(ie) && (i.ct.t = "d"));
23390
23391
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "2.0.19",
5
+ "version": "2.0.20",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -91,4 +91,4 @@
91
91
  "typescript": "^5.2.2",
92
92
  "vite": "^5.0.0"
93
93
  }
94
- }
94
+ }