@fileverse-dev/dsheet 2.0.26-copy → 2.0.26-copy-1
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
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _h = Object.defineProperty;
|
|
2
2
|
var xh = (e, t, n) => t in e ? _h(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var Qn = (e, t, n) => xh(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import Kt, { useRef as Me, useContext as lt, useState as Ie, useMemo as it, useEffect as Ne, useCallback as je, useLayoutEffect as Jt, forwardRef as Zi, createElement as pi, useImperativeHandle as Sh, createContext as jh } from "react";
|
|
5
|
-
import { g as Qr, a as Te, c as It, r as Nt, b as jn, s as
|
|
5
|
+
import { g as Qr, a as Te, c as It, r as Nt, b as jn, s as ms, d as Le, i as Ki, h as Vr, l as dt, j as Rh, k as Ml, m as $o, n as Pt, o as Ft, p as ko, q as Nu, t as Rt, u as Eu, v as ft, w as Tu, x as Gs, y as qi, z as Mu, A as _o, B as no, C as Yn, D as Au, E as Lu, F as Du, G as Gi, H as Hn, I as zo, J as Ih, K as Nh, L as Jr, M as Xi, N as un, O as ps, P as Eh, Q as dn, R as Th, S as Al, T as Qi, U as Ou, V as Ul, W as Co, X as Fu, Y as Mh, Z as Ut, _ as wn, $ as Ah, a0 as Hu, a1 as Pn, a2 as Xt, a3 as Lh, a4 as ln, a5 as vr, a6 as wr, a7 as hl, a8 as Xs, a9 as po, aa as gs, ab as gi, ac as Pu, ad as tr, ae as $l, af as Dh, ag as el, ah as Oh, ai as ys, aj as tl, ak as ml, al as pl, am as St, an as Wn, ao as $t, ap as An, aq as go, ar as oo, as as Ka, at as Fh, au as vs, av as nl, aw as qa, ax as Hh, ay as zu, az as ol, aA as Ph, aB as lr, aC as Wt, aD as Cn, aE as Ll, aF as zh, aG as xo, aH as Bh, aI as sn, aJ as fo, aK as Vh, aL as Bu, aM as Ji, aN as Vu, aO as Uu, aP as $u, aQ as Wu, aR as Yu, aS as Zu, aT as Ku, aU as ea, aV as Ur, aW as sr, aX as qu, aY as Uh, aZ as Gu, a_ as Qs, a$ as $h, b0 as Wh, b1 as Yh, b2 as Zh, b3 as Rn, b4 as Ht, b5 as ir, b6 as $r, b7 as Kh, b8 as ar, b9 as Wl, ba as Sn, bb as bo, bc as ws, bd as Yl, be as Ko, bf as qh, bg as Gh, bh as ta, bi as Bo, bj as kn, bk as Cs, bl as bs, bm as Xu, bn as uo, bo as gl, bp as Xh, bq as Qh, br as so, bs as ks, bt as qt, bu as Ot, bv as Qu, bw as Ju, bx as _s, by as Jh, bz as e0, bA as t0, bB as n0, bC as o0, bD as e1, bE as t1, bF as Fo, bG as r0, bH as n1, bI as o1, bJ as r1, bK as l1, bL as s1, bM as na, bN as xn, bO as l0, bP as i1, bQ as yo, bR as ro, bS as vo, bT as wo, bU as Dl, bV as s0, bW as a1, bX as i0, bY as oa, bZ as c1, b_ as a0, b$ as u1, c0 as d1, c1 as f1, c2 as yi, c3 as h1, c4 as m1, c5 as c0, c6 as vi, c7 as p1, c8 as Zn, c9 as u0, ca as ra, cb as g1, cc as d0, cd as Zl, ce as f0, cf as y1, cg as v1, ch as eo, ci as w1, cj as C1, ck as Wr, cl as wi, cm as la, cn as sa, co as ia, cp as Pr, cq as b1, cr as k1, cs as _1, ct as h0, cu as m0, cv as Yr, cw as Zr, cx as x1, cy as Ci, cz as In, e as xs, f as rl, cA as p0, cB as g0, cC as Ga, cD as Xa, cE as Qa, cF as Ja, cG as y0, cH as v0, cI as ec } from "./executeStringFunction-C2k81eQQ.js";
|
|
6
6
|
import * as Ve from "yjs";
|
|
7
7
|
import { E as w0, C as tc, D as S1, H as C0, a as b0, T as k0 } from "./constants-CnhOvijG.js";
|
|
8
8
|
import { S as H4 } from "./constants-CnhOvijG.js";
|
|
@@ -11,10 +11,10 @@ import gn, { applyPatches as bi, produceWithPatches as x0, enablePatches as S0,
|
|
|
11
11
|
import { WebrtcProvider as I0 } from "y-webrtc";
|
|
12
12
|
import W, { isObject as j1 } from "lodash";
|
|
13
13
|
import He from "dayjs";
|
|
14
|
-
import { Tooltip as yn, LucideIcon as We, cn as Gt, TextField as Et, Button as ct, DatePicker as N0, IconButton as bt, Select as Nn, SelectTrigger as En, SelectValue as Tn, SelectContent as Mn, SelectItem as jt, Checkbox as
|
|
14
|
+
import { Tooltip as yn, LucideIcon as We, cn as Gt, TextField as Et, Button as ct, DatePicker as N0, IconButton as bt, Select as Nn, SelectTrigger as En, SelectValue as Tn, SelectContent as Mn, SelectItem as jt, Checkbox as to, Divider as Kr, Table as E0, TableHeader as T0, TableRow as nc, TableHead as Js, TableBody as M0, TableCell as ei, Popover as So, PopoverTrigger as jo, PopoverContent as Ro, SelectGroup as oc, SelectLabel as rc, Command as A0, CommandInput as L0, CommandList as D0, CommandEmpty as O0, CommandGroup as F0, CommandItem as H0, RadioGroup as R1, RadioGroupItem as Kl, Label as ql, DynamicModal as P0, toast as ki } from "@fileverse/ui";
|
|
15
15
|
import { createPortal as I1 } from "react-dom";
|
|
16
16
|
import { S as z0 } from "./crypto-constants-CqpCRs86.js";
|
|
17
|
-
import
|
|
17
|
+
import yl from "@tippyjs/react";
|
|
18
18
|
import B0 from "papaparse";
|
|
19
19
|
import { utils as _n, write as V0 } from "xlsx-js-style";
|
|
20
20
|
import { Workbook as N1 } from "exceljs";
|
|
@@ -297,7 +297,7 @@ function Y0() {
|
|
|
297
297
|
} finally {
|
|
298
298
|
N = !1, E.current = _t, K(), Error.prepareStackTrace = vt;
|
|
299
299
|
}
|
|
300
|
-
var
|
|
300
|
+
var Gn = Ce ? Ce.displayName || Ce.name : "", Un = Gn ? ne(Gn) : "";
|
|
301
301
|
return typeof Ce == "function" && B.set(Ce, Un), Un;
|
|
302
302
|
}
|
|
303
303
|
function X(Ce, Pe, Ze) {
|
|
@@ -611,8 +611,8 @@ Check the top-level render call using <` + Ze + ">.");
|
|
|
611
611
|
if (fn !== void 0)
|
|
612
612
|
if (ot)
|
|
613
613
|
if (ie(fn)) {
|
|
614
|
-
for (var
|
|
615
|
-
nt(fn[
|
|
614
|
+
for (var Gn = 0; Gn < fn.length; Gn++)
|
|
615
|
+
nt(fn[Gn], Ce);
|
|
616
616
|
Object.freeze && Object.freeze(fn);
|
|
617
617
|
} else
|
|
618
618
|
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
@@ -620,17 +620,17 @@ Check the top-level render call using <` + Ze + ">.");
|
|
|
620
620
|
nt(fn, Ce);
|
|
621
621
|
}
|
|
622
622
|
if (re.call(Pe, "key")) {
|
|
623
|
-
var Un = j(Ce), tn = Object.keys(Pe).filter(function(
|
|
624
|
-
return
|
|
623
|
+
var Un = j(Ce), tn = Object.keys(Pe).filter(function(fl) {
|
|
624
|
+
return fl !== "key";
|
|
625
625
|
}), Go = tn.length > 0 ? "{key: someKey, " + tn.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
626
626
|
if (!To[Un + Go]) {
|
|
627
|
-
var
|
|
627
|
+
var dl = tn.length > 0 ? "{" + tn.join(": ..., ") + ": ...}" : "{}";
|
|
628
628
|
y(`A props object containing a "key" prop is being spread into JSX:
|
|
629
629
|
let props = %s;
|
|
630
630
|
<%s {...props} />
|
|
631
631
|
React keys must be passed directly to JSX without using spread:
|
|
632
632
|
let props = %s;
|
|
633
|
-
<%s key={someKey} {...props} />`, Go, Un,
|
|
633
|
+
<%s key={someKey} {...props} />`, Go, Un, dl, Un), To[Un + Go] = !0;
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
return Ce === o ? an(At) : ut(At), At;
|
|
@@ -784,11 +784,11 @@ function X0(e) {
|
|
|
784
784
|
e.visibledatacolumn
|
|
785
785
|
)[1] - 2 + e.scrollLeft : e.scrollLeft;
|
|
786
786
|
}
|
|
787
|
-
var
|
|
787
|
+
var vl, Q0 = new Uint8Array(16);
|
|
788
788
|
function J0() {
|
|
789
|
-
if (!
|
|
789
|
+
if (!vl && (vl = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !vl))
|
|
790
790
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
791
|
-
return
|
|
791
|
+
return vl(Q0);
|
|
792
792
|
}
|
|
793
793
|
const em = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
794
794
|
function tm(e) {
|
|
@@ -930,7 +930,7 @@ function D1(e, t) {
|
|
|
930
930
|
}), g.length > 0 && e.hooks.updateCellYdoc(g);
|
|
931
931
|
}
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function Gl(e, t) {
|
|
934
934
|
var o, r, l;
|
|
935
935
|
const n = Te(e, t);
|
|
936
936
|
if (e.luckysheetfile[n].data)
|
|
@@ -947,9 +947,9 @@ function ql(e, t) {
|
|
|
947
947
|
);
|
|
948
948
|
if (Array.isArray(a[1])) {
|
|
949
949
|
const u = { f: a[2], v: a[1] };
|
|
950
|
-
|
|
950
|
+
ms(e, c, s, u, Le(e));
|
|
951
951
|
} else
|
|
952
|
-
|
|
952
|
+
al(e, c, s, a[1], null);
|
|
953
953
|
Ki(e, c, s, t);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
@@ -977,9 +977,9 @@ function O1(e, t, n) {
|
|
|
977
977
|
);
|
|
978
978
|
if (Array.isArray(p[1])) {
|
|
979
979
|
const h = { f: p[2], v: p[1] };
|
|
980
|
-
|
|
980
|
+
ms(e, d, u, h, Le(e));
|
|
981
981
|
} else
|
|
982
|
-
|
|
982
|
+
al(e, d, u, p[1], null);
|
|
983
983
|
Ki(e, d, u, t);
|
|
984
984
|
}
|
|
985
985
|
}
|
|
@@ -1083,7 +1083,7 @@ function H1(e, t) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
}
|
|
1085
1085
|
}
|
|
1086
|
-
function
|
|
1086
|
+
function Xl(e, t, n) {
|
|
1087
1087
|
if (t <= 0 && n <= 0)
|
|
1088
1088
|
return e;
|
|
1089
1089
|
if (e.length + t >= 1e4)
|
|
@@ -1106,7 +1106,7 @@ function Gl(e, t, n) {
|
|
|
1106
1106
|
}
|
|
1107
1107
|
function im(e) {
|
|
1108
1108
|
var t;
|
|
1109
|
-
return e == null ? !1 :
|
|
1109
|
+
return e == null ? !1 : Ml(e.ct) || !W.isEmpty(e.v) || e.f != null || // @ts-ignore
|
|
1110
1110
|
e.s != null || e.ct && ((t = e.ct.s) == null ? void 0 : t.length);
|
|
1111
1111
|
}
|
|
1112
1112
|
function xi(e) {
|
|
@@ -1201,7 +1201,7 @@ function P1(e, t, n, o) {
|
|
|
1201
1201
|
for (let T = w; T <= b; T += 1)
|
|
1202
1202
|
for (let R = y; R <= C; R += 1) {
|
|
1203
1203
|
const A = s[T][R];
|
|
1204
|
-
A != null && (
|
|
1204
|
+
A != null && (Ml(A.ct) || !W.isEmpty(A.v) || A.f != null || // @ts-ignore
|
|
1205
1205
|
A.s != null || A.ct && ((d = A.ct.s) != null && d.length)) && !k && (v = W.cloneDeep(A), k = !0), s[T][R] = { mc: { r: w, c: y } }, a.push({
|
|
1206
1206
|
sheetId: t,
|
|
1207
1207
|
path: ["celldata"],
|
|
@@ -1230,7 +1230,7 @@ function P1(e, t, n, o) {
|
|
|
1230
1230
|
let k = {}, S = !1;
|
|
1231
1231
|
for (let R = w; R <= b; R += 1) {
|
|
1232
1232
|
const A = s[R][v];
|
|
1233
|
-
A != null && (
|
|
1233
|
+
A != null && (Ml(A.ct) || !W.isEmpty(A.v) || A.f != null || // @ts-ignore
|
|
1234
1234
|
A.s != null || A.ct && ((u = A.ct.s) != null && u.length)) && !S && (k = W.cloneDeep(A), S = !0), s[R][v] = { mc: { r: w, c: v } }, a.push({
|
|
1235
1235
|
sheetId: t,
|
|
1236
1236
|
path: ["celldata"],
|
|
@@ -1260,7 +1260,7 @@ function P1(e, t, n, o) {
|
|
|
1260
1260
|
let k = {}, S = !1;
|
|
1261
1261
|
for (let R = y; R <= C; R += 1) {
|
|
1262
1262
|
const A = s[v][R];
|
|
1263
|
-
A != null && (
|
|
1263
|
+
A != null && (Ml(A.ct) || !W.isEmpty(A.v) || A.f != null || // @ts-ignore
|
|
1264
1264
|
A.s != null || A.ct && ((f = A.ct.s) != null && f.length)) && !S && (k = W.cloneDeep(A), S = !0), s[v][R] = { mc: { r: v, c: y } }, a.push({
|
|
1265
1265
|
sheetId: t,
|
|
1266
1266
|
path: ["celldata"],
|
|
@@ -1341,7 +1341,7 @@ function Cr(e, t, n) {
|
|
|
1341
1341
|
const r = (c = e.luckysheetfile[o].hyperlink) == null ? void 0 : c[`${t}_${n}`], l = ua(r);
|
|
1342
1342
|
return l.length > 0 ? l : $o(((a = (s = Le(e)) == null ? void 0 : s[t]) == null ? void 0 : a[n]) ?? void 0);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function Ql(e, t, n) {
|
|
1345
1345
|
return Cr(e, t, n)[0];
|
|
1346
1346
|
}
|
|
1347
1347
|
function da(e, t) {
|
|
@@ -2054,7 +2054,7 @@ function q1(e, t, n, o, r, l, c, s, a) {
|
|
|
2054
2054
|
if (o !== "@" && un(x))
|
|
2055
2055
|
x = Number(x);
|
|
2056
2056
|
else if (z === "d" && typeof x == "string") {
|
|
2057
|
-
const Y =
|
|
2057
|
+
const Y = ps(x);
|
|
2058
2058
|
if (!Y)
|
|
2059
2059
|
continue;
|
|
2060
2060
|
const O = new Date(
|
|
@@ -2101,7 +2101,7 @@ function q1(e, t, n, o, r, l, c, s, a) {
|
|
|
2101
2101
|
Th(x, n, o), x[n] = o, (H = e.luckysheetfile[B]).config || (H.config = {});
|
|
2102
2102
|
const z = e.luckysheetfile[B].config, re = ((F = z.columnlen) == null ? void 0 : F[X]) || e.luckysheetfile[B].defaultColWidth;
|
|
2103
2103
|
if (n === "fs" && a) {
|
|
2104
|
-
const Y =
|
|
2104
|
+
const Y = Al(t[ee][X], a, e, {
|
|
2105
2105
|
r: ee,
|
|
2106
2106
|
c: X,
|
|
2107
2107
|
cellWidth: re
|
|
@@ -2139,26 +2139,52 @@ function q1(e, t, n, o, r, l, c, s, a) {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
}
|
|
2141
2141
|
function en(e, t, n, o, r, l) {
|
|
2142
|
+
var a, d;
|
|
2142
2143
|
if (!ft(e)) return;
|
|
2143
2144
|
if (o in Ih && e.luckysheetCellUpdate.length > 0 && t.innerText.substring(0, 1) !== "=") {
|
|
2144
2145
|
Nh(e, o, r, t);
|
|
2145
2146
|
return;
|
|
2146
2147
|
}
|
|
2147
2148
|
const s = W.cloneDeep(e.config);
|
|
2148
|
-
W.isNil(s.rowlen) && (s.rowlen = {}), W.forEach(e.luckysheet_select_save, (
|
|
2149
|
-
const [
|
|
2149
|
+
if (W.isNil(s.rowlen) && (s.rowlen = {}), W.forEach(e.luckysheet_select_save, (u) => {
|
|
2150
|
+
const [f, p] = u.row, [m, h] = u.column;
|
|
2150
2151
|
q1(
|
|
2151
2152
|
e,
|
|
2152
2153
|
n,
|
|
2153
2154
|
o,
|
|
2154
2155
|
r,
|
|
2155
|
-
d,
|
|
2156
|
-
u,
|
|
2157
2156
|
f,
|
|
2158
2157
|
p,
|
|
2158
|
+
m,
|
|
2159
|
+
h,
|
|
2159
2160
|
l
|
|
2160
2161
|
);
|
|
2161
|
-
})
|
|
2162
|
+
}), o === "ct" && ((a = e.luckysheet_select_save) != null && a.length) && e.currentSheetId) {
|
|
2163
|
+
const u = e.currentSheetId, f = e.formulaCache.revDepsByCell, p = /* @__PURE__ */ new Map();
|
|
2164
|
+
W.forEach(e.luckysheet_select_save, (h) => {
|
|
2165
|
+
const [g, w] = h.row, [b, y] = h.column;
|
|
2166
|
+
for (let C = g; C <= w; C += 1)
|
|
2167
|
+
if (!(!W.isNil(e.config.rowhidden) && !W.isNil(e.config.rowhidden[C])))
|
|
2168
|
+
for (let v = b; v <= y; v += 1)
|
|
2169
|
+
p.set(`${C}_${v}`, { r: C, c: v });
|
|
2170
|
+
});
|
|
2171
|
+
let m = !1;
|
|
2172
|
+
if (f != null && f.size) {
|
|
2173
|
+
for (const { r: h, c: g } of p.values())
|
|
2174
|
+
if ((d = f.get(`${u}:${h}:${g}`)) != null && d.size) {
|
|
2175
|
+
m = !0;
|
|
2176
|
+
break;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
if (m && p.size > 0) {
|
|
2180
|
+
const h = Array.from(p.values()).map(({ r: g, c: w }) => ({
|
|
2181
|
+
r: g,
|
|
2182
|
+
c: w,
|
|
2183
|
+
i: u
|
|
2184
|
+
}));
|
|
2185
|
+
e.formulaCache.execFunctionExist = h, e.formulaCache.execFunctionExist.reverse(), Yn(e, null, null, null, null, n), e.formulaCache.execFunctionGlobalData = null, Jr(e);
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2162
2188
|
}
|
|
2163
2189
|
function Ns(e, t, n) {
|
|
2164
2190
|
const o = Le(e);
|
|
@@ -2166,11 +2192,11 @@ function Ns(e, t, n) {
|
|
|
2166
2192
|
const l = Mh(e, n, 1) ? 0 : 1;
|
|
2167
2193
|
en(e, t, o, n, l);
|
|
2168
2194
|
}
|
|
2169
|
-
function
|
|
2195
|
+
function ll(e, t, n, o, r) {
|
|
2170
2196
|
const l = Le(e);
|
|
2171
2197
|
l && en(e, t, l, n, o, r);
|
|
2172
2198
|
}
|
|
2173
|
-
function
|
|
2199
|
+
function Jl(e) {
|
|
2174
2200
|
let t = e;
|
|
2175
2201
|
return W.isPlainObject(t) && (t = t.v), !!(!Co(t) && Fu(t).num && (e.ct == null || e.ct.t == null || e.ct.t === "n" || e.ct.t === "g"));
|
|
2176
2202
|
}
|
|
@@ -2182,7 +2208,7 @@ function zr(e, t, n, o) {
|
|
|
2182
2208
|
let r = null, l = 0, c = 0;
|
|
2183
2209
|
for (let s = n - 1; s >= 0; s -= 1) {
|
|
2184
2210
|
let a;
|
|
2185
|
-
if (o === "c" ? a = e[t][s] : a = e[s][t],
|
|
2211
|
+
if (o === "c" ? a = e[t][s] : a = e[s][t], Jl(a))
|
|
2186
2212
|
r = s;
|
|
2187
2213
|
else if (a == null || a.v == null || a.v === "") {
|
|
2188
2214
|
if (l += 1, l >= 40)
|
|
@@ -2200,7 +2226,7 @@ function er(e, t, n, o, r, l, c, s, a, d) {
|
|
|
2200
2226
|
const g = `<span dir="auto" class="luckysheet-formula-text-color">=</span><span dir="auto" class="luckysheet-formula-text-color">${s.toUpperCase()}</span><span dir="auto" class="luckysheet-formula-text-color">(</span><span dir="auto" class="luckysheet-formula-text-color">)</span>`;
|
|
2201
2227
|
e.innerHTML = g;
|
|
2202
2228
|
const w = e.querySelectorAll("span");
|
|
2203
|
-
|
|
2229
|
+
Ul(n, w[w.length - 2], 0, 1);
|
|
2204
2230
|
return;
|
|
2205
2231
|
}
|
|
2206
2232
|
const u = Nt(l[0], n.visibledatarow)[0], f = Nt(l[1], n.visibledatarow)[1], p = It(c[0], n.visibledatacolumn)[0], m = It(c[1], n.visibledatacolumn)[1], h = `<span dir="auto" class="luckysheet-formula-text-color">=</span><span dir="auto" class="luckysheet-formula-text-color">${s.toUpperCase()}</span><span dir="auto" class="luckysheet-formula-text-color">(</span><span class="fortune-formula-functionrange-cell" rangeindex="0" dir="auto" style="color:${Lh[0]};">${Pn(
|
|
@@ -2250,12 +2276,12 @@ function co(e, t, n, o, r, l, c) {
|
|
|
2250
2276
|
i: c.currentSheetId
|
|
2251
2277
|
});
|
|
2252
2278
|
}
|
|
2253
|
-
function
|
|
2279
|
+
function wl(e, t, n, o, r, l, c, s, a, d, u, f, p) {
|
|
2254
2280
|
d == null && (d = "r"), f == null && (f = !0), p == null && (p = !0);
|
|
2255
2281
|
let m = !0, h = !1;
|
|
2256
2282
|
for (let g = c; g <= s; g += 1) {
|
|
2257
2283
|
let w = null;
|
|
2258
|
-
d === "c" ? w = o[g][l] : w = o[l][g],
|
|
2284
|
+
d === "c" ? w = o[g][l] : w = o[l][g], Jl(w) ? (m = !1, h = !0) : pm(w) && (m = !1);
|
|
2259
2285
|
}
|
|
2260
2286
|
if (m && p) {
|
|
2261
2287
|
let g = zr(o, r, l, d);
|
|
@@ -2420,9 +2446,9 @@ function G1(e, t, n, o, r) {
|
|
|
2420
2446
|
);
|
|
2421
2447
|
return;
|
|
2422
2448
|
}
|
|
2423
|
-
p - 1 >= 0 &&
|
|
2449
|
+
p - 1 >= 0 && Jl(c[p - 1][m]) ? d(c, f, p, m, h, o) : h - 1 >= 0 && Jl(c[f][h - 1]) ? a(c, f, p, m, h, o) : d(c, f, p, m, h, o);
|
|
2424
2450
|
} else if (f === p)
|
|
2425
|
-
s =
|
|
2451
|
+
s = wl(
|
|
2426
2452
|
t,
|
|
2427
2453
|
n,
|
|
2428
2454
|
e,
|
|
@@ -2436,7 +2462,7 @@ function G1(e, t, n, o, r) {
|
|
|
2436
2462
|
r
|
|
2437
2463
|
);
|
|
2438
2464
|
else if (m === h)
|
|
2439
|
-
s =
|
|
2465
|
+
s = wl(
|
|
2440
2466
|
t,
|
|
2441
2467
|
n,
|
|
2442
2468
|
e,
|
|
@@ -2452,7 +2478,7 @@ function G1(e, t, n, o, r) {
|
|
|
2452
2478
|
else {
|
|
2453
2479
|
let b = !0;
|
|
2454
2480
|
for (let C = f; C <= p; C += 1)
|
|
2455
|
-
b =
|
|
2481
|
+
b = wl(
|
|
2456
2482
|
t,
|
|
2457
2483
|
n,
|
|
2458
2484
|
e,
|
|
@@ -2469,7 +2495,7 @@ function G1(e, t, n, o, r) {
|
|
|
2469
2495
|
) && b;
|
|
2470
2496
|
let y = !0;
|
|
2471
2497
|
for (let C = m; C <= h; C += 1)
|
|
2472
|
-
y =
|
|
2498
|
+
y = wl(
|
|
2473
2499
|
t,
|
|
2474
2500
|
n,
|
|
2475
2501
|
e,
|
|
@@ -2487,9 +2513,9 @@ function G1(e, t, n, o, r) {
|
|
|
2487
2513
|
s = !!b && !!y;
|
|
2488
2514
|
}
|
|
2489
2515
|
s = s && s;
|
|
2490
|
-
}), s || (e.formulaCache.execFunctionExist.reverse(),
|
|
2516
|
+
}), s || (e.formulaCache.execFunctionExist.reverse(), Yn(e, null, null, null, null, c), e.formulaCache.execFunctionGlobalData = null));
|
|
2491
2517
|
}
|
|
2492
|
-
function
|
|
2518
|
+
function sl(e) {
|
|
2493
2519
|
var t;
|
|
2494
2520
|
if (e.luckysheet_copy_save !== null) {
|
|
2495
2521
|
if (((t = e.luckysheet_copy_save) == null ? void 0 : t.dataSheetId) === e.currentSheetId)
|
|
@@ -2632,10 +2658,10 @@ function Ms(e, t) {
|
|
|
2632
2658
|
Ns(e, t, "un");
|
|
2633
2659
|
}
|
|
2634
2660
|
function X1(e, t, n) {
|
|
2635
|
-
|
|
2661
|
+
ll(e, t, "ht", n);
|
|
2636
2662
|
}
|
|
2637
2663
|
function Q1(e, t, n) {
|
|
2638
|
-
|
|
2664
|
+
ll(e, t, "vt", n);
|
|
2639
2665
|
}
|
|
2640
2666
|
function Cm(e) {
|
|
2641
2667
|
if (!ft(e) || e.luckysheet_select_save == null || e.luckysheet_select_save.length === 0 || e.luckysheet_select_save.length > 1)
|
|
@@ -2644,7 +2670,7 @@ function Cm(e) {
|
|
|
2644
2670
|
const o = e.luckysheet_select_save[0].row[0], r = e.luckysheet_select_save[0].row[1], l = e.luckysheet_select_save[0].column[0], c = e.luckysheet_select_save[0].column[1];
|
|
2645
2671
|
if (n = Hn(e, e.config, o, r, l, c), n)
|
|
2646
2672
|
return;
|
|
2647
|
-
|
|
2673
|
+
sl(e), e.luckysheet_selection_range = [
|
|
2648
2674
|
{
|
|
2649
2675
|
row: e.luckysheet_select_save[0].row,
|
|
2650
2676
|
column: e.luckysheet_select_save[0].column
|
|
@@ -2738,12 +2764,12 @@ function bm(e) {
|
|
|
2738
2764
|
}
|
|
2739
2765
|
}
|
|
2740
2766
|
function J1(e, t, n) {
|
|
2741
|
-
|
|
2767
|
+
ll(e, t, "fc", n);
|
|
2742
2768
|
}
|
|
2743
2769
|
function ed(e, t, n) {
|
|
2744
|
-
|
|
2770
|
+
ll(e, t, "bg", n);
|
|
2745
2771
|
}
|
|
2746
|
-
function
|
|
2772
|
+
function es(e, t, n, o) {
|
|
2747
2773
|
if (!ft(e)) return;
|
|
2748
2774
|
t == null && (t = "border-all");
|
|
2749
2775
|
let l = n, c = o;
|
|
@@ -2814,7 +2840,7 @@ function ji(e, t) {
|
|
|
2814
2840
|
s && (l = s.r + s.rs - 1, c = s.c + s.cs - 1), o.frozen = { type: "both", range: { row_focus: l, column_focus: c } }, t === "freeze-row" ? o.frozen.type = "rangeRow" : t === "freeze-col" && (o.frozen.type = "rangeColumn");
|
|
2815
2841
|
}
|
|
2816
2842
|
function nd(e, t, n, o) {
|
|
2817
|
-
|
|
2843
|
+
ll(e, t, "fs", n, o);
|
|
2818
2844
|
}
|
|
2819
2845
|
function km(e, t, n, o) {
|
|
2820
2846
|
G1(e, t, n, "SUM", o);
|
|
@@ -2943,7 +2969,7 @@ const xm = {
|
|
|
2943
2969
|
"number-increase": wm,
|
|
2944
2970
|
"sort-cell": (e) => td(e, !0),
|
|
2945
2971
|
"merge-all": (e) => Ho(e, "merge-all"),
|
|
2946
|
-
"border-all": (e) =>
|
|
2972
|
+
"border-all": (e) => es(e, "border-all"),
|
|
2947
2973
|
bold: Es,
|
|
2948
2974
|
italic: Ts,
|
|
2949
2975
|
"strike-through": pa,
|
|
@@ -2968,9 +2994,9 @@ function ld(e) {
|
|
|
2968
2994
|
}
|
|
2969
2995
|
class jm {
|
|
2970
2996
|
constructor(t = 350) {
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2997
|
+
Qn(this, "active", /* @__PURE__ */ new Map());
|
|
2998
|
+
Qn(this, "animationFrameId", null);
|
|
2999
|
+
Qn(this, "onTick", null);
|
|
2974
3000
|
this.durationMs = t, this.durationMs = t;
|
|
2975
3001
|
}
|
|
2976
3002
|
markChanged(t, n, o) {
|
|
@@ -3050,10 +3076,10 @@ function Nr(e, t, n, o, r, l, c) {
|
|
|
3050
3076
|
}
|
|
3051
3077
|
class va {
|
|
3052
3078
|
constructor(t, n) {
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3079
|
+
Qn(this, "canvasElement");
|
|
3080
|
+
Qn(this, "sheetCtx");
|
|
3081
|
+
Qn(this, "measureTextCacheTimeOut");
|
|
3082
|
+
Qn(this, "cellOverflowMapCache");
|
|
3057
3083
|
this.canvasElement = t, this.sheetCtx = n, this.cellOverflowMapCache = {};
|
|
3058
3084
|
}
|
|
3059
3085
|
drawRowHeader(t, n, o) {
|
|
@@ -3069,7 +3095,7 @@ class va {
|
|
|
3069
3095
|
o,
|
|
3070
3096
|
this.sheetCtx.rowHeaderWidth - 1,
|
|
3071
3097
|
n
|
|
3072
|
-
), r.font =
|
|
3098
|
+
), r.font = hl(this.sheetCtx.defaultFontSize), r.textBaseline = hn.textBaseline, r.fillStyle = hn.fillStyle;
|
|
3073
3099
|
let l, c;
|
|
3074
3100
|
l = W.sortedIndex(this.sheetCtx.visibledatarow, t), c = W.sortedIndex(
|
|
3075
3101
|
this.sheetCtx.visibledatarow,
|
|
@@ -3150,7 +3176,7 @@ class va {
|
|
|
3150
3176
|
0,
|
|
3151
3177
|
n,
|
|
3152
3178
|
this.sheetCtx.columnHeaderHeight - 1
|
|
3153
|
-
), r.font =
|
|
3179
|
+
), r.font = hl(this.sheetCtx.defaultFontSize), r.textBaseline = hn.textBaseline, r.fillStyle = hn.fillStyle;
|
|
3154
3180
|
let l, c;
|
|
3155
3181
|
l = W.sortedIndex(
|
|
3156
3182
|
this.sheetCtx.visibledatacolumn,
|
|
@@ -3266,7 +3292,7 @@ class va {
|
|
|
3266
3292
|
c - 1,
|
|
3267
3293
|
b - t,
|
|
3268
3294
|
w - n
|
|
3269
|
-
), f.font =
|
|
3295
|
+
), f.font = hl(this.sheetCtx.defaultFontSize), f.fillStyle = hn.fillStyle;
|
|
3270
3296
|
const y = [], C = {}, v = {}, k = 0.5;
|
|
3271
3297
|
(D = (se = this.sheetCtx.hooks).beforeRenderCellArea) == null || D.call(se, u, f);
|
|
3272
3298
|
for (let K = p; K <= m; K += 1) {
|
|
@@ -3322,7 +3348,7 @@ class va {
|
|
|
3322
3348
|
};
|
|
3323
3349
|
}
|
|
3324
3350
|
}
|
|
3325
|
-
const S = {}, T = {}, R =
|
|
3351
|
+
const S = {}, T = {}, R = gs(this.sheetCtx), A = this.getCellOverflowMap(
|
|
3326
3352
|
f,
|
|
3327
3353
|
h,
|
|
3328
3354
|
g,
|
|
@@ -3583,7 +3609,7 @@ class va {
|
|
|
3583
3609
|
for (let m = 0; m < a[f].length; m += 1) {
|
|
3584
3610
|
const h = a[f][m];
|
|
3585
3611
|
if (((u = (d = this.sheetCtx.config) == null ? void 0 : d.colhidden) == null ? void 0 : u[m]) == null && h && cc(h) && W.isNil(h.mc) && h.tb === "1") {
|
|
3586
|
-
const g = wn(a, f, m, "ht"), w =
|
|
3612
|
+
const g = wn(a, f, m, "ht"), w = Al(h, t, this.sheetCtx, {
|
|
3587
3613
|
r: f,
|
|
3588
3614
|
c: m
|
|
3589
3615
|
});
|
|
@@ -3677,7 +3703,7 @@ class va {
|
|
|
3677
3703
|
if (s.fillRect(R[0], R[1], R[2], R[3]), `${t}_${n}` in p) {
|
|
3678
3704
|
const V = p[`${t}_${n}`].v;
|
|
3679
3705
|
s.fillStyle = "#000000";
|
|
3680
|
-
const L =
|
|
3706
|
+
const L = hl(this.sheetCtx.defaultFontSize);
|
|
3681
3707
|
s.font = L;
|
|
3682
3708
|
const H = r + 4 + u, F = l + f - 2;
|
|
3683
3709
|
s.textBaseline = "bottom";
|
|
@@ -3701,7 +3727,7 @@ class va {
|
|
|
3701
3727
|
this.sheetCtx.currentSheetId
|
|
3702
3728
|
), { dataVerification: q } = this.sheetCtx.luckysheetfile[A];
|
|
3703
3729
|
if (q != null && q[`${t}_${n}`] && (q == null ? void 0 : q[`${t}_${n}`].type) === "dropdown") {
|
|
3704
|
-
const V =
|
|
3730
|
+
const V = $l(this.sheetCtx, [n]), H = (((V == null ? void 0 : V[n]) || 70) - 5) * this.sheetCtx.zoomRatio, F = 16 * this.sheetCtx.zoomRatio, I = 8 * this.sheetCtx.zoomRatio, G = c + u - 4 - H, Q = o + f + 2.7;
|
|
3705
3731
|
s.beginPath(), s.fillStyle = "rgba(232, 235, 236, 1)", s.roundRect(G, Q, H, F, I), s.fill(), s.closePath();
|
|
3706
3732
|
const K = 7 * this.sheetCtx.zoomRatio, E = 4 * this.sheetCtx.zoomRatio, U = G - 2 + H - K - 2 * this.sheetCtx.zoomRatio, ne = Q + (F - E) / 2;
|
|
3707
3733
|
s.beginPath(), s.fillStyle = "rgba(0, 0, 0, 1)", s.moveTo(U, ne), s.lineTo(U + K, ne), s.lineTo(U + K / 2, ne + E), s.closePath(), s.fill();
|
|
@@ -3790,7 +3816,7 @@ class va {
|
|
|
3790
3816
|
const re = S == null ? void 0 : S.v, Y = (Q = V == null ? void 0 : V[`${t}_${n}`]) == null ? void 0 : Q.color, O = (K = V == null ? void 0 : V[`${t}_${n}`]) == null ? void 0 : K.value1.split(","), oe = Y == null ? void 0 : Y.split(",").map((le) => le.trim()), J = [];
|
|
3791
3817
|
for (let le = 0; le < (oe == null ? void 0 : oe.length); le += 3)
|
|
3792
3818
|
J.push(oe.slice(le, le + 3).join(", "));
|
|
3793
|
-
const ue = (E = String(re)) == null ? void 0 : E.split(","), ie =
|
|
3819
|
+
const ue = (E = String(re)) == null ? void 0 : E.split(","), ie = $l(this.sheetCtx, [n]), te = ((ie == null ? void 0 : ie[n]) || 70) - 5, he = te * this.sheetCtx.zoomRatio, pe = 16 * this.sheetCtx.zoomRatio, be = 8 * this.sheetCtx.zoomRatio, we = c + f - 4 - he, ke = o + p + 2.7, me = 2 * this.sheetCtx.zoomRatio;
|
|
3794
3820
|
for (let le = 0; le < (ue == null ? void 0 : ue.length); le += 1) {
|
|
3795
3821
|
const ae = we, ce = ke + le * (pe + me);
|
|
3796
3822
|
let de;
|
|
@@ -3921,7 +3947,7 @@ class va {
|
|
|
3921
3947
|
}
|
|
3922
3948
|
const re = r + f, Y = o + p + 1;
|
|
3923
3949
|
a.save(), a.beginPath(), a.rect(re, Y, T, R), a.clip(), a.scale(this.sheetCtx.zoomRatio, this.sheetCtx.zoomRatio), j != null && j.strikethrough && (S = { ...S, cl: 1 }), j != null && j.italic && (S = { ...S, it: 1 }), j != null && j.underline && (S = { ...S, un: 1 }), j != null && j.bold && (S = { ...S, bl: 1 });
|
|
3924
|
-
const O = S ?
|
|
3950
|
+
const O = S ? Al(
|
|
3925
3951
|
S,
|
|
3926
3952
|
a,
|
|
3927
3953
|
this.sheetCtx,
|
|
@@ -3951,7 +3977,7 @@ class va {
|
|
|
3951
3977
|
O.textHeightAll / this.sheetCtx.zoomRatio
|
|
3952
3978
|
);
|
|
3953
3979
|
}
|
|
3954
|
-
a.fillStyle = wn(k, t, n, "fc"), j != null && j.textColor && (a.fillStyle = j.textColor), (((ee = (P = S == null ? void 0 : S.ct) == null ? void 0 : P.fa) == null ? void 0 : ee.indexOf("[Red]")) ?? -1) > -1 &&
|
|
3980
|
+
a.fillStyle = wn(k, t, n, "fc"), j != null && j.textColor && (a.fillStyle = j.textColor), (((ee = (P = S == null ? void 0 : S.ct) == null ? void 0 : P.fa) == null ? void 0 : ee.indexOf("[Red]")) ?? -1) > -1 && el(S) && (S == null ? void 0 : S.v) < 0 && (a.fillStyle = "#ff0000");
|
|
3955
3981
|
const oe = this.sheetCtx.currentSheetId, J = Vo.getOpacity(oe, t, n);
|
|
3956
3982
|
J < 0.999 ? (a.save(), a.globalAlpha = J, L || this.cellTextRender(O, a, { pos_x: re, pos_y: Y }), a.restore()) : L || this.cellTextRender(O, a, { pos_x: re, pos_y: Y }), a.restore();
|
|
3957
3983
|
}
|
|
@@ -4035,7 +4061,7 @@ class va {
|
|
|
4035
4061
|
this.sheetCtx
|
|
4036
4062
|
);
|
|
4037
4063
|
l.font = se, l.save(), l.beginPath(), l.rect(A, q, v, S), l.clip(), l.scale(this.sheetCtx.zoomRatio, this.sheetCtx.zoomRatio);
|
|
4038
|
-
const D = C ?
|
|
4064
|
+
const D = C ? Al(
|
|
4039
4065
|
C,
|
|
4040
4066
|
l,
|
|
4041
4067
|
this.sheetCtx,
|
|
@@ -4545,7 +4571,7 @@ function Hs(e) {
|
|
|
4545
4571
|
const n = e.luckysheetfile[t];
|
|
4546
4572
|
n.images = e.insertedImgs;
|
|
4547
4573
|
}
|
|
4548
|
-
function
|
|
4574
|
+
function ts(e) {
|
|
4549
4575
|
e.insertedImgs = W.filter(
|
|
4550
4576
|
e.insertedImgs,
|
|
4551
4577
|
(t) => t.id !== e.activeImg
|
|
@@ -4584,7 +4610,7 @@ function Ps() {
|
|
|
4584
4610
|
const { width: t, height: n } = e.getBoundingClientRect(), o = e.offsetLeft, r = e.offsetTop;
|
|
4585
4611
|
return { left: o, top: r, width: t, height: n };
|
|
4586
4612
|
}
|
|
4587
|
-
function
|
|
4613
|
+
function qn(e, t) {
|
|
4588
4614
|
e.activeImg = void 0, t.image = void 0;
|
|
4589
4615
|
}
|
|
4590
4616
|
function pd(e, t, n) {
|
|
@@ -4654,7 +4680,7 @@ function Pm(e, t) {
|
|
|
4654
4680
|
}
|
|
4655
4681
|
}
|
|
4656
4682
|
}
|
|
4657
|
-
function
|
|
4683
|
+
function Cl(e) {
|
|
4658
4684
|
return `${e}px`;
|
|
4659
4685
|
}
|
|
4660
4686
|
const yt = {
|
|
@@ -4738,7 +4764,7 @@ function yd(e) {
|
|
|
4738
4764
|
}
|
|
4739
4765
|
return t;
|
|
4740
4766
|
}
|
|
4741
|
-
function
|
|
4767
|
+
function ns(e) {
|
|
4742
4768
|
if (e == null) return [!1];
|
|
4743
4769
|
typeof e == "number" && (e = `${e}`);
|
|
4744
4770
|
const t = /0|([1-9]+[0-9]*)/g, n = t.test(e);
|
|
@@ -4822,7 +4848,7 @@ function Cd({ width: e, height: t, top: n, left: o }, r) {
|
|
|
4822
4848
|
const l = r.querySelector(
|
|
4823
4849
|
".fortune-cell-selected-extend"
|
|
4824
4850
|
);
|
|
4825
|
-
l && (l.style.left =
|
|
4851
|
+
l && (l.style.left = Cl(o), l.style.width = Cl(e), l.style.top = Cl(n), l.style.height = Cl(t), l.style.display = "block");
|
|
4826
4852
|
}
|
|
4827
4853
|
function $m(e) {
|
|
4828
4854
|
const t = e.querySelector(
|
|
@@ -4909,7 +4935,7 @@ function ni(e, t, n) {
|
|
|
4909
4935
|
}
|
|
4910
4936
|
return o;
|
|
4911
4937
|
}
|
|
4912
|
-
function
|
|
4938
|
+
function bl(e, t, n) {
|
|
4913
4939
|
var r;
|
|
4914
4940
|
const o = [];
|
|
4915
4941
|
for (let l = 1; l <= t; l += 1) {
|
|
@@ -5015,7 +5041,7 @@ function kd(e) {
|
|
|
5015
5041
|
for (let g = r; g <= l; g += 1)
|
|
5016
5042
|
if (m[h][g]) {
|
|
5017
5043
|
const w = m[h][g];
|
|
5018
|
-
w !== null && w.v != null && w.f == null && (w.ct != null &&
|
|
5044
|
+
w !== null && w.v != null && w.f == null && (w.ct != null && el(w) ? c = !0 : w.ct != null && w.ct.t === "d" ? a = !0 : ns(w.m)[0] ? s = !0 : yd(w.m) && w.m !== "日" ? d = !0 : w.m != null && w.m === "日" ? u = !0 : vd(w.m) ? f = !0 : wd(w.m) && (p = !0));
|
|
5019
5045
|
}
|
|
5020
5046
|
return [
|
|
5021
5047
|
c,
|
|
@@ -5059,7 +5085,7 @@ function Vt(e, t, n, o, r) {
|
|
|
5059
5085
|
else if (r === "extendNumber") {
|
|
5060
5086
|
const me = [];
|
|
5061
5087
|
for (let le = 0; le < e.length; le += 1) {
|
|
5062
|
-
const ae = (c = e[le]) == null ? void 0 : c.m, ce =
|
|
5088
|
+
const ae = (c = e[le]) == null ? void 0 : c.m, ce = ns(ae);
|
|
5063
5089
|
ce[0] && me.push(ce[1]);
|
|
5064
5090
|
}
|
|
5065
5091
|
if ((n === "up" || n === "left") && (e.reverse(), me.reverse()), Er(me)) {
|
|
@@ -5072,7 +5098,7 @@ function Vt(e, t, n, o, r) {
|
|
|
5072
5098
|
const me = Tr(e);
|
|
5073
5099
|
if (me[0] && me[3]) {
|
|
5074
5100
|
const le = He((s = e[1]) == null ? void 0 : s.m).diff(He((a = e[0]) == null ? void 0 : a.m), "months");
|
|
5075
|
-
l =
|
|
5101
|
+
l = bl(e, t, le);
|
|
5076
5102
|
} else if (!me[0] && me[2]) {
|
|
5077
5103
|
const le = He((d = e[1]) == null ? void 0 : d.m).diff(He((u = e[0]) == null ? void 0 : u.m), "days");
|
|
5078
5104
|
l = ni(e, t, le);
|
|
@@ -5145,7 +5171,7 @@ function Vt(e, t, n, o, r) {
|
|
|
5145
5171
|
const me = Tr(e);
|
|
5146
5172
|
if (me[0] && me[3]) {
|
|
5147
5173
|
const le = He((y = e[1]) == null ? void 0 : y.m).diff(He((C = e[0]) == null ? void 0 : C.m), "months");
|
|
5148
|
-
l =
|
|
5174
|
+
l = bl(e, t, le);
|
|
5149
5175
|
} else if (!me[0] && me[2]) {
|
|
5150
5176
|
const le = He((v = e[1]) == null ? void 0 : v.m).diff(He((k = e[0]) == null ? void 0 : k.m), "days");
|
|
5151
5177
|
l = ni(e, t, le);
|
|
@@ -5245,7 +5271,7 @@ function Vt(e, t, n, o, r) {
|
|
|
5245
5271
|
if (He((E = e[1]) == null ? void 0 : E.m).date() === He((U = e[0]) == null ? void 0 : U.m).date() && He((ne = e[1]) == null ? void 0 : ne.m).diff(He((N = e[0]) == null ? void 0 : N.m), "months") !== 0) {
|
|
5246
5272
|
(n === "up" || n === "left") && e.reverse();
|
|
5247
5273
|
const me = He((B = e[1]) == null ? void 0 : B.m).diff(He((P = e[0]) == null ? void 0 : P.m), "months");
|
|
5248
|
-
l =
|
|
5274
|
+
l = bl(e, t, me);
|
|
5249
5275
|
} else {
|
|
5250
5276
|
let me;
|
|
5251
5277
|
n === "down" || n === "right" ? me = 1 : (me = -1, e.reverse());
|
|
@@ -5265,7 +5291,7 @@ function Vt(e, t, n, o, r) {
|
|
|
5265
5291
|
if (me[0] && me[3]) {
|
|
5266
5292
|
(n === "up" || n === "left") && e.reverse();
|
|
5267
5293
|
const le = He((X = e[1]) == null ? void 0 : X.m).diff(He((x = e[0]) == null ? void 0 : x.m), "months");
|
|
5268
|
-
l =
|
|
5294
|
+
l = bl(e, t, le);
|
|
5269
5295
|
} else if (!me[0] && me[2]) {
|
|
5270
5296
|
let le;
|
|
5271
5297
|
n === "down" || n === "right" ? le = 1 : (le = -1, e.reverse());
|
|
@@ -5351,13 +5377,13 @@ function Xm(e, t, n, o, r, l) {
|
|
|
5351
5377
|
l === "down" || l === "up" ? v = e[C][f] : (l === "right" || l === "left") && (v = e[f][C]);
|
|
5352
5378
|
let k;
|
|
5353
5379
|
if ((v == null ? void 0 : v.v) != null && v.f == null)
|
|
5354
|
-
if (v.ct &&
|
|
5380
|
+
if (v.ct && el(v))
|
|
5355
5381
|
k = "number", w = null, b = null;
|
|
5356
5382
|
else if (v.ct && v.ct.t === "d")
|
|
5357
5383
|
k = "date", w = null, b = null;
|
|
5358
|
-
else if (
|
|
5384
|
+
else if (ns(v.m)[0]) {
|
|
5359
5385
|
k = "extendNumber";
|
|
5360
|
-
const S =
|
|
5386
|
+
const S = ns(v.m);
|
|
5361
5387
|
w == null || b == null ? (y = !0, [, , w, b] = S) : S[2] !== w || S[3] !== b ? (y = !1, [, , w, b] = S) : y = !0;
|
|
5362
5388
|
} else yd(v.m) ? (k = "chnNumber", w = null, b = null) : vd(v.m) ? (k = "chnWeek2", w = null, b = null) : wd(v.m) ? (k = "chnWeek3", w = null, b = null) : (k = "other", w = null, b = null);
|
|
5363
5389
|
else
|
|
@@ -5509,14 +5535,14 @@ function mc(e, t, n) {
|
|
|
5509
5535
|
}
|
|
5510
5536
|
function _d(e) {
|
|
5511
5537
|
var q, se, D, j;
|
|
5512
|
-
const t = Le(e), n = ft(e), o =
|
|
5538
|
+
const t = Le(e), n = ft(e), o = ys(e);
|
|
5513
5539
|
if (n === !1 || t == null || o)
|
|
5514
5540
|
return;
|
|
5515
5541
|
const r = Te(e, e.currentSheetId);
|
|
5516
5542
|
if (r == null) return;
|
|
5517
5543
|
const l = e.luckysheetfile[r], c = new Set(Object.keys(((q = l.config) == null ? void 0 : q.rowhidden) || {})), s = new Set(Object.keys(((se = l.config) == null ? void 0 : se.colhidden) || {})), a = W.cloneDeep(e.config);
|
|
5518
5544
|
a.borderInfo == null && (a.borderInfo = []);
|
|
5519
|
-
const d =
|
|
5545
|
+
const d = tl(e, e.currentSheetId), u = W.cloneDeep(l.dataVerification), { direction: f } = yt, { copyRange: p } = yt, m = p.row[0], h = p.row[1], g = p.column[0], w = p.column[1], b = Xm(
|
|
5520
5546
|
t,
|
|
5521
5547
|
m,
|
|
5522
5548
|
h,
|
|
@@ -5538,13 +5564,13 @@ function _d(e) {
|
|
|
5538
5564
|
const L = $[V - v];
|
|
5539
5565
|
let H = !1;
|
|
5540
5566
|
if ((L == null ? void 0 : L.f) != null) {
|
|
5541
|
-
const G = `=${
|
|
5567
|
+
const G = `=${ml(
|
|
5542
5568
|
e,
|
|
5543
5569
|
L.f,
|
|
5544
5570
|
"down",
|
|
5545
5571
|
V - v + 1
|
|
5546
5572
|
)}`, Q = jn(e, G, V, M);
|
|
5547
|
-
|
|
5573
|
+
Yn(e, V, M, Q[1], void 0, t), [, L.v, L.f] = Q;
|
|
5548
5574
|
const { afterUpdateCell: K } = e.hooks;
|
|
5549
5575
|
if (K && (K(V, M, null, {
|
|
5550
5576
|
...L,
|
|
@@ -5559,7 +5585,7 @@ function _d(e) {
|
|
|
5559
5585
|
if (L.v === 1 / 0 || L.v === -1 / 0)
|
|
5560
5586
|
L.m = L.v.toString();
|
|
5561
5587
|
else if (L.v.toString().toLowerCase().indexOf("e") > -1)
|
|
5562
|
-
L.m =
|
|
5588
|
+
L.m = pl(L.v);
|
|
5563
5589
|
else {
|
|
5564
5590
|
let E;
|
|
5565
5591
|
((D = L.ct) == null ? void 0 : D.fa) === "##0.00" ? (E = St(
|
|
@@ -5617,13 +5643,13 @@ function _d(e) {
|
|
|
5617
5643
|
const L = $[k - V];
|
|
5618
5644
|
let H = !1;
|
|
5619
5645
|
if ((L == null ? void 0 : L.f) != null) {
|
|
5620
|
-
const G = `=${
|
|
5646
|
+
const G = `=${ml(
|
|
5621
5647
|
e,
|
|
5622
5648
|
L.f,
|
|
5623
5649
|
"up",
|
|
5624
5650
|
k - V + 1
|
|
5625
5651
|
)}`, Q = jn(e, G, V, M);
|
|
5626
|
-
|
|
5652
|
+
Yn(e, V, M, Q[1], void 0, t), [, L.v, L.f] = Q;
|
|
5627
5653
|
const { afterUpdateCell: K } = e.hooks;
|
|
5628
5654
|
if (K && (K(V, M, null, {
|
|
5629
5655
|
...L,
|
|
@@ -5638,7 +5664,7 @@ function _d(e) {
|
|
|
5638
5664
|
if (L.v === 1 / 0 || L.v === -1 / 0)
|
|
5639
5665
|
L.m = L.v.toString();
|
|
5640
5666
|
else if (L.v.toString().toLowerCase().indexOf("e") > -1)
|
|
5641
|
-
L.m =
|
|
5667
|
+
L.m = pl(L.v);
|
|
5642
5668
|
else {
|
|
5643
5669
|
const E = St(
|
|
5644
5670
|
Math.round(L.v * 1e9) / 1e9
|
|
@@ -5700,13 +5726,13 @@ function _d(e) {
|
|
|
5700
5726
|
const L = $[V - S];
|
|
5701
5727
|
let H = !1;
|
|
5702
5728
|
if ((L == null ? void 0 : L.f) != null) {
|
|
5703
|
-
const G = `=${
|
|
5729
|
+
const G = `=${ml(
|
|
5704
5730
|
e,
|
|
5705
5731
|
L.f,
|
|
5706
5732
|
"right",
|
|
5707
5733
|
V - S + 1
|
|
5708
5734
|
)}`, Q = jn(e, G, M, V);
|
|
5709
|
-
|
|
5735
|
+
Yn(e, V, M, Q[1], void 0, t), [, L.v, L.f] = Q;
|
|
5710
5736
|
const { afterUpdateCell: K } = e.hooks;
|
|
5711
5737
|
if (K && (K(M, V, null, {
|
|
5712
5738
|
...L,
|
|
@@ -5721,7 +5747,7 @@ function _d(e) {
|
|
|
5721
5747
|
if (L.v === 1 / 0 || L.v === -1 / 0)
|
|
5722
5748
|
L.m = L.v.toString();
|
|
5723
5749
|
else if (L.v.toString().toLowerCase().indexOf("e") > -1)
|
|
5724
|
-
L.m =
|
|
5750
|
+
L.m = pl(L.v);
|
|
5725
5751
|
else {
|
|
5726
5752
|
const E = St(
|
|
5727
5753
|
Math.round(L.v * 1e9) / 1e9
|
|
@@ -5777,13 +5803,13 @@ function _d(e) {
|
|
|
5777
5803
|
const L = $[T - V];
|
|
5778
5804
|
let H = !1;
|
|
5779
5805
|
if ((L == null ? void 0 : L.f) != null) {
|
|
5780
|
-
const G = `=${
|
|
5806
|
+
const G = `=${ml(
|
|
5781
5807
|
e,
|
|
5782
5808
|
L.f,
|
|
5783
5809
|
"left",
|
|
5784
5810
|
T - V + 1
|
|
5785
5811
|
)}`, Q = jn(e, G, M, V);
|
|
5786
|
-
|
|
5812
|
+
Yn(e, V, M, Q[1], void 0, t), [, L.v, L.f] = Q;
|
|
5787
5813
|
const { afterUpdateCell: K } = e.hooks;
|
|
5788
5814
|
if (K && (K(M, V, null, {
|
|
5789
5815
|
...L,
|
|
@@ -5798,7 +5824,7 @@ function _d(e) {
|
|
|
5798
5824
|
if (L.v === 1 / 0 || L.v === -1 / 0)
|
|
5799
5825
|
L.m = L.v.toString();
|
|
5800
5826
|
else if (L.v.toString().toLowerCase().indexOf("e") > -1)
|
|
5801
|
-
L.m =
|
|
5827
|
+
L.m = pl(L.v);
|
|
5802
5828
|
else {
|
|
5803
5829
|
const E = St(
|
|
5804
5830
|
Math.round(L.v * 1e9) / 1e9
|
|
@@ -6948,18 +6974,18 @@ function Bs(e, t, n, o, r) {
|
|
|
6948
6974
|
}
|
|
6949
6975
|
function Vs(e) {
|
|
6950
6976
|
if (!ft(e)) return;
|
|
6951
|
-
|
|
6977
|
+
vs(e);
|
|
6952
6978
|
const n = Te(e, e.currentSheetId);
|
|
6953
|
-
e.luckysheet_filter_save = void 0, e.filterOptions = void 0, e.filterContextMenu = void 0, e.filter = {},
|
|
6979
|
+
e.luckysheet_filter_save = void 0, e.filterOptions = void 0, e.filterContextMenu = void 0, e.filter = {}, nl(e), n != null && (e.luckysheetfile[n].filter = void 0, e.luckysheetfile[n].filter_select = void 0, e.luckysheetfile[n].config = W.assign({}, e.config)), e.viewerFilterVisible = !0;
|
|
6954
6980
|
}
|
|
6955
6981
|
function Fd(e) {
|
|
6956
|
-
W.isEmpty(e.filter) || W.isNil(e.luckysheet_filter_save) || (e.viewerFilterVisible = !e.viewerFilterVisible,
|
|
6982
|
+
W.isEmpty(e.filter) || W.isNil(e.luckysheet_filter_save) || (e.viewerFilterVisible = !e.viewerFilterVisible, nl(e));
|
|
6957
6983
|
}
|
|
6958
6984
|
function Hd(e, t, n) {
|
|
6959
6985
|
if (!ft(e)) return;
|
|
6960
|
-
|
|
6986
|
+
vs(e);
|
|
6961
6987
|
const r = `${t - n}`;
|
|
6962
|
-
delete e.filter[r],
|
|
6988
|
+
delete e.filter[r], nl(e);
|
|
6963
6989
|
const l = Te(e, e.currentSheetId);
|
|
6964
6990
|
if (l == null) return;
|
|
6965
6991
|
const c = e.luckysheetfile[l];
|
|
@@ -7098,7 +7124,7 @@ function Pd(e, t, n, o, r) {
|
|
|
7098
7124
|
}
|
|
7099
7125
|
function zd(e, t, n, o) {
|
|
7100
7126
|
var u;
|
|
7101
|
-
const r = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c =
|
|
7127
|
+
const r = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = gs(e), s = Le(e);
|
|
7102
7128
|
if (s == null) return { bgColors: [], fcColors: [] };
|
|
7103
7129
|
for (let f = n + 1; f <= o; f += 1) {
|
|
7104
7130
|
const p = s[f][t];
|
|
@@ -7123,7 +7149,7 @@ function zd(e, t, n, o) {
|
|
|
7123
7149
|
};
|
|
7124
7150
|
}
|
|
7125
7151
|
function Ni(e, t, n, o, r, l, c, s, a) {
|
|
7126
|
-
|
|
7152
|
+
vs(e), i3(
|
|
7127
7153
|
e,
|
|
7128
7154
|
t,
|
|
7129
7155
|
n,
|
|
@@ -7133,7 +7159,7 @@ function Ni(e, t, n, o, r, l, c, s, a) {
|
|
|
7133
7159
|
c,
|
|
7134
7160
|
s,
|
|
7135
7161
|
a
|
|
7136
|
-
), e.viewerFilterVisible = !0,
|
|
7162
|
+
), e.viewerFilterVisible = !0, nl(e);
|
|
7137
7163
|
const d = Te(e, e.currentSheetId);
|
|
7138
7164
|
d != null && (e.luckysheetfile[d].config = W.assign(
|
|
7139
7165
|
{},
|
|
@@ -7220,7 +7246,7 @@ function d3(e, t, n, o, r, l) {
|
|
|
7220
7246
|
return;
|
|
7221
7247
|
const b = Le(e);
|
|
7222
7248
|
if (b == null || e.luckysheet_select_save == null) return;
|
|
7223
|
-
const y = e.luckysheet_select_save[e.luckysheet_select_save.length - 1], C = W.cloneDeep(
|
|
7249
|
+
const y = e.luckysheet_select_save[e.luckysheet_select_save.length - 1], C = W.cloneDeep(ol(e, y, e.currentSheetId)), v = e.config;
|
|
7224
7250
|
v.merge == null && (v.merge = {}), v.rowlen == null && (v.rowlen = {});
|
|
7225
7251
|
const { drag: k } = dt(e);
|
|
7226
7252
|
if (Hn(
|
|
@@ -7235,7 +7261,7 @@ function d3(e, t, n, o, r, l) {
|
|
|
7235
7261
|
let S = y.row[0] - g + p, T = y.row[1] - g + p, R = y.column[0] - w + m, A = y.column[1] - w + m;
|
|
7236
7262
|
if ((S < 0 || a < 0) && (S = 0, T = y.row[1] - y.row[0]), (R < 0 || s < 0) && (R = 0, A = y.column[1] - y.column[0]), (T >= e.visibledatarow.length - 1 || a > u) && (S = e.visibledatarow.length - 1 - y.row[1] + y.row[0], T = e.visibledatarow.length - 1), (A >= e.visibledatacolumn.length - 1 || s > f) && (R = e.visibledatacolumn.length - 1 - y.column[1] + y.column[0], A = e.visibledatacolumn.length - 1), Hn(e, v, S, T, R, A))
|
|
7237
7263
|
throw new Error(k.noMerge);
|
|
7238
|
-
const q =
|
|
7264
|
+
const q = tl(e, e.currentSheetId), se = [], D = {}, j = Te(e, e.currentSheetId), _ = e.luckysheetfile[j], M = _.dataVerification ?? _.dataValidation ?? {}, Z = W.cloneDeep(M), $ = {}, V = _.calcChain ?? [], L = [], H = [], F = S - y.row[0], I = R - y.column[0], G = (ie, te) => ie >= y.row[0] && ie <= y.row[1] && te >= y.column[0] && te <= y.column[1], Q = (ie, te) => ie >= S && ie <= T && te >= R && te <= A;
|
|
7239
7265
|
for (let ie = 0; ie < V.length; ie += 1) {
|
|
7240
7266
|
const te = V[ie];
|
|
7241
7267
|
if (te == null || W.isNil(te.r) || W.isNil(te.c)) continue;
|
|
@@ -7493,7 +7519,7 @@ function Ti(e, t) {
|
|
|
7493
7519
|
}
|
|
7494
7520
|
return n;
|
|
7495
7521
|
}
|
|
7496
|
-
function
|
|
7522
|
+
function kl(e, t) {
|
|
7497
7523
|
for (let n = t.row[0]; n <= t.row[1]; n += 1)
|
|
7498
7524
|
for (let o = t.column[0]; o <= t.column[1]; o += 1)
|
|
7499
7525
|
delete e[`${n}_${o}`];
|
|
@@ -7515,14 +7541,14 @@ function Or(e, t, n, o, r, l, c) {
|
|
|
7515
7541
|
row: [b.mc.r, b.mc.r + b.mc.rs - 1],
|
|
7516
7542
|
column: [b.mc.c, b.mc.c + b.mc.cs - 1]
|
|
7517
7543
|
};
|
|
7518
|
-
return l.push(y), r =
|
|
7544
|
+
return l.push(y), r = kl(r, y), Or(e, t, n, o, r, l, c);
|
|
7519
7545
|
}
|
|
7520
7546
|
if (u !== null && w < u) {
|
|
7521
7547
|
const y = {
|
|
7522
7548
|
row: [s, a],
|
|
7523
7549
|
column: [d, u]
|
|
7524
7550
|
};
|
|
7525
|
-
return l.push(y), r =
|
|
7551
|
+
return l.push(y), r = kl(r, y), Or(e, t, n, o, r, l, c);
|
|
7526
7552
|
}
|
|
7527
7553
|
break;
|
|
7528
7554
|
} else d === null ? (d = w, u = w, s = g, a = g) : u !== null && w > u && (u = w);
|
|
@@ -7534,7 +7560,7 @@ function Or(e, t, n, o, r, l, c) {
|
|
|
7534
7560
|
row: [s, a],
|
|
7535
7561
|
column: [d, u]
|
|
7536
7562
|
};
|
|
7537
|
-
return l.push(y), r =
|
|
7563
|
+
return l.push(y), r = kl(r, y), Or(e, t, n, o, r, l, c);
|
|
7538
7564
|
} else
|
|
7539
7565
|
a = g;
|
|
7540
7566
|
}
|
|
@@ -7544,7 +7570,7 @@ function Or(e, t, n, o, r, l, c) {
|
|
|
7544
7570
|
row: [s, a],
|
|
7545
7571
|
column: [d, u]
|
|
7546
7572
|
};
|
|
7547
|
-
return l.push(g), r =
|
|
7573
|
+
return l.push(g), r = kl(r, g), Or(e, t, n, o, r, l, c);
|
|
7548
7574
|
}
|
|
7549
7575
|
return l;
|
|
7550
7576
|
}
|
|
@@ -7627,14 +7653,14 @@ function Vd(e, t, n) {
|
|
|
7627
7653
|
function Ud(e) {
|
|
7628
7654
|
e.touchMoveStatus = !1, e.touchHandleStatus = !1;
|
|
7629
7655
|
}
|
|
7630
|
-
const wc = 0.1,
|
|
7656
|
+
const wc = 0.1, os = 4, rs = 0.1;
|
|
7631
7657
|
function $d(e, t) {
|
|
7632
7658
|
if (!e.ctrlKey || e.altKey)
|
|
7633
7659
|
return t;
|
|
7634
7660
|
let n = !1, o = t || 1;
|
|
7635
|
-
return e.key === "-" || e.which === 189 ? (o -= wc, n = !0) : e.key === "+" || e.which === 187 ? (o += wc, n = !0) : (e.key === "0" || e.which === 48) && (o = 1, n = !0), n && (e.preventDefault(), o >=
|
|
7661
|
+
return e.key === "-" || e.which === 189 ? (o -= wc, n = !0) : e.key === "+" || e.which === 187 ? (o += wc, n = !0) : (e.key === "0" || e.which === 48) && (o = 1, n = !0), n && (e.preventDefault(), o >= os ? o = os : o < rs && (o = rs)), parseFloat(o.toFixed(1));
|
|
7636
7662
|
}
|
|
7637
|
-
function
|
|
7663
|
+
function il(e) {
|
|
7638
7664
|
const t = e.trim(), n = t.match(
|
|
7639
7665
|
/src=["']?(https:\/\/dune\.com\/embeds\/\d+\/\d+)/
|
|
7640
7666
|
);
|
|
@@ -7680,7 +7706,7 @@ function h3(e, t) {
|
|
|
7680
7706
|
}
|
|
7681
7707
|
}
|
|
7682
7708
|
function ja(e, t) {
|
|
7683
|
-
const n =
|
|
7709
|
+
const n = il(t);
|
|
7684
7710
|
if (!n) {
|
|
7685
7711
|
console.warn("Unsupported Dune chart URL:", t);
|
|
7686
7712
|
return;
|
|
@@ -8099,7 +8125,7 @@ function Jd(e, t, n, o = {}) {
|
|
|
8099
8125
|
""
|
|
8100
8126
|
))), a === void 0 && (a = null), a;
|
|
8101
8127
|
}
|
|
8102
|
-
function
|
|
8128
|
+
function al(e, t, n, o, r, l = {}, c) {
|
|
8103
8129
|
var u, f, p;
|
|
8104
8130
|
if (!W.isNumber(t) || !W.isNumber(n))
|
|
8105
8131
|
throw new Error("row or column cannot be null or undefined");
|
|
@@ -8142,12 +8168,12 @@ function il(e, t, n, o, r, l = {}, c) {
|
|
|
8142
8168
|
// quotePrefix, show number as string
|
|
8143
8169
|
};
|
|
8144
8170
|
if (o == null || o.toString().length === 0)
|
|
8145
|
-
|
|
8171
|
+
Ll(e, t, n), Xt(e, t, n, a, o);
|
|
8146
8172
|
else if (o instanceof Object) {
|
|
8147
8173
|
const m = {};
|
|
8148
8174
|
((u = a == null ? void 0 : a[t]) == null ? void 0 : u[n]) == null && (a[t][n] = {});
|
|
8149
8175
|
const h = a[t][n];
|
|
8150
|
-
o.f != null && o.v == null ? (m.f = o.f, o.ct != null && (m.ct = o.ct), sn(e, t, n, r, m)) : (o.ct != null && (m.ct = o.ct), o.f != null && (m.f = o.f), o.v != null ? m.v = o.v : m.v = h.v, o.m != null && (m.m = o.m),
|
|
8176
|
+
o.f != null && o.v == null ? (m.f = o.f, o.ct != null && (m.ct = o.ct), sn(e, t, n, r, m)) : (o.ct != null && (m.ct = o.ct), o.f != null && (m.f = o.f), o.v != null ? m.v = o.v : m.v = h.v, o.m != null && (m.m = o.m), Ll(e, t, n), Xt(e, t, n, a, m)), W.forEach(o, (g, w) => {
|
|
8151
8177
|
w in d && c ? q1(
|
|
8152
8178
|
e,
|
|
8153
8179
|
a,
|
|
@@ -8160,7 +8186,7 @@ function il(e, t, n, o, r, l = {}, c) {
|
|
|
8160
8186
|
) : h[w] = g;
|
|
8161
8187
|
}), a[t][n] = h;
|
|
8162
8188
|
} else
|
|
8163
|
-
o.toString().substr(0, 1) === "=" || o.toString().substr(0, 5) === "<span" ? sn(e, t, n, r, o) : (
|
|
8189
|
+
o.toString().substr(0, 1) === "=" || o.toString().substr(0, 5) === "<span" ? sn(e, t, n, r, o) : (Ll(e, t, n), Xt(e, t, n, a, o));
|
|
8164
8190
|
c && e.hooks.afterUpdateCell && ((p = (f = e.hooks).afterUpdateCell) == null || p.call(f, t, n, null, o));
|
|
8165
8191
|
}
|
|
8166
8192
|
function ef(e, t, n, o = {}) {
|
|
@@ -8168,7 +8194,7 @@ function ef(e, t, n, o = {}) {
|
|
|
8168
8194
|
if (!W.isNumber(t) || !W.isNumber(n))
|
|
8169
8195
|
throw new Error("row or column cannot be null or undefined");
|
|
8170
8196
|
const r = Cn(e, o), l = (s = (c = r.data) == null ? void 0 : c[t]) == null ? void 0 : s[n];
|
|
8171
|
-
l && W.isPlainObject(l) && (delete l.m, delete l.v, l.f != null && (delete l.f,
|
|
8197
|
+
l && W.isPlainObject(l) && (delete l.m, delete l.v, l.f != null && (delete l.f, Ll(e, t, n, r.id), delete l.spl));
|
|
8172
8198
|
}
|
|
8173
8199
|
function Na(e, t, n, o, r, l = {}) {
|
|
8174
8200
|
var u;
|
|
@@ -8206,7 +8232,7 @@ function tf(e, t, n, o) {
|
|
|
8206
8232
|
const r = kd(e);
|
|
8207
8233
|
!r[0] && !r[1] && !r[2] && !r[3] && !r[4] && !r[5] && !r[6] ? yt.applyType = "0" : yt.applyType = "1", _d(e);
|
|
8208
8234
|
}
|
|
8209
|
-
function
|
|
8235
|
+
function Kn(e) {
|
|
8210
8236
|
var t;
|
|
8211
8237
|
return (t = e.luckysheet_select_save) == null ? void 0 : t.map((n) => ({
|
|
8212
8238
|
row: n.row,
|
|
@@ -8214,7 +8240,7 @@ function Zn(e) {
|
|
|
8214
8240
|
}));
|
|
8215
8241
|
}
|
|
8216
8242
|
function Ea(e, t) {
|
|
8217
|
-
t = t ||
|
|
8243
|
+
t = t || Kn(e);
|
|
8218
8244
|
const n = [];
|
|
8219
8245
|
return t == null || t.forEach((o) => {
|
|
8220
8246
|
const r = o.row, l = o.column;
|
|
@@ -8244,7 +8270,7 @@ function of(e) {
|
|
|
8244
8270
|
function rf(e, t, n = {}) {
|
|
8245
8271
|
const o = Cn(e, n);
|
|
8246
8272
|
if (!t || typeof t == "object")
|
|
8247
|
-
return
|
|
8273
|
+
return ol(e, t, o.id);
|
|
8248
8274
|
throw fo;
|
|
8249
8275
|
}
|
|
8250
8276
|
function lf(e, t, n = {}) {
|
|
@@ -8270,7 +8296,7 @@ function sf(e, t, n, o, r = {}, l) {
|
|
|
8270
8296
|
for (let g = 0; g < c; g += 1)
|
|
8271
8297
|
for (let w = 0; w < s; w += 1) {
|
|
8272
8298
|
const b = n.row[0] + g, y = n.column[0] + w;
|
|
8273
|
-
|
|
8299
|
+
al(
|
|
8274
8300
|
e,
|
|
8275
8301
|
b,
|
|
8276
8302
|
y,
|
|
@@ -8365,7 +8391,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8365
8391
|
addSheet: Ma,
|
|
8366
8392
|
autoFillCell: tf,
|
|
8367
8393
|
calculateReferencedCellSheetFromula: O1,
|
|
8368
|
-
calculateSheetFromula:
|
|
8394
|
+
calculateSheetFromula: Gl,
|
|
8369
8395
|
cancelMerge: cf,
|
|
8370
8396
|
celldataToData: Bu,
|
|
8371
8397
|
clearCell: ef,
|
|
@@ -8379,11 +8405,11 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8379
8405
|
getCellValue: Jd,
|
|
8380
8406
|
getCellsByFlattenRange: nf,
|
|
8381
8407
|
getCellsByRange: rf,
|
|
8382
|
-
getColumnWidth:
|
|
8408
|
+
getColumnWidth: $l,
|
|
8383
8409
|
getFlattenRange: Ea,
|
|
8384
8410
|
getHtmlByRange: lf,
|
|
8385
8411
|
getRowHeight: $u,
|
|
8386
|
-
getSelection:
|
|
8412
|
+
getSelection: Kn,
|
|
8387
8413
|
getSelectionCoordinates: of,
|
|
8388
8414
|
getSheet: Cn,
|
|
8389
8415
|
getSheetWithLatestCelldata: Wu,
|
|
@@ -8397,7 +8423,7 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8397
8423
|
setCellError: ea,
|
|
8398
8424
|
setCellFormat: Na,
|
|
8399
8425
|
setCellFormatByRange: af,
|
|
8400
|
-
setCellValue:
|
|
8426
|
+
setCellValue: al,
|
|
8401
8427
|
setCellValuesByRange: sf,
|
|
8402
8428
|
setColumnWidth: Ur,
|
|
8403
8429
|
setRowHeight: sr,
|
|
@@ -8615,9 +8641,9 @@ const p3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8615
8641
|
isFlvReadOnly: !1,
|
|
8616
8642
|
dateBaseLocale: "uk"
|
|
8617
8643
|
};
|
|
8618
|
-
function
|
|
8644
|
+
function ls(e) {
|
|
8619
8645
|
const t = e.luckysheet_select_save;
|
|
8620
|
-
if (e.luckysheetPaintModelOn &&
|
|
8646
|
+
if (e.luckysheetPaintModelOn && sl(e), !t || W.isEmpty(t))
|
|
8621
8647
|
return;
|
|
8622
8648
|
if (e.config.merge != null) {
|
|
8623
8649
|
let o = !1;
|
|
@@ -8632,7 +8658,7 @@ function rs(e) {
|
|
|
8632
8658
|
const n = e.luckysheetfile[Te(e, e.currentSheetId)].luckysheet_conditionformat_save;
|
|
8633
8659
|
if (!W.isNil(e.luckysheet_select_save) && e.luckysheet_select_save.length > 1 && !W.isNil(n) && n.length > 0) {
|
|
8634
8660
|
let o = !1;
|
|
8635
|
-
const r =
|
|
8661
|
+
const r = gs(e);
|
|
8636
8662
|
for (let l = 0; l < e.luckysheet_select_save.length && !o; l += 1) {
|
|
8637
8663
|
const c = e.luckysheet_select_save[l].row[0], s = e.luckysheet_select_save[l].row[1], a = e.luckysheet_select_save[l].column[0], d = e.luckysheet_select_save[l].column[1];
|
|
8638
8664
|
for (let u = c; u <= s && !o; u += 1)
|
|
@@ -8667,7 +8693,7 @@ function g3() {
|
|
|
8667
8693
|
function La(e) {
|
|
8668
8694
|
if (e.luckysheetCellUpdate.length === 0) return !1;
|
|
8669
8695
|
const t = g3();
|
|
8670
|
-
return !t || !(t.innerText || "").trim().startsWith("=") || e.formulaCache.rangeSelectionActive === !0 &&
|
|
8696
|
+
return !t || !(t.innerText || "").trim().startsWith("=") || e.formulaCache.rangeSelectionActive === !0 && Cs(t) !== null ? !1 : !bs(t);
|
|
8671
8697
|
}
|
|
8672
8698
|
function Da(e, t) {
|
|
8673
8699
|
t === "rangeOfFormula" && (e.formulaCache.formulaKeyboardRefSync = !0, e.formulaRangeNavRevision = (e.formulaRangeNavRevision ?? 0) + 1);
|
|
@@ -8702,7 +8728,7 @@ function v3(e, t, n, o, r) {
|
|
|
8702
8728
|
), o.enteredEditByTyping = !1, ho(o), f && d) {
|
|
8703
8729
|
e.luckysheet_select_save = W.cloneDeep(d);
|
|
8704
8730
|
const p = e.luckysheet_select_save[e.luckysheet_select_save.length - 1];
|
|
8705
|
-
p.row_focus = a[0], p.column_focus = a[1], Rt(e, e.luckysheet_select_save),
|
|
8731
|
+
p.row_focus = a[0], p.column_focus = a[1], Rt(e, e.luckysheet_select_save), Yl(e, !n.shiftKey);
|
|
8706
8732
|
} else {
|
|
8707
8733
|
e.luckysheet_select_save = [
|
|
8708
8734
|
{
|
|
@@ -8718,7 +8744,7 @@ function v3(e, t, n, o, r) {
|
|
|
8718
8744
|
n.preventDefault();
|
|
8719
8745
|
} else if ((((c = e.luckysheet_select_save) == null ? void 0 : c.length) ?? 0) > 0) {
|
|
8720
8746
|
const a = e.luckysheet_select_save[e.luckysheet_select_save.length - 1];
|
|
8721
|
-
if ((a.row[0] !== a.row[1] || a.column[0] !== a.column[1]) && !Ko(e) &&
|
|
8747
|
+
if ((a.row[0] !== a.row[1] || a.column[0] !== a.column[1]) && !Ko(e) && Yl(e, !n.shiftKey)) {
|
|
8722
8748
|
n.preventDefault();
|
|
8723
8749
|
return;
|
|
8724
8750
|
}
|
|
@@ -8736,7 +8762,7 @@ function oi(e) {
|
|
|
8736
8762
|
(n) => (n == null ? void 0 : n.v) != null && String(n.v).length > 0
|
|
8737
8763
|
) : !1 : !W.isNil(e);
|
|
8738
8764
|
}
|
|
8739
|
-
function
|
|
8765
|
+
function _l(e, t, n, o, r, l, c, s, a, d, u) {
|
|
8740
8766
|
var g, w, b;
|
|
8741
8767
|
let f = -1;
|
|
8742
8768
|
t === "ArrowUp" ? f = l - 1 : t === "ArrowDown" ? f = c + 1 : t === "ArrowLeft" ? f = s - 1 : t === "ArrowRight" && (f = a + 1);
|
|
@@ -8794,7 +8820,7 @@ function kc(e, t, n) {
|
|
|
8794
8820
|
let C;
|
|
8795
8821
|
switch (t.key) {
|
|
8796
8822
|
case "ArrowUp":
|
|
8797
|
-
C =
|
|
8823
|
+
C = _l(
|
|
8798
8824
|
y,
|
|
8799
8825
|
t.key,
|
|
8800
8826
|
f,
|
|
@@ -8809,7 +8835,7 @@ function kc(e, t, n) {
|
|
|
8809
8835
|
), n ? (kn(e, "down", b, r), kn(e, "down", C - u, r)) : Ht(e, "down", C - u, r);
|
|
8810
8836
|
break;
|
|
8811
8837
|
case "ArrowDown":
|
|
8812
|
-
C =
|
|
8838
|
+
C = _l(
|
|
8813
8839
|
y,
|
|
8814
8840
|
t.key,
|
|
8815
8841
|
f,
|
|
@@ -8824,7 +8850,7 @@ function kc(e, t, n) {
|
|
|
8824
8850
|
), n ? (kn(e, "down", b, r), kn(e, "down", C - u, r)) : Ht(e, "down", C - u, r);
|
|
8825
8851
|
break;
|
|
8826
8852
|
case "ArrowLeft":
|
|
8827
|
-
C =
|
|
8853
|
+
C = _l(
|
|
8828
8854
|
y,
|
|
8829
8855
|
t.key,
|
|
8830
8856
|
u,
|
|
@@ -8844,7 +8870,7 @@ function kc(e, t, n) {
|
|
|
8844
8870
|
)) : Ht(e, "right", C - f, r);
|
|
8845
8871
|
break;
|
|
8846
8872
|
case "ArrowRight":
|
|
8847
|
-
C =
|
|
8873
|
+
C = _l(
|
|
8848
8874
|
y,
|
|
8849
8875
|
t.key,
|
|
8850
8876
|
u,
|
|
@@ -8914,7 +8940,7 @@ function w3(e, t, n, o, r, l, c, s) {
|
|
|
8914
8940
|
(p = navigator.clipboard) == null || p.writeText(g).catch(() => {
|
|
8915
8941
|
});
|
|
8916
8942
|
} else
|
|
8917
|
-
|
|
8943
|
+
ls(e);
|
|
8918
8944
|
n.stopPropagation();
|
|
8919
8945
|
return;
|
|
8920
8946
|
} else if (n.code === "KeyF")
|
|
@@ -8927,7 +8953,7 @@ function w3(e, t, n, o, r, l, c, s) {
|
|
|
8927
8953
|
uo.isPasteAction = !0, n.stopPropagation();
|
|
8928
8954
|
return;
|
|
8929
8955
|
} else if (n.code === "KeyX") {
|
|
8930
|
-
e.luckysheetPaintModelOn &&
|
|
8956
|
+
e.luckysheetPaintModelOn && sl(e);
|
|
8931
8957
|
const h = e.luckysheet_select_save;
|
|
8932
8958
|
if (!h || W.isEmpty(h))
|
|
8933
8959
|
return;
|
|
@@ -9085,7 +9111,7 @@ async function vf(e, t, n, o, r, l, c, s) {
|
|
|
9085
9111
|
"rangeOfSelect"
|
|
9086
9112
|
), o.preventDefault();
|
|
9087
9113
|
else if (u === "F2") {
|
|
9088
|
-
if (!(p ||
|
|
9114
|
+
if (!(p || ys(e)) || e.luckysheetCellUpdate.length > 0)
|
|
9089
9115
|
return;
|
|
9090
9116
|
const q = (k = e.luckysheet_select_save) == null ? void 0 : k[e.luckysheet_select_save.length - 1];
|
|
9091
9117
|
if (!q) return;
|
|
@@ -9120,7 +9146,7 @@ async function vf(e, t, n, o, r, l, c, s) {
|
|
|
9120
9146
|
e.contextMenu = {};
|
|
9121
9147
|
else if (u === "Delete" || u === "Backspace") {
|
|
9122
9148
|
if (!p) return;
|
|
9123
|
-
e.activeImg != null ?
|
|
9149
|
+
e.activeImg != null ? ts(e) : (e.formulaCache.rangeSelectionActive === !0 && ar(e), Wl(e)), $t(e, null, void 0), o.preventDefault();
|
|
9124
9150
|
} else if (u === "ArrowUp" || u === "ArrowDown" || u === "ArrowLeft" || u === "ArrowRight") {
|
|
9125
9151
|
const A = e.luckysheetCellUpdate.length > 0, q = (t == null ? void 0 : t.innerText) ?? "", se = (n == null ? void 0 : n.innerText) ?? "", D = A && (q.trim().startsWith("=") || se.trim().startsWith("=")), j = r.enteredEditByTyping === !0;
|
|
9126
9152
|
A && !D && j && !o.shiftKey ? (sn(
|
|
@@ -9158,7 +9184,7 @@ async function vf(e, t, n, o, r, l, c, s) {
|
|
|
9158
9184
|
return;
|
|
9159
9185
|
}
|
|
9160
9186
|
}
|
|
9161
|
-
|
|
9187
|
+
ws(t);
|
|
9162
9188
|
});
|
|
9163
9189
|
}
|
|
9164
9190
|
}
|
|
@@ -9185,7 +9211,7 @@ function xc(e) {
|
|
|
9185
9211
|
class k3 extends Error {
|
|
9186
9212
|
constructor(n, o) {
|
|
9187
9213
|
super(n);
|
|
9188
|
-
|
|
9214
|
+
Qn(this, "formula");
|
|
9189
9215
|
this.name = "FormularCellRefError", this.formula = o;
|
|
9190
9216
|
}
|
|
9191
9217
|
}
|
|
@@ -9301,19 +9327,19 @@ const Cf = 10, _3 = (e) => {
|
|
|
9301
9327
|
}));
|
|
9302
9328
|
};
|
|
9303
9329
|
function I3(e, t, n, o, r, l, c, s, a) {
|
|
9304
|
-
const d = e.style.borderTop && !e.style.borderTop.startsWith("0px") ?
|
|
9330
|
+
const d = e.style.borderTop && !e.style.borderTop.startsWith("0px") ? gl(
|
|
9305
9331
|
e.style.borderTopWidth,
|
|
9306
9332
|
e.style.borderTopStyle,
|
|
9307
9333
|
e.style.borderTopColor
|
|
9308
|
-
) : null, u = e.style.borderBottom && !e.style.borderBottom.startsWith("0px") ?
|
|
9334
|
+
) : null, u = e.style.borderBottom && !e.style.borderBottom.startsWith("0px") ? gl(
|
|
9309
9335
|
e.style.borderBottomWidth,
|
|
9310
9336
|
e.style.borderBottomStyle,
|
|
9311
9337
|
e.style.borderBottomColor
|
|
9312
|
-
) : null, f = e.style.borderLeft && !e.style.borderLeft.startsWith("0px") ?
|
|
9338
|
+
) : null, f = e.style.borderLeft && !e.style.borderLeft.startsWith("0px") ? gl(
|
|
9313
9339
|
e.style.borderLeftWidth,
|
|
9314
9340
|
e.style.borderLeftStyle,
|
|
9315
9341
|
e.style.borderLeftColor
|
|
9316
|
-
) : null, p = e.style.borderRight && !e.style.borderRight.startsWith("0px") ?
|
|
9342
|
+
) : null, p = e.style.borderRight && !e.style.borderRight.startsWith("0px") ? gl(
|
|
9317
9343
|
e.style.borderRightWidth,
|
|
9318
9344
|
e.style.borderRightStyle,
|
|
9319
9345
|
e.style.borderRightColor
|
|
@@ -9524,13 +9550,13 @@ const A3 = "Helvetica Neue, system-ui, Roboto, Lato, Segoe UI, Oxygen, Ubuntu, C
|
|
|
9524
9550
|
var r, l;
|
|
9525
9551
|
const o = t.defaultcollen ?? 73;
|
|
9526
9552
|
return ((l = (r = n.config) == null ? void 0 : r.columnlen) == null ? void 0 : l[e]) ?? o;
|
|
9527
|
-
},
|
|
9553
|
+
}, ss = (e) => {
|
|
9528
9554
|
var n;
|
|
9529
9555
|
let t = (e == null ? void 0 : e.m) ?? (e == null ? void 0 : e.v);
|
|
9530
9556
|
return t == null && ((n = e == null ? void 0 : e.ct) == null ? void 0 : n.t) === "inlineStr" && (t = (e.ct.s || []).map((o) => o.v).join("")), t == null ? "" : String(t);
|
|
9531
9557
|
}, L3 = (e) => {
|
|
9532
9558
|
var t;
|
|
9533
|
-
return Number(e == null ? void 0 : e.tb) === 2 || ((t = e == null ? void 0 : e.ct) == null ? void 0 : t.t) === "inlineStr" || /[\r\n]/.test(
|
|
9559
|
+
return Number(e == null ? void 0 : e.tb) === 2 || ((t = e == null ? void 0 : e.ct) == null ? void 0 : t.t) === "inlineStr" || /[\r\n]/.test(ss(e));
|
|
9534
9560
|
}, Oi = (e, t) => {
|
|
9535
9561
|
const n = (e == null ? void 0 : e.fs) ?? Cf, o = (e == null ? void 0 : e.ff) ?? A3, r = (e == null ? void 0 : e.bl) === 1 ? "700" : "400", l = (e == null ? void 0 : e.it) === 1 ? "italic" : "normal";
|
|
9536
9562
|
return t.style.fontSize = `${n}px`, t.style.fontFamily = o, t.style.fontWeight = r, t.style.fontStyle = l, n;
|
|
@@ -9557,7 +9583,7 @@ function D3(e, t, n, o, r, l, c = 1200) {
|
|
|
9557
9583
|
for (let y = n; y <= o; y++) {
|
|
9558
9584
|
const C = (h = d == null ? void 0 : d[y]) == null ? void 0 : h[w];
|
|
9559
9585
|
if (C != null && C.mc && C.mc.rs == null) continue;
|
|
9560
|
-
const v =
|
|
9586
|
+
const v = ss(C);
|
|
9561
9587
|
Oi(C, p), p.style.whiteSpace = "pre", p.style.width = "auto", p.textContent = v;
|
|
9562
9588
|
const k = Math.ceil(p.scrollWidth + 12);
|
|
9563
9589
|
k > b && (b = k);
|
|
@@ -9569,7 +9595,7 @@ function D3(e, t, n, o, r, l, c = 1200) {
|
|
|
9569
9595
|
for (let y = r; y <= l; y++) {
|
|
9570
9596
|
const C = (g = d == null ? void 0 : d[w]) == null ? void 0 : g[y];
|
|
9571
9597
|
if (C != null && C.mc && C.mc.rs == null) continue;
|
|
9572
|
-
const v =
|
|
9598
|
+
const v = ss(C), k = Oi(C, p);
|
|
9573
9599
|
if (L3(C)) {
|
|
9574
9600
|
const S = Math.max(
|
|
9575
9601
|
jc(y, e, a),
|
|
@@ -9612,7 +9638,7 @@ function O3(e, t) {
|
|
|
9612
9638
|
for (let s = 0; s < o; s++) {
|
|
9613
9639
|
const a = (c = n[s]) == null ? void 0 : c[t];
|
|
9614
9640
|
if (!a || a.mc && a.mc.rs == null) continue;
|
|
9615
|
-
const d =
|
|
9641
|
+
const d = ss(a);
|
|
9616
9642
|
if (!d) continue;
|
|
9617
9643
|
Oi(a, r);
|
|
9618
9644
|
const u = a.fs ?? e.defaultFontSize;
|
|
@@ -9655,7 +9681,7 @@ function bf(e, t, n, o, r, l, c) {
|
|
|
9655
9681
|
!(l != null && l.innerHTML) && e && (e.defaultCandidates = []), e.contextMenu = {}, e.filterContextMenu = void 0;
|
|
9656
9682
|
const s = Le(e);
|
|
9657
9683
|
if (!s) return;
|
|
9658
|
-
Bn(e, t),
|
|
9684
|
+
Bn(e, t), qn(e, t);
|
|
9659
9685
|
const a = r.getBoundingClientRect(), d = n.pageX - a.left - window.scrollX, u = n.pageY - a.top - window.scrollY, f = d + e.scrollLeft, p = u + e.scrollTop;
|
|
9660
9686
|
if (f >= a.width + e.scrollLeft || p >= a.height + e.scrollTop)
|
|
9661
9687
|
return;
|
|
@@ -9729,7 +9755,7 @@ function bf(e, t, n, o, r, l, c) {
|
|
|
9729
9755
|
const x = document.selection.createRange();
|
|
9730
9756
|
e.formulaCache.functionRangeIndex = x;
|
|
9731
9757
|
}
|
|
9732
|
-
o.innerHTML = X, l && (l.innerHTML = X),
|
|
9758
|
+
o.innerHTML = X, l && (l.innerHTML = X), ks(e), qt(e, X), ee = !0;
|
|
9733
9759
|
}
|
|
9734
9760
|
if (e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, Ot(e, K), ln(e), ee) {
|
|
9735
9761
|
e.formulaCache.rangechangeindex = void 0;
|
|
@@ -9868,7 +9894,7 @@ function bf(e, t, n, o, r, l, c) {
|
|
|
9868
9894
|
function kf(e, t, n, o, r) {
|
|
9869
9895
|
var R, A;
|
|
9870
9896
|
const l = Le(e);
|
|
9871
|
-
if (!l || e.formulaCache.functionlistMap[e.functionHint || ""] || e.luckysheetCellUpdate.length > 0 && e.formulaCache.rangestart || e.formulaCache.rangedrag_column_start || e.formulaCache.rangedrag_row_start || ln(e) || !(ft(e) ||
|
|
9897
|
+
if (!l || e.formulaCache.functionlistMap[e.functionHint || ""] || e.luckysheetCellUpdate.length > 0 && e.formulaCache.rangestart || e.formulaCache.rangedrag_column_start || e.formulaCache.rangedrag_row_start || ln(e) || !(ft(e) || ys(e))) return;
|
|
9872
9898
|
const s = r.getBoundingClientRect(), a = o.pageX - s.left, d = o.pageY - s.top, u = a + e.scrollLeft, f = d + e.scrollTop, p = (R = t.freezen) == null ? void 0 : R[e.currentSheetId], { x: m, y: h } = zt(p, u, f, a, d);
|
|
9873
9899
|
let w = Pt(h, e.visibledatarow)[2], y = Ft(m, e.visibledatacolumn)[2];
|
|
9874
9900
|
Tm(e), Bn(e, t);
|
|
@@ -10125,7 +10151,7 @@ function Ha(e, t, n, o, r, l, c, s) {
|
|
|
10125
10151
|
const F = e.luckysheet_select_save[e.luckysheet_select_save.length - 1].column, I = e.visibledatacolumn.length - 1;
|
|
10126
10152
|
F[0] === 0 && F[1] === I && (j.column[1] = I, j.width_move = e.visibledatacolumn[I] - 1);
|
|
10127
10153
|
const G = e.luckysheet_select_save[e.luckysheet_select_save.length - 1].row, Q = e.visibledatarow.length - 1;
|
|
10128
|
-
G[0] === 0 && G[1] === Q && (j.row[1] = Q, j.height_move = e.visibledatarow[Q] - 1), e.luckysheet_select_save[e.luckysheet_select_save.length - 1] = j,
|
|
10154
|
+
G[0] === 0 && G[1] === Q && (j.row[1] = Q, j.height_move = e.visibledatarow[Q] - 1), e.luckysheet_select_save[e.luckysheet_select_save.length - 1] = j, _s(e), q0(e, (m = t.freezen) == null ? void 0 : m[e.currentSheetId]);
|
|
10129
10155
|
} else if (e.formulaCache.rangestart) {
|
|
10130
10156
|
if (e.formulaCache.rangeSelectionActive === !1 && !Bo(e)) {
|
|
10131
10157
|
e.luckysheetCellUpdate.length > 0 && sn(
|
|
@@ -10276,7 +10302,7 @@ function xf(e, t, n, o, r, l, c, s, a) {
|
|
|
10276
10302
|
Ut(e) === "fx" ? bo(e, s, a, 0, void 0, !1) : bo(e, a, s, 0, void 0, !1), e.luckysheet_select_status = !1, e.luckysheet_scroll_status = !1, e.luckysheet_rows_selected_status = !1, e.luckysheet_cols_selected_status = !1, o.preventDefault();
|
|
10277
10303
|
return;
|
|
10278
10304
|
}
|
|
10279
|
-
if (e.luckysheet_select_status && e.luckysheetPaintModelOn && (e0(e, e.luckysheet_copy_save), e.luckysheetPaintSingle &&
|
|
10305
|
+
if (e.luckysheet_select_status && e.luckysheetPaintModelOn && (e0(e, e.luckysheet_copy_save), e.luckysheetPaintSingle && sl(e)), e.luckysheet_select_status = !1, e.luckysheet_scroll_status = !1, e.luckysheet_rows_selected_status = !1, e.luckysheet_cols_selected_status = !1, e.luckysheet_model_move_state = !1, e.luckysheet_rows_change_size) {
|
|
10280
10306
|
e.luckysheet_rows_change_size = !1;
|
|
10281
10307
|
const { scrollTop: v } = e, k = o.pageY - d.top - e.columnHeaderHeight + v - window.scrollY, S = d.height;
|
|
10282
10308
|
let T = k + 3 - e.luckysheet_rows_change_size_start[0];
|
|
@@ -10376,11 +10402,11 @@ function xf(e, t, n, o, r, l, c, s, a) {
|
|
|
10376
10402
|
}
|
|
10377
10403
|
e.luckysheet_cell_selected_extend && Qm(e, o, c);
|
|
10378
10404
|
}
|
|
10379
|
-
function
|
|
10405
|
+
function Ol(e, t, n, o, r, l) {
|
|
10380
10406
|
var k, S, T, R, A, q, se, D;
|
|
10381
10407
|
if (e.luckysheet_scroll_status = !0, !Ju(e, e.currentSheetId))
|
|
10382
10408
|
return;
|
|
10383
|
-
Bn(e, t),
|
|
10409
|
+
Bn(e, t), qn(e, t);
|
|
10384
10410
|
const c = o.getBoundingClientRect(), s = n.pageY - c.top - window.scrollY, a = s + e.scrollTop, d = (k = t.freezen) == null ? void 0 : k[e.currentSheetId], { y: u } = zt(d, 0, a, 0, s), f = Pt(u, e.visibledatarow), p = f[1], m = f[0], h = f[2], g = e.visibledatacolumn.length - 1, w = e.visibledatacolumn[g], b = 0;
|
|
10385
10411
|
if (n.button === 2) {
|
|
10386
10412
|
const j = Le(e);
|
|
@@ -10447,7 +10473,7 @@ function Dl(e, t, n, o, r, l) {
|
|
|
10447
10473
|
const M = document.selection.createRange();
|
|
10448
10474
|
e.formulaCache.functionRangeIndex = M;
|
|
10449
10475
|
}
|
|
10450
|
-
r.innerHTML = _,
|
|
10476
|
+
r.innerHTML = _, ks(e), qt(e, _);
|
|
10451
10477
|
}
|
|
10452
10478
|
e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, l && (l.innerHTML = _), Ot(e, r), ln(e), e.formulaCache.func_selectedrange = {
|
|
10453
10479
|
left: It(0, e.visibledatacolumn)[0],
|
|
@@ -10544,14 +10570,14 @@ function Dl(e, t, n, o, r, l) {
|
|
|
10544
10570
|
column_focus: 0,
|
|
10545
10571
|
row_select: !0
|
|
10546
10572
|
}), e.luckysheet_select_status = !0, e.luckysheet_scroll_status = !0);
|
|
10547
|
-
|
|
10573
|
+
_s(e);
|
|
10548
10574
|
}
|
|
10549
10575
|
}
|
|
10550
|
-
function
|
|
10576
|
+
function Fl(e, t, n, o, r, l) {
|
|
10551
10577
|
var k, S, T, R, A, q, se, D;
|
|
10552
10578
|
if (e.luckysheet_scroll_status = !0, !Ju(e, e.currentSheetId))
|
|
10553
10579
|
return;
|
|
10554
|
-
Bn(e, t),
|
|
10580
|
+
Bn(e, t), qn(e, t);
|
|
10555
10581
|
const c = o.getBoundingClientRect(), s = n.pageX - c.left - window.scrollX, a = s + e.scrollLeft, d = (k = t.freezen) == null ? void 0 : k[e.currentSheetId], { x: u } = zt(d, a, 0, s, 0), f = e.visibledatarow.length - 1, p = e.visibledatarow[f], m = 0, h = Ft(u, e.visibledatacolumn), g = h[1], w = h[0], b = h[2];
|
|
10556
10582
|
if (e.orderbyindex = b, n.button === 2) {
|
|
10557
10583
|
const j = Le(e);
|
|
@@ -10615,7 +10641,7 @@ function Ol(e, t, n, o, r, l) {
|
|
|
10615
10641
|
const M = document.selection.createRange();
|
|
10616
10642
|
e.formulaCache.functionRangeIndex = M;
|
|
10617
10643
|
}
|
|
10618
|
-
r.innerHTML = _,
|
|
10644
|
+
r.innerHTML = _, ks(e), qt(e, _);
|
|
10619
10645
|
}
|
|
10620
10646
|
e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, l && (l.innerHTML = _), Ot(e, r), ln(e), e.formulaCache.func_selectedrange = {
|
|
10621
10647
|
left: y,
|
|
@@ -10712,13 +10738,13 @@ function Ol(e, t, n, o, r, l) {
|
|
|
10712
10738
|
column_focus: b,
|
|
10713
10739
|
column_select: !0
|
|
10714
10740
|
}), e.luckysheet_select_status = !0, e.luckysheet_scroll_status = !0);
|
|
10715
|
-
|
|
10741
|
+
_s(e);
|
|
10716
10742
|
}
|
|
10717
10743
|
}
|
|
10718
10744
|
function Sf(e, t, n, o, r, l) {
|
|
10719
10745
|
var w;
|
|
10720
10746
|
if (e.isFlvReadOnly) return;
|
|
10721
|
-
Bn(e, t),
|
|
10747
|
+
Bn(e, t), qn(e, t), e.luckysheetCellUpdate = [];
|
|
10722
10748
|
const { scrollLeft: c } = e, { scrollTop: s } = e, a = n.pageX - o.getBoundingClientRect().left - window.scrollX, d = a + c, u = (w = t.freezen) == null ? void 0 : w[e.currentSheetId], { x: f } = zt(u, d, 0, a, 0), p = Ft(f, e.visibledatacolumn), m = p[1], h = p[2];
|
|
10723
10749
|
e.luckysheet_cols_change_size = !0, e.luckysheet_scroll_status = !0;
|
|
10724
10750
|
const g = r.querySelector(
|
|
@@ -10749,7 +10775,7 @@ function jf(e, t, n, o) {
|
|
|
10749
10775
|
}
|
|
10750
10776
|
function Rf(e, t, n, o, r, l) {
|
|
10751
10777
|
var w;
|
|
10752
|
-
if (e.isFlvReadOnly || (Bn(e, t),
|
|
10778
|
+
if (e.isFlvReadOnly || (Bn(e, t), qn(e, t), e.formulaCache.rangestart || e.formulaCache.rangedrag_column_start || e.formulaCache.rangedrag_row_start || ln(e)))
|
|
10753
10779
|
return;
|
|
10754
10780
|
e.luckysheetCellUpdate = [];
|
|
10755
10781
|
const { scrollLeft: c } = e, { scrollTop: s } = e, a = n.pageY - o.getBoundingClientRect().top - window.scrollY, d = a + s, u = (w = t.freezen) == null ? void 0 : w[e.currentSheetId], { y: f } = zt(u, 0, d, 0, a), p = Pt(f, e.visibledatarow), m = p[1], h = p[2];
|
|
@@ -10765,7 +10791,7 @@ function Rf(e, t, n, o, r, l) {
|
|
|
10765
10791
|
}
|
|
10766
10792
|
function If(e, t, n, o, r, l) {
|
|
10767
10793
|
if (e.isFlvReadOnly) return;
|
|
10768
|
-
Bn(e, t),
|
|
10794
|
+
Bn(e, t), qn(e, t), e.luckysheetCellUpdate = [];
|
|
10769
10795
|
const { scrollLeft: c } = e, { scrollTop: s } = e, a = n.pageX - o.getBoundingClientRect().left + c, u = Ft(a, e.visibledatacolumn)[1];
|
|
10770
10796
|
e.luckysheet_cols_freeze_drag = !0, e.luckysheet_scroll_status = !0;
|
|
10771
10797
|
const f = r.querySelector(
|
|
@@ -10786,7 +10812,7 @@ function If(e, t, n, o, r, l) {
|
|
|
10786
10812
|
}
|
|
10787
10813
|
function Nf(e, t, n, o, r, l) {
|
|
10788
10814
|
if (e.isFlvReadOnly) return;
|
|
10789
|
-
Bn(e, t),
|
|
10815
|
+
Bn(e, t), qn(e, t), e.luckysheetCellUpdate = [];
|
|
10790
10816
|
const { scrollLeft: c } = e, { scrollTop: s } = e, a = n.pageY - o.getBoundingClientRect().top + s, u = Pt(a, e.visibledatarow)[1];
|
|
10791
10817
|
e.luckysheet_rows_freeze_drag = !0, e.luckysheet_scroll_status = !0;
|
|
10792
10818
|
const f = r.querySelector(
|
|
@@ -10986,7 +11012,7 @@ function Fi(e, t, n) {
|
|
|
10986
11012
|
const A = Le(e);
|
|
10987
11013
|
if (!A) return;
|
|
10988
11014
|
const q = A.length, se = A[0].length, D = k - q + 1, j = T - se + 1;
|
|
10989
|
-
if ((D > 0 || j > 0) &&
|
|
11015
|
+
if ((D > 0 || j > 0) && Xl(A, D, j), !A) return;
|
|
10990
11016
|
b.rowlen == null && (b.rowlen = {});
|
|
10991
11017
|
const _ = !1, M = {}, Z = [];
|
|
10992
11018
|
for (let $ = v; $ <= k; $ += 1) {
|
|
@@ -11086,7 +11112,7 @@ function Fi(e, t, n) {
|
|
|
11086
11112
|
)), R)
|
|
11087
11113
|
return;
|
|
11088
11114
|
const A = v + S - y.length, q = k + T - y[0].length;
|
|
11089
|
-
if ((A > 0 || q > 0) &&
|
|
11115
|
+
if ((A > 0 || q > 0) && Xl(y, A, q), !y) return;
|
|
11090
11116
|
const se = (_) => {
|
|
11091
11117
|
const M = String(_).trim();
|
|
11092
11118
|
return !M || /[\s\r\n]/.test(M) || !/^(https?:\/\/|www\.)\S+$/i.test(M) ? null : M.startsWith("http") ? M : `https://${M}`;
|
|
@@ -11202,7 +11228,7 @@ function Tf(e, t) {
|
|
|
11202
11228
|
const o = e.config || {};
|
|
11203
11229
|
o.merge == null && (o.merge = {});
|
|
11204
11230
|
const r = t.HasMC, l = t.RowlChange, c = t.dataSheetId, s = t.copyRange[0].row[0], a = t.copyRange[0].row[1], d = t.copyRange[0].column[0], u = t.copyRange[0].column[1], f = W.cloneDeep(
|
|
11205
|
-
|
|
11231
|
+
ol(
|
|
11206
11232
|
e,
|
|
11207
11233
|
{ row: [s, a], column: [d, u] },
|
|
11208
11234
|
c
|
|
@@ -11216,8 +11242,8 @@ function Tf(e, t) {
|
|
|
11216
11242
|
const v = Le(e);
|
|
11217
11243
|
if (!v) return;
|
|
11218
11244
|
const k = v.length, S = v[0].length, T = p + g - k, R = m + b - S;
|
|
11219
|
-
(T > 0 || R > 0) &&
|
|
11220
|
-
const A = [], q =
|
|
11245
|
+
(T > 0 || R > 0) && Xl(v, T, R);
|
|
11246
|
+
const A = [], q = tl(e, c), se = W.cloneDeep(
|
|
11221
11247
|
e.luckysheetfile[Te(e, c)].dataVerification
|
|
11222
11248
|
) || {}, D = W.cloneDeep(
|
|
11223
11249
|
e.luckysheetfile[Te(e, e.currentSheetId)].dataVerification
|
|
@@ -11508,7 +11534,7 @@ function Mf(e, t, n = !1) {
|
|
|
11508
11534
|
const l = t.HasMC, c = t.RowlChange, s = t.dataSheetId, a = t.copyRange[0].row[0], d = t.copyRange[0].row[1], u = t.copyRange[0].column[0], f = t.copyRange[0].column[1];
|
|
11509
11535
|
let p = [], m = !1;
|
|
11510
11536
|
for (let ke = 0; ke < t.copyRange.length; ke += 1) {
|
|
11511
|
-
let me =
|
|
11537
|
+
let me = ol(
|
|
11512
11538
|
e,
|
|
11513
11539
|
{
|
|
11514
11540
|
row: t.copyRange[ke].row,
|
|
@@ -11544,8 +11570,8 @@ function Mf(e, t, n = !1) {
|
|
|
11544
11570
|
const A = (C - y + 1) / g, q = (k - v + 1) / w, se = A > 1 || q > 1, D = Le(e);
|
|
11545
11571
|
if (!D) return;
|
|
11546
11572
|
const j = D.length, _ = D[0].length, M = g + y - j, Z = w + v - _;
|
|
11547
|
-
(M > 0 || Z > 0) &&
|
|
11548
|
-
const $ = [], V = [], L = [], H =
|
|
11573
|
+
(M > 0 || Z > 0) && Xl(D, M, Z);
|
|
11574
|
+
const $ = [], V = [], L = [], H = tl(e, s), F = W.cloneDeep(
|
|
11549
11575
|
e.luckysheetfile[Te(e, s)].dataVerification
|
|
11550
11576
|
) || {};
|
|
11551
11577
|
let I = null, G = 0, Q = 0, K = 0, E = 0;
|
|
@@ -11646,7 +11672,7 @@ function Mf(e, t, n = !1) {
|
|
|
11646
11672
|
if (fe.f = _e, !(ve[1] instanceof Promise) && !ve[3])
|
|
11647
11673
|
if (Array.isArray(ve[1])) {
|
|
11648
11674
|
const Ae = ve[1];
|
|
11649
|
-
fe.m = String(Ae[0][0]),
|
|
11675
|
+
fe.m = String(Ae[0][0]), ms(
|
|
11650
11676
|
e,
|
|
11651
11677
|
ae,
|
|
11652
11678
|
de,
|
|
@@ -11785,7 +11811,7 @@ function Nc(e, t) {
|
|
|
11785
11811
|
}
|
|
11786
11812
|
}
|
|
11787
11813
|
}
|
|
11788
|
-
function
|
|
11814
|
+
function xl(e) {
|
|
11789
11815
|
var a, d, u, f, p;
|
|
11790
11816
|
const t = (a = e.luckysheet_select_save) == null ? void 0 : a[e.luckysheet_select_save.length - 1];
|
|
11791
11817
|
if (!t) return;
|
|
@@ -11923,18 +11949,18 @@ function Lf(e, t) {
|
|
|
11923
11949
|
if (((r = (o = e.hooks).beforePaste) == null ? void 0 : r.call(o, e.luckysheet_select_save, p)) === !1)
|
|
11924
11950
|
return;
|
|
11925
11951
|
if ((p.indexOf("fortune-copy-action-table") > -1 || p.indexOf("fortune-copy-action-span") > -1) && ((l = e.luckysheet_copy_save) == null ? void 0 : l.copyRange) != null && e.luckysheet_copy_save.copyRange.length > 0 && h)
|
|
11926
|
-
e.luckysheet_paste_iscut ? (e.luckysheet_paste_iscut = !1, Tf(e, e.luckysheet_copy_save), e.luckysheet_selection_range = []) : Mf(e, e.luckysheet_copy_save, d),
|
|
11952
|
+
e.luckysheet_paste_iscut ? (e.luckysheet_paste_iscut = !1, Tf(e, e.luckysheet_copy_save), e.luckysheet_selection_range = []) : Mf(e, e.luckysheet_copy_save, d), xl(e);
|
|
11927
11953
|
else if (!(p.indexOf("fortune-copy-action-image") > -1)) {
|
|
11928
11954
|
if (/<table[\s/>]/i.test(p) || U3(p)) {
|
|
11929
11955
|
const w = /<table[\s/>]/i.test(p), b = w ? p : $3(p);
|
|
11930
|
-
M3(e, b, Fi), w &&
|
|
11956
|
+
M3(e, b, Fi), w && xl(e);
|
|
11931
11957
|
} else if (!(u.files.length === 1 && u.files[0].type.indexOf("image") > -1)) {
|
|
11932
11958
|
if (p = u.getData("text/plain"), p.startsWith("="))
|
|
11933
11959
|
Af(e, p);
|
|
11934
11960
|
else {
|
|
11935
11961
|
Fi(e, p);
|
|
11936
11962
|
const b = u.getData("text/html") || u.getData("text/plain");
|
|
11937
|
-
if (
|
|
11963
|
+
if (il(b)) {
|
|
11938
11964
|
const C = (c = e.luckysheet_select_save) == null ? void 0 : c[e.luckysheet_select_save.length - 1];
|
|
11939
11965
|
if (C) {
|
|
11940
11966
|
const v = C.row_focus ?? ((s = C.row) == null ? void 0 : s[0]) ?? 0, k = C.column_focus ?? ((a = C.column) == null ? void 0 : a[0]) ?? 0, S = k === 0 ? 0 : e.visibledatacolumn[k - 1], T = v === 0 ? 0 : e.visibledatarow[v + 5];
|
|
@@ -11945,7 +11971,7 @@ function Lf(e, t) {
|
|
|
11945
11971
|
}
|
|
11946
11972
|
}
|
|
11947
11973
|
}
|
|
11948
|
-
|
|
11974
|
+
xl(e);
|
|
11949
11975
|
}
|
|
11950
11976
|
}
|
|
11951
11977
|
} else if (e.luckysheetCellUpdate.length > 0) {
|
|
@@ -11953,7 +11979,7 @@ function Lf(e, t) {
|
|
|
11953
11979
|
let { clipboardData: d } = t;
|
|
11954
11980
|
d || (d = window.clipboardData);
|
|
11955
11981
|
const u = d == null ? void 0 : d.getData("text/plain");
|
|
11956
|
-
u && (document.execCommand("insertText", !1, u), Nc(u, e),
|
|
11982
|
+
u && (document.execCommand("insertText", !1, u), Nc(u, e), xl(e));
|
|
11957
11983
|
}
|
|
11958
11984
|
}
|
|
11959
11985
|
}
|
|
@@ -11978,20 +12004,20 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
11978
12004
|
CF_DATE_DEFAULT_FORMAT: Fo,
|
|
11979
12005
|
Canvas: va,
|
|
11980
12006
|
FormulaCache: r0,
|
|
11981
|
-
MAX_ZOOM_RATIO:
|
|
11982
|
-
MIN_ZOOM_RATIO:
|
|
12007
|
+
MAX_ZOOM_RATIO: os,
|
|
12008
|
+
MIN_ZOOM_RATIO: rs,
|
|
11983
12009
|
QUICK_SEARCH_ASYNC_ROW_THRESHOLD: Sd,
|
|
11984
12010
|
addSheet: Ss,
|
|
11985
|
-
advancePrimaryCellInLastMultiSelection:
|
|
12011
|
+
advancePrimaryCellInLastMultiSelection: Yl,
|
|
11986
12012
|
api: p3,
|
|
11987
12013
|
applyLinkToSelection: qi,
|
|
11988
12014
|
applyLocation: mn,
|
|
11989
12015
|
autoSelectionFormula: G1,
|
|
11990
12016
|
calcSelectionInfo: n1,
|
|
11991
|
-
cancelActiveImgItem:
|
|
11992
|
-
cancelFunctionrangeSelected:
|
|
12017
|
+
cancelActiveImgItem: qn,
|
|
12018
|
+
cancelFunctionrangeSelected: ks,
|
|
11993
12019
|
cancelNormalSelected: _o,
|
|
11994
|
-
cancelPaintModel:
|
|
12020
|
+
cancelPaintModel: sl,
|
|
11995
12021
|
captureLinkEditorOpenSnapshot: ya,
|
|
11996
12022
|
cellFadeAnimator: Vo,
|
|
11997
12023
|
cfSplitRange: ma,
|
|
@@ -12017,34 +12043,34 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12017
12043
|
defaultStyle: hn,
|
|
12018
12044
|
deleteComment: cd,
|
|
12019
12045
|
deleteRowCol: xn,
|
|
12020
|
-
deleteSelectedCellText:
|
|
12046
|
+
deleteSelectedCellText: Wl,
|
|
12021
12047
|
deleteSheet: js,
|
|
12022
|
-
detectDateFormat:
|
|
12048
|
+
detectDateFormat: ps,
|
|
12023
12049
|
diff: l0,
|
|
12024
12050
|
drawArrow: ad,
|
|
12025
12051
|
editComment: Fs,
|
|
12026
12052
|
editSheetName: H1,
|
|
12027
|
-
ensureManualHiddenInitialized:
|
|
12053
|
+
ensureManualHiddenInitialized: vs,
|
|
12028
12054
|
ensureSheetIndex: i1,
|
|
12029
12055
|
escapeHTMLTag: yo,
|
|
12030
12056
|
escapeScriptTag: ro,
|
|
12031
|
-
execFunctionGroup:
|
|
12057
|
+
execFunctionGroup: Yn,
|
|
12032
12058
|
execfunction: jn,
|
|
12033
12059
|
expandCellRectForMerge: Ii,
|
|
12034
12060
|
filterPatch: Li,
|
|
12035
12061
|
fixColumnStyleOverflowInFreeze: vo,
|
|
12036
12062
|
fixPositionOnFrozenCells: zt,
|
|
12037
12063
|
fixRowStyleOverflowInFreeze: wo,
|
|
12038
|
-
formatCfDatePresetSnapshot:
|
|
12064
|
+
formatCfDatePresetSnapshot: Dl,
|
|
12039
12065
|
functionHTMLGenerate: xo,
|
|
12040
|
-
getBorderInfoCompute:
|
|
12066
|
+
getBorderInfoCompute: tl,
|
|
12041
12067
|
getBorderInfoComputeRange: Pu,
|
|
12042
12068
|
getCanonicalDateEditFormat: s0,
|
|
12043
|
-
getCellHyperlink:
|
|
12069
|
+
getCellHyperlink: Ql,
|
|
12044
12070
|
getCellHyperlinks: Cr,
|
|
12045
12071
|
getCellRowColumn: B1,
|
|
12046
12072
|
getCellValue: Wt,
|
|
12047
|
-
getComputeMap:
|
|
12073
|
+
getComputeMap: gs,
|
|
12048
12074
|
getDataArr: Ti,
|
|
12049
12075
|
getDateBaseLocale: a1,
|
|
12050
12076
|
getDateEditFormatForCell: i0,
|
|
@@ -12056,7 +12082,7 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12056
12082
|
getFindRangeOnCurrentSheet: Io,
|
|
12057
12083
|
getFlowdata: Le,
|
|
12058
12084
|
getFormulaEditorOwner: Ut,
|
|
12059
|
-
getFormulaRangeIndexAtCaret:
|
|
12085
|
+
getFormulaRangeIndexAtCaret: Cs,
|
|
12060
12086
|
getFormulaRangeIndexForKeyboardSync: u1,
|
|
12061
12087
|
getFreezeState: Di,
|
|
12062
12088
|
getHyperlinkAtCaretInContentEditable: d1,
|
|
@@ -12082,20 +12108,20 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12082
12108
|
getUniformLinkCoveringPlainRange: U1,
|
|
12083
12109
|
getUniformLinkFromWindowSelectionInEditor: Gi,
|
|
12084
12110
|
getcellrange: Nu,
|
|
12085
|
-
getdatabyselection:
|
|
12111
|
+
getdatabyselection: ol,
|
|
12086
12112
|
getrangeseleciton: c0,
|
|
12087
12113
|
goToLink: Si,
|
|
12088
|
-
groupValuesRefresh:
|
|
12114
|
+
groupValuesRefresh: Jr,
|
|
12089
12115
|
handleBold: Es,
|
|
12090
|
-
handleBorder:
|
|
12116
|
+
handleBorder: es,
|
|
12091
12117
|
handleCellAreaDoubleClick: kf,
|
|
12092
12118
|
handleCellAreaMouseDown: bf,
|
|
12093
12119
|
handleColFreezeHandleMouseDown: If,
|
|
12094
12120
|
handleColSizeHandleDoubleClick: jf,
|
|
12095
12121
|
handleColSizeHandleMouseDown: Sf,
|
|
12096
|
-
handleColumnHeaderMouseDown:
|
|
12122
|
+
handleColumnHeaderMouseDown: Fl,
|
|
12097
12123
|
handleContextMenu: Fa,
|
|
12098
|
-
handleCopy:
|
|
12124
|
+
handleCopy: ls,
|
|
12099
12125
|
handleFormulaInput: bo,
|
|
12100
12126
|
handleFreeze: ji,
|
|
12101
12127
|
handleGlobalKeyDown: vf,
|
|
@@ -12111,7 +12137,7 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12111
12137
|
handlePaste: Lf,
|
|
12112
12138
|
handlePasteByClick: Pa,
|
|
12113
12139
|
handleRowFreezeHandleMouseDown: Nf,
|
|
12114
|
-
handleRowHeaderMouseDown:
|
|
12140
|
+
handleRowHeaderMouseDown: Ol,
|
|
12115
12141
|
handleRowSizeHandleMouseDown: Rf,
|
|
12116
12142
|
handleScreenShot: id,
|
|
12117
12143
|
handleSort: td,
|
|
@@ -12129,25 +12155,25 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12129
12155
|
initSheetIndex: p1,
|
|
12130
12156
|
insertDuneChart: ja,
|
|
12131
12157
|
insertImage: md,
|
|
12132
|
-
insertRowCol:
|
|
12158
|
+
insertRowCol: Zn,
|
|
12133
12159
|
insertUpdateFunctionGroup: Ki,
|
|
12134
12160
|
inverseRowColOptions: Qd,
|
|
12135
12161
|
isAllowEdit: ft,
|
|
12136
|
-
isAllowEditReadOnly:
|
|
12137
|
-
isCaretAtValidFormulaRangeInsertionPoint:
|
|
12162
|
+
isAllowEditReadOnly: ys,
|
|
12163
|
+
isCaretAtValidFormulaRangeInsertionPoint: bs,
|
|
12138
12164
|
isCurrencyLikeNumberFormat: u0,
|
|
12139
12165
|
isFormulaReferenceInputMode: Rn,
|
|
12140
12166
|
isHyperlinkCreationBlocked: ga,
|
|
12141
12167
|
isInlineStringCell: no,
|
|
12142
12168
|
isLegacyFormulaRangeMode: Ko,
|
|
12143
12169
|
isLinkValid: Z1,
|
|
12144
|
-
isNumericCellType:
|
|
12170
|
+
isNumericCellType: el,
|
|
12145
12171
|
isRealNull: Co,
|
|
12146
12172
|
isRealNum: un,
|
|
12147
12173
|
isShowHidenCR: ra,
|
|
12148
12174
|
isTypedCurrencyDisplayFormat: g1,
|
|
12149
12175
|
isUsDateBaseLocale: d0,
|
|
12150
|
-
isValidRangeText:
|
|
12176
|
+
isValidRangeText: Zl,
|
|
12151
12177
|
is_date: Xi,
|
|
12152
12178
|
iscelldata: Eu,
|
|
12153
12179
|
isdatatypemulti: Fu,
|
|
@@ -12163,12 +12189,12 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12163
12189
|
mergeSelectionHasValues: xi,
|
|
12164
12190
|
mouseRender: Ha,
|
|
12165
12191
|
moveHighlightCell: Ht,
|
|
12166
|
-
moveToEnd:
|
|
12192
|
+
moveToEnd: ws,
|
|
12167
12193
|
newComment: Os,
|
|
12168
12194
|
normalizeDateBaseLocale: v1,
|
|
12169
12195
|
normalizeSelection: Rt,
|
|
12170
12196
|
normalizedAttr: wn,
|
|
12171
|
-
normalizedCellAttr:
|
|
12197
|
+
normalizedCellAttr: eo,
|
|
12172
12198
|
onCellsMoveStart: Bd,
|
|
12173
12199
|
onCommentBoxMoveStart: fd,
|
|
12174
12200
|
onIframeMove: Yd,
|
|
@@ -12187,9 +12213,9 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12187
12213
|
patchToOp: Gd,
|
|
12188
12214
|
rangeHightlightselected: Ot,
|
|
12189
12215
|
rangeSetValue: vr,
|
|
12190
|
-
rebuildRowHiddenUnion:
|
|
12216
|
+
rebuildRowHiddenUnion: nl,
|
|
12191
12217
|
remapFormulaReferencesByMap: Wr,
|
|
12192
|
-
removeActiveImage:
|
|
12218
|
+
removeActiveImage: ts,
|
|
12193
12219
|
removeEditingComment: Bn,
|
|
12194
12220
|
removeHyperlink: ha,
|
|
12195
12221
|
removeHyperlinkForLink: W1,
|
|
@@ -12200,7 +12226,7 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12200
12226
|
rowLocation: Pt,
|
|
12201
12227
|
rowLocationByIndex: Nt,
|
|
12202
12228
|
runQuickSearchIndexArrAsync: Dd,
|
|
12203
|
-
sanitizeDuneUrl:
|
|
12229
|
+
sanitizeDuneUrl: il,
|
|
12204
12230
|
saveFilter: Ni,
|
|
12205
12231
|
saveHyperlink: Wo,
|
|
12206
12232
|
scrollToHighlightCell: oo,
|
|
@@ -12212,7 +12238,7 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12212
12238
|
selectTitlesRange: sa,
|
|
12213
12239
|
selectionIsExactlyOneMergeBlock: ia,
|
|
12214
12240
|
seletedHighlistByindex: Pr,
|
|
12215
|
-
setCaretPosition:
|
|
12241
|
+
setCaretPosition: Ul,
|
|
12216
12242
|
setCellError: ea,
|
|
12217
12243
|
setCellValue: Xt,
|
|
12218
12244
|
setConditionRules: b1,
|
|
@@ -12232,10 +12258,10 @@ const L4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
12232
12258
|
snapSheetSelectionFocusToCellPreserveMultiRange: Zr,
|
|
12233
12259
|
sortSelection: zo,
|
|
12234
12260
|
sortSheetBySelectedColumn: x1,
|
|
12235
|
-
spillSortResult:
|
|
12261
|
+
spillSortResult: ms,
|
|
12236
12262
|
suppressFormulaRangeSelectionForInitialEdit: $r,
|
|
12237
12263
|
syncLinkCardAfterHyperlinkChange: Gr,
|
|
12238
|
-
syncPrimaryCellActiveFromSelection:
|
|
12264
|
+
syncPrimaryCellActiveFromSelection: _s,
|
|
12239
12265
|
toggleFreeze: Fr,
|
|
12240
12266
|
toggleViewerFilter: Fd,
|
|
12241
12267
|
toolbarItemClickHandler: rd,
|
|
@@ -12751,7 +12777,7 @@ const K3 = (e, t) => {
|
|
|
12751
12777
|
for (let fe = 0; fe < de.length; fe += 1)
|
|
12752
12778
|
(me = de[fe]) != null && me.f && O.push({ r: ce, c: fe, i: s.currentSheetId });
|
|
12753
12779
|
}
|
|
12754
|
-
O.length > 0 && (F.formulaCache.depsByCell = /* @__PURE__ */ new Map(), F.formulaCache.revDepsByCell = /* @__PURE__ */ new Map(), F.formulaCache.execFunctionExist = O,
|
|
12780
|
+
O.length > 0 && (F.formulaCache.depsByCell = /* @__PURE__ */ new Map(), F.formulaCache.revDepsByCell = /* @__PURE__ */ new Map(), F.formulaCache.execFunctionExist = O, Yn(
|
|
12755
12781
|
F,
|
|
12756
12782
|
null,
|
|
12757
12783
|
null,
|
|
@@ -12759,7 +12785,7 @@ const K3 = (e, t) => {
|
|
|
12759
12785
|
null,
|
|
12760
12786
|
Le(F),
|
|
12761
12787
|
!0
|
|
12762
|
-
),
|
|
12788
|
+
), Jr(F), F.formulaCache.execFunctionExist = void 0), (le = window == null ? void 0 : window.updateDataBlockCalcFunctionAfterRowDrag) == null || le.call(
|
|
12763
12789
|
window,
|
|
12764
12790
|
N,
|
|
12765
12791
|
P,
|
|
@@ -12857,7 +12883,7 @@ const K3 = (e, t) => {
|
|
|
12857
12883
|
if ($.button === 0 && $.target.tagName === "use" || $.button === 2) {
|
|
12858
12884
|
const { nativeEvent: N } = $;
|
|
12859
12885
|
t((B) => {
|
|
12860
|
-
|
|
12886
|
+
Fl(
|
|
12861
12887
|
B,
|
|
12862
12888
|
n.globalCache,
|
|
12863
12889
|
N,
|
|
@@ -12875,7 +12901,7 @@ const K3 = (e, t) => {
|
|
|
12875
12901
|
if (!L) return;
|
|
12876
12902
|
const H = y($.pageX, L);
|
|
12877
12903
|
if (H < 0) return;
|
|
12878
|
-
const F =
|
|
12904
|
+
const F = Kn(e), I = (K = F == null ? void 0 : F[0].row) == null ? void 0 : K[1];
|
|
12879
12905
|
let G = Le(e);
|
|
12880
12906
|
G || (G = []);
|
|
12881
12907
|
const Q = I === (G == null ? void 0 : G.length) - 1;
|
|
@@ -12885,7 +12911,7 @@ const K3 = (e, t) => {
|
|
|
12885
12911
|
H > ((ne = (U = F == null ? void 0 : F[0]) == null ? void 0 : U.column) == null ? void 0 : ne[1])) {
|
|
12886
12912
|
const { nativeEvent: N } = $;
|
|
12887
12913
|
t((B) => {
|
|
12888
|
-
|
|
12914
|
+
Fl(
|
|
12889
12915
|
B,
|
|
12890
12916
|
n.globalCache,
|
|
12891
12917
|
N,
|
|
@@ -12899,7 +12925,7 @@ const K3 = (e, t) => {
|
|
|
12899
12925
|
if (e.isFlvReadOnly) {
|
|
12900
12926
|
const { nativeEvent: N } = $;
|
|
12901
12927
|
t((B) => {
|
|
12902
|
-
|
|
12928
|
+
Fl(
|
|
12903
12929
|
B,
|
|
12904
12930
|
n.globalCache,
|
|
12905
12931
|
N,
|
|
@@ -13048,7 +13074,7 @@ const K3 = (e, t) => {
|
|
|
13048
13074
|
const _ = ($) => {
|
|
13049
13075
|
var I;
|
|
13050
13076
|
if (v) return "grabbing";
|
|
13051
|
-
const V =
|
|
13077
|
+
const V = Kn(e), L = (I = V == null ? void 0 : V[0].row) == null ? void 0 : I[1];
|
|
13052
13078
|
let H = Le(e);
|
|
13053
13079
|
return H || (H = []), L === (H == null ? void 0 : H.length) - 1 && V && $ >= (V == null ? void 0 : V[0].column[0]) && $ <= (V == null ? void 0 : V[0].column[1]) ? "grab" : "default";
|
|
13054
13080
|
};
|
|
@@ -13620,7 +13646,7 @@ const K3 = (e, t) => {
|
|
|
13620
13646
|
for (let ye = 0; ye < fe.length; ye += 1)
|
|
13621
13647
|
(ke = fe[ye]) != null && ke.f && O.push({ r: de, c: ye, i: s.currentSheetId });
|
|
13622
13648
|
}
|
|
13623
|
-
O.length > 0 && (F.formulaCache.depsByCell = /* @__PURE__ */ new Map(), F.formulaCache.revDepsByCell = /* @__PURE__ */ new Map(), F.formulaCache.execFunctionExist = O,
|
|
13649
|
+
O.length > 0 && (F.formulaCache.depsByCell = /* @__PURE__ */ new Map(), F.formulaCache.revDepsByCell = /* @__PURE__ */ new Map(), F.formulaCache.execFunctionExist = O, Yn(
|
|
13624
13650
|
F,
|
|
13625
13651
|
null,
|
|
13626
13652
|
null,
|
|
@@ -13628,7 +13654,7 @@ const K3 = (e, t) => {
|
|
|
13628
13654
|
null,
|
|
13629
13655
|
Le(F),
|
|
13630
13656
|
!0
|
|
13631
|
-
),
|
|
13657
|
+
), Jr(F), F.formulaCache.execFunctionExist = void 0), (me = window == null ? void 0 : window.updateDataBlockCalcFunctionAfterRowDrag) == null || me.call(
|
|
13632
13658
|
window,
|
|
13633
13659
|
K,
|
|
13634
13660
|
N,
|
|
@@ -13741,7 +13767,7 @@ const K3 = (e, t) => {
|
|
|
13741
13767
|
if (V.button === 0 && V.target.tagName === "use" || V.button === 2) {
|
|
13742
13768
|
const { nativeEvent: ne } = V;
|
|
13743
13769
|
t((N) => {
|
|
13744
|
-
|
|
13770
|
+
Ol(
|
|
13745
13771
|
N,
|
|
13746
13772
|
o.globalCache,
|
|
13747
13773
|
ne,
|
|
@@ -13759,7 +13785,7 @@ const K3 = (e, t) => {
|
|
|
13759
13785
|
if (!H) return;
|
|
13760
13786
|
const F = v(V.pageY, H);
|
|
13761
13787
|
if (F < 0) return;
|
|
13762
|
-
const I =
|
|
13788
|
+
const I = Kn(e), G = (E = I == null ? void 0 : I[0].column) == null ? void 0 : E[1];
|
|
13763
13789
|
let Q = Le(e);
|
|
13764
13790
|
Q || (Q = []);
|
|
13765
13791
|
const K = G === ((U = Q == null ? void 0 : Q[0]) == null ? void 0 : U.length) - 1;
|
|
@@ -13769,7 +13795,7 @@ const K3 = (e, t) => {
|
|
|
13769
13795
|
F > (I == null ? void 0 : I[0].row[1])) {
|
|
13770
13796
|
const { nativeEvent: ne } = V;
|
|
13771
13797
|
t((N) => {
|
|
13772
|
-
|
|
13798
|
+
Ol(
|
|
13773
13799
|
N,
|
|
13774
13800
|
o.globalCache,
|
|
13775
13801
|
ne,
|
|
@@ -13783,7 +13809,7 @@ const K3 = (e, t) => {
|
|
|
13783
13809
|
if (e.isFlvReadOnly) {
|
|
13784
13810
|
const { nativeEvent: ne } = V;
|
|
13785
13811
|
t((N) => {
|
|
13786
|
-
|
|
13812
|
+
Ol(
|
|
13787
13813
|
N,
|
|
13788
13814
|
o.globalCache,
|
|
13789
13815
|
ne,
|
|
@@ -13929,7 +13955,7 @@ const K3 = (e, t) => {
|
|
|
13929
13955
|
const M = (V) => {
|
|
13930
13956
|
var G, Q, K, E;
|
|
13931
13957
|
if (S) return "grabbing";
|
|
13932
|
-
const L =
|
|
13958
|
+
const L = Kn(e), H = (G = L == null ? void 0 : L[0].column) == null ? void 0 : G[1];
|
|
13933
13959
|
let F = Le(e);
|
|
13934
13960
|
return F || (F = []), H === ((Q = F == null ? void 0 : F[0]) == null ? void 0 : Q.length) - 1 && L && V >= ((K = L == null ? void 0 : L[0].row) == null ? void 0 : K[0]) && V <= ((E = L == null ? void 0 : L[0].row) == null ? void 0 : E[1]) ? "grab" : "default";
|
|
13935
13961
|
};
|
|
@@ -15591,7 +15617,7 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
|
|
|
15591
15617
|
);
|
|
15592
15618
|
};
|
|
15593
15619
|
function n2(e, t) {
|
|
15594
|
-
const n = a1() === "us", o = String(e.getDate()).padStart(2, "0"), r = String(e.getMonth() + 1).padStart(2, "0"), l = e.getFullYear(), c = t.trim(), s =
|
|
15620
|
+
const n = a1() === "us", o = String(e.getDate()).padStart(2, "0"), r = String(e.getMonth() + 1).padStart(2, "0"), l = e.getFullYear(), c = t.trim(), s = ps(c);
|
|
15595
15621
|
if (s != null && (s.hours !== 0 || s.minutes !== 0 || s.seconds !== 0 || /\d{1,2}\s*:\s*\d{2}/.test(c)) && s) {
|
|
15596
15622
|
const d = s.hours, u = s.minutes, f = s.seconds;
|
|
15597
15623
|
return `${n ? `${r}/${o}/${l}` : `${o}/${r}/${l}`} ${String(d).padStart(2, "0")}:${String(u).padStart(2, "0")}:${String(f).padStart(2, "0")}`;
|
|
@@ -15614,7 +15640,7 @@ const Hf = ({
|
|
|
15614
15640
|
const b = (T) => {
|
|
15615
15641
|
const R = String(T ?? "").trim();
|
|
15616
15642
|
if (!R) return null;
|
|
15617
|
-
const A =
|
|
15643
|
+
const A = ps(R);
|
|
15618
15644
|
return A ? new Date(A.year, A.month - 1, A.day) : null;
|
|
15619
15645
|
}, y = b(a);
|
|
15620
15646
|
if (y) return y;
|
|
@@ -15644,7 +15670,7 @@ const Hf = ({
|
|
|
15644
15670
|
k.deleteContents(), k.insertNode(document.createTextNode(C));
|
|
15645
15671
|
} else
|
|
15646
15672
|
h.textContent = C;
|
|
15647
|
-
h.dispatchEvent(new Event("input", { bubbles: !0 })),
|
|
15673
|
+
h.dispatchEvent(new Event("input", { bubbles: !0 })), ws(h), o((k) => {
|
|
15648
15674
|
sn(k, r.r, r.c, h), Ht(k, "down", 0, "rangeOfSelect");
|
|
15649
15675
|
});
|
|
15650
15676
|
},
|
|
@@ -15679,7 +15705,7 @@ const Hf = ({
|
|
|
15679
15705
|
}
|
|
15680
15706
|
);
|
|
15681
15707
|
};
|
|
15682
|
-
function
|
|
15708
|
+
function is(e) {
|
|
15683
15709
|
const t = Me(null);
|
|
15684
15710
|
return Ne(() => {
|
|
15685
15711
|
t.current = e;
|
|
@@ -15717,7 +15743,7 @@ function Ac(e) {
|
|
|
15717
15743
|
end: Math.max(r, c)
|
|
15718
15744
|
};
|
|
15719
15745
|
}
|
|
15720
|
-
function
|
|
15746
|
+
function as(e) {
|
|
15721
15747
|
return !e.metaKey && !e.ctrlKey ? !1 : e.code === "KeyZ" || e.code === "KeyY" ? !0 : e.keyCode === 90 || e.keyCode === 89;
|
|
15722
15748
|
}
|
|
15723
15749
|
function Ws(e, t) {
|
|
@@ -15849,7 +15875,7 @@ function Vf(e) {
|
|
|
15849
15875
|
}
|
|
15850
15876
|
return null;
|
|
15851
15877
|
}
|
|
15852
|
-
function
|
|
15878
|
+
function Sl(e) {
|
|
15853
15879
|
let t = "";
|
|
15854
15880
|
for (; e > 0; )
|
|
15855
15881
|
e -= 1, t = String.fromCharCode(65 + e % 26) + t, e = Math.floor(e / 26);
|
|
@@ -15869,7 +15895,7 @@ function or(e) {
|
|
|
15869
15895
|
return c;
|
|
15870
15896
|
}
|
|
15871
15897
|
const r2 = 100;
|
|
15872
|
-
function
|
|
15898
|
+
function jl(e) {
|
|
15873
15899
|
const t = (e ?? "").replace(/\u200B/g, "").trim();
|
|
15874
15900
|
return t === "" || t === "<br>" || t === "<div><br></div>" || t === "<div></div>" ? "" : e ?? "";
|
|
15875
15901
|
}
|
|
@@ -15920,7 +15946,7 @@ function Uf(e, t, n, o, r) {
|
|
|
15920
15946
|
if (!y.active || y.entries.length === 0) return !1;
|
|
15921
15947
|
const C = b ? y.index + 1 : y.index - 1;
|
|
15922
15948
|
if (C < 0 || C >= y.entries.length) {
|
|
15923
|
-
if (!b && C < 0 && a.current &&
|
|
15949
|
+
if (!b && C < 0 && a.current && jl(
|
|
15924
15950
|
((S = e.current) == null ? void 0 : S.innerHTML) ?? ""
|
|
15925
15951
|
) !== "") {
|
|
15926
15952
|
y.entries[0] = { html: "", caret: 0 }, y.index = 0;
|
|
@@ -15936,15 +15962,15 @@ function Uf(e, t, n, o, r) {
|
|
|
15936
15962
|
[m, e]
|
|
15937
15963
|
), g = je(() => {
|
|
15938
15964
|
const b = e.current;
|
|
15939
|
-
b && (l.current = b.innerText, c.current = b.innerHTML, s.current = pn(b), d.current.active || (a.current =
|
|
15965
|
+
b && (l.current = b.innerText, c.current = b.innerHTML, s.current = pn(b), d.current.active || (a.current = jl(c.current ?? "") === ""));
|
|
15940
15966
|
}, [e]), w = je(
|
|
15941
15967
|
(b) => {
|
|
15942
15968
|
if (u.current) return;
|
|
15943
15969
|
const y = e.current;
|
|
15944
15970
|
if (!y) return;
|
|
15945
|
-
const C =
|
|
15971
|
+
const C = jl(
|
|
15946
15972
|
c.current ?? ""
|
|
15947
|
-
), v =
|
|
15973
|
+
), v = jl(y.innerHTML ?? ""), k = b(), S = d.current;
|
|
15948
15974
|
(!S.active || S.entries.length === 0) && (a.current = C === "", p({
|
|
15949
15975
|
html: C === v ? "" : C ?? "",
|
|
15950
15976
|
caret: s.current
|
|
@@ -16757,7 +16783,7 @@ function d2(e) {
|
|
|
16757
16783
|
`).replace(/\r/g, `
|
|
16758
16784
|
`).length;
|
|
16759
16785
|
}
|
|
16760
|
-
function
|
|
16786
|
+
function Rl(e, t, n) {
|
|
16761
16787
|
const o = (h) => h.replace(/\r\n/g, `
|
|
16762
16788
|
`).replace(/\r/g, `
|
|
16763
16789
|
`), r = o(
|
|
@@ -16811,8 +16837,8 @@ function jl(e, t, n) {
|
|
|
16811
16837
|
return m.setStart(a, Math.max(0, d)), m.setEnd(u, Math.max(0, f)), e.focus({ preventScroll: !0 }), c.removeAllRanges(), c.addRange(m), !0;
|
|
16812
16838
|
}
|
|
16813
16839
|
const f2 = () => {
|
|
16814
|
-
var Ce, Pe, Ze, ot, vt, _t, gt, ht, Qt, Tt, At, fn,
|
|
16815
|
-
const { context: e, setContext: t, refs: n } = lt(st), o = Me(null), r = Me(null), l =
|
|
16840
|
+
var Ce, Pe, Ze, ot, vt, _t, gt, ht, Qt, Tt, At, fn, Gn, Un, tn, Go, dl, fl, Za;
|
|
16841
|
+
const { context: e, setContext: t, refs: n } = lt(st), o = Me(null), r = Me(null), l = is(e.luckysheetCellUpdate), c = is(e.currentSheetId), [s, a] = Ie(!1), [d, u] = Ie(!1), [f, p] = Ie(""), [m, h] = Ie(""), [g, w] = Ie(!1), b = Me(null), [y, C] = Ie({ left: 0, top: 0 }), v = (Ce = e.luckysheet_select_save) == null ? void 0 : Ce[0], [k, S] = Ie(
|
|
16816
16842
|
{}
|
|
16817
16843
|
), [T, R] = Ie(0), [A, q] = Ie(!1), se = localStorage.getItem("formulaMore") === "true", [D, j] = Ie(!se), [_, M] = Ie(!1), Z = Me(null), [$, V] = Ie(0), [L, H] = Ie(!1), F = v == null ? void 0 : v.row_focus, I = v == null ? void 0 : v.column_focus, G = !W.isEmpty(e.luckysheetCellUpdate) && v ? `${e.currentSheetId}:${v.row_focus}:${v.column_focus}` : null, Q = G && ((Pe = Z.current) == null ? void 0 : Pe.cellKey) === G ? Z.current.top : null, K = Me(!1), E = Me(null), U = Me(null), {
|
|
16818
16844
|
preTextRef: ne,
|
|
@@ -16879,7 +16905,7 @@ const f2 = () => {
|
|
|
16879
16905
|
k.row_focus,
|
|
16880
16906
|
k.column_focus
|
|
16881
16907
|
);
|
|
16882
|
-
const $e = (ge = Fe == null ? void 0 : Fe[k.row_focus]) == null ? void 0 : ge[k.column_focus], pt =
|
|
16908
|
+
const $e = (ge = Fe == null ? void 0 : Fe[k.row_focus]) == null ? void 0 : ge[k.column_focus], pt = Ql(
|
|
16883
16909
|
e,
|
|
16884
16910
|
k.row_focus,
|
|
16885
16911
|
k.column_focus
|
|
@@ -16924,10 +16950,10 @@ const f2 = () => {
|
|
|
16924
16950
|
}
|
|
16925
16951
|
const wt = Le(e), at = (ge = wt == null ? void 0 : wt[F]) == null ? void 0 : ge[I], Bt = at != null && at.f && typeof (at == null ? void 0 : at._formulaEditHtml) == "string" ? at._formulaEditHtml : "", Ct = (Be = (Fe = (De = at == null ? void 0 : at.ct) == null ? void 0 : De.s) == null ? void 0 : Fe[0]) == null ? void 0 : Be.v, xt = !!(at != null && at.f) && typeof Ct == "string" && /[\r\n]/.test(Ct), Lt = typeof Bt == "string" && Bt.length > 0 && !/<br\s*\/?>/i.test(Bt), Yt = xt && Lt, Ke = (($e = at == null ? void 0 : at.ct) == null ? void 0 : $e.t) === "inlineStr" && Array.isArray(at.ct.s) && at.ct.s.some(
|
|
16926
16952
|
(Zt) => {
|
|
16927
|
-
var nn,
|
|
16928
|
-
return !!((nn = Zt == null ? void 0 : Zt.link) != null && nn.linkType) && !!((
|
|
16953
|
+
var nn, Xn;
|
|
16954
|
+
return !!((nn = Zt == null ? void 0 : Zt.link) != null && nn.linkType) && !!((Xn = Zt == null ? void 0 : Zt.link) != null && Xn.linkAddress);
|
|
16929
16955
|
}
|
|
16930
|
-
), Xe =
|
|
16956
|
+
), Xe = Ql(e, F, I), Ye = n.globalCache.overwriteCell;
|
|
16931
16957
|
let et = "";
|
|
16932
16958
|
at && !Ye && (no(at) ? et = f1(F, I, wt) : at.f ? (et = Wt(F, I, wt, "f"), t((Zt) => {
|
|
16933
16959
|
qt(Zt, et);
|
|
@@ -16947,7 +16973,7 @@ const f2 = () => {
|
|
|
16947
16973
|
n.globalCache.ignoreWriteCell = !1, (no(at) && Ke || cn) && Fc(o.current), o.current && q(
|
|
16948
16974
|
o.current.innerText.trim().startsWith("=")
|
|
16949
16975
|
), tt && !n.globalCache.doNotFocus && setTimeout(() => {
|
|
16950
|
-
(cn || Ke) && u2(o.current) ||
|
|
16976
|
+
(cn || Ke) && u2(o.current) || ws(o.current);
|
|
16951
16977
|
}), delete n.globalCache.doNotFocus;
|
|
16952
16978
|
}
|
|
16953
16979
|
}, [
|
|
@@ -17159,7 +17185,7 @@ const f2 = () => {
|
|
|
17159
17185
|
(ge) => {
|
|
17160
17186
|
var at, Bt, Ct, xt, Lt, Yt;
|
|
17161
17187
|
const De = () => {
|
|
17162
|
-
var nn,
|
|
17188
|
+
var nn, Xn, xr, Sr;
|
|
17163
17189
|
const Ke = o.current;
|
|
17164
17190
|
if (!Ke) return !1;
|
|
17165
17191
|
const Xe = window.getSelection();
|
|
@@ -17176,7 +17202,7 @@ const f2 = () => {
|
|
|
17176
17202
|
};
|
|
17177
17203
|
if (Ye.startContainer.nodeType === Node.ELEMENT_NODE) {
|
|
17178
17204
|
const Ao = Ye.startContainer, Xo = Ye.startOffset - 1, ao = Xo >= 0 ? Ao.childNodes[Xo] : null;
|
|
17179
|
-
if (ao instanceof HTMLElement && ao.tagName === "SPAN" && ((nn = ao.dataset) != null && nn.linkType) && ((
|
|
17205
|
+
if (ao instanceof HTMLElement && ao.tagName === "SPAN" && ((nn = ao.dataset) != null && nn.linkType) && ((Xn = ao.dataset) != null && Xn.linkAddress))
|
|
17180
17206
|
return et(ao), !0;
|
|
17181
17207
|
}
|
|
17182
17208
|
let tt = Ye.startContainer instanceof HTMLElement ? Ye.startContainer : Ye.startContainer.parentElement;
|
|
@@ -17207,12 +17233,12 @@ const f2 = () => {
|
|
|
17207
17233
|
const Ao = document.createDocumentFragment();
|
|
17208
17234
|
Ao.appendChild(et), Ao.appendChild(tt), Ye.insertNode(Ao);
|
|
17209
17235
|
}
|
|
17210
|
-
const
|
|
17211
|
-
return
|
|
17236
|
+
const Xn = document.createRange();
|
|
17237
|
+
return Xn.setStart(cn, 1), Xn.collapse(!0), Xe.removeAllRanges(), Xe.addRange(Xn), !0;
|
|
17212
17238
|
};
|
|
17213
17239
|
!ge.metaKey && !ge.ctrlKey && !ge.altKey && ge.key.length === 1 && De(), t((Ke) => {
|
|
17214
17240
|
Sn(Ke, "cell");
|
|
17215
|
-
}), r.current = new KeyboardEvent(ge.type, ge.nativeEvent),
|
|
17241
|
+
}), r.current = new KeyboardEvent(ge.type, ge.nativeEvent), as(ge.nativeEvent) || P(), !ge.metaKey && !ge.ctrlKey && !ge.altKey && (ge.key.length === 1 || ge.key === "Backspace" || ge.key === "Delete" || ge.key === "Enter" || ge.key === "Tab") && requestAnimationFrame(() => {
|
|
17216
17242
|
requestAnimationFrame(() => {
|
|
17217
17243
|
Ut(e) === "cell" && ee(
|
|
17218
17244
|
() => pn(o.current)
|
|
@@ -17491,7 +17517,7 @@ const f2 = () => {
|
|
|
17491
17517
|
let wt = !1;
|
|
17492
17518
|
const at = d2(Fe);
|
|
17493
17519
|
for (const xt of qe) {
|
|
17494
|
-
if (!
|
|
17520
|
+
if (!Rl(Fe, xt.start, xt.end)) continue;
|
|
17495
17521
|
const Lt = window.getSelection();
|
|
17496
17522
|
if (!Lt || Lt.rangeCount === 0) continue;
|
|
17497
17523
|
const Yt = Lt.getRangeAt(0), Xe = (Lt.toString() ?? "").replace(/\r\n/g, `
|
|
@@ -17521,7 +17547,7 @@ const f2 = () => {
|
|
|
17521
17547
|
}
|
|
17522
17548
|
if (Fc(Fe), !pt || wt)
|
|
17523
17549
|
return;
|
|
17524
|
-
const Bt = at ?? $e.length, Ct = () =>
|
|
17550
|
+
const Bt = at ?? $e.length, Ct = () => Rl(Fe, Bt, Bt);
|
|
17525
17551
|
Ct(), mt && requestAnimationFrame(Ct);
|
|
17526
17552
|
},
|
|
17527
17553
|
[]
|
|
@@ -17556,7 +17582,7 @@ const f2 = () => {
|
|
|
17556
17582
|
);
|
|
17557
17583
|
return;
|
|
17558
17584
|
}
|
|
17559
|
-
if (
|
|
17585
|
+
if (as(Be))
|
|
17560
17586
|
return;
|
|
17561
17587
|
const $e = Be.keyCode;
|
|
17562
17588
|
$e && ((!($e >= 112 && $e <= 123 || $e <= 46 || $e === 144 || $e === 108 || Be.ctrlKey || Be.altKey || Be.shiftKey && ($e === 37 || $e === 38 || $e === 39 || $e === 40)) || $e === 8 || $e === 32 || $e === 46 || Be.ctrlKey && $e === 86) && t(
|
|
@@ -17762,22 +17788,22 @@ const f2 = () => {
|
|
|
17762
17788
|
if (z.current === $e)
|
|
17763
17789
|
return;
|
|
17764
17790
|
const pt = o.current;
|
|
17765
|
-
if (
|
|
17791
|
+
if (Rl(pt, Fe, Be)) {
|
|
17766
17792
|
z.current = $e;
|
|
17767
17793
|
return;
|
|
17768
17794
|
}
|
|
17769
17795
|
requestAnimationFrame(() => {
|
|
17770
17796
|
if (z.current === $e) return;
|
|
17771
17797
|
const rt = o.current;
|
|
17772
|
-
rt &&
|
|
17798
|
+
rt && Rl(rt, Fe, Be) && (z.current = $e);
|
|
17773
17799
|
});
|
|
17774
17800
|
}, [
|
|
17775
|
-
(
|
|
17801
|
+
(Gn = e.linkCard) == null ? void 0 : Gn.isEditing,
|
|
17776
17802
|
(Un = e.linkCard) == null ? void 0 : Un.applyToSelection,
|
|
17777
17803
|
(tn = e.linkCard) == null ? void 0 : tn.selectionOffsets,
|
|
17778
17804
|
(Go = e.linkCard) == null ? void 0 : Go.r,
|
|
17779
|
-
(
|
|
17780
|
-
(
|
|
17805
|
+
(dl = e.linkCard) == null ? void 0 : dl.c,
|
|
17806
|
+
(fl = e.linkCard) == null ? void 0 : fl.editingLinkIndex,
|
|
17781
17807
|
e.luckysheetCellUpdate
|
|
17782
17808
|
]), Jt(() => {
|
|
17783
17809
|
if (e.luckysheetCellUpdate.length === 0) {
|
|
@@ -17917,7 +17943,7 @@ const f2 = () => {
|
|
|
17917
17943
|
ge && t((De) => {
|
|
17918
17944
|
var $e;
|
|
17919
17945
|
if (De.formulaCache.rangeSelectionActive !== !0) return;
|
|
17920
|
-
const Fe =
|
|
17946
|
+
const Fe = Cs(ge) !== null, Be = bs(ge);
|
|
17921
17947
|
(Fe || !Be) && (ar(De), ($e = ge.innerText) != null && $e.trim().startsWith("=") && (qt(De, ge.innerHTML), Ot(De, ge)));
|
|
17922
17948
|
});
|
|
17923
17949
|
},
|
|
@@ -18717,7 +18743,7 @@ const y2 = ({ getContainer: e }) => {
|
|
|
18717
18743
|
className: "flex flex-row gap-2 items-center",
|
|
18718
18744
|
children: [
|
|
18719
18745
|
/* @__PURE__ */ i.jsx(
|
|
18720
|
-
|
|
18746
|
+
to,
|
|
18721
18747
|
{
|
|
18722
18748
|
className: "border-2",
|
|
18723
18749
|
checked: _.caseCheck,
|
|
@@ -18735,7 +18761,7 @@ const y2 = ({ getContainer: e }) => {
|
|
|
18735
18761
|
className: "flex flex-row gap-2 items-center",
|
|
18736
18762
|
children: [
|
|
18737
18763
|
/* @__PURE__ */ i.jsx(
|
|
18738
|
-
|
|
18764
|
+
to,
|
|
18739
18765
|
{
|
|
18740
18766
|
className: "border-2",
|
|
18741
18767
|
checked: _.wordCheck,
|
|
@@ -18748,7 +18774,7 @@ const y2 = ({ getContainer: e }) => {
|
|
|
18748
18774
|
),
|
|
18749
18775
|
/* @__PURE__ */ i.jsxs("div", { id: "regCheck", className: "flex flex-row gap-2 items-center", children: [
|
|
18750
18776
|
/* @__PURE__ */ i.jsx(
|
|
18751
|
-
|
|
18777
|
+
to,
|
|
18752
18778
|
{
|
|
18753
18779
|
className: "border-2",
|
|
18754
18780
|
checked: _.regCheck,
|
|
@@ -18764,7 +18790,7 @@ const y2 = ({ getContainer: e }) => {
|
|
|
18764
18790
|
className: "flex flex-row gap-2 items-center",
|
|
18765
18791
|
children: [
|
|
18766
18792
|
/* @__PURE__ */ i.jsx(
|
|
18767
|
-
|
|
18793
|
+
to,
|
|
18768
18794
|
{
|
|
18769
18795
|
className: "border-2",
|
|
18770
18796
|
checked: _.formulaCheck,
|
|
@@ -18782,7 +18808,7 @@ const y2 = ({ getContainer: e }) => {
|
|
|
18782
18808
|
className: "flex flex-row gap-2 items-center",
|
|
18783
18809
|
children: [
|
|
18784
18810
|
/* @__PURE__ */ i.jsx(
|
|
18785
|
-
|
|
18811
|
+
to,
|
|
18786
18812
|
{
|
|
18787
18813
|
className: "border-2",
|
|
18788
18814
|
checked: _.linkCheck,
|
|
@@ -19077,18 +19103,18 @@ function Uc(e, t) {
|
|
|
19077
19103
|
function Ua(e) {
|
|
19078
19104
|
return String(e ?? "").trim().replace(/^mailto:/i, "");
|
|
19079
19105
|
}
|
|
19080
|
-
function
|
|
19106
|
+
function Hl(e) {
|
|
19081
19107
|
const t = Ua(e);
|
|
19082
19108
|
return t ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t) : !1;
|
|
19083
19109
|
}
|
|
19084
19110
|
function Kf(e, t, n) {
|
|
19085
|
-
return e === "webpage" &&
|
|
19111
|
+
return e === "webpage" && Hl(t) ? `Send to: ${Ua(t)}` : t.trim() || n;
|
|
19086
19112
|
}
|
|
19087
19113
|
function qf(e) {
|
|
19088
19114
|
const t = String(e ?? "").trim();
|
|
19089
19115
|
return !t || /^mailto:/i.test(t) || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t) ? null : /^https?:\/\//i.test(t) ? t : `https://${t}`;
|
|
19090
19116
|
}
|
|
19091
|
-
function
|
|
19117
|
+
function cs(e) {
|
|
19092
19118
|
const t = String(e ?? "").trim(), n = qf(e);
|
|
19093
19119
|
if (!n)
|
|
19094
19120
|
return {
|
|
@@ -19115,8 +19141,8 @@ async function w2(e) {
|
|
|
19115
19141
|
var l;
|
|
19116
19142
|
const t = qf(e);
|
|
19117
19143
|
if (!t)
|
|
19118
|
-
return
|
|
19119
|
-
const n =
|
|
19144
|
+
return cs(e);
|
|
19145
|
+
const n = cs(e);
|
|
19120
19146
|
let o = "";
|
|
19121
19147
|
try {
|
|
19122
19148
|
o = new URL(t).hostname;
|
|
@@ -19208,7 +19234,7 @@ const C2 = ({
|
|
|
19208
19234
|
if (a) return;
|
|
19209
19235
|
let I = !1;
|
|
19210
19236
|
const G = M.filter(
|
|
19211
|
-
(Q) => Q.linkType === "webpage" && !
|
|
19237
|
+
(Q) => Q.linkType === "webpage" && !Hl(Q.linkAddress)
|
|
19212
19238
|
);
|
|
19213
19239
|
if (G.length !== 0)
|
|
19214
19240
|
return G.forEach((Q) => {
|
|
@@ -19350,7 +19376,7 @@ const C2 = ({
|
|
|
19350
19376
|
const I = M.length > 1, G = I ? void 0 : {
|
|
19351
19377
|
linkType: T,
|
|
19352
19378
|
linkAddress: l || k
|
|
19353
|
-
}, Q = G ? A[$(G.linkType, G.linkAddress)] ||
|
|
19379
|
+
}, Q = G ? A[$(G.linkType, G.linkAddress)] || cs(G.linkAddress) : void 0;
|
|
19354
19380
|
return /* @__PURE__ */ i.jsx(
|
|
19355
19381
|
"div",
|
|
19356
19382
|
{
|
|
@@ -19387,7 +19413,7 @@ const C2 = ({
|
|
|
19387
19413
|
tabIndex: 0,
|
|
19388
19414
|
"data-testid": `link-card-info-open-${E}`,
|
|
19389
19415
|
children: (() => {
|
|
19390
|
-
const U = A[$(K.linkType, K.linkAddress)] ||
|
|
19416
|
+
const U = A[$(K.linkType, K.linkAddress)] || cs(K.linkAddress), ne = Hl(K.linkAddress), N = K.linkType === "sheet";
|
|
19391
19417
|
return /* @__PURE__ */ i.jsxs(
|
|
19392
19418
|
"div",
|
|
19393
19419
|
{
|
|
@@ -19505,7 +19531,7 @@ const C2 = ({
|
|
|
19505
19531
|
tabIndex: 0,
|
|
19506
19532
|
"data-testid": "link-card-info-open",
|
|
19507
19533
|
children: (() => {
|
|
19508
|
-
const E =
|
|
19534
|
+
const E = Hl(l || k), U = T === "sheet";
|
|
19509
19535
|
return /* @__PURE__ */ i.jsxs(
|
|
19510
19536
|
"div",
|
|
19511
19537
|
{
|
|
@@ -20225,7 +20251,7 @@ const C2 = ({
|
|
|
20225
20251
|
} catch {
|
|
20226
20252
|
}
|
|
20227
20253
|
}
|
|
20228
|
-
}, v = l.map((j) => j.trim()).filter(Boolean).join(","), k =
|
|
20254
|
+
}, v = l.map((j) => j.trim()).filter(Boolean).join(","), k = Zl(
|
|
20229
20255
|
e,
|
|
20230
20256
|
v
|
|
20231
20257
|
), S = v !== "" && !k;
|
|
@@ -20549,7 +20575,7 @@ const j2 = () => {
|
|
|
20549
20575
|
style: { height: "28px" },
|
|
20550
20576
|
onClick: () => {
|
|
20551
20577
|
var g;
|
|
20552
|
-
const h =
|
|
20578
|
+
const h = Kn(e);
|
|
20553
20579
|
(g = window == null ? void 0 : window.dataVerificationClick) == null || g.call(window, h), t((w) => {
|
|
20554
20580
|
w.dataVerificationDropDownList = !1;
|
|
20555
20581
|
});
|
|
@@ -20942,7 +20968,7 @@ const M2 = () => {
|
|
|
20942
20968
|
var Y;
|
|
20943
20969
|
const z = B1(N, P, ee, X, x);
|
|
20944
20970
|
if (z == null) return;
|
|
20945
|
-
if (
|
|
20971
|
+
if (Ql(N, z.r, z.c) == null)
|
|
20946
20972
|
T(B, z.r, z.c, !1);
|
|
20947
20973
|
else {
|
|
20948
20974
|
if ((Y = B.linkCard) != null && Y.mouseEnter) return;
|
|
@@ -21032,7 +21058,7 @@ const M2 = () => {
|
|
|
21032
21058
|
id: e.currentSheetId
|
|
21033
21059
|
};
|
|
21034
21060
|
t((ie) => {
|
|
21035
|
-
|
|
21061
|
+
Zn(ie, ue, !1);
|
|
21036
21062
|
}, { insertRowColOp: ue });
|
|
21037
21063
|
} else if (oe) {
|
|
21038
21064
|
const J = (re = o.workbookContainer.current) == null ? void 0 : re.getBoundingClientRect(), ue = oe.left_move ?? oe.left ?? 0, ie = oe.width_move ?? oe.width ?? 0, te = Math.max(0, ue + ie + 55), he = (oe.top_move ?? oe.top ?? 0) + 22;
|
|
@@ -21157,7 +21183,7 @@ const M2 = () => {
|
|
|
21157
21183
|
t(
|
|
21158
21184
|
(X) => {
|
|
21159
21185
|
try {
|
|
21160
|
-
|
|
21186
|
+
Zn(X, P, !1);
|
|
21161
21187
|
} catch (x) {
|
|
21162
21188
|
x.message === "maxExceeded" && h(l.rowOverLimit);
|
|
21163
21189
|
}
|
|
@@ -22861,7 +22887,7 @@ const Y2 = () => {
|
|
|
22861
22887
|
),
|
|
22862
22888
|
/* @__PURE__ */ i.jsxs("div", { className: "mt-4 flex items-center", children: [
|
|
22863
22889
|
/* @__PURE__ */ i.jsx(
|
|
22864
|
-
|
|
22890
|
+
to,
|
|
22865
22891
|
{
|
|
22866
22892
|
className: "border-2",
|
|
22867
22893
|
checked: e.dataVerification.dataRegulation.type2 === "true",
|
|
@@ -22999,7 +23025,7 @@ const Y2 = () => {
|
|
|
22999
23025
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
23000
23026
|
["prohibitInput", "hintShow"].map((M) => /* @__PURE__ */ i.jsxs("div", { className: "flex items-center", children: [
|
|
23001
23027
|
/* @__PURE__ */ i.jsx(
|
|
23002
|
-
|
|
23028
|
+
to,
|
|
23003
23029
|
{
|
|
23004
23030
|
className: "border-2",
|
|
23005
23031
|
checked: e.dataVerification.dataRegulation[M],
|
|
@@ -23421,12 +23447,12 @@ const Kc = [
|
|
|
23421
23447
|
"dateBefore",
|
|
23422
23448
|
"dateAfter",
|
|
23423
23449
|
"occurrenceDate"
|
|
23424
|
-
]), ii = /* @__PURE__ */ new Set(["dateIs", "dateBefore"]), Gc = /* @__PURE__ */ new Set(["between", "notBetween"]),
|
|
23450
|
+
]), ii = /* @__PURE__ */ new Set(["dateIs", "dateBefore"]), Gc = /* @__PURE__ */ new Set(["between", "notBetween"]), Pl = "#177E23", zl = "#DDFBDF";
|
|
23425
23451
|
function Xc(e) {
|
|
23426
23452
|
const t = (e == null ? void 0 : e.format) ?? {};
|
|
23427
23453
|
return {
|
|
23428
|
-
textColor: t.textColor ||
|
|
23429
|
-
cellColor: t.cellColor ||
|
|
23454
|
+
textColor: t.textColor || Pl,
|
|
23455
|
+
cellColor: t.cellColor || zl,
|
|
23430
23456
|
bold: !!t.bold,
|
|
23431
23457
|
italic: !!t.italic,
|
|
23432
23458
|
underline: !!t.underline,
|
|
@@ -23469,8 +23495,8 @@ const Jf = ({ context: e }) => {
|
|
|
23469
23495
|
const [t, n] = Ie("notEmpty"), [o, r] = Ie(!1), l = Me(!1), c = Me(!1), [s, a] = Ie(null), d = Me(null), u = Me(!0), f = Me(!1), [p, m] = Ie(
|
|
23470
23496
|
null
|
|
23471
23497
|
), [h, g] = Ie(null), [w, b] = Ie([]), [y, C] = Ie(null), [v, k] = Ie(null), [S, T] = Ie(null), { setContext: R } = lt(st), { hideDialog: A } = Vn(), { conditionformat: q, button: se, protection: D, generalDialog: j, toolbar: _ } = dt(e), [M, Z] = Ie({
|
|
23472
|
-
textColor:
|
|
23473
|
-
cellColor:
|
|
23498
|
+
textColor: Pl,
|
|
23499
|
+
cellColor: zl
|
|
23474
23500
|
}), [$, V] = Ie(!1), [L, H] = Ie(!1), [F, I] = Ie(!1), [G, Q] = Ie(!1), K = it(() => Zc(e), [e]);
|
|
23475
23501
|
Ne(() => {
|
|
23476
23502
|
var ke, me;
|
|
@@ -23646,8 +23672,8 @@ const Jf = ({ context: e }) => {
|
|
|
23646
23672
|
projectValue: "10"
|
|
23647
23673
|
};
|
|
23648
23674
|
}), V(!1), H(!1), I(!1), Q(!1), Z({
|
|
23649
|
-
textColor:
|
|
23650
|
-
cellColor:
|
|
23675
|
+
textColor: Pl,
|
|
23676
|
+
cellColor: zl
|
|
23651
23677
|
}), E(), a(null), R((pe) => {
|
|
23652
23678
|
var we, ke;
|
|
23653
23679
|
const be = Te(pe, pe.currentSheetId);
|
|
@@ -23696,10 +23722,10 @@ const Jf = ({ context: e }) => {
|
|
|
23696
23722
|
}, [t]);
|
|
23697
23723
|
const B = (te) => te === "occurrenceDate" ? q.dateIs ?? te : q[te] ?? te, P = it(() => {
|
|
23698
23724
|
const te = (p ?? "").trim();
|
|
23699
|
-
return te === "" ? !1 : !
|
|
23725
|
+
return te === "" ? !1 : !Zl(e, te);
|
|
23700
23726
|
}, [p, e]), ee = () => {
|
|
23701
23727
|
const te = (p ?? "").trim();
|
|
23702
|
-
return te === "" || !
|
|
23728
|
+
return te === "" || !Zl(e, te) ? !0 : si.has(t) ? !1 : Gc.has(t) ? !String(e.conditionRules.betweenValue.value1 ?? "").trim() || !String(e.conditionRules.betweenValue.value2 ?? "").trim() : qc.has(t) ? ii.has(t) || t === "dateAfter" ? e.conditionRules.datePreset === "exact" ? C1(
|
|
23703
23729
|
String(e.conditionRules.dateValue ?? "").trim()
|
|
23704
23730
|
) == null : !String(e.conditionRules.datePreset ?? "").trim() : !String(e.conditionRules.dateValue ?? "").trim() : !(Array.isArray(h) ? String(h[0] ?? "") : String(
|
|
23705
23731
|
h ?? e.conditionRules.rulesValue ?? ""
|
|
@@ -23837,7 +23863,7 @@ const Jf = ({ context: e }) => {
|
|
|
23837
23863
|
(si.has(te) || si.has(t)) && (R((he) => {
|
|
23838
23864
|
he.conditionRules.rulesValue = "";
|
|
23839
23865
|
}), g(null)), (te === "dateIs" || te === "dateBefore" || te === "dateAfter") && R((he) => {
|
|
23840
|
-
he.conditionRules.datePreset = "today", he.conditionRules.dateFormat = Fo, he.conditionRules.dateValue =
|
|
23866
|
+
he.conditionRules.datePreset = "today", he.conditionRules.dateFormat = Fo, he.conditionRules.dateValue = Dl("today");
|
|
23841
23867
|
}), n(te);
|
|
23842
23868
|
},
|
|
23843
23869
|
children: [
|
|
@@ -23928,7 +23954,7 @@ const Jf = ({ context: e }) => {
|
|
|
23928
23954
|
value: e.conditionRules.datePreset || "today",
|
|
23929
23955
|
onValueChange: (te) => {
|
|
23930
23956
|
R((he) => {
|
|
23931
|
-
he.conditionRules.datePreset = te, he.conditionRules.dateFormat = Fo, te === "exact" ? he.conditionRules.dateValue = "" : he.conditionRules.dateValue =
|
|
23957
|
+
he.conditionRules.datePreset = te, he.conditionRules.dateFormat = Fo, te === "exact" ? he.conditionRules.dateValue = "" : he.conditionRules.dateValue = Dl(te);
|
|
23932
23958
|
});
|
|
23933
23959
|
},
|
|
23934
23960
|
children: [
|
|
@@ -23973,7 +23999,7 @@ const Jf = ({ context: e }) => {
|
|
|
23973
23999
|
) && e.conditionRules.datePreset || "today",
|
|
23974
24000
|
onValueChange: (te) => {
|
|
23975
24001
|
R((he) => {
|
|
23976
|
-
he.conditionRules.datePreset = te, he.conditionRules.dateFormat = Fo, te === "exact" ? he.conditionRules.dateValue = "" : he.conditionRules.dateValue =
|
|
24002
|
+
he.conditionRules.datePreset = te, he.conditionRules.dateFormat = Fo, te === "exact" ? he.conditionRules.dateValue = "" : he.conditionRules.dateValue = Dl(te);
|
|
23977
24003
|
});
|
|
23978
24004
|
},
|
|
23979
24005
|
children: [
|
|
@@ -24256,7 +24282,7 @@ const Jf = ({ context: e }) => {
|
|
|
24256
24282
|
onCustomPick: (he) => {
|
|
24257
24283
|
Z(
|
|
24258
24284
|
gn((pe) => {
|
|
24259
|
-
pe.textColor = he ??
|
|
24285
|
+
pe.textColor = he ?? Pl;
|
|
24260
24286
|
})
|
|
24261
24287
|
), te(!1);
|
|
24262
24288
|
},
|
|
@@ -24299,7 +24325,7 @@ const Jf = ({ context: e }) => {
|
|
|
24299
24325
|
onCustomPick: (he) => {
|
|
24300
24326
|
Z(
|
|
24301
24327
|
gn((pe) => {
|
|
24302
|
-
pe.cellColor = he ??
|
|
24328
|
+
pe.cellColor = he ?? zl;
|
|
24303
24329
|
})
|
|
24304
24330
|
), te(!1);
|
|
24305
24331
|
},
|
|
@@ -24433,7 +24459,7 @@ const Jf = ({ context: e }) => {
|
|
|
24433
24459
|
cellColor: be.cellColor
|
|
24434
24460
|
}), V(be.bold), H(be.italic), I(be.underline), Q(be.strikethrough);
|
|
24435
24461
|
const we = (ke = y[te].cellrange) == null ? void 0 : ke.map((me) => {
|
|
24436
|
-
const le =
|
|
24462
|
+
const le = Sl(me.column[0] + 1), ae = Sl(me.column[1] + 1), ce = me.row[0] + 1, de = me.row[1] + 1;
|
|
24437
24463
|
return `${le}${ce}:${ae}${de}`;
|
|
24438
24464
|
}).join(", ");
|
|
24439
24465
|
m(we), g(
|
|
@@ -24540,7 +24566,7 @@ const Jf = ({ context: e }) => {
|
|
|
24540
24566
|
className: "fortune-condition-rules__para condition-list-range",
|
|
24541
24567
|
"data-testid": `condition-rules-para-${te}`,
|
|
24542
24568
|
children: (he = y[te].cellrange) == null ? void 0 : he.map((pe) => {
|
|
24543
|
-
const be =
|
|
24569
|
+
const be = Sl(pe.column[0] + 1), we = Sl(pe.column[1] + 1), ke = pe.row[0] + 1, me = pe.row[1] + 1;
|
|
24544
24570
|
return `${be}${ke}:${we}${me}`;
|
|
24545
24571
|
}).join(", ")
|
|
24546
24572
|
}
|
|
@@ -25136,7 +25162,7 @@ const Jf = ({ context: e }) => {
|
|
|
25136
25162
|
for (let q = R.row[0]; q <= R.row[1]; q += 1)
|
|
25137
25163
|
for (let se = R.column[0]; se <= R.column[1]; se += 1) {
|
|
25138
25164
|
const D = (A = v.luckysheetfile[k].data) == null ? void 0 : A[q][se];
|
|
25139
|
-
if (D &&
|
|
25165
|
+
if (D && el(D)) {
|
|
25140
25166
|
const j = v.luckysheetfile[k].data[q][se];
|
|
25141
25167
|
j.ct = { ...j.ct, fa: T, t: "n" }, j.m = dn(T, j.v);
|
|
25142
25168
|
}
|
|
@@ -25252,7 +25278,7 @@ const Jf = ({ context: e }) => {
|
|
|
25252
25278
|
}, [e]), !e) return null;
|
|
25253
25279
|
const u = () => {
|
|
25254
25280
|
const p = l.trim();
|
|
25255
|
-
p &&
|
|
25281
|
+
p && il(p) ? (n(p), c(""), a(!1), t()) : a(!0);
|
|
25256
25282
|
}, f = (p) => {
|
|
25257
25283
|
p.stopPropagation(), p.key === "Enter" ? u() : p.key === "Escape" && t();
|
|
25258
25284
|
};
|
|
@@ -25471,7 +25497,7 @@ async function eh({
|
|
|
25471
25497
|
}
|
|
25472
25498
|
), p.length > 0 && ((m = u == null ? void 0 : u.hooks) != null && m.updateCellYdoc) && u.hooks.updateCellYdoc(p);
|
|
25473
25499
|
}), t((u) => {
|
|
25474
|
-
|
|
25500
|
+
Gl(u, u.currentSheetId);
|
|
25475
25501
|
});
|
|
25476
25502
|
}
|
|
25477
25503
|
Object.fromEntries(
|
|
@@ -25583,7 +25609,7 @@ const ou = [
|
|
|
25583
25609
|
if (h == null || g == null) return null;
|
|
25584
25610
|
const w = (v = m[h]) == null ? void 0 : v[g];
|
|
25585
25611
|
if (!w) return null;
|
|
25586
|
-
const b =
|
|
25612
|
+
const b = eo(w, "ct");
|
|
25587
25613
|
if (!(b != null && b.fa)) return null;
|
|
25588
25614
|
const y = ou.find(
|
|
25589
25615
|
(k) => b.fa.includes(k.value)
|
|
@@ -26193,7 +26219,7 @@ const yp = () => {
|
|
|
26193
26219
|
let p = t;
|
|
26194
26220
|
const m = "currency";
|
|
26195
26221
|
if (e) {
|
|
26196
|
-
const C =
|
|
26222
|
+
const C = eo(e, "ct");
|
|
26197
26223
|
if (C != null && C.fa) {
|
|
26198
26224
|
const k = [...[
|
|
26199
26225
|
...th,
|
|
@@ -26536,7 +26562,7 @@ const yp = () => {
|
|
|
26536
26562
|
}, []);
|
|
26537
26563
|
const [oe, J] = Ie(!1), [ue, ie] = Ie(!1), te = je((le) => {
|
|
26538
26564
|
var ce;
|
|
26539
|
-
!
|
|
26565
|
+
!Kn(r) && !le && l((de) => {
|
|
26540
26566
|
Ln(de, [{ row: [0, 0], column: [0, 0] }], {
|
|
26541
26567
|
id: r.currentSheetId
|
|
26542
26568
|
});
|
|
@@ -26545,7 +26571,7 @@ const yp = () => {
|
|
|
26545
26571
|
}, 100);
|
|
26546
26572
|
}, [r, l]), he = je((le) => {
|
|
26547
26573
|
var ce;
|
|
26548
|
-
!
|
|
26574
|
+
!Kn(r) && !le && l((de) => {
|
|
26549
26575
|
Ln(de, [{ row: [0, 0], column: [0, 0] }], {
|
|
26550
26576
|
id: r.currentSheetId
|
|
26551
26577
|
});
|
|
@@ -26556,7 +26582,7 @@ const yp = () => {
|
|
|
26556
26582
|
Ne(() => {
|
|
26557
26583
|
window.dataVerificationClick = te, window.conditionalFormatClick = he;
|
|
26558
26584
|
}, [te, he]), Ne(() => {
|
|
26559
|
-
j != null && (c.globalCache.recentTextColor =
|
|
26585
|
+
j != null && (c.globalCache.recentTextColor = eo(j, "fc"), c.globalCache.recentBackgroundColor = eo(j, "bg"));
|
|
26560
26586
|
}, [j, c.globalCache]);
|
|
26561
26587
|
const pe = je(
|
|
26562
26588
|
(le, ae) => {
|
|
@@ -26565,7 +26591,7 @@ const yp = () => {
|
|
|
26565
26591
|
if (le === "|")
|
|
26566
26592
|
return /* @__PURE__ */ i.jsx(Jc, {}, ae);
|
|
26567
26593
|
if (["font-color", "background"].includes(le)) {
|
|
26568
|
-
const ve = j != null ?
|
|
26594
|
+
const ve = j != null ? eo(j, "fc") : "#000000", Re = j != null ? eo(j, "bg") : void 0, Ae = (Oe) => {
|
|
26569
26595
|
l(
|
|
26570
26596
|
(ze) => (le === "font-color" ? J1 : ed)(
|
|
26571
26597
|
ze,
|
|
@@ -26618,7 +26644,7 @@ const yp = () => {
|
|
|
26618
26644
|
if (le === "format") {
|
|
26619
26645
|
let ve = x[0].text;
|
|
26620
26646
|
if (j) {
|
|
26621
|
-
const Re =
|
|
26647
|
+
const Re = eo(j, "ct"), Ae = W.find(x, (Oe) => Oe.value === (Re == null ? void 0 : Re.fa));
|
|
26622
26648
|
if ((Re == null ? void 0 : Re.fa) != null) {
|
|
26623
26649
|
const Oe = /[hH]:/.test(Re.fa);
|
|
26624
26650
|
Re.t === "d" ? ve = Oe ? "Date time" : "Date" : Re.t === "g" && Re.fa === "General" ? ve = x[0].text : Ae != null ? ve = Ae.text : Re.fa.includes("%") ? ve = Re.fa === "0%" ? x[0].text : "Percent" : Xi(Re.fa) ? ve = Oe ? "Date time" : "Date" : g1(
|
|
@@ -26727,7 +26753,7 @@ const yp = () => {
|
|
|
26727
26753
|
return /* @__PURE__ */ i.jsx(
|
|
26728
26754
|
rn,
|
|
26729
26755
|
{
|
|
26730
|
-
text: j ?
|
|
26756
|
+
text: j ? eo(j, "fs", r.defaultFontSize) : r.defaultFontSize.toString(),
|
|
26731
26757
|
tooltip: ce,
|
|
26732
26758
|
showArrow: !1,
|
|
26733
26759
|
children: (ve) => /* @__PURE__ */ i.jsx(
|
|
@@ -27384,7 +27410,7 @@ const yp = () => {
|
|
|
27384
27410
|
text: "边框设置",
|
|
27385
27411
|
showArrow: !1,
|
|
27386
27412
|
onClick: () => l((Re) => {
|
|
27387
|
-
|
|
27413
|
+
es(Re, "border-all", z, re);
|
|
27388
27414
|
}),
|
|
27389
27415
|
children: (Re) => /* @__PURE__ */ i.jsx("div", { className: "fortune-toolbar-select fortune-border-grid", children: ve.map(({ value: Ae, icon: Oe }) => /* @__PURE__ */ i.jsx(
|
|
27390
27416
|
"div",
|
|
@@ -27392,7 +27418,7 @@ const yp = () => {
|
|
|
27392
27418
|
className: "fortune-border-grid-item",
|
|
27393
27419
|
onClick: () => {
|
|
27394
27420
|
l((ze) => {
|
|
27395
|
-
|
|
27421
|
+
es(ze, Ae, z, re);
|
|
27396
27422
|
}), Re(!1);
|
|
27397
27423
|
},
|
|
27398
27424
|
children: /* @__PURE__ */ i.jsx(We, { name: Oe, width: 16, height: 16 })
|
|
@@ -27919,7 +27945,7 @@ const yp = () => {
|
|
|
27919
27945
|
d.fxInput,
|
|
27920
27946
|
a,
|
|
27921
27947
|
"fx"
|
|
27922
|
-
), w = Me(null), [b, y] = Ie(!1), C = (ee = s.luckysheet_select_save) == null ? void 0 : ee[0], v = Me(null), k = !W.isEmpty(s.luckysheetCellUpdate) && C ? `${s.currentSheetId}:${C.row_focus}:${C.column_focus}` : null, S = k && ((X = v.current) == null ? void 0 : X.cellKey) === k ? v.current.top : null, T =
|
|
27948
|
+
), w = Me(null), [b, y] = Ie(!1), C = (ee = s.luckysheet_select_save) == null ? void 0 : ee[0], v = Me(null), k = !W.isEmpty(s.luckysheetCellUpdate) && C ? `${s.currentSheetId}:${C.row_focus}:${C.column_focus}` : null, S = k && ((X = v.current) == null ? void 0 : X.cellKey) === k ? v.current.top : null, T = is(s.luckysheetCellUpdate), R = is(s.currentSheetId), A = Me(""), q = Me(null), se = () => {
|
|
27923
27949
|
localStorage.setItem("formulaMore", String(o)), r(!o);
|
|
27924
27950
|
};
|
|
27925
27951
|
Ne(() => {
|
|
@@ -28102,7 +28128,7 @@ const yp = () => {
|
|
|
28102
28128
|
Sn(we, "fx");
|
|
28103
28129
|
});
|
|
28104
28130
|
const z = or((te = d.fxInput) == null ? void 0 : te.current);
|
|
28105
|
-
c(z), u.current = new KeyboardEvent(x.type, x.nativeEvent),
|
|
28131
|
+
c(z), u.current = new KeyboardEvent(x.type, x.nativeEvent), as(x.nativeEvent) || h(), !x.metaKey && !x.ctrlKey && !x.altKey && (x.key.length === 1 || x.key === "Backspace" || x.key === "Delete" || x.key === "Enter" || x.key === "Tab") && requestAnimationFrame(() => {
|
|
28106
28132
|
requestAnimationFrame(() => {
|
|
28107
28133
|
Ut(s) === "fx" && g(
|
|
28108
28134
|
() => pn(d.fxInput.current)
|
|
@@ -28204,7 +28230,7 @@ const yp = () => {
|
|
|
28204
28230
|
de.row_focus = ke[0], de.column_focus = ke[1], Rt(
|
|
28205
28231
|
we,
|
|
28206
28232
|
we.luckysheet_select_save
|
|
28207
|
-
),
|
|
28233
|
+
), Yl(we, !x.shiftKey);
|
|
28208
28234
|
} else
|
|
28209
28235
|
we.luckysheet_select_save = [
|
|
28210
28236
|
{
|
|
@@ -28290,7 +28316,7 @@ const yp = () => {
|
|
|
28290
28316
|
);
|
|
28291
28317
|
return;
|
|
28292
28318
|
}
|
|
28293
|
-
if (
|
|
28319
|
+
if (as(Y))
|
|
28294
28320
|
return;
|
|
28295
28321
|
const O = Y.keyCode;
|
|
28296
28322
|
O && ((!(O >= 112 && O <= 123 || O <= 46 || O === 144 || O === 108 || Y.ctrlKey || Y.altKey || Y.shiftKey && (O === 37 || O === 38 || O === 39 || O === 40)) || O === 8 || O === 32 || O === 46 || Y.ctrlKey && O === 86) && a(
|
|
@@ -28420,7 +28446,7 @@ const yp = () => {
|
|
|
28420
28446
|
c(z), a((Y) => {
|
|
28421
28447
|
var J;
|
|
28422
28448
|
if (Y.formulaCache.rangeSelectionActive !== !0) return;
|
|
28423
|
-
const O =
|
|
28449
|
+
const O = Cs(x) !== null, oe = bs(x);
|
|
28424
28450
|
(O || !oe) && (ar(Y), (J = x.innerText) != null && J.trim().startsWith("=") && (qt(Y, x.innerHTML), Ot(Y, x)));
|
|
28425
28451
|
});
|
|
28426
28452
|
},
|
|
@@ -28853,7 +28879,7 @@ const lu = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"),
|
|
|
28853
28879
|
luckysheet_select_status: y.luckysheet_select_status,
|
|
28854
28880
|
luckysheet_select_save: y.luckysheet_select_save,
|
|
28855
28881
|
luckysheet_selection_range: y.luckysheet_selection_range
|
|
28856
|
-
}, y.dataVerificationDropDownList = !1, y.currentSheetId = e.id, y.zoomRatio = e.zoomRatio || 1,
|
|
28882
|
+
}, y.dataVerificationDropDownList = !1, y.currentSheetId = e.id, y.zoomRatio = e.zoomRatio || 1, qn(y, r.globalCache), _o(y);
|
|
28857
28883
|
});
|
|
28858
28884
|
},
|
|
28859
28885
|
tabIndex: 0,
|
|
@@ -28984,7 +29010,7 @@ const lu = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"),
|
|
|
28984
29010
|
}, []);
|
|
28985
29011
|
const c = je(
|
|
28986
29012
|
(s) => {
|
|
28987
|
-
s = parseFloat(s.toFixed(1)), !(s >
|
|
29013
|
+
s = parseFloat(s.toFixed(1)), !(s > os || s < rs) && t(
|
|
28988
29014
|
(a) => {
|
|
28989
29015
|
const d = Te(a, a.currentSheetId);
|
|
28990
29016
|
d != null && (a.luckysheetfile[d].zoomRatio = s, a.zoomRatio = s);
|
|
@@ -29805,8 +29831,8 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
29805
29831
|
children: [
|
|
29806
29832
|
/* @__PURE__ */ i.jsxs("div", { className: "flex-col gap-4", children: [
|
|
29807
29833
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
29808
|
-
/* @__PURE__ */ i.jsx(
|
|
29809
|
-
/* @__PURE__ */ i.jsx(
|
|
29834
|
+
/* @__PURE__ */ i.jsx(Kl, { id: "r1", size: "lg", value: "number" }),
|
|
29835
|
+
/* @__PURE__ */ i.jsx(ql, { className: "text-heading-xsm", htmlFor: "r1", children: "Enter new column width in pixels. (Default: 80)" })
|
|
29810
29836
|
] }),
|
|
29811
29837
|
/* @__PURE__ */ i.jsx(
|
|
29812
29838
|
Et,
|
|
@@ -29822,8 +29848,8 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
29822
29848
|
)
|
|
29823
29849
|
] }),
|
|
29824
29850
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-1 mb-4", children: [
|
|
29825
|
-
/* @__PURE__ */ i.jsx(
|
|
29826
|
-
/* @__PURE__ */ i.jsx(
|
|
29851
|
+
/* @__PURE__ */ i.jsx(Kl, { id: "r2", size: "lg", value: "fit" }),
|
|
29852
|
+
/* @__PURE__ */ i.jsx(ql, { className: "text-heading-xsm", htmlFor: "r2", children: "Fit to data" })
|
|
29827
29853
|
] })
|
|
29828
29854
|
]
|
|
29829
29855
|
}
|
|
@@ -29906,8 +29932,8 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
29906
29932
|
children: [
|
|
29907
29933
|
/* @__PURE__ */ i.jsxs("div", { className: "flex-col gap-4", children: [
|
|
29908
29934
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
29909
|
-
/* @__PURE__ */ i.jsx(
|
|
29910
|
-
/* @__PURE__ */ i.jsx(
|
|
29935
|
+
/* @__PURE__ */ i.jsx(Kl, { id: "row-h-1", size: "lg", value: "number" }),
|
|
29936
|
+
/* @__PURE__ */ i.jsx(ql, { className: "text-heading-xsm", htmlFor: "row-h-1", children: "Enter new row height in pixels. (Default: 19)" })
|
|
29911
29937
|
] }),
|
|
29912
29938
|
/* @__PURE__ */ i.jsx(
|
|
29913
29939
|
Et,
|
|
@@ -29923,8 +29949,8 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
29923
29949
|
)
|
|
29924
29950
|
] }),
|
|
29925
29951
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center space-x-1 mb-4", children: [
|
|
29926
|
-
/* @__PURE__ */ i.jsx(
|
|
29927
|
-
/* @__PURE__ */ i.jsx(
|
|
29952
|
+
/* @__PURE__ */ i.jsx(Kl, { id: "row-h-2", size: "lg", value: "fit" }),
|
|
29953
|
+
/* @__PURE__ */ i.jsx(ql, { className: "text-heading-xsm", htmlFor: "row-h-2", children: "Fit to data" })
|
|
29928
29954
|
] })
|
|
29929
29955
|
]
|
|
29930
29956
|
}
|
|
@@ -30139,7 +30165,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30139
30165
|
o(
|
|
30140
30166
|
(Q) => {
|
|
30141
30167
|
try {
|
|
30142
|
-
|
|
30168
|
+
Zn(Q, I);
|
|
30143
30169
|
} catch (K) {
|
|
30144
30170
|
K.message === "maxExceeded" ? s(a.rowOverLimit, "ok") : K.message === "readOnly" && s(a.cannotInsertOnRowReadOnly, "ok");
|
|
30145
30171
|
}
|
|
@@ -30161,7 +30187,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30161
30187
|
o(
|
|
30162
30188
|
(Q) => {
|
|
30163
30189
|
try {
|
|
30164
|
-
|
|
30190
|
+
Zn(Q, I);
|
|
30165
30191
|
} catch (K) {
|
|
30166
30192
|
K.message === "maxExceeded" ? s(a.columnOverLimit, "ok") : K.message === "readOnly" && s(a.cannotInsertOnColumnReadOnly, "ok");
|
|
30167
30193
|
}
|
|
@@ -30197,7 +30223,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30197
30223
|
G.count < 1 || o(
|
|
30198
30224
|
(E) => {
|
|
30199
30225
|
try {
|
|
30200
|
-
|
|
30226
|
+
Zn(E, G), E.contextMenu = {};
|
|
30201
30227
|
} catch (U) {
|
|
30202
30228
|
U.message === "maxExceeded" ? s(
|
|
30203
30229
|
G.type === "row" ? a.rowOverLimit : a.columnOverLimit,
|
|
@@ -30346,7 +30372,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30346
30372
|
s(a.noMulti, "ok"), E.contextMenu = {};
|
|
30347
30373
|
return;
|
|
30348
30374
|
}
|
|
30349
|
-
|
|
30375
|
+
ls(E), E.contextMenu = {};
|
|
30350
30376
|
});
|
|
30351
30377
|
},
|
|
30352
30378
|
children: /* @__PURE__ */ i.jsxs("div", { className: "context-item", children: [
|
|
@@ -30367,10 +30393,10 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30367
30393
|
s(a.noMulti, "ok"), E.contextMenu = {};
|
|
30368
30394
|
return;
|
|
30369
30395
|
}
|
|
30370
|
-
if (
|
|
30371
|
-
|
|
30396
|
+
if (ls(E), E.activeImg != null)
|
|
30397
|
+
ts(E);
|
|
30372
30398
|
else {
|
|
30373
|
-
const ne =
|
|
30399
|
+
const ne = Wl(E);
|
|
30374
30400
|
ne === "partMC" ? e(u.partiallyError, "ok") : ne === "allowEdit" ? e(u.readOnlyError, "ok") : ne === "dataNullError" && e(u.dataNullError, "ok");
|
|
30375
30401
|
}
|
|
30376
30402
|
$t(E, null, void 0), E.contextMenu = {};
|
|
@@ -30482,7 +30508,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30482
30508
|
}
|
|
30483
30509
|
if (H === "insert-cells")
|
|
30484
30510
|
return I != null && I.row_select || I != null && I.column_select ? null : /* @__PURE__ */ i.jsx(
|
|
30485
|
-
|
|
30511
|
+
yl,
|
|
30486
30512
|
{
|
|
30487
30513
|
placement: "right-start",
|
|
30488
30514
|
interactive: !0,
|
|
@@ -30552,7 +30578,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30552
30578
|
);
|
|
30553
30579
|
if (H === "delete-cells")
|
|
30554
30580
|
return I != null && I.row_select || I != null && I.column_select ? null : /* @__PURE__ */ i.jsx(
|
|
30555
|
-
|
|
30581
|
+
yl,
|
|
30556
30582
|
{
|
|
30557
30583
|
placement: "right-start",
|
|
30558
30584
|
interactive: !0,
|
|
@@ -30890,9 +30916,9 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30890
30916
|
o((x) => {
|
|
30891
30917
|
if (ft(x)) {
|
|
30892
30918
|
if (x.activeImg != null)
|
|
30893
|
-
|
|
30919
|
+
ts(x);
|
|
30894
30920
|
else {
|
|
30895
|
-
const re =
|
|
30921
|
+
const re = Wl(x);
|
|
30896
30922
|
re === "partMC" ? e(u.partiallyError, "ok") : re === "allowEdit" ? e(u.readOnlyError, "ok") : re === "dataNullError" && e(u.dataNullError, "ok");
|
|
30897
30923
|
}
|
|
30898
30924
|
x.contextMenu = {}, $t(x, null, void 0);
|
|
@@ -30942,7 +30968,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
30942
30968
|
if (H === "sort") {
|
|
30943
30969
|
const { sort: E } = dt(n);
|
|
30944
30970
|
return /* @__PURE__ */ i.jsx(
|
|
30945
|
-
|
|
30971
|
+
yl,
|
|
30946
30972
|
{
|
|
30947
30973
|
placement: "right-start",
|
|
30948
30974
|
interactive: !0,
|
|
@@ -31024,7 +31050,7 @@ const Op = /* @__PURE__ */ Qr(Dp), Fp = () => {
|
|
|
31024
31050
|
if (H === "filter") {
|
|
31025
31051
|
const { filter: E } = dt(n);
|
|
31026
31052
|
return /* @__PURE__ */ i.jsx(
|
|
31027
|
-
|
|
31053
|
+
yl,
|
|
31028
31054
|
{
|
|
31029
31055
|
placement: "right-start",
|
|
31030
31056
|
interactive: !0,
|
|
@@ -33917,7 +33943,7 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
33917
33943
|
const [S] = m;
|
|
33918
33944
|
if (S.op === "insertRowCol")
|
|
33919
33945
|
try {
|
|
33920
|
-
|
|
33946
|
+
Zn(f, S.value, !1);
|
|
33921
33947
|
} catch (T) {
|
|
33922
33948
|
console.error(T);
|
|
33923
33949
|
}
|
|
@@ -33967,7 +33993,7 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
33967
33993
|
/** Runs the formula engine on every cell in calcChain (all sheets). Use after XLSX import so values are computed, not cached from the file. */
|
|
33968
33994
|
recalculateAllFormulas: () => {
|
|
33969
33995
|
t((u) => {
|
|
33970
|
-
|
|
33996
|
+
Yn(
|
|
33971
33997
|
u,
|
|
33972
33998
|
// origin cell is unused when isForce=true; toolbar uses null with @ts-ignore
|
|
33973
33999
|
null,
|
|
@@ -33995,7 +34021,7 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
33995
34021
|
if (l != null) {
|
|
33996
34022
|
b.luckysheetCellUpdate = [m, h], l.innerHTML = g;
|
|
33997
34023
|
const y = l.childNodes;
|
|
33998
|
-
if (W.isEmpty(y) ||
|
|
34024
|
+
if (W.isEmpty(y) || Ul(
|
|
33999
34025
|
b,
|
|
34000
34026
|
y[y.length - 1],
|
|
34001
34027
|
0,
|
|
@@ -34035,7 +34061,7 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
34035
34061
|
});
|
|
34036
34062
|
},
|
|
34037
34063
|
setCellValue: (u, f, p, m = {}, h) => t(
|
|
34038
|
-
(g) =>
|
|
34064
|
+
(g) => al(
|
|
34039
34065
|
g,
|
|
34040
34066
|
u,
|
|
34041
34067
|
f,
|
|
@@ -34082,8 +34108,8 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
34082
34108
|
(m) => Ur(m, u, f, p)
|
|
34083
34109
|
),
|
|
34084
34110
|
getRowHeight: (u, f = {}) => $u(e, u, f),
|
|
34085
|
-
getColumnWidth: (u, f = {}) =>
|
|
34086
|
-
getSelection: () =>
|
|
34111
|
+
getColumnWidth: (u, f = {}) => $l(e, u, f),
|
|
34112
|
+
getSelection: () => Kn(e),
|
|
34087
34113
|
getFlattenRange: (u) => Ea(e, u),
|
|
34088
34114
|
getCellsByFlattenRange: (u) => nf(e, u),
|
|
34089
34115
|
getSelectionCoordinates: () => of(e),
|
|
@@ -34137,13 +34163,13 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
34137
34163
|
calculateFormula: () => {
|
|
34138
34164
|
t((u) => {
|
|
34139
34165
|
W.forEach(u.luckysheetfile, (f) => {
|
|
34140
|
-
|
|
34166
|
+
Gl(u, f.id);
|
|
34141
34167
|
});
|
|
34142
34168
|
});
|
|
34143
34169
|
},
|
|
34144
34170
|
calculateSubSheetFormula: (u) => {
|
|
34145
34171
|
t((f) => {
|
|
34146
|
-
|
|
34172
|
+
Gl(f, u);
|
|
34147
34173
|
});
|
|
34148
34174
|
},
|
|
34149
34175
|
calculateCellReferencedSubSheetFormula: (u, f) => {
|
|
@@ -34167,7 +34193,7 @@ function $p(e, t, n, o, r, l, c, s, a, d) {
|
|
|
34167
34193
|
if (l != null && a != null) {
|
|
34168
34194
|
C.luckysheetCellUpdate = [h, g], a.doNotUpdateCell = !0, l.innerHTML = w;
|
|
34169
34195
|
const v = l.childNodes;
|
|
34170
|
-
if (W.isEmpty(v) ||
|
|
34196
|
+
if (W.isEmpty(v) || Ul(
|
|
34171
34197
|
C,
|
|
34172
34198
|
v[v.length - 1],
|
|
34173
34199
|
0,
|
|
@@ -34194,7 +34220,7 @@ const su = ({ item: e, isChecked: t, onChange: n, isItemVisible: o }) => {
|
|
|
34194
34220
|
return o(e) ? /* @__PURE__ */ i.jsxs("div", { className: "select-item", children: [
|
|
34195
34221
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
34196
34222
|
/* @__PURE__ */ i.jsx(
|
|
34197
|
-
|
|
34223
|
+
to,
|
|
34198
34224
|
{
|
|
34199
34225
|
className: "border-2",
|
|
34200
34226
|
checked: r,
|
|
@@ -34244,7 +34270,7 @@ const su = ({ item: e, isChecked: t, onChange: n, isItemVisible: o }) => {
|
|
|
34244
34270
|
}
|
|
34245
34271
|
),
|
|
34246
34272
|
/* @__PURE__ */ i.jsx(
|
|
34247
|
-
|
|
34273
|
+
to,
|
|
34248
34274
|
{
|
|
34249
34275
|
className: "border-2",
|
|
34250
34276
|
checked: d,
|
|
@@ -34769,7 +34795,7 @@ const su = ({ item: e, isChecked: t, onChange: n, isItemVisible: o }) => {
|
|
|
34769
34795
|
luckysheet_select_status: c.luckysheet_select_status,
|
|
34770
34796
|
luckysheet_select_save: c.luckysheet_select_save,
|
|
34771
34797
|
luckysheet_selection_range: c.luckysheet_selection_range
|
|
34772
|
-
}, c.currentSheetId = e.id, c.zoomRatio = e.zoomRatio || 1,
|
|
34798
|
+
}, c.currentSheetId = e.id, c.zoomRatio = e.zoomRatio || 1, qn(c, r.globalCache), _o(c);
|
|
34773
34799
|
});
|
|
34774
34800
|
},
|
|
34775
34801
|
tabIndex: 0,
|
|
@@ -34824,7 +34850,7 @@ const su = ({ item: e, isChecked: t, onChange: n, isItemVisible: o }) => {
|
|
|
34824
34850
|
onKeepAsLink: n,
|
|
34825
34851
|
onEmbed: o
|
|
34826
34852
|
}) => {
|
|
34827
|
-
const r =
|
|
34853
|
+
const r = il(e);
|
|
34828
34854
|
return r ? /* @__PURE__ */ i.jsxs(
|
|
34829
34855
|
"div",
|
|
34830
34856
|
{
|
|
@@ -34875,7 +34901,7 @@ const su = ({ item: e, isChecked: t, onChange: n, isItemVisible: o }) => {
|
|
|
34875
34901
|
};
|
|
34876
34902
|
S0();
|
|
34877
34903
|
const iu = (e) => {
|
|
34878
|
-
e.groupValuesRefreshData.length > 0 &&
|
|
34904
|
+
e.groupValuesRefreshData.length > 0 && Jr(e);
|
|
34879
34905
|
}, au = (...e) => (t) => {
|
|
34880
34906
|
e.forEach((n) => {
|
|
34881
34907
|
n(t);
|
|
@@ -35424,7 +35450,7 @@ const iu = (e) => {
|
|
|
35424
35450
|
const oe = h.luckysheet_select_save;
|
|
35425
35451
|
R(
|
|
35426
35452
|
(J) => {
|
|
35427
|
-
|
|
35453
|
+
Zn(J, O), J.luckysheet_select_save = oe;
|
|
35428
35454
|
},
|
|
35429
35455
|
{ insertRowColOp: O }
|
|
35430
35456
|
), E.preventDefault();
|
|
@@ -35457,7 +35483,7 @@ const iu = (e) => {
|
|
|
35457
35483
|
const ue = h.luckysheet_select_save;
|
|
35458
35484
|
R(
|
|
35459
35485
|
(ie) => {
|
|
35460
|
-
J &&
|
|
35486
|
+
J && Zn(ie, J), ie.luckysheet_select_save = ue;
|
|
35461
35487
|
},
|
|
35462
35488
|
{
|
|
35463
35489
|
insertRowColOp: J
|
|
@@ -35564,7 +35590,7 @@ const iu = (e) => {
|
|
|
35564
35590
|
R(
|
|
35565
35591
|
(O) => {
|
|
35566
35592
|
try {
|
|
35567
|
-
Y && (
|
|
35593
|
+
Y && (Zn(O, Y), O.luckysheet_select_save = re), U && (U = !1, Lf(O, E));
|
|
35568
35594
|
} catch (oe) {
|
|
35569
35595
|
console.error(oe);
|
|
35570
35596
|
}
|
|
@@ -36013,10 +36039,10 @@ var ag = ig;
|
|
|
36013
36039
|
const cg = /* @__PURE__ */ Qr(ag), Ys = typeof Buffer == "function";
|
|
36014
36040
|
typeof TextDecoder == "function" && new TextDecoder();
|
|
36015
36041
|
typeof TextEncoder == "function" && new TextEncoder();
|
|
36016
|
-
const ug = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Hr = Array.prototype.slice.call(ug),
|
|
36042
|
+
const ug = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Hr = Array.prototype.slice.call(ug), Il = ((e) => {
|
|
36017
36043
|
let t = {};
|
|
36018
36044
|
return e.forEach((n, o) => t[n] = o), t;
|
|
36019
|
-
})(Hr), dg = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,
|
|
36045
|
+
})(Hr), dg = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, Bl = String.fromCharCode.bind(String), pu = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (e) => new Uint8Array(Array.prototype.slice.call(e, 0)), fg = (e) => e.replace(/=/g, "").replace(/[+\/]/g, (t) => t == "+" ? "-" : "_"), uh = (e) => e.replace(/[^A-Za-z0-9\+\/]/g, ""), hg = (e) => {
|
|
36020
36046
|
let t, n, o, r, l = "";
|
|
36021
36047
|
const c = e.length % 3;
|
|
36022
36048
|
for (let s = 0; s < e.length; ) {
|
|
@@ -36028,7 +36054,7 @@ const ug = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
|
36028
36054
|
}, mg = typeof btoa == "function" ? (e) => btoa(e) : Ys ? (e) => Buffer.from(e, "binary").toString("base64") : hg, gu = Ys ? (e) => Buffer.from(e).toString("base64") : (e) => {
|
|
36029
36055
|
let n = [];
|
|
36030
36056
|
for (let o = 0, r = e.length; o < r; o += 4096)
|
|
36031
|
-
n.push(
|
|
36057
|
+
n.push(Bl.apply(null, e.subarray(o, o + 4096)));
|
|
36032
36058
|
return mg(n.join(""));
|
|
36033
36059
|
}, pg = (e, t = !1) => t ? fg(gu(e)) : gu(e), gg = (e) => {
|
|
36034
36060
|
if (e = e.replace(/\s+/g, ""), !dg.test(e))
|
|
@@ -36036,7 +36062,7 @@ const ug = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
|
|
|
36036
36062
|
e += "==".slice(2 - (e.length & 3));
|
|
36037
36063
|
let t, n, o, r = [];
|
|
36038
36064
|
for (let l = 0; l < e.length; )
|
|
36039
|
-
t =
|
|
36065
|
+
t = Il[e.charAt(l++)] << 18 | Il[e.charAt(l++)] << 12 | (n = Il[e.charAt(l++)]) << 6 | (o = Il[e.charAt(l++)]), n === 64 ? r.push(Bl(t >> 16 & 255)) : o === 64 ? r.push(Bl(t >> 16 & 255, t >> 8 & 255)) : r.push(Bl(t >> 16 & 255, t >> 8 & 255, t & 255));
|
|
36040
36066
|
return r.join("");
|
|
36041
36067
|
}, yg = typeof atob == "function" ? (e) => atob(uh(e)) : Ys ? (e) => Buffer.from(e, "base64").toString("binary") : gg, vg = Ys ? (e) => pu(Buffer.from(e, "base64")) : (e) => pu(yg(e).split("").map((t) => t.charCodeAt(0))), wg = (e) => vg(Cg(e)), Cg = (e) => uh(e.replace(/[-_]/g, (t) => t == "-" ? "+" : "/")), bg = (e, t = !0, n = !1) => {
|
|
36042
36068
|
const o = Me(null), r = Me(null), [l, c] = Ie("initializing"), s = Me(!1), a = async () => {
|
|
@@ -36360,7 +36386,7 @@ const jg = ({
|
|
|
36360
36386
|
newValue: p,
|
|
36361
36387
|
handleSmartContractQuery: r
|
|
36362
36388
|
}).then((se) => {
|
|
36363
|
-
se &&
|
|
36389
|
+
se && rl({
|
|
36364
36390
|
row: u.row,
|
|
36365
36391
|
column: u.column,
|
|
36366
36392
|
newValue: p,
|
|
@@ -36400,7 +36426,7 @@ const Mg = (e) => {
|
|
|
36400
36426
|
t = o.row, n = o.column;
|
|
36401
36427
|
}
|
|
36402
36428
|
return { row: t, column: n };
|
|
36403
|
-
}, Ag = (e) => Ng.some((t) => e.includes(t)),
|
|
36429
|
+
}, Ag = (e) => Ng.some((t) => e.includes(t)), us = (e) => {
|
|
36404
36430
|
var t, n, o;
|
|
36405
36431
|
return (o = (n = (t = e.f) == null ? void 0 : t.match(/^=([A-Za-z0-9_]+)\s*\(/)) == null ? void 0 : n[1]) == null ? void 0 : o.toUpperCase();
|
|
36406
36432
|
}, Lg = (e) => {
|
|
@@ -36414,7 +36440,7 @@ const Mg = (e) => {
|
|
|
36414
36440
|
isDataBlockFormula: !0
|
|
36415
36441
|
});
|
|
36416
36442
|
}, mh = (e, t, n) => {
|
|
36417
|
-
|
|
36443
|
+
rl({
|
|
36418
36444
|
row: t.row,
|
|
36419
36445
|
column: t.column,
|
|
36420
36446
|
newValue: t.newValue,
|
|
@@ -36457,12 +36483,12 @@ const Mg = (e) => {
|
|
|
36457
36483
|
row: n.row,
|
|
36458
36484
|
column: n.column,
|
|
36459
36485
|
newValue: n.newValue,
|
|
36460
|
-
formulaResponseUiSync:
|
|
36486
|
+
formulaResponseUiSync: rl
|
|
36461
36487
|
});
|
|
36462
36488
|
}, ph = (e) => e !== null && typeof e == "object" && !Array.isArray(e) && Tg(e.type), Hg = async (e, t) => {
|
|
36463
36489
|
var n, o, r, l, c, s, a, d;
|
|
36464
36490
|
try {
|
|
36465
|
-
const u = await e, f =
|
|
36491
|
+
const u = await e, f = us(t.newValue);
|
|
36466
36492
|
if (ph(u)) {
|
|
36467
36493
|
const g = u, w = g.message === "Required" ? "Required parameter was not provided" : g.message;
|
|
36468
36494
|
if ((n = t.sheetEditorRef.current) == null || n.setCellError(t.row, t.column, {
|
|
@@ -36522,7 +36548,7 @@ const Mg = (e) => {
|
|
|
36522
36548
|
if (u === "dataBlockApiKeyHandler missing" || (u == null ? void 0 : u.message) === "dataBlockApiKeyHandler missing")
|
|
36523
36549
|
throw new Error("dataBlockApiKeyHandler missing");
|
|
36524
36550
|
{
|
|
36525
|
-
const f =
|
|
36551
|
+
const f = us(t.newValue);
|
|
36526
36552
|
yu(
|
|
36527
36553
|
{
|
|
36528
36554
|
type: "DSHEET_ERROR",
|
|
@@ -36594,7 +36620,7 @@ const Mg = (e) => {
|
|
|
36594
36620
|
ct: { fa: "@", t: "s" }
|
|
36595
36621
|
}));
|
|
36596
36622
|
const { row: r, column: l } = Mg(e), c = { ...e, row: r, column: l };
|
|
36597
|
-
|
|
36623
|
+
us(n), (n.m === Rg || n.m === hh || n.m === "Loading") && (await Pg(n, c), Bg({ params: c, currentSheetId: t }));
|
|
36598
36624
|
const s = e == null ? void 0 : e.dataBlockCalcFunction;
|
|
36599
36625
|
jg({
|
|
36600
36626
|
handleSmartContractQuery: e.handleSmartContractQuery,
|
|
@@ -36634,7 +36660,7 @@ const Mg = (e) => {
|
|
|
36634
36660
|
};
|
|
36635
36661
|
});
|
|
36636
36662
|
} catch (c) {
|
|
36637
|
-
const s =
|
|
36663
|
+
const s = us(e.newValue);
|
|
36638
36664
|
(l = e == null ? void 0 : e.dataBlockApiKeyHandler) == null || l.call(e, {
|
|
36639
36665
|
data: {
|
|
36640
36666
|
message: `ERROR from updateDataCalcFunc ${c == null ? void 0 : c.message}`,
|
|
@@ -36646,7 +36672,7 @@ const Mg = (e) => {
|
|
|
36646
36672
|
row: e.row,
|
|
36647
36673
|
column: e.column,
|
|
36648
36674
|
newValue: e.newValue,
|
|
36649
|
-
formulaResponseUiSync:
|
|
36675
|
+
formulaResponseUiSync: rl
|
|
36650
36676
|
});
|
|
36651
36677
|
}
|
|
36652
36678
|
}, hi = "LIVE_QUERY_ERROR", Vg = (e, t, n = !1, o = 2e4) => {
|
|
@@ -36699,7 +36725,7 @@ const Mg = (e) => {
|
|
|
36699
36725
|
if (!(Z !== H || $ !== F))
|
|
36700
36726
|
return;
|
|
36701
36727
|
}
|
|
36702
|
-
if (
|
|
36728
|
+
if (rl({
|
|
36703
36729
|
row: T,
|
|
36704
36730
|
column: R,
|
|
36705
36731
|
newValue: k,
|
|
@@ -37300,7 +37326,7 @@ const Zg = (e, t, n = "Anonymous", o = !0, r = "") => {
|
|
|
37300
37326
|
u
|
|
37301
37327
|
]);
|
|
37302
37328
|
return /* @__PURE__ */ i.jsx(gh.Provider, { value: B, children: r });
|
|
37303
|
-
},
|
|
37329
|
+
}, ds = () => {
|
|
37304
37330
|
const e = lt(gh);
|
|
37305
37331
|
if (e === void 0)
|
|
37306
37332
|
throw new Error("useEditor must be used within an EditorProvider");
|
|
@@ -37732,7 +37758,7 @@ const Zg = (e, t, n = "Anonymous", o = !0, r = "") => {
|
|
|
37732
37758
|
handleImportSmartContract: e,
|
|
37733
37759
|
handleViewSmartContract: t
|
|
37734
37760
|
}) => {
|
|
37735
|
-
const { isAuthorized: n } =
|
|
37761
|
+
const { isAuthorized: n } = ds(), [o, r] = Ie(!1);
|
|
37736
37762
|
return /* @__PURE__ */ i.jsxs(So, { open: o, onOpenChange: r, children: [
|
|
37737
37763
|
/* @__PURE__ */ i.jsx(jo, { "data-testid": "smart-contract-popover-trigger", children: /* @__PURE__ */ i.jsx(
|
|
37738
37764
|
"div",
|
|
@@ -38031,7 +38057,7 @@ const No = ({
|
|
|
38031
38057
|
oldSheet: c,
|
|
38032
38058
|
ydoc: t.current
|
|
38033
38059
|
};
|
|
38034
|
-
},
|
|
38060
|
+
}, cl = ({
|
|
38035
38061
|
sheetId: e,
|
|
38036
38062
|
fieldPath: t,
|
|
38037
38063
|
oldData: n,
|
|
@@ -38075,7 +38101,7 @@ const No = ({
|
|
|
38075
38101
|
dsheetId: n
|
|
38076
38102
|
});
|
|
38077
38103
|
if (!r) return;
|
|
38078
|
-
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.dataVerification) || {}, c = r.oldSheet.dataVerification || {}, s =
|
|
38104
|
+
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.dataVerification) || {}, c = r.oldSheet.dataVerification || {}, s = cl({
|
|
38079
38105
|
sheetId: r.currentSheetId,
|
|
38080
38106
|
fieldPath: "dataVerification",
|
|
38081
38107
|
oldData: c,
|
|
@@ -38100,7 +38126,7 @@ const No = ({
|
|
|
38100
38126
|
dsheetId: n
|
|
38101
38127
|
});
|
|
38102
38128
|
if (!r) return;
|
|
38103
|
-
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.liveQueryList) || {}, c = r.oldSheet.liveQueryList || {}, s =
|
|
38129
|
+
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.liveQueryList) || {}, c = r.oldSheet.liveQueryList || {}, s = cl({
|
|
38104
38130
|
sheetId: r.currentSheetId,
|
|
38105
38131
|
fieldPath: "liveQueryList",
|
|
38106
38132
|
oldData: c,
|
|
@@ -38200,7 +38226,7 @@ const No = ({
|
|
|
38200
38226
|
dsheetId: n
|
|
38201
38227
|
});
|
|
38202
38228
|
if (!l) return;
|
|
38203
|
-
const c = (r == null ? void 0 : r[l.currentSheetId]) || {}, s = l.oldSheet.dataBlockCalcFunction || {}, a =
|
|
38229
|
+
const c = (r == null ? void 0 : r[l.currentSheetId]) || {}, s = l.oldSheet.dataBlockCalcFunction || {}, a = cl({
|
|
38204
38230
|
sheetId: l.currentSheetId,
|
|
38205
38231
|
fieldPath: "dataBlockCalcFunction",
|
|
38206
38232
|
oldData: s,
|
|
@@ -38225,7 +38251,7 @@ const No = ({
|
|
|
38225
38251
|
dsheetId: n
|
|
38226
38252
|
});
|
|
38227
38253
|
if (!r) return;
|
|
38228
|
-
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.filter_select) || {}, c = r.oldSheet.filter_select || {}, s =
|
|
38254
|
+
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.filter_select) || {}, c = r.oldSheet.filter_select || {}, s = cl({
|
|
38229
38255
|
sheetId: r.currentSheetId,
|
|
38230
38256
|
fieldPath: "filter_select",
|
|
38231
38257
|
oldData: c || {},
|
|
@@ -38286,7 +38312,7 @@ const No = ({
|
|
|
38286
38312
|
dsheetId: n
|
|
38287
38313
|
});
|
|
38288
38314
|
if (!r) return;
|
|
38289
|
-
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.hyperlink) || {}, c = r.oldSheet.hyperlink || {}, s =
|
|
38315
|
+
const l = ((d = (a = e.current) == null ? void 0 : a.getSheet()) == null ? void 0 : d.hyperlink) || {}, c = r.oldSheet.hyperlink || {}, s = cl({
|
|
38290
38316
|
sheetId: r.currentSheetId,
|
|
38291
38317
|
fieldPath: "hyperlink",
|
|
38292
38318
|
oldData: c,
|
|
@@ -38563,7 +38589,7 @@ const No = ({
|
|
|
38563
38589
|
style: c5[n] ?? "thin",
|
|
38564
38590
|
color: { rgb: u5(t) }
|
|
38565
38591
|
};
|
|
38566
|
-
},
|
|
38592
|
+
}, Jn = (e, t, n, o, r) => {
|
|
38567
38593
|
if (!r || !o.l && !o.r && !o.t && !o.b) return;
|
|
38568
38594
|
const l = _n.encode_cell({ r: t, c: n }), c = {
|
|
38569
38595
|
...e[l] || { t: "z" }
|
|
@@ -38591,7 +38617,7 @@ const No = ({
|
|
|
38591
38617
|
for (let h = f; h <= p; h++)
|
|
38592
38618
|
switch (o) {
|
|
38593
38619
|
case "border-all":
|
|
38594
|
-
|
|
38620
|
+
Jn(
|
|
38595
38621
|
e,
|
|
38596
38622
|
m,
|
|
38597
38623
|
h,
|
|
@@ -38600,7 +38626,7 @@ const No = ({
|
|
|
38600
38626
|
);
|
|
38601
38627
|
break;
|
|
38602
38628
|
case "border-outside":
|
|
38603
|
-
|
|
38629
|
+
Jn(
|
|
38604
38630
|
e,
|
|
38605
38631
|
m,
|
|
38606
38632
|
h,
|
|
@@ -38609,7 +38635,7 @@ const No = ({
|
|
|
38609
38635
|
);
|
|
38610
38636
|
break;
|
|
38611
38637
|
case "border-inside":
|
|
38612
|
-
|
|
38638
|
+
Jn(
|
|
38613
38639
|
e,
|
|
38614
38640
|
m,
|
|
38615
38641
|
h,
|
|
@@ -38618,22 +38644,22 @@ const No = ({
|
|
|
38618
38644
|
);
|
|
38619
38645
|
break;
|
|
38620
38646
|
case "border-horizontal":
|
|
38621
|
-
|
|
38647
|
+
Jn(e, m, h, { b: m < u }, s);
|
|
38622
38648
|
break;
|
|
38623
38649
|
case "border-vertical":
|
|
38624
|
-
|
|
38650
|
+
Jn(e, m, h, { r: h < p }, s);
|
|
38625
38651
|
break;
|
|
38626
38652
|
case "border-left":
|
|
38627
|
-
h === f &&
|
|
38653
|
+
h === f && Jn(e, m, h, { l: !0 }, s);
|
|
38628
38654
|
break;
|
|
38629
38655
|
case "border-right":
|
|
38630
|
-
h === p &&
|
|
38656
|
+
h === p && Jn(e, m, h, { r: !0 }, s);
|
|
38631
38657
|
break;
|
|
38632
38658
|
case "border-top":
|
|
38633
|
-
m === d &&
|
|
38659
|
+
m === d && Jn(e, m, h, { t: !0 }, s);
|
|
38634
38660
|
break;
|
|
38635
38661
|
case "border-bottom":
|
|
38636
|
-
m === u &&
|
|
38662
|
+
m === u && Jn(e, m, h, { b: !0 }, s);
|
|
38637
38663
|
break;
|
|
38638
38664
|
}
|
|
38639
38665
|
});
|
|
@@ -38677,7 +38703,7 @@ function f5(e, t) {
|
|
|
38677
38703
|
}
|
|
38678
38704
|
return o;
|
|
38679
38705
|
}
|
|
38680
|
-
const
|
|
38706
|
+
const fs = 9525, vh = 1, wh = 2;
|
|
38681
38707
|
function h5(e, t, n) {
|
|
38682
38708
|
var l, c;
|
|
38683
38709
|
let o = 0, r = 0;
|
|
@@ -38686,7 +38712,7 @@ function h5(e, t, n) {
|
|
|
38686
38712
|
if (o + s > e)
|
|
38687
38713
|
return {
|
|
38688
38714
|
nativeCol: r,
|
|
38689
|
-
nativeColOff: Math.round((e - o) *
|
|
38715
|
+
nativeColOff: Math.round((e - o) * fs)
|
|
38690
38716
|
};
|
|
38691
38717
|
o += s, r++;
|
|
38692
38718
|
}
|
|
@@ -38700,7 +38726,7 @@ function m5(e, t, n) {
|
|
|
38700
38726
|
if (o + s > e)
|
|
38701
38727
|
return {
|
|
38702
38728
|
nativeRow: r,
|
|
38703
|
-
nativeRowOff: Math.round((e - o) *
|
|
38729
|
+
nativeRowOff: Math.round((e - o) * fs)
|
|
38704
38730
|
};
|
|
38705
38731
|
o += s, r++;
|
|
38706
38732
|
}
|
|
@@ -38734,13 +38760,13 @@ function g5(e, t, n, o) {
|
|
|
38734
38760
|
let a = 0;
|
|
38735
38761
|
for (let f = 0; f < c; f++)
|
|
38736
38762
|
a += (((u = (d = t.config) == null ? void 0 : d.columnlen) == null ? void 0 : u[f]) ?? n) + vh;
|
|
38737
|
-
return Math.round(a + s /
|
|
38763
|
+
return Math.round(a + s / fs);
|
|
38738
38764
|
}, l = (c, s) => {
|
|
38739
38765
|
var d, u;
|
|
38740
38766
|
let a = 0;
|
|
38741
38767
|
for (let f = 0; f < c; f++)
|
|
38742
38768
|
a += (((u = (d = t.config) == null ? void 0 : d.rowlen) == null ? void 0 : u[f]) ?? o) + wh;
|
|
38743
|
-
return Math.round(a + s /
|
|
38769
|
+
return Math.round(a + s / fs);
|
|
38744
38770
|
};
|
|
38745
38771
|
return e.map((c) => {
|
|
38746
38772
|
const s = r(c.nativeCol, c.nativeColOff), a = l(c.nativeRow, c.nativeRowOff);
|
|
@@ -38761,7 +38787,7 @@ function g5(e, t, n, o) {
|
|
|
38761
38787
|
};
|
|
38762
38788
|
});
|
|
38763
38789
|
}
|
|
38764
|
-
function
|
|
38790
|
+
function hs(e) {
|
|
38765
38791
|
if (!e || typeof e != "string") return null;
|
|
38766
38792
|
const t = e.trim();
|
|
38767
38793
|
if (t.startsWith("#")) {
|
|
@@ -38778,13 +38804,13 @@ function fs(e) {
|
|
|
38778
38804
|
function y5(e) {
|
|
38779
38805
|
const t = {}, n = {};
|
|
38780
38806
|
if (e.textColor && e.textColor.toLowerCase() !== "#000000") {
|
|
38781
|
-
const r =
|
|
38807
|
+
const r = hs(e.textColor);
|
|
38782
38808
|
r && (n.color = { argb: r });
|
|
38783
38809
|
}
|
|
38784
38810
|
e.bold && (n.bold = !0), e.italic && (n.italic = !0), e.underline && (n.underline = !0), e.strikethrough && (n.strike = !0), Object.keys(n).length > 0 && (t.font = n);
|
|
38785
38811
|
const o = e.cellColor;
|
|
38786
38812
|
if (o && o.toLowerCase() !== "#ffffff") {
|
|
38787
|
-
const r =
|
|
38813
|
+
const r = hs(o);
|
|
38788
38814
|
r && (t.fill = { type: "pattern", pattern: "solid", fgColor: { argb: r } });
|
|
38789
38815
|
}
|
|
38790
38816
|
return t;
|
|
@@ -39059,7 +39085,7 @@ function C5(e, t, n) {
|
|
|
39059
39085
|
}
|
|
39060
39086
|
return { nextPriority: l, pendingDuplicateValues: r };
|
|
39061
39087
|
}
|
|
39062
|
-
function
|
|
39088
|
+
function Nl(e) {
|
|
39063
39089
|
throw new Error('Could not dynamically require "' + e + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
39064
39090
|
}
|
|
39065
39091
|
var Ch = { exports: {} };
|
|
@@ -39082,7 +39108,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
39082
39108
|
function c(d, u) {
|
|
39083
39109
|
if (!r[d]) {
|
|
39084
39110
|
if (!o[d]) {
|
|
39085
|
-
var f = typeof
|
|
39111
|
+
var f = typeof Nl == "function" && Nl;
|
|
39086
39112
|
if (!u && f) return f(d, !0);
|
|
39087
39113
|
if (s) return s(d, !0);
|
|
39088
39114
|
var p = new Error("Cannot find module '" + d + "'");
|
|
@@ -39096,7 +39122,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
39096
39122
|
}
|
|
39097
39123
|
return r[d].exports;
|
|
39098
39124
|
}
|
|
39099
|
-
for (var s = typeof
|
|
39125
|
+
for (var s = typeof Nl == "function" && Nl, a = 0; a < l.length; a++) c(l[a]);
|
|
39100
39126
|
return c;
|
|
39101
39127
|
}({ 1: [function(n, o, r) {
|
|
39102
39128
|
var l = n("./utils"), c = n("./support"), s = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
@@ -41380,13 +41406,13 @@ function _5(e) {
|
|
|
41380
41406
|
let t = "";
|
|
41381
41407
|
const n = [];
|
|
41382
41408
|
if (e.bold && n.push("<b/>"), e.italic && n.push("<i/>"), e.underline && n.push("<u/>"), e.strikethrough && n.push("<strike/>"), e.textColor && e.textColor.toLowerCase() !== "#000000") {
|
|
41383
|
-
const r =
|
|
41409
|
+
const r = hs(e.textColor);
|
|
41384
41410
|
r && n.push(`<color rgb="${r}"/>`);
|
|
41385
41411
|
}
|
|
41386
41412
|
n.length > 0 && (t += `<font>${n.join("")}</font>`);
|
|
41387
41413
|
const o = e.cellColor;
|
|
41388
41414
|
if (o && o.toLowerCase() !== "#ffffff") {
|
|
41389
|
-
const r =
|
|
41415
|
+
const r = hs(o);
|
|
41390
41416
|
r && (t += `<fill><patternFill patternType="solid"><fgColor rgb="${r}"/></patternFill></fill>`);
|
|
41391
41417
|
}
|
|
41392
41418
|
return `<dxf>${t}</dxf>`;
|
|
@@ -41575,7 +41601,7 @@ function D5(e) {
|
|
|
41575
41601
|
const t = e == null ? void 0 : e.filter, n = e == null ? void 0 : e.filter_select, o = !!(t && Object.keys(t).length > 0), r = !!n && (Array.isArray(n.row) || Array.isArray(n.column));
|
|
41576
41602
|
return o || r;
|
|
41577
41603
|
}
|
|
41578
|
-
const
|
|
41604
|
+
const El = (e) => {
|
|
41579
41605
|
if (!e || typeof e != "string") return null;
|
|
41580
41606
|
const t = e.trim().toLowerCase();
|
|
41581
41607
|
if (t.startsWith("#")) {
|
|
@@ -41648,7 +41674,7 @@ const Nl = (e) => {
|
|
|
41648
41674
|
X && m[A].set(Q, X);
|
|
41649
41675
|
}
|
|
41650
41676
|
if (G.ct && (G.ct.fa && (K.z = G.ct.fa), G.ct.t && G.ct.t !== "inlineStr" && (K.t = G.ct.t === "d" ? "n" : G.ct.t)), typeof K.v == "number" && !K.t && (K.t = "n"), K.s = K.s || {}, G.bg) {
|
|
41651
|
-
const X =
|
|
41677
|
+
const X = El(G.bg);
|
|
41652
41678
|
X && (K.s.fill = {
|
|
41653
41679
|
patternType: "solid",
|
|
41654
41680
|
fgColor: { rgb: X }
|
|
@@ -41663,7 +41689,7 @@ const Nl = (e) => {
|
|
|
41663
41689
|
sz: G.fs ?? 10,
|
|
41664
41690
|
name: G.ff ?? void 0,
|
|
41665
41691
|
color: (() => {
|
|
41666
|
-
const X =
|
|
41692
|
+
const X = El(G.fc);
|
|
41667
41693
|
return X ? { rgb: X } : void 0;
|
|
41668
41694
|
})()
|
|
41669
41695
|
};
|
|
@@ -41682,7 +41708,7 @@ const Nl = (e) => {
|
|
|
41682
41708
|
if (!K && !E) return;
|
|
41683
41709
|
const U = { ...se[Q] || {} };
|
|
41684
41710
|
if (U.s = U.s || {}, K && (U.f = I.f.replace(/^=/, "")), I.bg) {
|
|
41685
|
-
const B =
|
|
41711
|
+
const B = El(I.bg);
|
|
41686
41712
|
B && (U.s.fill = { patternType: "solid", fgColor: { rgb: B } });
|
|
41687
41713
|
}
|
|
41688
41714
|
U.s.font = {
|
|
@@ -41694,7 +41720,7 @@ const Nl = (e) => {
|
|
|
41694
41720
|
sz: I.fs ?? 10,
|
|
41695
41721
|
name: I.ff ?? void 0,
|
|
41696
41722
|
color: (() => {
|
|
41697
|
-
const B =
|
|
41723
|
+
const B = El(I.fc);
|
|
41698
41724
|
return B ? { rgb: B } : void 0;
|
|
41699
41725
|
})()
|
|
41700
41726
|
};
|
|
@@ -42794,7 +42820,7 @@ var bh = { exports: {} };
|
|
|
42794
42820
|
n(t), typeof DO_NOT_EXPORT_SSF > "u" && (e.exports = t);
|
|
42795
42821
|
})(bh);
|
|
42796
42822
|
var z5 = bh.exports;
|
|
42797
|
-
const
|
|
42823
|
+
const Tl = /* @__PURE__ */ Qr(z5), B5 = (e) => e.replace(/\.[^.]+$/, ""), Wi = [
|
|
42798
42824
|
"228, 232, 237",
|
|
42799
42825
|
// Light Gray
|
|
42800
42826
|
"219, 233, 236",
|
|
@@ -42964,7 +42990,7 @@ function kh(e) {
|
|
|
42964
42990
|
const o = t.match(/(?:^|[^A-Z])SEARCH\s*\([\s(]*'([^']*)'/i);
|
|
42965
42991
|
return o ? o[1] ?? "" : "";
|
|
42966
42992
|
}
|
|
42967
|
-
function
|
|
42993
|
+
function Vl(e) {
|
|
42968
42994
|
if (!e || typeof e != "string") return "";
|
|
42969
42995
|
const t = e.trim().replace(/"/g, '"').replace(/'/g, "'").replace(/^=/, ""), n = t.match(/"((?:[^"]|"")*)"/);
|
|
42970
42996
|
if (n) return (n[1] ?? "").replace(/""/g, '"');
|
|
@@ -42973,7 +42999,7 @@ function Bl(e) {
|
|
|
42973
42999
|
}
|
|
42974
43000
|
function Q5(e) {
|
|
42975
43001
|
if (!e || typeof e != "string") return null;
|
|
42976
|
-
const t = e.trim().toUpperCase(), n = kh(e) ||
|
|
43002
|
+
const t = e.trim().toUpperCase(), n = kh(e) || Vl(e);
|
|
42977
43003
|
return n ? t.includes("SEARCH(") ? t.includes("ISERROR(SEARCH(") || t.includes("NOTNUMBER(SEARCH(") ? { conditionName: "textDoesNotContain", conditionValue: [n] } : { conditionName: "textContains", conditionValue: [n] } : t.includes("LEFT(") ? { conditionName: "textStartsWith", conditionValue: [n] } : t.includes("RIGHT(") ? { conditionName: "textEndsWith", conditionValue: [n] } : t.includes("EXACT(") || t.includes('="') ? { conditionName: "textExactly", conditionValue: [n] } : null : null;
|
|
42978
43004
|
}
|
|
42979
43005
|
function J5(e, t, n) {
|
|
@@ -43053,7 +43079,7 @@ function e4(e, t) {
|
|
|
43053
43079
|
conditionValue: r.conditionValue
|
|
43054
43080
|
};
|
|
43055
43081
|
}
|
|
43056
|
-
(t.type === "containsText" || t.type === "notContainsText" || t.type === "beginsWith" || t.type === "endsWith") && !n && (n = kh(o), n || (n =
|
|
43082
|
+
(t.type === "containsText" || t.type === "notContainsText" || t.type === "beginsWith" || t.type === "endsWith") && !n && (n = kh(o), n || (n = Vl(o)));
|
|
43057
43083
|
const l = J5(t.type, t.operator, {
|
|
43058
43084
|
percent: t.percent,
|
|
43059
43085
|
bottom: t.bottom,
|
|
@@ -43064,7 +43090,7 @@ function e4(e, t) {
|
|
|
43064
43090
|
});
|
|
43065
43091
|
if (!l) return null;
|
|
43066
43092
|
let c;
|
|
43067
|
-
t.type === "cellIs" && Array.isArray(t.formulae) && t.formulae.length > 0 ? c = t.formulae.map((d) => String(d ?? "")) : l.conditionName === "empty" || l.conditionName === "notEmpty" ? c = [""] : t.type === "containsText" || t.type === "notContainsText" || t.type === "beginsWith" || t.type === "endsWith" ? c = n ? [n] :
|
|
43093
|
+
t.type === "cellIs" && Array.isArray(t.formulae) && t.formulae.length > 0 ? c = t.formulae.map((d) => String(d ?? "")) : l.conditionName === "empty" || l.conditionName === "notEmpty" ? c = [""] : t.type === "containsText" || t.type === "notContainsText" || t.type === "beginsWith" || t.type === "endsWith" ? c = n ? [n] : Vl(o) ? [Vl(o)] : [] : c = l.conditionValue.map(
|
|
43068
43094
|
(d) => d == null ? "" : String(d)
|
|
43069
43095
|
);
|
|
43070
43096
|
const s = Su(e);
|
|
@@ -43307,11 +43333,11 @@ const t4 = ({
|
|
|
43307
43333
|
);
|
|
43308
43334
|
}
|
|
43309
43335
|
const Re = (me = xe.v.ct) == null ? void 0 : me.fa, Ae = typeof Re == "string" ? Re.trim().toLowerCase() : "", Oe = Ae === "general" || ((le = xe.v.ct) == null ? void 0 : le.t) === "g", ze = Ae === "@" || ((ae = xe.v.ct) == null ? void 0 : ae.t) === "s";
|
|
43310
|
-
if (Re && !F.has(Re) && F.set(Re,
|
|
43336
|
+
if (Re && !F.has(Re) && F.set(Re, Tl.is_date(Re)), !xe.v.f && Re && F.get(Re)) {
|
|
43311
43337
|
const Ue = typeof xe.v.v == "string" ? parseFloat(xe.v.v) : xe.v.v;
|
|
43312
43338
|
if (typeof Ue == "number" && !isNaN(Ue))
|
|
43313
43339
|
try {
|
|
43314
|
-
xe.v.v = Ue, xe.v.m =
|
|
43340
|
+
xe.v.v = Ue, xe.v.m = Tl.format(Re, Ue), xe.v.ct = { ...xe.v.ct, t: "d" };
|
|
43315
43341
|
} catch {
|
|
43316
43342
|
}
|
|
43317
43343
|
} else if (!xe.v.f && typeof xe.v.v == "string" && !ze && !Oe) {
|
|
@@ -43326,7 +43352,7 @@ const t4 = ({
|
|
|
43326
43352
|
xe.v.m = String(Je);
|
|
43327
43353
|
else
|
|
43328
43354
|
try {
|
|
43329
|
-
xe.v.m =
|
|
43355
|
+
xe.v.m = Tl.format(Re, Je);
|
|
43330
43356
|
} catch {
|
|
43331
43357
|
}
|
|
43332
43358
|
}
|
|
@@ -43342,7 +43368,7 @@ const t4 = ({
|
|
|
43342
43368
|
const nt = (_e = xe.v.ct) == null ? void 0 : _e.fa;
|
|
43343
43369
|
if (typeof nt == "string" && nt && F.get(nt) === !1)
|
|
43344
43370
|
try {
|
|
43345
|
-
xe.v.m =
|
|
43371
|
+
xe.v.m = Tl.format(nt, Ge);
|
|
43346
43372
|
} catch {
|
|
43347
43373
|
xe.v.m = String(Ge);
|
|
43348
43374
|
}
|
|
@@ -43487,7 +43513,7 @@ const t4 = ({
|
|
|
43487
43513
|
value: n,
|
|
43488
43514
|
sheet: e,
|
|
43489
43515
|
sheetType: typeof e
|
|
43490
|
-
}), !1) : !1,
|
|
43516
|
+
}), !1) : !1, ul = (e, t) => {
|
|
43491
43517
|
if (Array.isArray(e))
|
|
43492
43518
|
return e.find((n) => kt(n, "id") === t);
|
|
43493
43519
|
}, Oo = (e) => {
|
|
@@ -43530,7 +43556,7 @@ const t4 = ({
|
|
|
43530
43556
|
e,
|
|
43531
43557
|
"getCurrentYdocSheet"
|
|
43532
43558
|
), r = (l = t == null ? void 0 : t.current) == null ? void 0 : l.getArray(n);
|
|
43533
|
-
return
|
|
43559
|
+
return ul(
|
|
43534
43560
|
r == null ? void 0 : r.toArray(),
|
|
43535
43561
|
o == null ? void 0 : o.id
|
|
43536
43562
|
);
|
|
@@ -43588,7 +43614,7 @@ const t4 = ({
|
|
|
43588
43614
|
const r = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getAllSheets(), l = (d = t == null ? void 0 : t.current) == null ? void 0 : d.getArray(n), c = l == null ? void 0 : l.toArray();
|
|
43589
43615
|
let s = !1;
|
|
43590
43616
|
r == null || r.forEach((u) => {
|
|
43591
|
-
const f =
|
|
43617
|
+
const f = ul(c, u == null ? void 0 : u.id);
|
|
43592
43618
|
if (!f) {
|
|
43593
43619
|
Zo("afterOrderChanges: matching sheet not found", {
|
|
43594
43620
|
dsheetId: n,
|
|
@@ -43618,7 +43644,7 @@ const t4 = ({
|
|
|
43618
43644
|
const r = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getAllSheets(), l = (d = t == null ? void 0 : t.current) == null ? void 0 : d.getArray(n), c = l == null ? void 0 : l.toArray();
|
|
43619
43645
|
let s = !1;
|
|
43620
43646
|
r == null || r.forEach((u) => {
|
|
43621
|
-
const f =
|
|
43647
|
+
const f = ul(c, u == null ? void 0 : u.id);
|
|
43622
43648
|
if (!f) {
|
|
43623
43649
|
Zo("afterColorChanges: matching sheet not found", {
|
|
43624
43650
|
dsheetId: n,
|
|
@@ -43648,7 +43674,7 @@ const t4 = ({
|
|
|
43648
43674
|
const r = (a = e == null ? void 0 : e.current) == null ? void 0 : a.getAllSheets(), l = (d = t == null ? void 0 : t.current) == null ? void 0 : d.getArray(n), c = l == null ? void 0 : l.toArray();
|
|
43649
43675
|
let s = !1;
|
|
43650
43676
|
r == null || r.forEach((u) => {
|
|
43651
|
-
const f =
|
|
43677
|
+
const f = ul(c, u == null ? void 0 : u.id);
|
|
43652
43678
|
if (!f) {
|
|
43653
43679
|
Zo("afterHideChanges: matching sheet not found", {
|
|
43654
43680
|
dsheetId: n,
|
|
@@ -43678,7 +43704,7 @@ const t4 = ({
|
|
|
43678
43704
|
const r = Ks(
|
|
43679
43705
|
e,
|
|
43680
43706
|
"createAfterColRowChangesHandler"
|
|
43681
|
-
), l = (u = t == null ? void 0 : t.current) == null ? void 0 : u.getArray(n), c = l == null ? void 0 : l.toArray(), s =
|
|
43707
|
+
), l = (u = t == null ? void 0 : t.current) == null ? void 0 : u.getArray(n), c = l == null ? void 0 : l.toArray(), s = ul(
|
|
43682
43708
|
c,
|
|
43683
43709
|
r == null ? void 0 : r.id
|
|
43684
43710
|
);
|
|
@@ -43780,7 +43806,7 @@ const t4 = ({
|
|
|
43780
43806
|
updateDocumentTitle: M,
|
|
43781
43807
|
handleLiveQuery: Z,
|
|
43782
43808
|
setIsDataLoaded: $
|
|
43783
|
-
} =
|
|
43809
|
+
} = ds();
|
|
43784
43810
|
Ne(() => {
|
|
43785
43811
|
se && l5({
|
|
43786
43812
|
sheetEditorRef: k,
|
|
@@ -43811,7 +43837,7 @@ const t4 = ({
|
|
|
43811
43837
|
sheetEditorRef: k,
|
|
43812
43838
|
updateDocumentTitle: M
|
|
43813
43839
|
});
|
|
43814
|
-
const L = o ? r ? ["comment", "copy"] : ["copy"] : b0, H = o ? ["filter"] : C0, F = o ? r ? ["filter", "sort", "comment"] : ["filter", "sort"] : k0, { handleOnChangePortalUpdate: I } =
|
|
43840
|
+
const L = o ? r ? ["comment", "copy"] : ["copy"] : b0, H = o ? ["filter"] : C0, F = o ? r ? ["filter", "sort", "comment"] : ["filter", "sort"] : k0, { handleOnChangePortalUpdate: I } = ds(), G = {
|
|
43815
43841
|
sheetEditorRef: k,
|
|
43816
43842
|
ydocRef: S,
|
|
43817
43843
|
dsheetId: m,
|
|
@@ -44180,7 +44206,7 @@ const t4 = ({
|
|
|
44180
44206
|
setForceSheetRender: se,
|
|
44181
44207
|
setDataBlockCalcFunction: D,
|
|
44182
44208
|
initialiseLiveQueryData: j
|
|
44183
|
-
} =
|
|
44209
|
+
} = ds();
|
|
44184
44210
|
h4({
|
|
44185
44211
|
selectedTemplate: h,
|
|
44186
44212
|
ydocRef: q,
|
|
@@ -44411,13 +44437,13 @@ export {
|
|
|
44411
44437
|
l1 as clearSelectedCellFormat,
|
|
44412
44438
|
xa as createFilter,
|
|
44413
44439
|
xn as deleteRowCol,
|
|
44414
|
-
|
|
44440
|
+
Wl as deleteSelectedCellText,
|
|
44415
44441
|
xs as executeStringFunction,
|
|
44416
|
-
|
|
44442
|
+
rl as formulaResponseUiSync,
|
|
44417
44443
|
Le as getFlowdata,
|
|
44418
44444
|
Te as getSheetIndex,
|
|
44419
44445
|
ku as handleCSVUpload,
|
|
44420
|
-
|
|
44446
|
+
ls as handleCopy,
|
|
44421
44447
|
H5 as handleExportToCSV,
|
|
44422
44448
|
P5 as handleExportToJSON,
|
|
44423
44449
|
O5 as handleExportToXLSX,
|
|
@@ -44429,10 +44455,10 @@ export {
|
|
|
44429
44455
|
td as handleSort,
|
|
44430
44456
|
nd as handleTextSize,
|
|
44431
44457
|
Q1 as handleVerticalAlign,
|
|
44432
|
-
|
|
44458
|
+
Zn as insertRowCol,
|
|
44433
44459
|
$t as jfrefreshgrid,
|
|
44434
44460
|
y1 as loadLocale,
|
|
44435
|
-
|
|
44461
|
+
ts as removeActiveImage,
|
|
44436
44462
|
Ca as showImgChooser,
|
|
44437
44463
|
rd as toolbarItemClickHandler,
|
|
44438
44464
|
en as updateFormat,
|