@fileverse-dev/dsheet 3.0.1-yjs-12 → 3.0.1-yjs-13
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/{executeStringFunction-CVSty5Xh.js → executeStringFunction-CSjaDQJY.js} +81 -81
- package/dist/formula.js +1 -1
- package/dist/{index-DK-aTG1C.js → index-reQ-PTM7.js} +4 -4
- package/dist/index.es.js +2 -2
- package/dist/{use-xlsx-import-impl-DEKNot3A.js → use-xlsx-import-impl-mTmFxYvH.js} +2 -2
- package/dist/{xlsx-export-impl-Bwx-XHJ0.js → xlsx-export-impl-D-icQZMM.js} +2 -2
- package/package.json +1 -1
|
@@ -573,7 +573,7 @@ function Sp(e, t) {
|
|
|
573
573
|
for (let i = 0; i < e.luckysheetfile[n].data[o].length; i += 1) {
|
|
574
574
|
if (!((r = e.luckysheetfile[n].data[o][i]) != null && r.f) || (a = e.luckysheetfile[n].data[o][i]) != null && a.isDataBlockFormula)
|
|
575
575
|
continue;
|
|
576
|
-
const u =
|
|
576
|
+
const u = Ft(
|
|
577
577
|
e,
|
|
578
578
|
(l = e.luckysheetfile[n].data[o][i]) == null ? void 0 : l.f,
|
|
579
579
|
o,
|
|
@@ -603,7 +603,7 @@ function kp(e, t, n) {
|
|
|
603
603
|
);
|
|
604
604
|
})), !f || !((o = e.luckysheetfile[r].data[s][c]) != null && o.f) || (i = e.luckysheetfile[r].data[s][c]) != null && i.isDataBlockFormula)
|
|
605
605
|
continue;
|
|
606
|
-
const m =
|
|
606
|
+
const m = Ft(
|
|
607
607
|
e,
|
|
608
608
|
(u = e.luckysheetfile[r].data[s][c]) == null ? void 0 : u.f,
|
|
609
609
|
s,
|
|
@@ -16634,7 +16634,7 @@ function un(e, t, n, r, a, l) {
|
|
|
16634
16634
|
return !0;
|
|
16635
16635
|
}), o;
|
|
16636
16636
|
}
|
|
16637
|
-
var
|
|
16637
|
+
var Dt = {};
|
|
16638
16638
|
const xf = function(t) {
|
|
16639
16639
|
t.version = "0.11.2";
|
|
16640
16640
|
function n(q) {
|
|
@@ -17738,7 +17738,7 @@ const xf = function(t) {
|
|
|
17738
17738
|
A[P] !== void 0 && we(A[P], P);
|
|
17739
17739
|
}, t.init_table = p, t.format = ge;
|
|
17740
17740
|
};
|
|
17741
|
-
xf(
|
|
17741
|
+
xf(Dt);
|
|
17742
17742
|
const If = new Date(1900, 2, 1, 0, 0, 0), qf = 999999999999997, Fo = 1e15;
|
|
17743
17743
|
function Lo(e) {
|
|
17744
17744
|
return Number.isFinite(e) && e > qf && e < Fo;
|
|
@@ -17855,9 +17855,9 @@ function Qe(e) {
|
|
|
17855
17855
|
c ? (n = {
|
|
17856
17856
|
fa: `#,##0.${new Array(s + 1).join("0")}%`,
|
|
17857
17857
|
t: "n"
|
|
17858
|
-
}, r = rn(e).value(), t =
|
|
17858
|
+
}, r = rn(e).value(), t = Dt.format(n.fa, r)) : (t = e.toString(), n = { fa: "@", t: "s" });
|
|
17859
17859
|
} else
|
|
17860
|
-
n = { fa: `0.${new Array(s + 1).join("0")}%`, t: "n" }, r = rn(e).value(), t =
|
|
17860
|
+
n = { fa: `0.${new Array(s + 1).join("0")}%`, t: "n" }, r = rn(e).value(), t = Dt.format(n.fa, r);
|
|
17861
17861
|
} else
|
|
17862
17862
|
t = e.toString(), n = { fa: "@", t: "s" };
|
|
17863
17863
|
else if (l.indexOf(",") > -1) {
|
|
@@ -17868,9 +17868,9 @@ function Qe(e) {
|
|
|
17868
17868
|
i = !1;
|
|
17869
17869
|
break;
|
|
17870
17870
|
}
|
|
17871
|
-
i ? (n = { fa: "#,##0%", t: "n" }, r = rn(e).value(), t =
|
|
17871
|
+
i ? (n = { fa: "#,##0%", t: "n" }, r = rn(e).value(), t = Dt.format(n.fa, r)) : (t = e.toString(), n = { fa: "@", t: "s" });
|
|
17872
17872
|
} else
|
|
17873
|
-
n = { fa: "0%", t: "n" }, r = rn(e).value(), t =
|
|
17873
|
+
n = { fa: "0%", t: "n" }, r = rn(e).value(), t = Dt.format(n.fa, r);
|
|
17874
17874
|
else
|
|
17875
17875
|
t = e.toString(), n = { fa: "@", t: "s" };
|
|
17876
17876
|
} else if (e.toString().indexOf(".") > -1)
|
|
@@ -17885,9 +17885,9 @@ function Qe(e) {
|
|
|
17885
17885
|
i = !1;
|
|
17886
17886
|
break;
|
|
17887
17887
|
}
|
|
17888
|
-
i ? (n = { fa: `#,##0.${new Array(o + 1).join("0")}`, t: "n" }, r = rn(e).value(), t =
|
|
17888
|
+
i ? (n = { fa: `#,##0.${new Array(o + 1).join("0")}`, t: "n" }, r = rn(e).value(), t = Dt.format(n.fa, r)) : (t = e.toString(), n = { fa: "@", t: "s" });
|
|
17889
17889
|
} else
|
|
17890
|
-
Ge(a) && Ge(l) ? (n = { fa: `0.${new Array(o + 1).join("0")}`, t: "n" }, r = rn(e).value(), t =
|
|
17890
|
+
Ge(a) && Ge(l) ? (n = { fa: `0.${new Array(o + 1).join("0")}`, t: "n" }, r = rn(e).value(), t = Dt.format(n.fa, r)) : (t = e.toString(), n = { fa: "@", t: "s" });
|
|
17891
17891
|
} else
|
|
17892
17892
|
t = e.toString(), n = { fa: "@", t: "s" };
|
|
17893
17893
|
else if (Ge(e)) {
|
|
@@ -17979,7 +17979,7 @@ function Qe(e) {
|
|
|
17979
17979
|
"dy dd/MM/yyyy": "ddd dd/mm/yyyy",
|
|
17980
17980
|
"dy MM/dd/yyyy": "ddd mm/dd/yyyy"
|
|
17981
17981
|
};
|
|
17982
|
-
n.fa = o[a.formatType] || (tf() === "us" ? "MM/dd/yyyy" : "dd/MM/yyyy"), t =
|
|
17982
|
+
n.fa = o[a.formatType] || (tf() === "us" ? "MM/dd/yyyy" : "dd/MM/yyyy"), t = Dt.format(n.fa, r);
|
|
17983
17983
|
} else
|
|
17984
17984
|
t = String(e), n.fa = "General", n.t = "g";
|
|
17985
17985
|
} else
|
|
@@ -18036,10 +18036,10 @@ function Hf(e, t) {
|
|
|
18036
18036
|
if (!Number.isFinite(d)) continue;
|
|
18037
18037
|
if (u === "crypto") {
|
|
18038
18038
|
const b = `0 "${i}"`, w = { fa: b, t: "n" };
|
|
18039
|
-
return [
|
|
18039
|
+
return [Dt.format(b, d), w, d];
|
|
18040
18040
|
}
|
|
18041
18041
|
const p = Xs(i, 0, { spaced: !1 }), g = { fa: p, t: "n" };
|
|
18042
|
-
return [
|
|
18042
|
+
return [Dt.format(p, d), g, d];
|
|
18043
18043
|
}
|
|
18044
18044
|
return null;
|
|
18045
18045
|
}
|
|
@@ -18055,7 +18055,7 @@ function Xs(e, t = 2, n) {
|
|
|
18055
18055
|
return `${js(e)}${l}${a}`;
|
|
18056
18056
|
}
|
|
18057
18057
|
function ut(e, t) {
|
|
18058
|
-
return
|
|
18058
|
+
return Dt.format(e, t);
|
|
18059
18059
|
}
|
|
18060
18060
|
const Zs = 15;
|
|
18061
18061
|
function br(e) {
|
|
@@ -18091,7 +18091,7 @@ function br(e) {
|
|
|
18091
18091
|
l && (e.m = l[0].toString());
|
|
18092
18092
|
}
|
|
18093
18093
|
function ya(e, t) {
|
|
18094
|
-
return
|
|
18094
|
+
return Dt.is_date(e, t);
|
|
18095
18095
|
}
|
|
18096
18096
|
function Uf(e) {
|
|
18097
18097
|
let t = Number(e);
|
|
@@ -18509,7 +18509,7 @@ class fd {
|
|
|
18509
18509
|
function eu(e) {
|
|
18510
18510
|
return new DOMParser().parseFromString(e, "text/html").body.childNodes[0];
|
|
18511
18511
|
}
|
|
18512
|
-
function
|
|
18512
|
+
function qt(e) {
|
|
18513
18513
|
const t = e.split("!");
|
|
18514
18514
|
let n;
|
|
18515
18515
|
t.length > 1 ? [, n] = t : [n] = t;
|
|
@@ -18519,12 +18519,12 @@ function Dt(e) {
|
|
|
18519
18519
|
const a = /^(([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+))$/g;
|
|
18520
18520
|
let l = /^(((([a-zA-Z]+)|([$][a-zA-Z]+))(([0-9]+)|([$][0-9]+)))|((([a-zA-Z]+)|([$][a-zA-Z]+))))$/g;
|
|
18521
18521
|
if (n.indexOf(":") === -1) {
|
|
18522
|
-
const s = parseInt(n.replace(/[^0-9]/g, ""), 10) - 1, c =
|
|
18522
|
+
const s = parseInt(n.replace(/[^0-9]/g, ""), 10) - 1, c = It(n.replace(/[^A-Za-z]/g, ""));
|
|
18523
18523
|
return !Number.isNaN(s) && !Number.isNaN(c) && n.toString().match(a) ? !0 : (!Number.isNaN(s) || !Number.isNaN(c), !1);
|
|
18524
18524
|
}
|
|
18525
18525
|
l = /^((\$?[A-Za-z]+\$?\d+)|(\$?[A-Za-z]+)|(\$?\d+))$/g;
|
|
18526
18526
|
const o = n.split(":"), i = [], u = [];
|
|
18527
|
-
return i[0] = parseInt(o[0].replace(/[^0-9]/g, ""), 10) - 1, i[1] = parseInt(o[1].replace(/[^0-9]/g, ""), 10) - 1, i[0] > i[1] || (u[0] =
|
|
18527
|
+
return i[0] = parseInt(o[0].replace(/[^0-9]/g, ""), 10) - 1, i[1] = parseInt(o[1].replace(/[^0-9]/g, ""), 10) - 1, i[0] > i[1] || (u[0] = It(o[0].replace(/[^A-Za-z]/g, "")), u[1] = It(o[1].replace(/[^A-Za-z]/g, "")), u[0] > u[1]) ? !1 : !!(o[0].toString().match(l) && o[1].toString().match(l));
|
|
18528
18528
|
}
|
|
18529
18529
|
function ji(e, t, n) {
|
|
18530
18530
|
h.isNil(t) || t.length === 0 || h.isNil(n) || (h.isNil(e.formulaCache.cellTextToIndexList) && (e.formulaCache.cellTextToIndexList = {}), t.indexOf("!") > -1 ? (t = t.replace(/\\'/g, "'").replace(/''/g, "'"), e.formulaCache.cellTextToIndexList[t] = n) : e.formulaCache.cellTextToIndexList[`${t}_${n.sheetId}`] = n);
|
|
@@ -18557,7 +18557,7 @@ function Hn(e, t, n) {
|
|
|
18557
18557
|
if (h.isNil(i))
|
|
18558
18558
|
return null;
|
|
18559
18559
|
if (l.indexOf(":") === -1) {
|
|
18560
|
-
const d = parseInt(l.replace(/[^0-9]/g, ""), 10) - 1, p =
|
|
18560
|
+
const d = parseInt(l.replace(/[^0-9]/g, ""), 10) - 1, p = It(l.replace(/[^A-Za-z]/g, ""));
|
|
18561
18561
|
if (!Number.isNaN(d) && !Number.isNaN(p)) {
|
|
18562
18562
|
const g = {
|
|
18563
18563
|
row: [d, d],
|
|
@@ -18569,7 +18569,7 @@ function Hn(e, t, n) {
|
|
|
18569
18569
|
return null;
|
|
18570
18570
|
}
|
|
18571
18571
|
const s = l.split(":"), c = [], f = [];
|
|
18572
|
-
if (c[0] = parseInt(s[0].replace(/[^0-9]/g, ""), 10) - 1, c[1] = parseInt(s[1].replace(/[^0-9]/g, ""), 10) - 1, Number.isNaN(c[0]) && (c[0] = 0), Number.isNaN(c[1]) && (c[1] = i.length - 1), c[0] > c[1] || (f[0] =
|
|
18572
|
+
if (c[0] = parseInt(s[0].replace(/[^0-9]/g, ""), 10) - 1, c[1] = parseInt(s[1].replace(/[^0-9]/g, ""), 10) - 1, Number.isNaN(c[0]) && (c[0] = 0), Number.isNaN(c[1]) && (c[1] = i.length - 1), c[0] > c[1] || (f[0] = It(s[0].replace(/[^A-Za-z]/g, "")), f[1] = It(s[1].replace(/[^A-Za-z]/g, "")), Number.isNaN(f[0]) && (f[0] = 0), Number.isNaN(f[1]) && (f[1] = i[0].length - 1), f[0] > f[1]))
|
|
18573
18573
|
return null;
|
|
18574
18574
|
const m = {
|
|
18575
18575
|
row: c,
|
|
@@ -18602,7 +18602,7 @@ function md(e, t, n, r, a, l, o) {
|
|
|
18602
18602
|
try {
|
|
18603
18603
|
e.calculateSheetId = a;
|
|
18604
18604
|
const i = t.split(",")[t.split(",").length - 1].split("'")[1].split("'")[0], u = h.trim(i);
|
|
18605
|
-
|
|
18605
|
+
qt(u) && typeof o == "function" && o(u);
|
|
18606
18606
|
} catch {
|
|
18607
18607
|
}
|
|
18608
18608
|
}
|
|
@@ -18715,10 +18715,10 @@ function cr(e, t, n, r, a, l, o) {
|
|
|
18715
18715
|
f.dquote === 0 && f.squote === 0 ? s += h.trim(y) : s += y;
|
|
18716
18716
|
if (u === i.length - 1) {
|
|
18717
18717
|
let b = "", w = h.trim(s).replace(/'/g, "\\'");
|
|
18718
|
-
if (
|
|
18718
|
+
if (qt(w) && w.substring(0, 1) !== ":")
|
|
18719
18719
|
b = `luckysheet_getcelldata('${w}')`;
|
|
18720
18720
|
else if (w.substring(0, 1) === ":")
|
|
18721
|
-
w = w.substring(1),
|
|
18721
|
+
w = w.substring(1), qt(w) && (b = `luckysheet_getSpecialReference(false,${c},'${w}')`);
|
|
18722
18722
|
else {
|
|
18723
18723
|
s = h.trim(s);
|
|
18724
18724
|
const v = /{.*?}/;
|
|
@@ -18763,7 +18763,7 @@ function hd(e) {
|
|
|
18763
18763
|
}
|
|
18764
18764
|
return n;
|
|
18765
18765
|
}
|
|
18766
|
-
function
|
|
18766
|
+
function Ot(e, t, n, r) {
|
|
18767
18767
|
var s, c;
|
|
18768
18768
|
h.isNil(r) && (r = e.currentSheetId);
|
|
18769
18769
|
const a = `${r}:${t}:${n}`;
|
|
@@ -18844,7 +18844,7 @@ function gd(e) {
|
|
|
18844
18844
|
const t = e.indexOf("(");
|
|
18845
18845
|
return t === -1 ? e : `=${e.substring(1, t).replace(/\./g, "_")}${e.substring(t)}`;
|
|
18846
18846
|
}
|
|
18847
|
-
function
|
|
18847
|
+
function Ft(e, t, n, r, a, l, o, i) {
|
|
18848
18848
|
var $, S;
|
|
18849
18849
|
const u = t;
|
|
18850
18850
|
if (h.isNil(a) && (a = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = gd(t)), t.indexOf(Zn.r) > -1)
|
|
@@ -18959,7 +18959,7 @@ function bd(e) {
|
|
|
18959
18959
|
if (h.isNil(c) && (c = Eo(e, { id: i.id }) ?? void 0), h.isNil(c))
|
|
18960
18960
|
continue;
|
|
18961
18961
|
const f = {};
|
|
18962
|
-
h.isNil(i.spe) || (i.spe.type === "sparklines" ? f.spl = i.spe.data : i.spe.type === "dynamicArrayItem" && (s.dynamicArray = yd(e, i.spe.data))), f.v = i.v, f.f = i.f,
|
|
18962
|
+
h.isNil(i.spe) || (i.spe.type === "sparklines" ? f.spl = i.spe.data : i.spe.type === "dynamicArrayItem" && (s.dynamicArray = yd(e, i.spe.data))), f.v = i.v, f.f = i.f, Lt(e, i.r, i.c, c, f);
|
|
18963
18963
|
const m = ((n = c == null ? void 0 : c[i.r]) == null ? void 0 : n[i.c]) ?? null, d = `${i.r}_${i.c}`;
|
|
18964
18964
|
Bn(m) ? a.set(`${i.id}:${d}`, {
|
|
18965
18965
|
sheetId: i.id,
|
|
@@ -19007,7 +19007,7 @@ function Ho(e, t, n, r, a, l) {
|
|
|
19007
19007
|
);
|
|
19008
19008
|
return;
|
|
19009
19009
|
}
|
|
19010
|
-
const u =
|
|
19010
|
+
const u = Ft(
|
|
19011
19011
|
e,
|
|
19012
19012
|
o,
|
|
19013
19013
|
t.r,
|
|
@@ -19147,7 +19147,7 @@ function ln(e, t, n, r, a, l, o = !1) {
|
|
|
19147
19147
|
const i = `${a}:${t}:${n}`, u = Js(i, e.formulaCache.depsByCell), s = u.size ? ud(u, e.formulaCache.revDepsByCell) : /* @__PURE__ */ new Set();
|
|
19148
19148
|
if (!h.isNil(r)) {
|
|
19149
19149
|
const $ = [[{ v: void 0 }]];
|
|
19150
|
-
|
|
19150
|
+
Lt(e, 0, 0, $, r), [
|
|
19151
19151
|
[
|
|
19152
19152
|
e.formulaCache.execFunctionGlobalData[`${t}_${n}_${a}`]
|
|
19153
19153
|
]
|
|
@@ -19244,7 +19244,7 @@ function ln(e, t, n, r, a, l, o = !1) {
|
|
|
19244
19244
|
O[ae] !== Y.length - 1 && (Y[O[ae]] += Y[O[ae] + 1], Y.splice(O[ae] + 1, 1));
|
|
19245
19245
|
for (let ae = 0; ae < Y.length; ae += 1) {
|
|
19246
19246
|
const G = Y[ae];
|
|
19247
|
-
if (G.length <= 1 || G.substring(0, 1) === '"' && G.substring(G.length - 1, 1) === '"' || !
|
|
19247
|
+
if (G.length <= 1 || G.substring(0, 1) === '"' && G.substring(G.length - 1, 1) === '"' || !qt(G))
|
|
19248
19248
|
continue;
|
|
19249
19249
|
const Z = Hn(e, h.trim(G), S.id);
|
|
19250
19250
|
h.isNil(Z) || K.push(Z);
|
|
@@ -19662,7 +19662,7 @@ function In(e) {
|
|
|
19662
19662
|
return;
|
|
19663
19663
|
a += s;
|
|
19664
19664
|
}
|
|
19665
|
-
if (
|
|
19665
|
+
if (qt(h.trim(i))) {
|
|
19666
19666
|
const d = wr.length > wn ? wr[wn] : wn;
|
|
19667
19667
|
a += `<span class="fortune-formula-functionrange-cell" rangeindex="${d}" dir="auto" style="color:${ba[d]};">${i}</span>`, wn += 1;
|
|
19668
19668
|
} else if (u > 0)
|
|
@@ -19846,7 +19846,7 @@ function xd(e) {
|
|
|
19846
19846
|
const t = e.trim();
|
|
19847
19847
|
if (!t.startsWith("=")) return !1;
|
|
19848
19848
|
const n = t.slice(1).trim();
|
|
19849
|
-
return !n || n.includes("(") || n.includes(")") ? !1 :
|
|
19849
|
+
return !n || n.includes("(") || n.includes(")") ? !1 : qt(n);
|
|
19850
19850
|
}
|
|
19851
19851
|
function Id(e) {
|
|
19852
19852
|
e.formulaCache.rangeSelectionActive = !1, e.formulaCache.keyboardRangeSelectionLock = !0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1;
|
|
@@ -19869,7 +19869,7 @@ function zo(e) {
|
|
|
19869
19869
|
e,
|
|
19870
19870
|
o
|
|
19871
19871
|
);
|
|
19872
|
-
if (Rd(e, o) || i.length > 0 && !
|
|
19872
|
+
if (Rd(e, o) || i.length > 0 && !qt(i))
|
|
19873
19873
|
return !1;
|
|
19874
19874
|
const u = an(e.textContent || ""), c = u.slice(o).replace(/^\s+/, "");
|
|
19875
19875
|
if (c.length === 0) {
|
|
@@ -20057,11 +20057,11 @@ function Ld(e, t, n, r, a, l) {
|
|
|
20057
20057
|
o.length > 1 ? ([, i] = o, u = `${o[0]}!`) : [i] = o;
|
|
20058
20058
|
let s, c, f, m, d, p, g, y;
|
|
20059
20059
|
if (i.indexOf(":") === -1) {
|
|
20060
|
-
s = parseInt(i.replace(/[^0-9]/g, ""), 10) - 1, c = s, f =
|
|
20060
|
+
s = parseInt(i.replace(/[^0-9]/g, ""), 10) - 1, c = s, f = It(i.replace(/[^A-Za-z]/g, "")), m = f;
|
|
20061
20061
|
const b = jn(i);
|
|
20062
20062
|
d = b[0] ? "$" : "", p = d, g = b[1] ? "$" : "", y = g;
|
|
20063
20063
|
} else {
|
|
20064
|
-
if (i = i.split(":"), s = parseInt(i[0].replace(/[^0-9]/g, ""), 10) - 1, c = parseInt(i[1].replace(/[^0-9]/g, ""), 10) - 1, s > c || (f =
|
|
20064
|
+
if (i = i.split(":"), s = parseInt(i[0].replace(/[^0-9]/g, ""), 10) - 1, c = parseInt(i[1].replace(/[^0-9]/g, ""), 10) - 1, s > c || (f = It(i[0].replace(/[^A-Za-z]/g, "")), m = It(i[1].replace(/[^A-Za-z]/g, "")), f > m))
|
|
20065
20065
|
return e;
|
|
20066
20066
|
const b = jn(i[0]);
|
|
20067
20067
|
d = b[0] ? "$" : "", g = b[1] ? "$" : "";
|
|
@@ -20273,7 +20273,7 @@ function xt(e, t, n, r, a, l) {
|
|
|
20273
20273
|
f + m in it ? (u.length > 0 ? (s += xt(u, t, n, r, a, l) + f + m, u = "") : s += f + m, i += 1) : !/[^0-9]/.test(m) && f === "-" && (p === "(" || p == null || p === "," || p === " " || p in it) ? u += f : u.length > 0 ? (s += xt(u, t, n, r, a, l) + f, u = "") : s += f;
|
|
20274
20274
|
} else
|
|
20275
20275
|
u += f;
|
|
20276
|
-
i === o.length - 1 && (
|
|
20276
|
+
i === o.length - 1 && (qt(h.trim(u)) ? s += Ld(
|
|
20277
20277
|
h.trim(u),
|
|
20278
20278
|
t,
|
|
20279
20279
|
n,
|
|
@@ -20451,13 +20451,13 @@ function Ta(e, t, n) {
|
|
|
20451
20451
|
const r = t.split("!");
|
|
20452
20452
|
let a, l = "";
|
|
20453
20453
|
if (r.length > 1 ? ([, a] = r, l = `${r[0]}!`) : [a] = r, a.indexOf(":") === -1) {
|
|
20454
|
-
let p = parseInt(a.replace(/[^0-9]/g, ""), 10), g =
|
|
20454
|
+
let p = parseInt(a.replace(/[^0-9]/g, ""), 10), g = It(a.replace(/[^A-Za-z]/g, ""));
|
|
20455
20455
|
const y = jn(a), b = y[0] ? "$" : "", w = y[1] ? "$" : "";
|
|
20456
20456
|
return e === "u" && !y[0] ? p -= n : e === "r" && !y[1] ? g += n : e === "l" && !y[1] ? g -= n : e === "d" && !y[0] && (p += n), !Number.isNaN(p) && !Number.isNaN(g) ? l + w + rt(g) + b + p : Number.isNaN(p) ? Number.isNaN(g) ? t : l + w + rt(g) : l + b + p;
|
|
20457
20457
|
}
|
|
20458
20458
|
a = a.split(":");
|
|
20459
20459
|
const o = [], i = [];
|
|
20460
|
-
if (o[0] = parseInt(a[0].replace(/[^0-9]/g, ""), 10), o[1] = parseInt(a[1].replace(/[^0-9]/g, ""), 10), o[0] > o[1] || (i[0] =
|
|
20460
|
+
if (o[0] = parseInt(a[0].replace(/[^0-9]/g, ""), 10), o[1] = parseInt(a[1].replace(/[^0-9]/g, ""), 10), o[0] > o[1] || (i[0] = It(a[0].replace(/[^A-Za-z]/g, "")), i[1] = It(a[1].replace(/[^A-Za-z]/g, "")), i[0] > i[1]))
|
|
20461
20461
|
return t;
|
|
20462
20462
|
const u = jn(a[0]), s = jn(a[1]), c = u[0] ? "$" : "", f = u[1] ? "$" : "", m = s[0] ? "$" : "", d = s[1] ? "$" : "";
|
|
20463
20463
|
return e === "u" ? (u[0] || (o[0] -= n), s[0] || (o[1] -= n)) : e === "r" ? (u[1] || (i[0] += n), s[1] || (i[1] += n)) : e === "l" ? (u[1] || (i[0] -= n), s[1] || (i[1] -= n)) : e === "d" && (u[0] || (o[0] += n), s[0] || (o[1] += n)), o[0] < 0 || i[0] < 0 ? Zn.r : Number.isNaN(i[0]) && Number.isNaN(i[1]) ? `${l + c + o[0]}:${m}${o[1]}` : Number.isNaN(o[0]) && Number.isNaN(o[1]) ? `${l + f + rt(i[0])}:${d}${rt(i[1])}` : `${l + f + rt(i[0]) + c + o[0]}:${d}${rt(i[1])}${m}${o[1]}`;
|
|
@@ -20506,7 +20506,7 @@ function on(e, t, n, r) {
|
|
|
20506
20506
|
s + c in it ? (o.length > 0 ? (i += on(e, o, n, r) + s + c, o = "") : i += s + c, l += 1) : !/[^0-9]/.test(c) && s === "-" && (m === "(" || m == null || m === "," || m === " " || m in it) ? o += s : o.length > 0 ? (i += on(e, o, n, r) + s, o = "") : i += s;
|
|
20507
20507
|
} else
|
|
20508
20508
|
o += s;
|
|
20509
|
-
l === a.length - 1 && (
|
|
20509
|
+
l === a.length - 1 && (qt(h.trim(o)) ? n === "down" ? i += Bd(h.trim(o), r) : n === "up" ? i += Pd(h.trim(o), r) : n === "left" ? i += Hd(h.trim(o), r) : n === "right" && (i += Ud(h.trim(o), r)) : i += h.trim(o)), l += 1;
|
|
20510
20510
|
}
|
|
20511
20511
|
return i = i.replace(/NaN/g, ""), i;
|
|
20512
20512
|
}
|
|
@@ -20521,7 +20521,7 @@ function Yd(e, t, n, r) {
|
|
|
20521
20521
|
(o, i, u, s, c, f, m, d, p, g) => {
|
|
20522
20522
|
if ((i ? au(i.slice(0, -1)) : t) !== n) return o;
|
|
20523
20523
|
const b = (_, T) => {
|
|
20524
|
-
const C =
|
|
20524
|
+
const C = It(_), $ = parseInt(T, 10) - 1, S = !Number.isNaN(C) && !h.isNil(l == null ? void 0 : l[C]) ? rt(l[C]) : _, N = !Number.isNaN($) && !h.isNil(a == null ? void 0 : a[$]) ? String(a[$] + 1) : T;
|
|
20525
20525
|
return { nextCol: S, nextRow: N };
|
|
20526
20526
|
}, w = b(s, f);
|
|
20527
20527
|
if (h.isNil(d) || h.isNil(g))
|
|
@@ -20534,7 +20534,7 @@ function Yd(e, t, n, r) {
|
|
|
20534
20534
|
function Vd(e) {
|
|
20535
20535
|
const t = e.match(/^(\$?)([A-Za-z]+)(\$?)(\d+)$/);
|
|
20536
20536
|
if (!t) return null;
|
|
20537
|
-
const n = t[1] === "$", r =
|
|
20537
|
+
const n = t[1] === "$", r = It(t[2]), a = t[3] === "$", l = parseInt(t[4], 10) - 1;
|
|
20538
20538
|
return Number.isNaN(l) || Number.isNaN(r) ? null : { colAbs: n, rowAbs: a, col: r, row: l };
|
|
20539
20539
|
}
|
|
20540
20540
|
function Wd(e) {
|
|
@@ -20654,7 +20654,7 @@ function or(e, t, n, r, a, l) {
|
|
|
20654
20654
|
u += f;
|
|
20655
20655
|
if (i === o.length - 1) {
|
|
20656
20656
|
const m = h.trim(u);
|
|
20657
|
-
|
|
20657
|
+
qt(m) ? s += jd(
|
|
20658
20658
|
m,
|
|
20659
20659
|
t,
|
|
20660
20660
|
n,
|
|
@@ -21563,7 +21563,7 @@ function rm(e, t, n) {
|
|
|
21563
21563
|
let N = C;
|
|
21564
21564
|
const M = $ - w, z = S - _;
|
|
21565
21565
|
M > 0 && (N = `=${on(e, N, "down", M)}`), z > 0 && (N = `=${on(e, N, "right", z)}`);
|
|
21566
|
-
let K =
|
|
21566
|
+
let K = Ft(e, N, $, S)[1];
|
|
21567
21567
|
typeof K != "boolean" && (K = !!Number(K)), K && (`${$}_${S}` in r || (r[`${$}_${S}`] = {
|
|
21568
21568
|
textColor: f,
|
|
21569
21569
|
cellColor: m,
|
|
@@ -21886,7 +21886,7 @@ function uu(e, t, n, r) {
|
|
|
21886
21886
|
}
|
|
21887
21887
|
function im(e, t) {
|
|
21888
21888
|
const n = [];
|
|
21889
|
-
if (
|
|
21889
|
+
if (qt(t)) {
|
|
21890
21890
|
const r = Hn(e, t), a = Ee(e, r.sheetId), l = e.luckysheetfile[a].data;
|
|
21891
21891
|
if (!l) return [];
|
|
21892
21892
|
for (let o = r.row[0]; o <= r.row[1]; o += 1)
|
|
@@ -21962,7 +21962,7 @@ function um(e, t, n) {
|
|
|
21962
21962
|
let o = l.value2;
|
|
21963
21963
|
l.checked && (o = l.value1);
|
|
21964
21964
|
const i = Se(e);
|
|
21965
|
-
|
|
21965
|
+
Lt(e, t, n, i, o), (u = e == null ? void 0 : e.hooks) != null && u.updateCellYdoc && e.hooks.updateCellYdoc([
|
|
21966
21966
|
{
|
|
21967
21967
|
sheetId: e.currentSheetId,
|
|
21968
21968
|
path: ["celldata"],
|
|
@@ -22080,7 +22080,7 @@ function og(e, t, n) {
|
|
|
22080
22080
|
}
|
|
22081
22081
|
f = typeof w == "number" ? b[w] : "";
|
|
22082
22082
|
}
|
|
22083
|
-
|
|
22083
|
+
Lt(e, l, o, r, {
|
|
22084
22084
|
ct: {
|
|
22085
22085
|
fa: "General",
|
|
22086
22086
|
t: "g"
|
|
@@ -22370,7 +22370,7 @@ function Na(e, t, n, r, a) {
|
|
|
22370
22370
|
);
|
|
22371
22371
|
const c = a || Se(e);
|
|
22372
22372
|
if (!c) return !1;
|
|
22373
|
-
|
|
22373
|
+
Lt(e, t, n, c, {
|
|
22374
22374
|
...r,
|
|
22375
22375
|
v: i[0][0],
|
|
22376
22376
|
tb: "1"
|
|
@@ -22379,7 +22379,7 @@ function Na(e, t, n, r, a) {
|
|
|
22379
22379
|
for (let d = 0; d < s; d++) {
|
|
22380
22380
|
if (m === 0 && d === 0) continue;
|
|
22381
22381
|
const p = i[m][d];
|
|
22382
|
-
|
|
22382
|
+
Lt(e, t + m, n + d, c, {
|
|
22383
22383
|
v: p,
|
|
22384
22384
|
ct: { fa: "General", t: typeof p == "number" ? "n" : "g" },
|
|
22385
22385
|
tb: "1"
|
|
@@ -22556,7 +22556,7 @@ function at(e, t, n, r) {
|
|
|
22556
22556
|
}
|
|
22557
22557
|
return l === void 0 && (l = null), l;
|
|
22558
22558
|
}
|
|
22559
|
-
function
|
|
22559
|
+
function Lt(e, t, n, r, a) {
|
|
22560
22560
|
var d, p, g, y, b, w, v, _, T, C, $, S, N, M, z, Q, K, le, F, J, j, Y, O, $e, ae;
|
|
22561
22561
|
if (e.allowEdit === !1 || e.isFlvReadOnly || (h.isNil(r) && (r = Se(e)), !r)) return;
|
|
22562
22562
|
let l = r[t][n];
|
|
@@ -22935,7 +22935,7 @@ function yo(e, t, n, r, a, l) {
|
|
|
22935
22935
|
if (h.isPlainObject(D)) {
|
|
22936
22936
|
if (!_e)
|
|
22937
22937
|
if (h.isString(a) && a.slice(0, 1) === "=" && a.length > 1) {
|
|
22938
|
-
const re =
|
|
22938
|
+
const re = Ft(e, a, t, n, void 0, void 0, !0);
|
|
22939
22939
|
if (Oe = !1, D = h.cloneDeep(((d = Me == null ? void 0 : Me[t]) == null ? void 0 : d[n]) || {}), [, D.v, D.f] = re, D.ct || (D.ct = {}), Ce ? (D.ct.s = [
|
|
22940
22940
|
{
|
|
22941
22941
|
v: ge(D.f),
|
|
@@ -22949,7 +22949,7 @@ function yo(e, t, n, r, a, l) {
|
|
|
22949
22949
|
} else if (h.isPlainObject(a)) {
|
|
22950
22950
|
const re = a.f;
|
|
22951
22951
|
if (h.isString(re) && re.slice(0, 1) === "=" && re.length > 1) {
|
|
22952
|
-
const be =
|
|
22952
|
+
const be = Ft(
|
|
22953
22953
|
e,
|
|
22954
22954
|
re,
|
|
22955
22955
|
t,
|
|
@@ -22973,13 +22973,13 @@ function yo(e, t, n, r, a, l) {
|
|
|
22973
22973
|
D[be] = a[be];
|
|
22974
22974
|
}), bn(e, t, n);
|
|
22975
22975
|
} else {
|
|
22976
|
-
bn(e, t, n),
|
|
22976
|
+
bn(e, t, n), Ot(e, t, n), D = h.cloneDeep(((g = Me == null ? void 0 : Me[t]) == null ? void 0 : g[n]) || {}), D.v = a, delete D.f, delete D._formulaEditHtml, delete D.spl, delete D.m;
|
|
22977
22977
|
const re = (y = U == null ? void 0 : U.m) != null && y.toString().includes(".") ? (w = (b = U == null ? void 0 : U.m) == null ? void 0 : b.toString().split(" ")[0].split(".")[1]) == null ? void 0 : w.length : 0, be = (v = U == null ? void 0 : U.m) == null ? void 0 : v.toString().split(" ")[1];
|
|
22978
22978
|
typeof D == "object" && (D != null && D.baseValue) && (U != null && U.baseCurrencyPrice) && (D.m = `${(parseFloat(a) / U.baseCurrencyPrice).toFixed(re || 2)} ${be}`, D.baseValue = a), ln(e, t, n, D), Oe = !1, D.qp === 1 && `${a}`.substring(0, 1) !== "'" && (D.qp = 0, D.ct && (D.ct.fa = "General", D.ct.t = "n"));
|
|
22979
22979
|
}
|
|
22980
22980
|
a = D;
|
|
22981
22981
|
} else if (h.isString(a) && a.slice(0, 1) === "=" && a.length > 1) {
|
|
22982
|
-
const re =
|
|
22982
|
+
const re = Ft(e, a, t, n, void 0, void 0, !0);
|
|
22983
22983
|
if (Oe = !1, a = {
|
|
22984
22984
|
v: re[1],
|
|
22985
22985
|
f: re[2]
|
|
@@ -23006,7 +23006,7 @@ function yo(e, t, n, r, a, l) {
|
|
|
23006
23006
|
} else if (h.isPlainObject(a)) {
|
|
23007
23007
|
const re = a.f;
|
|
23008
23008
|
if (h.isString(re) && re.slice(0, 1) === "=" && re.length > 1) {
|
|
23009
|
-
const be =
|
|
23009
|
+
const be = Ft(
|
|
23010
23010
|
e,
|
|
23011
23011
|
re,
|
|
23012
23012
|
t,
|
|
@@ -23030,7 +23030,7 @@ function yo(e, t, n, r, a, l) {
|
|
|
23030
23030
|
h.isNil(a.v) && (a.v = be);
|
|
23031
23031
|
}
|
|
23032
23032
|
} else
|
|
23033
|
-
bn(e, t, n),
|
|
23033
|
+
bn(e, t, n), Ot(e, t, n), ln(e, t, n, a), Oe = !1;
|
|
23034
23034
|
const Te = ($ = U == null ? void 0 : U.m) != null && $.toString().includes(".") ? (N = (S = U == null ? void 0 : U.m) == null ? void 0 : S.toString().split(" ")[0].split(".")[1]) == null ? void 0 : N.length : 0, I = (M = U == null ? void 0 : U.m) == null ? void 0 : M.toString().split(" ")[1];
|
|
23035
23035
|
typeof a == "object" && a.baseValue && !(a != null && a.m) && (a.m = `${// @ts-expect-error later
|
|
23036
23036
|
(parseFloat(a == null ? void 0 : a.v) / (U == null ? void 0 : U.baseCurrencyPrice)).toFixed(
|
|
@@ -23066,7 +23066,7 @@ function yo(e, t, n, r, a, l) {
|
|
|
23066
23066
|
W.hyperlink || (W.hyperlink = {}), re.length === 0 ? delete W.hyperlink[pe] : W.hyperlink[pe] = re.length === 1 ? re[0] : re, typeof a == "object" && a && "hl" in a && delete a.hl;
|
|
23067
23067
|
} else
|
|
23068
23068
|
H && W.hyperlink && delete W.hyperlink[pe], typeof a == "object" && a && "hl" in a && delete a.hl;
|
|
23069
|
-
|
|
23069
|
+
Lt(e, t, n, Me, a), hn(e);
|
|
23070
23070
|
const x = e.luckysheetfile[Ee(e, e.currentSheetId)].config || {}, X = (U == null ? void 0 : U.tb) === "2" && !h.isNil(U == null ? void 0 : U.v) && (U == null ? void 0 : U.v) !== "" || sn(U), ie = Me[t][n], fe = (ie == null ? void 0 : ie.tb) === "2" && !h.isNil(ie == null ? void 0 : ie.v) && (ie == null ? void 0 : ie.v) !== "" || sn(ie);
|
|
23071
23071
|
if ((X || fe) && !((J = x.customHeight) != null && J[t]) && l && Go(e, t, Me, l), e.hooks.afterUpdateCell) {
|
|
23072
23072
|
const re = h.cloneDeep(B[t][n]), { afterUpdateCell: be } = e.hooks;
|
|
@@ -23129,14 +23129,14 @@ function Tr(e, t) {
|
|
|
23129
23129
|
if (t.indexOf(",") !== -1) {
|
|
23130
23130
|
const r = t.split(",");
|
|
23131
23131
|
for (let a = 0; a < r.length; a += 1)
|
|
23132
|
-
if (
|
|
23132
|
+
if (qt(r[a]))
|
|
23133
23133
|
n.push(Hn(e, r[a]));
|
|
23134
23134
|
else {
|
|
23135
23135
|
n = [];
|
|
23136
23136
|
break;
|
|
23137
23137
|
}
|
|
23138
23138
|
} else
|
|
23139
|
-
|
|
23139
|
+
qt(t) && n.push(Hn(e, t));
|
|
23140
23140
|
return n;
|
|
23141
23141
|
}
|
|
23142
23142
|
function Cm(e) {
|
|
@@ -24759,7 +24759,7 @@ function Eg(e) {
|
|
|
24759
24759
|
const S = Ee(e, e.currentSheetId), N = f[C][$] != null ? h.cloneDeep(f[C][$]) : null, M = N != null && (N.tb === "2" && !h.isNil(N.v) && N.v !== "" || sn(N)), { dataVerification: z } = e.luckysheetfile[S];
|
|
24760
24760
|
if (z && (z != null && z[`${C}_${$}`]) && (z == null || delete z[`${C}_${$}`]), h.isPlainObject(f[C][$])) {
|
|
24761
24761
|
const K = f[C][$];
|
|
24762
|
-
delete K.m, delete K.v, delete K.fc, delete K.un, K.f != null && (delete K.f,
|
|
24762
|
+
delete K.m, delete K.v, delete K.fc, delete K.un, K.f != null && (delete K.f, Ot(e, C, $, e.currentSheetId), delete K.spl), K.ct != null && (K.ct.t === "inlineStr" || (r = K.ct.fa) != null && r.includes("BTC") || (a = K.ct.fa) != null && a.includes("ETH") || (l = K.ct.fa) != null && l.includes("SOL")) && (delete K.ct, K == null || delete K.baseValue, K == null || delete K.baseCurrency), bn(e, C, $);
|
|
24763
24763
|
} else
|
|
24764
24764
|
f[C][$] = null;
|
|
24765
24765
|
g && g[`${C}_${$}`] && delete g[`${C}_${$}`];
|
|
@@ -28327,7 +28327,7 @@ function l1(e, t, n, r, a, l, o) {
|
|
|
28327
28327
|
function i1(e, t, n) {
|
|
28328
28328
|
if (!n) return { isValid: !1, tooltip: "" };
|
|
28329
28329
|
const { insertLink: r } = Et(e), a = String(n ?? "").trim();
|
|
28330
|
-
return $u(a) ? { isValid: !0, tooltip: "" } : (/^https?:\/\//i.test(n) || (n = `https://${n}`), /^(https?):\/\/[^\s$.?#].[^\s]*$/i.test(n) ? t === "cellrange" && !
|
|
28330
|
+
return $u(a) ? { isValid: !0, tooltip: "" } : (/^https?:\/\//i.test(n) || (n = `https://${n}`), /^(https?):\/\/[^\s$.?#].[^\s]*$/i.test(n) ? t === "cellrange" && !qt(n) ? { isValid: !1, tooltip: r.invalidCellRangeTip } : { isValid: !0, tooltip: "" } : { isValid: !1, tooltip: r.tooltipInfo1 });
|
|
28331
28331
|
}
|
|
28332
28332
|
function s1(e, t) {
|
|
28333
28333
|
var u;
|
|
@@ -29013,8 +29013,8 @@ function Tn(e, t, n, r, a, l, o) {
|
|
|
29013
29013
|
o.currentSheetId,
|
|
29014
29014
|
{ row: r, column: a },
|
|
29015
29015
|
o.currentSheetId
|
|
29016
|
-
)})`, u =
|
|
29017
|
-
|
|
29016
|
+
)})`, u = Ft(o, i, t, n), s = { v: u[1], f: u[2] };
|
|
29017
|
+
Lt(o, t, n, e, s), (c = o == null ? void 0 : o.hooks) != null && c.updateCellYdoc && o.hooks.updateCellYdoc([
|
|
29018
29018
|
{
|
|
29019
29019
|
sheetId: o.currentSheetId,
|
|
29020
29020
|
path: ["celldata"],
|
|
@@ -30622,7 +30622,7 @@ function qu(e) {
|
|
|
30622
30622
|
O.f,
|
|
30623
30623
|
"down",
|
|
30624
30624
|
Y - _ + 1
|
|
30625
|
-
)}`, V =
|
|
30625
|
+
)}`, V = Ft(e, Z, Y, F);
|
|
30626
30626
|
ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
|
|
30627
30627
|
const { afterUpdateCell: ge } = e.hooks;
|
|
30628
30628
|
if (ge && (ge(Y, F, null, {
|
|
@@ -30703,7 +30703,7 @@ function qu(e) {
|
|
|
30703
30703
|
O.f,
|
|
30704
30704
|
"up",
|
|
30705
30705
|
T - Y + 1
|
|
30706
|
-
)}`, V =
|
|
30706
|
+
)}`, V = Ft(e, Z, Y, F);
|
|
30707
30707
|
ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
|
|
30708
30708
|
const { afterUpdateCell: ge } = e.hooks;
|
|
30709
30709
|
if (ge && (ge(Y, F, null, {
|
|
@@ -30788,7 +30788,7 @@ function qu(e) {
|
|
|
30788
30788
|
O.f,
|
|
30789
30789
|
"right",
|
|
30790
30790
|
Y - C + 1
|
|
30791
|
-
)}`, V =
|
|
30791
|
+
)}`, V = Ft(e, Z, F, Y);
|
|
30792
30792
|
ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
|
|
30793
30793
|
const { afterUpdateCell: ge } = e.hooks;
|
|
30794
30794
|
if (ge && (ge(F, Y, null, {
|
|
@@ -30867,7 +30867,7 @@ function qu(e) {
|
|
|
30867
30867
|
O.f,
|
|
30868
30868
|
"left",
|
|
30869
30869
|
$ - Y + 1
|
|
30870
|
-
)}`, V =
|
|
30870
|
+
)}`, V = Ft(e, Z, F, Y);
|
|
30871
30871
|
ln(e, Y, F, V[1], void 0, t), [, O.v, O.f] = V;
|
|
30872
30872
|
const { afterUpdateCell: ge } = e.hooks;
|
|
30873
30873
|
if (ge && (ge(F, Y, null, {
|
|
@@ -31062,7 +31062,7 @@ function rt(e) {
|
|
|
31062
31062
|
a = String.fromCharCode(e % 26 + 97) + a, e = Math.floor(e / 26) - 1;
|
|
31063
31063
|
return a.toUpperCase();
|
|
31064
31064
|
}
|
|
31065
|
-
function
|
|
31065
|
+
function It(e) {
|
|
31066
31066
|
if (e == null || e.length === 0)
|
|
31067
31067
|
return NaN;
|
|
31068
31068
|
const t = e.toLowerCase().split(""), n = t.length, r = (o) => o.charCodeAt(0) - 96;
|
|
@@ -31325,12 +31325,12 @@ function Lu(e, t, n, r, a, l = {}, o) {
|
|
|
31325
31325
|
// quotePrefix, show number as string
|
|
31326
31326
|
};
|
|
31327
31327
|
if (r == null || r.toString().length === 0)
|
|
31328
|
-
|
|
31328
|
+
Ot(e, t, n), Lt(e, t, n, u, r);
|
|
31329
31329
|
else if (r instanceof Object) {
|
|
31330
31330
|
const g = {};
|
|
31331
31331
|
((c = u == null ? void 0 : u[t]) == null ? void 0 : c[n]) == null && (u[t][n] = {});
|
|
31332
31332
|
const y = u[t][n];
|
|
31333
|
-
r.f != null && r.v == null ? (g.f = r.f, r.ct != null && (g.ct = r.ct), yo(e, t, n, a, g)) : (r.ct != null && (g.ct = r.ct), r.f != null && (g.f = r.f), r.v != null ? g.v = r.v : g.v = y.v, r.m != null && (g.m = r.m),
|
|
31333
|
+
r.f != null && r.v == null ? (g.f = r.f, r.ct != null && (g.ct = r.ct), yo(e, t, n, a, g)) : (r.ct != null && (g.ct = r.ct), r.f != null && (g.f = r.f), r.v != null ? g.v = r.v : g.v = y.v, r.m != null && (g.m = r.m), Ot(e, t, n), Lt(e, t, n, u, g)), h.forEach(r, (b, w) => {
|
|
31334
31334
|
w in s && o ? ku(
|
|
31335
31335
|
e,
|
|
31336
31336
|
u,
|
|
@@ -31343,7 +31343,7 @@ function Lu(e, t, n, r, a, l = {}, o) {
|
|
|
31343
31343
|
) : y[w] = b;
|
|
31344
31344
|
}), u[t][n] = y;
|
|
31345
31345
|
} else
|
|
31346
|
-
r.toString().substr(0, 1) === "=" || r.toString().substr(0, 5) === "<span" ? yo(e, t, n, a, r) : (
|
|
31346
|
+
r.toString().substr(0, 1) === "=" || r.toString().substr(0, 5) === "<span" ? yo(e, t, n, a, r) : (Ot(e, t, n), Lt(e, t, n, u, r));
|
|
31347
31347
|
o && ((m = (f = e.hooks).onLocalCellEdit) == null || m.call(f), e.hooks.afterUpdateCell && ((p = (d = e.hooks).afterUpdateCell) == null || p.call(d, t, n, null, r)));
|
|
31348
31348
|
}
|
|
31349
31349
|
function Qh(e, t, n, r) {
|
|
@@ -31369,33 +31369,33 @@ function M1(e, t, n, r, a = {}) {
|
|
|
31369
31369
|
const l = At(e, a), o = a.id ?? l.id ?? e.currentSheetId, { data: i } = l;
|
|
31370
31370
|
if (!i) {
|
|
31371
31371
|
if (Qh(l, t, n, r), r == null || r.toString().length === 0)
|
|
31372
|
-
|
|
31372
|
+
Ot(e, t, n, o);
|
|
31373
31373
|
else if (r instanceof Object)
|
|
31374
|
-
r.f != null ? On(e, t, n, o) :
|
|
31374
|
+
r.f != null ? On(e, t, n, o) : Ot(e, t, n, o);
|
|
31375
31375
|
else {
|
|
31376
31376
|
const s = r.toString();
|
|
31377
|
-
s.substr(0, 1) === "=" || s.substr(0, 5) === "<span" ? On(e, t, n, o) :
|
|
31377
|
+
s.substr(0, 1) === "=" || s.substr(0, 5) === "<span" ? On(e, t, n, o) : Ot(e, t, n, o);
|
|
31378
31378
|
}
|
|
31379
31379
|
return;
|
|
31380
31380
|
}
|
|
31381
31381
|
if (r == null || r.toString().length === 0) {
|
|
31382
|
-
|
|
31382
|
+
Ot(e, t, n, o), i[t][n] = null;
|
|
31383
31383
|
return;
|
|
31384
31384
|
}
|
|
31385
31385
|
if (r instanceof Object) {
|
|
31386
31386
|
const s = h.cloneDeep(r);
|
|
31387
|
-
i[t][n] = s, s.f != null ? On(e, t, n, o) :
|
|
31387
|
+
i[t][n] = s, s.f != null ? On(e, t, n, o) : Ot(e, t, n, o);
|
|
31388
31388
|
return;
|
|
31389
31389
|
}
|
|
31390
31390
|
const u = r.toString();
|
|
31391
|
-
u.substr(0, 1) === "=" || u.substr(0, 5) === "<span" ? (
|
|
31391
|
+
u.substr(0, 1) === "=" || u.substr(0, 5) === "<span" ? (Lt(e, t, n, i, { f: u }), On(e, t, n, o)) : (Ot(e, t, n, o), Lt(e, t, n, i, r));
|
|
31392
31392
|
}
|
|
31393
31393
|
function R1(e, t, n, r = {}) {
|
|
31394
31394
|
var o, i;
|
|
31395
31395
|
if (!h.isNumber(t) || !h.isNumber(n))
|
|
31396
31396
|
throw new Error("row or column cannot be null or undefined");
|
|
31397
31397
|
const a = At(e, r), l = (i = (o = a.data) == null ? void 0 : o[t]) == null ? void 0 : i[n];
|
|
31398
|
-
l && h.isPlainObject(l) && (delete l.m, delete l.v, l.f != null && (delete l.f,
|
|
31398
|
+
l && h.isPlainObject(l) && (delete l.m, delete l.v, l.f != null && (delete l.f, Ot(e, t, n, a.id), delete l.spl));
|
|
31399
31399
|
}
|
|
31400
31400
|
function x1(e, t, n, r, a, l = {}) {
|
|
31401
31401
|
var c;
|
|
@@ -31408,7 +31408,7 @@ function x1(e, t, n, r, a, l = {}) {
|
|
|
31408
31408
|
throw new Error(
|
|
31409
31409
|
"'fa' and 't' should be present in value when attr is 'ct'"
|
|
31410
31410
|
);
|
|
31411
|
-
if (r === "ct" && !h.isNil(u.v) && (u.m =
|
|
31411
|
+
if (r === "ct" && !h.isNil(u.v) && (u.m = Dt.format(a.fa, u.v)), r === "bd") {
|
|
31412
31412
|
s.borderInfo == null && (s.borderInfo = []);
|
|
31413
31413
|
const f = {
|
|
31414
31414
|
rangeType: "range",
|
|
@@ -32008,17 +32008,17 @@ export {
|
|
|
32008
32008
|
Go as E,
|
|
32009
32009
|
at as F,
|
|
32010
32010
|
ot as G,
|
|
32011
|
-
|
|
32011
|
+
Ot as H,
|
|
32012
32012
|
bn as I,
|
|
32013
32013
|
Dp as J,
|
|
32014
32014
|
Tr as K,
|
|
32015
|
-
|
|
32015
|
+
Lt as L,
|
|
32016
32016
|
Kt as M,
|
|
32017
32017
|
Xn as N,
|
|
32018
32018
|
S1 as O,
|
|
32019
32019
|
wo as P,
|
|
32020
32020
|
N1 as Q,
|
|
32021
|
-
|
|
32021
|
+
Ft as R,
|
|
32022
32022
|
Ep as S,
|
|
32023
32023
|
Ir as T,
|
|
32024
32024
|
Sa as U,
|
|
@@ -32271,7 +32271,7 @@ export {
|
|
|
32271
32271
|
Oo as dg,
|
|
32272
32272
|
ug as dh,
|
|
32273
32273
|
ya as di,
|
|
32274
|
-
|
|
32274
|
+
qt as dj,
|
|
32275
32275
|
Vs as dk,
|
|
32276
32276
|
Kn as dl,
|
|
32277
32277
|
yp as dm,
|
package/dist/formula.js
CHANGED
|
@@ -2,7 +2,7 @@ var WW = Object.defineProperty;
|
|
|
2
2
|
var XW = (e, t, l) => t in e ? WW(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
3
|
var He = (e, t, l) => XW(e, typeof t != "symbol" ? t + "" : t, l);
|
|
4
4
|
import Bt, { useRef as Ye, useContext as mt, useState as We, useMemo as ct, useEffect as Ve, useCallback as Xe, useLayoutEffect as Zl, forwardRef as zu, createElement as Yr, useSyncExternalStore as gW, useImperativeHandle as fW, createContext as Ou, memo as VW } from "react";
|
|
5
|
-
import { g as Nc, a as ve, d as Pt, r as Qt, h as so, i as Mt, j as Ca, k as bi, l as ze, m as Bd, n as Sr, o as $1, p as ei, q as Ha, s as is, S as Ja, t as Do, v as xW, u as Eu, w as YW, x as Zi, y as SW, z as vi, A as Nt, B as Tn, C as ft, D as Ut, E as eZ, F as $t, G as an, H as RW, I as vd, J as Pl, K as ln, L as Sl, M as At, N as Ci, O as Bh, P as kd, Q as LW, R as Tc, T as as, U as rn, V as vh, W as Cn, X as wW, Y as tZ, Z as Kc, _ as Fd, $ as lZ, a0 as Li, a1 as CW, a2 as Nd, a3 as HW, a4 as ki, a5 as ml, a6 as Il, a7 as Xs, a8 as Po, a9 as JW, aa as Fi, ab as Du, ac as Pu, ad as BW, ae as Zc, af as iZ, ag as gs, ah as vW, ai as nZ, aj as sZ, ak as cZ, al as oZ, am as dZ, an as Qo, ao as Rr, ap as aZ, aq as rZ, ar as uZ, as as mZ, at as hZ, au as bZ, av as ZZ, aw as IZ, ax as yZ, ay as pZ, az as GZ, aA as WZ, aB as XZ, aC as gZ, aD as fZ, aE as Qu, aF as rs, aG as us, aH as VZ, aI as Au, aJ as xZ, aK as YZ, aL as SZ, aM as kW, aN as Td, aO as FW, aP as RZ, aQ as co, aR as NW, aS as qu, aT as ns, aU as Ai, aV as TW, aW as KW, aX as Ic, aY as UW, aZ as MW, a_ as Ba, a$ as _u, b0 as jW, b1 as zW, b2 as OW, b3 as EW, b4 as DW, b5 as Kd, b6 as Dl, b7 as Rl, b8 as el, b9 as ms, ba as $u, bb as yc, bc as rl, bd as PW, be as Kn, bf as hs, bg as Ao, bh as El, bi as un, bj as Ud, bk as qo, bl as Un, bm as QW, bn as em, bo as tm, bp as lm, bq as AW, br as Yn, bs as jl, bt as Md, bu as jd, bv as LZ, bw as Qi, bx as Hn, by as qn, bz as _o, bA as qW, bB as _W, bC as Vl, bD as $W, bE as pc, bF as eX, bG as Ni, bH as Mn, bI as zd, bJ as al, bK as qt, bL as Uc, bM as Mc, bN as wZ, bO as CZ, bP as Sn, bQ as Od, bR as tX, bS as lX, bT as iX, bU as nX, bV as sX, bW as cX, bX as oX, bY as dX, bZ as aX, b_ as $o, b$ as HZ, c0 as JZ, c1 as mn, c2 as rX, c3 as uX, c4 as BZ, c5 as _n, c6 as Lr, c7 as mX, c8 as vZ, c9 as kZ, ca as hX, cb as im, cc as FZ, cd as NZ, ce as bX, cf as Ed, cg as TZ, ch as nm, ci as KZ, cj as UZ, ck as MZ, cl as jZ, cm as zZ, cn as sm, co as Dd, cp as zl, cq as cm, cr as om, cs as ZX, ct as OZ, cu as EZ, cv as nn, cw as Hi, cx as Pd, cy as sn, cz as cn, cA as Co, cB as IX, cC as ed, cD as yX, cE as DZ, cF as PZ, cG as pX, cH as dm, cI as QZ, cJ as GX, cK as AZ, cL as qZ, cM as _Z, cN as WX, cO as XX, cP as $Z, cQ as wr, cR as eI, cS as tI, cT as gX, cU as fX, cV as lI, cW as VX, cX as xX, cY as Cr, cZ as Qd, c_ as Hr, c$ as iI, d0 as $n, d1 as YX, d2 as SX, d3 as nI, d4 as sI, d5 as cI, d6 as oI, d7 as dI, d8 as Ii, d9 as RX, da as LX, db as aI, dc as rI, dd as uI, de as am, df as mI, dg as wX, dh as td, di as hI, dj as CX, dk as HX, dl as JX, dm as bI, dn as Jr, dp as ZI, dq as Ri, dr as II, ds as yI, dt as BX, du as Gc, dv as pI, dw as GI, dx as Br, dy as vr, dz as rm, dA as um, dB as mm, dC as kr, dD as WI, dE as XI, dF as gI, dG as vX, dH as kX, dI as Wc, dJ as Xc, dK as ts, dL as fI, dM as FX, dN as VI, dO as xI, dP as Fr, dQ as YI, dR as NX, dS as SI, dT as RI, dU as LI, dV as wI, c as qi, dW as TX, dX as KX, dY as UX, dZ as MX, d_ as va, d$ as jX, e0 as zX, e1 as OX, e2 as EX, e3 as DX, e as hm, f as Ad, e4 as PX, e5 as QX, e6 as kh, e7 as Fh, e8 as Nh, e9 as Th, ea as AX, eb as qX, ec as Kh } from "./executeStringFunction-
|
|
5
|
+
import { g as Nc, a as ve, d as Pt, r as Qt, h as so, i as Mt, j as Ca, k as bi, l as ze, m as Bd, n as Sr, o as $1, p as ei, q as Ha, s as is, S as Ja, t as Do, v as xW, u as Eu, w as YW, x as Zi, y as SW, z as vi, A as Nt, B as Tn, C as ft, D as Ut, E as eZ, F as $t, G as an, H as RW, I as vd, J as Pl, K as ln, L as Sl, M as At, N as Ci, O as Bh, P as kd, Q as LW, R as Tc, T as as, U as rn, V as vh, W as Cn, X as wW, Y as tZ, Z as Kc, _ as Fd, $ as lZ, a0 as Li, a1 as CW, a2 as Nd, a3 as HW, a4 as ki, a5 as ml, a6 as Il, a7 as Xs, a8 as Po, a9 as JW, aa as Fi, ab as Du, ac as Pu, ad as BW, ae as Zc, af as iZ, ag as gs, ah as vW, ai as nZ, aj as sZ, ak as cZ, al as oZ, am as dZ, an as Qo, ao as Rr, ap as aZ, aq as rZ, ar as uZ, as as mZ, at as hZ, au as bZ, av as ZZ, aw as IZ, ax as yZ, ay as pZ, az as GZ, aA as WZ, aB as XZ, aC as gZ, aD as fZ, aE as Qu, aF as rs, aG as us, aH as VZ, aI as Au, aJ as xZ, aK as YZ, aL as SZ, aM as kW, aN as Td, aO as FW, aP as RZ, aQ as co, aR as NW, aS as qu, aT as ns, aU as Ai, aV as TW, aW as KW, aX as Ic, aY as UW, aZ as MW, a_ as Ba, a$ as _u, b0 as jW, b1 as zW, b2 as OW, b3 as EW, b4 as DW, b5 as Kd, b6 as Dl, b7 as Rl, b8 as el, b9 as ms, ba as $u, bb as yc, bc as rl, bd as PW, be as Kn, bf as hs, bg as Ao, bh as El, bi as un, bj as Ud, bk as qo, bl as Un, bm as QW, bn as em, bo as tm, bp as lm, bq as AW, br as Yn, bs as jl, bt as Md, bu as jd, bv as LZ, bw as Qi, bx as Hn, by as qn, bz as _o, bA as qW, bB as _W, bC as Vl, bD as $W, bE as pc, bF as eX, bG as Ni, bH as Mn, bI as zd, bJ as al, bK as qt, bL as Uc, bM as Mc, bN as wZ, bO as CZ, bP as Sn, bQ as Od, bR as tX, bS as lX, bT as iX, bU as nX, bV as sX, bW as cX, bX as oX, bY as dX, bZ as aX, b_ as $o, b$ as HZ, c0 as JZ, c1 as mn, c2 as rX, c3 as uX, c4 as BZ, c5 as _n, c6 as Lr, c7 as mX, c8 as vZ, c9 as kZ, ca as hX, cb as im, cc as FZ, cd as NZ, ce as bX, cf as Ed, cg as TZ, ch as nm, ci as KZ, cj as UZ, ck as MZ, cl as jZ, cm as zZ, cn as sm, co as Dd, cp as zl, cq as cm, cr as om, cs as ZX, ct as OZ, cu as EZ, cv as nn, cw as Hi, cx as Pd, cy as sn, cz as cn, cA as Co, cB as IX, cC as ed, cD as yX, cE as DZ, cF as PZ, cG as pX, cH as dm, cI as QZ, cJ as GX, cK as AZ, cL as qZ, cM as _Z, cN as WX, cO as XX, cP as $Z, cQ as wr, cR as eI, cS as tI, cT as gX, cU as fX, cV as lI, cW as VX, cX as xX, cY as Cr, cZ as Qd, c_ as Hr, c$ as iI, d0 as $n, d1 as YX, d2 as SX, d3 as nI, d4 as sI, d5 as cI, d6 as oI, d7 as dI, d8 as Ii, d9 as RX, da as LX, db as aI, dc as rI, dd as uI, de as am, df as mI, dg as wX, dh as td, di as hI, dj as CX, dk as HX, dl as JX, dm as bI, dn as Jr, dp as ZI, dq as Ri, dr as II, ds as yI, dt as BX, du as Gc, dv as pI, dw as GI, dx as Br, dy as vr, dz as rm, dA as um, dB as mm, dC as kr, dD as WI, dE as XI, dF as gI, dG as vX, dH as kX, dI as Wc, dJ as Xc, dK as ts, dL as fI, dM as FX, dN as VI, dO as xI, dP as Fr, dQ as YI, dR as NX, dS as SI, dT as RI, dU as LI, dV as wI, c as qi, dW as TX, dX as KX, dY as UX, dZ as MX, d_ as va, d$ as jX, e0 as zX, e1 as OX, e2 as EX, e3 as DX, e as hm, f as Ad, e4 as PX, e5 as QX, e6 as kh, e7 as Fh, e8 as Nh, e9 as Th, ea as AX, eb as qX, ec as Kh } from "./executeStringFunction-CSjaDQJY.js";
|
|
6
6
|
import * as Je from "yjs";
|
|
7
7
|
import { p as Nr, E as CI, C as ka, a as Uh, D as HI, H as _X, b as $X, T as eg } from "./constants-Cdz6oSCq.js";
|
|
8
8
|
import $, { isObject as JI } from "lodash";
|
|
@@ -49742,7 +49742,7 @@ const UF = ({
|
|
|
49742
49742
|
}, R.readAsText(b);
|
|
49743
49743
|
});
|
|
49744
49744
|
}, F1 = async (e, t, l, i) => {
|
|
49745
|
-
const { handleExportToXLSX: n } = await import("./xlsx-export-impl-
|
|
49745
|
+
const { handleExportToXLSX: n } = await import("./xlsx-export-impl-D-icQZMM.js");
|
|
49746
49746
|
return n(e, t, l, i);
|
|
49747
49747
|
}, MF = (e) => {
|
|
49748
49748
|
var l;
|
|
@@ -49818,7 +49818,7 @@ const UF = ({
|
|
|
49818
49818
|
const [o, a] = We(!1);
|
|
49819
49819
|
return { handleXLSXUpload: Xe(
|
|
49820
49820
|
async (r, u, h) => {
|
|
49821
|
-
const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-
|
|
49821
|
+
const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-mTmFxYvH.js");
|
|
49822
49822
|
return b(
|
|
49823
49823
|
{
|
|
49824
49824
|
sheetEditorRef: e,
|
|
@@ -54681,7 +54681,7 @@ async function nK(e, t) {
|
|
|
54681
54681
|
{ suppressUiWarnings: !0 }
|
|
54682
54682
|
);
|
|
54683
54683
|
else {
|
|
54684
|
-
const { runXlsxFileUpload: u } = await import("./use-xlsx-import-impl-
|
|
54684
|
+
const { runXlsxFileUpload: u } = await import("./use-xlsx-import-impl-mTmFxYvH.js");
|
|
54685
54685
|
await u(
|
|
54686
54686
|
{
|
|
54687
54687
|
sheetEditorRef: d,
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as s, a as t, b as o, S as l, d as r, i as d, e as n, T as i, f as c, g as S, h, j as m, k as p, l as C, n as u, o as E, p as g, q as F, s as x, t as R, u as f, v as A, w as L, x as w, z as I, A as T, B as v, D, E as k } from "./index-
|
|
2
|
-
import { ci as U, cj as V, ck as _, cp as b, bg as z, e as P, f as X, l as j, a as y, c_ as B, c$ as O, a$ as G, d0 as H, d1 as N, d5 as $, d6 as q, d8 as J, D as K, dm as Y, dN as Z, aU as Q } from "./executeStringFunction-
|
|
1
|
+
import { C as s, a as t, b as o, S as l, d as r, i as d, e as n, T as i, f as c, g as S, h, j as m, k as p, l as C, n as u, o as E, p as g, q as F, s as x, t as R, u as f, v as A, w as L, x as w, z as I, A as T, B as v, D, E as k } from "./index-reQ-PTM7.js";
|
|
2
|
+
import { ci as U, cj as V, ck as _, cp as b, bg as z, e as P, f as X, l as j, a as y, c_ as B, c$ as O, a$ as G, d0 as H, d1 as N, d5 as $, d6 as q, d8 as J, D as K, dm as Y, dN as Z, aU as Q } from "./executeStringFunction-CSjaDQJY.js";
|
|
3
3
|
import { FLVURL as ee } from "@fileverse-dev/formulajs";
|
|
4
4
|
import { E as se, S as te } from "./constants-Cdz6oSCq.js";
|
|
5
5
|
export {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as Ke } from "./executeStringFunction-
|
|
1
|
+
import { g as Ke } from "./executeStringFunction-CSjaDQJY.js";
|
|
2
2
|
import * as et from "yjs";
|
|
3
|
-
import { m as tt, y as rt, r as nt } from "./index-
|
|
3
|
+
import { m as tt, y as rt, r as nt } from "./index-reQ-PTM7.js";
|
|
4
4
|
import { n as at } from "./xlsx-hyperlink-inline-DzewAypN.js";
|
|
5
5
|
import { toast as Ge } from "@fileverse/ui";
|
|
6
6
|
var Ze = { exports: {} };
|
|
@@ -2,8 +2,8 @@ import { utils as ht, write as Nt } from "xlsx-js-style";
|
|
|
2
2
|
import { Workbook as Pt } from "exceljs";
|
|
3
3
|
import { toast as Ut } from "@fileverse/ui";
|
|
4
4
|
import { addFortuneImagesToWorksheet as Lt } from "./xlsx-image-utils-Cvg0qxRA.js";
|
|
5
|
-
import { g as jt, c as xt, b as Wt } from "./executeStringFunction-
|
|
6
|
-
import { c as Ct } from "./index-
|
|
5
|
+
import { g as jt, c as xt, b as Wt } from "./executeStringFunction-CSjaDQJY.js";
|
|
6
|
+
import { c as Ct } from "./index-reQ-PTM7.js";
|
|
7
7
|
import { c as zt, g as Mt } from "./xlsx-hyperlink-inline-DzewAypN.js";
|
|
8
8
|
const Zt = {
|
|
9
9
|
1: "thin",
|