@fileverse-dev/dsheet 1.3.6 → 1.3.7

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 +40 -36
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -187442,59 +187442,63 @@ const rI = (e, t, r, i) => {
187442
187442
  function g5(e) {
187443
187443
  return e.toArray().map((t) => {
187444
187444
  const r = {};
187445
- t.forEach((a, l) => {
187446
- if (l === "celldata" && a instanceof Qa) {
187447
- r.celldata = a.toJSON();
187445
+ (t instanceof Qa ? (l) => {
187446
+ t.forEach(l);
187447
+ } : (l) => {
187448
+ Object.entries(t).forEach(([c, f]) => l(f, c));
187449
+ })((l, c) => {
187450
+ if (c === "celldata" && l instanceof Qa) {
187451
+ r.celldata = l.toJSON();
187448
187452
  return;
187449
187453
  }
187450
- if (l === "calcChain" && a instanceof Qa) {
187451
- let c = a.toJSON();
187452
- if (Object.keys(c).length === 0) return;
187453
- r.calcChain = c;
187454
+ if (c === "calcChain" && l instanceof Qa) {
187455
+ let f = l.toJSON();
187456
+ if (Object.keys(f).length === 0) return;
187457
+ r.calcChain = f;
187454
187458
  return;
187455
187459
  }
187456
- if (l === "luckysheet_conditionformat_save" && a instanceof Qa) {
187457
- let c = a.toJSON();
187458
- if (c.length === 0) return;
187459
- r.conditionRules = c;
187460
+ if (c === "luckysheet_conditionformat_save" && l instanceof Qa) {
187461
+ let f = l.toJSON();
187462
+ if (f.length === 0) return;
187463
+ r.conditionRules = f;
187460
187464
  return;
187461
187465
  }
187462
- if (l === "dataBlockCalcFunction" && a instanceof Qa) {
187463
- let c = a.toJSON();
187464
- if (Object.keys(c).length === 0) return;
187465
- r.dataBlockCalcFunction = c;
187466
+ if (c === "dataBlockCalcFunction" && l instanceof Qa) {
187467
+ let f = l.toJSON();
187468
+ if (Object.keys(f).length === 0) return;
187469
+ r.dataBlockCalcFunction = f;
187466
187470
  return;
187467
187471
  }
187468
- if (l === "liveQueryList" && a instanceof Qa) {
187469
- let c = a.toJSON();
187470
- if (Object.keys(c).length === 0) return;
187471
- r.liveQueryList = c;
187472
+ if (c === "liveQueryList" && l instanceof Qa) {
187473
+ let f = l.toJSON();
187474
+ if (Object.keys(f).length === 0) return;
187475
+ r.liveQueryList = f;
187472
187476
  return;
187473
187477
  }
187474
- if (l === "dataVerification" && a instanceof Qa) {
187475
- let c = a.toJSON();
187476
- if (Object.keys(c).length === 0) return;
187477
- r.dataVerification = c;
187478
+ if (c === "dataVerification" && l instanceof Qa) {
187479
+ let f = l.toJSON();
187480
+ if (Object.keys(f).length === 0) return;
187481
+ r.dataVerification = f;
187478
187482
  return;
187479
187483
  }
187480
- if (l === "hyperlink" && a instanceof Qa) {
187481
- let c = a.toJSON();
187482
- if (Object.keys(c).length === 0) return;
187483
- r.hyperlink = c;
187484
+ if (c === "hyperlink" && l instanceof Qa) {
187485
+ let f = l.toJSON();
187486
+ if (Object.keys(f).length === 0) return;
187487
+ r.hyperlink = f;
187484
187488
  return;
187485
187489
  }
187486
- if (l === "conditionRules" && a instanceof Qa) {
187487
- let c = a.toJSON();
187488
- if (Object.keys(c).length === 0) return;
187489
- r.conditionRules = c;
187490
+ if (c === "conditionRules" && l instanceof Qa) {
187491
+ let f = l.toJSON();
187492
+ if (Object.keys(f).length === 0) return;
187493
+ r.conditionRules = f;
187490
187494
  return;
187491
187495
  }
187492
- a instanceof Qa || a instanceof pc ? r[l] = a.toJSON() : r[l] = a;
187496
+ l instanceof Qa || l instanceof pc ? r[c] = l.toJSON() : r[c] = l;
187493
187497
  });
187494
- let i;
187495
- i = r.celldata ? Object.values(r.celldata) : [], r.celldata = i;
187496
187498
  let n;
187497
- return n = r.calcChain ? Object.values(r.calcChain) : [], r.calcChain = n, r;
187499
+ n = r.celldata ? Object.values(r.celldata) : [], r.celldata = n;
187500
+ let a;
187501
+ return a = r.calcChain ? Object.values(r.calcChain) : [], r.calcChain = a, r;
187498
187502
  });
187499
187503
  }
187500
187504
  const QMt = ({
@@ -188068,7 +188072,7 @@ const wAt = (e, t, r, i, n, a = !1, l, c, f, s, o, u = !1, v, m, h) => {
188068
188072
  try {
188069
188073
  const B = AMt(n), R = new Ld();
188070
188074
  dw(R, B), dw(e.current, B);
188071
- const P = [...R.share.keys()][0], A = R.getArray(P);
188075
+ const P = [...R.share.keys()][0], A = e.current.getArray(P);
188072
188076
  yAt(e.current, A);
188073
188077
  const C = g5(
188074
188078
  // @ts-ignore
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/dsheet",
3
3
  "private": false,
4
4
  "description": "DSheet",
5
- "version": "1.3.6",
5
+ "version": "1.3.7",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {