@26lights/orcha 0.17.0 → 0.17.2
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 +184 -178
- package/dist/orcha.umd.js +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as c, createBlock as R, unref as F, mergeProps as
|
|
1
|
+
import { defineComponent as x, openBlock as c, createBlock as R, unref as F, mergeProps as Ie, createElementBlock as m, createElementVNode as f, pushScopeId as rn, popScopeId as un, createStaticVNode as dn, computed as y, resolveDynamicComponent as at, normalizeClass as G, renderSlot as ee, toDisplayString as q, createCommentVNode as k, ref as Q, watch as ue, nextTick as Oe, withKeys as Ye, toHandlers as cn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ua, withModifiers as _e, createSlots as t1, Fragment as ve, renderList as be, onMounted as Ht, onBeforeUnmount as fn, onUnmounted as da, toRefs as $e, getCurrentInstance as nt, toRef as ft, normalizeProps as vn, guardReactiveProps as pn, onUpdated as hn, withDirectives as et, vModelText as Et, vModelCheckbox as x1, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
|
|
2
2
|
import { RouterView as bn } from "vue-router";
|
|
3
3
|
import Xe from "vuedraggable";
|
|
4
|
-
const
|
|
4
|
+
const a8 = /* @__PURE__ */ x({
|
|
5
5
|
__name: "AoTemplates",
|
|
6
6
|
props: {
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
return (e, t) => (c(), R(F(bn),
|
|
10
|
+
return (e, t) => (c(), R(F(bn), Ie({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), P = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
@@ -1209,17 +1209,17 @@ function fa(a) {
|
|
|
1209
1209
|
}, o = (r) => {
|
|
1210
1210
|
e.value = r;
|
|
1211
1211
|
}, i = (r) => async () => {
|
|
1212
|
-
o(!1), await
|
|
1212
|
+
o(!1), await Oe(() => {
|
|
1213
1213
|
a.value[s.value] = t.value, r == null || r();
|
|
1214
1214
|
});
|
|
1215
1215
|
}, l = (r) => async (d) => {
|
|
1216
1216
|
const u = a.value[s.value];
|
|
1217
|
-
o(!1), await
|
|
1217
|
+
o(!1), await Oe(() => {
|
|
1218
1218
|
r(u, d);
|
|
1219
1219
|
});
|
|
1220
1220
|
};
|
|
1221
1221
|
return ue(e, async (r) => {
|
|
1222
|
-
await
|
|
1222
|
+
await Oe(() => {
|
|
1223
1223
|
setTimeout(() => {
|
|
1224
1224
|
a.value && r && (a.value.focus(), t.value = a.value[s.value]);
|
|
1225
1225
|
}, 1);
|
|
@@ -1266,7 +1266,7 @@ const Ce = /* @__PURE__ */ x({
|
|
|
1266
1266
|
($) => {
|
|
1267
1267
|
$ || v();
|
|
1268
1268
|
}
|
|
1269
|
-
), ($, A) => (c(), R(at(r.value),
|
|
1269
|
+
), ($, A) => (c(), R(at(r.value), Ie({
|
|
1270
1270
|
id: $.id,
|
|
1271
1271
|
ref_key: "target",
|
|
1272
1272
|
ref: s,
|
|
@@ -1406,7 +1406,7 @@ const E1 = /* @__PURE__ */ x({
|
|
|
1406
1406
|
]),
|
|
1407
1407
|
style: ua(n.rawColor ? { "--ao-tag-bg": n.rawColor } : {})
|
|
1408
1408
|
}, [
|
|
1409
|
-
(c(), R(at(t.value),
|
|
1409
|
+
(c(), R(at(t.value), Ie({ class: "ao-tag__label" }, s.value, {
|
|
1410
1410
|
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
1411
1411
|
}), {
|
|
1412
1412
|
default: j(() => [
|
|
@@ -1432,11 +1432,11 @@ const k1 = {
|
|
|
1432
1432
|
todo: "todo",
|
|
1433
1433
|
done: "done",
|
|
1434
1434
|
archived: "archived"
|
|
1435
|
-
},
|
|
1435
|
+
}, n8 = {
|
|
1436
1436
|
months: "months",
|
|
1437
1437
|
weeks: "weeks",
|
|
1438
1438
|
days: "days"
|
|
1439
|
-
},
|
|
1439
|
+
}, s8 = {
|
|
1440
1440
|
future: "future",
|
|
1441
1441
|
this_month: "this_month",
|
|
1442
1442
|
this_week: "this_week",
|
|
@@ -1460,7 +1460,7 @@ const k1 = {
|
|
|
1460
1460
|
TASKS: "tasks"
|
|
1461
1461
|
};
|
|
1462
1462
|
var $d = /* @__PURE__ */ ((a) => (a.PHASES = "phases", a.MILESTONES = "milestones", a.ACTIVITIES = "activities", a))($d || {});
|
|
1463
|
-
const
|
|
1463
|
+
const i8 = {
|
|
1464
1464
|
add: "add",
|
|
1465
1465
|
remove: "remove",
|
|
1466
1466
|
moved: "moved"
|
|
@@ -3904,7 +3904,7 @@ const z0 = /* @__PURE__ */ x({
|
|
|
3904
3904
|
var n;
|
|
3905
3905
|
return (n = e.milestones) == null ? void 0 : n.length;
|
|
3906
3906
|
}), s = y(() => e.milestones ? ka(e.milestones) : 0);
|
|
3907
|
-
return (n, o) => (c(), R(O1,
|
|
3907
|
+
return (n, o) => (c(), R(O1, Ie({
|
|
3908
3908
|
id: n.id,
|
|
3909
3909
|
title: n.name,
|
|
3910
3910
|
activities: s.value,
|
|
@@ -4989,7 +4989,7 @@ const H3 = (a, e, t) => {
|
|
|
4989
4989
|
l.value();
|
|
4990
4990
|
});
|
|
4991
4991
|
};
|
|
4992
|
-
function
|
|
4992
|
+
function He(a) {
|
|
4993
4993
|
return [null, void 0].indexOf(a) !== -1;
|
|
4994
4994
|
}
|
|
4995
4995
|
function P3(a, e, t) {
|
|
@@ -4997,7 +4997,7 @@ function P3(a, e, t) {
|
|
|
4997
4997
|
l.value = u(v);
|
|
4998
4998
|
const C = d(v);
|
|
4999
4999
|
e.emit("change", C, i), p && (e.emit("input", C), e.emit("update:modelValue", C));
|
|
5000
|
-
}, d = (v) => s.value ||
|
|
5000
|
+
}, d = (v) => s.value || He(v) ? v : Array.isArray(v) ? v.map((p) => p[n.value]) : v[n.value], u = (v) => He(v) ? o.value === "single" ? {} : [] : v;
|
|
5001
5001
|
return {
|
|
5002
5002
|
update: r
|
|
5003
5003
|
};
|
|
@@ -5105,7 +5105,7 @@ function Z3(a, e, t) {
|
|
|
5105
5105
|
disabledProp: se,
|
|
5106
5106
|
searchStart: M,
|
|
5107
5107
|
searchFilter: Y
|
|
5108
|
-
} = $e(a), ie = nt().proxy, B = t.iv, S = t.ev, N = t.search, pe = t.clearSearch, Me = t.update, Ra = t.pointer, it = t.clearPointer, Ua = t.focus, ja = t.deactivate, ot = t.close, Za = t.localize, gt = Q([]), Fe = Q([]),
|
|
5108
|
+
} = $e(a), ie = nt().proxy, B = t.iv, S = t.ev, N = t.search, pe = t.clearSearch, Me = t.update, Ra = t.pointer, it = t.clearPointer, Ua = t.focus, ja = t.deactivate, ot = t.close, Za = t.localize, gt = Q([]), Fe = Q([]), Le = Q(!1), f1 = Q(null), v1 = Q(re.value && i.value === -1 ? 10 : i.value), j1 = y(() => r.value || d.value || !1), Fa = y(() => v.value !== void 0 ? v.value : p.value !== void 0 ? p.value : !0), qe = y(() => {
|
|
5109
5109
|
if (z.value) {
|
|
5110
5110
|
let _ = Rt.value || /* istanbul ignore next */
|
|
5111
5111
|
[], H = [];
|
|
@@ -5160,17 +5160,17 @@ function Z3(a, e, t) {
|
|
|
5160
5160
|
}), p1 = y(() => {
|
|
5161
5161
|
switch (n.value) {
|
|
5162
5162
|
case "single":
|
|
5163
|
-
return !
|
|
5163
|
+
return !He(B.value[D.value]);
|
|
5164
5164
|
case "multiple":
|
|
5165
5165
|
case "tags":
|
|
5166
|
-
return !
|
|
5166
|
+
return !He(B.value) && B.value.length > 0;
|
|
5167
5167
|
}
|
|
5168
|
-
}), za = y(() => C !== void 0 && C.value !== void 0 ? C.value(B.value, ie) : B.value && B.value.length > 1 ? `${B.value.length} options selected` : "1 option selected"), Wa = y(() => !qe.value.length && !
|
|
5168
|
+
}), za = y(() => C !== void 0 && C.value !== void 0 ? C.value(B.value, ie) : B.value && B.value.length > 1 ? `${B.value.length} options selected` : "1 option selected"), Wa = y(() => !qe.value.length && !Le.value && !lt.value.length), Ya = y(() => qe.value.length > 0 && bt.value.length == 0 && (N.value && z.value || !z.value)), lt = y(() => j1.value === !1 || !N.value ? [] : an(N.value) !== -1 ? [] : [{
|
|
5169
5169
|
[D.value]: N.value,
|
|
5170
|
-
[
|
|
5170
|
+
[Ve.value]: N.value,
|
|
5171
5171
|
[u.value]: N.value,
|
|
5172
5172
|
__CREATE__: !0
|
|
5173
|
-
}]),
|
|
5173
|
+
}]), Ve = y(() => o.value || u.value), Ka = y(() => {
|
|
5174
5174
|
switch (n.value) {
|
|
5175
5175
|
case "single":
|
|
5176
5176
|
return null;
|
|
@@ -5178,7 +5178,7 @@ function Z3(a, e, t) {
|
|
|
5178
5178
|
case "tags":
|
|
5179
5179
|
return [];
|
|
5180
5180
|
}
|
|
5181
|
-
}), Ga = y(() => $.value ||
|
|
5181
|
+
}), Ga = y(() => $.value || Le.value), rt = (_) => {
|
|
5182
5182
|
switch (typeof _ != "object" && (_ = Ne(_)), n.value) {
|
|
5183
5183
|
case "single":
|
|
5184
5184
|
Me(_);
|
|
@@ -5215,16 +5215,16 @@ function Z3(a, e, t) {
|
|
|
5215
5215
|
return n.value === "single" ? !1 : tn(_[oe.value]) && _[oe.value].length;
|
|
5216
5216
|
switch (n.value) {
|
|
5217
5217
|
case "single":
|
|
5218
|
-
return !
|
|
5218
|
+
return !He(B.value) && B.value[D.value] == _[D.value];
|
|
5219
5219
|
case "tags":
|
|
5220
5220
|
case "multiple":
|
|
5221
|
-
return !
|
|
5221
|
+
return !He(B.value) && B.value.map((H) => H[D.value]).indexOf(_[D.value]) !== -1;
|
|
5222
5222
|
}
|
|
5223
5223
|
}, h1 = (_) => _[se.value] === !0, m1 = () => J === void 0 || J.value === -1 || !p1.value && J.value > 0 ? !1 : B.value.length >= J.value, Xa = (_) => {
|
|
5224
5224
|
if (!h1(_)) {
|
|
5225
5225
|
if (Z && Z.value && !Be(_) && _.__CREATE__ && (_ = { ..._ }, delete _.__CREATE__, _ = Z.value(_, ie), _ instanceof Promise)) {
|
|
5226
|
-
|
|
5227
|
-
|
|
5226
|
+
Le.value = !0, _.then((H) => {
|
|
5227
|
+
Le.value = !1, Y1(H);
|
|
5228
5228
|
});
|
|
5229
5229
|
return;
|
|
5230
5230
|
}
|
|
@@ -5279,7 +5279,7 @@ function Z3(a, e, t) {
|
|
|
5279
5279
|
Ne(_[D.value]) === void 0 && j1.value && (e.emit("tag", _[D.value], ie), e.emit("option", _[D.value], ie), e.emit("create", _[D.value], ie), Fa.value && sn(_), pe());
|
|
5280
5280
|
}, Ja = () => {
|
|
5281
5281
|
n.value !== "single" && rt(bt.value.filter((_) => !_.disabled && !Be(_)));
|
|
5282
|
-
}, en = (_) => _.find((H) => !Be(H) && !H[se.value]) === void 0, tn = (_) => _.find((H) => !Be(H)) === void 0, Ne = (_) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(_))], an = (_, H = !0) => qe.value.map((ne) => parseInt(ne[
|
|
5282
|
+
}, en = (_) => _.find((H) => !Be(H) && !H[se.value]) === void 0, tn = (_) => _.find((H) => !Be(H)) === void 0, Ne = (_) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(_))], an = (_, H = !0) => qe.value.map((ne) => parseInt(ne[Ve.value]) == ne[Ve.value] ? parseInt(ne[Ve.value]) : ne[Ve.value]).indexOf(
|
|
5283
5283
|
parseInt(_) == _ ? parseInt(_) : _
|
|
5284
5284
|
), nn = (_) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(_), sn = (_) => {
|
|
5285
5285
|
gt.value.push(_);
|
|
@@ -5289,8 +5289,8 @@ function Z3(a, e, t) {
|
|
|
5289
5289
|
let ne = _;
|
|
5290
5290
|
if (N.value && L.value) {
|
|
5291
5291
|
let he = Y.value;
|
|
5292
|
-
he || (he = (yt,
|
|
5293
|
-
let G1 = $1(Za(yt[
|
|
5292
|
+
he || (he = (yt, Q4) => {
|
|
5293
|
+
let G1 = $1(Za(yt[Ve.value]), de.value);
|
|
5294
5294
|
return M.value ? G1.startsWith($1(N.value, de.value)) : G1.indexOf($1(N.value, de.value)) !== -1;
|
|
5295
5295
|
}), ne = ne.filter(he);
|
|
5296
5296
|
}
|
|
@@ -5299,15 +5299,15 @@ function Z3(a, e, t) {
|
|
|
5299
5299
|
let H = _;
|
|
5300
5300
|
return U3(H) && (H = Object.keys(H).map((ne) => {
|
|
5301
5301
|
let he = H[ne];
|
|
5302
|
-
return { [D.value]: ne, [
|
|
5303
|
-
})), H = H.map((ne) => typeof ne == "object" ? ne : { [D.value]: ne, [
|
|
5302
|
+
return { [D.value]: ne, [Ve.value]: he, [u.value]: he };
|
|
5303
|
+
})), H = H.map((ne) => typeof ne == "object" ? ne : { [D.value]: ne, [Ve.value]: ne, [u.value]: ne }), H;
|
|
5304
5304
|
}, Ut = () => {
|
|
5305
|
-
|
|
5306
|
-
}, jt = (_) => (
|
|
5305
|
+
He(S.value) || (B.value = Zt(S.value));
|
|
5306
|
+
}, jt = (_) => (Le.value = !0, new Promise((H, ne) => {
|
|
5307
5307
|
s.value(N.value, ie).then((he) => {
|
|
5308
|
-
Fe.value = he || [], typeof _ == "function" && _(he),
|
|
5308
|
+
Fe.value = he || [], typeof _ == "function" && _(he), Le.value = !1;
|
|
5309
5309
|
}).catch((he) => {
|
|
5310
|
-
console.error(he), Fe.value = [],
|
|
5310
|
+
console.error(he), Fe.value = [], Le.value = !1;
|
|
5311
5311
|
}).finally(() => {
|
|
5312
5312
|
H();
|
|
5313
5313
|
});
|
|
@@ -5329,19 +5329,19 @@ function Z3(a, e, t) {
|
|
|
5329
5329
|
});
|
|
5330
5330
|
}, ln = (_) => {
|
|
5331
5331
|
jt(_);
|
|
5332
|
-
}, Zt = (_) =>
|
|
5332
|
+
}, Zt = (_) => He(_) ? n.value === "single" ? {} : [] : w.value ? _ : n.value === "single" ? Ne(_) || (K.value ? {
|
|
5333
5333
|
[u.value]: _,
|
|
5334
5334
|
[D.value]: _,
|
|
5335
|
-
[
|
|
5335
|
+
[Ve.value]: _
|
|
5336
5336
|
} : {}) : _.filter((H) => !!Ne(H) || K.value).map((H) => Ne(H) || {
|
|
5337
5337
|
[u.value]: H,
|
|
5338
5338
|
[D.value]: H,
|
|
5339
|
-
[
|
|
5339
|
+
[Ve.value]: H
|
|
5340
5340
|
}), K1 = () => {
|
|
5341
5341
|
f1.value = ue(N, (_) => {
|
|
5342
|
-
_.length < b.value || !_ && b.value !== 0 || (
|
|
5342
|
+
_.length < b.value || !_ && b.value !== 0 || (Le.value = !0, U.value && (Fe.value = []), setTimeout(() => {
|
|
5343
5343
|
_ == N.value && s.value(N.value, ie).then((H) => {
|
|
5344
|
-
(_ == N.value || !N.value) && (Fe.value = H, Ra.value = bt.value.filter((ne) => ne[se.value] !== !0)[0] || null,
|
|
5344
|
+
(_ == N.value || !N.value) && (Fe.value = H, Ra.value = bt.value.filter((ne) => ne[se.value] !== !0)[0] || null, Le.value = !1);
|
|
5345
5345
|
}).catch(
|
|
5346
5346
|
/* istanbul ignore next */
|
|
5347
5347
|
(H) => {
|
|
@@ -5351,12 +5351,12 @@ function Z3(a, e, t) {
|
|
|
5351
5351
|
}, A.value));
|
|
5352
5352
|
}, { flush: "sync" });
|
|
5353
5353
|
};
|
|
5354
|
-
if (n.value !== "single" && !
|
|
5354
|
+
if (n.value !== "single" && !He(S.value) && !Array.isArray(S.value))
|
|
5355
5355
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5356
5356
|
return s && typeof s.value == "function" ? g.value ? jt(Ut) : w.value == !0 && Ut() : (Fe.value = s.value, Ut()), A.value > -1 && K1(), ue(A, (_, H) => {
|
|
5357
5357
|
f1.value && f1.value(), _ >= 0 && K1();
|
|
5358
5358
|
}), ue(S, (_) => {
|
|
5359
|
-
if (
|
|
5359
|
+
if (He(_)) {
|
|
5360
5360
|
Me(Zt(_), !1);
|
|
5361
5361
|
return;
|
|
5362
5362
|
}
|
|
@@ -5385,7 +5385,7 @@ function Z3(a, e, t) {
|
|
|
5385
5385
|
filteredGroups: F1,
|
|
5386
5386
|
noOptions: Wa,
|
|
5387
5387
|
noResults: Ya,
|
|
5388
|
-
resolving:
|
|
5388
|
+
resolving: Le,
|
|
5389
5389
|
busy: Ga,
|
|
5390
5390
|
offset: v1,
|
|
5391
5391
|
select: rt,
|
|
@@ -5447,7 +5447,7 @@ function F3(a, e, t) {
|
|
|
5447
5447
|
let S = D.value.map((N) => N[s.value]).indexOf(g.value[s.value]) + 1;
|
|
5448
5448
|
D.value.length <= S && (S = 0), b(D.value[S] || null);
|
|
5449
5449
|
}
|
|
5450
|
-
|
|
5450
|
+
Oe(() => {
|
|
5451
5451
|
B();
|
|
5452
5452
|
});
|
|
5453
5453
|
}, Y = () => {
|
|
@@ -5462,7 +5462,7 @@ function F3(a, e, t) {
|
|
|
5462
5462
|
let S = D.value.map((N) => N[s.value]).indexOf(g.value[s.value]) - 1;
|
|
5463
5463
|
S < 0 && (S = D.value.length - 1), b(D.value[S] || null);
|
|
5464
5464
|
}
|
|
5465
|
-
|
|
5465
|
+
Oe(() => {
|
|
5466
5466
|
B();
|
|
5467
5467
|
});
|
|
5468
5468
|
}, ie = (S) => K.value.find((N) => N.__VISIBLE__.map((pe) => pe[s.value]).indexOf(S[s.value]) !== -1), B = () => {
|
|
@@ -5480,7 +5480,7 @@ function F3(a, e, t) {
|
|
|
5480
5480
|
if (!N)
|
|
5481
5481
|
return;
|
|
5482
5482
|
let pe = N.parentElement.parentElement;
|
|
5483
|
-
|
|
5483
|
+
Oe(() => {
|
|
5484
5484
|
pe.scrollTop > 0 || (pe.scrollTop = N.offsetTop);
|
|
5485
5485
|
});
|
|
5486
5486
|
}
|
|
@@ -5753,7 +5753,7 @@ function K3(a, e, t) {
|
|
|
5753
5753
|
const { isIntersecting: A, target: g } = $[0];
|
|
5754
5754
|
if (A) {
|
|
5755
5755
|
const b = g.offsetParent, L = b.scrollTop;
|
|
5756
|
-
i.value += s.value == -1 ? 10 : s.value,
|
|
5756
|
+
i.value += s.value == -1 ? 10 : s.value, Oe(() => {
|
|
5757
5757
|
b.scrollTop = L;
|
|
5758
5758
|
});
|
|
5759
5759
|
}
|
|
@@ -6214,7 +6214,7 @@ function _5(a, e, t, s, n, o) {
|
|
|
6214
6214
|
onKeyup: e[12] || (e[12] = (...i) => a.handleKeyup && a.handleKeyup(...i)),
|
|
6215
6215
|
onKeydown: e[13] || (e[13] = (...i) => a.handleKeydown && a.handleKeydown(...i))
|
|
6216
6216
|
}, [
|
|
6217
|
-
f("div",
|
|
6217
|
+
f("div", Ie({
|
|
6218
6218
|
class: a.classList.wrapper,
|
|
6219
6219
|
onMousedown: e[9] || (e[9] = (...i) => a.handleMousedown && a.handleMousedown(...i)),
|
|
6220
6220
|
ref: "wrapper",
|
|
@@ -6227,7 +6227,7 @@ function _5(a, e, t, s, n, o) {
|
|
|
6227
6227
|
role: t.searchable ? void 0 : "combobox"
|
|
6228
6228
|
}, t.searchable ? {} : a.arias), [
|
|
6229
6229
|
k(" Search "),
|
|
6230
|
-
t.mode !== "tags" && t.searchable && !t.disabled ? (c(), m("input",
|
|
6230
|
+
t.mode !== "tags" && t.searchable && !t.disabled ? (c(), m("input", Ie({
|
|
6231
6231
|
key: 0,
|
|
6232
6232
|
type: t.inputType,
|
|
6233
6233
|
modelValue: a.search,
|
|
@@ -6319,7 +6319,7 @@ function _5(a, e, t, s, n, o) {
|
|
|
6319
6319
|
/* TEXT, CLASS */
|
|
6320
6320
|
),
|
|
6321
6321
|
k(" Actual search input "),
|
|
6322
|
-
t.searchable && !t.disabled ? (c(), m("input",
|
|
6322
|
+
t.searchable && !t.disabled ? (c(), m("input", Ie({
|
|
6323
6323
|
key: 0,
|
|
6324
6324
|
type: t.inputType,
|
|
6325
6325
|
modelValue: a.search,
|
|
@@ -6737,9 +6737,9 @@ async function Ue(a, e) {
|
|
|
6737
6737
|
if (s.length !== 1)
|
|
6738
6738
|
return;
|
|
6739
6739
|
const n = s[0].id;
|
|
6740
|
-
await
|
|
6740
|
+
await Oe();
|
|
6741
6741
|
const o = document.getElementById(n);
|
|
6742
|
-
o == null || o.focus(), await
|
|
6742
|
+
o == null || o.focus(), await Oe();
|
|
6743
6743
|
const i = document.getElementById(
|
|
6744
6744
|
n
|
|
6745
6745
|
);
|
|
@@ -7005,7 +7005,7 @@ const H5 = { class: "ao-comment" }, D5 = { class: "ao-comment__body" }, P5 = { c
|
|
|
7005
7005
|
e("remove");
|
|
7006
7006
|
}, $ = Q(2);
|
|
7007
7007
|
return hn(() => {
|
|
7008
|
-
|
|
7008
|
+
Oe(() => {
|
|
7009
7009
|
var A;
|
|
7010
7010
|
if (!o.value) {
|
|
7011
7011
|
const g = (A = n.value) == null ? void 0 : A.getClientRects().length;
|
|
@@ -7093,7 +7093,7 @@ const U5 = {
|
|
|
7093
7093
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
7094
7094
|
setup(a, { emit: e }) {
|
|
7095
7095
|
const t = a, s = (u) => t.users.find((p) => p.id === u), n = Q();
|
|
7096
|
-
|
|
7096
|
+
Oe(() => {
|
|
7097
7097
|
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7098
7098
|
});
|
|
7099
7099
|
const o = ft(t.newComment), i = y({
|
|
@@ -7281,7 +7281,9 @@ const Y5 = {
|
|
|
7281
7281
|
var O;
|
|
7282
7282
|
return {
|
|
7283
7283
|
...h,
|
|
7284
|
-
disabled: (O = t.activity.dependingOn) == null ? void 0 : O.some(
|
|
7284
|
+
disabled: (O = t.activity.dependingOn) == null ? void 0 : O.some(
|
|
7285
|
+
(z) => z.id === h.value
|
|
7286
|
+
)
|
|
7285
7287
|
};
|
|
7286
7288
|
})), w = y(() => (t.templateMilestones || []).filter((O) => O.id !== t.milestoneId).map((O) => ({
|
|
7287
7289
|
label: O.name,
|
|
@@ -7317,7 +7319,8 @@ const Y5 = {
|
|
|
7317
7319
|
set(h) {
|
|
7318
7320
|
e("update:activity", {
|
|
7319
7321
|
id: t.activity.id,
|
|
7320
|
-
assigneeId: h[0]
|
|
7322
|
+
assigneeId: h[0] ?? null
|
|
7323
|
+
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
7321
7324
|
});
|
|
7322
7325
|
}
|
|
7323
7326
|
}), W = (h) => {
|
|
@@ -7483,7 +7486,10 @@ const Y5 = {
|
|
|
7483
7486
|
disabled: !h.isEditable,
|
|
7484
7487
|
caret: h.isEditable
|
|
7485
7488
|
}, {
|
|
7486
|
-
tag: j(({
|
|
7489
|
+
tag: j(({
|
|
7490
|
+
option: z,
|
|
7491
|
+
handleTagRemove: ae
|
|
7492
|
+
}) => [
|
|
7487
7493
|
T(_t, {
|
|
7488
7494
|
"user-name": z.label,
|
|
7489
7495
|
"avatar-url": z.avatar,
|
|
@@ -8454,7 +8460,7 @@ const h9 = { class: "ao-project-phase" }, m9 = {
|
|
|
8454
8460
|
]),
|
|
8455
8461
|
f("div", _9, [
|
|
8456
8462
|
f("div", g9, [
|
|
8457
|
-
T(F(Xe),
|
|
8463
|
+
T(F(Xe), Ie({
|
|
8458
8464
|
class: "ao-project-phase__milestones-list",
|
|
8459
8465
|
list: o.value,
|
|
8460
8466
|
disabled: !v.isEditable,
|
|
@@ -8673,7 +8679,7 @@ function D9(a, e, t, s, n, o) {
|
|
|
8673
8679
|
}, q(a.rightLabel), 3)
|
|
8674
8680
|
]);
|
|
8675
8681
|
}
|
|
8676
|
-
const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655"]]), P9 = { class: "ao-project
|
|
8682
|
+
const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655"]]), P9 = { class: "ao-project" }, B9 = { class: "ao-project__body" }, N9 = /* @__PURE__ */ x({
|
|
8677
8683
|
__name: "AoProjectOverviewProject",
|
|
8678
8684
|
props: {
|
|
8679
8685
|
project: {},
|
|
@@ -8733,8 +8739,8 @@ const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655
|
|
|
8733
8739
|
return (E, J) => {
|
|
8734
8740
|
const de = mn("RouterView");
|
|
8735
8741
|
return c(), m(ve, null, [
|
|
8736
|
-
f("div",
|
|
8737
|
-
f("div",
|
|
8742
|
+
f("div", Ie({ class: "ao-project-overview" }, E.$attrs), [
|
|
8743
|
+
f("div", P9, [
|
|
8738
8744
|
T(r1, null, {
|
|
8739
8745
|
primary: j(() => [
|
|
8740
8746
|
T(Ba, {
|
|
@@ -8755,7 +8761,7 @@ const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655
|
|
|
8755
8761
|
]),
|
|
8756
8762
|
_: 1
|
|
8757
8763
|
}),
|
|
8758
|
-
f("div",
|
|
8764
|
+
f("div", B9, [
|
|
8759
8765
|
T(T9, {
|
|
8760
8766
|
phases: E.phases,
|
|
8761
8767
|
"closed-status": E.closedStatus,
|
|
@@ -8802,7 +8808,7 @@ const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655
|
|
|
8802
8808
|
onRemoveComment: D
|
|
8803
8809
|
}, null, 8, ["activities", "is-task-checkable", "statuses", "phases", "users", "user-id", "is-editable"])
|
|
8804
8810
|
]))
|
|
8805
|
-
]),
|
|
8811
|
+
], 16),
|
|
8806
8812
|
(c(), R(It, { to: "body" }, [
|
|
8807
8813
|
K.value ? (c(), R(L9, {
|
|
8808
8814
|
key: 0,
|
|
@@ -8816,34 +8822,34 @@ const Ba = /* @__PURE__ */ P(V9, [["render", D9], ["__scopeId", "data-v-8f286655
|
|
|
8816
8822
|
};
|
|
8817
8823
|
}
|
|
8818
8824
|
});
|
|
8819
|
-
const
|
|
8825
|
+
const R9 = { class: "ao-card-feed__header" }, U9 = {
|
|
8820
8826
|
key: 1,
|
|
8821
8827
|
class: "ao-card-feed__header-secondary ao-card-feed__header-icons"
|
|
8822
|
-
},
|
|
8828
|
+
}, j9 = {
|
|
8823
8829
|
key: 2,
|
|
8824
8830
|
class: "ao-card-feed__header-secondary ao-card-feed__secondary"
|
|
8825
|
-
},
|
|
8831
|
+
}, Z9 = { class: "ao-card-feed__body" }, F9 = {
|
|
8826
8832
|
key: 0,
|
|
8827
8833
|
class: "ao-card-feed__breadcrumbs"
|
|
8828
|
-
},
|
|
8834
|
+
}, q9 = {
|
|
8829
8835
|
key: 1,
|
|
8830
8836
|
class: "ao-card-feed__deadline"
|
|
8831
|
-
},
|
|
8837
|
+
}, z9 = { class: "ao-card-feed__footer" }, W9 = { class: "ao-card-feed__footer-row" }, Y9 = { class: "ao-assignees" }, K9 = {
|
|
8832
8838
|
key: 0,
|
|
8833
8839
|
class: "ao-assignee"
|
|
8834
|
-
},
|
|
8840
|
+
}, G9 = {
|
|
8835
8841
|
key: 0,
|
|
8836
8842
|
class: "ao-card-feed__subitems"
|
|
8837
|
-
},
|
|
8843
|
+
}, x9 = {
|
|
8838
8844
|
key: 0,
|
|
8839
8845
|
class: "ao-card-feed__subitem"
|
|
8840
|
-
},
|
|
8846
|
+
}, X9 = { class: "ao-card-feed__subitem" }, Q9 = {
|
|
8841
8847
|
key: 1,
|
|
8842
8848
|
class: "ao-card-feed__subitem"
|
|
8843
|
-
},
|
|
8849
|
+
}, J9 = { class: "ao-card-feed__subitem" }, e4 = { class: "ao-card-feed__footer-row" }, t4 = {
|
|
8844
8850
|
key: 0,
|
|
8845
8851
|
class: "ao-card-feed__progress-wrapper"
|
|
8846
|
-
},
|
|
8852
|
+
}, a4 = { class: "ao-card-feed__subitem" }, n4 = { class: "ao-card-feed__subitem" }, Na = /* @__PURE__ */ x({
|
|
8847
8853
|
__name: "AoCardFeed",
|
|
8848
8854
|
props: {
|
|
8849
8855
|
id: {},
|
|
@@ -8885,7 +8891,7 @@ const U9 = { class: "ao-card-feed__header" }, j9 = {
|
|
|
8885
8891
|
"is-clickable": !0
|
|
8886
8892
|
}, {
|
|
8887
8893
|
header: j(() => [
|
|
8888
|
-
f("div",
|
|
8894
|
+
f("div", R9, [
|
|
8889
8895
|
p.projectName ? (c(), R(E1, {
|
|
8890
8896
|
key: 0,
|
|
8891
8897
|
label: p.projectName,
|
|
@@ -8894,7 +8900,7 @@ const U9 = { class: "ao-card-feed__header" }, j9 = {
|
|
|
8894
8900
|
color: p.projectColor ? void 0 : "primary",
|
|
8895
8901
|
"raw-color": p.projectColor
|
|
8896
8902
|
}, null, 8, ["label", "color", "raw-color"])) : k("", !0),
|
|
8897
|
-
p.isPrivate || p.important ? (c(), m("div",
|
|
8903
|
+
p.isPrivate || p.important ? (c(), m("div", U9, [
|
|
8898
8904
|
p.isPrivate ? (c(), R(ce, {
|
|
8899
8905
|
key: 0,
|
|
8900
8906
|
name: "Lock",
|
|
@@ -8908,14 +8914,14 @@ const U9 = { class: "ao-card-feed__header" }, j9 = {
|
|
|
8908
8914
|
size: "sm"
|
|
8909
8915
|
})) : k("", !0)
|
|
8910
8916
|
])) : k("", !0),
|
|
8911
|
-
p.$slots.secondary ? (c(), m("div",
|
|
8917
|
+
p.$slots.secondary ? (c(), m("div", j9, [
|
|
8912
8918
|
ee(p.$slots, "secondary")
|
|
8913
8919
|
])) : k("", !0)
|
|
8914
8920
|
])
|
|
8915
8921
|
]),
|
|
8916
8922
|
default: j(() => [
|
|
8917
|
-
f("div",
|
|
8918
|
-
n.value ? (c(), m("span",
|
|
8923
|
+
f("div", Z9, [
|
|
8924
|
+
n.value ? (c(), m("span", F9, q(n.value), 1)) : k("", !0),
|
|
8919
8925
|
T(Ce, {
|
|
8920
8926
|
id: p.id,
|
|
8921
8927
|
title: p.name,
|
|
@@ -8923,17 +8929,17 @@ const U9 = { class: "ao-card-feed__header" }, j9 = {
|
|
|
8923
8929
|
"is-editable": p.isEditable,
|
|
8924
8930
|
"onUpdate:title": s
|
|
8925
8931
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8926
|
-
p.deadline ? (c(), m("span",
|
|
8932
|
+
p.deadline ? (c(), m("span", q9, q(i.value), 1)) : k("", !0)
|
|
8927
8933
|
])
|
|
8928
8934
|
]),
|
|
8929
8935
|
footer: j(() => [
|
|
8930
|
-
f("div",
|
|
8931
|
-
f("div",
|
|
8932
|
-
f("ul",
|
|
8936
|
+
f("div", z9, [
|
|
8937
|
+
f("div", W9, [
|
|
8938
|
+
f("ul", Y9, [
|
|
8933
8939
|
(c(!0), m(ve, null, be(o.value, (w) => (c(), m(ve, {
|
|
8934
8940
|
key: w.id
|
|
8935
8941
|
}, [
|
|
8936
|
-
w ? (c(), m("li",
|
|
8942
|
+
w ? (c(), m("li", K9, [
|
|
8937
8943
|
T(_t, {
|
|
8938
8944
|
"user-name": l(w),
|
|
8939
8945
|
"avatar-url": w.avatarUrl,
|
|
@@ -8943,31 +8949,31 @@ const U9 = { class: "ao-card-feed__header" }, j9 = {
|
|
|
8943
8949
|
])) : k("", !0)
|
|
8944
8950
|
], 64))), 128))
|
|
8945
8951
|
]),
|
|
8946
|
-
p.comments || p.attachments ? (c(), m("ul",
|
|
8947
|
-
p.comments ? (c(), m("li",
|
|
8952
|
+
p.comments || p.attachments ? (c(), m("ul", G9, [
|
|
8953
|
+
p.comments ? (c(), m("li", x9, [
|
|
8948
8954
|
T(ce, {
|
|
8949
8955
|
name: "ChatOutline",
|
|
8950
8956
|
size: "sm"
|
|
8951
8957
|
}),
|
|
8952
|
-
f("span",
|
|
8958
|
+
f("span", X9, q(p.comments), 1)
|
|
8953
8959
|
])) : k("", !0),
|
|
8954
|
-
p.attachments ? (c(), m("li",
|
|
8960
|
+
p.attachments ? (c(), m("li", Q9, [
|
|
8955
8961
|
T(ce, {
|
|
8956
8962
|
name: "AttachFileRounded",
|
|
8957
8963
|
size: "sm"
|
|
8958
8964
|
}),
|
|
8959
|
-
f("span",
|
|
8965
|
+
f("span", J9, q(p.attachments), 1)
|
|
8960
8966
|
])) : k("", !0)
|
|
8961
8967
|
])) : k("", !0)
|
|
8962
8968
|
]),
|
|
8963
|
-
f("div",
|
|
8964
|
-
p.tasks && p.tasks.length ? (c(), m("div",
|
|
8965
|
-
f("div",
|
|
8969
|
+
f("div", e4, [
|
|
8970
|
+
p.tasks && p.tasks.length ? (c(), m("div", t4, [
|
|
8971
|
+
f("div", a4, [
|
|
8966
8972
|
T(ce, {
|
|
8967
8973
|
name: "SelectCheckBox",
|
|
8968
8974
|
size: "sm"
|
|
8969
8975
|
}),
|
|
8970
|
-
f("span",
|
|
8976
|
+
f("span", n4, q(u.value) + " / " + q(d.value), 1)
|
|
8971
8977
|
]),
|
|
8972
8978
|
T(U1, {
|
|
8973
8979
|
percentages: v.value,
|
|
@@ -8981,7 +8987,7 @@ const U9 = { class: "ao-card-feed__header" }, j9 = {
|
|
|
8981
8987
|
}));
|
|
8982
8988
|
}
|
|
8983
8989
|
});
|
|
8984
|
-
const
|
|
8990
|
+
const s4 = { class: "ao-project-milestone" }, i4 = { class: "ao-project-milestone__header" }, o4 = { class: "ao-project-milestone__title" }, l4 = { class: "ao-project-milestone__body" }, r4 = {
|
|
8985
8991
|
key: 0,
|
|
8986
8992
|
class: "ao-project-milestone__footer"
|
|
8987
8993
|
}, ra = /* @__PURE__ */ x({
|
|
@@ -9036,9 +9042,9 @@ const i4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
|
|
|
9036
9042
|
};
|
|
9037
9043
|
return (p, C) => {
|
|
9038
9044
|
var w;
|
|
9039
|
-
return c(), m("div",
|
|
9040
|
-
f("header",
|
|
9041
|
-
f("div",
|
|
9045
|
+
return c(), m("div", s4, [
|
|
9046
|
+
f("header", i4, [
|
|
9047
|
+
f("div", o4, [
|
|
9042
9048
|
f("span", null, q(p.$t("project.milestone.title")), 1),
|
|
9043
9049
|
T(Ce, {
|
|
9044
9050
|
title: ((w = i.value) == null ? void 0 : w.name) || p.milestoneId,
|
|
@@ -9051,8 +9057,8 @@ const i4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
|
|
|
9051
9057
|
onClick: r
|
|
9052
9058
|
})
|
|
9053
9059
|
]),
|
|
9054
|
-
f("div",
|
|
9055
|
-
T(F(Xe),
|
|
9060
|
+
f("div", l4, [
|
|
9061
|
+
T(F(Xe), Ie({
|
|
9056
9062
|
class: "ao-project-milestone__activities",
|
|
9057
9063
|
list: l.value,
|
|
9058
9064
|
disabled: !p.isEditable,
|
|
@@ -9104,7 +9110,7 @@ const i4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
|
|
|
9104
9110
|
}),
|
|
9105
9111
|
_: 1
|
|
9106
9112
|
}, 16, ["list", "disabled"]),
|
|
9107
|
-
p.isEditable ? (c(), m("div",
|
|
9113
|
+
p.isEditable ? (c(), m("div", r4, [
|
|
9108
9114
|
T(Qe, {
|
|
9109
9115
|
"icon-name": "Add",
|
|
9110
9116
|
label: p.$t("project.activity.add"),
|
|
@@ -9116,7 +9122,7 @@ const i4 = { class: "ao-project-milestone" }, o4 = { class: "ao-project-mileston
|
|
|
9116
9122
|
};
|
|
9117
9123
|
}
|
|
9118
9124
|
});
|
|
9119
|
-
const
|
|
9125
|
+
const u4 = /* @__PURE__ */ x({
|
|
9120
9126
|
__name: "AoProjectOverviewActivityDetails",
|
|
9121
9127
|
props: {
|
|
9122
9128
|
phaseId: {},
|
|
@@ -9199,14 +9205,14 @@ const d4 = /* @__PURE__ */ x({
|
|
|
9199
9205
|
}, null, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) : k("", !0);
|
|
9200
9206
|
};
|
|
9201
9207
|
}
|
|
9202
|
-
}),
|
|
9208
|
+
}), d4 = { class: "ao-col-header" }, c4 = /* @__PURE__ */ x({
|
|
9203
9209
|
__name: "AoColHeader",
|
|
9204
9210
|
props: {
|
|
9205
9211
|
title: {},
|
|
9206
9212
|
items: {}
|
|
9207
9213
|
},
|
|
9208
9214
|
setup(a) {
|
|
9209
|
-
return (e, t) => (c(), m("header",
|
|
9215
|
+
return (e, t) => (c(), m("header", d4, [
|
|
9210
9216
|
T(Ce, {
|
|
9211
9217
|
title: e.title,
|
|
9212
9218
|
class: "ao-col-header__title",
|
|
@@ -9222,15 +9228,15 @@ const d4 = /* @__PURE__ */ x({
|
|
|
9222
9228
|
]));
|
|
9223
9229
|
}
|
|
9224
9230
|
});
|
|
9225
|
-
function
|
|
9231
|
+
function f4(a) {
|
|
9226
9232
|
return Cn() ? (_n(a), !0) : !1;
|
|
9227
9233
|
}
|
|
9228
9234
|
function Jt(a) {
|
|
9229
9235
|
return typeof a == "function" ? a() : F(a);
|
|
9230
9236
|
}
|
|
9231
|
-
const
|
|
9237
|
+
const v4 = typeof window < "u", p4 = (a) => a != null, Tt = () => {
|
|
9232
9238
|
};
|
|
9233
|
-
function
|
|
9239
|
+
function h4(a, e) {
|
|
9234
9240
|
function t(...s) {
|
|
9235
9241
|
return new Promise((n, o) => {
|
|
9236
9242
|
Promise.resolve(a(() => e.apply(this, s), { fn: e, thisArg: this, args: s })).then(n).catch(o);
|
|
@@ -9238,7 +9244,7 @@ function m4(a, e) {
|
|
|
9238
9244
|
}
|
|
9239
9245
|
return t;
|
|
9240
9246
|
}
|
|
9241
|
-
function
|
|
9247
|
+
function m4(a, e = {}) {
|
|
9242
9248
|
let t, s, n = Tt;
|
|
9243
9249
|
const o = (l) => {
|
|
9244
9250
|
clearTimeout(l), n(), n = Tt;
|
|
@@ -9254,9 +9260,9 @@ function C4(a, e = {}) {
|
|
|
9254
9260
|
});
|
|
9255
9261
|
};
|
|
9256
9262
|
}
|
|
9257
|
-
function
|
|
9258
|
-
return
|
|
9259
|
-
|
|
9263
|
+
function C4(a, e = 200, t = {}) {
|
|
9264
|
+
return h4(
|
|
9265
|
+
m4(e, t),
|
|
9260
9266
|
a
|
|
9261
9267
|
);
|
|
9262
9268
|
}
|
|
@@ -9265,27 +9271,27 @@ function M1(a) {
|
|
|
9265
9271
|
const t = Jt(a);
|
|
9266
9272
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
9267
9273
|
}
|
|
9268
|
-
const
|
|
9269
|
-
function
|
|
9274
|
+
const _4 = v4 ? window : void 0;
|
|
9275
|
+
function g4() {
|
|
9270
9276
|
const a = Q(!1);
|
|
9271
9277
|
return nt() && Ht(() => {
|
|
9272
9278
|
a.value = !0;
|
|
9273
9279
|
}), a;
|
|
9274
9280
|
}
|
|
9275
|
-
function
|
|
9276
|
-
const e =
|
|
9281
|
+
function b4(a) {
|
|
9282
|
+
const e = g4();
|
|
9277
9283
|
return y(() => (e.value, !!a()));
|
|
9278
9284
|
}
|
|
9279
|
-
function
|
|
9285
|
+
function y4(a, e, t = {}) {
|
|
9280
9286
|
const {
|
|
9281
9287
|
root: s,
|
|
9282
9288
|
rootMargin: n = "0px",
|
|
9283
9289
|
threshold: o = 0.1,
|
|
9284
|
-
window: i =
|
|
9290
|
+
window: i = _4,
|
|
9285
9291
|
immediate: l = !0
|
|
9286
|
-
} = t, r =
|
|
9292
|
+
} = t, r = b4(() => i && "IntersectionObserver" in i), d = y(() => {
|
|
9287
9293
|
const w = Jt(a);
|
|
9288
|
-
return (Array.isArray(w) ? w : [w]).map(M1).filter(
|
|
9294
|
+
return (Array.isArray(w) ? w : [w]).map(M1).filter(p4);
|
|
9289
9295
|
});
|
|
9290
9296
|
let u = Tt;
|
|
9291
9297
|
const v = Q(l), p = r.value ? ue(
|
|
@@ -9309,7 +9315,7 @@ function w4(a, e, t = {}) {
|
|
|
9309
9315
|
) : Tt, C = () => {
|
|
9310
9316
|
u(), p(), v.value = !1;
|
|
9311
9317
|
};
|
|
9312
|
-
return
|
|
9318
|
+
return f4(C), {
|
|
9313
9319
|
isSupported: r,
|
|
9314
9320
|
isActive: v,
|
|
9315
9321
|
pause() {
|
|
@@ -9321,24 +9327,24 @@ function w4(a, e, t = {}) {
|
|
|
9321
9327
|
stop: C
|
|
9322
9328
|
};
|
|
9323
9329
|
}
|
|
9324
|
-
const
|
|
9330
|
+
const w4 = {
|
|
9325
9331
|
class: /* @__PURE__ */ G(["ao-list-kanban"])
|
|
9326
|
-
},
|
|
9332
|
+
}, $4 = { class: "ao-list-kanban__header" }, M4 = {
|
|
9327
9333
|
key: 0,
|
|
9328
9334
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
9329
|
-
},
|
|
9335
|
+
}, k4 = {
|
|
9330
9336
|
key: 1,
|
|
9331
9337
|
class: "ao-list-kanban__end"
|
|
9332
|
-
},
|
|
9338
|
+
}, A4 = {
|
|
9333
9339
|
key: 0,
|
|
9334
9340
|
class: "ao-list-kanban__no-more"
|
|
9335
|
-
},
|
|
9341
|
+
}, T4 = {
|
|
9336
9342
|
key: 1,
|
|
9337
9343
|
class: "ao-list-kanban__divider"
|
|
9338
|
-
},
|
|
9344
|
+
}, S4 = {
|
|
9339
9345
|
key: 1,
|
|
9340
9346
|
class: "ao-list-kanban__footer"
|
|
9341
|
-
},
|
|
9347
|
+
}, E4 = /* @__PURE__ */ x({
|
|
9342
9348
|
__name: "AoListKanban",
|
|
9343
9349
|
props: {
|
|
9344
9350
|
list: {},
|
|
@@ -9354,7 +9360,7 @@ const $4 = {
|
|
|
9354
9360
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
|
|
9355
9361
|
setup(a, { emit: e }) {
|
|
9356
9362
|
const t = a, s = Q(!1), n = Q(null);
|
|
9357
|
-
|
|
9363
|
+
y4(n, ([{ isIntersecting: r }]) => {
|
|
9358
9364
|
s.value = r;
|
|
9359
9365
|
}), ue(s, (r) => {
|
|
9360
9366
|
r && t.hasMore && !t.isLoading && e("loadMore");
|
|
@@ -9377,12 +9383,12 @@ const $4 = {
|
|
|
9377
9383
|
)
|
|
9378
9384
|
});
|
|
9379
9385
|
};
|
|
9380
|
-
return (r, d) => (c(), m("div",
|
|
9386
|
+
return (r, d) => (c(), m("div", w4, [
|
|
9381
9387
|
r.title || r.$slots.header ? ee(r.$slots, "header", { key: 0 }, () => {
|
|
9382
9388
|
var u;
|
|
9383
9389
|
return [
|
|
9384
|
-
f("div",
|
|
9385
|
-
r.title ? (c(), R(
|
|
9390
|
+
f("div", $4, [
|
|
9391
|
+
r.title ? (c(), R(c4, {
|
|
9386
9392
|
key: 0,
|
|
9387
9393
|
title: r.title,
|
|
9388
9394
|
level: 3,
|
|
@@ -9391,7 +9397,7 @@ const $4 = {
|
|
|
9391
9397
|
])
|
|
9392
9398
|
];
|
|
9393
9399
|
}) : k("", !0),
|
|
9394
|
-
T(F(Xe),
|
|
9400
|
+
T(F(Xe), Ie({
|
|
9395
9401
|
class: "ao-list-kanban__list",
|
|
9396
9402
|
list: r.list,
|
|
9397
9403
|
"item-key": "id",
|
|
@@ -9447,20 +9453,20 @@ const $4 = {
|
|
|
9447
9453
|
];
|
|
9448
9454
|
}),
|
|
9449
9455
|
footer: j(() => [
|
|
9450
|
-
r.isLoading ? (c(), m("div",
|
|
9456
|
+
r.isLoading ? (c(), m("div", M4, [
|
|
9451
9457
|
T(ce, { name: "Loading" })
|
|
9452
9458
|
])) : r.hasMore ? (c(), m("div", {
|
|
9453
9459
|
key: 2,
|
|
9454
9460
|
ref_key: "scrollEnd",
|
|
9455
9461
|
ref: n,
|
|
9456
9462
|
class: "ao-list-kanban__end"
|
|
9457
|
-
}, null, 512)) : (c(), m("div",
|
|
9458
|
-
r.noMoreLabel ? (c(), m("span",
|
|
9463
|
+
}, null, 512)) : (c(), m("div", k4, [
|
|
9464
|
+
r.noMoreLabel ? (c(), m("span", A4, q(r.noMoreLabel), 1)) : r.isEditable ? (c(), m("span", T4)) : k("", !0)
|
|
9459
9465
|
]))
|
|
9460
9466
|
]),
|
|
9461
9467
|
_: 1
|
|
9462
9468
|
}, 16, ["list", "disabled"]),
|
|
9463
|
-
r.$slots.footer || r.footerLabel ? (c(), m("div",
|
|
9469
|
+
r.$slots.footer || r.footerLabel ? (c(), m("div", S4, [
|
|
9464
9470
|
ee(r.$slots, "footer", {}, () => [
|
|
9465
9471
|
r.isEditable ? (c(), R(Qe, {
|
|
9466
9472
|
key: 0,
|
|
@@ -9473,7 +9479,7 @@ const $4 = {
|
|
|
9473
9479
|
]));
|
|
9474
9480
|
}
|
|
9475
9481
|
});
|
|
9476
|
-
const
|
|
9482
|
+
const I4 = { class: "ao-field ao-search-field" }, O4 = ["value", "placeholder", "onKeypress"], L4 = /* @__PURE__ */ x({
|
|
9477
9483
|
__name: "AoSearchField",
|
|
9478
9484
|
props: {
|
|
9479
9485
|
modelValue: {},
|
|
@@ -9485,10 +9491,10 @@ const O4 = { class: "ao-field ao-search-field" }, L4 = ["value", "placeholder",
|
|
|
9485
9491
|
const t = a, s = async (i) => {
|
|
9486
9492
|
const r = i.target.value;
|
|
9487
9493
|
e("update:modelValue", r, i);
|
|
9488
|
-
}, n =
|
|
9494
|
+
}, n = C4(s, t.delay), o = (i) => {
|
|
9489
9495
|
e("clear", i);
|
|
9490
9496
|
};
|
|
9491
|
-
return (i, l) => (c(), m("div",
|
|
9497
|
+
return (i, l) => (c(), m("div", I4, [
|
|
9492
9498
|
f("input", {
|
|
9493
9499
|
value: i.modelValue,
|
|
9494
9500
|
type: "text",
|
|
@@ -9497,7 +9503,7 @@ const O4 = { class: "ao-field ao-search-field" }, L4 = ["value", "placeholder",
|
|
|
9497
9503
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
9498
9504
|
(...r) => F(n) && F(n)(...r)),
|
|
9499
9505
|
onKeypress: Ye(s, ["enter"])
|
|
9500
|
-
}, null, 40,
|
|
9506
|
+
}, null, 40, O4),
|
|
9501
9507
|
T(ce, {
|
|
9502
9508
|
name: "SearchRounded",
|
|
9503
9509
|
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
@@ -9513,7 +9519,7 @@ const O4 = { class: "ao-field ao-search-field" }, L4 = ["value", "placeholder",
|
|
|
9513
9519
|
]));
|
|
9514
9520
|
}
|
|
9515
9521
|
});
|
|
9516
|
-
function
|
|
9522
|
+
function V4(a) {
|
|
9517
9523
|
const e = Q(), t = y(
|
|
9518
9524
|
() => a.value.find(
|
|
9519
9525
|
(n) => n.id === e.value
|
|
@@ -9527,21 +9533,21 @@ function H4(a) {
|
|
|
9527
9533
|
}
|
|
9528
9534
|
};
|
|
9529
9535
|
}
|
|
9530
|
-
const
|
|
9531
|
-
function
|
|
9532
|
-
const e =
|
|
9533
|
-
return gn(
|
|
9536
|
+
const H4 = Symbol.for("FeedStore");
|
|
9537
|
+
function D4(a) {
|
|
9538
|
+
const e = V4(a);
|
|
9539
|
+
return gn(H4, e), e;
|
|
9534
9540
|
}
|
|
9535
|
-
const
|
|
9541
|
+
const P4 = { class: "ao-feed" }, B4 = { class: "ao-feed__filters" }, N4 = { class: "ao-feed__body" }, R4 = { class: "ao-feed__activity-details__header" }, U4 = {
|
|
9536
9542
|
key: 0,
|
|
9537
9543
|
class: "ao-field ao-feed__activity-details__project"
|
|
9538
|
-
},
|
|
9544
|
+
}, j4 = { class: "ao-field__label" }, Z4 = {
|
|
9539
9545
|
key: 1,
|
|
9540
9546
|
class: "ao-field ao-feed__activity-details__project"
|
|
9541
|
-
},
|
|
9547
|
+
}, F4 = { class: "ao-field__label" }, q4 = {
|
|
9542
9548
|
key: 2,
|
|
9543
9549
|
class: "ao-field ao-feed__activity-details__status"
|
|
9544
|
-
},
|
|
9550
|
+
}, z4 = { class: "ao-field__label" }, W4 = { class: "ao-field__row" }, Y4 = { class: "ao-field" }, K4 = { class: "ao-field__label" }, G4 = /* @__PURE__ */ x({
|
|
9545
9551
|
__name: "AoFeed",
|
|
9546
9552
|
props: {
|
|
9547
9553
|
activities: {},
|
|
@@ -9560,7 +9566,7 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9560
9566
|
},
|
|
9561
9567
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9562
9568
|
setup(a, { emit: e }) {
|
|
9563
|
-
const t = a, { t: s } = st(), n = ft(t, "activities"), { selectActivity: o, selectedActivity: i } =
|
|
9569
|
+
const t = a, { t: s } = st(), n = ft(t, "activities"), { selectActivity: o, selectedActivity: i } = D4(n), l = (M) => {
|
|
9564
9570
|
o(M), e("selectActivity", M);
|
|
9565
9571
|
}, r = Q({}), d = Q(!1), u = Q(!1);
|
|
9566
9572
|
ue(
|
|
@@ -9681,10 +9687,10 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9681
9687
|
};
|
|
9682
9688
|
return (M, Y) => {
|
|
9683
9689
|
var ie;
|
|
9684
|
-
return c(), m("div",
|
|
9690
|
+
return c(), m("div", P4, [
|
|
9685
9691
|
T(r1, null, {
|
|
9686
9692
|
primary: j(() => [
|
|
9687
|
-
f("div",
|
|
9693
|
+
f("div", B4, [
|
|
9688
9694
|
t.project ? (c(), R(Ba, {
|
|
9689
9695
|
key: 0,
|
|
9690
9696
|
"is-left": !1,
|
|
@@ -9694,7 +9700,7 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9694
9700
|
B && M.$router.push({ name: F(Re).project });
|
|
9695
9701
|
})
|
|
9696
9702
|
}, null, 8, ["right-label", "left-label"])) : k("", !0),
|
|
9697
|
-
T(
|
|
9703
|
+
T(L4, {
|
|
9698
9704
|
"model-value": M.searchText,
|
|
9699
9705
|
placeholder: M.$t("feed.search.placeholder"),
|
|
9700
9706
|
class: "ao-feed__search",
|
|
@@ -9759,8 +9765,8 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9759
9765
|
]),
|
|
9760
9766
|
_: 1
|
|
9761
9767
|
}),
|
|
9762
|
-
f("div",
|
|
9763
|
-
(c(!0), m(ve, null, be(M.statuses, (B) => (c(), R(
|
|
9768
|
+
f("div", N4, [
|
|
9769
|
+
(c(!0), m(ve, null, be(M.statuses, (B) => (c(), R(E4, {
|
|
9764
9770
|
key: B.id,
|
|
9765
9771
|
status: B,
|
|
9766
9772
|
list: r.value[B.id],
|
|
@@ -9801,9 +9807,9 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9801
9807
|
header: j(() => {
|
|
9802
9808
|
var B, S, N;
|
|
9803
9809
|
return [
|
|
9804
|
-
f("div",
|
|
9805
|
-
re.value && !t.project ? (c(), m("label",
|
|
9806
|
-
f("span",
|
|
9810
|
+
f("div", R4, [
|
|
9811
|
+
re.value && !t.project ? (c(), m("label", U4, [
|
|
9812
|
+
f("span", j4, q(M.$t("activity.project.label")), 1),
|
|
9807
9813
|
T(ye, {
|
|
9808
9814
|
options: re.value,
|
|
9809
9815
|
value: (B = F(i).project) == null ? void 0 : B.id,
|
|
@@ -9813,8 +9819,8 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9813
9819
|
onChange: I
|
|
9814
9820
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9815
9821
|
])) : k("", !0),
|
|
9816
|
-
oe.value ? (c(), m("label",
|
|
9817
|
-
f("span",
|
|
9822
|
+
oe.value ? (c(), m("label", Z4, [
|
|
9823
|
+
f("span", F4, q(M.$t("activity.milestone.label")), 1),
|
|
9818
9824
|
T(ye, {
|
|
9819
9825
|
options: oe.value,
|
|
9820
9826
|
value: (S = F(i).milestone) == null ? void 0 : S.id,
|
|
@@ -9824,8 +9830,8 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9824
9830
|
onChange: V
|
|
9825
9831
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9826
9832
|
])) : k("", !0),
|
|
9827
|
-
Z.value ? (c(), m("label",
|
|
9828
|
-
f("span",
|
|
9833
|
+
Z.value ? (c(), m("label", q4, [
|
|
9834
|
+
f("span", z4, q(M.$t("activity.status.label")), 1),
|
|
9829
9835
|
T(ye, {
|
|
9830
9836
|
options: Z.value,
|
|
9831
9837
|
value: (N = F(i).status) == null ? void 0 : N.id,
|
|
@@ -9840,9 +9846,9 @@ const B4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, R4 = { clas
|
|
|
9840
9846
|
];
|
|
9841
9847
|
}),
|
|
9842
9848
|
default: j(() => [
|
|
9843
|
-
f("div",
|
|
9844
|
-
f("label",
|
|
9845
|
-
f("span",
|
|
9849
|
+
f("div", W4, [
|
|
9850
|
+
f("label", Y4, [
|
|
9851
|
+
f("span", K4, q(M.$t("activity.deadline.label")), 1),
|
|
9846
9852
|
et(f("input", {
|
|
9847
9853
|
"onUpdate:modelValue": Y[5] || (Y[5] = (B) => W.value = B),
|
|
9848
9854
|
class: "ao-field__input",
|
|
@@ -9869,7 +9875,7 @@ const St = {
|
|
|
9869
9875
|
TEMPLATES: "templates",
|
|
9870
9876
|
TEMPLATE_DETAILS: "template_details",
|
|
9871
9877
|
TEMPLATES_LIST: "templates_list"
|
|
9872
|
-
},
|
|
9878
|
+
}, o8 = (a, e = {}) => [
|
|
9873
9879
|
{
|
|
9874
9880
|
path: a,
|
|
9875
9881
|
name: St.TEMPLATES,
|
|
@@ -9878,7 +9884,7 @@ const St = {
|
|
|
9878
9884
|
{
|
|
9879
9885
|
path: "",
|
|
9880
9886
|
name: St.TEMPLATES_LIST,
|
|
9881
|
-
component:
|
|
9887
|
+
component: X4
|
|
9882
9888
|
},
|
|
9883
9889
|
{
|
|
9884
9890
|
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
@@ -9893,7 +9899,7 @@ const St = {
|
|
|
9893
9899
|
feed: "AoProjectFeed",
|
|
9894
9900
|
milestone: "AoMilestone",
|
|
9895
9901
|
activity: "AoActivity"
|
|
9896
|
-
},
|
|
9902
|
+
}, l8 = (a, e = {}) => [
|
|
9897
9903
|
{
|
|
9898
9904
|
path: a,
|
|
9899
9905
|
...e,
|
|
@@ -9901,7 +9907,7 @@ const St = {
|
|
|
9901
9907
|
{
|
|
9902
9908
|
path: "",
|
|
9903
9909
|
name: Re.project,
|
|
9904
|
-
component:
|
|
9910
|
+
component: N9,
|
|
9905
9911
|
props: !0,
|
|
9906
9912
|
children: [
|
|
9907
9913
|
{
|
|
@@ -9916,7 +9922,7 @@ const St = {
|
|
|
9916
9922
|
props: { default: !0, modal: !0 },
|
|
9917
9923
|
components: {
|
|
9918
9924
|
default: ra,
|
|
9919
|
-
modal:
|
|
9925
|
+
modal: u4
|
|
9920
9926
|
}
|
|
9921
9927
|
}
|
|
9922
9928
|
]
|
|
@@ -9924,12 +9930,12 @@ const St = {
|
|
|
9924
9930
|
{
|
|
9925
9931
|
path: "feed",
|
|
9926
9932
|
name: Re.feed,
|
|
9927
|
-
component:
|
|
9933
|
+
component: G4,
|
|
9928
9934
|
props: !0
|
|
9929
9935
|
}
|
|
9930
9936
|
]
|
|
9931
9937
|
}
|
|
9932
|
-
],
|
|
9938
|
+
], x4 = { class: "ao-templates" }, X4 = /* @__PURE__ */ x({
|
|
9933
9939
|
__name: "AoTemplatesList",
|
|
9934
9940
|
props: {
|
|
9935
9941
|
templates: {}
|
|
@@ -9969,7 +9975,7 @@ const St = {
|
|
|
9969
9975
|
});
|
|
9970
9976
|
}
|
|
9971
9977
|
};
|
|
9972
|
-
return (l, r) => (c(), m("div",
|
|
9978
|
+
return (l, r) => (c(), m("div", x4, [
|
|
9973
9979
|
T(r1, null, {
|
|
9974
9980
|
secondary: j(() => [
|
|
9975
9981
|
T(fe, {
|
|
@@ -10014,17 +10020,17 @@ const St = {
|
|
|
10014
10020
|
}
|
|
10015
10021
|
});
|
|
10016
10022
|
export {
|
|
10017
|
-
|
|
10023
|
+
G4 as AoFeed,
|
|
10018
10024
|
x7 as AoTemplateDetails,
|
|
10019
|
-
|
|
10020
|
-
|
|
10025
|
+
a8 as AoTemplates,
|
|
10026
|
+
X4 as AoTemplatesList,
|
|
10021
10027
|
$d as TemplateItemTypeEnum,
|
|
10022
|
-
|
|
10023
|
-
|
|
10028
|
+
s8 as activityFeedStatus,
|
|
10029
|
+
n8 as durationTypes,
|
|
10024
10030
|
dt as feedFilterTypes,
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10031
|
+
l8 as getProjectOverviewRoutes,
|
|
10032
|
+
o8 as getTemplateRoutes,
|
|
10033
|
+
i8 as listUpdateTypes,
|
|
10028
10034
|
k1 as milestoneStatus,
|
|
10029
10035
|
Re as projectOverviewRoutes,
|
|
10030
10036
|
bd as ruleComparators,
|