go-xcel-interpret 1.3.1 → 1.3.2
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.
|
@@ -2,7 +2,7 @@ var FB = Object.defineProperty;
|
|
|
2
2
|
var VB = (t, e, r) => e in t ? FB(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var lI = (t, e, r) => VB(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { jsxs as Or, jsx as Ce, Fragment as uk } from "react/jsx-runtime";
|
|
5
|
-
import ke, { useRef as rn, useContext as Jp, useDebugValue as uI, createElement as ck, useState as Po, useEffect as
|
|
5
|
+
import ke, { useRef as rn, useContext as Jp, useDebugValue as uI, createElement as ck, useState as Po, useEffect as Is, createContext as Qp, forwardRef as z0, useImperativeHandle as hk, Fragment as ew, useCallback as So, Children as WB, useId as BB, useMemo as dk } from "react";
|
|
6
6
|
import Y0 from "react-dom";
|
|
7
7
|
var cI = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function fk(t) {
|
|
@@ -799,7 +799,7 @@ var zr = function() {
|
|
|
799
799
|
return e;
|
|
800
800
|
}, zr.apply(this, arguments);
|
|
801
801
|
};
|
|
802
|
-
function
|
|
802
|
+
function Ra(t, e, r) {
|
|
803
803
|
if (r || arguments.length === 2) for (var n = 0, i = e.length, o; n < i; n++)
|
|
804
804
|
(o || !(n in e)) && (o || (o = Array.prototype.slice.call(e, 0, n)), o[n] = e[n]);
|
|
805
805
|
return t.concat(o || Array.prototype.slice.call(e));
|
|
@@ -858,12 +858,12 @@ var rw = 1, Cc = 1, Ck = 0, hi = 0, dr = 0, xc = "";
|
|
|
858
858
|
function nw(t, e, r, n, i, o, s, a) {
|
|
859
859
|
return { value: t, root: e, parent: r, type: n, props: i, children: o, line: rw, column: Cc, length: s, return: "", siblings: a };
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function ea(t, e) {
|
|
862
862
|
return IR(nw("", null, null, "", null, null, 0, t.siblings), t, { length: -t.length }, e);
|
|
863
863
|
}
|
|
864
864
|
function hu(t) {
|
|
865
865
|
for (; t.root; )
|
|
866
|
-
t =
|
|
866
|
+
t = ea(t.root, { children: [t] });
|
|
867
867
|
nd(t, t.siblings);
|
|
868
868
|
}
|
|
869
869
|
function sj() {
|
|
@@ -1318,7 +1318,7 @@ function yj(t, e, r, n) {
|
|
|
1318
1318
|
t.return = bk(t.value, t.length, r);
|
|
1319
1319
|
return;
|
|
1320
1320
|
case pk:
|
|
1321
|
-
return Zm([
|
|
1321
|
+
return Zm([ea(t, { value: $e(t.value, "@", "@" + dt) })], n);
|
|
1322
1322
|
case tw:
|
|
1323
1323
|
if (t.length)
|
|
1324
1324
|
return oj(r = t.props, function(i) {
|
|
@@ -1326,11 +1326,11 @@ function yj(t, e, r, n) {
|
|
|
1326
1326
|
// :read-(only|write)
|
|
1327
1327
|
case ":read-only":
|
|
1328
1328
|
case ":read-write":
|
|
1329
|
-
hu(
|
|
1329
|
+
hu(ea(t, { props: [$e(i, /:(read-\w+)/, ":" + hd + "$1")] })), hu(ea(t, { props: [i] })), IR(t, { props: _I(r, n) });
|
|
1330
1330
|
break;
|
|
1331
1331
|
// :placeholder
|
|
1332
1332
|
case "::placeholder":
|
|
1333
|
-
hu(
|
|
1333
|
+
hu(ea(t, { props: [$e(i, /:(plac\w+)/, ":" + dt + "input-$1")] })), hu(ea(t, { props: [$e(i, /:(plac\w+)/, ":" + hd + "$1")] })), hu(ea(t, { props: [$e(i, /:(plac\w+)/, At + "input-$1")] })), hu(ea(t, { props: [i] })), IR(t, { props: _I(r, n) });
|
|
1334
1334
|
break;
|
|
1335
1335
|
}
|
|
1336
1336
|
return "";
|
|
@@ -1397,7 +1397,7 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
1397
1397
|
var o = !0;
|
|
1398
1398
|
console.error = function(s) {
|
|
1399
1399
|
for (var a = [], l = 1; l < arguments.length; l++) a[l - 1] = arguments[l];
|
|
1400
|
-
PI.test(s) ? (o = !1, Nf.delete(n)) : i.apply(void 0,
|
|
1400
|
+
PI.test(s) ? (o = !1, Nf.delete(n)) : i.apply(void 0, Ra([s], a, !1));
|
|
1401
1401
|
}, rn(), o && !Nf.has(n) && (console.warn(n), Nf.add(n));
|
|
1402
1402
|
} catch (s) {
|
|
1403
1403
|
PI.test(s.message) && Nf.delete(n);
|
|
@@ -1540,7 +1540,7 @@ function Dj() {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
function Ac(t) {
|
|
1542
1542
|
for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
|
|
1543
|
-
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Dj.apply(void 0,
|
|
1543
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(e.length > 0 ? " Args: ".concat(e.join(", ")) : "")) : new Error(Dj.apply(void 0, Ra([Nj[t]], e, !1)).trim());
|
|
1544
1544
|
}
|
|
1545
1545
|
var kj = (function() {
|
|
1546
1546
|
function t(e) {
|
|
@@ -1773,21 +1773,21 @@ var kk = function(t) {
|
|
|
1773
1773
|
var e, r, n = [];
|
|
1774
1774
|
for (var i in t) {
|
|
1775
1775
|
var o = t[i];
|
|
1776
|
-
t.hasOwnProperty(i) && !kk(o) && (Array.isArray(o) && o.isCss || Sc(o) ? n.push("".concat(LI(i), ":"), o, ";") : Rc(o) ? n.push.apply(n,
|
|
1776
|
+
t.hasOwnProperty(i) && !kk(o) && (Array.isArray(o) && o.isCss || Sc(o) ? n.push("".concat(LI(i), ":"), o, ";") : Rc(o) ? n.push.apply(n, Ra(Ra(["".concat(i, " {")], Lk(o), !1), ["}"], !1)) : n.push("".concat(LI(i), ": ").concat((e = i, (r = o) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || e in Cj || e.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1777
1777
|
}
|
|
1778
1778
|
return n;
|
|
1779
1779
|
};
|
|
1780
|
-
function
|
|
1780
|
+
function va(t, e, r, n) {
|
|
1781
1781
|
if (kk(t)) return [];
|
|
1782
1782
|
if (rE(t)) return [".".concat(t.styledComponentId)];
|
|
1783
1783
|
if (Sc(t)) {
|
|
1784
1784
|
if (!Sc(o = t) || o.prototype && o.prototype.isReactComponent || !e) return [t];
|
|
1785
1785
|
var i = t(e);
|
|
1786
|
-
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof kR || Rc(i) || i === null || console.error("".concat(Ik(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),
|
|
1786
|
+
return process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || i instanceof kR || Rc(i) || i === null || console.error("".concat(Ik(t), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), va(i, e, r, n);
|
|
1787
1787
|
}
|
|
1788
1788
|
var o;
|
|
1789
1789
|
return t instanceof kR ? r ? (t.inject(r, n), [t.getName(n)]) : [t] : Rc(t) ? Lk(t) : Array.isArray(t) ? Array.prototype.concat.apply(sw, t.map(function(s) {
|
|
1790
|
-
return
|
|
1790
|
+
return va(s, e, r, n);
|
|
1791
1791
|
})) : [t.toString()];
|
|
1792
1792
|
}
|
|
1793
1793
|
function $k(t) {
|
|
@@ -1805,7 +1805,7 @@ var Qj = Mk(ow), eU = (function() {
|
|
|
1805
1805
|
var i = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, r, n) : "";
|
|
1806
1806
|
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) i = xl(i, this.staticRulesId);
|
|
1807
1807
|
else {
|
|
1808
|
-
var o = Qm(
|
|
1808
|
+
var o = Qm(va(this.rules, e, r, n)), s = AR(Ml(this.baseHash, o) >>> 0);
|
|
1809
1809
|
if (!r.hasNameForId(this.componentId, s)) {
|
|
1810
1810
|
var a = n(o, ".".concat(s), void 0, this.componentId);
|
|
1811
1811
|
r.insertRules(this.componentId, s, a);
|
|
@@ -1817,7 +1817,7 @@ var Qj = Mk(ow), eU = (function() {
|
|
|
1817
1817
|
var h = this.rules[c];
|
|
1818
1818
|
if (typeof h == "string") u += h, process.env.NODE_ENV !== "production" && (l = Ml(l, h));
|
|
1819
1819
|
else if (h) {
|
|
1820
|
-
var d = Qm(
|
|
1820
|
+
var d = Qm(va(h, e, r, n));
|
|
1821
1821
|
l = Ml(l, d + c), u += d;
|
|
1822
1822
|
}
|
|
1823
1823
|
}
|
|
@@ -1911,15 +1911,15 @@ var VI = function(t) {
|
|
|
1911
1911
|
};
|
|
1912
1912
|
function Eo(t) {
|
|
1913
1913
|
for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
|
|
1914
|
-
if (Sc(t) || Rc(t)) return VI(
|
|
1914
|
+
if (Sc(t) || Rc(t)) return VI(va(FI(sw, Ra([t], e, !0))));
|
|
1915
1915
|
var n = t;
|
|
1916
|
-
return e.length === 0 && n.length === 1 && typeof n[0] == "string" ?
|
|
1916
|
+
return e.length === 0 && n.length === 1 && typeof n[0] == "string" ? va(n) : VI(va(FI(n, e)));
|
|
1917
1917
|
}
|
|
1918
1918
|
function LR(t, e, r) {
|
|
1919
1919
|
if (r === void 0 && (r = bc), !e) throw Ac(1, e);
|
|
1920
1920
|
var n = function(i) {
|
|
1921
1921
|
for (var o = [], s = 1; s < arguments.length; s++) o[s - 1] = arguments[s];
|
|
1922
|
-
return t(e, r, Eo.apply(void 0,
|
|
1922
|
+
return t(e, r, Eo.apply(void 0, Ra([i], o, !1)));
|
|
1923
1923
|
};
|
|
1924
1924
|
return n.attrs = function(i) {
|
|
1925
1925
|
return LR(t, e, zr(zr({}, r), { attrs: Array.prototype.concat(r.attrs, i).filter(Boolean) }));
|
|
@@ -1938,7 +1938,7 @@ var rU = (function() {
|
|
|
1938
1938
|
this.rules = e, this.componentId = r, this.isStatic = $k(e), tp.registerId(this.componentId + 1);
|
|
1939
1939
|
}
|
|
1940
1940
|
return t.prototype.createStyles = function(e, r, n, i) {
|
|
1941
|
-
var o = i(Qm(
|
|
1941
|
+
var o = i(Qm(va(this.rules, r, n, i)), ""), s = this.componentId + e;
|
|
1942
1942
|
n.insertRules(s, s, o);
|
|
1943
1943
|
}, t.prototype.removeStyles = function(e, r) {
|
|
1944
1944
|
r.clearRules(this.componentId + e);
|
|
@@ -1948,7 +1948,7 @@ var rU = (function() {
|
|
|
1948
1948
|
})();
|
|
1949
1949
|
function nU(t) {
|
|
1950
1950
|
for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
|
|
1951
|
-
var n = Eo.apply(void 0,
|
|
1951
|
+
var n = Eo.apply(void 0, Ra([t], e, !1)), i = "sc-global-".concat(tE(JSON.stringify(n))), o = new rU(n, i);
|
|
1952
1952
|
process.env.NODE_ENV !== "production" && Ek(i);
|
|
1953
1953
|
var s = function(l) {
|
|
1954
1954
|
var u = DR(), c = ke.useContext(iE), h = ke.useRef(u.styleSheet.allocateGSInstance(i)).current;
|
|
@@ -1972,7 +1972,7 @@ function nU(t) {
|
|
|
1972
1972
|
function iU(t) {
|
|
1973
1973
|
for (var e = [], r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
|
|
1974
1974
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
1975
|
-
var n = Qm(Eo.apply(void 0,
|
|
1975
|
+
var n = Qm(Eo.apply(void 0, Ra([t], e, !1))), i = tE(n);
|
|
1976
1976
|
return new kR(i, n);
|
|
1977
1977
|
}
|
|
1978
1978
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
@@ -2088,7 +2088,7 @@ const dd = {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
}, lU = (t) => new URL(t);
|
|
2090
2090
|
var Vk = /* @__PURE__ */ ((t) => (t.applyActions = "ws/apply-actions/", t))(Vk || {});
|
|
2091
|
-
const uU = (t, e) => `${e.protocol ?? "wss"}://${lU(e.apiBaseUrl).host}/${t}`, Mr = "#25cc89", cU = ({ primary: t }) => (
|
|
2091
|
+
const uU = (t, e) => `${e.protocol ?? "wss"}://${lU(e.apiBaseUrl).host}/${t}`, Mr = "#25cc89", cU = ({ primary: t }) => (Is(() => {
|
|
2092
2092
|
if (!(typeof document > "u"))
|
|
2093
2093
|
return document.body.style.setProperty("--hot-primary", t ?? Mr), () => {
|
|
2094
2094
|
document.body.style.removeProperty("--hot-primary");
|
|
@@ -2739,7 +2739,7 @@ const HU = ({
|
|
|
2739
2739
|
autoComplete: s
|
|
2740
2740
|
}) => {
|
|
2741
2741
|
const [a, l] = Po(r);
|
|
2742
|
-
|
|
2742
|
+
Is(() => {
|
|
2743
2743
|
l(r);
|
|
2744
2744
|
}, [r]);
|
|
2745
2745
|
const u = (c, h) => {
|
|
@@ -3116,7 +3116,7 @@ const DU = Ge.div`
|
|
|
3116
3116
|
const [d, f] = Po(
|
|
3117
3117
|
e !== void 0 ? e : r
|
|
3118
3118
|
);
|
|
3119
|
-
|
|
3119
|
+
Is(() => {
|
|
3120
3120
|
e !== void 0 && f(e);
|
|
3121
3121
|
}, [e]);
|
|
3122
3122
|
const g = (p) => {
|
|
@@ -6129,7 +6129,7 @@ function RE(t) {
|
|
|
6129
6129
|
function yn(t) {
|
|
6130
6130
|
return t === void 0;
|
|
6131
6131
|
}
|
|
6132
|
-
function
|
|
6132
|
+
function Ps(t) {
|
|
6133
6133
|
return typeof t == "number" || Object.prototype.toString.call(t) === "[object Number]";
|
|
6134
6134
|
}
|
|
6135
6135
|
function ff(t) {
|
|
@@ -6141,7 +6141,7 @@ function EL(t, e) {
|
|
|
6141
6141
|
r.push(e(t[n], n));
|
|
6142
6142
|
return r;
|
|
6143
6143
|
}
|
|
6144
|
-
function
|
|
6144
|
+
function ha(t, e) {
|
|
6145
6145
|
for (var r in e)
|
|
6146
6146
|
ot(e, r) && (t[r] = e[r]);
|
|
6147
6147
|
return ot(e, "toString") && (t.toString = e.toString), ot(e, "valueOf") && (t.valueOf = e.valueOf), t;
|
|
@@ -6192,7 +6192,7 @@ function EE(t) {
|
|
|
6192
6192
|
}
|
|
6193
6193
|
function dw(t) {
|
|
6194
6194
|
var e = ko(NaN);
|
|
6195
|
-
return t != null ?
|
|
6195
|
+
return t != null ? ha(De(e), t) : De(e).userInvalidated = !0, e;
|
|
6196
6196
|
}
|
|
6197
6197
|
var wx = oe.momentProperties = [], GC = !1;
|
|
6198
6198
|
function TE(t, e) {
|
|
@@ -6213,7 +6213,7 @@ function TL(t) {
|
|
|
6213
6213
|
}
|
|
6214
6214
|
function pi(t, e) {
|
|
6215
6215
|
var r = !0;
|
|
6216
|
-
return
|
|
6216
|
+
return ha(function() {
|
|
6217
6217
|
if (oe.deprecationHandler != null && oe.deprecationHandler(null, t), r) {
|
|
6218
6218
|
var n = [], i, o, s, a = arguments.length;
|
|
6219
6219
|
for (o = 0; o < a; o++) {
|
|
@@ -6254,11 +6254,11 @@ function zY(t) {
|
|
|
6254
6254
|
);
|
|
6255
6255
|
}
|
|
6256
6256
|
function zR(t, e) {
|
|
6257
|
-
var r =
|
|
6257
|
+
var r = ha({}, t), n;
|
|
6258
6258
|
for (n in e)
|
|
6259
|
-
ot(e, n) && (Fl(t[n]) && Fl(e[n]) ? (r[n] = {},
|
|
6259
|
+
ot(e, n) && (Fl(t[n]) && Fl(e[n]) ? (r[n] = {}, ha(r[n], t[n]), ha(r[n], e[n])) : e[n] != null ? r[n] = e[n] : delete r[n]);
|
|
6260
6260
|
for (n in t)
|
|
6261
|
-
ot(t, n) && !ot(e, n) && Fl(t[n]) && (r[n] =
|
|
6261
|
+
ot(t, n) && !ot(e, n) && Fl(t[n]) && (r[n] = ha({}, r[n]));
|
|
6262
6262
|
return r;
|
|
6263
6263
|
}
|
|
6264
6264
|
function _E(t) {
|
|
@@ -6496,7 +6496,7 @@ function Xe(t) {
|
|
|
6496
6496
|
var GR = {};
|
|
6497
6497
|
function Ct(t, e) {
|
|
6498
6498
|
var r, n = e, i;
|
|
6499
|
-
for (typeof t == "string" && (t = [t]),
|
|
6499
|
+
for (typeof t == "string" && (t = [t]), Ps(e) && (n = function(o, s) {
|
|
6500
6500
|
s[e] = Xe(o);
|
|
6501
6501
|
}), i = t.length, r = 0; r < i; r++)
|
|
6502
6502
|
GR[t[r]] = n;
|
|
@@ -6703,7 +6703,7 @@ function kL(t, e) {
|
|
|
6703
6703
|
if (typeof e == "string") {
|
|
6704
6704
|
if (/^\d+$/.test(e))
|
|
6705
6705
|
e = Xe(e);
|
|
6706
|
-
else if (e = t.localeData().monthsParse(e), !
|
|
6706
|
+
else if (e = t.localeData().monthsParse(e), !Ps(e))
|
|
6707
6707
|
return t;
|
|
6708
6708
|
}
|
|
6709
6709
|
var r = e, n = t.date();
|
|
@@ -7063,15 +7063,15 @@ function yw(t) {
|
|
|
7063
7063
|
var e = null, r;
|
|
7064
7064
|
if (Lt[t] === void 0 && typeof module < "u" && module && module.exports && aG(t))
|
|
7065
7065
|
try {
|
|
7066
|
-
e = Fd._abbr, r = require, r("./locale/" + t),
|
|
7066
|
+
e = Fd._abbr, r = require, r("./locale/" + t), ya(e);
|
|
7067
7067
|
} catch {
|
|
7068
7068
|
Lt[t] = null;
|
|
7069
7069
|
}
|
|
7070
7070
|
return Lt[t];
|
|
7071
7071
|
}
|
|
7072
|
-
function
|
|
7072
|
+
function ya(t, e) {
|
|
7073
7073
|
var r;
|
|
7074
|
-
return t && (yn(e) ? r =
|
|
7074
|
+
return t && (yn(e) ? r = Ns(t) : r = kE(t, e), r ? Fd = r : typeof console < "u" && console.warn && console.warn(
|
|
7075
7075
|
"Locale " + t + " not found. Did you forget to load it?"
|
|
7076
7076
|
)), Fd._abbr;
|
|
7077
7077
|
}
|
|
@@ -7095,19 +7095,19 @@ function kE(t, e) {
|
|
|
7095
7095
|
}), null;
|
|
7096
7096
|
return Lt[t] = new _E(zR(n, e)), oh[t] && oh[t].forEach(function(i) {
|
|
7097
7097
|
kE(i.name, i.config);
|
|
7098
|
-
}),
|
|
7098
|
+
}), ya(t), Lt[t];
|
|
7099
7099
|
} else
|
|
7100
7100
|
return delete Lt[t], null;
|
|
7101
7101
|
}
|
|
7102
7102
|
function lG(t, e) {
|
|
7103
7103
|
if (e != null) {
|
|
7104
7104
|
var r, n, i = jL;
|
|
7105
|
-
Lt[t] != null && Lt[t].parentLocale != null ? Lt[t].set(zR(Lt[t]._config, e)) : (n = yw(t), n != null && (i = n._config), e = zR(i, e), n == null && (e.abbr = t), r = new _E(e), r.parentLocale = Lt[t], Lt[t] = r),
|
|
7105
|
+
Lt[t] != null && Lt[t].parentLocale != null ? Lt[t].set(zR(Lt[t]._config, e)) : (n = yw(t), n != null && (i = n._config), e = zR(i, e), n == null && (e.abbr = t), r = new _E(e), r.parentLocale = Lt[t], Lt[t] = r), ya(t);
|
|
7106
7106
|
} else
|
|
7107
|
-
Lt[t] != null && (Lt[t].parentLocale != null ? (Lt[t] = Lt[t].parentLocale, t ===
|
|
7107
|
+
Lt[t] != null && (Lt[t].parentLocale != null ? (Lt[t] = Lt[t].parentLocale, t === ya() && ya(t)) : Lt[t] != null && delete Lt[t]);
|
|
7108
7108
|
return Lt[t];
|
|
7109
7109
|
}
|
|
7110
|
-
function
|
|
7110
|
+
function Ns(t) {
|
|
7111
7111
|
var e;
|
|
7112
7112
|
if (t && t._locale && t._locale._abbr && (t = t._locale._abbr), !t)
|
|
7113
7113
|
return Fd;
|
|
@@ -7343,7 +7343,7 @@ function TG(t) {
|
|
|
7343
7343
|
}
|
|
7344
7344
|
for (i = 0; i < l; i++)
|
|
7345
7345
|
o = 0, s = !1, e = TE({}, t), t._useUTC != null && (e._useUTC = t._useUTC), e._f = t._f[i], FE(e), EE(e) && (s = !0), o += De(e).charsLeftOver, o += De(e).unusedTokens.length * 10, De(e).score = o, a ? o < n && (n = o, r = e) : (n == null || o < n || s) && (n = o, r = e, s && (a = !0));
|
|
7346
|
-
|
|
7346
|
+
ha(t, r || e);
|
|
7347
7347
|
}
|
|
7348
7348
|
function _G(t) {
|
|
7349
7349
|
if (!t._d) {
|
|
@@ -7362,13 +7362,13 @@ function MG(t) {
|
|
|
7362
7362
|
}
|
|
7363
7363
|
function YL(t) {
|
|
7364
7364
|
var e = t._i, r = t._f;
|
|
7365
|
-
return t._locale = t._locale ||
|
|
7365
|
+
return t._locale = t._locale || Ns(t._l), e === null || r === void 0 && e === "" ? dw({ nullInput: !0 }) : (typeof e == "string" && (t._i = e = t._locale.preparse(e)), ji(e) ? new gf(LE(e)) : (ff(e) ? t._d = e : Bi(r) ? TG(t) : r ? FE(t) : IG(t), EE(t) || (t._d = null), t));
|
|
7366
7366
|
}
|
|
7367
7367
|
function IG(t) {
|
|
7368
7368
|
var e = t._i;
|
|
7369
7369
|
yn(e) ? t._d = new Date(oe.now()) : ff(e) ? t._d = new Date(e.valueOf()) : typeof e == "string" ? bG(t) : Bi(e) ? (t._a = EL(e.slice(0), function(r) {
|
|
7370
7370
|
return parseInt(r, 10);
|
|
7371
|
-
}), $E(t)) : Fl(e) ? _G(t) :
|
|
7371
|
+
}), $E(t)) : Fl(e) ? _G(t) : Ps(e) ? t._d = new Date(e) : oe.createFromInputFallback(t);
|
|
7372
7372
|
}
|
|
7373
7373
|
function GL(t, e, r, n, i) {
|
|
7374
7374
|
var o = {};
|
|
@@ -7442,7 +7442,7 @@ function Cw(t) {
|
|
|
7442
7442
|
var e = IE(t), r = e.year || 0, n = e.quarter || 0, i = e.month || 0, o = e.week || e.isoWeek || 0, s = e.day || 0, a = e.hour || 0, l = e.minute || 0, u = e.second || 0, c = e.millisecond || 0;
|
|
7443
7443
|
this._isValid = NG(e), this._milliseconds = +c + u * 1e3 + // 1000
|
|
7444
7444
|
l * 6e4 + // 1000 * 60
|
|
7445
|
-
a * 1e3 * 60 * 60, this._days = +s + o * 7, this._months = +i + n * 3 + r * 12, this._data = {}, this._locale =
|
|
7445
|
+
a * 1e3 * 60 * 60, this._days = +s + o * 7, this._months = +i + n * 3 + r * 12, this._data = {}, this._locale = Ns(), this._bubble();
|
|
7446
7446
|
}
|
|
7447
7447
|
function Om(t) {
|
|
7448
7448
|
return t instanceof Cw;
|
|
@@ -7547,7 +7547,7 @@ function Gi(t, e) {
|
|
|
7547
7547
|
ms: t._milliseconds,
|
|
7548
7548
|
d: t._days,
|
|
7549
7549
|
M: t._months
|
|
7550
|
-
} :
|
|
7550
|
+
} : Ps(t) || !isNaN(+t) ? (r = {}, e ? r[e] = +t : r.milliseconds = +t) : (n = KG.exec(t)) ? (i = n[1] === "-" ? -1 : 1, r = {
|
|
7551
7551
|
y: 0,
|
|
7552
7552
|
d: Xe(n[To]) * i,
|
|
7553
7553
|
h: Xe(n[Rr]) * i,
|
|
@@ -7600,7 +7600,7 @@ function QL(t) {
|
|
|
7600
7600
|
return typeof t == "string" || t instanceof String;
|
|
7601
7601
|
}
|
|
7602
7602
|
function eq(t) {
|
|
7603
|
-
return ji(t) || ff(t) || QL(t) ||
|
|
7603
|
+
return ji(t) || ff(t) || QL(t) || Ps(t) || rq(t) || tq(t) || t === null || t === void 0;
|
|
7604
7604
|
}
|
|
7605
7605
|
function tq(t) {
|
|
7606
7606
|
var e = Fl(t) && !RE(t), r = !1, n = [
|
|
@@ -7636,7 +7636,7 @@ function tq(t) {
|
|
|
7636
7636
|
function rq(t) {
|
|
7637
7637
|
var e = Bi(t), r = !1;
|
|
7638
7638
|
return e && (r = t.filter(function(n) {
|
|
7639
|
-
return !
|
|
7639
|
+
return !Ps(n) && QL(t);
|
|
7640
7640
|
}).length === 0), e && r;
|
|
7641
7641
|
}
|
|
7642
7642
|
function nq(t) {
|
|
@@ -7777,7 +7777,7 @@ function bq(t) {
|
|
|
7777
7777
|
}
|
|
7778
7778
|
function e$(t) {
|
|
7779
7779
|
var e;
|
|
7780
|
-
return t === void 0 ? this._locale._abbr : (e =
|
|
7780
|
+
return t === void 0 ? this._locale._abbr : (e = Ns(t), e != null && (this._locale = e), this);
|
|
7781
7781
|
}
|
|
7782
7782
|
var t$ = pi(
|
|
7783
7783
|
"moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",
|
|
@@ -7940,7 +7940,7 @@ function Oq() {
|
|
|
7940
7940
|
return EE(this);
|
|
7941
7941
|
}
|
|
7942
7942
|
function xq() {
|
|
7943
|
-
return
|
|
7943
|
+
return ha({}, De(this));
|
|
7944
7944
|
}
|
|
7945
7945
|
function Aq() {
|
|
7946
7946
|
return De(this).overflow;
|
|
@@ -7986,7 +7986,7 @@ Ct(["yo"], function(t, e, r, n) {
|
|
|
7986
7986
|
r._locale._eraYearOrdinalRegex && (i = t.match(r._locale._eraYearOrdinalRegex)), r._locale.eraYearOrdinalParse ? e[Yr] = r._locale.eraYearOrdinalParse(t, i) : e[Yr] = parseInt(t, 10);
|
|
7987
7987
|
});
|
|
7988
7988
|
function Nq(t, e) {
|
|
7989
|
-
var r, n, i, o = this._eras ||
|
|
7989
|
+
var r, n, i, o = this._eras || Ns("en")._eras;
|
|
7990
7990
|
for (r = 0, n = o.length; r < n; ++r) {
|
|
7991
7991
|
switch (typeof o[r].since) {
|
|
7992
7992
|
case "string":
|
|
@@ -8230,14 +8230,14 @@ _e(0, ["SSSSSSSSS", 9], 0, function() {
|
|
|
8230
8230
|
me("S", gw, IL);
|
|
8231
8231
|
me("SS", gw, Yn);
|
|
8232
8232
|
me("SSS", gw, PL);
|
|
8233
|
-
var
|
|
8234
|
-
for (
|
|
8235
|
-
me(
|
|
8233
|
+
var da, l$;
|
|
8234
|
+
for (da = "SSSS"; da.length <= 9; da += "S")
|
|
8235
|
+
me(da, $c);
|
|
8236
8236
|
function iK(t, e) {
|
|
8237
8237
|
e[Al] = Xe(("0." + t) * 1e3);
|
|
8238
8238
|
}
|
|
8239
|
-
for (
|
|
8240
|
-
Ct(
|
|
8239
|
+
for (da = "S"; da.length <= 9; da += "S")
|
|
8240
|
+
Ct(da, iK);
|
|
8241
8241
|
l$ = Vc("Milliseconds", !1);
|
|
8242
8242
|
_e("z", 0, 0, "zoneAbbr");
|
|
8243
8243
|
_e("zz", 0, 0, "zoneName");
|
|
@@ -8390,11 +8390,11 @@ st.weekdaysMinRegex = Q2;
|
|
|
8390
8390
|
st.isPM = tG;
|
|
8391
8391
|
st.meridiem = iG;
|
|
8392
8392
|
function sp(t, e, r, n) {
|
|
8393
|
-
var i =
|
|
8393
|
+
var i = Ns(), o = ko().set(n, e);
|
|
8394
8394
|
return i[r](o, t);
|
|
8395
8395
|
}
|
|
8396
8396
|
function c$(t, e, r) {
|
|
8397
|
-
if (
|
|
8397
|
+
if (Ps(t) && (e = t, t = void 0), t = t || "", e != null)
|
|
8398
8398
|
return sp(t, e, r, "month");
|
|
8399
8399
|
var n, i = [];
|
|
8400
8400
|
for (n = 0; n < 12; n++)
|
|
@@ -8402,8 +8402,8 @@ function c$(t, e, r) {
|
|
|
8402
8402
|
return i;
|
|
8403
8403
|
}
|
|
8404
8404
|
function UE(t, e, r, n) {
|
|
8405
|
-
typeof t == "boolean" ? (
|
|
8406
|
-
var i =
|
|
8405
|
+
typeof t == "boolean" ? (Ps(e) && (r = e, e = void 0), e = e || "") : (e = t, r = e, t = !1, Ps(e) && (r = e, e = void 0), e = e || "");
|
|
8406
|
+
var i = Ns(), o = t ? i._week.dow : 0, s, a = [];
|
|
8407
8407
|
if (r != null)
|
|
8408
8408
|
return sp(e, (r + o) % 7, n, "day");
|
|
8409
8409
|
for (s = 0; s < 7; s++)
|
|
@@ -8425,7 +8425,7 @@ function dK(t, e, r) {
|
|
|
8425
8425
|
function fK(t, e, r) {
|
|
8426
8426
|
return UE(t, e, r, "weekdaysMin");
|
|
8427
8427
|
}
|
|
8428
|
-
|
|
8428
|
+
ya("en", {
|
|
8429
8429
|
eras: [
|
|
8430
8430
|
{
|
|
8431
8431
|
since: "0001-01-01",
|
|
@@ -8452,11 +8452,11 @@ va("en", {
|
|
|
8452
8452
|
});
|
|
8453
8453
|
oe.lang = pi(
|
|
8454
8454
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
8455
|
-
|
|
8455
|
+
ya
|
|
8456
8456
|
);
|
|
8457
8457
|
oe.langData = pi(
|
|
8458
8458
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
8459
|
-
|
|
8459
|
+
Ns
|
|
8460
8460
|
);
|
|
8461
8461
|
var zo = Math.abs;
|
|
8462
8462
|
function gK() {
|
|
@@ -8518,12 +8518,12 @@ function vK(t) {
|
|
|
8518
8518
|
throw new Error("Unknown unit " + t);
|
|
8519
8519
|
}
|
|
8520
8520
|
}
|
|
8521
|
-
function
|
|
8521
|
+
function Ds(t) {
|
|
8522
8522
|
return function() {
|
|
8523
8523
|
return this.as(t);
|
|
8524
8524
|
};
|
|
8525
8525
|
}
|
|
8526
|
-
var f$ =
|
|
8526
|
+
var f$ = Ds("ms"), yK = Ds("s"), CK = Ds("m"), bK = Ds("h"), SK = Ds("d"), RK = Ds("w"), EK = Ds("M"), TK = Ds("Q"), _K = Ds("y"), MK = f$;
|
|
8527
8527
|
function IK() {
|
|
8528
8528
|
return Gi(this);
|
|
8529
8529
|
}
|
|
@@ -8643,13 +8643,13 @@ oe.utc = ko;
|
|
|
8643
8643
|
oe.unix = aK;
|
|
8644
8644
|
oe.months = uK;
|
|
8645
8645
|
oe.isDate = ff;
|
|
8646
|
-
oe.locale =
|
|
8646
|
+
oe.locale = ya;
|
|
8647
8647
|
oe.invalid = dw;
|
|
8648
8648
|
oe.duration = Gi;
|
|
8649
8649
|
oe.isMoment = ji;
|
|
8650
8650
|
oe.weekdays = hK;
|
|
8651
8651
|
oe.parseZone = lK;
|
|
8652
|
-
oe.localeData =
|
|
8652
|
+
oe.localeData = Ns;
|
|
8653
8653
|
oe.isDuration = Om;
|
|
8654
8654
|
oe.monthsShort = cK;
|
|
8655
8655
|
oe.weekdaysMin = fK;
|
|
@@ -9062,7 +9062,7 @@ function T$(t) {
|
|
|
9062
9062
|
T$(e[r]);
|
|
9063
9063
|
}
|
|
9064
9064
|
}
|
|
9065
|
-
function
|
|
9065
|
+
function Os(t) {
|
|
9066
9066
|
let e;
|
|
9067
9067
|
for (; e = t.lastChild; )
|
|
9068
9068
|
t.removeChild(e);
|
|
@@ -9074,7 +9074,7 @@ function Bc(t, e) {
|
|
|
9074
9074
|
}
|
|
9075
9075
|
function zl(t, e) {
|
|
9076
9076
|
const r = t.firstChild;
|
|
9077
|
-
r && r.nodeType === 3 && r.nextSibling === null ? r.textContent = e : (
|
|
9077
|
+
r && r.nodeType === 3 && r.nextSibling === null ? r.textContent = e : (Os(t), t.appendChild(t.ownerDocument.createTextNode(e)));
|
|
9078
9078
|
}
|
|
9079
9079
|
function Tc(t) {
|
|
9080
9080
|
const e = t.ownerDocument.documentElement, r = t.ownerDocument.defaultView;
|
|
@@ -9442,7 +9442,7 @@ function ZE(t, e) {
|
|
|
9442
9442
|
function Ve(t) {
|
|
9443
9443
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
9444
9444
|
}
|
|
9445
|
-
function
|
|
9445
|
+
function ks(t, e, r, n) {
|
|
9446
9446
|
n.value = r, n.writable = n.writable !== !1, n.enumerable = n.enumerable !== !1, n.configurable = n.configurable !== !1, Object.defineProperty(t, e, n);
|
|
9447
9447
|
}
|
|
9448
9448
|
function We(t, e) {
|
|
@@ -13184,28 +13184,28 @@ const gc = Object.freeze({
|
|
|
13184
13184
|
CELL: "cell",
|
|
13185
13185
|
MIXED: "mixed"
|
|
13186
13186
|
});
|
|
13187
|
-
var hr = /* @__PURE__ */ new WeakMap(), Uf = /* @__PURE__ */ new WeakMap(), zf = /* @__PURE__ */ new WeakMap(), Yf = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(),
|
|
13187
|
+
var hr = /* @__PURE__ */ new WeakMap(), Uf = /* @__PURE__ */ new WeakMap(), zf = /* @__PURE__ */ new WeakMap(), Yf = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), na = /* @__PURE__ */ new WeakSet();
|
|
13188
13188
|
class y4 {
|
|
13189
13189
|
constructor(e) {
|
|
13190
13190
|
var r = this;
|
|
13191
|
-
v4(this,
|
|
13191
|
+
v4(this, na), ah(this, hr, void 0), ah(this, Uf, void 0), ah(this, zf, 1), ah(this, Yf, null), ah(this, Gf, /* @__PURE__ */ new Map());
|
|
13192
13192
|
const n = e.getSettings();
|
|
13193
13193
|
lh(hr, this, e), lh(Uf, this, n.imeFastEdit ? gc.MIXED : gc.CELL), Et(hr, this).addHook("afterUpdateSettings", function() {
|
|
13194
13194
|
for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
|
|
13195
13195
|
o[s] = arguments[s];
|
|
13196
|
-
return ms(
|
|
13196
|
+
return ms(na, r, b4).call(r, ...o);
|
|
13197
13197
|
}), Et(hr, this).addHook("afterSelection", function() {
|
|
13198
13198
|
for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
|
|
13199
13199
|
o[s] = arguments[s];
|
|
13200
|
-
return ms(
|
|
13200
|
+
return ms(na, r, Qx).call(r, ...o);
|
|
13201
13201
|
}), Et(hr, this).addHook("afterSelectionFocusSet", function() {
|
|
13202
13202
|
for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
|
|
13203
13203
|
o[s] = arguments[s];
|
|
13204
|
-
return ms(
|
|
13204
|
+
return ms(na, r, Qx).call(r, ...o);
|
|
13205
13205
|
}), Et(hr, this).addHook("afterSelectionEnd", function() {
|
|
13206
13206
|
for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
|
|
13207
13207
|
o[s] = arguments[s];
|
|
13208
|
-
return ms(
|
|
13208
|
+
return ms(na, r, C4).call(r, ...o);
|
|
13209
13209
|
});
|
|
13210
13210
|
}
|
|
13211
13211
|
/**
|
|
@@ -13275,7 +13275,7 @@ class y4 {
|
|
|
13275
13275
|
preventScroll: !0
|
|
13276
13276
|
});
|
|
13277
13277
|
};
|
|
13278
|
-
e ? r(e) : ms(
|
|
13278
|
+
e ? r(e) : ms(na, this, tT).call(this, (n) => r(n));
|
|
13279
13279
|
}
|
|
13280
13280
|
/**
|
|
13281
13281
|
* Set the focus to the active editor's `TEXTAREA` element after the provided delay. If no delay is provided, it
|
|
@@ -13310,7 +13310,7 @@ function tT(t) {
|
|
|
13310
13310
|
}) : t(n);
|
|
13311
13311
|
}
|
|
13312
13312
|
function Qx() {
|
|
13313
|
-
ms(
|
|
13313
|
+
ms(na, this, tT).call(this, (t) => {
|
|
13314
13314
|
const {
|
|
13315
13315
|
activeElement: e
|
|
13316
13316
|
} = Et(hr, this).rootDocument;
|
|
@@ -13318,7 +13318,7 @@ function Qx() {
|
|
|
13318
13318
|
});
|
|
13319
13319
|
}
|
|
13320
13320
|
function C4() {
|
|
13321
|
-
ms(
|
|
13321
|
+
ms(na, this, tT).call(this, (t) => {
|
|
13322
13322
|
this.getFocusMode() === gc.MIXED && (t == null ? void 0 : t.nodeName) === "TD" && this.refocusToEditorTextarea();
|
|
13323
13323
|
});
|
|
13324
13324
|
}
|
|
@@ -15349,7 +15349,7 @@ function $X(t, e) {
|
|
|
15349
15349
|
function ye(t, e) {
|
|
15350
15350
|
return t.get(oF(t, e));
|
|
15351
15351
|
}
|
|
15352
|
-
function
|
|
15352
|
+
function Fs(t, e, r) {
|
|
15353
15353
|
return t.set(oF(t, e), r), r;
|
|
15354
15354
|
}
|
|
15355
15355
|
function oF(t, e, r) {
|
|
@@ -15369,7 +15369,7 @@ let sF = class {
|
|
|
15369
15369
|
*/
|
|
15370
15370
|
constructor(e, r, n, i, o, s) {
|
|
15371
15371
|
let a = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : null;
|
|
15372
|
-
Zi(this, Zn, void 0), Zi(this, wb, void 0), Zi(this, Tr, void 0), Zi(this, mu, void 0), Zi(this, qf, void 0), Zi(this, bi, void 0), Zi(this, vb, void 0), Zi(this, mh, void 0), Zi(this, Wa, [null, null]), Zi(this, Ji, [null, null]),
|
|
15372
|
+
Zi(this, Zn, void 0), Zi(this, wb, void 0), Zi(this, Tr, void 0), Zi(this, mu, void 0), Zi(this, qf, void 0), Zi(this, bi, void 0), Zi(this, vb, void 0), Zi(this, mh, void 0), Zi(this, Wa, [null, null]), Zi(this, Ji, [null, null]), Fs(Zn, this, n), Fs(wb, this, r), Fs(Tr, this, o), Fs(mu, this, s), Fs(qf, this, a), Fs(bi, this, i), Fs(vb, this, e), this.registerEvents();
|
|
15373
15373
|
}
|
|
15374
15374
|
/**
|
|
15375
15375
|
* Adds listeners for mouse and touch events.
|
|
@@ -15485,7 +15485,7 @@ let sF = class {
|
|
|
15485
15485
|
* @param {MouseEvent} event The mouse event object.
|
|
15486
15486
|
*/
|
|
15487
15487
|
onTouchStart(e) {
|
|
15488
|
-
|
|
15488
|
+
Fs(mh, this, ye(mu, this).getFocusSelection().cellRange), this.touchApplied = !0, this.onMouseDown(e);
|
|
15489
15489
|
}
|
|
15490
15490
|
/**
|
|
15491
15491
|
* OnTouchEnd callback. Simulates mouseup event.
|
|
@@ -16305,7 +16305,7 @@ class w5 extends Cf {
|
|
|
16305
16305
|
if (s > e)
|
|
16306
16306
|
for (let a = e; a < s; a++)
|
|
16307
16307
|
this.rootNode.removeChild(this.rootNode.lastChild);
|
|
16308
|
-
} else n &&
|
|
16308
|
+
} else n && Os(n);
|
|
16309
16309
|
}
|
|
16310
16310
|
/**
|
|
16311
16311
|
* Renders the TH elements.
|
|
@@ -16957,7 +16957,7 @@ class jc {
|
|
|
16957
16957
|
const v = {};
|
|
16958
16958
|
this.wtSettings.getSetting("beforeDraw", !0, v), w = v.skipRender !== !0;
|
|
16959
16959
|
}
|
|
16960
|
-
w && (this.tableRenderer.setHeaderContentRenderers(a, u), (this.is(_o) || this.is(
|
|
16960
|
+
w && (this.tableRenderer.setHeaderContentRenderers(a, u), (this.is(_o) || this.is(Ca)) && this.tableRenderer.setHeaderContentRenderers(a, []), this.resetOversizedRows(), this.tableRenderer.setActiveOverlayName(this.name).setViewportSize(this.getRenderedRowsCount(), this.getRenderedColumnsCount()).setFilters(this.rowFilter, this.columnFilter).render(), this.isMaster && this.markOversizedColumnHeaders(), this.adjustColumnHeaderHeights(), (this.isMaster || this.is(_o)) && this.markOversizedRows(), this.isMaster ? (this.wtSettings.getSetting("externalRowCalculator") || i.createVisibleCalculators(), n.refresh(!1), n.applyToDOM(), this.wtSettings.getSetting("onDraw", !0)) : this.is(_o) && this.dataAccessObject.cloneSource.wtOverlays.adjustElementsSize());
|
|
16961
16961
|
}
|
|
16962
16962
|
let d = !1;
|
|
16963
16963
|
return this.isMaster && (d = n.topOverlay.resetFixedPosition(), n.bottomOverlay.clone && (d = n.bottomOverlay.resetFixedPosition() || d), d = n.inlineStartOverlay.resetFixedPosition() || d, n.topInlineStartCornerOverlay && n.topInlineStartCornerOverlay.resetFixedPosition(), n.bottomInlineStartCornerOverlay && n.bottomInlineStartCornerOverlay.clone && n.bottomInlineStartCornerOverlay.resetFixedPosition()), d ? (n.refreshAll(), n.adjustElementsSize()) : this.dataAccessObject.selectionManager.setActiveOverlay(this.facadeGetter()).render(h), this.isMaster && n.afterDraw(), this.dataAccessObject.drawn = !0, this;
|
|
@@ -17133,7 +17133,7 @@ class jc {
|
|
|
17133
17133
|
return null;
|
|
17134
17134
|
const i = n.parentNode;
|
|
17135
17135
|
let o = S3(n), s = r.cellIndex;
|
|
17136
|
-
Fa(Xl, r, this.wtRootElement) || Fa(ql, r, this.wtRootElement) ? i.nodeName === "THEAD" && (o -= i.childNodes.length) : Fa(
|
|
17136
|
+
Fa(Xl, r, this.wtRootElement) || Fa(ql, r, this.wtRootElement) ? i.nodeName === "THEAD" && (o -= i.childNodes.length) : Fa(Ca, r, this.wtRootElement) || Fa(_o, r, this.wtRootElement) ? o = this.wtSettings.getSetting("totalRows") - i.childNodes.length + o : i === this.THEAD ? o = this.rowFilter.visibleColHeadedRowToSourceRow(o) : this.rowFilter && (o = this.rowFilter.renderedToSource(o)), Fa(Xl, r, this.wtRootElement) || Fa(Kl, r, this.wtRootElement) || Fa(Ca, r, this.wtRootElement) ? s = this.columnFilter.offsettedTH(s) : this.columnFilter && (s = this.columnFilter.visibleRowHeadedColumnToSourceColumn(s));
|
|
17137
17137
|
const a = this.wtSettings.getSetting("onModifyGetCoordsElement", o, s);
|
|
17138
17138
|
return a && Array.isArray(a) && ([o, s] = a), this.wot.createCellCoords(o, s);
|
|
17139
17139
|
}
|
|
@@ -17534,7 +17534,7 @@ const $5 = "stickyRowsBottom", iT = {
|
|
|
17534
17534
|
return 0;
|
|
17535
17535
|
}
|
|
17536
17536
|
};
|
|
17537
|
-
|
|
17537
|
+
ks(iT, "MIXIN_NAME", $5, {
|
|
17538
17538
|
writable: !1,
|
|
17539
17539
|
enumerable: !1
|
|
17540
17540
|
});
|
|
@@ -17626,7 +17626,7 @@ const F5 = "stickyColumnsStart", Ow = {
|
|
|
17626
17626
|
return this.dataAccessObject.rowHeaders.length;
|
|
17627
17627
|
}
|
|
17628
17628
|
};
|
|
17629
|
-
|
|
17629
|
+
ks(Ow, "MIXIN_NAME", F5, {
|
|
17630
17630
|
writable: !1,
|
|
17631
17631
|
enumerable: !1
|
|
17632
17632
|
});
|
|
@@ -17638,12 +17638,12 @@ class oT extends jc {
|
|
|
17638
17638
|
* @param {Settings} wtSettings The Walkontable settings.
|
|
17639
17639
|
*/
|
|
17640
17640
|
constructor(e, r, n, i) {
|
|
17641
|
-
super(e, r, n, i,
|
|
17641
|
+
super(e, r, n, i, Ca);
|
|
17642
17642
|
}
|
|
17643
17643
|
}
|
|
17644
17644
|
yt(oT, iT);
|
|
17645
17645
|
yt(oT, Ow);
|
|
17646
|
-
const ql = "top", _o = "bottom", Kl = "inline_start", Xl = "top_inline_start_corner",
|
|
17646
|
+
const ql = "top", _o = "bottom", Kl = "inline_start", Xl = "top_inline_start_corner", Ca = "bottom_inline_start_corner", uF = [ql, _o, Kl, Xl, Ca], V5 = /* @__PURE__ */ new Map([[ql, `ht_clone_${ql}`], [_o, `ht_clone_${_o}`], [Kl, `ht_clone_${Kl} ht_clone_left`], [Xl, `ht_clone_${Xl} ht_clone_top_left_corner`], [Ca, `ht_clone_${Ca} ht_clone_bottom_left_corner`]]);
|
|
17647
17647
|
function W5(t, e) {
|
|
17648
17648
|
B5(t, e), e.add(t);
|
|
17649
17649
|
}
|
|
@@ -18238,7 +18238,7 @@ let bf = class {
|
|
|
18238
18238
|
* @param {DomBindings} domBindings Dom elements bound to the current instance.
|
|
18239
18239
|
*/
|
|
18240
18240
|
constructor(e, r, n, i, o) {
|
|
18241
|
-
J5(this, "wtSettings", null),
|
|
18241
|
+
J5(this, "wtSettings", null), ks(this, "wot", e, {
|
|
18242
18242
|
writable: !1
|
|
18243
18243
|
}), this.domBindings = o, this.facadeGetter = r, this.wtSettings = i;
|
|
18244
18244
|
const {
|
|
@@ -18459,7 +18459,7 @@ class t6 extends bf {
|
|
|
18459
18459
|
* @param {InlineStartOverlay} inlineStartOverlay The instance of the InlineStart overlay.
|
|
18460
18460
|
*/
|
|
18461
18461
|
constructor(e, r, n, i, o, s) {
|
|
18462
|
-
super(e, r,
|
|
18462
|
+
super(e, r, Ca, n, i), this.bottomOverlay = o, this.inlineStartOverlay = s;
|
|
18463
18463
|
}
|
|
18464
18464
|
/**
|
|
18465
18465
|
* Factory method to create a subclass of `Table` that is relevant to this overlay.
|
|
@@ -18605,7 +18605,7 @@ const r6 = "calculatedColumns", xw = {
|
|
|
18605
18605
|
return this.dataAccessObject.rowHeaders.length;
|
|
18606
18606
|
}
|
|
18607
18607
|
};
|
|
18608
|
-
|
|
18608
|
+
ks(xw, "MIXIN_NAME", r6, {
|
|
18609
18609
|
writable: !1,
|
|
18610
18610
|
enumerable: !1
|
|
18611
18611
|
});
|
|
@@ -18951,7 +18951,7 @@ const a6 = "calculatedRows", lT = {
|
|
|
18951
18951
|
return this.dataAccessObject.columnHeaders.length;
|
|
18952
18952
|
}
|
|
18953
18953
|
};
|
|
18954
|
-
|
|
18954
|
+
ks(lT, "MIXIN_NAME", a6, {
|
|
18955
18955
|
writable: !1,
|
|
18956
18956
|
enumerable: !1
|
|
18957
18957
|
});
|
|
@@ -19010,7 +19010,7 @@ const l6 = "localHooks", Dr = {
|
|
|
19010
19010
|
return this._localHooks = {}, this;
|
|
19011
19011
|
}
|
|
19012
19012
|
};
|
|
19013
|
-
|
|
19013
|
+
ks(Dr, "MIXIN_NAME", l6, {
|
|
19014
19014
|
writable: !1,
|
|
19015
19015
|
enumerable: !1
|
|
19016
19016
|
});
|
|
@@ -20115,7 +20115,7 @@ const b6 = "stickyRowsTop", gT = {
|
|
|
20115
20115
|
return this.dataAccessObject.columnHeaders.length;
|
|
20116
20116
|
}
|
|
20117
20117
|
};
|
|
20118
|
-
|
|
20118
|
+
ks(gT, "MIXIN_NAME", b6, {
|
|
20119
20119
|
writable: !1,
|
|
20120
20120
|
enumerable: !1
|
|
20121
20121
|
});
|
|
@@ -21384,7 +21384,7 @@ function ki(t, e, r) {
|
|
|
21384
21384
|
throw new TypeError("Private element is not present on this object");
|
|
21385
21385
|
}
|
|
21386
21386
|
const qA = 23;
|
|
21387
|
-
var fo = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), vT = /* @__PURE__ */ new WeakMap(), a0 = /* @__PURE__ */ new WeakMap(),
|
|
21387
|
+
var fo = /* @__PURE__ */ new WeakMap(), ps = /* @__PURE__ */ new WeakMap(), vT = /* @__PURE__ */ new WeakMap(), a0 = /* @__PURE__ */ new WeakMap(), ta = /* @__PURE__ */ new WeakMap(), sd = /* @__PURE__ */ new WeakMap(), jd = /* @__PURE__ */ new WeakMap(), po = /* @__PURE__ */ new WeakSet();
|
|
21388
21388
|
class $6 {
|
|
21389
21389
|
/**
|
|
21390
21390
|
* Initializes a new instance of the `StylesHandler` class.
|
|
@@ -21392,7 +21392,7 @@ class $6 {
|
|
|
21392
21392
|
* @param {object} domBindings - The DOM bindings for the instance.
|
|
21393
21393
|
*/
|
|
21394
21394
|
constructor(e) {
|
|
21395
|
-
L6(this, po), Ua(this, fo, void 0), Ua(this, ps, void 0), Ua(this, vT, void 0), Ua(this, a0, void 0), Ua(this,
|
|
21395
|
+
L6(this, po), Ua(this, fo, void 0), Ua(this, ps, void 0), Ua(this, vT, void 0), Ua(this, a0, void 0), Ua(this, ta, !0), Ua(this, sd, {}), Ua(this, jd, {}), Di(ps, this, e.rootTable.parentElement.parentElement), Di(a0, this, e.rootDocument);
|
|
21396
21396
|
}
|
|
21397
21397
|
/**
|
|
21398
21398
|
* Gets the value indicating whether the classic theme is enabled.
|
|
@@ -21400,7 +21400,7 @@ class $6 {
|
|
|
21400
21400
|
* @returns {boolean} `true` if the classic theme is enabled, `false` otherwise.
|
|
21401
21401
|
*/
|
|
21402
21402
|
isClassicTheme() {
|
|
21403
|
-
return Ht(
|
|
21403
|
+
return Ht(ta, this);
|
|
21404
21404
|
}
|
|
21405
21405
|
/**
|
|
21406
21406
|
* Retrieves the value of a specified CSS variable.
|
|
@@ -21410,7 +21410,7 @@ class $6 {
|
|
|
21410
21410
|
*/
|
|
21411
21411
|
getCSSVariableValue(e) {
|
|
21412
21412
|
var r;
|
|
21413
|
-
if (Ht(
|
|
21413
|
+
if (Ht(ta, this))
|
|
21414
21414
|
return null;
|
|
21415
21415
|
if (Ht(sd, this)[`--ht-${e}`])
|
|
21416
21416
|
return Ht(sd, this)[`--ht-${e}`];
|
|
@@ -21434,10 +21434,10 @@ class $6 {
|
|
|
21434
21434
|
* @returns {number} The calculated row height.
|
|
21435
21435
|
*/
|
|
21436
21436
|
getDefaultRowHeight() {
|
|
21437
|
-
if (Ht(
|
|
21437
|
+
if (Ht(ta, this))
|
|
21438
21438
|
return qA;
|
|
21439
21439
|
const e = ki(po, this, F6).call(this);
|
|
21440
|
-
return !e && Te(Ht(ps, this), "ht-wrapper") ? (it(`The "${Ht(fo, this)}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`), Di(
|
|
21440
|
+
return !e && Te(Ht(ps, this), "ht-wrapper") ? (it(`The "${Ht(fo, this)}" theme is enabled, but its stylesheets are missing or not imported correctly. Import the correct CSS files in order to use that theme.`), Di(ta, this, !0), this.useTheme(), qA) : e;
|
|
21441
21441
|
}
|
|
21442
21442
|
/**
|
|
21443
21443
|
* Checks if the cells are using the `border-box` box-sizing model.
|
|
@@ -21454,10 +21454,10 @@ class $6 {
|
|
|
21454
21454
|
*/
|
|
21455
21455
|
useTheme(e) {
|
|
21456
21456
|
if (!e) {
|
|
21457
|
-
ki(po, this, KA).call(this), Di(
|
|
21457
|
+
ki(po, this, KA).call(this), Di(ta, this, !0), Di(fo, this, e || void 0);
|
|
21458
21458
|
return;
|
|
21459
21459
|
}
|
|
21460
|
-
e && e !== Ht(fo, this) && (Ht(fo, this) && ki(po, this, j6).call(this), Di(fo, this, e), Di(
|
|
21460
|
+
e && e !== Ht(fo, this) && (Ht(fo, this) && ki(po, this, j6).call(this), Di(fo, this, e), Di(ta, this, !1), ki(po, this, V6).call(this), ki(po, this, KA).call(this));
|
|
21461
21461
|
}
|
|
21462
21462
|
/**
|
|
21463
21463
|
* Gets the name of the theme.
|
|
@@ -21507,7 +21507,7 @@ function pF(t) {
|
|
|
21507
21507
|
return e === "" ? null : e;
|
|
21508
21508
|
}
|
|
21509
21509
|
function j6() {
|
|
21510
|
-
Di(jd, this, {}), Di(sd, this, {}), Di(
|
|
21510
|
+
Di(jd, this, {}), Di(sd, this, {}), Di(ta, this, !0);
|
|
21511
21511
|
}
|
|
21512
21512
|
class U6 extends sT {
|
|
21513
21513
|
/**
|
|
@@ -21805,13 +21805,13 @@ function Dm(t) {
|
|
|
21805
21805
|
function K6(t, e) {
|
|
21806
21806
|
vF(t, e), e.add(t);
|
|
21807
21807
|
}
|
|
21808
|
-
function
|
|
21808
|
+
function Vs(t, e, r) {
|
|
21809
21809
|
vF(t, e), e.set(t, r);
|
|
21810
21810
|
}
|
|
21811
21811
|
function vF(t, e) {
|
|
21812
21812
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
21813
21813
|
}
|
|
21814
|
-
function
|
|
21814
|
+
function Ws(t, e, r) {
|
|
21815
21815
|
return (e = X6(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
21816
21816
|
}
|
|
21817
21817
|
function X6(t) {
|
|
@@ -21844,7 +21844,7 @@ class J6 {
|
|
|
21844
21844
|
* @param {Hanstontable} hotInstance Instance of {@link Handsontable}.
|
|
21845
21845
|
*/
|
|
21846
21846
|
constructor(e) {
|
|
21847
|
-
K6(this, ad),
|
|
21847
|
+
K6(this, ad), Ws(this, "hot", void 0), Ws(this, "eventManager", void 0), Ws(this, "settings", void 0), Ws(this, "THEAD", void 0), Ws(this, "TBODY", void 0), Ws(this, "_wt", void 0), Ws(this, "activeWt", void 0), Vs(this, _b, 0), Vs(this, tg, 0), Ws(this, "postponedAdjustElementsSize", !1), Vs(this, rg, !1), Vs(this, Ko, void 0), Vs(this, Si, void 0), Vs(this, Mb, 0), Vs(this, Ib, 0), Vs(this, bu, null), this.hot = e, this.eventManager = new zi(this.hot), this.settings = this.hot.getSettings(), this.createElements(), this.registerEvents(), this.initializeWalkontable();
|
|
21848
21848
|
}
|
|
21849
21849
|
/**
|
|
21850
21850
|
* Renders WalkontableUI.
|
|
@@ -22488,7 +22488,7 @@ class J6 {
|
|
|
22488
22488
|
if (r.firstChild) {
|
|
22489
22489
|
const n = r.firstChild;
|
|
22490
22490
|
if (!Te(n, "relative")) {
|
|
22491
|
-
|
|
22491
|
+
Os(r), this.appendRowHeader(e, r);
|
|
22492
22492
|
return;
|
|
22493
22493
|
}
|
|
22494
22494
|
this.updateCellHeader(n.querySelector(".rowHeader"), e, this.hot.getRowHeader);
|
|
@@ -22519,7 +22519,7 @@ class J6 {
|
|
|
22519
22519
|
};
|
|
22520
22520
|
if (r.firstChild) {
|
|
22521
22521
|
const s = r.firstChild;
|
|
22522
|
-
Te(s, "relative") ? (this.updateCellHeader(s.querySelector(".colHeader"), e, n, i), s.className = "", ne(s, ["relative", ...o()])) : (
|
|
22522
|
+
Te(s, "relative") ? (this.updateCellHeader(s.querySelector(".colHeader"), e, n, i), s.className = "", ne(s, ["relative", ...o()])) : (Os(r), this.appendColHeader(e, r, n, i));
|
|
22523
22523
|
} else {
|
|
22524
22524
|
const {
|
|
22525
22525
|
rootDocument: s
|
|
@@ -24470,7 +24470,7 @@ function K9(t, e) {
|
|
|
24470
24470
|
}
|
|
24471
24471
|
return (e === "string" ? String : Number)(t);
|
|
24472
24472
|
}
|
|
24473
|
-
class
|
|
24473
|
+
class Ls extends cF {
|
|
24474
24474
|
constructor(e, r) {
|
|
24475
24475
|
super(e, null), G9(this, "visualCellRange", null), this.visualCellRange = r || null, this.commit();
|
|
24476
24476
|
}
|
|
@@ -24619,7 +24619,7 @@ function xb(t) {
|
|
|
24619
24619
|
activeHeaderClassName: e,
|
|
24620
24620
|
...r
|
|
24621
24621
|
} = t;
|
|
24622
|
-
return new
|
|
24622
|
+
return new Ls({
|
|
24623
24623
|
className: e,
|
|
24624
24624
|
...r,
|
|
24625
24625
|
selectionType: hF
|
|
@@ -24630,7 +24630,7 @@ function X9(t) {
|
|
|
24630
24630
|
areaCornerVisible: e,
|
|
24631
24631
|
...r
|
|
24632
24632
|
} = t;
|
|
24633
|
-
return new
|
|
24633
|
+
return new Ls({
|
|
24634
24634
|
className: "area",
|
|
24635
24635
|
createLayers: !0,
|
|
24636
24636
|
border: {
|
|
@@ -24646,7 +24646,7 @@ function Z9(t) {
|
|
|
24646
24646
|
let {
|
|
24647
24647
|
...e
|
|
24648
24648
|
} = t;
|
|
24649
|
-
return new
|
|
24649
|
+
return new Ls({
|
|
24650
24650
|
className: "highlight",
|
|
24651
24651
|
...e,
|
|
24652
24652
|
selectionType: hT
|
|
@@ -24657,7 +24657,7 @@ function J9(t) {
|
|
|
24657
24657
|
columnClassName: e,
|
|
24658
24658
|
...r
|
|
24659
24659
|
} = t;
|
|
24660
|
-
return new
|
|
24660
|
+
return new Ls({
|
|
24661
24661
|
className: e,
|
|
24662
24662
|
...r,
|
|
24663
24663
|
selectionType: h6
|
|
@@ -24668,7 +24668,7 @@ function Q9(t) {
|
|
|
24668
24668
|
cellCornerVisible: e,
|
|
24669
24669
|
...r
|
|
24670
24670
|
} = t;
|
|
24671
|
-
return new
|
|
24671
|
+
return new Ls({
|
|
24672
24672
|
className: "current",
|
|
24673
24673
|
headerAttributes: [GE()],
|
|
24674
24674
|
border: {
|
|
@@ -24686,7 +24686,7 @@ function e8(t) {
|
|
|
24686
24686
|
visualCellRange: r,
|
|
24687
24687
|
...n
|
|
24688
24688
|
} = t;
|
|
24689
|
-
return new
|
|
24689
|
+
return new Ls({
|
|
24690
24690
|
...e,
|
|
24691
24691
|
...n,
|
|
24692
24692
|
selectionType: d6
|
|
@@ -24696,7 +24696,7 @@ function t8(t) {
|
|
|
24696
24696
|
let {
|
|
24697
24697
|
...e
|
|
24698
24698
|
} = t;
|
|
24699
|
-
return new
|
|
24699
|
+
return new Ls({
|
|
24700
24700
|
className: "fill",
|
|
24701
24701
|
border: {
|
|
24702
24702
|
width: 1,
|
|
@@ -24711,7 +24711,7 @@ function dH(t) {
|
|
|
24711
24711
|
headerClassName: e,
|
|
24712
24712
|
...r
|
|
24713
24713
|
} = t;
|
|
24714
|
-
return new
|
|
24714
|
+
return new Ls({
|
|
24715
24715
|
className: e,
|
|
24716
24716
|
...r,
|
|
24717
24717
|
selectionType: cT
|
|
@@ -24722,7 +24722,7 @@ function r8(t) {
|
|
|
24722
24722
|
rowClassName: e,
|
|
24723
24723
|
...r
|
|
24724
24724
|
} = t;
|
|
24725
|
-
return new
|
|
24725
|
+
return new Ls({
|
|
24726
24726
|
className: e,
|
|
24727
24727
|
...r,
|
|
24728
24728
|
selectionType: c6
|
|
@@ -32484,7 +32484,7 @@ const jF = "gridDefault", xa = "editorManager.handlingEditor", t7 = {
|
|
|
32484
32484
|
We(this._hooksStorage, (t, e) => this.removeHooksByKey(e)), this._hooksStorage = {};
|
|
32485
32485
|
}
|
|
32486
32486
|
};
|
|
32487
|
-
|
|
32487
|
+
ks(UF, "MIXIN_NAME", r7, {
|
|
32488
32488
|
writable: !1,
|
|
32489
32489
|
enumerable: !1
|
|
32490
32490
|
});
|
|
@@ -35277,7 +35277,7 @@ function qF(t, e) {
|
|
|
35277
35277
|
const m = this.rootDocument.querySelector(".hot-display-license-info");
|
|
35278
35278
|
m && m.parentNode.removeChild(m);
|
|
35279
35279
|
}
|
|
35280
|
-
|
|
35280
|
+
Os(o.rootElement), s.destroy(), c && c.destroy(), o.batchExecution(() => {
|
|
35281
35281
|
o.rowIndexMapper.unregisterAll(), o.columnIndexMapper.unregisterAll(), O.getItems().forEach((m) => {
|
|
35282
35282
|
let [, C] = m;
|
|
35283
35283
|
C.destroy();
|
|
@@ -35724,16 +35724,16 @@ function Rf(t, e, r, n, i, o, s) {
|
|
|
35724
35724
|
}
|
|
35725
35725
|
Rf.RENDERER_TYPE = CZ;
|
|
35726
35726
|
const bZ = "text";
|
|
35727
|
-
function
|
|
35727
|
+
function $s(t, e, r, n, i, o, s) {
|
|
35728
35728
|
Rf.apply(this, [t, e, r, n, i, o, s]);
|
|
35729
35729
|
let a = o;
|
|
35730
35730
|
!a && s.placeholder && (a = s.placeholder), a = Ft(a), s.trimWhitespace && (a = a.trim()), zl(e, a);
|
|
35731
35731
|
}
|
|
35732
|
-
|
|
35732
|
+
$s.RENDERER_TYPE = bZ;
|
|
35733
35733
|
const SZ = "text", XF = {
|
|
35734
35734
|
CELL_TYPE: SZ,
|
|
35735
35735
|
editor: lu,
|
|
35736
|
-
renderer:
|
|
35736
|
+
renderer: $s
|
|
35737
35737
|
};
|
|
35738
35738
|
Ii(XF);
|
|
35739
35739
|
_n.editors = {
|
|
@@ -35815,7 +35815,7 @@ function HZ() {
|
|
|
35815
35815
|
}
|
|
35816
35816
|
function NZ(t, e) {
|
|
35817
35817
|
var r = ke.useRef(!1);
|
|
35818
|
-
|
|
35818
|
+
Is(function() {
|
|
35819
35819
|
if (r.current)
|
|
35820
35820
|
return t();
|
|
35821
35821
|
r.current = !0;
|
|
@@ -36126,7 +36126,7 @@ var rJ = Qp(void 0), lV = function(e) {
|
|
|
36126
36126
|
return e.type === X_;
|
|
36127
36127
|
}, iJ = ["_columnIndex", "_getOwnerDocument", "children"], X_ = function(e) {
|
|
36128
36128
|
var r = oV(), n = r.componentRendererColumns, i = r.emitColumnSettings, o = r.getRendererWrapper, s = QZ(), a = s.columnIndex, l = s.getOwnerDocument, u = rn(null), c = rn(null);
|
|
36129
|
-
|
|
36129
|
+
Is(function() {
|
|
36130
36130
|
var d = function() {
|
|
36131
36131
|
return Object.keys(e).filter(function(v) {
|
|
36132
36132
|
return !iJ.includes(v);
|
|
@@ -36793,7 +36793,7 @@ var pJ = p0.exports, qb = /* @__PURE__ */ aJ(pJ), hV = z0(function(t, e) {
|
|
|
36793
36793
|
var _, O;
|
|
36794
36794
|
p && ((_ = p.getPlugin("autoRowSize")) !== null && _ !== void 0 && _.enabled || (O = p.getPlugin("autoColumnSize")) !== null && O !== void 0 && O.enabled) && a.componentRendererColumns.size > 0 && Yd(RZ);
|
|
36795
36795
|
};
|
|
36796
|
-
|
|
36796
|
+
Is(function() {
|
|
36797
36797
|
var b = d(!0);
|
|
36798
36798
|
return s.current = t, r.current = new _n.Core(n.current, b), r.current.addHook("beforeViewRender", function() {
|
|
36799
36799
|
a.clearPortalCache(), a.clearRenderedCellCache();
|
|
@@ -37153,7 +37153,7 @@ class Q_ extends J_ {
|
|
|
37153
37153
|
colWidths: e ? [nr(this.TEXTAREA) - 2] : void 0,
|
|
37154
37154
|
autoColumnSize: !0,
|
|
37155
37155
|
renderer: (a, l, u, c, h, d, f) => {
|
|
37156
|
-
|
|
37156
|
+
$s(a, l, u, c, h, d, f);
|
|
37157
37157
|
const {
|
|
37158
37158
|
filteringCaseSensitive: g,
|
|
37159
37159
|
allowHtml: w,
|
|
@@ -37428,7 +37428,7 @@ class gV extends Uc {
|
|
|
37428
37428
|
*
|
|
37429
37429
|
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
|
|
37430
37430
|
*/
|
|
37431
|
-
const
|
|
37431
|
+
const fa = () => window, si = () => window.document, v0 = (t, e) => window.setTimeout(t, e), go = function(t, e, r, n) {
|
|
37432
37432
|
t.addEventListener(e, r, !!n);
|
|
37433
37433
|
}, Jo = function(t, e, r, n) {
|
|
37434
37434
|
t.removeEventListener(e, r, !!n);
|
|
@@ -37596,7 +37596,7 @@ function y0(t) {
|
|
|
37596
37596
|
e._onMouseDown = function(i) {
|
|
37597
37597
|
if (!e._v)
|
|
37598
37598
|
return;
|
|
37599
|
-
i = i ||
|
|
37599
|
+
i = i || fa().event;
|
|
37600
37600
|
let o = i.target || i.srcElement;
|
|
37601
37601
|
if (o)
|
|
37602
37602
|
if (kn(o, "is-disabled") || (kn(o, "pika-button") && !kn(o, "is-empty") && !kn(o.parentNode, "is-disabled") ? (e.setDate(
|
|
@@ -37614,11 +37614,11 @@ function y0(t) {
|
|
|
37614
37614
|
else
|
|
37615
37615
|
return i.returnValue = !1, !1;
|
|
37616
37616
|
}, e._onChange = function(i) {
|
|
37617
|
-
i = i ||
|
|
37617
|
+
i = i || fa().event;
|
|
37618
37618
|
let o = i.target || i.srcElement;
|
|
37619
37619
|
o && (kn(o, "pika-select-month") ? e.gotoMonth(o.value) : kn(o, "pika-select-year") && e.gotoYear(o.value));
|
|
37620
37620
|
}, e._onKeyChange = function(i) {
|
|
37621
|
-
if (i = i ||
|
|
37621
|
+
if (i = i || fa().event, e.isVisible())
|
|
37622
37622
|
switch (i.keyCode) {
|
|
37623
37623
|
case 13:
|
|
37624
37624
|
case 27:
|
|
@@ -37670,7 +37670,7 @@ function y0(t) {
|
|
|
37670
37670
|
e.hide();
|
|
37671
37671
|
}, 50)), e._c = !1;
|
|
37672
37672
|
}, e._onClick = function(i) {
|
|
37673
|
-
i = i ||
|
|
37673
|
+
i = i || fa().event;
|
|
37674
37674
|
let o = i.target || i.srcElement, s = o;
|
|
37675
37675
|
if (o) {
|
|
37676
37676
|
!hasEventListeners && kn(o, "pika-select") && (o.onchange || (o.setAttribute("onchange", "return;"), go(o, "change", e._onChange)));
|
|
@@ -37834,7 +37834,7 @@ y0.prototype = {
|
|
|
37834
37834
|
},
|
|
37835
37835
|
adjustPosition: function() {
|
|
37836
37836
|
let t, e, r, n, i, o, s, a, l, u, c;
|
|
37837
|
-
this._o.container || (this.el.style.position = "absolute", t = this._o.trigger, e = this.el.offsetWidth, r = this.el.offsetHeight, n =
|
|
37837
|
+
this._o.container || (this.el.style.position = "absolute", t = this._o.trigger, e = this.el.offsetWidth, r = this.el.offsetHeight, n = fa().innerWidth || si().documentElement.clientWidth, i = fa().innerHeight || si().documentElement.clientHeight, o = si().body.scrollTop || si().documentElement.scrollTop, u = !0, c = !0, l = t.getBoundingClientRect(), s = l.left + fa().pageXOffset, a = l.bottom + fa().pageYOffset, (this._o.reposition && s + e > n || this._o.position.indexOf("right") > -1 && s - e + t.offsetWidth > 0) && (s = s - e + t.offsetWidth, u = !1), (this._o.reposition && a + r > i + o || this._o.position.indexOf("top") > -1 && a - r - t.offsetHeight > 0) && (a = a - r - t.offsetHeight, c = !1), s < 0 && (s = 0), a < 0 && (a = 0), this.el.style.left = s + "px", this.el.style.top = a + "px", Jb(this.el, u ? "left-aligned" : "right-aligned"), Jb(this.el, c ? "bottom-aligned" : "top-aligned"), Qb(this.el, u ? "right-aligned" : "left-aligned"), Qb(this.el, c ? "top-aligned" : "bottom-aligned"));
|
|
37838
37838
|
},
|
|
37839
37839
|
/**
|
|
37840
37840
|
* render HTML for a particular month
|
|
@@ -38136,7 +38136,7 @@ class yV extends lu {
|
|
|
38136
38136
|
return zJ;
|
|
38137
38137
|
}
|
|
38138
38138
|
createElements() {
|
|
38139
|
-
super.createElements(), this.TEXTAREA = this.hot.rootDocument.createElement("input"), this.TEXTAREA.setAttribute("type", "password"), this.TEXTAREA.setAttribute("data-hot-input", ""), this.TEXTAREA.className = "handsontableInput", this.textareaStyle = this.TEXTAREA.style, this.textareaStyle.width = 0, this.textareaStyle.height = 0,
|
|
38139
|
+
super.createElements(), this.TEXTAREA = this.hot.rootDocument.createElement("input"), this.TEXTAREA.setAttribute("type", "password"), this.TEXTAREA.setAttribute("data-hot-input", ""), this.TEXTAREA.className = "handsontableInput", this.textareaStyle = this.TEXTAREA.style, this.textareaStyle.width = 0, this.textareaStyle.height = 0, Os(this.TEXTAREA_PARENT), this.TEXTAREA_PARENT.appendChild(this.TEXTAREA);
|
|
38140
38140
|
}
|
|
38141
38141
|
}
|
|
38142
38142
|
const rS = "ht_editor_visible", eN = "selectEditor", YJ = "select";
|
|
@@ -38208,7 +38208,7 @@ class CV extends Uc {
|
|
|
38208
38208
|
super.prepare(e, r, n, i, o, s);
|
|
38209
38209
|
const a = this.cellProperties.selectOptions;
|
|
38210
38210
|
let l;
|
|
38211
|
-
typeof a == "function" ? l = this.prepareOptions(a(this.row, this.col, this.prop)) : l = this.prepareOptions(a),
|
|
38211
|
+
typeof a == "function" ? l = this.prepareOptions(a(this.row, this.col, this.prop)) : l = this.prepareOptions(a), Os(this.select), We(l, (u, c) => {
|
|
38212
38212
|
const h = this.hot.rootDocument.createElement("OPTION");
|
|
38213
38213
|
h.value = c, Bc(h, u), this.select.appendChild(h);
|
|
38214
38214
|
});
|
|
@@ -38320,7 +38320,7 @@ const XJ = "autocomplete";
|
|
|
38320
38320
|
function Yc(t, e, r, n, i, o, s) {
|
|
38321
38321
|
const {
|
|
38322
38322
|
rootDocument: a
|
|
38323
|
-
} = t, l = s.allowHtml ? tM :
|
|
38323
|
+
} = t, l = s.allowHtml ? tM : $s, u = a.createElement("DIV"), c = t.getSettings().ariaTags;
|
|
38324
38324
|
if (u.className = "htAutocompleteArrow", c && u.setAttribute(...su()), u.appendChild(a.createTextNode("▼")), l.apply(this, [t, e, r, n, i, o, s]), e.firstChild || e.appendChild(a.createTextNode(" ")), e.insertBefore(u, e.firstChild), ne(e, "htAutocomplete"), !t.acArrowListener) {
|
|
38325
38325
|
const h = new zi(t);
|
|
38326
38326
|
t.acArrowListener = function(d) {
|
|
@@ -38371,7 +38371,7 @@ function nM(t, e, r, n, i, o, s) {
|
|
|
38371
38371
|
let u = tQ(a);
|
|
38372
38372
|
const c = s.label;
|
|
38373
38373
|
let h = !1;
|
|
38374
|
-
if (typeof s.checkedTemplate > "u" && (s.checkedTemplate = !0), typeof s.uncheckedTemplate > "u" && (s.uncheckedTemplate = !1),
|
|
38374
|
+
if (typeof s.checkedTemplate > "u" && (s.checkedTemplate = !0), typeof s.uncheckedTemplate > "u" && (s.uncheckedTemplate = !1), Os(e), o === s.checkedTemplate || Ft(o).toLocaleLowerCase(s.locale) === Ft(s.checkedTemplate).toLocaleLowerCase(s.locale) ? u.checked = !0 : o === s.uncheckedTemplate || Ft(o).toLocaleLowerCase(s.locale) === Ft(s.uncheckedTemplate).toLocaleLowerCase(s.locale) ? u.checked = !1 : Qt(o) ? ne(u, "noValue") : (u.style.display = "none", ne(u, JJ), h = !0), Me(u, [[Ic, r], [Pc, n]]), l && Me(u, [Vd(u.checked ? t.getTranslatedPhrase(Y_) : t.getTranslatedPhrase(G_)), S$(u.checked), o3()]), !h && c) {
|
|
38375
38375
|
let w = "";
|
|
38376
38376
|
if (c.value)
|
|
38377
38377
|
w = typeof c.value == "function" ? c.value.call(this, r, n, i, o) : c.value;
|
|
@@ -40150,22 +40150,22 @@ var eee = (t) => ({
|
|
|
40150
40150
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
40151
40151
|
* SOFTWARE.
|
|
40152
40152
|
*/
|
|
40153
|
-
const
|
|
40153
|
+
const xs = TV;
|
|
40154
40154
|
function tee(t, e, r) {
|
|
40155
|
-
let n = new
|
|
40156
|
-
return r.isNumbro(e) && (i = e._value), i = new
|
|
40155
|
+
let n = new xs(t._value), i = e;
|
|
40156
|
+
return r.isNumbro(e) && (i = e._value), i = new xs(i), t._value = n.plus(i).toNumber(), t;
|
|
40157
40157
|
}
|
|
40158
40158
|
function MV(t, e, r) {
|
|
40159
|
-
let n = new
|
|
40160
|
-
return r.isNumbro(e) && (i = e._value), i = new
|
|
40159
|
+
let n = new xs(t._value), i = e;
|
|
40160
|
+
return r.isNumbro(e) && (i = e._value), i = new xs(i), t._value = n.minus(i).toNumber(), t;
|
|
40161
40161
|
}
|
|
40162
40162
|
function ree(t, e, r) {
|
|
40163
|
-
let n = new
|
|
40164
|
-
return r.isNumbro(e) && (i = e._value), i = new
|
|
40163
|
+
let n = new xs(t._value), i = e;
|
|
40164
|
+
return r.isNumbro(e) && (i = e._value), i = new xs(i), t._value = n.times(i).toNumber(), t;
|
|
40165
40165
|
}
|
|
40166
40166
|
function nee(t, e, r) {
|
|
40167
|
-
let n = new
|
|
40168
|
-
return r.isNumbro(e) && (i = e._value), i = new
|
|
40167
|
+
let n = new xs(t._value), i = e;
|
|
40168
|
+
return r.isNumbro(e) && (i = e._value), i = new xs(i), t._value = n.dividedBy(i).toNumber(), t;
|
|
40169
40169
|
}
|
|
40170
40170
|
function iee(t, e, r) {
|
|
40171
40171
|
let n = e;
|
|
@@ -40182,7 +40182,7 @@ var see = (t) => ({
|
|
|
40182
40182
|
divide: (e, r) => nee(e, r, t),
|
|
40183
40183
|
set: (e, r) => iee(e, r, t),
|
|
40184
40184
|
difference: (e, r) => oee(e, r, t),
|
|
40185
|
-
BigNumber:
|
|
40185
|
+
BigNumber: xs
|
|
40186
40186
|
});
|
|
40187
40187
|
/*!
|
|
40188
40188
|
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
|
|
@@ -40308,12 +40308,12 @@ function cM(t, e, r, n, i, o, s) {
|
|
|
40308
40308
|
}
|
|
40309
40309
|
a = OV(a, s), u.indexOf("htLeft") < 0 && u.indexOf("htCenter") < 0 && u.indexOf("htRight") < 0 && u.indexOf("htJustify") < 0 && u.push("htRight"), u.indexOf("htNumeric") < 0 && u.push("htNumeric"), s.className = u.join(" "), e.dir = "ltr";
|
|
40310
40310
|
}
|
|
40311
|
-
|
|
40311
|
+
$s(t, e, r, n, i, a, s);
|
|
40312
40312
|
}
|
|
40313
40313
|
cM.RENDERER_TYPE = fee;
|
|
40314
40314
|
const gee = "password";
|
|
40315
40315
|
function hM(t, e, r, n, i, o, s) {
|
|
40316
|
-
|
|
40316
|
+
$s.apply(this, [t, e, r, n, i, o, s]);
|
|
40317
40317
|
const a = s.hashLength || e.innerHTML.length, l = s.hashSymbol || "*";
|
|
40318
40318
|
let u = "";
|
|
40319
40319
|
ve(a - 1, () => {
|
|
@@ -40323,16 +40323,16 @@ function hM(t, e, r, n, i, o, s) {
|
|
|
40323
40323
|
hM.RENDERER_TYPE = gee;
|
|
40324
40324
|
const mee = "select";
|
|
40325
40325
|
function dM(t, e, r, n, i, o, s) {
|
|
40326
|
-
|
|
40326
|
+
$s.apply(this, [t, e, r, n, i, o, s]);
|
|
40327
40327
|
}
|
|
40328
40328
|
dM.RENDERER_TYPE = mee;
|
|
40329
40329
|
const pee = "time";
|
|
40330
40330
|
function fM(t, e, r, n, i, o, s) {
|
|
40331
|
-
|
|
40331
|
+
$s.apply(this, [t, e, r, n, i, o, s]), e.dir = "ltr";
|
|
40332
40332
|
}
|
|
40333
40333
|
fM.RENDERER_TYPE = pee;
|
|
40334
40334
|
function wee() {
|
|
40335
|
-
ei(Yc), ei(Rf), ei(nM), ei(rM), ei(oM), ei(tM), ei(cM), ei(hM), ei(dM), ei(
|
|
40335
|
+
ei(Yc), ei(Rf), ei(nM), ei(rM), ei(oM), ei(tM), ei(cM), ei(hM), ei(dM), ei($s), ei(fM);
|
|
40336
40336
|
}
|
|
40337
40337
|
const vee = "autocomplete";
|
|
40338
40338
|
function Ww(t, e) {
|
|
@@ -40544,7 +40544,7 @@ class nt {
|
|
|
40544
40544
|
* @param {object} hotInstance Handsontable instance.
|
|
40545
40545
|
*/
|
|
40546
40546
|
constructor(e) {
|
|
40547
|
-
Gee(this, uN), Eu(this, "eventManager", new zi(this)), Eu(this, "pluginName", null), Eu(this, "pluginsInitializedCallbacks", []), Eu(this, "isPluginsReady", !1), Eu(this, "enabled", !1), Eu(this, "initialized", !1), qee(this, Ja, {}),
|
|
40547
|
+
Gee(this, uN), Eu(this, "eventManager", new zi(this)), Eu(this, "pluginName", null), Eu(this, "pluginsInitializedCallbacks", []), Eu(this, "isPluginsReady", !1), Eu(this, "enabled", !1), Eu(this, "initialized", !1), qee(this, Ja, {}), ks(this, "hot", e, {
|
|
40548
40548
|
writable: !1
|
|
40549
40549
|
}), Za = null, this.hot.addHook("afterPluginsInitialized", () => this.onAfterPluginsInitialized()), this.hot.addHook("afterUpdateSettings", (r) => this.onUpdateSettings(r)), this.hot.addHook("beforeInit", () => this.init());
|
|
40550
40550
|
}
|
|
@@ -41148,7 +41148,7 @@ function ote(t, e) {
|
|
|
41148
41148
|
}
|
|
41149
41149
|
return (e === "string" ? String : Number)(t);
|
|
41150
41150
|
}
|
|
41151
|
-
function
|
|
41151
|
+
function ga(t, e) {
|
|
41152
41152
|
return t.get(Sn(t, e));
|
|
41153
41153
|
}
|
|
41154
41154
|
function Cp(t, e, r) {
|
|
@@ -41380,8 +41380,8 @@ class Cd extends nt {
|
|
|
41380
41380
|
*/
|
|
41381
41381
|
findColumnsWhereHeaderWasChanged() {
|
|
41382
41382
|
return this.hot.getColHeader().reduce((n, i, o) => {
|
|
41383
|
-
const s =
|
|
41384
|
-
return (s - 1 < o ||
|
|
41383
|
+
const s = ga(ec, this).length;
|
|
41384
|
+
return (s - 1 < o || ga(ec, this)[o] !== i) && n.push(this.hot.toVisualColumn(o)), s - 1 < o ? ga(ec, this).push(i) : ga(ec, this)[o] = i, n;
|
|
41385
41385
|
}, []);
|
|
41386
41386
|
}
|
|
41387
41387
|
/**
|
|
@@ -41437,7 +41437,7 @@ function $V() {
|
|
|
41437
41437
|
}, !0);
|
|
41438
41438
|
}
|
|
41439
41439
|
function ute() {
|
|
41440
|
-
this.calculateVisibleColumnsWidth(), this.inProgress || (Sn($n, this, lte).call(this,
|
|
41440
|
+
this.calculateVisibleColumnsWidth(), this.inProgress || (Sn($n, this, lte).call(this, ga(Oc, this)), Cp(Oc, this, []));
|
|
41441
41441
|
}
|
|
41442
41442
|
function cte(t, e) {
|
|
41443
41443
|
e || this.recalculateAllColumnsWidth();
|
|
@@ -41448,7 +41448,7 @@ function hte(t) {
|
|
|
41448
41448
|
const o = this.hot.propToCol(i);
|
|
41449
41449
|
return Number.isInteger(o) && r.indexOf(o) === -1 && r.push(o), r;
|
|
41450
41450
|
}, []);
|
|
41451
|
-
|
|
41451
|
+
ga(Oc, this).push(...e);
|
|
41452
41452
|
}
|
|
41453
41453
|
function cN(t, e, r) {
|
|
41454
41454
|
let n = t;
|
|
@@ -41458,7 +41458,7 @@ function dte() {
|
|
|
41458
41458
|
Cp(ec, this, this.hot.getColHeader()), this.recalculateAllColumnsWidth(), Cp(vM, this, !0);
|
|
41459
41459
|
}
|
|
41460
41460
|
function fte(t) {
|
|
41461
|
-
if (!
|
|
41461
|
+
if (!ga(vM, this))
|
|
41462
41462
|
return;
|
|
41463
41463
|
const e = t.reduce((r, n) => {
|
|
41464
41464
|
var i;
|
|
@@ -41469,7 +41469,7 @@ function fte(t) {
|
|
|
41469
41469
|
}
|
|
41470
41470
|
return r;
|
|
41471
41471
|
}, []);
|
|
41472
|
-
|
|
41472
|
+
ga(Oc, this).push(...e);
|
|
41473
41473
|
}
|
|
41474
41474
|
const Hl = {
|
|
41475
41475
|
horizontal: "horizontal",
|
|
@@ -44160,7 +44160,7 @@ function nW(t, e, r) {
|
|
|
44160
44160
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
44161
44161
|
throw new TypeError("Private element is not present on this object");
|
|
44162
44162
|
}
|
|
44163
|
-
var nl = /* @__PURE__ */ new WeakMap(), gS = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakMap(),
|
|
44163
|
+
var nl = /* @__PURE__ */ new WeakMap(), gS = /* @__PURE__ */ new WeakMap(), es = /* @__PURE__ */ new WeakMap(), Bs = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Og = /* @__PURE__ */ new WeakMap(), Ou = /* @__PURE__ */ new WeakMap();
|
|
44164
44164
|
class Nl {
|
|
44165
44165
|
static get CLASS_EDITOR_CONTAINER() {
|
|
44166
44166
|
return "htCommentsContainer";
|
|
@@ -44179,7 +44179,7 @@ class Nl {
|
|
|
44179
44179
|
*/
|
|
44180
44180
|
constructor(e, r) {
|
|
44181
44181
|
var n = this;
|
|
44182
|
-
rl(this, nl, void 0), rl(this, gS, !1), rl(this, es, null), rl(this,
|
|
44182
|
+
rl(this, nl, void 0), rl(this, gS, !1), rl(this, es, null), rl(this, Bs, void 0), rl(this, js, void 0), rl(this, Og, !0), rl(this, Ou, new rW()), Qo(nl, this, e), Qo(gS, this, r), Qo(Bs, this, this.createEditor()), Qo(js, this, wt(Bs, this).style), wt(Ou, this).setObservedElement(this.getInputElement()), wt(Ou, this).addLocalHook("resize", function() {
|
|
44183
44183
|
for (var i = arguments.length, o = new Array(i), s = 0; s < i; s++)
|
|
44184
44184
|
o[s] = arguments[s];
|
|
44185
44185
|
return n.runLocalHooks("resize", ...o);
|
|
@@ -44192,7 +44192,7 @@ class Nl {
|
|
|
44192
44192
|
* @param {number} y Y position (in pixels).
|
|
44193
44193
|
*/
|
|
44194
44194
|
setPosition(e, r) {
|
|
44195
|
-
wt(
|
|
44195
|
+
wt(js, this).left = `${e}px`, wt(js, this).top = `${r}px`;
|
|
44196
44196
|
}
|
|
44197
44197
|
/**
|
|
44198
44198
|
* Set the editor size according to the provided arguments.
|
|
@@ -44243,13 +44243,13 @@ class Nl {
|
|
|
44243
44243
|
* Show the comments editor.
|
|
44244
44244
|
*/
|
|
44245
44245
|
show() {
|
|
44246
|
-
wt(
|
|
44246
|
+
wt(js, this).display = "block", Qo(Og, this, !1);
|
|
44247
44247
|
}
|
|
44248
44248
|
/**
|
|
44249
44249
|
* Hide the comments editor.
|
|
44250
44250
|
*/
|
|
44251
44251
|
hide() {
|
|
44252
|
-
wt(Ou, this).unobserve(), wt(Og, this) || (wt(
|
|
44252
|
+
wt(Ou, this).unobserve(), wt(Og, this) || (wt(js, this).display = "none"), Qo(Og, this, !0);
|
|
44253
44253
|
}
|
|
44254
44254
|
/**
|
|
44255
44255
|
* Checks if the editor is visible.
|
|
@@ -44257,7 +44257,7 @@ class Nl {
|
|
|
44257
44257
|
* @returns {boolean}
|
|
44258
44258
|
*/
|
|
44259
44259
|
isVisible() {
|
|
44260
|
-
return wt(
|
|
44260
|
+
return wt(js, this).display === "block";
|
|
44261
44261
|
}
|
|
44262
44262
|
/**
|
|
44263
44263
|
* Set the comment value.
|
|
@@ -44305,7 +44305,7 @@ class Nl {
|
|
|
44305
44305
|
* @returns {HTMLElement}
|
|
44306
44306
|
*/
|
|
44307
44307
|
getInputElement() {
|
|
44308
|
-
return wt(
|
|
44308
|
+
return wt(Bs, this).querySelector(`.${Nl.CLASS_INPUT}`);
|
|
44309
44309
|
}
|
|
44310
44310
|
/**
|
|
44311
44311
|
* Get the editor element.
|
|
@@ -44313,14 +44313,14 @@ class Nl {
|
|
|
44313
44313
|
* @returns {HTMLElement} The editor element.
|
|
44314
44314
|
*/
|
|
44315
44315
|
getEditorElement() {
|
|
44316
|
-
return wt(
|
|
44316
|
+
return wt(Bs, this);
|
|
44317
44317
|
}
|
|
44318
44318
|
/**
|
|
44319
44319
|
* Destroy the comments editor.
|
|
44320
44320
|
*/
|
|
44321
44321
|
destroy() {
|
|
44322
44322
|
const e = wt(es, this) ? wt(es, this).parentNode : null;
|
|
44323
|
-
wt(
|
|
44323
|
+
wt(Bs, this).parentNode.removeChild(wt(Bs, this)), Qo(Bs, this, null), Qo(js, this, null), wt(Ou, this).destroy(), e && e.removeChild(wt(es, this));
|
|
44324
44324
|
}
|
|
44325
44325
|
}
|
|
44326
44326
|
yt(Nl, Dr);
|
|
@@ -44401,7 +44401,7 @@ function il(t, e) {
|
|
|
44401
44401
|
});
|
|
44402
44402
|
}), r;
|
|
44403
44403
|
}
|
|
44404
|
-
function
|
|
44404
|
+
function ra(t, e, r, n, i) {
|
|
44405
44405
|
k(t, (o) => {
|
|
44406
44406
|
o.forAll((s, a) => {
|
|
44407
44407
|
s >= 0 && a >= 0 && vne(s, a, e, r, n, i);
|
|
@@ -44466,7 +44466,7 @@ function Cne() {
|
|
|
44466
44466
|
},
|
|
44467
44467
|
callback() {
|
|
44468
44468
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "horizontal", n = "htLeft";
|
|
44469
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44469
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44470
44470
|
},
|
|
44471
44471
|
disabled: !1
|
|
44472
44472
|
}, {
|
|
@@ -44476,7 +44476,7 @@ function Cne() {
|
|
|
44476
44476
|
},
|
|
44477
44477
|
callback() {
|
|
44478
44478
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "horizontal", n = "htCenter";
|
|
44479
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44479
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44480
44480
|
},
|
|
44481
44481
|
disabled: !1
|
|
44482
44482
|
}, {
|
|
@@ -44486,7 +44486,7 @@ function Cne() {
|
|
|
44486
44486
|
},
|
|
44487
44487
|
callback() {
|
|
44488
44488
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "horizontal", n = "htRight";
|
|
44489
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44489
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44490
44490
|
},
|
|
44491
44491
|
disabled: !1
|
|
44492
44492
|
}, {
|
|
@@ -44496,7 +44496,7 @@ function Cne() {
|
|
|
44496
44496
|
},
|
|
44497
44497
|
callback() {
|
|
44498
44498
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "horizontal", n = "htJustify";
|
|
44499
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44499
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44500
44500
|
},
|
|
44501
44501
|
disabled: !1
|
|
44502
44502
|
}, {
|
|
@@ -44508,7 +44508,7 @@ function Cne() {
|
|
|
44508
44508
|
},
|
|
44509
44509
|
callback() {
|
|
44510
44510
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "vertical", n = "htTop";
|
|
44511
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44511
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44512
44512
|
},
|
|
44513
44513
|
disabled: !1
|
|
44514
44514
|
}, {
|
|
@@ -44518,7 +44518,7 @@ function Cne() {
|
|
|
44518
44518
|
},
|
|
44519
44519
|
callback() {
|
|
44520
44520
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "vertical", n = "htMiddle";
|
|
44521
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44521
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44522
44522
|
},
|
|
44523
44523
|
disabled: !1
|
|
44524
44524
|
}, {
|
|
@@ -44528,7 +44528,7 @@ function Cne() {
|
|
|
44528
44528
|
},
|
|
44529
44529
|
callback() {
|
|
44530
44530
|
const t = this.getSelectedRange(), e = il(t, (i, o) => this.getCellMeta(i, o).className), r = "vertical", n = "htBottom";
|
|
44531
|
-
this.runHooks("beforeCellAlignment", e, t, r, n),
|
|
44531
|
+
this.runHooks("beforeCellAlignment", e, t, r, n), ra(t, r, n, (i, o) => this.getCellMeta(i, o), (i, o, s, a) => this.setCellMeta(i, o, s, a)), this.render();
|
|
44532
44532
|
},
|
|
44533
44533
|
disabled: !1
|
|
44534
44534
|
}]
|
|
@@ -44893,7 +44893,7 @@ function Vne(t, e) {
|
|
|
44893
44893
|
}
|
|
44894
44894
|
return (e === "string" ? String : Number)(t);
|
|
44895
44895
|
}
|
|
44896
|
-
function
|
|
44896
|
+
function ma(t, e, r) {
|
|
44897
44897
|
return t.set(wn(t, e), r), r;
|
|
44898
44898
|
}
|
|
44899
44899
|
function Ne(t, e) {
|
|
@@ -44934,11 +44934,11 @@ class Bne extends nt {
|
|
|
44934
44934
|
*/
|
|
44935
44935
|
enablePlugin() {
|
|
44936
44936
|
var e = this;
|
|
44937
|
-
this.enabled || (Ne(gt, this) || (
|
|
44937
|
+
this.enabled || (Ne(gt, this) || (ma(gt, this, new Nl(this.hot.rootDocument, this.hot.isRtl())), Ne(gt, this).addLocalHook("resize", function() {
|
|
44938
44938
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
44939
44939
|
n[i] = arguments[i];
|
|
44940
44940
|
return wn(xn, e, Xne).call(e, ...n);
|
|
44941
|
-
})), Ne(wo, this) ||
|
|
44941
|
+
})), Ne(wo, this) || ma(wo, this, new iW(this.getSetting("displayDelay"))), this.addHook("afterContextMenuDefaultOptions", (r) => this.addToContextMenu(r)), this.addHook("afterRenderer", (r, n, i, o, s, a) => wn(xn, this, Gne).call(this, r, a)), this.addHook("afterScroll", () => wn(xn, this, Zne).call(this)), this.addHook("afterBeginEditing", () => this.hide()), this.addHook("afterDocumentKeyDown", (r) => wn(xn, this, TN).call(this, r)), this.addHook("beforeCompositionStart", (r) => wn(xn, this, TN).call(this, r)), this.addHook("afterSetTheme", function() {
|
|
44942
44942
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
44943
44943
|
n[i] = arguments[i];
|
|
44944
44944
|
return wn(xn, e, Jne).call(e, ...n);
|
|
@@ -44970,9 +44970,9 @@ class Bne extends nt {
|
|
|
44970
44970
|
keys: [["Control", "Alt", "M"]],
|
|
44971
44971
|
callback: () => {
|
|
44972
44972
|
const i = this.hot.getSelectedRangeLast();
|
|
44973
|
-
|
|
44973
|
+
ma(Wm, this, !0), this.hot.scrollToFocusedCell(() => {
|
|
44974
44974
|
this.setRange(i), this.show(), this.focusEditor(), e.setActiveContextName(S0), this.hot._registerTimeout(() => {
|
|
44975
|
-
|
|
44975
|
+
ma(Wm, this, !1);
|
|
44976
44976
|
});
|
|
44977
44977
|
});
|
|
44978
44978
|
},
|
|
@@ -45289,22 +45289,22 @@ function zne(t) {
|
|
|
45289
45289
|
rootDocument: e
|
|
45290
45290
|
} = this.hot;
|
|
45291
45291
|
if (!(Ne(Xw, this) || Ne(gt, this).isFocused() || Te(t.target, "wtBorder") || Ne(R0, this) === t.target || !Ne(gt, this)))
|
|
45292
|
-
if (
|
|
45292
|
+
if (ma(R0, this, e.elementFromPoint(t.clientX, t.clientY)), this.targetIsCellWithComment(t)) {
|
|
45293
45293
|
const r = this.hot._createCellRange(this.hot.getCoords(t.target));
|
|
45294
45294
|
Ne(wo, this).show(r);
|
|
45295
45295
|
} else Vl(t.target, e) && !this.targetIsCommentTextArea(t) && Ne(wo, this).hide();
|
|
45296
45296
|
}
|
|
45297
45297
|
function Yne() {
|
|
45298
|
-
|
|
45298
|
+
ma(Xw, this, !1);
|
|
45299
45299
|
}
|
|
45300
45300
|
function Gne(t, e) {
|
|
45301
45301
|
e[ds] && e[ds][ld] && ne(t, e.commentedCellClassName);
|
|
45302
45302
|
}
|
|
45303
45303
|
function qne() {
|
|
45304
|
-
|
|
45304
|
+
ma(Ip, this, ""), this.hot.getShortcutManager().setActiveContextName("grid"), this.setComment();
|
|
45305
45305
|
}
|
|
45306
45306
|
function Kne() {
|
|
45307
|
-
|
|
45307
|
+
ma(Ip, this, this.getComment()), this.hot.listen(), this.hot.getShortcutManager().setActiveContextName(S0);
|
|
45308
45308
|
}
|
|
45309
45309
|
function Xne(t, e) {
|
|
45310
45310
|
this.updateCommentMeta(this.range.from.row, this.range.from.col, {
|
|
@@ -45453,7 +45453,7 @@ function iie() {
|
|
|
45453
45453
|
}), Ve(o) && mr(a, o), a.key === void 0 && (a.key = s), n.push(a));
|
|
45454
45454
|
}), n;
|
|
45455
45455
|
}
|
|
45456
|
-
function
|
|
45456
|
+
function Us(t, e, r) {
|
|
45457
45457
|
return (e = oie(e)) in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
|
|
45458
45458
|
}
|
|
45459
45459
|
function oie(t) {
|
|
@@ -45472,7 +45472,7 @@ function sie(t, e) {
|
|
|
45472
45472
|
}
|
|
45473
45473
|
class aie {
|
|
45474
45474
|
constructor(e, r) {
|
|
45475
|
-
|
|
45475
|
+
Us(this, "top", void 0), Us(this, "topRelative", void 0), Us(this, "left", void 0), Us(this, "leftRelative", void 0), Us(this, "scrollTop", void 0), Us(this, "scrollLeft", void 0), Us(this, "cellHeight", void 0), Us(this, "cellWidth", void 0);
|
|
45476
45476
|
const n = r.scrollY, i = r.scrollX;
|
|
45477
45477
|
let o, s, a, l, u, c;
|
|
45478
45478
|
this.rootWindow = r, this.type = this.getSourceType(e), this.type === "literal" ? (o = parseInt(e.top, 10), a = parseInt(e.left, 10), u = e.height || 0, c = e.width || 0, s = o, l = a, o += n, a += i) : this.type === "event" && (o = parseInt(e.pageY, 10), a = parseInt(e.pageX, 10), u = e.target.clientHeight, c = e.target.clientWidth, s = o - n, l = a - i), this.top = o, this.topRelative = s, this.left = a, this.leftRelative = l, this.scrollTop = n, this.scrollLeft = i, this.cellHeight = u, this.cellWidth = c;
|
|
@@ -45882,7 +45882,7 @@ function Sie(t) {
|
|
|
45882
45882
|
function Rie(t) {
|
|
45883
45883
|
return (e, r, n, i, o, s) => {
|
|
45884
45884
|
const a = e.getSourceDataAtRow(n), l = t.rootDocument.createElement("div"), u = typeof s == "function" ? s.call(t) : s, c = typeof a.ariaLabel == "function" ? a.ariaLabel.call(t) : a.ariaLabel, h = typeof a.ariaChecked == "function" ? a.ariaChecked.call(t) : a.ariaChecked;
|
|
45885
|
-
if (
|
|
45885
|
+
if (Os(r), ne(l, "htItemWrapper"), t.getSettings().ariaTags) {
|
|
45886
45886
|
const d = !Bm(a, t) && !_N(a) && !T0(a);
|
|
45887
45887
|
Me(r, [...yie(a) ? [r3(), Vd(c), S$(h)] : [t3(), Vd(u)], ...d ? [ou(-1)] : [], ...Bm(a, t) ? [u3()] : [], ...E0(a) ? [ci(!1)] : []]);
|
|
45888
45888
|
}
|
|
@@ -46683,7 +46683,7 @@ function lc(t, e, r) {
|
|
|
46683
46683
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
46684
46684
|
throw new TypeError("Private element is not present on this object");
|
|
46685
46685
|
}
|
|
46686
|
-
var
|
|
46686
|
+
var zs = /* @__PURE__ */ new WeakMap(), SS = /* @__PURE__ */ new WeakMap(), Nh = /* @__PURE__ */ new WeakMap(), _0 = /* @__PURE__ */ new WeakMap(), M0 = /* @__PURE__ */ new WeakMap(), Dh = /* @__PURE__ */ new WeakMap(), kh = /* @__PURE__ */ new WeakSet();
|
|
46687
46687
|
class Uie {
|
|
46688
46688
|
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
46689
46689
|
/**
|
|
@@ -46703,7 +46703,7 @@ class Uie {
|
|
|
46703
46703
|
columnsLimit: o,
|
|
46704
46704
|
countColumnHeaders: s
|
|
46705
46705
|
} = e;
|
|
46706
|
-
jie(this, kh), Hu(this,
|
|
46706
|
+
jie(this, kh), Hu(this, zs, void 0), Hu(this, SS, void 0), Hu(this, Nh, void 0), Hu(this, _0, void 0), Hu(this, M0, void 0), Hu(this, Dh, void 0), Nu(SS, this, r), Nu(Nh, this, n), Nu(_0, this, i), Nu(M0, this, o), Nu(Dh, this, s);
|
|
46707
46707
|
}
|
|
46708
46708
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
46709
46709
|
/**
|
|
@@ -46712,7 +46712,7 @@ class Uie {
|
|
|
46712
46712
|
* @param {CellRange} selectedRange The selection range represented by the CellRange class.
|
|
46713
46713
|
*/
|
|
46714
46714
|
setSelectedRange(e) {
|
|
46715
|
-
Nu(
|
|
46715
|
+
Nu(zs, this, e);
|
|
46716
46716
|
}
|
|
46717
46717
|
/**
|
|
46718
46718
|
* Returns a new coords object within the dataset range (cells) with `startRow`, `startCol`, `endRow`
|
|
@@ -46726,10 +46726,10 @@ class Uie {
|
|
|
46726
46726
|
const {
|
|
46727
46727
|
row: e,
|
|
46728
46728
|
col: r
|
|
46729
|
-
} = Jr(
|
|
46729
|
+
} = Jr(zs, this).getTopStartCorner(), {
|
|
46730
46730
|
row: n,
|
|
46731
46731
|
col: i
|
|
46732
|
-
} = Jr(
|
|
46732
|
+
} = Jr(zs, this).getBottomEndCorner(), o = lc(kh, this, zie).call(this, e, n), s = lc(kh, this, RS).call(this, r, i);
|
|
46733
46733
|
return {
|
|
46734
46734
|
isRangeTrimmed: n !== o || i !== s,
|
|
46735
46735
|
startRow: e,
|
|
@@ -46749,9 +46749,9 @@ class Uie {
|
|
|
46749
46749
|
return null;
|
|
46750
46750
|
const {
|
|
46751
46751
|
col: e
|
|
46752
|
-
} = Jr(
|
|
46752
|
+
} = Jr(zs, this).getTopStartCorner(), {
|
|
46753
46753
|
col: r
|
|
46754
|
-
} = Jr(
|
|
46754
|
+
} = Jr(zs, this).getBottomEndCorner(), n = lc(kh, this, RS).call(this, e, r);
|
|
46755
46755
|
return {
|
|
46756
46756
|
isRangeTrimmed: r !== n,
|
|
46757
46757
|
startRow: -1,
|
|
@@ -46771,9 +46771,9 @@ class Uie {
|
|
|
46771
46771
|
return null;
|
|
46772
46772
|
const {
|
|
46773
46773
|
col: e
|
|
46774
|
-
} = Jr(
|
|
46774
|
+
} = Jr(zs, this).getTopStartCorner(), {
|
|
46775
46775
|
col: r
|
|
46776
|
-
} = Jr(
|
|
46776
|
+
} = Jr(zs, this).getBottomEndCorner(), n = lc(kh, this, RS).call(this, e, r);
|
|
46777
46777
|
return {
|
|
46778
46778
|
isRangeTrimmed: r !== n,
|
|
46779
46779
|
startRow: -Jr(Dh, this).call(this),
|
|
@@ -46808,7 +46808,7 @@ function wW(t) {
|
|
|
46808
46808
|
function Yie(t, e) {
|
|
46809
46809
|
vW(t, e), e.add(t);
|
|
46810
46810
|
}
|
|
46811
|
-
function
|
|
46811
|
+
function Ys(t, e, r) {
|
|
46812
46812
|
vW(t, e), e.set(t, r);
|
|
46813
46813
|
}
|
|
46814
46814
|
function vW(t, e) {
|
|
@@ -46853,13 +46853,13 @@ const ES = "copyPaste", Kie = 80, Xie = ["fragmentSelection"], ON = ['<meta name
|
|
|
46853
46853
|
var I0 = /* @__PURE__ */ new WeakMap(), P0 = /* @__PURE__ */ new WeakMap(), O0 = /* @__PURE__ */ new WeakMap(), Du = /* @__PURE__ */ new WeakMap(), Dg = /* @__PURE__ */ new WeakMap(), kg = /* @__PURE__ */ new WeakMap(), ku = /* @__PURE__ */ new WeakMap(), Pp = /* @__PURE__ */ new WeakMap(), Fn = /* @__PURE__ */ new WeakSet();
|
|
46854
46854
|
class Zie extends nt {
|
|
46855
46855
|
constructor() {
|
|
46856
|
-
super(...arguments), Yie(this, Fn), Lh(this, "columnsLimit", 1 / 0), Lh(this, "rowsLimit", 1 / 0), Lh(this, "pasteMode", "overwrite"), Lh(this, "uiContainer", this.hot.rootDocument.body),
|
|
46856
|
+
super(...arguments), Yie(this, Fn), Lh(this, "columnsLimit", 1 / 0), Lh(this, "rowsLimit", 1 / 0), Lh(this, "pasteMode", "overwrite"), Lh(this, "uiContainer", this.hot.rootDocument.body), Ys(this, I0, !1), Ys(this, P0, !1), Ys(this, O0, !1), Ys(this, Du, "cells-only"), Ys(this, Dg, !1), Ys(this, kg, !1), Ys(this, ku, new Uie({
|
|
46857
46857
|
countRows: () => this.hot.countRows(),
|
|
46858
46858
|
countColumns: () => this.hot.countCols(),
|
|
46859
46859
|
rowsLimit: () => this.rowsLimit,
|
|
46860
46860
|
columnsLimit: () => this.columnsLimit,
|
|
46861
46861
|
countColumnHeaders: () => this.hot.view.getColumnHeadersCount()
|
|
46862
|
-
})),
|
|
46862
|
+
})), Ys(this, Pp, !1), Lh(this, "copyableRanges", []);
|
|
46863
46863
|
}
|
|
46864
46864
|
static get PLUGIN_KEY() {
|
|
46865
46865
|
return ES;
|
|
@@ -47318,7 +47318,7 @@ function _S(t, e) {
|
|
|
47318
47318
|
function aoe(t, e) {
|
|
47319
47319
|
return fr(e, "border") && e.border && (t.border = e.border), fr(e, "top") && ge(e.top) && (e.top ? (Ve(e.top) || (e.top = cd()), t.top = e.top) : (e.top = bs(), t.top = e.top)), fr(e, "bottom") && ge(e.bottom) && (e.bottom ? (Ve(e.bottom) || (e.bottom = cd()), t.bottom = e.bottom) : (e.bottom = bs(), t.bottom = e.bottom)), fr(e, "start") && ge(e.start) && (e.start ? (Ve(e.start) || (e.start = cd()), t.start = e.start) : (e.start = bs(), t.start = e.start)), fr(e, "end") && ge(e.end) && (e.end ? (Ve(e.end) || (e.end = cd()), t.end = e.end) : (e.end = bs(), t.end = e.end)), t;
|
|
47320
47320
|
}
|
|
47321
|
-
function
|
|
47321
|
+
function As(t, e) {
|
|
47322
47322
|
let r = !1;
|
|
47323
47323
|
return k(t.getSelectedRange(), (n) => {
|
|
47324
47324
|
n.forAll((i, o) => {
|
|
@@ -47353,10 +47353,10 @@ function doe(t) {
|
|
|
47353
47353
|
key: "borders:bottom",
|
|
47354
47354
|
name() {
|
|
47355
47355
|
let e = this.getTranslatedPhrase(a_);
|
|
47356
|
-
return
|
|
47356
|
+
return As(this, "bottom") && (e = Jw(e)), e;
|
|
47357
47357
|
},
|
|
47358
47358
|
callback(e, r) {
|
|
47359
|
-
const n =
|
|
47359
|
+
const n = As(this, "bottom");
|
|
47360
47360
|
t.prepareBorder(r, "bottom", n);
|
|
47361
47361
|
}
|
|
47362
47362
|
};
|
|
@@ -47367,10 +47367,10 @@ function foe(t) {
|
|
|
47367
47367
|
key: "borders:left",
|
|
47368
47368
|
name() {
|
|
47369
47369
|
let r = this.getTranslatedPhrase(l_);
|
|
47370
|
-
return
|
|
47370
|
+
return As(this, e) && (r = Jw(r)), r;
|
|
47371
47371
|
},
|
|
47372
47372
|
callback(r, n) {
|
|
47373
|
-
const i =
|
|
47373
|
+
const i = As(this, e);
|
|
47374
47374
|
t.prepareBorder(n, e, i);
|
|
47375
47375
|
}
|
|
47376
47376
|
};
|
|
@@ -47385,7 +47385,7 @@ function goe(t) {
|
|
|
47385
47385
|
t.prepareBorder(r, "noBorders");
|
|
47386
47386
|
},
|
|
47387
47387
|
disabled() {
|
|
47388
|
-
return !
|
|
47388
|
+
return !As(this);
|
|
47389
47389
|
}
|
|
47390
47390
|
};
|
|
47391
47391
|
}
|
|
@@ -47395,10 +47395,10 @@ function moe(t) {
|
|
|
47395
47395
|
key: "borders:right",
|
|
47396
47396
|
name() {
|
|
47397
47397
|
let r = this.getTranslatedPhrase(s_);
|
|
47398
|
-
return
|
|
47398
|
+
return As(this, e) && (r = Jw(r)), r;
|
|
47399
47399
|
},
|
|
47400
47400
|
callback(r, n) {
|
|
47401
|
-
const i =
|
|
47401
|
+
const i = As(this, e);
|
|
47402
47402
|
t.prepareBorder(n, e, i);
|
|
47403
47403
|
}
|
|
47404
47404
|
};
|
|
@@ -47408,10 +47408,10 @@ function poe(t) {
|
|
|
47408
47408
|
key: "borders:top",
|
|
47409
47409
|
name() {
|
|
47410
47410
|
let e = this.getTranslatedPhrase(o_);
|
|
47411
|
-
return
|
|
47411
|
+
return As(this, "top") && (e = Jw(e)), e;
|
|
47412
47412
|
},
|
|
47413
47413
|
callback(e, r) {
|
|
47414
|
-
const n =
|
|
47414
|
+
const n = As(this, "top");
|
|
47415
47415
|
t.prepareBorder(r, "top", n);
|
|
47416
47416
|
}
|
|
47417
47417
|
};
|
|
@@ -48860,7 +48860,7 @@ class xf {
|
|
|
48860
48860
|
}
|
|
48861
48861
|
yt(xf, Dr);
|
|
48862
48862
|
const Xd = {};
|
|
48863
|
-
function
|
|
48863
|
+
function Ea(t, e) {
|
|
48864
48864
|
if (!Xd[t])
|
|
48865
48865
|
throw Error(`Filter condition "${t}" does not exist.`);
|
|
48866
48866
|
const {
|
|
@@ -48903,7 +48903,7 @@ sr(Sd, wse, {
|
|
|
48903
48903
|
});
|
|
48904
48904
|
const zm = "not_empty";
|
|
48905
48905
|
function vse(t, e) {
|
|
48906
|
-
return !
|
|
48906
|
+
return !Ea(Sd, e)(t);
|
|
48907
48907
|
}
|
|
48908
48908
|
sr(zm, vse, {
|
|
48909
48909
|
name: w_,
|
|
@@ -48922,7 +48922,7 @@ sr(Rd, yse, {
|
|
|
48922
48922
|
});
|
|
48923
48923
|
const Ym = "neq";
|
|
48924
48924
|
function Cse(t, e) {
|
|
48925
|
-
return !
|
|
48925
|
+
return !Ea(Rd, e)(t);
|
|
48926
48926
|
}
|
|
48927
48927
|
sr(Ym, Cse, {
|
|
48928
48928
|
name: y_,
|
|
@@ -48998,7 +48998,7 @@ function Mse(t, e) {
|
|
|
48998
48998
|
const s = parseFloat(i, 10), a = parseFloat(o, 10);
|
|
48999
48999
|
i = Math.min(s, a), o = Math.max(s, a);
|
|
49000
49000
|
} else if (t.meta.type === "date") {
|
|
49001
|
-
const s =
|
|
49001
|
+
const s = Ea(EM, [o]), a = Ea(RM, [i]);
|
|
49002
49002
|
return s(t) && a(t);
|
|
49003
49003
|
}
|
|
49004
49004
|
return t.value >= i && t.value <= o;
|
|
@@ -49010,7 +49010,7 @@ sr(Op, Mse, {
|
|
|
49010
49010
|
});
|
|
49011
49011
|
const PW = "not_between";
|
|
49012
49012
|
function Ise(t, e) {
|
|
49013
|
-
return !
|
|
49013
|
+
return !Ea(Op, e)(t);
|
|
49014
49014
|
}
|
|
49015
49015
|
sr(PW, Ise, {
|
|
49016
49016
|
name: P_,
|
|
@@ -49049,7 +49049,7 @@ sr(TM, xse, {
|
|
|
49049
49049
|
});
|
|
49050
49050
|
const AW = "not_contains";
|
|
49051
49051
|
function Ase(t, e) {
|
|
49052
|
-
return !
|
|
49052
|
+
return !Ea(TM, e)(t);
|
|
49053
49053
|
}
|
|
49054
49054
|
sr(AW, Ase, {
|
|
49055
49055
|
name: R_,
|
|
@@ -49146,11 +49146,11 @@ function MM(t, e, r) {
|
|
|
49146
49146
|
func: r
|
|
49147
49147
|
};
|
|
49148
49148
|
}
|
|
49149
|
-
const
|
|
49149
|
+
const ba = "conjunction", Vse = L_;
|
|
49150
49150
|
function Wse(t, e) {
|
|
49151
49151
|
return t.every((r) => r.func(e));
|
|
49152
49152
|
}
|
|
49153
|
-
MM(
|
|
49153
|
+
MM(ba, Vse, Wse);
|
|
49154
49154
|
const xp = "disjunction", Bse = Dw;
|
|
49155
49155
|
function jse(t, e) {
|
|
49156
49156
|
return t.some((r) => r.func(e));
|
|
@@ -49325,7 +49325,7 @@ function PM(t, e, r) {
|
|
|
49325
49325
|
throw new TypeError("Private element is not present on this object");
|
|
49326
49326
|
}
|
|
49327
49327
|
var $u = /* @__PURE__ */ new WeakMap(), BN = /* @__PURE__ */ new WeakSet();
|
|
49328
|
-
class
|
|
49328
|
+
class Sa extends Wi {
|
|
49329
49329
|
static get DEFAULTS() {
|
|
49330
49330
|
return Ao({
|
|
49331
49331
|
placeholder: "",
|
|
@@ -49340,7 +49340,7 @@ class ba extends Wi {
|
|
|
49340
49340
|
* @type {HTMLInputElement}
|
|
49341
49341
|
*/
|
|
49342
49342
|
constructor(e, r) {
|
|
49343
|
-
super(e, mr(
|
|
49343
|
+
super(e, mr(Sa.DEFAULTS, r)), Zse(this, BN), Jse(this, $u, void 0), this.registerHooks();
|
|
49344
49344
|
}
|
|
49345
49345
|
/**
|
|
49346
49346
|
* Register all necessary hooks.
|
|
@@ -49550,9 +49550,9 @@ class H0 extends xf {
|
|
|
49550
49550
|
stateless: !1
|
|
49551
49551
|
}), oae(this, kS), jN(this, "name", ""), jN(this, "addSeparator", !1), this.name = r.name, this.addSeparator = r.addSeparator, this.elements.push(new Jd(this.hot, {
|
|
49552
49552
|
menuContainer: r.menuContainer
|
|
49553
|
-
})), this.elements.push(new
|
|
49553
|
+
})), this.elements.push(new Sa(this.hot, {
|
|
49554
49554
|
placeholder: j_
|
|
49555
|
-
})), this.elements.push(new
|
|
49555
|
+
})), this.elements.push(new Sa(this.hot, {
|
|
49556
49556
|
placeholder: U_
|
|
49557
49557
|
})), this.registerHooks();
|
|
49558
49558
|
}
|
|
@@ -49635,7 +49635,7 @@ class H0 extends xf {
|
|
|
49635
49635
|
* @returns {Array}
|
|
49636
49636
|
*/
|
|
49637
49637
|
getInputElements() {
|
|
49638
|
-
return this.elements.filter((e) => e instanceof
|
|
49638
|
+
return this.elements.filter((e) => e instanceof Sa);
|
|
49639
49639
|
}
|
|
49640
49640
|
/**
|
|
49641
49641
|
* Get menu object descriptor.
|
|
@@ -49808,7 +49808,7 @@ class vae extends xf {
|
|
|
49808
49808
|
* @private
|
|
49809
49809
|
*/
|
|
49810
49810
|
buildOperatorsElement() {
|
|
49811
|
-
const e = [
|
|
49811
|
+
const e = [ba, xp];
|
|
49812
49812
|
k(e, (r) => {
|
|
49813
49813
|
const n = new Ap(this.hot, {
|
|
49814
49814
|
name: "operator",
|
|
@@ -49842,7 +49842,7 @@ class vae extends xf {
|
|
|
49842
49842
|
*/
|
|
49843
49843
|
getActiveOperationId() {
|
|
49844
49844
|
const e = this.elements.find((r) => r instanceof Ap && r.isChecked());
|
|
49845
|
-
return e ? e.getValue() :
|
|
49845
|
+
return e ? e.getValue() : ba;
|
|
49846
49846
|
}
|
|
49847
49847
|
/**
|
|
49848
49848
|
* Export state of the component (get selected operator).
|
|
@@ -49869,7 +49869,7 @@ class vae extends xf {
|
|
|
49869
49869
|
* @param {number} column Physical column index.
|
|
49870
49870
|
*/
|
|
49871
49871
|
updateState() {
|
|
49872
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
49872
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ba, r = arguments.length > 1 ? arguments[1] : void 0, n = e;
|
|
49873
49873
|
n === IM && (n = xp), this.state.setValueAtIndex(r, n);
|
|
49874
49874
|
}
|
|
49875
49875
|
/**
|
|
@@ -49961,7 +49961,7 @@ function uc(t, e, r) {
|
|
|
49961
49961
|
throw new TypeError("Private element is not present on this object");
|
|
49962
49962
|
}
|
|
49963
49963
|
const KN = "multipleSelect.itemBox";
|
|
49964
|
-
var Hi = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), FS = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(),
|
|
49964
|
+
var Hi = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), FS = /* @__PURE__ */ new WeakMap(), ts = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakMap(), qs = /* @__PURE__ */ new WeakMap(), jh = /* @__PURE__ */ new WeakSet();
|
|
49965
49965
|
class ef extends Wi {
|
|
49966
49966
|
static get DEFAULTS() {
|
|
49967
49967
|
return Ao({
|
|
@@ -49975,13 +49975,13 @@ class ef extends Wi {
|
|
|
49975
49975
|
* @type {Array}
|
|
49976
49976
|
*/
|
|
49977
49977
|
constructor(e, r) {
|
|
49978
|
-
super(e, mr(ef.DEFAULTS, r)), Rae(this, jh), Wu(this, Hi, []), Wu(this, Xt, void 0), Wu(this, FS, void 0), Wu(this, ts, void 0), Wu(this,
|
|
49978
|
+
super(e, mr(ef.DEFAULTS, r)), Rae(this, jh), Wu(this, Hi, []), Wu(this, Xt, void 0), Wu(this, FS, void 0), Wu(this, ts, void 0), Wu(this, Gs, void 0), Wu(this, qs, void 0), Ei(ts, this, new Sa(this.hot, {
|
|
49979
49979
|
placeholder: B_,
|
|
49980
49980
|
className: "htUIMultipleSelectSearch"
|
|
49981
|
-
})), Ei(
|
|
49981
|
+
})), Ei(Gs, this, new Qd(this.hot, {
|
|
49982
49982
|
textContent: $_,
|
|
49983
49983
|
className: "htUISelectAll"
|
|
49984
|
-
})), Ei(
|
|
49984
|
+
})), Ei(qs, this, new Qd(this.hot, {
|
|
49985
49985
|
textContent: F_,
|
|
49986
49986
|
className: "htUIClearAll"
|
|
49987
49987
|
})), this.registerHooks();
|
|
@@ -49998,7 +49998,7 @@ class ef extends Wi {
|
|
|
49998
49998
|
* Register all necessary hooks.
|
|
49999
49999
|
*/
|
|
50000
50000
|
registerHooks() {
|
|
50001
|
-
xe(ts, this).addLocalHook("keydown", (e) => uc(jh, this, Tae).call(this, e)), xe(ts, this).addLocalHook("input", (e) => uc(jh, this, Eae).call(this, e)), xe(
|
|
50001
|
+
xe(ts, this).addLocalHook("keydown", (e) => uc(jh, this, Tae).call(this, e)), xe(ts, this).addLocalHook("input", (e) => uc(jh, this, Eae).call(this, e)), xe(Gs, this).addLocalHook("click", (e) => uc(jh, this, _ae).call(this, e)), xe(qs, this).addLocalHook("click", (e) => uc(jh, this, Mae).call(this, e));
|
|
50002
50002
|
}
|
|
50003
50003
|
/**
|
|
50004
50004
|
* Set available options.
|
|
@@ -50055,7 +50055,7 @@ class ef extends Wi {
|
|
|
50055
50055
|
* @returns {LinkUI}
|
|
50056
50056
|
*/
|
|
50057
50057
|
getSelectAllElement() {
|
|
50058
|
-
return xe(
|
|
50058
|
+
return xe(Gs, this);
|
|
50059
50059
|
}
|
|
50060
50060
|
/**
|
|
50061
50061
|
* Gets the instance of the "clear" link element.
|
|
@@ -50063,7 +50063,7 @@ class ef extends Wi {
|
|
|
50063
50063
|
* @returns {LinkUI}
|
|
50064
50064
|
*/
|
|
50065
50065
|
getClearAllElement() {
|
|
50066
|
-
return xe(
|
|
50066
|
+
return xe(qs, this);
|
|
50067
50067
|
}
|
|
50068
50068
|
/**
|
|
50069
50069
|
* Check if all values listed in element are selected.
|
|
@@ -50082,7 +50082,7 @@ class ef extends Wi {
|
|
|
50082
50082
|
rootDocument: e
|
|
50083
50083
|
} = this.hot, r = e.createElement("div"), n = new Wi(this.hot, {
|
|
50084
50084
|
className: "htUISelectionControls",
|
|
50085
|
-
children: [xe(
|
|
50085
|
+
children: [xe(Gs, this), xe(qs, this)]
|
|
50086
50086
|
});
|
|
50087
50087
|
this._element.appendChild(xe(ts, this).element), this._element.appendChild(n.element), this._element.appendChild(r);
|
|
50088
50088
|
const i = (o) => {
|
|
@@ -50155,7 +50155,7 @@ class ef extends Wi {
|
|
|
50155
50155
|
* Reset DOM structure.
|
|
50156
50156
|
*/
|
|
50157
50157
|
reset() {
|
|
50158
|
-
xe(ts, this).reset(), xe(
|
|
50158
|
+
xe(ts, this).reset(), xe(Gs, this).reset(), xe(qs, this).reset();
|
|
50159
50159
|
}
|
|
50160
50160
|
/**
|
|
50161
50161
|
* Update DOM structure.
|
|
@@ -50168,7 +50168,7 @@ class ef extends Wi {
|
|
|
50168
50168
|
*/
|
|
50169
50169
|
destroy() {
|
|
50170
50170
|
var e;
|
|
50171
|
-
(e = xe(Xt, this)) === null || e === void 0 || e.destroy(), xe(ts, this).destroy(), xe(
|
|
50171
|
+
(e = xe(Xt, this)) === null || e === void 0 || e.destroy(), xe(ts, this).destroy(), xe(qs, this).destroy(), xe(Gs, this).destroy(), Ei(ts, this, null), Ei(qs, this, null), Ei(Gs, this, null), Ei(Xt, this, null), Ei(Hi, this, null), super.destroy();
|
|
50172
50172
|
}
|
|
50173
50173
|
}
|
|
50174
50174
|
function Eae(t) {
|
|
@@ -50408,12 +50408,12 @@ class tf extends xf {
|
|
|
50408
50408
|
super(e, {
|
|
50409
50409
|
id: r.id,
|
|
50410
50410
|
stateless: !0
|
|
50411
|
-
}), $ae(this, ZN), Vae(this, "name", ""), this.name = r.name, this.elements.push(new
|
|
50411
|
+
}), $ae(this, ZN), Vae(this, "name", ""), this.name = r.name, this.elements.push(new Sa(this.hot, {
|
|
50412
50412
|
type: "button",
|
|
50413
50413
|
value: V_,
|
|
50414
50414
|
className: "htUIButton htUIButtonOK",
|
|
50415
50415
|
identifier: tf.BUTTON_OK
|
|
50416
|
-
})), this.elements.push(new
|
|
50416
|
+
})), this.elements.push(new Sa(this.hot, {
|
|
50417
50417
|
type: "button",
|
|
50418
50418
|
value: W_,
|
|
50419
50419
|
className: "htUIButton htUIButtonCancel",
|
|
@@ -50514,7 +50514,7 @@ class OM {
|
|
|
50514
50514
|
* @returns {boolean}
|
|
50515
50515
|
*/
|
|
50516
50516
|
isMatchInConditions(e, r) {
|
|
50517
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
50517
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ba;
|
|
50518
50518
|
return e.length ? $se(n)(e, r) : !0;
|
|
50519
50519
|
}
|
|
50520
50520
|
/**
|
|
@@ -50531,7 +50531,7 @@ class OM {
|
|
|
50531
50531
|
* @fires ConditionCollection#afterAdd
|
|
50532
50532
|
*/
|
|
50533
50533
|
addCondition(e, r) {
|
|
50534
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
50534
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ba, i = arguments.length > 3 ? arguments[3] : void 0;
|
|
50535
50535
|
const o = this.hot.getCellMeta(0, e).locale, s = r.args.map((c) => typeof c == "string" ? c.toLocaleLowerCase(o) : c), a = r.name || r.command.key;
|
|
50536
50536
|
this.runLocalHooks("beforeAdd", e);
|
|
50537
50537
|
const l = this.getOperation(e);
|
|
@@ -50550,12 +50550,12 @@ class OM {
|
|
|
50550
50550
|
conditions: [{
|
|
50551
50551
|
name: a,
|
|
50552
50552
|
args: s,
|
|
50553
|
-
func:
|
|
50553
|
+
func: Ea(a, s)
|
|
50554
50554
|
}]
|
|
50555
50555
|
}, i) : u.push({
|
|
50556
50556
|
name: a,
|
|
50557
50557
|
args: s,
|
|
50558
|
-
func:
|
|
50558
|
+
func: Ea(a, s)
|
|
50559
50559
|
}), this.runLocalHooks("afterAdd", e);
|
|
50560
50560
|
}
|
|
50561
50561
|
/**
|
|
@@ -51211,7 +51211,7 @@ class lle extends nt {
|
|
|
51211
51211
|
*/
|
|
51212
51212
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
51213
51213
|
addCondition(e, r, n) {
|
|
51214
|
-
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
51214
|
+
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ba;
|
|
51215
51215
|
const o = this.hot.toPhysicalColumn(e);
|
|
51216
51216
|
this.conditionCollection.addCondition(o, {
|
|
51217
51217
|
command: {
|
|
@@ -51400,7 +51400,7 @@ class lle extends nt {
|
|
|
51400
51400
|
*/
|
|
51401
51401
|
getOperationBasedOnArguments(e, r, n, i) {
|
|
51402
51402
|
let o = e;
|
|
51403
|
-
return o === xp && r.command.key !== Pr && n.command.key !== Pr && i.command.key !== Pr ? o = IM : i.command.key !== Pr && (r.command.key === Pr || n.command.key === Pr) && (o =
|
|
51403
|
+
return o === xp && r.command.key !== Pr && n.command.key !== Pr && i.command.key !== Pr ? o = IM : i.command.key !== Pr && (r.command.key === Pr || n.command.key === Pr) && (o = ba), o;
|
|
51404
51404
|
}
|
|
51405
51405
|
/**
|
|
51406
51406
|
* On action bar submit listener.
|
|
@@ -51814,17 +51814,17 @@ function Hle(t, e) {
|
|
|
51814
51814
|
function xt(t, e) {
|
|
51815
51815
|
return t.get(eB(t, e));
|
|
51816
51816
|
}
|
|
51817
|
-
function
|
|
51817
|
+
function Ks(t, e, r) {
|
|
51818
51818
|
return t.set(eB(t, e), r), r;
|
|
51819
51819
|
}
|
|
51820
51820
|
function eB(t, e, r) {
|
|
51821
51821
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
51822
51822
|
throw new TypeError("Private element is not present on this object");
|
|
51823
51823
|
}
|
|
51824
|
-
var Gh = /* @__PURE__ */ new WeakMap(),
|
|
51824
|
+
var Gh = /* @__PURE__ */ new WeakMap(), Xs = /* @__PURE__ */ new WeakMap(), Hn = /* @__PURE__ */ new WeakMap(), Ug = /* @__PURE__ */ new WeakMap(), jS = /* @__PURE__ */ new WeakMap(), US = /* @__PURE__ */ new WeakMap(), zg = /* @__PURE__ */ new WeakMap();
|
|
51825
51825
|
class oD {
|
|
51826
51826
|
constructor(e, r, n) {
|
|
51827
|
-
al(this, Gh, void 0), al(this,
|
|
51827
|
+
al(this, Gh, void 0), al(this, Xs, void 0), al(this, Hn, void 0), al(this, Ug, []), al(this, jS, []), al(this, US, void 0), al(this, zg, []), Ks(Gh, this, e), Ks(Xs, this, r), Ks(Hn, this, n);
|
|
51828
51828
|
}
|
|
51829
51829
|
/**
|
|
51830
51830
|
* Sets removed HF indexes (it should be done right before performing move on HOT).
|
|
@@ -51833,8 +51833,8 @@ class oD {
|
|
|
51833
51833
|
* @returns {Array<number>} List of removed visual indexes.
|
|
51834
51834
|
*/
|
|
51835
51835
|
setRemovedHfIndexes(e) {
|
|
51836
|
-
return
|
|
51837
|
-
const n = xt(
|
|
51836
|
+
return Ks(zg, this, e.map((r) => {
|
|
51837
|
+
const n = xt(Xs, this).getVisualFromPhysicalIndex(r);
|
|
51838
51838
|
return this.getHfIndexFromVisualIndex(n);
|
|
51839
51839
|
})), xt(zg, this);
|
|
51840
51840
|
}
|
|
@@ -51854,7 +51854,7 @@ class oD {
|
|
|
51854
51854
|
* @returns {number}
|
|
51855
51855
|
*/
|
|
51856
51856
|
getHfIndexFromVisualIndex(e) {
|
|
51857
|
-
const r = xt(
|
|
51857
|
+
const r = xt(Xs, this).getIndexesSequence(), n = xt(Xs, this).getNotTrimmedIndexes();
|
|
51858
51858
|
return r.indexOf(n[e], e);
|
|
51859
51859
|
}
|
|
51860
51860
|
/**
|
|
@@ -51880,7 +51880,7 @@ class oD {
|
|
|
51880
51880
|
* @param {boolean} movePossible Indicates if it's possible to move HOT indexes to the desired position.
|
|
51881
51881
|
*/
|
|
51882
51882
|
storeMovesInformation(e, r, n) {
|
|
51883
|
-
n !== !1 && (
|
|
51883
|
+
n !== !1 && (Ks(jS, this, e.map((i) => this.getHfIndexFromVisualIndex(i))), Ks(US, this, this.getHfIndexFromVisualIndex(r)));
|
|
51884
51884
|
}
|
|
51885
51885
|
/**
|
|
51886
51886
|
* Calculating where to move HF elements and performing already calculated moves.
|
|
@@ -51891,7 +51891,7 @@ class oD {
|
|
|
51891
51891
|
calculateAndSyncMoves(e, r) {
|
|
51892
51892
|
if (xt(Hn, this).isPerformingUndoRedo() || e === !1 || r === !1)
|
|
51893
51893
|
return;
|
|
51894
|
-
const n = HM(xt(jS, this), xt(US, this), xt(
|
|
51894
|
+
const n = HM(xt(jS, this), xt(US, this), xt(Xs, this).getNumberOfIndexes());
|
|
51895
51895
|
xt(Hn, this).getSheetId() === null ? xt(Hn, this).getPostponeAction(() => this.syncMoves(n)) : this.syncMoves(n);
|
|
51896
51896
|
}
|
|
51897
51897
|
/**
|
|
@@ -51904,7 +51904,7 @@ class oD {
|
|
|
51904
51904
|
return (r) => {
|
|
51905
51905
|
if (xt(Hn, this).isPerformingUndoRedo())
|
|
51906
51906
|
return;
|
|
51907
|
-
const n = xt(
|
|
51907
|
+
const n = xt(Xs, this).getIndexesSequence();
|
|
51908
51908
|
if (r === "update" && n.length > 0) {
|
|
51909
51909
|
const i = xt(Ug, this).map((l) => n.indexOf(l)), o = xt(Hn, this).getEngine().getSheetDimensions(xt(Hn, this).getSheetId());
|
|
51910
51910
|
let s;
|
|
@@ -51914,14 +51914,14 @@ class oD {
|
|
|
51914
51914
|
i.push(l);
|
|
51915
51915
|
xt(Hn, this).getEngine()[e](xt(Hn, this).getSheetId(), i);
|
|
51916
51916
|
}
|
|
51917
|
-
|
|
51917
|
+
Ks(Ug, this, n);
|
|
51918
51918
|
};
|
|
51919
51919
|
}
|
|
51920
51920
|
/**
|
|
51921
51921
|
* Initialize the AxisSyncer.
|
|
51922
51922
|
*/
|
|
51923
51923
|
init() {
|
|
51924
|
-
|
|
51924
|
+
Ks(Ug, this, xt(Xs, this).getIndexesSequence());
|
|
51925
51925
|
}
|
|
51926
51926
|
}
|
|
51927
51927
|
function ll(t, e, r) {
|
|
@@ -52039,7 +52039,7 @@ function XS(t, e, r) {
|
|
|
52039
52039
|
function rB(t, e) {
|
|
52040
52040
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
52041
52041
|
}
|
|
52042
|
-
function
|
|
52042
|
+
function Ta(t, e, r) {
|
|
52043
52043
|
return t.set(Qe(t, e), r), r;
|
|
52044
52044
|
}
|
|
52045
52045
|
function Wl(t, e) {
|
|
@@ -52057,11 +52057,11 @@ he.getSingleton().register("afterSheetRemoved");
|
|
|
52057
52057
|
he.getSingleton().register("afterSheetRenamed");
|
|
52058
52058
|
he.getSingleton().register("afterFormulasValuesUpdate");
|
|
52059
52059
|
const qc = (t) => t === "UndoRedo.undo" || t === "UndoRedo.redo" || t === "auto";
|
|
52060
|
-
var
|
|
52060
|
+
var Hs = /* @__PURE__ */ new WeakMap(), rv = /* @__PURE__ */ new WeakMap(), qh = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakSet();
|
|
52061
52061
|
class Wle extends nt {
|
|
52062
52062
|
constructor() {
|
|
52063
52063
|
var e;
|
|
52064
|
-
super(...arguments), e = this, kle(this, rt), XS(this,
|
|
52064
|
+
super(...arguments), e = this, kle(this, rt), XS(this, Hs, !1), XS(this, rv, !1), XS(this, qh, [["valuesUpdated", function() {
|
|
52065
52065
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
52066
52066
|
n[i] = arguments[i];
|
|
52067
52067
|
return Qe(rt, e, nue).call(e, ...n);
|
|
@@ -52275,7 +52275,7 @@ class Wle extends nt {
|
|
|
52275
52275
|
var r;
|
|
52276
52276
|
let [n, i] = e;
|
|
52277
52277
|
return (r = this.engine) === null || r === void 0 ? void 0 : r.off(n, i);
|
|
52278
|
-
}),
|
|
52278
|
+
}), Ta(qh, this, null), iD(this.engine, this.hot), this.engine = null, super.destroy();
|
|
52279
52279
|
}
|
|
52280
52280
|
/**
|
|
52281
52281
|
* Add a sheet to the shared HyperFormula instance.
|
|
@@ -52506,7 +52506,7 @@ function jle(t, e, r) {
|
|
|
52506
52506
|
return f;
|
|
52507
52507
|
}
|
|
52508
52508
|
function sD(t, e) {
|
|
52509
|
-
(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "").includes(Ui(jr)) ||
|
|
52509
|
+
(arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "").includes(Ui(jr)) || Ta(rv, this, $t(this.hot.getSettings().data));
|
|
52510
52510
|
}
|
|
52511
52511
|
function Ule() {
|
|
52512
52512
|
if (Wl(rv, this)) {
|
|
@@ -52521,9 +52521,9 @@ function Ule() {
|
|
|
52521
52521
|
}), a = s.dateFormat;
|
|
52522
52522
|
AM(i, s.type) && (ZW(i, a) ? t[n][o] = JW(i, a) : i.startsWith("=") || (t[n][o] = `'${i}`));
|
|
52523
52523
|
});
|
|
52524
|
-
}),
|
|
52524
|
+
}), Ta(Hs, this, !0);
|
|
52525
52525
|
const e = this.engine.setSheetContent(this.sheetId, t);
|
|
52526
|
-
this.indexSyncer.setupSyncEndpoint(this.engine, this.sheetId), this.renderDependentSheets(e),
|
|
52526
|
+
this.indexSyncer.setupSyncEndpoint(this.engine, this.sheetId), this.renderDependentSheets(e), Ta(Hs, this, !1);
|
|
52527
52527
|
}
|
|
52528
52528
|
function aD(t, e) {
|
|
52529
52529
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
|
|
@@ -52536,14 +52536,14 @@ function aD(t, e) {
|
|
|
52536
52536
|
else {
|
|
52537
52537
|
const i = this.hot.getSourceDataArray();
|
|
52538
52538
|
if (this.engine.isItPossibleToReplaceSheetContent(this.sheetId, i)) {
|
|
52539
|
-
|
|
52539
|
+
Ta(Hs, this, !0);
|
|
52540
52540
|
const o = this.engine.setSheetContent(this.sheetId, i);
|
|
52541
|
-
this.indexSyncer.setupSyncEndpoint(this.engine, this.sheetId), this.renderDependentSheets(o),
|
|
52541
|
+
this.indexSyncer.setupSyncEndpoint(this.engine, this.sheetId), this.renderDependentSheets(o), Ta(Hs, this, !1);
|
|
52542
52542
|
}
|
|
52543
52543
|
}
|
|
52544
52544
|
}
|
|
52545
52545
|
function zle(t, e, r, n) {
|
|
52546
|
-
if (n !== "get" || Wl(
|
|
52546
|
+
if (n !== "get" || Wl(Hs, this) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName))
|
|
52547
52547
|
return;
|
|
52548
52548
|
const i = this.hot.toVisualRow(t);
|
|
52549
52549
|
if (i === null || e === null)
|
|
@@ -52565,7 +52565,7 @@ function zle(t, e, r, n) {
|
|
|
52565
52565
|
l.type === "date" && nn(a) && (a = QW(a, l.dateFormat)), r.value = typeof a == "object" && a !== null ? a.value : a;
|
|
52566
52566
|
}
|
|
52567
52567
|
function Yle(t, e, r, n) {
|
|
52568
|
-
if (n !== "get" || Wl(
|
|
52568
|
+
if (n !== "get" || Wl(Hs, this) || this.sheetName === null || !this.engine.doesSheetExist(this.sheetName))
|
|
52569
52569
|
return;
|
|
52570
52570
|
const i = this.hot.toVisualRow(t), o = this.hot.propToCol(e);
|
|
52571
52571
|
if (i === null || o === null)
|
|
@@ -52682,9 +52682,9 @@ function tue(t, e, r, n) {
|
|
|
52682
52682
|
}
|
|
52683
52683
|
function rue(t, e, r) {
|
|
52684
52684
|
var n;
|
|
52685
|
-
|
|
52685
|
+
Ta(Hs, this, !0);
|
|
52686
52686
|
const i = this.hot.getSourceDataArray(r, 0, r + (((n = e.__children) === null || n === void 0 ? void 0 : n.length) || 0), this.hot.countSourceCols());
|
|
52687
|
-
|
|
52687
|
+
Ta(Hs, this, !1), i.forEach((o, s) => {
|
|
52688
52688
|
o.forEach((a, l) => {
|
|
52689
52689
|
this.engine.setCellContents({
|
|
52690
52690
|
col: l,
|
|
@@ -52793,12 +52793,12 @@ function nB(t, e) {
|
|
|
52793
52793
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
52794
52794
|
}
|
|
52795
52795
|
function hl(t, e) {
|
|
52796
|
-
return t.get(
|
|
52796
|
+
return t.get(ia(t, e));
|
|
52797
52797
|
}
|
|
52798
52798
|
function uD(t, e, r) {
|
|
52799
|
-
return t.set(
|
|
52799
|
+
return t.set(ia(t, e), r), r;
|
|
52800
52800
|
}
|
|
52801
|
-
function
|
|
52801
|
+
function ia(t, e, r) {
|
|
52802
52802
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
52803
52803
|
throw new TypeError("Private element is not present on this object");
|
|
52804
52804
|
}
|
|
@@ -52839,15 +52839,15 @@ class gue extends nt {
|
|
|
52839
52839
|
*/
|
|
52840
52840
|
enablePlugin() {
|
|
52841
52841
|
var e = this;
|
|
52842
|
-
this.enabled || (uD(io, this, new Aw()), hl(io, this).addLocalHook("init", () =>
|
|
52842
|
+
this.enabled || (uD(io, this, new Aw()), hl(io, this).addLocalHook("init", () => ia(dl, this, Cue).call(this)), this.hot.columnIndexMapper.registerMap(this.pluginName, hl(io, this)), this.addHook("afterContextMenuDefaultOptions", function() {
|
|
52843
52843
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
52844
52844
|
n[i] = arguments[i];
|
|
52845
|
-
return
|
|
52846
|
-
}), this.addHook("afterGetCellMeta", (r, n, i) =>
|
|
52845
|
+
return ia(dl, e, yue).call(e, ...n);
|
|
52846
|
+
}), this.addHook("afterGetCellMeta", (r, n, i) => ia(dl, this, pue).call(this, r, n, i)), this.addHook("modifyColWidth", (r, n) => ia(dl, this, mue).call(this, r, n), 2), this.addHook("afterGetColHeader", function() {
|
|
52847
52847
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
52848
52848
|
n[i] = arguments[i];
|
|
52849
|
-
return
|
|
52850
|
-
}), this.addHook("modifyCopyableRange", (r) =>
|
|
52849
|
+
return ia(dl, e, vue).call(e, ...n);
|
|
52850
|
+
}), this.addHook("modifyCopyableRange", (r) => ia(dl, this, wue).call(this, r)), super.enablePlugin());
|
|
52851
52851
|
}
|
|
52852
52852
|
/**
|
|
52853
52853
|
* Updates the plugin's state.
|
|
@@ -53090,12 +53090,12 @@ function iB(t, e) {
|
|
|
53090
53090
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
53091
53091
|
}
|
|
53092
53092
|
function fl(t, e) {
|
|
53093
|
-
return t.get(
|
|
53093
|
+
return t.get(oa(t, e));
|
|
53094
53094
|
}
|
|
53095
53095
|
function hD(t, e, r) {
|
|
53096
|
-
return t.set(
|
|
53096
|
+
return t.set(oa(t, e), r), r;
|
|
53097
53097
|
}
|
|
53098
|
-
function
|
|
53098
|
+
function oa(t, e, r) {
|
|
53099
53099
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
53100
53100
|
throw new TypeError("Private element is not present on this object");
|
|
53101
53101
|
}
|
|
@@ -53136,15 +53136,15 @@ class _ue extends nt {
|
|
|
53136
53136
|
*/
|
|
53137
53137
|
enablePlugin() {
|
|
53138
53138
|
var e = this;
|
|
53139
|
-
this.enabled || (hD(oo, this, new Aw()), fl(oo, this).addLocalHook("init", () =>
|
|
53139
|
+
this.enabled || (hD(oo, this, new Aw()), fl(oo, this).addLocalHook("init", () => oa(gl, this, Aue).call(this)), this.hot.rowIndexMapper.registerMap(this.pluginName, fl(oo, this)), this.addHook("afterContextMenuDefaultOptions", function() {
|
|
53140
53140
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
53141
53141
|
n[i] = arguments[i];
|
|
53142
|
-
return
|
|
53143
|
-
}), this.addHook("afterGetCellMeta", (r, n, i) =>
|
|
53142
|
+
return oa(gl, e, xue).call(e, ...n);
|
|
53143
|
+
}), this.addHook("afterGetCellMeta", (r, n, i) => oa(gl, this, Iue).call(this, r, n, i)), this.addHook("modifyRowHeight", (r, n) => oa(gl, this, Mue).call(this, r, n)), this.addHook("afterGetRowHeader", function() {
|
|
53144
53144
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
53145
53145
|
n[i] = arguments[i];
|
|
53146
|
-
return
|
|
53147
|
-
}), this.addHook("modifyCopyableRange", (r) =>
|
|
53146
|
+
return oa(gl, e, Oue).call(e, ...n);
|
|
53147
|
+
}), this.addHook("modifyCopyableRange", (r) => oa(gl, this, Pue).call(this, r)), super.enablePlugin());
|
|
53148
53148
|
}
|
|
53149
53149
|
/**
|
|
53150
53150
|
* Updates the plugin's state.
|
|
@@ -53593,22 +53593,22 @@ function aB(t, e) {
|
|
|
53593
53593
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
53594
53594
|
}
|
|
53595
53595
|
function En(t, e, r) {
|
|
53596
|
-
return t.set(
|
|
53596
|
+
return t.set(sa(t, e), r), r;
|
|
53597
53597
|
}
|
|
53598
53598
|
function we(t, e) {
|
|
53599
|
-
return t.get(
|
|
53599
|
+
return t.get(sa(t, e));
|
|
53600
53600
|
}
|
|
53601
|
-
function
|
|
53601
|
+
function sa(t, e, r) {
|
|
53602
53602
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
53603
53603
|
throw new TypeError("Private element is not present on this object");
|
|
53604
53604
|
}
|
|
53605
53605
|
he.getSingleton().register("beforeColumnMove");
|
|
53606
53606
|
he.getSingleton().register("afterColumnMove");
|
|
53607
53607
|
const eR = "manualColumnMove", que = 120, pD = "ht__manualColumnMove", Np = "show-ui", $0 = "on-moving--columns", F0 = "after-selection--columns";
|
|
53608
|
-
var en = /* @__PURE__ */ new WeakMap(),
|
|
53608
|
+
var en = /* @__PURE__ */ new WeakMap(), la = /* @__PURE__ */ new WeakMap(), Ss = /* @__PURE__ */ new WeakMap(), qm = /* @__PURE__ */ new WeakMap(), pa = /* @__PURE__ */ new WeakMap(), Qr = /* @__PURE__ */ new WeakMap(), Kg = /* @__PURE__ */ new WeakMap(), ti = /* @__PURE__ */ new WeakMap(), nc = /* @__PURE__ */ new WeakMap(), Dp = /* @__PURE__ */ new WeakMap(), _d = /* @__PURE__ */ new WeakMap(), ml = /* @__PURE__ */ new WeakSet();
|
|
53609
53609
|
class Kue extends nt {
|
|
53610
53610
|
constructor() {
|
|
53611
|
-
super(...arguments), Gue(this, ml), Ti(this, en, new Uue(this.hot)), Ti(this,
|
|
53611
|
+
super(...arguments), Gue(this, ml), Ti(this, en, new Uue(this.hot)), Ti(this, la, new Yue(this.hot)), Ti(this, Ss, []), Ti(this, qm, 0), Ti(this, pa, !1), Ti(this, Qr, {}), Ti(this, Kg, void 0), Ti(this, ti, void 0), Ti(this, nc, void 0), Ti(this, Dp, void 0), Ti(this, _d, void 0);
|
|
53612
53612
|
}
|
|
53613
53613
|
static get PLUGIN_KEY() {
|
|
53614
53614
|
return eR;
|
|
@@ -53633,15 +53633,15 @@ class Kue extends nt {
|
|
|
53633
53633
|
this.enabled || (this.addHook("beforeOnCellMouseDown", function() {
|
|
53634
53634
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
53635
53635
|
n[i] = arguments[i];
|
|
53636
|
-
return
|
|
53636
|
+
return sa(ml, e, Xue).call(e, ...n);
|
|
53637
53637
|
}), this.addHook("beforeOnCellMouseOver", function() {
|
|
53638
53638
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
53639
53639
|
n[i] = arguments[i];
|
|
53640
|
-
return
|
|
53641
|
-
}), this.addHook("afterScrollVertically", () =>
|
|
53640
|
+
return sa(ml, e, Jue).call(e, ...n);
|
|
53641
|
+
}), this.addHook("afterScrollVertically", () => sa(ml, this, ece).call(this)), this.addHook("afterLoadData", function() {
|
|
53642
53642
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
53643
53643
|
n[i] = arguments[i];
|
|
53644
|
-
return
|
|
53644
|
+
return sa(ml, e, tce).call(e, ...n);
|
|
53645
53645
|
}), this.buildPluginUI(), this.registerEvents(), ne(this.hot.rootElement, pD), super.enablePlugin());
|
|
53646
53646
|
}
|
|
53647
53647
|
/**
|
|
@@ -53657,7 +53657,7 @@ class Kue extends nt {
|
|
|
53657
53657
|
* Disables the plugin functionality for this Handsontable instance.
|
|
53658
53658
|
*/
|
|
53659
53659
|
disablePlugin() {
|
|
53660
|
-
Re(this.hot.rootElement, pD), this.unregisterEvents(), we(en, this).destroy(), we(
|
|
53660
|
+
Re(this.hot.rootElement, pD), this.unregisterEvents(), we(en, this).destroy(), we(la, this).destroy(), super.disablePlugin();
|
|
53661
53661
|
}
|
|
53662
53662
|
/**
|
|
53663
53663
|
* Moves a single column.
|
|
@@ -53856,7 +53856,7 @@ class Kue extends nt {
|
|
|
53856
53856
|
} else
|
|
53857
53857
|
we(Qr, this).col = we(ti, this);
|
|
53858
53858
|
let d = h, f = o;
|
|
53859
|
-
h + u + l >= s ? d = s - u - l : h + l < a + c && (d = a + c + Math.abs(l)), o >= s - 1 ? f = s - 1 : f === 0 ? f = 1 : n.scrollX !== void 0 && we(ti, this) < we(_d, this) && (f -= we(nc, this) <= n.scrollX ? we(nc, this) : 0), we(en, this).setPosition(null, d), we(
|
|
53859
|
+
h + u + l >= s ? d = s - u - l : h + l < a + c && (d = a + c + Math.abs(l)), o >= s - 1 ? f = s - 1 : f === 0 ? f = 1 : n.scrollX !== void 0 && we(ti, this) < we(_d, this) && (f -= we(nc, this) <= n.scrollX ? we(nc, this) : 0), we(en, this).setPosition(null, d), we(la, this).setPosition(null, f);
|
|
53860
53860
|
}
|
|
53861
53861
|
/**
|
|
53862
53862
|
* Binds the events used by the plugin.
|
|
@@ -53867,7 +53867,7 @@ class Kue extends nt {
|
|
|
53867
53867
|
const {
|
|
53868
53868
|
documentElement: e
|
|
53869
53869
|
} = this.hot.rootDocument;
|
|
53870
|
-
this.eventManager.addEventListener(e, "mousemove", (r) =>
|
|
53870
|
+
this.eventManager.addEventListener(e, "mousemove", (r) => sa(ml, this, Zue).call(this, r)), this.eventManager.addEventListener(e, "mouseup", () => sa(ml, this, Que).call(this));
|
|
53871
53871
|
}
|
|
53872
53872
|
/**
|
|
53873
53873
|
* Unbinds the events used by the plugin.
|
|
@@ -53883,7 +53883,7 @@ class Kue extends nt {
|
|
|
53883
53883
|
* @private
|
|
53884
53884
|
*/
|
|
53885
53885
|
buildPluginUI() {
|
|
53886
|
-
we(en, this).build(), we(
|
|
53886
|
+
we(en, this).build(), we(la, this).build();
|
|
53887
53887
|
}
|
|
53888
53888
|
/**
|
|
53889
53889
|
* Callback for the `afterLoadData` hook.
|
|
@@ -53894,39 +53894,39 @@ class Kue extends nt {
|
|
|
53894
53894
|
* Destroys the plugin instance.
|
|
53895
53895
|
*/
|
|
53896
53896
|
destroy() {
|
|
53897
|
-
we(en, this).destroy(), we(
|
|
53897
|
+
we(en, this).destroy(), we(la, this).destroy(), super.destroy();
|
|
53898
53898
|
}
|
|
53899
53899
|
}
|
|
53900
53900
|
function Xue(t, e, r, n) {
|
|
53901
53901
|
const i = this.hot.view._wt.wtTable, o = this.hot.selection.isSelectedByColumnHeader(), s = this.hot.getSelectedRangeLast(), a = Te(t.target, "sortAction");
|
|
53902
|
-
if (!s || !o || we(
|
|
53903
|
-
En(
|
|
53902
|
+
if (!s || !o || we(pa, this) || t.button !== 0 || a) {
|
|
53903
|
+
En(pa, this, !1), we(Ss, this).length = 0, Re(this.hot.rootElement, [$0, Np]);
|
|
53904
53904
|
return;
|
|
53905
53905
|
}
|
|
53906
|
-
const l = we(
|
|
53907
|
-
l && u && (we(
|
|
53906
|
+
const l = we(la, this).isBuilt() && !we(la, this).isAppended(), u = we(en, this).isBuilt() && !we(en, this).isAppended();
|
|
53907
|
+
l && u && (we(la, this).appendTo(i.hider), we(en, this).appendTo(i.hider));
|
|
53908
53908
|
const {
|
|
53909
53909
|
from: c,
|
|
53910
53910
|
to: h
|
|
53911
53911
|
} = s, d = Math.min(c.col, h.col), f = Math.max(c.col, h.col);
|
|
53912
53912
|
if (e.row < 0 && e.col >= d && e.col <= f) {
|
|
53913
|
-
n.column = !0, En(
|
|
53913
|
+
n.column = !0, En(pa, this, !0);
|
|
53914
53914
|
const g = r.firstChild ? G3(t, r.firstChild).x : t.offsetX;
|
|
53915
53915
|
we(Qr, this).eventPageX = t.pageX, En(ti, this, e.col), we(Qr, this).TD = r, we(Qr, this).col = e.col, En(Ss, this, this.prepareColumnsToMoving(d, f)), En(Dp, this, !!this.hot.getSettings().rowHeaders), En(qm, this, this.hot.countCols()), En(_d, this, this.hot.getSettings().fixedColumnsStart), En(nc, this, Ur(this.hot.rootElement).left);
|
|
53916
53916
|
const w = we(Dp, this) ? -1 : 0, v = i.holder.scrollTop + i.getColumnHeaderHeight(0) + 1, b = e.col < we(_d, this), p = this.hot.view._wt.wtOverlays.inlineStartOverlay.getOverlayOffset(), _ = Math.abs(g - (this.hot.isRtl() ? r.offsetWidth : 0)), O = this.getColumnsWidth(d, e.col - 1) + _, T = this.getColumnsWidth(w, d - 1) + (b ? p : 0) + O;
|
|
53917
53917
|
we(en, this).setPosition(v, T), we(en, this).setSize(this.getColumnsWidth(d, f), i.hider.offsetHeight - v), we(en, this).setOffset(null, -O), ne(this.hot.rootElement, $0);
|
|
53918
53918
|
} else
|
|
53919
|
-
Re(this.hot.rootElement, F0), En(
|
|
53919
|
+
Re(this.hot.rootElement, F0), En(pa, this, !1), we(Ss, this).length = 0;
|
|
53920
53920
|
}
|
|
53921
53921
|
function Zue(t) {
|
|
53922
|
-
we(
|
|
53922
|
+
we(pa, this) && (we(Qr, this).eventPageX = t.pageX, this.refreshPositions());
|
|
53923
53923
|
}
|
|
53924
53924
|
function Jue(t, e, r, n) {
|
|
53925
|
-
!this.hot.getSelectedRangeLast() || !we(
|
|
53925
|
+
!this.hot.getSelectedRangeLast() || !we(pa, this) || (we(Ss, this).indexOf(e.col) > -1 ? Re(this.hot.rootElement, Np) : ne(this.hot.rootElement, Np), n.row = !0, n.column = !0, n.cell = !0, En(ti, this, e.col), we(Qr, this).TD = r);
|
|
53926
53926
|
}
|
|
53927
53927
|
function Que() {
|
|
53928
53928
|
const t = we(Qr, this).col, e = we(Ss, this).length;
|
|
53929
|
-
if (En(ti, this, void 0), En(
|
|
53929
|
+
if (En(ti, this, void 0), En(pa, this, !1), Re(this.hot.rootElement, [$0, Np, F0]), this.hot.selection.isSelectedByColumnHeader() && ne(this.hot.rootElement, F0), e < 1 || t === void 0)
|
|
53930
53930
|
return;
|
|
53931
53931
|
const r = we(Ss, this)[0], n = this.hot.toPhysicalColumn(r), i = this.dragColumns(we(Ss, this), t);
|
|
53932
53932
|
if (we(Ss, this).length = 0, i === !0) {
|
|
@@ -54422,22 +54422,22 @@ function cB(t, e) {
|
|
|
54422
54422
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
54423
54423
|
}
|
|
54424
54424
|
function Ll(t, e, r) {
|
|
54425
|
-
return t.set(
|
|
54425
|
+
return t.set(aa(t, e), r), r;
|
|
54426
54426
|
}
|
|
54427
54427
|
function Oe(t, e) {
|
|
54428
|
-
return t.get(
|
|
54428
|
+
return t.get(aa(t, e));
|
|
54429
54429
|
}
|
|
54430
|
-
function
|
|
54430
|
+
function aa(t, e, r) {
|
|
54431
54431
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
54432
54432
|
throw new TypeError("Private element is not present on this object");
|
|
54433
54433
|
}
|
|
54434
54434
|
he.getSingleton().register("beforeRowMove");
|
|
54435
54435
|
he.getSingleton().register("afterRowMove");
|
|
54436
54436
|
const nR = "manualRowMove", Sce = 140, CD = "ht__manualRowMove", Fp = "show-ui", V0 = "on-moving--rows", W0 = "after-selection--rows";
|
|
54437
|
-
var tn = /* @__PURE__ */ new WeakMap(),
|
|
54437
|
+
var tn = /* @__PURE__ */ new WeakMap(), ua = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), wa = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Jg = /* @__PURE__ */ new WeakMap(), pl = /* @__PURE__ */ new WeakSet();
|
|
54438
54438
|
class Rce extends nt {
|
|
54439
54439
|
constructor() {
|
|
54440
|
-
super(...arguments), bce(this, pl), Uu(this, tn, new vce(this.hot)), Uu(this,
|
|
54440
|
+
super(...arguments), bce(this, pl), Uu(this, tn, new vce(this.hot)), Uu(this, ua, new Cce(this.hot)), Uu(this, Rs, []), Uu(this, wa, void 0), Uu(this, Tn, {}), Uu(this, Jg, void 0);
|
|
54441
54441
|
}
|
|
54442
54442
|
static get PLUGIN_KEY() {
|
|
54443
54443
|
return nR;
|
|
@@ -54462,15 +54462,15 @@ class Rce extends nt {
|
|
|
54462
54462
|
this.enabled || (this.addHook("beforeOnCellMouseDown", function() {
|
|
54463
54463
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
54464
54464
|
n[i] = arguments[i];
|
|
54465
|
-
return
|
|
54465
|
+
return aa(pl, e, Ece).call(e, ...n);
|
|
54466
54466
|
}), this.addHook("beforeOnCellMouseOver", function() {
|
|
54467
54467
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
54468
54468
|
n[i] = arguments[i];
|
|
54469
|
-
return
|
|
54470
|
-
}), this.addHook("afterScrollHorizontally", () =>
|
|
54469
|
+
return aa(pl, e, _ce).call(e, ...n);
|
|
54470
|
+
}), this.addHook("afterScrollHorizontally", () => aa(pl, this, Ice).call(this)), this.addHook("afterLoadData", function() {
|
|
54471
54471
|
for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
|
|
54472
54472
|
n[i] = arguments[i];
|
|
54473
|
-
return
|
|
54473
|
+
return aa(pl, e, Pce).call(e, ...n);
|
|
54474
54474
|
}), this.buildPluginUI(), this.registerEvents(), ne(this.hot.rootElement, CD), super.enablePlugin());
|
|
54475
54475
|
}
|
|
54476
54476
|
/**
|
|
@@ -54486,7 +54486,7 @@ class Rce extends nt {
|
|
|
54486
54486
|
* Disables the plugin functionality for this Handsontable instance.
|
|
54487
54487
|
*/
|
|
54488
54488
|
disablePlugin() {
|
|
54489
|
-
Re(this.hot.rootElement, CD), this.unregisterEvents(), Oe(tn, this).destroy(), Oe(
|
|
54489
|
+
Re(this.hot.rootElement, CD), this.unregisterEvents(), Oe(tn, this).destroy(), Oe(ua, this).destroy(), super.disablePlugin();
|
|
54490
54490
|
}
|
|
54491
54491
|
/**
|
|
54492
54492
|
* Moves a single row.
|
|
@@ -54688,7 +54688,7 @@ class Rce extends nt {
|
|
|
54688
54688
|
const T = f >= O + p;
|
|
54689
54689
|
this.isFixedRowTop(e.row) && (O += this.hot.view._wt.wtOverlays.topOverlay.getOverlayOffset()), e.row < 0 ? Oe(Tn, this).row = r > 0 ? r - 1 : r : T ? (Oe(Tn, this).row = e.row + 1, O += e.row === 0 ? _ - 1 : _) : Oe(Tn, this).row = e.row;
|
|
54690
54690
|
let M = f, I = O;
|
|
54691
|
-
f + b + v >= g ? M = g - b - v : f + v < w && (M = w + Math.abs(v)), O >= g - 1 && (I = g - 1), Oe(tn, this).setPosition(M), Oe(
|
|
54691
|
+
f + b + v >= g ? M = g - b - v : f + v < w && (M = w + Math.abs(v)), O >= g - 1 && (I = g - 1), Oe(tn, this).setPosition(M), Oe(ua, this).setPosition(I);
|
|
54692
54692
|
}
|
|
54693
54693
|
/**
|
|
54694
54694
|
* Binds the events used by the plugin.
|
|
@@ -54699,7 +54699,7 @@ class Rce extends nt {
|
|
|
54699
54699
|
const {
|
|
54700
54700
|
documentElement: e
|
|
54701
54701
|
} = this.hot.rootDocument;
|
|
54702
|
-
this.eventManager.addEventListener(e, "mousemove", (r) =>
|
|
54702
|
+
this.eventManager.addEventListener(e, "mousemove", (r) => aa(pl, this, Tce).call(this, r)), this.eventManager.addEventListener(e, "mouseup", () => aa(pl, this, Mce).call(this));
|
|
54703
54703
|
}
|
|
54704
54704
|
/**
|
|
54705
54705
|
* Unbinds the events used by the plugin.
|
|
@@ -54715,7 +54715,7 @@ class Rce extends nt {
|
|
|
54715
54715
|
* @private
|
|
54716
54716
|
*/
|
|
54717
54717
|
buildPluginUI() {
|
|
54718
|
-
Oe(tn, this).build(), Oe(
|
|
54718
|
+
Oe(tn, this).build(), Oe(ua, this).build();
|
|
54719
54719
|
}
|
|
54720
54720
|
/**
|
|
54721
54721
|
* Callback for the `afterLoadData` hook.
|
|
@@ -54724,7 +54724,7 @@ class Rce extends nt {
|
|
|
54724
54724
|
* Destroys the plugin instance.
|
|
54725
54725
|
*/
|
|
54726
54726
|
destroy() {
|
|
54727
|
-
Oe(tn, this).destroy(), Oe(
|
|
54727
|
+
Oe(tn, this).destroy(), Oe(ua, this).destroy(), super.destroy();
|
|
54728
54728
|
}
|
|
54729
54729
|
}
|
|
54730
54730
|
function Ece(t, e, r, n) {
|
|
@@ -54732,32 +54732,32 @@ function Ece(t, e, r, n) {
|
|
|
54732
54732
|
wtTable: i,
|
|
54733
54733
|
wtViewport: o
|
|
54734
54734
|
} = this.hot.view._wt, s = this.hot.selection.isSelectedByRowHeader(), a = this.hot.getSelectedRangeLast();
|
|
54735
|
-
if (!a || !s || Oe(
|
|
54736
|
-
Ll(
|
|
54735
|
+
if (!a || !s || Oe(wa, this) || t.button !== 0) {
|
|
54736
|
+
Ll(wa, this, !1), Oe(Rs, this).length = 0, Re(this.hot.rootElement, [V0, Fp]);
|
|
54737
54737
|
return;
|
|
54738
54738
|
}
|
|
54739
|
-
const l = Oe(
|
|
54740
|
-
l && u && (Oe(
|
|
54739
|
+
const l = Oe(ua, this).isBuilt() && !Oe(ua, this).isAppended(), u = Oe(tn, this).isBuilt() && !Oe(tn, this).isAppended();
|
|
54740
|
+
l && u && (Oe(ua, this).appendTo(i.hider), Oe(tn, this).appendTo(i.hider));
|
|
54741
54741
|
const {
|
|
54742
54742
|
from: c,
|
|
54743
54743
|
to: h
|
|
54744
54744
|
} = a, d = Math.min(c.row, h.row), f = Math.max(c.row, h.row);
|
|
54745
54745
|
if (e.col < 0 && e.row >= d && e.row <= f) {
|
|
54746
|
-
n.row = !0, Ll(
|
|
54746
|
+
n.row = !0, Ll(wa, this, !0), Oe(Tn, this).eventPageY = t.pageY, Oe(Tn, this).coords = e, Oe(Tn, this).TD = r, Ll(Rs, this, this.prepareRowsToMoving());
|
|
54747
54747
|
const g = i.holder.scrollLeft + o.getRowHeaderWidth(), w = this.getRowsHeight(d, e.row - 1) + (t.clientY - r.getBoundingClientRect().top);
|
|
54748
54748
|
Oe(tn, this).setPosition(null, g), Oe(tn, this).setSize(i.hider.offsetWidth - g, this.getRowsHeight(d, f)), Oe(tn, this).setOffset(-w, null), ne(this.hot.rootElement, V0), this.refreshPositions();
|
|
54749
54749
|
} else
|
|
54750
|
-
Re(this.hot.rootElement, W0), Ll(
|
|
54750
|
+
Re(this.hot.rootElement, W0), Ll(wa, this, !1), Oe(Rs, this).length = 0;
|
|
54751
54751
|
}
|
|
54752
54752
|
function Tce(t) {
|
|
54753
|
-
Oe(
|
|
54753
|
+
Oe(wa, this) && (Oe(Tn, this).eventPageY = t.pageY, this.refreshPositions());
|
|
54754
54754
|
}
|
|
54755
54755
|
function _ce(t, e, r, n) {
|
|
54756
|
-
!this.hot.getSelectedRangeLast() || !Oe(
|
|
54756
|
+
!this.hot.getSelectedRangeLast() || !Oe(wa, this) || (Oe(Rs, this).indexOf(e.row) > -1 ? Re(this.hot.rootElement, Fp) : ne(this.hot.rootElement, Fp), n.row = !0, n.column = !0, n.cell = !0, Oe(Tn, this).coords = e, Oe(Tn, this).TD = r);
|
|
54757
54757
|
}
|
|
54758
54758
|
function Mce() {
|
|
54759
54759
|
const t = Oe(Tn, this).row, e = Oe(Rs, this).length;
|
|
54760
|
-
if (Ll(
|
|
54760
|
+
if (Ll(wa, this, !1), Re(this.hot.rootElement, [V0, Fp, W0]), this.hot.selection.isSelectedByRowHeader() && ne(this.hot.rootElement, W0), e < 1 || t === void 0)
|
|
54761
54761
|
return;
|
|
54762
54762
|
const r = Oe(Rs, this)[0], n = this.hot.toPhysicalRow(r), i = this.dragRows(Oe(Rs, this), t);
|
|
54763
54763
|
if (Oe(Rs, this).length = 0, i === !0) {
|
|
@@ -54793,7 +54793,7 @@ function gs(t, e, r) {
|
|
|
54793
54793
|
throw new TypeError("Private element is not present on this object");
|
|
54794
54794
|
}
|
|
54795
54795
|
const Vp = "manualRowResize", xce = 30, bD = "manualRowHeights";
|
|
54796
|
-
var vo = /* @__PURE__ */ new WeakMap(), Qg = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Od = /* @__PURE__ */ new WeakMap(),
|
|
54796
|
+
var vo = /* @__PURE__ */ new WeakMap(), Qg = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Od = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new WeakMap(), NM = /* @__PURE__ */ new WeakMap(), vc = /* @__PURE__ */ new WeakMap(), em = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), mo = /* @__PURE__ */ new WeakMap(), Jl = /* @__PURE__ */ new WeakMap(), Wp = /* @__PURE__ */ new WeakMap(), xd = /* @__PURE__ */ new WeakMap(), Ad = /* @__PURE__ */ new WeakMap(), Li = /* @__PURE__ */ new WeakMap(), Hd = /* @__PURE__ */ new WeakMap(), Zs = /* @__PURE__ */ new WeakSet();
|
|
54797
54797
|
class Ace extends nt {
|
|
54798
54798
|
static get PLUGIN_KEY() {
|
|
54799
54799
|
return Vp;
|
|
@@ -54805,7 +54805,7 @@ class Ace extends nt {
|
|
|
54805
54805
|
* @type {HTMLTableCellElement}
|
|
54806
54806
|
*/
|
|
54807
54807
|
constructor(e) {
|
|
54808
|
-
super(e), Oce(this,
|
|
54808
|
+
super(e), Oce(this, Zs), Fr(this, vo, null), Fr(this, Qg, null), Fr(this, Bn, []), Fr(this, Od, null), Fr(this, ca, null), Fr(this, NM, null), Fr(this, vc, null), Fr(this, em, null), Fr(this, Zr, this.hot.rootDocument.createElement("DIV")), Fr(this, mo, this.hot.rootDocument.createElement("DIV")), Fr(this, Jl, !1), Fr(this, Wp, !1), Fr(this, xd, 0), Fr(this, Ad, null), Fr(this, Li, void 0), Fr(this, Hd, void 0), ne(ce(Zr, this), "manualRowResizer"), ne(ce(mo, this), "manualRowResizerGuide");
|
|
54809
54809
|
}
|
|
54810
54810
|
/**
|
|
54811
54811
|
* @private
|
|
@@ -54827,7 +54827,7 @@ class Ace extends nt {
|
|
|
54827
54827
|
* Enables the plugin functionality for this Handsontable instance.
|
|
54828
54828
|
*/
|
|
54829
54829
|
enablePlugin() {
|
|
54830
|
-
this.enabled || (Ut(Li, this, new Oa()), ce(Li, this).addLocalHook("init", () => gs(
|
|
54830
|
+
this.enabled || (Ut(Li, this, new Oa()), ce(Li, this).addLocalHook("init", () => gs(Zs, this, Fce).call(this)), this.hot.rowIndexMapper.registerMap(this.pluginName, ce(Li, this)), this.addHook("modifyRowHeight", (e, r) => gs(Zs, this, $ce).call(this, e, r)), this.bindEvents(), super.enablePlugin());
|
|
54831
54831
|
}
|
|
54832
54832
|
/**
|
|
54833
54833
|
* Updates the plugin's state.
|
|
@@ -54980,7 +54980,7 @@ class Ace extends nt {
|
|
|
54980
54980
|
*/
|
|
54981
54981
|
getActualRowHeight(e) {
|
|
54982
54982
|
const r = this.hot.view._wt.wtTable.getRowHeight(e);
|
|
54983
|
-
return r !== void 0 && ce(
|
|
54983
|
+
return r !== void 0 && ce(ca, this) < r ? r : ce(ca, this);
|
|
54984
54984
|
}
|
|
54985
54985
|
/**
|
|
54986
54986
|
* Auto-size row after doubleclick - callback.
|
|
@@ -54994,7 +54994,7 @@ class Ace extends nt {
|
|
|
54994
54994
|
this.hot.render(), this.hot.view.adjustElementsSize();
|
|
54995
54995
|
}, r = (n, i) => {
|
|
54996
54996
|
const o = this.hot.runHooks("beforeRowResize", this.getActualRowHeight(n), n, !0);
|
|
54997
|
-
o !== void 0 && Ut(
|
|
54997
|
+
o !== void 0 && Ut(ca, this, o), this.setManualSize(n, ce(ca, this)), this.hot.runHooks("afterRowResize", this.getActualRowHeight(n), n, !0), i && e();
|
|
54998
54998
|
};
|
|
54999
54999
|
ce(xd, this) >= 2 && (ce(Bn, this).length > 1 ? (k(ce(Bn, this), (i) => {
|
|
55000
55000
|
r(i);
|
|
@@ -55017,7 +55017,7 @@ class Ace extends nt {
|
|
|
55017
55017
|
rootElement: e,
|
|
55018
55018
|
rootWindow: r
|
|
55019
55019
|
} = this.hot;
|
|
55020
|
-
this.eventManager.addEventListener(e, "mouseover", (n) => gs(
|
|
55020
|
+
this.eventManager.addEventListener(e, "mouseover", (n) => gs(Zs, this, Hce).call(this, n)), this.eventManager.addEventListener(e, "mousedown", (n) => gs(Zs, this, Nce).call(this, n)), this.eventManager.addEventListener(r, "mousemove", (n) => gs(Zs, this, Dce).call(this, n)), this.eventManager.addEventListener(r, "mouseup", () => gs(Zs, this, kce).call(this)), this.eventManager.addEventListener(ce(Zr, this), "contextmenu", () => gs(Zs, this, Lce).call(this));
|
|
55021
55021
|
}
|
|
55022
55022
|
/**
|
|
55023
55023
|
* Modifies the provided row height, based on the plugin settings.
|
|
@@ -55040,11 +55040,11 @@ function Hce(t) {
|
|
|
55040
55040
|
}
|
|
55041
55041
|
}
|
|
55042
55042
|
function Nce(t) {
|
|
55043
|
-
Te(t.target, "manualRowResizer") && (this.setupHandlePosition(ce(vo, this)), this.setupGuidePosition(), Ut(Jl, this, !0), ce(Ad, this) === null && (Ut(Ad, this, setTimeout(() => this.afterMouseDownTimeout(), 500)), this.hot._registerTimeout(ce(Ad, this))), Ut(xd, this, ce(xd, this) + 1), Ut(NM, this, t.pageY), Ut(
|
|
55043
|
+
Te(t.target, "manualRowResizer") && (this.setupHandlePosition(ce(vo, this)), this.setupGuidePosition(), Ut(Jl, this, !0), ce(Ad, this) === null && (Ut(Ad, this, setTimeout(() => this.afterMouseDownTimeout(), 500)), this.hot._registerTimeout(ce(Ad, this))), Ut(xd, this, ce(xd, this) + 1), Ut(NM, this, t.pageY), Ut(ca, this, ce(vc, this)));
|
|
55044
55044
|
}
|
|
55045
55045
|
function Dce(t) {
|
|
55046
55046
|
ce(Jl, this) && (Ut(Od, this, ce(vc, this) + (t.pageY - ce(NM, this))), k(ce(Bn, this), (e) => {
|
|
55047
|
-
Ut(
|
|
55047
|
+
Ut(ca, this, this.setManualSize(e, ce(Od, this)));
|
|
55048
55048
|
}), this.refreshHandlePosition(), this.refreshGuidePosition());
|
|
55049
55049
|
}
|
|
55050
55050
|
function kce() {
|
|
@@ -55053,7 +55053,7 @@ function kce() {
|
|
|
55053
55053
|
}, e = (r, n) => {
|
|
55054
55054
|
this.hot.runHooks("beforeRowResize", this.getActualRowHeight(r), r, !1), n && t(), this.saveManualRowHeights(), this.hot.runHooks("afterRowResize", this.getActualRowHeight(r), r, !1);
|
|
55055
55055
|
};
|
|
55056
|
-
ce(Jl, this) && (this.hideHandleAndGuide(), Ut(Jl, this, !1), ce(
|
|
55056
|
+
ce(Jl, this) && (this.hideHandleAndGuide(), Ut(Jl, this, !1), ce(ca, this) !== ce(vc, this) && (ce(Bn, this).length > 1 ? (k(ce(Bn, this), (n) => {
|
|
55057
55057
|
e(n);
|
|
55058
55058
|
}), t()) : k(ce(Bn, this), (n) => {
|
|
55059
55059
|
e(n, !0);
|
|
@@ -55427,10 +55427,10 @@ function yl(t, e, r) {
|
|
|
55427
55427
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : r;
|
|
55428
55428
|
throw new TypeError("Private element is not present on this object");
|
|
55429
55429
|
}
|
|
55430
|
-
var
|
|
55430
|
+
var Js = /* @__PURE__ */ new WeakSet();
|
|
55431
55431
|
class Bp {
|
|
55432
55432
|
constructor(e) {
|
|
55433
|
-
qce(this,
|
|
55433
|
+
qce(this, Js), rm(this, "plugin", void 0), rm(this, "mergedCells", []), rm(this, "mergedCellsMatrix", /* @__PURE__ */ new Map()), rm(this, "hot", void 0), this.plugin = e, this.hot = e.hot;
|
|
55434
55434
|
}
|
|
55435
55435
|
/**
|
|
55436
55436
|
* Get a warning message for when the declared merged cell data overlaps already existing merged cells.
|
|
@@ -55564,7 +55564,7 @@ class Bp {
|
|
|
55564
55564
|
add(e) {
|
|
55565
55565
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
55566
55566
|
const n = e.row, i = e.col, o = e.rowspan, s = e.colspan, a = new yo(n, i, o, s, this.hot._createCellCoords, this.hot._createCellRange), l = this.get(n, i), u = r ? !1 : this.isOverlapping(a);
|
|
55567
|
-
return !l && !u ? (this.hot && a.normalize(this.hot), this.mergedCells.push(a), yl(
|
|
55567
|
+
return !l && !u ? (this.hot && a.normalize(this.hot), this.mergedCells.push(a), yl(Js, this, OD).call(this, a), a) : (u && it(Bp.IS_OVERLAPPING_WARNING(a)), !1);
|
|
55568
55568
|
}
|
|
55569
55569
|
/**
|
|
55570
55570
|
* Remove a merged cell from the container. You can provide either the "starting coordinates"
|
|
@@ -55576,7 +55576,7 @@ class Bp {
|
|
|
55576
55576
|
*/
|
|
55577
55577
|
remove(e, r) {
|
|
55578
55578
|
const n = this.get(e, r), i = n ? this.mergedCells.indexOf(n) : -1;
|
|
55579
|
-
return n && i !== -1 ? (this.mergedCells.splice(i, 1), yl(
|
|
55579
|
+
return n && i !== -1 ? (this.mergedCells.splice(i, 1), yl(Js, this, Jce).call(this, n), n) : !1;
|
|
55580
55580
|
}
|
|
55581
55581
|
/**
|
|
55582
55582
|
* Clear all the merged cells.
|
|
@@ -55652,7 +55652,7 @@ class Bp {
|
|
|
55652
55652
|
* @returns {number}
|
|
55653
55653
|
*/
|
|
55654
55654
|
getStartMostColumnIndex(e, r) {
|
|
55655
|
-
const n = yl(
|
|
55655
|
+
const n = yl(Js, this, nm).call(this, e, "col", -1);
|
|
55656
55656
|
let i = r;
|
|
55657
55657
|
for (let o = 0; o < n.length; o++)
|
|
55658
55658
|
if (n[o] <= r) {
|
|
@@ -55669,7 +55669,7 @@ class Bp {
|
|
|
55669
55669
|
* @returns {number}
|
|
55670
55670
|
*/
|
|
55671
55671
|
getEndMostColumnIndex(e, r) {
|
|
55672
|
-
const n = yl(
|
|
55672
|
+
const n = yl(Js, this, nm).call(this, e, "col", 1);
|
|
55673
55673
|
let i = r;
|
|
55674
55674
|
for (let o = 0; o < n.length; o++)
|
|
55675
55675
|
if (n[o] >= r) {
|
|
@@ -55686,7 +55686,7 @@ class Bp {
|
|
|
55686
55686
|
* @returns {number}
|
|
55687
55687
|
*/
|
|
55688
55688
|
getTopMostRowIndex(e, r) {
|
|
55689
|
-
const n = yl(
|
|
55689
|
+
const n = yl(Js, this, nm).call(this, e, "row", -1);
|
|
55690
55690
|
let i = r;
|
|
55691
55691
|
for (let o = 0; o < n.length; o++)
|
|
55692
55692
|
if (n[o] <= r) {
|
|
@@ -55703,7 +55703,7 @@ class Bp {
|
|
|
55703
55703
|
* @returns {number}
|
|
55704
55704
|
*/
|
|
55705
55705
|
getBottomMostRowIndex(e, r) {
|
|
55706
|
-
const n = yl(
|
|
55706
|
+
const n = yl(Js, this, nm).call(this, e, "row", 1);
|
|
55707
55707
|
let i = r;
|
|
55708
55708
|
for (let o = 0; o < n.length; o++)
|
|
55709
55709
|
if (n[o] >= r) {
|
|
@@ -55741,7 +55741,7 @@ class Bp {
|
|
|
55741
55741
|
}), o.forEach((s) => {
|
|
55742
55742
|
this.mergedCells.splice(this.mergedCells.indexOf(s), 1);
|
|
55743
55743
|
}), this.mergedCellsMatrix.clear(), this.mergedCells.forEach((s) => {
|
|
55744
|
-
yl(
|
|
55744
|
+
yl(Js, this, OD).call(this, s);
|
|
55745
55745
|
});
|
|
55746
55746
|
}
|
|
55747
55747
|
/**
|
|
@@ -58965,10 +58965,10 @@ function Bt(t, e, r) {
|
|
|
58965
58965
|
throw new TypeError("Private element is not present on this object");
|
|
58966
58966
|
}
|
|
58967
58967
|
const jD = "nestedHeaders", Rde = 280;
|
|
58968
|
-
var pt = /* @__PURE__ */ new WeakMap(),
|
|
58968
|
+
var pt = /* @__PURE__ */ new WeakMap(), Qs = /* @__PURE__ */ new WeakMap(), Dd = /* @__PURE__ */ new WeakMap(), nv = /* @__PURE__ */ new WeakMap(), qp = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakSet();
|
|
58969
58969
|
class Ede extends nt {
|
|
58970
58970
|
constructor() {
|
|
58971
|
-
super(...arguments), Cde(this, qt), Jh(this, pt, new pde()), Jh(this,
|
|
58971
|
+
super(...arguments), Cde(this, qt), Jh(this, pt, new pde()), Jh(this, Qs, null), Jh(this, Dd, null), Jh(this, nv, !1), Jh(this, qp, null), BD(this, "ghostTable", new yde(this.hot, (e, r) => this.getHeaderSettings(e, r))), BD(this, "detectedOverlappedHeaders", !1);
|
|
58972
58972
|
}
|
|
58973
58973
|
static get PLUGIN_KEY() {
|
|
58974
58974
|
return jD;
|
|
@@ -59073,7 +59073,7 @@ class Ede extends nt {
|
|
|
59073
59073
|
is currently not supported.`), this.enabled && this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((r, n) => {
|
|
59074
59074
|
const i = r === !0 ? "hide-column" : "show-column";
|
|
59075
59075
|
Ye(pt, this).triggerColumnModification(i, n);
|
|
59076
|
-
}), !Ye(
|
|
59076
|
+
}), !Ye(Qs, this) && this.enabled && Es(Qs, this, this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe((r) => {
|
|
59077
59077
|
r.forEach((n) => {
|
|
59078
59078
|
let {
|
|
59079
59079
|
op: i,
|
|
@@ -59091,7 +59091,7 @@ class Ede extends nt {
|
|
|
59091
59091
|
* Disables the plugin functionality for this Handsontable instance.
|
|
59092
59092
|
*/
|
|
59093
59093
|
disablePlugin() {
|
|
59094
|
-
this.clearColspans(), Ye(pt, this).clear(), Ye(
|
|
59094
|
+
this.clearColspans(), Ye(pt, this).clear(), Ye(Qs, this).unsubscribe(), Es(Qs, this, null), this.ghostTable.clear(), super.disablePlugin();
|
|
59095
59095
|
}
|
|
59096
59096
|
/**
|
|
59097
59097
|
* Returns an instance of the internal state manager of the plugin.
|
|
@@ -59212,7 +59212,7 @@ class Ede extends nt {
|
|
|
59212
59212
|
* Destroys the plugin instance.
|
|
59213
59213
|
*/
|
|
59214
59214
|
destroy() {
|
|
59215
|
-
Es(pt, this, null), Ye(
|
|
59215
|
+
Es(pt, this, null), Ye(Qs, this) !== null && (Ye(Qs, this).unsubscribe(), Es(Qs, this, null)), super.destroy();
|
|
59216
59216
|
}
|
|
59217
59217
|
/**
|
|
59218
59218
|
* Gets the tree data that belongs to the column headers pointed by the passed coordinates.
|
|
@@ -61882,7 +61882,7 @@ class $M extends vi {
|
|
|
61882
61882
|
* @param {function(): void} redoneCallback The callback to be called after the action is redone.
|
|
61883
61883
|
*/
|
|
61884
61884
|
redo(e, r) {
|
|
61885
|
-
|
|
61885
|
+
ra(this.range, this.type, this.alignment, (n, i) => e.getCellMeta(n, i), (n, i, o, s) => e.setCellMeta(n, i, o, s)), e.addHookOnce("afterViewRender", r), e.render();
|
|
61886
61886
|
}
|
|
61887
61887
|
}
|
|
61888
61888
|
function tk(t, e, r) {
|
|
@@ -63075,7 +63075,7 @@ const vme = Ge.div`
|
|
|
63075
63075
|
"X-ws-identifier": e
|
|
63076
63076
|
}
|
|
63077
63077
|
});
|
|
63078
|
-
return
|
|
63078
|
+
return Is(() => {
|
|
63079
63079
|
r == null || r(i == null ? void 0 : i.data);
|
|
63080
63080
|
}, [i == null ? void 0 : i.data]), /* @__PURE__ */ Ce(uk, {});
|
|
63081
63081
|
};
|
|
@@ -63161,9 +63161,13 @@ function Sme({
|
|
|
63161
63161
|
f(!1);
|
|
63162
63162
|
});
|
|
63163
63163
|
};
|
|
63164
|
-
return
|
|
63164
|
+
return Is(() => {
|
|
63165
63165
|
Z();
|
|
63166
|
-
}, []),
|
|
63166
|
+
}, []), Is(() => {
|
|
63167
|
+
!d && !u && (() => {
|
|
63168
|
+
h && h(_, Y);
|
|
63169
|
+
})();
|
|
63170
|
+
}, [d, u]), /* @__PURE__ */ Or(Cme, { children: [
|
|
63167
63171
|
/* @__PURE__ */ Ce(cU, { primary: (re = o == null ? void 0 : o.theme) == null ? void 0 : re.primaryColor }),
|
|
63168
63172
|
b && /* @__PURE__ */ Ce(
|
|
63169
63173
|
bme,
|
|
@@ -63195,9 +63199,11 @@ function Sme({
|
|
|
63195
63199
|
removeTab: I,
|
|
63196
63200
|
updateTab: (K, Q, ie) => {
|
|
63197
63201
|
const ae = X(K, Q);
|
|
63198
|
-
ie && v.current.push({ sheetIndex: K, item: ie })
|
|
63199
|
-
|
|
63200
|
-
|
|
63202
|
+
if (ie && v.current.push({ sheetIndex: K, item: ie }), h) {
|
|
63203
|
+
const j = H(ae);
|
|
63204
|
+
h(j, Y);
|
|
63205
|
+
}
|
|
63206
|
+
u && ee(ae);
|
|
63201
63207
|
},
|
|
63202
63208
|
tabs: _
|
|
63203
63209
|
},
|