@26lights/orcha 0.29.0 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +711 -698
- package/dist/orcha.umd.js +1 -1
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +10 -0
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, openBlock as f, createBlock as N, unref as z, mergeProps as Ee, createElementBlock as h, createElementVNode as v, pushScopeId as us, popScopeId as ds, createStaticVNode as cs, computed as b, resolveDynamicComponent as Xe, normalizeClass as G, renderSlot as x, toDisplayString as q, createCommentVNode as T, ref as Q, watch as
|
|
1
|
+
import { defineComponent as Y, openBlock as f, createBlock as N, unref as z, mergeProps as Ee, createElementBlock as h, createElementVNode as v, pushScopeId as us, popScopeId as ds, createStaticVNode as cs, computed as b, resolveDynamicComponent as Xe, normalizeClass as G, renderSlot as x, toDisplayString as q, createCommentVNode as T, ref as Q, watch as de, nextTick as Oe, withKeys as Ye, toHandlers as fs, withCtx as U, createTextVNode as a1, createVNode as S, normalizeStyle as ca, withModifiers as _e, createSlots as s1, Fragment as ve, renderList as ye, onMounted as Dt, onBeforeUnmount as vs, onUnmounted as fa, toRefs as $e, getCurrentInstance as st, toRef as vt, normalizeProps as Ht, guardReactiveProps as Pt, onUpdated as ps, withDirectives as tt, vModelText as Et, vModelCheckbox as Q1, Teleport as It, resolveComponent as hs, getCurrentScope as ms, onScopeDispose as Cs, provide as _s, toHandlerKey as gs } from "vue";
|
|
2
2
|
import { RouterView as ys } from "vue-router";
|
|
3
3
|
import Qe from "vuedraggable";
|
|
4
4
|
const o8 = /* @__PURE__ */ Y({
|
|
@@ -1218,7 +1218,7 @@ function pa(t) {
|
|
|
1218
1218
|
d(c, r);
|
|
1219
1219
|
});
|
|
1220
1220
|
};
|
|
1221
|
-
return
|
|
1221
|
+
return de(e, async (d) => {
|
|
1222
1222
|
await Oe(() => {
|
|
1223
1223
|
setTimeout(() => {
|
|
1224
1224
|
t.value && d && (t.value.focus(), a.value = t.value[n.value]);
|
|
@@ -1251,8 +1251,8 @@ const Ce = /* @__PURE__ */ Y({
|
|
|
1251
1251
|
} : {
|
|
1252
1252
|
click: w,
|
|
1253
1253
|
focus: w
|
|
1254
|
-
} : {}), c = i((A,
|
|
1255
|
-
const y =
|
|
1254
|
+
} : {}), c = i((A, g) => {
|
|
1255
|
+
const y = g.target.value;
|
|
1256
1256
|
e("update:title", y);
|
|
1257
1257
|
}), u = l(), p = async () => {
|
|
1258
1258
|
s.value && o(!1);
|
|
@@ -1261,12 +1261,12 @@ const Ce = /* @__PURE__ */ Y({
|
|
|
1261
1261
|
}, w = (A) => {
|
|
1262
1262
|
A.stopPropagation(), s.value || o(!0);
|
|
1263
1263
|
};
|
|
1264
|
-
return
|
|
1264
|
+
return de(
|
|
1265
1265
|
() => a.isEditable,
|
|
1266
1266
|
(A) => {
|
|
1267
1267
|
A || u();
|
|
1268
1268
|
}
|
|
1269
|
-
), (A,
|
|
1269
|
+
), (A, g) => (f(), N(Xe(d.value), Ee({
|
|
1270
1270
|
id: A.id,
|
|
1271
1271
|
ref_key: "target",
|
|
1272
1272
|
ref: n,
|
|
@@ -1337,21 +1337,21 @@ const fd = {
|
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: U(() => [
|
|
1339
1339
|
n.isDraggable ? (f(), h("div", fd, [
|
|
1340
|
-
|
|
1340
|
+
S(ce, {
|
|
1341
1341
|
name: "DragIndicator",
|
|
1342
1342
|
class: "ao-card-horiz__drag-handle"
|
|
1343
1343
|
})
|
|
1344
1344
|
])) : T("", !0),
|
|
1345
1345
|
v("div", vd, [
|
|
1346
1346
|
n.icon ? (f(), h("div", pd, [
|
|
1347
|
-
|
|
1347
|
+
S(ce, {
|
|
1348
1348
|
class: "ao-card-horiz__icon",
|
|
1349
1349
|
name: n.icon,
|
|
1350
1350
|
size: "xl"
|
|
1351
1351
|
}, null, 8, ["name"])
|
|
1352
1352
|
])) : T("", !0),
|
|
1353
1353
|
v("div", hd, [
|
|
1354
|
-
|
|
1354
|
+
S(Ce, {
|
|
1355
1355
|
id: n.id,
|
|
1356
1356
|
class: "ao-card-horiz__title",
|
|
1357
1357
|
level: 4,
|
|
@@ -1419,7 +1419,7 @@ const O1 = /* @__PURE__ */ Y({
|
|
|
1419
1419
|
class: "ao-tag__close",
|
|
1420
1420
|
onClick: o[1] || (o[1] = (i) => s.$emit("close", i))
|
|
1421
1421
|
}, [
|
|
1422
|
-
|
|
1422
|
+
S(ce, {
|
|
1423
1423
|
name: "CloseRounded",
|
|
1424
1424
|
size: "sm",
|
|
1425
1425
|
class: "ao-tag__close-icon"
|
|
@@ -1572,9 +1572,9 @@ function ya(t, e) {
|
|
|
1572
1572
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1573
1573
|
var w = /* @__PURE__ */ new Date(0);
|
|
1574
1574
|
w.setUTCFullYear(u + 1, 0, m), w.setUTCHours(0, 0, 0, 0);
|
|
1575
|
-
var A = Xt(w, e),
|
|
1576
|
-
|
|
1577
|
-
var $ = Xt(
|
|
1575
|
+
var A = Xt(w, e), g = /* @__PURE__ */ new Date(0);
|
|
1576
|
+
g.setUTCFullYear(u, 0, m), g.setUTCHours(0, 0, 0, 0);
|
|
1577
|
+
var $ = Xt(g, e);
|
|
1578
1578
|
return c.getTime() >= A.getTime() ? u + 1 : c.getTime() >= $.getTime() ? u : u - 1;
|
|
1579
1579
|
}
|
|
1580
1580
|
function Hd(t, e) {
|
|
@@ -2697,47 +2697,47 @@ var Oc = {
|
|
|
2697
2697
|
const Lc = Oc;
|
|
2698
2698
|
var Vc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Dc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hc = /^'([^]*?)'?$/, Pc = /''/g, Bc = /[a-zA-Z]/;
|
|
2699
2699
|
function Nc(t, e, a) {
|
|
2700
|
-
var n, s, o, i, l, d, r, c, u, p, m, w, A,
|
|
2700
|
+
var n, s, o, i, l, d, r, c, u, p, m, w, A, g, $, y, L, Z;
|
|
2701
2701
|
ge(2, arguments);
|
|
2702
2702
|
var W = String(e), V = i1(), X = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : V.locale) !== null && n !== void 0 ? n : Lc, te = Ke((o = (i = (l = (d = a == null ? void 0 : a.firstWeekContainsDate) !== null && d !== void 0 ? d : a == null || (r = a.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && l !== void 0 ? l : V.firstWeekContainsDate) !== null && i !== void 0 ? i : (u = V.locale) === null || u === void 0 || (p = u.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2703
2703
|
if (!(te >= 1 && te <= 7))
|
|
2704
2704
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2705
|
-
var
|
|
2706
|
-
if (!(
|
|
2705
|
+
var ee = Ke((m = (w = (A = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || ($ = a.locale) === null || $ === void 0 || (y = $.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && A !== void 0 ? A : V.weekStartsOn) !== null && w !== void 0 ? w : (L = V.locale) === null || L === void 0 || (Z = L.options) === null || Z === void 0 ? void 0 : Z.weekStartsOn) !== null && m !== void 0 ? m : 0);
|
|
2706
|
+
if (!(ee >= 0 && ee <= 6))
|
|
2707
2707
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2708
2708
|
if (!X.localize)
|
|
2709
2709
|
throw new RangeError("locale must contain localize property");
|
|
2710
2710
|
if (!X.formatLong)
|
|
2711
2711
|
throw new RangeError("locale must contain formatLong property");
|
|
2712
|
-
var
|
|
2713
|
-
if (!_a(
|
|
2712
|
+
var O = Be(t);
|
|
2713
|
+
if (!_a(O))
|
|
2714
2714
|
throw new RangeError("Invalid time value");
|
|
2715
|
-
var
|
|
2715
|
+
var _ = Td(O), E = Ed(O, _), H = {
|
|
2716
2716
|
firstWeekContainsDate: te,
|
|
2717
|
-
weekStartsOn:
|
|
2717
|
+
weekStartsOn: ee,
|
|
2718
2718
|
locale: X,
|
|
2719
|
-
_originalDate:
|
|
2720
|
-
},
|
|
2721
|
-
var
|
|
2722
|
-
if (
|
|
2723
|
-
var M = Fd[
|
|
2719
|
+
_originalDate: O
|
|
2720
|
+
}, re = W.match(Dc).map(function(se) {
|
|
2721
|
+
var ue = se[0];
|
|
2722
|
+
if (ue === "p" || ue === "P") {
|
|
2723
|
+
var M = Fd[ue];
|
|
2724
2724
|
return M(se, X.formatLong);
|
|
2725
2725
|
}
|
|
2726
2726
|
return se;
|
|
2727
2727
|
}).join("").match(Vc).map(function(se) {
|
|
2728
2728
|
if (se === "''")
|
|
2729
2729
|
return "'";
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2730
|
+
var ue = se[0];
|
|
2731
|
+
if (ue === "'")
|
|
2732
2732
|
return Rc(se);
|
|
2733
|
-
var M = Ud[
|
|
2733
|
+
var M = Ud[ue];
|
|
2734
2734
|
if (M)
|
|
2735
|
-
return !(a != null && a.useAdditionalWeekYearTokens) && Yd(se) && aa(se, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && Wd(se) && aa(se, e, String(t)), M(
|
|
2736
|
-
if (
|
|
2737
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" +
|
|
2735
|
+
return !(a != null && a.useAdditionalWeekYearTokens) && Yd(se) && aa(se, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && Wd(se) && aa(se, e, String(t)), M(E, se, X.localize, H);
|
|
2736
|
+
if (ue.match(Bc))
|
|
2737
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + ue + "`");
|
|
2738
2738
|
return se;
|
|
2739
2739
|
}).join("");
|
|
2740
|
-
return
|
|
2740
|
+
return re;
|
|
2741
2741
|
}
|
|
2742
2742
|
function Rc(t) {
|
|
2743
2743
|
var e = t.match(Hc);
|
|
@@ -3439,12 +3439,12 @@ function Aa() {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
let u;
|
|
3441
3441
|
for (let w = d.getScale(); w > 0; r = u) {
|
|
3442
|
-
const A = w - 1,
|
|
3443
|
-
if (u = r.setScale(A, !1),
|
|
3444
|
-
return s.checkMid(i, l,
|
|
3445
|
-
if (
|
|
3442
|
+
const A = w - 1, g = d.setScale(A, !0);
|
|
3443
|
+
if (u = r.setScale(A, !1), g.compareTo(u) === 0)
|
|
3444
|
+
return s.checkMid(i, l, g);
|
|
3445
|
+
if (g.compareTo(u) > 0)
|
|
3446
3446
|
break;
|
|
3447
|
-
w = A, d =
|
|
3447
|
+
w = A, d = g;
|
|
3448
3448
|
}
|
|
3449
3449
|
let p = s.middleInternal(i, l, d, r), m;
|
|
3450
3450
|
for (let w = p.getScale(); w > 0; w = m) {
|
|
@@ -3712,14 +3712,14 @@ const C0 = { class: "ao-card-template__subitems" }, _0 = { class: "ao-card-templ
|
|
|
3712
3712
|
subtitle: U(() => [
|
|
3713
3713
|
v("ul", C0, [
|
|
3714
3714
|
v("li", _0, [
|
|
3715
|
-
|
|
3715
|
+
S(ce, {
|
|
3716
3716
|
name: "MountainFlagOutlineRounded",
|
|
3717
3717
|
size: "sm"
|
|
3718
3718
|
}),
|
|
3719
3719
|
v("span", g0, q(n.milestones), 1)
|
|
3720
3720
|
]),
|
|
3721
3721
|
v("li", y0, [
|
|
3722
|
-
|
|
3722
|
+
S(ce, {
|
|
3723
3723
|
name: "TaskOutlineRounded",
|
|
3724
3724
|
size: "sm"
|
|
3725
3725
|
}),
|
|
@@ -3731,7 +3731,7 @@ const C0 = { class: "ao-card-template__subitems" }, _0 = { class: "ao-card-templ
|
|
|
3731
3731
|
v("div", w0, [
|
|
3732
3732
|
v("div", $0, [
|
|
3733
3733
|
v("div", M0, [
|
|
3734
|
-
|
|
3734
|
+
S(ce, {
|
|
3735
3735
|
name: "WaterfallChartRounded",
|
|
3736
3736
|
size: "sm"
|
|
3737
3737
|
}),
|
|
@@ -3767,7 +3767,7 @@ const C0 = { class: "ao-card-template__subitems" }, _0 = { class: "ao-card-templ
|
|
|
3767
3767
|
v("span", D0, q(n.$t("template.updatedBy.label")), 1)
|
|
3768
3768
|
]),
|
|
3769
3769
|
v("div", H0, [
|
|
3770
|
-
|
|
3770
|
+
S(gt, { "user-name": n.updatedBy }, null, 8, ["user-name"])
|
|
3771
3771
|
])
|
|
3772
3772
|
])) : T("", !0)
|
|
3773
3773
|
])
|
|
@@ -3869,7 +3869,7 @@ const Z0 = { class: "ao-card-template-item__footer" }, F0 = {
|
|
|
3869
3869
|
v("ul", Z0, [
|
|
3870
3870
|
(f(), h(ve, null, ye(n, (d) => (f(), h(ve, { key: d }, [
|
|
3871
3871
|
i.$props[d] ? (f(), h("li", F0, [
|
|
3872
|
-
|
|
3872
|
+
S(ce, {
|
|
3873
3873
|
name: s[d],
|
|
3874
3874
|
size: "sm"
|
|
3875
3875
|
}, null, 8, ["name"]),
|
|
@@ -3880,7 +3880,7 @@ const Z0 = { class: "ao-card-template-item__footer" }, F0 = {
|
|
|
3880
3880
|
]),
|
|
3881
3881
|
secondary: U(() => [
|
|
3882
3882
|
v("div", z0, [
|
|
3883
|
-
|
|
3883
|
+
S(fe, {
|
|
3884
3884
|
"icon-name": "DeleteOutlineRounded",
|
|
3885
3885
|
variant: "ghost",
|
|
3886
3886
|
size: "md",
|
|
@@ -3968,7 +3968,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
3968
3968
|
onChange: i
|
|
3969
3969
|
}, {
|
|
3970
3970
|
header: U(() => [
|
|
3971
|
-
|
|
3971
|
+
S(Ce, {
|
|
3972
3972
|
title: "Milestones",
|
|
3973
3973
|
level: 3,
|
|
3974
3974
|
class: "ao-list__title"
|
|
@@ -3993,7 +3993,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
3993
3993
|
]),
|
|
3994
3994
|
footer: U(() => [
|
|
3995
3995
|
v("div", K0, [
|
|
3996
|
-
|
|
3996
|
+
S(Je, {
|
|
3997
3997
|
"icon-name": "AddBoxOutlineRounded",
|
|
3998
3998
|
label: l.$t("template.milestones.add"),
|
|
3999
3999
|
onClick: n
|
|
@@ -4058,7 +4058,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
4058
4058
|
onChange: i
|
|
4059
4059
|
}, {
|
|
4060
4060
|
header: U(() => [
|
|
4061
|
-
|
|
4061
|
+
S(Ce, {
|
|
4062
4062
|
title: "Activities",
|
|
4063
4063
|
level: 3,
|
|
4064
4064
|
class: "ao-list__title"
|
|
@@ -4079,7 +4079,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
4079
4079
|
]),
|
|
4080
4080
|
footer: U(() => [
|
|
4081
4081
|
v("div", X0, [
|
|
4082
|
-
|
|
4082
|
+
S(Je, {
|
|
4083
4083
|
"icon-name": "AddBoxOutlineRounded",
|
|
4084
4084
|
label: l.$t("template.activities.add"),
|
|
4085
4085
|
onClick: n
|
|
@@ -4112,7 +4112,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
4112
4112
|
v("div", J0, [
|
|
4113
4113
|
v("div", e3, [
|
|
4114
4114
|
v("div", t3, [
|
|
4115
|
-
|
|
4115
|
+
S(fe, {
|
|
4116
4116
|
"icon-name": "CloseRounded",
|
|
4117
4117
|
variant: "ghost",
|
|
4118
4118
|
color: "primary",
|
|
@@ -4291,7 +4291,7 @@ const p3 = async (t, e, a) => {
|
|
|
4291
4291
|
} = ia(r, n, d), p = n, m = {}, w = 0;
|
|
4292
4292
|
for (let A = 0; A < l.length; A++) {
|
|
4293
4293
|
const {
|
|
4294
|
-
name:
|
|
4294
|
+
name: g,
|
|
4295
4295
|
fn: $
|
|
4296
4296
|
} = l[A], {
|
|
4297
4297
|
x: y,
|
|
@@ -4314,8 +4314,8 @@ const p3 = async (t, e, a) => {
|
|
|
4314
4314
|
});
|
|
4315
4315
|
if (c = y ?? c, u = L ?? u, m = {
|
|
4316
4316
|
...m,
|
|
4317
|
-
[
|
|
4318
|
-
...m[
|
|
4317
|
+
[g]: {
|
|
4318
|
+
...m[g],
|
|
4319
4319
|
...Z
|
|
4320
4320
|
}
|
|
4321
4321
|
}, W && w <= 50) {
|
|
@@ -4354,8 +4354,8 @@ async function Oa(t, e) {
|
|
|
4354
4354
|
elementContext: u = "floating",
|
|
4355
4355
|
altBoundary: p = !1,
|
|
4356
4356
|
padding: m = 0
|
|
4357
|
-
} = H1(e, t), w = v3(m),
|
|
4358
|
-
element: (a = await (o.isElement == null ? void 0 : o.isElement(
|
|
4357
|
+
} = H1(e, t), w = v3(m), g = l[p ? u === "floating" ? "reference" : "floating" : u], $ = e1(await o.getClippingRect({
|
|
4358
|
+
element: (a = await (o.isElement == null ? void 0 : o.isElement(g))) == null || a ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4359
4359
|
boundary: r,
|
|
4360
4360
|
rootBoundary: c,
|
|
4361
4361
|
strategy: d
|
|
@@ -4401,51 +4401,51 @@ const h3 = function(t) {
|
|
|
4401
4401
|
fallbackStrategy: m = "bestFit",
|
|
4402
4402
|
fallbackAxisSideDirection: w = "none",
|
|
4403
4403
|
flipAlignment: A = !0,
|
|
4404
|
-
...
|
|
4404
|
+
...g
|
|
4405
4405
|
} = H1(t, e);
|
|
4406
4406
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4407
4407
|
return {};
|
|
4408
4408
|
const $ = mt(s), y = mt(l) === l, L = await (d.isRTL == null ? void 0 : d.isRTL(r.floating)), Z = p || (y || !A ? [Jt(l)] : u3(l));
|
|
4409
4409
|
!p && w !== "none" && Z.push(...c3(l, A, w, L));
|
|
4410
|
-
const W = [l, ...Z], V = await Oa(e,
|
|
4410
|
+
const W = [l, ...Z], V = await Oa(e, g), X = [];
|
|
4411
4411
|
let te = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4412
4412
|
if (c && X.push(V[$]), u) {
|
|
4413
|
-
const
|
|
4414
|
-
X.push(V[
|
|
4413
|
+
const E = r3(s, i, L);
|
|
4414
|
+
X.push(V[E[0]], V[E[1]]);
|
|
4415
4415
|
}
|
|
4416
4416
|
if (te = [...te, {
|
|
4417
4417
|
placement: s,
|
|
4418
4418
|
overflows: X
|
|
4419
|
-
}], !X.every((
|
|
4420
|
-
var
|
|
4421
|
-
const
|
|
4422
|
-
if (
|
|
4419
|
+
}], !X.every((E) => E <= 0)) {
|
|
4420
|
+
var ee, O;
|
|
4421
|
+
const E = (((ee = o.flip) == null ? void 0 : ee.index) || 0) + 1, H = W[E];
|
|
4422
|
+
if (H)
|
|
4423
4423
|
return {
|
|
4424
4424
|
data: {
|
|
4425
|
-
index:
|
|
4425
|
+
index: E,
|
|
4426
4426
|
overflows: te
|
|
4427
4427
|
},
|
|
4428
4428
|
reset: {
|
|
4429
|
-
placement:
|
|
4429
|
+
placement: H
|
|
4430
4430
|
}
|
|
4431
4431
|
};
|
|
4432
|
-
let
|
|
4433
|
-
if (!
|
|
4432
|
+
let re = (O = te.filter((se) => se.overflows[0] <= 0).sort((se, ue) => se.overflows[1] - ue.overflows[1])[0]) == null ? void 0 : O.placement;
|
|
4433
|
+
if (!re)
|
|
4434
4434
|
switch (m) {
|
|
4435
4435
|
case "bestFit": {
|
|
4436
|
-
var
|
|
4437
|
-
const se = (
|
|
4438
|
-
se && (
|
|
4436
|
+
var _;
|
|
4437
|
+
const se = (_ = te.map((ue) => [ue.placement, ue.overflows.filter((M) => M > 0).reduce((M, F) => M + F, 0)]).sort((ue, M) => ue[1] - M[1])[0]) == null ? void 0 : _[0];
|
|
4438
|
+
se && (re = se);
|
|
4439
4439
|
break;
|
|
4440
4440
|
}
|
|
4441
4441
|
case "initialPlacement":
|
|
4442
|
-
|
|
4442
|
+
re = l;
|
|
4443
4443
|
break;
|
|
4444
4444
|
}
|
|
4445
|
-
if (s !==
|
|
4445
|
+
if (s !== re)
|
|
4446
4446
|
return {
|
|
4447
4447
|
reset: {
|
|
4448
|
-
placement:
|
|
4448
|
+
placement: re
|
|
4449
4449
|
}
|
|
4450
4450
|
};
|
|
4451
4451
|
}
|
|
@@ -4472,18 +4472,18 @@ const h3 = function(t) {
|
|
|
4472
4472
|
} = n.floating;
|
|
4473
4473
|
let w, A;
|
|
4474
4474
|
r === "top" || r === "bottom" ? (w = r, A = c === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (A = r, w = c === "end" ? "top" : "bottom");
|
|
4475
|
-
const
|
|
4476
|
-
let L =
|
|
4475
|
+
const g = m - d[w], $ = p - d[A], y = !e.middlewareData.shift;
|
|
4476
|
+
let L = g, Z = $;
|
|
4477
4477
|
if (u) {
|
|
4478
4478
|
const V = p - d.left - d.right;
|
|
4479
4479
|
Z = c || y ? Lt($, V) : V;
|
|
4480
4480
|
} else {
|
|
4481
4481
|
const V = m - d.top - d.bottom;
|
|
4482
|
-
L = c || y ? Lt(
|
|
4482
|
+
L = c || y ? Lt(g, V) : V;
|
|
4483
4483
|
}
|
|
4484
4484
|
if (y && !c) {
|
|
4485
|
-
const V = Ae(d.left, 0), X = Ae(d.right, 0), te = Ae(d.top, 0),
|
|
4486
|
-
u ? Z = p - 2 * (V !== 0 || X !== 0 ? V + X : Ae(d.left, d.right)) : L = m - 2 * (te !== 0 ||
|
|
4485
|
+
const V = Ae(d.left, 0), X = Ae(d.right, 0), te = Ae(d.top, 0), ee = Ae(d.bottom, 0);
|
|
4486
|
+
u ? Z = p - 2 * (V !== 0 || X !== 0 ? V + X : Ae(d.left, d.right)) : L = m - 2 * (te !== 0 || ee !== 0 ? te + ee : Ae(d.top, d.bottom));
|
|
4487
4487
|
}
|
|
4488
4488
|
await i({
|
|
4489
4489
|
...e,
|
|
@@ -4637,7 +4637,7 @@ function at(t, e, a, n) {
|
|
|
4637
4637
|
const p = we(o), m = n && je(n) ? we(n) : n;
|
|
4638
4638
|
let w = p.frameElement;
|
|
4639
4639
|
for (; w && n && m !== p; ) {
|
|
4640
|
-
const A = pt(w),
|
|
4640
|
+
const A = pt(w), g = w.getBoundingClientRect(), $ = Ie(w), y = g.left + (w.clientLeft + parseFloat($.paddingLeft)) * A.x, L = g.top + (w.clientTop + parseFloat($.paddingTop)) * A.y;
|
|
4641
4641
|
d *= A.x, r *= A.y, c *= A.x, u *= A.y, d += y, r += L, w = we(w).frameElement;
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
@@ -4849,8 +4849,8 @@ function V3(t, e) {
|
|
|
4849
4849
|
} = t.getBoundingClientRect();
|
|
4850
4850
|
if (l || e(), !u || !p)
|
|
4851
4851
|
return;
|
|
4852
|
-
const m = Kt(c), w = Kt(s.clientWidth - (r + u)), A = Kt(s.clientHeight - (c + p)),
|
|
4853
|
-
rootMargin: -m + "px " + -w + "px " + -A + "px " + -
|
|
4852
|
+
const m = Kt(c), w = Kt(s.clientWidth - (r + u)), A = Kt(s.clientHeight - (c + p)), g = Kt(r), y = {
|
|
4853
|
+
rootMargin: -m + "px " + -w + "px " + -A + "px " + -g + "px",
|
|
4854
4854
|
threshold: Ae(0, Lt(1, d)) || 1
|
|
4855
4855
|
};
|
|
4856
4856
|
let L = !0;
|
|
@@ -4901,10 +4901,10 @@ function D3(t, e, a, n) {
|
|
|
4901
4901
|
})), a();
|
|
4902
4902
|
}), r && !d && m.observe(r), m.observe(e));
|
|
4903
4903
|
let w, A = d ? at(t) : null;
|
|
4904
|
-
d &&
|
|
4905
|
-
function
|
|
4904
|
+
d && g();
|
|
4905
|
+
function g() {
|
|
4906
4906
|
const $ = at(t);
|
|
4907
|
-
A && ($.x !== A.x || $.y !== A.y || $.width !== A.width || $.height !== A.height) && a(), A = $, w = requestAnimationFrame(
|
|
4907
|
+
A && ($.x !== A.x || $.y !== A.y || $.width !== A.width || $.height !== A.height) && a(), A = $, w = requestAnimationFrame(g);
|
|
4908
4908
|
}
|
|
4909
4909
|
return a(), () => {
|
|
4910
4910
|
c.forEach(($) => {
|
|
@@ -5027,12 +5027,12 @@ function R3(t, e, a) {
|
|
|
5027
5027
|
}, p = (m) => {
|
|
5028
5028
|
if (n && n.value) {
|
|
5029
5029
|
let A = (m.clipboardData || /* istanbul ignore next */
|
|
5030
|
-
window.clipboardData).getData("Text"),
|
|
5031
|
-
typeof
|
|
5030
|
+
window.clipboardData).getData("Text"), g = n.value;
|
|
5031
|
+
typeof g == "string" && (g = new RegExp(g)), A.split("").every(($) => !!$.match(g)) || m.preventDefault();
|
|
5032
5032
|
}
|
|
5033
5033
|
e.emit("paste", m, s);
|
|
5034
5034
|
};
|
|
5035
|
-
return
|
|
5035
|
+
return de(l, (m) => {
|
|
5036
5036
|
!o.value && m && i(), e.emit("search-change", m, s);
|
|
5037
5037
|
}), {
|
|
5038
5038
|
search: l,
|
|
@@ -5082,7 +5082,7 @@ function F3(t, e, a) {
|
|
|
5082
5082
|
multipleLabel: m,
|
|
5083
5083
|
object: w,
|
|
5084
5084
|
loading: A,
|
|
5085
|
-
delay:
|
|
5085
|
+
delay: g,
|
|
5086
5086
|
resolveOnLoad: $,
|
|
5087
5087
|
minChars: y,
|
|
5088
5088
|
filterResults: L,
|
|
@@ -5091,14 +5091,14 @@ function F3(t, e, a) {
|
|
|
5091
5091
|
valueProp: V,
|
|
5092
5092
|
allowAbsent: X,
|
|
5093
5093
|
groupLabel: te,
|
|
5094
|
-
canDeselect:
|
|
5095
|
-
max:
|
|
5096
|
-
strict:
|
|
5097
|
-
closeOnSelect:
|
|
5098
|
-
closeOnDeselect:
|
|
5099
|
-
groups:
|
|
5094
|
+
canDeselect: ee,
|
|
5095
|
+
max: O,
|
|
5096
|
+
strict: _,
|
|
5097
|
+
closeOnSelect: E,
|
|
5098
|
+
closeOnDeselect: H,
|
|
5099
|
+
groups: re,
|
|
5100
5100
|
reverse: se,
|
|
5101
|
-
infinite:
|
|
5101
|
+
infinite: ue,
|
|
5102
5102
|
groupOptions: M,
|
|
5103
5103
|
groupHideEmpty: F,
|
|
5104
5104
|
groupSelect: j,
|
|
@@ -5106,8 +5106,8 @@ function F3(t, e, a) {
|
|
|
5106
5106
|
disabledProp: oe,
|
|
5107
5107
|
searchStart: k,
|
|
5108
5108
|
searchFilter: K
|
|
5109
|
-
} = $e(t), ie = st().proxy,
|
|
5110
|
-
if (
|
|
5109
|
+
} = $e(t), ie = st().proxy, P = a.iv, I = a.ev, R = a.search, me = a.clearSearch, Me = a.update, ja = a.pointer, it = a.clearPointer, Za = a.focus, Fa = a.deactivate, ot = a.close, qa = a.localize, yt = Q([]), Fe = Q([]), Le = Q(!1), p1 = Q(null), h1 = Q(ue.value && i.value === -1 ? 10 : i.value), F1 = b(() => d.value || r.value || !1), za = b(() => u.value !== void 0 ? u.value : p.value !== void 0 ? p.value : !0), qe = b(() => {
|
|
5110
|
+
if (re.value) {
|
|
5111
5111
|
let C = jt.value || /* istanbul ignore next */
|
|
5112
5112
|
[], D = [];
|
|
5113
5113
|
return C.forEach((ne) => {
|
|
@@ -5127,7 +5127,7 @@ function F3(t, e, a) {
|
|
|
5127
5127
|
let C = q1.value;
|
|
5128
5128
|
return h1.value > 0 && (C = C.slice(0, h1.value)), C;
|
|
5129
5129
|
}), jt = b(() => {
|
|
5130
|
-
if (!
|
|
5130
|
+
if (!re.value)
|
|
5131
5131
|
return [];
|
|
5132
5132
|
let C = [], D = Fe.value || /* istanbul ignore next */
|
|
5133
5133
|
[];
|
|
@@ -5144,7 +5144,7 @@ function F3(t, e, a) {
|
|
|
5144
5144
|
__CREATE__: !0
|
|
5145
5145
|
}].concat(C)), C;
|
|
5146
5146
|
}), z1 = b(() => {
|
|
5147
|
-
if (!
|
|
5147
|
+
if (!re.value)
|
|
5148
5148
|
return [];
|
|
5149
5149
|
let C = Wa.value;
|
|
5150
5150
|
return ls((C || /* istanbul ignore next */
|
|
@@ -5161,12 +5161,12 @@ function F3(t, e, a) {
|
|
|
5161
5161
|
}), m1 = b(() => {
|
|
5162
5162
|
switch (s.value) {
|
|
5163
5163
|
case "single":
|
|
5164
|
-
return !De(
|
|
5164
|
+
return !De(P.value[V.value]);
|
|
5165
5165
|
case "multiple":
|
|
5166
5166
|
case "tags":
|
|
5167
|
-
return !De(
|
|
5167
|
+
return !De(P.value) && P.value.length > 0;
|
|
5168
5168
|
}
|
|
5169
|
-
}), Ya = b(() => m !== void 0 && m.value !== void 0 ? m.value(
|
|
5169
|
+
}), Ya = b(() => m !== void 0 && m.value !== void 0 ? m.value(P.value, ie) : P.value && P.value.length > 1 ? `${P.value.length} options selected` : "1 option selected"), Ka = b(() => !qe.value.length && !Le.value && !lt.value.length), Ga = b(() => qe.value.length > 0 && bt.value.length == 0 && (R.value && re.value || !re.value)), lt = b(() => F1.value === !1 || !R.value ? [] : ns(R.value) !== -1 ? [] : [{
|
|
5170
5170
|
[V.value]: R.value,
|
|
5171
5171
|
[Ve.value]: R.value,
|
|
5172
5172
|
[c.value]: R.value,
|
|
@@ -5186,7 +5186,7 @@ function F3(t, e, a) {
|
|
|
5186
5186
|
break;
|
|
5187
5187
|
case "multiple":
|
|
5188
5188
|
case "tags":
|
|
5189
|
-
Me(
|
|
5189
|
+
Me(P.value.concat(C));
|
|
5190
5190
|
break;
|
|
5191
5191
|
}
|
|
5192
5192
|
e.emit("select", W1(C), C, ie);
|
|
@@ -5197,7 +5197,7 @@ function F3(t, e, a) {
|
|
|
5197
5197
|
break;
|
|
5198
5198
|
case "tags":
|
|
5199
5199
|
case "multiple":
|
|
5200
|
-
Me(Array.isArray(C) ?
|
|
5200
|
+
Me(Array.isArray(C) ? P.value.filter((D) => C.map((ne) => ne[V.value]).indexOf(D[V.value]) === -1) : P.value.filter((D) => D[V.value] != C[V.value]));
|
|
5201
5201
|
break;
|
|
5202
5202
|
}
|
|
5203
5203
|
e.emit("deselect", W1(C), C, ie);
|
|
@@ -5216,12 +5216,12 @@ function F3(t, e, a) {
|
|
|
5216
5216
|
return s.value === "single" ? !1 : ss(C[M.value]) && C[M.value].length;
|
|
5217
5217
|
switch (s.value) {
|
|
5218
5218
|
case "single":
|
|
5219
|
-
return !De(
|
|
5219
|
+
return !De(P.value) && P.value[V.value] == C[V.value];
|
|
5220
5220
|
case "tags":
|
|
5221
5221
|
case "multiple":
|
|
5222
|
-
return !De(
|
|
5222
|
+
return !De(P.value) && P.value.map((D) => D[V.value]).indexOf(C[V.value]) !== -1;
|
|
5223
5223
|
}
|
|
5224
|
-
}, C1 = (C) => C[oe.value] === !0, _1 = () =>
|
|
5224
|
+
}, C1 = (C) => C[oe.value] === !0, _1 = () => O === void 0 || O.value === -1 || !m1.value && O.value > 0 ? !1 : P.value.length >= O.value, Ja = (C) => {
|
|
5225
5225
|
if (!C1(C)) {
|
|
5226
5226
|
if (ae && ae.value && !Ne(C) && C.__CREATE__ && (C = { ...C }, delete C.__CREATE__, C = ae.value(C, ie), C instanceof Promise)) {
|
|
5227
5227
|
Le.value = !0, C.then((D) => {
|
|
@@ -5235,46 +5235,46 @@ function F3(t, e, a) {
|
|
|
5235
5235
|
switch (C.__CREATE__ && (C = { ...C }, delete C.__CREATE__), s.value) {
|
|
5236
5236
|
case "single":
|
|
5237
5237
|
if (C && Ne(C)) {
|
|
5238
|
-
|
|
5238
|
+
ee.value && ut(C), H.value && (it(), ot());
|
|
5239
5239
|
return;
|
|
5240
5240
|
}
|
|
5241
|
-
C && g1(C), W.value && me(),
|
|
5241
|
+
C && g1(C), W.value && me(), E.value && (it(), ot()), C && rt(C);
|
|
5242
5242
|
break;
|
|
5243
5243
|
case "multiple":
|
|
5244
5244
|
if (C && Ne(C)) {
|
|
5245
|
-
ut(C),
|
|
5245
|
+
ut(C), H.value && (it(), ot());
|
|
5246
5246
|
return;
|
|
5247
5247
|
}
|
|
5248
5248
|
if (_1()) {
|
|
5249
5249
|
e.emit("max", ie);
|
|
5250
5250
|
return;
|
|
5251
5251
|
}
|
|
5252
|
-
C && (g1(C), rt(C)), W.value && me(), l.value && it(),
|
|
5252
|
+
C && (g1(C), rt(C)), W.value && me(), l.value && it(), E.value && ot();
|
|
5253
5253
|
break;
|
|
5254
5254
|
case "tags":
|
|
5255
5255
|
if (C && Ne(C)) {
|
|
5256
|
-
ut(C),
|
|
5256
|
+
ut(C), H.value && (it(), ot());
|
|
5257
5257
|
return;
|
|
5258
5258
|
}
|
|
5259
5259
|
if (_1()) {
|
|
5260
5260
|
e.emit("max", ie);
|
|
5261
5261
|
return;
|
|
5262
5262
|
}
|
|
5263
|
-
C && g1(C), W.value && me(), C && rt(C), l.value && it(),
|
|
5263
|
+
C && g1(C), W.value && me(), C && rt(C), l.value && it(), E.value && ot();
|
|
5264
5264
|
break;
|
|
5265
5265
|
}
|
|
5266
|
-
|
|
5266
|
+
E.value || Za();
|
|
5267
5267
|
}, es = (C) => {
|
|
5268
5268
|
if (!(C1(C) || s.value === "single" || !j.value)) {
|
|
5269
5269
|
switch (s.value) {
|
|
5270
5270
|
case "multiple":
|
|
5271
5271
|
case "tags":
|
|
5272
5272
|
as(C[M.value]) ? ut(C[M.value]) : rt(
|
|
5273
|
-
C[M.value].filter((D) =>
|
|
5273
|
+
C[M.value].filter((D) => P.value.map((ne) => ne[V.value]).indexOf(D[V.value]) === -1).filter((D) => !D[oe.value]).filter((D, ne) => P.value.length + 1 + ne <= O.value || O.value === -1)
|
|
5274
5274
|
);
|
|
5275
5275
|
break;
|
|
5276
5276
|
}
|
|
5277
|
-
|
|
5277
|
+
E.value && Fa();
|
|
5278
5278
|
}
|
|
5279
5279
|
}, g1 = (C) => {
|
|
5280
5280
|
Re(C[V.value]) === void 0 && F1.value && (e.emit("tag", C[V.value], ie), e.emit("option", C[V.value], ie), e.emit("create", C[V.value], ie), za.value && os(C), me());
|
|
@@ -5291,8 +5291,8 @@ function F3(t, e, a) {
|
|
|
5291
5291
|
if (R.value && L.value) {
|
|
5292
5292
|
let pe = K.value;
|
|
5293
5293
|
pe || (pe = (wt, a8) => {
|
|
5294
|
-
let X1 = k1(qa(wt[Ve.value]),
|
|
5295
|
-
return k.value ? X1.startsWith(k1(R.value,
|
|
5294
|
+
let X1 = k1(qa(wt[Ve.value]), _.value);
|
|
5295
|
+
return k.value ? X1.startsWith(k1(R.value, _.value)) : X1.indexOf(k1(R.value, _.value)) !== -1;
|
|
5296
5296
|
}), ne = ne.filter(pe);
|
|
5297
5297
|
}
|
|
5298
5298
|
return l.value && D && (ne = ne.filter((pe) => !is(pe))), ne;
|
|
@@ -5303,7 +5303,7 @@ function F3(t, e, a) {
|
|
|
5303
5303
|
return { [V.value]: ne, [Ve.value]: pe, [c.value]: pe };
|
|
5304
5304
|
})), D = D.map((ne) => typeof ne == "object" ? ne : { [V.value]: ne, [Ve.value]: ne, [c.value]: ne }), D;
|
|
5305
5305
|
}, Zt = () => {
|
|
5306
|
-
De(
|
|
5306
|
+
De(I.value) || (P.value = qt(I.value));
|
|
5307
5307
|
}, Ft = (C) => (Le.value = !0, new Promise((D, ne) => {
|
|
5308
5308
|
n.value(R.value, ie).then((pe) => {
|
|
5309
5309
|
Fe.value = pe || [], typeof C == "function" && C(pe), Le.value = !1;
|
|
@@ -5315,17 +5315,17 @@ function F3(t, e, a) {
|
|
|
5315
5315
|
})), w1 = () => {
|
|
5316
5316
|
if (m1.value)
|
|
5317
5317
|
if (s.value === "single") {
|
|
5318
|
-
let C = Re(
|
|
5318
|
+
let C = Re(P.value[V.value]);
|
|
5319
5319
|
if (C !== void 0) {
|
|
5320
5320
|
let D = C[c.value];
|
|
5321
|
-
|
|
5321
|
+
P.value[c.value] = D, w.value && (I.value[c.value] = D);
|
|
5322
5322
|
}
|
|
5323
5323
|
} else
|
|
5324
|
-
|
|
5325
|
-
let ne = Re(
|
|
5324
|
+
P.value.forEach((C, D) => {
|
|
5325
|
+
let ne = Re(P.value[D][V.value]);
|
|
5326
5326
|
if (ne !== void 0) {
|
|
5327
5327
|
let pe = ne[c.value];
|
|
5328
|
-
|
|
5328
|
+
P.value[D][c.value] = pe, w.value && (I.value[D][c.value] = pe);
|
|
5329
5329
|
}
|
|
5330
5330
|
});
|
|
5331
5331
|
}, rs = (C) => {
|
|
@@ -5339,7 +5339,7 @@ function F3(t, e, a) {
|
|
|
5339
5339
|
[V.value]: D,
|
|
5340
5340
|
[Ve.value]: D
|
|
5341
5341
|
}), x1 = () => {
|
|
5342
|
-
p1.value =
|
|
5342
|
+
p1.value = de(R, (C) => {
|
|
5343
5343
|
C.length < y.value || !C && y.value !== 0 || (Le.value = !0, Z.value && (Fe.value = []), setTimeout(() => {
|
|
5344
5344
|
C == R.value && n.value(R.value, ie).then((D) => {
|
|
5345
5345
|
(C == R.value || !R.value) && (Fe.value = D, ja.value = bt.value.filter((ne) => ne[oe.value] !== !0)[0] || null, Le.value = !1);
|
|
@@ -5349,30 +5349,30 @@ function F3(t, e, a) {
|
|
|
5349
5349
|
console.error(D);
|
|
5350
5350
|
}
|
|
5351
5351
|
);
|
|
5352
|
-
},
|
|
5352
|
+
}, g.value));
|
|
5353
5353
|
}, { flush: "sync" });
|
|
5354
5354
|
};
|
|
5355
|
-
if (s.value !== "single" && !De(
|
|
5355
|
+
if (s.value !== "single" && !De(I.value) && !Array.isArray(I.value))
|
|
5356
5356
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5357
|
-
return n && typeof n.value == "function" ? $.value ? Ft(Zt) : w.value == !0 && Zt() : (Fe.value = n.value, Zt()),
|
|
5357
|
+
return n && typeof n.value == "function" ? $.value ? Ft(Zt) : w.value == !0 && Zt() : (Fe.value = n.value, Zt()), g.value > -1 && x1(), de(g, (C, D) => {
|
|
5358
5358
|
p1.value && p1.value(), C >= 0 && x1();
|
|
5359
|
-
}),
|
|
5359
|
+
}), de(I, (C) => {
|
|
5360
5360
|
if (De(C)) {
|
|
5361
5361
|
Me(qt(C), !1);
|
|
5362
5362
|
return;
|
|
5363
5363
|
}
|
|
5364
5364
|
switch (s.value) {
|
|
5365
5365
|
case "single":
|
|
5366
|
-
(w.value ? C[V.value] !=
|
|
5366
|
+
(w.value ? C[V.value] != P.value[V.value] : C != P.value[V.value]) && Me(qt(C), !1);
|
|
5367
5367
|
break;
|
|
5368
5368
|
case "multiple":
|
|
5369
5369
|
case "tags":
|
|
5370
|
-
Z3(w.value ? C.map((D) => D[V.value]) : C,
|
|
5370
|
+
Z3(w.value ? C.map((D) => D[V.value]) : C, P.value.map((D) => D[V.value])) || Me(qt(C), !1);
|
|
5371
5371
|
break;
|
|
5372
5372
|
}
|
|
5373
|
-
}, { deep: !0 }),
|
|
5374
|
-
typeof t.options == "function" ? $.value && (!D || C && C.toString() !== D.toString()) && Ft() : (Fe.value = t.options, Object.keys(
|
|
5375
|
-
}),
|
|
5373
|
+
}, { deep: !0 }), de(n, (C, D) => {
|
|
5374
|
+
typeof t.options == "function" ? $.value && (!D || C && C.toString() !== D.toString()) && Ft() : (Fe.value = t.options, Object.keys(P.value).length || Zt(), w1());
|
|
5375
|
+
}), de(c, w1), {
|
|
5376
5376
|
pfo: q1,
|
|
5377
5377
|
fo: bt,
|
|
5378
5378
|
filteredOptions: bt,
|
|
@@ -5417,66 +5417,66 @@ function q3(t, e, a) {
|
|
|
5417
5417
|
groupSelect: r,
|
|
5418
5418
|
disabledProp: c,
|
|
5419
5419
|
groupOptions: u
|
|
5420
|
-
} = $e(t), p = a.fo, m = a.fg, w = a.handleOptionClick, A = a.handleGroupClick,
|
|
5421
|
-
const
|
|
5420
|
+
} = $e(t), p = a.fo, m = a.fg, w = a.handleOptionClick, A = a.handleGroupClick, g = a.search, $ = a.pointer, y = a.setPointer, L = a.clearPointer, Z = a.multiselect, W = a.isOpen, V = b(() => p.value.filter((I) => !I[c.value])), X = b(() => m.value.filter((I) => !I[c.value])), te = b(() => d.value !== "single" && r.value), ee = b(() => $.value && $.value.group), O = b(() => ie($.value)), _ = b(() => {
|
|
5421
|
+
const I = ee.value ? $.value : (
|
|
5422
5422
|
/* istanbul ignore next */
|
|
5423
5423
|
ie($.value)
|
|
5424
|
-
), R = X.value.map((Me) => Me[i.value]).indexOf(
|
|
5424
|
+
), R = X.value.map((Me) => Me[i.value]).indexOf(I[i.value]);
|
|
5425
5425
|
let me = X.value[R - 1];
|
|
5426
|
-
return me === void 0 && (me =
|
|
5427
|
-
}),
|
|
5428
|
-
let
|
|
5429
|
-
return X.value.length <=
|
|
5430
|
-
}),
|
|
5431
|
-
const
|
|
5432
|
-
return
|
|
5433
|
-
}),
|
|
5434
|
-
const
|
|
5435
|
-
return
|
|
5436
|
-
}), M = b(() => [...
|
|
5426
|
+
return me === void 0 && (me = H.value), me;
|
|
5427
|
+
}), E = b(() => {
|
|
5428
|
+
let I = X.value.map((R) => R.label).indexOf(ee.value ? $.value[i.value] : ie($.value)[i.value]) + 1;
|
|
5429
|
+
return X.value.length <= I && (I = 0), X.value[I];
|
|
5430
|
+
}), H = b(() => [...X.value].slice(-1)[0]), re = b(() => $.value.__VISIBLE__.filter((I) => !I[c.value])[0]), se = b(() => {
|
|
5431
|
+
const I = O.value.__VISIBLE__.filter((R) => !R[c.value]);
|
|
5432
|
+
return I[I.map((R) => R[n.value]).indexOf($.value[n.value]) - 1];
|
|
5433
|
+
}), ue = b(() => {
|
|
5434
|
+
const I = ie($.value).__VISIBLE__.filter((R) => !R[c.value]);
|
|
5435
|
+
return I[I.map((R) => R[n.value]).indexOf($.value[n.value]) + 1];
|
|
5436
|
+
}), M = b(() => [..._.value.__VISIBLE__.filter((I) => !I[c.value])].slice(-1)[0]), F = b(() => [...H.value.__VISIBLE__.filter((I) => !I[c.value])].slice(-1)[0]), j = (I) => $.value && (!I.group && $.value[n.value] === I[n.value] || I.group !== void 0 && $.value[i.value] === I[i.value]) ? !0 : void 0, ae = () => {
|
|
5437
5437
|
y(V.value[0] || null);
|
|
5438
5438
|
}, oe = () => {
|
|
5439
|
-
!$.value || $.value[c.value] === !0 || (
|
|
5439
|
+
!$.value || $.value[c.value] === !0 || (ee.value ? A($.value) : w($.value));
|
|
5440
5440
|
}, k = () => {
|
|
5441
5441
|
if ($.value === null)
|
|
5442
5442
|
y((l.value && te.value ? X.value[0].__CREATE__ ? V.value[0] : X.value[0] : V.value[0]) || null);
|
|
5443
5443
|
else if (l.value && te.value) {
|
|
5444
|
-
let
|
|
5445
|
-
|
|
5444
|
+
let I = ee.value ? re.value : ue.value;
|
|
5445
|
+
I === void 0 && (I = E.value, I.__CREATE__ && (I = I[u.value][0])), y(I || /* istanbul ignore next */
|
|
5446
5446
|
null);
|
|
5447
5447
|
} else {
|
|
5448
|
-
let
|
|
5449
|
-
V.value.length <=
|
|
5448
|
+
let I = V.value.map((R) => R[n.value]).indexOf($.value[n.value]) + 1;
|
|
5449
|
+
V.value.length <= I && (I = 0), y(V.value[I] || null);
|
|
5450
5450
|
}
|
|
5451
5451
|
Oe(() => {
|
|
5452
|
-
|
|
5452
|
+
P();
|
|
5453
5453
|
});
|
|
5454
5454
|
}, K = () => {
|
|
5455
5455
|
if ($.value === null) {
|
|
5456
|
-
let
|
|
5457
|
-
l.value && te.value && (
|
|
5456
|
+
let I = V.value[V.value.length - 1];
|
|
5457
|
+
l.value && te.value && (I = F.value, I === void 0 && (I = H.value)), y(I || null);
|
|
5458
5458
|
} else if (l.value && te.value) {
|
|
5459
|
-
let
|
|
5460
|
-
|
|
5459
|
+
let I = ee.value ? M.value : se.value;
|
|
5460
|
+
I === void 0 && (I = ee.value ? _.value : O.value, I.__CREATE__ && (I = M.value, I === void 0 && (I = _.value))), y(I || /* istanbul ignore next */
|
|
5461
5461
|
null);
|
|
5462
5462
|
} else {
|
|
5463
|
-
let
|
|
5464
|
-
|
|
5463
|
+
let I = V.value.map((R) => R[n.value]).indexOf($.value[n.value]) - 1;
|
|
5464
|
+
I < 0 && (I = V.value.length - 1), y(V.value[I] || null);
|
|
5465
5465
|
}
|
|
5466
5466
|
Oe(() => {
|
|
5467
|
-
|
|
5467
|
+
P();
|
|
5468
5468
|
});
|
|
5469
|
-
}, ie = (
|
|
5470
|
-
let
|
|
5471
|
-
if (!
|
|
5469
|
+
}, ie = (I) => X.value.find((R) => R.__VISIBLE__.map((me) => me[n.value]).indexOf(I[n.value]) !== -1), P = () => {
|
|
5470
|
+
let I = Z.value.querySelector("[data-pointed]");
|
|
5471
|
+
if (!I)
|
|
5472
5472
|
return;
|
|
5473
|
-
let R =
|
|
5474
|
-
l.value && (R =
|
|
5473
|
+
let R = I.parentElement.parentElement;
|
|
5474
|
+
l.value && (R = ee.value ? I.parentElement.parentElement.parentElement : I.parentElement.parentElement.parentElement.parentElement), I.offsetTop + I.offsetHeight > R.clientHeight + R.scrollTop && (R.scrollTop = I.offsetTop + I.offsetHeight - R.clientHeight), I.offsetTop < R.scrollTop && (R.scrollTop = I.offsetTop);
|
|
5475
5475
|
};
|
|
5476
|
-
return
|
|
5477
|
-
o.value && (
|
|
5478
|
-
}),
|
|
5479
|
-
if (
|
|
5476
|
+
return de(g, (I) => {
|
|
5477
|
+
o.value && (I.length && s.value ? ae() : L());
|
|
5478
|
+
}), de(W, (I) => {
|
|
5479
|
+
if (I) {
|
|
5480
5480
|
let R = Z.value.querySelectorAll("[data-selected]")[0];
|
|
5481
5481
|
if (!R)
|
|
5482
5482
|
return;
|
|
@@ -5508,12 +5508,12 @@ function z3(t, e, a) {
|
|
|
5508
5508
|
};
|
|
5509
5509
|
}
|
|
5510
5510
|
function W3(t, e, a) {
|
|
5511
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = $e(t), i = a.input, l = a.open, d = a.close, r = a.clearSearch, c = a.isOpen, u = Q(null), p = Q(null), m = Q(null), w = Q(!1), A = Q(!1),
|
|
5511
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = $e(t), i = a.input, l = a.open, d = a.close, r = a.clearSearch, c = a.isOpen, u = Q(null), p = Q(null), m = Q(null), w = Q(!1), A = Q(!1), g = b(() => n.value || s.value ? -1 : 0), $ = () => {
|
|
5512
5512
|
n.value && i.value.blur(), p.value.blur();
|
|
5513
5513
|
}, y = () => {
|
|
5514
5514
|
n.value && !s.value && i.value.focus();
|
|
5515
|
-
}, L = (
|
|
5516
|
-
s.value || (w.value = !0,
|
|
5515
|
+
}, L = (ee = !0) => {
|
|
5516
|
+
s.value || (w.value = !0, ee && l());
|
|
5517
5517
|
}, Z = () => {
|
|
5518
5518
|
w.value = !1, setTimeout(() => {
|
|
5519
5519
|
w.value || (d(), o.value && r());
|
|
@@ -5523,15 +5523,15 @@ function W3(t, e, a) {
|
|
|
5523
5523
|
multiselect: u,
|
|
5524
5524
|
wrapper: p,
|
|
5525
5525
|
tags: m,
|
|
5526
|
-
tabindex:
|
|
5526
|
+
tabindex: g,
|
|
5527
5527
|
isActive: w,
|
|
5528
5528
|
mouseClicked: A,
|
|
5529
5529
|
blur: $,
|
|
5530
5530
|
focus: y,
|
|
5531
5531
|
activate: L,
|
|
5532
5532
|
deactivate: Z,
|
|
5533
|
-
handleFocusIn: (
|
|
5534
|
-
|
|
5533
|
+
handleFocusIn: (ee) => {
|
|
5534
|
+
ee.target.closest("[data-tags]") && ee.target.nodeName !== "INPUT" || ee.target.closest("[data-clear]") || L(A.value);
|
|
5535
5535
|
},
|
|
5536
5536
|
handleFocusOut: () => {
|
|
5537
5537
|
Z();
|
|
@@ -5539,8 +5539,8 @@ function W3(t, e, a) {
|
|
|
5539
5539
|
handleCaretClick: () => {
|
|
5540
5540
|
Z(), $();
|
|
5541
5541
|
},
|
|
5542
|
-
handleMousedown: (
|
|
5543
|
-
A.value = !0, c.value && (
|
|
5542
|
+
handleMousedown: (ee) => {
|
|
5543
|
+
A.value = !0, c.value && (ee.target.isEqualNode(p.value) || ee.target.isEqualNode(m.value)) ? setTimeout(() => {
|
|
5544
5544
|
Z();
|
|
5545
5545
|
}, 0) : document.activeElement.isEqualNode(p.value) && !c.value && L(), setTimeout(() => {
|
|
5546
5546
|
A.value = !1;
|
|
@@ -5561,9 +5561,9 @@ function Y3(t, e, a) {
|
|
|
5561
5561
|
createTag: u,
|
|
5562
5562
|
createOption: p,
|
|
5563
5563
|
reverse: m
|
|
5564
|
-
} = $e(t), w = st().proxy, A = a.iv,
|
|
5565
|
-
n.value === "tags" && !l.value &&
|
|
5566
|
-
},
|
|
5564
|
+
} = $e(t), w = st().proxy, A = a.iv, g = a.update, $ = a.search, y = a.setPointer, L = a.selectPointer, Z = a.backwardPointer, W = a.forwardPointer, V = a.multiselect, X = a.wrapper, te = a.tags, ee = a.isOpen, O = a.open, _ = a.blur, E = a.fo, H = b(() => u.value || p.value || !1), re = b(() => s.value !== void 0 ? s.value : c.value !== void 0 ? c.value : ["enter"]), se = () => {
|
|
5565
|
+
n.value === "tags" && !l.value && H.value && i.value && !r.value && y(E.value[E.value.map((j) => j[d.value]).indexOf($.value)]);
|
|
5566
|
+
}, ue = (j) => {
|
|
5567
5567
|
let ae = j.length - 1;
|
|
5568
5568
|
for (; ae >= 0 && (j[ae].remove === !1 || j[ae].disabled); )
|
|
5569
5569
|
ae--;
|
|
@@ -5577,49 +5577,49 @@ function Y3(t, e, a) {
|
|
|
5577
5577
|
case "Backspace":
|
|
5578
5578
|
if (n.value === "single" || i.value && [null, ""].indexOf($.value) === -1 || A.value.length === 0)
|
|
5579
5579
|
return;
|
|
5580
|
-
|
|
5580
|
+
g(ue([...A.value]));
|
|
5581
5581
|
break;
|
|
5582
5582
|
case "Enter":
|
|
5583
5583
|
if (j.preventDefault(), j.keyCode === 229)
|
|
5584
5584
|
return;
|
|
5585
5585
|
if (oe !== -1 && oe !== void 0) {
|
|
5586
|
-
|
|
5586
|
+
g([...A.value].filter((k, K) => K !== oe)), oe === ae.length - 1 && (ae.length - 1 ? ae[ae.length - 2].focus() : i.value ? te.value.querySelector("input").focus() : X.value.focus());
|
|
5587
5587
|
return;
|
|
5588
5588
|
}
|
|
5589
|
-
if (
|
|
5589
|
+
if (re.value.indexOf("enter") === -1 && H.value)
|
|
5590
5590
|
return;
|
|
5591
5591
|
se(), L();
|
|
5592
5592
|
break;
|
|
5593
5593
|
case " ":
|
|
5594
|
-
if (!
|
|
5594
|
+
if (!H.value && !i.value) {
|
|
5595
5595
|
j.preventDefault(), se(), L();
|
|
5596
5596
|
return;
|
|
5597
5597
|
}
|
|
5598
|
-
if (!
|
|
5598
|
+
if (!H.value)
|
|
5599
5599
|
return !1;
|
|
5600
|
-
if (
|
|
5600
|
+
if (re.value.indexOf("space") === -1 && H.value)
|
|
5601
5601
|
return;
|
|
5602
5602
|
j.preventDefault(), se(), L();
|
|
5603
5603
|
break;
|
|
5604
5604
|
case "Tab":
|
|
5605
5605
|
case ";":
|
|
5606
5606
|
case ",":
|
|
5607
|
-
if (
|
|
5607
|
+
if (re.value.indexOf(j.key.toLowerCase()) === -1 || !H.value)
|
|
5608
5608
|
return;
|
|
5609
5609
|
se(), L(), j.preventDefault();
|
|
5610
5610
|
break;
|
|
5611
5611
|
case "Escape":
|
|
5612
|
-
|
|
5612
|
+
_();
|
|
5613
5613
|
break;
|
|
5614
5614
|
case "ArrowUp":
|
|
5615
5615
|
if (j.preventDefault(), !l.value)
|
|
5616
5616
|
return;
|
|
5617
|
-
|
|
5617
|
+
ee.value || O(), Z();
|
|
5618
5618
|
break;
|
|
5619
5619
|
case "ArrowDown":
|
|
5620
5620
|
if (j.preventDefault(), !l.value)
|
|
5621
5621
|
return;
|
|
5622
|
-
|
|
5622
|
+
ee.value || O(), W();
|
|
5623
5623
|
break;
|
|
5624
5624
|
case "ArrowLeft":
|
|
5625
5625
|
if (i.value && te.value && te.value.querySelector("input").selectionStart || j.shiftKey || n.value !== "tags" || !A.value || !A.value.length)
|
|
@@ -5698,12 +5698,12 @@ function K3(t, e, a) {
|
|
|
5698
5698
|
assist: "multiselect-assistive-text",
|
|
5699
5699
|
spacer: "multiselect-spacer",
|
|
5700
5700
|
...n.value
|
|
5701
|
-
})),
|
|
5701
|
+
})), g = b(() => !!(l.value && i.value && (!m.value || m.value && w.value.length)));
|
|
5702
5702
|
return {
|
|
5703
5703
|
classList: b(() => {
|
|
5704
5704
|
const y = A.value;
|
|
5705
5705
|
return {
|
|
5706
|
-
container: [y.container].concat(s.value ? y.containerDisabled : []).concat(
|
|
5706
|
+
container: [y.container].concat(s.value ? y.containerDisabled : []).concat(g.value && o.value === "top" ? y.containerOpenTop : []).concat(g.value && o.value !== "top" ? y.containerOpen : []).concat(u.value ? y.containerActive : []),
|
|
5707
5707
|
wrapper: y.wrapper,
|
|
5708
5708
|
spacer: y.spacer,
|
|
5709
5709
|
singleLabel: y.singleLabel,
|
|
@@ -5725,7 +5725,7 @@ function K3(t, e, a) {
|
|
|
5725
5725
|
spinner: y.spinner,
|
|
5726
5726
|
inifinite: y.inifinite,
|
|
5727
5727
|
inifiniteSpinner: y.inifiniteSpinner,
|
|
5728
|
-
dropdown: [y.dropdown].concat(o.value === "top" ? y.dropdownTop : []).concat(!l.value || !i.value || !
|
|
5728
|
+
dropdown: [y.dropdown].concat(o.value === "top" ? y.dropdownTop : []).concat(!l.value || !i.value || !g.value ? y.dropdownHidden : []),
|
|
5729
5729
|
options: [y.options].concat(o.value === "top" ? y.optionsTop : []),
|
|
5730
5730
|
group: y.group,
|
|
5731
5731
|
groupLabel: (L) => {
|
|
@@ -5743,7 +5743,7 @@ function K3(t, e, a) {
|
|
|
5743
5743
|
fakeInput: y.fakeInput
|
|
5744
5744
|
};
|
|
5745
5745
|
}),
|
|
5746
|
-
showDropdown:
|
|
5746
|
+
showDropdown: g
|
|
5747
5747
|
};
|
|
5748
5748
|
}
|
|
5749
5749
|
function G3(t, e, a) {
|
|
@@ -5751,8 +5751,8 @@ function G3(t, e, a) {
|
|
|
5751
5751
|
limit: n,
|
|
5752
5752
|
infinite: s
|
|
5753
5753
|
} = $e(t), o = a.isOpen, i = a.offset, l = a.search, d = a.pfo, r = a.eo, c = Q(null), u = Q(null), p = b(() => i.value < d.value.length), m = (A) => {
|
|
5754
|
-
const { isIntersecting:
|
|
5755
|
-
if (
|
|
5754
|
+
const { isIntersecting: g, target: $ } = A[0];
|
|
5755
|
+
if (g) {
|
|
5756
5756
|
const y = $.offsetParent, L = y.scrollTop;
|
|
5757
5757
|
i.value += n.value == -1 ? 10 : n.value, Oe(() => {
|
|
5758
5758
|
y.scrollTop = L;
|
|
@@ -5761,11 +5761,11 @@ function G3(t, e, a) {
|
|
|
5761
5761
|
}, w = () => {
|
|
5762
5762
|
o.value && i.value < d.value.length ? c.value.observe(u.value) : !o.value && c.value && c.value.disconnect();
|
|
5763
5763
|
};
|
|
5764
|
-
return
|
|
5764
|
+
return de(o, () => {
|
|
5765
5765
|
s.value && w();
|
|
5766
|
-
}),
|
|
5766
|
+
}), de(l, () => {
|
|
5767
5767
|
s.value && (i.value = n.value, w());
|
|
5768
|
-
}, { flush: "post" }),
|
|
5768
|
+
}, { flush: "post" }), de(r, () => {
|
|
5769
5769
|
s.value && w();
|
|
5770
5770
|
}, { immediate: !1, flush: "post" }), Dt(() => {
|
|
5771
5771
|
window && window.IntersectionObserver && (c.value = new IntersectionObserver(m));
|
|
@@ -5784,53 +5784,53 @@ function x3(t, e, a) {
|
|
|
5784
5784
|
groupLabel: d,
|
|
5785
5785
|
aria: r,
|
|
5786
5786
|
searchable: c
|
|
5787
|
-
} = $e(t), u = a.pointer, p = a.iv, m = a.hasSelected, w = a.multipleLabelText, A = Q(null),
|
|
5788
|
-
let
|
|
5789
|
-
return s && s.value &&
|
|
5787
|
+
} = $e(t), u = a.pointer, p = a.iv, m = a.hasSelected, w = a.multipleLabelText, A = Q(null), g = b(() => {
|
|
5788
|
+
let E = [];
|
|
5789
|
+
return s && s.value && E.push(s.value), E.push("assist"), E.join("-");
|
|
5790
5790
|
}), $ = b(() => {
|
|
5791
|
-
let
|
|
5792
|
-
return s && s.value &&
|
|
5791
|
+
let E = [];
|
|
5792
|
+
return s && s.value && E.push(s.value), E.push("multiselect-options"), E.join("-");
|
|
5793
5793
|
}), y = b(() => {
|
|
5794
|
-
let
|
|
5795
|
-
if (s && s.value &&
|
|
5796
|
-
return
|
|
5794
|
+
let E = [];
|
|
5795
|
+
if (s && s.value && E.push(s.value), u.value)
|
|
5796
|
+
return E.push(u.value.group ? "multiselect-group" : "multiselect-option"), E.push(u.value.group ? u.value.index : u.value[o.value]), E.join("-");
|
|
5797
5797
|
}), L = b(() => n.value), Z = b(() => l.value !== "single"), W = b(() => {
|
|
5798
|
-
let
|
|
5799
|
-
return l.value === "single" && m.value && (
|
|
5798
|
+
let E = "";
|
|
5799
|
+
return l.value === "single" && m.value && (E += p.value[i.value]), l.value === "multiple" && m.value && (E += w.value), l.value === "tags" && m.value && (E += p.value.map((H) => H[i.value]).join(", ")), E;
|
|
5800
5800
|
}), V = b(() => {
|
|
5801
|
-
let
|
|
5802
|
-
return c.value && (
|
|
5803
|
-
}), X = (
|
|
5804
|
-
let
|
|
5805
|
-
return s && s.value &&
|
|
5806
|
-
}, te = (
|
|
5807
|
-
let
|
|
5808
|
-
return s && s.value &&
|
|
5809
|
-
},
|
|
5810
|
-
let
|
|
5811
|
-
return
|
|
5812
|
-
},
|
|
5813
|
-
let
|
|
5814
|
-
return
|
|
5815
|
-
},
|
|
5801
|
+
let E = { ...r.value };
|
|
5802
|
+
return c.value && (E["aria-labelledby"] = E["aria-labelledby"] ? `${g.value} ${E["aria-labelledby"]}` : g.value, W.value && E["aria-label"] && (E["aria-label"] = `${W.value}, ${E["aria-label"]}`)), E;
|
|
5803
|
+
}), X = (E) => {
|
|
5804
|
+
let H = [];
|
|
5805
|
+
return s && s.value && H.push(s.value), H.push("multiselect-option"), H.push(E[o.value]), H.join("-");
|
|
5806
|
+
}, te = (E) => {
|
|
5807
|
+
let H = [];
|
|
5808
|
+
return s && s.value && H.push(s.value), H.push("multiselect-group"), H.push(E.index), H.join("-");
|
|
5809
|
+
}, ee = (E) => {
|
|
5810
|
+
let H = [];
|
|
5811
|
+
return H.push(E), H.join(" ");
|
|
5812
|
+
}, O = (E) => {
|
|
5813
|
+
let H = [];
|
|
5814
|
+
return H.push(E), H.join(" ");
|
|
5815
|
+
}, _ = (E) => `${E} ❎`;
|
|
5816
5816
|
return Dt(() => {
|
|
5817
5817
|
if (s && s.value && document && document.querySelector) {
|
|
5818
|
-
let
|
|
5819
|
-
A.value =
|
|
5818
|
+
let E = document.querySelector(`[for="${s.value}"]`);
|
|
5819
|
+
A.value = E ? E.innerText : null;
|
|
5820
5820
|
}
|
|
5821
5821
|
}), {
|
|
5822
5822
|
arias: V,
|
|
5823
5823
|
ariaLabel: W,
|
|
5824
|
-
ariaAssist:
|
|
5824
|
+
ariaAssist: g,
|
|
5825
5825
|
ariaControls: $,
|
|
5826
5826
|
ariaPlaceholder: L,
|
|
5827
5827
|
ariaMultiselectable: Z,
|
|
5828
5828
|
ariaActiveDescendant: y,
|
|
5829
5829
|
ariaOptionId: X,
|
|
5830
|
-
ariaOptionLabel:
|
|
5830
|
+
ariaOptionLabel: ee,
|
|
5831
5831
|
ariaGroupId: te,
|
|
5832
|
-
ariaGroupLabel:
|
|
5833
|
-
ariaTagLabel:
|
|
5832
|
+
ariaGroupLabel: O,
|
|
5833
|
+
ariaTagLabel: _
|
|
5834
5834
|
};
|
|
5835
5835
|
}
|
|
5836
5836
|
function X3(t, e, a) {
|
|
@@ -6760,7 +6760,7 @@ const b5 = { class: "ao-tasks" }, w5 = { class: "ao-tasks__list" }, $5 = ["id",
|
|
|
6760
6760
|
emits: ["add", "delete", "update"],
|
|
6761
6761
|
setup(t, { emit: e }) {
|
|
6762
6762
|
const a = t, { t: n } = nt();
|
|
6763
|
-
|
|
6763
|
+
de(() => a.tasks, (u, p) => {
|
|
6764
6764
|
Ue(u, p);
|
|
6765
6765
|
});
|
|
6766
6766
|
const s = b(
|
|
@@ -6822,7 +6822,7 @@ const b5 = { class: "ao-tasks" }, w5 = { class: "ao-tasks__list" }, $5 = ["id",
|
|
|
6822
6822
|
readonly: !u.isEditable,
|
|
6823
6823
|
class: "ao-field__input ao-subtask__field",
|
|
6824
6824
|
type: "text",
|
|
6825
|
-
onChange: (
|
|
6825
|
+
onChange: (g) => i(g, m.id),
|
|
6826
6826
|
onKeyup: Ye(c, ["enter"])
|
|
6827
6827
|
}, null, 40, $5),
|
|
6828
6828
|
!u.isTemplate && u.users ? (f(), N(be, {
|
|
@@ -6837,14 +6837,14 @@ const b5 = { class: "ao-tasks" }, w5 = { class: "ao-tasks__list" }, $5 = ["id",
|
|
|
6837
6837
|
placeholder: u.$t("feed.filters.assignee.placeholder"),
|
|
6838
6838
|
disabled: !u.isEditable,
|
|
6839
6839
|
caret: u.isEditable,
|
|
6840
|
-
onChange: (
|
|
6840
|
+
onChange: (g) => r(g, m.id)
|
|
6841
6841
|
}, {
|
|
6842
|
-
tag: U(({ option:
|
|
6843
|
-
|
|
6844
|
-
"user-name":
|
|
6845
|
-
"avatar-url":
|
|
6842
|
+
tag: U(({ option: g, handleTagRemove: $ }) => [
|
|
6843
|
+
S(gt, {
|
|
6844
|
+
"user-name": g.label,
|
|
6845
|
+
"avatar-url": g.avatar,
|
|
6846
6846
|
"is-closable": !0,
|
|
6847
|
-
onClose: (y) => $(
|
|
6847
|
+
onClose: (y) => $(g, y)
|
|
6848
6848
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
6849
6849
|
]),
|
|
6850
6850
|
_: 2
|
|
@@ -6913,7 +6913,7 @@ const A5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
6913
6913
|
function l() {
|
|
6914
6914
|
o.value = !1;
|
|
6915
6915
|
}
|
|
6916
|
-
|
|
6916
|
+
de(o, (r) => {
|
|
6917
6917
|
e("toggleIsDropActive", r);
|
|
6918
6918
|
});
|
|
6919
6919
|
function d(r) {
|
|
@@ -6947,7 +6947,7 @@ const A5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
6947
6947
|
target: "_blank",
|
|
6948
6948
|
rel: "noopener noreferrer"
|
|
6949
6949
|
}, [
|
|
6950
|
-
|
|
6950
|
+
S(ce, {
|
|
6951
6951
|
class: "ao-file__icon",
|
|
6952
6952
|
name: "AttachFileRounded",
|
|
6953
6953
|
size: "sm"
|
|
@@ -6999,27 +6999,27 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
6999
6999
|
emits: ["edit", "remove"],
|
|
7000
7000
|
setup(t, { emit: e }) {
|
|
7001
7001
|
const a = t, n = b(() => {
|
|
7002
|
-
const
|
|
7003
|
-
return
|
|
7004
|
-
}), s = Q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: d } = pa(s), r = b(() => S1(a.createdAt)), c = b(() => S1(a.editedAt)), u = b(() => o.value ? "textarea" : "p"), p = d(), m = l((
|
|
7005
|
-
e("edit",
|
|
7002
|
+
const g = a.user;
|
|
7003
|
+
return g ? `${g == null ? void 0 : g.firstName} ${g == null ? void 0 : g.lastName}` : null;
|
|
7004
|
+
}), s = Q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: d } = pa(s), r = b(() => S1(a.createdAt)), c = b(() => S1(a.editedAt)), u = b(() => o.value ? "textarea" : "p"), p = d(), m = l((g) => {
|
|
7005
|
+
e("edit", g);
|
|
7006
7006
|
}), w = () => {
|
|
7007
7007
|
e("remove");
|
|
7008
7008
|
}, A = Q(2);
|
|
7009
7009
|
return ps(() => {
|
|
7010
7010
|
Oe(() => {
|
|
7011
|
-
var
|
|
7011
|
+
var g;
|
|
7012
7012
|
if (!o.value) {
|
|
7013
|
-
const $ = (
|
|
7013
|
+
const $ = (g = s.value) == null ? void 0 : g.getClientRects().length;
|
|
7014
7014
|
A.value = $ || 2;
|
|
7015
7015
|
}
|
|
7016
7016
|
});
|
|
7017
|
-
}), (
|
|
7017
|
+
}), (g, $) => {
|
|
7018
7018
|
var y;
|
|
7019
7019
|
return f(), h("li", H5, [
|
|
7020
7020
|
n.value ? (f(), N(gt, {
|
|
7021
7021
|
key: 0,
|
|
7022
|
-
"avatar-url": (y =
|
|
7022
|
+
"avatar-url": (y = g.user) == null ? void 0 : y.avatarUrl,
|
|
7023
7023
|
"user-name": n.value,
|
|
7024
7024
|
class: "ao-comment__avatar"
|
|
7025
7025
|
}, null, 8, ["avatar-url", "user-name"])) : T("", !0),
|
|
@@ -7029,7 +7029,7 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
7029
7029
|
ref_key: "commentContent",
|
|
7030
7030
|
ref: s,
|
|
7031
7031
|
class: "ao-comment__content",
|
|
7032
|
-
value: z(o) ?
|
|
7032
|
+
value: z(o) ? g.content : null,
|
|
7033
7033
|
rows: z(o) ? A.value : null,
|
|
7034
7034
|
onKeyup: [
|
|
7035
7035
|
Ye(z(p), ["esc"]),
|
|
@@ -7037,23 +7037,23 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
7037
7037
|
]
|
|
7038
7038
|
}, {
|
|
7039
7039
|
default: U(() => [
|
|
7040
|
-
a1(q(
|
|
7040
|
+
a1(q(g.content), 1)
|
|
7041
7041
|
]),
|
|
7042
7042
|
_: 1
|
|
7043
7043
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
7044
7044
|
]),
|
|
7045
7045
|
v("span", N5, q(c.value || r.value), 1)
|
|
7046
7046
|
]),
|
|
7047
|
-
|
|
7047
|
+
g.isEditable ? (f(), h("div", R5, [
|
|
7048
7048
|
z(o) ? (f(), h(ve, { key: 0 }, [
|
|
7049
|
-
|
|
7049
|
+
S(fe, {
|
|
7050
7050
|
"icon-name": "CloseRounded",
|
|
7051
7051
|
size: "sm",
|
|
7052
7052
|
variant: "ghost",
|
|
7053
7053
|
color: "neutral",
|
|
7054
7054
|
onClick: z(p)
|
|
7055
7055
|
}, null, 8, ["onClick"]),
|
|
7056
|
-
|
|
7056
|
+
S(fe, {
|
|
7057
7057
|
"icon-name": "CheckSmallRounded",
|
|
7058
7058
|
size: "sm",
|
|
7059
7059
|
variant: "solid",
|
|
@@ -7061,15 +7061,15 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
7061
7061
|
onClick: z(m)
|
|
7062
7062
|
}, null, 8, ["onClick"])
|
|
7063
7063
|
], 64)) : (f(), h(ve, { key: 1 }, [
|
|
7064
|
-
|
|
7065
|
-
label:
|
|
7064
|
+
S(fe, {
|
|
7065
|
+
label: g.$t("activity.comment.delete"),
|
|
7066
7066
|
size: "sm",
|
|
7067
7067
|
variant: "ghost",
|
|
7068
7068
|
color: "neutral",
|
|
7069
7069
|
onClick: w
|
|
7070
7070
|
}, null, 8, ["label"]),
|
|
7071
|
-
|
|
7072
|
-
label:
|
|
7071
|
+
S(fe, {
|
|
7072
|
+
label: g.$t("activity.comment.edit"),
|
|
7073
7073
|
size: "sm",
|
|
7074
7074
|
variant: "ghost",
|
|
7075
7075
|
color: "neutral",
|
|
@@ -7157,7 +7157,7 @@ const j5 = {
|
|
|
7157
7157
|
])
|
|
7158
7158
|
]),
|
|
7159
7159
|
v("div", W5, [
|
|
7160
|
-
|
|
7160
|
+
S(fe, {
|
|
7161
7161
|
type: "submit",
|
|
7162
7162
|
"icon-name": "SendRounded",
|
|
7163
7163
|
color: "primary",
|
|
@@ -7207,171 +7207,171 @@ const K5 = {
|
|
|
7207
7207
|
},
|
|
7208
7208
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
7209
7209
|
setup(t, { emit: e }) {
|
|
7210
|
-
const a = t, n = (
|
|
7210
|
+
const a = t, n = (_) => {
|
|
7211
7211
|
e("update:activity", {
|
|
7212
7212
|
id: a.activity.id,
|
|
7213
|
-
name:
|
|
7213
|
+
name: _
|
|
7214
7214
|
});
|
|
7215
7215
|
}, s = b({
|
|
7216
7216
|
get() {
|
|
7217
7217
|
return a.activity.description ?? "";
|
|
7218
7218
|
},
|
|
7219
|
-
set(
|
|
7220
|
-
e("update:activity", { id: a.activity.id, description:
|
|
7219
|
+
set(_) {
|
|
7220
|
+
e("update:activity", { id: a.activity.id, description: _ });
|
|
7221
7221
|
}
|
|
7222
7222
|
}), o = b({
|
|
7223
7223
|
get() {
|
|
7224
7224
|
return a.activity.estimation ?? 0;
|
|
7225
7225
|
},
|
|
7226
|
-
set(
|
|
7227
|
-
e("update:activity", { id: a.activity.id, estimation:
|
|
7226
|
+
set(_) {
|
|
7227
|
+
e("update:activity", { id: a.activity.id, estimation: _ });
|
|
7228
7228
|
}
|
|
7229
7229
|
}), i = b({
|
|
7230
7230
|
get() {
|
|
7231
7231
|
return a.activity.important ?? !1;
|
|
7232
7232
|
},
|
|
7233
|
-
set(
|
|
7234
|
-
e("update:activity", { id: a.activity.id, important:
|
|
7233
|
+
set(_) {
|
|
7234
|
+
e("update:activity", { id: a.activity.id, important: _ });
|
|
7235
7235
|
}
|
|
7236
7236
|
}), l = b({
|
|
7237
7237
|
get() {
|
|
7238
7238
|
return a.activity.private ?? !1;
|
|
7239
7239
|
},
|
|
7240
|
-
set(
|
|
7241
|
-
e("update:activity", { id: a.activity.id, private:
|
|
7240
|
+
set(_) {
|
|
7241
|
+
e("update:activity", { id: a.activity.id, private: _ });
|
|
7242
7242
|
}
|
|
7243
7243
|
}), d = b(() => {
|
|
7244
|
-
var
|
|
7245
|
-
return (
|
|
7246
|
-
label:
|
|
7247
|
-
value:
|
|
7244
|
+
var _;
|
|
7245
|
+
return (_ = a.activityTypes) == null ? void 0 : _.map((E) => ({
|
|
7246
|
+
label: E.name,
|
|
7247
|
+
value: E.id
|
|
7248
7248
|
}));
|
|
7249
7249
|
}), r = b({
|
|
7250
7250
|
get() {
|
|
7251
|
-
var
|
|
7252
|
-
return (
|
|
7251
|
+
var _;
|
|
7252
|
+
return (_ = a.activity.type) == null ? void 0 : _.id;
|
|
7253
7253
|
},
|
|
7254
|
-
set(
|
|
7255
|
-
e("update:activity", { id: a.activity.id, typeId:
|
|
7254
|
+
set(_) {
|
|
7255
|
+
e("update:activity", { id: a.activity.id, typeId: _ });
|
|
7256
7256
|
}
|
|
7257
|
-
}), c = b(() => a.templateActivities.filter((
|
|
7258
|
-
label:
|
|
7259
|
-
value:
|
|
7257
|
+
}), c = b(() => a.templateActivities.filter((_) => _.id !== a.activity.id).map((_) => ({
|
|
7258
|
+
label: _.name,
|
|
7259
|
+
value: _.id
|
|
7260
7260
|
}))), u = b({
|
|
7261
7261
|
get() {
|
|
7262
|
-
var
|
|
7263
|
-
return (
|
|
7262
|
+
var _;
|
|
7263
|
+
return (_ = a.activity.dependingOn) == null ? void 0 : _.map((E) => E.id);
|
|
7264
7264
|
},
|
|
7265
|
-
set(
|
|
7266
|
-
|
|
7265
|
+
set(_) {
|
|
7266
|
+
_ && e("update:activity", {
|
|
7267
7267
|
id: a.activity.id,
|
|
7268
|
-
dependingOn:
|
|
7268
|
+
dependingOn: _
|
|
7269
7269
|
});
|
|
7270
7270
|
}
|
|
7271
|
-
}), p = b(() => c.value.map((
|
|
7272
|
-
var
|
|
7271
|
+
}), p = b(() => c.value.map((_) => {
|
|
7272
|
+
var E;
|
|
7273
7273
|
return {
|
|
7274
|
-
...
|
|
7275
|
-
disabled: (
|
|
7274
|
+
..._,
|
|
7275
|
+
disabled: (E = a.activity.blocking) == null ? void 0 : E.some((H) => H.id === _.value)
|
|
7276
7276
|
};
|
|
7277
7277
|
})), m = b({
|
|
7278
7278
|
get() {
|
|
7279
|
-
var
|
|
7280
|
-
return (
|
|
7279
|
+
var _;
|
|
7280
|
+
return (_ = a.activity.blocking) == null ? void 0 : _.map((E) => E.id);
|
|
7281
7281
|
},
|
|
7282
|
-
set(
|
|
7283
|
-
|
|
7282
|
+
set(_) {
|
|
7283
|
+
_ && e("update:activity", {
|
|
7284
7284
|
id: a.activity.id,
|
|
7285
|
-
blocking:
|
|
7285
|
+
blocking: _
|
|
7286
7286
|
});
|
|
7287
7287
|
}
|
|
7288
|
-
}), w = b(() => c.value.map((
|
|
7289
|
-
var
|
|
7288
|
+
}), w = b(() => c.value.map((_) => {
|
|
7289
|
+
var E;
|
|
7290
7290
|
return {
|
|
7291
|
-
...
|
|
7292
|
-
disabled: (
|
|
7293
|
-
(
|
|
7291
|
+
..._,
|
|
7292
|
+
disabled: (E = a.activity.dependingOn) == null ? void 0 : E.some(
|
|
7293
|
+
(H) => H.id === _.value
|
|
7294
7294
|
)
|
|
7295
7295
|
};
|
|
7296
|
-
})), A = (
|
|
7297
|
-
e("addSubtask",
|
|
7298
|
-
},
|
|
7299
|
-
e("updateSubtask",
|
|
7300
|
-
}, $ = (
|
|
7301
|
-
e("deleteSubtask",
|
|
7296
|
+
})), A = (_) => {
|
|
7297
|
+
e("addSubtask", _);
|
|
7298
|
+
}, g = (_) => {
|
|
7299
|
+
e("updateSubtask", _);
|
|
7300
|
+
}, $ = (_) => {
|
|
7301
|
+
e("deleteSubtask", _);
|
|
7302
7302
|
}, y = b(() => {
|
|
7303
|
-
var
|
|
7304
|
-
return ((
|
|
7305
|
-
label: `${
|
|
7306
|
-
value:
|
|
7307
|
-
avatar:
|
|
7303
|
+
var _;
|
|
7304
|
+
return ((_ = a.users) == null ? void 0 : _.map((E) => ({
|
|
7305
|
+
label: `${E.firstName} ${E.lastName}`,
|
|
7306
|
+
value: E.id,
|
|
7307
|
+
avatar: E.avatarUrl
|
|
7308
7308
|
}))) || [];
|
|
7309
7309
|
}), L = b({
|
|
7310
7310
|
get() {
|
|
7311
|
-
var
|
|
7312
|
-
return (
|
|
7311
|
+
var _, E;
|
|
7312
|
+
return (_ = a.activity.assignee) != null && _.id ? [(E = a.activity.assignee) == null ? void 0 : E.id] : [];
|
|
7313
7313
|
},
|
|
7314
|
-
set(
|
|
7314
|
+
set(_) {
|
|
7315
7315
|
e("update:activity", {
|
|
7316
7316
|
id: a.activity.id,
|
|
7317
|
-
assigneeId:
|
|
7317
|
+
assigneeId: _[0] ?? null
|
|
7318
7318
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
7319
7319
|
});
|
|
7320
7320
|
}
|
|
7321
|
-
}), Z = (
|
|
7321
|
+
}), Z = (_) => {
|
|
7322
7322
|
e("addFiles", {
|
|
7323
7323
|
activityId: a.activity.id,
|
|
7324
|
-
files:
|
|
7324
|
+
files: _
|
|
7325
7325
|
});
|
|
7326
|
-
}, W = (
|
|
7326
|
+
}, W = (_) => {
|
|
7327
7327
|
e("removeFile", {
|
|
7328
7328
|
activityId: a.activity.id,
|
|
7329
|
-
file:
|
|
7329
|
+
file: _
|
|
7330
7330
|
});
|
|
7331
7331
|
}, V = b(() => {
|
|
7332
|
-
var
|
|
7333
|
-
return (
|
|
7334
|
-
value:
|
|
7335
|
-
label:
|
|
7332
|
+
var _;
|
|
7333
|
+
return (_ = a.statuses) == null ? void 0 : _.map((E) => ({
|
|
7334
|
+
value: E.id,
|
|
7335
|
+
label: E.name
|
|
7336
7336
|
}));
|
|
7337
|
-
}), X = (
|
|
7337
|
+
}), X = (_) => {
|
|
7338
7338
|
e("update:activity", {
|
|
7339
7339
|
id: a.activity.id,
|
|
7340
|
-
statusId:
|
|
7340
|
+
statusId: _
|
|
7341
7341
|
});
|
|
7342
|
-
}, te = (
|
|
7342
|
+
}, te = (_) => {
|
|
7343
7343
|
e("addComment", {
|
|
7344
|
-
...
|
|
7344
|
+
..._,
|
|
7345
7345
|
activityId: a.activity.id
|
|
7346
7346
|
});
|
|
7347
|
-
},
|
|
7348
|
-
e("updateComment",
|
|
7349
|
-
},
|
|
7350
|
-
e("removeComment",
|
|
7347
|
+
}, ee = (_) => {
|
|
7348
|
+
e("updateComment", _);
|
|
7349
|
+
}, O = (_) => {
|
|
7350
|
+
e("removeComment", _);
|
|
7351
7351
|
};
|
|
7352
|
-
return (
|
|
7353
|
-
onClose:
|
|
7352
|
+
return (_, E) => (f(), N(D1, {
|
|
7353
|
+
onClose: E[8] || (E[8] = (H) => _.$emit("close"))
|
|
7354
7354
|
}, {
|
|
7355
7355
|
header: U(() => [
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
title:
|
|
7356
|
+
_.breadcrumbs ? (f(), h("div", K5, q(_.breadcrumbs), 1)) : T("", !0),
|
|
7357
|
+
S(Ce, {
|
|
7358
|
+
title: _.activity.name || "",
|
|
7359
7359
|
level: 4,
|
|
7360
|
-
"is-editable":
|
|
7360
|
+
"is-editable": _.isEditable,
|
|
7361
7361
|
"onUpdate:title": n
|
|
7362
7362
|
}, null, 8, ["title", "is-editable"]),
|
|
7363
|
-
x(
|
|
7364
|
-
var
|
|
7363
|
+
x(_.$slots, "header", {}, () => {
|
|
7364
|
+
var H;
|
|
7365
7365
|
return [
|
|
7366
7366
|
V.value ? (f(), h("label", G5, [
|
|
7367
|
-
v("span", x5, q(
|
|
7368
|
-
|
|
7367
|
+
v("span", x5, q(_.$t("activity.status.label")), 1),
|
|
7368
|
+
S(be, {
|
|
7369
7369
|
options: V.value,
|
|
7370
|
-
value: (
|
|
7370
|
+
value: (H = _.activity.status) == null ? void 0 : H.id,
|
|
7371
7371
|
"can-clear": !1,
|
|
7372
7372
|
"can-deselect": !1,
|
|
7373
|
-
disabled: !
|
|
7374
|
-
caret:
|
|
7373
|
+
disabled: !_.isEditable,
|
|
7374
|
+
caret: _.isEditable,
|
|
7375
7375
|
onChange: X
|
|
7376
7376
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
7377
7377
|
])) : T("", !0)
|
|
@@ -7383,10 +7383,10 @@ const K5 = {
|
|
|
7383
7383
|
v("fieldset", Q5, [
|
|
7384
7384
|
v("div", J5, [
|
|
7385
7385
|
v("label", e7, [
|
|
7386
|
-
v("span", t7, q(
|
|
7386
|
+
v("span", t7, q(_.$t("activity.description.label")), 1),
|
|
7387
7387
|
tt(v("textarea", {
|
|
7388
|
-
"onUpdate:modelValue":
|
|
7389
|
-
readonly: !
|
|
7388
|
+
"onUpdate:modelValue": E[0] || (E[0] = (H) => s.value = H),
|
|
7389
|
+
readonly: !_.isEditable,
|
|
7390
7390
|
rows: "4",
|
|
7391
7391
|
class: "ao-field__textarea"
|
|
7392
7392
|
}, null, 8, a7), [
|
|
@@ -7404,10 +7404,10 @@ const K5 = {
|
|
|
7404
7404
|
]),
|
|
7405
7405
|
v("div", s7, [
|
|
7406
7406
|
v("label", n7, [
|
|
7407
|
-
v("span", i7, q(
|
|
7407
|
+
v("span", i7, q(_.$t("activity.estimation.label")), 1),
|
|
7408
7408
|
tt(v("input", {
|
|
7409
|
-
"onUpdate:modelValue":
|
|
7410
|
-
readonly: !
|
|
7409
|
+
"onUpdate:modelValue": E[1] || (E[1] = (H) => o.value = H),
|
|
7410
|
+
readonly: !_.isEditable,
|
|
7411
7411
|
class: "ao-field__input",
|
|
7412
7412
|
type: "number",
|
|
7413
7413
|
min: "0"
|
|
@@ -7424,10 +7424,10 @@ const K5 = {
|
|
|
7424
7424
|
])
|
|
7425
7425
|
]),
|
|
7426
7426
|
v("label", l7, [
|
|
7427
|
-
v("span", r7, q(
|
|
7427
|
+
v("span", r7, q(_.$t("activity.important.label")), 1),
|
|
7428
7428
|
tt(v("input", {
|
|
7429
|
-
"onUpdate:modelValue":
|
|
7430
|
-
disabled: !
|
|
7429
|
+
"onUpdate:modelValue": E[2] || (E[2] = (H) => i.value = H),
|
|
7430
|
+
disabled: !_.isEditable,
|
|
7431
7431
|
class: "ao-field__input",
|
|
7432
7432
|
type: "checkbox"
|
|
7433
7433
|
}, null, 8, u7), [
|
|
@@ -7439,11 +7439,11 @@ const K5 = {
|
|
|
7439
7439
|
]
|
|
7440
7440
|
])
|
|
7441
7441
|
]),
|
|
7442
|
-
|
|
7443
|
-
v("span", c7, q(
|
|
7442
|
+
_.isTemplate !== !0 && _.activity.createdBy.id === _.userId ? (f(), h("label", d7, [
|
|
7443
|
+
v("span", c7, q(_.$t("activity.private.label")), 1),
|
|
7444
7444
|
tt(v("input", {
|
|
7445
|
-
"onUpdate:modelValue":
|
|
7446
|
-
disabled: !
|
|
7445
|
+
"onUpdate:modelValue": E[3] || (E[3] = (H) => l.value = H),
|
|
7446
|
+
disabled: !_.isEditable,
|
|
7447
7447
|
class: "ao-field__input",
|
|
7448
7448
|
type: "checkbox"
|
|
7449
7449
|
}, null, 8, f7), [
|
|
@@ -7459,37 +7459,37 @@ const K5 = {
|
|
|
7459
7459
|
]),
|
|
7460
7460
|
l.value ? T("", !0) : (f(), h("fieldset", v7, [
|
|
7461
7461
|
v("div", p7, [
|
|
7462
|
-
|
|
7463
|
-
|
|
7462
|
+
S(ce, { name: "AccountBoxSharp" }),
|
|
7463
|
+
S(Ce, {
|
|
7464
7464
|
level: 4,
|
|
7465
|
-
title:
|
|
7465
|
+
title: _.$t("activity.assignee.title")
|
|
7466
7466
|
}, null, 8, ["title"])
|
|
7467
7467
|
]),
|
|
7468
7468
|
v("div", h7, [
|
|
7469
7469
|
v("div", m7, [
|
|
7470
7470
|
v("div", C7, [
|
|
7471
|
-
|
|
7471
|
+
S(be, {
|
|
7472
7472
|
modelValue: L.value,
|
|
7473
|
-
"onUpdate:modelValue":
|
|
7473
|
+
"onUpdate:modelValue": E[4] || (E[4] = (H) => L.value = H),
|
|
7474
7474
|
options: y.value,
|
|
7475
7475
|
"close-on-select": !0,
|
|
7476
7476
|
searchable: !0,
|
|
7477
7477
|
max: 1,
|
|
7478
7478
|
class: "ao-activity-details__assignees",
|
|
7479
|
-
placeholder:
|
|
7479
|
+
placeholder: _.$t("activity.filters.assignee.placeholder"),
|
|
7480
7480
|
mode: "tags",
|
|
7481
|
-
disabled: !
|
|
7482
|
-
caret:
|
|
7481
|
+
disabled: !_.isEditable,
|
|
7482
|
+
caret: _.isEditable
|
|
7483
7483
|
}, {
|
|
7484
7484
|
tag: U(({
|
|
7485
|
-
option:
|
|
7486
|
-
handleTagRemove:
|
|
7485
|
+
option: H,
|
|
7486
|
+
handleTagRemove: re
|
|
7487
7487
|
}) => [
|
|
7488
|
-
|
|
7489
|
-
"user-name":
|
|
7490
|
-
"avatar-url":
|
|
7488
|
+
S(gt, {
|
|
7489
|
+
"user-name": H.label,
|
|
7490
|
+
"avatar-url": H.avatar,
|
|
7491
7491
|
"is-closable": !0,
|
|
7492
|
-
onClose: (se) =>
|
|
7492
|
+
onClose: (se) => re(H, se)
|
|
7493
7493
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
7494
7494
|
]),
|
|
7495
7495
|
_: 1
|
|
@@ -7500,63 +7500,63 @@ const K5 = {
|
|
|
7500
7500
|
])),
|
|
7501
7501
|
v("fieldset", _7, [
|
|
7502
7502
|
v("div", g7, [
|
|
7503
|
-
|
|
7504
|
-
|
|
7503
|
+
S(ce, { name: "SelectCheckBox" }),
|
|
7504
|
+
S(Ce, {
|
|
7505
7505
|
level: 4,
|
|
7506
|
-
title:
|
|
7506
|
+
title: _.$t("activity.tasks.title")
|
|
7507
7507
|
}, null, 8, ["title"])
|
|
7508
7508
|
]),
|
|
7509
7509
|
v("div", y7, [
|
|
7510
|
-
|
|
7510
|
+
S(k5, {
|
|
7511
7511
|
class: "ao-activity-details__tasks ao-field__row",
|
|
7512
|
-
tasks:
|
|
7513
|
-
"activity-id":
|
|
7514
|
-
users:
|
|
7515
|
-
"is-checkable":
|
|
7516
|
-
"is-editable":
|
|
7517
|
-
"is-template":
|
|
7512
|
+
tasks: _.activity.tasks || [],
|
|
7513
|
+
"activity-id": _.activity.id,
|
|
7514
|
+
users: _.users,
|
|
7515
|
+
"is-checkable": _.isTaskCheckable,
|
|
7516
|
+
"is-editable": _.isEditable,
|
|
7517
|
+
"is-template": _.isTemplate,
|
|
7518
7518
|
onAdd: A,
|
|
7519
|
-
onUpdate:
|
|
7519
|
+
onUpdate: g,
|
|
7520
7520
|
onDelete: $
|
|
7521
7521
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
7522
7522
|
])
|
|
7523
7523
|
]),
|
|
7524
7524
|
v("fieldset", b7, [
|
|
7525
7525
|
v("div", w7, [
|
|
7526
|
-
|
|
7527
|
-
|
|
7526
|
+
S(ce, { name: "FlowsheetOutlineRounded" }),
|
|
7527
|
+
S(Ce, {
|
|
7528
7528
|
level: 4,
|
|
7529
|
-
title:
|
|
7529
|
+
title: _.$t("activity.dependencies.title")
|
|
7530
7530
|
}, null, 8, ["title"])
|
|
7531
7531
|
]),
|
|
7532
7532
|
v("div", $7, [
|
|
7533
7533
|
v("div", M7, [
|
|
7534
7534
|
v("label", k7, [
|
|
7535
|
-
v("span", A7, q(
|
|
7536
|
-
|
|
7535
|
+
v("span", A7, q(_.$t("activity.dependingOn.label")), 1),
|
|
7536
|
+
S(be, {
|
|
7537
7537
|
modelValue: u.value,
|
|
7538
|
-
"onUpdate:modelValue":
|
|
7538
|
+
"onUpdate:modelValue": E[5] || (E[5] = (H) => u.value = H),
|
|
7539
7539
|
mode: "tags",
|
|
7540
7540
|
"close-on-select": !1,
|
|
7541
7541
|
searchable: !0,
|
|
7542
7542
|
options: p.value,
|
|
7543
|
-
disabled: !
|
|
7544
|
-
caret:
|
|
7543
|
+
disabled: !_.isEditable,
|
|
7544
|
+
caret: _.isEditable
|
|
7545
7545
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7546
7546
|
])
|
|
7547
7547
|
]),
|
|
7548
7548
|
v("div", T7, [
|
|
7549
7549
|
v("label", S7, [
|
|
7550
|
-
v("span", E7, q(
|
|
7551
|
-
|
|
7550
|
+
v("span", E7, q(_.$t("activity.blocking.label")), 1),
|
|
7551
|
+
S(be, {
|
|
7552
7552
|
modelValue: m.value,
|
|
7553
|
-
"onUpdate:modelValue":
|
|
7553
|
+
"onUpdate:modelValue": E[6] || (E[6] = (H) => m.value = H),
|
|
7554
7554
|
mode: "tags",
|
|
7555
7555
|
"close-on-select": !1,
|
|
7556
7556
|
searchable: !0,
|
|
7557
7557
|
options: w.value,
|
|
7558
|
-
disabled: !
|
|
7559
|
-
caret:
|
|
7558
|
+
disabled: !_.isEditable,
|
|
7559
|
+
caret: _.isEditable
|
|
7560
7560
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7561
7561
|
])
|
|
7562
7562
|
])
|
|
@@ -7565,50 +7565,50 @@ const K5 = {
|
|
|
7565
7565
|
v("fieldset", I7, [
|
|
7566
7566
|
d.value ? (f(), h("div", O7, [
|
|
7567
7567
|
v("label", L7, [
|
|
7568
|
-
v("span", V7, q(
|
|
7569
|
-
|
|
7568
|
+
v("span", V7, q(_.$t("activity.type.label")), 1),
|
|
7569
|
+
S(be, {
|
|
7570
7570
|
modelValue: r.value,
|
|
7571
|
-
"onUpdate:modelValue":
|
|
7571
|
+
"onUpdate:modelValue": E[7] || (E[7] = (H) => r.value = H),
|
|
7572
7572
|
mode: "single",
|
|
7573
7573
|
searchable: !0,
|
|
7574
7574
|
options: d.value,
|
|
7575
|
-
placeholder:
|
|
7576
|
-
disabled: !
|
|
7577
|
-
caret:
|
|
7575
|
+
placeholder: _.$t("activity.filters.type.placeholder"),
|
|
7576
|
+
disabled: !_.isEditable,
|
|
7577
|
+
caret: _.isEditable
|
|
7578
7578
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
7579
7579
|
])
|
|
7580
7580
|
])) : T("", !0),
|
|
7581
|
-
x(
|
|
7581
|
+
x(_.$slots, "default", { activity: _.activity })
|
|
7582
7582
|
])
|
|
7583
7583
|
]),
|
|
7584
|
-
|
|
7584
|
+
_.isTemplate !== !0 && _.userId ? (f(), h("div", D7, [
|
|
7585
7585
|
v("div", H7, [
|
|
7586
|
-
|
|
7587
|
-
|
|
7586
|
+
S(ce, { name: "AttachFileRounded" }),
|
|
7587
|
+
S(Ce, {
|
|
7588
7588
|
level: 4,
|
|
7589
|
-
title:
|
|
7589
|
+
title: _.$t("activity.attachments.title")
|
|
7590
7590
|
}, null, 8, ["title"])
|
|
7591
7591
|
]),
|
|
7592
|
-
|
|
7593
|
-
attachments:
|
|
7594
|
-
"is-editable":
|
|
7592
|
+
S(D5, {
|
|
7593
|
+
attachments: _.activity.attachments,
|
|
7594
|
+
"is-editable": _.isEditable,
|
|
7595
7595
|
onAdd: Z,
|
|
7596
7596
|
onRemove: W
|
|
7597
7597
|
}, null, 8, ["attachments", "is-editable"]),
|
|
7598
7598
|
v("div", P7, [
|
|
7599
|
-
|
|
7600
|
-
|
|
7599
|
+
S(ce, { name: "ChatOutline" }),
|
|
7600
|
+
S(Ce, {
|
|
7601
7601
|
level: 4,
|
|
7602
|
-
title:
|
|
7602
|
+
title: _.$t("activity.comments.title")
|
|
7603
7603
|
}, null, 8, ["title"])
|
|
7604
7604
|
]),
|
|
7605
|
-
|
|
7606
|
-
comments:
|
|
7607
|
-
users:
|
|
7608
|
-
"user-id":
|
|
7605
|
+
S(Y5, {
|
|
7606
|
+
comments: _.activity.comments,
|
|
7607
|
+
users: _.users,
|
|
7608
|
+
"user-id": _.userId,
|
|
7609
7609
|
onCreateComment: te,
|
|
7610
|
-
onUpdateComment:
|
|
7611
|
-
onRemoveComment:
|
|
7610
|
+
onUpdateComment: ee,
|
|
7611
|
+
onRemoveComment: O
|
|
7612
7612
|
}, null, 8, ["comments", "users", "user-id"])
|
|
7613
7613
|
])) : T("", !0)
|
|
7614
7614
|
]),
|
|
@@ -7689,25 +7689,25 @@ const B7 = /* @__PURE__ */ Y({
|
|
|
7689
7689
|
set($) {
|
|
7690
7690
|
e("update:rule", { ...a.rule, durationUnit: $ });
|
|
7691
7691
|
}
|
|
7692
|
-
}),
|
|
7692
|
+
}), g = b(() => Object.values($d));
|
|
7693
7693
|
return ($, y) => (f(), N(Xe($.tagName), { class: "ao-rule-line" }, {
|
|
7694
7694
|
default: U(() => [
|
|
7695
|
-
|
|
7695
|
+
S(z(We), {
|
|
7696
7696
|
modelValue: s.value,
|
|
7697
7697
|
"onUpdate:modelValue": y[0] || (y[0] = (L) => s.value = L),
|
|
7698
7698
|
options: o.value
|
|
7699
7699
|
}, null, 8, ["modelValue", "options"]),
|
|
7700
|
-
|
|
7700
|
+
S(z(We), {
|
|
7701
7701
|
modelValue: i.value,
|
|
7702
7702
|
"onUpdate:modelValue": y[1] || (y[1] = (L) => i.value = L),
|
|
7703
7703
|
options: l.value
|
|
7704
7704
|
}, null, 8, ["modelValue", "options"]),
|
|
7705
|
-
|
|
7705
|
+
S(z(We), {
|
|
7706
7706
|
modelValue: p.value,
|
|
7707
7707
|
"onUpdate:modelValue": y[2] || (y[2] = (L) => p.value = L),
|
|
7708
7708
|
options: m.value
|
|
7709
7709
|
}, null, 8, ["modelValue", "options"]),
|
|
7710
|
-
|
|
7710
|
+
S(z(We), {
|
|
7711
7711
|
modelValue: r.value,
|
|
7712
7712
|
"onUpdate:modelValue": y[3] || (y[3] = (L) => r.value = L),
|
|
7713
7713
|
options: c.value
|
|
@@ -7724,12 +7724,12 @@ const B7 = /* @__PURE__ */ Y({
|
|
|
7724
7724
|
{ number: !0 }
|
|
7725
7725
|
]
|
|
7726
7726
|
]),
|
|
7727
|
-
|
|
7727
|
+
S(z(We), {
|
|
7728
7728
|
modelValue: A.value,
|
|
7729
7729
|
"onUpdate:modelValue": y[5] || (y[5] = (L) => A.value = L),
|
|
7730
|
-
options:
|
|
7730
|
+
options: g.value
|
|
7731
7731
|
}, null, 8, ["modelValue", "options"]),
|
|
7732
|
-
|
|
7732
|
+
S(fe, {
|
|
7733
7733
|
class: "ao-rule-line__remove",
|
|
7734
7734
|
"icon-name": "CloseRounded",
|
|
7735
7735
|
variant: "ghost",
|
|
@@ -7758,7 +7758,7 @@ const N7 = { class: "ao-template-rules__body" }, R7 = { class: "ao-template-rule
|
|
|
7758
7758
|
};
|
|
7759
7759
|
return (s, o) => (f(), N(D1, null, {
|
|
7760
7760
|
header: U(() => [
|
|
7761
|
-
|
|
7761
|
+
S(Ce, {
|
|
7762
7762
|
title: s.$t("template.rules.title"),
|
|
7763
7763
|
level: 2
|
|
7764
7764
|
}, null, 8, ["title"])
|
|
@@ -7776,7 +7776,7 @@ const N7 = { class: "ao-template-rules__body" }, R7 = { class: "ao-template-rule
|
|
|
7776
7776
|
onClose: () => n(i.id)
|
|
7777
7777
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
7778
7778
|
]),
|
|
7779
|
-
|
|
7779
|
+
S(Je, {
|
|
7780
7780
|
label: s.$t("template.rules.add"),
|
|
7781
7781
|
"icon-name": "Add",
|
|
7782
7782
|
onClick: a
|
|
@@ -7816,10 +7816,10 @@ const j7 = {
|
|
|
7816
7816
|
return (M = a.templates) == null ? void 0 : M.find((F) => F.id === a.templateId);
|
|
7817
7817
|
}
|
|
7818
7818
|
), o = Q(!1);
|
|
7819
|
-
|
|
7819
|
+
de(
|
|
7820
7820
|
() => [a.templateId, a.phaseId, a.milestoneId],
|
|
7821
7821
|
() => o.value = !1
|
|
7822
|
-
),
|
|
7822
|
+
), de(
|
|
7823
7823
|
() => {
|
|
7824
7824
|
var M;
|
|
7825
7825
|
return (M = s.value) == null ? void 0 : M.phases;
|
|
@@ -7832,7 +7832,7 @@ const j7 = {
|
|
|
7832
7832
|
var M, F;
|
|
7833
7833
|
return (F = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : F.find((j) => j.id === a.phaseId);
|
|
7834
7834
|
});
|
|
7835
|
-
|
|
7835
|
+
de(
|
|
7836
7836
|
() => {
|
|
7837
7837
|
var M;
|
|
7838
7838
|
return (M = i.value) == null ? void 0 : M.milestones;
|
|
@@ -7847,7 +7847,7 @@ const j7 = {
|
|
|
7847
7847
|
(j) => j.id === a.milestoneId
|
|
7848
7848
|
);
|
|
7849
7849
|
});
|
|
7850
|
-
|
|
7850
|
+
de(
|
|
7851
7851
|
() => {
|
|
7852
7852
|
var M;
|
|
7853
7853
|
return (M = l.value) == null ? void 0 : M.activities;
|
|
@@ -7917,7 +7917,7 @@ const j7 = {
|
|
|
7917
7917
|
itemType: he.PHASES,
|
|
7918
7918
|
data: { name: F }
|
|
7919
7919
|
});
|
|
7920
|
-
},
|
|
7920
|
+
}, g = (M) => {
|
|
7921
7921
|
e("updateItem", M);
|
|
7922
7922
|
}, $ = (M) => {
|
|
7923
7923
|
if (!i.value)
|
|
@@ -7990,11 +7990,11 @@ const j7 = {
|
|
|
7990
7990
|
});
|
|
7991
7991
|
}, X = Q(!1), te = () => {
|
|
7992
7992
|
X.value = !X.value;
|
|
7993
|
-
},
|
|
7993
|
+
}, ee = () => {
|
|
7994
7994
|
e("addRule", { templateId: a.templateId });
|
|
7995
|
-
},
|
|
7995
|
+
}, O = (M) => {
|
|
7996
7996
|
e("removeRule", { id: M, templateId: a.templateId });
|
|
7997
|
-
},
|
|
7997
|
+
}, _ = (M) => {
|
|
7998
7998
|
var F;
|
|
7999
7999
|
if (M.moved) {
|
|
8000
8000
|
const j = Rt(M, ((F = s.value) == null ? void 0 : F.phases) ?? []);
|
|
@@ -8007,7 +8007,7 @@ const j7 = {
|
|
|
8007
8007
|
}
|
|
8008
8008
|
});
|
|
8009
8009
|
}
|
|
8010
|
-
},
|
|
8010
|
+
}, E = (M) => {
|
|
8011
8011
|
!i.value || !l.value || !c.value || e("addItem", {
|
|
8012
8012
|
type: he.TASKS,
|
|
8013
8013
|
activityId: M.activityId,
|
|
@@ -8016,14 +8016,14 @@ const j7 = {
|
|
|
8016
8016
|
templateId: a.templateId,
|
|
8017
8017
|
item: M
|
|
8018
8018
|
});
|
|
8019
|
-
},
|
|
8019
|
+
}, H = (M) => {
|
|
8020
8020
|
!i.value || !l.value || !c.value || e("updateItem", {
|
|
8021
8021
|
itemType: he.TASKS,
|
|
8022
8022
|
id: M.id,
|
|
8023
8023
|
templateId: a.templateId,
|
|
8024
8024
|
data: M
|
|
8025
8025
|
});
|
|
8026
|
-
},
|
|
8026
|
+
}, re = (M) => {
|
|
8027
8027
|
!i.value || !l.value || !c.value || e("removeItem", {
|
|
8028
8028
|
type: he.TASKS,
|
|
8029
8029
|
activityId: c.value.id,
|
|
@@ -8034,23 +8034,23 @@ const j7 = {
|
|
|
8034
8034
|
});
|
|
8035
8035
|
}, se = (M) => {
|
|
8036
8036
|
e("addFiles", M);
|
|
8037
|
-
},
|
|
8037
|
+
}, ue = (M) => {
|
|
8038
8038
|
e("removeFile", M);
|
|
8039
8039
|
};
|
|
8040
8040
|
return (M, F) => {
|
|
8041
8041
|
var j, ae, oe, k, K, ie;
|
|
8042
8042
|
return s.value ? (f(), h("div", j7, [
|
|
8043
|
-
|
|
8043
|
+
S(d1, {
|
|
8044
8044
|
"can-go-back": !0,
|
|
8045
|
-
onGoBack: F[1] || (F[1] = (
|
|
8045
|
+
onGoBack: F[1] || (F[1] = (P) => M.$router.push({ name: z(ft).TEMPLATES_LIST }))
|
|
8046
8046
|
}, {
|
|
8047
8047
|
primary: U(() => [
|
|
8048
|
-
|
|
8048
|
+
S(Ce, {
|
|
8049
8049
|
title: u.value,
|
|
8050
8050
|
level: 2,
|
|
8051
8051
|
"is-editable": !0,
|
|
8052
|
-
"onUpdate:title": F[0] || (F[0] = (
|
|
8053
|
-
m(
|
|
8052
|
+
"onUpdate:title": F[0] || (F[0] = (P) => {
|
|
8053
|
+
m(P);
|
|
8054
8054
|
})
|
|
8055
8055
|
}, null, 8, ["title"])
|
|
8056
8056
|
]),
|
|
@@ -8059,42 +8059,42 @@ const j7 = {
|
|
|
8059
8059
|
v("div", Z7, [
|
|
8060
8060
|
v("ol", F7, [
|
|
8061
8061
|
v("li", q7, [
|
|
8062
|
-
|
|
8062
|
+
S(z(Qe), {
|
|
8063
8063
|
"model-value": s.value.phases,
|
|
8064
8064
|
class: "ao-templates__list",
|
|
8065
8065
|
"item-key": "id",
|
|
8066
8066
|
handle: ".ao-card__drag",
|
|
8067
|
-
onChange:
|
|
8067
|
+
onChange: _
|
|
8068
8068
|
}, {
|
|
8069
8069
|
header: U(() => [
|
|
8070
|
-
|
|
8070
|
+
S(Ce, {
|
|
8071
8071
|
title: M.$t("template.phases.title"),
|
|
8072
8072
|
level: 3,
|
|
8073
8073
|
class: "ao-list__title"
|
|
8074
8074
|
}, null, 8, ["title"])
|
|
8075
8075
|
]),
|
|
8076
|
-
item: U(({ element:
|
|
8077
|
-
var
|
|
8076
|
+
item: U(({ element: P }) => {
|
|
8077
|
+
var I;
|
|
8078
8078
|
return [
|
|
8079
|
-
|
|
8080
|
-
id:
|
|
8081
|
-
name:
|
|
8082
|
-
milestones:
|
|
8083
|
-
"is-active": ((
|
|
8079
|
+
S(W0, {
|
|
8080
|
+
id: P.id,
|
|
8081
|
+
name: P.name,
|
|
8082
|
+
milestones: P.milestones,
|
|
8083
|
+
"is-active": ((I = i.value) == null ? void 0 : I.id) === P.id,
|
|
8084
8084
|
"is-draggable": !0,
|
|
8085
8085
|
onClick: (R) => M.$router.push({
|
|
8086
|
-
params: { templateId: M.templateId, phaseId:
|
|
8086
|
+
params: { templateId: M.templateId, phaseId: P.id }
|
|
8087
8087
|
}),
|
|
8088
8088
|
"onUpdate:title": (R) => {
|
|
8089
|
-
A(
|
|
8089
|
+
A(P.id, R);
|
|
8090
8090
|
},
|
|
8091
|
-
onRemove: () => w(
|
|
8091
|
+
onRemove: () => w(P.id)
|
|
8092
8092
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
8093
8093
|
];
|
|
8094
8094
|
}),
|
|
8095
8095
|
footer: U(() => [
|
|
8096
8096
|
v("div", z7, [
|
|
8097
|
-
|
|
8097
|
+
S(Je, {
|
|
8098
8098
|
"icon-name": "AddBoxOutlineRounded",
|
|
8099
8099
|
label: M.$t("template.phases.add"),
|
|
8100
8100
|
onClick: p
|
|
@@ -8112,7 +8112,7 @@ const j7 = {
|
|
|
8112
8112
|
"milestone-id": (j = l.value) == null ? void 0 : j.id,
|
|
8113
8113
|
onAddMilestone: $,
|
|
8114
8114
|
onUpdateMilestone: L,
|
|
8115
|
-
onUpdatePhase:
|
|
8115
|
+
onUpdatePhase: g,
|
|
8116
8116
|
onRemoveMilestone: y
|
|
8117
8117
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
8118
8118
|
]),
|
|
@@ -8142,18 +8142,18 @@ const j7 = {
|
|
|
8142
8142
|
"is-template": !0,
|
|
8143
8143
|
"is-editable": !0,
|
|
8144
8144
|
users: M.users,
|
|
8145
|
-
"onUpdate:activity": F[2] || (F[2] = (
|
|
8146
|
-
c.value && V(
|
|
8145
|
+
"onUpdate:activity": F[2] || (F[2] = (P) => {
|
|
8146
|
+
c.value && V(P);
|
|
8147
8147
|
}),
|
|
8148
8148
|
onClose: M.$router.back,
|
|
8149
|
-
onAddSubtask:
|
|
8150
|
-
onUpdateSubtask:
|
|
8151
|
-
onDeleteSubtask:
|
|
8149
|
+
onAddSubtask: E,
|
|
8150
|
+
onUpdateSubtask: H,
|
|
8151
|
+
onDeleteSubtask: re,
|
|
8152
8152
|
onAddFiles: se,
|
|
8153
|
-
onRemoveFile:
|
|
8153
|
+
onRemoveFile: ue
|
|
8154
8154
|
}, {
|
|
8155
|
-
default: U((
|
|
8156
|
-
x(M.$slots, "activityDetailsBody", Ht(Pt(
|
|
8155
|
+
default: U((P) => [
|
|
8156
|
+
x(M.$slots, "activityDetailsBody", Ht(Pt(P)))
|
|
8157
8157
|
]),
|
|
8158
8158
|
_: 3
|
|
8159
8159
|
}, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : T("", !0)
|
|
@@ -8167,8 +8167,8 @@ const j7 = {
|
|
|
8167
8167
|
"template-milestones": d.value,
|
|
8168
8168
|
"template-activities": r.value,
|
|
8169
8169
|
onClose: te,
|
|
8170
|
-
onAddRule:
|
|
8171
|
-
onRemoveRule:
|
|
8170
|
+
onAddRule: ee,
|
|
8171
|
+
onRemoveRule: O
|
|
8172
8172
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : T("", !0)
|
|
8173
8173
|
]))
|
|
8174
8174
|
])) : T("", !0);
|
|
@@ -8251,7 +8251,7 @@ const Q7 = { class: "ao-card-project-phase__header" }, J7 = { class: "ao-card-pr
|
|
|
8251
8251
|
}), i = b(() => (o.value || 0) / (s.value || 1));
|
|
8252
8252
|
return (l, d) => (f(), N(j1, { class: "ao-card-project-phase" }, s1({
|
|
8253
8253
|
default: U(() => [
|
|
8254
|
-
|
|
8254
|
+
S(Ce, {
|
|
8255
8255
|
id: l.id,
|
|
8256
8256
|
class: "ao-card-project-phase__title",
|
|
8257
8257
|
title: l.name || "",
|
|
@@ -8265,13 +8265,13 @@ const Q7 = { class: "ao-card-project-phase__header" }, J7 = { class: "ao-card-pr
|
|
|
8265
8265
|
v("div", e9, [
|
|
8266
8266
|
s.value ? (f(), h(ve, { key: 0 }, [
|
|
8267
8267
|
v("div", t9, [
|
|
8268
|
-
|
|
8268
|
+
S(ce, {
|
|
8269
8269
|
name: "MountainFlagOutlineRounded",
|
|
8270
8270
|
size: "sm"
|
|
8271
8271
|
}),
|
|
8272
8272
|
v("span", a9, q(o.value) + " / " + q(s.value), 1)
|
|
8273
8273
|
]),
|
|
8274
|
-
|
|
8274
|
+
S(Z1, {
|
|
8275
8275
|
percentages: i.value,
|
|
8276
8276
|
class: "ao-card-project-phase__progress"
|
|
8277
8277
|
}, null, 8, ["percentages"])
|
|
@@ -8288,7 +8288,7 @@ const Q7 = { class: "ao-card-project-phase__header" }, J7 = { class: "ao-card-pr
|
|
|
8288
8288
|
name: "header",
|
|
8289
8289
|
fn: U(() => [
|
|
8290
8290
|
v("div", Q7, [
|
|
8291
|
-
|
|
8291
|
+
S(fe, {
|
|
8292
8292
|
class: "ao-card-project-phase__archive",
|
|
8293
8293
|
color: "primary",
|
|
8294
8294
|
variant: "ghost",
|
|
@@ -8339,7 +8339,7 @@ const i9 = { class: "ao-card-project-milestone__default" }, o9 = {
|
|
|
8339
8339
|
}, {
|
|
8340
8340
|
default: U(() => [
|
|
8341
8341
|
v("div", i9, [
|
|
8342
|
-
|
|
8342
|
+
S(Ce, {
|
|
8343
8343
|
id: l.id,
|
|
8344
8344
|
title: l.name || "",
|
|
8345
8345
|
level: 5,
|
|
@@ -8348,7 +8348,7 @@ const i9 = { class: "ao-card-project-milestone__default" }, o9 = {
|
|
|
8348
8348
|
"onUpdate:title": i
|
|
8349
8349
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8350
8350
|
l.isEditable ? (f(), h("div", o9, [
|
|
8351
|
-
|
|
8351
|
+
S(fe, {
|
|
8352
8352
|
color: "primary",
|
|
8353
8353
|
variant: "ghost",
|
|
8354
8354
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -8366,13 +8366,13 @@ const i9 = { class: "ao-card-project-milestone__default" }, o9 = {
|
|
|
8366
8366
|
v("div", r9, [
|
|
8367
8367
|
n.value ? (f(), h(ve, { key: 0 }, [
|
|
8368
8368
|
v("div", u9, [
|
|
8369
|
-
|
|
8369
|
+
S(ce, {
|
|
8370
8370
|
name: "SelectCheckBox",
|
|
8371
8371
|
size: "sm"
|
|
8372
8372
|
}),
|
|
8373
8373
|
v("span", d9, q(s.value) + " / " + q(n.value), 1)
|
|
8374
8374
|
]),
|
|
8375
|
-
|
|
8375
|
+
S(Z1, {
|
|
8376
8376
|
percentages: o.value,
|
|
8377
8377
|
class: "ao-card-project-phase__progress"
|
|
8378
8378
|
}, null, 8, ["percentages"])
|
|
@@ -8400,7 +8400,7 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8400
8400
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
|
|
8401
8401
|
setup(t, { emit: e }) {
|
|
8402
8402
|
const a = t, { t: n } = nt();
|
|
8403
|
-
|
|
8403
|
+
de(() => a.phase.milestones, (u, p) => {
|
|
8404
8404
|
Ue(u, p);
|
|
8405
8405
|
});
|
|
8406
8406
|
const s = (u) => {
|
|
@@ -8425,13 +8425,13 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8425
8425
|
};
|
|
8426
8426
|
return (u, p) => (f(), h("li", v9, [
|
|
8427
8427
|
u.isEditable ? (f(), h("div", p9, [
|
|
8428
|
-
|
|
8428
|
+
S(ce, {
|
|
8429
8429
|
name: "DragIndicator",
|
|
8430
8430
|
class: "ao-project-phase__drag-handle"
|
|
8431
8431
|
})
|
|
8432
8432
|
])) : T("", !0),
|
|
8433
8433
|
v("div", h9, [
|
|
8434
|
-
|
|
8434
|
+
S(n9, {
|
|
8435
8435
|
id: u.phase.id,
|
|
8436
8436
|
milestones: o.value,
|
|
8437
8437
|
name: u.phase.name,
|
|
@@ -8442,7 +8442,7 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8442
8442
|
]),
|
|
8443
8443
|
v("div", m9, [
|
|
8444
8444
|
v("div", C9, [
|
|
8445
|
-
|
|
8445
|
+
S(z(Qe), Ee({
|
|
8446
8446
|
class: "ao-project-phase__milestones-list",
|
|
8447
8447
|
list: o.value,
|
|
8448
8448
|
disabled: !u.isEditable,
|
|
@@ -8450,7 +8450,7 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8450
8450
|
group: "kanban"
|
|
8451
8451
|
}, u.$attrs, { onChange: c }), {
|
|
8452
8452
|
item: U(({ element: m }) => [
|
|
8453
|
-
|
|
8453
|
+
S(f9, {
|
|
8454
8454
|
id: m.id,
|
|
8455
8455
|
name: m.name,
|
|
8456
8456
|
activities: m.activities,
|
|
@@ -8495,7 +8495,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8495
8495
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
8496
8496
|
setup(t, { emit: e }) {
|
|
8497
8497
|
const a = t;
|
|
8498
|
-
|
|
8498
|
+
de(() => a.phases, (c, u) => {
|
|
8499
8499
|
Ue(c, u);
|
|
8500
8500
|
});
|
|
8501
8501
|
const n = (c) => {
|
|
@@ -8520,7 +8520,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8520
8520
|
e("addPhase", c);
|
|
8521
8521
|
};
|
|
8522
8522
|
return (c, u) => (f(), h("div", y9, [
|
|
8523
|
-
|
|
8523
|
+
S(z(Qe), {
|
|
8524
8524
|
class: "ao-project-phase__phases-list",
|
|
8525
8525
|
"model-value": c.phases,
|
|
8526
8526
|
"item-key": "id",
|
|
@@ -8528,7 +8528,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8528
8528
|
onChange: l
|
|
8529
8529
|
}, {
|
|
8530
8530
|
item: U(({ element: p }) => [
|
|
8531
|
-
|
|
8531
|
+
S(g9, {
|
|
8532
8532
|
phase: p,
|
|
8533
8533
|
"is-editable": c.isEditable,
|
|
8534
8534
|
"closed-status": c.closedStatus,
|
|
@@ -8544,7 +8544,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8544
8544
|
c.isEditable ? (f(), h("div", b9, [
|
|
8545
8545
|
w9,
|
|
8546
8546
|
v("div", $9, [
|
|
8547
|
-
|
|
8547
|
+
S(Je, {
|
|
8548
8548
|
label: c.$t("project.phases.add"),
|
|
8549
8549
|
"icon-name": "Add",
|
|
8550
8550
|
class: "ao-project-phase__add-phase",
|
|
@@ -8574,7 +8574,7 @@ const A9 = ["onSubmit"], T9 = { class: "ao-add-template-modal__form-body" }, S9
|
|
|
8574
8574
|
};
|
|
8575
8575
|
return (l, d) => (f(), N(D1, { size: "sm" }, {
|
|
8576
8576
|
header: U(() => [
|
|
8577
|
-
|
|
8577
|
+
S(Ce, {
|
|
8578
8578
|
title: l.$t("project.template.add.title"),
|
|
8579
8579
|
level: 3
|
|
8580
8580
|
}, null, 8, ["title"])
|
|
@@ -8586,7 +8586,7 @@ const A9 = ["onSubmit"], T9 = { class: "ao-add-template-modal__form-body" }, S9
|
|
|
8586
8586
|
}, [
|
|
8587
8587
|
v("div", T9, [
|
|
8588
8588
|
v("div", S9, [
|
|
8589
|
-
|
|
8589
|
+
S(be, {
|
|
8590
8590
|
value: s.value,
|
|
8591
8591
|
options: n.value,
|
|
8592
8592
|
detached: !0,
|
|
@@ -8595,7 +8595,7 @@ const A9 = ["onSubmit"], T9 = { class: "ao-add-template-modal__form-body" }, S9
|
|
|
8595
8595
|
])
|
|
8596
8596
|
]),
|
|
8597
8597
|
v("footer", E9, [
|
|
8598
|
-
|
|
8598
|
+
S(fe, {
|
|
8599
8599
|
label: l.$t("project.template.add.label"),
|
|
8600
8600
|
type: "submit",
|
|
8601
8601
|
color: "primary",
|
|
@@ -8673,82 +8673,95 @@ const Ra = /* @__PURE__ */ B(O9, [["render", V9], ["__scopeId", "data-v-c0ae9237
|
|
|
8673
8673
|
isTaskCheckable: { type: Function },
|
|
8674
8674
|
statuses: {},
|
|
8675
8675
|
activityTypes: {},
|
|
8676
|
-
isEditable: { type: Boolean }
|
|
8676
|
+
isEditable: { type: Boolean },
|
|
8677
|
+
showsArchived: { type: Boolean }
|
|
8677
8678
|
},
|
|
8678
|
-
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8679
|
+
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "update:showsArchived"],
|
|
8679
8680
|
setup(t, { emit: e }) {
|
|
8680
8681
|
const a = t, { t: n } = nt(), s = b(
|
|
8681
|
-
() => a.phases.flatMap((
|
|
8682
|
+
() => a.phases.flatMap((O) => O.milestones)
|
|
8682
8683
|
), o = () => {
|
|
8683
|
-
const { name:
|
|
8684
|
-
e("addPhase", { name:
|
|
8685
|
-
}, i = (
|
|
8686
|
-
e("updatePhase",
|
|
8687
|
-
}, l = (
|
|
8688
|
-
e("archivePhase",
|
|
8689
|
-
}, d = (
|
|
8690
|
-
e("addMilestone",
|
|
8691
|
-
}, r = (
|
|
8692
|
-
e("updateMilestone",
|
|
8693
|
-
}, c = (
|
|
8694
|
-
e("archiveMilestone",
|
|
8695
|
-
}, u = (
|
|
8696
|
-
e("addActivity",
|
|
8697
|
-
}, p = (
|
|
8698
|
-
e("update:activity",
|
|
8699
|
-
}, m = (
|
|
8700
|
-
e("archiveActivity",
|
|
8701
|
-
}, w = (
|
|
8702
|
-
e("addSubtask",
|
|
8703
|
-
}, A = (
|
|
8704
|
-
e("updateSubtask",
|
|
8705
|
-
},
|
|
8706
|
-
e("deleteSubtask",
|
|
8684
|
+
const { name: O, rank: _ } = ht(a.phases, "phase", n);
|
|
8685
|
+
e("addPhase", { name: O, rank: _, projectId: a.project.id });
|
|
8686
|
+
}, i = (O) => {
|
|
8687
|
+
e("updatePhase", O);
|
|
8688
|
+
}, l = (O) => {
|
|
8689
|
+
e("archivePhase", O);
|
|
8690
|
+
}, d = (O) => {
|
|
8691
|
+
e("addMilestone", O);
|
|
8692
|
+
}, r = (O) => {
|
|
8693
|
+
e("updateMilestone", O);
|
|
8694
|
+
}, c = (O) => {
|
|
8695
|
+
e("archiveMilestone", O);
|
|
8696
|
+
}, u = (O) => {
|
|
8697
|
+
e("addActivity", O);
|
|
8698
|
+
}, p = (O) => {
|
|
8699
|
+
e("update:activity", O);
|
|
8700
|
+
}, m = (O) => {
|
|
8701
|
+
e("archiveActivity", O);
|
|
8702
|
+
}, w = (O) => {
|
|
8703
|
+
e("addSubtask", O);
|
|
8704
|
+
}, A = (O) => {
|
|
8705
|
+
e("updateSubtask", O);
|
|
8706
|
+
}, g = (O) => {
|
|
8707
|
+
e("deleteSubtask", O);
|
|
8707
8708
|
}, $ = b(
|
|
8708
|
-
() => s.value.flatMap((
|
|
8709
|
-
), y = (
|
|
8710
|
-
e("addFiles",
|
|
8711
|
-
}, L = (
|
|
8712
|
-
e("removeFile",
|
|
8713
|
-
}, Z = (
|
|
8714
|
-
e("addComment",
|
|
8715
|
-
}, W = (
|
|
8716
|
-
e("updateComment",
|
|
8717
|
-
}, V = (
|
|
8718
|
-
e("removeComment",
|
|
8719
|
-
}, X = Q(!1), te = (
|
|
8720
|
-
e("applyTemplate", { templateId:
|
|
8709
|
+
() => s.value.flatMap((O) => O.activities)
|
|
8710
|
+
), y = (O) => {
|
|
8711
|
+
e("addFiles", O);
|
|
8712
|
+
}, L = (O) => {
|
|
8713
|
+
e("removeFile", O);
|
|
8714
|
+
}, Z = (O) => {
|
|
8715
|
+
e("addComment", O);
|
|
8716
|
+
}, W = (O) => {
|
|
8717
|
+
e("updateComment", O);
|
|
8718
|
+
}, V = (O) => {
|
|
8719
|
+
e("removeComment", O);
|
|
8720
|
+
}, X = Q(!1), te = Q(!1), ee = (O, _) => {
|
|
8721
|
+
e("applyTemplate", { templateId: O, projectId: _ }), X.value = !1;
|
|
8721
8722
|
};
|
|
8722
|
-
return (
|
|
8723
|
-
const
|
|
8723
|
+
return (O, _) => {
|
|
8724
|
+
const E = hs("RouterView");
|
|
8724
8725
|
return f(), h(ve, null, [
|
|
8725
|
-
v("div", Ee({ class: "ao-project-overview" },
|
|
8726
|
+
v("div", Ee({ class: "ao-project-overview" }, O.$attrs), [
|
|
8726
8727
|
v("div", D9, [
|
|
8727
|
-
|
|
8728
|
+
S(d1, null, {
|
|
8728
8729
|
primary: U(() => [
|
|
8729
|
-
|
|
8730
|
+
S(Ra, {
|
|
8730
8731
|
"is-left": !0,
|
|
8731
|
-
"right-label":
|
|
8732
|
-
"left-label":
|
|
8733
|
-
"onUpdate:isLeft":
|
|
8734
|
-
|
|
8732
|
+
"right-label": O.$t("project.switch.feed"),
|
|
8733
|
+
"left-label": O.$t("project.switch.overview"),
|
|
8734
|
+
"onUpdate:isLeft": _[0] || (_[0] = (H) => {
|
|
8735
|
+
H || O.$router.push({ name: z(He).feed });
|
|
8735
8736
|
})
|
|
8736
8737
|
}, null, 8, ["right-label", "left-label"]),
|
|
8737
|
-
|
|
8738
|
+
S(fe, {
|
|
8739
|
+
class: "ao-feed__show-archived",
|
|
8740
|
+
size: "sm",
|
|
8741
|
+
"icon-name": te.value ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
8742
|
+
"icon-position": "start",
|
|
8743
|
+
color: "primary",
|
|
8744
|
+
variant: "ghost",
|
|
8745
|
+
label: O.$t("feed.filters.showsArchivedActivities.label"),
|
|
8746
|
+
role: "checkbox",
|
|
8747
|
+
"aria-checked": te.value,
|
|
8748
|
+
onClick: _[1] || (_[1] = (H) => O.$emit("update:showsArchived", !te.value))
|
|
8749
|
+
}, null, 8, ["icon-name", "label", "aria-checked"]),
|
|
8750
|
+
O.isEditable ? (f(), N(fe, {
|
|
8738
8751
|
key: 0,
|
|
8739
8752
|
class: "ao-project-overview__add-template",
|
|
8740
8753
|
color: "primary",
|
|
8741
|
-
label:
|
|
8742
|
-
onClick:
|
|
8754
|
+
label: O.$t("project.template.add.label"),
|
|
8755
|
+
onClick: _[2] || (_[2] = (H) => X.value = !0)
|
|
8743
8756
|
}, null, 8, ["label"])) : T("", !0)
|
|
8744
8757
|
]),
|
|
8745
8758
|
_: 1
|
|
8746
8759
|
}),
|
|
8747
8760
|
v("div", H9, [
|
|
8748
|
-
|
|
8749
|
-
phases:
|
|
8750
|
-
"closed-status":
|
|
8751
|
-
"is-editable":
|
|
8761
|
+
S(k9, {
|
|
8762
|
+
phases: O.phases,
|
|
8763
|
+
"closed-status": O.closedStatus,
|
|
8764
|
+
"is-editable": O.isEditable,
|
|
8752
8765
|
onAddMilestone: d,
|
|
8753
8766
|
onUpdateMilestone: r,
|
|
8754
8767
|
onArchiveMilestone: c,
|
|
@@ -8758,43 +8771,43 @@ const Ra = /* @__PURE__ */ B(O9, [["render", V9], ["__scopeId", "data-v-c0ae9237
|
|
|
8758
8771
|
}, null, 8, ["phases", "closed-status", "is-editable"])
|
|
8759
8772
|
])
|
|
8760
8773
|
]),
|
|
8761
|
-
E
|
|
8774
|
+
S(E, {
|
|
8762
8775
|
class: "ao-project__sidebar",
|
|
8763
|
-
phases:
|
|
8764
|
-
"project-id":
|
|
8765
|
-
"project-name":
|
|
8766
|
-
users:
|
|
8767
|
-
"is-editable":
|
|
8768
|
-
onClose:
|
|
8776
|
+
phases: O.phases,
|
|
8777
|
+
"project-id": O.project.id,
|
|
8778
|
+
"project-name": O.project.name,
|
|
8779
|
+
users: O.users,
|
|
8780
|
+
"is-editable": O.isEditable,
|
|
8781
|
+
onClose: _[3] || (_[3] = (H) => O.$router.push({ name: z(He).project })),
|
|
8769
8782
|
onAddActivity: u,
|
|
8770
8783
|
onUpdateActivity: p,
|
|
8771
8784
|
onArchiveActivity: m
|
|
8772
8785
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable"]),
|
|
8773
8786
|
(f(), N(It, { to: "body" }, [
|
|
8774
|
-
E
|
|
8787
|
+
S(E, {
|
|
8775
8788
|
name: "modal",
|
|
8776
8789
|
activities: $.value,
|
|
8777
|
-
"is-task-checkable":
|
|
8778
|
-
statuses:
|
|
8779
|
-
"activity-types":
|
|
8780
|
-
phases:
|
|
8781
|
-
users:
|
|
8782
|
-
"user-id":
|
|
8783
|
-
"is-editable":
|
|
8790
|
+
"is-task-checkable": O.isTaskCheckable,
|
|
8791
|
+
statuses: O.statuses,
|
|
8792
|
+
"activity-types": O.activityTypes,
|
|
8793
|
+
phases: O.phases,
|
|
8794
|
+
users: O.users,
|
|
8795
|
+
"user-id": O.userId,
|
|
8796
|
+
"is-editable": O.isEditable,
|
|
8784
8797
|
"onUpdate:activity": p,
|
|
8785
8798
|
onAddSubtask: w,
|
|
8786
8799
|
onUpdateSubtask: A,
|
|
8787
|
-
onDeleteSubtask:
|
|
8800
|
+
onDeleteSubtask: g,
|
|
8788
8801
|
onAddFiles: y,
|
|
8789
8802
|
onRemoveFile: L,
|
|
8790
8803
|
onAddComment: Z,
|
|
8791
8804
|
onUpdateComment: W,
|
|
8792
8805
|
onRemoveComment: V
|
|
8793
8806
|
}, {
|
|
8794
|
-
default: U(({ Component:
|
|
8795
|
-
(f(), N(Xe(
|
|
8796
|
-
default: U((
|
|
8797
|
-
x(
|
|
8807
|
+
default: U(({ Component: H }) => [
|
|
8808
|
+
(f(), N(Xe(H), null, {
|
|
8809
|
+
default: U((re) => [
|
|
8810
|
+
x(O.$slots, "activityDetailsBody", Ht(Pt(re)))
|
|
8798
8811
|
]),
|
|
8799
8812
|
_: 2
|
|
8800
8813
|
}, 1024))
|
|
@@ -8806,10 +8819,10 @@ const Ra = /* @__PURE__ */ B(O9, [["render", V9], ["__scopeId", "data-v-c0ae9237
|
|
|
8806
8819
|
(f(), N(It, { to: "body" }, [
|
|
8807
8820
|
X.value ? (f(), N(I9, {
|
|
8808
8821
|
key: 0,
|
|
8809
|
-
"project-id":
|
|
8810
|
-
templates:
|
|
8811
|
-
onClose:
|
|
8812
|
-
onApply:
|
|
8822
|
+
"project-id": O.project.id,
|
|
8823
|
+
templates: O.templates,
|
|
8824
|
+
onClose: _[4] || (_[4] = (H) => X.value = !1),
|
|
8825
|
+
onApply: ee
|
|
8813
8826
|
}, null, 8, ["project-id", "templates"])) : T("", !0)
|
|
8814
8827
|
]))
|
|
8815
8828
|
], 64);
|
|
@@ -8916,7 +8929,7 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8916
8929
|
default: U(() => [
|
|
8917
8930
|
v("div", U9, [
|
|
8918
8931
|
s.value ? (f(), h("span", j9, q(s.value), 1)) : T("", !0),
|
|
8919
|
-
|
|
8932
|
+
S(Ce, {
|
|
8920
8933
|
id: p.id,
|
|
8921
8934
|
title: p.name,
|
|
8922
8935
|
level: 5,
|
|
@@ -8934,7 +8947,7 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8934
8947
|
key: w.id
|
|
8935
8948
|
}, [
|
|
8936
8949
|
w ? (f(), h("li", W9, [
|
|
8937
|
-
|
|
8950
|
+
S(gt, {
|
|
8938
8951
|
"user-name": l(w),
|
|
8939
8952
|
"avatar-url": w.avatarUrl,
|
|
8940
8953
|
"is-closable": !0,
|
|
@@ -8945,14 +8958,14 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8945
8958
|
]),
|
|
8946
8959
|
p.comments || p.attachments ? (f(), h("ul", Y9, [
|
|
8947
8960
|
p.comments ? (f(), h("li", K9, [
|
|
8948
|
-
|
|
8961
|
+
S(ce, {
|
|
8949
8962
|
name: "ChatOutline",
|
|
8950
8963
|
size: "sm"
|
|
8951
8964
|
}),
|
|
8952
8965
|
v("span", G9, q(p.comments), 1)
|
|
8953
8966
|
])) : T("", !0),
|
|
8954
8967
|
p.attachments ? (f(), h("li", x9, [
|
|
8955
|
-
|
|
8968
|
+
S(ce, {
|
|
8956
8969
|
name: "AttachFileRounded",
|
|
8957
8970
|
size: "sm"
|
|
8958
8971
|
}),
|
|
@@ -8963,13 +8976,13 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8963
8976
|
v("div", Q9, [
|
|
8964
8977
|
p.tasks && p.tasks.length ? (f(), h("div", J9, [
|
|
8965
8978
|
v("div", e4, [
|
|
8966
|
-
|
|
8979
|
+
S(ce, {
|
|
8967
8980
|
name: "SelectCheckBox",
|
|
8968
8981
|
size: "sm"
|
|
8969
8982
|
}),
|
|
8970
8983
|
v("span", t4, q(c.value) + " / " + q(r.value), 1)
|
|
8971
8984
|
]),
|
|
8972
|
-
|
|
8985
|
+
S(Z1, {
|
|
8973
8986
|
percentages: u.value,
|
|
8974
8987
|
class: "ao-card-feed__progress"
|
|
8975
8988
|
}, null, 8, ["percentages"])
|
|
@@ -9009,7 +9022,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9009
9022
|
var p;
|
|
9010
9023
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
9011
9024
|
});
|
|
9012
|
-
|
|
9025
|
+
de(l, (p, m) => {
|
|
9013
9026
|
Ue(p, m);
|
|
9014
9027
|
});
|
|
9015
9028
|
const d = (p) => {
|
|
@@ -9039,19 +9052,19 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9039
9052
|
v("header", s4, [
|
|
9040
9053
|
v("div", n4, [
|
|
9041
9054
|
v("span", null, q(p.$t("project.milestone.title")), 1),
|
|
9042
|
-
|
|
9055
|
+
S(Ce, {
|
|
9043
9056
|
title: ((w = i.value) == null ? void 0 : w.name) || p.milestoneId,
|
|
9044
9057
|
level: 5
|
|
9045
9058
|
}, null, 8, ["title"])
|
|
9046
9059
|
]),
|
|
9047
|
-
|
|
9060
|
+
S(fe, {
|
|
9048
9061
|
"icon-name": "CloseRounded",
|
|
9049
9062
|
variant: "ghost",
|
|
9050
9063
|
onClick: d
|
|
9051
9064
|
})
|
|
9052
9065
|
]),
|
|
9053
9066
|
v("div", i4, [
|
|
9054
|
-
|
|
9067
|
+
S(z(Qe), Ee({
|
|
9055
9068
|
class: "ao-project-milestone__activities",
|
|
9056
9069
|
list: l.value,
|
|
9057
9070
|
disabled: !p.isEditable,
|
|
@@ -9059,12 +9072,12 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9059
9072
|
group: "kanban"
|
|
9060
9073
|
}, p.$attrs, { onChange: u }), {
|
|
9061
9074
|
item: U(({ element: A }) => {
|
|
9062
|
-
var
|
|
9075
|
+
var g, $, y, L;
|
|
9063
9076
|
return [
|
|
9064
|
-
|
|
9077
|
+
S(Ua, {
|
|
9065
9078
|
id: A.id,
|
|
9066
9079
|
name: A.name || A.id,
|
|
9067
|
-
"phase-name": (
|
|
9080
|
+
"phase-name": (g = s.value) == null ? void 0 : g.name,
|
|
9068
9081
|
"milestone-name": ($ = i.value) == null ? void 0 : $.name,
|
|
9069
9082
|
deadline: A.deadline,
|
|
9070
9083
|
important: A.important,
|
|
@@ -9085,7 +9098,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9085
9098
|
p.isEditable ? {
|
|
9086
9099
|
name: "secondary",
|
|
9087
9100
|
fn: U(() => [
|
|
9088
|
-
|
|
9101
|
+
S(fe, {
|
|
9089
9102
|
color: "primary",
|
|
9090
9103
|
variant: "ghost",
|
|
9091
9104
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -9104,7 +9117,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9104
9117
|
_: 1
|
|
9105
9118
|
}, 16, ["list", "disabled"]),
|
|
9106
9119
|
p.isEditable ? (f(), h("div", o4, [
|
|
9107
|
-
|
|
9120
|
+
S(Je, {
|
|
9108
9121
|
"icon-name": "Add",
|
|
9109
9122
|
label: p.$t("project.activity.add"),
|
|
9110
9123
|
onClick: r
|
|
@@ -9134,54 +9147,54 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
9134
9147
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9135
9148
|
setup(t, { emit: e }) {
|
|
9136
9149
|
const a = t, n = b(() => {
|
|
9137
|
-
var
|
|
9138
|
-
return (
|
|
9150
|
+
var g;
|
|
9151
|
+
return (g = a.phases) == null ? void 0 : g.find(($) => $.id === a.phaseId);
|
|
9139
9152
|
}), s = b(
|
|
9140
9153
|
() => {
|
|
9141
|
-
var
|
|
9142
|
-
return (
|
|
9154
|
+
var g;
|
|
9155
|
+
return (g = a.phases) == null ? void 0 : g.flatMap(($) => $.milestones);
|
|
9143
9156
|
}
|
|
9144
9157
|
), o = b(() => {
|
|
9145
|
-
var
|
|
9146
|
-
return (
|
|
9158
|
+
var g;
|
|
9159
|
+
return (g = s.value) == null ? void 0 : g.find(($) => $.id === a.milestoneId);
|
|
9147
9160
|
}), i = b(() => {
|
|
9148
|
-
var
|
|
9149
|
-
return (
|
|
9150
|
-
}), l = (
|
|
9151
|
-
e("update:activity",
|
|
9152
|
-
}, d = (
|
|
9153
|
-
e("addSubtask",
|
|
9154
|
-
}, r = (
|
|
9155
|
-
e("updateSubtask",
|
|
9156
|
-
}, c = (
|
|
9157
|
-
e("deleteSubtask",
|
|
9158
|
-
}, u = (
|
|
9159
|
-
e("addFiles",
|
|
9160
|
-
}, p = (
|
|
9161
|
-
e("removeFile",
|
|
9162
|
-
}, m = (
|
|
9163
|
-
e("addComment",
|
|
9164
|
-
}, w = (
|
|
9165
|
-
e("updateComment",
|
|
9166
|
-
}, A = (
|
|
9167
|
-
e("removeComment",
|
|
9161
|
+
var g;
|
|
9162
|
+
return (g = a.activities) == null ? void 0 : g.find(($) => $.id === a.activityId);
|
|
9163
|
+
}), l = (g) => {
|
|
9164
|
+
e("update:activity", g);
|
|
9165
|
+
}, d = (g) => {
|
|
9166
|
+
e("addSubtask", g);
|
|
9167
|
+
}, r = (g) => {
|
|
9168
|
+
e("updateSubtask", g);
|
|
9169
|
+
}, c = (g) => {
|
|
9170
|
+
e("deleteSubtask", g);
|
|
9171
|
+
}, u = (g) => {
|
|
9172
|
+
e("addFiles", g);
|
|
9173
|
+
}, p = (g) => {
|
|
9174
|
+
e("removeFile", g);
|
|
9175
|
+
}, m = (g) => {
|
|
9176
|
+
e("addComment", g);
|
|
9177
|
+
}, w = (g) => {
|
|
9178
|
+
e("updateComment", g);
|
|
9179
|
+
}, A = (g) => {
|
|
9180
|
+
e("removeComment", g);
|
|
9168
9181
|
};
|
|
9169
|
-
return (
|
|
9182
|
+
return (g, $) => {
|
|
9170
9183
|
var y, L;
|
|
9171
9184
|
return i.value ? (f(), N(U1, {
|
|
9172
9185
|
key: 0,
|
|
9173
9186
|
activity: i.value,
|
|
9174
|
-
"activity-types":
|
|
9175
|
-
"milestone-id":
|
|
9176
|
-
"template-activities":
|
|
9187
|
+
"activity-types": g.activityTypes,
|
|
9188
|
+
"milestone-id": g.milestoneId,
|
|
9189
|
+
"template-activities": g.activities,
|
|
9177
9190
|
"is-template": !1,
|
|
9178
|
-
users:
|
|
9179
|
-
"user-id":
|
|
9180
|
-
"is-task-checkable":
|
|
9181
|
-
statuses:
|
|
9191
|
+
users: g.users,
|
|
9192
|
+
"user-id": g.userId,
|
|
9193
|
+
"is-task-checkable": g.isTaskCheckable,
|
|
9194
|
+
statuses: g.statuses,
|
|
9182
9195
|
breadcrumbs: `${(y = n.value) == null ? void 0 : y.name} / ${(L = o.value) == null ? void 0 : L.name}`,
|
|
9183
|
-
"is-editable":
|
|
9184
|
-
onClose:
|
|
9196
|
+
"is-editable": g.isEditable,
|
|
9197
|
+
onClose: g.$router.back,
|
|
9185
9198
|
"onUpdate:activity": l,
|
|
9186
9199
|
onAddSubtask: d,
|
|
9187
9200
|
onUpdateSubtask: r,
|
|
@@ -9193,7 +9206,7 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
9193
9206
|
onRemoveComment: A
|
|
9194
9207
|
}, {
|
|
9195
9208
|
default: U((Z) => [
|
|
9196
|
-
x(
|
|
9209
|
+
x(g.$slots, "default", Ht(Pt(Z)))
|
|
9197
9210
|
]),
|
|
9198
9211
|
_: 3
|
|
9199
9212
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) : T("", !0);
|
|
@@ -9207,7 +9220,7 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
9207
9220
|
},
|
|
9208
9221
|
setup(t) {
|
|
9209
9222
|
return (e, a) => (f(), h("header", r4, [
|
|
9210
|
-
|
|
9223
|
+
S(Ce, {
|
|
9211
9224
|
title: e.title,
|
|
9212
9225
|
class: "ao-col-header__title",
|
|
9213
9226
|
level: 4
|
|
@@ -9288,12 +9301,12 @@ function g4(t, e, a = {}) {
|
|
|
9288
9301
|
return (Array.isArray(w) ? w : [w]).map(A1).filter(f4);
|
|
9289
9302
|
});
|
|
9290
9303
|
let c = St;
|
|
9291
|
-
const u = Q(l), p = d.value ?
|
|
9304
|
+
const u = Q(l), p = d.value ? de(
|
|
9292
9305
|
() => [r.value, A1(n), u.value],
|
|
9293
9306
|
([w, A]) => {
|
|
9294
9307
|
if (c(), !u.value || !w.length)
|
|
9295
9308
|
return;
|
|
9296
|
-
const
|
|
9309
|
+
const g = new IntersectionObserver(
|
|
9297
9310
|
e,
|
|
9298
9311
|
{
|
|
9299
9312
|
root: A1(A),
|
|
@@ -9301,8 +9314,8 @@ function g4(t, e, a = {}) {
|
|
|
9301
9314
|
threshold: o
|
|
9302
9315
|
}
|
|
9303
9316
|
);
|
|
9304
|
-
w.forEach(($) => $ &&
|
|
9305
|
-
|
|
9317
|
+
w.forEach(($) => $ && g.observe($)), c = () => {
|
|
9318
|
+
g.disconnect(), c = St;
|
|
9306
9319
|
};
|
|
9307
9320
|
},
|
|
9308
9321
|
{ immediate: l, flush: "post" }
|
|
@@ -9356,7 +9369,7 @@ const y4 = {
|
|
|
9356
9369
|
const a = t, n = Q(!1), s = Q(null);
|
|
9357
9370
|
g4(s, ([{ isIntersecting: r }]) => {
|
|
9358
9371
|
n.value = r;
|
|
9359
|
-
}),
|
|
9372
|
+
}), de(n, (r) => {
|
|
9360
9373
|
r && a.hasMore && !a.isLoading && e("loadMore");
|
|
9361
9374
|
});
|
|
9362
9375
|
const o = (r) => {
|
|
@@ -9390,7 +9403,7 @@ const y4 = {
|
|
|
9390
9403
|
])
|
|
9391
9404
|
];
|
|
9392
9405
|
}) : T("", !0),
|
|
9393
|
-
|
|
9406
|
+
S(z(Qe), Ee({
|
|
9394
9407
|
class: ["ao-list-kanban__list", d.value ? "ao-list-kanban__transition" : void 0],
|
|
9395
9408
|
list: r.list,
|
|
9396
9409
|
"item-key": "id",
|
|
@@ -9408,15 +9421,15 @@ const y4 = {
|
|
|
9408
9421
|
}
|
|
9409
9422
|
}), {
|
|
9410
9423
|
item: U(({ element: u }) => {
|
|
9411
|
-
var p, m, w, A,
|
|
9424
|
+
var p, m, w, A, g, $, y, L;
|
|
9412
9425
|
return [
|
|
9413
|
-
|
|
9426
|
+
S(Ua, {
|
|
9414
9427
|
id: u.id,
|
|
9415
9428
|
name: u.name,
|
|
9416
9429
|
"project-name": (p = u.project) == null ? void 0 : p.name,
|
|
9417
9430
|
"project-color": (m = u.project) == null ? void 0 : m.color,
|
|
9418
9431
|
"phase-name": (A = (w = u.milestone) == null ? void 0 : w.phase) == null ? void 0 : A.name,
|
|
9419
|
-
"milestone-name": (
|
|
9432
|
+
"milestone-name": (g = u.milestone) == null ? void 0 : g.name,
|
|
9420
9433
|
deadline: u.deadline,
|
|
9421
9434
|
rules: (($ = u.rules) == null ? void 0 : $.length) || 0,
|
|
9422
9435
|
tasks: u.tasks,
|
|
@@ -9455,7 +9468,7 @@ const y4 = {
|
|
|
9455
9468
|
}),
|
|
9456
9469
|
footer: U(() => [
|
|
9457
9470
|
r.isLoading ? (f(), h("div", w4, [
|
|
9458
|
-
|
|
9471
|
+
S(ce, { name: "Loading" })
|
|
9459
9472
|
])) : r.hasMore ? (f(), h("div", {
|
|
9460
9473
|
key: 2,
|
|
9461
9474
|
ref_key: "scrollEnd",
|
|
@@ -9505,11 +9518,11 @@ const S4 = { class: "ao-field ao-search-field" }, E4 = ["value", "placeholder",
|
|
|
9505
9518
|
(...d) => z(s) && z(s)(...d)),
|
|
9506
9519
|
onKeypress: Ye(n, ["enter"])
|
|
9507
9520
|
}, null, 40, E4),
|
|
9508
|
-
|
|
9521
|
+
S(ce, {
|
|
9509
9522
|
name: "SearchRounded",
|
|
9510
9523
|
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
9511
9524
|
}, null, 8, ["class"]),
|
|
9512
|
-
|
|
9525
|
+
S(fe, {
|
|
9513
9526
|
"icon-name": "CloseRounded",
|
|
9514
9527
|
size: "sm",
|
|
9515
9528
|
color: "primary",
|
|
@@ -9570,10 +9583,10 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9570
9583
|
const a = t, { t: n } = nt(), s = vt(a, "activities"), { selectActivity: o, selectedActivity: i } = V4(s), l = async (k) => {
|
|
9571
9584
|
o(k), await e("selectActivity", k);
|
|
9572
9585
|
}, d = Q({}), r = Q(!1), c = Q(!1);
|
|
9573
|
-
|
|
9586
|
+
de(
|
|
9574
9587
|
[() => a.statuses, () => a.activities, () => a.initialActivityId],
|
|
9575
9588
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9576
|
-
async ([k, K, ie], [
|
|
9589
|
+
async ([k, K, ie], [P, I]) => {
|
|
9577
9590
|
d.value = Object.fromEntries(
|
|
9578
9591
|
k.map((R) => [
|
|
9579
9592
|
R.id,
|
|
@@ -9582,7 +9595,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9582
9595
|
return ((Me = me.status) == null ? void 0 : Me.id) === R.id;
|
|
9583
9596
|
})
|
|
9584
9597
|
])
|
|
9585
|
-
), ie && !r.value && (l(ie), r.value = !0), c.value && Ue(K,
|
|
9598
|
+
), ie && !r.value && (l(ie), r.value = !0), c.value && Ue(K, I);
|
|
9586
9599
|
},
|
|
9587
9600
|
{ immediate: !0 }
|
|
9588
9601
|
);
|
|
@@ -9591,12 +9604,12 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9591
9604
|
return !i.value || !i.value.milestone ? "" : `${((k = i.value.milestone.phase) == null ? void 0 : k.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9592
9605
|
}), p = (k) => {
|
|
9593
9606
|
var R, me;
|
|
9594
|
-
const K = (R = a.activities) == null ? void 0 : R.at(-1), ie = K ? Te.LexoRank.parse(K.rank).genNext() : Te.LexoRank.middle(),
|
|
9595
|
-
name: n("activity.defaultName", { idx:
|
|
9607
|
+
const K = (R = a.activities) == null ? void 0 : R.at(-1), ie = K ? Te.LexoRank.parse(K.rank).genNext() : Te.LexoRank.middle(), P = ((me = a.activities) == null ? void 0 : me.length) ?? 0, I = {
|
|
9608
|
+
name: n("activity.defaultName", { idx: P + 1 }),
|
|
9596
9609
|
rank: ie.format(),
|
|
9597
9610
|
statusId: k.id
|
|
9598
9611
|
};
|
|
9599
|
-
a.filters.assigneeId.length > 0 && (
|
|
9612
|
+
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]), c.value = !0, e("addActivity", I);
|
|
9600
9613
|
}, m = (k, K) => {
|
|
9601
9614
|
c.value = !1, e("update:filters", { ...a.filters, [k]: K });
|
|
9602
9615
|
}, w = b(
|
|
@@ -9604,7 +9617,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9604
9617
|
), A = b(() => w.value.map((k) => ({
|
|
9605
9618
|
value: k.id,
|
|
9606
9619
|
label: k.name
|
|
9607
|
-
}))),
|
|
9620
|
+
}))), g = b(() => {
|
|
9608
9621
|
var k;
|
|
9609
9622
|
return (k = a.activityTypes) == null ? void 0 : k.map((K) => ({
|
|
9610
9623
|
value: K.id,
|
|
@@ -9637,37 +9650,37 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9637
9650
|
c.value = !1, e("clear:searchText", k);
|
|
9638
9651
|
}, te = (k) => {
|
|
9639
9652
|
i.value && e("addSubtask", k);
|
|
9640
|
-
}, I = (k) => {
|
|
9641
|
-
i.value && e("updateSubtask", k);
|
|
9642
9653
|
}, ee = (k) => {
|
|
9654
|
+
i.value && e("updateSubtask", k);
|
|
9655
|
+
}, O = (k) => {
|
|
9643
9656
|
i.value && e("deleteSubtask", k);
|
|
9644
|
-
},
|
|
9657
|
+
}, _ = (k) => {
|
|
9645
9658
|
e("addFiles", k);
|
|
9646
|
-
},
|
|
9659
|
+
}, E = (k) => {
|
|
9647
9660
|
e("removeFile", k);
|
|
9648
|
-
},
|
|
9661
|
+
}, H = (k) => {
|
|
9649
9662
|
i.value && e("addComment", {
|
|
9650
9663
|
...k,
|
|
9651
9664
|
activityId: i.value.id
|
|
9652
9665
|
});
|
|
9653
|
-
},
|
|
9666
|
+
}, re = (k) => {
|
|
9654
9667
|
const { id: K } = i.value || {};
|
|
9655
9668
|
K && e("updateComment", k);
|
|
9656
9669
|
}, se = (k) => {
|
|
9657
9670
|
const { id: K } = i.value || {};
|
|
9658
9671
|
K && e("removeComment", k);
|
|
9659
|
-
},
|
|
9672
|
+
}, ue = b(() => w.value.map((k) => ({
|
|
9660
9673
|
value: k.id,
|
|
9661
9674
|
label: k.name
|
|
9662
9675
|
}))), M = b(() => {
|
|
9663
|
-
var K, ie,
|
|
9664
|
-
const k = (
|
|
9665
|
-
(
|
|
9676
|
+
var K, ie, P;
|
|
9677
|
+
const k = (P = (ie = (K = i.value) == null ? void 0 : K.project) == null ? void 0 : ie.phases) == null ? void 0 : P.reduce(
|
|
9678
|
+
(I, R) => [...I, ...R.milestones],
|
|
9666
9679
|
[]
|
|
9667
9680
|
);
|
|
9668
|
-
return k == null ? void 0 : k.map((
|
|
9669
|
-
value:
|
|
9670
|
-
label:
|
|
9681
|
+
return k == null ? void 0 : k.map((I) => ({
|
|
9682
|
+
value: I.id,
|
|
9683
|
+
label: I.name
|
|
9671
9684
|
}));
|
|
9672
9685
|
}), F = (k) => {
|
|
9673
9686
|
i.value && e("update:activity", {
|
|
@@ -9694,7 +9707,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9694
9707
|
return (k, K) => {
|
|
9695
9708
|
var ie;
|
|
9696
9709
|
return f(), h("div", D4, [
|
|
9697
|
-
|
|
9710
|
+
S(d1, null, {
|
|
9698
9711
|
primary: U(() => [
|
|
9699
9712
|
v("div", H4, [
|
|
9700
9713
|
a.project ? (f(), N(Ra, {
|
|
@@ -9702,11 +9715,11 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9702
9715
|
"is-left": !1,
|
|
9703
9716
|
"right-label": k.$t("project.switch.feed"),
|
|
9704
9717
|
"left-label": k.$t("project.switch.overview"),
|
|
9705
|
-
"onUpdate:isLeft": K[0] || (K[0] = (
|
|
9706
|
-
|
|
9718
|
+
"onUpdate:isLeft": K[0] || (K[0] = (P) => {
|
|
9719
|
+
P && k.$router.push({ name: z(He).project });
|
|
9707
9720
|
})
|
|
9708
9721
|
}, null, 8, ["right-label", "left-label"])) : T("", !0),
|
|
9709
|
-
|
|
9722
|
+
S(I4, {
|
|
9710
9723
|
"model-value": k.searchText,
|
|
9711
9724
|
placeholder: k.$t("feed.search.placeholder"),
|
|
9712
9725
|
class: "ao-feed__search",
|
|
@@ -9722,20 +9735,20 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9722
9735
|
searchable: !0,
|
|
9723
9736
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9724
9737
|
placeholder: k.$t("feed.filters.project.placeholder"),
|
|
9725
|
-
"onUpdate:modelValue": K[1] || (K[1] = (
|
|
9738
|
+
"onUpdate:modelValue": K[1] || (K[1] = (P) => m(z(dt).project, P))
|
|
9726
9739
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9727
|
-
|
|
9740
|
+
g.value ? (f(), N(be, {
|
|
9728
9741
|
key: 2,
|
|
9729
9742
|
"model-value": k.filters[z(dt).type],
|
|
9730
9743
|
mode: "tags",
|
|
9731
|
-
options:
|
|
9744
|
+
options: g.value,
|
|
9732
9745
|
"close-on-select": !1,
|
|
9733
9746
|
searchable: !0,
|
|
9734
9747
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9735
9748
|
placeholder: k.$t("feed.filters.activityType.placeholder"),
|
|
9736
|
-
"onUpdate:modelValue": K[2] || (K[2] = (
|
|
9749
|
+
"onUpdate:modelValue": K[2] || (K[2] = (P) => m(z(dt).type, P))
|
|
9737
9750
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
9738
|
-
|
|
9751
|
+
S(be, {
|
|
9739
9752
|
"model-value": k.filters[z(dt).assignee],
|
|
9740
9753
|
mode: "tags",
|
|
9741
9754
|
options: $.value,
|
|
@@ -9743,23 +9756,23 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9743
9756
|
searchable: !0,
|
|
9744
9757
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9745
9758
|
placeholder: k.$t("feed.filters.assignee.placeholder"),
|
|
9746
|
-
"onUpdate:modelValue": K[3] || (K[3] = (
|
|
9759
|
+
"onUpdate:modelValue": K[3] || (K[3] = (P) => m(z(dt).assignee, P))
|
|
9747
9760
|
}, {
|
|
9748
9761
|
tag: U(({
|
|
9749
|
-
option:
|
|
9750
|
-
handleTagRemove:
|
|
9762
|
+
option: P,
|
|
9763
|
+
handleTagRemove: I
|
|
9751
9764
|
}) => [
|
|
9752
|
-
|
|
9753
|
-
"user-name":
|
|
9754
|
-
"avatar-url":
|
|
9765
|
+
S(gt, {
|
|
9766
|
+
"user-name": P.label,
|
|
9767
|
+
"avatar-url": P.avatar,
|
|
9755
9768
|
"is-closable": !0,
|
|
9756
|
-
onClose: (R) =>
|
|
9769
|
+
onClose: (R) => I(P, R)
|
|
9757
9770
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
9758
9771
|
]),
|
|
9759
9772
|
_: 1
|
|
9760
9773
|
}, 8, ["model-value", "options", "placeholder"])
|
|
9761
9774
|
]),
|
|
9762
|
-
|
|
9775
|
+
S(fe, {
|
|
9763
9776
|
class: "ao-feed__show-archived",
|
|
9764
9777
|
size: "sm",
|
|
9765
9778
|
"icon-name": k.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
@@ -9769,21 +9782,21 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9769
9782
|
label: k.$t("feed.filters.showsArchivedActivities.label"),
|
|
9770
9783
|
role: "checkbox",
|
|
9771
9784
|
"aria-checked": k.showsArchivedActivities,
|
|
9772
|
-
onClick: K[4] || (K[4] = (
|
|
9785
|
+
onClick: K[4] || (K[4] = (P) => k.$emit("update:showsArchivedActivities", !k.showsArchivedActivities))
|
|
9773
9786
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9774
9787
|
]),
|
|
9775
9788
|
_: 1
|
|
9776
9789
|
}),
|
|
9777
9790
|
v("div", P4, [
|
|
9778
|
-
(f(!0), h(ve, null, ye(k.statuses, (
|
|
9779
|
-
key:
|
|
9780
|
-
status:
|
|
9781
|
-
list: d.value[
|
|
9782
|
-
title:
|
|
9791
|
+
(f(!0), h(ve, null, ye(k.statuses, (P) => (f(), N(T4, {
|
|
9792
|
+
key: P.id,
|
|
9793
|
+
status: P,
|
|
9794
|
+
list: d.value[P.id],
|
|
9795
|
+
title: P.name,
|
|
9783
9796
|
"footer-label": k.$t("feed.activity.add"),
|
|
9784
9797
|
users: k.users,
|
|
9785
9798
|
"is-editable": k.isEditable,
|
|
9786
|
-
onAdd: () => p(
|
|
9799
|
+
onAdd: () => p(P),
|
|
9787
9800
|
onSelectActivity: l,
|
|
9788
9801
|
onArchiveActivity: Z,
|
|
9789
9802
|
onUpdateActivity: L
|
|
@@ -9805,23 +9818,23 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9805
9818
|
onClose: K[6] || (K[6] = () => l(null)),
|
|
9806
9819
|
"onUpdate:activity": y,
|
|
9807
9820
|
onAddSubtask: te,
|
|
9808
|
-
onUpdateSubtask:
|
|
9809
|
-
onDeleteSubtask:
|
|
9810
|
-
onAddFiles:
|
|
9811
|
-
onRemoveFile:
|
|
9812
|
-
onAddComment:
|
|
9813
|
-
onUpdateComment:
|
|
9821
|
+
onUpdateSubtask: ee,
|
|
9822
|
+
onDeleteSubtask: O,
|
|
9823
|
+
onAddFiles: _,
|
|
9824
|
+
onRemoveFile: E,
|
|
9825
|
+
onAddComment: H,
|
|
9826
|
+
onUpdateComment: re,
|
|
9814
9827
|
onRemoveComment: se
|
|
9815
9828
|
}, {
|
|
9816
9829
|
header: U(() => {
|
|
9817
|
-
var
|
|
9830
|
+
var P, I, R;
|
|
9818
9831
|
return [
|
|
9819
9832
|
v("div", B4, [
|
|
9820
|
-
|
|
9833
|
+
ue.value && !a.project ? (f(), h("label", N4, [
|
|
9821
9834
|
v("span", R4, q(k.$t("activity.project.label")), 1),
|
|
9822
|
-
|
|
9823
|
-
options:
|
|
9824
|
-
value: (
|
|
9835
|
+
S(be, {
|
|
9836
|
+
options: ue.value,
|
|
9837
|
+
value: (P = z(i).project) == null ? void 0 : P.id,
|
|
9825
9838
|
searchable: !0,
|
|
9826
9839
|
disabled: !k.isEditable,
|
|
9827
9840
|
caret: k.isEditable,
|
|
@@ -9830,9 +9843,9 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9830
9843
|
])) : T("", !0),
|
|
9831
9844
|
M.value ? (f(), h("label", U4, [
|
|
9832
9845
|
v("span", j4, q(k.$t("activity.milestone.label")), 1),
|
|
9833
|
-
|
|
9846
|
+
S(be, {
|
|
9834
9847
|
options: M.value,
|
|
9835
|
-
value: (
|
|
9848
|
+
value: (I = z(i).milestone) == null ? void 0 : I.id,
|
|
9836
9849
|
searchable: !0,
|
|
9837
9850
|
disabled: !k.isEditable,
|
|
9838
9851
|
caret: k.isEditable,
|
|
@@ -9841,7 +9854,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9841
9854
|
])) : T("", !0),
|
|
9842
9855
|
ae.value ? (f(), h("label", Z4, [
|
|
9843
9856
|
v("span", F4, q(k.$t("activity.status.label")), 1),
|
|
9844
|
-
|
|
9857
|
+
S(be, {
|
|
9845
9858
|
options: ae.value,
|
|
9846
9859
|
value: (R = z(i).status) == null ? void 0 : R.id,
|
|
9847
9860
|
"can-clear": !1,
|
|
@@ -9854,12 +9867,12 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9854
9867
|
])
|
|
9855
9868
|
];
|
|
9856
9869
|
}),
|
|
9857
|
-
default: U((
|
|
9870
|
+
default: U((P) => [
|
|
9858
9871
|
v("div", q4, [
|
|
9859
9872
|
v("label", z4, [
|
|
9860
9873
|
v("span", W4, q(k.$t("activity.deadline.label")), 1),
|
|
9861
9874
|
tt(v("input", {
|
|
9862
|
-
"onUpdate:modelValue": K[5] || (K[5] = (
|
|
9875
|
+
"onUpdate:modelValue": K[5] || (K[5] = (I) => W.value = I),
|
|
9863
9876
|
class: "ao-field__input",
|
|
9864
9877
|
type: "date"
|
|
9865
9878
|
}, null, 512), [
|
|
@@ -9872,7 +9885,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9872
9885
|
])
|
|
9873
9886
|
])
|
|
9874
9887
|
]),
|
|
9875
|
-
x(k.$slots, "activityDetailsBody", Ht(Pt(
|
|
9888
|
+
x(k.$slots, "activityDetailsBody", Ht(Pt(P)))
|
|
9876
9889
|
]),
|
|
9877
9890
|
_: 3
|
|
9878
9891
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable"])) : T("", !0)
|
|
@@ -9955,7 +9968,7 @@ const ft = {
|
|
|
9955
9968
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
9956
9969
|
setup(t, { emit: e }) {
|
|
9957
9970
|
const a = t, { t: n } = nt();
|
|
9958
|
-
|
|
9971
|
+
de(() => a.templates, (l, d) => {
|
|
9959
9972
|
Ue(l, d);
|
|
9960
9973
|
});
|
|
9961
9974
|
const s = () => {
|
|
@@ -9988,9 +10001,9 @@ const ft = {
|
|
|
9988
10001
|
}
|
|
9989
10002
|
};
|
|
9990
10003
|
return (l, d) => (f(), h("div", K4, [
|
|
9991
|
-
|
|
10004
|
+
S(d1, null, {
|
|
9992
10005
|
secondary: U(() => [
|
|
9993
|
-
|
|
10006
|
+
S(fe, {
|
|
9994
10007
|
label: l.$t("templates.new"),
|
|
9995
10008
|
color: "primary",
|
|
9996
10009
|
"icon-name": "Add",
|
|
@@ -10000,7 +10013,7 @@ const ft = {
|
|
|
10000
10013
|
]),
|
|
10001
10014
|
_: 1
|
|
10002
10015
|
}),
|
|
10003
|
-
|
|
10016
|
+
S(z(Qe), {
|
|
10004
10017
|
"model-value": l.templates,
|
|
10005
10018
|
class: "ao-templates__list",
|
|
10006
10019
|
"item-key": "id",
|
|
@@ -10010,7 +10023,7 @@ const ft = {
|
|
|
10010
10023
|
item: U(({ element: r }) => {
|
|
10011
10024
|
var c;
|
|
10012
10025
|
return [
|
|
10013
|
-
|
|
10026
|
+
S(P0, {
|
|
10014
10027
|
id: r.id,
|
|
10015
10028
|
title: r.name,
|
|
10016
10029
|
phases: r.phases,
|