@26lights/orcha 0.15.1 → 0.15.3
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 +1 -1
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +133 -130
- package/dist/orcha.umd.js +2 -2
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -2685,12 +2685,12 @@ var Mc = {
|
|
|
2685
2685
|
const kc = Mc;
|
|
2686
2686
|
var Ac = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Sc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tc = /^'([^]*?)'?$/, Ec = /''/g, Ic = /[a-zA-Z]/;
|
|
2687
2687
|
function Oc(a, e, t) {
|
|
2688
|
-
var s, n, o, i, l, r, d, u, f, p, C, $, M, S, _, g,
|
|
2688
|
+
var s, n, o, i, l, r, d, u, f, p, C, $, M, S, _, g, L, R;
|
|
2689
2689
|
ge(2, arguments);
|
|
2690
2690
|
var K = String(e), D = n1(), X = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : D.locale) !== null && s !== void 0 ? s : kc, ae = Ke((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (d = t.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : D.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = D.locale) === null || f === void 0 || (p = f.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2691
2691
|
if (!(ae >= 1 && ae <= 7))
|
|
2692
2692
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2693
|
-
var I = Ke((C = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (
|
|
2693
|
+
var I = Ke((C = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (L = D.locale) === null || L === void 0 || (R = L.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && C !== void 0 ? C : 0);
|
|
2694
2694
|
if (!(I >= 0 && I <= 6))
|
|
2695
2695
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2696
2696
|
if (!X.localize)
|
|
@@ -4282,7 +4282,7 @@ const l3 = async (a, e, t) => {
|
|
|
4282
4282
|
fn: _
|
|
4283
4283
|
} = l[M], {
|
|
4284
4284
|
x: g,
|
|
4285
|
-
y:
|
|
4285
|
+
y: L,
|
|
4286
4286
|
data: R,
|
|
4287
4287
|
reset: K
|
|
4288
4288
|
} = await _({
|
|
@@ -4299,7 +4299,7 @@ const l3 = async (a, e, t) => {
|
|
|
4299
4299
|
floating: e
|
|
4300
4300
|
}
|
|
4301
4301
|
});
|
|
4302
|
-
if (u = g ?? u, f =
|
|
4302
|
+
if (u = g ?? u, f = L ?? f, C = {
|
|
4303
4303
|
...C,
|
|
4304
4304
|
[S]: {
|
|
4305
4305
|
...C[S],
|
|
@@ -4350,7 +4350,7 @@ async function Ta(a, e) {
|
|
|
4350
4350
|
...i.floating,
|
|
4351
4351
|
x: s,
|
|
4352
4352
|
y: n
|
|
4353
|
-
} : i.reference,
|
|
4353
|
+
} : i.reference, L = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), R = await (o.isElement == null ? void 0 : o.isElement(L)) ? await (o.getScale == null ? void 0 : o.getScale(L)) || {
|
|
4354
4354
|
x: 1,
|
|
4355
4355
|
y: 1
|
|
4356
4356
|
} : {
|
|
@@ -4358,7 +4358,7 @@ async function Ta(a, e) {
|
|
|
4358
4358
|
y: 1
|
|
4359
4359
|
}, K = Qt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4360
4360
|
rect: g,
|
|
4361
|
-
offsetParent:
|
|
4361
|
+
offsetParent: L,
|
|
4362
4362
|
strategy: r
|
|
4363
4363
|
}) : g);
|
|
4364
4364
|
return {
|
|
@@ -4392,12 +4392,12 @@ const r3 = function(a) {
|
|
|
4392
4392
|
} = V1(a, e);
|
|
4393
4393
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
4394
4394
|
return {};
|
|
4395
|
-
const _ = ht(n), g = ht(l) === l,
|
|
4396
|
-
!p && $ !== "none" && R.push(...s3(l, M, $,
|
|
4395
|
+
const _ = ht(n), g = ht(l) === l, L = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), R = p || (g || !M ? [Xt(l)] : a3(l));
|
|
4396
|
+
!p && $ !== "none" && R.push(...s3(l, M, $, L));
|
|
4397
4397
|
const K = [l, ...R], D = await Ta(e, S), X = [];
|
|
4398
4398
|
let ae = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4399
4399
|
if (u && X.push(D[_]), f) {
|
|
4400
|
-
const A = t3(n, i,
|
|
4400
|
+
const A = t3(n, i, L);
|
|
4401
4401
|
X.push(D[A[0]], D[A[1]]);
|
|
4402
4402
|
}
|
|
4403
4403
|
if (ae = [...ae, {
|
|
@@ -4460,22 +4460,22 @@ const r3 = function(a) {
|
|
|
4460
4460
|
let $, M;
|
|
4461
4461
|
d === "top" || d === "bottom" ? ($ = d, M = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (M = d, $ = u === "end" ? "top" : "bottom");
|
|
4462
4462
|
const S = C - r[$], _ = p - r[M], g = !e.middlewareData.shift;
|
|
4463
|
-
let
|
|
4463
|
+
let L = S, R = _;
|
|
4464
4464
|
if (f) {
|
|
4465
4465
|
const D = p - r.left - r.right;
|
|
4466
4466
|
R = u || g ? Lt(_, D) : D;
|
|
4467
4467
|
} else {
|
|
4468
4468
|
const D = C - r.top - r.bottom;
|
|
4469
|
-
|
|
4469
|
+
L = u || g ? Lt(S, D) : D;
|
|
4470
4470
|
}
|
|
4471
4471
|
if (g && !u) {
|
|
4472
4472
|
const D = ke(r.left, 0), X = ke(r.right, 0), ae = ke(r.top, 0), I = ke(r.bottom, 0);
|
|
4473
|
-
f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) :
|
|
4473
|
+
f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) : L = C - 2 * (ae !== 0 || I !== 0 ? ae + I : ke(r.top, r.bottom));
|
|
4474
4474
|
}
|
|
4475
4475
|
await i({
|
|
4476
4476
|
...e,
|
|
4477
4477
|
availableWidth: R,
|
|
4478
|
-
availableHeight:
|
|
4478
|
+
availableHeight: L
|
|
4479
4479
|
});
|
|
4480
4480
|
const K = await n.getDimensions(o.floating);
|
|
4481
4481
|
return p !== K.width || C !== K.height ? {
|
|
@@ -4624,8 +4624,8 @@ function et(a, e, t, s) {
|
|
|
4624
4624
|
const p = we(o), C = s && je(s) ? we(s) : s;
|
|
4625
4625
|
let $ = p.frameElement;
|
|
4626
4626
|
for (; $ && s && C !== p; ) {
|
|
4627
|
-
const M = vt($), S = $.getBoundingClientRect(), _ = Te($), g = S.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x,
|
|
4628
|
-
r *= M.x, d *= M.y, u *= M.x, f *= M.y, r += g, d +=
|
|
4627
|
+
const M = vt($), S = $.getBoundingClientRect(), _ = Te($), g = S.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x, L = S.top + ($.clientTop + parseFloat(_.paddingTop)) * M.y;
|
|
4628
|
+
r *= M.x, d *= M.y, u *= M.x, f *= M.y, r += g, d += L, $ = we($).frameElement;
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
4631
|
return Qt({
|
|
@@ -4840,17 +4840,17 @@ function A3(a, e) {
|
|
|
4840
4840
|
rootMargin: -C + "px " + -$ + "px " + -M + "px " + -S + "px",
|
|
4841
4841
|
threshold: ke(0, Lt(1, r)) || 1
|
|
4842
4842
|
};
|
|
4843
|
-
let
|
|
4843
|
+
let L = !0;
|
|
4844
4844
|
function R(K) {
|
|
4845
4845
|
const D = K[0].intersectionRatio;
|
|
4846
4846
|
if (D !== r) {
|
|
4847
|
-
if (!
|
|
4847
|
+
if (!L)
|
|
4848
4848
|
return i();
|
|
4849
4849
|
D ? i(!1, D) : s = setTimeout(() => {
|
|
4850
4850
|
i(!1, 1e-7);
|
|
4851
4851
|
}, 100);
|
|
4852
4852
|
}
|
|
4853
|
-
|
|
4853
|
+
L = !1;
|
|
4854
4854
|
}
|
|
4855
4855
|
try {
|
|
4856
4856
|
t = new IntersectionObserver(R, {
|
|
@@ -5072,7 +5072,7 @@ function P3(a, e, t) {
|
|
|
5072
5072
|
delay: S,
|
|
5073
5073
|
resolveOnLoad: _,
|
|
5074
5074
|
minChars: g,
|
|
5075
|
-
filterResults:
|
|
5075
|
+
filterResults: L,
|
|
5076
5076
|
clearOnSearch: R,
|
|
5077
5077
|
clearOnSelect: K,
|
|
5078
5078
|
valueProp: D,
|
|
@@ -5088,7 +5088,7 @@ function P3(a, e, t) {
|
|
|
5088
5088
|
infinite: le,
|
|
5089
5089
|
groupOptions: ie,
|
|
5090
5090
|
groupHideEmpty: O,
|
|
5091
|
-
groupSelect:
|
|
5091
|
+
groupSelect: V,
|
|
5092
5092
|
onCreate: W,
|
|
5093
5093
|
disabledProp: y,
|
|
5094
5094
|
searchStart: Y,
|
|
@@ -5252,7 +5252,7 @@ function P3(a, e, t) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
A.value || Ra();
|
|
5254
5254
|
}, Xa = (m) => {
|
|
5255
|
-
if (!(h1(m) || n.value === "single" || !
|
|
5255
|
+
if (!(h1(m) || n.value === "single" || !V.value)) {
|
|
5256
5256
|
switch (n.value) {
|
|
5257
5257
|
case "multiple":
|
|
5258
5258
|
case "tags":
|
|
@@ -5275,7 +5275,7 @@ function P3(a, e, t) {
|
|
|
5275
5275
|
(H) => U.value ? H.__VISIBLE__.length : H[ie.value].length
|
|
5276
5276
|
) : m.filter((H) => U.value ? H.__VISIBLE__.length : !0), _1 = (m, H = !0) => {
|
|
5277
5277
|
let se = m;
|
|
5278
|
-
if (U.value &&
|
|
5278
|
+
if (U.value && L.value) {
|
|
5279
5279
|
let ve = he.value;
|
|
5280
5280
|
ve || (ve = (yt, F4) => {
|
|
5281
5281
|
let G1 = $1(ja(yt[Oe.value]), b.value);
|
|
@@ -5404,7 +5404,7 @@ function B3(a, e, t) {
|
|
|
5404
5404
|
groupSelect: d,
|
|
5405
5405
|
disabledProp: u,
|
|
5406
5406
|
groupOptions: f
|
|
5407
|
-
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer,
|
|
5407
|
+
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, L = t.clearPointer, R = t.multiselect, K = t.isOpen, D = w(() => p.value.filter((E) => !E[u.value])), X = w(() => C.value.filter((E) => !E[u.value])), ae = w(() => r.value !== "single" && d.value), I = w(() => _.value && _.value.group), ee = w(() => Z(_.value)), b = w(() => {
|
|
5408
5408
|
const E = I.value ? _.value : (
|
|
5409
5409
|
/* istanbul ignore next */
|
|
5410
5410
|
Z(_.value)
|
|
@@ -5420,7 +5420,7 @@ function B3(a, e, t) {
|
|
|
5420
5420
|
}), le = w(() => {
|
|
5421
5421
|
const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5422
5422
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5423
|
-
}), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]),
|
|
5423
|
+
}), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), V = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
|
|
5424
5424
|
g(D.value[0] || null);
|
|
5425
5425
|
}, y = () => {
|
|
5426
5426
|
!_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : $(_.value));
|
|
@@ -5461,7 +5461,7 @@ function B3(a, e, t) {
|
|
|
5461
5461
|
l.value && (U = I.value ? E.parentElement.parentElement.parentElement : E.parentElement.parentElement.parentElement.parentElement), E.offsetTop + E.offsetHeight > U.clientHeight + U.scrollTop && (U.scrollTop = E.offsetTop + E.offsetHeight - U.clientHeight), E.offsetTop < U.scrollTop && (U.scrollTop = E.offsetTop);
|
|
5462
5462
|
};
|
|
5463
5463
|
return re(S, (E) => {
|
|
5464
|
-
o.value && (E.length && n.value ? W() :
|
|
5464
|
+
o.value && (E.length && n.value ? W() : L());
|
|
5465
5465
|
}), re(K, (E) => {
|
|
5466
5466
|
if (E) {
|
|
5467
5467
|
let U = R.value.querySelectorAll("[data-selected]")[0];
|
|
@@ -5475,7 +5475,7 @@ function B3(a, e, t) {
|
|
|
5475
5475
|
}), {
|
|
5476
5476
|
pointer: _,
|
|
5477
5477
|
canPointGroups: ae,
|
|
5478
|
-
isPointed:
|
|
5478
|
+
isPointed: V,
|
|
5479
5479
|
setPointerFirst: W,
|
|
5480
5480
|
selectPointer: y,
|
|
5481
5481
|
forwardPointer: Y,
|
|
@@ -5499,7 +5499,7 @@ function R3(a, e, t) {
|
|
|
5499
5499
|
s.value && i.value.blur(), p.value.blur();
|
|
5500
5500
|
}, g = () => {
|
|
5501
5501
|
s.value && !n.value && i.value.focus();
|
|
5502
|
-
},
|
|
5502
|
+
}, L = (I = !0) => {
|
|
5503
5503
|
n.value || ($.value = !0, I && l());
|
|
5504
5504
|
}, R = () => {
|
|
5505
5505
|
$.value = !1, setTimeout(() => {
|
|
@@ -5515,10 +5515,10 @@ function R3(a, e, t) {
|
|
|
5515
5515
|
mouseClicked: M,
|
|
5516
5516
|
blur: _,
|
|
5517
5517
|
focus: g,
|
|
5518
|
-
activate:
|
|
5518
|
+
activate: L,
|
|
5519
5519
|
deactivate: R,
|
|
5520
5520
|
handleFocusIn: (I) => {
|
|
5521
|
-
I.target.closest("[data-tags]") && I.target.nodeName !== "INPUT" || I.target.closest("[data-clear]") ||
|
|
5521
|
+
I.target.closest("[data-tags]") && I.target.nodeName !== "INPUT" || I.target.closest("[data-clear]") || L(M.value);
|
|
5522
5522
|
},
|
|
5523
5523
|
handleFocusOut: () => {
|
|
5524
5524
|
R();
|
|
@@ -5529,7 +5529,7 @@ function R3(a, e, t) {
|
|
|
5529
5529
|
handleMousedown: (I) => {
|
|
5530
5530
|
M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(C.value)) ? setTimeout(() => {
|
|
5531
5531
|
R();
|
|
5532
|
-
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value &&
|
|
5532
|
+
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value && L(), setTimeout(() => {
|
|
5533
5533
|
M.value = !1;
|
|
5534
5534
|
}, 0);
|
|
5535
5535
|
}
|
|
@@ -5548,26 +5548,26 @@ function U3(a, e, t) {
|
|
|
5548
5548
|
createTag: f,
|
|
5549
5549
|
createOption: p,
|
|
5550
5550
|
reverse: C
|
|
5551
|
-
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer,
|
|
5552
|
-
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(A.value[A.value.map((
|
|
5553
|
-
}, le = (
|
|
5554
|
-
let W =
|
|
5555
|
-
for (; W >= 0 && (
|
|
5551
|
+
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, L = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, A = t.fo, P = w(() => f.value || p.value || !1), ue = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5552
|
+
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(A.value[A.value.map((V) => V[r.value]).indexOf(_.value)]);
|
|
5553
|
+
}, le = (V) => {
|
|
5554
|
+
let W = V.length - 1;
|
|
5555
|
+
for (; W >= 0 && (V[W].remove === !1 || V[W].disabled); )
|
|
5556
5556
|
W--;
|
|
5557
|
-
return W < 0 ||
|
|
5557
|
+
return W < 0 || V.splice(W, 1), V;
|
|
5558
5558
|
};
|
|
5559
5559
|
return {
|
|
5560
|
-
handleKeydown: (
|
|
5561
|
-
e.emit("keydown",
|
|
5560
|
+
handleKeydown: (V) => {
|
|
5561
|
+
e.emit("keydown", V, $);
|
|
5562
5562
|
let W, y;
|
|
5563
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(
|
|
5563
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), y = W.findIndex((Y) => Y === document.activeElement)), V.key) {
|
|
5564
5564
|
case "Backspace":
|
|
5565
5565
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5566
5566
|
return;
|
|
5567
5567
|
S(le([...M.value]));
|
|
5568
5568
|
break;
|
|
5569
5569
|
case "Enter":
|
|
5570
|
-
if (
|
|
5570
|
+
if (V.preventDefault(), V.keyCode === 229)
|
|
5571
5571
|
return;
|
|
5572
5572
|
if (y !== -1 && y !== void 0) {
|
|
5573
5573
|
S([...M.value].filter((Y, he) => he !== y)), y === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
|
|
@@ -5575,53 +5575,53 @@ function U3(a, e, t) {
|
|
|
5575
5575
|
}
|
|
5576
5576
|
if (ue.value.indexOf("enter") === -1 && P.value)
|
|
5577
5577
|
return;
|
|
5578
|
-
ne(),
|
|
5578
|
+
ne(), L();
|
|
5579
5579
|
break;
|
|
5580
5580
|
case " ":
|
|
5581
5581
|
if (!P.value && !i.value) {
|
|
5582
|
-
|
|
5582
|
+
V.preventDefault(), ne(), L();
|
|
5583
5583
|
return;
|
|
5584
5584
|
}
|
|
5585
5585
|
if (!P.value)
|
|
5586
5586
|
return !1;
|
|
5587
5587
|
if (ue.value.indexOf("space") === -1 && P.value)
|
|
5588
5588
|
return;
|
|
5589
|
-
|
|
5589
|
+
V.preventDefault(), ne(), L();
|
|
5590
5590
|
break;
|
|
5591
5591
|
case "Tab":
|
|
5592
5592
|
case ";":
|
|
5593
5593
|
case ",":
|
|
5594
|
-
if (ue.value.indexOf(
|
|
5594
|
+
if (ue.value.indexOf(V.key.toLowerCase()) === -1 || !P.value)
|
|
5595
5595
|
return;
|
|
5596
|
-
ne(),
|
|
5596
|
+
ne(), L(), V.preventDefault();
|
|
5597
5597
|
break;
|
|
5598
5598
|
case "Escape":
|
|
5599
5599
|
b();
|
|
5600
5600
|
break;
|
|
5601
5601
|
case "ArrowUp":
|
|
5602
|
-
if (
|
|
5602
|
+
if (V.preventDefault(), !l.value)
|
|
5603
5603
|
return;
|
|
5604
5604
|
I.value || ee(), R();
|
|
5605
5605
|
break;
|
|
5606
5606
|
case "ArrowDown":
|
|
5607
|
-
if (
|
|
5607
|
+
if (V.preventDefault(), !l.value)
|
|
5608
5608
|
return;
|
|
5609
5609
|
I.value || ee(), K();
|
|
5610
5610
|
break;
|
|
5611
5611
|
case "ArrowLeft":
|
|
5612
|
-
if (i.value && ae.value && ae.value.querySelector("input").selectionStart ||
|
|
5612
|
+
if (i.value && ae.value && ae.value.querySelector("input").selectionStart || V.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5613
5613
|
return;
|
|
5614
|
-
|
|
5614
|
+
V.preventDefault(), y === -1 ? W[W.length - 1].focus() : y > 0 && W[y - 1].focus();
|
|
5615
5615
|
break;
|
|
5616
5616
|
case "ArrowRight":
|
|
5617
|
-
if (y === -1 ||
|
|
5617
|
+
if (y === -1 || V.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5618
5618
|
return;
|
|
5619
|
-
|
|
5619
|
+
V.preventDefault(), W.length > y + 1 ? W[y + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
|
|
5620
5620
|
break;
|
|
5621
5621
|
}
|
|
5622
5622
|
},
|
|
5623
|
-
handleKeyup: (
|
|
5624
|
-
e.emit("keyup",
|
|
5623
|
+
handleKeyup: (V) => {
|
|
5624
|
+
e.emit("keyup", V, $);
|
|
5625
5625
|
},
|
|
5626
5626
|
preparePointer: ne
|
|
5627
5627
|
};
|
|
@@ -5715,14 +5715,14 @@ function j3(a, e, t) {
|
|
|
5715
5715
|
dropdown: [g.dropdown].concat(o.value === "top" ? g.dropdownTop : []).concat(!l.value || !i.value || !S.value ? g.dropdownHidden : []),
|
|
5716
5716
|
options: [g.options].concat(o.value === "top" ? g.optionsTop : []),
|
|
5717
5717
|
group: g.group,
|
|
5718
|
-
groupLabel: (
|
|
5718
|
+
groupLabel: (L) => {
|
|
5719
5719
|
let R = [g.groupLabel];
|
|
5720
|
-
return r(
|
|
5720
|
+
return r(L) ? R.push(d(L) ? g.groupLabelSelectedPointed : g.groupLabelPointed) : d(L) && p.value ? R.push(u(L) ? g.groupLabelSelectedDisabled : g.groupLabelSelected) : u(L) && R.push(g.groupLabelDisabled), p.value && R.push(g.groupLabelPointable), R;
|
|
5721
5721
|
},
|
|
5722
5722
|
groupOptions: g.groupOptions,
|
|
5723
|
-
option: (
|
|
5723
|
+
option: (L, R) => {
|
|
5724
5724
|
let K = [g.option];
|
|
5725
|
-
return r(
|
|
5725
|
+
return r(L) ? K.push(d(L) ? g.optionSelectedPointed : g.optionPointed) : d(L) ? K.push(u(L) ? g.optionSelectedDisabled : g.optionSelected) : (u(L) || R && u(R)) && K.push(g.optionDisabled), K;
|
|
5726
5726
|
},
|
|
5727
5727
|
noOptions: g.noOptions,
|
|
5728
5728
|
noResults: g.noResults,
|
|
@@ -5740,9 +5740,9 @@ function Z3(a, e, t) {
|
|
|
5740
5740
|
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = w(() => i.value < r.value.length), C = (M) => {
|
|
5741
5741
|
const { isIntersecting: S, target: _ } = M[0];
|
|
5742
5742
|
if (S) {
|
|
5743
|
-
const g = _.offsetParent,
|
|
5743
|
+
const g = _.offsetParent, L = g.scrollTop;
|
|
5744
5744
|
i.value += s.value == -1 ? 10 : s.value, Ee(() => {
|
|
5745
|
-
g.scrollTop =
|
|
5745
|
+
g.scrollTop = L;
|
|
5746
5746
|
});
|
|
5747
5747
|
}
|
|
5748
5748
|
}, $ = () => {
|
|
@@ -5781,7 +5781,7 @@ function F3(a, e, t) {
|
|
|
5781
5781
|
let A = [];
|
|
5782
5782
|
if (n && n.value && A.push(n.value), f.value)
|
|
5783
5783
|
return A.push(f.value.group ? "multiselect-group" : "multiselect-option"), A.push(f.value.group ? f.value.index : f.value[o.value]), A.join("-");
|
|
5784
|
-
}),
|
|
5784
|
+
}), L = w(() => s.value), R = w(() => l.value !== "single"), K = w(() => {
|
|
5785
5785
|
let A = "";
|
|
5786
5786
|
return l.value === "single" && C.value && (A += p.value[i.value]), l.value === "multiple" && C.value && (A += $.value), l.value === "tags" && C.value && (A += p.value.map((P) => P[i.value]).join(", ")), A;
|
|
5787
5787
|
}), D = w(() => {
|
|
@@ -5810,7 +5810,7 @@ function F3(a, e, t) {
|
|
|
5810
5810
|
ariaLabel: K,
|
|
5811
5811
|
ariaAssist: S,
|
|
5812
5812
|
ariaControls: _,
|
|
5813
|
-
ariaPlaceholder:
|
|
5813
|
+
ariaPlaceholder: L,
|
|
5814
5814
|
ariaMultiselectable: R,
|
|
5815
5815
|
ariaActiveDescendant: g,
|
|
5816
5816
|
ariaOptionId: X,
|
|
@@ -7284,7 +7284,7 @@ const j5 = {
|
|
|
7284
7284
|
value: A.id,
|
|
7285
7285
|
avatar: A.avatarUrl
|
|
7286
7286
|
}))) || [];
|
|
7287
|
-
}),
|
|
7287
|
+
}), L = w({
|
|
7288
7288
|
get() {
|
|
7289
7289
|
var b, A;
|
|
7290
7290
|
return (b = t.activity.assignee) != null && b.id ? [(A = t.activity.assignee) == null ? void 0 : A.id] : [];
|
|
@@ -7430,8 +7430,8 @@ const j5 = {
|
|
|
7430
7430
|
v("div", o7, [
|
|
7431
7431
|
v("div", l7, [
|
|
7432
7432
|
T(ye, {
|
|
7433
|
-
modelValue:
|
|
7434
|
-
"onUpdate:modelValue": A[3] || (A[3] = (P) =>
|
|
7433
|
+
modelValue: L.value,
|
|
7434
|
+
"onUpdate:modelValue": A[3] || (A[3] = (P) => L.value = P),
|
|
7435
7435
|
options: g.value,
|
|
7436
7436
|
"close-on-select": !1,
|
|
7437
7437
|
searchable: !0,
|
|
@@ -7629,9 +7629,9 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7629
7629
|
[pe.ACTIVITIES]: t.templateActivities,
|
|
7630
7630
|
[pe.MILESTONES]: t.templateMilestones,
|
|
7631
7631
|
[pe.PHASES]: t.templatePhases
|
|
7632
|
-
}[s.value]) == null ? void 0 : g.map((
|
|
7633
|
-
value:
|
|
7634
|
-
label:
|
|
7632
|
+
}[s.value]) == null ? void 0 : g.map((L) => ({
|
|
7633
|
+
value: L.id,
|
|
7634
|
+
label: L.name
|
|
7635
7635
|
}));
|
|
7636
7636
|
}), r = ct(t.rule.comparator), d = w({
|
|
7637
7637
|
get() {
|
|
@@ -7666,26 +7666,26 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7666
7666
|
default: j(() => [
|
|
7667
7667
|
T(q(ze), {
|
|
7668
7668
|
modelValue: n.value,
|
|
7669
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
7669
|
+
"onUpdate:modelValue": g[0] || (g[0] = (L) => n.value = L),
|
|
7670
7670
|
options: o.value
|
|
7671
7671
|
}, null, 8, ["modelValue", "options"]),
|
|
7672
7672
|
T(q(ze), {
|
|
7673
7673
|
modelValue: i.value,
|
|
7674
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
7674
|
+
"onUpdate:modelValue": g[1] || (g[1] = (L) => i.value = L),
|
|
7675
7675
|
options: l.value
|
|
7676
7676
|
}, null, 8, ["modelValue", "options"]),
|
|
7677
7677
|
T(q(ze), {
|
|
7678
7678
|
modelValue: p.value,
|
|
7679
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
7679
|
+
"onUpdate:modelValue": g[2] || (g[2] = (L) => p.value = L),
|
|
7680
7680
|
options: C.value
|
|
7681
7681
|
}, null, 8, ["modelValue", "options"]),
|
|
7682
7682
|
T(q(ze), {
|
|
7683
7683
|
modelValue: d.value,
|
|
7684
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
7684
|
+
"onUpdate:modelValue": g[3] || (g[3] = (L) => d.value = L),
|
|
7685
7685
|
options: u.value
|
|
7686
7686
|
}, null, 8, ["modelValue", "options"]),
|
|
7687
7687
|
ft(v("input", {
|
|
7688
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
7688
|
+
"onUpdate:modelValue": g[4] || (g[4] = (L) => $.value = L),
|
|
7689
7689
|
type: "number",
|
|
7690
7690
|
min: "0"
|
|
7691
7691
|
}, null, 512), [
|
|
@@ -7698,14 +7698,14 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7698
7698
|
]),
|
|
7699
7699
|
T(q(ze), {
|
|
7700
7700
|
modelValue: M.value,
|
|
7701
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
7701
|
+
"onUpdate:modelValue": g[5] || (g[5] = (L) => M.value = L),
|
|
7702
7702
|
options: S.value
|
|
7703
7703
|
}, null, 8, ["modelValue", "options"]),
|
|
7704
7704
|
T(de, {
|
|
7705
7705
|
class: "ao-rule-line__remove",
|
|
7706
7706
|
"icon-name": "CloseRounded",
|
|
7707
7707
|
variant: "ghost",
|
|
7708
|
-
onClick: g[6] || (g[6] = (
|
|
7708
|
+
onClick: g[6] || (g[6] = (L) => _.$emit("close"))
|
|
7709
7709
|
})
|
|
7710
7710
|
]),
|
|
7711
7711
|
_: 1
|
|
@@ -7785,46 +7785,46 @@ const D7 = {
|
|
|
7785
7785
|
const t = a, { t: s } = nt(), n = w(
|
|
7786
7786
|
() => {
|
|
7787
7787
|
var O;
|
|
7788
|
-
return (O = t.templates) == null ? void 0 : O.find((
|
|
7788
|
+
return (O = t.templates) == null ? void 0 : O.find((V) => V.id === t.templateId);
|
|
7789
7789
|
}
|
|
7790
7790
|
), o = J(!1);
|
|
7791
7791
|
re(() => [t.templateId, t.phaseId, t.milestoneId], () => o.value = !1), re(() => {
|
|
7792
7792
|
var O;
|
|
7793
7793
|
return (O = n.value) == null ? void 0 : O.phases;
|
|
7794
|
-
}, (O,
|
|
7795
|
-
o.value && Ue(O,
|
|
7794
|
+
}, (O, V) => {
|
|
7795
|
+
o.value && Ue(O, V);
|
|
7796
7796
|
});
|
|
7797
7797
|
const i = w(() => {
|
|
7798
|
-
var O,
|
|
7799
|
-
return (
|
|
7798
|
+
var O, V;
|
|
7799
|
+
return (V = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : V.find((W) => W.id === t.phaseId);
|
|
7800
7800
|
});
|
|
7801
7801
|
re(() => {
|
|
7802
7802
|
var O;
|
|
7803
7803
|
return (O = i.value) == null ? void 0 : O.milestones;
|
|
7804
|
-
}, (O,
|
|
7805
|
-
o.value && Ue(O,
|
|
7804
|
+
}, (O, V) => {
|
|
7805
|
+
o.value && Ue(O, V);
|
|
7806
7806
|
});
|
|
7807
7807
|
const l = w(() => {
|
|
7808
|
-
var O,
|
|
7809
|
-
return (
|
|
7808
|
+
var O, V;
|
|
7809
|
+
return (V = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : V.find(
|
|
7810
7810
|
(W) => W.id === t.milestoneId
|
|
7811
7811
|
);
|
|
7812
7812
|
});
|
|
7813
7813
|
re(() => {
|
|
7814
7814
|
var O;
|
|
7815
7815
|
return (O = l.value) == null ? void 0 : O.activities;
|
|
7816
|
-
}, (O,
|
|
7817
|
-
o.value && Ue(O,
|
|
7816
|
+
}, (O, V) => {
|
|
7817
|
+
o.value && Ue(O, V);
|
|
7818
7818
|
});
|
|
7819
7819
|
const r = w(() => {
|
|
7820
|
-
var O,
|
|
7821
|
-
return ((
|
|
7820
|
+
var O, V;
|
|
7821
|
+
return ((V = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : V.reduce((W, y) => {
|
|
7822
7822
|
const Y = y.milestones || [];
|
|
7823
7823
|
return [...W, ...Y];
|
|
7824
7824
|
}, [])) || [];
|
|
7825
7825
|
}), d = w(() => {
|
|
7826
|
-
var O,
|
|
7827
|
-
return ((
|
|
7826
|
+
var O, V;
|
|
7827
|
+
return ((V = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : V.reduce((W, y) => {
|
|
7828
7828
|
const he = (y.milestones || []).reduce(
|
|
7829
7829
|
(Z, F) => F.activities ? [...Z, ...F.activities] : Z,
|
|
7830
7830
|
[]
|
|
@@ -7832,15 +7832,15 @@ const D7 = {
|
|
|
7832
7832
|
return [...W, ...he];
|
|
7833
7833
|
}, [])) || [];
|
|
7834
7834
|
}), u = w(() => {
|
|
7835
|
-
var O,
|
|
7836
|
-
return (
|
|
7835
|
+
var O, V;
|
|
7836
|
+
return (V = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : V.find(
|
|
7837
7837
|
(W) => W.id === t.activityId
|
|
7838
7838
|
);
|
|
7839
7839
|
}), f = w(() => {
|
|
7840
7840
|
var O;
|
|
7841
|
-
return (O = t.activityTypes) == null ? void 0 : O.map((
|
|
7842
|
-
label:
|
|
7843
|
-
value:
|
|
7841
|
+
return (O = t.activityTypes) == null ? void 0 : O.map((V) => ({
|
|
7842
|
+
label: V.name,
|
|
7843
|
+
value: V.id
|
|
7844
7844
|
}));
|
|
7845
7845
|
}), p = w(() => {
|
|
7846
7846
|
var O;
|
|
@@ -7848,7 +7848,7 @@ const D7 = {
|
|
|
7848
7848
|
}), C = () => {
|
|
7849
7849
|
if (!n.value)
|
|
7850
7850
|
return;
|
|
7851
|
-
const { name: O, rank:
|
|
7851
|
+
const { name: O, rank: V } = pt(
|
|
7852
7852
|
n.value.phases,
|
|
7853
7853
|
"phase",
|
|
7854
7854
|
s
|
|
@@ -7858,7 +7858,7 @@ const D7 = {
|
|
|
7858
7858
|
templateId: t.templateId,
|
|
7859
7859
|
item: {
|
|
7860
7860
|
name: O,
|
|
7861
|
-
rank:
|
|
7861
|
+
rank: V
|
|
7862
7862
|
}
|
|
7863
7863
|
});
|
|
7864
7864
|
}, $ = (O) => {
|
|
@@ -7876,19 +7876,19 @@ const D7 = {
|
|
|
7876
7876
|
id: O
|
|
7877
7877
|
}
|
|
7878
7878
|
});
|
|
7879
|
-
}, S = (O,
|
|
7879
|
+
}, S = (O, V) => {
|
|
7880
7880
|
e("updateItem", {
|
|
7881
7881
|
templateId: t.templateId,
|
|
7882
7882
|
id: O,
|
|
7883
7883
|
itemType: pe.PHASES,
|
|
7884
|
-
data: { name:
|
|
7884
|
+
data: { name: V }
|
|
7885
7885
|
});
|
|
7886
7886
|
}, _ = (O) => {
|
|
7887
7887
|
e("updateItem", O);
|
|
7888
7888
|
}, g = (O) => {
|
|
7889
7889
|
if (!i.value)
|
|
7890
7890
|
return;
|
|
7891
|
-
const { name:
|
|
7891
|
+
const { name: V, rank: W } = pt(
|
|
7892
7892
|
i.value.milestones,
|
|
7893
7893
|
"milestone",
|
|
7894
7894
|
s
|
|
@@ -7898,12 +7898,12 @@ const D7 = {
|
|
|
7898
7898
|
templateId: t.templateId,
|
|
7899
7899
|
phaseId: O.phaseId,
|
|
7900
7900
|
item: {
|
|
7901
|
-
name:
|
|
7901
|
+
name: V,
|
|
7902
7902
|
rank: W,
|
|
7903
7903
|
phaseId: O.phaseId
|
|
7904
7904
|
}
|
|
7905
7905
|
});
|
|
7906
|
-
},
|
|
7906
|
+
}, L = (O) => {
|
|
7907
7907
|
e("removeItem", {
|
|
7908
7908
|
type: pe.MILESTONES,
|
|
7909
7909
|
templateId: t.templateId,
|
|
@@ -7913,15 +7913,15 @@ const D7 = {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
}, R = (O) => {
|
|
7916
|
-
const { id:
|
|
7916
|
+
const { id: V, ...W } = O;
|
|
7917
7917
|
e("updateItem", {
|
|
7918
7918
|
itemType: pe.MILESTONES,
|
|
7919
|
-
id:
|
|
7919
|
+
id: V,
|
|
7920
7920
|
templateId: t.templateId,
|
|
7921
7921
|
data: W
|
|
7922
7922
|
});
|
|
7923
7923
|
}, K = (O) => {
|
|
7924
|
-
const { milestoneId:
|
|
7924
|
+
const { milestoneId: V } = O;
|
|
7925
7925
|
if (!l.value)
|
|
7926
7926
|
return;
|
|
7927
7927
|
const { name: W, rank: y } = pt(
|
|
@@ -7931,26 +7931,26 @@ const D7 = {
|
|
|
7931
7931
|
);
|
|
7932
7932
|
o.value = !0, e("addItem", {
|
|
7933
7933
|
type: pe.ACTIVITIES,
|
|
7934
|
-
milestoneId:
|
|
7934
|
+
milestoneId: V,
|
|
7935
7935
|
templateId: t.templateId,
|
|
7936
|
-
item: { name: W, rank: y, milestoneId:
|
|
7936
|
+
item: { name: W, rank: y, milestoneId: V }
|
|
7937
7937
|
});
|
|
7938
7938
|
}, D = (O) => {
|
|
7939
|
-
var
|
|
7939
|
+
var V, W;
|
|
7940
7940
|
e("removeItem", {
|
|
7941
7941
|
type: pe.ACTIVITIES,
|
|
7942
7942
|
templateId: t.templateId,
|
|
7943
|
-
phaseId: (
|
|
7943
|
+
phaseId: (V = i.value) == null ? void 0 : V.id,
|
|
7944
7944
|
milestoneId: (W = l.value) == null ? void 0 : W.id,
|
|
7945
7945
|
data: {
|
|
7946
7946
|
id: O.id
|
|
7947
7947
|
}
|
|
7948
7948
|
});
|
|
7949
7949
|
}, X = (O) => {
|
|
7950
|
-
const { id:
|
|
7950
|
+
const { id: V, ...W } = O;
|
|
7951
7951
|
e("updateItem", {
|
|
7952
7952
|
itemType: pe.ACTIVITIES,
|
|
7953
|
-
id:
|
|
7953
|
+
id: V,
|
|
7954
7954
|
templateId: t.templateId,
|
|
7955
7955
|
data: W
|
|
7956
7956
|
});
|
|
@@ -7961,9 +7961,9 @@ const D7 = {
|
|
|
7961
7961
|
}, b = (O) => {
|
|
7962
7962
|
e("removeRule", { id: O, templateId: t.templateId });
|
|
7963
7963
|
}, A = (O) => {
|
|
7964
|
-
var
|
|
7964
|
+
var V;
|
|
7965
7965
|
if (O.moved) {
|
|
7966
|
-
const W = Bt(O, ((
|
|
7966
|
+
const W = Bt(O, ((V = n.value) == null ? void 0 : V.phases) ?? []);
|
|
7967
7967
|
e("updateItem", {
|
|
7968
7968
|
itemType: pe.PHASES,
|
|
7969
7969
|
id: O.moved.element.id,
|
|
@@ -8003,19 +8003,19 @@ const D7 = {
|
|
|
8003
8003
|
}, ie = (O) => {
|
|
8004
8004
|
e("removeFile", O);
|
|
8005
8005
|
};
|
|
8006
|
-
return (O,
|
|
8006
|
+
return (O, V) => {
|
|
8007
8007
|
var W, y, Y, he, Z, F;
|
|
8008
8008
|
return n.value ? (c(), h("div", D7, [
|
|
8009
8009
|
T(r1, {
|
|
8010
8010
|
"can-go-back": !0,
|
|
8011
|
-
onGoBack:
|
|
8011
|
+
onGoBack: V[1] || (V[1] = (E) => O.$router.push({ name: q(Tt).TEMPLATES_LIST }))
|
|
8012
8012
|
}, {
|
|
8013
8013
|
primary: j(() => [
|
|
8014
8014
|
T(me, {
|
|
8015
8015
|
title: p.value,
|
|
8016
8016
|
level: 2,
|
|
8017
8017
|
"is-editable": !0,
|
|
8018
|
-
"onUpdate:title":
|
|
8018
|
+
"onUpdate:title": V[0] || (V[0] = (E) => {
|
|
8019
8019
|
$(E);
|
|
8020
8020
|
})
|
|
8021
8021
|
}, null, 8, ["title"])
|
|
@@ -8088,7 +8088,7 @@ const D7 = {
|
|
|
8088
8088
|
onAddMilestone: g,
|
|
8089
8089
|
onUpdateMilestone: R,
|
|
8090
8090
|
onUpdatePhase: _,
|
|
8091
|
-
onRemoveMilestone:
|
|
8091
|
+
onRemoveMilestone: L
|
|
8092
8092
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : k("", !0)
|
|
8093
8093
|
]),
|
|
8094
8094
|
v("li", U7, [
|
|
@@ -8116,7 +8116,7 @@ const D7 = {
|
|
|
8116
8116
|
"template-milestones": r.value,
|
|
8117
8117
|
"is-template": !0,
|
|
8118
8118
|
users: O.users,
|
|
8119
|
-
"onUpdate:activity":
|
|
8119
|
+
"onUpdate:activity": V[2] || (V[2] = (E) => {
|
|
8120
8120
|
u.value && X(E);
|
|
8121
8121
|
}),
|
|
8122
8122
|
onClose: O.$router.back,
|
|
@@ -8677,7 +8677,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8677
8677
|
() => n.value.flatMap((I) => I.activities)
|
|
8678
8678
|
), g = (I) => {
|
|
8679
8679
|
e("addFiles", I);
|
|
8680
|
-
},
|
|
8680
|
+
}, L = (I) => {
|
|
8681
8681
|
e("removeFile", I);
|
|
8682
8682
|
}, R = (I) => {
|
|
8683
8683
|
e("addComment", I);
|
|
@@ -8754,7 +8754,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8754
8754
|
onUpdateSubtask: M,
|
|
8755
8755
|
onDeleteSubtask: S,
|
|
8756
8756
|
onAddFiles: g,
|
|
8757
|
-
onRemoveFile:
|
|
8757
|
+
onRemoveFile: L,
|
|
8758
8758
|
onAddComment: R,
|
|
8759
8759
|
onUpdateComment: K,
|
|
8760
8760
|
onRemoveComment: D
|
|
@@ -9006,7 +9006,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
9006
9006
|
group: "kanban"
|
|
9007
9007
|
}, p.$attrs, { onChange: f }), {
|
|
9008
9008
|
item: j(({ element: M }) => {
|
|
9009
|
-
var S, _, g,
|
|
9009
|
+
var S, _, g, L;
|
|
9010
9010
|
return [
|
|
9011
9011
|
T(Ba, {
|
|
9012
9012
|
id: M.id,
|
|
@@ -9018,7 +9018,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
9018
9018
|
users: p.users,
|
|
9019
9019
|
assignee: M.assignee,
|
|
9020
9020
|
comments: (g = M.comments) == null ? void 0 : g.length,
|
|
9021
|
-
attachments: (
|
|
9021
|
+
attachments: (L = M.attachments) == null ? void 0 : L.length,
|
|
9022
9022
|
tasks: M.tasks,
|
|
9023
9023
|
"is-editable": p.isEditable,
|
|
9024
9024
|
onClick: (R) => p.$router.push({
|
|
@@ -9117,7 +9117,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9117
9117
|
e("removeComment", _);
|
|
9118
9118
|
};
|
|
9119
9119
|
return (_, g) => {
|
|
9120
|
-
var
|
|
9120
|
+
var L, R;
|
|
9121
9121
|
return i.value ? (c(), N(N1, {
|
|
9122
9122
|
key: 0,
|
|
9123
9123
|
activity: i.value,
|
|
@@ -9129,7 +9129,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9129
9129
|
"user-id": _.userId,
|
|
9130
9130
|
"is-task-checkable": _.isTaskCheckable,
|
|
9131
9131
|
statuses: _.statuses,
|
|
9132
|
-
breadcrumbs: `${(
|
|
9132
|
+
breadcrumbs: `${(L = s.value) == null ? void 0 : L.name} / ${(R = o.value) == null ? void 0 : R.name}`,
|
|
9133
9133
|
"is-editable": _.isEditable,
|
|
9134
9134
|
onClose: _.$router.back,
|
|
9135
9135
|
"onUpdate:activity": r,
|
|
@@ -9366,8 +9366,11 @@ const v4 = {
|
|
|
9366
9366
|
users: r.users,
|
|
9367
9367
|
assignee: u.assignee,
|
|
9368
9368
|
"is-editable": r.isEditable,
|
|
9369
|
+
onUpdateActivity: [
|
|
9370
|
+
d[0] || (d[0] = (L) => r.isEditable && i(L)),
|
|
9371
|
+
d[1] || (d[1] = (L) => r.isEditable && i)
|
|
9372
|
+
],
|
|
9369
9373
|
onClick: () => o(u.id),
|
|
9370
|
-
onUpdateActivity: d[0] || (d[0] = (V) => r.isEditable && i),
|
|
9371
9374
|
onRemoveAssignee: () => r.isEditable && i({ id: u.id, assigneeId: null })
|
|
9372
9375
|
}, {
|
|
9373
9376
|
secondary: j(() => [
|
|
@@ -9407,7 +9410,7 @@ const v4 = {
|
|
|
9407
9410
|
key: 0,
|
|
9408
9411
|
"icon-name": "AddBoxOutlineRounded",
|
|
9409
9412
|
label: r.footerLabel,
|
|
9410
|
-
onClick: d[
|
|
9413
|
+
onClick: d[2] || (d[2] = (u) => r.$emit("add"))
|
|
9411
9414
|
}, null, 8, ["label"])) : k("", !0)
|
|
9412
9415
|
])
|
|
9413
9416
|
])) : k("", !0)
|
|
@@ -9549,7 +9552,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9549
9552
|
i.value && e("update:activity", y);
|
|
9550
9553
|
}, g = (y) => {
|
|
9551
9554
|
e("update:activity", y);
|
|
9552
|
-
},
|
|
9555
|
+
}, L = (y) => {
|
|
9553
9556
|
e("archiveActivity", y);
|
|
9554
9557
|
}, R = w({
|
|
9555
9558
|
get() {
|
|
@@ -9607,7 +9610,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9607
9610
|
id: i.value.id,
|
|
9608
9611
|
milestoneId: y
|
|
9609
9612
|
});
|
|
9610
|
-
},
|
|
9613
|
+
}, V = w(() => {
|
|
9611
9614
|
var y;
|
|
9612
9615
|
return (y = t.statuses) == null ? void 0 : y.map((Y) => ({
|
|
9613
9616
|
value: Y.id,
|
|
@@ -9710,7 +9713,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9710
9713
|
"is-editable": y.isEditable,
|
|
9711
9714
|
onAdd: () => f(Z),
|
|
9712
9715
|
onSelectActivity: l,
|
|
9713
|
-
onArchiveActivity:
|
|
9716
|
+
onArchiveActivity: L,
|
|
9714
9717
|
onUpdateActivity: g
|
|
9715
9718
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "is-editable", "onAdd"]))), 128))
|
|
9716
9719
|
]),
|
|
@@ -9764,10 +9767,10 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9764
9767
|
onChange: O
|
|
9765
9768
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9766
9769
|
])) : k("", !0),
|
|
9767
|
-
|
|
9770
|
+
V.value ? (c(), h("label", H4, [
|
|
9768
9771
|
v("span", P4, z(y.$t("activity.status.label")), 1),
|
|
9769
9772
|
T(ye, {
|
|
9770
|
-
options:
|
|
9773
|
+
options: V.value,
|
|
9771
9774
|
value: (E = q(i).status) == null ? void 0 : E.id,
|
|
9772
9775
|
"can-clear": !1,
|
|
9773
9776
|
"can-deselect": !1,
|