@26lights/orcha 0.13.3 → 0.13.5
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.css +1 -1
- package/dist/orcha.es.js +158 -156
- package/dist/orcha.umd.js +2 -2
- package/dist/src/types/utils.d.ts +6 -0
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, openBlock as v, createBlock as N, unref as
|
|
1
|
+
import { defineComponent as G, openBlock as v, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as f, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as b, resolveDynamicComponent as tt, normalizeClass as x, renderSlot as te, toDisplayString as z, createCommentVNode as T, ref as J, watch as re, nextTick as Ee, withKeys as Ye, toHandlers as cn, withCtx as j, createTextVNode as e1, createVNode as A, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as ye, onMounted as Dt, onBeforeUnmount as dn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as dt, normalizeProps as fn, guardReactiveProps as vn, onUpdated as pn, withDirectives as ft, vModelText as Et, vModelCheckbox as hn, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
|
|
2
2
|
import { RouterView as yn } from "vue-router";
|
|
3
3
|
import Xe from "vuedraggable";
|
|
4
4
|
const Y4 = /* @__PURE__ */ G({
|
|
@@ -7,7 +7,7 @@ const Y4 = /* @__PURE__ */ G({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
return (e, t) => (v(), N(
|
|
10
|
+
return (e, t) => (v(), N(q(yn), Ve({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), B = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
@@ -1264,16 +1264,16 @@ const me = /* @__PURE__ */ G({
|
|
|
1264
1264
|
{
|
|
1265
1265
|
[`ao-title--${M.color}`]: !!M.color,
|
|
1266
1266
|
"ao-title--editable": M.isEditable,
|
|
1267
|
-
"ao-field__input ao-title--editing":
|
|
1268
|
-
"ao-title--readonly": !
|
|
1267
|
+
"ao-field__input ao-title--editing": q(n),
|
|
1268
|
+
"ao-title--readonly": !q(n)
|
|
1269
1269
|
}
|
|
1270
1270
|
],
|
|
1271
|
-
type:
|
|
1272
|
-
value:
|
|
1271
|
+
type: q(n) ? "text" : null,
|
|
1272
|
+
value: q(n) ? M.title : null,
|
|
1273
1273
|
tabindex: "0",
|
|
1274
1274
|
onKeyup: Ye(C, ["enter"])
|
|
1275
1275
|
}, cn(c.value), {
|
|
1276
|
-
onKeydown: Ye(
|
|
1276
|
+
onKeydown: Ye(q(d), ["esc"])
|
|
1277
1277
|
}), {
|
|
1278
1278
|
default: j(() => [
|
|
1279
1279
|
e1(z(M.title), 1)
|
|
@@ -3648,7 +3648,7 @@ const l3 = ["title"], r3 = {
|
|
|
3648
3648
|
class: x(o.avatarUrl ? ["ao-avatar-img", `ao-avatar-img--${o.size}`] : ["ao-avatar", `ao-avatar--${o.size}`]),
|
|
3649
3649
|
title: o.userName
|
|
3650
3650
|
}, [
|
|
3651
|
-
o.avatarUrl ? T("", !0) : (v(), h("span", r3, z(
|
|
3651
|
+
o.avatarUrl ? T("", !0) : (v(), h("span", r3, z(q(s)), 1)),
|
|
3652
3652
|
o.avatarUrl ? (v(), h("img", {
|
|
3653
3653
|
key: 1,
|
|
3654
3654
|
className: "ao-avatar__image",
|
|
@@ -3945,7 +3945,7 @@ const R3 = /* @__PURE__ */ G({
|
|
|
3945
3945
|
});
|
|
3946
3946
|
}
|
|
3947
3947
|
};
|
|
3948
|
-
return (l, r) => l.phase ? (v(), N(
|
|
3948
|
+
return (l, r) => l.phase ? (v(), N(q(Xe), {
|
|
3949
3949
|
key: 0,
|
|
3950
3950
|
"model-value": l.phase.milestones,
|
|
3951
3951
|
class: "ao-templates__list",
|
|
@@ -4035,7 +4035,7 @@ const R3 = /* @__PURE__ */ G({
|
|
|
4035
4035
|
});
|
|
4036
4036
|
}
|
|
4037
4037
|
};
|
|
4038
|
-
return (l, r) => l.milestone ? (v(), N(
|
|
4038
|
+
return (l, r) => l.milestone ? (v(), N(q(Xe), {
|
|
4039
4039
|
key: 0,
|
|
4040
4040
|
"model-value": l.milestone.activities,
|
|
4041
4041
|
title: l.$t("template.activities.title"),
|
|
@@ -4914,7 +4914,7 @@ const T0 = (a, e, t) => {
|
|
|
4914
4914
|
}, E0 = (a) => {
|
|
4915
4915
|
const e = J(!1), t = J(), s = J(), n = J(0);
|
|
4916
4916
|
function o() {
|
|
4917
|
-
const d =
|
|
4917
|
+
const d = q(a.appendTo);
|
|
4918
4918
|
return d ? typeof d == "string" ? document.getElementById(d) ?? document.body : d : document.getElementById("floatingElements") ?? document.body;
|
|
4919
4919
|
}
|
|
4920
4920
|
const i = o(), l = J(() => {
|
|
@@ -5089,11 +5089,11 @@ function P0(a, e, t) {
|
|
|
5089
5089
|
groupOptions: ie,
|
|
5090
5090
|
groupHideEmpty: O,
|
|
5091
5091
|
groupSelect: L,
|
|
5092
|
-
onCreate:
|
|
5092
|
+
onCreate: W,
|
|
5093
5093
|
disabledProp: $,
|
|
5094
5094
|
searchStart: Y,
|
|
5095
5095
|
searchFilter: he
|
|
5096
|
-
} = $e(a),
|
|
5096
|
+
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 = b(() => r.value || c.value || !1), Za = b(() => d.value !== void 0 ? d.value : p.value !== void 0 ? p.value : !0), qe = b(() => {
|
|
5097
5097
|
if (ue.value) {
|
|
5098
5098
|
let m = Rt.value || /* istanbul ignore next */
|
|
5099
5099
|
[], H = [];
|
|
@@ -5148,12 +5148,12 @@ function P0(a, e, t) {
|
|
|
5148
5148
|
}), p1 = b(() => {
|
|
5149
5149
|
switch (n.value) {
|
|
5150
5150
|
case "single":
|
|
5151
|
-
return !Le(
|
|
5151
|
+
return !Le(F.value[D.value]);
|
|
5152
5152
|
case "multiple":
|
|
5153
5153
|
case "tags":
|
|
5154
|
-
return !Le(
|
|
5154
|
+
return !Le(F.value) && F.value.length > 0;
|
|
5155
5155
|
}
|
|
5156
|
-
}), qa = b(() => C !== void 0 && C.value !== void 0 ? C.value(
|
|
5156
|
+
}), qa = b(() => C !== void 0 && C.value !== void 0 ? C.value(F.value, Z) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), Wa = b(() => !qe.value.length && !Ie.value && !ot.value.length), za = b(() => qe.value.length > 0 && yt.value.length == 0 && (U.value && ue.value || !ue.value)), ot = b(() => j1.value === !1 || !U.value ? [] : tn(U.value) !== -1 ? [] : [{
|
|
5157
5157
|
[D.value]: U.value,
|
|
5158
5158
|
[Oe.value]: U.value,
|
|
5159
5159
|
[u.value]: U.value,
|
|
@@ -5173,10 +5173,10 @@ function P0(a, e, t) {
|
|
|
5173
5173
|
break;
|
|
5174
5174
|
case "multiple":
|
|
5175
5175
|
case "tags":
|
|
5176
|
-
Pe(
|
|
5176
|
+
Pe(F.value.concat(m));
|
|
5177
5177
|
break;
|
|
5178
5178
|
}
|
|
5179
|
-
e.emit("select", q1(m), m,
|
|
5179
|
+
e.emit("select", q1(m), m, Z);
|
|
5180
5180
|
}, rt = (m) => {
|
|
5181
5181
|
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5182
5182
|
case "single":
|
|
@@ -5184,10 +5184,10 @@ function P0(a, e, t) {
|
|
|
5184
5184
|
break;
|
|
5185
5185
|
case "tags":
|
|
5186
5186
|
case "multiple":
|
|
5187
|
-
Pe(Array.isArray(m) ?
|
|
5187
|
+
Pe(Array.isArray(m) ? F.value.filter((H) => m.map((se) => se[D.value]).indexOf(H[D.value]) === -1) : F.value.filter((H) => H[D.value] != m[D.value]));
|
|
5188
5188
|
break;
|
|
5189
5189
|
}
|
|
5190
|
-
e.emit("deselect", q1(m), m,
|
|
5190
|
+
e.emit("deselect", q1(m), m, Z);
|
|
5191
5191
|
}, q1 = (m) => w.value ? m : m[D.value], W1 = (m) => {
|
|
5192
5192
|
rt(m);
|
|
5193
5193
|
}, xa = (m, H) => {
|
|
@@ -5197,20 +5197,20 @@ function P0(a, e, t) {
|
|
|
5197
5197
|
}
|
|
5198
5198
|
W1(m);
|
|
5199
5199
|
}, z1 = () => {
|
|
5200
|
-
e.emit("clear",
|
|
5200
|
+
e.emit("clear", Z), Pe(Ya.value);
|
|
5201
5201
|
}, Be = (m) => {
|
|
5202
5202
|
if (m.group !== void 0)
|
|
5203
5203
|
return n.value === "single" ? !1 : en(m[ie.value]) && m[ie.value].length;
|
|
5204
5204
|
switch (n.value) {
|
|
5205
5205
|
case "single":
|
|
5206
|
-
return !Le(
|
|
5206
|
+
return !Le(F.value) && F.value[D.value] == m[D.value];
|
|
5207
5207
|
case "tags":
|
|
5208
5208
|
case "multiple":
|
|
5209
|
-
return !Le(
|
|
5209
|
+
return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(m[D.value]) !== -1;
|
|
5210
5210
|
}
|
|
5211
|
-
}, h1 = (m) => m[$.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 :
|
|
5211
|
+
}, h1 = (m) => m[$.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : F.value.length >= ee.value, Ga = (m) => {
|
|
5212
5212
|
if (!h1(m)) {
|
|
5213
|
-
if (
|
|
5213
|
+
if (W && W.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = W.value(m, Z), m instanceof Promise)) {
|
|
5214
5214
|
Ie.value = !0, m.then((H) => {
|
|
5215
5215
|
Ie.value = !1, Y1(H);
|
|
5216
5216
|
});
|
|
@@ -5233,7 +5233,7 @@ function P0(a, e, t) {
|
|
|
5233
5233
|
return;
|
|
5234
5234
|
}
|
|
5235
5235
|
if (m1()) {
|
|
5236
|
-
e.emit("max",
|
|
5236
|
+
e.emit("max", Z);
|
|
5237
5237
|
return;
|
|
5238
5238
|
}
|
|
5239
5239
|
m && (C1(m), lt(m)), K.value && Ce(), l.value && st(), k.value && it();
|
|
@@ -5244,7 +5244,7 @@ function P0(a, e, t) {
|
|
|
5244
5244
|
return;
|
|
5245
5245
|
}
|
|
5246
5246
|
if (m1()) {
|
|
5247
|
-
e.emit("max",
|
|
5247
|
+
e.emit("max", Z);
|
|
5248
5248
|
return;
|
|
5249
5249
|
}
|
|
5250
5250
|
m && C1(m), K.value && Ce(), m && lt(m), l.value && st(), k.value && it();
|
|
@@ -5257,14 +5257,14 @@ function P0(a, e, t) {
|
|
|
5257
5257
|
case "multiple":
|
|
5258
5258
|
case "tags":
|
|
5259
5259
|
Ja(m[ie.value]) ? rt(m[ie.value]) : lt(
|
|
5260
|
-
m[ie.value].filter((H) =>
|
|
5260
|
+
m[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[$.value]).filter((H, se) => F.value.length + 1 + se <= ee.value || ee.value === -1)
|
|
5261
5261
|
);
|
|
5262
5262
|
break;
|
|
5263
5263
|
}
|
|
5264
5264
|
k.value && Ua();
|
|
5265
5265
|
}
|
|
5266
5266
|
}, C1 = (m) => {
|
|
5267
|
-
Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value],
|
|
5267
|
+
Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value], Z), e.emit("option", m[D.value], Z), e.emit("create", m[D.value], Z), Za.value && nn(m), Ce());
|
|
5268
5268
|
}, Qa = () => {
|
|
5269
5269
|
n.value !== "single" && lt(yt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5270
5270
|
}, Ja = (m) => m.find((H) => !Be(H) && !H[$.value]) === void 0, en = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(m))], tn = (m, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
|
|
@@ -5290,9 +5290,9 @@ function P0(a, e, t) {
|
|
|
5290
5290
|
return { [D.value]: se, [Oe.value]: ve, [u.value]: ve };
|
|
5291
5291
|
})), H = H.map((se) => typeof se == "object" ? se : { [D.value]: se, [Oe.value]: se, [u.value]: se }), H;
|
|
5292
5292
|
}, Ut = () => {
|
|
5293
|
-
Le(E.value) || (
|
|
5293
|
+
Le(E.value) || (F.value = Zt(E.value));
|
|
5294
5294
|
}, jt = (m) => (Ie.value = !0, new Promise((H, se) => {
|
|
5295
|
-
s.value(U.value,
|
|
5295
|
+
s.value(U.value, Z).then((ve) => {
|
|
5296
5296
|
Fe.value = ve || [], typeof m == "function" && m(ve), Ie.value = !1;
|
|
5297
5297
|
}).catch((ve) => {
|
|
5298
5298
|
console.error(ve), Fe.value = [], Ie.value = !1;
|
|
@@ -5302,17 +5302,17 @@ function P0(a, e, t) {
|
|
|
5302
5302
|
})), y1 = () => {
|
|
5303
5303
|
if (p1.value)
|
|
5304
5304
|
if (n.value === "single") {
|
|
5305
|
-
let m = Ne(
|
|
5305
|
+
let m = Ne(F.value[D.value]);
|
|
5306
5306
|
if (m !== void 0) {
|
|
5307
5307
|
let H = m[u.value];
|
|
5308
|
-
|
|
5308
|
+
F.value[u.value] = H, w.value && (E.value[u.value] = H);
|
|
5309
5309
|
}
|
|
5310
5310
|
} else
|
|
5311
|
-
|
|
5312
|
-
let se = Ne(
|
|
5311
|
+
F.value.forEach((m, H) => {
|
|
5312
|
+
let se = Ne(F.value[H][D.value]);
|
|
5313
5313
|
if (se !== void 0) {
|
|
5314
5314
|
let ve = se[u.value];
|
|
5315
|
-
|
|
5315
|
+
F.value[H][u.value] = ve, w.value && (E.value[H][u.value] = ve);
|
|
5316
5316
|
}
|
|
5317
5317
|
});
|
|
5318
5318
|
}, on = (m) => {
|
|
@@ -5328,7 +5328,7 @@ function P0(a, e, t) {
|
|
|
5328
5328
|
}), K1 = () => {
|
|
5329
5329
|
f1.value = re(U, (m) => {
|
|
5330
5330
|
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
|
|
5331
|
-
m == U.value && s.value(U.value,
|
|
5331
|
+
m == U.value && s.value(U.value, Z).then((H) => {
|
|
5332
5332
|
(m == U.value || !U.value) && (Fe.value = H, Na.value = yt.value.filter((se) => se[$.value] !== !0)[0] || null, Ie.value = !1);
|
|
5333
5333
|
}).catch(
|
|
5334
5334
|
/* istanbul ignore next */
|
|
@@ -5350,15 +5350,15 @@ function P0(a, e, t) {
|
|
|
5350
5350
|
}
|
|
5351
5351
|
switch (n.value) {
|
|
5352
5352
|
case "single":
|
|
5353
|
-
(w.value ? m[D.value] !=
|
|
5353
|
+
(w.value ? m[D.value] != F.value[D.value] : m != F.value[D.value]) && Pe(Zt(m), !1);
|
|
5354
5354
|
break;
|
|
5355
5355
|
case "multiple":
|
|
5356
5356
|
case "tags":
|
|
5357
|
-
H0(w.value ? m.map((H) => H[D.value]) : m,
|
|
5357
|
+
H0(w.value ? m.map((H) => H[D.value]) : m, F.value.map((H) => H[D.value])) || Pe(Zt(m), !1);
|
|
5358
5358
|
break;
|
|
5359
5359
|
}
|
|
5360
5360
|
}, { deep: !0 }), re(s, (m, H) => {
|
|
5361
|
-
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) && jt() : (Fe.value = a.options, Object.keys(
|
|
5361
|
+
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) && jt() : (Fe.value = a.options, Object.keys(F.value).length || Ut(), y1());
|
|
5362
5362
|
}), re(u, y1), {
|
|
5363
5363
|
pfo: Z1,
|
|
5364
5364
|
fo: yt,
|
|
@@ -5404,23 +5404,23 @@ function B0(a, e, t) {
|
|
|
5404
5404
|
groupSelect: c,
|
|
5405
5405
|
disabledProp: u,
|
|
5406
5406
|
groupOptions: d
|
|
5407
|
-
} = $e(a), p = t.fo, C = t.fg, w = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = b(() => p.value.filter((E) => !E[u.value])), X = b(() => C.value.filter((E) => !E[u.value])), ae = b(() => r.value !== "single" && c.value), I = b(() => _.value && _.value.group), ee = b(() =>
|
|
5407
|
+
} = $e(a), p = t.fo, C = t.fg, w = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = b(() => p.value.filter((E) => !E[u.value])), X = b(() => C.value.filter((E) => !E[u.value])), ae = b(() => r.value !== "single" && c.value), I = b(() => _.value && _.value.group), ee = b(() => Z(_.value)), y = b(() => {
|
|
5408
5408
|
const E = I.value ? _.value : (
|
|
5409
5409
|
/* istanbul ignore next */
|
|
5410
|
-
|
|
5410
|
+
Z(_.value)
|
|
5411
5411
|
), U = X.value.map((Pe) => Pe[i.value]).indexOf(E[i.value]);
|
|
5412
5412
|
let Ce = X.value[U - 1];
|
|
5413
5413
|
return Ce === void 0 && (Ce = P.value), Ce;
|
|
5414
5414
|
}), k = b(() => {
|
|
5415
|
-
let E = X.value.map((U) => U.label).indexOf(I.value ? _.value[i.value] :
|
|
5415
|
+
let E = X.value.map((U) => U.label).indexOf(I.value ? _.value[i.value] : Z(_.value)[i.value]) + 1;
|
|
5416
5416
|
return X.value.length <= E && (E = 0), X.value[E];
|
|
5417
5417
|
}), P = b(() => [...X.value].slice(-1)[0]), ue = b(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = b(() => {
|
|
5418
5418
|
const E = ee.value.__VISIBLE__.filter((U) => !U[u.value]);
|
|
5419
5419
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5420
5420
|
}), le = b(() => {
|
|
5421
|
-
const E =
|
|
5421
|
+
const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5422
5422
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5423
|
-
}), ie = b(() => [...y.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = b(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0,
|
|
5423
|
+
}), ie = b(() => [...y.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = b(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
|
|
5424
5424
|
g(D.value[0] || null);
|
|
5425
5425
|
}, $ = () => {
|
|
5426
5426
|
!_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : w(_.value));
|
|
@@ -5436,7 +5436,7 @@ function B0(a, e, t) {
|
|
|
5436
5436
|
D.value.length <= E && (E = 0), g(D.value[E] || null);
|
|
5437
5437
|
}
|
|
5438
5438
|
Ee(() => {
|
|
5439
|
-
|
|
5439
|
+
F();
|
|
5440
5440
|
});
|
|
5441
5441
|
}, he = () => {
|
|
5442
5442
|
if (_.value === null) {
|
|
@@ -5451,9 +5451,9 @@ function B0(a, e, t) {
|
|
|
5451
5451
|
E < 0 && (E = D.value.length - 1), g(D.value[E] || null);
|
|
5452
5452
|
}
|
|
5453
5453
|
Ee(() => {
|
|
5454
|
-
|
|
5454
|
+
F();
|
|
5455
5455
|
});
|
|
5456
|
-
},
|
|
5456
|
+
}, Z = (E) => X.value.find((U) => U.__VISIBLE__.map((Ce) => Ce[s.value]).indexOf(E[s.value]) !== -1), F = () => {
|
|
5457
5457
|
let E = R.value.querySelector("[data-pointed]");
|
|
5458
5458
|
if (!E)
|
|
5459
5459
|
return;
|
|
@@ -5461,7 +5461,7 @@ function B0(a, e, t) {
|
|
|
5461
5461
|
l.value && (U = I.value ? E.parentElement.parentElement.parentElement : E.parentElement.parentElement.parentElement.parentElement), E.offsetTop + E.offsetHeight > U.clientHeight + U.scrollTop && (U.scrollTop = E.offsetTop + E.offsetHeight - U.clientHeight), E.offsetTop < U.scrollTop && (U.scrollTop = E.offsetTop);
|
|
5462
5462
|
};
|
|
5463
5463
|
return re(S, (E) => {
|
|
5464
|
-
o.value && (E.length && n.value ?
|
|
5464
|
+
o.value && (E.length && n.value ? W() : V());
|
|
5465
5465
|
}), re(K, (E) => {
|
|
5466
5466
|
if (E) {
|
|
5467
5467
|
let U = R.value.querySelectorAll("[data-selected]")[0];
|
|
@@ -5476,7 +5476,7 @@ function B0(a, e, t) {
|
|
|
5476
5476
|
pointer: _,
|
|
5477
5477
|
canPointGroups: ae,
|
|
5478
5478
|
isPointed: L,
|
|
5479
|
-
setPointerFirst:
|
|
5479
|
+
setPointerFirst: W,
|
|
5480
5480
|
selectPointer: $,
|
|
5481
5481
|
forwardPointer: Y,
|
|
5482
5482
|
backwardPointer: he
|
|
@@ -5551,16 +5551,16 @@ function U0(a, e, t) {
|
|
|
5551
5551
|
} = $e(a), w = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, y = t.blur, k = t.fo, P = b(() => d.value || p.value || !1), ue = b(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5552
5552
|
s.value === "tags" && !l.value && P.value && i.value && !c.value && g(k.value[k.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5553
5553
|
}, le = (L) => {
|
|
5554
|
-
let
|
|
5555
|
-
for (;
|
|
5556
|
-
|
|
5557
|
-
return
|
|
5554
|
+
let W = L.length - 1;
|
|
5555
|
+
for (; W >= 0 && (L[W].remove === !1 || L[W].disabled); )
|
|
5556
|
+
W--;
|
|
5557
|
+
return W < 0 || L.splice(W, 1), L;
|
|
5558
5558
|
};
|
|
5559
5559
|
return {
|
|
5560
5560
|
handleKeydown: (L) => {
|
|
5561
5561
|
e.emit("keydown", L, w);
|
|
5562
|
-
let
|
|
5563
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (
|
|
5562
|
+
let W, $;
|
|
5563
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), $ = W.findIndex((Y) => Y === document.activeElement)), L.key) {
|
|
5564
5564
|
case "Backspace":
|
|
5565
5565
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5566
5566
|
return;
|
|
@@ -5570,7 +5570,7 @@ function U0(a, e, t) {
|
|
|
5570
5570
|
if (L.preventDefault(), L.keyCode === 229)
|
|
5571
5571
|
return;
|
|
5572
5572
|
if ($ !== -1 && $ !== void 0) {
|
|
5573
|
-
S([...M.value].filter((Y, he) => he !== $)), $ ===
|
|
5573
|
+
S([...M.value].filter((Y, he) => he !== $)), $ === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
|
|
5574
5574
|
return;
|
|
5575
5575
|
}
|
|
5576
5576
|
if (ue.value.indexOf("enter") === -1 && P.value)
|
|
@@ -5611,12 +5611,12 @@ function U0(a, e, t) {
|
|
|
5611
5611
|
case "ArrowLeft":
|
|
5612
5612
|
if (i.value && ae.value && ae.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5613
5613
|
return;
|
|
5614
|
-
L.preventDefault(), $ === -1 ?
|
|
5614
|
+
L.preventDefault(), $ === -1 ? W[W.length - 1].focus() : $ > 0 && W[$ - 1].focus();
|
|
5615
5615
|
break;
|
|
5616
5616
|
case "ArrowRight":
|
|
5617
5617
|
if ($ === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5618
5618
|
return;
|
|
5619
|
-
L.preventDefault(),
|
|
5619
|
+
L.preventDefault(), W.length > $ + 1 ? W[$ + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
|
|
5620
5620
|
break;
|
|
5621
5621
|
}
|
|
5622
5622
|
},
|
|
@@ -6669,7 +6669,7 @@ const be = /* @__PURE__ */ G({
|
|
|
6669
6669
|
return e.detached && E0({
|
|
6670
6670
|
multiselect: s,
|
|
6671
6671
|
appendTo: t.value
|
|
6672
|
-
}), (n, o) => (v(), N(
|
|
6672
|
+
}), (n, o) => (v(), N(q(ze), {
|
|
6673
6673
|
ref_key: "multiselectRef",
|
|
6674
6674
|
ref: s,
|
|
6675
6675
|
class: "ao-multiselect"
|
|
@@ -7015,11 +7015,11 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7015
7015
|
ref_key: "commentContent",
|
|
7016
7016
|
ref: n,
|
|
7017
7017
|
class: "ao-comment__content",
|
|
7018
|
-
value:
|
|
7019
|
-
rows:
|
|
7018
|
+
value: q(o) ? S.content : null,
|
|
7019
|
+
rows: q(o) ? M.value : null,
|
|
7020
7020
|
onKeyup: [
|
|
7021
|
-
Ye(
|
|
7022
|
-
Ye(_e(
|
|
7021
|
+
Ye(q(p), ["esc"]),
|
|
7022
|
+
Ye(_e(q(C), ["ctrl"]), ["enter"])
|
|
7023
7023
|
]
|
|
7024
7024
|
}, {
|
|
7025
7025
|
default: j(() => [
|
|
@@ -7031,20 +7031,20 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7031
7031
|
f("span", O5, z(u.value || c.value), 1)
|
|
7032
7032
|
]),
|
|
7033
7033
|
S.isEditable ? (v(), h("div", L5, [
|
|
7034
|
-
|
|
7034
|
+
q(o) ? (v(), h(fe, { key: 0 }, [
|
|
7035
7035
|
A(ce, {
|
|
7036
7036
|
"icon-name": "CloseRounded",
|
|
7037
7037
|
size: "sm",
|
|
7038
7038
|
variant: "ghost",
|
|
7039
7039
|
color: "neutral",
|
|
7040
|
-
onClick:
|
|
7040
|
+
onClick: q(p)
|
|
7041
7041
|
}, null, 8, ["onClick"]),
|
|
7042
7042
|
A(ce, {
|
|
7043
7043
|
"icon-name": "CheckSmallRounded",
|
|
7044
7044
|
size: "sm",
|
|
7045
7045
|
variant: "solid",
|
|
7046
7046
|
color: "neutral",
|
|
7047
|
-
onClick:
|
|
7047
|
+
onClick: q(C)
|
|
7048
7048
|
}, null, 8, ["onClick"])
|
|
7049
7049
|
], 64)) : (v(), h(fe, { key: 1 }, [
|
|
7050
7050
|
A(ce, {
|
|
@@ -7059,7 +7059,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7059
7059
|
size: "sm",
|
|
7060
7060
|
variant: "ghost",
|
|
7061
7061
|
color: "neutral",
|
|
7062
|
-
onClick:
|
|
7062
|
+
onClick: q(i)
|
|
7063
7063
|
}, null, 8, ["label", "onClick"])
|
|
7064
7064
|
], 64))
|
|
7065
7065
|
])) : T("", !0)
|
|
@@ -7664,22 +7664,22 @@ const I7 = /* @__PURE__ */ G({
|
|
|
7664
7664
|
}), S = b(() => Object.values(mc));
|
|
7665
7665
|
return (_, g) => (v(), N(tt(_.tagName), { class: "ao-rule-line" }, {
|
|
7666
7666
|
default: j(() => [
|
|
7667
|
-
A(
|
|
7667
|
+
A(q(ze), {
|
|
7668
7668
|
modelValue: n.value,
|
|
7669
7669
|
"onUpdate:modelValue": g[0] || (g[0] = (V) => n.value = V),
|
|
7670
7670
|
options: o.value
|
|
7671
7671
|
}, null, 8, ["modelValue", "options"]),
|
|
7672
|
-
A(
|
|
7672
|
+
A(q(ze), {
|
|
7673
7673
|
modelValue: i.value,
|
|
7674
7674
|
"onUpdate:modelValue": g[1] || (g[1] = (V) => i.value = V),
|
|
7675
7675
|
options: l.value
|
|
7676
7676
|
}, null, 8, ["modelValue", "options"]),
|
|
7677
|
-
A(
|
|
7677
|
+
A(q(ze), {
|
|
7678
7678
|
modelValue: p.value,
|
|
7679
7679
|
"onUpdate:modelValue": g[2] || (g[2] = (V) => p.value = V),
|
|
7680
7680
|
options: C.value
|
|
7681
7681
|
}, null, 8, ["modelValue", "options"]),
|
|
7682
|
-
A(
|
|
7682
|
+
A(q(ze), {
|
|
7683
7683
|
modelValue: c.value,
|
|
7684
7684
|
"onUpdate:modelValue": g[3] || (g[3] = (V) => c.value = V),
|
|
7685
7685
|
options: u.value
|
|
@@ -7696,7 +7696,7 @@ const I7 = /* @__PURE__ */ G({
|
|
|
7696
7696
|
{ number: !0 }
|
|
7697
7697
|
]
|
|
7698
7698
|
]),
|
|
7699
|
-
A(
|
|
7699
|
+
A(q(ze), {
|
|
7700
7700
|
modelValue: M.value,
|
|
7701
7701
|
"onUpdate:modelValue": g[5] || (g[5] = (V) => M.value = V),
|
|
7702
7702
|
options: S.value
|
|
@@ -7796,7 +7796,7 @@ const D7 = {
|
|
|
7796
7796
|
});
|
|
7797
7797
|
const i = b(() => {
|
|
7798
7798
|
var O, L;
|
|
7799
|
-
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((
|
|
7799
|
+
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((W) => W.id === t.phaseId);
|
|
7800
7800
|
});
|
|
7801
7801
|
re(() => {
|
|
7802
7802
|
var O;
|
|
@@ -7807,7 +7807,7 @@ const D7 = {
|
|
|
7807
7807
|
const l = b(() => {
|
|
7808
7808
|
var O, L;
|
|
7809
7809
|
return (L = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : L.find(
|
|
7810
|
-
(
|
|
7810
|
+
(W) => W.id === t.milestoneId
|
|
7811
7811
|
);
|
|
7812
7812
|
});
|
|
7813
7813
|
re(() => {
|
|
@@ -7818,23 +7818,23 @@ const D7 = {
|
|
|
7818
7818
|
});
|
|
7819
7819
|
const r = b(() => {
|
|
7820
7820
|
var O, L;
|
|
7821
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((
|
|
7821
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, $) => {
|
|
7822
7822
|
const Y = $.milestones || [];
|
|
7823
|
-
return [...
|
|
7823
|
+
return [...W, ...Y];
|
|
7824
7824
|
}, [])) || [];
|
|
7825
7825
|
}), c = b(() => {
|
|
7826
7826
|
var O, L;
|
|
7827
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((
|
|
7827
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, $) => {
|
|
7828
7828
|
const he = ($.milestones || []).reduce(
|
|
7829
|
-
(
|
|
7829
|
+
(Z, F) => F.activities ? [...Z, ...F.activities] : Z,
|
|
7830
7830
|
[]
|
|
7831
7831
|
);
|
|
7832
|
-
return [...
|
|
7832
|
+
return [...W, ...he];
|
|
7833
7833
|
}, [])) || [];
|
|
7834
7834
|
}), u = b(() => {
|
|
7835
7835
|
var O, L;
|
|
7836
7836
|
return (L = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : L.find(
|
|
7837
|
-
(
|
|
7837
|
+
(W) => W.id === t.activityId
|
|
7838
7838
|
);
|
|
7839
7839
|
}), d = b(() => {
|
|
7840
7840
|
var O;
|
|
@@ -7888,7 +7888,7 @@ const D7 = {
|
|
|
7888
7888
|
}, g = (O) => {
|
|
7889
7889
|
if (!i.value)
|
|
7890
7890
|
return;
|
|
7891
|
-
const { name: L, rank:
|
|
7891
|
+
const { name: L, rank: W } = pt(
|
|
7892
7892
|
i.value.milestones,
|
|
7893
7893
|
"milestone",
|
|
7894
7894
|
s
|
|
@@ -7899,7 +7899,7 @@ const D7 = {
|
|
|
7899
7899
|
phaseId: O.phaseId,
|
|
7900
7900
|
item: {
|
|
7901
7901
|
name: L,
|
|
7902
|
-
rank:
|
|
7902
|
+
rank: W,
|
|
7903
7903
|
phaseId: O.phaseId
|
|
7904
7904
|
}
|
|
7905
7905
|
});
|
|
@@ -7913,18 +7913,18 @@ const D7 = {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
}, R = (O) => {
|
|
7916
|
-
const { id: L, ...
|
|
7916
|
+
const { id: L, ...W } = O;
|
|
7917
7917
|
e("updateItem", {
|
|
7918
7918
|
itemType: pe.MILESTONES,
|
|
7919
7919
|
id: L,
|
|
7920
7920
|
templateId: t.templateId,
|
|
7921
|
-
data:
|
|
7921
|
+
data: W
|
|
7922
7922
|
});
|
|
7923
7923
|
}, K = (O) => {
|
|
7924
7924
|
const { milestoneId: L } = O;
|
|
7925
7925
|
if (!l.value)
|
|
7926
7926
|
return;
|
|
7927
|
-
const { name:
|
|
7927
|
+
const { name: W, rank: $ } = pt(
|
|
7928
7928
|
l.value.activities,
|
|
7929
7929
|
"activity",
|
|
7930
7930
|
s
|
|
@@ -7933,26 +7933,26 @@ const D7 = {
|
|
|
7933
7933
|
type: pe.ACTIVITIES,
|
|
7934
7934
|
milestoneId: L,
|
|
7935
7935
|
templateId: t.templateId,
|
|
7936
|
-
item: { name:
|
|
7936
|
+
item: { name: W, rank: $, milestoneId: L }
|
|
7937
7937
|
});
|
|
7938
7938
|
}, D = (O) => {
|
|
7939
|
-
var L,
|
|
7939
|
+
var L, W;
|
|
7940
7940
|
e("removeItem", {
|
|
7941
7941
|
type: pe.ACTIVITIES,
|
|
7942
7942
|
templateId: t.templateId,
|
|
7943
7943
|
phaseId: (L = i.value) == null ? void 0 : L.id,
|
|
7944
|
-
milestoneId: (
|
|
7944
|
+
milestoneId: (W = l.value) == null ? void 0 : W.id,
|
|
7945
7945
|
data: {
|
|
7946
7946
|
id: O.id
|
|
7947
7947
|
}
|
|
7948
7948
|
});
|
|
7949
7949
|
}, X = (O) => {
|
|
7950
|
-
const { id: L, ...
|
|
7950
|
+
const { id: L, ...W } = O;
|
|
7951
7951
|
e("updateItem", {
|
|
7952
7952
|
itemType: pe.ACTIVITIES,
|
|
7953
7953
|
id: L,
|
|
7954
7954
|
templateId: t.templateId,
|
|
7955
|
-
data:
|
|
7955
|
+
data: W
|
|
7956
7956
|
});
|
|
7957
7957
|
}, ae = J(!1), I = () => {
|
|
7958
7958
|
ae.value = !ae.value;
|
|
@@ -7963,13 +7963,13 @@ const D7 = {
|
|
|
7963
7963
|
}, k = (O) => {
|
|
7964
7964
|
var L;
|
|
7965
7965
|
if (O.moved) {
|
|
7966
|
-
const
|
|
7966
|
+
const W = Bt(O, ((L = n.value) == null ? void 0 : L.phases) ?? []);
|
|
7967
7967
|
e("updateItem", {
|
|
7968
7968
|
itemType: pe.PHASES,
|
|
7969
7969
|
id: O.moved.element.id,
|
|
7970
7970
|
templateId: t.templateId,
|
|
7971
7971
|
data: {
|
|
7972
|
-
rank:
|
|
7972
|
+
rank: W
|
|
7973
7973
|
}
|
|
7974
7974
|
});
|
|
7975
7975
|
}
|
|
@@ -8004,11 +8004,11 @@ const D7 = {
|
|
|
8004
8004
|
e("removeFile", O);
|
|
8005
8005
|
};
|
|
8006
8006
|
return (O, L) => {
|
|
8007
|
-
var
|
|
8007
|
+
var W, $, Y, he, Z, F;
|
|
8008
8008
|
return n.value ? (v(), h("div", D7, [
|
|
8009
8009
|
A(r1, {
|
|
8010
8010
|
"can-go-back": !0,
|
|
8011
|
-
onGoBack: L[1] || (L[1] = (E) => O.$router.push({ name:
|
|
8011
|
+
onGoBack: L[1] || (L[1] = (E) => O.$router.push({ name: q(Tt).TEMPLATES_LIST }))
|
|
8012
8012
|
}, {
|
|
8013
8013
|
primary: j(() => [
|
|
8014
8014
|
A(me, {
|
|
@@ -8034,7 +8034,7 @@ const D7 = {
|
|
|
8034
8034
|
f("div", H7, [
|
|
8035
8035
|
f("ol", P7, [
|
|
8036
8036
|
f("li", B7, [
|
|
8037
|
-
A(
|
|
8037
|
+
A(q(Xe), {
|
|
8038
8038
|
"model-value": n.value.phases,
|
|
8039
8039
|
class: "ao-templates__list",
|
|
8040
8040
|
"item-key": "id",
|
|
@@ -8084,7 +8084,7 @@ const D7 = {
|
|
|
8084
8084
|
key: 0,
|
|
8085
8085
|
"template-id": O.templateId,
|
|
8086
8086
|
phase: i.value,
|
|
8087
|
-
"milestone-id": (
|
|
8087
|
+
"milestone-id": (W = l.value) == null ? void 0 : W.id,
|
|
8088
8088
|
onAddMilestone: g,
|
|
8089
8089
|
onUpdateMilestone: R,
|
|
8090
8090
|
onUpdatePhase: _,
|
|
@@ -8110,8 +8110,8 @@ const D7 = {
|
|
|
8110
8110
|
key: 0,
|
|
8111
8111
|
activity: u.value,
|
|
8112
8112
|
"activity-types": d.value,
|
|
8113
|
-
breadcrumbs: `${n.value.name} / ${(he = i.value) == null ? void 0 : he.name} / ${(
|
|
8114
|
-
"milestone-id": (
|
|
8113
|
+
breadcrumbs: `${n.value.name} / ${(he = i.value) == null ? void 0 : he.name} / ${(Z = l.value) == null ? void 0 : Z.name}`,
|
|
8114
|
+
"milestone-id": (F = l.value) == null ? void 0 : F.id,
|
|
8115
8115
|
"template-activities": c.value,
|
|
8116
8116
|
"template-milestones": r.value,
|
|
8117
8117
|
"is-template": !0,
|
|
@@ -8412,7 +8412,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8412
8412
|
]),
|
|
8413
8413
|
f("div", u9, [
|
|
8414
8414
|
f("div", c9, [
|
|
8415
|
-
A(
|
|
8415
|
+
A(q(Xe), Ve({
|
|
8416
8416
|
class: "ao-project-phase__milestones-list",
|
|
8417
8417
|
list: o.value,
|
|
8418
8418
|
disabled: !d.isEditable,
|
|
@@ -8429,7 +8429,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8429
8429
|
"closed-status": d.closedStatus,
|
|
8430
8430
|
class: "ao-project-phase__milestone",
|
|
8431
8431
|
onClick: (w) => d.$router.push({
|
|
8432
|
-
name:
|
|
8432
|
+
name: q(Re).milestone,
|
|
8433
8433
|
params: { phaseId: d.phase.id, milestoneId: C.id }
|
|
8434
8434
|
}),
|
|
8435
8435
|
onUpdateMilestone: l,
|
|
@@ -8490,7 +8490,7 @@ const v9 = { class: "ao-project__phases" }, p9 = {
|
|
|
8490
8490
|
e("addPhase", u);
|
|
8491
8491
|
};
|
|
8492
8492
|
return (u, d) => (v(), h("div", v9, [
|
|
8493
|
-
A(
|
|
8493
|
+
A(q(Xe), {
|
|
8494
8494
|
class: "ao-project-phase__phases-list",
|
|
8495
8495
|
"model-value": u.phases,
|
|
8496
8496
|
"item-key": "id",
|
|
@@ -8700,7 +8700,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8700
8700
|
"right-label": I.$t("project.switch.feed"),
|
|
8701
8701
|
"left-label": I.$t("project.switch.overview"),
|
|
8702
8702
|
"onUpdate:isLeft": ee[0] || (ee[0] = (k) => {
|
|
8703
|
-
k || I.$router.push({ name:
|
|
8703
|
+
k || I.$router.push({ name: q(Re).feed });
|
|
8704
8704
|
})
|
|
8705
8705
|
}, null, 8, ["right-label", "left-label"]),
|
|
8706
8706
|
I.isEditable ? (v(), N(ce, {
|
|
@@ -8734,7 +8734,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8734
8734
|
"project-name": I.project.name,
|
|
8735
8735
|
users: I.users,
|
|
8736
8736
|
"is-editable": I.isEditable,
|
|
8737
|
-
onClose: ee[2] || (ee[2] = (k) => I.$router.push({ name:
|
|
8737
|
+
onClose: ee[2] || (ee[2] = (k) => I.$router.push({ name: q(Re).project })),
|
|
8738
8738
|
onAddActivity: d,
|
|
8739
8739
|
onUpdateActivity: p,
|
|
8740
8740
|
onArchiveActivity: C
|
|
@@ -8998,7 +8998,7 @@ const x9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
|
|
|
8998
8998
|
})
|
|
8999
8999
|
]),
|
|
9000
9000
|
f("div", Q9, [
|
|
9001
|
-
A(
|
|
9001
|
+
A(q(Xe), Ve({
|
|
9002
9002
|
class: "ao-project-milestone__activities",
|
|
9003
9003
|
list: l.value,
|
|
9004
9004
|
disabled: !p.isEditable,
|
|
@@ -9022,7 +9022,7 @@ const x9 = { class: "ao-project-milestone" }, G9 = { class: "ao-project-mileston
|
|
|
9022
9022
|
tasks: M.tasks,
|
|
9023
9023
|
"is-editable": p.isEditable,
|
|
9024
9024
|
onClick: (R) => p.$router.push({
|
|
9025
|
-
name:
|
|
9025
|
+
name: q(Re).activity,
|
|
9026
9026
|
params: { milestoneId: p.milestoneId, activityId: M.id }
|
|
9027
9027
|
}),
|
|
9028
9028
|
onUpdateActivity: u,
|
|
@@ -9171,7 +9171,7 @@ function n4(a) {
|
|
|
9171
9171
|
return Cn() ? (_n(a), !0) : !1;
|
|
9172
9172
|
}
|
|
9173
9173
|
function Jt(a) {
|
|
9174
|
-
return typeof a == "function" ? a() :
|
|
9174
|
+
return typeof a == "function" ? a() : q(a);
|
|
9175
9175
|
}
|
|
9176
9176
|
const s4 = typeof window < "u", i4 = (a) => a != null, St = () => {
|
|
9177
9177
|
};
|
|
@@ -9335,7 +9335,7 @@ const v4 = {
|
|
|
9335
9335
|
])
|
|
9336
9336
|
];
|
|
9337
9337
|
}) : T("", !0),
|
|
9338
|
-
A(
|
|
9338
|
+
A(q(Xe), Ve({
|
|
9339
9339
|
class: "ao-list-kanban__list",
|
|
9340
9340
|
list: r.list,
|
|
9341
9341
|
"item-key": "id",
|
|
@@ -9429,7 +9429,7 @@ const b4 = { class: "ao-field ao-search-field" }, w4 = ["value", "placeholder",
|
|
|
9429
9429
|
class: "ao-field__input ao-search-field__input",
|
|
9430
9430
|
placeholder: i.placeholder,
|
|
9431
9431
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
9432
|
-
(...r) =>
|
|
9432
|
+
(...r) => q(n) && q(n)(...r)),
|
|
9433
9433
|
onKeypress: Ye(s, ["enter"])
|
|
9434
9434
|
}, null, 40, w4),
|
|
9435
9435
|
A(de, {
|
|
@@ -9498,16 +9498,16 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9498
9498
|
re(
|
|
9499
9499
|
[() => t.statuses, () => t.activities],
|
|
9500
9500
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9501
|
-
async ([$, Y], [he,
|
|
9501
|
+
async ([$, Y], [he, Z]) => {
|
|
9502
9502
|
r.value = Object.fromEntries(
|
|
9503
|
-
$.map((
|
|
9504
|
-
|
|
9503
|
+
$.map((F) => [
|
|
9504
|
+
F.id,
|
|
9505
9505
|
Y.filter((E) => {
|
|
9506
9506
|
var U;
|
|
9507
|
-
return ((U = E.status) == null ? void 0 : U.id) ===
|
|
9507
|
+
return ((U = E.status) == null ? void 0 : U.id) === F.id;
|
|
9508
9508
|
})
|
|
9509
9509
|
])
|
|
9510
|
-
), c.value && Ue(Y,
|
|
9510
|
+
), c.value && Ue(Y, Z);
|
|
9511
9511
|
},
|
|
9512
9512
|
{ immediate: !0 }
|
|
9513
9513
|
);
|
|
@@ -9516,12 +9516,12 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9516
9516
|
return !i.value || !i.value.milestone ? "" : `${(($ = i.value.milestone.phase) == null ? void 0 : $.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9517
9517
|
}), d = ($) => {
|
|
9518
9518
|
var E, U;
|
|
9519
|
-
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(),
|
|
9520
|
-
name: s("activity.defaultName", { idx:
|
|
9519
|
+
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), Z = ((U = t.activities) == null ? void 0 : U.length) ?? 0, F = {
|
|
9520
|
+
name: s("activity.defaultName", { idx: Z + 1 }),
|
|
9521
9521
|
rank: he.format(),
|
|
9522
9522
|
statusId: $.id
|
|
9523
9523
|
};
|
|
9524
|
-
t.filters.assigneeId.length > 0 && (
|
|
9524
|
+
t.filters.assigneeId.length > 0 && (F.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (F.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (F.typeId = t.filters.typeId[0]), c.value = !0, e("addActivity", F);
|
|
9525
9525
|
}, p = ($, Y) => {
|
|
9526
9526
|
c.value = !1, e("update:filters", { ...t.filters, [$]: Y });
|
|
9527
9527
|
}, C = t.project ? [t.project] : t.projects ?? [], w = b(() => C.map(($) => ({
|
|
@@ -9535,7 +9535,8 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9535
9535
|
}));
|
|
9536
9536
|
}), S = b(() => t.users.map(($) => ({
|
|
9537
9537
|
value: $.id,
|
|
9538
|
-
label: `${$.firstName} ${$.lastName}
|
|
9538
|
+
label: `${$.firstName} ${$.lastName}`,
|
|
9539
|
+
avatar: $.avatarUrl
|
|
9539
9540
|
}))), _ = ($) => {
|
|
9540
9541
|
i.value && e("update:activity", $);
|
|
9541
9542
|
}, g = ($) => {
|
|
@@ -9582,11 +9583,11 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9582
9583
|
value: $.id,
|
|
9583
9584
|
label: $.name
|
|
9584
9585
|
}))), le = b(() => {
|
|
9585
|
-
var Y, he,
|
|
9586
|
-
const $ = (
|
|
9587
|
-
return $ == null ? void 0 : $.map((
|
|
9588
|
-
value:
|
|
9589
|
-
label:
|
|
9586
|
+
var Y, he, Z;
|
|
9587
|
+
const $ = (Z = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : Z.reduce((F, E) => [...F, ...E.milestones], []);
|
|
9588
|
+
return $ == null ? void 0 : $.map((F) => ({
|
|
9589
|
+
value: F.id,
|
|
9590
|
+
label: F.name
|
|
9590
9591
|
}));
|
|
9591
9592
|
}), ie = ($) => {
|
|
9592
9593
|
i.value && e("update:activity", {
|
|
@@ -9604,7 +9605,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9604
9605
|
value: Y.id,
|
|
9605
9606
|
label: Y.name
|
|
9606
9607
|
}));
|
|
9607
|
-
}),
|
|
9608
|
+
}), W = ($) => {
|
|
9608
9609
|
i.value && e("update:activity", {
|
|
9609
9610
|
id: i.value.id,
|
|
9610
9611
|
statusId: $
|
|
@@ -9621,8 +9622,8 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9621
9622
|
"is-left": !1,
|
|
9622
9623
|
"right-label": $.$t("project.switch.feed"),
|
|
9623
9624
|
"left-label": $.$t("project.switch.overview"),
|
|
9624
|
-
"onUpdate:isLeft": Y[0] || (Y[0] = (
|
|
9625
|
-
|
|
9625
|
+
"onUpdate:isLeft": Y[0] || (Y[0] = (Z) => {
|
|
9626
|
+
Z && $.$router.push({ name: q(Re).project });
|
|
9626
9627
|
})
|
|
9627
9628
|
}, null, 8, ["right-label", "left-label"])) : T("", !0),
|
|
9628
9629
|
A($4, {
|
|
@@ -9634,42 +9635,43 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9634
9635
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9635
9636
|
t.project ? T("", !0) : (v(), N(be, {
|
|
9636
9637
|
key: 1,
|
|
9637
|
-
"model-value": $.filters[
|
|
9638
|
+
"model-value": $.filters[q(ut).project],
|
|
9638
9639
|
mode: "tags",
|
|
9639
9640
|
options: w.value,
|
|
9640
9641
|
"close-on-select": !1,
|
|
9641
9642
|
searchable: !0,
|
|
9642
9643
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9643
9644
|
placeholder: $.$t("feed.filters.project.placeholder"),
|
|
9644
|
-
"onUpdate:modelValue": Y[1] || (Y[1] = (
|
|
9645
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (Z) => p(q(ut).project, Z))
|
|
9645
9646
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9646
9647
|
M.value ? (v(), N(be, {
|
|
9647
9648
|
key: 2,
|
|
9648
|
-
"model-value": $.filters[
|
|
9649
|
+
"model-value": $.filters[q(ut).type],
|
|
9649
9650
|
mode: "tags",
|
|
9650
9651
|
options: M.value,
|
|
9651
9652
|
"close-on-select": !1,
|
|
9652
9653
|
searchable: !0,
|
|
9653
9654
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9654
9655
|
placeholder: $.$t("feed.filters.activityType.placeholder"),
|
|
9655
|
-
"onUpdate:modelValue": Y[2] || (Y[2] = (
|
|
9656
|
+
"onUpdate:modelValue": Y[2] || (Y[2] = (Z) => p(q(ut).type, Z))
|
|
9656
9657
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
9657
9658
|
A(be, {
|
|
9658
|
-
"model-value": $.filters[
|
|
9659
|
+
"model-value": $.filters[q(ut).assignee],
|
|
9659
9660
|
mode: "tags",
|
|
9660
9661
|
options: S.value,
|
|
9661
9662
|
"close-on-select": !1,
|
|
9662
9663
|
searchable: !0,
|
|
9663
9664
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9664
9665
|
placeholder: $.$t("feed.filters.assignee.placeholder"),
|
|
9665
|
-
"onUpdate:modelValue": Y[3] || (Y[3] = (
|
|
9666
|
+
"onUpdate:modelValue": Y[3] || (Y[3] = (Z) => p(q(ut).assignee, Z))
|
|
9666
9667
|
}, {
|
|
9667
|
-
tag: j(({ option:
|
|
9668
|
+
tag: j(({ option: Z, handleTagRemove: F }) => [
|
|
9668
9669
|
A(_t, {
|
|
9669
|
-
"user-name":
|
|
9670
|
+
"user-name": Z.label,
|
|
9671
|
+
"avatar-url": Z.avatar,
|
|
9670
9672
|
"is-closable": !0,
|
|
9671
|
-
onClose: (E) => Z
|
|
9672
|
-
}, null, 8, ["user-name", "onClose"])
|
|
9673
|
+
onClose: (E) => F(Z, E)
|
|
9674
|
+
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
9673
9675
|
]),
|
|
9674
9676
|
_: 1
|
|
9675
9677
|
}, 8, ["model-value", "options", "placeholder"])
|
|
@@ -9684,31 +9686,31 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9684
9686
|
label: $.$t("feed.filters.showsArchivedActivities.label"),
|
|
9685
9687
|
role: "checkbox",
|
|
9686
9688
|
"aria-checked": $.showsArchivedActivities,
|
|
9687
|
-
onClick: Y[4] || (Y[4] = (
|
|
9689
|
+
onClick: Y[4] || (Y[4] = (Z) => $.$emit("update:showsArchivedActivities", !$.showsArchivedActivities))
|
|
9688
9690
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9689
9691
|
]),
|
|
9690
9692
|
_: 1
|
|
9691
9693
|
}),
|
|
9692
9694
|
f("div", E4, [
|
|
9693
|
-
(v(!0), h(fe, null, ye($.statuses, (
|
|
9694
|
-
key:
|
|
9695
|
-
status:
|
|
9696
|
-
list: r.value[
|
|
9697
|
-
title:
|
|
9695
|
+
(v(!0), h(fe, null, ye($.statuses, (Z) => (v(), N(y4, {
|
|
9696
|
+
key: Z.id,
|
|
9697
|
+
status: Z,
|
|
9698
|
+
list: r.value[Z.id],
|
|
9699
|
+
title: Z.name,
|
|
9698
9700
|
"footer-label": $.$t("feed.activity.add"),
|
|
9699
9701
|
users: $.users,
|
|
9700
|
-
onAdd: () => d(
|
|
9702
|
+
onAdd: () => d(Z),
|
|
9701
9703
|
onSelectActivity: l,
|
|
9702
9704
|
onArchiveActivity: V,
|
|
9703
9705
|
onUpdateActivity: g
|
|
9704
9706
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "onAdd"]))), 128))
|
|
9705
9707
|
]),
|
|
9706
9708
|
(v(), N(It, { to: "body" }, [
|
|
9707
|
-
|
|
9709
|
+
q(i) ? (v(), N(N1, {
|
|
9708
9710
|
key: 0,
|
|
9709
|
-
activity:
|
|
9711
|
+
activity: q(i),
|
|
9710
9712
|
"activity-types": M.value,
|
|
9711
|
-
"milestone-id": (he =
|
|
9713
|
+
"milestone-id": (he = q(i).milestone) == null ? void 0 : he.id,
|
|
9712
9714
|
"template-activities": n.value,
|
|
9713
9715
|
users: $.users,
|
|
9714
9716
|
"user-id": $.userId,
|
|
@@ -9728,14 +9730,14 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9728
9730
|
onRemoveComment: ue
|
|
9729
9731
|
}, {
|
|
9730
9732
|
header: j(() => {
|
|
9731
|
-
var
|
|
9733
|
+
var Z, F, E;
|
|
9732
9734
|
return [
|
|
9733
9735
|
f("div", I4, [
|
|
9734
9736
|
ne.value && !t.project ? (v(), h("label", O4, [
|
|
9735
9737
|
f("span", L4, z($.$t("activity.project.label")), 1),
|
|
9736
9738
|
A(be, {
|
|
9737
9739
|
options: ne.value,
|
|
9738
|
-
value: (
|
|
9740
|
+
value: (Z = q(i).project) == null ? void 0 : Z.id,
|
|
9739
9741
|
searchable: !0,
|
|
9740
9742
|
onChange: ie
|
|
9741
9743
|
}, null, 8, ["options", "value"])
|
|
@@ -9744,7 +9746,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9744
9746
|
f("span", D4, z($.$t("activity.milestone.label")), 1),
|
|
9745
9747
|
A(be, {
|
|
9746
9748
|
options: le.value,
|
|
9747
|
-
value: (
|
|
9749
|
+
value: (F = q(i).milestone) == null ? void 0 : F.id,
|
|
9748
9750
|
searchable: !0,
|
|
9749
9751
|
onChange: O
|
|
9750
9752
|
}, null, 8, ["options", "value"])
|
|
@@ -9753,10 +9755,10 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9753
9755
|
f("span", P4, z($.$t("activity.status.label")), 1),
|
|
9754
9756
|
A(be, {
|
|
9755
9757
|
options: L.value,
|
|
9756
|
-
value: (E =
|
|
9758
|
+
value: (E = q(i).status) == null ? void 0 : E.id,
|
|
9757
9759
|
"can-clear": !1,
|
|
9758
9760
|
"can-deselect": !1,
|
|
9759
|
-
onChange:
|
|
9761
|
+
onChange: W
|
|
9760
9762
|
}, null, 8, ["options", "value"])
|
|
9761
9763
|
])) : T("", !0)
|
|
9762
9764
|
])
|
|
@@ -9767,7 +9769,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9767
9769
|
f("label", N4, [
|
|
9768
9770
|
f("span", R4, z($.$t("activity.deadline.label")), 1),
|
|
9769
9771
|
ft(f("input", {
|
|
9770
|
-
"onUpdate:modelValue": Y[5] || (Y[5] = (
|
|
9772
|
+
"onUpdate:modelValue": Y[5] || (Y[5] = (Z) => R.value = Z),
|
|
9771
9773
|
class: "ao-field__input",
|
|
9772
9774
|
type: "date"
|
|
9773
9775
|
}, null, 512), [
|
|
@@ -9905,7 +9907,7 @@ const Tt = {
|
|
|
9905
9907
|
]),
|
|
9906
9908
|
_: 1
|
|
9907
9909
|
}),
|
|
9908
|
-
A(
|
|
9910
|
+
A(q(Xe), {
|
|
9909
9911
|
"model-value": l.templates,
|
|
9910
9912
|
class: "ao-templates__list",
|
|
9911
9913
|
"item-key": "id",
|
|
@@ -9919,13 +9921,13 @@ const Tt = {
|
|
|
9919
9921
|
id: c.id,
|
|
9920
9922
|
title: c.name,
|
|
9921
9923
|
phases: c.phases,
|
|
9922
|
-
milestones: (u = c.phases) != null && u.length ?
|
|
9923
|
-
activities: c.phases ?
|
|
9924
|
+
milestones: (u = c.phases) != null && u.length ? q(a3)(c.phases) : 0,
|
|
9925
|
+
activities: c.phases ? q(n3)(c.phases) : 0,
|
|
9924
9926
|
"updated-at": c.updatedAt,
|
|
9925
9927
|
"updated-by": c.updatedBy,
|
|
9926
9928
|
onUpdateTitle: (d) => o(c.id, d),
|
|
9927
9929
|
onClick: (d) => l.$router.push({
|
|
9928
|
-
name:
|
|
9930
|
+
name: q(Tt).TEMPLATE_DETAILS,
|
|
9929
9931
|
params: { templateId: c.id }
|
|
9930
9932
|
})
|
|
9931
9933
|
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|