@26lights/orcha 0.37.50 → 0.37.52
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 +285 -282
- package/dist/orcha.umd.js +2 -2
- package/dist/src/types/index.d.ts +1 -3
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1255,36 +1255,36 @@ const ye = /* @__PURE__ */ x({
|
|
|
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 = A(() => a.title.replace(/\s*\(\d+\)$/, "")), c = A(() => s.value ? "input" : a.tag || `h${a.level}`), u = A(() => a.isEditable ? s.value ? {
|
|
1257
1257
|
change: f,
|
|
1258
|
-
click: (
|
|
1258
|
+
click: (g) => g.stopPropagation(),
|
|
1259
1259
|
blur: h
|
|
1260
1260
|
} : {
|
|
1261
1261
|
click: b,
|
|
1262
1262
|
focus: b
|
|
1263
|
-
} : {}), f = i((
|
|
1263
|
+
} : {}), f = i((g, S) => {
|
|
1264
1264
|
const m = S.target.value;
|
|
1265
1265
|
e("update:title", m);
|
|
1266
1266
|
}), d = r(), h = async () => {
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, w = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
1270
|
-
}, b = (
|
|
1271
|
-
|
|
1270
|
+
}, b = (g) => {
|
|
1271
|
+
g.stopPropagation(), s.value || o(!0);
|
|
1272
1272
|
};
|
|
1273
1273
|
return de(
|
|
1274
1274
|
() => a.isEditable,
|
|
1275
|
-
(
|
|
1276
|
-
|
|
1275
|
+
(g) => {
|
|
1276
|
+
g || d();
|
|
1277
1277
|
}
|
|
1278
|
-
), (
|
|
1279
|
-
id:
|
|
1278
|
+
), (g, S) => (p(), P(ht(c.value), He({
|
|
1279
|
+
id: g.id,
|
|
1280
1280
|
ref_key: "target",
|
|
1281
1281
|
ref: n,
|
|
1282
1282
|
class: [
|
|
1283
1283
|
"ao-title",
|
|
1284
|
-
`ao-title--${
|
|
1284
|
+
`ao-title--${g.level}`,
|
|
1285
1285
|
{
|
|
1286
|
-
[`ao-title--${
|
|
1287
|
-
"ao-title--editable":
|
|
1286
|
+
[`ao-title--${g.color}`]: !!g.color,
|
|
1287
|
+
"ao-title--editable": g.isEditable,
|
|
1288
1288
|
"ao-field__input ao-title--editing": J(s),
|
|
1289
1289
|
"ao-title--readonly": !J(s)
|
|
1290
1290
|
}
|
|
@@ -1297,7 +1297,7 @@ const ye = /* @__PURE__ */ x({
|
|
|
1297
1297
|
onKeydown: dt(J(d), ["esc"])
|
|
1298
1298
|
}), {
|
|
1299
1299
|
default: z(() => [
|
|
1300
|
-
Fa(Q(
|
|
1300
|
+
Fa(Q(g.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, h), w.setUTCHours(0, 0, 0, 0);
|
|
1600
|
-
var b = Pa(w, e),
|
|
1601
|
-
|
|
1602
|
-
var S = Pa(
|
|
1600
|
+
var b = Pa(w, e), g = /* @__PURE__ */ new Date(0);
|
|
1601
|
+
g.setUTCFullYear(f, 0, h), g.setUTCHours(0, 0, 0, 0);
|
|
1602
|
+
var S = Pa(g, e);
|
|
1603
1603
|
return u.getTime() >= b.getTime() ? f + 1 : u.getTime() >= S.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, h, w, b,
|
|
2725
|
+
var n, s, o, i, r, l, c, u, f, d, h, w, b, g, S, _, m, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
2727
|
var I = String(e), L = va(), U = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n : Rs, Z = 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 (!(Z >= 1 && Z <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
|
-
var Y = Qe((h = (w = (b = (
|
|
2730
|
+
var Y = Qe((h = (w = (b = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || (S = a.locale) === null || S === void 0 || (_ = S.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : L.weekStartsOn) !== null && w !== void 0 ? w : (m = L.locale) === null || m === void 0 || (D = m.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2731
2731
|
if (!(Y >= 0 && Y <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!U.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 h = be(t), w = be(e), b = va(),
|
|
2775
|
-
if (!
|
|
2774
|
+
var h = be(t), w = be(e), b = va(), g = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Rs, S = 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 (!g.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
|
-
if (!
|
|
2777
|
+
if (!g.formatLong)
|
|
2778
2778
|
throw new RangeError("locale must contain formatLong property");
|
|
2779
|
-
if (!
|
|
2779
|
+
if (!g.formatRelative)
|
|
2780
2780
|
throw new RangeError("locale must contain formatRelative property");
|
|
2781
|
-
var
|
|
2782
|
-
if (isNaN(
|
|
2781
|
+
var _ = q2(h, w);
|
|
2782
|
+
if (isNaN(_))
|
|
2783
2783
|
throw new RangeError("Invalid time value");
|
|
2784
2784
|
var m;
|
|
2785
|
-
|
|
2786
|
-
var D = gn(h, ra(h)), I = gn(w, ra(w)), L =
|
|
2787
|
-
locale:
|
|
2785
|
+
_ < -6 ? m = "other" : _ < -1 ? m = "lastWeek" : _ < 0 ? m = "yesterday" : _ < 1 ? m = "today" : _ < 2 ? m = "tomorrow" : _ < 7 ? m = "nextWeek" : m = "other";
|
|
2786
|
+
var D = gn(h, ra(h)), I = gn(w, ra(w)), L = g.formatRelative(m, D, I, {
|
|
2787
|
+
locale: g,
|
|
2788
2788
|
weekStartsOn: S
|
|
2789
2789
|
});
|
|
2790
2790
|
return Ns(h, L, {
|
|
2791
|
-
locale:
|
|
2791
|
+
locale: g,
|
|
2792
2792
|
weekStartsOn: S
|
|
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, g = l.setScale(b, !0);
|
|
3492
|
+
if (f = c.setScale(b, !1), g.compareTo(f) === 0)
|
|
3493
|
+
return s.checkMid(i, r, g);
|
|
3494
|
+
if (g.compareTo(f) > 0)
|
|
3495
3495
|
break;
|
|
3496
|
-
w = b, l =
|
|
3496
|
+
w = b, l = g;
|
|
3497
3497
|
}
|
|
3498
3498
|
let d = s.middleInternal(i, r, l, c), h;
|
|
3499
3499
|
for (let w = d.getScale(); w > 0; w = h) {
|
|
@@ -4347,10 +4347,10 @@ const E5 = async (t, e, a) => {
|
|
|
4347
4347
|
} = vs(c, n, l), d = n, h = {}, w = 0;
|
|
4348
4348
|
for (let b = 0; b < r.length; b++) {
|
|
4349
4349
|
const {
|
|
4350
|
-
name:
|
|
4350
|
+
name: g,
|
|
4351
4351
|
fn: S
|
|
4352
4352
|
} = r[b], {
|
|
4353
|
-
x:
|
|
4353
|
+
x: _,
|
|
4354
4354
|
y: m,
|
|
4355
4355
|
data: D,
|
|
4356
4356
|
reset: I
|
|
@@ -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 = m ?? f, h = {
|
|
4372
4372
|
...h,
|
|
4373
|
-
[
|
|
4374
|
-
...h[
|
|
4373
|
+
[g]: {
|
|
4374
|
+
...h[g],
|
|
4375
4375
|
...D
|
|
4376
4376
|
}
|
|
4377
4377
|
}, I && w <= 50) {
|
|
@@ -4410,12 +4410,12 @@ async function Ks(t, e) {
|
|
|
4410
4410
|
elementContext: f = "floating",
|
|
4411
4411
|
altBoundary: d = !1,
|
|
4412
4412
|
padding: h = 0
|
|
4413
|
-
} = Ln(e, t), w = O5(h),
|
|
4414
|
-
element: (a = await (o.isElement == null ? void 0 : o.isElement(
|
|
4413
|
+
} = Ln(e, t), w = O5(h), g = r[d ? f === "floating" ? "reference" : "floating" : f], S = Ra(await o.getClippingRect({
|
|
4414
|
+
element: (a = await (o.isElement == null ? void 0 : o.isElement(g))) == null || a ? g : g.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
|
}, I = Ra(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4429
|
-
rect:
|
|
4429
|
+
rect: _,
|
|
4430
4430
|
offsetParent: m,
|
|
4431
4431
|
strategy: l
|
|
4432
|
-
}) :
|
|
4432
|
+
}) : _);
|
|
4433
4433
|
return {
|
|
4434
4434
|
top: (S.top - I.top + w.top) / D.y,
|
|
4435
4435
|
bottom: (I.bottom - S.bottom + w.bottom) / D.y,
|
|
@@ -4457,13 +4457,13 @@ const I5 = function(t) {
|
|
|
4457
4457
|
fallbackStrategy: h = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: w = "none",
|
|
4459
4459
|
flipAlignment: b = !0,
|
|
4460
|
-
...
|
|
4460
|
+
...g
|
|
4461
4461
|
} = Ln(t, e);
|
|
4462
4462
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4463
4463
|
return {};
|
|
4464
|
-
const S = Ft(s),
|
|
4464
|
+
const S = Ft(s), _ = Ft(r) === r, m = 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, m));
|
|
4466
|
-
const I = [r, ...D], L = await Ks(e,
|
|
4466
|
+
const I = [r, ...D], L = await Ks(e, g), U = [];
|
|
4467
4467
|
let Z = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4468
4468
|
if (u && U.push(L[S]), f) {
|
|
4469
4469
|
const N = k5(s, i, m);
|
|
@@ -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 m =
|
|
4531
|
+
const g = h - l[w], S = d - l[b], _ = !e.middlewareData.shift;
|
|
4532
|
+
let m = g, D = S;
|
|
4533
4533
|
if (f) {
|
|
4534
4534
|
const L = d - l.left - l.right;
|
|
4535
|
-
D = u ||
|
|
4535
|
+
D = u || _ ? ua(S, L) : L;
|
|
4536
4536
|
} else {
|
|
4537
4537
|
const L = h - l.top - l.bottom;
|
|
4538
|
-
m = u ||
|
|
4538
|
+
m = u || _ ? ua(g, L) : L;
|
|
4539
4539
|
}
|
|
4540
|
-
if (
|
|
4540
|
+
if (_ && !u) {
|
|
4541
4541
|
const L = Ee(l.left, 0), U = Ee(l.right, 0), Z = Ee(l.top, 0), Y = Ee(l.bottom, 0);
|
|
4542
4542
|
f ? D = d - 2 * (L !== 0 || U !== 0 ? L + U : Ee(l.left, l.right)) : m = h - 2 * (Z !== 0 || Y !== 0 ? Z + Y : Ee(l.top, l.bottom));
|
|
4543
4543
|
}
|
|
@@ -4693,8 +4693,8 @@ function St(t, e, a, n) {
|
|
|
4693
4693
|
const d = ke(o), h = n && et(n) ? ke(n) : n;
|
|
4694
4694
|
let w = d.frameElement;
|
|
4695
4695
|
for (; w && n && h !== 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), g = w.getBoundingClientRect(), S = Ve(w), _ = g.left + (w.clientLeft + parseFloat(S.paddingLeft)) * b.x, m = g.top + (w.clientTop + parseFloat(S.paddingTop)) * b.y;
|
|
4697
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += _, c += m, 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 h = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)),
|
|
4909
|
-
rootMargin: -h + "px " + -w + "px " + -b + "px " + -
|
|
4908
|
+
const h = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)), g = Oa(c), _ = {
|
|
4909
|
+
rootMargin: -h + "px " + -w + "px " + -b + "px " + -g + "px",
|
|
4910
4910
|
threshold: Ee(0, ua(1, l)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let m = !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, h = null;
|
|
4953
4953
|
i && (h = new ResizeObserver((S) => {
|
|
4954
|
-
let [
|
|
4955
|
-
|
|
4954
|
+
let [_] = S;
|
|
4955
|
+
_ && _.target === c && h && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
4956
4956
|
h && h.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
4958
|
}), c && !l && h.observe(c), h.observe(e));
|
|
4959
4959
|
let w, b = l ? St(t) : null;
|
|
4960
|
-
l &&
|
|
4961
|
-
function
|
|
4960
|
+
l && g();
|
|
4961
|
+
function g() {
|
|
4962
4962
|
const S = St(t);
|
|
4963
|
-
b && (S.x !== b.x || S.y !== b.y || S.width !== b.width || S.height !== b.height) && a(), b = S, w = requestAnimationFrame(
|
|
4963
|
+
b && (S.x !== b.x || S.y !== b.y || S.width !== b.width || S.height !== b.height) && a(), b = S, w = requestAnimationFrame(g);
|
|
4964
4964
|
}
|
|
4965
4965
|
return a(), () => {
|
|
4966
4966
|
u.forEach((S) => {
|
|
@@ -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((g) => !!g.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: h,
|
|
5138
5138
|
object: w,
|
|
5139
5139
|
loading: b,
|
|
5140
|
-
delay:
|
|
5140
|
+
delay: g,
|
|
5141
5141
|
resolveOnLoad: S,
|
|
5142
|
-
minChars:
|
|
5142
|
+
minChars: _,
|
|
5143
5143
|
filterResults: m,
|
|
5144
5144
|
clearOnSearch: D,
|
|
5145
5145
|
clearOnSelect: I,
|
|
@@ -5393,7 +5393,7 @@ function i7(t, e, a) {
|
|
|
5393
5393
|
[yt.value[0]]: B
|
|
5394
5394
|
}), ss = () => {
|
|
5395
5395
|
Be.value = de(G, ($) => {
|
|
5396
|
-
$.length <
|
|
5396
|
+
$.length < _.value || !$ && _.value !== 0 || (Me.value = !0, D.value && (Ne.value = []), setTimeout(() => {
|
|
5397
5397
|
$ == G.value && n.value(G.value, ie).then((B) => {
|
|
5398
5398
|
($ == G.value || !G.value) && (Ne.value = B, Kt.value = ot.value.filter((re) => re[y.value] !== !0)[0] || null, Me.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
|
+
}, g.value));
|
|
5406
5406
|
}, { flush: "sync" });
|
|
5407
5407
|
};
|
|
5408
5408
|
if (s.value !== "single" && !je(H.value) && !Array.isArray(H.value))
|
|
5409
5409
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5410
|
-
return n && typeof n.value == "function" ? S.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()),
|
|
5410
|
+
return n && typeof n.value == "function" ? S.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()), g.value > -1 && ss(), de(g, ($, B) => {
|
|
5411
5411
|
Be.value && Be.value(), $ >= 0 && ss();
|
|
5412
5412
|
}), de(H, ($) => {
|
|
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
|
-
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick,
|
|
5475
|
+
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, g = a.search, S = a.pointer, _ = a.setPointer, m = a.clearPointer, D = a.multiselect, I = a.isOpen, L = A(() => d.value.filter((H) => !H[u.value])), U = A(() => h.value.filter((H) => !H[u.value])), Z = A(() => l.value !== "single" && c.value), Y = A(() => S.value && S.value.group), E = A(() => ie(S.value)), K = A(() => {
|
|
5476
5476
|
const H = Y.value ? S.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
ie(S.value)
|
|
@@ -5489,19 +5489,19 @@ function o7(t, e, a) {
|
|
|
5489
5489
|
const H = ie(S.value).__VISIBLE__.filter((G) => !G[u.value]);
|
|
5490
5490
|
return H[H.map((G) => G[n.value]).indexOf(S.value[n.value]) + 1];
|
|
5491
5491
|
}), k = A(() => [...K.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = A(() => [...W.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => S.value && (!H.group && S.value[n.value] === H[n.value] || H.group !== void 0 && S.value[i.value] === H[i.value]) ? !0 : void 0, se = () => {
|
|
5492
|
-
|
|
5492
|
+
_(L.value[0] || null);
|
|
5493
5493
|
}, y = () => {
|
|
5494
5494
|
!S.value || S.value[u.value] === !0 || (Y.value ? b(S.value) : w(S.value));
|
|
5495
5495
|
}, R = () => {
|
|
5496
5496
|
if (S.value === null)
|
|
5497
|
-
|
|
5497
|
+
_((r.value && Z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
|
|
5498
5498
|
else if (r.value && Z.value) {
|
|
5499
5499
|
let H = Y.value ? oe.value : O.value;
|
|
5500
|
-
H === void 0 && (H = N.value, H.__CREATE__ && (H = H[f.value][0])),
|
|
5500
|
+
H === void 0 && (H = N.value, H.__CREATE__ && (H = H[f.value][0])), _(H || /* istanbul ignore next */
|
|
5501
5501
|
null);
|
|
5502
5502
|
} else {
|
|
5503
5503
|
let H = L.value.map((G) => G[n.value]).indexOf(S.value[n.value]) + 1;
|
|
5504
|
-
L.value.length <= H && (H = 0),
|
|
5504
|
+
L.value.length <= H && (H = 0), _(L.value[H] || null);
|
|
5505
5505
|
}
|
|
5506
5506
|
De(() => {
|
|
5507
5507
|
q();
|
|
@@ -5509,14 +5509,14 @@ function o7(t, e, a) {
|
|
|
5509
5509
|
}, le = () => {
|
|
5510
5510
|
if (S.value === null) {
|
|
5511
5511
|
let H = L.value[L.value.length - 1];
|
|
5512
|
-
r.value && Z.value && (H = F.value, H === void 0 && (H = W.value)),
|
|
5512
|
+
r.value && Z.value && (H = F.value, H === void 0 && (H = W.value)), _(H || null);
|
|
5513
5513
|
} else if (r.value && Z.value) {
|
|
5514
5514
|
let H = Y.value ? k.value : ne.value;
|
|
5515
|
-
H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H = k.value, H === void 0 && (H = K.value))),
|
|
5515
|
+
H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H = k.value, H === void 0 && (H = K.value))), _(H || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
5518
|
let H = L.value.map((G) => G[n.value]).indexOf(S.value[n.value]) - 1;
|
|
5519
|
-
H < 0 && (H = L.value.length - 1),
|
|
5519
|
+
H < 0 && (H = L.value.length - 1), _(L.value[H] || null);
|
|
5520
5520
|
}
|
|
5521
5521
|
De(() => {
|
|
5522
5522
|
q();
|
|
@@ -5528,7 +5528,7 @@ function o7(t, e, a) {
|
|
|
5528
5528
|
let G = H.parentElement.parentElement;
|
|
5529
5529
|
r.value && (G = Y.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > G.clientHeight + G.scrollTop && (G.scrollTop = H.offsetTop + H.offsetHeight - G.clientHeight), H.offsetTop < G.scrollTop && (G.scrollTop = H.offsetTop);
|
|
5530
5530
|
};
|
|
5531
|
-
return de(
|
|
5531
|
+
return de(g, (H) => {
|
|
5532
5532
|
o.value && (H.length && s.value ? se() : m());
|
|
5533
5533
|
}), de(I, (H) => {
|
|
5534
5534
|
if (H) {
|
|
@@ -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, h = a.altBoundary, w = h === void 0 ? !1 : h, 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, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, g = b === void 0 ? 0 : b, S = V7(typeof g != "number" ? g : B7(g, an)), _ = d === sa ? v7 : sa, m = 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), U = li({
|
|
5913
5913
|
reference: L,
|
|
5914
5914
|
element: m,
|
|
5915
5915
|
strategy: "absolute",
|
|
@@ -5960,8 +5960,8 @@ function R7(t) {
|
|
|
5960
5960
|
}, f = [], d = !1, h = {
|
|
5961
5961
|
state: u,
|
|
5962
5962
|
setOptions: function(S) {
|
|
5963
|
-
var
|
|
5964
|
-
b(), u.options = Object.assign({}, o, u.options,
|
|
5963
|
+
var _ = typeof S == "function" ? S(u.options) : S;
|
|
5964
|
+
b(), u.options = Object.assign({}, o, u.options, _), u.scrollParents = {
|
|
5965
5965
|
reference: At(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 S = u.elements,
|
|
5981
|
-
if (ws(
|
|
5980
|
+
var S = u.elements, _ = S.reference, m = S.popper;
|
|
5981
|
+
if (ws(_, m)) {
|
|
5982
5982
|
u.rects = {
|
|
5983
|
-
reference: c7(
|
|
5983
|
+
reference: c7(_, tn(m), u.options.strategy === "fixed"),
|
|
5984
5984
|
popper: si(m)
|
|
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
|
-
h.forceUpdate(),
|
|
6007
|
+
return new Promise(function(g) {
|
|
6008
|
+
h.forceUpdate(), g(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 h;
|
|
6017
|
-
h.setOptions(c).then(function(
|
|
6018
|
-
!d && c.onFirstUpdate && c.onFirstUpdate(
|
|
6017
|
+
h.setOptions(c).then(function(g) {
|
|
6018
|
+
!d && c.onFirstUpdate && c.onFirstUpdate(g);
|
|
6019
6019
|
});
|
|
6020
6020
|
function w() {
|
|
6021
|
-
u.orderedModifiers.forEach(function(
|
|
6022
|
-
var S =
|
|
6021
|
+
u.orderedModifiers.forEach(function(g) {
|
|
6022
|
+
var S = g.name, _ = g.options, m = _ === void 0 ? {} : _, D = g.effect;
|
|
6023
6023
|
if (typeof D == "function") {
|
|
6024
6024
|
var I = 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(g) {
|
|
6037
|
+
return g();
|
|
6038
6038
|
}), f = [];
|
|
6039
6039
|
}
|
|
6040
6040
|
return h;
|
|
@@ -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, h = 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, h = d === void 0 ? 0 : d, w = i.y, b = w === void 0 ? 0 : w, g = typeof u == "function" ? u({
|
|
6095
6095
|
x: h,
|
|
6096
6096
|
y: b
|
|
6097
6097
|
}) : {
|
|
6098
6098
|
x: h,
|
|
6099
6099
|
y: b
|
|
6100
6100
|
};
|
|
6101
|
-
h =
|
|
6102
|
-
var S = i.hasOwnProperty("x"),
|
|
6101
|
+
h = g.x, b = g.y;
|
|
6102
|
+
var S = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), m = Ge, D = Re, I = window;
|
|
6103
6103
|
if (c) {
|
|
6104
6104
|
var L = tn(a), U = "clientHeight", Z = "clientWidth";
|
|
6105
6105
|
if (L === Se(a) && (L = gt(a), tt(L).position !== "static" && r === "absolute" && (U = "scrollHeight", Z = "scrollWidth")), L = L, s === Re || (s === Ge || s === vt) && o === da) {
|
|
@@ -6130,9 +6130,9 @@ function $s(t) {
|
|
|
6130
6130
|
};
|
|
6131
6131
|
if (h = N.x, b = N.y, l) {
|
|
6132
6132
|
var W;
|
|
6133
|
-
return Object.assign({}, K, (W = {}, W[D] =
|
|
6133
|
+
return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] = S ? "0" : "", W.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", W));
|
|
6134
6134
|
}
|
|
6135
|
-
return Object.assign({}, K, (e = {}, e[D] =
|
|
6135
|
+
return Object.assign({}, K, (e = {}, e[D] = _ ? b + "px" : "", e[m] = S ? h + "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, h = 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, h = d === void 0 ? !0 : d, w = a.tetherOffset, b = w === void 0 ? 0 : w, g = Un(e, {
|
|
6223
6223
|
boundary: l,
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: f,
|
|
6226
6226
|
altBoundary: u
|
|
6227
|
-
}), S = ct(e.placement),
|
|
6227
|
+
}), S = ct(e.placement), _ = zt(e.placement), m = !_, D = ri(S), I = Q7(D), L = e.modifiersData.popperOffsets, U = e.rects.reference, Z = e.rects.popper, Y = typeof b == "function" ? b(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
6229
|
})) : b, E = typeof Y == "number" ? {
|
|
6230
6230
|
mainAxis: Y,
|
|
@@ -6238,14 +6238,14 @@ function ep(t) {
|
|
|
6238
6238
|
};
|
|
6239
6239
|
if (L) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", k = L[D], F = k +
|
|
6241
|
+
var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", k = L[D], F = k + g[oe], V = k - g[ne], se = h ? -Z[O] / 2 : 0, y = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, ie = h && le ? si(le) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
6244
|
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], G = q[ne], ve = Ia(0, U[O], ie[O]), we = m ? U[O] / 2 - se - ve - H - E.mainAxis : y - ve - H - E.mainAxis, Kt = m ? -U[O] / 2 + se + ve + G + E.mainAxis : R + ve + G + E.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (W = K == null ? void 0 : K[D]) != null ? W : 0, nn = k + we - _a - nt, st = k + Kt - _a, ya = Ia(h ? Na(F, nn) : F, k, h ? kt(V, st) : V);
|
|
6245
6245
|
L[D] = ya, N[D] = ya - k;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
6248
|
-
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be +
|
|
6248
|
+
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + g[Ne], ba = Be - g[Me], Te = [Re, Ge].indexOf(S) !== -1, Qt = (it = K == null ? void 0 : K[I]) != null ? it : 0, ot = Te ? Xt : Be - U[qe] - Z[qe] - Qt + E.altAxis, _t = Te ? Be + U[qe] + Z[qe] - Qt - E.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
|
|
6249
6249
|
L[I] = wa, N[I] = wa - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = N;
|
|
@@ -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, h = a.flipVariations, w = h === void 0 ? !0 : h, 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, h = a.flipVariations, w = h === void 0 ? !0 : h, b = a.allowedAutoPlacements, g = e.options.placement, S = ct(g), _ = S === g, m = l || (_ || !w ? [La(g)] : ip(g)), D = [g].concat(m).reduce(function(ie, q) {
|
|
6310
6310
|
return ie.concat(ct(q) === Fn ? sp(e, {
|
|
6311
6311
|
placement: q,
|
|
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), h.value && De(() => {
|
|
6368
6368
|
S();
|
|
6369
6369
|
}));
|
|
6370
|
-
},
|
|
6370
|
+
}, g = () => {
|
|
6371
6371
|
u.value && (u.value = !1, e.emit("close", r));
|
|
6372
6372
|
}, S = () => {
|
|
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
|
+
}, _ = (m) => {
|
|
6389
6389
|
for (; m && m !== document.body; ) {
|
|
6390
6390
|
if (getComputedStyle(m).position === "fixed")
|
|
6391
6391
|
return !0;
|
|
@@ -6395,7 +6395,7 @@ function lp(t, e, a) {
|
|
|
6395
6395
|
};
|
|
6396
6396
|
return xt(() => {
|
|
6397
6397
|
h.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: g,
|
|
6435
6435
|
placement: w,
|
|
6436
6436
|
updatePopper: S
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function up(t, e, a) {
|
|
6440
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), b = A(() => n.value || s.value ? -1 : 0),
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), b = A(() => n.value || s.value ? -1 : 0), g = () => {
|
|
6441
6441
|
n.value && i.value.blur(), f.value.blur();
|
|
6442
6442
|
}, S = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
6444
|
-
},
|
|
6444
|
+
}, _ = (Z = !0) => {
|
|
6445
6445
|
s.value || (h.value = !0, Z && r());
|
|
6446
6446
|
}, m = () => {
|
|
6447
6447
|
h.value = !1, setTimeout(() => {
|
|
@@ -6452,23 +6452,23 @@ function up(t, e, a) {
|
|
|
6452
6452
|
tabindex: b,
|
|
6453
6453
|
isActive: h,
|
|
6454
6454
|
mouseClicked: w,
|
|
6455
|
-
blur:
|
|
6455
|
+
blur: g,
|
|
6456
6456
|
focus: S,
|
|
6457
|
-
activate:
|
|
6457
|
+
activate: _,
|
|
6458
6458
|
deactivate: m,
|
|
6459
6459
|
handleFocusIn: (Z) => {
|
|
6460
|
-
Z.target.closest("[data-tags]") && Z.target.nodeName !== "INPUT" || Z.target.closest("[data-clear]") ||
|
|
6460
|
+
Z.target.closest("[data-tags]") && Z.target.nodeName !== "INPUT" || Z.target.closest("[data-clear]") || _(w.value);
|
|
6461
6461
|
},
|
|
6462
6462
|
handleFocusOut: () => {
|
|
6463
6463
|
m();
|
|
6464
6464
|
},
|
|
6465
6465
|
handleCaretClick: () => {
|
|
6466
|
-
m(),
|
|
6466
|
+
m(), g();
|
|
6467
6467
|
},
|
|
6468
6468
|
handleMousedown: (Z) => {
|
|
6469
6469
|
w.value = !0, u.value && (Z.target.isEqualNode(f.value) || Z.target.isEqualNode(d.value)) ? setTimeout(() => {
|
|
6470
6470
|
m();
|
|
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: h
|
|
6490
|
-
} = Ae(t), w = Mt().proxy, b = a.iv,
|
|
6491
|
-
n.value === "tags" && !r.value && oe.value && i.value && !c.value && m(W.value[W.value.map((V) => V[l.value]).indexOf(
|
|
6490
|
+
} = Ae(t), w = Mt().proxy, b = a.iv, g = a.update, S = a.deselect, _ = a.search, m = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, Y = a.tags, E = a.isOpen, K = a.open, N = a.blur, W = a.fo, oe = A(() => f.value || d.value || !1), ne = A(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
|
|
6491
|
+
n.value === "tags" && !r.value && oe.value && i.value && !c.value && m(W.value[W.value.map((V) => V[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
6494
|
handleKeydown: (V) => {
|
|
@@ -6496,7 +6496,7 @@ function cp(t, e, a) {
|
|
|
6496
6496
|
let se, y;
|
|
6497
6497
|
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value), y = se.findIndex((R) => R === document.activeElement)), V.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 R = b.value.filter((le) => !le.disabled && le.remove !== !1);
|
|
6502
6502
|
R.length && S(R[R.length - 1]);
|
|
@@ -6505,7 +6505,7 @@ function cp(t, e, a) {
|
|
|
6505
6505
|
if (V.preventDefault(), V.keyCode === 229)
|
|
6506
6506
|
return;
|
|
6507
6507
|
if (y !== -1 && y !== void 0) {
|
|
6508
|
-
|
|
6508
|
+
g([...b.value].filter((le, ie) => ie !== y)), y === se.length - 1 && (se.length - 1 ? se[se.length - 2].focus() : i.value ? Y.value.querySelector("input").focus() : Z.value.focus());
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
6511
|
if (ne.value.indexOf("enter") === -1 && oe.value)
|
|
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
|
|
|
6567
6567
|
disabled: s,
|
|
6568
6568
|
showOptions: o,
|
|
6569
6569
|
breakTags: i
|
|
6570
|
-
} = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, b = a.placement,
|
|
6570
|
+
} = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, b = a.placement, g = A(() => ({
|
|
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
|
})), S = A(() => !!(r.value && o.value && (!h.value || h.value && w.value.length)));
|
|
6626
6626
|
return {
|
|
6627
6627
|
classList: A(() => {
|
|
6628
|
-
const m =
|
|
6628
|
+
const m = g.value;
|
|
6629
6629
|
return {
|
|
6630
6630
|
container: [m.container].concat(s.value ? m.containerDisabled : []).concat(S.value && b.value === "top" ? m.containerOpenTop : []).concat(S.value && b.value !== "top" ? m.containerOpen : []).concat(f.value ? m.containerActive : []),
|
|
6631
6631
|
wrapper: m.wrapper,
|
|
@@ -6676,11 +6676,11 @@ function pp(t, e, a) {
|
|
|
6676
6676
|
limit: n,
|
|
6677
6677
|
infinite: s
|
|
6678
6678
|
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (b) => {
|
|
6679
|
-
const { isIntersecting:
|
|
6680
|
-
if (
|
|
6681
|
-
const
|
|
6679
|
+
const { isIntersecting: g, target: S } = b[0];
|
|
6680
|
+
if (g) {
|
|
6681
|
+
const _ = S.offsetParent, m = _.scrollTop;
|
|
6682
6682
|
i.value += n.value == -1 ? 10 : n.value, De(() => {
|
|
6683
|
-
|
|
6683
|
+
_.scrollTop = m;
|
|
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
|
-
} = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, b = ee(null),
|
|
6712
|
+
} = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, b = ee(null), g = A(() => {
|
|
6713
6713
|
let N = [];
|
|
6714
6714
|
return s && s.value && N.push(s.value), N.push("assist"), N.join("-");
|
|
6715
6715
|
}), S = A(() => {
|
|
6716
6716
|
let N = [];
|
|
6717
6717
|
return s && s.value && N.push(s.value), N.push("multiselect-options"), N.join("-");
|
|
6718
|
-
}),
|
|
6718
|
+
}), _ = A(() => {
|
|
6719
6719
|
let N = [];
|
|
6720
6720
|
if (s && s.value && N.push(s.value), f.value)
|
|
6721
6721
|
return N.push(f.value.group ? "multiselect-group" : "multiselect-option"), N.push(f.value.group ? f.value.index : f.value[o.value]), N.join("-");
|
|
@@ -6724,7 +6724,7 @@ function fp(t, e, a) {
|
|
|
6724
6724
|
return r.value === "single" && h.value && (N += d.value[i.value]), r.value === "multiple" && h.value && (N += w.value), r.value === "tags" && h.value && (N += d.value.map((W) => W[i.value]).join(", ")), N;
|
|
6725
6725
|
}), L = A(() => {
|
|
6726
6726
|
let N = { ...c.value };
|
|
6727
|
-
return u.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${
|
|
6727
|
+
return u.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${g.value} ${N["aria-labelledby"]}` : g.value, I.value && N["aria-label"] && (N["aria-label"] = `${I.value}, ${N["aria-label"]}`)), N;
|
|
6728
6728
|
}), U = (N) => {
|
|
6729
6729
|
let W = [];
|
|
6730
6730
|
return s && s.value && W.push(s.value), W.push("multiselect-option"), W.push(N[o.value]), W.join("-");
|
|
@@ -6746,11 +6746,11 @@ function fp(t, e, a) {
|
|
|
6746
6746
|
}), {
|
|
6747
6747
|
arias: L,
|
|
6748
6748
|
ariaLabel: I,
|
|
6749
|
-
ariaAssist:
|
|
6749
|
+
ariaAssist: g,
|
|
6750
6750
|
ariaControls: S,
|
|
6751
6751
|
ariaPlaceholder: m,
|
|
6752
6752
|
ariaMultiselectable: D,
|
|
6753
|
-
ariaActiveDescendant:
|
|
6753
|
+
ariaActiveDescendant: _,
|
|
6754
6754
|
ariaOptionId: U,
|
|
6755
6755
|
ariaOptionLabel: Y,
|
|
6756
6756
|
ariaGroupId: Z,
|
|
@@ -7795,7 +7795,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7795
7795
|
readonly: !f.isEditable,
|
|
7796
7796
|
class: X(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": h.isDone }]),
|
|
7797
7797
|
type: "text",
|
|
7798
|
-
onChange: (
|
|
7798
|
+
onChange: (g) => i(g, h.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: (g) => c(g, h.id)
|
|
7815
7815
|
}, {
|
|
7816
|
-
tag: z(({ option:
|
|
7816
|
+
tag: z(({ option: g, handleTagRemove: S }) => [
|
|
7817
7817
|
M(Je, {
|
|
7818
|
-
"user-name":
|
|
7819
|
-
"avatar-url":
|
|
7818
|
+
"user-name": g.label,
|
|
7819
|
+
"avatar-url": g.avatar,
|
|
7820
7820
|
"is-closable": !0,
|
|
7821
|
-
onClose: (
|
|
7821
|
+
onClose: (_) => S(g, _)
|
|
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 = A(() => {
|
|
7986
|
-
const b = a.editedAt && la(a.editedAt),
|
|
7987
|
-
return
|
|
7986
|
+
const b = a.editedAt && la(a.editedAt), g = la(a.createdAt), S = /* @__PURE__ */ new Date(), _ = b ?? g;
|
|
7987
|
+
return _ && a3(_, S);
|
|
7988
7988
|
}), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((b) => {
|
|
7989
7989
|
e("edit", b);
|
|
7990
7990
|
}), h = () => {
|
|
@@ -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 g = (b = s.value) == null ? void 0 : b.getClientRects().length;
|
|
7998
|
+
w.value = g || 2;
|
|
7999
7999
|
}
|
|
8000
8000
|
});
|
|
8001
|
-
}), (b,
|
|
8001
|
+
}), (b, g) => {
|
|
8002
8002
|
var S;
|
|
8003
8003
|
return p(), C("li", nf, [
|
|
8004
8004
|
n.value ? (p(), P(Je, {
|
|
@@ -8309,7 +8309,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8309
8309
|
blocking: y
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
|
-
}),
|
|
8312
|
+
}), g = A(() => d.value.map((y) => {
|
|
8313
8313
|
var R;
|
|
8314
8314
|
return {
|
|
8315
8315
|
...y,
|
|
@@ -8319,7 +8319,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8319
8319
|
};
|
|
8320
8320
|
})), S = (y) => {
|
|
8321
8321
|
e("addSubtask", y);
|
|
8322
|
-
},
|
|
8322
|
+
}, _ = (y) => {
|
|
8323
8323
|
e("updateSubtask", y);
|
|
8324
8324
|
}, m = (y) => {
|
|
8325
8325
|
e("deleteSubtask", y);
|
|
@@ -8539,7 +8539,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8539
8539
|
"is-editable": n.value,
|
|
8540
8540
|
"is-template": y.isTemplate,
|
|
8541
8541
|
onAdd: S,
|
|
8542
|
-
onUpdate:
|
|
8542
|
+
onUpdate: _,
|
|
8543
8543
|
onDelete: m
|
|
8544
8544
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8545
8545
|
])
|
|
@@ -8605,7 +8605,6 @@ const wn = /* @__PURE__ */ x({
|
|
|
8605
8605
|
options: L.value,
|
|
8606
8606
|
"close-on-select": !0,
|
|
8607
8607
|
searchable: !0,
|
|
8608
|
-
max: 1,
|
|
8609
8608
|
placeholder: y.$t("activity.filters.assignee.placeholder"),
|
|
8610
8609
|
mode: "tags",
|
|
8611
8610
|
disabled: !n.value,
|
|
@@ -8729,7 +8728,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8729
8728
|
mode: "tags",
|
|
8730
8729
|
"close-on-select": !1,
|
|
8731
8730
|
searchable: !0,
|
|
8732
|
-
options:
|
|
8731
|
+
options: g.value,
|
|
8733
8732
|
disabled: !n.value,
|
|
8734
8733
|
caret: n.value
|
|
8735
8734
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
@@ -8790,12 +8789,12 @@ const mv = /* @__PURE__ */ x({
|
|
|
8790
8789
|
});
|
|
8791
8790
|
}
|
|
8792
8791
|
}), r = A(() => {
|
|
8793
|
-
var
|
|
8794
|
-
return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (
|
|
8792
|
+
var _;
|
|
8793
|
+
return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (_ = {
|
|
8795
8794
|
[Ce.ACTIVITIES]: a.templateActivities,
|
|
8796
8795
|
[Ce.MILESTONES]: a.templateMilestones,
|
|
8797
8796
|
[Ce.PHASES]: a.templatePhases
|
|
8798
|
-
}[n.value]) == null ? void 0 :
|
|
8797
|
+
}[n.value]) == null ? void 0 : _.map((m) => ({
|
|
8799
8798
|
value: m.id,
|
|
8800
8799
|
label: m.name
|
|
8801
8800
|
}));
|
|
@@ -8827,31 +8826,31 @@ const mv = /* @__PURE__ */ x({
|
|
|
8827
8826
|
set(S) {
|
|
8828
8827
|
e("update:rule", { ...a.rule, durationUnit: S });
|
|
8829
8828
|
}
|
|
8830
|
-
}),
|
|
8831
|
-
return (S,
|
|
8829
|
+
}), g = A(() => Object.values(j2));
|
|
8830
|
+
return (S, _) => (p(), P(ht(S.tagName), { class: "ao-rule-line" }, {
|
|
8832
8831
|
default: z(() => [
|
|
8833
8832
|
M(J(lt), {
|
|
8834
8833
|
modelValue: s.value,
|
|
8835
|
-
"onUpdate:modelValue":
|
|
8834
|
+
"onUpdate:modelValue": _[0] || (_[0] = (m) => s.value = m),
|
|
8836
8835
|
options: o.value
|
|
8837
8836
|
}, null, 8, ["modelValue", "options"]),
|
|
8838
8837
|
M(J(lt), {
|
|
8839
8838
|
modelValue: i.value,
|
|
8840
|
-
"onUpdate:modelValue":
|
|
8839
|
+
"onUpdate:modelValue": _[1] || (_[1] = (m) => i.value = m),
|
|
8841
8840
|
options: r.value
|
|
8842
8841
|
}, null, 8, ["modelValue", "options"]),
|
|
8843
8842
|
M(J(lt), {
|
|
8844
8843
|
modelValue: d.value,
|
|
8845
|
-
"onUpdate:modelValue":
|
|
8844
|
+
"onUpdate:modelValue": _[2] || (_[2] = (m) => d.value = m),
|
|
8846
8845
|
options: h.value
|
|
8847
8846
|
}, null, 8, ["modelValue", "options"]),
|
|
8848
8847
|
M(J(lt), {
|
|
8849
8848
|
modelValue: c.value,
|
|
8850
|
-
"onUpdate:modelValue":
|
|
8849
|
+
"onUpdate:modelValue": _[3] || (_[3] = (m) => c.value = m),
|
|
8851
8850
|
options: u.value
|
|
8852
8851
|
}, null, 8, ["modelValue", "options"]),
|
|
8853
8852
|
Ke(v("input", {
|
|
8854
|
-
"onUpdate:modelValue":
|
|
8853
|
+
"onUpdate:modelValue": _[4] || (_[4] = (m) => w.value = m),
|
|
8855
8854
|
type: "number",
|
|
8856
8855
|
min: "0"
|
|
8857
8856
|
}, null, 512), [
|
|
@@ -8864,14 +8863,14 @@ const mv = /* @__PURE__ */ x({
|
|
|
8864
8863
|
]),
|
|
8865
8864
|
M(J(lt), {
|
|
8866
8865
|
modelValue: b.value,
|
|
8867
|
-
"onUpdate:modelValue":
|
|
8868
|
-
options:
|
|
8866
|
+
"onUpdate:modelValue": _[5] || (_[5] = (m) => b.value = m),
|
|
8867
|
+
options: g.value
|
|
8869
8868
|
}, null, 8, ["modelValue", "options"]),
|
|
8870
8869
|
M(ue, {
|
|
8871
8870
|
class: "ao-rule-line__remove",
|
|
8872
8871
|
"icon-name": "CloseRounded",
|
|
8873
8872
|
variant: "ghost",
|
|
8874
|
-
onClick:
|
|
8873
|
+
onClick: _[6] || (_[6] = (m) => S.$emit("close"))
|
|
8875
8874
|
})
|
|
8876
8875
|
]),
|
|
8877
8876
|
_: 1
|
|
@@ -9055,7 +9054,7 @@ const yv = {
|
|
|
9055
9054
|
itemType: Ce.PHASES,
|
|
9056
9055
|
data: { name: F }
|
|
9057
9056
|
});
|
|
9058
|
-
},
|
|
9057
|
+
}, g = (k) => {
|
|
9059
9058
|
e("updateItem", k);
|
|
9060
9059
|
}, S = (k) => {
|
|
9061
9060
|
if (!i.value)
|
|
@@ -9075,7 +9074,7 @@ const yv = {
|
|
|
9075
9074
|
phaseId: k.phaseId
|
|
9076
9075
|
}
|
|
9077
9076
|
});
|
|
9078
|
-
},
|
|
9077
|
+
}, _ = (k) => {
|
|
9079
9078
|
e("removeItem", {
|
|
9080
9079
|
type: Ce.MILESTONES,
|
|
9081
9080
|
templateId: a.templateId,
|
|
@@ -9250,8 +9249,8 @@ const yv = {
|
|
|
9250
9249
|
"milestone-id": (V = r.value) == null ? void 0 : V.id,
|
|
9251
9250
|
onAddMilestone: S,
|
|
9252
9251
|
onUpdateMilestone: m,
|
|
9253
|
-
onUpdatePhase:
|
|
9254
|
-
onRemoveMilestone:
|
|
9252
|
+
onUpdatePhase: g,
|
|
9253
|
+
onRemoveMilestone: _
|
|
9255
9254
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
9256
9255
|
]),
|
|
9257
9256
|
v("li", Av, [
|
|
@@ -9717,7 +9716,7 @@ const Jv = {
|
|
|
9717
9716
|
group: "kanban"
|
|
9718
9717
|
}, d.$attrs, { onChange: f }), {
|
|
9719
9718
|
item: z(({ element: b }) => {
|
|
9720
|
-
var
|
|
9719
|
+
var g;
|
|
9721
9720
|
return [
|
|
9722
9721
|
M(Qv, {
|
|
9723
9722
|
id: b.id,
|
|
@@ -9728,7 +9727,7 @@ const Jv = {
|
|
|
9728
9727
|
"is-editable": !d.readonly && d.isEditable,
|
|
9729
9728
|
"is-draggable": !d.readonly && d.isEditable,
|
|
9730
9729
|
"closed-status": d.closedStatus,
|
|
9731
|
-
"is-selected": b.id === ((
|
|
9730
|
+
"is-selected": b.id === ((g = d.$route.params) == null ? void 0 : g.milestoneId),
|
|
9732
9731
|
assignee: b.assignee,
|
|
9733
9732
|
important: b.important,
|
|
9734
9733
|
readonly: d.readonly,
|
|
@@ -9985,11 +9984,11 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
9985
9984
|
e("unarchiveActivity", E);
|
|
9986
9985
|
}, b = (E) => {
|
|
9987
9986
|
e("addSubtask", E);
|
|
9988
|
-
},
|
|
9987
|
+
}, g = (E) => {
|
|
9989
9988
|
e("updateSubtask", E);
|
|
9990
9989
|
}, S = (E) => {
|
|
9991
9990
|
e("deleteSubtask", E);
|
|
9992
|
-
},
|
|
9991
|
+
}, _ = A(
|
|
9993
9992
|
() => s.value.flatMap((E) => E.activities)
|
|
9994
9993
|
), m = (E) => {
|
|
9995
9994
|
e("addFiles", E);
|
|
@@ -10076,7 +10075,7 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
10076
10075
|
(p(), P(Nt, { to: "body" }, [
|
|
10077
10076
|
M(N, {
|
|
10078
10077
|
name: "modal",
|
|
10079
|
-
activities:
|
|
10078
|
+
activities: _.value,
|
|
10080
10079
|
"is-task-checkable": E.isTaskCheckable,
|
|
10081
10080
|
statuses: E.statuses,
|
|
10082
10081
|
"activity-types": E.activityTypes,
|
|
@@ -10088,7 +10087,7 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
10088
10087
|
"attachment-enabled": E.attachmentEnabled,
|
|
10089
10088
|
"onUpdate:activity": d,
|
|
10090
10089
|
onAddSubtask: b,
|
|
10091
|
-
onUpdateSubtask:
|
|
10090
|
+
onUpdateSubtask: g,
|
|
10092
10091
|
onDeleteSubtask: S,
|
|
10093
10092
|
onAddFiles: m,
|
|
10094
10093
|
onRemoveFile: D,
|
|
@@ -10182,7 +10181,11 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10182
10181
|
id: a.id,
|
|
10183
10182
|
name: h
|
|
10184
10183
|
});
|
|
10185
|
-
}, i = A(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), r = A(() =>
|
|
10184
|
+
}, i = A(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), r = A(() => {
|
|
10185
|
+
var g;
|
|
10186
|
+
const h = a.assignee ? [a.assignee] : [], w = ((g = a.tasks) == null ? void 0 : g.map((S) => S.assignee).filter((S) => S !== void 0)) || [];
|
|
10187
|
+
return [.../* @__PURE__ */ new Set([...h, ...w])];
|
|
10188
|
+
}), l = A(() => Tn(a.deadline)), c = (h) => {
|
|
10186
10189
|
e("removeAssignee", h);
|
|
10187
10190
|
}, u = A(() => {
|
|
10188
10191
|
var h;
|
|
@@ -11294,95 +11297,95 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11294
11297
|
emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity"],
|
|
11295
11298
|
setup(t, { emit: e }) {
|
|
11296
11299
|
const a = t, { t: n } = Tt(), s = A(() => {
|
|
11297
|
-
var
|
|
11298
|
-
return (
|
|
11300
|
+
var _;
|
|
11301
|
+
return (_ = a.phases) == null ? void 0 : _.find((m) => m.id === a.phaseId);
|
|
11299
11302
|
}), o = A(
|
|
11300
11303
|
() => {
|
|
11301
|
-
var
|
|
11302
|
-
return (
|
|
11304
|
+
var _;
|
|
11305
|
+
return (_ = a.phases) == null ? void 0 : _.flatMap((m) => m.milestones);
|
|
11303
11306
|
}
|
|
11304
11307
|
), i = A(() => {
|
|
11305
|
-
var
|
|
11306
|
-
return (
|
|
11308
|
+
var _;
|
|
11309
|
+
return (_ = o.value) == null ? void 0 : _.find((m) => m.id === a.milestoneId);
|
|
11307
11310
|
}), r = A(() => {
|
|
11308
|
-
var
|
|
11309
|
-
return (
|
|
11311
|
+
var _;
|
|
11312
|
+
return (_ = i.value) == null ? void 0 : _.activities;
|
|
11310
11313
|
});
|
|
11311
|
-
de(r, (
|
|
11312
|
-
Xe(
|
|
11314
|
+
de(r, (_, m) => {
|
|
11315
|
+
Xe(_, m);
|
|
11313
11316
|
});
|
|
11314
|
-
const l = (
|
|
11315
|
-
e("close",
|
|
11317
|
+
const l = (_) => {
|
|
11318
|
+
e("close", _);
|
|
11316
11319
|
}, c = () => {
|
|
11317
|
-
const { name:
|
|
11320
|
+
const { name: _, rank: m } = Bt(
|
|
11318
11321
|
r.value ?? [],
|
|
11319
11322
|
"activity",
|
|
11320
11323
|
n
|
|
11321
11324
|
);
|
|
11322
11325
|
e("addActivity", {
|
|
11323
11326
|
milestoneId: a.milestoneId,
|
|
11324
|
-
name:
|
|
11327
|
+
name: _,
|
|
11325
11328
|
rank: m,
|
|
11326
11329
|
projectId: a.projectId
|
|
11327
11330
|
});
|
|
11328
|
-
}, u = (
|
|
11329
|
-
e("updateActivity",
|
|
11330
|
-
}, f = (
|
|
11331
|
-
r.value && "moved" in
|
|
11332
|
-
id:
|
|
11333
|
-
rank: jt(r.value,
|
|
11331
|
+
}, u = (_) => {
|
|
11332
|
+
e("updateActivity", _);
|
|
11333
|
+
}, f = (_) => {
|
|
11334
|
+
r.value && "moved" in _ && e("updateActivity", {
|
|
11335
|
+
id: _.moved.element.id,
|
|
11336
|
+
rank: jt(r.value, _.moved.newIndex)
|
|
11334
11337
|
});
|
|
11335
11338
|
}, d = A({
|
|
11336
11339
|
get: () => {
|
|
11337
|
-
var
|
|
11338
|
-
return (
|
|
11340
|
+
var _;
|
|
11341
|
+
return (_ = i.value) == null ? void 0 : _.color;
|
|
11339
11342
|
},
|
|
11340
|
-
set: (
|
|
11343
|
+
set: (_) => {
|
|
11341
11344
|
i.value && e("updateMilestone", {
|
|
11342
11345
|
id: i.value.id,
|
|
11343
|
-
color:
|
|
11346
|
+
color: _
|
|
11344
11347
|
});
|
|
11345
11348
|
}
|
|
11346
11349
|
}), h = A({
|
|
11347
11350
|
get: () => {
|
|
11348
|
-
var
|
|
11349
|
-
return ((
|
|
11351
|
+
var _;
|
|
11352
|
+
return ((_ = i == null ? void 0 : i.value) == null ? void 0 : _.deadline) ?? "";
|
|
11350
11353
|
},
|
|
11351
|
-
set: (
|
|
11354
|
+
set: (_) => {
|
|
11352
11355
|
i.value && e("updateMilestone", {
|
|
11353
11356
|
id: i.value.id,
|
|
11354
|
-
deadline:
|
|
11357
|
+
deadline: _ != null && _.length ? _ : null
|
|
11355
11358
|
});
|
|
11356
11359
|
}
|
|
11357
|
-
}), w = (
|
|
11358
|
-
var
|
|
11359
|
-
return ((
|
|
11360
|
+
}), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1, b = A(() => {
|
|
11361
|
+
var _;
|
|
11362
|
+
return ((_ = a.users) == null ? void 0 : _.map((m) => ({
|
|
11360
11363
|
label: `${m.firstName} ${m.lastName}`,
|
|
11361
11364
|
value: m.id,
|
|
11362
11365
|
avatar: m.avatarUrl
|
|
11363
11366
|
}))) || [];
|
|
11364
|
-
}),
|
|
11367
|
+
}), g = A({
|
|
11365
11368
|
get() {
|
|
11366
|
-
var
|
|
11367
|
-
return (m = (
|
|
11369
|
+
var _, m;
|
|
11370
|
+
return (m = (_ = i.value) == null ? void 0 : _.assignee) != null && m.id ? [i.value.assignee.id] : [];
|
|
11368
11371
|
},
|
|
11369
|
-
set(
|
|
11372
|
+
set(_) {
|
|
11370
11373
|
e("updateMilestone", {
|
|
11371
11374
|
id: a.milestoneId,
|
|
11372
|
-
assigneeId:
|
|
11375
|
+
assigneeId: _[0] ?? null
|
|
11373
11376
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
11374
11377
|
});
|
|
11375
11378
|
}
|
|
11376
11379
|
}), S = A({
|
|
11377
11380
|
get() {
|
|
11378
|
-
var
|
|
11379
|
-
return ((
|
|
11381
|
+
var _;
|
|
11382
|
+
return ((_ = i.value) == null ? void 0 : _.important) ?? !1;
|
|
11380
11383
|
},
|
|
11381
|
-
set(
|
|
11382
|
-
e("updateMilestone", { id: a.milestoneId, important:
|
|
11384
|
+
set(_) {
|
|
11385
|
+
e("updateMilestone", { id: a.milestoneId, important: _ });
|
|
11383
11386
|
}
|
|
11384
11387
|
});
|
|
11385
|
-
return (
|
|
11388
|
+
return (_, m) => {
|
|
11386
11389
|
var D;
|
|
11387
11390
|
return p(), C("div", m4, [
|
|
11388
11391
|
v("header", C4, [
|
|
@@ -11398,17 +11401,17 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11398
11401
|
v("div", _4, [
|
|
11399
11402
|
v("div", y4, [
|
|
11400
11403
|
M(ye, {
|
|
11401
|
-
title: ((D = i.value) == null ? void 0 : D.name) ||
|
|
11404
|
+
title: ((D = i.value) == null ? void 0 : D.name) || _.milestoneId,
|
|
11402
11405
|
level: 5
|
|
11403
11406
|
}, null, 8, ["title"]),
|
|
11404
11407
|
M(wn, {
|
|
11405
11408
|
modelValue: S.value,
|
|
11406
11409
|
"onUpdate:modelValue": m[0] || (m[0] = (I) => S.value = I),
|
|
11407
11410
|
modelModifiers: { lazy: !0 },
|
|
11408
|
-
disabled: !
|
|
11411
|
+
disabled: !_.isEditable,
|
|
11409
11412
|
class: "ao-milestone__important",
|
|
11410
11413
|
color: "danger",
|
|
11411
|
-
label:
|
|
11414
|
+
label: _.$t("activity.important.label"),
|
|
11412
11415
|
"icon-name": "FlagRounded",
|
|
11413
11416
|
variant: "ghost",
|
|
11414
11417
|
size: "sm"
|
|
@@ -11435,17 +11438,17 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11435
11438
|
v("div", k4, [
|
|
11436
11439
|
v("label", S4, [
|
|
11437
11440
|
M($e, {
|
|
11438
|
-
modelValue:
|
|
11439
|
-
"onUpdate:modelValue": m[2] || (m[2] = (I) =>
|
|
11441
|
+
modelValue: g.value,
|
|
11442
|
+
"onUpdate:modelValue": m[2] || (m[2] = (I) => g.value = I),
|
|
11440
11443
|
options: b.value,
|
|
11441
11444
|
"close-on-select": !0,
|
|
11442
11445
|
searchable: !0,
|
|
11443
11446
|
max: 1,
|
|
11444
11447
|
class: "ao-milestone__field ao-milestone__multiselect",
|
|
11445
|
-
placeholder:
|
|
11448
|
+
placeholder: _.$t("activity.filters.assignee.placeholder"),
|
|
11446
11449
|
mode: "tags",
|
|
11447
|
-
disabled: !
|
|
11448
|
-
caret:
|
|
11450
|
+
disabled: !_.isEditable,
|
|
11451
|
+
caret: _.isEditable
|
|
11449
11452
|
}, {
|
|
11450
11453
|
tag: z(({
|
|
11451
11454
|
option: I,
|
|
@@ -11472,10 +11475,10 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11472
11475
|
M(J(mt), He({
|
|
11473
11476
|
class: "ao-project-milestone__activities",
|
|
11474
11477
|
list: r.value,
|
|
11475
|
-
disabled: !
|
|
11478
|
+
disabled: !_.isEditable,
|
|
11476
11479
|
"item-key": "id",
|
|
11477
11480
|
group: "kanban"
|
|
11478
|
-
},
|
|
11481
|
+
}, _.$attrs, { onChange: f }), {
|
|
11479
11482
|
item: z(({ element: I }) => {
|
|
11480
11483
|
var L, U, Z, Y, E;
|
|
11481
11484
|
return [
|
|
@@ -11487,26 +11490,26 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11487
11490
|
"milestone-color": (Z = i.value) == null ? void 0 : Z.color,
|
|
11488
11491
|
deadline: I.deadline,
|
|
11489
11492
|
important: I.important,
|
|
11490
|
-
users:
|
|
11493
|
+
users: _.users,
|
|
11491
11494
|
assignee: I.assignee,
|
|
11492
11495
|
slug: I.slug,
|
|
11493
11496
|
comments: (Y = I.comments) == null ? void 0 : Y.length,
|
|
11494
11497
|
attachments: (E = I.attachments) == null ? void 0 : E.length,
|
|
11495
11498
|
tasks: I.tasks,
|
|
11496
|
-
"is-editable":
|
|
11499
|
+
"is-editable": _.isEditable,
|
|
11497
11500
|
"is-private": I.private,
|
|
11498
11501
|
"is-closed": w(I),
|
|
11499
|
-
onClick: (K) =>
|
|
11502
|
+
onClick: (K) => _.$router.push({
|
|
11500
11503
|
name: J(Fe).activity,
|
|
11501
|
-
params: { milestoneId:
|
|
11504
|
+
params: { milestoneId: _.milestoneId, activityId: I.id }
|
|
11502
11505
|
}),
|
|
11503
11506
|
onUpdateActivity: u,
|
|
11504
11507
|
onRemoveAssignee: () => u({ id: I.id, assigneeId: null })
|
|
11505
11508
|
}, Za({ _: 2 }, [
|
|
11506
|
-
|
|
11509
|
+
_.isEditable ? {
|
|
11507
11510
|
name: "secondary",
|
|
11508
11511
|
fn: z(() => [
|
|
11509
|
-
|
|
11512
|
+
_.isEditable && I.active ? (p(), P(ue, {
|
|
11510
11513
|
key: 0,
|
|
11511
11514
|
color: "primary",
|
|
11512
11515
|
variant: "ghost",
|
|
@@ -11514,10 +11517,10 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11514
11517
|
size: "sm",
|
|
11515
11518
|
"icon-position": "start",
|
|
11516
11519
|
corners: "round",
|
|
11517
|
-
label:
|
|
11518
|
-
onClick: fe(() =>
|
|
11520
|
+
label: _.$t("archive"),
|
|
11521
|
+
onClick: fe(() => _.$emit("archiveActivity", { id: I.id }), ["stop"])
|
|
11519
11522
|
}, null, 8, ["label", "onClick"])) : T("", !0),
|
|
11520
|
-
|
|
11523
|
+
_.isEditable && !I.active ? (p(), P(ue, {
|
|
11521
11524
|
key: 1,
|
|
11522
11525
|
color: "primary",
|
|
11523
11526
|
variant: "ghost",
|
|
@@ -11525,9 +11528,9 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11525
11528
|
size: "sm",
|
|
11526
11529
|
"icon-position": "start",
|
|
11527
11530
|
corners: "round",
|
|
11528
|
-
label:
|
|
11531
|
+
label: _.$t("feed.activity.unarchive"),
|
|
11529
11532
|
onClick: fe(
|
|
11530
|
-
() =>
|
|
11533
|
+
() => _.$emit("unarchiveActivity", { id: I.id }),
|
|
11531
11534
|
["stop"]
|
|
11532
11535
|
)
|
|
11533
11536
|
}, null, 8, ["label", "onClick"])) : T("", !0)
|
|
@@ -11539,10 +11542,10 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11539
11542
|
}),
|
|
11540
11543
|
_: 1
|
|
11541
11544
|
}, 16, ["list", "disabled"]),
|
|
11542
|
-
|
|
11545
|
+
_.isEditable ? (p(), C("div", M4, [
|
|
11543
11546
|
M(Ct, {
|
|
11544
11547
|
"icon-name": "Add",
|
|
11545
|
-
label:
|
|
11548
|
+
label: _.$t("project.activity.add"),
|
|
11546
11549
|
onClick: c
|
|
11547
11550
|
}, null, 8, ["label"])
|
|
11548
11551
|
])) : T("", !0)
|
|
@@ -11571,56 +11574,56 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11571
11574
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
11572
11575
|
setup(t, { emit: e }) {
|
|
11573
11576
|
const a = t, n = A(() => {
|
|
11574
|
-
var
|
|
11575
|
-
return (
|
|
11577
|
+
var g;
|
|
11578
|
+
return (g = a.phases) == null ? void 0 : g.find((S) => S.id === a.phaseId);
|
|
11576
11579
|
}), s = A(
|
|
11577
11580
|
() => {
|
|
11578
|
-
var
|
|
11579
|
-
return (
|
|
11581
|
+
var g;
|
|
11582
|
+
return (g = a.phases) == null ? void 0 : g.flatMap((S) => S.milestones);
|
|
11580
11583
|
}
|
|
11581
11584
|
), o = A(() => {
|
|
11582
|
-
var
|
|
11583
|
-
return (
|
|
11585
|
+
var g;
|
|
11586
|
+
return (g = s.value) == null ? void 0 : g.find((S) => S.id === a.milestoneId);
|
|
11584
11587
|
}), i = A(() => {
|
|
11585
|
-
var
|
|
11586
|
-
return (
|
|
11587
|
-
}), r = (
|
|
11588
|
-
e("update:activity",
|
|
11589
|
-
}, l = (
|
|
11590
|
-
e("addSubtask",
|
|
11591
|
-
}, c = (
|
|
11592
|
-
e("updateSubtask",
|
|
11593
|
-
}, u = (
|
|
11594
|
-
e("deleteSubtask",
|
|
11595
|
-
}, f = (
|
|
11596
|
-
e("addFiles",
|
|
11597
|
-
}, d = (
|
|
11598
|
-
e("removeFile",
|
|
11599
|
-
}, h = (
|
|
11600
|
-
e("addComment",
|
|
11601
|
-
}, w = (
|
|
11602
|
-
e("updateComment",
|
|
11603
|
-
}, b = (
|
|
11604
|
-
e("removeComment",
|
|
11588
|
+
var g;
|
|
11589
|
+
return (g = a.activities) == null ? void 0 : g.find((S) => S.id === a.activityId);
|
|
11590
|
+
}), r = (g) => {
|
|
11591
|
+
e("update:activity", g);
|
|
11592
|
+
}, l = (g) => {
|
|
11593
|
+
e("addSubtask", g);
|
|
11594
|
+
}, c = (g) => {
|
|
11595
|
+
e("updateSubtask", g);
|
|
11596
|
+
}, u = (g) => {
|
|
11597
|
+
e("deleteSubtask", g);
|
|
11598
|
+
}, f = (g) => {
|
|
11599
|
+
e("addFiles", g);
|
|
11600
|
+
}, d = (g) => {
|
|
11601
|
+
e("removeFile", g);
|
|
11602
|
+
}, h = (g) => {
|
|
11603
|
+
e("addComment", g);
|
|
11604
|
+
}, w = (g) => {
|
|
11605
|
+
e("updateComment", g);
|
|
11606
|
+
}, b = (g) => {
|
|
11607
|
+
e("removeComment", g);
|
|
11605
11608
|
};
|
|
11606
|
-
return (
|
|
11607
|
-
var
|
|
11609
|
+
return (g, S) => {
|
|
11610
|
+
var _, m;
|
|
11608
11611
|
return i.value ? (p(), P(Zn, {
|
|
11609
11612
|
key: 0,
|
|
11610
11613
|
activity: i.value,
|
|
11611
|
-
"activity-types":
|
|
11612
|
-
"milestone-id":
|
|
11613
|
-
"template-activities":
|
|
11614
|
+
"activity-types": g.activityTypes,
|
|
11615
|
+
"milestone-id": g.milestoneId,
|
|
11616
|
+
"template-activities": g.activities,
|
|
11614
11617
|
"is-template": !1,
|
|
11615
|
-
users:
|
|
11616
|
-
"user-id":
|
|
11617
|
-
"is-task-checkable":
|
|
11618
|
-
statuses:
|
|
11619
|
-
breadcrumbs: `${(
|
|
11620
|
-
"is-editable":
|
|
11621
|
-
"attachment-enabled":
|
|
11622
|
-
projects: [
|
|
11623
|
-
onClose:
|
|
11618
|
+
users: g.users,
|
|
11619
|
+
"user-id": g.userId,
|
|
11620
|
+
"is-task-checkable": g.isTaskCheckable,
|
|
11621
|
+
statuses: g.statuses,
|
|
11622
|
+
breadcrumbs: `${(_ = n.value) == null ? void 0 : _.name} / ${(m = o.value) == null ? void 0 : m.name}`,
|
|
11623
|
+
"is-editable": g.isEditable,
|
|
11624
|
+
"attachment-enabled": g.attachmentEnabled,
|
|
11625
|
+
projects: [g.project],
|
|
11626
|
+
onClose: g.$router.back,
|
|
11624
11627
|
"onUpdate:activity": r,
|
|
11625
11628
|
onAddSubtask: l,
|
|
11626
11629
|
onUpdateSubtask: c,
|
|
@@ -11632,7 +11635,7 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11632
11635
|
onRemoveComment: b
|
|
11633
11636
|
}, {
|
|
11634
11637
|
default: z((D) => [
|
|
11635
|
-
te(
|
|
11638
|
+
te(g.$slots, "default", pa(fa(D)))
|
|
11636
11639
|
]),
|
|
11637
11640
|
_: 3
|
|
11638
11641
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "onClose"])) : T("", !0);
|
|
@@ -11734,7 +11737,7 @@ function j4(t, e, a = {}) {
|
|
|
11734
11737
|
([w, b]) => {
|
|
11735
11738
|
if (u(), !f.value || !w.length)
|
|
11736
11739
|
return;
|
|
11737
|
-
const
|
|
11740
|
+
const g = new IntersectionObserver(
|
|
11738
11741
|
e,
|
|
11739
11742
|
{
|
|
11740
11743
|
root: mn(b),
|
|
@@ -11742,8 +11745,8 @@ function j4(t, e, a = {}) {
|
|
|
11742
11745
|
threshold: o
|
|
11743
11746
|
}
|
|
11744
11747
|
);
|
|
11745
|
-
w.forEach((S) => S &&
|
|
11746
|
-
|
|
11748
|
+
w.forEach((S) => S && g.observe(S)), u = () => {
|
|
11749
|
+
g.disconnect(), u = oa;
|
|
11747
11750
|
};
|
|
11748
11751
|
},
|
|
11749
11752
|
{ immediate: r, flush: "post" }
|
|
@@ -11855,7 +11858,7 @@ const F4 = {
|
|
|
11855
11858
|
}
|
|
11856
11859
|
}), {
|
|
11857
11860
|
item: z(({ element: d }) => {
|
|
11858
|
-
var h, w, b,
|
|
11861
|
+
var h, w, b, g, S, _, m, D, I;
|
|
11859
11862
|
return [
|
|
11860
11863
|
M(di, {
|
|
11861
11864
|
class: X(o(d) ? "ao-list-draggable" : ""),
|
|
@@ -11863,9 +11866,9 @@ const F4 = {
|
|
|
11863
11866
|
name: d.name,
|
|
11864
11867
|
"project-name": (h = d.project) == null ? void 0 : h.name,
|
|
11865
11868
|
"project-color": (w = d.project) == null ? void 0 : w.color,
|
|
11866
|
-
"phase-name": (
|
|
11869
|
+
"phase-name": (g = (b = d.milestone) == null ? void 0 : b.phase) == null ? void 0 : g.name,
|
|
11867
11870
|
"milestone-name": (S = d.milestone) == null ? void 0 : S.name,
|
|
11868
|
-
"milestone-color": (
|
|
11871
|
+
"milestone-color": (_ = d.milestone) == null ? void 0 : _.color,
|
|
11869
11872
|
deadline: d.deadline,
|
|
11870
11873
|
rules: ((m = d.rules) == null ? void 0 : m.length) || 0,
|
|
11871
11874
|
tasks: d.tasks,
|
|
@@ -12043,7 +12046,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12043
12046
|
), b = A(() => w.value.map((O) => ({
|
|
12044
12047
|
value: O.id,
|
|
12045
12048
|
label: O.name
|
|
12046
|
-
}))),
|
|
12049
|
+
}))), g = A(() => {
|
|
12047
12050
|
var O;
|
|
12048
12051
|
return (O = a.activityTypes) == null ? void 0 : O.map((k) => ({
|
|
12049
12052
|
value: k.id,
|
|
@@ -12053,7 +12056,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12053
12056
|
value: O.id,
|
|
12054
12057
|
label: `${O.firstName} ${O.lastName}`,
|
|
12055
12058
|
avatar: O.avatarUrl
|
|
12056
|
-
}))),
|
|
12059
|
+
}))), _ = (O) => {
|
|
12057
12060
|
a.selectedActivity && e("update:activity", O);
|
|
12058
12061
|
}, m = (O) => {
|
|
12059
12062
|
e("update:activity", O);
|
|
@@ -12120,11 +12123,11 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12120
12123
|
placeholder: O.$t("feed.filters.project.placeholder"),
|
|
12121
12124
|
"onUpdate:modelValue": k[1] || (k[1] = (V) => h(J(Lt).project, V))
|
|
12122
12125
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
12123
|
-
|
|
12126
|
+
g.value ? (p(), P($e, {
|
|
12124
12127
|
key: 2,
|
|
12125
12128
|
"model-value": O.filters[J(Lt).type],
|
|
12126
12129
|
mode: "tags",
|
|
12127
|
-
options:
|
|
12130
|
+
options: g.value,
|
|
12128
12131
|
"close-on-select": !1,
|
|
12129
12132
|
searchable: !0,
|
|
12130
12133
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
@@ -12217,7 +12220,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12217
12220
|
"attachment-enabled": O.attachmentEnabled,
|
|
12218
12221
|
projects: w.value,
|
|
12219
12222
|
onClose: k[6] || (k[6] = () => i(null, null)),
|
|
12220
|
-
"onUpdate:activity":
|
|
12223
|
+
"onUpdate:activity": _,
|
|
12221
12224
|
onAddSubtask: Z,
|
|
12222
12225
|
onUpdateSubtask: Y,
|
|
12223
12226
|
onDeleteSubtask: E,
|