@26lights/orcha 0.7.36 → 0.7.38
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.es.js
CHANGED
|
@@ -1178,21 +1178,21 @@ const iu = ["type"], lu = {
|
|
|
1178
1178
|
function I1(a) {
|
|
1179
1179
|
const e = ee(!1), t = ee(""), s = _(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
|
|
1180
1180
|
e.value = !e.value;
|
|
1181
|
-
}, l = (
|
|
1182
|
-
e.value =
|
|
1183
|
-
}, i = (
|
|
1181
|
+
}, l = (d) => {
|
|
1182
|
+
e.value = d;
|
|
1183
|
+
}, i = (d) => async () => {
|
|
1184
1184
|
l(!1), await Ze(() => {
|
|
1185
|
-
a.value[s.value] = t.value,
|
|
1185
|
+
a.value[s.value] = t.value, d == null || d();
|
|
1186
1186
|
});
|
|
1187
|
-
}, o = (
|
|
1187
|
+
}, o = (d) => async (v) => {
|
|
1188
1188
|
l(!1), await Ze(() => {
|
|
1189
|
-
|
|
1189
|
+
d(a.value[s.value], v);
|
|
1190
1190
|
});
|
|
1191
1191
|
};
|
|
1192
|
-
return fe(e, async (
|
|
1192
|
+
return fe(e, async (d) => {
|
|
1193
1193
|
await Ze(() => {
|
|
1194
1194
|
setTimeout(() => {
|
|
1195
|
-
a.value &&
|
|
1195
|
+
a.value && d && (a.value.focus(), t.value = a.value[s.value]);
|
|
1196
1196
|
}, 1);
|
|
1197
1197
|
});
|
|
1198
1198
|
}), {
|
|
@@ -1214,7 +1214,7 @@ const ve = /* @__PURE__ */ Y({
|
|
|
1214
1214
|
},
|
|
1215
1215
|
emits: ["update:title", "toggle-is-editing"],
|
|
1216
1216
|
setup(a, { emit: e }) {
|
|
1217
|
-
const t = a, s = ee(null), { isEditing: n, setIsEditing: l, onUpdate: i, onDiscard: o } = I1(s),
|
|
1217
|
+
const t = a, s = ee(null), { isEditing: n, setIsEditing: l, onUpdate: i, onDiscard: o } = I1(s), d = _(() => n.value ? "input" : t.tag || `h${t.level}`), v = _(() => t.isEditable ? n.value ? {
|
|
1218
1218
|
change: u,
|
|
1219
1219
|
click: (I) => I.stopPropagation(),
|
|
1220
1220
|
blur: C
|
|
@@ -1236,7 +1236,7 @@ const ve = /* @__PURE__ */ Y({
|
|
|
1236
1236
|
(I) => {
|
|
1237
1237
|
I || m();
|
|
1238
1238
|
}
|
|
1239
|
-
), (I, E) => (c(), U(Je(
|
|
1239
|
+
), (I, E) => (c(), U(Je(d.value), Pe({
|
|
1240
1240
|
ref_key: "target",
|
|
1241
1241
|
ref: s,
|
|
1242
1242
|
class: [
|
|
@@ -1253,7 +1253,7 @@ const ve = /* @__PURE__ */ Y({
|
|
|
1253
1253
|
value: H(n) ? I.title : null,
|
|
1254
1254
|
tabindex: "0",
|
|
1255
1255
|
onKeyup: mt(y, ["enter"])
|
|
1256
|
-
}, _a(
|
|
1256
|
+
}, _a(v.value), {
|
|
1257
1257
|
onKeydown: mt(H(m), ["esc"])
|
|
1258
1258
|
}), {
|
|
1259
1259
|
default: q(() => [
|
|
@@ -1480,18 +1480,18 @@ function ku(a) {
|
|
|
1480
1480
|
return Math.round(t / Mu) + 1;
|
|
1481
1481
|
}
|
|
1482
1482
|
function At(a, e) {
|
|
1483
|
-
var t, s, n, l, i, o,
|
|
1483
|
+
var t, s, n, l, i, o, d, v;
|
|
1484
1484
|
Ce(1, arguments);
|
|
1485
|
-
var u = Vt(), m = Ne((t = (s = (n = (l = e == null ? void 0 : e.weekStartsOn) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (
|
|
1485
|
+
var u = Vt(), m = Ne((t = (s = (n = (l = e == null ? void 0 : e.weekStartsOn) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (d = u.locale) === null || d === void 0 || (v = d.options) === null || v === void 0 ? void 0 : v.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1486
1486
|
if (!(m >= 0 && m <= 6))
|
|
1487
1487
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1488
1488
|
var C = Ie(a), y = C.getUTCDay(), M = (y < m ? 7 : 0) + y - m;
|
|
1489
1489
|
return C.setUTCDate(C.getUTCDate() - M), C.setUTCHours(0, 0, 0, 0), C;
|
|
1490
1490
|
}
|
|
1491
1491
|
function D1(a, e) {
|
|
1492
|
-
var t, s, n, l, i, o,
|
|
1492
|
+
var t, s, n, l, i, o, d, v;
|
|
1493
1493
|
Ce(1, arguments);
|
|
1494
|
-
var u = Ie(a), m = u.getUTCFullYear(), C = Vt(), y = Ne((t = (s = (n = (l = e == null ? void 0 : e.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && n !== void 0 ? n : C.firstWeekContainsDate) !== null && s !== void 0 ? s : (
|
|
1494
|
+
var u = Ie(a), m = u.getUTCFullYear(), C = Vt(), y = Ne((t = (s = (n = (l = e == null ? void 0 : e.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && n !== void 0 ? n : C.firstWeekContainsDate) !== null && s !== void 0 ? s : (d = C.locale) === null || d === void 0 || (v = d.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
1495
1495
|
if (!(y >= 1 && y <= 7))
|
|
1496
1496
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1497
1497
|
var M = /* @__PURE__ */ new Date(0);
|
|
@@ -1502,9 +1502,9 @@ function D1(a, e) {
|
|
|
1502
1502
|
return u.getTime() >= I.getTime() ? m + 1 : u.getTime() >= b.getTime() ? m : m - 1;
|
|
1503
1503
|
}
|
|
1504
1504
|
function Su(a, e) {
|
|
1505
|
-
var t, s, n, l, i, o,
|
|
1505
|
+
var t, s, n, l, i, o, d, v;
|
|
1506
1506
|
Ce(1, arguments);
|
|
1507
|
-
var u = Vt(), m = Ne((t = (s = (n = (l = e == null ? void 0 : e.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (
|
|
1507
|
+
var u = Vt(), m = Ne((t = (s = (n = (l = e == null ? void 0 : e.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (d = u.locale) === null || d === void 0 || (v = d.options) === null || v === void 0 ? void 0 : v.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), C = D1(a, e), y = /* @__PURE__ */ new Date(0);
|
|
1508
1508
|
y.setUTCFullYear(C, 0, m), y.setUTCHours(0, 0, 0, 0);
|
|
1509
1509
|
var M = At(y, e);
|
|
1510
1510
|
return M;
|
|
@@ -2350,11 +2350,11 @@ function it(a) {
|
|
|
2350
2350
|
var l = a.defaultFormattingWidth || a.defaultWidth, i = t != null && t.width ? String(t.width) : l;
|
|
2351
2351
|
n = a.formattingValues[i] || a.formattingValues[l];
|
|
2352
2352
|
} else {
|
|
2353
|
-
var o = a.defaultWidth,
|
|
2354
|
-
n = a.values[
|
|
2353
|
+
var o = a.defaultWidth, d = t != null && t.width ? String(t.width) : a.defaultWidth;
|
|
2354
|
+
n = a.values[d] || a.values[o];
|
|
2355
2355
|
}
|
|
2356
|
-
var
|
|
2357
|
-
return n[
|
|
2356
|
+
var v = a.argumentCallback ? a.argumentCallback(e) : e;
|
|
2357
|
+
return n[v];
|
|
2358
2358
|
};
|
|
2359
2359
|
}
|
|
2360
2360
|
var xu = {
|
|
@@ -2482,15 +2482,15 @@ function lt(a) {
|
|
|
2482
2482
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = t.width, n = s && a.matchPatterns[s] || a.matchPatterns[a.defaultMatchWidth], l = e.match(n);
|
|
2483
2483
|
if (!l)
|
|
2484
2484
|
return null;
|
|
2485
|
-
var i = l[0], o = s && a.parsePatterns[s] || a.parsePatterns[a.defaultParseWidth],
|
|
2485
|
+
var i = l[0], o = s && a.parsePatterns[s] || a.parsePatterns[a.defaultParseWidth], d = Array.isArray(o) ? l3(o, function(m) {
|
|
2486
2486
|
return m.test(i);
|
|
2487
2487
|
}) : i3(o, function(m) {
|
|
2488
2488
|
return m.test(i);
|
|
2489
|
-
}),
|
|
2490
|
-
|
|
2489
|
+
}), v;
|
|
2490
|
+
v = a.valueCallback ? a.valueCallback(d) : d, v = t.valueCallback ? t.valueCallback(v) : v;
|
|
2491
2491
|
var u = e.slice(i.length);
|
|
2492
2492
|
return {
|
|
2493
|
-
value:
|
|
2493
|
+
value: v,
|
|
2494
2494
|
rest: u
|
|
2495
2495
|
};
|
|
2496
2496
|
};
|
|
@@ -2621,9 +2621,9 @@ var w3 = {
|
|
|
2621
2621
|
const $3 = w3;
|
|
2622
2622
|
var M3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, k3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, S3 = /^'([^]*?)'?$/, T3 = /''/g, A3 = /[a-zA-Z]/;
|
|
2623
2623
|
function I3(a, e, t) {
|
|
2624
|
-
var s, n, l, i, o,
|
|
2624
|
+
var s, n, l, i, o, d, v, u, m, C, y, M, I, E, b, w, D, X;
|
|
2625
2625
|
Ce(2, arguments);
|
|
2626
|
-
var ne = String(e), p = Vt(), L = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : p.locale) !== null && s !== void 0 ? s : $3, B = Ne((l = (i = (o = (
|
|
2626
|
+
var ne = String(e), p = Vt(), L = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : p.locale) !== null && s !== void 0 ? s : $3, B = Ne((l = (i = (o = (d = t == null ? void 0 : t.firstWeekContainsDate) !== null && d !== void 0 ? d : t == null || (v = t.locale) === null || v === void 0 || (u = v.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && o !== void 0 ? o : p.firstWeekContainsDate) !== null && i !== void 0 ? i : (m = p.locale) === null || m === void 0 || (C = m.options) === null || C === void 0 ? void 0 : C.firstWeekContainsDate) !== null && l !== void 0 ? l : 1);
|
|
2627
2627
|
if (!(B >= 1 && B <= 7))
|
|
2628
2628
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2629
2629
|
var J = Ne((y = (M = (I = (E = t == null ? void 0 : t.weekStartsOn) !== null && E !== void 0 ? E : t == null || (b = t.locale) === null || b === void 0 || (w = b.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && I !== void 0 ? I : p.weekStartsOn) !== null && M !== void 0 ? M : (D = p.locale) === null || D === void 0 || (X = D.options) === null || X === void 0 ? void 0 : X.weekStartsOn) !== null && y !== void 0 ? y : 0);
|
|
@@ -2682,17 +2682,17 @@ function L3(a, e) {
|
|
|
2682
2682
|
}
|
|
2683
2683
|
if (!l || isNaN(l.getTime()))
|
|
2684
2684
|
return /* @__PURE__ */ new Date(NaN);
|
|
2685
|
-
var o = l.getTime(),
|
|
2686
|
-
if (n.time && (
|
|
2685
|
+
var o = l.getTime(), d = 0, v;
|
|
2686
|
+
if (n.time && (d = B3(n.time), isNaN(d)))
|
|
2687
2687
|
return /* @__PURE__ */ new Date(NaN);
|
|
2688
2688
|
if (n.timezone) {
|
|
2689
|
-
if (
|
|
2689
|
+
if (v = Z3(n.timezone), isNaN(v))
|
|
2690
2690
|
return /* @__PURE__ */ new Date(NaN);
|
|
2691
2691
|
} else {
|
|
2692
|
-
var u = new Date(o +
|
|
2692
|
+
var u = new Date(o + d), m = /* @__PURE__ */ new Date(0);
|
|
2693
2693
|
return m.setFullYear(u.getUTCFullYear(), u.getUTCMonth(), u.getUTCDate()), m.setHours(u.getUTCHours(), u.getUTCMinutes(), u.getUTCSeconds(), u.getUTCMilliseconds()), m;
|
|
2694
2694
|
}
|
|
2695
|
-
return new Date(o +
|
|
2695
|
+
return new Date(o + d + v);
|
|
2696
2696
|
}
|
|
2697
2697
|
var wt = {
|
|
2698
2698
|
dateTimeDelimiter: /[T ]/,
|
|
@@ -2728,11 +2728,11 @@ function N3(a, e) {
|
|
|
2728
2728
|
var t = a.match(E3);
|
|
2729
2729
|
if (!t)
|
|
2730
2730
|
return /* @__PURE__ */ new Date(NaN);
|
|
2731
|
-
var s = !!t[4], n = ot(t[1]), l = ot(t[2]) - 1, i = ot(t[3]), o = ot(t[4]),
|
|
2731
|
+
var s = !!t[4], n = ot(t[1]), l = ot(t[2]) - 1, i = ot(t[3]), o = ot(t[4]), d = ot(t[5]) - 1;
|
|
2732
2732
|
if (s)
|
|
2733
|
-
return F3(e, o,
|
|
2734
|
-
var
|
|
2735
|
-
return !R3(e, l, i) || !q3(e, n) ? /* @__PURE__ */ new Date(NaN) : (
|
|
2733
|
+
return F3(e, o, d) ? U3(e, o, d) : /* @__PURE__ */ new Date(NaN);
|
|
2734
|
+
var v = /* @__PURE__ */ new Date(0);
|
|
2735
|
+
return !R3(e, l, i) || !q3(e, n) ? /* @__PURE__ */ new Date(NaN) : (v.setUTCFullYear(e, l, Math.max(n, i)), v);
|
|
2736
2736
|
}
|
|
2737
2737
|
function ot(a) {
|
|
2738
2738
|
return a ? parseInt(a) : 1;
|
|
@@ -2856,8 +2856,8 @@ class z {
|
|
|
2856
2856
|
const n = Math.max(t.length, s.length), l = new Array(n).fill(0);
|
|
2857
2857
|
let i = 0;
|
|
2858
2858
|
for (let o = 0; o < n; ++o) {
|
|
2859
|
-
const
|
|
2860
|
-
let u =
|
|
2859
|
+
const d = o < t.length ? t[o] : 0, v = o < s.length ? s[o] : 0;
|
|
2860
|
+
let u = d + v + i;
|
|
2861
2861
|
for (i = 0; u >= e.getBase(); u -= e.getBase())
|
|
2862
2862
|
++i;
|
|
2863
2863
|
l[o] = u;
|
|
@@ -3155,19 +3155,19 @@ function Z1() {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
static from(n) {
|
|
3157
3157
|
const l = a.LexoInteger.parse(n, e.LexoRank.NUMERAL_SYSTEM), i = t.VALUES, o = i.length;
|
|
3158
|
-
for (let
|
|
3159
|
-
const
|
|
3160
|
-
if (
|
|
3161
|
-
return
|
|
3158
|
+
for (let d = 0; d < o; ++d) {
|
|
3159
|
+
const v = i[d];
|
|
3160
|
+
if (v.value.equals(l))
|
|
3161
|
+
return v;
|
|
3162
3162
|
}
|
|
3163
3163
|
throw new Error("Unknown bucket: " + n);
|
|
3164
3164
|
}
|
|
3165
3165
|
static resolve(n) {
|
|
3166
3166
|
const l = t.VALUES, i = l.length;
|
|
3167
3167
|
for (let o = 0; o < i; ++o) {
|
|
3168
|
-
const
|
|
3169
|
-
if (
|
|
3170
|
-
return
|
|
3168
|
+
const d = l[o];
|
|
3169
|
+
if (d.equals(t.from(n.toString())))
|
|
3170
|
+
return d;
|
|
3171
3171
|
}
|
|
3172
3172
|
throw new Error("No bucket found with id " + n);
|
|
3173
3173
|
}
|
|
@@ -3350,27 +3350,27 @@ function j1() {
|
|
|
3350
3350
|
static between(i, o) {
|
|
3351
3351
|
if (i.getSystem().getBase() !== o.getSystem().getBase())
|
|
3352
3352
|
throw new Error("Expected same system");
|
|
3353
|
-
let
|
|
3353
|
+
let d = i, v = o, u;
|
|
3354
3354
|
if (i.getScale() < o.getScale()) {
|
|
3355
3355
|
if (u = o.setScale(i.getScale(), !1), i.compareTo(u) >= 0)
|
|
3356
3356
|
return n.mid(i, o);
|
|
3357
|
-
|
|
3357
|
+
v = u;
|
|
3358
3358
|
}
|
|
3359
|
-
if (i.getScale() >
|
|
3360
|
-
if (u = i.setScale(
|
|
3359
|
+
if (i.getScale() > v.getScale()) {
|
|
3360
|
+
if (u = i.setScale(v.getScale(), !0), u.compareTo(v) >= 0)
|
|
3361
3361
|
return n.mid(i, o);
|
|
3362
|
-
|
|
3362
|
+
d = u;
|
|
3363
3363
|
}
|
|
3364
3364
|
let m;
|
|
3365
|
-
for (let M =
|
|
3366
|
-
const I = M - 1, E =
|
|
3367
|
-
if (m =
|
|
3365
|
+
for (let M = d.getScale(); M > 0; v = m) {
|
|
3366
|
+
const I = M - 1, E = d.setScale(I, !0);
|
|
3367
|
+
if (m = v.setScale(I, !1), E.compareTo(m) === 0)
|
|
3368
3368
|
return n.checkMid(i, o, E);
|
|
3369
3369
|
if (E.compareTo(m) > 0)
|
|
3370
3370
|
break;
|
|
3371
|
-
M = I,
|
|
3371
|
+
M = I, d = E;
|
|
3372
3372
|
}
|
|
3373
|
-
let C = n.middleInternal(i, o,
|
|
3373
|
+
let C = n.middleInternal(i, o, d, v), y;
|
|
3374
3374
|
for (let M = C.getScale(); M > 0; M = y) {
|
|
3375
3375
|
y = M - 1;
|
|
3376
3376
|
const I = C.setScale(y);
|
|
@@ -3381,56 +3381,56 @@ function j1() {
|
|
|
3381
3381
|
return C;
|
|
3382
3382
|
}
|
|
3383
3383
|
static parse(i) {
|
|
3384
|
-
const o = i.split("|"),
|
|
3385
|
-
return new n(
|
|
3384
|
+
const o = i.split("|"), d = e.default.from(o[0]), v = a.LexoDecimal.parse(o[1], n.NUMERAL_SYSTEM);
|
|
3385
|
+
return new n(d, v);
|
|
3386
3386
|
}
|
|
3387
3387
|
static from(i, o) {
|
|
3388
3388
|
if (o.getSystem().getBase() !== n.NUMERAL_SYSTEM.getBase())
|
|
3389
3389
|
throw new Error("Expected different system");
|
|
3390
3390
|
return new n(i, o);
|
|
3391
3391
|
}
|
|
3392
|
-
static middleInternal(i, o,
|
|
3393
|
-
const u = n.mid(
|
|
3392
|
+
static middleInternal(i, o, d, v) {
|
|
3393
|
+
const u = n.mid(d, v);
|
|
3394
3394
|
return n.checkMid(i, o, u);
|
|
3395
3395
|
}
|
|
3396
|
-
static checkMid(i, o,
|
|
3397
|
-
return i.compareTo(
|
|
3396
|
+
static checkMid(i, o, d) {
|
|
3397
|
+
return i.compareTo(d) >= 0 || d.compareTo(o) >= 0 ? n.mid(i, o) : d;
|
|
3398
3398
|
}
|
|
3399
3399
|
static mid(i, o) {
|
|
3400
|
-
const
|
|
3401
|
-
if (
|
|
3402
|
-
const m =
|
|
3400
|
+
const v = i.add(o).multiply(a.LexoDecimal.half(i.getSystem())), u = i.getScale() > o.getScale() ? i.getScale() : o.getScale();
|
|
3401
|
+
if (v.getScale() > u) {
|
|
3402
|
+
const m = v.setScale(u, !1);
|
|
3403
3403
|
if (m.compareTo(i) > 0)
|
|
3404
3404
|
return m;
|
|
3405
|
-
const C =
|
|
3405
|
+
const C = v.setScale(u, !0);
|
|
3406
3406
|
if (C.compareTo(o) < 0)
|
|
3407
3407
|
return C;
|
|
3408
3408
|
}
|
|
3409
|
-
return
|
|
3409
|
+
return v;
|
|
3410
3410
|
}
|
|
3411
3411
|
static formatDecimal(i) {
|
|
3412
|
-
const o = i.format(),
|
|
3413
|
-
let
|
|
3412
|
+
const o = i.format(), d = new t.default(o);
|
|
3413
|
+
let v = o.indexOf(n.NUMERAL_SYSTEM.getRadixPointChar());
|
|
3414
3414
|
const u = n.NUMERAL_SYSTEM.toChar(0);
|
|
3415
|
-
for (
|
|
3416
|
-
|
|
3417
|
-
for (;
|
|
3418
|
-
|
|
3419
|
-
return
|
|
3415
|
+
for (v < 0 && (v = o.length, d.append(n.NUMERAL_SYSTEM.getRadixPointChar())); v < 6; )
|
|
3416
|
+
d.insert(0, u), ++v;
|
|
3417
|
+
for (; d[d.length - 1] === u; )
|
|
3418
|
+
d.length = d.length - 1;
|
|
3419
|
+
return d.toString();
|
|
3420
3420
|
}
|
|
3421
3421
|
genPrev() {
|
|
3422
3422
|
if (this.isMax())
|
|
3423
3423
|
return new n(this.bucket, n.INITIAL_MAX_DECIMAL);
|
|
3424
3424
|
const i = this.decimal.floor();
|
|
3425
|
-
let
|
|
3426
|
-
return
|
|
3425
|
+
let d = a.LexoDecimal.from(i).subtract(n.EIGHT_DECIMAL);
|
|
3426
|
+
return d.compareTo(n.MIN_DECIMAL) <= 0 && (d = n.between(n.MIN_DECIMAL, this.decimal)), new n(this.bucket, d);
|
|
3427
3427
|
}
|
|
3428
3428
|
genNext() {
|
|
3429
3429
|
if (this.isMin())
|
|
3430
3430
|
return new n(this.bucket, n.INITIAL_MIN_DECIMAL);
|
|
3431
3431
|
const i = this.decimal.ceil();
|
|
3432
|
-
let
|
|
3433
|
-
return
|
|
3432
|
+
let d = a.LexoDecimal.from(i).add(n.EIGHT_DECIMAL);
|
|
3433
|
+
return d.compareTo(n.MAX_DECIMAL) >= 0 && (d = n.between(this.decimal, n.MAX_DECIMAL)), new n(this.bucket, d);
|
|
3434
3434
|
}
|
|
3435
3435
|
between(i) {
|
|
3436
3436
|
if (!this.bucket.equals(i.bucket))
|
|
@@ -3759,13 +3759,13 @@ const O0 = { class: "ao-card-template-item__footer" }, L0 = {
|
|
|
3759
3759
|
return (i, o) => (c(), U(O1, { "onUpdate:title": t }, {
|
|
3760
3760
|
footer: q(() => [
|
|
3761
3761
|
r("ul", O0, [
|
|
3762
|
-
(c(), h(oe, null, he(s, (
|
|
3763
|
-
i.$props[
|
|
3762
|
+
(c(), h(oe, null, he(s, (d) => (c(), h(oe, { key: d }, [
|
|
3763
|
+
i.$props[d] ? (c(), h("li", L0, [
|
|
3764
3764
|
$(ie, {
|
|
3765
|
-
name: n[
|
|
3765
|
+
name: n[d],
|
|
3766
3766
|
size: "sm"
|
|
3767
3767
|
}, null, 8, ["name"]),
|
|
3768
|
-
r("span", E0, R(i.$props[
|
|
3768
|
+
r("span", E0, R(i.$props[d]), 1)
|
|
3769
3769
|
])) : k("", !0)
|
|
3770
3770
|
], 64))), 64))
|
|
3771
3771
|
])
|
|
@@ -3842,14 +3842,14 @@ const H0 = /* @__PURE__ */ Y({
|
|
|
3842
3842
|
e("updateMilestone", o);
|
|
3843
3843
|
}, i = (o) => {
|
|
3844
3844
|
if (o.moved) {
|
|
3845
|
-
const
|
|
3845
|
+
const d = Bt(o, t.phase.milestones);
|
|
3846
3846
|
e("updateMilestone", {
|
|
3847
3847
|
id: o.moved.element.id,
|
|
3848
|
-
rank:
|
|
3848
|
+
rank: d
|
|
3849
3849
|
});
|
|
3850
3850
|
}
|
|
3851
3851
|
};
|
|
3852
|
-
return (o,
|
|
3852
|
+
return (o, d) => o.phase ? (c(), U(H(ht), {
|
|
3853
3853
|
key: 0,
|
|
3854
3854
|
"model-value": o.phase.milestones,
|
|
3855
3855
|
class: "ao-templates__list",
|
|
@@ -3865,20 +3865,20 @@ const H0 = /* @__PURE__ */ Y({
|
|
|
3865
3865
|
class: "ao-list__title"
|
|
3866
3866
|
})
|
|
3867
3867
|
]),
|
|
3868
|
-
item: q(({ element:
|
|
3868
|
+
item: q(({ element: v }) => [
|
|
3869
3869
|
(c(), U(D0, {
|
|
3870
|
-
key:
|
|
3871
|
-
title:
|
|
3872
|
-
activities:
|
|
3873
|
-
"is-active": o.milestoneId ===
|
|
3870
|
+
key: v.id,
|
|
3871
|
+
title: v.name,
|
|
3872
|
+
activities: v.activities,
|
|
3873
|
+
"is-active": o.milestoneId === v.id,
|
|
3874
3874
|
"is-draggable": !0,
|
|
3875
|
-
"onUpdate:title": (u) => l({ id:
|
|
3875
|
+
"onUpdate:title": (u) => l({ id: v.id, name: u }),
|
|
3876
3876
|
onClick: (u) => o.$router.push({
|
|
3877
3877
|
params: {
|
|
3878
|
-
milestoneId:
|
|
3878
|
+
milestoneId: v.id
|
|
3879
3879
|
}
|
|
3880
3880
|
}),
|
|
3881
|
-
onRemove: () => n(
|
|
3881
|
+
onRemove: () => n(v.id)
|
|
3882
3882
|
}, null, 8, ["title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3883
3883
|
]),
|
|
3884
3884
|
footer: q(() => [
|
|
@@ -3931,14 +3931,14 @@ const H0 = /* @__PURE__ */ Y({
|
|
|
3931
3931
|
e("removeActivity", { id: o });
|
|
3932
3932
|
}, i = (o) => {
|
|
3933
3933
|
if (o.moved) {
|
|
3934
|
-
const
|
|
3934
|
+
const d = Bt(o, t.milestone.activities);
|
|
3935
3935
|
e("updateActivity", {
|
|
3936
3936
|
id: o.moved.element.id,
|
|
3937
|
-
rank:
|
|
3937
|
+
rank: d
|
|
3938
3938
|
});
|
|
3939
3939
|
}
|
|
3940
3940
|
};
|
|
3941
|
-
return (o,
|
|
3941
|
+
return (o, d) => o.milestone ? (c(), U(H(ht), {
|
|
3942
3942
|
key: 0,
|
|
3943
3943
|
"model-value": o.milestone.activities,
|
|
3944
3944
|
title: o.$t("template.activities.title"),
|
|
@@ -3954,16 +3954,16 @@ const H0 = /* @__PURE__ */ Y({
|
|
|
3954
3954
|
class: "ao-list__title"
|
|
3955
3955
|
})
|
|
3956
3956
|
]),
|
|
3957
|
-
item: q(({ element:
|
|
3957
|
+
item: q(({ element: v }) => [
|
|
3958
3958
|
(c(), U(B0, {
|
|
3959
|
-
key:
|
|
3960
|
-
title:
|
|
3961
|
-
tasks:
|
|
3962
|
-
"is-active": o.activityId ===
|
|
3959
|
+
key: v.id,
|
|
3960
|
+
title: v.name,
|
|
3961
|
+
tasks: v.tasks,
|
|
3962
|
+
"is-active": o.activityId === v.id,
|
|
3963
3963
|
"is-draggable": !0,
|
|
3964
|
-
"onUpdate:title": (u) => n({ id:
|
|
3965
|
-
onClick: (u) => o.$router.push({ params: { activityId:
|
|
3966
|
-
onRemove: () => l(
|
|
3964
|
+
"onUpdate:title": (u) => n({ id: v.id, name: u }),
|
|
3965
|
+
onClick: (u) => o.$router.push({ params: { activityId: v.id } }),
|
|
3966
|
+
onRemove: () => l(v.id)
|
|
3967
3967
|
}, null, 8, ["title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3968
3968
|
]),
|
|
3969
3969
|
footer: q(() => [
|
|
@@ -3983,28 +3983,28 @@ function Ae(a) {
|
|
|
3983
3983
|
return [null, void 0].indexOf(a) !== -1;
|
|
3984
3984
|
}
|
|
3985
3985
|
function j0(a, e, t) {
|
|
3986
|
-
const { object: s, valueProp: n, mode: l } = ye(a), i = Ue().proxy, o = t.iv,
|
|
3986
|
+
const { object: s, valueProp: n, mode: l } = ye(a), i = Ue().proxy, o = t.iv, d = (m, C = !0) => {
|
|
3987
3987
|
o.value = u(m);
|
|
3988
|
-
const y =
|
|
3988
|
+
const y = v(m);
|
|
3989
3989
|
e.emit("change", y, i), C && (e.emit("input", y), e.emit("update:modelValue", y));
|
|
3990
|
-
},
|
|
3990
|
+
}, v = (m) => s.value || Ae(m) ? m : Array.isArray(m) ? m.map((C) => C[n.value]) : m[n.value], u = (m) => Ae(m) ? l.value === "single" ? {} : [] : m;
|
|
3991
3991
|
return {
|
|
3992
|
-
update:
|
|
3992
|
+
update: d
|
|
3993
3993
|
};
|
|
3994
3994
|
}
|
|
3995
3995
|
function R0(a, e) {
|
|
3996
|
-
const { value: t, modelValue: s, mode: n, valueProp: l } = ye(a), i = ee(n.value !== "single" ? [] : {}), o = s && s.value !== void 0 ? s : t,
|
|
3996
|
+
const { value: t, modelValue: s, mode: n, valueProp: l } = ye(a), i = ee(n.value !== "single" ? [] : {}), o = s && s.value !== void 0 ? s : t, d = _(() => n.value === "single" ? i.value[l.value] : i.value.map((u) => u[l.value])), v = _(() => n.value !== "single" ? i.value.map((u) => u[l.value]).join(",") : i.value[l.value]);
|
|
3997
3997
|
return {
|
|
3998
3998
|
iv: i,
|
|
3999
3999
|
internalValue: i,
|
|
4000
4000
|
ev: o,
|
|
4001
4001
|
externalValue: o,
|
|
4002
|
-
textValue:
|
|
4003
|
-
plainValue:
|
|
4002
|
+
textValue: v,
|
|
4003
|
+
plainValue: d
|
|
4004
4004
|
};
|
|
4005
4005
|
}
|
|
4006
4006
|
function q0(a, e, t) {
|
|
4007
|
-
const { regex: s } = ye(a), n = Ue().proxy, l = t.isOpen, i = t.open, o = ee(null),
|
|
4007
|
+
const { regex: s } = ye(a), n = Ue().proxy, l = t.isOpen, i = t.open, o = ee(null), d = ee(null), v = () => {
|
|
4008
4008
|
o.value = "";
|
|
4009
4009
|
}, u = (y) => {
|
|
4010
4010
|
o.value = y.target.value;
|
|
@@ -4025,22 +4025,22 @@ function q0(a, e, t) {
|
|
|
4025
4025
|
!l.value && y && i(), e.emit("search-change", y, n);
|
|
4026
4026
|
}), {
|
|
4027
4027
|
search: o,
|
|
4028
|
-
input:
|
|
4029
|
-
clearSearch:
|
|
4028
|
+
input: d,
|
|
4029
|
+
clearSearch: v,
|
|
4030
4030
|
handleSearchInput: u,
|
|
4031
4031
|
handleKeypress: m,
|
|
4032
4032
|
handlePaste: C
|
|
4033
4033
|
};
|
|
4034
4034
|
}
|
|
4035
4035
|
function F0(a, e, t) {
|
|
4036
|
-
const { groupSelect: s, mode: n, groups: l, disabledProp: i } = ye(a), o = ee(null),
|
|
4036
|
+
const { groupSelect: s, mode: n, groups: l, disabledProp: i } = ye(a), o = ee(null), d = (u) => {
|
|
4037
4037
|
u === void 0 || u !== null && u[i.value] || l.value && u && u.group && (n.value === "single" || !s.value) || (o.value = u);
|
|
4038
4038
|
};
|
|
4039
4039
|
return {
|
|
4040
4040
|
pointer: o,
|
|
4041
|
-
setPointer:
|
|
4041
|
+
setPointer: d,
|
|
4042
4042
|
clearPointer: () => {
|
|
4043
|
-
|
|
4043
|
+
d(null);
|
|
4044
4044
|
}
|
|
4045
4045
|
};
|
|
4046
4046
|
}
|
|
@@ -4063,8 +4063,8 @@ function Y0(a, e, t) {
|
|
|
4063
4063
|
trackBy: l,
|
|
4064
4064
|
limit: i,
|
|
4065
4065
|
hideSelected: o,
|
|
4066
|
-
createTag:
|
|
4067
|
-
createOption:
|
|
4066
|
+
createTag: d,
|
|
4067
|
+
createOption: v,
|
|
4068
4068
|
label: u,
|
|
4069
4069
|
appendNewTag: m,
|
|
4070
4070
|
appendNewOption: C,
|
|
@@ -4095,7 +4095,7 @@ function Y0(a, e, t) {
|
|
|
4095
4095
|
disabledProp: te,
|
|
4096
4096
|
searchStart: _e,
|
|
4097
4097
|
searchFilter: Me
|
|
4098
|
-
} = ye(a), re = Ue().proxy, F = t.iv, T = t.ev, Z = t.search, ge = t.clearSearch, Oe = t.update, Y1 = t.pointer, qe = t.clearPointer, G1 = t.focus, K1 = t.deactivate, Fe = t.close, x1 = t.localize, at = ee([]), Ve = ee([]), Se = ee(!1), Ut = ee(null), jt = ee(le.value && i.value === -1 ? 10 : i.value), o1 = _(() =>
|
|
4098
|
+
} = ye(a), re = Ue().proxy, F = t.iv, T = t.ev, Z = t.search, ge = t.clearSearch, Oe = t.update, Y1 = t.pointer, qe = t.clearPointer, G1 = t.focus, K1 = t.deactivate, Fe = t.close, x1 = t.localize, at = ee([]), Ve = ee([]), Se = ee(!1), Ut = ee(null), jt = ee(le.value && i.value === -1 ? 10 : i.value), o1 = _(() => d.value || v.value || !1), X1 = _(() => m.value !== void 0 ? m.value : C.value !== void 0 ? C.value : !0), He = _(() => {
|
|
4099
4099
|
if (S.value) {
|
|
4100
4100
|
let f = _t.value || /* istanbul ignore next */
|
|
4101
4101
|
[], A = [];
|
|
@@ -4402,11 +4402,11 @@ function G0(a, e, t) {
|
|
|
4402
4402
|
searchable: l,
|
|
4403
4403
|
groupLabel: i,
|
|
4404
4404
|
groups: o,
|
|
4405
|
-
mode:
|
|
4406
|
-
groupSelect:
|
|
4405
|
+
mode: d,
|
|
4406
|
+
groupSelect: v,
|
|
4407
4407
|
disabledProp: u,
|
|
4408
4408
|
groupOptions: m
|
|
4409
|
-
} = ye(a), C = t.fo, y = t.fg, M = t.handleOptionClick, I = t.handleGroupClick, E = t.search, b = t.pointer, w = t.setPointer, D = t.clearPointer, X = t.multiselect, ne = t.isOpen, p = _(() => C.value.filter((T) => !T[u.value])), L = _(() => y.value.filter((T) => !T[u.value])), B = _(() =>
|
|
4409
|
+
} = ye(a), C = t.fo, y = t.fg, M = t.handleOptionClick, I = t.handleGroupClick, E = t.search, b = t.pointer, w = t.setPointer, D = t.clearPointer, X = t.multiselect, ne = t.isOpen, p = _(() => C.value.filter((T) => !T[u.value])), L = _(() => y.value.filter((T) => !T[u.value])), B = _(() => d.value !== "single" && v.value), J = _(() => b.value && b.value.group), se = _(() => re(b.value)), me = _(() => {
|
|
4410
4410
|
const T = J.value ? b.value : (
|
|
4411
4411
|
/* istanbul ignore next */
|
|
4412
4412
|
re(b.value)
|
|
@@ -4497,7 +4497,7 @@ function K0(a, e, t) {
|
|
|
4497
4497
|
};
|
|
4498
4498
|
}
|
|
4499
4499
|
function x0(a, e, t) {
|
|
4500
|
-
const { searchable: s, disabled: n, clearOnBlur: l } = ye(a), i = t.input, o = t.open,
|
|
4500
|
+
const { searchable: s, disabled: n, clearOnBlur: l } = ye(a), i = t.input, o = t.open, d = t.close, v = t.clearSearch, u = t.isOpen, m = ee(null), C = ee(null), y = ee(null), M = ee(!1), I = ee(!1), E = _(() => s.value || n.value ? -1 : 0), b = () => {
|
|
4501
4501
|
s.value && i.value.blur(), C.value.blur();
|
|
4502
4502
|
}, w = () => {
|
|
4503
4503
|
s.value && !n.value && i.value.focus();
|
|
@@ -4505,7 +4505,7 @@ function x0(a, e, t) {
|
|
|
4505
4505
|
n.value || (M.value = !0, J && o());
|
|
4506
4506
|
}, X = () => {
|
|
4507
4507
|
M.value = !1, setTimeout(() => {
|
|
4508
|
-
M.value || (
|
|
4508
|
+
M.value || (d(), l.value && v());
|
|
4509
4509
|
}, 1);
|
|
4510
4510
|
};
|
|
4511
4511
|
return {
|
|
@@ -4544,14 +4544,14 @@ function X0(a, e, t) {
|
|
|
4544
4544
|
openDirection: l,
|
|
4545
4545
|
searchable: i,
|
|
4546
4546
|
showOptions: o,
|
|
4547
|
-
valueProp:
|
|
4548
|
-
groups:
|
|
4547
|
+
valueProp: d,
|
|
4548
|
+
groups: v,
|
|
4549
4549
|
addOptionOn: u,
|
|
4550
4550
|
createTag: m,
|
|
4551
4551
|
createOption: C,
|
|
4552
4552
|
reverse: y
|
|
4553
4553
|
} = ye(a), M = Ue().proxy, I = t.iv, E = t.update, b = t.search, w = t.setPointer, D = t.selectPointer, X = t.backwardPointer, ne = t.forwardPointer, p = t.multiselect, L = t.wrapper, B = t.tags, J = t.isOpen, se = t.open, me = t.blur, N = t.fo, x = _(() => m.value || C.value || !1), S = _(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), j = () => {
|
|
4554
|
-
s.value === "tags" && !o.value && x.value && i.value && !
|
|
4554
|
+
s.value === "tags" && !o.value && x.value && i.value && !v.value && w(N.value[N.value.map((V) => V[d.value]).indexOf(b.value)]);
|
|
4555
4555
|
}, le = (V) => {
|
|
4556
4556
|
let G = V.length - 1;
|
|
4557
4557
|
for (; G >= 0 && (V[G].remove === !1 || V[G].disabled); )
|
|
@@ -4634,7 +4634,7 @@ function Q0(a, e, t) {
|
|
|
4634
4634
|
disabled: n,
|
|
4635
4635
|
openDirection: l,
|
|
4636
4636
|
showOptions: i
|
|
4637
|
-
} = ye(a), o = t.isOpen,
|
|
4637
|
+
} = ye(a), o = t.isOpen, d = t.isPointed, v = t.isSelected, u = t.isDisabled, m = t.isActive, C = t.canPointGroups, y = t.resolving, M = t.fo, I = _(() => ({
|
|
4638
4638
|
container: "multiselect",
|
|
4639
4639
|
containerDisabled: "is-disabled",
|
|
4640
4640
|
containerOpen: "is-open",
|
|
@@ -4719,12 +4719,12 @@ function Q0(a, e, t) {
|
|
|
4719
4719
|
group: w.group,
|
|
4720
4720
|
groupLabel: (D) => {
|
|
4721
4721
|
let X = [w.groupLabel];
|
|
4722
|
-
return
|
|
4722
|
+
return d(D) ? X.push(v(D) ? w.groupLabelSelectedPointed : w.groupLabelPointed) : v(D) && C.value ? X.push(u(D) ? w.groupLabelSelectedDisabled : w.groupLabelSelected) : u(D) && X.push(w.groupLabelDisabled), C.value && X.push(w.groupLabelPointable), X;
|
|
4723
4723
|
},
|
|
4724
4724
|
groupOptions: w.groupOptions,
|
|
4725
4725
|
option: (D, X) => {
|
|
4726
4726
|
let ne = [w.option];
|
|
4727
|
-
return
|
|
4727
|
+
return d(D) ? ne.push(v(D) ? w.optionSelectedPointed : w.optionPointed) : v(D) ? ne.push(u(D) ? w.optionSelectedDisabled : w.optionSelected) : (u(D) || X && u(X)) && ne.push(w.optionDisabled), ne;
|
|
4728
4728
|
},
|
|
4729
4729
|
noOptions: w.noOptions,
|
|
4730
4730
|
noResults: w.noResults,
|
|
@@ -4739,7 +4739,7 @@ function J0(a, e, t) {
|
|
|
4739
4739
|
const {
|
|
4740
4740
|
limit: s,
|
|
4741
4741
|
infinite: n
|
|
4742
|
-
} = ye(a), l = t.isOpen, i = t.offset, o = t.search,
|
|
4742
|
+
} = ye(a), l = t.isOpen, i = t.offset, o = t.search, d = t.pfo, v = t.eo, u = ee(null), m = ee(null), C = _(() => i.value < d.value.length), y = (I) => {
|
|
4743
4743
|
const { isIntersecting: E, target: b } = I[0];
|
|
4744
4744
|
if (E) {
|
|
4745
4745
|
const w = b.offsetParent, D = w.scrollTop;
|
|
@@ -4748,13 +4748,13 @@ function J0(a, e, t) {
|
|
|
4748
4748
|
});
|
|
4749
4749
|
}
|
|
4750
4750
|
}, M = () => {
|
|
4751
|
-
l.value && i.value <
|
|
4751
|
+
l.value && i.value < d.value.length ? u.value.observe(m.value) : !l.value && u.value && u.value.disconnect();
|
|
4752
4752
|
};
|
|
4753
4753
|
return fe(l, () => {
|
|
4754
4754
|
n.value && M();
|
|
4755
4755
|
}), fe(o, () => {
|
|
4756
4756
|
n.value && (i.value = s.value, M());
|
|
4757
|
-
}, { flush: "post" }), fe(
|
|
4757
|
+
}, { flush: "post" }), fe(v, () => {
|
|
4758
4758
|
n.value && M();
|
|
4759
4759
|
}, { immediate: !1, flush: "post" }), Ot(() => {
|
|
4760
4760
|
window && window.IntersectionObserver && (u.value = new IntersectionObserver(y));
|
|
@@ -4770,8 +4770,8 @@ function e5(a, e, t) {
|
|
|
4770
4770
|
valueProp: l,
|
|
4771
4771
|
label: i,
|
|
4772
4772
|
mode: o,
|
|
4773
|
-
groupLabel:
|
|
4774
|
-
aria:
|
|
4773
|
+
groupLabel: d,
|
|
4774
|
+
aria: v,
|
|
4775
4775
|
searchable: u
|
|
4776
4776
|
} = ye(a), m = t.pointer, C = t.iv, y = t.hasSelected, M = t.multipleLabelText, I = ee(null), E = _(() => {
|
|
4777
4777
|
let N = [];
|
|
@@ -4787,7 +4787,7 @@ function e5(a, e, t) {
|
|
|
4787
4787
|
let N = "";
|
|
4788
4788
|
return o.value === "single" && y.value && (N += C.value[i.value]), o.value === "multiple" && y.value && (N += M.value), o.value === "tags" && y.value && (N += C.value.map((x) => x[i.value]).join(", ")), N;
|
|
4789
4789
|
}), p = _(() => {
|
|
4790
|
-
let N = { ...
|
|
4790
|
+
let N = { ...v.value };
|
|
4791
4791
|
return u.value && (N["aria-labelledby"] = N["aria-labelledby"] ? `${E.value} ${N["aria-labelledby"]}` : E.value, ne.value && N["aria-label"] && (N["aria-label"] = `${ne.value}, ${N["aria-label"]}`)), N;
|
|
4792
4792
|
}), L = (N) => {
|
|
4793
4793
|
let x = [];
|
|
@@ -5251,7 +5251,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5251
5251
|
(c(!0), h(
|
|
5252
5252
|
oe,
|
|
5253
5253
|
null,
|
|
5254
|
-
he(a.iv, (i, o,
|
|
5254
|
+
he(a.iv, (i, o, d) => K(a.$slots, "tag", {
|
|
5255
5255
|
option: i,
|
|
5256
5256
|
handleTagRemove: a.handleTagRemove,
|
|
5257
5257
|
disabled: t.disabled
|
|
@@ -5262,8 +5262,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5262
5262
|
i.disabled ? a.classList.tagDisabled : null
|
|
5263
5263
|
]),
|
|
5264
5264
|
tabindex: "-1",
|
|
5265
|
-
onKeyup: mt((
|
|
5266
|
-
key:
|
|
5265
|
+
onKeyup: mt((v) => a.handleTagRemove(i, v), ["enter"]),
|
|
5266
|
+
key: d,
|
|
5267
5267
|
"aria-label": a.ariaTagLabel(a.localize(i[t.label]))
|
|
5268
5268
|
}, [
|
|
5269
5269
|
e1(
|
|
@@ -5274,7 +5274,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5274
5274
|
!t.disabled && !i.disabled ? (c(), h("span", {
|
|
5275
5275
|
key: 0,
|
|
5276
5276
|
class: W(a.classList.tagRemove),
|
|
5277
|
-
onClick: ke((
|
|
5277
|
+
onClick: ke((v) => a.handleTagRemove(i, v), ["stop"])
|
|
5278
5278
|
}, [
|
|
5279
5279
|
r(
|
|
5280
5280
|
"span",
|
|
@@ -5464,9 +5464,9 @@ function $5(a, e, t, s, n, l) {
|
|
|
5464
5464
|
t.groups ? (c(!0), h(
|
|
5465
5465
|
oe,
|
|
5466
5466
|
{ key: 0 },
|
|
5467
|
-
he(a.fg, (i, o,
|
|
5467
|
+
he(a.fg, (i, o, d) => (c(), h("li", {
|
|
5468
5468
|
class: W(a.classList.group),
|
|
5469
|
-
key:
|
|
5469
|
+
key: d,
|
|
5470
5470
|
id: a.ariaGroupId(i),
|
|
5471
5471
|
"aria-label": a.ariaGroupLabel(a.localize(i[t.groupLabel])),
|
|
5472
5472
|
"aria-selected": a.isSelected(i),
|
|
@@ -5476,8 +5476,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5476
5476
|
key: 0,
|
|
5477
5477
|
class: W(a.classList.groupLabel(i)),
|
|
5478
5478
|
"data-pointed": a.isPointed(i),
|
|
5479
|
-
onMouseenter: (
|
|
5480
|
-
onClick: (
|
|
5479
|
+
onMouseenter: (v) => a.setPointer(i, o),
|
|
5480
|
+
onClick: (v) => a.handleGroupClick(i)
|
|
5481
5481
|
}, [
|
|
5482
5482
|
K(a.$slots, "grouplabel", {
|
|
5483
5483
|
group: i,
|
|
@@ -5497,20 +5497,20 @@ function $5(a, e, t, s, n, l) {
|
|
|
5497
5497
|
(c(!0), h(
|
|
5498
5498
|
oe,
|
|
5499
5499
|
null,
|
|
5500
|
-
he(i.__VISIBLE__, (
|
|
5501
|
-
class: W(a.classList.option(
|
|
5502
|
-
"data-pointed": a.isPointed(
|
|
5503
|
-
"data-selected": a.isSelected(
|
|
5500
|
+
he(i.__VISIBLE__, (v, u, m) => (c(), h("li", {
|
|
5501
|
+
class: W(a.classList.option(v, i)),
|
|
5502
|
+
"data-pointed": a.isPointed(v),
|
|
5503
|
+
"data-selected": a.isSelected(v) || void 0,
|
|
5504
5504
|
key: m,
|
|
5505
|
-
onMouseenter: (C) => a.setPointer(
|
|
5506
|
-
onClick: (C) => a.handleOptionClick(
|
|
5507
|
-
id: a.ariaOptionId(
|
|
5508
|
-
"aria-selected": a.isSelected(
|
|
5509
|
-
"aria-label": a.ariaOptionLabel(a.localize(
|
|
5505
|
+
onMouseenter: (C) => a.setPointer(v),
|
|
5506
|
+
onClick: (C) => a.handleOptionClick(v),
|
|
5507
|
+
id: a.ariaOptionId(v),
|
|
5508
|
+
"aria-selected": a.isSelected(v),
|
|
5509
|
+
"aria-label": a.ariaOptionLabel(a.localize(v[t.label])),
|
|
5510
5510
|
role: "option"
|
|
5511
5511
|
}, [
|
|
5512
5512
|
K(a.$slots, "option", {
|
|
5513
|
-
option:
|
|
5513
|
+
option: v,
|
|
5514
5514
|
isSelected: a.isSelected,
|
|
5515
5515
|
isPointed: a.isPointed,
|
|
5516
5516
|
search: a.search
|
|
@@ -5518,7 +5518,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5518
5518
|
r(
|
|
5519
5519
|
"span",
|
|
5520
5520
|
null,
|
|
5521
|
-
R(a.localize(
|
|
5521
|
+
R(a.localize(v[t.label])),
|
|
5522
5522
|
1
|
|
5523
5523
|
/* TEXT */
|
|
5524
5524
|
)
|
|
@@ -5534,13 +5534,13 @@ function $5(a, e, t, s, n, l) {
|
|
|
5534
5534
|
)) : (c(!0), h(
|
|
5535
5535
|
oe,
|
|
5536
5536
|
{ key: 1 },
|
|
5537
|
-
he(a.fo, (i, o,
|
|
5537
|
+
he(a.fo, (i, o, d) => (c(), h("li", {
|
|
5538
5538
|
class: W(a.classList.option(i)),
|
|
5539
5539
|
"data-pointed": a.isPointed(i),
|
|
5540
5540
|
"data-selected": a.isSelected(i) || void 0,
|
|
5541
|
-
key:
|
|
5542
|
-
onMouseenter: (
|
|
5543
|
-
onClick: (
|
|
5541
|
+
key: d,
|
|
5542
|
+
onMouseenter: (v) => a.setPointer(i),
|
|
5543
|
+
onClick: (v) => a.handleOptionClick(i),
|
|
5544
5544
|
id: a.ariaOptionId(i),
|
|
5545
5545
|
"aria-selected": a.isSelected(i),
|
|
5546
5546
|
"aria-label": a.ariaOptionLabel(a.localize(i[t.label])),
|
|
@@ -5762,9 +5762,9 @@ const L5 = { class: "ao-tasks" }, E5 = { class: "ao-tasks__list" }, V5 = ["value
|
|
|
5762
5762
|
id: u,
|
|
5763
5763
|
isDone: m
|
|
5764
5764
|
});
|
|
5765
|
-
},
|
|
5765
|
+
}, d = (u) => {
|
|
5766
5766
|
e("delete", { id: u });
|
|
5767
|
-
},
|
|
5767
|
+
}, v = (u, m) => {
|
|
5768
5768
|
e("update", {
|
|
5769
5769
|
id: m,
|
|
5770
5770
|
assigneeId: u
|
|
@@ -5799,7 +5799,7 @@ const L5 = { class: "ao-tasks" }, E5 = { class: "ao-tasks__list" }, V5 = ["value
|
|
|
5799
5799
|
searchable: !0,
|
|
5800
5800
|
class: "ao-subtask__assignees",
|
|
5801
5801
|
placeholder: u.$t("feed.filters.assignee.placeholder"),
|
|
5802
|
-
onChange: (M) =>
|
|
5802
|
+
onChange: (M) => v(M, C.id)
|
|
5803
5803
|
}, {
|
|
5804
5804
|
tag: q(({ option: M, handleTagRemove: I }) => [
|
|
5805
5805
|
$(tt, {
|
|
@@ -5814,7 +5814,7 @@ const L5 = { class: "ao-tasks" }, E5 = { class: "ao-tasks__list" }, V5 = ["value
|
|
|
5814
5814
|
class: "ao-subtask__delete",
|
|
5815
5815
|
"icon-name": "CloseRounded",
|
|
5816
5816
|
variant: "ghost",
|
|
5817
|
-
onClick: () =>
|
|
5817
|
+
onClick: () => d(C.id)
|
|
5818
5818
|
}, null, 8, ["onClick"])
|
|
5819
5819
|
]);
|
|
5820
5820
|
}), 128))
|
|
@@ -5844,20 +5844,20 @@ const P5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], N5 = {
|
|
|
5844
5844
|
},
|
|
5845
5845
|
emits: ["add", "toggleIsDropActive", "remove"],
|
|
5846
5846
|
setup(a, { emit: e }) {
|
|
5847
|
-
const t = (
|
|
5848
|
-
e("remove",
|
|
5849
|
-
}, s = (
|
|
5850
|
-
const u =
|
|
5847
|
+
const t = (v) => {
|
|
5848
|
+
e("remove", v);
|
|
5849
|
+
}, s = (v) => {
|
|
5850
|
+
const u = v.target, m = Array.from(u.files ?? []);
|
|
5851
5851
|
e("add", m);
|
|
5852
5852
|
}, n = ["dragenter", "dragover", "dragleave", "drop"];
|
|
5853
5853
|
Ot(() => {
|
|
5854
|
-
n.forEach((
|
|
5855
|
-
document.body.addEventListener(
|
|
5854
|
+
n.forEach((v) => {
|
|
5855
|
+
document.body.addEventListener(v, (u) => u.preventDefault());
|
|
5856
5856
|
});
|
|
5857
5857
|
}), ga(() => {
|
|
5858
|
-
n.forEach((
|
|
5858
|
+
n.forEach((v) => {
|
|
5859
5859
|
document.body.removeEventListener(
|
|
5860
|
-
|
|
5860
|
+
v,
|
|
5861
5861
|
(u) => u.preventDefault()
|
|
5862
5862
|
);
|
|
5863
5863
|
});
|
|
@@ -5869,16 +5869,16 @@ const P5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], N5 = {
|
|
|
5869
5869
|
function o() {
|
|
5870
5870
|
l.value = !1;
|
|
5871
5871
|
}
|
|
5872
|
-
fe(l, (
|
|
5873
|
-
e("toggleIsDropActive",
|
|
5872
|
+
fe(l, (v) => {
|
|
5873
|
+
e("toggleIsDropActive", v);
|
|
5874
5874
|
});
|
|
5875
|
-
function v
|
|
5875
|
+
function d(v) {
|
|
5876
5876
|
var m;
|
|
5877
5877
|
o();
|
|
5878
|
-
const u = Array.from(((m =
|
|
5879
|
-
|
|
5878
|
+
const u = Array.from(((m = v.dataTransfer) == null ? void 0 : m.files) || []);
|
|
5879
|
+
v.dataTransfer && e("add", u);
|
|
5880
5880
|
}
|
|
5881
|
-
return (
|
|
5881
|
+
return (v, u) => {
|
|
5882
5882
|
var m;
|
|
5883
5883
|
return c(), h("div", {
|
|
5884
5884
|
class: W([
|
|
@@ -5887,13 +5887,13 @@ const P5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], N5 = {
|
|
|
5887
5887
|
"ao-files__wrapper--drop-active": l.value
|
|
5888
5888
|
}
|
|
5889
5889
|
]),
|
|
5890
|
-
onDrop: ke(
|
|
5890
|
+
onDrop: ke(d, ["prevent"]),
|
|
5891
5891
|
onDragenter: ke(i, ["prevent"]),
|
|
5892
5892
|
onDragover: ke(i, ["prevent"]),
|
|
5893
5893
|
onDragleave: ke(o, ["prevent"])
|
|
5894
5894
|
}, [
|
|
5895
|
-
(m =
|
|
5896
|
-
(c(!0), h(oe, null, he(
|
|
5895
|
+
(m = v.attachments) != null && m.length && v.attachments.length > 0 ? (c(), h("ul", N5, [
|
|
5896
|
+
(c(!0), h(oe, null, he(v.attachments, (C) => (c(), h("li", {
|
|
5897
5897
|
key: C.id,
|
|
5898
5898
|
class: "ao-file"
|
|
5899
5899
|
}, [
|
|
@@ -5922,7 +5922,7 @@ const P5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], N5 = {
|
|
|
5922
5922
|
]))), 128))
|
|
5923
5923
|
])) : (c(), h("div", U5, [
|
|
5924
5924
|
r("label", j5, [
|
|
5925
|
-
r("span", R5, R(
|
|
5925
|
+
r("span", R5, R(v.$t("activity.attachment.button.resting")), 1),
|
|
5926
5926
|
r("input", {
|
|
5927
5927
|
class: "input-field",
|
|
5928
5928
|
type: "file",
|
|
@@ -5932,7 +5932,7 @@ const P5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], N5 = {
|
|
|
5932
5932
|
onChange: s
|
|
5933
5933
|
}, null, 32)
|
|
5934
5934
|
]),
|
|
5935
|
-
r("span", q5, R(
|
|
5935
|
+
r("span", q5, R(v.$t("activity.attachment.placeholder.resting")), 1)
|
|
5936
5936
|
]))
|
|
5937
5937
|
], 42, P5);
|
|
5938
5938
|
};
|
|
@@ -5989,10 +5989,10 @@ const z5 = {
|
|
|
5989
5989
|
set(p) {
|
|
5990
5990
|
e("update:activity", { id: t.activity.id, typeId: p });
|
|
5991
5991
|
}
|
|
5992
|
-
}),
|
|
5992
|
+
}), d = _(() => t.templateActivities.filter((p) => p.id !== t.activity.id).map((p) => ({
|
|
5993
5993
|
label: p.name,
|
|
5994
5994
|
value: p.id
|
|
5995
|
-
}))),
|
|
5995
|
+
}))), v = _({
|
|
5996
5996
|
get() {
|
|
5997
5997
|
return t.activity.dependingOn;
|
|
5998
5998
|
},
|
|
@@ -6002,7 +6002,7 @@ const z5 = {
|
|
|
6002
6002
|
dependingOn: p
|
|
6003
6003
|
});
|
|
6004
6004
|
}
|
|
6005
|
-
}), u = _(() =>
|
|
6005
|
+
}), u = _(() => d.value.map((p) => {
|
|
6006
6006
|
var L;
|
|
6007
6007
|
return {
|
|
6008
6008
|
...p,
|
|
@@ -6018,7 +6018,7 @@ const z5 = {
|
|
|
6018
6018
|
blocking: p
|
|
6019
6019
|
});
|
|
6020
6020
|
}
|
|
6021
|
-
}), C = _(() =>
|
|
6021
|
+
}), C = _(() => d.value.map((p) => {
|
|
6022
6022
|
var L;
|
|
6023
6023
|
return {
|
|
6024
6024
|
...p,
|
|
@@ -6195,8 +6195,8 @@ const z5 = {
|
|
|
6195
6195
|
r("label", d7, [
|
|
6196
6196
|
r("span", v7, R(p.$t("activity.dependingOn.label")), 1),
|
|
6197
6197
|
$(H(pe), {
|
|
6198
|
-
modelValue:
|
|
6199
|
-
"onUpdate:modelValue": L[5] || (L[5] = (B) =>
|
|
6198
|
+
modelValue: v.value,
|
|
6199
|
+
"onUpdate:modelValue": L[5] || (L[5] = (B) => v.value = B),
|
|
6200
6200
|
class: "ao-field__multiselect",
|
|
6201
6201
|
mode: "tags",
|
|
6202
6202
|
"close-on-select": !1,
|
|
@@ -6358,9 +6358,9 @@ const xd = {
|
|
|
6358
6358
|
value: D.id,
|
|
6359
6359
|
label: D.name
|
|
6360
6360
|
}));
|
|
6361
|
-
}),
|
|
6361
|
+
}), d = ct(t.rule.comparator), v = _({
|
|
6362
6362
|
get() {
|
|
6363
|
-
return
|
|
6363
|
+
return d.value;
|
|
6364
6364
|
},
|
|
6365
6365
|
set(b) {
|
|
6366
6366
|
e("update:rule", { ...t.rule, comparator: b });
|
|
@@ -6405,8 +6405,8 @@ const xd = {
|
|
|
6405
6405
|
options: y.value
|
|
6406
6406
|
}, null, 8, ["modelValue", "options"]),
|
|
6407
6407
|
$(H(pe), {
|
|
6408
|
-
modelValue:
|
|
6409
|
-
"onUpdate:modelValue": w[3] || (w[3] = (D) =>
|
|
6408
|
+
modelValue: v.value,
|
|
6409
|
+
"onUpdate:modelValue": w[3] || (w[3] = (D) => v.value = D),
|
|
6410
6410
|
options: u.value
|
|
6411
6411
|
}, null, 8, ["modelValue", "options"]),
|
|
6412
6412
|
xe(r("input", {
|
|
@@ -6526,7 +6526,7 @@ const E7 = {
|
|
|
6526
6526
|
const te = G.milestones || [];
|
|
6527
6527
|
return [...V, ...te];
|
|
6528
6528
|
}, [])) || [];
|
|
6529
|
-
}),
|
|
6529
|
+
}), d = _(() => {
|
|
6530
6530
|
var g, P;
|
|
6531
6531
|
return ((P = (g = n.value) == null ? void 0 : g.phases) == null ? void 0 : P.reduce((V, G) => {
|
|
6532
6532
|
const _e = (G.milestones || []).reduce(
|
|
@@ -6535,7 +6535,7 @@ const E7 = {
|
|
|
6535
6535
|
);
|
|
6536
6536
|
return [...V, ..._e];
|
|
6537
6537
|
}, [])) || [];
|
|
6538
|
-
}),
|
|
6538
|
+
}), v = _(() => {
|
|
6539
6539
|
var g, P;
|
|
6540
6540
|
return (P = (g = i.value) == null ? void 0 : g.activities) == null ? void 0 : P.find(
|
|
6541
6541
|
(V) => V.id === t.activityId
|
|
@@ -6678,7 +6678,7 @@ const E7 = {
|
|
|
6678
6678
|
});
|
|
6679
6679
|
}
|
|
6680
6680
|
}, N = (g) => {
|
|
6681
|
-
!l.value || !i.value || !
|
|
6681
|
+
!l.value || !i.value || !v.value || e("addItem", {
|
|
6682
6682
|
type: ue.TASKS,
|
|
6683
6683
|
activityId: g.activityId,
|
|
6684
6684
|
milestoneId: i.value.id,
|
|
@@ -6688,18 +6688,18 @@ const E7 = {
|
|
|
6688
6688
|
});
|
|
6689
6689
|
}, x = (g) => {
|
|
6690
6690
|
var P, V, G;
|
|
6691
|
-
!l.value || !i.value || !
|
|
6691
|
+
!l.value || !i.value || !v.value || e("updateItem", {
|
|
6692
6692
|
itemType: ue.TASKS,
|
|
6693
6693
|
phaseId: (P = l.value) == null ? void 0 : P.id,
|
|
6694
6694
|
milestoneId: (V = i.value) == null ? void 0 : V.id,
|
|
6695
|
-
activityId: (G =
|
|
6695
|
+
activityId: (G = v.value) == null ? void 0 : G.id,
|
|
6696
6696
|
templateId: t.templateId,
|
|
6697
6697
|
data: g
|
|
6698
6698
|
});
|
|
6699
6699
|
}, S = (g) => {
|
|
6700
|
-
!l.value || !i.value || !
|
|
6700
|
+
!l.value || !i.value || !v.value || e("removeItem", {
|
|
6701
6701
|
type: ue.TASKS,
|
|
6702
|
-
activityId:
|
|
6702
|
+
activityId: v.value.id,
|
|
6703
6703
|
milestoneId: i.value.id,
|
|
6704
6704
|
phaseId: l.value.id,
|
|
6705
6705
|
templateId: t.templateId,
|
|
@@ -6804,7 +6804,7 @@ const E7 = {
|
|
|
6804
6804
|
"template-id": g.templateId,
|
|
6805
6805
|
"phase-id": (G = l.value) == null ? void 0 : G.id,
|
|
6806
6806
|
milestone: i.value,
|
|
6807
|
-
"activity-id": (te =
|
|
6807
|
+
"activity-id": (te = v.value) == null ? void 0 : te.id,
|
|
6808
6808
|
onAddActivity: X,
|
|
6809
6809
|
onUpdateActivity: p,
|
|
6810
6810
|
onRemoveActivity: ne
|
|
@@ -6813,17 +6813,17 @@ const E7 = {
|
|
|
6813
6813
|
])
|
|
6814
6814
|
]),
|
|
6815
6815
|
(c(), U(kt, { to: "body" }, [
|
|
6816
|
-
|
|
6816
|
+
v.value ? (c(), U(s1, {
|
|
6817
6817
|
key: 0,
|
|
6818
|
-
activity:
|
|
6818
|
+
activity: v.value,
|
|
6819
6819
|
"activity-types": u.value,
|
|
6820
6820
|
breadcrumbs: `${n.value.name} / ${(_e = l.value) == null ? void 0 : _e.name} / ${(Me = i.value) == null ? void 0 : Me.name}`,
|
|
6821
6821
|
"milestone-id": (re = i.value) == null ? void 0 : re.id,
|
|
6822
|
-
"template-activities":
|
|
6822
|
+
"template-activities": d.value,
|
|
6823
6823
|
"template-milestones": o.value,
|
|
6824
6824
|
"is-template": !0,
|
|
6825
6825
|
"onUpdate:activity": P[2] || (P[2] = (F) => {
|
|
6826
|
-
|
|
6826
|
+
v.value && p(F);
|
|
6827
6827
|
}),
|
|
6828
6828
|
onClose: g.$router.back,
|
|
6829
6829
|
onAddSubtask: N,
|
|
@@ -6840,7 +6840,7 @@ const E7 = {
|
|
|
6840
6840
|
rules: n.value.rules || [],
|
|
6841
6841
|
"template-phases": n.value.phases,
|
|
6842
6842
|
"template-milestones": o.value,
|
|
6843
|
-
"template-activities":
|
|
6843
|
+
"template-activities": d.value,
|
|
6844
6844
|
onClose: B,
|
|
6845
6845
|
onAddRule: J,
|
|
6846
6846
|
onRemoveRule: se
|
|
@@ -6982,8 +6982,8 @@ const x7 = { class: "ao-card-project-phase__footer" }, X7 = { class: "ao-card-pr
|
|
|
6982
6982
|
}), s = _(() => {
|
|
6983
6983
|
var l;
|
|
6984
6984
|
return (l = e.activities) == null ? void 0 : l.filter((i) => {
|
|
6985
|
-
var o,
|
|
6986
|
-
return ((o = i.status) == null ? void 0 : o.id) === ((
|
|
6985
|
+
var o, d;
|
|
6986
|
+
return ((o = i.status) == null ? void 0 : o.id) === ((d = e.doneStatus) == null ? void 0 : d.id);
|
|
6987
6987
|
}).length;
|
|
6988
6988
|
}), n = _(() => (s.value || 0) / (t.value || 1));
|
|
6989
6989
|
return (l, i) => (c(), U(i1, {
|
|
@@ -7032,8 +7032,8 @@ const ac = { class: "ao-project-phase" }, nc = { class: "ao-project-phase__col-p
|
|
|
7032
7032
|
emits: ["addMilestone"],
|
|
7033
7033
|
setup(a, { emit: e }) {
|
|
7034
7034
|
const t = a, { t: s } = Re(), n = _(() => t.phase.milestones), l = (i) => {
|
|
7035
|
-
const { name: o, rank:
|
|
7036
|
-
e("addMilestone", { name: o, rank:
|
|
7035
|
+
const { name: o, rank: d } = Xe(n.value ?? [], "milestone", s);
|
|
7036
|
+
e("addMilestone", { name: o, rank: d, phaseId: i });
|
|
7037
7037
|
};
|
|
7038
7038
|
return (i, o) => (c(), h("li", ac, [
|
|
7039
7039
|
r("div", nc, [
|
|
@@ -7047,15 +7047,15 @@ const ac = { class: "ao-project-phase" }, nc = { class: "ao-project-phase__col-p
|
|
|
7047
7047
|
r("div", sc, [
|
|
7048
7048
|
r("div", ic, [
|
|
7049
7049
|
r("ul", lc, [
|
|
7050
|
-
(c(!0), h(oe, null, he(n.value, (
|
|
7051
|
-
id:
|
|
7052
|
-
key:
|
|
7053
|
-
name:
|
|
7054
|
-
activities:
|
|
7050
|
+
(c(!0), h(oe, null, he(n.value, (d) => (c(), U(tc, {
|
|
7051
|
+
id: d.id,
|
|
7052
|
+
key: d.id,
|
|
7053
|
+
name: d.name,
|
|
7054
|
+
activities: d.activities,
|
|
7055
7055
|
class: "ao-project-phase__milestone",
|
|
7056
|
-
onClick: (
|
|
7056
|
+
onClick: (v) => i.$router.push({
|
|
7057
7057
|
name: H(Qe).milestone,
|
|
7058
|
-
params: { phaseId: i.phase.id, milestoneId:
|
|
7058
|
+
params: { phaseId: i.phase.id, milestoneId: d.id }
|
|
7059
7059
|
})
|
|
7060
7060
|
}, null, 8, ["id", "name", "activities", "onClick"]))), 128))
|
|
7061
7061
|
]),
|
|
@@ -7101,14 +7101,14 @@ const uc = { class: "ao-project-overview" }, cc = { class: "ao-project" }, dc =
|
|
|
7101
7101
|
e("addPhase", { name: b, rank: w, projectId: t.project.id });
|
|
7102
7102
|
}, o = (b) => {
|
|
7103
7103
|
e("addMilestone", b);
|
|
7104
|
-
}, v = (b) => {
|
|
7105
|
-
e("addActivity", b);
|
|
7106
7104
|
}, d = (b) => {
|
|
7105
|
+
e("addActivity", b);
|
|
7106
|
+
}, v = (b) => {
|
|
7107
7107
|
e("update:activity", b);
|
|
7108
7108
|
}, u = (b) => {
|
|
7109
7109
|
e("addSubtask", b);
|
|
7110
7110
|
}, m = _(
|
|
7111
|
-
() => l.value.flatMap((b) => b
|
|
7111
|
+
() => l.value.flatMap((b) => b.activities)
|
|
7112
7112
|
), C = (b) => {
|
|
7113
7113
|
e("addFiles", b);
|
|
7114
7114
|
}, y = (b) => {
|
|
@@ -7180,13 +7180,13 @@ const uc = { class: "ao-project-overview" }, cc = { class: "ao-project" }, dc =
|
|
|
7180
7180
|
"project-name": b.project.name,
|
|
7181
7181
|
users: b.users,
|
|
7182
7182
|
onClose: w[0] || (w[0] = (X) => b.$router.push({ name: H(Qe).project })),
|
|
7183
|
-
onAddActivity:
|
|
7183
|
+
onAddActivity: d
|
|
7184
7184
|
}, null, 8, ["phases", "project-id", "project-name", "users"]),
|
|
7185
7185
|
(c(), U(kt, { to: "body" }, [
|
|
7186
7186
|
$(D, {
|
|
7187
7187
|
name: "modal",
|
|
7188
7188
|
activities: m.value,
|
|
7189
|
-
"onUpdate:activity":
|
|
7189
|
+
"onUpdate:activity": v,
|
|
7190
7190
|
onAddSubtask: u,
|
|
7191
7191
|
onAddFiles: C,
|
|
7192
7192
|
onRemoveFile: y,
|
|
@@ -7245,18 +7245,18 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7245
7245
|
id: t.id,
|
|
7246
7246
|
name: m
|
|
7247
7247
|
});
|
|
7248
|
-
}, n = _(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), l = _(() => [t.assignee]), i = (m) => {
|
|
7248
|
+
}, n = _(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), l = _(() => t.assignee ? [t.assignee] : []), i = (m) => {
|
|
7249
7249
|
const { firstName: C, lastName: y } = m || {};
|
|
7250
7250
|
return C && y ? `${C} ${y}` : "";
|
|
7251
7251
|
}, o = (m) => {
|
|
7252
7252
|
e("removeAssignee", m);
|
|
7253
|
-
},
|
|
7253
|
+
}, d = _(() => {
|
|
7254
7254
|
var m;
|
|
7255
7255
|
return (m = t.tasks) == null ? void 0 : m.length;
|
|
7256
|
-
}),
|
|
7256
|
+
}), v = _(() => {
|
|
7257
7257
|
var m;
|
|
7258
7258
|
return (m = t.tasks) == null ? void 0 : m.filter((C) => C.isDone).length;
|
|
7259
|
-
}), u = _(() => (
|
|
7259
|
+
}), u = _(() => (v.value || 0) / (d.value || 1));
|
|
7260
7260
|
return (m, C) => (c(), U(i1, {
|
|
7261
7261
|
class: "ao-card-feed",
|
|
7262
7262
|
"is-clickable": !0
|
|
@@ -7333,7 +7333,7 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7333
7333
|
name: "SelectCheckBox",
|
|
7334
7334
|
size: "sm"
|
|
7335
7335
|
}),
|
|
7336
|
-
r("span", Pc, R(
|
|
7336
|
+
r("span", Pc, R(v.value) + " / " + R(d.value), 1)
|
|
7337
7337
|
]),
|
|
7338
7338
|
$(l1, {
|
|
7339
7339
|
percentages: u.value,
|
|
@@ -7371,9 +7371,9 @@ const Nc = { class: "ao-project-milestone" }, Bc = { class: "ao-project-mileston
|
|
|
7371
7371
|
}), o = _(() => {
|
|
7372
7372
|
var u;
|
|
7373
7373
|
return (u = i.value) == null ? void 0 : u.activities;
|
|
7374
|
-
}),
|
|
7374
|
+
}), d = (u) => {
|
|
7375
7375
|
e("close", u);
|
|
7376
|
-
},
|
|
7376
|
+
}, v = () => {
|
|
7377
7377
|
const { name: u, rank: m } = Xe(o.value ?? [], "activity", s);
|
|
7378
7378
|
e("addActivity", {
|
|
7379
7379
|
milestoneId: t.milestoneId,
|
|
@@ -7396,7 +7396,7 @@ const Nc = { class: "ao-project-milestone" }, Bc = { class: "ao-project-mileston
|
|
|
7396
7396
|
$(de, {
|
|
7397
7397
|
"icon-name": "CloseRounded",
|
|
7398
7398
|
variant: "ghost",
|
|
7399
|
-
onClick:
|
|
7399
|
+
onClick: d
|
|
7400
7400
|
})
|
|
7401
7401
|
]),
|
|
7402
7402
|
r("div", Uc, [
|
|
@@ -7428,7 +7428,7 @@ const Nc = { class: "ao-project-milestone" }, Bc = { class: "ao-project-mileston
|
|
|
7428
7428
|
$(je, {
|
|
7429
7429
|
"icon-name": "Add",
|
|
7430
7430
|
label: u.$t("project.activity.add"),
|
|
7431
|
-
onClick:
|
|
7431
|
+
onClick: v
|
|
7432
7432
|
}, null, 8, ["label"])
|
|
7433
7433
|
])
|
|
7434
7434
|
])
|
|
@@ -7453,7 +7453,7 @@ const qc = { class: "ao-comment" }, Fc = { class: "ao-comment__body" }, zc = ["c
|
|
|
7453
7453
|
const t = a, s = _(() => {
|
|
7454
7454
|
const M = t.user;
|
|
7455
7455
|
return M ? `${M == null ? void 0 : M.firstName} ${M == null ? void 0 : M.lastName}` : null;
|
|
7456
|
-
}), n = ee(null), { isEditing: l, toggleIsEditing: i, onUpdate: o, onDiscard:
|
|
7456
|
+
}), n = ee(null), { isEditing: l, toggleIsEditing: i, onUpdate: o, onDiscard: d } = I1(n), v = _(() => $1(t.createdAt)), u = _(() => $1(t.editedAt)), m = d(), C = o((M) => {
|
|
7457
7457
|
e("edit", M);
|
|
7458
7458
|
}), y = () => {
|
|
7459
7459
|
e("remove");
|
|
@@ -7471,7 +7471,7 @@ const qc = { class: "ao-comment" }, Fc = { class: "ao-comment__body" }, zc = ["c
|
|
|
7471
7471
|
class: "ao-comment__content",
|
|
7472
7472
|
contenteditable: H(l)
|
|
7473
7473
|
}, R(M.content), 9, zc),
|
|
7474
|
-
r("span", Wc, R(u.value ||
|
|
7474
|
+
r("span", Wc, R(u.value || v.value), 1)
|
|
7475
7475
|
]),
|
|
7476
7476
|
M.isEditable ? (c(), h("div", Yc, [
|
|
7477
7477
|
H(l) ? (c(), h(oe, { key: 0 }, [
|
|
@@ -7522,38 +7522,38 @@ const Kc = { class: "ao-comments" }, xc = {
|
|
|
7522
7522
|
},
|
|
7523
7523
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
7524
7524
|
setup(a, { emit: e }) {
|
|
7525
|
-
const t = a, s = (
|
|
7525
|
+
const t = a, s = (v) => t.users.find((m) => m.id === v), n = ct(t.newComment || ""), l = _({
|
|
7526
7526
|
get() {
|
|
7527
7527
|
return n.value;
|
|
7528
7528
|
},
|
|
7529
|
-
set(
|
|
7530
|
-
n.value =
|
|
7529
|
+
set(v) {
|
|
7530
|
+
n.value = v;
|
|
7531
7531
|
}
|
|
7532
7532
|
}), i = () => {
|
|
7533
|
-
const
|
|
7534
|
-
|
|
7535
|
-
}, o = (
|
|
7533
|
+
const v = n.value.trim();
|
|
7534
|
+
v && (e("createComment", { authorId: t.userId, message: v }), n.value = "");
|
|
7535
|
+
}, o = (v, u) => {
|
|
7536
7536
|
e("updateComment", {
|
|
7537
|
-
id:
|
|
7537
|
+
id: v,
|
|
7538
7538
|
message: u
|
|
7539
7539
|
});
|
|
7540
|
-
},
|
|
7541
|
-
e("removeComment", { id:
|
|
7540
|
+
}, d = (v) => {
|
|
7541
|
+
e("removeComment", { id: v });
|
|
7542
7542
|
};
|
|
7543
|
-
return (
|
|
7543
|
+
return (v, u) => {
|
|
7544
7544
|
var m;
|
|
7545
7545
|
return c(), h("div", Kc, [
|
|
7546
|
-
((m =
|
|
7547
|
-
(c(!0), h(oe, null, he(
|
|
7546
|
+
((m = v.comments) == null ? void 0 : m.length) > 0 ? (c(), h("ul", xc, [
|
|
7547
|
+
(c(!0), h(oe, null, he(v.comments, (C) => (c(), U(Gc, {
|
|
7548
7548
|
key: C.id,
|
|
7549
7549
|
user: s(C.author.id),
|
|
7550
7550
|
content: C.message,
|
|
7551
7551
|
"created-at": C.createdAt,
|
|
7552
7552
|
"edited-at": C.updatedAt,
|
|
7553
|
-
"is-editable": C.author.id ===
|
|
7553
|
+
"is-editable": C.author.id === v.userId,
|
|
7554
7554
|
class: "ao-comment",
|
|
7555
7555
|
onEdit: (y) => o(C.id, y),
|
|
7556
|
-
onRemove: () =>
|
|
7556
|
+
onRemove: () => d(C.id)
|
|
7557
7557
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
7558
7558
|
])) : k("", !0),
|
|
7559
7559
|
r("div", Xc, [
|
|
@@ -7562,7 +7562,7 @@ const Kc = { class: "ao-comments" }, xc = {
|
|
|
7562
7562
|
onSubmit: ke(i, ["prevent"])
|
|
7563
7563
|
}, [
|
|
7564
7564
|
r("label", Jc, [
|
|
7565
|
-
r("span", ed, R(
|
|
7565
|
+
r("span", ed, R(v.$t("activity.comment.label")), 1),
|
|
7566
7566
|
xe(r("textarea", {
|
|
7567
7567
|
"onUpdate:modelValue": u[0] || (u[0] = (C) => l.value = C),
|
|
7568
7568
|
rows: "4",
|
|
@@ -7582,7 +7582,7 @@ const Kc = { class: "ao-comments" }, xc = {
|
|
|
7582
7582
|
"icon-name": "SendRounded",
|
|
7583
7583
|
color: "primary",
|
|
7584
7584
|
variant: "solid",
|
|
7585
|
-
label:
|
|
7585
|
+
label: v.$t("activity.comment.submit")
|
|
7586
7586
|
}, null, 8, ["label"])
|
|
7587
7587
|
])
|
|
7588
7588
|
], 40, Qc)
|
|
@@ -7625,13 +7625,13 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7625
7625
|
milestoneId: t.milestoneId
|
|
7626
7626
|
}
|
|
7627
7627
|
});
|
|
7628
|
-
},
|
|
7628
|
+
}, d = (C) => {
|
|
7629
7629
|
e("addSubtask", {
|
|
7630
7630
|
...C,
|
|
7631
7631
|
milestoneId: t.milestoneId,
|
|
7632
7632
|
phaseId: t.phaseId
|
|
7633
7633
|
});
|
|
7634
|
-
},
|
|
7634
|
+
}, v = (C) => {
|
|
7635
7635
|
l.value && e("addComment", {
|
|
7636
7636
|
activityId: l.value.id,
|
|
7637
7637
|
comment: C
|
|
@@ -7657,7 +7657,7 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7657
7657
|
...M
|
|
7658
7658
|
});
|
|
7659
7659
|
}),
|
|
7660
|
-
onAddSubtask:
|
|
7660
|
+
onAddSubtask: d
|
|
7661
7661
|
}, {
|
|
7662
7662
|
default: q(() => [
|
|
7663
7663
|
r("fieldset", ad, [
|
|
@@ -7672,7 +7672,7 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7672
7672
|
comments: l.value.comments,
|
|
7673
7673
|
users: H(s),
|
|
7674
7674
|
"user-id": H(n),
|
|
7675
|
-
onCreateComment:
|
|
7675
|
+
onCreateComment: v,
|
|
7676
7676
|
onUpdateComment: u,
|
|
7677
7677
|
onRemoveComment: m
|
|
7678
7678
|
}, null, 8, ["comments", "users", "user-id"])
|
|
@@ -7747,34 +7747,34 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7747
7747
|
setup(a, { emit: e }) {
|
|
7748
7748
|
const t = a, { t: s } = Re(), n = () => {
|
|
7749
7749
|
var m, C;
|
|
7750
|
-
const o = (m = t.templates) == null ? void 0 : m.at(-1),
|
|
7751
|
-
name: s("template.defaultName.template", { idx:
|
|
7752
|
-
rank:
|
|
7750
|
+
const o = (m = t.templates) == null ? void 0 : m.at(-1), d = o ? we.LexoRank.parse(o.rank).genNext() : we.LexoRank.middle(), v = ((C = t.templates) == null ? void 0 : C.length) ?? 0, u = {
|
|
7751
|
+
name: s("template.defaultName.template", { idx: v + 1 }),
|
|
7752
|
+
rank: d.format()
|
|
7753
7753
|
};
|
|
7754
7754
|
e("addTemplate", u);
|
|
7755
|
-
}, l = (o,
|
|
7755
|
+
}, l = (o, d) => {
|
|
7756
7756
|
e("updateItem", {
|
|
7757
7757
|
itemType: ue.TEMPLATES,
|
|
7758
7758
|
id: o,
|
|
7759
7759
|
templateId: o,
|
|
7760
7760
|
data: {
|
|
7761
|
-
name:
|
|
7761
|
+
name: d
|
|
7762
7762
|
}
|
|
7763
7763
|
});
|
|
7764
7764
|
}, i = (o) => {
|
|
7765
7765
|
if (o.moved) {
|
|
7766
|
-
const
|
|
7766
|
+
const d = Bt(o, t.templates ?? []);
|
|
7767
7767
|
e("updateItem", {
|
|
7768
7768
|
itemType: ue.TEMPLATES,
|
|
7769
7769
|
id: o.moved.element.id,
|
|
7770
7770
|
templateId: o.moved.element.id,
|
|
7771
7771
|
data: {
|
|
7772
|
-
rank:
|
|
7772
|
+
rank: d
|
|
7773
7773
|
}
|
|
7774
7774
|
});
|
|
7775
7775
|
}
|
|
7776
7776
|
};
|
|
7777
|
-
return (o,
|
|
7777
|
+
return (o, d) => (c(), h("div", id, [
|
|
7778
7778
|
$(Zt, null, {
|
|
7779
7779
|
secondary: q(() => [
|
|
7780
7780
|
$(de, {
|
|
@@ -7794,20 +7794,20 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7794
7794
|
handle: ".ao-card__drag",
|
|
7795
7795
|
onChange: i
|
|
7796
7796
|
}, {
|
|
7797
|
-
item: q(({ element:
|
|
7797
|
+
item: q(({ element: v }) => {
|
|
7798
7798
|
var u;
|
|
7799
7799
|
return [
|
|
7800
7800
|
$(M0, {
|
|
7801
|
-
title:
|
|
7802
|
-
phases:
|
|
7803
|
-
milestones: (u =
|
|
7804
|
-
activities:
|
|
7805
|
-
"updated-at":
|
|
7806
|
-
"updated-by":
|
|
7807
|
-
onUpdateTitle: (m) => l(
|
|
7801
|
+
title: v.name || v.id,
|
|
7802
|
+
phases: v.phases,
|
|
7803
|
+
milestones: (u = v.phases) != null && u.length ? H(e0)(v.phases) : 0,
|
|
7804
|
+
activities: v.phases ? H(t0)(v.phases) : 0,
|
|
7805
|
+
"updated-at": v.updatedAt,
|
|
7806
|
+
"updated-by": v.updatedBy,
|
|
7807
|
+
onUpdateTitle: (m) => l(v.id, m),
|
|
7808
7808
|
onClick: (m) => o.$router.push({
|
|
7809
7809
|
name: H(dt).TEMPLATE_DETAILS,
|
|
7810
|
-
params: { templateId:
|
|
7810
|
+
params: { templateId: v.id }
|
|
7811
7811
|
})
|
|
7812
7812
|
}, null, 8, ["title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
7813
7813
|
];
|
|
@@ -7862,13 +7862,13 @@ function md(a, e = {}) {
|
|
|
7862
7862
|
clearTimeout(o), n(), n = vt;
|
|
7863
7863
|
};
|
|
7864
7864
|
return (o) => {
|
|
7865
|
-
const
|
|
7866
|
-
return t && l(t),
|
|
7867
|
-
n = e.rejectOnCancel ? m : u,
|
|
7865
|
+
const d = It(a), v = It(e.maxWait);
|
|
7866
|
+
return t && l(t), d <= 0 || v !== void 0 && v <= 0 ? (s && (l(s), s = null), Promise.resolve(o())) : new Promise((u, m) => {
|
|
7867
|
+
n = e.rejectOnCancel ? m : u, v && !s && (s = setTimeout(() => {
|
|
7868
7868
|
t && l(t), s = null, u(o());
|
|
7869
|
-
},
|
|
7869
|
+
}, v)), t = setTimeout(() => {
|
|
7870
7870
|
s && l(s), s = null, u(o());
|
|
7871
|
-
},
|
|
7871
|
+
}, d);
|
|
7872
7872
|
});
|
|
7873
7873
|
};
|
|
7874
7874
|
}
|
|
@@ -7901,13 +7901,13 @@ function _d(a, e, t = {}) {
|
|
|
7901
7901
|
threshold: l = 0.1,
|
|
7902
7902
|
window: i = hd,
|
|
7903
7903
|
immediate: o = !0
|
|
7904
|
-
} = t,
|
|
7904
|
+
} = t, d = Cd(() => i && "IntersectionObserver" in i), v = _(() => {
|
|
7905
7905
|
const M = It(a);
|
|
7906
7906
|
return (Array.isArray(M) ? M : [M]).map(Qt).filter(dd);
|
|
7907
7907
|
});
|
|
7908
7908
|
let u = vt;
|
|
7909
|
-
const m = ee(o), C =
|
|
7910
|
-
() => [
|
|
7909
|
+
const m = ee(o), C = d.value ? fe(
|
|
7910
|
+
() => [v.value, Qt(s), m.value],
|
|
7911
7911
|
([M, I]) => {
|
|
7912
7912
|
if (u(), !m.value || !M.length)
|
|
7913
7913
|
return;
|
|
@@ -7928,7 +7928,7 @@ function _d(a, e, t = {}) {
|
|
|
7928
7928
|
u(), C(), m.value = !1;
|
|
7929
7929
|
};
|
|
7930
7930
|
return ud(y), {
|
|
7931
|
-
isSupported:
|
|
7931
|
+
isSupported: d,
|
|
7932
7932
|
isActive: m,
|
|
7933
7933
|
pause() {
|
|
7934
7934
|
u(), m.value = !1;
|
|
@@ -7971,49 +7971,49 @@ const gd = {
|
|
|
7971
7971
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
|
|
7972
7972
|
setup(a, { emit: e }) {
|
|
7973
7973
|
const t = a, s = ee(!1), n = ee(null);
|
|
7974
|
-
_d(n, ([{ isIntersecting:
|
|
7975
|
-
s.value =
|
|
7976
|
-
}), fe(s, (
|
|
7977
|
-
|
|
7974
|
+
_d(n, ([{ isIntersecting: d }]) => {
|
|
7975
|
+
s.value = d;
|
|
7976
|
+
}), fe(s, (d) => {
|
|
7977
|
+
d && t.hasMore && !t.isLoading && e("loadMore");
|
|
7978
7978
|
});
|
|
7979
|
-
const l = (
|
|
7980
|
-
e("selectActivity",
|
|
7981
|
-
}, i = (
|
|
7982
|
-
e("updateActivity",
|
|
7983
|
-
}, o = (
|
|
7984
|
-
"added" in
|
|
7985
|
-
id:
|
|
7979
|
+
const l = (d) => {
|
|
7980
|
+
e("selectActivity", d);
|
|
7981
|
+
}, i = (d) => {
|
|
7982
|
+
e("updateActivity", d);
|
|
7983
|
+
}, o = (d) => {
|
|
7984
|
+
"added" in d ? e("updateActivity", {
|
|
7985
|
+
id: d.added.element.id,
|
|
7986
7986
|
statusId: t.status.id,
|
|
7987
|
-
rank: Jt(t.list, 0,
|
|
7988
|
-
}) : "removed" in
|
|
7989
|
-
id:
|
|
7987
|
+
rank: Jt(t.list, 0, d.added.newIndex)
|
|
7988
|
+
}) : "removed" in d || "moved" in d && e("updateActivity", {
|
|
7989
|
+
id: d.moved.element.id,
|
|
7990
7990
|
rank: Jt(
|
|
7991
7991
|
t.list,
|
|
7992
|
-
|
|
7993
|
-
|
|
7992
|
+
d.moved.oldIndex,
|
|
7993
|
+
d.moved.newIndex
|
|
7994
7994
|
)
|
|
7995
7995
|
});
|
|
7996
7996
|
};
|
|
7997
|
-
return (
|
|
7998
|
-
|
|
7997
|
+
return (d, v) => (c(), h("div", gd, [
|
|
7998
|
+
d.title || d.$slots.header ? K(d.$slots, "header", { key: 0 }, () => {
|
|
7999
7999
|
var u;
|
|
8000
8000
|
return [
|
|
8001
8001
|
r("div", yd, [
|
|
8002
|
-
|
|
8002
|
+
d.title ? (c(), U(rd, {
|
|
8003
8003
|
key: 0,
|
|
8004
|
-
title:
|
|
8004
|
+
title: d.title,
|
|
8005
8005
|
level: 3,
|
|
8006
|
-
items: (u =
|
|
8006
|
+
items: (u = d.list) == null ? void 0 : u.length
|
|
8007
8007
|
}, null, 8, ["title", "items"])) : k("", !0)
|
|
8008
8008
|
])
|
|
8009
8009
|
];
|
|
8010
8010
|
}) : k("", !0),
|
|
8011
8011
|
$(H(ht), Pe({
|
|
8012
8012
|
class: "ao-list-kanban__list",
|
|
8013
|
-
list:
|
|
8013
|
+
list: d.list,
|
|
8014
8014
|
"item-key": "id",
|
|
8015
8015
|
group: "kanban"
|
|
8016
|
-
},
|
|
8016
|
+
}, d.$attrs, { onChange: o }), {
|
|
8017
8017
|
item: q(({ element: u }) => {
|
|
8018
8018
|
var m, C, y, M, I, E, b;
|
|
8019
8019
|
return [
|
|
@@ -8031,7 +8031,7 @@ const gd = {
|
|
|
8031
8031
|
type: u.type,
|
|
8032
8032
|
comments: (E = u.comments) == null ? void 0 : E.length,
|
|
8033
8033
|
attachments: (b = u.attachments) == null ? void 0 : b.length,
|
|
8034
|
-
users:
|
|
8034
|
+
users: d.users,
|
|
8035
8035
|
assignee: u.assignee,
|
|
8036
8036
|
onClick: () => l(u.id),
|
|
8037
8037
|
onUpdateActivity: i,
|
|
@@ -8043,34 +8043,36 @@ const gd = {
|
|
|
8043
8043
|
variant: "ghost",
|
|
8044
8044
|
"icon-name": "ArchiveOutlineRounded",
|
|
8045
8045
|
size: "sm",
|
|
8046
|
+
"icon-position": "start",
|
|
8046
8047
|
corners: "round",
|
|
8047
|
-
|
|
8048
|
-
|
|
8048
|
+
label: d.$t("feed.activity.archive"),
|
|
8049
|
+
onClick: ke(() => d.$emit("archiveActivity", { id: u.id }), ["stop"])
|
|
8050
|
+
}, null, 8, ["label", "onClick"])
|
|
8049
8051
|
]),
|
|
8050
8052
|
_: 2
|
|
8051
8053
|
}, 1032, ["id", "name", "project-name", "phase-name", "milestone-name", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "onClick", "onRemoveAssignee"])
|
|
8052
8054
|
];
|
|
8053
8055
|
}),
|
|
8054
8056
|
footer: q(() => [
|
|
8055
|
-
|
|
8057
|
+
d.isLoading ? (c(), h("div", bd, [
|
|
8056
8058
|
$(ie, { name: "Loading" })
|
|
8057
|
-
])) :
|
|
8059
|
+
])) : d.hasMore ? (c(), h("div", {
|
|
8058
8060
|
key: 2,
|
|
8059
8061
|
ref_key: "scrollEnd",
|
|
8060
8062
|
ref: n,
|
|
8061
8063
|
class: "ao-list-kanban__end"
|
|
8062
8064
|
}, null, 512)) : (c(), h("div", wd, [
|
|
8063
|
-
|
|
8065
|
+
d.noMoreLabel ? (c(), h("span", $d, R(d.noMoreLabel), 1)) : (c(), h("span", Md))
|
|
8064
8066
|
]))
|
|
8065
8067
|
]),
|
|
8066
8068
|
_: 1
|
|
8067
8069
|
}, 16, ["list"]),
|
|
8068
|
-
|
|
8069
|
-
K(
|
|
8070
|
+
d.$slots.footer || d.footerLabel ? (c(), h("div", kd, [
|
|
8071
|
+
K(d.$slots, "footer", {}, () => [
|
|
8070
8072
|
$(je, {
|
|
8071
8073
|
"icon-name": "AddBoxOutlineRounded",
|
|
8072
|
-
label:
|
|
8073
|
-
onClick:
|
|
8074
|
+
label: d.footerLabel,
|
|
8075
|
+
onClick: v[0] || (v[0] = (u) => d.$emit("add"))
|
|
8074
8076
|
}, null, 8, ["label"])
|
|
8075
8077
|
])
|
|
8076
8078
|
])) : k("", !0)
|
|
@@ -8087,8 +8089,8 @@ const Td = { class: "ao-field ao-search-field" }, Ad = ["value", "placeholder",
|
|
|
8087
8089
|
emits: ["update:modelValue", "clear"],
|
|
8088
8090
|
setup(a, { emit: e }) {
|
|
8089
8091
|
const t = a, s = async (i) => {
|
|
8090
|
-
const
|
|
8091
|
-
e("update:modelValue",
|
|
8092
|
+
const d = i.target.value;
|
|
8093
|
+
e("update:modelValue", d, i);
|
|
8092
8094
|
}, n = fd(s, t.delay), l = (i) => {
|
|
8093
8095
|
e("clear", i);
|
|
8094
8096
|
};
|
|
@@ -8099,7 +8101,7 @@ const Td = { class: "ao-field ao-search-field" }, Ad = ["value", "placeholder",
|
|
|
8099
8101
|
class: "ao-field__input ao-search-field__input",
|
|
8100
8102
|
placeholder: i.placeholder,
|
|
8101
8103
|
onInput: o[0] || (o[0] = //@ts-ignore
|
|
8102
|
-
(...
|
|
8104
|
+
(...d) => H(n) && H(n)(...d)),
|
|
8103
8105
|
onKeypress: mt(s, ["enter"])
|
|
8104
8106
|
}, null, 40, Ad),
|
|
8105
8107
|
$(ie, {
|
|
@@ -8163,7 +8165,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8163
8165
|
},
|
|
8164
8166
|
{ immediate: !0 }
|
|
8165
8167
|
);
|
|
8166
|
-
const
|
|
8168
|
+
const d = (S) => {
|
|
8167
8169
|
var V, G;
|
|
8168
8170
|
const j = (V = t.activities) == null ? void 0 : V.at(-1), le = j ? we.LexoRank.parse(j.rank).genNext() : we.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, P = {
|
|
8169
8171
|
name: s("activity.defaultName", { idx: g + 1 }),
|
|
@@ -8171,7 +8173,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8171
8173
|
statusId: S.id
|
|
8172
8174
|
};
|
|
8173
8175
|
e("addActivity", P);
|
|
8174
|
-
},
|
|
8176
|
+
}, v = (S, j) => {
|
|
8175
8177
|
e("update:filters", { ...t.filters, [S]: j });
|
|
8176
8178
|
}, u = _(() => t.projects.map((S) => ({
|
|
8177
8179
|
value: S.id,
|
|
@@ -8256,7 +8258,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8256
8258
|
searchable: !0,
|
|
8257
8259
|
class: "ao-feed__filter",
|
|
8258
8260
|
placeholder: S.$t("feed.filters.project.placeholder"),
|
|
8259
|
-
"onUpdate:modelValue": j[1] || (j[1] = (g) =>
|
|
8261
|
+
"onUpdate:modelValue": j[1] || (j[1] = (g) => v(H(Ke).project, g))
|
|
8260
8262
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
8261
8263
|
$(H(pe), {
|
|
8262
8264
|
"model-value": S.filters[H(Ke).type],
|
|
@@ -8266,7 +8268,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8266
8268
|
searchable: !0,
|
|
8267
8269
|
class: "ao-feed__filter",
|
|
8268
8270
|
placeholder: S.$t("feed.filters.activityType.placeholder"),
|
|
8269
|
-
"onUpdate:modelValue": j[2] || (j[2] = (g) =>
|
|
8271
|
+
"onUpdate:modelValue": j[2] || (j[2] = (g) => v(H(Ke).type, g))
|
|
8270
8272
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
8271
8273
|
$(H(pe), {
|
|
8272
8274
|
"model-value": S.filters[H(Ke).assignee],
|
|
@@ -8276,7 +8278,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8276
8278
|
searchable: !0,
|
|
8277
8279
|
class: "ao-feed__filter",
|
|
8278
8280
|
placeholder: S.$t("feed.filters.assignee.placeholder"),
|
|
8279
|
-
"onUpdate:modelValue": j[3] || (j[3] = (g) =>
|
|
8281
|
+
"onUpdate:modelValue": j[3] || (j[3] = (g) => v(H(Ke).assignee, g))
|
|
8280
8282
|
}, {
|
|
8281
8283
|
tag: q(({ option: g, handleTagRemove: P }) => [
|
|
8282
8284
|
$(tt, {
|
|
@@ -8299,7 +8301,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8299
8301
|
title: g.name,
|
|
8300
8302
|
"footer-label": S.$t("feed.activity.add"),
|
|
8301
8303
|
users: S.users,
|
|
8302
|
-
onAdd: () =>
|
|
8304
|
+
onAdd: () => d(g),
|
|
8303
8305
|
onSelectActivity: H(l),
|
|
8304
8306
|
onArchiveActivity: b,
|
|
8305
8307
|
onUpdateActivity: M
|