@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.
- package/dist/index.es.js +40 -36
- 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
|
|
187446
|
-
|
|
187447
|
-
|
|
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 (
|
|
187451
|
-
let
|
|
187452
|
-
if (Object.keys(
|
|
187453
|
-
r.calcChain =
|
|
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 (
|
|
187457
|
-
let
|
|
187458
|
-
if (
|
|
187459
|
-
r.conditionRules =
|
|
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 (
|
|
187463
|
-
let
|
|
187464
|
-
if (Object.keys(
|
|
187465
|
-
r.dataBlockCalcFunction =
|
|
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 (
|
|
187469
|
-
let
|
|
187470
|
-
if (Object.keys(
|
|
187471
|
-
r.liveQueryList =
|
|
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 (
|
|
187475
|
-
let
|
|
187476
|
-
if (Object.keys(
|
|
187477
|
-
r.dataVerification =
|
|
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 (
|
|
187481
|
-
let
|
|
187482
|
-
if (Object.keys(
|
|
187483
|
-
r.hyperlink =
|
|
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 (
|
|
187487
|
-
let
|
|
187488
|
-
if (Object.keys(
|
|
187489
|
-
r.conditionRules =
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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
|