@26lights/orcha 0.14.8 → 0.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +231 -225
- package/dist/orcha.umd.js +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as
|
|
1
|
+
import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as w, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as te, toDisplayString as z, createCommentVNode as A, ref as J, watch as re, nextTick as Ee, withKeys as Ye, toHandlers as dn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as be, onMounted as Dt, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as ct, normalizeProps as fn, guardReactiveProps as vn, onUpdated as pn, withDirectives as ft, vModelText as Et, vModelCheckbox as hn, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
|
|
2
2
|
import { RouterView as bn } from "vue-router";
|
|
3
3
|
import Xe from "vuedraggable";
|
|
4
4
|
const Y4 = /* @__PURE__ */ x({
|
|
@@ -1141,7 +1141,7 @@ const Ju = /* @__PURE__ */ B(Ku, [["render", Qu]]), ed = /* @__PURE__ */ Object.
|
|
|
1141
1141
|
size: { default: a1.MD }
|
|
1142
1142
|
},
|
|
1143
1143
|
setup(a) {
|
|
1144
|
-
const e = a, t =
|
|
1144
|
+
const e = a, t = w(() => ed[e.name]);
|
|
1145
1145
|
return (s, n) => (c(), N(tt(t.value), {
|
|
1146
1146
|
class: G(["ao-icon", `ao-icon--${s.size}`])
|
|
1147
1147
|
}, null, 8, ["class"]));
|
|
@@ -1165,7 +1165,7 @@ const nd = ["type"], sd = {
|
|
|
1165
1165
|
corners: { default: () => da.ROUNDED }
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(a) {
|
|
1168
|
-
const e = a, t =
|
|
1168
|
+
const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
|
|
1169
1169
|
return (n, o) => (c(), h("button", {
|
|
1170
1170
|
type: n.type,
|
|
1171
1171
|
class: G([
|
|
@@ -1192,7 +1192,7 @@ const nd = ["type"], sd = {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
1194
|
function ca(a) {
|
|
1195
|
-
const e = J(!1), t = J(""), s =
|
|
1195
|
+
const e = J(!1), t = J(""), s = w(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
|
|
1196
1196
|
e.value = !e.value;
|
|
1197
1197
|
}, o = (r) => {
|
|
1198
1198
|
e.value = r;
|
|
@@ -1232,7 +1232,7 @@ const me = /* @__PURE__ */ x({
|
|
|
1232
1232
|
},
|
|
1233
1233
|
emits: ["update:title", "toggle-is-editing"],
|
|
1234
1234
|
setup(a, { emit: e }) {
|
|
1235
|
-
const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r =
|
|
1235
|
+
const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r = w(() => n.value ? "input" : t.tag || `h${t.level}`), d = w(() => t.isEditable ? n.value ? {
|
|
1236
1236
|
change: u,
|
|
1237
1237
|
click: (M) => M.stopPropagation(),
|
|
1238
1238
|
blur: p
|
|
@@ -1381,7 +1381,7 @@ const E1 = /* @__PURE__ */ x({
|
|
|
1381
1381
|
},
|
|
1382
1382
|
emits: ["click", "close"],
|
|
1383
1383
|
setup(a) {
|
|
1384
|
-
const e = a, t =
|
|
1384
|
+
const e = a, t = w(() => e.clickable ? "button" : "span"), s = w(
|
|
1385
1385
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1386
1386
|
);
|
|
1387
1387
|
return (n, o) => (c(), h("div", {
|
|
@@ -3806,7 +3806,7 @@ const V3 = ["type"], D3 = {
|
|
|
3806
3806
|
corners: { default: () => da.ROUNDED }
|
|
3807
3807
|
},
|
|
3808
3808
|
setup(a) {
|
|
3809
|
-
const e = a, t =
|
|
3809
|
+
const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
|
|
3810
3810
|
return (n, o) => (c(), h("button", {
|
|
3811
3811
|
type: n.type,
|
|
3812
3812
|
class: G([
|
|
@@ -3888,10 +3888,10 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3888
3888
|
milestones: {}
|
|
3889
3889
|
},
|
|
3890
3890
|
setup(a) {
|
|
3891
|
-
const e = a, t =
|
|
3891
|
+
const e = a, t = w(() => {
|
|
3892
3892
|
var n;
|
|
3893
3893
|
return (n = e.milestones) == null ? void 0 : n.length;
|
|
3894
|
-
}), s =
|
|
3894
|
+
}), s = w(() => e.milestones ? Ma(e.milestones) : 0);
|
|
3895
3895
|
return (n, o) => (c(), N(O1, Ve({
|
|
3896
3896
|
id: n.id,
|
|
3897
3897
|
title: n.name,
|
|
@@ -3910,7 +3910,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3910
3910
|
activities: {}
|
|
3911
3911
|
},
|
|
3912
3912
|
setup(a) {
|
|
3913
|
-
const e = a, t =
|
|
3913
|
+
const e = a, t = w(() => {
|
|
3914
3914
|
var s;
|
|
3915
3915
|
return ((s = e.activities) == null ? void 0 : s.length) || 0;
|
|
3916
3916
|
});
|
|
@@ -3997,7 +3997,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3997
3997
|
tasks: {}
|
|
3998
3998
|
},
|
|
3999
3999
|
setup(a) {
|
|
4000
|
-
const e = a, t =
|
|
4000
|
+
const e = a, t = w(() => {
|
|
4001
4001
|
var s;
|
|
4002
4002
|
return ((s = e.tasks) == null ? void 0 : s.length) || 0;
|
|
4003
4003
|
});
|
|
@@ -4991,7 +4991,7 @@ function I0(a, e, t) {
|
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
4993
|
function O0(a, e) {
|
|
4994
|
-
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r =
|
|
4994
|
+
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = w(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = w(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4995
4995
|
return {
|
|
4996
4996
|
iv: i,
|
|
4997
4997
|
internalValue: i,
|
|
@@ -5090,16 +5090,16 @@ function P0(a, e, t) {
|
|
|
5090
5090
|
groupHideEmpty: O,
|
|
5091
5091
|
groupSelect: L,
|
|
5092
5092
|
onCreate: W,
|
|
5093
|
-
disabledProp:
|
|
5093
|
+
disabledProp: y,
|
|
5094
5094
|
searchStart: Y,
|
|
5095
5095
|
searchFilter: he
|
|
5096
|
-
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 =
|
|
5096
|
+
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 = w(() => r.value || d.value || !1), Za = w(() => f.value !== void 0 ? f.value : p.value !== void 0 ? p.value : !0), qe = w(() => {
|
|
5097
5097
|
if (ue.value) {
|
|
5098
5098
|
let m = Rt.value || /* istanbul ignore next */
|
|
5099
5099
|
[], H = [];
|
|
5100
5100
|
return m.forEach((se) => {
|
|
5101
5101
|
g1(se[ie.value]).forEach((ve) => {
|
|
5102
|
-
H.push(Object.assign({}, ve, se[
|
|
5102
|
+
H.push(Object.assign({}, ve, se[y.value] ? { [y.value]: !0 } : {}));
|
|
5103
5103
|
});
|
|
5104
5104
|
}), H;
|
|
5105
5105
|
} else {
|
|
@@ -5107,13 +5107,13 @@ function P0(a, e, t) {
|
|
|
5107
5107
|
[]);
|
|
5108
5108
|
return gt.value.length && (m = m.concat(gt.value)), m;
|
|
5109
5109
|
}
|
|
5110
|
-
}), Z1 =
|
|
5110
|
+
}), Z1 = w(() => {
|
|
5111
5111
|
let m = qe.value;
|
|
5112
5112
|
return ne.value && (m = m.reverse()), ot.value.length && (m = ot.value.concat(m)), _1(m);
|
|
5113
|
-
}), bt =
|
|
5113
|
+
}), bt = w(() => {
|
|
5114
5114
|
let m = Z1.value;
|
|
5115
5115
|
return v1.value > 0 && (m = m.slice(0, v1.value)), m;
|
|
5116
|
-
}), Rt =
|
|
5116
|
+
}), Rt = w(() => {
|
|
5117
5117
|
if (!ue.value)
|
|
5118
5118
|
return [];
|
|
5119
5119
|
let m = [], H = Fe.value || /* istanbul ignore next */
|
|
@@ -5123,14 +5123,14 @@ function P0(a, e, t) {
|
|
|
5123
5123
|
[ie.value]: [...gt.value],
|
|
5124
5124
|
__CREATE__: !0
|
|
5125
5125
|
}), m.concat(H);
|
|
5126
|
-
}), Fa =
|
|
5126
|
+
}), Fa = w(() => {
|
|
5127
5127
|
let m = [...Rt.value].map((H) => ({ ...H }));
|
|
5128
5128
|
return ot.value.length && (m[0] && m[0].__CREATE__ ? m[0][ie.value] = [...ot.value, ...m[0][ie.value]] : m = [{
|
|
5129
5129
|
[ae.value]: " ",
|
|
5130
5130
|
[ie.value]: [...ot.value],
|
|
5131
5131
|
__CREATE__: !0
|
|
5132
5132
|
}].concat(m)), m;
|
|
5133
|
-
}), F1 =
|
|
5133
|
+
}), F1 = w(() => {
|
|
5134
5134
|
if (!ue.value)
|
|
5135
5135
|
return [];
|
|
5136
5136
|
let m = Fa.value;
|
|
@@ -5141,11 +5141,11 @@ function P0(a, e, t) {
|
|
|
5141
5141
|
...H,
|
|
5142
5142
|
index: se,
|
|
5143
5143
|
group: !0,
|
|
5144
|
-
[ie.value]: _1(ve, !1).map((yt) => Object.assign({}, yt, H[
|
|
5145
|
-
__VISIBLE__: _1(ve).map((yt) => Object.assign({}, yt, H[
|
|
5144
|
+
[ie.value]: _1(ve, !1).map((yt) => Object.assign({}, yt, H[y.value] ? { [y.value]: !0 } : {})),
|
|
5145
|
+
__VISIBLE__: _1(ve).map((yt) => Object.assign({}, yt, H[y.value] ? { [y.value]: !0 } : {}))
|
|
5146
5146
|
};
|
|
5147
5147
|
}));
|
|
5148
|
-
}), p1 =
|
|
5148
|
+
}), p1 = w(() => {
|
|
5149
5149
|
switch (n.value) {
|
|
5150
5150
|
case "single":
|
|
5151
5151
|
return !Le(F.value[D.value]);
|
|
@@ -5153,12 +5153,12 @@ function P0(a, e, t) {
|
|
|
5153
5153
|
case "tags":
|
|
5154
5154
|
return !Le(F.value) && F.value.length > 0;
|
|
5155
5155
|
}
|
|
5156
|
-
}), qa =
|
|
5156
|
+
}), qa = w(() => C !== void 0 && C.value !== void 0 ? C.value(F.value, Z) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), Wa = w(() => !qe.value.length && !Ie.value && !ot.value.length), za = w(() => qe.value.length > 0 && bt.value.length == 0 && (U.value && ue.value || !ue.value)), ot = w(() => j1.value === !1 || !U.value ? [] : tn(U.value) !== -1 ? [] : [{
|
|
5157
5157
|
[D.value]: U.value,
|
|
5158
5158
|
[Oe.value]: U.value,
|
|
5159
5159
|
[u.value]: U.value,
|
|
5160
5160
|
__CREATE__: !0
|
|
5161
|
-
}]), Oe =
|
|
5161
|
+
}]), Oe = w(() => o.value || u.value), Ya = w(() => {
|
|
5162
5162
|
switch (n.value) {
|
|
5163
5163
|
case "single":
|
|
5164
5164
|
return null;
|
|
@@ -5166,7 +5166,7 @@ function P0(a, e, t) {
|
|
|
5166
5166
|
case "tags":
|
|
5167
5167
|
return [];
|
|
5168
5168
|
}
|
|
5169
|
-
}), Ka =
|
|
5169
|
+
}), Ka = w(() => M.value || Ie.value), lt = (m) => {
|
|
5170
5170
|
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5171
5171
|
case "single":
|
|
5172
5172
|
Pe(m);
|
|
@@ -5208,7 +5208,7 @@ function P0(a, e, t) {
|
|
|
5208
5208
|
case "multiple":
|
|
5209
5209
|
return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(m[D.value]) !== -1;
|
|
5210
5210
|
}
|
|
5211
|
-
}, h1 = (m) => m[
|
|
5211
|
+
}, h1 = (m) => m[y.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : F.value.length >= ee.value, xa = (m) => {
|
|
5212
5212
|
if (!h1(m)) {
|
|
5213
5213
|
if (W && W.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = W.value(m, Z), m instanceof Promise)) {
|
|
5214
5214
|
Ie.value = !0, m.then((H) => {
|
|
@@ -5257,7 +5257,7 @@ 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) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[
|
|
5260
|
+
m[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[y.value]).filter((H, se) => F.value.length + 1 + se <= ee.value || ee.value === -1)
|
|
5261
5261
|
);
|
|
5262
5262
|
break;
|
|
5263
5263
|
}
|
|
@@ -5267,7 +5267,7 @@ function P0(a, e, t) {
|
|
|
5267
5267
|
Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value], Z), e.emit("option", m[D.value], Z), e.emit("create", m[D.value], Z), Za.value && nn(m), Ce());
|
|
5268
5268
|
}, Qa = () => {
|
|
5269
5269
|
n.value !== "single" && lt(bt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5270
|
-
}, Ja = (m) => m.find((H) => !Be(H) && !H[
|
|
5270
|
+
}, Ja = (m) => m.find((H) => !Be(H) && !H[y.value]) === void 0, en = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(m))], tn = (m, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
|
|
5271
5271
|
parseInt(m) == m ? parseInt(m) : m
|
|
5272
5272
|
), an = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), nn = (m) => {
|
|
5273
5273
|
gt.value.push(m);
|
|
@@ -5329,7 +5329,7 @@ function P0(a, e, t) {
|
|
|
5329
5329
|
f1.value = re(U, (m) => {
|
|
5330
5330
|
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
|
|
5331
5331
|
m == U.value && s.value(U.value, Z).then((H) => {
|
|
5332
|
-
(m == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[
|
|
5332
|
+
(m == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[y.value] !== !0)[0] || null, Ie.value = !1);
|
|
5333
5333
|
}).catch(
|
|
5334
5334
|
/* istanbul ignore next */
|
|
5335
5335
|
(H) => {
|
|
@@ -5404,25 +5404,25 @@ function B0(a, e, t) {
|
|
|
5404
5404
|
groupSelect: d,
|
|
5405
5405
|
disabledProp: u,
|
|
5406
5406
|
groupOptions: f
|
|
5407
|
-
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D =
|
|
5407
|
+
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = w(() => p.value.filter((E) => !E[u.value])), X = w(() => C.value.filter((E) => !E[u.value])), ae = w(() => r.value !== "single" && d.value), I = w(() => _.value && _.value.group), ee = w(() => Z(_.value)), b = w(() => {
|
|
5408
5408
|
const E = I.value ? _.value : (
|
|
5409
5409
|
/* istanbul ignore next */
|
|
5410
5410
|
Z(_.value)
|
|
5411
5411
|
), U = X.value.map((Pe) => Pe[i.value]).indexOf(E[i.value]);
|
|
5412
5412
|
let Ce = X.value[U - 1];
|
|
5413
5413
|
return Ce === void 0 && (Ce = P.value), Ce;
|
|
5414
|
-
}), k =
|
|
5414
|
+
}), k = w(() => {
|
|
5415
5415
|
let E = X.value.map((U) => U.label).indexOf(I.value ? _.value[i.value] : Z(_.value)[i.value]) + 1;
|
|
5416
5416
|
return X.value.length <= E && (E = 0), X.value[E];
|
|
5417
|
-
}), P =
|
|
5417
|
+
}), P = w(() => [...X.value].slice(-1)[0]), ue = w(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = w(() => {
|
|
5418
5418
|
const E = ee.value.__VISIBLE__.filter((U) => !U[u.value]);
|
|
5419
5419
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5420
|
-
}), le =
|
|
5420
|
+
}), le = w(() => {
|
|
5421
5421
|
const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5422
5422
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5423
|
-
}), ie =
|
|
5423
|
+
}), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
|
|
5424
5424
|
g(D.value[0] || null);
|
|
5425
|
-
},
|
|
5425
|
+
}, y = () => {
|
|
5426
5426
|
!_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : $(_.value));
|
|
5427
5427
|
}, Y = () => {
|
|
5428
5428
|
if (_.value === null)
|
|
@@ -5477,7 +5477,7 @@ function B0(a, e, t) {
|
|
|
5477
5477
|
canPointGroups: ae,
|
|
5478
5478
|
isPointed: L,
|
|
5479
5479
|
setPointerFirst: W,
|
|
5480
|
-
selectPointer:
|
|
5480
|
+
selectPointer: y,
|
|
5481
5481
|
forwardPointer: Y,
|
|
5482
5482
|
backwardPointer: he
|
|
5483
5483
|
};
|
|
@@ -5495,7 +5495,7 @@ function N0(a, e, t) {
|
|
|
5495
5495
|
};
|
|
5496
5496
|
}
|
|
5497
5497
|
function R0(a, e, t) {
|
|
5498
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S =
|
|
5498
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S = w(() => s.value || n.value ? -1 : 0), _ = () => {
|
|
5499
5499
|
s.value && i.value.blur(), p.value.blur();
|
|
5500
5500
|
}, g = () => {
|
|
5501
5501
|
s.value && !n.value && i.value.focus();
|
|
@@ -5548,7 +5548,7 @@ function U0(a, e, t) {
|
|
|
5548
5548
|
createTag: f,
|
|
5549
5549
|
createOption: p,
|
|
5550
5550
|
reverse: C
|
|
5551
|
-
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, k = t.fo, P =
|
|
5551
|
+
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, k = t.fo, P = w(() => f.value || p.value || !1), ue = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5552
5552
|
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(k.value[k.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5553
5553
|
}, le = (L) => {
|
|
5554
5554
|
let W = L.length - 1;
|
|
@@ -5559,8 +5559,8 @@ function U0(a, e, t) {
|
|
|
5559
5559
|
return {
|
|
5560
5560
|
handleKeydown: (L) => {
|
|
5561
5561
|
e.emit("keydown", L, $);
|
|
5562
|
-
let W,
|
|
5563
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value),
|
|
5562
|
+
let W, y;
|
|
5563
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), y = W.findIndex((Y) => Y === document.activeElement)), L.key) {
|
|
5564
5564
|
case "Backspace":
|
|
5565
5565
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5566
5566
|
return;
|
|
@@ -5569,8 +5569,8 @@ function U0(a, e, t) {
|
|
|
5569
5569
|
case "Enter":
|
|
5570
5570
|
if (L.preventDefault(), L.keyCode === 229)
|
|
5571
5571
|
return;
|
|
5572
|
-
if (
|
|
5573
|
-
S([...M.value].filter((Y, he) => he !==
|
|
5572
|
+
if (y !== -1 && y !== void 0) {
|
|
5573
|
+
S([...M.value].filter((Y, he) => he !== y)), y === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
|
|
5574
5574
|
return;
|
|
5575
5575
|
}
|
|
5576
5576
|
if (ue.value.indexOf("enter") === -1 && P.value)
|
|
@@ -5611,12 +5611,12 @@ function U0(a, e, t) {
|
|
|
5611
5611
|
case "ArrowLeft":
|
|
5612
5612
|
if (i.value && ae.value && ae.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5613
5613
|
return;
|
|
5614
|
-
L.preventDefault(),
|
|
5614
|
+
L.preventDefault(), y === -1 ? W[W.length - 1].focus() : y > 0 && W[y - 1].focus();
|
|
5615
5615
|
break;
|
|
5616
5616
|
case "ArrowRight":
|
|
5617
|
-
if (
|
|
5617
|
+
if (y === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5618
5618
|
return;
|
|
5619
|
-
L.preventDefault(), W.length >
|
|
5619
|
+
L.preventDefault(), W.length > y + 1 ? W[y + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
|
|
5620
5620
|
break;
|
|
5621
5621
|
}
|
|
5622
5622
|
},
|
|
@@ -5632,7 +5632,7 @@ function j0(a, e, t) {
|
|
|
5632
5632
|
disabled: n,
|
|
5633
5633
|
openDirection: o,
|
|
5634
5634
|
showOptions: i
|
|
5635
|
-
} = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M =
|
|
5635
|
+
} = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M = w(() => ({
|
|
5636
5636
|
container: "multiselect",
|
|
5637
5637
|
containerDisabled: "is-disabled",
|
|
5638
5638
|
containerOpen: "is-open",
|
|
@@ -5685,9 +5685,9 @@ function j0(a, e, t) {
|
|
|
5685
5685
|
assist: "multiselect-assistive-text",
|
|
5686
5686
|
spacer: "multiselect-spacer",
|
|
5687
5687
|
...s.value
|
|
5688
|
-
})), S =
|
|
5688
|
+
})), S = w(() => !!(l.value && i.value && (!C.value || C.value && $.value.length)));
|
|
5689
5689
|
return {
|
|
5690
|
-
classList:
|
|
5690
|
+
classList: w(() => {
|
|
5691
5691
|
const g = M.value;
|
|
5692
5692
|
return {
|
|
5693
5693
|
container: [g.container].concat(n.value ? g.containerDisabled : []).concat(S.value && o.value === "top" ? g.containerOpenTop : []).concat(S.value && o.value !== "top" ? g.containerOpen : []).concat(f.value ? g.containerActive : []),
|
|
@@ -5737,7 +5737,7 @@ function Z0(a, e, t) {
|
|
|
5737
5737
|
const {
|
|
5738
5738
|
limit: s,
|
|
5739
5739
|
infinite: n
|
|
5740
|
-
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p =
|
|
5740
|
+
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = w(() => i.value < r.value.length), C = (M) => {
|
|
5741
5741
|
const { isIntersecting: S, target: _ } = M[0];
|
|
5742
5742
|
if (S) {
|
|
5743
5743
|
const g = _.offsetParent, V = g.scrollTop;
|
|
@@ -5771,20 +5771,20 @@ function F0(a, e, t) {
|
|
|
5771
5771
|
groupLabel: r,
|
|
5772
5772
|
aria: d,
|
|
5773
5773
|
searchable: u
|
|
5774
|
-
} = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = J(null), S =
|
|
5774
|
+
} = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = J(null), S = w(() => {
|
|
5775
5775
|
let k = [];
|
|
5776
5776
|
return n && n.value && k.push(n.value), k.push("assist"), k.join("-");
|
|
5777
|
-
}), _ =
|
|
5777
|
+
}), _ = w(() => {
|
|
5778
5778
|
let k = [];
|
|
5779
5779
|
return n && n.value && k.push(n.value), k.push("multiselect-options"), k.join("-");
|
|
5780
|
-
}), g =
|
|
5780
|
+
}), g = w(() => {
|
|
5781
5781
|
let k = [];
|
|
5782
5782
|
if (n && n.value && k.push(n.value), f.value)
|
|
5783
5783
|
return k.push(f.value.group ? "multiselect-group" : "multiselect-option"), k.push(f.value.group ? f.value.index : f.value[o.value]), k.join("-");
|
|
5784
|
-
}), V =
|
|
5784
|
+
}), V = w(() => s.value), R = w(() => l.value !== "single"), K = w(() => {
|
|
5785
5785
|
let k = "";
|
|
5786
5786
|
return l.value === "single" && C.value && (k += p.value[i.value]), l.value === "multiple" && C.value && (k += $.value), l.value === "tags" && C.value && (k += p.value.map((P) => P[i.value]).join(", ")), k;
|
|
5787
|
-
}), D =
|
|
5787
|
+
}), D = w(() => {
|
|
5788
5788
|
let k = { ...d.value };
|
|
5789
5789
|
return u.value && (k["aria-labelledby"] = k["aria-labelledby"] ? `${S.value} ${k["aria-labelledby"]}` : S.value, K.value && k["aria-label"] && (k["aria-label"] = `${K.value}, ${k["aria-label"]}`)), k;
|
|
5790
5790
|
}), X = (k) => {
|
|
@@ -6749,7 +6749,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6749
6749
|
re(() => t.tasks, (f, p) => {
|
|
6750
6750
|
Ue(f, p);
|
|
6751
6751
|
});
|
|
6752
|
-
const n =
|
|
6752
|
+
const n = w(
|
|
6753
6753
|
() => {
|
|
6754
6754
|
var f;
|
|
6755
6755
|
return ((f = t.users) == null ? void 0 : f.map((p) => ({
|
|
@@ -6984,10 +6984,10 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
6984
6984
|
},
|
|
6985
6985
|
emits: ["edit", "remove"],
|
|
6986
6986
|
setup(a, { emit: e }) {
|
|
6987
|
-
const t = a, s =
|
|
6987
|
+
const t = a, s = w(() => {
|
|
6988
6988
|
const S = t.user;
|
|
6989
6989
|
return S ? `${S == null ? void 0 : S.firstName} ${S == null ? void 0 : S.lastName}` : null;
|
|
6990
|
-
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d =
|
|
6990
|
+
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d = w(() => A1(t.createdAt)), u = w(() => A1(t.editedAt)), f = w(() => o.value ? "textarea" : "p"), p = r(), C = l((S) => {
|
|
6991
6991
|
e("edit", S);
|
|
6992
6992
|
}), $ = () => {
|
|
6993
6993
|
e("remove");
|
|
@@ -7084,7 +7084,7 @@ const D5 = {
|
|
|
7084
7084
|
Ee(() => {
|
|
7085
7085
|
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7086
7086
|
});
|
|
7087
|
-
const o = ct(t.newComment), i =
|
|
7087
|
+
const o = ct(t.newComment), i = w({
|
|
7088
7088
|
get() {
|
|
7089
7089
|
return o.value;
|
|
7090
7090
|
},
|
|
@@ -7192,28 +7192,28 @@ const j5 = {
|
|
|
7192
7192
|
id: t.activity.id,
|
|
7193
7193
|
name: b
|
|
7194
7194
|
});
|
|
7195
|
-
}, n =
|
|
7195
|
+
}, n = w({
|
|
7196
7196
|
get() {
|
|
7197
7197
|
return t.activity.description ?? "";
|
|
7198
7198
|
},
|
|
7199
7199
|
set(b) {
|
|
7200
7200
|
e("update:activity", { id: t.activity.id, description: b });
|
|
7201
7201
|
}
|
|
7202
|
-
}), o =
|
|
7202
|
+
}), o = w({
|
|
7203
7203
|
get() {
|
|
7204
7204
|
return t.activity.estimation ?? 0;
|
|
7205
7205
|
},
|
|
7206
7206
|
set(b) {
|
|
7207
7207
|
e("update:activity", { id: t.activity.id, estimation: b });
|
|
7208
7208
|
}
|
|
7209
|
-
}), i =
|
|
7209
|
+
}), i = w({
|
|
7210
7210
|
get() {
|
|
7211
7211
|
return t.activity.important ?? !1;
|
|
7212
7212
|
},
|
|
7213
7213
|
set(b) {
|
|
7214
7214
|
e("update:activity", { id: t.activity.id, important: b });
|
|
7215
7215
|
}
|
|
7216
|
-
}), l =
|
|
7216
|
+
}), l = w({
|
|
7217
7217
|
get() {
|
|
7218
7218
|
var b;
|
|
7219
7219
|
return (b = t.activity.type) == null ? void 0 : b.id;
|
|
@@ -7221,10 +7221,10 @@ const j5 = {
|
|
|
7221
7221
|
set(b) {
|
|
7222
7222
|
e("update:activity", { id: t.activity.id, typeId: b });
|
|
7223
7223
|
}
|
|
7224
|
-
}), r =
|
|
7224
|
+
}), r = w(() => t.templateActivities.filter((b) => b.id !== t.activity.id).map((b) => ({
|
|
7225
7225
|
label: b.name,
|
|
7226
7226
|
value: b.id
|
|
7227
|
-
}))), d =
|
|
7227
|
+
}))), d = w({
|
|
7228
7228
|
get() {
|
|
7229
7229
|
var b;
|
|
7230
7230
|
return (b = t.activity.dependingOn) == null ? void 0 : b.map((k) => k.id);
|
|
@@ -7235,13 +7235,13 @@ const j5 = {
|
|
|
7235
7235
|
dependingOn: b
|
|
7236
7236
|
});
|
|
7237
7237
|
}
|
|
7238
|
-
}), u =
|
|
7238
|
+
}), u = w(() => r.value.map((b) => {
|
|
7239
7239
|
var k;
|
|
7240
7240
|
return {
|
|
7241
7241
|
...b,
|
|
7242
7242
|
disabled: (k = t.activity.blocking) == null ? void 0 : k.some((P) => P.id === b.value)
|
|
7243
7243
|
};
|
|
7244
|
-
})), f =
|
|
7244
|
+
})), f = w({
|
|
7245
7245
|
get() {
|
|
7246
7246
|
var b;
|
|
7247
7247
|
return (b = t.activity.blocking) == null ? void 0 : b.map((k) => k.id);
|
|
@@ -7252,16 +7252,16 @@ const j5 = {
|
|
|
7252
7252
|
blocking: b
|
|
7253
7253
|
});
|
|
7254
7254
|
}
|
|
7255
|
-
}), p =
|
|
7255
|
+
}), p = w(() => r.value.map((b) => {
|
|
7256
7256
|
var k;
|
|
7257
7257
|
return {
|
|
7258
7258
|
...b,
|
|
7259
7259
|
disabled: (k = t.activity.dependingOn) == null ? void 0 : k.some((P) => P.id === b.value)
|
|
7260
7260
|
};
|
|
7261
|
-
})), C =
|
|
7261
|
+
})), C = w(() => (t.templateMilestones || []).filter((k) => k.id !== t.milestoneId).map((k) => ({
|
|
7262
7262
|
label: k.name,
|
|
7263
7263
|
value: k.id
|
|
7264
|
-
}))), $ =
|
|
7264
|
+
}))), $ = w({
|
|
7265
7265
|
get() {
|
|
7266
7266
|
return t.activity.dependingMilestones;
|
|
7267
7267
|
},
|
|
@@ -7277,14 +7277,14 @@ const j5 = {
|
|
|
7277
7277
|
e("updateSubtask", b);
|
|
7278
7278
|
}, _ = (b) => {
|
|
7279
7279
|
e("deleteSubtask", b);
|
|
7280
|
-
}, g =
|
|
7280
|
+
}, g = w(() => {
|
|
7281
7281
|
var b;
|
|
7282
7282
|
return ((b = t.users) == null ? void 0 : b.map((k) => ({
|
|
7283
7283
|
label: `${k.firstName} ${k.lastName}`,
|
|
7284
7284
|
value: k.id,
|
|
7285
7285
|
avatar: k.avatarUrl
|
|
7286
7286
|
}))) || [];
|
|
7287
|
-
}), V =
|
|
7287
|
+
}), V = w({
|
|
7288
7288
|
get() {
|
|
7289
7289
|
var b, k;
|
|
7290
7290
|
return (b = t.activity.assignee) != null && b.id ? [(k = t.activity.assignee) == null ? void 0 : k.id] : [];
|
|
@@ -7305,7 +7305,7 @@ const j5 = {
|
|
|
7305
7305
|
activityId: t.activity.id,
|
|
7306
7306
|
file: b
|
|
7307
7307
|
});
|
|
7308
|
-
}, D =
|
|
7308
|
+
}, D = w(() => {
|
|
7309
7309
|
var b;
|
|
7310
7310
|
return (b = t.statuses) == null ? void 0 : b.map((k) => ({
|
|
7311
7311
|
value: k.id,
|
|
@@ -7601,7 +7601,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7601
7601
|
setup(a, { emit: e }) {
|
|
7602
7602
|
const t = a, s = ct(
|
|
7603
7603
|
t.rule.itemType || pe.ACTIVITIES
|
|
7604
|
-
), n =
|
|
7604
|
+
), n = w({
|
|
7605
7605
|
get() {
|
|
7606
7606
|
return s.value;
|
|
7607
7607
|
},
|
|
@@ -7612,7 +7612,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7612
7612
|
subItemId: void 0
|
|
7613
7613
|
});
|
|
7614
7614
|
}
|
|
7615
|
-
}), o =
|
|
7615
|
+
}), o = w(() => Object.values(pe)), i = w({
|
|
7616
7616
|
get() {
|
|
7617
7617
|
return t.rule.subItemId;
|
|
7618
7618
|
},
|
|
@@ -7623,7 +7623,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7623
7623
|
itemType: t.rule.itemType || n.value
|
|
7624
7624
|
});
|
|
7625
7625
|
}
|
|
7626
|
-
}), l =
|
|
7626
|
+
}), l = w(() => {
|
|
7627
7627
|
var g;
|
|
7628
7628
|
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (g = {
|
|
7629
7629
|
[pe.ACTIVITIES]: t.templateActivities,
|
|
@@ -7633,35 +7633,35 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7633
7633
|
value: V.id,
|
|
7634
7634
|
label: V.name
|
|
7635
7635
|
}));
|
|
7636
|
-
}), r = ct(t.rule.comparator), d =
|
|
7636
|
+
}), r = ct(t.rule.comparator), d = w({
|
|
7637
7637
|
get() {
|
|
7638
7638
|
return r.value;
|
|
7639
7639
|
},
|
|
7640
7640
|
set(_) {
|
|
7641
7641
|
e("update:rule", { ...t.rule, comparator: _ });
|
|
7642
7642
|
}
|
|
7643
|
-
}), u =
|
|
7643
|
+
}), u = w(() => Object.values(pd)), f = ct(t.rule.trigger), p = w({
|
|
7644
7644
|
get() {
|
|
7645
7645
|
return f.value;
|
|
7646
7646
|
},
|
|
7647
7647
|
set(_) {
|
|
7648
7648
|
e("update:rule", { ...t.rule, trigger: _ });
|
|
7649
7649
|
}
|
|
7650
|
-
}), C =
|
|
7650
|
+
}), C = w(() => Object.values(hd)), $ = w({
|
|
7651
7651
|
get() {
|
|
7652
7652
|
return t.rule.duration;
|
|
7653
7653
|
},
|
|
7654
7654
|
set(_) {
|
|
7655
7655
|
e("update:rule", { ...t.rule, duration: _ });
|
|
7656
7656
|
}
|
|
7657
|
-
}), M =
|
|
7657
|
+
}), M = w({
|
|
7658
7658
|
get() {
|
|
7659
7659
|
return t.rule.durationUnit;
|
|
7660
7660
|
},
|
|
7661
7661
|
set(_) {
|
|
7662
7662
|
e("update:rule", { ...t.rule, durationUnit: _ });
|
|
7663
7663
|
}
|
|
7664
|
-
}), S =
|
|
7664
|
+
}), S = w(() => Object.values(md));
|
|
7665
7665
|
return (_, g) => (c(), N(tt(_.tagName), { class: "ao-rule-line" }, {
|
|
7666
7666
|
default: j(() => [
|
|
7667
7667
|
T(q(ze), {
|
|
@@ -7782,7 +7782,7 @@ const D7 = {
|
|
|
7782
7782
|
},
|
|
7783
7783
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
7784
7784
|
setup(a, { emit: e }) {
|
|
7785
|
-
const t = a, { t: s } = nt(), n =
|
|
7785
|
+
const t = a, { t: s } = nt(), n = w(
|
|
7786
7786
|
() => {
|
|
7787
7787
|
var O;
|
|
7788
7788
|
return (O = t.templates) == null ? void 0 : O.find((L) => L.id === t.templateId);
|
|
@@ -7794,7 +7794,7 @@ const D7 = {
|
|
|
7794
7794
|
}, (O, L) => {
|
|
7795
7795
|
o.value && Ue(O, L);
|
|
7796
7796
|
});
|
|
7797
|
-
const i =
|
|
7797
|
+
const i = w(() => {
|
|
7798
7798
|
var O, L;
|
|
7799
7799
|
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((W) => W.id === t.phaseId);
|
|
7800
7800
|
});
|
|
@@ -7804,7 +7804,7 @@ const D7 = {
|
|
|
7804
7804
|
}, (O, L) => {
|
|
7805
7805
|
o.value && Ue(O, L);
|
|
7806
7806
|
});
|
|
7807
|
-
const l =
|
|
7807
|
+
const l = w(() => {
|
|
7808
7808
|
var O, L;
|
|
7809
7809
|
return (L = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : L.find(
|
|
7810
7810
|
(W) => W.id === t.milestoneId
|
|
@@ -7816,33 +7816,33 @@ const D7 = {
|
|
|
7816
7816
|
}, (O, L) => {
|
|
7817
7817
|
o.value && Ue(O, L);
|
|
7818
7818
|
});
|
|
7819
|
-
const r =
|
|
7819
|
+
const r = w(() => {
|
|
7820
7820
|
var O, L;
|
|
7821
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W,
|
|
7822
|
-
const Y =
|
|
7821
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, y) => {
|
|
7822
|
+
const Y = y.milestones || [];
|
|
7823
7823
|
return [...W, ...Y];
|
|
7824
7824
|
}, [])) || [];
|
|
7825
|
-
}), d =
|
|
7825
|
+
}), d = w(() => {
|
|
7826
7826
|
var O, L;
|
|
7827
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W,
|
|
7828
|
-
const he = (
|
|
7827
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((W, y) => {
|
|
7828
|
+
const he = (y.milestones || []).reduce(
|
|
7829
7829
|
(Z, F) => F.activities ? [...Z, ...F.activities] : Z,
|
|
7830
7830
|
[]
|
|
7831
7831
|
);
|
|
7832
7832
|
return [...W, ...he];
|
|
7833
7833
|
}, [])) || [];
|
|
7834
|
-
}), u =
|
|
7834
|
+
}), u = w(() => {
|
|
7835
7835
|
var O, L;
|
|
7836
7836
|
return (L = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : L.find(
|
|
7837
7837
|
(W) => W.id === t.activityId
|
|
7838
7838
|
);
|
|
7839
|
-
}), f =
|
|
7839
|
+
}), f = w(() => {
|
|
7840
7840
|
var O;
|
|
7841
7841
|
return (O = t.activityTypes) == null ? void 0 : O.map((L) => ({
|
|
7842
7842
|
label: L.name,
|
|
7843
7843
|
value: L.id
|
|
7844
7844
|
}));
|
|
7845
|
-
}), p =
|
|
7845
|
+
}), p = w(() => {
|
|
7846
7846
|
var O;
|
|
7847
7847
|
return ((O = n.value) == null ? void 0 : O.name) || t.templateId;
|
|
7848
7848
|
}), C = () => {
|
|
@@ -7924,7 +7924,7 @@ const D7 = {
|
|
|
7924
7924
|
const { milestoneId: L } = O;
|
|
7925
7925
|
if (!l.value)
|
|
7926
7926
|
return;
|
|
7927
|
-
const { name: W, rank:
|
|
7927
|
+
const { name: W, rank: y } = pt(
|
|
7928
7928
|
l.value.activities,
|
|
7929
7929
|
"activity",
|
|
7930
7930
|
s
|
|
@@ -7933,7 +7933,7 @@ const D7 = {
|
|
|
7933
7933
|
type: pe.ACTIVITIES,
|
|
7934
7934
|
milestoneId: L,
|
|
7935
7935
|
templateId: t.templateId,
|
|
7936
|
-
item: { name: W, rank:
|
|
7936
|
+
item: { name: W, rank: y, milestoneId: L }
|
|
7937
7937
|
});
|
|
7938
7938
|
}, D = (O) => {
|
|
7939
7939
|
var L, W;
|
|
@@ -8004,7 +8004,7 @@ const D7 = {
|
|
|
8004
8004
|
e("removeFile", O);
|
|
8005
8005
|
};
|
|
8006
8006
|
return (O, L) => {
|
|
8007
|
-
var W,
|
|
8007
|
+
var W, y, Y, he, Z, F;
|
|
8008
8008
|
return n.value ? (c(), h("div", D7, [
|
|
8009
8009
|
T(r1, {
|
|
8010
8010
|
"can-go-back": !0,
|
|
@@ -8095,7 +8095,7 @@ const D7 = {
|
|
|
8095
8095
|
i.value && l.value ? (c(), N(W3, {
|
|
8096
8096
|
key: 0,
|
|
8097
8097
|
"template-id": O.templateId,
|
|
8098
|
-
"phase-id": (
|
|
8098
|
+
"phase-id": (y = i.value) == null ? void 0 : y.id,
|
|
8099
8099
|
milestone: l.value,
|
|
8100
8100
|
"activity-id": (Y = u.value) == null ? void 0 : Y.id,
|
|
8101
8101
|
onAddActivity: K,
|
|
@@ -8182,7 +8182,7 @@ const U1 = /* @__PURE__ */ x({
|
|
|
8182
8182
|
status: {}
|
|
8183
8183
|
},
|
|
8184
8184
|
setup(a) {
|
|
8185
|
-
const e = a, t =
|
|
8185
|
+
const e = a, t = w(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
8186
8186
|
return (s, n) => (c(), h("div", {
|
|
8187
8187
|
class: G(["ao-progress", s.status ? `ao-progress--${s.status}` : ""]),
|
|
8188
8188
|
role: "meter"
|
|
@@ -8211,13 +8211,13 @@ const W7 = { class: "ao-card-project-phase__header" }, z7 = { class: "ao-card-pr
|
|
|
8211
8211
|
setup(a, { emit: e }) {
|
|
8212
8212
|
const t = a, s = (l) => {
|
|
8213
8213
|
e("update:title", l);
|
|
8214
|
-
}, n =
|
|
8214
|
+
}, n = w(() => {
|
|
8215
8215
|
var l;
|
|
8216
8216
|
return (l = t.milestones) == null ? void 0 : l.length;
|
|
8217
|
-
}), o =
|
|
8217
|
+
}), o = w(() => {
|
|
8218
8218
|
var l;
|
|
8219
8219
|
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === k1.done).length;
|
|
8220
|
-
}), i =
|
|
8220
|
+
}), i = w(() => (o.value || 0) / (n.value || 1));
|
|
8221
8221
|
return (l, r) => (c(), N(R1, { class: "ao-card-project-phase" }, t1({
|
|
8222
8222
|
default: j(() => [
|
|
8223
8223
|
T(me, {
|
|
@@ -8292,13 +8292,13 @@ const Q7 = { class: "ao-card-project-milestone__default" }, J7 = {
|
|
|
8292
8292
|
},
|
|
8293
8293
|
emits: ["updateMilestone", "archiveMilestone"],
|
|
8294
8294
|
setup(a, { emit: e }) {
|
|
8295
|
-
const t = a, s =
|
|
8295
|
+
const t = a, s = w(() => {
|
|
8296
8296
|
var l;
|
|
8297
8297
|
return (l = t.activities) == null ? void 0 : l.length;
|
|
8298
|
-
}), n =
|
|
8298
|
+
}), n = w(() => {
|
|
8299
8299
|
var l;
|
|
8300
8300
|
return (l = t.activities) == null ? void 0 : l.filter((r) => ka(r, t.closedStatus)).length;
|
|
8301
|
-
}), o =
|
|
8301
|
+
}), o = w(() => (n.value || 0) / (s.value || 1)), i = (l) => {
|
|
8302
8302
|
e("updateMilestone", { id: t.id, name: l });
|
|
8303
8303
|
};
|
|
8304
8304
|
return (l, r) => (c(), N(R1, {
|
|
@@ -8374,7 +8374,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8374
8374
|
});
|
|
8375
8375
|
const n = (f) => {
|
|
8376
8376
|
e("updatePhase", { id: t.phase.id, name: f });
|
|
8377
|
-
}, o =
|
|
8377
|
+
}, o = w(() => t.phase.milestones.map((f) => o3(f, t.closedStatus))), i = (f) => {
|
|
8378
8378
|
const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
|
|
8379
8379
|
e("addMilestone", { name: p, rank: C, phaseId: f });
|
|
8380
8380
|
}, l = (f) => {
|
|
@@ -8534,7 +8534,7 @@ const g9 = ["onSubmit"], b9 = { class: "ao-add-template-modal__form-body" }, y9
|
|
|
8534
8534
|
},
|
|
8535
8535
|
emits: ["apply"],
|
|
8536
8536
|
setup(a, { emit: e }) {
|
|
8537
|
-
const t = a, s =
|
|
8537
|
+
const t = a, s = w(() => t.templates.map((l) => ({
|
|
8538
8538
|
value: l.id,
|
|
8539
8539
|
label: l.name
|
|
8540
8540
|
}))), n = J(null), o = (l) => {
|
|
@@ -8646,7 +8646,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8646
8646
|
},
|
|
8647
8647
|
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8648
8648
|
setup(a, { emit: e }) {
|
|
8649
|
-
const t = a, { t: s } = nt(), n =
|
|
8649
|
+
const t = a, { t: s } = nt(), n = w(
|
|
8650
8650
|
() => t.phases.flatMap((I) => I.milestones)
|
|
8651
8651
|
), o = () => {
|
|
8652
8652
|
const { name: I, rank: ee } = pt(t.phases, "phase", s);
|
|
@@ -8673,7 +8673,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8673
8673
|
e("updateSubtask", I);
|
|
8674
8674
|
}, S = (I) => {
|
|
8675
8675
|
e("deleteSubtask", I);
|
|
8676
|
-
}, _ =
|
|
8676
|
+
}, _ = w(
|
|
8677
8677
|
() => n.value.flatMap((I) => I.activities)
|
|
8678
8678
|
), g = (I) => {
|
|
8679
8679
|
e("addFiles", I);
|
|
@@ -8822,18 +8822,18 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8822
8822
|
id: t.id,
|
|
8823
8823
|
name: p
|
|
8824
8824
|
});
|
|
8825
|
-
}, n =
|
|
8825
|
+
}, n = w(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = w(() => t.assignee ? [t.assignee] : []), i = w(() => A1(t.deadline)), l = (p) => {
|
|
8826
8826
|
const { firstName: C, lastName: $ } = p || {};
|
|
8827
8827
|
return `${C ?? ""}${C ? " " : ""}${$ ?? ""}`;
|
|
8828
8828
|
}, r = (p) => {
|
|
8829
8829
|
e("removeAssignee", p);
|
|
8830
|
-
}, d =
|
|
8830
|
+
}, d = w(() => {
|
|
8831
8831
|
var p;
|
|
8832
8832
|
return (p = t.tasks) == null ? void 0 : p.length;
|
|
8833
|
-
}), u =
|
|
8833
|
+
}), u = w(() => {
|
|
8834
8834
|
var p;
|
|
8835
8835
|
return (p = t.tasks) == null ? void 0 : p.filter((C) => C.isDone).length;
|
|
8836
|
-
}), f =
|
|
8836
|
+
}), f = w(() => (u.value || 0) / (d.value || 1));
|
|
8837
8837
|
return (p, C) => (c(), N(R1, {
|
|
8838
8838
|
class: "ao-card-feed",
|
|
8839
8839
|
"is-clickable": !0
|
|
@@ -8942,16 +8942,16 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
8942
8942
|
},
|
|
8943
8943
|
emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
|
|
8944
8944
|
setup(a, { emit: e }) {
|
|
8945
|
-
const t = a, { t: s } = nt(), n =
|
|
8945
|
+
const t = a, { t: s } = nt(), n = w(() => {
|
|
8946
8946
|
var p;
|
|
8947
8947
|
return (p = t.phases) == null ? void 0 : p.find((C) => C.id === t.phaseId);
|
|
8948
|
-
}), o =
|
|
8948
|
+
}), o = w(() => {
|
|
8949
8949
|
var p;
|
|
8950
8950
|
return (p = t.phases) == null ? void 0 : p.flatMap((C) => C.milestones);
|
|
8951
|
-
}), i =
|
|
8951
|
+
}), i = w(() => {
|
|
8952
8952
|
var p;
|
|
8953
8953
|
return (p = o.value) == null ? void 0 : p.find((C) => C.id === t.milestoneId);
|
|
8954
|
-
}), l =
|
|
8954
|
+
}), l = w(() => {
|
|
8955
8955
|
var p;
|
|
8956
8956
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
8957
8957
|
});
|
|
@@ -9079,19 +9079,19 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9079
9079
|
},
|
|
9080
9080
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9081
9081
|
setup(a, { emit: e }) {
|
|
9082
|
-
const t = a, s =
|
|
9082
|
+
const t = a, s = w(() => {
|
|
9083
9083
|
var _;
|
|
9084
9084
|
return (_ = t.phases) == null ? void 0 : _.find((g) => g.id === t.phaseId);
|
|
9085
|
-
}), n =
|
|
9085
|
+
}), n = w(() => {
|
|
9086
9086
|
var _;
|
|
9087
9087
|
return (_ = t.phases) == null ? void 0 : _.flatMap((g) => g.milestones);
|
|
9088
|
-
}), o =
|
|
9088
|
+
}), o = w(() => {
|
|
9089
9089
|
var _;
|
|
9090
9090
|
return (_ = n.value) == null ? void 0 : _.find((g) => g.id === t.milestoneId);
|
|
9091
|
-
}), i =
|
|
9091
|
+
}), i = w(() => {
|
|
9092
9092
|
var _;
|
|
9093
9093
|
return (_ = t.activities) == null ? void 0 : _.find((g) => g.id === t.activityId);
|
|
9094
|
-
}), l =
|
|
9094
|
+
}), l = w(() => {
|
|
9095
9095
|
var _;
|
|
9096
9096
|
return (_ = t.activityTypes) == null ? void 0 : _.map((g) => ({
|
|
9097
9097
|
value: g,
|
|
@@ -9219,7 +9219,7 @@ function d4() {
|
|
|
9219
9219
|
}
|
|
9220
9220
|
function c4(a) {
|
|
9221
9221
|
const e = d4();
|
|
9222
|
-
return
|
|
9222
|
+
return w(() => (e.value, !!a()));
|
|
9223
9223
|
}
|
|
9224
9224
|
function f4(a, e, t = {}) {
|
|
9225
9225
|
const {
|
|
@@ -9228,7 +9228,7 @@ function f4(a, e, t = {}) {
|
|
|
9228
9228
|
threshold: o = 0.1,
|
|
9229
9229
|
window: i = u4,
|
|
9230
9230
|
immediate: l = !0
|
|
9231
|
-
} = t, r = c4(() => i && "IntersectionObserver" in i), d =
|
|
9231
|
+
} = t, r = c4(() => i && "IntersectionObserver" in i), d = w(() => {
|
|
9232
9232
|
const $ = Jt(a);
|
|
9233
9233
|
return (Array.isArray($) ? $ : [$]).map(M1).filter(i4);
|
|
9234
9234
|
});
|
|
@@ -9343,7 +9343,7 @@ const v4 = {
|
|
|
9343
9343
|
group: "kanban"
|
|
9344
9344
|
}, r.$attrs, {
|
|
9345
9345
|
onChange: l,
|
|
9346
|
-
|
|
9346
|
+
disabled: !r.isEditable
|
|
9347
9347
|
}), {
|
|
9348
9348
|
item: j(({ element: u }) => {
|
|
9349
9349
|
var f, p, C, $, M, S, _, g;
|
|
@@ -9400,7 +9400,7 @@ const v4 = {
|
|
|
9400
9400
|
]))
|
|
9401
9401
|
]),
|
|
9402
9402
|
_: 1
|
|
9403
|
-
}, 16, ["list", "
|
|
9403
|
+
}, 16, ["list", "disabled"]),
|
|
9404
9404
|
r.$slots.footer || r.footerLabel ? (c(), h("div", g4, [
|
|
9405
9405
|
te(r.$slots, "footer", {}, () => [
|
|
9406
9406
|
r.isEditable ? (c(), N(Qe, {
|
|
@@ -9455,7 +9455,7 @@ const y4 = { class: "ao-field ao-search-field" }, w4 = ["value", "placeholder",
|
|
|
9455
9455
|
}
|
|
9456
9456
|
});
|
|
9457
9457
|
function M4(a) {
|
|
9458
|
-
const e = J(), t =
|
|
9458
|
+
const e = J(), t = w(
|
|
9459
9459
|
() => a.value.find(
|
|
9460
9460
|
(n) => n.id === e.value
|
|
9461
9461
|
)
|
|
@@ -9500,15 +9500,15 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9500
9500
|
},
|
|
9501
9501
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9502
9502
|
setup(a, { emit: e }) {
|
|
9503
|
-
const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (
|
|
9504
|
-
o(
|
|
9503
|
+
const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (y) => {
|
|
9504
|
+
o(y), e("selectActivity", y);
|
|
9505
9505
|
}, r = J({}), d = J(!1);
|
|
9506
9506
|
re(
|
|
9507
9507
|
[() => t.statuses, () => t.activities],
|
|
9508
9508
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9509
|
-
async ([
|
|
9509
|
+
async ([y, Y], [he, Z]) => {
|
|
9510
9510
|
r.value = Object.fromEntries(
|
|
9511
|
-
|
|
9511
|
+
y.map((F) => [
|
|
9512
9512
|
F.id,
|
|
9513
9513
|
Y.filter((E) => {
|
|
9514
9514
|
var U;
|
|
@@ -9519,107 +9519,107 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9519
9519
|
},
|
|
9520
9520
|
{ immediate: !0 }
|
|
9521
9521
|
);
|
|
9522
|
-
const u =
|
|
9523
|
-
var
|
|
9524
|
-
return !i.value || !i.value.milestone ? "" : `${((
|
|
9525
|
-
}), f = (
|
|
9522
|
+
const u = w(() => {
|
|
9523
|
+
var y;
|
|
9524
|
+
return !i.value || !i.value.milestone ? "" : `${((y = i.value.milestone.phase) == null ? void 0 : y.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9525
|
+
}), f = (y) => {
|
|
9526
9526
|
var E, U;
|
|
9527
9527
|
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), Z = ((U = t.activities) == null ? void 0 : U.length) ?? 0, F = {
|
|
9528
9528
|
name: s("activity.defaultName", { idx: Z + 1 }),
|
|
9529
9529
|
rank: he.format(),
|
|
9530
|
-
statusId:
|
|
9530
|
+
statusId: y.id
|
|
9531
9531
|
};
|
|
9532
9532
|
t.filters.assigneeId.length > 0 && (F.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (F.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (F.typeId = t.filters.typeId[0]), d.value = !0, e("addActivity", F);
|
|
9533
|
-
}, p = (
|
|
9534
|
-
d.value = !1, e("update:filters", { ...t.filters, [
|
|
9535
|
-
}, C =
|
|
9536
|
-
value:
|
|
9537
|
-
label:
|
|
9538
|
-
}))), M =
|
|
9539
|
-
var
|
|
9540
|
-
return (
|
|
9533
|
+
}, p = (y, Y) => {
|
|
9534
|
+
d.value = !1, e("update:filters", { ...t.filters, [y]: Y });
|
|
9535
|
+
}, C = w(() => t.project ? [t.project] : t.projects ?? []), $ = w(() => C.value.map((y) => ({
|
|
9536
|
+
value: y.id,
|
|
9537
|
+
label: y.name
|
|
9538
|
+
}))), M = w(() => {
|
|
9539
|
+
var y;
|
|
9540
|
+
return (y = t.activityTypes) == null ? void 0 : y.map((Y) => ({
|
|
9541
9541
|
value: Y.id,
|
|
9542
9542
|
label: Y.name
|
|
9543
9543
|
}));
|
|
9544
|
-
}), S =
|
|
9545
|
-
value:
|
|
9546
|
-
label: `${
|
|
9547
|
-
avatar:
|
|
9548
|
-
}))), _ = (
|
|
9549
|
-
i.value && e("update:activity",
|
|
9550
|
-
}, g = (
|
|
9551
|
-
e("update:activity",
|
|
9552
|
-
}, V = (
|
|
9553
|
-
e("archiveActivity",
|
|
9554
|
-
}, R =
|
|
9544
|
+
}), S = w(() => t.users.map((y) => ({
|
|
9545
|
+
value: y.id,
|
|
9546
|
+
label: `${y.firstName} ${y.lastName}`,
|
|
9547
|
+
avatar: y.avatarUrl
|
|
9548
|
+
}))), _ = (y) => {
|
|
9549
|
+
i.value && e("update:activity", y);
|
|
9550
|
+
}, g = (y) => {
|
|
9551
|
+
e("update:activity", y);
|
|
9552
|
+
}, V = (y) => {
|
|
9553
|
+
e("archiveActivity", y);
|
|
9554
|
+
}, R = w({
|
|
9555
9555
|
get() {
|
|
9556
|
-
var
|
|
9557
|
-
return (
|
|
9556
|
+
var y;
|
|
9557
|
+
return (y = i.value) == null ? void 0 : y.deadline;
|
|
9558
9558
|
},
|
|
9559
|
-
set(
|
|
9559
|
+
set(y) {
|
|
9560
9560
|
i.value && _({
|
|
9561
9561
|
id: i.value.id,
|
|
9562
|
-
deadline:
|
|
9562
|
+
deadline: y
|
|
9563
9563
|
});
|
|
9564
9564
|
}
|
|
9565
|
-
}), K = (
|
|
9566
|
-
d.value = !1, e("update:searchText",
|
|
9567
|
-
}, D = (
|
|
9568
|
-
d.value = !1, e("clear:searchText",
|
|
9569
|
-
}, X = (
|
|
9570
|
-
i.value && e("addSubtask",
|
|
9571
|
-
}, ae = (
|
|
9572
|
-
i.value && e("updateSubtask",
|
|
9573
|
-
}, I = (
|
|
9574
|
-
i.value && e("deleteSubtask",
|
|
9575
|
-
}, ee = (
|
|
9576
|
-
e("addFiles",
|
|
9577
|
-
}, b = (
|
|
9578
|
-
e("removeFile",
|
|
9579
|
-
}, k = (
|
|
9565
|
+
}), K = (y) => {
|
|
9566
|
+
d.value = !1, e("update:searchText", y);
|
|
9567
|
+
}, D = (y) => {
|
|
9568
|
+
d.value = !1, e("clear:searchText", y);
|
|
9569
|
+
}, X = (y) => {
|
|
9570
|
+
i.value && e("addSubtask", y);
|
|
9571
|
+
}, ae = (y) => {
|
|
9572
|
+
i.value && e("updateSubtask", y);
|
|
9573
|
+
}, I = (y) => {
|
|
9574
|
+
i.value && e("deleteSubtask", y);
|
|
9575
|
+
}, ee = (y) => {
|
|
9576
|
+
e("addFiles", y);
|
|
9577
|
+
}, b = (y) => {
|
|
9578
|
+
e("removeFile", y);
|
|
9579
|
+
}, k = (y) => {
|
|
9580
9580
|
i.value && e("addComment", {
|
|
9581
|
-
...
|
|
9581
|
+
...y,
|
|
9582
9582
|
activityId: i.value.id
|
|
9583
9583
|
});
|
|
9584
|
-
}, P = (
|
|
9584
|
+
}, P = (y) => {
|
|
9585
9585
|
const { id: Y } = i.value || {};
|
|
9586
|
-
Y && e("updateComment",
|
|
9587
|
-
}, ue = (
|
|
9586
|
+
Y && e("updateComment", y);
|
|
9587
|
+
}, ue = (y) => {
|
|
9588
9588
|
const { id: Y } = i.value || {};
|
|
9589
|
-
Y && e("removeComment",
|
|
9590
|
-
}, ne =
|
|
9591
|
-
value:
|
|
9592
|
-
label:
|
|
9593
|
-
}))), le =
|
|
9589
|
+
Y && e("removeComment", y);
|
|
9590
|
+
}, ne = w(() => C.value.map((y) => ({
|
|
9591
|
+
value: y.id,
|
|
9592
|
+
label: y.name
|
|
9593
|
+
}))), le = w(() => {
|
|
9594
9594
|
var Y, he, Z;
|
|
9595
|
-
const
|
|
9596
|
-
return
|
|
9595
|
+
const y = (Z = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : Z.reduce((F, E) => [...F, ...E.milestones], []);
|
|
9596
|
+
return y == null ? void 0 : y.map((F) => ({
|
|
9597
9597
|
value: F.id,
|
|
9598
9598
|
label: F.name
|
|
9599
9599
|
}));
|
|
9600
|
-
}), ie = (
|
|
9600
|
+
}), ie = (y) => {
|
|
9601
9601
|
i.value && e("update:activity", {
|
|
9602
9602
|
id: i.value.id,
|
|
9603
|
-
projectId:
|
|
9603
|
+
projectId: y
|
|
9604
9604
|
});
|
|
9605
|
-
}, O = (
|
|
9605
|
+
}, O = (y) => {
|
|
9606
9606
|
i.value && e("update:activity", {
|
|
9607
9607
|
id: i.value.id,
|
|
9608
|
-
milestoneId:
|
|
9608
|
+
milestoneId: y
|
|
9609
9609
|
});
|
|
9610
|
-
}, L =
|
|
9611
|
-
var
|
|
9612
|
-
return (
|
|
9610
|
+
}, L = w(() => {
|
|
9611
|
+
var y;
|
|
9612
|
+
return (y = t.statuses) == null ? void 0 : y.map((Y) => ({
|
|
9613
9613
|
value: Y.id,
|
|
9614
9614
|
label: Y.name
|
|
9615
9615
|
}));
|
|
9616
|
-
}), W = (
|
|
9616
|
+
}), W = (y) => {
|
|
9617
9617
|
i.value && e("update:activity", {
|
|
9618
9618
|
id: i.value.id,
|
|
9619
|
-
statusId:
|
|
9619
|
+
statusId: y
|
|
9620
9620
|
});
|
|
9621
9621
|
};
|
|
9622
|
-
return (
|
|
9622
|
+
return (y, Y) => {
|
|
9623
9623
|
var he;
|
|
9624
9624
|
return c(), h("div", S4, [
|
|
9625
9625
|
T(r1, null, {
|
|
@@ -9628,49 +9628,49 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9628
9628
|
t.project ? (c(), N(Pa, {
|
|
9629
9629
|
key: 0,
|
|
9630
9630
|
"is-left": !1,
|
|
9631
|
-
"right-label":
|
|
9632
|
-
"left-label":
|
|
9631
|
+
"right-label": y.$t("project.switch.feed"),
|
|
9632
|
+
"left-label": y.$t("project.switch.overview"),
|
|
9633
9633
|
"onUpdate:isLeft": Y[0] || (Y[0] = (Z) => {
|
|
9634
|
-
Z &&
|
|
9634
|
+
Z && y.$router.push({ name: q(Re).project });
|
|
9635
9635
|
})
|
|
9636
9636
|
}, null, 8, ["right-label", "left-label"])) : A("", !0),
|
|
9637
9637
|
T($4, {
|
|
9638
|
-
"model-value":
|
|
9639
|
-
placeholder:
|
|
9638
|
+
"model-value": y.searchText,
|
|
9639
|
+
placeholder: y.$t("feed.search.placeholder"),
|
|
9640
9640
|
class: "ao-feed__search",
|
|
9641
9641
|
"onUpdate:modelValue": K,
|
|
9642
9642
|
onClear: D
|
|
9643
9643
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9644
9644
|
t.project ? A("", !0) : (c(), N(ye, {
|
|
9645
9645
|
key: 1,
|
|
9646
|
-
"model-value":
|
|
9646
|
+
"model-value": y.filters[q(ut).project],
|
|
9647
9647
|
mode: "tags",
|
|
9648
9648
|
options: $.value,
|
|
9649
9649
|
"close-on-select": !1,
|
|
9650
9650
|
searchable: !0,
|
|
9651
9651
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9652
|
-
placeholder:
|
|
9652
|
+
placeholder: y.$t("feed.filters.project.placeholder"),
|
|
9653
9653
|
"onUpdate:modelValue": Y[1] || (Y[1] = (Z) => p(q(ut).project, Z))
|
|
9654
9654
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9655
9655
|
M.value ? (c(), N(ye, {
|
|
9656
9656
|
key: 2,
|
|
9657
|
-
"model-value":
|
|
9657
|
+
"model-value": y.filters[q(ut).type],
|
|
9658
9658
|
mode: "tags",
|
|
9659
9659
|
options: M.value,
|
|
9660
9660
|
"close-on-select": !1,
|
|
9661
9661
|
searchable: !0,
|
|
9662
9662
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9663
|
-
placeholder:
|
|
9663
|
+
placeholder: y.$t("feed.filters.activityType.placeholder"),
|
|
9664
9664
|
"onUpdate:modelValue": Y[2] || (Y[2] = (Z) => p(q(ut).type, Z))
|
|
9665
9665
|
}, null, 8, ["model-value", "options", "placeholder"])) : A("", !0),
|
|
9666
9666
|
T(ye, {
|
|
9667
|
-
"model-value":
|
|
9667
|
+
"model-value": y.filters[q(ut).assignee],
|
|
9668
9668
|
mode: "tags",
|
|
9669
9669
|
options: S.value,
|
|
9670
9670
|
"close-on-select": !1,
|
|
9671
9671
|
searchable: !0,
|
|
9672
9672
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9673
|
-
placeholder:
|
|
9673
|
+
placeholder: y.$t("feed.filters.assignee.placeholder"),
|
|
9674
9674
|
"onUpdate:modelValue": Y[3] || (Y[3] = (Z) => p(q(ut).assignee, Z))
|
|
9675
9675
|
}, {
|
|
9676
9676
|
tag: j(({ option: Z, handleTagRemove: F }) => [
|
|
@@ -9687,27 +9687,27 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9687
9687
|
T(de, {
|
|
9688
9688
|
class: "ao-feed__show-archived",
|
|
9689
9689
|
size: "sm",
|
|
9690
|
-
"icon-name":
|
|
9690
|
+
"icon-name": y.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
9691
9691
|
"icon-position": "start",
|
|
9692
9692
|
color: "primary",
|
|
9693
9693
|
variant: "ghost",
|
|
9694
|
-
label:
|
|
9694
|
+
label: y.$t("feed.filters.showsArchivedActivities.label"),
|
|
9695
9695
|
role: "checkbox",
|
|
9696
|
-
"aria-checked":
|
|
9697
|
-
onClick: Y[4] || (Y[4] = (Z) =>
|
|
9696
|
+
"aria-checked": y.showsArchivedActivities,
|
|
9697
|
+
onClick: Y[4] || (Y[4] = (Z) => y.$emit("update:showsArchivedActivities", !y.showsArchivedActivities))
|
|
9698
9698
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9699
9699
|
]),
|
|
9700
9700
|
_: 1
|
|
9701
9701
|
}),
|
|
9702
9702
|
v("div", E4, [
|
|
9703
|
-
(c(!0), h(fe, null, be(
|
|
9703
|
+
(c(!0), h(fe, null, be(y.statuses, (Z) => (c(), N(b4, {
|
|
9704
9704
|
key: Z.id,
|
|
9705
9705
|
status: Z,
|
|
9706
9706
|
list: r.value[Z.id],
|
|
9707
9707
|
title: Z.name,
|
|
9708
|
-
"footer-label":
|
|
9709
|
-
users:
|
|
9710
|
-
"is-editable":
|
|
9708
|
+
"footer-label": y.$t("feed.activity.add"),
|
|
9709
|
+
users: y.users,
|
|
9710
|
+
"is-editable": y.isEditable,
|
|
9711
9711
|
onAdd: () => f(Z),
|
|
9712
9712
|
onSelectActivity: l,
|
|
9713
9713
|
onArchiveActivity: V,
|
|
@@ -9721,12 +9721,12 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9721
9721
|
"activity-types": M.value,
|
|
9722
9722
|
"milestone-id": (he = q(i).milestone) == null ? void 0 : he.id,
|
|
9723
9723
|
"template-activities": n.value,
|
|
9724
|
-
users:
|
|
9725
|
-
"user-id":
|
|
9726
|
-
"is-task-checkable":
|
|
9727
|
-
statuses:
|
|
9724
|
+
users: y.users,
|
|
9725
|
+
"user-id": y.userId,
|
|
9726
|
+
"is-task-checkable": y.isTaskCheckable,
|
|
9727
|
+
statuses: y.statuses,
|
|
9728
9728
|
breadcrumbs: u.value,
|
|
9729
|
-
"is-editable":
|
|
9729
|
+
"is-editable": y.isEditable,
|
|
9730
9730
|
onClose: Y[6] || (Y[6] = () => l(null)),
|
|
9731
9731
|
"onUpdate:activity": _,
|
|
9732
9732
|
onAddSubtask: X,
|
|
@@ -9743,32 +9743,38 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9743
9743
|
return [
|
|
9744
9744
|
v("div", I4, [
|
|
9745
9745
|
ne.value && !t.project ? (c(), h("label", O4, [
|
|
9746
|
-
v("span", L4, z(
|
|
9746
|
+
v("span", L4, z(y.$t("activity.project.label")), 1),
|
|
9747
9747
|
T(ye, {
|
|
9748
9748
|
options: ne.value,
|
|
9749
9749
|
value: (Z = q(i).project) == null ? void 0 : Z.id,
|
|
9750
9750
|
searchable: !0,
|
|
9751
|
+
disabled: !y.isEditable,
|
|
9752
|
+
caret: y.isEditable,
|
|
9751
9753
|
onChange: ie
|
|
9752
|
-
}, null, 8, ["options", "value"])
|
|
9754
|
+
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9753
9755
|
])) : A("", !0),
|
|
9754
9756
|
le.value ? (c(), h("label", V4, [
|
|
9755
|
-
v("span", D4, z(
|
|
9757
|
+
v("span", D4, z(y.$t("activity.milestone.label")), 1),
|
|
9756
9758
|
T(ye, {
|
|
9757
9759
|
options: le.value,
|
|
9758
9760
|
value: (F = q(i).milestone) == null ? void 0 : F.id,
|
|
9759
9761
|
searchable: !0,
|
|
9762
|
+
disabled: !y.isEditable,
|
|
9763
|
+
caret: y.isEditable,
|
|
9760
9764
|
onChange: O
|
|
9761
|
-
}, null, 8, ["options", "value"])
|
|
9765
|
+
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9762
9766
|
])) : A("", !0),
|
|
9763
9767
|
L.value ? (c(), h("label", H4, [
|
|
9764
|
-
v("span", P4, z(
|
|
9768
|
+
v("span", P4, z(y.$t("activity.status.label")), 1),
|
|
9765
9769
|
T(ye, {
|
|
9766
9770
|
options: L.value,
|
|
9767
9771
|
value: (E = q(i).status) == null ? void 0 : E.id,
|
|
9768
9772
|
"can-clear": !1,
|
|
9769
9773
|
"can-deselect": !1,
|
|
9774
|
+
disabled: !y.isEditable,
|
|
9775
|
+
caret: y.isEditable,
|
|
9770
9776
|
onChange: W
|
|
9771
|
-
}, null, 8, ["options", "value"])
|
|
9777
|
+
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9772
9778
|
])) : A("", !0)
|
|
9773
9779
|
])
|
|
9774
9780
|
];
|
|
@@ -9776,7 +9782,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9776
9782
|
default: j(() => [
|
|
9777
9783
|
v("div", B4, [
|
|
9778
9784
|
v("label", N4, [
|
|
9779
|
-
v("span", R4, z(
|
|
9785
|
+
v("span", R4, z(y.$t("activity.deadline.label")), 1),
|
|
9780
9786
|
ft(v("input", {
|
|
9781
9787
|
"onUpdate:modelValue": Y[5] || (Y[5] = (Z) => R.value = Z),
|
|
9782
9788
|
class: "ao-field__input",
|