@26lights/orcha 0.36.22 → 0.36.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +2 -2
- package/dist/orcha.es.js +715 -709
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoCardFeed.vue.d.ts +6 -0
- package/dist/src/types/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, openBlock as p, createBlock as P, unref as Q, mergeProps as He, createElementBlock as g, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as S, resolveDynamicComponent as ht, normalizeClass as
|
|
1
|
+
import { defineComponent as z, openBlock as p, createBlock as P, unref as Q, mergeProps as He, createElementBlock as g, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as S, resolveDynamicComponent as ht, normalizeClass as K, renderSlot as te, toDisplayString as G, createCommentVNode as T, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as W, createTextVNode as Fa, createVNode as A, normalizeStyle as wn, withModifiers as fe, createSlots as Ua, Fragment as ve, renderList as _e, onMounted as xt, onBeforeUnmount as Ts, onUnmounted as $n, Teleport as Nt, toRefs as Me, getCurrentInstance as At, 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 u8 = /* @__PURE__ */ z({
|
|
@@ -1164,7 +1164,7 @@ const Os = {
|
|
|
1164
1164
|
setup(t) {
|
|
1165
1165
|
const e = t, a = S(() => k2[e.name]);
|
|
1166
1166
|
return (n, s) => (p(), P(ht(a.value), {
|
|
1167
|
-
class:
|
|
1167
|
+
class: K(["ao-icon", `ao-icon--${n.size}`])
|
|
1168
1168
|
}, null, 8, ["class"]));
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1189,7 +1189,7 @@ const A2 = ["type"], T2 = {
|
|
|
1189
1189
|
const e = t, a = S(() => e.size), n = S(() => e.isLoading ? "Loading" : e.iconName);
|
|
1190
1190
|
return (s, o) => (p(), g("button", {
|
|
1191
1191
|
type: s.type,
|
|
1192
|
-
class:
|
|
1192
|
+
class: K([
|
|
1193
1193
|
"ao-button",
|
|
1194
1194
|
`ao-button--${s.variant}`,
|
|
1195
1195
|
s.color ? `ao-button--${s.color}` : "",
|
|
@@ -1256,14 +1256,14 @@ const ye = /* @__PURE__ */ z({
|
|
|
1256
1256
|
const a = t, n = ee(null), { isEditing: s, setIsEditing: o, onUpdate: i, onDiscard: r } = Es(n), l = S(() => a.title.replace(/\s*\(\d+\)$/, "")), c = S(() => s.value ? "input" : a.tag || `h${a.level}`), u = S(() => a.isEditable ? s.value ? {
|
|
1257
1257
|
change: f,
|
|
1258
1258
|
click: (y) => y.stopPropagation(),
|
|
1259
|
-
blur:
|
|
1259
|
+
blur: h
|
|
1260
1260
|
} : {
|
|
1261
1261
|
click: b,
|
|
1262
1262
|
focus: b
|
|
1263
1263
|
} : {}), f = i((y, k) => {
|
|
1264
1264
|
const C = k.target.value;
|
|
1265
1265
|
e("update:title", C);
|
|
1266
|
-
}), d = r(),
|
|
1266
|
+
}), d = r(), h = async () => {
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, w = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
@@ -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: K(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: W(() => [
|
|
1348
1348
|
n.isDraggable ? (p(), g("div", O2, [
|
|
@@ -1406,7 +1406,7 @@ const Mn = /* @__PURE__ */ z({
|
|
|
1406
1406
|
() => a.value === "button" ? { type: "button" } : {}
|
|
1407
1407
|
);
|
|
1408
1408
|
return (s, o) => (p(), g("div", {
|
|
1409
|
-
class:
|
|
1409
|
+
class: K([
|
|
1410
1410
|
"ao-tag",
|
|
1411
1411
|
s.color ? `ao-tag--${s.color}` : "",
|
|
1412
1412
|
s.clickable ? "ao-tag--clickable" : "",
|
|
@@ -1586,28 +1586,28 @@ function Pa(t, e) {
|
|
|
1586
1586
|
var u = va(), f = Qe((a = (n = (s = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.weekStartsOn) !== null && s !== void 0 ? s : u.weekStartsOn) !== null && n !== void 0 ? n : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
1587
1587
|
if (!(f >= 0 && f <= 6))
|
|
1588
1588
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1589
|
-
var d = be(t),
|
|
1589
|
+
var d = be(t), h = d.getUTCDay(), w = (h < f ? 7 : 0) + h - f;
|
|
1590
1590
|
return d.setUTCDate(d.getUTCDate() - w), d.setUTCHours(0, 0, 0, 0), d;
|
|
1591
1591
|
}
|
|
1592
1592
|
function Vs(t, e) {
|
|
1593
1593
|
var a, n, s, o, i, r, l, c;
|
|
1594
1594
|
ge(1, arguments);
|
|
1595
|
-
var u = be(t), f = u.getUTCFullYear(), d = va(),
|
|
1596
|
-
if (!(
|
|
1595
|
+
var u = be(t), f = u.getUTCFullYear(), d = va(), h = Qe((a = (n = (s = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.firstWeekContainsDate) !== null && s !== void 0 ? s : d.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = d.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
1596
|
+
if (!(h >= 1 && h <= 7))
|
|
1597
1597
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1598
1598
|
var w = /* @__PURE__ */ new Date(0);
|
|
1599
|
-
w.setUTCFullYear(f + 1, 0,
|
|
1599
|
+
w.setUTCFullYear(f + 1, 0, h), w.setUTCHours(0, 0, 0, 0);
|
|
1600
1600
|
var b = Pa(w, e), y = /* @__PURE__ */ new Date(0);
|
|
1601
|
-
y.setUTCFullYear(f, 0,
|
|
1601
|
+
y.setUTCFullYear(f, 0, h), y.setUTCHours(0, 0, 0, 0);
|
|
1602
1602
|
var k = Pa(y, e);
|
|
1603
1603
|
return u.getTime() >= b.getTime() ? f + 1 : u.getTime() >= k.getTime() ? f : f - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function J2(t, e) {
|
|
1606
1606
|
var a, n, s, o, i, r, l, c;
|
|
1607
1607
|
ge(1, arguments);
|
|
1608
|
-
var u = va(), f = Qe((a = (n = (s = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.firstWeekContainsDate) !== null && s !== void 0 ? s : u.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), d = Vs(t, e),
|
|
1609
|
-
|
|
1610
|
-
var w = Pa(
|
|
1608
|
+
var u = va(), f = Qe((a = (n = (s = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (r = i.options) === null || r === void 0 ? void 0 : r.firstWeekContainsDate) !== null && s !== void 0 ? s : u.firstWeekContainsDate) !== null && n !== void 0 ? n : (l = u.locale) === null || l === void 0 || (c = l.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), d = Vs(t, e), h = /* @__PURE__ */ new Date(0);
|
|
1609
|
+
h.setUTCFullYear(d, 0, f), h.setUTCHours(0, 0, 0, 0);
|
|
1610
|
+
var w = Pa(h, e);
|
|
1611
1611
|
return w;
|
|
1612
1612
|
}
|
|
1613
1613
|
var e0 = 6048e5;
|
|
@@ -2722,45 +2722,45 @@ 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,
|
|
2725
|
+
var n, s, o, i, r, l, c, u, f, d, h, w, b, y, k, _, C, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
2727
|
var L = String(e), H = va(), F = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : H.locale) !== null && n !== void 0 ? n : Rs, U = Qe((o = (i = (r = (l = a == null ? void 0 : a.firstWeekContainsDate) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : H.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = H.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2728
2728
|
if (!(U >= 1 && U <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
|
-
var q = Qe((
|
|
2730
|
+
var q = Qe((h = (w = (b = (y = a == null ? void 0 : a.weekStartsOn) !== null && y !== void 0 ? y : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : H.weekStartsOn) !== null && w !== void 0 ? w : (C = H.locale) === null || C === void 0 || (D = C.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2731
2731
|
if (!(q >= 0 && q <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!F.localize)
|
|
2734
2734
|
throw new RangeError("locale must contain localize property");
|
|
2735
2735
|
if (!F.formatLong)
|
|
2736
2736
|
throw new RangeError("locale must contain formatLong property");
|
|
2737
|
-
var
|
|
2738
|
-
if (!Ds(
|
|
2737
|
+
var O = be(t);
|
|
2738
|
+
if (!Ds(O))
|
|
2739
2739
|
throw new RangeError("Invalid time value");
|
|
2740
|
-
var
|
|
2740
|
+
var x = ra(O), R = mn(O, x), Z = {
|
|
2741
2741
|
firstWeekContainsDate: U,
|
|
2742
2742
|
weekStartsOn: q,
|
|
2743
2743
|
locale: F,
|
|
2744
|
-
_originalDate:
|
|
2745
|
-
}, ie = L.match(X0).map(function(
|
|
2746
|
-
var N =
|
|
2744
|
+
_originalDate: O
|
|
2745
|
+
}, ie = L.match(X0).map(function(E) {
|
|
2746
|
+
var N = E[0];
|
|
2747
2747
|
if (N === "p" || N === "P") {
|
|
2748
2748
|
var M = r0[N];
|
|
2749
|
-
return M(
|
|
2749
|
+
return M(E, F.formatLong);
|
|
2750
2750
|
}
|
|
2751
|
-
return
|
|
2752
|
-
}).join("").match(G0).map(function(
|
|
2753
|
-
if (
|
|
2751
|
+
return E;
|
|
2752
|
+
}).join("").match(G0).map(function(E) {
|
|
2753
|
+
if (E === "''")
|
|
2754
2754
|
return "'";
|
|
2755
|
-
var N =
|
|
2755
|
+
var N = E[0];
|
|
2756
2756
|
if (N === "'")
|
|
2757
|
-
return t3(
|
|
2757
|
+
return t3(E);
|
|
2758
2758
|
var M = s0[N];
|
|
2759
2759
|
if (M)
|
|
2760
|
-
return !(a != null && a.useAdditionalWeekYearTokens) && d0(
|
|
2760
|
+
return !(a != null && a.useAdditionalWeekYearTokens) && d0(E) && ds(E, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && c0(E) && ds(E, e, String(t)), M(R, E, F.localize, Z);
|
|
2761
2761
|
if (N.match(e3))
|
|
2762
2762
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + N + "`");
|
|
2763
|
-
return
|
|
2763
|
+
return E;
|
|
2764
2764
|
}).join("");
|
|
2765
2765
|
return ie;
|
|
2766
2766
|
}
|
|
@@ -2771,23 +2771,23 @@ 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
|
|
2774
|
+
var h = be(t), w = be(e), b = va(), y = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Rs, k = Qe((o = (i = (r = (l = a == null ? void 0 : a.weekStartsOn) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : b.weekStartsOn) !== null && i !== void 0 ? i : (f = b.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2775
2775
|
if (!y.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
2777
|
if (!y.formatLong)
|
|
2778
2778
|
throw new RangeError("locale must contain formatLong property");
|
|
2779
2779
|
if (!y.formatRelative)
|
|
2780
2780
|
throw new RangeError("locale must contain formatRelative property");
|
|
2781
|
-
var _ = q2(
|
|
2781
|
+
var _ = q2(h, w);
|
|
2782
2782
|
if (isNaN(_))
|
|
2783
2783
|
throw new RangeError("Invalid time value");
|
|
2784
2784
|
var C;
|
|
2785
2785
|
_ < -6 ? C = "other" : _ < -1 ? C = "lastWeek" : _ < 0 ? C = "yesterday" : _ < 1 ? C = "today" : _ < 2 ? C = "tomorrow" : _ < 7 ? C = "nextWeek" : C = "other";
|
|
2786
|
-
var D = mn(
|
|
2786
|
+
var D = mn(h, ra(h)), L = mn(w, ra(w)), H = y.formatRelative(C, D, L, {
|
|
2787
2787
|
locale: y,
|
|
2788
2788
|
weekStartsOn: k
|
|
2789
2789
|
});
|
|
2790
|
-
return Ns(
|
|
2790
|
+
return Ns(h, H, {
|
|
2791
2791
|
locale: y,
|
|
2792
2792
|
weekStartsOn: k
|
|
2793
2793
|
});
|
|
@@ -3495,10 +3495,10 @@ function Ws() {
|
|
|
3495
3495
|
break;
|
|
3496
3496
|
w = b, l = y;
|
|
3497
3497
|
}
|
|
3498
|
-
let d = s.middleInternal(i, r, l, c),
|
|
3499
|
-
for (let w = d.getScale(); w > 0; w =
|
|
3500
|
-
|
|
3501
|
-
const b = d.setScale(
|
|
3498
|
+
let d = s.middleInternal(i, r, l, c), h;
|
|
3499
|
+
for (let w = d.getScale(); w > 0; w = h) {
|
|
3500
|
+
h = w - 1;
|
|
3501
|
+
const b = d.setScale(h);
|
|
3502
3502
|
if (i.compareTo(b) >= 0 || b.compareTo(r) >= 0)
|
|
3503
3503
|
break;
|
|
3504
3504
|
d = b;
|
|
@@ -3714,7 +3714,7 @@ const zs = (t) => {
|
|
|
3714
3714
|
};
|
|
3715
3715
|
return (i, r) => (p(), g("div", {
|
|
3716
3716
|
role: "img",
|
|
3717
|
-
class:
|
|
3717
|
+
class: K(n.value),
|
|
3718
3718
|
title: i.userName
|
|
3719
3719
|
}, [
|
|
3720
3720
|
i.avatarUrl ? T("", !0) : (p(), g("span", I3, G(Q(s)), 1)),
|
|
@@ -3878,7 +3878,7 @@ const a5 = ["type"], n5 = {
|
|
|
3878
3878
|
const e = t, a = S(() => e.size), n = S(() => e.isLoading ? "Loading" : e.iconName);
|
|
3879
3879
|
return (s, o) => (p(), g("button", {
|
|
3880
3880
|
type: s.type,
|
|
3881
|
-
class:
|
|
3881
|
+
class: K([
|
|
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__ */ z({
|
|
|
4159
4159
|
emits: ["close"],
|
|
4160
4160
|
setup(t) {
|
|
4161
4161
|
return (e, a) => (p(), g("div", {
|
|
4162
|
-
class:
|
|
4162
|
+
class: K(["ao-modal__wrapper", `ao-modal__wrapper--${e.size}`])
|
|
4163
4163
|
}, [
|
|
4164
4164
|
v("div", {
|
|
4165
4165
|
class: "ao-modal__backdrop",
|
|
@@ -4288,47 +4288,47 @@ function vs(t, e, a) {
|
|
|
4288
4288
|
floating: s
|
|
4289
4289
|
} = t;
|
|
4290
4290
|
const o = Hn(e), i = Ys(e), r = xs(i), l = Ft(e), c = o === "y", u = n.x + n.width / 2 - s.width / 2, f = n.y + n.height / 2 - s.height / 2, d = n[r] / 2 - s[r] / 2;
|
|
4291
|
-
let
|
|
4291
|
+
let h;
|
|
4292
4292
|
switch (l) {
|
|
4293
4293
|
case "top":
|
|
4294
|
-
|
|
4294
|
+
h = {
|
|
4295
4295
|
x: u,
|
|
4296
4296
|
y: n.y - s.height
|
|
4297
4297
|
};
|
|
4298
4298
|
break;
|
|
4299
4299
|
case "bottom":
|
|
4300
|
-
|
|
4300
|
+
h = {
|
|
4301
4301
|
x: u,
|
|
4302
4302
|
y: n.y + n.height
|
|
4303
4303
|
};
|
|
4304
4304
|
break;
|
|
4305
4305
|
case "right":
|
|
4306
|
-
|
|
4306
|
+
h = {
|
|
4307
4307
|
x: n.x + n.width,
|
|
4308
4308
|
y: f
|
|
4309
4309
|
};
|
|
4310
4310
|
break;
|
|
4311
4311
|
case "left":
|
|
4312
|
-
|
|
4312
|
+
h = {
|
|
4313
4313
|
x: n.x - s.width,
|
|
4314
4314
|
y: f
|
|
4315
4315
|
};
|
|
4316
4316
|
break;
|
|
4317
4317
|
default:
|
|
4318
|
-
|
|
4318
|
+
h = {
|
|
4319
4319
|
x: n.x,
|
|
4320
4320
|
y: n.y
|
|
4321
4321
|
};
|
|
4322
4322
|
}
|
|
4323
4323
|
switch (Ka(e)) {
|
|
4324
4324
|
case "start":
|
|
4325
|
-
|
|
4325
|
+
h[i] -= d * (a && c ? -1 : 1);
|
|
4326
4326
|
break;
|
|
4327
4327
|
case "end":
|
|
4328
|
-
|
|
4328
|
+
h[i] += d * (a && c ? -1 : 1);
|
|
4329
4329
|
break;
|
|
4330
4330
|
}
|
|
4331
|
-
return
|
|
4331
|
+
return h;
|
|
4332
4332
|
}
|
|
4333
4333
|
const E5 = async (t, e, a) => {
|
|
4334
4334
|
const {
|
|
@@ -4344,7 +4344,7 @@ const E5 = async (t, e, a) => {
|
|
|
4344
4344
|
}), {
|
|
4345
4345
|
x: u,
|
|
4346
4346
|
y: f
|
|
4347
|
-
} = vs(c, n, l), d = n,
|
|
4347
|
+
} = vs(c, n, l), d = n, h = {}, w = 0;
|
|
4348
4348
|
for (let b = 0; b < r.length; b++) {
|
|
4349
4349
|
const {
|
|
4350
4350
|
name: y,
|
|
@@ -4360,7 +4360,7 @@ const E5 = async (t, e, a) => {
|
|
|
4360
4360
|
initialPlacement: n,
|
|
4361
4361
|
placement: d,
|
|
4362
4362
|
strategy: s,
|
|
4363
|
-
middlewareData:
|
|
4363
|
+
middlewareData: h,
|
|
4364
4364
|
rects: c,
|
|
4365
4365
|
platform: i,
|
|
4366
4366
|
elements: {
|
|
@@ -4368,10 +4368,10 @@ const E5 = async (t, e, a) => {
|
|
|
4368
4368
|
floating: e
|
|
4369
4369
|
}
|
|
4370
4370
|
});
|
|
4371
|
-
if (u = _ ?? u, f = C ?? f,
|
|
4372
|
-
...
|
|
4371
|
+
if (u = _ ?? u, f = C ?? f, h = {
|
|
4372
|
+
...h,
|
|
4373
4373
|
[y]: {
|
|
4374
|
-
...
|
|
4374
|
+
...h[y],
|
|
4375
4375
|
...D
|
|
4376
4376
|
}
|
|
4377
4377
|
}, L && w <= 50) {
|
|
@@ -4391,7 +4391,7 @@ const E5 = async (t, e, a) => {
|
|
|
4391
4391
|
y: f,
|
|
4392
4392
|
placement: d,
|
|
4393
4393
|
strategy: s,
|
|
4394
|
-
middlewareData:
|
|
4394
|
+
middlewareData: h
|
|
4395
4395
|
};
|
|
4396
4396
|
};
|
|
4397
4397
|
async function Ks(t, e) {
|
|
@@ -4409,8 +4409,8 @@ async function Ks(t, e) {
|
|
|
4409
4409
|
rootBoundary: u = "viewport",
|
|
4410
4410
|
elementContext: f = "floating",
|
|
4411
4411
|
altBoundary: d = !1,
|
|
4412
|
-
padding:
|
|
4413
|
-
} = Ln(e, t), w = O5(
|
|
4412
|
+
padding: h = 0
|
|
4413
|
+
} = Ln(e, t), w = O5(h), y = r[d ? f === "floating" ? "reference" : "floating" : f], k = Ra(await o.getClippingRect({
|
|
4414
4414
|
element: (a = await (o.isElement == null ? void 0 : o.isElement(y))) == null || a ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(r.floating)),
|
|
4415
4415
|
boundary: c,
|
|
4416
4416
|
rootBoundary: u,
|
|
@@ -4454,7 +4454,7 @@ const I5 = function(t) {
|
|
|
4454
4454
|
mainAxis: u = !0,
|
|
4455
4455
|
crossAxis: f = !0,
|
|
4456
4456
|
fallbackPlacements: d,
|
|
4457
|
-
fallbackStrategy:
|
|
4457
|
+
fallbackStrategy: h = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: w = "none",
|
|
4459
4459
|
flipAlignment: b = !0,
|
|
4460
4460
|
...y
|
|
@@ -4473,7 +4473,7 @@ const I5 = function(t) {
|
|
|
4473
4473
|
placement: s,
|
|
4474
4474
|
overflows: F
|
|
4475
4475
|
}], !F.every((R) => R <= 0)) {
|
|
4476
|
-
var q,
|
|
4476
|
+
var q, O;
|
|
4477
4477
|
const R = (((q = o.flip) == null ? void 0 : q.index) || 0) + 1, Z = L[R];
|
|
4478
4478
|
if (Z)
|
|
4479
4479
|
return {
|
|
@@ -4485,13 +4485,13 @@ const I5 = function(t) {
|
|
|
4485
4485
|
placement: Z
|
|
4486
4486
|
}
|
|
4487
4487
|
};
|
|
4488
|
-
let ie = (
|
|
4488
|
+
let ie = (O = U.filter((E) => E.overflows[0] <= 0).sort((E, N) => E.overflows[1] - N.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
4489
4489
|
if (!ie)
|
|
4490
|
-
switch (
|
|
4490
|
+
switch (h) {
|
|
4491
4491
|
case "bestFit": {
|
|
4492
|
-
var
|
|
4493
|
-
const
|
|
4494
|
-
|
|
4492
|
+
var x;
|
|
4493
|
+
const E = (x = U.map((N) => [N.placement, N.overflows.filter((M) => M > 0).reduce((M, m) => M + m, 0)]).sort((N, M) => N[1] - M[1])[0]) == null ? void 0 : x[0];
|
|
4494
|
+
E && (ie = E);
|
|
4495
4495
|
break;
|
|
4496
4496
|
}
|
|
4497
4497
|
case "initialPlacement":
|
|
@@ -4524,22 +4524,22 @@ const I5 = function(t) {
|
|
|
4524
4524
|
...r
|
|
4525
4525
|
} = Ln(t, e), l = await Ks(e, r), c = Ft(a), u = Ka(a), f = Hn(a) === "y", {
|
|
4526
4526
|
width: d,
|
|
4527
|
-
height:
|
|
4527
|
+
height: h
|
|
4528
4528
|
} = n.floating;
|
|
4529
4529
|
let w, b;
|
|
4530
4530
|
c === "top" || c === "bottom" ? (w = c, b = u === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (b = c, w = u === "end" ? "top" : "bottom");
|
|
4531
|
-
const y =
|
|
4531
|
+
const y = h - l[w], k = d - l[b], _ = !e.middlewareData.shift;
|
|
4532
4532
|
let C = y, D = k;
|
|
4533
4533
|
if (f) {
|
|
4534
4534
|
const H = d - l.left - l.right;
|
|
4535
4535
|
D = u || _ ? ua(k, H) : H;
|
|
4536
4536
|
} else {
|
|
4537
|
-
const H =
|
|
4537
|
+
const H = h - l.top - l.bottom;
|
|
4538
4538
|
C = u || _ ? ua(y, H) : H;
|
|
4539
4539
|
}
|
|
4540
4540
|
if (_ && !u) {
|
|
4541
4541
|
const H = Ee(l.left, 0), F = Ee(l.right, 0), U = Ee(l.top, 0), q = Ee(l.bottom, 0);
|
|
4542
|
-
f ? D = d - 2 * (H !== 0 || F !== 0 ? H + F : Ee(l.left, l.right)) : C =
|
|
4542
|
+
f ? D = d - 2 * (H !== 0 || F !== 0 ? H + F : Ee(l.left, l.right)) : C = h - 2 * (U !== 0 || q !== 0 ? U + q : Ee(l.top, l.bottom));
|
|
4543
4543
|
}
|
|
4544
4544
|
await i({
|
|
4545
4545
|
...e,
|
|
@@ -4547,7 +4547,7 @@ const I5 = function(t) {
|
|
|
4547
4547
|
availableHeight: C
|
|
4548
4548
|
});
|
|
4549
4549
|
const L = await s.getDimensions(o.floating);
|
|
4550
|
-
return d !== L.width ||
|
|
4550
|
+
return d !== L.width || h !== L.height ? {
|
|
4551
4551
|
reset: {
|
|
4552
4552
|
rects: !0
|
|
4553
4553
|
}
|
|
@@ -4690,9 +4690,9 @@ function St(t, e, a, n) {
|
|
|
4690
4690
|
const r = V5(o, a, n) ? Js(o) : pt(0);
|
|
4691
4691
|
let l = (s.left + r.x) / i.x, c = (s.top + r.y) / i.y, u = s.width / i.x, f = s.height / i.y;
|
|
4692
4692
|
if (o) {
|
|
4693
|
-
const d = ke(o),
|
|
4693
|
+
const d = ke(o), h = n && et(n) ? ke(n) : n;
|
|
4694
4694
|
let w = d.frameElement;
|
|
4695
|
-
for (; w && n &&
|
|
4695
|
+
for (; w && n && h !== d; ) {
|
|
4696
4696
|
const b = Vt(w), y = w.getBoundingClientRect(), k = Ve(w), _ = y.left + (w.clientLeft + parseFloat(k.paddingLeft)) * b.x, C = y.top + (w.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
4697
4697
|
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += _, c += C, w = ke(w).frameElement;
|
|
4698
4698
|
}
|
|
@@ -4905,8 +4905,8 @@ function K5(t, e) {
|
|
|
4905
4905
|
} = t.getBoundingClientRect();
|
|
4906
4906
|
if (r || e(), !f || !d)
|
|
4907
4907
|
return;
|
|
4908
|
-
const
|
|
4909
|
-
rootMargin: -
|
|
4908
|
+
const h = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)), y = Oa(c), _ = {
|
|
4909
|
+
rootMargin: -h + "px " + -w + "px " + -b + "px " + -y + "px",
|
|
4910
4910
|
threshold: Ee(0, ua(1, l)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let C = !0;
|
|
@@ -4949,13 +4949,13 @@ function G5(t, e, a, n) {
|
|
|
4949
4949
|
}), o && k.addEventListener("resize", a);
|
|
4950
4950
|
});
|
|
4951
4951
|
const f = c && r ? K5(c, a) : null;
|
|
4952
|
-
let d = -1,
|
|
4953
|
-
i && (
|
|
4952
|
+
let d = -1, h = null;
|
|
4953
|
+
i && (h = new ResizeObserver((k) => {
|
|
4954
4954
|
let [_] = k;
|
|
4955
|
-
_ && _.target === c &&
|
|
4956
|
-
|
|
4955
|
+
_ && _.target === c && h && (h.unobserve(e), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
|
|
4956
|
+
h && h.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
|
-
}), c && !l &&
|
|
4958
|
+
}), c && !l && h.observe(c), h.observe(e));
|
|
4959
4959
|
let w, b = l ? St(t) : null;
|
|
4960
4960
|
l && y();
|
|
4961
4961
|
function y() {
|
|
@@ -4965,7 +4965,7 @@ function G5(t, e, a, n) {
|
|
|
4965
4965
|
return a(), () => {
|
|
4966
4966
|
u.forEach((k) => {
|
|
4967
4967
|
s && k.removeEventListener("scroll", a), o && k.removeEventListener("resize", a);
|
|
4968
|
-
}), f && f(),
|
|
4968
|
+
}), f && f(), h && h.disconnect(), h = null, l && cancelAnimationFrame(w);
|
|
4969
4969
|
};
|
|
4970
4970
|
}
|
|
4971
4971
|
const X5 = (t, e, a) => {
|
|
@@ -5020,8 +5020,8 @@ const X5 = (t, e, a) => {
|
|
|
5020
5020
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
5021
5021
|
}),
|
|
5022
5022
|
L5({
|
|
5023
|
-
apply({ availableWidth: f, availableHeight: d, elements:
|
|
5024
|
-
Object.assign(
|
|
5023
|
+
apply({ availableWidth: f, availableHeight: d, elements: h, rects: w }) {
|
|
5024
|
+
Object.assign(h.floating.style, {
|
|
5025
5025
|
minHeight: `${s.value}px`,
|
|
5026
5026
|
width: `${w.reference.width}px`,
|
|
5027
5027
|
maxWidth: `${f}px`,
|
|
@@ -5052,8 +5052,8 @@ function je(t) {
|
|
|
5052
5052
|
function J5(t, e, a) {
|
|
5053
5053
|
const { object: n, valueProp: s, mode: o } = Me(t), i = At().proxy, r = a.iv, l = (f, d = !0) => {
|
|
5054
5054
|
r.value = u(f);
|
|
5055
|
-
const
|
|
5056
|
-
e.emit("change",
|
|
5055
|
+
const h = c(f);
|
|
5056
|
+
e.emit("change", h, i), d && (e.emit("input", h), e.emit("update:modelValue", h));
|
|
5057
5057
|
}, c = (f) => n.value || je(f) ? f : Array.isArray(f) ? f.map((d) => d[s.value]) : f[s.value], u = (f) => je(f) ? o.value === "single" ? {} : [] : f;
|
|
5058
5058
|
return {
|
|
5059
5059
|
update: l
|
|
@@ -5077,8 +5077,8 @@ function t7(t, e, a) {
|
|
|
5077
5077
|
r.value = d.target.value;
|
|
5078
5078
|
}, u = (d) => {
|
|
5079
5079
|
if (n && n.value) {
|
|
5080
|
-
let
|
|
5081
|
-
typeof
|
|
5080
|
+
let h = n.value;
|
|
5081
|
+
typeof h == "string" && (h = new RegExp(h)), d.key.match(h) || d.preventDefault();
|
|
5082
5082
|
}
|
|
5083
5083
|
}, f = (d) => {
|
|
5084
5084
|
if (n && n.value) {
|
|
@@ -5134,7 +5134,7 @@ function i7(t, e, a) {
|
|
|
5134
5134
|
label: u,
|
|
5135
5135
|
appendNewTag: f,
|
|
5136
5136
|
appendNewOption: d,
|
|
5137
|
-
multipleLabel:
|
|
5137
|
+
multipleLabel: h,
|
|
5138
5138
|
object: w,
|
|
5139
5139
|
loading: b,
|
|
5140
5140
|
delay: y,
|
|
@@ -5147,21 +5147,21 @@ function i7(t, e, a) {
|
|
|
5147
5147
|
allowAbsent: F,
|
|
5148
5148
|
groupLabel: U,
|
|
5149
5149
|
canDeselect: q,
|
|
5150
|
-
max:
|
|
5151
|
-
strict:
|
|
5150
|
+
max: O,
|
|
5151
|
+
strict: x,
|
|
5152
5152
|
closeOnSelect: R,
|
|
5153
5153
|
closeOnDeselect: Z,
|
|
5154
5154
|
groups: ie,
|
|
5155
|
-
reverse:
|
|
5155
|
+
reverse: E,
|
|
5156
5156
|
infinite: N,
|
|
5157
5157
|
groupOptions: M,
|
|
5158
|
-
groupHideEmpty:
|
|
5158
|
+
groupHideEmpty: m,
|
|
5159
5159
|
groupSelect: I,
|
|
5160
5160
|
onCreate: J,
|
|
5161
5161
|
disabledProp: ae,
|
|
5162
5162
|
searchStart: le,
|
|
5163
5163
|
searchFilter: ne
|
|
5164
|
-
} = Me(t), re = At().proxy,
|
|
5164
|
+
} = Me(t), re = At().proxy, Y = a.iv, V = a.ev, X = a.search, he = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, tn = a.deactivate, st = a.close, ya = a.localize, it = ee([]), Ne = ee([]), Ae = ee(!1), Be = ee(null), qe = ee(N.value && i.value === -1 ? 10 : i.value), Xt = S(() => l.value || c.value || !1), ba = S(() => f.value !== void 0 ? f.value : d.value !== void 0 ? d.value : !0), Te = S(() => {
|
|
5165
5165
|
if (ie.value) {
|
|
5166
5166
|
let $ = _t.value || /* istanbul ignore next */
|
|
5167
5167
|
[], B = [];
|
|
@@ -5177,7 +5177,7 @@ function i7(t, e, a) {
|
|
|
5177
5177
|
}
|
|
5178
5178
|
}), Qt = S(() => {
|
|
5179
5179
|
let $ = Te.value;
|
|
5180
|
-
return
|
|
5180
|
+
return E.value && ($ = $.reverse()), Ot.value.length && ($ = Ot.value.concat($)), ln($);
|
|
5181
5181
|
}), ot = S(() => {
|
|
5182
5182
|
let $ = Qt.value;
|
|
5183
5183
|
return qe.value > 0 && ($ = $.slice(0, qe.value)), $;
|
|
@@ -5216,12 +5216,12 @@ function i7(t, e, a) {
|
|
|
5216
5216
|
}), nn = S(() => {
|
|
5217
5217
|
switch (s.value) {
|
|
5218
5218
|
case "single":
|
|
5219
|
-
return !je(
|
|
5219
|
+
return !je(Y.value[H.value]);
|
|
5220
5220
|
case "multiple":
|
|
5221
5221
|
case "tags":
|
|
5222
|
-
return !je(
|
|
5222
|
+
return !je(Y.value) && Y.value.length > 0;
|
|
5223
5223
|
}
|
|
5224
|
-
}), pi = S(() =>
|
|
5224
|
+
}), pi = S(() => h !== void 0 && h.value !== void 0 ? h.value(Y.value, re) : Y.value && Y.value.length > 1 ? `${Y.value.length} options selected` : "1 option selected"), fi = S(() => !Te.value.length && !Ae.value && !Ot.value.length), vi = S(() => Te.value.length > 0 && ot.value.length == 0 && (X.value && ie.value || !ie.value)), Ot = S(() => Xt.value === !1 || !X.value ? [] : $i(X.value) !== -1 ? [] : [{
|
|
5225
5225
|
[H.value]: X.value,
|
|
5226
5226
|
[yt.value[0]]: X.value,
|
|
5227
5227
|
[u.value]: X.value,
|
|
@@ -5241,7 +5241,7 @@ function i7(t, e, a) {
|
|
|
5241
5241
|
break;
|
|
5242
5242
|
case "multiple":
|
|
5243
5243
|
case "tags":
|
|
5244
|
-
we(
|
|
5244
|
+
we(Y.value.concat($));
|
|
5245
5245
|
break;
|
|
5246
5246
|
}
|
|
5247
5247
|
e.emit("select", es($), $, re);
|
|
@@ -5252,7 +5252,7 @@ function i7(t, e, a) {
|
|
|
5252
5252
|
break;
|
|
5253
5253
|
case "tags":
|
|
5254
5254
|
case "multiple":
|
|
5255
|
-
we(Array.isArray($) ?
|
|
5255
|
+
we(Array.isArray($) ? Y.value.filter((B) => $.map((oe) => oe[H.value]).indexOf(B[H.value]) === -1) : Y.value.filter((B) => B[H.value] != $[H.value]));
|
|
5256
5256
|
break;
|
|
5257
5257
|
}
|
|
5258
5258
|
e.emit("deselect", es($), $, re);
|
|
@@ -5271,12 +5271,12 @@ function i7(t, e, a) {
|
|
|
5271
5271
|
return s.value === "single" ? !1 : wi($[M.value]) && $[M.value].length;
|
|
5272
5272
|
switch (s.value) {
|
|
5273
5273
|
case "single":
|
|
5274
|
-
return !je(
|
|
5274
|
+
return !je(Y.value) && Y.value[H.value] == $[H.value];
|
|
5275
5275
|
case "tags":
|
|
5276
5276
|
case "multiple":
|
|
5277
|
-
return !je(
|
|
5277
|
+
return !je(Y.value) && Y.value.map((B) => B[H.value]).indexOf($[H.value]) !== -1;
|
|
5278
5278
|
}
|
|
5279
|
-
}, sn = ($) => $[ae.value] === !0, on = () =>
|
|
5279
|
+
}, sn = ($) => $[ae.value] === !0, on = () => O === void 0 || O.value === -1 || !nn.value && O.value > 0 ? !1 : Y.value.length >= O.value, gi = ($) => {
|
|
5280
5280
|
if (!sn($)) {
|
|
5281
5281
|
if (J && J.value && !ze($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = J.value($, re), $ instanceof Promise)) {
|
|
5282
5282
|
Ae.value = !0, $.then((B) => {
|
|
@@ -5325,7 +5325,7 @@ function i7(t, e, a) {
|
|
|
5325
5325
|
case "multiple":
|
|
5326
5326
|
case "tags":
|
|
5327
5327
|
bi($[M.value]) ? It($[M.value]) : Et(
|
|
5328
|
-
$[M.value].filter((B) =>
|
|
5328
|
+
$[M.value].filter((B) => Y.value.map((oe) => oe[H.value]).indexOf(B[H.value]) === -1).filter((B) => !B[ae.value]).filter((B, oe) => Y.value.length + 1 + oe <= O.value || O.value === -1)
|
|
5329
5329
|
), r.value && Kt.value && Gt(an.value.filter((B) => !B[ae.value])[Kt.value.index]);
|
|
5330
5330
|
break;
|
|
5331
5331
|
}
|
|
@@ -5337,15 +5337,15 @@ function i7(t, e, a) {
|
|
|
5337
5337
|
s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !ze($)));
|
|
5338
5338
|
}, bi = ($) => $.find((B) => !ze(B) && !B[ae.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[H.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((oe) => (parseInt(B[oe]) == B[oe] ? parseInt(B[oe]) : B[oe]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
|
|
5339
5339
|
it.value.push($);
|
|
5340
|
-
}, Mi = ($) =>
|
|
5340
|
+
}, Mi = ($) => m.value ? $.filter(
|
|
5341
5341
|
(B) => X.value ? B.__VISIBLE__.length : B[M.value].length
|
|
5342
5342
|
) : $.filter((B) => X.value ? B.__VISIBLE__.length : !0), ln = ($, B = !0) => {
|
|
5343
5343
|
let oe = $;
|
|
5344
5344
|
if (X.value && C.value) {
|
|
5345
5345
|
let me = ne.value;
|
|
5346
5346
|
me || (me = (bt, is, i8) => yt.value.some((Ti) => {
|
|
5347
|
-
let os = fn(ya(bt[Ti]),
|
|
5348
|
-
return le.value ? os.startsWith(fn(is,
|
|
5347
|
+
let os = fn(ya(bt[Ti]), x.value);
|
|
5348
|
+
return le.value ? os.startsWith(fn(is, x.value)) : os.indexOf(fn(is, x.value)) !== -1;
|
|
5349
5349
|
})), oe = oe.filter((bt) => me(bt, X.value, re));
|
|
5350
5350
|
}
|
|
5351
5351
|
return r.value && B && (oe = oe.filter((me) => !ki(me))), oe;
|
|
@@ -5356,7 +5356,7 @@ function i7(t, e, a) {
|
|
|
5356
5356
|
return { [H.value]: oe, [yt.value[0]]: me, [u.value]: me };
|
|
5357
5357
|
})), B = B.map((oe) => typeof oe == "object" ? oe : { [H.value]: oe, [yt.value[0]]: oe, [u.value]: oe }), B;
|
|
5358
5358
|
}, $a = () => {
|
|
5359
|
-
je(V.value) || (
|
|
5359
|
+
je(V.value) || (Y.value = Sa(V.value));
|
|
5360
5360
|
}, ka = ($) => (Ae.value = !0, new Promise((B, oe) => {
|
|
5361
5361
|
n.value(X.value, re).then((me) => {
|
|
5362
5362
|
Ne.value = me || [], typeof $ == "function" && $(me), Ae.value = !1;
|
|
@@ -5368,17 +5368,17 @@ function i7(t, e, a) {
|
|
|
5368
5368
|
})), cn = () => {
|
|
5369
5369
|
if (nn.value)
|
|
5370
5370
|
if (s.value === "single") {
|
|
5371
|
-
let $ = xe(
|
|
5371
|
+
let $ = xe(Y.value[H.value]);
|
|
5372
5372
|
if ($ !== void 0) {
|
|
5373
5373
|
let B = $[u.value];
|
|
5374
|
-
|
|
5374
|
+
Y.value[u.value] = B, w.value && (V.value[u.value] = B);
|
|
5375
5375
|
}
|
|
5376
5376
|
} else
|
|
5377
|
-
|
|
5378
|
-
let oe = xe(
|
|
5377
|
+
Y.value.forEach(($, B) => {
|
|
5378
|
+
let oe = xe(Y.value[B][H.value]);
|
|
5379
5379
|
if (oe !== void 0) {
|
|
5380
5380
|
let me = oe[u.value];
|
|
5381
|
-
|
|
5381
|
+
Y.value[B][u.value] = me, w.value && (V.value[B][u.value] = me);
|
|
5382
5382
|
}
|
|
5383
5383
|
});
|
|
5384
5384
|
}, Ai = ($) => {
|
|
@@ -5416,15 +5416,15 @@ function i7(t, e, a) {
|
|
|
5416
5416
|
}
|
|
5417
5417
|
switch (s.value) {
|
|
5418
5418
|
case "single":
|
|
5419
|
-
(w.value ? $[H.value] !=
|
|
5419
|
+
(w.value ? $[H.value] != Y.value[H.value] : $ != Y.value[H.value]) && we(Sa($), !1);
|
|
5420
5420
|
break;
|
|
5421
5421
|
case "multiple":
|
|
5422
5422
|
case "tags":
|
|
5423
|
-
s7(w.value ? $.map((B) => B[H.value]) : $,
|
|
5423
|
+
s7(w.value ? $.map((B) => B[H.value]) : $, Y.value.map((B) => B[H.value])) || we(Sa($), !1);
|
|
5424
5424
|
break;
|
|
5425
5425
|
}
|
|
5426
5426
|
}, { deep: !0 }), de(n, ($, B) => {
|
|
5427
|
-
typeof t.options == "function" ? k.value && (!B || $ && $.toString() !== B.toString()) && ka() : (Ne.value = t.options, Object.keys(
|
|
5427
|
+
typeof t.options == "function" ? k.value && (!B || $ && $.toString() !== B.toString()) && ka() : (Ne.value = t.options, Object.keys(Y.value).length || $a(), cn());
|
|
5428
5428
|
}), de(u, cn), de(i, ($, B) => {
|
|
5429
5429
|
qe.value = N.value && $ === -1 ? 10 : $;
|
|
5430
5430
|
}), {
|
|
@@ -5472,7 +5472,7 @@ function o7(t, e, a) {
|
|
|
5472
5472
|
groupSelect: c,
|
|
5473
5473
|
disabledProp: u,
|
|
5474
5474
|
groupOptions: f
|
|
5475
|
-
} = Me(t), d = a.fo,
|
|
5475
|
+
} = Me(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, y = a.search, k = a.pointer, _ = a.setPointer, C = a.clearPointer, D = a.multiselect, L = a.isOpen, H = S(() => d.value.filter((V) => !V[u.value])), F = S(() => h.value.filter((V) => !V[u.value])), U = S(() => l.value !== "single" && c.value), q = S(() => k.value && k.value.group), O = S(() => re(k.value)), x = S(() => {
|
|
5476
5476
|
const V = q.value ? k.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
re(k.value)
|
|
@@ -5482,13 +5482,13 @@ function o7(t, e, a) {
|
|
|
5482
5482
|
}), R = S(() => {
|
|
5483
5483
|
let V = F.value.map((X) => X.label).indexOf(q.value ? k.value[i.value] : re(k.value)[i.value]) + 1;
|
|
5484
5484
|
return F.value.length <= V && (V = 0), F.value[V];
|
|
5485
|
-
}), Z = S(() => [...F.value].slice(-1)[0]), ie = S(() => k.value.__VISIBLE__.filter((V) => !V[u.value])[0]),
|
|
5486
|
-
const V =
|
|
5485
|
+
}), Z = S(() => [...F.value].slice(-1)[0]), ie = S(() => k.value.__VISIBLE__.filter((V) => !V[u.value])[0]), E = S(() => {
|
|
5486
|
+
const V = O.value.__VISIBLE__.filter((X) => !X[u.value]);
|
|
5487
5487
|
return V[V.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1];
|
|
5488
5488
|
}), N = S(() => {
|
|
5489
5489
|
const V = re(k.value).__VISIBLE__.filter((X) => !X[u.value]);
|
|
5490
5490
|
return V[V.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1];
|
|
5491
|
-
}), M = S(() => [...
|
|
5491
|
+
}), M = S(() => [...x.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), m = S(() => [...Z.value.__VISIBLE__.filter((V) => !V[u.value])].slice(-1)[0]), I = (V) => k.value && (!V.group && k.value[n.value] === V[n.value] || V.group !== void 0 && k.value[i.value] === V[i.value]) ? !0 : void 0, J = () => {
|
|
5492
5492
|
_(H.value[0] || null);
|
|
5493
5493
|
}, ae = () => {
|
|
5494
5494
|
!k.value || k.value[u.value] === !0 || (q.value ? b(k.value) : w(k.value));
|
|
@@ -5504,24 +5504,24 @@ function o7(t, e, a) {
|
|
|
5504
5504
|
H.value.length <= V && (V = 0), _(H.value[V] || null);
|
|
5505
5505
|
}
|
|
5506
5506
|
De(() => {
|
|
5507
|
-
|
|
5507
|
+
Y();
|
|
5508
5508
|
});
|
|
5509
5509
|
}, ne = () => {
|
|
5510
5510
|
if (k.value === null) {
|
|
5511
5511
|
let V = H.value[H.value.length - 1];
|
|
5512
|
-
r.value && U.value && (V =
|
|
5512
|
+
r.value && U.value && (V = m.value, V === void 0 && (V = Z.value)), _(V || null);
|
|
5513
5513
|
} else if (r.value && U.value) {
|
|
5514
|
-
let V = q.value ? M.value :
|
|
5515
|
-
V === void 0 && (V = q.value ?
|
|
5514
|
+
let V = q.value ? M.value : E.value;
|
|
5515
|
+
V === void 0 && (V = q.value ? x.value : O.value, V.__CREATE__ && (V = M.value, V === void 0 && (V = x.value))), _(V || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
5518
|
let V = H.value.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1;
|
|
5519
5519
|
V < 0 && (V = H.value.length - 1), _(H.value[V] || null);
|
|
5520
5520
|
}
|
|
5521
5521
|
De(() => {
|
|
5522
|
-
|
|
5522
|
+
Y();
|
|
5523
5523
|
});
|
|
5524
|
-
}, re = (V) => F.value.find((X) => X.__VISIBLE__.map((he) => he[n.value]).indexOf(V[n.value]) !== -1),
|
|
5524
|
+
}, re = (V) => F.value.find((X) => X.__VISIBLE__.map((he) => he[n.value]).indexOf(V[n.value]) !== -1), Y = () => {
|
|
5525
5525
|
let V = D.value.querySelector("[data-pointed]");
|
|
5526
5526
|
if (!V)
|
|
5527
5527
|
return;
|
|
@@ -5909,25 +5909,25 @@ 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,
|
|
5912
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, y = b === void 0 ? 0 : b, k = V7(typeof y != "number" ? y : B7(y, en)), _ = d === sa ? v7 : sa, C = t.rects.popper, D = t.elements[w ? _ : d], L = P7(Mt(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), H = Wt(t.elements.reference), F = li({
|
|
5913
5913
|
reference: H,
|
|
5914
5914
|
element: C,
|
|
5915
5915
|
strategy: "absolute",
|
|
5916
5916
|
placement: s
|
|
5917
|
-
}), U = _n(Object.assign({}, C, F)), q = d === sa ? U : H,
|
|
5917
|
+
}), U = _n(Object.assign({}, C, F)), q = d === sa ? U : H, O = {
|
|
5918
5918
|
top: L.top - q.top + k.top,
|
|
5919
5919
|
bottom: q.bottom - L.bottom + k.bottom,
|
|
5920
5920
|
left: L.left - q.left + k.left,
|
|
5921
5921
|
right: q.right - L.right + k.right
|
|
5922
|
-
},
|
|
5923
|
-
if (d === sa &&
|
|
5924
|
-
var R =
|
|
5925
|
-
Object.keys(
|
|
5926
|
-
var ie = [vt, We].indexOf(Z) >= 0 ? 1 : -1,
|
|
5927
|
-
|
|
5922
|
+
}, x = t.modifiersData.offset;
|
|
5923
|
+
if (d === sa && x) {
|
|
5924
|
+
var R = x[s];
|
|
5925
|
+
Object.keys(O).forEach(function(Z) {
|
|
5926
|
+
var ie = [vt, We].indexOf(Z) >= 0 ? 1 : -1, E = [Re, We].indexOf(Z) >= 0 ? "y" : "x";
|
|
5927
|
+
O[Z] += R[E] * ie;
|
|
5928
5928
|
});
|
|
5929
5929
|
}
|
|
5930
|
-
return
|
|
5930
|
+
return O;
|
|
5931
5931
|
}
|
|
5932
5932
|
var bs = {
|
|
5933
5933
|
placement: "bottom",
|
|
@@ -5957,7 +5957,7 @@ function R7(t) {
|
|
|
5957
5957
|
},
|
|
5958
5958
|
attributes: {},
|
|
5959
5959
|
styles: {}
|
|
5960
|
-
}, f = [], d = !1,
|
|
5960
|
+
}, f = [], d = !1, h = {
|
|
5961
5961
|
state: u,
|
|
5962
5962
|
setOptions: function(k) {
|
|
5963
5963
|
var _ = typeof k == "function" ? k(u.options) : k;
|
|
@@ -5968,7 +5968,7 @@ function R7(t) {
|
|
|
5968
5968
|
var C = A7(O7([].concat(n, u.options.modifiers)));
|
|
5969
5969
|
return u.orderedModifiers = C.filter(function(D) {
|
|
5970
5970
|
return D.enabled;
|
|
5971
|
-
}), w(),
|
|
5971
|
+
}), w(), h.update();
|
|
5972
5972
|
},
|
|
5973
5973
|
// Sync update – it will always be executed, even if not necessary. This
|
|
5974
5974
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -5982,8 +5982,8 @@ function R7(t) {
|
|
|
5982
5982
|
u.rects = {
|
|
5983
5983
|
reference: c7(_, Ja(C), u.options.strategy === "fixed"),
|
|
5984
5984
|
popper: si(C)
|
|
5985
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
5986
|
-
return u.modifiersData[
|
|
5985
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(O) {
|
|
5986
|
+
return u.modifiersData[O.name] = Object.assign({}, O.data);
|
|
5987
5987
|
});
|
|
5988
5988
|
for (var D = 0; D < u.orderedModifiers.length; D++) {
|
|
5989
5989
|
if (u.reset === !0) {
|
|
@@ -5995,7 +5995,7 @@ function R7(t) {
|
|
|
5995
5995
|
state: u,
|
|
5996
5996
|
options: U,
|
|
5997
5997
|
name: q,
|
|
5998
|
-
instance:
|
|
5998
|
+
instance: h
|
|
5999
5999
|
}) || u);
|
|
6000
6000
|
}
|
|
6001
6001
|
}
|
|
@@ -6005,7 +6005,7 @@ function R7(t) {
|
|
|
6005
6005
|
// not necessary (debounced to run at most once-per-tick)
|
|
6006
6006
|
update: T7(function() {
|
|
6007
6007
|
return new Promise(function(y) {
|
|
6008
|
-
|
|
6008
|
+
h.forceUpdate(), y(u);
|
|
6009
6009
|
});
|
|
6010
6010
|
}),
|
|
6011
6011
|
destroy: function() {
|
|
@@ -6013,8 +6013,8 @@ function R7(t) {
|
|
|
6013
6013
|
}
|
|
6014
6014
|
};
|
|
6015
6015
|
if (!ws(r, l))
|
|
6016
|
-
return
|
|
6017
|
-
|
|
6016
|
+
return h;
|
|
6017
|
+
h.setOptions(c).then(function(y) {
|
|
6018
6018
|
!d && c.onFirstUpdate && c.onFirstUpdate(y);
|
|
6019
6019
|
});
|
|
6020
6020
|
function w() {
|
|
@@ -6024,7 +6024,7 @@ function R7(t) {
|
|
|
6024
6024
|
var L = D({
|
|
6025
6025
|
state: u,
|
|
6026
6026
|
name: k,
|
|
6027
|
-
instance:
|
|
6027
|
+
instance: h,
|
|
6028
6028
|
options: C
|
|
6029
6029
|
}), H = function() {
|
|
6030
6030
|
};
|
|
@@ -6037,7 +6037,7 @@ function R7(t) {
|
|
|
6037
6037
|
return y();
|
|
6038
6038
|
}), f = [];
|
|
6039
6039
|
}
|
|
6040
|
-
return
|
|
6040
|
+
return h;
|
|
6041
6041
|
};
|
|
6042
6042
|
}
|
|
6043
6043
|
var Ea = {
|
|
@@ -6091,14 +6091,14 @@ 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,
|
|
6095
|
-
x:
|
|
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, y = typeof u == "function" ? u({
|
|
6095
|
+
x: h,
|
|
6096
6096
|
y: b
|
|
6097
6097
|
}) : {
|
|
6098
|
-
x:
|
|
6098
|
+
x: h,
|
|
6099
6099
|
y: b
|
|
6100
6100
|
};
|
|
6101
|
-
|
|
6101
|
+
h = y.x, b = y.y;
|
|
6102
6102
|
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), C = Ge, D = Re, L = window;
|
|
6103
6103
|
if (c) {
|
|
6104
6104
|
var H = Ja(a), F = "clientHeight", U = "clientWidth";
|
|
@@ -6112,27 +6112,27 @@ function $s(t) {
|
|
|
6112
6112
|
}
|
|
6113
6113
|
if (s === Ge || (s === Re || s === We) && o === da) {
|
|
6114
6114
|
C = vt;
|
|
6115
|
-
var
|
|
6115
|
+
var O = f && H === L && L.visualViewport ? L.visualViewport.width : (
|
|
6116
6116
|
// $FlowFixMe[prop-missing]
|
|
6117
6117
|
H[U]
|
|
6118
6118
|
);
|
|
6119
|
-
|
|
6119
|
+
h -= O - n.width, h *= l ? 1 : -1;
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
6122
|
-
var
|
|
6122
|
+
var x = Object.assign({
|
|
6123
6123
|
position: r
|
|
6124
6124
|
}, c && Z7), R = u === !0 ? W7({
|
|
6125
|
-
x:
|
|
6125
|
+
x: h,
|
|
6126
6126
|
y: b
|
|
6127
6127
|
}, Se(a)) : {
|
|
6128
|
-
x:
|
|
6128
|
+
x: h,
|
|
6129
6129
|
y: b
|
|
6130
6130
|
};
|
|
6131
|
-
if (
|
|
6131
|
+
if (h = R.x, b = R.y, l) {
|
|
6132
6132
|
var Z;
|
|
6133
|
-
return Object.assign({},
|
|
6133
|
+
return Object.assign({}, x, (Z = {}, Z[D] = _ ? "0" : "", Z[C] = k ? "0" : "", Z.transform = (L.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", Z));
|
|
6134
6134
|
}
|
|
6135
|
-
return Object.assign({},
|
|
6135
|
+
return Object.assign({}, x, (e = {}, e[D] = _ ? b + "px" : "", e[C] = 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,33 +6219,33 @@ 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,
|
|
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, y = 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), C = !_, D = ri(k), L = Q7(D), H = e.modifiersData.popperOffsets, F = e.rects.reference, U = e.rects.popper, q = typeof b == "function" ? b(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
|
-
})) : b,
|
|
6229
|
+
})) : b, O = typeof q == "number" ? {
|
|
6230
6230
|
mainAxis: q,
|
|
6231
6231
|
altAxis: q
|
|
6232
6232
|
} : Object.assign({
|
|
6233
6233
|
mainAxis: 0,
|
|
6234
6234
|
altAxis: 0
|
|
6235
|
-
}, q),
|
|
6235
|
+
}, q), x = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, R = {
|
|
6236
6236
|
x: 0,
|
|
6237
6237
|
y: 0
|
|
6238
6238
|
};
|
|
6239
6239
|
if (H) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var Z, ie = D === "y" ? Re : Ge,
|
|
6241
|
+
var Z, ie = D === "y" ? Re : Ge, E = D === "y" ? We : vt, N = D === "y" ? "height" : "width", M = H[D], m = M + y[ie], I = M - y[E], J = h ? -U[N] / 2 : 0, ae = _ === qt ? F[N] : U[N], le = _ === qt ? -U[N] : -F[N], ne = e.elements.arrow, re = h && ne ? si(ne) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
|
-
},
|
|
6244
|
+
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), V = Y[ie], X = Y[E], he = Ia(0, F[N], re[N]), we = C ? F[N] / 2 - J - he - V - O.mainAxis : ae - he - V - O.mainAxis, Kt = C ? -F[N] / 2 + J + he + X + O.mainAxis : le + he + X + O.mainAxis, Gt = e.elements.arrow && Ja(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (Z = x == null ? void 0 : x[D]) != null ? Z : 0, tn = M + we - _a - nt, st = M + Kt - _a, ya = Ia(h ? Na(m, tn) : m, M, h ? kt(I, st) : I);
|
|
6245
6245
|
H[D] = ya, R[D] = ya - M;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
6248
|
-
var it, Ne = D === "x" ? Re : Ge, Ae = D === "x" ? We : vt, Be = H[L], qe = L === "y" ? "height" : "width", Xt = Be + y[Ne], ba = Be - y[Ae], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it =
|
|
6248
|
+
var it, Ne = D === "x" ? Re : Ge, Ae = D === "x" ? We : vt, Be = H[L], qe = L === "y" ? "height" : "width", Xt = Be + y[Ne], ba = Be - y[Ae], Te = [Re, Ge].indexOf(k) !== -1, Qt = (it = x == null ? void 0 : x[L]) != null ? it : 0, ot = Te ? Xt : Be - F[qe] - U[qe] - Qt + O.altAxis, _t = Te ? Be + F[qe] + U[qe] - Qt - O.altAxis : ba, wa = h && Te ? J7(ot, Be, _t) : Ia(h ? ot : Xt, Be, h ? _t : ba);
|
|
6249
6249
|
H[L] = wa, R[L] = wa - Be;
|
|
6250
6250
|
}
|
|
6251
6251
|
e.modifiersData[n] = R;
|
|
@@ -6285,7 +6285,7 @@ function sp(t, e) {
|
|
|
6285
6285
|
return c.indexOf(w) >= 0;
|
|
6286
6286
|
});
|
|
6287
6287
|
d.length === 0 && (d = f);
|
|
6288
|
-
var
|
|
6288
|
+
var h = d.reduce(function(w, b) {
|
|
6289
6289
|
return w[b] = Un(t, {
|
|
6290
6290
|
placement: b,
|
|
6291
6291
|
boundary: s,
|
|
@@ -6293,8 +6293,8 @@ function sp(t, e) {
|
|
|
6293
6293
|
padding: i
|
|
6294
6294
|
})[ct(b)], w;
|
|
6295
6295
|
}, {});
|
|
6296
|
-
return Object.keys(
|
|
6297
|
-
return
|
|
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,39 +6306,39 @@ 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,
|
|
6310
|
-
return re.concat(ct(
|
|
6311
|
-
placement:
|
|
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, y = e.options.placement, k = ct(y), _ = k === y, C = l || (_ || !w ? [La(y)] : ip(y)), D = [y].concat(C).reduce(function(re, Y) {
|
|
6310
|
+
return re.concat(ct(Y) === Fn ? sp(e, {
|
|
6311
|
+
placement: Y,
|
|
6312
6312
|
boundary: u,
|
|
6313
6313
|
rootBoundary: f,
|
|
6314
6314
|
padding: c,
|
|
6315
6315
|
flipVariations: w,
|
|
6316
6316
|
allowedAutoPlacements: b
|
|
6317
|
-
}) :
|
|
6318
|
-
}, []), L = e.rects.reference, H = e.rects.popper, F = /* @__PURE__ */ new Map(), U = !0, q = D[0],
|
|
6319
|
-
var
|
|
6320
|
-
placement:
|
|
6317
|
+
}) : Y);
|
|
6318
|
+
}, []), L = e.rects.reference, H = e.rects.popper, F = /* @__PURE__ */ new Map(), U = !0, q = D[0], O = 0; O < D.length; O++) {
|
|
6319
|
+
var x = D[O], R = ct(x), Z = zt(x) === qt, ie = [Re, We].indexOf(R) >= 0, E = ie ? "width" : "height", N = Un(e, {
|
|
6320
|
+
placement: x,
|
|
6321
6321
|
boundary: u,
|
|
6322
6322
|
rootBoundary: f,
|
|
6323
6323
|
altBoundary: d,
|
|
6324
6324
|
padding: c
|
|
6325
6325
|
}), M = ie ? Z ? vt : Ge : Z ? We : Re;
|
|
6326
|
-
L[
|
|
6327
|
-
var
|
|
6328
|
-
if (o && I.push(N[R] <= 0), r && I.push(N[M] <= 0, N[
|
|
6326
|
+
L[E] > H[E] && (M = La(M));
|
|
6327
|
+
var m = La(M), I = [];
|
|
6328
|
+
if (o && I.push(N[R] <= 0), r && I.push(N[M] <= 0, N[m] <= 0), I.every(function(re) {
|
|
6329
6329
|
return re;
|
|
6330
6330
|
})) {
|
|
6331
|
-
q =
|
|
6331
|
+
q = x, U = !1;
|
|
6332
6332
|
break;
|
|
6333
6333
|
}
|
|
6334
|
-
F.set(
|
|
6334
|
+
F.set(x, I);
|
|
6335
6335
|
}
|
|
6336
6336
|
if (U)
|
|
6337
|
-
for (var J = w ? 3 : 1, ae = function(
|
|
6337
|
+
for (var J = w ? 3 : 1, ae = function(Y) {
|
|
6338
6338
|
var V = D.find(function(X) {
|
|
6339
6339
|
var he = F.get(X);
|
|
6340
6340
|
if (he)
|
|
6341
|
-
return he.slice(0,
|
|
6341
|
+
return he.slice(0, Y).every(function(we) {
|
|
6342
6342
|
return we;
|
|
6343
6343
|
});
|
|
6344
6344
|
});
|
|
@@ -6363,8 +6363,8 @@ var rp = {
|
|
|
6363
6363
|
}
|
|
6364
6364
|
};
|
|
6365
6365
|
function lp(t, e, a) {
|
|
6366
|
-
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Me(t), r = At().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null),
|
|
6367
|
-
u.value || n.value || (u.value = !0, e.emit("open", r),
|
|
6366
|
+
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Me(t), r = At().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = S(() => s.value || o.value), w = S(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), b = () => {
|
|
6367
|
+
u.value || n.value || (u.value = !0, e.emit("open", r), h.value && De(() => {
|
|
6368
6368
|
k();
|
|
6369
6369
|
}));
|
|
6370
6370
|
}, y = () => {
|
|
@@ -6394,7 +6394,7 @@ function lp(t, e, a) {
|
|
|
6394
6394
|
return !1;
|
|
6395
6395
|
};
|
|
6396
6396
|
return xt(() => {
|
|
6397
|
-
|
|
6397
|
+
h.value && (f.value = X7(l.value, c.value, {
|
|
6398
6398
|
strategy: _(l.value) ? (
|
|
6399
6399
|
/* istanbul ignore next: UI feature */
|
|
6400
6400
|
"fixed"
|
|
@@ -6426,7 +6426,7 @@ function lp(t, e, a) {
|
|
|
6426
6426
|
]
|
|
6427
6427
|
}));
|
|
6428
6428
|
}), Ts(() => {
|
|
6429
|
-
!
|
|
6429
|
+
!h.value || !f.value || (f.value.destroy(), f.value = null);
|
|
6430
6430
|
}), {
|
|
6431
6431
|
popper: f,
|
|
6432
6432
|
isOpen: u,
|
|
@@ -6437,20 +6437,20 @@ function lp(t, e, a) {
|
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function up(t, e, a) {
|
|
6440
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Me(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags,
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Me(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), b = S(() => n.value || s.value ? -1 : 0), y = () => {
|
|
6441
6441
|
n.value && i.value.blur(), f.value.blur();
|
|
6442
6442
|
}, k = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
6444
6444
|
}, _ = (U = !0) => {
|
|
6445
|
-
s.value || (
|
|
6445
|
+
s.value || (h.value = !0, U && r());
|
|
6446
6446
|
}, C = () => {
|
|
6447
|
-
|
|
6448
|
-
|
|
6447
|
+
h.value = !1, setTimeout(() => {
|
|
6448
|
+
h.value || (l(), o.value && c());
|
|
6449
6449
|
}, 1);
|
|
6450
6450
|
};
|
|
6451
6451
|
return {
|
|
6452
6452
|
tabindex: b,
|
|
6453
|
-
isActive:
|
|
6453
|
+
isActive: h,
|
|
6454
6454
|
mouseClicked: w,
|
|
6455
6455
|
blur: y,
|
|
6456
6456
|
focus: k,
|
|
@@ -6486,8 +6486,8 @@ function cp(t, e, a) {
|
|
|
6486
6486
|
addOptionOn: u,
|
|
6487
6487
|
createTag: f,
|
|
6488
6488
|
createOption: d,
|
|
6489
|
-
reverse:
|
|
6490
|
-
} = Me(t), w = At().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, L = a.backwardPointer, H = a.forwardPointer, F = a.multiselect, U = a.wrapper, q = a.tags,
|
|
6489
|
+
reverse: h
|
|
6490
|
+
} = Me(t), w = At().proxy, b = a.iv, y = a.update, k = a.deselect, _ = a.search, C = a.setPointer, D = a.selectPointer, L = a.backwardPointer, H = a.forwardPointer, F = a.multiselect, U = a.wrapper, q = a.tags, O = a.isOpen, x = a.open, R = a.blur, Z = a.fo, ie = S(() => f.value || d.value || !1), E = S(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), N = () => {
|
|
6491
6491
|
n.value === "tags" && !r.value && ie.value && i.value && !c.value && C(Z.value[Z.value.map((I) => I[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
@@ -6508,7 +6508,7 @@ function cp(t, e, a) {
|
|
|
6508
6508
|
y([...b.value].filter((ne, re) => re !== ae)), ae === J.length - 1 && (J.length - 1 ? J[J.length - 2].focus() : i.value ? q.value.querySelector("input").focus() : U.value.focus());
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
|
-
if (
|
|
6511
|
+
if (E.value.indexOf("enter") === -1 && ie.value)
|
|
6512
6512
|
return;
|
|
6513
6513
|
N(), D();
|
|
6514
6514
|
break;
|
|
@@ -6519,14 +6519,14 @@ function cp(t, e, a) {
|
|
|
6519
6519
|
}
|
|
6520
6520
|
if (!ie.value)
|
|
6521
6521
|
return !1;
|
|
6522
|
-
if (
|
|
6522
|
+
if (E.value.indexOf("space") === -1 && ie.value)
|
|
6523
6523
|
return;
|
|
6524
6524
|
I.preventDefault(), N(), D();
|
|
6525
6525
|
break;
|
|
6526
6526
|
case "Tab":
|
|
6527
6527
|
case ";":
|
|
6528
6528
|
case ",":
|
|
6529
|
-
if (
|
|
6529
|
+
if (E.value.indexOf(I.key.toLowerCase()) === -1 || !ie.value)
|
|
6530
6530
|
return;
|
|
6531
6531
|
N(), D(), I.preventDefault();
|
|
6532
6532
|
break;
|
|
@@ -6536,12 +6536,12 @@ function cp(t, e, a) {
|
|
|
6536
6536
|
case "ArrowUp":
|
|
6537
6537
|
if (I.preventDefault(), !r.value)
|
|
6538
6538
|
return;
|
|
6539
|
-
|
|
6539
|
+
O.value || x(), L();
|
|
6540
6540
|
break;
|
|
6541
6541
|
case "ArrowDown":
|
|
6542
6542
|
if (I.preventDefault(), !r.value)
|
|
6543
6543
|
return;
|
|
6544
|
-
|
|
6544
|
+
O.value || x(), H();
|
|
6545
6545
|
break;
|
|
6546
6546
|
case "ArrowLeft":
|
|
6547
6547
|
if (i.value && q.value && q.value.querySelector("input").selectionStart || I.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
|
|
|
6567
6567
|
disabled: s,
|
|
6568
6568
|
showOptions: o,
|
|
6569
6569
|
breakTags: i
|
|
6570
|
-
} = Me(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups,
|
|
6570
|
+
} = Me(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, y = S(() => ({
|
|
6571
6571
|
container: "multiselect",
|
|
6572
6572
|
containerDisabled: "is-disabled",
|
|
6573
6573
|
containerOpen: "is-open",
|
|
@@ -6622,7 +6622,7 @@ function dp(t, e, a) {
|
|
|
6622
6622
|
assist: "multiselect-assistive-text",
|
|
6623
6623
|
spacer: "multiselect-spacer",
|
|
6624
6624
|
...n.value
|
|
6625
|
-
})), k = S(() => !!(r.value && o.value && (!
|
|
6625
|
+
})), k = S(() => !!(r.value && o.value && (!h.value || h.value && w.value.length)));
|
|
6626
6626
|
return {
|
|
6627
6627
|
classList: S(() => {
|
|
6628
6628
|
const C = y.value;
|
|
@@ -6675,7 +6675,7 @@ function pp(t, e, a) {
|
|
|
6675
6675
|
const {
|
|
6676
6676
|
limit: n,
|
|
6677
6677
|
infinite: s
|
|
6678
|
-
} = Me(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = S(() => i.value < l.value.length),
|
|
6678
|
+
} = Me(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = S(() => i.value < l.value.length), h = (b) => {
|
|
6679
6679
|
const { isIntersecting: y, target: k } = b[0];
|
|
6680
6680
|
if (y) {
|
|
6681
6681
|
const _ = k.offsetParent, C = _.scrollTop;
|
|
@@ -6693,7 +6693,7 @@ function pp(t, e, a) {
|
|
|
6693
6693
|
}, { flush: "post" }), de(c, () => {
|
|
6694
6694
|
s.value && w();
|
|
6695
6695
|
}, { immediate: !1, flush: "post" }), xt(() => {
|
|
6696
|
-
window && window.IntersectionObserver && (u.value = new IntersectionObserver(
|
|
6696
|
+
window && window.IntersectionObserver && (u.value = new IntersectionObserver(h));
|
|
6697
6697
|
}), {
|
|
6698
6698
|
hasMore: d,
|
|
6699
6699
|
infiniteLoader: f
|
|
@@ -6709,7 +6709,7 @@ function fp(t, e, a) {
|
|
|
6709
6709
|
groupLabel: l,
|
|
6710
6710
|
aria: c,
|
|
6711
6711
|
searchable: u
|
|
6712
|
-
} = Me(t), f = a.pointer, d = a.iv,
|
|
6712
|
+
} = Me(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, b = ee(null), y = S(() => {
|
|
6713
6713
|
let R = [];
|
|
6714
6714
|
return s && s.value && R.push(s.value), R.push("assist"), R.join("-");
|
|
6715
6715
|
}), k = S(() => {
|
|
@@ -6721,7 +6721,7 @@ function fp(t, e, a) {
|
|
|
6721
6721
|
return R.push(f.value.group ? "multiselect-group" : "multiselect-option"), R.push(f.value.group ? f.value.index : f.value[o.value]), R.join("-");
|
|
6722
6722
|
}), C = S(() => n.value), D = S(() => r.value !== "single"), L = S(() => {
|
|
6723
6723
|
let R = "";
|
|
6724
|
-
return r.value === "single" &&
|
|
6724
|
+
return r.value === "single" && h.value && (R += d.value[i.value]), r.value === "multiple" && h.value && (R += w.value), r.value === "tags" && h.value && (R += d.value.map((Z) => Z[i.value]).join(", ")), R;
|
|
6725
6725
|
}), H = S(() => {
|
|
6726
6726
|
let R = { ...c.value };
|
|
6727
6727
|
return u.value && (R["aria-labelledby"] = R["aria-labelledby"] ? `${y.value} ${R["aria-labelledby"]}` : y.value, L.value && R["aria-label"] && (R["aria-label"] = `${L.value}, ${R["aria-label"]}`)), R;
|
|
@@ -6734,10 +6734,10 @@ function fp(t, e, a) {
|
|
|
6734
6734
|
}, q = (R) => {
|
|
6735
6735
|
let Z = [];
|
|
6736
6736
|
return Z.push(R), Z.join(" ");
|
|
6737
|
-
},
|
|
6737
|
+
}, O = (R) => {
|
|
6738
6738
|
let Z = [];
|
|
6739
6739
|
return Z.push(R), Z.join(" ");
|
|
6740
|
-
},
|
|
6740
|
+
}, x = (R) => `${R} ❎`;
|
|
6741
6741
|
return xt(() => {
|
|
6742
6742
|
if (s && s.value && document && document.querySelector) {
|
|
6743
6743
|
let R = document.querySelector(`[for="${s.value}"]`);
|
|
@@ -6754,8 +6754,8 @@ function fp(t, e, a) {
|
|
|
6754
6754
|
ariaOptionId: F,
|
|
6755
6755
|
ariaOptionLabel: q,
|
|
6756
6756
|
ariaGroupId: U,
|
|
6757
|
-
ariaGroupLabel:
|
|
6758
|
-
ariaTagLabel:
|
|
6757
|
+
ariaGroupLabel: O,
|
|
6758
|
+
ariaTagLabel: x
|
|
6759
6759
|
};
|
|
6760
6760
|
}
|
|
6761
6761
|
function vp(t, e, a) {
|
|
@@ -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(), g("div", {
|
|
7172
7172
|
ref: "multiselect",
|
|
7173
|
-
class:
|
|
7173
|
+
class: K(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: K(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(), g("span", {
|
|
7234
|
-
class:
|
|
7234
|
+
class: K([
|
|
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: K(t.classList.tagWrapper)
|
|
7247
7247
|
},
|
|
7248
7248
|
G(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(), g("span", {
|
|
7253
7253
|
key: 0,
|
|
7254
|
-
class:
|
|
7254
|
+
class: K(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: K(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: K(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: K(t.classList.tagsSearchCopy)
|
|
7284
7284
|
},
|
|
7285
7285
|
G(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: K(t.classList.singleLabel)
|
|
7329
7329
|
},
|
|
7330
7330
|
[
|
|
7331
7331
|
v(
|
|
7332
7332
|
"span",
|
|
7333
7333
|
{
|
|
7334
|
-
class:
|
|
7334
|
+
class: K(t.classList.singleLabelText)
|
|
7335
7335
|
},
|
|
7336
7336
|
G(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: K(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: K(t.classList.placeholder),
|
|
7361
7361
|
"aria-hidden": "true"
|
|
7362
7362
|
},
|
|
7363
7363
|
G(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: K(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: K(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: K(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: K(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: K(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: K(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
|
ve,
|
|
7451
7451
|
{ key: 0 },
|
|
7452
7452
|
_e(t.fg, (i, r, l) => (p(), g("li", {
|
|
7453
|
-
class:
|
|
7453
|
+
class: K(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(), g("div", {
|
|
7461
7461
|
key: 0,
|
|
7462
|
-
class:
|
|
7462
|
+
class: K(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, Ap)),
|
|
7477
7477
|
v("ul", {
|
|
7478
|
-
class:
|
|
7478
|
+
class: K(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
|
ve,
|
|
7484
7484
|
null,
|
|
7485
7485
|
_e(i.__VISIBLE__, (c, u, f) => (p(), g("li", {
|
|
7486
|
-
class:
|
|
7486
|
+
class: K(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
|
ve,
|
|
7521
7521
|
{ key: 1 },
|
|
7522
7522
|
_e(t.fo, (i, r, l) => (p(), g("li", {
|
|
7523
|
-
class:
|
|
7523
|
+
class: K(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: K(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: K(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: K(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: K(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(), g("input", {
|
|
7593
7593
|
key: 0,
|
|
7594
|
-
class:
|
|
7594
|
+
class: K(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(), g("div", {
|
|
7627
7627
|
key: 2,
|
|
7628
|
-
class:
|
|
7628
|
+
class: K(t.classList.assist),
|
|
7629
7629
|
id: t.ariaAssist,
|
|
7630
7630
|
"aria-hidden": "true"
|
|
7631
7631
|
}, G(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: K(t.classList.spacer)
|
|
7637
7637
|
},
|
|
7638
7638
|
null,
|
|
7639
7639
|
2
|
|
@@ -7774,34 +7774,34 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7774
7774
|
};
|
|
7775
7775
|
return (f, d) => (p(), g("div", jp, [
|
|
7776
7776
|
v("ul", Fp, [
|
|
7777
|
-
(p(!0), g(ve, null, _e(f.tasks, (
|
|
7777
|
+
(p(!0), g(ve, null, _e(f.tasks, (h) => {
|
|
7778
7778
|
var w, b;
|
|
7779
7779
|
return p(), g("li", {
|
|
7780
|
-
key:
|
|
7780
|
+
key: h.id,
|
|
7781
7781
|
class: "ao-subtask"
|
|
7782
7782
|
}, [
|
|
7783
|
-
((w = f.isCheckable) == null ? void 0 : w.call(f,
|
|
7783
|
+
((w = f.isCheckable) == null ? void 0 : w.call(f, h)) ?? !1 ? (p(), P(ce, {
|
|
7784
7784
|
key: 0,
|
|
7785
7785
|
class: "ao-subtask__check",
|
|
7786
|
-
"icon-name":
|
|
7786
|
+
"icon-name": h.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
7787
7787
|
disabled: !f.isEditable,
|
|
7788
7788
|
variant: "ghost",
|
|
7789
7789
|
color: "primary",
|
|
7790
|
-
onClick: () => r(
|
|
7790
|
+
onClick: () => r(h.id, !h.isDone)
|
|
7791
7791
|
}, null, 8, ["icon-name", "disabled", "onClick"])) : T("", !0),
|
|
7792
7792
|
v("input", {
|
|
7793
|
-
id:
|
|
7794
|
-
value:
|
|
7793
|
+
id: h.id,
|
|
7794
|
+
value: h.name,
|
|
7795
7795
|
readonly: !f.isEditable,
|
|
7796
|
-
class:
|
|
7796
|
+
class: K(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": h.isDone }]),
|
|
7797
7797
|
type: "text",
|
|
7798
|
-
onChange: (y) => i(y,
|
|
7798
|
+
onChange: (y) => i(y, h.id),
|
|
7799
7799
|
onKeyup: dt(u, ["enter"])
|
|
7800
7800
|
}, null, 42, Up),
|
|
7801
7801
|
Fa(". "),
|
|
7802
7802
|
!f.isTemplate && f.users ? (p(), P($e, {
|
|
7803
7803
|
key: 1,
|
|
7804
|
-
value: (b =
|
|
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,
|
|
@@ -7811,7 +7811,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7811
7811
|
placeholder: f.$t("feed.filters.assignee.placeholder"),
|
|
7812
7812
|
disabled: !f.isEditable,
|
|
7813
7813
|
caret: f.isEditable,
|
|
7814
|
-
onChange: (y) => c(y,
|
|
7814
|
+
onChange: (y) => c(y, h.id)
|
|
7815
7815
|
}, {
|
|
7816
7816
|
tag: W(({ option: y, handleTagRemove: k }) => [
|
|
7817
7817
|
A(Je, {
|
|
@@ -7830,7 +7830,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7830
7830
|
size: "sm",
|
|
7831
7831
|
variant: "ghost",
|
|
7832
7832
|
color: "neutral",
|
|
7833
|
-
onClick: () => l(
|
|
7833
|
+
onClick: () => l(h.id)
|
|
7834
7834
|
}, null, 8, ["onClick"])) : T("", !0)
|
|
7835
7835
|
]);
|
|
7836
7836
|
}), 128))
|
|
@@ -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(), g("div", {
|
|
7897
|
-
class:
|
|
7897
|
+
class: K([
|
|
7898
7898
|
"ao-files__wrapper",
|
|
7899
7899
|
{
|
|
7900
7900
|
"ao-files__wrapper--drop-active": i.value
|
|
@@ -7987,7 +7987,7 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
7987
7987
|
return _ && a3(_, k);
|
|
7988
7988
|
}), u = S(() => o.value ? "textarea" : "p"), f = l(), d = r((b) => {
|
|
7989
7989
|
e("edit", b);
|
|
7990
|
-
}),
|
|
7990
|
+
}), h = () => {
|
|
7991
7991
|
e("remove");
|
|
7992
7992
|
}, w = ee(2);
|
|
7993
7993
|
return Di(() => {
|
|
@@ -8051,7 +8051,7 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8051
8051
|
size: "sm",
|
|
8052
8052
|
variant: "ghost",
|
|
8053
8053
|
color: "neutral",
|
|
8054
|
-
onClick:
|
|
8054
|
+
onClick: h
|
|
8055
8055
|
}, null, 8, ["label"]),
|
|
8056
8056
|
A(ce, {
|
|
8057
8057
|
label: b.$t("activity.comment.edit"),
|
|
@@ -8080,8 +8080,8 @@ const cf = { class: "ao-comments__header" }, df = ["onSubmit"], pf = ["placehold
|
|
|
8080
8080
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
8081
8081
|
setup(t, { emit: e }) {
|
|
8082
8082
|
const a = t, n = S(() => (a.comments || []).toSorted(
|
|
8083
|
-
(d,
|
|
8084
|
-
)), s = (f) => a.users.find((
|
|
8083
|
+
(d, h) => z2(la(d.createdAt), la(h.createdAt))
|
|
8084
|
+
)), s = (f) => a.users.find((h) => h.id === f), o = ee();
|
|
8085
8085
|
De(() => {
|
|
8086
8086
|
o.value && (o.value.scrollTop = o.value.scrollHeight);
|
|
8087
8087
|
});
|
|
@@ -8104,7 +8104,7 @@ const cf = { class: "ao-comments__header" }, df = ["onSubmit"], pf = ["placehold
|
|
|
8104
8104
|
e("removeComment", { id: f });
|
|
8105
8105
|
};
|
|
8106
8106
|
return (f, d) => {
|
|
8107
|
-
var
|
|
8107
|
+
var h;
|
|
8108
8108
|
return p(), g("div", {
|
|
8109
8109
|
ref_key: "commentsContainer",
|
|
8110
8110
|
ref: o,
|
|
@@ -8140,7 +8140,7 @@ const cf = { class: "ao-comments__header" }, df = ["onSubmit"], pf = ["placehold
|
|
|
8140
8140
|
])
|
|
8141
8141
|
], 40, df)
|
|
8142
8142
|
]),
|
|
8143
|
-
((
|
|
8143
|
+
((h = n.value) == null ? void 0 : h.length) > 0 ? (p(), g("ul", vf, [
|
|
8144
8144
|
(p(!0), g(ve, null, _e(n.value, (w) => (p(), P(uf, {
|
|
8145
8145
|
key: w.id,
|
|
8146
8146
|
user: s(w.author.id),
|
|
@@ -8222,185 +8222,185 @@ const yn = /* @__PURE__ */ z({
|
|
|
8222
8222
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
8223
8223
|
setup(t, { emit: e }) {
|
|
8224
8224
|
const a = t, n = S(() => {
|
|
8225
|
-
var
|
|
8226
|
-
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((
|
|
8227
|
-
}), s = (
|
|
8225
|
+
var m;
|
|
8226
|
+
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((m = a.activity.assignee) == null ? void 0 : m.id) : !1;
|
|
8227
|
+
}), s = (m) => {
|
|
8228
8228
|
e("update:activity", {
|
|
8229
8229
|
id: a.activity.id,
|
|
8230
|
-
name:
|
|
8230
|
+
name: m
|
|
8231
8231
|
});
|
|
8232
8232
|
}, o = S({
|
|
8233
8233
|
get() {
|
|
8234
8234
|
return a.activity.description ?? "";
|
|
8235
8235
|
},
|
|
8236
|
-
set(
|
|
8237
|
-
e("update:activity", { id: a.activity.id, description:
|
|
8236
|
+
set(m) {
|
|
8237
|
+
e("update:activity", { id: a.activity.id, description: m });
|
|
8238
8238
|
}
|
|
8239
8239
|
}), i = S({
|
|
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(m) {
|
|
8244
|
+
e("update:activity", { id: a.activity.id, estimation: m });
|
|
8245
8245
|
}
|
|
8246
8246
|
}), r = S({
|
|
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(m) {
|
|
8251
|
+
e("update:activity", { id: a.activity.id, important: m });
|
|
8252
8252
|
}
|
|
8253
8253
|
}), l = S({
|
|
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(m) {
|
|
8258
|
+
e("update:activity", { id: a.activity.id, private: m });
|
|
8259
8259
|
}
|
|
8260
8260
|
}), c = S({
|
|
8261
8261
|
get() {
|
|
8262
8262
|
return a.activity.deadline;
|
|
8263
8263
|
},
|
|
8264
|
-
set(
|
|
8265
|
-
e("update:activity", { id: a.activity.id, deadline:
|
|
8264
|
+
set(m) {
|
|
8265
|
+
e("update:activity", { id: a.activity.id, deadline: m });
|
|
8266
8266
|
}
|
|
8267
8267
|
}), u = S(() => {
|
|
8268
|
-
var
|
|
8269
|
-
return (
|
|
8268
|
+
var m;
|
|
8269
|
+
return (m = a.activityTypes) == null ? void 0 : m.map((I) => ({
|
|
8270
8270
|
label: I.name,
|
|
8271
8271
|
value: I.id
|
|
8272
8272
|
}));
|
|
8273
8273
|
}), f = S({
|
|
8274
8274
|
get() {
|
|
8275
|
-
var
|
|
8276
|
-
return (
|
|
8275
|
+
var m;
|
|
8276
|
+
return (m = a.activity.type) == null ? void 0 : m.id;
|
|
8277
8277
|
},
|
|
8278
|
-
set(
|
|
8279
|
-
e("update:activity", { id: a.activity.id, typeId:
|
|
8278
|
+
set(m) {
|
|
8279
|
+
e("update:activity", { id: a.activity.id, typeId: m });
|
|
8280
8280
|
}
|
|
8281
|
-
}), d = S(() => a.templateActivities.filter((
|
|
8282
|
-
label:
|
|
8283
|
-
value:
|
|
8284
|
-
}))),
|
|
8281
|
+
}), d = S(() => a.templateActivities.filter((m) => m.id !== a.activity.id).map((m) => ({
|
|
8282
|
+
label: m.name,
|
|
8283
|
+
value: m.id
|
|
8284
|
+
}))), h = S({
|
|
8285
8285
|
get() {
|
|
8286
|
-
var
|
|
8287
|
-
return (
|
|
8286
|
+
var m;
|
|
8287
|
+
return (m = a.activity.dependingOn) == null ? void 0 : m.map((I) => I.id);
|
|
8288
8288
|
},
|
|
8289
|
-
set(
|
|
8290
|
-
|
|
8289
|
+
set(m) {
|
|
8290
|
+
m && e("update:activity", {
|
|
8291
8291
|
id: a.activity.id,
|
|
8292
|
-
dependingOn:
|
|
8292
|
+
dependingOn: m
|
|
8293
8293
|
});
|
|
8294
8294
|
}
|
|
8295
|
-
}), w = S(() => d.value.map((
|
|
8295
|
+
}), w = S(() => d.value.map((m) => {
|
|
8296
8296
|
var I;
|
|
8297
8297
|
return {
|
|
8298
|
-
...
|
|
8299
|
-
disabled: (I = a.activity.blocking) == null ? void 0 : I.some((J) => J.id ===
|
|
8298
|
+
...m,
|
|
8299
|
+
disabled: (I = a.activity.blocking) == null ? void 0 : I.some((J) => J.id === m.value)
|
|
8300
8300
|
};
|
|
8301
8301
|
})), b = S({
|
|
8302
8302
|
get() {
|
|
8303
|
-
var
|
|
8304
|
-
return (
|
|
8303
|
+
var m;
|
|
8304
|
+
return (m = a.activity.blocking) == null ? void 0 : m.map((I) => I.id);
|
|
8305
8305
|
},
|
|
8306
|
-
set(
|
|
8307
|
-
|
|
8306
|
+
set(m) {
|
|
8307
|
+
m && e("update:activity", {
|
|
8308
8308
|
id: a.activity.id,
|
|
8309
|
-
blocking:
|
|
8309
|
+
blocking: m
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
|
-
}), y = S(() => d.value.map((
|
|
8312
|
+
}), y = S(() => d.value.map((m) => {
|
|
8313
8313
|
var I;
|
|
8314
8314
|
return {
|
|
8315
|
-
...
|
|
8315
|
+
...m,
|
|
8316
8316
|
disabled: (I = a.activity.dependingOn) == null ? void 0 : I.some(
|
|
8317
|
-
(J) => J.id ===
|
|
8317
|
+
(J) => J.id === m.value
|
|
8318
8318
|
)
|
|
8319
8319
|
};
|
|
8320
|
-
})), k = (
|
|
8321
|
-
e("addSubtask",
|
|
8322
|
-
}, _ = (
|
|
8323
|
-
e("updateSubtask",
|
|
8324
|
-
}, C = (
|
|
8325
|
-
e("deleteSubtask",
|
|
8320
|
+
})), k = (m) => {
|
|
8321
|
+
e("addSubtask", m);
|
|
8322
|
+
}, _ = (m) => {
|
|
8323
|
+
e("updateSubtask", m);
|
|
8324
|
+
}, C = (m) => {
|
|
8325
|
+
e("deleteSubtask", m);
|
|
8326
8326
|
}, D = S(() => {
|
|
8327
|
-
var
|
|
8328
|
-
return ((
|
|
8327
|
+
var m;
|
|
8328
|
+
return ((m = a.users) == null ? void 0 : m.map((I) => ({
|
|
8329
8329
|
label: `${I.firstName} ${I.lastName}`,
|
|
8330
8330
|
value: I.id,
|
|
8331
8331
|
avatar: I.avatarUrl
|
|
8332
8332
|
}))) || [];
|
|
8333
8333
|
}), L = S({
|
|
8334
8334
|
get() {
|
|
8335
|
-
var
|
|
8336
|
-
return (
|
|
8335
|
+
var m, I;
|
|
8336
|
+
return (m = a.activity.assignee) != null && m.id ? [(I = a.activity.assignee) == null ? void 0 : I.id] : [];
|
|
8337
8337
|
},
|
|
8338
|
-
set(
|
|
8338
|
+
set(m) {
|
|
8339
8339
|
e("update:activity", {
|
|
8340
8340
|
id: a.activity.id,
|
|
8341
|
-
assigneeId:
|
|
8341
|
+
assigneeId: m[0] ?? null
|
|
8342
8342
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
8343
8343
|
});
|
|
8344
8344
|
}
|
|
8345
|
-
}), H = (
|
|
8345
|
+
}), H = (m) => {
|
|
8346
8346
|
e("addFiles", {
|
|
8347
8347
|
activityId: a.activity.id,
|
|
8348
|
-
files:
|
|
8348
|
+
files: m
|
|
8349
8349
|
});
|
|
8350
|
-
}, F = (
|
|
8350
|
+
}, F = (m) => {
|
|
8351
8351
|
e("removeFile", {
|
|
8352
8352
|
activityId: a.activity.id,
|
|
8353
|
-
file:
|
|
8353
|
+
file: m
|
|
8354
8354
|
});
|
|
8355
|
-
}, U = S(() => a.projects.map((
|
|
8356
|
-
value:
|
|
8357
|
-
label:
|
|
8355
|
+
}, U = S(() => a.projects.map((m) => ({
|
|
8356
|
+
value: m.id,
|
|
8357
|
+
label: m.name
|
|
8358
8358
|
}))), q = S(() => {
|
|
8359
8359
|
var I, J, ae;
|
|
8360
|
-
const
|
|
8360
|
+
const m = (ae = (J = (I = a.activity) == null ? void 0 : I.project) == null ? void 0 : J.phases) == null ? void 0 : ae.reduce(
|
|
8361
8361
|
(le, ne) => [...le, ...ne.milestones],
|
|
8362
8362
|
[]
|
|
8363
8363
|
);
|
|
8364
|
-
return
|
|
8364
|
+
return m == null ? void 0 : m.map((le) => ({
|
|
8365
8365
|
value: le.id,
|
|
8366
8366
|
label: le.name
|
|
8367
8367
|
}));
|
|
8368
|
-
}),
|
|
8368
|
+
}), O = (m) => {
|
|
8369
8369
|
a.activity && e("update:activity", {
|
|
8370
8370
|
id: a.activity.id,
|
|
8371
|
-
projectId:
|
|
8371
|
+
projectId: m
|
|
8372
8372
|
});
|
|
8373
|
-
},
|
|
8373
|
+
}, x = (m) => {
|
|
8374
8374
|
a.activity && e("update:activity", {
|
|
8375
8375
|
id: a.activity.id,
|
|
8376
|
-
milestoneId:
|
|
8376
|
+
milestoneId: m
|
|
8377
8377
|
});
|
|
8378
8378
|
}, R = S(() => {
|
|
8379
|
-
var
|
|
8380
|
-
return (
|
|
8379
|
+
var m;
|
|
8380
|
+
return (m = a.statuses) == null ? void 0 : m.map((I) => ({
|
|
8381
8381
|
value: I.id,
|
|
8382
8382
|
label: I.name
|
|
8383
8383
|
}));
|
|
8384
|
-
}), Z = (
|
|
8384
|
+
}), Z = (m) => {
|
|
8385
8385
|
e("update:activity", {
|
|
8386
8386
|
id: a.activity.id,
|
|
8387
|
-
statusId:
|
|
8387
|
+
statusId: m
|
|
8388
8388
|
});
|
|
8389
|
-
}, ie = (
|
|
8389
|
+
}, ie = (m) => {
|
|
8390
8390
|
e("addComment", {
|
|
8391
|
-
...
|
|
8391
|
+
...m,
|
|
8392
8392
|
activityId: a.activity.id
|
|
8393
8393
|
});
|
|
8394
|
-
},
|
|
8395
|
-
e("updateComment",
|
|
8396
|
-
}, N = (
|
|
8397
|
-
e("removeComment",
|
|
8394
|
+
}, E = (m) => {
|
|
8395
|
+
e("updateComment", m);
|
|
8396
|
+
}, N = (m) => {
|
|
8397
|
+
e("removeComment", m);
|
|
8398
8398
|
}, M = S(() => {
|
|
8399
|
-
var
|
|
8400
|
-
return ((
|
|
8399
|
+
var m, I;
|
|
8400
|
+
return ((m = a.activity.createdBy) == null ? void 0 : m.firstName) && ((I = a.activity.createdBy) == null ? void 0 : I.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8401
8401
|
});
|
|
8402
|
-
return (
|
|
8403
|
-
onClose: I[10] || (I[10] = (J) =>
|
|
8402
|
+
return (m, I) => (p(), P(In, {
|
|
8403
|
+
onClose: I[10] || (I[10] = (J) => m.$emit("close"))
|
|
8404
8404
|
}, {
|
|
8405
8405
|
default: W(() => {
|
|
8406
8406
|
var J, ae, le;
|
|
@@ -8408,51 +8408,51 @@ const yn = /* @__PURE__ */ z({
|
|
|
8408
8408
|
v("div", mf, [
|
|
8409
8409
|
v("div", Cf, [
|
|
8410
8410
|
v("div", gf, [
|
|
8411
|
-
|
|
8411
|
+
m.breadcrumbs ? (p(), g("div", _f, G(m.breadcrumbs), 1)) : T("", !0),
|
|
8412
8412
|
A(ye, {
|
|
8413
|
-
title:
|
|
8413
|
+
title: m.activity.name || "",
|
|
8414
8414
|
level: 4,
|
|
8415
8415
|
"is-editable": n.value,
|
|
8416
8416
|
"onUpdate:title": s
|
|
8417
8417
|
}, null, 8, ["title", "is-editable"]),
|
|
8418
8418
|
v("div", yf, [
|
|
8419
8419
|
U.value ? (p(), g("label", bf, [
|
|
8420
|
-
v("span", wf, G(
|
|
8420
|
+
v("span", wf, G(m.$t("activity.project.label")), 1),
|
|
8421
8421
|
A($e, {
|
|
8422
8422
|
options: U.value,
|
|
8423
|
-
value: (J =
|
|
8423
|
+
value: (J = m.activity.project) == null ? void 0 : J.id,
|
|
8424
8424
|
searchable: !0,
|
|
8425
8425
|
disabled: !n.value,
|
|
8426
8426
|
caret: n.value,
|
|
8427
|
-
onChange:
|
|
8427
|
+
onChange: O
|
|
8428
8428
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8429
8429
|
])) : T("", !0),
|
|
8430
8430
|
q.value ? (p(), g("label", $f, [
|
|
8431
|
-
v("span", kf, G(
|
|
8431
|
+
v("span", kf, G(m.$t("activity.milestone.label")), 1),
|
|
8432
8432
|
A($e, {
|
|
8433
8433
|
options: q.value,
|
|
8434
|
-
value: (ae =
|
|
8434
|
+
value: (ae = m.activity.milestone) == null ? void 0 : ae.id,
|
|
8435
8435
|
searchable: !0,
|
|
8436
8436
|
disabled: !n.value,
|
|
8437
8437
|
caret: n.value,
|
|
8438
|
-
onChange:
|
|
8438
|
+
onChange: x
|
|
8439
8439
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8440
8440
|
])) : T("", !0)
|
|
8441
8441
|
]),
|
|
8442
|
-
te(
|
|
8442
|
+
te(m.$slots, "header")
|
|
8443
8443
|
]),
|
|
8444
8444
|
v("div", Sf, [
|
|
8445
8445
|
v("fieldset", Mf, [
|
|
8446
8446
|
v("div", Af, [
|
|
8447
8447
|
A(af, {
|
|
8448
|
-
attachments:
|
|
8449
|
-
"is-editable":
|
|
8448
|
+
attachments: m.activity.attachments,
|
|
8449
|
+
"is-editable": m.attachmentEnabled && n.value && m.isTemplate !== !0 && !!m.userId,
|
|
8450
8450
|
onAdd: H,
|
|
8451
8451
|
onRemove: F
|
|
8452
8452
|
}, {
|
|
8453
8453
|
default: W(() => [
|
|
8454
8454
|
v("label", Tf, [
|
|
8455
|
-
v("span", Of, G(
|
|
8455
|
+
v("span", Of, G(m.$t("activity.description.label")), 1),
|
|
8456
8456
|
Ke(v("textarea", {
|
|
8457
8457
|
"onUpdate:modelValue": I[0] || (I[0] = (ne) => o.value = ne),
|
|
8458
8458
|
readonly: !n.value,
|
|
@@ -8476,7 +8476,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8476
8476
|
]),
|
|
8477
8477
|
v("div", If, [
|
|
8478
8478
|
v("label", Lf, [
|
|
8479
|
-
v("span", Hf, G(
|
|
8479
|
+
v("span", Hf, G(m.$t("activity.estimation.label")), 1),
|
|
8480
8480
|
Ke(v("input", {
|
|
8481
8481
|
"onUpdate:modelValue": I[1] || (I[1] = (ne) => i.value = ne),
|
|
8482
8482
|
readonly: !n.value,
|
|
@@ -8502,38 +8502,38 @@ const yn = /* @__PURE__ */ z({
|
|
|
8502
8502
|
A(pe, { name: "SelectCheckBox" }),
|
|
8503
8503
|
A(ye, {
|
|
8504
8504
|
level: 4,
|
|
8505
|
-
title:
|
|
8505
|
+
title: m.$t("activity.tasks.title")
|
|
8506
8506
|
}, null, 8, ["title"])
|
|
8507
8507
|
]),
|
|
8508
8508
|
v("div", Bf, [
|
|
8509
8509
|
A(Wp, {
|
|
8510
8510
|
class: "ao-activity-details__tasks ao-field__row",
|
|
8511
|
-
tasks:
|
|
8512
|
-
"activity-id":
|
|
8513
|
-
users:
|
|
8514
|
-
"is-checkable":
|
|
8511
|
+
tasks: m.activity.tasks || [],
|
|
8512
|
+
"activity-id": m.activity.id,
|
|
8513
|
+
users: m.users,
|
|
8514
|
+
"is-checkable": m.isTaskCheckable,
|
|
8515
8515
|
"is-editable": n.value,
|
|
8516
|
-
"is-template":
|
|
8516
|
+
"is-template": m.isTemplate,
|
|
8517
8517
|
onAdd: k,
|
|
8518
8518
|
onUpdate: _,
|
|
8519
8519
|
onDelete: C
|
|
8520
8520
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8521
8521
|
])
|
|
8522
8522
|
]),
|
|
8523
|
-
|
|
8523
|
+
m.isTemplate !== !0 && m.userId ? (p(), g("div", Rf, [
|
|
8524
8524
|
v("div", Nf, [
|
|
8525
8525
|
A(pe, { name: "ChatOutline" }),
|
|
8526
8526
|
A(ye, {
|
|
8527
8527
|
level: 4,
|
|
8528
|
-
title:
|
|
8528
|
+
title: m.$t("activity.comments.title")
|
|
8529
8529
|
}, null, 8, ["title"])
|
|
8530
8530
|
]),
|
|
8531
8531
|
A(hf, {
|
|
8532
|
-
comments:
|
|
8533
|
-
users:
|
|
8534
|
-
"user-id":
|
|
8532
|
+
comments: m.activity.comments,
|
|
8533
|
+
users: m.users,
|
|
8534
|
+
"user-id": m.userId,
|
|
8535
8535
|
onCreateComment: ie,
|
|
8536
|
-
onUpdateComment:
|
|
8536
|
+
onUpdateComment: E,
|
|
8537
8537
|
onRemoveComment: N
|
|
8538
8538
|
}, null, 8, ["comments", "users", "user-id"])
|
|
8539
8539
|
])) : T("", !0)
|
|
@@ -8543,16 +8543,16 @@ const yn = /* @__PURE__ */ z({
|
|
|
8543
8543
|
v("div", Ff, [
|
|
8544
8544
|
A(pe, {
|
|
8545
8545
|
name: "CloseRounded",
|
|
8546
|
-
onClick: I[2] || (I[2] = (ne) =>
|
|
8546
|
+
onClick: I[2] || (I[2] = (ne) => m.$emit("close"))
|
|
8547
8547
|
})
|
|
8548
8548
|
]),
|
|
8549
8549
|
R.value ? (p(), g("div", Uf, [
|
|
8550
8550
|
v("label", Zf, [
|
|
8551
|
-
v("span", Wf, G(
|
|
8551
|
+
v("span", Wf, G(m.$t("activity.status.label")), 1),
|
|
8552
8552
|
A($e, {
|
|
8553
8553
|
class: "ao-activity-details__multiselect",
|
|
8554
8554
|
options: R.value,
|
|
8555
|
-
value: (le =
|
|
8555
|
+
value: (le = m.activity.status) == null ? void 0 : le.id,
|
|
8556
8556
|
"can-clear": !1,
|
|
8557
8557
|
"can-deselect": !1,
|
|
8558
8558
|
disabled: !n.value,
|
|
@@ -8563,7 +8563,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8563
8563
|
])) : T("", !0),
|
|
8564
8564
|
v("div", qf, [
|
|
8565
8565
|
v("div", zf, [
|
|
8566
|
-
v("span", xf, G(
|
|
8566
|
+
v("span", xf, G(m.$t("activity.assignee.label")), 1),
|
|
8567
8567
|
A($e, {
|
|
8568
8568
|
modelValue: L.value,
|
|
8569
8569
|
"onUpdate:modelValue": I[3] || (I[3] = (ne) => L.value = ne),
|
|
@@ -8572,7 +8572,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8572
8572
|
"close-on-select": !0,
|
|
8573
8573
|
searchable: !0,
|
|
8574
8574
|
max: 1,
|
|
8575
|
-
placeholder:
|
|
8575
|
+
placeholder: m.$t("activity.filters.assignee.placeholder"),
|
|
8576
8576
|
mode: "tags",
|
|
8577
8577
|
disabled: !n.value,
|
|
8578
8578
|
caret: n.value
|
|
@@ -8585,7 +8585,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8585
8585
|
"user-name": ne.label,
|
|
8586
8586
|
"avatar-url": ne.avatar,
|
|
8587
8587
|
"is-closable": !0,
|
|
8588
|
-
onClose: (
|
|
8588
|
+
onClose: (Y) => re(ne, Y)
|
|
8589
8589
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
8590
8590
|
]),
|
|
8591
8591
|
_: 1
|
|
@@ -8593,9 +8593,9 @@ const yn = /* @__PURE__ */ z({
|
|
|
8593
8593
|
])
|
|
8594
8594
|
]),
|
|
8595
8595
|
v("div", Yf, [
|
|
8596
|
-
|
|
8596
|
+
m.isTemplate !== !0 && m.userId ? (p(), g("div", Kf, [
|
|
8597
8597
|
v("label", Gf, [
|
|
8598
|
-
v("span", Xf, G(
|
|
8598
|
+
v("span", Xf, G(m.$t("activity.deadline.label")), 1),
|
|
8599
8599
|
Ke(v("input", {
|
|
8600
8600
|
"onUpdate:modelValue": I[4] || (I[4] = (ne) => c.value = ne),
|
|
8601
8601
|
readonly: !n.value,
|
|
@@ -8622,20 +8622,20 @@ const yn = /* @__PURE__ */ z({
|
|
|
8622
8622
|
mode: "single",
|
|
8623
8623
|
searchable: !0,
|
|
8624
8624
|
options: u.value,
|
|
8625
|
-
placeholder:
|
|
8625
|
+
placeholder: m.$t("activity.filters.type.placeholder"),
|
|
8626
8626
|
disabled: !n.value,
|
|
8627
8627
|
caret: n.value
|
|
8628
8628
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
8629
8629
|
])
|
|
8630
8630
|
])) : T("", !0),
|
|
8631
|
-
te(
|
|
8631
|
+
te(m.$slots, "default", { activity: m.activity })
|
|
8632
8632
|
]),
|
|
8633
8633
|
v("div", a9, [
|
|
8634
8634
|
A(yn, {
|
|
8635
8635
|
modelValue: r.value,
|
|
8636
8636
|
"onUpdate:modelValue": I[6] || (I[6] = (ne) => r.value = ne),
|
|
8637
8637
|
modelModifiers: { lazy: !0 },
|
|
8638
|
-
label:
|
|
8638
|
+
label: m.$t("activity.important.label"),
|
|
8639
8639
|
disabled: !n.value,
|
|
8640
8640
|
variant: "ghost",
|
|
8641
8641
|
"icon-name": "FlagRounded",
|
|
@@ -8645,12 +8645,12 @@ const yn = /* @__PURE__ */ z({
|
|
|
8645
8645
|
size: "sm"
|
|
8646
8646
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
8647
8647
|
]),
|
|
8648
|
-
|
|
8648
|
+
m.isTemplate !== !0 && m.activity.createdBy.id === m.userId ? (p(), g("div", n9, [
|
|
8649
8649
|
A(yn, {
|
|
8650
8650
|
modelValue: l.value,
|
|
8651
8651
|
"onUpdate:modelValue": I[7] || (I[7] = (ne) => l.value = ne),
|
|
8652
8652
|
modelModifiers: { lazy: !0 },
|
|
8653
|
-
label:
|
|
8653
|
+
label: m.$t("activity.private.label"),
|
|
8654
8654
|
disabled: !n.value,
|
|
8655
8655
|
variant: "ghost",
|
|
8656
8656
|
"icon-name": "Lock",
|
|
@@ -8664,16 +8664,16 @@ const yn = /* @__PURE__ */ z({
|
|
|
8664
8664
|
A(pe, { name: "FlowsheetOutlineRounded" }),
|
|
8665
8665
|
A(ye, {
|
|
8666
8666
|
level: 4,
|
|
8667
|
-
title:
|
|
8667
|
+
title: m.$t("activity.dependencies.title")
|
|
8668
8668
|
}, null, 8, ["title"])
|
|
8669
8669
|
]),
|
|
8670
8670
|
v("div", o9, [
|
|
8671
8671
|
v("div", r9, [
|
|
8672
8672
|
v("label", l9, [
|
|
8673
|
-
v("span", u9, G(
|
|
8673
|
+
v("span", u9, G(m.$t("activity.dependingOn.label")), 1),
|
|
8674
8674
|
A($e, {
|
|
8675
|
-
modelValue:
|
|
8676
|
-
"onUpdate:modelValue": I[8] || (I[8] = (ne) =>
|
|
8675
|
+
modelValue: h.value,
|
|
8676
|
+
"onUpdate:modelValue": I[8] || (I[8] = (ne) => h.value = ne),
|
|
8677
8677
|
class: "ao-activity-details__multiselect",
|
|
8678
8678
|
mode: "tags",
|
|
8679
8679
|
"close-on-select": !1,
|
|
@@ -8686,7 +8686,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8686
8686
|
]),
|
|
8687
8687
|
v("div", c9, [
|
|
8688
8688
|
v("label", d9, [
|
|
8689
|
-
v("span", p9, G(
|
|
8689
|
+
v("span", p9, G(m.$t("activity.blocking.label")), 1),
|
|
8690
8690
|
A($e, {
|
|
8691
8691
|
modelValue: b.value,
|
|
8692
8692
|
"onUpdate:modelValue": I[9] || (I[9] = (ne) => b.value = ne),
|
|
@@ -8702,7 +8702,7 @@ const yn = /* @__PURE__ */ z({
|
|
|
8702
8702
|
])
|
|
8703
8703
|
])
|
|
8704
8704
|
]),
|
|
8705
|
-
|
|
8705
|
+
m.isTemplate !== !0 && M.value ? (p(), g("div", f9, [
|
|
8706
8706
|
v("div", v9, [
|
|
8707
8707
|
A(Je, {
|
|
8708
8708
|
"user-name": M.value,
|
|
@@ -8778,7 +8778,7 @@ const h9 = /* @__PURE__ */ z({
|
|
|
8778
8778
|
set(k) {
|
|
8779
8779
|
e("update:rule", { ...a.rule, trigger: k });
|
|
8780
8780
|
}
|
|
8781
|
-
}),
|
|
8781
|
+
}), h = S(() => Object.values(N2)), w = S({
|
|
8782
8782
|
get() {
|
|
8783
8783
|
return a.rule.duration;
|
|
8784
8784
|
},
|
|
@@ -8808,7 +8808,7 @@ const h9 = /* @__PURE__ */ z({
|
|
|
8808
8808
|
A(Q(lt), {
|
|
8809
8809
|
modelValue: d.value,
|
|
8810
8810
|
"onUpdate:modelValue": _[2] || (_[2] = (C) => d.value = C),
|
|
8811
|
-
options:
|
|
8811
|
+
options: h.value
|
|
8812
8812
|
}, null, 8, ["modelValue", "options"]),
|
|
8813
8813
|
A(Q(lt), {
|
|
8814
8814
|
modelValue: c.value,
|
|
@@ -8916,7 +8916,7 @@ const _9 = {
|
|
|
8916
8916
|
const a = t, { t: n } = Tt(), s = S(
|
|
8917
8917
|
() => {
|
|
8918
8918
|
var M;
|
|
8919
|
-
return (M = a.templates) == null ? void 0 : M.find((
|
|
8919
|
+
return (M = a.templates) == null ? void 0 : M.find((m) => m.id === a.templateId);
|
|
8920
8920
|
}
|
|
8921
8921
|
), o = ee(!1);
|
|
8922
8922
|
de(
|
|
@@ -8927,26 +8927,26 @@ const _9 = {
|
|
|
8927
8927
|
var M;
|
|
8928
8928
|
return (M = s.value) == null ? void 0 : M.phases;
|
|
8929
8929
|
},
|
|
8930
|
-
(M,
|
|
8931
|
-
o.value && Xe(M,
|
|
8930
|
+
(M, m) => {
|
|
8931
|
+
o.value && Xe(M, m);
|
|
8932
8932
|
}
|
|
8933
8933
|
);
|
|
8934
8934
|
const i = S(() => {
|
|
8935
|
-
var M,
|
|
8936
|
-
return (
|
|
8935
|
+
var M, m;
|
|
8936
|
+
return (m = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : m.find((I) => I.id === a.phaseId);
|
|
8937
8937
|
});
|
|
8938
8938
|
de(
|
|
8939
8939
|
() => {
|
|
8940
8940
|
var M;
|
|
8941
8941
|
return (M = i.value) == null ? void 0 : M.milestones;
|
|
8942
8942
|
},
|
|
8943
|
-
(M,
|
|
8944
|
-
o.value && Xe(M,
|
|
8943
|
+
(M, m) => {
|
|
8944
|
+
o.value && Xe(M, m);
|
|
8945
8945
|
}
|
|
8946
8946
|
);
|
|
8947
8947
|
const r = S(() => {
|
|
8948
|
-
var M,
|
|
8949
|
-
return (
|
|
8948
|
+
var M, m;
|
|
8949
|
+
return (m = (M = i.value) == null ? void 0 : M.milestones) == null ? void 0 : m.find(
|
|
8950
8950
|
(I) => I.id === a.milestoneId
|
|
8951
8951
|
);
|
|
8952
8952
|
});
|
|
@@ -8955,19 +8955,19 @@ const _9 = {
|
|
|
8955
8955
|
var M;
|
|
8956
8956
|
return (M = r.value) == null ? void 0 : M.activities;
|
|
8957
8957
|
},
|
|
8958
|
-
(M,
|
|
8959
|
-
o.value && Xe(M,
|
|
8958
|
+
(M, m) => {
|
|
8959
|
+
o.value && Xe(M, m);
|
|
8960
8960
|
}
|
|
8961
8961
|
);
|
|
8962
8962
|
const l = S(() => {
|
|
8963
|
-
var M,
|
|
8964
|
-
return ((
|
|
8963
|
+
var M, m;
|
|
8964
|
+
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((I, J) => {
|
|
8965
8965
|
const ae = J.milestones || [];
|
|
8966
8966
|
return [...I, ...ae];
|
|
8967
8967
|
}, [])) || [];
|
|
8968
8968
|
}), c = S(() => {
|
|
8969
|
-
var M,
|
|
8970
|
-
return ((
|
|
8969
|
+
var M, m;
|
|
8970
|
+
return ((m = (M = s.value) == null ? void 0 : M.phases) == null ? void 0 : m.reduce((I, J) => {
|
|
8971
8971
|
const le = (J.milestones || []).reduce(
|
|
8972
8972
|
(ne, re) => re.activities ? [...ne, ...re.activities] : ne,
|
|
8973
8973
|
[]
|
|
@@ -8975,8 +8975,8 @@ const _9 = {
|
|
|
8975
8975
|
return [...I, ...le];
|
|
8976
8976
|
}, [])) || [];
|
|
8977
8977
|
}), u = S(() => {
|
|
8978
|
-
var M,
|
|
8979
|
-
return (
|
|
8978
|
+
var M, m;
|
|
8979
|
+
return (m = (M = r.value) == null ? void 0 : M.activities) == null ? void 0 : m.find(
|
|
8980
8980
|
(I) => I.id === a.activityId
|
|
8981
8981
|
);
|
|
8982
8982
|
}), f = S(() => {
|
|
@@ -8985,7 +8985,7 @@ const _9 = {
|
|
|
8985
8985
|
}), d = () => {
|
|
8986
8986
|
if (!s.value)
|
|
8987
8987
|
return;
|
|
8988
|
-
const { name: M, rank:
|
|
8988
|
+
const { name: M, rank: m } = Bt(
|
|
8989
8989
|
s.value.phases,
|
|
8990
8990
|
"phase",
|
|
8991
8991
|
n
|
|
@@ -8995,10 +8995,10 @@ const _9 = {
|
|
|
8995
8995
|
templateId: a.templateId,
|
|
8996
8996
|
item: {
|
|
8997
8997
|
name: M,
|
|
8998
|
-
rank:
|
|
8998
|
+
rank: m
|
|
8999
8999
|
}
|
|
9000
9000
|
});
|
|
9001
|
-
},
|
|
9001
|
+
}, h = (M) => {
|
|
9002
9002
|
e("updateItem", {
|
|
9003
9003
|
templateId: a.templateId,
|
|
9004
9004
|
id: a.templateId,
|
|
@@ -9013,19 +9013,19 @@ const _9 = {
|
|
|
9013
9013
|
id: M
|
|
9014
9014
|
}
|
|
9015
9015
|
});
|
|
9016
|
-
}, b = (M,
|
|
9016
|
+
}, b = (M, m) => {
|
|
9017
9017
|
e("updateItem", {
|
|
9018
9018
|
templateId: a.templateId,
|
|
9019
9019
|
id: M,
|
|
9020
9020
|
itemType: Ce.PHASES,
|
|
9021
|
-
data: { name:
|
|
9021
|
+
data: { name: m }
|
|
9022
9022
|
});
|
|
9023
9023
|
}, y = (M) => {
|
|
9024
9024
|
e("updateItem", M);
|
|
9025
9025
|
}, k = (M) => {
|
|
9026
9026
|
if (!i.value)
|
|
9027
9027
|
return;
|
|
9028
|
-
const { name:
|
|
9028
|
+
const { name: m, rank: I } = Bt(
|
|
9029
9029
|
i.value.milestones,
|
|
9030
9030
|
"milestone",
|
|
9031
9031
|
n
|
|
@@ -9035,7 +9035,7 @@ const _9 = {
|
|
|
9035
9035
|
templateId: a.templateId,
|
|
9036
9036
|
phaseId: M.phaseId,
|
|
9037
9037
|
item: {
|
|
9038
|
-
name:
|
|
9038
|
+
name: m,
|
|
9039
9039
|
rank: I,
|
|
9040
9040
|
phaseId: M.phaseId
|
|
9041
9041
|
}
|
|
@@ -9050,15 +9050,15 @@ const _9 = {
|
|
|
9050
9050
|
}
|
|
9051
9051
|
});
|
|
9052
9052
|
}, C = (M) => {
|
|
9053
|
-
const { id:
|
|
9053
|
+
const { id: m, ...I } = M;
|
|
9054
9054
|
e("updateItem", {
|
|
9055
9055
|
itemType: Ce.MILESTONES,
|
|
9056
|
-
id:
|
|
9056
|
+
id: m,
|
|
9057
9057
|
templateId: a.templateId,
|
|
9058
9058
|
data: I
|
|
9059
9059
|
});
|
|
9060
9060
|
}, D = (M) => {
|
|
9061
|
-
const { milestoneId:
|
|
9061
|
+
const { milestoneId: m } = M;
|
|
9062
9062
|
if (!r.value)
|
|
9063
9063
|
return;
|
|
9064
9064
|
const { name: I, rank: J } = Bt(
|
|
@@ -9068,26 +9068,26 @@ const _9 = {
|
|
|
9068
9068
|
);
|
|
9069
9069
|
o.value = !0, e("addItem", {
|
|
9070
9070
|
type: Ce.ACTIVITIES,
|
|
9071
|
-
milestoneId:
|
|
9071
|
+
milestoneId: m,
|
|
9072
9072
|
templateId: a.templateId,
|
|
9073
|
-
item: { name: I, rank: J, milestoneId:
|
|
9073
|
+
item: { name: I, rank: J, milestoneId: m }
|
|
9074
9074
|
});
|
|
9075
9075
|
}, L = (M) => {
|
|
9076
|
-
var
|
|
9076
|
+
var m, I;
|
|
9077
9077
|
e("removeItem", {
|
|
9078
9078
|
type: Ce.ACTIVITIES,
|
|
9079
9079
|
templateId: a.templateId,
|
|
9080
|
-
phaseId: (
|
|
9080
|
+
phaseId: (m = i.value) == null ? void 0 : m.id,
|
|
9081
9081
|
milestoneId: (I = r.value) == null ? void 0 : I.id,
|
|
9082
9082
|
data: {
|
|
9083
9083
|
id: M.id
|
|
9084
9084
|
}
|
|
9085
9085
|
});
|
|
9086
9086
|
}, H = (M) => {
|
|
9087
|
-
const { id:
|
|
9087
|
+
const { id: m, ...I } = M;
|
|
9088
9088
|
e("updateItem", {
|
|
9089
9089
|
itemType: Ce.ACTIVITIES,
|
|
9090
|
-
id:
|
|
9090
|
+
id: m,
|
|
9091
9091
|
templateId: a.templateId,
|
|
9092
9092
|
data: I
|
|
9093
9093
|
});
|
|
@@ -9095,12 +9095,12 @@ const _9 = {
|
|
|
9095
9095
|
F.value = !F.value;
|
|
9096
9096
|
}, q = () => {
|
|
9097
9097
|
e("addRule", { templateId: a.templateId });
|
|
9098
|
-
},
|
|
9098
|
+
}, O = (M) => {
|
|
9099
9099
|
e("removeRule", { id: M, templateId: a.templateId });
|
|
9100
|
-
},
|
|
9101
|
-
var
|
|
9100
|
+
}, x = (M) => {
|
|
9101
|
+
var m;
|
|
9102
9102
|
if (M.moved) {
|
|
9103
|
-
const I = Ca(M, ((
|
|
9103
|
+
const I = Ca(M, ((m = s.value) == null ? void 0 : m.phases) ?? []);
|
|
9104
9104
|
e("updateItem", {
|
|
9105
9105
|
itemType: Ce.PHASES,
|
|
9106
9106
|
id: M.moved.element.id,
|
|
@@ -9135,25 +9135,25 @@ const _9 = {
|
|
|
9135
9135
|
templateId: a.templateId,
|
|
9136
9136
|
data: M
|
|
9137
9137
|
});
|
|
9138
|
-
},
|
|
9138
|
+
}, E = (M) => {
|
|
9139
9139
|
e("addFiles", M);
|
|
9140
9140
|
}, N = (M) => {
|
|
9141
9141
|
e("removeFile", M);
|
|
9142
9142
|
};
|
|
9143
|
-
return (M,
|
|
9143
|
+
return (M, m) => {
|
|
9144
9144
|
var I, J, ae, le, ne, re;
|
|
9145
9145
|
return s.value ? (p(), g("div", _9, [
|
|
9146
9146
|
A(Ya, {
|
|
9147
9147
|
"can-go-back": !0,
|
|
9148
|
-
onGoBack:
|
|
9148
|
+
onGoBack: m[1] || (m[1] = (Y) => M.$router.push({ name: Q(Dt).TEMPLATES_LIST }))
|
|
9149
9149
|
}, {
|
|
9150
9150
|
primary: W(() => [
|
|
9151
9151
|
A(ye, {
|
|
9152
9152
|
title: f.value,
|
|
9153
9153
|
level: 2,
|
|
9154
9154
|
"is-editable": !0,
|
|
9155
|
-
"onUpdate:title":
|
|
9156
|
-
|
|
9155
|
+
"onUpdate:title": m[0] || (m[0] = (Y) => {
|
|
9156
|
+
h(Y);
|
|
9157
9157
|
})
|
|
9158
9158
|
}, null, 8, ["title"])
|
|
9159
9159
|
]),
|
|
@@ -9167,7 +9167,7 @@ const _9 = {
|
|
|
9167
9167
|
class: "ao-templates__list",
|
|
9168
9168
|
"item-key": "id",
|
|
9169
9169
|
handle: ".ao-card__drag",
|
|
9170
|
-
onChange:
|
|
9170
|
+
onChange: x
|
|
9171
9171
|
}, {
|
|
9172
9172
|
header: W(() => [
|
|
9173
9173
|
A(ye, {
|
|
@@ -9176,22 +9176,22 @@ const _9 = {
|
|
|
9176
9176
|
class: "ao-list__title"
|
|
9177
9177
|
}, null, 8, ["title"])
|
|
9178
9178
|
]),
|
|
9179
|
-
item: W(({ element:
|
|
9179
|
+
item: W(({ element: Y }) => {
|
|
9180
9180
|
var V;
|
|
9181
9181
|
return [
|
|
9182
9182
|
A(l5, {
|
|
9183
|
-
id:
|
|
9184
|
-
name:
|
|
9185
|
-
milestones:
|
|
9186
|
-
"is-active": ((V = i.value) == null ? void 0 : V.id) ===
|
|
9183
|
+
id: Y.id,
|
|
9184
|
+
name: Y.name,
|
|
9185
|
+
milestones: Y.milestones,
|
|
9186
|
+
"is-active": ((V = i.value) == null ? void 0 : V.id) === Y.id,
|
|
9187
9187
|
"is-draggable": !0,
|
|
9188
9188
|
onClick: (X) => M.$router.push({
|
|
9189
|
-
params: { templateId: M.templateId, phaseId:
|
|
9189
|
+
params: { templateId: M.templateId, phaseId: Y.id }
|
|
9190
9190
|
}),
|
|
9191
9191
|
"onUpdate:title": (X) => {
|
|
9192
|
-
b(
|
|
9192
|
+
b(Y.id, X);
|
|
9193
9193
|
},
|
|
9194
|
-
onRemove: () => w(
|
|
9194
|
+
onRemove: () => w(Y.id)
|
|
9195
9195
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
9196
9196
|
];
|
|
9197
9197
|
}),
|
|
@@ -9245,19 +9245,19 @@ const _9 = {
|
|
|
9245
9245
|
"is-template": !0,
|
|
9246
9246
|
"is-editable": !0,
|
|
9247
9247
|
users: M.users,
|
|
9248
|
-
"onUpdate:activity":
|
|
9249
|
-
u.value && H(
|
|
9248
|
+
"onUpdate:activity": m[2] || (m[2] = (Y) => {
|
|
9249
|
+
u.value && H(Y);
|
|
9250
9250
|
}),
|
|
9251
9251
|
"attachment-enabled": !1,
|
|
9252
9252
|
onClose: M.$router.back,
|
|
9253
9253
|
onAddSubtask: R,
|
|
9254
9254
|
onUpdateSubtask: Z,
|
|
9255
9255
|
onDeleteSubtask: ie,
|
|
9256
|
-
onAddFiles:
|
|
9256
|
+
onAddFiles: E,
|
|
9257
9257
|
onRemoveFile: N
|
|
9258
9258
|
}, {
|
|
9259
|
-
default: W((
|
|
9260
|
-
te(M.$slots, "activityDetailsBody", pa(fa(
|
|
9259
|
+
default: W((Y) => [
|
|
9260
|
+
te(M.$slots, "activityDetailsBody", pa(fa(Y)))
|
|
9261
9261
|
]),
|
|
9262
9262
|
_: 3
|
|
9263
9263
|
}, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : T("", !0)
|
|
@@ -9272,7 +9272,7 @@ const _9 = {
|
|
|
9272
9272
|
"template-activities": c.value,
|
|
9273
9273
|
onClose: U,
|
|
9274
9274
|
onAddRule: q,
|
|
9275
|
-
onRemoveRule:
|
|
9275
|
+
onRemoveRule: O
|
|
9276
9276
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : T("", !0)
|
|
9277
9277
|
]))
|
|
9278
9278
|
])) : T("", !0);
|
|
@@ -9294,7 +9294,7 @@ const A9 = {
|
|
|
9294
9294
|
},
|
|
9295
9295
|
setup(t) {
|
|
9296
9296
|
return (e, a) => (p(), P(ht(e.tagName), {
|
|
9297
|
-
class:
|
|
9297
|
+
class: K([
|
|
9298
9298
|
"ao-card",
|
|
9299
9299
|
{
|
|
9300
9300
|
"ao-card--clickable": e.isClickable,
|
|
@@ -9326,12 +9326,12 @@ const qn = /* @__PURE__ */ z({
|
|
|
9326
9326
|
setup(t) {
|
|
9327
9327
|
const e = t, a = S(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
9328
9328
|
return (n, s) => (p(), g("div", {
|
|
9329
|
-
class:
|
|
9329
|
+
class: K(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
|
|
9330
9330
|
role: "meter"
|
|
9331
9331
|
}, [
|
|
9332
9332
|
(p(!0), g(ve, null, _e(a.value, (o) => (p(), g("div", {
|
|
9333
9333
|
key: o,
|
|
9334
|
-
class:
|
|
9334
|
+
class: K(["ao-progress__progress"]),
|
|
9335
9335
|
style: wn({ width: `${o * 100}%` })
|
|
9336
9336
|
}, null, 4))), 128))
|
|
9337
9337
|
], 2));
|
|
@@ -9361,8 +9361,8 @@ const E9 = { class: "ao-card-project-phase__header" }, I9 = { class: "ao-card-pr
|
|
|
9361
9361
|
var u;
|
|
9362
9362
|
const c = (u = a.milestones) == null ? void 0 : u.reduce(
|
|
9363
9363
|
(f, d) => {
|
|
9364
|
-
var
|
|
9365
|
-
return f + ((
|
|
9364
|
+
var h;
|
|
9365
|
+
return f + ((h = d.activities) == null ? void 0 : h.reduce((w, b) => w + (b.estimation || 0), 0));
|
|
9366
9366
|
},
|
|
9367
9367
|
0
|
|
9368
9368
|
);
|
|
@@ -9410,7 +9410,7 @@ const E9 = { class: "ao-card-project-phase__header" }, I9 = { class: "ao-card-pr
|
|
|
9410
9410
|
])) : T("", !0)
|
|
9411
9411
|
])) : T("", !0),
|
|
9412
9412
|
v("div", {
|
|
9413
|
-
class:
|
|
9413
|
+
class: K(["ao-card-project-phase__footer-row", l.value ? "" : "ao-card-project-phase__no_deadline"])
|
|
9414
9414
|
}, [
|
|
9415
9415
|
c.isEditable ? Ke((p(), g("input", {
|
|
9416
9416
|
key: 0,
|
|
@@ -9497,7 +9497,7 @@ const R9 = { class: "ao-card-project-milestone__default" }, N9 = {
|
|
|
9497
9497
|
e("updateMilestone", { id: a.id, name: l });
|
|
9498
9498
|
};
|
|
9499
9499
|
return (l, c) => (p(), P(Wn, {
|
|
9500
|
-
class:
|
|
9500
|
+
class: K([
|
|
9501
9501
|
"ao-card-project-milestone",
|
|
9502
9502
|
{ "ao-card-project-milestone--selected": l.isSelected }
|
|
9503
9503
|
]),
|
|
@@ -9554,7 +9554,7 @@ const R9 = { class: "ao-card-project-milestone__default" }, N9 = {
|
|
|
9554
9554
|
l.important ? (p(), P(pe, {
|
|
9555
9555
|
key: 0,
|
|
9556
9556
|
name: "FlagRounded",
|
|
9557
|
-
class:
|
|
9557
|
+
class: K(
|
|
9558
9558
|
l.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
|
|
9559
9559
|
),
|
|
9560
9560
|
size: "sm"
|
|
@@ -9593,8 +9593,8 @@ const G9 = {
|
|
|
9593
9593
|
const a = t, { t: n } = Tt();
|
|
9594
9594
|
de(
|
|
9595
9595
|
() => a.phase.milestones,
|
|
9596
|
-
(d,
|
|
9597
|
-
Xe(d,
|
|
9596
|
+
(d, h) => {
|
|
9597
|
+
Xe(d, h);
|
|
9598
9598
|
}
|
|
9599
9599
|
);
|
|
9600
9600
|
const s = (d) => {
|
|
@@ -9606,12 +9606,12 @@ const G9 = {
|
|
|
9606
9606
|
(d) => O3(d, a.closedStatus)
|
|
9607
9607
|
)
|
|
9608
9608
|
), r = (d) => {
|
|
9609
|
-
const { name:
|
|
9609
|
+
const { name: h, rank: w } = Bt(
|
|
9610
9610
|
i.value ?? [],
|
|
9611
9611
|
"milestone",
|
|
9612
9612
|
n
|
|
9613
9613
|
);
|
|
9614
|
-
e("addMilestone", { name:
|
|
9614
|
+
e("addMilestone", { name: h, rank: w, phaseId: d });
|
|
9615
9615
|
}, l = (d) => {
|
|
9616
9616
|
e("updateMilestone", d);
|
|
9617
9617
|
}, c = (d) => {
|
|
@@ -9628,10 +9628,10 @@ const G9 = {
|
|
|
9628
9628
|
rank: jt(i.value, d.moved.newIndex)
|
|
9629
9629
|
});
|
|
9630
9630
|
};
|
|
9631
|
-
return (d,
|
|
9631
|
+
return (d, h) => {
|
|
9632
9632
|
var w;
|
|
9633
9633
|
return p(), g("li", {
|
|
9634
|
-
class:
|
|
9634
|
+
class: K([
|
|
9635
9635
|
"ao-project-phase",
|
|
9636
9636
|
{ "ao-project-phase--selected": d.phase.id === ((w = d.$route.params) == null ? void 0 : w.phaseId) }
|
|
9637
9637
|
])
|
|
@@ -9678,7 +9678,7 @@ const G9 = {
|
|
|
9678
9678
|
assignee: b.assignee,
|
|
9679
9679
|
important: b.important,
|
|
9680
9680
|
readonly: d.readonly,
|
|
9681
|
-
class:
|
|
9681
|
+
class: K(["ao-project-phase__milestone"]),
|
|
9682
9682
|
onClick: (k) => !d.readonly && d.$router.push({
|
|
9683
9683
|
name: Q(Fe).milestone,
|
|
9684
9684
|
params: { phaseId: d.phase.id, milestoneId: b.id }
|
|
@@ -9696,7 +9696,7 @@ const G9 = {
|
|
|
9696
9696
|
label: d.$t("project.milestone.add"),
|
|
9697
9697
|
class: "ao-project-phase__milestone-add",
|
|
9698
9698
|
"icon-name": "Add",
|
|
9699
|
-
onClick:
|
|
9699
|
+
onClick: h[0] || (h[0] = () => r(d.phase.id))
|
|
9700
9700
|
}, null, 8, ["label"])) : T("", !0)
|
|
9701
9701
|
])
|
|
9702
9702
|
])
|
|
@@ -9869,7 +9869,7 @@ const vv = { class: "toggle-wrapper" };
|
|
|
9869
9869
|
function hv(t, e, a, n, s, o) {
|
|
9870
9870
|
return p(), g("div", vv, [
|
|
9871
9871
|
v("button", {
|
|
9872
|
-
class:
|
|
9872
|
+
class: K({
|
|
9873
9873
|
button: !0,
|
|
9874
9874
|
"button--left": !0,
|
|
9875
9875
|
"button--inactive": !t.isLeft
|
|
@@ -9878,7 +9878,7 @@ function hv(t, e, a, n, s, o) {
|
|
|
9878
9878
|
onClick: e[0] || (e[0] = (...i) => t.selectLeft && t.selectLeft(...i))
|
|
9879
9879
|
}, G(t.leftLabel), 3),
|
|
9880
9880
|
v("button", {
|
|
9881
|
-
class:
|
|
9881
|
+
class: K({
|
|
9882
9882
|
button: !0,
|
|
9883
9883
|
"button--right": !0,
|
|
9884
9884
|
"button--inactive": t.isLeft
|
|
@@ -9907,94 +9907,94 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
9907
9907
|
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "unarchiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "update:showsArchived"],
|
|
9908
9908
|
setup(t, { emit: e }) {
|
|
9909
9909
|
const a = t, { t: n } = Tt(), s = S(
|
|
9910
|
-
() => a.phases.flatMap((
|
|
9910
|
+
() => a.phases.flatMap((O) => O.milestones)
|
|
9911
9911
|
), o = () => {
|
|
9912
|
-
const { name:
|
|
9913
|
-
e("addPhase", { name:
|
|
9914
|
-
}, i = (
|
|
9915
|
-
e("updatePhase",
|
|
9916
|
-
}, r = (
|
|
9917
|
-
e("archivePhase",
|
|
9918
|
-
}, l = (
|
|
9919
|
-
e("addMilestone",
|
|
9920
|
-
}, c = (
|
|
9921
|
-
e("updateMilestone",
|
|
9922
|
-
}, u = (
|
|
9923
|
-
e("archiveMilestone",
|
|
9924
|
-
}, f = (
|
|
9925
|
-
e("addActivity",
|
|
9926
|
-
}, d = (
|
|
9927
|
-
e("update:activity",
|
|
9928
|
-
},
|
|
9929
|
-
e("archiveActivity",
|
|
9930
|
-
}, w = (
|
|
9931
|
-
e("unarchiveActivity",
|
|
9932
|
-
}, b = (
|
|
9933
|
-
e("addSubtask",
|
|
9934
|
-
}, y = (
|
|
9935
|
-
e("updateSubtask",
|
|
9936
|
-
}, k = (
|
|
9937
|
-
e("deleteSubtask",
|
|
9912
|
+
const { name: O, rank: x } = Bt(a.phases, "phase", n);
|
|
9913
|
+
e("addPhase", { name: O, rank: x, projectId: a.project.id });
|
|
9914
|
+
}, i = (O) => {
|
|
9915
|
+
e("updatePhase", O);
|
|
9916
|
+
}, r = (O) => {
|
|
9917
|
+
e("archivePhase", O);
|
|
9918
|
+
}, l = (O) => {
|
|
9919
|
+
e("addMilestone", O);
|
|
9920
|
+
}, c = (O) => {
|
|
9921
|
+
e("updateMilestone", O);
|
|
9922
|
+
}, u = (O) => {
|
|
9923
|
+
e("archiveMilestone", O);
|
|
9924
|
+
}, f = (O) => {
|
|
9925
|
+
e("addActivity", O);
|
|
9926
|
+
}, d = (O) => {
|
|
9927
|
+
e("update:activity", O);
|
|
9928
|
+
}, h = (O) => {
|
|
9929
|
+
e("archiveActivity", O);
|
|
9930
|
+
}, w = (O) => {
|
|
9931
|
+
e("unarchiveActivity", O);
|
|
9932
|
+
}, b = (O) => {
|
|
9933
|
+
e("addSubtask", O);
|
|
9934
|
+
}, y = (O) => {
|
|
9935
|
+
e("updateSubtask", O);
|
|
9936
|
+
}, k = (O) => {
|
|
9937
|
+
e("deleteSubtask", O);
|
|
9938
9938
|
}, _ = S(
|
|
9939
|
-
() => s.value.flatMap((
|
|
9940
|
-
), C = (
|
|
9941
|
-
e("addFiles",
|
|
9942
|
-
}, D = (
|
|
9943
|
-
e("removeFile",
|
|
9944
|
-
}, L = (
|
|
9945
|
-
e("addComment",
|
|
9946
|
-
}, H = (
|
|
9947
|
-
e("updateComment",
|
|
9948
|
-
}, F = (
|
|
9949
|
-
e("removeComment",
|
|
9950
|
-
}, U = ee(!1), q = (
|
|
9951
|
-
e("applyTemplate", { templateId:
|
|
9939
|
+
() => s.value.flatMap((O) => O.activities)
|
|
9940
|
+
), C = (O) => {
|
|
9941
|
+
e("addFiles", O);
|
|
9942
|
+
}, D = (O) => {
|
|
9943
|
+
e("removeFile", O);
|
|
9944
|
+
}, L = (O) => {
|
|
9945
|
+
e("addComment", O);
|
|
9946
|
+
}, H = (O) => {
|
|
9947
|
+
e("updateComment", O);
|
|
9948
|
+
}, F = (O) => {
|
|
9949
|
+
e("removeComment", O);
|
|
9950
|
+
}, U = ee(!1), q = (O, x) => {
|
|
9951
|
+
e("applyTemplate", { templateId: O, projectId: x }), U.value = !1;
|
|
9952
9952
|
};
|
|
9953
|
-
return (
|
|
9953
|
+
return (O, x) => {
|
|
9954
9954
|
const R = Ye("RouterView");
|
|
9955
9955
|
return p(), g(ve, null, [
|
|
9956
|
-
v("div", He({ class: "ao-project-overview" },
|
|
9956
|
+
v("div", He({ class: "ao-project-overview" }, O.$attrs), [
|
|
9957
9957
|
v("div", mv, [
|
|
9958
9958
|
A(Ya, null, {
|
|
9959
9959
|
primary: W(() => [
|
|
9960
9960
|
A(ci, {
|
|
9961
9961
|
"is-left": !0,
|
|
9962
|
-
"right-label":
|
|
9963
|
-
"left-label":
|
|
9964
|
-
"onUpdate:isLeft":
|
|
9965
|
-
Z ||
|
|
9962
|
+
"right-label": O.$t("project.switch.feed"),
|
|
9963
|
+
"left-label": O.$t("project.switch.overview"),
|
|
9964
|
+
"onUpdate:isLeft": x[0] || (x[0] = (Z) => {
|
|
9965
|
+
Z || O.$router.push({ name: Q(Fe).feed });
|
|
9966
9966
|
})
|
|
9967
9967
|
}, null, 8, ["right-label", "left-label"]),
|
|
9968
9968
|
A(ce, {
|
|
9969
9969
|
class: "ao-feed__show-archived",
|
|
9970
9970
|
size: "sm",
|
|
9971
|
-
"icon-name":
|
|
9971
|
+
"icon-name": O.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
9972
9972
|
"icon-position": "start",
|
|
9973
9973
|
color: "primary",
|
|
9974
9974
|
variant: "ghost",
|
|
9975
|
-
label:
|
|
9975
|
+
label: O.$t("feed.filters.showsArchived.label"),
|
|
9976
9976
|
role: "checkbox",
|
|
9977
|
-
"aria-checked":
|
|
9978
|
-
onClick:
|
|
9977
|
+
"aria-checked": O.showsArchived,
|
|
9978
|
+
onClick: x[1] || (x[1] = (Z) => O.$emit("update:showsArchived", !O.showsArchived))
|
|
9979
9979
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9980
9980
|
]),
|
|
9981
9981
|
secondary: W(() => [
|
|
9982
|
-
|
|
9982
|
+
O.isEditable === !0 ? (p(), P(ce, {
|
|
9983
9983
|
key: 0,
|
|
9984
9984
|
class: "ao-project-overview__add-template",
|
|
9985
9985
|
color: "primary",
|
|
9986
|
-
label:
|
|
9987
|
-
onClick:
|
|
9986
|
+
label: O.$t("project.template.add.label"),
|
|
9987
|
+
onClick: x[2] || (x[2] = (Z) => U.value = !0)
|
|
9988
9988
|
}, null, 8, ["label"])) : T("", !0)
|
|
9989
9989
|
]),
|
|
9990
9990
|
_: 1
|
|
9991
9991
|
}),
|
|
9992
9992
|
v("div", Cv, [
|
|
9993
9993
|
A(rv, {
|
|
9994
|
-
phases:
|
|
9995
|
-
"closed-status":
|
|
9996
|
-
"is-editable":
|
|
9997
|
-
users:
|
|
9994
|
+
phases: O.phases,
|
|
9995
|
+
"closed-status": O.closedStatus,
|
|
9996
|
+
"is-editable": O.isEditable === !0,
|
|
9997
|
+
users: O.users,
|
|
9998
9998
|
onAddMilestone: l,
|
|
9999
9999
|
onUpdateMilestone: c,
|
|
10000
10000
|
onArchiveMilestone: u,
|
|
@@ -10006,32 +10006,32 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
10006
10006
|
]),
|
|
10007
10007
|
A(R, {
|
|
10008
10008
|
class: "ao-project__sidebar",
|
|
10009
|
-
phases:
|
|
10010
|
-
"project-id":
|
|
10011
|
-
"project-name":
|
|
10012
|
-
users:
|
|
10013
|
-
"is-editable":
|
|
10014
|
-
"closed-status":
|
|
10015
|
-
onClose:
|
|
10009
|
+
phases: O.phases,
|
|
10010
|
+
"project-id": O.project.id,
|
|
10011
|
+
"project-name": O.project.name,
|
|
10012
|
+
users: O.users,
|
|
10013
|
+
"is-editable": O.isEditable === !0,
|
|
10014
|
+
"closed-status": O.closedStatus,
|
|
10015
|
+
onClose: x[3] || (x[3] = (Z) => O.$router.push({ name: Q(Fe).project })),
|
|
10016
10016
|
onUpdateMilestone: c,
|
|
10017
10017
|
onAddActivity: f,
|
|
10018
10018
|
onUpdateActivity: d,
|
|
10019
|
-
onArchiveActivity:
|
|
10019
|
+
onArchiveActivity: h,
|
|
10020
10020
|
onUnarchiveActivity: w
|
|
10021
10021
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
|
|
10022
10022
|
(p(), P(Nt, { to: "body" }, [
|
|
10023
10023
|
A(R, {
|
|
10024
10024
|
name: "modal",
|
|
10025
10025
|
activities: _.value,
|
|
10026
|
-
"is-task-checkable":
|
|
10027
|
-
statuses:
|
|
10028
|
-
"activity-types":
|
|
10029
|
-
phases:
|
|
10030
|
-
project:
|
|
10031
|
-
users:
|
|
10032
|
-
"user-id":
|
|
10033
|
-
"is-editable":
|
|
10034
|
-
"attachment-enabled":
|
|
10026
|
+
"is-task-checkable": O.isTaskCheckable,
|
|
10027
|
+
statuses: O.statuses,
|
|
10028
|
+
"activity-types": O.activityTypes,
|
|
10029
|
+
phases: O.phases,
|
|
10030
|
+
project: O.project,
|
|
10031
|
+
users: O.users,
|
|
10032
|
+
"user-id": O.userId,
|
|
10033
|
+
"is-editable": O.isEditable,
|
|
10034
|
+
"attachment-enabled": O.attachmentEnabled,
|
|
10035
10035
|
"onUpdate:activity": d,
|
|
10036
10036
|
onAddSubtask: b,
|
|
10037
10037
|
onUpdateSubtask: y,
|
|
@@ -10045,7 +10045,7 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
10045
10045
|
default: W(({ Component: Z }) => [
|
|
10046
10046
|
(p(), P(ht(Z), null, {
|
|
10047
10047
|
default: W((ie) => [
|
|
10048
|
-
te(
|
|
10048
|
+
te(O.$slots, "activityDetailsBody", pa(fa(ie)))
|
|
10049
10049
|
]),
|
|
10050
10050
|
_: 2
|
|
10051
10051
|
}, 1024))
|
|
@@ -10057,9 +10057,9 @@ const ci = /* @__PURE__ */ j(fv, [["render", hv], ["__scopeId", "data-v-cbe33527
|
|
|
10057
10057
|
(p(), P(Nt, { to: "body" }, [
|
|
10058
10058
|
U.value ? (p(), P(pv, {
|
|
10059
10059
|
key: 0,
|
|
10060
|
-
"project-id":
|
|
10061
|
-
templates:
|
|
10062
|
-
onClose:
|
|
10060
|
+
"project-id": O.project.id,
|
|
10061
|
+
templates: O.templates,
|
|
10062
|
+
onClose: x[4] || (x[4] = (Z) => U.value = !1),
|
|
10063
10063
|
onApply: q
|
|
10064
10064
|
}, null, 8, ["project-id", "templates"])) : T("", !0)
|
|
10065
10065
|
]))
|
|
@@ -10077,7 +10077,7 @@ const _v = { class: "ao-card-feed__header" }, yv = {
|
|
|
10077
10077
|
key: 0,
|
|
10078
10078
|
class: "ao-card-feed__breadcrumbs"
|
|
10079
10079
|
}, kv = {
|
|
10080
|
-
class: /* @__PURE__ */
|
|
10080
|
+
class: /* @__PURE__ */ K(["ao-card-feed__title-group"])
|
|
10081
10081
|
}, Sv = {
|
|
10082
10082
|
key: 1,
|
|
10083
10083
|
class: "ao-card-feed__deadline"
|
|
@@ -10105,6 +10105,7 @@ const _v = { class: "ao-card-feed__header" }, yv = {
|
|
|
10105
10105
|
projectColor: {},
|
|
10106
10106
|
phaseName: {},
|
|
10107
10107
|
milestoneName: {},
|
|
10108
|
+
milestoneColor: {},
|
|
10108
10109
|
deadline: {},
|
|
10109
10110
|
important: { type: Boolean },
|
|
10110
10111
|
assignee: {},
|
|
@@ -10118,22 +10119,22 @@ const _v = { class: "ao-card-feed__header" }, yv = {
|
|
|
10118
10119
|
},
|
|
10119
10120
|
emits: ["removeAssignee", "updateActivity"],
|
|
10120
10121
|
setup(t, { emit: e }) {
|
|
10121
|
-
const a = t, n = S(() => a.tagType === "milestone" ? a.milestoneName : a.projectName), s = (
|
|
10122
|
+
const a = t, n = S(() => a.tagType === "milestone" ? a.milestoneName : a.projectName), s = S(() => a.tagType === "milestone" ? a.milestoneColor : a.projectColor), o = (h) => {
|
|
10122
10123
|
e("updateActivity", {
|
|
10123
10124
|
id: a.id,
|
|
10124
|
-
name:
|
|
10125
|
+
name: h
|
|
10125
10126
|
});
|
|
10126
|
-
},
|
|
10127
|
-
e("removeAssignee",
|
|
10128
|
-
},
|
|
10129
|
-
var
|
|
10130
|
-
return (
|
|
10131
|
-
}),
|
|
10132
|
-
var
|
|
10133
|
-
return (
|
|
10134
|
-
}),
|
|
10135
|
-
return (
|
|
10136
|
-
class:
|
|
10127
|
+
}, i = S(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), r = S(() => a.assignee ? [a.assignee] : []), l = S(() => Tn(a.deadline)), c = (h) => {
|
|
10128
|
+
e("removeAssignee", h);
|
|
10129
|
+
}, u = S(() => {
|
|
10130
|
+
var h;
|
|
10131
|
+
return (h = a.tasks) == null ? void 0 : h.length;
|
|
10132
|
+
}), f = S(() => {
|
|
10133
|
+
var h;
|
|
10134
|
+
return (h = a.tasks) == null ? void 0 : h.filter((w) => w.isDone).length;
|
|
10135
|
+
}), d = S(() => (f.value || 0) / (u.value || 1));
|
|
10136
|
+
return (h, w) => (p(), P(Wn, {
|
|
10137
|
+
class: K(["ao-card-feed", { "ao-card-feed--closed": h.isClosed }]),
|
|
10137
10138
|
"is-clickable": !0
|
|
10138
10139
|
}, {
|
|
10139
10140
|
header: W(() => [
|
|
@@ -10143,93 +10144,93 @@ const _v = { class: "ao-card-feed__header" }, yv = {
|
|
|
10143
10144
|
label: n.value,
|
|
10144
10145
|
class: "ao-card-feed__project",
|
|
10145
10146
|
variant: "solid",
|
|
10146
|
-
color:
|
|
10147
|
-
"raw-color":
|
|
10147
|
+
color: h.projectColor ? void 0 : "primary",
|
|
10148
|
+
"raw-color": s.value
|
|
10148
10149
|
}, null, 8, ["label", "color", "raw-color"])) : T("", !0),
|
|
10149
|
-
|
|
10150
|
-
|
|
10150
|
+
h.isPrivate || h.important || h.isClosed ? (p(), g("div", yv, [
|
|
10151
|
+
h.isPrivate ? (p(), P(pe, {
|
|
10151
10152
|
key: 0,
|
|
10152
10153
|
name: "Lock",
|
|
10153
10154
|
class: "ao-card-feed__warning",
|
|
10154
10155
|
size: "sm"
|
|
10155
10156
|
})) : T("", !0),
|
|
10156
|
-
|
|
10157
|
+
h.important ? (p(), P(pe, {
|
|
10157
10158
|
key: 1,
|
|
10158
10159
|
name: "FlagRounded",
|
|
10159
10160
|
class: "ao-card-feed__important",
|
|
10160
10161
|
size: "sm"
|
|
10161
10162
|
})) : T("", !0),
|
|
10162
|
-
|
|
10163
|
+
h.isClosed ? (p(), P(pe, {
|
|
10163
10164
|
key: 2,
|
|
10164
10165
|
name: "CheckSmallRounded",
|
|
10165
10166
|
class: "ao-card-feed__closed"
|
|
10166
10167
|
})) : T("", !0)
|
|
10167
10168
|
])) : T("", !0),
|
|
10168
|
-
|
|
10169
|
-
te(
|
|
10169
|
+
h.$slots.secondary ? (p(), g("div", bv, [
|
|
10170
|
+
te(h.$slots, "secondary")
|
|
10170
10171
|
])) : T("", !0)
|
|
10171
10172
|
])
|
|
10172
10173
|
]),
|
|
10173
10174
|
default: W(() => [
|
|
10174
10175
|
v("div", wv, [
|
|
10175
|
-
|
|
10176
|
+
i.value ? (p(), g("span", $v, G(i.value), 1)) : T("", !0),
|
|
10176
10177
|
v("div", kv, [
|
|
10177
10178
|
A(ye, {
|
|
10178
|
-
id:
|
|
10179
|
-
title:
|
|
10179
|
+
id: h.id,
|
|
10180
|
+
title: h.name,
|
|
10180
10181
|
level: 5,
|
|
10181
|
-
"is-editable":
|
|
10182
|
-
"onUpdate:title":
|
|
10182
|
+
"is-editable": h.isEditable,
|
|
10183
|
+
"onUpdate:title": o
|
|
10183
10184
|
}, null, 8, ["id", "title", "is-editable"])
|
|
10184
10185
|
]),
|
|
10185
|
-
|
|
10186
|
+
h.deadline ? (p(), g("span", Sv, G(l.value), 1)) : T("", !0)
|
|
10186
10187
|
])
|
|
10187
10188
|
]),
|
|
10188
10189
|
footer: W(() => [
|
|
10189
10190
|
v("div", Mv, [
|
|
10190
10191
|
v("div", Av, [
|
|
10191
10192
|
v("ul", Tv, [
|
|
10192
|
-
(p(!0), g(ve, null, _e(
|
|
10193
|
-
key:
|
|
10193
|
+
(p(!0), g(ve, null, _e(r.value, (b) => (p(), g(ve, {
|
|
10194
|
+
key: b.id
|
|
10194
10195
|
}, [
|
|
10195
|
-
|
|
10196
|
+
b ? (p(), g("li", Ov, [
|
|
10196
10197
|
A(Je, {
|
|
10197
|
-
"user-name": Q(zs)(
|
|
10198
|
-
"avatar-url":
|
|
10198
|
+
"user-name": Q(zs)(b),
|
|
10199
|
+
"avatar-url": b.avatarUrl,
|
|
10199
10200
|
"is-closable": !0,
|
|
10200
|
-
onClose: () =>
|
|
10201
|
+
onClose: () => c(b.id)
|
|
10201
10202
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
10202
10203
|
])) : T("", !0)
|
|
10203
10204
|
], 64))), 128))
|
|
10204
10205
|
]),
|
|
10205
|
-
|
|
10206
|
-
|
|
10206
|
+
h.comments || h.attachments ? (p(), g("ul", Ev, [
|
|
10207
|
+
h.comments ? (p(), g("li", Iv, [
|
|
10207
10208
|
A(pe, {
|
|
10208
10209
|
name: "ChatOutline",
|
|
10209
10210
|
size: "sm"
|
|
10210
10211
|
}),
|
|
10211
|
-
v("span", Lv, G(
|
|
10212
|
+
v("span", Lv, G(h.comments), 1)
|
|
10212
10213
|
])) : T("", !0),
|
|
10213
|
-
|
|
10214
|
+
h.attachments ? (p(), g("li", Hv, [
|
|
10214
10215
|
A(pe, {
|
|
10215
10216
|
name: "AttachFileRounded",
|
|
10216
10217
|
size: "sm"
|
|
10217
10218
|
}),
|
|
10218
|
-
v("span", Dv, G(
|
|
10219
|
+
v("span", Dv, G(h.attachments), 1)
|
|
10219
10220
|
])) : T("", !0)
|
|
10220
10221
|
])) : T("", !0)
|
|
10221
10222
|
]),
|
|
10222
10223
|
v("div", Pv, [
|
|
10223
|
-
|
|
10224
|
+
h.tasks && h.tasks.length ? (p(), g("div", Vv, [
|
|
10224
10225
|
v("div", Bv, [
|
|
10225
10226
|
A(pe, {
|
|
10226
10227
|
name: "SelectCheckBox",
|
|
10227
10228
|
size: "sm"
|
|
10228
10229
|
}),
|
|
10229
|
-
v("span", Rv, G(
|
|
10230
|
+
v("span", Rv, G(f.value) + " / " + G(u.value), 1)
|
|
10230
10231
|
]),
|
|
10231
10232
|
A(qn, {
|
|
10232
|
-
percentages:
|
|
10233
|
+
percentages: d.value,
|
|
10233
10234
|
class: "ao-card-feed__progress"
|
|
10234
10235
|
}, null, 8, ["percentages"])
|
|
10235
10236
|
])) : T("", !0)
|
|
@@ -10633,7 +10634,7 @@ var Xn = z({
|
|
|
10633
10634
|
},
|
|
10634
10635
|
mousemoveHandler(t) {
|
|
10635
10636
|
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);
|
|
10636
|
-
let [f, d,
|
|
10637
|
+
let [f, d, h, w] = u.data;
|
|
10637
10638
|
w = parseFloat((w / 255).toFixed(2));
|
|
10638
10639
|
const b = this.suckerPreview.style;
|
|
10639
10640
|
Object.assign(b, {
|
|
@@ -10645,7 +10646,7 @@ var Xn = z({
|
|
|
10645
10646
|
borderRadius: "50%",
|
|
10646
10647
|
border: "2px solid #fff",
|
|
10647
10648
|
boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.16)",
|
|
10648
|
-
background: `rgba(${f}, ${d}, ${
|
|
10649
|
+
background: `rgba(${f}, ${d}, ${h}, ${w})`,
|
|
10649
10650
|
zIndex: 95
|
|
10650
10651
|
}), this.suckerArea.length && // @ts-ignore
|
|
10651
10652
|
e >= this.suckerArea[0] && // @ts-ignore
|
|
@@ -10656,8 +10657,8 @@ var Xn = z({
|
|
|
10656
10657
|
suckColor(t) {
|
|
10657
10658
|
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) => {
|
|
10658
10659
|
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);
|
|
10659
|
-
let [d,
|
|
10660
|
-
b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: d, g:
|
|
10660
|
+
let [d, h, w, b] = f.data;
|
|
10661
|
+
b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: d, g: h, b: w, a: b });
|
|
10661
10662
|
}));
|
|
10662
10663
|
}
|
|
10663
10664
|
}
|
|
@@ -11186,8 +11187,11 @@ const r4 = {
|
|
|
11186
11187
|
},
|
|
11187
11188
|
methods: {
|
|
11188
11189
|
togglePicker() {
|
|
11189
|
-
|
|
11190
|
-
|
|
11190
|
+
this.showPicker = !this.showPicker;
|
|
11191
|
+
},
|
|
11192
|
+
changeColor(t) {
|
|
11193
|
+
const { r: e, g: a, b: n, a: s } = t.rgba, o = `rgba(${e}, ${a}, ${n}, ${s})`;
|
|
11194
|
+
this.$emit("update:color", o);
|
|
11191
11195
|
}
|
|
11192
11196
|
}
|
|
11193
11197
|
}, l4 = { class: "color-picker-wrapper" };
|
|
@@ -11204,7 +11208,7 @@ function u4(t, e, a, n, s, o) {
|
|
|
11204
11208
|
class: "color-picker",
|
|
11205
11209
|
theme: "light",
|
|
11206
11210
|
color: a.color,
|
|
11207
|
-
onChangeColor:
|
|
11211
|
+
onChangeColor: o.changeColor
|
|
11208
11212
|
}, null, 8, ["color", "onChangeColor"])) : T("", !0)
|
|
11209
11213
|
]);
|
|
11210
11214
|
}
|
|
@@ -11277,7 +11281,7 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11277
11281
|
color: _
|
|
11278
11282
|
});
|
|
11279
11283
|
}
|
|
11280
|
-
}),
|
|
11284
|
+
}), h = S({
|
|
11281
11285
|
get: () => {
|
|
11282
11286
|
var _;
|
|
11283
11287
|
return ((_ = i == null ? void 0 : i.value) == null ? void 0 : _.deadline) ?? "";
|
|
@@ -11353,13 +11357,13 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11353
11357
|
v("div", C4, [
|
|
11354
11358
|
v("label", g4, [
|
|
11355
11359
|
Ke(v("input", {
|
|
11356
|
-
"onUpdate:modelValue": C[1] || (C[1] = (L) =>
|
|
11360
|
+
"onUpdate:modelValue": C[1] || (C[1] = (L) => h.value = L),
|
|
11357
11361
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
11358
11362
|
type: "date"
|
|
11359
11363
|
}, null, 512), [
|
|
11360
11364
|
[
|
|
11361
11365
|
ut,
|
|
11362
|
-
|
|
11366
|
+
h.value,
|
|
11363
11367
|
void 0,
|
|
11364
11368
|
{ lazy: !0 }
|
|
11365
11369
|
]
|
|
@@ -11411,24 +11415,25 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11411
11415
|
group: "kanban"
|
|
11412
11416
|
}, _.$attrs, { onChange: f }), {
|
|
11413
11417
|
item: W(({ element: L }) => {
|
|
11414
|
-
var H, F, U, q;
|
|
11418
|
+
var H, F, U, q, O;
|
|
11415
11419
|
return [
|
|
11416
11420
|
A(di, {
|
|
11417
11421
|
id: L.id,
|
|
11418
11422
|
name: L.name || L.id,
|
|
11419
11423
|
"phase-name": (H = s.value) == null ? void 0 : H.name,
|
|
11420
11424
|
"milestone-name": (F = i.value) == null ? void 0 : F.name,
|
|
11425
|
+
"milestone-color": (U = i.value) == null ? void 0 : U.color,
|
|
11421
11426
|
deadline: L.deadline,
|
|
11422
11427
|
important: L.important,
|
|
11423
11428
|
users: _.users,
|
|
11424
11429
|
assignee: L.assignee,
|
|
11425
|
-
comments: (
|
|
11426
|
-
attachments: (
|
|
11430
|
+
comments: (q = L.comments) == null ? void 0 : q.length,
|
|
11431
|
+
attachments: (O = L.attachments) == null ? void 0 : O.length,
|
|
11427
11432
|
tasks: L.tasks,
|
|
11428
11433
|
"is-editable": _.isEditable,
|
|
11429
11434
|
"is-private": L.private,
|
|
11430
11435
|
"is-closed": w(L),
|
|
11431
|
-
onClick: (
|
|
11436
|
+
onClick: (x) => _.$router.push({
|
|
11432
11437
|
name: Q(Fe).activity,
|
|
11433
11438
|
params: { milestoneId: _.milestoneId, activityId: L.id }
|
|
11434
11439
|
}),
|
|
@@ -11466,7 +11471,7 @@ const c4 = /* @__PURE__ */ j(r4, [["render", u4]]), d4 = { class: "ao-project-mi
|
|
|
11466
11471
|
]),
|
|
11467
11472
|
key: "0"
|
|
11468
11473
|
} : void 0
|
|
11469
|
-
]), 1032, ["id", "name", "phase-name", "milestone-name", "deadline", "important", "users", "assignee", "comments", "attachments", "tasks", "is-editable", "is-private", "is-closed", "onClick", "onRemoveAssignee"])
|
|
11474
|
+
]), 1032, ["id", "name", "phase-name", "milestone-name", "milestone-color", "deadline", "important", "users", "assignee", "comments", "attachments", "tasks", "is-editable", "is-private", "is-closed", "onClick", "onRemoveAssignee"])
|
|
11470
11475
|
];
|
|
11471
11476
|
}),
|
|
11472
11477
|
_: 1
|
|
@@ -11528,7 +11533,7 @@ const $4 = /* @__PURE__ */ z({
|
|
|
11528
11533
|
e("addFiles", y);
|
|
11529
11534
|
}, d = (y) => {
|
|
11530
11535
|
e("removeFile", y);
|
|
11531
|
-
},
|
|
11536
|
+
}, h = (y) => {
|
|
11532
11537
|
e("addComment", y);
|
|
11533
11538
|
}, w = (y) => {
|
|
11534
11539
|
e("updateComment", y);
|
|
@@ -11559,7 +11564,7 @@ const $4 = /* @__PURE__ */ z({
|
|
|
11559
11564
|
onDeleteSubtask: u,
|
|
11560
11565
|
onAddFiles: f,
|
|
11561
11566
|
onRemoveFile: d,
|
|
11562
|
-
onAddComment:
|
|
11567
|
+
onAddComment: h,
|
|
11563
11568
|
onUpdateComment: w,
|
|
11564
11569
|
onRemoveComment: b
|
|
11565
11570
|
}, {
|
|
@@ -11679,10 +11684,10 @@ function P4(t, e, a = {}) {
|
|
|
11679
11684
|
};
|
|
11680
11685
|
},
|
|
11681
11686
|
{ immediate: r, flush: "post" }
|
|
11682
|
-
) : oa,
|
|
11687
|
+
) : oa, h = () => {
|
|
11683
11688
|
u(), d(), f.value = !1;
|
|
11684
11689
|
};
|
|
11685
|
-
return M4(
|
|
11690
|
+
return M4(h), {
|
|
11686
11691
|
isSupported: l,
|
|
11687
11692
|
isActive: f,
|
|
11688
11693
|
pause() {
|
|
@@ -11691,11 +11696,11 @@ function P4(t, e, a = {}) {
|
|
|
11691
11696
|
resume() {
|
|
11692
11697
|
f.value = !0;
|
|
11693
11698
|
},
|
|
11694
|
-
stop:
|
|
11699
|
+
stop: h
|
|
11695
11700
|
};
|
|
11696
11701
|
}
|
|
11697
11702
|
const V4 = {
|
|
11698
|
-
class: /* @__PURE__ */
|
|
11703
|
+
class: /* @__PURE__ */ K(["ao-list-kanban"])
|
|
11699
11704
|
}, B4 = { class: "ao-list-kanban__header" }, R4 = {
|
|
11700
11705
|
key: 0,
|
|
11701
11706
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
@@ -11787,30 +11792,31 @@ const V4 = {
|
|
|
11787
11792
|
}
|
|
11788
11793
|
}), {
|
|
11789
11794
|
item: W(({ element: d }) => {
|
|
11790
|
-
var
|
|
11795
|
+
var h, w, b, y, k, _, C, D, L;
|
|
11791
11796
|
return [
|
|
11792
11797
|
A(di, {
|
|
11793
|
-
class:
|
|
11798
|
+
class: K(o(d) ? "ao-list-draggable" : ""),
|
|
11794
11799
|
id: d.id,
|
|
11795
11800
|
name: d.name,
|
|
11796
|
-
"project-name": (
|
|
11801
|
+
"project-name": (h = d.project) == null ? void 0 : h.name,
|
|
11797
11802
|
"project-color": (w = d.project) == null ? void 0 : w.color,
|
|
11798
11803
|
"phase-name": (y = (b = d.milestone) == null ? void 0 : b.phase) == null ? void 0 : y.name,
|
|
11799
11804
|
"milestone-name": (k = d.milestone) == null ? void 0 : k.name,
|
|
11805
|
+
"milestone-color": (_ = d.milestone) == null ? void 0 : _.color,
|
|
11800
11806
|
deadline: d.deadline,
|
|
11801
|
-
rules: ((
|
|
11807
|
+
rules: ((C = d.rules) == null ? void 0 : C.length) || 0,
|
|
11802
11808
|
tasks: d.tasks,
|
|
11803
11809
|
description: d.description,
|
|
11804
11810
|
important: d.important,
|
|
11805
11811
|
type: d.type,
|
|
11806
|
-
comments: (
|
|
11807
|
-
attachments: (
|
|
11812
|
+
comments: (D = d.comments) == null ? void 0 : D.length,
|
|
11813
|
+
attachments: (L = d.attachments) == null ? void 0 : L.length,
|
|
11808
11814
|
users: u.users,
|
|
11809
11815
|
assignee: d.assignee,
|
|
11810
11816
|
"is-editable": o(d),
|
|
11811
11817
|
"is-private": d.private,
|
|
11812
11818
|
"tag-type": u.tagType,
|
|
11813
|
-
onUpdateActivity: [(
|
|
11819
|
+
onUpdateActivity: [(H) => o(d) && r(H), () => o(d) && r],
|
|
11814
11820
|
onClick: () => i(d.id),
|
|
11815
11821
|
onRemoveAssignee: () => o(d) && r({ id: d.id, assigneeId: null })
|
|
11816
11822
|
}, {
|
|
@@ -11839,7 +11845,7 @@ const V4 = {
|
|
|
11839
11845
|
}, null, 8, ["label", "onClick"])) : T("", !0)
|
|
11840
11846
|
]),
|
|
11841
11847
|
_: 2
|
|
11842
|
-
}, 1032, ["class", "id", "name", "project-name", "project-color", "phase-name", "milestone-name", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "is-editable", "is-private", "tag-type", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
11848
|
+
}, 1032, ["class", "id", "name", "project-name", "project-color", "phase-name", "milestone-name", "milestone-color", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "is-editable", "is-private", "tag-type", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
11843
11849
|
];
|
|
11844
11850
|
}),
|
|
11845
11851
|
footer: W(() => [
|
|
@@ -11896,14 +11902,14 @@ const W4 = { class: "ao-field ao-search-field" }, q4 = ["value", "placeholder",
|
|
|
11896
11902
|
}, null, 40, q4),
|
|
11897
11903
|
A(pe, {
|
|
11898
11904
|
name: "SearchRounded",
|
|
11899
|
-
class:
|
|
11905
|
+
class: K(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
11900
11906
|
}, null, 8, ["class"]),
|
|
11901
11907
|
A(ce, {
|
|
11902
11908
|
"icon-name": "CloseRounded",
|
|
11903
11909
|
size: "sm",
|
|
11904
11910
|
color: "primary",
|
|
11905
11911
|
corners: "round",
|
|
11906
|
-
class:
|
|
11912
|
+
class: K(`ao-search-field__button ao-search-field__action ${i.modelValue ? "ao-search-field__action--visible" : ""}`),
|
|
11907
11913
|
onClick: o
|
|
11908
11914
|
}, null, 8, ["class"])
|
|
11909
11915
|
]));
|
|
@@ -11931,15 +11937,15 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
11931
11937
|
},
|
|
11932
11938
|
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"],
|
|
11933
11939
|
setup(t, { emit: e }) {
|
|
11934
|
-
const a = t, { t: n } = Tt(), s = Pt(a, "activities"), o = async (
|
|
11935
|
-
await e("selectActivity",
|
|
11940
|
+
const a = t, { t: n } = Tt(), s = Pt(a, "activities"), o = async (E) => {
|
|
11941
|
+
await e("selectActivity", E);
|
|
11936
11942
|
}, i = ee({}), r = ee(!1), l = ee(!1), c = S(() => a.project ? "milestone" : "project");
|
|
11937
11943
|
de(
|
|
11938
11944
|
[() => a.statuses, () => a.activities, () => a.initialActivityId],
|
|
11939
11945
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
11940
|
-
async ([
|
|
11946
|
+
async ([E, N, M], [m, I]) => {
|
|
11941
11947
|
i.value = Object.fromEntries(
|
|
11942
|
-
|
|
11948
|
+
E.map((J) => [
|
|
11943
11949
|
J.id,
|
|
11944
11950
|
N.filter((ae) => {
|
|
11945
11951
|
var le;
|
|
@@ -11951,68 +11957,68 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
11951
11957
|
{ immediate: !0 }
|
|
11952
11958
|
);
|
|
11953
11959
|
const u = S(() => {
|
|
11954
|
-
var
|
|
11955
|
-
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((
|
|
11956
|
-
}), f = (
|
|
11960
|
+
var E;
|
|
11961
|
+
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((E = a.selectedActivity.milestone.phase) == null ? void 0 : E.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
11962
|
+
}), f = (E) => {
|
|
11957
11963
|
var J, ae;
|
|
11958
|
-
const N = (J = a.activities) == null ? void 0 : J.at(-1), M = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(),
|
|
11959
|
-
name: n("activity.defaultName", { idx:
|
|
11964
|
+
const N = (J = a.activities) == null ? void 0 : J.at(-1), M = N ? Ie.LexoRank.parse(N.rank).genNext() : Ie.LexoRank.middle(), m = ((ae = a.activities) == null ? void 0 : ae.length) ?? 0, I = {
|
|
11965
|
+
name: n("activity.defaultName", { idx: m + 1 }),
|
|
11960
11966
|
rank: M.format(),
|
|
11961
|
-
statusId:
|
|
11967
|
+
statusId: E.id
|
|
11962
11968
|
};
|
|
11963
11969
|
a.filters.assigneeId.length > 0 && (I.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (I.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (I.typeId = a.filters.typeId[0]), l.value = !0, e("addActivity", I);
|
|
11964
|
-
}, d = (
|
|
11965
|
-
l.value = !1, e("update:filters", { ...a.filters, [
|
|
11966
|
-
},
|
|
11970
|
+
}, d = (E, N) => {
|
|
11971
|
+
l.value = !1, e("update:filters", { ...a.filters, [E]: N });
|
|
11972
|
+
}, h = S(
|
|
11967
11973
|
() => a.project ? [a.project] : a.projects ?? []
|
|
11968
|
-
), w = S(() =>
|
|
11969
|
-
value:
|
|
11970
|
-
label:
|
|
11974
|
+
), w = S(() => h.value.map((E) => ({
|
|
11975
|
+
value: E.id,
|
|
11976
|
+
label: E.name
|
|
11971
11977
|
}))), b = S(() => {
|
|
11972
|
-
var
|
|
11973
|
-
return (
|
|
11978
|
+
var E;
|
|
11979
|
+
return (E = a.activityTypes) == null ? void 0 : E.map((N) => ({
|
|
11974
11980
|
value: N.id,
|
|
11975
11981
|
label: N.name
|
|
11976
11982
|
}));
|
|
11977
|
-
}), y = S(() => a.users.map((
|
|
11978
|
-
value:
|
|
11979
|
-
label: `${
|
|
11980
|
-
avatar:
|
|
11981
|
-
}))), k = (
|
|
11982
|
-
a.selectedActivity && e("update:activity",
|
|
11983
|
-
}, _ = (
|
|
11984
|
-
e("update:activity",
|
|
11985
|
-
}, C = (
|
|
11986
|
-
e("archiveActivity",
|
|
11987
|
-
}, D = (
|
|
11988
|
-
e("unarchiveActivity",
|
|
11989
|
-
}, L = (
|
|
11990
|
-
l.value = !1, e("update:searchText",
|
|
11991
|
-
}, H = (
|
|
11992
|
-
l.value = !1, e("clear:searchText",
|
|
11993
|
-
}, F = (
|
|
11994
|
-
a.selectedActivity && e("addSubtask",
|
|
11995
|
-
}, U = (
|
|
11996
|
-
a.selectedActivity && e("updateSubtask",
|
|
11997
|
-
}, q = (
|
|
11998
|
-
a.selectedActivity && e("deleteSubtask",
|
|
11999
|
-
},
|
|
12000
|
-
e("addFiles",
|
|
12001
|
-
},
|
|
12002
|
-
e("removeFile",
|
|
12003
|
-
}, R = (
|
|
11983
|
+
}), y = S(() => a.users.map((E) => ({
|
|
11984
|
+
value: E.id,
|
|
11985
|
+
label: `${E.firstName} ${E.lastName}`,
|
|
11986
|
+
avatar: E.avatarUrl
|
|
11987
|
+
}))), k = (E) => {
|
|
11988
|
+
a.selectedActivity && e("update:activity", E);
|
|
11989
|
+
}, _ = (E) => {
|
|
11990
|
+
e("update:activity", E);
|
|
11991
|
+
}, C = (E) => {
|
|
11992
|
+
e("archiveActivity", E);
|
|
11993
|
+
}, D = (E) => {
|
|
11994
|
+
e("unarchiveActivity", E);
|
|
11995
|
+
}, L = (E) => {
|
|
11996
|
+
l.value = !1, e("update:searchText", E);
|
|
11997
|
+
}, H = (E) => {
|
|
11998
|
+
l.value = !1, e("clear:searchText", E);
|
|
11999
|
+
}, F = (E) => {
|
|
12000
|
+
a.selectedActivity && e("addSubtask", E);
|
|
12001
|
+
}, U = (E) => {
|
|
12002
|
+
a.selectedActivity && e("updateSubtask", E);
|
|
12003
|
+
}, q = (E) => {
|
|
12004
|
+
a.selectedActivity && e("deleteSubtask", E);
|
|
12005
|
+
}, O = (E) => {
|
|
12006
|
+
e("addFiles", E);
|
|
12007
|
+
}, x = (E) => {
|
|
12008
|
+
e("removeFile", E);
|
|
12009
|
+
}, R = (E) => {
|
|
12004
12010
|
a.selectedActivity && e("addComment", {
|
|
12005
|
-
...
|
|
12011
|
+
...E,
|
|
12006
12012
|
activityId: a.selectedActivity.id
|
|
12007
12013
|
});
|
|
12008
|
-
}, Z = (
|
|
12014
|
+
}, Z = (E) => {
|
|
12009
12015
|
const { id: N } = a.selectedActivity || {};
|
|
12010
|
-
N && e("updateComment",
|
|
12011
|
-
}, ie = (
|
|
12016
|
+
N && e("updateComment", E);
|
|
12017
|
+
}, ie = (E) => {
|
|
12012
12018
|
const { id: N } = a.selectedActivity || {};
|
|
12013
|
-
N && e("removeComment",
|
|
12019
|
+
N && e("removeComment", E);
|
|
12014
12020
|
};
|
|
12015
|
-
return (
|
|
12021
|
+
return (E, N) => {
|
|
12016
12022
|
var M;
|
|
12017
12023
|
return p(), g("div", x4, [
|
|
12018
12024
|
A(Ya, null, {
|
|
@@ -12021,61 +12027,61 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
12021
12027
|
a.project ? (p(), P(ci, {
|
|
12022
12028
|
key: 0,
|
|
12023
12029
|
"is-left": !1,
|
|
12024
|
-
"right-label":
|
|
12025
|
-
"left-label":
|
|
12026
|
-
"onUpdate:isLeft": N[0] || (N[0] = (
|
|
12027
|
-
|
|
12030
|
+
"right-label": E.$t("project.switch.feed"),
|
|
12031
|
+
"left-label": E.$t("project.switch.overview"),
|
|
12032
|
+
"onUpdate:isLeft": N[0] || (N[0] = (m) => {
|
|
12033
|
+
m && E.$router.push({ name: Q(Fe).project });
|
|
12028
12034
|
})
|
|
12029
12035
|
}, null, 8, ["right-label", "left-label"])) : T("", !0),
|
|
12030
12036
|
A(z4, {
|
|
12031
|
-
"model-value":
|
|
12032
|
-
placeholder:
|
|
12037
|
+
"model-value": E.searchText,
|
|
12038
|
+
placeholder: E.$t("feed.search.placeholder"),
|
|
12033
12039
|
class: "ao-feed__search",
|
|
12034
12040
|
"onUpdate:modelValue": L,
|
|
12035
12041
|
onClear: H
|
|
12036
12042
|
}, null, 8, ["model-value", "placeholder"]),
|
|
12037
12043
|
a.project ? T("", !0) : (p(), P($e, {
|
|
12038
12044
|
key: 1,
|
|
12039
|
-
"model-value":
|
|
12045
|
+
"model-value": E.filters[Q(Lt).project],
|
|
12040
12046
|
mode: "tags",
|
|
12041
12047
|
options: w.value,
|
|
12042
12048
|
"close-on-select": !1,
|
|
12043
12049
|
searchable: !0,
|
|
12044
12050
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
12045
|
-
placeholder:
|
|
12046
|
-
"onUpdate:modelValue": N[1] || (N[1] = (
|
|
12051
|
+
placeholder: E.$t("feed.filters.project.placeholder"),
|
|
12052
|
+
"onUpdate:modelValue": N[1] || (N[1] = (m) => d(Q(Lt).project, m))
|
|
12047
12053
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
12048
12054
|
b.value ? (p(), P($e, {
|
|
12049
12055
|
key: 2,
|
|
12050
|
-
"model-value":
|
|
12056
|
+
"model-value": E.filters[Q(Lt).type],
|
|
12051
12057
|
mode: "tags",
|
|
12052
12058
|
options: b.value,
|
|
12053
12059
|
"close-on-select": !1,
|
|
12054
12060
|
searchable: !0,
|
|
12055
12061
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
12056
|
-
placeholder:
|
|
12057
|
-
"onUpdate:modelValue": N[2] || (N[2] = (
|
|
12062
|
+
placeholder: E.$t("feed.filters.activityType.placeholder"),
|
|
12063
|
+
"onUpdate:modelValue": N[2] || (N[2] = (m) => d(Q(Lt).type, m))
|
|
12058
12064
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
12059
12065
|
y.value.length ? (p(), P($e, {
|
|
12060
12066
|
key: 3,
|
|
12061
|
-
"model-value":
|
|
12067
|
+
"model-value": E.filters[Q(Lt).assignee],
|
|
12062
12068
|
mode: "tags",
|
|
12063
12069
|
options: y.value,
|
|
12064
12070
|
"close-on-select": !1,
|
|
12065
12071
|
searchable: !0,
|
|
12066
12072
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
12067
|
-
placeholder:
|
|
12068
|
-
"onUpdate:modelValue": N[3] || (N[3] = (
|
|
12073
|
+
placeholder: E.$t("feed.filters.assignee.placeholder"),
|
|
12074
|
+
"onUpdate:modelValue": N[3] || (N[3] = (m) => d(Q(Lt).assignee, m))
|
|
12069
12075
|
}, {
|
|
12070
12076
|
tag: W(({
|
|
12071
|
-
option:
|
|
12077
|
+
option: m,
|
|
12072
12078
|
handleTagRemove: I
|
|
12073
12079
|
}) => [
|
|
12074
12080
|
A(Je, {
|
|
12075
|
-
"user-name":
|
|
12076
|
-
"avatar-url":
|
|
12081
|
+
"user-name": m.label,
|
|
12082
|
+
"avatar-url": m.avatar,
|
|
12077
12083
|
"is-closable": !0,
|
|
12078
|
-
onClose: (J) => I(
|
|
12084
|
+
onClose: (J) => I(m, J)
|
|
12079
12085
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12080
12086
|
]),
|
|
12081
12087
|
_: 1
|
|
@@ -12084,42 +12090,42 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
12084
12090
|
A(ce, {
|
|
12085
12091
|
class: "ao-feed__only-important",
|
|
12086
12092
|
size: "sm",
|
|
12087
|
-
"icon-name":
|
|
12093
|
+
"icon-name": E.showsOnlyImportant ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
12088
12094
|
"icon-position": "start",
|
|
12089
12095
|
color: "primary",
|
|
12090
12096
|
variant: "ghost",
|
|
12091
|
-
label:
|
|
12097
|
+
label: E.$t("feed.filters.showsOnlyImportant.label"),
|
|
12092
12098
|
role: "checkbox",
|
|
12093
|
-
"aria-checked":
|
|
12094
|
-
onClick: N[4] || (N[4] = (
|
|
12099
|
+
"aria-checked": E.showsOnlyImportant,
|
|
12100
|
+
onClick: N[4] || (N[4] = (m) => E.$emit("update:showsOnlyImportant", !E.showsOnlyImportant))
|
|
12095
12101
|
}, null, 8, ["icon-name", "label", "aria-checked"]),
|
|
12096
12102
|
A(ce, {
|
|
12097
12103
|
class: "ao-feed__show-archived",
|
|
12098
12104
|
size: "sm",
|
|
12099
|
-
"icon-name":
|
|
12105
|
+
"icon-name": E.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
12100
12106
|
"icon-position": "start",
|
|
12101
12107
|
color: "primary",
|
|
12102
12108
|
variant: "ghost",
|
|
12103
|
-
label:
|
|
12109
|
+
label: E.$t("feed.filters.showsArchivedActivities.label"),
|
|
12104
12110
|
role: "checkbox",
|
|
12105
|
-
"aria-checked":
|
|
12106
|
-
onClick: N[5] || (N[5] = (
|
|
12111
|
+
"aria-checked": E.showsArchivedActivities,
|
|
12112
|
+
onClick: N[5] || (N[5] = (m) => E.$emit("update:showsArchivedActivities", !E.showsArchivedActivities))
|
|
12107
12113
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
12108
12114
|
]),
|
|
12109
12115
|
_: 1
|
|
12110
12116
|
}),
|
|
12111
12117
|
v("div", K4, [
|
|
12112
|
-
(p(!0), g(ve, null, _e(
|
|
12113
|
-
key:
|
|
12114
|
-
status:
|
|
12115
|
-
list: i.value[
|
|
12116
|
-
title:
|
|
12117
|
-
"footer-label":
|
|
12118
|
-
users:
|
|
12119
|
-
"user-id":
|
|
12120
|
-
"is-editable":
|
|
12118
|
+
(p(!0), g(ve, null, _e(E.statuses, (m) => (p(), P(Z4, {
|
|
12119
|
+
key: m.id,
|
|
12120
|
+
status: m,
|
|
12121
|
+
list: i.value[m.id],
|
|
12122
|
+
title: m.name,
|
|
12123
|
+
"footer-label": E.$t("feed.activity.add"),
|
|
12124
|
+
users: E.users,
|
|
12125
|
+
"user-id": E.userId,
|
|
12126
|
+
"is-editable": E.isEditable,
|
|
12121
12127
|
tagType: c.value,
|
|
12122
|
-
onAdd: () => f(
|
|
12128
|
+
onAdd: () => f(m),
|
|
12123
12129
|
onSelectActivity: o,
|
|
12124
12130
|
onArchiveActivity: C,
|
|
12125
12131
|
onUnarchiveActivity: D,
|
|
@@ -12127,33 +12133,33 @@ const x4 = { class: "ao-feed" }, Y4 = { class: "ao-feed__filters" }, K4 = { clas
|
|
|
12127
12133
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tagType", "onAdd"]))), 128))
|
|
12128
12134
|
]),
|
|
12129
12135
|
(p(), P(Nt, { to: "body" }, [
|
|
12130
|
-
|
|
12136
|
+
E.selectedActivity ? (p(), P(Zn, {
|
|
12131
12137
|
key: 0,
|
|
12132
|
-
activity:
|
|
12133
|
-
"activity-types":
|
|
12134
|
-
"milestone-id": (M =
|
|
12138
|
+
activity: E.selectedActivity,
|
|
12139
|
+
"activity-types": E.activityTypes,
|
|
12140
|
+
"milestone-id": (M = E.selectedActivity.milestone) == null ? void 0 : M.id,
|
|
12135
12141
|
"template-activities": s.value,
|
|
12136
|
-
users:
|
|
12137
|
-
"user-id":
|
|
12138
|
-
"is-task-checkable":
|
|
12139
|
-
statuses:
|
|
12142
|
+
users: E.users,
|
|
12143
|
+
"user-id": E.userId,
|
|
12144
|
+
"is-task-checkable": E.isTaskCheckable,
|
|
12145
|
+
statuses: E.statuses,
|
|
12140
12146
|
breadcrumbs: u.value,
|
|
12141
|
-
"is-editable":
|
|
12142
|
-
"attachment-enabled":
|
|
12143
|
-
projects:
|
|
12147
|
+
"is-editable": E.isEditable,
|
|
12148
|
+
"attachment-enabled": E.attachmentEnabled,
|
|
12149
|
+
projects: h.value,
|
|
12144
12150
|
onClose: N[6] || (N[6] = () => o(null)),
|
|
12145
12151
|
"onUpdate:activity": k,
|
|
12146
12152
|
onAddSubtask: F,
|
|
12147
12153
|
onUpdateSubtask: U,
|
|
12148
12154
|
onDeleteSubtask: q,
|
|
12149
|
-
onAddFiles:
|
|
12150
|
-
onRemoveFile:
|
|
12155
|
+
onAddFiles: O,
|
|
12156
|
+
onRemoveFile: x,
|
|
12151
12157
|
onAddComment: R,
|
|
12152
12158
|
onUpdateComment: Z,
|
|
12153
12159
|
onRemoveComment: ie
|
|
12154
12160
|
}, {
|
|
12155
|
-
default: W((
|
|
12156
|
-
te(
|
|
12161
|
+
default: W((m) => [
|
|
12162
|
+
te(E.$slots, "activityDetailsBody", pa(fa(m)))
|
|
12157
12163
|
]),
|
|
12158
12164
|
_: 3
|
|
12159
12165
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects"])) : T("", !0)
|
|
@@ -12320,7 +12326,7 @@ const J4 = { class: "ao-field__label" }, e8 = /* @__PURE__ */ z({
|
|
|
12320
12326
|
},
|
|
12321
12327
|
setup(t) {
|
|
12322
12328
|
return (e, a) => (p(), g("label", {
|
|
12323
|
-
class:
|
|
12329
|
+
class: K(["ao-field", { "ao-field--multiselect": e.isMultiselect }])
|
|
12324
12330
|
}, [
|
|
12325
12331
|
v("span", J4, G(e.label), 1),
|
|
12326
12332
|
te(e.$slots, "default")
|