@26lights/orcha 0.37.34 → 0.37.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +2 -2
- package/dist/orcha.es.js +179 -178
- package/dist/orcha.umd.js +2 -2
- package/dist/src/views/AoFeed.vue.d.ts +8 -2
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -2724,10 +2724,10 @@ var G0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X0 = /P+p+|P+|
|
|
|
2724
2724
|
function Ns(t, e, a) {
|
|
2725
2725
|
var n, s, o, i, r, l, c, u, f, d, h, w, b, y, k, _, C, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
|
-
var I = String(e),
|
|
2727
|
+
var I = String(e), L = va(), F = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n : Rs, U = Qe((o = (i = (r = (l = a == null ? void 0 : a.firstWeekContainsDate) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = L.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2728
2728
|
if (!(U >= 1 && U <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
|
-
var q = Qe((h = (w = (b = (y = a == null ? void 0 : a.weekStartsOn) !== null && y !== void 0 ? y : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b :
|
|
2730
|
+
var q = Qe((h = (w = (b = (y = a == null ? void 0 : a.weekStartsOn) !== null && y !== void 0 ? y : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : L.weekStartsOn) !== null && w !== void 0 ? w : (C = L.locale) === null || C === void 0 || (D = C.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2731
2731
|
if (!(q >= 0 && q <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!F.localize)
|
|
@@ -2783,11 +2783,11 @@ function a3(t, e, a) {
|
|
|
2783
2783
|
throw new RangeError("Invalid time value");
|
|
2784
2784
|
var C;
|
|
2785
2785
|
_ < -6 ? C = "other" : _ < -1 ? C = "lastWeek" : _ < 0 ? C = "yesterday" : _ < 1 ? C = "today" : _ < 2 ? C = "tomorrow" : _ < 7 ? C = "nextWeek" : C = "other";
|
|
2786
|
-
var D = gn(h, ra(h)), I = gn(w, ra(w)),
|
|
2786
|
+
var D = gn(h, ra(h)), I = gn(w, ra(w)), L = y.formatRelative(C, D, I, {
|
|
2787
2787
|
locale: y,
|
|
2788
2788
|
weekStartsOn: k
|
|
2789
2789
|
});
|
|
2790
|
-
return Ns(h,
|
|
2790
|
+
return Ns(h, L, {
|
|
2791
2791
|
locale: y,
|
|
2792
2792
|
weekStartsOn: k
|
|
2793
2793
|
});
|
|
@@ -4463,11 +4463,11 @@ const I5 = function(t) {
|
|
|
4463
4463
|
return {};
|
|
4464
4464
|
const k = Ft(s), _ = Ft(r) === r, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !b ? [Ba(r)] : S5(r));
|
|
4465
4465
|
!d && w !== "none" && D.push(...M5(r, b, w, C));
|
|
4466
|
-
const I = [r, ...D],
|
|
4466
|
+
const I = [r, ...D], L = await Ks(e, y), F = [];
|
|
4467
4467
|
let U = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4468
|
-
if (u && F.push(
|
|
4468
|
+
if (u && F.push(L[k]), f) {
|
|
4469
4469
|
const R = k5(s, i, C);
|
|
4470
|
-
F.push(
|
|
4470
|
+
F.push(L[R[0]], L[R[1]]);
|
|
4471
4471
|
}
|
|
4472
4472
|
if (U = [...U, {
|
|
4473
4473
|
placement: s,
|
|
@@ -4531,15 +4531,15 @@ const I5 = function(t) {
|
|
|
4531
4531
|
const y = h - l[w], k = d - l[b], _ = !e.middlewareData.shift;
|
|
4532
4532
|
let C = y, D = k;
|
|
4533
4533
|
if (f) {
|
|
4534
|
-
const
|
|
4535
|
-
D = u || _ ? ua(k,
|
|
4534
|
+
const L = d - l.left - l.right;
|
|
4535
|
+
D = u || _ ? ua(k, L) : L;
|
|
4536
4536
|
} else {
|
|
4537
|
-
const
|
|
4538
|
-
C = u || _ ? ua(y,
|
|
4537
|
+
const L = h - l.top - l.bottom;
|
|
4538
|
+
C = u || _ ? ua(y, L) : L;
|
|
4539
4539
|
}
|
|
4540
4540
|
if (_ && !u) {
|
|
4541
|
-
const
|
|
4542
|
-
f ? D = d - 2 * (
|
|
4541
|
+
const L = Ee(l.left, 0), F = Ee(l.right, 0), U = Ee(l.top, 0), q = Ee(l.bottom, 0);
|
|
4542
|
+
f ? D = d - 2 * (L !== 0 || F !== 0 ? L + F : Ee(l.left, l.right)) : C = h - 2 * (U !== 0 || q !== 0 ? U + q : Ee(l.top, l.bottom));
|
|
4543
4543
|
}
|
|
4544
4544
|
await i({
|
|
4545
4545
|
...e,
|
|
@@ -4911,11 +4911,11 @@ function K5(t, e) {
|
|
|
4911
4911
|
};
|
|
4912
4912
|
let C = !0;
|
|
4913
4913
|
function D(I) {
|
|
4914
|
-
const
|
|
4915
|
-
if (
|
|
4914
|
+
const L = I[0].intersectionRatio;
|
|
4915
|
+
if (L !== l) {
|
|
4916
4916
|
if (!C)
|
|
4917
4917
|
return i();
|
|
4918
|
-
|
|
4918
|
+
L ? i(!1, L) : n = setTimeout(() => {
|
|
4919
4919
|
i(!1, 1e-7);
|
|
4920
4920
|
}, 100);
|
|
4921
4921
|
}
|
|
@@ -5143,7 +5143,7 @@ function i7(t, e, a) {
|
|
|
5143
5143
|
filterResults: C,
|
|
5144
5144
|
clearOnSearch: D,
|
|
5145
5145
|
clearOnSelect: I,
|
|
5146
|
-
valueProp:
|
|
5146
|
+
valueProp: L,
|
|
5147
5147
|
allowAbsent: F,
|
|
5148
5148
|
groupLabel: U,
|
|
5149
5149
|
canDeselect: q,
|
|
@@ -5156,7 +5156,7 @@ function i7(t, e, a) {
|
|
|
5156
5156
|
infinite: N,
|
|
5157
5157
|
groupOptions: M,
|
|
5158
5158
|
groupHideEmpty: m,
|
|
5159
|
-
groupSelect:
|
|
5159
|
+
groupSelect: H,
|
|
5160
5160
|
onCreate: J,
|
|
5161
5161
|
disabledProp: ae,
|
|
5162
5162
|
searchStart: le,
|
|
@@ -5216,13 +5216,13 @@ function i7(t, e, a) {
|
|
|
5216
5216
|
}), on = S(() => {
|
|
5217
5217
|
switch (s.value) {
|
|
5218
5218
|
case "single":
|
|
5219
|
-
return !je(Y.value[
|
|
5219
|
+
return !je(Y.value[L.value]);
|
|
5220
5220
|
case "multiple":
|
|
5221
5221
|
case "tags":
|
|
5222
5222
|
return !je(Y.value) && Y.value.length > 0;
|
|
5223
5223
|
}
|
|
5224
5224
|
}), pi = S(() => h !== void 0 && h.value !== void 0 ? h.value(Y.value, re) : Y.value && Y.value.length > 1 ? `${Y.value.length} options selected` : "1 option selected"), fi = S(() => !Te.value.length && !Me.value && !Ot.value.length), vi = S(() => Te.value.length > 0 && ot.value.length == 0 && (X.value && ie.value || !ie.value)), Ot = S(() => Xt.value === !1 || !X.value ? [] : $i(X.value) !== -1 ? [] : [{
|
|
5225
|
-
[
|
|
5225
|
+
[L.value]: X.value,
|
|
5226
5226
|
[yt.value[0]]: X.value,
|
|
5227
5227
|
[u.value]: X.value,
|
|
5228
5228
|
__CREATE__: !0
|
|
@@ -5252,11 +5252,11 @@ function i7(t, e, a) {
|
|
|
5252
5252
|
break;
|
|
5253
5253
|
case "tags":
|
|
5254
5254
|
case "multiple":
|
|
5255
|
-
we(Array.isArray($) ? Y.value.filter((B) => $.map((oe) => oe[
|
|
5255
|
+
we(Array.isArray($) ? Y.value.filter((B) => $.map((oe) => oe[L.value]).indexOf(B[L.value]) === -1) : Y.value.filter((B) => B[L.value] != $[L.value]));
|
|
5256
5256
|
break;
|
|
5257
5257
|
}
|
|
5258
5258
|
e.emit("deselect", es($), $, re);
|
|
5259
|
-
}, es = ($) => w.value ? $ : $[
|
|
5259
|
+
}, es = ($) => w.value ? $ : $[L.value], ts = ($) => {
|
|
5260
5260
|
It($);
|
|
5261
5261
|
}, Ci = ($, B) => {
|
|
5262
5262
|
if (B.button !== 0) {
|
|
@@ -5271,10 +5271,10 @@ function i7(t, e, a) {
|
|
|
5271
5271
|
return s.value === "single" ? !1 : wi($[M.value]) && $[M.value].length;
|
|
5272
5272
|
switch (s.value) {
|
|
5273
5273
|
case "single":
|
|
5274
|
-
return !je(Y.value) && Y.value[
|
|
5274
|
+
return !je(Y.value) && Y.value[L.value] == $[L.value];
|
|
5275
5275
|
case "tags":
|
|
5276
5276
|
case "multiple":
|
|
5277
|
-
return !je(Y.value) && Y.value.map((B) => B[
|
|
5277
|
+
return !je(Y.value) && Y.value.map((B) => B[L.value]).indexOf($[L.value]) !== -1;
|
|
5278
5278
|
}
|
|
5279
5279
|
}, rn = ($) => $[ae.value] === !0, ln = () => O === void 0 || O.value === -1 || !on.value && O.value > 0 ? !1 : Y.value.length >= O.value, gi = ($) => {
|
|
5280
5280
|
if (!rn($)) {
|
|
@@ -5320,22 +5320,22 @@ function i7(t, e, a) {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
R.value || _a();
|
|
5322
5322
|
}, _i = ($) => {
|
|
5323
|
-
if (!(rn($) || s.value === "single" || !
|
|
5323
|
+
if (!(rn($) || s.value === "single" || !H.value)) {
|
|
5324
5324
|
switch (s.value) {
|
|
5325
5325
|
case "multiple":
|
|
5326
5326
|
case "tags":
|
|
5327
5327
|
bi($[M.value]) ? It($[M.value]) : Et(
|
|
5328
|
-
$[M.value].filter((B) => Y.value.map((oe) => oe[
|
|
5328
|
+
$[M.value].filter((B) => Y.value.map((oe) => oe[L.value]).indexOf(B[L.value]) === -1).filter((B) => !B[ae.value]).filter((B, oe) => Y.value.length + 1 + oe <= O.value || O.value === -1)
|
|
5329
5329
|
), r.value && Kt.value && Gt(sn.value.filter((B) => !B[ae.value])[Kt.value.index]);
|
|
5330
5330
|
break;
|
|
5331
5331
|
}
|
|
5332
5332
|
R.value && nn();
|
|
5333
5333
|
}
|
|
5334
5334
|
}, un = ($) => {
|
|
5335
|
-
xe($[
|
|
5335
|
+
xe($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], re), e.emit("option", $[L.value], re), e.emit("create", $[L.value], re), ba.value && Si($), he());
|
|
5336
5336
|
}, yi = () => {
|
|
5337
5337
|
s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !ze($)));
|
|
5338
|
-
}, bi = ($) => $.find((B) => !ze(B) && !B[ae.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[
|
|
5338
|
+
}, bi = ($) => $.find((B) => !ze(B) && !B[ae.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((oe) => (parseInt(B[oe]) == B[oe] ? parseInt(B[oe]) : B[oe]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
|
|
5339
5339
|
it.value.push($);
|
|
5340
5340
|
}, Ai = ($) => m.value ? $.filter(
|
|
5341
5341
|
(B) => X.value ? B.__VISIBLE__.length : B[M.value].length
|
|
@@ -5353,8 +5353,8 @@ function i7(t, e, a) {
|
|
|
5353
5353
|
let B = $;
|
|
5354
5354
|
return n7(B) && (B = Object.keys(B).map((oe) => {
|
|
5355
5355
|
let me = B[oe];
|
|
5356
|
-
return { [
|
|
5357
|
-
})), B = B.map((oe) => typeof oe == "object" ? oe : { [
|
|
5356
|
+
return { [L.value]: oe, [yt.value[0]]: me, [u.value]: me };
|
|
5357
|
+
})), B = B.map((oe) => typeof oe == "object" ? oe : { [L.value]: oe, [yt.value[0]]: oe, [u.value]: oe }), B;
|
|
5358
5358
|
}, $a = () => {
|
|
5359
5359
|
je(V.value) || (Y.value = Sa(V.value));
|
|
5360
5360
|
}, ka = ($) => (Me.value = !0, new Promise((B, oe) => {
|
|
@@ -5368,14 +5368,14 @@ function i7(t, e, a) {
|
|
|
5368
5368
|
})), pn = () => {
|
|
5369
5369
|
if (on.value)
|
|
5370
5370
|
if (s.value === "single") {
|
|
5371
|
-
let $ = xe(Y.value[
|
|
5371
|
+
let $ = xe(Y.value[L.value]);
|
|
5372
5372
|
if ($ !== void 0) {
|
|
5373
5373
|
let B = $[u.value];
|
|
5374
5374
|
Y.value[u.value] = B, w.value && (V.value[u.value] = B);
|
|
5375
5375
|
}
|
|
5376
5376
|
} else
|
|
5377
5377
|
Y.value.forEach(($, B) => {
|
|
5378
|
-
let oe = xe(Y.value[B][
|
|
5378
|
+
let oe = xe(Y.value[B][L.value]);
|
|
5379
5379
|
if (oe !== void 0) {
|
|
5380
5380
|
let me = oe[u.value];
|
|
5381
5381
|
Y.value[B][u.value] = me, w.value && (V.value[B][u.value] = me);
|
|
@@ -5385,11 +5385,11 @@ function i7(t, e, a) {
|
|
|
5385
5385
|
ka($);
|
|
5386
5386
|
}, Sa = ($) => je($) ? s.value === "single" ? {} : [] : w.value ? $ : s.value === "single" ? xe($) || (F.value ? {
|
|
5387
5387
|
[u.value]: $,
|
|
5388
|
-
[
|
|
5388
|
+
[L.value]: $,
|
|
5389
5389
|
[yt.value[0]]: $
|
|
5390
5390
|
} : {}) : $.filter((B) => !!xe(B) || F.value).map((B) => xe(B) || {
|
|
5391
5391
|
[u.value]: B,
|
|
5392
|
-
[
|
|
5392
|
+
[L.value]: B,
|
|
5393
5393
|
[yt.value[0]]: B
|
|
5394
5394
|
}), ss = () => {
|
|
5395
5395
|
Be.value = de(X, ($) => {
|
|
@@ -5416,11 +5416,11 @@ function i7(t, e, a) {
|
|
|
5416
5416
|
}
|
|
5417
5417
|
switch (s.value) {
|
|
5418
5418
|
case "single":
|
|
5419
|
-
(w.value ? $[
|
|
5419
|
+
(w.value ? $[L.value] != Y.value[L.value] : $ != Y.value[L.value]) && we(Sa($), !1);
|
|
5420
5420
|
break;
|
|
5421
5421
|
case "multiple":
|
|
5422
5422
|
case "tags":
|
|
5423
|
-
s7(w.value ? $.map((B) => B[
|
|
5423
|
+
s7(w.value ? $.map((B) => B[L.value]) : $, Y.value.map((B) => B[L.value])) || we(Sa($), !1);
|
|
5424
5424
|
break;
|
|
5425
5425
|
}
|
|
5426
5426
|
}, { deep: !0 }), de(n, ($, B) => {
|
|
@@ -5472,7 +5472,7 @@ function o7(t, e, a) {
|
|
|
5472
5472
|
groupSelect: c,
|
|
5473
5473
|
disabledProp: u,
|
|
5474
5474
|
groupOptions: f
|
|
5475
|
-
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, y = a.search, k = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, I = a.isOpen,
|
|
5475
|
+
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, y = a.search, k = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, I = a.isOpen, L = S(() => d.value.filter((V) => !V[u.value])), F = S(() => h.value.filter((V) => !V[u.value])), U = S(() => l.value !== "single" && c.value), q = S(() => k.value && k.value.group), O = S(() => re(k.value)), x = S(() => {
|
|
5476
5476
|
const V = q.value ? k.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
re(k.value)
|
|
@@ -5488,35 +5488,35 @@ function o7(t, e, a) {
|
|
|
5488
5488
|
}), N = S(() => {
|
|
5489
5489
|
const V = re(k.value).__VISIBLE__.filter((X) => !X[u.value]);
|
|
5490
5490
|
return V[V.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1];
|
|
5491
|
-
}), M = S(() => [...x.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), m = S(() => [...Z.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]),
|
|
5492
|
-
_(
|
|
5491
|
+
}), M = S(() => [...x.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), m = S(() => [...Z.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), H = (V) => k.value && (!V.group && k.value[n.value] === V[n.value] || V.group !== void 0 && k.value[i.value] === V[i.value]) ? !0 : void 0, J = () => {
|
|
5492
|
+
_(L.value[0] || null);
|
|
5493
5493
|
}, ae = () => {
|
|
5494
5494
|
!k.value || k.value[u.value] === !0 || (q.value ? b(k.value) : w(k.value));
|
|
5495
5495
|
}, le = () => {
|
|
5496
5496
|
if (k.value === null)
|
|
5497
|
-
_((r.value && U.value ? F.value[0].__CREATE__ ?
|
|
5497
|
+
_((r.value && U.value ? F.value[0].__CREATE__ ? L.value[0] : F.value[0] : L.value[0]) || null);
|
|
5498
5498
|
else if (r.value && U.value) {
|
|
5499
5499
|
let V = q.value ? ie.value : N.value;
|
|
5500
5500
|
V === void 0 && (V = R.value, V.__CREATE__ && (V = V[f.value][0])), _(V || /* istanbul ignore next */
|
|
5501
5501
|
null);
|
|
5502
5502
|
} else {
|
|
5503
|
-
let V =
|
|
5504
|
-
|
|
5503
|
+
let V = L.value.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1;
|
|
5504
|
+
L.value.length <= V && (V = 0), _(L.value[V] || null);
|
|
5505
5505
|
}
|
|
5506
5506
|
De(() => {
|
|
5507
5507
|
Y();
|
|
5508
5508
|
});
|
|
5509
5509
|
}, ne = () => {
|
|
5510
5510
|
if (k.value === null) {
|
|
5511
|
-
let V =
|
|
5511
|
+
let V = L.value[L.value.length - 1];
|
|
5512
5512
|
r.value && U.value && (V = m.value, V === void 0 && (V = Z.value)), _(V || null);
|
|
5513
5513
|
} else if (r.value && U.value) {
|
|
5514
5514
|
let V = q.value ? M.value : E.value;
|
|
5515
5515
|
V === void 0 && (V = q.value ? x.value : O.value, V.__CREATE__ && (V = M.value, V === void 0 && (V = x.value))), _(V || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
|
-
let V =
|
|
5519
|
-
V < 0 && (V =
|
|
5518
|
+
let V = L.value.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1;
|
|
5519
|
+
V < 0 && (V = L.value.length - 1), _(L.value[V] || null);
|
|
5520
5520
|
}
|
|
5521
5521
|
De(() => {
|
|
5522
5522
|
Y();
|
|
@@ -5543,7 +5543,7 @@ function o7(t, e, a) {
|
|
|
5543
5543
|
}), {
|
|
5544
5544
|
pointer: k,
|
|
5545
5545
|
canPointGroups: U,
|
|
5546
|
-
isPointed:
|
|
5546
|
+
isPointed: H,
|
|
5547
5547
|
setPointerFirst: J,
|
|
5548
5548
|
selectPointer: ae,
|
|
5549
5549
|
forwardPointer: le,
|
|
@@ -5909,12 +5909,12 @@ function B7(t, e) {
|
|
|
5909
5909
|
}
|
|
5910
5910
|
function Un(t, e) {
|
|
5911
5911
|
e === void 0 && (e = {});
|
|
5912
|
-
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, y = b === void 0 ? 0 : b, k = V7(typeof y != "number" ? y : B7(y, an)), _ = d === sa ? v7 : sa, C = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i),
|
|
5913
|
-
reference:
|
|
5912
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, y = b === void 0 ? 0 : b, k = V7(typeof y != "number" ? y : B7(y, an)), _ = d === sa ? v7 : sa, C = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), L = Wt(t.elements.reference), F = li({
|
|
5913
|
+
reference: L,
|
|
5914
5914
|
element: C,
|
|
5915
5915
|
strategy: "absolute",
|
|
5916
5916
|
placement: s
|
|
5917
|
-
}), U = bn(Object.assign({}, C, F)), q = d === sa ? U :
|
|
5917
|
+
}), U = bn(Object.assign({}, C, F)), q = d === sa ? U : L, O = {
|
|
5918
5918
|
top: I.top - q.top + k.top,
|
|
5919
5919
|
bottom: q.bottom - I.bottom + k.bottom,
|
|
5920
5920
|
left: I.left - q.left + k.left,
|
|
@@ -5990,8 +5990,8 @@ function R7(t) {
|
|
|
5990
5990
|
u.reset = !1, D = -1;
|
|
5991
5991
|
continue;
|
|
5992
5992
|
}
|
|
5993
|
-
var I = u.orderedModifiers[D],
|
|
5994
|
-
typeof
|
|
5993
|
+
var I = u.orderedModifiers[D], L = I.fn, F = I.options, U = F === void 0 ? {} : F, q = I.name;
|
|
5994
|
+
typeof L == "function" && (u = L({
|
|
5995
5995
|
state: u,
|
|
5996
5996
|
options: U,
|
|
5997
5997
|
name: q,
|
|
@@ -6026,9 +6026,9 @@ function R7(t) {
|
|
|
6026
6026
|
name: k,
|
|
6027
6027
|
instance: h,
|
|
6028
6028
|
options: C
|
|
6029
|
-
}),
|
|
6029
|
+
}), L = function() {
|
|
6030
6030
|
};
|
|
6031
|
-
f.push(I ||
|
|
6031
|
+
f.push(I || L);
|
|
6032
6032
|
}
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
@@ -6101,20 +6101,20 @@ function $s(t) {
|
|
|
6101
6101
|
h = y.x, b = y.y;
|
|
6102
6102
|
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), C = Ge, D = Re, I = window;
|
|
6103
6103
|
if (c) {
|
|
6104
|
-
var
|
|
6105
|
-
if (
|
|
6104
|
+
var L = tn(a), F = "clientHeight", U = "clientWidth";
|
|
6105
|
+
if (L === Se(a) && (L = gt(a), tt(L).position !== "static" && r === "absolute" && (F = "scrollHeight", U = "scrollWidth")), L = L, s === Re || (s === Ge || s === vt) && o === da) {
|
|
6106
6106
|
D = We;
|
|
6107
|
-
var q = f &&
|
|
6107
|
+
var q = f && L === I && I.visualViewport ? I.visualViewport.height : (
|
|
6108
6108
|
// $FlowFixMe[prop-missing]
|
|
6109
|
-
|
|
6109
|
+
L[F]
|
|
6110
6110
|
);
|
|
6111
6111
|
b -= q - n.height, b *= l ? 1 : -1;
|
|
6112
6112
|
}
|
|
6113
6113
|
if (s === Ge || (s === Re || s === We) && o === da) {
|
|
6114
6114
|
C = vt;
|
|
6115
|
-
var O = f &&
|
|
6115
|
+
var O = f && L === I && I.visualViewport ? I.visualViewport.width : (
|
|
6116
6116
|
// $FlowFixMe[prop-missing]
|
|
6117
|
-
|
|
6117
|
+
L[U]
|
|
6118
6118
|
);
|
|
6119
6119
|
h -= O - n.width, h *= l ? 1 : -1;
|
|
6120
6120
|
}
|
|
@@ -6224,7 +6224,7 @@ function ep(t) {
|
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: f,
|
|
6226
6226
|
altBoundary: u
|
|
6227
|
-
}), k = ct(e.placement), _ = zt(e.placement), C = !_, D = ri(k), I = Q7(D),
|
|
6227
|
+
}), k = ct(e.placement), _ = zt(e.placement), C = !_, D = ri(k), I = Q7(D), L = e.modifiersData.popperOffsets, F = e.rects.reference, U = e.rects.popper, q = typeof b == "function" ? b(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
6229
|
})) : b, O = typeof q == "number" ? {
|
|
6230
6230
|
mainAxis: q,
|
|
@@ -6236,17 +6236,17 @@ function ep(t) {
|
|
|
6236
6236
|
x: 0,
|
|
6237
6237
|
y: 0
|
|
6238
6238
|
};
|
|
6239
|
-
if (
|
|
6239
|
+
if (L) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var Z, ie = D === "y" ? Re : Ge, E = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M =
|
|
6241
|
+
var Z, ie = D === "y" ? Re : Ge, E = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M = L[D], m = M + y[ie], H = M - y[E], J = h ? -U[N] / 2 : 0, ae = _ === qt ? F[N] : U[N], le = _ === qt ? -U[N] : -F[N], ne = e.elements.arrow, re = h && ne ? si(ne) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
|
-
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), V = Y[ie], X = Y[E], he = Ia(0, F[N], re[N]), we = C ? F[N] / 2 - J - he - V - O.mainAxis : ae - he - V - O.mainAxis, Kt = C ? -F[N] / 2 + J + he + X + O.mainAxis : le + he + X + O.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (Z = x == null ? void 0 : x[D]) != null ? Z : 0, nn = M + we - _a - nt, st = M + Kt - _a, ya = Ia(h ? Na(m, nn) : m, M, h ? kt(
|
|
6245
|
-
|
|
6244
|
+
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), V = Y[ie], X = Y[E], he = Ia(0, F[N], re[N]), we = C ? F[N] / 2 - J - he - V - O.mainAxis : ae - he - V - O.mainAxis, Kt = C ? -F[N] / 2 + J + he + X + O.mainAxis : le + he + X + O.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (Z = x == null ? void 0 : x[D]) != null ? Z : 0, nn = M + we - _a - nt, st = M + Kt - _a, ya = Ia(h ? Na(m, nn) : m, M, h ? kt(H, st) : H);
|
|
6245
|
+
L[D] = ya, R[D] = ya - M;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
6248
|
-
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be =
|
|
6249
|
-
|
|
6248
|
+
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + y[Ne], ba = Be - y[Me], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it = x == null ? void 0 : x[I]) != null ? it : 0, ot = Te ? Xt : Be - F[qe] - U[qe] - Qt + O.altAxis, _t = Te ? Be + F[qe] + U[qe] - Qt - O.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
|
|
6249
|
+
L[I] = wa, R[I] = wa - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = R;
|
|
6252
6252
|
}
|
|
@@ -6315,7 +6315,7 @@ function op(t) {
|
|
|
6315
6315
|
flipVariations: w,
|
|
6316
6316
|
allowedAutoPlacements: b
|
|
6317
6317
|
}) : Y);
|
|
6318
|
-
}, []), I = e.rects.reference,
|
|
6318
|
+
}, []), I = e.rects.reference, L = e.rects.popper, F = /* @__PURE__ */ new Map(), U = !0, q = D[0], O = 0; O < D.length; O++) {
|
|
6319
6319
|
var x = D[O], R = ct(x), Z = zt(x) === qt, ie = [Re, We].indexOf(R) >= 0, E = ie ? "width" : "height", N = Un(e, {
|
|
6320
6320
|
placement: x,
|
|
6321
6321
|
boundary: u,
|
|
@@ -6323,15 +6323,15 @@ function op(t) {
|
|
|
6323
6323
|
altBoundary: d,
|
|
6324
6324
|
padding: c
|
|
6325
6325
|
}), M = ie ? Z ? vt : Ge : Z ? We : Re;
|
|
6326
|
-
I[E] >
|
|
6327
|
-
var m = La(M),
|
|
6328
|
-
if (o &&
|
|
6326
|
+
I[E] > L[E] && (M = La(M));
|
|
6327
|
+
var m = La(M), H = [];
|
|
6328
|
+
if (o && H.push(N[R] <= 0), r && H.push(N[M] <= 0, N[m] <= 0), H.every(function(re) {
|
|
6329
6329
|
return re;
|
|
6330
6330
|
})) {
|
|
6331
6331
|
q = x, U = !1;
|
|
6332
6332
|
break;
|
|
6333
6333
|
}
|
|
6334
|
-
F.set(x,
|
|
6334
|
+
F.set(x, H);
|
|
6335
6335
|
}
|
|
6336
6336
|
if (U)
|
|
6337
6337
|
for (var J = w ? 3 : 1, ae = function(Y) {
|
|
@@ -6487,14 +6487,14 @@ function cp(t, e, a) {
|
|
|
6487
6487
|
createTag: f,
|
|
6488
6488
|
createOption: d,
|
|
6489
6489
|
reverse: h
|
|
6490
|
-
} = Ae(t), w = Mt().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, I = a.backwardPointer,
|
|
6491
|
-
n.value === "tags" && !r.value && ie.value && i.value && !c.value && C(Z.value[Z.value.map((
|
|
6490
|
+
} = Ae(t), w = Mt().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, F = a.multiselect, U = a.wrapper, q = a.tags, O = a.isOpen, x = a.open, R = a.blur, Z = a.fo, ie = S(() => f.value || d.value || !1), E = S(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), N = () => {
|
|
6491
|
+
n.value === "tags" && !r.value && ie.value && i.value && !c.value && C(Z.value[Z.value.map((H) => H[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
|
-
handleKeydown: (
|
|
6495
|
-
e.emit("keydown",
|
|
6494
|
+
handleKeydown: (H) => {
|
|
6495
|
+
e.emit("keydown", H, w);
|
|
6496
6496
|
let J, ae;
|
|
6497
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(
|
|
6497
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(H.key) !== -1 && n.value === "tags" && (J = [...F.value.querySelectorAll("[data-tags] > *")].filter((le) => le !== q.value), ae = J.findIndex((le) => le === document.activeElement)), H.key) {
|
|
6498
6498
|
case "Backspace":
|
|
6499
6499
|
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || b.value.length === 0)
|
|
6500
6500
|
return;
|
|
@@ -6502,7 +6502,7 @@ function cp(t, e, a) {
|
|
|
6502
6502
|
le.length && k(le[le.length - 1]);
|
|
6503
6503
|
break;
|
|
6504
6504
|
case "Enter":
|
|
6505
|
-
if (
|
|
6505
|
+
if (H.preventDefault(), H.keyCode === 229)
|
|
6506
6506
|
return;
|
|
6507
6507
|
if (ae !== -1 && ae !== void 0) {
|
|
6508
6508
|
y([...b.value].filter((ne, re) => re !== ae)), ae === J.length - 1 && (J.length - 1 ? J[J.length - 2].focus() : i.value ? q.value.querySelector("input").focus() : U.value.focus());
|
|
@@ -6514,49 +6514,49 @@ function cp(t, e, a) {
|
|
|
6514
6514
|
break;
|
|
6515
6515
|
case " ":
|
|
6516
6516
|
if (!ie.value && !i.value) {
|
|
6517
|
-
|
|
6517
|
+
H.preventDefault(), N(), D();
|
|
6518
6518
|
return;
|
|
6519
6519
|
}
|
|
6520
6520
|
if (!ie.value)
|
|
6521
6521
|
return !1;
|
|
6522
6522
|
if (E.value.indexOf("space") === -1 && ie.value)
|
|
6523
6523
|
return;
|
|
6524
|
-
|
|
6524
|
+
H.preventDefault(), N(), D();
|
|
6525
6525
|
break;
|
|
6526
6526
|
case "Tab":
|
|
6527
6527
|
case ";":
|
|
6528
6528
|
case ",":
|
|
6529
|
-
if (E.value.indexOf(
|
|
6529
|
+
if (E.value.indexOf(H.key.toLowerCase()) === -1 || !ie.value)
|
|
6530
6530
|
return;
|
|
6531
|
-
N(), D(),
|
|
6531
|
+
N(), D(), H.preventDefault();
|
|
6532
6532
|
break;
|
|
6533
6533
|
case "Escape":
|
|
6534
6534
|
R();
|
|
6535
6535
|
break;
|
|
6536
6536
|
case "ArrowUp":
|
|
6537
|
-
if (
|
|
6537
|
+
if (H.preventDefault(), !r.value)
|
|
6538
6538
|
return;
|
|
6539
6539
|
O.value || x(), I();
|
|
6540
6540
|
break;
|
|
6541
6541
|
case "ArrowDown":
|
|
6542
|
-
if (
|
|
6542
|
+
if (H.preventDefault(), !r.value)
|
|
6543
6543
|
return;
|
|
6544
|
-
O.value || x(),
|
|
6544
|
+
O.value || x(), L();
|
|
6545
6545
|
break;
|
|
6546
6546
|
case "ArrowLeft":
|
|
6547
|
-
if (i.value && q.value && q.value.querySelector("input").selectionStart ||
|
|
6547
|
+
if (i.value && q.value && q.value.querySelector("input").selectionStart || H.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6548
6548
|
return;
|
|
6549
|
-
|
|
6549
|
+
H.preventDefault(), ae === -1 ? J[J.length - 1].focus() : ae > 0 && J[ae - 1].focus();
|
|
6550
6550
|
break;
|
|
6551
6551
|
case "ArrowRight":
|
|
6552
|
-
if (ae === -1 ||
|
|
6552
|
+
if (ae === -1 || H.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6553
6553
|
return;
|
|
6554
|
-
|
|
6554
|
+
H.preventDefault(), J.length > ae + 1 ? J[ae + 1].focus() : i.value ? q.value.querySelector("input").focus() : i.value || U.value.focus();
|
|
6555
6555
|
break;
|
|
6556
6556
|
}
|
|
6557
6557
|
},
|
|
6558
|
-
handleKeyup: (
|
|
6559
|
-
e.emit("keyup",
|
|
6558
|
+
handleKeyup: (H) => {
|
|
6559
|
+
e.emit("keyup", H, w);
|
|
6560
6560
|
},
|
|
6561
6561
|
preparePointer: N
|
|
6562
6562
|
};
|
|
@@ -6659,8 +6659,8 @@ function dp(t, e, a) {
|
|
|
6659
6659
|
},
|
|
6660
6660
|
groupOptions: C.groupOptions,
|
|
6661
6661
|
option: (D, I) => {
|
|
6662
|
-
let
|
|
6663
|
-
return l(D) ?
|
|
6662
|
+
let L = [C.option];
|
|
6663
|
+
return l(D) ? L.push(c(D) ? C.optionSelectedPointed : C.optionPointed) : c(D) ? L.push(u(D) ? C.optionSelectedDisabled : C.optionSelected) : (u(D) || I && u(I)) && L.push(C.optionDisabled), L;
|
|
6664
6664
|
},
|
|
6665
6665
|
noOptions: C.noOptions,
|
|
6666
6666
|
noResults: C.noResults,
|
|
@@ -6722,7 +6722,7 @@ function fp(t, e, a) {
|
|
|
6722
6722
|
}), C = S(() => n.value), D = S(() => r.value !== "single"), I = S(() => {
|
|
6723
6723
|
let R = "";
|
|
6724
6724
|
return r.value === "single" && h.value && (R += d.value[i.value]), r.value === "multiple" && h.value && (R += w.value), r.value === "tags" && h.value && (R += d.value.map((Z) => Z[i.value]).join(", ")), R;
|
|
6725
|
-
}),
|
|
6725
|
+
}), L = S(() => {
|
|
6726
6726
|
let R = { ...c.value };
|
|
6727
6727
|
return u.value && (R["aria-labelledby"] = R["aria-labelledby"] ? `${y.value} ${R["aria-labelledby"]}` : y.value, I.value && R["aria-label"] && (R["aria-label"] = `${I.value}, ${R["aria-label"]}`)), R;
|
|
6728
6728
|
}), F = (R) => {
|
|
@@ -6744,7 +6744,7 @@ function fp(t, e, a) {
|
|
|
6744
6744
|
b.value = R ? R.innerText : null;
|
|
6745
6745
|
}
|
|
6746
6746
|
}), {
|
|
6747
|
-
arias:
|
|
6747
|
+
arias: L,
|
|
6748
6748
|
ariaLabel: I,
|
|
6749
6749
|
ariaAssist: y,
|
|
6750
6750
|
ariaControls: k,
|
|
@@ -8266,9 +8266,9 @@ const wn = /* @__PURE__ */ z({
|
|
|
8266
8266
|
}
|
|
8267
8267
|
}), u = S(() => {
|
|
8268
8268
|
var m;
|
|
8269
|
-
return (m = a.activityTypes) == null ? void 0 : m.map((
|
|
8270
|
-
label:
|
|
8271
|
-
value:
|
|
8269
|
+
return (m = a.activityTypes) == null ? void 0 : m.map((H) => ({
|
|
8270
|
+
label: H.name,
|
|
8271
|
+
value: H.id
|
|
8272
8272
|
}));
|
|
8273
8273
|
}), f = S({
|
|
8274
8274
|
get() {
|
|
@@ -8284,7 +8284,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8284
8284
|
}))), h = S({
|
|
8285
8285
|
get() {
|
|
8286
8286
|
var m;
|
|
8287
|
-
return (m = a.activity.dependingOn) == null ? void 0 : m.map((
|
|
8287
|
+
return (m = a.activity.dependingOn) == null ? void 0 : m.map((H) => H.id);
|
|
8288
8288
|
},
|
|
8289
8289
|
set(m) {
|
|
8290
8290
|
m && e("update:activity", {
|
|
@@ -8293,15 +8293,15 @@ const wn = /* @__PURE__ */ z({
|
|
|
8293
8293
|
});
|
|
8294
8294
|
}
|
|
8295
8295
|
}), w = S(() => d.value.map((m) => {
|
|
8296
|
-
var
|
|
8296
|
+
var H;
|
|
8297
8297
|
return {
|
|
8298
8298
|
...m,
|
|
8299
|
-
disabled: (
|
|
8299
|
+
disabled: (H = a.activity.blocking) == null ? void 0 : H.some((J) => J.id === m.value)
|
|
8300
8300
|
};
|
|
8301
8301
|
})), b = S({
|
|
8302
8302
|
get() {
|
|
8303
8303
|
var m;
|
|
8304
|
-
return (m = a.activity.blocking) == null ? void 0 : m.map((
|
|
8304
|
+
return (m = a.activity.blocking) == null ? void 0 : m.map((H) => H.id);
|
|
8305
8305
|
},
|
|
8306
8306
|
set(m) {
|
|
8307
8307
|
m && e("update:activity", {
|
|
@@ -8310,10 +8310,10 @@ const wn = /* @__PURE__ */ z({
|
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
8312
|
}), y = S(() => d.value.map((m) => {
|
|
8313
|
-
var
|
|
8313
|
+
var H;
|
|
8314
8314
|
return {
|
|
8315
8315
|
...m,
|
|
8316
|
-
disabled: (
|
|
8316
|
+
disabled: (H = a.activity.dependingOn) == null ? void 0 : H.some(
|
|
8317
8317
|
(J) => J.id === m.value
|
|
8318
8318
|
)
|
|
8319
8319
|
};
|
|
@@ -8325,15 +8325,15 @@ const wn = /* @__PURE__ */ z({
|
|
|
8325
8325
|
e("deleteSubtask", m);
|
|
8326
8326
|
}, D = S(() => {
|
|
8327
8327
|
var m;
|
|
8328
|
-
return ((m = a.users) == null ? void 0 : m.map((
|
|
8329
|
-
label: `${
|
|
8330
|
-
value:
|
|
8331
|
-
avatar:
|
|
8328
|
+
return ((m = a.users) == null ? void 0 : m.map((H) => ({
|
|
8329
|
+
label: `${H.firstName} ${H.lastName}`,
|
|
8330
|
+
value: H.id,
|
|
8331
|
+
avatar: H.avatarUrl
|
|
8332
8332
|
}))) || [];
|
|
8333
8333
|
}), I = S({
|
|
8334
8334
|
get() {
|
|
8335
|
-
var m,
|
|
8336
|
-
return (m = a.activity.assignee) != null && m.id ? [(
|
|
8335
|
+
var m, H;
|
|
8336
|
+
return (m = a.activity.assignee) != null && m.id ? [(H = a.activity.assignee) == null ? void 0 : H.id] : [];
|
|
8337
8337
|
},
|
|
8338
8338
|
set(m) {
|
|
8339
8339
|
e("update:activity", {
|
|
@@ -8342,7 +8342,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8342
8342
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
8343
8343
|
});
|
|
8344
8344
|
}
|
|
8345
|
-
}),
|
|
8345
|
+
}), L = (m) => {
|
|
8346
8346
|
e("addFiles", {
|
|
8347
8347
|
activityId: a.activity.id,
|
|
8348
8348
|
files: m
|
|
@@ -8356,8 +8356,8 @@ const wn = /* @__PURE__ */ z({
|
|
|
8356
8356
|
value: m.id,
|
|
8357
8357
|
label: m.name
|
|
8358
8358
|
}))), q = S(() => {
|
|
8359
|
-
var
|
|
8360
|
-
const m = (ae = (J = (
|
|
8359
|
+
var H, J, ae;
|
|
8360
|
+
const m = (ae = (J = (H = a.activity) == null ? void 0 : H.project) == null ? void 0 : J.phases) == null ? void 0 : ae.reduce(
|
|
8361
8361
|
(le, ne) => [...le, ...ne.milestones],
|
|
8362
8362
|
[]
|
|
8363
8363
|
);
|
|
@@ -8377,9 +8377,9 @@ const wn = /* @__PURE__ */ z({
|
|
|
8377
8377
|
});
|
|
8378
8378
|
}, R = S(() => {
|
|
8379
8379
|
var m;
|
|
8380
|
-
return (m = a.statuses) == null ? void 0 : m.map((
|
|
8381
|
-
value:
|
|
8382
|
-
label:
|
|
8380
|
+
return (m = a.statuses) == null ? void 0 : m.map((H) => ({
|
|
8381
|
+
value: H.id,
|
|
8382
|
+
label: H.name
|
|
8383
8383
|
}));
|
|
8384
8384
|
}), Z = (m) => {
|
|
8385
8385
|
e("update:activity", {
|
|
@@ -8396,11 +8396,11 @@ const wn = /* @__PURE__ */ z({
|
|
|
8396
8396
|
}, N = (m) => {
|
|
8397
8397
|
e("removeComment", m);
|
|
8398
8398
|
}, M = S(() => {
|
|
8399
|
-
var m,
|
|
8400
|
-
return ((m = a.activity.createdBy) == null ? void 0 : m.firstName) && ((
|
|
8399
|
+
var m, H;
|
|
8400
|
+
return ((m = a.activity.createdBy) == null ? void 0 : m.firstName) && ((H = a.activity.createdBy) == null ? void 0 : H.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8401
8401
|
});
|
|
8402
|
-
return (m,
|
|
8403
|
-
onClose:
|
|
8402
|
+
return (m, H) => (p(), P(In, {
|
|
8403
|
+
onClose: H[10] || (H[10] = (J) => m.$emit("close"))
|
|
8404
8404
|
}, {
|
|
8405
8405
|
default: W(() => {
|
|
8406
8406
|
var J, ae, le;
|
|
@@ -8455,14 +8455,14 @@ const wn = /* @__PURE__ */ z({
|
|
|
8455
8455
|
A(af, {
|
|
8456
8456
|
attachments: m.activity.attachments,
|
|
8457
8457
|
"is-editable": m.attachmentEnabled && n.value && m.isTemplate !== !0 && !!m.userId,
|
|
8458
|
-
onAdd:
|
|
8458
|
+
onAdd: L,
|
|
8459
8459
|
onRemove: F
|
|
8460
8460
|
}, {
|
|
8461
8461
|
default: W(() => [
|
|
8462
8462
|
v("label", Tf, [
|
|
8463
8463
|
v("span", Of, G(m.$t("activity.description.label")), 1),
|
|
8464
8464
|
Ke(v("textarea", {
|
|
8465
|
-
"onUpdate:modelValue":
|
|
8465
|
+
"onUpdate:modelValue": H[0] || (H[0] = (ne) => o.value = ne),
|
|
8466
8466
|
readonly: !n.value,
|
|
8467
8467
|
rows: "4",
|
|
8468
8468
|
class: "ao-field__textarea"
|
|
@@ -8486,7 +8486,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8486
8486
|
v("label", Lf, [
|
|
8487
8487
|
v("span", Hf, G(m.$t("activity.estimation.label")), 1),
|
|
8488
8488
|
Ke(v("input", {
|
|
8489
|
-
"onUpdate:modelValue":
|
|
8489
|
+
"onUpdate:modelValue": H[1] || (H[1] = (ne) => i.value = ne),
|
|
8490
8490
|
readonly: !n.value,
|
|
8491
8491
|
class: "ao-field__input ao-field__input--estim",
|
|
8492
8492
|
type: "number",
|
|
@@ -8551,7 +8551,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8551
8551
|
v("div", Ff, [
|
|
8552
8552
|
A(pe, {
|
|
8553
8553
|
name: "CloseRounded",
|
|
8554
|
-
onClick:
|
|
8554
|
+
onClick: H[2] || (H[2] = (ne) => m.$emit("close"))
|
|
8555
8555
|
})
|
|
8556
8556
|
]),
|
|
8557
8557
|
R.value ? (p(), g("div", Uf, [
|
|
@@ -8574,7 +8574,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8574
8574
|
v("span", xf, G(m.$t("activity.assignee.label")), 1),
|
|
8575
8575
|
A($e, {
|
|
8576
8576
|
modelValue: I.value,
|
|
8577
|
-
"onUpdate:modelValue":
|
|
8577
|
+
"onUpdate:modelValue": H[3] || (H[3] = (ne) => I.value = ne),
|
|
8578
8578
|
class: "ao-activity-details__assignees ao-activity-details__multiselect",
|
|
8579
8579
|
options: D.value,
|
|
8580
8580
|
"close-on-select": !0,
|
|
@@ -8605,7 +8605,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8605
8605
|
v("label", Gf, [
|
|
8606
8606
|
v("span", Xf, G(m.$t("activity.deadline.label")), 1),
|
|
8607
8607
|
Ke(v("input", {
|
|
8608
|
-
"onUpdate:modelValue":
|
|
8608
|
+
"onUpdate:modelValue": H[4] || (H[4] = (ne) => c.value = ne),
|
|
8609
8609
|
readonly: !n.value,
|
|
8610
8610
|
class: "ao-field__input",
|
|
8611
8611
|
type: "date"
|
|
@@ -8625,7 +8625,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8625
8625
|
v("label", tv, [
|
|
8626
8626
|
A($e, {
|
|
8627
8627
|
modelValue: f.value,
|
|
8628
|
-
"onUpdate:modelValue":
|
|
8628
|
+
"onUpdate:modelValue": H[5] || (H[5] = (ne) => f.value = ne),
|
|
8629
8629
|
class: "ao-activity-details__multiselect",
|
|
8630
8630
|
mode: "single",
|
|
8631
8631
|
searchable: !0,
|
|
@@ -8641,7 +8641,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8641
8641
|
v("div", av, [
|
|
8642
8642
|
A(wn, {
|
|
8643
8643
|
modelValue: r.value,
|
|
8644
|
-
"onUpdate:modelValue":
|
|
8644
|
+
"onUpdate:modelValue": H[6] || (H[6] = (ne) => r.value = ne),
|
|
8645
8645
|
modelModifiers: { lazy: !0 },
|
|
8646
8646
|
label: m.$t("activity.important.label"),
|
|
8647
8647
|
disabled: !n.value,
|
|
@@ -8656,7 +8656,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8656
8656
|
m.isTemplate !== !0 && m.activity.createdBy.id === m.userId ? (p(), g("div", nv, [
|
|
8657
8657
|
A(wn, {
|
|
8658
8658
|
modelValue: l.value,
|
|
8659
|
-
"onUpdate:modelValue":
|
|
8659
|
+
"onUpdate:modelValue": H[7] || (H[7] = (ne) => l.value = ne),
|
|
8660
8660
|
modelModifiers: { lazy: !0 },
|
|
8661
8661
|
label: m.$t("activity.private.label"),
|
|
8662
8662
|
disabled: !n.value,
|
|
@@ -8681,7 +8681,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8681
8681
|
v("span", uv, G(m.$t("activity.dependingOn.label")), 1),
|
|
8682
8682
|
A($e, {
|
|
8683
8683
|
modelValue: h.value,
|
|
8684
|
-
"onUpdate:modelValue":
|
|
8684
|
+
"onUpdate:modelValue": H[8] || (H[8] = (ne) => h.value = ne),
|
|
8685
8685
|
class: "ao-activity-details__multiselect",
|
|
8686
8686
|
mode: "tags",
|
|
8687
8687
|
"close-on-select": !1,
|
|
@@ -8697,7 +8697,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8697
8697
|
v("span", pv, G(m.$t("activity.blocking.label")), 1),
|
|
8698
8698
|
A($e, {
|
|
8699
8699
|
modelValue: b.value,
|
|
8700
|
-
"onUpdate:modelValue":
|
|
8700
|
+
"onUpdate:modelValue": H[9] || (H[9] = (ne) => b.value = ne),
|
|
8701
8701
|
class: "ao-activity-details__multiselect",
|
|
8702
8702
|
mode: "tags",
|
|
8703
8703
|
"close-on-select": !1,
|
|
@@ -8941,7 +8941,7 @@ const _v = {
|
|
|
8941
8941
|
);
|
|
8942
8942
|
const i = S(() => {
|
|
8943
8943
|
var M, m;
|
|
8944
|
-
return (m = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : m.find((
|
|
8944
|
+
return (m = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : m.find((H) => H.id === a.phaseId);
|
|
8945
8945
|
});
|
|
8946
8946
|
de(
|
|
8947
8947
|
() => {
|
|
@@ -8955,7 +8955,7 @@ const _v = {
|
|
|
8955
8955
|
const r = S(() => {
|
|
8956
8956
|
var M, m;
|
|
8957
8957
|
return (m = (M = i.value) == null ? void 0 : M.milestones) == null ? void 0 : m.find(
|
|
8958
|
-
(
|
|
8958
|
+
(H) => H.id === a.milestoneId
|
|
8959
8959
|
);
|
|
8960
8960
|
});
|
|
8961
8961
|
de(
|
|
@@ -8969,23 +8969,23 @@ const _v = {
|
|
|
8969
8969
|
);
|
|
8970
8970
|
const l = S(() => {
|
|
8971
8971
|
var M, m;
|
|
8972
|
-
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((
|
|
8972
|
+
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((H, J) => {
|
|
8973
8973
|
const ae = J.milestones || [];
|
|
8974
|
-
return [...
|
|
8974
|
+
return [...H, ...ae];
|
|
8975
8975
|
}, [])) || [];
|
|
8976
8976
|
}), c = S(() => {
|
|
8977
8977
|
var M, m;
|
|
8978
|
-
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((
|
|
8978
|
+
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((H, J) => {
|
|
8979
8979
|
const le = (J.milestones || []).reduce(
|
|
8980
8980
|
(ne, re) => re.activities ? [...ne, ...re.activities] : ne,
|
|
8981
8981
|
[]
|
|
8982
8982
|
);
|
|
8983
|
-
return [...
|
|
8983
|
+
return [...H, ...le];
|
|
8984
8984
|
}, [])) || [];
|
|
8985
8985
|
}), u = S(() => {
|
|
8986
8986
|
var M, m;
|
|
8987
8987
|
return (m = (M = r.value) == null ? void 0 : M.activities) == null ? void 0 : m.find(
|
|
8988
|
-
(
|
|
8988
|
+
(H) => H.id === a.activityId
|
|
8989
8989
|
);
|
|
8990
8990
|
}), f = S(() => {
|
|
8991
8991
|
var M;
|
|
@@ -9033,7 +9033,7 @@ const _v = {
|
|
|
9033
9033
|
}, k = (M) => {
|
|
9034
9034
|
if (!i.value)
|
|
9035
9035
|
return;
|
|
9036
|
-
const { name: m, rank:
|
|
9036
|
+
const { name: m, rank: H } = Bt(
|
|
9037
9037
|
i.value.milestones,
|
|
9038
9038
|
"milestone",
|
|
9039
9039
|
n
|
|
@@ -9044,7 +9044,7 @@ const _v = {
|
|
|
9044
9044
|
phaseId: M.phaseId,
|
|
9045
9045
|
item: {
|
|
9046
9046
|
name: m,
|
|
9047
|
-
rank:
|
|
9047
|
+
rank: H,
|
|
9048
9048
|
phaseId: M.phaseId
|
|
9049
9049
|
}
|
|
9050
9050
|
});
|
|
@@ -9058,18 +9058,18 @@ const _v = {
|
|
|
9058
9058
|
}
|
|
9059
9059
|
});
|
|
9060
9060
|
}, C = (M) => {
|
|
9061
|
-
const { id: m, ...
|
|
9061
|
+
const { id: m, ...H } = M;
|
|
9062
9062
|
e("updateItem", {
|
|
9063
9063
|
itemType: Ce.MILESTONES,
|
|
9064
9064
|
id: m,
|
|
9065
9065
|
templateId: a.templateId,
|
|
9066
|
-
data:
|
|
9066
|
+
data: H
|
|
9067
9067
|
});
|
|
9068
9068
|
}, D = (M) => {
|
|
9069
9069
|
const { milestoneId: m } = M;
|
|
9070
9070
|
if (!r.value)
|
|
9071
9071
|
return;
|
|
9072
|
-
const { name:
|
|
9072
|
+
const { name: H, rank: J } = Bt(
|
|
9073
9073
|
r.value.activities,
|
|
9074
9074
|
"activity",
|
|
9075
9075
|
n
|
|
@@ -9078,26 +9078,26 @@ const _v = {
|
|
|
9078
9078
|
type: Ce.ACTIVITIES,
|
|
9079
9079
|
milestoneId: m,
|
|
9080
9080
|
templateId: a.templateId,
|
|
9081
|
-
item: { name:
|
|
9081
|
+
item: { name: H, rank: J, milestoneId: m }
|
|
9082
9082
|
});
|
|
9083
9083
|
}, I = (M) => {
|
|
9084
|
-
var m,
|
|
9084
|
+
var m, H;
|
|
9085
9085
|
e("removeItem", {
|
|
9086
9086
|
type: Ce.ACTIVITIES,
|
|
9087
9087
|
templateId: a.templateId,
|
|
9088
9088
|
phaseId: (m = i.value) == null ? void 0 : m.id,
|
|
9089
|
-
milestoneId: (
|
|
9089
|
+
milestoneId: (H = r.value) == null ? void 0 : H.id,
|
|
9090
9090
|
data: {
|
|
9091
9091
|
id: M.id
|
|
9092
9092
|
}
|
|
9093
9093
|
});
|
|
9094
|
-
},
|
|
9095
|
-
const { id: m, ...
|
|
9094
|
+
}, L = (M) => {
|
|
9095
|
+
const { id: m, ...H } = M;
|
|
9096
9096
|
e("updateItem", {
|
|
9097
9097
|
itemType: Ce.ACTIVITIES,
|
|
9098
9098
|
id: m,
|
|
9099
9099
|
templateId: a.templateId,
|
|
9100
|
-
data:
|
|
9100
|
+
data: H
|
|
9101
9101
|
});
|
|
9102
9102
|
}, F = ee(!1), U = () => {
|
|
9103
9103
|
F.value = !F.value;
|
|
@@ -9108,13 +9108,13 @@ const _v = {
|
|
|
9108
9108
|
}, x = (M) => {
|
|
9109
9109
|
var m;
|
|
9110
9110
|
if (M.moved) {
|
|
9111
|
-
const
|
|
9111
|
+
const H = Ca(M, ((m = s.value) == null ? void 0 : m.phases) ?? []);
|
|
9112
9112
|
e("updateItem", {
|
|
9113
9113
|
itemType: Ce.PHASES,
|
|
9114
9114
|
id: M.moved.element.id,
|
|
9115
9115
|
templateId: a.templateId,
|
|
9116
9116
|
data: {
|
|
9117
|
-
rank:
|
|
9117
|
+
rank: H
|
|
9118
9118
|
}
|
|
9119
9119
|
});
|
|
9120
9120
|
}
|
|
@@ -9149,7 +9149,7 @@ const _v = {
|
|
|
9149
9149
|
e("removeFile", M);
|
|
9150
9150
|
};
|
|
9151
9151
|
return (M, m) => {
|
|
9152
|
-
var
|
|
9152
|
+
var H, J, ae, le, ne, re;
|
|
9153
9153
|
return s.value ? (p(), g("div", _v, [
|
|
9154
9154
|
A(Ga, {
|
|
9155
9155
|
"can-go-back": !0,
|
|
@@ -9220,7 +9220,7 @@ const _v = {
|
|
|
9220
9220
|
key: 0,
|
|
9221
9221
|
"template-id": M.templateId,
|
|
9222
9222
|
phase: i.value,
|
|
9223
|
-
"milestone-id": (
|
|
9223
|
+
"milestone-id": (H = r.value) == null ? void 0 : H.id,
|
|
9224
9224
|
onAddMilestone: k,
|
|
9225
9225
|
onUpdateMilestone: C,
|
|
9226
9226
|
onUpdatePhase: y,
|
|
@@ -9235,7 +9235,7 @@ const _v = {
|
|
|
9235
9235
|
milestone: r.value,
|
|
9236
9236
|
"activity-id": (ae = u.value) == null ? void 0 : ae.id,
|
|
9237
9237
|
onAddActivity: D,
|
|
9238
|
-
onUpdateActivity:
|
|
9238
|
+
onUpdateActivity: L,
|
|
9239
9239
|
onRemoveActivity: I
|
|
9240
9240
|
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : T("", !0)
|
|
9241
9241
|
])
|
|
@@ -9254,7 +9254,7 @@ const _v = {
|
|
|
9254
9254
|
"is-editable": !0,
|
|
9255
9255
|
users: M.users,
|
|
9256
9256
|
"onUpdate:activity": m[2] || (m[2] = (Y) => {
|
|
9257
|
-
u.value &&
|
|
9257
|
+
u.value && L(Y);
|
|
9258
9258
|
}),
|
|
9259
9259
|
"attachment-enabled": !1,
|
|
9260
9260
|
onClose: M.$router.back,
|
|
@@ -9970,7 +9970,7 @@ const ci = /* @__PURE__ */ j(h9, [["render", C9], ["__scopeId", "data-v-cbe33527
|
|
|
9970
9970
|
e("removeFile", O);
|
|
9971
9971
|
}, I = (O) => {
|
|
9972
9972
|
e("addComment", O);
|
|
9973
|
-
},
|
|
9973
|
+
}, L = (O) => {
|
|
9974
9974
|
e("updateComment", O);
|
|
9975
9975
|
}, F = (O) => {
|
|
9976
9976
|
e("removeComment", O);
|
|
@@ -10066,7 +10066,7 @@ const ci = /* @__PURE__ */ j(h9, [["render", C9], ["__scopeId", "data-v-cbe33527
|
|
|
10066
10066
|
onAddFiles: C,
|
|
10067
10067
|
onRemoveFile: D,
|
|
10068
10068
|
onAddComment: I,
|
|
10069
|
-
onUpdateComment:
|
|
10069
|
+
onUpdateComment: L,
|
|
10070
10070
|
onRemoveComment: F
|
|
10071
10071
|
}, {
|
|
10072
10072
|
default: W(({ Component: Z }) => [
|
|
@@ -11422,13 +11422,13 @@ const v4 = /* @__PURE__ */ j(d4, [["render", f4]]), h4 = { class: "ao-project-mi
|
|
|
11422
11422
|
}, {
|
|
11423
11423
|
tag: W(({
|
|
11424
11424
|
option: I,
|
|
11425
|
-
handleTagRemove:
|
|
11425
|
+
handleTagRemove: L
|
|
11426
11426
|
}) => [
|
|
11427
11427
|
A(Je, {
|
|
11428
11428
|
"user-name": I.label,
|
|
11429
11429
|
"avatar-url": I.avatar,
|
|
11430
11430
|
"is-closable": !0,
|
|
11431
|
-
onClose: (F) =>
|
|
11431
|
+
onClose: (F) => L(I, F)
|
|
11432
11432
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
11433
11433
|
]),
|
|
11434
11434
|
_: 1
|
|
@@ -11450,12 +11450,12 @@ const v4 = /* @__PURE__ */ j(d4, [["render", f4]]), h4 = { class: "ao-project-mi
|
|
|
11450
11450
|
group: "kanban"
|
|
11451
11451
|
}, _.$attrs, { onChange: f }), {
|
|
11452
11452
|
item: W(({ element: I }) => {
|
|
11453
|
-
var
|
|
11453
|
+
var L, F, U, q, O;
|
|
11454
11454
|
return [
|
|
11455
11455
|
A(di, {
|
|
11456
11456
|
id: I.id,
|
|
11457
11457
|
name: I.name || I.id,
|
|
11458
|
-
"phase-name": (
|
|
11458
|
+
"phase-name": (L = s.value) == null ? void 0 : L.name,
|
|
11459
11459
|
"milestone-name": (F = i.value) == null ? void 0 : F.name,
|
|
11460
11460
|
"milestone-color": (U = i.value) == null ? void 0 : U.color,
|
|
11461
11461
|
deadline: I.deadline,
|
|
@@ -11853,7 +11853,7 @@ const j4 = {
|
|
|
11853
11853
|
"is-editable": o(d),
|
|
11854
11854
|
"is-private": d.private,
|
|
11855
11855
|
"tag-type": u.tagType,
|
|
11856
|
-
onUpdateActivity: [(
|
|
11856
|
+
onUpdateActivity: [(L) => o(d) && r(L), () => o(d) && r],
|
|
11857
11857
|
onClick: () => i(d.id),
|
|
11858
11858
|
onRemoveAssignee: () => o(d) && r({ id: d.id, assigneeId: null })
|
|
11859
11859
|
}, {
|
|
@@ -11964,6 +11964,7 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
11964
11964
|
users: {},
|
|
11965
11965
|
userId: {},
|
|
11966
11966
|
initialActivityId: {},
|
|
11967
|
+
initialActivitySlug: {},
|
|
11967
11968
|
searchText: { default: "" },
|
|
11968
11969
|
showsArchivedActivities: { type: Boolean },
|
|
11969
11970
|
showsOnlyImportant: { type: Boolean },
|
|
@@ -11974,22 +11975,22 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
11974
11975
|
},
|
|
11975
11976
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
11976
11977
|
setup(t, { emit: e }) {
|
|
11977
|
-
const a = t, { t: n } = Tt(), s = Pt(a, "activities"), o = async (E) => {
|
|
11978
|
-
await e("selectActivity", E);
|
|
11978
|
+
const a = t, { t: n } = Tt(), s = Pt(a, "activities"), o = async (E, N) => {
|
|
11979
|
+
await e("selectActivity", E, N);
|
|
11979
11980
|
}, i = ee({}), r = ee(!1), l = ee(!1), c = S(() => a.project ? "milestone" : "project");
|
|
11980
11981
|
de(
|
|
11981
|
-
[() => a.statuses, () => a.activities, () => a.initialActivityId],
|
|
11982
|
+
[() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
|
|
11982
11983
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11983
|
-
async ([E, N, M], [
|
|
11984
|
+
async ([E, N, M, m], [H, J]) => {
|
|
11984
11985
|
i.value = Object.fromEntries(
|
|
11985
|
-
E.map((
|
|
11986
|
-
|
|
11987
|
-
N.filter((
|
|
11988
|
-
var
|
|
11989
|
-
return ((
|
|
11986
|
+
E.map((ae) => [
|
|
11987
|
+
ae.id,
|
|
11988
|
+
N.filter((le) => {
|
|
11989
|
+
var ne;
|
|
11990
|
+
return ((ne = le.status) == null ? void 0 : ne.id) === ae.id;
|
|
11990
11991
|
})
|
|
11991
11992
|
])
|
|
11992
|
-
), M && !r.value
|
|
11993
|
+
), M && !r.value ? (o(M, null), r.value = !0) : m && !r.value && (o(null, m), r.value = !0), l.value && Xe(N, J);
|
|
11993
11994
|
},
|
|
11994
11995
|
{ immediate: !0 }
|
|
11995
11996
|
);
|
|
@@ -11998,12 +11999,12 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
11998
11999
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((E = a.selectedActivity.milestone.phase) == null ? void 0 : E.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
11999
12000
|
}), f = (E) => {
|
|
12000
12001
|
var J, ae;
|
|
12001
|
-
const N = (J = a.activities) == null ? void 0 : J.at(-1), M = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(), m = ((ae = a.activities) == null ? void 0 : ae.length) ?? 0,
|
|
12002
|
+
const N = (J = a.activities) == null ? void 0 : J.at(-1), M = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(), m = ((ae = a.activities) == null ? void 0 : ae.length) ?? 0, H = {
|
|
12002
12003
|
name: n("activity.defaultName", { idx: m + 1 }),
|
|
12003
12004
|
rank: M.format(),
|
|
12004
12005
|
statusId: E.id
|
|
12005
12006
|
};
|
|
12006
|
-
a.filters.assigneeId.length > 0 && (
|
|
12007
|
+
a.filters.assigneeId.length > 0 && (H.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (H.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (H.typeId = a.filters.typeId[0]), l.value = !0, e("addActivity", H);
|
|
12007
12008
|
}, d = (E, N) => {
|
|
12008
12009
|
l.value = !1, e("update:filters", { ...a.filters, [E]: N });
|
|
12009
12010
|
}, h = S(
|
|
@@ -12031,7 +12032,7 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
12031
12032
|
e("unarchiveActivity", E);
|
|
12032
12033
|
}, I = (E) => {
|
|
12033
12034
|
l.value = !1, e("update:searchText", E);
|
|
12034
|
-
},
|
|
12035
|
+
}, L = (E) => {
|
|
12035
12036
|
l.value = !1, e("clear:searchText", E);
|
|
12036
12037
|
}, F = (E) => {
|
|
12037
12038
|
a.selectedActivity && e("addSubtask", E);
|
|
@@ -12075,7 +12076,7 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
12075
12076
|
placeholder: E.$t("feed.search.placeholder"),
|
|
12076
12077
|
class: "ao-feed__search",
|
|
12077
12078
|
"onUpdate:modelValue": I,
|
|
12078
|
-
onClear:
|
|
12079
|
+
onClear: L
|
|
12079
12080
|
}, null, 8, ["model-value", "placeholder"]),
|
|
12080
12081
|
a.project ? T("", !0) : (p(), P($e, {
|
|
12081
12082
|
key: 1,
|
|
@@ -12112,13 +12113,13 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
12112
12113
|
}, {
|
|
12113
12114
|
tag: W(({
|
|
12114
12115
|
option: m,
|
|
12115
|
-
handleTagRemove:
|
|
12116
|
+
handleTagRemove: H
|
|
12116
12117
|
}) => [
|
|
12117
12118
|
A(Je, {
|
|
12118
12119
|
"user-name": m.label,
|
|
12119
12120
|
"avatar-url": m.avatar,
|
|
12120
12121
|
"is-closable": !0,
|
|
12121
|
-
onClose: (J) =>
|
|
12122
|
+
onClose: (J) => H(m, J)
|
|
12122
12123
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12123
12124
|
]),
|
|
12124
12125
|
_: 1
|
|
@@ -12184,7 +12185,7 @@ const X4 = { class: "ao-feed" }, Q4 = { class: "ao-feed__filters" }, J4 = { clas
|
|
|
12184
12185
|
"is-editable": E.isEditable,
|
|
12185
12186
|
"attachment-enabled": E.attachmentEnabled,
|
|
12186
12187
|
projects: h.value,
|
|
12187
|
-
onClose: N[6] || (N[6] = () => o(null)),
|
|
12188
|
+
onClose: N[6] || (N[6] = () => o(null, null)),
|
|
12188
12189
|
"onUpdate:activity": k,
|
|
12189
12190
|
onAddSubtask: F,
|
|
12190
12191
|
onUpdateSubtask: U,
|