@26lights/orcha 0.37.54 → 0.37.56
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.css +1 -1
- package/dist/orcha.es.js +600 -599
- package/dist/orcha.umd.js +3 -3
- package/dist/src/types/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as C, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as A, resolveDynamicComponent as ht, normalizeClass as
|
|
1
|
+
import { defineComponent as x, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as C, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as A, resolveDynamicComponent as ht, normalizeClass as G, renderSlot as te, toDisplayString as Q, createCommentVNode as T, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as z, createTextVNode as Fa, createVNode as M, normalizeStyle as Ua, withModifiers as fe, createSlots as Za, Fragment as he, renderList as _e, onMounted as xt, onBeforeUnmount as Ts, onUnmounted as kn, Teleport as Nt, toRefs as Ae, getCurrentInstance as Mt, toRef as Pt, normalizeProps as pa, guardReactiveProps as fa, withDirectives as Ke, vShow as Hi, onUpdated as Di, vModelText as ut, resolveComponent as Ye, getCurrentScope as Pi, onScopeDispose as Vi, toHandlerKey as Bi } from "vue";
|
|
2
2
|
import { RouterView as Ri } from "vue-router";
|
|
3
3
|
import mt from "vuedraggable";
|
|
4
4
|
const v8 = /* @__PURE__ */ x({
|
|
@@ -1164,7 +1164,7 @@ const Os = {
|
|
|
1164
1164
|
setup(t) {
|
|
1165
1165
|
const e = t, a = A(() => k2[e.name]);
|
|
1166
1166
|
return (n, s) => (p(), P(ht(a.value), {
|
|
1167
|
-
class:
|
|
1167
|
+
class: G(["ao-icon", `ao-icon--${n.size}`])
|
|
1168
1168
|
}, null, 8, ["class"]));
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1189,7 +1189,7 @@ const M2 = ["type"], T2 = {
|
|
|
1189
1189
|
const e = t, a = A(() => e.size), n = A(() => e.isLoading ? "Loading" : e.iconName);
|
|
1190
1190
|
return (s, o) => (p(), C("button", {
|
|
1191
1191
|
type: s.type,
|
|
1192
|
-
class:
|
|
1192
|
+
class: G([
|
|
1193
1193
|
"ao-button",
|
|
1194
1194
|
`ao-button--${s.variant}`,
|
|
1195
1195
|
s.color ? `ao-button--${s.color}` : "",
|
|
@@ -1258,16 +1258,16 @@ const ye = /* @__PURE__ */ x({
|
|
|
1258
1258
|
click: (g) => g.stopPropagation(),
|
|
1259
1259
|
blur: h
|
|
1260
1260
|
} : {
|
|
1261
|
-
click:
|
|
1262
|
-
focus:
|
|
1263
|
-
} : {}), f = i((g,
|
|
1264
|
-
const m =
|
|
1261
|
+
click: b,
|
|
1262
|
+
focus: b
|
|
1263
|
+
} : {}), f = i((g, k) => {
|
|
1264
|
+
const m = k.target.value;
|
|
1265
1265
|
e("update:title", m);
|
|
1266
1266
|
}), d = r(), h = async () => {
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, w = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
1270
|
-
},
|
|
1270
|
+
}, b = (g) => {
|
|
1271
1271
|
g.stopPropagation(), s.value || o(!0);
|
|
1272
1272
|
};
|
|
1273
1273
|
return de(
|
|
@@ -1275,7 +1275,7 @@ const ye = /* @__PURE__ */ x({
|
|
|
1275
1275
|
(g) => {
|
|
1276
1276
|
g || d();
|
|
1277
1277
|
}
|
|
1278
|
-
), (g,
|
|
1278
|
+
), (g, k) => (p(), P(ht(c.value), He({
|
|
1279
1279
|
id: g.id,
|
|
1280
1280
|
ref_key: "target",
|
|
1281
1281
|
ref: n,
|
|
@@ -1342,7 +1342,7 @@ const O2 = {
|
|
|
1342
1342
|
e("update:title", n);
|
|
1343
1343
|
};
|
|
1344
1344
|
return (n, s) => (p(), P(ht(n.tagName), {
|
|
1345
|
-
class:
|
|
1345
|
+
class: G(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: z(() => [
|
|
1348
1348
|
n.isDraggable ? (p(), C("div", O2, [
|
|
@@ -1406,7 +1406,7 @@ const qa = /* @__PURE__ */ x({
|
|
|
1406
1406
|
() => a.value === "button" ? { type: "button" } : {}
|
|
1407
1407
|
);
|
|
1408
1408
|
return (s, o) => (p(), C("div", {
|
|
1409
|
-
class:
|
|
1409
|
+
class: G([
|
|
1410
1410
|
"ao-tag",
|
|
1411
1411
|
s.color ? `ao-tag--${s.color}` : "",
|
|
1412
1412
|
s.clickable ? "ao-tag--clickable" : "",
|
|
@@ -1597,10 +1597,10 @@ function Vs(t, e) {
|
|
|
1597
1597
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1598
1598
|
var w = /* @__PURE__ */ new Date(0);
|
|
1599
1599
|
w.setUTCFullYear(f + 1, 0, h), w.setUTCHours(0, 0, 0, 0);
|
|
1600
|
-
var
|
|
1600
|
+
var b = Pa(w, e), g = /* @__PURE__ */ new Date(0);
|
|
1601
1601
|
g.setUTCFullYear(f, 0, h), g.setUTCHours(0, 0, 0, 0);
|
|
1602
|
-
var
|
|
1603
|
-
return u.getTime() >=
|
|
1602
|
+
var k = Pa(g, e);
|
|
1603
|
+
return u.getTime() >= b.getTime() ? f + 1 : u.getTime() >= k.getTime() ? f : f - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function J2(t, e) {
|
|
1606
1606
|
var a, n, s, o, i, r, l, c;
|
|
@@ -2722,12 +2722,12 @@ var K0 = {
|
|
|
2722
2722
|
const Rs = K0;
|
|
2723
2723
|
var G0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X0 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q0 = /^'([^]*?)'?$/, J0 = /''/g, e3 = /[a-zA-Z]/;
|
|
2724
2724
|
function Ns(t, e, a) {
|
|
2725
|
-
var n, s, o, i, r, l, c, u, f, d, h, w,
|
|
2725
|
+
var n, s, o, i, r, l, c, u, f, d, h, w, b, g, k, _, m, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
2727
|
var I = String(e), L = va(), U = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n : Rs, Z = Qe((o = (i = (r = (l = a == null ? void 0 : a.firstWeekContainsDate) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = L.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2728
2728
|
if (!(Z >= 1 && Z <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
|
-
var Y = Qe((h = (w = (
|
|
2730
|
+
var Y = Qe((h = (w = (b = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : L.weekStartsOn) !== null && w !== void 0 ? w : (m = L.locale) === null || m === void 0 || (D = m.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2731
2731
|
if (!(Y >= 0 && Y <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!U.localize)
|
|
@@ -2745,8 +2745,8 @@ function Ns(t, e, a) {
|
|
|
2745
2745
|
}, oe = I.match(X0).map(function(ne) {
|
|
2746
2746
|
var O = ne[0];
|
|
2747
2747
|
if (O === "p" || O === "P") {
|
|
2748
|
-
var
|
|
2749
|
-
return
|
|
2748
|
+
var S = r0[O];
|
|
2749
|
+
return S(ne, U.formatLong);
|
|
2750
2750
|
}
|
|
2751
2751
|
return ne;
|
|
2752
2752
|
}).join("").match(G0).map(function(ne) {
|
|
@@ -2755,9 +2755,9 @@ function Ns(t, e, a) {
|
|
|
2755
2755
|
var O = ne[0];
|
|
2756
2756
|
if (O === "'")
|
|
2757
2757
|
return t3(ne);
|
|
2758
|
-
var
|
|
2759
|
-
if (
|
|
2760
|
-
return !(a != null && a.useAdditionalWeekYearTokens) && d0(ne) && ds(ne, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(ne) && ds(ne, e, String(t)),
|
|
2758
|
+
var S = s0[O];
|
|
2759
|
+
if (S)
|
|
2760
|
+
return !(a != null && a.useAdditionalWeekYearTokens) && d0(ne) && ds(ne, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(ne) && ds(ne, e, String(t)), S(N, ne, U.localize, W);
|
|
2761
2761
|
if (O.match(e3))
|
|
2762
2762
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + O + "`");
|
|
2763
2763
|
return ne;
|
|
@@ -2771,7 +2771,7 @@ function t3(t) {
|
|
|
2771
2771
|
function a3(t, e, a) {
|
|
2772
2772
|
var n, s, o, i, r, l, c, u, f, d;
|
|
2773
2773
|
ge(2, arguments);
|
|
2774
|
-
var h = be(t), w = be(e),
|
|
2774
|
+
var h = be(t), w = be(e), b = va(), g = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Rs, k = Qe((o = (i = (r = (l = a == null ? void 0 : a.weekStartsOn) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : b.weekStartsOn) !== null && i !== void 0 ? i : (f = b.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2775
2775
|
if (!g.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
2777
|
if (!g.formatLong)
|
|
@@ -2785,11 +2785,11 @@ function a3(t, e, a) {
|
|
|
2785
2785
|
_ < -6 ? m = "other" : _ < -1 ? m = "lastWeek" : _ < 0 ? m = "yesterday" : _ < 1 ? m = "today" : _ < 2 ? m = "tomorrow" : _ < 7 ? m = "nextWeek" : m = "other";
|
|
2786
2786
|
var D = gn(h, ra(h)), I = gn(w, ra(w)), L = g.formatRelative(m, D, I, {
|
|
2787
2787
|
locale: g,
|
|
2788
|
-
weekStartsOn:
|
|
2788
|
+
weekStartsOn: k
|
|
2789
2789
|
});
|
|
2790
2790
|
return Ns(h, L, {
|
|
2791
2791
|
locale: g,
|
|
2792
|
-
weekStartsOn:
|
|
2792
|
+
weekStartsOn: k
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
2795
2795
|
function la(t, e) {
|
|
@@ -3488,20 +3488,20 @@ function Ws() {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
let f;
|
|
3490
3490
|
for (let w = l.getScale(); w > 0; c = f) {
|
|
3491
|
-
const
|
|
3492
|
-
if (f = c.setScale(
|
|
3491
|
+
const b = w - 1, g = l.setScale(b, !0);
|
|
3492
|
+
if (f = c.setScale(b, !1), g.compareTo(f) === 0)
|
|
3493
3493
|
return s.checkMid(i, r, g);
|
|
3494
3494
|
if (g.compareTo(f) > 0)
|
|
3495
3495
|
break;
|
|
3496
|
-
w =
|
|
3496
|
+
w = b, l = g;
|
|
3497
3497
|
}
|
|
3498
3498
|
let d = s.middleInternal(i, r, l, c), h;
|
|
3499
3499
|
for (let w = d.getScale(); w > 0; w = h) {
|
|
3500
3500
|
h = w - 1;
|
|
3501
|
-
const
|
|
3502
|
-
if (i.compareTo(
|
|
3501
|
+
const b = d.setScale(h);
|
|
3502
|
+
if (i.compareTo(b) >= 0 || b.compareTo(r) >= 0)
|
|
3503
3503
|
break;
|
|
3504
|
-
d =
|
|
3504
|
+
d = b;
|
|
3505
3505
|
}
|
|
3506
3506
|
return d;
|
|
3507
3507
|
}
|
|
@@ -3714,7 +3714,7 @@ const zs = (t) => {
|
|
|
3714
3714
|
};
|
|
3715
3715
|
return (i, r) => (p(), C("div", {
|
|
3716
3716
|
role: "img",
|
|
3717
|
-
class:
|
|
3717
|
+
class: G(n.value),
|
|
3718
3718
|
title: i.userName
|
|
3719
3719
|
}, [
|
|
3720
3720
|
i.avatarUrl ? T("", !0) : (p(), C("span", I3, Q(J(s)), 1)),
|
|
@@ -3878,7 +3878,7 @@ const a5 = ["type"], n5 = {
|
|
|
3878
3878
|
const e = t, a = A(() => e.size), n = A(() => e.isLoading ? "Loading" : e.iconName);
|
|
3879
3879
|
return (s, o) => (p(), C("button", {
|
|
3880
3880
|
type: s.type,
|
|
3881
|
-
class:
|
|
3881
|
+
class: G([
|
|
3882
3882
|
"ao-button-card",
|
|
3883
3883
|
`ao-button-card--${s.color}`,
|
|
3884
3884
|
`ao-button-card--${s.corners}`,
|
|
@@ -4159,7 +4159,7 @@ const l5 = /* @__PURE__ */ x({
|
|
|
4159
4159
|
emits: ["close"],
|
|
4160
4160
|
setup(t) {
|
|
4161
4161
|
return (e, a) => (p(), C("div", {
|
|
4162
|
-
class:
|
|
4162
|
+
class: G(["ao-modal__wrapper", `ao-modal__wrapper--${e.size}`])
|
|
4163
4163
|
}, [
|
|
4164
4164
|
v("div", {
|
|
4165
4165
|
class: "ao-modal__backdrop",
|
|
@@ -4345,16 +4345,16 @@ const E5 = async (t, e, a) => {
|
|
|
4345
4345
|
x: u,
|
|
4346
4346
|
y: f
|
|
4347
4347
|
} = vs(c, n, l), d = n, h = {}, w = 0;
|
|
4348
|
-
for (let
|
|
4348
|
+
for (let b = 0; b < r.length; b++) {
|
|
4349
4349
|
const {
|
|
4350
4350
|
name: g,
|
|
4351
|
-
fn:
|
|
4352
|
-
} = r[
|
|
4351
|
+
fn: k
|
|
4352
|
+
} = r[b], {
|
|
4353
4353
|
x: _,
|
|
4354
4354
|
y: m,
|
|
4355
4355
|
data: D,
|
|
4356
4356
|
reset: I
|
|
4357
|
-
} = await
|
|
4357
|
+
} = await k({
|
|
4358
4358
|
x: u,
|
|
4359
4359
|
y: f,
|
|
4360
4360
|
initialPlacement: n,
|
|
@@ -4382,7 +4382,7 @@ const E5 = async (t, e, a) => {
|
|
|
4382
4382
|
}) : I.rects), {
|
|
4383
4383
|
x: u,
|
|
4384
4384
|
y: f
|
|
4385
|
-
} = vs(c, d, l)),
|
|
4385
|
+
} = vs(c, d, l)), b = -1;
|
|
4386
4386
|
continue;
|
|
4387
4387
|
}
|
|
4388
4388
|
}
|
|
@@ -4410,7 +4410,7 @@ async function Ks(t, e) {
|
|
|
4410
4410
|
elementContext: f = "floating",
|
|
4411
4411
|
altBoundary: d = !1,
|
|
4412
4412
|
padding: h = 0
|
|
4413
|
-
} = Ln(e, t), w = O5(h), g = r[d ? f === "floating" ? "reference" : "floating" : f],
|
|
4413
|
+
} = Ln(e, t), w = O5(h), g = r[d ? f === "floating" ? "reference" : "floating" : f], k = Ra(await o.getClippingRect({
|
|
4414
4414
|
element: (a = await (o.isElement == null ? void 0 : o.isElement(g))) == null || a ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(r.floating)),
|
|
4415
4415
|
boundary: c,
|
|
4416
4416
|
rootBoundary: u,
|
|
@@ -4431,10 +4431,10 @@ async function Ks(t, e) {
|
|
|
4431
4431
|
strategy: l
|
|
4432
4432
|
}) : _);
|
|
4433
4433
|
return {
|
|
4434
|
-
top: (
|
|
4435
|
-
bottom: (I.bottom -
|
|
4436
|
-
left: (
|
|
4437
|
-
right: (I.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) {
|
|
@@ -4456,16 +4456,16 @@ const I5 = function(t) {
|
|
|
4456
4456
|
fallbackPlacements: d,
|
|
4457
4457
|
fallbackStrategy: h = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: w = "none",
|
|
4459
|
-
flipAlignment:
|
|
4459
|
+
flipAlignment: b = !0,
|
|
4460
4460
|
...g
|
|
4461
4461
|
} = Ln(t, e);
|
|
4462
4462
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4463
4463
|
return {};
|
|
4464
|
-
const
|
|
4465
|
-
!d && w !== "none" && D.push(...M5(r,
|
|
4464
|
+
const k = Ft(s), _ = Ft(r) === r, m = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !b ? [Ba(r)] : S5(r));
|
|
4465
|
+
!d && w !== "none" && D.push(...M5(r, b, w, m));
|
|
4466
4466
|
const I = [r, ...D], L = await Ks(e, g), U = [];
|
|
4467
4467
|
let Z = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4468
|
-
if (u && U.push(L[
|
|
4468
|
+
if (u && U.push(L[k]), f) {
|
|
4469
4469
|
const N = k5(s, i, m);
|
|
4470
4470
|
U.push(L[N[0]], L[N[1]]);
|
|
4471
4471
|
}
|
|
@@ -4490,7 +4490,7 @@ const I5 = function(t) {
|
|
|
4490
4490
|
switch (h) {
|
|
4491
4491
|
case "bestFit": {
|
|
4492
4492
|
var K;
|
|
4493
|
-
const ne = (K = Z.map((O) => [O.placement, O.overflows.filter((
|
|
4493
|
+
const ne = (K = Z.map((O) => [O.placement, O.overflows.filter((S) => S > 0).reduce((S, F) => S + F, 0)]).sort((O, S) => O[1] - S[1])[0]) == null ? void 0 : K[0];
|
|
4494
4494
|
ne && (oe = ne);
|
|
4495
4495
|
break;
|
|
4496
4496
|
}
|
|
@@ -4526,13 +4526,13 @@ const I5 = function(t) {
|
|
|
4526
4526
|
width: d,
|
|
4527
4527
|
height: h
|
|
4528
4528
|
} = n.floating;
|
|
4529
|
-
let w,
|
|
4530
|
-
c === "top" || c === "bottom" ? (w = c,
|
|
4531
|
-
const g = h - l[w],
|
|
4532
|
-
let m = g, D =
|
|
4529
|
+
let w, b;
|
|
4530
|
+
c === "top" || c === "bottom" ? (w = c, b = u === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (b = c, w = u === "end" ? "top" : "bottom");
|
|
4531
|
+
const g = h - l[w], k = d - l[b], _ = !e.middlewareData.shift;
|
|
4532
|
+
let m = g, D = k;
|
|
4533
4533
|
if (f) {
|
|
4534
4534
|
const L = d - l.left - l.right;
|
|
4535
|
-
D = u || _ ? ua(
|
|
4535
|
+
D = u || _ ? ua(k, L) : L;
|
|
4536
4536
|
} else {
|
|
4537
4537
|
const L = h - l.top - l.bottom;
|
|
4538
4538
|
m = u || _ ? ua(g, L) : L;
|
|
@@ -4693,8 +4693,8 @@ function St(t, e, a, n) {
|
|
|
4693
4693
|
const d = ke(o), h = n && et(n) ? ke(n) : n;
|
|
4694
4694
|
let w = d.frameElement;
|
|
4695
4695
|
for (; w && n && h !== d; ) {
|
|
4696
|
-
const
|
|
4697
|
-
l *=
|
|
4696
|
+
const b = Vt(w), g = w.getBoundingClientRect(), k = Ve(w), _ = g.left + (w.clientLeft + parseFloat(k.paddingLeft)) * b.x, m = g.top + (w.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
4697
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += _, c += m, w = ke(w).frameElement;
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
return Ra({
|
|
@@ -4905,8 +4905,8 @@ function K5(t, e) {
|
|
|
4905
4905
|
} = t.getBoundingClientRect();
|
|
4906
4906
|
if (r || e(), !f || !d)
|
|
4907
4907
|
return;
|
|
4908
|
-
const h = Oa(u), w = Oa(s.clientWidth - (c + f)),
|
|
4909
|
-
rootMargin: -h + "px " + -w + "px " + -
|
|
4908
|
+
const h = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)), g = Oa(c), _ = {
|
|
4909
|
+
rootMargin: -h + "px " + -w + "px " + -b + "px " + -g + "px",
|
|
4910
4910
|
threshold: Ee(0, ua(1, l)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let m = !0;
|
|
@@ -4943,28 +4943,28 @@ function G5(t, e, a, n) {
|
|
|
4943
4943
|
layoutShift: r = typeof IntersectionObserver == "function",
|
|
4944
4944
|
animationFrame: l = !1
|
|
4945
4945
|
} = n, c = Vn(t), u = s || o ? [...c ? ca(c) : [], ...ca(e)] : [];
|
|
4946
|
-
u.forEach((
|
|
4947
|
-
s &&
|
|
4946
|
+
u.forEach((k) => {
|
|
4947
|
+
s && k.addEventListener("scroll", a, {
|
|
4948
4948
|
passive: !0
|
|
4949
|
-
}), o &&
|
|
4949
|
+
}), o && k.addEventListener("resize", a);
|
|
4950
4950
|
});
|
|
4951
4951
|
const f = c && r ? K5(c, a) : null;
|
|
4952
4952
|
let d = -1, h = null;
|
|
4953
|
-
i && (h = new ResizeObserver((
|
|
4954
|
-
let [_] =
|
|
4953
|
+
i && (h = new ResizeObserver((k) => {
|
|
4954
|
+
let [_] = k;
|
|
4955
4955
|
_ && _.target === c && h && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
4956
4956
|
h && h.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
4958
|
}), c && !l && h.observe(c), h.observe(e));
|
|
4959
|
-
let w,
|
|
4959
|
+
let w, b = l ? St(t) : null;
|
|
4960
4960
|
l && g();
|
|
4961
4961
|
function g() {
|
|
4962
|
-
const
|
|
4963
|
-
|
|
4962
|
+
const k = St(t);
|
|
4963
|
+
b && (k.x !== b.x || k.y !== b.y || k.width !== b.width || k.height !== b.height) && a(), b = k, w = requestAnimationFrame(g);
|
|
4964
4964
|
}
|
|
4965
4965
|
return a(), () => {
|
|
4966
|
-
u.forEach((
|
|
4967
|
-
s &&
|
|
4966
|
+
u.forEach((k) => {
|
|
4967
|
+
s && k.removeEventListener("scroll", a), o && k.removeEventListener("resize", a);
|
|
4968
4968
|
}), f && f(), h && h.disconnect(), h = null, l && cancelAnimationFrame(w);
|
|
4969
4969
|
};
|
|
4970
4970
|
}
|
|
@@ -5083,8 +5083,8 @@ function t7(t, e, a) {
|
|
|
5083
5083
|
}, f = (d) => {
|
|
5084
5084
|
if (n && n.value) {
|
|
5085
5085
|
let w = (d.clipboardData || /* istanbul ignore next */
|
|
5086
|
-
window.clipboardData).getData("Text"),
|
|
5087
|
-
typeof
|
|
5086
|
+
window.clipboardData).getData("Text"), b = n.value;
|
|
5087
|
+
typeof b == "string" && (b = new RegExp(b)), w.split("").every((g) => !!g.match(b)) || d.preventDefault();
|
|
5088
5088
|
}
|
|
5089
5089
|
e.emit("paste", d, s);
|
|
5090
5090
|
};
|
|
@@ -5136,9 +5136,9 @@ function i7(t, e, a) {
|
|
|
5136
5136
|
appendNewOption: d,
|
|
5137
5137
|
multipleLabel: h,
|
|
5138
5138
|
object: w,
|
|
5139
|
-
loading:
|
|
5139
|
+
loading: b,
|
|
5140
5140
|
delay: g,
|
|
5141
|
-
resolveOnLoad:
|
|
5141
|
+
resolveOnLoad: k,
|
|
5142
5142
|
minChars: _,
|
|
5143
5143
|
filterResults: m,
|
|
5144
5144
|
clearOnSearch: D,
|
|
@@ -5154,20 +5154,20 @@ function i7(t, e, a) {
|
|
|
5154
5154
|
groups: oe,
|
|
5155
5155
|
reverse: ne,
|
|
5156
5156
|
infinite: O,
|
|
5157
|
-
groupOptions:
|
|
5157
|
+
groupOptions: S,
|
|
5158
5158
|
groupHideEmpty: F,
|
|
5159
5159
|
groupSelect: V,
|
|
5160
5160
|
onCreate: se,
|
|
5161
|
-
disabledProp:
|
|
5161
|
+
disabledProp: y,
|
|
5162
5162
|
searchStart: R,
|
|
5163
5163
|
searchFilter: le
|
|
5164
|
-
} = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev,
|
|
5164
|
+
} = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev, X = a.search, ve = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, nn = a.deactivate, st = a.close, ya = a.localize, it = ee([]), Ne = ee([]), Me = ee(!1), Be = ee(null), qe = ee(O.value && i.value === -1 ? 10 : i.value), Xt = A(() => l.value || c.value || !1), ba = A(() => f.value !== void 0 ? f.value : d.value !== void 0 ? d.value : !0), Te = A(() => {
|
|
5165
5165
|
if (oe.value) {
|
|
5166
5166
|
let $ = _t.value || /* istanbul ignore next */
|
|
5167
5167
|
[], B = [];
|
|
5168
5168
|
return $.forEach((re) => {
|
|
5169
|
-
dn(re[
|
|
5170
|
-
B.push(Object.assign({}, me, re[
|
|
5169
|
+
dn(re[S.value]).forEach((me) => {
|
|
5170
|
+
B.push(Object.assign({}, me, re[y.value] ? { [y.value]: !0 } : {}));
|
|
5171
5171
|
});
|
|
5172
5172
|
}), B;
|
|
5173
5173
|
} else {
|
|
@@ -5188,14 +5188,14 @@ function i7(t, e, a) {
|
|
|
5188
5188
|
[];
|
|
5189
5189
|
return it.value.length && $.push({
|
|
5190
5190
|
[Z.value]: " ",
|
|
5191
|
-
[
|
|
5191
|
+
[S.value]: [...it.value],
|
|
5192
5192
|
__CREATE__: !0
|
|
5193
5193
|
}), $.concat(B);
|
|
5194
5194
|
}), wa = A(() => {
|
|
5195
5195
|
let $ = [..._t.value].map((B) => ({ ...B }));
|
|
5196
|
-
return Ot.value.length && ($[0] && $[0].__CREATE__ ? $[0][
|
|
5196
|
+
return Ot.value.length && ($[0] && $[0].__CREATE__ ? $[0][S.value] = [...Ot.value, ...$[0][S.value]] : $ = [{
|
|
5197
5197
|
[Z.value]: " ",
|
|
5198
|
-
[
|
|
5198
|
+
[S.value]: [...Ot.value],
|
|
5199
5199
|
__CREATE__: !0
|
|
5200
5200
|
}].concat($)), $;
|
|
5201
5201
|
}), sn = A(() => {
|
|
@@ -5204,13 +5204,13 @@ function i7(t, e, a) {
|
|
|
5204
5204
|
let $ = wa.value;
|
|
5205
5205
|
return Ai(($ || /* istanbul ignore next */
|
|
5206
5206
|
[]).map((B, re) => {
|
|
5207
|
-
const me = dn(B[
|
|
5207
|
+
const me = dn(B[S.value]);
|
|
5208
5208
|
return {
|
|
5209
5209
|
...B,
|
|
5210
5210
|
index: re,
|
|
5211
5211
|
group: !0,
|
|
5212
|
-
[
|
|
5213
|
-
__VISIBLE__: cn(me).map((bt) => Object.assign({}, bt, B[
|
|
5212
|
+
[S.value]: cn(me, !1).map((bt) => Object.assign({}, bt, B[y.value] ? { [y.value]: !0 } : {})),
|
|
5213
|
+
__VISIBLE__: cn(me).map((bt) => Object.assign({}, bt, B[y.value] ? { [y.value]: !0 } : {}))
|
|
5214
5214
|
};
|
|
5215
5215
|
}));
|
|
5216
5216
|
}), on = A(() => {
|
|
@@ -5221,10 +5221,10 @@ function i7(t, e, a) {
|
|
|
5221
5221
|
case "tags":
|
|
5222
5222
|
return !je(q.value) && q.value.length > 0;
|
|
5223
5223
|
}
|
|
5224
|
-
}), pi = A(() => h !== void 0 && h.value !== void 0 ? h.value(q.value, ie) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), fi = A(() => !Te.value.length && !Me.value && !Ot.value.length), vi = A(() => Te.value.length > 0 && ot.value.length == 0 && (
|
|
5225
|
-
[L.value]:
|
|
5226
|
-
[yt.value[0]]:
|
|
5227
|
-
[u.value]:
|
|
5224
|
+
}), pi = A(() => h !== void 0 && h.value !== void 0 ? h.value(q.value, ie) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), fi = A(() => !Te.value.length && !Me.value && !Ot.value.length), vi = A(() => Te.value.length > 0 && ot.value.length == 0 && (X.value && oe.value || !oe.value)), Ot = A(() => Xt.value === !1 || !X.value ? [] : $i(X.value) !== -1 ? [] : [{
|
|
5225
|
+
[L.value]: X.value,
|
|
5226
|
+
[yt.value[0]]: X.value,
|
|
5227
|
+
[u.value]: X.value,
|
|
5228
5228
|
__CREATE__: !0
|
|
5229
5229
|
}]), yt = A(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [u.value]), hi = A(() => {
|
|
5230
5230
|
switch (s.value) {
|
|
@@ -5234,7 +5234,7 @@ function i7(t, e, a) {
|
|
|
5234
5234
|
case "tags":
|
|
5235
5235
|
return [];
|
|
5236
5236
|
}
|
|
5237
|
-
}), mi = A(() =>
|
|
5237
|
+
}), mi = A(() => b.value || Me.value), Et = ($) => {
|
|
5238
5238
|
switch (typeof $ != "object" && ($ = xe($)), s.value) {
|
|
5239
5239
|
case "single":
|
|
5240
5240
|
we($);
|
|
@@ -5268,7 +5268,7 @@ function i7(t, e, a) {
|
|
|
5268
5268
|
we(hi.value), e.emit("clear", ie);
|
|
5269
5269
|
}, ze = ($) => {
|
|
5270
5270
|
if ($.group !== void 0)
|
|
5271
|
-
return s.value === "single" ? !1 : wi($[
|
|
5271
|
+
return s.value === "single" ? !1 : wi($[S.value]) && $[S.value].length;
|
|
5272
5272
|
switch (s.value) {
|
|
5273
5273
|
case "single":
|
|
5274
5274
|
return !je(q.value) && q.value[L.value] == $[L.value];
|
|
@@ -5276,7 +5276,7 @@ function i7(t, e, a) {
|
|
|
5276
5276
|
case "multiple":
|
|
5277
5277
|
return !je(q.value) && q.value.map((B) => B[L.value]).indexOf($[L.value]) !== -1;
|
|
5278
5278
|
}
|
|
5279
|
-
}, rn = ($) => $[
|
|
5279
|
+
}, rn = ($) => $[y.value] === !0, ln = () => E === void 0 || E.value === -1 || !on.value && E.value > 0 ? !1 : q.value.length >= E.value, gi = ($) => {
|
|
5280
5280
|
if (!rn($)) {
|
|
5281
5281
|
if (se && se.value && !ze($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = se.value($, ie), $ instanceof Promise)) {
|
|
5282
5282
|
Me.value = !0, $.then((B) => {
|
|
@@ -5324,9 +5324,9 @@ function i7(t, e, a) {
|
|
|
5324
5324
|
switch (s.value) {
|
|
5325
5325
|
case "multiple":
|
|
5326
5326
|
case "tags":
|
|
5327
|
-
bi($[
|
|
5328
|
-
$[
|
|
5329
|
-
), r.value && Kt.value && Gt(sn.value.filter((B) => !B[
|
|
5327
|
+
bi($[S.value]) ? It($[S.value]) : Et(
|
|
5328
|
+
$[S.value].filter((B) => q.value.map((re) => re[L.value]).indexOf(B[L.value]) === -1).filter((B) => !B[y.value]).filter((B, re) => q.value.length + 1 + re <= E.value || E.value === -1)
|
|
5329
|
+
), r.value && Kt.value && Gt(sn.value.filter((B) => !B[y.value])[Kt.value.index]);
|
|
5330
5330
|
break;
|
|
5331
5331
|
}
|
|
5332
5332
|
N.value && nn();
|
|
@@ -5335,18 +5335,18 @@ function i7(t, e, a) {
|
|
|
5335
5335
|
xe($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], ie), e.emit("option", $[L.value], ie), e.emit("create", $[L.value], ie), ba.value && Si($), ve());
|
|
5336
5336
|
}, yi = () => {
|
|
5337
5337
|
s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !ze($)));
|
|
5338
|
-
}, bi = ($) => $.find((B) => !ze(B) && !B[
|
|
5338
|
+
}, bi = ($) => $.find((B) => !ze(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
|
|
5339
5339
|
it.value.push($);
|
|
5340
5340
|
}, Ai = ($) => F.value ? $.filter(
|
|
5341
|
-
(B) =>
|
|
5342
|
-
) : $.filter((B) =>
|
|
5341
|
+
(B) => X.value ? B.__VISIBLE__.length : B[S.value].length
|
|
5342
|
+
) : $.filter((B) => X.value ? B.__VISIBLE__.length : !0), cn = ($, B = !0) => {
|
|
5343
5343
|
let re = $;
|
|
5344
|
-
if (
|
|
5344
|
+
if (X.value && m.value) {
|
|
5345
5345
|
let me = le.value;
|
|
5346
5346
|
me || (me = (bt, is, c8) => yt.value.some((Ti) => {
|
|
5347
5347
|
let os = hn(ya(bt[Ti]), K.value);
|
|
5348
5348
|
return R.value ? os.startsWith(hn(is, K.value)) : os.indexOf(hn(is, K.value)) !== -1;
|
|
5349
|
-
})), re = re.filter((bt) => me(bt,
|
|
5349
|
+
})), re = re.filter((bt) => me(bt, X.value, ie));
|
|
5350
5350
|
}
|
|
5351
5351
|
return r.value && B && (re = re.filter((me) => !ki(me))), re;
|
|
5352
5352
|
}, dn = ($) => {
|
|
@@ -5358,7 +5358,7 @@ function i7(t, e, a) {
|
|
|
5358
5358
|
}, $a = () => {
|
|
5359
5359
|
je(H.value) || (q.value = Sa(H.value));
|
|
5360
5360
|
}, ka = ($) => (Me.value = !0, new Promise((B, re) => {
|
|
5361
|
-
n.value(
|
|
5361
|
+
n.value(X.value, ie).then((me) => {
|
|
5362
5362
|
Ne.value = me || [], typeof $ == "function" && $(me), Me.value = !1;
|
|
5363
5363
|
}).catch((me) => {
|
|
5364
5364
|
console.error(me), Ne.value = [], Me.value = !1;
|
|
@@ -5392,10 +5392,10 @@ function i7(t, e, a) {
|
|
|
5392
5392
|
[L.value]: B,
|
|
5393
5393
|
[yt.value[0]]: B
|
|
5394
5394
|
}), ss = () => {
|
|
5395
|
-
Be.value = de(
|
|
5395
|
+
Be.value = de(X, ($) => {
|
|
5396
5396
|
$.length < _.value || !$ && _.value !== 0 || (Me.value = !0, D.value && (Ne.value = []), setTimeout(() => {
|
|
5397
|
-
$ ==
|
|
5398
|
-
($ ==
|
|
5397
|
+
$ == X.value && n.value(X.value, ie).then((B) => {
|
|
5398
|
+
($ == X.value || !X.value) && (Ne.value = B, Kt.value = ot.value.filter((re) => re[y.value] !== !0)[0] || null, Me.value = !1);
|
|
5399
5399
|
}).catch(
|
|
5400
5400
|
/* istanbul ignore next */
|
|
5401
5401
|
(B) => {
|
|
@@ -5407,7 +5407,7 @@ function i7(t, e, a) {
|
|
|
5407
5407
|
};
|
|
5408
5408
|
if (s.value !== "single" && !je(H.value) && !Array.isArray(H.value))
|
|
5409
5409
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5410
|
-
return n && typeof n.value == "function" ?
|
|
5410
|
+
return n && typeof n.value == "function" ? k.value ? ka($a) : w.value == !0 && $a() : (Ne.value = n.value, $a()), g.value > -1 && ss(), de(g, ($, B) => {
|
|
5411
5411
|
Be.value && Be.value(), $ >= 0 && ss();
|
|
5412
5412
|
}), de(H, ($) => {
|
|
5413
5413
|
if (je($)) {
|
|
@@ -5424,7 +5424,7 @@ function i7(t, e, a) {
|
|
|
5424
5424
|
break;
|
|
5425
5425
|
}
|
|
5426
5426
|
}, { deep: !0 }), de(n, ($, B) => {
|
|
5427
|
-
typeof t.options == "function" ?
|
|
5427
|
+
typeof t.options == "function" ? k.value && (!B || $ && $.toString() !== B.toString()) && ka() : (Ne.value = t.options, Object.keys(q.value).length || $a(), pn());
|
|
5428
5428
|
}), de(u, pn), de(i, ($, B) => {
|
|
5429
5429
|
qe.value = O.value && $ === -1 ? 10 : $;
|
|
5430
5430
|
}), {
|
|
@@ -5472,80 +5472,80 @@ 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,
|
|
5476
|
-
const H = Y.value ?
|
|
5475
|
+
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, g = a.search, k = a.pointer, _ = a.setPointer, m = a.clearPointer, D = a.multiselect, I = a.isOpen, L = A(() => d.value.filter((H) => !H[u.value])), U = A(() => h.value.filter((H) => !H[u.value])), Z = A(() => l.value !== "single" && c.value), Y = A(() => k.value && k.value.group), E = A(() => ie(k.value)), K = A(() => {
|
|
5476
|
+
const H = Y.value ? k.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
|
-
ie(
|
|
5479
|
-
),
|
|
5480
|
-
let ve = U.value[
|
|
5478
|
+
ie(k.value)
|
|
5479
|
+
), X = U.value.map((we) => we[i.value]).indexOf(H[i.value]);
|
|
5480
|
+
let ve = U.value[X - 1];
|
|
5481
5481
|
return ve === void 0 && (ve = W.value), ve;
|
|
5482
5482
|
}), N = A(() => {
|
|
5483
|
-
let H = U.value.map((
|
|
5483
|
+
let H = U.value.map((X) => X.label).indexOf(Y.value ? k.value[i.value] : ie(k.value)[i.value]) + 1;
|
|
5484
5484
|
return U.value.length <= H && (H = 0), U.value[H];
|
|
5485
|
-
}), W = A(() => [...U.value].slice(-1)[0]), oe = A(() =>
|
|
5486
|
-
const H = E.value.__VISIBLE__.filter((
|
|
5487
|
-
return H[H.map((
|
|
5485
|
+
}), W = A(() => [...U.value].slice(-1)[0]), oe = A(() => k.value.__VISIBLE__.filter((H) => !H[u.value])[0]), ne = A(() => {
|
|
5486
|
+
const H = E.value.__VISIBLE__.filter((X) => !X[u.value]);
|
|
5487
|
+
return H[H.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1];
|
|
5488
5488
|
}), O = A(() => {
|
|
5489
|
-
const H = ie(
|
|
5490
|
-
return H[H.map((
|
|
5491
|
-
}),
|
|
5489
|
+
const H = ie(k.value).__VISIBLE__.filter((X) => !X[u.value]);
|
|
5490
|
+
return H[H.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1];
|
|
5491
|
+
}), S = A(() => [...K.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = A(() => [...W.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => k.value && (!H.group && k.value[n.value] === H[n.value] || H.group !== void 0 && k.value[i.value] === H[i.value]) ? !0 : void 0, se = () => {
|
|
5492
5492
|
_(L.value[0] || null);
|
|
5493
|
-
},
|
|
5494
|
-
!
|
|
5493
|
+
}, y = () => {
|
|
5494
|
+
!k.value || k.value[u.value] === !0 || (Y.value ? b(k.value) : w(k.value));
|
|
5495
5495
|
}, R = () => {
|
|
5496
|
-
if (
|
|
5496
|
+
if (k.value === null)
|
|
5497
5497
|
_((r.value && Z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
|
|
5498
5498
|
else if (r.value && Z.value) {
|
|
5499
5499
|
let H = Y.value ? oe.value : O.value;
|
|
5500
5500
|
H === void 0 && (H = N.value, H.__CREATE__ && (H = H[f.value][0])), _(H || /* istanbul ignore next */
|
|
5501
5501
|
null);
|
|
5502
5502
|
} else {
|
|
5503
|
-
let H = L.value.map((
|
|
5503
|
+
let H = L.value.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1;
|
|
5504
5504
|
L.value.length <= H && (H = 0), _(L.value[H] || null);
|
|
5505
5505
|
}
|
|
5506
5506
|
De(() => {
|
|
5507
5507
|
q();
|
|
5508
5508
|
});
|
|
5509
5509
|
}, le = () => {
|
|
5510
|
-
if (
|
|
5510
|
+
if (k.value === null) {
|
|
5511
5511
|
let H = L.value[L.value.length - 1];
|
|
5512
5512
|
r.value && Z.value && (H = F.value, H === void 0 && (H = W.value)), _(H || null);
|
|
5513
5513
|
} else if (r.value && Z.value) {
|
|
5514
|
-
let H = Y.value ?
|
|
5515
|
-
H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H =
|
|
5514
|
+
let H = Y.value ? S.value : ne.value;
|
|
5515
|
+
H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H = S.value, H === void 0 && (H = K.value))), _(H || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
|
-
let H = L.value.map((
|
|
5518
|
+
let H = L.value.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1;
|
|
5519
5519
|
H < 0 && (H = L.value.length - 1), _(L.value[H] || null);
|
|
5520
5520
|
}
|
|
5521
5521
|
De(() => {
|
|
5522
5522
|
q();
|
|
5523
5523
|
});
|
|
5524
|
-
}, ie = (H) => U.value.find((
|
|
5524
|
+
}, ie = (H) => U.value.find((X) => X.__VISIBLE__.map((ve) => ve[n.value]).indexOf(H[n.value]) !== -1), q = () => {
|
|
5525
5525
|
let H = D.value.querySelector("[data-pointed]");
|
|
5526
5526
|
if (!H)
|
|
5527
5527
|
return;
|
|
5528
|
-
let
|
|
5529
|
-
r.value && (
|
|
5528
|
+
let X = H.parentElement.parentElement;
|
|
5529
|
+
r.value && (X = Y.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > X.clientHeight + X.scrollTop && (X.scrollTop = H.offsetTop + H.offsetHeight - X.clientHeight), H.offsetTop < X.scrollTop && (X.scrollTop = H.offsetTop);
|
|
5530
5530
|
};
|
|
5531
5531
|
return de(g, (H) => {
|
|
5532
5532
|
o.value && (H.length && s.value ? se() : m());
|
|
5533
5533
|
}), de(I, (H) => {
|
|
5534
5534
|
if (H) {
|
|
5535
|
-
let
|
|
5536
|
-
if (!
|
|
5535
|
+
let X = D.value.querySelectorAll("[data-selected]")[0];
|
|
5536
|
+
if (!X)
|
|
5537
5537
|
return;
|
|
5538
|
-
let ve =
|
|
5538
|
+
let ve = X.parentElement.parentElement;
|
|
5539
5539
|
De(() => {
|
|
5540
|
-
ve.scrollTop > 0 || (ve.scrollTop =
|
|
5540
|
+
ve.scrollTop > 0 || (ve.scrollTop = X.offsetTop);
|
|
5541
5541
|
});
|
|
5542
5542
|
}
|
|
5543
5543
|
}), {
|
|
5544
|
-
pointer:
|
|
5544
|
+
pointer: k,
|
|
5545
5545
|
canPointGroups: Z,
|
|
5546
5546
|
isPointed: V,
|
|
5547
5547
|
setPointerFirst: se,
|
|
5548
|
-
selectPointer:
|
|
5548
|
+
selectPointer: y,
|
|
5549
5549
|
forwardPointer: R,
|
|
5550
5550
|
backwardPointer: le
|
|
5551
5551
|
};
|
|
@@ -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,
|
|
5912
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, g = b === void 0 ? 0 : b, k = V7(typeof g != "number" ? g : B7(g, an)), _ = d === sa ? v7 : sa, m = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), L = Wt(t.elements.reference), U = li({
|
|
5913
5913
|
reference: L,
|
|
5914
5914
|
element: m,
|
|
5915
5915
|
strategy: "absolute",
|
|
5916
5916
|
placement: s
|
|
5917
5917
|
}), Z = bn(Object.assign({}, m, U)), Y = d === sa ? Z : L, E = {
|
|
5918
|
-
top: I.top - Y.top +
|
|
5919
|
-
bottom: Y.bottom - I.bottom +
|
|
5920
|
-
left: I.left - Y.left +
|
|
5921
|
-
right: Y.right - I.right +
|
|
5918
|
+
top: I.top - Y.top + k.top,
|
|
5919
|
+
bottom: Y.bottom - I.bottom + k.bottom,
|
|
5920
|
+
left: I.left - Y.left + k.left,
|
|
5921
|
+
right: Y.right - I.right + k.right
|
|
5922
5922
|
}, K = t.modifiersData.offset;
|
|
5923
5923
|
if (d === sa && K) {
|
|
5924
5924
|
var N = K[s];
|
|
@@ -5959,9 +5959,9 @@ function R7(t) {
|
|
|
5959
5959
|
styles: {}
|
|
5960
5960
|
}, f = [], d = !1, h = {
|
|
5961
5961
|
state: u,
|
|
5962
|
-
setOptions: function(
|
|
5963
|
-
var _ = typeof
|
|
5964
|
-
|
|
5962
|
+
setOptions: function(k) {
|
|
5963
|
+
var _ = typeof k == "function" ? k(u.options) : k;
|
|
5964
|
+
b(), u.options = Object.assign({}, o, u.options, _), u.scrollParents = {
|
|
5965
5965
|
reference: At(r) ? ia(r) : r.contextElement ? ia(r.contextElement) : [],
|
|
5966
5966
|
popper: ia(l)
|
|
5967
5967
|
};
|
|
@@ -5977,7 +5977,7 @@ function R7(t) {
|
|
|
5977
5977
|
// prefer the async Popper#update method
|
|
5978
5978
|
forceUpdate: function() {
|
|
5979
5979
|
if (!d) {
|
|
5980
|
-
var
|
|
5980
|
+
var k = u.elements, _ = k.reference, m = k.popper;
|
|
5981
5981
|
if (ws(_, m)) {
|
|
5982
5982
|
u.rects = {
|
|
5983
5983
|
reference: c7(_, tn(m), u.options.strategy === "fixed"),
|
|
@@ -6009,7 +6009,7 @@ function R7(t) {
|
|
|
6009
6009
|
});
|
|
6010
6010
|
}),
|
|
6011
6011
|
destroy: function() {
|
|
6012
|
-
|
|
6012
|
+
b(), d = !0;
|
|
6013
6013
|
}
|
|
6014
6014
|
};
|
|
6015
6015
|
if (!ws(r, l))
|
|
@@ -6019,11 +6019,11 @@ function R7(t) {
|
|
|
6019
6019
|
});
|
|
6020
6020
|
function w() {
|
|
6021
6021
|
u.orderedModifiers.forEach(function(g) {
|
|
6022
|
-
var
|
|
6022
|
+
var k = g.name, _ = g.options, m = _ === void 0 ? {} : _, D = g.effect;
|
|
6023
6023
|
if (typeof D == "function") {
|
|
6024
6024
|
var I = D({
|
|
6025
6025
|
state: u,
|
|
6026
|
-
name:
|
|
6026
|
+
name: k,
|
|
6027
6027
|
instance: h,
|
|
6028
6028
|
options: m
|
|
6029
6029
|
}), L = function() {
|
|
@@ -6032,7 +6032,7 @@ function R7(t) {
|
|
|
6032
6032
|
}
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function b() {
|
|
6036
6036
|
f.forEach(function(g) {
|
|
6037
6037
|
return g();
|
|
6038
6038
|
}), f = [];
|
|
@@ -6091,15 +6091,15 @@ function W7(t, e) {
|
|
|
6091
6091
|
};
|
|
6092
6092
|
}
|
|
6093
6093
|
function $s(t) {
|
|
6094
|
-
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, h = d === void 0 ? 0 : d, w = i.y,
|
|
6094
|
+
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, h = d === void 0 ? 0 : d, w = i.y, b = w === void 0 ? 0 : w, g = typeof u == "function" ? u({
|
|
6095
6095
|
x: h,
|
|
6096
|
-
y
|
|
6096
|
+
y: b
|
|
6097
6097
|
}) : {
|
|
6098
6098
|
x: h,
|
|
6099
|
-
y
|
|
6099
|
+
y: b
|
|
6100
6100
|
};
|
|
6101
|
-
h = g.x,
|
|
6102
|
-
var
|
|
6101
|
+
h = g.x, b = g.y;
|
|
6102
|
+
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), m = Ge, D = Re, I = window;
|
|
6103
6103
|
if (c) {
|
|
6104
6104
|
var L = tn(a), U = "clientHeight", Z = "clientWidth";
|
|
6105
6105
|
if (L === Se(a) && (L = gt(a), tt(L).position !== "static" && r === "absolute" && (U = "scrollHeight", Z = "scrollWidth")), L = L, s === Re || (s === Ge || s === vt) && o === da) {
|
|
@@ -6108,7 +6108,7 @@ function $s(t) {
|
|
|
6108
6108
|
// $FlowFixMe[prop-missing]
|
|
6109
6109
|
L[U]
|
|
6110
6110
|
);
|
|
6111
|
-
|
|
6111
|
+
b -= Y - n.height, b *= l ? 1 : -1;
|
|
6112
6112
|
}
|
|
6113
6113
|
if (s === Ge || (s === Re || s === We) && o === da) {
|
|
6114
6114
|
m = vt;
|
|
@@ -6123,16 +6123,16 @@ function $s(t) {
|
|
|
6123
6123
|
position: r
|
|
6124
6124
|
}, c && Z7), N = u === !0 ? W7({
|
|
6125
6125
|
x: h,
|
|
6126
|
-
y
|
|
6126
|
+
y: b
|
|
6127
6127
|
}, Se(a)) : {
|
|
6128
6128
|
x: h,
|
|
6129
|
-
y
|
|
6129
|
+
y: b
|
|
6130
6130
|
};
|
|
6131
|
-
if (h = N.x,
|
|
6131
|
+
if (h = N.x, b = N.y, l) {
|
|
6132
6132
|
var W;
|
|
6133
|
-
return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] =
|
|
6133
|
+
return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] = k ? "0" : "", W.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", W));
|
|
6134
6134
|
}
|
|
6135
|
-
return Object.assign({}, K, (e = {}, e[D] = _ ?
|
|
6135
|
+
return Object.assign({}, K, (e = {}, e[D] = _ ? b + "px" : "", e[m] = k ? h + "px" : "", e.transform = "", e));
|
|
6136
6136
|
}
|
|
6137
6137
|
function q7(t) {
|
|
6138
6138
|
var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, r = a.roundOffsets, l = r === void 0 ? !0 : r, c = {
|
|
@@ -6219,14 +6219,14 @@ function J7(t, e, a) {
|
|
|
6219
6219
|
return n > a ? a : n;
|
|
6220
6220
|
}
|
|
6221
6221
|
function ep(t) {
|
|
6222
|
-
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, h = d === void 0 ? !0 : d, w = a.tetherOffset,
|
|
6222
|
+
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, h = d === void 0 ? !0 : d, w = a.tetherOffset, b = w === void 0 ? 0 : w, g = Un(e, {
|
|
6223
6223
|
boundary: l,
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: f,
|
|
6226
6226
|
altBoundary: u
|
|
6227
|
-
}),
|
|
6227
|
+
}), k = ct(e.placement), _ = zt(e.placement), m = !_, D = ri(k), I = Q7(D), L = e.modifiersData.popperOffsets, U = e.rects.reference, Z = e.rects.popper, Y = typeof b == "function" ? b(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
|
-
})) :
|
|
6229
|
+
})) : b, E = typeof Y == "number" ? {
|
|
6230
6230
|
mainAxis: Y,
|
|
6231
6231
|
altAxis: Y
|
|
6232
6232
|
} : Object.assign({
|
|
@@ -6238,14 +6238,14 @@ function ep(t) {
|
|
|
6238
6238
|
};
|
|
6239
6239
|
if (L) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width",
|
|
6241
|
+
var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", S = L[D], F = S + g[oe], V = S - g[ne], se = h ? -Z[O] / 2 : 0, y = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, ie = h && le ? si(le) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
|
-
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe],
|
|
6245
|
-
L[D] = ya, N[D] = ya -
|
|
6244
|
+
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], X = q[ne], ve = Ia(0, U[O], ie[O]), we = m ? U[O] / 2 - se - ve - H - E.mainAxis : y - ve - H - E.mainAxis, Kt = m ? -U[O] / 2 + se + ve + X + E.mainAxis : R + ve + X + E.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (W = K == null ? void 0 : K[D]) != null ? W : 0, nn = S + we - _a - nt, st = S + Kt - _a, ya = Ia(h ? Na(F, nn) : F, S, h ? kt(V, st) : V);
|
|
6245
|
+
L[D] = ya, N[D] = ya - S;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
6248
|
-
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + g[Ne], ba = Be - g[Me], Te = [Re, Ge].indexOf(
|
|
6248
|
+
var it, Ne = D === "x" ? Re : Ge, Me = D === "x" ? We : vt, Be = L[I], qe = I === "y" ? "height" : "width", Xt = Be + g[Ne], ba = Be - g[Me], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it = K == null ? void 0 : K[I]) != null ? it : 0, ot = Te ? Xt : Be - U[qe] - Z[qe] - Qt + E.altAxis, _t = Te ? Be + U[qe] + Z[qe] - Qt - E.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
|
|
6249
6249
|
L[I] = wa, N[I] = wa - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = N;
|
|
@@ -6285,16 +6285,16 @@ function sp(t, e) {
|
|
|
6285
6285
|
return c.indexOf(w) >= 0;
|
|
6286
6286
|
});
|
|
6287
6287
|
d.length === 0 && (d = f);
|
|
6288
|
-
var h = d.reduce(function(w,
|
|
6289
|
-
return w[
|
|
6290
|
-
placement:
|
|
6288
|
+
var h = d.reduce(function(w, b) {
|
|
6289
|
+
return w[b] = Un(t, {
|
|
6290
|
+
placement: b,
|
|
6291
6291
|
boundary: s,
|
|
6292
6292
|
rootBoundary: o,
|
|
6293
6293
|
padding: i
|
|
6294
|
-
})[ct(
|
|
6294
|
+
})[ct(b)], w;
|
|
6295
6295
|
}, {});
|
|
6296
|
-
return Object.keys(h).sort(function(w,
|
|
6297
|
-
return h[w] - h[
|
|
6296
|
+
return Object.keys(h).sort(function(w, b) {
|
|
6297
|
+
return h[w] - h[b];
|
|
6298
6298
|
});
|
|
6299
6299
|
}
|
|
6300
6300
|
function ip(t) {
|
|
@@ -6306,14 +6306,14 @@ function ip(t) {
|
|
|
6306
6306
|
function op(t) {
|
|
6307
6307
|
var e = t.state, a = t.options, n = t.name;
|
|
6308
6308
|
if (!e.modifiersData[n]._skip) {
|
|
6309
|
-
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h,
|
|
6309
|
+
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, b = a.allowedAutoPlacements, g = e.options.placement, k = ct(g), _ = k === g, m = l || (_ || !w ? [La(g)] : ip(g)), D = [g].concat(m).reduce(function(ie, q) {
|
|
6310
6310
|
return ie.concat(ct(q) === Fn ? sp(e, {
|
|
6311
6311
|
placement: q,
|
|
6312
6312
|
boundary: u,
|
|
6313
6313
|
rootBoundary: f,
|
|
6314
6314
|
padding: c,
|
|
6315
6315
|
flipVariations: w,
|
|
6316
|
-
allowedAutoPlacements:
|
|
6316
|
+
allowedAutoPlacements: b
|
|
6317
6317
|
}) : q);
|
|
6318
6318
|
}, []), I = e.rects.reference, L = e.rects.popper, U = /* @__PURE__ */ new Map(), Z = !0, Y = D[0], E = 0; E < D.length; E++) {
|
|
6319
6319
|
var K = D[E], N = ct(K), W = zt(K) === qt, oe = [Re, We].indexOf(N) >= 0, ne = oe ? "width" : "height", O = Un(e, {
|
|
@@ -6322,10 +6322,10 @@ function op(t) {
|
|
|
6322
6322
|
rootBoundary: f,
|
|
6323
6323
|
altBoundary: d,
|
|
6324
6324
|
padding: c
|
|
6325
|
-
}),
|
|
6326
|
-
I[ne] > L[ne] && (
|
|
6327
|
-
var F = La(
|
|
6328
|
-
if (o && V.push(O[N] <= 0), r && V.push(O[
|
|
6325
|
+
}), S = oe ? W ? vt : Ge : W ? We : Re;
|
|
6326
|
+
I[ne] > L[ne] && (S = La(S));
|
|
6327
|
+
var F = La(S), V = [];
|
|
6328
|
+
if (o && V.push(O[N] <= 0), r && V.push(O[S] <= 0, O[F] <= 0), V.every(function(ie) {
|
|
6329
6329
|
return ie;
|
|
6330
6330
|
})) {
|
|
6331
6331
|
Y = K, Z = !1;
|
|
@@ -6334,9 +6334,9 @@ function op(t) {
|
|
|
6334
6334
|
U.set(K, V);
|
|
6335
6335
|
}
|
|
6336
6336
|
if (Z)
|
|
6337
|
-
for (var se = w ? 3 : 1,
|
|
6338
|
-
var H = D.find(function(
|
|
6339
|
-
var ve = U.get(
|
|
6337
|
+
for (var se = w ? 3 : 1, y = function(q) {
|
|
6338
|
+
var H = D.find(function(X) {
|
|
6339
|
+
var ve = U.get(X);
|
|
6340
6340
|
if (ve)
|
|
6341
6341
|
return ve.slice(0, q).every(function(we) {
|
|
6342
6342
|
return we;
|
|
@@ -6345,7 +6345,7 @@ function op(t) {
|
|
|
6345
6345
|
if (H)
|
|
6346
6346
|
return Y = H, "break";
|
|
6347
6347
|
}, R = se; R > 0; R--) {
|
|
6348
|
-
var le =
|
|
6348
|
+
var le = y(R);
|
|
6349
6349
|
if (le === "break")
|
|
6350
6350
|
break;
|
|
6351
6351
|
}
|
|
@@ -6363,13 +6363,13 @@ var rp = {
|
|
|
6363
6363
|
}
|
|
6364
6364
|
};
|
|
6365
6365
|
function lp(t, e, a) {
|
|
6366
|
-
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = A(() => s.value || o.value), w = A(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"),
|
|
6366
|
+
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = A(() => s.value || o.value), w = A(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), b = () => {
|
|
6367
6367
|
u.value || n.value || (u.value = !0, e.emit("open", r), h.value && De(() => {
|
|
6368
|
-
|
|
6368
|
+
k();
|
|
6369
6369
|
}));
|
|
6370
6370
|
}, g = () => {
|
|
6371
6371
|
u.value && (u.value = !1, e.emit("close", r));
|
|
6372
|
-
},
|
|
6372
|
+
}, k = () => {
|
|
6373
6373
|
if (!f.value)
|
|
6374
6374
|
return;
|
|
6375
6375
|
let m = parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px", "")), D = parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px", ""));
|
|
@@ -6430,16 +6430,16 @@ function lp(t, e, a) {
|
|
|
6430
6430
|
}), {
|
|
6431
6431
|
popper: f,
|
|
6432
6432
|
isOpen: u,
|
|
6433
|
-
open:
|
|
6433
|
+
open: b,
|
|
6434
6434
|
close: g,
|
|
6435
6435
|
placement: w,
|
|
6436
|
-
updatePopper:
|
|
6436
|
+
updatePopper: k
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function up(t, e, a) {
|
|
6440
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1),
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), b = A(() => n.value || s.value ? -1 : 0), g = () => {
|
|
6441
6441
|
n.value && i.value.blur(), f.value.blur();
|
|
6442
|
-
},
|
|
6442
|
+
}, k = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
6444
6444
|
}, _ = (Z = !0) => {
|
|
6445
6445
|
s.value || (h.value = !0, Z && r());
|
|
@@ -6449,11 +6449,11 @@ function up(t, e, a) {
|
|
|
6449
6449
|
}, 1);
|
|
6450
6450
|
};
|
|
6451
6451
|
return {
|
|
6452
|
-
tabindex:
|
|
6452
|
+
tabindex: b,
|
|
6453
6453
|
isActive: h,
|
|
6454
6454
|
mouseClicked: w,
|
|
6455
6455
|
blur: g,
|
|
6456
|
-
focus:
|
|
6456
|
+
focus: k,
|
|
6457
6457
|
activate: _,
|
|
6458
6458
|
deactivate: m,
|
|
6459
6459
|
handleFocusIn: (Z) => {
|
|
@@ -6487,25 +6487,25 @@ function cp(t, e, a) {
|
|
|
6487
6487
|
createTag: f,
|
|
6488
6488
|
createOption: d,
|
|
6489
6489
|
reverse: h
|
|
6490
|
-
} = Ae(t), w = Mt().proxy,
|
|
6490
|
+
} = Ae(t), w = Mt().proxy, b = a.iv, g = a.update, k = a.deselect, _ = a.search, m = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, Y = a.tags, E = a.isOpen, K = a.open, N = a.blur, W = a.fo, oe = A(() => f.value || d.value || !1), ne = A(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
|
|
6491
6491
|
n.value === "tags" && !r.value && oe.value && i.value && !c.value && m(W.value[W.value.map((V) => V[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
6494
|
handleKeydown: (V) => {
|
|
6495
6495
|
e.emit("keydown", V, w);
|
|
6496
|
-
let se,
|
|
6497
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value),
|
|
6496
|
+
let se, y;
|
|
6497
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value), y = se.findIndex((R) => R === document.activeElement)), V.key) {
|
|
6498
6498
|
case "Backspace":
|
|
6499
|
-
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 ||
|
|
6499
|
+
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || b.value.length === 0)
|
|
6500
6500
|
return;
|
|
6501
|
-
let R =
|
|
6502
|
-
R.length &&
|
|
6501
|
+
let R = b.value.filter((le) => !le.disabled && le.remove !== !1);
|
|
6502
|
+
R.length && k(R[R.length - 1]);
|
|
6503
6503
|
break;
|
|
6504
6504
|
case "Enter":
|
|
6505
6505
|
if (V.preventDefault(), V.keyCode === 229)
|
|
6506
6506
|
return;
|
|
6507
|
-
if (
|
|
6508
|
-
g([...
|
|
6507
|
+
if (y !== -1 && y !== void 0) {
|
|
6508
|
+
g([...b.value].filter((le, ie) => ie !== y)), y === se.length - 1 && (se.length - 1 ? se[se.length - 2].focus() : i.value ? Y.value.querySelector("input").focus() : Z.value.focus());
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
6511
|
if (ne.value.indexOf("enter") === -1 && oe.value)
|
|
@@ -6544,14 +6544,14 @@ function cp(t, e, a) {
|
|
|
6544
6544
|
E.value || K(), L();
|
|
6545
6545
|
break;
|
|
6546
6546
|
case "ArrowLeft":
|
|
6547
|
-
if (i.value && Y.value && Y.value.querySelector("input").selectionStart || V.shiftKey || n.value !== "tags" || !
|
|
6547
|
+
if (i.value && Y.value && Y.value.querySelector("input").selectionStart || V.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6548
6548
|
return;
|
|
6549
|
-
V.preventDefault(),
|
|
6549
|
+
V.preventDefault(), y === -1 ? se[se.length - 1].focus() : y > 0 && se[y - 1].focus();
|
|
6550
6550
|
break;
|
|
6551
6551
|
case "ArrowRight":
|
|
6552
|
-
if (
|
|
6552
|
+
if (y === -1 || V.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6553
6553
|
return;
|
|
6554
|
-
V.preventDefault(), se.length >
|
|
6554
|
+
V.preventDefault(), se.length > y + 1 ? se[y + 1].focus() : i.value ? Y.value.querySelector("input").focus() : i.value || Z.value.focus();
|
|
6555
6555
|
break;
|
|
6556
6556
|
}
|
|
6557
6557
|
},
|
|
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
|
|
|
6567
6567
|
disabled: s,
|
|
6568
6568
|
showOptions: o,
|
|
6569
6569
|
breakTags: i
|
|
6570
|
-
} = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo,
|
|
6570
|
+
} = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, b = a.placement, g = A(() => ({
|
|
6571
6571
|
container: "multiselect",
|
|
6572
6572
|
containerDisabled: "is-disabled",
|
|
6573
6573
|
containerOpen: "is-open",
|
|
@@ -6622,12 +6622,12 @@ function dp(t, e, a) {
|
|
|
6622
6622
|
assist: "multiselect-assistive-text",
|
|
6623
6623
|
spacer: "multiselect-spacer",
|
|
6624
6624
|
...n.value
|
|
6625
|
-
})),
|
|
6625
|
+
})), k = A(() => !!(r.value && o.value && (!h.value || h.value && w.value.length)));
|
|
6626
6626
|
return {
|
|
6627
6627
|
classList: A(() => {
|
|
6628
6628
|
const m = g.value;
|
|
6629
6629
|
return {
|
|
6630
|
-
container: [m.container].concat(s.value ? m.containerDisabled : []).concat(
|
|
6630
|
+
container: [m.container].concat(s.value ? m.containerDisabled : []).concat(k.value && b.value === "top" ? m.containerOpenTop : []).concat(k.value && b.value !== "top" ? m.containerOpen : []).concat(f.value ? m.containerActive : []),
|
|
6631
6631
|
wrapper: m.wrapper,
|
|
6632
6632
|
spacer: m.spacer,
|
|
6633
6633
|
singleLabel: m.singleLabel,
|
|
@@ -6650,8 +6650,8 @@ function dp(t, e, a) {
|
|
|
6650
6650
|
spinner: m.spinner,
|
|
6651
6651
|
inifinite: m.inifinite,
|
|
6652
6652
|
inifiniteSpinner: m.inifiniteSpinner,
|
|
6653
|
-
dropdown: [m.dropdown].concat(
|
|
6654
|
-
options: [m.options].concat(
|
|
6653
|
+
dropdown: [m.dropdown].concat(b.value === "top" ? m.dropdownTop : []).concat(!r.value || !o.value || !k.value ? m.dropdownHidden : []),
|
|
6654
|
+
options: [m.options].concat(b.value === "top" ? m.optionsTop : []),
|
|
6655
6655
|
group: m.group,
|
|
6656
6656
|
groupLabel: (D) => {
|
|
6657
6657
|
let I = [m.groupLabel];
|
|
@@ -6668,17 +6668,17 @@ function dp(t, e, a) {
|
|
|
6668
6668
|
fakeInput: m.fakeInput
|
|
6669
6669
|
};
|
|
6670
6670
|
}),
|
|
6671
|
-
showDropdown:
|
|
6671
|
+
showDropdown: k
|
|
6672
6672
|
};
|
|
6673
6673
|
}
|
|
6674
6674
|
function pp(t, e, a) {
|
|
6675
6675
|
const {
|
|
6676
6676
|
limit: n,
|
|
6677
6677
|
infinite: s
|
|
6678
|
-
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (
|
|
6679
|
-
const { isIntersecting: g, target:
|
|
6678
|
+
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (b) => {
|
|
6679
|
+
const { isIntersecting: g, target: k } = b[0];
|
|
6680
6680
|
if (g) {
|
|
6681
|
-
const _ =
|
|
6681
|
+
const _ = k.offsetParent, m = _.scrollTop;
|
|
6682
6682
|
i.value += n.value == -1 ? 10 : n.value, De(() => {
|
|
6683
6683
|
_.scrollTop = m;
|
|
6684
6684
|
});
|
|
@@ -6709,10 +6709,10 @@ function fp(t, e, a) {
|
|
|
6709
6709
|
groupLabel: l,
|
|
6710
6710
|
aria: c,
|
|
6711
6711
|
searchable: u
|
|
6712
|
-
} = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText,
|
|
6712
|
+
} = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, b = ee(null), g = A(() => {
|
|
6713
6713
|
let N = [];
|
|
6714
6714
|
return s && s.value && N.push(s.value), N.push("assist"), N.join("-");
|
|
6715
|
-
}),
|
|
6715
|
+
}), k = A(() => {
|
|
6716
6716
|
let N = [];
|
|
6717
6717
|
return s && s.value && N.push(s.value), N.push("multiselect-options"), N.join("-");
|
|
6718
6718
|
}), _ = A(() => {
|
|
@@ -6741,13 +6741,13 @@ function fp(t, e, a) {
|
|
|
6741
6741
|
return xt(() => {
|
|
6742
6742
|
if (s && s.value && document && document.querySelector) {
|
|
6743
6743
|
let N = document.querySelector(`[for="${s.value}"]`);
|
|
6744
|
-
|
|
6744
|
+
b.value = N ? N.innerText : null;
|
|
6745
6745
|
}
|
|
6746
6746
|
}), {
|
|
6747
6747
|
arias: L,
|
|
6748
6748
|
ariaLabel: I,
|
|
6749
6749
|
ariaAssist: g,
|
|
6750
|
-
ariaControls:
|
|
6750
|
+
ariaControls: k,
|
|
6751
6751
|
ariaPlaceholder: m,
|
|
6752
6752
|
ariaMultiselectable: D,
|
|
6753
6753
|
ariaActiveDescendant: _,
|
|
@@ -7170,7 +7170,7 @@ const Cp = ["id", "dir"], gp = ["tabindex", "aria-controls", "aria-placeholder",
|
|
|
7170
7170
|
function Rp(t, e, a, n, s, o) {
|
|
7171
7171
|
return p(), C("div", {
|
|
7172
7172
|
ref: "multiselect",
|
|
7173
|
-
class:
|
|
7173
|
+
class: G(t.classList.container),
|
|
7174
7174
|
id: a.searchable ? void 0 : a.id,
|
|
7175
7175
|
dir: a.rtl ? "rtl" : void 0,
|
|
7176
7176
|
onFocusin: e[10] || (e[10] = (...i) => t.handleFocusIn && t.handleFocusIn(...i)),
|
|
@@ -7218,7 +7218,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7218
7218
|
"div",
|
|
7219
7219
|
{
|
|
7220
7220
|
key: 1,
|
|
7221
|
-
class:
|
|
7221
|
+
class: G(t.classList.tags),
|
|
7222
7222
|
"data-tags": ""
|
|
7223
7223
|
},
|
|
7224
7224
|
[
|
|
@@ -7231,7 +7231,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7231
7231
|
disabled: a.disabled
|
|
7232
7232
|
}, () => [
|
|
7233
7233
|
(p(), C("span", {
|
|
7234
|
-
class:
|
|
7234
|
+
class: G([
|
|
7235
7235
|
t.classList.tag,
|
|
7236
7236
|
i.disabled ? t.classList.tagDisabled : null
|
|
7237
7237
|
]),
|
|
@@ -7243,7 +7243,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7243
7243
|
v(
|
|
7244
7244
|
"span",
|
|
7245
7245
|
{
|
|
7246
|
-
class:
|
|
7246
|
+
class: G(t.classList.tagWrapper)
|
|
7247
7247
|
},
|
|
7248
7248
|
Q(t.localize(i[a.label])),
|
|
7249
7249
|
3
|
|
@@ -7251,13 +7251,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7251
7251
|
),
|
|
7252
7252
|
!a.disabled && !i.disabled ? (p(), C("span", {
|
|
7253
7253
|
key: 0,
|
|
7254
|
-
class:
|
|
7254
|
+
class: G(t.classList.tagRemove),
|
|
7255
7255
|
onClick: fe((c) => t.handleTagRemove(i, c), ["stop"])
|
|
7256
7256
|
}, [
|
|
7257
7257
|
v(
|
|
7258
7258
|
"span",
|
|
7259
7259
|
{
|
|
7260
|
-
class:
|
|
7260
|
+
class: G(t.classList.tagRemoveIcon)
|
|
7261
7261
|
},
|
|
7262
7262
|
null,
|
|
7263
7263
|
2
|
|
@@ -7272,7 +7272,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7272
7272
|
v(
|
|
7273
7273
|
"div",
|
|
7274
7274
|
{
|
|
7275
|
-
class:
|
|
7275
|
+
class: G(t.classList.tagsSearchWrapper),
|
|
7276
7276
|
ref: "tags"
|
|
7277
7277
|
},
|
|
7278
7278
|
[
|
|
@@ -7280,7 +7280,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7280
7280
|
v(
|
|
7281
7281
|
"span",
|
|
7282
7282
|
{
|
|
7283
|
-
class:
|
|
7283
|
+
class: G(t.classList.tagsSearchCopy)
|
|
7284
7284
|
},
|
|
7285
7285
|
Q(t.search),
|
|
7286
7286
|
3
|
|
@@ -7325,13 +7325,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7325
7325
|
v(
|
|
7326
7326
|
"div",
|
|
7327
7327
|
{
|
|
7328
|
-
class:
|
|
7328
|
+
class: G(t.classList.singleLabel)
|
|
7329
7329
|
},
|
|
7330
7330
|
[
|
|
7331
7331
|
v(
|
|
7332
7332
|
"span",
|
|
7333
7333
|
{
|
|
7334
|
-
class:
|
|
7334
|
+
class: G(t.classList.singleLabelText)
|
|
7335
7335
|
},
|
|
7336
7336
|
Q(t.localize(t.iv[a.label])),
|
|
7337
7337
|
3
|
|
@@ -7348,7 +7348,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7348
7348
|
values: t.iv
|
|
7349
7349
|
}, () => [
|
|
7350
7350
|
v("div", {
|
|
7351
|
-
class:
|
|
7351
|
+
class: G(t.classList.multipleLabel),
|
|
7352
7352
|
innerHTML: t.multipleLabelText
|
|
7353
7353
|
}, null, 10, $p)
|
|
7354
7354
|
]) : T("v-if", !0),
|
|
@@ -7357,7 +7357,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7357
7357
|
v(
|
|
7358
7358
|
"div",
|
|
7359
7359
|
{
|
|
7360
|
-
class:
|
|
7360
|
+
class: G(t.classList.placeholder),
|
|
7361
7361
|
"aria-hidden": "true"
|
|
7362
7362
|
},
|
|
7363
7363
|
Q(a.placeholder),
|
|
@@ -7370,7 +7370,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7370
7370
|
v(
|
|
7371
7371
|
"span",
|
|
7372
7372
|
{
|
|
7373
|
-
class:
|
|
7373
|
+
class: G(t.classList.spinner),
|
|
7374
7374
|
"aria-hidden": "true"
|
|
7375
7375
|
},
|
|
7376
7376
|
null,
|
|
@@ -7391,7 +7391,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7391
7391
|
role: "button",
|
|
7392
7392
|
"data-clear": "",
|
|
7393
7393
|
"aria-roledescription": "❎",
|
|
7394
|
-
class:
|
|
7394
|
+
class: G(t.classList.clear),
|
|
7395
7395
|
onClick: e[6] || (e[6] = (...i) => t.clear && t.clear(...i)),
|
|
7396
7396
|
onKeyup: e[7] || (e[7] = dt((...i) => t.clear && t.clear(...i), ["enter"]))
|
|
7397
7397
|
},
|
|
@@ -7399,7 +7399,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7399
7399
|
v(
|
|
7400
7400
|
"span",
|
|
7401
7401
|
{
|
|
7402
|
-
class:
|
|
7402
|
+
class: G(t.classList.clearIcon)
|
|
7403
7403
|
},
|
|
7404
7404
|
null,
|
|
7405
7405
|
2
|
|
@@ -7419,7 +7419,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7419
7419
|
v(
|
|
7420
7420
|
"span",
|
|
7421
7421
|
{
|
|
7422
|
-
class:
|
|
7422
|
+
class: G(t.classList.caret),
|
|
7423
7423
|
onClick: e[8] || (e[8] = (...i) => t.handleCaretClick && t.handleCaretClick(...i)),
|
|
7424
7424
|
"aria-hidden": "true"
|
|
7425
7425
|
},
|
|
@@ -7436,13 +7436,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7436
7436
|
}, [
|
|
7437
7437
|
v("div", {
|
|
7438
7438
|
id: `${a.id}-dropdown`,
|
|
7439
|
-
class:
|
|
7439
|
+
class: G(t.classList.dropdown),
|
|
7440
7440
|
tabindex: "-1",
|
|
7441
7441
|
ref: "dropdown"
|
|
7442
7442
|
}, [
|
|
7443
7443
|
te(t.$slots, "beforelist", { options: t.fo }),
|
|
7444
7444
|
v("ul", {
|
|
7445
|
-
class:
|
|
7445
|
+
class: G(t.classList.options),
|
|
7446
7446
|
id: t.ariaControls,
|
|
7447
7447
|
role: "listbox"
|
|
7448
7448
|
}, [
|
|
@@ -7450,7 +7450,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7450
7450
|
he,
|
|
7451
7451
|
{ key: 0 },
|
|
7452
7452
|
_e(t.fg, (i, r, l) => (p(), C("li", {
|
|
7453
|
-
class:
|
|
7453
|
+
class: G(t.classList.group),
|
|
7454
7454
|
key: l,
|
|
7455
7455
|
id: t.ariaGroupId(i),
|
|
7456
7456
|
"aria-label": t.ariaGroupLabel(t.localize(i[a.groupLabel])),
|
|
@@ -7459,7 +7459,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7459
7459
|
}, [
|
|
7460
7460
|
i.__CREATE__ ? T("v-if", !0) : (p(), C("div", {
|
|
7461
7461
|
key: 0,
|
|
7462
|
-
class:
|
|
7462
|
+
class: G(t.classList.groupLabel(i)),
|
|
7463
7463
|
"data-pointed": t.isPointed(i),
|
|
7464
7464
|
onMouseenter: (c) => t.setPointer(i, r),
|
|
7465
7465
|
onMousedown: fe((c) => t.handleGroupClick(i), ["prevent"])
|
|
@@ -7475,7 +7475,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7475
7475
|
])
|
|
7476
7476
|
], 42, Mp)),
|
|
7477
7477
|
v("ul", {
|
|
7478
|
-
class:
|
|
7478
|
+
class: G(t.classList.groupOptions),
|
|
7479
7479
|
"aria-label": t.ariaGroupLabel(t.localize(i[a.groupLabel])),
|
|
7480
7480
|
role: "group"
|
|
7481
7481
|
}, [
|
|
@@ -7483,7 +7483,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7483
7483
|
he,
|
|
7484
7484
|
null,
|
|
7485
7485
|
_e(i.__VISIBLE__, (c, u, f) => (p(), C("li", {
|
|
7486
|
-
class:
|
|
7486
|
+
class: G(t.classList.option(c, i)),
|
|
7487
7487
|
"data-pointed": t.isPointed(c),
|
|
7488
7488
|
"data-selected": t.isSelected(c) || void 0,
|
|
7489
7489
|
key: f,
|
|
@@ -7520,7 +7520,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7520
7520
|
he,
|
|
7521
7521
|
{ key: 1 },
|
|
7522
7522
|
_e(t.fo, (i, r, l) => (p(), C("li", {
|
|
7523
|
-
class:
|
|
7523
|
+
class: G(t.classList.option(i)),
|
|
7524
7524
|
"data-pointed": t.isPointed(i),
|
|
7525
7525
|
"data-selected": t.isSelected(i) || void 0,
|
|
7526
7526
|
key: l,
|
|
@@ -7552,13 +7552,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7552
7552
|
], 10, Sp),
|
|
7553
7553
|
t.noOptions ? te(t.$slots, "nooptions", { key: 0 }, () => [
|
|
7554
7554
|
v("div", {
|
|
7555
|
-
class:
|
|
7555
|
+
class: G(t.classList.noOptions),
|
|
7556
7556
|
innerHTML: t.localize(a.noOptionsText)
|
|
7557
7557
|
}, null, 10, Lp)
|
|
7558
7558
|
]) : T("v-if", !0),
|
|
7559
7559
|
t.noResults ? te(t.$slots, "noresults", { key: 1 }, () => [
|
|
7560
7560
|
v("div", {
|
|
7561
|
-
class:
|
|
7561
|
+
class: G(t.classList.noResults),
|
|
7562
7562
|
innerHTML: t.localize(a.noResultsText)
|
|
7563
7563
|
}, null, 10, Hp)
|
|
7564
7564
|
]) : T("v-if", !0),
|
|
@@ -7566,7 +7566,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7566
7566
|
"div",
|
|
7567
7567
|
{
|
|
7568
7568
|
key: 2,
|
|
7569
|
-
class:
|
|
7569
|
+
class: G(t.classList.inifinite),
|
|
7570
7570
|
ref: "infiniteLoader"
|
|
7571
7571
|
},
|
|
7572
7572
|
[
|
|
@@ -7574,7 +7574,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7574
7574
|
v(
|
|
7575
7575
|
"span",
|
|
7576
7576
|
{
|
|
7577
|
-
class:
|
|
7577
|
+
class: G(t.classList.inifiniteSpinner)
|
|
7578
7578
|
},
|
|
7579
7579
|
null,
|
|
7580
7580
|
2
|
|
@@ -7591,7 +7591,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7591
7591
|
T(" Hacky input element to show HTML5 required warning "),
|
|
7592
7592
|
a.required ? (p(), C("input", {
|
|
7593
7593
|
key: 0,
|
|
7594
|
-
class:
|
|
7594
|
+
class: G(t.classList.fakeInput),
|
|
7595
7595
|
tabindex: "-1",
|
|
7596
7596
|
value: t.textValue,
|
|
7597
7597
|
required: ""
|
|
@@ -7625,7 +7625,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7625
7625
|
T(" Screen reader assistive text "),
|
|
7626
7626
|
a.searchable && t.hasSelected ? (p(), C("div", {
|
|
7627
7627
|
key: 2,
|
|
7628
|
-
class:
|
|
7628
|
+
class: G(t.classList.assist),
|
|
7629
7629
|
id: t.ariaAssist,
|
|
7630
7630
|
"aria-hidden": "true"
|
|
7631
7631
|
}, Q(t.ariaLabel), 11, Bp)) : T("v-if", !0),
|
|
@@ -7633,7 +7633,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7633
7633
|
v(
|
|
7634
7634
|
"div",
|
|
7635
7635
|
{
|
|
7636
|
-
class:
|
|
7636
|
+
class: G(t.classList.spacer)
|
|
7637
7637
|
},
|
|
7638
7638
|
null,
|
|
7639
7639
|
2
|
|
@@ -7775,7 +7775,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7775
7775
|
return (f, d) => (p(), C("div", jp, [
|
|
7776
7776
|
v("ul", Fp, [
|
|
7777
7777
|
(p(!0), C(he, null, _e(f.tasks, (h) => {
|
|
7778
|
-
var w,
|
|
7778
|
+
var w, b;
|
|
7779
7779
|
return p(), C("li", {
|
|
7780
7780
|
key: h.id,
|
|
7781
7781
|
class: "ao-subtask"
|
|
@@ -7793,7 +7793,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7793
7793
|
id: h.id,
|
|
7794
7794
|
value: h.name,
|
|
7795
7795
|
readonly: !f.isEditable,
|
|
7796
|
-
class:
|
|
7796
|
+
class: G(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": h.isDone }]),
|
|
7797
7797
|
type: "text",
|
|
7798
7798
|
onChange: (g) => i(g, h.id),
|
|
7799
7799
|
onKeyup: dt(u, ["enter"])
|
|
@@ -7801,7 +7801,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7801
7801
|
Fa(". "),
|
|
7802
7802
|
!f.isTemplate && f.users ? (p(), P($e, {
|
|
7803
7803
|
key: 1,
|
|
7804
|
-
value: (
|
|
7804
|
+
value: (b = h.assignee) != null && b.id ? [h.assignee.id] : [],
|
|
7805
7805
|
options: s.value,
|
|
7806
7806
|
"close-on-select": !0,
|
|
7807
7807
|
searchable: !0,
|
|
@@ -7813,12 +7813,12 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7813
7813
|
caret: f.isEditable,
|
|
7814
7814
|
onChange: (g) => c(g, h.id)
|
|
7815
7815
|
}, {
|
|
7816
|
-
tag: z(({ option: g, handleTagRemove:
|
|
7816
|
+
tag: z(({ option: g, handleTagRemove: k }) => [
|
|
7817
7817
|
M(Je, {
|
|
7818
7818
|
"user-name": g.label,
|
|
7819
7819
|
"avatar-url": g.avatar,
|
|
7820
7820
|
"is-closable": !0,
|
|
7821
|
-
onClose: (_) =>
|
|
7821
|
+
onClose: (_) => k(g, _)
|
|
7822
7822
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
7823
7823
|
]),
|
|
7824
7824
|
_: 2
|
|
@@ -7894,7 +7894,7 @@ const qp = ["onDrop", "onDragenter", "onDragover", "onDragleave"], zp = { class:
|
|
|
7894
7894
|
u.dataTransfer && e("add", f);
|
|
7895
7895
|
}
|
|
7896
7896
|
return (u, f) => (p(), C("div", {
|
|
7897
|
-
class:
|
|
7897
|
+
class: G([
|
|
7898
7898
|
"ao-files__wrapper",
|
|
7899
7899
|
{
|
|
7900
7900
|
"ao-files__wrapper--drop-active": i.value
|
|
@@ -7980,30 +7980,30 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
7980
7980
|
emits: ["edit", "remove"],
|
|
7981
7981
|
setup(t, { emit: e }) {
|
|
7982
7982
|
const a = t, n = A(() => {
|
|
7983
|
-
const
|
|
7984
|
-
return
|
|
7983
|
+
const b = a.user;
|
|
7984
|
+
return b ? `${b == null ? void 0 : b.firstName} ${b == null ? void 0 : b.lastName}` : null;
|
|
7985
7985
|
}), s = ee(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard: l } = Es(s), c = A(() => {
|
|
7986
|
-
const
|
|
7987
|
-
return _ && a3(_,
|
|
7988
|
-
}), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((
|
|
7989
|
-
e("edit",
|
|
7986
|
+
const b = a.editedAt && la(a.editedAt), g = la(a.createdAt), k = /* @__PURE__ */ new Date(), _ = b ?? g;
|
|
7987
|
+
return _ && a3(_, k);
|
|
7988
|
+
}), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((b) => {
|
|
7989
|
+
e("edit", b);
|
|
7990
7990
|
}), h = () => {
|
|
7991
7991
|
e("remove");
|
|
7992
7992
|
}, w = ee(2);
|
|
7993
7993
|
return Di(() => {
|
|
7994
7994
|
De(() => {
|
|
7995
|
-
var
|
|
7995
|
+
var b;
|
|
7996
7996
|
if (!o.value) {
|
|
7997
|
-
const g = (
|
|
7997
|
+
const g = (b = s.value) == null ? void 0 : b.getClientRects().length;
|
|
7998
7998
|
w.value = g || 2;
|
|
7999
7999
|
}
|
|
8000
8000
|
});
|
|
8001
|
-
}), (
|
|
8002
|
-
var
|
|
8001
|
+
}), (b, g) => {
|
|
8002
|
+
var k;
|
|
8003
8003
|
return p(), C("li", nf, [
|
|
8004
8004
|
n.value ? (p(), P(Je, {
|
|
8005
8005
|
key: 0,
|
|
8006
|
-
"avatar-url": (
|
|
8006
|
+
"avatar-url": (k = b.user) == null ? void 0 : k.avatarUrl,
|
|
8007
8007
|
"user-name": n.value,
|
|
8008
8008
|
class: "ao-comment__avatar"
|
|
8009
8009
|
}, null, 8, ["avatar-url", "user-name"])) : T("", !0),
|
|
@@ -8014,7 +8014,7 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8014
8014
|
ref_key: "commentContent",
|
|
8015
8015
|
ref: s,
|
|
8016
8016
|
class: "ao-comment__content",
|
|
8017
|
-
value: J(o) ?
|
|
8017
|
+
value: J(o) ? b.content : null,
|
|
8018
8018
|
rows: J(o) ? w.value : null,
|
|
8019
8019
|
onKeyup: [
|
|
8020
8020
|
dt(J(f), ["esc"]),
|
|
@@ -8022,13 +8022,13 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8022
8022
|
]
|
|
8023
8023
|
}, {
|
|
8024
8024
|
default: z(() => [
|
|
8025
|
-
Fa(Q(
|
|
8025
|
+
Fa(Q(b.content), 1)
|
|
8026
8026
|
]),
|
|
8027
8027
|
_: 1
|
|
8028
8028
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
8029
8029
|
])
|
|
8030
8030
|
]),
|
|
8031
|
-
|
|
8031
|
+
b.isEditable ? (p(), C("div", lf, [
|
|
8032
8032
|
J(o) ? (p(), C(he, { key: 0 }, [
|
|
8033
8033
|
M(ue, {
|
|
8034
8034
|
"icon-name": "CloseRounded",
|
|
@@ -8047,14 +8047,14 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8047
8047
|
}, null, 8, ["onClick"])
|
|
8048
8048
|
], 64)) : (p(), C(he, { key: 1 }, [
|
|
8049
8049
|
M(ue, {
|
|
8050
|
-
label:
|
|
8050
|
+
label: b.$t("activity.comment.delete"),
|
|
8051
8051
|
size: "sm",
|
|
8052
8052
|
variant: "ghost",
|
|
8053
8053
|
color: "neutral",
|
|
8054
8054
|
onClick: h
|
|
8055
8055
|
}, null, 8, ["label"]),
|
|
8056
8056
|
M(ue, {
|
|
8057
|
-
label:
|
|
8057
|
+
label: b.$t("activity.comment.edit"),
|
|
8058
8058
|
size: "sm",
|
|
8059
8059
|
variant: "ghost",
|
|
8060
8060
|
color: "neutral",
|
|
@@ -8149,7 +8149,7 @@ const cf = { class: "ao-comments__header" }, df = ["onSubmit"], pf = ["placehold
|
|
|
8149
8149
|
"edited-at": w.updatedAt,
|
|
8150
8150
|
"is-editable": w.author.id === f.userId,
|
|
8151
8151
|
class: "ao-comment",
|
|
8152
|
-
onEdit: (
|
|
8152
|
+
onEdit: (b) => c(w.id, b),
|
|
8153
8153
|
onRemove: () => u(w.id)
|
|
8154
8154
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
8155
8155
|
])) : T("", !0)
|
|
@@ -8222,200 +8222,200 @@ const wn = /* @__PURE__ */ x({
|
|
|
8222
8222
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
|
|
8223
8223
|
setup(t, { emit: e }) {
|
|
8224
8224
|
const a = t, n = A(() => {
|
|
8225
|
-
var
|
|
8226
|
-
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((
|
|
8227
|
-
}), s = (
|
|
8225
|
+
var y;
|
|
8226
|
+
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((y = a.activity.assignee) == null ? void 0 : y.id) : !1;
|
|
8227
|
+
}), s = (y) => {
|
|
8228
8228
|
e("update:activity", {
|
|
8229
8229
|
id: a.activity.id,
|
|
8230
|
-
name:
|
|
8230
|
+
name: y
|
|
8231
8231
|
});
|
|
8232
8232
|
}, o = A({
|
|
8233
8233
|
get() {
|
|
8234
8234
|
return a.activity.description ?? "";
|
|
8235
8235
|
},
|
|
8236
|
-
set(
|
|
8237
|
-
e("update:activity", { id: a.activity.id, description:
|
|
8236
|
+
set(y) {
|
|
8237
|
+
e("update:activity", { id: a.activity.id, description: y });
|
|
8238
8238
|
}
|
|
8239
8239
|
}), i = A({
|
|
8240
8240
|
get() {
|
|
8241
8241
|
return a.activity.estimation ?? 0;
|
|
8242
8242
|
},
|
|
8243
|
-
set(
|
|
8244
|
-
e("update:activity", { id: a.activity.id, estimation:
|
|
8243
|
+
set(y) {
|
|
8244
|
+
e("update:activity", { id: a.activity.id, estimation: y });
|
|
8245
8245
|
}
|
|
8246
8246
|
}), r = A({
|
|
8247
8247
|
get() {
|
|
8248
8248
|
return a.activity.important ?? !1;
|
|
8249
8249
|
},
|
|
8250
|
-
set(
|
|
8251
|
-
e("update:activity", { id: a.activity.id, important:
|
|
8250
|
+
set(y) {
|
|
8251
|
+
e("update:activity", { id: a.activity.id, important: y });
|
|
8252
8252
|
}
|
|
8253
8253
|
}), l = A({
|
|
8254
8254
|
get() {
|
|
8255
8255
|
return a.activity.private ?? !1;
|
|
8256
8256
|
},
|
|
8257
|
-
set(
|
|
8258
|
-
e("update:activity", { id: a.activity.id, private:
|
|
8257
|
+
set(y) {
|
|
8258
|
+
e("update:activity", { id: a.activity.id, private: y });
|
|
8259
8259
|
}
|
|
8260
8260
|
}), c = A({
|
|
8261
8261
|
get() {
|
|
8262
8262
|
return a.activity.deadline;
|
|
8263
8263
|
},
|
|
8264
|
-
set(
|
|
8265
|
-
e("update:activity", { id: a.activity.id, deadline:
|
|
8264
|
+
set(y) {
|
|
8265
|
+
e("update:activity", { id: a.activity.id, deadline: y });
|
|
8266
8266
|
}
|
|
8267
8267
|
}), u = A(() => {
|
|
8268
|
-
var
|
|
8269
|
-
return (
|
|
8268
|
+
var y;
|
|
8269
|
+
return (y = a.activityTypes) == null ? void 0 : y.map((R) => ({
|
|
8270
8270
|
label: R.name,
|
|
8271
8271
|
value: R.id
|
|
8272
8272
|
}));
|
|
8273
8273
|
}), f = A({
|
|
8274
8274
|
get() {
|
|
8275
|
-
var
|
|
8276
|
-
return (
|
|
8275
|
+
var y;
|
|
8276
|
+
return (y = a.activity.type) == null ? void 0 : y.id;
|
|
8277
8277
|
},
|
|
8278
|
-
set(
|
|
8279
|
-
e("update:activity", { id: a.activity.id, typeId:
|
|
8278
|
+
set(y) {
|
|
8279
|
+
e("update:activity", { id: a.activity.id, typeId: y });
|
|
8280
8280
|
}
|
|
8281
|
-
}), d = A(() => a.templateActivities.filter((
|
|
8282
|
-
label:
|
|
8283
|
-
value:
|
|
8281
|
+
}), d = A(() => a.templateActivities.filter((y) => y.id !== a.activity.id).map((y) => ({
|
|
8282
|
+
label: y.name,
|
|
8283
|
+
value: y.id
|
|
8284
8284
|
}))), h = A({
|
|
8285
8285
|
get() {
|
|
8286
|
-
var
|
|
8287
|
-
return (
|
|
8286
|
+
var y;
|
|
8287
|
+
return (y = a.activity.dependingOn) == null ? void 0 : y.map((R) => R.id);
|
|
8288
8288
|
},
|
|
8289
|
-
set(
|
|
8290
|
-
|
|
8289
|
+
set(y) {
|
|
8290
|
+
y && e("update:activity", {
|
|
8291
8291
|
id: a.activity.id,
|
|
8292
|
-
dependingOn:
|
|
8292
|
+
dependingOn: y
|
|
8293
8293
|
});
|
|
8294
8294
|
}
|
|
8295
|
-
}), w = A(() => d.value.map((
|
|
8295
|
+
}), w = A(() => d.value.map((y) => {
|
|
8296
8296
|
var R;
|
|
8297
8297
|
return {
|
|
8298
|
-
...
|
|
8299
|
-
disabled: (R = a.activity.blocking) == null ? void 0 : R.some((le) => le.id ===
|
|
8298
|
+
...y,
|
|
8299
|
+
disabled: (R = a.activity.blocking) == null ? void 0 : R.some((le) => le.id === y.value)
|
|
8300
8300
|
};
|
|
8301
|
-
})),
|
|
8301
|
+
})), b = A({
|
|
8302
8302
|
get() {
|
|
8303
|
-
var
|
|
8304
|
-
return (
|
|
8303
|
+
var y;
|
|
8304
|
+
return (y = a.activity.blocking) == null ? void 0 : y.map((R) => R.id);
|
|
8305
8305
|
},
|
|
8306
|
-
set(
|
|
8307
|
-
|
|
8306
|
+
set(y) {
|
|
8307
|
+
y && e("update:activity", {
|
|
8308
8308
|
id: a.activity.id,
|
|
8309
|
-
blocking:
|
|
8309
|
+
blocking: y
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
|
-
}), g = A(() => d.value.map((
|
|
8312
|
+
}), g = A(() => d.value.map((y) => {
|
|
8313
8313
|
var R;
|
|
8314
8314
|
return {
|
|
8315
|
-
...
|
|
8315
|
+
...y,
|
|
8316
8316
|
disabled: (R = a.activity.dependingOn) == null ? void 0 : R.some(
|
|
8317
|
-
(le) => le.id ===
|
|
8317
|
+
(le) => le.id === y.value
|
|
8318
8318
|
)
|
|
8319
8319
|
};
|
|
8320
|
-
})),
|
|
8321
|
-
e("addSubtask",
|
|
8322
|
-
}, _ = (
|
|
8323
|
-
e("updateSubtask",
|
|
8324
|
-
}, m = (
|
|
8325
|
-
e("deleteSubtask",
|
|
8320
|
+
})), k = (y) => {
|
|
8321
|
+
e("addSubtask", y);
|
|
8322
|
+
}, _ = (y) => {
|
|
8323
|
+
e("updateSubtask", y);
|
|
8324
|
+
}, m = (y) => {
|
|
8325
|
+
e("deleteSubtask", y);
|
|
8326
8326
|
};
|
|
8327
8327
|
function D() {
|
|
8328
8328
|
a.userId ? U.value = [a.userId] : console.error("Failed assigning to self: userId is missing");
|
|
8329
8329
|
}
|
|
8330
|
-
function I(
|
|
8331
|
-
U.value = [
|
|
8330
|
+
function I(y) {
|
|
8331
|
+
U.value = [y];
|
|
8332
8332
|
}
|
|
8333
8333
|
const L = A(() => {
|
|
8334
|
-
var
|
|
8335
|
-
return ((
|
|
8334
|
+
var y;
|
|
8335
|
+
return ((y = a.users) == null ? void 0 : y.map((R) => ({
|
|
8336
8336
|
label: `${R.firstName} ${R.lastName}`,
|
|
8337
8337
|
value: R.id,
|
|
8338
8338
|
avatar: R.avatarUrl
|
|
8339
8339
|
}))) || [];
|
|
8340
8340
|
}), U = A({
|
|
8341
8341
|
get() {
|
|
8342
|
-
var
|
|
8343
|
-
return (
|
|
8342
|
+
var y, R;
|
|
8343
|
+
return (y = a.activity.assignee) != null && y.id ? [(R = a.activity.assignee) == null ? void 0 : R.id] : [];
|
|
8344
8344
|
},
|
|
8345
|
-
set(
|
|
8345
|
+
set(y) {
|
|
8346
8346
|
e("update:activity", {
|
|
8347
8347
|
id: a.activity.id,
|
|
8348
|
-
assigneeId:
|
|
8348
|
+
assigneeId: y[0] ?? null
|
|
8349
8349
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
8350
8350
|
});
|
|
8351
8351
|
}
|
|
8352
|
-
}), Z = (
|
|
8352
|
+
}), Z = (y) => {
|
|
8353
8353
|
e("addFiles", {
|
|
8354
8354
|
activityId: a.activity.id,
|
|
8355
|
-
files:
|
|
8355
|
+
files: y
|
|
8356
8356
|
});
|
|
8357
|
-
}, Y = (
|
|
8357
|
+
}, Y = (y) => {
|
|
8358
8358
|
e("removeFile", {
|
|
8359
8359
|
activityId: a.activity.id,
|
|
8360
|
-
file:
|
|
8360
|
+
file: y
|
|
8361
8361
|
});
|
|
8362
|
-
}, E = A(() => a.projects.map((
|
|
8363
|
-
value:
|
|
8364
|
-
label:
|
|
8362
|
+
}, E = A(() => a.projects.map((y) => ({
|
|
8363
|
+
value: y.id,
|
|
8364
|
+
label: y.name
|
|
8365
8365
|
}))), K = A(() => {
|
|
8366
8366
|
var R, le, ie;
|
|
8367
|
-
const
|
|
8367
|
+
const y = (ie = (le = (R = a.activity) == null ? void 0 : R.project) == null ? void 0 : le.phases) == null ? void 0 : ie.reduce(
|
|
8368
8368
|
(q, H) => [...q, ...H.milestones],
|
|
8369
8369
|
[]
|
|
8370
8370
|
);
|
|
8371
|
-
return
|
|
8371
|
+
return y == null ? void 0 : y.map((q) => ({
|
|
8372
8372
|
value: q.id,
|
|
8373
8373
|
label: q.name
|
|
8374
8374
|
}));
|
|
8375
|
-
}), N = (
|
|
8375
|
+
}), N = (y) => {
|
|
8376
8376
|
a.activity && e("update:activity", {
|
|
8377
8377
|
id: a.activity.id,
|
|
8378
|
-
projectId:
|
|
8378
|
+
projectId: y
|
|
8379
8379
|
});
|
|
8380
|
-
}, W = (
|
|
8380
|
+
}, W = (y) => {
|
|
8381
8381
|
a.activity && e("update:activity", {
|
|
8382
8382
|
id: a.activity.id,
|
|
8383
|
-
milestoneId:
|
|
8383
|
+
milestoneId: y
|
|
8384
8384
|
});
|
|
8385
8385
|
}, oe = A(() => {
|
|
8386
|
-
var
|
|
8387
|
-
return (
|
|
8386
|
+
var y;
|
|
8387
|
+
return (y = a.statuses) == null ? void 0 : y.map((R) => ({
|
|
8388
8388
|
value: R.id,
|
|
8389
8389
|
label: R.name
|
|
8390
8390
|
}));
|
|
8391
|
-
}), ne = (
|
|
8391
|
+
}), ne = (y) => {
|
|
8392
8392
|
e("update:activity", {
|
|
8393
8393
|
id: a.activity.id,
|
|
8394
|
-
statusId:
|
|
8394
|
+
statusId: y
|
|
8395
8395
|
});
|
|
8396
|
-
}, O = (
|
|
8396
|
+
}, O = (y) => {
|
|
8397
8397
|
e("addComment", {
|
|
8398
|
-
...
|
|
8398
|
+
...y,
|
|
8399
8399
|
activityId: a.activity.id
|
|
8400
8400
|
});
|
|
8401
|
-
},
|
|
8402
|
-
e("updateComment",
|
|
8403
|
-
}, F = (
|
|
8404
|
-
e("removeComment",
|
|
8401
|
+
}, S = (y) => {
|
|
8402
|
+
e("updateComment", y);
|
|
8403
|
+
}, F = (y) => {
|
|
8404
|
+
e("removeComment", y);
|
|
8405
8405
|
}, V = A(() => {
|
|
8406
|
-
var
|
|
8407
|
-
return ((
|
|
8406
|
+
var y, R;
|
|
8407
|
+
return ((y = a.activity.createdBy) == null ? void 0 : y.firstName) && ((R = a.activity.createdBy) == null ? void 0 : R.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8408
8408
|
});
|
|
8409
8409
|
function se() {
|
|
8410
|
-
const
|
|
8410
|
+
const y = window.location.origin, R = a.activity.slug, le = `${y}/activity-feed/slug/${R}`;
|
|
8411
8411
|
navigator.clipboard.writeText(le).then(() => {
|
|
8412
8412
|
console.log(`Link copied to clipboard: ${le}`), e("toast", "Link copied to clipboard!", "success");
|
|
8413
8413
|
}).catch(() => {
|
|
8414
8414
|
console.log("Failed to copy link"), e("toast", "Failed to copy link.", "error");
|
|
8415
8415
|
});
|
|
8416
8416
|
}
|
|
8417
|
-
return (
|
|
8418
|
-
onClose: R[10] || (R[10] = (le) =>
|
|
8417
|
+
return (y, R) => (p(), P(In, {
|
|
8418
|
+
onClose: R[10] || (R[10] = (le) => y.$emit("close"))
|
|
8419
8419
|
}, {
|
|
8420
8420
|
default: z(() => {
|
|
8421
8421
|
var le, ie, q;
|
|
@@ -8423,28 +8423,28 @@ const wn = /* @__PURE__ */ x({
|
|
|
8423
8423
|
v("div", mf, [
|
|
8424
8424
|
v("div", Cf, [
|
|
8425
8425
|
v("div", gf, [
|
|
8426
|
-
|
|
8426
|
+
y.activity.slug ? (p(), P(qa, {
|
|
8427
8427
|
key: 0,
|
|
8428
|
-
label:
|
|
8428
|
+
label: y.activity.slug,
|
|
8429
8429
|
clickable: !0,
|
|
8430
8430
|
variant: "solid",
|
|
8431
8431
|
color: "primary",
|
|
8432
8432
|
class: "ao-activity__ao-tag",
|
|
8433
8433
|
onClick: se
|
|
8434
8434
|
}, null, 8, ["label"])) : T("", !0),
|
|
8435
|
-
|
|
8435
|
+
y.breadcrumbs ? (p(), C("div", _f, Q(y.breadcrumbs), 1)) : T("", !0),
|
|
8436
8436
|
M(ye, {
|
|
8437
|
-
title:
|
|
8437
|
+
title: y.activity.name || "",
|
|
8438
8438
|
level: 4,
|
|
8439
8439
|
"is-editable": n.value,
|
|
8440
8440
|
"onUpdate:title": s
|
|
8441
8441
|
}, null, 8, ["title", "is-editable"]),
|
|
8442
8442
|
v("div", yf, [
|
|
8443
8443
|
E.value ? (p(), C("label", bf, [
|
|
8444
|
-
v("span", wf, Q(
|
|
8444
|
+
v("span", wf, Q(y.$t("activity.project.label")), 1),
|
|
8445
8445
|
M($e, {
|
|
8446
8446
|
options: E.value,
|
|
8447
|
-
value: (le =
|
|
8447
|
+
value: (le = y.activity.project) == null ? void 0 : le.id,
|
|
8448
8448
|
searchable: !0,
|
|
8449
8449
|
disabled: !n.value,
|
|
8450
8450
|
caret: n.value,
|
|
@@ -8452,10 +8452,10 @@ const wn = /* @__PURE__ */ x({
|
|
|
8452
8452
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8453
8453
|
])) : T("", !0),
|
|
8454
8454
|
K.value ? (p(), C("label", $f, [
|
|
8455
|
-
v("span", kf, Q(
|
|
8455
|
+
v("span", kf, Q(y.$t("activity.milestone.label")), 1),
|
|
8456
8456
|
M($e, {
|
|
8457
8457
|
options: K.value,
|
|
8458
|
-
value: (ie =
|
|
8458
|
+
value: (ie = y.activity.milestone) == null ? void 0 : ie.id,
|
|
8459
8459
|
searchable: !0,
|
|
8460
8460
|
disabled: !n.value,
|
|
8461
8461
|
caret: n.value,
|
|
@@ -8463,20 +8463,20 @@ const wn = /* @__PURE__ */ x({
|
|
|
8463
8463
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8464
8464
|
])) : T("", !0)
|
|
8465
8465
|
]),
|
|
8466
|
-
te(
|
|
8466
|
+
te(y.$slots, "header")
|
|
8467
8467
|
]),
|
|
8468
8468
|
v("div", Sf, [
|
|
8469
8469
|
v("fieldset", Af, [
|
|
8470
8470
|
v("div", Mf, [
|
|
8471
8471
|
M(af, {
|
|
8472
|
-
attachments:
|
|
8473
|
-
"is-editable":
|
|
8472
|
+
attachments: y.activity.attachments,
|
|
8473
|
+
"is-editable": y.attachmentEnabled && n.value && y.isTemplate !== !0 && !!y.userId,
|
|
8474
8474
|
onAdd: Z,
|
|
8475
8475
|
onRemove: Y
|
|
8476
8476
|
}, {
|
|
8477
8477
|
default: z(() => [
|
|
8478
8478
|
v("label", Tf, [
|
|
8479
|
-
v("span", Of, Q(
|
|
8479
|
+
v("span", Of, Q(y.$t("activity.description.label")), 1),
|
|
8480
8480
|
Ke(v("textarea", {
|
|
8481
8481
|
"onUpdate:modelValue": R[0] || (R[0] = (H) => o.value = H),
|
|
8482
8482
|
readonly: !n.value,
|
|
@@ -8500,7 +8500,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8500
8500
|
]),
|
|
8501
8501
|
v("div", If, [
|
|
8502
8502
|
v("label", Lf, [
|
|
8503
|
-
v("span", Hf, Q(
|
|
8503
|
+
v("span", Hf, Q(y.$t("activity.estimation.label")), 1),
|
|
8504
8504
|
Ke(v("input", {
|
|
8505
8505
|
"onUpdate:modelValue": R[1] || (R[1] = (H) => i.value = H),
|
|
8506
8506
|
readonly: !n.value,
|
|
@@ -8526,38 +8526,38 @@ const wn = /* @__PURE__ */ x({
|
|
|
8526
8526
|
M(pe, { name: "SelectCheckBox" }),
|
|
8527
8527
|
M(ye, {
|
|
8528
8528
|
level: 4,
|
|
8529
|
-
title:
|
|
8529
|
+
title: y.$t("activity.tasks.title")
|
|
8530
8530
|
}, null, 8, ["title"])
|
|
8531
8531
|
]),
|
|
8532
8532
|
v("div", Bf, [
|
|
8533
8533
|
M(Wp, {
|
|
8534
8534
|
class: "ao-activity-details__tasks ao-field__row",
|
|
8535
|
-
tasks:
|
|
8536
|
-
"activity-id":
|
|
8537
|
-
users:
|
|
8538
|
-
"is-checkable":
|
|
8535
|
+
tasks: y.activity.tasks || [],
|
|
8536
|
+
"activity-id": y.activity.id,
|
|
8537
|
+
users: y.users,
|
|
8538
|
+
"is-checkable": y.isTaskCheckable,
|
|
8539
8539
|
"is-editable": n.value,
|
|
8540
|
-
"is-template":
|
|
8541
|
-
onAdd:
|
|
8540
|
+
"is-template": y.isTemplate,
|
|
8541
|
+
onAdd: k,
|
|
8542
8542
|
onUpdate: _,
|
|
8543
8543
|
onDelete: m
|
|
8544
8544
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8545
8545
|
])
|
|
8546
8546
|
]),
|
|
8547
|
-
|
|
8547
|
+
y.isTemplate !== !0 && y.userId ? (p(), C("div", Rf, [
|
|
8548
8548
|
v("div", Nf, [
|
|
8549
8549
|
M(pe, { name: "ChatOutline" }),
|
|
8550
8550
|
M(ye, {
|
|
8551
8551
|
level: 4,
|
|
8552
|
-
title:
|
|
8552
|
+
title: y.$t("activity.comments.title")
|
|
8553
8553
|
}, null, 8, ["title"])
|
|
8554
8554
|
]),
|
|
8555
8555
|
M(hf, {
|
|
8556
|
-
comments:
|
|
8557
|
-
users:
|
|
8558
|
-
"user-id":
|
|
8556
|
+
comments: y.activity.comments,
|
|
8557
|
+
users: y.users,
|
|
8558
|
+
"user-id": y.userId,
|
|
8559
8559
|
onCreateComment: O,
|
|
8560
|
-
onUpdateComment:
|
|
8560
|
+
onUpdateComment: S,
|
|
8561
8561
|
onRemoveComment: F
|
|
8562
8562
|
}, null, 8, ["comments", "users", "user-id"])
|
|
8563
8563
|
])) : T("", !0)
|
|
@@ -8567,16 +8567,16 @@ const wn = /* @__PURE__ */ x({
|
|
|
8567
8567
|
v("div", Ff, [
|
|
8568
8568
|
M(pe, {
|
|
8569
8569
|
name: "CloseRounded",
|
|
8570
|
-
onClick: R[2] || (R[2] = (H) =>
|
|
8570
|
+
onClick: R[2] || (R[2] = (H) => y.$emit("close"))
|
|
8571
8571
|
})
|
|
8572
8572
|
]),
|
|
8573
8573
|
oe.value ? (p(), C("div", Uf, [
|
|
8574
8574
|
v("label", Zf, [
|
|
8575
|
-
v("span", Wf, Q(
|
|
8575
|
+
v("span", Wf, Q(y.$t("activity.status.label")), 1),
|
|
8576
8576
|
M($e, {
|
|
8577
8577
|
class: "ao-activity-details__multiselect",
|
|
8578
8578
|
options: oe.value,
|
|
8579
|
-
value: (q =
|
|
8579
|
+
value: (q = y.activity.status) == null ? void 0 : q.id,
|
|
8580
8580
|
"can-clear": !1,
|
|
8581
8581
|
"can-deselect": !1,
|
|
8582
8582
|
disabled: !n.value,
|
|
@@ -8588,9 +8588,9 @@ const wn = /* @__PURE__ */ x({
|
|
|
8588
8588
|
v("div", qf, [
|
|
8589
8589
|
v("div", zf, [
|
|
8590
8590
|
v("div", xf, [
|
|
8591
|
-
v("span", Yf, Q(
|
|
8591
|
+
v("span", Yf, Q(y.$t("activity.assignee.label")), 1),
|
|
8592
8592
|
M(ue, {
|
|
8593
|
-
label:
|
|
8593
|
+
label: y.$t("activity.assignee.toMe"),
|
|
8594
8594
|
type: "button",
|
|
8595
8595
|
color: "primary",
|
|
8596
8596
|
variant: "solid",
|
|
@@ -8605,7 +8605,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8605
8605
|
options: L.value,
|
|
8606
8606
|
"close-on-select": !0,
|
|
8607
8607
|
searchable: !0,
|
|
8608
|
-
placeholder:
|
|
8608
|
+
placeholder: y.$t("activity.filters.assignee.placeholder"),
|
|
8609
8609
|
mode: "tags",
|
|
8610
8610
|
disabled: !n.value,
|
|
8611
8611
|
caret: n.value,
|
|
@@ -8613,13 +8613,13 @@ const wn = /* @__PURE__ */ x({
|
|
|
8613
8613
|
}, {
|
|
8614
8614
|
tag: z(({
|
|
8615
8615
|
option: H,
|
|
8616
|
-
handleTagRemove:
|
|
8616
|
+
handleTagRemove: X
|
|
8617
8617
|
}) => [
|
|
8618
8618
|
M(Je, {
|
|
8619
8619
|
"user-name": H.label,
|
|
8620
8620
|
"avatar-url": H.avatar,
|
|
8621
8621
|
"is-closable": !0,
|
|
8622
|
-
onClose: (ve) =>
|
|
8622
|
+
onClose: (ve) => X(H, ve)
|
|
8623
8623
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
8624
8624
|
]),
|
|
8625
8625
|
_: 1
|
|
@@ -8627,9 +8627,9 @@ const wn = /* @__PURE__ */ x({
|
|
|
8627
8627
|
])
|
|
8628
8628
|
]),
|
|
8629
8629
|
v("div", Kf, [
|
|
8630
|
-
|
|
8630
|
+
y.isTemplate !== !0 && y.userId ? (p(), C("div", Gf, [
|
|
8631
8631
|
v("label", Xf, [
|
|
8632
|
-
v("span", Qf, Q(
|
|
8632
|
+
v("span", Qf, Q(y.$t("activity.deadline.label")), 1),
|
|
8633
8633
|
Ke(v("input", {
|
|
8634
8634
|
"onUpdate:modelValue": R[4] || (R[4] = (H) => c.value = H),
|
|
8635
8635
|
readonly: !n.value,
|
|
@@ -8656,20 +8656,20 @@ const wn = /* @__PURE__ */ x({
|
|
|
8656
8656
|
mode: "single",
|
|
8657
8657
|
searchable: !0,
|
|
8658
8658
|
options: u.value,
|
|
8659
|
-
placeholder:
|
|
8659
|
+
placeholder: y.$t("activity.filters.type.placeholder"),
|
|
8660
8660
|
disabled: !n.value,
|
|
8661
8661
|
caret: n.value
|
|
8662
8662
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
8663
8663
|
])
|
|
8664
8664
|
])) : T("", !0),
|
|
8665
|
-
te(
|
|
8665
|
+
te(y.$slots, "default", { activity: y.activity })
|
|
8666
8666
|
]),
|
|
8667
8667
|
v("div", nv, [
|
|
8668
8668
|
M(wn, {
|
|
8669
8669
|
modelValue: r.value,
|
|
8670
8670
|
"onUpdate:modelValue": R[6] || (R[6] = (H) => r.value = H),
|
|
8671
8671
|
modelModifiers: { lazy: !0 },
|
|
8672
|
-
label:
|
|
8672
|
+
label: y.$t("activity.important.label"),
|
|
8673
8673
|
disabled: !n.value,
|
|
8674
8674
|
variant: "ghost",
|
|
8675
8675
|
"icon-name": "FlagRounded",
|
|
@@ -8679,12 +8679,12 @@ const wn = /* @__PURE__ */ x({
|
|
|
8679
8679
|
size: "sm"
|
|
8680
8680
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
8681
8681
|
]),
|
|
8682
|
-
|
|
8682
|
+
y.isTemplate !== !0 && y.activity.createdBy.id === y.userId ? (p(), C("div", sv, [
|
|
8683
8683
|
M(wn, {
|
|
8684
8684
|
modelValue: l.value,
|
|
8685
8685
|
"onUpdate:modelValue": R[7] || (R[7] = (H) => l.value = H),
|
|
8686
8686
|
modelModifiers: { lazy: !0 },
|
|
8687
|
-
label:
|
|
8687
|
+
label: y.$t("activity.private.label"),
|
|
8688
8688
|
disabled: !n.value,
|
|
8689
8689
|
variant: "ghost",
|
|
8690
8690
|
"icon-name": "Lock",
|
|
@@ -8698,13 +8698,13 @@ const wn = /* @__PURE__ */ x({
|
|
|
8698
8698
|
M(pe, { name: "FlowsheetOutlineRounded" }),
|
|
8699
8699
|
M(ye, {
|
|
8700
8700
|
level: 4,
|
|
8701
|
-
title:
|
|
8701
|
+
title: y.$t("activity.dependencies.title")
|
|
8702
8702
|
}, null, 8, ["title"])
|
|
8703
8703
|
]),
|
|
8704
8704
|
v("div", rv, [
|
|
8705
8705
|
v("div", lv, [
|
|
8706
8706
|
v("label", uv, [
|
|
8707
|
-
v("span", cv, Q(
|
|
8707
|
+
v("span", cv, Q(y.$t("activity.dependingOn.label")), 1),
|
|
8708
8708
|
M($e, {
|
|
8709
8709
|
modelValue: h.value,
|
|
8710
8710
|
"onUpdate:modelValue": R[8] || (R[8] = (H) => h.value = H),
|
|
@@ -8720,10 +8720,10 @@ const wn = /* @__PURE__ */ x({
|
|
|
8720
8720
|
]),
|
|
8721
8721
|
v("div", dv, [
|
|
8722
8722
|
v("label", pv, [
|
|
8723
|
-
v("span", fv, Q(
|
|
8723
|
+
v("span", fv, Q(y.$t("activity.blocking.label")), 1),
|
|
8724
8724
|
M($e, {
|
|
8725
|
-
modelValue:
|
|
8726
|
-
"onUpdate:modelValue": R[9] || (R[9] = (H) =>
|
|
8725
|
+
modelValue: b.value,
|
|
8726
|
+
"onUpdate:modelValue": R[9] || (R[9] = (H) => b.value = H),
|
|
8727
8727
|
class: "ao-activity-details__multiselect",
|
|
8728
8728
|
mode: "tags",
|
|
8729
8729
|
"close-on-select": !1,
|
|
@@ -8736,7 +8736,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8736
8736
|
])
|
|
8737
8737
|
])
|
|
8738
8738
|
]),
|
|
8739
|
-
|
|
8739
|
+
y.isTemplate !== !0 && V.value ? (p(), C("div", vv, [
|
|
8740
8740
|
v("div", hv, [
|
|
8741
8741
|
M(Je, {
|
|
8742
8742
|
"user-name": V.value,
|
|
@@ -8770,10 +8770,10 @@ const mv = /* @__PURE__ */ x({
|
|
|
8770
8770
|
get() {
|
|
8771
8771
|
return n.value;
|
|
8772
8772
|
},
|
|
8773
|
-
set(
|
|
8774
|
-
n.value =
|
|
8773
|
+
set(k) {
|
|
8774
|
+
n.value = k, e("update:rule", {
|
|
8775
8775
|
...a.rule,
|
|
8776
|
-
itemType:
|
|
8776
|
+
itemType: k,
|
|
8777
8777
|
subItemId: void 0
|
|
8778
8778
|
});
|
|
8779
8779
|
}
|
|
@@ -8781,10 +8781,10 @@ const mv = /* @__PURE__ */ x({
|
|
|
8781
8781
|
get() {
|
|
8782
8782
|
return a.rule.subItemId;
|
|
8783
8783
|
},
|
|
8784
|
-
set(
|
|
8784
|
+
set(k) {
|
|
8785
8785
|
e("update:rule", {
|
|
8786
8786
|
...a.rule,
|
|
8787
|
-
subItemId:
|
|
8787
|
+
subItemId: k,
|
|
8788
8788
|
itemType: a.rule.itemType || s.value
|
|
8789
8789
|
});
|
|
8790
8790
|
}
|
|
@@ -8802,32 +8802,32 @@ const mv = /* @__PURE__ */ x({
|
|
|
8802
8802
|
get() {
|
|
8803
8803
|
return l.value;
|
|
8804
8804
|
},
|
|
8805
|
-
set(
|
|
8806
|
-
e("update:rule", { ...a.rule, comparator:
|
|
8805
|
+
set(k) {
|
|
8806
|
+
e("update:rule", { ...a.rule, comparator: k });
|
|
8807
8807
|
}
|
|
8808
8808
|
}), u = A(() => Object.values(R2)), f = Pt(a.rule.trigger), d = A({
|
|
8809
8809
|
get() {
|
|
8810
8810
|
return f.value;
|
|
8811
8811
|
},
|
|
8812
|
-
set(
|
|
8813
|
-
e("update:rule", { ...a.rule, trigger:
|
|
8812
|
+
set(k) {
|
|
8813
|
+
e("update:rule", { ...a.rule, trigger: k });
|
|
8814
8814
|
}
|
|
8815
8815
|
}), h = A(() => Object.values(N2)), w = A({
|
|
8816
8816
|
get() {
|
|
8817
8817
|
return a.rule.duration;
|
|
8818
8818
|
},
|
|
8819
|
-
set(
|
|
8820
|
-
e("update:rule", { ...a.rule, duration:
|
|
8819
|
+
set(k) {
|
|
8820
|
+
e("update:rule", { ...a.rule, duration: k });
|
|
8821
8821
|
}
|
|
8822
|
-
}),
|
|
8822
|
+
}), b = A({
|
|
8823
8823
|
get() {
|
|
8824
8824
|
return a.rule.durationUnit;
|
|
8825
8825
|
},
|
|
8826
|
-
set(
|
|
8827
|
-
e("update:rule", { ...a.rule, durationUnit:
|
|
8826
|
+
set(k) {
|
|
8827
|
+
e("update:rule", { ...a.rule, durationUnit: k });
|
|
8828
8828
|
}
|
|
8829
8829
|
}), g = A(() => Object.values(j2));
|
|
8830
|
-
return (
|
|
8830
|
+
return (k, _) => (p(), P(ht(k.tagName), { class: "ao-rule-line" }, {
|
|
8831
8831
|
default: z(() => [
|
|
8832
8832
|
M(J(lt), {
|
|
8833
8833
|
modelValue: s.value,
|
|
@@ -8862,15 +8862,15 @@ const mv = /* @__PURE__ */ x({
|
|
|
8862
8862
|
]
|
|
8863
8863
|
]),
|
|
8864
8864
|
M(J(lt), {
|
|
8865
|
-
modelValue:
|
|
8866
|
-
"onUpdate:modelValue": _[5] || (_[5] = (m) =>
|
|
8865
|
+
modelValue: b.value,
|
|
8866
|
+
"onUpdate:modelValue": _[5] || (_[5] = (m) => b.value = m),
|
|
8867
8867
|
options: g.value
|
|
8868
8868
|
}, null, 8, ["modelValue", "options"]),
|
|
8869
8869
|
M(ue, {
|
|
8870
8870
|
class: "ao-rule-line__remove",
|
|
8871
8871
|
"icon-name": "CloseRounded",
|
|
8872
8872
|
variant: "ghost",
|
|
8873
|
-
onClick: _[6] || (_[6] = (m) =>
|
|
8873
|
+
onClick: _[6] || (_[6] = (m) => k.$emit("close"))
|
|
8874
8874
|
})
|
|
8875
8875
|
]),
|
|
8876
8876
|
_: 1
|
|
@@ -8949,8 +8949,8 @@ const yv = {
|
|
|
8949
8949
|
setup(t, { emit: e }) {
|
|
8950
8950
|
const a = t, { t: n } = Tt(), s = A(
|
|
8951
8951
|
() => {
|
|
8952
|
-
var
|
|
8953
|
-
return (
|
|
8952
|
+
var S;
|
|
8953
|
+
return (S = a.templates) == null ? void 0 : S.find((F) => F.id === a.templateId);
|
|
8954
8954
|
}
|
|
8955
8955
|
), o = ee(!1);
|
|
8956
8956
|
de(
|
|
@@ -8958,50 +8958,50 @@ const yv = {
|
|
|
8958
8958
|
() => o.value = !1
|
|
8959
8959
|
), de(
|
|
8960
8960
|
() => {
|
|
8961
|
-
var
|
|
8962
|
-
return (
|
|
8961
|
+
var S;
|
|
8962
|
+
return (S = s.value) == null ? void 0 : S.phases;
|
|
8963
8963
|
},
|
|
8964
|
-
(
|
|
8965
|
-
o.value && Xe(
|
|
8964
|
+
(S, F) => {
|
|
8965
|
+
o.value && Xe(S, F);
|
|
8966
8966
|
}
|
|
8967
8967
|
);
|
|
8968
8968
|
const i = A(() => {
|
|
8969
|
-
var
|
|
8970
|
-
return (F = (
|
|
8969
|
+
var S, F;
|
|
8970
|
+
return (F = (S = s == null ? void 0 : s.value) == null ? void 0 : S.phases) == null ? void 0 : F.find((V) => V.id === a.phaseId);
|
|
8971
8971
|
});
|
|
8972
8972
|
de(
|
|
8973
8973
|
() => {
|
|
8974
|
-
var
|
|
8975
|
-
return (
|
|
8974
|
+
var S;
|
|
8975
|
+
return (S = i.value) == null ? void 0 : S.milestones;
|
|
8976
8976
|
},
|
|
8977
|
-
(
|
|
8978
|
-
o.value && Xe(
|
|
8977
|
+
(S, F) => {
|
|
8978
|
+
o.value && Xe(S, F);
|
|
8979
8979
|
}
|
|
8980
8980
|
);
|
|
8981
8981
|
const r = A(() => {
|
|
8982
|
-
var
|
|
8983
|
-
return (F = (
|
|
8982
|
+
var S, F;
|
|
8983
|
+
return (F = (S = i.value) == null ? void 0 : S.milestones) == null ? void 0 : F.find(
|
|
8984
8984
|
(V) => V.id === a.milestoneId
|
|
8985
8985
|
);
|
|
8986
8986
|
});
|
|
8987
8987
|
de(
|
|
8988
8988
|
() => {
|
|
8989
|
-
var
|
|
8990
|
-
return (
|
|
8989
|
+
var S;
|
|
8990
|
+
return (S = r.value) == null ? void 0 : S.activities;
|
|
8991
8991
|
},
|
|
8992
|
-
(
|
|
8993
|
-
o.value && Xe(
|
|
8992
|
+
(S, F) => {
|
|
8993
|
+
o.value && Xe(S, F);
|
|
8994
8994
|
}
|
|
8995
8995
|
);
|
|
8996
8996
|
const l = A(() => {
|
|
8997
|
-
var
|
|
8998
|
-
return ((F = (
|
|
8999
|
-
const
|
|
9000
|
-
return [...V, ...
|
|
8997
|
+
var S, F;
|
|
8998
|
+
return ((F = (S = s.value) == null ? void 0 : S.phases) == null ? void 0 : F.reduce((V, se) => {
|
|
8999
|
+
const y = se.milestones || [];
|
|
9000
|
+
return [...V, ...y];
|
|
9001
9001
|
}, [])) || [];
|
|
9002
9002
|
}), c = A(() => {
|
|
9003
|
-
var
|
|
9004
|
-
return ((F = (
|
|
9003
|
+
var S, F;
|
|
9004
|
+
return ((F = (S = s.value) == null ? void 0 : S.phases) == null ? void 0 : F.reduce((V, se) => {
|
|
9005
9005
|
const R = (se.milestones || []).reduce(
|
|
9006
9006
|
(le, ie) => ie.activities ? [...le, ...ie.activities] : le,
|
|
9007
9007
|
[]
|
|
@@ -9009,17 +9009,17 @@ const yv = {
|
|
|
9009
9009
|
return [...V, ...R];
|
|
9010
9010
|
}, [])) || [];
|
|
9011
9011
|
}), u = A(() => {
|
|
9012
|
-
var
|
|
9013
|
-
return (F = (
|
|
9012
|
+
var S, F;
|
|
9013
|
+
return (F = (S = r.value) == null ? void 0 : S.activities) == null ? void 0 : F.find(
|
|
9014
9014
|
(V) => V.id === a.activityId
|
|
9015
9015
|
);
|
|
9016
9016
|
}), f = A(() => {
|
|
9017
|
-
var
|
|
9018
|
-
return ((
|
|
9017
|
+
var S;
|
|
9018
|
+
return ((S = s.value) == null ? void 0 : S.name) || a.templateId;
|
|
9019
9019
|
}), d = () => {
|
|
9020
9020
|
if (!s.value)
|
|
9021
9021
|
return;
|
|
9022
|
-
const { name:
|
|
9022
|
+
const { name: S, rank: F } = Bt(
|
|
9023
9023
|
s.value.phases,
|
|
9024
9024
|
"phase",
|
|
9025
9025
|
n
|
|
@@ -9028,35 +9028,35 @@ const yv = {
|
|
|
9028
9028
|
type: Ce.PHASES,
|
|
9029
9029
|
templateId: a.templateId,
|
|
9030
9030
|
item: {
|
|
9031
|
-
name:
|
|
9031
|
+
name: S,
|
|
9032
9032
|
rank: F
|
|
9033
9033
|
}
|
|
9034
9034
|
});
|
|
9035
|
-
}, h = (
|
|
9035
|
+
}, h = (S) => {
|
|
9036
9036
|
e("updateItem", {
|
|
9037
9037
|
templateId: a.templateId,
|
|
9038
9038
|
id: a.templateId,
|
|
9039
9039
|
itemType: Ce.TEMPLATES,
|
|
9040
|
-
data: { name:
|
|
9040
|
+
data: { name: S }
|
|
9041
9041
|
});
|
|
9042
|
-
}, w = (
|
|
9042
|
+
}, w = (S) => {
|
|
9043
9043
|
e("removeItem", {
|
|
9044
9044
|
type: Ce.PHASES,
|
|
9045
9045
|
templateId: a.templateId,
|
|
9046
9046
|
data: {
|
|
9047
|
-
id:
|
|
9047
|
+
id: S
|
|
9048
9048
|
}
|
|
9049
9049
|
});
|
|
9050
|
-
},
|
|
9050
|
+
}, b = (S, F) => {
|
|
9051
9051
|
e("updateItem", {
|
|
9052
9052
|
templateId: a.templateId,
|
|
9053
|
-
id:
|
|
9053
|
+
id: S,
|
|
9054
9054
|
itemType: Ce.PHASES,
|
|
9055
9055
|
data: { name: F }
|
|
9056
9056
|
});
|
|
9057
|
-
}, g = (
|
|
9058
|
-
e("updateItem",
|
|
9059
|
-
},
|
|
9057
|
+
}, g = (S) => {
|
|
9058
|
+
e("updateItem", S);
|
|
9059
|
+
}, k = (S) => {
|
|
9060
9060
|
if (!i.value)
|
|
9061
9061
|
return;
|
|
9062
9062
|
const { name: F, rank: V } = Bt(
|
|
@@ -9067,32 +9067,32 @@ const yv = {
|
|
|
9067
9067
|
o.value = !0, e("addItem", {
|
|
9068
9068
|
type: Ce.MILESTONES,
|
|
9069
9069
|
templateId: a.templateId,
|
|
9070
|
-
phaseId:
|
|
9070
|
+
phaseId: S.phaseId,
|
|
9071
9071
|
item: {
|
|
9072
9072
|
name: F,
|
|
9073
9073
|
rank: V,
|
|
9074
|
-
phaseId:
|
|
9074
|
+
phaseId: S.phaseId
|
|
9075
9075
|
}
|
|
9076
9076
|
});
|
|
9077
|
-
}, _ = (
|
|
9077
|
+
}, _ = (S) => {
|
|
9078
9078
|
e("removeItem", {
|
|
9079
9079
|
type: Ce.MILESTONES,
|
|
9080
9080
|
templateId: a.templateId,
|
|
9081
|
-
phaseId:
|
|
9081
|
+
phaseId: S.phaseId,
|
|
9082
9082
|
data: {
|
|
9083
|
-
id:
|
|
9083
|
+
id: S.id
|
|
9084
9084
|
}
|
|
9085
9085
|
});
|
|
9086
|
-
}, m = (
|
|
9087
|
-
const { id: F, ...V } =
|
|
9086
|
+
}, m = (S) => {
|
|
9087
|
+
const { id: F, ...V } = S;
|
|
9088
9088
|
e("updateItem", {
|
|
9089
9089
|
itemType: Ce.MILESTONES,
|
|
9090
9090
|
id: F,
|
|
9091
9091
|
templateId: a.templateId,
|
|
9092
9092
|
data: V
|
|
9093
9093
|
});
|
|
9094
|
-
}, D = (
|
|
9095
|
-
const { milestoneId: F } =
|
|
9094
|
+
}, D = (S) => {
|
|
9095
|
+
const { milestoneId: F } = S;
|
|
9096
9096
|
if (!r.value)
|
|
9097
9097
|
return;
|
|
9098
9098
|
const { name: V, rank: se } = Bt(
|
|
@@ -9106,7 +9106,7 @@ const yv = {
|
|
|
9106
9106
|
templateId: a.templateId,
|
|
9107
9107
|
item: { name: V, rank: se, milestoneId: F }
|
|
9108
9108
|
});
|
|
9109
|
-
}, I = (
|
|
9109
|
+
}, I = (S) => {
|
|
9110
9110
|
var F, V;
|
|
9111
9111
|
e("removeItem", {
|
|
9112
9112
|
type: Ce.ACTIVITIES,
|
|
@@ -9114,11 +9114,11 @@ const yv = {
|
|
|
9114
9114
|
phaseId: (F = i.value) == null ? void 0 : F.id,
|
|
9115
9115
|
milestoneId: (V = r.value) == null ? void 0 : V.id,
|
|
9116
9116
|
data: {
|
|
9117
|
-
id:
|
|
9117
|
+
id: S.id
|
|
9118
9118
|
}
|
|
9119
9119
|
});
|
|
9120
|
-
}, L = (
|
|
9121
|
-
const { id: F, ...V } =
|
|
9120
|
+
}, L = (S) => {
|
|
9121
|
+
const { id: F, ...V } = S;
|
|
9122
9122
|
e("updateItem", {
|
|
9123
9123
|
itemType: Ce.ACTIVITIES,
|
|
9124
9124
|
id: F,
|
|
@@ -9129,57 +9129,57 @@ const yv = {
|
|
|
9129
9129
|
U.value = !U.value;
|
|
9130
9130
|
}, Y = () => {
|
|
9131
9131
|
e("addRule", { templateId: a.templateId });
|
|
9132
|
-
}, E = (
|
|
9133
|
-
e("removeRule", { id:
|
|
9134
|
-
}, K = (
|
|
9132
|
+
}, E = (S) => {
|
|
9133
|
+
e("removeRule", { id: S, templateId: a.templateId });
|
|
9134
|
+
}, K = (S) => {
|
|
9135
9135
|
var F;
|
|
9136
|
-
if (
|
|
9137
|
-
const V = Ca(
|
|
9136
|
+
if (S.moved) {
|
|
9137
|
+
const V = Ca(S, ((F = s.value) == null ? void 0 : F.phases) ?? []);
|
|
9138
9138
|
e("updateItem", {
|
|
9139
9139
|
itemType: Ce.PHASES,
|
|
9140
|
-
id:
|
|
9140
|
+
id: S.moved.element.id,
|
|
9141
9141
|
templateId: a.templateId,
|
|
9142
9142
|
data: {
|
|
9143
9143
|
rank: V
|
|
9144
9144
|
}
|
|
9145
9145
|
});
|
|
9146
9146
|
}
|
|
9147
|
-
}, N = (
|
|
9147
|
+
}, N = (S) => {
|
|
9148
9148
|
!i.value || !r.value || !u.value || e("addItem", {
|
|
9149
9149
|
type: Ce.TASKS,
|
|
9150
|
-
activityId:
|
|
9150
|
+
activityId: S.activityId,
|
|
9151
9151
|
milestoneId: r.value.id,
|
|
9152
9152
|
phaseId: i.value.id,
|
|
9153
9153
|
templateId: a.templateId,
|
|
9154
|
-
item:
|
|
9154
|
+
item: S
|
|
9155
9155
|
});
|
|
9156
|
-
}, W = (
|
|
9156
|
+
}, W = (S) => {
|
|
9157
9157
|
!i.value || !r.value || !u.value || e("updateItem", {
|
|
9158
9158
|
itemType: Ce.TASKS,
|
|
9159
|
-
id:
|
|
9159
|
+
id: S.id,
|
|
9160
9160
|
templateId: a.templateId,
|
|
9161
|
-
data:
|
|
9161
|
+
data: S
|
|
9162
9162
|
});
|
|
9163
|
-
}, oe = (
|
|
9163
|
+
}, oe = (S) => {
|
|
9164
9164
|
!i.value || !r.value || !u.value || e("removeItem", {
|
|
9165
9165
|
type: Ce.TASKS,
|
|
9166
9166
|
activityId: u.value.id,
|
|
9167
9167
|
milestoneId: r.value.id,
|
|
9168
9168
|
phaseId: i.value.id,
|
|
9169
9169
|
templateId: a.templateId,
|
|
9170
|
-
data:
|
|
9170
|
+
data: S
|
|
9171
9171
|
});
|
|
9172
|
-
}, ne = (
|
|
9173
|
-
e("addFiles",
|
|
9174
|
-
}, O = (
|
|
9175
|
-
e("removeFile",
|
|
9172
|
+
}, ne = (S) => {
|
|
9173
|
+
e("addFiles", S);
|
|
9174
|
+
}, O = (S) => {
|
|
9175
|
+
e("removeFile", S);
|
|
9176
9176
|
};
|
|
9177
|
-
return (
|
|
9178
|
-
var V, se,
|
|
9177
|
+
return (S, F) => {
|
|
9178
|
+
var V, se, y, R, le, ie;
|
|
9179
9179
|
return s.value ? (p(), C("div", yv, [
|
|
9180
9180
|
M(Ga, {
|
|
9181
9181
|
"can-go-back": !0,
|
|
9182
|
-
onGoBack: F[1] || (F[1] = (q) =>
|
|
9182
|
+
onGoBack: F[1] || (F[1] = (q) => S.$router.push({ name: J(Dt).TEMPLATES_LIST }))
|
|
9183
9183
|
}, {
|
|
9184
9184
|
primary: z(() => [
|
|
9185
9185
|
M(ye, {
|
|
@@ -9205,7 +9205,7 @@ const yv = {
|
|
|
9205
9205
|
}, {
|
|
9206
9206
|
header: z(() => [
|
|
9207
9207
|
M(ye, {
|
|
9208
|
-
title:
|
|
9208
|
+
title: S.$t("template.phases.title"),
|
|
9209
9209
|
level: 3,
|
|
9210
9210
|
class: "ao-list__title"
|
|
9211
9211
|
}, null, 8, ["title"])
|
|
@@ -9219,11 +9219,11 @@ const yv = {
|
|
|
9219
9219
|
milestones: q.milestones,
|
|
9220
9220
|
"is-active": ((H = i.value) == null ? void 0 : H.id) === q.id,
|
|
9221
9221
|
"is-draggable": !0,
|
|
9222
|
-
onClick: (
|
|
9223
|
-
params: { templateId:
|
|
9222
|
+
onClick: (X) => S.$router.push({
|
|
9223
|
+
params: { templateId: S.templateId, phaseId: q.id }
|
|
9224
9224
|
}),
|
|
9225
|
-
"onUpdate:title": (
|
|
9226
|
-
|
|
9225
|
+
"onUpdate:title": (X) => {
|
|
9226
|
+
b(q.id, X);
|
|
9227
9227
|
},
|
|
9228
9228
|
onRemove: () => w(q.id)
|
|
9229
9229
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
@@ -9233,7 +9233,7 @@ const yv = {
|
|
|
9233
9233
|
v("div", kv, [
|
|
9234
9234
|
M(Ct, {
|
|
9235
9235
|
"icon-name": "AddBoxOutlineRounded",
|
|
9236
|
-
label:
|
|
9236
|
+
label: S.$t("template.phases.add"),
|
|
9237
9237
|
onClick: d
|
|
9238
9238
|
}, null, 8, ["label"])
|
|
9239
9239
|
])
|
|
@@ -9244,10 +9244,10 @@ const yv = {
|
|
|
9244
9244
|
v("li", Sv, [
|
|
9245
9245
|
i.value ? (p(), P(d5, {
|
|
9246
9246
|
key: 0,
|
|
9247
|
-
"template-id":
|
|
9247
|
+
"template-id": S.templateId,
|
|
9248
9248
|
phase: i.value,
|
|
9249
9249
|
"milestone-id": (V = r.value) == null ? void 0 : V.id,
|
|
9250
|
-
onAddMilestone:
|
|
9250
|
+
onAddMilestone: k,
|
|
9251
9251
|
onUpdateMilestone: m,
|
|
9252
9252
|
onUpdatePhase: g,
|
|
9253
9253
|
onRemoveMilestone: _
|
|
@@ -9256,10 +9256,10 @@ const yv = {
|
|
|
9256
9256
|
v("li", Av, [
|
|
9257
9257
|
i.value && r.value ? (p(), P(v5, {
|
|
9258
9258
|
key: 0,
|
|
9259
|
-
"template-id":
|
|
9259
|
+
"template-id": S.templateId,
|
|
9260
9260
|
"phase-id": (se = i.value) == null ? void 0 : se.id,
|
|
9261
9261
|
milestone: r.value,
|
|
9262
|
-
"activity-id": (
|
|
9262
|
+
"activity-id": (y = u.value) == null ? void 0 : y.id,
|
|
9263
9263
|
onAddActivity: D,
|
|
9264
9264
|
onUpdateActivity: L,
|
|
9265
9265
|
onRemoveActivity: I
|
|
@@ -9271,19 +9271,19 @@ const yv = {
|
|
|
9271
9271
|
u.value ? (p(), P(Zn, {
|
|
9272
9272
|
key: 0,
|
|
9273
9273
|
activity: u.value,
|
|
9274
|
-
"activity-types":
|
|
9274
|
+
"activity-types": S.activityTypes,
|
|
9275
9275
|
breadcrumbs: `${s.value.name} / ${(R = i.value) == null ? void 0 : R.name} / ${(le = r.value) == null ? void 0 : le.name}`,
|
|
9276
9276
|
"milestone-id": (ie = r.value) == null ? void 0 : ie.id,
|
|
9277
9277
|
"template-activities": c.value,
|
|
9278
9278
|
"template-milestones": l.value,
|
|
9279
9279
|
"is-template": !0,
|
|
9280
9280
|
"is-editable": !0,
|
|
9281
|
-
users:
|
|
9281
|
+
users: S.users,
|
|
9282
9282
|
"onUpdate:activity": F[2] || (F[2] = (q) => {
|
|
9283
9283
|
u.value && L(q);
|
|
9284
9284
|
}),
|
|
9285
9285
|
"attachment-enabled": !1,
|
|
9286
|
-
onClose:
|
|
9286
|
+
onClose: S.$router.back,
|
|
9287
9287
|
onAddSubtask: N,
|
|
9288
9288
|
onUpdateSubtask: W,
|
|
9289
9289
|
onDeleteSubtask: oe,
|
|
@@ -9291,7 +9291,7 @@ const yv = {
|
|
|
9291
9291
|
onRemoveFile: O
|
|
9292
9292
|
}, {
|
|
9293
9293
|
default: z((q) => [
|
|
9294
|
-
te(
|
|
9294
|
+
te(S.$slots, "activityDetailsBody", pa(fa(q)))
|
|
9295
9295
|
]),
|
|
9296
9296
|
_: 3
|
|
9297
9297
|
}, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : T("", !0)
|
|
@@ -9328,7 +9328,7 @@ const Tv = {
|
|
|
9328
9328
|
},
|
|
9329
9329
|
setup(t) {
|
|
9330
9330
|
return (e, a) => (p(), P(ht(e.tagName), {
|
|
9331
|
-
class:
|
|
9331
|
+
class: G([
|
|
9332
9332
|
"ao-card",
|
|
9333
9333
|
{
|
|
9334
9334
|
"ao-card--clickable": e.isClickable,
|
|
@@ -9360,12 +9360,12 @@ const qn = /* @__PURE__ */ x({
|
|
|
9360
9360
|
setup(t) {
|
|
9361
9361
|
const e = t, a = A(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
9362
9362
|
return (n, s) => (p(), C("div", {
|
|
9363
|
-
class:
|
|
9363
|
+
class: G(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
|
|
9364
9364
|
role: "meter"
|
|
9365
9365
|
}, [
|
|
9366
9366
|
(p(!0), C(he, null, _e(a.value, (o) => (p(), C("div", {
|
|
9367
9367
|
key: o,
|
|
9368
|
-
class:
|
|
9368
|
+
class: G(["ao-progress__progress"]),
|
|
9369
9369
|
style: Ua({ width: `${o * 100}%` })
|
|
9370
9370
|
}, null, 4))), 128))
|
|
9371
9371
|
], 2));
|
|
@@ -9396,7 +9396,7 @@ const Iv = { class: "ao-card-project-phase__header" }, Lv = { class: "ao-card-pr
|
|
|
9396
9396
|
const c = (u = a.milestones) == null ? void 0 : u.reduce(
|
|
9397
9397
|
(f, d) => {
|
|
9398
9398
|
var h;
|
|
9399
|
-
return f + ((h = d.activities) == null ? void 0 : h.reduce((w,
|
|
9399
|
+
return f + ((h = d.activities) == null ? void 0 : h.reduce((w, b) => w + (b.estimation || 0), 0));
|
|
9400
9400
|
},
|
|
9401
9401
|
0
|
|
9402
9402
|
);
|
|
@@ -9444,7 +9444,7 @@ const Iv = { class: "ao-card-project-phase__header" }, Lv = { class: "ao-card-pr
|
|
|
9444
9444
|
])) : T("", !0)
|
|
9445
9445
|
])) : T("", !0),
|
|
9446
9446
|
v("div", {
|
|
9447
|
-
class:
|
|
9447
|
+
class: G(["ao-card-project-phase__footer-row", l.value ? "" : "ao-card-project-phase__no_deadline"])
|
|
9448
9448
|
}, [
|
|
9449
9449
|
c.isEditable ? Ke((p(), C("input", {
|
|
9450
9450
|
key: 0,
|
|
@@ -9544,7 +9544,7 @@ const jv = { class: "ao-card-project-milestone__default" }, Fv = { class: "ao-ti
|
|
|
9544
9544
|
e("updateMilestone", { id: a.id, name: l });
|
|
9545
9545
|
};
|
|
9546
9546
|
return (l, c) => (p(), P(Wn, {
|
|
9547
|
-
class:
|
|
9547
|
+
class: G([
|
|
9548
9548
|
"ao-card-project-milestone",
|
|
9549
9549
|
{ "ao-card-project-milestone--selected": l.isSelected }
|
|
9550
9550
|
]),
|
|
@@ -9606,7 +9606,7 @@ const jv = { class: "ao-card-project-milestone__default" }, Fv = { class: "ao-ti
|
|
|
9606
9606
|
l.important ? (p(), P(pe, {
|
|
9607
9607
|
key: 0,
|
|
9608
9608
|
name: "FlagRounded",
|
|
9609
|
-
class:
|
|
9609
|
+
class: G(
|
|
9610
9610
|
l.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
|
|
9611
9611
|
),
|
|
9612
9612
|
size: "sm"
|
|
@@ -9683,7 +9683,7 @@ const Jv = {
|
|
|
9683
9683
|
return (d, h) => {
|
|
9684
9684
|
var w;
|
|
9685
9685
|
return p(), C("li", {
|
|
9686
|
-
class:
|
|
9686
|
+
class: G([
|
|
9687
9687
|
"ao-project-phase",
|
|
9688
9688
|
{ "ao-project-phase--selected": d.phase.id === ((w = d.$route.params) == null ? void 0 : w.phaseId) }
|
|
9689
9689
|
])
|
|
@@ -9715,26 +9715,26 @@ const Jv = {
|
|
|
9715
9715
|
"item-key": "id",
|
|
9716
9716
|
group: "kanban"
|
|
9717
9717
|
}, d.$attrs, { onChange: f }), {
|
|
9718
|
-
item: z(({ element:
|
|
9718
|
+
item: z(({ element: b }) => {
|
|
9719
9719
|
var g;
|
|
9720
9720
|
return [
|
|
9721
9721
|
M(Qv, {
|
|
9722
|
-
id:
|
|
9723
|
-
name:
|
|
9724
|
-
color:
|
|
9725
|
-
activities:
|
|
9726
|
-
deadline:
|
|
9722
|
+
id: b.id,
|
|
9723
|
+
name: b.name,
|
|
9724
|
+
color: b.color,
|
|
9725
|
+
activities: b.activities,
|
|
9726
|
+
deadline: b.deadline,
|
|
9727
9727
|
"is-editable": !d.readonly && d.isEditable,
|
|
9728
9728
|
"is-draggable": !d.readonly && d.isEditable,
|
|
9729
9729
|
"closed-status": d.closedStatus,
|
|
9730
|
-
"is-selected":
|
|
9731
|
-
assignee:
|
|
9732
|
-
important:
|
|
9730
|
+
"is-selected": b.id === ((g = d.$route.params) == null ? void 0 : g.milestoneId),
|
|
9731
|
+
assignee: b.assignee,
|
|
9732
|
+
important: b.important,
|
|
9733
9733
|
readonly: d.readonly,
|
|
9734
|
-
class:
|
|
9735
|
-
onClick: (
|
|
9734
|
+
class: G(["ao-project-phase__milestone"]),
|
|
9735
|
+
onClick: (k) => !d.readonly && d.$router.push({
|
|
9736
9736
|
name: J(Fe).milestone,
|
|
9737
|
-
params: { phaseId: d.phase.id, milestoneId:
|
|
9737
|
+
params: { phaseId: d.phase.id, milestoneId: b.id }
|
|
9738
9738
|
}),
|
|
9739
9739
|
onUpdateMilestone: l,
|
|
9740
9740
|
onArchiveMilestone: c
|
|
@@ -9922,7 +9922,7 @@ const C9 = { class: "toggle-wrapper" };
|
|
|
9922
9922
|
function g9(t, e, a, n, s, o) {
|
|
9923
9923
|
return p(), C("div", C9, [
|
|
9924
9924
|
v("button", {
|
|
9925
|
-
class:
|
|
9925
|
+
class: G({
|
|
9926
9926
|
button: !0,
|
|
9927
9927
|
"button--left": !0,
|
|
9928
9928
|
"button--inactive": !t.isLeft
|
|
@@ -9931,7 +9931,7 @@ function g9(t, e, a, n, s, o) {
|
|
|
9931
9931
|
onClick: e[0] || (e[0] = (...i) => t.selectLeft && t.selectLeft(...i))
|
|
9932
9932
|
}, Q(t.leftLabel), 3),
|
|
9933
9933
|
v("button", {
|
|
9934
|
-
class:
|
|
9934
|
+
class: G({
|
|
9935
9935
|
button: !0,
|
|
9936
9936
|
"button--right": !0,
|
|
9937
9937
|
"button--inactive": t.isLeft
|
|
@@ -9982,11 +9982,11 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
9982
9982
|
e("archiveActivity", E);
|
|
9983
9983
|
}, w = (E) => {
|
|
9984
9984
|
e("unarchiveActivity", E);
|
|
9985
|
-
},
|
|
9985
|
+
}, b = (E) => {
|
|
9986
9986
|
e("addSubtask", E);
|
|
9987
9987
|
}, g = (E) => {
|
|
9988
9988
|
e("updateSubtask", E);
|
|
9989
|
-
},
|
|
9989
|
+
}, k = (E) => {
|
|
9990
9990
|
e("deleteSubtask", E);
|
|
9991
9991
|
}, _ = A(
|
|
9992
9992
|
() => s.value.flatMap((E) => E.activities)
|
|
@@ -10086,9 +10086,9 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
10086
10086
|
"is-editable": E.isEditable,
|
|
10087
10087
|
"attachment-enabled": E.attachmentEnabled,
|
|
10088
10088
|
"onUpdate:activity": d,
|
|
10089
|
-
onAddSubtask:
|
|
10089
|
+
onAddSubtask: b,
|
|
10090
10090
|
onUpdateSubtask: g,
|
|
10091
|
-
onDeleteSubtask:
|
|
10091
|
+
onDeleteSubtask: k,
|
|
10092
10092
|
onAddFiles: m,
|
|
10093
10093
|
onRemoveFile: D,
|
|
10094
10094
|
onAddComment: I,
|
|
@@ -10130,7 +10130,7 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10130
10130
|
key: 0,
|
|
10131
10131
|
class: "ao-card-feed__breadcrumbs"
|
|
10132
10132
|
}, M9 = {
|
|
10133
|
-
class: /* @__PURE__ */
|
|
10133
|
+
class: /* @__PURE__ */ G(["ao-card-feed__title-group"])
|
|
10134
10134
|
}, T9 = { class: "ao-card-feed__title-line" }, O9 = {
|
|
10135
10135
|
key: 0,
|
|
10136
10136
|
class: "ao-card-feed__slug"
|
|
@@ -10183,10 +10183,10 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10183
10183
|
});
|
|
10184
10184
|
}, i = A(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), r = A(() => {
|
|
10185
10185
|
var g;
|
|
10186
|
-
const h = a.assignee ? [a.assignee] : [];
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10186
|
+
const h = a.assignee ? [a.assignee] : [], w = ((g = a.tasks) == null ? void 0 : g.map((k) => k == null ? void 0 : k.assignee).filter((k) => k != null)) || [];
|
|
10187
|
+
return Array.from(
|
|
10188
|
+
new Map([...h, ...w].map((k) => [k.id, k])).values()
|
|
10189
|
+
);
|
|
10190
10190
|
}), l = A(() => Tn(a.deadline)), c = (h) => {
|
|
10191
10191
|
e("removeAssignee", h);
|
|
10192
10192
|
}, u = A(() => {
|
|
@@ -10197,7 +10197,7 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10197
10197
|
return (h = a.tasks) == null ? void 0 : h.filter((w) => w.isDone).length;
|
|
10198
10198
|
}), d = A(() => (f.value || 0) / (u.value || 1));
|
|
10199
10199
|
return (h, w) => (p(), P(Wn, {
|
|
10200
|
-
class:
|
|
10200
|
+
class: G(["ao-card-feed", { "ao-card-feed--closed": h.isClosed }]),
|
|
10201
10201
|
"is-clickable": !0
|
|
10202
10202
|
}, {
|
|
10203
10203
|
header: z(() => [
|
|
@@ -10257,16 +10257,17 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10257
10257
|
v("div", I9, [
|
|
10258
10258
|
v("div", L9, [
|
|
10259
10259
|
v("ul", H9, [
|
|
10260
|
-
(p(!0), C(he, null, _e(r.value, (
|
|
10261
|
-
key:
|
|
10260
|
+
(p(!0), C(he, null, _e(r.value, (b, g) => (p(), C(he, {
|
|
10261
|
+
key: b.id
|
|
10262
10262
|
}, [
|
|
10263
|
-
|
|
10263
|
+
b ? (p(), C("li", D9, [
|
|
10264
10264
|
M(Je, {
|
|
10265
|
-
"
|
|
10266
|
-
"
|
|
10265
|
+
class: G({ "ao-avatar--sm": g > 0 }),
|
|
10266
|
+
"user-name": J(zs)(b),
|
|
10267
|
+
"avatar-url": b.avatarUrl,
|
|
10267
10268
|
"is-closable": !0,
|
|
10268
|
-
onClose: () => c(
|
|
10269
|
-
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
10269
|
+
onClose: () => c(b.id)
|
|
10270
|
+
}, null, 8, ["class", "user-name", "avatar-url", "onClose"])
|
|
10270
10271
|
])) : T("", !0)
|
|
10271
10272
|
], 64))), 128))
|
|
10272
10273
|
]),
|
|
@@ -10703,8 +10704,8 @@ var Xn = x({
|
|
|
10703
10704
|
const { clientX: e, clientY: a } = t, { top: n, left: s, width: o, height: i } = this.suckerCanvas.getBoundingClientRect(), r = e - s, l = a - n, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(r, o - 1), Math.min(l, i - 1), 1, 1);
|
|
10704
10705
|
let [f, d, h, w] = u.data;
|
|
10705
10706
|
w = parseFloat((w / 255).toFixed(2));
|
|
10706
|
-
const
|
|
10707
|
-
Object.assign(
|
|
10707
|
+
const b = this.suckerPreview.style;
|
|
10708
|
+
Object.assign(b, {
|
|
10708
10709
|
position: "absolute",
|
|
10709
10710
|
left: e + 20 + "px",
|
|
10710
10711
|
top: a - 36 + "px",
|
|
@@ -10719,13 +10720,13 @@ var Xn = x({
|
|
|
10719
10720
|
e >= this.suckerArea[0] && // @ts-ignore
|
|
10720
10721
|
a >= this.suckerArea[1] && // @ts-ignore
|
|
10721
10722
|
e <= this.suckerArea[2] && // @ts-ignore
|
|
10722
|
-
a <= this.suckerArea[3] ?
|
|
10723
|
+
a <= this.suckerArea[3] ? b.display = "" : b.display = "none";
|
|
10723
10724
|
},
|
|
10724
10725
|
suckColor(t) {
|
|
10725
10726
|
t && t.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), t.addEventListener("click", (e) => {
|
|
10726
10727
|
const { clientX: a, clientY: n } = e, { top: s, left: o, width: i, height: r } = t.getBoundingClientRect(), l = a - o, c = n - s, f = t.getContext("2d").getImageData(Math.min(l, i - 1), Math.min(c, r - 1), 1, 1);
|
|
10727
|
-
let [d, h, w,
|
|
10728
|
-
|
|
10728
|
+
let [d, h, w, b] = f.data;
|
|
10729
|
+
b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: d, g: h, b: w, a: b });
|
|
10729
10730
|
}));
|
|
10730
10731
|
}
|
|
10731
10732
|
}
|
|
@@ -11359,7 +11360,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11359
11360
|
deadline: _ != null && _.length ? _ : null
|
|
11360
11361
|
});
|
|
11361
11362
|
}
|
|
11362
|
-
}), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1,
|
|
11363
|
+
}), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1, b = A(() => {
|
|
11363
11364
|
var _;
|
|
11364
11365
|
return ((_ = a.users) == null ? void 0 : _.map((m) => ({
|
|
11365
11366
|
label: `${m.firstName} ${m.lastName}`,
|
|
@@ -11378,7 +11379,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11378
11379
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
11379
11380
|
});
|
|
11380
11381
|
}
|
|
11381
|
-
}),
|
|
11382
|
+
}), k = A({
|
|
11382
11383
|
get() {
|
|
11383
11384
|
var _;
|
|
11384
11385
|
return ((_ = i.value) == null ? void 0 : _.important) ?? !1;
|
|
@@ -11407,8 +11408,8 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11407
11408
|
level: 5
|
|
11408
11409
|
}, null, 8, ["title"]),
|
|
11409
11410
|
M(wn, {
|
|
11410
|
-
modelValue:
|
|
11411
|
-
"onUpdate:modelValue": m[0] || (m[0] = (I) =>
|
|
11411
|
+
modelValue: k.value,
|
|
11412
|
+
"onUpdate:modelValue": m[0] || (m[0] = (I) => k.value = I),
|
|
11412
11413
|
modelModifiers: { lazy: !0 },
|
|
11413
11414
|
disabled: !_.isEditable,
|
|
11414
11415
|
class: "ao-milestone__important",
|
|
@@ -11442,7 +11443,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11442
11443
|
M($e, {
|
|
11443
11444
|
modelValue: g.value,
|
|
11444
11445
|
"onUpdate:modelValue": m[2] || (m[2] = (I) => g.value = I),
|
|
11445
|
-
options:
|
|
11446
|
+
options: b.value,
|
|
11446
11447
|
"close-on-select": !0,
|
|
11447
11448
|
searchable: !0,
|
|
11448
11449
|
max: 1,
|
|
@@ -11577,18 +11578,18 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11577
11578
|
setup(t, { emit: e }) {
|
|
11578
11579
|
const a = t, n = A(() => {
|
|
11579
11580
|
var g;
|
|
11580
|
-
return (g = a.phases) == null ? void 0 : g.find((
|
|
11581
|
+
return (g = a.phases) == null ? void 0 : g.find((k) => k.id === a.phaseId);
|
|
11581
11582
|
}), s = A(
|
|
11582
11583
|
() => {
|
|
11583
11584
|
var g;
|
|
11584
|
-
return (g = a.phases) == null ? void 0 : g.flatMap((
|
|
11585
|
+
return (g = a.phases) == null ? void 0 : g.flatMap((k) => k.milestones);
|
|
11585
11586
|
}
|
|
11586
11587
|
), o = A(() => {
|
|
11587
11588
|
var g;
|
|
11588
|
-
return (g = s.value) == null ? void 0 : g.find((
|
|
11589
|
+
return (g = s.value) == null ? void 0 : g.find((k) => k.id === a.milestoneId);
|
|
11589
11590
|
}), i = A(() => {
|
|
11590
11591
|
var g;
|
|
11591
|
-
return (g = a.activities) == null ? void 0 : g.find((
|
|
11592
|
+
return (g = a.activities) == null ? void 0 : g.find((k) => k.id === a.activityId);
|
|
11592
11593
|
}), r = (g) => {
|
|
11593
11594
|
e("update:activity", g);
|
|
11594
11595
|
}, l = (g) => {
|
|
@@ -11605,10 +11606,10 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11605
11606
|
e("addComment", g);
|
|
11606
11607
|
}, w = (g) => {
|
|
11607
11608
|
e("updateComment", g);
|
|
11608
|
-
},
|
|
11609
|
+
}, b = (g) => {
|
|
11609
11610
|
e("removeComment", g);
|
|
11610
11611
|
};
|
|
11611
|
-
return (g,
|
|
11612
|
+
return (g, k) => {
|
|
11612
11613
|
var _, m;
|
|
11613
11614
|
return i.value ? (p(), P(Zn, {
|
|
11614
11615
|
key: 0,
|
|
@@ -11634,7 +11635,7 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11634
11635
|
onRemoveFile: d,
|
|
11635
11636
|
onAddComment: h,
|
|
11636
11637
|
onUpdateComment: w,
|
|
11637
|
-
onRemoveComment:
|
|
11638
|
+
onRemoveComment: b
|
|
11638
11639
|
}, {
|
|
11639
11640
|
default: z((D) => [
|
|
11640
11641
|
te(g.$slots, "default", pa(fa(D)))
|
|
@@ -11736,18 +11737,18 @@ function j4(t, e, a = {}) {
|
|
|
11736
11737
|
let u = oa;
|
|
11737
11738
|
const f = ee(r), d = l.value ? de(
|
|
11738
11739
|
() => [c.value, mn(n), f.value],
|
|
11739
|
-
([w,
|
|
11740
|
+
([w, b]) => {
|
|
11740
11741
|
if (u(), !f.value || !w.length)
|
|
11741
11742
|
return;
|
|
11742
11743
|
const g = new IntersectionObserver(
|
|
11743
11744
|
e,
|
|
11744
11745
|
{
|
|
11745
|
-
root: mn(
|
|
11746
|
+
root: mn(b),
|
|
11746
11747
|
rootMargin: s,
|
|
11747
11748
|
threshold: o
|
|
11748
11749
|
}
|
|
11749
11750
|
);
|
|
11750
|
-
w.forEach((
|
|
11751
|
+
w.forEach((k) => k && g.observe(k)), u = () => {
|
|
11751
11752
|
g.disconnect(), u = oa;
|
|
11752
11753
|
};
|
|
11753
11754
|
},
|
|
@@ -11768,7 +11769,7 @@ function j4(t, e, a = {}) {
|
|
|
11768
11769
|
};
|
|
11769
11770
|
}
|
|
11770
11771
|
const F4 = {
|
|
11771
|
-
class: /* @__PURE__ */
|
|
11772
|
+
class: /* @__PURE__ */ G(["ao-list-kanban"])
|
|
11772
11773
|
}, U4 = { class: "ao-list-kanban__header" }, Z4 = {
|
|
11773
11774
|
key: 0,
|
|
11774
11775
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
@@ -11860,16 +11861,16 @@ const F4 = {
|
|
|
11860
11861
|
}
|
|
11861
11862
|
}), {
|
|
11862
11863
|
item: z(({ element: d }) => {
|
|
11863
|
-
var h, w,
|
|
11864
|
+
var h, w, b, g, k, _, m, D, I;
|
|
11864
11865
|
return [
|
|
11865
11866
|
M(di, {
|
|
11866
|
-
class:
|
|
11867
|
+
class: G(o(d) ? "ao-list-draggable" : ""),
|
|
11867
11868
|
id: d.id,
|
|
11868
11869
|
name: d.name,
|
|
11869
11870
|
"project-name": (h = d.project) == null ? void 0 : h.name,
|
|
11870
11871
|
"project-color": (w = d.project) == null ? void 0 : w.color,
|
|
11871
|
-
"phase-name": (g = (
|
|
11872
|
-
"milestone-name": (
|
|
11872
|
+
"phase-name": (g = (b = d.milestone) == null ? void 0 : b.phase) == null ? void 0 : g.name,
|
|
11873
|
+
"milestone-name": (k = d.milestone) == null ? void 0 : k.name,
|
|
11873
11874
|
"milestone-color": (_ = d.milestone) == null ? void 0 : _.color,
|
|
11874
11875
|
deadline: d.deadline,
|
|
11875
11876
|
rules: ((m = d.rules) == null ? void 0 : m.length) || 0,
|
|
@@ -11971,14 +11972,14 @@ const K4 = { class: "ao-field ao-search-field" }, G4 = ["value", "placeholder",
|
|
|
11971
11972
|
}, null, 40, G4),
|
|
11972
11973
|
M(pe, {
|
|
11973
11974
|
name: "SearchRounded",
|
|
11974
|
-
class:
|
|
11975
|
+
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
11975
11976
|
}, null, 8, ["class"]),
|
|
11976
11977
|
M(ue, {
|
|
11977
11978
|
"icon-name": "CloseRounded",
|
|
11978
11979
|
size: "sm",
|
|
11979
11980
|
color: "primary",
|
|
11980
11981
|
corners: "round",
|
|
11981
|
-
class:
|
|
11982
|
+
class: G(`ao-search-field__button ao-search-field__action ${i.modelValue ? "ao-search-field__action--visible" : ""}`),
|
|
11982
11983
|
onClick: o
|
|
11983
11984
|
}, null, 8, ["class"])
|
|
11984
11985
|
]));
|
|
@@ -12008,25 +12009,25 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12008
12009
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "unarchiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "update:showsOnlyImportant", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
|
|
12009
12010
|
setup(t, { emit: e }) {
|
|
12010
12011
|
const a = t, { t: n } = Tt();
|
|
12011
|
-
function s(O,
|
|
12012
|
-
e("toast", O,
|
|
12012
|
+
function s(O, S) {
|
|
12013
|
+
e("toast", O, S);
|
|
12013
12014
|
}
|
|
12014
|
-
const o = Pt(a, "activities"), i = async (O,
|
|
12015
|
-
await e("selectActivity", O,
|
|
12015
|
+
const o = Pt(a, "activities"), i = async (O, S) => {
|
|
12016
|
+
await e("selectActivity", O, S);
|
|
12016
12017
|
}, r = ee({}), l = ee(!1), c = ee(!1), u = A(() => a.project ? "milestone" : "project");
|
|
12017
12018
|
de(
|
|
12018
12019
|
[() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
|
|
12019
12020
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12020
|
-
async ([O,
|
|
12021
|
+
async ([O, S, F, V], [se, y]) => {
|
|
12021
12022
|
r.value = Object.fromEntries(
|
|
12022
12023
|
O.map((R) => [
|
|
12023
12024
|
R.id,
|
|
12024
|
-
|
|
12025
|
+
S.filter((le) => {
|
|
12025
12026
|
var ie;
|
|
12026
12027
|
return ((ie = le.status) == null ? void 0 : ie.id) === R.id;
|
|
12027
12028
|
})
|
|
12028
12029
|
])
|
|
12029
|
-
), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Xe(
|
|
12030
|
+
), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Xe(S, y);
|
|
12030
12031
|
},
|
|
12031
12032
|
{ immediate: !0 }
|
|
12032
12033
|
);
|
|
@@ -12034,27 +12035,27 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12034
12035
|
var O;
|
|
12035
12036
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((O = a.selectedActivity.milestone.phase) == null ? void 0 : O.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
12036
12037
|
}), d = (O) => {
|
|
12037
|
-
var
|
|
12038
|
-
const
|
|
12038
|
+
var y, R;
|
|
12039
|
+
const S = (y = a.activities) == null ? void 0 : y.at(-1), F = S ? Ie.LexoRank.parse(S.rank).genNext() : Ie.LexoRank.middle(), V = ((R = a.activities) == null ? void 0 : R.length) ?? 0, se = {
|
|
12039
12040
|
name: n("activity.defaultName", { idx: V + 1 }),
|
|
12040
12041
|
rank: F.format(),
|
|
12041
12042
|
statusId: O.id
|
|
12042
12043
|
};
|
|
12043
12044
|
a.filters.assigneeId.length > 0 && (se.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (se.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (se.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", se);
|
|
12044
|
-
}, h = (O,
|
|
12045
|
-
c.value = !1, e("update:filters", { ...a.filters, [O]:
|
|
12045
|
+
}, h = (O, S) => {
|
|
12046
|
+
c.value = !1, e("update:filters", { ...a.filters, [O]: S });
|
|
12046
12047
|
}, w = A(
|
|
12047
12048
|
() => a.project ? [a.project] : a.projects ?? []
|
|
12048
|
-
),
|
|
12049
|
+
), b = A(() => w.value.map((O) => ({
|
|
12049
12050
|
value: O.id,
|
|
12050
12051
|
label: O.name
|
|
12051
12052
|
}))), g = A(() => {
|
|
12052
12053
|
var O;
|
|
12053
|
-
return (O = a.activityTypes) == null ? void 0 : O.map((
|
|
12054
|
-
value:
|
|
12055
|
-
label:
|
|
12054
|
+
return (O = a.activityTypes) == null ? void 0 : O.map((S) => ({
|
|
12055
|
+
value: S.id,
|
|
12056
|
+
label: S.name
|
|
12056
12057
|
}));
|
|
12057
|
-
}),
|
|
12058
|
+
}), k = A(() => a.users.map((O) => ({
|
|
12058
12059
|
value: O.id,
|
|
12059
12060
|
label: `${O.firstName} ${O.lastName}`,
|
|
12060
12061
|
avatar: O.avatarUrl
|
|
@@ -12086,13 +12087,13 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12086
12087
|
activityId: a.selectedActivity.id
|
|
12087
12088
|
});
|
|
12088
12089
|
}, oe = (O) => {
|
|
12089
|
-
const { id:
|
|
12090
|
-
|
|
12090
|
+
const { id: S } = a.selectedActivity || {};
|
|
12091
|
+
S && e("updateComment", O);
|
|
12091
12092
|
}, ne = (O) => {
|
|
12092
|
-
const { id:
|
|
12093
|
-
|
|
12093
|
+
const { id: S } = a.selectedActivity || {};
|
|
12094
|
+
S && e("removeComment", O);
|
|
12094
12095
|
};
|
|
12095
|
-
return (O,
|
|
12096
|
+
return (O, S) => {
|
|
12096
12097
|
var F;
|
|
12097
12098
|
return p(), C("div", Q4, [
|
|
12098
12099
|
M(Ga, null, {
|
|
@@ -12103,7 +12104,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12103
12104
|
"is-left": !1,
|
|
12104
12105
|
"right-label": O.$t("project.switch.feed"),
|
|
12105
12106
|
"left-label": O.$t("project.switch.overview"),
|
|
12106
|
-
"onUpdate:isLeft":
|
|
12107
|
+
"onUpdate:isLeft": S[0] || (S[0] = (V) => {
|
|
12107
12108
|
V && O.$router.push({ name: J(Fe).project });
|
|
12108
12109
|
})
|
|
12109
12110
|
}, null, 8, ["right-label", "left-label"])) : T("", !0),
|
|
@@ -12118,12 +12119,12 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12118
12119
|
key: 1,
|
|
12119
12120
|
"model-value": O.filters[J(Lt).project],
|
|
12120
12121
|
mode: "tags",
|
|
12121
|
-
options:
|
|
12122
|
+
options: b.value,
|
|
12122
12123
|
"close-on-select": !1,
|
|
12123
12124
|
searchable: !0,
|
|
12124
12125
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
12125
12126
|
placeholder: O.$t("feed.filters.project.placeholder"),
|
|
12126
|
-
"onUpdate:modelValue":
|
|
12127
|
+
"onUpdate:modelValue": S[1] || (S[1] = (V) => h(J(Lt).project, V))
|
|
12127
12128
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
12128
12129
|
g.value ? (p(), P($e, {
|
|
12129
12130
|
key: 2,
|
|
@@ -12134,18 +12135,18 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12134
12135
|
searchable: !0,
|
|
12135
12136
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
12136
12137
|
placeholder: O.$t("feed.filters.activityType.placeholder"),
|
|
12137
|
-
"onUpdate:modelValue":
|
|
12138
|
+
"onUpdate:modelValue": S[2] || (S[2] = (V) => h(J(Lt).type, V))
|
|
12138
12139
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
12139
|
-
|
|
12140
|
+
k.value.length ? (p(), P($e, {
|
|
12140
12141
|
key: 3,
|
|
12141
12142
|
"model-value": O.filters[J(Lt).assignee],
|
|
12142
12143
|
mode: "tags",
|
|
12143
|
-
options:
|
|
12144
|
+
options: k.value,
|
|
12144
12145
|
"close-on-select": !1,
|
|
12145
12146
|
searchable: !0,
|
|
12146
12147
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
12147
12148
|
placeholder: O.$t("feed.filters.assignee.placeholder"),
|
|
12148
|
-
"onUpdate:modelValue":
|
|
12149
|
+
"onUpdate:modelValue": S[3] || (S[3] = (V) => h(J(Lt).assignee, V))
|
|
12149
12150
|
}, {
|
|
12150
12151
|
tag: z(({
|
|
12151
12152
|
option: V,
|
|
@@ -12155,7 +12156,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12155
12156
|
"user-name": V.label,
|
|
12156
12157
|
"avatar-url": V.avatar,
|
|
12157
12158
|
"is-closable": !0,
|
|
12158
|
-
onClose: (
|
|
12159
|
+
onClose: (y) => se(V, y)
|
|
12159
12160
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12160
12161
|
]),
|
|
12161
12162
|
_: 1
|
|
@@ -12171,7 +12172,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12171
12172
|
label: O.$t("feed.filters.showsOnlyImportant.label"),
|
|
12172
12173
|
role: "checkbox",
|
|
12173
12174
|
"aria-checked": O.showsOnlyImportant,
|
|
12174
|
-
onClick:
|
|
12175
|
+
onClick: S[4] || (S[4] = (V) => O.$emit("update:showsOnlyImportant", !O.showsOnlyImportant))
|
|
12175
12176
|
}, null, 8, ["icon-name", "label", "aria-checked"]),
|
|
12176
12177
|
M(ue, {
|
|
12177
12178
|
class: "ao-feed__show-archived",
|
|
@@ -12183,7 +12184,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12183
12184
|
label: O.$t("feed.filters.showsArchivedActivities.label"),
|
|
12184
12185
|
role: "checkbox",
|
|
12185
12186
|
"aria-checked": O.showsArchivedActivities,
|
|
12186
|
-
onClick:
|
|
12187
|
+
onClick: S[5] || (S[5] = (V) => O.$emit("update:showsArchivedActivities", !O.showsArchivedActivities))
|
|
12187
12188
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
12188
12189
|
]),
|
|
12189
12190
|
_: 1
|
|
@@ -12221,7 +12222,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12221
12222
|
"is-editable": O.isEditable,
|
|
12222
12223
|
"attachment-enabled": O.attachmentEnabled,
|
|
12223
12224
|
projects: w.value,
|
|
12224
|
-
onClose:
|
|
12225
|
+
onClose: S[6] || (S[6] = () => i(null, null)),
|
|
12225
12226
|
"onUpdate:activity": _,
|
|
12226
12227
|
onAddSubtask: Z,
|
|
12227
12228
|
onUpdateSubtask: Y,
|
|
@@ -12401,7 +12402,7 @@ const s8 = { class: "ao-field__label" }, i8 = /* @__PURE__ */ x({
|
|
|
12401
12402
|
},
|
|
12402
12403
|
setup(t) {
|
|
12403
12404
|
return (e, a) => (p(), C("label", {
|
|
12404
|
-
class:
|
|
12405
|
+
class: G(["ao-field", { "ao-field--multiselect": e.isMultiselect }])
|
|
12405
12406
|
}, [
|
|
12406
12407
|
v("span", s8, Q(e.label), 1),
|
|
12407
12408
|
te(e.$slots, "default")
|