@fileverse-dev/dsheet 4.0.5-edit-mode-14 → 4.0.5-edit-mode-15
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/{constants-DUN0oTKe.js → constants-exC_CJ-T.js} +52 -45
- package/dist/constants.js +1 -1
- package/dist/{index-B0wwW6wY.js → index-nS5nX5Q7.js} +4 -4
- package/dist/index.es.js +2 -2
- package/dist/{use-xlsx-import-impl-DjAW8w5q.js → use-xlsx-import-impl-BneI1B7o.js} +3 -3
- package/dist/{xlsx-defined-names-_1BMhmjt.js → xlsx-defined-names-BOrtrHWX.js} +1 -1
- package/dist/{xlsx-export-impl-Brue54Hs.js → xlsx-export-impl-DNyX6q9a.js} +3 -3
- package/dist/{xlsx-hyperlink-inline-_Q0FyvCB.js → xlsx-hyperlink-inline-7zGlO4ea.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as
|
|
2
|
-
const
|
|
1
|
+
import { E as l, S as u } from "./crypto-constants-ZTlAYRUf.js";
|
|
2
|
+
const a = "#9CA3AF", s = [
|
|
3
3
|
"#30bced",
|
|
4
4
|
"#6eeb83",
|
|
5
5
|
"#fa69d1",
|
|
@@ -9,52 +9,59 @@ const s = "#9CA3AF", c = [
|
|
|
9
9
|
"#0ad7f2",
|
|
10
10
|
"#1bff39"
|
|
11
11
|
];
|
|
12
|
-
function
|
|
12
|
+
function h(o) {
|
|
13
13
|
const t = /* @__PURE__ */ new Map();
|
|
14
|
-
return o.forEach((
|
|
15
|
-
const
|
|
16
|
-
typeof
|
|
17
|
-
name:
|
|
18
|
-
color:
|
|
19
|
-
isEns:
|
|
14
|
+
return o.forEach((r) => {
|
|
15
|
+
const i = r == null ? void 0 : r.socketId, e = r == null ? void 0 : r.user;
|
|
16
|
+
typeof i == "string" && e && t.set(i, {
|
|
17
|
+
name: e.name ?? "",
|
|
18
|
+
color: e.color ?? a,
|
|
19
|
+
isEns: e.isEns ?? ""
|
|
20
20
|
});
|
|
21
21
|
}), t;
|
|
22
22
|
}
|
|
23
23
|
function S(o, t) {
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
clientId:
|
|
28
|
-
name:
|
|
29
|
-
color:
|
|
30
|
-
isEns:
|
|
24
|
+
const r = o.map((e) => {
|
|
25
|
+
const n = t.get(e);
|
|
26
|
+
return n ? {
|
|
27
|
+
clientId: e,
|
|
28
|
+
name: n.name,
|
|
29
|
+
color: n.color,
|
|
30
|
+
isEns: n.isEns,
|
|
31
31
|
isPlaceholder: !1
|
|
32
32
|
} : {
|
|
33
|
-
clientId:
|
|
33
|
+
clientId: e,
|
|
34
34
|
name: "",
|
|
35
|
-
color:
|
|
35
|
+
color: a,
|
|
36
36
|
isEns: "",
|
|
37
37
|
isPlaceholder: !0
|
|
38
38
|
};
|
|
39
39
|
});
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
return
|
|
40
|
+
r.sort((e, n) => !!e.isPlaceholder != !!n.isPlaceholder ? e.isPlaceholder ? 1 : -1 : String(e.clientId).localeCompare(String(n.clientId)));
|
|
41
|
+
const i = /* @__PURE__ */ new Set();
|
|
42
|
+
return r.filter((e) => e.isPlaceholder || !e.name ? !0 : i.has(e.name) ? !1 : (i.add(e.name), !0));
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function _(o, t) {
|
|
45
|
+
const r = new Set(
|
|
46
|
+
o.filter(({ isPlaceholder: e, name: n }) => !e && n).map(({ name: e }) => e)
|
|
47
|
+
);
|
|
48
|
+
t.forEach((e, n) => {
|
|
49
|
+
r.has(n) || t.delete(n);
|
|
50
|
+
});
|
|
51
|
+
const i = /* @__PURE__ */ new Set();
|
|
45
52
|
return o.forEach((e) => {
|
|
46
53
|
if (e.isPlaceholder || !e.name) return;
|
|
47
54
|
let n = t.get(e.name);
|
|
48
|
-
n || (n = c[t.size %
|
|
55
|
+
(!n || i.has(n)) && (n = s.find((c) => !i.has(c)) ?? n ?? s[t.size % s.length], t.set(e.name, n)), i.add(n), e.color = n;
|
|
49
56
|
}), o;
|
|
50
57
|
}
|
|
51
|
-
function
|
|
52
|
-
return o.slice().sort().map((
|
|
53
|
-
const
|
|
54
|
-
return
|
|
58
|
+
function g(o, t) {
|
|
59
|
+
return o.slice().sort().map((r) => {
|
|
60
|
+
const i = t.get(r);
|
|
61
|
+
return i ? `${r}:${i.name}:${i.isEns}` : `${r}:?`;
|
|
55
62
|
}).join("|");
|
|
56
63
|
}
|
|
57
|
-
const
|
|
64
|
+
const p = l, C = u, w = [
|
|
58
65
|
{
|
|
59
66
|
id: "0",
|
|
60
67
|
name: "Sheet1",
|
|
@@ -174,36 +181,36 @@ const g = a, p = l, C = [
|
|
|
174
181
|
"freeze-column",
|
|
175
182
|
"|",
|
|
176
183
|
"clear-format"
|
|
177
|
-
],
|
|
184
|
+
], O = {
|
|
178
185
|
height: null,
|
|
179
186
|
isShow: !1,
|
|
180
187
|
left: null,
|
|
181
188
|
top: null,
|
|
182
189
|
value: "",
|
|
183
190
|
width: null
|
|
184
|
-
},
|
|
185
|
-
function
|
|
186
|
-
return
|
|
191
|
+
}, d = "#5298FF";
|
|
192
|
+
function f(o) {
|
|
193
|
+
return s[o % s.length];
|
|
187
194
|
}
|
|
188
|
-
function
|
|
195
|
+
function E() {
|
|
189
196
|
return "#" + Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0");
|
|
190
197
|
}
|
|
191
|
-
function
|
|
192
|
-
return t || (o ?
|
|
198
|
+
function P(o, t, r) {
|
|
199
|
+
return t || (o ? d : r != null ? f(r) : E());
|
|
193
200
|
}
|
|
194
201
|
export {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
202
|
+
O as C,
|
|
203
|
+
w as D,
|
|
204
|
+
p as E,
|
|
198
205
|
R as H,
|
|
199
|
-
|
|
206
|
+
C as S,
|
|
200
207
|
A as T,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
c,
|
|
208
|
+
_ as a,
|
|
209
|
+
h as b,
|
|
210
|
+
s as c,
|
|
204
211
|
L as d,
|
|
205
|
-
|
|
206
|
-
|
|
212
|
+
d as e,
|
|
213
|
+
g as i,
|
|
207
214
|
S as m,
|
|
208
|
-
|
|
215
|
+
P as p
|
|
209
216
|
};
|
package/dist/constants.js
CHANGED
|
@@ -4,7 +4,7 @@ var Je = (e, t, l) => Hg(e, typeof t != "symbol" ? t + "" : t, l);
|
|
|
4
4
|
import Bt, { useRef as Se, useContext as mt, useState as ge, useMemo as ct, useEffect as fe, useCallback as We, useLayoutEffect as pl, forwardRef as nm, createElement as Kr, useSyncExternalStore as Bg, useImperativeHandle as vg, createContext as sm, memo as kg } from "react";
|
|
5
5
|
import { a as Ue, d as At, r as qt, h as ho, j as zt, k as Ed, i as di, l as Qe, m as ja, n as Ur, o as MZ, p as ni, q as Dd, s as cs, S as Pd, t as $o, v as Fg, u as cm, w as Tg, x as gi, y as Ng, z as Ti, A as Ht, B as Mn, C as om, D as zc, E as Kg, F as Oc, G as Ug, H as Vt, I as Ut, J as jZ, K as sl, L as rn, M as Mg, N as za, O as _l, P as vi, Q as Cl, R as _t, T as ki, U as ub, V as am, W as jg, X as Ec, Y as hs, Z as un, _ as mb, $ as Bn, a0 as zg, a1 as zZ, a2 as Dc, a3 as Oa, a4 as OZ, a5 as wi, a6 as Og, a7 as bs, a8 as Eg, a9 as Ni, aa as yl, ab as Gl, ac as Ss, ad as ea, ae as Dg, af as ri, ag as dm, ah as rm, ai as Pg, aj as EZ, ak as DZ, al as PZ, am as QZ, an as AZ, ao as ta, ap as Mr, aq as qZ, ar as _Z, as as la, at as $Z, au as eI, av as Qg, aw as Rs, ax as tI, ay as lI, az as iI, aA as nI, aB as sI, aC as cI, aD as Ag, aE as oI, aF as aI, aG as dI, aH as rI, aI as qg, aJ as uI, aK as mI, aL as um, aM as Zs, aN as Is, aO as hI, aP as mm, aQ as bI, aR as ZI, aS as II, aT as yI, aU as _g, aV as Ea, aW as $g, aX as pI, aY as Da, aZ as ji, a_ as bo, a$ as eX, b0 as hm, b1 as os, b2 as qi, b3 as tX, b4 as lX, b5 as Xc, b6 as iX, b7 as nX, b8 as Qd, b9 as bm, ba as sX, bb as cX, bc as oX, bd as aX, be as dX, bf as Pa, bg as ql, bh as wl, bi as cl, bj as ys, bk as Zm, bl as fc, bm as nl, bn as rX, bo as Qa, bp as ps, bq as Im, br as Al, bs as Aa, bt as mn, bu as qa, bv as ia, bw as jn, bx as uX, by as ym, bz as pm, bA as Gm, bB as mX, bC as Rn, bD as El, bE as _a, bF as hX, bG as $a, bH as GI, bI as Wi, bJ as vn, bK as ts, bL as na, bM as bX, bN as ZX, bO as Rl, bP as IX, bQ as Vc, bR as yX, bS as Ki, bT as zn, bU as ed, bV as Zl, bW as tl, bX as Pc, bY as Qc, bZ as WI, b_ as gI, b$ as Ln, c0 as td, c1 as pX, c2 as GX, c3 as WX, c4 as gX, c5 as XX, c6 as fX, c7 as VX, c8 as xX, c9 as YX, ca as sa, cb as jl, cc as SX, cd as XI, ce as fI, cf as RX, cg as LX, ch as VI, ci as ls, cj as jr, ck as CX, cl as xI, cm as YI, cn as wX, co as SI, cp as Wm, cq as RI, cr as LI, cs as JX, ct as ld, cu as CI, cv as gm, cw as wI, cx as JI, cy as HI, cz as BI, cA as vI, cB as Xm, cC as id, cD as kI, cE as Pl, cF as fm, cG as Vm, cH as HX, cI as FI, cJ as TI, cK as nn, cL as Fi, cM as nd, cN as BX, cO as NI, cP as sn, cQ as cn, cR as Fo, cS as vX, cT as ca, cU as kX, cV as KI, cW as UI, cX as FX, cY as oa, cZ as xm, c_ as MI, c$ as TX, d0 as jI, d1 as zI, d2 as OI, d3 as NX, d4 as KX, d5 as EI, d6 as zr, d7 as DI, d8 as PI, d9 as UX, da as MX, db as QI, dc as jX, dd as zX, de as Or, df as sd, dg as Er, dh as AI, di as is, dj as OX, dk as EX, dl as qI, dm as _I, dn as $I, dp as ey, dq as ty, dr as Xi, ds as DX, dt as PX, du as ly, dv as iy, dw as ny, dx as Ym, dy as sy, dz as QX, dA as AX, dB as aa, dC as cy, dD as qX, dE as _X, dF as $X, dG as oy, dH as Dr, dI as ay, dJ as Li, dK as dy, dL as ry, dM as uy, dN as ef, dO as Pr, dP as xc, dQ as tf, dR as my, dS as hy, dT as Qr, dU as lf, dV as Ar, dW as nf, dX as da, dY as Sm, dZ as Rm, d_ as Lm, d$ as qr, e0 as by, e1 as Zy, e2 as Iy, e3 as sf, e4 as cf, e5 as of, e6 as af, e7 as df, e8 as Yc, e9 as Sc, ea as ns, eb as yy, ec as rf, ed as py, ee as Gy, ef as _r, eg as Wy, eh as gy, ei as uf, ej as Xy, ek as fy, el as Vy, em as xy, g as Ls, c as _i, en as mf, eo as hf, ep as bf, eq as Zf, er as If, es as Ad, et as yf, eu as pf, ev as Gf, ew as Wf, ex as gf, ey as Xf, ez as ff, e as Cm, f as cd, eA as Vf, eB as xf, eC as hb, eD as bb, eE as Zb, eF as Ib, eG as Yf, eH as Sf, eI as yb } from "./executeStringFunction-B6fhDKyN.js";
|
|
6
6
|
import * as Ne from "yjs";
|
|
7
|
-
import { b as Rf, i as Lf, a as Cf, m as wf, p as $r, E as Yy, C as qd, c as pb, T as Jf, H as Hf, d as Bf, D as Sy } from "./constants-
|
|
7
|
+
import { b as Rf, i as Lf, a as Cf, m as wf, p as $r, E as Yy, C as qd, c as pb, T as Jf, H as Hf, d as Bf, D as Sy } from "./constants-exC_CJ-T.js";
|
|
8
8
|
import { t as Sl, f as oi, m as vf, s as kf, u as Ff, a as Tf } from "./persistence-utils-BBTuIssZ.js";
|
|
9
9
|
import $, { isObject as Ry } from "lodash";
|
|
10
10
|
import dl, { applyPatches as eu, produceWithPatches as Nf, enablePatches as Kf, isDraft as Uf, current as Mf } from "immer";
|
|
@@ -51041,7 +51041,7 @@ const WN = ({
|
|
|
51041
51041
|
}, V.readAsText(b);
|
|
51042
51042
|
});
|
|
51043
51043
|
}, IZ = async (e, t, l, i) => {
|
|
51044
|
-
const { handleExportToXLSX: n } = await import("./xlsx-export-impl-
|
|
51044
|
+
const { handleExportToXLSX: n } = await import("./xlsx-export-impl-DNyX6q9a.js");
|
|
51045
51045
|
return n(e, t, l, i);
|
|
51046
51046
|
}, vr = (e) => {
|
|
51047
51047
|
Cy({
|
|
@@ -51133,7 +51133,7 @@ const WN = ({
|
|
|
51133
51133
|
const [o, d] = ge(!1);
|
|
51134
51134
|
return { handleXLSXUpload: We(
|
|
51135
51135
|
async (r, m, h) => {
|
|
51136
|
-
const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-
|
|
51136
|
+
const { runXlsxFileUpload: b } = await import("./use-xlsx-import-impl-BneI1B7o.js");
|
|
51137
51137
|
return b(
|
|
51138
51138
|
{
|
|
51139
51139
|
sheetEditorRef: e,
|
|
@@ -56596,7 +56596,7 @@ async function mz(e, t) {
|
|
|
56596
56596
|
{ suppressUiWarnings: !0 }
|
|
56597
56597
|
);
|
|
56598
56598
|
else {
|
|
56599
|
-
const { runXlsxFileUpload: m } = await import("./use-xlsx-import-impl-
|
|
56599
|
+
const { runXlsxFileUpload: m } = await import("./use-xlsx-import-impl-BneI1B7o.js");
|
|
56600
56600
|
await m(
|
|
56601
56601
|
{
|
|
56602
56602
|
sheetEditorRef: a,
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as s, d as o, f as t, S as r, g as l, h as d, j as n, T as i, k as S, l as c, n as h, o as m, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as I, D as L, E as w, F as A, G as y, H as T, I as v, J as M, K as D, L as b, M as k, N as V } from "./index-
|
|
1
|
+
import { C as s, d as o, f as t, S as r, g as l, h as d, j as n, T as i, k as S, l as c, n as h, o as m, p, q as C, t as u, u as E, v as F, w as g, x, z as R, A as f, B as I, D as L, E as w, F as A, G as y, H as T, I as v, J as M, K as D, L as b, M as k, N as V } from "./index-nS5nX5Q7.js";
|
|
2
2
|
import { cw as G, cx as K, cy as P, cE as U, bq as X, e as _, f as j, l as B, a as H, dg as O, dh as q, b9 as J, di as N, dj as Y, dn as Z, dp as Q, dr as W, I as $, dG as ee, ed as ae, b2 as se } from "./executeStringFunction-B6fhDKyN.js";
|
|
3
3
|
import { FLVURL as te } from "@fileverse-dev/formulajs";
|
|
4
|
-
import { E as le, S as de } from "./constants-
|
|
4
|
+
import { E as le, S as de } from "./constants-exC_CJ-T.js";
|
|
5
5
|
export {
|
|
6
6
|
s as CommentAction,
|
|
7
7
|
o as CommentCellUI,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as BZ from "yjs";
|
|
2
|
-
import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-
|
|
2
|
+
import { i as Yl, a as hl, s as eZ, r as ul, y as Il, b as pl, m as Rl } from "./index-nS5nX5Q7.js";
|
|
3
3
|
import { g as sl } from "./executeStringFunction-B6fhDKyN.js";
|
|
4
4
|
import { Workbook as al } from "exceljs";
|
|
5
5
|
import Kl from "luckyexcel";
|
|
6
|
-
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-
|
|
7
|
-
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-
|
|
6
|
+
import { e as Jl, b as xl, n as Ml } from "./xlsx-hyperlink-inline-7zGlO4ea.js";
|
|
7
|
+
import { parseDefinedNamesFromXlsxBuffer as Sl, excelEntriesToDefinedNames as OZ } from "./xlsx-defined-names-BOrtrHWX.js";
|
|
8
8
|
import { toast as fZ } from "@fileverse/ui";
|
|
9
9
|
var Zl = { exports: {} };
|
|
10
10
|
(function(c) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { utils as F, write as it } from "xlsx-js-style";
|
|
2
2
|
import { Workbook as ct } from "exceljs";
|
|
3
3
|
import { toast as nt } from "@fileverse/ui";
|
|
4
|
-
import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-
|
|
4
|
+
import { J as ft, c as X, g as ut, a as pt } from "./xlsx-hyperlink-inline-7zGlO4ea.js";
|
|
5
5
|
import { b as dt } from "./executeStringFunction-B6fhDKyN.js";
|
|
6
|
-
import { e as ht } from "./index-
|
|
6
|
+
import { e as ht } from "./index-nS5nX5Q7.js";
|
|
7
7
|
const mt = {
|
|
8
8
|
1: "thin",
|
|
9
9
|
2: "hair",
|
|
@@ -806,7 +806,7 @@ const Y = (e) => {
|
|
|
806
806
|
D
|
|
807
807
|
);
|
|
808
808
|
});
|
|
809
|
-
const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-
|
|
809
|
+
const { applyDefinedNamesToExcelWorkbook: ot } = await import("./xlsx-defined-names-BOrtrHWX.js");
|
|
810
810
|
ot(
|
|
811
811
|
P,
|
|
812
812
|
(T = (a = (d = e.current).getWorkbookContext) == null ? void 0 : a.call(d)) == null ? void 0 : T.definedNames,
|