@26lights/orcha 0.37.5 → 0.37.6
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 +181 -177
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoCardFeed.vue.d.ts +6 -0
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -2724,7 +2724,7 @@ var G0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X0 = /P+p+|P+|
|
|
|
2724
2724
|
function Ns(t, e, a) {
|
|
2725
2725
|
var n, s, o, i, r, l, c, u, f, d, h, w, b, y, k, _, C, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
|
-
var
|
|
2727
|
+
var I = 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
2730
|
var q = Qe((h = (w = (b = (y = a == null ? void 0 : a.weekStartsOn) !== null && y !== void 0 ? y : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : 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 && h !== void 0 ? h : 0);
|
|
@@ -2742,7 +2742,7 @@ function Ns(t, e, a) {
|
|
|
2742
2742
|
weekStartsOn: q,
|
|
2743
2743
|
locale: F,
|
|
2744
2744
|
_originalDate: O
|
|
2745
|
-
}, ie =
|
|
2745
|
+
}, ie = I.match(X0).map(function(E) {
|
|
2746
2746
|
var N = E[0];
|
|
2747
2747
|
if (N === "p" || N === "P") {
|
|
2748
2748
|
var M = r0[N];
|
|
@@ -2783,7 +2783,7 @@ function a3(t, e, a) {
|
|
|
2783
2783
|
throw new RangeError("Invalid time value");
|
|
2784
2784
|
var C;
|
|
2785
2785
|
_ < -6 ? C = "other" : _ < -1 ? C = "lastWeek" : _ < 0 ? C = "yesterday" : _ < 1 ? C = "today" : _ < 2 ? C = "tomorrow" : _ < 7 ? C = "nextWeek" : C = "other";
|
|
2786
|
-
var D = gn(h, ra(h)),
|
|
2786
|
+
var D = gn(h, ra(h)), I = gn(w, ra(w)), H = y.formatRelative(C, D, I, {
|
|
2787
2787
|
locale: y,
|
|
2788
2788
|
weekStartsOn: k
|
|
2789
2789
|
});
|
|
@@ -4353,7 +4353,7 @@ const E5 = async (t, e, a) => {
|
|
|
4353
4353
|
x: _,
|
|
4354
4354
|
y: C,
|
|
4355
4355
|
data: D,
|
|
4356
|
-
reset:
|
|
4356
|
+
reset: I
|
|
4357
4357
|
} = await k({
|
|
4358
4358
|
x: u,
|
|
4359
4359
|
y: f,
|
|
@@ -4374,12 +4374,12 @@ const E5 = async (t, e, a) => {
|
|
|
4374
4374
|
...h[y],
|
|
4375
4375
|
...D
|
|
4376
4376
|
}
|
|
4377
|
-
},
|
|
4378
|
-
w++, typeof
|
|
4377
|
+
}, I && w <= 50) {
|
|
4378
|
+
w++, typeof I == "object" && (I.placement && (d = I.placement), I.rects && (c = I.rects === !0 ? await i.getElementRects({
|
|
4379
4379
|
reference: t,
|
|
4380
4380
|
floating: e,
|
|
4381
4381
|
strategy: s
|
|
4382
|
-
}) :
|
|
4382
|
+
}) : I.rects), {
|
|
4383
4383
|
x: u,
|
|
4384
4384
|
y: f
|
|
4385
4385
|
} = vs(c, d, l)), b = -1;
|
|
@@ -4425,16 +4425,16 @@ async function Ks(t, e) {
|
|
|
4425
4425
|
} : {
|
|
4426
4426
|
x: 1,
|
|
4427
4427
|
y: 1
|
|
4428
|
-
},
|
|
4428
|
+
}, I = Ra(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4429
4429
|
rect: _,
|
|
4430
4430
|
offsetParent: C,
|
|
4431
4431
|
strategy: l
|
|
4432
4432
|
}) : _);
|
|
4433
4433
|
return {
|
|
4434
|
-
top: (k.top -
|
|
4435
|
-
bottom: (
|
|
4436
|
-
left: (k.left -
|
|
4437
|
-
right: (
|
|
4434
|
+
top: (k.top - I.top + w.top) / D.y,
|
|
4435
|
+
bottom: (I.bottom - k.bottom + w.bottom) / D.y,
|
|
4436
|
+
left: (k.left - I.left + w.left) / D.x,
|
|
4437
|
+
right: (I.right - k.right + w.right) / D.x
|
|
4438
4438
|
};
|
|
4439
4439
|
}
|
|
4440
4440
|
const I5 = function(t) {
|
|
@@ -4463,7 +4463,7 @@ const I5 = function(t) {
|
|
|
4463
4463
|
return {};
|
|
4464
4464
|
const k = Ft(s), _ = Ft(r) === r, C = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !b ? [Ba(r)] : S5(r));
|
|
4465
4465
|
!d && w !== "none" && D.push(...M5(r, b, w, C));
|
|
4466
|
-
const
|
|
4466
|
+
const I = [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);
|
|
@@ -4474,7 +4474,7 @@ const I5 = function(t) {
|
|
|
4474
4474
|
overflows: F
|
|
4475
4475
|
}], !F.every((R) => R <= 0)) {
|
|
4476
4476
|
var q, O;
|
|
4477
|
-
const R = (((q = o.flip) == null ? void 0 : q.index) || 0) + 1, Z =
|
|
4477
|
+
const R = (((q = o.flip) == null ? void 0 : q.index) || 0) + 1, Z = I[R];
|
|
4478
4478
|
if (Z)
|
|
4479
4479
|
return {
|
|
4480
4480
|
data: {
|
|
@@ -4546,8 +4546,8 @@ const I5 = function(t) {
|
|
|
4546
4546
|
availableWidth: D,
|
|
4547
4547
|
availableHeight: C
|
|
4548
4548
|
});
|
|
4549
|
-
const
|
|
4550
|
-
return d !==
|
|
4549
|
+
const I = await s.getDimensions(o.floating);
|
|
4550
|
+
return d !== I.width || h !== I.height ? {
|
|
4551
4551
|
reset: {
|
|
4552
4552
|
rects: !0
|
|
4553
4553
|
}
|
|
@@ -4910,8 +4910,8 @@ function K5(t, e) {
|
|
|
4910
4910
|
threshold: Ee(0, ua(1, l)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let C = !0;
|
|
4913
|
-
function D(
|
|
4914
|
-
const H =
|
|
4913
|
+
function D(I) {
|
|
4914
|
+
const H = I[0].intersectionRatio;
|
|
4915
4915
|
if (H !== l) {
|
|
4916
4916
|
if (!C)
|
|
4917
4917
|
return i();
|
|
@@ -5142,7 +5142,7 @@ function i7(t, e, a) {
|
|
|
5142
5142
|
minChars: _,
|
|
5143
5143
|
filterResults: C,
|
|
5144
5144
|
clearOnSearch: D,
|
|
5145
|
-
clearOnSelect:
|
|
5145
|
+
clearOnSelect: I,
|
|
5146
5146
|
valueProp: H,
|
|
5147
5147
|
allowAbsent: F,
|
|
5148
5148
|
groupLabel: U,
|
|
@@ -5156,7 +5156,7 @@ function i7(t, e, a) {
|
|
|
5156
5156
|
infinite: N,
|
|
5157
5157
|
groupOptions: M,
|
|
5158
5158
|
groupHideEmpty: m,
|
|
5159
|
-
groupSelect:
|
|
5159
|
+
groupSelect: L,
|
|
5160
5160
|
onCreate: J,
|
|
5161
5161
|
disabledProp: ae,
|
|
5162
5162
|
searchStart: le,
|
|
@@ -5293,7 +5293,7 @@ function i7(t, e, a) {
|
|
|
5293
5293
|
q.value && It($), Z.value && (nt(), st());
|
|
5294
5294
|
return;
|
|
5295
5295
|
}
|
|
5296
|
-
$ && un($),
|
|
5296
|
+
$ && un($), I.value && he(), R.value && (nt(), st()), $ && Et($);
|
|
5297
5297
|
break;
|
|
5298
5298
|
case "multiple":
|
|
5299
5299
|
if ($ && ze($)) {
|
|
@@ -5304,7 +5304,7 @@ function i7(t, e, a) {
|
|
|
5304
5304
|
e.emit("max", re);
|
|
5305
5305
|
return;
|
|
5306
5306
|
}
|
|
5307
|
-
$ && (un($), Et($)),
|
|
5307
|
+
$ && (un($), Et($)), I.value && he(), r.value && nt(), R.value && st();
|
|
5308
5308
|
break;
|
|
5309
5309
|
case "tags":
|
|
5310
5310
|
if ($ && ze($)) {
|
|
@@ -5315,12 +5315,12 @@ function i7(t, e, a) {
|
|
|
5315
5315
|
e.emit("max", re);
|
|
5316
5316
|
return;
|
|
5317
5317
|
}
|
|
5318
|
-
$ && un($),
|
|
5318
|
+
$ && un($), I.value && he(), $ && Et($), r.value && nt(), R.value && st();
|
|
5319
5319
|
break;
|
|
5320
5320
|
}
|
|
5321
5321
|
R.value || _a();
|
|
5322
5322
|
}, _i = ($) => {
|
|
5323
|
-
if (!(rn($) || s.value === "single" || !
|
|
5323
|
+
if (!(rn($) || s.value === "single" || !L.value)) {
|
|
5324
5324
|
switch (s.value) {
|
|
5325
5325
|
case "multiple":
|
|
5326
5326
|
case "tags":
|
|
@@ -5472,7 +5472,7 @@ function o7(t, e, a) {
|
|
|
5472
5472
|
groupSelect: c,
|
|
5473
5473
|
disabledProp: u,
|
|
5474
5474
|
groupOptions: f
|
|
5475
|
-
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, y = a.search, k = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect,
|
|
5475
|
+
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, y = a.search, k = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, I = a.isOpen, H = S(() => d.value.filter((V) => !V[u.value])), F = S(() => h.value.filter((V) => !V[u.value])), U = S(() => l.value !== "single" && c.value), q = S(() => k.value && k.value.group), O = S(() => re(k.value)), x = S(() => {
|
|
5476
5476
|
const V = q.value ? k.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
re(k.value)
|
|
@@ -5488,7 +5488,7 @@ function o7(t, e, a) {
|
|
|
5488
5488
|
}), N = S(() => {
|
|
5489
5489
|
const V = re(k.value).__VISIBLE__.filter((X) => !X[u.value]);
|
|
5490
5490
|
return V[V.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1];
|
|
5491
|
-
}), M = S(() => [...x.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), m = S(() => [...Z.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]),
|
|
5491
|
+
}), M = S(() => [...x.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), m = S(() => [...Z.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), L = (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));
|
|
@@ -5530,7 +5530,7 @@ function o7(t, e, a) {
|
|
|
5530
5530
|
};
|
|
5531
5531
|
return de(y, (V) => {
|
|
5532
5532
|
o.value && (V.length && s.value ? J() : C());
|
|
5533
|
-
}), de(
|
|
5533
|
+
}), de(I, (V) => {
|
|
5534
5534
|
if (V) {
|
|
5535
5535
|
let X = D.value.querySelectorAll("[data-selected]")[0];
|
|
5536
5536
|
if (!X)
|
|
@@ -5543,7 +5543,7 @@ function o7(t, e, a) {
|
|
|
5543
5543
|
}), {
|
|
5544
5544
|
pointer: k,
|
|
5545
5545
|
canPointGroups: U,
|
|
5546
|
-
isPointed:
|
|
5546
|
+
isPointed: L,
|
|
5547
5547
|
setPointerFirst: J,
|
|
5548
5548
|
selectPointer: ae,
|
|
5549
5549
|
forwardPointer: le,
|
|
@@ -5909,16 +5909,16 @@ function B7(t, e) {
|
|
|
5909
5909
|
}
|
|
5910
5910
|
function Un(t, e) {
|
|
5911
5911
|
e === void 0 && (e = {});
|
|
5912
|
-
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, y = b === void 0 ? 0 : b, k = V7(typeof y != "number" ? y : B7(y, an)), _ = d === sa ? v7 : sa, C = t.rects.popper, D = t.elements[w ? _ : d],
|
|
5912
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, y = b === void 0 ? 0 : b, k = V7(typeof y != "number" ? y : B7(y, an)), _ = d === sa ? v7 : sa, C = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), H = Wt(t.elements.reference), F = li({
|
|
5913
5913
|
reference: H,
|
|
5914
5914
|
element: C,
|
|
5915
5915
|
strategy: "absolute",
|
|
5916
5916
|
placement: s
|
|
5917
5917
|
}), U = bn(Object.assign({}, C, F)), q = d === sa ? U : H, O = {
|
|
5918
|
-
top:
|
|
5919
|
-
bottom: q.bottom -
|
|
5920
|
-
left:
|
|
5921
|
-
right: q.right -
|
|
5918
|
+
top: I.top - q.top + k.top,
|
|
5919
|
+
bottom: q.bottom - I.bottom + k.bottom,
|
|
5920
|
+
left: I.left - q.left + k.left,
|
|
5921
|
+
right: q.right - I.right + k.right
|
|
5922
5922
|
}, x = t.modifiersData.offset;
|
|
5923
5923
|
if (d === sa && x) {
|
|
5924
5924
|
var R = x[s];
|
|
@@ -5990,7 +5990,7 @@ function R7(t) {
|
|
|
5990
5990
|
u.reset = !1, D = -1;
|
|
5991
5991
|
continue;
|
|
5992
5992
|
}
|
|
5993
|
-
var
|
|
5993
|
+
var I = u.orderedModifiers[D], H = I.fn, F = I.options, U = F === void 0 ? {} : F, q = I.name;
|
|
5994
5994
|
typeof H == "function" && (u = H({
|
|
5995
5995
|
state: u,
|
|
5996
5996
|
options: U,
|
|
@@ -6021,14 +6021,14 @@ function R7(t) {
|
|
|
6021
6021
|
u.orderedModifiers.forEach(function(y) {
|
|
6022
6022
|
var k = y.name, _ = y.options, C = _ === void 0 ? {} : _, D = y.effect;
|
|
6023
6023
|
if (typeof D == "function") {
|
|
6024
|
-
var
|
|
6024
|
+
var I = D({
|
|
6025
6025
|
state: u,
|
|
6026
6026
|
name: k,
|
|
6027
6027
|
instance: h,
|
|
6028
6028
|
options: C
|
|
6029
6029
|
}), H = function() {
|
|
6030
6030
|
};
|
|
6031
|
-
f.push(
|
|
6031
|
+
f.push(I || H);
|
|
6032
6032
|
}
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
@@ -6099,12 +6099,12 @@ function $s(t) {
|
|
|
6099
6099
|
y: b
|
|
6100
6100
|
};
|
|
6101
6101
|
h = y.x, b = y.y;
|
|
6102
|
-
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), C = Ge, D = Re,
|
|
6102
|
+
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), C = Ge, D = Re, I = window;
|
|
6103
6103
|
if (c) {
|
|
6104
6104
|
var H = tn(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) {
|
|
6106
6106
|
D = We;
|
|
6107
|
-
var q = f && H ===
|
|
6107
|
+
var q = f && H === I && I.visualViewport ? I.visualViewport.height : (
|
|
6108
6108
|
// $FlowFixMe[prop-missing]
|
|
6109
6109
|
H[F]
|
|
6110
6110
|
);
|
|
@@ -6112,7 +6112,7 @@ function $s(t) {
|
|
|
6112
6112
|
}
|
|
6113
6113
|
if (s === Ge || (s === Re || s === We) && o === da) {
|
|
6114
6114
|
C = vt;
|
|
6115
|
-
var O = f && H ===
|
|
6115
|
+
var O = f && H === I && I.visualViewport ? I.visualViewport.width : (
|
|
6116
6116
|
// $FlowFixMe[prop-missing]
|
|
6117
6117
|
H[U]
|
|
6118
6118
|
);
|
|
@@ -6130,7 +6130,7 @@ function $s(t) {
|
|
|
6130
6130
|
};
|
|
6131
6131
|
if (h = R.x, b = R.y, l) {
|
|
6132
6132
|
var Z;
|
|
6133
|
-
return Object.assign({}, x, (Z = {}, Z[D] = _ ? "0" : "", Z[C] = k ? "0" : "", Z.transform = (
|
|
6133
|
+
return Object.assign({}, x, (Z = {}, Z[D] = _ ? "0" : "", Z[C] = k ? "0" : "", Z.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", Z));
|
|
6134
6134
|
}
|
|
6135
6135
|
return Object.assign({}, x, (e = {}, e[D] = _ ? b + "px" : "", e[C] = k ? h + "px" : "", e.transform = "", e));
|
|
6136
6136
|
}
|
|
@@ -6224,7 +6224,7 @@ function ep(t) {
|
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: f,
|
|
6226
6226
|
altBoundary: u
|
|
6227
|
-
}), k = ct(e.placement), _ = zt(e.placement), C = !_, D = ri(k),
|
|
6227
|
+
}), k = ct(e.placement), _ = zt(e.placement), C = !_, D = ri(k), I = 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, O = typeof q == "number" ? {
|
|
6230
6230
|
mainAxis: q,
|
|
@@ -6238,15 +6238,15 @@ function ep(t) {
|
|
|
6238
6238
|
};
|
|
6239
6239
|
if (H) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var Z, ie = D === "y" ? Re : Ge, E = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M = H[D], m = M + y[ie],
|
|
6241
|
+
var Z, ie = D === "y" ? Re : Ge, E = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M = H[D], m = M + y[ie], L = M - y[E], J = h ? -U[N] / 2 : 0, ae = _ === qt ? F[N] : U[N], le = _ === qt ? -U[N] : -F[N], ne = e.elements.arrow, re = h && ne ? si(ne) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
|
-
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), V = Y[ie], X = Y[E], he = Ia(0, F[N], re[N]), we = C ? F[N] / 2 - J - he - V - O.mainAxis : ae - he - V - O.mainAxis, Kt = C ? -F[N] / 2 + J + he + X + O.mainAxis : le + he + X + O.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (Z = x == null ? void 0 : x[D]) != null ? Z : 0, nn = M + we - _a - nt, st = M + Kt - _a, ya = Ia(h ? Na(m, nn) : m, M, h ? kt(
|
|
6244
|
+
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), V = Y[ie], X = Y[E], he = Ia(0, F[N], re[N]), we = C ? F[N] / 2 - J - he - V - O.mainAxis : ae - he - V - O.mainAxis, Kt = C ? -F[N] / 2 + J + he + X + O.mainAxis : le + he + X + O.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (Z = x == null ? void 0 : x[D]) != null ? Z : 0, nn = M + we - _a - nt, st = M + Kt - _a, ya = Ia(h ? Na(m, nn) : m, M, h ? kt(L, st) : L);
|
|
6245
6245
|
H[D] = ya, R[D] = ya - M;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
6248
|
-
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = H[
|
|
6249
|
-
H[
|
|
6248
|
+
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = H[I], qe = I === "y" ? "height" : "width", Xt = Be + y[Ne], ba = Be - y[Me], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it = x == null ? void 0 : x[I]) != null ? it : 0, ot = Te ? Xt : Be - F[qe] - U[qe] - Qt + O.altAxis, _t = Te ? Be + F[qe] + U[qe] - Qt - O.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
|
|
6249
|
+
H[I] = wa, R[I] = wa - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = R;
|
|
6252
6252
|
}
|
|
@@ -6315,7 +6315,7 @@ function op(t) {
|
|
|
6315
6315
|
flipVariations: w,
|
|
6316
6316
|
allowedAutoPlacements: b
|
|
6317
6317
|
}) : Y);
|
|
6318
|
-
}, []),
|
|
6318
|
+
}, []), I = e.rects.reference, H = e.rects.popper, F = /* @__PURE__ */ new Map(), U = !0, q = D[0], O = 0; O < D.length; O++) {
|
|
6319
6319
|
var x = D[O], R = ct(x), Z = zt(x) === qt, ie = [Re, We].indexOf(R) >= 0, E = ie ? "width" : "height", N = Un(e, {
|
|
6320
6320
|
placement: x,
|
|
6321
6321
|
boundary: u,
|
|
@@ -6323,15 +6323,15 @@ function op(t) {
|
|
|
6323
6323
|
altBoundary: d,
|
|
6324
6324
|
padding: c
|
|
6325
6325
|
}), M = ie ? Z ? vt : Ge : Z ? We : Re;
|
|
6326
|
-
|
|
6327
|
-
var m = La(M),
|
|
6328
|
-
if (o &&
|
|
6326
|
+
I[E] > H[E] && (M = La(M));
|
|
6327
|
+
var m = La(M), L = [];
|
|
6328
|
+
if (o && L.push(N[R] <= 0), r && L.push(N[M] <= 0, N[m] <= 0), L.every(function(re) {
|
|
6329
6329
|
return re;
|
|
6330
6330
|
})) {
|
|
6331
6331
|
q = x, U = !1;
|
|
6332
6332
|
break;
|
|
6333
6333
|
}
|
|
6334
|
-
F.set(x,
|
|
6334
|
+
F.set(x, L);
|
|
6335
6335
|
}
|
|
6336
6336
|
if (U)
|
|
6337
6337
|
for (var J = w ? 3 : 1, ae = function(Y) {
|
|
@@ -6373,10 +6373,10 @@ function lp(t, e, a) {
|
|
|
6373
6373
|
if (!f.value)
|
|
6374
6374
|
return;
|
|
6375
6375
|
let C = parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px", "")), D = parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px", ""));
|
|
6376
|
-
f.value.setOptions((
|
|
6377
|
-
...
|
|
6376
|
+
f.value.setOptions((I) => ({
|
|
6377
|
+
...I,
|
|
6378
6378
|
modifiers: [
|
|
6379
|
-
...
|
|
6379
|
+
...I.modifiers,
|
|
6380
6380
|
{
|
|
6381
6381
|
name: "offset",
|
|
6382
6382
|
options: {
|
|
@@ -6487,14 +6487,14 @@ function cp(t, e, a) {
|
|
|
6487
6487
|
createTag: f,
|
|
6488
6488
|
createOption: d,
|
|
6489
6489
|
reverse: h
|
|
6490
|
-
} = Ae(t), w = Mt().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer,
|
|
6491
|
-
n.value === "tags" && !r.value && ie.value && i.value && !c.value && C(Z.value[Z.value.map((
|
|
6490
|
+
} = Ae(t), w = Mt().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, I = a.backwardPointer, H = a.forwardPointer, F = a.multiselect, U = a.wrapper, q = a.tags, O = a.isOpen, x = a.open, R = a.blur, Z = a.fo, ie = S(() => f.value || d.value || !1), E = S(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), N = () => {
|
|
6491
|
+
n.value === "tags" && !r.value && ie.value && i.value && !c.value && C(Z.value[Z.value.map((L) => L[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
|
-
handleKeydown: (
|
|
6495
|
-
e.emit("keydown",
|
|
6494
|
+
handleKeydown: (L) => {
|
|
6495
|
+
e.emit("keydown", L, w);
|
|
6496
6496
|
let J, ae;
|
|
6497
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(
|
|
6497
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && n.value === "tags" && (J = [...F.value.querySelectorAll("[data-tags] > *")].filter((le) => le !== q.value), ae = J.findIndex((le) => le === document.activeElement)), L.key) {
|
|
6498
6498
|
case "Backspace":
|
|
6499
6499
|
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || b.value.length === 0)
|
|
6500
6500
|
return;
|
|
@@ -6502,7 +6502,7 @@ function cp(t, e, a) {
|
|
|
6502
6502
|
le.length && k(le[le.length - 1]);
|
|
6503
6503
|
break;
|
|
6504
6504
|
case "Enter":
|
|
6505
|
-
if (
|
|
6505
|
+
if (L.preventDefault(), L.keyCode === 229)
|
|
6506
6506
|
return;
|
|
6507
6507
|
if (ae !== -1 && ae !== void 0) {
|
|
6508
6508
|
y([...b.value].filter((ne, re) => re !== ae)), ae === J.length - 1 && (J.length - 1 ? J[J.length - 2].focus() : i.value ? q.value.querySelector("input").focus() : U.value.focus());
|
|
@@ -6514,49 +6514,49 @@ function cp(t, e, a) {
|
|
|
6514
6514
|
break;
|
|
6515
6515
|
case " ":
|
|
6516
6516
|
if (!ie.value && !i.value) {
|
|
6517
|
-
|
|
6517
|
+
L.preventDefault(), N(), D();
|
|
6518
6518
|
return;
|
|
6519
6519
|
}
|
|
6520
6520
|
if (!ie.value)
|
|
6521
6521
|
return !1;
|
|
6522
6522
|
if (E.value.indexOf("space") === -1 && ie.value)
|
|
6523
6523
|
return;
|
|
6524
|
-
|
|
6524
|
+
L.preventDefault(), N(), D();
|
|
6525
6525
|
break;
|
|
6526
6526
|
case "Tab":
|
|
6527
6527
|
case ";":
|
|
6528
6528
|
case ",":
|
|
6529
|
-
if (E.value.indexOf(
|
|
6529
|
+
if (E.value.indexOf(L.key.toLowerCase()) === -1 || !ie.value)
|
|
6530
6530
|
return;
|
|
6531
|
-
N(), D(),
|
|
6531
|
+
N(), D(), L.preventDefault();
|
|
6532
6532
|
break;
|
|
6533
6533
|
case "Escape":
|
|
6534
6534
|
R();
|
|
6535
6535
|
break;
|
|
6536
6536
|
case "ArrowUp":
|
|
6537
|
-
if (
|
|
6537
|
+
if (L.preventDefault(), !r.value)
|
|
6538
6538
|
return;
|
|
6539
|
-
O.value || x(),
|
|
6539
|
+
O.value || x(), I();
|
|
6540
6540
|
break;
|
|
6541
6541
|
case "ArrowDown":
|
|
6542
|
-
if (
|
|
6542
|
+
if (L.preventDefault(), !r.value)
|
|
6543
6543
|
return;
|
|
6544
6544
|
O.value || x(), H();
|
|
6545
6545
|
break;
|
|
6546
6546
|
case "ArrowLeft":
|
|
6547
|
-
if (i.value && q.value && q.value.querySelector("input").selectionStart ||
|
|
6547
|
+
if (i.value && q.value && q.value.querySelector("input").selectionStart || L.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6548
6548
|
return;
|
|
6549
|
-
|
|
6549
|
+
L.preventDefault(), ae === -1 ? J[J.length - 1].focus() : ae > 0 && J[ae - 1].focus();
|
|
6550
6550
|
break;
|
|
6551
6551
|
case "ArrowRight":
|
|
6552
|
-
if (ae === -1 ||
|
|
6552
|
+
if (ae === -1 || L.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6553
6553
|
return;
|
|
6554
|
-
|
|
6554
|
+
L.preventDefault(), J.length > ae + 1 ? J[ae + 1].focus() : i.value ? q.value.querySelector("input").focus() : i.value || U.value.focus();
|
|
6555
6555
|
break;
|
|
6556
6556
|
}
|
|
6557
6557
|
},
|
|
6558
|
-
handleKeyup: (
|
|
6559
|
-
e.emit("keyup",
|
|
6558
|
+
handleKeyup: (L) => {
|
|
6559
|
+
e.emit("keyup", L, w);
|
|
6560
6560
|
},
|
|
6561
6561
|
preparePointer: N
|
|
6562
6562
|
};
|
|
@@ -6654,13 +6654,13 @@ function dp(t, e, a) {
|
|
|
6654
6654
|
options: [C.options].concat(b.value === "top" ? C.optionsTop : []),
|
|
6655
6655
|
group: C.group,
|
|
6656
6656
|
groupLabel: (D) => {
|
|
6657
|
-
let
|
|
6658
|
-
return l(D) ?
|
|
6657
|
+
let I = [C.groupLabel];
|
|
6658
|
+
return l(D) ? I.push(c(D) ? C.groupLabelSelectedPointed : C.groupLabelPointed) : c(D) && d.value ? I.push(u(D) ? C.groupLabelSelectedDisabled : C.groupLabelSelected) : u(D) && I.push(C.groupLabelDisabled), d.value && I.push(C.groupLabelPointable), I;
|
|
6659
6659
|
},
|
|
6660
6660
|
groupOptions: C.groupOptions,
|
|
6661
|
-
option: (D,
|
|
6661
|
+
option: (D, I) => {
|
|
6662
6662
|
let H = [C.option];
|
|
6663
|
-
return l(D) ? H.push(c(D) ? C.optionSelectedPointed : C.optionPointed) : c(D) ? H.push(u(D) ? C.optionSelectedDisabled : C.optionSelected) : (u(D) ||
|
|
6663
|
+
return l(D) ? H.push(c(D) ? C.optionSelectedPointed : C.optionPointed) : c(D) ? H.push(u(D) ? C.optionSelectedDisabled : C.optionSelected) : (u(D) || I && u(I)) && H.push(C.optionDisabled), H;
|
|
6664
6664
|
},
|
|
6665
6665
|
noOptions: C.noOptions,
|
|
6666
6666
|
noResults: C.noResults,
|
|
@@ -6719,12 +6719,12 @@ function fp(t, e, a) {
|
|
|
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("-");
|
|
6722
|
-
}), C = S(() => n.value), D = S(() => r.value !== "single"),
|
|
6722
|
+
}), C = S(() => n.value), D = S(() => r.value !== "single"), I = S(() => {
|
|
6723
6723
|
let R = "";
|
|
6724
6724
|
return r.value === "single" && h.value && (R += d.value[i.value]), r.value === "multiple" && h.value && (R += w.value), r.value === "tags" && h.value && (R += d.value.map((Z) => Z[i.value]).join(", ")), R;
|
|
6725
6725
|
}), H = S(() => {
|
|
6726
6726
|
let R = { ...c.value };
|
|
6727
|
-
return u.value && (R["aria-labelledby"] = R["aria-labelledby"] ? `${y.value} ${R["aria-labelledby"]}` : y.value,
|
|
6727
|
+
return u.value && (R["aria-labelledby"] = R["aria-labelledby"] ? `${y.value} ${R["aria-labelledby"]}` : y.value, I.value && R["aria-label"] && (R["aria-label"] = `${I.value}, ${R["aria-label"]}`)), R;
|
|
6728
6728
|
}), F = (R) => {
|
|
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("-");
|
|
@@ -6745,7 +6745,7 @@ function fp(t, e, a) {
|
|
|
6745
6745
|
}
|
|
6746
6746
|
}), {
|
|
6747
6747
|
arias: H,
|
|
6748
|
-
ariaLabel:
|
|
6748
|
+
ariaLabel: I,
|
|
6749
6749
|
ariaAssist: y,
|
|
6750
6750
|
ariaControls: k,
|
|
6751
6751
|
ariaPlaceholder: C,
|
|
@@ -8266,9 +8266,9 @@ const wn = /* @__PURE__ */ z({
|
|
|
8266
8266
|
}
|
|
8267
8267
|
}), u = S(() => {
|
|
8268
8268
|
var m;
|
|
8269
|
-
return (m = a.activityTypes) == null ? void 0 : m.map((
|
|
8270
|
-
label:
|
|
8271
|
-
value:
|
|
8269
|
+
return (m = a.activityTypes) == null ? void 0 : m.map((L) => ({
|
|
8270
|
+
label: L.name,
|
|
8271
|
+
value: L.id
|
|
8272
8272
|
}));
|
|
8273
8273
|
}), f = S({
|
|
8274
8274
|
get() {
|
|
@@ -8284,7 +8284,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8284
8284
|
}))), h = S({
|
|
8285
8285
|
get() {
|
|
8286
8286
|
var m;
|
|
8287
|
-
return (m = a.activity.dependingOn) == null ? void 0 : m.map((
|
|
8287
|
+
return (m = a.activity.dependingOn) == null ? void 0 : m.map((L) => L.id);
|
|
8288
8288
|
},
|
|
8289
8289
|
set(m) {
|
|
8290
8290
|
m && e("update:activity", {
|
|
@@ -8293,15 +8293,15 @@ const wn = /* @__PURE__ */ z({
|
|
|
8293
8293
|
});
|
|
8294
8294
|
}
|
|
8295
8295
|
}), w = S(() => d.value.map((m) => {
|
|
8296
|
-
var
|
|
8296
|
+
var L;
|
|
8297
8297
|
return {
|
|
8298
8298
|
...m,
|
|
8299
|
-
disabled: (
|
|
8299
|
+
disabled: (L = a.activity.blocking) == null ? void 0 : L.some((J) => J.id === m.value)
|
|
8300
8300
|
};
|
|
8301
8301
|
})), b = S({
|
|
8302
8302
|
get() {
|
|
8303
8303
|
var m;
|
|
8304
|
-
return (m = a.activity.blocking) == null ? void 0 : m.map((
|
|
8304
|
+
return (m = a.activity.blocking) == null ? void 0 : m.map((L) => L.id);
|
|
8305
8305
|
},
|
|
8306
8306
|
set(m) {
|
|
8307
8307
|
m && e("update:activity", {
|
|
@@ -8310,10 +8310,10 @@ const wn = /* @__PURE__ */ z({
|
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
8312
|
}), y = S(() => d.value.map((m) => {
|
|
8313
|
-
var
|
|
8313
|
+
var L;
|
|
8314
8314
|
return {
|
|
8315
8315
|
...m,
|
|
8316
|
-
disabled: (
|
|
8316
|
+
disabled: (L = a.activity.dependingOn) == null ? void 0 : L.some(
|
|
8317
8317
|
(J) => J.id === m.value
|
|
8318
8318
|
)
|
|
8319
8319
|
};
|
|
@@ -8325,15 +8325,15 @@ const wn = /* @__PURE__ */ z({
|
|
|
8325
8325
|
e("deleteSubtask", m);
|
|
8326
8326
|
}, D = S(() => {
|
|
8327
8327
|
var m;
|
|
8328
|
-
return ((m = a.users) == null ? void 0 : m.map((
|
|
8329
|
-
label: `${
|
|
8330
|
-
value:
|
|
8331
|
-
avatar:
|
|
8328
|
+
return ((m = a.users) == null ? void 0 : m.map((L) => ({
|
|
8329
|
+
label: `${L.firstName} ${L.lastName}`,
|
|
8330
|
+
value: L.id,
|
|
8331
|
+
avatar: L.avatarUrl
|
|
8332
8332
|
}))) || [];
|
|
8333
|
-
}),
|
|
8333
|
+
}), I = S({
|
|
8334
8334
|
get() {
|
|
8335
|
-
var m,
|
|
8336
|
-
return (m = a.activity.assignee) != null && m.id ? [(
|
|
8335
|
+
var m, L;
|
|
8336
|
+
return (m = a.activity.assignee) != null && m.id ? [(L = a.activity.assignee) == null ? void 0 : L.id] : [];
|
|
8337
8337
|
},
|
|
8338
8338
|
set(m) {
|
|
8339
8339
|
e("update:activity", {
|
|
@@ -8356,8 +8356,8 @@ const wn = /* @__PURE__ */ z({
|
|
|
8356
8356
|
value: m.id,
|
|
8357
8357
|
label: m.name
|
|
8358
8358
|
}))), q = S(() => {
|
|
8359
|
-
var
|
|
8360
|
-
const m = (ae = (J = (
|
|
8359
|
+
var L, J, ae;
|
|
8360
|
+
const m = (ae = (J = (L = a.activity) == null ? void 0 : L.project) == null ? void 0 : J.phases) == null ? void 0 : ae.reduce(
|
|
8361
8361
|
(le, ne) => [...le, ...ne.milestones],
|
|
8362
8362
|
[]
|
|
8363
8363
|
);
|
|
@@ -8377,9 +8377,9 @@ const wn = /* @__PURE__ */ z({
|
|
|
8377
8377
|
});
|
|
8378
8378
|
}, R = S(() => {
|
|
8379
8379
|
var m;
|
|
8380
|
-
return (m = a.statuses) == null ? void 0 : m.map((
|
|
8381
|
-
value:
|
|
8382
|
-
label:
|
|
8380
|
+
return (m = a.statuses) == null ? void 0 : m.map((L) => ({
|
|
8381
|
+
value: L.id,
|
|
8382
|
+
label: L.name
|
|
8383
8383
|
}));
|
|
8384
8384
|
}), Z = (m) => {
|
|
8385
8385
|
e("update:activity", {
|
|
@@ -8396,11 +8396,11 @@ const wn = /* @__PURE__ */ z({
|
|
|
8396
8396
|
}, N = (m) => {
|
|
8397
8397
|
e("removeComment", m);
|
|
8398
8398
|
}, M = S(() => {
|
|
8399
|
-
var m,
|
|
8400
|
-
return ((m = a.activity.createdBy) == null ? void 0 : m.firstName) && ((
|
|
8399
|
+
var m, L;
|
|
8400
|
+
return ((m = a.activity.createdBy) == null ? void 0 : m.firstName) && ((L = a.activity.createdBy) == null ? void 0 : L.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8401
8401
|
});
|
|
8402
|
-
return (m,
|
|
8403
|
-
onClose:
|
|
8402
|
+
return (m, L) => (p(), P(In, {
|
|
8403
|
+
onClose: L[10] || (L[10] = (J) => m.$emit("close"))
|
|
8404
8404
|
}, {
|
|
8405
8405
|
default: W(() => {
|
|
8406
8406
|
var J, ae, le;
|
|
@@ -8462,7 +8462,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8462
8462
|
v("label", Tf, [
|
|
8463
8463
|
v("span", Of, G(m.$t("activity.description.label")), 1),
|
|
8464
8464
|
Ke(v("textarea", {
|
|
8465
|
-
"onUpdate:modelValue":
|
|
8465
|
+
"onUpdate:modelValue": L[0] || (L[0] = (ne) => o.value = ne),
|
|
8466
8466
|
readonly: !n.value,
|
|
8467
8467
|
rows: "4",
|
|
8468
8468
|
class: "ao-field__textarea"
|
|
@@ -8486,7 +8486,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8486
8486
|
v("label", Lf, [
|
|
8487
8487
|
v("span", Hf, G(m.$t("activity.estimation.label")), 1),
|
|
8488
8488
|
Ke(v("input", {
|
|
8489
|
-
"onUpdate:modelValue":
|
|
8489
|
+
"onUpdate:modelValue": L[1] || (L[1] = (ne) => i.value = ne),
|
|
8490
8490
|
readonly: !n.value,
|
|
8491
8491
|
class: "ao-field__input ao-field__input--estim",
|
|
8492
8492
|
type: "number",
|
|
@@ -8551,7 +8551,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8551
8551
|
v("div", Ff, [
|
|
8552
8552
|
A(pe, {
|
|
8553
8553
|
name: "CloseRounded",
|
|
8554
|
-
onClick:
|
|
8554
|
+
onClick: L[2] || (L[2] = (ne) => m.$emit("close"))
|
|
8555
8555
|
})
|
|
8556
8556
|
]),
|
|
8557
8557
|
R.value ? (p(), g("div", Uf, [
|
|
@@ -8573,8 +8573,8 @@ const wn = /* @__PURE__ */ z({
|
|
|
8573
8573
|
v("div", zf, [
|
|
8574
8574
|
v("span", xf, G(m.$t("activity.assignee.label")), 1),
|
|
8575
8575
|
A($e, {
|
|
8576
|
-
modelValue:
|
|
8577
|
-
"onUpdate:modelValue":
|
|
8576
|
+
modelValue: I.value,
|
|
8577
|
+
"onUpdate:modelValue": L[3] || (L[3] = (ne) => I.value = ne),
|
|
8578
8578
|
class: "ao-activity-details__assignees ao-activity-details__multiselect",
|
|
8579
8579
|
options: D.value,
|
|
8580
8580
|
"close-on-select": !0,
|
|
@@ -8605,7 +8605,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8605
8605
|
v("label", Gf, [
|
|
8606
8606
|
v("span", Xf, G(m.$t("activity.deadline.label")), 1),
|
|
8607
8607
|
Ke(v("input", {
|
|
8608
|
-
"onUpdate:modelValue":
|
|
8608
|
+
"onUpdate:modelValue": L[4] || (L[4] = (ne) => c.value = ne),
|
|
8609
8609
|
readonly: !n.value,
|
|
8610
8610
|
class: "ao-field__input",
|
|
8611
8611
|
type: "date"
|
|
@@ -8625,7 +8625,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8625
8625
|
v("label", tv, [
|
|
8626
8626
|
A($e, {
|
|
8627
8627
|
modelValue: f.value,
|
|
8628
|
-
"onUpdate:modelValue":
|
|
8628
|
+
"onUpdate:modelValue": L[5] || (L[5] = (ne) => f.value = ne),
|
|
8629
8629
|
class: "ao-activity-details__multiselect",
|
|
8630
8630
|
mode: "single",
|
|
8631
8631
|
searchable: !0,
|
|
@@ -8641,7 +8641,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8641
8641
|
v("div", av, [
|
|
8642
8642
|
A(wn, {
|
|
8643
8643
|
modelValue: r.value,
|
|
8644
|
-
"onUpdate:modelValue":
|
|
8644
|
+
"onUpdate:modelValue": L[6] || (L[6] = (ne) => r.value = ne),
|
|
8645
8645
|
modelModifiers: { lazy: !0 },
|
|
8646
8646
|
label: m.$t("activity.important.label"),
|
|
8647
8647
|
disabled: !n.value,
|
|
@@ -8656,7 +8656,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8656
8656
|
m.isTemplate !== !0 && m.activity.createdBy.id === m.userId ? (p(), g("div", nv, [
|
|
8657
8657
|
A(wn, {
|
|
8658
8658
|
modelValue: l.value,
|
|
8659
|
-
"onUpdate:modelValue":
|
|
8659
|
+
"onUpdate:modelValue": L[7] || (L[7] = (ne) => l.value = ne),
|
|
8660
8660
|
modelModifiers: { lazy: !0 },
|
|
8661
8661
|
label: m.$t("activity.private.label"),
|
|
8662
8662
|
disabled: !n.value,
|
|
@@ -8681,7 +8681,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8681
8681
|
v("span", uv, G(m.$t("activity.dependingOn.label")), 1),
|
|
8682
8682
|
A($e, {
|
|
8683
8683
|
modelValue: h.value,
|
|
8684
|
-
"onUpdate:modelValue":
|
|
8684
|
+
"onUpdate:modelValue": L[8] || (L[8] = (ne) => h.value = ne),
|
|
8685
8685
|
class: "ao-activity-details__multiselect",
|
|
8686
8686
|
mode: "tags",
|
|
8687
8687
|
"close-on-select": !1,
|
|
@@ -8697,7 +8697,7 @@ const wn = /* @__PURE__ */ z({
|
|
|
8697
8697
|
v("span", pv, G(m.$t("activity.blocking.label")), 1),
|
|
8698
8698
|
A($e, {
|
|
8699
8699
|
modelValue: b.value,
|
|
8700
|
-
"onUpdate:modelValue":
|
|
8700
|
+
"onUpdate:modelValue": L[9] || (L[9] = (ne) => b.value = ne),
|
|
8701
8701
|
class: "ao-activity-details__multiselect",
|
|
8702
8702
|
mode: "tags",
|
|
8703
8703
|
"close-on-select": !1,
|
|
@@ -8941,7 +8941,7 @@ const _v = {
|
|
|
8941
8941
|
);
|
|
8942
8942
|
const i = S(() => {
|
|
8943
8943
|
var M, m;
|
|
8944
|
-
return (m = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : m.find((
|
|
8944
|
+
return (m = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : m.find((L) => L.id === a.phaseId);
|
|
8945
8945
|
});
|
|
8946
8946
|
de(
|
|
8947
8947
|
() => {
|
|
@@ -8955,7 +8955,7 @@ const _v = {
|
|
|
8955
8955
|
const r = S(() => {
|
|
8956
8956
|
var M, m;
|
|
8957
8957
|
return (m = (M = i.value) == null ? void 0 : M.milestones) == null ? void 0 : m.find(
|
|
8958
|
-
(
|
|
8958
|
+
(L) => L.id === a.milestoneId
|
|
8959
8959
|
);
|
|
8960
8960
|
});
|
|
8961
8961
|
de(
|
|
@@ -8969,23 +8969,23 @@ const _v = {
|
|
|
8969
8969
|
);
|
|
8970
8970
|
const l = S(() => {
|
|
8971
8971
|
var M, m;
|
|
8972
|
-
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((
|
|
8972
|
+
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((L, J) => {
|
|
8973
8973
|
const ae = J.milestones || [];
|
|
8974
|
-
return [...
|
|
8974
|
+
return [...L, ...ae];
|
|
8975
8975
|
}, [])) || [];
|
|
8976
8976
|
}), c = S(() => {
|
|
8977
8977
|
var M, m;
|
|
8978
|
-
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((
|
|
8978
|
+
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((L, J) => {
|
|
8979
8979
|
const le = (J.milestones || []).reduce(
|
|
8980
8980
|
(ne, re) => re.activities ? [...ne, ...re.activities] : ne,
|
|
8981
8981
|
[]
|
|
8982
8982
|
);
|
|
8983
|
-
return [...
|
|
8983
|
+
return [...L, ...le];
|
|
8984
8984
|
}, [])) || [];
|
|
8985
8985
|
}), u = S(() => {
|
|
8986
8986
|
var M, m;
|
|
8987
8987
|
return (m = (M = r.value) == null ? void 0 : M.activities) == null ? void 0 : m.find(
|
|
8988
|
-
(
|
|
8988
|
+
(L) => L.id === a.activityId
|
|
8989
8989
|
);
|
|
8990
8990
|
}), f = S(() => {
|
|
8991
8991
|
var M;
|
|
@@ -9033,7 +9033,7 @@ const _v = {
|
|
|
9033
9033
|
}, k = (M) => {
|
|
9034
9034
|
if (!i.value)
|
|
9035
9035
|
return;
|
|
9036
|
-
const { name: m, rank:
|
|
9036
|
+
const { name: m, rank: L } = Bt(
|
|
9037
9037
|
i.value.milestones,
|
|
9038
9038
|
"milestone",
|
|
9039
9039
|
n
|
|
@@ -9044,7 +9044,7 @@ const _v = {
|
|
|
9044
9044
|
phaseId: M.phaseId,
|
|
9045
9045
|
item: {
|
|
9046
9046
|
name: m,
|
|
9047
|
-
rank:
|
|
9047
|
+
rank: L,
|
|
9048
9048
|
phaseId: M.phaseId
|
|
9049
9049
|
}
|
|
9050
9050
|
});
|
|
@@ -9058,18 +9058,18 @@ const _v = {
|
|
|
9058
9058
|
}
|
|
9059
9059
|
});
|
|
9060
9060
|
}, C = (M) => {
|
|
9061
|
-
const { id: m, ...
|
|
9061
|
+
const { id: m, ...L } = M;
|
|
9062
9062
|
e("updateItem", {
|
|
9063
9063
|
itemType: Ce.MILESTONES,
|
|
9064
9064
|
id: m,
|
|
9065
9065
|
templateId: a.templateId,
|
|
9066
|
-
data:
|
|
9066
|
+
data: L
|
|
9067
9067
|
});
|
|
9068
9068
|
}, D = (M) => {
|
|
9069
9069
|
const { milestoneId: m } = M;
|
|
9070
9070
|
if (!r.value)
|
|
9071
9071
|
return;
|
|
9072
|
-
const { name:
|
|
9072
|
+
const { name: L, rank: J } = Bt(
|
|
9073
9073
|
r.value.activities,
|
|
9074
9074
|
"activity",
|
|
9075
9075
|
n
|
|
@@ -9078,26 +9078,26 @@ const _v = {
|
|
|
9078
9078
|
type: Ce.ACTIVITIES,
|
|
9079
9079
|
milestoneId: m,
|
|
9080
9080
|
templateId: a.templateId,
|
|
9081
|
-
item: { name:
|
|
9081
|
+
item: { name: L, rank: J, milestoneId: m }
|
|
9082
9082
|
});
|
|
9083
|
-
},
|
|
9084
|
-
var m,
|
|
9083
|
+
}, I = (M) => {
|
|
9084
|
+
var m, L;
|
|
9085
9085
|
e("removeItem", {
|
|
9086
9086
|
type: Ce.ACTIVITIES,
|
|
9087
9087
|
templateId: a.templateId,
|
|
9088
9088
|
phaseId: (m = i.value) == null ? void 0 : m.id,
|
|
9089
|
-
milestoneId: (
|
|
9089
|
+
milestoneId: (L = r.value) == null ? void 0 : L.id,
|
|
9090
9090
|
data: {
|
|
9091
9091
|
id: M.id
|
|
9092
9092
|
}
|
|
9093
9093
|
});
|
|
9094
9094
|
}, H = (M) => {
|
|
9095
|
-
const { id: m, ...
|
|
9095
|
+
const { id: m, ...L } = M;
|
|
9096
9096
|
e("updateItem", {
|
|
9097
9097
|
itemType: Ce.ACTIVITIES,
|
|
9098
9098
|
id: m,
|
|
9099
9099
|
templateId: a.templateId,
|
|
9100
|
-
data:
|
|
9100
|
+
data: L
|
|
9101
9101
|
});
|
|
9102
9102
|
}, F = ee(!1), U = () => {
|
|
9103
9103
|
F.value = !F.value;
|
|
@@ -9108,13 +9108,13 @@ const _v = {
|
|
|
9108
9108
|
}, x = (M) => {
|
|
9109
9109
|
var m;
|
|
9110
9110
|
if (M.moved) {
|
|
9111
|
-
const
|
|
9111
|
+
const L = Ca(M, ((m = s.value) == null ? void 0 : m.phases) ?? []);
|
|
9112
9112
|
e("updateItem", {
|
|
9113
9113
|
itemType: Ce.PHASES,
|
|
9114
9114
|
id: M.moved.element.id,
|
|
9115
9115
|
templateId: a.templateId,
|
|
9116
9116
|
data: {
|
|
9117
|
-
rank:
|
|
9117
|
+
rank: L
|
|
9118
9118
|
}
|
|
9119
9119
|
});
|
|
9120
9120
|
}
|
|
@@ -9149,7 +9149,7 @@ const _v = {
|
|
|
9149
9149
|
e("removeFile", M);
|
|
9150
9150
|
};
|
|
9151
9151
|
return (M, m) => {
|
|
9152
|
-
var
|
|
9152
|
+
var L, J, ae, le, ne, re;
|
|
9153
9153
|
return s.value ? (p(), g("div", _v, [
|
|
9154
9154
|
A(Ga, {
|
|
9155
9155
|
"can-go-back": !0,
|
|
@@ -9220,7 +9220,7 @@ const _v = {
|
|
|
9220
9220
|
key: 0,
|
|
9221
9221
|
"template-id": M.templateId,
|
|
9222
9222
|
phase: i.value,
|
|
9223
|
-
"milestone-id": (
|
|
9223
|
+
"milestone-id": (L = r.value) == null ? void 0 : L.id,
|
|
9224
9224
|
onAddMilestone: k,
|
|
9225
9225
|
onUpdateMilestone: C,
|
|
9226
9226
|
onUpdatePhase: y,
|
|
@@ -9236,7 +9236,7 @@ const _v = {
|
|
|
9236
9236
|
"activity-id": (ae = u.value) == null ? void 0 : ae.id,
|
|
9237
9237
|
onAddActivity: D,
|
|
9238
9238
|
onUpdateActivity: H,
|
|
9239
|
-
onRemoveActivity:
|
|
9239
|
+
onRemoveActivity: I
|
|
9240
9240
|
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : T("", !0)
|
|
9241
9241
|
])
|
|
9242
9242
|
])
|
|
@@ -9968,7 +9968,7 @@ const ci = /* @__PURE__ */ j(h9, [["render", C9], ["__scopeId", "data-v-cbe33527
|
|
|
9968
9968
|
e("addFiles", O);
|
|
9969
9969
|
}, D = (O) => {
|
|
9970
9970
|
e("removeFile", O);
|
|
9971
|
-
},
|
|
9971
|
+
}, I = (O) => {
|
|
9972
9972
|
e("addComment", O);
|
|
9973
9973
|
}, H = (O) => {
|
|
9974
9974
|
e("updateComment", O);
|
|
@@ -10065,7 +10065,7 @@ const ci = /* @__PURE__ */ j(h9, [["render", C9], ["__scopeId", "data-v-cbe33527
|
|
|
10065
10065
|
onDeleteSubtask: k,
|
|
10066
10066
|
onAddFiles: C,
|
|
10067
10067
|
onRemoveFile: D,
|
|
10068
|
-
onAddComment:
|
|
10068
|
+
onAddComment: I,
|
|
10069
10069
|
onUpdateComment: H,
|
|
10070
10070
|
onRemoveComment: F
|
|
10071
10071
|
}, {
|
|
@@ -10136,6 +10136,7 @@ const b9 = { class: "ao-card-feed__header" }, w9 = {
|
|
|
10136
10136
|
deadline: {},
|
|
10137
10137
|
important: { type: Boolean },
|
|
10138
10138
|
assignee: {},
|
|
10139
|
+
slug: {},
|
|
10139
10140
|
comments: {},
|
|
10140
10141
|
attachments: {},
|
|
10141
10142
|
tasks: {},
|
|
@@ -10201,6 +10202,7 @@ const b9 = { class: "ao-card-feed__header" }, w9 = {
|
|
|
10201
10202
|
default: W(() => [
|
|
10202
10203
|
v("div", k9, [
|
|
10203
10204
|
i.value ? (p(), g("span", S9, G(i.value), 1)) : T("", !0),
|
|
10205
|
+
v("div", null, G(h.slug), 1),
|
|
10204
10206
|
v("div", A9, [
|
|
10205
10207
|
A(ye, {
|
|
10206
10208
|
id: h.id,
|
|
@@ -11368,7 +11370,7 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11368
11370
|
}, null, 8, ["title"]),
|
|
11369
11371
|
A(wn, {
|
|
11370
11372
|
modelValue: k.value,
|
|
11371
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
11373
|
+
"onUpdate:modelValue": C[0] || (C[0] = (I) => k.value = I),
|
|
11372
11374
|
modelModifiers: { lazy: !0 },
|
|
11373
11375
|
disabled: !_.isEditable,
|
|
11374
11376
|
class: "ao-milestone__important",
|
|
@@ -11384,7 +11386,7 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11384
11386
|
v("div", _4, [
|
|
11385
11387
|
v("label", y4, [
|
|
11386
11388
|
Ke(v("input", {
|
|
11387
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
11389
|
+
"onUpdate:modelValue": C[1] || (C[1] = (I) => h.value = I),
|
|
11388
11390
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
11389
11391
|
type: "date"
|
|
11390
11392
|
}, null, 512), [
|
|
@@ -11401,7 +11403,7 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11401
11403
|
v("label", w4, [
|
|
11402
11404
|
A($e, {
|
|
11403
11405
|
modelValue: y.value,
|
|
11404
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
11406
|
+
"onUpdate:modelValue": C[2] || (C[2] = (I) => y.value = I),
|
|
11405
11407
|
options: b.value,
|
|
11406
11408
|
"close-on-select": !0,
|
|
11407
11409
|
searchable: !0,
|
|
@@ -11413,14 +11415,14 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11413
11415
|
caret: _.isEditable
|
|
11414
11416
|
}, {
|
|
11415
11417
|
tag: W(({
|
|
11416
|
-
option:
|
|
11418
|
+
option: I,
|
|
11417
11419
|
handleTagRemove: H
|
|
11418
11420
|
}) => [
|
|
11419
11421
|
A(Je, {
|
|
11420
|
-
"user-name":
|
|
11421
|
-
"avatar-url":
|
|
11422
|
+
"user-name": I.label,
|
|
11423
|
+
"avatar-url": I.avatar,
|
|
11422
11424
|
"is-closable": !0,
|
|
11423
|
-
onClose: (F) => H(
|
|
11425
|
+
onClose: (F) => H(I, F)
|
|
11424
11426
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
11425
11427
|
]),
|
|
11426
11428
|
_: 1
|
|
@@ -11429,7 +11431,7 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11429
11431
|
]),
|
|
11430
11432
|
A(p4, {
|
|
11431
11433
|
color: d.value,
|
|
11432
|
-
"onUpdate:color": C[3] || (C[3] = (
|
|
11434
|
+
"onUpdate:color": C[3] || (C[3] = (I) => d.value = I)
|
|
11433
11435
|
}, null, 8, ["color"])
|
|
11434
11436
|
])) : T("", !0)
|
|
11435
11437
|
]),
|
|
@@ -11441,36 +11443,37 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11441
11443
|
"item-key": "id",
|
|
11442
11444
|
group: "kanban"
|
|
11443
11445
|
}, _.$attrs, { onChange: f }), {
|
|
11444
|
-
item: W(({ element:
|
|
11446
|
+
item: W(({ element: I }) => {
|
|
11445
11447
|
var H, F, U, q, O;
|
|
11446
11448
|
return [
|
|
11447
11449
|
A(di, {
|
|
11448
|
-
id:
|
|
11449
|
-
name:
|
|
11450
|
+
id: I.id,
|
|
11451
|
+
name: I.name || I.id,
|
|
11450
11452
|
"phase-name": (H = s.value) == null ? void 0 : H.name,
|
|
11451
11453
|
"milestone-name": (F = i.value) == null ? void 0 : F.name,
|
|
11452
11454
|
"milestone-color": (U = i.value) == null ? void 0 : U.color,
|
|
11453
|
-
deadline:
|
|
11454
|
-
important:
|
|
11455
|
+
deadline: I.deadline,
|
|
11456
|
+
important: I.important,
|
|
11455
11457
|
users: _.users,
|
|
11456
|
-
assignee:
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
|
|
11458
|
+
assignee: I.assignee,
|
|
11459
|
+
slug: I.slug,
|
|
11460
|
+
comments: (q = I.comments) == null ? void 0 : q.length,
|
|
11461
|
+
attachments: (O = I.attachments) == null ? void 0 : O.length,
|
|
11462
|
+
tasks: I.tasks,
|
|
11460
11463
|
"is-editable": _.isEditable,
|
|
11461
|
-
"is-private":
|
|
11462
|
-
"is-closed": w(
|
|
11464
|
+
"is-private": I.private,
|
|
11465
|
+
"is-closed": w(I),
|
|
11463
11466
|
onClick: (x) => _.$router.push({
|
|
11464
11467
|
name: Q(Fe).activity,
|
|
11465
|
-
params: { milestoneId: _.milestoneId, activityId:
|
|
11468
|
+
params: { milestoneId: _.milestoneId, activityId: I.id }
|
|
11466
11469
|
}),
|
|
11467
11470
|
onUpdateActivity: u,
|
|
11468
|
-
onRemoveAssignee: () => u({ id:
|
|
11471
|
+
onRemoveAssignee: () => u({ id: I.id, assigneeId: null })
|
|
11469
11472
|
}, Za({ _: 2 }, [
|
|
11470
11473
|
_.isEditable ? {
|
|
11471
11474
|
name: "secondary",
|
|
11472
11475
|
fn: W(() => [
|
|
11473
|
-
_.isEditable &&
|
|
11476
|
+
_.isEditable && I.active ? (p(), P(ce, {
|
|
11474
11477
|
key: 0,
|
|
11475
11478
|
color: "primary",
|
|
11476
11479
|
variant: "ghost",
|
|
@@ -11479,9 +11482,9 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11479
11482
|
"icon-position": "start",
|
|
11480
11483
|
corners: "round",
|
|
11481
11484
|
label: _.$t("archive"),
|
|
11482
|
-
onClick: fe(() => _.$emit("archiveActivity", { id:
|
|
11485
|
+
onClick: fe(() => _.$emit("archiveActivity", { id: I.id }), ["stop"])
|
|
11483
11486
|
}, null, 8, ["label", "onClick"])) : T("", !0),
|
|
11484
|
-
_.isEditable && !
|
|
11487
|
+
_.isEditable && !I.active ? (p(), P(ce, {
|
|
11485
11488
|
key: 1,
|
|
11486
11489
|
color: "primary",
|
|
11487
11490
|
variant: "ghost",
|
|
@@ -11491,14 +11494,14 @@ const p4 = /* @__PURE__ */ j(u4, [["render", d4]]), f4 = { class: "ao-project-mi
|
|
|
11491
11494
|
corners: "round",
|
|
11492
11495
|
label: _.$t("feed.activity.unarchive"),
|
|
11493
11496
|
onClick: fe(
|
|
11494
|
-
() => _.$emit("unarchiveActivity", { id:
|
|
11497
|
+
() => _.$emit("unarchiveActivity", { id: I.id }),
|
|
11495
11498
|
["stop"]
|
|
11496
11499
|
)
|
|
11497
11500
|
}, null, 8, ["label", "onClick"])) : T("", !0)
|
|
11498
11501
|
]),
|
|
11499
11502
|
key: "0"
|
|
11500
11503
|
} : void 0
|
|
11501
|
-
]), 1032, ["id", "name", "phase-name", "milestone-name", "milestone-color", "deadline", "important", "users", "assignee", "comments", "attachments", "tasks", "is-editable", "is-private", "is-closed", "onClick", "onRemoveAssignee"])
|
|
11504
|
+
]), 1032, ["id", "name", "phase-name", "milestone-name", "milestone-color", "deadline", "important", "users", "assignee", "slug", "comments", "attachments", "tasks", "is-editable", "is-private", "is-closed", "onClick", "onRemoveAssignee"])
|
|
11502
11505
|
];
|
|
11503
11506
|
}),
|
|
11504
11507
|
_: 1
|
|
@@ -11819,7 +11822,7 @@ const R4 = {
|
|
|
11819
11822
|
}
|
|
11820
11823
|
}), {
|
|
11821
11824
|
item: W(({ element: d }) => {
|
|
11822
|
-
var h, w, b, y, k, _, C, D,
|
|
11825
|
+
var h, w, b, y, k, _, C, D, I;
|
|
11823
11826
|
return [
|
|
11824
11827
|
A(di, {
|
|
11825
11828
|
class: K(o(d) ? "ao-list-draggable" : ""),
|
|
@@ -11837,9 +11840,10 @@ const R4 = {
|
|
|
11837
11840
|
important: d.important,
|
|
11838
11841
|
type: d.type,
|
|
11839
11842
|
comments: (D = d.comments) == null ? void 0 : D.length,
|
|
11840
|
-
attachments: (
|
|
11843
|
+
attachments: (I = d.attachments) == null ? void 0 : I.length,
|
|
11841
11844
|
users: u.users,
|
|
11842
11845
|
assignee: d.assignee,
|
|
11846
|
+
slug: d.slug,
|
|
11843
11847
|
"is-editable": o(d),
|
|
11844
11848
|
"is-private": d.private,
|
|
11845
11849
|
"tag-type": u.tagType,
|
|
@@ -11872,7 +11876,7 @@ const R4 = {
|
|
|
11872
11876
|
}, null, 8, ["label", "onClick"])) : T("", !0)
|
|
11873
11877
|
]),
|
|
11874
11878
|
_: 2
|
|
11875
|
-
}, 1032, ["class", "id", "name", "project-name", "project-color", "phase-name", "milestone-name", "milestone-color", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "is-editable", "is-private", "tag-type", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
11879
|
+
}, 1032, ["class", "id", "name", "project-name", "project-color", "phase-name", "milestone-name", "milestone-color", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "slug", "is-editable", "is-private", "tag-type", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
11876
11880
|
];
|
|
11877
11881
|
}),
|
|
11878
11882
|
footer: W(() => [
|
|
@@ -11970,7 +11974,7 @@ const K4 = { class: "ao-feed" }, G4 = { class: "ao-feed__filters" }, X4 = { clas
|
|
|
11970
11974
|
de(
|
|
11971
11975
|
[() => a.statuses, () => a.activities, () => a.initialActivityId],
|
|
11972
11976
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11973
|
-
async ([E, N, M], [m,
|
|
11977
|
+
async ([E, N, M], [m, L]) => {
|
|
11974
11978
|
i.value = Object.fromEntries(
|
|
11975
11979
|
E.map((J) => [
|
|
11976
11980
|
J.id,
|
|
@@ -11979,7 +11983,7 @@ const K4 = { class: "ao-feed" }, G4 = { class: "ao-feed__filters" }, X4 = { clas
|
|
|
11979
11983
|
return ((le = ae.status) == null ? void 0 : le.id) === J.id;
|
|
11980
11984
|
})
|
|
11981
11985
|
])
|
|
11982
|
-
), M && !r.value && (o(M), r.value = !0), l.value && Xe(N,
|
|
11986
|
+
), M && !r.value && (o(M), r.value = !0), l.value && Xe(N, L);
|
|
11983
11987
|
},
|
|
11984
11988
|
{ immediate: !0 }
|
|
11985
11989
|
);
|
|
@@ -11988,12 +11992,12 @@ const K4 = { class: "ao-feed" }, G4 = { class: "ao-feed__filters" }, X4 = { clas
|
|
|
11988
11992
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((E = a.selectedActivity.milestone.phase) == null ? void 0 : E.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
11989
11993
|
}), f = (E) => {
|
|
11990
11994
|
var J, ae;
|
|
11991
|
-
const N = (J = a.activities) == null ? void 0 : J.at(-1), M = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(), m = ((ae = a.activities) == null ? void 0 : ae.length) ?? 0,
|
|
11995
|
+
const N = (J = a.activities) == null ? void 0 : J.at(-1), M = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(), m = ((ae = a.activities) == null ? void 0 : ae.length) ?? 0, L = {
|
|
11992
11996
|
name: n("activity.defaultName", { idx: m + 1 }),
|
|
11993
11997
|
rank: M.format(),
|
|
11994
11998
|
statusId: E.id
|
|
11995
11999
|
};
|
|
11996
|
-
a.filters.assigneeId.length > 0 && (
|
|
12000
|
+
a.filters.assigneeId.length > 0 && (L.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (L.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (L.typeId = a.filters.typeId[0]), l.value = !0, e("addActivity", L);
|
|
11997
12001
|
}, d = (E, N) => {
|
|
11998
12002
|
l.value = !1, e("update:filters", { ...a.filters, [E]: N });
|
|
11999
12003
|
}, h = S(
|
|
@@ -12019,7 +12023,7 @@ const K4 = { class: "ao-feed" }, G4 = { class: "ao-feed__filters" }, X4 = { clas
|
|
|
12019
12023
|
e("archiveActivity", E);
|
|
12020
12024
|
}, D = (E) => {
|
|
12021
12025
|
e("unarchiveActivity", E);
|
|
12022
|
-
},
|
|
12026
|
+
}, I = (E) => {
|
|
12023
12027
|
l.value = !1, e("update:searchText", E);
|
|
12024
12028
|
}, H = (E) => {
|
|
12025
12029
|
l.value = !1, e("clear:searchText", E);
|
|
@@ -12064,7 +12068,7 @@ const K4 = { class: "ao-feed" }, G4 = { class: "ao-feed__filters" }, X4 = { clas
|
|
|
12064
12068
|
"model-value": E.searchText,
|
|
12065
12069
|
placeholder: E.$t("feed.search.placeholder"),
|
|
12066
12070
|
class: "ao-feed__search",
|
|
12067
|
-
"onUpdate:modelValue":
|
|
12071
|
+
"onUpdate:modelValue": I,
|
|
12068
12072
|
onClear: H
|
|
12069
12073
|
}, null, 8, ["model-value", "placeholder"]),
|
|
12070
12074
|
a.project ? T("", !0) : (p(), P($e, {
|
|
@@ -12102,13 +12106,13 @@ const K4 = { class: "ao-feed" }, G4 = { class: "ao-feed__filters" }, X4 = { clas
|
|
|
12102
12106
|
}, {
|
|
12103
12107
|
tag: W(({
|
|
12104
12108
|
option: m,
|
|
12105
|
-
handleTagRemove:
|
|
12109
|
+
handleTagRemove: L
|
|
12106
12110
|
}) => [
|
|
12107
12111
|
A(Je, {
|
|
12108
12112
|
"user-name": m.label,
|
|
12109
12113
|
"avatar-url": m.avatar,
|
|
12110
12114
|
"is-closable": !0,
|
|
12111
|
-
onClose: (J) =>
|
|
12115
|
+
onClose: (J) => L(m, J)
|
|
12112
12116
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12113
12117
|
]),
|
|
12114
12118
|
_: 1
|