@arbocollab/arbo-plugin-item-table 0.0.105 → 0.0.107
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 +618 -613
- package/lib/style.css +1 -1
- package/lib/umd/index.umd.js +28 -28
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -1208,20 +1208,20 @@ function fV(e, t, n = zt) {
|
|
|
1208
1208
|
if (!(!(d.flags & 1) || !d.dirty && !R))
|
|
1209
1209
|
if (t) {
|
|
1210
1210
|
const E = d.run();
|
|
1211
|
-
if (o || m || (y ? E.some((x,
|
|
1211
|
+
if (o || m || (y ? E.some((x, I) => Ti(x, _[I])) : Ti(E, _))) {
|
|
1212
1212
|
f && f();
|
|
1213
1213
|
const x = $a;
|
|
1214
1214
|
$a = d;
|
|
1215
1215
|
try {
|
|
1216
|
-
const
|
|
1216
|
+
const I = [
|
|
1217
1217
|
E,
|
|
1218
1218
|
// pass undefined as the old value when it's changed for the first time
|
|
1219
1219
|
_ === Rf ? void 0 : y && _[0] === Rf ? [] : _,
|
|
1220
1220
|
p
|
|
1221
1221
|
];
|
|
1222
|
-
_ = E, l ? l(t, 3,
|
|
1222
|
+
_ = E, l ? l(t, 3, I) : (
|
|
1223
1223
|
// @ts-expect-error
|
|
1224
|
-
t(...
|
|
1224
|
+
t(...I)
|
|
1225
1225
|
);
|
|
1226
1226
|
} finally {
|
|
1227
1227
|
$a = x;
|
|
@@ -1868,7 +1868,7 @@ function zd(e, t, n, i, o) {
|
|
|
1868
1868
|
}, x = (k, O) => {
|
|
1869
1869
|
const T = O[1];
|
|
1870
1870
|
E(k, O), St(k) ? k.every((A) => A.length <= 1) && T() : k.length <= 1 && T();
|
|
1871
|
-
},
|
|
1871
|
+
}, I = {
|
|
1872
1872
|
mode: r,
|
|
1873
1873
|
persisted: a,
|
|
1874
1874
|
beforeEnter(k) {
|
|
@@ -1892,9 +1892,9 @@ function zd(e, t, n, i, o) {
|
|
|
1892
1892
|
O = w || u, T = S || c, A = _ || d;
|
|
1893
1893
|
else
|
|
1894
1894
|
return;
|
|
1895
|
-
let
|
|
1895
|
+
let P = !1;
|
|
1896
1896
|
const N = k[_f] = (J) => {
|
|
1897
|
-
|
|
1897
|
+
P || (P = !0, J ? E(A, [k]) : E(T, [k]), I.delayedLeave && I.delayedLeave(), k[_f] = void 0);
|
|
1898
1898
|
};
|
|
1899
1899
|
O ? x(O, [k, N]) : N();
|
|
1900
1900
|
},
|
|
@@ -1907,10 +1907,10 @@ function zd(e, t, n, i, o) {
|
|
|
1907
1907
|
return O();
|
|
1908
1908
|
E(h, [k]);
|
|
1909
1909
|
let A = !1;
|
|
1910
|
-
const
|
|
1910
|
+
const P = k[ir] = (N) => {
|
|
1911
1911
|
A || (A = !0, O(), N ? E(m, [k]) : E(p, [k]), k[ir] = void 0, R[T] === e && delete R[T]);
|
|
1912
1912
|
};
|
|
1913
|
-
R[T] = e, f ? x(f, [k,
|
|
1913
|
+
R[T] = e, f ? x(f, [k, P]) : P();
|
|
1914
1914
|
},
|
|
1915
1915
|
clone(k) {
|
|
1916
1916
|
const O = zd(
|
|
@@ -1923,7 +1923,7 @@ function zd(e, t, n, i, o) {
|
|
|
1923
1923
|
return o && o(O), O;
|
|
1924
1924
|
}
|
|
1925
1925
|
};
|
|
1926
|
-
return
|
|
1926
|
+
return I;
|
|
1927
1927
|
}
|
|
1928
1928
|
function Nv(e) {
|
|
1929
1929
|
if (xh(e))
|
|
@@ -2449,14 +2449,14 @@ function XV(e) {
|
|
|
2449
2449
|
render: R,
|
|
2450
2450
|
renderTracked: E,
|
|
2451
2451
|
renderTriggered: x,
|
|
2452
|
-
errorCaptured:
|
|
2452
|
+
errorCaptured: I,
|
|
2453
2453
|
serverPrefetch: k,
|
|
2454
2454
|
// public API
|
|
2455
2455
|
expose: O,
|
|
2456
2456
|
inheritAttrs: T,
|
|
2457
2457
|
// assets
|
|
2458
2458
|
components: A,
|
|
2459
|
-
directives:
|
|
2459
|
+
directives: P,
|
|
2460
2460
|
filters: N
|
|
2461
2461
|
} = t, J = G.env.NODE_ENV !== "production" ? ZV() : null;
|
|
2462
2462
|
if (G.env.NODE_ENV !== "production") {
|
|
@@ -2527,7 +2527,7 @@ function XV(e) {
|
|
|
2527
2527
|
function ee(Y, V) {
|
|
2528
2528
|
St(V) ? V.forEach((H) => Y(H.bind(n))) : V && Y(V.bind(n));
|
|
2529
2529
|
}
|
|
2530
|
-
if (ee(ym, d), ee(hn, h), ee(oT, f), ee(wm, p), ee(NV, m), ee(VV, y), ee(WV,
|
|
2530
|
+
if (ee(ym, d), ee(hn, h), ee(oT, f), ee(wm, p), ee(NV, m), ee(VV, y), ee(WV, I), ee($V, E), ee(GV, x), ee(Jn, S), ee(Fh, C), ee(HV, k), St(O))
|
|
2531
2531
|
if (O.length) {
|
|
2532
2532
|
const Y = e.exposed || (e.exposed = {});
|
|
2533
2533
|
O.forEach((V) => {
|
|
@@ -2538,7 +2538,7 @@ function XV(e) {
|
|
|
2538
2538
|
});
|
|
2539
2539
|
});
|
|
2540
2540
|
} else e.exposed || (e.exposed = {});
|
|
2541
|
-
R && e.render === zn && (e.render = R), T != null && (e.inheritAttrs = T), A && (e.components = A),
|
|
2541
|
+
R && e.render === zn && (e.render = R), T != null && (e.inheritAttrs = T), A && (e.components = A), P && (e.directives = P), k && nT(e);
|
|
2542
2542
|
}
|
|
2543
2543
|
function JV(e, t, n = zn) {
|
|
2544
2544
|
St(e) && (e = Rw(e));
|
|
@@ -3017,12 +3017,12 @@ function wE(e) {
|
|
|
3017
3017
|
try {
|
|
3018
3018
|
if (n.shapeFlag & 4) {
|
|
3019
3019
|
const R = o || i, E = G.env.NODE_ENV !== "production" && f.__isScriptSetup ? new Proxy(R, {
|
|
3020
|
-
get(x,
|
|
3020
|
+
get(x, I, k) {
|
|
3021
3021
|
return $e(
|
|
3022
3022
|
`Property '${String(
|
|
3023
|
-
|
|
3023
|
+
I
|
|
3024
3024
|
)}' was accessed via 'this'. Avoid using 'this' in templates.`
|
|
3025
|
-
), Reflect.get(x,
|
|
3025
|
+
), Reflect.get(x, I, k);
|
|
3026
3026
|
}
|
|
3027
3027
|
}) : R;
|
|
3028
3028
|
w = Wo(
|
|
@@ -3067,15 +3067,15 @@ function wE(e) {
|
|
|
3067
3067
|
s
|
|
3068
3068
|
)), _ = Ns(_, S, !1, !0);
|
|
3069
3069
|
else if (G.env.NODE_ENV !== "production" && !Dw && _.type !== Nn) {
|
|
3070
|
-
const x = Object.keys(a),
|
|
3070
|
+
const x = Object.keys(a), I = [], k = [];
|
|
3071
3071
|
for (let O = 0, T = x.length; O < T; O++) {
|
|
3072
3072
|
const A = x[O];
|
|
3073
|
-
Eh(A) ? Jp(A) ||
|
|
3073
|
+
Eh(A) ? Jp(A) || I.push(A[2].toLowerCase() + A.slice(3)) : k.push(A);
|
|
3074
3074
|
}
|
|
3075
3075
|
k.length && $e(
|
|
3076
3076
|
`Extraneous non-props attributes (${k.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`
|
|
3077
|
-
),
|
|
3078
|
-
`Extraneous non-emits event listeners (${
|
|
3077
|
+
), I.length && $e(
|
|
3078
|
+
`Extraneous non-emits event listeners (${I.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`
|
|
3079
3079
|
);
|
|
3080
3080
|
}
|
|
3081
3081
|
}
|
|
@@ -3535,7 +3535,7 @@ function P2(e, t) {
|
|
|
3535
3535
|
L == null ? S(q, ue, Te, Ve) : G.env.NODE_ENV !== "production" && _(L, q, ue, Ve);
|
|
3536
3536
|
break;
|
|
3537
3537
|
case At:
|
|
3538
|
-
|
|
3538
|
+
P(
|
|
3539
3539
|
L,
|
|
3540
3540
|
q,
|
|
3541
3541
|
ue,
|
|
@@ -3674,7 +3674,7 @@ function P2(e, t) {
|
|
|
3674
3674
|
Bv(L, Pe),
|
|
3675
3675
|
Ve,
|
|
3676
3676
|
Me
|
|
3677
|
-
), wt && Aa(L, null, Te, "created"),
|
|
3677
|
+
), wt && Aa(L, null, Te, "created"), I(Oe, L, L.scopeId, Ve, Te), at) {
|
|
3678
3678
|
for (const $t in at)
|
|
3679
3679
|
$t !== "value" && !hd($t) && s(Oe, $t, null, at[$t], Pe, Te);
|
|
3680
3680
|
"value" in at && s(Oe, "value", null, at.value, Pe), (xe = at.onVnodeBeforeMount) && hs(xe, Te, L);
|
|
@@ -3684,7 +3684,7 @@ function P2(e, t) {
|
|
|
3684
3684
|
Ot && ht.beforeEnter(Oe), i(Oe, q, ue), ((xe = at && at.onVnodeMounted) || Ot || wt) && Xi(() => {
|
|
3685
3685
|
xe && hs(xe, Te, L), Ot && ht.enter(Oe), wt && Aa(L, null, Te, "mounted");
|
|
3686
3686
|
}, De);
|
|
3687
|
-
},
|
|
3687
|
+
}, I = (L, q, ue, Te, De) => {
|
|
3688
3688
|
if (ue && f(L, ue), Te)
|
|
3689
3689
|
for (let Pe = 0; Pe < Te.length; Pe++)
|
|
3690
3690
|
f(L, Te[Pe]);
|
|
@@ -3692,7 +3692,7 @@ function P2(e, t) {
|
|
|
3692
3692
|
let Pe = De.subTree;
|
|
3693
3693
|
if (G.env.NODE_ENV !== "production" && Pe.patchFlag > 0 && Pe.patchFlag & 2048 && (Pe = xb(Pe.children) || Pe), q === Pe || _T(Pe.type) && (Pe.ssContent === q || Pe.ssFallback === q)) {
|
|
3694
3694
|
const Ve = De.vnode;
|
|
3695
|
-
|
|
3695
|
+
I(
|
|
3696
3696
|
L,
|
|
3697
3697
|
Ve,
|
|
3698
3698
|
Ve.scopeId,
|
|
@@ -3803,7 +3803,7 @@ function P2(e, t) {
|
|
|
3803
3803
|
}
|
|
3804
3804
|
"value" in ue && s(L, "value", q.value, ue.value, De);
|
|
3805
3805
|
}
|
|
3806
|
-
},
|
|
3806
|
+
}, P = (L, q, ue, Te, De, Pe, Ve, Me, Oe) => {
|
|
3807
3807
|
const xe = q.el = L ? L.el : a(""), at = q.anchor = L ? L.anchor : a("");
|
|
3808
3808
|
let { patchFlag: Ue, dynamicChildren: ht, slotScopeIds: wt } = q;
|
|
3809
3809
|
G.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
@@ -5205,15 +5205,15 @@ function NT(e) {
|
|
|
5205
5205
|
onLeaveCancelled: R,
|
|
5206
5206
|
onBeforeAppear: E = w,
|
|
5207
5207
|
onAppear: x = S,
|
|
5208
|
-
onAppearCancelled:
|
|
5209
|
-
} = t, k = (A,
|
|
5210
|
-
A._enterCancelled = J, zr(A,
|
|
5211
|
-
}, O = (A,
|
|
5212
|
-
A._isLeaving = !1, zr(A, d), zr(A, f), zr(A, h),
|
|
5213
|
-
}, T = (A) => (
|
|
5214
|
-
const J = A ? x : S, ee = () => k(
|
|
5215
|
-
Oa(J, [
|
|
5216
|
-
zr(
|
|
5208
|
+
onAppearCancelled: I = _
|
|
5209
|
+
} = t, k = (A, P, N, J) => {
|
|
5210
|
+
A._enterCancelled = J, zr(A, P ? c : a), zr(A, P ? u : r), N && N();
|
|
5211
|
+
}, O = (A, P) => {
|
|
5212
|
+
A._isLeaving = !1, zr(A, d), zr(A, f), zr(A, h), P && P();
|
|
5213
|
+
}, T = (A) => (P, N) => {
|
|
5214
|
+
const J = A ? x : S, ee = () => k(P, A, N);
|
|
5215
|
+
Oa(J, [P, ee]), kE(() => {
|
|
5216
|
+
zr(P, A ? l : s), ms(P, A ? c : a), AE(J) || OE(P, i, m, ee);
|
|
5217
5217
|
});
|
|
5218
5218
|
};
|
|
5219
5219
|
return bn(t, {
|
|
@@ -5225,9 +5225,9 @@ function NT(e) {
|
|
|
5225
5225
|
},
|
|
5226
5226
|
onEnter: T(!1),
|
|
5227
5227
|
onAppear: T(!0),
|
|
5228
|
-
onLeave(A,
|
|
5228
|
+
onLeave(A, P) {
|
|
5229
5229
|
A._isLeaving = !0;
|
|
5230
|
-
const N = () => O(A,
|
|
5230
|
+
const N = () => O(A, P);
|
|
5231
5231
|
ms(A, d), A._enterCancelled ? (ms(A, h), Aw(A)) : (Aw(A), ms(A, h)), kE(() => {
|
|
5232
5232
|
A._isLeaving && (zr(A, d), ms(A, f), AE(C) || OE(A, i, y, N));
|
|
5233
5233
|
}), Oa(C, [A, N]);
|
|
@@ -5236,7 +5236,7 @@ function NT(e) {
|
|
|
5236
5236
|
k(A, !1, void 0, !0), Oa(_, [A]);
|
|
5237
5237
|
},
|
|
5238
5238
|
onAppearCancelled(A) {
|
|
5239
|
-
k(A, !0, void 0, !0), Oa(
|
|
5239
|
+
k(A, !0, void 0, !0), Oa(I, [A]);
|
|
5240
5240
|
},
|
|
5241
5241
|
onLeaveCancelled(A) {
|
|
5242
5242
|
O(A), Oa(R, [A]);
|
|
@@ -6102,8 +6102,8 @@ var eH = function(t, n) {
|
|
|
6102
6102
|
function tH(e) {
|
|
6103
6103
|
var t, n = e.state, i = e.name, o = e.options, s = n.elements.arrow, r = n.modifiersData.popperOffsets, a = Ps(n.placement), l = Mb(a), u = [$i, Ao].indexOf(a) >= 0, c = u ? "height" : "width";
|
|
6104
6104
|
if (!(!s || !r)) {
|
|
6105
|
-
var d = eH(o.padding, n), h = Ob(s), f = l === "y" ? Gi : $i, p = l === "y" ? Io : Ao, m = n.rects.reference[c] + n.rects.reference[l] - r[l] - n.rects.popper[c], y = r[l] - n.rects.reference[l], w = kh(s), S = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, _ = m / 2 - y / 2, C = d[f], R = S - h[c] - d[p], E = S / 2 - h[c] / 2 + _, x = yd(C, E, R),
|
|
6106
|
-
n.modifiersData[i] = (t = {}, t[
|
|
6105
|
+
var d = eH(o.padding, n), h = Ob(s), f = l === "y" ? Gi : $i, p = l === "y" ? Io : Ao, m = n.rects.reference[c] + n.rects.reference[l] - r[l] - n.rects.popper[c], y = r[l] - n.rects.reference[l], w = kh(s), S = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, _ = m / 2 - y / 2, C = d[f], R = S - h[c] - d[p], E = S / 2 - h[c] / 2 + _, x = yd(C, E, R), I = l;
|
|
6106
|
+
n.modifiersData[i] = (t = {}, t[I] = x, t.centerOffset = x - E, t);
|
|
6107
6107
|
}
|
|
6108
6108
|
}
|
|
6109
6109
|
function nH(e) {
|
|
@@ -6146,8 +6146,8 @@ function sR(e) {
|
|
|
6146
6146
|
f = y.x, m = y.y;
|
|
6147
6147
|
var w = r.hasOwnProperty("x"), S = r.hasOwnProperty("y"), _ = $i, C = Gi, R = window;
|
|
6148
6148
|
if (u) {
|
|
6149
|
-
var E = kh(n), x = "clientHeight",
|
|
6150
|
-
if (E === co(n) && (E = va(n), vr(E).position !== "static" && a === "absolute" && (x = "scrollHeight",
|
|
6149
|
+
var E = kh(n), x = "clientHeight", I = "clientWidth";
|
|
6150
|
+
if (E === co(n) && (E = va(n), vr(E).position !== "static" && a === "absolute" && (x = "scrollHeight", I = "scrollWidth")), E = E, o === Gi || (o === $i || o === Ao) && s === Kd) {
|
|
6151
6151
|
C = Io;
|
|
6152
6152
|
var k = d && E === R && R.visualViewport ? R.visualViewport.height : (
|
|
6153
6153
|
// $FlowFixMe[prop-missing]
|
|
@@ -6159,7 +6159,7 @@ function sR(e) {
|
|
|
6159
6159
|
_ = Ao;
|
|
6160
6160
|
var O = d && E === R && R.visualViewport ? R.visualViewport.width : (
|
|
6161
6161
|
// $FlowFixMe[prop-missing]
|
|
6162
|
-
E[
|
|
6162
|
+
E[I]
|
|
6163
6163
|
);
|
|
6164
6164
|
f -= O - i.width, f *= l ? 1 : -1;
|
|
6165
6165
|
}
|
|
@@ -6174,8 +6174,8 @@ function sR(e) {
|
|
|
6174
6174
|
y: m
|
|
6175
6175
|
};
|
|
6176
6176
|
if (f = A.x, m = A.y, l) {
|
|
6177
|
-
var
|
|
6178
|
-
return Object.assign({}, T, (
|
|
6177
|
+
var P;
|
|
6178
|
+
return Object.assign({}, T, (P = {}, P[C] = S ? "0" : "", P[_] = w ? "0" : "", P.transform = (R.devicePixelRatio || 1) <= 1 ? "translate(" + f + "px, " + m + "px)" : "translate3d(" + f + "px, " + m + "px, 0)", P));
|
|
6179
6179
|
}
|
|
6180
6180
|
return Object.assign({}, T, (t = {}, t[C] = S ? m + "px" : "", t[_] = w ? f + "px" : "", t.transform = "", t));
|
|
6181
6181
|
}
|
|
@@ -6381,7 +6381,7 @@ function qd(e, t) {
|
|
|
6381
6381
|
reference: E,
|
|
6382
6382
|
element: _,
|
|
6383
6383
|
placement: o
|
|
6384
|
-
}),
|
|
6384
|
+
}), I = Lw(Object.assign({}, _, x)), k = h === Bc ? I : E, O = {
|
|
6385
6385
|
top: R.top - k.top + w.top,
|
|
6386
6386
|
bottom: k.bottom - R.bottom + w.bottom,
|
|
6387
6387
|
left: R.left - k.left + w.left,
|
|
@@ -6389,9 +6389,9 @@ function qd(e, t) {
|
|
|
6389
6389
|
}, T = e.modifiersData.offset;
|
|
6390
6390
|
if (h === Bc && T) {
|
|
6391
6391
|
var A = T[o];
|
|
6392
|
-
Object.keys(O).forEach(function(
|
|
6393
|
-
var N = [Ao, Io].indexOf(
|
|
6394
|
-
O[
|
|
6392
|
+
Object.keys(O).forEach(function(P) {
|
|
6393
|
+
var N = [Ao, Io].indexOf(P) >= 0 ? 1 : -1, J = [Gi, Io].indexOf(P) >= 0 ? "y" : "x";
|
|
6394
|
+
O[P] += A[J] * N;
|
|
6395
6395
|
});
|
|
6396
6396
|
}
|
|
6397
6397
|
return O;
|
|
@@ -6434,25 +6434,25 @@ function wH(e) {
|
|
|
6434
6434
|
flipVariations: p,
|
|
6435
6435
|
allowedAutoPlacements: m
|
|
6436
6436
|
}) : X);
|
|
6437
|
-
}, []), R = t.rects.reference, E = t.rects.popper, x = /* @__PURE__ */ new Map(),
|
|
6438
|
-
var T = C[O], A = Ps(T),
|
|
6437
|
+
}, []), R = t.rects.reference, E = t.rects.popper, x = /* @__PURE__ */ new Map(), I = !0, k = C[0], O = 0; O < C.length; O++) {
|
|
6438
|
+
var T = C[O], A = Ps(T), P = Zu(T) === Ku, N = [Gi, Io].indexOf(A) >= 0, J = N ? "width" : "height", ee = qd(t, {
|
|
6439
6439
|
placement: T,
|
|
6440
6440
|
boundary: c,
|
|
6441
6441
|
rootBoundary: d,
|
|
6442
6442
|
altBoundary: h,
|
|
6443
6443
|
padding: u
|
|
6444
|
-
}), Y = N ?
|
|
6444
|
+
}), Y = N ? P ? Ao : $i : P ? Io : Gi;
|
|
6445
6445
|
R[J] > E[J] && (Y = vp(Y));
|
|
6446
6446
|
var V = vp(Y), H = [];
|
|
6447
6447
|
if (s && H.push(ee[A] <= 0), a && H.push(ee[Y] <= 0, ee[V] <= 0), H.every(function(ie) {
|
|
6448
6448
|
return ie;
|
|
6449
6449
|
})) {
|
|
6450
|
-
k = T,
|
|
6450
|
+
k = T, I = !1;
|
|
6451
6451
|
break;
|
|
6452
6452
|
}
|
|
6453
6453
|
x.set(T, H);
|
|
6454
6454
|
}
|
|
6455
|
-
if (
|
|
6455
|
+
if (I)
|
|
6456
6456
|
for (var K = p ? 3 : 1, ve = function(X) {
|
|
6457
6457
|
var he = C.find(function(Le) {
|
|
6458
6458
|
var nt = x.get(Le);
|
|
@@ -6568,7 +6568,7 @@ function TH(e) {
|
|
|
6568
6568
|
rootBoundary: u,
|
|
6569
6569
|
padding: d,
|
|
6570
6570
|
altBoundary: c
|
|
6571
|
-
}), w = Ps(t.placement), S = Zu(t.placement), _ = !S, C = Mb(w), R = FH(C), E = t.modifiersData.popperOffsets, x = t.rects.reference,
|
|
6571
|
+
}), w = Ps(t.placement), S = Zu(t.placement), _ = !S, C = Mb(w), R = FH(C), E = t.modifiersData.popperOffsets, x = t.rects.reference, I = t.rects.popper, k = typeof m == "function" ? m(Object.assign({}, t.rects, {
|
|
6572
6572
|
placement: t.placement
|
|
6573
6573
|
})) : m, O = typeof k == "number" ? {
|
|
6574
6574
|
mainAxis: k,
|
|
@@ -6582,14 +6582,14 @@ function TH(e) {
|
|
|
6582
6582
|
};
|
|
6583
6583
|
if (E) {
|
|
6584
6584
|
if (s) {
|
|
6585
|
-
var
|
|
6585
|
+
var P, N = C === "y" ? Gi : $i, J = C === "y" ? Io : Ao, ee = C === "y" ? "height" : "width", Y = E[C], V = Y + y[N], H = Y - y[J], K = f ? -I[ee] / 2 : 0, ve = S === Ku ? x[ee] : I[ee], Ce = S === Ku ? -I[ee] : -x[ee], ae = t.elements.arrow, ie = f && ae ? Ob(ae) : {
|
|
6586
6586
|
width: 0,
|
|
6587
6587
|
height: 0
|
|
6588
|
-
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : XT(), he = X[N], Le = X[J], nt = yd(0, x[ee], ie[ee]), _e = _ ? x[ee] / 2 - K - nt - he - O.mainAxis : ve - nt - he - O.mainAxis, gt = _ ? -x[ee] / 2 + K + nt + Le + O.mainAxis : Ce + nt + Le + O.mainAxis, bt = t.elements.arrow && kh(t.elements.arrow), mt = bt ? C === "y" ? bt.clientTop || 0 : bt.clientLeft || 0 : 0, L = (
|
|
6588
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : XT(), he = X[N], Le = X[J], nt = yd(0, x[ee], ie[ee]), _e = _ ? x[ee] / 2 - K - nt - he - O.mainAxis : ve - nt - he - O.mainAxis, gt = _ ? -x[ee] / 2 + K + nt + Le + O.mainAxis : Ce + nt + Le + O.mainAxis, bt = t.elements.arrow && kh(t.elements.arrow), mt = bt ? C === "y" ? bt.clientTop || 0 : bt.clientLeft || 0 : 0, L = (P = T == null ? void 0 : T[C]) != null ? P : 0, q = Y + _e - L - mt, ue = Y + gt - L, Te = yd(f ? vg(V, q) : V, Y, f ? ul(H, ue) : H);
|
|
6589
6589
|
E[C] = Te, A[C] = Te - Y;
|
|
6590
6590
|
}
|
|
6591
6591
|
if (a) {
|
|
6592
|
-
var De, Pe = C === "x" ? Gi : $i, Ve = C === "x" ? Io : Ao, Me = E[R], Oe = R === "y" ? "height" : "width", xe = Me + y[Pe], at = Me - y[Ve], Ue = [Gi, $i].indexOf(w) !== -1, ht = (De = T == null ? void 0 : T[R]) != null ? De : 0, wt = Ue ? xe : Me - x[Oe] -
|
|
6592
|
+
var De, Pe = C === "x" ? Gi : $i, Ve = C === "x" ? Io : Ao, Me = E[R], Oe = R === "y" ? "height" : "width", xe = Me + y[Pe], at = Me - y[Ve], Ue = [Gi, $i].indexOf(w) !== -1, ht = (De = T == null ? void 0 : T[R]) != null ? De : 0, wt = Ue ? xe : Me - x[Oe] - I[Oe] - ht + O.altAxis, Ot = Ue ? Me + x[Oe] + I[Oe] - ht - O.altAxis : at, $t = f && Ue ? QB(wt, Me, Ot) : yd(f ? wt : xe, Me, f ? Ot : at);
|
|
6593
6593
|
E[R] = $t, A[R] = $t - Me;
|
|
6594
6594
|
}
|
|
6595
6595
|
t.modifiersData[i] = A;
|
|
@@ -6742,10 +6742,10 @@ function BH(e) {
|
|
|
6742
6742
|
c.reset = !1, C = -1;
|
|
6743
6743
|
continue;
|
|
6744
6744
|
}
|
|
6745
|
-
var R = c.orderedModifiers[C], E = R.fn, x = R.options,
|
|
6745
|
+
var R = c.orderedModifiers[C], E = R.fn, x = R.options, I = x === void 0 ? {} : x, k = R.name;
|
|
6746
6746
|
typeof E == "function" && (c = E({
|
|
6747
6747
|
state: c,
|
|
6748
|
-
options:
|
|
6748
|
+
options: I,
|
|
6749
6749
|
name: k,
|
|
6750
6750
|
instance: f
|
|
6751
6751
|
}) || c);
|
|
@@ -7193,7 +7193,7 @@ function gG(e, t) {
|
|
|
7193
7193
|
return G.env.NODE_ENV !== "production" && Nw(!0, "render() function has not been supplied."), C;
|
|
7194
7194
|
var R = n.render(C), E = R.popper, x = R.onUpdate;
|
|
7195
7195
|
E.setAttribute("data-tippy-root", ""), E.id = "tippy-" + C.id, C.popper = E, e._tippy = C, E._tippy = C;
|
|
7196
|
-
var
|
|
7196
|
+
var I = S.map(function(Re) {
|
|
7197
7197
|
return Re.fn(C);
|
|
7198
7198
|
}), k = e.hasAttribute("aria-expanded");
|
|
7199
7199
|
return bt(), K(), Y(), V("onCreate", [C]), n.showOnCreate && xe(), E.addEventListener("mouseenter", function() {
|
|
@@ -7212,11 +7212,11 @@ function gG(e, t) {
|
|
|
7212
7212
|
var Re;
|
|
7213
7213
|
return !!((Re = C.props.render) != null && Re.$$tippy);
|
|
7214
7214
|
}
|
|
7215
|
-
function
|
|
7215
|
+
function P() {
|
|
7216
7216
|
return m || e;
|
|
7217
7217
|
}
|
|
7218
7218
|
function N() {
|
|
7219
|
-
var Re =
|
|
7219
|
+
var Re = P().parentNode;
|
|
7220
7220
|
return Re ? QH(Re) : document;
|
|
7221
7221
|
}
|
|
7222
7222
|
function J() {
|
|
@@ -7229,7 +7229,7 @@ function gG(e, t) {
|
|
|
7229
7229
|
Re === void 0 && (Re = !1), E.style.pointerEvents = C.props.interactive && !Re ? "" : "none", E.style.zIndex = "" + C.props.zIndex;
|
|
7230
7230
|
}
|
|
7231
7231
|
function V(Re, Ae, dt) {
|
|
7232
|
-
if (dt === void 0 && (dt = !0),
|
|
7232
|
+
if (dt === void 0 && (dt = !0), I.forEach(function(Lt) {
|
|
7233
7233
|
Lt[Re] && Lt[Re].apply(Lt, Ae);
|
|
7234
7234
|
}), dt) {
|
|
7235
7235
|
var Dt;
|
|
@@ -7255,7 +7255,7 @@ function gG(e, t) {
|
|
|
7255
7255
|
if (!(k || !C.props.aria.expanded)) {
|
|
7256
7256
|
var Re = du(C.props.triggerTarget || e);
|
|
7257
7257
|
Re.forEach(function(Ae) {
|
|
7258
|
-
C.props.interactive ? Ae.setAttribute("aria-expanded", C.state.isVisible && Ae ===
|
|
7258
|
+
C.props.interactive ? Ae.setAttribute("aria-expanded", C.state.isVisible && Ae === P() ? "true" : "false") : Ae.removeAttribute("aria-expanded");
|
|
7259
7259
|
});
|
|
7260
7260
|
}
|
|
7261
7261
|
}
|
|
@@ -7360,7 +7360,7 @@ function gG(e, t) {
|
|
|
7360
7360
|
}
|
|
7361
7361
|
}
|
|
7362
7362
|
function q(Re) {
|
|
7363
|
-
var Ae = Re.target, dt =
|
|
7363
|
+
var Ae = Re.target, dt = P().contains(Ae) || E.contains(Ae);
|
|
7364
7364
|
if (!(Re.type === "mousemove" && dt)) {
|
|
7365
7365
|
var Dt = Oe().concat(E).map(function(Lt) {
|
|
7366
7366
|
var We, Qn = Lt._tippy, Vo = (We = Qn.popperInstance) == null ? void 0 : We.state;
|
|
@@ -7384,7 +7384,7 @@ function gG(e, t) {
|
|
|
7384
7384
|
}
|
|
7385
7385
|
}
|
|
7386
7386
|
function Te(Re) {
|
|
7387
|
-
C.props.trigger.indexOf("focusin") < 0 && Re.target !==
|
|
7387
|
+
C.props.trigger.indexOf("focusin") < 0 && Re.target !== P() || C.props.interactive && Re.relatedTarget && E.contains(Re.relatedTarget) || at(Re);
|
|
7388
7388
|
}
|
|
7389
7389
|
function De(Re) {
|
|
7390
7390
|
return bs.isTouch ? T() !== Re.type.indexOf("touch") >= 0 : !1;
|
|
@@ -7393,7 +7393,7 @@ function gG(e, t) {
|
|
|
7393
7393
|
Ve();
|
|
7394
7394
|
var Re = C.props, Ae = Re.popperOptions, dt = Re.placement, Dt = Re.offset, Lt = Re.getReferenceClientRect, We = Re.moveTransition, Qn = A() ? Bw(E).arrow : null, Vo = Lt ? {
|
|
7395
7395
|
getBoundingClientRect: Lt,
|
|
7396
|
-
contextElement: Lt.contextElement ||
|
|
7396
|
+
contextElement: Lt.contextElement || P()
|
|
7397
7397
|
} : e, Us = {
|
|
7398
7398
|
name: "$$tippy",
|
|
7399
7399
|
enabled: !0,
|
|
@@ -7450,7 +7450,7 @@ function gG(e, t) {
|
|
|
7450
7450
|
C.popperInstance && (C.popperInstance.destroy(), C.popperInstance = null);
|
|
7451
7451
|
}
|
|
7452
7452
|
function Me() {
|
|
7453
|
-
var Re = C.props.appendTo, Ae, dt =
|
|
7453
|
+
var Re = C.props.appendTo, Ae, dt = P();
|
|
7454
7454
|
C.props.interactive && Re === sP || Re === "parent" ? Ae = dt.parentNode : Ae = rP(Re, [dt]), Ae.contains(E) || Ae.appendChild(E), C.state.isMounted = !0, Pe(), G.env.NODE_ENV !== "production" && nr(C.props.interactive && Re === no.appendTo && dt.nextElementSibling !== E, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
7455
7455
|
|
|
7456
7456
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
@@ -7513,7 +7513,7 @@ function gG(e, t) {
|
|
|
7513
7513
|
function Mt() {
|
|
7514
7514
|
G.env.NODE_ENV !== "production" && nr(C.state.isDestroyed, Xl("show"));
|
|
7515
7515
|
var Re = C.state.isVisible, Ae = C.state.isDestroyed, dt = !C.state.isEnabled, Dt = bs.isTouch && !C.props.touch, Lt = zv(C.props.duration, 0, no.duration);
|
|
7516
|
-
if (!(Re || Ae || dt || Dt) && !
|
|
7516
|
+
if (!(Re || Ae || dt || Dt) && !P().hasAttribute("disabled") && (V("onShow", [C], !1), C.props.onShow(C) !== !1)) {
|
|
7517
7517
|
if (C.state.isVisible = !0, A() && (E.style.visibility = "visible"), Y(), X(), C.state.isMounted || (E.style.transition = "none"), A()) {
|
|
7518
7518
|
var We = J(), Qn = We.box, Vo = We.content;
|
|
7519
7519
|
jv([Qn, Vo], 0);
|
|
@@ -8349,22 +8349,22 @@ var UG = la.ArrayBuffer, Yv = la.FileReader, Ma = la.URL || la.webkitURL, zG = /
|
|
|
8349
8349
|
}, {
|
|
8350
8350
|
key: "draw",
|
|
8351
8351
|
value: function(n) {
|
|
8352
|
-
var i = this, o = n.naturalWidth, s = n.naturalHeight, r = n.rotate, a = r === void 0 ? 0 : r, l = n.scaleX, u = l === void 0 ? 1 : l, c = n.scaleY, d = c === void 0 ? 1 : c, h = this.file, f = this.image, p = this.options, m = document.createElement("canvas"), y = m.getContext("2d"), w = Math.abs(a) % 180 === 90, S = (p.resize === "contain" || p.resize === "cover") && bg(p.width) && bg(p.height), _ = Math.max(p.maxWidth, 0) || 1 / 0, C = Math.max(p.maxHeight, 0) || 1 / 0, R = Math.max(p.minWidth, 0) || 0, E = Math.max(p.minHeight, 0) || 0, x = o / s,
|
|
8352
|
+
var i = this, o = n.naturalWidth, s = n.naturalHeight, r = n.rotate, a = r === void 0 ? 0 : r, l = n.scaleX, u = l === void 0 ? 1 : l, c = n.scaleY, d = c === void 0 ? 1 : c, h = this.file, f = this.image, p = this.options, m = document.createElement("canvas"), y = m.getContext("2d"), w = Math.abs(a) % 180 === 90, S = (p.resize === "contain" || p.resize === "cover") && bg(p.width) && bg(p.height), _ = Math.max(p.maxWidth, 0) || 1 / 0, C = Math.max(p.maxHeight, 0) || 1 / 0, R = Math.max(p.minWidth, 0) || 0, E = Math.max(p.minHeight, 0) || 0, x = o / s, I = p.width, k = p.height;
|
|
8353
8353
|
if (w) {
|
|
8354
8354
|
var O = [C, _];
|
|
8355
8355
|
_ = O[0], C = O[1];
|
|
8356
8356
|
var T = [E, R];
|
|
8357
8357
|
R = T[0], E = T[1];
|
|
8358
|
-
var A = [k,
|
|
8359
|
-
|
|
8358
|
+
var A = [k, I];
|
|
8359
|
+
I = A[0], k = A[1];
|
|
8360
8360
|
}
|
|
8361
|
-
S && (x =
|
|
8362
|
-
var
|
|
8361
|
+
S && (x = I / k);
|
|
8362
|
+
var P = Hc({
|
|
8363
8363
|
aspectRatio: x,
|
|
8364
8364
|
width: _,
|
|
8365
8365
|
height: C
|
|
8366
8366
|
}, "contain");
|
|
8367
|
-
_ =
|
|
8367
|
+
_ = P.width, C = P.height;
|
|
8368
8368
|
var N = Hc({
|
|
8369
8369
|
aspectRatio: x,
|
|
8370
8370
|
width: R,
|
|
@@ -8373,22 +8373,22 @@ var UG = la.ArrayBuffer, Yv = la.FileReader, Ma = la.URL || la.webkitURL, zG = /
|
|
|
8373
8373
|
if (R = N.width, E = N.height, S) {
|
|
8374
8374
|
var J = Hc({
|
|
8375
8375
|
aspectRatio: x,
|
|
8376
|
-
width:
|
|
8376
|
+
width: I,
|
|
8377
8377
|
height: k
|
|
8378
8378
|
}, p.resize);
|
|
8379
|
-
|
|
8379
|
+
I = J.width, k = J.height;
|
|
8380
8380
|
} else {
|
|
8381
8381
|
var ee = Hc({
|
|
8382
8382
|
aspectRatio: x,
|
|
8383
|
-
width:
|
|
8383
|
+
width: I,
|
|
8384
8384
|
height: k
|
|
8385
8385
|
}), Y = ee.width;
|
|
8386
|
-
|
|
8386
|
+
I = Y === void 0 ? o : Y;
|
|
8387
8387
|
var V = ee.height;
|
|
8388
8388
|
k = V === void 0 ? s : V;
|
|
8389
8389
|
}
|
|
8390
|
-
|
|
8391
|
-
var H = -
|
|
8390
|
+
I = Math.floor(TR(Math.min(Math.max(I, R), _))), k = Math.floor(TR(Math.min(Math.max(k, E), C)));
|
|
8391
|
+
var H = -I / 2, K = -k / 2, ve = I, Ce = k, ae = [];
|
|
8392
8392
|
if (S) {
|
|
8393
8393
|
var ie = 0, X = 0, he = o, Le = s, nt = Hc({
|
|
8394
8394
|
aspectRatio: x,
|
|
@@ -8401,14 +8401,14 @@ var UG = la.ArrayBuffer, Yv = la.FileReader, Ma = la.URL || la.webkitURL, zG = /
|
|
|
8401
8401
|
he = nt.width, Le = nt.height, ie = (o - he) / 2, X = (s - Le) / 2, ae.push(ie, X, he, Le);
|
|
8402
8402
|
}
|
|
8403
8403
|
if (ae.push(H, K, ve, Ce), w) {
|
|
8404
|
-
var _e = [k,
|
|
8405
|
-
|
|
8404
|
+
var _e = [k, I];
|
|
8405
|
+
I = _e[0], k = _e[1];
|
|
8406
8406
|
}
|
|
8407
|
-
m.width =
|
|
8407
|
+
m.width = I, m.height = k, Hw(p.mimeType) || (p.mimeType = h.type);
|
|
8408
8408
|
var gt = "transparent";
|
|
8409
8409
|
h.size > p.convertSize && p.convertTypes.indexOf(p.mimeType) >= 0 && (p.mimeType = "image/jpeg");
|
|
8410
8410
|
var bt = p.mimeType === "image/jpeg";
|
|
8411
|
-
if (bt && (gt = "#fff"), y.fillStyle = gt, y.fillRect(0, 0,
|
|
8411
|
+
if (bt && (gt = "#fff"), y.fillStyle = gt, y.fillRect(0, 0, I, k), p.beforeDraw && p.beforeDraw.call(this, y, m), !this.aborted && (y.save(), y.translate(I / 2, k / 2), y.rotate(a * Math.PI / 180), y.scale(u, d), y.drawImage.apply(y, [f].concat(ae)), y.restore(), p.drew && p.drew.call(this, y, m), !this.aborted)) {
|
|
8412
8412
|
var mt = function(q) {
|
|
8413
8413
|
if (!i.aborted) {
|
|
8414
8414
|
var ue = function(Ve) {
|
|
@@ -8582,7 +8582,7 @@ var bP = { exports: {} };
|
|
|
8582
8582
|
Z !== -1 ? (M = v.substr(0, Z), ($ = v.substr(Z + 1)) === "" ? b === void 0 ? a(g) && !isNaN(parseInt(M)) ? g.splice(M, 1) : delete g[M] : g[M] = b : x(Z = !(Z = g[M]) || !d(g, M) ? g[M] = {} : Z, $, b)) : b === void 0 ? a(g) && !isNaN(parseInt(v)) ? g.splice(v, 1) : delete g[v] : g[v] = b;
|
|
8583
8583
|
}
|
|
8584
8584
|
}
|
|
8585
|
-
function
|
|
8585
|
+
function I(g) {
|
|
8586
8586
|
var v, b = {};
|
|
8587
8587
|
for (v in g) d(g, v) && (b[v] = g[v]);
|
|
8588
8588
|
return b;
|
|
@@ -8600,7 +8600,7 @@ var bP = { exports: {} };
|
|
|
8600
8600
|
}), T = new Set(qs.map(function(g) {
|
|
8601
8601
|
return s[g];
|
|
8602
8602
|
})), A = null;
|
|
8603
|
-
function
|
|
8603
|
+
function P(g) {
|
|
8604
8604
|
return A = /* @__PURE__ */ new WeakMap(), g = function v(b) {
|
|
8605
8605
|
if (!b || typeof b != "object") return b;
|
|
8606
8606
|
var D = A.get(b);
|
|
@@ -9056,7 +9056,7 @@ var bP = { exports: {} };
|
|
|
9056
9056
|
return typeof g != "string" || /\./.test(g) ? function(v) {
|
|
9057
9057
|
return v;
|
|
9058
9058
|
} : function(v) {
|
|
9059
|
-
return v[g] === void 0 && g in v && delete (v =
|
|
9059
|
+
return v[g] === void 0 && g in v && delete (v = P(v))[g], v;
|
|
9060
9060
|
};
|
|
9061
9061
|
}
|
|
9062
9062
|
function O0() {
|
|
@@ -9684,7 +9684,7 @@ var bP = { exports: {} };
|
|
|
9684
9684
|
var ke = Math.min(de, se.length - Ee);
|
|
9685
9685
|
return Z.getMany({ trans: D, keys: se.slice(Ee, Ee + ke), cache: "immutable" }).then(function(ze) {
|
|
9686
9686
|
for (var et = [], je = [], Ke = te ? [] : null, ot = [], Qe = 0; Qe < ke; ++Qe) {
|
|
9687
|
-
var pt = ze[Qe], Bt = { value:
|
|
9687
|
+
var pt = ze[Qe], Bt = { value: P(pt), primKey: se[Ee + Qe] };
|
|
9688
9688
|
$.call(Bt, Bt.value, Bt) !== !1 && (Bt.value == null ? ot.push(se[Ee + Qe]) : te || jt(oe(pt), oe(Bt.value)) === 0 ? (je.push(Bt.value), te && Ke.push(se[Ee + Qe])) : (ot.push(se[Ee + Qe]), et.push(Bt.value)));
|
|
9689
9689
|
}
|
|
9690
9690
|
return Promise.resolve(0 < et.length && Z.mutate({ trans: D, type: "add", values: et }).then(function(Wt) {
|
|
@@ -10295,7 +10295,7 @@ var bP = { exports: {} };
|
|
|
10295
10295
|
var ze = we._cfg.contentUpgrade;
|
|
10296
10296
|
if (ze && we._cfg.version > ge) {
|
|
10297
10297
|
uf(Q, ce), ne._memoizedTables = {};
|
|
10298
|
-
var et =
|
|
10298
|
+
var et = I(Ee);
|
|
10299
10299
|
ke.del.forEach(function(ot) {
|
|
10300
10300
|
et[ot] = be[ot];
|
|
10301
10301
|
}), fv(Q, [Q.Transaction.prototype]), cf(Q, [Q.Transaction.prototype], r(et), et), ne.schema = et;
|
|
@@ -10797,7 +10797,7 @@ var bP = { exports: {} };
|
|
|
10797
10797
|
function X0(g, v, b) {
|
|
10798
10798
|
try {
|
|
10799
10799
|
if (!v || v.keys.length < g.length) return null;
|
|
10800
|
-
for (var D = [], F = 0, M = 0; F < v.keys.length && M < g.length; ++F) jt(v.keys[F], g[M]) === 0 && (D.push(b ?
|
|
10800
|
+
for (var D = [], F = 0, M = 0; F < v.keys.length && M < g.length; ++F) jt(v.keys[F], g[M]) === 0 && (D.push(b ? P(v.values[F]) : v.values[F]), ++M);
|
|
10801
10801
|
return D.length === g.length ? D : null;
|
|
10802
10802
|
} catch {
|
|
10803
10803
|
return null;
|
|
@@ -10810,7 +10810,7 @@ var bP = { exports: {} };
|
|
|
10810
10810
|
if (!D.cache) return b.getMany(D);
|
|
10811
10811
|
var F = X0(D.keys, D.trans._cache, D.cache === "clone");
|
|
10812
10812
|
return F ? We.resolve(F) : b.getMany(D).then(function(M) {
|
|
10813
|
-
return D.trans._cache = { keys: D.keys, values: D.cache === "clone" ?
|
|
10813
|
+
return D.trans._cache = { keys: D.keys, values: D.cache === "clone" ? P(M) : M }, M;
|
|
10814
10814
|
});
|
|
10815
10815
|
}, mutate: function(D) {
|
|
10816
10816
|
return D.type !== "add" && (D.trans._cache = null), b.mutate(D);
|
|
@@ -11064,7 +11064,7 @@ var bP = { exports: {} };
|
|
|
11064
11064
|
})) : $.then(function(te) {
|
|
11065
11065
|
var oe = eE(0, i(i({}, M), { values: M.values.map(function(de, Q) {
|
|
11066
11066
|
var ge;
|
|
11067
|
-
return te.failures[Q] ? de : (de = (ge = F.keyPath) !== null && ge !== void 0 && ge.includes(".") ?
|
|
11067
|
+
return te.failures[Q] ? de : (de = (ge = F.keyPath) !== null && ge !== void 0 && ge.includes(".") ? P(de) : i({}, de), x(de, F.keyPath, te.results[Q]), de);
|
|
11068
11068
|
}) }), te);
|
|
11069
11069
|
Z.optimisticOps.push(oe), queueMicrotask(function() {
|
|
11070
11070
|
return M.mutatedParts && vf(M.mutatedParts);
|
|
@@ -11097,7 +11097,7 @@ var bP = { exports: {} };
|
|
|
11097
11097
|
if (de && (de.res = pe), $) {
|
|
11098
11098
|
for (var se = 0, we = pe.length; se < we; ++se) Object.freeze(pe[se]);
|
|
11099
11099
|
Object.freeze(pe);
|
|
11100
|
-
} else ce.result =
|
|
11100
|
+
} else ce.result = P(pe);
|
|
11101
11101
|
return ce;
|
|
11102
11102
|
}).catch(function(ce) {
|
|
11103
11103
|
return ne && de && V(ne, de), Promise.reject(ce);
|
|
@@ -11469,7 +11469,7 @@ var bP = { exports: {} };
|
|
|
11469
11469
|
typeof v == "string" ? x(g, v, void 0) : "length" in v && [].map.call(v, function(b) {
|
|
11470
11470
|
x(g, b, void 0);
|
|
11471
11471
|
});
|
|
11472
|
-
}, shallowClone:
|
|
11472
|
+
}, shallowClone: I, deepClone: P, getObjectDiff: _v, cmp: jt, asap: R, minKey: -1 / 0, addons: [], connections: Ul, errnames: Le, dependencies: Cf, cache: Ta, semVer: "4.0.10", version: "4.0.10".split(".").map(function(g) {
|
|
11473
11473
|
return parseInt(g);
|
|
11474
11474
|
}).reduce(function(g, v, b) {
|
|
11475
11475
|
return g + v / Math.pow(10, 2 * b);
|
|
@@ -13829,19 +13829,19 @@ function Mo(e, t, n) {
|
|
|
13829
13829
|
throw new TypeError(L6);
|
|
13830
13830
|
t = Uw(t) || 0, ua(n) && (c = !!n.leading, d = "maxWait" in n, s = d ? N6(Uw(n.maxWait) || 0, t) : s, h = "trailing" in n ? !!n.trailing : h);
|
|
13831
13831
|
function f(E) {
|
|
13832
|
-
var x = i,
|
|
13833
|
-
return i = o = void 0, u = E, r = e.apply(
|
|
13832
|
+
var x = i, I = o;
|
|
13833
|
+
return i = o = void 0, u = E, r = e.apply(I, x), r;
|
|
13834
13834
|
}
|
|
13835
13835
|
function p(E) {
|
|
13836
13836
|
return u = E, a = setTimeout(w, t), c ? f(E) : r;
|
|
13837
13837
|
}
|
|
13838
13838
|
function m(E) {
|
|
13839
|
-
var x = E - l,
|
|
13840
|
-
return d ? V6(k, s -
|
|
13839
|
+
var x = E - l, I = E - u, k = t - x;
|
|
13840
|
+
return d ? V6(k, s - I) : k;
|
|
13841
13841
|
}
|
|
13842
13842
|
function y(E) {
|
|
13843
|
-
var x = E - l,
|
|
13844
|
-
return l === void 0 || x >= t || x < 0 || d &&
|
|
13843
|
+
var x = E - l, I = E - u;
|
|
13844
|
+
return l === void 0 || x >= t || x < 0 || d && I >= s;
|
|
13845
13845
|
}
|
|
13846
13846
|
function w() {
|
|
13847
13847
|
var E = ty();
|
|
@@ -18030,10 +18030,10 @@ class it {
|
|
|
18030
18030
|
const C = m ? S4(s, r, a) : c ? E4(s) : yI(s), R = C || wI(s);
|
|
18031
18031
|
if (R)
|
|
18032
18032
|
return it.invalid(R);
|
|
18033
|
-
const E = m ? __(s, r, a) : c ? D_(s) : s, [x,
|
|
18033
|
+
const E = m ? __(s, r, a) : c ? D_(s) : s, [x, I] = Cp(E, u, i), k = new it({
|
|
18034
18034
|
ts: x,
|
|
18035
18035
|
zone: i,
|
|
18036
|
-
o:
|
|
18036
|
+
o: I,
|
|
18037
18037
|
loc: o
|
|
18038
18038
|
});
|
|
18039
18039
|
return s.weekday && f && t.weekday !== k.weekday ? it.invalid(
|
|
@@ -19647,17 +19647,17 @@ const Gf = ({
|
|
|
19647
19647
|
const E = new Set(((k = e.value) == null ? void 0 : k.map((T) => T.id)) ?? []), x = ((O = e.value) == null ? void 0 : O.map((T) => ({
|
|
19648
19648
|
...dS(T),
|
|
19649
19649
|
selected: !0
|
|
19650
|
-
}))) ?? [],
|
|
19650
|
+
}))) ?? [], I = n.value.filter(
|
|
19651
19651
|
(T) => !E.has(T.id)
|
|
19652
19652
|
);
|
|
19653
|
-
return nh(x,
|
|
19653
|
+
return nh(x, I, "id");
|
|
19654
19654
|
}), h = (E) => {
|
|
19655
|
-
const x = d.value.find((
|
|
19655
|
+
const x = d.value.find((I) => I.id === E);
|
|
19656
19656
|
return x == null ? void 0 : x.data;
|
|
19657
19657
|
}, f = () => {
|
|
19658
19658
|
var E;
|
|
19659
19659
|
return (E = a.value) != null && E.length ? a.value : [String(r.value)];
|
|
19660
|
-
}, p = async (E, x,
|
|
19660
|
+
}, p = async (E, x, I) => {
|
|
19661
19661
|
if (i.value || !c.value) return !1;
|
|
19662
19662
|
i.value = !0;
|
|
19663
19663
|
try {
|
|
@@ -19683,17 +19683,17 @@ const Gf = ({
|
|
|
19683
19683
|
() => c.value.replaceAssignee(String(o.value), f(), [E]),
|
|
19684
19684
|
() => {
|
|
19685
19685
|
t.value = [E];
|
|
19686
|
-
const
|
|
19687
|
-
|
|
19686
|
+
const I = h(E);
|
|
19687
|
+
I && (l == null || l({ assignees: Rd([I]), type: "overwrite" }));
|
|
19688
19688
|
}
|
|
19689
19689
|
), w = async (E) => await p(
|
|
19690
19690
|
() => c.value.addAssignee(String(o.value), f(), [E]),
|
|
19691
19691
|
() => {
|
|
19692
19692
|
var k, O, T;
|
|
19693
19693
|
t.value.push(E);
|
|
19694
|
-
const
|
|
19695
|
-
if (
|
|
19696
|
-
const A = (T = (O = (k = e.params) == null ? void 0 : k.api) == null ? void 0 : O.getRowNode(String(e.id))) == null ? void 0 : T.data,
|
|
19694
|
+
const I = h(E);
|
|
19695
|
+
if (I) {
|
|
19696
|
+
const A = (T = (O = (k = e.params) == null ? void 0 : k.api) == null ? void 0 : O.getRowNode(String(e.id))) == null ? void 0 : T.data, P = (A == null ? void 0 : A.assignees) || [], N = nh([...P, ...Rd([I])], "id");
|
|
19697
19697
|
l == null || l({ assignees: N, type: "add" });
|
|
19698
19698
|
}
|
|
19699
19699
|
}
|
|
@@ -19701,10 +19701,10 @@ const Gf = ({
|
|
|
19701
19701
|
() => c.value.removeAssignee(String(o.value), f(), [E]),
|
|
19702
19702
|
() => {
|
|
19703
19703
|
var O, T, A;
|
|
19704
|
-
const
|
|
19705
|
-
t.value = t.value.filter((
|
|
19704
|
+
const I = (A = (T = (O = e.params) == null ? void 0 : O.api) == null ? void 0 : T.getRowNode(String(e.id))) == null ? void 0 : A.data;
|
|
19705
|
+
t.value = t.value.filter((P) => P !== E);
|
|
19706
19706
|
const k = Rd(
|
|
19707
|
-
((
|
|
19707
|
+
((I == null ? void 0 : I.assignees) || []).filter((P) => P.id !== E)
|
|
19708
19708
|
);
|
|
19709
19709
|
l == null || l({ assignees: k, type: "remove" });
|
|
19710
19710
|
}
|
|
@@ -19888,9 +19888,9 @@ const hS = (e, t, n) => {
|
|
|
19888
19888
|
});
|
|
19889
19889
|
const s = B(!1), r = B(!1), a = () => {
|
|
19890
19890
|
var ee, Y, V, H, K, ve, Ce, ae;
|
|
19891
|
-
const O = s.value || ((Y = (ee = o.startDate) == null ? void 0 : ee.getTime) == null ? void 0 : Y.call(ee)) !== ((H = (V = o.cacheStartDate) == null ? void 0 : V.getTime) == null ? void 0 : H.call(V)), T = r.value || ((ve = (K = o.endDate) == null ? void 0 : K.getTime) == null ? void 0 : ve.call(K)) !== ((ae = (Ce = o.cacheEndDate) == null ? void 0 : Ce.getTime) == null ? void 0 : ae.call(Ce)), A = o.startDate === null,
|
|
19891
|
+
const O = s.value || ((Y = (ee = o.startDate) == null ? void 0 : ee.getTime) == null ? void 0 : Y.call(ee)) !== ((H = (V = o.cacheStartDate) == null ? void 0 : V.getTime) == null ? void 0 : H.call(V)), T = r.value || ((ve = (K = o.endDate) == null ? void 0 : K.getTime) == null ? void 0 : ve.call(K)) !== ((ae = (Ce = o.cacheEndDate) == null ? void 0 : Ce.getTime) == null ? void 0 : ae.call(Ce)), A = o.startDate === null, P = o.endDate === null;
|
|
19892
19892
|
let N, J;
|
|
19893
|
-
O && T && A &&
|
|
19893
|
+
O && T && A && P ? (N = !0, J = !0, t("clearAll")) : O && !T ? (N = !0, A ? t("clearStart") : t("update:start", o.startDate)) : T && !O ? (J = !0, P ? t("clearDue") : t("update:end", o.endDate)) : O && T && (N = !0, J = !0, t("update", [o.startDate, o.endDate])), !(!N && !J) && (N && !J ? t("confirmed", { start: o.startDate }) : !N && J ? t("confirmed", { end: o.endDate }) : t("confirmed", { start: o.startDate, end: o.endDate }), o.isDirty = O || T);
|
|
19894
19894
|
}, l = (O, T) => {
|
|
19895
19895
|
const A = it.fromObject(
|
|
19896
19896
|
{ year: O.year, month: O.month, day: O.day },
|
|
@@ -19943,7 +19943,7 @@ const hS = (e, t, n) => {
|
|
|
19943
19943
|
zone: o.timezone
|
|
19944
19944
|
}).toFormat(o.format) : e.startPlaceholder), x = U(() => o.endDate ? it.fromJSDate(o.endDate, {
|
|
19945
19945
|
zone: o.timezone
|
|
19946
|
-
}).toFormat(o.format) : e.duePlaceholder),
|
|
19946
|
+
}).toFormat(o.format) : e.duePlaceholder), I = U(() => !o.startDate && !e.disabled ? e.startTooltip : !o.startDate && (e.disabled || e.readOnly) ? e.startPlaceholder : o.startDate ? it.fromJSDate(o.startDate, {
|
|
19947
19947
|
zone: o.timezone
|
|
19948
19948
|
}).toFormat("LLL dd, yyyy | HH:mm:ss") : e.startTooltip), k = U(() => !o.endDate && !e.disabled ? e.dueTooltip : !o.endDate && (e.disabled || e.readOnly) ? e.startPlaceholder : o.endDate ? it.fromJSDate(o.endDate, { zone: o.timezone }).toFormat(
|
|
19949
19949
|
"LLL dd, yyyy | HH:mm:ss"
|
|
@@ -19952,7 +19952,7 @@ const hS = (e, t, n) => {
|
|
|
19952
19952
|
states: o,
|
|
19953
19953
|
displayStartDate: E,
|
|
19954
19954
|
displayEndDate: x,
|
|
19955
|
-
tooltipStartDate:
|
|
19955
|
+
tooltipStartDate: I,
|
|
19956
19956
|
tooltipEndDate: k,
|
|
19957
19957
|
showMultipleDueDates: f,
|
|
19958
19958
|
showMultipleStartDates: h,
|
|
@@ -21878,13 +21878,13 @@ var M8 = Object.create, oA = Object.defineProperty, L8 = Object.getOwnPropertyDe
|
|
|
21878
21878
|
"¤": "tien te"
|
|
21879
21879
|
}
|
|
21880
21880
|
}, l = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), u = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), d = function(y, w) {
|
|
21881
|
-
var S = "-", _ = "", C = "", R = !0, E = {}, x,
|
|
21881
|
+
var S = "-", _ = "", C = "", R = !0, E = {}, x, I, k, O, T, A, P, N, J, ee, Y, V, H, K, ve = "";
|
|
21882
21882
|
if (typeof y != "string")
|
|
21883
21883
|
return "";
|
|
21884
|
-
if (typeof w == "string" && (S = w),
|
|
21885
|
-
x = w.maintainCase || !1, E = w.custom && typeof w.custom == "object" ? w.custom : E, k = +w.truncate > 1 && w.truncate || !1, O = w.uric || !1, T = w.uricNoSlash || !1, A = w.mark || !1, R = !(w.symbols === !1 || w.lang === !1), S = w.separator || S, O && (ve += l), T && (ve += u), A && (ve += c),
|
|
21884
|
+
if (typeof w == "string" && (S = w), P = a.en, N = r.en, typeof w == "object") {
|
|
21885
|
+
x = w.maintainCase || !1, E = w.custom && typeof w.custom == "object" ? w.custom : E, k = +w.truncate > 1 && w.truncate || !1, O = w.uric || !1, T = w.uricNoSlash || !1, A = w.mark || !1, R = !(w.symbols === !1 || w.lang === !1), S = w.separator || S, O && (ve += l), T && (ve += u), A && (ve += c), P = w.lang && a[w.lang] && R ? a[w.lang] : R ? a.en : {}, N = w.lang && r[w.lang] ? r[w.lang] : w.lang === !1 || w.lang === !0 ? {} : r.en, w.titleCase && typeof w.titleCase.length == "number" && Array.prototype.toString.call(w.titleCase) ? (w.titleCase.forEach(function(Ce) {
|
|
21886
21886
|
E[Ce + ""] = Ce + "";
|
|
21887
|
-
}),
|
|
21887
|
+
}), I = !0) : I = !!w.titleCase, w.custom && typeof w.custom.length == "number" && Array.prototype.toString.call(w.custom) && w.custom.forEach(function(Ce) {
|
|
21888
21888
|
E[Ce + ""] = Ce + "";
|
|
21889
21889
|
}), Object.keys(E).forEach(function(Ce) {
|
|
21890
21890
|
var ae;
|
|
@@ -21894,11 +21894,11 @@ var M8 = Object.create, oA = Object.defineProperty, L8 = Object.getOwnPropertyDe
|
|
|
21894
21894
|
ve += Y;
|
|
21895
21895
|
}
|
|
21896
21896
|
for (ve += S, ve = f(ve), y = y.replace(/(^\s+|\s+$)/g, ""), H = !1, K = !1, ee = 0, V = y.length; ee < V; ee++)
|
|
21897
|
-
Y = y[ee], p(Y, E) ? H = !1 : N[Y] ? (Y = H && N[Y].match(/[A-Za-z0-9]/) ? " " + N[Y] : N[Y], H = !1) : Y in i ? (ee + 1 < V && o.indexOf(y[ee + 1]) >= 0 ? (C += Y, Y = "") : K === !0 ? (Y = s[C] + i[Y], C = "") : Y = H && i[Y].match(/[A-Za-z0-9]/) ? " " + i[Y] : i[Y], H = !1, K = !1) : Y in s ? (C += Y, Y = "", ee === V - 1 && (Y = s[C]), K = !0) : /* process symbol chars */
|
|
21898
|
-
return
|
|
21897
|
+
Y = y[ee], p(Y, E) ? H = !1 : N[Y] ? (Y = H && N[Y].match(/[A-Za-z0-9]/) ? " " + N[Y] : N[Y], H = !1) : Y in i ? (ee + 1 < V && o.indexOf(y[ee + 1]) >= 0 ? (C += Y, Y = "") : K === !0 ? (Y = s[C] + i[Y], C = "") : Y = H && i[Y].match(/[A-Za-z0-9]/) ? " " + i[Y] : i[Y], H = !1, K = !1) : Y in s ? (C += Y, Y = "", ee === V - 1 && (Y = s[C]), K = !0) : /* process symbol chars */ P[Y] && !(O && l.indexOf(Y) !== -1) && !(T && u.indexOf(Y) !== -1) ? (Y = H || _.substr(-1).match(/[A-Za-z0-9]/) ? S + P[Y] : P[Y], Y += y[ee + 1] !== void 0 && y[ee + 1].match(/[A-Za-z0-9]/) ? S : "", H = !0) : (K === !0 ? (Y = s[C] + Y, C = "", K = !1) : H && (/[A-Za-z0-9]/.test(Y) || _.substr(-1).match(/A-Za-z0-9]/)) && (Y = " " + Y), H = !1), _ += Y.replace(new RegExp("[^\\w\\s" + ve + "_-]", "g"), S);
|
|
21898
|
+
return I && (_ = _.replace(/(\w)(\S*)/g, function(Ce, ae, ie) {
|
|
21899
21899
|
var X = ae.toUpperCase() + (ie !== null ? ie : "");
|
|
21900
21900
|
return Object.keys(E).indexOf(X.toLowerCase()) < 0 ? X : X.toLowerCase();
|
|
21901
|
-
})), _ = _.replace(/\s+/g, S).replace(new RegExp("\\" + S + "+", "g"), S).replace(new RegExp("(^\\" + S + "+|\\" + S + "+$)", "g"), ""), k && _.length > k && (J = _.charAt(k) === S, _ = _.slice(0, k), J || (_ = _.slice(0, _.lastIndexOf(S)))), !x && !
|
|
21901
|
+
})), _ = _.replace(/\s+/g, S).replace(new RegExp("\\" + S + "+", "g"), S).replace(new RegExp("(^\\" + S + "+|\\" + S + "+$)", "g"), ""), k && _.length > k && (J = _.charAt(k) === S, _ = _.slice(0, k), J || (_ = _.slice(0, _.lastIndexOf(S)))), !x && !I && (_ = _.toLowerCase()), _;
|
|
21902
21902
|
}, h = function(y) {
|
|
21903
21903
|
return function(S) {
|
|
21904
21904
|
return d(S, y);
|
|
@@ -24311,8 +24311,8 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24311
24311
|
}
|
|
24312
24312
|
const S = s ? function() {
|
|
24313
24313
|
const { state: T } = n, A = T ? T() : {};
|
|
24314
|
-
this.$patch((
|
|
24315
|
-
Co(
|
|
24314
|
+
this.$patch((P) => {
|
|
24315
|
+
Co(P, A);
|
|
24316
24316
|
});
|
|
24317
24317
|
} : (
|
|
24318
24318
|
/* istanbul ignore next */
|
|
@@ -24328,7 +24328,7 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24328
24328
|
return O[my] = T, O;
|
|
24329
24329
|
const A = function() {
|
|
24330
24330
|
lh(i);
|
|
24331
|
-
const
|
|
24331
|
+
const P = Array.from(arguments), N = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
24332
24332
|
function ee(H) {
|
|
24333
24333
|
N.add(H);
|
|
24334
24334
|
}
|
|
@@ -24336,7 +24336,7 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24336
24336
|
J.add(H);
|
|
24337
24337
|
}
|
|
24338
24338
|
tu(h, {
|
|
24339
|
-
args:
|
|
24339
|
+
args: P,
|
|
24340
24340
|
name: A[my],
|
|
24341
24341
|
store: x,
|
|
24342
24342
|
after: ee,
|
|
@@ -24344,7 +24344,7 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24344
24344
|
});
|
|
24345
24345
|
let V;
|
|
24346
24346
|
try {
|
|
24347
|
-
V = O.apply(this && this.$id === e ? this : x,
|
|
24347
|
+
V = O.apply(this && this.$id === e ? this : x, P);
|
|
24348
24348
|
} catch (H) {
|
|
24349
24349
|
throw tu(J, H), H;
|
|
24350
24350
|
}
|
|
@@ -24364,7 +24364,7 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24364
24364
|
$patch: w,
|
|
24365
24365
|
$reset: S,
|
|
24366
24366
|
$subscribe(O, T = {}) {
|
|
24367
|
-
const A = ix(d, O, T.detached, () =>
|
|
24367
|
+
const A = ix(d, O, T.detached, () => P()), P = r.run(() => st(() => i.state.value[e], (N) => {
|
|
24368
24368
|
(T.flush === "sync" ? c : u) && O({
|
|
24369
24369
|
storeId: e,
|
|
24370
24370
|
type: As.direct,
|
|
@@ -24411,8 +24411,8 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24411
24411
|
}), G.env.NODE_ENV !== "production" && (x._hotUpdate = na((O) => {
|
|
24412
24412
|
x._hotUpdating = !0, O._hmrPayload.state.forEach((T) => {
|
|
24413
24413
|
if (T in x.$state) {
|
|
24414
|
-
const A = O.$state[T],
|
|
24415
|
-
typeof A == "object" && _l(A) && _l(
|
|
24414
|
+
const A = O.$state[T], P = x.$state[T];
|
|
24415
|
+
typeof A == "object" && _l(A) && _l(P) ? WA(A, P) : O.$state[T] = P;
|
|
24416
24416
|
}
|
|
24417
24417
|
x[T] = lr(O.$state, T);
|
|
24418
24418
|
}), Object.keys(x.$state).forEach((T) => {
|
|
@@ -24426,12 +24426,12 @@ function vC(e, t, n = {}, i, o, s) {
|
|
|
24426
24426
|
C(A, T);
|
|
24427
24427
|
}
|
|
24428
24428
|
for (const T in O._hmrPayload.getters) {
|
|
24429
|
-
const A = O._hmrPayload.getters[T],
|
|
24429
|
+
const A = O._hmrPayload.getters[T], P = s ? (
|
|
24430
24430
|
// special handling of options api
|
|
24431
24431
|
U(() => (lh(i), A.call(x, x)))
|
|
24432
24432
|
) : A;
|
|
24433
24433
|
x[T] = //
|
|
24434
|
-
|
|
24434
|
+
P;
|
|
24435
24435
|
}
|
|
24436
24436
|
Object.keys(x._hmrPayload.getters).forEach((T) => {
|
|
24437
24437
|
T in O._hmrPayload.getters || delete x[T];
|
|
@@ -24650,7 +24650,7 @@ const DS = /* @__PURE__ */ Ll("permissionStore", () => {
|
|
|
24650
24650
|
}
|
|
24651
24651
|
}, m = (N) => l(N, "scene_hub"), y = (N) => l(N, "review_scene"), { tooltip: w, copyToClipboard: S } = hS(a.value.scene_hub || "", void 0, !0), _ = (N) => {
|
|
24652
24652
|
S();
|
|
24653
|
-
}, C = (N) => n(N), R = (N) => l(N, "review"), E = (N) => l(N, "update"), x = (N) => l(N, "woohoo"),
|
|
24653
|
+
}, C = (N) => n(N), R = (N) => l(N, "review"), E = (N) => l(N, "update"), x = (N) => l(N, "woohoo"), I = (N) => u(), k = (N) => c(), O = (N) => d(N, t), T = (N) => p(N, t), A = (N) => h(N, t), P = U(() => {
|
|
24654
24654
|
let N = [];
|
|
24655
24655
|
return !s.value.scene_id && e.value.optionBlock && N.push(...e.value.optionBlock), Array.isArray(e.value.optionBlock) && e.value.optionBlock.length ? e.value.optionBlock : [
|
|
24656
24656
|
{
|
|
@@ -24754,7 +24754,7 @@ const DS = /* @__PURE__ */ Ll("permissionStore", () => {
|
|
|
24754
24754
|
id: "delete-rendition",
|
|
24755
24755
|
label: "Delete rendition",
|
|
24756
24756
|
icon: "Clapperboard",
|
|
24757
|
-
action:
|
|
24757
|
+
action: I,
|
|
24758
24758
|
hide: !r.value.canDeleteRendition,
|
|
24759
24759
|
type: "icon"
|
|
24760
24760
|
},
|
|
@@ -24816,7 +24816,7 @@ const DS = /* @__PURE__ */ Ll("permissionStore", () => {
|
|
|
24816
24816
|
archiveItem: d,
|
|
24817
24817
|
deleteItem: h,
|
|
24818
24818
|
unArchiveItem: p,
|
|
24819
|
-
options:
|
|
24819
|
+
options: P
|
|
24820
24820
|
};
|
|
24821
24821
|
};
|
|
24822
24822
|
function Mi(e) {
|
|
@@ -24995,13 +24995,13 @@ const $h = (e) => {
|
|
|
24995
24995
|
var A;
|
|
24996
24996
|
return (A = o.user) == null ? void 0 : A.name;
|
|
24997
24997
|
}), m = U(() => u.value ? Y5(u.value, "HH:mm") : ""), y = U(() => u.value ? `(${Z5(u.value)})` : ""), w = async () => {
|
|
24998
|
-
var A,
|
|
24998
|
+
var A, P, N;
|
|
24999
24999
|
if (o.apiUpdateFunction)
|
|
25000
25000
|
try {
|
|
25001
25001
|
const J = await o.apiUpdateFunction(o.user.id);
|
|
25002
25002
|
if (!J)
|
|
25003
25003
|
throw new Error("No data returned from API");
|
|
25004
|
-
(A = J.private_info) != null && A.is_offline ? l.value = "offline" : (
|
|
25004
|
+
(A = J.private_info) != null && A.is_offline ? l.value = "offline" : (P = J.private_info) != null && P.last_active ? l.value = "active" : l.value = "away", (N = J.private_info) != null && N.timezone && (u.value = J.private_info.timezone), s("dataUpdated", J);
|
|
25005
25005
|
} catch (J) {
|
|
25006
25006
|
console.error("Failed to fetch user data:", J);
|
|
25007
25007
|
} finally {
|
|
@@ -25012,21 +25012,21 @@ const $h = (e) => {
|
|
|
25012
25012
|
}, _ = () => {
|
|
25013
25013
|
d.value !== null && (clearInterval(d.value), d.value = null);
|
|
25014
25014
|
}, C = U(() => {
|
|
25015
|
-
const A = globalThis.location.origin,
|
|
25015
|
+
const A = globalThis.location.origin, P = Bn.getInstance().getItem("ws.code");
|
|
25016
25016
|
return to({
|
|
25017
25017
|
type: "people_insight",
|
|
25018
|
-
config: { ws_code:
|
|
25018
|
+
config: { ws_code: P, baseDomain: A, user_id: "" }
|
|
25019
25019
|
}).url;
|
|
25020
25020
|
}), { copyToClipboard: R, tooltip: E } = hS(
|
|
25021
25021
|
C.value,
|
|
25022
25022
|
() => s("copyLink", o.user.id)
|
|
25023
|
-
), x = jA(), { openPeopleInsight:
|
|
25023
|
+
), x = jA(), { openPeopleInsight: I } = x, k = (A) => {
|
|
25024
25024
|
if (A.ctrlKey || A.metaKey) {
|
|
25025
25025
|
window.open(C.value, "_blank");
|
|
25026
25026
|
return;
|
|
25027
25027
|
}
|
|
25028
25028
|
try {
|
|
25029
|
-
|
|
25029
|
+
I(String(o.user.id));
|
|
25030
25030
|
} catch {
|
|
25031
25031
|
window.open(C.value, "_blank");
|
|
25032
25032
|
}
|
|
@@ -25049,7 +25049,7 @@ const $h = (e) => {
|
|
|
25049
25049
|
color: o.user.color,
|
|
25050
25050
|
size: 98
|
|
25051
25051
|
}));
|
|
25052
|
-
return (A,
|
|
25052
|
+
return (A, P) => (W(), le("div", {
|
|
25053
25053
|
class: j([A.$style["mini-people-card"], { [A.$style.loading]: c.value }, "bg-skeleton"])
|
|
25054
25054
|
}, [
|
|
25055
25055
|
fe("div", {
|
|
@@ -25378,7 +25378,7 @@ const $h = (e) => {
|
|
|
25378
25378
|
E === !1 && (o.value = !1);
|
|
25379
25379
|
}
|
|
25380
25380
|
), (E, x) => {
|
|
25381
|
-
const
|
|
25381
|
+
const I = Al("tooltip");
|
|
25382
25382
|
return W(), le("div", {
|
|
25383
25383
|
class: j([E.$style["list-item"], h.value]),
|
|
25384
25384
|
role: "listitem",
|
|
@@ -25440,7 +25440,7 @@ const $h = (e) => {
|
|
|
25440
25440
|
]),
|
|
25441
25441
|
_: 1
|
|
25442
25442
|
})), [
|
|
25443
|
-
[
|
|
25443
|
+
[I, f.value]
|
|
25444
25444
|
]),
|
|
25445
25445
|
Je((W(), Ge(ft, {
|
|
25446
25446
|
variant: ["danger", "primary", "icon"],
|
|
@@ -25455,7 +25455,7 @@ const $h = (e) => {
|
|
|
25455
25455
|
]),
|
|
25456
25456
|
_: 1
|
|
25457
25457
|
})), [
|
|
25458
|
-
[
|
|
25458
|
+
[I, p.value]
|
|
25459
25459
|
])
|
|
25460
25460
|
], 2)) : qe("", !0)
|
|
25461
25461
|
])
|
|
@@ -25818,7 +25818,7 @@ const $h = (e) => {
|
|
|
25818
25818
|
const Ce = {
|
|
25819
25819
|
[o.ARROW_DOWN]: () => C(K),
|
|
25820
25820
|
[o.ARROW_UP]: () => R(K),
|
|
25821
|
-
[o.ENTER]: () =>
|
|
25821
|
+
[o.ENTER]: () => I(K),
|
|
25822
25822
|
[o.ESCAPE]: () => k(K),
|
|
25823
25823
|
[o.TAB]: () => O(K)
|
|
25824
25824
|
}[K.key];
|
|
@@ -25842,20 +25842,20 @@ const $h = (e) => {
|
|
|
25842
25842
|
inline: "nearest"
|
|
25843
25843
|
});
|
|
25844
25844
|
});
|
|
25845
|
-
},
|
|
25845
|
+
}, I = (K) => {
|
|
25846
25846
|
if (K.preventDefault(), l.value >= 0 && l.value < p.value.length) {
|
|
25847
25847
|
const Ce = p.value[l.value];
|
|
25848
25848
|
T(Ce);
|
|
25849
25849
|
}
|
|
25850
25850
|
}, k = (K) => {
|
|
25851
|
-
K.preventDefault(),
|
|
25851
|
+
K.preventDefault(), P();
|
|
25852
25852
|
}, O = (K) => {
|
|
25853
|
-
l.value >= 0 && (K.preventDefault(),
|
|
25853
|
+
l.value >= 0 && (K.preventDefault(), I(K));
|
|
25854
25854
|
}, T = (K) => {
|
|
25855
|
-
!K || K.disabled || (r("select", K), l.value = -1,
|
|
25855
|
+
!K || K.disabled || (r("select", K), l.value = -1, P());
|
|
25856
25856
|
}, A = (K) => {
|
|
25857
25857
|
K >= 0 && K < p.value.length && (l.value = K);
|
|
25858
|
-
},
|
|
25858
|
+
}, P = () => {
|
|
25859
25859
|
r("close");
|
|
25860
25860
|
}, N = () => {
|
|
25861
25861
|
if (!m.value || !c.value) return;
|
|
@@ -25891,7 +25891,7 @@ const $h = (e) => {
|
|
|
25891
25891
|
query: a,
|
|
25892
25892
|
filteredOptions: p,
|
|
25893
25893
|
selectedIndex: l,
|
|
25894
|
-
closeDropdown:
|
|
25894
|
+
closeDropdown: P,
|
|
25895
25895
|
clearSearch: () => {
|
|
25896
25896
|
a.value = "";
|
|
25897
25897
|
}
|
|
@@ -26113,7 +26113,7 @@ const $h = (e) => {
|
|
|
26113
26113
|
...o,
|
|
26114
26114
|
updateRowData: u,
|
|
26115
26115
|
value: o.value
|
|
26116
|
-
}),
|
|
26116
|
+
}), I = _i("bulkUpdate", !1), { apiServices: k } = di(!I, o), O = _i("workspaceId"), T = async (V = 1, H = "", K = !1) => {
|
|
26117
26117
|
var ve, Ce, ae, ie, X;
|
|
26118
26118
|
if (!k.value || !o.id && !o.ids)
|
|
26119
26119
|
throw console.error("API service or item identifiers are undefined"), new Error("API service or item identifiers are undefined");
|
|
@@ -26135,7 +26135,7 @@ const $h = (e) => {
|
|
|
26135
26135
|
}
|
|
26136
26136
|
}, A = () => {
|
|
26137
26137
|
!d.value && p.value && T(f.value + 1, y.value, !0);
|
|
26138
|
-
},
|
|
26138
|
+
}, P = Mo(async (V) => {
|
|
26139
26139
|
y.value = V, await T(1, V, !1);
|
|
26140
26140
|
}, Bh), N = () => T(1, y.value, !1), J = U(Hh);
|
|
26141
26141
|
hn(() => {
|
|
@@ -26187,7 +26187,7 @@ const $h = (e) => {
|
|
|
26187
26187
|
onSelect: H[0] || (H[0] = (K) => {
|
|
26188
26188
|
z(C)(K), l("start-update");
|
|
26189
26189
|
}),
|
|
26190
|
-
onSearch: z(
|
|
26190
|
+
onSearch: z(P),
|
|
26191
26191
|
onLoadMore: A
|
|
26192
26192
|
}), Th({
|
|
26193
26193
|
"extra-item": me(() => [
|
|
@@ -26560,7 +26560,7 @@ const $h = (e) => {
|
|
|
26560
26560
|
const X = [];
|
|
26561
26561
|
for (let he = 0; he < 6; he++) X.push(Ce.slice(he * 7, he * 7 + 7));
|
|
26562
26562
|
return X;
|
|
26563
|
-
}),
|
|
26563
|
+
}), I = U(() => {
|
|
26564
26564
|
const V = vu.weekdays(i.weekdayLabelStyle || "short", {
|
|
26565
26565
|
locale: i.locale || "en-US"
|
|
26566
26566
|
});
|
|
@@ -26591,7 +26591,7 @@ const $h = (e) => {
|
|
|
26591
26591
|
const K = (C.value ? it.fromISO(C.value, { zone: i.timezone }) : c.value).weekday % 7, ve = V ? 6 - K : -K;
|
|
26592
26592
|
T(ve);
|
|
26593
26593
|
}
|
|
26594
|
-
function
|
|
26594
|
+
function P(V) {
|
|
26595
26595
|
switch (V.key) {
|
|
26596
26596
|
case "ArrowLeft":
|
|
26597
26597
|
V.preventDefault(), T(-1);
|
|
@@ -26698,13 +26698,13 @@ const $h = (e) => {
|
|
|
26698
26698
|
role: "grid",
|
|
26699
26699
|
"aria-label": u.value,
|
|
26700
26700
|
tabindex: "0",
|
|
26701
|
-
onKeydown:
|
|
26701
|
+
onKeydown: P
|
|
26702
26702
|
}, [
|
|
26703
26703
|
fe("div", {
|
|
26704
26704
|
class: j([V.$style["arbo-calendar-header"], V.$style["arbo-calendar-week"]]),
|
|
26705
26705
|
role: "row"
|
|
26706
26706
|
}, [
|
|
26707
|
-
(W(!0), le(At, null, An(
|
|
26707
|
+
(W(!0), le(At, null, An(I.value, (K) => (W(), le("div", {
|
|
26708
26708
|
key: K,
|
|
26709
26709
|
class: j(V.$style["arbo-calendar-weekday"]),
|
|
26710
26710
|
role: "columnheader"
|
|
@@ -26825,34 +26825,34 @@ const $h = (e) => {
|
|
|
26825
26825
|
setup(e, { expose: t, emit: n }) {
|
|
26826
26826
|
const i = e, o = U(() => {
|
|
26827
26827
|
if (i.monthLabels && i.monthLabels.length === 12) return i.monthLabels;
|
|
26828
|
-
const
|
|
26828
|
+
const P = i.locale || "en-US", N = i.monthLabelStyle || "short", J = new Intl.DateTimeFormat(P, { month: N, timeZone: "UTC" });
|
|
26829
26829
|
return Array.from({ length: 12 }, (Y, V) => J.format(new Date(Date.UTC(2020, V, 1))));
|
|
26830
26830
|
}), s = n, r = B(i.year), a = B(i.month), l = B(i.year);
|
|
26831
26831
|
st(
|
|
26832
26832
|
() => i.year,
|
|
26833
|
-
(
|
|
26834
|
-
|
|
26833
|
+
(P) => {
|
|
26834
|
+
P !== r.value && (r.value = P, l.value = P);
|
|
26835
26835
|
}
|
|
26836
26836
|
), st(
|
|
26837
26837
|
() => i.month,
|
|
26838
|
-
(
|
|
26839
|
-
|
|
26838
|
+
(P) => {
|
|
26839
|
+
P !== a.value && (a.value = P);
|
|
26840
26840
|
}
|
|
26841
26841
|
);
|
|
26842
26842
|
const u = B("days");
|
|
26843
|
-
function c(
|
|
26844
|
-
u.value !==
|
|
26843
|
+
function c(P) {
|
|
26844
|
+
u.value !== P && (u.value = P, s("mode-change", P));
|
|
26845
26845
|
}
|
|
26846
26846
|
const d = U(() => i.minYear), h = U(() => i.maxYear), f = U(() => {
|
|
26847
|
-
const
|
|
26848
|
-
return l.value - l.value %
|
|
26847
|
+
const P = i.yearSpan;
|
|
26848
|
+
return l.value - l.value % P;
|
|
26849
26849
|
}), p = U(() => f.value + i.yearSpan - 1);
|
|
26850
26850
|
function m() {
|
|
26851
|
-
const
|
|
26851
|
+
const P = i.yearSpan, N = f.value - P;
|
|
26852
26852
|
N >= d.value && (l.value = N);
|
|
26853
26853
|
}
|
|
26854
26854
|
function y() {
|
|
26855
|
-
const
|
|
26855
|
+
const P = i.yearSpan, N = f.value + P;
|
|
26856
26856
|
N <= h.value && (l.value = N);
|
|
26857
26857
|
}
|
|
26858
26858
|
const w = U(
|
|
@@ -26860,11 +26860,11 @@ const $h = (e) => {
|
|
|
26860
26860
|
), S = U(
|
|
26861
26861
|
() => p.value + i.yearSpan > h.value
|
|
26862
26862
|
), _ = U(() => {
|
|
26863
|
-
const
|
|
26864
|
-
return Math.ceil(
|
|
26863
|
+
const P = i.yearSpan;
|
|
26864
|
+
return Math.ceil(P / 3);
|
|
26865
26865
|
});
|
|
26866
|
-
function C(
|
|
26867
|
-
const J = f.value + (
|
|
26866
|
+
function C(P) {
|
|
26867
|
+
const J = f.value + (P - 1) * 3;
|
|
26868
26868
|
return Array.from({ length: 3 }, (ee, Y) => J + Y).filter((ee) => ee <= p.value);
|
|
26869
26869
|
}
|
|
26870
26870
|
function R() {
|
|
@@ -26873,17 +26873,17 @@ const $h = (e) => {
|
|
|
26873
26873
|
function E() {
|
|
26874
26874
|
u.value === "years" ? c("days") : c("years");
|
|
26875
26875
|
}
|
|
26876
|
-
function x(
|
|
26877
|
-
r.value =
|
|
26876
|
+
function x(P) {
|
|
26877
|
+
r.value = P, l.value = P, s("update:year", P), s("year-selected", P), c("months");
|
|
26878
26878
|
}
|
|
26879
|
-
function P
|
|
26880
|
-
a.value =
|
|
26879
|
+
function I(P) {
|
|
26880
|
+
a.value = P, s("update:month", P), s("month-selected", P), c("days");
|
|
26881
26881
|
}
|
|
26882
26882
|
function k() {
|
|
26883
26883
|
if (u.value === "days") {
|
|
26884
|
-
let
|
|
26885
|
-
if (N < 1 && (N = 12,
|
|
26886
|
-
r.value =
|
|
26884
|
+
let P = r.value, N = a.value - 1;
|
|
26885
|
+
if (N < 1 && (N = 12, P--), P < d.value) return;
|
|
26886
|
+
r.value = P, a.value = N, s("update:year", P), s("update:month", N);
|
|
26887
26887
|
} else if (u.value === "months") {
|
|
26888
26888
|
if (r.value - 1 < d.value) return;
|
|
26889
26889
|
r.value--, s("update:year", r.value);
|
|
@@ -26891,9 +26891,9 @@ const $h = (e) => {
|
|
|
26891
26891
|
}
|
|
26892
26892
|
function O() {
|
|
26893
26893
|
if (u.value === "days") {
|
|
26894
|
-
let
|
|
26895
|
-
if (N > 12 && (N = 1,
|
|
26896
|
-
r.value =
|
|
26894
|
+
let P = r.value, N = a.value + 1;
|
|
26895
|
+
if (N > 12 && (N = 1, P++), P > h.value) return;
|
|
26896
|
+
r.value = P, a.value = N, s("update:year", P), s("update:month", N);
|
|
26897
26897
|
} else if (u.value === "months") {
|
|
26898
26898
|
if (r.value + 1 > h.value) return;
|
|
26899
26899
|
r.value++, s("update:year", r.value);
|
|
@@ -26901,21 +26901,21 @@ const $h = (e) => {
|
|
|
26901
26901
|
}
|
|
26902
26902
|
const T = U(() => u.value === "days" ? r.value === d.value && a.value === 1 : u.value === "months" ? r.value - 1 < d.value : w.value), A = U(() => u.value === "days" ? r.value === h.value && a.value === 12 : u.value === "months" ? r.value + 1 > h.value : S.value);
|
|
26903
26903
|
return t({
|
|
26904
|
-
setNavigation: (
|
|
26905
|
-
r.value =
|
|
26904
|
+
setNavigation: (P, N) => {
|
|
26905
|
+
r.value = P, a.value = N;
|
|
26906
26906
|
}
|
|
26907
|
-
}), (
|
|
26908
|
-
class: j([
|
|
26907
|
+
}), (P, N) => (W(), le("div", {
|
|
26908
|
+
class: j([P.$style["cal-nav-wrapper"]])
|
|
26909
26909
|
}, [
|
|
26910
|
-
Tt(
|
|
26910
|
+
Tt(P.$slots, "selection"),
|
|
26911
26911
|
u.value === "days" ? (W(), le("div", {
|
|
26912
26912
|
key: 0,
|
|
26913
|
-
class: j(
|
|
26913
|
+
class: j(P.$style["cal-nav-bar"]),
|
|
26914
26914
|
"aria-label": "Calendar navigation"
|
|
26915
26915
|
}, [
|
|
26916
26916
|
re(ft, {
|
|
26917
26917
|
variant: "tertiary",
|
|
26918
|
-
class: j([
|
|
26918
|
+
class: j([P.$style["cal-nav-btn"], P.$style.prev]),
|
|
26919
26919
|
"aria-label": "Previous",
|
|
26920
26920
|
disabled: T.value,
|
|
26921
26921
|
label: "",
|
|
@@ -26931,7 +26931,7 @@ const $h = (e) => {
|
|
|
26931
26931
|
_: 1
|
|
26932
26932
|
}, 8, ["class", "disabled"]),
|
|
26933
26933
|
fe("div", {
|
|
26934
|
-
class: j(
|
|
26934
|
+
class: j(P.$style["cal-nav-center"])
|
|
26935
26935
|
}, [
|
|
26936
26936
|
re(ft, {
|
|
26937
26937
|
variant: "secondary",
|
|
@@ -26954,7 +26954,7 @@ const $h = (e) => {
|
|
|
26954
26954
|
], 2),
|
|
26955
26955
|
re(ft, {
|
|
26956
26956
|
variant: "tertiary",
|
|
26957
|
-
class: j([
|
|
26957
|
+
class: j([P.$style["cal-nav-btn"], P.$style.next]),
|
|
26958
26958
|
"aria-label": "Next",
|
|
26959
26959
|
disabled: A.value,
|
|
26960
26960
|
label: "",
|
|
@@ -26972,14 +26972,14 @@ const $h = (e) => {
|
|
|
26972
26972
|
], 2)) : qe("", !0),
|
|
26973
26973
|
u.value === "years" ? (W(), le("div", {
|
|
26974
26974
|
key: 1,
|
|
26975
|
-
class: j(
|
|
26975
|
+
class: j(P.$style["year-grid"])
|
|
26976
26976
|
}, [
|
|
26977
26977
|
fe("div", {
|
|
26978
|
-
class: j(
|
|
26978
|
+
class: j(P.$style["year-grid-header"])
|
|
26979
26979
|
}, [
|
|
26980
26980
|
re(ft, {
|
|
26981
26981
|
variant: "tertiary",
|
|
26982
|
-
class: j([
|
|
26982
|
+
class: j([P.$style["cal-nav-btn"], P.$style.prev]),
|
|
26983
26983
|
"aria-label": "Next",
|
|
26984
26984
|
disabled: w.value,
|
|
26985
26985
|
"prefix-icon": "AnglesRight",
|
|
@@ -26996,11 +26996,11 @@ const $h = (e) => {
|
|
|
26996
26996
|
_: 1
|
|
26997
26997
|
}, 8, ["class", "disabled"]),
|
|
26998
26998
|
fe("div", {
|
|
26999
|
-
class: j(
|
|
26999
|
+
class: j(P.$style["range-label"])
|
|
27000
27000
|
}, yt(f.value) + " - " + yt(p.value), 3),
|
|
27001
27001
|
re(ft, {
|
|
27002
27002
|
variant: "tertiary",
|
|
27003
|
-
class: j([
|
|
27003
|
+
class: j([P.$style["cal-nav-btn"], P.$style.next]),
|
|
27004
27004
|
"aria-label": "Next",
|
|
27005
27005
|
disabled: S.value,
|
|
27006
27006
|
"prefix-icon": "AnglesRight",
|
|
@@ -27018,19 +27018,19 @@ const $h = (e) => {
|
|
|
27018
27018
|
}, 8, ["class", "disabled"])
|
|
27019
27019
|
], 2),
|
|
27020
27020
|
fe("div", {
|
|
27021
|
-
class: j(
|
|
27021
|
+
class: j(P.$style["year-grid-body"]),
|
|
27022
27022
|
role: "grid"
|
|
27023
27023
|
}, [
|
|
27024
27024
|
(W(!0), le(At, null, An(_.value, (J) => (W(), le("div", {
|
|
27025
27025
|
key: "yr-row-" + J,
|
|
27026
|
-
class: j(
|
|
27026
|
+
class: j(P.$style["year-grid-row"])
|
|
27027
27027
|
}, [
|
|
27028
27028
|
(W(!0), le(At, null, An(C(J), (ee) => (W(), le("div", {
|
|
27029
27029
|
key: ee,
|
|
27030
27030
|
class: j([
|
|
27031
|
-
|
|
27031
|
+
P.$style["year-cell"],
|
|
27032
27032
|
{
|
|
27033
|
-
[
|
|
27033
|
+
[P.$style.selected]: ee === r.value
|
|
27034
27034
|
}
|
|
27035
27035
|
]),
|
|
27036
27036
|
onClick: (Y) => x(ee)
|
|
@@ -27039,29 +27039,29 @@ const $h = (e) => {
|
|
|
27039
27039
|
], 2)
|
|
27040
27040
|
], 2)) : u.value === "months" ? (W(), le("div", {
|
|
27041
27041
|
key: 2,
|
|
27042
|
-
class: j(
|
|
27042
|
+
class: j(P.$style["month-grid"]),
|
|
27043
27043
|
"aria-label": "Select month"
|
|
27044
27044
|
}, [
|
|
27045
27045
|
fe("div", {
|
|
27046
|
-
class: j(
|
|
27046
|
+
class: j(P.$style.months)
|
|
27047
27047
|
}, [
|
|
27048
27048
|
(W(!0), le(At, null, An(o.value, (J, ee) => (W(), le("div", {
|
|
27049
27049
|
key: J,
|
|
27050
27050
|
variant: ee + 1 === a.value ? "primary" : "text",
|
|
27051
27051
|
class: j([
|
|
27052
|
-
|
|
27052
|
+
P.$style["month-cell"],
|
|
27053
27053
|
{
|
|
27054
|
-
[
|
|
27054
|
+
[P.$style.selected]: ee + 1 === a.value
|
|
27055
27055
|
}
|
|
27056
27056
|
]),
|
|
27057
|
-
onClick: (Y) =>
|
|
27057
|
+
onClick: (Y) => I(ee + 1)
|
|
27058
27058
|
}, yt(J), 11, RK))), 128))
|
|
27059
27059
|
], 2)
|
|
27060
27060
|
], 2)) : (W(), le("div", {
|
|
27061
27061
|
key: 3,
|
|
27062
|
-
class: j(
|
|
27062
|
+
class: j(P.$style["days-slot"])
|
|
27063
27063
|
}, [
|
|
27064
|
-
Tt(
|
|
27064
|
+
Tt(P.$slots, "default", {
|
|
27065
27065
|
year: r.value,
|
|
27066
27066
|
month: a.value,
|
|
27067
27067
|
mode: u.value
|
|
@@ -27184,8 +27184,8 @@ const kK = {
|
|
|
27184
27184
|
wrapperRef: a,
|
|
27185
27185
|
active: p
|
|
27186
27186
|
})), { argsMain: y, isHover: w, isFocus: S } = Mi(m), _ = (E) => {
|
|
27187
|
-
var
|
|
27188
|
-
const x = (
|
|
27187
|
+
var I;
|
|
27188
|
+
const x = (I = E.clipboardData) == null ? void 0 : I.getData("text/plain");
|
|
27189
27189
|
x && (c.value = x.trim());
|
|
27190
27190
|
}, C = () => {
|
|
27191
27191
|
d(), s("clear");
|
|
@@ -27241,7 +27241,7 @@ const kK = {
|
|
|
27241
27241
|
ref_key: "inputRef",
|
|
27242
27242
|
ref: r,
|
|
27243
27243
|
type: "text",
|
|
27244
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
27244
|
+
"onUpdate:modelValue": x[0] || (x[0] = (I) => ln(c) ? c.value = I : null),
|
|
27245
27245
|
onPaste: Kt(_, ["prevent"]),
|
|
27246
27246
|
placeholder: o.placeholder,
|
|
27247
27247
|
class: j([E.$style["date-input"]])
|
|
@@ -27389,7 +27389,7 @@ const kK = {
|
|
|
27389
27389
|
}, x = (ie, X) => {
|
|
27390
27390
|
const he = ie.startOf("day"), Le = X.startOf("day");
|
|
27391
27391
|
return he < Le ? -1 : he > Le ? 1 : 0;
|
|
27392
|
-
},
|
|
27392
|
+
}, I = (ie) => {
|
|
27393
27393
|
if (!ie) {
|
|
27394
27394
|
c.end = !1, C();
|
|
27395
27395
|
return;
|
|
@@ -27419,7 +27419,7 @@ const kK = {
|
|
|
27419
27419
|
}, T = () => {
|
|
27420
27420
|
J();
|
|
27421
27421
|
}, A = U(() => d.isSelectingStart || d.isSelectingEnd);
|
|
27422
|
-
function
|
|
27422
|
+
function P() {
|
|
27423
27423
|
o.disabled || o.readOnly || (S(), d.isSelectingStart = !0, d.isSelectingEnd = !1);
|
|
27424
27424
|
}
|
|
27425
27425
|
function N() {
|
|
@@ -27470,7 +27470,7 @@ const kK = {
|
|
|
27470
27470
|
}
|
|
27471
27471
|
), t({
|
|
27472
27472
|
resetCalendarLogic: ve,
|
|
27473
|
-
openStart:
|
|
27473
|
+
openStart: P,
|
|
27474
27474
|
openEnd: N,
|
|
27475
27475
|
closePicker: J,
|
|
27476
27476
|
clearAll: T,
|
|
@@ -27484,7 +27484,7 @@ const kK = {
|
|
|
27484
27484
|
}),
|
|
27485
27485
|
focus: () => {
|
|
27486
27486
|
var ie;
|
|
27487
|
-
d.startDate || d.endDate ? d.startDate ?
|
|
27487
|
+
d.startDate || d.endDate ? d.startDate ? P() : N() : (P(), (ie = s.value) == null || ie.focus());
|
|
27488
27488
|
}
|
|
27489
27489
|
});
|
|
27490
27490
|
const ae = B(null);
|
|
@@ -27522,7 +27522,7 @@ const kK = {
|
|
|
27522
27522
|
placeholder: o.startPlaceholder,
|
|
27523
27523
|
timezone: o.timezone,
|
|
27524
27524
|
active: z(d).isSelectingStart,
|
|
27525
|
-
onClick:
|
|
27525
|
+
onClick: P,
|
|
27526
27526
|
onClear: k,
|
|
27527
27527
|
onComplete: E,
|
|
27528
27528
|
onInvalid: X[0] || (X[0] = (he) => c.start = !0),
|
|
@@ -27538,7 +27538,7 @@ const kK = {
|
|
|
27538
27538
|
onClick: N,
|
|
27539
27539
|
onClear: O,
|
|
27540
27540
|
disabled: o.disabled,
|
|
27541
|
-
onComplete:
|
|
27541
|
+
onComplete: I,
|
|
27542
27542
|
onInvalid: X[1] || (X[1] = (he) => c.end = !0),
|
|
27543
27543
|
readOnly: o.readOnly,
|
|
27544
27544
|
isMultipleDate: z(f)
|
|
@@ -27595,7 +27595,7 @@ const kK = {
|
|
|
27595
27595
|
emits: ["updated"],
|
|
27596
27596
|
setup(e, { emit: t }) {
|
|
27597
27597
|
const n = t, i = e, o = _i("bulkUpdate", !1), { apiServices: s } = di(!o, i), r = async (R) => {
|
|
27598
|
-
var x,
|
|
27598
|
+
var x, I, k;
|
|
27599
27599
|
C.value = !0;
|
|
27600
27600
|
let E = {
|
|
27601
27601
|
workspaceId: i.workspaceId,
|
|
@@ -27603,7 +27603,7 @@ const kK = {
|
|
|
27603
27603
|
startDate: void 0,
|
|
27604
27604
|
dueDate: void 0
|
|
27605
27605
|
};
|
|
27606
|
-
"start" in R && (E.startDate = R.start ? Y_(R.start) : null), "end" in R && (E.dueDate = R.end ? Y_(R.end) : null), await ((
|
|
27606
|
+
"start" in R && (E.startDate = R.start ? Y_(R.start) : null), "end" in R && (E.dueDate = R.end ? Y_(R.end) : null), await ((I = (x = s.value) == null ? void 0 : x.changeDate) == null ? void 0 : I.call(x, E)), n("updated", {
|
|
27607
27607
|
workspaceId: i.workspaceId,
|
|
27608
27608
|
itemIds: i.ids,
|
|
27609
27609
|
data: E
|
|
@@ -27622,10 +27622,10 @@ const kK = {
|
|
|
27622
27622
|
}, c = () => {
|
|
27623
27623
|
var E, x;
|
|
27624
27624
|
if (i.rowSelected.some(
|
|
27625
|
-
(
|
|
27625
|
+
(I) => I.dateRange && (I.dateRange[0] !== null || I.dateRange[1] !== null)
|
|
27626
27626
|
)) {
|
|
27627
|
-
const
|
|
27628
|
-
if (h.value =
|
|
27627
|
+
const I = d(0), k = d(1);
|
|
27628
|
+
if (h.value = I, f.value = k, I)
|
|
27629
27629
|
_.value[0] = null;
|
|
27630
27630
|
else {
|
|
27631
27631
|
const O = ((E = i.rowSelected[0].dateRange) == null ? void 0 : E[0]) ?? null;
|
|
@@ -27640,13 +27640,13 @@ const kK = {
|
|
|
27640
27640
|
} else
|
|
27641
27641
|
h.value = !1, f.value = !1, _.value = [null, null];
|
|
27642
27642
|
}, d = (R) => {
|
|
27643
|
-
const E = i.rowSelected.map((
|
|
27643
|
+
const E = i.rowSelected.map((I) => {
|
|
27644
27644
|
var k;
|
|
27645
|
-
return (k =
|
|
27645
|
+
return (k = I.dateRange) == null ? void 0 : k[R];
|
|
27646
27646
|
});
|
|
27647
|
-
return E.length === 0 ? !1 : new Set(E.map((
|
|
27647
|
+
return E.length === 0 ? !1 : new Set(E.map((I) => {
|
|
27648
27648
|
var k;
|
|
27649
|
-
return (k =
|
|
27649
|
+
return (k = I == null ? void 0 : I.getTime) == null ? void 0 : k.call(I);
|
|
27650
27650
|
})).size > 1;
|
|
27651
27651
|
}, h = B(!1), f = B(!1), p = B(null), { triggerRef: m, popupRef: y, hide: w, isVisible: S } = ai(), _ = B([null, null]);
|
|
27652
27652
|
st(
|
|
@@ -27918,15 +27918,15 @@ const kK = {
|
|
|
27918
27918
|
var x;
|
|
27919
27919
|
if (E.format_type === "dropdown" && E.format_value)
|
|
27920
27920
|
try {
|
|
27921
|
-
const
|
|
27922
|
-
if (Array.isArray(
|
|
27923
|
-
return
|
|
27921
|
+
const I = JSON.parse(E.format_value);
|
|
27922
|
+
if (Array.isArray(I))
|
|
27923
|
+
return I.map((k) => ({
|
|
27924
27924
|
label: k.name,
|
|
27925
27925
|
value: k.name,
|
|
27926
27926
|
id: k.name
|
|
27927
27927
|
}));
|
|
27928
|
-
} catch (
|
|
27929
|
-
console.error("Failed to parse dropdown options",
|
|
27928
|
+
} catch (I) {
|
|
27929
|
+
console.error("Failed to parse dropdown options", I);
|
|
27930
27930
|
}
|
|
27931
27931
|
return E.format_type == "number" && E.restricted_type == "exact" ? ((x = E.restricted_value) == null ? void 0 : x.split(",").map(
|
|
27932
27932
|
(k) => ({
|
|
@@ -27939,7 +27939,10 @@ const kK = {
|
|
|
27939
27939
|
var E;
|
|
27940
27940
|
return ((E = p.value.find((x) => x.value === o.value)) == null ? void 0 : E.label) || o.value || "Select one";
|
|
27941
27941
|
}), y = n, w = () => {
|
|
27942
|
-
y(
|
|
27942
|
+
y(
|
|
27943
|
+
"updateMetric",
|
|
27944
|
+
r.value === "rating" ? s.value == 0 ? null : s.value : o.value || null
|
|
27945
|
+
), C();
|
|
27943
27946
|
};
|
|
27944
27947
|
B(p.value);
|
|
27945
27948
|
const { triggerRef: S, popupRef: _, hide: C, isVisible: R } = ai({
|
|
@@ -27952,7 +27955,7 @@ const kK = {
|
|
|
27952
27955
|
o.value = null, s.value = 0;
|
|
27953
27956
|
}
|
|
27954
27957
|
}), (E, x) => {
|
|
27955
|
-
const
|
|
27958
|
+
const I = Al("tooltip");
|
|
27956
27959
|
return W(), le("div", {
|
|
27957
27960
|
class: j(E.$style["metric-editor"])
|
|
27958
27961
|
}, [
|
|
@@ -28020,7 +28023,7 @@ const kK = {
|
|
|
28020
28023
|
Je((W(), le("span", null, [
|
|
28021
28024
|
ut(yt(m.value || ""), 1)
|
|
28022
28025
|
])), [
|
|
28023
|
-
[
|
|
28026
|
+
[I, { content: m.value }]
|
|
28024
28027
|
])
|
|
28025
28028
|
]),
|
|
28026
28029
|
_: 1
|
|
@@ -28032,8 +28035,9 @@ const kK = {
|
|
|
28032
28035
|
re(ZA, {
|
|
28033
28036
|
config: i.config,
|
|
28034
28037
|
modelValue: o.value,
|
|
28035
|
-
"onUpdate:modelValue": x[2] || (x[2] = (k) => o.value = k)
|
|
28036
|
-
|
|
28038
|
+
"onUpdate:modelValue": x[2] || (x[2] = (k) => o.value = k),
|
|
28039
|
+
onChange: z(C)
|
|
28040
|
+
}, null, 8, ["config", "modelValue", "onChange"])
|
|
28037
28041
|
], 512)
|
|
28038
28042
|
])) : (W(), le("span", nq, "Formular")),
|
|
28039
28043
|
re(ft, { onHandleClick: w }, {
|
|
@@ -28151,7 +28155,7 @@ const kK = {
|
|
|
28151
28155
|
metricConfig: O
|
|
28152
28156
|
})) : []), s = B(o.value), r = e, a = _i("bulkUpdate", !1), { apiServices: l } = di(!a, r), u = t, c = B([]), d = B(null), h = (O) => {
|
|
28153
28157
|
var A;
|
|
28154
|
-
const T = o.value.findIndex((
|
|
28158
|
+
const T = o.value.findIndex((P) => P.id === O.id);
|
|
28155
28159
|
d.value = T, f(T), (A = c.value[T]) == null || A.show();
|
|
28156
28160
|
}, f = (O) => {
|
|
28157
28161
|
d.value = O, c.value.forEach((T, A) => {
|
|
@@ -28162,20 +28166,21 @@ const kK = {
|
|
|
28162
28166
|
}), C = () => {
|
|
28163
28167
|
p.value = "", c.value.forEach((O) => {
|
|
28164
28168
|
O == null || O.hide();
|
|
28165
|
-
}), S();
|
|
28169
|
+
}), d.value = null, S();
|
|
28166
28170
|
}, R = async (O) => {
|
|
28167
|
-
var
|
|
28171
|
+
var A;
|
|
28172
|
+
const T = O.value;
|
|
28168
28173
|
E.value = !0;
|
|
28169
28174
|
try {
|
|
28170
|
-
const
|
|
28175
|
+
const P = await ((A = l.value) == null ? void 0 : A.bulkUpdateMetric({
|
|
28171
28176
|
itemIds: r.ids,
|
|
28172
28177
|
metricId: O.id,
|
|
28173
|
-
value:
|
|
28178
|
+
value: T,
|
|
28174
28179
|
workspaceId: String(r.workspaceId)
|
|
28175
28180
|
}));
|
|
28176
|
-
console.log("Bulk metric update response:",
|
|
28177
|
-
} catch (
|
|
28178
|
-
console.error("Error during bulk metric update:",
|
|
28181
|
+
console.log("Bulk metric update response:", P);
|
|
28182
|
+
} catch (P) {
|
|
28183
|
+
console.error("Error during bulk metric update:", P);
|
|
28179
28184
|
}
|
|
28180
28185
|
u("update", O), C(), E.value = !1;
|
|
28181
28186
|
}, E = B(!1), x = B(null);
|
|
@@ -28186,12 +28191,12 @@ const kK = {
|
|
|
28186
28191
|
O && ((T = x.value) == null || T.focus());
|
|
28187
28192
|
}
|
|
28188
28193
|
);
|
|
28189
|
-
const
|
|
28190
|
-
|
|
28194
|
+
const I = B(!1), k = (O) => {
|
|
28195
|
+
I.value = !0, p.value = O, O ? s.value = o.value.filter(
|
|
28191
28196
|
(T) => T.label.toLowerCase().includes(O.toLowerCase())
|
|
28192
28197
|
) : s.value = o.value, setTimeout(() => {
|
|
28193
28198
|
rn(() => {
|
|
28194
|
-
|
|
28199
|
+
I.value = !1;
|
|
28195
28200
|
});
|
|
28196
28201
|
}, 300);
|
|
28197
28202
|
};
|
|
@@ -28221,7 +28226,7 @@ const kK = {
|
|
|
28221
28226
|
style: { display: "none", "border-radius": "4px" }
|
|
28222
28227
|
}, [
|
|
28223
28228
|
re(Nl, {
|
|
28224
|
-
loading:
|
|
28229
|
+
loading: I.value,
|
|
28225
28230
|
ref_key: "SearchListRef",
|
|
28226
28231
|
ref: x,
|
|
28227
28232
|
style: { width: "320px" },
|
|
@@ -28230,19 +28235,19 @@ const kK = {
|
|
|
28230
28235
|
onSearch: k,
|
|
28231
28236
|
onSelect: h
|
|
28232
28237
|
}, {
|
|
28233
|
-
item: me(({ item: A, index:
|
|
28238
|
+
item: me(({ item: A, index: P, getHighlightedLabel: N, selectedIndex: J }) => [
|
|
28234
28239
|
re(dq, {
|
|
28235
|
-
ref: (ee) => c.value[
|
|
28240
|
+
ref: (ee) => c.value[P] = ee,
|
|
28236
28241
|
label: A.label,
|
|
28237
28242
|
type: A.type,
|
|
28238
28243
|
morpheme: A.description || "",
|
|
28239
|
-
onOpen: (ee) => f(
|
|
28244
|
+
onOpen: (ee) => f(P),
|
|
28240
28245
|
attachTo: z(y),
|
|
28241
28246
|
config: A.metricConfig,
|
|
28242
28247
|
onHandleUpdate: R,
|
|
28243
28248
|
class: j([
|
|
28244
28249
|
"metric-update-item",
|
|
28245
|
-
{ selected: d.value ===
|
|
28250
|
+
{ selected: d.value === P || J === P }
|
|
28246
28251
|
])
|
|
28247
28252
|
}, {
|
|
28248
28253
|
default: me(({ open: ee }) => [
|
|
@@ -28265,7 +28270,7 @@ const kK = {
|
|
|
28265
28270
|
], 512)
|
|
28266
28271
|
], 512));
|
|
28267
28272
|
}
|
|
28268
|
-
}), mq = /* @__PURE__ */ Ct(gq, [["__scopeId", "data-v-
|
|
28273
|
+
}), mq = /* @__PURE__ */ Ct(gq, [["__scopeId", "data-v-606921e9"]]), vq = /* @__PURE__ */ lt({
|
|
28269
28274
|
__name: "DropdownWrapper",
|
|
28270
28275
|
props: {
|
|
28271
28276
|
placement: { default: "bottom-start" },
|
|
@@ -28379,7 +28384,7 @@ const kK = {
|
|
|
28379
28384
|
T && O.add(String(T));
|
|
28380
28385
|
}), Array.from(O);
|
|
28381
28386
|
}), S = _i("bulkUpdate", !1), { apiServices: _ } = di(!S, o), C = async (O = i.INITIAL_PAGE, T = "", A = !1) => {
|
|
28382
|
-
var
|
|
28387
|
+
var P, N, J, ee;
|
|
28383
28388
|
if (!m.value) {
|
|
28384
28389
|
console.error("Missing required props", o);
|
|
28385
28390
|
return;
|
|
@@ -28393,7 +28398,7 @@ const kK = {
|
|
|
28393
28398
|
perPage: i.PER_PAGE,
|
|
28394
28399
|
name_like: T.trim()
|
|
28395
28400
|
};
|
|
28396
|
-
if (((
|
|
28401
|
+
if (((P = _.value) == null ? void 0 : P.getAssignableStatus) === void 0)
|
|
28397
28402
|
throw new Error("API service getAssignableStatus is undefined");
|
|
28398
28403
|
const V = await ((N = _.value) == null ? void 0 : N.getAssignableStatus(Y));
|
|
28399
28404
|
if (!(V != null && V.data)) {
|
|
@@ -28412,7 +28417,7 @@ const kK = {
|
|
|
28412
28417
|
}, Bh), E = async () => {
|
|
28413
28418
|
!d.value || l.value || await C(c.value + 1, f.value, !0);
|
|
28414
28419
|
}, x = async (O) => {
|
|
28415
|
-
var T, A,
|
|
28420
|
+
var T, A, P;
|
|
28416
28421
|
if (!m.value) {
|
|
28417
28422
|
console.error("Missing required props for updating status", o);
|
|
28418
28423
|
return;
|
|
@@ -28433,7 +28438,7 @@ const kK = {
|
|
|
28433
28438
|
name: O.label,
|
|
28434
28439
|
color: O.color
|
|
28435
28440
|
}
|
|
28436
|
-
}), (
|
|
28441
|
+
}), (P = o.params) == null || P.api.stopEditing()), s("updated", {
|
|
28437
28442
|
workspaceId: String(o.workspaceId),
|
|
28438
28443
|
itemIds: w.value,
|
|
28439
28444
|
data: {
|
|
@@ -28445,7 +28450,7 @@ const kK = {
|
|
|
28445
28450
|
} catch (N) {
|
|
28446
28451
|
console.error("Error updating status:", N), u.value = "Failed to update status", s("error", u.value);
|
|
28447
28452
|
}
|
|
28448
|
-
},
|
|
28453
|
+
}, I = U(
|
|
28449
28454
|
() => r.value.map((O) => ({
|
|
28450
28455
|
...O
|
|
28451
28456
|
}))
|
|
@@ -28473,7 +28478,7 @@ const kK = {
|
|
|
28473
28478
|
ref: k
|
|
28474
28479
|
}, o, {
|
|
28475
28480
|
"selected-id": (A = o.value) == null ? void 0 : A.id,
|
|
28476
|
-
options:
|
|
28481
|
+
options: I.value,
|
|
28477
28482
|
loading: a.value,
|
|
28478
28483
|
"loading-more": l.value,
|
|
28479
28484
|
"has-more": d.value,
|
|
@@ -28481,7 +28486,7 @@ const kK = {
|
|
|
28481
28486
|
onSearch: z(R),
|
|
28482
28487
|
onSelect: x,
|
|
28483
28488
|
onLoadMore: E,
|
|
28484
|
-
onCancel: T[0] || (T[0] = (
|
|
28489
|
+
onCancel: T[0] || (T[0] = (P) => s("cancel"))
|
|
28485
28490
|
}), null, 16, ["selected-id", "options", "loading", "loading-more", "has-more", "error", "onSearch"]);
|
|
28486
28491
|
};
|
|
28487
28492
|
}
|
|
@@ -28770,7 +28775,7 @@ const kK = {
|
|
|
28770
28775
|
return;
|
|
28771
28776
|
}
|
|
28772
28777
|
k(N, "isArchived", !1);
|
|
28773
|
-
},
|
|
28778
|
+
}, I = async () => {
|
|
28774
28779
|
var Y;
|
|
28775
28780
|
const N = i.selectRowData.map((V) => V.id);
|
|
28776
28781
|
if (!i.gridApi) {
|
|
@@ -28836,8 +28841,8 @@ const kK = {
|
|
|
28836
28841
|
H.setData(K);
|
|
28837
28842
|
}
|
|
28838
28843
|
});
|
|
28839
|
-
}, A = B(!1),
|
|
28840
|
-
A.value = !0, N.id === "unarchive" ? await x() : N.id === "delete" ? await E() : N.id === "archive" ? await
|
|
28844
|
+
}, A = B(!1), P = async (N) => {
|
|
28845
|
+
A.value = !0, N.id === "unarchive" ? await x() : N.id === "delete" ? await E() : N.id === "archive" ? await I() : N.id === "delete-thumbnail" ? await O() : N.id === "delete-rendition" && await T(), rn(() => {
|
|
28841
28846
|
A.value = !1;
|
|
28842
28847
|
});
|
|
28843
28848
|
};
|
|
@@ -28952,7 +28957,7 @@ const kK = {
|
|
|
28952
28957
|
}, { ref_for: !0 }, V, {
|
|
28953
28958
|
show: ee,
|
|
28954
28959
|
onSelect: () => {
|
|
28955
|
-
|
|
28960
|
+
P(V), Y();
|
|
28956
28961
|
}
|
|
28957
28962
|
}), null, 16, ["show", "onSelect"])), 64))
|
|
28958
28963
|
]),
|
|
@@ -29226,9 +29231,9 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29226
29231
|
}, [
|
|
29227
29232
|
!e.disabled && !e.readOnly ? {
|
|
29228
29233
|
name: "suffix",
|
|
29229
|
-
fn: me(({ hovered: x, focused:
|
|
29230
|
-
x ||
|
|
29231
|
-
x && !
|
|
29234
|
+
fn: me(({ hovered: x, focused: I }) => [
|
|
29235
|
+
x || I ? (W(), le("div", Mq, [
|
|
29236
|
+
x && !I ? Je((W(), Ge(z(ft), {
|
|
29232
29237
|
key: 0,
|
|
29233
29238
|
variant: ["icon", "secondary"],
|
|
29234
29239
|
size: 24,
|
|
@@ -29243,7 +29248,7 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29243
29248
|
_: 1
|
|
29244
29249
|
})), [
|
|
29245
29250
|
[z(o), "Edit"]
|
|
29246
|
-
]) :
|
|
29251
|
+
]) : I ? Je((W(), Ge(z(ft), {
|
|
29247
29252
|
key: 1,
|
|
29248
29253
|
variant: ["icon", "tertiary", "danger"],
|
|
29249
29254
|
size: 24,
|
|
@@ -29314,8 +29319,8 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29314
29319
|
}).url;
|
|
29315
29320
|
}), w = U(
|
|
29316
29321
|
() => {
|
|
29317
|
-
var T, A,
|
|
29318
|
-
return ((T = r.data) == null ? void 0 : T.isDeleted) == !0 || ((
|
|
29322
|
+
var T, A, P;
|
|
29323
|
+
return ((T = r.data) == null ? void 0 : T.isDeleted) == !0 || ((P = (A = r.data) == null ? void 0 : A.isProcessing) == null ? void 0 : P.length) > 0;
|
|
29319
29324
|
}
|
|
29320
29325
|
), S = U(() => {
|
|
29321
29326
|
var T;
|
|
@@ -29324,10 +29329,10 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29324
29329
|
var T;
|
|
29325
29330
|
return ((T = r.data) == null ? void 0 : T.isArchived) == 1;
|
|
29326
29331
|
}), C = U(() => r.value === void 0), R = async (T) => {
|
|
29327
|
-
var A,
|
|
29332
|
+
var A, P, N, J;
|
|
29328
29333
|
l.value = T, m.value = !1;
|
|
29329
29334
|
try {
|
|
29330
|
-
const ee = await ((
|
|
29335
|
+
const ee = await ((P = (A = f.value) == null ? void 0 : A.updateSceneName) == null ? void 0 : P.call(A, {
|
|
29331
29336
|
workspaceId: r.workspaceId,
|
|
29332
29337
|
entityId: r.entityId,
|
|
29333
29338
|
itemId: r.id,
|
|
@@ -29361,7 +29366,7 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29361
29366
|
const T = d.value, A = T && "$el" in T ? T.$el : T;
|
|
29362
29367
|
A && delete A.__sceneNameEditor;
|
|
29363
29368
|
});
|
|
29364
|
-
const
|
|
29369
|
+
const I = jA(), { openSceneHub: k } = I, O = (T) => {
|
|
29365
29370
|
try {
|
|
29366
29371
|
if (T.ctrlKey || T.metaKey) {
|
|
29367
29372
|
window.open(y.value, "_blank");
|
|
@@ -29380,7 +29385,7 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29380
29385
|
"read-only": r.readOnly || C.value,
|
|
29381
29386
|
placeholder: r.placeholder,
|
|
29382
29387
|
value: l.value,
|
|
29383
|
-
"onUpdate:value": A[0] || (A[0] = (
|
|
29388
|
+
"onUpdate:value": A[0] || (A[0] = (P) => l.value = P),
|
|
29384
29389
|
id: `scene-name-${r.id}`,
|
|
29385
29390
|
onEnter: R,
|
|
29386
29391
|
"max-length": 25
|
|
@@ -29671,19 +29676,19 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29671
29676
|
source: "remote",
|
|
29672
29677
|
style: un(_.value)
|
|
29673
29678
|
}, null, 8, ["style"])) : qe("", !0),
|
|
29674
|
-
(W(!0), le(At, null, An(S.value, (
|
|
29675
|
-
key:
|
|
29679
|
+
(W(!0), le(At, null, An(S.value, (I) => Je((W(), Ge(Xu, {
|
|
29680
|
+
key: I.id,
|
|
29676
29681
|
readOnly: !0,
|
|
29677
29682
|
class: j(R.$style["ib-assignee-avatar"]),
|
|
29678
|
-
name:
|
|
29679
|
-
initial:
|
|
29680
|
-
id: `assignee-avatar-${
|
|
29681
|
-
profile_image:
|
|
29682
|
-
color:
|
|
29683
|
-
size:
|
|
29683
|
+
name: I.name,
|
|
29684
|
+
initial: I.initial,
|
|
29685
|
+
id: `assignee-avatar-${I.avatarId}`,
|
|
29686
|
+
profile_image: I.profile_image,
|
|
29687
|
+
color: I.color,
|
|
29688
|
+
size: I.size
|
|
29684
29689
|
}, null, 8, ["class", "name", "initial", "id", "profile_image", "color", "size"])), [
|
|
29685
29690
|
[z(i), {
|
|
29686
|
-
user:
|
|
29691
|
+
user: I.user,
|
|
29687
29692
|
placement: "bottom-start",
|
|
29688
29693
|
showInsightButton: !0,
|
|
29689
29694
|
showCopyLinkButton: !0,
|
|
@@ -29761,7 +29766,7 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29761
29766
|
isEnded: c.value,
|
|
29762
29767
|
timezone: o.timezone || i
|
|
29763
29768
|
});
|
|
29764
|
-
return (x,
|
|
29769
|
+
return (x, I) => Je((W(), Ge(Li, Yt(z(p), {
|
|
29765
29770
|
ref_key: "wrapperRef",
|
|
29766
29771
|
ref: r
|
|
29767
29772
|
}), {
|
|
@@ -29784,7 +29789,7 @@ const Oq = ["placeholder", "maxlength"], Mq = {
|
|
|
29784
29789
|
], 2)), [
|
|
29785
29790
|
[z(t), z(_)]
|
|
29786
29791
|
]),
|
|
29787
|
-
|
|
29792
|
+
I[0] || (I[0] = fe("span", null, "→", -1)),
|
|
29788
29793
|
Je((W(), le("span", {
|
|
29789
29794
|
class: j([x.$style.dateLabelDisplay, ...z(S).map((k) => x.$style[k])])
|
|
29790
29795
|
}, [
|
|
@@ -30324,13 +30329,13 @@ const ik = (e) => {
|
|
|
30324
30329
|
setup(e, { emit: t }) {
|
|
30325
30330
|
const n = ho, i = fn, o = e, s = LF(!1), r = B(null), a = B(null), { isEditing: l } = $h(o), u = U(() => {
|
|
30326
30331
|
var N, J, ee;
|
|
30327
|
-
const
|
|
30328
|
-
return !!(((ee =
|
|
30332
|
+
const P = (J = (N = o.params) == null ? void 0 : N.colDef) == null ? void 0 : J.context;
|
|
30333
|
+
return !!(((ee = P.auth_permission) == null ? void 0 : ee.permission) !== 2 || o.disabled || P.formula);
|
|
30329
30334
|
}), c = U(() => {
|
|
30330
|
-
var
|
|
30335
|
+
var P, N;
|
|
30331
30336
|
return {
|
|
30332
30337
|
value: o.value,
|
|
30333
|
-
metricConfig: (N = (
|
|
30338
|
+
metricConfig: (N = (P = o.params) == null ? void 0 : P.colDef) == null ? void 0 : N.context,
|
|
30334
30339
|
error: o.error,
|
|
30335
30340
|
hovered: s.value,
|
|
30336
30341
|
readOnly: u.value,
|
|
@@ -30343,11 +30348,11 @@ const ik = (e) => {
|
|
|
30343
30348
|
if (d.value.pendingCalculation)
|
|
30344
30349
|
return "Can’t calculate yet. Complete required fields.";
|
|
30345
30350
|
if (d.value.isEmpty) return;
|
|
30346
|
-
const
|
|
30347
|
-
return N === "prefix" ? `${h.value.morpheme_value || ""} ${
|
|
30351
|
+
const P = E.value, N = h.value.morpheme_type;
|
|
30352
|
+
return N === "prefix" ? `${h.value.morpheme_value || ""} ${P}`.trim() : N === "suffix" ? `${P} ${h.value.morpheme_value || ""}`.trim() : `${P}`;
|
|
30348
30353
|
}), y = U(() => {
|
|
30349
|
-
const { format_type:
|
|
30350
|
-
if (
|
|
30354
|
+
const { format_type: P, format_value: N } = h.value;
|
|
30355
|
+
if (P === "dropdown" && typeof N == "string" && N.startsWith("["))
|
|
30351
30356
|
try {
|
|
30352
30357
|
return JSON.parse(N);
|
|
30353
30358
|
} catch {
|
|
@@ -30364,44 +30369,44 @@ const ik = (e) => {
|
|
|
30364
30369
|
clickable: !0,
|
|
30365
30370
|
readOnly: u.value,
|
|
30366
30371
|
isEmpty: d.value.isEmpty
|
|
30367
|
-
})), { argsMain: _, isHover: C } = Mi(S), R = (
|
|
30372
|
+
})), { argsMain: _, isHover: C } = Mi(S), R = (P, N, J = "en-US") => new Intl.NumberFormat(J, {
|
|
30368
30373
|
minimumFractionDigits: N,
|
|
30369
30374
|
maximumFractionDigits: N
|
|
30370
|
-
}).format(
|
|
30375
|
+
}).format(P), E = U(() => {
|
|
30371
30376
|
if (d.value.isEmpty) return "";
|
|
30372
30377
|
if (d.value.pendingCalculation) return "pending";
|
|
30373
|
-
const
|
|
30378
|
+
const P = o.value, { format_type: N, format_value: J, mapping: ee } = h.value;
|
|
30374
30379
|
if (ee && typeof ee == "object" && !Array.isArray(ee)) {
|
|
30375
|
-
const Y = ee[`!${
|
|
30380
|
+
const Y = ee[`!${P}`];
|
|
30376
30381
|
if (Y) return Y;
|
|
30377
30382
|
}
|
|
30378
30383
|
if (N === "dropdown") {
|
|
30379
|
-
const Y = y.value.find((V) => String(V.name) === String(
|
|
30384
|
+
const Y = y.value.find((V) => String(V.name) === String(P));
|
|
30380
30385
|
if (Y) return Y.name;
|
|
30381
30386
|
}
|
|
30382
|
-
if (typeof
|
|
30383
|
-
const Y = Number(
|
|
30384
|
-
return Number.isNaN(Y) ?
|
|
30387
|
+
if (typeof P == "string") {
|
|
30388
|
+
const Y = Number(P);
|
|
30389
|
+
return Number.isNaN(Y) ? P : x(Y, J);
|
|
30385
30390
|
}
|
|
30386
|
-
return typeof
|
|
30387
|
-
}), x = (
|
|
30391
|
+
return typeof P == "number" ? x(P, J) : String(P);
|
|
30392
|
+
}), x = (P, N) => {
|
|
30388
30393
|
const J = Number.parseInt(String(N) || "2", 10), ee = Number.isFinite(J) && J >= 0 ? J : 2;
|
|
30389
30394
|
try {
|
|
30390
|
-
return R(
|
|
30395
|
+
return R(P, ee);
|
|
30391
30396
|
} catch (Y) {
|
|
30392
|
-
return console.error("Error formatting metric value:", Y, { num:
|
|
30397
|
+
return console.error("Error formatting metric value:", Y, { num: P, decimals: ee }), String(P);
|
|
30393
30398
|
}
|
|
30394
|
-
}, { copyToClipboard:
|
|
30395
|
-
st(() => o.value, (
|
|
30396
|
-
const N = Number(
|
|
30397
|
-
Number.isFinite(N) && N !== p.value ? p.value = N :
|
|
30399
|
+
}, { copyToClipboard: I, tooltip: k } = hS(E.value);
|
|
30400
|
+
st(() => o.value, (P) => {
|
|
30401
|
+
const N = Number(P);
|
|
30402
|
+
Number.isFinite(N) && N !== p.value ? p.value = N : P == null && p.value !== 0 && (p.value = 0);
|
|
30398
30403
|
}, { immediate: !0 });
|
|
30399
30404
|
const T = () => {
|
|
30400
30405
|
s.value = !0;
|
|
30401
30406
|
}, A = () => {
|
|
30402
30407
|
s.value = !1;
|
|
30403
30408
|
};
|
|
30404
|
-
return (
|
|
30409
|
+
return (P, N) => K2([o.value], () => Je((W(), Ge(Li, Yt(z(_), {
|
|
30405
30410
|
onMouseenter: T,
|
|
30406
30411
|
style: { "--icon-size": "24px" },
|
|
30407
30412
|
onMouseleave: A,
|
|
@@ -30411,13 +30416,13 @@ const ik = (e) => {
|
|
|
30411
30416
|
}), {
|
|
30412
30417
|
suffix: me(() => [
|
|
30413
30418
|
fe("div", {
|
|
30414
|
-
class: j([
|
|
30419
|
+
class: j([P.$style.suffix, "wrapper-suffix"])
|
|
30415
30420
|
}, [
|
|
30416
30421
|
z(d).showActions && !z(d).isEmpty && !z(d).isError ? Je((W(), Ge(ft, {
|
|
30417
30422
|
key: 0,
|
|
30418
30423
|
variant: ["icon", "secondary"],
|
|
30419
30424
|
size: 24,
|
|
30420
|
-
onClick: Kt(z(
|
|
30425
|
+
onClick: Kt(z(I), ["prevent", "stop"])
|
|
30421
30426
|
}, {
|
|
30422
30427
|
default: me(() => [
|
|
30423
30428
|
re(ct, {
|
|
@@ -30438,10 +30443,10 @@ const ik = (e) => {
|
|
|
30438
30443
|
]),
|
|
30439
30444
|
default: me(() => [
|
|
30440
30445
|
Je((W(), le("div", {
|
|
30441
|
-
class: j(
|
|
30446
|
+
class: j(P.$style["metric-wrapper"])
|
|
30442
30447
|
}, [
|
|
30443
30448
|
fe("div", {
|
|
30444
|
-
class: j([
|
|
30449
|
+
class: j([P.$style["metric-content"], o.disabled ? P.$style.disabled : ""])
|
|
30445
30450
|
}, [
|
|
30446
30451
|
!z(d).isError && z(d).isEmpty ? (W(), le(At, { key: 0 }, [
|
|
30447
30452
|
z(d).isDropdown ? (W(), Ge(ct, {
|
|
@@ -30462,10 +30467,10 @@ const ik = (e) => {
|
|
|
30462
30467
|
}, null, 8, ["size", "color"])) : qe("", !0),
|
|
30463
30468
|
z(d).pendingCalculation ? (W(), le("span", {
|
|
30464
30469
|
key: 2,
|
|
30465
|
-
class: j(
|
|
30470
|
+
class: j(P.$style["metric-empty"])
|
|
30466
30471
|
}, " Pending ", 2)) : z(d).isDropdown ? qe("", !0) : (W(), le("span", {
|
|
30467
30472
|
key: 3,
|
|
30468
|
-
class: j(
|
|
30473
|
+
class: j(P.$style["metric-empty"])
|
|
30469
30474
|
}, " - ", 2))
|
|
30470
30475
|
], 64)) : z(d).isFormula ? (W(), Ge(ct, {
|
|
30471
30476
|
key: 1,
|
|
@@ -30478,11 +30483,11 @@ const ik = (e) => {
|
|
|
30478
30483
|
!z(d).isEmpty && !z(d).isError ? (W(), le("span", {
|
|
30479
30484
|
key: 3,
|
|
30480
30485
|
class: j([
|
|
30481
|
-
|
|
30482
|
-
z(C) ?
|
|
30486
|
+
P.$style["metric-value"],
|
|
30487
|
+
z(C) ? P.$style.hovered : "",
|
|
30483
30488
|
{
|
|
30484
|
-
[
|
|
30485
|
-
[
|
|
30489
|
+
[P.$style["with-formula-icon"]]: z(d).isFormula,
|
|
30490
|
+
[P.$style.disabled]: o.disabled
|
|
30486
30491
|
}
|
|
30487
30492
|
])
|
|
30488
30493
|
}, yt(E.value), 3)) : qe("", !0)
|
|
@@ -30564,16 +30569,16 @@ const ik = (e) => {
|
|
|
30564
30569
|
const k = a.headerType ?? a.params.column.getColId();
|
|
30565
30570
|
return l[k] || "default";
|
|
30566
30571
|
}), c = U(() => {
|
|
30567
|
-
var
|
|
30568
|
-
return ((k = (
|
|
30572
|
+
var I, k;
|
|
30573
|
+
return ((k = (I = a.params) == null ? void 0 : I.column.getColDef().context) == null ? void 0 : k.morpheme_value) || void 0;
|
|
30569
30574
|
}), d = U(() => {
|
|
30570
|
-
var
|
|
30571
|
-
return (
|
|
30575
|
+
var I;
|
|
30576
|
+
return (I = a.params) == null ? void 0 : I.displayName;
|
|
30572
30577
|
}), h = U(() => {
|
|
30573
|
-
let
|
|
30578
|
+
let I = [];
|
|
30574
30579
|
switch (u.value) {
|
|
30575
30580
|
case "dateRange":
|
|
30576
|
-
|
|
30581
|
+
I = Object.values(i).map((k) => ({
|
|
30577
30582
|
...k,
|
|
30578
30583
|
selected: p.value === k.value,
|
|
30579
30584
|
type: "text",
|
|
@@ -30581,7 +30586,7 @@ const ik = (e) => {
|
|
|
30581
30586
|
}));
|
|
30582
30587
|
break;
|
|
30583
30588
|
case "date":
|
|
30584
|
-
|
|
30589
|
+
I = Object.values(o).map((k) => ({
|
|
30585
30590
|
...k,
|
|
30586
30591
|
selected: p.value === k.value,
|
|
30587
30592
|
type: "text",
|
|
@@ -30589,7 +30594,7 @@ const ik = (e) => {
|
|
|
30589
30594
|
}));
|
|
30590
30595
|
break;
|
|
30591
30596
|
case "number":
|
|
30592
|
-
|
|
30597
|
+
I = Object.values(s).map((k) => ({
|
|
30593
30598
|
...k,
|
|
30594
30599
|
selected: p.value === k.value,
|
|
30595
30600
|
type: "text",
|
|
@@ -30597,7 +30602,7 @@ const ik = (e) => {
|
|
|
30597
30602
|
}));
|
|
30598
30603
|
break;
|
|
30599
30604
|
default:
|
|
30600
|
-
|
|
30605
|
+
I = Object.values(r).map((k) => ({
|
|
30601
30606
|
...k,
|
|
30602
30607
|
selected: p.value === k.value,
|
|
30603
30608
|
type: "text",
|
|
@@ -30605,7 +30610,7 @@ const ik = (e) => {
|
|
|
30605
30610
|
}));
|
|
30606
30611
|
break;
|
|
30607
30612
|
}
|
|
30608
|
-
return p.value !== "none" &&
|
|
30613
|
+
return p.value !== "none" && I.push({
|
|
30609
30614
|
id: "clear",
|
|
30610
30615
|
label: "Clear",
|
|
30611
30616
|
value: "none",
|
|
@@ -30613,36 +30618,36 @@ const ik = (e) => {
|
|
|
30613
30618
|
type: "text",
|
|
30614
30619
|
icon: "XMark",
|
|
30615
30620
|
hover: R.value == "none"
|
|
30616
|
-
}),
|
|
30621
|
+
}), I;
|
|
30617
30622
|
}), f = U(() => String(p.value).endsWith(
|
|
30618
30623
|
"asc"
|
|
30619
30624
|
/* ASC */
|
|
30620
30625
|
) ? "SortUp" : String(p.value).endsWith(
|
|
30621
30626
|
"desc"
|
|
30622
30627
|
/* DESC */
|
|
30623
|
-
) ? "SortDown" : "Sort"), p = B(a.modelValue ?? "none"), m = (
|
|
30624
|
-
_("update:modelValue",
|
|
30625
|
-
}, y = (
|
|
30626
|
-
p.value =
|
|
30628
|
+
) ? "SortDown" : "Sort"), p = B(a.modelValue ?? "none"), m = (I) => {
|
|
30629
|
+
_("update:modelValue", I), _("sort-changed", I);
|
|
30630
|
+
}, y = (I) => {
|
|
30631
|
+
p.value = I;
|
|
30627
30632
|
}, w = Mo(() => {
|
|
30628
30633
|
if (u.value === "date" || u.value === "default" || u.value === "number") {
|
|
30629
|
-
let
|
|
30630
|
-
p.value === "none" ?
|
|
30634
|
+
let I;
|
|
30635
|
+
p.value === "none" ? I = "asc" : p.value === "asc" ? I = "desc" : I = "none", p.value = I;
|
|
30631
30636
|
} else {
|
|
30632
|
-
const
|
|
30637
|
+
const I = [
|
|
30633
30638
|
i.START_ASC.value,
|
|
30634
30639
|
i.START_DESC.value,
|
|
30635
30640
|
i.DUE_ASC.value,
|
|
30636
30641
|
i.DUE_DESC.value,
|
|
30637
30642
|
"none"
|
|
30638
|
-
], O = (
|
|
30639
|
-
p.value =
|
|
30643
|
+
], O = (I.indexOf(p.value) + 1) % I.length;
|
|
30644
|
+
p.value = I[O];
|
|
30640
30645
|
}
|
|
30641
30646
|
}, 300), S = U(() => {
|
|
30642
30647
|
if (p.value === "none")
|
|
30643
30648
|
return "No sorting applied";
|
|
30644
|
-
const
|
|
30645
|
-
return (
|
|
30649
|
+
const I = h.value.find((k) => k.value === p.value);
|
|
30650
|
+
return (I == null ? void 0 : I.label) || "";
|
|
30646
30651
|
}), _ = t, C = U(() => {
|
|
30647
30652
|
if (a.disabled && !a.readOnly)
|
|
30648
30653
|
return "var(--disabled-color)";
|
|
@@ -30651,40 +30656,40 @@ const ik = (e) => {
|
|
|
30651
30656
|
});
|
|
30652
30657
|
st(
|
|
30653
30658
|
() => a.modelValue,
|
|
30654
|
-
(
|
|
30655
|
-
|
|
30659
|
+
(I) => {
|
|
30660
|
+
I != p.value && (p.value = I);
|
|
30656
30661
|
}
|
|
30657
|
-
), st(p, (
|
|
30658
|
-
|
|
30662
|
+
), st(p, (I) => {
|
|
30663
|
+
I !== a.modelValue && m(I);
|
|
30659
30664
|
});
|
|
30660
30665
|
const R = B(p.value);
|
|
30661
30666
|
st(
|
|
30662
30667
|
() => p.value,
|
|
30663
|
-
(
|
|
30664
|
-
R.value =
|
|
30668
|
+
(I) => {
|
|
30669
|
+
R.value = I;
|
|
30665
30670
|
}
|
|
30666
30671
|
);
|
|
30667
|
-
const E = (
|
|
30668
|
-
var A,
|
|
30672
|
+
const E = (I) => {
|
|
30673
|
+
var A, P;
|
|
30669
30674
|
if (a.readOnly || a.disabled) return;
|
|
30670
30675
|
let k = 0;
|
|
30671
|
-
|
|
30676
|
+
I.key === "ArrowDown" ? k = 1 : I.key === "ArrowUp" && (k = -1);
|
|
30672
30677
|
const O = h.value.findIndex((N) => N.value === R.value), T = h.value.length;
|
|
30673
|
-
if (
|
|
30674
|
-
|
|
30678
|
+
if (I.key === "Enter" || I.key === " ")
|
|
30679
|
+
I.preventDefault(), p.value = R.value, (A = x.value) == null || A.hide();
|
|
30675
30680
|
else if (k !== 0) {
|
|
30676
|
-
|
|
30681
|
+
I.preventDefault();
|
|
30677
30682
|
let N = (O + k + T) % T;
|
|
30678
30683
|
R.value = h.value[N].value;
|
|
30679
|
-
} else
|
|
30684
|
+
} else I.key === "Escape" && ((P = x.value) == null || P.hide());
|
|
30680
30685
|
}, x = B(null);
|
|
30681
30686
|
return hn(() => {
|
|
30682
|
-
var
|
|
30683
|
-
(k = (
|
|
30687
|
+
var I, k;
|
|
30688
|
+
(k = (I = x.value) == null ? void 0 : I.$el) == null || k.addEventListener("keydown", E);
|
|
30684
30689
|
}), Fh(() => {
|
|
30685
|
-
var
|
|
30686
|
-
(k = (
|
|
30687
|
-
}), (
|
|
30690
|
+
var I, k;
|
|
30691
|
+
(k = (I = x.value) == null ? void 0 : I.$el) == null || k.removeEventListener("keydown", E);
|
|
30692
|
+
}), (I, k) => (W(), Ge(PS, {
|
|
30688
30693
|
ref_key: "dropdownRef",
|
|
30689
30694
|
ref: x,
|
|
30690
30695
|
options: h.value,
|
|
@@ -32240,16 +32245,16 @@ It.prototype = /** @lends Sortable.prototype */
|
|
|
32240
32245
|
return w(), n.insertBefore(tt, R), Fn = n, _(), S(!0);
|
|
32241
32246
|
} else if (i.parentNode === n) {
|
|
32242
32247
|
s = Yn(i);
|
|
32243
|
-
var E = 0, x,
|
|
32244
|
-
iu !== i && (x = s[O], Pd = !1, jf = !k && a.invertSwap ||
|
|
32245
|
-
var
|
|
32248
|
+
var E = 0, x, I = tt.parentNode !== n, k = !UZ(tt.animated && tt.toRect || o, i.animated && i.toRect || s, f), O = f ? "top" : "left", T = fx(i, "top", "top") || fx(tt, "top", "top"), A = T ? T.scrollTop : void 0;
|
|
32249
|
+
iu !== i && (x = s[O], Pd = !1, jf = !k && a.invertSwap || I), E = XZ(t, i, s, f, k ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, jf, iu === i);
|
|
32250
|
+
var P;
|
|
32246
32251
|
if (E !== 0) {
|
|
32247
32252
|
var N = Eo(tt);
|
|
32248
32253
|
do
|
|
32249
|
-
N -= E,
|
|
32250
|
-
while (
|
|
32254
|
+
N -= E, P = Fn.children[N];
|
|
32255
|
+
while (P && (Pt(P, "display") === "none" || P === Ht));
|
|
32251
32256
|
}
|
|
32252
|
-
if (E === 0 ||
|
|
32257
|
+
if (E === 0 || P === i)
|
|
32253
32258
|
return S(!1);
|
|
32254
32259
|
iu = i, Td = E;
|
|
32255
32260
|
var J = i.nextElementSibling, ee = !1;
|
|
@@ -32586,13 +32591,13 @@ var Fy = ck(function(e, t, n, i) {
|
|
|
32586
32591
|
bC !== n && (bC = n, Op(), ld = t.scroll, c = t.scrollFn, ld === !0 && (ld = sa(n, !0)));
|
|
32587
32592
|
var d = 0, h = ld;
|
|
32588
32593
|
do {
|
|
32589
|
-
var f = h, p = Yn(f), m = p.top, y = p.bottom, w = p.left, S = p.right, _ = p.width, C = p.height, R = void 0, E = void 0, x = f.scrollWidth,
|
|
32590
|
-
f === l ? (R = _ < x && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), E = C <
|
|
32591
|
-
var A = R && (Math.abs(S - o) <= r && O + _ < x) - (Math.abs(w - o) <= r && !!O),
|
|
32594
|
+
var f = h, p = Yn(f), m = p.top, y = p.bottom, w = p.left, S = p.right, _ = p.width, C = p.height, R = void 0, E = void 0, x = f.scrollWidth, I = f.scrollHeight, k = Pt(f), O = f.scrollLeft, T = f.scrollTop;
|
|
32595
|
+
f === l ? (R = _ < x && (k.overflowX === "auto" || k.overflowX === "scroll" || k.overflowX === "visible"), E = C < I && (k.overflowY === "auto" || k.overflowY === "scroll" || k.overflowY === "visible")) : (R = _ < x && (k.overflowX === "auto" || k.overflowX === "scroll"), E = C < I && (k.overflowY === "auto" || k.overflowY === "scroll"));
|
|
32596
|
+
var A = R && (Math.abs(S - o) <= r && O + _ < x) - (Math.abs(w - o) <= r && !!O), P = E && (Math.abs(y - s) <= r && T + C < I) - (Math.abs(m - s) <= r && !!T);
|
|
32592
32597
|
if (!$n[d])
|
|
32593
32598
|
for (var N = 0; N <= d; N++)
|
|
32594
32599
|
$n[N] || ($n[N] = {});
|
|
32595
|
-
($n[d].vx != A || $n[d].vy !=
|
|
32600
|
+
($n[d].vx != A || $n[d].vy != P || $n[d].el !== f) && ($n[d].el = f, $n[d].vx = A, $n[d].vy = P, clearInterval($n[d].pid), (A != 0 || P != 0) && (u = !0, $n[d].pid = setInterval((function() {
|
|
32596
32601
|
i && this.layer === 0 && It.active._onTouchMove(Mg);
|
|
32597
32602
|
var J = $n[this.layer].vy ? $n[this.layer].vy * a : 0, ee = $n[this.layer].vx ? $n[this.layer].vx * a : 0;
|
|
32598
32603
|
typeof c == "function" && c.call(It.dragged.parentNode[io], ee, J, e, Mg, $n[this.layer].el) !== "continue" || dk($n[this.layer].el, ee, J);
|
|
@@ -32770,7 +32775,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
32770
32775
|
var ie, X;
|
|
32771
32776
|
return n.default && ((X = (ie = n.default()[0]) == null ? void 0 : ie.component) == null ? void 0 : X.proxy) || null;
|
|
32772
32777
|
}
|
|
32773
|
-
function
|
|
32778
|
+
function I(ae) {
|
|
32774
32779
|
if (!e.noTransitionOnDrag || !o.value)
|
|
32775
32780
|
return;
|
|
32776
32781
|
const ie = m();
|
|
@@ -32798,7 +32803,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
32798
32803
|
if (!u.value)
|
|
32799
32804
|
return;
|
|
32800
32805
|
const ie = u.value.index;
|
|
32801
|
-
C(ie, 1),
|
|
32806
|
+
C(ie, 1), I(ie), S({ removed: { element: u.value.element, oldIndex: ie } });
|
|
32802
32807
|
}
|
|
32803
32808
|
function A(ae) {
|
|
32804
32809
|
var he, Le;
|
|
@@ -32808,7 +32813,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
32808
32813
|
moved: { element: (Le = u.value) == null ? void 0 : Le.element, oldIndex: ie, newIndex: X }
|
|
32809
32814
|
});
|
|
32810
32815
|
}
|
|
32811
|
-
function
|
|
32816
|
+
function P(ae, ie) {
|
|
32812
32817
|
Object.prototype.hasOwnProperty.call(ae, ie) && (ae[ie] += r.value);
|
|
32813
32818
|
}
|
|
32814
32819
|
function N(ae) {
|
|
@@ -32903,12 +32908,12 @@ const aX = /* @__PURE__ */ lt({
|
|
|
32903
32908
|
updatePosition: R,
|
|
32904
32909
|
getVmIndex: E,
|
|
32905
32910
|
getComponent: x,
|
|
32906
|
-
resetTransitionData:
|
|
32911
|
+
resetTransitionData: I,
|
|
32907
32912
|
onDragStart: k,
|
|
32908
32913
|
onDragAdd: O,
|
|
32909
32914
|
onDragRemove: T,
|
|
32910
32915
|
onDragUpdate: A,
|
|
32911
|
-
updateProperty:
|
|
32916
|
+
updateProperty: P,
|
|
32912
32917
|
onDragMove: K,
|
|
32913
32918
|
onDragEnd: ve,
|
|
32914
32919
|
mounted: Y,
|
|
@@ -33084,8 +33089,8 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33084
33089
|
const R = r.value.toLowerCase();
|
|
33085
33090
|
return [...a.value, ...p.value].reduce(
|
|
33086
33091
|
(E, x) => {
|
|
33087
|
-
var
|
|
33088
|
-
return (
|
|
33092
|
+
var I;
|
|
33093
|
+
return (I = x.headerName) != null && I.toLowerCase().includes(R) && x.field && (E[x.field] = !0), E;
|
|
33089
33094
|
},
|
|
33090
33095
|
{}
|
|
33091
33096
|
);
|
|
@@ -33097,12 +33102,12 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33097
33102
|
}, S = () => {
|
|
33098
33103
|
var x;
|
|
33099
33104
|
const R = (x = o.gridApi) == null ? void 0 : x.getColumnState().reduce(
|
|
33100
|
-
(
|
|
33105
|
+
(I, k) => (I[k.colId] = Number(k.width), I),
|
|
33101
33106
|
{}
|
|
33102
|
-
), E = a.value.map((
|
|
33103
|
-
...
|
|
33104
|
-
hide:
|
|
33105
|
-
width:
|
|
33107
|
+
), E = a.value.map((I) => ({
|
|
33108
|
+
...I,
|
|
33109
|
+
hide: I.field ? !l.value[I.field] : !1,
|
|
33110
|
+
width: I.field ? R == null ? void 0 : R[I.field] : I.width
|
|
33106
33111
|
}));
|
|
33107
33112
|
s("update:modelValue", E), s("change", E), s("input", E);
|
|
33108
33113
|
}, _ = (R) => {
|
|
@@ -33216,8 +33221,8 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33216
33221
|
}, [
|
|
33217
33222
|
(W(!0), le(At, null, An(f.value.filter(
|
|
33218
33223
|
(x) => {
|
|
33219
|
-
var
|
|
33220
|
-
return x.headerName && ((
|
|
33224
|
+
var I;
|
|
33225
|
+
return x.headerName && ((I = x.headerName) == null ? void 0 : I.length) > 0;
|
|
33221
33226
|
}
|
|
33222
33227
|
), (x) => Je((W(), Ge(Py, {
|
|
33223
33228
|
key: x.field,
|
|
@@ -33280,7 +33285,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33280
33285
|
backgroundColor: "#A6A6A6",
|
|
33281
33286
|
border: "1px solid #A6A6A6"
|
|
33282
33287
|
};
|
|
33283
|
-
const T = f.value.find((
|
|
33288
|
+
const T = f.value.find((P) => P.id === r.value), A = String((T == null ? void 0 : T.color) || "white");
|
|
33284
33289
|
return {
|
|
33285
33290
|
backgroundColor: A,
|
|
33286
33291
|
border: _m(A, "white") ? "1px solid #ccc" : "1px solid #fff"
|
|
@@ -33289,7 +33294,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33289
33294
|
var T;
|
|
33290
33295
|
(T = d.value) == null || T.focus();
|
|
33291
33296
|
}, f = B([]), p = B(!1), m = B(!1), y = B(null), w = B(o.INITIAL_PAGE), S = B(!0), _ = B(0), C = B(""), R = U(() => !!(s.id && s.workspaceId)), E = (T) => {
|
|
33292
|
-
const A = f.value.find((
|
|
33297
|
+
const A = f.value.find((P) => P.id === T.value);
|
|
33293
33298
|
A && u(A);
|
|
33294
33299
|
}, x = (T) => ({
|
|
33295
33300
|
label: T.name,
|
|
@@ -33303,13 +33308,13 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33303
33308
|
data: T,
|
|
33304
33309
|
id: T.id,
|
|
33305
33310
|
color: T.color
|
|
33306
|
-
}),
|
|
33311
|
+
}), I = async (T = o.INITIAL_PAGE, A = "", P = !1) => {
|
|
33307
33312
|
var N;
|
|
33308
33313
|
if (!R.value) {
|
|
33309
33314
|
console.error("Missing required props", s);
|
|
33310
33315
|
return;
|
|
33311
33316
|
}
|
|
33312
|
-
|
|
33317
|
+
P ? m.value = !0 : p.value = !0, y.value = null;
|
|
33313
33318
|
try {
|
|
33314
33319
|
const J = {
|
|
33315
33320
|
workspaceId: String(s.workspaceId),
|
|
@@ -33322,28 +33327,28 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33322
33327
|
throw new Error("API service getAssignableStatus is undefined");
|
|
33323
33328
|
const ee = await s.getStatusFunc(J);
|
|
33324
33329
|
if (!ee) {
|
|
33325
|
-
|
|
33330
|
+
P || (f.value = []), S.value = !1;
|
|
33326
33331
|
return;
|
|
33327
33332
|
}
|
|
33328
33333
|
const Y = ee.data.map(x);
|
|
33329
|
-
f.value =
|
|
33334
|
+
f.value = P ? [...f.value, ...Y] : Y, _.value = ((N = ee.meta) == null ? void 0 : N.total) ?? ee.data.length, S.value = f.value.length < _.value, w.value = T;
|
|
33330
33335
|
} catch (J) {
|
|
33331
|
-
console.error("Error fetching statuses:", J), y.value = "Failed to load statuses",
|
|
33336
|
+
console.error("Error fetching statuses:", J), y.value = "Failed to load statuses", P || (f.value = []), S.value = !1, a("error", y.value);
|
|
33332
33337
|
} finally {
|
|
33333
33338
|
p.value = !1, m.value = !1;
|
|
33334
33339
|
}
|
|
33335
33340
|
}, k = async () => {
|
|
33336
|
-
!S.value || m.value || await
|
|
33341
|
+
!S.value || m.value || await I(w.value + 1, C.value, !0);
|
|
33337
33342
|
};
|
|
33338
33343
|
st(
|
|
33339
33344
|
[() => s.id, () => s.workspaceId],
|
|
33340
33345
|
() => {
|
|
33341
|
-
|
|
33346
|
+
I();
|
|
33342
33347
|
},
|
|
33343
33348
|
{ deep: !0, immediate: !0 }
|
|
33344
33349
|
);
|
|
33345
33350
|
const O = async (T) => {
|
|
33346
|
-
C.value = T, w.value = o.INITIAL_PAGE, await
|
|
33351
|
+
C.value = T, w.value = o.INITIAL_PAGE, await I(o.INITIAL_PAGE, T, !1);
|
|
33347
33352
|
};
|
|
33348
33353
|
return t({
|
|
33349
33354
|
focus: h,
|
|
@@ -33355,9 +33360,9 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33355
33360
|
placement: "bottom-start",
|
|
33356
33361
|
"max-width": 500
|
|
33357
33362
|
}, {
|
|
33358
|
-
trigger: me(({ open:
|
|
33363
|
+
trigger: me(({ open: P }) => [
|
|
33359
33364
|
re(Li, {
|
|
33360
|
-
actived:
|
|
33365
|
+
actived: P,
|
|
33361
33366
|
class: j(T.$style["status-wrapper"])
|
|
33362
33367
|
}, {
|
|
33363
33368
|
suffix: me(() => [
|
|
@@ -33365,7 +33370,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33365
33370
|
re(ct, {
|
|
33366
33371
|
src: "ChevronUp",
|
|
33367
33372
|
source: "remote",
|
|
33368
|
-
class: j([[T.$style["dropdown-icon"]], { [T.$style["dropdown-icon-show"]]: !
|
|
33373
|
+
class: j([[T.$style["dropdown-icon"]], { [T.$style["dropdown-icon-show"]]: !P }])
|
|
33369
33374
|
}, null, 8, ["class"])
|
|
33370
33375
|
])
|
|
33371
33376
|
]),
|
|
@@ -33393,7 +33398,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33393
33398
|
_: 2
|
|
33394
33399
|
}, 1032, ["actived", "class"])
|
|
33395
33400
|
]),
|
|
33396
|
-
content: me(({ closeDropdown:
|
|
33401
|
+
content: me(({ closeDropdown: P }) => {
|
|
33397
33402
|
var N;
|
|
33398
33403
|
return [
|
|
33399
33404
|
re(Nl, {
|
|
@@ -33407,7 +33412,7 @@ const aX = /* @__PURE__ */ lt({
|
|
|
33407
33412
|
error: y.value,
|
|
33408
33413
|
onSearch: O,
|
|
33409
33414
|
onSelect: (J) => {
|
|
33410
|
-
E(J),
|
|
33415
|
+
E(J), P();
|
|
33411
33416
|
},
|
|
33412
33417
|
onLoadMore: k,
|
|
33413
33418
|
onCancel: A[0] || (A[0] = (J) => a("cancel")),
|
|
@@ -33756,12 +33761,12 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33756
33761
|
},
|
|
33757
33762
|
emits: ["update:modelValue"],
|
|
33758
33763
|
setup(e, { expose: t, emit: n }) {
|
|
33759
|
-
const i = B(null), o = (
|
|
33764
|
+
const i = B(null), o = (I) => `<svg xmlns="http://www.w3.org/2000/svg" width="49" height="49" viewBox="0 0 49 49" fill="none">
|
|
33760
33765
|
<g clip-path="url(#clip0)">
|
|
33761
33766
|
<path d="M9.86719 3.56641C9.86719 2.05448 11.1053 0.816406 12.6172 0.816406H33.5136L45.3672 12.67V45.5664C45.3672 47.0783 44.1291 48.3164 42.6172 48.3164H12.6172C11.1053 48.3164 9.86719 47.0783 9.86719 45.5664V3.56641Z" stroke="#232323" stroke-width="0.5"/>
|
|
33762
33767
|
<path d="M36.6172 12.5664H45.6172L33.6172 0.566406V9.56641C33.6172 11.2164 34.9672 12.5664 36.6172 12.5664Z" fill="#A6A6A6"/>
|
|
33763
33768
|
<path d="M39.6172 39.5664C39.6172 40.3914 38.9422 41.0664 38.1172 41.0664H5.11719C4.29219 41.0664 3.61719 40.3914 3.61719 39.5664V24.5664C3.61719 23.7414 4.29219 23.0664 5.11719 23.0664H38.1172C38.9422 23.0664 39.6172 23.7414 39.6172 24.5664V39.5664Z" fill="#F7941D"/>
|
|
33764
|
-
<text x="10" y="35" font-family="Arial" font-size="10" fill="white">${
|
|
33769
|
+
<text x="10" y="35" font-family="Arial" font-size="10" fill="white">${I.toUpperCase()}</text>
|
|
33765
33770
|
</g>
|
|
33766
33771
|
<defs>
|
|
33767
33772
|
<clipPath id="clip0">
|
|
@@ -33774,29 +33779,29 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33774
33779
|
isValid: void 0
|
|
33775
33780
|
}), d = U(
|
|
33776
33781
|
() => {
|
|
33777
|
-
var
|
|
33778
|
-
return ((
|
|
33782
|
+
var I;
|
|
33783
|
+
return ((I = u.acceptTypes) == null ? void 0 : I.map((k) => `.${k}`).join(",")) || ".xlsx,.xls,.csv";
|
|
33779
33784
|
}
|
|
33780
33785
|
), h = U(() => c.value.format ? o(c.value.format) : ""), f = U(() => {
|
|
33781
|
-
var
|
|
33786
|
+
var I;
|
|
33782
33787
|
if (!c.value.isValid)
|
|
33783
|
-
return `Invalid file type. Please upload a ${(
|
|
33788
|
+
return `Invalid file type. Please upload a ${(I = u.acceptTypes) == null ? void 0 : I.join(", ")} file.`;
|
|
33784
33789
|
}), p = U(() => !!c.value.file), m = () => {
|
|
33785
|
-
var
|
|
33786
|
-
(
|
|
33787
|
-
}, y = U(() => c.value.file ? c.value.file.name : ""), w = (
|
|
33790
|
+
var I;
|
|
33791
|
+
(I = i.value) == null || I.click();
|
|
33792
|
+
}, y = U(() => c.value.file ? c.value.file.name : ""), w = (I) => {
|
|
33788
33793
|
var T;
|
|
33789
|
-
const k = u.acceptTypes || ["xlsx", "xls", "csv"], O = (T =
|
|
33794
|
+
const k = u.acceptTypes || ["xlsx", "xls", "csv"], O = (T = I.name.split(".").pop()) == null ? void 0 : T.toLowerCase();
|
|
33790
33795
|
return O ? k.includes(O) : !1;
|
|
33791
|
-
}, S = (
|
|
33796
|
+
}, S = (I) => {
|
|
33792
33797
|
var O, T;
|
|
33793
|
-
const k = w(
|
|
33794
|
-
|
|
33798
|
+
const k = w(I);
|
|
33799
|
+
I && k ? (c.value.isValid = k, a.value = !k, c.value.file = I, c.value.format = ((O = I.name.split(".").pop()) == null ? void 0 : O.toLowerCase()) || null) : r(
|
|
33795
33800
|
`Invalid file type. Please upload a ${(T = u.acceptTypes) == null ? void 0 : T.join(", ")} file.`,
|
|
33796
33801
|
"error"
|
|
33797
33802
|
);
|
|
33798
|
-
}, _ = (
|
|
33799
|
-
const k =
|
|
33803
|
+
}, _ = (I) => {
|
|
33804
|
+
const k = I.target;
|
|
33800
33805
|
if (k.files && k.files[0]) {
|
|
33801
33806
|
const O = k.files[0];
|
|
33802
33807
|
S(O);
|
|
@@ -33805,16 +33810,16 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33805
33810
|
l.value = !0;
|
|
33806
33811
|
}, R = () => {
|
|
33807
33812
|
l.value = !1;
|
|
33808
|
-
}, E = (
|
|
33809
|
-
if (l.value = !1,
|
|
33810
|
-
const k =
|
|
33813
|
+
}, E = (I) => {
|
|
33814
|
+
if (l.value = !1, I.dataTransfer && I.dataTransfer.files && I.dataTransfer.files[0]) {
|
|
33815
|
+
const k = I.dataTransfer.files[0];
|
|
33811
33816
|
S(k);
|
|
33812
33817
|
}
|
|
33813
33818
|
}, x = n;
|
|
33814
33819
|
return st(
|
|
33815
33820
|
c,
|
|
33816
|
-
(
|
|
33817
|
-
x("update:modelValue",
|
|
33821
|
+
(I) => {
|
|
33822
|
+
x("update:modelValue", I);
|
|
33818
33823
|
},
|
|
33819
33824
|
{ deep: !0 }
|
|
33820
33825
|
), t({
|
|
@@ -33822,12 +33827,12 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33822
33827
|
clear: () => {
|
|
33823
33828
|
i.value && (i.value.value = ""), c.value = { file: null, format: null }, a.value = !1;
|
|
33824
33829
|
}
|
|
33825
|
-
}), (
|
|
33830
|
+
}), (I, k) => {
|
|
33826
33831
|
const O = Al("tooltip");
|
|
33827
33832
|
return W(), le("div", {
|
|
33828
33833
|
class: j([
|
|
33829
|
-
|
|
33830
|
-
{ [
|
|
33834
|
+
I.$style["drop-area"],
|
|
33835
|
+
{ [I.$style["is-dragging"]]: l.value, [I.$style.error]: a.value }
|
|
33831
33836
|
]),
|
|
33832
33837
|
onDragenter: Kt(C, ["prevent"]),
|
|
33833
33838
|
onDragover: Kt(C, ["prevent"]),
|
|
@@ -33837,7 +33842,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33837
33842
|
}, [
|
|
33838
33843
|
p.value ? qe("", !0) : (W(), le("div", {
|
|
33839
33844
|
key: 0,
|
|
33840
|
-
class: j(
|
|
33845
|
+
class: j(I.$style["drop-area-content"])
|
|
33841
33846
|
}, [
|
|
33842
33847
|
re(ct, {
|
|
33843
33848
|
src: "Upload",
|
|
@@ -33847,7 +33852,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33847
33852
|
fe("span", null, [
|
|
33848
33853
|
re(ft, {
|
|
33849
33854
|
variant: ["tertiary", "text"],
|
|
33850
|
-
class: j(
|
|
33855
|
+
class: j(I.$style["upload-btn"])
|
|
33851
33856
|
}, {
|
|
33852
33857
|
default: me(() => [...k[0] || (k[0] = [
|
|
33853
33858
|
ut(" Click to upload ", -1)
|
|
@@ -33859,11 +33864,11 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33859
33864
|
], 2)),
|
|
33860
33865
|
p.value ? Je((W(), le("div", {
|
|
33861
33866
|
key: 1,
|
|
33862
|
-
class: j(
|
|
33867
|
+
class: j(I.$style["drop-area-file"])
|
|
33863
33868
|
}, [
|
|
33864
33869
|
fe("div", { innerHTML: h.value }, null, 8, jX),
|
|
33865
33870
|
Je((W(), le("span", {
|
|
33866
|
-
class: j(
|
|
33871
|
+
class: j(I.$style["file-name"])
|
|
33867
33872
|
}, [
|
|
33868
33873
|
ut(yt(y.value), 1)
|
|
33869
33874
|
], 2)), [
|
|
@@ -33969,27 +33974,27 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33969
33974
|
appendTo: "parent",
|
|
33970
33975
|
offset: [0, 2]
|
|
33971
33976
|
}), f = B(null), p = () => {
|
|
33972
|
-
|
|
33977
|
+
P.value = [], mt.value = !1, bt.value = !1, ie.value = "any";
|
|
33973
33978
|
}, m = U(() => a.value || d.value), y = U(() => {
|
|
33974
33979
|
var L;
|
|
33975
33980
|
return {
|
|
33976
33981
|
disabled: !1,
|
|
33977
33982
|
error: !1,
|
|
33978
33983
|
readOnly: !1,
|
|
33979
|
-
isEmpty: ((L =
|
|
33984
|
+
isEmpty: ((L = P.value) == null ? void 0 : L.length) === 0,
|
|
33980
33985
|
wrapperRef: o,
|
|
33981
33986
|
active: m,
|
|
33982
33987
|
bordered: !0
|
|
33983
33988
|
};
|
|
33984
33989
|
}), { argsMain: w } = Mi(y), S = fn, _ = n, C = U(() => {
|
|
33985
33990
|
var L;
|
|
33986
|
-
return Math.max(0, (((L =
|
|
33991
|
+
return Math.max(0, (((L = P.value) == null ? void 0 : L.length) || 0) - i.maxVisible);
|
|
33987
33992
|
}), R = U(() => {
|
|
33988
33993
|
var L;
|
|
33989
|
-
return C.value <= 0 ? "" : ((L =
|
|
33990
|
-
}), E = B(!1), x = B(!1),
|
|
33994
|
+
return C.value <= 0 ? "" : ((L = P.value) == null ? void 0 : L.slice(i.maxVisible).map((q) => q.name).join(", ")) || "";
|
|
33995
|
+
}), E = B(!1), x = B(!1), I = B(null), k = B(1), O = B(!0), T = B(0), A = B(""), P = B([]), N = U(() => {
|
|
33991
33996
|
var L;
|
|
33992
|
-
return ((L =
|
|
33997
|
+
return ((L = P.value) == null ? void 0 : L.map((q) => q.id)) || [];
|
|
33993
33998
|
}), { assigneeList: J, mergedOptions: ee } = QI({
|
|
33994
33999
|
...i,
|
|
33995
34000
|
value: []
|
|
@@ -33997,7 +34002,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
33997
34002
|
var De, Pe, Ve, Me, Oe;
|
|
33998
34003
|
if (!Y.value)
|
|
33999
34004
|
throw console.error("API service or item identifiers are undefined"), new Error("API service or item identifiers are undefined");
|
|
34000
|
-
if (ue ? x.value = !0 : E.value = !0,
|
|
34005
|
+
if (ue ? x.value = !0 : E.value = !0, I.value = null, !((De = Y.value) != null && De.getEntityUserRoles))
|
|
34001
34006
|
throw new Error("API service getEntityUserRoles is undefined");
|
|
34002
34007
|
const Te = Bn.getInstance().getItem("ws.code");
|
|
34003
34008
|
try {
|
|
@@ -34010,19 +34015,19 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34010
34015
|
})), at = ((Ve = Rd(xe.data)) == null ? void 0 : Ve.map(dS)) ?? [];
|
|
34011
34016
|
J.value = ue ? nh(J.value, at, "id") : at, T.value = xe.meta.total, O.value = (((Me = xe == null ? void 0 : xe.meta) == null ? void 0 : Me.current_page) || 0) < (((Oe = xe == null ? void 0 : xe.meta) == null ? void 0 : Oe.last_page) || 0), k.value = L;
|
|
34012
34017
|
} catch (xe) {
|
|
34013
|
-
console.error("Error fetching assignable users:", xe),
|
|
34018
|
+
console.error("Error fetching assignable users:", xe), I.value = "Failed to load assignable users";
|
|
34014
34019
|
} finally {
|
|
34015
34020
|
E.value = !1, x.value = !1;
|
|
34016
34021
|
}
|
|
34017
34022
|
}, H = (L) => {
|
|
34018
34023
|
var q, ue;
|
|
34019
|
-
if ((q =
|
|
34020
|
-
|
|
34024
|
+
if ((q = P.value) != null && q.some((Te) => Te.id === L.data.id)) {
|
|
34025
|
+
P.value = (ue = P.value) == null ? void 0 : ue.filter(
|
|
34021
34026
|
(Te) => Te.id !== L.data.id
|
|
34022
34027
|
);
|
|
34023
34028
|
return;
|
|
34024
34029
|
}
|
|
34025
|
-
|
|
34030
|
+
P.value = [...P.value || [], L.data];
|
|
34026
34031
|
}, K = () => {
|
|
34027
34032
|
!x.value && O.value && V(k.value + 1, A.value, !0);
|
|
34028
34033
|
}, ve = Mo(async (L) => {
|
|
@@ -34037,7 +34042,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34037
34042
|
);
|
|
34038
34043
|
const Ce = U(() => {
|
|
34039
34044
|
var L;
|
|
34040
|
-
return ((L =
|
|
34045
|
+
return ((L = P.value) == null ? void 0 : L.slice(0, 3)) || [];
|
|
34041
34046
|
}), ae = U(() => Ce.value.map((L) => ({
|
|
34042
34047
|
id: L.id,
|
|
34043
34048
|
name: L.name,
|
|
@@ -34082,20 +34087,20 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34082
34087
|
}), bt = B(!1), mt = B(!1);
|
|
34083
34088
|
return t({
|
|
34084
34089
|
getData: () => ({
|
|
34085
|
-
assignees:
|
|
34090
|
+
assignees: P.value,
|
|
34086
34091
|
showNoAssignee: bt.value,
|
|
34087
34092
|
showMe: mt.value,
|
|
34088
34093
|
selectedTypeId: ie.value
|
|
34089
34094
|
}),
|
|
34090
34095
|
clear: p,
|
|
34091
34096
|
setData: (L) => {
|
|
34092
|
-
|
|
34097
|
+
P.value = L.assignees || [], bt.value = L.showNoAssignee || !1, mt.value = L.showMe || !1, ie.value = L.selectedTypeId || "any";
|
|
34093
34098
|
}
|
|
34094
34099
|
}), st(
|
|
34095
|
-
[
|
|
34100
|
+
[P, bt, mt, ie],
|
|
34096
34101
|
() => {
|
|
34097
34102
|
_("updated", {
|
|
34098
|
-
assignees:
|
|
34103
|
+
assignees: P.value,
|
|
34099
34104
|
showNoAssignee: bt.value,
|
|
34100
34105
|
showMe: mt.value,
|
|
34101
34106
|
selectedTypeId: ie.value
|
|
@@ -34112,7 +34117,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34112
34117
|
suffix: me(({ hovered: ue, focused: Te }) => {
|
|
34113
34118
|
var De;
|
|
34114
34119
|
return [
|
|
34115
|
-
(
|
|
34120
|
+
(P.value && ((De = P.value) == null ? void 0 : De.length) > 0 || bt.value || mt.value) && (ue || Te) ? (W(), le("div", {
|
|
34116
34121
|
key: 0,
|
|
34117
34122
|
class: "wrapper-suffix",
|
|
34118
34123
|
onClick: Kt(p, ["stop", "prevent"])
|
|
@@ -34510,7 +34515,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34510
34515
|
})), C = B(null), { argsMain: R } = Mi(_), E = U(() => u.value.filter((H) => l.value.includes(H.id))), x = U(() => {
|
|
34511
34516
|
const H = E.value.length;
|
|
34512
34517
|
return H === 0 ? "" : H === 1 ? E.value[0].label : `${H} statuses `;
|
|
34513
|
-
}),
|
|
34518
|
+
}), I = U(() => l.value), k = U(() => {
|
|
34514
34519
|
if (l.value.length === 0)
|
|
34515
34520
|
return {
|
|
34516
34521
|
backgroundColor: "#A6A6A6",
|
|
@@ -34533,7 +34538,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34533
34538
|
data: H,
|
|
34534
34539
|
id: H.id,
|
|
34535
34540
|
color: H.color
|
|
34536
|
-
}), { apiServices: T } = di(!1, i), A = _i("entityId"),
|
|
34541
|
+
}), { apiServices: T } = di(!1, i), A = _i("entityId"), P = async (H = o.INITIAL_PAGE, K = "", ve = !1) => {
|
|
34537
34542
|
var Ce, ae;
|
|
34538
34543
|
ve ? d.value = !0 : c.value = !0, h.value = null;
|
|
34539
34544
|
try {
|
|
@@ -34558,9 +34563,9 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34558
34563
|
const K = H.id;
|
|
34559
34564
|
l.value.includes(K) ? l.value = l.value.filter((Ce) => Ce !== K) : l.value = [...l.value, K], w("update:modelValue", l.value);
|
|
34560
34565
|
}, J = async () => {
|
|
34561
|
-
!p.value || d.value || await
|
|
34566
|
+
!p.value || d.value || await P(f.value + 1, y.value, !0);
|
|
34562
34567
|
}, ee = async (H) => {
|
|
34563
|
-
y.value = H, f.value = o.INITIAL_PAGE, await
|
|
34568
|
+
y.value = H, f.value = o.INITIAL_PAGE, await P(o.INITIAL_PAGE, H, !1);
|
|
34564
34569
|
}, Y = () => {
|
|
34565
34570
|
l.value = [], w("update:modelValue", []);
|
|
34566
34571
|
}, V = () => {
|
|
@@ -34571,7 +34576,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34571
34576
|
() => a.value,
|
|
34572
34577
|
(H) => {
|
|
34573
34578
|
var K;
|
|
34574
|
-
H && (
|
|
34579
|
+
H && (P(1, y.value, !1), (K = C.value) == null || K.focus());
|
|
34575
34580
|
}
|
|
34576
34581
|
), st(
|
|
34577
34582
|
() => l.value,
|
|
@@ -34650,7 +34655,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34650
34655
|
style: { width: "396px" },
|
|
34651
34656
|
ref_key: "searchListRef",
|
|
34652
34657
|
ref: C,
|
|
34653
|
-
"selected-id":
|
|
34658
|
+
"selected-id": I.value,
|
|
34654
34659
|
options: u.value,
|
|
34655
34660
|
loading: c.value,
|
|
34656
34661
|
"loading-more": d.value,
|
|
@@ -34904,10 +34909,10 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34904
34909
|
...S.value,
|
|
34905
34910
|
[X]: he
|
|
34906
34911
|
};
|
|
34907
|
-
}, R = U(() => d.value || ""), E = B("AND"), x = U(() => k.value ? s.ACTIVE : s.DEFAULT),
|
|
34912
|
+
}, R = U(() => d.value || ""), E = B("AND"), x = U(() => k.value ? s.ACTIVE : s.DEFAULT), I = U(() => ({
|
|
34908
34913
|
border: k.value ? "2px solid var(--primary-color)" : "",
|
|
34909
34914
|
backgroundColor: k.value ? "#F0F7FF" : ""
|
|
34910
|
-
})), k = U(() =>
|
|
34915
|
+
})), k = U(() => P(_.value) > 0), O = U(() => P(S.value)), T = U(() => O.value === 0), A = U(() => O.value <= 1), P = (X) => {
|
|
34911
34916
|
var nt, _e, gt;
|
|
34912
34917
|
let he = 0;
|
|
34913
34918
|
return X && ((((nt = X.assignees) == null ? void 0 : nt.assignees) && X.assignees.assignees.length > 0 || ((_e = X.assignees) == null ? void 0 : _e.showMe) || ((gt = X.assignees) == null ? void 0 : gt.showNoAssignee)) && he++, X.statuses && X.statuses.length > 0 && he++, X.archiveStatuses && X.archiveStatuses.length > 0 && he++, X.startDateRange && (X.startDateRange[0] || X.startDateRange[1]) && he++, X.dueDateRange && (X.dueDateRange[0] || X.dueDateRange[1]) && he++), he;
|
|
@@ -34993,7 +34998,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
34993
34998
|
ref_key: "triggerRef",
|
|
34994
34999
|
ref: l,
|
|
34995
35000
|
actived: z(a) || k.value,
|
|
34996
|
-
style: un(
|
|
35001
|
+
style: un(I.value)
|
|
34997
35002
|
}, Th({
|
|
34998
35003
|
prefix: me(() => [
|
|
34999
35004
|
(W(), le("svg", {
|
|
@@ -35205,23 +35210,23 @@ const GX = /* @__PURE__ */ lt({
|
|
|
35205
35210
|
standardNameforIcon: d,
|
|
35206
35211
|
isMetricReadonly: h
|
|
35207
35212
|
} = ik(s), f = (w) => {
|
|
35208
|
-
var C, R, E, x,
|
|
35209
|
-
const S = ((R = (C = n.params) == null ? void 0 : C.colDef) == null ? void 0 : R.field) || "", _ = (k = (E = n.params) == null ? void 0 : E.api) == null ? void 0 : k.getRowNode(String((
|
|
35213
|
+
var C, R, E, x, I, k, O;
|
|
35214
|
+
const S = ((R = (C = n.params) == null ? void 0 : C.colDef) == null ? void 0 : R.field) || "", _ = (k = (E = n.params) == null ? void 0 : E.api) == null ? void 0 : k.getRowNode(String((I = (x = n.params) == null ? void 0 : x.data) == null ? void 0 : I.id));
|
|
35210
35215
|
_ == null || _.setDataValue(S, w), (O = n.params) == null || O.api.stopEditing();
|
|
35211
35216
|
}, p = async (w) => {
|
|
35212
35217
|
var _, C, R, E;
|
|
35213
35218
|
const S = await ((E = o.value) == null ? void 0 : E.bulkUpdateMetric({
|
|
35214
35219
|
workspaceId: n.workspaceId || "",
|
|
35215
35220
|
itemIds: [((C = (_ = n.params) == null ? void 0 : _.data) == null ? void 0 : C.id) || ""],
|
|
35216
|
-
value: w.toString(),
|
|
35221
|
+
value: w == 0 || w === null ? null : w.toString(),
|
|
35217
35222
|
metricId: ((R = l.value) == null ? void 0 : R.id) || ""
|
|
35218
35223
|
}));
|
|
35219
|
-
(S == null ? void 0 : S.message) == "Done" ? (console.log("Metric value updated successfully to:", w), f(w.toString())) : console.log("Failed to update metric value");
|
|
35224
|
+
(S == null ? void 0 : S.message) == "Done" ? (console.log("Metric value updated successfully to:", w), f(w === null ? null : w.toString())) : console.log("Failed to update metric value");
|
|
35220
35225
|
};
|
|
35221
35226
|
st(
|
|
35222
35227
|
() => r.value,
|
|
35223
35228
|
(w) => {
|
|
35224
|
-
console.log("RatingRenderer: internalValue changed to", w), p(w);
|
|
35229
|
+
console.log("RatingRenderer: internalValue changed to", w), p(w === 0 ? null : w);
|
|
35225
35230
|
}
|
|
35226
35231
|
);
|
|
35227
35232
|
const m = U(() => ({
|
|
@@ -35395,9 +35400,9 @@ const GX = /* @__PURE__ */ lt({
|
|
|
35395
35400
|
success: "Import successful",
|
|
35396
35401
|
idle: "Create new work"
|
|
35397
35402
|
})[a.value]), u = B(null), c = B({ file: null, format: null }), { apiServices: d } = di(!1, o), h = async (O) => {
|
|
35398
|
-
var A,
|
|
35403
|
+
var A, P;
|
|
35399
35404
|
if (((A = d == null ? void 0 : d.value) == null ? void 0 : A.getStatuses) === void 0) {
|
|
35400
|
-
console.error("API services not available", (
|
|
35405
|
+
console.error("API services not available", (P = d == null ? void 0 : d.value) == null ? void 0 : P.getStatuses);
|
|
35401
35406
|
return;
|
|
35402
35407
|
}
|
|
35403
35408
|
return await d.value.getStatuses(o.workspaceId, o.entityId, O);
|
|
@@ -35416,8 +35421,8 @@ const GX = /* @__PURE__ */ lt({
|
|
|
35416
35421
|
}
|
|
35417
35422
|
f.value = !1;
|
|
35418
35423
|
}, m = async (O) => {
|
|
35419
|
-
var
|
|
35420
|
-
const T = new FormData(), A = ((
|
|
35424
|
+
var P, N, J;
|
|
35425
|
+
const T = new FormData(), A = ((P = O.name.split(".").pop()) == null ? void 0 : P.toString()) || "";
|
|
35421
35426
|
if (T.append("file", O), T.append("format", A), T.append("template_flow_status_id", R.value || ""), !d.value || !o.workspaceId || !o.entityId) {
|
|
35422
35427
|
console.error("API services not available");
|
|
35423
35428
|
return;
|
|
@@ -35450,12 +35455,12 @@ const GX = /* @__PURE__ */ lt({
|
|
|
35450
35455
|
t({
|
|
35451
35456
|
open: s
|
|
35452
35457
|
});
|
|
35453
|
-
const R = B(null), E = U(() => !c.value.file || !c.value.format || !c.value.isValid || !R.value), x = B(null),
|
|
35458
|
+
const R = B(null), E = U(() => !c.value.file || !c.value.format || !c.value.isValid || !R.value), x = B(null), I = () => {
|
|
35454
35459
|
var O, T;
|
|
35455
35460
|
(O = u.value) == null || O.clear(), r.value = "", c.value = { file: null, format: null }, R.value = null, (T = x == null ? void 0 : x.value) == null || T.clear(), a.value = "idle";
|
|
35456
35461
|
}, k = () => {
|
|
35457
35462
|
var O;
|
|
35458
|
-
|
|
35463
|
+
I(), (O = i.value) == null || O.hide();
|
|
35459
35464
|
};
|
|
35460
35465
|
return (O, T) => (W(), Ge(z(rk), {
|
|
35461
35466
|
"popup-name": l.value,
|
|
@@ -35465,7 +35470,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
35465
35470
|
"close-on-escape": !0,
|
|
35466
35471
|
ref_key: "popupRef",
|
|
35467
35472
|
ref: i,
|
|
35468
|
-
onHidden:
|
|
35473
|
+
onHidden: I
|
|
35469
35474
|
}, Th({
|
|
35470
35475
|
default: me(() => [
|
|
35471
35476
|
a.value === "importing" || a.value === "error" || a.value === "success" ? (W(), Ge(bk, {
|
|
@@ -35587,7 +35592,7 @@ const GX = /* @__PURE__ */ lt({
|
|
|
35587
35592
|
re(z(ft), {
|
|
35588
35593
|
style: { flex: "1" },
|
|
35589
35594
|
variant: "primary",
|
|
35590
|
-
onClick:
|
|
35595
|
+
onClick: I
|
|
35591
35596
|
}, {
|
|
35592
35597
|
default: me(() => [...T[6] || (T[6] = [
|
|
35593
35598
|
ut(" Try Again ", -1)
|
|
@@ -38323,7 +38328,7 @@ function Yo(e, t, n) {
|
|
|
38323
38328
|
return !1;
|
|
38324
38329
|
if (t != null && t.state && !t.state.forEach)
|
|
38325
38330
|
return Ne(32), !1;
|
|
38326
|
-
const w = (E, x,
|
|
38331
|
+
const w = (E, x, I, k, O) => {
|
|
38327
38332
|
if (!E)
|
|
38328
38333
|
return;
|
|
38329
38334
|
const T = qee(x, t.defaultState), A = T("flex").value1;
|
|
@@ -38337,29 +38342,29 @@ function Yo(e, t, n) {
|
|
|
38337
38342
|
A,
|
|
38338
38343
|
n
|
|
38339
38344
|
), A == null) {
|
|
38340
|
-
const
|
|
38341
|
-
if (
|
|
38345
|
+
const P = T("width").value1;
|
|
38346
|
+
if (P != null) {
|
|
38342
38347
|
const N = E.getColDef().minWidth ?? d.getDefaultColumnMinWidth();
|
|
38343
|
-
N != null &&
|
|
38348
|
+
N != null && P >= N && E.setActualWidth(P, n);
|
|
38344
38349
|
}
|
|
38345
38350
|
}
|
|
38346
|
-
O || !E.isPrimary() || (h == null || h.syncColumnWithState(E, n, T), o == null || o.syncColumnWithState(E, n, T,
|
|
38347
|
-
}, S = (E, x,
|
|
38351
|
+
O || !E.isPrimary() || (h == null || h.syncColumnWithState(E, n, T), o == null || o.syncColumnWithState(E, n, T, I), s == null || s.syncColumnWithState(E, n, T, k));
|
|
38352
|
+
}, S = (E, x, I) => {
|
|
38348
38353
|
var ve, Ce;
|
|
38349
|
-
const k = vO(e, n), O = x.slice(), T = {}, A = {},
|
|
38354
|
+
const k = vO(e, n), O = x.slice(), T = {}, A = {}, P = [], N = [], J = [];
|
|
38350
38355
|
let ee = 0;
|
|
38351
38356
|
const Y = (o == null ? void 0 : o.columns.slice()) ?? [], V = (s == null ? void 0 : s.columns.slice()) ?? [];
|
|
38352
38357
|
for (const ae of E) {
|
|
38353
38358
|
const ie = ae.colId;
|
|
38354
38359
|
if (ie.startsWith($m)) {
|
|
38355
|
-
|
|
38360
|
+
P.push(ae), J.push(ae);
|
|
38356
38361
|
continue;
|
|
38357
38362
|
}
|
|
38358
38363
|
if (Pr(ie)) {
|
|
38359
38364
|
N.push(ae), J.push(ae);
|
|
38360
38365
|
continue;
|
|
38361
38366
|
}
|
|
38362
|
-
const he =
|
|
38367
|
+
const he = I(ie);
|
|
38363
38368
|
he ? (w(he, ae, T, A, !1), is(O, he)) : (J.push(ae), ee += 1);
|
|
38364
38369
|
}
|
|
38365
38370
|
const H = (ae) => w(ae, null, T, A, !1);
|
|
@@ -38373,7 +38378,7 @@ function Yo(e, t, n) {
|
|
|
38373
38378
|
};
|
|
38374
38379
|
return K(
|
|
38375
38380
|
(ae) => (r == null ? void 0 : r.getColumn(ae)) ?? null,
|
|
38376
|
-
|
|
38381
|
+
P,
|
|
38377
38382
|
(ve = r == null ? void 0 : r.getColumns()) == null ? void 0 : ve.slice()
|
|
38378
38383
|
), K(
|
|
38379
38384
|
(ae) => (a == null ? void 0 : a.getColumn(ae)) ?? null,
|
|
@@ -38424,14 +38429,14 @@ function vO(e, t) {
|
|
|
38424
38429
|
for (const d of u)
|
|
38425
38430
|
c[d.colId] = d;
|
|
38426
38431
|
return () => {
|
|
38427
|
-
const d = (E, x,
|
|
38428
|
-
const O = x.map(k), T =
|
|
38432
|
+
const d = (E, x, I, k) => {
|
|
38433
|
+
const O = x.map(k), T = I.map(k);
|
|
38429
38434
|
if (wa(O, T))
|
|
38430
38435
|
return;
|
|
38431
|
-
const
|
|
38432
|
-
for (const J of
|
|
38433
|
-
|
|
38434
|
-
const N = [...
|
|
38436
|
+
const P = new Set(x);
|
|
38437
|
+
for (const J of I)
|
|
38438
|
+
P.delete(J) || P.add(J);
|
|
38439
|
+
const N = [...P];
|
|
38435
38440
|
a.dispatchEvent({
|
|
38436
38441
|
type: E,
|
|
38437
38442
|
columns: N,
|
|
@@ -38440,9 +38445,9 @@ function vO(e, t) {
|
|
|
38440
38445
|
});
|
|
38441
38446
|
}, h = (E) => {
|
|
38442
38447
|
const x = [];
|
|
38443
|
-
return s.forAllCols((
|
|
38444
|
-
const k = c[
|
|
38445
|
-
k && E(k,
|
|
38448
|
+
return s.forAllCols((I) => {
|
|
38449
|
+
const k = c[I.getColId()];
|
|
38450
|
+
k && E(k, I) && x.push(I);
|
|
38446
38451
|
}), x;
|
|
38447
38452
|
}, f = (E) => E.getColId();
|
|
38448
38453
|
d(
|
|
@@ -38457,7 +38462,7 @@ function vO(e, t) {
|
|
|
38457
38462
|
f
|
|
38458
38463
|
);
|
|
38459
38464
|
const m = h((E, x) => {
|
|
38460
|
-
const
|
|
38465
|
+
const I = E.aggFunc != null, k = I != x.isValueActive(), O = I && E.aggFunc != x.getAggFunc();
|
|
38461
38466
|
return k || O;
|
|
38462
38467
|
});
|
|
38463
38468
|
m.length > 0 && ste(a, "columnValueChanged", m, t), rc(a, h((E, x) => E.width != x.getActualWidth()), !0, t), mO(a, h((E, x) => E.pinned != x.getPinned()), t), ote(a, h((E, x) => E.hide == x.isVisible()), t);
|
|
@@ -44152,9 +44157,9 @@ var Uo = {
|
|
|
44152
44157
|
let d, h, f = 0;
|
|
44153
44158
|
this.invalidateVerticalScroll();
|
|
44154
44159
|
do {
|
|
44155
|
-
const { stickyTopHeight: y, stickyBottomHeight: w } = u, S = c.rowTop, _ = c.rowHeight, C = r.getPixelOffset(), R = c.rowTop - C, E = R + c.rowHeight, x = this.getVScrollPosition(),
|
|
44160
|
+
const { stickyTopHeight: y, stickyBottomHeight: w } = u, S = c.rowTop, _ = c.rowHeight, C = r.getPixelOffset(), R = c.rowTop - C, E = R + c.rowHeight, x = this.getVScrollPosition(), I = a.divStretchOffset, k = x.top + I, O = x.bottom + I, T = O - k, A = a.getScrollPositionForPixel(R), P = a.getScrollPositionForPixel(E - T), N = Math.min((A + P) / 2, R), J = k + y > R, ee = O - w < E;
|
|
44156
44161
|
let Y = null;
|
|
44157
|
-
t === "top" ? Y = A - y : t === "bottom" ? Y =
|
|
44162
|
+
t === "top" ? Y = A - y : t === "bottom" ? Y = P + w : t === "middle" ? Y = N : J ? Y = A - y : ee && (P - A > T ? Y = A - y : Y = P + w), Y !== null && (this.setVerticalScrollPosition(Y), l.redraw({ afterScroll: !0 })), d = S !== c.rowTop || _ !== c.rowHeight, h = y !== u.stickyTopHeight || w !== u.stickyBottomHeight, f++;
|
|
44158
44163
|
} while ((d || h) && f < 10);
|
|
44159
44164
|
if ((p = this.animationFrameSvc) == null || p.flushAllFrames(), n < 10 && (c != null && c.stub || !((m = this.beans.rowAutoHeight) != null && m.areRowsMeasured()))) {
|
|
44160
44165
|
const y = this.getVScrollPosition().top;
|
|
@@ -51709,9 +51714,9 @@ var Hre = class extends Fe {
|
|
|
51709
51714
|
});
|
|
51710
51715
|
const R = 1 / _;
|
|
51711
51716
|
S.forEach((E, x) => {
|
|
51712
|
-
const
|
|
51717
|
+
const I = x === S.length - 1;
|
|
51713
51718
|
let k;
|
|
51714
|
-
|
|
51719
|
+
I ? k = C : (k = Math.round(f[x] * d * R), C -= k);
|
|
51715
51720
|
const O = E.getMinWidth(), T = E.getMaxWidth();
|
|
51716
51721
|
k < O ? (k = O, m[E.getId()] = !0, y = !0) : T > 0 && k > T && (k = T, m[E.getId()] = !0, y = !0), p[E.getId()] = k;
|
|
51717
51722
|
});
|
|
@@ -57602,7 +57607,7 @@ function cr({
|
|
|
57602
57607
|
return e === Lo && (e = t), e !== t;
|
|
57603
57608
|
}
|
|
57604
57609
|
function uc(e, t, n) {
|
|
57605
|
-
var w, S, _, C, R, E, x,
|
|
57610
|
+
var w, S, _, C, R, E, x, I, k, O;
|
|
57606
57611
|
const i = e.gos.get("enableGroupEdit"), { key: o, event: s, cellStartedEdit: r, silent: a } = n ?? {}, l = Rn(e, t), u = (w = l == null ? void 0 : l.comp) == null ? void 0 : w.getCellEditor(), c = BM(e, t, o, r && !a), d = (S = e.editModelSvc) == null ? void 0 : S.getEdit(t);
|
|
57607
57612
|
let h = c.value;
|
|
57608
57613
|
if (h === void 0 && (h = d == null ? void 0 : d.sourceValue), (_ = e.editModelSvc) == null || _.setEdit(t, {
|
|
@@ -57619,7 +57624,7 @@ function uc(e, t, n) {
|
|
|
57619
57624
|
return (A = l.rangeFeature) == null ? void 0 : A.unsetComp();
|
|
57620
57625
|
}), (R = l.comp) == null || R.setEditDetails(p, m, y, e.gos.get("reactiveCustomComponents")), (E = l == null ? void 0 : l.rowCtrl) == null || E.refreshRow({ suppressFlash: !0 });
|
|
57621
57626
|
const T = (x = e.editModelSvc) == null ? void 0 : x.getEdit(t, !0);
|
|
57622
|
-
!a && !((
|
|
57627
|
+
!a && !((I = T == null ? void 0 : T.editorState) != null && I.cellStartedEditing) && ((k = e.editSvc) == null || k.dispatchCellEvent(
|
|
57623
57628
|
t,
|
|
57624
57629
|
s,
|
|
57625
57630
|
"cellEditingStarted",
|
|
@@ -57797,7 +57802,7 @@ function Pl(e, t) {
|
|
|
57797
57802
|
return;
|
|
57798
57803
|
const n = NM(e), i = new MM(), { ariaAnnounce: o, localeSvc: s, editModelSvc: r, gos: a } = e, l = a.get("editType") === "fullRow", c = Wk(s)("ariaValidationErrorPrefix", "Cell Editor Validation");
|
|
57799
57804
|
for (const C of n) {
|
|
57800
|
-
const { ctrl: R, editor: E } = C, { rowNode: x, column:
|
|
57805
|
+
const { ctrl: R, editor: E } = C, { rowNode: x, column: I } = R, k = ((h = E.getValidationErrors) == null ? void 0 : h.call(E)) ?? [], O = ((f = E.getValidationElement) == null ? void 0 : f.call(E, !1)) || !((p = E.isPopup) != null && p.call(E)) && R.eGui;
|
|
57801
57806
|
if (O) {
|
|
57802
57807
|
const T = k != null && k.length > 0, A = T ? k.join(". ") : "";
|
|
57803
57808
|
IQ(O, T), T && o.announceValue(`${c} ${k}`, "editorValidation"), O instanceof HTMLInputElement ? O.setCustomValidity(A) : O.classList.toggle("invalid", T);
|
|
@@ -57805,7 +57810,7 @@ function Pl(e, t) {
|
|
|
57805
57810
|
(k == null ? void 0 : k.length) > 0 && i.setCellValidation(
|
|
57806
57811
|
{
|
|
57807
57812
|
rowNode: x,
|
|
57808
|
-
column:
|
|
57813
|
+
column: I
|
|
57809
57814
|
},
|
|
57810
57815
|
{
|
|
57811
57816
|
errorMessages: k
|
|
@@ -58121,18 +58126,18 @@ var $ue = class extends Fe {
|
|
|
58121
58126
|
return;
|
|
58122
58127
|
}
|
|
58123
58128
|
if (!i || !S) {
|
|
58124
|
-
const R = h == null ? void 0 : h.isEditing(s), x = d.get("enableCellTextSelection") && e.defaultPrevented,
|
|
58125
|
-
s.focusCell(
|
|
58129
|
+
const R = h == null ? void 0 : h.isEditing(s), x = d.get("enableCellTextSelection") && e.defaultPrevented, I = (Ca() || x) && !R && !Ad(o) && !_;
|
|
58130
|
+
s.focusCell(I, e);
|
|
58126
58131
|
}
|
|
58127
58132
|
if (i && S && !c.isCellFocused(m)) {
|
|
58128
58133
|
e.preventDefault();
|
|
58129
58134
|
const R = c.getFocusedCell();
|
|
58130
58135
|
if (R) {
|
|
58131
|
-
const { column: E, rowIndex: x, rowPinned:
|
|
58136
|
+
const { column: E, rowIndex: x, rowPinned: I } = R;
|
|
58132
58137
|
h != null && h.isEditing(R) && (h == null || h.stopEditing(R)), c.setFocusedCell({
|
|
58133
58138
|
column: E,
|
|
58134
58139
|
rowIndex: x,
|
|
58135
|
-
rowPinned:
|
|
58140
|
+
rowPinned: I,
|
|
58136
58141
|
forceBrowserFocus: !0,
|
|
58137
58142
|
preventScrollOnBrowserFocus: !0,
|
|
58138
58143
|
sourceEvent: e
|
|
@@ -61322,7 +61327,7 @@ var yce = (
|
|
|
61322
61327
|
const c = this.getRowBufferInPixels(), d = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
|
|
61323
61328
|
let f = !1, p, m;
|
|
61324
61329
|
do {
|
|
61325
|
-
const C = t.getPixelOffset(), { pageFirstPixel: R, pageLastPixel: E } = t.getCurrentPagePixelRange(), x = e.divStretchOffset,
|
|
61330
|
+
const C = t.getPixelOffset(), { pageFirstPixel: R, pageLastPixel: E } = t.getCurrentPagePixelRange(), x = e.divStretchOffset, I = d.getVScrollPosition(), k = I.top, O = I.bottom;
|
|
61326
61331
|
h ? (p = R + x, m = E + x) : (p = Math.max(k + C - c, R) + x, m = Math.min(O + C + c, E) + x), this.firstVisibleVPixel = Math.max(k + C, R) + x, this.lastVisibleVPixel = Math.min(O + C, E) + x, f = this.ensureAllRowsInRangeHaveHeightsCalculated(p, m);
|
|
61327
61332
|
} while (f);
|
|
61328
61333
|
let y = n.getRowIndexAtPixel(p), w = n.getRowIndexAtPixel(m);
|
|
@@ -62820,9 +62825,9 @@ function nde(e, t = !1) {
|
|
|
62820
62825
|
pinned: R,
|
|
62821
62826
|
hide: E,
|
|
62822
62827
|
width: x,
|
|
62823
|
-
flex:
|
|
62828
|
+
flex: I
|
|
62824
62829
|
} = e[h];
|
|
62825
|
-
c.push(f), p && (n[m ?? d++] = { colId: f, sort: p }), y && (i[w ?? 0] = f), typeof S == "string" && o.push({ colId: f, aggFunc: S }), _ && (s[C ?? 0] = f), R && (R === "right" ? a : r).push(f), E && l.push(f), (
|
|
62830
|
+
c.push(f), p && (n[m ?? d++] = { colId: f, sort: p }), y && (i[w ?? 0] = f), typeof S == "string" && o.push({ colId: f, aggFunc: S }), _ && (s[C ?? 0] = f), R && (R === "right" ? a : r).push(f), E && l.push(f), (I != null || x) && u.push({ colId: f, flex: I ?? void 0, width: x });
|
|
62826
62831
|
}
|
|
62827
62832
|
return {
|
|
62828
62833
|
sort: n.length ? { sortModel: uw(n) } : void 0,
|
|
@@ -64614,19 +64619,19 @@ var Vde = {
|
|
|
64614
64619
|
if (h) {
|
|
64615
64620
|
const E = (c == null ? void 0 : c.handlerNameOrCallback) ?? (c == null ? void 0 : c.filterHandler), x = ti(this.model, e);
|
|
64616
64621
|
if (n.handlerGenerator != E) {
|
|
64617
|
-
const
|
|
64622
|
+
const I = n.handler, { handler: k, handlerParams: O } = this.createHandlerFromFunc(
|
|
64618
64623
|
o,
|
|
64619
64624
|
c.filterHandler,
|
|
64620
64625
|
m
|
|
64621
64626
|
);
|
|
64622
|
-
n.handler = k, n.handlerParams = O, n.handlerGenerator = E, delete this.model[e], (y = k.init) == null || y.call(k, { ...O, source: "init", model: null }), this.destroyBean(
|
|
64627
|
+
n.handler = k, n.handlerParams = O, n.handlerGenerator = E, delete this.model[e], (y = k.init) == null || y.call(k, { ...O, source: "init", model: null }), this.destroyBean(I), x != null && ((w = this.beans.filterManager) == null || w.onFilterChanged({
|
|
64623
64628
|
columns: [o],
|
|
64624
64629
|
source: t
|
|
64625
64630
|
}));
|
|
64626
64631
|
} else {
|
|
64627
|
-
const
|
|
64628
|
-
n.handlerParams =
|
|
64629
|
-
...
|
|
64632
|
+
const I = this.createHandlerParams(o, f == null ? void 0 : f.params);
|
|
64633
|
+
n.handlerParams = I, (_ = (S = n.handler).refresh) == null || _.call(S, {
|
|
64634
|
+
...I,
|
|
64630
64635
|
source: "colDef",
|
|
64631
64636
|
model: x
|
|
64632
64637
|
});
|
|
@@ -69943,14 +69948,14 @@ var npe = {
|
|
|
69943
69948
|
const x = _[R];
|
|
69944
69949
|
if (!x)
|
|
69945
69950
|
continue;
|
|
69946
|
-
let
|
|
69947
|
-
if (
|
|
69948
|
-
l.add(
|
|
69951
|
+
let I = this.getRowNode(o({ data: x, level: C }));
|
|
69952
|
+
if (I ? (p(I, x), f || (f = !!c && I.treeParent !== S)) : (I = this.createRowNode(x, C), r.add(I)), !c || l.has(I)) {
|
|
69953
|
+
l.add(I);
|
|
69949
69954
|
continue;
|
|
69950
69955
|
}
|
|
69951
|
-
l.add(
|
|
69956
|
+
l.add(I), I.treeParent = S;
|
|
69952
69957
|
const k = c(x);
|
|
69953
|
-
k && m(
|
|
69958
|
+
k && m(I, k, C + 1);
|
|
69954
69959
|
}
|
|
69955
69960
|
};
|
|
69956
69961
|
m(n, t, 0);
|
|
@@ -70145,16 +70150,16 @@ var npe = {
|
|
|
70145
70150
|
C && (y ?? (y = this.shouldSortContainsGroupCols(e)), C && (C = !y));
|
|
70146
70151
|
let R = null;
|
|
70147
70152
|
if (C) {
|
|
70148
|
-
let
|
|
70153
|
+
let I = !1;
|
|
70149
70154
|
if (h) {
|
|
70150
70155
|
const k = S.level + 1;
|
|
70151
|
-
k < h.length && (
|
|
70156
|
+
k < h.length && (I = h[k].getSort() === null);
|
|
70152
70157
|
}
|
|
70153
|
-
|
|
70158
|
+
I || (R = mpe(S));
|
|
70154
70159
|
} else !e.length || _ || (t && n ? R = ppe(a, S, n, i, e) : R = a.doFullSort(S.childrenAfterAggFilter, e));
|
|
70155
70160
|
if (R || (R = ((E = S.childrenAfterAggFilter) == null ? void 0 : E.slice(0)) ?? []), m || (m = ((x = S.childrenAfterSort) == null ? void 0 : x[0]) !== R[0]), S.childrenAfterSort = R, CL(S), p) {
|
|
70156
|
-
const
|
|
70157
|
-
p(
|
|
70161
|
+
const I = { nodes: S.childrenAfterSort };
|
|
70162
|
+
p(I);
|
|
70158
70163
|
}
|
|
70159
70164
|
};
|
|
70160
70165
|
if (i == null || i.forEachChangedNodeDepthFirst(w), m && o.get("groupHideOpenParents")) {
|
|
@@ -72031,20 +72036,20 @@ var rge = class extends Fe {
|
|
|
72031
72036
|
} = e;
|
|
72032
72037
|
let h = !1;
|
|
72033
72038
|
const f = (T, A) => {
|
|
72034
|
-
const
|
|
72035
|
-
return h || (h =
|
|
72039
|
+
const P = !(i != null && i.has(T)) && !!(A || t === "api");
|
|
72040
|
+
return h || (h = P), P;
|
|
72036
72041
|
}, p = {}, m = (T) => {
|
|
72037
72042
|
let A = p[T];
|
|
72038
72043
|
return A || (A = { colId: T }, p[T] = A, A);
|
|
72039
72044
|
}, y = {}, w = f("sort", o);
|
|
72040
|
-
w && (o == null || o.sortModel.forEach(({ colId: T, sort: A },
|
|
72045
|
+
w && (o == null || o.sortModel.forEach(({ colId: T, sort: A }, P) => {
|
|
72041
72046
|
const N = m(T);
|
|
72042
|
-
N.sort = A, N.sortIndex =
|
|
72047
|
+
N.sort = A, N.sortIndex = P;
|
|
72043
72048
|
})), (w || !n) && (y.sort = null, y.sortIndex = null);
|
|
72044
72049
|
const S = f("rowGroup", s);
|
|
72045
72050
|
S && (s == null || s.groupColIds.forEach((T, A) => {
|
|
72046
|
-
const
|
|
72047
|
-
|
|
72051
|
+
const P = m(T);
|
|
72052
|
+
P.rowGroup = !0, P.rowGroupIndex = A;
|
|
72048
72053
|
})), (S || !n) && (y.rowGroup = null, y.rowGroupIndex = null);
|
|
72049
72054
|
const _ = f("aggregation", r);
|
|
72050
72055
|
_ && (r == null || r.aggregationModel.forEach(({ colId: T, aggFunc: A }) => {
|
|
@@ -72052,8 +72057,8 @@ var rge = class extends Fe {
|
|
|
72052
72057
|
})), (_ || !n) && (y.aggFunc = null);
|
|
72053
72058
|
const C = f("pivot", a);
|
|
72054
72059
|
C && (a == null || a.pivotColIds.forEach((T, A) => {
|
|
72055
|
-
const
|
|
72056
|
-
|
|
72060
|
+
const P = m(T);
|
|
72061
|
+
P.pivot = !0, P.pivotIndex = A;
|
|
72057
72062
|
}), this.gos.updateGridOptions({
|
|
72058
72063
|
options: { pivotMode: !!(a != null && a.pivotMode) },
|
|
72059
72064
|
source: t
|
|
@@ -72073,12 +72078,12 @@ var rge = class extends Fe {
|
|
|
72073
72078
|
(E || !n) && (y.hide = null);
|
|
72074
72079
|
const x = f("columnSizing", c);
|
|
72075
72080
|
if (x)
|
|
72076
|
-
for (const { colId: T, flex: A, width:
|
|
72081
|
+
for (const { colId: T, flex: A, width: P } of (c == null ? void 0 : c.columnSizingModel) ?? []) {
|
|
72077
72082
|
const N = m(T);
|
|
72078
|
-
N.flex = A ?? null, N.width =
|
|
72083
|
+
N.flex = A ?? null, N.width = P;
|
|
72079
72084
|
}
|
|
72080
72085
|
(x || !n) && (y.flex = null);
|
|
72081
|
-
const
|
|
72086
|
+
const I = d == null ? void 0 : d.orderedColIds, k = !!(I != null && I.length) && !(i != null && i.has("columnOrder")), O = k ? I.map((T) => m(T)) : Object.values(p);
|
|
72082
72087
|
(O.length || h) && (this.columnStates = O, Yo(
|
|
72083
72088
|
this.beans,
|
|
72084
72089
|
{
|
|
@@ -73099,11 +73104,11 @@ var qge = class extends Fe {
|
|
|
73099
73104
|
const x = f.getCol(E);
|
|
73100
73105
|
if (!x || y.has(x))
|
|
73101
73106
|
continue;
|
|
73102
|
-
const
|
|
73103
|
-
if (
|
|
73107
|
+
const I = p.getPreferredWidthForColumn(x, _);
|
|
73108
|
+
if (I > 0) {
|
|
73104
73109
|
const k = S[x.colId] ?? {};
|
|
73105
73110
|
k.minWidth ?? (k.minWidth = l), k.maxWidth ?? (k.maxWidth = a);
|
|
73106
|
-
const O = Yge(x,
|
|
73111
|
+
const O = Yge(x, I, k);
|
|
73107
73112
|
x.setActualWidth(O, c), y.add(x), w++;
|
|
73108
73113
|
}
|
|
73109
73114
|
R.push(x);
|
|
@@ -73228,7 +73233,7 @@ var qge = class extends Fe {
|
|
|
73228
73233
|
const w = y / sr(l);
|
|
73229
73234
|
let S = y;
|
|
73230
73235
|
for (let _ = l.length - 1; _ >= 0; _--) {
|
|
73231
|
-
const C = l[_], R = o == null ? void 0 : o[C.getId()], E = (R == null ? void 0 : R.minWidth) ?? (i == null ? void 0 : i.defaultMinWidth), x = (R == null ? void 0 : R.maxWidth) ?? (i == null ? void 0 : i.defaultMaxWidth),
|
|
73236
|
+
const C = l[_], R = o == null ? void 0 : o[C.getId()], E = (R == null ? void 0 : R.minWidth) ?? (i == null ? void 0 : i.defaultMinWidth), x = (R == null ? void 0 : R.maxWidth) ?? (i == null ? void 0 : i.defaultMaxWidth), I = C.getMinWidth(), k = C.getMaxWidth(), O = typeof E == "number" && E > I ? E : I, T = typeof x == "number" && x < k ? x : k;
|
|
73232
73237
|
let A = Math.round(C.getActualWidth() * w);
|
|
73233
73238
|
A < O ? (A = O, h(C), d = !1) : A > T ? (A = T, h(C), d = !1) : _ === 0 && (A = S), C.setActualWidth(A, t, !0), S -= A;
|
|
73234
73239
|
}
|
|
@@ -75047,11 +75052,11 @@ const kme = () => [...[
|
|
|
75047
75052
|
});
|
|
75048
75053
|
const f = kme(), p = uh.fromType(Lme), y = ((c == null ? void 0 : c.map(
|
|
75049
75054
|
(A) => {
|
|
75050
|
-
var
|
|
75055
|
+
var P;
|
|
75051
75056
|
return {
|
|
75052
75057
|
headerName: A.name,
|
|
75053
75058
|
field: `metric_${A.id}`,
|
|
75054
|
-
editable: ((
|
|
75059
|
+
editable: ((P = A == null ? void 0 : A.auth_permission) == null ? void 0 : P.permission) == 2,
|
|
75055
75060
|
sortable: !0,
|
|
75056
75061
|
filter: !1,
|
|
75057
75062
|
flex: 1,
|
|
@@ -75087,19 +75092,19 @@ const kme = () => [...[
|
|
|
75087
75092
|
), x = [];
|
|
75088
75093
|
for (const A of d)
|
|
75089
75094
|
if (A.field && E.has(A.field)) {
|
|
75090
|
-
const
|
|
75095
|
+
const P = E.get(A.field);
|
|
75091
75096
|
x.push({
|
|
75092
|
-
...
|
|
75097
|
+
...P,
|
|
75093
75098
|
hide: A.hide,
|
|
75094
75099
|
width: A.width
|
|
75095
75100
|
}), E.delete(A.field);
|
|
75096
75101
|
}
|
|
75097
|
-
const
|
|
75098
|
-
const
|
|
75099
|
-
return
|
|
75102
|
+
const I = Array.from(E.values()), k = [...x, ...I], O = S.map((A) => {
|
|
75103
|
+
const P = R.get(A.field);
|
|
75104
|
+
return P != null && P.width ? { ...A, width: P.width } : A;
|
|
75100
75105
|
}), T = _.map((A) => {
|
|
75101
|
-
const
|
|
75102
|
-
return
|
|
75106
|
+
const P = R.get(A.field);
|
|
75107
|
+
return P != null && P.width ? { ...A, width: P.width } : A;
|
|
75103
75108
|
});
|
|
75104
75109
|
r.value = [
|
|
75105
75110
|
...O,
|
|
@@ -76367,24 +76372,24 @@ const WL = (e) => {
|
|
|
76367
76372
|
onDownloadProgress: R,
|
|
76368
76373
|
onUploadProgress: E,
|
|
76369
76374
|
responseType: x,
|
|
76370
|
-
headers:
|
|
76375
|
+
headers: I,
|
|
76371
76376
|
withCredentials: k = "same-origin",
|
|
76372
76377
|
fetchOptions: O
|
|
76373
76378
|
} = WL(p), T = t || fetch;
|
|
76374
76379
|
x = x ? (x + "").toLowerCase() : "text";
|
|
76375
|
-
let A = eye([S, _ && _.toAbortSignal()], C),
|
|
76380
|
+
let A = eye([S, _ && _.toAbortSignal()], C), P = null;
|
|
76376
76381
|
const N = A && A.unsubscribe && (() => {
|
|
76377
76382
|
A.unsubscribe();
|
|
76378
76383
|
});
|
|
76379
76384
|
let J;
|
|
76380
76385
|
try {
|
|
76381
|
-
if (E && u && y !== "get" && y !== "head" && (J = await f(
|
|
76386
|
+
if (E && u && y !== "get" && y !== "head" && (J = await f(I, w)) !== 0) {
|
|
76382
76387
|
let ve = new n(m, {
|
|
76383
76388
|
method: "POST",
|
|
76384
76389
|
body: w,
|
|
76385
76390
|
duplex: "half"
|
|
76386
76391
|
}), Ce;
|
|
76387
|
-
if (Se.isFormData(w) && (Ce = ve.headers.get("content-type")) &&
|
|
76392
|
+
if (Se.isFormData(w) && (Ce = ve.headers.get("content-type")) && I.setContentType(Ce), ve.body) {
|
|
76388
76393
|
const [ae, ie] = Y1(
|
|
76389
76394
|
J,
|
|
76390
76395
|
am(Z1(E))
|
|
@@ -76397,13 +76402,13 @@ const WL = (e) => {
|
|
|
76397
76402
|
...O,
|
|
76398
76403
|
signal: A,
|
|
76399
76404
|
method: y.toUpperCase(),
|
|
76400
|
-
headers:
|
|
76405
|
+
headers: I.normalize().toJSON(),
|
|
76401
76406
|
body: w,
|
|
76402
76407
|
duplex: "half",
|
|
76403
76408
|
credentials: ee ? k : void 0
|
|
76404
76409
|
};
|
|
76405
|
-
|
|
76406
|
-
let V = await (s ? T(
|
|
76410
|
+
P = s && new n(m, Y);
|
|
76411
|
+
let V = await (s ? T(P, O) : T(m, Y));
|
|
76407
76412
|
const H = c && (x === "stream" || x === "response");
|
|
76408
76413
|
if (c && (R || H && N)) {
|
|
76409
76414
|
const ve = {};
|
|
@@ -76430,16 +76435,16 @@ const WL = (e) => {
|
|
|
76430
76435
|
status: V.status,
|
|
76431
76436
|
statusText: V.statusText,
|
|
76432
76437
|
config: p,
|
|
76433
|
-
request:
|
|
76438
|
+
request: P
|
|
76434
76439
|
});
|
|
76435
76440
|
});
|
|
76436
76441
|
} catch (ee) {
|
|
76437
76442
|
throw N && N(), ee && ee.name === "TypeError" && /Load failed|fetch/i.test(ee.message) ? Object.assign(
|
|
76438
|
-
new Gt("Network Error", Gt.ERR_NETWORK, p,
|
|
76443
|
+
new Gt("Network Error", Gt.ERR_NETWORK, p, P),
|
|
76439
76444
|
{
|
|
76440
76445
|
cause: ee.cause || ee
|
|
76441
76446
|
}
|
|
76442
|
-
) : Gt.from(ee, ee && ee.code, p,
|
|
76447
|
+
) : Gt.from(ee, ee && ee.code, p, P);
|
|
76443
76448
|
}
|
|
76444
76449
|
};
|
|
76445
76450
|
}, rye = /* @__PURE__ */ new Map(), UL = (e) => {
|
|
@@ -77696,39 +77701,39 @@ const Eye = () => {
|
|
|
77696
77701
|
if (!o || i.domainApi === "" || i.wsCode === "")
|
|
77697
77702
|
throw new Error("API configuration is missing in useItems");
|
|
77698
77703
|
const s = new YL(o, i);
|
|
77699
|
-
s.on("call-api", (
|
|
77704
|
+
s.on("call-api", (P) => {
|
|
77700
77705
|
var N, J;
|
|
77701
|
-
|
|
77706
|
+
P.success ? t(P.apiCode, "success") : t(((J = (N = P.res) == null ? void 0 : N.data) == null ? void 0 : J.message) || P.apiCode, "error");
|
|
77702
77707
|
});
|
|
77703
|
-
const r = Jo({}), a = B([]), l = B(!1), u = B(null), c = B(null), d = B(1), h = B(20), { setCachedUsers: f } = c8(), p = (
|
|
77708
|
+
const r = Jo({}), a = B([]), l = B(!1), u = B(null), c = B(null), d = B(1), h = B(20), { setCachedUsers: f } = c8(), p = (P) => ({
|
|
77704
77709
|
workspaceId: e.value.workspaceId,
|
|
77705
77710
|
entityIds: [e.value.entityId],
|
|
77706
77711
|
orderBy: "id-asc",
|
|
77707
77712
|
// status_eq: '1',
|
|
77708
77713
|
include_permission: "{include_permission}",
|
|
77709
77714
|
include_permission_names: !0,
|
|
77710
|
-
q:
|
|
77711
|
-
}), m = 50, y = async (
|
|
77712
|
-
if (!
|
|
77713
|
-
const ee = wz(
|
|
77715
|
+
q: P
|
|
77716
|
+
}), m = 50, y = async (P, N, J) => {
|
|
77717
|
+
if (!P.length) return [];
|
|
77718
|
+
const ee = wz(P, N);
|
|
77714
77719
|
return (await Promise.all(ee.map(J))).flat();
|
|
77715
|
-
}, w = async (
|
|
77720
|
+
}, w = async (P) => {
|
|
77716
77721
|
try {
|
|
77717
77722
|
return (await s.getPermissionForItems({
|
|
77718
77723
|
workspaceId: e.value.workspaceId,
|
|
77719
|
-
itemIds:
|
|
77724
|
+
itemIds: P
|
|
77720
77725
|
})).data.map(
|
|
77721
77726
|
(J) => [J.id, J.permission]
|
|
77722
77727
|
);
|
|
77723
77728
|
} catch (N) {
|
|
77724
77729
|
return console.error("Failed to fetch item permissions chunk:", N), [];
|
|
77725
77730
|
}
|
|
77726
|
-
}, S = async (
|
|
77731
|
+
}, S = async (P, N) => {
|
|
77727
77732
|
try {
|
|
77728
77733
|
const J = await s.getMetricValues({
|
|
77729
77734
|
workspaceId: e.value.workspaceId,
|
|
77730
|
-
item_ids:
|
|
77731
|
-
per_page:
|
|
77735
|
+
item_ids: P,
|
|
77736
|
+
per_page: P.length * N.length,
|
|
77732
77737
|
metric_ids: N
|
|
77733
77738
|
}), ee = J.data.map((V) => {
|
|
77734
77739
|
const H = new Map(
|
|
@@ -77740,7 +77745,7 @@ const Eye = () => {
|
|
|
77740
77745
|
);
|
|
77741
77746
|
return [V.id, K];
|
|
77742
77747
|
}), Y = new Set(J.data.map((V) => V.id));
|
|
77743
|
-
for (const V of
|
|
77748
|
+
for (const V of P)
|
|
77744
77749
|
if (!Y.has(V)) {
|
|
77745
77750
|
const H = Object.fromEntries(
|
|
77746
77751
|
N.map((K) => [K, null])
|
|
@@ -77751,12 +77756,12 @@ const Eye = () => {
|
|
|
77751
77756
|
} catch (J) {
|
|
77752
77757
|
return console.error("Failed to fetch a chunk of metric values:", J), [];
|
|
77753
77758
|
}
|
|
77754
|
-
}, _ = async (
|
|
77759
|
+
}, _ = async (P) => {
|
|
77755
77760
|
try {
|
|
77756
77761
|
const N = await s.getAssignedUser({
|
|
77757
77762
|
workspaceId: e.value.workspaceId,
|
|
77758
|
-
item_ids:
|
|
77759
|
-
per_page:
|
|
77763
|
+
item_ids: P,
|
|
77764
|
+
per_page: P.length
|
|
77760
77765
|
}), J = N.data.flatMap((ee) => ee.assignees);
|
|
77761
77766
|
return f(J), N.data.map(
|
|
77762
77767
|
(ee) => [ee.id, ee.assignees]
|
|
@@ -77764,23 +77769,23 @@ const Eye = () => {
|
|
|
77764
77769
|
} catch (N) {
|
|
77765
77770
|
return console.error("Failed to fetch a chunk of assigned users:", N), [];
|
|
77766
77771
|
}
|
|
77767
|
-
}, C = async (
|
|
77768
|
-
if (!
|
|
77772
|
+
}, C = async (P) => {
|
|
77773
|
+
if (!P.length)
|
|
77769
77774
|
return console.warn("getPermissionForItems: Empty itemIds"), {};
|
|
77770
77775
|
try {
|
|
77771
|
-
const N = await y(
|
|
77776
|
+
const N = await y(P, m, w);
|
|
77772
77777
|
return Object.fromEntries(N);
|
|
77773
77778
|
} catch (N) {
|
|
77774
77779
|
return console.error("Failed to fetch item permissions:", N), {};
|
|
77775
77780
|
}
|
|
77776
|
-
}, R = async (
|
|
77777
|
-
if (!
|
|
77781
|
+
}, R = async (P, N) => {
|
|
77782
|
+
if (!P.length || !N.length) return {};
|
|
77778
77783
|
try {
|
|
77779
77784
|
const Y = [];
|
|
77780
77785
|
for (let H = 0; H < N.length; H += 4) {
|
|
77781
77786
|
const K = N.slice(H, H + 4), ve = await Promise.all(
|
|
77782
77787
|
K.map(async (Ce) => await y(
|
|
77783
|
-
|
|
77788
|
+
P,
|
|
77784
77789
|
m,
|
|
77785
77790
|
(ae) => S(ae, [Ce])
|
|
77786
77791
|
))
|
|
@@ -77796,11 +77801,11 @@ const Eye = () => {
|
|
|
77796
77801
|
} catch (J) {
|
|
77797
77802
|
return console.error("Failed to fetch metric values:", J), {};
|
|
77798
77803
|
}
|
|
77799
|
-
}, E = async (
|
|
77800
|
-
if (!
|
|
77804
|
+
}, E = async (P) => {
|
|
77805
|
+
if (!P.length)
|
|
77801
77806
|
return console.warn("getAssignedUsers: Empty itemIds"), {};
|
|
77802
77807
|
try {
|
|
77803
|
-
const N = await y(
|
|
77808
|
+
const N = await y(P, m, _);
|
|
77804
77809
|
return Object.fromEntries(N);
|
|
77805
77810
|
} catch (N) {
|
|
77806
77811
|
return console.error("Failed to fetch assigned users:", N), {};
|
|
@@ -77814,18 +77819,18 @@ const Eye = () => {
|
|
|
77814
77819
|
currentPage: d,
|
|
77815
77820
|
pageSize: h,
|
|
77816
77821
|
cusorMap: r,
|
|
77817
|
-
fetchItems: async (
|
|
77818
|
-
const { cursor: N, offset: J, size: ee, searchQuery: Y } =
|
|
77822
|
+
fetchItems: async (P) => {
|
|
77823
|
+
const { cursor: N, offset: J, size: ee, searchQuery: Y } = P;
|
|
77819
77824
|
let V = [];
|
|
77820
77825
|
l.value = !0, u.value = null;
|
|
77821
77826
|
try {
|
|
77822
77827
|
const H = await s.getAllItem_cursor({
|
|
77823
|
-
...
|
|
77828
|
+
...P,
|
|
77824
77829
|
cursor: N || void 0,
|
|
77825
77830
|
offset: J || void 0,
|
|
77826
77831
|
pageSize: ee || h.value,
|
|
77827
77832
|
...p(Y),
|
|
77828
|
-
sortBy:
|
|
77833
|
+
sortBy: P.sort_by
|
|
77829
77834
|
});
|
|
77830
77835
|
return a.value = H.data, c.value = H.meta, d.value = H.meta.current_page || 0, V = H.data.map((K) => K.id), H;
|
|
77831
77836
|
} catch (H) {
|
|
@@ -77853,21 +77858,21 @@ const Eye = () => {
|
|
|
77853
77858
|
}
|
|
77854
77859
|
},
|
|
77855
77860
|
// getAssignableUsers,
|
|
77856
|
-
getAssignableStatus: async (
|
|
77861
|
+
getAssignableStatus: async (P) => {
|
|
77857
77862
|
try {
|
|
77858
77863
|
return await s.getAssignableStatus({
|
|
77859
77864
|
workspaceId: e.value.workspaceId,
|
|
77860
|
-
itemIds:
|
|
77865
|
+
itemIds: P
|
|
77861
77866
|
});
|
|
77862
77867
|
} catch (N) {
|
|
77863
77868
|
throw console.error("Failed to fetch assignable status:", N), N;
|
|
77864
77869
|
}
|
|
77865
77870
|
},
|
|
77866
|
-
getMetricList: async (
|
|
77871
|
+
getMetricList: async (P) => {
|
|
77867
77872
|
try {
|
|
77868
77873
|
return await s.getMetricList({
|
|
77869
77874
|
workspaceId: e.value.workspaceId,
|
|
77870
|
-
entityId:
|
|
77875
|
+
entityId: P
|
|
77871
77876
|
});
|
|
77872
77877
|
} catch (N) {
|
|
77873
77878
|
throw console.error("Failed to fetch metric list:", N), N;
|
|
@@ -78121,13 +78126,13 @@ const Fye = {
|
|
|
78121
78126
|
i.value && i.value.show();
|
|
78122
78127
|
}, r = B(""), a = B("idle"), l = B({ file: null, format: null }), { apiServices: u } = di(!1, {}), c = B(!1), d = async () => {
|
|
78123
78128
|
c.value = !0;
|
|
78124
|
-
const x = o.workspaceId,
|
|
78125
|
-
if (!x || !
|
|
78129
|
+
const x = o.workspaceId, I = o.entityId;
|
|
78130
|
+
if (!x || !I || !u.value) {
|
|
78126
78131
|
console.error("Workspace ID or Entity ID is missing");
|
|
78127
78132
|
return;
|
|
78128
78133
|
}
|
|
78129
78134
|
try {
|
|
78130
|
-
if (!await u.value.downloadExportedItemsFile(x,
|
|
78135
|
+
if (!await u.value.downloadExportedItemsFile(x, I))
|
|
78131
78136
|
throw new Error("No response from downloadTemplate API");
|
|
78132
78137
|
} catch (k) {
|
|
78133
78138
|
console.error("Error downloading template:", k);
|
|
@@ -78137,22 +78142,22 @@ const Fye = {
|
|
|
78137
78142
|
h("import-success"), S();
|
|
78138
78143
|
}, p = async (x) => {
|
|
78139
78144
|
var O, T, A;
|
|
78140
|
-
const
|
|
78141
|
-
if (
|
|
78145
|
+
const I = new FormData(), k = ((O = x.name.split(".").pop()) == null ? void 0 : O.toString()) || "";
|
|
78146
|
+
if (I.append("file", x), I.append("format", k), !u.value) {
|
|
78142
78147
|
console.error("API services not available");
|
|
78143
78148
|
return;
|
|
78144
78149
|
}
|
|
78145
78150
|
try {
|
|
78146
|
-
const
|
|
78151
|
+
const P = await u.value.overwriteScenesViaImportFile(
|
|
78147
78152
|
o.workspaceId,
|
|
78148
78153
|
o.entityId,
|
|
78149
|
-
|
|
78154
|
+
I
|
|
78150
78155
|
);
|
|
78151
78156
|
m();
|
|
78152
|
-
} catch (
|
|
78153
|
-
throw console.error("Error uploading file:",
|
|
78154
|
-
((A = (T =
|
|
78155
|
-
),
|
|
78157
|
+
} catch (P) {
|
|
78158
|
+
throw console.error("Error uploading file:", P), y(
|
|
78159
|
+
((A = (T = P.response) == null ? void 0 : T.data) == null ? void 0 : A.message) || "An unknown error occurred during file upload."
|
|
78160
|
+
), P;
|
|
78156
78161
|
}
|
|
78157
78162
|
}, m = () => {
|
|
78158
78163
|
a.value = "success";
|
|
@@ -78177,7 +78182,7 @@ const Fye = {
|
|
|
78177
78182
|
var x;
|
|
78178
78183
|
(x = R.value) == null || x.clear(), r.value = "", l.value = { file: null, format: null }, a.value = "idle";
|
|
78179
78184
|
};
|
|
78180
|
-
return (x,
|
|
78185
|
+
return (x, I) => (W(), Ge(z(rk), {
|
|
78181
78186
|
"popup-name": _.value,
|
|
78182
78187
|
"show-overlay": !0,
|
|
78183
78188
|
"overlay-opacity": 0.5,
|
|
@@ -78202,7 +78207,7 @@ const Fye = {
|
|
|
78202
78207
|
}, "Step 1: Download current data", 2),
|
|
78203
78208
|
fe("span", {
|
|
78204
78209
|
class: j(x.$style["step-description"])
|
|
78205
|
-
}, [...
|
|
78210
|
+
}, [...I[1] || (I[1] = [
|
|
78206
78211
|
ut(" Download a file with all existing work and details. Edit it, then upload in Step 2. ", -1),
|
|
78207
78212
|
fe("br", null, null, -1),
|
|
78208
78213
|
fe("i", null, "Note: Empty cells and unchanged values will be skipped.", -1)
|
|
@@ -78218,7 +78223,7 @@ const Fye = {
|
|
|
78218
78223
|
re(z(ct), { src: "Download" })
|
|
78219
78224
|
]),
|
|
78220
78225
|
default: me(() => [
|
|
78221
|
-
|
|
78226
|
+
I[2] || (I[2] = ut(" Download file ", -1))
|
|
78222
78227
|
]),
|
|
78223
78228
|
_: 1
|
|
78224
78229
|
}, 8, ["class", "disabled"])
|
|
@@ -78231,7 +78236,7 @@ const Fye = {
|
|
|
78231
78236
|
}, "Step 2: Upload updated file (.xlsx, .xls, .csv)", 2),
|
|
78232
78237
|
re(z(Ck), {
|
|
78233
78238
|
modelValue: l.value,
|
|
78234
|
-
"onUpdate:modelValue":
|
|
78239
|
+
"onUpdate:modelValue": I[0] || (I[0] = (k) => l.value = k),
|
|
78235
78240
|
ref_key: "filUploaderRef",
|
|
78236
78241
|
ref: R
|
|
78237
78242
|
}, null, 8, ["modelValue"])
|
|
@@ -78254,7 +78259,7 @@ const Fye = {
|
|
|
78254
78259
|
variant: "secondary",
|
|
78255
78260
|
onClick: S
|
|
78256
78261
|
}, {
|
|
78257
|
-
default: me(() => [...
|
|
78262
|
+
default: me(() => [...I[3] || (I[3] = [
|
|
78258
78263
|
ut(" Cancel ", -1)
|
|
78259
78264
|
])]),
|
|
78260
78265
|
_: 1
|
|
@@ -78265,7 +78270,7 @@ const Fye = {
|
|
|
78265
78270
|
variant: "primary",
|
|
78266
78271
|
onClick: w
|
|
78267
78272
|
}, {
|
|
78268
|
-
default: me(() => [...
|
|
78273
|
+
default: me(() => [...I[4] || (I[4] = [
|
|
78269
78274
|
ut(" Import ", -1)
|
|
78270
78275
|
])]),
|
|
78271
78276
|
_: 1
|
|
@@ -78280,7 +78285,7 @@ const Fye = {
|
|
|
78280
78285
|
variant: "primary",
|
|
78281
78286
|
onClick: f
|
|
78282
78287
|
}, {
|
|
78283
|
-
default: me(() => [...
|
|
78288
|
+
default: me(() => [...I[5] || (I[5] = [
|
|
78284
78289
|
ut(" Close ", -1)
|
|
78285
78290
|
])]),
|
|
78286
78291
|
_: 1
|
|
@@ -78295,7 +78300,7 @@ const Fye = {
|
|
|
78295
78300
|
variant: "primary",
|
|
78296
78301
|
onClick: E
|
|
78297
78302
|
}, {
|
|
78298
|
-
default: me(() => [...
|
|
78303
|
+
default: me(() => [...I[6] || (I[6] = [
|
|
78299
78304
|
ut(" Try Again ", -1)
|
|
78300
78305
|
])]),
|
|
78301
78306
|
_: 1
|
|
@@ -78368,16 +78373,16 @@ const Fye = {
|
|
|
78368
78373
|
wrapVueCellRenderer: Ng,
|
|
78369
78374
|
wrapVueCellEditor: Rk
|
|
78370
78375
|
});
|
|
78371
|
-
const f = B(null), p = B([]), m = TS(), { rowCount: y } = oo(m), w = B(!1), S = B(""), _ = qA(), { metricList: C } = oo(_), R = B(""), E = B(!1), x = B(/* @__PURE__ */ new Set()),
|
|
78376
|
+
const f = B(null), p = B([]), m = TS(), { rowCount: y } = oo(m), w = B(!1), S = B(""), _ = qA(), { metricList: C } = oo(_), R = B(""), E = B(!1), x = B(/* @__PURE__ */ new Set()), I = B(/* @__PURE__ */ new Map()), { apiServices: k } = di(!1, h), { columnDefs: O, checkboxColumn: T, saveColumnConfig: A } = Nme(
|
|
78372
78377
|
C,
|
|
78373
78378
|
h.entityId,
|
|
78374
78379
|
f
|
|
78375
|
-
),
|
|
78380
|
+
), P = B();
|
|
78376
78381
|
st(
|
|
78377
78382
|
() => O,
|
|
78378
78383
|
() => {
|
|
78379
78384
|
var Ie;
|
|
78380
|
-
(Ie =
|
|
78385
|
+
(Ie = P.value) == null || Ie.updateColumnDefs(O.value);
|
|
78381
78386
|
},
|
|
78382
78387
|
{ deep: !0 }
|
|
78383
78388
|
);
|
|
@@ -78430,7 +78435,7 @@ const Fye = {
|
|
|
78430
78435
|
const kr = ((us) => {
|
|
78431
78436
|
const _a = us.data.map((Wl) => YI(Wl, V.value));
|
|
78432
78437
|
return _a.forEach((Wl) => {
|
|
78433
|
-
x.value.add(String(Wl.id)),
|
|
78438
|
+
x.value.add(String(Wl.id)), I.value.set(String(Wl.id), {});
|
|
78434
78439
|
}), _a;
|
|
78435
78440
|
})(_c);
|
|
78436
78441
|
return Le(_c, Ie), { rows: kr, total: y.value.total };
|
|
@@ -78777,7 +78782,7 @@ const Fye = {
|
|
|
78777
78782
|
id: "table_customization",
|
|
78778
78783
|
gridApi: f.value,
|
|
78779
78784
|
ref_key: "tableCustomizationRef",
|
|
78780
|
-
ref:
|
|
78785
|
+
ref: P,
|
|
78781
78786
|
"checkbox-column": z(T)
|
|
78782
78787
|
}, null, 8, ["model-value", "gridApi", "checkbox-column"]), [
|
|
78783
78788
|
[z(n), { isLoading: z(Me), fullwidth: !0 }]
|
|
@@ -78859,7 +78864,7 @@ const Fye = {
|
|
|
78859
78864
|
"beta-tag": "_beta-tag_1lefh_57"
|
|
78860
78865
|
}, jye = {
|
|
78861
78866
|
$style: zye
|
|
78862
|
-
}, Kye = /* @__PURE__ */ Ct(Bye, [["__cssModules", jye]]), ZL = "0.0.
|
|
78867
|
+
}, Kye = /* @__PURE__ */ Ct(Bye, [["__cssModules", jye]]), ZL = "0.0.107", qye = { key: 0 }, Yye = /* @__PURE__ */ lt({
|
|
78863
78868
|
__name: "app",
|
|
78864
78869
|
setup(e) {
|
|
78865
78870
|
const t = U(() => n.id.length === 0 || n.workspaceId.length === 0), n = Jo({
|