@arbocollab/arbo-plugin-item-table 0.0.46 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/es/index.es.js +82 -73
- package/lib/umd/index.umd.js +14 -14
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -3431,7 +3431,7 @@ function rB(e, t) {
|
|
|
3431
3431
|
} = e, m = (N, X, fe, ke = null, De = null, Fe = null, Ve = void 0, Ne = null, Ae = L.env.NODE_ENV !== "production" && ws ? !1 : !!X.dynamicChildren) => {
|
|
3432
3432
|
if (N === X)
|
|
3433
3433
|
return;
|
|
3434
|
-
N && !Yl(N, X) && (ke =
|
|
3434
|
+
N && !Yl(N, X) && (ke = Ft(N), re(N, De, Fe, !0), N = null), X.patchFlag === -2 && (Ae = !1, X.dynamicChildren = null);
|
|
3435
3435
|
const { type: Te, ref: rt, shapeFlag: We } = X;
|
|
3436
3436
|
switch (Te) {
|
|
3437
3437
|
case Xc:
|
|
@@ -3833,7 +3833,7 @@ function rB(e, t) {
|
|
|
3833
3833
|
// parent may have changed if it's in a teleport
|
|
3834
3834
|
d($n.el),
|
|
3835
3835
|
// anchor may have changed if it's in a fragment
|
|
3836
|
-
|
|
3836
|
+
Ft($n),
|
|
3837
3837
|
N,
|
|
3838
3838
|
De,
|
|
3839
3839
|
Fe
|
|
@@ -4210,9 +4210,9 @@ function rB(e, t) {
|
|
|
4210
4210
|
}, gt = (N, X, fe, ke = !1, De = !1, Fe = 0) => {
|
|
4211
4211
|
for (let Ve = Fe; Ve < N.length; Ve++)
|
|
4212
4212
|
re(N[Ve], X, fe, ke, De);
|
|
4213
|
-
},
|
|
4213
|
+
}, Ft = (N) => {
|
|
4214
4214
|
if (N.shapeFlag & 6)
|
|
4215
|
-
return
|
|
4215
|
+
return Ft(N.component.subTree);
|
|
4216
4216
|
if (N.shapeFlag & 128)
|
|
4217
4217
|
return N.suspense.next();
|
|
4218
4218
|
const X = h(N.anchor || N.el), fe = X && X[aV];
|
|
@@ -4238,7 +4238,7 @@ function rB(e, t) {
|
|
|
4238
4238
|
mc: O,
|
|
4239
4239
|
pc: $,
|
|
4240
4240
|
pbc: D,
|
|
4241
|
-
n:
|
|
4241
|
+
n: Ft,
|
|
4242
4242
|
o: e
|
|
4243
4243
|
};
|
|
4244
4244
|
return {
|
|
@@ -6358,9 +6358,9 @@ function Y2(e) {
|
|
|
6358
6358
|
if (k)
|
|
6359
6359
|
for (var ce = g ? 3 : 1, ue = function(Me) {
|
|
6360
6360
|
var Je = C.find(function(gt) {
|
|
6361
|
-
var
|
|
6362
|
-
if (
|
|
6363
|
-
return
|
|
6361
|
+
var Ft = x.get(gt);
|
|
6362
|
+
if (Ft)
|
|
6363
|
+
return Ft.slice(0, Me).every(function(He) {
|
|
6364
6364
|
return He;
|
|
6365
6365
|
});
|
|
6366
6366
|
});
|
|
@@ -6488,7 +6488,7 @@ function sH(e) {
|
|
|
6488
6488
|
var V, H = C === "y" ? Li : Ni, te = C === "y" ? Eo : Ro, B = C === "y" ? "height" : "width", G = E[C], Z = G + y[H], $ = G - y[te], ce = f ? -k[B] / 2 : 0, ue = S === Ac ? x[B] : k[B], xe = S === Ac ? -k[B] : -x[B], re = t.elements.arrow, Ie = f && re ? yb(re) : {
|
|
6489
6489
|
width: 0,
|
|
6490
6490
|
height: 0
|
|
6491
|
-
}, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : RP(), Je = Me[H], gt = Me[te],
|
|
6491
|
+
}, Me = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : RP(), Je = Me[H], gt = Me[te], Ft = nd(0, x[B], Ie[B]), He = F ? x[B] / 2 - ce - Ft - Je - A.mainAxis : ue - Ft - Je - A.mainAxis, Yt = F ? -x[B] / 2 + ce + Ft + gt + A.mainAxis : xe + Ft + gt + A.mainAxis, Zt = t.elements.arrow && gh(t.elements.arrow), Pt = Zt ? C === "y" ? Zt.clientTop || 0 : Zt.clientLeft || 0 : 0, N = (V = D == null ? void 0 : D[C]) != null ? V : 0, X = G + He - N - Pt, fe = G + Yt - N, ke = nd(f ? Qp(Z, X) : Z, G, f ? Qa($, fe) : $);
|
|
6492
6492
|
E[C] = ke, P[C] = ke - G;
|
|
6493
6493
|
}
|
|
6494
6494
|
if (a) {
|
|
@@ -7203,7 +7203,7 @@ function zH(e, t) {
|
|
|
7203
7203
|
!C.state.isVisible && E.parentNode && E.parentNode.contains(E) && Ee();
|
|
7204
7204
|
});
|
|
7205
7205
|
}
|
|
7206
|
-
function
|
|
7206
|
+
function Ft(ve, Ee) {
|
|
7207
7207
|
He(ve, Ee);
|
|
7208
7208
|
}
|
|
7209
7209
|
function He(ve, Ee) {
|
|
@@ -7428,7 +7428,7 @@ function zH(e, t) {
|
|
|
7428
7428
|
var Dr = te(), _r = Dr.box, ts = Dr.content;
|
|
7429
7429
|
Fv([_r, ts], nt), JE([_r, ts], "visible");
|
|
7430
7430
|
}
|
|
7431
|
-
$(), ce(), ZE(Pv, C), (si = C.popperInstance) == null || si.forceUpdate(), Z("onMount", [C]), C.props.animation && P() &&
|
|
7431
|
+
$(), ce(), ZE(Pv, C), (si = C.popperInstance) == null || si.forceUpdate(), Z("onMount", [C]), C.props.animation && P() && Ft(nt, function() {
|
|
7432
7432
|
C.state.isShown = !0, Z("onShown", [C]);
|
|
7433
7433
|
});
|
|
7434
7434
|
}
|
|
@@ -8273,7 +8273,7 @@ var wG = ia.ArrayBuffer, Iv = ia.FileReader, Da = ia.URL || ia.webkitURL, bG = /
|
|
|
8273
8273
|
k = Math.floor(hR(Math.min(Math.max(k, R), F))), O = Math.floor(hR(Math.min(Math.max(O, E), C)));
|
|
8274
8274
|
var $ = -k / 2, ce = -O / 2, ue = k, xe = O, re = [];
|
|
8275
8275
|
if (S) {
|
|
8276
|
-
var Ie = 0, Me = 0, Je = o, gt = s,
|
|
8276
|
+
var Ie = 0, Me = 0, Je = o, gt = s, Ft = Du({
|
|
8277
8277
|
aspectRatio: x,
|
|
8278
8278
|
width: o,
|
|
8279
8279
|
height: s
|
|
@@ -8281,7 +8281,7 @@ var wG = ia.ArrayBuffer, Iv = ia.FileReader, Da = ia.URL || ia.webkitURL, bG = /
|
|
|
8281
8281
|
contain: "cover",
|
|
8282
8282
|
cover: "contain"
|
|
8283
8283
|
}[g.resize]);
|
|
8284
|
-
Je =
|
|
8284
|
+
Je = Ft.width, gt = Ft.height, Ie = (o - Je) / 2, Me = (s - gt) / 2, re.push(Ie, Me, Je, gt);
|
|
8285
8285
|
}
|
|
8286
8286
|
if (re.push($, ce, ue, xe), b) {
|
|
8287
8287
|
var He = [O, k];
|
|
@@ -8559,13 +8559,13 @@ var YP = { exports: {} };
|
|
|
8559
8559
|
} }), m(Me).from(re), m(Je).from(re);
|
|
8560
8560
|
var gt = so.reduce(function(p, v) {
|
|
8561
8561
|
return p[v] = v + "Error", p;
|
|
8562
|
-
}, {}),
|
|
8562
|
+
}, {}), Ft = re, He = so.reduce(function(p, v) {
|
|
8563
8563
|
var w = v + "Error";
|
|
8564
8564
|
function _(T, I) {
|
|
8565
8565
|
this.name = w, T ? typeof T == "string" ? (this.message = "".concat(T).concat(I ? `
|
|
8566
8566
|
` + I : ""), this.inner = I || null) : typeof T == "object" && (this.message = "".concat(T.name, " ").concat(T.message), this.inner = T) : (this.message = xe[v] || w, this.inner = null);
|
|
8567
8567
|
}
|
|
8568
|
-
return m(_).from(
|
|
8568
|
+
return m(_).from(Ft), p[v] = _, p;
|
|
8569
8569
|
}, {});
|
|
8570
8570
|
He.Syntax = SyntaxError, He.Type = TypeError, He.Range = RangeError;
|
|
8571
8571
|
var Yt = at.reduce(function(p, v) {
|
|
@@ -9992,9 +9992,9 @@ var YP = { exports: {} };
|
|
|
9992
9992
|
if (_e.type === 4) return Ge({ numFailures: $i, failures: Nt, results: [], lastResult: void 0 });
|
|
9993
9993
|
_e.type === 3 ? Lt.push(qe = $e.clear()) : Lt.push(qe = $e.delete(_(_e)));
|
|
9994
9994
|
} else {
|
|
9995
|
-
var Ue = Qe ? Ue ? [me, pe] : [me, null] : [pe, null],
|
|
9996
|
-
if (Qe) for (var li = 0; li < st; ++li) Lt.push(qe = ai && ai[li] !== void 0 ? $e[he](
|
|
9997
|
-
else for (li = 0; li < st; ++li) Lt.push(qe = $e[he](
|
|
9995
|
+
var Ue = Qe ? Ue ? [me, pe] : [me, null] : [pe, null], Tt = Ue[0], ai = Ue[1];
|
|
9996
|
+
if (Qe) for (var li = 0; li < st; ++li) Lt.push(qe = ai && ai[li] !== void 0 ? $e[he](Tt[li], ai[li]) : $e[he](Tt[li])), qe.onerror = It;
|
|
9997
|
+
else for (li = 0; li < st; ++li) Lt.push(qe = $e[he](Tt[li])), qe.onerror = It;
|
|
9998
9998
|
}
|
|
9999
9999
|
function sf(wi) {
|
|
10000
10000
|
wi = wi.target.result, Lt.forEach(function(ba, hv) {
|
|
@@ -10043,38 +10043,38 @@ var YP = { exports: {} };
|
|
|
10043
10043
|
Ge = pn(Ge);
|
|
10044
10044
|
var Qe = pe.index, $e = pe.range, Ue = ne.objectStore(ie), Ue = Qe.isPrimaryKey ? Ue : Ue.index(Qe.name), Qe = me ? _e ? "prevunique" : "prev" : _e ? "nextunique" : "next", qe = !he && "openKeyCursor" in Ue ? Ue.openKeyCursor(_($e), Qe) : Ue.openCursor(_($e), Qe);
|
|
10045
10045
|
qe.onerror = ns(Ye), qe.onsuccess = pn(function(st) {
|
|
10046
|
-
var It, Lt, Nt, $i,
|
|
10047
|
-
|
|
10046
|
+
var It, Lt, Nt, $i, Tt = qe.result;
|
|
10047
|
+
Tt ? (Tt.___id = ++FL, Tt.done = !1, It = Tt.continue.bind(Tt), Lt = (Lt = Tt.continuePrimaryKey) && Lt.bind(Tt), Nt = Tt.advance.bind(Tt), $i = function() {
|
|
10048
10048
|
throw new Error("Cursor not stopped");
|
|
10049
|
-
},
|
|
10049
|
+
}, Tt.trans = ne, Tt.stop = Tt.continue = Tt.continuePrimaryKey = Tt.advance = function() {
|
|
10050
10050
|
throw new Error("Cursor not started");
|
|
10051
|
-
},
|
|
10051
|
+
}, Tt.fail = pn(Ye), Tt.next = function() {
|
|
10052
10052
|
var ai = this, li = 1;
|
|
10053
10053
|
return this.start(function() {
|
|
10054
10054
|
return li-- ? ai.continue() : ai.stop();
|
|
10055
10055
|
}).then(function() {
|
|
10056
10056
|
return ai;
|
|
10057
10057
|
});
|
|
10058
|
-
},
|
|
10058
|
+
}, Tt.start = function(ai) {
|
|
10059
10059
|
function li() {
|
|
10060
10060
|
if (qe.result) try {
|
|
10061
10061
|
ai();
|
|
10062
10062
|
} catch (wi) {
|
|
10063
|
-
|
|
10063
|
+
Tt.fail(wi);
|
|
10064
10064
|
}
|
|
10065
|
-
else
|
|
10065
|
+
else Tt.done = !0, Tt.start = function() {
|
|
10066
10066
|
throw new Error("Cursor behind last entry");
|
|
10067
|
-
},
|
|
10067
|
+
}, Tt.stop();
|
|
10068
10068
|
}
|
|
10069
10069
|
var sf = new Promise(function(wi, ba) {
|
|
10070
|
-
wi = pn(wi), qe.onerror = ns(ba),
|
|
10071
|
-
|
|
10070
|
+
wi = pn(wi), qe.onerror = ns(ba), Tt.fail = ba, Tt.stop = function(hv) {
|
|
10071
|
+
Tt.stop = Tt.continue = Tt.continuePrimaryKey = Tt.advance = $i, wi(hv);
|
|
10072
10072
|
};
|
|
10073
10073
|
});
|
|
10074
10074
|
return qe.onsuccess = pn(function(wi) {
|
|
10075
10075
|
qe.onsuccess = li, li();
|
|
10076
|
-
}),
|
|
10077
|
-
}, Ge(
|
|
10076
|
+
}), Tt.continue = It, Tt.continuePrimaryKey = Lt, Tt.advance = Nt, li(), sf;
|
|
10077
|
+
}, Ge(Tt)) : Ge(null);
|
|
10078
10078
|
}, Ye);
|
|
10079
10079
|
});
|
|
10080
10080
|
}, count: function(se) {
|
|
@@ -10740,17 +10740,17 @@ var YP = { exports: {} };
|
|
|
10740
10740
|
}) : st.addKey(Nt);
|
|
10741
10741
|
}
|
|
10742
10742
|
(ne || he).forEach(function(Nt, ai) {
|
|
10743
|
-
var
|
|
10744
|
-
Ht(
|
|
10743
|
+
var Tt = ne && It(ne[ai]), ai = he && It(he[ai]);
|
|
10744
|
+
Ht(Tt, ai) !== 0 && (Tt != null && Lt(Tt), ai != null && Lt(ai));
|
|
10745
10745
|
});
|
|
10746
10746
|
}))) : $e ? (Ue = { from: (Ue = $e.lower) !== null && Ue !== void 0 ? Ue : p.MIN_KEY, to: (Ue = $e.upper) !== null && Ue !== void 0 ? Ue : p.MAX_KEY }, Ge.add(Ue), _e.add(Ue)) : (_e.add(w), Ge.add(w), I.indexes.forEach(function(qe) {
|
|
10747
10747
|
return ie(qe.name).add(w);
|
|
10748
10748
|
})), T.mutate(Q).then(function(qe) {
|
|
10749
10749
|
return !$e || Q.type !== "add" && Q.type !== "put" || (_e.addKeys(qe.results), ee && ee.forEach(function(st) {
|
|
10750
|
-
for (var It = Q.values.map(function(
|
|
10751
|
-
return st.extractKey(
|
|
10752
|
-
}), Lt = st.keyPath.findIndex(function(
|
|
10753
|
-
return
|
|
10750
|
+
for (var It = Q.values.map(function(Tt) {
|
|
10751
|
+
return st.extractKey(Tt);
|
|
10752
|
+
}), Lt = st.keyPath.findIndex(function(Tt) {
|
|
10753
|
+
return Tt === M.keyPath;
|
|
10754
10754
|
}), Nt = 0, $i = qe.results.length; Nt < $i; ++Nt) It[Nt][Lt] = qe.results[Nt];
|
|
10755
10755
|
ie(st.name).addKeys(It);
|
|
10756
10756
|
})), pe.mutatedParts = Qh(pe.mutatedParts || {}, me), qe;
|
|
@@ -25967,8 +25967,8 @@ const uS = (e) => {
|
|
|
25967
25967
|
hover: gt === ue,
|
|
25968
25968
|
selected: xe(ce),
|
|
25969
25969
|
type: ce.type,
|
|
25970
|
-
onClick: sn((
|
|
25971
|
-
onMouseover: (
|
|
25970
|
+
onClick: sn((Ft) => re(ce), ["stop", "prevent"]),
|
|
25971
|
+
onMouseover: (Ft) => Ie(gt),
|
|
25972
25972
|
class: Z.$style["item-assignee"]
|
|
25973
25973
|
}), {
|
|
25974
25974
|
prefix: Re(() => [
|
|
@@ -25983,7 +25983,7 @@ const uS = (e) => {
|
|
|
25983
25983
|
}]
|
|
25984
25984
|
])
|
|
25985
25985
|
]),
|
|
25986
|
-
label: Re(({ selected:
|
|
25986
|
+
label: Re(({ selected: Ft }) => [
|
|
25987
25987
|
Je ? ot((K(), Ce("span", {
|
|
25988
25988
|
key: 0,
|
|
25989
25989
|
class: z([Z.$style["item-label"], Z.$style.match]),
|
|
@@ -26012,13 +26012,13 @@ const uS = (e) => {
|
|
|
26012
26012
|
}, {
|
|
26013
26013
|
prefix: Re(() => [
|
|
26014
26014
|
ye(vt, {
|
|
26015
|
-
src:
|
|
26015
|
+
src: Ft ? "UserMinus" : "UserPlus",
|
|
26016
26016
|
source: "remote"
|
|
26017
26017
|
}, null, 8, ["src"])
|
|
26018
26018
|
]),
|
|
26019
26019
|
_: 2
|
|
26020
26020
|
}, 1032, ["disabled", "onClick"])), [
|
|
26021
|
-
[U(i),
|
|
26021
|
+
[U(i), Ft ? "Unassign" : "Assign"]
|
|
26022
26022
|
]),
|
|
26023
26023
|
ot((K(), Xe(pt, {
|
|
26024
26024
|
variant: ["icon", "tertiary"],
|
|
@@ -26376,14 +26376,14 @@ const uS = (e) => {
|
|
|
26376
26376
|
k("start", B.dt, !0), k("end", B.dt), s("update:activeField", "end");
|
|
26377
26377
|
}, gt = (Zt = !1) => {
|
|
26378
26378
|
k("start", B.dt, Zt), Zt && s("update:activeField", "end");
|
|
26379
|
-
},
|
|
26379
|
+
}, Ft = (Zt = !1) => {
|
|
26380
26380
|
console.trace("doSelectEnd called with closeAfter:", Zt, n.immediatelyUpdate), k("end", B.dt), Zt && s("close");
|
|
26381
26381
|
};
|
|
26382
26382
|
if (G && Z) {
|
|
26383
26383
|
$ === "start" ? d.value && B.dt > d.value ? (Je(), re("INVERT_RANGE_FROM_START", Ie())) : (gt(!1), re(
|
|
26384
26384
|
"UPDATE_START_IN_RANGE",
|
|
26385
26385
|
`Updated start from ${ce} to ${xe}; end remains ${ue}`
|
|
26386
|
-
)) : u.value && B.dt < u.value ? (Je(), re("INVERT_RANGE_FROM_END", Me())) : (
|
|
26386
|
+
)) : u.value && B.dt < u.value ? (Je(), re("INVERT_RANGE_FROM_END", Me())) : (Ft(!1), re(
|
|
26387
26387
|
"UPDATE_END_IN_RANGE",
|
|
26388
26388
|
`Updated end from ${ue} to ${xe}; start remains ${ce}`
|
|
26389
26389
|
));
|
|
@@ -26402,7 +26402,7 @@ const uS = (e) => {
|
|
|
26402
26402
|
gt(!0), re("INIT_START", `Picked start ${xe}; awaiting end selection`);
|
|
26403
26403
|
return;
|
|
26404
26404
|
}
|
|
26405
|
-
|
|
26405
|
+
Ft(n.immediatelyUpdate), re("INIT_END", `Picked end ${xe}; awaiting start selection`);
|
|
26406
26406
|
return;
|
|
26407
26407
|
}
|
|
26408
26408
|
if (!G && Z) {
|
|
@@ -26410,7 +26410,7 @@ const uS = (e) => {
|
|
|
26410
26410
|
gt(!0), re("FILL_MISSING_START", `Inserted start ${xe}; existing end ${ue}`);
|
|
26411
26411
|
return;
|
|
26412
26412
|
}
|
|
26413
|
-
|
|
26413
|
+
Ft(!1), re("STRICT_UPDATE_END_ONLY", `Updated end to ${xe}; start still null`);
|
|
26414
26414
|
return;
|
|
26415
26415
|
}
|
|
26416
26416
|
if (G && !Z) {
|
|
@@ -26421,7 +26421,7 @@ const uS = (e) => {
|
|
|
26421
26421
|
);
|
|
26422
26422
|
return;
|
|
26423
26423
|
}
|
|
26424
|
-
|
|
26424
|
+
Ft(n.immediatelyUpdate), re("FILL_MISSING_END", `Picked end ${xe}; start ${ce}`);
|
|
26425
26425
|
return;
|
|
26426
26426
|
}
|
|
26427
26427
|
}
|
|
@@ -29380,7 +29380,7 @@ const _A = (e) => {
|
|
|
29380
29380
|
hasSuffix: !a && !l && n.value.morpheme_type === "suffix",
|
|
29381
29381
|
isDropdown: n.value.format_type === "dropdown",
|
|
29382
29382
|
isFormula: ((d = (u = n.value) == null ? void 0 : u.metric_type) == null ? void 0 : d.code) === "formula",
|
|
29383
|
-
isLoading: e.value === void 0,
|
|
29383
|
+
isLoading: e.value.value === void 0,
|
|
29384
29384
|
isRating: c,
|
|
29385
29385
|
showActions: e.value.hovered && !a && !e.value.disabled && !c
|
|
29386
29386
|
};
|
|
@@ -32007,9 +32007,9 @@ const CZ = /* @__PURE__ */ ut({
|
|
|
32007
32007
|
return { component: Me };
|
|
32008
32008
|
const Je = Me.realList, gt = { list: Je, component: Me };
|
|
32009
32009
|
if (re !== Ie && Je && Me.getUnderlyingVm) {
|
|
32010
|
-
const
|
|
32011
|
-
if (
|
|
32012
|
-
return Object.assign(
|
|
32010
|
+
const Ft = Me.getUnderlyingVm(Ie);
|
|
32011
|
+
if (Ft)
|
|
32012
|
+
return Object.assign(Ft, gt);
|
|
32013
32013
|
}
|
|
32014
32014
|
return gt;
|
|
32015
32015
|
}
|
|
@@ -32021,7 +32021,7 @@ const CZ = /* @__PURE__ */ ut({
|
|
|
32021
32021
|
return Me.indexOf(uy) !== -1 || !Ie.willInsertAfter ? gt : gt + 1;
|
|
32022
32022
|
}
|
|
32023
32023
|
const G = () => {
|
|
32024
|
-
var gt,
|
|
32024
|
+
var gt, Ft;
|
|
32025
32025
|
const re = {};
|
|
32026
32026
|
rw.forEach((He) => {
|
|
32027
32027
|
re["on" + He] = $(He);
|
|
@@ -32032,7 +32032,7 @@ const CZ = /* @__PURE__ */ ut({
|
|
|
32032
32032
|
onMove: (He, Yt) => ce(He, Yt)
|
|
32033
32033
|
});
|
|
32034
32034
|
"draggable" in Me || (Me.draggable = ">*");
|
|
32035
|
-
const Je = ((gt = h == null ? void 0 : h.proxy) == null ? void 0 : gt.$el.nodeType) === 1 ? h.proxy.$el : ((
|
|
32035
|
+
const Je = ((gt = h == null ? void 0 : h.proxy) == null ? void 0 : gt.$el.nodeType) === 1 ? h.proxy.$el : ((Ft = h == null ? void 0 : h.proxy) == null ? void 0 : Ft.$el.parentElement) || null;
|
|
32036
32036
|
Je && (u.value = new St(Je, Me), Je.__draggable_component__ = h == null ? void 0 : h.proxy, y());
|
|
32037
32037
|
};
|
|
32038
32038
|
function Z(re, Ie) {
|
|
@@ -32051,8 +32051,8 @@ const CZ = /* @__PURE__ */ ut({
|
|
|
32051
32051
|
const Me = e.move;
|
|
32052
32052
|
if (!Me || !d.value)
|
|
32053
32053
|
return !0;
|
|
32054
|
-
const Je = te(re), gt = c.value,
|
|
32055
|
-
gt && Object.assign(gt, { futureIndex:
|
|
32054
|
+
const Je = te(re), gt = c.value, Ft = B(Je, re);
|
|
32055
|
+
gt && Object.assign(gt, { futureIndex: Ft });
|
|
32056
32056
|
const He = Object.assign({}, re, {
|
|
32057
32057
|
relatedContext: Je,
|
|
32058
32058
|
draggedContext: gt
|
|
@@ -75771,23 +75771,24 @@ function Bme(e) {
|
|
|
75771
75771
|
}
|
|
75772
75772
|
};
|
|
75773
75773
|
}
|
|
75774
|
-
function Hme(e, t, n) {
|
|
75774
|
+
function Hme(e, t, n, i) {
|
|
75775
75775
|
return {
|
|
75776
|
-
async getRows(
|
|
75776
|
+
async getRows(o) {
|
|
75777
75777
|
try {
|
|
75778
|
-
|
|
75779
|
-
|
|
75778
|
+
i(!0);
|
|
75779
|
+
const s = Math.floor(o.startRow / t) + 1, { rows: r, total: a } = await e({
|
|
75780
|
+
page: s,
|
|
75780
75781
|
pageSize: t,
|
|
75781
75782
|
filterText: n(),
|
|
75782
|
-
sort_by:
|
|
75783
|
+
sort_by: o.sortModel
|
|
75783
75784
|
});
|
|
75784
|
-
let
|
|
75785
|
-
Number.isFinite(
|
|
75785
|
+
let l = -1;
|
|
75786
|
+
Number.isFinite(a) ? l = a : r.length < t && (l = o.startRow + r.length), o.context = {
|
|
75786
75787
|
pageSize: t,
|
|
75787
75788
|
text: n()
|
|
75788
|
-
},
|
|
75789
|
-
} catch (
|
|
75790
|
-
console.error("Datasource fetch error:",
|
|
75789
|
+
}, o.successCallback(r, l), i(!1);
|
|
75790
|
+
} catch (s) {
|
|
75791
|
+
console.error("Datasource fetch error:", s), o.failCallback();
|
|
75791
75792
|
}
|
|
75792
75793
|
}
|
|
75793
75794
|
};
|
|
@@ -75803,7 +75804,14 @@ function Gme(e) {
|
|
|
75803
75804
|
const { sizeColumnsToFit: m, addEventListener: y, setGridOption: b } = g;
|
|
75804
75805
|
if (m == null || m(), !r)
|
|
75805
75806
|
return console.error("Fetcher function is undefined"), null;
|
|
75806
|
-
const S = Hme(
|
|
75807
|
+
const S = Hme(
|
|
75808
|
+
r,
|
|
75809
|
+
e.perPage,
|
|
75810
|
+
() => i.value,
|
|
75811
|
+
(F) => {
|
|
75812
|
+
a.value = F;
|
|
75813
|
+
}
|
|
75814
|
+
);
|
|
75807
75815
|
return b == null || b("datasource", S), y == null || y("selectionChanged", () => {
|
|
75808
75816
|
t.value = g.getSelectedRows();
|
|
75809
75817
|
}), y == null || y("columnMoved", () => {
|
|
@@ -76131,7 +76139,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76131
76139
|
return ((le = a.value) == null ? void 0 : le.name) || "Items";
|
|
76132
76140
|
}), xe = (le, Se) => {
|
|
76133
76141
|
var nt, Pe, Pn;
|
|
76134
|
-
g.value.total = le.meta.total ?? 0, (nt = le.meta.next) != null && nt.cursor && (Z[Se + 1] = le.meta.next.cursor), S.value = le.meta["X-Tsr-
|
|
76142
|
+
g.value.total = le.meta.total ?? 0, (nt = le.meta.next) != null && nt.cursor && (Z[Se + 1] = le.meta.next.cursor), S.value = le.meta["X-Tsr-signature"] || "", le.meta.total === 0 ? (Pe = d.value) == null || Pe.showNoRowsOverlay() : (Pn = d.value) == null || Pn.hideOverlay();
|
|
76135
76143
|
}, re = GA(), { sortingAPIConfiguration: Ie, isSortingRunning: Me } = _s(re), Je = Y([]), gt = async ({ page: le, pageSize: Se, filterText: nt }) => {
|
|
76136
76144
|
var Ns;
|
|
76137
76145
|
(Ns = d.value) == null || Ns.hideOverlay();
|
|
@@ -76160,7 +76168,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76160
76168
|
Me.value = !1;
|
|
76161
76169
|
}
|
|
76162
76170
|
}, {
|
|
76163
|
-
isLoading:
|
|
76171
|
+
isLoading: Ft,
|
|
76164
76172
|
toggleSidebar: He,
|
|
76165
76173
|
onGridReady: Yt,
|
|
76166
76174
|
handleUnSelect: Zt,
|
|
@@ -76257,7 +76265,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76257
76265
|
var le;
|
|
76258
76266
|
(le = fe.value) == null || le.open();
|
|
76259
76267
|
}, Ve = () => {
|
|
76260
|
-
d.value && (S.value = "", C.value.clear(),
|
|
76268
|
+
d.value && (S.value = "", C.value.clear(), Object.keys(Z).forEach((le) => delete Z[Number(le)]), d.value.deselectAll(), d.value.ensureIndexVisible(0, "top"), d.value.purgeInfiniteCache(), d.value.refreshInfiniteCache());
|
|
76261
76269
|
}, Ne = q(() => sessionStorage.getItem("ITEM_TABLE_APP_VERSION") || ""), Ae = Y();
|
|
76262
76270
|
function Te(le) {
|
|
76263
76271
|
var Se;
|
|
@@ -76281,7 +76289,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76281
76289
|
var nt;
|
|
76282
76290
|
let Se;
|
|
76283
76291
|
if (!(!E.value || !le.trim())) {
|
|
76284
|
-
|
|
76292
|
+
Ft.value = !0;
|
|
76285
76293
|
try {
|
|
76286
76294
|
Se = await E.value.createNewScene({
|
|
76287
76295
|
workspaceId: u.workspaceId,
|
|
@@ -76291,7 +76299,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76291
76299
|
} catch (Pe) {
|
|
76292
76300
|
console.error("Error creating new scene:", Pe);
|
|
76293
76301
|
} finally {
|
|
76294
|
-
|
|
76302
|
+
Ft.value = !1, Se != null && Se.id && r({
|
|
76295
76303
|
id: String(Se == null ? void 0 : Se.id),
|
|
76296
76304
|
message: `${le} created successfully`,
|
|
76297
76305
|
actions: [
|
|
@@ -76440,7 +76448,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76440
76448
|
id: "item_search_box"
|
|
76441
76449
|
}, null, 8, ["modelValue", "onSearch", "class"]),
|
|
76442
76450
|
ye(U(gA), {
|
|
76443
|
-
status: U(
|
|
76451
|
+
status: U(Ft) ? "busy" : "active",
|
|
76444
76452
|
size: 10,
|
|
76445
76453
|
id: "refresh_table",
|
|
76446
76454
|
"status-tooltip": "Data has changed, please refresh the table",
|
|
@@ -76450,6 +76458,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76450
76458
|
default: Re(() => [
|
|
76451
76459
|
ye(U(pt), {
|
|
76452
76460
|
variant: "secondary",
|
|
76461
|
+
disabled: U(Ft),
|
|
76453
76462
|
onClick: Ve
|
|
76454
76463
|
}, {
|
|
76455
76464
|
prefix: Re(() => [
|
|
@@ -76459,7 +76468,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76459
76468
|
Se[4] || (Se[4] = ht(" Refresh ", -1))
|
|
76460
76469
|
]),
|
|
76461
76470
|
_: 1
|
|
76462
|
-
})
|
|
76471
|
+
}, 8, ["disabled"])
|
|
76463
76472
|
]),
|
|
76464
76473
|
_: 1
|
|
76465
76474
|
}, 8, ["status", "show-badge"]),
|
|
@@ -76547,7 +76556,7 @@ const $me = { key: 1 }, Wme = /* @__PURE__ */ ut({
|
|
|
76547
76556
|
"beta-tag": "_beta-tag_1lefh_57"
|
|
76548
76557
|
}, nve = {
|
|
76549
76558
|
$style: tve
|
|
76550
|
-
}, ive = /* @__PURE__ */ wt(Yme, [["__cssModules", nve]]), wL = "0.0.
|
|
76559
|
+
}, ive = /* @__PURE__ */ wt(Yme, [["__cssModules", nve]]), wL = "0.0.48", ove = { key: 0 }, sve = /* @__PURE__ */ ut({
|
|
76551
76560
|
__name: "app",
|
|
76552
76561
|
setup(e) {
|
|
76553
76562
|
const t = q(() => n.id.length === 0 || n.workspaceId.length === 0), n = Uo({
|