@26lights/orcha 0.9.13 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +967 -963
- package/dist/orcha.umd.js +2 -2
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as z, openBlock as f, createBlock as F, unref as j, mergeProps as
|
|
1
|
+
import { defineComponent as z, openBlock as f, createBlock as F, unref as j, mergeProps as Ve, createElementBlock as p, createElementVNode as d, pushScopeId as an, popScopeId as nn, createStaticVNode as sn, computed as y, resolveDynamicComponent as et, normalizeClass as G, renderSlot as Q, toDisplayString as q, createCommentVNode as I, ref as J, watch as ue, nextTick as Ie, withKeys as Qe, toHandlers as on, withCtx as N, createTextVNode as e1, createVNode as M, withModifiers as Ce, createSlots as oa, Fragment as fe, renderList as ge, onMounted as Ht, onBeforeUnmount as ln, onUnmounted as la, toRefs as $e, getCurrentInstance as tt, toRef as ct, normalizeProps as rn, guardReactiveProps as un, onUpdated as cn, withDirectives as dt, vModelText as It, vModelCheckbox as dn, Teleport as Ot, normalizeStyle as fn, resolveComponent as vn, getCurrentScope as hn, onScopeDispose as mn, provide as pn } from "vue";
|
|
2
2
|
import { RouterView as Cn } from "vue-router";
|
|
3
3
|
import Ke from "vuedraggable";
|
|
4
|
-
const
|
|
4
|
+
const V4 = /* @__PURE__ */ z({
|
|
5
5
|
__name: "AoTemplates",
|
|
6
6
|
props: {
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
return (e, t) => (f(), F(j(Cn),
|
|
10
|
+
return (e, t) => (f(), F(j(Cn), Ve({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), B = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
@@ -1192,22 +1192,22 @@ const ec = ["type"], tc = {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
1194
|
function ua(a) {
|
|
1195
|
-
const e =
|
|
1195
|
+
const e = J(!1), t = J(""), s = y(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
|
|
1196
1196
|
e.value = !e.value;
|
|
1197
1197
|
}, o = (r) => {
|
|
1198
1198
|
e.value = r;
|
|
1199
1199
|
}, i = (r) => async () => {
|
|
1200
|
-
o(!1), await
|
|
1200
|
+
o(!1), await Ie(() => {
|
|
1201
1201
|
a.value[s.value] = t.value, r == null || r();
|
|
1202
1202
|
});
|
|
1203
|
-
}, l = (r) => async (
|
|
1204
|
-
const
|
|
1205
|
-
o(!1), await
|
|
1206
|
-
r(
|
|
1203
|
+
}, l = (r) => async (c) => {
|
|
1204
|
+
const u = a.value[s.value];
|
|
1205
|
+
o(!1), await Ie(() => {
|
|
1206
|
+
r(u, c);
|
|
1207
1207
|
});
|
|
1208
1208
|
};
|
|
1209
1209
|
return ue(e, async (r) => {
|
|
1210
|
-
await
|
|
1210
|
+
await Ie(() => {
|
|
1211
1211
|
setTimeout(() => {
|
|
1212
1212
|
a.value && r && (a.value.focus(), t.value = a.value[s.value]);
|
|
1213
1213
|
}, 1);
|
|
@@ -1232,17 +1232,17 @@ const pe = /* @__PURE__ */ z({
|
|
|
1232
1232
|
},
|
|
1233
1233
|
emits: ["update:title", "toggle-is-editing"],
|
|
1234
1234
|
setup(a, { emit: e }) {
|
|
1235
|
-
const t = a, s =
|
|
1236
|
-
change:
|
|
1235
|
+
const t = a, s = J(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ua(s), r = y(() => n.value ? "input" : t.tag || `h${t.level}`), c = y(() => t.isEditable ? n.value ? {
|
|
1236
|
+
change: u,
|
|
1237
1237
|
click: (w) => w.stopPropagation(),
|
|
1238
|
-
blur:
|
|
1238
|
+
blur: h
|
|
1239
1239
|
} : {
|
|
1240
1240
|
click: g,
|
|
1241
1241
|
focus: g
|
|
1242
|
-
} : {}),
|
|
1242
|
+
} : {}), u = i((w, T) => {
|
|
1243
1243
|
const b = T.target.value;
|
|
1244
1244
|
e("update:title", b);
|
|
1245
|
-
}),
|
|
1245
|
+
}), v = l(), h = async () => {
|
|
1246
1246
|
n.value && o(!1);
|
|
1247
1247
|
}, m = () => {
|
|
1248
1248
|
e("toggle-is-editing", !1);
|
|
@@ -1252,9 +1252,9 @@ const pe = /* @__PURE__ */ z({
|
|
|
1252
1252
|
return ue(
|
|
1253
1253
|
() => t.isEditable,
|
|
1254
1254
|
(w) => {
|
|
1255
|
-
w ||
|
|
1255
|
+
w || v();
|
|
1256
1256
|
}
|
|
1257
|
-
), (w, T) => (f(), F(et(r.value),
|
|
1257
|
+
), (w, T) => (f(), F(et(r.value), Ve({
|
|
1258
1258
|
id: w.id,
|
|
1259
1259
|
ref_key: "target",
|
|
1260
1260
|
ref: s,
|
|
@@ -1272,8 +1272,8 @@ const pe = /* @__PURE__ */ z({
|
|
|
1272
1272
|
value: j(n) ? w.title : null,
|
|
1273
1273
|
tabindex: "0",
|
|
1274
1274
|
onKeyup: Qe(m, ["enter"])
|
|
1275
|
-
}, on(
|
|
1276
|
-
onKeydown: Qe(j(
|
|
1275
|
+
}, on(c.value), {
|
|
1276
|
+
onKeydown: Qe(j(v), ["esc"])
|
|
1277
1277
|
}), {
|
|
1278
1278
|
default: N(() => [
|
|
1279
1279
|
e1(q(w.title), 1)
|
|
@@ -1392,7 +1392,7 @@ const T1 = /* @__PURE__ */ z({
|
|
|
1392
1392
|
n.variant ? `ao-tag--${n.variant}` : ""
|
|
1393
1393
|
])
|
|
1394
1394
|
}, [
|
|
1395
|
-
(f(), F(et(t.value),
|
|
1395
|
+
(f(), F(et(t.value), Ve({ class: "ao-tag__label" }, s.value, {
|
|
1396
1396
|
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
1397
1397
|
}), {
|
|
1398
1398
|
default: N(() => [
|
|
@@ -1501,32 +1501,32 @@ function yc(a) {
|
|
|
1501
1501
|
return Math.round(t / gc) + 1;
|
|
1502
1502
|
}
|
|
1503
1503
|
function Kt(a, e) {
|
|
1504
|
-
var t, s, n, o, i, l, r,
|
|
1504
|
+
var t, s, n, o, i, l, r, c;
|
|
1505
1505
|
_e(1, arguments);
|
|
1506
|
-
var
|
|
1507
|
-
if (!(
|
|
1506
|
+
var u = a1(), v = We((t = (s = (n = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1507
|
+
if (!(v >= 0 && v <= 6))
|
|
1508
1508
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1509
|
-
var
|
|
1510
|
-
return
|
|
1509
|
+
var h = De(a), m = h.getUTCDay(), g = (m < v ? 7 : 0) + m - v;
|
|
1510
|
+
return h.setUTCDate(h.getUTCDate() - g), h.setUTCHours(0, 0, 0, 0), h;
|
|
1511
1511
|
}
|
|
1512
1512
|
function ma(a, e) {
|
|
1513
|
-
var t, s, n, o, i, l, r,
|
|
1513
|
+
var t, s, n, o, i, l, r, c;
|
|
1514
1514
|
_e(1, arguments);
|
|
1515
|
-
var
|
|
1515
|
+
var u = De(a), v = u.getUTCFullYear(), h = a1(), m = We((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : h.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = h.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
1516
1516
|
if (!(m >= 1 && m <= 7))
|
|
1517
1517
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1518
1518
|
var g = /* @__PURE__ */ new Date(0);
|
|
1519
|
-
g.setUTCFullYear(
|
|
1519
|
+
g.setUTCFullYear(v + 1, 0, m), g.setUTCHours(0, 0, 0, 0);
|
|
1520
1520
|
var w = Kt(g, e), T = /* @__PURE__ */ new Date(0);
|
|
1521
|
-
T.setUTCFullYear(
|
|
1521
|
+
T.setUTCFullYear(v, 0, m), T.setUTCHours(0, 0, 0, 0);
|
|
1522
1522
|
var k = Kt(T, e);
|
|
1523
|
-
return
|
|
1523
|
+
return u.getTime() >= w.getTime() ? v + 1 : u.getTime() >= k.getTime() ? v : v - 1;
|
|
1524
1524
|
}
|
|
1525
1525
|
function bc(a, e) {
|
|
1526
|
-
var t, s, n, o, i, l, r,
|
|
1526
|
+
var t, s, n, o, i, l, r, c;
|
|
1527
1527
|
_e(1, arguments);
|
|
1528
|
-
var
|
|
1529
|
-
m.setUTCFullYear(
|
|
1528
|
+
var u = a1(), v = We((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), h = ma(a, e), m = /* @__PURE__ */ new Date(0);
|
|
1529
|
+
m.setUTCFullYear(h, 0, v), m.setUTCHours(0, 0, 0, 0);
|
|
1530
1530
|
var g = Kt(m, e);
|
|
1531
1531
|
return g;
|
|
1532
1532
|
}
|
|
@@ -2374,8 +2374,8 @@ function wt(a) {
|
|
|
2374
2374
|
var l = a.defaultWidth, r = t != null && t.width ? String(t.width) : a.defaultWidth;
|
|
2375
2375
|
n = a.values[r] || a.values[l];
|
|
2376
2376
|
}
|
|
2377
|
-
var
|
|
2378
|
-
return n[
|
|
2377
|
+
var c = a.argumentCallback ? a.argumentCallback(e) : e;
|
|
2378
|
+
return n[c];
|
|
2379
2379
|
};
|
|
2380
2380
|
}
|
|
2381
2381
|
var qc = {
|
|
@@ -2503,16 +2503,16 @@ function $t(a) {
|
|
|
2503
2503
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s = t.width, n = s && a.matchPatterns[s] || a.matchPatterns[a.defaultMatchWidth], o = e.match(n);
|
|
2504
2504
|
if (!o)
|
|
2505
2505
|
return null;
|
|
2506
|
-
var i = o[0], l = s && a.parsePatterns[s] || a.parsePatterns[a.defaultParseWidth], r = Array.isArray(l) ? td(l, function(
|
|
2507
|
-
return
|
|
2508
|
-
}) : ed(l, function(
|
|
2509
|
-
return
|
|
2510
|
-
}),
|
|
2511
|
-
|
|
2512
|
-
var
|
|
2506
|
+
var i = o[0], l = s && a.parsePatterns[s] || a.parsePatterns[a.defaultParseWidth], r = Array.isArray(l) ? td(l, function(v) {
|
|
2507
|
+
return v.test(i);
|
|
2508
|
+
}) : ed(l, function(v) {
|
|
2509
|
+
return v.test(i);
|
|
2510
|
+
}), c;
|
|
2511
|
+
c = a.valueCallback ? a.valueCallback(r) : r, c = t.valueCallback ? t.valueCallback(c) : c;
|
|
2512
|
+
var u = e.slice(i.length);
|
|
2513
2513
|
return {
|
|
2514
|
-
value:
|
|
2515
|
-
rest:
|
|
2514
|
+
value: c,
|
|
2515
|
+
rest: u
|
|
2516
2516
|
};
|
|
2517
2517
|
};
|
|
2518
2518
|
}
|
|
@@ -2642,9 +2642,9 @@ var Cd = {
|
|
|
2642
2642
|
const _d = Cd;
|
|
2643
2643
|
var gd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, bd = /^'([^]*?)'?$/, wd = /''/g, $d = /[a-zA-Z]/;
|
|
2644
2644
|
function Md(a, e, t) {
|
|
2645
|
-
var s, n, o, i, l, r, u,
|
|
2645
|
+
var s, n, o, i, l, r, c, u, v, h, m, g, w, T, k, b, V, U;
|
|
2646
2646
|
_e(2, arguments);
|
|
2647
|
-
var Z = String(e), H = a1(), O = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : H.locale) !== null && s !== void 0 ? s : _d, W = We((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (
|
|
2647
|
+
var Z = String(e), H = a1(), O = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : H.locale) !== null && s !== void 0 ? s : _d, W = We((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (c = t.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : H.firstWeekContainsDate) !== null && i !== void 0 ? i : (v = H.locale) === null || v === void 0 || (h = v.options) === null || h === void 0 ? void 0 : h.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2648
2648
|
if (!(W >= 1 && W <= 7))
|
|
2649
2649
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2650
2650
|
var X = We((m = (g = (w = (T = t == null ? void 0 : t.weekStartsOn) !== null && T !== void 0 ? T : t == null || (k = t.locale) === null || k === void 0 || (b = k.options) === null || b === void 0 ? void 0 : b.weekStartsOn) !== null && w !== void 0 ? w : H.weekStartsOn) !== null && g !== void 0 ? g : (V = H.locale) === null || V === void 0 || (U = V.options) === null || U === void 0 ? void 0 : U.weekStartsOn) !== null && m !== void 0 ? m : 0);
|
|
@@ -2703,17 +2703,17 @@ function Ad(a, e) {
|
|
|
2703
2703
|
}
|
|
2704
2704
|
if (!o || isNaN(o.getTime()))
|
|
2705
2705
|
return /* @__PURE__ */ new Date(NaN);
|
|
2706
|
-
var l = o.getTime(), r = 0,
|
|
2706
|
+
var l = o.getTime(), r = 0, c;
|
|
2707
2707
|
if (n.time && (r = Vd(n.time), isNaN(r)))
|
|
2708
2708
|
return /* @__PURE__ */ new Date(NaN);
|
|
2709
2709
|
if (n.timezone) {
|
|
2710
|
-
if (
|
|
2710
|
+
if (c = Hd(n.timezone), isNaN(c))
|
|
2711
2711
|
return /* @__PURE__ */ new Date(NaN);
|
|
2712
2712
|
} else {
|
|
2713
|
-
var
|
|
2714
|
-
return
|
|
2713
|
+
var u = new Date(l + r), v = /* @__PURE__ */ new Date(0);
|
|
2714
|
+
return v.setFullYear(u.getUTCFullYear(), u.getUTCMonth(), u.getUTCDate()), v.setHours(u.getUTCHours(), u.getUTCMinutes(), u.getUTCSeconds(), u.getUTCMilliseconds()), v;
|
|
2715
2715
|
}
|
|
2716
|
-
return new Date(l + r +
|
|
2716
|
+
return new Date(l + r + c);
|
|
2717
2717
|
}
|
|
2718
2718
|
var Ft = {
|
|
2719
2719
|
dateTimeDelimiter: /[T ]/,
|
|
@@ -2752,8 +2752,8 @@ function Ld(a, e) {
|
|
|
2752
2752
|
var s = !!t[4], n = Mt(t[1]), o = Mt(t[2]) - 1, i = Mt(t[3]), l = Mt(t[4]), r = Mt(t[5]) - 1;
|
|
2753
2753
|
if (s)
|
|
2754
2754
|
return Rd(e, l, r) ? Dd(e, l, r) : /* @__PURE__ */ new Date(NaN);
|
|
2755
|
-
var
|
|
2756
|
-
return !Bd(e, o, i) || !Nd(e, n) ? /* @__PURE__ */ new Date(NaN) : (
|
|
2755
|
+
var c = /* @__PURE__ */ new Date(0);
|
|
2756
|
+
return !Bd(e, o, i) || !Nd(e, n) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(e, o, Math.max(n, i)), c);
|
|
2757
2757
|
}
|
|
2758
2758
|
function Mt(a) {
|
|
2759
2759
|
return a ? parseInt(a) : 1;
|
|
@@ -2877,11 +2877,11 @@ class K {
|
|
|
2877
2877
|
const n = Math.max(t.length, s.length), o = new Array(n).fill(0);
|
|
2878
2878
|
let i = 0;
|
|
2879
2879
|
for (let l = 0; l < n; ++l) {
|
|
2880
|
-
const r = l < t.length ? t[l] : 0,
|
|
2881
|
-
let
|
|
2882
|
-
for (i = 0;
|
|
2880
|
+
const r = l < t.length ? t[l] : 0, c = l < s.length ? s[l] : 0;
|
|
2881
|
+
let u = r + c + i;
|
|
2882
|
+
for (i = 0; u >= e.getBase(); u -= e.getBase())
|
|
2883
2883
|
++i;
|
|
2884
|
-
o[l] =
|
|
2884
|
+
o[l] = u;
|
|
2885
2885
|
}
|
|
2886
2886
|
return K.extendWithCarry(o, i);
|
|
2887
2887
|
}
|
|
@@ -3177,9 +3177,9 @@ function ga() {
|
|
|
3177
3177
|
static from(n) {
|
|
3178
3178
|
const o = a.LexoInteger.parse(n, e.LexoRank.NUMERAL_SYSTEM), i = t.VALUES, l = i.length;
|
|
3179
3179
|
for (let r = 0; r < l; ++r) {
|
|
3180
|
-
const
|
|
3181
|
-
if (
|
|
3182
|
-
return
|
|
3180
|
+
const c = i[r];
|
|
3181
|
+
if (c.value.equals(o))
|
|
3182
|
+
return c;
|
|
3183
3183
|
}
|
|
3184
3184
|
throw new Error("Unknown bucket: " + n);
|
|
3185
3185
|
}
|
|
@@ -3371,71 +3371,71 @@ function ba() {
|
|
|
3371
3371
|
static between(i, l) {
|
|
3372
3372
|
if (i.getSystem().getBase() !== l.getSystem().getBase())
|
|
3373
3373
|
throw new Error("Expected same system");
|
|
3374
|
-
let r = i,
|
|
3374
|
+
let r = i, c = l, u;
|
|
3375
3375
|
if (i.getScale() < l.getScale()) {
|
|
3376
|
-
if (
|
|
3376
|
+
if (u = l.setScale(i.getScale(), !1), i.compareTo(u) >= 0)
|
|
3377
3377
|
return n.mid(i, l);
|
|
3378
|
-
|
|
3378
|
+
c = u;
|
|
3379
3379
|
}
|
|
3380
|
-
if (i.getScale() >
|
|
3381
|
-
if (
|
|
3380
|
+
if (i.getScale() > c.getScale()) {
|
|
3381
|
+
if (u = i.setScale(c.getScale(), !0), u.compareTo(c) >= 0)
|
|
3382
3382
|
return n.mid(i, l);
|
|
3383
|
-
r =
|
|
3383
|
+
r = u;
|
|
3384
3384
|
}
|
|
3385
|
-
let
|
|
3386
|
-
for (let g = r.getScale(); g > 0;
|
|
3385
|
+
let v;
|
|
3386
|
+
for (let g = r.getScale(); g > 0; c = v) {
|
|
3387
3387
|
const w = g - 1, T = r.setScale(w, !0);
|
|
3388
|
-
if (
|
|
3388
|
+
if (v = c.setScale(w, !1), T.compareTo(v) === 0)
|
|
3389
3389
|
return n.checkMid(i, l, T);
|
|
3390
|
-
if (T.compareTo(
|
|
3390
|
+
if (T.compareTo(v) > 0)
|
|
3391
3391
|
break;
|
|
3392
3392
|
g = w, r = T;
|
|
3393
3393
|
}
|
|
3394
|
-
let
|
|
3395
|
-
for (let g =
|
|
3394
|
+
let h = n.middleInternal(i, l, r, c), m;
|
|
3395
|
+
for (let g = h.getScale(); g > 0; g = m) {
|
|
3396
3396
|
m = g - 1;
|
|
3397
|
-
const w =
|
|
3397
|
+
const w = h.setScale(m);
|
|
3398
3398
|
if (i.compareTo(w) >= 0 || w.compareTo(l) >= 0)
|
|
3399
3399
|
break;
|
|
3400
|
-
|
|
3400
|
+
h = w;
|
|
3401
3401
|
}
|
|
3402
|
-
return
|
|
3402
|
+
return h;
|
|
3403
3403
|
}
|
|
3404
3404
|
static parse(i) {
|
|
3405
|
-
const l = i.split("|"), r = e.default.from(l[0]),
|
|
3406
|
-
return new n(r,
|
|
3405
|
+
const l = i.split("|"), r = e.default.from(l[0]), c = a.LexoDecimal.parse(l[1], n.NUMERAL_SYSTEM);
|
|
3406
|
+
return new n(r, c);
|
|
3407
3407
|
}
|
|
3408
3408
|
static from(i, l) {
|
|
3409
3409
|
if (l.getSystem().getBase() !== n.NUMERAL_SYSTEM.getBase())
|
|
3410
3410
|
throw new Error("Expected different system");
|
|
3411
3411
|
return new n(i, l);
|
|
3412
3412
|
}
|
|
3413
|
-
static middleInternal(i, l, r,
|
|
3414
|
-
const
|
|
3415
|
-
return n.checkMid(i, l,
|
|
3413
|
+
static middleInternal(i, l, r, c) {
|
|
3414
|
+
const u = n.mid(r, c);
|
|
3415
|
+
return n.checkMid(i, l, u);
|
|
3416
3416
|
}
|
|
3417
3417
|
static checkMid(i, l, r) {
|
|
3418
3418
|
return i.compareTo(r) >= 0 || r.compareTo(l) >= 0 ? n.mid(i, l) : r;
|
|
3419
3419
|
}
|
|
3420
3420
|
static mid(i, l) {
|
|
3421
|
-
const
|
|
3422
|
-
if (
|
|
3423
|
-
const
|
|
3424
|
-
if (
|
|
3425
|
-
return h;
|
|
3426
|
-
const v = u.setScale(c, !0);
|
|
3427
|
-
if (v.compareTo(l) < 0)
|
|
3421
|
+
const c = i.add(l).multiply(a.LexoDecimal.half(i.getSystem())), u = i.getScale() > l.getScale() ? i.getScale() : l.getScale();
|
|
3422
|
+
if (c.getScale() > u) {
|
|
3423
|
+
const v = c.setScale(u, !1);
|
|
3424
|
+
if (v.compareTo(i) > 0)
|
|
3428
3425
|
return v;
|
|
3426
|
+
const h = c.setScale(u, !0);
|
|
3427
|
+
if (h.compareTo(l) < 0)
|
|
3428
|
+
return h;
|
|
3429
3429
|
}
|
|
3430
|
-
return
|
|
3430
|
+
return c;
|
|
3431
3431
|
}
|
|
3432
3432
|
static formatDecimal(i) {
|
|
3433
3433
|
const l = i.format(), r = new t.default(l);
|
|
3434
|
-
let
|
|
3435
|
-
const
|
|
3436
|
-
for (
|
|
3437
|
-
r.insert(0,
|
|
3438
|
-
for (; r[r.length - 1] ===
|
|
3434
|
+
let c = l.indexOf(n.NUMERAL_SYSTEM.getRadixPointChar());
|
|
3435
|
+
const u = n.NUMERAL_SYSTEM.toChar(0);
|
|
3436
|
+
for (c < 0 && (c = l.length, r.append(n.NUMERAL_SYSTEM.getRadixPointChar())); c < 6; )
|
|
3437
|
+
r.insert(0, u), ++c;
|
|
3438
|
+
for (; r[r.length - 1] === u; )
|
|
3439
3439
|
r.length = r.length - 1;
|
|
3440
3440
|
return r.toString();
|
|
3441
3441
|
}
|
|
@@ -3828,7 +3828,7 @@ const I3 = /* @__PURE__ */ z({
|
|
|
3828
3828
|
var n;
|
|
3829
3829
|
return (n = e.milestones) == null ? void 0 : n.length;
|
|
3830
3830
|
}), s = y(() => e.milestones ? wa(e.milestones) : 0);
|
|
3831
|
-
return (n, o) => (f(), F(I1,
|
|
3831
|
+
return (n, o) => (f(), F(I1, Ve({
|
|
3832
3832
|
id: n.id,
|
|
3833
3833
|
title: n.name,
|
|
3834
3834
|
activities: s.value,
|
|
@@ -3897,21 +3897,21 @@ const I3 = /* @__PURE__ */ z({
|
|
|
3897
3897
|
class: "ao-list__title"
|
|
3898
3898
|
})
|
|
3899
3899
|
]),
|
|
3900
|
-
item: N(({ element:
|
|
3900
|
+
item: N(({ element: c }) => [
|
|
3901
3901
|
(f(), F(O3, {
|
|
3902
|
-
id:
|
|
3903
|
-
key:
|
|
3904
|
-
title:
|
|
3905
|
-
activities:
|
|
3906
|
-
"is-active": l.milestoneId ===
|
|
3902
|
+
id: c.id,
|
|
3903
|
+
key: c.id,
|
|
3904
|
+
title: c.name,
|
|
3905
|
+
activities: c.activities,
|
|
3906
|
+
"is-active": l.milestoneId === c.id,
|
|
3907
3907
|
"is-draggable": !0,
|
|
3908
|
-
"onUpdate:title": (
|
|
3909
|
-
onClick: (
|
|
3908
|
+
"onUpdate:title": (u) => o({ id: c.id, name: u }),
|
|
3909
|
+
onClick: (u) => l.$router.push({
|
|
3910
3910
|
params: {
|
|
3911
|
-
milestoneId:
|
|
3911
|
+
milestoneId: c.id
|
|
3912
3912
|
}
|
|
3913
3913
|
}),
|
|
3914
|
-
onRemove: () => n(
|
|
3914
|
+
onRemove: () => n(c.id)
|
|
3915
3915
|
}, null, 8, ["id", "title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3916
3916
|
]),
|
|
3917
3917
|
footer: N(() => [
|
|
@@ -3987,17 +3987,17 @@ const I3 = /* @__PURE__ */ z({
|
|
|
3987
3987
|
class: "ao-list__title"
|
|
3988
3988
|
})
|
|
3989
3989
|
]),
|
|
3990
|
-
item: N(({ element:
|
|
3990
|
+
item: N(({ element: c }) => [
|
|
3991
3991
|
(f(), F(V3, {
|
|
3992
|
-
id:
|
|
3993
|
-
key:
|
|
3994
|
-
title:
|
|
3995
|
-
tasks:
|
|
3996
|
-
"is-active": l.activityId ===
|
|
3992
|
+
id: c.id,
|
|
3993
|
+
key: c.id,
|
|
3994
|
+
title: c.name,
|
|
3995
|
+
tasks: c.tasks,
|
|
3996
|
+
"is-active": l.activityId === c.id,
|
|
3997
3997
|
"is-draggable": !0,
|
|
3998
|
-
"onUpdate:title": (
|
|
3999
|
-
onClick: (
|
|
4000
|
-
onRemove: () => o(
|
|
3998
|
+
"onUpdate:title": (u) => n({ id: c.id, name: u }),
|
|
3999
|
+
onClick: (u) => l.$router.push({ params: { activityId: c.id } }),
|
|
4000
|
+
onRemove: () => o(c.id)
|
|
4001
4001
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4002
4002
|
]),
|
|
4003
4003
|
footer: N(() => [
|
|
@@ -4154,31 +4154,31 @@ function ea(a, e, t) {
|
|
|
4154
4154
|
reference: s,
|
|
4155
4155
|
floating: n
|
|
4156
4156
|
} = a;
|
|
4157
|
-
const o = L1(e), i = Ma(e), l = $a(i), r = mt(e),
|
|
4157
|
+
const o = L1(e), i = Ma(e), l = $a(i), r = mt(e), c = o === "y", u = s.x + s.width / 2 - n.width / 2, v = s.y + s.height / 2 - n.height / 2, h = s[l] / 2 - n[l] / 2;
|
|
4158
4158
|
let m;
|
|
4159
4159
|
switch (r) {
|
|
4160
4160
|
case "top":
|
|
4161
4161
|
m = {
|
|
4162
|
-
x:
|
|
4162
|
+
x: u,
|
|
4163
4163
|
y: s.y - n.height
|
|
4164
4164
|
};
|
|
4165
4165
|
break;
|
|
4166
4166
|
case "bottom":
|
|
4167
4167
|
m = {
|
|
4168
|
-
x:
|
|
4168
|
+
x: u,
|
|
4169
4169
|
y: s.y + s.height
|
|
4170
4170
|
};
|
|
4171
4171
|
break;
|
|
4172
4172
|
case "right":
|
|
4173
4173
|
m = {
|
|
4174
4174
|
x: s.x + s.width,
|
|
4175
|
-
y:
|
|
4175
|
+
y: v
|
|
4176
4176
|
};
|
|
4177
4177
|
break;
|
|
4178
4178
|
case "left":
|
|
4179
4179
|
m = {
|
|
4180
4180
|
x: s.x - n.width,
|
|
4181
|
-
y:
|
|
4181
|
+
y: v
|
|
4182
4182
|
};
|
|
4183
4183
|
break;
|
|
4184
4184
|
default:
|
|
@@ -4189,10 +4189,10 @@ function ea(a, e, t) {
|
|
|
4189
4189
|
}
|
|
4190
4190
|
switch (r1(e)) {
|
|
4191
4191
|
case "start":
|
|
4192
|
-
m[i] -=
|
|
4192
|
+
m[i] -= h * (t && c ? -1 : 1);
|
|
4193
4193
|
break;
|
|
4194
4194
|
case "end":
|
|
4195
|
-
m[i] +=
|
|
4195
|
+
m[i] += h * (t && c ? -1 : 1);
|
|
4196
4196
|
break;
|
|
4197
4197
|
}
|
|
4198
4198
|
return m;
|
|
@@ -4204,14 +4204,14 @@ const X3 = async (a, e, t) => {
|
|
|
4204
4204
|
middleware: o = [],
|
|
4205
4205
|
platform: i
|
|
4206
4206
|
} = t, l = o.filter(Boolean), r = await (i.isRTL == null ? void 0 : i.isRTL(e));
|
|
4207
|
-
let
|
|
4207
|
+
let c = await i.getElementRects({
|
|
4208
4208
|
reference: a,
|
|
4209
4209
|
floating: e,
|
|
4210
4210
|
strategy: n
|
|
4211
4211
|
}), {
|
|
4212
|
-
x:
|
|
4213
|
-
y:
|
|
4214
|
-
} = ea(
|
|
4212
|
+
x: u,
|
|
4213
|
+
y: v
|
|
4214
|
+
} = ea(c, s, r), h = s, m = {}, g = 0;
|
|
4215
4215
|
for (let w = 0; w < l.length; w++) {
|
|
4216
4216
|
const {
|
|
4217
4217
|
name: T,
|
|
@@ -4222,41 +4222,41 @@ const X3 = async (a, e, t) => {
|
|
|
4222
4222
|
data: U,
|
|
4223
4223
|
reset: Z
|
|
4224
4224
|
} = await k({
|
|
4225
|
-
x:
|
|
4226
|
-
y:
|
|
4225
|
+
x: u,
|
|
4226
|
+
y: v,
|
|
4227
4227
|
initialPlacement: s,
|
|
4228
|
-
placement:
|
|
4228
|
+
placement: h,
|
|
4229
4229
|
strategy: n,
|
|
4230
4230
|
middlewareData: m,
|
|
4231
|
-
rects:
|
|
4231
|
+
rects: c,
|
|
4232
4232
|
platform: i,
|
|
4233
4233
|
elements: {
|
|
4234
4234
|
reference: a,
|
|
4235
4235
|
floating: e
|
|
4236
4236
|
}
|
|
4237
4237
|
});
|
|
4238
|
-
if (
|
|
4238
|
+
if (u = b ?? u, v = V ?? v, m = {
|
|
4239
4239
|
...m,
|
|
4240
4240
|
[T]: {
|
|
4241
4241
|
...m[T],
|
|
4242
4242
|
...U
|
|
4243
4243
|
}
|
|
4244
4244
|
}, Z && g <= 50) {
|
|
4245
|
-
g++, typeof Z == "object" && (Z.placement && (
|
|
4245
|
+
g++, typeof Z == "object" && (Z.placement && (h = Z.placement), Z.rects && (c = Z.rects === !0 ? await i.getElementRects({
|
|
4246
4246
|
reference: a,
|
|
4247
4247
|
floating: e,
|
|
4248
4248
|
strategy: n
|
|
4249
4249
|
}) : Z.rects), {
|
|
4250
|
-
x:
|
|
4251
|
-
y:
|
|
4252
|
-
} = ea(
|
|
4250
|
+
x: u,
|
|
4251
|
+
y: v
|
|
4252
|
+
} = ea(c, h, r)), w = -1;
|
|
4253
4253
|
continue;
|
|
4254
4254
|
}
|
|
4255
4255
|
}
|
|
4256
4256
|
return {
|
|
4257
|
-
x:
|
|
4258
|
-
y:
|
|
4259
|
-
placement:
|
|
4257
|
+
x: u,
|
|
4258
|
+
y: v,
|
|
4259
|
+
placement: h,
|
|
4260
4260
|
strategy: n,
|
|
4261
4261
|
middlewareData: m
|
|
4262
4262
|
};
|
|
@@ -4272,17 +4272,17 @@ async function ka(a, e) {
|
|
|
4272
4272
|
elements: l,
|
|
4273
4273
|
strategy: r
|
|
4274
4274
|
} = a, {
|
|
4275
|
-
boundary:
|
|
4276
|
-
rootBoundary:
|
|
4277
|
-
elementContext:
|
|
4278
|
-
altBoundary:
|
|
4275
|
+
boundary: c = "clippingAncestors",
|
|
4276
|
+
rootBoundary: u = "viewport",
|
|
4277
|
+
elementContext: v = "floating",
|
|
4278
|
+
altBoundary: h = !1,
|
|
4279
4279
|
padding: m = 0
|
|
4280
|
-
} = E1(e, a), g = G3(m), T = l[
|
|
4280
|
+
} = E1(e, a), g = G3(m), T = l[h ? v === "floating" ? "reference" : "floating" : v], k = Qt(await o.getClippingRect({
|
|
4281
4281
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(T))) == null || t ? T : T.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4282
|
-
boundary:
|
|
4283
|
-
rootBoundary:
|
|
4282
|
+
boundary: c,
|
|
4283
|
+
rootBoundary: u,
|
|
4284
4284
|
strategy: r
|
|
4285
|
-
})), b =
|
|
4285
|
+
})), b = v === "floating" ? {
|
|
4286
4286
|
...i.floating,
|
|
4287
4287
|
x: s,
|
|
4288
4288
|
y: n
|
|
@@ -4316,11 +4316,11 @@ const Q3 = function(a) {
|
|
|
4316
4316
|
rects: i,
|
|
4317
4317
|
initialPlacement: l,
|
|
4318
4318
|
platform: r,
|
|
4319
|
-
elements:
|
|
4319
|
+
elements: c
|
|
4320
4320
|
} = e, {
|
|
4321
|
-
mainAxis:
|
|
4322
|
-
crossAxis:
|
|
4323
|
-
fallbackPlacements:
|
|
4321
|
+
mainAxis: u = !0,
|
|
4322
|
+
crossAxis: v = !0,
|
|
4323
|
+
fallbackPlacements: h,
|
|
4324
4324
|
fallbackStrategy: m = "bestFit",
|
|
4325
4325
|
fallbackAxisSideDirection: g = "none",
|
|
4326
4326
|
flipAlignment: w = !0,
|
|
@@ -4328,11 +4328,11 @@ const Q3 = function(a) {
|
|
|
4328
4328
|
} = E1(a, e);
|
|
4329
4329
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
4330
4330
|
return {};
|
|
4331
|
-
const k = mt(n), b = mt(l) === l, V = await (r.isRTL == null ? void 0 : r.isRTL(
|
|
4332
|
-
!
|
|
4331
|
+
const k = mt(n), b = mt(l) === l, V = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), U = h || (b || !w ? [Xt(l)] : W3(l));
|
|
4332
|
+
!h && g !== "none" && U.push(...Y3(l, w, g, V));
|
|
4333
4333
|
const Z = [l, ...U], H = await ka(e, T), O = [];
|
|
4334
4334
|
let W = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4335
|
-
if (
|
|
4335
|
+
if (u && O.push(H[k]), v) {
|
|
4336
4336
|
const S = q3(n, i, V);
|
|
4337
4337
|
O.push(H[S[0]], H[S[1]]);
|
|
4338
4338
|
}
|
|
@@ -4389,24 +4389,24 @@ const Q3 = function(a) {
|
|
|
4389
4389
|
apply: i = () => {
|
|
4390
4390
|
},
|
|
4391
4391
|
...l
|
|
4392
|
-
} = E1(a, e), r = await ka(e, l),
|
|
4393
|
-
width:
|
|
4392
|
+
} = E1(a, e), r = await ka(e, l), c = mt(t), u = r1(t), v = L1(t) === "y", {
|
|
4393
|
+
width: h,
|
|
4394
4394
|
height: m
|
|
4395
4395
|
} = s.floating;
|
|
4396
4396
|
let g, w;
|
|
4397
|
-
|
|
4398
|
-
const T = m - r[g], k =
|
|
4397
|
+
c === "top" || c === "bottom" ? (g = c, w = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (w = c, g = u === "end" ? "top" : "bottom");
|
|
4398
|
+
const T = m - r[g], k = h - r[w], b = !e.middlewareData.shift;
|
|
4399
4399
|
let V = T, U = k;
|
|
4400
|
-
if (
|
|
4401
|
-
const H =
|
|
4402
|
-
U =
|
|
4400
|
+
if (v) {
|
|
4401
|
+
const H = h - r.left - r.right;
|
|
4402
|
+
U = u || b ? Lt(k, H) : H;
|
|
4403
4403
|
} else {
|
|
4404
4404
|
const H = m - r.top - r.bottom;
|
|
4405
|
-
V =
|
|
4405
|
+
V = u || b ? Lt(T, H) : H;
|
|
4406
4406
|
}
|
|
4407
|
-
if (b && !
|
|
4407
|
+
if (b && !u) {
|
|
4408
4408
|
const H = ke(r.left, 0), O = ke(r.right, 0), W = ke(r.top, 0), X = ke(r.bottom, 0);
|
|
4409
|
-
|
|
4409
|
+
v ? U = h - 2 * (H !== 0 || O !== 0 ? H + O : ke(r.left, r.right)) : V = m - 2 * (W !== 0 || X !== 0 ? W + X : ke(r.top, r.bottom));
|
|
4410
4410
|
}
|
|
4411
4411
|
await i({
|
|
4412
4412
|
...e,
|
|
@@ -4414,7 +4414,7 @@ const Q3 = function(a) {
|
|
|
4414
4414
|
availableHeight: V
|
|
4415
4415
|
});
|
|
4416
4416
|
const Z = await n.getDimensions(o.floating);
|
|
4417
|
-
return
|
|
4417
|
+
return h !== Z.width || m !== Z.height ? {
|
|
4418
4418
|
reset: {
|
|
4419
4419
|
rects: !0
|
|
4420
4420
|
}
|
|
@@ -4555,20 +4555,20 @@ function Je(a, e, t, s) {
|
|
|
4555
4555
|
let i = ze(1);
|
|
4556
4556
|
e && (s ? Ue(s) && (i = ft(s)) : i = ft(a));
|
|
4557
4557
|
const l = n0(o, t, s) ? Ia(o) : ze(0);
|
|
4558
|
-
let r = (n.left + l.x) / i.x,
|
|
4558
|
+
let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, v = n.height / i.y;
|
|
4559
4559
|
if (o) {
|
|
4560
|
-
const
|
|
4561
|
-
let g =
|
|
4562
|
-
for (; g && s && m !==
|
|
4560
|
+
const h = we(o), m = s && Ue(s) ? we(s) : s;
|
|
4561
|
+
let g = h.frameElement;
|
|
4562
|
+
for (; g && s && m !== h; ) {
|
|
4563
4563
|
const w = ft(g), T = g.getBoundingClientRect(), k = Se(g), b = T.left + (g.clientLeft + parseFloat(k.paddingLeft)) * w.x, V = T.top + (g.clientTop + parseFloat(k.paddingTop)) * w.y;
|
|
4564
|
-
r *= w.x,
|
|
4564
|
+
r *= w.x, c *= w.y, u *= w.x, v *= w.y, r += b, c += V, g = we(g).frameElement;
|
|
4565
4565
|
}
|
|
4566
4566
|
}
|
|
4567
4567
|
return Qt({
|
|
4568
|
-
width:
|
|
4569
|
-
height:
|
|
4568
|
+
width: u,
|
|
4569
|
+
height: v,
|
|
4570
4570
|
x: r,
|
|
4571
|
-
y:
|
|
4571
|
+
y: c
|
|
4572
4572
|
});
|
|
4573
4573
|
}
|
|
4574
4574
|
function s0(a) {
|
|
@@ -4586,8 +4586,8 @@ function s0(a) {
|
|
|
4586
4586
|
}, l = ze(1);
|
|
4587
4587
|
const r = ze(0);
|
|
4588
4588
|
if ((n || !n && s !== "fixed") && ((Ye(t) !== "body" || Nt(o)) && (i = c1(t)), He(t))) {
|
|
4589
|
-
const
|
|
4590
|
-
l = ft(t), r.x =
|
|
4589
|
+
const c = Je(t);
|
|
4590
|
+
l = ft(t), r.x = c.x + t.clientLeft, r.y = c.y + t.clientTop;
|
|
4591
4591
|
}
|
|
4592
4592
|
return {
|
|
4593
4593
|
width: e.width * l.x,
|
|
@@ -4618,8 +4618,8 @@ function l0(a, e) {
|
|
|
4618
4618
|
let o = s.clientWidth, i = s.clientHeight, l = 0, r = 0;
|
|
4619
4619
|
if (n) {
|
|
4620
4620
|
o = n.width, i = n.height;
|
|
4621
|
-
const
|
|
4622
|
-
(!
|
|
4621
|
+
const c = H1();
|
|
4622
|
+
(!c || c && e === "fixed") && (l = n.offsetLeft, r = n.offsetTop);
|
|
4623
4623
|
}
|
|
4624
4624
|
return {
|
|
4625
4625
|
width: o,
|
|
@@ -4629,12 +4629,12 @@ function l0(a, e) {
|
|
|
4629
4629
|
};
|
|
4630
4630
|
}
|
|
4631
4631
|
function r0(a, e) {
|
|
4632
|
-
const t = Je(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = He(a) ? ft(a) : ze(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x,
|
|
4632
|
+
const t = Je(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = He(a) ? ft(a) : ze(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, c = s * o.y;
|
|
4633
4633
|
return {
|
|
4634
4634
|
width: i,
|
|
4635
4635
|
height: l,
|
|
4636
4636
|
x: r,
|
|
4637
|
-
y:
|
|
4637
|
+
y: c
|
|
4638
4638
|
};
|
|
4639
4639
|
}
|
|
4640
4640
|
function aa(a, e, t) {
|
|
@@ -4668,7 +4668,7 @@ function u0(a, e) {
|
|
|
4668
4668
|
let i = o ? pt(a) : a;
|
|
4669
4669
|
for (; Ue(i) && !u1(i); ) {
|
|
4670
4670
|
const l = Se(i), r = V1(i);
|
|
4671
|
-
!r && l.position === "fixed" && (n = null), (o ? !r && !n : !r && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Nt(i) && !r && Ea(a, i)) ? s = s.filter((
|
|
4671
|
+
!r && l.position === "fixed" && (n = null), (o ? !r && !n : !r && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Nt(i) && !r && Ea(a, i)) ? s = s.filter((u) => u !== i) : n = l, i = pt(i);
|
|
4672
4672
|
}
|
|
4673
4673
|
return e.set(a, s), s;
|
|
4674
4674
|
}
|
|
@@ -4679,9 +4679,9 @@ function c0(a) {
|
|
|
4679
4679
|
rootBoundary: s,
|
|
4680
4680
|
strategy: n
|
|
4681
4681
|
} = a;
|
|
4682
|
-
const i = [...t === "clippingAncestors" ? u0(e, this._c) : [].concat(t), s], l = i[0], r = i.reduce((
|
|
4683
|
-
const
|
|
4684
|
-
return
|
|
4682
|
+
const i = [...t === "clippingAncestors" ? u0(e, this._c) : [].concat(t), s], l = i[0], r = i.reduce((c, u) => {
|
|
4683
|
+
const v = aa(e, u, n);
|
|
4684
|
+
return c.top = ke(v.top, c.top), c.right = Lt(v.right, c.right), c.bottom = Lt(v.bottom, c.bottom), c.left = ke(v.left, c.left), c;
|
|
4685
4685
|
}, aa(e, l, n));
|
|
4686
4686
|
return {
|
|
4687
4687
|
width: r.right - r.left,
|
|
@@ -4702,8 +4702,8 @@ function f0(a, e, t) {
|
|
|
4702
4702
|
const r = ze(0);
|
|
4703
4703
|
if (s || !s && !o)
|
|
4704
4704
|
if ((Ye(e) !== "body" || Nt(n)) && (l = c1(e)), s) {
|
|
4705
|
-
const
|
|
4706
|
-
r.x =
|
|
4705
|
+
const c = Je(e, !0, o, e);
|
|
4706
|
+
r.x = c.x + e.clientLeft, r.y = c.y + e.clientTop;
|
|
4707
4707
|
} else
|
|
4708
4708
|
n && (r.x = Oa(n));
|
|
4709
4709
|
return {
|
|
@@ -4765,14 +4765,14 @@ function p0(a, e) {
|
|
|
4765
4765
|
function i(l, r) {
|
|
4766
4766
|
l === void 0 && (l = !1), r === void 0 && (r = 1), o();
|
|
4767
4767
|
const {
|
|
4768
|
-
left:
|
|
4769
|
-
top:
|
|
4770
|
-
width:
|
|
4771
|
-
height:
|
|
4768
|
+
left: c,
|
|
4769
|
+
top: u,
|
|
4770
|
+
width: v,
|
|
4771
|
+
height: h
|
|
4772
4772
|
} = a.getBoundingClientRect();
|
|
4773
|
-
if (l || e(), !
|
|
4773
|
+
if (l || e(), !v || !h)
|
|
4774
4774
|
return;
|
|
4775
|
-
const m = Wt(
|
|
4775
|
+
const m = Wt(u), g = Wt(n.clientWidth - (c + v)), w = Wt(n.clientHeight - (u + h)), T = Wt(c), b = {
|
|
4776
4776
|
rootMargin: -m + "px " + -g + "px " + -w + "px " + -T + "px",
|
|
4777
4777
|
threshold: ke(0, Lt(1, r)) || 1
|
|
4778
4778
|
};
|
|
@@ -4809,20 +4809,20 @@ function C0(a, e, t, s) {
|
|
|
4809
4809
|
elementResize: i = typeof ResizeObserver == "function",
|
|
4810
4810
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
4811
4811
|
animationFrame: r = !1
|
|
4812
|
-
} = s,
|
|
4813
|
-
|
|
4812
|
+
} = s, c = D1(a), u = n || o ? [...c ? Vt(c) : [], ...Vt(e)] : [];
|
|
4813
|
+
u.forEach((k) => {
|
|
4814
4814
|
n && k.addEventListener("scroll", t, {
|
|
4815
4815
|
passive: !0
|
|
4816
4816
|
}), o && k.addEventListener("resize", t);
|
|
4817
4817
|
});
|
|
4818
|
-
const
|
|
4819
|
-
let
|
|
4818
|
+
const v = c && l ? p0(c, t) : null;
|
|
4819
|
+
let h = -1, m = null;
|
|
4820
4820
|
i && (m = new ResizeObserver((k) => {
|
|
4821
4821
|
let [b] = k;
|
|
4822
|
-
b && b.target ===
|
|
4822
|
+
b && b.target === c && m && (m.unobserve(e), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
4823
4823
|
m && m.observe(e);
|
|
4824
4824
|
})), t();
|
|
4825
|
-
}),
|
|
4825
|
+
}), c && !r && m.observe(c), m.observe(e));
|
|
4826
4826
|
let g, w = r ? Je(a) : null;
|
|
4827
4827
|
r && T();
|
|
4828
4828
|
function T() {
|
|
@@ -4830,9 +4830,9 @@ function C0(a, e, t, s) {
|
|
|
4830
4830
|
w && (k.x !== w.x || k.y !== w.y || k.width !== w.width || k.height !== w.height) && t(), w = k, g = requestAnimationFrame(T);
|
|
4831
4831
|
}
|
|
4832
4832
|
return t(), () => {
|
|
4833
|
-
|
|
4833
|
+
u.forEach((k) => {
|
|
4834
4834
|
n && k.removeEventListener("scroll", t), o && k.removeEventListener("resize", t);
|
|
4835
|
-
}),
|
|
4835
|
+
}), v && v(), m && m.disconnect(), m = null, r && cancelAnimationFrame(g);
|
|
4836
4836
|
};
|
|
4837
4837
|
}
|
|
4838
4838
|
const _0 = (a, e, t) => {
|
|
@@ -4848,21 +4848,21 @@ const _0 = (a, e, t) => {
|
|
|
4848
4848
|
platform: o
|
|
4849
4849
|
});
|
|
4850
4850
|
}, g0 = (a) => {
|
|
4851
|
-
const e =
|
|
4851
|
+
const e = J(!1), t = J(), s = J(), n = J(0);
|
|
4852
4852
|
function o() {
|
|
4853
|
-
const
|
|
4854
|
-
return
|
|
4853
|
+
const v = j(a.appendTo);
|
|
4854
|
+
return v ? typeof v == "string" ? document.getElementById(v) ?? document.body : v : document.getElementById("floatingElements") ?? document.body;
|
|
4855
4855
|
}
|
|
4856
|
-
const i = o(), l =
|
|
4856
|
+
const i = o(), l = J(() => {
|
|
4857
4857
|
});
|
|
4858
|
-
function r(
|
|
4859
|
-
|
|
4858
|
+
function r(v) {
|
|
4859
|
+
v.relatedTarget && s.value && s.value.contains(v.relatedTarget) || a.multiselect.value.deactivate();
|
|
4860
4860
|
}
|
|
4861
|
-
function
|
|
4862
|
-
const
|
|
4863
|
-
if (!
|
|
4861
|
+
function c() {
|
|
4862
|
+
const v = a.multiselect.value.$el, h = v.querySelector(".multiselect-dropdown");
|
|
4863
|
+
if (!h || !v || e.value === !0)
|
|
4864
4864
|
return;
|
|
4865
|
-
s.value =
|
|
4865
|
+
s.value = h, t.value = v, getComputedStyle(h).getPropertyValue("display") === "none" && (h.style.display = "flex"), n.value = h.offsetHeight, h.style.removeProperty("display"), Object.assign(h.style, {
|
|
4866
4866
|
position: "absolute",
|
|
4867
4867
|
width: "max-content",
|
|
4868
4868
|
top: 0,
|
|
@@ -4871,13 +4871,13 @@ const _0 = (a, e, t) => {
|
|
|
4871
4871
|
bottom: "auto",
|
|
4872
4872
|
transform: "none",
|
|
4873
4873
|
marginTop: 0
|
|
4874
|
-
}), i.appendChild(
|
|
4875
|
-
const g = C0(t.value, s.value,
|
|
4874
|
+
}), i.appendChild(h), a.multiselect.value.handleFocusOut = r;
|
|
4875
|
+
const g = C0(t.value, s.value, u);
|
|
4876
4876
|
l.value = () => {
|
|
4877
4877
|
s.value && i.contains(s.value) && i.removeChild(s.value), g();
|
|
4878
4878
|
};
|
|
4879
4879
|
}
|
|
4880
|
-
function
|
|
4880
|
+
function u() {
|
|
4881
4881
|
!s.value || !t.value || _0(t.value, s.value, {
|
|
4882
4882
|
strategy: "absolute",
|
|
4883
4883
|
placement: "bottom-start",
|
|
@@ -4887,67 +4887,67 @@ const _0 = (a, e, t) => {
|
|
|
4887
4887
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
4888
4888
|
}),
|
|
4889
4889
|
J3({
|
|
4890
|
-
apply({ availableWidth:
|
|
4890
|
+
apply({ availableWidth: v, availableHeight: h, elements: m, rects: g }) {
|
|
4891
4891
|
Object.assign(m.floating.style, {
|
|
4892
4892
|
minHeight: `${n.value}px`,
|
|
4893
4893
|
width: `${g.reference.width}px`,
|
|
4894
|
-
maxWidth: `${
|
|
4895
|
-
maxHeight: `${
|
|
4894
|
+
maxWidth: `${v}px`,
|
|
4895
|
+
maxHeight: `${h}px`
|
|
4896
4896
|
// These numbers are pleasant defaults/control for screen size.
|
|
4897
4897
|
});
|
|
4898
4898
|
}
|
|
4899
4899
|
})
|
|
4900
4900
|
]
|
|
4901
|
-
}).then(({ x:
|
|
4901
|
+
}).then(({ x: v, y: h }) => {
|
|
4902
4902
|
Object.assign(s.value.style, {
|
|
4903
|
-
left: `${
|
|
4904
|
-
top: `${
|
|
4903
|
+
left: `${v}px`,
|
|
4904
|
+
top: `${h}px`
|
|
4905
4905
|
});
|
|
4906
4906
|
});
|
|
4907
4907
|
}
|
|
4908
4908
|
Ht(() => {
|
|
4909
|
-
|
|
4909
|
+
c();
|
|
4910
4910
|
}), ln(() => {
|
|
4911
4911
|
l.value();
|
|
4912
4912
|
}), la(() => {
|
|
4913
4913
|
l.value();
|
|
4914
4914
|
});
|
|
4915
4915
|
};
|
|
4916
|
-
function
|
|
4916
|
+
function Le(a) {
|
|
4917
4917
|
return [null, void 0].indexOf(a) !== -1;
|
|
4918
4918
|
}
|
|
4919
4919
|
function y0(a, e, t) {
|
|
4920
|
-
const { object: s, valueProp: n, mode: o } = $e(a), i = tt().proxy, l = t.iv, r = (
|
|
4921
|
-
l.value =
|
|
4922
|
-
const m =
|
|
4923
|
-
e.emit("change", m, i),
|
|
4924
|
-
},
|
|
4920
|
+
const { object: s, valueProp: n, mode: o } = $e(a), i = tt().proxy, l = t.iv, r = (v, h = !0) => {
|
|
4921
|
+
l.value = u(v);
|
|
4922
|
+
const m = c(v);
|
|
4923
|
+
e.emit("change", m, i), h && (e.emit("input", m), e.emit("update:modelValue", m));
|
|
4924
|
+
}, c = (v) => s.value || Le(v) ? v : Array.isArray(v) ? v.map((h) => h[n.value]) : v[n.value], u = (v) => Le(v) ? o.value === "single" ? {} : [] : v;
|
|
4925
4925
|
return {
|
|
4926
4926
|
update: r
|
|
4927
4927
|
};
|
|
4928
4928
|
}
|
|
4929
4929
|
function b0(a, e) {
|
|
4930
|
-
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i =
|
|
4930
|
+
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 = y(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), c = y(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4931
4931
|
return {
|
|
4932
4932
|
iv: i,
|
|
4933
4933
|
internalValue: i,
|
|
4934
4934
|
ev: l,
|
|
4935
4935
|
externalValue: l,
|
|
4936
|
-
textValue:
|
|
4936
|
+
textValue: c,
|
|
4937
4937
|
plainValue: r
|
|
4938
4938
|
};
|
|
4939
4939
|
}
|
|
4940
4940
|
function w0(a, e, t) {
|
|
4941
|
-
const { regex: s } = $e(a), n = tt().proxy, o = t.isOpen, i = t.open, l =
|
|
4941
|
+
const { regex: s } = $e(a), n = tt().proxy, o = t.isOpen, i = t.open, l = J(null), r = J(null), c = () => {
|
|
4942
4942
|
l.value = "";
|
|
4943
|
-
},
|
|
4943
|
+
}, u = (m) => {
|
|
4944
4944
|
l.value = m.target.value;
|
|
4945
|
-
},
|
|
4945
|
+
}, v = (m) => {
|
|
4946
4946
|
if (s && s.value) {
|
|
4947
4947
|
let g = s.value;
|
|
4948
4948
|
typeof g == "string" && (g = new RegExp(g)), m.key.match(g) || m.preventDefault();
|
|
4949
4949
|
}
|
|
4950
|
-
},
|
|
4950
|
+
}, h = (m) => {
|
|
4951
4951
|
if (s && s.value) {
|
|
4952
4952
|
let w = (m.clipboardData || /* istanbul ignore next */
|
|
4953
4953
|
window.clipboardData).getData("Text"), T = s.value;
|
|
@@ -4960,15 +4960,15 @@ function w0(a, e, t) {
|
|
|
4960
4960
|
}), {
|
|
4961
4961
|
search: l,
|
|
4962
4962
|
input: r,
|
|
4963
|
-
clearSearch:
|
|
4964
|
-
handleSearchInput:
|
|
4965
|
-
handleKeypress:
|
|
4966
|
-
handlePaste:
|
|
4963
|
+
clearSearch: c,
|
|
4964
|
+
handleSearchInput: u,
|
|
4965
|
+
handleKeypress: v,
|
|
4966
|
+
handlePaste: h
|
|
4967
4967
|
};
|
|
4968
4968
|
}
|
|
4969
4969
|
function $0(a, e, t) {
|
|
4970
|
-
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = $e(a), l =
|
|
4971
|
-
|
|
4970
|
+
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = $e(a), l = J(null), r = (u) => {
|
|
4971
|
+
u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (l.value = u);
|
|
4972
4972
|
};
|
|
4973
4973
|
return {
|
|
4974
4974
|
pointer: l,
|
|
@@ -4998,10 +4998,10 @@ function A0(a, e, t) {
|
|
|
4998
4998
|
limit: i,
|
|
4999
4999
|
hideSelected: l,
|
|
5000
5000
|
createTag: r,
|
|
5001
|
-
createOption:
|
|
5002
|
-
label:
|
|
5003
|
-
appendNewTag:
|
|
5004
|
-
appendNewOption:
|
|
5001
|
+
createOption: c,
|
|
5002
|
+
label: u,
|
|
5003
|
+
appendNewTag: v,
|
|
5004
|
+
appendNewOption: h,
|
|
5005
5005
|
multipleLabel: m,
|
|
5006
5006
|
object: g,
|
|
5007
5007
|
loading: w,
|
|
@@ -5025,11 +5025,11 @@ function A0(a, e, t) {
|
|
|
5025
5025
|
groupOptions: $,
|
|
5026
5026
|
groupHideEmpty: _,
|
|
5027
5027
|
groupSelect: E,
|
|
5028
|
-
onCreate:
|
|
5028
|
+
onCreate: ee,
|
|
5029
5029
|
disabledProp: R,
|
|
5030
5030
|
searchStart: re,
|
|
5031
5031
|
searchFilter: me
|
|
5032
|
-
} = $e(a), se = tt().proxy, Y = t.iv, L = t.ev, x = t.search, ye = t.clearSearch, Pe = t.update, Ha = t.pointer, nt = t.clearPointer, Da = t.focus, Pa = t.deactivate, st = t.close, Ba = t.localize, gt =
|
|
5032
|
+
} = $e(a), se = tt().proxy, Y = t.iv, L = t.ev, x = t.search, ye = t.clearSearch, Pe = t.update, Ha = t.pointer, nt = t.clearPointer, Da = t.focus, Pa = t.deactivate, st = t.close, Ba = t.localize, gt = J([]), je = J([]), Oe = J(!1), d1 = J(null), f1 = J(le.value && i.value === -1 ? 10 : i.value), R1 = y(() => r.value || c.value || !1), Na = y(() => v.value !== void 0 ? v.value : h.value !== void 0 ? h.value : !0), Fe = y(() => {
|
|
5033
5033
|
if (oe.value) {
|
|
5034
5034
|
let C = Rt.value || /* istanbul ignore next */
|
|
5035
5035
|
[], D = [];
|
|
@@ -5084,17 +5084,17 @@ function A0(a, e, t) {
|
|
|
5084
5084
|
}), v1 = y(() => {
|
|
5085
5085
|
switch (n.value) {
|
|
5086
5086
|
case "single":
|
|
5087
|
-
return !
|
|
5087
|
+
return !Le(Y.value[H.value]);
|
|
5088
5088
|
case "multiple":
|
|
5089
5089
|
case "tags":
|
|
5090
|
-
return !
|
|
5090
|
+
return !Le(Y.value) && Y.value.length > 0;
|
|
5091
5091
|
}
|
|
5092
|
-
}), Ua = y(() => m !== void 0 && m.value !== void 0 ? m.value(Y.value, se) : Y.value && Y.value.length > 1 ? `${Y.value.length} options selected` : "1 option selected"), Za = y(() => !Fe.value.length && !
|
|
5092
|
+
}), Ua = y(() => m !== void 0 && m.value !== void 0 ? m.value(Y.value, se) : Y.value && Y.value.length > 1 ? `${Y.value.length} options selected` : "1 option selected"), Za = y(() => !Fe.value.length && !Oe.value && !it.value.length), ja = y(() => Fe.value.length > 0 && yt.value.length == 0 && (x.value && oe.value || !oe.value)), it = y(() => R1.value === !1 || !x.value ? [] : Xa(x.value) !== -1 ? [] : [{
|
|
5093
5093
|
[H.value]: x.value,
|
|
5094
|
-
[
|
|
5095
|
-
[
|
|
5094
|
+
[Ee.value]: x.value,
|
|
5095
|
+
[u.value]: x.value,
|
|
5096
5096
|
__CREATE__: !0
|
|
5097
|
-
}]),
|
|
5097
|
+
}]), Ee = y(() => o.value || u.value), Fa = y(() => {
|
|
5098
5098
|
switch (n.value) {
|
|
5099
5099
|
case "single":
|
|
5100
5100
|
return null;
|
|
@@ -5102,7 +5102,7 @@ function A0(a, e, t) {
|
|
|
5102
5102
|
case "tags":
|
|
5103
5103
|
return [];
|
|
5104
5104
|
}
|
|
5105
|
-
}), xa = y(() => w.value ||
|
|
5105
|
+
}), xa = y(() => w.value || Oe.value), ot = (C) => {
|
|
5106
5106
|
switch (typeof C != "object" && (C = Ne(C)), n.value) {
|
|
5107
5107
|
case "single":
|
|
5108
5108
|
Pe(C);
|
|
@@ -5139,16 +5139,16 @@ function A0(a, e, t) {
|
|
|
5139
5139
|
return n.value === "single" ? !1 : Ga(C[$.value]) && C[$.value].length;
|
|
5140
5140
|
switch (n.value) {
|
|
5141
5141
|
case "single":
|
|
5142
|
-
return !
|
|
5142
|
+
return !Le(Y.value) && Y.value[H.value] == C[H.value];
|
|
5143
5143
|
case "tags":
|
|
5144
5144
|
case "multiple":
|
|
5145
|
-
return !
|
|
5145
|
+
return !Le(Y.value) && Y.value.map((D) => D[H.value]).indexOf(C[H.value]) !== -1;
|
|
5146
5146
|
}
|
|
5147
5147
|
}, h1 = (C) => C[R.value] === !0, m1 = () => ne === void 0 || ne.value === -1 || !v1.value && ne.value > 0 ? !1 : Y.value.length >= ne.value, Wa = (C) => {
|
|
5148
5148
|
if (!h1(C)) {
|
|
5149
|
-
if (
|
|
5150
|
-
|
|
5151
|
-
|
|
5149
|
+
if (ee && ee.value && !Be(C) && C.__CREATE__ && (C = { ...C }, delete C.__CREATE__, C = ee.value(C, se), C instanceof Promise)) {
|
|
5150
|
+
Oe.value = !0, C.then((D) => {
|
|
5151
|
+
Oe.value = !1, q1(D);
|
|
5152
5152
|
});
|
|
5153
5153
|
return;
|
|
5154
5154
|
}
|
|
@@ -5203,7 +5203,7 @@ function A0(a, e, t) {
|
|
|
5203
5203
|
Ne(C[H.value]) === void 0 && R1.value && (e.emit("tag", C[H.value], se), e.emit("option", C[H.value], se), e.emit("create", C[H.value], se), Na.value && Ja(C), ye());
|
|
5204
5204
|
}, Ya = () => {
|
|
5205
5205
|
n.value !== "single" && ot(yt.value.filter((C) => !C.disabled && !Be(C)));
|
|
5206
|
-
}, Ka = (C) => C.find((D) => !Be(D) && !D[R.value]) === void 0, Ga = (C) => C.find((D) => !Be(D)) === void 0, Ne = (C) => Fe.value[Fe.value.map((D) => String(D[H.value])).indexOf(String(C))], Xa = (C, D = !0) => Fe.value.map((ae) => parseInt(ae[
|
|
5206
|
+
}, Ka = (C) => C.find((D) => !Be(D) && !D[R.value]) === void 0, Ga = (C) => C.find((D) => !Be(D)) === void 0, Ne = (C) => Fe.value[Fe.value.map((D) => String(D[H.value])).indexOf(String(C))], Xa = (C, D = !0) => Fe.value.map((ae) => parseInt(ae[Ee.value]) == ae[Ee.value] ? parseInt(ae[Ee.value]) : ae[Ee.value]).indexOf(
|
|
5207
5207
|
parseInt(C) == C ? parseInt(C) : C
|
|
5208
5208
|
), Qa = (C) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(C), Ja = (C) => {
|
|
5209
5209
|
gt.value.push(C);
|
|
@@ -5213,8 +5213,8 @@ function A0(a, e, t) {
|
|
|
5213
5213
|
let ae = C;
|
|
5214
5214
|
if (x.value && V.value) {
|
|
5215
5215
|
let ve = me.value;
|
|
5216
|
-
ve || (ve = (bt,
|
|
5217
|
-
let z1 = w1(Ba(bt[
|
|
5216
|
+
ve || (ve = (bt, I4) => {
|
|
5217
|
+
let z1 = w1(Ba(bt[Ee.value]), A.value);
|
|
5218
5218
|
return re.value ? z1.startsWith(w1(x.value, A.value)) : z1.indexOf(w1(x.value, A.value)) !== -1;
|
|
5219
5219
|
}), ae = ae.filter(ve);
|
|
5220
5220
|
}
|
|
@@ -5223,15 +5223,15 @@ function A0(a, e, t) {
|
|
|
5223
5223
|
let D = C;
|
|
5224
5224
|
return M0(D) && (D = Object.keys(D).map((ae) => {
|
|
5225
5225
|
let ve = D[ae];
|
|
5226
|
-
return { [H.value]: ae, [
|
|
5227
|
-
})), D = D.map((ae) => typeof ae == "object" ? ae : { [H.value]: ae, [
|
|
5226
|
+
return { [H.value]: ae, [Ee.value]: ve, [u.value]: ve };
|
|
5227
|
+
})), D = D.map((ae) => typeof ae == "object" ? ae : { [H.value]: ae, [Ee.value]: ae, [u.value]: ae }), D;
|
|
5228
5228
|
}, Ut = () => {
|
|
5229
|
-
|
|
5230
|
-
}, Zt = (C) => (
|
|
5229
|
+
Le(L.value) || (Y.value = jt(L.value));
|
|
5230
|
+
}, Zt = (C) => (Oe.value = !0, new Promise((D, ae) => {
|
|
5231
5231
|
s.value(x.value, se).then((ve) => {
|
|
5232
|
-
je.value = ve || [], typeof C == "function" && C(ve),
|
|
5232
|
+
je.value = ve || [], typeof C == "function" && C(ve), Oe.value = !1;
|
|
5233
5233
|
}).catch((ve) => {
|
|
5234
|
-
console.error(ve), je.value = [],
|
|
5234
|
+
console.error(ve), je.value = [], Oe.value = !1;
|
|
5235
5235
|
}).finally(() => {
|
|
5236
5236
|
D();
|
|
5237
5237
|
});
|
|
@@ -5240,32 +5240,32 @@ function A0(a, e, t) {
|
|
|
5240
5240
|
if (n.value === "single") {
|
|
5241
5241
|
let C = Ne(Y.value[H.value]);
|
|
5242
5242
|
if (C !== void 0) {
|
|
5243
|
-
let D = C[
|
|
5244
|
-
Y.value[
|
|
5243
|
+
let D = C[u.value];
|
|
5244
|
+
Y.value[u.value] = D, g.value && (L.value[u.value] = D);
|
|
5245
5245
|
}
|
|
5246
5246
|
} else
|
|
5247
5247
|
Y.value.forEach((C, D) => {
|
|
5248
5248
|
let ae = Ne(Y.value[D][H.value]);
|
|
5249
5249
|
if (ae !== void 0) {
|
|
5250
|
-
let ve = ae[
|
|
5251
|
-
Y.value[D][
|
|
5250
|
+
let ve = ae[u.value];
|
|
5251
|
+
Y.value[D][u.value] = ve, g.value && (L.value[D][u.value] = ve);
|
|
5252
5252
|
}
|
|
5253
5253
|
});
|
|
5254
5254
|
}, tn = (C) => {
|
|
5255
5255
|
Zt(C);
|
|
5256
|
-
}, jt = (C) =>
|
|
5257
|
-
[
|
|
5256
|
+
}, jt = (C) => Le(C) ? n.value === "single" ? {} : [] : g.value ? C : n.value === "single" ? Ne(C) || (O.value ? {
|
|
5257
|
+
[u.value]: C,
|
|
5258
5258
|
[H.value]: C,
|
|
5259
|
-
[
|
|
5259
|
+
[Ee.value]: C
|
|
5260
5260
|
} : {}) : C.filter((D) => !!Ne(D) || O.value).map((D) => Ne(D) || {
|
|
5261
|
-
[
|
|
5261
|
+
[u.value]: D,
|
|
5262
5262
|
[H.value]: D,
|
|
5263
|
-
[
|
|
5263
|
+
[Ee.value]: D
|
|
5264
5264
|
}), W1 = () => {
|
|
5265
5265
|
d1.value = ue(x, (C) => {
|
|
5266
|
-
C.length < b.value || !C && b.value !== 0 || (
|
|
5266
|
+
C.length < b.value || !C && b.value !== 0 || (Oe.value = !0, U.value && (je.value = []), setTimeout(() => {
|
|
5267
5267
|
C == x.value && s.value(x.value, se).then((D) => {
|
|
5268
|
-
(C == x.value || !x.value) && (je.value = D, Ha.value = yt.value.filter((ae) => ae[R.value] !== !0)[0] || null,
|
|
5268
|
+
(C == x.value || !x.value) && (je.value = D, Ha.value = yt.value.filter((ae) => ae[R.value] !== !0)[0] || null, Oe.value = !1);
|
|
5269
5269
|
}).catch(
|
|
5270
5270
|
/* istanbul ignore next */
|
|
5271
5271
|
(D) => {
|
|
@@ -5275,12 +5275,12 @@ function A0(a, e, t) {
|
|
|
5275
5275
|
}, T.value));
|
|
5276
5276
|
}, { flush: "sync" });
|
|
5277
5277
|
};
|
|
5278
|
-
if (n.value !== "single" && !
|
|
5278
|
+
if (n.value !== "single" && !Le(L.value) && !Array.isArray(L.value))
|
|
5279
5279
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5280
5280
|
return s && typeof s.value == "function" ? k.value ? Zt(Ut) : g.value == !0 && Ut() : (je.value = s.value, Ut()), T.value > -1 && W1(), ue(T, (C, D) => {
|
|
5281
5281
|
d1.value && d1.value(), C >= 0 && W1();
|
|
5282
5282
|
}), ue(L, (C) => {
|
|
5283
|
-
if (
|
|
5283
|
+
if (Le(C)) {
|
|
5284
5284
|
Pe(jt(C), !1);
|
|
5285
5285
|
return;
|
|
5286
5286
|
}
|
|
@@ -5295,7 +5295,7 @@ function A0(a, e, t) {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
}, { deep: !0 }), ue(s, (C, D) => {
|
|
5297
5297
|
typeof a.options == "function" ? k.value && (!D || C && C.toString() !== D.toString()) && Zt() : (je.value = a.options, Object.keys(Y.value).length || Ut(), g1());
|
|
5298
|
-
}), ue(
|
|
5298
|
+
}), ue(u, g1), {
|
|
5299
5299
|
pfo: U1,
|
|
5300
5300
|
fo: yt,
|
|
5301
5301
|
filteredOptions: yt,
|
|
@@ -5309,7 +5309,7 @@ function A0(a, e, t) {
|
|
|
5309
5309
|
filteredGroups: Z1,
|
|
5310
5310
|
noOptions: Za,
|
|
5311
5311
|
noResults: ja,
|
|
5312
|
-
resolving:
|
|
5312
|
+
resolving: Oe,
|
|
5313
5313
|
busy: xa,
|
|
5314
5314
|
offset: f1,
|
|
5315
5315
|
select: ot,
|
|
@@ -5337,10 +5337,10 @@ function T0(a, e, t) {
|
|
|
5337
5337
|
groupLabel: i,
|
|
5338
5338
|
groups: l,
|
|
5339
5339
|
mode: r,
|
|
5340
|
-
groupSelect:
|
|
5341
|
-
disabledProp:
|
|
5342
|
-
groupOptions:
|
|
5343
|
-
} = $e(a),
|
|
5340
|
+
groupSelect: c,
|
|
5341
|
+
disabledProp: u,
|
|
5342
|
+
groupOptions: v
|
|
5343
|
+
} = $e(a), h = t.fo, m = t.fg, g = t.handleOptionClick, w = t.handleGroupClick, T = t.search, k = t.pointer, b = t.setPointer, V = t.clearPointer, U = t.multiselect, Z = t.isOpen, H = y(() => h.value.filter((L) => !L[u.value])), O = y(() => m.value.filter((L) => !L[u.value])), W = y(() => r.value !== "single" && c.value), X = y(() => k.value && k.value.group), ne = y(() => se(k.value)), A = y(() => {
|
|
5344
5344
|
const L = X.value ? k.value : (
|
|
5345
5345
|
/* istanbul ignore next */
|
|
5346
5346
|
se(k.value)
|
|
@@ -5350,28 +5350,28 @@ function T0(a, e, t) {
|
|
|
5350
5350
|
}), S = y(() => {
|
|
5351
5351
|
let L = O.value.map((x) => x.label).indexOf(X.value ? k.value[i.value] : se(k.value)[i.value]) + 1;
|
|
5352
5352
|
return O.value.length <= L && (L = 0), O.value[L];
|
|
5353
|
-
}), P = y(() => [...O.value].slice(-1)[0]), oe = y(() => k.value.__VISIBLE__.filter((L) => !L[
|
|
5354
|
-
const L = ne.value.__VISIBLE__.filter((x) => !x[
|
|
5353
|
+
}), P = y(() => [...O.value].slice(-1)[0]), oe = y(() => k.value.__VISIBLE__.filter((L) => !L[u.value])[0]), te = y(() => {
|
|
5354
|
+
const L = ne.value.__VISIBLE__.filter((x) => !x[u.value]);
|
|
5355
5355
|
return L[L.map((x) => x[s.value]).indexOf(k.value[s.value]) - 1];
|
|
5356
5356
|
}), le = y(() => {
|
|
5357
|
-
const L = se(k.value).__VISIBLE__.filter((x) => !x[
|
|
5357
|
+
const L = se(k.value).__VISIBLE__.filter((x) => !x[u.value]);
|
|
5358
5358
|
return L[L.map((x) => x[s.value]).indexOf(k.value[s.value]) + 1];
|
|
5359
|
-
}), $ = y(() => [...A.value.__VISIBLE__.filter((L) => !L[
|
|
5359
|
+
}), $ = y(() => [...A.value.__VISIBLE__.filter((L) => !L[u.value])].slice(-1)[0]), _ = y(() => [...P.value.__VISIBLE__.filter((L) => !L[u.value])].slice(-1)[0]), E = (L) => k.value && (!L.group && k.value[s.value] === L[s.value] || L.group !== void 0 && k.value[i.value] === L[i.value]) ? !0 : void 0, ee = () => {
|
|
5360
5360
|
b(H.value[0] || null);
|
|
5361
5361
|
}, R = () => {
|
|
5362
|
-
!k.value || k.value[
|
|
5362
|
+
!k.value || k.value[u.value] === !0 || (X.value ? w(k.value) : g(k.value));
|
|
5363
5363
|
}, re = () => {
|
|
5364
5364
|
if (k.value === null)
|
|
5365
5365
|
b((l.value && W.value ? O.value[0].__CREATE__ ? H.value[0] : O.value[0] : H.value[0]) || null);
|
|
5366
5366
|
else if (l.value && W.value) {
|
|
5367
5367
|
let L = X.value ? oe.value : le.value;
|
|
5368
|
-
L === void 0 && (L = S.value, L.__CREATE__ && (L = L[
|
|
5368
|
+
L === void 0 && (L = S.value, L.__CREATE__ && (L = L[v.value][0])), b(L || /* istanbul ignore next */
|
|
5369
5369
|
null);
|
|
5370
5370
|
} else {
|
|
5371
5371
|
let L = H.value.map((x) => x[s.value]).indexOf(k.value[s.value]) + 1;
|
|
5372
5372
|
H.value.length <= L && (L = 0), b(H.value[L] || null);
|
|
5373
5373
|
}
|
|
5374
|
-
|
|
5374
|
+
Ie(() => {
|
|
5375
5375
|
Y();
|
|
5376
5376
|
});
|
|
5377
5377
|
}, me = () => {
|
|
@@ -5386,7 +5386,7 @@ function T0(a, e, t) {
|
|
|
5386
5386
|
let L = H.value.map((x) => x[s.value]).indexOf(k.value[s.value]) - 1;
|
|
5387
5387
|
L < 0 && (L = H.value.length - 1), b(H.value[L] || null);
|
|
5388
5388
|
}
|
|
5389
|
-
|
|
5389
|
+
Ie(() => {
|
|
5390
5390
|
Y();
|
|
5391
5391
|
});
|
|
5392
5392
|
}, se = (L) => O.value.find((x) => x.__VISIBLE__.map((ye) => ye[s.value]).indexOf(L[s.value]) !== -1), Y = () => {
|
|
@@ -5397,14 +5397,14 @@ function T0(a, e, t) {
|
|
|
5397
5397
|
l.value && (x = X.value ? L.parentElement.parentElement.parentElement : L.parentElement.parentElement.parentElement.parentElement), L.offsetTop + L.offsetHeight > x.clientHeight + x.scrollTop && (x.scrollTop = L.offsetTop + L.offsetHeight - x.clientHeight), L.offsetTop < x.scrollTop && (x.scrollTop = L.offsetTop);
|
|
5398
5398
|
};
|
|
5399
5399
|
return ue(T, (L) => {
|
|
5400
|
-
o.value && (L.length && n.value ?
|
|
5400
|
+
o.value && (L.length && n.value ? ee() : V());
|
|
5401
5401
|
}), ue(Z, (L) => {
|
|
5402
5402
|
if (L) {
|
|
5403
5403
|
let x = U.value.querySelectorAll("[data-selected]")[0];
|
|
5404
5404
|
if (!x)
|
|
5405
5405
|
return;
|
|
5406
5406
|
let ye = x.parentElement.parentElement;
|
|
5407
|
-
|
|
5407
|
+
Ie(() => {
|
|
5408
5408
|
ye.scrollTop > 0 || (ye.scrollTop = x.offsetTop);
|
|
5409
5409
|
});
|
|
5410
5410
|
}
|
|
@@ -5412,14 +5412,14 @@ function T0(a, e, t) {
|
|
|
5412
5412
|
pointer: k,
|
|
5413
5413
|
canPointGroups: W,
|
|
5414
5414
|
isPointed: E,
|
|
5415
|
-
setPointerFirst:
|
|
5415
|
+
setPointerFirst: ee,
|
|
5416
5416
|
selectPointer: R,
|
|
5417
5417
|
forwardPointer: re,
|
|
5418
5418
|
backwardPointer: me
|
|
5419
5419
|
};
|
|
5420
5420
|
}
|
|
5421
5421
|
function S0(a, e, t) {
|
|
5422
|
-
const { disabled: s } = $e(a), n = tt().proxy, o =
|
|
5422
|
+
const { disabled: s } = $e(a), n = tt().proxy, o = J(!1);
|
|
5423
5423
|
return {
|
|
5424
5424
|
isOpen: o,
|
|
5425
5425
|
open: () => {
|
|
@@ -5431,20 +5431,20 @@ function S0(a, e, t) {
|
|
|
5431
5431
|
};
|
|
5432
5432
|
}
|
|
5433
5433
|
function I0(a, e, t) {
|
|
5434
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close,
|
|
5435
|
-
s.value && i.value.blur(),
|
|
5434
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, c = t.clearSearch, u = t.isOpen, v = J(null), h = J(null), m = J(null), g = J(!1), w = J(!1), T = y(() => s.value || n.value ? -1 : 0), k = () => {
|
|
5435
|
+
s.value && i.value.blur(), h.value.blur();
|
|
5436
5436
|
}, b = () => {
|
|
5437
5437
|
s.value && !n.value && i.value.focus();
|
|
5438
5438
|
}, V = (X = !0) => {
|
|
5439
5439
|
n.value || (g.value = !0, X && l());
|
|
5440
5440
|
}, U = () => {
|
|
5441
5441
|
g.value = !1, setTimeout(() => {
|
|
5442
|
-
g.value || (r(), o.value &&
|
|
5442
|
+
g.value || (r(), o.value && c());
|
|
5443
5443
|
}, 1);
|
|
5444
5444
|
};
|
|
5445
5445
|
return {
|
|
5446
|
-
multiselect:
|
|
5447
|
-
wrapper:
|
|
5446
|
+
multiselect: v,
|
|
5447
|
+
wrapper: h,
|
|
5448
5448
|
tags: m,
|
|
5449
5449
|
tabindex: T,
|
|
5450
5450
|
isActive: g,
|
|
@@ -5463,9 +5463,9 @@ function I0(a, e, t) {
|
|
|
5463
5463
|
U(), k();
|
|
5464
5464
|
},
|
|
5465
5465
|
handleMousedown: (X) => {
|
|
5466
|
-
w.value = !0,
|
|
5466
|
+
w.value = !0, u.value && (X.target.isEqualNode(h.value) || X.target.isEqualNode(m.value)) ? setTimeout(() => {
|
|
5467
5467
|
U();
|
|
5468
|
-
}, 0) : document.activeElement.isEqualNode(
|
|
5468
|
+
}, 0) : document.activeElement.isEqualNode(h.value) && !u.value && V(), setTimeout(() => {
|
|
5469
5469
|
w.value = !1;
|
|
5470
5470
|
}, 0);
|
|
5471
5471
|
}
|
|
@@ -5479,24 +5479,24 @@ function O0(a, e, t) {
|
|
|
5479
5479
|
searchable: i,
|
|
5480
5480
|
showOptions: l,
|
|
5481
5481
|
valueProp: r,
|
|
5482
|
-
groups:
|
|
5483
|
-
addOptionOn:
|
|
5484
|
-
createTag:
|
|
5485
|
-
createOption:
|
|
5482
|
+
groups: c,
|
|
5483
|
+
addOptionOn: u,
|
|
5484
|
+
createTag: v,
|
|
5485
|
+
createOption: h,
|
|
5486
5486
|
reverse: m
|
|
5487
|
-
} = $e(a), g = tt().proxy, w = t.iv, T = t.update, k = t.search, b = t.setPointer, V = t.selectPointer, U = t.backwardPointer, Z = t.forwardPointer, H = t.multiselect, O = t.wrapper, W = t.tags, X = t.isOpen, ne = t.open, A = t.blur, S = t.fo, P = y(() =>
|
|
5488
|
-
s.value === "tags" && !l.value && P.value && i.value && !
|
|
5487
|
+
} = $e(a), g = tt().proxy, w = t.iv, T = t.update, k = t.search, b = t.setPointer, V = t.selectPointer, U = t.backwardPointer, Z = t.forwardPointer, H = t.multiselect, O = t.wrapper, W = t.tags, X = t.isOpen, ne = t.open, A = t.blur, S = t.fo, P = y(() => v.value || h.value || !1), oe = y(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), te = () => {
|
|
5488
|
+
s.value === "tags" && !l.value && P.value && i.value && !c.value && b(S.value[S.value.map((E) => E[r.value]).indexOf(k.value)]);
|
|
5489
5489
|
}, le = (E) => {
|
|
5490
|
-
let
|
|
5491
|
-
for (;
|
|
5492
|
-
|
|
5493
|
-
return
|
|
5490
|
+
let ee = E.length - 1;
|
|
5491
|
+
for (; ee >= 0 && (E[ee].remove === !1 || E[ee].disabled); )
|
|
5492
|
+
ee--;
|
|
5493
|
+
return ee < 0 || E.splice(ee, 1), E;
|
|
5494
5494
|
};
|
|
5495
5495
|
return {
|
|
5496
5496
|
handleKeydown: (E) => {
|
|
5497
5497
|
e.emit("keydown", E, g);
|
|
5498
|
-
let
|
|
5499
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(E.key) !== -1 && s.value === "tags" && (
|
|
5498
|
+
let ee, R;
|
|
5499
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(E.key) !== -1 && s.value === "tags" && (ee = [...H.value.querySelectorAll("[data-tags] > *")].filter((re) => re !== W.value), R = ee.findIndex((re) => re === document.activeElement)), E.key) {
|
|
5500
5500
|
case "Backspace":
|
|
5501
5501
|
if (s.value === "single" || i.value && [null, ""].indexOf(k.value) === -1 || w.value.length === 0)
|
|
5502
5502
|
return;
|
|
@@ -5506,7 +5506,7 @@ function O0(a, e, t) {
|
|
|
5506
5506
|
if (E.preventDefault(), E.keyCode === 229)
|
|
5507
5507
|
return;
|
|
5508
5508
|
if (R !== -1 && R !== void 0) {
|
|
5509
|
-
T([...w.value].filter((re, me) => me !== R)), R ===
|
|
5509
|
+
T([...w.value].filter((re, me) => me !== R)), R === ee.length - 1 && (ee.length - 1 ? ee[ee.length - 2].focus() : i.value ? W.value.querySelector("input").focus() : O.value.focus());
|
|
5510
5510
|
return;
|
|
5511
5511
|
}
|
|
5512
5512
|
if (oe.value.indexOf("enter") === -1 && P.value)
|
|
@@ -5547,12 +5547,12 @@ function O0(a, e, t) {
|
|
|
5547
5547
|
case "ArrowLeft":
|
|
5548
5548
|
if (i.value && W.value && W.value.querySelector("input").selectionStart || E.shiftKey || s.value !== "tags" || !w.value || !w.value.length)
|
|
5549
5549
|
return;
|
|
5550
|
-
E.preventDefault(), R === -1 ?
|
|
5550
|
+
E.preventDefault(), R === -1 ? ee[ee.length - 1].focus() : R > 0 && ee[R - 1].focus();
|
|
5551
5551
|
break;
|
|
5552
5552
|
case "ArrowRight":
|
|
5553
5553
|
if (R === -1 || E.shiftKey || s.value !== "tags" || !w.value || !w.value.length)
|
|
5554
5554
|
return;
|
|
5555
|
-
E.preventDefault(),
|
|
5555
|
+
E.preventDefault(), ee.length > R + 1 ? ee[R + 1].focus() : i.value ? W.value.querySelector("input").focus() : i.value || O.value.focus();
|
|
5556
5556
|
break;
|
|
5557
5557
|
}
|
|
5558
5558
|
},
|
|
@@ -5568,7 +5568,7 @@ function E0(a, e, t) {
|
|
|
5568
5568
|
disabled: n,
|
|
5569
5569
|
openDirection: o,
|
|
5570
5570
|
showOptions: i
|
|
5571
|
-
} = $e(a), l = t.isOpen, r = t.isPointed,
|
|
5571
|
+
} = $e(a), l = t.isOpen, r = t.isPointed, c = t.isSelected, u = t.isDisabled, v = t.isActive, h = t.canPointGroups, m = t.resolving, g = t.fo, w = y(() => ({
|
|
5572
5572
|
container: "multiselect",
|
|
5573
5573
|
containerDisabled: "is-disabled",
|
|
5574
5574
|
containerOpen: "is-open",
|
|
@@ -5626,7 +5626,7 @@ function E0(a, e, t) {
|
|
|
5626
5626
|
classList: y(() => {
|
|
5627
5627
|
const b = w.value;
|
|
5628
5628
|
return {
|
|
5629
|
-
container: [b.container].concat(n.value ? b.containerDisabled : []).concat(T.value && o.value === "top" ? b.containerOpenTop : []).concat(T.value && o.value !== "top" ? b.containerOpen : []).concat(
|
|
5629
|
+
container: [b.container].concat(n.value ? b.containerDisabled : []).concat(T.value && o.value === "top" ? b.containerOpenTop : []).concat(T.value && o.value !== "top" ? b.containerOpen : []).concat(v.value ? b.containerActive : []),
|
|
5630
5630
|
wrapper: b.wrapper,
|
|
5631
5631
|
spacer: b.spacer,
|
|
5632
5632
|
singleLabel: b.singleLabel,
|
|
@@ -5653,12 +5653,12 @@ function E0(a, e, t) {
|
|
|
5653
5653
|
group: b.group,
|
|
5654
5654
|
groupLabel: (V) => {
|
|
5655
5655
|
let U = [b.groupLabel];
|
|
5656
|
-
return r(V) ? U.push(
|
|
5656
|
+
return r(V) ? U.push(c(V) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : c(V) && h.value ? U.push(u(V) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : u(V) && U.push(b.groupLabelDisabled), h.value && U.push(b.groupLabelPointable), U;
|
|
5657
5657
|
},
|
|
5658
5658
|
groupOptions: b.groupOptions,
|
|
5659
5659
|
option: (V, U) => {
|
|
5660
5660
|
let Z = [b.option];
|
|
5661
|
-
return r(V) ? Z.push(
|
|
5661
|
+
return r(V) ? Z.push(c(V) ? b.optionSelectedPointed : b.optionPointed) : c(V) ? Z.push(u(V) ? b.optionSelectedDisabled : b.optionSelected) : (u(V) || U && u(U)) && Z.push(b.optionDisabled), Z;
|
|
5662
5662
|
},
|
|
5663
5663
|
noOptions: b.noOptions,
|
|
5664
5664
|
noResults: b.noResults,
|
|
@@ -5673,28 +5673,28 @@ function L0(a, e, t) {
|
|
|
5673
5673
|
const {
|
|
5674
5674
|
limit: s,
|
|
5675
5675
|
infinite: n
|
|
5676
|
-
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo,
|
|
5676
|
+
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, c = t.eo, u = J(null), v = J(null), h = y(() => i.value < r.value.length), m = (w) => {
|
|
5677
5677
|
const { isIntersecting: T, target: k } = w[0];
|
|
5678
5678
|
if (T) {
|
|
5679
5679
|
const b = k.offsetParent, V = b.scrollTop;
|
|
5680
|
-
i.value += s.value == -1 ? 10 : s.value,
|
|
5680
|
+
i.value += s.value == -1 ? 10 : s.value, Ie(() => {
|
|
5681
5681
|
b.scrollTop = V;
|
|
5682
5682
|
});
|
|
5683
5683
|
}
|
|
5684
5684
|
}, g = () => {
|
|
5685
|
-
o.value && i.value < r.value.length ?
|
|
5685
|
+
o.value && i.value < r.value.length ? u.value.observe(v.value) : !o.value && u.value && u.value.disconnect();
|
|
5686
5686
|
};
|
|
5687
5687
|
return ue(o, () => {
|
|
5688
5688
|
n.value && g();
|
|
5689
5689
|
}), ue(l, () => {
|
|
5690
5690
|
n.value && (i.value = s.value, g());
|
|
5691
|
-
}, { flush: "post" }), ue(
|
|
5691
|
+
}, { flush: "post" }), ue(c, () => {
|
|
5692
5692
|
n.value && g();
|
|
5693
5693
|
}, { immediate: !1, flush: "post" }), Ht(() => {
|
|
5694
|
-
window && window.IntersectionObserver && (
|
|
5694
|
+
window && window.IntersectionObserver && (u.value = new IntersectionObserver(m));
|
|
5695
5695
|
}), {
|
|
5696
|
-
hasMore:
|
|
5697
|
-
infiniteLoader:
|
|
5696
|
+
hasMore: h,
|
|
5697
|
+
infiniteLoader: v
|
|
5698
5698
|
};
|
|
5699
5699
|
}
|
|
5700
5700
|
function V0(a, e, t) {
|
|
@@ -5705,9 +5705,9 @@ function V0(a, e, t) {
|
|
|
5705
5705
|
label: i,
|
|
5706
5706
|
mode: l,
|
|
5707
5707
|
groupLabel: r,
|
|
5708
|
-
aria:
|
|
5709
|
-
searchable:
|
|
5710
|
-
} = $e(a),
|
|
5708
|
+
aria: c,
|
|
5709
|
+
searchable: u
|
|
5710
|
+
} = $e(a), v = t.pointer, h = t.iv, m = t.hasSelected, g = t.multipleLabelText, w = J(null), T = y(() => {
|
|
5711
5711
|
let S = [];
|
|
5712
5712
|
return n && n.value && S.push(n.value), S.push("assist"), S.join("-");
|
|
5713
5713
|
}), k = y(() => {
|
|
@@ -5715,14 +5715,14 @@ function V0(a, e, t) {
|
|
|
5715
5715
|
return n && n.value && S.push(n.value), S.push("multiselect-options"), S.join("-");
|
|
5716
5716
|
}), b = y(() => {
|
|
5717
5717
|
let S = [];
|
|
5718
|
-
if (n && n.value && S.push(n.value),
|
|
5719
|
-
return S.push(
|
|
5718
|
+
if (n && n.value && S.push(n.value), v.value)
|
|
5719
|
+
return S.push(v.value.group ? "multiselect-group" : "multiselect-option"), S.push(v.value.group ? v.value.index : v.value[o.value]), S.join("-");
|
|
5720
5720
|
}), V = y(() => s.value), U = y(() => l.value !== "single"), Z = y(() => {
|
|
5721
5721
|
let S = "";
|
|
5722
|
-
return l.value === "single" && m.value && (S +=
|
|
5722
|
+
return l.value === "single" && m.value && (S += h.value[i.value]), l.value === "multiple" && m.value && (S += g.value), l.value === "tags" && m.value && (S += h.value.map((P) => P[i.value]).join(", ")), S;
|
|
5723
5723
|
}), H = y(() => {
|
|
5724
|
-
let S = { ...
|
|
5725
|
-
return
|
|
5724
|
+
let S = { ...c.value };
|
|
5725
|
+
return u.value && (S["aria-labelledby"] = S["aria-labelledby"] ? `${T.value} ${S["aria-labelledby"]}` : T.value, Z.value && S["aria-label"] && (S["aria-label"] = `${Z.value}, ${S["aria-label"]}`)), S;
|
|
5726
5726
|
}), O = (S) => {
|
|
5727
5727
|
let P = [];
|
|
5728
5728
|
return n && n.value && P.push(n.value), P.push("multiselect-option"), P.push(S[o.value]), P.join("-");
|
|
@@ -6138,7 +6138,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6138
6138
|
onKeyup: e[12] || (e[12] = (...i) => a.handleKeyup && a.handleKeyup(...i)),
|
|
6139
6139
|
onKeydown: e[13] || (e[13] = (...i) => a.handleKeydown && a.handleKeydown(...i))
|
|
6140
6140
|
}, [
|
|
6141
|
-
d("div",
|
|
6141
|
+
d("div", Ve({
|
|
6142
6142
|
class: a.classList.wrapper,
|
|
6143
6143
|
onMousedown: e[9] || (e[9] = (...i) => a.handleMousedown && a.handleMousedown(...i)),
|
|
6144
6144
|
ref: "wrapper",
|
|
@@ -6151,7 +6151,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6151
6151
|
role: t.searchable ? void 0 : "combobox"
|
|
6152
6152
|
}, t.searchable ? {} : a.arias), [
|
|
6153
6153
|
I(" Search "),
|
|
6154
|
-
t.mode !== "tags" && t.searchable && !t.disabled ? (f(), p("input",
|
|
6154
|
+
t.mode !== "tags" && t.searchable && !t.disabled ? (f(), p("input", Ve({
|
|
6155
6155
|
key: 0,
|
|
6156
6156
|
type: t.inputType,
|
|
6157
6157
|
modelValue: a.search,
|
|
@@ -6196,7 +6196,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6196
6196
|
i.disabled ? a.classList.tagDisabled : null
|
|
6197
6197
|
]),
|
|
6198
6198
|
tabindex: "-1",
|
|
6199
|
-
onKeyup: Qe((
|
|
6199
|
+
onKeyup: Qe((c) => a.handleTagRemove(i, c), ["enter"]),
|
|
6200
6200
|
key: r,
|
|
6201
6201
|
"aria-label": a.ariaTagLabel(a.localize(i[t.label]))
|
|
6202
6202
|
}, [
|
|
@@ -6208,7 +6208,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6208
6208
|
!t.disabled && !i.disabled ? (f(), p("span", {
|
|
6209
6209
|
key: 0,
|
|
6210
6210
|
class: G(a.classList.tagRemove),
|
|
6211
|
-
onClick: Ce((
|
|
6211
|
+
onClick: Ce((c) => a.handleTagRemove(i, c), ["stop"])
|
|
6212
6212
|
}, [
|
|
6213
6213
|
d(
|
|
6214
6214
|
"span",
|
|
@@ -6243,7 +6243,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6243
6243
|
/* TEXT, CLASS */
|
|
6244
6244
|
),
|
|
6245
6245
|
I(" Actual search input "),
|
|
6246
|
-
t.searchable && !t.disabled ? (f(), p("input",
|
|
6246
|
+
t.searchable && !t.disabled ? (f(), p("input", Ve({
|
|
6247
6247
|
key: 0,
|
|
6248
6248
|
type: t.inputType,
|
|
6249
6249
|
modelValue: a.search,
|
|
@@ -6410,8 +6410,8 @@ function a5(a, e, t, s, n, o) {
|
|
|
6410
6410
|
key: 0,
|
|
6411
6411
|
class: G(a.classList.groupLabel(i)),
|
|
6412
6412
|
"data-pointed": a.isPointed(i),
|
|
6413
|
-
onMouseenter: (
|
|
6414
|
-
onClick: (
|
|
6413
|
+
onMouseenter: (c) => a.setPointer(i, l),
|
|
6414
|
+
onClick: (c) => a.handleGroupClick(i)
|
|
6415
6415
|
}, [
|
|
6416
6416
|
Q(a.$slots, "grouplabel", {
|
|
6417
6417
|
group: i,
|
|
@@ -6431,20 +6431,20 @@ function a5(a, e, t, s, n, o) {
|
|
|
6431
6431
|
(f(!0), p(
|
|
6432
6432
|
fe,
|
|
6433
6433
|
null,
|
|
6434
|
-
ge(i.__VISIBLE__, (
|
|
6435
|
-
class: G(a.classList.option(
|
|
6436
|
-
"data-pointed": a.isPointed(
|
|
6437
|
-
"data-selected": a.isSelected(
|
|
6438
|
-
key:
|
|
6439
|
-
onMouseenter: (
|
|
6440
|
-
onClick: (
|
|
6441
|
-
id: a.ariaOptionId(
|
|
6442
|
-
"aria-selected": a.isSelected(
|
|
6443
|
-
"aria-label": a.ariaOptionLabel(a.localize(
|
|
6434
|
+
ge(i.__VISIBLE__, (c, u, v) => (f(), p("li", {
|
|
6435
|
+
class: G(a.classList.option(c, i)),
|
|
6436
|
+
"data-pointed": a.isPointed(c),
|
|
6437
|
+
"data-selected": a.isSelected(c) || void 0,
|
|
6438
|
+
key: v,
|
|
6439
|
+
onMouseenter: (h) => a.setPointer(c),
|
|
6440
|
+
onClick: (h) => a.handleOptionClick(c),
|
|
6441
|
+
id: a.ariaOptionId(c),
|
|
6442
|
+
"aria-selected": a.isSelected(c),
|
|
6443
|
+
"aria-label": a.ariaOptionLabel(a.localize(c[t.label])),
|
|
6444
6444
|
role: "option"
|
|
6445
6445
|
}, [
|
|
6446
6446
|
Q(a.$slots, "option", {
|
|
6447
|
-
option:
|
|
6447
|
+
option: c,
|
|
6448
6448
|
isSelected: a.isSelected,
|
|
6449
6449
|
isPointed: a.isPointed,
|
|
6450
6450
|
search: a.search
|
|
@@ -6452,7 +6452,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6452
6452
|
d(
|
|
6453
6453
|
"span",
|
|
6454
6454
|
null,
|
|
6455
|
-
q(a.localize(
|
|
6455
|
+
q(a.localize(c[t.label])),
|
|
6456
6456
|
1
|
|
6457
6457
|
/* TEXT */
|
|
6458
6458
|
)
|
|
@@ -6473,8 +6473,8 @@ function a5(a, e, t, s, n, o) {
|
|
|
6473
6473
|
"data-pointed": a.isPointed(i),
|
|
6474
6474
|
"data-selected": a.isSelected(i) || void 0,
|
|
6475
6475
|
key: r,
|
|
6476
|
-
onMouseenter: (
|
|
6477
|
-
onClick: (
|
|
6476
|
+
onMouseenter: (c) => a.setPointer(i),
|
|
6477
|
+
onClick: (c) => a.handleOptionClick(i),
|
|
6478
6478
|
id: a.ariaOptionId(i),
|
|
6479
6479
|
"aria-selected": a.isSelected(i),
|
|
6480
6480
|
"aria-label": a.ariaOptionLabel(a.localize(i[t.label])),
|
|
@@ -6601,7 +6601,7 @@ const be = /* @__PURE__ */ z({
|
|
|
6601
6601
|
appendTo: {}
|
|
6602
6602
|
},
|
|
6603
6603
|
setup(a) {
|
|
6604
|
-
const e = a, t = ct(() => e.appendTo), s =
|
|
6604
|
+
const e = a, t = ct(() => e.appendTo), s = J();
|
|
6605
6605
|
return e.detached && g0({
|
|
6606
6606
|
multiselect: s,
|
|
6607
6607
|
appendTo: t.value
|
|
@@ -6661,9 +6661,9 @@ async function Re(a, e) {
|
|
|
6661
6661
|
if (s.length !== 1)
|
|
6662
6662
|
return;
|
|
6663
6663
|
const n = s[0].id;
|
|
6664
|
-
await
|
|
6664
|
+
await Ie();
|
|
6665
6665
|
const o = document.getElementById(n);
|
|
6666
|
-
o == null || o.focus(), await
|
|
6666
|
+
o == null || o.focus(), await Ie();
|
|
6667
6667
|
const i = document.getElementById(
|
|
6668
6668
|
n
|
|
6669
6669
|
);
|
|
@@ -6681,75 +6681,75 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6681
6681
|
emits: ["add", "delete", "update"],
|
|
6682
6682
|
setup(a, { emit: e }) {
|
|
6683
6683
|
const t = a, { t: s } = at();
|
|
6684
|
-
ue(() => t.tasks, (
|
|
6685
|
-
Re(
|
|
6684
|
+
ue(() => t.tasks, (u, v) => {
|
|
6685
|
+
Re(u, v);
|
|
6686
6686
|
});
|
|
6687
6687
|
const n = y(
|
|
6688
6688
|
() => {
|
|
6689
|
-
var
|
|
6690
|
-
return ((
|
|
6691
|
-
label: `${
|
|
6692
|
-
value:
|
|
6689
|
+
var u;
|
|
6690
|
+
return ((u = t.users) == null ? void 0 : u.map((v) => ({
|
|
6691
|
+
label: `${v.firstName} ${v.lastName}`,
|
|
6692
|
+
value: v.id
|
|
6693
6693
|
}))) ?? [];
|
|
6694
6694
|
}
|
|
6695
6695
|
), o = () => {
|
|
6696
|
-
const
|
|
6697
|
-
name: s("task.defaultName", { idx:
|
|
6696
|
+
const u = t.tasks.length, v = {
|
|
6697
|
+
name: s("task.defaultName", { idx: u + 1 }),
|
|
6698
6698
|
activityId: t.activityId
|
|
6699
6699
|
};
|
|
6700
|
-
e("add",
|
|
6701
|
-
}, i = (
|
|
6702
|
-
const m =
|
|
6700
|
+
e("add", v);
|
|
6701
|
+
}, i = (u, v) => {
|
|
6702
|
+
const m = u.target.value;
|
|
6703
6703
|
e("update", {
|
|
6704
|
-
id:
|
|
6704
|
+
id: v,
|
|
6705
6705
|
name: m
|
|
6706
6706
|
});
|
|
6707
|
-
}, l = (
|
|
6707
|
+
}, l = (u, v) => {
|
|
6708
6708
|
e("update", {
|
|
6709
|
-
id:
|
|
6710
|
-
isDone:
|
|
6709
|
+
id: u,
|
|
6710
|
+
isDone: v
|
|
6711
6711
|
});
|
|
6712
|
-
}, r = (
|
|
6713
|
-
e("delete", { id:
|
|
6714
|
-
},
|
|
6712
|
+
}, r = (u) => {
|
|
6713
|
+
e("delete", { id: u });
|
|
6714
|
+
}, c = (u, v) => {
|
|
6715
6715
|
e("update", {
|
|
6716
|
-
id:
|
|
6717
|
-
assigneeId:
|
|
6716
|
+
id: v,
|
|
6717
|
+
assigneeId: u[0]
|
|
6718
6718
|
});
|
|
6719
6719
|
};
|
|
6720
|
-
return (
|
|
6720
|
+
return (u, v) => (f(), p("div", s5, [
|
|
6721
6721
|
d("ul", i5, [
|
|
6722
|
-
(f(!0), p(fe, null, ge(
|
|
6722
|
+
(f(!0), p(fe, null, ge(u.tasks, (h) => {
|
|
6723
6723
|
var m, g;
|
|
6724
6724
|
return f(), p("li", {
|
|
6725
|
-
key:
|
|
6725
|
+
key: h.id,
|
|
6726
6726
|
class: "ao-subtask"
|
|
6727
6727
|
}, [
|
|
6728
|
-
((m =
|
|
6728
|
+
((m = u.isCheckable) == null ? void 0 : m.call(u, h)) ?? !1 ? (f(), F(ce, {
|
|
6729
6729
|
key: 0,
|
|
6730
6730
|
class: "ao-subtask__check",
|
|
6731
|
-
"icon-name":
|
|
6731
|
+
"icon-name": h.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
6732
6732
|
variant: "ghost",
|
|
6733
|
-
onClick: () => l(
|
|
6733
|
+
onClick: () => l(h.id, !h.isDone)
|
|
6734
6734
|
}, null, 8, ["icon-name", "onClick"])) : I("", !0),
|
|
6735
6735
|
d("input", {
|
|
6736
|
-
id:
|
|
6737
|
-
value:
|
|
6736
|
+
id: h.id,
|
|
6737
|
+
value: h.name,
|
|
6738
6738
|
class: "ao-field__input ao-subtask__field",
|
|
6739
6739
|
type: "text",
|
|
6740
|
-
onChange: (w) => i(w,
|
|
6740
|
+
onChange: (w) => i(w, h.id)
|
|
6741
6741
|
}, null, 40, o5),
|
|
6742
|
-
|
|
6742
|
+
u.users ? (f(), F(be, {
|
|
6743
6743
|
key: 1,
|
|
6744
|
-
value: [(g =
|
|
6744
|
+
value: [(g = h.assignee) == null ? void 0 : g.id],
|
|
6745
6745
|
options: n.value,
|
|
6746
6746
|
"close-on-select": !1,
|
|
6747
6747
|
searchable: !0,
|
|
6748
6748
|
max: 1,
|
|
6749
6749
|
class: "ao-subtask__assignees",
|
|
6750
6750
|
mode: "tags",
|
|
6751
|
-
placeholder:
|
|
6752
|
-
onChange: (w) =>
|
|
6751
|
+
placeholder: u.$t("feed.filters.assignee.placeholder"),
|
|
6752
|
+
onChange: (w) => c(w, h.id)
|
|
6753
6753
|
}, {
|
|
6754
6754
|
tag: N(({ option: w, handleTagRemove: T }) => [
|
|
6755
6755
|
M(_t, {
|
|
@@ -6766,14 +6766,14 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6766
6766
|
size: "sm",
|
|
6767
6767
|
variant: "ghost",
|
|
6768
6768
|
color: "neutral",
|
|
6769
|
-
onClick: () => r(
|
|
6769
|
+
onClick: () => r(h.id)
|
|
6770
6770
|
}, null, 8, ["onClick"])
|
|
6771
6771
|
]);
|
|
6772
6772
|
}), 128))
|
|
6773
6773
|
]),
|
|
6774
6774
|
d("div", l5, [
|
|
6775
6775
|
M(ce, {
|
|
6776
|
-
label:
|
|
6776
|
+
label: u.$t("activity.tasks.add"),
|
|
6777
6777
|
"icon-name": "Add",
|
|
6778
6778
|
variant: "ghost",
|
|
6779
6779
|
color: "primary",
|
|
@@ -6786,52 +6786,49 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6786
6786
|
const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
6787
6787
|
key: 0,
|
|
6788
6788
|
class: "ao-files__list"
|
|
6789
|
-
}, d5 = ["href"], f5 = { class: "ao-file__title" }, v5 = {
|
|
6790
|
-
key: 1,
|
|
6791
|
-
class: "ao-files__dropzone"
|
|
6792
|
-
}, h5 = { class: "ao-files__input" }, m5 = { class: "ao-files__button ao-button ao-button--primary ao-button--ghost" }, p5 = { class: "ao-files__placeholder" }, C5 = /* @__PURE__ */ z({
|
|
6789
|
+
}, d5 = ["href"], f5 = { class: "ao-file__title" }, v5 = { class: "ao-files__dropzone" }, h5 = { class: "ao-files__input" }, m5 = { class: "ao-files__button ao-button ao-button--primary ao-button--ghost" }, p5 = { class: "ao-files__placeholder" }, C5 = /* @__PURE__ */ z({
|
|
6793
6790
|
__name: "AoActivityDetailsFiles",
|
|
6794
6791
|
props: {
|
|
6795
6792
|
attachments: {}
|
|
6796
6793
|
},
|
|
6797
6794
|
emits: ["add", "toggleIsDropActive", "remove"],
|
|
6798
6795
|
setup(a, { emit: e }) {
|
|
6799
|
-
const t = (
|
|
6800
|
-
e("remove",
|
|
6801
|
-
}, s = (
|
|
6802
|
-
const
|
|
6803
|
-
e("add",
|
|
6796
|
+
const t = (c) => {
|
|
6797
|
+
e("remove", c);
|
|
6798
|
+
}, s = (c) => {
|
|
6799
|
+
const u = c.target, v = Array.from(u.files ?? []);
|
|
6800
|
+
e("add", v);
|
|
6804
6801
|
}, n = ["dragenter", "dragover", "dragleave", "drop"];
|
|
6805
6802
|
Ht(() => {
|
|
6806
|
-
n.forEach((
|
|
6807
|
-
document.body.addEventListener(
|
|
6803
|
+
n.forEach((c) => {
|
|
6804
|
+
document.body.addEventListener(c, (u) => u.preventDefault());
|
|
6808
6805
|
});
|
|
6809
6806
|
}), la(() => {
|
|
6810
|
-
n.forEach((
|
|
6807
|
+
n.forEach((c) => {
|
|
6811
6808
|
document.body.removeEventListener(
|
|
6812
|
-
|
|
6813
|
-
(
|
|
6809
|
+
c,
|
|
6810
|
+
(u) => u.preventDefault()
|
|
6814
6811
|
);
|
|
6815
6812
|
});
|
|
6816
6813
|
});
|
|
6817
|
-
const o =
|
|
6814
|
+
const o = J(!1);
|
|
6818
6815
|
function i() {
|
|
6819
6816
|
o.value = !0;
|
|
6820
6817
|
}
|
|
6821
6818
|
function l() {
|
|
6822
6819
|
o.value = !1;
|
|
6823
6820
|
}
|
|
6824
|
-
ue(o, (
|
|
6825
|
-
e("toggleIsDropActive",
|
|
6821
|
+
ue(o, (c) => {
|
|
6822
|
+
e("toggleIsDropActive", c);
|
|
6826
6823
|
});
|
|
6827
|
-
function r(
|
|
6828
|
-
var
|
|
6824
|
+
function r(c) {
|
|
6825
|
+
var v;
|
|
6829
6826
|
l();
|
|
6830
|
-
const
|
|
6831
|
-
|
|
6827
|
+
const u = Array.from(((v = c.dataTransfer) == null ? void 0 : v.files) || []);
|
|
6828
|
+
c.dataTransfer && e("add", u);
|
|
6832
6829
|
}
|
|
6833
|
-
return (
|
|
6834
|
-
var
|
|
6830
|
+
return (c, u) => {
|
|
6831
|
+
var v;
|
|
6835
6832
|
return f(), p("div", {
|
|
6836
6833
|
class: G([
|
|
6837
6834
|
"ao-files__wrapper",
|
|
@@ -6844,14 +6841,14 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6844
6841
|
onDragover: Ce(i, ["prevent"]),
|
|
6845
6842
|
onDragleave: Ce(l, ["prevent"])
|
|
6846
6843
|
}, [
|
|
6847
|
-
(
|
|
6848
|
-
(f(!0), p(fe, null, ge(
|
|
6849
|
-
key:
|
|
6844
|
+
(v = c.attachments) != null && v.length && c.attachments.length > 0 ? (f(), p("ul", c5, [
|
|
6845
|
+
(f(!0), p(fe, null, ge(c.attachments, (h) => (f(), p("li", {
|
|
6846
|
+
key: h.id,
|
|
6850
6847
|
class: "ao-file"
|
|
6851
6848
|
}, [
|
|
6852
6849
|
d("a", {
|
|
6853
6850
|
class: "ao-file__link",
|
|
6854
|
-
href:
|
|
6851
|
+
href: h.url,
|
|
6855
6852
|
target: "_blank",
|
|
6856
6853
|
rel: "noopener noreferrer"
|
|
6857
6854
|
}, [
|
|
@@ -6860,7 +6857,7 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6860
6857
|
name: "AttachFileRounded",
|
|
6861
6858
|
size: "sm"
|
|
6862
6859
|
}),
|
|
6863
|
-
d("span", f5, q(
|
|
6860
|
+
d("span", f5, q(h.name), 1)
|
|
6864
6861
|
], 8, d5),
|
|
6865
6862
|
M(ce, {
|
|
6866
6863
|
class: "ao-files__delete-button",
|
|
@@ -6869,12 +6866,13 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6869
6866
|
color: "primary",
|
|
6870
6867
|
size: "md",
|
|
6871
6868
|
corners: "round",
|
|
6872
|
-
onClick: () => t(
|
|
6869
|
+
onClick: () => t(h)
|
|
6873
6870
|
}, null, 8, ["onClick"])
|
|
6874
6871
|
]))), 128))
|
|
6875
|
-
])) : (
|
|
6872
|
+
])) : I("", !0),
|
|
6873
|
+
d("div", v5, [
|
|
6876
6874
|
d("label", h5, [
|
|
6877
|
-
d("span", m5, q(
|
|
6875
|
+
d("span", m5, q(c.$t("activity.attachment.button.resting")), 1),
|
|
6878
6876
|
d("input", {
|
|
6879
6877
|
class: "input-field",
|
|
6880
6878
|
type: "file",
|
|
@@ -6884,8 +6882,8 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6884
6882
|
onChange: s
|
|
6885
6883
|
}, null, 32)
|
|
6886
6884
|
]),
|
|
6887
|
-
d("span", p5, q(
|
|
6888
|
-
])
|
|
6885
|
+
d("span", p5, q(c.$t("activity.attachment.placeholder.resting")), 1)
|
|
6886
|
+
])
|
|
6889
6887
|
], 42, u5);
|
|
6890
6888
|
};
|
|
6891
6889
|
}
|
|
@@ -6907,13 +6905,13 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6907
6905
|
const t = a, s = y(() => {
|
|
6908
6906
|
const T = t.user;
|
|
6909
6907
|
return T ? `${T == null ? void 0 : T.firstName} ${T == null ? void 0 : T.lastName}` : null;
|
|
6910
|
-
}), n =
|
|
6908
|
+
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ua(n), c = y(() => M1(t.createdAt)), u = y(() => M1(t.editedAt)), v = y(() => o.value ? "textarea" : "p"), h = r(), m = l((T) => {
|
|
6911
6909
|
e("edit", T);
|
|
6912
6910
|
}), g = () => {
|
|
6913
6911
|
e("remove");
|
|
6914
|
-
}, w =
|
|
6912
|
+
}, w = J(2);
|
|
6915
6913
|
return cn(() => {
|
|
6916
|
-
|
|
6914
|
+
Ie(() => {
|
|
6917
6915
|
var T;
|
|
6918
6916
|
if (!o.value) {
|
|
6919
6917
|
const k = (T = n.value) == null ? void 0 : T.getClientRects().length;
|
|
@@ -6928,14 +6926,14 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6928
6926
|
}, null, 8, ["user-name"])) : I("", !0),
|
|
6929
6927
|
d("div", g5, [
|
|
6930
6928
|
d("div", y5, [
|
|
6931
|
-
(f(), F(et(
|
|
6929
|
+
(f(), F(et(v.value), {
|
|
6932
6930
|
ref_key: "commentContent",
|
|
6933
6931
|
ref: n,
|
|
6934
6932
|
class: "ao-comment__content",
|
|
6935
6933
|
value: j(o) ? T.content : null,
|
|
6936
6934
|
rows: j(o) ? w.value : null,
|
|
6937
6935
|
onKeyup: [
|
|
6938
|
-
Qe(j(
|
|
6936
|
+
Qe(j(h), ["esc"]),
|
|
6939
6937
|
Qe(Ce(j(m), ["ctrl"]), ["enter"])
|
|
6940
6938
|
]
|
|
6941
6939
|
}, {
|
|
@@ -6945,7 +6943,7 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6945
6943
|
_: 1
|
|
6946
6944
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
6947
6945
|
]),
|
|
6948
|
-
d("span", b5, q(
|
|
6946
|
+
d("span", b5, q(u.value || c.value), 1)
|
|
6949
6947
|
]),
|
|
6950
6948
|
T.isEditable ? (f(), p("div", w5, [
|
|
6951
6949
|
j(o) ? (f(), p(fe, { key: 0 }, [
|
|
@@ -6954,7 +6952,7 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6954
6952
|
size: "sm",
|
|
6955
6953
|
variant: "ghost",
|
|
6956
6954
|
color: "neutral",
|
|
6957
|
-
onClick: j(
|
|
6955
|
+
onClick: j(h)
|
|
6958
6956
|
}, null, 8, ["onClick"]),
|
|
6959
6957
|
M(ce, {
|
|
6960
6958
|
"icon-name": "CheckSmallRounded",
|
|
@@ -6983,10 +6981,10 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6983
6981
|
]));
|
|
6984
6982
|
}
|
|
6985
6983
|
});
|
|
6986
|
-
const M5 = {
|
|
6984
|
+
const M5 = {
|
|
6987
6985
|
key: 0,
|
|
6988
6986
|
class: "ao-comments__list"
|
|
6989
|
-
},
|
|
6987
|
+
}, k5 = { class: "ao-comments__footer" }, A5 = ["onSubmit"], T5 = { class: "ao-field ao-field--full" }, S5 = { class: "ao-field__label" }, I5 = { class: "ao-comments__form-footer" }, O5 = /* @__PURE__ */ z({
|
|
6990
6988
|
__name: "AoActivityDetailsComments",
|
|
6991
6989
|
props: {
|
|
6992
6990
|
comments: { default: () => [] },
|
|
@@ -6996,61 +6994,69 @@ const M5 = { class: "ao-comments" }, k5 = {
|
|
|
6996
6994
|
},
|
|
6997
6995
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
6998
6996
|
setup(a, { emit: e }) {
|
|
6999
|
-
const t = a, s = (u) => t.users.find((h) => h.id === u), n =
|
|
6997
|
+
const t = a, s = (u) => t.users.find((h) => h.id === u), n = J();
|
|
6998
|
+
Ie(() => {
|
|
6999
|
+
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7000
|
+
});
|
|
7001
|
+
const o = ct(t.newComment), i = y({
|
|
7000
7002
|
get() {
|
|
7001
|
-
return
|
|
7003
|
+
return o.value;
|
|
7002
7004
|
},
|
|
7003
7005
|
set(u) {
|
|
7004
|
-
|
|
7006
|
+
o.value = u;
|
|
7005
7007
|
}
|
|
7006
|
-
}),
|
|
7007
|
-
const u =
|
|
7008
|
-
u && (e("createComment", { authorId: t.userId, message: u }),
|
|
7009
|
-
},
|
|
7008
|
+
}), l = () => {
|
|
7009
|
+
const u = o.value.trim();
|
|
7010
|
+
u && (e("createComment", { authorId: t.userId, message: u }), o.value = "");
|
|
7011
|
+
}, r = (u, v) => {
|
|
7010
7012
|
e("updateComment", {
|
|
7011
7013
|
id: u,
|
|
7012
|
-
message:
|
|
7014
|
+
message: v
|
|
7013
7015
|
});
|
|
7014
|
-
},
|
|
7016
|
+
}, c = (u) => {
|
|
7015
7017
|
e("removeComment", { id: u });
|
|
7016
7018
|
};
|
|
7017
|
-
return (u,
|
|
7019
|
+
return (u, v) => {
|
|
7018
7020
|
var h;
|
|
7019
|
-
return f(), p("div",
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7021
|
+
return f(), p("div", {
|
|
7022
|
+
ref_key: "commentsContainer",
|
|
7023
|
+
ref: n,
|
|
7024
|
+
class: "ao-comments"
|
|
7025
|
+
}, [
|
|
7026
|
+
((h = u.comments) == null ? void 0 : h.length) > 0 ? (f(), p("ul", M5, [
|
|
7027
|
+
(f(!0), p(fe, null, ge(u.comments, (m) => (f(), F($5, {
|
|
7028
|
+
key: m.id,
|
|
7029
|
+
user: s(m.author.id),
|
|
7030
|
+
content: m.message,
|
|
7031
|
+
"created-at": m.createdAt,
|
|
7032
|
+
"edited-at": m.updatedAt,
|
|
7033
|
+
"is-editable": m.author.id === u.userId,
|
|
7028
7034
|
class: "ao-comment",
|
|
7029
|
-
onEdit: (
|
|
7030
|
-
onRemove: () =>
|
|
7035
|
+
onEdit: (g) => r(m.id, g),
|
|
7036
|
+
onRemove: () => c(m.id)
|
|
7031
7037
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
7032
7038
|
])) : I("", !0),
|
|
7033
|
-
d("div",
|
|
7039
|
+
d("div", k5, [
|
|
7034
7040
|
d("form", {
|
|
7035
7041
|
class: "ao-comments__form",
|
|
7036
|
-
onSubmit: Ce(
|
|
7042
|
+
onSubmit: Ce(l, ["prevent"])
|
|
7037
7043
|
}, [
|
|
7038
|
-
d("label",
|
|
7039
|
-
d("span",
|
|
7044
|
+
d("label", T5, [
|
|
7045
|
+
d("span", S5, q(u.$t("activity.comment.label")), 1),
|
|
7040
7046
|
dt(d("textarea", {
|
|
7041
|
-
"onUpdate:modelValue":
|
|
7047
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => i.value = m),
|
|
7042
7048
|
rows: "4",
|
|
7043
7049
|
class: "ao-field__textarea"
|
|
7044
7050
|
}, null, 512), [
|
|
7045
7051
|
[
|
|
7046
7052
|
It,
|
|
7047
|
-
|
|
7053
|
+
i.value,
|
|
7048
7054
|
void 0,
|
|
7049
7055
|
{ trim: !0 }
|
|
7050
7056
|
]
|
|
7051
7057
|
])
|
|
7052
7058
|
]),
|
|
7053
|
-
d("div",
|
|
7059
|
+
d("div", I5, [
|
|
7054
7060
|
M(ce, {
|
|
7055
7061
|
type: "submit",
|
|
7056
7062
|
"icon-name": "SendRounded",
|
|
@@ -7059,22 +7065,22 @@ const M5 = { class: "ao-comments" }, k5 = {
|
|
|
7059
7065
|
label: u.$t("activity.comment.submit")
|
|
7060
7066
|
}, null, 8, ["label"])
|
|
7061
7067
|
])
|
|
7062
|
-
], 40,
|
|
7068
|
+
], 40, A5)
|
|
7063
7069
|
])
|
|
7064
|
-
]);
|
|
7070
|
+
], 512);
|
|
7065
7071
|
};
|
|
7066
7072
|
}
|
|
7067
7073
|
});
|
|
7068
|
-
const
|
|
7074
|
+
const E5 = {
|
|
7069
7075
|
key: 0,
|
|
7070
7076
|
class: "ao-activity__category"
|
|
7071
|
-
},
|
|
7077
|
+
}, L5 = {
|
|
7072
7078
|
key: 0,
|
|
7073
7079
|
class: "ao-field"
|
|
7074
|
-
},
|
|
7080
|
+
}, V5 = { class: "ao-field__label" }, H5 = { class: "ao-activity-details__content" }, D5 = { class: "ao-fieldset" }, P5 = { class: "ao-field__row" }, B5 = { class: "ao-field ao-field--full" }, N5 = { class: "ao-field__label" }, R5 = { class: "ao-field__row" }, U5 = { class: "ao-field" }, Z5 = { class: "ao-field__label" }, j5 = { class: "ao-field" }, F5 = { class: "ao-field__label" }, x5 = { class: "ao-fieldset" }, q5 = { class: "ao-fieldset__title" }, W5 = { class: "ao-fieldset__body" }, z5 = { class: "ao-field__row" }, Y5 = { class: "ao-field ao-field--multiselect" }, K5 = { class: "ao-fieldset" }, G5 = { class: "ao-fieldset__title" }, X5 = { class: "ao-fieldset__body" }, Q5 = { class: "ao-fieldset" }, J5 = { class: "ao-fieldset__title" }, e7 = { class: "ao-fieldset__body" }, t7 = { class: "ao-field__row" }, a7 = { class: "ao-field ao-field--multiselect" }, n7 = { class: "ao-field__label" }, s7 = { class: "ao-field__row" }, i7 = { class: "ao-field ao-field--multiselect" }, o7 = { class: "ao-field__label" }, l7 = { class: "ao-field__row" }, r7 = { class: "ao-field ao-field--multiselect" }, u7 = { class: "ao-field__label" }, c7 = { class: "ao-fieldset" }, d7 = { class: "ao-field__row" }, f7 = { class: "ao-field ao-field--multiselect" }, v7 = { class: "ao-field__label" }, h7 = {
|
|
7075
7081
|
key: 0,
|
|
7076
7082
|
class: "ao-activity-details__aside"
|
|
7077
|
-
},
|
|
7083
|
+
}, m7 = { class: "ao-fieldset__title" }, p7 = { class: "ao-fieldset__title" }, P1 = /* @__PURE__ */ z({
|
|
7078
7084
|
__name: "AoActivityDetails",
|
|
7079
7085
|
props: {
|
|
7080
7086
|
activity: {},
|
|
@@ -7128,7 +7134,7 @@ const L5 = {
|
|
|
7128
7134
|
}), r = y(() => t.templateActivities.filter((A) => A.id !== t.activity.id).map((A) => ({
|
|
7129
7135
|
label: A.name,
|
|
7130
7136
|
value: A.id
|
|
7131
|
-
}))),
|
|
7137
|
+
}))), c = y({
|
|
7132
7138
|
get() {
|
|
7133
7139
|
return t.activity.dependingOn;
|
|
7134
7140
|
},
|
|
@@ -7138,13 +7144,13 @@ const L5 = {
|
|
|
7138
7144
|
dependingOn: A
|
|
7139
7145
|
});
|
|
7140
7146
|
}
|
|
7141
|
-
}),
|
|
7147
|
+
}), u = y(() => r.value.map((A) => {
|
|
7142
7148
|
var S;
|
|
7143
7149
|
return {
|
|
7144
7150
|
...A,
|
|
7145
7151
|
disabled: (S = t.activity.blocking) == null ? void 0 : S.some((P) => P === A.value)
|
|
7146
7152
|
};
|
|
7147
|
-
})),
|
|
7153
|
+
})), v = y({
|
|
7148
7154
|
get() {
|
|
7149
7155
|
return t.activity.blocking;
|
|
7150
7156
|
},
|
|
@@ -7154,7 +7160,7 @@ const L5 = {
|
|
|
7154
7160
|
blocking: A
|
|
7155
7161
|
});
|
|
7156
7162
|
}
|
|
7157
|
-
}),
|
|
7163
|
+
}), h = y(() => r.value.map((A) => {
|
|
7158
7164
|
var S;
|
|
7159
7165
|
return {
|
|
7160
7166
|
...A,
|
|
@@ -7231,7 +7237,7 @@ const L5 = {
|
|
|
7231
7237
|
onClose: S[8] || (S[8] = (P) => A.$emit("close"))
|
|
7232
7238
|
}, {
|
|
7233
7239
|
header: N(() => [
|
|
7234
|
-
A.breadcrumbs ? (f(), p("div",
|
|
7240
|
+
A.breadcrumbs ? (f(), p("div", E5, q(A.breadcrumbs), 1)) : I("", !0),
|
|
7235
7241
|
M(pe, {
|
|
7236
7242
|
title: A.activity.name || "",
|
|
7237
7243
|
level: 4,
|
|
@@ -7241,8 +7247,8 @@ const L5 = {
|
|
|
7241
7247
|
Q(A.$slots, "header", {}, () => {
|
|
7242
7248
|
var P;
|
|
7243
7249
|
return [
|
|
7244
|
-
H.value ? (f(), p("label",
|
|
7245
|
-
d("span",
|
|
7250
|
+
H.value ? (f(), p("label", L5, [
|
|
7251
|
+
d("span", V5, q(A.$t("activity.status.label")), 1),
|
|
7246
7252
|
M(be, {
|
|
7247
7253
|
options: H.value,
|
|
7248
7254
|
value: (P = A.activity.status) == null ? void 0 : P.id,
|
|
@@ -7255,11 +7261,11 @@ const L5 = {
|
|
|
7255
7261
|
})
|
|
7256
7262
|
]),
|
|
7257
7263
|
default: N(() => [
|
|
7258
|
-
d("div",
|
|
7259
|
-
d("fieldset",
|
|
7260
|
-
d("div",
|
|
7261
|
-
d("label",
|
|
7262
|
-
d("span",
|
|
7264
|
+
d("div", H5, [
|
|
7265
|
+
d("fieldset", D5, [
|
|
7266
|
+
d("div", P5, [
|
|
7267
|
+
d("label", B5, [
|
|
7268
|
+
d("span", N5, q(A.$t("activity.description.label")), 1),
|
|
7263
7269
|
dt(d("textarea", {
|
|
7264
7270
|
"onUpdate:modelValue": S[0] || (S[0] = (P) => n.value = P),
|
|
7265
7271
|
rows: "4",
|
|
@@ -7277,9 +7283,9 @@ const L5 = {
|
|
|
7277
7283
|
])
|
|
7278
7284
|
])
|
|
7279
7285
|
]),
|
|
7280
|
-
d("div",
|
|
7281
|
-
d("label",
|
|
7282
|
-
d("span",
|
|
7286
|
+
d("div", R5, [
|
|
7287
|
+
d("label", U5, [
|
|
7288
|
+
d("span", Z5, q(A.$t("activity.estimation.label")), 1),
|
|
7283
7289
|
dt(d("input", {
|
|
7284
7290
|
"onUpdate:modelValue": S[1] || (S[1] = (P) => o.value = P),
|
|
7285
7291
|
class: "ao-field__input",
|
|
@@ -7297,8 +7303,8 @@ const L5 = {
|
|
|
7297
7303
|
]
|
|
7298
7304
|
])
|
|
7299
7305
|
]),
|
|
7300
|
-
d("label",
|
|
7301
|
-
d("span",
|
|
7306
|
+
d("label", j5, [
|
|
7307
|
+
d("span", F5, q(A.$t("activity.important.label")), 1),
|
|
7302
7308
|
dt(d("input", {
|
|
7303
7309
|
"onUpdate:modelValue": S[2] || (S[2] = (P) => i.value = P),
|
|
7304
7310
|
class: "ao-field__input",
|
|
@@ -7314,17 +7320,17 @@ const L5 = {
|
|
|
7314
7320
|
])
|
|
7315
7321
|
])
|
|
7316
7322
|
]),
|
|
7317
|
-
d("fieldset",
|
|
7318
|
-
d("div",
|
|
7323
|
+
d("fieldset", x5, [
|
|
7324
|
+
d("div", q5, [
|
|
7319
7325
|
M(de, { name: "AccountBoxSharp" }),
|
|
7320
7326
|
M(pe, {
|
|
7321
7327
|
level: 4,
|
|
7322
7328
|
title: A.$t("activity.assignee.title")
|
|
7323
7329
|
}, null, 8, ["title"])
|
|
7324
7330
|
]),
|
|
7325
|
-
d("div",
|
|
7326
|
-
d("div",
|
|
7327
|
-
d("div",
|
|
7331
|
+
d("div", W5, [
|
|
7332
|
+
d("div", z5, [
|
|
7333
|
+
d("div", Y5, [
|
|
7328
7334
|
M(be, {
|
|
7329
7335
|
modelValue: V.value,
|
|
7330
7336
|
"onUpdate:modelValue": S[3] || (S[3] = (P) => V.value = P),
|
|
@@ -7349,15 +7355,15 @@ const L5 = {
|
|
|
7349
7355
|
])
|
|
7350
7356
|
])
|
|
7351
7357
|
]),
|
|
7352
|
-
d("fieldset",
|
|
7353
|
-
d("div",
|
|
7358
|
+
d("fieldset", K5, [
|
|
7359
|
+
d("div", G5, [
|
|
7354
7360
|
M(de, { name: "SelectCheckBox" }),
|
|
7355
7361
|
M(pe, {
|
|
7356
7362
|
level: 4,
|
|
7357
7363
|
title: A.$t("activity.tasks.title")
|
|
7358
7364
|
}, null, 8, ["title"])
|
|
7359
7365
|
]),
|
|
7360
|
-
d("div",
|
|
7366
|
+
d("div", X5, [
|
|
7361
7367
|
M(r5, {
|
|
7362
7368
|
class: "ao-activity-details__tasks ao-field__row",
|
|
7363
7369
|
tasks: A.activity.tasks || [],
|
|
@@ -7370,44 +7376,44 @@ const L5 = {
|
|
|
7370
7376
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable"])
|
|
7371
7377
|
])
|
|
7372
7378
|
]),
|
|
7373
|
-
d("fieldset",
|
|
7374
|
-
d("div",
|
|
7379
|
+
d("fieldset", Q5, [
|
|
7380
|
+
d("div", J5, [
|
|
7375
7381
|
M(de, { name: "FlowsheetOutlineRounded" }),
|
|
7376
7382
|
M(pe, {
|
|
7377
7383
|
level: 4,
|
|
7378
7384
|
title: A.$t("activity.dependencies.title")
|
|
7379
7385
|
}, null, 8, ["title"])
|
|
7380
7386
|
]),
|
|
7381
|
-
d("div",
|
|
7382
|
-
d("div",
|
|
7383
|
-
d("label",
|
|
7384
|
-
d("span",
|
|
7387
|
+
d("div", e7, [
|
|
7388
|
+
d("div", t7, [
|
|
7389
|
+
d("label", a7, [
|
|
7390
|
+
d("span", n7, q(A.$t("activity.dependingOn.label")), 1),
|
|
7385
7391
|
M(be, {
|
|
7386
|
-
modelValue:
|
|
7387
|
-
"onUpdate:modelValue": S[4] || (S[4] = (P) =>
|
|
7392
|
+
modelValue: c.value,
|
|
7393
|
+
"onUpdate:modelValue": S[4] || (S[4] = (P) => c.value = P),
|
|
7388
7394
|
mode: "tags",
|
|
7389
7395
|
"close-on-select": !1,
|
|
7390
7396
|
searchable: !0,
|
|
7391
|
-
options:
|
|
7397
|
+
options: u.value
|
|
7392
7398
|
}, null, 8, ["modelValue", "options"])
|
|
7393
7399
|
])
|
|
7394
7400
|
]),
|
|
7395
|
-
d("div",
|
|
7396
|
-
d("label",
|
|
7397
|
-
d("span",
|
|
7401
|
+
d("div", s7, [
|
|
7402
|
+
d("label", i7, [
|
|
7403
|
+
d("span", o7, q(A.$t("activity.blocking.label")), 1),
|
|
7398
7404
|
M(be, {
|
|
7399
|
-
modelValue:
|
|
7400
|
-
"onUpdate:modelValue": S[5] || (S[5] = (P) =>
|
|
7405
|
+
modelValue: v.value,
|
|
7406
|
+
"onUpdate:modelValue": S[5] || (S[5] = (P) => v.value = P),
|
|
7401
7407
|
mode: "tags",
|
|
7402
7408
|
"close-on-select": !1,
|
|
7403
7409
|
searchable: !0,
|
|
7404
|
-
options:
|
|
7410
|
+
options: h.value
|
|
7405
7411
|
}, null, 8, ["modelValue", "options"])
|
|
7406
7412
|
])
|
|
7407
7413
|
]),
|
|
7408
|
-
d("div",
|
|
7409
|
-
d("label",
|
|
7410
|
-
d("span",
|
|
7414
|
+
d("div", l7, [
|
|
7415
|
+
d("label", r7, [
|
|
7416
|
+
d("span", u7, q(A.$t("activity.dependingMilestone.label")), 1),
|
|
7411
7417
|
M(be, {
|
|
7412
7418
|
modelValue: g.value,
|
|
7413
7419
|
"onUpdate:modelValue": S[6] || (S[6] = (P) => g.value = P),
|
|
@@ -7420,10 +7426,10 @@ const L5 = {
|
|
|
7420
7426
|
])
|
|
7421
7427
|
])
|
|
7422
7428
|
]),
|
|
7423
|
-
d("fieldset",
|
|
7424
|
-
d("div",
|
|
7425
|
-
d("label",
|
|
7426
|
-
d("span",
|
|
7429
|
+
d("fieldset", c7, [
|
|
7430
|
+
d("div", d7, [
|
|
7431
|
+
d("label", f7, [
|
|
7432
|
+
d("span", v7, q(A.$t("activity.type.label")), 1),
|
|
7427
7433
|
M(be, {
|
|
7428
7434
|
modelValue: l.value,
|
|
7429
7435
|
"onUpdate:modelValue": S[7] || (S[7] = (P) => l.value = P),
|
|
@@ -7438,8 +7444,8 @@ const L5 = {
|
|
|
7438
7444
|
Q(A.$slots, "default")
|
|
7439
7445
|
])
|
|
7440
7446
|
]),
|
|
7441
|
-
A.isTemplate !== !
|
|
7442
|
-
d("div",
|
|
7447
|
+
A.isTemplate !== !0 && A.userId ? (f(), p("div", h7, [
|
|
7448
|
+
d("div", m7, [
|
|
7443
7449
|
M(de, { name: "AttachFileRounded" }),
|
|
7444
7450
|
M(pe, {
|
|
7445
7451
|
level: 4,
|
|
@@ -7451,50 +7457,48 @@ const L5 = {
|
|
|
7451
7457
|
onAdd: U,
|
|
7452
7458
|
onRemove: Z
|
|
7453
7459
|
}, null, 8, ["attachments"]),
|
|
7454
|
-
d("
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
}, null, 8, ["comments", "users", "user-id"])
|
|
7470
|
-
])
|
|
7460
|
+
d("div", p7, [
|
|
7461
|
+
M(de, { name: "ChatOutline" }),
|
|
7462
|
+
M(pe, {
|
|
7463
|
+
level: 4,
|
|
7464
|
+
title: A.$t("activity.comments.title")
|
|
7465
|
+
}, null, 8, ["title"])
|
|
7466
|
+
]),
|
|
7467
|
+
M(O5, {
|
|
7468
|
+
comments: A.activity.comments,
|
|
7469
|
+
users: A.users,
|
|
7470
|
+
"user-id": A.userId,
|
|
7471
|
+
onCreateComment: W,
|
|
7472
|
+
onUpdateComment: X,
|
|
7473
|
+
onRemoveComment: ne
|
|
7474
|
+
}, null, 8, ["comments", "users", "user-id"])
|
|
7471
7475
|
])) : I("", !0)
|
|
7472
7476
|
]),
|
|
7473
7477
|
_: 3
|
|
7474
7478
|
}));
|
|
7475
7479
|
}
|
|
7476
7480
|
});
|
|
7477
|
-
const
|
|
7481
|
+
const C7 = {
|
|
7478
7482
|
todo: "todo",
|
|
7479
7483
|
done: "done",
|
|
7480
7484
|
archived: "archived"
|
|
7481
|
-
},
|
|
7485
|
+
}, H4 = {
|
|
7482
7486
|
months: "months",
|
|
7483
7487
|
weeks: "weeks",
|
|
7484
7488
|
days: "days"
|
|
7485
|
-
},
|
|
7489
|
+
}, D4 = {
|
|
7486
7490
|
future: "future",
|
|
7487
7491
|
this_month: "this_month",
|
|
7488
7492
|
this_week: "this_week",
|
|
7489
7493
|
today: "today",
|
|
7490
7494
|
done: "done"
|
|
7491
|
-
},
|
|
7495
|
+
}, _7 = {
|
|
7492
7496
|
BEFORE: "before",
|
|
7493
7497
|
AFTER: "after"
|
|
7494
|
-
},
|
|
7498
|
+
}, g7 = {
|
|
7495
7499
|
START: "start",
|
|
7496
7500
|
end: "end"
|
|
7497
|
-
},
|
|
7501
|
+
}, y7 = {
|
|
7498
7502
|
DAYS: "days",
|
|
7499
7503
|
WEEKS: "weeks",
|
|
7500
7504
|
MONTHS: "months"
|
|
@@ -7505,8 +7509,8 @@ const g7 = {
|
|
|
7505
7509
|
ACTIVITIES: "activities",
|
|
7506
7510
|
TASKS: "tasks"
|
|
7507
7511
|
};
|
|
7508
|
-
var
|
|
7509
|
-
const
|
|
7512
|
+
var b7 = /* @__PURE__ */ ((a) => (a.PHASES = "phases", a.MILESTONES = "milestones", a.ACTIVITIES = "activities", a))(b7 || {});
|
|
7513
|
+
const P4 = {
|
|
7510
7514
|
add: "add",
|
|
7511
7515
|
remove: "remove",
|
|
7512
7516
|
moved: "moved"
|
|
@@ -7514,7 +7518,7 @@ const N4 = {
|
|
|
7514
7518
|
project: "projectId",
|
|
7515
7519
|
type: "typeId",
|
|
7516
7520
|
assignee: "assigneeId"
|
|
7517
|
-
},
|
|
7521
|
+
}, w7 = /* @__PURE__ */ z({
|
|
7518
7522
|
__name: "AoRuleLine",
|
|
7519
7523
|
props: {
|
|
7520
7524
|
rule: {},
|
|
@@ -7559,21 +7563,21 @@ const N4 = {
|
|
|
7559
7563
|
value: V.id,
|
|
7560
7564
|
label: V.name
|
|
7561
7565
|
}));
|
|
7562
|
-
}), r = ct(t.rule.comparator),
|
|
7566
|
+
}), r = ct(t.rule.comparator), c = y({
|
|
7563
7567
|
get() {
|
|
7564
7568
|
return r.value;
|
|
7565
7569
|
},
|
|
7566
7570
|
set(k) {
|
|
7567
7571
|
e("update:rule", { ...t.rule, comparator: k });
|
|
7568
7572
|
}
|
|
7569
|
-
}),
|
|
7573
|
+
}), u = y(() => Object.values(_7)), v = ct(t.rule.trigger), h = y({
|
|
7570
7574
|
get() {
|
|
7571
|
-
return
|
|
7575
|
+
return v.value;
|
|
7572
7576
|
},
|
|
7573
7577
|
set(k) {
|
|
7574
7578
|
e("update:rule", { ...t.rule, trigger: k });
|
|
7575
7579
|
}
|
|
7576
|
-
}), m = y(() => Object.values(
|
|
7580
|
+
}), m = y(() => Object.values(g7)), g = y({
|
|
7577
7581
|
get() {
|
|
7578
7582
|
return t.rule.duration;
|
|
7579
7583
|
},
|
|
@@ -7587,7 +7591,7 @@ const N4 = {
|
|
|
7587
7591
|
set(k) {
|
|
7588
7592
|
e("update:rule", { ...t.rule, durationUnit: k });
|
|
7589
7593
|
}
|
|
7590
|
-
}), T = y(() => Object.values(
|
|
7594
|
+
}), T = y(() => Object.values(y7));
|
|
7591
7595
|
return (k, b) => (f(), F(et(k.tagName), { class: "ao-rule-line" }, {
|
|
7592
7596
|
default: N(() => [
|
|
7593
7597
|
M(j(qe), {
|
|
@@ -7601,14 +7605,14 @@ const N4 = {
|
|
|
7601
7605
|
options: l.value
|
|
7602
7606
|
}, null, 8, ["modelValue", "options"]),
|
|
7603
7607
|
M(j(qe), {
|
|
7604
|
-
modelValue:
|
|
7605
|
-
"onUpdate:modelValue": b[2] || (b[2] = (V) =>
|
|
7608
|
+
modelValue: h.value,
|
|
7609
|
+
"onUpdate:modelValue": b[2] || (b[2] = (V) => h.value = V),
|
|
7606
7610
|
options: m.value
|
|
7607
7611
|
}, null, 8, ["modelValue", "options"]),
|
|
7608
7612
|
M(j(qe), {
|
|
7609
|
-
modelValue:
|
|
7610
|
-
"onUpdate:modelValue": b[3] || (b[3] = (V) =>
|
|
7611
|
-
options:
|
|
7613
|
+
modelValue: c.value,
|
|
7614
|
+
"onUpdate:modelValue": b[3] || (b[3] = (V) => c.value = V),
|
|
7615
|
+
options: u.value
|
|
7612
7616
|
}, null, 8, ["modelValue", "options"]),
|
|
7613
7617
|
dt(d("input", {
|
|
7614
7618
|
"onUpdate:modelValue": b[4] || (b[4] = (V) => g.value = V),
|
|
@@ -7638,7 +7642,7 @@ const N4 = {
|
|
|
7638
7642
|
}));
|
|
7639
7643
|
}
|
|
7640
7644
|
});
|
|
7641
|
-
const
|
|
7645
|
+
const $7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rules__list" }, k7 = /* @__PURE__ */ z({
|
|
7642
7646
|
__name: "AoTemplateRules",
|
|
7643
7647
|
props: {
|
|
7644
7648
|
templateId: {},
|
|
@@ -7662,9 +7666,9 @@ const k7 = { class: "ao-template-rules__body" }, A7 = { class: "ao-template-rule
|
|
|
7662
7666
|
}, null, 8, ["title"])
|
|
7663
7667
|
]),
|
|
7664
7668
|
default: N(() => [
|
|
7665
|
-
d("div",
|
|
7666
|
-
d("ul",
|
|
7667
|
-
(f(!0), p(fe, null, ge(n.rules, (i) => (f(), F(
|
|
7669
|
+
d("div", $7, [
|
|
7670
|
+
d("ul", M7, [
|
|
7671
|
+
(f(!0), p(fe, null, ge(n.rules, (i) => (f(), F(w7, {
|
|
7668
7672
|
key: i.id,
|
|
7669
7673
|
rule: i,
|
|
7670
7674
|
"template-phases": n.templatePhases,
|
|
@@ -7692,10 +7696,10 @@ function vt(a, e, t) {
|
|
|
7692
7696
|
rank: o.format()
|
|
7693
7697
|
};
|
|
7694
7698
|
}
|
|
7695
|
-
const
|
|
7699
|
+
const A7 = {
|
|
7696
7700
|
key: 0,
|
|
7697
7701
|
class: "ao-template-details"
|
|
7698
|
-
},
|
|
7702
|
+
}, T7 = { class: "ao-template-details__body" }, S7 = { class: "ao-template-details__cols" }, I7 = { class: "ao-template-details__col" }, O7 = { class: "ao-list__footer" }, E7 = { class: "ao-template-details__col" }, L7 = { class: "ao-template-details__col" }, V7 = /* @__PURE__ */ z({
|
|
7699
7703
|
__name: "AoTemplateDetails",
|
|
7700
7704
|
props: {
|
|
7701
7705
|
templateId: {},
|
|
@@ -7744,34 +7748,34 @@ const S7 = {
|
|
|
7744
7748
|
});
|
|
7745
7749
|
const l = y(() => {
|
|
7746
7750
|
var $, _;
|
|
7747
|
-
return ((_ = ($ = n.value) == null ? void 0 : $.phases) == null ? void 0 : _.reduce((E,
|
|
7748
|
-
const R =
|
|
7751
|
+
return ((_ = ($ = n.value) == null ? void 0 : $.phases) == null ? void 0 : _.reduce((E, ee) => {
|
|
7752
|
+
const R = ee.milestones || [];
|
|
7749
7753
|
return [...E, ...R];
|
|
7750
7754
|
}, [])) || [];
|
|
7751
7755
|
}), r = y(() => {
|
|
7752
7756
|
var $, _;
|
|
7753
|
-
return ((_ = ($ = n.value) == null ? void 0 : $.phases) == null ? void 0 : _.reduce((E,
|
|
7754
|
-
const re = (
|
|
7757
|
+
return ((_ = ($ = n.value) == null ? void 0 : $.phases) == null ? void 0 : _.reduce((E, ee) => {
|
|
7758
|
+
const re = (ee.milestones || []).reduce(
|
|
7755
7759
|
(me, se) => se.activities ? [...me, ...se.activities] : me,
|
|
7756
7760
|
[]
|
|
7757
7761
|
);
|
|
7758
7762
|
return [...E, ...re];
|
|
7759
7763
|
}, [])) || [];
|
|
7760
|
-
}),
|
|
7764
|
+
}), c = y(() => {
|
|
7761
7765
|
var $, _;
|
|
7762
7766
|
return (_ = ($ = i.value) == null ? void 0 : $.activities) == null ? void 0 : _.find(
|
|
7763
7767
|
(E) => E.id === t.activityId
|
|
7764
7768
|
);
|
|
7765
|
-
}),
|
|
7769
|
+
}), u = y(() => {
|
|
7766
7770
|
var $;
|
|
7767
7771
|
return (($ = t.activityTypes) == null ? void 0 : $.map((_) => ({
|
|
7768
7772
|
label: _.name,
|
|
7769
7773
|
value: _.id
|
|
7770
7774
|
}))) || [];
|
|
7771
|
-
}),
|
|
7775
|
+
}), v = y(() => {
|
|
7772
7776
|
var $;
|
|
7773
7777
|
return (($ = n.value) == null ? void 0 : $.name) || t.templateId;
|
|
7774
|
-
}),
|
|
7778
|
+
}), h = () => {
|
|
7775
7779
|
if (!n.value)
|
|
7776
7780
|
return;
|
|
7777
7781
|
const { name: $, rank: _ } = vt(
|
|
@@ -7850,7 +7854,7 @@ const S7 = {
|
|
|
7850
7854
|
const { milestoneId: _ } = $;
|
|
7851
7855
|
if (!i.value)
|
|
7852
7856
|
return;
|
|
7853
|
-
const { name: E, rank:
|
|
7857
|
+
const { name: E, rank: ee } = vt(
|
|
7854
7858
|
i.value.activities,
|
|
7855
7859
|
"activity",
|
|
7856
7860
|
s
|
|
@@ -7859,7 +7863,7 @@ const S7 = {
|
|
|
7859
7863
|
type: he.ACTIVITIES,
|
|
7860
7864
|
milestoneId: _,
|
|
7861
7865
|
templateId: t.templateId,
|
|
7862
|
-
item: { name: E, rank:
|
|
7866
|
+
item: { name: E, rank: ee, milestoneId: _ }
|
|
7863
7867
|
});
|
|
7864
7868
|
}, Z = ($) => {
|
|
7865
7869
|
var _, E;
|
|
@@ -7880,7 +7884,7 @@ const S7 = {
|
|
|
7880
7884
|
templateId: t.templateId,
|
|
7881
7885
|
data: E
|
|
7882
7886
|
});
|
|
7883
|
-
}, O =
|
|
7887
|
+
}, O = J(!1), W = () => {
|
|
7884
7888
|
O.value = !O.value;
|
|
7885
7889
|
}, X = () => {
|
|
7886
7890
|
e("addRule", { templateId: t.templateId });
|
|
@@ -7900,7 +7904,7 @@ const S7 = {
|
|
|
7900
7904
|
});
|
|
7901
7905
|
}
|
|
7902
7906
|
}, S = ($) => {
|
|
7903
|
-
!o.value || !i.value || !
|
|
7907
|
+
!o.value || !i.value || !c.value || e("addItem", {
|
|
7904
7908
|
type: he.TASKS,
|
|
7905
7909
|
activityId: $.activityId,
|
|
7906
7910
|
milestoneId: i.value.id,
|
|
@@ -7909,16 +7913,16 @@ const S7 = {
|
|
|
7909
7913
|
item: $
|
|
7910
7914
|
});
|
|
7911
7915
|
}, P = ($) => {
|
|
7912
|
-
!o.value || !i.value || !
|
|
7913
|
-
itemType: he.
|
|
7916
|
+
!o.value || !i.value || !c.value || e("updateItem", {
|
|
7917
|
+
itemType: he.TASKS,
|
|
7914
7918
|
id: $.id,
|
|
7915
7919
|
templateId: t.templateId,
|
|
7916
7920
|
data: $
|
|
7917
7921
|
});
|
|
7918
7922
|
}, oe = ($) => {
|
|
7919
|
-
!o.value || !i.value || !
|
|
7923
|
+
!o.value || !i.value || !c.value || e("removeItem", {
|
|
7920
7924
|
type: he.TASKS,
|
|
7921
|
-
activityId:
|
|
7925
|
+
activityId: c.value.id,
|
|
7922
7926
|
milestoneId: i.value.id,
|
|
7923
7927
|
phaseId: o.value.id,
|
|
7924
7928
|
templateId: t.templateId,
|
|
@@ -7930,15 +7934,15 @@ const S7 = {
|
|
|
7930
7934
|
e("removeFile", $);
|
|
7931
7935
|
};
|
|
7932
7936
|
return ($, _) => {
|
|
7933
|
-
var E,
|
|
7934
|
-
return n.value ? (f(), p("div",
|
|
7937
|
+
var E, ee, R, re, me, se;
|
|
7938
|
+
return n.value ? (f(), p("div", A7, [
|
|
7935
7939
|
M(l1, {
|
|
7936
7940
|
"can-go-back": !0,
|
|
7937
7941
|
onGoBack: _[1] || (_[1] = (Y) => $.$router.push({ name: j(Tt).TEMPLATES_LIST }))
|
|
7938
7942
|
}, {
|
|
7939
7943
|
primary: N(() => [
|
|
7940
7944
|
M(pe, {
|
|
7941
|
-
title:
|
|
7945
|
+
title: v.value,
|
|
7942
7946
|
level: 2,
|
|
7943
7947
|
"is-editable": !0,
|
|
7944
7948
|
"onUpdate:title": _[0] || (_[0] = (Y) => {
|
|
@@ -7957,9 +7961,9 @@ const S7 = {
|
|
|
7957
7961
|
]),
|
|
7958
7962
|
_: 1
|
|
7959
7963
|
}),
|
|
7960
|
-
d("div",
|
|
7961
|
-
d("ol",
|
|
7962
|
-
d("li",
|
|
7964
|
+
d("div", T7, [
|
|
7965
|
+
d("ol", S7, [
|
|
7966
|
+
d("li", I7, [
|
|
7963
7967
|
M(j(Ke), {
|
|
7964
7968
|
"model-value": n.value.phases,
|
|
7965
7969
|
class: "ao-templates__list",
|
|
@@ -7994,18 +7998,18 @@ const S7 = {
|
|
|
7994
7998
|
];
|
|
7995
7999
|
}),
|
|
7996
8000
|
footer: N(() => [
|
|
7997
|
-
d("div",
|
|
8001
|
+
d("div", O7, [
|
|
7998
8002
|
M(Ge, {
|
|
7999
8003
|
"icon-name": "AddBoxOutlineRounded",
|
|
8000
8004
|
label: $.$t("template.phases.add"),
|
|
8001
|
-
onClick:
|
|
8005
|
+
onClick: h
|
|
8002
8006
|
}, null, 8, ["label"])
|
|
8003
8007
|
])
|
|
8004
8008
|
]),
|
|
8005
8009
|
_: 1
|
|
8006
8010
|
}, 8, ["model-value"])
|
|
8007
8011
|
]),
|
|
8008
|
-
d("li",
|
|
8012
|
+
d("li", E7, [
|
|
8009
8013
|
o.value ? (f(), F(L3, {
|
|
8010
8014
|
key: 0,
|
|
8011
8015
|
"template-id": $.templateId,
|
|
@@ -8017,13 +8021,13 @@ const S7 = {
|
|
|
8017
8021
|
onRemoveMilestone: b
|
|
8018
8022
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : I("", !0)
|
|
8019
8023
|
]),
|
|
8020
|
-
d("li",
|
|
8024
|
+
d("li", L7, [
|
|
8021
8025
|
o.value && i.value ? (f(), F(D3, {
|
|
8022
8026
|
key: 0,
|
|
8023
8027
|
"template-id": $.templateId,
|
|
8024
|
-
"phase-id": (
|
|
8028
|
+
"phase-id": (ee = o.value) == null ? void 0 : ee.id,
|
|
8025
8029
|
milestone: i.value,
|
|
8026
|
-
"activity-id": (R =
|
|
8030
|
+
"activity-id": (R = c.value) == null ? void 0 : R.id,
|
|
8027
8031
|
onAddActivity: U,
|
|
8028
8032
|
onUpdateActivity: H,
|
|
8029
8033
|
onRemoveActivity: Z
|
|
@@ -8032,10 +8036,10 @@ const S7 = {
|
|
|
8032
8036
|
])
|
|
8033
8037
|
]),
|
|
8034
8038
|
(f(), F(Ot, { to: "body" }, [
|
|
8035
|
-
|
|
8039
|
+
c.value ? (f(), F(P1, {
|
|
8036
8040
|
key: 0,
|
|
8037
|
-
activity:
|
|
8038
|
-
"activity-types":
|
|
8041
|
+
activity: c.value,
|
|
8042
|
+
"activity-types": u.value,
|
|
8039
8043
|
breadcrumbs: `${n.value.name} / ${(re = o.value) == null ? void 0 : re.name} / ${(me = i.value) == null ? void 0 : me.name}`,
|
|
8040
8044
|
"milestone-id": (se = i.value) == null ? void 0 : se.id,
|
|
8041
8045
|
"template-activities": r.value,
|
|
@@ -8043,7 +8047,7 @@ const S7 = {
|
|
|
8043
8047
|
"is-template": !0,
|
|
8044
8048
|
users: $.users,
|
|
8045
8049
|
"onUpdate:activity": _[2] || (_[2] = (Y) => {
|
|
8046
|
-
|
|
8050
|
+
c.value && H(Y);
|
|
8047
8051
|
}),
|
|
8048
8052
|
onClose: $.$router.back,
|
|
8049
8053
|
onAddSubtask: S,
|
|
@@ -8054,7 +8058,7 @@ const S7 = {
|
|
|
8054
8058
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : I("", !0)
|
|
8055
8059
|
])),
|
|
8056
8060
|
(f(), F(Ot, { to: "body" }, [
|
|
8057
|
-
O.value ? (f(), F(
|
|
8061
|
+
O.value ? (f(), F(k7, {
|
|
8058
8062
|
key: 0,
|
|
8059
8063
|
"template-id": n.value.id,
|
|
8060
8064
|
rules: n.value.rules || [],
|
|
@@ -8070,10 +8074,10 @@ const S7 = {
|
|
|
8070
8074
|
};
|
|
8071
8075
|
}
|
|
8072
8076
|
});
|
|
8073
|
-
const
|
|
8077
|
+
const H7 = {
|
|
8074
8078
|
key: 0,
|
|
8075
8079
|
class: "ao-card__header"
|
|
8076
|
-
},
|
|
8080
|
+
}, D7 = { class: "ao-card__body" }, P7 = {
|
|
8077
8081
|
key: 1,
|
|
8078
8082
|
class: "ao-card__footer"
|
|
8079
8083
|
}, B1 = /* @__PURE__ */ z({
|
|
@@ -8087,13 +8091,13 @@ const P7 = {
|
|
|
8087
8091
|
class: G(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
8088
8092
|
}, {
|
|
8089
8093
|
default: N(() => [
|
|
8090
|
-
e.$slots.header ? (f(), p("header",
|
|
8094
|
+
e.$slots.header ? (f(), p("header", H7, [
|
|
8091
8095
|
Q(e.$slots, "header")
|
|
8092
8096
|
])) : I("", !0),
|
|
8093
|
-
d("div",
|
|
8097
|
+
d("div", D7, [
|
|
8094
8098
|
Q(e.$slots, "default")
|
|
8095
8099
|
]),
|
|
8096
|
-
e.$slots.footer ? (f(), p("footer",
|
|
8100
|
+
e.$slots.footer ? (f(), p("footer", P7, [
|
|
8097
8101
|
Q(e.$slots, "footer")
|
|
8098
8102
|
])) : I("", !0)
|
|
8099
8103
|
]),
|
|
@@ -8121,10 +8125,10 @@ const N1 = /* @__PURE__ */ z({
|
|
|
8121
8125
|
], 2));
|
|
8122
8126
|
}
|
|
8123
8127
|
});
|
|
8124
|
-
const
|
|
8128
|
+
const B7 = { class: "ao-card-project-phase__header" }, N7 = { class: "ao-card-project-phase__footer" }, R7 = { class: "ao-card-project-phase__footer-row" }, U7 = { class: "ao-card-project-phase__subitem" }, Z7 = { class: "ao-card-project-phase__subitem" }, j7 = {
|
|
8125
8129
|
key: 1,
|
|
8126
8130
|
class: "ao-card-project-phase__secondary"
|
|
8127
|
-
},
|
|
8131
|
+
}, F7 = /* @__PURE__ */ z({
|
|
8128
8132
|
__name: "AoCardProjectItemPhase",
|
|
8129
8133
|
props: {
|
|
8130
8134
|
id: {},
|
|
@@ -8141,11 +8145,11 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8141
8145
|
return (l = t.milestones) == null ? void 0 : l.length;
|
|
8142
8146
|
}), o = y(() => {
|
|
8143
8147
|
var l;
|
|
8144
|
-
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status ===
|
|
8148
|
+
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === C7.done).length;
|
|
8145
8149
|
}), i = y(() => (o.value || 0) / (n.value || 1));
|
|
8146
8150
|
return (l, r) => (f(), F(B1, { class: "ao-card-project-phase" }, {
|
|
8147
8151
|
header: N(() => [
|
|
8148
|
-
d("div",
|
|
8152
|
+
d("div", B7, [
|
|
8149
8153
|
M(ce, {
|
|
8150
8154
|
class: "ao-card-project-phase__archive",
|
|
8151
8155
|
color: "primary",
|
|
@@ -8170,22 +8174,22 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8170
8174
|
}, null, 8, ["id", "title"])
|
|
8171
8175
|
]),
|
|
8172
8176
|
footer: N(() => [
|
|
8173
|
-
d("div",
|
|
8174
|
-
d("div",
|
|
8177
|
+
d("div", N7, [
|
|
8178
|
+
d("div", R7, [
|
|
8175
8179
|
n.value ? (f(), p(fe, { key: 0 }, [
|
|
8176
|
-
d("div",
|
|
8180
|
+
d("div", U7, [
|
|
8177
8181
|
M(de, {
|
|
8178
8182
|
name: "MountainFlagOutlineRounded",
|
|
8179
8183
|
size: "sm"
|
|
8180
8184
|
}),
|
|
8181
|
-
d("span",
|
|
8185
|
+
d("span", Z7, q(o.value) + " / " + q(n.value), 1)
|
|
8182
8186
|
]),
|
|
8183
8187
|
M(N1, {
|
|
8184
8188
|
percentages: i.value,
|
|
8185
8189
|
class: "ao-card-project-phase__progress"
|
|
8186
8190
|
}, null, 8, ["percentages"])
|
|
8187
8191
|
], 64)) : I("", !0),
|
|
8188
|
-
l.$slots.secondary ? (f(), p("div",
|
|
8192
|
+
l.$slots.secondary ? (f(), p("div", j7, [
|
|
8189
8193
|
Q(l.$slots, "secondary")
|
|
8190
8194
|
])) : I("", !0)
|
|
8191
8195
|
])
|
|
@@ -8195,10 +8199,10 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8195
8199
|
}));
|
|
8196
8200
|
}
|
|
8197
8201
|
});
|
|
8198
|
-
const
|
|
8202
|
+
const x7 = { class: "ao-card-project-milestone__default" }, q7 = { class: "ao-card-project-milestone__archive" }, W7 = { class: "ao-card-project-phase__footer" }, z7 = { class: "ao-card-project-phase__footer-row" }, Y7 = { class: "ao-card-project-phase__subitem" }, K7 = { class: "ao-card-project-phase__subitem" }, G7 = {
|
|
8199
8203
|
key: 1,
|
|
8200
8204
|
class: "ao-card-project-phase__secondary"
|
|
8201
|
-
},
|
|
8205
|
+
}, X7 = /* @__PURE__ */ z({
|
|
8202
8206
|
__name: "AoCardProjectItemMilestone",
|
|
8203
8207
|
props: {
|
|
8204
8208
|
id: {},
|
|
@@ -8214,8 +8218,8 @@ const W7 = { class: "ao-card-project-milestone__default" }, z7 = { class: "ao-ca
|
|
|
8214
8218
|
}), n = y(() => {
|
|
8215
8219
|
var l;
|
|
8216
8220
|
return (l = t.activities) == null ? void 0 : l.filter((r) => {
|
|
8217
|
-
var
|
|
8218
|
-
return ((
|
|
8221
|
+
var c, u;
|
|
8222
|
+
return ((c = r.status) == null ? void 0 : c.id) === ((u = t.doneStatus) == null ? void 0 : u.id);
|
|
8219
8223
|
}).length;
|
|
8220
8224
|
}), o = y(() => (n.value || 0) / (s.value || 1)), i = (l) => {
|
|
8221
8225
|
e("updateMilestone", { id: t.id, name: l });
|
|
@@ -8226,7 +8230,7 @@ const W7 = { class: "ao-card-project-milestone__default" }, z7 = { class: "ao-ca
|
|
|
8226
8230
|
"tag-name": "li"
|
|
8227
8231
|
}, {
|
|
8228
8232
|
default: N(() => [
|
|
8229
|
-
d("div",
|
|
8233
|
+
d("div", x7, [
|
|
8230
8234
|
M(pe, {
|
|
8231
8235
|
id: l.id,
|
|
8232
8236
|
title: l.name || "",
|
|
@@ -8235,7 +8239,7 @@ const W7 = { class: "ao-card-project-milestone__default" }, z7 = { class: "ao-ca
|
|
|
8235
8239
|
class: "ao-card-project-milestone__title",
|
|
8236
8240
|
"onUpdate:title": i
|
|
8237
8241
|
}, null, 8, ["id", "title"]),
|
|
8238
|
-
d("div",
|
|
8242
|
+
d("div", q7, [
|
|
8239
8243
|
M(ce, {
|
|
8240
8244
|
color: "primary",
|
|
8241
8245
|
variant: "ghost",
|
|
@@ -8250,22 +8254,22 @@ const W7 = { class: "ao-card-project-milestone__default" }, z7 = { class: "ao-ca
|
|
|
8250
8254
|
])
|
|
8251
8255
|
]),
|
|
8252
8256
|
footer: N(() => [
|
|
8253
|
-
d("div",
|
|
8254
|
-
d("div",
|
|
8257
|
+
d("div", W7, [
|
|
8258
|
+
d("div", z7, [
|
|
8255
8259
|
s.value ? (f(), p(fe, { key: 0 }, [
|
|
8256
|
-
d("div",
|
|
8260
|
+
d("div", Y7, [
|
|
8257
8261
|
M(de, {
|
|
8258
8262
|
name: "SelectCheckBox",
|
|
8259
8263
|
size: "sm"
|
|
8260
8264
|
}),
|
|
8261
|
-
d("span",
|
|
8265
|
+
d("span", K7, q(n.value) + " / " + q(s.value), 1)
|
|
8262
8266
|
]),
|
|
8263
8267
|
M(N1, {
|
|
8264
8268
|
percentages: o.value,
|
|
8265
8269
|
class: "ao-card-project-phase__progress"
|
|
8266
8270
|
}, null, 8, ["percentages"])
|
|
8267
8271
|
], 64)) : I("", !0),
|
|
8268
|
-
l.$slots.secondary ? (f(), p("div",
|
|
8272
|
+
l.$slots.secondary ? (f(), p("div", G7, [
|
|
8269
8273
|
Q(l.$slots, "secondary")
|
|
8270
8274
|
])) : I("", !0)
|
|
8271
8275
|
])
|
|
@@ -8275,7 +8279,7 @@ const W7 = { class: "ao-card-project-milestone__default" }, z7 = { class: "ao-ca
|
|
|
8275
8279
|
}));
|
|
8276
8280
|
}
|
|
8277
8281
|
});
|
|
8278
|
-
const
|
|
8282
|
+
const Q7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__drag ao-card__drag" }, e9 = { class: "ao-project-phase__col-phase" }, t9 = { class: "ao-project-phase__col-milestones" }, a9 = { class: "ao-project-phase__milestones" }, n9 = { class: "ao-project-phase__milestones-list-footer" }, s9 = /* @__PURE__ */ z({
|
|
8279
8283
|
__name: "AoProjectPhase",
|
|
8280
8284
|
props: {
|
|
8281
8285
|
phase: {}
|
|
@@ -8283,63 +8287,63 @@ const e9 = { class: "ao-project-phase" }, t9 = { class: "ao-project-phase__drag
|
|
|
8283
8287
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
|
|
8284
8288
|
setup(a, { emit: e }) {
|
|
8285
8289
|
const t = a, { t: s } = at();
|
|
8286
|
-
ue(() => t.phase.milestones, (
|
|
8287
|
-
Re(
|
|
8290
|
+
ue(() => t.phase.milestones, (v, h) => {
|
|
8291
|
+
Re(v, h);
|
|
8288
8292
|
});
|
|
8289
|
-
const n = (
|
|
8290
|
-
e("updatePhase", { id: t.phase.id, name:
|
|
8291
|
-
}, o = y(() => t.phase.milestones), i = (
|
|
8292
|
-
const { name:
|
|
8293
|
-
e("addMilestone", { name:
|
|
8294
|
-
}, l = (
|
|
8295
|
-
e("updateMilestone",
|
|
8296
|
-
}, r = (
|
|
8297
|
-
e("archiveMilestone",
|
|
8298
|
-
},
|
|
8299
|
-
e("archivePhase",
|
|
8300
|
-
},
|
|
8301
|
-
"moved" in
|
|
8302
|
-
id:
|
|
8293
|
+
const n = (v) => {
|
|
8294
|
+
e("updatePhase", { id: t.phase.id, name: v });
|
|
8295
|
+
}, o = y(() => t.phase.milestones), i = (v) => {
|
|
8296
|
+
const { name: h, rank: m } = vt(o.value ?? [], "milestone", s);
|
|
8297
|
+
e("addMilestone", { name: h, rank: m, phaseId: v });
|
|
8298
|
+
}, l = (v) => {
|
|
8299
|
+
e("updateMilestone", v);
|
|
8300
|
+
}, r = (v) => {
|
|
8301
|
+
e("archiveMilestone", v);
|
|
8302
|
+
}, c = (v) => {
|
|
8303
|
+
e("archivePhase", v);
|
|
8304
|
+
}, u = (v) => {
|
|
8305
|
+
"moved" in v && e("updateMilestone", {
|
|
8306
|
+
id: v.moved.element.id,
|
|
8303
8307
|
rank: Et(
|
|
8304
8308
|
o.value,
|
|
8305
|
-
|
|
8306
|
-
|
|
8309
|
+
v.moved.oldIndex,
|
|
8310
|
+
v.moved.newIndex
|
|
8307
8311
|
)
|
|
8308
8312
|
});
|
|
8309
8313
|
};
|
|
8310
|
-
return (
|
|
8311
|
-
d("div",
|
|
8314
|
+
return (v, h) => (f(), p("li", Q7, [
|
|
8315
|
+
d("div", J7, [
|
|
8312
8316
|
M(de, {
|
|
8313
8317
|
name: "DragIndicator",
|
|
8314
8318
|
class: "ao-project-phase__drag-handle"
|
|
8315
8319
|
})
|
|
8316
8320
|
]),
|
|
8317
|
-
d("div",
|
|
8318
|
-
M(
|
|
8319
|
-
id:
|
|
8321
|
+
d("div", e9, [
|
|
8322
|
+
M(F7, {
|
|
8323
|
+
id: v.phase.id,
|
|
8320
8324
|
milestones: o.value,
|
|
8321
|
-
name:
|
|
8325
|
+
name: v.phase.name,
|
|
8322
8326
|
"onUpdate:title": n,
|
|
8323
|
-
onArchivePhase:
|
|
8327
|
+
onArchivePhase: c
|
|
8324
8328
|
}, null, 8, ["id", "milestones", "name"])
|
|
8325
8329
|
]),
|
|
8326
|
-
d("div",
|
|
8327
|
-
d("div",
|
|
8328
|
-
M(j(Ke),
|
|
8330
|
+
d("div", t9, [
|
|
8331
|
+
d("div", a9, [
|
|
8332
|
+
M(j(Ke), Ve({
|
|
8329
8333
|
class: "ao-project-phase__milestones-list",
|
|
8330
8334
|
list: o.value,
|
|
8331
8335
|
"item-key": "id",
|
|
8332
8336
|
group: "kanban"
|
|
8333
|
-
},
|
|
8337
|
+
}, v.$attrs, { onChange: u }), {
|
|
8334
8338
|
item: N(({ element: m }) => [
|
|
8335
|
-
M(
|
|
8339
|
+
M(X7, {
|
|
8336
8340
|
id: m.id,
|
|
8337
8341
|
name: m.name,
|
|
8338
8342
|
activities: m.activities,
|
|
8339
8343
|
class: "ao-project-phase__milestone",
|
|
8340
|
-
onClick: (g) =>
|
|
8344
|
+
onClick: (g) => v.$router.push({
|
|
8341
8345
|
name: j(ht).milestone,
|
|
8342
|
-
params: { phaseId:
|
|
8346
|
+
params: { phaseId: v.phase.id, milestoneId: m.id }
|
|
8343
8347
|
}),
|
|
8344
8348
|
onUpdateMilestone: l,
|
|
8345
8349
|
onArchiveMilestone: r
|
|
@@ -8347,12 +8351,12 @@ const e9 = { class: "ao-project-phase" }, t9 = { class: "ao-project-phase__drag
|
|
|
8347
8351
|
]),
|
|
8348
8352
|
_: 1
|
|
8349
8353
|
}, 16, ["list"]),
|
|
8350
|
-
d("div",
|
|
8354
|
+
d("div", n9, [
|
|
8351
8355
|
M(Ge, {
|
|
8352
|
-
label:
|
|
8356
|
+
label: v.$t("project.milestone.add"),
|
|
8353
8357
|
class: "ao-project-phase__milestone-add",
|
|
8354
8358
|
"icon-name": "Add",
|
|
8355
|
-
onClick:
|
|
8359
|
+
onClick: h[0] || (h[0] = () => i(v.phase.id))
|
|
8356
8360
|
}, null, 8, ["label"])
|
|
8357
8361
|
])
|
|
8358
8362
|
])
|
|
@@ -8360,7 +8364,7 @@ const e9 = { class: "ao-project-phase" }, t9 = { class: "ao-project-phase__drag
|
|
|
8360
8364
|
]));
|
|
8361
8365
|
}
|
|
8362
8366
|
});
|
|
8363
|
-
const
|
|
8367
|
+
const i9 = { class: "ao-project__phases" }, o9 = { class: "ao-project-phase__phases-list-footer" }, l9 = /* @__PURE__ */ d("div", { class: "ao-project-phase__empty_drag" }, null, -1), r9 = { class: "ao-project-phase__col-phase" }, u9 = /* @__PURE__ */ d("div", { class: "ao-project-phase__col-milestones" }, null, -1), c9 = /* @__PURE__ */ z({
|
|
8364
8368
|
__name: "AoProjectPhases",
|
|
8365
8369
|
props: {
|
|
8366
8370
|
phases: {}
|
|
@@ -8368,41 +8372,41 @@ const l9 = { class: "ao-project__phases" }, r9 = { class: "ao-project-phase__pha
|
|
|
8368
8372
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
8369
8373
|
setup(a, { emit: e }) {
|
|
8370
8374
|
const t = a;
|
|
8371
|
-
ue(() => t.phases, (
|
|
8372
|
-
Re(
|
|
8375
|
+
ue(() => t.phases, (u, v) => {
|
|
8376
|
+
Re(u, v);
|
|
8373
8377
|
});
|
|
8374
|
-
const s = (
|
|
8375
|
-
e("addMilestone",
|
|
8376
|
-
}, n = (
|
|
8377
|
-
e("updateMilestone",
|
|
8378
|
-
}, o = (
|
|
8379
|
-
e("archiveMilestone",
|
|
8380
|
-
}, i = (
|
|
8381
|
-
e("archivePhase",
|
|
8382
|
-
}, l = (
|
|
8383
|
-
if (
|
|
8384
|
-
const
|
|
8378
|
+
const s = (u) => {
|
|
8379
|
+
e("addMilestone", u);
|
|
8380
|
+
}, n = (u) => {
|
|
8381
|
+
e("updateMilestone", u);
|
|
8382
|
+
}, o = (u) => {
|
|
8383
|
+
e("archiveMilestone", u);
|
|
8384
|
+
}, i = (u) => {
|
|
8385
|
+
e("archivePhase", u);
|
|
8386
|
+
}, l = (u) => {
|
|
8387
|
+
if (u.moved) {
|
|
8388
|
+
const v = Bt(u, t.phases ?? []);
|
|
8385
8389
|
e("updatePhase", {
|
|
8386
|
-
id:
|
|
8387
|
-
rank:
|
|
8390
|
+
id: u.moved.element.id,
|
|
8391
|
+
rank: v
|
|
8388
8392
|
});
|
|
8389
8393
|
}
|
|
8390
|
-
}, r = (
|
|
8391
|
-
e("updatePhase",
|
|
8392
|
-
},
|
|
8393
|
-
e("addPhase",
|
|
8394
|
+
}, r = (u) => {
|
|
8395
|
+
e("updatePhase", u);
|
|
8396
|
+
}, c = (u) => {
|
|
8397
|
+
e("addPhase", u);
|
|
8394
8398
|
};
|
|
8395
|
-
return (
|
|
8399
|
+
return (u, v) => (f(), p("div", i9, [
|
|
8396
8400
|
M(j(Ke), {
|
|
8397
8401
|
class: "ao-project-phase__phases-list",
|
|
8398
|
-
"model-value":
|
|
8402
|
+
"model-value": u.phases,
|
|
8399
8403
|
"item-key": "id",
|
|
8400
8404
|
handle: ".ao-card__drag",
|
|
8401
8405
|
onChange: l
|
|
8402
8406
|
}, {
|
|
8403
|
-
item: N(({ element:
|
|
8404
|
-
M(
|
|
8405
|
-
phase:
|
|
8407
|
+
item: N(({ element: h }) => [
|
|
8408
|
+
M(s9, {
|
|
8409
|
+
phase: h,
|
|
8406
8410
|
onAddMilestone: s,
|
|
8407
8411
|
onUpdateMilestone: n,
|
|
8408
8412
|
onArchiveMilestone: o,
|
|
@@ -8412,22 +8416,22 @@ const l9 = { class: "ao-project__phases" }, r9 = { class: "ao-project-phase__pha
|
|
|
8412
8416
|
]),
|
|
8413
8417
|
_: 1
|
|
8414
8418
|
}, 8, ["model-value"]),
|
|
8415
|
-
d("div",
|
|
8416
|
-
|
|
8417
|
-
d("div",
|
|
8419
|
+
d("div", o9, [
|
|
8420
|
+
l9,
|
|
8421
|
+
d("div", r9, [
|
|
8418
8422
|
M(Ge, {
|
|
8419
|
-
label:
|
|
8423
|
+
label: u.$t("project.phases.add"),
|
|
8420
8424
|
"icon-name": "Add",
|
|
8421
8425
|
class: "ao-project-phase__add-phase",
|
|
8422
|
-
onClick:
|
|
8426
|
+
onClick: c
|
|
8423
8427
|
}, null, 8, ["label"])
|
|
8424
8428
|
]),
|
|
8425
|
-
|
|
8429
|
+
u9
|
|
8426
8430
|
])
|
|
8427
8431
|
]));
|
|
8428
8432
|
}
|
|
8429
8433
|
});
|
|
8430
|
-
const
|
|
8434
|
+
const d9 = ["onSubmit"], f9 = { class: "ao-add-template-modal__form-body" }, v9 = { class: "field__row" }, h9 = { class: "ao-add-template-modal__form-footer" }, m9 = /* @__PURE__ */ z({
|
|
8431
8435
|
__name: "AoAddTemplateModal",
|
|
8432
8436
|
props: {
|
|
8433
8437
|
projectId: {},
|
|
@@ -8438,7 +8442,7 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, m9
|
|
|
8438
8442
|
const t = a, s = y(() => t.templates.map((l) => ({
|
|
8439
8443
|
value: l.id,
|
|
8440
8444
|
label: l.name
|
|
8441
|
-
}))), n =
|
|
8445
|
+
}))), n = J(null), o = (l) => {
|
|
8442
8446
|
n.value = l;
|
|
8443
8447
|
}, i = () => {
|
|
8444
8448
|
n.value && e("apply", n.value, t.projectId);
|
|
@@ -8455,8 +8459,8 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, m9
|
|
|
8455
8459
|
class: "ao-add-template-modal__form",
|
|
8456
8460
|
onSubmit: Ce(i, ["prevent"])
|
|
8457
8461
|
}, [
|
|
8458
|
-
d("div",
|
|
8459
|
-
d("div",
|
|
8462
|
+
d("div", f9, [
|
|
8463
|
+
d("div", v9, [
|
|
8460
8464
|
M(be, {
|
|
8461
8465
|
value: n.value,
|
|
8462
8466
|
options: s.value,
|
|
@@ -8465,7 +8469,7 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, m9
|
|
|
8465
8469
|
}, null, 8, ["value", "options"])
|
|
8466
8470
|
])
|
|
8467
8471
|
]),
|
|
8468
|
-
d("footer",
|
|
8472
|
+
d("footer", h9, [
|
|
8469
8473
|
M(ce, {
|
|
8470
8474
|
label: l.$t("project.template.add.label"),
|
|
8471
8475
|
type: "submit",
|
|
@@ -8474,13 +8478,13 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, m9
|
|
|
8474
8478
|
onClick: i
|
|
8475
8479
|
}, null, 8, ["label"])
|
|
8476
8480
|
])
|
|
8477
|
-
], 40,
|
|
8481
|
+
], 40, d9)
|
|
8478
8482
|
]),
|
|
8479
8483
|
_: 1
|
|
8480
8484
|
}));
|
|
8481
8485
|
}
|
|
8482
8486
|
});
|
|
8483
|
-
const
|
|
8487
|
+
const p9 = { class: "ao-project-overview" }, C9 = { class: "ao-project" }, _9 = { class: "ao-project__body" }, g9 = /* @__PURE__ */ z({
|
|
8484
8488
|
__name: "AoProjectOverviewProject",
|
|
8485
8489
|
props: {
|
|
8486
8490
|
project: {},
|
|
@@ -8504,13 +8508,13 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8504
8508
|
e("archivePhase", O);
|
|
8505
8509
|
}, r = (O) => {
|
|
8506
8510
|
e("addMilestone", O);
|
|
8507
|
-
}, u = (O) => {
|
|
8508
|
-
e("updateMilestone", O);
|
|
8509
8511
|
}, c = (O) => {
|
|
8512
|
+
e("updateMilestone", O);
|
|
8513
|
+
}, u = (O) => {
|
|
8510
8514
|
e("archiveMilestone", O);
|
|
8511
|
-
}, h = (O) => {
|
|
8512
|
-
e("addActivity", O);
|
|
8513
8515
|
}, v = (O) => {
|
|
8516
|
+
e("addActivity", O);
|
|
8517
|
+
}, h = (O) => {
|
|
8514
8518
|
e("update:activity", O);
|
|
8515
8519
|
}, m = (O) => {
|
|
8516
8520
|
e("archiveActivity", O);
|
|
@@ -8528,14 +8532,14 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8528
8532
|
e("updateComment", O);
|
|
8529
8533
|
}, U = (O) => {
|
|
8530
8534
|
e("removeComment", O);
|
|
8531
|
-
}, Z =
|
|
8535
|
+
}, Z = J(!1), H = (O, W) => {
|
|
8532
8536
|
e("applyTemplate", { templateId: O, projectId: W }), Z.value = !1;
|
|
8533
8537
|
};
|
|
8534
8538
|
return (O, W) => {
|
|
8535
8539
|
const X = vn("RouterView");
|
|
8536
8540
|
return f(), p(fe, null, [
|
|
8537
|
-
d("div",
|
|
8538
|
-
d("div",
|
|
8541
|
+
d("div", p9, [
|
|
8542
|
+
d("div", C9, [
|
|
8539
8543
|
M(l1, null, {
|
|
8540
8544
|
primary: N(() => [
|
|
8541
8545
|
M(ce, {
|
|
@@ -8547,12 +8551,12 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8547
8551
|
]),
|
|
8548
8552
|
_: 1
|
|
8549
8553
|
}),
|
|
8550
|
-
d("div",
|
|
8551
|
-
M(
|
|
8554
|
+
d("div", _9, [
|
|
8555
|
+
M(c9, {
|
|
8552
8556
|
phases: O.phases,
|
|
8553
8557
|
onAddMilestone: r,
|
|
8554
|
-
onUpdateMilestone:
|
|
8555
|
-
onArchiveMilestone:
|
|
8558
|
+
onUpdateMilestone: c,
|
|
8559
|
+
onArchiveMilestone: u,
|
|
8556
8560
|
onAddPhase: o,
|
|
8557
8561
|
onUpdatePhase: i,
|
|
8558
8562
|
onArchivePhase: l
|
|
@@ -8566,8 +8570,8 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8566
8570
|
"project-name": O.project.name,
|
|
8567
8571
|
users: O.users,
|
|
8568
8572
|
onClose: W[1] || (W[1] = (ne) => O.$router.push({ name: j(ht).project })),
|
|
8569
|
-
onAddActivity:
|
|
8570
|
-
onUpdateActivity:
|
|
8573
|
+
onAddActivity: v,
|
|
8574
|
+
onUpdateActivity: h,
|
|
8571
8575
|
onArchiveActivity: m
|
|
8572
8576
|
}, null, 8, ["phases", "project-id", "project-name", "users"]),
|
|
8573
8577
|
(f(), F(Ot, { to: "body" }, [
|
|
@@ -8579,7 +8583,7 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8579
8583
|
phases: O.phases,
|
|
8580
8584
|
users: O.users,
|
|
8581
8585
|
"user-id": O.userId,
|
|
8582
|
-
"onUpdate:activity":
|
|
8586
|
+
"onUpdate:activity": h,
|
|
8583
8587
|
onAddSubtask: g,
|
|
8584
8588
|
onAddFiles: T,
|
|
8585
8589
|
onRemoveFile: k,
|
|
@@ -8590,7 +8594,7 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8590
8594
|
]))
|
|
8591
8595
|
]),
|
|
8592
8596
|
(f(), F(Ot, { to: "body" }, [
|
|
8593
|
-
Z.value ? (f(), F(
|
|
8597
|
+
Z.value ? (f(), F(m9, {
|
|
8594
8598
|
key: 0,
|
|
8595
8599
|
"project-id": O.project.id,
|
|
8596
8600
|
templates: O.templates,
|
|
@@ -8602,31 +8606,31 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8602
8606
|
};
|
|
8603
8607
|
}
|
|
8604
8608
|
});
|
|
8605
|
-
const
|
|
8609
|
+
const y9 = { class: "ao-card-feed__header" }, b9 = {
|
|
8606
8610
|
key: 2,
|
|
8607
8611
|
class: "ao-card-feed__header-secondary ao-card-feed__secondary"
|
|
8608
|
-
},
|
|
8612
|
+
}, w9 = { class: "ao-card-feed__body" }, $9 = {
|
|
8609
8613
|
key: 0,
|
|
8610
8614
|
class: "ao-card-feed__breadcrumbs"
|
|
8611
|
-
},
|
|
8615
|
+
}, M9 = {
|
|
8612
8616
|
key: 1,
|
|
8613
8617
|
class: "ao-card-feed__deadline"
|
|
8614
|
-
},
|
|
8618
|
+
}, k9 = { class: "ao-card-feed__footer" }, A9 = { class: "ao-card-feed__footer-row" }, T9 = { class: "ao-assignees" }, S9 = {
|
|
8615
8619
|
key: 0,
|
|
8616
8620
|
class: "ao-assignee"
|
|
8617
|
-
},
|
|
8621
|
+
}, I9 = {
|
|
8618
8622
|
key: 0,
|
|
8619
8623
|
class: "ao-card-feed__subitems"
|
|
8620
|
-
},
|
|
8624
|
+
}, O9 = {
|
|
8621
8625
|
key: 0,
|
|
8622
8626
|
class: "ao-card-feed__subitem"
|
|
8623
|
-
},
|
|
8627
|
+
}, E9 = { class: "ao-card-feed__subitem" }, L9 = {
|
|
8624
8628
|
key: 1,
|
|
8625
8629
|
class: "ao-card-feed__subitem"
|
|
8626
|
-
},
|
|
8630
|
+
}, V9 = { class: "ao-card-feed__subitem" }, H9 = { class: "ao-card-feed__footer-row" }, D9 = {
|
|
8627
8631
|
key: 0,
|
|
8628
8632
|
class: "ao-card-feed__progress-wrapper"
|
|
8629
|
-
},
|
|
8633
|
+
}, P9 = { class: "ao-card-feed__subitem" }, B9 = { class: "ao-card-feed__subitem" }, Va = /* @__PURE__ */ z({
|
|
8630
8634
|
__name: "AoCardFeed",
|
|
8631
8635
|
props: {
|
|
8632
8636
|
id: {},
|
|
@@ -8643,68 +8647,68 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8643
8647
|
},
|
|
8644
8648
|
emits: ["removeAssignee", "updateActivity"],
|
|
8645
8649
|
setup(a, { emit: e }) {
|
|
8646
|
-
const t = a, s = (
|
|
8650
|
+
const t = a, s = (h) => {
|
|
8647
8651
|
e("updateActivity", {
|
|
8648
8652
|
id: t.id,
|
|
8649
|
-
name:
|
|
8653
|
+
name: h
|
|
8650
8654
|
});
|
|
8651
|
-
}, n = y(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = y(() => t.assignee ? [t.assignee] : []), i = y(() => M1(t.deadline)), l = (
|
|
8652
|
-
const { firstName: m, lastName: g } =
|
|
8655
|
+
}, n = y(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = y(() => t.assignee ? [t.assignee] : []), i = y(() => M1(t.deadline)), l = (h) => {
|
|
8656
|
+
const { firstName: m, lastName: g } = h || {};
|
|
8653
8657
|
return `${m ?? ""}${m ? " " : ""}${g ?? ""}`;
|
|
8654
|
-
}, r = (
|
|
8655
|
-
e("removeAssignee",
|
|
8656
|
-
},
|
|
8657
|
-
var
|
|
8658
|
-
return (
|
|
8659
|
-
}),
|
|
8660
|
-
var
|
|
8661
|
-
return (
|
|
8662
|
-
}),
|
|
8663
|
-
return (
|
|
8658
|
+
}, r = (h) => {
|
|
8659
|
+
e("removeAssignee", h);
|
|
8660
|
+
}, c = y(() => {
|
|
8661
|
+
var h;
|
|
8662
|
+
return (h = t.tasks) == null ? void 0 : h.length;
|
|
8663
|
+
}), u = y(() => {
|
|
8664
|
+
var h;
|
|
8665
|
+
return (h = t.tasks) == null ? void 0 : h.filter((m) => m.isDone).length;
|
|
8666
|
+
}), v = y(() => (u.value || 0) / (c.value || 1));
|
|
8667
|
+
return (h, m) => (f(), F(B1, {
|
|
8664
8668
|
class: "ao-card-feed",
|
|
8665
8669
|
"is-clickable": !0
|
|
8666
8670
|
}, {
|
|
8667
8671
|
header: N(() => [
|
|
8668
|
-
d("div",
|
|
8669
|
-
|
|
8672
|
+
d("div", y9, [
|
|
8673
|
+
h.projectName ? (f(), F(T1, {
|
|
8670
8674
|
key: 0,
|
|
8671
|
-
label:
|
|
8675
|
+
label: h.projectName,
|
|
8672
8676
|
class: "ao-card-feed__project",
|
|
8673
8677
|
variant: "solid",
|
|
8674
8678
|
color: "primary"
|
|
8675
8679
|
}, null, 8, ["label"])) : I("", !0),
|
|
8676
|
-
|
|
8680
|
+
h.important ? (f(), F(de, {
|
|
8677
8681
|
key: 1,
|
|
8678
8682
|
name: "FlagRounded",
|
|
8679
8683
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
8680
8684
|
size: "sm"
|
|
8681
8685
|
})) : I("", !0),
|
|
8682
|
-
|
|
8683
|
-
Q(
|
|
8686
|
+
h.$slots.secondary ? (f(), p("div", b9, [
|
|
8687
|
+
Q(h.$slots, "secondary")
|
|
8684
8688
|
])) : I("", !0)
|
|
8685
8689
|
])
|
|
8686
8690
|
]),
|
|
8687
8691
|
default: N(() => [
|
|
8688
|
-
d("div",
|
|
8689
|
-
n.value ? (f(), p("span",
|
|
8692
|
+
d("div", w9, [
|
|
8693
|
+
n.value ? (f(), p("span", $9, q(n.value), 1)) : I("", !0),
|
|
8690
8694
|
M(pe, {
|
|
8691
|
-
id:
|
|
8692
|
-
title:
|
|
8695
|
+
id: h.id,
|
|
8696
|
+
title: h.name,
|
|
8693
8697
|
level: 5,
|
|
8694
8698
|
"is-editable": !0,
|
|
8695
8699
|
"onUpdate:title": s
|
|
8696
8700
|
}, null, 8, ["id", "title"]),
|
|
8697
|
-
|
|
8701
|
+
h.deadline ? (f(), p("span", M9, q(i.value), 1)) : I("", !0)
|
|
8698
8702
|
])
|
|
8699
8703
|
]),
|
|
8700
8704
|
footer: N(() => [
|
|
8701
|
-
d("div",
|
|
8702
|
-
d("div",
|
|
8703
|
-
d("ul",
|
|
8705
|
+
d("div", k9, [
|
|
8706
|
+
d("div", A9, [
|
|
8707
|
+
d("ul", T9, [
|
|
8704
8708
|
(f(!0), p(fe, null, ge(o.value, (g) => (f(), p(fe, {
|
|
8705
8709
|
key: g.id
|
|
8706
8710
|
}, [
|
|
8707
|
-
g ? (f(), p("li",
|
|
8711
|
+
g ? (f(), p("li", S9, [
|
|
8708
8712
|
M(_t, {
|
|
8709
8713
|
"user-name": l(g),
|
|
8710
8714
|
"is-closable": !0,
|
|
@@ -8713,34 +8717,34 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8713
8717
|
])) : I("", !0)
|
|
8714
8718
|
], 64))), 128))
|
|
8715
8719
|
]),
|
|
8716
|
-
|
|
8717
|
-
|
|
8720
|
+
h.comments || h.attachments ? (f(), p("ul", I9, [
|
|
8721
|
+
h.comments ? (f(), p("li", O9, [
|
|
8718
8722
|
M(de, {
|
|
8719
8723
|
name: "ChatOutline",
|
|
8720
8724
|
size: "sm"
|
|
8721
8725
|
}),
|
|
8722
|
-
d("span",
|
|
8726
|
+
d("span", E9, q(h.comments), 1)
|
|
8723
8727
|
])) : I("", !0),
|
|
8724
|
-
|
|
8728
|
+
h.attachments ? (f(), p("li", L9, [
|
|
8725
8729
|
M(de, {
|
|
8726
8730
|
name: "AttachFileRounded",
|
|
8727
8731
|
size: "sm"
|
|
8728
8732
|
}),
|
|
8729
|
-
d("span",
|
|
8733
|
+
d("span", V9, q(h.attachments), 1)
|
|
8730
8734
|
])) : I("", !0)
|
|
8731
8735
|
])) : I("", !0)
|
|
8732
8736
|
]),
|
|
8733
|
-
d("div",
|
|
8734
|
-
|
|
8735
|
-
d("div",
|
|
8737
|
+
d("div", H9, [
|
|
8738
|
+
h.tasks ? (f(), p("div", D9, [
|
|
8739
|
+
d("div", P9, [
|
|
8736
8740
|
M(de, {
|
|
8737
8741
|
name: "SelectCheckBox",
|
|
8738
8742
|
size: "sm"
|
|
8739
8743
|
}),
|
|
8740
|
-
d("span",
|
|
8744
|
+
d("span", B9, q(u.value) + " / " + q(c.value), 1)
|
|
8741
8745
|
]),
|
|
8742
8746
|
M(N1, {
|
|
8743
|
-
percentages:
|
|
8747
|
+
percentages: v.value,
|
|
8744
8748
|
class: "ao-card-feed__progress"
|
|
8745
8749
|
}, null, 8, ["percentages"])
|
|
8746
8750
|
])) : I("", !0)
|
|
@@ -8751,7 +8755,7 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8751
8755
|
}));
|
|
8752
8756
|
}
|
|
8753
8757
|
});
|
|
8754
|
-
const
|
|
8758
|
+
const N9 = { class: "ao-project-milestone" }, R9 = { class: "ao-project-milestone__header" }, U9 = { class: "ao-project-milestone__title" }, Z9 = { class: "ao-project-milestone__body" }, j9 = { class: "ao-project-milestone__footer" }, ia = /* @__PURE__ */ z({
|
|
8755
8759
|
__name: "AoProjectOverviewMilestoneDetails",
|
|
8756
8760
|
props: {
|
|
8757
8761
|
milestoneId: {},
|
|
@@ -8763,51 +8767,51 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8763
8767
|
emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
|
|
8764
8768
|
setup(a, { emit: e }) {
|
|
8765
8769
|
const t = a, { t: s } = at(), n = y(() => {
|
|
8766
|
-
var
|
|
8767
|
-
return (
|
|
8770
|
+
var h;
|
|
8771
|
+
return (h = t.phases) == null ? void 0 : h.find((m) => m.id === t.phaseId);
|
|
8768
8772
|
}), o = y(() => {
|
|
8769
|
-
var
|
|
8770
|
-
return (
|
|
8773
|
+
var h;
|
|
8774
|
+
return (h = t.phases) == null ? void 0 : h.flatMap((m) => m.milestones);
|
|
8771
8775
|
}), i = y(() => {
|
|
8772
|
-
var
|
|
8773
|
-
return (
|
|
8776
|
+
var h;
|
|
8777
|
+
return (h = o.value) == null ? void 0 : h.find((m) => m.id === t.milestoneId);
|
|
8774
8778
|
}), l = y(() => {
|
|
8775
|
-
var
|
|
8776
|
-
return (
|
|
8779
|
+
var h;
|
|
8780
|
+
return (h = i.value) == null ? void 0 : h.activities;
|
|
8777
8781
|
});
|
|
8778
|
-
ue(l, (
|
|
8779
|
-
Re(
|
|
8782
|
+
ue(l, (h, m) => {
|
|
8783
|
+
Re(h, m);
|
|
8780
8784
|
});
|
|
8781
|
-
const r = (
|
|
8782
|
-
e("close",
|
|
8783
|
-
},
|
|
8784
|
-
const { name:
|
|
8785
|
+
const r = (h) => {
|
|
8786
|
+
e("close", h);
|
|
8787
|
+
}, c = () => {
|
|
8788
|
+
const { name: h, rank: m } = vt(l.value ?? [], "activity", s);
|
|
8785
8789
|
e("addActivity", {
|
|
8786
8790
|
milestoneId: t.milestoneId,
|
|
8787
|
-
name:
|
|
8791
|
+
name: h,
|
|
8788
8792
|
rank: m,
|
|
8789
8793
|
projectId: t.projectId
|
|
8790
8794
|
});
|
|
8791
|
-
},
|
|
8792
|
-
e("updateActivity",
|
|
8793
|
-
},
|
|
8794
|
-
l.value && "moved" in
|
|
8795
|
-
id:
|
|
8795
|
+
}, u = (h) => {
|
|
8796
|
+
e("updateActivity", h);
|
|
8797
|
+
}, v = (h) => {
|
|
8798
|
+
l.value && "moved" in h && e("updateActivity", {
|
|
8799
|
+
id: h.moved.element.id,
|
|
8796
8800
|
rank: Et(
|
|
8797
8801
|
l.value,
|
|
8798
|
-
|
|
8799
|
-
|
|
8802
|
+
h.moved.oldIndex,
|
|
8803
|
+
h.moved.newIndex
|
|
8800
8804
|
)
|
|
8801
8805
|
});
|
|
8802
8806
|
};
|
|
8803
|
-
return (
|
|
8807
|
+
return (h, m) => {
|
|
8804
8808
|
var g;
|
|
8805
|
-
return f(), p("div",
|
|
8806
|
-
d("header",
|
|
8807
|
-
d("div",
|
|
8808
|
-
d("span", null, q(
|
|
8809
|
+
return f(), p("div", N9, [
|
|
8810
|
+
d("header", R9, [
|
|
8811
|
+
d("div", U9, [
|
|
8812
|
+
d("span", null, q(h.$t("project.milestone.title")), 1),
|
|
8809
8813
|
M(pe, {
|
|
8810
|
-
title: ((g = i.value) == null ? void 0 : g.name) ||
|
|
8814
|
+
title: ((g = i.value) == null ? void 0 : g.name) || h.milestoneId,
|
|
8811
8815
|
level: 5
|
|
8812
8816
|
}, null, 8, ["title"])
|
|
8813
8817
|
]),
|
|
@@ -8817,13 +8821,13 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8817
8821
|
onClick: r
|
|
8818
8822
|
})
|
|
8819
8823
|
]),
|
|
8820
|
-
d("div",
|
|
8821
|
-
M(j(Ke),
|
|
8824
|
+
d("div", Z9, [
|
|
8825
|
+
M(j(Ke), Ve({
|
|
8822
8826
|
class: "ao-project-milestone__activities",
|
|
8823
8827
|
list: l.value,
|
|
8824
8828
|
"item-key": "id",
|
|
8825
8829
|
group: "kanban"
|
|
8826
|
-
},
|
|
8830
|
+
}, h.$attrs, { onChange: v }), {
|
|
8827
8831
|
item: N(({ element: w }) => {
|
|
8828
8832
|
var T, k, b, V;
|
|
8829
8833
|
return [
|
|
@@ -8834,17 +8838,17 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8834
8838
|
"milestone-name": (k = i.value) == null ? void 0 : k.name,
|
|
8835
8839
|
deadline: w.deadline,
|
|
8836
8840
|
important: w.important,
|
|
8837
|
-
users:
|
|
8841
|
+
users: h.users,
|
|
8838
8842
|
assignee: w.assignee,
|
|
8839
8843
|
comments: (b = w.comments) == null ? void 0 : b.length,
|
|
8840
8844
|
attachments: (V = w.attachments) == null ? void 0 : V.length,
|
|
8841
8845
|
tasks: w.tasks,
|
|
8842
|
-
onClick: (U) =>
|
|
8846
|
+
onClick: (U) => h.$router.push({
|
|
8843
8847
|
name: j(ht).activity,
|
|
8844
|
-
params: { milestoneId:
|
|
8848
|
+
params: { milestoneId: h.milestoneId, activityId: w.id }
|
|
8845
8849
|
}),
|
|
8846
|
-
onUpdateActivity:
|
|
8847
|
-
onRemoveAssignee: () =>
|
|
8850
|
+
onUpdateActivity: u,
|
|
8851
|
+
onRemoveAssignee: () => u({ id: w.id, assigneeId: null })
|
|
8848
8852
|
}, {
|
|
8849
8853
|
secondary: N(() => [
|
|
8850
8854
|
M(ce, {
|
|
@@ -8854,8 +8858,8 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8854
8858
|
size: "sm",
|
|
8855
8859
|
"icon-position": "start",
|
|
8856
8860
|
corners: "round",
|
|
8857
|
-
label:
|
|
8858
|
-
onClick: Ce(() =>
|
|
8861
|
+
label: h.$t("archive"),
|
|
8862
|
+
onClick: Ce(() => h.$emit("archiveActivity", { id: w.id }), ["stop"])
|
|
8859
8863
|
}, null, 8, ["label", "onClick"])
|
|
8860
8864
|
]),
|
|
8861
8865
|
_: 2
|
|
@@ -8864,11 +8868,11 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8864
8868
|
}),
|
|
8865
8869
|
_: 1
|
|
8866
8870
|
}, 16, ["list"]),
|
|
8867
|
-
d("div",
|
|
8871
|
+
d("div", j9, [
|
|
8868
8872
|
M(Ge, {
|
|
8869
8873
|
"icon-name": "Add",
|
|
8870
|
-
label:
|
|
8871
|
-
onClick:
|
|
8874
|
+
label: h.$t("project.activity.add"),
|
|
8875
|
+
onClick: c
|
|
8872
8876
|
}, null, 8, ["label"])
|
|
8873
8877
|
])
|
|
8874
8878
|
])
|
|
@@ -8876,7 +8880,7 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8876
8880
|
};
|
|
8877
8881
|
}
|
|
8878
8882
|
});
|
|
8879
|
-
const
|
|
8883
|
+
const F9 = /* @__PURE__ */ z({
|
|
8880
8884
|
__name: "AoProjectOverviewActivityDetails",
|
|
8881
8885
|
props: {
|
|
8882
8886
|
phaseId: {},
|
|
@@ -8913,13 +8917,13 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8913
8917
|
}))) || [];
|
|
8914
8918
|
}), r = (m) => {
|
|
8915
8919
|
e("update:activity", m);
|
|
8916
|
-
}, u = (m) => {
|
|
8917
|
-
e("addSubtask", m);
|
|
8918
8920
|
}, c = (m) => {
|
|
8921
|
+
e("addSubtask", m);
|
|
8922
|
+
}, u = (m) => {
|
|
8919
8923
|
e("addComment", m);
|
|
8920
|
-
}, h = (m) => {
|
|
8921
|
-
e("updateComment", m);
|
|
8922
8924
|
}, v = (m) => {
|
|
8925
|
+
e("updateComment", m);
|
|
8926
|
+
}, h = (m) => {
|
|
8923
8927
|
e("removeComment", m);
|
|
8924
8928
|
};
|
|
8925
8929
|
return (m, g) => {
|
|
@@ -8938,10 +8942,10 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8938
8942
|
breadcrumbs: `${(w = s.value) == null ? void 0 : w.name} / ${(T = o.value) == null ? void 0 : T.name}`,
|
|
8939
8943
|
onClose: m.$router.back,
|
|
8940
8944
|
"onUpdate:activity": r,
|
|
8941
|
-
onAddSubtask:
|
|
8942
|
-
onAddComment:
|
|
8943
|
-
onUpdateComment:
|
|
8944
|
-
onRemoveComment:
|
|
8945
|
+
onAddSubtask: c,
|
|
8946
|
+
onAddComment: u,
|
|
8947
|
+
onUpdateComment: v,
|
|
8948
|
+
onRemoveComment: h
|
|
8945
8949
|
}, null, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "onClose"])) : I("", !0);
|
|
8946
8950
|
};
|
|
8947
8951
|
}
|
|
@@ -8949,7 +8953,7 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8949
8953
|
TEMPLATES: "templates",
|
|
8950
8954
|
TEMPLATE_DETAILS: "template_details",
|
|
8951
8955
|
TEMPLATES_LIST: "templates_list"
|
|
8952
|
-
},
|
|
8956
|
+
}, B4 = (a, e = {}) => [
|
|
8953
8957
|
{
|
|
8954
8958
|
path: a,
|
|
8955
8959
|
name: Tt.TEMPLATES,
|
|
@@ -8958,12 +8962,12 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8958
8962
|
{
|
|
8959
8963
|
path: "",
|
|
8960
8964
|
name: Tt.TEMPLATES_LIST,
|
|
8961
|
-
component:
|
|
8965
|
+
component: q9
|
|
8962
8966
|
},
|
|
8963
8967
|
{
|
|
8964
8968
|
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
8965
8969
|
name: Tt.TEMPLATE_DETAILS,
|
|
8966
|
-
component:
|
|
8970
|
+
component: V7,
|
|
8967
8971
|
props: !0
|
|
8968
8972
|
}
|
|
8969
8973
|
]
|
|
@@ -8972,7 +8976,7 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8972
8976
|
project: "AoProject",
|
|
8973
8977
|
milestone: "AoMilestone",
|
|
8974
8978
|
activity: "AoActivity"
|
|
8975
|
-
},
|
|
8979
|
+
}, N4 = (a, e = {}) => [
|
|
8976
8980
|
{
|
|
8977
8981
|
path: a,
|
|
8978
8982
|
...e,
|
|
@@ -8980,7 +8984,7 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8980
8984
|
{
|
|
8981
8985
|
path: "",
|
|
8982
8986
|
name: ht.project,
|
|
8983
|
-
component:
|
|
8987
|
+
component: g9,
|
|
8984
8988
|
props: !0,
|
|
8985
8989
|
children: [
|
|
8986
8990
|
{
|
|
@@ -8995,14 +8999,14 @@ const q9 = /* @__PURE__ */ z({
|
|
|
8995
8999
|
props: { default: !0, modal: !0 },
|
|
8996
9000
|
components: {
|
|
8997
9001
|
default: ia,
|
|
8998
|
-
modal:
|
|
9002
|
+
modal: F9
|
|
8999
9003
|
}
|
|
9000
9004
|
}
|
|
9001
9005
|
]
|
|
9002
9006
|
}
|
|
9003
9007
|
]
|
|
9004
9008
|
}
|
|
9005
|
-
],
|
|
9009
|
+
], x9 = { class: "ao-templates" }, q9 = /* @__PURE__ */ z({
|
|
9006
9010
|
__name: "AoTemplatesList",
|
|
9007
9011
|
props: {
|
|
9008
9012
|
templates: {}
|
|
@@ -9014,12 +9018,12 @@ const q9 = /* @__PURE__ */ z({
|
|
|
9014
9018
|
Re(l, r);
|
|
9015
9019
|
});
|
|
9016
9020
|
const n = () => {
|
|
9017
|
-
var
|
|
9018
|
-
const l = (
|
|
9019
|
-
name: s("template.defaultName.template", { idx:
|
|
9021
|
+
var v, h;
|
|
9022
|
+
const l = (v = t.templates) == null ? void 0 : v.at(-1), r = l ? Ae.LexoRank.parse(l.rank).genNext() : Ae.LexoRank.middle(), c = ((h = t.templates) == null ? void 0 : h.length) ?? 0, u = {
|
|
9023
|
+
name: s("template.defaultName.template", { idx: c + 1 }),
|
|
9020
9024
|
rank: r.format()
|
|
9021
9025
|
};
|
|
9022
|
-
e("addTemplate",
|
|
9026
|
+
e("addTemplate", u);
|
|
9023
9027
|
}, o = (l, r) => {
|
|
9024
9028
|
e("updateItem", {
|
|
9025
9029
|
itemType: he.TEMPLATES,
|
|
@@ -9042,7 +9046,7 @@ const q9 = /* @__PURE__ */ z({
|
|
|
9042
9046
|
});
|
|
9043
9047
|
}
|
|
9044
9048
|
};
|
|
9045
|
-
return (l, r) => (f(), p("div",
|
|
9049
|
+
return (l, r) => (f(), p("div", x9, [
|
|
9046
9050
|
M(l1, null, {
|
|
9047
9051
|
secondary: N(() => [
|
|
9048
9052
|
M(ce, {
|
|
@@ -9062,21 +9066,21 @@ const q9 = /* @__PURE__ */ z({
|
|
|
9062
9066
|
handle: ".ao-card__drag",
|
|
9063
9067
|
onChange: i
|
|
9064
9068
|
}, {
|
|
9065
|
-
item: N(({ element:
|
|
9066
|
-
var
|
|
9069
|
+
item: N(({ element: c }) => {
|
|
9070
|
+
var u;
|
|
9067
9071
|
return [
|
|
9068
9072
|
M(g3, {
|
|
9069
|
-
id:
|
|
9070
|
-
title:
|
|
9071
|
-
phases:
|
|
9072
|
-
milestones: (
|
|
9073
|
-
activities:
|
|
9074
|
-
"updated-at":
|
|
9075
|
-
"updated-by":
|
|
9076
|
-
onUpdateTitle: (
|
|
9077
|
-
onClick: (
|
|
9073
|
+
id: c.id,
|
|
9074
|
+
title: c.name,
|
|
9075
|
+
phases: c.phases,
|
|
9076
|
+
milestones: (u = c.phases) != null && u.length ? j(Kd)(c.phases) : 0,
|
|
9077
|
+
activities: c.phases ? j(Gd)(c.phases) : 0,
|
|
9078
|
+
"updated-at": c.updatedAt,
|
|
9079
|
+
"updated-by": c.updatedBy,
|
|
9080
|
+
onUpdateTitle: (v) => o(c.id, v),
|
|
9081
|
+
onClick: (v) => l.$router.push({
|
|
9078
9082
|
name: j(Tt).TEMPLATE_DETAILS,
|
|
9079
|
-
params: { templateId:
|
|
9083
|
+
params: { templateId: c.id }
|
|
9080
9084
|
})
|
|
9081
9085
|
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
9082
9086
|
];
|
|
@@ -9086,14 +9090,14 @@ const q9 = /* @__PURE__ */ z({
|
|
|
9086
9090
|
]));
|
|
9087
9091
|
}
|
|
9088
9092
|
});
|
|
9089
|
-
const
|
|
9093
|
+
const W9 = { class: "ao-col-header" }, z9 = /* @__PURE__ */ z({
|
|
9090
9094
|
__name: "AoColHeader",
|
|
9091
9095
|
props: {
|
|
9092
9096
|
title: {},
|
|
9093
9097
|
items: {}
|
|
9094
9098
|
},
|
|
9095
9099
|
setup(a) {
|
|
9096
|
-
return (e, t) => (f(), p("header",
|
|
9100
|
+
return (e, t) => (f(), p("header", W9, [
|
|
9097
9101
|
M(pe, {
|
|
9098
9102
|
title: e.title,
|
|
9099
9103
|
class: "ao-col-header__title",
|
|
@@ -9109,15 +9113,15 @@ const Y9 = { class: "ao-col-header" }, K9 = /* @__PURE__ */ z({
|
|
|
9109
9113
|
]));
|
|
9110
9114
|
}
|
|
9111
9115
|
});
|
|
9112
|
-
function
|
|
9116
|
+
function Y9(a) {
|
|
9113
9117
|
return hn() ? (mn(a), !0) : !1;
|
|
9114
9118
|
}
|
|
9115
9119
|
function Jt(a) {
|
|
9116
9120
|
return typeof a == "function" ? a() : j(a);
|
|
9117
9121
|
}
|
|
9118
|
-
const
|
|
9122
|
+
const K9 = typeof window < "u", G9 = (a) => a != null, St = () => {
|
|
9119
9123
|
};
|
|
9120
|
-
function
|
|
9124
|
+
function X9(a, e) {
|
|
9121
9125
|
function t(...s) {
|
|
9122
9126
|
return new Promise((n, o) => {
|
|
9123
9127
|
Promise.resolve(a(() => e.apply(this, s), { fn: e, thisArg: this, args: s })).then(n).catch(o);
|
|
@@ -9125,25 +9129,25 @@ function J9(a, e) {
|
|
|
9125
9129
|
}
|
|
9126
9130
|
return t;
|
|
9127
9131
|
}
|
|
9128
|
-
function
|
|
9132
|
+
function Q9(a, e = {}) {
|
|
9129
9133
|
let t, s, n = St;
|
|
9130
9134
|
const o = (l) => {
|
|
9131
9135
|
clearTimeout(l), n(), n = St;
|
|
9132
9136
|
};
|
|
9133
9137
|
return (l) => {
|
|
9134
|
-
const r = Jt(a),
|
|
9135
|
-
return t && o(t), r <= 0 ||
|
|
9136
|
-
n = e.rejectOnCancel ?
|
|
9137
|
-
t && o(t), s = null,
|
|
9138
|
-
},
|
|
9139
|
-
s && o(s), s = null,
|
|
9138
|
+
const r = Jt(a), c = Jt(e.maxWait);
|
|
9139
|
+
return t && o(t), r <= 0 || c !== void 0 && c <= 0 ? (s && (o(s), s = null), Promise.resolve(l())) : new Promise((u, v) => {
|
|
9140
|
+
n = e.rejectOnCancel ? v : u, c && !s && (s = setTimeout(() => {
|
|
9141
|
+
t && o(t), s = null, u(l());
|
|
9142
|
+
}, c)), t = setTimeout(() => {
|
|
9143
|
+
s && o(s), s = null, u(l());
|
|
9140
9144
|
}, r);
|
|
9141
9145
|
});
|
|
9142
9146
|
};
|
|
9143
9147
|
}
|
|
9144
|
-
function
|
|
9145
|
-
return
|
|
9146
|
-
|
|
9148
|
+
function J9(a, e = 200, t = {}) {
|
|
9149
|
+
return X9(
|
|
9150
|
+
Q9(e, t),
|
|
9147
9151
|
a
|
|
9148
9152
|
);
|
|
9149
9153
|
}
|
|
@@ -9152,33 +9156,33 @@ function $1(a) {
|
|
|
9152
9156
|
const t = Jt(a);
|
|
9153
9157
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
9154
9158
|
}
|
|
9155
|
-
const
|
|
9156
|
-
function
|
|
9157
|
-
const a =
|
|
9159
|
+
const e4 = K9 ? window : void 0;
|
|
9160
|
+
function t4() {
|
|
9161
|
+
const a = J(!1);
|
|
9158
9162
|
return tt() && Ht(() => {
|
|
9159
9163
|
a.value = !0;
|
|
9160
9164
|
}), a;
|
|
9161
9165
|
}
|
|
9162
|
-
function
|
|
9163
|
-
const e =
|
|
9166
|
+
function a4(a) {
|
|
9167
|
+
const e = t4();
|
|
9164
9168
|
return y(() => (e.value, !!a()));
|
|
9165
9169
|
}
|
|
9166
|
-
function
|
|
9170
|
+
function n4(a, e, t = {}) {
|
|
9167
9171
|
const {
|
|
9168
9172
|
root: s,
|
|
9169
9173
|
rootMargin: n = "0px",
|
|
9170
9174
|
threshold: o = 0.1,
|
|
9171
|
-
window: i =
|
|
9175
|
+
window: i = e4,
|
|
9172
9176
|
immediate: l = !0
|
|
9173
|
-
} = t, r =
|
|
9177
|
+
} = t, r = a4(() => i && "IntersectionObserver" in i), c = y(() => {
|
|
9174
9178
|
const g = Jt(a);
|
|
9175
|
-
return (Array.isArray(g) ? g : [g]).map($1).filter(
|
|
9179
|
+
return (Array.isArray(g) ? g : [g]).map($1).filter(G9);
|
|
9176
9180
|
});
|
|
9177
|
-
let
|
|
9178
|
-
const
|
|
9179
|
-
() => [
|
|
9181
|
+
let u = St;
|
|
9182
|
+
const v = J(l), h = r.value ? ue(
|
|
9183
|
+
() => [c.value, $1(s), v.value],
|
|
9180
9184
|
([g, w]) => {
|
|
9181
|
-
if (
|
|
9185
|
+
if (u(), !v.value || !g.length)
|
|
9182
9186
|
return;
|
|
9183
9187
|
const T = new IntersectionObserver(
|
|
9184
9188
|
e,
|
|
@@ -9188,44 +9192,44 @@ function i4(a, e, t = {}) {
|
|
|
9188
9192
|
threshold: o
|
|
9189
9193
|
}
|
|
9190
9194
|
);
|
|
9191
|
-
g.forEach((k) => k && T.observe(k)),
|
|
9192
|
-
T.disconnect(),
|
|
9195
|
+
g.forEach((k) => k && T.observe(k)), u = () => {
|
|
9196
|
+
T.disconnect(), u = St;
|
|
9193
9197
|
};
|
|
9194
9198
|
},
|
|
9195
9199
|
{ immediate: l, flush: "post" }
|
|
9196
9200
|
) : St, m = () => {
|
|
9197
|
-
|
|
9201
|
+
u(), h(), v.value = !1;
|
|
9198
9202
|
};
|
|
9199
|
-
return
|
|
9203
|
+
return Y9(m), {
|
|
9200
9204
|
isSupported: r,
|
|
9201
|
-
isActive:
|
|
9205
|
+
isActive: v,
|
|
9202
9206
|
pause() {
|
|
9203
|
-
|
|
9207
|
+
u(), v.value = !1;
|
|
9204
9208
|
},
|
|
9205
9209
|
resume() {
|
|
9206
|
-
|
|
9210
|
+
v.value = !0;
|
|
9207
9211
|
},
|
|
9208
9212
|
stop: m
|
|
9209
9213
|
};
|
|
9210
9214
|
}
|
|
9211
|
-
const
|
|
9215
|
+
const s4 = {
|
|
9212
9216
|
class: /* @__PURE__ */ G(["ao-list-kanban"])
|
|
9213
|
-
},
|
|
9217
|
+
}, i4 = { class: "ao-list-kanban__header" }, o4 = {
|
|
9214
9218
|
key: 0,
|
|
9215
9219
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
9216
|
-
},
|
|
9220
|
+
}, l4 = {
|
|
9217
9221
|
key: 1,
|
|
9218
9222
|
class: "ao-list-kanban__end"
|
|
9219
|
-
},
|
|
9223
|
+
}, r4 = {
|
|
9220
9224
|
key: 0,
|
|
9221
9225
|
class: "ao-list-kanban__no-more"
|
|
9222
|
-
},
|
|
9226
|
+
}, u4 = {
|
|
9223
9227
|
key: 1,
|
|
9224
9228
|
class: "ao-list-kanban__divider"
|
|
9225
|
-
},
|
|
9229
|
+
}, c4 = {
|
|
9226
9230
|
key: 1,
|
|
9227
9231
|
class: "ao-list-kanban__footer"
|
|
9228
|
-
},
|
|
9232
|
+
}, d4 = /* @__PURE__ */ z({
|
|
9229
9233
|
__name: "AoListKanban",
|
|
9230
9234
|
props: {
|
|
9231
9235
|
list: {},
|
|
@@ -9239,8 +9243,8 @@ const o4 = {
|
|
|
9239
9243
|
},
|
|
9240
9244
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
|
|
9241
9245
|
setup(a, { emit: e }) {
|
|
9242
|
-
const t = a, s =
|
|
9243
|
-
|
|
9246
|
+
const t = a, s = J(!1), n = J(null);
|
|
9247
|
+
n4(n, ([{ isIntersecting: r }]) => {
|
|
9244
9248
|
s.value = r;
|
|
9245
9249
|
}), ue(s, (r) => {
|
|
9246
9250
|
r && t.hasMore && !t.isLoading && e("loadMore");
|
|
@@ -9263,48 +9267,48 @@ const o4 = {
|
|
|
9263
9267
|
)
|
|
9264
9268
|
});
|
|
9265
9269
|
};
|
|
9266
|
-
return (r,
|
|
9270
|
+
return (r, c) => (f(), p("div", s4, [
|
|
9267
9271
|
r.title || r.$slots.header ? Q(r.$slots, "header", { key: 0 }, () => {
|
|
9268
|
-
var
|
|
9272
|
+
var u;
|
|
9269
9273
|
return [
|
|
9270
|
-
d("div",
|
|
9271
|
-
r.title ? (f(), F(
|
|
9274
|
+
d("div", i4, [
|
|
9275
|
+
r.title ? (f(), F(z9, {
|
|
9272
9276
|
key: 0,
|
|
9273
9277
|
title: r.title,
|
|
9274
9278
|
level: 3,
|
|
9275
|
-
items: (
|
|
9279
|
+
items: (u = r.list) == null ? void 0 : u.length
|
|
9276
9280
|
}, null, 8, ["title", "items"])) : I("", !0)
|
|
9277
9281
|
])
|
|
9278
9282
|
];
|
|
9279
9283
|
}) : I("", !0),
|
|
9280
|
-
M(j(Ke),
|
|
9284
|
+
M(j(Ke), Ve({
|
|
9281
9285
|
class: "ao-list-kanban__list",
|
|
9282
9286
|
list: r.list,
|
|
9283
9287
|
"item-key": "id",
|
|
9284
9288
|
group: "kanban"
|
|
9285
9289
|
}, r.$attrs, { onChange: l }), {
|
|
9286
|
-
item: N(({ element:
|
|
9287
|
-
var
|
|
9290
|
+
item: N(({ element: u }) => {
|
|
9291
|
+
var v, h, m, g, w, T, k;
|
|
9288
9292
|
return [
|
|
9289
9293
|
M(Va, {
|
|
9290
|
-
id:
|
|
9291
|
-
name:
|
|
9292
|
-
"project-name": (
|
|
9293
|
-
"phase-name": (m = (
|
|
9294
|
-
"milestone-name": (g =
|
|
9295
|
-
deadline:
|
|
9296
|
-
rules: ((w =
|
|
9297
|
-
tasks:
|
|
9298
|
-
description:
|
|
9299
|
-
important:
|
|
9300
|
-
type:
|
|
9301
|
-
comments: (T =
|
|
9302
|
-
attachments: (k =
|
|
9294
|
+
id: u.id,
|
|
9295
|
+
name: u.name,
|
|
9296
|
+
"project-name": (v = u.project) == null ? void 0 : v.name,
|
|
9297
|
+
"phase-name": (m = (h = u.milestone) == null ? void 0 : h.phase) == null ? void 0 : m.name,
|
|
9298
|
+
"milestone-name": (g = u.milestone) == null ? void 0 : g.name,
|
|
9299
|
+
deadline: u.deadline,
|
|
9300
|
+
rules: ((w = u.rules) == null ? void 0 : w.length) || 0,
|
|
9301
|
+
tasks: u.tasks,
|
|
9302
|
+
description: u.description,
|
|
9303
|
+
important: u.important,
|
|
9304
|
+
type: u.type,
|
|
9305
|
+
comments: (T = u.comments) == null ? void 0 : T.length,
|
|
9306
|
+
attachments: (k = u.attachments) == null ? void 0 : k.length,
|
|
9303
9307
|
users: r.users,
|
|
9304
|
-
assignee:
|
|
9305
|
-
onClick: () => o(
|
|
9308
|
+
assignee: u.assignee,
|
|
9309
|
+
onClick: () => o(u.id),
|
|
9306
9310
|
onUpdateActivity: i,
|
|
9307
|
-
onRemoveAssignee: () => i({ id:
|
|
9311
|
+
onRemoveAssignee: () => i({ id: u.id, assigneeId: null })
|
|
9308
9312
|
}, {
|
|
9309
9313
|
secondary: N(() => [
|
|
9310
9314
|
M(ce, {
|
|
@@ -9315,7 +9319,7 @@ const o4 = {
|
|
|
9315
9319
|
"icon-position": "start",
|
|
9316
9320
|
corners: "round",
|
|
9317
9321
|
label: r.$t("feed.activity.archive"),
|
|
9318
|
-
onClick: Ce(() => r.$emit("archiveActivity", { id:
|
|
9322
|
+
onClick: Ce(() => r.$emit("archiveActivity", { id: u.id }), ["stop"])
|
|
9319
9323
|
}, null, 8, ["label", "onClick"])
|
|
9320
9324
|
]),
|
|
9321
9325
|
_: 2
|
|
@@ -9323,32 +9327,32 @@ const o4 = {
|
|
|
9323
9327
|
];
|
|
9324
9328
|
}),
|
|
9325
9329
|
footer: N(() => [
|
|
9326
|
-
r.isLoading ? (f(), p("div",
|
|
9330
|
+
r.isLoading ? (f(), p("div", o4, [
|
|
9327
9331
|
M(de, { name: "Loading" })
|
|
9328
9332
|
])) : r.hasMore ? (f(), p("div", {
|
|
9329
9333
|
key: 2,
|
|
9330
9334
|
ref_key: "scrollEnd",
|
|
9331
9335
|
ref: n,
|
|
9332
9336
|
class: "ao-list-kanban__end"
|
|
9333
|
-
}, null, 512)) : (f(), p("div",
|
|
9334
|
-
r.noMoreLabel ? (f(), p("span",
|
|
9337
|
+
}, null, 512)) : (f(), p("div", l4, [
|
|
9338
|
+
r.noMoreLabel ? (f(), p("span", r4, q(r.noMoreLabel), 1)) : (f(), p("span", u4))
|
|
9335
9339
|
]))
|
|
9336
9340
|
]),
|
|
9337
9341
|
_: 1
|
|
9338
9342
|
}, 16, ["list"]),
|
|
9339
|
-
r.$slots.footer || r.footerLabel ? (f(), p("div",
|
|
9343
|
+
r.$slots.footer || r.footerLabel ? (f(), p("div", c4, [
|
|
9340
9344
|
Q(r.$slots, "footer", {}, () => [
|
|
9341
9345
|
M(Ge, {
|
|
9342
9346
|
"icon-name": "AddBoxOutlineRounded",
|
|
9343
9347
|
label: r.footerLabel,
|
|
9344
|
-
onClick:
|
|
9348
|
+
onClick: c[0] || (c[0] = (u) => r.$emit("add"))
|
|
9345
9349
|
}, null, 8, ["label"])
|
|
9346
9350
|
])
|
|
9347
9351
|
])) : I("", !0)
|
|
9348
9352
|
]));
|
|
9349
9353
|
}
|
|
9350
9354
|
});
|
|
9351
|
-
const
|
|
9355
|
+
const f4 = { class: "ao-field ao-search-field" }, v4 = ["value", "placeholder", "onKeypress"], h4 = /* @__PURE__ */ z({
|
|
9352
9356
|
__name: "AoSearchField",
|
|
9353
9357
|
props: {
|
|
9354
9358
|
modelValue: {},
|
|
@@ -9360,10 +9364,10 @@ const h4 = { class: "ao-field ao-search-field" }, m4 = ["value", "placeholder",
|
|
|
9360
9364
|
const t = a, s = async (i) => {
|
|
9361
9365
|
const r = i.target.value;
|
|
9362
9366
|
e("update:modelValue", r, i);
|
|
9363
|
-
}, n =
|
|
9367
|
+
}, n = J9(s, t.delay), o = (i) => {
|
|
9364
9368
|
e("clear", i);
|
|
9365
9369
|
};
|
|
9366
|
-
return (i, l) => (f(), p("div",
|
|
9370
|
+
return (i, l) => (f(), p("div", f4, [
|
|
9367
9371
|
d("input", {
|
|
9368
9372
|
value: i.modelValue,
|
|
9369
9373
|
type: "text",
|
|
@@ -9372,7 +9376,7 @@ const h4 = { class: "ao-field ao-search-field" }, m4 = ["value", "placeholder",
|
|
|
9372
9376
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
9373
9377
|
(...r) => j(n) && j(n)(...r)),
|
|
9374
9378
|
onKeypress: Qe(s, ["enter"])
|
|
9375
|
-
}, null, 40,
|
|
9379
|
+
}, null, 40, v4),
|
|
9376
9380
|
M(de, {
|
|
9377
9381
|
name: "SearchRounded",
|
|
9378
9382
|
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
@@ -9388,8 +9392,8 @@ const h4 = { class: "ao-field ao-search-field" }, m4 = ["value", "placeholder",
|
|
|
9388
9392
|
]));
|
|
9389
9393
|
}
|
|
9390
9394
|
});
|
|
9391
|
-
function
|
|
9392
|
-
const e =
|
|
9395
|
+
function m4(a) {
|
|
9396
|
+
const e = J(), t = y(
|
|
9393
9397
|
() => a.value.find(
|
|
9394
9398
|
(n) => n.id === e.value
|
|
9395
9399
|
)
|
|
@@ -9402,18 +9406,18 @@ function C4(a) {
|
|
|
9402
9406
|
}
|
|
9403
9407
|
};
|
|
9404
9408
|
}
|
|
9405
|
-
const
|
|
9406
|
-
function
|
|
9407
|
-
const e =
|
|
9408
|
-
return pn(
|
|
9409
|
+
const p4 = Symbol.for("FeedStore");
|
|
9410
|
+
function C4(a) {
|
|
9411
|
+
const e = m4(a);
|
|
9412
|
+
return pn(p4, e), e;
|
|
9409
9413
|
}
|
|
9410
|
-
const
|
|
9414
|
+
const _4 = { class: "ao-feed" }, g4 = { class: "ao-feed__filters" }, y4 = { class: "ao-feed__body" }, b4 = { class: "ao-feed__activity-details__header" }, w4 = {
|
|
9411
9415
|
key: 0,
|
|
9412
9416
|
class: "ao-field ao-feed__activity-details__project"
|
|
9413
|
-
},
|
|
9417
|
+
}, $4 = { class: "ao-field__label" }, M4 = {
|
|
9414
9418
|
key: 1,
|
|
9415
9419
|
class: "ao-field ao-feed__activity-details__status"
|
|
9416
|
-
},
|
|
9420
|
+
}, k4 = { class: "ao-field__label" }, A4 = { class: "ao-field__row" }, T4 = { class: "ao-field" }, S4 = { class: "ao-field__label" }, R4 = /* @__PURE__ */ z({
|
|
9417
9421
|
__name: "AoFeed",
|
|
9418
9422
|
props: {
|
|
9419
9423
|
activities: {},
|
|
@@ -9429,13 +9433,13 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9429
9433
|
},
|
|
9430
9434
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9431
9435
|
setup(a, { emit: e }) {
|
|
9432
|
-
const t = a, { t: s } = at(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } =
|
|
9436
|
+
const t = a, { t: s } = at(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = C4(n), l = (_) => {
|
|
9433
9437
|
o(_), e("selectActivity", _);
|
|
9434
|
-
}, r =
|
|
9438
|
+
}, r = J({}), c = J(!1);
|
|
9435
9439
|
ue(
|
|
9436
9440
|
[() => t.statuses, () => t.activities],
|
|
9437
9441
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9438
|
-
async ([_, E], [
|
|
9442
|
+
async ([_, E], [ee, R]) => {
|
|
9439
9443
|
r.value = Object.fromEntries(
|
|
9440
9444
|
_.map((re) => [
|
|
9441
9445
|
re.id,
|
|
@@ -9444,23 +9448,23 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9444
9448
|
return ((se = me.status) == null ? void 0 : se.id) === re.id;
|
|
9445
9449
|
})
|
|
9446
9450
|
])
|
|
9447
|
-
),
|
|
9451
|
+
), c.value && Re(E, R);
|
|
9448
9452
|
},
|
|
9449
9453
|
{ immediate: !0 }
|
|
9450
9454
|
);
|
|
9451
|
-
const
|
|
9455
|
+
const u = y(() => {
|
|
9452
9456
|
var _;
|
|
9453
9457
|
return !i.value || !i.value.milestone ? "" : `${((_ = i.value.milestone.phase) == null ? void 0 : _.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9454
|
-
}),
|
|
9458
|
+
}), v = (_) => {
|
|
9455
9459
|
var me, se;
|
|
9456
|
-
const E = (me = t.activities) == null ? void 0 : me.at(-1),
|
|
9460
|
+
const E = (me = t.activities) == null ? void 0 : me.at(-1), ee = E ? Ae.LexoRank.parse(E.rank).genNext() : Ae.LexoRank.middle(), R = ((se = t.activities) == null ? void 0 : se.length) ?? 0, re = {
|
|
9457
9461
|
name: s("activity.defaultName", { idx: R + 1 }),
|
|
9458
|
-
rank:
|
|
9462
|
+
rank: ee.format(),
|
|
9459
9463
|
statusId: _.id
|
|
9460
9464
|
};
|
|
9461
|
-
t.filters.assigneeId.length === 1 && (re.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length === 1 && (re.projectId = t.filters.projectId[0]),
|
|
9462
|
-
},
|
|
9463
|
-
|
|
9465
|
+
t.filters.assigneeId.length === 1 && (re.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length === 1 && (re.projectId = t.filters.projectId[0]), c.value = !0, e("addActivity", re);
|
|
9466
|
+
}, h = (_, E) => {
|
|
9467
|
+
c.value = !1, e("update:filters", { ...t.filters, [_]: E });
|
|
9464
9468
|
}, m = y(() => t.projects.map((_) => ({
|
|
9465
9469
|
value: _.id,
|
|
9466
9470
|
label: _.name
|
|
@@ -9488,9 +9492,9 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9488
9492
|
});
|
|
9489
9493
|
}
|
|
9490
9494
|
}), U = (_) => {
|
|
9491
|
-
|
|
9495
|
+
c.value = !1, e("update:searchText", _);
|
|
9492
9496
|
}, Z = (_) => {
|
|
9493
|
-
|
|
9497
|
+
c.value = !1, e("clear:searchText", _);
|
|
9494
9498
|
}, H = (_) => {
|
|
9495
9499
|
i.value && e("addSubtask", _);
|
|
9496
9500
|
}, O = (_) => {
|
|
@@ -9536,18 +9540,18 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9536
9540
|
});
|
|
9537
9541
|
};
|
|
9538
9542
|
return (_, E) => {
|
|
9539
|
-
var
|
|
9540
|
-
return f(), p("div",
|
|
9543
|
+
var ee;
|
|
9544
|
+
return f(), p("div", _4, [
|
|
9541
9545
|
M(l1, null, {
|
|
9542
9546
|
primary: N(() => [
|
|
9543
|
-
M(
|
|
9547
|
+
M(h4, {
|
|
9544
9548
|
"model-value": _.searchText,
|
|
9545
9549
|
placeholder: _.$t("feed.search.placeholder"),
|
|
9546
9550
|
class: "ao-feed__search",
|
|
9547
9551
|
"onUpdate:modelValue": U,
|
|
9548
9552
|
onClear: Z
|
|
9549
9553
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9550
|
-
d("div",
|
|
9554
|
+
d("div", g4, [
|
|
9551
9555
|
M(be, {
|
|
9552
9556
|
"model-value": _.filters[j(ut).project],
|
|
9553
9557
|
mode: "tags",
|
|
@@ -9556,7 +9560,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9556
9560
|
searchable: !0,
|
|
9557
9561
|
class: "ao-feed__filter",
|
|
9558
9562
|
placeholder: _.$t("feed.filters.project.placeholder"),
|
|
9559
|
-
"onUpdate:modelValue": E[0] || (E[0] = (R) =>
|
|
9563
|
+
"onUpdate:modelValue": E[0] || (E[0] = (R) => h(j(ut).project, R))
|
|
9560
9564
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
9561
9565
|
M(be, {
|
|
9562
9566
|
"model-value": _.filters[j(ut).type],
|
|
@@ -9566,7 +9570,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9566
9570
|
searchable: !0,
|
|
9567
9571
|
class: "ao-feed__filter",
|
|
9568
9572
|
placeholder: _.$t("feed.filters.activityType.placeholder"),
|
|
9569
|
-
"onUpdate:modelValue": E[1] || (E[1] = (R) =>
|
|
9573
|
+
"onUpdate:modelValue": E[1] || (E[1] = (R) => h(j(ut).type, R))
|
|
9570
9574
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
9571
9575
|
M(be, {
|
|
9572
9576
|
"model-value": _.filters[j(ut).assignee],
|
|
@@ -9576,7 +9580,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9576
9580
|
searchable: !0,
|
|
9577
9581
|
class: "ao-feed__filter",
|
|
9578
9582
|
placeholder: _.$t("feed.filters.assignee.placeholder"),
|
|
9579
|
-
"onUpdate:modelValue": E[2] || (E[2] = (R) =>
|
|
9583
|
+
"onUpdate:modelValue": E[2] || (E[2] = (R) => h(j(ut).assignee, R))
|
|
9580
9584
|
}, {
|
|
9581
9585
|
tag: N(({ option: R, handleTagRemove: re }) => [
|
|
9582
9586
|
M(_t, {
|
|
@@ -9602,15 +9606,15 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9602
9606
|
]),
|
|
9603
9607
|
_: 1
|
|
9604
9608
|
}),
|
|
9605
|
-
d("div",
|
|
9606
|
-
(f(!0), p(fe, null, ge(_.statuses, (R) => (f(), F(
|
|
9609
|
+
d("div", y4, [
|
|
9610
|
+
(f(!0), p(fe, null, ge(_.statuses, (R) => (f(), F(d4, {
|
|
9607
9611
|
key: R.id,
|
|
9608
9612
|
status: R,
|
|
9609
9613
|
list: r.value[R.id],
|
|
9610
9614
|
title: R.name,
|
|
9611
9615
|
"footer-label": _.$t("feed.activity.add"),
|
|
9612
9616
|
users: _.users,
|
|
9613
|
-
onAdd: () =>
|
|
9617
|
+
onAdd: () => v(R),
|
|
9614
9618
|
onSelectActivity: l,
|
|
9615
9619
|
onArchiveActivity: b,
|
|
9616
9620
|
onUpdateActivity: k
|
|
@@ -9621,13 +9625,13 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9621
9625
|
key: 0,
|
|
9622
9626
|
activity: j(i),
|
|
9623
9627
|
"activity-types": g.value,
|
|
9624
|
-
"milestone-id": (
|
|
9628
|
+
"milestone-id": (ee = j(i).milestone) == null ? void 0 : ee.id,
|
|
9625
9629
|
"template-activities": n.value,
|
|
9626
9630
|
users: _.users,
|
|
9627
9631
|
"user-id": _.userId,
|
|
9628
9632
|
"is-task-checkable": _.isTaskCheckable,
|
|
9629
9633
|
statuses: _.statuses,
|
|
9630
|
-
breadcrumbs:
|
|
9634
|
+
breadcrumbs: u.value,
|
|
9631
9635
|
onClose: E[5] || (E[5] = () => l(null)),
|
|
9632
9636
|
"onUpdate:activity": T,
|
|
9633
9637
|
onAddSubtask: H,
|
|
@@ -9642,17 +9646,17 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9642
9646
|
header: N(() => {
|
|
9643
9647
|
var R, re;
|
|
9644
9648
|
return [
|
|
9645
|
-
d("div",
|
|
9646
|
-
oe.value ? (f(), p("label",
|
|
9647
|
-
d("span",
|
|
9649
|
+
d("div", b4, [
|
|
9650
|
+
oe.value ? (f(), p("label", w4, [
|
|
9651
|
+
d("span", $4, q(_.$t("activity.project.label")), 1),
|
|
9648
9652
|
M(be, {
|
|
9649
9653
|
options: oe.value,
|
|
9650
9654
|
value: (R = j(i).project) == null ? void 0 : R.id,
|
|
9651
9655
|
onChange: te
|
|
9652
9656
|
}, null, 8, ["options", "value"])
|
|
9653
9657
|
])) : I("", !0),
|
|
9654
|
-
le.value ? (f(), p("label",
|
|
9655
|
-
d("span",
|
|
9658
|
+
le.value ? (f(), p("label", M4, [
|
|
9659
|
+
d("span", k4, q(_.$t("activity.status.label")), 1),
|
|
9656
9660
|
M(be, {
|
|
9657
9661
|
options: le.value,
|
|
9658
9662
|
value: (re = j(i).status) == null ? void 0 : re.id,
|
|
@@ -9665,9 +9669,9 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9665
9669
|
];
|
|
9666
9670
|
}),
|
|
9667
9671
|
default: N(() => [
|
|
9668
|
-
d("div",
|
|
9669
|
-
d("label",
|
|
9670
|
-
d("span",
|
|
9672
|
+
d("div", A4, [
|
|
9673
|
+
d("label", T4, [
|
|
9674
|
+
d("span", S4, q(_.$t("activity.deadline.label")), 1),
|
|
9671
9675
|
dt(d("input", {
|
|
9672
9676
|
"onUpdate:modelValue": E[4] || (E[4] = (R) => V.value = R),
|
|
9673
9677
|
class: "ao-field__input",
|
|
@@ -9691,22 +9695,22 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9691
9695
|
}
|
|
9692
9696
|
});
|
|
9693
9697
|
export {
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9698
|
+
R4 as AoFeed,
|
|
9699
|
+
V7 as AoTemplateDetails,
|
|
9700
|
+
V4 as AoTemplates,
|
|
9701
|
+
q9 as AoTemplatesList,
|
|
9702
|
+
b7 as TemplateItemTypeEnum,
|
|
9703
|
+
D4 as activityFeedStatus,
|
|
9704
|
+
H4 as durationTypes,
|
|
9701
9705
|
ut as feedFilterTypes,
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
+
N4 as getProjectOverviewRoutes,
|
|
9707
|
+
B4 as getTemplateRoutes,
|
|
9708
|
+
P4 as listUpdateTypes,
|
|
9709
|
+
C7 as milestoneStatus,
|
|
9706
9710
|
ht as projectOverviewRoutes,
|
|
9707
|
-
|
|
9708
|
-
|
|
9709
|
-
|
|
9711
|
+
_7 as ruleComparators,
|
|
9712
|
+
y7 as ruleDurationUnits,
|
|
9713
|
+
g7 as ruleTriggerTypes,
|
|
9710
9714
|
he as templateItemType,
|
|
9711
9715
|
Tt as templateRouteNames
|
|
9712
9716
|
};
|