@26lights/orcha 0.36.18 → 0.36.20
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 +296 -286
- package/dist/orcha.umd.js +2 -2
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1255,36 +1255,36 @@ const ye = /* @__PURE__ */ z({
|
|
|
1255
1255
|
setup(t, { emit: e }) {
|
|
1256
1256
|
const a = t, n = ee(null), { isEditing: s, setIsEditing: o, onUpdate: i, onDiscard: r } = Es(n), l = S(() => a.title.replace(/\s*\(\d+\)$/, "")), c = S(() => s.value ? "input" : a.tag || `h${a.level}`), u = S(() => a.isEditable ? s.value ? {
|
|
1257
1257
|
change: f,
|
|
1258
|
-
click: (
|
|
1258
|
+
click: (y) => y.stopPropagation(),
|
|
1259
1259
|
blur: m
|
|
1260
1260
|
} : {
|
|
1261
1261
|
click: b,
|
|
1262
1262
|
focus: b
|
|
1263
|
-
} : {}), f = i((
|
|
1263
|
+
} : {}), f = i((y, k) => {
|
|
1264
1264
|
const C = k.target.value;
|
|
1265
1265
|
e("update:title", C);
|
|
1266
1266
|
}), d = r(), m = async () => {
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, w = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
1270
|
-
}, b = (
|
|
1271
|
-
|
|
1270
|
+
}, b = (y) => {
|
|
1271
|
+
y.stopPropagation(), s.value || o(!0);
|
|
1272
1272
|
};
|
|
1273
1273
|
return de(
|
|
1274
1274
|
() => a.isEditable,
|
|
1275
|
-
(
|
|
1276
|
-
|
|
1275
|
+
(y) => {
|
|
1276
|
+
y || d();
|
|
1277
1277
|
}
|
|
1278
|
-
), (
|
|
1279
|
-
id:
|
|
1278
|
+
), (y, k) => (p(), P(ht(c.value), He({
|
|
1279
|
+
id: y.id,
|
|
1280
1280
|
ref_key: "target",
|
|
1281
1281
|
ref: n,
|
|
1282
1282
|
class: [
|
|
1283
1283
|
"ao-title",
|
|
1284
|
-
`ao-title--${
|
|
1284
|
+
`ao-title--${y.level}`,
|
|
1285
1285
|
{
|
|
1286
|
-
[`ao-title--${
|
|
1287
|
-
"ao-title--editable":
|
|
1286
|
+
[`ao-title--${y.color}`]: !!y.color,
|
|
1287
|
+
"ao-title--editable": y.isEditable,
|
|
1288
1288
|
"ao-field__input ao-title--editing": Q(s),
|
|
1289
1289
|
"ao-title--readonly": !Q(s)
|
|
1290
1290
|
}
|
|
@@ -1297,7 +1297,7 @@ const ye = /* @__PURE__ */ z({
|
|
|
1297
1297
|
onKeydown: dt(Q(d), ["esc"])
|
|
1298
1298
|
}), {
|
|
1299
1299
|
default: W(() => [
|
|
1300
|
-
Fa(G(
|
|
1300
|
+
Fa(G(y.title), 1)
|
|
1301
1301
|
]),
|
|
1302
1302
|
_: 1
|
|
1303
1303
|
}, 16, ["id", "class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1597,9 +1597,9 @@ function Vs(t, e) {
|
|
|
1597
1597
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1598
1598
|
var w = /* @__PURE__ */ new Date(0);
|
|
1599
1599
|
w.setUTCFullYear(f + 1, 0, m), w.setUTCHours(0, 0, 0, 0);
|
|
1600
|
-
var b = Pa(w, e),
|
|
1601
|
-
|
|
1602
|
-
var k = Pa(
|
|
1600
|
+
var b = Pa(w, e), y = /* @__PURE__ */ new Date(0);
|
|
1601
|
+
y.setUTCFullYear(f, 0, m), y.setUTCHours(0, 0, 0, 0);
|
|
1602
|
+
var k = Pa(y, e);
|
|
1603
1603
|
return u.getTime() >= b.getTime() ? f + 1 : u.getTime() >= k.getTime() ? f : f - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function J2(t, e) {
|
|
@@ -2722,12 +2722,12 @@ var K0 = {
|
|
|
2722
2722
|
const Rs = K0;
|
|
2723
2723
|
var G0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X0 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q0 = /^'([^]*?)'?$/, J0 = /''/g, e3 = /[a-zA-Z]/;
|
|
2724
2724
|
function Ns(t, e, a) {
|
|
2725
|
-
var n, s, o, i, r, l, c, u, f, d, m, w, b,
|
|
2725
|
+
var n, s, o, i, r, l, c, u, f, d, m, w, b, y, k, _, C, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
2727
|
var L = String(e), H = va(), F = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : H.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 : H.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = H.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((m = (w = (b = (
|
|
2730
|
+
var q = Qe((m = (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 : H.weekStartsOn) !== null && w !== void 0 ? w : (C = H.locale) === null || C === void 0 || (D = C.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && m !== void 0 ? m : 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)
|
|
@@ -2771,24 +2771,24 @@ function t3(t) {
|
|
|
2771
2771
|
function a3(t, e, a) {
|
|
2772
2772
|
var n, s, o, i, r, l, c, u, f, d;
|
|
2773
2773
|
ge(2, arguments);
|
|
2774
|
-
var m = be(t), w = be(e), b = va(),
|
|
2775
|
-
if (!
|
|
2774
|
+
var m = be(t), w = be(e), b = va(), y = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Rs, k = Qe((o = (i = (r = (l = a == null ? void 0 : a.weekStartsOn) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : b.weekStartsOn) !== null && i !== void 0 ? i : (f = b.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2775
|
+
if (!y.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
|
-
if (!
|
|
2777
|
+
if (!y.formatLong)
|
|
2778
2778
|
throw new RangeError("locale must contain formatLong property");
|
|
2779
|
-
if (!
|
|
2779
|
+
if (!y.formatRelative)
|
|
2780
2780
|
throw new RangeError("locale must contain formatRelative property");
|
|
2781
|
-
var
|
|
2782
|
-
if (isNaN(
|
|
2781
|
+
var _ = q2(m, w);
|
|
2782
|
+
if (isNaN(_))
|
|
2783
2783
|
throw new RangeError("Invalid time value");
|
|
2784
2784
|
var C;
|
|
2785
|
-
|
|
2786
|
-
var D = mn(m, ra(m)), L = mn(w, ra(w)), H =
|
|
2787
|
-
locale:
|
|
2785
|
+
_ < -6 ? C = "other" : _ < -1 ? C = "lastWeek" : _ < 0 ? C = "yesterday" : _ < 1 ? C = "today" : _ < 2 ? C = "tomorrow" : _ < 7 ? C = "nextWeek" : C = "other";
|
|
2786
|
+
var D = mn(m, ra(m)), L = mn(w, ra(w)), H = y.formatRelative(C, D, L, {
|
|
2787
|
+
locale: y,
|
|
2788
2788
|
weekStartsOn: k
|
|
2789
2789
|
});
|
|
2790
2790
|
return Ns(m, H, {
|
|
2791
|
-
locale:
|
|
2791
|
+
locale: y,
|
|
2792
2792
|
weekStartsOn: k
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
@@ -3488,12 +3488,12 @@ function Ws() {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
let f;
|
|
3490
3490
|
for (let w = l.getScale(); w > 0; c = f) {
|
|
3491
|
-
const b = w - 1,
|
|
3492
|
-
if (f = c.setScale(b, !1),
|
|
3493
|
-
return s.checkMid(i, r,
|
|
3494
|
-
if (
|
|
3491
|
+
const b = w - 1, y = l.setScale(b, !0);
|
|
3492
|
+
if (f = c.setScale(b, !1), y.compareTo(f) === 0)
|
|
3493
|
+
return s.checkMid(i, r, y);
|
|
3494
|
+
if (y.compareTo(f) > 0)
|
|
3495
3495
|
break;
|
|
3496
|
-
w = b, l =
|
|
3496
|
+
w = b, l = y;
|
|
3497
3497
|
}
|
|
3498
3498
|
let d = s.middleInternal(i, r, l, c), m;
|
|
3499
3499
|
for (let w = d.getScale(); w > 0; w = m) {
|
|
@@ -4347,10 +4347,10 @@ const E5 = async (t, e, a) => {
|
|
|
4347
4347
|
} = vs(c, n, l), d = n, m = {}, w = 0;
|
|
4348
4348
|
for (let b = 0; b < r.length; b++) {
|
|
4349
4349
|
const {
|
|
4350
|
-
name:
|
|
4350
|
+
name: y,
|
|
4351
4351
|
fn: k
|
|
4352
4352
|
} = r[b], {
|
|
4353
|
-
x:
|
|
4353
|
+
x: _,
|
|
4354
4354
|
y: C,
|
|
4355
4355
|
data: D,
|
|
4356
4356
|
reset: L
|
|
@@ -4368,10 +4368,10 @@ const E5 = async (t, e, a) => {
|
|
|
4368
4368
|
floating: e
|
|
4369
4369
|
}
|
|
4370
4370
|
});
|
|
4371
|
-
if (u =
|
|
4371
|
+
if (u = _ ?? u, f = C ?? f, m = {
|
|
4372
4372
|
...m,
|
|
4373
|
-
[
|
|
4374
|
-
...m[
|
|
4373
|
+
[y]: {
|
|
4374
|
+
...m[y],
|
|
4375
4375
|
...D
|
|
4376
4376
|
}
|
|
4377
4377
|
}, L && w <= 50) {
|
|
@@ -4410,12 +4410,12 @@ async function Ks(t, e) {
|
|
|
4410
4410
|
elementContext: f = "floating",
|
|
4411
4411
|
altBoundary: d = !1,
|
|
4412
4412
|
padding: m = 0
|
|
4413
|
-
} = Ln(e, t), w = O5(m),
|
|
4414
|
-
element: (a = await (o.isElement == null ? void 0 : o.isElement(
|
|
4413
|
+
} = Ln(e, t), w = O5(m), y = r[d ? f === "floating" ? "reference" : "floating" : f], k = Ra(await o.getClippingRect({
|
|
4414
|
+
element: (a = await (o.isElement == null ? void 0 : o.isElement(y))) == null || a ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(r.floating)),
|
|
4415
4415
|
boundary: c,
|
|
4416
4416
|
rootBoundary: u,
|
|
4417
4417
|
strategy: l
|
|
4418
|
-
})),
|
|
4418
|
+
})), _ = f === "floating" ? {
|
|
4419
4419
|
...i.floating,
|
|
4420
4420
|
x: n,
|
|
4421
4421
|
y: s
|
|
@@ -4426,10 +4426,10 @@ async function Ks(t, e) {
|
|
|
4426
4426
|
x: 1,
|
|
4427
4427
|
y: 1
|
|
4428
4428
|
}, L = Ra(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4429
|
-
rect:
|
|
4429
|
+
rect: _,
|
|
4430
4430
|
offsetParent: C,
|
|
4431
4431
|
strategy: l
|
|
4432
|
-
}) :
|
|
4432
|
+
}) : _);
|
|
4433
4433
|
return {
|
|
4434
4434
|
top: (k.top - L.top + w.top) / D.y,
|
|
4435
4435
|
bottom: (L.bottom - k.bottom + w.bottom) / D.y,
|
|
@@ -4457,13 +4457,13 @@ const I5 = function(t) {
|
|
|
4457
4457
|
fallbackStrategy: m = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: w = "none",
|
|
4459
4459
|
flipAlignment: b = !0,
|
|
4460
|
-
...
|
|
4460
|
+
...y
|
|
4461
4461
|
} = Ln(t, e);
|
|
4462
4462
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4463
4463
|
return {};
|
|
4464
|
-
const k = Ft(s),
|
|
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(...A5(r, b, w, C));
|
|
4466
|
-
const L = [r, ...D], H = await Ks(e,
|
|
4466
|
+
const L = [r, ...D], H = await Ks(e, y), F = [];
|
|
4467
4467
|
let U = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4468
4468
|
if (u && F.push(H[k]), f) {
|
|
4469
4469
|
const R = k5(s, i, C);
|
|
@@ -4528,16 +4528,16 @@ const I5 = function(t) {
|
|
|
4528
4528
|
} = n.floating;
|
|
4529
4529
|
let w, b;
|
|
4530
4530
|
c === "top" || c === "bottom" ? (w = c, b = u === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (b = c, w = u === "end" ? "top" : "bottom");
|
|
4531
|
-
const
|
|
4532
|
-
let C =
|
|
4531
|
+
const y = m - l[w], k = d - l[b], _ = !e.middlewareData.shift;
|
|
4532
|
+
let C = y, D = k;
|
|
4533
4533
|
if (f) {
|
|
4534
4534
|
const H = d - l.left - l.right;
|
|
4535
|
-
D = u ||
|
|
4535
|
+
D = u || _ ? ua(k, H) : H;
|
|
4536
4536
|
} else {
|
|
4537
4537
|
const H = m - l.top - l.bottom;
|
|
4538
|
-
C = u ||
|
|
4538
|
+
C = u || _ ? ua(y, H) : H;
|
|
4539
4539
|
}
|
|
4540
|
-
if (
|
|
4540
|
+
if (_ && !u) {
|
|
4541
4541
|
const H = Ee(l.left, 0), F = Ee(l.right, 0), U = Ee(l.top, 0), q = Ee(l.bottom, 0);
|
|
4542
4542
|
f ? D = d - 2 * (H !== 0 || F !== 0 ? H + F : Ee(l.left, l.right)) : C = m - 2 * (U !== 0 || q !== 0 ? U + q : Ee(l.top, l.bottom));
|
|
4543
4543
|
}
|
|
@@ -4693,8 +4693,8 @@ function St(t, e, a, n) {
|
|
|
4693
4693
|
const d = ke(o), m = n && et(n) ? ke(n) : n;
|
|
4694
4694
|
let w = d.frameElement;
|
|
4695
4695
|
for (; w && n && m !== d; ) {
|
|
4696
|
-
const b = Vt(w),
|
|
4697
|
-
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l +=
|
|
4696
|
+
const b = Vt(w), y = w.getBoundingClientRect(), k = Ve(w), _ = y.left + (w.clientLeft + parseFloat(k.paddingLeft)) * b.x, C = y.top + (w.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
4697
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += _, c += C, w = ke(w).frameElement;
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
return Ra({
|
|
@@ -4905,8 +4905,8 @@ function K5(t, e) {
|
|
|
4905
4905
|
} = t.getBoundingClientRect();
|
|
4906
4906
|
if (r || e(), !f || !d)
|
|
4907
4907
|
return;
|
|
4908
|
-
const m = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)),
|
|
4909
|
-
rootMargin: -m + "px " + -w + "px " + -b + "px " + -
|
|
4908
|
+
const m = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)), y = Oa(c), _ = {
|
|
4909
|
+
rootMargin: -m + "px " + -w + "px " + -b + "px " + -y + "px",
|
|
4910
4910
|
threshold: Ee(0, ua(1, l)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let C = !0;
|
|
@@ -4923,12 +4923,12 @@ function K5(t, e) {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
try {
|
|
4925
4925
|
a = new IntersectionObserver(D, {
|
|
4926
|
-
...
|
|
4926
|
+
..._,
|
|
4927
4927
|
// Handle <iframe>s
|
|
4928
4928
|
root: s.ownerDocument
|
|
4929
4929
|
});
|
|
4930
4930
|
} catch {
|
|
4931
|
-
a = new IntersectionObserver(D,
|
|
4931
|
+
a = new IntersectionObserver(D, _);
|
|
4932
4932
|
}
|
|
4933
4933
|
a.observe(t);
|
|
4934
4934
|
}
|
|
@@ -4951,16 +4951,16 @@ function G5(t, e, a, n) {
|
|
|
4951
4951
|
const f = c && r ? K5(c, a) : null;
|
|
4952
4952
|
let d = -1, m = null;
|
|
4953
4953
|
i && (m = new ResizeObserver((k) => {
|
|
4954
|
-
let [
|
|
4955
|
-
|
|
4954
|
+
let [_] = k;
|
|
4955
|
+
_ && _.target === c && m && (m.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
4956
4956
|
m && m.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
4958
|
}), c && !l && m.observe(c), m.observe(e));
|
|
4959
4959
|
let w, b = l ? St(t) : null;
|
|
4960
|
-
l &&
|
|
4961
|
-
function
|
|
4960
|
+
l && y();
|
|
4961
|
+
function y() {
|
|
4962
4962
|
const k = St(t);
|
|
4963
|
-
b && (k.x !== b.x || k.y !== b.y || k.width !== b.width || k.height !== b.height) && a(), b = k, w = requestAnimationFrame(
|
|
4963
|
+
b && (k.x !== b.x || k.y !== b.y || k.width !== b.width || k.height !== b.height) && a(), b = k, w = requestAnimationFrame(y);
|
|
4964
4964
|
}
|
|
4965
4965
|
return a(), () => {
|
|
4966
4966
|
u.forEach((k) => {
|
|
@@ -5084,7 +5084,7 @@ function t7(t, e, a) {
|
|
|
5084
5084
|
if (n && n.value) {
|
|
5085
5085
|
let w = (d.clipboardData || /* istanbul ignore next */
|
|
5086
5086
|
window.clipboardData).getData("Text"), b = n.value;
|
|
5087
|
-
typeof b == "string" && (b = new RegExp(b)), w.split("").every((
|
|
5087
|
+
typeof b == "string" && (b = new RegExp(b)), w.split("").every((y) => !!y.match(b)) || d.preventDefault();
|
|
5088
5088
|
}
|
|
5089
5089
|
e.emit("paste", d, s);
|
|
5090
5090
|
};
|
|
@@ -5137,9 +5137,9 @@ function i7(t, e, a) {
|
|
|
5137
5137
|
multipleLabel: m,
|
|
5138
5138
|
object: w,
|
|
5139
5139
|
loading: b,
|
|
5140
|
-
delay:
|
|
5140
|
+
delay: y,
|
|
5141
5141
|
resolveOnLoad: k,
|
|
5142
|
-
minChars:
|
|
5142
|
+
minChars: _,
|
|
5143
5143
|
filterResults: C,
|
|
5144
5144
|
clearOnSearch: D,
|
|
5145
5145
|
clearOnSelect: L,
|
|
@@ -5393,7 +5393,7 @@ function i7(t, e, a) {
|
|
|
5393
5393
|
[yt.value[0]]: B
|
|
5394
5394
|
}), ss = () => {
|
|
5395
5395
|
Be.value = de(X, ($) => {
|
|
5396
|
-
$.length <
|
|
5396
|
+
$.length < _.value || !$ && _.value !== 0 || (Ae.value = !0, D.value && (Ne.value = []), setTimeout(() => {
|
|
5397
5397
|
$ == X.value && n.value(X.value, re).then((B) => {
|
|
5398
5398
|
($ == X.value || !X.value) && (Ne.value = B, Kt.value = ot.value.filter((oe) => oe[ae.value] !== !0)[0] || null, Ae.value = !1);
|
|
5399
5399
|
}).catch(
|
|
@@ -5402,12 +5402,12 @@ function i7(t, e, a) {
|
|
|
5402
5402
|
console.error(B);
|
|
5403
5403
|
}
|
|
5404
5404
|
);
|
|
5405
|
-
},
|
|
5405
|
+
}, y.value));
|
|
5406
5406
|
}, { flush: "sync" });
|
|
5407
5407
|
};
|
|
5408
5408
|
if (s.value !== "single" && !je(V.value) && !Array.isArray(V.value))
|
|
5409
5409
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5410
|
-
return n && typeof n.value == "function" ? k.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()),
|
|
5410
|
+
return n && typeof n.value == "function" ? k.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()), y.value > -1 && ss(), de(y, ($, B) => {
|
|
5411
5411
|
Be.value && Be.value(), $ >= 0 && ss();
|
|
5412
5412
|
}), de(V, ($) => {
|
|
5413
5413
|
if (je($)) {
|
|
@@ -5472,7 +5472,7 @@ function o7(t, e, a) {
|
|
|
5472
5472
|
groupSelect: c,
|
|
5473
5473
|
disabledProp: u,
|
|
5474
5474
|
groupOptions: f
|
|
5475
|
-
} = Me(t), d = a.fo, m = a.fg, w = a.handleOptionClick, b = a.handleGroupClick,
|
|
5475
|
+
} = Me(t), d = a.fo, m = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, y = a.search, k = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, L = a.isOpen, H = S(() => d.value.filter((V) => !V[u.value])), F = S(() => m.value.filter((V) => !V[u.value])), U = S(() => l.value !== "single" && c.value), q = S(() => k.value && k.value.group), E = S(() => re(k.value)), K = S(() => {
|
|
5476
5476
|
const V = q.value ? k.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
re(k.value)
|
|
@@ -5489,19 +5489,19 @@ function o7(t, e, a) {
|
|
|
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
5491
|
}), M = S(() => [...K.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), h = S(() => [...Z.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), I = (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
|
-
|
|
5492
|
+
_(H.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
|
-
|
|
5497
|
+
_((r.value && U.value ? F.value[0].__CREATE__ ? H.value[0] : F.value[0] : H.value[0]) || null);
|
|
5498
5498
|
else if (r.value && U.value) {
|
|
5499
5499
|
let V = q.value ? ie.value : N.value;
|
|
5500
|
-
V === void 0 && (V = R.value, V.__CREATE__ && (V = V[f.value][0])),
|
|
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
5503
|
let V = H.value.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1;
|
|
5504
|
-
H.value.length <= V && (V = 0),
|
|
5504
|
+
H.value.length <= V && (V = 0), _(H.value[V] || null);
|
|
5505
5505
|
}
|
|
5506
5506
|
De(() => {
|
|
5507
5507
|
x();
|
|
@@ -5509,14 +5509,14 @@ function o7(t, e, a) {
|
|
|
5509
5509
|
}, ne = () => {
|
|
5510
5510
|
if (k.value === null) {
|
|
5511
5511
|
let V = H.value[H.value.length - 1];
|
|
5512
|
-
r.value && U.value && (V = h.value, V === void 0 && (V = Z.value)),
|
|
5512
|
+
r.value && U.value && (V = h.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 : O.value;
|
|
5515
|
-
V === void 0 && (V = q.value ? K.value : E.value, V.__CREATE__ && (V = M.value, V === void 0 && (V = K.value))),
|
|
5515
|
+
V === void 0 && (V = q.value ? K.value : E.value, V.__CREATE__ && (V = M.value, V === void 0 && (V = K.value))), _(V || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
5518
|
let V = H.value.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1;
|
|
5519
|
-
V < 0 && (V = H.value.length - 1),
|
|
5519
|
+
V < 0 && (V = H.value.length - 1), _(H.value[V] || null);
|
|
5520
5520
|
}
|
|
5521
5521
|
De(() => {
|
|
5522
5522
|
x();
|
|
@@ -5528,7 +5528,7 @@ function o7(t, e, a) {
|
|
|
5528
5528
|
let X = V.parentElement.parentElement;
|
|
5529
5529
|
r.value && (X = q.value ? V.parentElement.parentElement.parentElement : V.parentElement.parentElement.parentElement.parentElement), V.offsetTop + V.offsetHeight > X.clientHeight + X.scrollTop && (X.scrollTop = V.offsetTop + V.offsetHeight - X.clientHeight), V.offsetTop < X.scrollTop && (X.scrollTop = V.offsetTop);
|
|
5530
5530
|
};
|
|
5531
|
-
return de(
|
|
5531
|
+
return de(y, (V) => {
|
|
5532
5532
|
o.value && (V.length && s.value ? J() : C());
|
|
5533
5533
|
}), de(L, (V) => {
|
|
5534
5534
|
if (V) {
|
|
@@ -5909,7 +5909,7 @@ 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, m = a.altBoundary, w = m === void 0 ? !1 : m, b = a.padding,
|
|
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, m = a.altBoundary, w = m === void 0 ? !1 : m, b = a.padding, y = b === void 0 ? 0 : b, k = V7(typeof y != "number" ? y : B7(y, en)), _ = d === sa ? v7 : sa, C = t.rects.popper, D = t.elements[w ? _ : d], L = P7(Mt(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), H = Wt(t.elements.reference), F = li({
|
|
5913
5913
|
reference: H,
|
|
5914
5914
|
element: C,
|
|
5915
5915
|
strategy: "absolute",
|
|
@@ -5960,8 +5960,8 @@ function R7(t) {
|
|
|
5960
5960
|
}, f = [], d = !1, m = {
|
|
5961
5961
|
state: u,
|
|
5962
5962
|
setOptions: function(k) {
|
|
5963
|
-
var
|
|
5964
|
-
b(), u.options = Object.assign({}, o, u.options,
|
|
5963
|
+
var _ = typeof k == "function" ? k(u.options) : k;
|
|
5964
|
+
b(), u.options = Object.assign({}, o, u.options, _), u.scrollParents = {
|
|
5965
5965
|
reference: Mt(r) ? ia(r) : r.contextElement ? ia(r.contextElement) : [],
|
|
5966
5966
|
popper: ia(l)
|
|
5967
5967
|
};
|
|
@@ -5977,10 +5977,10 @@ function R7(t) {
|
|
|
5977
5977
|
// prefer the async Popper#update method
|
|
5978
5978
|
forceUpdate: function() {
|
|
5979
5979
|
if (!d) {
|
|
5980
|
-
var k = u.elements,
|
|
5981
|
-
if (ws(
|
|
5980
|
+
var k = u.elements, _ = k.reference, C = k.popper;
|
|
5981
|
+
if (ws(_, C)) {
|
|
5982
5982
|
u.rects = {
|
|
5983
|
-
reference: c7(
|
|
5983
|
+
reference: c7(_, Ja(C), u.options.strategy === "fixed"),
|
|
5984
5984
|
popper: si(C)
|
|
5985
5985
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(E) {
|
|
5986
5986
|
return u.modifiersData[E.name] = Object.assign({}, E.data);
|
|
@@ -6004,8 +6004,8 @@ function R7(t) {
|
|
|
6004
6004
|
// Async and optimistically optimized update – it will not be executed if
|
|
6005
6005
|
// not necessary (debounced to run at most once-per-tick)
|
|
6006
6006
|
update: T7(function() {
|
|
6007
|
-
return new Promise(function(
|
|
6008
|
-
m.forceUpdate(),
|
|
6007
|
+
return new Promise(function(y) {
|
|
6008
|
+
m.forceUpdate(), y(u);
|
|
6009
6009
|
});
|
|
6010
6010
|
}),
|
|
6011
6011
|
destroy: function() {
|
|
@@ -6014,12 +6014,12 @@ function R7(t) {
|
|
|
6014
6014
|
};
|
|
6015
6015
|
if (!ws(r, l))
|
|
6016
6016
|
return m;
|
|
6017
|
-
m.setOptions(c).then(function(
|
|
6018
|
-
!d && c.onFirstUpdate && c.onFirstUpdate(
|
|
6017
|
+
m.setOptions(c).then(function(y) {
|
|
6018
|
+
!d && c.onFirstUpdate && c.onFirstUpdate(y);
|
|
6019
6019
|
});
|
|
6020
6020
|
function w() {
|
|
6021
|
-
u.orderedModifiers.forEach(function(
|
|
6022
|
-
var k =
|
|
6021
|
+
u.orderedModifiers.forEach(function(y) {
|
|
6022
|
+
var k = y.name, _ = y.options, C = _ === void 0 ? {} : _, D = y.effect;
|
|
6023
6023
|
if (typeof D == "function") {
|
|
6024
6024
|
var L = D({
|
|
6025
6025
|
state: u,
|
|
@@ -6033,8 +6033,8 @@ function R7(t) {
|
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
6035
6035
|
function b() {
|
|
6036
|
-
f.forEach(function(
|
|
6037
|
-
return
|
|
6036
|
+
f.forEach(function(y) {
|
|
6037
|
+
return y();
|
|
6038
6038
|
}), f = [];
|
|
6039
6039
|
}
|
|
6040
6040
|
return m;
|
|
@@ -6091,15 +6091,15 @@ function W7(t, e) {
|
|
|
6091
6091
|
};
|
|
6092
6092
|
}
|
|
6093
6093
|
function $s(t) {
|
|
6094
|
-
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, m = d === void 0 ? 0 : d, w = i.y, b = w === void 0 ? 0 : w,
|
|
6094
|
+
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, m = d === void 0 ? 0 : d, w = i.y, b = w === void 0 ? 0 : w, y = typeof u == "function" ? u({
|
|
6095
6095
|
x: m,
|
|
6096
6096
|
y: b
|
|
6097
6097
|
}) : {
|
|
6098
6098
|
x: m,
|
|
6099
6099
|
y: b
|
|
6100
6100
|
};
|
|
6101
|
-
m =
|
|
6102
|
-
var k = i.hasOwnProperty("x"),
|
|
6101
|
+
m = y.x, b = y.y;
|
|
6102
|
+
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), C = Ge, D = Re, L = window;
|
|
6103
6103
|
if (c) {
|
|
6104
6104
|
var H = Ja(a), F = "clientHeight", U = "clientWidth";
|
|
6105
6105
|
if (H === Se(a) && (H = gt(a), tt(H).position !== "static" && r === "absolute" && (F = "scrollHeight", U = "scrollWidth")), H = H, s === Re || (s === Ge || s === vt) && o === da) {
|
|
@@ -6130,9 +6130,9 @@ function $s(t) {
|
|
|
6130
6130
|
};
|
|
6131
6131
|
if (m = R.x, b = R.y, l) {
|
|
6132
6132
|
var Z;
|
|
6133
|
-
return Object.assign({}, K, (Z = {}, Z[D] =
|
|
6133
|
+
return Object.assign({}, K, (Z = {}, Z[D] = _ ? "0" : "", Z[C] = k ? "0" : "", Z.transform = (L.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + b + "px)" : "translate3d(" + m + "px, " + b + "px, 0)", Z));
|
|
6134
6134
|
}
|
|
6135
|
-
return Object.assign({}, K, (e = {}, e[D] =
|
|
6135
|
+
return Object.assign({}, K, (e = {}, e[D] = _ ? b + "px" : "", e[C] = k ? m + "px" : "", e.transform = "", e));
|
|
6136
6136
|
}
|
|
6137
6137
|
function q7(t) {
|
|
6138
6138
|
var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, r = a.roundOffsets, l = r === void 0 ? !0 : r, c = {
|
|
@@ -6219,12 +6219,12 @@ function J7(t, e, a) {
|
|
|
6219
6219
|
return n > a ? a : n;
|
|
6220
6220
|
}
|
|
6221
6221
|
function ep(t) {
|
|
6222
|
-
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, m = d === void 0 ? !0 : d, w = a.tetherOffset, b = w === void 0 ? 0 : w,
|
|
6222
|
+
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, m = d === void 0 ? !0 : d, w = a.tetherOffset, b = w === void 0 ? 0 : w, y = Un(e, {
|
|
6223
6223
|
boundary: l,
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: f,
|
|
6226
6226
|
altBoundary: u
|
|
6227
|
-
}), k = ct(e.placement),
|
|
6227
|
+
}), k = ct(e.placement), _ = zt(e.placement), C = !_, D = ri(k), L = Q7(D), H = 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, E = typeof q == "number" ? {
|
|
6230
6230
|
mainAxis: q,
|
|
@@ -6238,14 +6238,14 @@ function ep(t) {
|
|
|
6238
6238
|
};
|
|
6239
6239
|
if (H) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var Z, ie = D === "y" ? Re : Ge, O = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M = H[D], h = M +
|
|
6241
|
+
var Z, ie = D === "y" ? Re : Ge, O = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M = H[D], h = M + y[ie], I = M - y[O], J = m ? -U[N] / 2 : 0, ae = _ === qt ? F[N] : U[N], le = _ === qt ? -U[N] : -F[N], ne = e.elements.arrow, re = m && ne ? si(ne) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
6244
|
}, x = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), V = x[ie], X = x[O], he = Ia(0, F[N], re[N]), we = C ? F[N] / 2 - J - he - V - E.mainAxis : ae - he - V - E.mainAxis, Kt = C ? -F[N] / 2 + J + he + X + E.mainAxis : le + he + X + E.mainAxis, Gt = e.elements.arrow && Ja(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (Z = K == null ? void 0 : K[D]) != null ? Z : 0, tn = M + we - _a - nt, st = M + Kt - _a, ya = Ia(m ? Na(h, tn) : h, M, m ? kt(I, st) : I);
|
|
6245
6245
|
H[D] = ya, R[D] = ya - M;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
6248
|
-
var it, Ne = D === "x" ? Re : Ge, Ae = D === "x" ? We : vt, Be = H[L], qe = L === "y" ? "height" : "width", Xt = Be +
|
|
6248
|
+
var it, Ne = D === "x" ? Re : Ge, Ae = D === "x" ? We : vt, Be = H[L], qe = L === "y" ? "height" : "width", Xt = Be + y[Ne], ba = Be - y[Ae], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it = K == null ? void 0 : K[L]) != null ? it : 0, ot = Te ? Xt : Be - F[qe] - U[qe] - Qt + E.altAxis, _t = Te ? Be + F[qe] + U[qe] - Qt - E.altAxis : ba, wa = m && Te ? J7(ot, Be, _t) : Ia(m ? ot : Xt, Be, m ? _t : ba);
|
|
6249
6249
|
H[L] = wa, R[L] = wa - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = R;
|
|
@@ -6306,7 +6306,7 @@ function ip(t) {
|
|
|
6306
6306
|
function op(t) {
|
|
6307
6307
|
var e = t.state, a = t.options, n = t.name;
|
|
6308
6308
|
if (!e.modifiersData[n]._skip) {
|
|
6309
|
-
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, m = a.flipVariations, w = m === void 0 ? !0 : m, b = a.allowedAutoPlacements,
|
|
6309
|
+
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, m = a.flipVariations, w = m === void 0 ? !0 : m, b = a.allowedAutoPlacements, y = e.options.placement, k = ct(y), _ = k === y, C = l || (_ || !w ? [La(y)] : ip(y)), D = [y].concat(C).reduce(function(re, x) {
|
|
6310
6310
|
return re.concat(ct(x) === Fn ? sp(e, {
|
|
6311
6311
|
placement: x,
|
|
6312
6312
|
boundary: u,
|
|
@@ -6367,7 +6367,7 @@ function lp(t, e, a) {
|
|
|
6367
6367
|
u.value || n.value || (u.value = !0, e.emit("open", r), m.value && De(() => {
|
|
6368
6368
|
k();
|
|
6369
6369
|
}));
|
|
6370
|
-
},
|
|
6370
|
+
}, y = () => {
|
|
6371
6371
|
u.value && (u.value = !1, e.emit("close", r));
|
|
6372
6372
|
}, k = () => {
|
|
6373
6373
|
if (!f.value)
|
|
@@ -6385,7 +6385,7 @@ function lp(t, e, a) {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
]
|
|
6387
6387
|
})), f.value.update();
|
|
6388
|
-
},
|
|
6388
|
+
}, _ = (C) => {
|
|
6389
6389
|
for (; C && C !== document.body; ) {
|
|
6390
6390
|
if (getComputedStyle(C).position === "fixed")
|
|
6391
6391
|
return !0;
|
|
@@ -6395,7 +6395,7 @@ function lp(t, e, a) {
|
|
|
6395
6395
|
};
|
|
6396
6396
|
return xt(() => {
|
|
6397
6397
|
m.value && (f.value = X7(l.value, c.value, {
|
|
6398
|
-
strategy:
|
|
6398
|
+
strategy: _(l.value) ? (
|
|
6399
6399
|
/* istanbul ignore next: UI feature */
|
|
6400
6400
|
"fixed"
|
|
6401
6401
|
) : void 0,
|
|
@@ -6431,17 +6431,17 @@ function lp(t, e, a) {
|
|
|
6431
6431
|
popper: f,
|
|
6432
6432
|
isOpen: u,
|
|
6433
6433
|
open: b,
|
|
6434
|
-
close:
|
|
6434
|
+
close: y,
|
|
6435
6435
|
placement: w,
|
|
6436
6436
|
updatePopper: k
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function up(t, e, a) {
|
|
6440
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Me(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, m = ee(!1), w = ee(!1), b = S(() => n.value || s.value ? -1 : 0),
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Me(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, m = ee(!1), w = ee(!1), b = S(() => n.value || s.value ? -1 : 0), y = () => {
|
|
6441
6441
|
n.value && i.value.blur(), f.value.blur();
|
|
6442
6442
|
}, k = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
6444
|
-
},
|
|
6444
|
+
}, _ = (U = !0) => {
|
|
6445
6445
|
s.value || (m.value = !0, U && r());
|
|
6446
6446
|
}, C = () => {
|
|
6447
6447
|
m.value = !1, setTimeout(() => {
|
|
@@ -6452,23 +6452,23 @@ function up(t, e, a) {
|
|
|
6452
6452
|
tabindex: b,
|
|
6453
6453
|
isActive: m,
|
|
6454
6454
|
mouseClicked: w,
|
|
6455
|
-
blur:
|
|
6455
|
+
blur: y,
|
|
6456
6456
|
focus: k,
|
|
6457
|
-
activate:
|
|
6457
|
+
activate: _,
|
|
6458
6458
|
deactivate: C,
|
|
6459
6459
|
handleFocusIn: (U) => {
|
|
6460
|
-
U.target.closest("[data-tags]") && U.target.nodeName !== "INPUT" || U.target.closest("[data-clear]") ||
|
|
6460
|
+
U.target.closest("[data-tags]") && U.target.nodeName !== "INPUT" || U.target.closest("[data-clear]") || _(w.value);
|
|
6461
6461
|
},
|
|
6462
6462
|
handleFocusOut: () => {
|
|
6463
6463
|
C();
|
|
6464
6464
|
},
|
|
6465
6465
|
handleCaretClick: () => {
|
|
6466
|
-
C(),
|
|
6466
|
+
C(), y();
|
|
6467
6467
|
},
|
|
6468
6468
|
handleMousedown: (U) => {
|
|
6469
6469
|
w.value = !0, u.value && (U.target.isEqualNode(f.value) || U.target.isEqualNode(d.value)) ? setTimeout(() => {
|
|
6470
6470
|
C();
|
|
6471
|
-
}, 0) : !u.value && (document.activeElement.isEqualNode(f.value) || document.activeElement.isEqualNode(i.value)) &&
|
|
6471
|
+
}, 0) : !u.value && (document.activeElement.isEqualNode(f.value) || document.activeElement.isEqualNode(i.value)) && _(), setTimeout(() => {
|
|
6472
6472
|
w.value = !1;
|
|
6473
6473
|
}, 0);
|
|
6474
6474
|
}
|
|
@@ -6487,8 +6487,8 @@ function cp(t, e, a) {
|
|
|
6487
6487
|
createTag: f,
|
|
6488
6488
|
createOption: d,
|
|
6489
6489
|
reverse: m
|
|
6490
|
-
} = Me(t), w = At().proxy, b = a.iv,
|
|
6491
|
-
n.value === "tags" && !r.value && ie.value && i.value && !c.value && C(Z.value[Z.value.map((I) => I[l.value]).indexOf(
|
|
6490
|
+
} = Me(t), w = At().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, L = a.backwardPointer, H = a.forwardPointer, F = a.multiselect, U = a.wrapper, q = a.tags, E = a.isOpen, K = a.open, R = a.blur, Z = a.fo, ie = S(() => f.value || d.value || !1), O = 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((I) => I[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
6494
|
handleKeydown: (I) => {
|
|
@@ -6496,7 +6496,7 @@ function cp(t, e, a) {
|
|
|
6496
6496
|
let J, ae;
|
|
6497
6497
|
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(I.key) !== -1 && n.value === "tags" && (J = [...F.value.querySelectorAll("[data-tags] > *")].filter((le) => le !== q.value), ae = J.findIndex((le) => le === document.activeElement)), I.key) {
|
|
6498
6498
|
case "Backspace":
|
|
6499
|
-
if (n.value === "single" || i.value && [null, ""].indexOf(
|
|
6499
|
+
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || b.value.length === 0)
|
|
6500
6500
|
return;
|
|
6501
6501
|
let le = b.value.filter((ne) => !ne.disabled && ne.remove !== !1);
|
|
6502
6502
|
le.length && k(le[le.length - 1]);
|
|
@@ -6505,7 +6505,7 @@ function cp(t, e, a) {
|
|
|
6505
6505
|
if (I.preventDefault(), I.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());
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
6511
|
if (O.value.indexOf("enter") === -1 && ie.value)
|
|
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
|
|
|
6567
6567
|
disabled: s,
|
|
6568
6568
|
showOptions: o,
|
|
6569
6569
|
breakTags: i
|
|
6570
|
-
} = Me(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, m = a.resolving, w = a.fo, b = a.placement,
|
|
6570
|
+
} = Me(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, m = a.resolving, w = a.fo, b = a.placement, y = S(() => ({
|
|
6571
6571
|
container: "multiselect",
|
|
6572
6572
|
containerDisabled: "is-disabled",
|
|
6573
6573
|
containerOpen: "is-open",
|
|
@@ -6625,7 +6625,7 @@ function dp(t, e, a) {
|
|
|
6625
6625
|
})), k = S(() => !!(r.value && o.value && (!m.value || m.value && w.value.length)));
|
|
6626
6626
|
return {
|
|
6627
6627
|
classList: S(() => {
|
|
6628
|
-
const C =
|
|
6628
|
+
const C = y.value;
|
|
6629
6629
|
return {
|
|
6630
6630
|
container: [C.container].concat(s.value ? C.containerDisabled : []).concat(k.value && b.value === "top" ? C.containerOpenTop : []).concat(k.value && b.value !== "top" ? C.containerOpen : []).concat(f.value ? C.containerActive : []),
|
|
6631
6631
|
wrapper: C.wrapper,
|
|
@@ -6676,11 +6676,11 @@ function pp(t, e, a) {
|
|
|
6676
6676
|
limit: n,
|
|
6677
6677
|
infinite: s
|
|
6678
6678
|
} = Me(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = S(() => i.value < l.value.length), m = (b) => {
|
|
6679
|
-
const { isIntersecting:
|
|
6680
|
-
if (
|
|
6681
|
-
const
|
|
6679
|
+
const { isIntersecting: y, target: k } = b[0];
|
|
6680
|
+
if (y) {
|
|
6681
|
+
const _ = k.offsetParent, C = _.scrollTop;
|
|
6682
6682
|
i.value += n.value == -1 ? 10 : n.value, De(() => {
|
|
6683
|
-
|
|
6683
|
+
_.scrollTop = C;
|
|
6684
6684
|
});
|
|
6685
6685
|
}
|
|
6686
6686
|
}, w = () => {
|
|
@@ -6709,13 +6709,13 @@ function fp(t, e, a) {
|
|
|
6709
6709
|
groupLabel: l,
|
|
6710
6710
|
aria: c,
|
|
6711
6711
|
searchable: u
|
|
6712
|
-
} = Me(t), f = a.pointer, d = a.iv, m = a.hasSelected, w = a.multipleLabelText, b = ee(null),
|
|
6712
|
+
} = Me(t), f = a.pointer, d = a.iv, m = a.hasSelected, w = a.multipleLabelText, b = ee(null), y = S(() => {
|
|
6713
6713
|
let R = [];
|
|
6714
6714
|
return s && s.value && R.push(s.value), R.push("assist"), R.join("-");
|
|
6715
6715
|
}), k = S(() => {
|
|
6716
6716
|
let R = [];
|
|
6717
6717
|
return s && s.value && R.push(s.value), R.push("multiselect-options"), R.join("-");
|
|
6718
|
-
}),
|
|
6718
|
+
}), _ = S(() => {
|
|
6719
6719
|
let R = [];
|
|
6720
6720
|
if (s && s.value && R.push(s.value), f.value)
|
|
6721
6721
|
return R.push(f.value.group ? "multiselect-group" : "multiselect-option"), R.push(f.value.group ? f.value.index : f.value[o.value]), R.join("-");
|
|
@@ -6724,7 +6724,7 @@ function fp(t, e, a) {
|
|
|
6724
6724
|
return r.value === "single" && m.value && (R += d.value[i.value]), r.value === "multiple" && m.value && (R += w.value), r.value === "tags" && m.value && (R += d.value.map((Z) => Z[i.value]).join(", ")), R;
|
|
6725
6725
|
}), H = S(() => {
|
|
6726
6726
|
let R = { ...c.value };
|
|
6727
|
-
return u.value && (R["aria-labelledby"] = R["aria-labelledby"] ? `${
|
|
6727
|
+
return u.value && (R["aria-labelledby"] = R["aria-labelledby"] ? `${y.value} ${R["aria-labelledby"]}` : y.value, L.value && R["aria-label"] && (R["aria-label"] = `${L.value}, ${R["aria-label"]}`)), R;
|
|
6728
6728
|
}), F = (R) => {
|
|
6729
6729
|
let Z = [];
|
|
6730
6730
|
return s && s.value && Z.push(s.value), Z.push("multiselect-option"), Z.push(R[o.value]), Z.join("-");
|
|
@@ -6746,11 +6746,11 @@ function fp(t, e, a) {
|
|
|
6746
6746
|
}), {
|
|
6747
6747
|
arias: H,
|
|
6748
6748
|
ariaLabel: L,
|
|
6749
|
-
ariaAssist:
|
|
6749
|
+
ariaAssist: y,
|
|
6750
6750
|
ariaControls: k,
|
|
6751
6751
|
ariaPlaceholder: C,
|
|
6752
6752
|
ariaMultiselectable: D,
|
|
6753
|
-
ariaActiveDescendant:
|
|
6753
|
+
ariaActiveDescendant: _,
|
|
6754
6754
|
ariaOptionId: F,
|
|
6755
6755
|
ariaOptionLabel: q,
|
|
6756
6756
|
ariaGroupId: U,
|
|
@@ -7795,7 +7795,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7795
7795
|
readonly: !f.isEditable,
|
|
7796
7796
|
class: Y(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": m.isDone }]),
|
|
7797
7797
|
type: "text",
|
|
7798
|
-
onChange: (
|
|
7798
|
+
onChange: (y) => i(y, m.id),
|
|
7799
7799
|
onKeyup: dt(u, ["enter"])
|
|
7800
7800
|
}, null, 42, Up),
|
|
7801
7801
|
Fa(". "),
|
|
@@ -7811,14 +7811,14 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7811
7811
|
placeholder: f.$t("feed.filters.assignee.placeholder"),
|
|
7812
7812
|
disabled: !f.isEditable,
|
|
7813
7813
|
caret: f.isEditable,
|
|
7814
|
-
onChange: (
|
|
7814
|
+
onChange: (y) => c(y, m.id)
|
|
7815
7815
|
}, {
|
|
7816
|
-
tag: W(({ option:
|
|
7816
|
+
tag: W(({ option: y, handleTagRemove: k }) => [
|
|
7817
7817
|
A(Je, {
|
|
7818
|
-
"user-name":
|
|
7819
|
-
"avatar-url":
|
|
7818
|
+
"user-name": y.label,
|
|
7819
|
+
"avatar-url": y.avatar,
|
|
7820
7820
|
"is-closable": !0,
|
|
7821
|
-
onClose: (
|
|
7821
|
+
onClose: (_) => k(y, _)
|
|
7822
7822
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
7823
7823
|
]),
|
|
7824
7824
|
_: 2
|
|
@@ -7983,8 +7983,8 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
7983
7983
|
const b = a.user;
|
|
7984
7984
|
return b ? `${b == null ? void 0 : b.firstName} ${b == null ? void 0 : b.lastName}` : null;
|
|
7985
7985
|
}), s = ee(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard: l } = Es(s), c = S(() => {
|
|
7986
|
-
const b = a.editedAt && la(a.editedAt),
|
|
7987
|
-
return
|
|
7986
|
+
const b = a.editedAt && la(a.editedAt), y = la(a.createdAt), k = /* @__PURE__ */ new Date(), _ = b ?? y;
|
|
7987
|
+
return _ && a3(_, k);
|
|
7988
7988
|
}), u = S(() => o.value ? "textarea" : "p"), f = l(), d = r((b) => {
|
|
7989
7989
|
e("edit", b);
|
|
7990
7990
|
}), m = () => {
|
|
@@ -7994,11 +7994,11 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
7994
7994
|
De(() => {
|
|
7995
7995
|
var b;
|
|
7996
7996
|
if (!o.value) {
|
|
7997
|
-
const
|
|
7998
|
-
w.value =
|
|
7997
|
+
const y = (b = s.value) == null ? void 0 : b.getClientRects().length;
|
|
7998
|
+
w.value = y || 2;
|
|
7999
7999
|
}
|
|
8000
8000
|
});
|
|
8001
|
-
}), (b,
|
|
8001
|
+
}), (b, y) => {
|
|
8002
8002
|
var k;
|
|
8003
8003
|
return p(), g("li", nf, [
|
|
8004
8004
|
n.value ? (p(), P(Je, {
|
|
@@ -8309,7 +8309,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8309
8309
|
blocking: h
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
|
-
}),
|
|
8312
|
+
}), y = S(() => d.value.map((h) => {
|
|
8313
8313
|
var I;
|
|
8314
8314
|
return {
|
|
8315
8315
|
...h,
|
|
@@ -8319,7 +8319,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8319
8319
|
};
|
|
8320
8320
|
})), k = (h) => {
|
|
8321
8321
|
e("addSubtask", h);
|
|
8322
|
-
},
|
|
8322
|
+
}, _ = (h) => {
|
|
8323
8323
|
e("updateSubtask", h);
|
|
8324
8324
|
}, C = (h) => {
|
|
8325
8325
|
e("deleteSubtask", h);
|
|
@@ -8515,7 +8515,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8515
8515
|
"is-editable": n.value,
|
|
8516
8516
|
"is-template": h.isTemplate,
|
|
8517
8517
|
onAdd: k,
|
|
8518
|
-
onUpdate:
|
|
8518
|
+
onUpdate: _,
|
|
8519
8519
|
onDelete: C
|
|
8520
8520
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8521
8521
|
])
|
|
@@ -8694,7 +8694,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8694
8694
|
mode: "tags",
|
|
8695
8695
|
"close-on-select": !1,
|
|
8696
8696
|
searchable: !0,
|
|
8697
|
-
options:
|
|
8697
|
+
options: y.value,
|
|
8698
8698
|
disabled: !n.value,
|
|
8699
8699
|
caret: n.value
|
|
8700
8700
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
@@ -8755,12 +8755,12 @@ const h9 = /* @__PURE__ */ z({
|
|
|
8755
8755
|
});
|
|
8756
8756
|
}
|
|
8757
8757
|
}), r = S(() => {
|
|
8758
|
-
var
|
|
8759
|
-
return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (
|
|
8758
|
+
var _;
|
|
8759
|
+
return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (_ = {
|
|
8760
8760
|
[Ce.ACTIVITIES]: a.templateActivities,
|
|
8761
8761
|
[Ce.MILESTONES]: a.templateMilestones,
|
|
8762
8762
|
[Ce.PHASES]: a.templatePhases
|
|
8763
|
-
}[n.value]) == null ? void 0 :
|
|
8763
|
+
}[n.value]) == null ? void 0 : _.map((C) => ({
|
|
8764
8764
|
value: C.id,
|
|
8765
8765
|
label: C.name
|
|
8766
8766
|
}));
|
|
@@ -8792,31 +8792,31 @@ const h9 = /* @__PURE__ */ z({
|
|
|
8792
8792
|
set(k) {
|
|
8793
8793
|
e("update:rule", { ...a.rule, durationUnit: k });
|
|
8794
8794
|
}
|
|
8795
|
-
}),
|
|
8796
|
-
return (k,
|
|
8795
|
+
}), y = S(() => Object.values(j2));
|
|
8796
|
+
return (k, _) => (p(), P(ht(k.tagName), { class: "ao-rule-line" }, {
|
|
8797
8797
|
default: W(() => [
|
|
8798
8798
|
A(Q(lt), {
|
|
8799
8799
|
modelValue: s.value,
|
|
8800
|
-
"onUpdate:modelValue":
|
|
8800
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => s.value = C),
|
|
8801
8801
|
options: o.value
|
|
8802
8802
|
}, null, 8, ["modelValue", "options"]),
|
|
8803
8803
|
A(Q(lt), {
|
|
8804
8804
|
modelValue: i.value,
|
|
8805
|
-
"onUpdate:modelValue":
|
|
8805
|
+
"onUpdate:modelValue": _[1] || (_[1] = (C) => i.value = C),
|
|
8806
8806
|
options: r.value
|
|
8807
8807
|
}, null, 8, ["modelValue", "options"]),
|
|
8808
8808
|
A(Q(lt), {
|
|
8809
8809
|
modelValue: d.value,
|
|
8810
|
-
"onUpdate:modelValue":
|
|
8810
|
+
"onUpdate:modelValue": _[2] || (_[2] = (C) => d.value = C),
|
|
8811
8811
|
options: m.value
|
|
8812
8812
|
}, null, 8, ["modelValue", "options"]),
|
|
8813
8813
|
A(Q(lt), {
|
|
8814
8814
|
modelValue: c.value,
|
|
8815
|
-
"onUpdate:modelValue":
|
|
8815
|
+
"onUpdate:modelValue": _[3] || (_[3] = (C) => c.value = C),
|
|
8816
8816
|
options: u.value
|
|
8817
8817
|
}, null, 8, ["modelValue", "options"]),
|
|
8818
8818
|
Ke(v("input", {
|
|
8819
|
-
"onUpdate:modelValue":
|
|
8819
|
+
"onUpdate:modelValue": _[4] || (_[4] = (C) => w.value = C),
|
|
8820
8820
|
type: "number",
|
|
8821
8821
|
min: "0"
|
|
8822
8822
|
}, null, 512), [
|
|
@@ -8829,14 +8829,14 @@ const h9 = /* @__PURE__ */ z({
|
|
|
8829
8829
|
]),
|
|
8830
8830
|
A(Q(lt), {
|
|
8831
8831
|
modelValue: b.value,
|
|
8832
|
-
"onUpdate:modelValue":
|
|
8833
|
-
options:
|
|
8832
|
+
"onUpdate:modelValue": _[5] || (_[5] = (C) => b.value = C),
|
|
8833
|
+
options: y.value
|
|
8834
8834
|
}, null, 8, ["modelValue", "options"]),
|
|
8835
8835
|
A(ce, {
|
|
8836
8836
|
class: "ao-rule-line__remove",
|
|
8837
8837
|
"icon-name": "CloseRounded",
|
|
8838
8838
|
variant: "ghost",
|
|
8839
|
-
onClick:
|
|
8839
|
+
onClick: _[6] || (_[6] = (C) => k.$emit("close"))
|
|
8840
8840
|
})
|
|
8841
8841
|
]),
|
|
8842
8842
|
_: 1
|
|
@@ -9020,7 +9020,7 @@ const _9 = {
|
|
|
9020
9020
|
itemType: Ce.PHASES,
|
|
9021
9021
|
data: { name: h }
|
|
9022
9022
|
});
|
|
9023
|
-
},
|
|
9023
|
+
}, y = (M) => {
|
|
9024
9024
|
e("updateItem", M);
|
|
9025
9025
|
}, k = (M) => {
|
|
9026
9026
|
if (!i.value)
|
|
@@ -9040,7 +9040,7 @@ const _9 = {
|
|
|
9040
9040
|
phaseId: M.phaseId
|
|
9041
9041
|
}
|
|
9042
9042
|
});
|
|
9043
|
-
},
|
|
9043
|
+
}, _ = (M) => {
|
|
9044
9044
|
e("removeItem", {
|
|
9045
9045
|
type: Ce.MILESTONES,
|
|
9046
9046
|
templateId: a.templateId,
|
|
@@ -9215,8 +9215,8 @@ const _9 = {
|
|
|
9215
9215
|
"milestone-id": (I = r.value) == null ? void 0 : I.id,
|
|
9216
9216
|
onAddMilestone: k,
|
|
9217
9217
|
onUpdateMilestone: C,
|
|
9218
|
-
onUpdatePhase:
|
|
9219
|
-
onRemoveMilestone:
|
|
9218
|
+
onUpdatePhase: y,
|
|
9219
|
+
onRemoveMilestone: _
|
|
9220
9220
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
9221
9221
|
]),
|
|
9222
9222
|
v("li", S9, [
|
|
@@ -9664,7 +9664,7 @@ const G9 = {
|
|
|
9664
9664
|
group: "kanban"
|
|
9665
9665
|
}, d.$attrs, { onChange: f }), {
|
|
9666
9666
|
item: W(({ element: b }) => {
|
|
9667
|
-
var
|
|
9667
|
+
var y;
|
|
9668
9668
|
return [
|
|
9669
9669
|
A(K9, {
|
|
9670
9670
|
id: b.id,
|
|
@@ -9674,7 +9674,7 @@ const G9 = {
|
|
|
9674
9674
|
"is-editable": !d.readonly && d.isEditable,
|
|
9675
9675
|
"is-draggable": !d.readonly && d.isEditable,
|
|
9676
9676
|
"closed-status": d.closedStatus,
|
|
9677
|
-
"is-selected": b.id === ((
|
|
9677
|
+
"is-selected": b.id === ((y = d.$route.params) == null ? void 0 : y.milestoneId),
|
|
9678
9678
|
assignee: b.assignee,
|
|
9679
9679
|
important: b.important,
|
|
9680
9680
|
readonly: d.readonly,
|
|
@@ -9931,11 +9931,11 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
9931
9931
|
e("unarchiveActivity", E);
|
|
9932
9932
|
}, b = (E) => {
|
|
9933
9933
|
e("addSubtask", E);
|
|
9934
|
-
},
|
|
9934
|
+
}, y = (E) => {
|
|
9935
9935
|
e("updateSubtask", E);
|
|
9936
9936
|
}, k = (E) => {
|
|
9937
9937
|
e("deleteSubtask", E);
|
|
9938
|
-
},
|
|
9938
|
+
}, _ = S(
|
|
9939
9939
|
() => s.value.flatMap((E) => E.activities)
|
|
9940
9940
|
), C = (E) => {
|
|
9941
9941
|
e("addFiles", E);
|
|
@@ -10022,7 +10022,7 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
10022
10022
|
(p(), P(Nt, { to: "body" }, [
|
|
10023
10023
|
A(R, {
|
|
10024
10024
|
name: "modal",
|
|
10025
|
-
activities:
|
|
10025
|
+
activities: _.value,
|
|
10026
10026
|
"is-task-checkable": E.isTaskCheckable,
|
|
10027
10027
|
statuses: E.statuses,
|
|
10028
10028
|
"activity-types": E.activityTypes,
|
|
@@ -10034,7 +10034,7 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
10034
10034
|
"attachment-enabled": E.attachmentEnabled,
|
|
10035
10035
|
"onUpdate:activity": d,
|
|
10036
10036
|
onAddSubtask: b,
|
|
10037
|
-
onUpdateSubtask:
|
|
10037
|
+
onUpdateSubtask: y,
|
|
10038
10038
|
onDeleteSubtask: k,
|
|
10039
10039
|
onAddFiles: C,
|
|
10040
10040
|
onRemoveFile: D,
|
|
@@ -11230,85 +11230,95 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11230
11230
|
},
|
|
11231
11231
|
emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity"],
|
|
11232
11232
|
setup(t, { emit: e }) {
|
|
11233
|
-
const a = t, { t: n } = Tt(), s =
|
|
11234
|
-
var
|
|
11235
|
-
return (
|
|
11236
|
-
}),
|
|
11233
|
+
const a = t, { t: n } = Tt(), s = S(() => {
|
|
11234
|
+
var _;
|
|
11235
|
+
return (_ = a.phases) == null ? void 0 : _.find((C) => C.id === a.phaseId);
|
|
11236
|
+
}), o = S(
|
|
11237
11237
|
() => {
|
|
11238
|
-
var
|
|
11239
|
-
return (
|
|
11238
|
+
var _;
|
|
11239
|
+
return (_ = a.phases) == null ? void 0 : _.flatMap((C) => C.milestones);
|
|
11240
|
+
}
|
|
11241
|
+
), i = S(() => {
|
|
11242
|
+
var _;
|
|
11243
|
+
return (_ = o.value) == null ? void 0 : _.find((C) => C.id === a.milestoneId);
|
|
11244
|
+
}), r = S({
|
|
11245
|
+
get: () => {
|
|
11246
|
+
var _;
|
|
11247
|
+
return (_ = i.value) == null ? void 0 : _.color;
|
|
11248
|
+
},
|
|
11249
|
+
set: (_) => {
|
|
11250
|
+
var D;
|
|
11251
|
+
const C = i.value;
|
|
11252
|
+
C && (C.color = _, console.log("************ currentMilestone.color = " + C.color), console.log("************ currentMilemilestone.value?.color = " + ((D = i.value) == null ? void 0 : D.color)));
|
|
11240
11253
|
}
|
|
11241
|
-
), r = S(() => {
|
|
11242
|
-
var y;
|
|
11243
|
-
return (y = i.value) == null ? void 0 : y.find((C) => C.id === a.milestoneId);
|
|
11244
11254
|
}), l = S(() => {
|
|
11245
|
-
var
|
|
11246
|
-
return (
|
|
11255
|
+
var _;
|
|
11256
|
+
return (_ = i.value) == null ? void 0 : _.activities;
|
|
11247
11257
|
});
|
|
11248
|
-
de(l, (
|
|
11249
|
-
Xe(
|
|
11258
|
+
de(l, (_, C) => {
|
|
11259
|
+
Xe(_, C);
|
|
11250
11260
|
});
|
|
11251
|
-
const c = (
|
|
11252
|
-
e("close",
|
|
11261
|
+
const c = (_) => {
|
|
11262
|
+
e("close", _);
|
|
11253
11263
|
}, u = () => {
|
|
11254
|
-
const { name:
|
|
11264
|
+
const { name: _, rank: C } = Bt(
|
|
11255
11265
|
l.value ?? [],
|
|
11256
11266
|
"activity",
|
|
11257
11267
|
n
|
|
11258
11268
|
);
|
|
11259
11269
|
e("addActivity", {
|
|
11260
11270
|
milestoneId: a.milestoneId,
|
|
11261
|
-
name:
|
|
11271
|
+
name: _,
|
|
11262
11272
|
rank: C,
|
|
11263
11273
|
projectId: a.projectId
|
|
11264
11274
|
});
|
|
11265
|
-
}, f = (
|
|
11266
|
-
e("updateActivity",
|
|
11267
|
-
}, d = (
|
|
11268
|
-
l.value && "moved" in
|
|
11269
|
-
id:
|
|
11270
|
-
rank: jt(l.value,
|
|
11275
|
+
}, f = (_) => {
|
|
11276
|
+
e("updateActivity", _);
|
|
11277
|
+
}, d = (_) => {
|
|
11278
|
+
l.value && "moved" in _ && e("updateActivity", {
|
|
11279
|
+
id: _.moved.element.id,
|
|
11280
|
+
rank: jt(l.value, _.moved.newIndex)
|
|
11271
11281
|
});
|
|
11272
11282
|
}, m = S({
|
|
11273
11283
|
get: () => {
|
|
11274
|
-
var
|
|
11275
|
-
return ((
|
|
11284
|
+
var _;
|
|
11285
|
+
return ((_ = i == null ? void 0 : i.value) == null ? void 0 : _.deadline) ?? "";
|
|
11276
11286
|
},
|
|
11277
|
-
set: (
|
|
11278
|
-
|
|
11279
|
-
id:
|
|
11280
|
-
deadline:
|
|
11287
|
+
set: (_) => {
|
|
11288
|
+
i.value && e("updateMilestone", {
|
|
11289
|
+
id: i.value.id,
|
|
11290
|
+
deadline: _ != null && _.length ? _ : null
|
|
11281
11291
|
});
|
|
11282
11292
|
}
|
|
11283
|
-
}), w = (
|
|
11284
|
-
var
|
|
11285
|
-
return ((
|
|
11293
|
+
}), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1, b = S(() => {
|
|
11294
|
+
var _;
|
|
11295
|
+
return ((_ = a.users) == null ? void 0 : _.map((C) => ({
|
|
11286
11296
|
label: `${C.firstName} ${C.lastName}`,
|
|
11287
11297
|
value: C.id,
|
|
11288
11298
|
avatar: C.avatarUrl
|
|
11289
11299
|
}))) || [];
|
|
11290
|
-
}),
|
|
11300
|
+
}), y = S({
|
|
11291
11301
|
get() {
|
|
11292
|
-
var
|
|
11293
|
-
return (C = (
|
|
11302
|
+
var _, C;
|
|
11303
|
+
return (C = (_ = i.value) == null ? void 0 : _.assignee) != null && C.id ? [i.value.assignee.id] : [];
|
|
11294
11304
|
},
|
|
11295
|
-
set(
|
|
11305
|
+
set(_) {
|
|
11296
11306
|
e("updateMilestone", {
|
|
11297
11307
|
id: a.milestoneId,
|
|
11298
|
-
assigneeId:
|
|
11308
|
+
assigneeId: _[0] ?? null
|
|
11299
11309
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
11300
11310
|
});
|
|
11301
11311
|
}
|
|
11302
11312
|
}), k = S({
|
|
11303
11313
|
get() {
|
|
11304
|
-
var
|
|
11305
|
-
return ((
|
|
11314
|
+
var _;
|
|
11315
|
+
return ((_ = i.value) == null ? void 0 : _.important) ?? !1;
|
|
11306
11316
|
},
|
|
11307
|
-
set(
|
|
11308
|
-
e("updateMilestone", { id: a.milestoneId, important:
|
|
11317
|
+
set(_) {
|
|
11318
|
+
e("updateMilestone", { id: a.milestoneId, important: _ });
|
|
11309
11319
|
}
|
|
11310
11320
|
});
|
|
11311
|
-
return (
|
|
11321
|
+
return (_, C) => {
|
|
11312
11322
|
var D;
|
|
11313
11323
|
return p(), g("div", d4, [
|
|
11314
11324
|
v("header", p4, [
|
|
@@ -11324,24 +11334,24 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11324
11334
|
v("div", v4, [
|
|
11325
11335
|
v("div", h4, [
|
|
11326
11336
|
A(ye, {
|
|
11327
|
-
title: ((D =
|
|
11337
|
+
title: ((D = i.value) == null ? void 0 : D.name) || _.milestoneId,
|
|
11328
11338
|
level: 5
|
|
11329
11339
|
}, null, 8, ["title"]),
|
|
11330
11340
|
A(yn, {
|
|
11331
11341
|
modelValue: k.value,
|
|
11332
11342
|
"onUpdate:modelValue": C[0] || (C[0] = (L) => k.value = L),
|
|
11333
11343
|
modelModifiers: { lazy: !0 },
|
|
11334
|
-
disabled: !
|
|
11344
|
+
disabled: !_.isEditable,
|
|
11335
11345
|
class: "ao-milestone__important",
|
|
11336
11346
|
color: "danger",
|
|
11337
|
-
label:
|
|
11347
|
+
label: _.$t("activity.important.label"),
|
|
11338
11348
|
"icon-name": "FlagRounded",
|
|
11339
11349
|
variant: "ghost",
|
|
11340
11350
|
size: "sm"
|
|
11341
11351
|
}, null, 8, ["modelValue", "disabled", "label"])
|
|
11342
11352
|
])
|
|
11343
11353
|
]),
|
|
11344
|
-
|
|
11354
|
+
i.value ? (p(), g("div", m4, [
|
|
11345
11355
|
v("div", C4, [
|
|
11346
11356
|
v("label", g4, [
|
|
11347
11357
|
Ke(v("input", {
|
|
@@ -11361,17 +11371,17 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11361
11371
|
v("div", _4, [
|
|
11362
11372
|
v("label", y4, [
|
|
11363
11373
|
A($e, {
|
|
11364
|
-
modelValue:
|
|
11365
|
-
"onUpdate:modelValue": C[2] || (C[2] = (L) =>
|
|
11374
|
+
modelValue: y.value,
|
|
11375
|
+
"onUpdate:modelValue": C[2] || (C[2] = (L) => y.value = L),
|
|
11366
11376
|
options: b.value,
|
|
11367
11377
|
"close-on-select": !0,
|
|
11368
11378
|
searchable: !0,
|
|
11369
11379
|
max: 1,
|
|
11370
11380
|
class: "ao-milestone__field ao-milestone__multiselect",
|
|
11371
|
-
placeholder:
|
|
11381
|
+
placeholder: _.$t("activity.filters.assignee.placeholder"),
|
|
11372
11382
|
mode: "tags",
|
|
11373
|
-
disabled: !
|
|
11374
|
-
caret:
|
|
11383
|
+
disabled: !_.isEditable,
|
|
11384
|
+
caret: _.isEditable
|
|
11375
11385
|
}, {
|
|
11376
11386
|
tag: W(({
|
|
11377
11387
|
option: L,
|
|
@@ -11389,8 +11399,8 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11389
11399
|
])
|
|
11390
11400
|
]),
|
|
11391
11401
|
A(c4, {
|
|
11392
|
-
color:
|
|
11393
|
-
"onUpdate:color": C[3] || (C[3] = (L) =>
|
|
11402
|
+
color: r.value,
|
|
11403
|
+
"onUpdate:color": C[3] || (C[3] = (L) => r.value = L)
|
|
11394
11404
|
}, null, 8, ["color"])
|
|
11395
11405
|
])) : T("", !0)
|
|
11396
11406
|
]),
|
|
@@ -11398,39 +11408,39 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11398
11408
|
A(Q(mt), He({
|
|
11399
11409
|
class: "ao-project-milestone__activities",
|
|
11400
11410
|
list: l.value,
|
|
11401
|
-
disabled: !
|
|
11411
|
+
disabled: !_.isEditable,
|
|
11402
11412
|
"item-key": "id",
|
|
11403
11413
|
group: "kanban"
|
|
11404
|
-
},
|
|
11414
|
+
}, _.$attrs, { onChange: d }), {
|
|
11405
11415
|
item: W(({ element: L }) => {
|
|
11406
11416
|
var H, F, U, q;
|
|
11407
11417
|
return [
|
|
11408
11418
|
A(di, {
|
|
11409
11419
|
id: L.id,
|
|
11410
11420
|
name: L.name || L.id,
|
|
11411
|
-
"phase-name": (H =
|
|
11412
|
-
"milestone-name": (F =
|
|
11421
|
+
"phase-name": (H = s.value) == null ? void 0 : H.name,
|
|
11422
|
+
"milestone-name": (F = i.value) == null ? void 0 : F.name,
|
|
11413
11423
|
deadline: L.deadline,
|
|
11414
11424
|
important: L.important,
|
|
11415
|
-
users:
|
|
11425
|
+
users: _.users,
|
|
11416
11426
|
assignee: L.assignee,
|
|
11417
11427
|
comments: (U = L.comments) == null ? void 0 : U.length,
|
|
11418
11428
|
attachments: (q = L.attachments) == null ? void 0 : q.length,
|
|
11419
11429
|
tasks: L.tasks,
|
|
11420
|
-
"is-editable":
|
|
11430
|
+
"is-editable": _.isEditable,
|
|
11421
11431
|
"is-private": L.private,
|
|
11422
11432
|
"is-closed": w(L),
|
|
11423
|
-
onClick: (E) =>
|
|
11433
|
+
onClick: (E) => _.$router.push({
|
|
11424
11434
|
name: Q(Fe).activity,
|
|
11425
|
-
params: { milestoneId:
|
|
11435
|
+
params: { milestoneId: _.milestoneId, activityId: L.id }
|
|
11426
11436
|
}),
|
|
11427
11437
|
onUpdateActivity: f,
|
|
11428
11438
|
onRemoveAssignee: () => f({ id: L.id, assigneeId: null })
|
|
11429
11439
|
}, Ua({ _: 2 }, [
|
|
11430
|
-
|
|
11440
|
+
_.isEditable ? {
|
|
11431
11441
|
name: "secondary",
|
|
11432
11442
|
fn: W(() => [
|
|
11433
|
-
|
|
11443
|
+
_.isEditable && L.active ? (p(), P(ce, {
|
|
11434
11444
|
key: 0,
|
|
11435
11445
|
color: "primary",
|
|
11436
11446
|
variant: "ghost",
|
|
@@ -11438,10 +11448,10 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11438
11448
|
size: "sm",
|
|
11439
11449
|
"icon-position": "start",
|
|
11440
11450
|
corners: "round",
|
|
11441
|
-
label:
|
|
11442
|
-
onClick: fe(() =>
|
|
11451
|
+
label: _.$t("archive"),
|
|
11452
|
+
onClick: fe(() => _.$emit("archiveActivity", { id: L.id }), ["stop"])
|
|
11443
11453
|
}, null, 8, ["label", "onClick"])) : T("", !0),
|
|
11444
|
-
|
|
11454
|
+
_.isEditable && !L.active ? (p(), P(ce, {
|
|
11445
11455
|
key: 1,
|
|
11446
11456
|
color: "primary",
|
|
11447
11457
|
variant: "ghost",
|
|
@@ -11449,9 +11459,9 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11449
11459
|
size: "sm",
|
|
11450
11460
|
"icon-position": "start",
|
|
11451
11461
|
corners: "round",
|
|
11452
|
-
label:
|
|
11462
|
+
label: _.$t("feed.activity.unarchive"),
|
|
11453
11463
|
onClick: fe(
|
|
11454
|
-
() =>
|
|
11464
|
+
() => _.$emit("unarchiveActivity", { id: L.id }),
|
|
11455
11465
|
["stop"]
|
|
11456
11466
|
)
|
|
11457
11467
|
}, null, 8, ["label", "onClick"])) : T("", !0)
|
|
@@ -11463,10 +11473,10 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11463
11473
|
}),
|
|
11464
11474
|
_: 1
|
|
11465
11475
|
}, 16, ["list", "disabled"]),
|
|
11466
|
-
|
|
11476
|
+
_.isEditable ? (p(), g("div", w4, [
|
|
11467
11477
|
A(Ct, {
|
|
11468
11478
|
"icon-name": "Add",
|
|
11469
|
-
label:
|
|
11479
|
+
label: _.$t("project.activity.add"),
|
|
11470
11480
|
onClick: u
|
|
11471
11481
|
}, null, 8, ["label"])
|
|
11472
11482
|
])) : T("", !0)
|
|
@@ -11495,56 +11505,56 @@ const $4 = /* @__PURE__ */ z({
|
|
|
11495
11505
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
11496
11506
|
setup(t, { emit: e }) {
|
|
11497
11507
|
const a = t, n = S(() => {
|
|
11498
|
-
var
|
|
11499
|
-
return (
|
|
11508
|
+
var y;
|
|
11509
|
+
return (y = a.phases) == null ? void 0 : y.find((k) => k.id === a.phaseId);
|
|
11500
11510
|
}), s = S(
|
|
11501
11511
|
() => {
|
|
11502
|
-
var
|
|
11503
|
-
return (
|
|
11512
|
+
var y;
|
|
11513
|
+
return (y = a.phases) == null ? void 0 : y.flatMap((k) => k.milestones);
|
|
11504
11514
|
}
|
|
11505
11515
|
), o = S(() => {
|
|
11506
|
-
var
|
|
11507
|
-
return (
|
|
11516
|
+
var y;
|
|
11517
|
+
return (y = s.value) == null ? void 0 : y.find((k) => k.id === a.milestoneId);
|
|
11508
11518
|
}), i = S(() => {
|
|
11509
|
-
var
|
|
11510
|
-
return (
|
|
11511
|
-
}), r = (
|
|
11512
|
-
e("update:activity",
|
|
11513
|
-
}, l = (
|
|
11514
|
-
e("addSubtask",
|
|
11515
|
-
}, c = (
|
|
11516
|
-
e("updateSubtask",
|
|
11517
|
-
}, u = (
|
|
11518
|
-
e("deleteSubtask",
|
|
11519
|
-
}, f = (
|
|
11520
|
-
e("addFiles",
|
|
11521
|
-
}, d = (
|
|
11522
|
-
e("removeFile",
|
|
11523
|
-
}, m = (
|
|
11524
|
-
e("addComment",
|
|
11525
|
-
}, w = (
|
|
11526
|
-
e("updateComment",
|
|
11527
|
-
}, b = (
|
|
11528
|
-
e("removeComment",
|
|
11519
|
+
var y;
|
|
11520
|
+
return (y = a.activities) == null ? void 0 : y.find((k) => k.id === a.activityId);
|
|
11521
|
+
}), r = (y) => {
|
|
11522
|
+
e("update:activity", y);
|
|
11523
|
+
}, l = (y) => {
|
|
11524
|
+
e("addSubtask", y);
|
|
11525
|
+
}, c = (y) => {
|
|
11526
|
+
e("updateSubtask", y);
|
|
11527
|
+
}, u = (y) => {
|
|
11528
|
+
e("deleteSubtask", y);
|
|
11529
|
+
}, f = (y) => {
|
|
11530
|
+
e("addFiles", y);
|
|
11531
|
+
}, d = (y) => {
|
|
11532
|
+
e("removeFile", y);
|
|
11533
|
+
}, m = (y) => {
|
|
11534
|
+
e("addComment", y);
|
|
11535
|
+
}, w = (y) => {
|
|
11536
|
+
e("updateComment", y);
|
|
11537
|
+
}, b = (y) => {
|
|
11538
|
+
e("removeComment", y);
|
|
11529
11539
|
};
|
|
11530
|
-
return (
|
|
11531
|
-
var
|
|
11540
|
+
return (y, k) => {
|
|
11541
|
+
var _, C;
|
|
11532
11542
|
return i.value ? (p(), P(Zn, {
|
|
11533
11543
|
key: 0,
|
|
11534
11544
|
activity: i.value,
|
|
11535
|
-
"activity-types":
|
|
11536
|
-
"milestone-id":
|
|
11537
|
-
"template-activities":
|
|
11545
|
+
"activity-types": y.activityTypes,
|
|
11546
|
+
"milestone-id": y.milestoneId,
|
|
11547
|
+
"template-activities": y.activities,
|
|
11538
11548
|
"is-template": !1,
|
|
11539
|
-
users:
|
|
11540
|
-
"user-id":
|
|
11541
|
-
"is-task-checkable":
|
|
11542
|
-
statuses:
|
|
11543
|
-
breadcrumbs: `${(
|
|
11544
|
-
"is-editable":
|
|
11545
|
-
"attachment-enabled":
|
|
11546
|
-
projects: [
|
|
11547
|
-
onClose:
|
|
11549
|
+
users: y.users,
|
|
11550
|
+
"user-id": y.userId,
|
|
11551
|
+
"is-task-checkable": y.isTaskCheckable,
|
|
11552
|
+
statuses: y.statuses,
|
|
11553
|
+
breadcrumbs: `${(_ = n.value) == null ? void 0 : _.name} / ${(C = o.value) == null ? void 0 : C.name}`,
|
|
11554
|
+
"is-editable": y.isEditable,
|
|
11555
|
+
"attachment-enabled": y.attachmentEnabled,
|
|
11556
|
+
projects: [y.project],
|
|
11557
|
+
onClose: y.$router.back,
|
|
11548
11558
|
"onUpdate:activity": r,
|
|
11549
11559
|
onAddSubtask: l,
|
|
11550
11560
|
onUpdateSubtask: c,
|
|
@@ -11556,7 +11566,7 @@ const $4 = /* @__PURE__ */ z({
|
|
|
11556
11566
|
onRemoveComment: b
|
|
11557
11567
|
}, {
|
|
11558
11568
|
default: W((D) => [
|
|
11559
|
-
te(
|
|
11569
|
+
te(y.$slots, "default", pa(fa(D)))
|
|
11560
11570
|
]),
|
|
11561
11571
|
_: 3
|
|
11562
11572
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "onClose"])) : T("", !0);
|
|
@@ -11658,7 +11668,7 @@ function P4(t, e, a = {}) {
|
|
|
11658
11668
|
([w, b]) => {
|
|
11659
11669
|
if (u(), !f.value || !w.length)
|
|
11660
11670
|
return;
|
|
11661
|
-
const
|
|
11671
|
+
const y = new IntersectionObserver(
|
|
11662
11672
|
e,
|
|
11663
11673
|
{
|
|
11664
11674
|
root: vn(b),
|
|
@@ -11666,8 +11676,8 @@ function P4(t, e, a = {}) {
|
|
|
11666
11676
|
threshold: o
|
|
11667
11677
|
}
|
|
11668
11678
|
);
|
|
11669
|
-
w.forEach((k) => k &&
|
|
11670
|
-
|
|
11679
|
+
w.forEach((k) => k && y.observe(k)), u = () => {
|
|
11680
|
+
y.disconnect(), u = oa;
|
|
11671
11681
|
};
|
|
11672
11682
|
},
|
|
11673
11683
|
{ immediate: r, flush: "post" }
|
|
@@ -11779,7 +11789,7 @@ const V4 = {
|
|
|
11779
11789
|
}
|
|
11780
11790
|
}), {
|
|
11781
11791
|
item: W(({ element: d }) => {
|
|
11782
|
-
var m, w, b,
|
|
11792
|
+
var m, w, b, y, k, _, C, D;
|
|
11783
11793
|
return [
|
|
11784
11794
|
A(di, {
|
|
11785
11795
|
class: Y(o(d) ? "ao-list-draggable" : ""),
|
|
@@ -11787,10 +11797,10 @@ const V4 = {
|
|
|
11787
11797
|
name: d.name,
|
|
11788
11798
|
"project-name": (m = d.project) == null ? void 0 : m.name,
|
|
11789
11799
|
"project-color": (w = d.project) == null ? void 0 : w.color,
|
|
11790
|
-
"phase-name": (
|
|
11800
|
+
"phase-name": (y = (b = d.milestone) == null ? void 0 : b.phase) == null ? void 0 : y.name,
|
|
11791
11801
|
"milestone-name": (k = d.milestone) == null ? void 0 : k.name,
|
|
11792
11802
|
deadline: d.deadline,
|
|
11793
|
-
rules: ((
|
|
11803
|
+
rules: ((_ = d.rules) == null ? void 0 : _.length) || 0,
|
|
11794
11804
|
tasks: d.tasks,
|
|
11795
11805
|
description: d.description,
|
|
11796
11806
|
important: d.important,
|
|
@@ -11966,13 +11976,13 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
11966
11976
|
value: N.id,
|
|
11967
11977
|
label: N.name
|
|
11968
11978
|
}));
|
|
11969
|
-
}),
|
|
11979
|
+
}), y = S(() => a.users.map((O) => ({
|
|
11970
11980
|
value: O.id,
|
|
11971
11981
|
label: `${O.firstName} ${O.lastName}`,
|
|
11972
11982
|
avatar: O.avatarUrl
|
|
11973
11983
|
}))), k = (O) => {
|
|
11974
11984
|
a.selectedActivity && e("update:activity", O);
|
|
11975
|
-
},
|
|
11985
|
+
}, _ = (O) => {
|
|
11976
11986
|
e("update:activity", O);
|
|
11977
11987
|
}, C = (O) => {
|
|
11978
11988
|
e("archiveActivity", O);
|
|
@@ -12048,11 +12058,11 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
12048
12058
|
placeholder: O.$t("feed.filters.activityType.placeholder"),
|
|
12049
12059
|
"onUpdate:modelValue": N[2] || (N[2] = (h) => d(Q(Lt).type, h))
|
|
12050
12060
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
12051
|
-
|
|
12061
|
+
y.value.length ? (p(), P($e, {
|
|
12052
12062
|
key: 3,
|
|
12053
12063
|
"model-value": O.filters[Q(Lt).assignee],
|
|
12054
12064
|
mode: "tags",
|
|
12055
|
-
options:
|
|
12065
|
+
options: y.value,
|
|
12056
12066
|
"close-on-select": !1,
|
|
12057
12067
|
searchable: !0,
|
|
12058
12068
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
@@ -12115,7 +12125,7 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
12115
12125
|
onSelectActivity: o,
|
|
12116
12126
|
onArchiveActivity: C,
|
|
12117
12127
|
onUnarchiveActivity: D,
|
|
12118
|
-
onUpdateActivity:
|
|
12128
|
+
onUpdateActivity: _
|
|
12119
12129
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tagType", "onAdd"]))), 128))
|
|
12120
12130
|
]),
|
|
12121
12131
|
(p(), P(Nt, { to: "body" }, [
|