@26lights/orcha 0.12.1 → 0.12.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.css +1 -1
- package/dist/orcha.es.js +314 -307
- package/dist/orcha.umd.js +2 -2
- package/dist/src/router/routes.d.ts +1 -0
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as v, createBlock as R, unref as Z, mergeProps as Ve, createElementBlock as h, createElementVNode as f, pushScopeId as on, popScopeId as ln, createStaticVNode as rn, computed as w, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as x, openBlock as v, createBlock as R, unref as Z, mergeProps as Ve, createElementBlock as h, createElementVNode as f, pushScopeId as on, popScopeId as ln, createStaticVNode as rn, computed as w, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as J, toDisplayString as F, createCommentVNode as T, ref as X, watch as re, nextTick as Ee, withKeys as ze, toHandlers as un, withCtx as U, createTextVNode as t1, createVNode as k, normalizeStyle as ra, withModifiers as _e, createSlots as Dt, Fragment as ve, renderList as ye, onMounted as Ht, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as dt, normalizeProps as dn, guardReactiveProps as fn, onUpdated as vn, withDirectives as ft, vModelText as Et, vModelCheckbox as pn, Teleport as It, resolveComponent as hn, getCurrentScope as mn, onScopeDispose as Cn, provide as _n } from "vue";
|
|
2
2
|
import { RouterView as gn } from "vue-router";
|
|
3
3
|
import Ge from "vuedraggable";
|
|
4
|
-
const
|
|
4
|
+
const Z4 = /* @__PURE__ */ x({
|
|
5
5
|
__name: "AoTemplates",
|
|
6
6
|
props: {
|
|
7
7
|
templates: {}
|
|
@@ -1142,7 +1142,7 @@ const Qu = /* @__PURE__ */ N(Yu, [["render", Xu]]), Ju = /* @__PURE__ */ Object.
|
|
|
1142
1142
|
},
|
|
1143
1143
|
setup(a) {
|
|
1144
1144
|
const e = a, t = w(() => Ju[e.name]);
|
|
1145
|
-
return (s, n) => (v(), R(
|
|
1145
|
+
return (s, n) => (v(), R(tt(t.value), {
|
|
1146
1146
|
class: G(["ao-icon", `ao-icon--${s.size}`])
|
|
1147
1147
|
}, null, 8, ["class"]));
|
|
1148
1148
|
}
|
|
@@ -1254,7 +1254,7 @@ const me = /* @__PURE__ */ x({
|
|
|
1254
1254
|
(M) => {
|
|
1255
1255
|
M || d();
|
|
1256
1256
|
}
|
|
1257
|
-
), (M, A) => (v(), R(
|
|
1257
|
+
), (M, A) => (v(), R(tt(r.value), Ve({
|
|
1258
1258
|
id: M.id,
|
|
1259
1259
|
ref_key: "target",
|
|
1260
1260
|
ref: s,
|
|
@@ -1320,7 +1320,7 @@ const sc = {
|
|
|
1320
1320
|
const t = (s) => {
|
|
1321
1321
|
e("update:title", s);
|
|
1322
1322
|
};
|
|
1323
|
-
return (s, n) => (v(), R(
|
|
1323
|
+
return (s, n) => (v(), R(tt(s.tagName), {
|
|
1324
1324
|
class: G(["ao-card-horiz", { "ao-card-horiz--active": s.isActive }])
|
|
1325
1325
|
}, {
|
|
1326
1326
|
default: U(() => [
|
|
@@ -1394,7 +1394,7 @@ const E1 = /* @__PURE__ */ x({
|
|
|
1394
1394
|
]),
|
|
1395
1395
|
style: ra(n.rawColor ? { "--ao-tag-bg": n.rawColor } : {})
|
|
1396
1396
|
}, [
|
|
1397
|
-
(v(), R(
|
|
1397
|
+
(v(), R(tt(t.value), Ve({ class: "ao-tag__label" }, s.value, {
|
|
1398
1398
|
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
1399
1399
|
}), {
|
|
1400
1400
|
default: U(() => [
|
|
@@ -1420,11 +1420,11 @@ const k1 = {
|
|
|
1420
1420
|
todo: "todo",
|
|
1421
1421
|
done: "done",
|
|
1422
1422
|
archived: "archived"
|
|
1423
|
-
},
|
|
1423
|
+
}, F4 = {
|
|
1424
1424
|
months: "months",
|
|
1425
1425
|
weeks: "weeks",
|
|
1426
1426
|
days: "days"
|
|
1427
|
-
},
|
|
1427
|
+
}, q4 = {
|
|
1428
1428
|
future: "future",
|
|
1429
1429
|
this_month: "this_month",
|
|
1430
1430
|
this_week: "this_week",
|
|
@@ -1448,11 +1448,11 @@ const k1 = {
|
|
|
1448
1448
|
TASKS: "tasks"
|
|
1449
1449
|
};
|
|
1450
1450
|
var mc = /* @__PURE__ */ ((a) => (a.PHASES = "phases", a.MILESTONES = "milestones", a.ACTIVITIES = "activities", a))(mc || {});
|
|
1451
|
-
const
|
|
1451
|
+
const W4 = {
|
|
1452
1452
|
add: "add",
|
|
1453
1453
|
remove: "remove",
|
|
1454
1454
|
moved: "moved"
|
|
1455
|
-
},
|
|
1455
|
+
}, ut = {
|
|
1456
1456
|
project: "projectId",
|
|
1457
1457
|
type: "typeId",
|
|
1458
1458
|
assignee: "assigneeId"
|
|
@@ -1638,7 +1638,7 @@ var Ic = {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
1640
|
const qe = Ic;
|
|
1641
|
-
var
|
|
1641
|
+
var ct = {
|
|
1642
1642
|
am: "am",
|
|
1643
1643
|
pm: "pm",
|
|
1644
1644
|
midnight: "midnight",
|
|
@@ -2019,7 +2019,7 @@ var ut = {
|
|
|
2019
2019
|
// AM, PM, midnight, noon
|
|
2020
2020
|
b: function(e, t, s) {
|
|
2021
2021
|
var n = e.getUTCHours(), o;
|
|
2022
|
-
switch (n === 12 ? o =
|
|
2022
|
+
switch (n === 12 ? o = ct.noon : n === 0 ? o = ct.midnight : o = n / 12 >= 1 ? "pm" : "am", t) {
|
|
2023
2023
|
case "b":
|
|
2024
2024
|
case "bb":
|
|
2025
2025
|
return s.dayPeriod(o, {
|
|
@@ -2047,7 +2047,7 @@ var ut = {
|
|
|
2047
2047
|
// in the morning, in the afternoon, in the evening, at night
|
|
2048
2048
|
B: function(e, t, s) {
|
|
2049
2049
|
var n = e.getUTCHours(), o;
|
|
2050
|
-
switch (n >= 17 ? o =
|
|
2050
|
+
switch (n >= 17 ? o = ct.evening : n >= 12 ? o = ct.afternoon : n >= 4 ? o = ct.morning : o = ct.night, t) {
|
|
2051
2051
|
case "B":
|
|
2052
2052
|
case "BB":
|
|
2053
2053
|
case "BBB":
|
|
@@ -4578,7 +4578,7 @@ function Oa(a) {
|
|
|
4578
4578
|
function B1(a) {
|
|
4579
4579
|
return Ue(a) ? a : a.contextElement;
|
|
4580
4580
|
}
|
|
4581
|
-
function
|
|
4581
|
+
function vt(a) {
|
|
4582
4582
|
const e = B1(a);
|
|
4583
4583
|
if (!De(e))
|
|
4584
4584
|
return xe(1);
|
|
@@ -4604,18 +4604,18 @@ function La(a) {
|
|
|
4604
4604
|
function d3(a, e, t) {
|
|
4605
4605
|
return e === void 0 && (e = !1), !t || e && t !== we(a) ? !1 : e;
|
|
4606
4606
|
}
|
|
4607
|
-
function
|
|
4607
|
+
function et(a, e, t, s) {
|
|
4608
4608
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
4609
4609
|
const n = a.getBoundingClientRect(), o = B1(a);
|
|
4610
4610
|
let i = xe(1);
|
|
4611
|
-
e && (s ? Ue(s) && (i =
|
|
4611
|
+
e && (s ? Ue(s) && (i = vt(s)) : i = vt(a));
|
|
4612
4612
|
const l = d3(o, t, s) ? La(o) : xe(0);
|
|
4613
4613
|
let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, d = n.height / i.y;
|
|
4614
4614
|
if (o) {
|
|
4615
4615
|
const p = we(o), C = s && Ue(s) ? we(s) : s;
|
|
4616
4616
|
let $ = p.frameElement;
|
|
4617
4617
|
for (; $ && s && C !== p; ) {
|
|
4618
|
-
const M =
|
|
4618
|
+
const M = vt($), A = $.getBoundingClientRect(), _ = Te($), y = A.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x, V = A.top + ($.clientTop + parseFloat(_.paddingTop)) * M.y;
|
|
4619
4619
|
r *= M.x, c *= M.y, u *= M.x, d *= M.y, r += y, c += V, $ = we($).frameElement;
|
|
4620
4620
|
}
|
|
4621
4621
|
}
|
|
@@ -4641,8 +4641,8 @@ function f3(a) {
|
|
|
4641
4641
|
}, l = xe(1);
|
|
4642
4642
|
const r = xe(0);
|
|
4643
4643
|
if ((n || !n && s !== "fixed") && ((Ke(t) !== "body" || Rt(o)) && (i = d1(t)), De(t))) {
|
|
4644
|
-
const c =
|
|
4645
|
-
l =
|
|
4644
|
+
const c = et(t);
|
|
4645
|
+
l = vt(t), r.x = c.x + t.clientLeft, r.y = c.y + t.clientTop;
|
|
4646
4646
|
}
|
|
4647
4647
|
return {
|
|
4648
4648
|
width: e.width * l.x,
|
|
@@ -4655,7 +4655,7 @@ function v3(a) {
|
|
|
4655
4655
|
return Array.from(a.getClientRects());
|
|
4656
4656
|
}
|
|
4657
4657
|
function Va(a) {
|
|
4658
|
-
return
|
|
4658
|
+
return et(je(a)).left + d1(a).scrollLeft;
|
|
4659
4659
|
}
|
|
4660
4660
|
function p3(a) {
|
|
4661
4661
|
const e = je(a), t = d1(a), s = a.ownerDocument.body, n = ke(e.scrollWidth, e.clientWidth, s.scrollWidth, s.clientWidth), o = ke(e.scrollHeight, e.clientHeight, s.scrollHeight, s.clientHeight);
|
|
@@ -4684,7 +4684,7 @@ function h3(a, e) {
|
|
|
4684
4684
|
};
|
|
4685
4685
|
}
|
|
4686
4686
|
function m3(a, e) {
|
|
4687
|
-
const t =
|
|
4687
|
+
const t = et(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = De(a) ? vt(a) : xe(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, c = s * o.y;
|
|
4688
4688
|
return {
|
|
4689
4689
|
width: i,
|
|
4690
4690
|
height: l,
|
|
@@ -4749,7 +4749,7 @@ function g3(a) {
|
|
|
4749
4749
|
return Oa(a);
|
|
4750
4750
|
}
|
|
4751
4751
|
function y3(a, e, t) {
|
|
4752
|
-
const s = De(e), n = je(e), o = t === "fixed", i =
|
|
4752
|
+
const s = De(e), n = je(e), o = t === "fixed", i = et(a, !0, o, e);
|
|
4753
4753
|
let l = {
|
|
4754
4754
|
scrollLeft: 0,
|
|
4755
4755
|
scrollTop: 0
|
|
@@ -4757,7 +4757,7 @@ function y3(a, e, t) {
|
|
|
4757
4757
|
const r = xe(0);
|
|
4758
4758
|
if (s || !s && !o)
|
|
4759
4759
|
if ((Ke(e) !== "body" || Rt(n)) && (l = d1(e)), s) {
|
|
4760
|
-
const c =
|
|
4760
|
+
const c = et(e, !0, o, e);
|
|
4761
4761
|
r.x = c.x + e.clientLeft, r.y = c.y + e.clientTop;
|
|
4762
4762
|
} else
|
|
4763
4763
|
n && (r.x = Va(n));
|
|
@@ -4807,7 +4807,7 @@ const $3 = {
|
|
|
4807
4807
|
getElementRects: b3,
|
|
4808
4808
|
getClientRects: v3,
|
|
4809
4809
|
getDimensions: g3,
|
|
4810
|
-
getScale:
|
|
4810
|
+
getScale: vt,
|
|
4811
4811
|
isElement: Ue,
|
|
4812
4812
|
isRTL: w3
|
|
4813
4813
|
};
|
|
@@ -4878,10 +4878,10 @@ function k3(a, e, t, s) {
|
|
|
4878
4878
|
C && C.observe(e);
|
|
4879
4879
|
})), t();
|
|
4880
4880
|
}), c && !r && C.observe(c), C.observe(e));
|
|
4881
|
-
let $, M = r ?
|
|
4881
|
+
let $, M = r ? et(a) : null;
|
|
4882
4882
|
r && A();
|
|
4883
4883
|
function A() {
|
|
4884
|
-
const _ =
|
|
4884
|
+
const _ = et(a);
|
|
4885
4885
|
M && (_.x !== M.x || _.y !== M.y || _.width !== M.width || _.height !== M.height) && t(), M = _, $ = requestAnimationFrame(A);
|
|
4886
4886
|
}
|
|
4887
4887
|
return t(), () => {
|
|
@@ -4972,7 +4972,7 @@ function Le(a) {
|
|
|
4972
4972
|
return [null, void 0].indexOf(a) !== -1;
|
|
4973
4973
|
}
|
|
4974
4974
|
function T3(a, e, t) {
|
|
4975
|
-
const { object: s, valueProp: n, mode: o } = $e(a), i =
|
|
4975
|
+
const { object: s, valueProp: n, mode: o } = $e(a), i = at().proxy, l = t.iv, r = (d, p = !0) => {
|
|
4976
4976
|
l.value = u(d);
|
|
4977
4977
|
const C = c(d);
|
|
4978
4978
|
e.emit("change", C, i), p && (e.emit("input", C), e.emit("update:modelValue", C));
|
|
@@ -4993,7 +4993,7 @@ function E3(a, e) {
|
|
|
4993
4993
|
};
|
|
4994
4994
|
}
|
|
4995
4995
|
function I3(a, e, t) {
|
|
4996
|
-
const { regex: s } = $e(a), n =
|
|
4996
|
+
const { regex: s } = $e(a), n = at().proxy, o = t.isOpen, i = t.open, l = X(null), r = X(null), c = () => {
|
|
4997
4997
|
l.value = "";
|
|
4998
4998
|
}, u = (C) => {
|
|
4999
4999
|
l.value = C.target.value;
|
|
@@ -5084,7 +5084,7 @@ function D3(a, e, t) {
|
|
|
5084
5084
|
disabledProp: P,
|
|
5085
5085
|
searchStart: fe,
|
|
5086
5086
|
searchFilter: ae
|
|
5087
|
-
} = $e(a), Q =
|
|
5087
|
+
} = $e(a), Q = at().proxy, z = t.iv, O = t.ev, q = t.search, Ce = t.clearSearch, Pe = t.update, Ba = t.pointer, st = t.clearPointer, Na = t.focus, Ra = t.deactivate, it = t.close, Ua = t.localize, gt = X([]), Ze = X([]), Ie = X(!1), f1 = X(null), v1 = X(ue.value && i.value === -1 ? 10 : i.value), j1 = w(() => r.value || c.value || !1), ja = w(() => d.value !== void 0 ? d.value : p.value !== void 0 ? p.value : !0), Fe = w(() => {
|
|
5088
5088
|
if (le.value) {
|
|
5089
5089
|
let m = Ut.value || /* istanbul ignore next */
|
|
5090
5090
|
[], H = [];
|
|
@@ -5100,7 +5100,7 @@ function D3(a, e, t) {
|
|
|
5100
5100
|
}
|
|
5101
5101
|
}), Z1 = w(() => {
|
|
5102
5102
|
let m = Fe.value;
|
|
5103
|
-
return ne.value && (m = m.reverse()),
|
|
5103
|
+
return ne.value && (m = m.reverse()), ot.value.length && (m = ot.value.concat(m)), _1(m);
|
|
5104
5104
|
}), yt = w(() => {
|
|
5105
5105
|
let m = Z1.value;
|
|
5106
5106
|
return v1.value > 0 && (m = m.slice(0, v1.value)), m;
|
|
@@ -5116,9 +5116,9 @@ function D3(a, e, t) {
|
|
|
5116
5116
|
}), m.concat(H);
|
|
5117
5117
|
}), Za = w(() => {
|
|
5118
5118
|
let m = [...Ut.value].map((H) => ({ ...H }));
|
|
5119
|
-
return
|
|
5119
|
+
return ot.value.length && (m[0] && m[0].__CREATE__ ? m[0][ie.value] = [...ot.value, ...m[0][ie.value]] : m = [{
|
|
5120
5120
|
[ee.value]: " ",
|
|
5121
|
-
[ie.value]: [...
|
|
5121
|
+
[ie.value]: [...ot.value],
|
|
5122
5122
|
__CREATE__: !0
|
|
5123
5123
|
}].concat(m)), m;
|
|
5124
5124
|
}), F1 = w(() => {
|
|
@@ -5144,7 +5144,7 @@ function D3(a, e, t) {
|
|
|
5144
5144
|
case "tags":
|
|
5145
5145
|
return !Le(z.value) && z.value.length > 0;
|
|
5146
5146
|
}
|
|
5147
|
-
}), Fa = w(() => C !== void 0 && C.value !== void 0 ? C.value(z.value, Q) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), qa = w(() => !Fe.value.length && !Ie.value && !
|
|
5147
|
+
}), Fa = w(() => C !== void 0 && C.value !== void 0 ? C.value(z.value, Q) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), qa = w(() => !Fe.value.length && !Ie.value && !ot.value.length), Wa = w(() => Fe.value.length > 0 && yt.value.length == 0 && (q.value && le.value || !le.value)), ot = w(() => j1.value === !1 || !q.value ? [] : en(q.value) !== -1 ? [] : [{
|
|
5148
5148
|
[D.value]: q.value,
|
|
5149
5149
|
[Oe.value]: q.value,
|
|
5150
5150
|
[u.value]: q.value,
|
|
@@ -5157,7 +5157,7 @@ function D3(a, e, t) {
|
|
|
5157
5157
|
case "tags":
|
|
5158
5158
|
return [];
|
|
5159
5159
|
}
|
|
5160
|
-
}), Ya = w(() => M.value || Ie.value),
|
|
5160
|
+
}), Ya = w(() => M.value || Ie.value), lt = (m) => {
|
|
5161
5161
|
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5162
5162
|
case "single":
|
|
5163
5163
|
Pe(m);
|
|
@@ -5168,7 +5168,7 @@ function D3(a, e, t) {
|
|
|
5168
5168
|
break;
|
|
5169
5169
|
}
|
|
5170
5170
|
e.emit("select", q1(m), m, Q);
|
|
5171
|
-
},
|
|
5171
|
+
}, rt = (m) => {
|
|
5172
5172
|
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5173
5173
|
case "single":
|
|
5174
5174
|
z1();
|
|
@@ -5180,7 +5180,7 @@ function D3(a, e, t) {
|
|
|
5180
5180
|
}
|
|
5181
5181
|
e.emit("deselect", q1(m), m, Q);
|
|
5182
5182
|
}, q1 = (m) => $.value ? m : m[D.value], W1 = (m) => {
|
|
5183
|
-
|
|
5183
|
+
rt(m);
|
|
5184
5184
|
}, xa = (m, H) => {
|
|
5185
5185
|
if (H.button !== 0) {
|
|
5186
5186
|
H.preventDefault();
|
|
@@ -5213,32 +5213,32 @@ function D3(a, e, t) {
|
|
|
5213
5213
|
switch (m.__CREATE__ && (m = { ...m }, delete m.__CREATE__), n.value) {
|
|
5214
5214
|
case "single":
|
|
5215
5215
|
if (m && Be(m)) {
|
|
5216
|
-
I.value &&
|
|
5216
|
+
I.value && rt(m), B.value && (st(), it());
|
|
5217
5217
|
return;
|
|
5218
5218
|
}
|
|
5219
|
-
m && C1(m), W.value && Ce(), S.value && (
|
|
5219
|
+
m && C1(m), W.value && Ce(), S.value && (st(), it()), m && lt(m);
|
|
5220
5220
|
break;
|
|
5221
5221
|
case "multiple":
|
|
5222
5222
|
if (m && Be(m)) {
|
|
5223
|
-
|
|
5223
|
+
rt(m), B.value && (st(), it());
|
|
5224
5224
|
return;
|
|
5225
5225
|
}
|
|
5226
5226
|
if (m1()) {
|
|
5227
5227
|
e.emit("max", Q);
|
|
5228
5228
|
return;
|
|
5229
5229
|
}
|
|
5230
|
-
m && (C1(m),
|
|
5230
|
+
m && (C1(m), lt(m)), W.value && Ce(), l.value && st(), S.value && it();
|
|
5231
5231
|
break;
|
|
5232
5232
|
case "tags":
|
|
5233
5233
|
if (m && Be(m)) {
|
|
5234
|
-
|
|
5234
|
+
rt(m), B.value && (st(), it());
|
|
5235
5235
|
return;
|
|
5236
5236
|
}
|
|
5237
5237
|
if (m1()) {
|
|
5238
5238
|
e.emit("max", Q);
|
|
5239
5239
|
return;
|
|
5240
5240
|
}
|
|
5241
|
-
m && C1(m), W.value && Ce(), m &&
|
|
5241
|
+
m && C1(m), W.value && Ce(), m && lt(m), l.value && st(), S.value && it();
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
S.value || Na();
|
|
@@ -5247,7 +5247,7 @@ function D3(a, e, t) {
|
|
|
5247
5247
|
switch (n.value) {
|
|
5248
5248
|
case "multiple":
|
|
5249
5249
|
case "tags":
|
|
5250
|
-
Qa(m[ie.value]) ?
|
|
5250
|
+
Qa(m[ie.value]) ? rt(m[ie.value]) : lt(
|
|
5251
5251
|
m[ie.value].filter((H) => z.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[P.value]).filter((H, se) => z.value.length + 1 + se <= te.value || te.value === -1)
|
|
5252
5252
|
);
|
|
5253
5253
|
break;
|
|
@@ -5257,7 +5257,7 @@ function D3(a, e, t) {
|
|
|
5257
5257
|
}, C1 = (m) => {
|
|
5258
5258
|
Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value], Q), e.emit("option", m[D.value], Q), e.emit("create", m[D.value], Q), ja.value && an(m), Ce());
|
|
5259
5259
|
}, Xa = () => {
|
|
5260
|
-
n.value !== "single" &&
|
|
5260
|
+
n.value !== "single" && lt(yt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5261
5261
|
}, Qa = (m) => m.find((H) => !Be(H) && !H[P.value]) === void 0, Ja = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => Fe.value[Fe.value.map((H) => String(H[D.value])).indexOf(String(m))], en = (m, H = !0) => Fe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
|
|
5262
5262
|
parseInt(m) == m ? parseInt(m) : m
|
|
5263
5263
|
), tn = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), an = (m) => {
|
|
@@ -5268,7 +5268,7 @@ function D3(a, e, t) {
|
|
|
5268
5268
|
let se = m;
|
|
5269
5269
|
if (q.value && V.value) {
|
|
5270
5270
|
let pe = ae.value;
|
|
5271
|
-
pe || (pe = (bt,
|
|
5271
|
+
pe || (pe = (bt, N4) => {
|
|
5272
5272
|
let K1 = $1(Ua(bt[Oe.value]), b.value);
|
|
5273
5273
|
return fe.value ? K1.startsWith($1(q.value, b.value)) : K1.indexOf($1(q.value, b.value)) !== -1;
|
|
5274
5274
|
}), se = se.filter(pe);
|
|
@@ -5367,8 +5367,8 @@ function D3(a, e, t) {
|
|
|
5367
5367
|
resolving: Ie,
|
|
5368
5368
|
busy: Ya,
|
|
5369
5369
|
offset: v1,
|
|
5370
|
-
select:
|
|
5371
|
-
deselect:
|
|
5370
|
+
select: lt,
|
|
5371
|
+
deselect: rt,
|
|
5372
5372
|
remove: W1,
|
|
5373
5373
|
selectAll: Xa,
|
|
5374
5374
|
clear: z1,
|
|
@@ -5474,7 +5474,7 @@ function H3(a, e, t) {
|
|
|
5474
5474
|
};
|
|
5475
5475
|
}
|
|
5476
5476
|
function P3(a, e, t) {
|
|
5477
|
-
const { disabled: s } = $e(a), n =
|
|
5477
|
+
const { disabled: s } = $e(a), n = at().proxy, o = X(!1);
|
|
5478
5478
|
return {
|
|
5479
5479
|
isOpen: o,
|
|
5480
5480
|
open: () => {
|
|
@@ -5539,7 +5539,7 @@ function N3(a, e, t) {
|
|
|
5539
5539
|
createTag: d,
|
|
5540
5540
|
createOption: p,
|
|
5541
5541
|
reverse: C
|
|
5542
|
-
} = $e(a), $ =
|
|
5542
|
+
} = $e(a), $ = at().proxy, M = t.iv, A = t.update, _ = t.search, y = t.setPointer, V = t.selectPointer, j = t.backwardPointer, W = t.forwardPointer, D = t.multiselect, Y = t.wrapper, ee = t.tags, I = t.isOpen, te = t.open, b = t.blur, S = t.fo, B = w(() => d.value || p.value || !1), le = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5543
5543
|
s.value === "tags" && !l.value && B.value && i.value && !c.value && y(S.value[S.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5544
5544
|
}, ue = (L) => {
|
|
5545
5545
|
let g = L.length - 1;
|
|
@@ -6656,7 +6656,7 @@ const be = /* @__PURE__ */ x({
|
|
|
6656
6656
|
appendTo: {}
|
|
6657
6657
|
},
|
|
6658
6658
|
setup(a) {
|
|
6659
|
-
const e = a, t =
|
|
6659
|
+
const e = a, t = dt(() => e.appendTo), s = X();
|
|
6660
6660
|
return e.detached && S3({
|
|
6661
6661
|
multiselect: s,
|
|
6662
6662
|
appendTo: t.value
|
|
@@ -6675,7 +6675,7 @@ const be = /* @__PURE__ */ x({
|
|
|
6675
6675
|
}
|
|
6676
6676
|
});
|
|
6677
6677
|
var oa;
|
|
6678
|
-
function
|
|
6678
|
+
function nt() {
|
|
6679
6679
|
const a = d5(), e = a.appContext.config.globalProperties;
|
|
6680
6680
|
return {
|
|
6681
6681
|
i18next: e.$i18next,
|
|
@@ -6683,7 +6683,7 @@ function at() {
|
|
|
6683
6683
|
};
|
|
6684
6684
|
}
|
|
6685
6685
|
function d5() {
|
|
6686
|
-
const a =
|
|
6686
|
+
const a = at();
|
|
6687
6687
|
if (!a)
|
|
6688
6688
|
throw new Error("i18next-vue: No Vue instance in context. Make sure to register the i18next-vue plugin using app.use(...).");
|
|
6689
6689
|
return a;
|
|
@@ -6736,7 +6736,7 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6736
6736
|
},
|
|
6737
6737
|
emits: ["add", "delete", "update"],
|
|
6738
6738
|
setup(a, { emit: e }) {
|
|
6739
|
-
const t = a, { t: s } =
|
|
6739
|
+
const t = a, { t: s } = nt();
|
|
6740
6740
|
re(() => t.tasks, (d, p) => {
|
|
6741
6741
|
Re(d, p);
|
|
6742
6742
|
});
|
|
@@ -6997,7 +6997,7 @@ const A5 = { class: "ao-comment" }, S5 = { class: "ao-comment__body" }, T5 = { c
|
|
|
6997
6997
|
}, null, 8, ["user-name"])) : T("", !0),
|
|
6998
6998
|
f("div", S5, [
|
|
6999
6999
|
f("div", T5, [
|
|
7000
|
-
(v(), R(
|
|
7000
|
+
(v(), R(tt(d.value), {
|
|
7001
7001
|
ref_key: "commentContent",
|
|
7002
7002
|
ref: n,
|
|
7003
7003
|
class: "ao-comment__content",
|
|
@@ -7069,7 +7069,7 @@ const L5 = {
|
|
|
7069
7069
|
Ee(() => {
|
|
7070
7070
|
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7071
7071
|
});
|
|
7072
|
-
const o =
|
|
7072
|
+
const o = dt(t.newComment), i = w({
|
|
7073
7073
|
get() {
|
|
7074
7074
|
return o.value;
|
|
7075
7075
|
},
|
|
@@ -7114,7 +7114,7 @@ const L5 = {
|
|
|
7114
7114
|
}, [
|
|
7115
7115
|
f("label", H5, [
|
|
7116
7116
|
f("span", P5, F(u.$t("activity.comment.label")), 1),
|
|
7117
|
-
|
|
7117
|
+
ft(f("textarea", {
|
|
7118
7118
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => i.value = C),
|
|
7119
7119
|
rows: "4",
|
|
7120
7120
|
class: "ao-field__textarea"
|
|
@@ -7345,7 +7345,7 @@ const R5 = {
|
|
|
7345
7345
|
f("div", q5, [
|
|
7346
7346
|
f("label", W5, [
|
|
7347
7347
|
f("span", z5, F(b.$t("activity.description.label")), 1),
|
|
7348
|
-
|
|
7348
|
+
ft(f("textarea", {
|
|
7349
7349
|
"onUpdate:modelValue": S[0] || (S[0] = (B) => n.value = B),
|
|
7350
7350
|
readonly: !b.isEditable,
|
|
7351
7351
|
rows: "4",
|
|
@@ -7366,7 +7366,7 @@ const R5 = {
|
|
|
7366
7366
|
f("div", x5, [
|
|
7367
7367
|
f("label", K5, [
|
|
7368
7368
|
f("span", G5, F(b.$t("activity.estimation.label")), 1),
|
|
7369
|
-
|
|
7369
|
+
ft(f("input", {
|
|
7370
7370
|
"onUpdate:modelValue": S[1] || (S[1] = (B) => o.value = B),
|
|
7371
7371
|
readonly: !b.isEditable,
|
|
7372
7372
|
class: "ao-field__input",
|
|
@@ -7386,7 +7386,7 @@ const R5 = {
|
|
|
7386
7386
|
]),
|
|
7387
7387
|
f("label", Q5, [
|
|
7388
7388
|
f("span", J5, F(b.$t("activity.important.label")), 1),
|
|
7389
|
-
|
|
7389
|
+
ft(f("input", {
|
|
7390
7390
|
"onUpdate:modelValue": S[2] || (S[2] = (B) => i.value = B),
|
|
7391
7391
|
disabled: !b.isEditable,
|
|
7392
7392
|
class: "ao-field__input",
|
|
@@ -7582,7 +7582,7 @@ const T7 = /* @__PURE__ */ x({
|
|
|
7582
7582
|
},
|
|
7583
7583
|
emits: ["update:rule", "close"],
|
|
7584
7584
|
setup(a, { emit: e }) {
|
|
7585
|
-
const t = a, s =
|
|
7585
|
+
const t = a, s = dt(
|
|
7586
7586
|
t.rule.itemType || he.ACTIVITIES
|
|
7587
7587
|
), n = w({
|
|
7588
7588
|
get() {
|
|
@@ -7616,14 +7616,14 @@ const T7 = /* @__PURE__ */ x({
|
|
|
7616
7616
|
value: V.id,
|
|
7617
7617
|
label: V.name
|
|
7618
7618
|
}));
|
|
7619
|
-
}), r =
|
|
7619
|
+
}), r = dt(t.rule.comparator), c = w({
|
|
7620
7620
|
get() {
|
|
7621
7621
|
return r.value;
|
|
7622
7622
|
},
|
|
7623
7623
|
set(_) {
|
|
7624
7624
|
e("update:rule", { ...t.rule, comparator: _ });
|
|
7625
7625
|
}
|
|
7626
|
-
}), u = w(() => Object.values(vc)), d =
|
|
7626
|
+
}), u = w(() => Object.values(vc)), d = dt(t.rule.trigger), p = w({
|
|
7627
7627
|
get() {
|
|
7628
7628
|
return d.value;
|
|
7629
7629
|
},
|
|
@@ -7645,7 +7645,7 @@ const T7 = /* @__PURE__ */ x({
|
|
|
7645
7645
|
e("update:rule", { ...t.rule, durationUnit: _ });
|
|
7646
7646
|
}
|
|
7647
7647
|
}), A = w(() => Object.values(hc));
|
|
7648
|
-
return (_, y) => (v(), R(
|
|
7648
|
+
return (_, y) => (v(), R(tt(_.tagName), { class: "ao-rule-line" }, {
|
|
7649
7649
|
default: U(() => [
|
|
7650
7650
|
k(Z(We), {
|
|
7651
7651
|
modelValue: n.value,
|
|
@@ -7667,7 +7667,7 @@ const T7 = /* @__PURE__ */ x({
|
|
|
7667
7667
|
"onUpdate:modelValue": y[3] || (y[3] = (V) => c.value = V),
|
|
7668
7668
|
options: u.value
|
|
7669
7669
|
}, null, 8, ["modelValue", "options"]),
|
|
7670
|
-
|
|
7670
|
+
ft(f("input", {
|
|
7671
7671
|
"onUpdate:modelValue": y[4] || (y[4] = (V) => $.value = V),
|
|
7672
7672
|
type: "number",
|
|
7673
7673
|
min: "0"
|
|
@@ -7742,7 +7742,7 @@ const E7 = { class: "ao-template-rules__body" }, I7 = { class: "ao-template-rule
|
|
|
7742
7742
|
}));
|
|
7743
7743
|
}
|
|
7744
7744
|
});
|
|
7745
|
-
function
|
|
7745
|
+
function pt(a, e, t) {
|
|
7746
7746
|
const s = a.length, n = a.at(-1), o = n ? Ae.LexoRank.parse(n.rank).genNext() : Ae.LexoRank.middle();
|
|
7747
7747
|
return {
|
|
7748
7748
|
name: t(`template.defaultName.${e}`, { idx: s + 1 }),
|
|
@@ -7765,7 +7765,7 @@ const L7 = {
|
|
|
7765
7765
|
},
|
|
7766
7766
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
7767
7767
|
setup(a, { emit: e }) {
|
|
7768
|
-
const t = a, { t: s } =
|
|
7768
|
+
const t = a, { t: s } = nt(), n = w(
|
|
7769
7769
|
() => {
|
|
7770
7770
|
var E;
|
|
7771
7771
|
return (E = t.templates) == null ? void 0 : E.find((L) => L.id === t.templateId);
|
|
@@ -7831,7 +7831,7 @@ const L7 = {
|
|
|
7831
7831
|
}), C = () => {
|
|
7832
7832
|
if (!n.value)
|
|
7833
7833
|
return;
|
|
7834
|
-
const { name: E, rank: L } =
|
|
7834
|
+
const { name: E, rank: L } = pt(
|
|
7835
7835
|
n.value.phases,
|
|
7836
7836
|
"phase",
|
|
7837
7837
|
s
|
|
@@ -7871,7 +7871,7 @@ const L7 = {
|
|
|
7871
7871
|
}, y = (E) => {
|
|
7872
7872
|
if (!i.value)
|
|
7873
7873
|
return;
|
|
7874
|
-
const { name: L, rank: g } =
|
|
7874
|
+
const { name: L, rank: g } = pt(
|
|
7875
7875
|
i.value.milestones,
|
|
7876
7876
|
"milestone",
|
|
7877
7877
|
s
|
|
@@ -7907,7 +7907,7 @@ const L7 = {
|
|
|
7907
7907
|
const { milestoneId: L } = E;
|
|
7908
7908
|
if (!l.value)
|
|
7909
7909
|
return;
|
|
7910
|
-
const { name: g, rank: P } =
|
|
7910
|
+
const { name: g, rank: P } = pt(
|
|
7911
7911
|
l.value.activities,
|
|
7912
7912
|
"activity",
|
|
7913
7913
|
s
|
|
@@ -7991,7 +7991,7 @@ const L7 = {
|
|
|
7991
7991
|
return n.value ? (v(), h("div", L7, [
|
|
7992
7992
|
k(r1, {
|
|
7993
7993
|
"can-go-back": !0,
|
|
7994
|
-
onGoBack: L[1] || (L[1] = (O) => E.$router.push({ name: Z(
|
|
7994
|
+
onGoBack: L[1] || (L[1] = (O) => E.$router.push({ name: Z(Tt).TEMPLATES_LIST }))
|
|
7995
7995
|
}, {
|
|
7996
7996
|
primary: U(() => [
|
|
7997
7997
|
k(me, {
|
|
@@ -8140,7 +8140,7 @@ const U7 = {
|
|
|
8140
8140
|
tagName: { default: "div" }
|
|
8141
8141
|
},
|
|
8142
8142
|
setup(a) {
|
|
8143
|
-
return (e, t) => (v(), R(
|
|
8143
|
+
return (e, t) => (v(), R(tt(e.tagName), {
|
|
8144
8144
|
class: G(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
8145
8145
|
}, {
|
|
8146
8146
|
default: U(() => [
|
|
@@ -8351,14 +8351,14 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8351
8351
|
},
|
|
8352
8352
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
|
|
8353
8353
|
setup(a, { emit: e }) {
|
|
8354
|
-
const t = a, { t: s } =
|
|
8354
|
+
const t = a, { t: s } = nt();
|
|
8355
8355
|
re(() => t.phase.milestones, (d, p) => {
|
|
8356
8356
|
Re(d, p);
|
|
8357
8357
|
});
|
|
8358
8358
|
const n = (d) => {
|
|
8359
8359
|
e("updatePhase", { id: t.phase.id, name: d });
|
|
8360
8360
|
}, o = w(() => t.phase.milestones.map((d) => i0(d, t.closedStatus))), i = (d) => {
|
|
8361
|
-
const { name: p, rank: C } =
|
|
8361
|
+
const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
|
|
8362
8362
|
e("addMilestone", { name: p, rank: C, phaseId: d });
|
|
8363
8363
|
}, l = (d) => {
|
|
8364
8364
|
e("updateMilestone", d);
|
|
@@ -8412,7 +8412,7 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8412
8412
|
"closed-status": d.closedStatus,
|
|
8413
8413
|
class: "ao-project-phase__milestone",
|
|
8414
8414
|
onClick: ($) => d.$router.push({
|
|
8415
|
-
name: Z(
|
|
8415
|
+
name: Z(Je).milestone,
|
|
8416
8416
|
params: { phaseId: d.phase.id, milestoneId: C.id }
|
|
8417
8417
|
}),
|
|
8418
8418
|
onUpdateMilestone: l,
|
|
@@ -8577,10 +8577,10 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8577
8577
|
},
|
|
8578
8578
|
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8579
8579
|
setup(a, { emit: e }) {
|
|
8580
|
-
const t = a, { t: s } =
|
|
8580
|
+
const t = a, { t: s } = nt(), n = w(
|
|
8581
8581
|
() => t.phases.flatMap((I) => I.milestones)
|
|
8582
8582
|
), o = () => {
|
|
8583
|
-
const { name: I, rank: te } =
|
|
8583
|
+
const { name: I, rank: te } = pt(t.phases, "phase", s);
|
|
8584
8584
|
e("addPhase", { name: I, rank: te, projectId: t.project.id });
|
|
8585
8585
|
}, i = (I) => {
|
|
8586
8586
|
e("updatePhase", I);
|
|
@@ -8659,7 +8659,7 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8659
8659
|
"project-name": I.project.name,
|
|
8660
8660
|
users: I.users,
|
|
8661
8661
|
"is-editable": I.isEditable,
|
|
8662
|
-
onClose: te[1] || (te[1] = (S) => I.$router.push({ name: Z(
|
|
8662
|
+
onClose: te[1] || (te[1] = (S) => I.$router.push({ name: Z(Je).project })),
|
|
8663
8663
|
onAddActivity: d,
|
|
8664
8664
|
onUpdateActivity: p,
|
|
8665
8665
|
onArchiveActivity: C
|
|
@@ -8866,7 +8866,7 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8866
8866
|
},
|
|
8867
8867
|
emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
|
|
8868
8868
|
setup(a, { emit: e }) {
|
|
8869
|
-
const t = a, { t: s } =
|
|
8869
|
+
const t = a, { t: s } = nt(), n = w(() => {
|
|
8870
8870
|
var p;
|
|
8871
8871
|
return (p = t.phases) == null ? void 0 : p.find((C) => C.id === t.phaseId);
|
|
8872
8872
|
}), o = w(() => {
|
|
@@ -8885,7 +8885,7 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8885
8885
|
const r = (p) => {
|
|
8886
8886
|
e("close", p);
|
|
8887
8887
|
}, c = () => {
|
|
8888
|
-
const { name: p, rank: C } =
|
|
8888
|
+
const { name: p, rank: C } = pt(l.value ?? [], "activity", s);
|
|
8889
8889
|
e("addActivity", {
|
|
8890
8890
|
milestoneId: t.milestoneId,
|
|
8891
8891
|
name: p,
|
|
@@ -8946,7 +8946,7 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8946
8946
|
tasks: M.tasks,
|
|
8947
8947
|
"is-editable": p.isEditable,
|
|
8948
8948
|
onClick: (j) => p.$router.push({
|
|
8949
|
-
name: Z(
|
|
8949
|
+
name: Z(Je).activity,
|
|
8950
8950
|
params: { milestoneId: p.milestoneId, activityId: M.id }
|
|
8951
8951
|
}),
|
|
8952
8952
|
onUpdateActivity: u,
|
|
@@ -9068,155 +9068,14 @@ const K9 = /* @__PURE__ */ x({
|
|
|
9068
9068
|
}, null, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) : T("", !0);
|
|
9069
9069
|
};
|
|
9070
9070
|
}
|
|
9071
|
-
}),
|
|
9072
|
-
TEMPLATES: "templates",
|
|
9073
|
-
TEMPLATE_DETAILS: "template_details",
|
|
9074
|
-
TEMPLATES_LIST: "templates_list"
|
|
9075
|
-
}, W4 = (a, e = {}) => [
|
|
9076
|
-
{
|
|
9077
|
-
path: a,
|
|
9078
|
-
name: St.TEMPLATES,
|
|
9079
|
-
...e,
|
|
9080
|
-
children: [
|
|
9081
|
-
{
|
|
9082
|
-
path: "",
|
|
9083
|
-
name: St.TEMPLATES_LIST,
|
|
9084
|
-
component: X9
|
|
9085
|
-
},
|
|
9086
|
-
{
|
|
9087
|
-
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
9088
|
-
name: St.TEMPLATE_DETAILS,
|
|
9089
|
-
component: R7,
|
|
9090
|
-
props: !0
|
|
9091
|
-
}
|
|
9092
|
-
]
|
|
9093
|
-
}
|
|
9094
|
-
], pt = {
|
|
9095
|
-
project: "AoProject",
|
|
9096
|
-
milestone: "AoMilestone",
|
|
9097
|
-
activity: "AoActivity"
|
|
9098
|
-
}, z4 = (a, e = {}) => [
|
|
9099
|
-
{
|
|
9100
|
-
path: a,
|
|
9101
|
-
...e,
|
|
9102
|
-
children: [
|
|
9103
|
-
{
|
|
9104
|
-
path: "",
|
|
9105
|
-
name: pt.project,
|
|
9106
|
-
component: k9,
|
|
9107
|
-
props: !0,
|
|
9108
|
-
children: [
|
|
9109
|
-
{
|
|
9110
|
-
path: ":phaseId/:milestoneId",
|
|
9111
|
-
name: pt.milestone,
|
|
9112
|
-
component: la,
|
|
9113
|
-
props: !0
|
|
9114
|
-
},
|
|
9115
|
-
{
|
|
9116
|
-
path: ":phaseId/:milestoneId/:activityId",
|
|
9117
|
-
name: pt.activity,
|
|
9118
|
-
props: { default: !0, modal: !0 },
|
|
9119
|
-
components: {
|
|
9120
|
-
default: la,
|
|
9121
|
-
modal: K9
|
|
9122
|
-
}
|
|
9123
|
-
}
|
|
9124
|
-
]
|
|
9125
|
-
}
|
|
9126
|
-
]
|
|
9127
|
-
}
|
|
9128
|
-
], G9 = { class: "ao-templates" }, X9 = /* @__PURE__ */ x({
|
|
9129
|
-
__name: "AoTemplatesList",
|
|
9130
|
-
props: {
|
|
9131
|
-
templates: {}
|
|
9132
|
-
},
|
|
9133
|
-
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
9134
|
-
setup(a, { emit: e }) {
|
|
9135
|
-
const t = a, { t: s } = at();
|
|
9136
|
-
re(() => t.templates, (l, r) => {
|
|
9137
|
-
Re(l, r);
|
|
9138
|
-
});
|
|
9139
|
-
const n = () => {
|
|
9140
|
-
var d, p;
|
|
9141
|
-
const l = (d = t.templates) == null ? void 0 : d.at(-1), r = l ? Ae.LexoRank.parse(l.rank).genNext() : Ae.LexoRank.middle(), c = ((p = t.templates) == null ? void 0 : p.length) ?? 0, u = {
|
|
9142
|
-
name: s("template.defaultName.template", { idx: c + 1 }),
|
|
9143
|
-
rank: r.format()
|
|
9144
|
-
};
|
|
9145
|
-
e("addTemplate", u);
|
|
9146
|
-
}, o = (l, r) => {
|
|
9147
|
-
e("updateItem", {
|
|
9148
|
-
itemType: he.TEMPLATES,
|
|
9149
|
-
id: l,
|
|
9150
|
-
templateId: l,
|
|
9151
|
-
data: {
|
|
9152
|
-
name: r
|
|
9153
|
-
}
|
|
9154
|
-
});
|
|
9155
|
-
}, i = (l) => {
|
|
9156
|
-
if (l.moved) {
|
|
9157
|
-
const r = Nt(l, t.templates ?? []);
|
|
9158
|
-
e("updateItem", {
|
|
9159
|
-
itemType: he.TEMPLATES,
|
|
9160
|
-
id: l.moved.element.id,
|
|
9161
|
-
templateId: l.moved.element.id,
|
|
9162
|
-
data: {
|
|
9163
|
-
rank: r
|
|
9164
|
-
}
|
|
9165
|
-
});
|
|
9166
|
-
}
|
|
9167
|
-
};
|
|
9168
|
-
return (l, r) => (v(), h("div", G9, [
|
|
9169
|
-
k(r1, null, {
|
|
9170
|
-
secondary: U(() => [
|
|
9171
|
-
k(ce, {
|
|
9172
|
-
label: l.$t("templates.new"),
|
|
9173
|
-
color: "primary",
|
|
9174
|
-
"icon-name": "Add",
|
|
9175
|
-
"icon-position": "start",
|
|
9176
|
-
onClick: n
|
|
9177
|
-
}, null, 8, ["label"])
|
|
9178
|
-
]),
|
|
9179
|
-
_: 1
|
|
9180
|
-
}),
|
|
9181
|
-
k(Z(Ge), {
|
|
9182
|
-
"model-value": l.templates,
|
|
9183
|
-
class: "ao-templates__list",
|
|
9184
|
-
"item-key": "id",
|
|
9185
|
-
handle: ".ao-card__drag",
|
|
9186
|
-
onChange: i
|
|
9187
|
-
}, {
|
|
9188
|
-
item: U(({ element: c }) => {
|
|
9189
|
-
var u;
|
|
9190
|
-
return [
|
|
9191
|
-
k(S0, {
|
|
9192
|
-
id: c.id,
|
|
9193
|
-
title: c.name,
|
|
9194
|
-
phases: c.phases,
|
|
9195
|
-
milestones: (u = c.phases) != null && u.length ? Z(t0)(c.phases) : 0,
|
|
9196
|
-
activities: c.phases ? Z(a0)(c.phases) : 0,
|
|
9197
|
-
"updated-at": c.updatedAt,
|
|
9198
|
-
"updated-by": c.updatedBy,
|
|
9199
|
-
onUpdateTitle: (d) => o(c.id, d),
|
|
9200
|
-
onClick: (d) => l.$router.push({
|
|
9201
|
-
name: Z(St).TEMPLATE_DETAILS,
|
|
9202
|
-
params: { templateId: c.id }
|
|
9203
|
-
})
|
|
9204
|
-
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
9205
|
-
];
|
|
9206
|
-
}),
|
|
9207
|
-
_: 1
|
|
9208
|
-
}, 8, ["model-value"])
|
|
9209
|
-
]));
|
|
9210
|
-
}
|
|
9211
|
-
});
|
|
9212
|
-
const Q9 = { class: "ao-col-header" }, J9 = /* @__PURE__ */ x({
|
|
9071
|
+
}), G9 = { class: "ao-col-header" }, X9 = /* @__PURE__ */ x({
|
|
9213
9072
|
__name: "AoColHeader",
|
|
9214
9073
|
props: {
|
|
9215
9074
|
title: {},
|
|
9216
9075
|
items: {}
|
|
9217
9076
|
},
|
|
9218
9077
|
setup(a) {
|
|
9219
|
-
return (e, t) => (v(), h("header",
|
|
9078
|
+
return (e, t) => (v(), h("header", G9, [
|
|
9220
9079
|
k(me, {
|
|
9221
9080
|
title: e.title,
|
|
9222
9081
|
class: "ao-col-header__title",
|
|
@@ -9232,15 +9091,15 @@ const Q9 = { class: "ao-col-header" }, J9 = /* @__PURE__ */ x({
|
|
|
9232
9091
|
]));
|
|
9233
9092
|
}
|
|
9234
9093
|
});
|
|
9235
|
-
function
|
|
9094
|
+
function Q9(a) {
|
|
9236
9095
|
return mn() ? (Cn(a), !0) : !1;
|
|
9237
9096
|
}
|
|
9238
9097
|
function e1(a) {
|
|
9239
9098
|
return typeof a == "function" ? a() : Z(a);
|
|
9240
9099
|
}
|
|
9241
|
-
const
|
|
9100
|
+
const J9 = typeof window < "u", e4 = (a) => a != null, St = () => {
|
|
9242
9101
|
};
|
|
9243
|
-
function
|
|
9102
|
+
function t4(a, e) {
|
|
9244
9103
|
function t(...s) {
|
|
9245
9104
|
return new Promise((n, o) => {
|
|
9246
9105
|
Promise.resolve(a(() => e.apply(this, s), { fn: e, thisArg: this, args: s })).then(n).catch(o);
|
|
@@ -9248,10 +9107,10 @@ function n4(a, e) {
|
|
|
9248
9107
|
}
|
|
9249
9108
|
return t;
|
|
9250
9109
|
}
|
|
9251
|
-
function
|
|
9252
|
-
let t, s, n =
|
|
9110
|
+
function a4(a, e = {}) {
|
|
9111
|
+
let t, s, n = St;
|
|
9253
9112
|
const o = (l) => {
|
|
9254
|
-
clearTimeout(l), n(), n =
|
|
9113
|
+
clearTimeout(l), n(), n = St;
|
|
9255
9114
|
};
|
|
9256
9115
|
return (l) => {
|
|
9257
9116
|
const r = e1(a), c = e1(e.maxWait);
|
|
@@ -9264,9 +9123,9 @@ function s4(a, e = {}) {
|
|
|
9264
9123
|
});
|
|
9265
9124
|
};
|
|
9266
9125
|
}
|
|
9267
|
-
function
|
|
9268
|
-
return
|
|
9269
|
-
|
|
9126
|
+
function n4(a, e = 200, t = {}) {
|
|
9127
|
+
return t4(
|
|
9128
|
+
a4(e, t),
|
|
9270
9129
|
a
|
|
9271
9130
|
);
|
|
9272
9131
|
}
|
|
@@ -9275,29 +9134,29 @@ function M1(a) {
|
|
|
9275
9134
|
const t = e1(a);
|
|
9276
9135
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
9277
9136
|
}
|
|
9278
|
-
const
|
|
9279
|
-
function
|
|
9137
|
+
const s4 = J9 ? window : void 0;
|
|
9138
|
+
function i4() {
|
|
9280
9139
|
const a = X(!1);
|
|
9281
|
-
return
|
|
9140
|
+
return at() && Ht(() => {
|
|
9282
9141
|
a.value = !0;
|
|
9283
9142
|
}), a;
|
|
9284
9143
|
}
|
|
9285
|
-
function
|
|
9286
|
-
const e =
|
|
9144
|
+
function o4(a) {
|
|
9145
|
+
const e = i4();
|
|
9287
9146
|
return w(() => (e.value, !!a()));
|
|
9288
9147
|
}
|
|
9289
|
-
function
|
|
9148
|
+
function l4(a, e, t = {}) {
|
|
9290
9149
|
const {
|
|
9291
9150
|
root: s,
|
|
9292
9151
|
rootMargin: n = "0px",
|
|
9293
9152
|
threshold: o = 0.1,
|
|
9294
|
-
window: i =
|
|
9153
|
+
window: i = s4,
|
|
9295
9154
|
immediate: l = !0
|
|
9296
|
-
} = t, r =
|
|
9155
|
+
} = t, r = o4(() => i && "IntersectionObserver" in i), c = w(() => {
|
|
9297
9156
|
const $ = e1(a);
|
|
9298
|
-
return (Array.isArray($) ? $ : [$]).map(M1).filter(
|
|
9157
|
+
return (Array.isArray($) ? $ : [$]).map(M1).filter(e4);
|
|
9299
9158
|
});
|
|
9300
|
-
let u =
|
|
9159
|
+
let u = St;
|
|
9301
9160
|
const d = X(l), p = r.value ? re(
|
|
9302
9161
|
() => [c.value, M1(s), d.value],
|
|
9303
9162
|
([$, M]) => {
|
|
@@ -9312,14 +9171,14 @@ function u4(a, e, t = {}) {
|
|
|
9312
9171
|
}
|
|
9313
9172
|
);
|
|
9314
9173
|
$.forEach((_) => _ && A.observe(_)), u = () => {
|
|
9315
|
-
A.disconnect(), u =
|
|
9174
|
+
A.disconnect(), u = St;
|
|
9316
9175
|
};
|
|
9317
9176
|
},
|
|
9318
9177
|
{ immediate: l, flush: "post" }
|
|
9319
|
-
) :
|
|
9178
|
+
) : St, C = () => {
|
|
9320
9179
|
u(), p(), d.value = !1;
|
|
9321
9180
|
};
|
|
9322
|
-
return
|
|
9181
|
+
return Q9(C), {
|
|
9323
9182
|
isSupported: r,
|
|
9324
9183
|
isActive: d,
|
|
9325
9184
|
pause() {
|
|
@@ -9331,24 +9190,24 @@ function u4(a, e, t = {}) {
|
|
|
9331
9190
|
stop: C
|
|
9332
9191
|
};
|
|
9333
9192
|
}
|
|
9334
|
-
const
|
|
9193
|
+
const r4 = {
|
|
9335
9194
|
class: /* @__PURE__ */ G(["ao-list-kanban"])
|
|
9336
|
-
},
|
|
9195
|
+
}, u4 = { class: "ao-list-kanban__header" }, c4 = {
|
|
9337
9196
|
key: 0,
|
|
9338
9197
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
9339
|
-
},
|
|
9198
|
+
}, d4 = {
|
|
9340
9199
|
key: 1,
|
|
9341
9200
|
class: "ao-list-kanban__end"
|
|
9342
|
-
},
|
|
9201
|
+
}, f4 = {
|
|
9343
9202
|
key: 0,
|
|
9344
9203
|
class: "ao-list-kanban__no-more"
|
|
9345
|
-
},
|
|
9204
|
+
}, v4 = {
|
|
9346
9205
|
key: 1,
|
|
9347
9206
|
class: "ao-list-kanban__divider"
|
|
9348
|
-
},
|
|
9207
|
+
}, p4 = {
|
|
9349
9208
|
key: 1,
|
|
9350
9209
|
class: "ao-list-kanban__footer"
|
|
9351
|
-
},
|
|
9210
|
+
}, h4 = /* @__PURE__ */ x({
|
|
9352
9211
|
__name: "AoListKanban",
|
|
9353
9212
|
props: {
|
|
9354
9213
|
list: {},
|
|
@@ -9363,7 +9222,7 @@ const c4 = {
|
|
|
9363
9222
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
|
|
9364
9223
|
setup(a, { emit: e }) {
|
|
9365
9224
|
const t = a, s = X(!1), n = X(null);
|
|
9366
|
-
|
|
9225
|
+
l4(n, ([{ isIntersecting: r }]) => {
|
|
9367
9226
|
s.value = r;
|
|
9368
9227
|
}), re(s, (r) => {
|
|
9369
9228
|
r && t.hasMore && !t.isLoading && e("loadMore");
|
|
@@ -9386,12 +9245,12 @@ const c4 = {
|
|
|
9386
9245
|
)
|
|
9387
9246
|
});
|
|
9388
9247
|
};
|
|
9389
|
-
return (r, c) => (v(), h("div",
|
|
9248
|
+
return (r, c) => (v(), h("div", r4, [
|
|
9390
9249
|
r.title || r.$slots.header ? J(r.$slots, "header", { key: 0 }, () => {
|
|
9391
9250
|
var u;
|
|
9392
9251
|
return [
|
|
9393
|
-
f("div",
|
|
9394
|
-
r.title ? (v(), R(
|
|
9252
|
+
f("div", u4, [
|
|
9253
|
+
r.title ? (v(), R(X9, {
|
|
9395
9254
|
key: 0,
|
|
9396
9255
|
title: r.title,
|
|
9397
9256
|
level: 3,
|
|
@@ -9447,20 +9306,20 @@ const c4 = {
|
|
|
9447
9306
|
];
|
|
9448
9307
|
}),
|
|
9449
9308
|
footer: U(() => [
|
|
9450
|
-
r.isLoading ? (v(), h("div",
|
|
9309
|
+
r.isLoading ? (v(), h("div", c4, [
|
|
9451
9310
|
k(de, { name: "Loading" })
|
|
9452
9311
|
])) : r.hasMore ? (v(), h("div", {
|
|
9453
9312
|
key: 2,
|
|
9454
9313
|
ref_key: "scrollEnd",
|
|
9455
9314
|
ref: n,
|
|
9456
9315
|
class: "ao-list-kanban__end"
|
|
9457
|
-
}, null, 512)) : (v(), h("div",
|
|
9458
|
-
r.noMoreLabel ? (v(), h("span",
|
|
9316
|
+
}, null, 512)) : (v(), h("div", d4, [
|
|
9317
|
+
r.noMoreLabel ? (v(), h("span", f4, F(r.noMoreLabel), 1)) : (v(), h("span", v4))
|
|
9459
9318
|
]))
|
|
9460
9319
|
]),
|
|
9461
9320
|
_: 1
|
|
9462
9321
|
}, 16, ["list"]),
|
|
9463
|
-
r.$slots.footer || r.footerLabel ? (v(), h("div",
|
|
9322
|
+
r.$slots.footer || r.footerLabel ? (v(), h("div", p4, [
|
|
9464
9323
|
J(r.$slots, "footer", {}, () => [
|
|
9465
9324
|
k(Xe, {
|
|
9466
9325
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -9472,7 +9331,7 @@ const c4 = {
|
|
|
9472
9331
|
]));
|
|
9473
9332
|
}
|
|
9474
9333
|
});
|
|
9475
|
-
const
|
|
9334
|
+
const m4 = { class: "ao-field ao-search-field" }, C4 = ["value", "placeholder", "onKeypress"], _4 = /* @__PURE__ */ x({
|
|
9476
9335
|
__name: "AoSearchField",
|
|
9477
9336
|
props: {
|
|
9478
9337
|
modelValue: {},
|
|
@@ -9484,10 +9343,10 @@ const _4 = { class: "ao-field ao-search-field" }, g4 = ["value", "placeholder",
|
|
|
9484
9343
|
const t = a, s = async (i) => {
|
|
9485
9344
|
const r = i.target.value;
|
|
9486
9345
|
e("update:modelValue", r, i);
|
|
9487
|
-
}, n =
|
|
9346
|
+
}, n = n4(s, t.delay), o = (i) => {
|
|
9488
9347
|
e("clear", i);
|
|
9489
9348
|
};
|
|
9490
|
-
return (i, l) => (v(), h("div",
|
|
9349
|
+
return (i, l) => (v(), h("div", m4, [
|
|
9491
9350
|
f("input", {
|
|
9492
9351
|
value: i.modelValue,
|
|
9493
9352
|
type: "text",
|
|
@@ -9496,7 +9355,7 @@ const _4 = { class: "ao-field ao-search-field" }, g4 = ["value", "placeholder",
|
|
|
9496
9355
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
9497
9356
|
(...r) => Z(n) && Z(n)(...r)),
|
|
9498
9357
|
onKeypress: ze(s, ["enter"])
|
|
9499
|
-
}, null, 40,
|
|
9358
|
+
}, null, 40, C4),
|
|
9500
9359
|
k(de, {
|
|
9501
9360
|
name: "SearchRounded",
|
|
9502
9361
|
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
@@ -9512,7 +9371,7 @@ const _4 = { class: "ao-field ao-search-field" }, g4 = ["value", "placeholder",
|
|
|
9512
9371
|
]));
|
|
9513
9372
|
}
|
|
9514
9373
|
});
|
|
9515
|
-
function
|
|
9374
|
+
function g4(a) {
|
|
9516
9375
|
const e = X(), t = w(
|
|
9517
9376
|
() => a.value.find(
|
|
9518
9377
|
(n) => n.id === e.value
|
|
@@ -9526,21 +9385,21 @@ function b4(a) {
|
|
|
9526
9385
|
}
|
|
9527
9386
|
};
|
|
9528
9387
|
}
|
|
9529
|
-
const
|
|
9530
|
-
function
|
|
9531
|
-
const e =
|
|
9532
|
-
return _n(
|
|
9388
|
+
const y4 = Symbol.for("FeedStore");
|
|
9389
|
+
function b4(a) {
|
|
9390
|
+
const e = g4(a);
|
|
9391
|
+
return _n(y4, e), e;
|
|
9533
9392
|
}
|
|
9534
|
-
const
|
|
9393
|
+
const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { class: "ao-feed__body" }, k4 = { class: "ao-feed__activity-details__header" }, A4 = {
|
|
9535
9394
|
key: 0,
|
|
9536
9395
|
class: "ao-field ao-feed__activity-details__project"
|
|
9537
|
-
},
|
|
9396
|
+
}, S4 = { class: "ao-field__label" }, T4 = {
|
|
9538
9397
|
key: 1,
|
|
9539
9398
|
class: "ao-field ao-feed__activity-details__project"
|
|
9540
|
-
},
|
|
9399
|
+
}, E4 = { class: "ao-field__label" }, I4 = {
|
|
9541
9400
|
key: 2,
|
|
9542
9401
|
class: "ao-field ao-feed__activity-details__status"
|
|
9543
|
-
},
|
|
9402
|
+
}, O4 = { class: "ao-field__label" }, L4 = { class: "ao-field__row" }, V4 = { class: "ao-field" }, D4 = { class: "ao-field__label" }, H4 = /* @__PURE__ */ x({
|
|
9544
9403
|
__name: "AoFeed",
|
|
9545
9404
|
props: {
|
|
9546
9405
|
activities: {},
|
|
@@ -9557,7 +9416,7 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9557
9416
|
},
|
|
9558
9417
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9559
9418
|
setup(a, { emit: e }) {
|
|
9560
|
-
const t = a, { t: s } =
|
|
9419
|
+
const t = a, { t: s } = nt(), n = dt(t, "activities"), { selectActivity: o, selectedActivity: i } = b4(n), l = (g) => {
|
|
9561
9420
|
o(g), e("selectActivity", g);
|
|
9562
9421
|
}, r = X({}), c = X(!1);
|
|
9563
9422
|
re(
|
|
@@ -9680,11 +9539,11 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9680
9539
|
};
|
|
9681
9540
|
return (g, P) => {
|
|
9682
9541
|
var fe;
|
|
9683
|
-
return v(), h("div",
|
|
9542
|
+
return v(), h("div", w4, [
|
|
9684
9543
|
k(r1, null, {
|
|
9685
9544
|
primary: U(() => [
|
|
9686
|
-
f("div",
|
|
9687
|
-
k(
|
|
9545
|
+
f("div", $4, [
|
|
9546
|
+
k(_4, {
|
|
9688
9547
|
"model-value": g.searchText,
|
|
9689
9548
|
placeholder: g.$t("feed.search.placeholder"),
|
|
9690
9549
|
class: "ao-feed__search",
|
|
@@ -9693,35 +9552,35 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9693
9552
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9694
9553
|
g.isProjectLocked ? T("", !0) : (v(), R(be, {
|
|
9695
9554
|
key: 0,
|
|
9696
|
-
"model-value": g.filters[Z(
|
|
9555
|
+
"model-value": g.filters[Z(ut).project],
|
|
9697
9556
|
mode: "tags",
|
|
9698
9557
|
options: C.value,
|
|
9699
9558
|
"close-on-select": !1,
|
|
9700
9559
|
searchable: !0,
|
|
9701
9560
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9702
9561
|
placeholder: g.$t("feed.filters.project.placeholder"),
|
|
9703
|
-
"onUpdate:modelValue": P[0] || (P[0] = (ae) => p(Z(
|
|
9562
|
+
"onUpdate:modelValue": P[0] || (P[0] = (ae) => p(Z(ut).project, ae))
|
|
9704
9563
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9705
9564
|
$.value ? (v(), R(be, {
|
|
9706
9565
|
key: 1,
|
|
9707
|
-
"model-value": g.filters[Z(
|
|
9566
|
+
"model-value": g.filters[Z(ut).type],
|
|
9708
9567
|
mode: "tags",
|
|
9709
9568
|
options: $.value,
|
|
9710
9569
|
"close-on-select": !1,
|
|
9711
9570
|
searchable: !0,
|
|
9712
9571
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9713
9572
|
placeholder: g.$t("feed.filters.activityType.placeholder"),
|
|
9714
|
-
"onUpdate:modelValue": P[1] || (P[1] = (ae) => p(Z(
|
|
9573
|
+
"onUpdate:modelValue": P[1] || (P[1] = (ae) => p(Z(ut).type, ae))
|
|
9715
9574
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
9716
9575
|
k(be, {
|
|
9717
|
-
"model-value": g.filters[Z(
|
|
9576
|
+
"model-value": g.filters[Z(ut).assignee],
|
|
9718
9577
|
mode: "tags",
|
|
9719
9578
|
options: M.value,
|
|
9720
9579
|
"close-on-select": !1,
|
|
9721
9580
|
searchable: !0,
|
|
9722
9581
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9723
9582
|
placeholder: g.$t("feed.filters.assignee.placeholder"),
|
|
9724
|
-
"onUpdate:modelValue": P[2] || (P[2] = (ae) => p(Z(
|
|
9583
|
+
"onUpdate:modelValue": P[2] || (P[2] = (ae) => p(Z(ut).assignee, ae))
|
|
9725
9584
|
}, {
|
|
9726
9585
|
tag: U(({ option: ae, handleTagRemove: Q }) => [
|
|
9727
9586
|
k(_t, {
|
|
@@ -9748,8 +9607,8 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9748
9607
|
]),
|
|
9749
9608
|
_: 1
|
|
9750
9609
|
}),
|
|
9751
|
-
f("div",
|
|
9752
|
-
(v(!0), h(ve, null, ye(g.statuses, (ae) => (v(), R(
|
|
9610
|
+
f("div", M4, [
|
|
9611
|
+
(v(!0), h(ve, null, ye(g.statuses, (ae) => (v(), R(h4, {
|
|
9753
9612
|
key: ae.id,
|
|
9754
9613
|
status: ae,
|
|
9755
9614
|
list: r.value[ae.id],
|
|
@@ -9789,9 +9648,9 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9789
9648
|
header: U(() => {
|
|
9790
9649
|
var ae, Q, z;
|
|
9791
9650
|
return [
|
|
9792
|
-
f("div",
|
|
9793
|
-
le.value && !g.isProjectLocked ? (v(), h("label",
|
|
9794
|
-
f("span",
|
|
9651
|
+
f("div", k4, [
|
|
9652
|
+
le.value && !g.isProjectLocked ? (v(), h("label", A4, [
|
|
9653
|
+
f("span", S4, F(g.$t("activity.project.label")), 1),
|
|
9795
9654
|
k(be, {
|
|
9796
9655
|
options: le.value,
|
|
9797
9656
|
value: (ae = Z(i).project) == null ? void 0 : ae.id,
|
|
@@ -9799,8 +9658,8 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9799
9658
|
onChange: ue
|
|
9800
9659
|
}, null, 8, ["options", "value"])
|
|
9801
9660
|
])) : T("", !0),
|
|
9802
|
-
ne.value ? (v(), h("label",
|
|
9803
|
-
f("span",
|
|
9661
|
+
ne.value ? (v(), h("label", T4, [
|
|
9662
|
+
f("span", E4, F(g.$t("activity.milestone.label")), 1),
|
|
9804
9663
|
k(be, {
|
|
9805
9664
|
options: ne.value,
|
|
9806
9665
|
value: (Q = Z(i).milestone) == null ? void 0 : Q.id,
|
|
@@ -9808,8 +9667,8 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9808
9667
|
onChange: ie
|
|
9809
9668
|
}, null, 8, ["options", "value"])
|
|
9810
9669
|
])) : T("", !0),
|
|
9811
|
-
E.value ? (v(), h("label",
|
|
9812
|
-
f("span",
|
|
9670
|
+
E.value ? (v(), h("label", I4, [
|
|
9671
|
+
f("span", O4, F(g.$t("activity.status.label")), 1),
|
|
9813
9672
|
k(be, {
|
|
9814
9673
|
options: E.value,
|
|
9815
9674
|
value: (z = Z(i).status) == null ? void 0 : z.id,
|
|
@@ -9822,10 +9681,10 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9822
9681
|
];
|
|
9823
9682
|
}),
|
|
9824
9683
|
default: U(() => [
|
|
9825
|
-
f("div",
|
|
9826
|
-
f("label",
|
|
9827
|
-
f("span",
|
|
9828
|
-
|
|
9684
|
+
f("div", L4, [
|
|
9685
|
+
f("label", V4, [
|
|
9686
|
+
f("span", D4, F(g.$t("activity.deadline.label")), 1),
|
|
9687
|
+
ft(f("input", {
|
|
9829
9688
|
"onUpdate:modelValue": P[4] || (P[4] = (ae) => V.value = ae),
|
|
9830
9689
|
class: "ao-field__input",
|
|
9831
9690
|
type: "date"
|
|
@@ -9847,23 +9706,171 @@ const M4 = { class: "ao-feed" }, k4 = { class: "ao-feed__filters" }, A4 = { clas
|
|
|
9847
9706
|
};
|
|
9848
9707
|
}
|
|
9849
9708
|
});
|
|
9709
|
+
const Tt = {
|
|
9710
|
+
TEMPLATES: "templates",
|
|
9711
|
+
TEMPLATE_DETAILS: "template_details",
|
|
9712
|
+
TEMPLATES_LIST: "templates_list"
|
|
9713
|
+
}, z4 = (a, e = {}) => [
|
|
9714
|
+
{
|
|
9715
|
+
path: a,
|
|
9716
|
+
name: Tt.TEMPLATES,
|
|
9717
|
+
...e,
|
|
9718
|
+
children: [
|
|
9719
|
+
{
|
|
9720
|
+
path: "",
|
|
9721
|
+
name: Tt.TEMPLATES_LIST,
|
|
9722
|
+
component: B4
|
|
9723
|
+
},
|
|
9724
|
+
{
|
|
9725
|
+
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
9726
|
+
name: Tt.TEMPLATE_DETAILS,
|
|
9727
|
+
component: R7,
|
|
9728
|
+
props: !0
|
|
9729
|
+
}
|
|
9730
|
+
]
|
|
9731
|
+
}
|
|
9732
|
+
], Je = {
|
|
9733
|
+
project: "AoProject",
|
|
9734
|
+
feed: "AoProjectFeed",
|
|
9735
|
+
milestone: "AoMilestone",
|
|
9736
|
+
activity: "AoActivity"
|
|
9737
|
+
}, Y4 = (a, e = {}) => [
|
|
9738
|
+
{
|
|
9739
|
+
path: a,
|
|
9740
|
+
...e,
|
|
9741
|
+
children: [
|
|
9742
|
+
{
|
|
9743
|
+
path: "",
|
|
9744
|
+
name: Je.project,
|
|
9745
|
+
component: k9,
|
|
9746
|
+
props: !0,
|
|
9747
|
+
children: [
|
|
9748
|
+
{
|
|
9749
|
+
path: ":phaseId/:milestoneId",
|
|
9750
|
+
name: Je.milestone,
|
|
9751
|
+
component: la,
|
|
9752
|
+
props: !0
|
|
9753
|
+
},
|
|
9754
|
+
{
|
|
9755
|
+
path: ":phaseId/:milestoneId/:activityId",
|
|
9756
|
+
name: Je.activity,
|
|
9757
|
+
props: { default: !0, modal: !0 },
|
|
9758
|
+
components: {
|
|
9759
|
+
default: la,
|
|
9760
|
+
modal: K9
|
|
9761
|
+
}
|
|
9762
|
+
}
|
|
9763
|
+
]
|
|
9764
|
+
},
|
|
9765
|
+
{
|
|
9766
|
+
path: "feed",
|
|
9767
|
+
name: Je.feed,
|
|
9768
|
+
component: H4,
|
|
9769
|
+
props: !0
|
|
9770
|
+
}
|
|
9771
|
+
]
|
|
9772
|
+
}
|
|
9773
|
+
], P4 = { class: "ao-templates" }, B4 = /* @__PURE__ */ x({
|
|
9774
|
+
__name: "AoTemplatesList",
|
|
9775
|
+
props: {
|
|
9776
|
+
templates: {}
|
|
9777
|
+
},
|
|
9778
|
+
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
9779
|
+
setup(a, { emit: e }) {
|
|
9780
|
+
const t = a, { t: s } = nt();
|
|
9781
|
+
re(() => t.templates, (l, r) => {
|
|
9782
|
+
Re(l, r);
|
|
9783
|
+
});
|
|
9784
|
+
const n = () => {
|
|
9785
|
+
var d, p;
|
|
9786
|
+
const l = (d = t.templates) == null ? void 0 : d.at(-1), r = l ? Ae.LexoRank.parse(l.rank).genNext() : Ae.LexoRank.middle(), c = ((p = t.templates) == null ? void 0 : p.length) ?? 0, u = {
|
|
9787
|
+
name: s("template.defaultName.template", { idx: c + 1 }),
|
|
9788
|
+
rank: r.format()
|
|
9789
|
+
};
|
|
9790
|
+
e("addTemplate", u);
|
|
9791
|
+
}, o = (l, r) => {
|
|
9792
|
+
e("updateItem", {
|
|
9793
|
+
itemType: he.TEMPLATES,
|
|
9794
|
+
id: l,
|
|
9795
|
+
templateId: l,
|
|
9796
|
+
data: {
|
|
9797
|
+
name: r
|
|
9798
|
+
}
|
|
9799
|
+
});
|
|
9800
|
+
}, i = (l) => {
|
|
9801
|
+
if (l.moved) {
|
|
9802
|
+
const r = Nt(l, t.templates ?? []);
|
|
9803
|
+
e("updateItem", {
|
|
9804
|
+
itemType: he.TEMPLATES,
|
|
9805
|
+
id: l.moved.element.id,
|
|
9806
|
+
templateId: l.moved.element.id,
|
|
9807
|
+
data: {
|
|
9808
|
+
rank: r
|
|
9809
|
+
}
|
|
9810
|
+
});
|
|
9811
|
+
}
|
|
9812
|
+
};
|
|
9813
|
+
return (l, r) => (v(), h("div", P4, [
|
|
9814
|
+
k(r1, null, {
|
|
9815
|
+
secondary: U(() => [
|
|
9816
|
+
k(ce, {
|
|
9817
|
+
label: l.$t("templates.new"),
|
|
9818
|
+
color: "primary",
|
|
9819
|
+
"icon-name": "Add",
|
|
9820
|
+
"icon-position": "start",
|
|
9821
|
+
onClick: n
|
|
9822
|
+
}, null, 8, ["label"])
|
|
9823
|
+
]),
|
|
9824
|
+
_: 1
|
|
9825
|
+
}),
|
|
9826
|
+
k(Z(Ge), {
|
|
9827
|
+
"model-value": l.templates,
|
|
9828
|
+
class: "ao-templates__list",
|
|
9829
|
+
"item-key": "id",
|
|
9830
|
+
handle: ".ao-card__drag",
|
|
9831
|
+
onChange: i
|
|
9832
|
+
}, {
|
|
9833
|
+
item: U(({ element: c }) => {
|
|
9834
|
+
var u;
|
|
9835
|
+
return [
|
|
9836
|
+
k(S0, {
|
|
9837
|
+
id: c.id,
|
|
9838
|
+
title: c.name,
|
|
9839
|
+
phases: c.phases,
|
|
9840
|
+
milestones: (u = c.phases) != null && u.length ? Z(t0)(c.phases) : 0,
|
|
9841
|
+
activities: c.phases ? Z(a0)(c.phases) : 0,
|
|
9842
|
+
"updated-at": c.updatedAt,
|
|
9843
|
+
"updated-by": c.updatedBy,
|
|
9844
|
+
onUpdateTitle: (d) => o(c.id, d),
|
|
9845
|
+
onClick: (d) => l.$router.push({
|
|
9846
|
+
name: Z(Tt).TEMPLATE_DETAILS,
|
|
9847
|
+
params: { templateId: c.id }
|
|
9848
|
+
})
|
|
9849
|
+
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
9850
|
+
];
|
|
9851
|
+
}),
|
|
9852
|
+
_: 1
|
|
9853
|
+
}, 8, ["model-value"])
|
|
9854
|
+
]));
|
|
9855
|
+
}
|
|
9856
|
+
});
|
|
9850
9857
|
export {
|
|
9851
|
-
|
|
9858
|
+
H4 as AoFeed,
|
|
9852
9859
|
R7 as AoTemplateDetails,
|
|
9853
|
-
|
|
9854
|
-
|
|
9860
|
+
Z4 as AoTemplates,
|
|
9861
|
+
B4 as AoTemplatesList,
|
|
9855
9862
|
mc as TemplateItemTypeEnum,
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9863
|
+
q4 as activityFeedStatus,
|
|
9864
|
+
F4 as durationTypes,
|
|
9865
|
+
ut as feedFilterTypes,
|
|
9866
|
+
Y4 as getProjectOverviewRoutes,
|
|
9867
|
+
z4 as getTemplateRoutes,
|
|
9868
|
+
W4 as listUpdateTypes,
|
|
9862
9869
|
k1 as milestoneStatus,
|
|
9863
|
-
|
|
9870
|
+
Je as projectOverviewRoutes,
|
|
9864
9871
|
vc as ruleComparators,
|
|
9865
9872
|
hc as ruleDurationUnits,
|
|
9866
9873
|
pc as ruleTriggerTypes,
|
|
9867
9874
|
he as templateItemType,
|
|
9868
|
-
|
|
9875
|
+
Tt as templateRouteNames
|
|
9869
9876
|
};
|