@26lights/orcha 0.7.33 → 0.7.34
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 +916 -915
- package/dist/orcha.umd.js +2 -2
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +9 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, openBlock as u, createBlock as j, unref as E, mergeProps as Ee, createElementBlock as C, createElementVNode as o, pushScopeId as Nt, popScopeId as Rt, createStaticVNode as Ut, computed as
|
|
1
|
+
import { defineComponent as K, openBlock as u, createBlock as j, unref as E, mergeProps as Ee, createElementBlock as C, createElementVNode as o, pushScopeId as Nt, popScopeId as Rt, createStaticVNode as Ut, computed as f, resolveDynamicComponent as Ke, normalizeClass as F, renderSlot as Y, toDisplayString as N, createCommentVNode as M, ref as Q, watch as de, nextTick as He, withKeys as a1, toHandlers as qt, withCtx as R, createTextVNode as Z1, createVNode as y, withModifiers as we, Fragment as ae, renderList as pe, toRefs as fe, getCurrentInstance as Oe, onMounted as m1, onUnmounted as zt, withDirectives as qe, vModelText as l1, vModelCheckbox as Ft, toRef as e1, Teleport as C1, normalizeStyle as Kt, toValue as x1, onBeforeMount as Gt, resolveComponent as Yt, getCurrentScope as Wt, onScopeDispose as Xt, provide as Jt } from "vue";
|
|
2
2
|
import { RouterView as Qt } from "vue-router";
|
|
3
3
|
import n1 from "vuedraggable";
|
|
4
4
|
const Ru = /* @__PURE__ */ K({
|
|
@@ -1118,14 +1118,14 @@ const kr = /* @__PURE__ */ V(br, [["render", Ar]]), Ir = /* @__PURE__ */ Object.
|
|
|
1118
1118
|
}, it = {
|
|
1119
1119
|
ROUND: "round",
|
|
1120
1120
|
ROUNDED: "rounded"
|
|
1121
|
-
},
|
|
1121
|
+
}, se = /* @__PURE__ */ K({
|
|
1122
1122
|
__name: "AoIcon",
|
|
1123
1123
|
props: {
|
|
1124
1124
|
name: {},
|
|
1125
1125
|
size: { default: h1.MD }
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(s) {
|
|
1128
|
-
const e = s, t =
|
|
1128
|
+
const e = s, t = f(() => Ir[e.name]);
|
|
1129
1129
|
return (n, a) => (u(), j(Ke(t.value), {
|
|
1130
1130
|
class: F(["ao-icon", `ao-icon--${n.size}`])
|
|
1131
1131
|
}, null, 8, ["class"]));
|
|
@@ -1149,7 +1149,7 @@ const Lr = ["type"], Tr = {
|
|
|
1149
1149
|
corners: { default: () => it.ROUNDED }
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(s) {
|
|
1152
|
-
const e = s, t =
|
|
1152
|
+
const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
|
|
1153
1153
|
return (a, i) => (u(), C("button", {
|
|
1154
1154
|
type: a.type,
|
|
1155
1155
|
class: F([
|
|
@@ -1164,19 +1164,19 @@ const Lr = ["type"], Tr = {
|
|
|
1164
1164
|
])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
Y(a.$slots, "default", {}, () => [
|
|
1167
|
-
a.label ? (u(), C("span", Tr, N(a.label), 1)) :
|
|
1167
|
+
a.label ? (u(), C("span", Tr, N(a.label), 1)) : M("", !0)
|
|
1168
1168
|
]),
|
|
1169
|
-
n.value ? (u(), j(
|
|
1169
|
+
n.value ? (u(), j(se, {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
name: n.value,
|
|
1172
1172
|
class: "ao-button__icon",
|
|
1173
1173
|
size: t.value
|
|
1174
|
-
}, null, 8, ["name", "size"])) :
|
|
1174
|
+
}, null, 8, ["name", "size"])) : M("", !0)
|
|
1175
1175
|
], 10, Lr));
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
1178
1178
|
function ot(s) {
|
|
1179
|
-
const e = Q(!1), t = Q(""), n =
|
|
1179
|
+
const e = Q(!1), t = Q(""), n = f(() => "value" in s.value ? "value" : "innerHTML"), a = () => {
|
|
1180
1180
|
e.value = !e.value;
|
|
1181
1181
|
}, i = (c) => {
|
|
1182
1182
|
e.value = c;
|
|
@@ -1214,21 +1214,21 @@ const ce = /* @__PURE__ */ K({
|
|
|
1214
1214
|
},
|
|
1215
1215
|
emits: ["update:title", "toggle-is-editing"],
|
|
1216
1216
|
setup(s, { emit: e }) {
|
|
1217
|
-
const t = s, n = Q(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: r } = ot(n), c =
|
|
1217
|
+
const t = s, n = Q(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: r } = ot(n), c = f(() => a.value ? "input" : t.tag || `h${t.level}`), d = f(() => t.isEditable ? a.value ? {
|
|
1218
1218
|
change: p,
|
|
1219
1219
|
click: (L) => L.stopPropagation(),
|
|
1220
1220
|
blur: m
|
|
1221
1221
|
} : {
|
|
1222
|
-
click:
|
|
1223
|
-
focus:
|
|
1222
|
+
click: I,
|
|
1223
|
+
focus: I
|
|
1224
1224
|
} : {}), p = l((L, Z) => {
|
|
1225
|
-
const
|
|
1226
|
-
e("update:title",
|
|
1225
|
+
const b = Z.target.value;
|
|
1226
|
+
e("update:title", b);
|
|
1227
1227
|
}), _ = r(), m = async () => {
|
|
1228
1228
|
a.value && i(!1);
|
|
1229
|
-
},
|
|
1229
|
+
}, w = () => {
|
|
1230
1230
|
e("toggle-is-editing", !1);
|
|
1231
|
-
},
|
|
1231
|
+
}, I = (L) => {
|
|
1232
1232
|
L.stopPropagation(), a.value || i(!0);
|
|
1233
1233
|
};
|
|
1234
1234
|
return de(
|
|
@@ -1252,7 +1252,7 @@ const ce = /* @__PURE__ */ K({
|
|
|
1252
1252
|
type: E(a) ? "text" : null,
|
|
1253
1253
|
value: E(a) ? L.title : null,
|
|
1254
1254
|
tabindex: "0",
|
|
1255
|
-
onKeyup: a1(
|
|
1255
|
+
onKeyup: a1(w, ["enter"])
|
|
1256
1256
|
}, qt(d.value), {
|
|
1257
1257
|
onKeydown: a1(E(_), ["esc"])
|
|
1258
1258
|
}), {
|
|
@@ -1305,21 +1305,21 @@ const Er = {
|
|
|
1305
1305
|
}, {
|
|
1306
1306
|
default: R(() => [
|
|
1307
1307
|
n.isDraggable ? (u(), C("div", Er, [
|
|
1308
|
-
|
|
1308
|
+
y(se, {
|
|
1309
1309
|
name: "DragIndicator",
|
|
1310
1310
|
class: "ao-card-horiz__drag-handle"
|
|
1311
1311
|
})
|
|
1312
|
-
])) :
|
|
1312
|
+
])) : M("", !0),
|
|
1313
1313
|
o("div", Hr, [
|
|
1314
1314
|
n.icon ? (u(), C("div", Or, [
|
|
1315
|
-
|
|
1315
|
+
y(se, {
|
|
1316
1316
|
class: "ao-card-horiz__icon",
|
|
1317
1317
|
name: n.icon,
|
|
1318
1318
|
size: "xl"
|
|
1319
1319
|
}, null, 8, ["name"])
|
|
1320
|
-
])) :
|
|
1320
|
+
])) : M("", !0),
|
|
1321
1321
|
o("div", Br, [
|
|
1322
|
-
|
|
1322
|
+
y(ce, {
|
|
1323
1323
|
class: "ao-card-horiz__title",
|
|
1324
1324
|
level: 4,
|
|
1325
1325
|
title: n.title || "",
|
|
@@ -1327,22 +1327,22 @@ const Er = {
|
|
|
1327
1327
|
"onUpdate:title": t
|
|
1328
1328
|
}, null, 8, ["title"]),
|
|
1329
1329
|
Y(n.$slots, "subtitle", {}, () => [
|
|
1330
|
-
n.subtitle ? (u(), C("span", Dr, N(n.subtitle), 1)) :
|
|
1330
|
+
n.subtitle ? (u(), C("span", Dr, N(n.subtitle), 1)) : M("", !0)
|
|
1331
1331
|
])
|
|
1332
1332
|
]),
|
|
1333
1333
|
n.$slots.header ? (u(), C("div", Zr, [
|
|
1334
1334
|
Y(n.$slots, "header")
|
|
1335
|
-
])) :
|
|
1335
|
+
])) : M("", !0)
|
|
1336
1336
|
]),
|
|
1337
1337
|
n.$slots.default ? (u(), C("div", Pr, [
|
|
1338
1338
|
Y(n.$slots, "default")
|
|
1339
|
-
])) :
|
|
1339
|
+
])) : M("", !0),
|
|
1340
1340
|
n.$slots.footer ? (u(), C("div", jr, [
|
|
1341
1341
|
Y(n.$slots, "footer")
|
|
1342
|
-
])) :
|
|
1342
|
+
])) : M("", !0),
|
|
1343
1343
|
n.$slots.secondary ? (u(), C("div", Nr, [
|
|
1344
1344
|
Y(n.$slots, "secondary")
|
|
1345
|
-
])) :
|
|
1345
|
+
])) : M("", !0)
|
|
1346
1346
|
]),
|
|
1347
1347
|
_: 3
|
|
1348
1348
|
}, 8, ["class"]));
|
|
@@ -1359,7 +1359,7 @@ const f1 = /* @__PURE__ */ K({
|
|
|
1359
1359
|
},
|
|
1360
1360
|
emits: ["click", "close"],
|
|
1361
1361
|
setup(s) {
|
|
1362
|
-
const e = s, t =
|
|
1362
|
+
const e = s, t = f(() => e.clickable ? "button" : "span"), n = f(
|
|
1363
1363
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1364
1364
|
);
|
|
1365
1365
|
return (a, i) => (u(), C("div", {
|
|
@@ -1384,12 +1384,12 @@ const f1 = /* @__PURE__ */ K({
|
|
|
1384
1384
|
class: "ao-tag__close",
|
|
1385
1385
|
onClick: i[1] || (i[1] = (l) => a.$emit("close", l))
|
|
1386
1386
|
}, [
|
|
1387
|
-
|
|
1387
|
+
y(se, {
|
|
1388
1388
|
name: "CloseRounded",
|
|
1389
1389
|
size: "sm",
|
|
1390
1390
|
class: "ao-tag__close-icon"
|
|
1391
1391
|
})
|
|
1392
|
-
])) :
|
|
1392
|
+
])) : M("", !0)
|
|
1393
1393
|
], 2));
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
@@ -1974,18 +1974,18 @@ function pt() {
|
|
|
1974
1974
|
c = p;
|
|
1975
1975
|
}
|
|
1976
1976
|
let _;
|
|
1977
|
-
for (let
|
|
1978
|
-
const L =
|
|
1977
|
+
for (let I = c.getScale(); I > 0; d = _) {
|
|
1978
|
+
const L = I - 1, Z = c.setScale(L, !0);
|
|
1979
1979
|
if (_ = d.setScale(L, !1), Z.compareTo(_) === 0)
|
|
1980
1980
|
return a.checkMid(l, r, Z);
|
|
1981
1981
|
if (Z.compareTo(_) > 0)
|
|
1982
1982
|
break;
|
|
1983
|
-
|
|
1983
|
+
I = L, c = Z;
|
|
1984
1984
|
}
|
|
1985
|
-
let m = a.middleInternal(l, r, c, d),
|
|
1986
|
-
for (let
|
|
1987
|
-
|
|
1988
|
-
const L = m.setScale(
|
|
1985
|
+
let m = a.middleInternal(l, r, c, d), w;
|
|
1986
|
+
for (let I = m.getScale(); I > 0; I = w) {
|
|
1987
|
+
w = I - 1;
|
|
1988
|
+
const L = m.setScale(w);
|
|
1989
1989
|
if (l.compareTo(L) >= 0 || L.compareTo(r) >= 0)
|
|
1990
1990
|
break;
|
|
1991
1991
|
m = L;
|
|
@@ -2182,7 +2182,7 @@ const Jr = ["title"], Qr = { className: "ao-avatar__initials" }, Ye = /* @__PURE
|
|
|
2182
2182
|
color: "primary",
|
|
2183
2183
|
corners: "round",
|
|
2184
2184
|
onClick: we(a, ["stop"])
|
|
2185
|
-
}, null, 8, ["onClick"])) :
|
|
2185
|
+
}, null, 8, ["onClick"])) : M("", !0)
|
|
2186
2186
|
], 10, Jr));
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
@@ -2218,14 +2218,14 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2218
2218
|
subtitle: R(() => [
|
|
2219
2219
|
o("ul", xr, [
|
|
2220
2220
|
o("li", e3, [
|
|
2221
|
-
|
|
2221
|
+
y(se, {
|
|
2222
2222
|
name: "MountainFlagOutlineRounded",
|
|
2223
2223
|
size: "sm"
|
|
2224
2224
|
}),
|
|
2225
2225
|
o("span", t3, N(n.milestones), 1)
|
|
2226
2226
|
]),
|
|
2227
2227
|
o("li", s3, [
|
|
2228
|
-
|
|
2228
|
+
y(se, {
|
|
2229
2229
|
name: "TaskOutlineRounded",
|
|
2230
2230
|
size: "sm"
|
|
2231
2231
|
}),
|
|
@@ -2237,20 +2237,20 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2237
2237
|
o("div", l3, [
|
|
2238
2238
|
o("div", n3, [
|
|
2239
2239
|
o("div", i3, [
|
|
2240
|
-
|
|
2240
|
+
y(se, {
|
|
2241
2241
|
name: "WaterfallChartRounded",
|
|
2242
2242
|
size: "sm"
|
|
2243
2243
|
}),
|
|
2244
2244
|
o("span", o3, N(n.$t("template.phases.title")), 1)
|
|
2245
2245
|
]),
|
|
2246
2246
|
n.phases ? (u(), C("ul", r3, [
|
|
2247
|
-
(u(!0), C(
|
|
2247
|
+
(u(!0), C(ae, null, pe(n.phases, (i) => (u(), j(f1, {
|
|
2248
2248
|
key: i.id,
|
|
2249
2249
|
label: i.name || i.id,
|
|
2250
2250
|
color: "primary",
|
|
2251
2251
|
variant: "solid"
|
|
2252
2252
|
}, null, 8, ["label"]))), 128))
|
|
2253
|
-
])) :
|
|
2253
|
+
])) : M("", !0)
|
|
2254
2254
|
])
|
|
2255
2255
|
])
|
|
2256
2256
|
]),
|
|
@@ -2263,15 +2263,15 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2263
2263
|
o("div", v3, [
|
|
2264
2264
|
o("span", null, N(n.updatedAt), 1)
|
|
2265
2265
|
])
|
|
2266
|
-
])) :
|
|
2266
|
+
])) : M("", !0),
|
|
2267
2267
|
n.updatedBy ? (u(), C("div", C3, [
|
|
2268
2268
|
o("div", _3, [
|
|
2269
2269
|
o("span", m3, N(n.$t("template.updatedBy.label")), 1)
|
|
2270
2270
|
]),
|
|
2271
2271
|
o("div", h3, [
|
|
2272
|
-
|
|
2272
|
+
y(Ye, { "user-name": n.updatedBy }, null, 8, ["user-name"])
|
|
2273
2273
|
])
|
|
2274
|
-
])) :
|
|
2274
|
+
])) : M("", !0)
|
|
2275
2275
|
])
|
|
2276
2276
|
]),
|
|
2277
2277
|
_: 1
|
|
@@ -2292,7 +2292,7 @@ const g3 = { class: "ao-page-header" }, y3 = { class: "ao-page-header-main" }, b
|
|
|
2292
2292
|
"icon-name": "ArrowBackRounded",
|
|
2293
2293
|
variant: "ghost",
|
|
2294
2294
|
onClick: t[0] || (t[0] = (n) => e.$emit("goBack"))
|
|
2295
|
-
})) :
|
|
2295
|
+
})) : M("", !0),
|
|
2296
2296
|
Y(e.$slots, "primary")
|
|
2297
2297
|
]),
|
|
2298
2298
|
o("div", b3, [
|
|
@@ -2317,7 +2317,7 @@ const $3 = ["type"], w3 = {
|
|
|
2317
2317
|
corners: { default: () => it.ROUNDED }
|
|
2318
2318
|
},
|
|
2319
2319
|
setup(s) {
|
|
2320
|
-
const e = s, t =
|
|
2320
|
+
const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
|
|
2321
2321
|
return (a, i) => (u(), C("button", {
|
|
2322
2322
|
type: a.type,
|
|
2323
2323
|
class: F([
|
|
@@ -2328,14 +2328,14 @@ const $3 = ["type"], w3 = {
|
|
|
2328
2328
|
])
|
|
2329
2329
|
}, [
|
|
2330
2330
|
Y(a.$slots, "default", {}, () => [
|
|
2331
|
-
a.label ? (u(), C("span", w3, N(a.label), 1)) :
|
|
2331
|
+
a.label ? (u(), C("span", w3, N(a.label), 1)) : M("", !0)
|
|
2332
2332
|
]),
|
|
2333
|
-
n.value ? (u(), j(
|
|
2333
|
+
n.value ? (u(), j(se, {
|
|
2334
2334
|
key: 0,
|
|
2335
2335
|
name: n.value,
|
|
2336
2336
|
class: "ao-button-card__icon",
|
|
2337
2337
|
size: t.value
|
|
2338
|
-
}, null, 8, ["name", "size"])) :
|
|
2338
|
+
}, null, 8, ["name", "size"])) : M("", !0)
|
|
2339
2339
|
], 10, $3));
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
@@ -2365,20 +2365,20 @@ const M3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
|
2365
2365
|
return (l, r) => (u(), j(rt, { "onUpdate:title": t }, {
|
|
2366
2366
|
footer: R(() => [
|
|
2367
2367
|
o("ul", M3, [
|
|
2368
|
-
(u(), C(
|
|
2368
|
+
(u(), C(ae, null, pe(n, (c) => (u(), C(ae, { key: c }, [
|
|
2369
2369
|
l.$props[c] ? (u(), C("li", A3, [
|
|
2370
|
-
|
|
2370
|
+
y(se, {
|
|
2371
2371
|
name: a[c],
|
|
2372
2372
|
size: "sm"
|
|
2373
2373
|
}, null, 8, ["name"]),
|
|
2374
2374
|
o("span", k3, N(l.$props[c]), 1)
|
|
2375
|
-
])) :
|
|
2375
|
+
])) : M("", !0)
|
|
2376
2376
|
], 64))), 64))
|
|
2377
2377
|
])
|
|
2378
2378
|
]),
|
|
2379
2379
|
secondary: R(() => [
|
|
2380
2380
|
o("div", I3, [
|
|
2381
|
-
|
|
2381
|
+
y(ue, {
|
|
2382
2382
|
"icon-name": "DeleteOutlineRounded",
|
|
2383
2383
|
variant: "ghost",
|
|
2384
2384
|
size: "md",
|
|
@@ -2399,10 +2399,10 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2399
2399
|
milestones: {}
|
|
2400
2400
|
},
|
|
2401
2401
|
setup(s) {
|
|
2402
|
-
const e = s, t =
|
|
2402
|
+
const e = s, t = f(() => {
|
|
2403
2403
|
var a;
|
|
2404
2404
|
return (a = e.milestones) == null ? void 0 : a.length;
|
|
2405
|
-
}), n =
|
|
2405
|
+
}), n = f(() => e.milestones ? vt(e.milestones) : 0);
|
|
2406
2406
|
return (a, i) => (u(), j(N1, Ee({
|
|
2407
2407
|
title: a.name,
|
|
2408
2408
|
activities: n.value,
|
|
@@ -2420,7 +2420,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2420
2420
|
activities: {}
|
|
2421
2421
|
},
|
|
2422
2422
|
setup(s) {
|
|
2423
|
-
const e = s, t =
|
|
2423
|
+
const e = s, t = f(() => {
|
|
2424
2424
|
var n;
|
|
2425
2425
|
return ((n = e.activities) == null ? void 0 : n.length) || 0;
|
|
2426
2426
|
});
|
|
@@ -2465,7 +2465,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2465
2465
|
onChange: l
|
|
2466
2466
|
}, {
|
|
2467
2467
|
header: R(() => [
|
|
2468
|
-
|
|
2468
|
+
y(ce, {
|
|
2469
2469
|
title: "Milestones",
|
|
2470
2470
|
level: 3,
|
|
2471
2471
|
class: "ao-list__title"
|
|
@@ -2489,7 +2489,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2489
2489
|
]),
|
|
2490
2490
|
footer: R(() => [
|
|
2491
2491
|
o("div", L3, [
|
|
2492
|
-
|
|
2492
|
+
y(Be, {
|
|
2493
2493
|
"icon-name": "AddBoxOutlineRounded",
|
|
2494
2494
|
label: r.$t("template.milestones.add"),
|
|
2495
2495
|
onClick: n
|
|
@@ -2497,7 +2497,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2497
2497
|
])
|
|
2498
2498
|
]),
|
|
2499
2499
|
_: 1
|
|
2500
|
-
}, 8, ["model-value", "title"])) :
|
|
2500
|
+
}, 8, ["model-value", "title"])) : M("", !0);
|
|
2501
2501
|
}
|
|
2502
2502
|
}), E3 = /* @__PURE__ */ K({
|
|
2503
2503
|
__name: "AoCardTemplateItemActivity",
|
|
@@ -2506,7 +2506,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2506
2506
|
subtasks: {}
|
|
2507
2507
|
},
|
|
2508
2508
|
setup(s) {
|
|
2509
|
-
const e = s, t =
|
|
2509
|
+
const e = s, t = f(() => {
|
|
2510
2510
|
var n;
|
|
2511
2511
|
return ((n = e.subtasks) == null ? void 0 : n.length) || 0;
|
|
2512
2512
|
});
|
|
@@ -2554,7 +2554,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2554
2554
|
onChange: l
|
|
2555
2555
|
}, {
|
|
2556
2556
|
header: R(() => [
|
|
2557
|
-
|
|
2557
|
+
y(ce, {
|
|
2558
2558
|
title: "Activities",
|
|
2559
2559
|
level: 3,
|
|
2560
2560
|
class: "ao-list__title"
|
|
@@ -2574,7 +2574,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2574
2574
|
]),
|
|
2575
2575
|
footer: R(() => [
|
|
2576
2576
|
o("div", H3, [
|
|
2577
|
-
|
|
2577
|
+
y(Be, {
|
|
2578
2578
|
"icon-name": "AddBoxOutlineRounded",
|
|
2579
2579
|
label: r.$t("template.activities.add"),
|
|
2580
2580
|
onClick: n
|
|
@@ -2582,7 +2582,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2582
2582
|
])
|
|
2583
2583
|
]),
|
|
2584
2584
|
_: 1
|
|
2585
|
-
}, 8, ["model-value", "title"])) :
|
|
2585
|
+
}, 8, ["model-value", "title"])) : M("", !0);
|
|
2586
2586
|
}
|
|
2587
2587
|
});
|
|
2588
2588
|
function ke(s) {
|
|
@@ -2591,15 +2591,15 @@ function ke(s) {
|
|
|
2591
2591
|
function B3(s, e, t) {
|
|
2592
2592
|
const { object: n, valueProp: a, mode: i } = fe(s), l = Oe().proxy, r = t.iv, c = (_, m = !0) => {
|
|
2593
2593
|
r.value = p(_);
|
|
2594
|
-
const
|
|
2595
|
-
e.emit("change",
|
|
2594
|
+
const w = d(_);
|
|
2595
|
+
e.emit("change", w, l), m && (e.emit("input", w), e.emit("update:modelValue", w));
|
|
2596
2596
|
}, d = (_) => n.value || ke(_) ? _ : Array.isArray(_) ? _.map((m) => m[a.value]) : _[a.value], p = (_) => ke(_) ? i.value === "single" ? {} : [] : _;
|
|
2597
2597
|
return {
|
|
2598
2598
|
update: c
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
2601
|
function D3(s, e) {
|
|
2602
|
-
const { value: t, modelValue: n, mode: a, valueProp: i } = fe(s), l = Q(a.value !== "single" ? [] : {}), r = n && n.value !== void 0 ? n : t, c =
|
|
2602
|
+
const { value: t, modelValue: n, mode: a, valueProp: i } = fe(s), l = Q(a.value !== "single" ? [] : {}), r = n && n.value !== void 0 ? n : t, c = f(() => a.value === "single" ? l.value[i.value] : l.value.map((p) => p[i.value])), d = f(() => a.value !== "single" ? l.value.map((p) => p[i.value]).join(",") : l.value[i.value]);
|
|
2603
2603
|
return {
|
|
2604
2604
|
iv: l,
|
|
2605
2605
|
internalValue: l,
|
|
@@ -2612,23 +2612,23 @@ function D3(s, e) {
|
|
|
2612
2612
|
function Z3(s, e, t) {
|
|
2613
2613
|
const { regex: n } = fe(s), a = Oe().proxy, i = t.isOpen, l = t.open, r = Q(null), c = Q(null), d = () => {
|
|
2614
2614
|
r.value = "";
|
|
2615
|
-
}, p = (
|
|
2616
|
-
r.value =
|
|
2617
|
-
}, _ = (
|
|
2615
|
+
}, p = (w) => {
|
|
2616
|
+
r.value = w.target.value;
|
|
2617
|
+
}, _ = (w) => {
|
|
2618
2618
|
if (n && n.value) {
|
|
2619
|
-
let
|
|
2620
|
-
typeof
|
|
2619
|
+
let I = n.value;
|
|
2620
|
+
typeof I == "string" && (I = new RegExp(I)), w.key.match(I) || w.preventDefault();
|
|
2621
2621
|
}
|
|
2622
|
-
}, m = (
|
|
2622
|
+
}, m = (w) => {
|
|
2623
2623
|
if (n && n.value) {
|
|
2624
|
-
let L = (
|
|
2624
|
+
let L = (w.clipboardData || /* istanbul ignore next */
|
|
2625
2625
|
window.clipboardData).getData("Text"), Z = n.value;
|
|
2626
|
-
typeof Z == "string" && (Z = new RegExp(Z)), L.split("").every((
|
|
2626
|
+
typeof Z == "string" && (Z = new RegExp(Z)), L.split("").every(($) => !!$.match(Z)) || w.preventDefault();
|
|
2627
2627
|
}
|
|
2628
|
-
e.emit("paste",
|
|
2628
|
+
e.emit("paste", w, a);
|
|
2629
2629
|
};
|
|
2630
|
-
return de(r, (
|
|
2631
|
-
!i.value &&
|
|
2630
|
+
return de(r, (w) => {
|
|
2631
|
+
!i.value && w && l(), e.emit("search-change", w, a);
|
|
2632
2632
|
}), {
|
|
2633
2633
|
search: r,
|
|
2634
2634
|
input: c,
|
|
@@ -2674,16 +2674,16 @@ function R3(s, e, t) {
|
|
|
2674
2674
|
label: p,
|
|
2675
2675
|
appendNewTag: _,
|
|
2676
2676
|
appendNewOption: m,
|
|
2677
|
-
multipleLabel:
|
|
2678
|
-
object:
|
|
2677
|
+
multipleLabel: w,
|
|
2678
|
+
object: I,
|
|
2679
2679
|
loading: L,
|
|
2680
2680
|
delay: Z,
|
|
2681
|
-
resolveOnLoad:
|
|
2682
|
-
minChars:
|
|
2683
|
-
filterResults:
|
|
2681
|
+
resolveOnLoad: $,
|
|
2682
|
+
minChars: b,
|
|
2683
|
+
filterResults: B,
|
|
2684
2684
|
clearOnSearch: x,
|
|
2685
|
-
clearOnSelect:
|
|
2686
|
-
valueProp:
|
|
2685
|
+
clearOnSelect: le,
|
|
2686
|
+
valueProp: h,
|
|
2687
2687
|
allowAbsent: H,
|
|
2688
2688
|
groupLabel: U,
|
|
2689
2689
|
canDeselect: te,
|
|
@@ -2691,82 +2691,82 @@ function R3(s, e, t) {
|
|
|
2691
2691
|
strict: Ce,
|
|
2692
2692
|
closeOnSelect: D,
|
|
2693
2693
|
closeOnDeselect: X,
|
|
2694
|
-
groups:
|
|
2694
|
+
groups: A,
|
|
2695
2695
|
reverse: W,
|
|
2696
2696
|
infinite: _e,
|
|
2697
|
-
groupOptions:
|
|
2698
|
-
groupHideEmpty:
|
|
2697
|
+
groupOptions: g,
|
|
2698
|
+
groupHideEmpty: O,
|
|
2699
2699
|
groupSelect: T,
|
|
2700
2700
|
onCreate: G,
|
|
2701
2701
|
disabledProp: ee,
|
|
2702
2702
|
searchStart: me,
|
|
2703
2703
|
searchFilter: $e
|
|
2704
|
-
} = fe(s), ne = Oe().proxy, q = t.iv,
|
|
2705
|
-
if (
|
|
2704
|
+
} = fe(s), ne = Oe().proxy, q = t.iv, k = t.ev, P = t.search, he = t.clearSearch, Ie = t.update, ft = t.pointer, Ze = t.clearPointer, gt = t.focus, yt = t.deactivate, Pe = t.close, bt = t.localize, We = Q([]), Le = Q([]), Me = Q(!1), A1 = Q(null), k1 = Q(_e.value && l.value === -1 ? 10 : l.value), z1 = f(() => c.value || d.value || !1), $t = f(() => _.value !== void 0 ? _.value : m.value !== void 0 ? m.value : !0), Te = f(() => {
|
|
2705
|
+
if (A.value) {
|
|
2706
2706
|
let v = r1.value || /* istanbul ignore next */
|
|
2707
|
-
[],
|
|
2707
|
+
[], S = [];
|
|
2708
2708
|
return v.forEach((J) => {
|
|
2709
|
-
E1(J[
|
|
2710
|
-
|
|
2709
|
+
E1(J[g.value]).forEach((oe) => {
|
|
2710
|
+
S.push(Object.assign({}, oe, J[ee.value] ? { [ee.value]: !0 } : {}));
|
|
2711
2711
|
});
|
|
2712
|
-
}),
|
|
2712
|
+
}), S;
|
|
2713
2713
|
} else {
|
|
2714
2714
|
let v = E1(Le.value || /* istanbul ignore next */
|
|
2715
2715
|
[]);
|
|
2716
2716
|
return We.value.length && (v = v.concat(We.value)), v;
|
|
2717
2717
|
}
|
|
2718
|
-
}), F1 =
|
|
2718
|
+
}), F1 = f(() => {
|
|
2719
2719
|
let v = Te.value;
|
|
2720
2720
|
return W.value && (v = v.reverse()), je.value.length && (v = je.value.concat(v)), T1(v);
|
|
2721
|
-
}), Xe =
|
|
2721
|
+
}), Xe = f(() => {
|
|
2722
2722
|
let v = F1.value;
|
|
2723
2723
|
return k1.value > 0 && (v = v.slice(0, k1.value)), v;
|
|
2724
|
-
}), r1 =
|
|
2725
|
-
if (!
|
|
2724
|
+
}), r1 = f(() => {
|
|
2725
|
+
if (!A.value)
|
|
2726
2726
|
return [];
|
|
2727
|
-
let v = [],
|
|
2727
|
+
let v = [], S = Le.value || /* istanbul ignore next */
|
|
2728
2728
|
[];
|
|
2729
2729
|
return We.value.length && v.push({
|
|
2730
2730
|
[U.value]: " ",
|
|
2731
|
-
[
|
|
2731
|
+
[g.value]: [...We.value],
|
|
2732
2732
|
__CREATE__: !0
|
|
2733
|
-
}), v.concat(
|
|
2734
|
-
}), wt =
|
|
2735
|
-
let v = [...r1.value].map((
|
|
2736
|
-
return je.value.length && (v[0] && v[0].__CREATE__ ? v[0][
|
|
2733
|
+
}), v.concat(S);
|
|
2734
|
+
}), wt = f(() => {
|
|
2735
|
+
let v = [...r1.value].map((S) => ({ ...S }));
|
|
2736
|
+
return je.value.length && (v[0] && v[0].__CREATE__ ? v[0][g.value] = [...je.value, ...v[0][g.value]] : v = [{
|
|
2737
2737
|
[U.value]: " ",
|
|
2738
|
-
[
|
|
2738
|
+
[g.value]: [...je.value],
|
|
2739
2739
|
__CREATE__: !0
|
|
2740
2740
|
}].concat(v)), v;
|
|
2741
|
-
}), K1 =
|
|
2742
|
-
if (!
|
|
2741
|
+
}), K1 = f(() => {
|
|
2742
|
+
if (!A.value)
|
|
2743
2743
|
return [];
|
|
2744
2744
|
let v = wt.value;
|
|
2745
2745
|
return Pt((v || /* istanbul ignore next */
|
|
2746
|
-
[]).map((
|
|
2747
|
-
const oe = E1(
|
|
2746
|
+
[]).map((S, J) => {
|
|
2747
|
+
const oe = E1(S[g.value]);
|
|
2748
2748
|
return {
|
|
2749
|
-
...
|
|
2749
|
+
...S,
|
|
2750
2750
|
index: J,
|
|
2751
2751
|
group: !0,
|
|
2752
|
-
[
|
|
2753
|
-
__VISIBLE__: T1(oe).map((Je) => Object.assign({}, Je,
|
|
2752
|
+
[g.value]: T1(oe, !1).map((Je) => Object.assign({}, Je, S[ee.value] ? { [ee.value]: !0 } : {})),
|
|
2753
|
+
__VISIBLE__: T1(oe).map((Je) => Object.assign({}, Je, S[ee.value] ? { [ee.value]: !0 } : {}))
|
|
2754
2754
|
};
|
|
2755
2755
|
}));
|
|
2756
|
-
}), I1 =
|
|
2756
|
+
}), I1 = f(() => {
|
|
2757
2757
|
switch (a.value) {
|
|
2758
2758
|
case "single":
|
|
2759
|
-
return !ke(q.value[
|
|
2759
|
+
return !ke(q.value[h.value]);
|
|
2760
2760
|
case "multiple":
|
|
2761
2761
|
case "tags":
|
|
2762
2762
|
return !ke(q.value) && q.value.length > 0;
|
|
2763
2763
|
}
|
|
2764
|
-
}), Mt =
|
|
2765
|
-
[
|
|
2764
|
+
}), Mt = f(() => w !== void 0 && w.value !== void 0 ? w.value(q.value, ne) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), At = f(() => !Te.value.length && !Me.value && !je.value.length), kt = f(() => Te.value.length > 0 && Xe.value.length == 0 && (P.value && A.value || !A.value)), je = f(() => z1.value === !1 || !P.value ? [] : Bt(P.value) !== -1 ? [] : [{
|
|
2765
|
+
[h.value]: P.value,
|
|
2766
2766
|
[Ae.value]: P.value,
|
|
2767
2767
|
[p.value]: P.value,
|
|
2768
2768
|
__CREATE__: !0
|
|
2769
|
-
}]), Ae =
|
|
2769
|
+
}]), Ae = f(() => i.value || p.value), It = f(() => {
|
|
2770
2770
|
switch (a.value) {
|
|
2771
2771
|
case "single":
|
|
2772
2772
|
return null;
|
|
@@ -2774,7 +2774,7 @@ function R3(s, e, t) {
|
|
|
2774
2774
|
case "tags":
|
|
2775
2775
|
return [];
|
|
2776
2776
|
}
|
|
2777
|
-
}), St =
|
|
2777
|
+
}), St = f(() => L.value || Me.value), Ne = (v) => {
|
|
2778
2778
|
switch (typeof v != "object" && (v = Ve(v)), a.value) {
|
|
2779
2779
|
case "single":
|
|
2780
2780
|
Ie(v);
|
|
@@ -2792,15 +2792,15 @@ function R3(s, e, t) {
|
|
|
2792
2792
|
break;
|
|
2793
2793
|
case "tags":
|
|
2794
2794
|
case "multiple":
|
|
2795
|
-
Ie(Array.isArray(v) ? q.value.filter((
|
|
2795
|
+
Ie(Array.isArray(v) ? q.value.filter((S) => v.map((J) => J[h.value]).indexOf(S[h.value]) === -1) : q.value.filter((S) => S[h.value] != v[h.value]));
|
|
2796
2796
|
break;
|
|
2797
2797
|
}
|
|
2798
2798
|
e.emit("deselect", G1(v), v, ne);
|
|
2799
|
-
}, G1 = (v) =>
|
|
2799
|
+
}, G1 = (v) => I.value ? v : v[h.value], Y1 = (v) => {
|
|
2800
2800
|
Re(v);
|
|
2801
|
-
}, Vt = (v,
|
|
2802
|
-
if (
|
|
2803
|
-
|
|
2801
|
+
}, Vt = (v, S) => {
|
|
2802
|
+
if (S.button !== 0) {
|
|
2803
|
+
S.preventDefault();
|
|
2804
2804
|
return;
|
|
2805
2805
|
}
|
|
2806
2806
|
Y1(v);
|
|
@@ -2808,19 +2808,19 @@ function R3(s, e, t) {
|
|
|
2808
2808
|
e.emit("clear", ne), Ie(It.value);
|
|
2809
2809
|
}, Se = (v) => {
|
|
2810
2810
|
if (v.group !== void 0)
|
|
2811
|
-
return a.value === "single" ? !1 : Ot(v[
|
|
2811
|
+
return a.value === "single" ? !1 : Ot(v[g.value]) && v[g.value].length;
|
|
2812
2812
|
switch (a.value) {
|
|
2813
2813
|
case "single":
|
|
2814
|
-
return !ke(q.value) && q.value[
|
|
2814
|
+
return !ke(q.value) && q.value[h.value] == v[h.value];
|
|
2815
2815
|
case "tags":
|
|
2816
2816
|
case "multiple":
|
|
2817
|
-
return !ke(q.value) && q.value.map((
|
|
2817
|
+
return !ke(q.value) && q.value.map((S) => S[h.value]).indexOf(v[h.value]) !== -1;
|
|
2818
2818
|
}
|
|
2819
2819
|
}, S1 = (v) => v[ee.value] === !0, V1 = () => re === void 0 || re.value === -1 || !I1.value && re.value > 0 ? !1 : q.value.length >= re.value, Lt = (v) => {
|
|
2820
2820
|
if (!S1(v)) {
|
|
2821
2821
|
if (G && G.value && !Se(v) && v.__CREATE__ && (v = { ...v }, delete v.__CREATE__, v = G.value(v, ne), v instanceof Promise)) {
|
|
2822
|
-
Me.value = !0, v.then((
|
|
2823
|
-
Me.value = !1, X1(
|
|
2822
|
+
Me.value = !0, v.then((S) => {
|
|
2823
|
+
Me.value = !1, X1(S);
|
|
2824
2824
|
});
|
|
2825
2825
|
return;
|
|
2826
2826
|
}
|
|
@@ -2833,7 +2833,7 @@ function R3(s, e, t) {
|
|
|
2833
2833
|
te.value && Re(v), X.value && (Ze(), Pe());
|
|
2834
2834
|
return;
|
|
2835
2835
|
}
|
|
2836
|
-
v && L1(v),
|
|
2836
|
+
v && L1(v), le.value && he(), D.value && (Ze(), Pe()), v && Ne(v);
|
|
2837
2837
|
break;
|
|
2838
2838
|
case "multiple":
|
|
2839
2839
|
if (v && Se(v)) {
|
|
@@ -2844,7 +2844,7 @@ function R3(s, e, t) {
|
|
|
2844
2844
|
e.emit("max", ne);
|
|
2845
2845
|
return;
|
|
2846
2846
|
}
|
|
2847
|
-
v && (L1(v), Ne(v)),
|
|
2847
|
+
v && (L1(v), Ne(v)), le.value && he(), r.value && Ze(), D.value && Pe();
|
|
2848
2848
|
break;
|
|
2849
2849
|
case "tags":
|
|
2850
2850
|
if (v && Se(v)) {
|
|
@@ -2855,7 +2855,7 @@ function R3(s, e, t) {
|
|
|
2855
2855
|
e.emit("max", ne);
|
|
2856
2856
|
return;
|
|
2857
2857
|
}
|
|
2858
|
-
v && L1(v),
|
|
2858
|
+
v && L1(v), le.value && he(), v && Ne(v), r.value && Ze(), D.value && Pe();
|
|
2859
2859
|
break;
|
|
2860
2860
|
}
|
|
2861
2861
|
D.value || gt();
|
|
@@ -2864,109 +2864,109 @@ function R3(s, e, t) {
|
|
|
2864
2864
|
switch (a.value) {
|
|
2865
2865
|
case "multiple":
|
|
2866
2866
|
case "tags":
|
|
2867
|
-
Ht(v[
|
|
2868
|
-
v[
|
|
2867
|
+
Ht(v[g.value]) ? Re(v[g.value]) : Ne(
|
|
2868
|
+
v[g.value].filter((S) => q.value.map((J) => J[h.value]).indexOf(S[h.value]) === -1).filter((S) => !S[ee.value]).filter((S, J) => q.value.length + 1 + J <= re.value || re.value === -1)
|
|
2869
2869
|
);
|
|
2870
2870
|
break;
|
|
2871
2871
|
}
|
|
2872
2872
|
D.value && yt();
|
|
2873
2873
|
}
|
|
2874
2874
|
}, L1 = (v) => {
|
|
2875
|
-
Ve(v[
|
|
2875
|
+
Ve(v[h.value]) === void 0 && z1.value && (e.emit("tag", v[h.value], ne), e.emit("option", v[h.value], ne), e.emit("create", v[h.value], ne), $t.value && Zt(v), he());
|
|
2876
2876
|
}, Et = () => {
|
|
2877
2877
|
a.value !== "single" && Ne(Xe.value.filter((v) => !v.disabled && !Se(v)));
|
|
2878
|
-
}, Ht = (v) => v.find((
|
|
2878
|
+
}, Ht = (v) => v.find((S) => !Se(S) && !S[ee.value]) === void 0, Ot = (v) => v.find((S) => !Se(S)) === void 0, Ve = (v) => Te.value[Te.value.map((S) => String(S[h.value])).indexOf(String(v))], Bt = (v, S = !0) => Te.value.map((J) => parseInt(J[Ae.value]) == J[Ae.value] ? parseInt(J[Ae.value]) : J[Ae.value]).indexOf(
|
|
2879
2879
|
parseInt(v) == v ? parseInt(v) : v
|
|
2880
2880
|
), Dt = (v) => ["tags", "multiple"].indexOf(a.value) !== -1 && r.value && Se(v), Zt = (v) => {
|
|
2881
2881
|
We.value.push(v);
|
|
2882
|
-
}, Pt = (v) =>
|
|
2883
|
-
(
|
|
2884
|
-
) : v.filter((
|
|
2882
|
+
}, Pt = (v) => O.value ? v.filter(
|
|
2883
|
+
(S) => P.value ? S.__VISIBLE__.length : S[g.value].length
|
|
2884
|
+
) : v.filter((S) => P.value ? S.__VISIBLE__.length : !0), T1 = (v, S = !0) => {
|
|
2885
2885
|
let J = v;
|
|
2886
|
-
if (P.value &&
|
|
2886
|
+
if (P.value && B.value) {
|
|
2887
2887
|
let oe = $e.value;
|
|
2888
2888
|
oe || (oe = (Je, Zu) => {
|
|
2889
2889
|
let Q1 = O1(bt(Je[Ae.value]), Ce.value);
|
|
2890
2890
|
return me.value ? Q1.startsWith(O1(P.value, Ce.value)) : Q1.indexOf(O1(P.value, Ce.value)) !== -1;
|
|
2891
2891
|
}), J = J.filter(oe);
|
|
2892
2892
|
}
|
|
2893
|
-
return r.value &&
|
|
2893
|
+
return r.value && S && (J = J.filter((oe) => !Dt(oe))), J;
|
|
2894
2894
|
}, E1 = (v) => {
|
|
2895
|
-
let
|
|
2896
|
-
return j3(
|
|
2897
|
-
let oe =
|
|
2898
|
-
return { [
|
|
2899
|
-
})),
|
|
2895
|
+
let S = v;
|
|
2896
|
+
return j3(S) && (S = Object.keys(S).map((J) => {
|
|
2897
|
+
let oe = S[J];
|
|
2898
|
+
return { [h.value]: J, [Ae.value]: oe, [p.value]: oe };
|
|
2899
|
+
})), S = S.map((J) => typeof J == "object" ? J : { [h.value]: J, [Ae.value]: J, [p.value]: J }), S;
|
|
2900
2900
|
}, u1 = () => {
|
|
2901
|
-
ke(
|
|
2902
|
-
}, c1 = (v) => (Me.value = !0, new Promise((
|
|
2901
|
+
ke(k.value) || (q.value = d1(k.value));
|
|
2902
|
+
}, c1 = (v) => (Me.value = !0, new Promise((S, J) => {
|
|
2903
2903
|
n.value(P.value, ne).then((oe) => {
|
|
2904
2904
|
Le.value = oe || [], typeof v == "function" && v(oe), Me.value = !1;
|
|
2905
2905
|
}).catch((oe) => {
|
|
2906
2906
|
console.error(oe), Le.value = [], Me.value = !1;
|
|
2907
2907
|
}).finally(() => {
|
|
2908
|
-
|
|
2908
|
+
S();
|
|
2909
2909
|
});
|
|
2910
2910
|
})), H1 = () => {
|
|
2911
2911
|
if (I1.value)
|
|
2912
2912
|
if (a.value === "single") {
|
|
2913
|
-
let v = Ve(q.value[
|
|
2913
|
+
let v = Ve(q.value[h.value]);
|
|
2914
2914
|
if (v !== void 0) {
|
|
2915
|
-
let
|
|
2916
|
-
q.value[p.value] =
|
|
2915
|
+
let S = v[p.value];
|
|
2916
|
+
q.value[p.value] = S, I.value && (k.value[p.value] = S);
|
|
2917
2917
|
}
|
|
2918
2918
|
} else
|
|
2919
|
-
q.value.forEach((v,
|
|
2920
|
-
let J = Ve(q.value[
|
|
2919
|
+
q.value.forEach((v, S) => {
|
|
2920
|
+
let J = Ve(q.value[S][h.value]);
|
|
2921
2921
|
if (J !== void 0) {
|
|
2922
2922
|
let oe = J[p.value];
|
|
2923
|
-
q.value[
|
|
2923
|
+
q.value[S][p.value] = oe, I.value && (k.value[S][p.value] = oe);
|
|
2924
2924
|
}
|
|
2925
2925
|
});
|
|
2926
2926
|
}, jt = (v) => {
|
|
2927
2927
|
c1(v);
|
|
2928
|
-
}, d1 = (v) => ke(v) ? a.value === "single" ? {} : [] :
|
|
2928
|
+
}, d1 = (v) => ke(v) ? a.value === "single" ? {} : [] : I.value ? v : a.value === "single" ? Ve(v) || (H.value ? {
|
|
2929
2929
|
[p.value]: v,
|
|
2930
|
-
[
|
|
2930
|
+
[h.value]: v,
|
|
2931
2931
|
[Ae.value]: v
|
|
2932
|
-
} : {}) : v.filter((
|
|
2933
|
-
[p.value]:
|
|
2934
|
-
[
|
|
2935
|
-
[Ae.value]:
|
|
2932
|
+
} : {}) : v.filter((S) => !!Ve(S) || H.value).map((S) => Ve(S) || {
|
|
2933
|
+
[p.value]: S,
|
|
2934
|
+
[h.value]: S,
|
|
2935
|
+
[Ae.value]: S
|
|
2936
2936
|
}), J1 = () => {
|
|
2937
2937
|
A1.value = de(P, (v) => {
|
|
2938
|
-
v.length <
|
|
2939
|
-
v == P.value && n.value(P.value, ne).then((
|
|
2940
|
-
(v == P.value || !P.value) && (Le.value =
|
|
2938
|
+
v.length < b.value || !v && b.value !== 0 || (Me.value = !0, x.value && (Le.value = []), setTimeout(() => {
|
|
2939
|
+
v == P.value && n.value(P.value, ne).then((S) => {
|
|
2940
|
+
(v == P.value || !P.value) && (Le.value = S, ft.value = Xe.value.filter((J) => J[ee.value] !== !0)[0] || null, Me.value = !1);
|
|
2941
2941
|
}).catch(
|
|
2942
2942
|
/* istanbul ignore next */
|
|
2943
|
-
(
|
|
2944
|
-
console.error(
|
|
2943
|
+
(S) => {
|
|
2944
|
+
console.error(S);
|
|
2945
2945
|
}
|
|
2946
2946
|
);
|
|
2947
2947
|
}, Z.value));
|
|
2948
2948
|
}, { flush: "sync" });
|
|
2949
2949
|
};
|
|
2950
|
-
if (a.value !== "single" && !ke(
|
|
2950
|
+
if (a.value !== "single" && !ke(k.value) && !Array.isArray(k.value))
|
|
2951
2951
|
throw new Error(`v-model must be an array when using "${a.value}" mode`);
|
|
2952
|
-
return n && typeof n.value == "function" ?
|
|
2952
|
+
return n && typeof n.value == "function" ? $.value ? c1(u1) : I.value == !0 && u1() : (Le.value = n.value, u1()), Z.value > -1 && J1(), de(Z, (v, S) => {
|
|
2953
2953
|
A1.value && A1.value(), v >= 0 && J1();
|
|
2954
|
-
}), de(
|
|
2954
|
+
}), de(k, (v) => {
|
|
2955
2955
|
if (ke(v)) {
|
|
2956
2956
|
Ie(d1(v), !1);
|
|
2957
2957
|
return;
|
|
2958
2958
|
}
|
|
2959
2959
|
switch (a.value) {
|
|
2960
2960
|
case "single":
|
|
2961
|
-
(
|
|
2961
|
+
(I.value ? v[h.value] != q.value[h.value] : v != q.value[h.value]) && Ie(d1(v), !1);
|
|
2962
2962
|
break;
|
|
2963
2963
|
case "multiple":
|
|
2964
2964
|
case "tags":
|
|
2965
|
-
N3(
|
|
2965
|
+
N3(I.value ? v.map((S) => S[h.value]) : v, q.value.map((S) => S[h.value])) || Ie(d1(v), !1);
|
|
2966
2966
|
break;
|
|
2967
2967
|
}
|
|
2968
|
-
}, { deep: !0 }), de(n, (v,
|
|
2969
|
-
typeof s.options == "function" ?
|
|
2968
|
+
}, { deep: !0 }), de(n, (v, S) => {
|
|
2969
|
+
typeof s.options == "function" ? $.value && (!S || v && v.toString() !== S.toString()) && c1() : (Le.value = s.options, Object.keys(q.value).length || u1(), H1());
|
|
2970
2970
|
}), de(p, H1), {
|
|
2971
2971
|
pfo: F1,
|
|
2972
2972
|
fo: Xe,
|
|
@@ -3012,66 +3012,66 @@ function U3(s, e, t) {
|
|
|
3012
3012
|
groupSelect: d,
|
|
3013
3013
|
disabledProp: p,
|
|
3014
3014
|
groupOptions: _
|
|
3015
|
-
} = fe(s), m = t.fo,
|
|
3016
|
-
const
|
|
3015
|
+
} = fe(s), m = t.fo, w = t.fg, I = t.handleOptionClick, L = t.handleGroupClick, Z = t.search, $ = t.pointer, b = t.setPointer, B = t.clearPointer, x = t.multiselect, le = t.isOpen, h = f(() => m.value.filter((k) => !k[p.value])), H = f(() => w.value.filter((k) => !k[p.value])), U = f(() => c.value !== "single" && d.value), te = f(() => $.value && $.value.group), re = f(() => ne($.value)), Ce = f(() => {
|
|
3016
|
+
const k = te.value ? $.value : (
|
|
3017
3017
|
/* istanbul ignore next */
|
|
3018
|
-
ne(
|
|
3019
|
-
), P = H.value.map((Ie) => Ie[l.value]).indexOf(
|
|
3018
|
+
ne($.value)
|
|
3019
|
+
), P = H.value.map((Ie) => Ie[l.value]).indexOf(k[l.value]);
|
|
3020
3020
|
let he = H.value[P - 1];
|
|
3021
3021
|
return he === void 0 && (he = X.value), he;
|
|
3022
|
-
}), D =
|
|
3023
|
-
let
|
|
3024
|
-
return H.value.length <=
|
|
3025
|
-
}), X =
|
|
3026
|
-
const
|
|
3027
|
-
return
|
|
3028
|
-
}), _e =
|
|
3029
|
-
const
|
|
3030
|
-
return
|
|
3031
|
-
}),
|
|
3032
|
-
h
|
|
3022
|
+
}), D = f(() => {
|
|
3023
|
+
let k = H.value.map((P) => P.label).indexOf(te.value ? $.value[l.value] : ne($.value)[l.value]) + 1;
|
|
3024
|
+
return H.value.length <= k && (k = 0), H.value[k];
|
|
3025
|
+
}), X = f(() => [...H.value].slice(-1)[0]), A = f(() => $.value.__VISIBLE__.filter((k) => !k[p.value])[0]), W = f(() => {
|
|
3026
|
+
const k = re.value.__VISIBLE__.filter((P) => !P[p.value]);
|
|
3027
|
+
return k[k.map((P) => P[n.value]).indexOf($.value[n.value]) - 1];
|
|
3028
|
+
}), _e = f(() => {
|
|
3029
|
+
const k = ne($.value).__VISIBLE__.filter((P) => !P[p.value]);
|
|
3030
|
+
return k[k.map((P) => P[n.value]).indexOf($.value[n.value]) + 1];
|
|
3031
|
+
}), g = f(() => [...Ce.value.__VISIBLE__.filter((k) => !k[p.value])].slice(-1)[0]), O = f(() => [...X.value.__VISIBLE__.filter((k) => !k[p.value])].slice(-1)[0]), T = (k) => $.value && (!k.group && $.value[n.value] === k[n.value] || k.group !== void 0 && $.value[l.value] === k[l.value]) ? !0 : void 0, G = () => {
|
|
3032
|
+
b(h.value[0] || null);
|
|
3033
3033
|
}, ee = () => {
|
|
3034
|
-
|
|
3034
|
+
!$.value || $.value[p.value] === !0 || (te.value ? L($.value) : I($.value));
|
|
3035
3035
|
}, me = () => {
|
|
3036
|
-
if (
|
|
3037
|
-
|
|
3036
|
+
if ($.value === null)
|
|
3037
|
+
b((r.value && U.value ? H.value[0].__CREATE__ ? h.value[0] : H.value[0] : h.value[0]) || null);
|
|
3038
3038
|
else if (r.value && U.value) {
|
|
3039
|
-
let
|
|
3040
|
-
|
|
3039
|
+
let k = te.value ? A.value : _e.value;
|
|
3040
|
+
k === void 0 && (k = D.value, k.__CREATE__ && (k = k[_.value][0])), b(k || /* istanbul ignore next */
|
|
3041
3041
|
null);
|
|
3042
3042
|
} else {
|
|
3043
|
-
let
|
|
3044
|
-
|
|
3043
|
+
let k = h.value.map((P) => P[n.value]).indexOf($.value[n.value]) + 1;
|
|
3044
|
+
h.value.length <= k && (k = 0), b(h.value[k] || null);
|
|
3045
3045
|
}
|
|
3046
3046
|
He(() => {
|
|
3047
3047
|
q();
|
|
3048
3048
|
});
|
|
3049
3049
|
}, $e = () => {
|
|
3050
|
-
if (
|
|
3051
|
-
let
|
|
3052
|
-
r.value && U.value && (
|
|
3050
|
+
if ($.value === null) {
|
|
3051
|
+
let k = h.value[h.value.length - 1];
|
|
3052
|
+
r.value && U.value && (k = O.value, k === void 0 && (k = X.value)), b(k || null);
|
|
3053
3053
|
} else if (r.value && U.value) {
|
|
3054
|
-
let
|
|
3055
|
-
|
|
3054
|
+
let k = te.value ? g.value : W.value;
|
|
3055
|
+
k === void 0 && (k = te.value ? Ce.value : re.value, k.__CREATE__ && (k = g.value, k === void 0 && (k = Ce.value))), b(k || /* istanbul ignore next */
|
|
3056
3056
|
null);
|
|
3057
3057
|
} else {
|
|
3058
|
-
let
|
|
3059
|
-
|
|
3058
|
+
let k = h.value.map((P) => P[n.value]).indexOf($.value[n.value]) - 1;
|
|
3059
|
+
k < 0 && (k = h.value.length - 1), b(h.value[k] || null);
|
|
3060
3060
|
}
|
|
3061
3061
|
He(() => {
|
|
3062
3062
|
q();
|
|
3063
3063
|
});
|
|
3064
|
-
}, ne = (
|
|
3065
|
-
let
|
|
3066
|
-
if (!
|
|
3064
|
+
}, ne = (k) => H.value.find((P) => P.__VISIBLE__.map((he) => he[n.value]).indexOf(k[n.value]) !== -1), q = () => {
|
|
3065
|
+
let k = x.value.querySelector("[data-pointed]");
|
|
3066
|
+
if (!k)
|
|
3067
3067
|
return;
|
|
3068
|
-
let P =
|
|
3069
|
-
r.value && (P = te.value ?
|
|
3068
|
+
let P = k.parentElement.parentElement;
|
|
3069
|
+
r.value && (P = te.value ? k.parentElement.parentElement.parentElement : k.parentElement.parentElement.parentElement.parentElement), k.offsetTop + k.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = k.offsetTop + k.offsetHeight - P.clientHeight), k.offsetTop < P.scrollTop && (P.scrollTop = k.offsetTop);
|
|
3070
3070
|
};
|
|
3071
|
-
return de(Z, (
|
|
3072
|
-
i.value && (
|
|
3073
|
-
}), de(
|
|
3074
|
-
if (
|
|
3071
|
+
return de(Z, (k) => {
|
|
3072
|
+
i.value && (k.length && a.value ? G() : B());
|
|
3073
|
+
}), de(le, (k) => {
|
|
3074
|
+
if (k) {
|
|
3075
3075
|
let P = x.value.querySelectorAll("[data-selected]")[0];
|
|
3076
3076
|
if (!P)
|
|
3077
3077
|
return;
|
|
@@ -3081,7 +3081,7 @@ function U3(s, e, t) {
|
|
|
3081
3081
|
});
|
|
3082
3082
|
}
|
|
3083
3083
|
}), {
|
|
3084
|
-
pointer:
|
|
3084
|
+
pointer: $,
|
|
3085
3085
|
canPointGroups: U,
|
|
3086
3086
|
isPointed: T,
|
|
3087
3087
|
setPointerFirst: G,
|
|
@@ -3103,41 +3103,41 @@ function q3(s, e, t) {
|
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
3105
|
function z3(s, e, t) {
|
|
3106
|
-
const { searchable: n, disabled: a, clearOnBlur: i } = fe(s), l = t.input, r = t.open, c = t.close, d = t.clearSearch, p = t.isOpen, _ = Q(null), m = Q(null),
|
|
3106
|
+
const { searchable: n, disabled: a, clearOnBlur: i } = fe(s), l = t.input, r = t.open, c = t.close, d = t.clearSearch, p = t.isOpen, _ = Q(null), m = Q(null), w = Q(null), I = Q(!1), L = Q(!1), Z = f(() => n.value || a.value ? -1 : 0), $ = () => {
|
|
3107
3107
|
n.value && l.value.blur(), m.value.blur();
|
|
3108
|
-
},
|
|
3108
|
+
}, b = () => {
|
|
3109
3109
|
n.value && !a.value && l.value.focus();
|
|
3110
|
-
},
|
|
3111
|
-
a.value || (
|
|
3110
|
+
}, B = (te = !0) => {
|
|
3111
|
+
a.value || (I.value = !0, te && r());
|
|
3112
3112
|
}, x = () => {
|
|
3113
|
-
|
|
3114
|
-
|
|
3113
|
+
I.value = !1, setTimeout(() => {
|
|
3114
|
+
I.value || (c(), i.value && d());
|
|
3115
3115
|
}, 1);
|
|
3116
3116
|
};
|
|
3117
3117
|
return {
|
|
3118
3118
|
multiselect: _,
|
|
3119
3119
|
wrapper: m,
|
|
3120
|
-
tags:
|
|
3120
|
+
tags: w,
|
|
3121
3121
|
tabindex: Z,
|
|
3122
|
-
isActive:
|
|
3122
|
+
isActive: I,
|
|
3123
3123
|
mouseClicked: L,
|
|
3124
|
-
blur:
|
|
3125
|
-
focus:
|
|
3126
|
-
activate:
|
|
3124
|
+
blur: $,
|
|
3125
|
+
focus: b,
|
|
3126
|
+
activate: B,
|
|
3127
3127
|
deactivate: x,
|
|
3128
3128
|
handleFocusIn: (te) => {
|
|
3129
|
-
te.target.closest("[data-tags]") && te.target.nodeName !== "INPUT" || te.target.closest("[data-clear]") ||
|
|
3129
|
+
te.target.closest("[data-tags]") && te.target.nodeName !== "INPUT" || te.target.closest("[data-clear]") || B(L.value);
|
|
3130
3130
|
},
|
|
3131
3131
|
handleFocusOut: () => {
|
|
3132
3132
|
x();
|
|
3133
3133
|
},
|
|
3134
3134
|
handleCaretClick: () => {
|
|
3135
|
-
x(),
|
|
3135
|
+
x(), $();
|
|
3136
3136
|
},
|
|
3137
3137
|
handleMousedown: (te) => {
|
|
3138
|
-
L.value = !0, p.value && (te.target.isEqualNode(m.value) || te.target.isEqualNode(
|
|
3138
|
+
L.value = !0, p.value && (te.target.isEqualNode(m.value) || te.target.isEqualNode(w.value)) ? setTimeout(() => {
|
|
3139
3139
|
x();
|
|
3140
|
-
}, 0) : document.activeElement.isEqualNode(m.value) && !p.value &&
|
|
3140
|
+
}, 0) : document.activeElement.isEqualNode(m.value) && !p.value && B(), setTimeout(() => {
|
|
3141
3141
|
L.value = !1;
|
|
3142
3142
|
}, 0);
|
|
3143
3143
|
}
|
|
@@ -3155,9 +3155,9 @@ function F3(s, e, t) {
|
|
|
3155
3155
|
addOptionOn: p,
|
|
3156
3156
|
createTag: _,
|
|
3157
3157
|
createOption: m,
|
|
3158
|
-
reverse:
|
|
3159
|
-
} = fe(s),
|
|
3160
|
-
n.value === "tags" && !r.value && X.value && l.value && !d.value &&
|
|
3158
|
+
reverse: w
|
|
3159
|
+
} = fe(s), I = Oe().proxy, L = t.iv, Z = t.update, $ = t.search, b = t.setPointer, B = t.selectPointer, x = t.backwardPointer, le = t.forwardPointer, h = t.multiselect, H = t.wrapper, U = t.tags, te = t.isOpen, re = t.open, Ce = t.blur, D = t.fo, X = f(() => _.value || m.value || !1), A = f(() => a.value !== void 0 ? a.value : p.value !== void 0 ? p.value : ["enter"]), W = () => {
|
|
3160
|
+
n.value === "tags" && !r.value && X.value && l.value && !d.value && b(D.value[D.value.map((T) => T[c.value]).indexOf($.value)]);
|
|
3161
3161
|
}, _e = (T) => {
|
|
3162
3162
|
let G = T.length - 1;
|
|
3163
3163
|
for (; G >= 0 && (T[G].remove === !1 || T[G].disabled); )
|
|
@@ -3166,11 +3166,11 @@ function F3(s, e, t) {
|
|
|
3166
3166
|
};
|
|
3167
3167
|
return {
|
|
3168
3168
|
handleKeydown: (T) => {
|
|
3169
|
-
e.emit("keydown", T,
|
|
3169
|
+
e.emit("keydown", T, I);
|
|
3170
3170
|
let G, ee;
|
|
3171
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...
|
|
3171
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...h.value.querySelectorAll("[data-tags] > *")].filter((me) => me !== U.value), ee = G.findIndex((me) => me === document.activeElement)), T.key) {
|
|
3172
3172
|
case "Backspace":
|
|
3173
|
-
if (n.value === "single" || l.value && [null, ""].indexOf(
|
|
3173
|
+
if (n.value === "single" || l.value && [null, ""].indexOf($.value) === -1 || L.value.length === 0)
|
|
3174
3174
|
return;
|
|
3175
3175
|
Z(_e([...L.value]));
|
|
3176
3176
|
break;
|
|
@@ -3181,27 +3181,27 @@ function F3(s, e, t) {
|
|
|
3181
3181
|
Z([...L.value].filter((me, $e) => $e !== ee)), ee === G.length - 1 && (G.length - 1 ? G[G.length - 2].focus() : l.value ? U.value.querySelector("input").focus() : H.value.focus());
|
|
3182
3182
|
return;
|
|
3183
3183
|
}
|
|
3184
|
-
if (
|
|
3184
|
+
if (A.value.indexOf("enter") === -1 && X.value)
|
|
3185
3185
|
return;
|
|
3186
|
-
W(),
|
|
3186
|
+
W(), B();
|
|
3187
3187
|
break;
|
|
3188
3188
|
case " ":
|
|
3189
3189
|
if (!X.value && !l.value) {
|
|
3190
|
-
T.preventDefault(), W(),
|
|
3190
|
+
T.preventDefault(), W(), B();
|
|
3191
3191
|
return;
|
|
3192
3192
|
}
|
|
3193
3193
|
if (!X.value)
|
|
3194
3194
|
return !1;
|
|
3195
|
-
if (
|
|
3195
|
+
if (A.value.indexOf("space") === -1 && X.value)
|
|
3196
3196
|
return;
|
|
3197
|
-
T.preventDefault(), W(),
|
|
3197
|
+
T.preventDefault(), W(), B();
|
|
3198
3198
|
break;
|
|
3199
3199
|
case "Tab":
|
|
3200
3200
|
case ";":
|
|
3201
3201
|
case ",":
|
|
3202
|
-
if (
|
|
3202
|
+
if (A.value.indexOf(T.key.toLowerCase()) === -1 || !X.value)
|
|
3203
3203
|
return;
|
|
3204
|
-
W(),
|
|
3204
|
+
W(), B(), T.preventDefault();
|
|
3205
3205
|
break;
|
|
3206
3206
|
case "Escape":
|
|
3207
3207
|
Ce();
|
|
@@ -3214,7 +3214,7 @@ function F3(s, e, t) {
|
|
|
3214
3214
|
case "ArrowDown":
|
|
3215
3215
|
if (T.preventDefault(), !r.value)
|
|
3216
3216
|
return;
|
|
3217
|
-
te.value || re(),
|
|
3217
|
+
te.value || re(), le();
|
|
3218
3218
|
break;
|
|
3219
3219
|
case "ArrowLeft":
|
|
3220
3220
|
if (l.value && U.value && U.value.querySelector("input").selectionStart || T.shiftKey || n.value !== "tags" || !L.value || !L.value.length)
|
|
@@ -3229,7 +3229,7 @@ function F3(s, e, t) {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
},
|
|
3231
3231
|
handleKeyup: (T) => {
|
|
3232
|
-
e.emit("keyup", T,
|
|
3232
|
+
e.emit("keyup", T, I);
|
|
3233
3233
|
},
|
|
3234
3234
|
preparePointer: W
|
|
3235
3235
|
};
|
|
@@ -3240,7 +3240,7 @@ function K3(s, e, t) {
|
|
|
3240
3240
|
disabled: a,
|
|
3241
3241
|
openDirection: i,
|
|
3242
3242
|
showOptions: l
|
|
3243
|
-
} = fe(s), r = t.isOpen, c = t.isPointed, d = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups,
|
|
3243
|
+
} = fe(s), r = t.isOpen, c = t.isPointed, d = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups, w = t.resolving, I = t.fo, L = f(() => ({
|
|
3244
3244
|
container: "multiselect",
|
|
3245
3245
|
containerDisabled: "is-disabled",
|
|
3246
3246
|
containerOpen: "is-open",
|
|
@@ -3293,49 +3293,49 @@ function K3(s, e, t) {
|
|
|
3293
3293
|
assist: "multiselect-assistive-text",
|
|
3294
3294
|
spacer: "multiselect-spacer",
|
|
3295
3295
|
...n.value
|
|
3296
|
-
})), Z =
|
|
3296
|
+
})), Z = f(() => !!(r.value && l.value && (!w.value || w.value && I.value.length)));
|
|
3297
3297
|
return {
|
|
3298
|
-
classList:
|
|
3299
|
-
const
|
|
3298
|
+
classList: f(() => {
|
|
3299
|
+
const b = L.value;
|
|
3300
3300
|
return {
|
|
3301
|
-
container: [
|
|
3302
|
-
wrapper:
|
|
3303
|
-
spacer:
|
|
3304
|
-
singleLabel:
|
|
3305
|
-
singleLabelText:
|
|
3306
|
-
multipleLabel:
|
|
3307
|
-
search:
|
|
3308
|
-
tags:
|
|
3309
|
-
tag: [
|
|
3310
|
-
tagDisabled:
|
|
3311
|
-
tagRemove:
|
|
3312
|
-
tagRemoveIcon:
|
|
3313
|
-
tagsSearchWrapper:
|
|
3314
|
-
tagsSearch:
|
|
3315
|
-
tagsSearchCopy:
|
|
3316
|
-
placeholder:
|
|
3317
|
-
caret: [
|
|
3318
|
-
clear:
|
|
3319
|
-
clearIcon:
|
|
3320
|
-
spinner:
|
|
3321
|
-
inifinite:
|
|
3322
|
-
inifiniteSpinner:
|
|
3323
|
-
dropdown: [
|
|
3324
|
-
options: [
|
|
3325
|
-
group:
|
|
3326
|
-
groupLabel: (
|
|
3327
|
-
let x = [
|
|
3328
|
-
return c(
|
|
3301
|
+
container: [b.container].concat(a.value ? b.containerDisabled : []).concat(Z.value && i.value === "top" ? b.containerOpenTop : []).concat(Z.value && i.value !== "top" ? b.containerOpen : []).concat(_.value ? b.containerActive : []),
|
|
3302
|
+
wrapper: b.wrapper,
|
|
3303
|
+
spacer: b.spacer,
|
|
3304
|
+
singleLabel: b.singleLabel,
|
|
3305
|
+
singleLabelText: b.singleLabelText,
|
|
3306
|
+
multipleLabel: b.multipleLabel,
|
|
3307
|
+
search: b.search,
|
|
3308
|
+
tags: b.tags,
|
|
3309
|
+
tag: [b.tag].concat(a.value ? b.tagDisabled : []),
|
|
3310
|
+
tagDisabled: b.tagDisabled,
|
|
3311
|
+
tagRemove: b.tagRemove,
|
|
3312
|
+
tagRemoveIcon: b.tagRemoveIcon,
|
|
3313
|
+
tagsSearchWrapper: b.tagsSearchWrapper,
|
|
3314
|
+
tagsSearch: b.tagsSearch,
|
|
3315
|
+
tagsSearchCopy: b.tagsSearchCopy,
|
|
3316
|
+
placeholder: b.placeholder,
|
|
3317
|
+
caret: [b.caret].concat(r.value ? b.caretOpen : []),
|
|
3318
|
+
clear: b.clear,
|
|
3319
|
+
clearIcon: b.clearIcon,
|
|
3320
|
+
spinner: b.spinner,
|
|
3321
|
+
inifinite: b.inifinite,
|
|
3322
|
+
inifiniteSpinner: b.inifiniteSpinner,
|
|
3323
|
+
dropdown: [b.dropdown].concat(i.value === "top" ? b.dropdownTop : []).concat(!r.value || !l.value || !Z.value ? b.dropdownHidden : []),
|
|
3324
|
+
options: [b.options].concat(i.value === "top" ? b.optionsTop : []),
|
|
3325
|
+
group: b.group,
|
|
3326
|
+
groupLabel: (B) => {
|
|
3327
|
+
let x = [b.groupLabel];
|
|
3328
|
+
return c(B) ? x.push(d(B) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : d(B) && m.value ? x.push(p(B) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : p(B) && x.push(b.groupLabelDisabled), m.value && x.push(b.groupLabelPointable), x;
|
|
3329
3329
|
},
|
|
3330
|
-
groupOptions:
|
|
3331
|
-
option: (
|
|
3332
|
-
let
|
|
3333
|
-
return c(
|
|
3330
|
+
groupOptions: b.groupOptions,
|
|
3331
|
+
option: (B, x) => {
|
|
3332
|
+
let le = [b.option];
|
|
3333
|
+
return c(B) ? le.push(d(B) ? b.optionSelectedPointed : b.optionPointed) : d(B) ? le.push(p(B) ? b.optionSelectedDisabled : b.optionSelected) : (p(B) || x && p(x)) && le.push(b.optionDisabled), le;
|
|
3334
3334
|
},
|
|
3335
|
-
noOptions:
|
|
3336
|
-
noResults:
|
|
3337
|
-
assist:
|
|
3338
|
-
fakeInput:
|
|
3335
|
+
noOptions: b.noOptions,
|
|
3336
|
+
noResults: b.noResults,
|
|
3337
|
+
assist: b.assist,
|
|
3338
|
+
fakeInput: b.fakeInput
|
|
3339
3339
|
};
|
|
3340
3340
|
}),
|
|
3341
3341
|
showDropdown: Z
|
|
@@ -3345,25 +3345,25 @@ function G3(s, e, t) {
|
|
|
3345
3345
|
const {
|
|
3346
3346
|
limit: n,
|
|
3347
3347
|
infinite: a
|
|
3348
|
-
} = fe(s), i = t.isOpen, l = t.offset, r = t.search, c = t.pfo, d = t.eo, p = Q(null), _ = Q(null), m =
|
|
3349
|
-
const { isIntersecting: Z, target:
|
|
3348
|
+
} = fe(s), i = t.isOpen, l = t.offset, r = t.search, c = t.pfo, d = t.eo, p = Q(null), _ = Q(null), m = f(() => l.value < c.value.length), w = (L) => {
|
|
3349
|
+
const { isIntersecting: Z, target: $ } = L[0];
|
|
3350
3350
|
if (Z) {
|
|
3351
|
-
const
|
|
3351
|
+
const b = $.offsetParent, B = b.scrollTop;
|
|
3352
3352
|
l.value += n.value == -1 ? 10 : n.value, He(() => {
|
|
3353
|
-
|
|
3353
|
+
b.scrollTop = B;
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
|
-
},
|
|
3356
|
+
}, I = () => {
|
|
3357
3357
|
i.value && l.value < c.value.length ? p.value.observe(_.value) : !i.value && p.value && p.value.disconnect();
|
|
3358
3358
|
};
|
|
3359
3359
|
return de(i, () => {
|
|
3360
|
-
a.value &&
|
|
3360
|
+
a.value && I();
|
|
3361
3361
|
}), de(r, () => {
|
|
3362
|
-
a.value && (l.value = n.value,
|
|
3362
|
+
a.value && (l.value = n.value, I());
|
|
3363
3363
|
}, { flush: "post" }), de(d, () => {
|
|
3364
|
-
a.value &&
|
|
3364
|
+
a.value && I();
|
|
3365
3365
|
}, { immediate: !1, flush: "post" }), m1(() => {
|
|
3366
|
-
window && window.IntersectionObserver && (p.value = new IntersectionObserver(
|
|
3366
|
+
window && window.IntersectionObserver && (p.value = new IntersectionObserver(w));
|
|
3367
3367
|
}), {
|
|
3368
3368
|
hasMore: m,
|
|
3369
3369
|
infiniteLoader: _
|
|
@@ -3379,22 +3379,22 @@ function Y3(s, e, t) {
|
|
|
3379
3379
|
groupLabel: c,
|
|
3380
3380
|
aria: d,
|
|
3381
3381
|
searchable: p
|
|
3382
|
-
} = fe(s), _ = t.pointer, m = t.iv,
|
|
3382
|
+
} = fe(s), _ = t.pointer, m = t.iv, w = t.hasSelected, I = t.multipleLabelText, L = Q(null), Z = f(() => {
|
|
3383
3383
|
let D = [];
|
|
3384
3384
|
return a && a.value && D.push(a.value), D.push("assist"), D.join("-");
|
|
3385
|
-
}),
|
|
3385
|
+
}), $ = f(() => {
|
|
3386
3386
|
let D = [];
|
|
3387
3387
|
return a && a.value && D.push(a.value), D.push("multiselect-options"), D.join("-");
|
|
3388
|
-
}),
|
|
3388
|
+
}), b = f(() => {
|
|
3389
3389
|
let D = [];
|
|
3390
3390
|
if (a && a.value && D.push(a.value), _.value)
|
|
3391
3391
|
return D.push(_.value.group ? "multiselect-group" : "multiselect-option"), D.push(_.value.group ? _.value.index : _.value[i.value]), D.join("-");
|
|
3392
|
-
}),
|
|
3392
|
+
}), B = f(() => n.value), x = f(() => r.value !== "single"), le = f(() => {
|
|
3393
3393
|
let D = "";
|
|
3394
|
-
return r.value === "single" &&
|
|
3395
|
-
}),
|
|
3394
|
+
return r.value === "single" && w.value && (D += m.value[l.value]), r.value === "multiple" && w.value && (D += I.value), r.value === "tags" && w.value && (D += m.value.map((X) => X[l.value]).join(", ")), D;
|
|
3395
|
+
}), h = f(() => {
|
|
3396
3396
|
let D = { ...d.value };
|
|
3397
|
-
return p.value && (D["aria-labelledby"] = D["aria-labelledby"] ? `${Z.value} ${D["aria-labelledby"]}` : Z.value,
|
|
3397
|
+
return p.value && (D["aria-labelledby"] = D["aria-labelledby"] ? `${Z.value} ${D["aria-labelledby"]}` : Z.value, le.value && D["aria-label"] && (D["aria-label"] = `${le.value}, ${D["aria-label"]}`)), D;
|
|
3398
3398
|
}), H = (D) => {
|
|
3399
3399
|
let X = [];
|
|
3400
3400
|
return a && a.value && X.push(a.value), X.push("multiselect-option"), X.push(D[i.value]), X.join("-");
|
|
@@ -3414,13 +3414,13 @@ function Y3(s, e, t) {
|
|
|
3414
3414
|
L.value = D ? D.innerText : null;
|
|
3415
3415
|
}
|
|
3416
3416
|
}), {
|
|
3417
|
-
arias:
|
|
3418
|
-
ariaLabel:
|
|
3417
|
+
arias: h,
|
|
3418
|
+
ariaLabel: le,
|
|
3419
3419
|
ariaAssist: Z,
|
|
3420
|
-
ariaControls:
|
|
3421
|
-
ariaPlaceholder:
|
|
3420
|
+
ariaControls: $,
|
|
3421
|
+
ariaPlaceholder: B,
|
|
3422
3422
|
ariaMultiselectable: x,
|
|
3423
|
-
ariaActiveDescendant:
|
|
3423
|
+
ariaActiveDescendant: b,
|
|
3424
3424
|
ariaOptionId: H,
|
|
3425
3425
|
ariaOptionLabel: te,
|
|
3426
3426
|
ariaGroupId: U,
|
|
@@ -3822,7 +3822,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3822
3822
|
"aria-multiselectable": t.searchable ? void 0 : s.ariaMultiselectable,
|
|
3823
3823
|
role: t.searchable ? void 0 : "combobox"
|
|
3824
3824
|
}, t.searchable ? {} : s.arias), [
|
|
3825
|
-
|
|
3825
|
+
M(" Search "),
|
|
3826
3826
|
t.mode !== "tags" && t.searchable && !t.disabled ? (u(), C("input", Ee({
|
|
3827
3827
|
key: 0,
|
|
3828
3828
|
type: t.inputType,
|
|
@@ -3844,8 +3844,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3844
3844
|
}, {
|
|
3845
3845
|
...t.attrs,
|
|
3846
3846
|
...s.arias
|
|
3847
|
-
}), null, 16, x3)) :
|
|
3848
|
-
|
|
3847
|
+
}), null, 16, x3)) : M("v-if", !0),
|
|
3848
|
+
M(" Tags (with search) "),
|
|
3849
3849
|
t.mode == "tags" ? (u(), C(
|
|
3850
3850
|
"div",
|
|
3851
3851
|
{
|
|
@@ -3855,7 +3855,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3855
3855
|
},
|
|
3856
3856
|
[
|
|
3857
3857
|
(u(!0), C(
|
|
3858
|
-
|
|
3858
|
+
ae,
|
|
3859
3859
|
null,
|
|
3860
3860
|
pe(s.iv, (l, r, c) => Y(s.$slots, "tag", {
|
|
3861
3861
|
option: l,
|
|
@@ -3891,7 +3891,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3891
3891
|
2
|
|
3892
3892
|
/* CLASS */
|
|
3893
3893
|
)
|
|
3894
|
-
], 10, t5)) :
|
|
3894
|
+
], 10, t5)) : M("v-if", !0)
|
|
3895
3895
|
], 42, e5))
|
|
3896
3896
|
])),
|
|
3897
3897
|
256
|
|
@@ -3904,7 +3904,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3904
3904
|
ref: "tags"
|
|
3905
3905
|
},
|
|
3906
3906
|
[
|
|
3907
|
-
|
|
3907
|
+
M(" Used for measuring search width "),
|
|
3908
3908
|
o(
|
|
3909
3909
|
"span",
|
|
3910
3910
|
{
|
|
@@ -3914,7 +3914,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3914
3914
|
3
|
|
3915
3915
|
/* TEXT, CLASS */
|
|
3916
3916
|
),
|
|
3917
|
-
|
|
3917
|
+
M(" Actual search input "),
|
|
3918
3918
|
t.searchable && !t.disabled ? (u(), C("input", Ee({
|
|
3919
3919
|
key: 0,
|
|
3920
3920
|
type: t.inputType,
|
|
@@ -3936,7 +3936,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3936
3936
|
}, {
|
|
3937
3937
|
...t.attrs,
|
|
3938
3938
|
...s.arias
|
|
3939
|
-
}), null, 16, s5)) :
|
|
3939
|
+
}), null, 16, s5)) : M("v-if", !0)
|
|
3940
3940
|
],
|
|
3941
3941
|
2
|
|
3942
3942
|
/* CLASS */
|
|
@@ -3944,8 +3944,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3944
3944
|
],
|
|
3945
3945
|
2
|
|
3946
3946
|
/* CLASS */
|
|
3947
|
-
)) :
|
|
3948
|
-
|
|
3947
|
+
)) : M("v-if", !0),
|
|
3948
|
+
M(" Single label "),
|
|
3949
3949
|
t.mode == "single" && s.hasSelected && !s.search && s.iv ? Y(s.$slots, "singlelabel", {
|
|
3950
3950
|
key: 2,
|
|
3951
3951
|
value: s.iv
|
|
@@ -3969,8 +3969,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3969
3969
|
2
|
|
3970
3970
|
/* CLASS */
|
|
3971
3971
|
)
|
|
3972
|
-
]) :
|
|
3973
|
-
|
|
3972
|
+
]) : M("v-if", !0),
|
|
3973
|
+
M(" Multiple label "),
|
|
3974
3974
|
t.mode == "multiple" && s.hasSelected && !s.search ? Y(s.$slots, "multiplelabel", {
|
|
3975
3975
|
key: 3,
|
|
3976
3976
|
values: s.iv
|
|
@@ -3979,8 +3979,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3979
3979
|
class: F(s.classList.multipleLabel),
|
|
3980
3980
|
innerHTML: s.multipleLabelText
|
|
3981
3981
|
}, null, 10, a5)
|
|
3982
|
-
]) :
|
|
3983
|
-
|
|
3982
|
+
]) : M("v-if", !0),
|
|
3983
|
+
M(" Placeholder "),
|
|
3984
3984
|
t.placeholder && !s.hasSelected && !s.search ? Y(s.$slots, "placeholder", { key: 4 }, () => [
|
|
3985
3985
|
o(
|
|
3986
3986
|
"div",
|
|
@@ -3992,8 +3992,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3992
3992
|
3
|
|
3993
3993
|
/* TEXT, CLASS */
|
|
3994
3994
|
)
|
|
3995
|
-
]) :
|
|
3996
|
-
|
|
3995
|
+
]) : M("v-if", !0),
|
|
3996
|
+
M(" Spinner "),
|
|
3997
3997
|
t.loading || s.resolving ? Y(s.$slots, "spinner", { key: 5 }, () => [
|
|
3998
3998
|
o(
|
|
3999
3999
|
"span",
|
|
@@ -4005,8 +4005,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
4005
4005
|
2
|
|
4006
4006
|
/* CLASS */
|
|
4007
4007
|
)
|
|
4008
|
-
]) :
|
|
4009
|
-
|
|
4008
|
+
]) : M("v-if", !0),
|
|
4009
|
+
M(" Clear "),
|
|
4010
4010
|
s.hasSelected && !t.disabled && t.canClear && !s.busy ? Y(s.$slots, "clear", {
|
|
4011
4011
|
key: 6,
|
|
4012
4012
|
clear: s.clear
|
|
@@ -4037,8 +4037,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
4037
4037
|
34
|
|
4038
4038
|
/* CLASS, HYDRATE_EVENTS */
|
|
4039
4039
|
)
|
|
4040
|
-
]) :
|
|
4041
|
-
|
|
4040
|
+
]) : M("v-if", !0),
|
|
4041
|
+
M(" Caret "),
|
|
4042
4042
|
t.caret && t.showOptions ? Y(s.$slots, "caret", { key: 7 }, () => [
|
|
4043
4043
|
o(
|
|
4044
4044
|
"span",
|
|
@@ -4051,9 +4051,9 @@ function h5(s, e, t, n, a, i) {
|
|
|
4051
4051
|
2
|
|
4052
4052
|
/* CLASS */
|
|
4053
4053
|
)
|
|
4054
|
-
]) :
|
|
4054
|
+
]) : M("v-if", !0)
|
|
4055
4055
|
], 16, Q3),
|
|
4056
|
-
|
|
4056
|
+
M(" Options "),
|
|
4057
4057
|
o(
|
|
4058
4058
|
"div",
|
|
4059
4059
|
{
|
|
@@ -4068,7 +4068,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4068
4068
|
role: "listbox"
|
|
4069
4069
|
}, [
|
|
4070
4070
|
t.groups ? (u(!0), C(
|
|
4071
|
-
|
|
4071
|
+
ae,
|
|
4072
4072
|
{ key: 0 },
|
|
4073
4073
|
pe(s.fg, (l, r, c) => (u(), C("li", {
|
|
4074
4074
|
class: F(s.classList.group),
|
|
@@ -4078,7 +4078,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4078
4078
|
"aria-selected": s.isSelected(l),
|
|
4079
4079
|
role: "option"
|
|
4080
4080
|
}, [
|
|
4081
|
-
l.__CREATE__ ?
|
|
4081
|
+
l.__CREATE__ ? M("v-if", !0) : (u(), C("div", {
|
|
4082
4082
|
key: 0,
|
|
4083
4083
|
class: F(s.classList.groupLabel(l)),
|
|
4084
4084
|
"data-pointed": s.isPointed(l),
|
|
@@ -4101,7 +4101,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4101
4101
|
role: "group"
|
|
4102
4102
|
}, [
|
|
4103
4103
|
(u(!0), C(
|
|
4104
|
-
|
|
4104
|
+
ae,
|
|
4105
4105
|
null,
|
|
4106
4106
|
pe(l.__VISIBLE__, (d, p, _) => (u(), C("li", {
|
|
4107
4107
|
class: F(s.classList.option(d, l)),
|
|
@@ -4138,7 +4138,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4138
4138
|
128
|
|
4139
4139
|
/* KEYED_FRAGMENT */
|
|
4140
4140
|
)) : (u(!0), C(
|
|
4141
|
-
|
|
4141
|
+
ae,
|
|
4142
4142
|
{ key: 1 },
|
|
4143
4143
|
pe(s.fo, (l, r, c) => (u(), C("li", {
|
|
4144
4144
|
class: F(s.classList.option(l)),
|
|
@@ -4176,13 +4176,13 @@ function h5(s, e, t, n, a, i) {
|
|
|
4176
4176
|
class: F(s.classList.noOptions),
|
|
4177
4177
|
innerHTML: s.localize(t.noOptionsText)
|
|
4178
4178
|
}, null, 10, d5)
|
|
4179
|
-
]) :
|
|
4179
|
+
]) : M("v-if", !0),
|
|
4180
4180
|
s.noResults ? Y(s.$slots, "noresults", { key: 1 }, () => [
|
|
4181
4181
|
o("div", {
|
|
4182
4182
|
class: F(s.classList.noResults),
|
|
4183
4183
|
innerHTML: s.localize(t.noResultsText)
|
|
4184
4184
|
}, null, 10, p5)
|
|
4185
|
-
]) :
|
|
4185
|
+
]) : M("v-if", !0),
|
|
4186
4186
|
t.infinite && s.hasMore ? (u(), C(
|
|
4187
4187
|
"div",
|
|
4188
4188
|
{
|
|
@@ -4205,23 +4205,23 @@ function h5(s, e, t, n, a, i) {
|
|
|
4205
4205
|
],
|
|
4206
4206
|
2
|
|
4207
4207
|
/* CLASS */
|
|
4208
|
-
)) :
|
|
4208
|
+
)) : M("v-if", !0),
|
|
4209
4209
|
Y(s.$slots, "afterlist", { options: s.fo })
|
|
4210
4210
|
],
|
|
4211
4211
|
2
|
|
4212
4212
|
/* CLASS */
|
|
4213
4213
|
),
|
|
4214
|
-
|
|
4214
|
+
M(" Hacky input element to show HTML5 required warning "),
|
|
4215
4215
|
t.required ? (u(), C("input", {
|
|
4216
4216
|
key: 0,
|
|
4217
4217
|
class: F(s.classList.fakeInput),
|
|
4218
4218
|
tabindex: "-1",
|
|
4219
4219
|
value: s.textValue,
|
|
4220
4220
|
required: ""
|
|
4221
|
-
}, null, 10, v5)) :
|
|
4222
|
-
|
|
4221
|
+
}, null, 10, v5)) : M("v-if", !0),
|
|
4222
|
+
M(" Native input support "),
|
|
4223
4223
|
t.nativeSupport ? (u(), C(
|
|
4224
|
-
|
|
4224
|
+
ae,
|
|
4225
4225
|
{ key: 1 },
|
|
4226
4226
|
[
|
|
4227
4227
|
t.mode == "single" ? (u(), C("input", {
|
|
@@ -4230,7 +4230,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4230
4230
|
name: t.name,
|
|
4231
4231
|
value: s.plainValue !== void 0 ? s.plainValue : ""
|
|
4232
4232
|
}, null, 8, C5)) : (u(!0), C(
|
|
4233
|
-
|
|
4233
|
+
ae,
|
|
4234
4234
|
{ key: 1 },
|
|
4235
4235
|
pe(s.plainValue, (l, r) => (u(), C("input", {
|
|
4236
4236
|
type: "hidden",
|
|
@@ -4244,15 +4244,15 @@ function h5(s, e, t, n, a, i) {
|
|
|
4244
4244
|
],
|
|
4245
4245
|
64
|
|
4246
4246
|
/* STABLE_FRAGMENT */
|
|
4247
|
-
)) :
|
|
4248
|
-
|
|
4247
|
+
)) : M("v-if", !0),
|
|
4248
|
+
M(" Screen reader assistive text "),
|
|
4249
4249
|
t.searchable && s.hasSelected ? (u(), C("div", {
|
|
4250
4250
|
key: 2,
|
|
4251
4251
|
class: F(s.classList.assist),
|
|
4252
4252
|
id: s.ariaAssist,
|
|
4253
4253
|
"aria-hidden": "true"
|
|
4254
|
-
}, N(s.ariaLabel), 11, m5)) :
|
|
4255
|
-
|
|
4254
|
+
}, N(s.ariaLabel), 11, m5)) : M("v-if", !0),
|
|
4255
|
+
M(" Create height for empty input "),
|
|
4256
4256
|
o(
|
|
4257
4257
|
"div",
|
|
4258
4258
|
{
|
|
@@ -4281,7 +4281,7 @@ const f5 = { class: "ao-modal__wrapper" }, g5 = { class: "ao-modal" }, y5 = { cl
|
|
|
4281
4281
|
o("div", g5, [
|
|
4282
4282
|
o("div", y5, [
|
|
4283
4283
|
o("div", b5, [
|
|
4284
|
-
|
|
4284
|
+
y(ue, {
|
|
4285
4285
|
"icon-name": "CloseRounded",
|
|
4286
4286
|
variant: "ghost",
|
|
4287
4287
|
color: "primary",
|
|
@@ -4290,7 +4290,7 @@ const f5 = { class: "ao-modal__wrapper" }, g5 = { class: "ao-modal" }, y5 = { cl
|
|
|
4290
4290
|
]),
|
|
4291
4291
|
e.$slots.header ? (u(), C("header", $5, [
|
|
4292
4292
|
Y(e.$slots, "header")
|
|
4293
|
-
])) :
|
|
4293
|
+
])) : M("", !0)
|
|
4294
4294
|
]),
|
|
4295
4295
|
o("div", w5, [
|
|
4296
4296
|
Y(e.$slots, "default")
|
|
@@ -4343,7 +4343,7 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4343
4343
|
},
|
|
4344
4344
|
emits: ["add", "delete", "update"],
|
|
4345
4345
|
setup(s, { emit: e }) {
|
|
4346
|
-
const t = s, { t: n } = De(), a =
|
|
4346
|
+
const t = s, { t: n } = De(), a = f(
|
|
4347
4347
|
() => {
|
|
4348
4348
|
var p;
|
|
4349
4349
|
return ((p = t.users) == null ? void 0 : p.map((_) => ({
|
|
@@ -4358,10 +4358,10 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4358
4358
|
};
|
|
4359
4359
|
e("add", _);
|
|
4360
4360
|
}, l = (p, _) => {
|
|
4361
|
-
const
|
|
4361
|
+
const w = p.target.value;
|
|
4362
4362
|
e("update", {
|
|
4363
4363
|
id: _,
|
|
4364
|
-
name:
|
|
4364
|
+
name: w
|
|
4365
4365
|
});
|
|
4366
4366
|
}, r = (p, _) => {
|
|
4367
4367
|
e("update", {
|
|
@@ -4378,8 +4378,8 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4378
4378
|
};
|
|
4379
4379
|
return (p, _) => (u(), C("div", A5, [
|
|
4380
4380
|
o("ul", k5, [
|
|
4381
|
-
(u(!0), C(
|
|
4382
|
-
var
|
|
4381
|
+
(u(!0), C(ae, null, pe(p.subtasks, (m) => {
|
|
4382
|
+
var w;
|
|
4383
4383
|
return u(), C("li", {
|
|
4384
4384
|
key: m.id,
|
|
4385
4385
|
class: "ao-subtask"
|
|
@@ -4390,33 +4390,33 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4390
4390
|
"icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
4391
4391
|
variant: "ghost",
|
|
4392
4392
|
onClick: () => r(m.id, !m.isDone)
|
|
4393
|
-
}, null, 8, ["icon-name", "onClick"])) :
|
|
4393
|
+
}, null, 8, ["icon-name", "onClick"])) : M("", !0),
|
|
4394
4394
|
o("input", {
|
|
4395
4395
|
value: m.name,
|
|
4396
4396
|
class: "ao-field__input ao-subtask__field",
|
|
4397
4397
|
type: "text",
|
|
4398
|
-
onChange: (
|
|
4398
|
+
onChange: (I) => l(I, m.id)
|
|
4399
4399
|
}, null, 40, I5),
|
|
4400
4400
|
p.users ? (u(), j(E(ve), {
|
|
4401
4401
|
key: 1,
|
|
4402
|
-
value: (
|
|
4402
|
+
value: (w = m.assignee) == null ? void 0 : w.id,
|
|
4403
4403
|
options: a.value,
|
|
4404
4404
|
"close-on-select": !1,
|
|
4405
4405
|
searchable: !0,
|
|
4406
4406
|
class: "ao-subtask__assignees",
|
|
4407
4407
|
placeholder: p.$t("feed.filters.assignee.placeholder"),
|
|
4408
|
-
onChange: (
|
|
4408
|
+
onChange: (I) => d(I, m.id)
|
|
4409
4409
|
}, {
|
|
4410
|
-
tag: R(({ option:
|
|
4411
|
-
|
|
4412
|
-
"user-name":
|
|
4410
|
+
tag: R(({ option: I, handleTagRemove: L }) => [
|
|
4411
|
+
y(Ye, {
|
|
4412
|
+
"user-name": I.label,
|
|
4413
4413
|
"is-closable": !0,
|
|
4414
|
-
onClose: (Z) => L(
|
|
4414
|
+
onClose: (Z) => L(I, Z)
|
|
4415
4415
|
}, null, 8, ["user-name", "onClose"])
|
|
4416
4416
|
]),
|
|
4417
4417
|
_: 2
|
|
4418
|
-
}, 1032, ["value", "options", "placeholder", "onChange"])) :
|
|
4419
|
-
|
|
4418
|
+
}, 1032, ["value", "options", "placeholder", "onChange"])) : M("", !0),
|
|
4419
|
+
y(ue, {
|
|
4420
4420
|
class: "ao-subtask__delete",
|
|
4421
4421
|
"icon-name": "CloseRounded",
|
|
4422
4422
|
variant: "ghost",
|
|
@@ -4426,7 +4426,7 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4426
4426
|
}), 128))
|
|
4427
4427
|
]),
|
|
4428
4428
|
o("div", S5, [
|
|
4429
|
-
|
|
4429
|
+
y(ue, {
|
|
4430
4430
|
label: p.$t("activity.subtasks.add"),
|
|
4431
4431
|
"icon-name": "Add",
|
|
4432
4432
|
variant: "ghost",
|
|
@@ -4499,7 +4499,7 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
4499
4499
|
onDragleave: we(r, ["prevent"])
|
|
4500
4500
|
}, [
|
|
4501
4501
|
(_ = d.attachments) != null && _.length && d.attachments.length > 0 ? (u(), C("ul", T5, [
|
|
4502
|
-
(u(!0), C(
|
|
4502
|
+
(u(!0), C(ae, null, pe(d.attachments, (m) => (u(), C("li", {
|
|
4503
4503
|
key: m.id,
|
|
4504
4504
|
class: "ao-file"
|
|
4505
4505
|
}, [
|
|
@@ -4509,14 +4509,14 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
4509
4509
|
target: "_blank",
|
|
4510
4510
|
rel: "noopener noreferrer"
|
|
4511
4511
|
}, [
|
|
4512
|
-
|
|
4512
|
+
y(se, {
|
|
4513
4513
|
class: "ao-file__icon",
|
|
4514
4514
|
name: "AttachFileRounded",
|
|
4515
4515
|
size: "sm"
|
|
4516
4516
|
}),
|
|
4517
4517
|
o("span", H5, N(m.name), 1)
|
|
4518
4518
|
], 8, E5),
|
|
4519
|
-
|
|
4519
|
+
y(ue, {
|
|
4520
4520
|
class: "ao-files__delete-button",
|
|
4521
4521
|
"icon-name": "DeleteOutlineRounded",
|
|
4522
4522
|
variant: "ghost",
|
|
@@ -4561,130 +4561,130 @@ const j5 = {
|
|
|
4561
4561
|
},
|
|
4562
4562
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile"],
|
|
4563
4563
|
setup(s, { emit: e }) {
|
|
4564
|
-
const t = s, n = (
|
|
4564
|
+
const t = s, n = (h) => {
|
|
4565
4565
|
e("update:activity", {
|
|
4566
4566
|
id: t.activity.id,
|
|
4567
|
-
name:
|
|
4567
|
+
name: h
|
|
4568
4568
|
});
|
|
4569
|
-
}, a =
|
|
4569
|
+
}, a = f({
|
|
4570
4570
|
get() {
|
|
4571
4571
|
return t.activity.description ?? "";
|
|
4572
4572
|
},
|
|
4573
|
-
set(
|
|
4574
|
-
e("update:activity", { id: t.activity.id, description:
|
|
4573
|
+
set(h) {
|
|
4574
|
+
e("update:activity", { id: t.activity.id, description: h });
|
|
4575
4575
|
}
|
|
4576
|
-
}), i =
|
|
4576
|
+
}), i = f({
|
|
4577
4577
|
get() {
|
|
4578
4578
|
return t.activity.estimation ?? 0;
|
|
4579
4579
|
},
|
|
4580
|
-
set(
|
|
4581
|
-
e("update:activity", { id: t.activity.id, estimation:
|
|
4580
|
+
set(h) {
|
|
4581
|
+
e("update:activity", { id: t.activity.id, estimation: h });
|
|
4582
4582
|
}
|
|
4583
|
-
}), l =
|
|
4583
|
+
}), l = f({
|
|
4584
4584
|
get() {
|
|
4585
4585
|
return t.activity.important ?? !1;
|
|
4586
4586
|
},
|
|
4587
|
-
set(
|
|
4588
|
-
e("update:activity", { id: t.activity.id, important:
|
|
4587
|
+
set(h) {
|
|
4588
|
+
e("update:activity", { id: t.activity.id, important: h });
|
|
4589
4589
|
}
|
|
4590
|
-
}), r =
|
|
4590
|
+
}), r = f({
|
|
4591
4591
|
get() {
|
|
4592
|
-
var
|
|
4593
|
-
return (
|
|
4592
|
+
var h;
|
|
4593
|
+
return (h = t.activity.type) == null ? void 0 : h.id;
|
|
4594
4594
|
},
|
|
4595
|
-
set(
|
|
4596
|
-
e("update:activity", { id: t.activity.id, typeId:
|
|
4595
|
+
set(h) {
|
|
4596
|
+
e("update:activity", { id: t.activity.id, typeId: h });
|
|
4597
4597
|
}
|
|
4598
|
-
}), c =
|
|
4599
|
-
label:
|
|
4600
|
-
value:
|
|
4601
|
-
}))), d =
|
|
4598
|
+
}), c = f(() => t.templateActivities.filter((h) => h.id !== t.activity.id).map((h) => ({
|
|
4599
|
+
label: h.name,
|
|
4600
|
+
value: h.id
|
|
4601
|
+
}))), d = f({
|
|
4602
4602
|
get() {
|
|
4603
4603
|
return t.activity.dependingOn;
|
|
4604
4604
|
},
|
|
4605
|
-
set(
|
|
4606
|
-
|
|
4605
|
+
set(h) {
|
|
4606
|
+
h && e("update:activity", {
|
|
4607
4607
|
id: t.activity.id,
|
|
4608
|
-
dependingOn:
|
|
4608
|
+
dependingOn: h
|
|
4609
4609
|
});
|
|
4610
4610
|
}
|
|
4611
|
-
}), p =
|
|
4611
|
+
}), p = f(() => c.value.map((h) => {
|
|
4612
4612
|
var H;
|
|
4613
4613
|
return {
|
|
4614
|
-
...
|
|
4615
|
-
disabled: (H = t.activity.blocking) == null ? void 0 : H.some((U) => U ===
|
|
4614
|
+
...h,
|
|
4615
|
+
disabled: (H = t.activity.blocking) == null ? void 0 : H.some((U) => U === h.value)
|
|
4616
4616
|
};
|
|
4617
|
-
})), _ =
|
|
4617
|
+
})), _ = f({
|
|
4618
4618
|
get() {
|
|
4619
4619
|
return t.activity.blocking;
|
|
4620
4620
|
},
|
|
4621
|
-
set(
|
|
4622
|
-
|
|
4621
|
+
set(h) {
|
|
4622
|
+
h && e("update:activity", {
|
|
4623
4623
|
id: t.activity.id,
|
|
4624
|
-
blocking:
|
|
4624
|
+
blocking: h
|
|
4625
4625
|
});
|
|
4626
4626
|
}
|
|
4627
|
-
}), m =
|
|
4627
|
+
}), m = f(() => c.value.map((h) => {
|
|
4628
4628
|
var H;
|
|
4629
4629
|
return {
|
|
4630
|
-
...
|
|
4631
|
-
disabled: (H = t.activity.dependingOn) == null ? void 0 : H.some((U) => U ===
|
|
4630
|
+
...h,
|
|
4631
|
+
disabled: (H = t.activity.dependingOn) == null ? void 0 : H.some((U) => U === h.value)
|
|
4632
4632
|
};
|
|
4633
|
-
})),
|
|
4633
|
+
})), w = f(() => (t.templateMilestones || []).filter((H) => H.id !== t.milestoneId).map((H) => ({
|
|
4634
4634
|
label: H.name,
|
|
4635
4635
|
value: H.id
|
|
4636
|
-
}))),
|
|
4636
|
+
}))), I = f({
|
|
4637
4637
|
get() {
|
|
4638
4638
|
return t.activity.dependingMilestones;
|
|
4639
4639
|
},
|
|
4640
|
-
set(
|
|
4640
|
+
set(h) {
|
|
4641
4641
|
e("update:activity", {
|
|
4642
4642
|
id: t.activity.id,
|
|
4643
|
-
dependingMilestones:
|
|
4643
|
+
dependingMilestones: h
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
|
-
}), L = (
|
|
4647
|
-
e("addSubtask",
|
|
4648
|
-
}, Z = (
|
|
4649
|
-
e("updateSubtask",
|
|
4650
|
-
},
|
|
4651
|
-
e("deleteSubtask",
|
|
4652
|
-
},
|
|
4653
|
-
var
|
|
4654
|
-
return ((
|
|
4646
|
+
}), L = (h) => {
|
|
4647
|
+
e("addSubtask", h);
|
|
4648
|
+
}, Z = (h) => {
|
|
4649
|
+
e("updateSubtask", h);
|
|
4650
|
+
}, $ = (h) => {
|
|
4651
|
+
e("deleteSubtask", h);
|
|
4652
|
+
}, b = f(() => {
|
|
4653
|
+
var h;
|
|
4654
|
+
return ((h = t.users) == null ? void 0 : h.map((H) => ({
|
|
4655
4655
|
label: `${H.firstName} ${H.lastName}`,
|
|
4656
4656
|
value: H.id
|
|
4657
4657
|
}))) || [];
|
|
4658
|
-
}),
|
|
4658
|
+
}), B = f({
|
|
4659
4659
|
get() {
|
|
4660
|
-
var
|
|
4661
|
-
return (
|
|
4660
|
+
var h;
|
|
4661
|
+
return (h = t.activity.assignee) == null ? void 0 : h.id;
|
|
4662
4662
|
},
|
|
4663
|
-
set(
|
|
4663
|
+
set(h) {
|
|
4664
4664
|
e("update:activity", {
|
|
4665
4665
|
id: t.activity.id,
|
|
4666
|
-
assigneeId:
|
|
4666
|
+
assigneeId: h
|
|
4667
4667
|
});
|
|
4668
4668
|
}
|
|
4669
|
-
}), x = (
|
|
4669
|
+
}), x = (h) => {
|
|
4670
4670
|
e("addFiles", {
|
|
4671
4671
|
activityId: t.activity.id,
|
|
4672
|
-
files:
|
|
4672
|
+
files: h
|
|
4673
4673
|
});
|
|
4674
|
-
},
|
|
4674
|
+
}, le = (h) => {
|
|
4675
4675
|
e("removeFile", {
|
|
4676
4676
|
activityId: t.activity.id,
|
|
4677
|
-
file:
|
|
4677
|
+
file: h
|
|
4678
4678
|
});
|
|
4679
4679
|
};
|
|
4680
|
-
return (
|
|
4681
|
-
onClose: H[8] || (H[8] = (U) =>
|
|
4680
|
+
return (h, H) => (u(), j(Ct, {
|
|
4681
|
+
onClose: H[8] || (H[8] = (U) => h.$emit("close"))
|
|
4682
4682
|
}, {
|
|
4683
4683
|
header: R(() => [
|
|
4684
|
-
Y(
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
title:
|
|
4684
|
+
Y(h.$slots, "header", {}, () => [
|
|
4685
|
+
h.breadcrumbs ? (u(), C("div", j5, N(h.breadcrumbs), 1)) : M("", !0),
|
|
4686
|
+
y(ce, {
|
|
4687
|
+
title: h.activity.name || h.activity.id,
|
|
4688
4688
|
level: 4,
|
|
4689
4689
|
"is-editable": !0,
|
|
4690
4690
|
"onUpdate:title": n
|
|
@@ -4696,7 +4696,7 @@ const j5 = {
|
|
|
4696
4696
|
o("fieldset", R5, [
|
|
4697
4697
|
o("div", U5, [
|
|
4698
4698
|
o("label", q5, [
|
|
4699
|
-
o("span", z5, N(
|
|
4699
|
+
o("span", z5, N(h.$t("activity.description.label")), 1),
|
|
4700
4700
|
qe(o("textarea", {
|
|
4701
4701
|
"onUpdate:modelValue": H[0] || (H[0] = (U) => a.value = U),
|
|
4702
4702
|
rows: "4",
|
|
@@ -4716,7 +4716,7 @@ const j5 = {
|
|
|
4716
4716
|
]),
|
|
4717
4717
|
o("div", F5, [
|
|
4718
4718
|
o("label", K5, [
|
|
4719
|
-
o("span", G5, N(
|
|
4719
|
+
o("span", G5, N(h.$t("activity.estimation.label")), 1),
|
|
4720
4720
|
qe(o("input", {
|
|
4721
4721
|
"onUpdate:modelValue": H[1] || (H[1] = (U) => i.value = U),
|
|
4722
4722
|
class: "ao-field__input",
|
|
@@ -4735,7 +4735,7 @@ const j5 = {
|
|
|
4735
4735
|
])
|
|
4736
4736
|
]),
|
|
4737
4737
|
o("label", Y5, [
|
|
4738
|
-
o("span", W5, N(
|
|
4738
|
+
o("span", W5, N(h.$t("activity.isImportant.label")), 1),
|
|
4739
4739
|
qe(o("input", {
|
|
4740
4740
|
"onUpdate:modelValue": H[2] || (H[2] = (U) => l.value = U),
|
|
4741
4741
|
class: "ao-field__input",
|
|
@@ -4752,18 +4752,18 @@ const j5 = {
|
|
|
4752
4752
|
]),
|
|
4753
4753
|
o("div", X5, [
|
|
4754
4754
|
o("div", J5, [
|
|
4755
|
-
o("span", Q5, N(
|
|
4756
|
-
|
|
4757
|
-
modelValue:
|
|
4758
|
-
"onUpdate:modelValue": H[3] || (H[3] = (U) =>
|
|
4759
|
-
options:
|
|
4755
|
+
o("span", Q5, N(h.$t("activity.assignee.label")), 1),
|
|
4756
|
+
y(E(ve), {
|
|
4757
|
+
modelValue: B.value,
|
|
4758
|
+
"onUpdate:modelValue": H[3] || (H[3] = (U) => B.value = U),
|
|
4759
|
+
options: b.value,
|
|
4760
4760
|
"close-on-select": !1,
|
|
4761
4761
|
searchable: !0,
|
|
4762
4762
|
class: "ao-activity-details__assignees",
|
|
4763
|
-
placeholder:
|
|
4763
|
+
placeholder: h.$t("activity.filters.assignee.placeholder")
|
|
4764
4764
|
}, {
|
|
4765
4765
|
tag: R(({ option: U, handleTagRemove: te }) => [
|
|
4766
|
-
|
|
4766
|
+
y(Ye, {
|
|
4767
4767
|
"user-name": U.label,
|
|
4768
4768
|
"is-closable": !0,
|
|
4769
4769
|
onClose: (re) => te(U, re)
|
|
@@ -4775,32 +4775,32 @@ const j5 = {
|
|
|
4775
4775
|
]),
|
|
4776
4776
|
o("div", x5, [
|
|
4777
4777
|
o("label", e7, [
|
|
4778
|
-
o("span", t7, N(
|
|
4779
|
-
|
|
4778
|
+
o("span", t7, N(h.$t("activity.type.label")), 1),
|
|
4779
|
+
y(E(ve), {
|
|
4780
4780
|
modelValue: r.value,
|
|
4781
4781
|
"onUpdate:modelValue": H[4] || (H[4] = (U) => r.value = U),
|
|
4782
4782
|
class: "ao-field__multiselect",
|
|
4783
4783
|
mode: "single",
|
|
4784
4784
|
searchable: !0,
|
|
4785
4785
|
"create-option": !0,
|
|
4786
|
-
options:
|
|
4787
|
-
placeholder:
|
|
4786
|
+
options: h.activityTypes,
|
|
4787
|
+
placeholder: h.$t("activity.filters.type.placeholder")
|
|
4788
4788
|
}, null, 8, ["modelValue", "options", "placeholder"])
|
|
4789
4789
|
])
|
|
4790
4790
|
])
|
|
4791
4791
|
]),
|
|
4792
4792
|
o("fieldset", s7, [
|
|
4793
4793
|
o("div", a7, [
|
|
4794
|
-
|
|
4795
|
-
|
|
4794
|
+
y(se, { name: "FlowsheetOutlineRounded" }),
|
|
4795
|
+
y(ce, {
|
|
4796
4796
|
level: 4,
|
|
4797
|
-
title:
|
|
4797
|
+
title: h.$t("activity.dependencies.title")
|
|
4798
4798
|
}, null, 8, ["title"])
|
|
4799
4799
|
]),
|
|
4800
4800
|
o("div", l7, [
|
|
4801
4801
|
o("label", n7, [
|
|
4802
|
-
o("span", i7, N(
|
|
4803
|
-
|
|
4802
|
+
o("span", i7, N(h.$t("activity.dependingOn.label")), 1),
|
|
4803
|
+
y(E(ve), {
|
|
4804
4804
|
modelValue: d.value,
|
|
4805
4805
|
"onUpdate:modelValue": H[5] || (H[5] = (U) => d.value = U),
|
|
4806
4806
|
class: "ao-field__multiselect",
|
|
@@ -4813,8 +4813,8 @@ const j5 = {
|
|
|
4813
4813
|
]),
|
|
4814
4814
|
o("div", o7, [
|
|
4815
4815
|
o("label", r7, [
|
|
4816
|
-
o("span", u7, N(
|
|
4817
|
-
|
|
4816
|
+
o("span", u7, N(h.$t("activity.blocking.label")), 1),
|
|
4817
|
+
y(E(ve), {
|
|
4818
4818
|
modelValue: _.value,
|
|
4819
4819
|
"onUpdate:modelValue": H[6] || (H[6] = (U) => _.value = U),
|
|
4820
4820
|
class: "ao-field__multiselect",
|
|
@@ -4827,51 +4827,51 @@ const j5 = {
|
|
|
4827
4827
|
]),
|
|
4828
4828
|
o("div", c7, [
|
|
4829
4829
|
o("label", d7, [
|
|
4830
|
-
o("span", p7, N(
|
|
4831
|
-
|
|
4832
|
-
modelValue:
|
|
4833
|
-
"onUpdate:modelValue": H[7] || (H[7] = (U) =>
|
|
4830
|
+
o("span", p7, N(h.$t("activity.dependingMilestone.label")), 1),
|
|
4831
|
+
y(E(ve), {
|
|
4832
|
+
modelValue: I.value,
|
|
4833
|
+
"onUpdate:modelValue": H[7] || (H[7] = (U) => I.value = U),
|
|
4834
4834
|
class: "ao-field__multiselect",
|
|
4835
4835
|
mode: "tags",
|
|
4836
4836
|
"close-on-select": !1,
|
|
4837
4837
|
searchable: !0,
|
|
4838
|
-
options:
|
|
4838
|
+
options: w.value
|
|
4839
4839
|
}, null, 8, ["modelValue", "options"])
|
|
4840
4840
|
])
|
|
4841
4841
|
])
|
|
4842
4842
|
]),
|
|
4843
4843
|
o("fieldset", v7, [
|
|
4844
4844
|
o("div", C7, [
|
|
4845
|
-
|
|
4846
|
-
|
|
4845
|
+
y(se, { name: "SelectCheckBox" }),
|
|
4846
|
+
y(ce, {
|
|
4847
4847
|
level: 4,
|
|
4848
|
-
title:
|
|
4848
|
+
title: h.$t("activity.subtasks.title")
|
|
4849
4849
|
}, null, 8, ["title"])
|
|
4850
4850
|
]),
|
|
4851
|
-
|
|
4851
|
+
y(V5, {
|
|
4852
4852
|
class: "ao-activity-details__subtasks",
|
|
4853
|
-
subtasks:
|
|
4854
|
-
"activity-id":
|
|
4855
|
-
users:
|
|
4853
|
+
subtasks: h.activity.tasks || [],
|
|
4854
|
+
"activity-id": h.activity.id,
|
|
4855
|
+
users: h.users,
|
|
4856
4856
|
onAdd: L,
|
|
4857
4857
|
onUpdate: Z,
|
|
4858
|
-
onDelete:
|
|
4858
|
+
onDelete: $
|
|
4859
4859
|
}, null, 8, ["subtasks", "activity-id", "users"])
|
|
4860
4860
|
]),
|
|
4861
|
-
Y(
|
|
4861
|
+
Y(h.$slots, "default")
|
|
4862
4862
|
]),
|
|
4863
4863
|
o("div", _7, [
|
|
4864
4864
|
o("div", m7, [
|
|
4865
|
-
|
|
4866
|
-
|
|
4865
|
+
y(se, { name: "AttachFileRounded" }),
|
|
4866
|
+
y(ce, {
|
|
4867
4867
|
level: 4,
|
|
4868
|
-
title:
|
|
4868
|
+
title: h.$t("activity.attachments.title")
|
|
4869
4869
|
}, null, 8, ["title"])
|
|
4870
4870
|
]),
|
|
4871
|
-
|
|
4872
|
-
attachments:
|
|
4871
|
+
y(P5, {
|
|
4872
|
+
attachments: h.activity.attachments,
|
|
4873
4873
|
onAdd: x,
|
|
4874
|
-
onRemove:
|
|
4874
|
+
onRemove: le
|
|
4875
4875
|
}, null, 8, ["attachments"])
|
|
4876
4876
|
])
|
|
4877
4877
|
]),
|
|
@@ -4932,111 +4932,111 @@ const zu = {
|
|
|
4932
4932
|
setup(s, { emit: e }) {
|
|
4933
4933
|
const t = s, n = e1(
|
|
4934
4934
|
t.rule.itemType || ie.ACTIVITIES
|
|
4935
|
-
), a =
|
|
4935
|
+
), a = f({
|
|
4936
4936
|
get() {
|
|
4937
4937
|
return n.value;
|
|
4938
4938
|
},
|
|
4939
|
-
set(
|
|
4940
|
-
n.value =
|
|
4939
|
+
set($) {
|
|
4940
|
+
n.value = $, e("update:rule", {
|
|
4941
4941
|
...t.rule,
|
|
4942
|
-
itemType:
|
|
4942
|
+
itemType: $,
|
|
4943
4943
|
subItemId: void 0
|
|
4944
4944
|
});
|
|
4945
4945
|
}
|
|
4946
|
-
}), i =
|
|
4946
|
+
}), i = f(() => Object.values(ie)), l = f({
|
|
4947
4947
|
get() {
|
|
4948
4948
|
return t.rule.subItemId;
|
|
4949
4949
|
},
|
|
4950
|
-
set(
|
|
4950
|
+
set($) {
|
|
4951
4951
|
e("update:rule", {
|
|
4952
4952
|
...t.rule,
|
|
4953
|
-
subItemId:
|
|
4953
|
+
subItemId: $,
|
|
4954
4954
|
itemType: t.rule.itemType || a.value
|
|
4955
4955
|
});
|
|
4956
4956
|
}
|
|
4957
|
-
}), r =
|
|
4958
|
-
var
|
|
4959
|
-
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (
|
|
4957
|
+
}), r = f(() => {
|
|
4958
|
+
var b;
|
|
4959
|
+
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (b = {
|
|
4960
4960
|
[ie.ACTIVITIES]: t.templateActivities,
|
|
4961
4961
|
[ie.MILESTONES]: t.templateMilestones,
|
|
4962
4962
|
[ie.PHASES]: t.templatePhases
|
|
4963
|
-
}[n.value]) == null ? void 0 :
|
|
4964
|
-
value:
|
|
4965
|
-
label:
|
|
4963
|
+
}[n.value]) == null ? void 0 : b.map((B) => ({
|
|
4964
|
+
value: B.id,
|
|
4965
|
+
label: B.name
|
|
4966
4966
|
}));
|
|
4967
|
-
}), c = e1(t.rule.comparator), d =
|
|
4967
|
+
}), c = e1(t.rule.comparator), d = f({
|
|
4968
4968
|
get() {
|
|
4969
4969
|
return c.value;
|
|
4970
4970
|
},
|
|
4971
|
-
set(
|
|
4972
|
-
e("update:rule", { ...t.rule, comparator:
|
|
4971
|
+
set($) {
|
|
4972
|
+
e("update:rule", { ...t.rule, comparator: $ });
|
|
4973
4973
|
}
|
|
4974
|
-
}), p =
|
|
4974
|
+
}), p = f(() => Object.values(f7)), _ = e1(t.rule.trigger), m = f({
|
|
4975
4975
|
get() {
|
|
4976
4976
|
return _.value;
|
|
4977
4977
|
},
|
|
4978
|
-
set(
|
|
4979
|
-
e("update:rule", { ...t.rule, trigger:
|
|
4978
|
+
set($) {
|
|
4979
|
+
e("update:rule", { ...t.rule, trigger: $ });
|
|
4980
4980
|
}
|
|
4981
|
-
}),
|
|
4981
|
+
}), w = f(() => Object.values(g7)), I = f({
|
|
4982
4982
|
get() {
|
|
4983
4983
|
return t.rule.duration;
|
|
4984
4984
|
},
|
|
4985
|
-
set(
|
|
4986
|
-
e("update:rule", { ...t.rule, duration:
|
|
4985
|
+
set($) {
|
|
4986
|
+
e("update:rule", { ...t.rule, duration: $ });
|
|
4987
4987
|
}
|
|
4988
|
-
}), L =
|
|
4988
|
+
}), L = f({
|
|
4989
4989
|
get() {
|
|
4990
4990
|
return t.rule.durationUnit;
|
|
4991
4991
|
},
|
|
4992
|
-
set(
|
|
4993
|
-
e("update:rule", { ...t.rule, durationUnit:
|
|
4992
|
+
set($) {
|
|
4993
|
+
e("update:rule", { ...t.rule, durationUnit: $ });
|
|
4994
4994
|
}
|
|
4995
|
-
}), Z =
|
|
4996
|
-
return (
|
|
4995
|
+
}), Z = f(() => Object.values(y7));
|
|
4996
|
+
return ($, b) => (u(), j(Ke($.tagName), { class: "ao-rule-line" }, {
|
|
4997
4997
|
default: R(() => [
|
|
4998
|
-
|
|
4998
|
+
y(E(ve), {
|
|
4999
4999
|
modelValue: a.value,
|
|
5000
|
-
"onUpdate:modelValue":
|
|
5000
|
+
"onUpdate:modelValue": b[0] || (b[0] = (B) => a.value = B),
|
|
5001
5001
|
options: i.value
|
|
5002
5002
|
}, null, 8, ["modelValue", "options"]),
|
|
5003
|
-
|
|
5003
|
+
y(E(ve), {
|
|
5004
5004
|
modelValue: l.value,
|
|
5005
|
-
"onUpdate:modelValue":
|
|
5005
|
+
"onUpdate:modelValue": b[1] || (b[1] = (B) => l.value = B),
|
|
5006
5006
|
options: r.value
|
|
5007
5007
|
}, null, 8, ["modelValue", "options"]),
|
|
5008
|
-
|
|
5008
|
+
y(E(ve), {
|
|
5009
5009
|
modelValue: m.value,
|
|
5010
|
-
"onUpdate:modelValue":
|
|
5011
|
-
options:
|
|
5010
|
+
"onUpdate:modelValue": b[2] || (b[2] = (B) => m.value = B),
|
|
5011
|
+
options: w.value
|
|
5012
5012
|
}, null, 8, ["modelValue", "options"]),
|
|
5013
|
-
|
|
5013
|
+
y(E(ve), {
|
|
5014
5014
|
modelValue: d.value,
|
|
5015
|
-
"onUpdate:modelValue":
|
|
5015
|
+
"onUpdate:modelValue": b[3] || (b[3] = (B) => d.value = B),
|
|
5016
5016
|
options: p.value
|
|
5017
5017
|
}, null, 8, ["modelValue", "options"]),
|
|
5018
5018
|
qe(o("input", {
|
|
5019
|
-
"onUpdate:modelValue":
|
|
5019
|
+
"onUpdate:modelValue": b[4] || (b[4] = (B) => I.value = B),
|
|
5020
5020
|
type: "number",
|
|
5021
5021
|
min: "0"
|
|
5022
5022
|
}, null, 512), [
|
|
5023
5023
|
[
|
|
5024
5024
|
l1,
|
|
5025
|
-
|
|
5025
|
+
I.value,
|
|
5026
5026
|
void 0,
|
|
5027
5027
|
{ number: !0 }
|
|
5028
5028
|
]
|
|
5029
5029
|
]),
|
|
5030
|
-
|
|
5030
|
+
y(E(ve), {
|
|
5031
5031
|
modelValue: L.value,
|
|
5032
|
-
"onUpdate:modelValue":
|
|
5032
|
+
"onUpdate:modelValue": b[5] || (b[5] = (B) => L.value = B),
|
|
5033
5033
|
options: Z.value
|
|
5034
5034
|
}, null, 8, ["modelValue", "options"]),
|
|
5035
|
-
|
|
5035
|
+
y(ue, {
|
|
5036
5036
|
class: "ao-rule-line__remove",
|
|
5037
5037
|
"icon-name": "CloseRounded",
|
|
5038
5038
|
variant: "ghost",
|
|
5039
|
-
onClick:
|
|
5039
|
+
onClick: b[6] || (b[6] = (B) => $.$emit("close"))
|
|
5040
5040
|
})
|
|
5041
5041
|
]),
|
|
5042
5042
|
_: 1
|
|
@@ -5061,7 +5061,7 @@ const w7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rule
|
|
|
5061
5061
|
};
|
|
5062
5062
|
return (a, i) => (u(), j(Ct, null, {
|
|
5063
5063
|
header: R(() => [
|
|
5064
|
-
|
|
5064
|
+
y(ce, {
|
|
5065
5065
|
title: a.$t("template.rules.title"),
|
|
5066
5066
|
level: 2
|
|
5067
5067
|
}, null, 8, ["title"])
|
|
@@ -5069,7 +5069,7 @@ const w7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rule
|
|
|
5069
5069
|
default: R(() => [
|
|
5070
5070
|
o("div", w7, [
|
|
5071
5071
|
o("ul", M7, [
|
|
5072
|
-
(u(!0), C(
|
|
5072
|
+
(u(!0), C(ae, null, pe(a.rules, (l) => (u(), j($7, {
|
|
5073
5073
|
key: l.id,
|
|
5074
5074
|
rule: l,
|
|
5075
5075
|
"template-phases": a.templatePhases,
|
|
@@ -5079,7 +5079,7 @@ const w7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rule
|
|
|
5079
5079
|
onClose: () => n(l.id)
|
|
5080
5080
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
5081
5081
|
]),
|
|
5082
|
-
|
|
5082
|
+
y(Be, {
|
|
5083
5083
|
label: a.$t("template.rules.add"),
|
|
5084
5084
|
"icon-name": "Add",
|
|
5085
5085
|
onClick: t
|
|
@@ -5113,52 +5113,52 @@ const k7 = {
|
|
|
5113
5113
|
},
|
|
5114
5114
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
5115
5115
|
setup(s, { emit: e }) {
|
|
5116
|
-
const t = s, { t: n } = De(), a =
|
|
5116
|
+
const t = s, { t: n } = De(), a = f(
|
|
5117
5117
|
() => {
|
|
5118
|
-
var
|
|
5119
|
-
return (
|
|
5118
|
+
var g;
|
|
5119
|
+
return (g = t.templates) == null ? void 0 : g.find((O) => O.id === t.templateId);
|
|
5120
5120
|
}
|
|
5121
|
-
), i =
|
|
5122
|
-
var
|
|
5123
|
-
return (
|
|
5124
|
-
}), l =
|
|
5125
|
-
var
|
|
5126
|
-
return (
|
|
5121
|
+
), i = f(() => {
|
|
5122
|
+
var g, O;
|
|
5123
|
+
return (O = (g = a == null ? void 0 : a.value) == null ? void 0 : g.phases) == null ? void 0 : O.find((T) => T.id === t.phaseId);
|
|
5124
|
+
}), l = f(() => {
|
|
5125
|
+
var g, O;
|
|
5126
|
+
return (O = (g = i.value) == null ? void 0 : g.milestones) == null ? void 0 : O.find(
|
|
5127
5127
|
(T) => T.id === t.milestoneId
|
|
5128
5128
|
);
|
|
5129
|
-
}), r =
|
|
5130
|
-
var
|
|
5131
|
-
return ((
|
|
5129
|
+
}), r = f(() => {
|
|
5130
|
+
var g, O;
|
|
5131
|
+
return ((O = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : O.reduce((T, G) => {
|
|
5132
5132
|
const ee = G.milestones || [];
|
|
5133
5133
|
return [...T, ...ee];
|
|
5134
5134
|
}, [])) || [];
|
|
5135
|
-
}), c =
|
|
5136
|
-
var
|
|
5137
|
-
return ((
|
|
5135
|
+
}), c = f(() => {
|
|
5136
|
+
var g, O;
|
|
5137
|
+
return ((O = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : O.reduce((T, G) => {
|
|
5138
5138
|
const me = (G.milestones || []).reduce(
|
|
5139
5139
|
($e, ne) => ne.activities ? [...$e, ...ne.activities] : $e,
|
|
5140
5140
|
[]
|
|
5141
5141
|
);
|
|
5142
5142
|
return [...T, ...me];
|
|
5143
5143
|
}, [])) || [];
|
|
5144
|
-
}), d =
|
|
5145
|
-
var
|
|
5146
|
-
return (
|
|
5144
|
+
}), d = f(() => {
|
|
5145
|
+
var g, O;
|
|
5146
|
+
return (O = (g = l.value) == null ? void 0 : g.activities) == null ? void 0 : O.find(
|
|
5147
5147
|
(T) => T.id === t.activityId
|
|
5148
5148
|
);
|
|
5149
|
-
}), p =
|
|
5150
|
-
var
|
|
5151
|
-
return ((
|
|
5152
|
-
label:
|
|
5153
|
-
value:
|
|
5149
|
+
}), p = f(() => {
|
|
5150
|
+
var g;
|
|
5151
|
+
return ((g = t.activityTypes) == null ? void 0 : g.map((O) => ({
|
|
5152
|
+
label: O.name,
|
|
5153
|
+
value: O.id
|
|
5154
5154
|
}))) || [];
|
|
5155
|
-
}), _ =
|
|
5156
|
-
var
|
|
5157
|
-
return ((
|
|
5155
|
+
}), _ = f(() => {
|
|
5156
|
+
var g;
|
|
5157
|
+
return ((g = a.value) == null ? void 0 : g.name) || t.templateId;
|
|
5158
5158
|
}), m = () => {
|
|
5159
5159
|
if (!a.value)
|
|
5160
5160
|
return;
|
|
5161
|
-
const { name:
|
|
5161
|
+
const { name: g, rank: O } = ze(
|
|
5162
5162
|
a.value.phases,
|
|
5163
5163
|
"phase",
|
|
5164
5164
|
n
|
|
@@ -5167,39 +5167,39 @@ const k7 = {
|
|
|
5167
5167
|
type: ie.PHASES,
|
|
5168
5168
|
templateId: t.templateId,
|
|
5169
5169
|
item: {
|
|
5170
|
-
name:
|
|
5171
|
-
rank:
|
|
5170
|
+
name: g,
|
|
5171
|
+
rank: O,
|
|
5172
5172
|
templateId: t.templateId
|
|
5173
5173
|
}
|
|
5174
5174
|
});
|
|
5175
|
-
},
|
|
5175
|
+
}, w = (g) => {
|
|
5176
5176
|
e("updateItem", {
|
|
5177
5177
|
templateId: t.templateId,
|
|
5178
5178
|
id: t.templateId,
|
|
5179
5179
|
itemType: ie.TEMPLATES,
|
|
5180
|
-
data: { name:
|
|
5180
|
+
data: { name: g }
|
|
5181
5181
|
});
|
|
5182
|
-
},
|
|
5182
|
+
}, I = (g) => {
|
|
5183
5183
|
e("removeItem", {
|
|
5184
5184
|
type: ie.PHASES,
|
|
5185
5185
|
templateId: t.templateId,
|
|
5186
5186
|
data: {
|
|
5187
|
-
id:
|
|
5187
|
+
id: g
|
|
5188
5188
|
}
|
|
5189
5189
|
});
|
|
5190
|
-
}, L = (
|
|
5190
|
+
}, L = (g, O) => {
|
|
5191
5191
|
e("updateItem", {
|
|
5192
5192
|
templateId: t.templateId,
|
|
5193
|
-
id:
|
|
5193
|
+
id: g,
|
|
5194
5194
|
itemType: ie.PHASES,
|
|
5195
|
-
data: { name:
|
|
5195
|
+
data: { name: O }
|
|
5196
5196
|
});
|
|
5197
|
-
}, Z = (
|
|
5198
|
-
e("updateItem",
|
|
5199
|
-
},
|
|
5197
|
+
}, Z = (g) => {
|
|
5198
|
+
e("updateItem", g);
|
|
5199
|
+
}, $ = (g) => {
|
|
5200
5200
|
if (!i.value)
|
|
5201
5201
|
return;
|
|
5202
|
-
const { name:
|
|
5202
|
+
const { name: O, rank: T } = ze(
|
|
5203
5203
|
i.value.milestones,
|
|
5204
5204
|
"milestone",
|
|
5205
5205
|
n
|
|
@@ -5207,32 +5207,32 @@ const k7 = {
|
|
|
5207
5207
|
e("addItem", {
|
|
5208
5208
|
type: ie.MILESTONES,
|
|
5209
5209
|
templateId: t.templateId,
|
|
5210
|
-
phaseId:
|
|
5210
|
+
phaseId: g.phaseId,
|
|
5211
5211
|
item: {
|
|
5212
|
-
name:
|
|
5212
|
+
name: O,
|
|
5213
5213
|
rank: T,
|
|
5214
|
-
phaseId:
|
|
5214
|
+
phaseId: g.phaseId
|
|
5215
5215
|
}
|
|
5216
5216
|
});
|
|
5217
|
-
},
|
|
5217
|
+
}, b = (g) => {
|
|
5218
5218
|
e("removeItem", {
|
|
5219
5219
|
type: ie.MILESTONES,
|
|
5220
5220
|
templateId: t.templateId,
|
|
5221
|
-
phaseId:
|
|
5221
|
+
phaseId: g.phaseId,
|
|
5222
5222
|
data: {
|
|
5223
|
-
id:
|
|
5223
|
+
id: g.id
|
|
5224
5224
|
}
|
|
5225
5225
|
});
|
|
5226
|
-
},
|
|
5227
|
-
const { id:
|
|
5226
|
+
}, B = (g) => {
|
|
5227
|
+
const { id: O, ...T } = g;
|
|
5228
5228
|
e("updateItem", {
|
|
5229
5229
|
itemType: ie.MILESTONES,
|
|
5230
|
-
id:
|
|
5230
|
+
id: O,
|
|
5231
5231
|
templateId: t.templateId,
|
|
5232
5232
|
data: T
|
|
5233
5233
|
});
|
|
5234
|
-
}, x = (
|
|
5235
|
-
const { milestoneId:
|
|
5234
|
+
}, x = (g) => {
|
|
5235
|
+
const { milestoneId: O } = g;
|
|
5236
5236
|
if (!l.value)
|
|
5237
5237
|
return;
|
|
5238
5238
|
const { name: T, rank: G } = ze(
|
|
@@ -5242,25 +5242,25 @@ const k7 = {
|
|
|
5242
5242
|
);
|
|
5243
5243
|
e("addItem", {
|
|
5244
5244
|
type: ie.ACTIVITIES,
|
|
5245
|
-
milestoneId:
|
|
5246
|
-
item: { name: T, rank: G, milestoneId:
|
|
5245
|
+
milestoneId: O,
|
|
5246
|
+
item: { name: T, rank: G, milestoneId: O }
|
|
5247
5247
|
});
|
|
5248
|
-
},
|
|
5249
|
-
const { phaseId:
|
|
5248
|
+
}, le = (g) => {
|
|
5249
|
+
const { phaseId: O, milestoneId: T } = g;
|
|
5250
5250
|
e("removeItem", {
|
|
5251
5251
|
type: ie.ACTIVITIES,
|
|
5252
5252
|
templateId: t.templateId,
|
|
5253
|
-
phaseId:
|
|
5253
|
+
phaseId: O,
|
|
5254
5254
|
milestoneId: T,
|
|
5255
5255
|
data: {
|
|
5256
|
-
id:
|
|
5256
|
+
id: g.id
|
|
5257
5257
|
}
|
|
5258
5258
|
});
|
|
5259
|
-
},
|
|
5260
|
-
const { id:
|
|
5259
|
+
}, h = (g) => {
|
|
5260
|
+
const { id: O, ...T } = g;
|
|
5261
5261
|
e("updateItem", {
|
|
5262
5262
|
itemType: ie.ACTIVITIES,
|
|
5263
|
-
id:
|
|
5263
|
+
id: O,
|
|
5264
5264
|
templateId: t.templateId,
|
|
5265
5265
|
data: T
|
|
5266
5266
|
});
|
|
@@ -5268,74 +5268,74 @@ const k7 = {
|
|
|
5268
5268
|
H.value = !H.value;
|
|
5269
5269
|
}, te = () => {
|
|
5270
5270
|
e("addRule", { templateId: t.templateId });
|
|
5271
|
-
}, re = (
|
|
5272
|
-
e("removeRule", { id:
|
|
5273
|
-
}, Ce = (
|
|
5274
|
-
var
|
|
5275
|
-
if (
|
|
5276
|
-
const T = w1(
|
|
5271
|
+
}, re = (g) => {
|
|
5272
|
+
e("removeRule", { id: g, templateId: t.templateId });
|
|
5273
|
+
}, Ce = (g) => {
|
|
5274
|
+
var O;
|
|
5275
|
+
if (g.moved) {
|
|
5276
|
+
const T = w1(g, ((O = a.value) == null ? void 0 : O.phases) ?? []);
|
|
5277
5277
|
e("updateItem", {
|
|
5278
5278
|
itemType: ie.PHASES,
|
|
5279
|
-
id:
|
|
5279
|
+
id: g.moved.element.id,
|
|
5280
5280
|
templateId: t.templateId,
|
|
5281
5281
|
data: {
|
|
5282
5282
|
rank: T
|
|
5283
5283
|
}
|
|
5284
5284
|
});
|
|
5285
5285
|
}
|
|
5286
|
-
}, D = (
|
|
5286
|
+
}, D = (g) => {
|
|
5287
5287
|
!i.value || !l.value || !d.value || e("addItem", {
|
|
5288
5288
|
type: ie.SUBTASKS,
|
|
5289
|
-
activityId:
|
|
5289
|
+
activityId: g.activityId,
|
|
5290
5290
|
milestoneId: l.value.id,
|
|
5291
5291
|
phaseId: i.value.id,
|
|
5292
5292
|
templateId: t.templateId,
|
|
5293
|
-
item:
|
|
5293
|
+
item: g
|
|
5294
5294
|
});
|
|
5295
|
-
}, X = (
|
|
5296
|
-
var
|
|
5295
|
+
}, X = (g) => {
|
|
5296
|
+
var O, T, G;
|
|
5297
5297
|
!i.value || !l.value || !d.value || e("updateItem", {
|
|
5298
5298
|
itemType: ie.SUBTASKS,
|
|
5299
|
-
phaseId: (
|
|
5299
|
+
phaseId: (O = i.value) == null ? void 0 : O.id,
|
|
5300
5300
|
milestoneId: (T = l.value) == null ? void 0 : T.id,
|
|
5301
5301
|
activityId: (G = d.value) == null ? void 0 : G.id,
|
|
5302
5302
|
templateId: t.templateId,
|
|
5303
|
-
data:
|
|
5303
|
+
data: g
|
|
5304
5304
|
});
|
|
5305
|
-
},
|
|
5305
|
+
}, A = (g) => {
|
|
5306
5306
|
!i.value || !l.value || !d.value || e("removeItem", {
|
|
5307
5307
|
type: ie.SUBTASKS,
|
|
5308
5308
|
activityId: d.value.id,
|
|
5309
5309
|
milestoneId: l.value.id,
|
|
5310
5310
|
phaseId: i.value.id,
|
|
5311
5311
|
templateId: t.templateId,
|
|
5312
|
-
data:
|
|
5312
|
+
data: g
|
|
5313
5313
|
});
|
|
5314
|
-
}, W = (
|
|
5315
|
-
e("addFiles",
|
|
5316
|
-
}, _e = (
|
|
5317
|
-
e("removeFile",
|
|
5314
|
+
}, W = (g) => {
|
|
5315
|
+
e("addFiles", g);
|
|
5316
|
+
}, _e = (g) => {
|
|
5317
|
+
e("removeFile", g);
|
|
5318
5318
|
};
|
|
5319
|
-
return (
|
|
5319
|
+
return (g, O) => {
|
|
5320
5320
|
var T, G, ee, me, $e, ne;
|
|
5321
5321
|
return a.value ? (u(), C("div", k7, [
|
|
5322
|
-
|
|
5322
|
+
y(M1, {
|
|
5323
5323
|
"can-go-back": !0,
|
|
5324
|
-
onGoBack:
|
|
5324
|
+
onGoBack: O[1] || (O[1] = (q) => g.$router.push({ name: E(t1).TEMPLATES_LIST }))
|
|
5325
5325
|
}, {
|
|
5326
5326
|
primary: R(() => [
|
|
5327
|
-
|
|
5327
|
+
y(ce, {
|
|
5328
5328
|
title: _.value,
|
|
5329
5329
|
level: 2,
|
|
5330
5330
|
"is-editable": !0,
|
|
5331
|
-
"onUpdate:title":
|
|
5332
|
-
|
|
5331
|
+
"onUpdate:title": O[0] || (O[0] = (q) => {
|
|
5332
|
+
w(q);
|
|
5333
5333
|
})
|
|
5334
5334
|
}, null, 8, ["title"])
|
|
5335
5335
|
]),
|
|
5336
5336
|
secondary: R(() => [
|
|
5337
|
-
|
|
5338
|
-
label:
|
|
5337
|
+
y(ue, {
|
|
5338
|
+
label: g.$t("template.rules.edit"),
|
|
5339
5339
|
color: "primary",
|
|
5340
5340
|
"icon-name": "Settings",
|
|
5341
5341
|
"icon-position": "start",
|
|
@@ -5347,7 +5347,7 @@ const k7 = {
|
|
|
5347
5347
|
o("div", I7, [
|
|
5348
5348
|
o("ol", S7, [
|
|
5349
5349
|
o("li", V7, [
|
|
5350
|
-
|
|
5350
|
+
y(E(n1), {
|
|
5351
5351
|
"model-value": a.value.phases,
|
|
5352
5352
|
class: "ao-templates__list",
|
|
5353
5353
|
"item-key": "id",
|
|
@@ -5355,36 +5355,36 @@ const k7 = {
|
|
|
5355
5355
|
onChange: Ce
|
|
5356
5356
|
}, {
|
|
5357
5357
|
header: R(() => [
|
|
5358
|
-
|
|
5359
|
-
title:
|
|
5358
|
+
y(ce, {
|
|
5359
|
+
title: g.$t("template.phases.title"),
|
|
5360
5360
|
level: 3,
|
|
5361
5361
|
class: "ao-list__title"
|
|
5362
5362
|
}, null, 8, ["title"])
|
|
5363
5363
|
]),
|
|
5364
5364
|
item: R(({ element: q }) => {
|
|
5365
|
-
var
|
|
5365
|
+
var k;
|
|
5366
5366
|
return [
|
|
5367
|
-
|
|
5367
|
+
y(S3, {
|
|
5368
5368
|
id: q.id,
|
|
5369
5369
|
name: q.name,
|
|
5370
5370
|
milestones: q.milestones,
|
|
5371
|
-
"is-active": ((
|
|
5371
|
+
"is-active": ((k = i.value) == null ? void 0 : k.id) === q.id,
|
|
5372
5372
|
"is-draggable": !0,
|
|
5373
|
-
onClick: (P) =>
|
|
5374
|
-
params: { templateId:
|
|
5373
|
+
onClick: (P) => g.$router.push({
|
|
5374
|
+
params: { templateId: g.templateId, phaseId: q.id }
|
|
5375
5375
|
}),
|
|
5376
5376
|
"onUpdate:title": (P) => {
|
|
5377
5377
|
L(q.id, P);
|
|
5378
5378
|
},
|
|
5379
|
-
onRemove: () =>
|
|
5379
|
+
onRemove: () => I(q.id)
|
|
5380
5380
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
5381
5381
|
];
|
|
5382
5382
|
}),
|
|
5383
5383
|
footer: R(() => [
|
|
5384
5384
|
o("div", L7, [
|
|
5385
|
-
|
|
5385
|
+
y(Be, {
|
|
5386
5386
|
"icon-name": "AddBoxOutlineRounded",
|
|
5387
|
-
label:
|
|
5387
|
+
label: g.$t("template.phases.add"),
|
|
5388
5388
|
onClick: m
|
|
5389
5389
|
}, null, 8, ["label"])
|
|
5390
5390
|
])
|
|
@@ -5395,26 +5395,26 @@ const k7 = {
|
|
|
5395
5395
|
o("li", T7, [
|
|
5396
5396
|
i.value ? (u(), j(T3, {
|
|
5397
5397
|
key: 0,
|
|
5398
|
-
"template-id":
|
|
5398
|
+
"template-id": g.templateId,
|
|
5399
5399
|
phase: i.value,
|
|
5400
5400
|
"milestone-id": (T = l.value) == null ? void 0 : T.id,
|
|
5401
|
-
onAddMilestone:
|
|
5402
|
-
onUpdateMilestone:
|
|
5401
|
+
onAddMilestone: $,
|
|
5402
|
+
onUpdateMilestone: B,
|
|
5403
5403
|
onUpdatePhase: Z,
|
|
5404
|
-
onRemoveMilestone:
|
|
5405
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) :
|
|
5404
|
+
onRemoveMilestone: b
|
|
5405
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : M("", !0)
|
|
5406
5406
|
]),
|
|
5407
5407
|
o("li", E7, [
|
|
5408
5408
|
i.value && l.value ? (u(), j(O3, {
|
|
5409
5409
|
key: 0,
|
|
5410
|
-
"template-id":
|
|
5410
|
+
"template-id": g.templateId,
|
|
5411
5411
|
"phase-id": (G = i.value) == null ? void 0 : G.id,
|
|
5412
5412
|
milestone: l.value,
|
|
5413
5413
|
"activity-id": (ee = d.value) == null ? void 0 : ee.id,
|
|
5414
5414
|
onAddActivity: x,
|
|
5415
|
-
onUpdateActivity:
|
|
5416
|
-
onRemoveActivity:
|
|
5417
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) :
|
|
5415
|
+
onUpdateActivity: h,
|
|
5416
|
+
onRemoveActivity: le
|
|
5417
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : M("", !0)
|
|
5418
5418
|
])
|
|
5419
5419
|
])
|
|
5420
5420
|
]),
|
|
@@ -5428,16 +5428,16 @@ const k7 = {
|
|
|
5428
5428
|
"template-activities": c.value,
|
|
5429
5429
|
"template-milestones": r.value,
|
|
5430
5430
|
"is-template": !0,
|
|
5431
|
-
"onUpdate:activity":
|
|
5432
|
-
d.value &&
|
|
5431
|
+
"onUpdate:activity": O[2] || (O[2] = (q) => {
|
|
5432
|
+
d.value && h(q);
|
|
5433
5433
|
}),
|
|
5434
|
-
onClose:
|
|
5434
|
+
onClose: g.$router.back,
|
|
5435
5435
|
onAddSubtask: D,
|
|
5436
5436
|
onUpdateSubtask: X,
|
|
5437
|
-
onDeleteSubtask:
|
|
5437
|
+
onDeleteSubtask: A,
|
|
5438
5438
|
onAddFiles: W,
|
|
5439
5439
|
onRemoveFile: _e
|
|
5440
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) :
|
|
5440
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : M("", !0)
|
|
5441
5441
|
])),
|
|
5442
5442
|
(u(), j(C1, { to: "body" }, [
|
|
5443
5443
|
H.value ? (u(), j(A7, {
|
|
@@ -5450,9 +5450,9 @@ const k7 = {
|
|
|
5450
5450
|
onClose: U,
|
|
5451
5451
|
onAddRule: te,
|
|
5452
5452
|
onRemoveRule: re
|
|
5453
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) :
|
|
5453
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : M("", !0)
|
|
5454
5454
|
]))
|
|
5455
|
-
])) :
|
|
5455
|
+
])) : M("", !0);
|
|
5456
5456
|
};
|
|
5457
5457
|
}
|
|
5458
5458
|
});
|
|
@@ -5475,13 +5475,13 @@ const O7 = {
|
|
|
5475
5475
|
default: R(() => [
|
|
5476
5476
|
e.$slots.header ? (u(), C("header", O7, [
|
|
5477
5477
|
Y(e.$slots, "header")
|
|
5478
|
-
])) :
|
|
5478
|
+
])) : M("", !0),
|
|
5479
5479
|
o("div", B7, [
|
|
5480
5480
|
Y(e.$slots, "default")
|
|
5481
5481
|
]),
|
|
5482
5482
|
e.$slots.footer ? (u(), C("footer", D7, [
|
|
5483
5483
|
Y(e.$slots, "footer")
|
|
5484
|
-
])) :
|
|
5484
|
+
])) : M("", !0)
|
|
5485
5485
|
]),
|
|
5486
5486
|
_: 3
|
|
5487
5487
|
}, 8, ["class"]));
|
|
@@ -5494,12 +5494,12 @@ const q1 = /* @__PURE__ */ K({
|
|
|
5494
5494
|
status: {}
|
|
5495
5495
|
},
|
|
5496
5496
|
setup(s) {
|
|
5497
|
-
const e = s, t =
|
|
5497
|
+
const e = s, t = f(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
5498
5498
|
return (n, a) => (u(), C("div", {
|
|
5499
5499
|
class: F(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
|
|
5500
5500
|
role: "meter"
|
|
5501
5501
|
}, [
|
|
5502
|
-
(u(!0), C(
|
|
5502
|
+
(u(!0), C(ae, null, pe(t.value, (i) => (u(), C("div", {
|
|
5503
5503
|
key: i,
|
|
5504
5504
|
class: F(["ao-progress__progress"]),
|
|
5505
5505
|
style: Kt({ width: `${i * 100}%` })
|
|
@@ -5519,13 +5519,13 @@ const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-pr
|
|
|
5519
5519
|
milestones: {}
|
|
5520
5520
|
},
|
|
5521
5521
|
setup(s) {
|
|
5522
|
-
const e = s, t =
|
|
5522
|
+
const e = s, t = f(() => {
|
|
5523
5523
|
var i;
|
|
5524
5524
|
return (i = e.milestones) == null ? void 0 : i.length;
|
|
5525
|
-
}), n =
|
|
5525
|
+
}), n = f(() => {
|
|
5526
5526
|
var i;
|
|
5527
5527
|
return (i = e.milestones) == null ? void 0 : i.filter((l) => l.status === h7.done).length;
|
|
5528
|
-
}), a =
|
|
5528
|
+
}), a = f(() => (n.value || 0) / (t.value || 1));
|
|
5529
5529
|
return (i, l) => (u(), j(U1, { class: "ao-card-project-phase" }, {
|
|
5530
5530
|
header: R(() => [
|
|
5531
5531
|
o("div", Z7, [
|
|
@@ -5535,11 +5535,11 @@ const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-pr
|
|
|
5535
5535
|
class: "ao-card-project-phase__project",
|
|
5536
5536
|
variant: "solid",
|
|
5537
5537
|
color: "primary"
|
|
5538
|
-
}, null, 8, ["label"])) :
|
|
5538
|
+
}, null, 8, ["label"])) : M("", !0)
|
|
5539
5539
|
])
|
|
5540
5540
|
]),
|
|
5541
5541
|
default: R(() => [
|
|
5542
|
-
|
|
5542
|
+
y(ce, {
|
|
5543
5543
|
title: i.name || i.id,
|
|
5544
5544
|
level: 4
|
|
5545
5545
|
}, null, 8, ["title"])
|
|
@@ -5547,22 +5547,22 @@ const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-pr
|
|
|
5547
5547
|
footer: R(() => [
|
|
5548
5548
|
o("div", P7, [
|
|
5549
5549
|
o("div", j7, [
|
|
5550
|
-
t.value ? (u(), C(
|
|
5550
|
+
t.value ? (u(), C(ae, { key: 0 }, [
|
|
5551
5551
|
o("div", N7, [
|
|
5552
|
-
|
|
5552
|
+
y(se, {
|
|
5553
5553
|
name: "MountainFlagOutlineRounded",
|
|
5554
5554
|
size: "sm"
|
|
5555
5555
|
}),
|
|
5556
5556
|
o("span", R7, N(n.value) + " / " + N(t.value), 1)
|
|
5557
5557
|
]),
|
|
5558
|
-
|
|
5558
|
+
y(q1, {
|
|
5559
5559
|
percentages: a.value,
|
|
5560
5560
|
class: "ao-card-project-phase__progress"
|
|
5561
5561
|
}, null, 8, ["percentages"])
|
|
5562
|
-
], 64)) :
|
|
5562
|
+
], 64)) : M("", !0),
|
|
5563
5563
|
i.$slots.secondary ? (u(), C("div", U7, [
|
|
5564
5564
|
Y(i.$slots, "secondary")
|
|
5565
|
-
])) :
|
|
5565
|
+
])) : M("", !0)
|
|
5566
5566
|
])
|
|
5567
5567
|
])
|
|
5568
5568
|
]),
|
|
@@ -5582,23 +5582,23 @@ const z7 = { class: "ao-card-project-phase__footer" }, F7 = { class: "ao-card-pr
|
|
|
5582
5582
|
doneStatus: {}
|
|
5583
5583
|
},
|
|
5584
5584
|
setup(s) {
|
|
5585
|
-
const e = s, t =
|
|
5585
|
+
const e = s, t = f(() => {
|
|
5586
5586
|
var i;
|
|
5587
5587
|
return (i = e.activities) == null ? void 0 : i.length;
|
|
5588
|
-
}), n =
|
|
5588
|
+
}), n = f(() => {
|
|
5589
5589
|
var i;
|
|
5590
5590
|
return (i = e.activities) == null ? void 0 : i.filter((l) => {
|
|
5591
5591
|
var r, c;
|
|
5592
5592
|
return ((r = l.status) == null ? void 0 : r.id) === ((c = e.doneStatus) == null ? void 0 : c.id);
|
|
5593
5593
|
}).length;
|
|
5594
|
-
}), a =
|
|
5594
|
+
}), a = f(() => (n.value || 0) / (t.value || 1));
|
|
5595
5595
|
return (i, l) => (u(), j(U1, {
|
|
5596
5596
|
class: "ao-card-project-milestone",
|
|
5597
5597
|
"is-clickable": !0,
|
|
5598
5598
|
"tag-name": "li"
|
|
5599
5599
|
}, {
|
|
5600
5600
|
default: R(() => [
|
|
5601
|
-
|
|
5601
|
+
y(ce, {
|
|
5602
5602
|
title: i.name || i.id,
|
|
5603
5603
|
level: 5
|
|
5604
5604
|
}, null, 8, ["title"])
|
|
@@ -5606,22 +5606,22 @@ const z7 = { class: "ao-card-project-phase__footer" }, F7 = { class: "ao-card-pr
|
|
|
5606
5606
|
footer: R(() => [
|
|
5607
5607
|
o("div", z7, [
|
|
5608
5608
|
o("div", F7, [
|
|
5609
|
-
t.value ? (u(), C(
|
|
5609
|
+
t.value ? (u(), C(ae, { key: 0 }, [
|
|
5610
5610
|
o("div", K7, [
|
|
5611
|
-
|
|
5611
|
+
y(se, {
|
|
5612
5612
|
name: "SelectCheckBox",
|
|
5613
5613
|
size: "sm"
|
|
5614
5614
|
}),
|
|
5615
5615
|
o("span", G7, N(n.value) + " / " + N(t.value), 1)
|
|
5616
5616
|
]),
|
|
5617
|
-
|
|
5617
|
+
y(q1, {
|
|
5618
5618
|
percentages: a.value,
|
|
5619
5619
|
class: "ao-card-project-phase__progress"
|
|
5620
5620
|
}, null, 8, ["percentages"])
|
|
5621
|
-
], 64)) :
|
|
5621
|
+
], 64)) : M("", !0),
|
|
5622
5622
|
i.$slots.secondary ? (u(), C("div", Y7, [
|
|
5623
5623
|
Y(i.$slots, "secondary")
|
|
5624
|
-
])) :
|
|
5624
|
+
])) : M("", !0)
|
|
5625
5625
|
])
|
|
5626
5626
|
])
|
|
5627
5627
|
]),
|
|
@@ -5637,13 +5637,13 @@ const X7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__col-p
|
|
|
5637
5637
|
},
|
|
5638
5638
|
emits: ["addMilestone"],
|
|
5639
5639
|
setup(s, { emit: e }) {
|
|
5640
|
-
const t = s, { t: n } = De(), a =
|
|
5640
|
+
const t = s, { t: n } = De(), a = f(() => t.phase.milestones), i = (l) => {
|
|
5641
5641
|
const { name: r, rank: c } = ze(a.value ?? [], "milestone", n);
|
|
5642
5642
|
e("addMilestone", { name: r, rank: c, phaseId: l });
|
|
5643
5643
|
};
|
|
5644
5644
|
return (l, r) => (u(), C("li", X7, [
|
|
5645
5645
|
o("div", J7, [
|
|
5646
|
-
|
|
5646
|
+
y(q7, {
|
|
5647
5647
|
id: l.phase.id,
|
|
5648
5648
|
milestones: a.value,
|
|
5649
5649
|
name: l.phase.name,
|
|
@@ -5653,7 +5653,7 @@ const X7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__col-p
|
|
|
5653
5653
|
o("div", Q7, [
|
|
5654
5654
|
o("div", x7, [
|
|
5655
5655
|
o("ul", e0, [
|
|
5656
|
-
(u(!0), C(
|
|
5656
|
+
(u(!0), C(ae, null, pe(a.value, (c) => (u(), j(W7, {
|
|
5657
5657
|
id: c.id,
|
|
5658
5658
|
key: c.id,
|
|
5659
5659
|
name: c.name,
|
|
@@ -5666,7 +5666,7 @@ const X7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__col-p
|
|
|
5666
5666
|
}, null, 8, ["id", "name", "activities", "onClick"]))), 128))
|
|
5667
5667
|
]),
|
|
5668
5668
|
o("div", t0, [
|
|
5669
|
-
|
|
5669
|
+
y(Be, {
|
|
5670
5670
|
label: l.$t("project.milestone.add"),
|
|
5671
5671
|
class: "ao-project-phase__milestone-add",
|
|
5672
5672
|
"icon-name": "Add",
|
|
@@ -5692,6 +5692,7 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5692
5692
|
__name: "AoProjectOverviewProject",
|
|
5693
5693
|
props: {
|
|
5694
5694
|
project: {},
|
|
5695
|
+
phases: {},
|
|
5695
5696
|
users: {},
|
|
5696
5697
|
userId: {}
|
|
5697
5698
|
},
|
|
@@ -5701,40 +5702,40 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5701
5702
|
Gt(() => {
|
|
5702
5703
|
a({ users: t.users, userId: t.userId });
|
|
5703
5704
|
});
|
|
5704
|
-
const i =
|
|
5705
|
-
const { name:
|
|
5706
|
-
e("addPhase", { name:
|
|
5707
|
-
},
|
|
5708
|
-
e("addMilestone",
|
|
5709
|
-
},
|
|
5710
|
-
e("addActivity",
|
|
5711
|
-
},
|
|
5712
|
-
e("update:activity",
|
|
5713
|
-
},
|
|
5714
|
-
e("addSubtask",
|
|
5715
|
-
},
|
|
5716
|
-
() =>
|
|
5717
|
-
),
|
|
5718
|
-
e("addFiles",
|
|
5719
|
-
},
|
|
5720
|
-
e("removeFile",
|
|
5721
|
-
},
|
|
5722
|
-
e("addComment",
|
|
5723
|
-
},
|
|
5724
|
-
e("updateComment",
|
|
5725
|
-
},
|
|
5726
|
-
e("removeComment",
|
|
5705
|
+
const i = f(() => t.phases.flatMap(($) => $.milestones)), l = () => {
|
|
5706
|
+
const { name: $, rank: b } = ze(t.phases, "phase", n);
|
|
5707
|
+
e("addPhase", { name: $, rank: b, projectId: t.project.id });
|
|
5708
|
+
}, r = ($) => {
|
|
5709
|
+
e("addMilestone", $);
|
|
5710
|
+
}, c = ($) => {
|
|
5711
|
+
e("addActivity", $);
|
|
5712
|
+
}, d = ($) => {
|
|
5713
|
+
e("update:activity", $);
|
|
5714
|
+
}, p = ($) => {
|
|
5715
|
+
e("addSubtask", $);
|
|
5716
|
+
}, _ = f(
|
|
5717
|
+
() => i.value.flatMap(($) => $.activities)
|
|
5718
|
+
), m = ($) => {
|
|
5719
|
+
e("addFiles", $);
|
|
5720
|
+
}, w = ($) => {
|
|
5721
|
+
e("removeFile", $);
|
|
5722
|
+
}, I = ($) => {
|
|
5723
|
+
e("addComment", $);
|
|
5724
|
+
}, L = ($) => {
|
|
5725
|
+
e("updateComment", $);
|
|
5726
|
+
}, Z = ($) => {
|
|
5727
|
+
e("removeComment", $);
|
|
5727
5728
|
};
|
|
5728
|
-
return (
|
|
5729
|
-
const
|
|
5729
|
+
return ($, b) => {
|
|
5730
|
+
const B = Yt("RouterView");
|
|
5730
5731
|
return u(), C("div", a0, [
|
|
5731
5732
|
o("div", l0, [
|
|
5732
|
-
|
|
5733
|
+
y(M1, null, {
|
|
5733
5734
|
primary: R(() => [
|
|
5734
|
-
|
|
5735
|
-
label:
|
|
5735
|
+
y(ue, {
|
|
5736
|
+
label: $.$t("project.phases.add"),
|
|
5736
5737
|
color: "primary",
|
|
5737
|
-
onClick:
|
|
5738
|
+
onClick: l
|
|
5738
5739
|
}, null, 8, ["label"])
|
|
5739
5740
|
]),
|
|
5740
5741
|
_: 1
|
|
@@ -5743,60 +5744,60 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5743
5744
|
o("header", i0, [
|
|
5744
5745
|
o("div", o0, [
|
|
5745
5746
|
o("div", r0, [
|
|
5746
|
-
|
|
5747
|
+
y(se, {
|
|
5747
5748
|
class: "ao-project__col-title-icon",
|
|
5748
5749
|
name: "WaterfallChartRounded",
|
|
5749
5750
|
size: "md"
|
|
5750
5751
|
}),
|
|
5751
|
-
|
|
5752
|
+
y(ce, {
|
|
5752
5753
|
level: 3,
|
|
5753
|
-
title:
|
|
5754
|
+
title: $.$t("project.phases.title")
|
|
5754
5755
|
}, null, 8, ["title"])
|
|
5755
5756
|
])
|
|
5756
5757
|
]),
|
|
5757
5758
|
o("div", u0, [
|
|
5758
5759
|
o("div", c0, [
|
|
5759
|
-
|
|
5760
|
+
y(se, {
|
|
5760
5761
|
class: "ao-project__col-title-icon",
|
|
5761
5762
|
name: "MountainFlagOutlineRounded",
|
|
5762
5763
|
size: "md"
|
|
5763
5764
|
}),
|
|
5764
|
-
|
|
5765
|
+
y(ce, {
|
|
5765
5766
|
level: 3,
|
|
5766
|
-
title:
|
|
5767
|
+
title: $.$t("project.milestones.title")
|
|
5767
5768
|
}, null, 8, ["title"])
|
|
5768
5769
|
])
|
|
5769
5770
|
])
|
|
5770
5771
|
]),
|
|
5771
5772
|
o("ul", d0, [
|
|
5772
|
-
(u(!0), C(
|
|
5773
|
-
key:
|
|
5774
|
-
phase:
|
|
5775
|
-
"project-name":
|
|
5776
|
-
onAddMilestone:
|
|
5773
|
+
(u(!0), C(ae, null, pe($.phases, (x) => (u(), j(s0, {
|
|
5774
|
+
key: x.id,
|
|
5775
|
+
phase: x,
|
|
5776
|
+
"project-name": $.project.name,
|
|
5777
|
+
onAddMilestone: r
|
|
5777
5778
|
}, null, 8, ["phase", "project-name"]))), 128))
|
|
5778
5779
|
])
|
|
5779
5780
|
])
|
|
5780
5781
|
]),
|
|
5781
|
-
|
|
5782
|
+
y(B, {
|
|
5782
5783
|
class: "ao-project__sidebar",
|
|
5783
|
-
milestones:
|
|
5784
|
-
"project-name":
|
|
5785
|
-
users:
|
|
5786
|
-
onClose:
|
|
5787
|
-
onAddActivity:
|
|
5784
|
+
milestones: i.value,
|
|
5785
|
+
"project-name": $.project.name,
|
|
5786
|
+
users: $.users,
|
|
5787
|
+
onClose: b[0] || (b[0] = (x) => $.$router.push({ name: E(Fe).project })),
|
|
5788
|
+
onAddActivity: c
|
|
5788
5789
|
}, null, 8, ["milestones", "project-name", "users"]),
|
|
5789
5790
|
(u(), j(C1, { to: "body" }, [
|
|
5790
|
-
|
|
5791
|
+
y(B, {
|
|
5791
5792
|
name: "modal",
|
|
5792
|
-
activities:
|
|
5793
|
-
"onUpdate:activity":
|
|
5794
|
-
onAddSubtask:
|
|
5795
|
-
onAddFiles:
|
|
5796
|
-
onRemoveFile:
|
|
5797
|
-
onAddComment:
|
|
5798
|
-
onUpdateComment:
|
|
5799
|
-
onRemoveComment:
|
|
5793
|
+
activities: _.value,
|
|
5794
|
+
"onUpdate:activity": d,
|
|
5795
|
+
onAddSubtask: p,
|
|
5796
|
+
onAddFiles: m,
|
|
5797
|
+
onRemoveFile: w,
|
|
5798
|
+
onAddComment: I,
|
|
5799
|
+
onUpdateComment: L,
|
|
5800
|
+
onRemoveComment: Z
|
|
5800
5801
|
}, null, 8, ["activities"])
|
|
5801
5802
|
]))
|
|
5802
5803
|
]);
|
|
@@ -5850,24 +5851,24 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5850
5851
|
id: t.id,
|
|
5851
5852
|
name: _
|
|
5852
5853
|
});
|
|
5853
|
-
}, a =
|
|
5854
|
+
}, a = f(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), i = f(() => {
|
|
5854
5855
|
var _;
|
|
5855
5856
|
return (_ = t.assignees) == null ? void 0 : _.map((m) => {
|
|
5856
|
-
var
|
|
5857
|
-
return (
|
|
5857
|
+
var w;
|
|
5858
|
+
return (w = t.users) == null ? void 0 : w.find((I) => I.id === m);
|
|
5858
5859
|
});
|
|
5859
5860
|
}), l = (_) => {
|
|
5860
|
-
const { firstName: m, lastName:
|
|
5861
|
-
return m &&
|
|
5861
|
+
const { firstName: m, lastName: w } = _ || {};
|
|
5862
|
+
return m && w ? `${m} ${w}` : "";
|
|
5862
5863
|
}, r = (_) => {
|
|
5863
5864
|
e("removeAssignee", _);
|
|
5864
|
-
}, c =
|
|
5865
|
+
}, c = f(() => {
|
|
5865
5866
|
var _;
|
|
5866
5867
|
return (_ = t.subtasks) == null ? void 0 : _.length;
|
|
5867
|
-
}), d =
|
|
5868
|
+
}), d = f(() => {
|
|
5868
5869
|
var _;
|
|
5869
5870
|
return (_ = t.subtasks) == null ? void 0 : _.filter((m) => m.isDone).length;
|
|
5870
|
-
}), p =
|
|
5871
|
+
}), p = f(() => (d.value || 0) / (c.value || 1));
|
|
5871
5872
|
return (_, m) => (u(), j(U1, {
|
|
5872
5873
|
class: "ao-card-feed",
|
|
5873
5874
|
"is-clickable": !0
|
|
@@ -5880,77 +5881,77 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5880
5881
|
class: "ao-card-feed__project",
|
|
5881
5882
|
variant: "solid",
|
|
5882
5883
|
color: "primary"
|
|
5883
|
-
}, null, 8, ["label"])) :
|
|
5884
|
-
_.isImportant ? (u(), j(
|
|
5884
|
+
}, null, 8, ["label"])) : M("", !0),
|
|
5885
|
+
_.isImportant ? (u(), j(se, {
|
|
5885
5886
|
key: 1,
|
|
5886
5887
|
name: "FlagRounded",
|
|
5887
5888
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
5888
5889
|
size: "sm"
|
|
5889
|
-
})) :
|
|
5890
|
+
})) : M("", !0),
|
|
5890
5891
|
_.$slots.secondary ? (u(), C("div", C0, [
|
|
5891
5892
|
Y(_.$slots, "secondary")
|
|
5892
|
-
])) :
|
|
5893
|
+
])) : M("", !0)
|
|
5893
5894
|
])
|
|
5894
5895
|
]),
|
|
5895
5896
|
default: R(() => [
|
|
5896
5897
|
o("div", _0, [
|
|
5897
|
-
a.value ? (u(), C("span", m0, N(a.value), 1)) :
|
|
5898
|
-
|
|
5898
|
+
a.value ? (u(), C("span", m0, N(a.value), 1)) : M("", !0),
|
|
5899
|
+
y(ce, {
|
|
5899
5900
|
title: _.name,
|
|
5900
5901
|
level: 5,
|
|
5901
5902
|
"is-editable": !0,
|
|
5902
5903
|
"onUpdate:title": n
|
|
5903
5904
|
}, null, 8, ["title"]),
|
|
5904
|
-
_.endDate ? (u(), C("span", h0, N(_.endDate), 1)) :
|
|
5905
|
+
_.endDate ? (u(), C("span", h0, N(_.endDate), 1)) : M("", !0)
|
|
5905
5906
|
])
|
|
5906
5907
|
]),
|
|
5907
5908
|
footer: R(() => [
|
|
5908
5909
|
o("div", f0, [
|
|
5909
5910
|
o("div", g0, [
|
|
5910
5911
|
o("ul", y0, [
|
|
5911
|
-
(u(!0), C(
|
|
5912
|
-
key:
|
|
5912
|
+
(u(!0), C(ae, null, pe(i.value, (w) => (u(), C(ae, {
|
|
5913
|
+
key: w.id
|
|
5913
5914
|
}, [
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
"user-name": l(
|
|
5915
|
+
w ? (u(), C("li", b0, [
|
|
5916
|
+
y(Ye, {
|
|
5917
|
+
"user-name": l(w),
|
|
5917
5918
|
"is-closable": !0,
|
|
5918
|
-
onClose: () => r(
|
|
5919
|
+
onClose: () => r(w.id)
|
|
5919
5920
|
}, null, 8, ["user-name", "onClose"])
|
|
5920
|
-
])) :
|
|
5921
|
+
])) : M("", !0)
|
|
5921
5922
|
], 64))), 128))
|
|
5922
5923
|
]),
|
|
5923
5924
|
_.comments || _.attachments ? (u(), C("ul", $0, [
|
|
5924
5925
|
_.comments ? (u(), C("li", w0, [
|
|
5925
|
-
|
|
5926
|
+
y(se, {
|
|
5926
5927
|
name: "ChatOutline",
|
|
5927
5928
|
size: "sm"
|
|
5928
5929
|
}),
|
|
5929
5930
|
o("span", M0, N(_.comments), 1)
|
|
5930
|
-
])) :
|
|
5931
|
+
])) : M("", !0),
|
|
5931
5932
|
_.attachments ? (u(), C("li", A0, [
|
|
5932
|
-
|
|
5933
|
+
y(se, {
|
|
5933
5934
|
name: "AttachFileRounded",
|
|
5934
5935
|
size: "sm"
|
|
5935
5936
|
}),
|
|
5936
5937
|
o("span", k0, N(_.attachments), 1)
|
|
5937
|
-
])) :
|
|
5938
|
-
])) :
|
|
5938
|
+
])) : M("", !0)
|
|
5939
|
+
])) : M("", !0)
|
|
5939
5940
|
]),
|
|
5940
5941
|
o("div", I0, [
|
|
5941
5942
|
_.subtasks ? (u(), C("div", S0, [
|
|
5942
5943
|
o("div", V0, [
|
|
5943
|
-
|
|
5944
|
+
y(se, {
|
|
5944
5945
|
name: "SelectCheckBox",
|
|
5945
5946
|
size: "sm"
|
|
5946
5947
|
}),
|
|
5947
5948
|
o("span", L0, N(d.value) + " / " + N(c.value), 1)
|
|
5948
5949
|
]),
|
|
5949
|
-
|
|
5950
|
+
y(q1, {
|
|
5950
5951
|
percentages: p.value,
|
|
5951
5952
|
class: "ao-card-feed__progress"
|
|
5952
5953
|
}, null, 8, ["percentages"])
|
|
5953
|
-
])) :
|
|
5954
|
+
])) : M("", !0)
|
|
5954
5955
|
])
|
|
5955
5956
|
])
|
|
5956
5957
|
]),
|
|
@@ -5970,10 +5971,10 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
5970
5971
|
},
|
|
5971
5972
|
emits: ["close", "addActivity"],
|
|
5972
5973
|
setup(s, { emit: e }) {
|
|
5973
|
-
const t = s, { t: n } = De(), a =
|
|
5974
|
+
const t = s, { t: n } = De(), a = f(() => {
|
|
5974
5975
|
var c;
|
|
5975
5976
|
return (c = t.milestones) == null ? void 0 : c.find((d) => d.id === t.milestoneId);
|
|
5976
|
-
}), i =
|
|
5977
|
+
}), i = f(() => {
|
|
5977
5978
|
var c;
|
|
5978
5979
|
return (c = a.value) == null ? void 0 : c.activities;
|
|
5979
5980
|
}), l = (c) => {
|
|
@@ -5992,12 +5993,12 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
5992
5993
|
o("header", E0, [
|
|
5993
5994
|
o("div", H0, [
|
|
5994
5995
|
o("span", null, N(c.$t("project.milestone.title")), 1),
|
|
5995
|
-
|
|
5996
|
+
y(ce, {
|
|
5996
5997
|
title: ((p = a.value) == null ? void 0 : p.name) || c.milestoneId,
|
|
5997
5998
|
level: 5
|
|
5998
5999
|
}, null, 8, ["title"])
|
|
5999
6000
|
]),
|
|
6000
|
-
|
|
6001
|
+
y(ue, {
|
|
6001
6002
|
"icon-name": "CloseRounded",
|
|
6002
6003
|
variant: "ghost",
|
|
6003
6004
|
onClick: l
|
|
@@ -6005,8 +6006,8 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6005
6006
|
]),
|
|
6006
6007
|
o("div", O0, [
|
|
6007
6008
|
o("ul", B0, [
|
|
6008
|
-
(u(!0), C(
|
|
6009
|
-
var m,
|
|
6009
|
+
(u(!0), C(ae, null, pe(i.value, (_) => {
|
|
6010
|
+
var m, w, I;
|
|
6010
6011
|
return u(), j(mt, {
|
|
6011
6012
|
key: _.id,
|
|
6012
6013
|
name: _.name || _.id,
|
|
@@ -6017,8 +6018,8 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6017
6018
|
"is-important": _.isImportant,
|
|
6018
6019
|
users: c.users,
|
|
6019
6020
|
assignees: _.assignees,
|
|
6020
|
-
comments: (
|
|
6021
|
-
attachments: (
|
|
6021
|
+
comments: (w = _.comments) == null ? void 0 : w.length,
|
|
6022
|
+
attachments: (I = _.attachments) == null ? void 0 : I.length,
|
|
6022
6023
|
subtasks: _.subtasks,
|
|
6023
6024
|
onClick: (L) => c.$router.push({
|
|
6024
6025
|
name: E(Fe).activity,
|
|
@@ -6028,7 +6029,7 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6028
6029
|
}), 128))
|
|
6029
6030
|
]),
|
|
6030
6031
|
o("div", D0, [
|
|
6031
|
-
|
|
6032
|
+
y(Be, {
|
|
6032
6033
|
"icon-name": "Add",
|
|
6033
6034
|
label: c.$t("project.activity.add"),
|
|
6034
6035
|
onClick: r
|
|
@@ -6053,7 +6054,7 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, j0 = ["c
|
|
|
6053
6054
|
},
|
|
6054
6055
|
emits: ["edit", "remove"],
|
|
6055
6056
|
setup(s, { emit: e }) {
|
|
6056
|
-
const t = s, n =
|
|
6057
|
+
const t = s, n = f(() => {
|
|
6057
6058
|
const m = t.user;
|
|
6058
6059
|
return m ? `${m == null ? void 0 : m.firstName} ${m == null ? void 0 : m.lastName}` : null;
|
|
6059
6060
|
}), a = Q(null), { isEditing: i, toggleIsEditing: l, onUpdate: r, onDiscard: c } = ot(a), d = c(), p = r((m) => {
|
|
@@ -6061,12 +6062,12 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, j0 = ["c
|
|
|
6061
6062
|
}), _ = () => {
|
|
6062
6063
|
e("remove");
|
|
6063
6064
|
};
|
|
6064
|
-
return (m,
|
|
6065
|
+
return (m, w) => (u(), C("li", Z0, [
|
|
6065
6066
|
n.value ? (u(), j(Ye, {
|
|
6066
6067
|
key: 0,
|
|
6067
6068
|
"user-name": n.value,
|
|
6068
6069
|
class: "ao-comment__avatar"
|
|
6069
|
-
}, null, 8, ["user-name"])) :
|
|
6070
|
+
}, null, 8, ["user-name"])) : M("", !0),
|
|
6070
6071
|
o("div", P0, [
|
|
6071
6072
|
o("p", {
|
|
6072
6073
|
ref_key: "commentContent",
|
|
@@ -6077,30 +6078,30 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, j0 = ["c
|
|
|
6077
6078
|
o("span", N0, N(m.editedAt || m.createdAt), 1)
|
|
6078
6079
|
]),
|
|
6079
6080
|
m.isEditable ? (u(), C("div", R0, [
|
|
6080
|
-
E(i) ? (u(), C(
|
|
6081
|
-
|
|
6081
|
+
E(i) ? (u(), C(ae, { key: 0 }, [
|
|
6082
|
+
y(ue, {
|
|
6082
6083
|
"icon-name": "CloseRounded",
|
|
6083
6084
|
size: "sm",
|
|
6084
6085
|
variant: "ghost",
|
|
6085
6086
|
color: "neutral",
|
|
6086
6087
|
onClick: E(d)
|
|
6087
6088
|
}, null, 8, ["onClick"]),
|
|
6088
|
-
|
|
6089
|
+
y(ue, {
|
|
6089
6090
|
"icon-name": "CheckSmallRounded",
|
|
6090
6091
|
size: "sm",
|
|
6091
6092
|
variant: "solid",
|
|
6092
6093
|
color: "neutral",
|
|
6093
6094
|
onClick: E(p)
|
|
6094
6095
|
}, null, 8, ["onClick"])
|
|
6095
|
-
], 64)) : (u(), C(
|
|
6096
|
-
|
|
6096
|
+
], 64)) : (u(), C(ae, { key: 1 }, [
|
|
6097
|
+
y(ue, {
|
|
6097
6098
|
label: m.$t("activity.comment.delete"),
|
|
6098
6099
|
size: "sm",
|
|
6099
6100
|
variant: "ghost",
|
|
6100
6101
|
color: "neutral",
|
|
6101
6102
|
onClick: _
|
|
6102
6103
|
}, null, 8, ["label"]),
|
|
6103
|
-
|
|
6104
|
+
y(ue, {
|
|
6104
6105
|
label: m.$t("activity.comment.edit"),
|
|
6105
6106
|
size: "sm",
|
|
6106
6107
|
variant: "ghost",
|
|
@@ -6108,7 +6109,7 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, j0 = ["c
|
|
|
6108
6109
|
onClick: E(l)
|
|
6109
6110
|
}, null, 8, ["label", "onClick"])
|
|
6110
6111
|
], 64))
|
|
6111
|
-
])) :
|
|
6112
|
+
])) : M("", !0)
|
|
6112
6113
|
]));
|
|
6113
6114
|
}
|
|
6114
6115
|
});
|
|
@@ -6125,7 +6126,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6125
6126
|
},
|
|
6126
6127
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
6127
6128
|
setup(s, { emit: e }) {
|
|
6128
|
-
const t = s, n = (d) => t.users.find((_) => _.id === d), a = e1(t.newComment || ""), i =
|
|
6129
|
+
const t = s, n = (d) => t.users.find((_) => _.id === d), a = e1(t.newComment || ""), i = f({
|
|
6129
6130
|
get() {
|
|
6130
6131
|
return a.value;
|
|
6131
6132
|
},
|
|
@@ -6147,7 +6148,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6147
6148
|
var _;
|
|
6148
6149
|
return u(), C("div", q0, [
|
|
6149
6150
|
((_ = d.comments) == null ? void 0 : _.length) > 0 ? (u(), C("ul", z0, [
|
|
6150
|
-
(u(!0), C(
|
|
6151
|
+
(u(!0), C(ae, null, pe(d.comments, (m) => (u(), j(U0, {
|
|
6151
6152
|
key: m.id,
|
|
6152
6153
|
user: n(m.userId),
|
|
6153
6154
|
content: m.content,
|
|
@@ -6155,10 +6156,10 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6155
6156
|
"edited-at": m.editedAt,
|
|
6156
6157
|
"is-editable": m.userId === d.userId,
|
|
6157
6158
|
class: "ao-comment",
|
|
6158
|
-
onEdit: (
|
|
6159
|
+
onEdit: (w) => r(m.id, w),
|
|
6159
6160
|
onRemove: () => c(m.id)
|
|
6160
6161
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
6161
|
-
])) :
|
|
6162
|
+
])) : M("", !0),
|
|
6162
6163
|
o("div", F0, [
|
|
6163
6164
|
o("form", {
|
|
6164
6165
|
class: "ao-comments__form",
|
|
@@ -6180,7 +6181,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6180
6181
|
])
|
|
6181
6182
|
]),
|
|
6182
6183
|
o("div", W0, [
|
|
6183
|
-
|
|
6184
|
+
y(ue, {
|
|
6184
6185
|
type: "submit",
|
|
6185
6186
|
"icon-name": "SendRounded",
|
|
6186
6187
|
color: "primary",
|
|
@@ -6206,20 +6207,20 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6206
6207
|
},
|
|
6207
6208
|
emits: ["update:activity", "addSubtask", "addComment", "updateComment", "removeComment"],
|
|
6208
6209
|
setup(s, { emit: e }) {
|
|
6209
|
-
const t = s, { users: n, userId: a } = _t(), i =
|
|
6210
|
+
const t = s, { users: n, userId: a } = _t(), i = f(() => {
|
|
6210
6211
|
var m;
|
|
6211
|
-
return (m = t.activities) == null ? void 0 : m.find((
|
|
6212
|
-
}), l =
|
|
6212
|
+
return (m = t.activities) == null ? void 0 : m.find((w) => w.id === t.activityId);
|
|
6213
|
+
}), l = f(() => {
|
|
6213
6214
|
var m;
|
|
6214
|
-
return ((m = t.activityTypes) == null ? void 0 : m.map((
|
|
6215
|
-
value:
|
|
6216
|
-
label:
|
|
6215
|
+
return ((m = t.activityTypes) == null ? void 0 : m.map((w) => ({
|
|
6216
|
+
value: w,
|
|
6217
|
+
label: w
|
|
6217
6218
|
}))) || [];
|
|
6218
6219
|
}), r = (m) => {
|
|
6219
|
-
const { id:
|
|
6220
|
+
const { id: w } = m;
|
|
6220
6221
|
i.value && i.value.projectId && e("update:activity", {
|
|
6221
6222
|
itemType: ie.ACTIVITIES,
|
|
6222
|
-
id:
|
|
6223
|
+
id: w,
|
|
6223
6224
|
projectId: i.value.projectId,
|
|
6224
6225
|
data: {
|
|
6225
6226
|
...i.value,
|
|
@@ -6240,13 +6241,13 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6240
6241
|
comment: m
|
|
6241
6242
|
});
|
|
6242
6243
|
}, p = (m) => {
|
|
6243
|
-
const { id:
|
|
6244
|
-
|
|
6244
|
+
const { id: w } = i.value || {};
|
|
6245
|
+
w && e("updateComment", { ...m, activityId: w });
|
|
6245
6246
|
}, _ = (m) => {
|
|
6246
|
-
const { id:
|
|
6247
|
-
|
|
6247
|
+
const { id: w } = i.value || {};
|
|
6248
|
+
w && e("removeComment", { id: m, activityId: w });
|
|
6248
6249
|
};
|
|
6249
|
-
return (m,
|
|
6250
|
+
return (m, w) => i.value ? (u(), j(R1, {
|
|
6250
6251
|
key: 0,
|
|
6251
6252
|
activity: i.value,
|
|
6252
6253
|
"activity-types": l.value,
|
|
@@ -6255,9 +6256,9 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6255
6256
|
"is-template": !1,
|
|
6256
6257
|
users: E(n),
|
|
6257
6258
|
onClose: m.$router.back,
|
|
6258
|
-
"onUpdate:activity":
|
|
6259
|
+
"onUpdate:activity": w[0] || (w[0] = (I) => {
|
|
6259
6260
|
r({
|
|
6260
|
-
...
|
|
6261
|
+
...I
|
|
6261
6262
|
});
|
|
6262
6263
|
}),
|
|
6263
6264
|
onAddSubtask: c
|
|
@@ -6265,13 +6266,13 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6265
6266
|
default: R(() => [
|
|
6266
6267
|
o("fieldset", X0, [
|
|
6267
6268
|
o("div", J0, [
|
|
6268
|
-
|
|
6269
|
-
|
|
6269
|
+
y(se, { name: "ChatOutline" }),
|
|
6270
|
+
y(ce, {
|
|
6270
6271
|
level: 4,
|
|
6271
6272
|
title: m.$t("activity.comments.title")
|
|
6272
6273
|
}, null, 8, ["title"])
|
|
6273
6274
|
]),
|
|
6274
|
-
|
|
6275
|
+
y(ht, {
|
|
6275
6276
|
comments: i.value.comments,
|
|
6276
6277
|
users: E(n),
|
|
6277
6278
|
"user-id": E(a),
|
|
@@ -6282,7 +6283,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6282
6283
|
])
|
|
6283
6284
|
]),
|
|
6284
6285
|
_: 1
|
|
6285
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) :
|
|
6286
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) : M("", !0);
|
|
6286
6287
|
}
|
|
6287
6288
|
}), t1 = {
|
|
6288
6289
|
TEMPLATES: "templates",
|
|
@@ -6378,9 +6379,9 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6378
6379
|
}
|
|
6379
6380
|
};
|
|
6380
6381
|
return (r, c) => (u(), C("div", x0, [
|
|
6381
|
-
|
|
6382
|
+
y(M1, null, {
|
|
6382
6383
|
secondary: R(() => [
|
|
6383
|
-
|
|
6384
|
+
y(ue, {
|
|
6384
6385
|
label: r.$t("templates.new"),
|
|
6385
6386
|
color: "primary",
|
|
6386
6387
|
"icon-name": "Add",
|
|
@@ -6390,7 +6391,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6390
6391
|
]),
|
|
6391
6392
|
_: 1
|
|
6392
6393
|
}),
|
|
6393
|
-
|
|
6394
|
+
y(E(n1), {
|
|
6394
6395
|
"model-value": r.templates,
|
|
6395
6396
|
class: "ao-templates__list",
|
|
6396
6397
|
"item-key": "id",
|
|
@@ -6400,7 +6401,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6400
6401
|
item: R(({ element: d }) => {
|
|
6401
6402
|
var p;
|
|
6402
6403
|
return [
|
|
6403
|
-
|
|
6404
|
+
y(f3, {
|
|
6404
6405
|
title: d.name || d.id,
|
|
6405
6406
|
phases: d.phases,
|
|
6406
6407
|
milestones: (p = d.phases) != null && p.length ? E(Yr)(d.phases) : 0,
|
|
@@ -6428,7 +6429,7 @@ const tu = { class: "ao-col-header" }, su = /* @__PURE__ */ K({
|
|
|
6428
6429
|
},
|
|
6429
6430
|
setup(s) {
|
|
6430
6431
|
return (e, t) => (u(), C("header", tu, [
|
|
6431
|
-
|
|
6432
|
+
y(ce, {
|
|
6432
6433
|
title: e.title,
|
|
6433
6434
|
class: "ao-col-header__title",
|
|
6434
6435
|
level: 4
|
|
@@ -6439,7 +6440,7 @@ const tu = { class: "ao-col-header" }, su = /* @__PURE__ */ K({
|
|
|
6439
6440
|
class: "ao-col-header__items",
|
|
6440
6441
|
variant: "solid",
|
|
6441
6442
|
color: "primary"
|
|
6442
|
-
}, null, 8, ["label"])) :
|
|
6443
|
+
}, null, 8, ["label"])) : M("", !0)
|
|
6443
6444
|
]));
|
|
6444
6445
|
}
|
|
6445
6446
|
});
|
|
@@ -6495,7 +6496,7 @@ function cu() {
|
|
|
6495
6496
|
}
|
|
6496
6497
|
function du(s) {
|
|
6497
6498
|
const e = cu();
|
|
6498
|
-
return
|
|
6499
|
+
return f(() => (e.value, !!s()));
|
|
6499
6500
|
}
|
|
6500
6501
|
function pu(s, e, t = {}) {
|
|
6501
6502
|
const {
|
|
@@ -6504,15 +6505,15 @@ function pu(s, e, t = {}) {
|
|
|
6504
6505
|
threshold: i = 0.1,
|
|
6505
6506
|
window: l = uu,
|
|
6506
6507
|
immediate: r = !0
|
|
6507
|
-
} = t, c = du(() => l && "IntersectionObserver" in l), d =
|
|
6508
|
-
const
|
|
6509
|
-
return (Array.isArray(
|
|
6508
|
+
} = t, c = du(() => l && "IntersectionObserver" in l), d = f(() => {
|
|
6509
|
+
const I = _1(s);
|
|
6510
|
+
return (Array.isArray(I) ? I : [I]).map(B1).filter(nu);
|
|
6510
6511
|
});
|
|
6511
6512
|
let p = s1;
|
|
6512
6513
|
const _ = Q(r), m = c.value ? de(
|
|
6513
6514
|
() => [d.value, B1(n), _.value],
|
|
6514
|
-
([
|
|
6515
|
-
if (p(), !_.value || !
|
|
6515
|
+
([I, L]) => {
|
|
6516
|
+
if (p(), !_.value || !I.length)
|
|
6516
6517
|
return;
|
|
6517
6518
|
const Z = new IntersectionObserver(
|
|
6518
6519
|
e,
|
|
@@ -6522,15 +6523,15 @@ function pu(s, e, t = {}) {
|
|
|
6522
6523
|
threshold: i
|
|
6523
6524
|
}
|
|
6524
6525
|
);
|
|
6525
|
-
|
|
6526
|
+
I.forEach(($) => $ && Z.observe($)), p = () => {
|
|
6526
6527
|
Z.disconnect(), p = s1;
|
|
6527
6528
|
};
|
|
6528
6529
|
},
|
|
6529
6530
|
{ immediate: r, flush: "post" }
|
|
6530
|
-
) : s1,
|
|
6531
|
+
) : s1, w = () => {
|
|
6531
6532
|
p(), m(), _.value = !1;
|
|
6532
6533
|
};
|
|
6533
|
-
return au(
|
|
6534
|
+
return au(w), {
|
|
6534
6535
|
isSupported: c,
|
|
6535
6536
|
isActive: _,
|
|
6536
6537
|
pause() {
|
|
@@ -6539,7 +6540,7 @@ function pu(s, e, t = {}) {
|
|
|
6539
6540
|
resume() {
|
|
6540
6541
|
_.value = !0;
|
|
6541
6542
|
},
|
|
6542
|
-
stop:
|
|
6543
|
+
stop: w
|
|
6543
6544
|
};
|
|
6544
6545
|
}
|
|
6545
6546
|
const vu = {
|
|
@@ -6607,25 +6608,25 @@ const vu = {
|
|
|
6607
6608
|
title: c.title,
|
|
6608
6609
|
level: 3,
|
|
6609
6610
|
items: (p = c.list) == null ? void 0 : p.length
|
|
6610
|
-
}, null, 8, ["title", "items"])) :
|
|
6611
|
+
}, null, 8, ["title", "items"])) : M("", !0)
|
|
6611
6612
|
])
|
|
6612
6613
|
];
|
|
6613
|
-
}) :
|
|
6614
|
-
|
|
6614
|
+
}) : M("", !0),
|
|
6615
|
+
y(E(n1), Ee({
|
|
6615
6616
|
class: "ao-list-kanban__list",
|
|
6616
6617
|
list: c.list,
|
|
6617
6618
|
"item-key": "id",
|
|
6618
6619
|
group: "kanban"
|
|
6619
6620
|
}, c.$attrs, { onChange: r }), {
|
|
6620
6621
|
item: R(({ element: p }) => {
|
|
6621
|
-
var _, m,
|
|
6622
|
+
var _, m, w, I, L, Z, $;
|
|
6622
6623
|
return [
|
|
6623
|
-
|
|
6624
|
+
y(mt, {
|
|
6624
6625
|
id: p.id,
|
|
6625
6626
|
name: p.name,
|
|
6626
6627
|
"project-name": (_ = p.project) == null ? void 0 : _.name,
|
|
6627
|
-
"phase-name": (
|
|
6628
|
-
"milestone-name": (
|
|
6628
|
+
"phase-name": (w = (m = p.milestone) == null ? void 0 : m.phase) == null ? void 0 : w.name,
|
|
6629
|
+
"milestone-name": (I = p.milestone) == null ? void 0 : I.name,
|
|
6629
6630
|
"end-date": p.deadline,
|
|
6630
6631
|
rules: ((L = p.rules) == null ? void 0 : L.length) || 0,
|
|
6631
6632
|
subtasks: p.tasks,
|
|
@@ -6633,7 +6634,7 @@ const vu = {
|
|
|
6633
6634
|
"is-important": p.important,
|
|
6634
6635
|
type: p.type,
|
|
6635
6636
|
comments: (Z = p.comments) == null ? void 0 : Z.length,
|
|
6636
|
-
attachments: (
|
|
6637
|
+
attachments: ($ = p.attachments) == null ? void 0 : $.length,
|
|
6637
6638
|
users: c.users,
|
|
6638
6639
|
assignees: p.assignee ? [p.assignee.id] : [],
|
|
6639
6640
|
onClick: () => i(p.id),
|
|
@@ -6641,7 +6642,7 @@ const vu = {
|
|
|
6641
6642
|
onRemoveAssignee: () => l({ id: p.id, assigneeId: null })
|
|
6642
6643
|
}, {
|
|
6643
6644
|
secondary: R(() => [
|
|
6644
|
-
|
|
6645
|
+
y(ue, {
|
|
6645
6646
|
color: "primary",
|
|
6646
6647
|
variant: "ghost",
|
|
6647
6648
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -6656,7 +6657,7 @@ const vu = {
|
|
|
6656
6657
|
}),
|
|
6657
6658
|
footer: R(() => [
|
|
6658
6659
|
c.isLoading ? (u(), C("div", _u, [
|
|
6659
|
-
|
|
6660
|
+
y(se, { name: "Loading" })
|
|
6660
6661
|
])) : c.hasMore ? (u(), C("div", {
|
|
6661
6662
|
key: 2,
|
|
6662
6663
|
ref_key: "scrollEnd",
|
|
@@ -6670,13 +6671,13 @@ const vu = {
|
|
|
6670
6671
|
}, 16, ["list"]),
|
|
6671
6672
|
c.$slots.footer || c.footerLabel ? (u(), C("div", gu, [
|
|
6672
6673
|
Y(c.$slots, "footer", {}, () => [
|
|
6673
|
-
|
|
6674
|
+
y(Be, {
|
|
6674
6675
|
"icon-name": "AddBoxOutlineRounded",
|
|
6675
6676
|
label: c.footerLabel,
|
|
6676
6677
|
onClick: d[0] || (d[0] = (p) => c.$emit("add"))
|
|
6677
6678
|
}, null, 8, ["label"])
|
|
6678
6679
|
])
|
|
6679
|
-
])) :
|
|
6680
|
+
])) : M("", !0)
|
|
6680
6681
|
]));
|
|
6681
6682
|
}
|
|
6682
6683
|
});
|
|
@@ -6705,11 +6706,11 @@ const bu = { class: "ao-field ao-search-field" }, $u = ["value", "placeholder",
|
|
|
6705
6706
|
(...c) => E(a) && E(a)(...c)),
|
|
6706
6707
|
onKeypress: a1(n, ["enter"])
|
|
6707
6708
|
}, null, 40, $u),
|
|
6708
|
-
|
|
6709
|
+
y(se, {
|
|
6709
6710
|
name: "SearchRounded",
|
|
6710
6711
|
class: F(`ao-search-field__icon ao-search-field__action ${l.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
6711
6712
|
}, null, 8, ["class"]),
|
|
6712
|
-
|
|
6713
|
+
y(ue, {
|
|
6713
6714
|
"icon-name": "CloseRounded",
|
|
6714
6715
|
size: "sm",
|
|
6715
6716
|
color: "primary",
|
|
@@ -6721,7 +6722,7 @@ const bu = { class: "ao-field ao-search-field" }, $u = ["value", "placeholder",
|
|
|
6721
6722
|
}
|
|
6722
6723
|
});
|
|
6723
6724
|
function Mu(s) {
|
|
6724
|
-
const e = Q(), t =
|
|
6725
|
+
const e = Q(), t = f(
|
|
6725
6726
|
() => s.value.find(
|
|
6726
6727
|
(a) => a.id === e.value
|
|
6727
6728
|
)
|
|
@@ -6756,136 +6757,136 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6756
6757
|
const t = s, { t: n } = De(), a = e1(t, "activities"), { selectActivity: i, selectedActivity: l } = ku(a), r = Q({});
|
|
6757
6758
|
de(
|
|
6758
6759
|
[() => t.statuses, () => t.activities],
|
|
6759
|
-
([
|
|
6760
|
+
([A, W]) => {
|
|
6760
6761
|
r.value = Object.fromEntries(
|
|
6761
|
-
|
|
6762
|
+
A.map((_e) => [
|
|
6762
6763
|
_e.id,
|
|
6763
|
-
W.filter((
|
|
6764
|
+
W.filter((g) => g.status.id === _e.id)
|
|
6764
6765
|
])
|
|
6765
6766
|
);
|
|
6766
6767
|
},
|
|
6767
6768
|
{ immediate: !0 }
|
|
6768
6769
|
);
|
|
6769
|
-
const c = (
|
|
6770
|
+
const c = (A) => {
|
|
6770
6771
|
var T, G;
|
|
6771
|
-
const W = (T = t.activities) == null ? void 0 : T.at(-1), _e = W ? ye.LexoRank.parse(W.rank).genNext() : ye.LexoRank.middle(),
|
|
6772
|
-
name: n("activity.defaultName", { idx:
|
|
6772
|
+
const W = (T = t.activities) == null ? void 0 : T.at(-1), _e = W ? ye.LexoRank.parse(W.rank).genNext() : ye.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, O = {
|
|
6773
|
+
name: n("activity.defaultName", { idx: g + 1 }),
|
|
6773
6774
|
rank: _e.format(),
|
|
6774
|
-
statusId:
|
|
6775
|
+
statusId: A.id
|
|
6775
6776
|
};
|
|
6776
|
-
e("addActivity",
|
|
6777
|
-
}, d = (
|
|
6778
|
-
e("update:filters", { ...t.filters, [
|
|
6779
|
-
}, p =
|
|
6780
|
-
value:
|
|
6781
|
-
label:
|
|
6782
|
-
}))), _ =
|
|
6783
|
-
value:
|
|
6784
|
-
label:
|
|
6785
|
-
}))), m =
|
|
6786
|
-
value:
|
|
6787
|
-
label: `${
|
|
6788
|
-
}))),
|
|
6789
|
-
l.value && e("update:activity",
|
|
6790
|
-
},
|
|
6791
|
-
e("update:activity",
|
|
6792
|
-
}, L = Q(null), Z = (
|
|
6777
|
+
e("addActivity", O);
|
|
6778
|
+
}, d = (A, W) => {
|
|
6779
|
+
e("update:filters", { ...t.filters, [A]: W });
|
|
6780
|
+
}, p = f(() => t.projects.map((A) => ({
|
|
6781
|
+
value: A.id,
|
|
6782
|
+
label: A.name
|
|
6783
|
+
}))), _ = f(() => t.activityTypes.map((A) => ({
|
|
6784
|
+
value: A.id,
|
|
6785
|
+
label: A.name
|
|
6786
|
+
}))), m = f(() => t.users.map((A) => ({
|
|
6787
|
+
value: A.id,
|
|
6788
|
+
label: `${A.firstName} ${A.lastName}`
|
|
6789
|
+
}))), w = (A) => {
|
|
6790
|
+
l.value && e("update:activity", A);
|
|
6791
|
+
}, I = (A) => {
|
|
6792
|
+
e("update:activity", A);
|
|
6793
|
+
}, L = Q(null), Z = (A) => {
|
|
6793
6794
|
l.value && e("update:activity", {
|
|
6794
6795
|
id: l.value.id,
|
|
6795
|
-
name:
|
|
6796
|
+
name: A
|
|
6796
6797
|
});
|
|
6797
|
-
},
|
|
6798
|
-
e("archiveActivity",
|
|
6799
|
-
},
|
|
6798
|
+
}, $ = (A) => {
|
|
6799
|
+
e("archiveActivity", A);
|
|
6800
|
+
}, b = f({
|
|
6800
6801
|
get() {
|
|
6801
|
-
var
|
|
6802
|
-
return (
|
|
6802
|
+
var A;
|
|
6803
|
+
return (A = l.value) == null ? void 0 : A.deadline;
|
|
6803
6804
|
},
|
|
6804
|
-
set(
|
|
6805
|
-
l.value &&
|
|
6805
|
+
set(A) {
|
|
6806
|
+
l.value && w({
|
|
6806
6807
|
id: l.value.id,
|
|
6807
|
-
deadline:
|
|
6808
|
+
deadline: A
|
|
6808
6809
|
});
|
|
6809
6810
|
}
|
|
6810
|
-
}),
|
|
6811
|
-
e("clear:searchText",
|
|
6812
|
-
}, x = (
|
|
6813
|
-
l.value && e("addSubtask",
|
|
6814
|
-
},
|
|
6815
|
-
l.value && e("updateSubtask",
|
|
6816
|
-
},
|
|
6817
|
-
l.value && e("deleteSubtask",
|
|
6818
|
-
}, H = (
|
|
6819
|
-
e("addFiles",
|
|
6820
|
-
}, U = (
|
|
6821
|
-
e("removeFile",
|
|
6822
|
-
}, te = (
|
|
6811
|
+
}), B = (A) => {
|
|
6812
|
+
e("clear:searchText", A);
|
|
6813
|
+
}, x = (A) => {
|
|
6814
|
+
l.value && e("addSubtask", A);
|
|
6815
|
+
}, le = (A) => {
|
|
6816
|
+
l.value && e("updateSubtask", A);
|
|
6817
|
+
}, h = (A) => {
|
|
6818
|
+
l.value && e("deleteSubtask", A);
|
|
6819
|
+
}, H = (A) => {
|
|
6820
|
+
e("addFiles", A);
|
|
6821
|
+
}, U = (A) => {
|
|
6822
|
+
e("removeFile", A);
|
|
6823
|
+
}, te = (A) => {
|
|
6823
6824
|
l.value && e("addComment", {
|
|
6824
6825
|
activityId: l.value.id,
|
|
6825
|
-
comment:
|
|
6826
|
+
comment: A
|
|
6826
6827
|
});
|
|
6827
|
-
}, re = (
|
|
6828
|
+
}, re = (A) => {
|
|
6828
6829
|
const { id: W } = l.value || {};
|
|
6829
|
-
W && e("updateComment", { ...
|
|
6830
|
-
}, Ce = (
|
|
6830
|
+
W && e("updateComment", { ...A, activityId: W });
|
|
6831
|
+
}, Ce = (A) => {
|
|
6831
6832
|
const { id: W } = l.value || {};
|
|
6832
|
-
W && e("removeComment", { id:
|
|
6833
|
-
}, D =
|
|
6834
|
-
value:
|
|
6835
|
-
label:
|
|
6836
|
-
}))), X = (
|
|
6833
|
+
W && e("removeComment", { id: A, activityId: W });
|
|
6834
|
+
}, D = f(() => t.statuses.map((A) => ({
|
|
6835
|
+
value: A.id,
|
|
6836
|
+
label: A.name
|
|
6837
|
+
}))), X = (A) => {
|
|
6837
6838
|
l.value && e("update:activity", {
|
|
6838
6839
|
id: l.value.id,
|
|
6839
|
-
statusId:
|
|
6840
|
+
statusId: A
|
|
6840
6841
|
});
|
|
6841
6842
|
};
|
|
6842
|
-
return (
|
|
6843
|
+
return (A, W) => {
|
|
6843
6844
|
var _e;
|
|
6844
6845
|
return u(), C("div", Iu, [
|
|
6845
|
-
|
|
6846
|
+
y(M1, null, {
|
|
6846
6847
|
primary: R(() => [
|
|
6847
|
-
|
|
6848
|
-
"model-value":
|
|
6849
|
-
placeholder:
|
|
6850
|
-
"onUpdate:modelValue": W[0] || (W[0] = (
|
|
6851
|
-
onClear:
|
|
6848
|
+
y(wu, {
|
|
6849
|
+
"model-value": A.searchText,
|
|
6850
|
+
placeholder: A.$t("feed.search.placeholder"),
|
|
6851
|
+
"onUpdate:modelValue": W[0] || (W[0] = (g) => A.$emit("update:searchText", g)),
|
|
6852
|
+
onClear: B
|
|
6852
6853
|
}, null, 8, ["model-value", "placeholder"]),
|
|
6853
6854
|
o("div", Su, [
|
|
6854
|
-
|
|
6855
|
-
"model-value":
|
|
6855
|
+
y(E(ve), {
|
|
6856
|
+
"model-value": A.filters[E(Ue).project],
|
|
6856
6857
|
mode: "tags",
|
|
6857
6858
|
options: p.value,
|
|
6858
6859
|
"close-on-select": !1,
|
|
6859
6860
|
searchable: !0,
|
|
6860
6861
|
class: "ao-feed__filter",
|
|
6861
|
-
placeholder:
|
|
6862
|
-
"onUpdate:modelValue": W[1] || (W[1] = (
|
|
6862
|
+
placeholder: A.$t("feed.filters.project.placeholder"),
|
|
6863
|
+
"onUpdate:modelValue": W[1] || (W[1] = (g) => d(E(Ue).project, g))
|
|
6863
6864
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
6864
|
-
|
|
6865
|
-
"model-value":
|
|
6865
|
+
y(E(ve), {
|
|
6866
|
+
"model-value": A.filters[E(Ue).type],
|
|
6866
6867
|
mode: "tags",
|
|
6867
6868
|
options: _.value,
|
|
6868
6869
|
"close-on-select": !1,
|
|
6869
6870
|
searchable: !0,
|
|
6870
6871
|
class: "ao-feed__filter",
|
|
6871
|
-
placeholder:
|
|
6872
|
-
"onUpdate:modelValue": W[2] || (W[2] = (
|
|
6872
|
+
placeholder: A.$t("feed.filters.activityType.placeholder"),
|
|
6873
|
+
"onUpdate:modelValue": W[2] || (W[2] = (g) => d(E(Ue).type, g))
|
|
6873
6874
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
6874
|
-
|
|
6875
|
-
"model-value":
|
|
6875
|
+
y(E(ve), {
|
|
6876
|
+
"model-value": A.filters[E(Ue).assignee],
|
|
6876
6877
|
mode: "tags",
|
|
6877
6878
|
options: m.value,
|
|
6878
6879
|
"close-on-select": !1,
|
|
6879
6880
|
searchable: !0,
|
|
6880
6881
|
class: "ao-feed__filter",
|
|
6881
|
-
placeholder:
|
|
6882
|
-
"onUpdate:modelValue": W[3] || (W[3] = (
|
|
6882
|
+
placeholder: A.$t("feed.filters.assignee.placeholder"),
|
|
6883
|
+
"onUpdate:modelValue": W[3] || (W[3] = (g) => d(E(Ue).assignee, g))
|
|
6883
6884
|
}, {
|
|
6884
|
-
tag: R(({ option:
|
|
6885
|
-
|
|
6886
|
-
"user-name":
|
|
6885
|
+
tag: R(({ option: g, handleTagRemove: O }) => [
|
|
6886
|
+
y(Ye, {
|
|
6887
|
+
"user-name": g.label,
|
|
6887
6888
|
"is-closable": !0,
|
|
6888
|
-
onClose: (T) =>
|
|
6889
|
+
onClose: (T) => O(g, T)
|
|
6889
6890
|
}, null, 8, ["user-name", "onClose"])
|
|
6890
6891
|
]),
|
|
6891
6892
|
_: 1
|
|
@@ -6895,17 +6896,17 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6895
6896
|
_: 1
|
|
6896
6897
|
}),
|
|
6897
6898
|
o("div", Vu, [
|
|
6898
|
-
(u(!0), C(
|
|
6899
|
-
key:
|
|
6900
|
-
status:
|
|
6901
|
-
list: r.value[
|
|
6902
|
-
title:
|
|
6903
|
-
"footer-label":
|
|
6904
|
-
users:
|
|
6905
|
-
onAdd: () => c(
|
|
6899
|
+
(u(!0), C(ae, null, pe(A.statuses, (g) => (u(), j(yu, {
|
|
6900
|
+
key: g.id,
|
|
6901
|
+
status: g,
|
|
6902
|
+
list: r.value[g.id],
|
|
6903
|
+
title: g.name,
|
|
6904
|
+
"footer-label": A.$t("feed.activity.add"),
|
|
6905
|
+
users: A.users,
|
|
6906
|
+
onAdd: () => c(g),
|
|
6906
6907
|
onSelectActivity: E(i),
|
|
6907
|
-
onArchiveActivity:
|
|
6908
|
-
onUpdateActivity:
|
|
6908
|
+
onArchiveActivity: $,
|
|
6909
|
+
onUpdateActivity: I
|
|
6909
6910
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "onAdd", "onSelectActivity"]))), 128))
|
|
6910
6911
|
]),
|
|
6911
6912
|
(u(), j(C1, { to: "body" }, [
|
|
@@ -6915,17 +6916,17 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6915
6916
|
"activity-types": _.value,
|
|
6916
6917
|
"milestone-id": (_e = E(l).milestone) == null ? void 0 : _e.id,
|
|
6917
6918
|
"template-activities": a.value,
|
|
6918
|
-
users:
|
|
6919
|
+
users: A.users,
|
|
6919
6920
|
onClose: W[5] || (W[5] = () => E(i)(null)),
|
|
6920
|
-
"onUpdate:activity":
|
|
6921
|
+
"onUpdate:activity": w,
|
|
6921
6922
|
onAddSubtask: x,
|
|
6922
|
-
onUpdateSubtask:
|
|
6923
|
-
onDeleteSubtask:
|
|
6923
|
+
onUpdateSubtask: le,
|
|
6924
|
+
onDeleteSubtask: h,
|
|
6924
6925
|
onAddFiles: H,
|
|
6925
6926
|
onRemoveFile: U
|
|
6926
6927
|
}, {
|
|
6927
6928
|
header: R(() => [
|
|
6928
|
-
|
|
6929
|
+
y(ce, {
|
|
6929
6930
|
ref_key: "target",
|
|
6930
6931
|
ref: L,
|
|
6931
6932
|
title: E(l).name || E(l).id,
|
|
@@ -6934,8 +6935,8 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6934
6935
|
"onUpdate:title": Z
|
|
6935
6936
|
}, null, 8, ["title"]),
|
|
6936
6937
|
o("label", Lu, [
|
|
6937
|
-
o("span", Tu, N(
|
|
6938
|
-
|
|
6938
|
+
o("span", Tu, N(A.$t("activity.status.label")), 1),
|
|
6939
|
+
y(E(ve), {
|
|
6939
6940
|
options: D.value,
|
|
6940
6941
|
value: E(l).status.id,
|
|
6941
6942
|
onChange: X
|
|
@@ -6945,15 +6946,15 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6945
6946
|
default: R(() => [
|
|
6946
6947
|
o("fieldset", Eu, [
|
|
6947
6948
|
o("label", Hu, [
|
|
6948
|
-
o("span", Ou, N(
|
|
6949
|
+
o("span", Ou, N(A.$t("activity.endDate.label")), 1),
|
|
6949
6950
|
qe(o("input", {
|
|
6950
|
-
"onUpdate:modelValue": W[4] || (W[4] = (
|
|
6951
|
+
"onUpdate:modelValue": W[4] || (W[4] = (g) => b.value = g),
|
|
6951
6952
|
class: "ao-field__input",
|
|
6952
6953
|
type: "date"
|
|
6953
6954
|
}, null, 512), [
|
|
6954
6955
|
[
|
|
6955
6956
|
l1,
|
|
6956
|
-
|
|
6957
|
+
b.value,
|
|
6957
6958
|
void 0,
|
|
6958
6959
|
{ lazy: !0 }
|
|
6959
6960
|
]
|
|
@@ -6962,16 +6963,16 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6962
6963
|
]),
|
|
6963
6964
|
o("fieldset", Bu, [
|
|
6964
6965
|
o("div", Du, [
|
|
6965
|
-
|
|
6966
|
-
|
|
6966
|
+
y(se, { name: "ChatOutline" }),
|
|
6967
|
+
y(ce, {
|
|
6967
6968
|
level: 4,
|
|
6968
|
-
title:
|
|
6969
|
+
title: A.$t("activity.comments.title")
|
|
6969
6970
|
}, null, 8, ["title"])
|
|
6970
6971
|
]),
|
|
6971
|
-
|
|
6972
|
+
y(ht, {
|
|
6972
6973
|
comments: E(l).comments,
|
|
6973
|
-
users:
|
|
6974
|
-
"user-id":
|
|
6974
|
+
users: A.users,
|
|
6975
|
+
"user-id": A.userId,
|
|
6975
6976
|
onCreateComment: te,
|
|
6976
6977
|
onUpdateComment: re,
|
|
6977
6978
|
onRemoveComment: Ce
|
|
@@ -6979,7 +6980,7 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6979
6980
|
])
|
|
6980
6981
|
]),
|
|
6981
6982
|
_: 1
|
|
6982
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users"])) :
|
|
6983
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users"])) : M("", !0)
|
|
6983
6984
|
]))
|
|
6984
6985
|
]);
|
|
6985
6986
|
};
|