@fileverse-dev/dsheet 1.1.17 → 1.1.18
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 +24 -20
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -170804,41 +170804,45 @@ const W8t = (e, r) => {
|
|
|
170804
170804
|
var u, d;
|
|
170805
170805
|
(u = a.current[s]) == null || u.delete(l), (d = e.current) == null || d.removeFromLiveQueryList(s, l);
|
|
170806
170806
|
}, f = async (s) => {
|
|
170807
|
-
var u, d, h, p;
|
|
170807
|
+
var u, d, h, p, m, v, g;
|
|
170808
170808
|
const l = s.data.function.split("=")[1];
|
|
170809
170809
|
switch (s.data.name.toLowerCase()) {
|
|
170810
170810
|
case "coingecko": {
|
|
170811
|
-
const { cellData:
|
|
170812
|
-
if (!(
|
|
170813
|
-
|
|
170811
|
+
const { cellData: y, data: b } = s, { row: w, column: x } = b, M = (u = e.current) == null ? void 0 : u.getWorkbookContext(), L = (h = (d = Lt(M)) == null ? void 0 : d[w]) == null ? void 0 : h[x], T = Et(M, b.subSheetId);
|
|
170812
|
+
if (!(L != null && L.f) || (L == null ? void 0 : L.f) !== y.f) {
|
|
170813
|
+
T != null && T.toString && c(T, b.id);
|
|
170814
170814
|
return;
|
|
170815
170815
|
}
|
|
170816
|
-
const
|
|
170816
|
+
const D = s.data.value[0], [N, R] = Object.entries(D)[0], O = await V6(
|
|
170817
170817
|
l,
|
|
170818
170818
|
e
|
|
170819
|
-
),
|
|
170820
|
-
if (!(
|
|
170819
|
+
), _ = O[0], [k, E] = Object.entries(_)[0];
|
|
170820
|
+
if (!(k !== N || E !== R))
|
|
170821
170821
|
return;
|
|
170822
170822
|
if (Q2({
|
|
170823
|
-
row:
|
|
170824
|
-
column:
|
|
170825
|
-
newValue:
|
|
170826
|
-
apiData:
|
|
170823
|
+
row: w,
|
|
170824
|
+
column: x,
|
|
170825
|
+
newValue: y,
|
|
170826
|
+
apiData: O,
|
|
170827
170827
|
sheetEditorRef: e
|
|
170828
|
-
}),
|
|
170829
|
-
const
|
|
170828
|
+
}), T != null && T.toString()) {
|
|
170829
|
+
const C = {
|
|
170830
170830
|
...s,
|
|
170831
|
-
data: { ...
|
|
170831
|
+
data: { ...b, value: O }
|
|
170832
170832
|
};
|
|
170833
|
-
a.current[
|
|
170834
|
-
|
|
170835
|
-
|
|
170833
|
+
a.current[T].set(
|
|
170834
|
+
C.data.id,
|
|
170835
|
+
C
|
|
170836
170836
|
), (p = e.current) == null || p.updateSheetLiveQueryList(
|
|
170837
|
-
|
|
170838
|
-
|
|
170837
|
+
T,
|
|
170838
|
+
C
|
|
170839
170839
|
);
|
|
170840
170840
|
}
|
|
170841
|
-
z0e(
|
|
170841
|
+
z0e(M.currentSheetId, w + 1, x), (g = e.current) == null || g.calculateSubSheetFormula(
|
|
170842
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
170843
|
+
// @ts-expect-error
|
|
170844
|
+
(v = (m = e.current) == null ? void 0 : m.getSheet()) == null ? void 0 : v.id
|
|
170845
|
+
);
|
|
170842
170846
|
return;
|
|
170843
170847
|
}
|
|
170844
170848
|
}
|