@26lights/orcha 0.37.55 → 0.37.56
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 +2 -2
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +385 -384
- package/dist/orcha.umd.js +3 -3
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as C, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as A, resolveDynamicComponent as ht, normalizeClass as
|
|
1
|
+
import { defineComponent as x, openBlock as p, createBlock as P, unref as J, mergeProps as He, createElementBlock as C, createElementVNode as v, pushScopeId as Oi, popScopeId as Ei, createStaticVNode as Ii, computed as A, resolveDynamicComponent as ht, normalizeClass as G, renderSlot as te, toDisplayString as Q, createCommentVNode as T, ref as ee, watch as de, nextTick as De, withKeys as dt, toHandlers as Li, withCtx as z, createTextVNode as Fa, createVNode as M, normalizeStyle as Ua, withModifiers as fe, createSlots as Za, Fragment as he, renderList as _e, onMounted as xt, onBeforeUnmount as Ts, onUnmounted as kn, Teleport as Nt, toRefs as Ae, getCurrentInstance as Mt, toRef as Pt, normalizeProps as pa, guardReactiveProps as fa, withDirectives as Ke, vShow as Hi, onUpdated as Di, vModelText as ut, resolveComponent as Ye, getCurrentScope as Pi, onScopeDispose as Vi, toHandlerKey as Bi } from "vue";
|
|
2
2
|
import { RouterView as Ri } from "vue-router";
|
|
3
3
|
import mt from "vuedraggable";
|
|
4
4
|
const v8 = /* @__PURE__ */ x({
|
|
@@ -1164,7 +1164,7 @@ const Os = {
|
|
|
1164
1164
|
setup(t) {
|
|
1165
1165
|
const e = t, a = A(() => k2[e.name]);
|
|
1166
1166
|
return (n, s) => (p(), P(ht(a.value), {
|
|
1167
|
-
class:
|
|
1167
|
+
class: G(["ao-icon", `ao-icon--${n.size}`])
|
|
1168
1168
|
}, null, 8, ["class"]));
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
@@ -1189,7 +1189,7 @@ const M2 = ["type"], T2 = {
|
|
|
1189
1189
|
const e = t, a = A(() => e.size), n = A(() => e.isLoading ? "Loading" : e.iconName);
|
|
1190
1190
|
return (s, o) => (p(), C("button", {
|
|
1191
1191
|
type: s.type,
|
|
1192
|
-
class:
|
|
1192
|
+
class: G([
|
|
1193
1193
|
"ao-button",
|
|
1194
1194
|
`ao-button--${s.variant}`,
|
|
1195
1195
|
s.color ? `ao-button--${s.color}` : "",
|
|
@@ -1258,8 +1258,8 @@ const ye = /* @__PURE__ */ x({
|
|
|
1258
1258
|
click: (g) => g.stopPropagation(),
|
|
1259
1259
|
blur: h
|
|
1260
1260
|
} : {
|
|
1261
|
-
click:
|
|
1262
|
-
focus:
|
|
1261
|
+
click: b,
|
|
1262
|
+
focus: b
|
|
1263
1263
|
} : {}), f = i((g, k) => {
|
|
1264
1264
|
const m = k.target.value;
|
|
1265
1265
|
e("update:title", m);
|
|
@@ -1267,7 +1267,7 @@ const ye = /* @__PURE__ */ x({
|
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, w = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
1270
|
-
},
|
|
1270
|
+
}, b = (g) => {
|
|
1271
1271
|
g.stopPropagation(), s.value || o(!0);
|
|
1272
1272
|
};
|
|
1273
1273
|
return de(
|
|
@@ -1342,7 +1342,7 @@ const O2 = {
|
|
|
1342
1342
|
e("update:title", n);
|
|
1343
1343
|
};
|
|
1344
1344
|
return (n, s) => (p(), P(ht(n.tagName), {
|
|
1345
|
-
class:
|
|
1345
|
+
class: G(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
|
|
1346
1346
|
}, {
|
|
1347
1347
|
default: z(() => [
|
|
1348
1348
|
n.isDraggable ? (p(), C("div", O2, [
|
|
@@ -1406,7 +1406,7 @@ const qa = /* @__PURE__ */ x({
|
|
|
1406
1406
|
() => a.value === "button" ? { type: "button" } : {}
|
|
1407
1407
|
);
|
|
1408
1408
|
return (s, o) => (p(), C("div", {
|
|
1409
|
-
class:
|
|
1409
|
+
class: G([
|
|
1410
1410
|
"ao-tag",
|
|
1411
1411
|
s.color ? `ao-tag--${s.color}` : "",
|
|
1412
1412
|
s.clickable ? "ao-tag--clickable" : "",
|
|
@@ -1597,10 +1597,10 @@ function Vs(t, e) {
|
|
|
1597
1597
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1598
1598
|
var w = /* @__PURE__ */ new Date(0);
|
|
1599
1599
|
w.setUTCFullYear(f + 1, 0, h), w.setUTCHours(0, 0, 0, 0);
|
|
1600
|
-
var
|
|
1600
|
+
var b = Pa(w, e), g = /* @__PURE__ */ new Date(0);
|
|
1601
1601
|
g.setUTCFullYear(f, 0, h), g.setUTCHours(0, 0, 0, 0);
|
|
1602
1602
|
var k = Pa(g, e);
|
|
1603
|
-
return u.getTime() >=
|
|
1603
|
+
return u.getTime() >= b.getTime() ? f + 1 : u.getTime() >= k.getTime() ? f : f - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function J2(t, e) {
|
|
1606
1606
|
var a, n, s, o, i, r, l, c;
|
|
@@ -2722,12 +2722,12 @@ var K0 = {
|
|
|
2722
2722
|
const Rs = K0;
|
|
2723
2723
|
var G0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, X0 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Q0 = /^'([^]*?)'?$/, J0 = /''/g, e3 = /[a-zA-Z]/;
|
|
2724
2724
|
function Ns(t, e, a) {
|
|
2725
|
-
var n, s, o, i, r, l, c, u, f, d, h, w,
|
|
2725
|
+
var n, s, o, i, r, l, c, u, f, d, h, w, b, g, k, _, m, D;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
2727
|
var I = String(e), L = va(), U = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : L.locale) !== null && n !== void 0 ? n : Rs, Z = Qe((o = (i = (r = (l = a == null ? void 0 : a.firstWeekContainsDate) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && r !== void 0 ? r : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = L.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2728
2728
|
if (!(Z >= 1 && Z <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
|
-
var Y = Qe((h = (w = (
|
|
2730
|
+
var Y = Qe((h = (w = (b = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || (k = a.locale) === null || k === void 0 || (_ = k.options) === null || _ === void 0 ? void 0 : _.weekStartsOn) !== null && b !== void 0 ? b : L.weekStartsOn) !== null && w !== void 0 ? w : (m = L.locale) === null || m === void 0 || (D = m.options) === null || D === void 0 ? void 0 : D.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2731
2731
|
if (!(Y >= 0 && Y <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!U.localize)
|
|
@@ -2771,7 +2771,7 @@ function t3(t) {
|
|
|
2771
2771
|
function a3(t, e, a) {
|
|
2772
2772
|
var n, s, o, i, r, l, c, u, f, d;
|
|
2773
2773
|
ge(2, arguments);
|
|
2774
|
-
var h = be(t), w = be(e),
|
|
2774
|
+
var h = be(t), w = be(e), b = va(), g = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Rs, k = Qe((o = (i = (r = (l = a == null ? void 0 : a.weekStartsOn) !== null && l !== void 0 ? l : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : b.weekStartsOn) !== null && i !== void 0 ? i : (f = b.locale) === null || f === void 0 || (d = f.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2775
2775
|
if (!g.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
2777
|
if (!g.formatLong)
|
|
@@ -3488,20 +3488,20 @@ function Ws() {
|
|
|
3488
3488
|
}
|
|
3489
3489
|
let f;
|
|
3490
3490
|
for (let w = l.getScale(); w > 0; c = f) {
|
|
3491
|
-
const
|
|
3492
|
-
if (f = c.setScale(
|
|
3491
|
+
const b = w - 1, g = l.setScale(b, !0);
|
|
3492
|
+
if (f = c.setScale(b, !1), g.compareTo(f) === 0)
|
|
3493
3493
|
return s.checkMid(i, r, g);
|
|
3494
3494
|
if (g.compareTo(f) > 0)
|
|
3495
3495
|
break;
|
|
3496
|
-
w =
|
|
3496
|
+
w = b, l = g;
|
|
3497
3497
|
}
|
|
3498
3498
|
let d = s.middleInternal(i, r, l, c), h;
|
|
3499
3499
|
for (let w = d.getScale(); w > 0; w = h) {
|
|
3500
3500
|
h = w - 1;
|
|
3501
|
-
const
|
|
3502
|
-
if (i.compareTo(
|
|
3501
|
+
const b = d.setScale(h);
|
|
3502
|
+
if (i.compareTo(b) >= 0 || b.compareTo(r) >= 0)
|
|
3503
3503
|
break;
|
|
3504
|
-
d =
|
|
3504
|
+
d = b;
|
|
3505
3505
|
}
|
|
3506
3506
|
return d;
|
|
3507
3507
|
}
|
|
@@ -3714,7 +3714,7 @@ const zs = (t) => {
|
|
|
3714
3714
|
};
|
|
3715
3715
|
return (i, r) => (p(), C("div", {
|
|
3716
3716
|
role: "img",
|
|
3717
|
-
class:
|
|
3717
|
+
class: G(n.value),
|
|
3718
3718
|
title: i.userName
|
|
3719
3719
|
}, [
|
|
3720
3720
|
i.avatarUrl ? T("", !0) : (p(), C("span", I3, Q(J(s)), 1)),
|
|
@@ -3878,7 +3878,7 @@ const a5 = ["type"], n5 = {
|
|
|
3878
3878
|
const e = t, a = A(() => e.size), n = A(() => e.isLoading ? "Loading" : e.iconName);
|
|
3879
3879
|
return (s, o) => (p(), C("button", {
|
|
3880
3880
|
type: s.type,
|
|
3881
|
-
class:
|
|
3881
|
+
class: G([
|
|
3882
3882
|
"ao-button-card",
|
|
3883
3883
|
`ao-button-card--${s.color}`,
|
|
3884
3884
|
`ao-button-card--${s.corners}`,
|
|
@@ -4159,7 +4159,7 @@ const l5 = /* @__PURE__ */ x({
|
|
|
4159
4159
|
emits: ["close"],
|
|
4160
4160
|
setup(t) {
|
|
4161
4161
|
return (e, a) => (p(), C("div", {
|
|
4162
|
-
class:
|
|
4162
|
+
class: G(["ao-modal__wrapper", `ao-modal__wrapper--${e.size}`])
|
|
4163
4163
|
}, [
|
|
4164
4164
|
v("div", {
|
|
4165
4165
|
class: "ao-modal__backdrop",
|
|
@@ -4345,11 +4345,11 @@ const E5 = async (t, e, a) => {
|
|
|
4345
4345
|
x: u,
|
|
4346
4346
|
y: f
|
|
4347
4347
|
} = vs(c, n, l), d = n, h = {}, w = 0;
|
|
4348
|
-
for (let
|
|
4348
|
+
for (let b = 0; b < r.length; b++) {
|
|
4349
4349
|
const {
|
|
4350
4350
|
name: g,
|
|
4351
4351
|
fn: k
|
|
4352
|
-
} = r[
|
|
4352
|
+
} = r[b], {
|
|
4353
4353
|
x: _,
|
|
4354
4354
|
y: m,
|
|
4355
4355
|
data: D,
|
|
@@ -4382,7 +4382,7 @@ const E5 = async (t, e, a) => {
|
|
|
4382
4382
|
}) : I.rects), {
|
|
4383
4383
|
x: u,
|
|
4384
4384
|
y: f
|
|
4385
|
-
} = vs(c, d, l)),
|
|
4385
|
+
} = vs(c, d, l)), b = -1;
|
|
4386
4386
|
continue;
|
|
4387
4387
|
}
|
|
4388
4388
|
}
|
|
@@ -4456,13 +4456,13 @@ const I5 = function(t) {
|
|
|
4456
4456
|
fallbackPlacements: d,
|
|
4457
4457
|
fallbackStrategy: h = "bestFit",
|
|
4458
4458
|
fallbackAxisSideDirection: w = "none",
|
|
4459
|
-
flipAlignment:
|
|
4459
|
+
flipAlignment: b = !0,
|
|
4460
4460
|
...g
|
|
4461
4461
|
} = Ln(t, e);
|
|
4462
4462
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4463
4463
|
return {};
|
|
4464
|
-
const k = Ft(s), _ = Ft(r) === r, m = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !
|
|
4465
|
-
!d && w !== "none" && D.push(...M5(r,
|
|
4464
|
+
const k = Ft(s), _ = Ft(r) === r, m = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), D = d || (_ || !b ? [Ba(r)] : S5(r));
|
|
4465
|
+
!d && w !== "none" && D.push(...M5(r, b, w, m));
|
|
4466
4466
|
const I = [r, ...D], L = await Ks(e, g), U = [];
|
|
4467
4467
|
let Z = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4468
4468
|
if (u && U.push(L[k]), f) {
|
|
@@ -4526,9 +4526,9 @@ const I5 = function(t) {
|
|
|
4526
4526
|
width: d,
|
|
4527
4527
|
height: h
|
|
4528
4528
|
} = n.floating;
|
|
4529
|
-
let w,
|
|
4530
|
-
c === "top" || c === "bottom" ? (w = c,
|
|
4531
|
-
const g = h - l[w], k = d - l[
|
|
4529
|
+
let w, b;
|
|
4530
|
+
c === "top" || c === "bottom" ? (w = c, b = u === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (b = c, w = u === "end" ? "top" : "bottom");
|
|
4531
|
+
const g = h - l[w], k = d - l[b], _ = !e.middlewareData.shift;
|
|
4532
4532
|
let m = g, D = k;
|
|
4533
4533
|
if (f) {
|
|
4534
4534
|
const L = d - l.left - l.right;
|
|
@@ -4693,8 +4693,8 @@ function St(t, e, a, n) {
|
|
|
4693
4693
|
const d = ke(o), h = n && et(n) ? ke(n) : n;
|
|
4694
4694
|
let w = d.frameElement;
|
|
4695
4695
|
for (; w && n && h !== d; ) {
|
|
4696
|
-
const
|
|
4697
|
-
l *=
|
|
4696
|
+
const b = Vt(w), g = w.getBoundingClientRect(), k = Ve(w), _ = g.left + (w.clientLeft + parseFloat(k.paddingLeft)) * b.x, m = g.top + (w.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
4697
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += _, c += m, w = ke(w).frameElement;
|
|
4698
4698
|
}
|
|
4699
4699
|
}
|
|
4700
4700
|
return Ra({
|
|
@@ -4905,8 +4905,8 @@ function K5(t, e) {
|
|
|
4905
4905
|
} = t.getBoundingClientRect();
|
|
4906
4906
|
if (r || e(), !f || !d)
|
|
4907
4907
|
return;
|
|
4908
|
-
const h = Oa(u), w = Oa(s.clientWidth - (c + f)),
|
|
4909
|
-
rootMargin: -h + "px " + -w + "px " + -
|
|
4908
|
+
const h = Oa(u), w = Oa(s.clientWidth - (c + f)), b = Oa(s.clientHeight - (u + d)), g = Oa(c), _ = {
|
|
4909
|
+
rootMargin: -h + "px " + -w + "px " + -b + "px " + -g + "px",
|
|
4910
4910
|
threshold: Ee(0, ua(1, l)) || 1
|
|
4911
4911
|
};
|
|
4912
4912
|
let m = !0;
|
|
@@ -4956,11 +4956,11 @@ function G5(t, e, a, n) {
|
|
|
4956
4956
|
h && h.observe(e);
|
|
4957
4957
|
})), a();
|
|
4958
4958
|
}), c && !l && h.observe(c), h.observe(e));
|
|
4959
|
-
let w,
|
|
4959
|
+
let w, b = l ? St(t) : null;
|
|
4960
4960
|
l && g();
|
|
4961
4961
|
function g() {
|
|
4962
4962
|
const k = St(t);
|
|
4963
|
-
|
|
4963
|
+
b && (k.x !== b.x || k.y !== b.y || k.width !== b.width || k.height !== b.height) && a(), b = k, w = requestAnimationFrame(g);
|
|
4964
4964
|
}
|
|
4965
4965
|
return a(), () => {
|
|
4966
4966
|
u.forEach((k) => {
|
|
@@ -5083,8 +5083,8 @@ function t7(t, e, a) {
|
|
|
5083
5083
|
}, f = (d) => {
|
|
5084
5084
|
if (n && n.value) {
|
|
5085
5085
|
let w = (d.clipboardData || /* istanbul ignore next */
|
|
5086
|
-
window.clipboardData).getData("Text"),
|
|
5087
|
-
typeof
|
|
5086
|
+
window.clipboardData).getData("Text"), b = n.value;
|
|
5087
|
+
typeof b == "string" && (b = new RegExp(b)), w.split("").every((g) => !!g.match(b)) || d.preventDefault();
|
|
5088
5088
|
}
|
|
5089
5089
|
e.emit("paste", d, s);
|
|
5090
5090
|
};
|
|
@@ -5136,7 +5136,7 @@ function i7(t, e, a) {
|
|
|
5136
5136
|
appendNewOption: d,
|
|
5137
5137
|
multipleLabel: h,
|
|
5138
5138
|
object: w,
|
|
5139
|
-
loading:
|
|
5139
|
+
loading: b,
|
|
5140
5140
|
delay: g,
|
|
5141
5141
|
resolveOnLoad: k,
|
|
5142
5142
|
minChars: _,
|
|
@@ -5158,16 +5158,16 @@ function i7(t, e, a) {
|
|
|
5158
5158
|
groupHideEmpty: F,
|
|
5159
5159
|
groupSelect: V,
|
|
5160
5160
|
onCreate: se,
|
|
5161
|
-
disabledProp:
|
|
5161
|
+
disabledProp: y,
|
|
5162
5162
|
searchStart: R,
|
|
5163
5163
|
searchFilter: le
|
|
5164
|
-
} = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev,
|
|
5164
|
+
} = Ae(t), ie = Mt().proxy, q = a.iv, H = a.ev, X = a.search, ve = a.clearSearch, we = a.update, Kt = a.pointer, Gt = a.setPointer, nt = a.clearPointer, _a = a.focus, nn = a.deactivate, st = a.close, ya = a.localize, it = ee([]), Ne = ee([]), Me = ee(!1), Be = ee(null), qe = ee(O.value && i.value === -1 ? 10 : i.value), Xt = A(() => l.value || c.value || !1), ba = A(() => f.value !== void 0 ? f.value : d.value !== void 0 ? d.value : !0), Te = A(() => {
|
|
5165
5165
|
if (oe.value) {
|
|
5166
5166
|
let $ = _t.value || /* istanbul ignore next */
|
|
5167
5167
|
[], B = [];
|
|
5168
5168
|
return $.forEach((re) => {
|
|
5169
5169
|
dn(re[S.value]).forEach((me) => {
|
|
5170
|
-
B.push(Object.assign({}, me, re[
|
|
5170
|
+
B.push(Object.assign({}, me, re[y.value] ? { [y.value]: !0 } : {}));
|
|
5171
5171
|
});
|
|
5172
5172
|
}), B;
|
|
5173
5173
|
} else {
|
|
@@ -5209,8 +5209,8 @@ function i7(t, e, a) {
|
|
|
5209
5209
|
...B,
|
|
5210
5210
|
index: re,
|
|
5211
5211
|
group: !0,
|
|
5212
|
-
[S.value]: cn(me, !1).map((bt) => Object.assign({}, bt, B[
|
|
5213
|
-
__VISIBLE__: cn(me).map((bt) => Object.assign({}, bt, B[
|
|
5212
|
+
[S.value]: cn(me, !1).map((bt) => Object.assign({}, bt, B[y.value] ? { [y.value]: !0 } : {})),
|
|
5213
|
+
__VISIBLE__: cn(me).map((bt) => Object.assign({}, bt, B[y.value] ? { [y.value]: !0 } : {}))
|
|
5214
5214
|
};
|
|
5215
5215
|
}));
|
|
5216
5216
|
}), on = A(() => {
|
|
@@ -5221,10 +5221,10 @@ function i7(t, e, a) {
|
|
|
5221
5221
|
case "tags":
|
|
5222
5222
|
return !je(q.value) && q.value.length > 0;
|
|
5223
5223
|
}
|
|
5224
|
-
}), pi = A(() => h !== void 0 && h.value !== void 0 ? h.value(q.value, ie) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), fi = A(() => !Te.value.length && !Me.value && !Ot.value.length), vi = A(() => Te.value.length > 0 && ot.value.length == 0 && (
|
|
5225
|
-
[L.value]:
|
|
5226
|
-
[yt.value[0]]:
|
|
5227
|
-
[u.value]:
|
|
5224
|
+
}), pi = A(() => h !== void 0 && h.value !== void 0 ? h.value(q.value, ie) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), fi = A(() => !Te.value.length && !Me.value && !Ot.value.length), vi = A(() => Te.value.length > 0 && ot.value.length == 0 && (X.value && oe.value || !oe.value)), Ot = A(() => Xt.value === !1 || !X.value ? [] : $i(X.value) !== -1 ? [] : [{
|
|
5225
|
+
[L.value]: X.value,
|
|
5226
|
+
[yt.value[0]]: X.value,
|
|
5227
|
+
[u.value]: X.value,
|
|
5228
5228
|
__CREATE__: !0
|
|
5229
5229
|
}]), yt = A(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [u.value]), hi = A(() => {
|
|
5230
5230
|
switch (s.value) {
|
|
@@ -5234,7 +5234,7 @@ function i7(t, e, a) {
|
|
|
5234
5234
|
case "tags":
|
|
5235
5235
|
return [];
|
|
5236
5236
|
}
|
|
5237
|
-
}), mi = A(() =>
|
|
5237
|
+
}), mi = A(() => b.value || Me.value), Et = ($) => {
|
|
5238
5238
|
switch (typeof $ != "object" && ($ = xe($)), s.value) {
|
|
5239
5239
|
case "single":
|
|
5240
5240
|
we($);
|
|
@@ -5276,7 +5276,7 @@ function i7(t, e, a) {
|
|
|
5276
5276
|
case "multiple":
|
|
5277
5277
|
return !je(q.value) && q.value.map((B) => B[L.value]).indexOf($[L.value]) !== -1;
|
|
5278
5278
|
}
|
|
5279
|
-
}, rn = ($) => $[
|
|
5279
|
+
}, rn = ($) => $[y.value] === !0, ln = () => E === void 0 || E.value === -1 || !on.value && E.value > 0 ? !1 : q.value.length >= E.value, gi = ($) => {
|
|
5280
5280
|
if (!rn($)) {
|
|
5281
5281
|
if (se && se.value && !ze($) && $.__CREATE__ && ($ = { ...$ }, delete $.__CREATE__, $ = se.value($, ie), $ instanceof Promise)) {
|
|
5282
5282
|
Me.value = !0, $.then((B) => {
|
|
@@ -5325,8 +5325,8 @@ function i7(t, e, a) {
|
|
|
5325
5325
|
case "multiple":
|
|
5326
5326
|
case "tags":
|
|
5327
5327
|
bi($[S.value]) ? It($[S.value]) : Et(
|
|
5328
|
-
$[S.value].filter((B) => q.value.map((re) => re[L.value]).indexOf(B[L.value]) === -1).filter((B) => !B[
|
|
5329
|
-
), r.value && Kt.value && Gt(sn.value.filter((B) => !B[
|
|
5328
|
+
$[S.value].filter((B) => q.value.map((re) => re[L.value]).indexOf(B[L.value]) === -1).filter((B) => !B[y.value]).filter((B, re) => q.value.length + 1 + re <= E.value || E.value === -1)
|
|
5329
|
+
), r.value && Kt.value && Gt(sn.value.filter((B) => !B[y.value])[Kt.value.index]);
|
|
5330
5330
|
break;
|
|
5331
5331
|
}
|
|
5332
5332
|
N.value && nn();
|
|
@@ -5335,18 +5335,18 @@ function i7(t, e, a) {
|
|
|
5335
5335
|
xe($[L.value]) === void 0 && Xt.value && (e.emit("tag", $[L.value], ie), e.emit("option", $[L.value], ie), e.emit("create", $[L.value], ie), ba.value && Si($), ve());
|
|
5336
5336
|
}, yi = () => {
|
|
5337
5337
|
s.value !== "single" && Et(ot.value.filter(($) => !$.disabled && !ze($)));
|
|
5338
|
-
}, bi = ($) => $.find((B) => !ze(B) && !B[
|
|
5338
|
+
}, bi = ($) => $.find((B) => !ze(B) && !B[y.value]) === void 0, wi = ($) => $.find((B) => !ze(B)) === void 0, xe = ($) => Te.value[Te.value.map((B) => String(B[L.value])).indexOf(String($))], $i = ($) => Te.value.findIndex((B) => yt.value.some((re) => (parseInt(B[re]) == B[re] ? parseInt(B[re]) : B[re]) === (parseInt($) == $ ? parseInt($) : $))), ki = ($) => ["tags", "multiple"].indexOf(s.value) !== -1 && r.value && ze($), Si = ($) => {
|
|
5339
5339
|
it.value.push($);
|
|
5340
5340
|
}, Ai = ($) => F.value ? $.filter(
|
|
5341
|
-
(B) =>
|
|
5342
|
-
) : $.filter((B) =>
|
|
5341
|
+
(B) => X.value ? B.__VISIBLE__.length : B[S.value].length
|
|
5342
|
+
) : $.filter((B) => X.value ? B.__VISIBLE__.length : !0), cn = ($, B = !0) => {
|
|
5343
5343
|
let re = $;
|
|
5344
|
-
if (
|
|
5344
|
+
if (X.value && m.value) {
|
|
5345
5345
|
let me = le.value;
|
|
5346
5346
|
me || (me = (bt, is, c8) => yt.value.some((Ti) => {
|
|
5347
5347
|
let os = hn(ya(bt[Ti]), K.value);
|
|
5348
5348
|
return R.value ? os.startsWith(hn(is, K.value)) : os.indexOf(hn(is, K.value)) !== -1;
|
|
5349
|
-
})), re = re.filter((bt) => me(bt,
|
|
5349
|
+
})), re = re.filter((bt) => me(bt, X.value, ie));
|
|
5350
5350
|
}
|
|
5351
5351
|
return r.value && B && (re = re.filter((me) => !ki(me))), re;
|
|
5352
5352
|
}, dn = ($) => {
|
|
@@ -5358,7 +5358,7 @@ function i7(t, e, a) {
|
|
|
5358
5358
|
}, $a = () => {
|
|
5359
5359
|
je(H.value) || (q.value = Sa(H.value));
|
|
5360
5360
|
}, ka = ($) => (Me.value = !0, new Promise((B, re) => {
|
|
5361
|
-
n.value(
|
|
5361
|
+
n.value(X.value, ie).then((me) => {
|
|
5362
5362
|
Ne.value = me || [], typeof $ == "function" && $(me), Me.value = !1;
|
|
5363
5363
|
}).catch((me) => {
|
|
5364
5364
|
console.error(me), Ne.value = [], Me.value = !1;
|
|
@@ -5392,10 +5392,10 @@ function i7(t, e, a) {
|
|
|
5392
5392
|
[L.value]: B,
|
|
5393
5393
|
[yt.value[0]]: B
|
|
5394
5394
|
}), ss = () => {
|
|
5395
|
-
Be.value = de(
|
|
5395
|
+
Be.value = de(X, ($) => {
|
|
5396
5396
|
$.length < _.value || !$ && _.value !== 0 || (Me.value = !0, D.value && (Ne.value = []), setTimeout(() => {
|
|
5397
|
-
$ ==
|
|
5398
|
-
($ ==
|
|
5397
|
+
$ == X.value && n.value(X.value, ie).then((B) => {
|
|
5398
|
+
($ == X.value || !X.value) && (Ne.value = B, Kt.value = ot.value.filter((re) => re[y.value] !== !0)[0] || null, Me.value = !1);
|
|
5399
5399
|
}).catch(
|
|
5400
5400
|
/* istanbul ignore next */
|
|
5401
5401
|
(B) => {
|
|
@@ -5472,26 +5472,26 @@ function o7(t, e, a) {
|
|
|
5472
5472
|
groupSelect: c,
|
|
5473
5473
|
disabledProp: u,
|
|
5474
5474
|
groupOptions: f
|
|
5475
|
-
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick,
|
|
5475
|
+
} = Ae(t), d = a.fo, h = a.fg, w = a.handleOptionClick, b = a.handleGroupClick, g = a.search, k = a.pointer, _ = a.setPointer, m = a.clearPointer, D = a.multiselect, I = a.isOpen, L = A(() => d.value.filter((H) => !H[u.value])), U = A(() => h.value.filter((H) => !H[u.value])), Z = A(() => l.value !== "single" && c.value), Y = A(() => k.value && k.value.group), E = A(() => ie(k.value)), K = A(() => {
|
|
5476
5476
|
const H = Y.value ? k.value : (
|
|
5477
5477
|
/* istanbul ignore next */
|
|
5478
5478
|
ie(k.value)
|
|
5479
|
-
),
|
|
5480
|
-
let ve = U.value[
|
|
5479
|
+
), X = U.value.map((we) => we[i.value]).indexOf(H[i.value]);
|
|
5480
|
+
let ve = U.value[X - 1];
|
|
5481
5481
|
return ve === void 0 && (ve = W.value), ve;
|
|
5482
5482
|
}), N = A(() => {
|
|
5483
|
-
let H = U.value.map((
|
|
5483
|
+
let H = U.value.map((X) => X.label).indexOf(Y.value ? k.value[i.value] : ie(k.value)[i.value]) + 1;
|
|
5484
5484
|
return U.value.length <= H && (H = 0), U.value[H];
|
|
5485
5485
|
}), W = A(() => [...U.value].slice(-1)[0]), oe = A(() => k.value.__VISIBLE__.filter((H) => !H[u.value])[0]), ne = A(() => {
|
|
5486
|
-
const H = E.value.__VISIBLE__.filter((
|
|
5487
|
-
return H[H.map((
|
|
5486
|
+
const H = E.value.__VISIBLE__.filter((X) => !X[u.value]);
|
|
5487
|
+
return H[H.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1];
|
|
5488
5488
|
}), O = A(() => {
|
|
5489
|
-
const H = ie(k.value).__VISIBLE__.filter((
|
|
5490
|
-
return H[H.map((
|
|
5489
|
+
const H = ie(k.value).__VISIBLE__.filter((X) => !X[u.value]);
|
|
5490
|
+
return H[H.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1];
|
|
5491
5491
|
}), S = A(() => [...K.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), F = A(() => [...W.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), V = (H) => k.value && (!H.group && k.value[n.value] === H[n.value] || H.group !== void 0 && k.value[i.value] === H[i.value]) ? !0 : void 0, se = () => {
|
|
5492
5492
|
_(L.value[0] || null);
|
|
5493
|
-
},
|
|
5494
|
-
!k.value || k.value[u.value] === !0 || (Y.value ?
|
|
5493
|
+
}, y = () => {
|
|
5494
|
+
!k.value || k.value[u.value] === !0 || (Y.value ? b(k.value) : w(k.value));
|
|
5495
5495
|
}, R = () => {
|
|
5496
5496
|
if (k.value === null)
|
|
5497
5497
|
_((r.value && Z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
|
|
@@ -5500,7 +5500,7 @@ function o7(t, e, a) {
|
|
|
5500
5500
|
H === void 0 && (H = N.value, H.__CREATE__ && (H = H[f.value][0])), _(H || /* istanbul ignore next */
|
|
5501
5501
|
null);
|
|
5502
5502
|
} else {
|
|
5503
|
-
let H = L.value.map((
|
|
5503
|
+
let H = L.value.map((X) => X[n.value]).indexOf(k.value[n.value]) + 1;
|
|
5504
5504
|
L.value.length <= H && (H = 0), _(L.value[H] || null);
|
|
5505
5505
|
}
|
|
5506
5506
|
De(() => {
|
|
@@ -5515,29 +5515,29 @@ function o7(t, e, a) {
|
|
|
5515
5515
|
H === void 0 && (H = Y.value ? K.value : E.value, H.__CREATE__ && (H = S.value, H === void 0 && (H = K.value))), _(H || /* istanbul ignore next */
|
|
5516
5516
|
null);
|
|
5517
5517
|
} else {
|
|
5518
|
-
let H = L.value.map((
|
|
5518
|
+
let H = L.value.map((X) => X[n.value]).indexOf(k.value[n.value]) - 1;
|
|
5519
5519
|
H < 0 && (H = L.value.length - 1), _(L.value[H] || null);
|
|
5520
5520
|
}
|
|
5521
5521
|
De(() => {
|
|
5522
5522
|
q();
|
|
5523
5523
|
});
|
|
5524
|
-
}, ie = (H) => U.value.find((
|
|
5524
|
+
}, ie = (H) => U.value.find((X) => X.__VISIBLE__.map((ve) => ve[n.value]).indexOf(H[n.value]) !== -1), q = () => {
|
|
5525
5525
|
let H = D.value.querySelector("[data-pointed]");
|
|
5526
5526
|
if (!H)
|
|
5527
5527
|
return;
|
|
5528
|
-
let
|
|
5529
|
-
r.value && (
|
|
5528
|
+
let X = H.parentElement.parentElement;
|
|
5529
|
+
r.value && (X = Y.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > X.clientHeight + X.scrollTop && (X.scrollTop = H.offsetTop + H.offsetHeight - X.clientHeight), H.offsetTop < X.scrollTop && (X.scrollTop = H.offsetTop);
|
|
5530
5530
|
};
|
|
5531
5531
|
return de(g, (H) => {
|
|
5532
5532
|
o.value && (H.length && s.value ? se() : m());
|
|
5533
5533
|
}), de(I, (H) => {
|
|
5534
5534
|
if (H) {
|
|
5535
|
-
let
|
|
5536
|
-
if (!
|
|
5535
|
+
let X = D.value.querySelectorAll("[data-selected]")[0];
|
|
5536
|
+
if (!X)
|
|
5537
5537
|
return;
|
|
5538
|
-
let ve =
|
|
5538
|
+
let ve = X.parentElement.parentElement;
|
|
5539
5539
|
De(() => {
|
|
5540
|
-
ve.scrollTop > 0 || (ve.scrollTop =
|
|
5540
|
+
ve.scrollTop > 0 || (ve.scrollTop = X.offsetTop);
|
|
5541
5541
|
});
|
|
5542
5542
|
}
|
|
5543
5543
|
}), {
|
|
@@ -5545,7 +5545,7 @@ function o7(t, e, a) {
|
|
|
5545
5545
|
canPointGroups: Z,
|
|
5546
5546
|
isPointed: V,
|
|
5547
5547
|
setPointerFirst: se,
|
|
5548
|
-
selectPointer:
|
|
5548
|
+
selectPointer: y,
|
|
5549
5549
|
forwardPointer: R,
|
|
5550
5550
|
backwardPointer: le
|
|
5551
5551
|
};
|
|
@@ -5909,7 +5909,7 @@ function B7(t, e) {
|
|
|
5909
5909
|
}
|
|
5910
5910
|
function Un(t, e) {
|
|
5911
5911
|
e === void 0 && (e = {});
|
|
5912
|
-
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h,
|
|
5912
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, r = a.boundary, l = r === void 0 ? f7 : r, c = a.rootBoundary, u = c === void 0 ? oi : c, f = a.elementContext, d = f === void 0 ? sa : f, h = a.altBoundary, w = h === void 0 ? !1 : h, b = a.padding, g = b === void 0 ? 0 : b, k = V7(typeof g != "number" ? g : B7(g, an)), _ = d === sa ? v7 : sa, m = t.rects.popper, D = t.elements[w ? _ : d], I = P7(At(D) ? D : D.contextElement || gt(t.elements.popper), l, u, i), L = Wt(t.elements.reference), U = li({
|
|
5913
5913
|
reference: L,
|
|
5914
5914
|
element: m,
|
|
5915
5915
|
strategy: "absolute",
|
|
@@ -5961,7 +5961,7 @@ function R7(t) {
|
|
|
5961
5961
|
state: u,
|
|
5962
5962
|
setOptions: function(k) {
|
|
5963
5963
|
var _ = typeof k == "function" ? k(u.options) : k;
|
|
5964
|
-
|
|
5964
|
+
b(), u.options = Object.assign({}, o, u.options, _), u.scrollParents = {
|
|
5965
5965
|
reference: At(r) ? ia(r) : r.contextElement ? ia(r.contextElement) : [],
|
|
5966
5966
|
popper: ia(l)
|
|
5967
5967
|
};
|
|
@@ -6009,7 +6009,7 @@ function R7(t) {
|
|
|
6009
6009
|
});
|
|
6010
6010
|
}),
|
|
6011
6011
|
destroy: function() {
|
|
6012
|
-
|
|
6012
|
+
b(), d = !0;
|
|
6013
6013
|
}
|
|
6014
6014
|
};
|
|
6015
6015
|
if (!ws(r, l))
|
|
@@ -6032,7 +6032,7 @@ function R7(t) {
|
|
|
6032
6032
|
}
|
|
6033
6033
|
});
|
|
6034
6034
|
}
|
|
6035
|
-
function
|
|
6035
|
+
function b() {
|
|
6036
6036
|
f.forEach(function(g) {
|
|
6037
6037
|
return g();
|
|
6038
6038
|
}), f = [];
|
|
@@ -6091,14 +6091,14 @@ function W7(t, e) {
|
|
|
6091
6091
|
};
|
|
6092
6092
|
}
|
|
6093
6093
|
function $s(t) {
|
|
6094
|
-
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, h = d === void 0 ? 0 : d, w = i.y,
|
|
6094
|
+
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, r = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, f = t.isFixed, d = i.x, h = d === void 0 ? 0 : d, w = i.y, b = w === void 0 ? 0 : w, g = typeof u == "function" ? u({
|
|
6095
6095
|
x: h,
|
|
6096
|
-
y
|
|
6096
|
+
y: b
|
|
6097
6097
|
}) : {
|
|
6098
6098
|
x: h,
|
|
6099
|
-
y
|
|
6099
|
+
y: b
|
|
6100
6100
|
};
|
|
6101
|
-
h = g.x,
|
|
6101
|
+
h = g.x, b = g.y;
|
|
6102
6102
|
var k = i.hasOwnProperty("x"), _ = i.hasOwnProperty("y"), m = Ge, D = Re, I = window;
|
|
6103
6103
|
if (c) {
|
|
6104
6104
|
var L = tn(a), U = "clientHeight", Z = "clientWidth";
|
|
@@ -6108,7 +6108,7 @@ function $s(t) {
|
|
|
6108
6108
|
// $FlowFixMe[prop-missing]
|
|
6109
6109
|
L[U]
|
|
6110
6110
|
);
|
|
6111
|
-
|
|
6111
|
+
b -= Y - n.height, b *= l ? 1 : -1;
|
|
6112
6112
|
}
|
|
6113
6113
|
if (s === Ge || (s === Re || s === We) && o === da) {
|
|
6114
6114
|
m = vt;
|
|
@@ -6123,16 +6123,16 @@ function $s(t) {
|
|
|
6123
6123
|
position: r
|
|
6124
6124
|
}, c && Z7), N = u === !0 ? W7({
|
|
6125
6125
|
x: h,
|
|
6126
|
-
y
|
|
6126
|
+
y: b
|
|
6127
6127
|
}, Se(a)) : {
|
|
6128
6128
|
x: h,
|
|
6129
|
-
y
|
|
6129
|
+
y: b
|
|
6130
6130
|
};
|
|
6131
|
-
if (h = N.x,
|
|
6131
|
+
if (h = N.x, b = N.y, l) {
|
|
6132
6132
|
var W;
|
|
6133
|
-
return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] = k ? "0" : "", W.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " +
|
|
6133
|
+
return Object.assign({}, K, (W = {}, W[D] = _ ? "0" : "", W[m] = k ? "0" : "", W.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + b + "px)" : "translate3d(" + h + "px, " + b + "px, 0)", W));
|
|
6134
6134
|
}
|
|
6135
|
-
return Object.assign({}, K, (e = {}, e[D] = _ ?
|
|
6135
|
+
return Object.assign({}, K, (e = {}, e[D] = _ ? b + "px" : "", e[m] = k ? h + "px" : "", e.transform = "", e));
|
|
6136
6136
|
}
|
|
6137
6137
|
function q7(t) {
|
|
6138
6138
|
var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, r = a.roundOffsets, l = r === void 0 ? !0 : r, c = {
|
|
@@ -6219,14 +6219,14 @@ function J7(t, e, a) {
|
|
|
6219
6219
|
return n > a ? a : n;
|
|
6220
6220
|
}
|
|
6221
6221
|
function ep(t) {
|
|
6222
|
-
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, h = d === void 0 ? !0 : d, w = a.tetherOffset,
|
|
6222
|
+
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !1 : i, l = a.boundary, c = a.rootBoundary, u = a.altBoundary, f = a.padding, d = a.tether, h = d === void 0 ? !0 : d, w = a.tetherOffset, b = w === void 0 ? 0 : w, g = Un(e, {
|
|
6223
6223
|
boundary: l,
|
|
6224
6224
|
rootBoundary: c,
|
|
6225
6225
|
padding: f,
|
|
6226
6226
|
altBoundary: u
|
|
6227
|
-
}), k = ct(e.placement), _ = zt(e.placement), m = !_, D = ri(k), I = Q7(D), L = e.modifiersData.popperOffsets, U = e.rects.reference, Z = e.rects.popper, Y = typeof
|
|
6227
|
+
}), k = ct(e.placement), _ = zt(e.placement), m = !_, D = ri(k), I = Q7(D), L = e.modifiersData.popperOffsets, U = e.rects.reference, Z = e.rects.popper, Y = typeof b == "function" ? b(Object.assign({}, e.rects, {
|
|
6228
6228
|
placement: e.placement
|
|
6229
|
-
})) :
|
|
6229
|
+
})) : b, E = typeof Y == "number" ? {
|
|
6230
6230
|
mainAxis: Y,
|
|
6231
6231
|
altAxis: Y
|
|
6232
6232
|
} : Object.assign({
|
|
@@ -6238,10 +6238,10 @@ function ep(t) {
|
|
|
6238
6238
|
};
|
|
6239
6239
|
if (L) {
|
|
6240
6240
|
if (o) {
|
|
6241
|
-
var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", S = L[D], F = S + g[oe], V = S - g[ne], se = h ? -Z[O] / 2 : 0,
|
|
6241
|
+
var W, oe = D === "y" ? Re : Ge, ne = D === "y" ? We : vt, O = D === "y" ? "height" : "width", S = L[D], F = S + g[oe], V = S - g[ne], se = h ? -Z[O] / 2 : 0, y = _ === qt ? U[O] : Z[O], R = _ === qt ? -Z[O] : -U[O], le = e.elements.arrow, ie = h && le ? si(le) : {
|
|
6242
6242
|
width: 0,
|
|
6243
6243
|
height: 0
|
|
6244
|
-
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe],
|
|
6244
|
+
}, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ui(), H = q[oe], X = q[ne], ve = Ia(0, U[O], ie[O]), we = m ? U[O] / 2 - se - ve - H - E.mainAxis : y - ve - H - E.mainAxis, Kt = m ? -U[O] / 2 + se + ve + X + E.mainAxis : R + ve + X + E.mainAxis, Gt = e.elements.arrow && tn(e.elements.arrow), nt = Gt ? D === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, _a = (W = K == null ? void 0 : K[D]) != null ? W : 0, nn = S + we - _a - nt, st = S + Kt - _a, ya = Ia(h ? Na(F, nn) : F, S, h ? kt(V, st) : V);
|
|
6245
6245
|
L[D] = ya, N[D] = ya - S;
|
|
6246
6246
|
}
|
|
6247
6247
|
if (r) {
|
|
@@ -6285,16 +6285,16 @@ function sp(t, e) {
|
|
|
6285
6285
|
return c.indexOf(w) >= 0;
|
|
6286
6286
|
});
|
|
6287
6287
|
d.length === 0 && (d = f);
|
|
6288
|
-
var h = d.reduce(function(w,
|
|
6289
|
-
return w[
|
|
6290
|
-
placement:
|
|
6288
|
+
var h = d.reduce(function(w, b) {
|
|
6289
|
+
return w[b] = Un(t, {
|
|
6290
|
+
placement: b,
|
|
6291
6291
|
boundary: s,
|
|
6292
6292
|
rootBoundary: o,
|
|
6293
6293
|
padding: i
|
|
6294
|
-
})[ct(
|
|
6294
|
+
})[ct(b)], w;
|
|
6295
6295
|
}, {});
|
|
6296
|
-
return Object.keys(h).sort(function(w,
|
|
6297
|
-
return h[w] - h[
|
|
6296
|
+
return Object.keys(h).sort(function(w, b) {
|
|
6297
|
+
return h[w] - h[b];
|
|
6298
6298
|
});
|
|
6299
6299
|
}
|
|
6300
6300
|
function ip(t) {
|
|
@@ -6306,14 +6306,14 @@ function ip(t) {
|
|
|
6306
6306
|
function op(t) {
|
|
6307
6307
|
var e = t.state, a = t.options, n = t.name;
|
|
6308
6308
|
if (!e.modifiersData[n]._skip) {
|
|
6309
|
-
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h,
|
|
6309
|
+
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, r = i === void 0 ? !0 : i, l = a.fallbackPlacements, c = a.padding, u = a.boundary, f = a.rootBoundary, d = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, b = a.allowedAutoPlacements, g = e.options.placement, k = ct(g), _ = k === g, m = l || (_ || !w ? [La(g)] : ip(g)), D = [g].concat(m).reduce(function(ie, q) {
|
|
6310
6310
|
return ie.concat(ct(q) === Fn ? sp(e, {
|
|
6311
6311
|
placement: q,
|
|
6312
6312
|
boundary: u,
|
|
6313
6313
|
rootBoundary: f,
|
|
6314
6314
|
padding: c,
|
|
6315
6315
|
flipVariations: w,
|
|
6316
|
-
allowedAutoPlacements:
|
|
6316
|
+
allowedAutoPlacements: b
|
|
6317
6317
|
}) : q);
|
|
6318
6318
|
}, []), I = e.rects.reference, L = e.rects.popper, U = /* @__PURE__ */ new Map(), Z = !0, Y = D[0], E = 0; E < D.length; E++) {
|
|
6319
6319
|
var K = D[E], N = ct(K), W = zt(K) === qt, oe = [Re, We].indexOf(N) >= 0, ne = oe ? "width" : "height", O = Un(e, {
|
|
@@ -6334,9 +6334,9 @@ function op(t) {
|
|
|
6334
6334
|
U.set(K, V);
|
|
6335
6335
|
}
|
|
6336
6336
|
if (Z)
|
|
6337
|
-
for (var se = w ? 3 : 1,
|
|
6338
|
-
var H = D.find(function(
|
|
6339
|
-
var ve = U.get(
|
|
6337
|
+
for (var se = w ? 3 : 1, y = function(q) {
|
|
6338
|
+
var H = D.find(function(X) {
|
|
6339
|
+
var ve = U.get(X);
|
|
6340
6340
|
if (ve)
|
|
6341
6341
|
return ve.slice(0, q).every(function(we) {
|
|
6342
6342
|
return we;
|
|
@@ -6345,7 +6345,7 @@ function op(t) {
|
|
|
6345
6345
|
if (H)
|
|
6346
6346
|
return Y = H, "break";
|
|
6347
6347
|
}, R = se; R > 0; R--) {
|
|
6348
|
-
var le =
|
|
6348
|
+
var le = y(R);
|
|
6349
6349
|
if (le === "break")
|
|
6350
6350
|
break;
|
|
6351
6351
|
}
|
|
@@ -6363,7 +6363,7 @@ var rp = {
|
|
|
6363
6363
|
}
|
|
6364
6364
|
};
|
|
6365
6365
|
function lp(t, e, a) {
|
|
6366
|
-
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = A(() => s.value || o.value), w = A(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"),
|
|
6366
|
+
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), r = Mt().proxy, l = a.multiselect, c = a.dropdown, u = ee(!1), f = ee(null), d = ee(null), h = A(() => s.value || o.value), w = A(() => i.value === "top" && d.value === "bottom" || i.value === "bottom" && d.value !== "top" ? "bottom" : "top"), b = () => {
|
|
6367
6367
|
u.value || n.value || (u.value = !0, e.emit("open", r), h.value && De(() => {
|
|
6368
6368
|
k();
|
|
6369
6369
|
}));
|
|
@@ -6430,14 +6430,14 @@ function lp(t, e, a) {
|
|
|
6430
6430
|
}), {
|
|
6431
6431
|
popper: f,
|
|
6432
6432
|
isOpen: u,
|
|
6433
|
-
open:
|
|
6433
|
+
open: b,
|
|
6434
6434
|
close: g,
|
|
6435
6435
|
placement: w,
|
|
6436
6436
|
updatePopper: k
|
|
6437
6437
|
};
|
|
6438
6438
|
}
|
|
6439
6439
|
function up(t, e, a) {
|
|
6440
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1),
|
|
6440
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, r = a.open, l = a.close, c = a.clearSearch, u = a.isOpen, f = a.wrapper, d = a.tags, h = ee(!1), w = ee(!1), b = A(() => n.value || s.value ? -1 : 0), g = () => {
|
|
6441
6441
|
n.value && i.value.blur(), f.value.blur();
|
|
6442
6442
|
}, k = () => {
|
|
6443
6443
|
n.value && !s.value && i.value.focus();
|
|
@@ -6449,7 +6449,7 @@ function up(t, e, a) {
|
|
|
6449
6449
|
}, 1);
|
|
6450
6450
|
};
|
|
6451
6451
|
return {
|
|
6452
|
-
tabindex:
|
|
6452
|
+
tabindex: b,
|
|
6453
6453
|
isActive: h,
|
|
6454
6454
|
mouseClicked: w,
|
|
6455
6455
|
blur: g,
|
|
@@ -6487,25 +6487,25 @@ function cp(t, e, a) {
|
|
|
6487
6487
|
createTag: f,
|
|
6488
6488
|
createOption: d,
|
|
6489
6489
|
reverse: h
|
|
6490
|
-
} = Ae(t), w = Mt().proxy,
|
|
6490
|
+
} = Ae(t), w = Mt().proxy, b = a.iv, g = a.update, k = a.deselect, _ = a.search, m = a.setPointer, D = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, Z = a.wrapper, Y = a.tags, E = a.isOpen, K = a.open, N = a.blur, W = a.fo, oe = A(() => f.value || d.value || !1), ne = A(() => s.value !== void 0 ? s.value : u.value !== void 0 ? u.value : ["enter"]), O = () => {
|
|
6491
6491
|
n.value === "tags" && !r.value && oe.value && i.value && !c.value && m(W.value[W.value.map((V) => V[l.value]).indexOf(_.value)]);
|
|
6492
6492
|
};
|
|
6493
6493
|
return {
|
|
6494
6494
|
handleKeydown: (V) => {
|
|
6495
6495
|
e.emit("keydown", V, w);
|
|
6496
|
-
let se,
|
|
6497
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value),
|
|
6496
|
+
let se, y;
|
|
6497
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && n.value === "tags" && (se = [...U.value.querySelectorAll("[data-tags] > *")].filter((R) => R !== Y.value), y = se.findIndex((R) => R === document.activeElement)), V.key) {
|
|
6498
6498
|
case "Backspace":
|
|
6499
|
-
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 ||
|
|
6499
|
+
if (n.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || b.value.length === 0)
|
|
6500
6500
|
return;
|
|
6501
|
-
let R =
|
|
6501
|
+
let R = b.value.filter((le) => !le.disabled && le.remove !== !1);
|
|
6502
6502
|
R.length && k(R[R.length - 1]);
|
|
6503
6503
|
break;
|
|
6504
6504
|
case "Enter":
|
|
6505
6505
|
if (V.preventDefault(), V.keyCode === 229)
|
|
6506
6506
|
return;
|
|
6507
|
-
if (
|
|
6508
|
-
g([...
|
|
6507
|
+
if (y !== -1 && y !== void 0) {
|
|
6508
|
+
g([...b.value].filter((le, ie) => ie !== y)), y === se.length - 1 && (se.length - 1 ? se[se.length - 2].focus() : i.value ? Y.value.querySelector("input").focus() : Z.value.focus());
|
|
6509
6509
|
return;
|
|
6510
6510
|
}
|
|
6511
6511
|
if (ne.value.indexOf("enter") === -1 && oe.value)
|
|
@@ -6544,14 +6544,14 @@ function cp(t, e, a) {
|
|
|
6544
6544
|
E.value || K(), L();
|
|
6545
6545
|
break;
|
|
6546
6546
|
case "ArrowLeft":
|
|
6547
|
-
if (i.value && Y.value && Y.value.querySelector("input").selectionStart || V.shiftKey || n.value !== "tags" || !
|
|
6547
|
+
if (i.value && Y.value && Y.value.querySelector("input").selectionStart || V.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6548
6548
|
return;
|
|
6549
|
-
V.preventDefault(),
|
|
6549
|
+
V.preventDefault(), y === -1 ? se[se.length - 1].focus() : y > 0 && se[y - 1].focus();
|
|
6550
6550
|
break;
|
|
6551
6551
|
case "ArrowRight":
|
|
6552
|
-
if (
|
|
6552
|
+
if (y === -1 || V.shiftKey || n.value !== "tags" || !b.value || !b.value.length)
|
|
6553
6553
|
return;
|
|
6554
|
-
V.preventDefault(), se.length >
|
|
6554
|
+
V.preventDefault(), se.length > y + 1 ? se[y + 1].focus() : i.value ? Y.value.querySelector("input").focus() : i.value || Z.value.focus();
|
|
6555
6555
|
break;
|
|
6556
6556
|
}
|
|
6557
6557
|
},
|
|
@@ -6567,7 +6567,7 @@ function dp(t, e, a) {
|
|
|
6567
6567
|
disabled: s,
|
|
6568
6568
|
showOptions: o,
|
|
6569
6569
|
breakTags: i
|
|
6570
|
-
} = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo,
|
|
6570
|
+
} = Ae(t), r = a.isOpen, l = a.isPointed, c = a.isSelected, u = a.isDisabled, f = a.isActive, d = a.canPointGroups, h = a.resolving, w = a.fo, b = a.placement, g = A(() => ({
|
|
6571
6571
|
container: "multiselect",
|
|
6572
6572
|
containerDisabled: "is-disabled",
|
|
6573
6573
|
containerOpen: "is-open",
|
|
@@ -6627,7 +6627,7 @@ function dp(t, e, a) {
|
|
|
6627
6627
|
classList: A(() => {
|
|
6628
6628
|
const m = g.value;
|
|
6629
6629
|
return {
|
|
6630
|
-
container: [m.container].concat(s.value ? m.containerDisabled : []).concat(k.value &&
|
|
6630
|
+
container: [m.container].concat(s.value ? m.containerDisabled : []).concat(k.value && b.value === "top" ? m.containerOpenTop : []).concat(k.value && b.value !== "top" ? m.containerOpen : []).concat(f.value ? m.containerActive : []),
|
|
6631
6631
|
wrapper: m.wrapper,
|
|
6632
6632
|
spacer: m.spacer,
|
|
6633
6633
|
singleLabel: m.singleLabel,
|
|
@@ -6650,8 +6650,8 @@ function dp(t, e, a) {
|
|
|
6650
6650
|
spinner: m.spinner,
|
|
6651
6651
|
inifinite: m.inifinite,
|
|
6652
6652
|
inifiniteSpinner: m.inifiniteSpinner,
|
|
6653
|
-
dropdown: [m.dropdown].concat(
|
|
6654
|
-
options: [m.options].concat(
|
|
6653
|
+
dropdown: [m.dropdown].concat(b.value === "top" ? m.dropdownTop : []).concat(!r.value || !o.value || !k.value ? m.dropdownHidden : []),
|
|
6654
|
+
options: [m.options].concat(b.value === "top" ? m.optionsTop : []),
|
|
6655
6655
|
group: m.group,
|
|
6656
6656
|
groupLabel: (D) => {
|
|
6657
6657
|
let I = [m.groupLabel];
|
|
@@ -6675,8 +6675,8 @@ function pp(t, e, a) {
|
|
|
6675
6675
|
const {
|
|
6676
6676
|
limit: n,
|
|
6677
6677
|
infinite: s
|
|
6678
|
-
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (
|
|
6679
|
-
const { isIntersecting: g, target: k } =
|
|
6678
|
+
} = Ae(t), o = a.isOpen, i = a.offset, r = a.search, l = a.pfo, c = a.eo, u = ee(null), f = ee(null), d = A(() => i.value < l.value.length), h = (b) => {
|
|
6679
|
+
const { isIntersecting: g, target: k } = b[0];
|
|
6680
6680
|
if (g) {
|
|
6681
6681
|
const _ = k.offsetParent, m = _.scrollTop;
|
|
6682
6682
|
i.value += n.value == -1 ? 10 : n.value, De(() => {
|
|
@@ -6709,7 +6709,7 @@ function fp(t, e, a) {
|
|
|
6709
6709
|
groupLabel: l,
|
|
6710
6710
|
aria: c,
|
|
6711
6711
|
searchable: u
|
|
6712
|
-
} = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText,
|
|
6712
|
+
} = Ae(t), f = a.pointer, d = a.iv, h = a.hasSelected, w = a.multipleLabelText, b = ee(null), g = A(() => {
|
|
6713
6713
|
let N = [];
|
|
6714
6714
|
return s && s.value && N.push(s.value), N.push("assist"), N.join("-");
|
|
6715
6715
|
}), k = A(() => {
|
|
@@ -6741,7 +6741,7 @@ function fp(t, e, a) {
|
|
|
6741
6741
|
return xt(() => {
|
|
6742
6742
|
if (s && s.value && document && document.querySelector) {
|
|
6743
6743
|
let N = document.querySelector(`[for="${s.value}"]`);
|
|
6744
|
-
|
|
6744
|
+
b.value = N ? N.innerText : null;
|
|
6745
6745
|
}
|
|
6746
6746
|
}), {
|
|
6747
6747
|
arias: L,
|
|
@@ -7170,7 +7170,7 @@ const Cp = ["id", "dir"], gp = ["tabindex", "aria-controls", "aria-placeholder",
|
|
|
7170
7170
|
function Rp(t, e, a, n, s, o) {
|
|
7171
7171
|
return p(), C("div", {
|
|
7172
7172
|
ref: "multiselect",
|
|
7173
|
-
class:
|
|
7173
|
+
class: G(t.classList.container),
|
|
7174
7174
|
id: a.searchable ? void 0 : a.id,
|
|
7175
7175
|
dir: a.rtl ? "rtl" : void 0,
|
|
7176
7176
|
onFocusin: e[10] || (e[10] = (...i) => t.handleFocusIn && t.handleFocusIn(...i)),
|
|
@@ -7218,7 +7218,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7218
7218
|
"div",
|
|
7219
7219
|
{
|
|
7220
7220
|
key: 1,
|
|
7221
|
-
class:
|
|
7221
|
+
class: G(t.classList.tags),
|
|
7222
7222
|
"data-tags": ""
|
|
7223
7223
|
},
|
|
7224
7224
|
[
|
|
@@ -7231,7 +7231,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7231
7231
|
disabled: a.disabled
|
|
7232
7232
|
}, () => [
|
|
7233
7233
|
(p(), C("span", {
|
|
7234
|
-
class:
|
|
7234
|
+
class: G([
|
|
7235
7235
|
t.classList.tag,
|
|
7236
7236
|
i.disabled ? t.classList.tagDisabled : null
|
|
7237
7237
|
]),
|
|
@@ -7243,7 +7243,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7243
7243
|
v(
|
|
7244
7244
|
"span",
|
|
7245
7245
|
{
|
|
7246
|
-
class:
|
|
7246
|
+
class: G(t.classList.tagWrapper)
|
|
7247
7247
|
},
|
|
7248
7248
|
Q(t.localize(i[a.label])),
|
|
7249
7249
|
3
|
|
@@ -7251,13 +7251,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7251
7251
|
),
|
|
7252
7252
|
!a.disabled && !i.disabled ? (p(), C("span", {
|
|
7253
7253
|
key: 0,
|
|
7254
|
-
class:
|
|
7254
|
+
class: G(t.classList.tagRemove),
|
|
7255
7255
|
onClick: fe((c) => t.handleTagRemove(i, c), ["stop"])
|
|
7256
7256
|
}, [
|
|
7257
7257
|
v(
|
|
7258
7258
|
"span",
|
|
7259
7259
|
{
|
|
7260
|
-
class:
|
|
7260
|
+
class: G(t.classList.tagRemoveIcon)
|
|
7261
7261
|
},
|
|
7262
7262
|
null,
|
|
7263
7263
|
2
|
|
@@ -7272,7 +7272,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7272
7272
|
v(
|
|
7273
7273
|
"div",
|
|
7274
7274
|
{
|
|
7275
|
-
class:
|
|
7275
|
+
class: G(t.classList.tagsSearchWrapper),
|
|
7276
7276
|
ref: "tags"
|
|
7277
7277
|
},
|
|
7278
7278
|
[
|
|
@@ -7280,7 +7280,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7280
7280
|
v(
|
|
7281
7281
|
"span",
|
|
7282
7282
|
{
|
|
7283
|
-
class:
|
|
7283
|
+
class: G(t.classList.tagsSearchCopy)
|
|
7284
7284
|
},
|
|
7285
7285
|
Q(t.search),
|
|
7286
7286
|
3
|
|
@@ -7325,13 +7325,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7325
7325
|
v(
|
|
7326
7326
|
"div",
|
|
7327
7327
|
{
|
|
7328
|
-
class:
|
|
7328
|
+
class: G(t.classList.singleLabel)
|
|
7329
7329
|
},
|
|
7330
7330
|
[
|
|
7331
7331
|
v(
|
|
7332
7332
|
"span",
|
|
7333
7333
|
{
|
|
7334
|
-
class:
|
|
7334
|
+
class: G(t.classList.singleLabelText)
|
|
7335
7335
|
},
|
|
7336
7336
|
Q(t.localize(t.iv[a.label])),
|
|
7337
7337
|
3
|
|
@@ -7348,7 +7348,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7348
7348
|
values: t.iv
|
|
7349
7349
|
}, () => [
|
|
7350
7350
|
v("div", {
|
|
7351
|
-
class:
|
|
7351
|
+
class: G(t.classList.multipleLabel),
|
|
7352
7352
|
innerHTML: t.multipleLabelText
|
|
7353
7353
|
}, null, 10, $p)
|
|
7354
7354
|
]) : T("v-if", !0),
|
|
@@ -7357,7 +7357,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7357
7357
|
v(
|
|
7358
7358
|
"div",
|
|
7359
7359
|
{
|
|
7360
|
-
class:
|
|
7360
|
+
class: G(t.classList.placeholder),
|
|
7361
7361
|
"aria-hidden": "true"
|
|
7362
7362
|
},
|
|
7363
7363
|
Q(a.placeholder),
|
|
@@ -7370,7 +7370,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7370
7370
|
v(
|
|
7371
7371
|
"span",
|
|
7372
7372
|
{
|
|
7373
|
-
class:
|
|
7373
|
+
class: G(t.classList.spinner),
|
|
7374
7374
|
"aria-hidden": "true"
|
|
7375
7375
|
},
|
|
7376
7376
|
null,
|
|
@@ -7391,7 +7391,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7391
7391
|
role: "button",
|
|
7392
7392
|
"data-clear": "",
|
|
7393
7393
|
"aria-roledescription": "❎",
|
|
7394
|
-
class:
|
|
7394
|
+
class: G(t.classList.clear),
|
|
7395
7395
|
onClick: e[6] || (e[6] = (...i) => t.clear && t.clear(...i)),
|
|
7396
7396
|
onKeyup: e[7] || (e[7] = dt((...i) => t.clear && t.clear(...i), ["enter"]))
|
|
7397
7397
|
},
|
|
@@ -7399,7 +7399,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7399
7399
|
v(
|
|
7400
7400
|
"span",
|
|
7401
7401
|
{
|
|
7402
|
-
class:
|
|
7402
|
+
class: G(t.classList.clearIcon)
|
|
7403
7403
|
},
|
|
7404
7404
|
null,
|
|
7405
7405
|
2
|
|
@@ -7419,7 +7419,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7419
7419
|
v(
|
|
7420
7420
|
"span",
|
|
7421
7421
|
{
|
|
7422
|
-
class:
|
|
7422
|
+
class: G(t.classList.caret),
|
|
7423
7423
|
onClick: e[8] || (e[8] = (...i) => t.handleCaretClick && t.handleCaretClick(...i)),
|
|
7424
7424
|
"aria-hidden": "true"
|
|
7425
7425
|
},
|
|
@@ -7436,13 +7436,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7436
7436
|
}, [
|
|
7437
7437
|
v("div", {
|
|
7438
7438
|
id: `${a.id}-dropdown`,
|
|
7439
|
-
class:
|
|
7439
|
+
class: G(t.classList.dropdown),
|
|
7440
7440
|
tabindex: "-1",
|
|
7441
7441
|
ref: "dropdown"
|
|
7442
7442
|
}, [
|
|
7443
7443
|
te(t.$slots, "beforelist", { options: t.fo }),
|
|
7444
7444
|
v("ul", {
|
|
7445
|
-
class:
|
|
7445
|
+
class: G(t.classList.options),
|
|
7446
7446
|
id: t.ariaControls,
|
|
7447
7447
|
role: "listbox"
|
|
7448
7448
|
}, [
|
|
@@ -7450,7 +7450,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7450
7450
|
he,
|
|
7451
7451
|
{ key: 0 },
|
|
7452
7452
|
_e(t.fg, (i, r, l) => (p(), C("li", {
|
|
7453
|
-
class:
|
|
7453
|
+
class: G(t.classList.group),
|
|
7454
7454
|
key: l,
|
|
7455
7455
|
id: t.ariaGroupId(i),
|
|
7456
7456
|
"aria-label": t.ariaGroupLabel(t.localize(i[a.groupLabel])),
|
|
@@ -7459,7 +7459,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7459
7459
|
}, [
|
|
7460
7460
|
i.__CREATE__ ? T("v-if", !0) : (p(), C("div", {
|
|
7461
7461
|
key: 0,
|
|
7462
|
-
class:
|
|
7462
|
+
class: G(t.classList.groupLabel(i)),
|
|
7463
7463
|
"data-pointed": t.isPointed(i),
|
|
7464
7464
|
onMouseenter: (c) => t.setPointer(i, r),
|
|
7465
7465
|
onMousedown: fe((c) => t.handleGroupClick(i), ["prevent"])
|
|
@@ -7475,7 +7475,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7475
7475
|
])
|
|
7476
7476
|
], 42, Mp)),
|
|
7477
7477
|
v("ul", {
|
|
7478
|
-
class:
|
|
7478
|
+
class: G(t.classList.groupOptions),
|
|
7479
7479
|
"aria-label": t.ariaGroupLabel(t.localize(i[a.groupLabel])),
|
|
7480
7480
|
role: "group"
|
|
7481
7481
|
}, [
|
|
@@ -7483,7 +7483,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7483
7483
|
he,
|
|
7484
7484
|
null,
|
|
7485
7485
|
_e(i.__VISIBLE__, (c, u, f) => (p(), C("li", {
|
|
7486
|
-
class:
|
|
7486
|
+
class: G(t.classList.option(c, i)),
|
|
7487
7487
|
"data-pointed": t.isPointed(c),
|
|
7488
7488
|
"data-selected": t.isSelected(c) || void 0,
|
|
7489
7489
|
key: f,
|
|
@@ -7520,7 +7520,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7520
7520
|
he,
|
|
7521
7521
|
{ key: 1 },
|
|
7522
7522
|
_e(t.fo, (i, r, l) => (p(), C("li", {
|
|
7523
|
-
class:
|
|
7523
|
+
class: G(t.classList.option(i)),
|
|
7524
7524
|
"data-pointed": t.isPointed(i),
|
|
7525
7525
|
"data-selected": t.isSelected(i) || void 0,
|
|
7526
7526
|
key: l,
|
|
@@ -7552,13 +7552,13 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7552
7552
|
], 10, Sp),
|
|
7553
7553
|
t.noOptions ? te(t.$slots, "nooptions", { key: 0 }, () => [
|
|
7554
7554
|
v("div", {
|
|
7555
|
-
class:
|
|
7555
|
+
class: G(t.classList.noOptions),
|
|
7556
7556
|
innerHTML: t.localize(a.noOptionsText)
|
|
7557
7557
|
}, null, 10, Lp)
|
|
7558
7558
|
]) : T("v-if", !0),
|
|
7559
7559
|
t.noResults ? te(t.$slots, "noresults", { key: 1 }, () => [
|
|
7560
7560
|
v("div", {
|
|
7561
|
-
class:
|
|
7561
|
+
class: G(t.classList.noResults),
|
|
7562
7562
|
innerHTML: t.localize(a.noResultsText)
|
|
7563
7563
|
}, null, 10, Hp)
|
|
7564
7564
|
]) : T("v-if", !0),
|
|
@@ -7566,7 +7566,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7566
7566
|
"div",
|
|
7567
7567
|
{
|
|
7568
7568
|
key: 2,
|
|
7569
|
-
class:
|
|
7569
|
+
class: G(t.classList.inifinite),
|
|
7570
7570
|
ref: "infiniteLoader"
|
|
7571
7571
|
},
|
|
7572
7572
|
[
|
|
@@ -7574,7 +7574,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7574
7574
|
v(
|
|
7575
7575
|
"span",
|
|
7576
7576
|
{
|
|
7577
|
-
class:
|
|
7577
|
+
class: G(t.classList.inifiniteSpinner)
|
|
7578
7578
|
},
|
|
7579
7579
|
null,
|
|
7580
7580
|
2
|
|
@@ -7591,7 +7591,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7591
7591
|
T(" Hacky input element to show HTML5 required warning "),
|
|
7592
7592
|
a.required ? (p(), C("input", {
|
|
7593
7593
|
key: 0,
|
|
7594
|
-
class:
|
|
7594
|
+
class: G(t.classList.fakeInput),
|
|
7595
7595
|
tabindex: "-1",
|
|
7596
7596
|
value: t.textValue,
|
|
7597
7597
|
required: ""
|
|
@@ -7625,7 +7625,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7625
7625
|
T(" Screen reader assistive text "),
|
|
7626
7626
|
a.searchable && t.hasSelected ? (p(), C("div", {
|
|
7627
7627
|
key: 2,
|
|
7628
|
-
class:
|
|
7628
|
+
class: G(t.classList.assist),
|
|
7629
7629
|
id: t.ariaAssist,
|
|
7630
7630
|
"aria-hidden": "true"
|
|
7631
7631
|
}, Q(t.ariaLabel), 11, Bp)) : T("v-if", !0),
|
|
@@ -7633,7 +7633,7 @@ function Rp(t, e, a, n, s, o) {
|
|
|
7633
7633
|
v(
|
|
7634
7634
|
"div",
|
|
7635
7635
|
{
|
|
7636
|
-
class:
|
|
7636
|
+
class: G(t.classList.spacer)
|
|
7637
7637
|
},
|
|
7638
7638
|
null,
|
|
7639
7639
|
2
|
|
@@ -7775,7 +7775,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7775
7775
|
return (f, d) => (p(), C("div", jp, [
|
|
7776
7776
|
v("ul", Fp, [
|
|
7777
7777
|
(p(!0), C(he, null, _e(f.tasks, (h) => {
|
|
7778
|
-
var w,
|
|
7778
|
+
var w, b;
|
|
7779
7779
|
return p(), C("li", {
|
|
7780
7780
|
key: h.id,
|
|
7781
7781
|
class: "ao-subtask"
|
|
@@ -7793,7 +7793,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7793
7793
|
id: h.id,
|
|
7794
7794
|
value: h.name,
|
|
7795
7795
|
readonly: !f.isEditable,
|
|
7796
|
-
class:
|
|
7796
|
+
class: G(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": h.isDone }]),
|
|
7797
7797
|
type: "text",
|
|
7798
7798
|
onChange: (g) => i(g, h.id),
|
|
7799
7799
|
onKeyup: dt(u, ["enter"])
|
|
@@ -7801,7 +7801,7 @@ const jp = { class: "ao-tasks" }, Fp = { class: "ao-tasks__list" }, Up = ["id",
|
|
|
7801
7801
|
Fa(". "),
|
|
7802
7802
|
!f.isTemplate && f.users ? (p(), P($e, {
|
|
7803
7803
|
key: 1,
|
|
7804
|
-
value: (
|
|
7804
|
+
value: (b = h.assignee) != null && b.id ? [h.assignee.id] : [],
|
|
7805
7805
|
options: s.value,
|
|
7806
7806
|
"close-on-select": !0,
|
|
7807
7807
|
searchable: !0,
|
|
@@ -7894,7 +7894,7 @@ const qp = ["onDrop", "onDragenter", "onDragover", "onDragleave"], zp = { class:
|
|
|
7894
7894
|
u.dataTransfer && e("add", f);
|
|
7895
7895
|
}
|
|
7896
7896
|
return (u, f) => (p(), C("div", {
|
|
7897
|
-
class:
|
|
7897
|
+
class: G([
|
|
7898
7898
|
"ao-files__wrapper",
|
|
7899
7899
|
{
|
|
7900
7900
|
"ao-files__wrapper--drop-active": i.value
|
|
@@ -7980,30 +7980,30 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
7980
7980
|
emits: ["edit", "remove"],
|
|
7981
7981
|
setup(t, { emit: e }) {
|
|
7982
7982
|
const a = t, n = A(() => {
|
|
7983
|
-
const
|
|
7984
|
-
return
|
|
7983
|
+
const b = a.user;
|
|
7984
|
+
return b ? `${b == null ? void 0 : b.firstName} ${b == null ? void 0 : b.lastName}` : null;
|
|
7985
7985
|
}), s = ee(null), { isEditing: o, toggleIsEditing: i, onUpdate: r, onDiscard: l } = Es(s), c = A(() => {
|
|
7986
|
-
const
|
|
7986
|
+
const b = a.editedAt && la(a.editedAt), g = la(a.createdAt), k = /* @__PURE__ */ new Date(), _ = b ?? g;
|
|
7987
7987
|
return _ && a3(_, k);
|
|
7988
|
-
}), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((
|
|
7989
|
-
e("edit",
|
|
7988
|
+
}), u = A(() => o.value ? "textarea" : "p"), f = l(), d = r((b) => {
|
|
7989
|
+
e("edit", b);
|
|
7990
7990
|
}), h = () => {
|
|
7991
7991
|
e("remove");
|
|
7992
7992
|
}, w = ee(2);
|
|
7993
7993
|
return Di(() => {
|
|
7994
7994
|
De(() => {
|
|
7995
|
-
var
|
|
7995
|
+
var b;
|
|
7996
7996
|
if (!o.value) {
|
|
7997
|
-
const g = (
|
|
7997
|
+
const g = (b = s.value) == null ? void 0 : b.getClientRects().length;
|
|
7998
7998
|
w.value = g || 2;
|
|
7999
7999
|
}
|
|
8000
8000
|
});
|
|
8001
|
-
}), (
|
|
8001
|
+
}), (b, g) => {
|
|
8002
8002
|
var k;
|
|
8003
8003
|
return p(), C("li", nf, [
|
|
8004
8004
|
n.value ? (p(), P(Je, {
|
|
8005
8005
|
key: 0,
|
|
8006
|
-
"avatar-url": (k =
|
|
8006
|
+
"avatar-url": (k = b.user) == null ? void 0 : k.avatarUrl,
|
|
8007
8007
|
"user-name": n.value,
|
|
8008
8008
|
class: "ao-comment__avatar"
|
|
8009
8009
|
}, null, 8, ["avatar-url", "user-name"])) : T("", !0),
|
|
@@ -8014,7 +8014,7 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8014
8014
|
ref_key: "commentContent",
|
|
8015
8015
|
ref: s,
|
|
8016
8016
|
class: "ao-comment__content",
|
|
8017
|
-
value: J(o) ?
|
|
8017
|
+
value: J(o) ? b.content : null,
|
|
8018
8018
|
rows: J(o) ? w.value : null,
|
|
8019
8019
|
onKeyup: [
|
|
8020
8020
|
dt(J(f), ["esc"]),
|
|
@@ -8022,13 +8022,13 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8022
8022
|
]
|
|
8023
8023
|
}, {
|
|
8024
8024
|
default: z(() => [
|
|
8025
|
-
Fa(Q(
|
|
8025
|
+
Fa(Q(b.content), 1)
|
|
8026
8026
|
]),
|
|
8027
8027
|
_: 1
|
|
8028
8028
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
8029
8029
|
])
|
|
8030
8030
|
]),
|
|
8031
|
-
|
|
8031
|
+
b.isEditable ? (p(), C("div", lf, [
|
|
8032
8032
|
J(o) ? (p(), C(he, { key: 0 }, [
|
|
8033
8033
|
M(ue, {
|
|
8034
8034
|
"icon-name": "CloseRounded",
|
|
@@ -8047,14 +8047,14 @@ const nf = { class: "ao-comment" }, sf = { class: "ao-comment__created-at" }, of
|
|
|
8047
8047
|
}, null, 8, ["onClick"])
|
|
8048
8048
|
], 64)) : (p(), C(he, { key: 1 }, [
|
|
8049
8049
|
M(ue, {
|
|
8050
|
-
label:
|
|
8050
|
+
label: b.$t("activity.comment.delete"),
|
|
8051
8051
|
size: "sm",
|
|
8052
8052
|
variant: "ghost",
|
|
8053
8053
|
color: "neutral",
|
|
8054
8054
|
onClick: h
|
|
8055
8055
|
}, null, 8, ["label"]),
|
|
8056
8056
|
M(ue, {
|
|
8057
|
-
label:
|
|
8057
|
+
label: b.$t("activity.comment.edit"),
|
|
8058
8058
|
size: "sm",
|
|
8059
8059
|
variant: "ghost",
|
|
8060
8060
|
color: "neutral",
|
|
@@ -8149,7 +8149,7 @@ const cf = { class: "ao-comments__header" }, df = ["onSubmit"], pf = ["placehold
|
|
|
8149
8149
|
"edited-at": w.updatedAt,
|
|
8150
8150
|
"is-editable": w.author.id === f.userId,
|
|
8151
8151
|
class: "ao-comment",
|
|
8152
|
-
onEdit: (
|
|
8152
|
+
onEdit: (b) => c(w.id, b),
|
|
8153
8153
|
onRemove: () => u(w.id)
|
|
8154
8154
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
8155
8155
|
])) : T("", !0)
|
|
@@ -8222,200 +8222,200 @@ const wn = /* @__PURE__ */ x({
|
|
|
8222
8222
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "toast"],
|
|
8223
8223
|
setup(t, { emit: e }) {
|
|
8224
8224
|
const a = t, n = A(() => {
|
|
8225
|
-
var
|
|
8226
|
-
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((
|
|
8227
|
-
}), s = (
|
|
8225
|
+
var y;
|
|
8226
|
+
return a.isEditable === !0 ? !0 : a.userId && a.isEditable === "only-own" ? a.userId === ((y = a.activity.assignee) == null ? void 0 : y.id) : !1;
|
|
8227
|
+
}), s = (y) => {
|
|
8228
8228
|
e("update:activity", {
|
|
8229
8229
|
id: a.activity.id,
|
|
8230
|
-
name:
|
|
8230
|
+
name: y
|
|
8231
8231
|
});
|
|
8232
8232
|
}, o = A({
|
|
8233
8233
|
get() {
|
|
8234
8234
|
return a.activity.description ?? "";
|
|
8235
8235
|
},
|
|
8236
|
-
set(
|
|
8237
|
-
e("update:activity", { id: a.activity.id, description:
|
|
8236
|
+
set(y) {
|
|
8237
|
+
e("update:activity", { id: a.activity.id, description: y });
|
|
8238
8238
|
}
|
|
8239
8239
|
}), i = A({
|
|
8240
8240
|
get() {
|
|
8241
8241
|
return a.activity.estimation ?? 0;
|
|
8242
8242
|
},
|
|
8243
|
-
set(
|
|
8244
|
-
e("update:activity", { id: a.activity.id, estimation:
|
|
8243
|
+
set(y) {
|
|
8244
|
+
e("update:activity", { id: a.activity.id, estimation: y });
|
|
8245
8245
|
}
|
|
8246
8246
|
}), r = A({
|
|
8247
8247
|
get() {
|
|
8248
8248
|
return a.activity.important ?? !1;
|
|
8249
8249
|
},
|
|
8250
|
-
set(
|
|
8251
|
-
e("update:activity", { id: a.activity.id, important:
|
|
8250
|
+
set(y) {
|
|
8251
|
+
e("update:activity", { id: a.activity.id, important: y });
|
|
8252
8252
|
}
|
|
8253
8253
|
}), l = A({
|
|
8254
8254
|
get() {
|
|
8255
8255
|
return a.activity.private ?? !1;
|
|
8256
8256
|
},
|
|
8257
|
-
set(
|
|
8258
|
-
e("update:activity", { id: a.activity.id, private:
|
|
8257
|
+
set(y) {
|
|
8258
|
+
e("update:activity", { id: a.activity.id, private: y });
|
|
8259
8259
|
}
|
|
8260
8260
|
}), c = A({
|
|
8261
8261
|
get() {
|
|
8262
8262
|
return a.activity.deadline;
|
|
8263
8263
|
},
|
|
8264
|
-
set(
|
|
8265
|
-
e("update:activity", { id: a.activity.id, deadline:
|
|
8264
|
+
set(y) {
|
|
8265
|
+
e("update:activity", { id: a.activity.id, deadline: y });
|
|
8266
8266
|
}
|
|
8267
8267
|
}), u = A(() => {
|
|
8268
|
-
var
|
|
8269
|
-
return (
|
|
8268
|
+
var y;
|
|
8269
|
+
return (y = a.activityTypes) == null ? void 0 : y.map((R) => ({
|
|
8270
8270
|
label: R.name,
|
|
8271
8271
|
value: R.id
|
|
8272
8272
|
}));
|
|
8273
8273
|
}), f = A({
|
|
8274
8274
|
get() {
|
|
8275
|
-
var
|
|
8276
|
-
return (
|
|
8275
|
+
var y;
|
|
8276
|
+
return (y = a.activity.type) == null ? void 0 : y.id;
|
|
8277
8277
|
},
|
|
8278
|
-
set(
|
|
8279
|
-
e("update:activity", { id: a.activity.id, typeId:
|
|
8278
|
+
set(y) {
|
|
8279
|
+
e("update:activity", { id: a.activity.id, typeId: y });
|
|
8280
8280
|
}
|
|
8281
|
-
}), d = A(() => a.templateActivities.filter((
|
|
8282
|
-
label:
|
|
8283
|
-
value:
|
|
8281
|
+
}), d = A(() => a.templateActivities.filter((y) => y.id !== a.activity.id).map((y) => ({
|
|
8282
|
+
label: y.name,
|
|
8283
|
+
value: y.id
|
|
8284
8284
|
}))), h = A({
|
|
8285
8285
|
get() {
|
|
8286
|
-
var
|
|
8287
|
-
return (
|
|
8286
|
+
var y;
|
|
8287
|
+
return (y = a.activity.dependingOn) == null ? void 0 : y.map((R) => R.id);
|
|
8288
8288
|
},
|
|
8289
|
-
set(
|
|
8290
|
-
|
|
8289
|
+
set(y) {
|
|
8290
|
+
y && e("update:activity", {
|
|
8291
8291
|
id: a.activity.id,
|
|
8292
|
-
dependingOn:
|
|
8292
|
+
dependingOn: y
|
|
8293
8293
|
});
|
|
8294
8294
|
}
|
|
8295
|
-
}), w = A(() => d.value.map((
|
|
8295
|
+
}), w = A(() => d.value.map((y) => {
|
|
8296
8296
|
var R;
|
|
8297
8297
|
return {
|
|
8298
|
-
...
|
|
8299
|
-
disabled: (R = a.activity.blocking) == null ? void 0 : R.some((le) => le.id ===
|
|
8298
|
+
...y,
|
|
8299
|
+
disabled: (R = a.activity.blocking) == null ? void 0 : R.some((le) => le.id === y.value)
|
|
8300
8300
|
};
|
|
8301
|
-
})),
|
|
8301
|
+
})), b = A({
|
|
8302
8302
|
get() {
|
|
8303
|
-
var
|
|
8304
|
-
return (
|
|
8303
|
+
var y;
|
|
8304
|
+
return (y = a.activity.blocking) == null ? void 0 : y.map((R) => R.id);
|
|
8305
8305
|
},
|
|
8306
|
-
set(
|
|
8307
|
-
|
|
8306
|
+
set(y) {
|
|
8307
|
+
y && e("update:activity", {
|
|
8308
8308
|
id: a.activity.id,
|
|
8309
|
-
blocking:
|
|
8309
|
+
blocking: y
|
|
8310
8310
|
});
|
|
8311
8311
|
}
|
|
8312
|
-
}), g = A(() => d.value.map((
|
|
8312
|
+
}), g = A(() => d.value.map((y) => {
|
|
8313
8313
|
var R;
|
|
8314
8314
|
return {
|
|
8315
|
-
...
|
|
8315
|
+
...y,
|
|
8316
8316
|
disabled: (R = a.activity.dependingOn) == null ? void 0 : R.some(
|
|
8317
|
-
(le) => le.id ===
|
|
8317
|
+
(le) => le.id === y.value
|
|
8318
8318
|
)
|
|
8319
8319
|
};
|
|
8320
|
-
})), k = (
|
|
8321
|
-
e("addSubtask",
|
|
8322
|
-
}, _ = (
|
|
8323
|
-
e("updateSubtask",
|
|
8324
|
-
}, m = (
|
|
8325
|
-
e("deleteSubtask",
|
|
8320
|
+
})), k = (y) => {
|
|
8321
|
+
e("addSubtask", y);
|
|
8322
|
+
}, _ = (y) => {
|
|
8323
|
+
e("updateSubtask", y);
|
|
8324
|
+
}, m = (y) => {
|
|
8325
|
+
e("deleteSubtask", y);
|
|
8326
8326
|
};
|
|
8327
8327
|
function D() {
|
|
8328
8328
|
a.userId ? U.value = [a.userId] : console.error("Failed assigning to self: userId is missing");
|
|
8329
8329
|
}
|
|
8330
|
-
function I(
|
|
8331
|
-
U.value = [
|
|
8330
|
+
function I(y) {
|
|
8331
|
+
U.value = [y];
|
|
8332
8332
|
}
|
|
8333
8333
|
const L = A(() => {
|
|
8334
|
-
var
|
|
8335
|
-
return ((
|
|
8334
|
+
var y;
|
|
8335
|
+
return ((y = a.users) == null ? void 0 : y.map((R) => ({
|
|
8336
8336
|
label: `${R.firstName} ${R.lastName}`,
|
|
8337
8337
|
value: R.id,
|
|
8338
8338
|
avatar: R.avatarUrl
|
|
8339
8339
|
}))) || [];
|
|
8340
8340
|
}), U = A({
|
|
8341
8341
|
get() {
|
|
8342
|
-
var
|
|
8343
|
-
return (
|
|
8342
|
+
var y, R;
|
|
8343
|
+
return (y = a.activity.assignee) != null && y.id ? [(R = a.activity.assignee) == null ? void 0 : R.id] : [];
|
|
8344
8344
|
},
|
|
8345
|
-
set(
|
|
8345
|
+
set(y) {
|
|
8346
8346
|
e("update:activity", {
|
|
8347
8347
|
id: a.activity.id,
|
|
8348
|
-
assigneeId:
|
|
8348
|
+
assigneeId: y[0] ?? null
|
|
8349
8349
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
8350
8350
|
});
|
|
8351
8351
|
}
|
|
8352
|
-
}), Z = (
|
|
8352
|
+
}), Z = (y) => {
|
|
8353
8353
|
e("addFiles", {
|
|
8354
8354
|
activityId: a.activity.id,
|
|
8355
|
-
files:
|
|
8355
|
+
files: y
|
|
8356
8356
|
});
|
|
8357
|
-
}, Y = (
|
|
8357
|
+
}, Y = (y) => {
|
|
8358
8358
|
e("removeFile", {
|
|
8359
8359
|
activityId: a.activity.id,
|
|
8360
|
-
file:
|
|
8360
|
+
file: y
|
|
8361
8361
|
});
|
|
8362
|
-
}, E = A(() => a.projects.map((
|
|
8363
|
-
value:
|
|
8364
|
-
label:
|
|
8362
|
+
}, E = A(() => a.projects.map((y) => ({
|
|
8363
|
+
value: y.id,
|
|
8364
|
+
label: y.name
|
|
8365
8365
|
}))), K = A(() => {
|
|
8366
8366
|
var R, le, ie;
|
|
8367
|
-
const
|
|
8367
|
+
const y = (ie = (le = (R = a.activity) == null ? void 0 : R.project) == null ? void 0 : le.phases) == null ? void 0 : ie.reduce(
|
|
8368
8368
|
(q, H) => [...q, ...H.milestones],
|
|
8369
8369
|
[]
|
|
8370
8370
|
);
|
|
8371
|
-
return
|
|
8371
|
+
return y == null ? void 0 : y.map((q) => ({
|
|
8372
8372
|
value: q.id,
|
|
8373
8373
|
label: q.name
|
|
8374
8374
|
}));
|
|
8375
|
-
}), N = (
|
|
8375
|
+
}), N = (y) => {
|
|
8376
8376
|
a.activity && e("update:activity", {
|
|
8377
8377
|
id: a.activity.id,
|
|
8378
|
-
projectId:
|
|
8378
|
+
projectId: y
|
|
8379
8379
|
});
|
|
8380
|
-
}, W = (
|
|
8380
|
+
}, W = (y) => {
|
|
8381
8381
|
a.activity && e("update:activity", {
|
|
8382
8382
|
id: a.activity.id,
|
|
8383
|
-
milestoneId:
|
|
8383
|
+
milestoneId: y
|
|
8384
8384
|
});
|
|
8385
8385
|
}, oe = A(() => {
|
|
8386
|
-
var
|
|
8387
|
-
return (
|
|
8386
|
+
var y;
|
|
8387
|
+
return (y = a.statuses) == null ? void 0 : y.map((R) => ({
|
|
8388
8388
|
value: R.id,
|
|
8389
8389
|
label: R.name
|
|
8390
8390
|
}));
|
|
8391
|
-
}), ne = (
|
|
8391
|
+
}), ne = (y) => {
|
|
8392
8392
|
e("update:activity", {
|
|
8393
8393
|
id: a.activity.id,
|
|
8394
|
-
statusId:
|
|
8394
|
+
statusId: y
|
|
8395
8395
|
});
|
|
8396
|
-
}, O = (
|
|
8396
|
+
}, O = (y) => {
|
|
8397
8397
|
e("addComment", {
|
|
8398
|
-
...
|
|
8398
|
+
...y,
|
|
8399
8399
|
activityId: a.activity.id
|
|
8400
8400
|
});
|
|
8401
|
-
}, S = (
|
|
8402
|
-
e("updateComment",
|
|
8403
|
-
}, F = (
|
|
8404
|
-
e("removeComment",
|
|
8401
|
+
}, S = (y) => {
|
|
8402
|
+
e("updateComment", y);
|
|
8403
|
+
}, F = (y) => {
|
|
8404
|
+
e("removeComment", y);
|
|
8405
8405
|
}, V = A(() => {
|
|
8406
|
-
var
|
|
8407
|
-
return ((
|
|
8406
|
+
var y, R;
|
|
8407
|
+
return ((y = a.activity.createdBy) == null ? void 0 : y.firstName) && ((R = a.activity.createdBy) == null ? void 0 : R.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8408
8408
|
});
|
|
8409
8409
|
function se() {
|
|
8410
|
-
const
|
|
8410
|
+
const y = window.location.origin, R = a.activity.slug, le = `${y}/activity-feed/slug/${R}`;
|
|
8411
8411
|
navigator.clipboard.writeText(le).then(() => {
|
|
8412
8412
|
console.log(`Link copied to clipboard: ${le}`), e("toast", "Link copied to clipboard!", "success");
|
|
8413
8413
|
}).catch(() => {
|
|
8414
8414
|
console.log("Failed to copy link"), e("toast", "Failed to copy link.", "error");
|
|
8415
8415
|
});
|
|
8416
8416
|
}
|
|
8417
|
-
return (
|
|
8418
|
-
onClose: R[10] || (R[10] = (le) =>
|
|
8417
|
+
return (y, R) => (p(), P(In, {
|
|
8418
|
+
onClose: R[10] || (R[10] = (le) => y.$emit("close"))
|
|
8419
8419
|
}, {
|
|
8420
8420
|
default: z(() => {
|
|
8421
8421
|
var le, ie, q;
|
|
@@ -8423,28 +8423,28 @@ const wn = /* @__PURE__ */ x({
|
|
|
8423
8423
|
v("div", mf, [
|
|
8424
8424
|
v("div", Cf, [
|
|
8425
8425
|
v("div", gf, [
|
|
8426
|
-
|
|
8426
|
+
y.activity.slug ? (p(), P(qa, {
|
|
8427
8427
|
key: 0,
|
|
8428
|
-
label:
|
|
8428
|
+
label: y.activity.slug,
|
|
8429
8429
|
clickable: !0,
|
|
8430
8430
|
variant: "solid",
|
|
8431
8431
|
color: "primary",
|
|
8432
8432
|
class: "ao-activity__ao-tag",
|
|
8433
8433
|
onClick: se
|
|
8434
8434
|
}, null, 8, ["label"])) : T("", !0),
|
|
8435
|
-
|
|
8435
|
+
y.breadcrumbs ? (p(), C("div", _f, Q(y.breadcrumbs), 1)) : T("", !0),
|
|
8436
8436
|
M(ye, {
|
|
8437
|
-
title:
|
|
8437
|
+
title: y.activity.name || "",
|
|
8438
8438
|
level: 4,
|
|
8439
8439
|
"is-editable": n.value,
|
|
8440
8440
|
"onUpdate:title": s
|
|
8441
8441
|
}, null, 8, ["title", "is-editable"]),
|
|
8442
8442
|
v("div", yf, [
|
|
8443
8443
|
E.value ? (p(), C("label", bf, [
|
|
8444
|
-
v("span", wf, Q(
|
|
8444
|
+
v("span", wf, Q(y.$t("activity.project.label")), 1),
|
|
8445
8445
|
M($e, {
|
|
8446
8446
|
options: E.value,
|
|
8447
|
-
value: (le =
|
|
8447
|
+
value: (le = y.activity.project) == null ? void 0 : le.id,
|
|
8448
8448
|
searchable: !0,
|
|
8449
8449
|
disabled: !n.value,
|
|
8450
8450
|
caret: n.value,
|
|
@@ -8452,10 +8452,10 @@ const wn = /* @__PURE__ */ x({
|
|
|
8452
8452
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8453
8453
|
])) : T("", !0),
|
|
8454
8454
|
K.value ? (p(), C("label", $f, [
|
|
8455
|
-
v("span", kf, Q(
|
|
8455
|
+
v("span", kf, Q(y.$t("activity.milestone.label")), 1),
|
|
8456
8456
|
M($e, {
|
|
8457
8457
|
options: K.value,
|
|
8458
|
-
value: (ie =
|
|
8458
|
+
value: (ie = y.activity.milestone) == null ? void 0 : ie.id,
|
|
8459
8459
|
searchable: !0,
|
|
8460
8460
|
disabled: !n.value,
|
|
8461
8461
|
caret: n.value,
|
|
@@ -8463,20 +8463,20 @@ const wn = /* @__PURE__ */ x({
|
|
|
8463
8463
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8464
8464
|
])) : T("", !0)
|
|
8465
8465
|
]),
|
|
8466
|
-
te(
|
|
8466
|
+
te(y.$slots, "header")
|
|
8467
8467
|
]),
|
|
8468
8468
|
v("div", Sf, [
|
|
8469
8469
|
v("fieldset", Af, [
|
|
8470
8470
|
v("div", Mf, [
|
|
8471
8471
|
M(af, {
|
|
8472
|
-
attachments:
|
|
8473
|
-
"is-editable":
|
|
8472
|
+
attachments: y.activity.attachments,
|
|
8473
|
+
"is-editable": y.attachmentEnabled && n.value && y.isTemplate !== !0 && !!y.userId,
|
|
8474
8474
|
onAdd: Z,
|
|
8475
8475
|
onRemove: Y
|
|
8476
8476
|
}, {
|
|
8477
8477
|
default: z(() => [
|
|
8478
8478
|
v("label", Tf, [
|
|
8479
|
-
v("span", Of, Q(
|
|
8479
|
+
v("span", Of, Q(y.$t("activity.description.label")), 1),
|
|
8480
8480
|
Ke(v("textarea", {
|
|
8481
8481
|
"onUpdate:modelValue": R[0] || (R[0] = (H) => o.value = H),
|
|
8482
8482
|
readonly: !n.value,
|
|
@@ -8500,7 +8500,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8500
8500
|
]),
|
|
8501
8501
|
v("div", If, [
|
|
8502
8502
|
v("label", Lf, [
|
|
8503
|
-
v("span", Hf, Q(
|
|
8503
|
+
v("span", Hf, Q(y.$t("activity.estimation.label")), 1),
|
|
8504
8504
|
Ke(v("input", {
|
|
8505
8505
|
"onUpdate:modelValue": R[1] || (R[1] = (H) => i.value = H),
|
|
8506
8506
|
readonly: !n.value,
|
|
@@ -8526,36 +8526,36 @@ const wn = /* @__PURE__ */ x({
|
|
|
8526
8526
|
M(pe, { name: "SelectCheckBox" }),
|
|
8527
8527
|
M(ye, {
|
|
8528
8528
|
level: 4,
|
|
8529
|
-
title:
|
|
8529
|
+
title: y.$t("activity.tasks.title")
|
|
8530
8530
|
}, null, 8, ["title"])
|
|
8531
8531
|
]),
|
|
8532
8532
|
v("div", Bf, [
|
|
8533
8533
|
M(Wp, {
|
|
8534
8534
|
class: "ao-activity-details__tasks ao-field__row",
|
|
8535
|
-
tasks:
|
|
8536
|
-
"activity-id":
|
|
8537
|
-
users:
|
|
8538
|
-
"is-checkable":
|
|
8535
|
+
tasks: y.activity.tasks || [],
|
|
8536
|
+
"activity-id": y.activity.id,
|
|
8537
|
+
users: y.users,
|
|
8538
|
+
"is-checkable": y.isTaskCheckable,
|
|
8539
8539
|
"is-editable": n.value,
|
|
8540
|
-
"is-template":
|
|
8540
|
+
"is-template": y.isTemplate,
|
|
8541
8541
|
onAdd: k,
|
|
8542
8542
|
onUpdate: _,
|
|
8543
8543
|
onDelete: m
|
|
8544
8544
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8545
8545
|
])
|
|
8546
8546
|
]),
|
|
8547
|
-
|
|
8547
|
+
y.isTemplate !== !0 && y.userId ? (p(), C("div", Rf, [
|
|
8548
8548
|
v("div", Nf, [
|
|
8549
8549
|
M(pe, { name: "ChatOutline" }),
|
|
8550
8550
|
M(ye, {
|
|
8551
8551
|
level: 4,
|
|
8552
|
-
title:
|
|
8552
|
+
title: y.$t("activity.comments.title")
|
|
8553
8553
|
}, null, 8, ["title"])
|
|
8554
8554
|
]),
|
|
8555
8555
|
M(hf, {
|
|
8556
|
-
comments:
|
|
8557
|
-
users:
|
|
8558
|
-
"user-id":
|
|
8556
|
+
comments: y.activity.comments,
|
|
8557
|
+
users: y.users,
|
|
8558
|
+
"user-id": y.userId,
|
|
8559
8559
|
onCreateComment: O,
|
|
8560
8560
|
onUpdateComment: S,
|
|
8561
8561
|
onRemoveComment: F
|
|
@@ -8567,16 +8567,16 @@ const wn = /* @__PURE__ */ x({
|
|
|
8567
8567
|
v("div", Ff, [
|
|
8568
8568
|
M(pe, {
|
|
8569
8569
|
name: "CloseRounded",
|
|
8570
|
-
onClick: R[2] || (R[2] = (H) =>
|
|
8570
|
+
onClick: R[2] || (R[2] = (H) => y.$emit("close"))
|
|
8571
8571
|
})
|
|
8572
8572
|
]),
|
|
8573
8573
|
oe.value ? (p(), C("div", Uf, [
|
|
8574
8574
|
v("label", Zf, [
|
|
8575
|
-
v("span", Wf, Q(
|
|
8575
|
+
v("span", Wf, Q(y.$t("activity.status.label")), 1),
|
|
8576
8576
|
M($e, {
|
|
8577
8577
|
class: "ao-activity-details__multiselect",
|
|
8578
8578
|
options: oe.value,
|
|
8579
|
-
value: (q =
|
|
8579
|
+
value: (q = y.activity.status) == null ? void 0 : q.id,
|
|
8580
8580
|
"can-clear": !1,
|
|
8581
8581
|
"can-deselect": !1,
|
|
8582
8582
|
disabled: !n.value,
|
|
@@ -8588,9 +8588,9 @@ const wn = /* @__PURE__ */ x({
|
|
|
8588
8588
|
v("div", qf, [
|
|
8589
8589
|
v("div", zf, [
|
|
8590
8590
|
v("div", xf, [
|
|
8591
|
-
v("span", Yf, Q(
|
|
8591
|
+
v("span", Yf, Q(y.$t("activity.assignee.label")), 1),
|
|
8592
8592
|
M(ue, {
|
|
8593
|
-
label:
|
|
8593
|
+
label: y.$t("activity.assignee.toMe"),
|
|
8594
8594
|
type: "button",
|
|
8595
8595
|
color: "primary",
|
|
8596
8596
|
variant: "solid",
|
|
@@ -8605,7 +8605,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8605
8605
|
options: L.value,
|
|
8606
8606
|
"close-on-select": !0,
|
|
8607
8607
|
searchable: !0,
|
|
8608
|
-
placeholder:
|
|
8608
|
+
placeholder: y.$t("activity.filters.assignee.placeholder"),
|
|
8609
8609
|
mode: "tags",
|
|
8610
8610
|
disabled: !n.value,
|
|
8611
8611
|
caret: n.value,
|
|
@@ -8613,13 +8613,13 @@ const wn = /* @__PURE__ */ x({
|
|
|
8613
8613
|
}, {
|
|
8614
8614
|
tag: z(({
|
|
8615
8615
|
option: H,
|
|
8616
|
-
handleTagRemove:
|
|
8616
|
+
handleTagRemove: X
|
|
8617
8617
|
}) => [
|
|
8618
8618
|
M(Je, {
|
|
8619
8619
|
"user-name": H.label,
|
|
8620
8620
|
"avatar-url": H.avatar,
|
|
8621
8621
|
"is-closable": !0,
|
|
8622
|
-
onClose: (ve) =>
|
|
8622
|
+
onClose: (ve) => X(H, ve)
|
|
8623
8623
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
8624
8624
|
]),
|
|
8625
8625
|
_: 1
|
|
@@ -8627,9 +8627,9 @@ const wn = /* @__PURE__ */ x({
|
|
|
8627
8627
|
])
|
|
8628
8628
|
]),
|
|
8629
8629
|
v("div", Kf, [
|
|
8630
|
-
|
|
8630
|
+
y.isTemplate !== !0 && y.userId ? (p(), C("div", Gf, [
|
|
8631
8631
|
v("label", Xf, [
|
|
8632
|
-
v("span", Qf, Q(
|
|
8632
|
+
v("span", Qf, Q(y.$t("activity.deadline.label")), 1),
|
|
8633
8633
|
Ke(v("input", {
|
|
8634
8634
|
"onUpdate:modelValue": R[4] || (R[4] = (H) => c.value = H),
|
|
8635
8635
|
readonly: !n.value,
|
|
@@ -8656,20 +8656,20 @@ const wn = /* @__PURE__ */ x({
|
|
|
8656
8656
|
mode: "single",
|
|
8657
8657
|
searchable: !0,
|
|
8658
8658
|
options: u.value,
|
|
8659
|
-
placeholder:
|
|
8659
|
+
placeholder: y.$t("activity.filters.type.placeholder"),
|
|
8660
8660
|
disabled: !n.value,
|
|
8661
8661
|
caret: n.value
|
|
8662
8662
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
8663
8663
|
])
|
|
8664
8664
|
])) : T("", !0),
|
|
8665
|
-
te(
|
|
8665
|
+
te(y.$slots, "default", { activity: y.activity })
|
|
8666
8666
|
]),
|
|
8667
8667
|
v("div", nv, [
|
|
8668
8668
|
M(wn, {
|
|
8669
8669
|
modelValue: r.value,
|
|
8670
8670
|
"onUpdate:modelValue": R[6] || (R[6] = (H) => r.value = H),
|
|
8671
8671
|
modelModifiers: { lazy: !0 },
|
|
8672
|
-
label:
|
|
8672
|
+
label: y.$t("activity.important.label"),
|
|
8673
8673
|
disabled: !n.value,
|
|
8674
8674
|
variant: "ghost",
|
|
8675
8675
|
"icon-name": "FlagRounded",
|
|
@@ -8679,12 +8679,12 @@ const wn = /* @__PURE__ */ x({
|
|
|
8679
8679
|
size: "sm"
|
|
8680
8680
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
8681
8681
|
]),
|
|
8682
|
-
|
|
8682
|
+
y.isTemplate !== !0 && y.activity.createdBy.id === y.userId ? (p(), C("div", sv, [
|
|
8683
8683
|
M(wn, {
|
|
8684
8684
|
modelValue: l.value,
|
|
8685
8685
|
"onUpdate:modelValue": R[7] || (R[7] = (H) => l.value = H),
|
|
8686
8686
|
modelModifiers: { lazy: !0 },
|
|
8687
|
-
label:
|
|
8687
|
+
label: y.$t("activity.private.label"),
|
|
8688
8688
|
disabled: !n.value,
|
|
8689
8689
|
variant: "ghost",
|
|
8690
8690
|
"icon-name": "Lock",
|
|
@@ -8698,13 +8698,13 @@ const wn = /* @__PURE__ */ x({
|
|
|
8698
8698
|
M(pe, { name: "FlowsheetOutlineRounded" }),
|
|
8699
8699
|
M(ye, {
|
|
8700
8700
|
level: 4,
|
|
8701
|
-
title:
|
|
8701
|
+
title: y.$t("activity.dependencies.title")
|
|
8702
8702
|
}, null, 8, ["title"])
|
|
8703
8703
|
]),
|
|
8704
8704
|
v("div", rv, [
|
|
8705
8705
|
v("div", lv, [
|
|
8706
8706
|
v("label", uv, [
|
|
8707
|
-
v("span", cv, Q(
|
|
8707
|
+
v("span", cv, Q(y.$t("activity.dependingOn.label")), 1),
|
|
8708
8708
|
M($e, {
|
|
8709
8709
|
modelValue: h.value,
|
|
8710
8710
|
"onUpdate:modelValue": R[8] || (R[8] = (H) => h.value = H),
|
|
@@ -8720,10 +8720,10 @@ const wn = /* @__PURE__ */ x({
|
|
|
8720
8720
|
]),
|
|
8721
8721
|
v("div", dv, [
|
|
8722
8722
|
v("label", pv, [
|
|
8723
|
-
v("span", fv, Q(
|
|
8723
|
+
v("span", fv, Q(y.$t("activity.blocking.label")), 1),
|
|
8724
8724
|
M($e, {
|
|
8725
|
-
modelValue:
|
|
8726
|
-
"onUpdate:modelValue": R[9] || (R[9] = (H) =>
|
|
8725
|
+
modelValue: b.value,
|
|
8726
|
+
"onUpdate:modelValue": R[9] || (R[9] = (H) => b.value = H),
|
|
8727
8727
|
class: "ao-activity-details__multiselect",
|
|
8728
8728
|
mode: "tags",
|
|
8729
8729
|
"close-on-select": !1,
|
|
@@ -8736,7 +8736,7 @@ const wn = /* @__PURE__ */ x({
|
|
|
8736
8736
|
])
|
|
8737
8737
|
])
|
|
8738
8738
|
]),
|
|
8739
|
-
|
|
8739
|
+
y.isTemplate !== !0 && V.value ? (p(), C("div", vv, [
|
|
8740
8740
|
v("div", hv, [
|
|
8741
8741
|
M(Je, {
|
|
8742
8742
|
"user-name": V.value,
|
|
@@ -8819,7 +8819,7 @@ const mv = /* @__PURE__ */ x({
|
|
|
8819
8819
|
set(k) {
|
|
8820
8820
|
e("update:rule", { ...a.rule, duration: k });
|
|
8821
8821
|
}
|
|
8822
|
-
}),
|
|
8822
|
+
}), b = A({
|
|
8823
8823
|
get() {
|
|
8824
8824
|
return a.rule.durationUnit;
|
|
8825
8825
|
},
|
|
@@ -8862,8 +8862,8 @@ const mv = /* @__PURE__ */ x({
|
|
|
8862
8862
|
]
|
|
8863
8863
|
]),
|
|
8864
8864
|
M(J(lt), {
|
|
8865
|
-
modelValue:
|
|
8866
|
-
"onUpdate:modelValue": _[5] || (_[5] = (m) =>
|
|
8865
|
+
modelValue: b.value,
|
|
8866
|
+
"onUpdate:modelValue": _[5] || (_[5] = (m) => b.value = m),
|
|
8867
8867
|
options: g.value
|
|
8868
8868
|
}, null, 8, ["modelValue", "options"]),
|
|
8869
8869
|
M(ue, {
|
|
@@ -8996,8 +8996,8 @@ const yv = {
|
|
|
8996
8996
|
const l = A(() => {
|
|
8997
8997
|
var S, F;
|
|
8998
8998
|
return ((F = (S = s.value) == null ? void 0 : S.phases) == null ? void 0 : F.reduce((V, se) => {
|
|
8999
|
-
const
|
|
9000
|
-
return [...V, ...
|
|
8999
|
+
const y = se.milestones || [];
|
|
9000
|
+
return [...V, ...y];
|
|
9001
9001
|
}, [])) || [];
|
|
9002
9002
|
}), c = A(() => {
|
|
9003
9003
|
var S, F;
|
|
@@ -9047,7 +9047,7 @@ const yv = {
|
|
|
9047
9047
|
id: S
|
|
9048
9048
|
}
|
|
9049
9049
|
});
|
|
9050
|
-
},
|
|
9050
|
+
}, b = (S, F) => {
|
|
9051
9051
|
e("updateItem", {
|
|
9052
9052
|
templateId: a.templateId,
|
|
9053
9053
|
id: S,
|
|
@@ -9175,7 +9175,7 @@ const yv = {
|
|
|
9175
9175
|
e("removeFile", S);
|
|
9176
9176
|
};
|
|
9177
9177
|
return (S, F) => {
|
|
9178
|
-
var V, se,
|
|
9178
|
+
var V, se, y, R, le, ie;
|
|
9179
9179
|
return s.value ? (p(), C("div", yv, [
|
|
9180
9180
|
M(Ga, {
|
|
9181
9181
|
"can-go-back": !0,
|
|
@@ -9219,11 +9219,11 @@ const yv = {
|
|
|
9219
9219
|
milestones: q.milestones,
|
|
9220
9220
|
"is-active": ((H = i.value) == null ? void 0 : H.id) === q.id,
|
|
9221
9221
|
"is-draggable": !0,
|
|
9222
|
-
onClick: (
|
|
9222
|
+
onClick: (X) => S.$router.push({
|
|
9223
9223
|
params: { templateId: S.templateId, phaseId: q.id }
|
|
9224
9224
|
}),
|
|
9225
|
-
"onUpdate:title": (
|
|
9226
|
-
|
|
9225
|
+
"onUpdate:title": (X) => {
|
|
9226
|
+
b(q.id, X);
|
|
9227
9227
|
},
|
|
9228
9228
|
onRemove: () => w(q.id)
|
|
9229
9229
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
@@ -9259,7 +9259,7 @@ const yv = {
|
|
|
9259
9259
|
"template-id": S.templateId,
|
|
9260
9260
|
"phase-id": (se = i.value) == null ? void 0 : se.id,
|
|
9261
9261
|
milestone: r.value,
|
|
9262
|
-
"activity-id": (
|
|
9262
|
+
"activity-id": (y = u.value) == null ? void 0 : y.id,
|
|
9263
9263
|
onAddActivity: D,
|
|
9264
9264
|
onUpdateActivity: L,
|
|
9265
9265
|
onRemoveActivity: I
|
|
@@ -9328,7 +9328,7 @@ const Tv = {
|
|
|
9328
9328
|
},
|
|
9329
9329
|
setup(t) {
|
|
9330
9330
|
return (e, a) => (p(), P(ht(e.tagName), {
|
|
9331
|
-
class:
|
|
9331
|
+
class: G([
|
|
9332
9332
|
"ao-card",
|
|
9333
9333
|
{
|
|
9334
9334
|
"ao-card--clickable": e.isClickable,
|
|
@@ -9360,12 +9360,12 @@ const qn = /* @__PURE__ */ x({
|
|
|
9360
9360
|
setup(t) {
|
|
9361
9361
|
const e = t, a = A(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
9362
9362
|
return (n, s) => (p(), C("div", {
|
|
9363
|
-
class:
|
|
9363
|
+
class: G(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
|
|
9364
9364
|
role: "meter"
|
|
9365
9365
|
}, [
|
|
9366
9366
|
(p(!0), C(he, null, _e(a.value, (o) => (p(), C("div", {
|
|
9367
9367
|
key: o,
|
|
9368
|
-
class:
|
|
9368
|
+
class: G(["ao-progress__progress"]),
|
|
9369
9369
|
style: Ua({ width: `${o * 100}%` })
|
|
9370
9370
|
}, null, 4))), 128))
|
|
9371
9371
|
], 2));
|
|
@@ -9396,7 +9396,7 @@ const Iv = { class: "ao-card-project-phase__header" }, Lv = { class: "ao-card-pr
|
|
|
9396
9396
|
const c = (u = a.milestones) == null ? void 0 : u.reduce(
|
|
9397
9397
|
(f, d) => {
|
|
9398
9398
|
var h;
|
|
9399
|
-
return f + ((h = d.activities) == null ? void 0 : h.reduce((w,
|
|
9399
|
+
return f + ((h = d.activities) == null ? void 0 : h.reduce((w, b) => w + (b.estimation || 0), 0));
|
|
9400
9400
|
},
|
|
9401
9401
|
0
|
|
9402
9402
|
);
|
|
@@ -9444,7 +9444,7 @@ const Iv = { class: "ao-card-project-phase__header" }, Lv = { class: "ao-card-pr
|
|
|
9444
9444
|
])) : T("", !0)
|
|
9445
9445
|
])) : T("", !0),
|
|
9446
9446
|
v("div", {
|
|
9447
|
-
class:
|
|
9447
|
+
class: G(["ao-card-project-phase__footer-row", l.value ? "" : "ao-card-project-phase__no_deadline"])
|
|
9448
9448
|
}, [
|
|
9449
9449
|
c.isEditable ? Ke((p(), C("input", {
|
|
9450
9450
|
key: 0,
|
|
@@ -9544,7 +9544,7 @@ const jv = { class: "ao-card-project-milestone__default" }, Fv = { class: "ao-ti
|
|
|
9544
9544
|
e("updateMilestone", { id: a.id, name: l });
|
|
9545
9545
|
};
|
|
9546
9546
|
return (l, c) => (p(), P(Wn, {
|
|
9547
|
-
class:
|
|
9547
|
+
class: G([
|
|
9548
9548
|
"ao-card-project-milestone",
|
|
9549
9549
|
{ "ao-card-project-milestone--selected": l.isSelected }
|
|
9550
9550
|
]),
|
|
@@ -9606,7 +9606,7 @@ const jv = { class: "ao-card-project-milestone__default" }, Fv = { class: "ao-ti
|
|
|
9606
9606
|
l.important ? (p(), P(pe, {
|
|
9607
9607
|
key: 0,
|
|
9608
9608
|
name: "FlagRounded",
|
|
9609
|
-
class:
|
|
9609
|
+
class: G(
|
|
9610
9610
|
l.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
|
|
9611
9611
|
),
|
|
9612
9612
|
size: "sm"
|
|
@@ -9683,7 +9683,7 @@ const Jv = {
|
|
|
9683
9683
|
return (d, h) => {
|
|
9684
9684
|
var w;
|
|
9685
9685
|
return p(), C("li", {
|
|
9686
|
-
class:
|
|
9686
|
+
class: G([
|
|
9687
9687
|
"ao-project-phase",
|
|
9688
9688
|
{ "ao-project-phase--selected": d.phase.id === ((w = d.$route.params) == null ? void 0 : w.phaseId) }
|
|
9689
9689
|
])
|
|
@@ -9715,26 +9715,26 @@ const Jv = {
|
|
|
9715
9715
|
"item-key": "id",
|
|
9716
9716
|
group: "kanban"
|
|
9717
9717
|
}, d.$attrs, { onChange: f }), {
|
|
9718
|
-
item: z(({ element:
|
|
9718
|
+
item: z(({ element: b }) => {
|
|
9719
9719
|
var g;
|
|
9720
9720
|
return [
|
|
9721
9721
|
M(Qv, {
|
|
9722
|
-
id:
|
|
9723
|
-
name:
|
|
9724
|
-
color:
|
|
9725
|
-
activities:
|
|
9726
|
-
deadline:
|
|
9722
|
+
id: b.id,
|
|
9723
|
+
name: b.name,
|
|
9724
|
+
color: b.color,
|
|
9725
|
+
activities: b.activities,
|
|
9726
|
+
deadline: b.deadline,
|
|
9727
9727
|
"is-editable": !d.readonly && d.isEditable,
|
|
9728
9728
|
"is-draggable": !d.readonly && d.isEditable,
|
|
9729
9729
|
"closed-status": d.closedStatus,
|
|
9730
|
-
"is-selected":
|
|
9731
|
-
assignee:
|
|
9732
|
-
important:
|
|
9730
|
+
"is-selected": b.id === ((g = d.$route.params) == null ? void 0 : g.milestoneId),
|
|
9731
|
+
assignee: b.assignee,
|
|
9732
|
+
important: b.important,
|
|
9733
9733
|
readonly: d.readonly,
|
|
9734
|
-
class:
|
|
9734
|
+
class: G(["ao-project-phase__milestone"]),
|
|
9735
9735
|
onClick: (k) => !d.readonly && d.$router.push({
|
|
9736
9736
|
name: J(Fe).milestone,
|
|
9737
|
-
params: { phaseId: d.phase.id, milestoneId:
|
|
9737
|
+
params: { phaseId: d.phase.id, milestoneId: b.id }
|
|
9738
9738
|
}),
|
|
9739
9739
|
onUpdateMilestone: l,
|
|
9740
9740
|
onArchiveMilestone: c
|
|
@@ -9922,7 +9922,7 @@ const C9 = { class: "toggle-wrapper" };
|
|
|
9922
9922
|
function g9(t, e, a, n, s, o) {
|
|
9923
9923
|
return p(), C("div", C9, [
|
|
9924
9924
|
v("button", {
|
|
9925
|
-
class:
|
|
9925
|
+
class: G({
|
|
9926
9926
|
button: !0,
|
|
9927
9927
|
"button--left": !0,
|
|
9928
9928
|
"button--inactive": !t.isLeft
|
|
@@ -9931,7 +9931,7 @@ function g9(t, e, a, n, s, o) {
|
|
|
9931
9931
|
onClick: e[0] || (e[0] = (...i) => t.selectLeft && t.selectLeft(...i))
|
|
9932
9932
|
}, Q(t.leftLabel), 3),
|
|
9933
9933
|
v("button", {
|
|
9934
|
-
class:
|
|
9934
|
+
class: G({
|
|
9935
9935
|
button: !0,
|
|
9936
9936
|
"button--right": !0,
|
|
9937
9937
|
"button--inactive": t.isLeft
|
|
@@ -9982,7 +9982,7 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
9982
9982
|
e("archiveActivity", E);
|
|
9983
9983
|
}, w = (E) => {
|
|
9984
9984
|
e("unarchiveActivity", E);
|
|
9985
|
-
},
|
|
9985
|
+
}, b = (E) => {
|
|
9986
9986
|
e("addSubtask", E);
|
|
9987
9987
|
}, g = (E) => {
|
|
9988
9988
|
e("updateSubtask", E);
|
|
@@ -10086,7 +10086,7 @@ const ci = /* @__PURE__ */ j(m9, [["render", g9], ["__scopeId", "data-v-cbe33527
|
|
|
10086
10086
|
"is-editable": E.isEditable,
|
|
10087
10087
|
"attachment-enabled": E.attachmentEnabled,
|
|
10088
10088
|
"onUpdate:activity": d,
|
|
10089
|
-
onAddSubtask:
|
|
10089
|
+
onAddSubtask: b,
|
|
10090
10090
|
onUpdateSubtask: g,
|
|
10091
10091
|
onDeleteSubtask: k,
|
|
10092
10092
|
onAddFiles: m,
|
|
@@ -10130,7 +10130,7 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10130
10130
|
key: 0,
|
|
10131
10131
|
class: "ao-card-feed__breadcrumbs"
|
|
10132
10132
|
}, M9 = {
|
|
10133
|
-
class: /* @__PURE__ */
|
|
10133
|
+
class: /* @__PURE__ */ G(["ao-card-feed__title-group"])
|
|
10134
10134
|
}, T9 = { class: "ao-card-feed__title-line" }, O9 = {
|
|
10135
10135
|
key: 0,
|
|
10136
10136
|
class: "ao-card-feed__slug"
|
|
@@ -10183,10 +10183,10 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10183
10183
|
});
|
|
10184
10184
|
}, i = A(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), r = A(() => {
|
|
10185
10185
|
var g;
|
|
10186
|
-
const h = a.assignee ? [a.assignee] : [];
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10186
|
+
const h = a.assignee ? [a.assignee] : [], w = ((g = a.tasks) == null ? void 0 : g.map((k) => k == null ? void 0 : k.assignee).filter((k) => k != null)) || [];
|
|
10187
|
+
return Array.from(
|
|
10188
|
+
new Map([...h, ...w].map((k) => [k.id, k])).values()
|
|
10189
|
+
);
|
|
10190
10190
|
}), l = A(() => Tn(a.deadline)), c = (h) => {
|
|
10191
10191
|
e("removeAssignee", h);
|
|
10192
10192
|
}, u = A(() => {
|
|
@@ -10197,7 +10197,7 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10197
10197
|
return (h = a.tasks) == null ? void 0 : h.filter((w) => w.isDone).length;
|
|
10198
10198
|
}), d = A(() => (f.value || 0) / (u.value || 1));
|
|
10199
10199
|
return (h, w) => (p(), P(Wn, {
|
|
10200
|
-
class:
|
|
10200
|
+
class: G(["ao-card-feed", { "ao-card-feed--closed": h.isClosed }]),
|
|
10201
10201
|
"is-clickable": !0
|
|
10202
10202
|
}, {
|
|
10203
10203
|
header: z(() => [
|
|
@@ -10257,16 +10257,17 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
10257
10257
|
v("div", I9, [
|
|
10258
10258
|
v("div", L9, [
|
|
10259
10259
|
v("ul", H9, [
|
|
10260
|
-
(p(!0), C(he, null, _e(r.value, (
|
|
10261
|
-
key:
|
|
10260
|
+
(p(!0), C(he, null, _e(r.value, (b, g) => (p(), C(he, {
|
|
10261
|
+
key: b.id
|
|
10262
10262
|
}, [
|
|
10263
|
-
|
|
10263
|
+
b ? (p(), C("li", D9, [
|
|
10264
10264
|
M(Je, {
|
|
10265
|
-
"
|
|
10266
|
-
"
|
|
10265
|
+
class: G({ "ao-avatar--sm": g > 0 }),
|
|
10266
|
+
"user-name": J(zs)(b),
|
|
10267
|
+
"avatar-url": b.avatarUrl,
|
|
10267
10268
|
"is-closable": !0,
|
|
10268
|
-
onClose: () => c(
|
|
10269
|
-
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
10269
|
+
onClose: () => c(b.id)
|
|
10270
|
+
}, null, 8, ["class", "user-name", "avatar-url", "onClose"])
|
|
10270
10271
|
])) : T("", !0)
|
|
10271
10272
|
], 64))), 128))
|
|
10272
10273
|
]),
|
|
@@ -10703,8 +10704,8 @@ var Xn = x({
|
|
|
10703
10704
|
const { clientX: e, clientY: a } = t, { top: n, left: s, width: o, height: i } = this.suckerCanvas.getBoundingClientRect(), r = e - s, l = a - n, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(r, o - 1), Math.min(l, i - 1), 1, 1);
|
|
10704
10705
|
let [f, d, h, w] = u.data;
|
|
10705
10706
|
w = parseFloat((w / 255).toFixed(2));
|
|
10706
|
-
const
|
|
10707
|
-
Object.assign(
|
|
10707
|
+
const b = this.suckerPreview.style;
|
|
10708
|
+
Object.assign(b, {
|
|
10708
10709
|
position: "absolute",
|
|
10709
10710
|
left: e + 20 + "px",
|
|
10710
10711
|
top: a - 36 + "px",
|
|
@@ -10719,13 +10720,13 @@ var Xn = x({
|
|
|
10719
10720
|
e >= this.suckerArea[0] && // @ts-ignore
|
|
10720
10721
|
a >= this.suckerArea[1] && // @ts-ignore
|
|
10721
10722
|
e <= this.suckerArea[2] && // @ts-ignore
|
|
10722
|
-
a <= this.suckerArea[3] ?
|
|
10723
|
+
a <= this.suckerArea[3] ? b.display = "" : b.display = "none";
|
|
10723
10724
|
},
|
|
10724
10725
|
suckColor(t) {
|
|
10725
10726
|
t && t.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), t.addEventListener("click", (e) => {
|
|
10726
10727
|
const { clientX: a, clientY: n } = e, { top: s, left: o, width: i, height: r } = t.getBoundingClientRect(), l = a - o, c = n - s, f = t.getContext("2d").getImageData(Math.min(l, i - 1), Math.min(c, r - 1), 1, 1);
|
|
10727
|
-
let [d, h, w,
|
|
10728
|
-
|
|
10728
|
+
let [d, h, w, b] = f.data;
|
|
10729
|
+
b = parseFloat((b / 255).toFixed(2)), this.$emit("selectSucker", { r: d, g: h, b: w, a: b });
|
|
10729
10730
|
}));
|
|
10730
10731
|
}
|
|
10731
10732
|
}
|
|
@@ -11359,7 +11360,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11359
11360
|
deadline: _ != null && _.length ? _ : null
|
|
11360
11361
|
});
|
|
11361
11362
|
}
|
|
11362
|
-
}), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1,
|
|
11363
|
+
}), w = (_) => a.closedStatus ? On(_, a.closedStatus) : !1, b = A(() => {
|
|
11363
11364
|
var _;
|
|
11364
11365
|
return ((_ = a.users) == null ? void 0 : _.map((m) => ({
|
|
11365
11366
|
label: `${m.firstName} ${m.lastName}`,
|
|
@@ -11442,7 +11443,7 @@ const h4 = /* @__PURE__ */ j(p4, [["render", v4]]), m4 = { class: "ao-project-mi
|
|
|
11442
11443
|
M($e, {
|
|
11443
11444
|
modelValue: g.value,
|
|
11444
11445
|
"onUpdate:modelValue": m[2] || (m[2] = (I) => g.value = I),
|
|
11445
|
-
options:
|
|
11446
|
+
options: b.value,
|
|
11446
11447
|
"close-on-select": !0,
|
|
11447
11448
|
searchable: !0,
|
|
11448
11449
|
max: 1,
|
|
@@ -11605,7 +11606,7 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11605
11606
|
e("addComment", g);
|
|
11606
11607
|
}, w = (g) => {
|
|
11607
11608
|
e("updateComment", g);
|
|
11608
|
-
},
|
|
11609
|
+
}, b = (g) => {
|
|
11609
11610
|
e("removeComment", g);
|
|
11610
11611
|
};
|
|
11611
11612
|
return (g, k) => {
|
|
@@ -11634,7 +11635,7 @@ const T4 = /* @__PURE__ */ x({
|
|
|
11634
11635
|
onRemoveFile: d,
|
|
11635
11636
|
onAddComment: h,
|
|
11636
11637
|
onUpdateComment: w,
|
|
11637
|
-
onRemoveComment:
|
|
11638
|
+
onRemoveComment: b
|
|
11638
11639
|
}, {
|
|
11639
11640
|
default: z((D) => [
|
|
11640
11641
|
te(g.$slots, "default", pa(fa(D)))
|
|
@@ -11736,13 +11737,13 @@ function j4(t, e, a = {}) {
|
|
|
11736
11737
|
let u = oa;
|
|
11737
11738
|
const f = ee(r), d = l.value ? de(
|
|
11738
11739
|
() => [c.value, mn(n), f.value],
|
|
11739
|
-
([w,
|
|
11740
|
+
([w, b]) => {
|
|
11740
11741
|
if (u(), !f.value || !w.length)
|
|
11741
11742
|
return;
|
|
11742
11743
|
const g = new IntersectionObserver(
|
|
11743
11744
|
e,
|
|
11744
11745
|
{
|
|
11745
|
-
root: mn(
|
|
11746
|
+
root: mn(b),
|
|
11746
11747
|
rootMargin: s,
|
|
11747
11748
|
threshold: o
|
|
11748
11749
|
}
|
|
@@ -11768,7 +11769,7 @@ function j4(t, e, a = {}) {
|
|
|
11768
11769
|
};
|
|
11769
11770
|
}
|
|
11770
11771
|
const F4 = {
|
|
11771
|
-
class: /* @__PURE__ */
|
|
11772
|
+
class: /* @__PURE__ */ G(["ao-list-kanban"])
|
|
11772
11773
|
}, U4 = { class: "ao-list-kanban__header" }, Z4 = {
|
|
11773
11774
|
key: 0,
|
|
11774
11775
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
@@ -11860,15 +11861,15 @@ const F4 = {
|
|
|
11860
11861
|
}
|
|
11861
11862
|
}), {
|
|
11862
11863
|
item: z(({ element: d }) => {
|
|
11863
|
-
var h, w,
|
|
11864
|
+
var h, w, b, g, k, _, m, D, I;
|
|
11864
11865
|
return [
|
|
11865
11866
|
M(di, {
|
|
11866
|
-
class:
|
|
11867
|
+
class: G(o(d) ? "ao-list-draggable" : ""),
|
|
11867
11868
|
id: d.id,
|
|
11868
11869
|
name: d.name,
|
|
11869
11870
|
"project-name": (h = d.project) == null ? void 0 : h.name,
|
|
11870
11871
|
"project-color": (w = d.project) == null ? void 0 : w.color,
|
|
11871
|
-
"phase-name": (g = (
|
|
11872
|
+
"phase-name": (g = (b = d.milestone) == null ? void 0 : b.phase) == null ? void 0 : g.name,
|
|
11872
11873
|
"milestone-name": (k = d.milestone) == null ? void 0 : k.name,
|
|
11873
11874
|
"milestone-color": (_ = d.milestone) == null ? void 0 : _.color,
|
|
11874
11875
|
deadline: d.deadline,
|
|
@@ -11971,14 +11972,14 @@ const K4 = { class: "ao-field ao-search-field" }, G4 = ["value", "placeholder",
|
|
|
11971
11972
|
}, null, 40, G4),
|
|
11972
11973
|
M(pe, {
|
|
11973
11974
|
name: "SearchRounded",
|
|
11974
|
-
class:
|
|
11975
|
+
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
11975
11976
|
}, null, 8, ["class"]),
|
|
11976
11977
|
M(ue, {
|
|
11977
11978
|
"icon-name": "CloseRounded",
|
|
11978
11979
|
size: "sm",
|
|
11979
11980
|
color: "primary",
|
|
11980
11981
|
corners: "round",
|
|
11981
|
-
class:
|
|
11982
|
+
class: G(`ao-search-field__button ao-search-field__action ${i.modelValue ? "ao-search-field__action--visible" : ""}`),
|
|
11982
11983
|
onClick: o
|
|
11983
11984
|
}, null, 8, ["class"])
|
|
11984
11985
|
]));
|
|
@@ -12017,7 +12018,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12017
12018
|
de(
|
|
12018
12019
|
[() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
|
|
12019
12020
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12020
|
-
async ([O, S, F, V], [se,
|
|
12021
|
+
async ([O, S, F, V], [se, y]) => {
|
|
12021
12022
|
r.value = Object.fromEntries(
|
|
12022
12023
|
O.map((R) => [
|
|
12023
12024
|
R.id,
|
|
@@ -12026,7 +12027,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12026
12027
|
return ((ie = le.status) == null ? void 0 : ie.id) === R.id;
|
|
12027
12028
|
})
|
|
12028
12029
|
])
|
|
12029
|
-
), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Xe(S,
|
|
12030
|
+
), F && !l.value ? (i(F, null), l.value = !0) : V && !l.value && (i(null, V), l.value = !0), c.value && Xe(S, y);
|
|
12030
12031
|
},
|
|
12031
12032
|
{ immediate: !0 }
|
|
12032
12033
|
);
|
|
@@ -12034,8 +12035,8 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12034
12035
|
var O;
|
|
12035
12036
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((O = a.selectedActivity.milestone.phase) == null ? void 0 : O.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
12036
12037
|
}), d = (O) => {
|
|
12037
|
-
var
|
|
12038
|
-
const S = (
|
|
12038
|
+
var y, R;
|
|
12039
|
+
const S = (y = a.activities) == null ? void 0 : y.at(-1), F = S ? Ie.LexoRank.parse(S.rank).genNext() : Ie.LexoRank.middle(), V = ((R = a.activities) == null ? void 0 : R.length) ?? 0, se = {
|
|
12039
12040
|
name: n("activity.defaultName", { idx: V + 1 }),
|
|
12040
12041
|
rank: F.format(),
|
|
12041
12042
|
statusId: O.id
|
|
@@ -12045,7 +12046,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12045
12046
|
c.value = !1, e("update:filters", { ...a.filters, [O]: S });
|
|
12046
12047
|
}, w = A(
|
|
12047
12048
|
() => a.project ? [a.project] : a.projects ?? []
|
|
12048
|
-
),
|
|
12049
|
+
), b = A(() => w.value.map((O) => ({
|
|
12049
12050
|
value: O.id,
|
|
12050
12051
|
label: O.name
|
|
12051
12052
|
}))), g = A(() => {
|
|
@@ -12118,7 +12119,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12118
12119
|
key: 1,
|
|
12119
12120
|
"model-value": O.filters[J(Lt).project],
|
|
12120
12121
|
mode: "tags",
|
|
12121
|
-
options:
|
|
12122
|
+
options: b.value,
|
|
12122
12123
|
"close-on-select": !1,
|
|
12123
12124
|
searchable: !0,
|
|
12124
12125
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
@@ -12155,7 +12156,7 @@ const Q4 = { class: "ao-feed" }, J4 = { class: "ao-feed__filters" }, e8 = { clas
|
|
|
12155
12156
|
"user-name": V.label,
|
|
12156
12157
|
"avatar-url": V.avatar,
|
|
12157
12158
|
"is-closable": !0,
|
|
12158
|
-
onClose: (
|
|
12159
|
+
onClose: (y) => se(V, y)
|
|
12159
12160
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12160
12161
|
]),
|
|
12161
12162
|
_: 1
|
|
@@ -12401,7 +12402,7 @@ const s8 = { class: "ao-field__label" }, i8 = /* @__PURE__ */ x({
|
|
|
12401
12402
|
},
|
|
12402
12403
|
setup(t) {
|
|
12403
12404
|
return (e, a) => (p(), C("label", {
|
|
12404
|
-
class:
|
|
12405
|
+
class: G(["ao-field", { "ao-field--multiselect": e.isMultiselect }])
|
|
12405
12406
|
}, [
|
|
12406
12407
|
v("span", s8, Q(e.label), 1),
|
|
12407
12408
|
te(e.$slots, "default")
|