@26lights/orcha 0.14.8 → 0.15.0
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 +417 -411
- package/dist/orcha.umd.js +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as
|
|
1
|
+
import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as w, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as te, toDisplayString as z, createCommentVNode as k, ref as J, watch as re, nextTick as Ee, withKeys as Ye, toHandlers as dn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as be, onMounted as Dt, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as ct, normalizeProps as fn, guardReactiveProps as vn, onUpdated as pn, withDirectives as ft, vModelText as Et, vModelCheckbox as hn, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
|
|
2
2
|
import { RouterView as bn } from "vue-router";
|
|
3
3
|
import Xe from "vuedraggable";
|
|
4
4
|
const Y4 = /* @__PURE__ */ x({
|
|
@@ -1141,7 +1141,7 @@ const Ju = /* @__PURE__ */ B(Ku, [["render", Qu]]), ed = /* @__PURE__ */ Object.
|
|
|
1141
1141
|
size: { default: a1.MD }
|
|
1142
1142
|
},
|
|
1143
1143
|
setup(a) {
|
|
1144
|
-
const e = a, t =
|
|
1144
|
+
const e = a, t = w(() => ed[e.name]);
|
|
1145
1145
|
return (s, n) => (c(), N(tt(t.value), {
|
|
1146
1146
|
class: G(["ao-icon", `ao-icon--${s.size}`])
|
|
1147
1147
|
}, null, 8, ["class"]));
|
|
@@ -1165,7 +1165,7 @@ const nd = ["type"], sd = {
|
|
|
1165
1165
|
corners: { default: () => da.ROUNDED }
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(a) {
|
|
1168
|
-
const e = a, t =
|
|
1168
|
+
const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
|
|
1169
1169
|
return (n, o) => (c(), h("button", {
|
|
1170
1170
|
type: n.type,
|
|
1171
1171
|
class: G([
|
|
@@ -1180,19 +1180,19 @@ const nd = ["type"], sd = {
|
|
|
1180
1180
|
])
|
|
1181
1181
|
}, [
|
|
1182
1182
|
te(n.$slots, "default", {}, () => [
|
|
1183
|
-
n.label ? (c(), h("span", sd, z(n.label), 1)) :
|
|
1183
|
+
n.label ? (c(), h("span", sd, z(n.label), 1)) : k("", !0)
|
|
1184
1184
|
]),
|
|
1185
1185
|
s.value ? (c(), N(ce, {
|
|
1186
1186
|
key: 0,
|
|
1187
1187
|
name: s.value,
|
|
1188
1188
|
class: "ao-button__icon",
|
|
1189
1189
|
size: t.value
|
|
1190
|
-
}, null, 8, ["name", "size"])) :
|
|
1190
|
+
}, null, 8, ["name", "size"])) : k("", !0)
|
|
1191
1191
|
], 10, nd));
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
1194
|
function ca(a) {
|
|
1195
|
-
const e = J(!1), t = J(""), s =
|
|
1195
|
+
const e = J(!1), t = J(""), s = w(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
|
|
1196
1196
|
e.value = !e.value;
|
|
1197
1197
|
}, o = (r) => {
|
|
1198
1198
|
e.value = r;
|
|
@@ -1232,7 +1232,7 @@ const me = /* @__PURE__ */ x({
|
|
|
1232
1232
|
},
|
|
1233
1233
|
emits: ["update:title", "toggle-is-editing"],
|
|
1234
1234
|
setup(a, { emit: e }) {
|
|
1235
|
-
const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r =
|
|
1235
|
+
const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r = w(() => n.value ? "input" : t.tag || `h${t.level}`), d = w(() => t.isEditable ? n.value ? {
|
|
1236
1236
|
change: u,
|
|
1237
1237
|
click: (M) => M.stopPropagation(),
|
|
1238
1238
|
blur: p
|
|
@@ -1329,7 +1329,7 @@ const id = {
|
|
|
1329
1329
|
name: "DragIndicator",
|
|
1330
1330
|
class: "ao-card-horiz__drag-handle"
|
|
1331
1331
|
})
|
|
1332
|
-
])) :
|
|
1332
|
+
])) : k("", !0),
|
|
1333
1333
|
v("div", od, [
|
|
1334
1334
|
s.icon ? (c(), h("div", ld, [
|
|
1335
1335
|
T(ce, {
|
|
@@ -1337,7 +1337,7 @@ const id = {
|
|
|
1337
1337
|
name: s.icon,
|
|
1338
1338
|
size: "xl"
|
|
1339
1339
|
}, null, 8, ["name"])
|
|
1340
|
-
])) :
|
|
1340
|
+
])) : k("", !0),
|
|
1341
1341
|
v("div", rd, [
|
|
1342
1342
|
T(me, {
|
|
1343
1343
|
id: s.id,
|
|
@@ -1348,22 +1348,22 @@ const id = {
|
|
|
1348
1348
|
"onUpdate:title": t
|
|
1349
1349
|
}, null, 8, ["id", "title"]),
|
|
1350
1350
|
te(s.$slots, "subtitle", {}, () => [
|
|
1351
|
-
s.subtitle ? (c(), h("span", ud, z(s.subtitle), 1)) :
|
|
1351
|
+
s.subtitle ? (c(), h("span", ud, z(s.subtitle), 1)) : k("", !0)
|
|
1352
1352
|
])
|
|
1353
1353
|
]),
|
|
1354
1354
|
s.$slots.header ? (c(), h("div", dd, [
|
|
1355
1355
|
te(s.$slots, "header")
|
|
1356
|
-
])) :
|
|
1356
|
+
])) : k("", !0)
|
|
1357
1357
|
]),
|
|
1358
1358
|
s.$slots.default ? (c(), h("div", cd, [
|
|
1359
1359
|
te(s.$slots, "default")
|
|
1360
|
-
])) :
|
|
1360
|
+
])) : k("", !0),
|
|
1361
1361
|
s.$slots.footer ? (c(), h("div", fd, [
|
|
1362
1362
|
te(s.$slots, "footer")
|
|
1363
|
-
])) :
|
|
1363
|
+
])) : k("", !0),
|
|
1364
1364
|
s.$slots.secondary ? (c(), h("div", vd, [
|
|
1365
1365
|
te(s.$slots, "secondary")
|
|
1366
|
-
])) :
|
|
1366
|
+
])) : k("", !0)
|
|
1367
1367
|
]),
|
|
1368
1368
|
_: 3
|
|
1369
1369
|
}, 8, ["class"]));
|
|
@@ -1381,7 +1381,7 @@ const E1 = /* @__PURE__ */ x({
|
|
|
1381
1381
|
},
|
|
1382
1382
|
emits: ["click", "close"],
|
|
1383
1383
|
setup(a) {
|
|
1384
|
-
const e = a, t =
|
|
1384
|
+
const e = a, t = w(() => e.clickable ? "button" : "span"), s = w(
|
|
1385
1385
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1386
1386
|
);
|
|
1387
1387
|
return (n, o) => (c(), h("div", {
|
|
@@ -1412,7 +1412,7 @@ const E1 = /* @__PURE__ */ x({
|
|
|
1412
1412
|
size: "sm",
|
|
1413
1413
|
class: "ao-tag__close-icon"
|
|
1414
1414
|
})
|
|
1415
|
-
])) :
|
|
1415
|
+
])) : k("", !0)
|
|
1416
1416
|
], 6));
|
|
1417
1417
|
}
|
|
1418
1418
|
});
|
|
@@ -2700,7 +2700,7 @@ function Oc(a, e, t) {
|
|
|
2700
2700
|
var ee = He(a);
|
|
2701
2701
|
if (!ha(ee))
|
|
2702
2702
|
throw new RangeError("Invalid time value");
|
|
2703
|
-
var b = bd(ee),
|
|
2703
|
+
var b = bd(ee), A = wd(ee, b), P = {
|
|
2704
2704
|
firstWeekContainsDate: ae,
|
|
2705
2705
|
weekStartsOn: I,
|
|
2706
2706
|
locale: X,
|
|
@@ -2720,7 +2720,7 @@ function Oc(a, e, t) {
|
|
|
2720
2720
|
return Lc(ne);
|
|
2721
2721
|
var ie = Vd[le];
|
|
2722
2722
|
if (ie)
|
|
2723
|
-
return !(t != null && t.useAdditionalWeekYearTokens) && Ud(ne) && J1(ne, e, String(a)), !(t != null && t.useAdditionalDayOfYearTokens) && Rd(ne) && J1(ne, e, String(a)), ie(
|
|
2723
|
+
return !(t != null && t.useAdditionalWeekYearTokens) && Ud(ne) && J1(ne, e, String(a)), !(t != null && t.useAdditionalDayOfYearTokens) && Rd(ne) && J1(ne, e, String(a)), ie(A, ne, X.localize, P);
|
|
2724
2724
|
if (le.match(Ic))
|
|
2725
2725
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + le + "`");
|
|
2726
2726
|
return ne;
|
|
@@ -3648,12 +3648,12 @@ const l3 = ["title"], r3 = {
|
|
|
3648
3648
|
class: G(o.avatarUrl ? ["ao-avatar-img", `ao-avatar-img--${o.size}`] : ["ao-avatar", `ao-avatar--${o.size}`]),
|
|
3649
3649
|
title: o.userName
|
|
3650
3650
|
}, [
|
|
3651
|
-
o.avatarUrl ?
|
|
3651
|
+
o.avatarUrl ? k("", !0) : (c(), h("span", r3, z(q(s)), 1)),
|
|
3652
3652
|
o.avatarUrl ? (c(), h("img", {
|
|
3653
3653
|
key: 1,
|
|
3654
3654
|
className: "ao-avatar__image",
|
|
3655
3655
|
src: o.avatarUrl
|
|
3656
|
-
}, null, 8, u3)) :
|
|
3656
|
+
}, null, 8, u3)) : k("", !0),
|
|
3657
3657
|
o.isClosable ? (c(), N(de, {
|
|
3658
3658
|
key: 2,
|
|
3659
3659
|
"icon-name": "CloseRounded",
|
|
@@ -3661,7 +3661,7 @@ const l3 = ["title"], r3 = {
|
|
|
3661
3661
|
color: "primary",
|
|
3662
3662
|
corners: "round",
|
|
3663
3663
|
onClick: _e(n, ["stop"])
|
|
3664
|
-
}, null, 8, ["onClick"])) :
|
|
3664
|
+
}, null, 8, ["onClick"])) : k("", !0)
|
|
3665
3665
|
], 10, l3));
|
|
3666
3666
|
}
|
|
3667
3667
|
});
|
|
@@ -3731,7 +3731,7 @@ const d3 = { class: "ao-card-template__subitems" }, c3 = { class: "ao-card-templ
|
|
|
3731
3731
|
color: "primary",
|
|
3732
3732
|
variant: "solid"
|
|
3733
3733
|
}, null, 8, ["label"]))), 128))
|
|
3734
|
-
])) :
|
|
3734
|
+
])) : k("", !0)
|
|
3735
3735
|
])
|
|
3736
3736
|
])
|
|
3737
3737
|
]),
|
|
@@ -3748,7 +3748,7 @@ const d3 = { class: "ao-card-template__subitems" }, c3 = { class: "ao-card-templ
|
|
|
3748
3748
|
v("div", M3, [
|
|
3749
3749
|
v("span", null, z(s.updatedAt), 1)
|
|
3750
3750
|
])
|
|
3751
|
-
])) :
|
|
3751
|
+
])) : k("", !0),
|
|
3752
3752
|
s.updatedBy ? (c(), h("div", k3, [
|
|
3753
3753
|
v("div", A3, [
|
|
3754
3754
|
v("span", S3, z(s.$t("template.updatedBy.label")), 1)
|
|
@@ -3756,7 +3756,7 @@ const d3 = { class: "ao-card-template__subitems" }, c3 = { class: "ao-card-templ
|
|
|
3756
3756
|
v("div", T3, [
|
|
3757
3757
|
T(_t, { "user-name": s.updatedBy }, null, 8, ["user-name"])
|
|
3758
3758
|
])
|
|
3759
|
-
])) :
|
|
3759
|
+
])) : k("", !0)
|
|
3760
3760
|
])
|
|
3761
3761
|
]),
|
|
3762
3762
|
key: "0"
|
|
@@ -3781,12 +3781,12 @@ const I3 = { class: "ao-page-header" }, O3 = { class: "ao-page-header-main" }, L
|
|
|
3781
3781
|
"icon-name": "ArrowBackRounded",
|
|
3782
3782
|
variant: "ghost",
|
|
3783
3783
|
onClick: t[0] || (t[0] = (s) => e.$emit("goBack"))
|
|
3784
|
-
})) :
|
|
3784
|
+
})) : k("", !0),
|
|
3785
3785
|
te(e.$slots, "primary")
|
|
3786
3786
|
]),
|
|
3787
3787
|
e.$slots.secondary ? (c(), h("div", L3, [
|
|
3788
3788
|
te(e.$slots, "secondary")
|
|
3789
|
-
])) :
|
|
3789
|
+
])) : k("", !0)
|
|
3790
3790
|
]));
|
|
3791
3791
|
}
|
|
3792
3792
|
});
|
|
@@ -3806,7 +3806,7 @@ const V3 = ["type"], D3 = {
|
|
|
3806
3806
|
corners: { default: () => da.ROUNDED }
|
|
3807
3807
|
},
|
|
3808
3808
|
setup(a) {
|
|
3809
|
-
const e = a, t =
|
|
3809
|
+
const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
|
|
3810
3810
|
return (n, o) => (c(), h("button", {
|
|
3811
3811
|
type: n.type,
|
|
3812
3812
|
class: G([
|
|
@@ -3817,14 +3817,14 @@ const V3 = ["type"], D3 = {
|
|
|
3817
3817
|
])
|
|
3818
3818
|
}, [
|
|
3819
3819
|
te(n.$slots, "default", {}, () => [
|
|
3820
|
-
n.label ? (c(), h("span", D3, z(n.label), 1)) :
|
|
3820
|
+
n.label ? (c(), h("span", D3, z(n.label), 1)) : k("", !0)
|
|
3821
3821
|
]),
|
|
3822
3822
|
s.value ? (c(), N(ce, {
|
|
3823
3823
|
key: 0,
|
|
3824
3824
|
name: s.value,
|
|
3825
3825
|
class: "ao-button-card__icon",
|
|
3826
3826
|
size: t.value
|
|
3827
|
-
}, null, 8, ["name", "size"])) :
|
|
3827
|
+
}, null, 8, ["name", "size"])) : k("", !0)
|
|
3828
3828
|
], 10, V3));
|
|
3829
3829
|
}
|
|
3830
3830
|
});
|
|
@@ -3861,7 +3861,7 @@ const H3 = { class: "ao-card-template-item__footer" }, P3 = {
|
|
|
3861
3861
|
size: "sm"
|
|
3862
3862
|
}, null, 8, ["name"]),
|
|
3863
3863
|
v("span", B3, z(i.$props[r]), 1)
|
|
3864
|
-
])) :
|
|
3864
|
+
])) : k("", !0)
|
|
3865
3865
|
], 64))), 64))
|
|
3866
3866
|
])
|
|
3867
3867
|
]),
|
|
@@ -3888,10 +3888,10 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3888
3888
|
milestones: {}
|
|
3889
3889
|
},
|
|
3890
3890
|
setup(a) {
|
|
3891
|
-
const e = a, t =
|
|
3891
|
+
const e = a, t = w(() => {
|
|
3892
3892
|
var n;
|
|
3893
3893
|
return (n = e.milestones) == null ? void 0 : n.length;
|
|
3894
|
-
}), s =
|
|
3894
|
+
}), s = w(() => e.milestones ? Ma(e.milestones) : 0);
|
|
3895
3895
|
return (n, o) => (c(), N(O1, Ve({
|
|
3896
3896
|
id: n.id,
|
|
3897
3897
|
title: n.name,
|
|
@@ -3910,7 +3910,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3910
3910
|
activities: {}
|
|
3911
3911
|
},
|
|
3912
3912
|
setup(a) {
|
|
3913
|
-
const e = a, t =
|
|
3913
|
+
const e = a, t = w(() => {
|
|
3914
3914
|
var s;
|
|
3915
3915
|
return ((s = e.activities) == null ? void 0 : s.length) || 0;
|
|
3916
3916
|
});
|
|
@@ -3988,7 +3988,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3988
3988
|
])
|
|
3989
3989
|
]),
|
|
3990
3990
|
_: 1
|
|
3991
|
-
}, 8, ["model-value", "title"])) :
|
|
3991
|
+
}, 8, ["model-value", "title"])) : k("", !0);
|
|
3992
3992
|
}
|
|
3993
3993
|
}), F3 = /* @__PURE__ */ x({
|
|
3994
3994
|
__name: "AoCardTemplateItemActivity",
|
|
@@ -3997,7 +3997,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3997
3997
|
tasks: {}
|
|
3998
3998
|
},
|
|
3999
3999
|
setup(a) {
|
|
4000
|
-
const e = a, t =
|
|
4000
|
+
const e = a, t = w(() => {
|
|
4001
4001
|
var s;
|
|
4002
4002
|
return ((s = e.tasks) == null ? void 0 : s.length) || 0;
|
|
4003
4003
|
});
|
|
@@ -4074,7 +4074,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4074
4074
|
])
|
|
4075
4075
|
]),
|
|
4076
4076
|
_: 1
|
|
4077
|
-
}, 8, ["model-value", "title"])) :
|
|
4077
|
+
}, 8, ["model-value", "title"])) : k("", !0);
|
|
4078
4078
|
}
|
|
4079
4079
|
}), z3 = { class: "ao-modal" }, Y3 = { class: "ao-modal__header" }, K3 = { class: "ao-modal__header-meta" }, G3 = {
|
|
4080
4080
|
key: 0,
|
|
@@ -4108,14 +4108,14 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4108
4108
|
]),
|
|
4109
4109
|
e.$slots.header ? (c(), h("header", G3, [
|
|
4110
4110
|
te(e.$slots, "header")
|
|
4111
|
-
])) :
|
|
4111
|
+
])) : k("", !0)
|
|
4112
4112
|
]),
|
|
4113
4113
|
v("div", x3, [
|
|
4114
4114
|
te(e.$slots, "default")
|
|
4115
4115
|
]),
|
|
4116
4116
|
e.$slots.footer ? (c(), h("footer", X3, [
|
|
4117
4117
|
te(e.$slots, "footer")
|
|
4118
|
-
])) :
|
|
4118
|
+
])) : k("", !0)
|
|
4119
4119
|
])
|
|
4120
4120
|
], 2));
|
|
4121
4121
|
}
|
|
@@ -4397,19 +4397,19 @@ const r0 = function(a) {
|
|
|
4397
4397
|
const K = [l, ...R], D = await Ta(e, S), X = [];
|
|
4398
4398
|
let ae = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4399
4399
|
if (u && X.push(D[_]), f) {
|
|
4400
|
-
const
|
|
4401
|
-
X.push(D[
|
|
4400
|
+
const A = t0(n, i, V);
|
|
4401
|
+
X.push(D[A[0]], D[A[1]]);
|
|
4402
4402
|
}
|
|
4403
4403
|
if (ae = [...ae, {
|
|
4404
4404
|
placement: n,
|
|
4405
4405
|
overflows: X
|
|
4406
|
-
}], !X.every((
|
|
4406
|
+
}], !X.every((A) => A <= 0)) {
|
|
4407
4407
|
var I, ee;
|
|
4408
|
-
const
|
|
4408
|
+
const A = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, P = K[A];
|
|
4409
4409
|
if (P)
|
|
4410
4410
|
return {
|
|
4411
4411
|
data: {
|
|
4412
|
-
index:
|
|
4412
|
+
index: A,
|
|
4413
4413
|
overflows: ae
|
|
4414
4414
|
},
|
|
4415
4415
|
reset: {
|
|
@@ -4991,7 +4991,7 @@ function I0(a, e, t) {
|
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
4993
|
function O0(a, e) {
|
|
4994
|
-
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r =
|
|
4994
|
+
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = w(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = w(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4995
4995
|
return {
|
|
4996
4996
|
iv: i,
|
|
4997
4997
|
internalValue: i,
|
|
@@ -5081,7 +5081,7 @@ function P0(a, e, t) {
|
|
|
5081
5081
|
canDeselect: I,
|
|
5082
5082
|
max: ee,
|
|
5083
5083
|
strict: b,
|
|
5084
|
-
closeOnSelect:
|
|
5084
|
+
closeOnSelect: A,
|
|
5085
5085
|
closeOnDeselect: P,
|
|
5086
5086
|
groups: ue,
|
|
5087
5087
|
reverse: ne,
|
|
@@ -5090,16 +5090,16 @@ function P0(a, e, t) {
|
|
|
5090
5090
|
groupHideEmpty: O,
|
|
5091
5091
|
groupSelect: L,
|
|
5092
5092
|
onCreate: W,
|
|
5093
|
-
disabledProp:
|
|
5093
|
+
disabledProp: y,
|
|
5094
5094
|
searchStart: Y,
|
|
5095
5095
|
searchFilter: he
|
|
5096
|
-
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 =
|
|
5096
|
+
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 = w(() => r.value || d.value || !1), Za = w(() => f.value !== void 0 ? f.value : p.value !== void 0 ? p.value : !0), qe = w(() => {
|
|
5097
5097
|
if (ue.value) {
|
|
5098
5098
|
let m = Rt.value || /* istanbul ignore next */
|
|
5099
5099
|
[], H = [];
|
|
5100
5100
|
return m.forEach((se) => {
|
|
5101
5101
|
g1(se[ie.value]).forEach((ve) => {
|
|
5102
|
-
H.push(Object.assign({}, ve, se[
|
|
5102
|
+
H.push(Object.assign({}, ve, se[y.value] ? { [y.value]: !0 } : {}));
|
|
5103
5103
|
});
|
|
5104
5104
|
}), H;
|
|
5105
5105
|
} else {
|
|
@@ -5107,13 +5107,13 @@ function P0(a, e, t) {
|
|
|
5107
5107
|
[]);
|
|
5108
5108
|
return gt.value.length && (m = m.concat(gt.value)), m;
|
|
5109
5109
|
}
|
|
5110
|
-
}), Z1 =
|
|
5110
|
+
}), Z1 = w(() => {
|
|
5111
5111
|
let m = qe.value;
|
|
5112
5112
|
return ne.value && (m = m.reverse()), ot.value.length && (m = ot.value.concat(m)), _1(m);
|
|
5113
|
-
}), bt =
|
|
5113
|
+
}), bt = w(() => {
|
|
5114
5114
|
let m = Z1.value;
|
|
5115
5115
|
return v1.value > 0 && (m = m.slice(0, v1.value)), m;
|
|
5116
|
-
}), Rt =
|
|
5116
|
+
}), Rt = w(() => {
|
|
5117
5117
|
if (!ue.value)
|
|
5118
5118
|
return [];
|
|
5119
5119
|
let m = [], H = Fe.value || /* istanbul ignore next */
|
|
@@ -5123,14 +5123,14 @@ function P0(a, e, t) {
|
|
|
5123
5123
|
[ie.value]: [...gt.value],
|
|
5124
5124
|
__CREATE__: !0
|
|
5125
5125
|
}), m.concat(H);
|
|
5126
|
-
}), Fa =
|
|
5126
|
+
}), Fa = w(() => {
|
|
5127
5127
|
let m = [...Rt.value].map((H) => ({ ...H }));
|
|
5128
5128
|
return ot.value.length && (m[0] && m[0].__CREATE__ ? m[0][ie.value] = [...ot.value, ...m[0][ie.value]] : m = [{
|
|
5129
5129
|
[ae.value]: " ",
|
|
5130
5130
|
[ie.value]: [...ot.value],
|
|
5131
5131
|
__CREATE__: !0
|
|
5132
5132
|
}].concat(m)), m;
|
|
5133
|
-
}), F1 =
|
|
5133
|
+
}), F1 = w(() => {
|
|
5134
5134
|
if (!ue.value)
|
|
5135
5135
|
return [];
|
|
5136
5136
|
let m = Fa.value;
|
|
@@ -5141,11 +5141,11 @@ function P0(a, e, t) {
|
|
|
5141
5141
|
...H,
|
|
5142
5142
|
index: se,
|
|
5143
5143
|
group: !0,
|
|
5144
|
-
[ie.value]: _1(ve, !1).map((yt) => Object.assign({}, yt, H[
|
|
5145
|
-
__VISIBLE__: _1(ve).map((yt) => Object.assign({}, yt, H[
|
|
5144
|
+
[ie.value]: _1(ve, !1).map((yt) => Object.assign({}, yt, H[y.value] ? { [y.value]: !0 } : {})),
|
|
5145
|
+
__VISIBLE__: _1(ve).map((yt) => Object.assign({}, yt, H[y.value] ? { [y.value]: !0 } : {}))
|
|
5146
5146
|
};
|
|
5147
5147
|
}));
|
|
5148
|
-
}), p1 =
|
|
5148
|
+
}), p1 = w(() => {
|
|
5149
5149
|
switch (n.value) {
|
|
5150
5150
|
case "single":
|
|
5151
5151
|
return !Le(F.value[D.value]);
|
|
@@ -5153,12 +5153,12 @@ function P0(a, e, t) {
|
|
|
5153
5153
|
case "tags":
|
|
5154
5154
|
return !Le(F.value) && F.value.length > 0;
|
|
5155
5155
|
}
|
|
5156
|
-
}), qa =
|
|
5156
|
+
}), qa = w(() => C !== void 0 && C.value !== void 0 ? C.value(F.value, Z) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), Wa = w(() => !qe.value.length && !Ie.value && !ot.value.length), za = w(() => qe.value.length > 0 && bt.value.length == 0 && (U.value && ue.value || !ue.value)), ot = w(() => j1.value === !1 || !U.value ? [] : tn(U.value) !== -1 ? [] : [{
|
|
5157
5157
|
[D.value]: U.value,
|
|
5158
5158
|
[Oe.value]: U.value,
|
|
5159
5159
|
[u.value]: U.value,
|
|
5160
5160
|
__CREATE__: !0
|
|
5161
|
-
}]), Oe =
|
|
5161
|
+
}]), Oe = w(() => o.value || u.value), Ya = w(() => {
|
|
5162
5162
|
switch (n.value) {
|
|
5163
5163
|
case "single":
|
|
5164
5164
|
return null;
|
|
@@ -5166,7 +5166,7 @@ function P0(a, e, t) {
|
|
|
5166
5166
|
case "tags":
|
|
5167
5167
|
return [];
|
|
5168
5168
|
}
|
|
5169
|
-
}), Ka =
|
|
5169
|
+
}), Ka = w(() => M.value || Ie.value), lt = (m) => {
|
|
5170
5170
|
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5171
5171
|
case "single":
|
|
5172
5172
|
Pe(m);
|
|
@@ -5208,7 +5208,7 @@ function P0(a, e, t) {
|
|
|
5208
5208
|
case "multiple":
|
|
5209
5209
|
return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(m[D.value]) !== -1;
|
|
5210
5210
|
}
|
|
5211
|
-
}, h1 = (m) => m[
|
|
5211
|
+
}, h1 = (m) => m[y.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : F.value.length >= ee.value, xa = (m) => {
|
|
5212
5212
|
if (!h1(m)) {
|
|
5213
5213
|
if (W && W.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = W.value(m, Z), m instanceof Promise)) {
|
|
5214
5214
|
Ie.value = !0, m.then((H) => {
|
|
@@ -5225,7 +5225,7 @@ function P0(a, e, t) {
|
|
|
5225
5225
|
I.value && rt(m), P.value && (st(), it());
|
|
5226
5226
|
return;
|
|
5227
5227
|
}
|
|
5228
|
-
m && C1(m), K.value && Ce(),
|
|
5228
|
+
m && C1(m), K.value && Ce(), A.value && (st(), it()), m && lt(m);
|
|
5229
5229
|
break;
|
|
5230
5230
|
case "multiple":
|
|
5231
5231
|
if (m && Be(m)) {
|
|
@@ -5236,7 +5236,7 @@ function P0(a, e, t) {
|
|
|
5236
5236
|
e.emit("max", Z);
|
|
5237
5237
|
return;
|
|
5238
5238
|
}
|
|
5239
|
-
m && (C1(m), lt(m)), K.value && Ce(), l.value && st(),
|
|
5239
|
+
m && (C1(m), lt(m)), K.value && Ce(), l.value && st(), A.value && it();
|
|
5240
5240
|
break;
|
|
5241
5241
|
case "tags":
|
|
5242
5242
|
if (m && Be(m)) {
|
|
@@ -5247,27 +5247,27 @@ function P0(a, e, t) {
|
|
|
5247
5247
|
e.emit("max", Z);
|
|
5248
5248
|
return;
|
|
5249
5249
|
}
|
|
5250
|
-
m && C1(m), K.value && Ce(), m && lt(m), l.value && st(),
|
|
5250
|
+
m && C1(m), K.value && Ce(), m && lt(m), l.value && st(), A.value && it();
|
|
5251
5251
|
break;
|
|
5252
5252
|
}
|
|
5253
|
-
|
|
5253
|
+
A.value || Ra();
|
|
5254
5254
|
}, Xa = (m) => {
|
|
5255
5255
|
if (!(h1(m) || n.value === "single" || !L.value)) {
|
|
5256
5256
|
switch (n.value) {
|
|
5257
5257
|
case "multiple":
|
|
5258
5258
|
case "tags":
|
|
5259
5259
|
Ja(m[ie.value]) ? rt(m[ie.value]) : lt(
|
|
5260
|
-
m[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[
|
|
5260
|
+
m[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[y.value]).filter((H, se) => F.value.length + 1 + se <= ee.value || ee.value === -1)
|
|
5261
5261
|
);
|
|
5262
5262
|
break;
|
|
5263
5263
|
}
|
|
5264
|
-
|
|
5264
|
+
A.value && Ua();
|
|
5265
5265
|
}
|
|
5266
5266
|
}, C1 = (m) => {
|
|
5267
5267
|
Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value], Z), e.emit("option", m[D.value], Z), e.emit("create", m[D.value], Z), Za.value && nn(m), Ce());
|
|
5268
5268
|
}, Qa = () => {
|
|
5269
5269
|
n.value !== "single" && lt(bt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5270
|
-
}, Ja = (m) => m.find((H) => !Be(H) && !H[
|
|
5270
|
+
}, Ja = (m) => m.find((H) => !Be(H) && !H[y.value]) === void 0, en = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(m))], tn = (m, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
|
|
5271
5271
|
parseInt(m) == m ? parseInt(m) : m
|
|
5272
5272
|
), an = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), nn = (m) => {
|
|
5273
5273
|
gt.value.push(m);
|
|
@@ -5329,7 +5329,7 @@ function P0(a, e, t) {
|
|
|
5329
5329
|
f1.value = re(U, (m) => {
|
|
5330
5330
|
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
|
|
5331
5331
|
m == U.value && s.value(U.value, Z).then((H) => {
|
|
5332
|
-
(m == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[
|
|
5332
|
+
(m == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[y.value] !== !0)[0] || null, Ie.value = !1);
|
|
5333
5333
|
}).catch(
|
|
5334
5334
|
/* istanbul ignore next */
|
|
5335
5335
|
(H) => {
|
|
@@ -5404,32 +5404,32 @@ function B0(a, e, t) {
|
|
|
5404
5404
|
groupSelect: d,
|
|
5405
5405
|
disabledProp: u,
|
|
5406
5406
|
groupOptions: f
|
|
5407
|
-
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D =
|
|
5407
|
+
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = w(() => p.value.filter((E) => !E[u.value])), X = w(() => C.value.filter((E) => !E[u.value])), ae = w(() => r.value !== "single" && d.value), I = w(() => _.value && _.value.group), ee = w(() => Z(_.value)), b = w(() => {
|
|
5408
5408
|
const E = I.value ? _.value : (
|
|
5409
5409
|
/* istanbul ignore next */
|
|
5410
5410
|
Z(_.value)
|
|
5411
5411
|
), U = X.value.map((Pe) => Pe[i.value]).indexOf(E[i.value]);
|
|
5412
5412
|
let Ce = X.value[U - 1];
|
|
5413
5413
|
return Ce === void 0 && (Ce = P.value), Ce;
|
|
5414
|
-
}),
|
|
5414
|
+
}), A = w(() => {
|
|
5415
5415
|
let E = X.value.map((U) => U.label).indexOf(I.value ? _.value[i.value] : Z(_.value)[i.value]) + 1;
|
|
5416
5416
|
return X.value.length <= E && (E = 0), X.value[E];
|
|
5417
|
-
}), P =
|
|
5417
|
+
}), P = w(() => [...X.value].slice(-1)[0]), ue = w(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = w(() => {
|
|
5418
5418
|
const E = ee.value.__VISIBLE__.filter((U) => !U[u.value]);
|
|
5419
5419
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5420
|
-
}), le =
|
|
5420
|
+
}), le = w(() => {
|
|
5421
5421
|
const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5422
5422
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5423
|
-
}), ie =
|
|
5423
|
+
}), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
|
|
5424
5424
|
g(D.value[0] || null);
|
|
5425
|
-
},
|
|
5425
|
+
}, y = () => {
|
|
5426
5426
|
!_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : $(_.value));
|
|
5427
5427
|
}, Y = () => {
|
|
5428
5428
|
if (_.value === null)
|
|
5429
5429
|
g((l.value && ae.value ? X.value[0].__CREATE__ ? D.value[0] : X.value[0] : D.value[0]) || null);
|
|
5430
5430
|
else if (l.value && ae.value) {
|
|
5431
5431
|
let E = I.value ? ue.value : le.value;
|
|
5432
|
-
E === void 0 && (E =
|
|
5432
|
+
E === void 0 && (E = A.value, E.__CREATE__ && (E = E[f.value][0])), g(E || /* istanbul ignore next */
|
|
5433
5433
|
null);
|
|
5434
5434
|
} else {
|
|
5435
5435
|
let E = D.value.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1;
|
|
@@ -5477,7 +5477,7 @@ function B0(a, e, t) {
|
|
|
5477
5477
|
canPointGroups: ae,
|
|
5478
5478
|
isPointed: L,
|
|
5479
5479
|
setPointerFirst: W,
|
|
5480
|
-
selectPointer:
|
|
5480
|
+
selectPointer: y,
|
|
5481
5481
|
forwardPointer: Y,
|
|
5482
5482
|
backwardPointer: he
|
|
5483
5483
|
};
|
|
@@ -5495,7 +5495,7 @@ function N0(a, e, t) {
|
|
|
5495
5495
|
};
|
|
5496
5496
|
}
|
|
5497
5497
|
function R0(a, e, t) {
|
|
5498
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S =
|
|
5498
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S = w(() => s.value || n.value ? -1 : 0), _ = () => {
|
|
5499
5499
|
s.value && i.value.blur(), p.value.blur();
|
|
5500
5500
|
}, g = () => {
|
|
5501
5501
|
s.value && !n.value && i.value.focus();
|
|
@@ -5548,8 +5548,8 @@ function U0(a, e, t) {
|
|
|
5548
5548
|
createTag: f,
|
|
5549
5549
|
createOption: p,
|
|
5550
5550
|
reverse: C
|
|
5551
|
-
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur,
|
|
5552
|
-
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(
|
|
5551
|
+
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, A = t.fo, P = w(() => f.value || p.value || !1), ue = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5552
|
+
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(A.value[A.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5553
5553
|
}, le = (L) => {
|
|
5554
5554
|
let W = L.length - 1;
|
|
5555
5555
|
for (; W >= 0 && (L[W].remove === !1 || L[W].disabled); )
|
|
@@ -5559,8 +5559,8 @@ function U0(a, e, t) {
|
|
|
5559
5559
|
return {
|
|
5560
5560
|
handleKeydown: (L) => {
|
|
5561
5561
|
e.emit("keydown", L, $);
|
|
5562
|
-
let W,
|
|
5563
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value),
|
|
5562
|
+
let W, y;
|
|
5563
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), y = W.findIndex((Y) => Y === document.activeElement)), L.key) {
|
|
5564
5564
|
case "Backspace":
|
|
5565
5565
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5566
5566
|
return;
|
|
@@ -5569,8 +5569,8 @@ function U0(a, e, t) {
|
|
|
5569
5569
|
case "Enter":
|
|
5570
5570
|
if (L.preventDefault(), L.keyCode === 229)
|
|
5571
5571
|
return;
|
|
5572
|
-
if (
|
|
5573
|
-
S([...M.value].filter((Y, he) => he !==
|
|
5572
|
+
if (y !== -1 && y !== void 0) {
|
|
5573
|
+
S([...M.value].filter((Y, he) => he !== y)), y === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
|
|
5574
5574
|
return;
|
|
5575
5575
|
}
|
|
5576
5576
|
if (ue.value.indexOf("enter") === -1 && P.value)
|
|
@@ -5611,12 +5611,12 @@ function U0(a, e, t) {
|
|
|
5611
5611
|
case "ArrowLeft":
|
|
5612
5612
|
if (i.value && ae.value && ae.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5613
5613
|
return;
|
|
5614
|
-
L.preventDefault(),
|
|
5614
|
+
L.preventDefault(), y === -1 ? W[W.length - 1].focus() : y > 0 && W[y - 1].focus();
|
|
5615
5615
|
break;
|
|
5616
5616
|
case "ArrowRight":
|
|
5617
|
-
if (
|
|
5617
|
+
if (y === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5618
5618
|
return;
|
|
5619
|
-
L.preventDefault(), W.length >
|
|
5619
|
+
L.preventDefault(), W.length > y + 1 ? W[y + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
|
|
5620
5620
|
break;
|
|
5621
5621
|
}
|
|
5622
5622
|
},
|
|
@@ -5632,7 +5632,7 @@ function j0(a, e, t) {
|
|
|
5632
5632
|
disabled: n,
|
|
5633
5633
|
openDirection: o,
|
|
5634
5634
|
showOptions: i
|
|
5635
|
-
} = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M =
|
|
5635
|
+
} = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M = w(() => ({
|
|
5636
5636
|
container: "multiselect",
|
|
5637
5637
|
containerDisabled: "is-disabled",
|
|
5638
5638
|
containerOpen: "is-open",
|
|
@@ -5685,9 +5685,9 @@ function j0(a, e, t) {
|
|
|
5685
5685
|
assist: "multiselect-assistive-text",
|
|
5686
5686
|
spacer: "multiselect-spacer",
|
|
5687
5687
|
...s.value
|
|
5688
|
-
})), S =
|
|
5688
|
+
})), S = w(() => !!(l.value && i.value && (!C.value || C.value && $.value.length)));
|
|
5689
5689
|
return {
|
|
5690
|
-
classList:
|
|
5690
|
+
classList: w(() => {
|
|
5691
5691
|
const g = M.value;
|
|
5692
5692
|
return {
|
|
5693
5693
|
container: [g.container].concat(n.value ? g.containerDisabled : []).concat(S.value && o.value === "top" ? g.containerOpenTop : []).concat(S.value && o.value !== "top" ? g.containerOpen : []).concat(f.value ? g.containerActive : []),
|
|
@@ -5737,7 +5737,7 @@ function Z0(a, e, t) {
|
|
|
5737
5737
|
const {
|
|
5738
5738
|
limit: s,
|
|
5739
5739
|
infinite: n
|
|
5740
|
-
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p =
|
|
5740
|
+
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = w(() => i.value < r.value.length), C = (M) => {
|
|
5741
5741
|
const { isIntersecting: S, target: _ } = M[0];
|
|
5742
5742
|
if (S) {
|
|
5743
5743
|
const g = _.offsetParent, V = g.scrollTop;
|
|
@@ -5771,39 +5771,39 @@ function F0(a, e, t) {
|
|
|
5771
5771
|
groupLabel: r,
|
|
5772
5772
|
aria: d,
|
|
5773
5773
|
searchable: u
|
|
5774
|
-
} = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = J(null), S =
|
|
5775
|
-
let
|
|
5776
|
-
return n && n.value &&
|
|
5777
|
-
}), _ =
|
|
5778
|
-
let
|
|
5779
|
-
return n && n.value &&
|
|
5780
|
-
}), g =
|
|
5781
|
-
let
|
|
5782
|
-
if (n && n.value &&
|
|
5783
|
-
return
|
|
5784
|
-
}), V =
|
|
5785
|
-
let
|
|
5786
|
-
return l.value === "single" && C.value && (
|
|
5787
|
-
}), D =
|
|
5788
|
-
let
|
|
5789
|
-
return u.value && (
|
|
5790
|
-
}), X = (
|
|
5774
|
+
} = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = J(null), S = w(() => {
|
|
5775
|
+
let A = [];
|
|
5776
|
+
return n && n.value && A.push(n.value), A.push("assist"), A.join("-");
|
|
5777
|
+
}), _ = w(() => {
|
|
5778
|
+
let A = [];
|
|
5779
|
+
return n && n.value && A.push(n.value), A.push("multiselect-options"), A.join("-");
|
|
5780
|
+
}), g = w(() => {
|
|
5781
|
+
let A = [];
|
|
5782
|
+
if (n && n.value && A.push(n.value), f.value)
|
|
5783
|
+
return A.push(f.value.group ? "multiselect-group" : "multiselect-option"), A.push(f.value.group ? f.value.index : f.value[o.value]), A.join("-");
|
|
5784
|
+
}), V = w(() => s.value), R = w(() => l.value !== "single"), K = w(() => {
|
|
5785
|
+
let A = "";
|
|
5786
|
+
return l.value === "single" && C.value && (A += p.value[i.value]), l.value === "multiple" && C.value && (A += $.value), l.value === "tags" && C.value && (A += p.value.map((P) => P[i.value]).join(", ")), A;
|
|
5787
|
+
}), D = w(() => {
|
|
5788
|
+
let A = { ...d.value };
|
|
5789
|
+
return u.value && (A["aria-labelledby"] = A["aria-labelledby"] ? `${S.value} ${A["aria-labelledby"]}` : S.value, K.value && A["aria-label"] && (A["aria-label"] = `${K.value}, ${A["aria-label"]}`)), A;
|
|
5790
|
+
}), X = (A) => {
|
|
5791
5791
|
let P = [];
|
|
5792
|
-
return n && n.value && P.push(n.value), P.push("multiselect-option"), P.push(
|
|
5793
|
-
}, ae = (
|
|
5792
|
+
return n && n.value && P.push(n.value), P.push("multiselect-option"), P.push(A[o.value]), P.join("-");
|
|
5793
|
+
}, ae = (A) => {
|
|
5794
5794
|
let P = [];
|
|
5795
|
-
return n && n.value && P.push(n.value), P.push("multiselect-group"), P.push(
|
|
5796
|
-
}, I = (
|
|
5795
|
+
return n && n.value && P.push(n.value), P.push("multiselect-group"), P.push(A.index), P.join("-");
|
|
5796
|
+
}, I = (A) => {
|
|
5797
5797
|
let P = [];
|
|
5798
|
-
return P.push(
|
|
5799
|
-
}, ee = (
|
|
5798
|
+
return P.push(A), P.join(" ");
|
|
5799
|
+
}, ee = (A) => {
|
|
5800
5800
|
let P = [];
|
|
5801
|
-
return P.push(
|
|
5802
|
-
}, b = (
|
|
5801
|
+
return P.push(A), P.join(" ");
|
|
5802
|
+
}, b = (A) => `${A} ❎`;
|
|
5803
5803
|
return Dt(() => {
|
|
5804
5804
|
if (n && n.value && document && document.querySelector) {
|
|
5805
|
-
let
|
|
5806
|
-
M.value =
|
|
5805
|
+
let A = document.querySelector(`[for="${n.value}"]`);
|
|
5806
|
+
M.value = A ? A.innerText : null;
|
|
5807
5807
|
}
|
|
5808
5808
|
}), {
|
|
5809
5809
|
arias: D,
|
|
@@ -6214,7 +6214,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6214
6214
|
"aria-multiselectable": t.searchable ? void 0 : a.ariaMultiselectable,
|
|
6215
6215
|
role: t.searchable ? void 0 : "combobox"
|
|
6216
6216
|
}, t.searchable ? {} : a.arias), [
|
|
6217
|
-
|
|
6217
|
+
k(" Search "),
|
|
6218
6218
|
t.mode !== "tags" && t.searchable && !t.disabled ? (c(), h("input", Ve({
|
|
6219
6219
|
key: 0,
|
|
6220
6220
|
type: t.inputType,
|
|
@@ -6236,8 +6236,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6236
6236
|
}, {
|
|
6237
6237
|
...t.attrs,
|
|
6238
6238
|
...a.arias
|
|
6239
|
-
}), null, 16, K0)) :
|
|
6240
|
-
|
|
6239
|
+
}), null, 16, K0)) : k("v-if", !0),
|
|
6240
|
+
k(" Tags (with search) "),
|
|
6241
6241
|
t.mode == "tags" ? (c(), h(
|
|
6242
6242
|
"div",
|
|
6243
6243
|
{
|
|
@@ -6283,7 +6283,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6283
6283
|
2
|
|
6284
6284
|
/* CLASS */
|
|
6285
6285
|
)
|
|
6286
|
-
], 10, x0)) :
|
|
6286
|
+
], 10, x0)) : k("v-if", !0)
|
|
6287
6287
|
], 42, G0))
|
|
6288
6288
|
])),
|
|
6289
6289
|
256
|
|
@@ -6296,7 +6296,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6296
6296
|
ref: "tags"
|
|
6297
6297
|
},
|
|
6298
6298
|
[
|
|
6299
|
-
|
|
6299
|
+
k(" Used for measuring search width "),
|
|
6300
6300
|
v(
|
|
6301
6301
|
"span",
|
|
6302
6302
|
{
|
|
@@ -6306,7 +6306,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6306
6306
|
3
|
|
6307
6307
|
/* TEXT, CLASS */
|
|
6308
6308
|
),
|
|
6309
|
-
|
|
6309
|
+
k(" Actual search input "),
|
|
6310
6310
|
t.searchable && !t.disabled ? (c(), h("input", Ve({
|
|
6311
6311
|
key: 0,
|
|
6312
6312
|
type: t.inputType,
|
|
@@ -6328,7 +6328,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6328
6328
|
}, {
|
|
6329
6329
|
...t.attrs,
|
|
6330
6330
|
...a.arias
|
|
6331
|
-
}), null, 16, X0)) :
|
|
6331
|
+
}), null, 16, X0)) : k("v-if", !0)
|
|
6332
6332
|
],
|
|
6333
6333
|
2
|
|
6334
6334
|
/* CLASS */
|
|
@@ -6336,8 +6336,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6336
6336
|
],
|
|
6337
6337
|
2
|
|
6338
6338
|
/* CLASS */
|
|
6339
|
-
)) :
|
|
6340
|
-
|
|
6339
|
+
)) : k("v-if", !0),
|
|
6340
|
+
k(" Single label "),
|
|
6341
6341
|
t.mode == "single" && a.hasSelected && !a.search && a.iv ? te(a.$slots, "singlelabel", {
|
|
6342
6342
|
key: 2,
|
|
6343
6343
|
value: a.iv
|
|
@@ -6361,8 +6361,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6361
6361
|
2
|
|
6362
6362
|
/* CLASS */
|
|
6363
6363
|
)
|
|
6364
|
-
]) :
|
|
6365
|
-
|
|
6364
|
+
]) : k("v-if", !0),
|
|
6365
|
+
k(" Multiple label "),
|
|
6366
6366
|
t.mode == "multiple" && a.hasSelected && !a.search ? te(a.$slots, "multiplelabel", {
|
|
6367
6367
|
key: 3,
|
|
6368
6368
|
values: a.iv
|
|
@@ -6371,8 +6371,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6371
6371
|
class: G(a.classList.multipleLabel),
|
|
6372
6372
|
innerHTML: a.multipleLabelText
|
|
6373
6373
|
}, null, 10, Q0)
|
|
6374
|
-
]) :
|
|
6375
|
-
|
|
6374
|
+
]) : k("v-if", !0),
|
|
6375
|
+
k(" Placeholder "),
|
|
6376
6376
|
t.placeholder && !a.hasSelected && !a.search ? te(a.$slots, "placeholder", { key: 4 }, () => [
|
|
6377
6377
|
v(
|
|
6378
6378
|
"div",
|
|
@@ -6384,8 +6384,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6384
6384
|
3
|
|
6385
6385
|
/* TEXT, CLASS */
|
|
6386
6386
|
)
|
|
6387
|
-
]) :
|
|
6388
|
-
|
|
6387
|
+
]) : k("v-if", !0),
|
|
6388
|
+
k(" Spinner "),
|
|
6389
6389
|
t.loading || a.resolving ? te(a.$slots, "spinner", { key: 5 }, () => [
|
|
6390
6390
|
v(
|
|
6391
6391
|
"span",
|
|
@@ -6397,8 +6397,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6397
6397
|
2
|
|
6398
6398
|
/* CLASS */
|
|
6399
6399
|
)
|
|
6400
|
-
]) :
|
|
6401
|
-
|
|
6400
|
+
]) : k("v-if", !0),
|
|
6401
|
+
k(" Clear "),
|
|
6402
6402
|
a.hasSelected && !t.disabled && t.canClear && !a.busy ? te(a.$slots, "clear", {
|
|
6403
6403
|
key: 6,
|
|
6404
6404
|
clear: a.clear
|
|
@@ -6429,8 +6429,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6429
6429
|
34
|
|
6430
6430
|
/* CLASS, HYDRATE_EVENTS */
|
|
6431
6431
|
)
|
|
6432
|
-
]) :
|
|
6433
|
-
|
|
6432
|
+
]) : k("v-if", !0),
|
|
6433
|
+
k(" Caret "),
|
|
6434
6434
|
t.caret && t.showOptions ? te(a.$slots, "caret", { key: 7 }, () => [
|
|
6435
6435
|
v(
|
|
6436
6436
|
"span",
|
|
@@ -6443,9 +6443,9 @@ function f5(a, e, t, s, n, o) {
|
|
|
6443
6443
|
2
|
|
6444
6444
|
/* CLASS */
|
|
6445
6445
|
)
|
|
6446
|
-
]) :
|
|
6446
|
+
]) : k("v-if", !0)
|
|
6447
6447
|
], 16, Y0),
|
|
6448
|
-
|
|
6448
|
+
k(" Options "),
|
|
6449
6449
|
v(
|
|
6450
6450
|
"div",
|
|
6451
6451
|
{
|
|
@@ -6470,7 +6470,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6470
6470
|
"aria-selected": a.isSelected(i),
|
|
6471
6471
|
role: "option"
|
|
6472
6472
|
}, [
|
|
6473
|
-
i.__CREATE__ ?
|
|
6473
|
+
i.__CREATE__ ? k("v-if", !0) : (c(), h("div", {
|
|
6474
6474
|
key: 0,
|
|
6475
6475
|
class: G(a.classList.groupLabel(i)),
|
|
6476
6476
|
"data-pointed": a.isPointed(i),
|
|
@@ -6568,13 +6568,13 @@ function f5(a, e, t, s, n, o) {
|
|
|
6568
6568
|
class: G(a.classList.noOptions),
|
|
6569
6569
|
innerHTML: a.localize(t.noOptionsText)
|
|
6570
6570
|
}, null, 10, o5)
|
|
6571
|
-
]) :
|
|
6571
|
+
]) : k("v-if", !0),
|
|
6572
6572
|
a.noResults ? te(a.$slots, "noresults", { key: 1 }, () => [
|
|
6573
6573
|
v("div", {
|
|
6574
6574
|
class: G(a.classList.noResults),
|
|
6575
6575
|
innerHTML: a.localize(t.noResultsText)
|
|
6576
6576
|
}, null, 10, l5)
|
|
6577
|
-
]) :
|
|
6577
|
+
]) : k("v-if", !0),
|
|
6578
6578
|
t.infinite && a.hasMore ? (c(), h(
|
|
6579
6579
|
"div",
|
|
6580
6580
|
{
|
|
@@ -6597,21 +6597,21 @@ function f5(a, e, t, s, n, o) {
|
|
|
6597
6597
|
],
|
|
6598
6598
|
2
|
|
6599
6599
|
/* CLASS */
|
|
6600
|
-
)) :
|
|
6600
|
+
)) : k("v-if", !0),
|
|
6601
6601
|
te(a.$slots, "afterlist", { options: a.fo })
|
|
6602
6602
|
],
|
|
6603
6603
|
2
|
|
6604
6604
|
/* CLASS */
|
|
6605
6605
|
),
|
|
6606
|
-
|
|
6606
|
+
k(" Hacky input element to show HTML5 required warning "),
|
|
6607
6607
|
t.required ? (c(), h("input", {
|
|
6608
6608
|
key: 0,
|
|
6609
6609
|
class: G(a.classList.fakeInput),
|
|
6610
6610
|
tabindex: "-1",
|
|
6611
6611
|
value: a.textValue,
|
|
6612
6612
|
required: ""
|
|
6613
|
-
}, null, 10, r5)) :
|
|
6614
|
-
|
|
6613
|
+
}, null, 10, r5)) : k("v-if", !0),
|
|
6614
|
+
k(" Native input support "),
|
|
6615
6615
|
t.nativeSupport ? (c(), h(
|
|
6616
6616
|
fe,
|
|
6617
6617
|
{ key: 1 },
|
|
@@ -6636,15 +6636,15 @@ function f5(a, e, t, s, n, o) {
|
|
|
6636
6636
|
],
|
|
6637
6637
|
64
|
|
6638
6638
|
/* STABLE_FRAGMENT */
|
|
6639
|
-
)) :
|
|
6640
|
-
|
|
6639
|
+
)) : k("v-if", !0),
|
|
6640
|
+
k(" Screen reader assistive text "),
|
|
6641
6641
|
t.searchable && a.hasSelected ? (c(), h("div", {
|
|
6642
6642
|
key: 2,
|
|
6643
6643
|
class: G(a.classList.assist),
|
|
6644
6644
|
id: a.ariaAssist,
|
|
6645
6645
|
"aria-hidden": "true"
|
|
6646
|
-
}, z(a.ariaLabel), 11, c5)) :
|
|
6647
|
-
|
|
6646
|
+
}, z(a.ariaLabel), 11, c5)) : k("v-if", !0),
|
|
6647
|
+
k(" Create height for empty input "),
|
|
6648
6648
|
v(
|
|
6649
6649
|
"div",
|
|
6650
6650
|
{
|
|
@@ -6749,7 +6749,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6749
6749
|
re(() => t.tasks, (f, p) => {
|
|
6750
6750
|
Ue(f, p);
|
|
6751
6751
|
});
|
|
6752
|
-
const n =
|
|
6752
|
+
const n = w(
|
|
6753
6753
|
() => {
|
|
6754
6754
|
var f;
|
|
6755
6755
|
return ((f = t.users) == null ? void 0 : f.map((p) => ({
|
|
@@ -6801,7 +6801,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6801
6801
|
disabled: !f.isEditable,
|
|
6802
6802
|
variant: "ghost",
|
|
6803
6803
|
onClick: () => l(C.id, !C.isDone)
|
|
6804
|
-
}, null, 8, ["icon-name", "disabled", "onClick"])) :
|
|
6804
|
+
}, null, 8, ["icon-name", "disabled", "onClick"])) : k("", !0),
|
|
6805
6805
|
v("input", {
|
|
6806
6806
|
id: C.id,
|
|
6807
6807
|
value: C.name,
|
|
@@ -6834,7 +6834,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6834
6834
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
6835
6835
|
]),
|
|
6836
6836
|
_: 2
|
|
6837
|
-
}, 1032, ["value", "options", "placeholder", "disabled", "caret", "onChange"])) :
|
|
6837
|
+
}, 1032, ["value", "options", "placeholder", "disabled", "caret", "onChange"])) : k("", !0),
|
|
6838
6838
|
f.isEditable ? (c(), N(de, {
|
|
6839
6839
|
key: 2,
|
|
6840
6840
|
class: "ao-subtask__delete",
|
|
@@ -6843,7 +6843,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6843
6843
|
variant: "ghost",
|
|
6844
6844
|
color: "neutral",
|
|
6845
6845
|
onClick: () => r(C.id)
|
|
6846
|
-
}, null, 8, ["onClick"])) :
|
|
6846
|
+
}, null, 8, ["onClick"])) : k("", !0)
|
|
6847
6847
|
]);
|
|
6848
6848
|
}), 128))
|
|
6849
6849
|
]),
|
|
@@ -6855,7 +6855,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6855
6855
|
variant: "ghost",
|
|
6856
6856
|
color: "primary",
|
|
6857
6857
|
onClick: o
|
|
6858
|
-
}, null, 8, ["label"])) :
|
|
6858
|
+
}, null, 8, ["label"])) : k("", !0)
|
|
6859
6859
|
])
|
|
6860
6860
|
]));
|
|
6861
6861
|
}
|
|
@@ -6949,9 +6949,9 @@ const g5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], b5 = {
|
|
|
6949
6949
|
size: "md",
|
|
6950
6950
|
corners: "round",
|
|
6951
6951
|
onClick: () => t(p)
|
|
6952
|
-
}, null, 8, ["onClick"])) :
|
|
6952
|
+
}, null, 8, ["onClick"])) : k("", !0)
|
|
6953
6953
|
]))), 128))
|
|
6954
|
-
])) :
|
|
6954
|
+
])) : k("", !0),
|
|
6955
6955
|
d.isEditable ? (c(), h("div", $5, [
|
|
6956
6956
|
v("label", M5, [
|
|
6957
6957
|
v("span", k5, z(d.$t("activity.attachment.button.resting")), 1),
|
|
@@ -6965,7 +6965,7 @@ const g5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], b5 = {
|
|
|
6965
6965
|
}, null, 32)
|
|
6966
6966
|
]),
|
|
6967
6967
|
v("span", A5, z(d.$t("activity.attachment.placeholder.resting")), 1)
|
|
6968
|
-
])) :
|
|
6968
|
+
])) : k("", !0)
|
|
6969
6969
|
], 42, g5);
|
|
6970
6970
|
};
|
|
6971
6971
|
}
|
|
@@ -6984,10 +6984,10 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
6984
6984
|
},
|
|
6985
6985
|
emits: ["edit", "remove"],
|
|
6986
6986
|
setup(a, { emit: e }) {
|
|
6987
|
-
const t = a, s =
|
|
6987
|
+
const t = a, s = w(() => {
|
|
6988
6988
|
const S = t.user;
|
|
6989
6989
|
return S ? `${S == null ? void 0 : S.firstName} ${S == null ? void 0 : S.lastName}` : null;
|
|
6990
|
-
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d =
|
|
6990
|
+
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d = w(() => A1(t.createdAt)), u = w(() => A1(t.editedAt)), f = w(() => o.value ? "textarea" : "p"), p = r(), C = l((S) => {
|
|
6991
6991
|
e("edit", S);
|
|
6992
6992
|
}), $ = () => {
|
|
6993
6993
|
e("remove");
|
|
@@ -7008,7 +7008,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7008
7008
|
"avatar-url": (g = S.user) == null ? void 0 : g.avatarUrl,
|
|
7009
7009
|
"user-name": s.value,
|
|
7010
7010
|
class: "ao-comment__avatar"
|
|
7011
|
-
}, null, 8, ["avatar-url", "user-name"])) :
|
|
7011
|
+
}, null, 8, ["avatar-url", "user-name"])) : k("", !0),
|
|
7012
7012
|
v("div", E5, [
|
|
7013
7013
|
v("div", I5, [
|
|
7014
7014
|
(c(), N(tt(f.value), {
|
|
@@ -7062,7 +7062,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7062
7062
|
onClick: q(i)
|
|
7063
7063
|
}, null, 8, ["label", "onClick"])
|
|
7064
7064
|
], 64))
|
|
7065
|
-
])) :
|
|
7065
|
+
])) : k("", !0)
|
|
7066
7066
|
]);
|
|
7067
7067
|
};
|
|
7068
7068
|
}
|
|
@@ -7084,7 +7084,7 @@ const D5 = {
|
|
|
7084
7084
|
Ee(() => {
|
|
7085
7085
|
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7086
7086
|
});
|
|
7087
|
-
const o = ct(t.newComment), i =
|
|
7087
|
+
const o = ct(t.newComment), i = w({
|
|
7088
7088
|
get() {
|
|
7089
7089
|
return o.value;
|
|
7090
7090
|
},
|
|
@@ -7121,7 +7121,7 @@ const D5 = {
|
|
|
7121
7121
|
onEdit: ($) => r(C.id, $),
|
|
7122
7122
|
onRemove: () => d(C.id)
|
|
7123
7123
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
7124
|
-
])) :
|
|
7124
|
+
])) : k("", !0),
|
|
7125
7125
|
v("div", H5, [
|
|
7126
7126
|
v("form", {
|
|
7127
7127
|
class: "ao-comments__form",
|
|
@@ -7192,28 +7192,28 @@ const j5 = {
|
|
|
7192
7192
|
id: t.activity.id,
|
|
7193
7193
|
name: b
|
|
7194
7194
|
});
|
|
7195
|
-
}, n =
|
|
7195
|
+
}, n = w({
|
|
7196
7196
|
get() {
|
|
7197
7197
|
return t.activity.description ?? "";
|
|
7198
7198
|
},
|
|
7199
7199
|
set(b) {
|
|
7200
7200
|
e("update:activity", { id: t.activity.id, description: b });
|
|
7201
7201
|
}
|
|
7202
|
-
}), o =
|
|
7202
|
+
}), o = w({
|
|
7203
7203
|
get() {
|
|
7204
7204
|
return t.activity.estimation ?? 0;
|
|
7205
7205
|
},
|
|
7206
7206
|
set(b) {
|
|
7207
7207
|
e("update:activity", { id: t.activity.id, estimation: b });
|
|
7208
7208
|
}
|
|
7209
|
-
}), i =
|
|
7209
|
+
}), i = w({
|
|
7210
7210
|
get() {
|
|
7211
7211
|
return t.activity.important ?? !1;
|
|
7212
7212
|
},
|
|
7213
7213
|
set(b) {
|
|
7214
7214
|
e("update:activity", { id: t.activity.id, important: b });
|
|
7215
7215
|
}
|
|
7216
|
-
}), l =
|
|
7216
|
+
}), l = w({
|
|
7217
7217
|
get() {
|
|
7218
7218
|
var b;
|
|
7219
7219
|
return (b = t.activity.type) == null ? void 0 : b.id;
|
|
@@ -7221,13 +7221,13 @@ const j5 = {
|
|
|
7221
7221
|
set(b) {
|
|
7222
7222
|
e("update:activity", { id: t.activity.id, typeId: b });
|
|
7223
7223
|
}
|
|
7224
|
-
}), r =
|
|
7224
|
+
}), r = w(() => t.templateActivities.filter((b) => b.id !== t.activity.id).map((b) => ({
|
|
7225
7225
|
label: b.name,
|
|
7226
7226
|
value: b.id
|
|
7227
|
-
}))), d =
|
|
7227
|
+
}))), d = w({
|
|
7228
7228
|
get() {
|
|
7229
7229
|
var b;
|
|
7230
|
-
return (b = t.activity.dependingOn) == null ? void 0 : b.map((
|
|
7230
|
+
return (b = t.activity.dependingOn) == null ? void 0 : b.map((A) => A.id);
|
|
7231
7231
|
},
|
|
7232
7232
|
set(b) {
|
|
7233
7233
|
b && e("update:activity", {
|
|
@@ -7235,16 +7235,16 @@ const j5 = {
|
|
|
7235
7235
|
dependingOn: b
|
|
7236
7236
|
});
|
|
7237
7237
|
}
|
|
7238
|
-
}), u =
|
|
7239
|
-
var
|
|
7238
|
+
}), u = w(() => r.value.map((b) => {
|
|
7239
|
+
var A;
|
|
7240
7240
|
return {
|
|
7241
7241
|
...b,
|
|
7242
|
-
disabled: (
|
|
7242
|
+
disabled: (A = t.activity.blocking) == null ? void 0 : A.some((P) => P.id === b.value)
|
|
7243
7243
|
};
|
|
7244
|
-
})), f =
|
|
7244
|
+
})), f = w({
|
|
7245
7245
|
get() {
|
|
7246
7246
|
var b;
|
|
7247
|
-
return (b = t.activity.blocking) == null ? void 0 : b.map((
|
|
7247
|
+
return (b = t.activity.blocking) == null ? void 0 : b.map((A) => A.id);
|
|
7248
7248
|
},
|
|
7249
7249
|
set(b) {
|
|
7250
7250
|
b && e("update:activity", {
|
|
@@ -7252,16 +7252,16 @@ const j5 = {
|
|
|
7252
7252
|
blocking: b
|
|
7253
7253
|
});
|
|
7254
7254
|
}
|
|
7255
|
-
}), p =
|
|
7256
|
-
var
|
|
7255
|
+
}), p = w(() => r.value.map((b) => {
|
|
7256
|
+
var A;
|
|
7257
7257
|
return {
|
|
7258
7258
|
...b,
|
|
7259
|
-
disabled: (
|
|
7259
|
+
disabled: (A = t.activity.dependingOn) == null ? void 0 : A.some((P) => P.id === b.value)
|
|
7260
7260
|
};
|
|
7261
|
-
})), C =
|
|
7262
|
-
label:
|
|
7263
|
-
value:
|
|
7264
|
-
}))), $ =
|
|
7261
|
+
})), C = w(() => (t.templateMilestones || []).filter((A) => A.id !== t.milestoneId).map((A) => ({
|
|
7262
|
+
label: A.name,
|
|
7263
|
+
value: A.id
|
|
7264
|
+
}))), $ = w({
|
|
7265
7265
|
get() {
|
|
7266
7266
|
return t.activity.dependingMilestones;
|
|
7267
7267
|
},
|
|
@@ -7277,17 +7277,17 @@ const j5 = {
|
|
|
7277
7277
|
e("updateSubtask", b);
|
|
7278
7278
|
}, _ = (b) => {
|
|
7279
7279
|
e("deleteSubtask", b);
|
|
7280
|
-
}, g =
|
|
7280
|
+
}, g = w(() => {
|
|
7281
7281
|
var b;
|
|
7282
|
-
return ((b = t.users) == null ? void 0 : b.map((
|
|
7283
|
-
label: `${
|
|
7284
|
-
value:
|
|
7285
|
-
avatar:
|
|
7282
|
+
return ((b = t.users) == null ? void 0 : b.map((A) => ({
|
|
7283
|
+
label: `${A.firstName} ${A.lastName}`,
|
|
7284
|
+
value: A.id,
|
|
7285
|
+
avatar: A.avatarUrl
|
|
7286
7286
|
}))) || [];
|
|
7287
|
-
}), V =
|
|
7287
|
+
}), V = w({
|
|
7288
7288
|
get() {
|
|
7289
|
-
var b,
|
|
7290
|
-
return (b = t.activity.assignee) != null && b.id ? [(
|
|
7289
|
+
var b, A;
|
|
7290
|
+
return (b = t.activity.assignee) != null && b.id ? [(A = t.activity.assignee) == null ? void 0 : A.id] : [];
|
|
7291
7291
|
},
|
|
7292
7292
|
set(b) {
|
|
7293
7293
|
e("update:activity", {
|
|
@@ -7305,11 +7305,11 @@ const j5 = {
|
|
|
7305
7305
|
activityId: t.activity.id,
|
|
7306
7306
|
file: b
|
|
7307
7307
|
});
|
|
7308
|
-
}, D =
|
|
7308
|
+
}, D = w(() => {
|
|
7309
7309
|
var b;
|
|
7310
|
-
return (b = t.statuses) == null ? void 0 : b.map((
|
|
7311
|
-
value:
|
|
7312
|
-
label:
|
|
7310
|
+
return (b = t.statuses) == null ? void 0 : b.map((A) => ({
|
|
7311
|
+
value: A.id,
|
|
7312
|
+
label: A.name
|
|
7313
7313
|
}));
|
|
7314
7314
|
}), X = (b) => {
|
|
7315
7315
|
e("update:activity", {
|
|
@@ -7326,11 +7326,11 @@ const j5 = {
|
|
|
7326
7326
|
}, ee = (b) => {
|
|
7327
7327
|
e("removeComment", b);
|
|
7328
7328
|
};
|
|
7329
|
-
return (b,
|
|
7330
|
-
onClose:
|
|
7329
|
+
return (b, A) => (c(), N(L1, {
|
|
7330
|
+
onClose: A[8] || (A[8] = (P) => b.$emit("close"))
|
|
7331
7331
|
}, {
|
|
7332
7332
|
header: j(() => [
|
|
7333
|
-
b.breadcrumbs ? (c(), h("div", j5, z(b.breadcrumbs), 1)) :
|
|
7333
|
+
b.breadcrumbs ? (c(), h("div", j5, z(b.breadcrumbs), 1)) : k("", !0),
|
|
7334
7334
|
T(me, {
|
|
7335
7335
|
title: b.activity.name || "",
|
|
7336
7336
|
level: 4,
|
|
@@ -7351,7 +7351,7 @@ const j5 = {
|
|
|
7351
7351
|
caret: b.isEditable,
|
|
7352
7352
|
onChange: X
|
|
7353
7353
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
7354
|
-
])) :
|
|
7354
|
+
])) : k("", !0)
|
|
7355
7355
|
];
|
|
7356
7356
|
})
|
|
7357
7357
|
]),
|
|
@@ -7362,7 +7362,7 @@ const j5 = {
|
|
|
7362
7362
|
v("label", Y5, [
|
|
7363
7363
|
v("span", K5, z(b.$t("activity.description.label")), 1),
|
|
7364
7364
|
ft(v("textarea", {
|
|
7365
|
-
"onUpdate:modelValue":
|
|
7365
|
+
"onUpdate:modelValue": A[0] || (A[0] = (P) => n.value = P),
|
|
7366
7366
|
readonly: !b.isEditable,
|
|
7367
7367
|
rows: "4",
|
|
7368
7368
|
class: "ao-field__textarea"
|
|
@@ -7383,7 +7383,7 @@ const j5 = {
|
|
|
7383
7383
|
v("label", X5, [
|
|
7384
7384
|
v("span", Q5, z(b.$t("activity.estimation.label")), 1),
|
|
7385
7385
|
ft(v("input", {
|
|
7386
|
-
"onUpdate:modelValue":
|
|
7386
|
+
"onUpdate:modelValue": A[1] || (A[1] = (P) => o.value = P),
|
|
7387
7387
|
readonly: !b.isEditable,
|
|
7388
7388
|
class: "ao-field__input",
|
|
7389
7389
|
type: "number",
|
|
@@ -7403,7 +7403,7 @@ const j5 = {
|
|
|
7403
7403
|
v("label", e7, [
|
|
7404
7404
|
v("span", t7, z(b.$t("activity.important.label")), 1),
|
|
7405
7405
|
ft(v("input", {
|
|
7406
|
-
"onUpdate:modelValue":
|
|
7406
|
+
"onUpdate:modelValue": A[2] || (A[2] = (P) => i.value = P),
|
|
7407
7407
|
disabled: !b.isEditable,
|
|
7408
7408
|
class: "ao-field__input",
|
|
7409
7409
|
type: "checkbox"
|
|
@@ -7431,7 +7431,7 @@ const j5 = {
|
|
|
7431
7431
|
v("div", l7, [
|
|
7432
7432
|
T(ye, {
|
|
7433
7433
|
modelValue: V.value,
|
|
7434
|
-
"onUpdate:modelValue":
|
|
7434
|
+
"onUpdate:modelValue": A[3] || (A[3] = (P) => V.value = P),
|
|
7435
7435
|
options: g.value,
|
|
7436
7436
|
"close-on-select": !1,
|
|
7437
7437
|
searchable: !0,
|
|
@@ -7492,7 +7492,7 @@ const j5 = {
|
|
|
7492
7492
|
v("span", m7, z(b.$t("activity.dependingOn.label")), 1),
|
|
7493
7493
|
T(ye, {
|
|
7494
7494
|
modelValue: d.value,
|
|
7495
|
-
"onUpdate:modelValue":
|
|
7495
|
+
"onUpdate:modelValue": A[4] || (A[4] = (P) => d.value = P),
|
|
7496
7496
|
mode: "tags",
|
|
7497
7497
|
"close-on-select": !1,
|
|
7498
7498
|
searchable: !0,
|
|
@@ -7507,7 +7507,7 @@ const j5 = {
|
|
|
7507
7507
|
v("span", g7, z(b.$t("activity.blocking.label")), 1),
|
|
7508
7508
|
T(ye, {
|
|
7509
7509
|
modelValue: f.value,
|
|
7510
|
-
"onUpdate:modelValue":
|
|
7510
|
+
"onUpdate:modelValue": A[5] || (A[5] = (P) => f.value = P),
|
|
7511
7511
|
mode: "tags",
|
|
7512
7512
|
"close-on-select": !1,
|
|
7513
7513
|
searchable: !0,
|
|
@@ -7522,7 +7522,7 @@ const j5 = {
|
|
|
7522
7522
|
v("span", w7, z(b.$t("activity.dependingMilestone.label")), 1),
|
|
7523
7523
|
T(ye, {
|
|
7524
7524
|
modelValue: $.value,
|
|
7525
|
-
"onUpdate:modelValue":
|
|
7525
|
+
"onUpdate:modelValue": A[6] || (A[6] = (P) => $.value = P),
|
|
7526
7526
|
mode: "tags",
|
|
7527
7527
|
"close-on-select": !1,
|
|
7528
7528
|
searchable: !0,
|
|
@@ -7540,7 +7540,7 @@ const j5 = {
|
|
|
7540
7540
|
v("span", A7, z(b.$t("activity.type.label")), 1),
|
|
7541
7541
|
T(ye, {
|
|
7542
7542
|
modelValue: l.value,
|
|
7543
|
-
"onUpdate:modelValue":
|
|
7543
|
+
"onUpdate:modelValue": A[7] || (A[7] = (P) => l.value = P),
|
|
7544
7544
|
mode: "single",
|
|
7545
7545
|
searchable: !0,
|
|
7546
7546
|
options: b.activityTypes,
|
|
@@ -7549,7 +7549,7 @@ const j5 = {
|
|
|
7549
7549
|
caret: b.isEditable
|
|
7550
7550
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
7551
7551
|
])
|
|
7552
|
-
])) :
|
|
7552
|
+
])) : k("", !0),
|
|
7553
7553
|
te(b.$slots, "default")
|
|
7554
7554
|
])
|
|
7555
7555
|
]),
|
|
@@ -7582,7 +7582,7 @@ const j5 = {
|
|
|
7582
7582
|
onUpdateComment: I,
|
|
7583
7583
|
onRemoveComment: ee
|
|
7584
7584
|
}, null, 8, ["comments", "users", "user-id"])
|
|
7585
|
-
])) :
|
|
7585
|
+
])) : k("", !0)
|
|
7586
7586
|
]),
|
|
7587
7587
|
_: 3
|
|
7588
7588
|
}));
|
|
@@ -7601,7 +7601,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7601
7601
|
setup(a, { emit: e }) {
|
|
7602
7602
|
const t = a, s = ct(
|
|
7603
7603
|
t.rule.itemType || pe.ACTIVITIES
|
|
7604
|
-
), n =
|
|
7604
|
+
), n = w({
|
|
7605
7605
|
get() {
|
|
7606
7606
|
return s.value;
|
|
7607
7607
|
},
|
|
@@ -7612,7 +7612,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7612
7612
|
subItemId: void 0
|
|
7613
7613
|
});
|
|
7614
7614
|
}
|
|
7615
|
-
}), o =
|
|
7615
|
+
}), o = w(() => Object.values(pe)), i = w({
|
|
7616
7616
|
get() {
|
|
7617
7617
|
return t.rule.subItemId;
|
|
7618
7618
|
},
|
|
@@ -7623,7 +7623,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7623
7623
|
itemType: t.rule.itemType || n.value
|
|
7624
7624
|
});
|
|
7625
7625
|
}
|
|
7626
|
-
}), l =
|
|
7626
|
+
}), l = w(() => {
|
|
7627
7627
|
var g;
|
|
7628
7628
|
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (g = {
|
|
7629
7629
|
[pe.ACTIVITIES]: t.templateActivities,
|
|
@@ -7633,35 +7633,35 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7633
7633
|
value: V.id,
|
|
7634
7634
|
label: V.name
|
|
7635
7635
|
}));
|
|
7636
|
-
}), r = ct(t.rule.comparator), d =
|
|
7636
|
+
}), r = ct(t.rule.comparator), d = w({
|
|
7637
7637
|
get() {
|
|
7638
7638
|
return r.value;
|
|
7639
7639
|
},
|
|
7640
7640
|
set(_) {
|
|
7641
7641
|
e("update:rule", { ...t.rule, comparator: _ });
|
|
7642
7642
|
}
|
|
7643
|
-
}), u =
|
|
7643
|
+
}), u = w(() => Object.values(pd)), f = ct(t.rule.trigger), p = w({
|
|
7644
7644
|
get() {
|
|
7645
7645
|
return f.value;
|
|
7646
7646
|
},
|
|
7647
7647
|
set(_) {
|
|
7648
7648
|
e("update:rule", { ...t.rule, trigger: _ });
|
|
7649
7649
|
}
|
|
7650
|
-
}), C =
|
|
7650
|
+
}), C = w(() => Object.values(hd)), $ = w({
|
|
7651
7651
|
get() {
|
|
7652
7652
|
return t.rule.duration;
|
|
7653
7653
|
},
|
|
7654
7654
|
set(_) {
|
|
7655
7655
|
e("update:rule", { ...t.rule, duration: _ });
|
|
7656
7656
|
}
|
|
7657
|
-
}), M =
|
|
7657
|
+
}), M = w({
|
|
7658
7658
|
get() {
|
|
7659
7659
|
return t.rule.durationUnit;
|
|
7660
7660
|
},
|
|
7661
7661
|
set(_) {
|
|
7662
7662
|
e("update:rule", { ...t.rule, durationUnit: _ });
|
|
7663
7663
|
}
|
|
7664
|
-
}), S =
|
|
7664
|
+
}), S = w(() => Object.values(md));
|
|
7665
7665
|
return (_, g) => (c(), N(tt(_.tagName), { class: "ao-rule-line" }, {
|
|
7666
7666
|
default: j(() => [
|
|
7667
7667
|
T(q(ze), {
|
|
@@ -7782,7 +7782,7 @@ const D7 = {
|
|
|
7782
7782
|
},
|
|
7783
7783
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
7784
7784
|
setup(a, { emit: e }) {
|
|
7785
|
-
const t = a, { t: s } = nt(), n =
|
|
7785
|
+
const t = a, { t: s } = nt(), n = w(
|
|
7786
7786
|
() => {
|
|
7787
7787
|
var O;
|
|
7788
7788
|
return (O = t.templates) == null ? void 0 : O.find((L) => L.id === t.templateId);
|
|
@@ -7794,7 +7794,7 @@ const D7 = {
|
|
|
7794
7794
|
}, (O, L) => {
|
|
7795
7795
|
o.value && Ue(O, L);
|
|
7796
7796
|
});
|
|
7797
|
-
const i =
|
|
7797
|
+
const i = w(() => {
|
|
7798
7798
|
var O, L;
|
|
7799
7799
|
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((W) => W.id === t.phaseId);
|
|
7800
7800
|
});
|
|
@@ -7804,7 +7804,7 @@ const D7 = {
|
|
|
7804
7804
|
}, (O, L) => {
|
|
7805
7805
|
o.value && Ue(O, L);
|
|
7806
7806
|
});
|
|
7807
|
-
const l =
|
|
7807
|
+
const l = w(() => {
|
|
7808
7808
|
var O, L;
|
|
7809
7809
|
return (L = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : L.find(
|
|
7810
7810
|
(W) => W.id === t.milestoneId
|
|
@@ -7816,33 +7816,33 @@ const D7 = {
|
|
|
7816
7816
|
}, (O, L) => {
|
|
7817
7817
|
o.value && Ue(O, L);
|
|
7818
7818
|
});
|
|
7819
|
-
const r =
|
|
7819
|
+
const r = w(() => {
|
|
7820
7820
|
var O, L;
|
|
7821
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W,
|
|
7822
|
-
const Y =
|
|
7821
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, y) => {
|
|
7822
|
+
const Y = y.milestones || [];
|
|
7823
7823
|
return [...W, ...Y];
|
|
7824
7824
|
}, [])) || [];
|
|
7825
|
-
}), d =
|
|
7825
|
+
}), d = w(() => {
|
|
7826
7826
|
var O, L;
|
|
7827
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W,
|
|
7828
|
-
const he = (
|
|
7827
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, y) => {
|
|
7828
|
+
const he = (y.milestones || []).reduce(
|
|
7829
7829
|
(Z, F) => F.activities ? [...Z, ...F.activities] : Z,
|
|
7830
7830
|
[]
|
|
7831
7831
|
);
|
|
7832
7832
|
return [...W, ...he];
|
|
7833
7833
|
}, [])) || [];
|
|
7834
|
-
}), u =
|
|
7834
|
+
}), u = w(() => {
|
|
7835
7835
|
var O, L;
|
|
7836
7836
|
return (L = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : L.find(
|
|
7837
7837
|
(W) => W.id === t.activityId
|
|
7838
7838
|
);
|
|
7839
|
-
}), f =
|
|
7839
|
+
}), f = w(() => {
|
|
7840
7840
|
var O;
|
|
7841
7841
|
return (O = t.activityTypes) == null ? void 0 : O.map((L) => ({
|
|
7842
7842
|
label: L.name,
|
|
7843
7843
|
value: L.id
|
|
7844
7844
|
}));
|
|
7845
|
-
}), p =
|
|
7845
|
+
}), p = w(() => {
|
|
7846
7846
|
var O;
|
|
7847
7847
|
return ((O = n.value) == null ? void 0 : O.name) || t.templateId;
|
|
7848
7848
|
}), C = () => {
|
|
@@ -7924,7 +7924,7 @@ const D7 = {
|
|
|
7924
7924
|
const { milestoneId: L } = O;
|
|
7925
7925
|
if (!l.value)
|
|
7926
7926
|
return;
|
|
7927
|
-
const { name: W, rank:
|
|
7927
|
+
const { name: W, rank: y } = pt(
|
|
7928
7928
|
l.value.activities,
|
|
7929
7929
|
"activity",
|
|
7930
7930
|
s
|
|
@@ -7933,7 +7933,7 @@ const D7 = {
|
|
|
7933
7933
|
type: pe.ACTIVITIES,
|
|
7934
7934
|
milestoneId: L,
|
|
7935
7935
|
templateId: t.templateId,
|
|
7936
|
-
item: { name: W, rank:
|
|
7936
|
+
item: { name: W, rank: y, milestoneId: L }
|
|
7937
7937
|
});
|
|
7938
7938
|
}, D = (O) => {
|
|
7939
7939
|
var L, W;
|
|
@@ -7960,7 +7960,7 @@ const D7 = {
|
|
|
7960
7960
|
e("addRule", { templateId: t.templateId });
|
|
7961
7961
|
}, b = (O) => {
|
|
7962
7962
|
e("removeRule", { id: O, templateId: t.templateId });
|
|
7963
|
-
},
|
|
7963
|
+
}, A = (O) => {
|
|
7964
7964
|
var L;
|
|
7965
7965
|
if (O.moved) {
|
|
7966
7966
|
const W = Bt(O, ((L = n.value) == null ? void 0 : L.phases) ?? []);
|
|
@@ -8004,7 +8004,7 @@ const D7 = {
|
|
|
8004
8004
|
e("removeFile", O);
|
|
8005
8005
|
};
|
|
8006
8006
|
return (O, L) => {
|
|
8007
|
-
var W,
|
|
8007
|
+
var W, y, Y, he, Z, F;
|
|
8008
8008
|
return n.value ? (c(), h("div", D7, [
|
|
8009
8009
|
T(r1, {
|
|
8010
8010
|
"can-go-back": !0,
|
|
@@ -8039,7 +8039,7 @@ const D7 = {
|
|
|
8039
8039
|
class: "ao-templates__list",
|
|
8040
8040
|
"item-key": "id",
|
|
8041
8041
|
handle: ".ao-card__drag",
|
|
8042
|
-
onChange:
|
|
8042
|
+
onChange: A
|
|
8043
8043
|
}, {
|
|
8044
8044
|
header: j(() => [
|
|
8045
8045
|
T(me, {
|
|
@@ -8089,19 +8089,19 @@ const D7 = {
|
|
|
8089
8089
|
onUpdateMilestone: R,
|
|
8090
8090
|
onUpdatePhase: _,
|
|
8091
8091
|
onRemoveMilestone: V
|
|
8092
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) :
|
|
8092
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : k("", !0)
|
|
8093
8093
|
]),
|
|
8094
8094
|
v("li", U7, [
|
|
8095
8095
|
i.value && l.value ? (c(), N(W3, {
|
|
8096
8096
|
key: 0,
|
|
8097
8097
|
"template-id": O.templateId,
|
|
8098
|
-
"phase-id": (
|
|
8098
|
+
"phase-id": (y = i.value) == null ? void 0 : y.id,
|
|
8099
8099
|
milestone: l.value,
|
|
8100
8100
|
"activity-id": (Y = u.value) == null ? void 0 : Y.id,
|
|
8101
8101
|
onAddActivity: K,
|
|
8102
8102
|
onUpdateActivity: X,
|
|
8103
8103
|
onRemoveActivity: D
|
|
8104
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) :
|
|
8104
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : k("", !0)
|
|
8105
8105
|
])
|
|
8106
8106
|
])
|
|
8107
8107
|
]),
|
|
@@ -8125,7 +8125,7 @@ const D7 = {
|
|
|
8125
8125
|
onDeleteSubtask: ne,
|
|
8126
8126
|
onAddFiles: le,
|
|
8127
8127
|
onRemoveFile: ie
|
|
8128
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) :
|
|
8128
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : k("", !0)
|
|
8129
8129
|
])),
|
|
8130
8130
|
(c(), N(It, { to: "body" }, [
|
|
8131
8131
|
ae.value ? (c(), N(V7, {
|
|
@@ -8138,9 +8138,9 @@ const D7 = {
|
|
|
8138
8138
|
onClose: I,
|
|
8139
8139
|
onAddRule: ee,
|
|
8140
8140
|
onRemoveRule: b
|
|
8141
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) :
|
|
8141
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : k("", !0)
|
|
8142
8142
|
]))
|
|
8143
|
-
])) :
|
|
8143
|
+
])) : k("", !0);
|
|
8144
8144
|
};
|
|
8145
8145
|
}
|
|
8146
8146
|
});
|
|
@@ -8163,13 +8163,13 @@ const Z7 = {
|
|
|
8163
8163
|
default: j(() => [
|
|
8164
8164
|
e.$slots.header ? (c(), h("header", Z7, [
|
|
8165
8165
|
te(e.$slots, "header")
|
|
8166
|
-
])) :
|
|
8166
|
+
])) : k("", !0),
|
|
8167
8167
|
v("div", F7, [
|
|
8168
8168
|
te(e.$slots, "default")
|
|
8169
8169
|
]),
|
|
8170
8170
|
e.$slots.footer ? (c(), h("footer", q7, [
|
|
8171
8171
|
te(e.$slots, "footer")
|
|
8172
|
-
])) :
|
|
8172
|
+
])) : k("", !0)
|
|
8173
8173
|
]),
|
|
8174
8174
|
_: 3
|
|
8175
8175
|
}, 8, ["class"]));
|
|
@@ -8182,7 +8182,7 @@ const U1 = /* @__PURE__ */ x({
|
|
|
8182
8182
|
status: {}
|
|
8183
8183
|
},
|
|
8184
8184
|
setup(a) {
|
|
8185
|
-
const e = a, t =
|
|
8185
|
+
const e = a, t = w(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
8186
8186
|
return (s, n) => (c(), h("div", {
|
|
8187
8187
|
class: G(["ao-progress", s.status ? `ao-progress--${s.status}` : ""]),
|
|
8188
8188
|
role: "meter"
|
|
@@ -8211,13 +8211,13 @@ const W7 = { class: "ao-card-project-phase__header" }, z7 = { class: "ao-card-pr
|
|
|
8211
8211
|
setup(a, { emit: e }) {
|
|
8212
8212
|
const t = a, s = (l) => {
|
|
8213
8213
|
e("update:title", l);
|
|
8214
|
-
}, n =
|
|
8214
|
+
}, n = w(() => {
|
|
8215
8215
|
var l;
|
|
8216
8216
|
return (l = t.milestones) == null ? void 0 : l.length;
|
|
8217
|
-
}), o =
|
|
8217
|
+
}), o = w(() => {
|
|
8218
8218
|
var l;
|
|
8219
8219
|
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === k1.done).length;
|
|
8220
|
-
}), i =
|
|
8220
|
+
}), i = w(() => (o.value || 0) / (n.value || 1));
|
|
8221
8221
|
return (l, r) => (c(), N(R1, { class: "ao-card-project-phase" }, t1({
|
|
8222
8222
|
default: j(() => [
|
|
8223
8223
|
T(me, {
|
|
@@ -8244,10 +8244,10 @@ const W7 = { class: "ao-card-project-phase__header" }, z7 = { class: "ao-card-pr
|
|
|
8244
8244
|
percentages: i.value,
|
|
8245
8245
|
class: "ao-card-project-phase__progress"
|
|
8246
8246
|
}, null, 8, ["percentages"])
|
|
8247
|
-
], 64)) :
|
|
8247
|
+
], 64)) : k("", !0),
|
|
8248
8248
|
l.$slots.secondary ? (c(), h("div", x7, [
|
|
8249
8249
|
te(l.$slots, "secondary")
|
|
8250
|
-
])) :
|
|
8250
|
+
])) : k("", !0)
|
|
8251
8251
|
])
|
|
8252
8252
|
])
|
|
8253
8253
|
]),
|
|
@@ -8292,13 +8292,13 @@ const Q7 = { class: "ao-card-project-milestone__default" }, J7 = {
|
|
|
8292
8292
|
},
|
|
8293
8293
|
emits: ["updateMilestone", "archiveMilestone"],
|
|
8294
8294
|
setup(a, { emit: e }) {
|
|
8295
|
-
const t = a, s =
|
|
8295
|
+
const t = a, s = w(() => {
|
|
8296
8296
|
var l;
|
|
8297
8297
|
return (l = t.activities) == null ? void 0 : l.length;
|
|
8298
|
-
}), n =
|
|
8298
|
+
}), n = w(() => {
|
|
8299
8299
|
var l;
|
|
8300
8300
|
return (l = t.activities) == null ? void 0 : l.filter((r) => ka(r, t.closedStatus)).length;
|
|
8301
|
-
}), o =
|
|
8301
|
+
}), o = w(() => (n.value || 0) / (s.value || 1)), i = (l) => {
|
|
8302
8302
|
e("updateMilestone", { id: t.id, name: l });
|
|
8303
8303
|
};
|
|
8304
8304
|
return (l, r) => (c(), N(R1, {
|
|
@@ -8327,7 +8327,7 @@ const Q7 = { class: "ao-card-project-milestone__default" }, J7 = {
|
|
|
8327
8327
|
label: l.$t("archive"),
|
|
8328
8328
|
onClick: r[0] || (r[0] = _e(() => l.$emit("archiveMilestone", { id: l.id }), ["stop"]))
|
|
8329
8329
|
}, null, 8, ["label"])
|
|
8330
|
-
])) :
|
|
8330
|
+
])) : k("", !0)
|
|
8331
8331
|
])
|
|
8332
8332
|
]),
|
|
8333
8333
|
footer: j(() => [
|
|
@@ -8345,10 +8345,10 @@ const Q7 = { class: "ao-card-project-milestone__default" }, J7 = {
|
|
|
8345
8345
|
percentages: o.value,
|
|
8346
8346
|
class: "ao-card-project-phase__progress"
|
|
8347
8347
|
}, null, 8, ["percentages"])
|
|
8348
|
-
], 64)) :
|
|
8348
|
+
], 64)) : k("", !0),
|
|
8349
8349
|
l.$slots.secondary ? (c(), h("div", s9, [
|
|
8350
8350
|
te(l.$slots, "secondary")
|
|
8351
|
-
])) :
|
|
8351
|
+
])) : k("", !0)
|
|
8352
8352
|
])
|
|
8353
8353
|
])
|
|
8354
8354
|
]),
|
|
@@ -8374,7 +8374,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8374
8374
|
});
|
|
8375
8375
|
const n = (f) => {
|
|
8376
8376
|
e("updatePhase", { id: t.phase.id, name: f });
|
|
8377
|
-
}, o =
|
|
8377
|
+
}, o = w(() => t.phase.milestones.map((f) => o3(f, t.closedStatus))), i = (f) => {
|
|
8378
8378
|
const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
|
|
8379
8379
|
e("addMilestone", { name: p, rank: C, phaseId: f });
|
|
8380
8380
|
}, l = (f) => {
|
|
@@ -8399,7 +8399,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8399
8399
|
name: "DragIndicator",
|
|
8400
8400
|
class: "ao-project-phase__drag-handle"
|
|
8401
8401
|
})
|
|
8402
|
-
])) :
|
|
8402
|
+
])) : k("", !0),
|
|
8403
8403
|
v("div", r9, [
|
|
8404
8404
|
T(X7, {
|
|
8405
8405
|
id: f.phase.id,
|
|
@@ -8445,7 +8445,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8445
8445
|
class: "ao-project-phase__milestone-add",
|
|
8446
8446
|
"icon-name": "Add",
|
|
8447
8447
|
onClick: p[0] || (p[0] = () => i(f.phase.id))
|
|
8448
|
-
}, null, 8, ["label"])) :
|
|
8448
|
+
}, null, 8, ["label"])) : k("", !0)
|
|
8449
8449
|
])
|
|
8450
8450
|
])
|
|
8451
8451
|
])
|
|
@@ -8522,7 +8522,7 @@ const v9 = { class: "ao-project__phases" }, p9 = {
|
|
|
8522
8522
|
}, null, 8, ["label"])
|
|
8523
8523
|
]),
|
|
8524
8524
|
C9
|
|
8525
|
-
])) :
|
|
8525
|
+
])) : k("", !0)
|
|
8526
8526
|
]));
|
|
8527
8527
|
}
|
|
8528
8528
|
});
|
|
@@ -8534,7 +8534,7 @@ const g9 = ["onSubmit"], b9 = { class: "ao-add-template-modal__form-body" }, y9
|
|
|
8534
8534
|
},
|
|
8535
8535
|
emits: ["apply"],
|
|
8536
8536
|
setup(a, { emit: e }) {
|
|
8537
|
-
const t = a, s =
|
|
8537
|
+
const t = a, s = w(() => t.templates.map((l) => ({
|
|
8538
8538
|
value: l.id,
|
|
8539
8539
|
label: l.name
|
|
8540
8540
|
}))), n = J(null), o = (l) => {
|
|
@@ -8646,7 +8646,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8646
8646
|
},
|
|
8647
8647
|
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8648
8648
|
setup(a, { emit: e }) {
|
|
8649
|
-
const t = a, { t: s } = nt(), n =
|
|
8649
|
+
const t = a, { t: s } = nt(), n = w(
|
|
8650
8650
|
() => t.phases.flatMap((I) => I.milestones)
|
|
8651
8651
|
), o = () => {
|
|
8652
8652
|
const { name: I, rank: ee } = pt(t.phases, "phase", s);
|
|
@@ -8673,7 +8673,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8673
8673
|
e("updateSubtask", I);
|
|
8674
8674
|
}, S = (I) => {
|
|
8675
8675
|
e("deleteSubtask", I);
|
|
8676
|
-
}, _ =
|
|
8676
|
+
}, _ = w(
|
|
8677
8677
|
() => n.value.flatMap((I) => I.activities)
|
|
8678
8678
|
), g = (I) => {
|
|
8679
8679
|
e("addFiles", I);
|
|
@@ -8699,8 +8699,8 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8699
8699
|
"is-left": !0,
|
|
8700
8700
|
"right-label": I.$t("project.switch.feed"),
|
|
8701
8701
|
"left-label": I.$t("project.switch.overview"),
|
|
8702
|
-
"onUpdate:isLeft": ee[0] || (ee[0] = (
|
|
8703
|
-
|
|
8702
|
+
"onUpdate:isLeft": ee[0] || (ee[0] = (A) => {
|
|
8703
|
+
A || I.$router.push({ name: q(Re).feed });
|
|
8704
8704
|
})
|
|
8705
8705
|
}, null, 8, ["right-label", "left-label"]),
|
|
8706
8706
|
I.isEditable ? (c(), N(de, {
|
|
@@ -8708,8 +8708,8 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8708
8708
|
class: "ao-project-overview__add-template",
|
|
8709
8709
|
color: "primary",
|
|
8710
8710
|
label: I.$t("project.template.add.label"),
|
|
8711
|
-
onClick: ee[1] || (ee[1] = (
|
|
8712
|
-
}, null, 8, ["label"])) :
|
|
8711
|
+
onClick: ee[1] || (ee[1] = (A) => X.value = !0)
|
|
8712
|
+
}, null, 8, ["label"])) : k("", !0)
|
|
8713
8713
|
]),
|
|
8714
8714
|
_: 1
|
|
8715
8715
|
}),
|
|
@@ -8734,7 +8734,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8734
8734
|
"project-name": I.project.name,
|
|
8735
8735
|
users: I.users,
|
|
8736
8736
|
"is-editable": I.isEditable,
|
|
8737
|
-
onClose: ee[2] || (ee[2] = (
|
|
8737
|
+
onClose: ee[2] || (ee[2] = (A) => I.$router.push({ name: q(Re).project })),
|
|
8738
8738
|
onAddActivity: f,
|
|
8739
8739
|
onUpdateActivity: p,
|
|
8740
8740
|
onArchiveActivity: C
|
|
@@ -8766,9 +8766,9 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8766
8766
|
key: 0,
|
|
8767
8767
|
"project-id": I.project.id,
|
|
8768
8768
|
templates: I.templates,
|
|
8769
|
-
onClose: ee[3] || (ee[3] = (
|
|
8769
|
+
onClose: ee[3] || (ee[3] = (A) => X.value = !1),
|
|
8770
8770
|
onApply: ae
|
|
8771
|
-
}, null, 8, ["project-id", "templates"])) :
|
|
8771
|
+
}, null, 8, ["project-id", "templates"])) : k("", !0)
|
|
8772
8772
|
]))
|
|
8773
8773
|
], 64);
|
|
8774
8774
|
};
|
|
@@ -8822,18 +8822,18 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8822
8822
|
id: t.id,
|
|
8823
8823
|
name: p
|
|
8824
8824
|
});
|
|
8825
|
-
}, n =
|
|
8825
|
+
}, n = w(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = w(() => t.assignee ? [t.assignee] : []), i = w(() => A1(t.deadline)), l = (p) => {
|
|
8826
8826
|
const { firstName: C, lastName: $ } = p || {};
|
|
8827
8827
|
return `${C ?? ""}${C ? " " : ""}${$ ?? ""}`;
|
|
8828
8828
|
}, r = (p) => {
|
|
8829
8829
|
e("removeAssignee", p);
|
|
8830
|
-
}, d =
|
|
8830
|
+
}, d = w(() => {
|
|
8831
8831
|
var p;
|
|
8832
8832
|
return (p = t.tasks) == null ? void 0 : p.length;
|
|
8833
|
-
}), u =
|
|
8833
|
+
}), u = w(() => {
|
|
8834
8834
|
var p;
|
|
8835
8835
|
return (p = t.tasks) == null ? void 0 : p.filter((C) => C.isDone).length;
|
|
8836
|
-
}), f =
|
|
8836
|
+
}), f = w(() => (u.value || 0) / (d.value || 1));
|
|
8837
8837
|
return (p, C) => (c(), N(R1, {
|
|
8838
8838
|
class: "ao-card-feed",
|
|
8839
8839
|
"is-clickable": !0
|
|
@@ -8847,21 +8847,21 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8847
8847
|
variant: "solid",
|
|
8848
8848
|
color: p.projectColor ? void 0 : "primary",
|
|
8849
8849
|
"raw-color": p.projectColor
|
|
8850
|
-
}, null, 8, ["label", "color", "raw-color"])) :
|
|
8850
|
+
}, null, 8, ["label", "color", "raw-color"])) : k("", !0),
|
|
8851
8851
|
p.important ? (c(), N(ce, {
|
|
8852
8852
|
key: 1,
|
|
8853
8853
|
name: "FlagRounded",
|
|
8854
8854
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
8855
8855
|
size: "sm"
|
|
8856
|
-
})) :
|
|
8856
|
+
})) : k("", !0),
|
|
8857
8857
|
p.$slots.secondary ? (c(), h("div", L9, [
|
|
8858
8858
|
te(p.$slots, "secondary")
|
|
8859
|
-
])) :
|
|
8859
|
+
])) : k("", !0)
|
|
8860
8860
|
])
|
|
8861
8861
|
]),
|
|
8862
8862
|
default: j(() => [
|
|
8863
8863
|
v("div", V9, [
|
|
8864
|
-
n.value ? (c(), h("span", D9, z(n.value), 1)) :
|
|
8864
|
+
n.value ? (c(), h("span", D9, z(n.value), 1)) : k("", !0),
|
|
8865
8865
|
T(me, {
|
|
8866
8866
|
id: p.id,
|
|
8867
8867
|
title: p.name,
|
|
@@ -8869,7 +8869,7 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8869
8869
|
"is-editable": p.isEditable,
|
|
8870
8870
|
"onUpdate:title": s
|
|
8871
8871
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8872
|
-
p.deadline ? (c(), h("span", H9, z(i.value), 1)) :
|
|
8872
|
+
p.deadline ? (c(), h("span", H9, z(i.value), 1)) : k("", !0)
|
|
8873
8873
|
])
|
|
8874
8874
|
]),
|
|
8875
8875
|
footer: j(() => [
|
|
@@ -8886,7 +8886,7 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8886
8886
|
"is-closable": !0,
|
|
8887
8887
|
onClose: () => r($.id)
|
|
8888
8888
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
8889
|
-
])) :
|
|
8889
|
+
])) : k("", !0)
|
|
8890
8890
|
], 64))), 128))
|
|
8891
8891
|
]),
|
|
8892
8892
|
p.comments || p.attachments ? (c(), h("ul", U9, [
|
|
@@ -8896,15 +8896,15 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8896
8896
|
size: "sm"
|
|
8897
8897
|
}),
|
|
8898
8898
|
v("span", Z9, z(p.comments), 1)
|
|
8899
|
-
])) :
|
|
8899
|
+
])) : k("", !0),
|
|
8900
8900
|
p.attachments ? (c(), h("li", F9, [
|
|
8901
8901
|
T(ce, {
|
|
8902
8902
|
name: "AttachFileRounded",
|
|
8903
8903
|
size: "sm"
|
|
8904
8904
|
}),
|
|
8905
8905
|
v("span", q9, z(p.attachments), 1)
|
|
8906
|
-
])) :
|
|
8907
|
-
])) :
|
|
8906
|
+
])) : k("", !0)
|
|
8907
|
+
])) : k("", !0)
|
|
8908
8908
|
]),
|
|
8909
8909
|
v("div", W9, [
|
|
8910
8910
|
p.tasks && p.tasks.length ? (c(), h("div", z9, [
|
|
@@ -8919,7 +8919,7 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8919
8919
|
percentages: f.value,
|
|
8920
8920
|
class: "ao-card-feed__progress"
|
|
8921
8921
|
}, null, 8, ["percentages"])
|
|
8922
|
-
])) :
|
|
8922
|
+
])) : k("", !0)
|
|
8923
8923
|
])
|
|
8924
8924
|
])
|
|
8925
8925
|
]),
|
|
@@ -8942,16 +8942,16 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
8942
8942
|
},
|
|
8943
8943
|
emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
|
|
8944
8944
|
setup(a, { emit: e }) {
|
|
8945
|
-
const t = a, { t: s } = nt(), n =
|
|
8945
|
+
const t = a, { t: s } = nt(), n = w(() => {
|
|
8946
8946
|
var p;
|
|
8947
8947
|
return (p = t.phases) == null ? void 0 : p.find((C) => C.id === t.phaseId);
|
|
8948
|
-
}), o =
|
|
8948
|
+
}), o = w(() => {
|
|
8949
8949
|
var p;
|
|
8950
8950
|
return (p = t.phases) == null ? void 0 : p.flatMap((C) => C.milestones);
|
|
8951
|
-
}), i =
|
|
8951
|
+
}), i = w(() => {
|
|
8952
8952
|
var p;
|
|
8953
8953
|
return (p = o.value) == null ? void 0 : p.find((C) => C.id === t.milestoneId);
|
|
8954
|
-
}), l =
|
|
8954
|
+
}), l = w(() => {
|
|
8955
8955
|
var p;
|
|
8956
8956
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
8957
8957
|
});
|
|
@@ -9055,7 +9055,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
9055
9055
|
label: p.$t("project.activity.add"),
|
|
9056
9056
|
onClick: d
|
|
9057
9057
|
}, null, 8, ["label"])
|
|
9058
|
-
])) :
|
|
9058
|
+
])) : k("", !0)
|
|
9059
9059
|
])
|
|
9060
9060
|
]);
|
|
9061
9061
|
};
|
|
@@ -9079,19 +9079,19 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9079
9079
|
},
|
|
9080
9080
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9081
9081
|
setup(a, { emit: e }) {
|
|
9082
|
-
const t = a, s =
|
|
9082
|
+
const t = a, s = w(() => {
|
|
9083
9083
|
var _;
|
|
9084
9084
|
return (_ = t.phases) == null ? void 0 : _.find((g) => g.id === t.phaseId);
|
|
9085
|
-
}), n =
|
|
9085
|
+
}), n = w(() => {
|
|
9086
9086
|
var _;
|
|
9087
9087
|
return (_ = t.phases) == null ? void 0 : _.flatMap((g) => g.milestones);
|
|
9088
|
-
}), o =
|
|
9088
|
+
}), o = w(() => {
|
|
9089
9089
|
var _;
|
|
9090
9090
|
return (_ = n.value) == null ? void 0 : _.find((g) => g.id === t.milestoneId);
|
|
9091
|
-
}), i =
|
|
9091
|
+
}), i = w(() => {
|
|
9092
9092
|
var _;
|
|
9093
9093
|
return (_ = t.activities) == null ? void 0 : _.find((g) => g.id === t.activityId);
|
|
9094
|
-
}), l =
|
|
9094
|
+
}), l = w(() => {
|
|
9095
9095
|
var _;
|
|
9096
9096
|
return (_ = t.activityTypes) == null ? void 0 : _.map((g) => ({
|
|
9097
9097
|
value: g,
|
|
@@ -9141,7 +9141,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9141
9141
|
onAddComment: $,
|
|
9142
9142
|
onUpdateComment: M,
|
|
9143
9143
|
onRemoveComment: S
|
|
9144
|
-
}, null, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) :
|
|
9144
|
+
}, null, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) : k("", !0);
|
|
9145
9145
|
};
|
|
9146
9146
|
}
|
|
9147
9147
|
}), t4 = { class: "ao-col-header" }, a4 = /* @__PURE__ */ x({
|
|
@@ -9163,7 +9163,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9163
9163
|
class: "ao-col-header__items",
|
|
9164
9164
|
variant: "solid",
|
|
9165
9165
|
color: "primary"
|
|
9166
|
-
}, null, 8, ["label"])) :
|
|
9166
|
+
}, null, 8, ["label"])) : k("", !0)
|
|
9167
9167
|
]));
|
|
9168
9168
|
}
|
|
9169
9169
|
});
|
|
@@ -9219,7 +9219,7 @@ function d4() {
|
|
|
9219
9219
|
}
|
|
9220
9220
|
function c4(a) {
|
|
9221
9221
|
const e = d4();
|
|
9222
|
-
return
|
|
9222
|
+
return w(() => (e.value, !!a()));
|
|
9223
9223
|
}
|
|
9224
9224
|
function f4(a, e, t = {}) {
|
|
9225
9225
|
const {
|
|
@@ -9228,7 +9228,7 @@ function f4(a, e, t = {}) {
|
|
|
9228
9228
|
threshold: o = 0.1,
|
|
9229
9229
|
window: i = u4,
|
|
9230
9230
|
immediate: l = !0
|
|
9231
|
-
} = t, r = c4(() => i && "IntersectionObserver" in i), d =
|
|
9231
|
+
} = t, r = c4(() => i && "IntersectionObserver" in i), d = w(() => {
|
|
9232
9232
|
const $ = Jt(a);
|
|
9233
9233
|
return (Array.isArray($) ? $ : [$]).map(M1).filter(i4);
|
|
9234
9234
|
});
|
|
@@ -9332,10 +9332,10 @@ const v4 = {
|
|
|
9332
9332
|
title: r.title,
|
|
9333
9333
|
level: 3,
|
|
9334
9334
|
items: (u = r.list) == null ? void 0 : u.length
|
|
9335
|
-
}, null, 8, ["title", "items"])) :
|
|
9335
|
+
}, null, 8, ["title", "items"])) : k("", !0)
|
|
9336
9336
|
])
|
|
9337
9337
|
];
|
|
9338
|
-
}) :
|
|
9338
|
+
}) : k("", !0),
|
|
9339
9339
|
T(q(Xe), Ve({
|
|
9340
9340
|
class: "ao-list-kanban__list",
|
|
9341
9341
|
list: r.list,
|
|
@@ -9343,7 +9343,7 @@ const v4 = {
|
|
|
9343
9343
|
group: "kanban"
|
|
9344
9344
|
}, r.$attrs, {
|
|
9345
9345
|
onChange: l,
|
|
9346
|
-
|
|
9346
|
+
disabled: !r.isEditable
|
|
9347
9347
|
}), {
|
|
9348
9348
|
item: j(({ element: u }) => {
|
|
9349
9349
|
var f, p, C, $, M, S, _, g;
|
|
@@ -9381,7 +9381,7 @@ const v4 = {
|
|
|
9381
9381
|
corners: "round",
|
|
9382
9382
|
label: r.$t("feed.activity.archive"),
|
|
9383
9383
|
onClick: _e(() => r.$emit("archiveActivity", { id: u.id }), ["stop"])
|
|
9384
|
-
}, null, 8, ["label", "onClick"])) :
|
|
9384
|
+
}, null, 8, ["label", "onClick"])) : k("", !0)
|
|
9385
9385
|
]),
|
|
9386
9386
|
_: 2
|
|
9387
9387
|
}, 1032, ["id", "name", "project-name", "project-color", "phase-name", "milestone-name", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "is-editable", "onClick", "onRemoveAssignee"])
|
|
@@ -9396,11 +9396,11 @@ const v4 = {
|
|
|
9396
9396
|
ref: n,
|
|
9397
9397
|
class: "ao-list-kanban__end"
|
|
9398
9398
|
}, null, 512)) : (c(), h("div", m4, [
|
|
9399
|
-
r.noMoreLabel ? (c(), h("span", C4, z(r.noMoreLabel), 1)) : (c(), h("span", _4))
|
|
9399
|
+
r.noMoreLabel ? (c(), h("span", C4, z(r.noMoreLabel), 1)) : r.isEditable ? (c(), h("span", _4)) : k("", !0)
|
|
9400
9400
|
]))
|
|
9401
9401
|
]),
|
|
9402
9402
|
_: 1
|
|
9403
|
-
}, 16, ["list", "
|
|
9403
|
+
}, 16, ["list", "disabled"]),
|
|
9404
9404
|
r.$slots.footer || r.footerLabel ? (c(), h("div", g4, [
|
|
9405
9405
|
te(r.$slots, "footer", {}, () => [
|
|
9406
9406
|
r.isEditable ? (c(), N(Qe, {
|
|
@@ -9408,9 +9408,9 @@ const v4 = {
|
|
|
9408
9408
|
"icon-name": "AddBoxOutlineRounded",
|
|
9409
9409
|
label: r.footerLabel,
|
|
9410
9410
|
onClick: d[1] || (d[1] = (u) => r.$emit("add"))
|
|
9411
|
-
}, null, 8, ["label"])) :
|
|
9411
|
+
}, null, 8, ["label"])) : k("", !0)
|
|
9412
9412
|
])
|
|
9413
|
-
])) :
|
|
9413
|
+
])) : k("", !0)
|
|
9414
9414
|
]));
|
|
9415
9415
|
}
|
|
9416
9416
|
});
|
|
@@ -9455,7 +9455,7 @@ const y4 = { class: "ao-field ao-search-field" }, w4 = ["value", "placeholder",
|
|
|
9455
9455
|
}
|
|
9456
9456
|
});
|
|
9457
9457
|
function M4(a) {
|
|
9458
|
-
const e = J(), t =
|
|
9458
|
+
const e = J(), t = w(
|
|
9459
9459
|
() => a.value.find(
|
|
9460
9460
|
(n) => n.id === e.value
|
|
9461
9461
|
)
|
|
@@ -9500,15 +9500,15 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9500
9500
|
},
|
|
9501
9501
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9502
9502
|
setup(a, { emit: e }) {
|
|
9503
|
-
const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (
|
|
9504
|
-
o(
|
|
9503
|
+
const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (y) => {
|
|
9504
|
+
o(y), e("selectActivity", y);
|
|
9505
9505
|
}, r = J({}), d = J(!1);
|
|
9506
9506
|
re(
|
|
9507
9507
|
[() => t.statuses, () => t.activities],
|
|
9508
9508
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9509
|
-
async ([
|
|
9509
|
+
async ([y, Y], [he, Z]) => {
|
|
9510
9510
|
r.value = Object.fromEntries(
|
|
9511
|
-
|
|
9511
|
+
y.map((F) => [
|
|
9512
9512
|
F.id,
|
|
9513
9513
|
Y.filter((E) => {
|
|
9514
9514
|
var U;
|
|
@@ -9519,107 +9519,107 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9519
9519
|
},
|
|
9520
9520
|
{ immediate: !0 }
|
|
9521
9521
|
);
|
|
9522
|
-
const u =
|
|
9523
|
-
var
|
|
9524
|
-
return !i.value || !i.value.milestone ? "" : `${((
|
|
9525
|
-
}), f = (
|
|
9522
|
+
const u = w(() => {
|
|
9523
|
+
var y;
|
|
9524
|
+
return !i.value || !i.value.milestone ? "" : `${((y = i.value.milestone.phase) == null ? void 0 : y.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9525
|
+
}), f = (y) => {
|
|
9526
9526
|
var E, U;
|
|
9527
9527
|
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), Z = ((U = t.activities) == null ? void 0 : U.length) ?? 0, F = {
|
|
9528
9528
|
name: s("activity.defaultName", { idx: Z + 1 }),
|
|
9529
9529
|
rank: he.format(),
|
|
9530
|
-
statusId:
|
|
9530
|
+
statusId: y.id
|
|
9531
9531
|
};
|
|
9532
9532
|
t.filters.assigneeId.length > 0 && (F.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (F.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (F.typeId = t.filters.typeId[0]), d.value = !0, e("addActivity", F);
|
|
9533
|
-
}, p = (
|
|
9534
|
-
d.value = !1, e("update:filters", { ...t.filters, [
|
|
9535
|
-
}, C =
|
|
9536
|
-
value:
|
|
9537
|
-
label:
|
|
9538
|
-
}))), M =
|
|
9539
|
-
var
|
|
9540
|
-
return (
|
|
9533
|
+
}, p = (y, Y) => {
|
|
9534
|
+
d.value = !1, e("update:filters", { ...t.filters, [y]: Y });
|
|
9535
|
+
}, C = w(() => t.project ? [t.project] : t.projects ?? []), $ = w(() => C.value.map((y) => ({
|
|
9536
|
+
value: y.id,
|
|
9537
|
+
label: y.name
|
|
9538
|
+
}))), M = w(() => {
|
|
9539
|
+
var y;
|
|
9540
|
+
return (y = t.activityTypes) == null ? void 0 : y.map((Y) => ({
|
|
9541
9541
|
value: Y.id,
|
|
9542
9542
|
label: Y.name
|
|
9543
9543
|
}));
|
|
9544
|
-
}), S =
|
|
9545
|
-
value:
|
|
9546
|
-
label: `${
|
|
9547
|
-
avatar:
|
|
9548
|
-
}))), _ = (
|
|
9549
|
-
i.value && e("update:activity",
|
|
9550
|
-
}, g = (
|
|
9551
|
-
e("update:activity",
|
|
9552
|
-
}, V = (
|
|
9553
|
-
e("archiveActivity",
|
|
9554
|
-
}, R =
|
|
9544
|
+
}), S = w(() => t.users.map((y) => ({
|
|
9545
|
+
value: y.id,
|
|
9546
|
+
label: `${y.firstName} ${y.lastName}`,
|
|
9547
|
+
avatar: y.avatarUrl
|
|
9548
|
+
}))), _ = (y) => {
|
|
9549
|
+
i.value && e("update:activity", y);
|
|
9550
|
+
}, g = (y) => {
|
|
9551
|
+
e("update:activity", y);
|
|
9552
|
+
}, V = (y) => {
|
|
9553
|
+
e("archiveActivity", y);
|
|
9554
|
+
}, R = w({
|
|
9555
9555
|
get() {
|
|
9556
|
-
var
|
|
9557
|
-
return (
|
|
9556
|
+
var y;
|
|
9557
|
+
return (y = i.value) == null ? void 0 : y.deadline;
|
|
9558
9558
|
},
|
|
9559
|
-
set(
|
|
9559
|
+
set(y) {
|
|
9560
9560
|
i.value && _({
|
|
9561
9561
|
id: i.value.id,
|
|
9562
|
-
deadline:
|
|
9562
|
+
deadline: y
|
|
9563
9563
|
});
|
|
9564
9564
|
}
|
|
9565
|
-
}), K = (
|
|
9566
|
-
d.value = !1, e("update:searchText",
|
|
9567
|
-
}, D = (
|
|
9568
|
-
d.value = !1, e("clear:searchText",
|
|
9569
|
-
}, X = (
|
|
9570
|
-
i.value && e("addSubtask",
|
|
9571
|
-
}, ae = (
|
|
9572
|
-
i.value && e("updateSubtask",
|
|
9573
|
-
}, I = (
|
|
9574
|
-
i.value && e("deleteSubtask",
|
|
9575
|
-
}, ee = (
|
|
9576
|
-
e("addFiles",
|
|
9577
|
-
}, b = (
|
|
9578
|
-
e("removeFile",
|
|
9579
|
-
},
|
|
9565
|
+
}), K = (y) => {
|
|
9566
|
+
d.value = !1, e("update:searchText", y);
|
|
9567
|
+
}, D = (y) => {
|
|
9568
|
+
d.value = !1, e("clear:searchText", y);
|
|
9569
|
+
}, X = (y) => {
|
|
9570
|
+
i.value && e("addSubtask", y);
|
|
9571
|
+
}, ae = (y) => {
|
|
9572
|
+
i.value && e("updateSubtask", y);
|
|
9573
|
+
}, I = (y) => {
|
|
9574
|
+
i.value && e("deleteSubtask", y);
|
|
9575
|
+
}, ee = (y) => {
|
|
9576
|
+
e("addFiles", y);
|
|
9577
|
+
}, b = (y) => {
|
|
9578
|
+
e("removeFile", y);
|
|
9579
|
+
}, A = (y) => {
|
|
9580
9580
|
i.value && e("addComment", {
|
|
9581
|
-
...
|
|
9581
|
+
...y,
|
|
9582
9582
|
activityId: i.value.id
|
|
9583
9583
|
});
|
|
9584
|
-
}, P = (
|
|
9584
|
+
}, P = (y) => {
|
|
9585
9585
|
const { id: Y } = i.value || {};
|
|
9586
|
-
Y && e("updateComment",
|
|
9587
|
-
}, ue = (
|
|
9586
|
+
Y && e("updateComment", y);
|
|
9587
|
+
}, ue = (y) => {
|
|
9588
9588
|
const { id: Y } = i.value || {};
|
|
9589
|
-
Y && e("removeComment",
|
|
9590
|
-
}, ne =
|
|
9591
|
-
value:
|
|
9592
|
-
label:
|
|
9593
|
-
}))), le =
|
|
9589
|
+
Y && e("removeComment", y);
|
|
9590
|
+
}, ne = w(() => C.value.map((y) => ({
|
|
9591
|
+
value: y.id,
|
|
9592
|
+
label: y.name
|
|
9593
|
+
}))), le = w(() => {
|
|
9594
9594
|
var Y, he, Z;
|
|
9595
|
-
const
|
|
9596
|
-
return
|
|
9595
|
+
const y = (Z = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : Z.reduce((F, E) => [...F, ...E.milestones], []);
|
|
9596
|
+
return y == null ? void 0 : y.map((F) => ({
|
|
9597
9597
|
value: F.id,
|
|
9598
9598
|
label: F.name
|
|
9599
9599
|
}));
|
|
9600
|
-
}), ie = (
|
|
9600
|
+
}), ie = (y) => {
|
|
9601
9601
|
i.value && e("update:activity", {
|
|
9602
9602
|
id: i.value.id,
|
|
9603
|
-
projectId:
|
|
9603
|
+
projectId: y
|
|
9604
9604
|
});
|
|
9605
|
-
}, O = (
|
|
9605
|
+
}, O = (y) => {
|
|
9606
9606
|
i.value && e("update:activity", {
|
|
9607
9607
|
id: i.value.id,
|
|
9608
|
-
milestoneId:
|
|
9608
|
+
milestoneId: y
|
|
9609
9609
|
});
|
|
9610
|
-
}, L =
|
|
9611
|
-
var
|
|
9612
|
-
return (
|
|
9610
|
+
}, L = w(() => {
|
|
9611
|
+
var y;
|
|
9612
|
+
return (y = t.statuses) == null ? void 0 : y.map((Y) => ({
|
|
9613
9613
|
value: Y.id,
|
|
9614
9614
|
label: Y.name
|
|
9615
9615
|
}));
|
|
9616
|
-
}), W = (
|
|
9616
|
+
}), W = (y) => {
|
|
9617
9617
|
i.value && e("update:activity", {
|
|
9618
9618
|
id: i.value.id,
|
|
9619
|
-
statusId:
|
|
9619
|
+
statusId: y
|
|
9620
9620
|
});
|
|
9621
9621
|
};
|
|
9622
|
-
return (
|
|
9622
|
+
return (y, Y) => {
|
|
9623
9623
|
var he;
|
|
9624
9624
|
return c(), h("div", S4, [
|
|
9625
9625
|
T(r1, null, {
|
|
@@ -9628,49 +9628,49 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9628
9628
|
t.project ? (c(), N(Pa, {
|
|
9629
9629
|
key: 0,
|
|
9630
9630
|
"is-left": !1,
|
|
9631
|
-
"right-label":
|
|
9632
|
-
"left-label":
|
|
9631
|
+
"right-label": y.$t("project.switch.feed"),
|
|
9632
|
+
"left-label": y.$t("project.switch.overview"),
|
|
9633
9633
|
"onUpdate:isLeft": Y[0] || (Y[0] = (Z) => {
|
|
9634
|
-
Z &&
|
|
9634
|
+
Z && y.$router.push({ name: q(Re).project });
|
|
9635
9635
|
})
|
|
9636
|
-
}, null, 8, ["right-label", "left-label"])) :
|
|
9636
|
+
}, null, 8, ["right-label", "left-label"])) : k("", !0),
|
|
9637
9637
|
T($4, {
|
|
9638
|
-
"model-value":
|
|
9639
|
-
placeholder:
|
|
9638
|
+
"model-value": y.searchText,
|
|
9639
|
+
placeholder: y.$t("feed.search.placeholder"),
|
|
9640
9640
|
class: "ao-feed__search",
|
|
9641
9641
|
"onUpdate:modelValue": K,
|
|
9642
9642
|
onClear: D
|
|
9643
9643
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9644
|
-
t.project ?
|
|
9644
|
+
t.project ? k("", !0) : (c(), N(ye, {
|
|
9645
9645
|
key: 1,
|
|
9646
|
-
"model-value":
|
|
9646
|
+
"model-value": y.filters[q(ut).project],
|
|
9647
9647
|
mode: "tags",
|
|
9648
9648
|
options: $.value,
|
|
9649
9649
|
"close-on-select": !1,
|
|
9650
9650
|
searchable: !0,
|
|
9651
9651
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9652
|
-
placeholder:
|
|
9652
|
+
placeholder: y.$t("feed.filters.project.placeholder"),
|
|
9653
9653
|
"onUpdate:modelValue": Y[1] || (Y[1] = (Z) => p(q(ut).project, Z))
|
|
9654
9654
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9655
9655
|
M.value ? (c(), N(ye, {
|
|
9656
9656
|
key: 2,
|
|
9657
|
-
"model-value":
|
|
9657
|
+
"model-value": y.filters[q(ut).type],
|
|
9658
9658
|
mode: "tags",
|
|
9659
9659
|
options: M.value,
|
|
9660
9660
|
"close-on-select": !1,
|
|
9661
9661
|
searchable: !0,
|
|
9662
9662
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9663
|
-
placeholder:
|
|
9663
|
+
placeholder: y.$t("feed.filters.activityType.placeholder"),
|
|
9664
9664
|
"onUpdate:modelValue": Y[2] || (Y[2] = (Z) => p(q(ut).type, Z))
|
|
9665
|
-
}, null, 8, ["model-value", "options", "placeholder"])) :
|
|
9665
|
+
}, null, 8, ["model-value", "options", "placeholder"])) : k("", !0),
|
|
9666
9666
|
T(ye, {
|
|
9667
|
-
"model-value":
|
|
9667
|
+
"model-value": y.filters[q(ut).assignee],
|
|
9668
9668
|
mode: "tags",
|
|
9669
9669
|
options: S.value,
|
|
9670
9670
|
"close-on-select": !1,
|
|
9671
9671
|
searchable: !0,
|
|
9672
9672
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9673
|
-
placeholder:
|
|
9673
|
+
placeholder: y.$t("feed.filters.assignee.placeholder"),
|
|
9674
9674
|
"onUpdate:modelValue": Y[3] || (Y[3] = (Z) => p(q(ut).assignee, Z))
|
|
9675
9675
|
}, {
|
|
9676
9676
|
tag: j(({ option: Z, handleTagRemove: F }) => [
|
|
@@ -9687,27 +9687,27 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9687
9687
|
T(de, {
|
|
9688
9688
|
class: "ao-feed__show-archived",
|
|
9689
9689
|
size: "sm",
|
|
9690
|
-
"icon-name":
|
|
9690
|
+
"icon-name": y.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
9691
9691
|
"icon-position": "start",
|
|
9692
9692
|
color: "primary",
|
|
9693
9693
|
variant: "ghost",
|
|
9694
|
-
label:
|
|
9694
|
+
label: y.$t("feed.filters.showsArchivedActivities.label"),
|
|
9695
9695
|
role: "checkbox",
|
|
9696
|
-
"aria-checked":
|
|
9697
|
-
onClick: Y[4] || (Y[4] = (Z) =>
|
|
9696
|
+
"aria-checked": y.showsArchivedActivities,
|
|
9697
|
+
onClick: Y[4] || (Y[4] = (Z) => y.$emit("update:showsArchivedActivities", !y.showsArchivedActivities))
|
|
9698
9698
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9699
9699
|
]),
|
|
9700
9700
|
_: 1
|
|
9701
9701
|
}),
|
|
9702
9702
|
v("div", E4, [
|
|
9703
|
-
(c(!0), h(fe, null, be(
|
|
9703
|
+
(c(!0), h(fe, null, be(y.statuses, (Z) => (c(), N(b4, {
|
|
9704
9704
|
key: Z.id,
|
|
9705
9705
|
status: Z,
|
|
9706
9706
|
list: r.value[Z.id],
|
|
9707
9707
|
title: Z.name,
|
|
9708
|
-
"footer-label":
|
|
9709
|
-
users:
|
|
9710
|
-
"is-editable":
|
|
9708
|
+
"footer-label": y.$t("feed.activity.add"),
|
|
9709
|
+
users: y.users,
|
|
9710
|
+
"is-editable": y.isEditable,
|
|
9711
9711
|
onAdd: () => f(Z),
|
|
9712
9712
|
onSelectActivity: l,
|
|
9713
9713
|
onArchiveActivity: V,
|
|
@@ -9721,12 +9721,12 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9721
9721
|
"activity-types": M.value,
|
|
9722
9722
|
"milestone-id": (he = q(i).milestone) == null ? void 0 : he.id,
|
|
9723
9723
|
"template-activities": n.value,
|
|
9724
|
-
users:
|
|
9725
|
-
"user-id":
|
|
9726
|
-
"is-task-checkable":
|
|
9727
|
-
statuses:
|
|
9724
|
+
users: y.users,
|
|
9725
|
+
"user-id": y.userId,
|
|
9726
|
+
"is-task-checkable": y.isTaskCheckable,
|
|
9727
|
+
statuses: y.statuses,
|
|
9728
9728
|
breadcrumbs: u.value,
|
|
9729
|
-
"is-editable":
|
|
9729
|
+
"is-editable": y.isEditable,
|
|
9730
9730
|
onClose: Y[6] || (Y[6] = () => l(null)),
|
|
9731
9731
|
"onUpdate:activity": _,
|
|
9732
9732
|
onAddSubtask: X,
|
|
@@ -9734,7 +9734,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9734
9734
|
onDeleteSubtask: I,
|
|
9735
9735
|
onAddFiles: ee,
|
|
9736
9736
|
onRemoveFile: b,
|
|
9737
|
-
onAddComment:
|
|
9737
|
+
onAddComment: A,
|
|
9738
9738
|
onUpdateComment: P,
|
|
9739
9739
|
onRemoveComment: ue
|
|
9740
9740
|
}, {
|
|
@@ -9743,40 +9743,46 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9743
9743
|
return [
|
|
9744
9744
|
v("div", I4, [
|
|
9745
9745
|
ne.value && !t.project ? (c(), h("label", O4, [
|
|
9746
|
-
v("span", L4, z(
|
|
9746
|
+
v("span", L4, z(y.$t("activity.project.label")), 1),
|
|
9747
9747
|
T(ye, {
|
|
9748
9748
|
options: ne.value,
|
|
9749
9749
|
value: (Z = q(i).project) == null ? void 0 : Z.id,
|
|
9750
9750
|
searchable: !0,
|
|
9751
|
+
disabled: !y.isEditable,
|
|
9752
|
+
caret: y.isEditable,
|
|
9751
9753
|
onChange: ie
|
|
9752
|
-
}, null, 8, ["options", "value"])
|
|
9753
|
-
])) :
|
|
9754
|
+
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9755
|
+
])) : k("", !0),
|
|
9754
9756
|
le.value ? (c(), h("label", V4, [
|
|
9755
|
-
v("span", D4, z(
|
|
9757
|
+
v("span", D4, z(y.$t("activity.milestone.label")), 1),
|
|
9756
9758
|
T(ye, {
|
|
9757
9759
|
options: le.value,
|
|
9758
9760
|
value: (F = q(i).milestone) == null ? void 0 : F.id,
|
|
9759
9761
|
searchable: !0,
|
|
9762
|
+
disabled: !y.isEditable,
|
|
9763
|
+
caret: y.isEditable,
|
|
9760
9764
|
onChange: O
|
|
9761
|
-
}, null, 8, ["options", "value"])
|
|
9762
|
-
])) :
|
|
9765
|
+
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9766
|
+
])) : k("", !0),
|
|
9763
9767
|
L.value ? (c(), h("label", H4, [
|
|
9764
|
-
v("span", P4, z(
|
|
9768
|
+
v("span", P4, z(y.$t("activity.status.label")), 1),
|
|
9765
9769
|
T(ye, {
|
|
9766
9770
|
options: L.value,
|
|
9767
9771
|
value: (E = q(i).status) == null ? void 0 : E.id,
|
|
9768
9772
|
"can-clear": !1,
|
|
9769
9773
|
"can-deselect": !1,
|
|
9774
|
+
disabled: !y.isEditable,
|
|
9775
|
+
caret: y.isEditable,
|
|
9770
9776
|
onChange: W
|
|
9771
|
-
}, null, 8, ["options", "value"])
|
|
9772
|
-
])) :
|
|
9777
|
+
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9778
|
+
])) : k("", !0)
|
|
9773
9779
|
])
|
|
9774
9780
|
];
|
|
9775
9781
|
}),
|
|
9776
9782
|
default: j(() => [
|
|
9777
9783
|
v("div", B4, [
|
|
9778
9784
|
v("label", N4, [
|
|
9779
|
-
v("span", R4, z(
|
|
9785
|
+
v("span", R4, z(y.$t("activity.deadline.label")), 1),
|
|
9780
9786
|
ft(v("input", {
|
|
9781
9787
|
"onUpdate:modelValue": Y[5] || (Y[5] = (Z) => R.value = Z),
|
|
9782
9788
|
class: "ao-field__input",
|
|
@@ -9793,7 +9799,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9793
9799
|
])
|
|
9794
9800
|
]),
|
|
9795
9801
|
_: 1
|
|
9796
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable"])) :
|
|
9802
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable"])) : k("", !0)
|
|
9797
9803
|
]))
|
|
9798
9804
|
]);
|
|
9799
9805
|
};
|