@fileverse-dev/dsheet 2.0.19 → 2.0.21-memory
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 +10 -10
- package/dist/style.css +1 -1
- 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
|
|
20509
|
-
|
|
20510
|
-
|
|
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)
|
|
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
|
}
|
|
@@ -65263,8 +65264,7 @@ const vC = (e, t, n = "Anonymous", o = !0, r = "") => {
|
|
|
65263
65264
|
V.current,
|
|
65264
65265
|
i,
|
|
65265
65266
|
l,
|
|
65266
|
-
u
|
|
65267
|
-
a
|
|
65267
|
+
u
|
|
65268
65268
|
);
|
|
65269
65269
|
De(() => {
|
|
65270
65270
|
$ && T === "synced" && D.current && x((E) => E + 1);
|
|
@@ -71551,9 +71551,9 @@ const R8 = ({
|
|
|
71551
71551
|
dsheetId: f,
|
|
71552
71552
|
dataBlockCalcFunction: V
|
|
71553
71553
|
});
|
|
71554
|
-
}, [V]), De(() => {
|
|
71555
|
-
window.editorRef
|
|
71556
|
-
}, [o]);
|
|
71554
|
+
}, [V]), De(() => (window.editorRef = k.current, window.ydocRef = x.current, window.setForceRenderEditor = W, () => {
|
|
71555
|
+
delete window.editorRef, delete window.ydocRef, delete window.setForceRenderEditor;
|
|
71556
|
+
}), [o]);
|
|
71557
71557
|
const { handleXLSXUpload: q } = R8({
|
|
71558
71558
|
sheetEditorRef: k,
|
|
71559
71559
|
ydocRef: x,
|