@fileverse-dev/dsheet 1.1.17 → 1.1.19
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 +37 -29
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -77232,13 +77232,17 @@ const m3 = {
|
|
|
77232
77232
|
ethereum: 1
|
|
77233
77233
|
};
|
|
77234
77234
|
function gb(e, r) {
|
|
77235
|
-
|
|
77236
|
-
|
|
77237
|
-
|
|
77238
|
-
|
|
77239
|
-
|
|
77240
|
-
|
|
77241
|
-
|
|
77235
|
+
try {
|
|
77236
|
+
if (!r)
|
|
77237
|
+
return e;
|
|
77238
|
+
const t = BigInt(e), a = 10 ** r, n = Number(t) / a;
|
|
77239
|
+
return new Intl.NumberFormat("en-US", {
|
|
77240
|
+
notation: "compact",
|
|
77241
|
+
maximumFractionDigits: 2
|
|
77242
|
+
}).format(n);
|
|
77243
|
+
} catch (t) {
|
|
77244
|
+
return console.log({ error: t }), e;
|
|
77245
|
+
}
|
|
77242
77246
|
}
|
|
77243
77247
|
let yb = null;
|
|
77244
77248
|
async function i1e(e) {
|
|
@@ -163546,7 +163550,7 @@ var xbt = function(r) {
|
|
|
163546
163550
|
var S = Cbt.filter(function(_) {
|
|
163547
163551
|
var k = String(g[_.value]);
|
|
163548
163552
|
return !k.includes("NaN") && !k.includes("Infinity");
|
|
163549
|
-
}), O = S.length
|
|
163553
|
+
}), O = S.length !== 6 ? [] : S;
|
|
163550
163554
|
return /* @__PURE__ */ z.createElement("div", null, D && /* @__PURE__ */ z.createElement("div", {
|
|
163551
163555
|
className: "w-full",
|
|
163552
163556
|
id: "denomination-warning",
|
|
@@ -163654,7 +163658,7 @@ var xbt = function(r) {
|
|
|
163654
163658
|
height: 12
|
|
163655
163659
|
}))), /* @__PURE__ */ z.createElement("div", {
|
|
163656
163660
|
className: "fortune-sheet-area-right"
|
|
163657
|
-
}, S.length
|
|
163661
|
+
}, S.length === 6 ? /* @__PURE__ */ z.createElement(sv, null, /* @__PURE__ */ z.createElement(lv, {
|
|
163658
163662
|
className: "p-0 m-0 mr-2"
|
|
163659
163663
|
}, /* @__PURE__ */ z.createElement(wa, {
|
|
163660
163664
|
variant: "ghost",
|
|
@@ -170804,41 +170808,45 @@ const W8t = (e, r) => {
|
|
|
170804
170808
|
var u, d;
|
|
170805
170809
|
(u = a.current[s]) == null || u.delete(l), (d = e.current) == null || d.removeFromLiveQueryList(s, l);
|
|
170806
170810
|
}, f = async (s) => {
|
|
170807
|
-
var u, d, h, p;
|
|
170811
|
+
var u, d, h, p, m, v, g;
|
|
170808
170812
|
const l = s.data.function.split("=")[1];
|
|
170809
170813
|
switch (s.data.name.toLowerCase()) {
|
|
170810
170814
|
case "coingecko": {
|
|
170811
|
-
const { cellData:
|
|
170812
|
-
if (!(
|
|
170813
|
-
|
|
170815
|
+
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);
|
|
170816
|
+
if (!(L != null && L.f) || (L == null ? void 0 : L.f) !== y.f) {
|
|
170817
|
+
T != null && T.toString && c(T, b.id);
|
|
170814
170818
|
return;
|
|
170815
170819
|
}
|
|
170816
|
-
const
|
|
170820
|
+
const D = s.data.value[0], [N, R] = Object.entries(D)[0], O = await V6(
|
|
170817
170821
|
l,
|
|
170818
170822
|
e
|
|
170819
|
-
),
|
|
170820
|
-
if (!(
|
|
170823
|
+
), _ = O[0], [k, E] = Object.entries(_)[0];
|
|
170824
|
+
if (!(k !== N || E !== R))
|
|
170821
170825
|
return;
|
|
170822
170826
|
if (Q2({
|
|
170823
|
-
row:
|
|
170824
|
-
column:
|
|
170825
|
-
newValue:
|
|
170826
|
-
apiData:
|
|
170827
|
+
row: w,
|
|
170828
|
+
column: x,
|
|
170829
|
+
newValue: y,
|
|
170830
|
+
apiData: O,
|
|
170827
170831
|
sheetEditorRef: e
|
|
170828
|
-
}),
|
|
170829
|
-
const
|
|
170832
|
+
}), T != null && T.toString()) {
|
|
170833
|
+
const C = {
|
|
170830
170834
|
...s,
|
|
170831
|
-
data: { ...
|
|
170835
|
+
data: { ...b, value: O }
|
|
170832
170836
|
};
|
|
170833
|
-
a.current[
|
|
170834
|
-
|
|
170835
|
-
|
|
170837
|
+
a.current[T].set(
|
|
170838
|
+
C.data.id,
|
|
170839
|
+
C
|
|
170836
170840
|
), (p = e.current) == null || p.updateSheetLiveQueryList(
|
|
170837
|
-
|
|
170838
|
-
|
|
170841
|
+
T,
|
|
170842
|
+
C
|
|
170839
170843
|
);
|
|
170840
170844
|
}
|
|
170841
|
-
z0e(
|
|
170845
|
+
z0e(M.currentSheetId, w + 1, x), (g = e.current) == null || g.calculateSubSheetFormula(
|
|
170846
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
170847
|
+
// @ts-expect-error
|
|
170848
|
+
(v = (m = e.current) == null ? void 0 : m.getSheet()) == null ? void 0 : v.id
|
|
170849
|
+
);
|
|
170842
170850
|
return;
|
|
170843
170851
|
}
|
|
170844
170852
|
}
|
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.1.
|
|
5
|
+
"version": "1.1.19",
|
|
6
6
|
"main": "dist/index.es.js",
|
|
7
7
|
"module": "dist/index.es.js",
|
|
8
8
|
"exports": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@fileverse-dev/dsheets-templates": "^0.0.18",
|
|
37
|
-
"@fileverse-dev/formulajs": "^4.4.
|
|
38
|
-
"@fileverse-dev/fortune-react": "^1.1.
|
|
37
|
+
"@fileverse-dev/formulajs": "^4.4.17",
|
|
38
|
+
"@fileverse-dev/fortune-react": "^1.1.20",
|
|
39
39
|
"@fileverse/ui": "^4.1.7-patch-21",
|
|
40
40
|
"classnames": "^2.5.1",
|
|
41
41
|
"exceljs": "^4.4.0",
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
"typescript": "^5.2.2",
|
|
79
79
|
"vite": "^5.0.0"
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|