@26lights/orcha 0.41.46 → 0.41.48
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.es.js +522 -516
- package/dist/orcha.umd.js +2 -2
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1265,12 +1265,12 @@ const be = /* @__PURE__ */ Y({
|
|
|
1265
1265
|
} : {
|
|
1266
1266
|
click: $,
|
|
1267
1267
|
focus: $
|
|
1268
|
-
} : {}), u = i((w,
|
|
1269
|
-
const
|
|
1270
|
-
e("update:title",
|
|
1268
|
+
} : {}), u = i((w, C) => {
|
|
1269
|
+
const g = C.target.value;
|
|
1270
|
+
e("update:title", g);
|
|
1271
1271
|
}), v = l(), p = async () => {
|
|
1272
1272
|
n.value && o(!1);
|
|
1273
|
-
},
|
|
1273
|
+
}, m = () => {
|
|
1274
1274
|
e("toggle-is-editing", !1);
|
|
1275
1275
|
}, $ = (w) => {
|
|
1276
1276
|
w.stopPropagation(), n.value || o(!0);
|
|
@@ -1280,7 +1280,7 @@ const be = /* @__PURE__ */ Y({
|
|
|
1280
1280
|
(w) => {
|
|
1281
1281
|
w || v();
|
|
1282
1282
|
}
|
|
1283
|
-
), (w,
|
|
1283
|
+
), (w, C) => (d(), D(ht(r.value), Ae({
|
|
1284
1284
|
id: w.id,
|
|
1285
1285
|
ref_key: "target",
|
|
1286
1286
|
ref: s,
|
|
@@ -1297,7 +1297,7 @@ const be = /* @__PURE__ */ Y({
|
|
|
1297
1297
|
type: Q(n) ? "text" : null,
|
|
1298
1298
|
value: Q(n) ? w.title : null,
|
|
1299
1299
|
tabindex: "0",
|
|
1300
|
-
onKeyup: dt(
|
|
1300
|
+
onKeyup: dt(m, ["enter"])
|
|
1301
1301
|
}, Bi(c.value), {
|
|
1302
1302
|
onKeydown: dt(Q(v), ["esc"])
|
|
1303
1303
|
}), {
|
|
@@ -1598,28 +1598,28 @@ function Na(t, e) {
|
|
|
1598
1598
|
var u = ga(), v = Je((a = (s = (n = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
1599
1599
|
if (!(v >= 0 && v <= 6))
|
|
1600
1600
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1601
|
-
var p = $e(t),
|
|
1601
|
+
var p = $e(t), m = p.getUTCDay(), $ = (m < v ? 7 : 0) + m - v;
|
|
1602
1602
|
return p.setUTCDate(p.getUTCDate() - $), p.setUTCHours(0, 0, 0, 0), p;
|
|
1603
1603
|
}
|
|
1604
1604
|
function Rn(t, e) {
|
|
1605
1605
|
var a, s, n, o, i, l, r, c;
|
|
1606
1606
|
Ce(1, arguments);
|
|
1607
|
-
var u = $e(t), v = u.getUTCFullYear(), p = ga(),
|
|
1608
|
-
if (!(
|
|
1607
|
+
var u = $e(t), v = u.getUTCFullYear(), p = ga(), m = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
1608
|
+
if (!(m >= 1 && m <= 7))
|
|
1609
1609
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1610
1610
|
var $ = /* @__PURE__ */ new Date(0);
|
|
1611
|
-
$.setUTCFullYear(v + 1, 0,
|
|
1612
|
-
var w = Na($, e),
|
|
1613
|
-
|
|
1614
|
-
var h = Na(
|
|
1611
|
+
$.setUTCFullYear(v + 1, 0, m), $.setUTCHours(0, 0, 0, 0);
|
|
1612
|
+
var w = Na($, e), C = /* @__PURE__ */ new Date(0);
|
|
1613
|
+
C.setUTCFullYear(v, 0, m), C.setUTCHours(0, 0, 0, 0);
|
|
1614
|
+
var h = Na(C, e);
|
|
1615
1615
|
return u.getTime() >= w.getTime() ? v + 1 : u.getTime() >= h.getTime() ? v : v - 1;
|
|
1616
1616
|
}
|
|
1617
1617
|
function l0(t, e) {
|
|
1618
1618
|
var a, s, n, o, i, l, r, c;
|
|
1619
1619
|
Ce(1, arguments);
|
|
1620
|
-
var u = ga(), v = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = Rn(t, e),
|
|
1621
|
-
|
|
1622
|
-
var $ = Na(
|
|
1620
|
+
var u = ga(), v = Je((a = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), p = Rn(t, e), m = /* @__PURE__ */ new Date(0);
|
|
1621
|
+
m.setUTCFullYear(p, 0, v), m.setUTCHours(0, 0, 0, 0);
|
|
1622
|
+
var $ = Na(m, e);
|
|
1623
1623
|
return $;
|
|
1624
1624
|
}
|
|
1625
1625
|
var r0 = 6048e5;
|
|
@@ -2734,12 +2734,12 @@ var s3 = {
|
|
|
2734
2734
|
const Un = s3;
|
|
2735
2735
|
var n3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, i3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, o3 = /^'([^]*?)'?$/, l3 = /''/g, r3 = /[a-zA-Z]/;
|
|
2736
2736
|
function Fn(t, e, a) {
|
|
2737
|
-
var s, n, o, i, l, r, c, u, v, p,
|
|
2737
|
+
var s, n, o, i, l, r, c, u, v, p, m, $, w, C, h, g, y, P;
|
|
2738
2738
|
Ce(2, arguments);
|
|
2739
2739
|
var I = String(e), L = ga(), U = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : L.locale) !== null && s !== void 0 ? s : Un, z = Je((o = (i = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (v = L.locale) === null || v === void 0 || (p = v.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2740
2740
|
if (!(z >= 1 && z <= 7))
|
|
2741
2741
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2742
|
-
var K = Je((
|
|
2742
|
+
var K = Je((m = ($ = (w = (C = a == null ? void 0 : a.weekStartsOn) !== null && C !== void 0 ? C : a == null || (h = a.locale) === null || h === void 0 || (g = h.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && w !== void 0 ? w : L.weekStartsOn) !== null && $ !== void 0 ? $ : (y = L.locale) === null || y === void 0 || (P = y.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && m !== void 0 ? m : 0);
|
|
2743
2743
|
if (!(K >= 0 && K <= 6))
|
|
2744
2744
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2745
2745
|
if (!U.localize)
|
|
@@ -2783,24 +2783,24 @@ function u3(t) {
|
|
|
2783
2783
|
function c3(t, e, a) {
|
|
2784
2784
|
var s, n, o, i, l, r, c, u, v, p;
|
|
2785
2785
|
Ce(2, arguments);
|
|
2786
|
-
var
|
|
2787
|
-
if (!
|
|
2786
|
+
var m = $e(t), $ = $e(e), w = ga(), C = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : w.locale) !== null && s !== void 0 ? s : Un, h = Je((o = (i = (l = (r = a == null ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : a == null || (c = a.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && l !== void 0 ? l : w.weekStartsOn) !== null && i !== void 0 ? i : (v = w.locale) === null || v === void 0 || (p = v.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2787
|
+
if (!C.localize)
|
|
2788
2788
|
throw new RangeError("locale must contain localize property");
|
|
2789
|
-
if (!
|
|
2789
|
+
if (!C.formatLong)
|
|
2790
2790
|
throw new RangeError("locale must contain formatLong property");
|
|
2791
|
-
if (!
|
|
2791
|
+
if (!C.formatRelative)
|
|
2792
2792
|
throw new RangeError("locale must contain formatRelative property");
|
|
2793
|
-
var
|
|
2794
|
-
if (isNaN(
|
|
2793
|
+
var g = J2(m, $);
|
|
2794
|
+
if (isNaN(g))
|
|
2795
2795
|
throw new RangeError("Invalid time value");
|
|
2796
2796
|
var y;
|
|
2797
|
-
|
|
2798
|
-
var P = ws(
|
|
2799
|
-
locale:
|
|
2797
|
+
g < -6 ? y = "other" : g < -1 ? y = "lastWeek" : g < 0 ? y = "yesterday" : g < 1 ? y = "today" : g < 2 ? y = "tomorrow" : g < 7 ? y = "nextWeek" : y = "other";
|
|
2798
|
+
var P = ws(m, ra(m)), I = ws($, ra($)), L = C.formatRelative(y, P, I, {
|
|
2799
|
+
locale: C,
|
|
2800
2800
|
weekStartsOn: h
|
|
2801
2801
|
});
|
|
2802
|
-
return Fn(
|
|
2803
|
-
locale:
|
|
2802
|
+
return Fn(m, L, {
|
|
2803
|
+
locale: C,
|
|
2804
2804
|
weekStartsOn: h
|
|
2805
2805
|
});
|
|
2806
2806
|
}
|
|
@@ -3500,17 +3500,17 @@ function Yn() {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
let v;
|
|
3502
3502
|
for (let $ = r.getScale(); $ > 0; c = v) {
|
|
3503
|
-
const w = $ - 1,
|
|
3504
|
-
if (v = c.setScale(w, !1),
|
|
3505
|
-
return n.checkMid(i, l,
|
|
3506
|
-
if (
|
|
3503
|
+
const w = $ - 1, C = r.setScale(w, !0);
|
|
3504
|
+
if (v = c.setScale(w, !1), C.compareTo(v) === 0)
|
|
3505
|
+
return n.checkMid(i, l, C);
|
|
3506
|
+
if (C.compareTo(v) > 0)
|
|
3507
3507
|
break;
|
|
3508
|
-
$ = w, r =
|
|
3508
|
+
$ = w, r = C;
|
|
3509
3509
|
}
|
|
3510
|
-
let p = n.middleInternal(i, l, r, c),
|
|
3511
|
-
for (let $ = p.getScale(); $ > 0; $ =
|
|
3512
|
-
|
|
3513
|
-
const w = p.setScale(
|
|
3510
|
+
let p = n.middleInternal(i, l, r, c), m;
|
|
3511
|
+
for (let $ = p.getScale(); $ > 0; $ = m) {
|
|
3512
|
+
m = $ - 1;
|
|
3513
|
+
const w = p.setScale(m);
|
|
3514
3514
|
if (i.compareTo(w) >= 0 || w.compareTo(l) >= 0)
|
|
3515
3515
|
break;
|
|
3516
3516
|
p = w;
|
|
@@ -4322,47 +4322,47 @@ function gn(t, e, a) {
|
|
|
4322
4322
|
floating: n
|
|
4323
4323
|
} = t;
|
|
4324
4324
|
const o = Ds(e), i = Xn(e), l = Gn(i), r = Ft(e), c = o === "y", u = s.x + s.width / 2 - n.width / 2, v = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
|
|
4325
|
-
let
|
|
4325
|
+
let m;
|
|
4326
4326
|
switch (r) {
|
|
4327
4327
|
case "top":
|
|
4328
|
-
|
|
4328
|
+
m = {
|
|
4329
4329
|
x: u,
|
|
4330
4330
|
y: s.y - n.height
|
|
4331
4331
|
};
|
|
4332
4332
|
break;
|
|
4333
4333
|
case "bottom":
|
|
4334
|
-
|
|
4334
|
+
m = {
|
|
4335
4335
|
x: u,
|
|
4336
4336
|
y: s.y + s.height
|
|
4337
4337
|
};
|
|
4338
4338
|
break;
|
|
4339
4339
|
case "right":
|
|
4340
|
-
|
|
4340
|
+
m = {
|
|
4341
4341
|
x: s.x + s.width,
|
|
4342
4342
|
y: v
|
|
4343
4343
|
};
|
|
4344
4344
|
break;
|
|
4345
4345
|
case "left":
|
|
4346
|
-
|
|
4346
|
+
m = {
|
|
4347
4347
|
x: s.x - n.width,
|
|
4348
4348
|
y: v
|
|
4349
4349
|
};
|
|
4350
4350
|
break;
|
|
4351
4351
|
default:
|
|
4352
|
-
|
|
4352
|
+
m = {
|
|
4353
4353
|
x: s.x,
|
|
4354
4354
|
y: s.y
|
|
4355
4355
|
};
|
|
4356
4356
|
}
|
|
4357
4357
|
switch (es(e)) {
|
|
4358
4358
|
case "start":
|
|
4359
|
-
|
|
4359
|
+
m[i] -= p * (a && c ? -1 : 1);
|
|
4360
4360
|
break;
|
|
4361
4361
|
case "end":
|
|
4362
|
-
|
|
4362
|
+
m[i] += p * (a && c ? -1 : 1);
|
|
4363
4363
|
break;
|
|
4364
4364
|
}
|
|
4365
|
-
return
|
|
4365
|
+
return m;
|
|
4366
4366
|
}
|
|
4367
4367
|
const R5 = async (t, e, a) => {
|
|
4368
4368
|
const {
|
|
@@ -4378,13 +4378,13 @@ const R5 = async (t, e, a) => {
|
|
|
4378
4378
|
}), {
|
|
4379
4379
|
x: u,
|
|
4380
4380
|
y: v
|
|
4381
|
-
} = gn(c, s, r), p = s,
|
|
4381
|
+
} = gn(c, s, r), p = s, m = {}, $ = 0;
|
|
4382
4382
|
for (let w = 0; w < l.length; w++) {
|
|
4383
4383
|
const {
|
|
4384
|
-
name:
|
|
4384
|
+
name: C,
|
|
4385
4385
|
fn: h
|
|
4386
4386
|
} = l[w], {
|
|
4387
|
-
x:
|
|
4387
|
+
x: g,
|
|
4388
4388
|
y,
|
|
4389
4389
|
data: P,
|
|
4390
4390
|
reset: I
|
|
@@ -4394,7 +4394,7 @@ const R5 = async (t, e, a) => {
|
|
|
4394
4394
|
initialPlacement: s,
|
|
4395
4395
|
placement: p,
|
|
4396
4396
|
strategy: n,
|
|
4397
|
-
middlewareData:
|
|
4397
|
+
middlewareData: m,
|
|
4398
4398
|
rects: c,
|
|
4399
4399
|
platform: i,
|
|
4400
4400
|
elements: {
|
|
@@ -4402,10 +4402,10 @@ const R5 = async (t, e, a) => {
|
|
|
4402
4402
|
floating: e
|
|
4403
4403
|
}
|
|
4404
4404
|
});
|
|
4405
|
-
if (u =
|
|
4406
|
-
...
|
|
4407
|
-
[
|
|
4408
|
-
...
|
|
4405
|
+
if (u = g ?? u, v = y ?? v, m = {
|
|
4406
|
+
...m,
|
|
4407
|
+
[C]: {
|
|
4408
|
+
...m[C],
|
|
4409
4409
|
...P
|
|
4410
4410
|
}
|
|
4411
4411
|
}, I && $ <= 50) {
|
|
@@ -4425,7 +4425,7 @@ const R5 = async (t, e, a) => {
|
|
|
4425
4425
|
y: v,
|
|
4426
4426
|
placement: p,
|
|
4427
4427
|
strategy: n,
|
|
4428
|
-
middlewareData:
|
|
4428
|
+
middlewareData: m
|
|
4429
4429
|
};
|
|
4430
4430
|
};
|
|
4431
4431
|
async function Qn(t, e) {
|
|
@@ -4443,13 +4443,13 @@ async function Qn(t, e) {
|
|
|
4443
4443
|
rootBoundary: u = "viewport",
|
|
4444
4444
|
elementContext: v = "floating",
|
|
4445
4445
|
altBoundary: p = !1,
|
|
4446
|
-
padding:
|
|
4447
|
-
} = Vs(e, t), $ = j5(
|
|
4448
|
-
element: (a = await (o.isElement == null ? void 0 : o.isElement(
|
|
4446
|
+
padding: m = 0
|
|
4447
|
+
} = Vs(e, t), $ = j5(m), C = l[p ? v === "floating" ? "reference" : "floating" : v], h = Za(await o.getClippingRect({
|
|
4448
|
+
element: (a = await (o.isElement == null ? void 0 : o.isElement(C))) == null || a ? C : C.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4449
4449
|
boundary: c,
|
|
4450
4450
|
rootBoundary: u,
|
|
4451
4451
|
strategy: r
|
|
4452
|
-
})),
|
|
4452
|
+
})), g = v === "floating" ? {
|
|
4453
4453
|
...i.floating,
|
|
4454
4454
|
x: s,
|
|
4455
4455
|
y: n
|
|
@@ -4460,10 +4460,10 @@ async function Qn(t, e) {
|
|
|
4460
4460
|
x: 1,
|
|
4461
4461
|
y: 1
|
|
4462
4462
|
}, I = Za(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4463
|
-
rect:
|
|
4463
|
+
rect: g,
|
|
4464
4464
|
offsetParent: y,
|
|
4465
4465
|
strategy: r
|
|
4466
|
-
}) :
|
|
4466
|
+
}) : g);
|
|
4467
4467
|
return {
|
|
4468
4468
|
top: (h.top - I.top + $.top) / P.y,
|
|
4469
4469
|
bottom: (I.bottom - h.bottom + $.bottom) / P.y,
|
|
@@ -4488,16 +4488,16 @@ const N5 = function(t) {
|
|
|
4488
4488
|
mainAxis: u = !0,
|
|
4489
4489
|
crossAxis: v = !0,
|
|
4490
4490
|
fallbackPlacements: p,
|
|
4491
|
-
fallbackStrategy:
|
|
4491
|
+
fallbackStrategy: m = "bestFit",
|
|
4492
4492
|
fallbackAxisSideDirection: $ = "none",
|
|
4493
4493
|
flipAlignment: w = !0,
|
|
4494
|
-
...
|
|
4494
|
+
...C
|
|
4495
4495
|
} = Vs(t, e);
|
|
4496
4496
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4497
4497
|
return {};
|
|
4498
|
-
const h = Ft(n),
|
|
4498
|
+
const h = Ft(n), g = Ft(l) === l, y = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), P = p || (g || !w ? [Fa(l)] : H5(l));
|
|
4499
4499
|
!p && $ !== "none" && P.push(...D5(l, w, $, y));
|
|
4500
|
-
const I = [l, ...P], L = await Qn(e,
|
|
4500
|
+
const I = [l, ...P], L = await Qn(e, C), U = [];
|
|
4501
4501
|
let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4502
4502
|
if (u && U.push(L[h]), v) {
|
|
4503
4503
|
const j = P5(n, i, y);
|
|
@@ -4521,7 +4521,7 @@ const N5 = function(t) {
|
|
|
4521
4521
|
};
|
|
4522
4522
|
let le = (J = z.filter((se) => se.overflows[0] <= 0).sort((se, ee) => se.overflows[1] - ee.overflows[1])[0]) == null ? void 0 : J.placement;
|
|
4523
4523
|
if (!le)
|
|
4524
|
-
switch (
|
|
4524
|
+
switch (m) {
|
|
4525
4525
|
case "bestFit": {
|
|
4526
4526
|
var ae;
|
|
4527
4527
|
const se = (ae = z.map((ee) => [ee.placement, ee.overflows.filter((E) => E > 0).reduce((E, T) => E + T, 0)]).sort((ee, E) => ee[1] - E[1])[0]) == null ? void 0 : ae[0];
|
|
@@ -4558,22 +4558,22 @@ const N5 = function(t) {
|
|
|
4558
4558
|
...l
|
|
4559
4559
|
} = Vs(t, e), r = await Qn(e, l), c = Ft(a), u = es(a), v = Ds(a) === "y", {
|
|
4560
4560
|
width: p,
|
|
4561
|
-
height:
|
|
4561
|
+
height: m
|
|
4562
4562
|
} = s.floating;
|
|
4563
4563
|
let $, w;
|
|
4564
4564
|
c === "top" || c === "bottom" ? ($ = c, w = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (w = c, $ = u === "end" ? "top" : "bottom");
|
|
4565
|
-
const
|
|
4566
|
-
let y =
|
|
4565
|
+
const C = m - r[$], h = p - r[w], g = !e.middlewareData.shift;
|
|
4566
|
+
let y = C, P = h;
|
|
4567
4567
|
if (v) {
|
|
4568
4568
|
const L = p - r.left - r.right;
|
|
4569
|
-
P = u ||
|
|
4569
|
+
P = u || g ? ca(h, L) : L;
|
|
4570
4570
|
} else {
|
|
4571
|
-
const L =
|
|
4572
|
-
y = u ||
|
|
4571
|
+
const L = m - r.top - r.bottom;
|
|
4572
|
+
y = u || g ? ca(C, L) : L;
|
|
4573
4573
|
}
|
|
4574
|
-
if (
|
|
4574
|
+
if (g && !u) {
|
|
4575
4575
|
const L = He(r.left, 0), U = He(r.right, 0), z = He(r.top, 0), K = He(r.bottom, 0);
|
|
4576
|
-
v ? P = p - 2 * (L !== 0 || U !== 0 ? L + U : He(r.left, r.right)) : y =
|
|
4576
|
+
v ? P = p - 2 * (L !== 0 || U !== 0 ? L + U : He(r.left, r.right)) : y = m - 2 * (z !== 0 || K !== 0 ? z + K : He(r.top, r.bottom));
|
|
4577
4577
|
}
|
|
4578
4578
|
await i({
|
|
4579
4579
|
...e,
|
|
@@ -4581,7 +4581,7 @@ const N5 = function(t) {
|
|
|
4581
4581
|
availableHeight: y
|
|
4582
4582
|
});
|
|
4583
4583
|
const I = await n.getDimensions(o.floating);
|
|
4584
|
-
return p !== I.width ||
|
|
4584
|
+
return p !== I.width || m !== I.height ? {
|
|
4585
4585
|
reset: {
|
|
4586
4586
|
rects: !0
|
|
4587
4587
|
}
|
|
@@ -4724,11 +4724,11 @@ function Ot(t, e, a, s) {
|
|
|
4724
4724
|
const l = z5(o, a, s) ? ai(o) : pt(0);
|
|
4725
4725
|
let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, v = n.height / i.y;
|
|
4726
4726
|
if (o) {
|
|
4727
|
-
const p = Te(o),
|
|
4727
|
+
const p = Te(o), m = s && tt(s) ? Te(s) : s;
|
|
4728
4728
|
let $ = p.frameElement;
|
|
4729
|
-
for (; $ && s &&
|
|
4730
|
-
const w = Nt($),
|
|
4731
|
-
r *= w.x, c *= w.y, u *= w.x, v *= w.y, r +=
|
|
4729
|
+
for (; $ && s && m !== p; ) {
|
|
4730
|
+
const w = Nt($), C = $.getBoundingClientRect(), h = je($), g = C.left + ($.clientLeft + parseFloat(h.paddingLeft)) * w.x, y = C.top + ($.clientTop + parseFloat(h.paddingTop)) * w.y;
|
|
4731
|
+
r *= w.x, c *= w.y, u *= w.x, v *= w.y, r += g, c += y, $ = Te($).frameElement;
|
|
4732
4732
|
}
|
|
4733
4733
|
}
|
|
4734
4734
|
return Za({
|
|
@@ -4939,8 +4939,8 @@ function n7(t, e) {
|
|
|
4939
4939
|
} = t.getBoundingClientRect();
|
|
4940
4940
|
if (l || e(), !v || !p)
|
|
4941
4941
|
return;
|
|
4942
|
-
const
|
|
4943
|
-
rootMargin: -
|
|
4942
|
+
const m = Pa(u), $ = Pa(n.clientWidth - (c + v)), w = Pa(n.clientHeight - (u + p)), C = Pa(c), g = {
|
|
4943
|
+
rootMargin: -m + "px " + -$ + "px " + -w + "px " + -C + "px",
|
|
4944
4944
|
threshold: He(0, ca(1, r)) || 1
|
|
4945
4945
|
};
|
|
4946
4946
|
let y = !0;
|
|
@@ -4957,12 +4957,12 @@ function n7(t, e) {
|
|
|
4957
4957
|
}
|
|
4958
4958
|
try {
|
|
4959
4959
|
a = new IntersectionObserver(P, {
|
|
4960
|
-
...
|
|
4960
|
+
...g,
|
|
4961
4961
|
// Handle <iframe>s
|
|
4962
4962
|
root: n.ownerDocument
|
|
4963
4963
|
});
|
|
4964
4964
|
} catch {
|
|
4965
|
-
a = new IntersectionObserver(P,
|
|
4965
|
+
a = new IntersectionObserver(P, g);
|
|
4966
4966
|
}
|
|
4967
4967
|
a.observe(t);
|
|
4968
4968
|
}
|
|
@@ -4983,23 +4983,23 @@ function i7(t, e, a, s) {
|
|
|
4983
4983
|
}), o && h.addEventListener("resize", a);
|
|
4984
4984
|
});
|
|
4985
4985
|
const v = c && l ? n7(c, a) : null;
|
|
4986
|
-
let p = -1,
|
|
4987
|
-
i && (
|
|
4988
|
-
let [
|
|
4989
|
-
|
|
4990
|
-
|
|
4986
|
+
let p = -1, m = null;
|
|
4987
|
+
i && (m = new ResizeObserver((h) => {
|
|
4988
|
+
let [g] = h;
|
|
4989
|
+
g && g.target === c && m && (m.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
4990
|
+
m && m.observe(e);
|
|
4991
4991
|
})), a();
|
|
4992
|
-
}), c && !r &&
|
|
4992
|
+
}), c && !r && m.observe(c), m.observe(e));
|
|
4993
4993
|
let $, w = r ? Ot(t) : null;
|
|
4994
|
-
r &&
|
|
4995
|
-
function
|
|
4994
|
+
r && C();
|
|
4995
|
+
function C() {
|
|
4996
4996
|
const h = Ot(t);
|
|
4997
|
-
w && (h.x !== w.x || h.y !== w.y || h.width !== w.width || h.height !== w.height) && a(), w = h, $ = requestAnimationFrame(
|
|
4997
|
+
w && (h.x !== w.x || h.y !== w.y || h.width !== w.width || h.height !== w.height) && a(), w = h, $ = requestAnimationFrame(C);
|
|
4998
4998
|
}
|
|
4999
4999
|
return a(), () => {
|
|
5000
5000
|
u.forEach((h) => {
|
|
5001
5001
|
n && h.removeEventListener("scroll", a), o && h.removeEventListener("resize", a);
|
|
5002
|
-
}), v && v(),
|
|
5002
|
+
}), v && v(), m && m.disconnect(), m = null, r && cancelAnimationFrame($);
|
|
5003
5003
|
};
|
|
5004
5004
|
}
|
|
5005
5005
|
const o7 = (t, e, a) => {
|
|
@@ -5054,8 +5054,8 @@ const o7 = (t, e, a) => {
|
|
|
5054
5054
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
5055
5055
|
}),
|
|
5056
5056
|
U5({
|
|
5057
|
-
apply({ availableWidth: v, availableHeight: p, elements:
|
|
5058
|
-
Object.assign(
|
|
5057
|
+
apply({ availableWidth: v, availableHeight: p, elements: m, rects: $ }) {
|
|
5058
|
+
Object.assign(m.floating.style, {
|
|
5059
5059
|
minHeight: `${n.value}px`,
|
|
5060
5060
|
width: `${$.reference.width}px`,
|
|
5061
5061
|
maxWidth: `${v}px`,
|
|
@@ -5086,8 +5086,8 @@ function Fe(t) {
|
|
|
5086
5086
|
function r7(t, e, a) {
|
|
5087
5087
|
const { object: s, valueProp: n, mode: o } = Ee(t), i = Lt().proxy, l = a.iv, r = (v, p = !0) => {
|
|
5088
5088
|
l.value = u(v);
|
|
5089
|
-
const
|
|
5090
|
-
e.emit("change",
|
|
5089
|
+
const m = c(v);
|
|
5090
|
+
e.emit("change", m, i), p && (e.emit("input", m), e.emit("update:modelValue", m));
|
|
5091
5091
|
}, c = (v) => s.value || Fe(v) ? v : Array.isArray(v) ? v.map((p) => p[n.value]) : v[n.value], u = (v) => Fe(v) ? o.value === "single" ? {} : [] : v;
|
|
5092
5092
|
return {
|
|
5093
5093
|
update: r
|
|
@@ -5111,14 +5111,14 @@ function c7(t, e, a) {
|
|
|
5111
5111
|
l.value = p.target.value;
|
|
5112
5112
|
}, u = (p) => {
|
|
5113
5113
|
if (s && s.value) {
|
|
5114
|
-
let
|
|
5115
|
-
typeof
|
|
5114
|
+
let m = s.value;
|
|
5115
|
+
typeof m == "string" && (m = new RegExp(m)), p.key.match(m) || p.preventDefault();
|
|
5116
5116
|
}
|
|
5117
5117
|
}, v = (p) => {
|
|
5118
5118
|
if (s && s.value) {
|
|
5119
5119
|
let $ = (p.clipboardData || /* istanbul ignore next */
|
|
5120
5120
|
window.clipboardData).getData("Text"), w = s.value;
|
|
5121
|
-
typeof w == "string" && (w = new RegExp(w)), $.split("").every((
|
|
5121
|
+
typeof w == "string" && (w = new RegExp(w)), $.split("").every((C) => !!C.match(w)) || p.preventDefault();
|
|
5122
5122
|
}
|
|
5123
5123
|
e.emit("paste", p, n);
|
|
5124
5124
|
};
|
|
@@ -5168,12 +5168,12 @@ function f7(t, e, a) {
|
|
|
5168
5168
|
label: u,
|
|
5169
5169
|
appendNewTag: v,
|
|
5170
5170
|
appendNewOption: p,
|
|
5171
|
-
multipleLabel:
|
|
5171
|
+
multipleLabel: m,
|
|
5172
5172
|
object: $,
|
|
5173
5173
|
loading: w,
|
|
5174
|
-
delay:
|
|
5174
|
+
delay: C,
|
|
5175
5175
|
resolveOnLoad: h,
|
|
5176
|
-
minChars:
|
|
5176
|
+
minChars: g,
|
|
5177
5177
|
filterResults: y,
|
|
5178
5178
|
clearOnSearch: P,
|
|
5179
5179
|
clearOnSelect: I,
|
|
@@ -5255,7 +5255,7 @@ function f7(t, e, a) {
|
|
|
5255
5255
|
case "tags":
|
|
5256
5256
|
return !Fe(Z.value) && Z.value.length > 0;
|
|
5257
5257
|
}
|
|
5258
|
-
}), gi = M(() =>
|
|
5258
|
+
}), gi = M(() => m !== void 0 && m.value !== void 0 ? m.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), Ci = M(() => !Le.value.length && !Ie.value && !Pt.value.length), _i = M(() => Le.value.length > 0 && lt.value.length == 0 && (x.value && le.value || !le.value)), Pt = M(() => Xt.value === !1 || !x.value ? [] : Ti(x.value) !== -1 ? [] : [{
|
|
5259
5259
|
[L.value]: x.value,
|
|
5260
5260
|
[bt.value[0]]: x.value,
|
|
5261
5261
|
[u.value]: x.value,
|
|
@@ -5427,7 +5427,7 @@ function f7(t, e, a) {
|
|
|
5427
5427
|
[bt.value[0]]: B
|
|
5428
5428
|
}), ln = () => {
|
|
5429
5429
|
Re.value = ce(x, (S) => {
|
|
5430
|
-
S.length <
|
|
5430
|
+
S.length < g.value || !S && g.value !== 0 || (Ie.value = !0, P.value && (Ue.value = []), setTimeout(() => {
|
|
5431
5431
|
S == x.value && s.value(x.value, ne).then((B) => {
|
|
5432
5432
|
(S == x.value || !x.value) && (Ue.value = B, Kt.value = lt.value.filter((ue) => ue[b.value] !== !0)[0] || null, Ie.value = !1);
|
|
5433
5433
|
}).catch(
|
|
@@ -5436,12 +5436,12 @@ function f7(t, e, a) {
|
|
|
5436
5436
|
console.error(B);
|
|
5437
5437
|
}
|
|
5438
5438
|
);
|
|
5439
|
-
},
|
|
5439
|
+
}, C.value));
|
|
5440
5440
|
}, { flush: "sync" });
|
|
5441
5441
|
};
|
|
5442
5442
|
if (n.value !== "single" && !Fe(H.value) && !Array.isArray(H.value))
|
|
5443
5443
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5444
|
-
return s && typeof s.value == "function" ? h.value ? Ta(Ma) : $.value == !0 && Ma() : (Ue.value = s.value, Ma()),
|
|
5444
|
+
return s && typeof s.value == "function" ? h.value ? Ta(Ma) : $.value == !0 && Ma() : (Ue.value = s.value, Ma()), C.value > -1 && ln(), ce(C, (S, B) => {
|
|
5445
5445
|
Re.value && Re.value(), S >= 0 && ln();
|
|
5446
5446
|
}), ce(H, (S) => {
|
|
5447
5447
|
if (Fe(S)) {
|
|
@@ -5506,7 +5506,7 @@ function h7(t, e, a) {
|
|
|
5506
5506
|
groupSelect: c,
|
|
5507
5507
|
disabledProp: u,
|
|
5508
5508
|
groupOptions: v
|
|
5509
|
-
} = Ee(t), p = a.fo,
|
|
5509
|
+
} = Ee(t), p = a.fo, m = a.fg, $ = a.handleOptionClick, w = a.handleGroupClick, C = a.search, h = a.pointer, g = a.setPointer, y = a.clearPointer, P = a.multiselect, I = a.isOpen, L = M(() => p.value.filter((H) => !H[u.value])), U = M(() => m.value.filter((H) => !H[u.value])), z = M(() => r.value !== "single" && c.value), K = M(() => h.value && h.value.group), J = M(() => ne(h.value)), ae = M(() => {
|
|
5510
5510
|
const H = K.value ? h.value : (
|
|
5511
5511
|
/* istanbul ignore next */
|
|
5512
5512
|
ne(h.value)
|
|
@@ -5523,19 +5523,19 @@ function h7(t, e, a) {
|
|
|
5523
5523
|
const H = ne(h.value).__VISIBLE__.filter((x) => !x[u.value]);
|
|
5524
5524
|
return H[H.map((x) => x[s.value]).indexOf(h.value[s.value]) + 1];
|
|
5525
5525
|
}), E = M(() => [...ae.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), T = M(() => [...G.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), k = (H) => h.value && (!H.group && h.value[s.value] === H[s.value] || H.group !== void 0 && h.value[i.value] === H[i.value]) ? !0 : void 0, R = () => {
|
|
5526
|
-
|
|
5526
|
+
g(L.value[0] || null);
|
|
5527
5527
|
}, b = () => {
|
|
5528
5528
|
!h.value || h.value[u.value] === !0 || (K.value ? w(h.value) : $(h.value));
|
|
5529
5529
|
}, V = () => {
|
|
5530
5530
|
if (h.value === null)
|
|
5531
|
-
|
|
5531
|
+
g((l.value && z.value ? U.value[0].__CREATE__ ? L.value[0] : U.value[0] : L.value[0]) || null);
|
|
5532
5532
|
else if (l.value && z.value) {
|
|
5533
5533
|
let H = K.value ? le.value : ee.value;
|
|
5534
|
-
H === void 0 && (H = j.value, H.__CREATE__ && (H = H[v.value][0])),
|
|
5534
|
+
H === void 0 && (H = j.value, H.__CREATE__ && (H = H[v.value][0])), g(H || /* istanbul ignore next */
|
|
5535
5535
|
null);
|
|
5536
5536
|
} else {
|
|
5537
5537
|
let H = L.value.map((x) => x[s.value]).indexOf(h.value[s.value]) + 1;
|
|
5538
|
-
L.value.length <= H && (H = 0),
|
|
5538
|
+
L.value.length <= H && (H = 0), g(L.value[H] || null);
|
|
5539
5539
|
}
|
|
5540
5540
|
Me(() => {
|
|
5541
5541
|
Z();
|
|
@@ -5543,14 +5543,14 @@ function h7(t, e, a) {
|
|
|
5543
5543
|
}, oe = () => {
|
|
5544
5544
|
if (h.value === null) {
|
|
5545
5545
|
let H = L.value[L.value.length - 1];
|
|
5546
|
-
l.value && z.value && (H = T.value, H === void 0 && (H = G.value)),
|
|
5546
|
+
l.value && z.value && (H = T.value, H === void 0 && (H = G.value)), g(H || null);
|
|
5547
5547
|
} else if (l.value && z.value) {
|
|
5548
5548
|
let H = K.value ? E.value : se.value;
|
|
5549
|
-
H === void 0 && (H = K.value ? ae.value : J.value, H.__CREATE__ && (H = E.value, H === void 0 && (H = ae.value))),
|
|
5549
|
+
H === void 0 && (H = K.value ? ae.value : J.value, H.__CREATE__ && (H = E.value, H === void 0 && (H = ae.value))), g(H || /* istanbul ignore next */
|
|
5550
5550
|
null);
|
|
5551
5551
|
} else {
|
|
5552
5552
|
let H = L.value.map((x) => x[s.value]).indexOf(h.value[s.value]) - 1;
|
|
5553
|
-
H < 0 && (H = L.value.length - 1),
|
|
5553
|
+
H < 0 && (H = L.value.length - 1), g(L.value[H] || null);
|
|
5554
5554
|
}
|
|
5555
5555
|
Me(() => {
|
|
5556
5556
|
Z();
|
|
@@ -5562,7 +5562,7 @@ function h7(t, e, a) {
|
|
|
5562
5562
|
let x = H.parentElement.parentElement;
|
|
5563
5563
|
l.value && (x = K.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);
|
|
5564
5564
|
};
|
|
5565
|
-
return ce(
|
|
5565
|
+
return ce(C, (H) => {
|
|
5566
5566
|
o.value && (H.length && n.value ? R() : y());
|
|
5567
5567
|
}), ce(I, (H) => {
|
|
5568
5568
|
if (H) {
|
|
@@ -5943,7 +5943,7 @@ function q7(t, e) {
|
|
|
5943
5943
|
}
|
|
5944
5944
|
function zs(t, e) {
|
|
5945
5945
|
e === void 0 && (e = {});
|
|
5946
|
-
var a = e, s = a.placement, n = s === void 0 ? t.placement : s, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? w7 : l, c = a.rootBoundary, u = c === void 0 ? ui : c, v = a.elementContext, p = v === void 0 ? na : v,
|
|
5946
|
+
var a = e, s = a.placement, n = s === void 0 ? t.placement : s, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? w7 : l, c = a.rootBoundary, u = c === void 0 ? ui : c, v = a.elementContext, p = v === void 0 ? na : v, m = a.altBoundary, $ = m === void 0 ? !1 : m, w = a.padding, C = w === void 0 ? 0 : w, h = z7(typeof C != "number" ? C : q7(C, is)), g = p === na ? $7 : na, y = t.rects.popper, P = t.elements[$ ? g : p], I = W7(Et(P) ? P : P.contextElement || Ct(t.elements.popper), r, u, i), L = zt(t.elements.reference), U = di({
|
|
5947
5947
|
reference: L,
|
|
5948
5948
|
element: y,
|
|
5949
5949
|
strategy: "absolute",
|
|
@@ -5991,18 +5991,18 @@ function Y7(t) {
|
|
|
5991
5991
|
},
|
|
5992
5992
|
attributes: {},
|
|
5993
5993
|
styles: {}
|
|
5994
|
-
}, v = [], p = !1,
|
|
5994
|
+
}, v = [], p = !1, m = {
|
|
5995
5995
|
state: u,
|
|
5996
5996
|
setOptions: function(h) {
|
|
5997
|
-
var
|
|
5998
|
-
w(), u.options = Object.assign({}, o, u.options,
|
|
5997
|
+
var g = typeof h == "function" ? h(u.options) : h;
|
|
5998
|
+
w(), u.options = Object.assign({}, o, u.options, g), u.scrollParents = {
|
|
5999
5999
|
reference: Et(l) ? ia(l) : l.contextElement ? ia(l.contextElement) : [],
|
|
6000
6000
|
popper: ia(r)
|
|
6001
6001
|
};
|
|
6002
6002
|
var y = D7(j7([].concat(s, u.options.modifiers)));
|
|
6003
6003
|
return u.orderedModifiers = y.filter(function(P) {
|
|
6004
6004
|
return P.enabled;
|
|
6005
|
-
}), $(),
|
|
6005
|
+
}), $(), m.update();
|
|
6006
6006
|
},
|
|
6007
6007
|
// Sync update – it will always be executed, even if not necessary. This
|
|
6008
6008
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -6011,10 +6011,10 @@ function Y7(t) {
|
|
|
6011
6011
|
// prefer the async Popper#update method
|
|
6012
6012
|
forceUpdate: function() {
|
|
6013
6013
|
if (!p) {
|
|
6014
|
-
var h = u.elements,
|
|
6015
|
-
if (Sn(
|
|
6014
|
+
var h = u.elements, g = h.reference, y = h.popper;
|
|
6015
|
+
if (Sn(g, y)) {
|
|
6016
6016
|
u.rects = {
|
|
6017
|
-
reference: _7(
|
|
6017
|
+
reference: _7(g, ns(y), u.options.strategy === "fixed"),
|
|
6018
6018
|
popper: li(y)
|
|
6019
6019
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(J) {
|
|
6020
6020
|
return u.modifiersData[J.name] = Object.assign({}, J.data);
|
|
@@ -6029,7 +6029,7 @@ function Y7(t) {
|
|
|
6029
6029
|
state: u,
|
|
6030
6030
|
options: z,
|
|
6031
6031
|
name: K,
|
|
6032
|
-
instance:
|
|
6032
|
+
instance: m
|
|
6033
6033
|
}) || u);
|
|
6034
6034
|
}
|
|
6035
6035
|
}
|
|
@@ -6038,8 +6038,8 @@ function Y7(t) {
|
|
|
6038
6038
|
// Async and optimistically optimized update – it will not be executed if
|
|
6039
6039
|
// not necessary (debounced to run at most once-per-tick)
|
|
6040
6040
|
update: B7(function() {
|
|
6041
|
-
return new Promise(function(
|
|
6042
|
-
|
|
6041
|
+
return new Promise(function(C) {
|
|
6042
|
+
m.forceUpdate(), C(u);
|
|
6043
6043
|
});
|
|
6044
6044
|
}),
|
|
6045
6045
|
destroy: function() {
|
|
@@ -6047,18 +6047,18 @@ function Y7(t) {
|
|
|
6047
6047
|
}
|
|
6048
6048
|
};
|
|
6049
6049
|
if (!Sn(l, r))
|
|
6050
|
-
return
|
|
6051
|
-
|
|
6052
|
-
!p && c.onFirstUpdate && c.onFirstUpdate(
|
|
6050
|
+
return m;
|
|
6051
|
+
m.setOptions(c).then(function(C) {
|
|
6052
|
+
!p && c.onFirstUpdate && c.onFirstUpdate(C);
|
|
6053
6053
|
});
|
|
6054
6054
|
function $() {
|
|
6055
|
-
u.orderedModifiers.forEach(function(
|
|
6056
|
-
var h =
|
|
6055
|
+
u.orderedModifiers.forEach(function(C) {
|
|
6056
|
+
var h = C.name, g = C.options, y = g === void 0 ? {} : g, P = C.effect;
|
|
6057
6057
|
if (typeof P == "function") {
|
|
6058
6058
|
var I = P({
|
|
6059
6059
|
state: u,
|
|
6060
6060
|
name: h,
|
|
6061
|
-
instance:
|
|
6061
|
+
instance: m,
|
|
6062
6062
|
options: y
|
|
6063
6063
|
}), L = function() {
|
|
6064
6064
|
};
|
|
@@ -6067,11 +6067,11 @@ function Y7(t) {
|
|
|
6067
6067
|
});
|
|
6068
6068
|
}
|
|
6069
6069
|
function w() {
|
|
6070
|
-
v.forEach(function(
|
|
6071
|
-
return
|
|
6070
|
+
v.forEach(function(C) {
|
|
6071
|
+
return C();
|
|
6072
6072
|
}), v = [];
|
|
6073
6073
|
}
|
|
6074
|
-
return
|
|
6074
|
+
return m;
|
|
6075
6075
|
};
|
|
6076
6076
|
}
|
|
6077
6077
|
var Ha = {
|
|
@@ -6125,15 +6125,15 @@ function J7(t, e) {
|
|
|
6125
6125
|
};
|
|
6126
6126
|
}
|
|
6127
6127
|
function An(t) {
|
|
6128
|
-
var e, a = t.popper, s = t.popperRect, n = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, v = t.isFixed, p = i.x,
|
|
6129
|
-
x:
|
|
6128
|
+
var e, a = t.popper, s = t.popperRect, n = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, v = t.isFixed, p = i.x, m = p === void 0 ? 0 : p, $ = i.y, w = $ === void 0 ? 0 : $, C = typeof u == "function" ? u({
|
|
6129
|
+
x: m,
|
|
6130
6130
|
y: w
|
|
6131
6131
|
}) : {
|
|
6132
|
-
x:
|
|
6132
|
+
x: m,
|
|
6133
6133
|
y: w
|
|
6134
6134
|
};
|
|
6135
|
-
|
|
6136
|
-
var h = i.hasOwnProperty("x"),
|
|
6135
|
+
m = C.x, w = C.y;
|
|
6136
|
+
var h = i.hasOwnProperty("x"), g = i.hasOwnProperty("y"), y = Xe, P = Ne, I = window;
|
|
6137
6137
|
if (c) {
|
|
6138
6138
|
var L = ns(a), U = "clientHeight", z = "clientWidth";
|
|
6139
6139
|
if (L === Oe(a) && (L = Ct(a), at(L).position !== "static" && l === "absolute" && (U = "scrollHeight", z = "scrollWidth")), L = L, n === Ne || (n === Xe || n === ft) && o === pa) {
|
|
@@ -6150,23 +6150,23 @@ function An(t) {
|
|
|
6150
6150
|
// $FlowFixMe[prop-missing]
|
|
6151
6151
|
L[z]
|
|
6152
6152
|
);
|
|
6153
|
-
|
|
6153
|
+
m -= J - s.width, m *= r ? 1 : -1;
|
|
6154
6154
|
}
|
|
6155
6155
|
}
|
|
6156
6156
|
var ae = Object.assign({
|
|
6157
6157
|
position: l
|
|
6158
6158
|
}, c && Q7), j = u === !0 ? J7({
|
|
6159
|
-
x:
|
|
6159
|
+
x: m,
|
|
6160
6160
|
y: w
|
|
6161
6161
|
}, Oe(a)) : {
|
|
6162
|
-
x:
|
|
6162
|
+
x: m,
|
|
6163
6163
|
y: w
|
|
6164
6164
|
};
|
|
6165
|
-
if (
|
|
6165
|
+
if (m = j.x, w = j.y, r) {
|
|
6166
6166
|
var G;
|
|
6167
|
-
return Object.assign({}, ae, (G = {}, G[P] =
|
|
6167
|
+
return Object.assign({}, ae, (G = {}, G[P] = g ? "0" : "", G[y] = h ? "0" : "", G.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + w + "px)" : "translate3d(" + m + "px, " + w + "px, 0)", G));
|
|
6168
6168
|
}
|
|
6169
|
-
return Object.assign({}, ae, (e = {}, e[P] =
|
|
6169
|
+
return Object.assign({}, ae, (e = {}, e[P] = g ? w + "px" : "", e[y] = h ? m + "px" : "", e.transform = "", e));
|
|
6170
6170
|
}
|
|
6171
6171
|
function ep(t) {
|
|
6172
6172
|
var e = t.state, a = t.options, s = a.gpuAcceleration, n = s === void 0 ? !0 : s, o = a.adaptive, i = o === void 0 ? !0 : o, l = a.roundOffsets, r = l === void 0 ? !0 : l, c = {
|
|
@@ -6253,12 +6253,12 @@ function rp(t, e, a) {
|
|
|
6253
6253
|
return s > a ? a : s;
|
|
6254
6254
|
}
|
|
6255
6255
|
function up(t) {
|
|
6256
|
-
var e = t.state, a = t.options, s = t.name, n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, c = a.rootBoundary, u = a.altBoundary, v = a.padding, p = a.tether,
|
|
6256
|
+
var e = t.state, a = t.options, s = t.name, n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, c = a.rootBoundary, u = a.altBoundary, v = a.padding, p = a.tether, m = p === void 0 ? !0 : p, $ = a.tetherOffset, w = $ === void 0 ? 0 : $, C = zs(e, {
|
|
6257
6257
|
boundary: r,
|
|
6258
6258
|
rootBoundary: c,
|
|
6259
6259
|
padding: v,
|
|
6260
6260
|
altBoundary: u
|
|
6261
|
-
}), h = ct(e.placement),
|
|
6261
|
+
}), h = ct(e.placement), g = Yt(e.placement), y = !g, P = ci(h), I = lp(P), L = e.modifiersData.popperOffsets, U = e.rects.reference, z = e.rects.popper, K = typeof w == "function" ? w(Object.assign({}, e.rects, {
|
|
6262
6262
|
placement: e.placement
|
|
6263
6263
|
})) : w, J = typeof K == "number" ? {
|
|
6264
6264
|
mainAxis: K,
|
|
@@ -6272,14 +6272,14 @@ function up(t) {
|
|
|
6272
6272
|
};
|
|
6273
6273
|
if (L) {
|
|
6274
6274
|
if (o) {
|
|
6275
|
-
var G, le = P === "y" ? Ne : Xe, se = P === "y" ? qe : ft, ee = P === "y" ? "height" : "width", E = L[P], T = E +
|
|
6275
|
+
var G, le = P === "y" ? Ne : Xe, se = P === "y" ? qe : ft, ee = P === "y" ? "height" : "width", E = L[P], T = E + C[le], k = E - C[se], R = m ? -z[ee] / 2 : 0, b = g === qt ? U[ee] : z[ee], V = g === qt ? -z[ee] : -U[ee], oe = e.elements.arrow, ne = m && oe ? li(oe) : {
|
|
6276
6276
|
width: 0,
|
|
6277
6277
|
height: 0
|
|
6278
|
-
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pi(), H = Z[le], x = Z[se], he = Va(0, U[ee], ne[ee]), ke = y ? U[ee] / 2 - R - he - H - J.mainAxis : b - he - H - J.mainAxis, Kt = y ? -U[ee] / 2 + R + he + x + J.mainAxis : V + he + x + J.mainAxis, Gt = e.elements.arrow && ns(e.elements.arrow), nt = Gt ? P === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - nt, it = E + Kt - $a, ka = Va(
|
|
6278
|
+
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pi(), H = Z[le], x = Z[se], he = Va(0, U[ee], ne[ee]), ke = y ? U[ee] / 2 - R - he - H - J.mainAxis : b - he - H - J.mainAxis, Kt = y ? -U[ee] / 2 + R + he + x + J.mainAxis : V + he + x + J.mainAxis, Gt = e.elements.arrow && ns(e.elements.arrow), nt = Gt ? P === "y" ? Gt.clientTop || 0 : Gt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - nt, it = E + Kt - $a, ka = Va(m ? Wa(T, rs) : T, E, m ? St(k, it) : k);
|
|
6279
6279
|
L[P] = ka, j[P] = ka - E;
|
|
6280
6280
|
}
|
|
6281
6281
|
if (l) {
|
|
6282
|
-
var ot, Ue = P === "x" ? Ne : Xe, Ie = P === "x" ? qe : ft, Re = L[I], Ye = I === "y" ? "height" : "width", Xt = Re +
|
|
6282
|
+
var ot, Ue = P === "x" ? Ne : Xe, Ie = P === "x" ? qe : ft, Re = L[I], Ye = I === "y" ? "height" : "width", Xt = Re + C[Ue], Sa = Re - C[Ie], Le = [Ne, Xe].indexOf(h) !== -1, Qt = (ot = ae == null ? void 0 : ae[I]) != null ? ot : 0, lt = Le ? Xt : Re - U[Ye] - z[Ye] - Qt + J.altAxis, yt = Le ? Re + U[Ye] + z[Ye] - Qt - J.altAxis : Sa, Aa = m && Le ? rp(lt, Re, yt) : Va(m ? lt : Xt, Re, m ? yt : Sa);
|
|
6283
6283
|
L[I] = Aa, j[I] = Aa - Re;
|
|
6284
6284
|
}
|
|
6285
6285
|
e.modifiersData[s] = j;
|
|
@@ -6319,7 +6319,7 @@ function vp(t, e) {
|
|
|
6319
6319
|
return c.indexOf($) >= 0;
|
|
6320
6320
|
});
|
|
6321
6321
|
p.length === 0 && (p = v);
|
|
6322
|
-
var
|
|
6322
|
+
var m = p.reduce(function($, w) {
|
|
6323
6323
|
return $[w] = zs(t, {
|
|
6324
6324
|
placement: w,
|
|
6325
6325
|
boundary: n,
|
|
@@ -6327,8 +6327,8 @@ function vp(t, e) {
|
|
|
6327
6327
|
padding: i
|
|
6328
6328
|
})[ct(w)], $;
|
|
6329
6329
|
}, {});
|
|
6330
|
-
return Object.keys(
|
|
6331
|
-
return
|
|
6330
|
+
return Object.keys(m).sort(function($, w) {
|
|
6331
|
+
return m[$] - m[w];
|
|
6332
6332
|
});
|
|
6333
6333
|
}
|
|
6334
6334
|
function fp(t) {
|
|
@@ -6340,7 +6340,7 @@ function fp(t) {
|
|
|
6340
6340
|
function hp(t) {
|
|
6341
6341
|
var e = t.state, a = t.options, s = t.name;
|
|
6342
6342
|
if (!e.modifiersData[s]._skip) {
|
|
6343
|
-
for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, c = a.padding, u = a.boundary, v = a.rootBoundary, p = a.altBoundary,
|
|
6343
|
+
for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, c = a.padding, u = a.boundary, v = a.rootBoundary, p = a.altBoundary, m = a.flipVariations, $ = m === void 0 ? !0 : m, w = a.allowedAutoPlacements, C = e.options.placement, h = ct(C), g = h === C, y = r || (g || !$ ? [Da(C)] : fp(C)), P = [C].concat(y).reduce(function(ne, Z) {
|
|
6344
6344
|
return ne.concat(ct(Z) === Ws ? vp(e, {
|
|
6345
6345
|
placement: Z,
|
|
6346
6346
|
boundary: u,
|
|
@@ -6397,11 +6397,11 @@ var mp = {
|
|
|
6397
6397
|
}
|
|
6398
6398
|
};
|
|
6399
6399
|
function gp(t, e, a) {
|
|
6400
|
-
const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, c = a.dropdown, u = q(!1), v = q(null), p = q(null),
|
|
6401
|
-
u.value || s.value || (u.value = !0, e.emit("open", l),
|
|
6400
|
+
const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, c = a.dropdown, u = q(!1), v = q(null), p = q(null), m = M(() => n.value || o.value), $ = M(() => i.value === "top" && p.value === "bottom" || i.value === "bottom" && p.value !== "top" ? "bottom" : "top"), w = () => {
|
|
6401
|
+
u.value || s.value || (u.value = !0, e.emit("open", l), m.value && Me(() => {
|
|
6402
6402
|
h();
|
|
6403
6403
|
}));
|
|
6404
|
-
},
|
|
6404
|
+
}, C = () => {
|
|
6405
6405
|
u.value && (u.value = !1, e.emit("close", l));
|
|
6406
6406
|
}, h = () => {
|
|
6407
6407
|
if (!v.value)
|
|
@@ -6419,7 +6419,7 @@ function gp(t, e, a) {
|
|
|
6419
6419
|
}
|
|
6420
6420
|
]
|
|
6421
6421
|
})), v.value.update();
|
|
6422
|
-
},
|
|
6422
|
+
}, g = (y) => {
|
|
6423
6423
|
for (; y && y !== document.body; ) {
|
|
6424
6424
|
if (getComputedStyle(y).position === "fixed")
|
|
6425
6425
|
return !0;
|
|
@@ -6428,8 +6428,8 @@ function gp(t, e, a) {
|
|
|
6428
6428
|
return !1;
|
|
6429
6429
|
};
|
|
6430
6430
|
return It(() => {
|
|
6431
|
-
|
|
6432
|
-
strategy:
|
|
6431
|
+
m.value && (v.value = op(r.value, c.value, {
|
|
6432
|
+
strategy: g(r.value) ? (
|
|
6433
6433
|
/* istanbul ignore next: UI feature */
|
|
6434
6434
|
"fixed"
|
|
6435
6435
|
) : void 0,
|
|
@@ -6460,49 +6460,49 @@ function gp(t, e, a) {
|
|
|
6460
6460
|
]
|
|
6461
6461
|
}));
|
|
6462
6462
|
}), In(() => {
|
|
6463
|
-
!
|
|
6463
|
+
!m.value || !v.value || (v.value.destroy(), v.value = null);
|
|
6464
6464
|
}), {
|
|
6465
6465
|
popper: v,
|
|
6466
6466
|
isOpen: u,
|
|
6467
6467
|
open: w,
|
|
6468
|
-
close:
|
|
6468
|
+
close: C,
|
|
6469
6469
|
placement: $,
|
|
6470
6470
|
updatePopper: h
|
|
6471
6471
|
};
|
|
6472
6472
|
}
|
|
6473
6473
|
function Cp(t, e, a) {
|
|
6474
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, c = a.clearSearch, u = a.isOpen, v = a.wrapper, p = a.tags,
|
|
6474
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, c = a.clearSearch, u = a.isOpen, v = a.wrapper, p = a.tags, m = q(!1), $ = q(!1), w = M(() => s.value || n.value ? -1 : 0), C = () => {
|
|
6475
6475
|
s.value && i.value.blur(), v.value.blur();
|
|
6476
6476
|
}, h = () => {
|
|
6477
6477
|
s.value && !n.value && i.value.focus();
|
|
6478
|
-
},
|
|
6479
|
-
n.value || (
|
|
6478
|
+
}, g = (z = !0) => {
|
|
6479
|
+
n.value || (m.value = !0, z && l());
|
|
6480
6480
|
}, y = () => {
|
|
6481
|
-
|
|
6482
|
-
|
|
6481
|
+
m.value = !1, setTimeout(() => {
|
|
6482
|
+
m.value || (r(), o.value && c());
|
|
6483
6483
|
}, 1);
|
|
6484
6484
|
};
|
|
6485
6485
|
return {
|
|
6486
6486
|
tabindex: w,
|
|
6487
|
-
isActive:
|
|
6487
|
+
isActive: m,
|
|
6488
6488
|
mouseClicked: $,
|
|
6489
|
-
blur:
|
|
6489
|
+
blur: C,
|
|
6490
6490
|
focus: h,
|
|
6491
|
-
activate:
|
|
6491
|
+
activate: g,
|
|
6492
6492
|
deactivate: y,
|
|
6493
6493
|
handleFocusIn: (z) => {
|
|
6494
|
-
z.target.closest("[data-tags]") && z.target.nodeName !== "INPUT" || z.target.closest("[data-clear]") ||
|
|
6494
|
+
z.target.closest("[data-tags]") && z.target.nodeName !== "INPUT" || z.target.closest("[data-clear]") || g($.value);
|
|
6495
6495
|
},
|
|
6496
6496
|
handleFocusOut: () => {
|
|
6497
6497
|
y();
|
|
6498
6498
|
},
|
|
6499
6499
|
handleCaretClick: () => {
|
|
6500
|
-
y(),
|
|
6500
|
+
y(), C();
|
|
6501
6501
|
},
|
|
6502
6502
|
handleMousedown: (z) => {
|
|
6503
6503
|
$.value = !0, u.value && (z.target.isEqualNode(v.value) || z.target.isEqualNode(p.value)) ? setTimeout(() => {
|
|
6504
6504
|
y();
|
|
6505
|
-
}, 0) : !u.value && (document.activeElement.isEqualNode(v.value) || document.activeElement.isEqualNode(i.value)) &&
|
|
6505
|
+
}, 0) : !u.value && (document.activeElement.isEqualNode(v.value) || document.activeElement.isEqualNode(i.value)) && g(), setTimeout(() => {
|
|
6506
6506
|
$.value = !1;
|
|
6507
6507
|
}, 0);
|
|
6508
6508
|
}
|
|
@@ -6520,9 +6520,9 @@ function _p(t, e, a) {
|
|
|
6520
6520
|
addOptionOn: u,
|
|
6521
6521
|
createTag: v,
|
|
6522
6522
|
createOption: p,
|
|
6523
|
-
reverse:
|
|
6524
|
-
} = Ee(t), $ = Lt().proxy, w = a.iv,
|
|
6525
|
-
s.value === "tags" && !l.value && le.value && i.value && !c.value && y(G.value[G.value.map((k) => k[r.value]).indexOf(
|
|
6523
|
+
reverse: m
|
|
6524
|
+
} = Ee(t), $ = Lt().proxy, w = a.iv, C = a.update, h = a.deselect, g = a.search, y = a.setPointer, P = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, U = a.multiselect, z = a.wrapper, K = a.tags, J = a.isOpen, ae = a.open, j = a.blur, G = a.fo, le = M(() => v.value || p.value || !1), se = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
|
|
6525
|
+
s.value === "tags" && !l.value && le.value && i.value && !c.value && y(G.value[G.value.map((k) => k[r.value]).indexOf(g.value)]);
|
|
6526
6526
|
};
|
|
6527
6527
|
return {
|
|
6528
6528
|
handleKeydown: (k) => {
|
|
@@ -6530,7 +6530,7 @@ function _p(t, e, a) {
|
|
|
6530
6530
|
let R, b;
|
|
6531
6531
|
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && s.value === "tags" && (R = [...U.value.querySelectorAll("[data-tags] > *")].filter((V) => V !== K.value), b = R.findIndex((V) => V === document.activeElement)), k.key) {
|
|
6532
6532
|
case "Backspace":
|
|
6533
|
-
if (s.value === "single" || i.value && [null, ""].indexOf(
|
|
6533
|
+
if (s.value === "single" || i.value && [null, ""].indexOf(g.value) === -1 || w.value.length === 0)
|
|
6534
6534
|
return;
|
|
6535
6535
|
let V = w.value.filter((oe) => !oe.disabled && oe.remove !== !1);
|
|
6536
6536
|
V.length && h(V[V.length - 1]);
|
|
@@ -6539,7 +6539,7 @@ function _p(t, e, a) {
|
|
|
6539
6539
|
if (k.preventDefault(), k.keyCode === 229)
|
|
6540
6540
|
return;
|
|
6541
6541
|
if (b !== -1 && b !== void 0) {
|
|
6542
|
-
|
|
6542
|
+
C([...w.value].filter((oe, ne) => ne !== b)), b === R.length - 1 && (R.length - 1 ? R[R.length - 2].focus() : i.value ? K.value.querySelector("input").focus() : z.value.focus());
|
|
6543
6543
|
return;
|
|
6544
6544
|
}
|
|
6545
6545
|
if (se.value.indexOf("enter") === -1 && le.value)
|
|
@@ -6601,7 +6601,7 @@ function yp(t, e, a) {
|
|
|
6601
6601
|
disabled: n,
|
|
6602
6602
|
showOptions: o,
|
|
6603
6603
|
breakTags: i
|
|
6604
|
-
} = Ee(t), l = a.isOpen, r = a.isPointed, c = a.isSelected, u = a.isDisabled, v = a.isActive, p = a.canPointGroups,
|
|
6604
|
+
} = Ee(t), l = a.isOpen, r = a.isPointed, c = a.isSelected, u = a.isDisabled, v = a.isActive, p = a.canPointGroups, m = a.resolving, $ = a.fo, w = a.placement, C = M(() => ({
|
|
6605
6605
|
container: "multiselect",
|
|
6606
6606
|
containerDisabled: "is-disabled",
|
|
6607
6607
|
containerOpen: "is-open",
|
|
@@ -6656,10 +6656,10 @@ function yp(t, e, a) {
|
|
|
6656
6656
|
assist: "multiselect-assistive-text",
|
|
6657
6657
|
spacer: "multiselect-spacer",
|
|
6658
6658
|
...s.value
|
|
6659
|
-
})), h = M(() => !!(l.value && o.value && (!
|
|
6659
|
+
})), h = M(() => !!(l.value && o.value && (!m.value || m.value && $.value.length)));
|
|
6660
6660
|
return {
|
|
6661
6661
|
classList: M(() => {
|
|
6662
|
-
const y =
|
|
6662
|
+
const y = C.value;
|
|
6663
6663
|
return {
|
|
6664
6664
|
container: [y.container].concat(n.value ? y.containerDisabled : []).concat(h.value && w.value === "top" ? y.containerOpenTop : []).concat(h.value && w.value !== "top" ? y.containerOpen : []).concat(v.value ? y.containerActive : []),
|
|
6665
6665
|
wrapper: y.wrapper,
|
|
@@ -6709,12 +6709,12 @@ function bp(t, e, a) {
|
|
|
6709
6709
|
const {
|
|
6710
6710
|
limit: s,
|
|
6711
6711
|
infinite: n
|
|
6712
|
-
} = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, c = a.eo, u = q(null), v = q(null), p = M(() => i.value < r.value.length),
|
|
6713
|
-
const { isIntersecting:
|
|
6714
|
-
if (
|
|
6715
|
-
const
|
|
6712
|
+
} = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, c = a.eo, u = q(null), v = q(null), p = M(() => i.value < r.value.length), m = (w) => {
|
|
6713
|
+
const { isIntersecting: C, target: h } = w[0];
|
|
6714
|
+
if (C) {
|
|
6715
|
+
const g = h.offsetParent, y = g.scrollTop;
|
|
6716
6716
|
i.value += s.value == -1 ? 10 : s.value, Me(() => {
|
|
6717
|
-
|
|
6717
|
+
g.scrollTop = y;
|
|
6718
6718
|
});
|
|
6719
6719
|
}
|
|
6720
6720
|
}, $ = () => {
|
|
@@ -6727,7 +6727,7 @@ function bp(t, e, a) {
|
|
|
6727
6727
|
}, { flush: "post" }), ce(c, () => {
|
|
6728
6728
|
n.value && $();
|
|
6729
6729
|
}, { immediate: !1, flush: "post" }), It(() => {
|
|
6730
|
-
window && window.IntersectionObserver && (u.value = new IntersectionObserver(
|
|
6730
|
+
window && window.IntersectionObserver && (u.value = new IntersectionObserver(m));
|
|
6731
6731
|
}), {
|
|
6732
6732
|
hasMore: p,
|
|
6733
6733
|
infiniteLoader: v
|
|
@@ -6743,22 +6743,22 @@ function wp(t, e, a) {
|
|
|
6743
6743
|
groupLabel: r,
|
|
6744
6744
|
aria: c,
|
|
6745
6745
|
searchable: u
|
|
6746
|
-
} = Ee(t), v = a.pointer, p = a.iv,
|
|
6746
|
+
} = Ee(t), v = a.pointer, p = a.iv, m = a.hasSelected, $ = a.multipleLabelText, w = q(null), C = M(() => {
|
|
6747
6747
|
let j = [];
|
|
6748
6748
|
return n && n.value && j.push(n.value), j.push("assist"), j.join("-");
|
|
6749
6749
|
}), h = M(() => {
|
|
6750
6750
|
let j = [];
|
|
6751
6751
|
return n && n.value && j.push(n.value), j.push("multiselect-options"), j.join("-");
|
|
6752
|
-
}),
|
|
6752
|
+
}), g = M(() => {
|
|
6753
6753
|
let j = [];
|
|
6754
6754
|
if (n && n.value && j.push(n.value), v.value)
|
|
6755
6755
|
return j.push(v.value.group ? "multiselect-group" : "multiselect-option"), j.push(v.value.group ? v.value.index : v.value[o.value]), j.join("-");
|
|
6756
6756
|
}), y = M(() => s.value), P = M(() => l.value !== "single"), I = M(() => {
|
|
6757
6757
|
let j = "";
|
|
6758
|
-
return l.value === "single" &&
|
|
6758
|
+
return l.value === "single" && m.value && (j += p.value[i.value]), l.value === "multiple" && m.value && (j += $.value), l.value === "tags" && m.value && (j += p.value.map((G) => G[i.value]).join(", ")), j;
|
|
6759
6759
|
}), L = M(() => {
|
|
6760
6760
|
let j = { ...c.value };
|
|
6761
|
-
return u.value && (j["aria-labelledby"] = j["aria-labelledby"] ? `${
|
|
6761
|
+
return u.value && (j["aria-labelledby"] = j["aria-labelledby"] ? `${C.value} ${j["aria-labelledby"]}` : C.value, I.value && j["aria-label"] && (j["aria-label"] = `${I.value}, ${j["aria-label"]}`)), j;
|
|
6762
6762
|
}), U = (j) => {
|
|
6763
6763
|
let G = [];
|
|
6764
6764
|
return n && n.value && G.push(n.value), G.push("multiselect-option"), G.push(j[o.value]), G.join("-");
|
|
@@ -6780,11 +6780,11 @@ function wp(t, e, a) {
|
|
|
6780
6780
|
}), {
|
|
6781
6781
|
arias: L,
|
|
6782
6782
|
ariaLabel: I,
|
|
6783
|
-
ariaAssist:
|
|
6783
|
+
ariaAssist: C,
|
|
6784
6784
|
ariaControls: h,
|
|
6785
6785
|
ariaPlaceholder: y,
|
|
6786
6786
|
ariaMultiselectable: P,
|
|
6787
|
-
ariaActiveDescendant:
|
|
6787
|
+
ariaActiveDescendant: g,
|
|
6788
6788
|
ariaOptionId: U,
|
|
6789
6789
|
ariaOptionLabel: K,
|
|
6790
6790
|
ariaGroupId: z,
|
|
@@ -7808,34 +7808,34 @@ const Kp = { class: "ao-tasks" }, Gp = { class: "ao-tasks__list" }, Xp = ["id",
|
|
|
7808
7808
|
};
|
|
7809
7809
|
return (v, p) => (d(), _("div", Kp, [
|
|
7810
7810
|
f("ul", Gp, [
|
|
7811
|
-
(d(!0), _(fe, null, _e(v.tasks, (
|
|
7811
|
+
(d(!0), _(fe, null, _e(v.tasks, (m) => {
|
|
7812
7812
|
var $, w;
|
|
7813
7813
|
return d(), _("li", {
|
|
7814
|
-
key:
|
|
7814
|
+
key: m.id,
|
|
7815
7815
|
class: "ao-subtask"
|
|
7816
7816
|
}, [
|
|
7817
|
-
(($ = v.isCheckable) == null ? void 0 : $.call(v,
|
|
7817
|
+
(($ = v.isCheckable) == null ? void 0 : $.call(v, m)) ?? !1 ? (d(), D(re, {
|
|
7818
7818
|
key: 0,
|
|
7819
7819
|
class: "ao-subtask__check",
|
|
7820
|
-
"icon-name":
|
|
7820
|
+
"icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
7821
7821
|
disabled: !v.isEditable,
|
|
7822
7822
|
variant: "ghost",
|
|
7823
7823
|
color: "primary",
|
|
7824
|
-
onClick: () => l(
|
|
7824
|
+
onClick: () => l(m.id, !m.isDone)
|
|
7825
7825
|
}, null, 8, ["icon-name", "disabled", "onClick"])) : O("", !0),
|
|
7826
7826
|
f("input", {
|
|
7827
|
-
id:
|
|
7828
|
-
value:
|
|
7827
|
+
id: m.id,
|
|
7828
|
+
value: m.name,
|
|
7829
7829
|
readonly: !v.isEditable,
|
|
7830
|
-
class: X(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked":
|
|
7830
|
+
class: X(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": m.isDone }]),
|
|
7831
7831
|
type: "text",
|
|
7832
|
-
onChange: (
|
|
7832
|
+
onChange: (C) => i(C, m.id),
|
|
7833
7833
|
onKeyup: dt(u, ["enter"])
|
|
7834
7834
|
}, null, 42, Xp),
|
|
7835
7835
|
qa(". "),
|
|
7836
7836
|
!v.isTemplate && v.users ? (d(), D(Se, {
|
|
7837
7837
|
key: 1,
|
|
7838
|
-
value: (w =
|
|
7838
|
+
value: (w = m.assignee) != null && w.id ? [m.assignee.id] : [],
|
|
7839
7839
|
options: n.value,
|
|
7840
7840
|
"close-on-select": !0,
|
|
7841
7841
|
searchable: !0,
|
|
@@ -7845,14 +7845,14 @@ const Kp = { class: "ao-tasks" }, Gp = { class: "ao-tasks__list" }, Xp = ["id",
|
|
|
7845
7845
|
placeholder: v.$t("feed.filters.assignee.placeholder"),
|
|
7846
7846
|
disabled: !v.isEditable,
|
|
7847
7847
|
caret: v.isEditable,
|
|
7848
|
-
onChange: (
|
|
7848
|
+
onChange: (C) => c(C, m.id)
|
|
7849
7849
|
}, {
|
|
7850
|
-
tag: F(({ option:
|
|
7850
|
+
tag: F(({ option: C, handleTagRemove: h }) => [
|
|
7851
7851
|
A(et, {
|
|
7852
|
-
"user-name":
|
|
7853
|
-
"avatar-url":
|
|
7852
|
+
"user-name": C.label,
|
|
7853
|
+
"avatar-url": C.avatar,
|
|
7854
7854
|
"is-closable": !0,
|
|
7855
|
-
onClose: (
|
|
7855
|
+
onClose: (g) => h(C, g)
|
|
7856
7856
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
7857
7857
|
]),
|
|
7858
7858
|
_: 2
|
|
@@ -7864,7 +7864,7 @@ const Kp = { class: "ao-tasks" }, Gp = { class: "ao-tasks__list" }, Xp = ["id",
|
|
|
7864
7864
|
size: "sm",
|
|
7865
7865
|
variant: "ghost",
|
|
7866
7866
|
color: "neutral",
|
|
7867
|
-
onClick: () => r(
|
|
7867
|
+
onClick: () => r(m.id)
|
|
7868
7868
|
}, null, 8, ["onClick"])) : O("", !0)
|
|
7869
7869
|
]);
|
|
7870
7870
|
}), 128))
|
|
@@ -8017,22 +8017,22 @@ const pv = { class: "ao-comment" }, vv = { class: "ao-comment__created-at" }, fv
|
|
|
8017
8017
|
const w = a.user;
|
|
8018
8018
|
return w ? `${w == null ? void 0 : w.firstName} ${w == null ? void 0 : w.lastName}` : null;
|
|
8019
8019
|
}), n = q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = Pn(n), c = M(() => {
|
|
8020
|
-
const w = a.editedAt && ua(a.editedAt),
|
|
8021
|
-
return
|
|
8020
|
+
const w = a.editedAt && ua(a.editedAt), C = ua(a.createdAt), h = /* @__PURE__ */ new Date(), g = w ?? C;
|
|
8021
|
+
return g && c3(g, h);
|
|
8022
8022
|
}), u = M(() => o.value ? "textarea" : "p"), v = r(), p = l((w) => {
|
|
8023
8023
|
e("edit", w);
|
|
8024
|
-
}),
|
|
8024
|
+
}), m = () => {
|
|
8025
8025
|
e("remove");
|
|
8026
8026
|
}, $ = q(2);
|
|
8027
8027
|
return Ri(() => {
|
|
8028
8028
|
Me(() => {
|
|
8029
8029
|
var w;
|
|
8030
8030
|
if (!o.value) {
|
|
8031
|
-
const
|
|
8032
|
-
$.value =
|
|
8031
|
+
const C = (w = n.value) == null ? void 0 : w.getClientRects().length;
|
|
8032
|
+
$.value = C || 2;
|
|
8033
8033
|
}
|
|
8034
8034
|
});
|
|
8035
|
-
}), (w,
|
|
8035
|
+
}), (w, C) => {
|
|
8036
8036
|
var h;
|
|
8037
8037
|
return d(), _("li", pv, [
|
|
8038
8038
|
s.value ? (d(), D(et, {
|
|
@@ -8085,7 +8085,7 @@ const pv = { class: "ao-comment" }, vv = { class: "ao-comment__created-at" }, fv
|
|
|
8085
8085
|
size: "sm",
|
|
8086
8086
|
variant: "ghost",
|
|
8087
8087
|
color: "neutral",
|
|
8088
|
-
onClick:
|
|
8088
|
+
onClick: m
|
|
8089
8089
|
}, null, 8, ["label"]),
|
|
8090
8090
|
A(re, {
|
|
8091
8091
|
label: w.$t("activity.comment.edit"),
|
|
@@ -8114,8 +8114,8 @@ const Cv = { class: "ao-comments__header" }, _v = ["onSubmit"], yv = ["placehold
|
|
|
8114
8114
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
8115
8115
|
setup(t, { emit: e }) {
|
|
8116
8116
|
const a = t, s = M(() => (a.comments || []).toSorted(
|
|
8117
|
-
(p,
|
|
8118
|
-
)), n = (v) => a.users.find((
|
|
8117
|
+
(p, m) => e0(ua(p.createdAt), ua(m.createdAt))
|
|
8118
|
+
)), n = (v) => a.users.find((m) => m.id === v), o = q();
|
|
8119
8119
|
Me(() => {
|
|
8120
8120
|
o.value && (o.value.scrollTop = o.value.scrollHeight);
|
|
8121
8121
|
});
|
|
@@ -8138,7 +8138,7 @@ const Cv = { class: "ao-comments__header" }, _v = ["onSubmit"], yv = ["placehold
|
|
|
8138
8138
|
e("removeComment", { id: v });
|
|
8139
8139
|
};
|
|
8140
8140
|
return (v, p) => {
|
|
8141
|
-
var
|
|
8141
|
+
var m;
|
|
8142
8142
|
return d(), _("div", {
|
|
8143
8143
|
ref_key: "commentsContainer",
|
|
8144
8144
|
ref: o,
|
|
@@ -8174,7 +8174,7 @@ const Cv = { class: "ao-comments__header" }, _v = ["onSubmit"], yv = ["placehold
|
|
|
8174
8174
|
])
|
|
8175
8175
|
], 40, _v)
|
|
8176
8176
|
]),
|
|
8177
|
-
((
|
|
8177
|
+
((m = s.value) == null ? void 0 : m.length) > 0 ? (d(), _("ul", wv, [
|
|
8178
8178
|
(d(!0), _(fe, null, _e(s.value, ($) => (d(), D(gv, {
|
|
8179
8179
|
key: $.id,
|
|
8180
8180
|
user: n($.author.id),
|
|
@@ -8315,7 +8315,7 @@ const As = /* @__PURE__ */ Y({
|
|
|
8315
8315
|
}), p = M(() => a.templateActivities.filter((b) => b.id !== a.activity.id).map((b) => ({
|
|
8316
8316
|
label: b.name,
|
|
8317
8317
|
value: b.id
|
|
8318
|
-
}))),
|
|
8318
|
+
}))), m = M({
|
|
8319
8319
|
get() {
|
|
8320
8320
|
var b;
|
|
8321
8321
|
return (b = a.activity.dependingOn) == null ? void 0 : b.map((V) => V.id);
|
|
@@ -8343,7 +8343,7 @@ const As = /* @__PURE__ */ Y({
|
|
|
8343
8343
|
blocking: b
|
|
8344
8344
|
});
|
|
8345
8345
|
}
|
|
8346
|
-
}),
|
|
8346
|
+
}), C = M(() => p.value.map((b) => {
|
|
8347
8347
|
var V;
|
|
8348
8348
|
return {
|
|
8349
8349
|
...b,
|
|
@@ -8353,7 +8353,7 @@ const As = /* @__PURE__ */ Y({
|
|
|
8353
8353
|
};
|
|
8354
8354
|
})), h = (b) => {
|
|
8355
8355
|
e("addSubtask", b);
|
|
8356
|
-
},
|
|
8356
|
+
}, g = (b) => {
|
|
8357
8357
|
e("updateSubtask", b);
|
|
8358
8358
|
}, y = (b) => {
|
|
8359
8359
|
e("deleteSubtask", b);
|
|
@@ -8574,7 +8574,7 @@ const As = /* @__PURE__ */ Y({
|
|
|
8574
8574
|
"is-editable": s.value,
|
|
8575
8575
|
"is-template": b.isTemplate,
|
|
8576
8576
|
onAdd: h,
|
|
8577
|
-
onUpdate:
|
|
8577
|
+
onUpdate: g,
|
|
8578
8578
|
onDelete: y
|
|
8579
8579
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8580
8580
|
])
|
|
@@ -8741,8 +8741,8 @@ const As = /* @__PURE__ */ Y({
|
|
|
8741
8741
|
f("label", Cf, [
|
|
8742
8742
|
f("span", _f, W(b.$t("activity.dependingOn.label")), 1),
|
|
8743
8743
|
A(Se, {
|
|
8744
|
-
modelValue:
|
|
8745
|
-
"onUpdate:modelValue": V[8] || (V[8] = (H) =>
|
|
8744
|
+
modelValue: m.value,
|
|
8745
|
+
"onUpdate:modelValue": V[8] || (V[8] = (H) => m.value = H),
|
|
8746
8746
|
class: "ao-activity-details__multiselect",
|
|
8747
8747
|
mode: "tags",
|
|
8748
8748
|
"close-on-select": !1,
|
|
@@ -8763,7 +8763,7 @@ const As = /* @__PURE__ */ Y({
|
|
|
8763
8763
|
mode: "tags",
|
|
8764
8764
|
"close-on-select": !1,
|
|
8765
8765
|
searchable: !0,
|
|
8766
|
-
options:
|
|
8766
|
+
options: C.value,
|
|
8767
8767
|
disabled: !s.value,
|
|
8768
8768
|
caret: s.value
|
|
8769
8769
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
@@ -8824,12 +8824,12 @@ const Sf = /* @__PURE__ */ Y({
|
|
|
8824
8824
|
});
|
|
8825
8825
|
}
|
|
8826
8826
|
}), l = M(() => {
|
|
8827
|
-
var
|
|
8828
|
-
return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (
|
|
8827
|
+
var g;
|
|
8828
|
+
return !a.templateActivities || !a.templateMilestones || !a.templatePhases ? null : (g = {
|
|
8829
8829
|
[me.ACTIVITIES]: a.templateActivities,
|
|
8830
8830
|
[me.MILESTONES]: a.templateMilestones,
|
|
8831
8831
|
[me.PHASES]: a.templatePhases
|
|
8832
|
-
}[s.value]) == null ? void 0 :
|
|
8832
|
+
}[s.value]) == null ? void 0 : g.map((y) => ({
|
|
8833
8833
|
value: y.id,
|
|
8834
8834
|
label: y.name
|
|
8835
8835
|
}));
|
|
@@ -8847,7 +8847,7 @@ const Sf = /* @__PURE__ */ Y({
|
|
|
8847
8847
|
set(h) {
|
|
8848
8848
|
e("update:rule", { ...a.rule, trigger: h });
|
|
8849
8849
|
}
|
|
8850
|
-
}),
|
|
8850
|
+
}), m = M(() => Object.values(Y2)), $ = M({
|
|
8851
8851
|
get() {
|
|
8852
8852
|
return a.rule.duration;
|
|
8853
8853
|
},
|
|
@@ -8861,31 +8861,31 @@ const Sf = /* @__PURE__ */ Y({
|
|
|
8861
8861
|
set(h) {
|
|
8862
8862
|
e("update:rule", { ...a.rule, durationUnit: h });
|
|
8863
8863
|
}
|
|
8864
|
-
}),
|
|
8865
|
-
return (h,
|
|
8864
|
+
}), C = M(() => Object.values(x2));
|
|
8865
|
+
return (h, g) => (d(), D(ht(h.tagName), { class: "ao-rule-line" }, {
|
|
8866
8866
|
default: F(() => [
|
|
8867
8867
|
A(Q(ut), {
|
|
8868
8868
|
modelValue: n.value,
|
|
8869
|
-
"onUpdate:modelValue":
|
|
8869
|
+
"onUpdate:modelValue": g[0] || (g[0] = (y) => n.value = y),
|
|
8870
8870
|
options: o.value
|
|
8871
8871
|
}, null, 8, ["modelValue", "options"]),
|
|
8872
8872
|
A(Q(ut), {
|
|
8873
8873
|
modelValue: i.value,
|
|
8874
|
-
"onUpdate:modelValue":
|
|
8874
|
+
"onUpdate:modelValue": g[1] || (g[1] = (y) => i.value = y),
|
|
8875
8875
|
options: l.value
|
|
8876
8876
|
}, null, 8, ["modelValue", "options"]),
|
|
8877
8877
|
A(Q(ut), {
|
|
8878
8878
|
modelValue: p.value,
|
|
8879
|
-
"onUpdate:modelValue":
|
|
8880
|
-
options:
|
|
8879
|
+
"onUpdate:modelValue": g[2] || (g[2] = (y) => p.value = y),
|
|
8880
|
+
options: m.value
|
|
8881
8881
|
}, null, 8, ["modelValue", "options"]),
|
|
8882
8882
|
A(Q(ut), {
|
|
8883
8883
|
modelValue: c.value,
|
|
8884
|
-
"onUpdate:modelValue":
|
|
8884
|
+
"onUpdate:modelValue": g[3] || (g[3] = (y) => c.value = y),
|
|
8885
8885
|
options: u.value
|
|
8886
8886
|
}, null, 8, ["modelValue", "options"]),
|
|
8887
8887
|
De(f("input", {
|
|
8888
|
-
"onUpdate:modelValue":
|
|
8888
|
+
"onUpdate:modelValue": g[4] || (g[4] = (y) => $.value = y),
|
|
8889
8889
|
type: "number",
|
|
8890
8890
|
min: "0"
|
|
8891
8891
|
}, null, 512), [
|
|
@@ -8898,14 +8898,14 @@ const Sf = /* @__PURE__ */ Y({
|
|
|
8898
8898
|
]),
|
|
8899
8899
|
A(Q(ut), {
|
|
8900
8900
|
modelValue: w.value,
|
|
8901
|
-
"onUpdate:modelValue":
|
|
8902
|
-
options:
|
|
8901
|
+
"onUpdate:modelValue": g[5] || (g[5] = (y) => w.value = y),
|
|
8902
|
+
options: C.value
|
|
8903
8903
|
}, null, 8, ["modelValue", "options"]),
|
|
8904
8904
|
A(re, {
|
|
8905
8905
|
class: "ao-rule-line__remove",
|
|
8906
8906
|
"icon-name": "CloseRounded",
|
|
8907
8907
|
variant: "ghost",
|
|
8908
|
-
onClick:
|
|
8908
|
+
onClick: g[6] || (g[6] = (y) => h.$emit("close"))
|
|
8909
8909
|
})
|
|
8910
8910
|
]),
|
|
8911
8911
|
_: 1
|
|
@@ -9067,7 +9067,7 @@ const Of = {
|
|
|
9067
9067
|
rank: T
|
|
9068
9068
|
}
|
|
9069
9069
|
});
|
|
9070
|
-
},
|
|
9070
|
+
}, m = (E) => {
|
|
9071
9071
|
e("updateItem", {
|
|
9072
9072
|
templateId: a.templateId,
|
|
9073
9073
|
id: a.templateId,
|
|
@@ -9089,7 +9089,7 @@ const Of = {
|
|
|
9089
9089
|
itemType: me.PHASES,
|
|
9090
9090
|
data: { name: T }
|
|
9091
9091
|
});
|
|
9092
|
-
},
|
|
9092
|
+
}, C = (E) => {
|
|
9093
9093
|
e("updateItem", E);
|
|
9094
9094
|
}, h = (E) => {
|
|
9095
9095
|
if (!i.value)
|
|
@@ -9109,7 +9109,7 @@ const Of = {
|
|
|
9109
9109
|
phaseId: E.phaseId
|
|
9110
9110
|
}
|
|
9111
9111
|
});
|
|
9112
|
-
},
|
|
9112
|
+
}, g = (E) => {
|
|
9113
9113
|
e("removeItem", {
|
|
9114
9114
|
itemType: me.MILESTONES,
|
|
9115
9115
|
templateId: a.templateId,
|
|
@@ -9222,7 +9222,7 @@ const Of = {
|
|
|
9222
9222
|
level: 2,
|
|
9223
9223
|
"is-editable": !0,
|
|
9224
9224
|
"onUpdate:title": T[0] || (T[0] = (Z) => {
|
|
9225
|
-
|
|
9225
|
+
m(Z);
|
|
9226
9226
|
})
|
|
9227
9227
|
}, null, 8, ["title"])
|
|
9228
9228
|
]),
|
|
@@ -9284,8 +9284,8 @@ const Of = {
|
|
|
9284
9284
|
"milestone-id": (k = l.value) == null ? void 0 : k.id,
|
|
9285
9285
|
onAddMilestone: h,
|
|
9286
9286
|
onUpdateMilestone: y,
|
|
9287
|
-
onUpdatePhase:
|
|
9288
|
-
onRemoveMilestone:
|
|
9287
|
+
onUpdatePhase: C,
|
|
9288
|
+
onRemoveMilestone: g
|
|
9289
9289
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : O("", !0)
|
|
9290
9290
|
]),
|
|
9291
9291
|
f("li", Vf, [
|
|
@@ -9435,7 +9435,7 @@ const Nf = { class: "ao-card-project-phase__header" }, Uf = { class: "ao-card-pr
|
|
|
9435
9435
|
return (c = a.milestones) == null ? void 0 : c.reduce(
|
|
9436
9436
|
(u, v) => {
|
|
9437
9437
|
var p;
|
|
9438
|
-
return u + ((p = v.activities) == null ? void 0 : p.reduce((
|
|
9438
|
+
return u + ((p = v.activities) == null ? void 0 : p.reduce((m, $) => m + ($.estimation || 0), 0));
|
|
9439
9439
|
},
|
|
9440
9440
|
0
|
|
9441
9441
|
);
|
|
@@ -10074,7 +10074,7 @@ var Qs = Y({
|
|
|
10074
10074
|
},
|
|
10075
10075
|
mousemoveHandler(t) {
|
|
10076
10076
|
const { clientX: e, clientY: a } = t, { top: s, left: n, width: o, height: i } = this.suckerCanvas.getBoundingClientRect(), l = e - n, r = a - s, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(l, o - 1), Math.min(r, i - 1), 1, 1);
|
|
10077
|
-
let [v, p,
|
|
10077
|
+
let [v, p, m, $] = u.data;
|
|
10078
10078
|
$ = parseFloat(($ / 255).toFixed(2));
|
|
10079
10079
|
const w = this.suckerPreview.style;
|
|
10080
10080
|
Object.assign(w, {
|
|
@@ -10086,7 +10086,7 @@ var Qs = Y({
|
|
|
10086
10086
|
borderRadius: "50%",
|
|
10087
10087
|
border: "2px solid #fff",
|
|
10088
10088
|
boxShadow: "0 0 8px 0 rgba(0, 0, 0, 0.16)",
|
|
10089
|
-
background: `rgba(${v}, ${p}, ${
|
|
10089
|
+
background: `rgba(${v}, ${p}, ${m}, ${$})`,
|
|
10090
10090
|
zIndex: 95
|
|
10091
10091
|
}), this.suckerArea.length && // @ts-ignore
|
|
10092
10092
|
e >= this.suckerArea[0] && // @ts-ignore
|
|
@@ -10097,8 +10097,8 @@ var Qs = Y({
|
|
|
10097
10097
|
suckColor(t) {
|
|
10098
10098
|
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) => {
|
|
10099
10099
|
const { clientX: a, clientY: s } = e, { top: n, left: o, width: i, height: l } = t.getBoundingClientRect(), r = a - o, c = s - n, v = t.getContext("2d").getImageData(Math.min(r, i - 1), Math.min(c, l - 1), 1, 1);
|
|
10100
|
-
let [p,
|
|
10101
|
-
w = parseFloat((w / 255).toFixed(2)), this.$emit("selectSucker", { r: p, g, b: $, a: w });
|
|
10100
|
+
let [p, m, $, w] = v.data;
|
|
10101
|
+
w = parseFloat((w / 255).toFixed(2)), this.$emit("selectSucker", { r: p, g: m, b: $, a: w });
|
|
10102
10102
|
}));
|
|
10103
10103
|
}
|
|
10104
10104
|
}
|
|
@@ -10633,55 +10633,61 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
|
|
|
10633
10633
|
},
|
|
10634
10634
|
emits: ["update:title", "update:deadline", "archivePhase", "updatePhase", "unarchivePhase"],
|
|
10635
10635
|
setup(t, { emit: e }) {
|
|
10636
|
-
const a = t, s = (
|
|
10637
|
-
e("update:title",
|
|
10636
|
+
const a = t, s = (h) => {
|
|
10637
|
+
e("update:title", h);
|
|
10638
10638
|
}, n = M(() => {
|
|
10639
|
-
var
|
|
10640
|
-
return (
|
|
10641
|
-
(
|
|
10642
|
-
var
|
|
10643
|
-
return
|
|
10639
|
+
var h;
|
|
10640
|
+
return (h = a.milestones) == null ? void 0 : h.reduce(
|
|
10641
|
+
(g, y) => {
|
|
10642
|
+
var P;
|
|
10643
|
+
return g + ((P = y.activities) == null ? void 0 : P.reduce((I, L) => I + (L.estimation || 0), 0));
|
|
10644
10644
|
},
|
|
10645
10645
|
0
|
|
10646
10646
|
);
|
|
10647
10647
|
}), o = M(() => {
|
|
10648
|
-
var
|
|
10649
|
-
return (
|
|
10648
|
+
var h;
|
|
10649
|
+
return (h = a.milestones) == null ? void 0 : h.length;
|
|
10650
10650
|
}), i = M(() => {
|
|
10651
|
-
var
|
|
10652
|
-
return (
|
|
10651
|
+
var h;
|
|
10652
|
+
return (h = a.milestones) == null ? void 0 : h.filter((g) => g.status === Ba.done).length;
|
|
10653
10653
|
}), l = M(() => (i.value || 0) / (o.value || 1)), r = M({
|
|
10654
10654
|
get: () => a.deadline ?? "",
|
|
10655
|
-
set: (
|
|
10656
|
-
}), c = q(!1), u = q(a.color ? a.color : "#f9f9f9"), v = q(a.color ? a.color : "#f9f9f9"), p = q(null)
|
|
10657
|
-
|
|
10658
|
-
|
|
10655
|
+
set: (h) => e("update:deadline", h != null && h.length ? h : null)
|
|
10656
|
+
}), c = q(!1), u = q(a.color ? a.color : "#f9f9f9"), v = q(a.color ? a.color : "#f9f9f9"), p = q(null);
|
|
10657
|
+
ce(() => a.color, (h) => {
|
|
10658
|
+
v.value = h || "#f9f9f9";
|
|
10659
|
+
});
|
|
10660
|
+
const m = (h) => {
|
|
10661
|
+
const g = h.target;
|
|
10662
|
+
g.closest("button") || g.closest("input") || g.closest(".ao-title") || $();
|
|
10659
10663
|
}, $ = async () => {
|
|
10660
10664
|
console.log("Open color picker"), c.value = !0, u.value = v.value, await Me(), setTimeout(() => {
|
|
10661
|
-
window.addEventListener("click",
|
|
10665
|
+
window.addEventListener("click", C);
|
|
10662
10666
|
}, 0);
|
|
10663
|
-
}, w = (
|
|
10664
|
-
|
|
10665
|
-
|
|
10667
|
+
}, w = (h) => {
|
|
10668
|
+
v.value = h;
|
|
10669
|
+
}, C = (h) => {
|
|
10670
|
+
const g = h.target;
|
|
10671
|
+
c.value && p.value && !p.value.contains(g) && (console.log("Close color picker"), c.value = !1, window.removeEventListener("click", C), console.log("COLORS:"), console.log(u.value), console.log(v.value), u.value !== v.value && (console.log("emit update color"), e("updatePhase", {
|
|
10666
10672
|
id: a.id,
|
|
10667
10673
|
color: v.value
|
|
10668
10674
|
})));
|
|
10669
10675
|
};
|
|
10670
|
-
return (
|
|
10676
|
+
return (h, g) => (d(), _(fe, null, [
|
|
10671
10677
|
A(os, {
|
|
10672
10678
|
class: "ao-maping-card-project-phase",
|
|
10673
|
-
"is-clickable":
|
|
10674
|
-
onClick:
|
|
10679
|
+
"is-clickable": h.isEditable,
|
|
10680
|
+
onClick: m,
|
|
10675
10681
|
style: va({ backgroundColor: v.value })
|
|
10676
10682
|
}, fa({
|
|
10677
10683
|
default: F(() => [
|
|
10678
10684
|
f("div", Vh, [
|
|
10679
10685
|
A(be, {
|
|
10680
|
-
id:
|
|
10686
|
+
id: h.id,
|
|
10681
10687
|
class: "ao-maping-card-project-phase__title",
|
|
10682
|
-
title:
|
|
10688
|
+
title: h.name || "",
|
|
10683
10689
|
level: 4,
|
|
10684
|
-
"is-editable":
|
|
10690
|
+
"is-editable": h.isEditable,
|
|
10685
10691
|
"onUpdate:title": s
|
|
10686
10692
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
10687
10693
|
n.value ? (d(), _("span", Dh, " (" + W(n.value) + ")", 1)) : O("", !0)
|
|
@@ -10701,16 +10707,16 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
|
|
|
10701
10707
|
percentages: l.value,
|
|
10702
10708
|
class: "ao-maping-card-project-phase__progress"
|
|
10703
10709
|
}, null, 8, ["percentages"]),
|
|
10704
|
-
|
|
10705
|
-
te(
|
|
10710
|
+
h.$slots.secondary ? (d(), _("div", Uh, [
|
|
10711
|
+
te(h.$slots, "secondary")
|
|
10706
10712
|
])) : O("", !0)
|
|
10707
10713
|
])) : O("", !0),
|
|
10708
10714
|
f("div", {
|
|
10709
10715
|
class: X(["ao-maping-card-project-phase__footer-row", r.value ? "" : "ao-maping-card-project-phase__no_deadline"])
|
|
10710
10716
|
}, [
|
|
10711
|
-
|
|
10717
|
+
h.isEditable ? De((d(), _("input", {
|
|
10712
10718
|
key: 0,
|
|
10713
|
-
"onUpdate:modelValue":
|
|
10719
|
+
"onUpdate:modelValue": g[1] || (g[1] = (y) => r.value = y),
|
|
10714
10720
|
class: "ao-maping-card-project-phase__deadline ao-maping-card-project-phase__deadline--input",
|
|
10715
10721
|
type: "date"
|
|
10716
10722
|
}, null, 512)), [
|
|
@@ -10721,13 +10727,13 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
|
|
|
10721
10727
|
{ lazy: !0 }
|
|
10722
10728
|
]
|
|
10723
10729
|
]) : O("", !0),
|
|
10724
|
-
f("span", Fh, W(Q(Qa)(
|
|
10730
|
+
f("span", Fh, W(Q(Qa)(h.deadline)), 1)
|
|
10725
10731
|
], 2)
|
|
10726
10732
|
])
|
|
10727
10733
|
]),
|
|
10728
10734
|
_: 2
|
|
10729
10735
|
}, [
|
|
10730
|
-
|
|
10736
|
+
h.isEditable ? {
|
|
10731
10737
|
name: "header",
|
|
10732
10738
|
fn: F(() => [
|
|
10733
10739
|
f("div", Hh, [
|
|
@@ -10739,9 +10745,9 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
|
|
|
10739
10745
|
size: "sm",
|
|
10740
10746
|
"icon-position": "start",
|
|
10741
10747
|
corners: "round",
|
|
10742
|
-
label:
|
|
10743
|
-
onClick:
|
|
10744
|
-
() =>
|
|
10748
|
+
label: h.active ? h.$t("archive") : h.$t("unarchive"),
|
|
10749
|
+
onClick: g[0] || (g[0] = ve(
|
|
10750
|
+
() => h.active ? h.$emit("archivePhase", { id: h.id }) : h.$emit("unarchivePhase", { id: h.id }),
|
|
10745
10751
|
["stop"]
|
|
10746
10752
|
))
|
|
10747
10753
|
}, null, 8, ["label"])
|
|
@@ -10756,12 +10762,12 @@ const Hh = { class: "ao-maping-card-project-phase__header" }, Vh = { class: "ao-
|
|
|
10756
10762
|
ref: p
|
|
10757
10763
|
}, [
|
|
10758
10764
|
A(Q(Mt), {
|
|
10759
|
-
onClick:
|
|
10765
|
+
onClick: g[2] || (g[2] = ve(() => {
|
|
10760
10766
|
}, ["stop"])),
|
|
10761
10767
|
class: "color-picker",
|
|
10762
10768
|
theme: "light",
|
|
10763
10769
|
color: v.value,
|
|
10764
|
-
"onUpdate:color":
|
|
10770
|
+
"onUpdate:color": w
|
|
10765
10771
|
}, null, 8, ["color"])
|
|
10766
10772
|
], 512)) : O("", !0)
|
|
10767
10773
|
], 64));
|
|
@@ -10793,8 +10799,8 @@ const Wh = {
|
|
|
10793
10799
|
const a = t, { t: s } = _t();
|
|
10794
10800
|
ce(
|
|
10795
10801
|
() => a.phase.milestones,
|
|
10796
|
-
(h,
|
|
10797
|
-
Qe(h,
|
|
10802
|
+
(h, g) => {
|
|
10803
|
+
Qe(h, g);
|
|
10798
10804
|
}
|
|
10799
10805
|
);
|
|
10800
10806
|
const n = (h) => {
|
|
@@ -10808,12 +10814,12 @@ const Wh = {
|
|
|
10808
10814
|
(h) => B3(h, a.closedStatus)
|
|
10809
10815
|
)
|
|
10810
10816
|
), r = (h) => {
|
|
10811
|
-
const { name:
|
|
10817
|
+
const { name: g, rank: y } = At(
|
|
10812
10818
|
l.value ?? [],
|
|
10813
10819
|
"milestone",
|
|
10814
10820
|
s
|
|
10815
10821
|
);
|
|
10816
|
-
e("addMilestone", { name:
|
|
10822
|
+
e("addMilestone", { name: g, rank: y, phaseId: h });
|
|
10817
10823
|
}, c = (h) => {
|
|
10818
10824
|
e("updateMilestone", h);
|
|
10819
10825
|
}, u = (h) => {
|
|
@@ -10822,7 +10828,7 @@ const Wh = {
|
|
|
10822
10828
|
e("unarchiveMilestone", h);
|
|
10823
10829
|
}, p = (h) => {
|
|
10824
10830
|
e("archivePhase", h);
|
|
10825
|
-
},
|
|
10831
|
+
}, m = (h) => {
|
|
10826
10832
|
e("unarchivePhase", h);
|
|
10827
10833
|
}, $ = (h) => {
|
|
10828
10834
|
"added" in h ? e("updateMilestone", {
|
|
@@ -10833,8 +10839,8 @@ const Wh = {
|
|
|
10833
10839
|
id: h.moved.element.id,
|
|
10834
10840
|
rank: Ut(l.value, h.moved.newIndex)
|
|
10835
10841
|
});
|
|
10836
|
-
}, w = zi(),
|
|
10837
|
-
return (h,
|
|
10842
|
+
}, w = zi(), C = M(() => w.path.includes("/mapping"));
|
|
10843
|
+
return (h, g) => {
|
|
10838
10844
|
var y;
|
|
10839
10845
|
return d(), _("li", {
|
|
10840
10846
|
class: X([
|
|
@@ -10848,7 +10854,7 @@ const Wh = {
|
|
|
10848
10854
|
class: "ao-project-phase__drag-handle"
|
|
10849
10855
|
})
|
|
10850
10856
|
])) : O("", !0),
|
|
10851
|
-
|
|
10857
|
+
C.value ? (d(), _("div", qh, [
|
|
10852
10858
|
A(Zh, {
|
|
10853
10859
|
id: h.phase.id,
|
|
10854
10860
|
milestones: l.value,
|
|
@@ -10859,7 +10865,7 @@ const Wh = {
|
|
|
10859
10865
|
"onUpdate:deadline": o,
|
|
10860
10866
|
"onUpdate:title": n,
|
|
10861
10867
|
onArchivePhase: p,
|
|
10862
|
-
onUnarchivePhase:
|
|
10868
|
+
onUnarchivePhase: m,
|
|
10863
10869
|
onUpdatePhase: i
|
|
10864
10870
|
}, null, 8, ["id", "milestones", "name", "deadline", "active", "is-editable"])
|
|
10865
10871
|
])) : (d(), _("div", zh, [
|
|
@@ -10873,10 +10879,10 @@ const Wh = {
|
|
|
10873
10879
|
"onUpdate:deadline": o,
|
|
10874
10880
|
"onUpdate:title": n,
|
|
10875
10881
|
onArchivePhase: p,
|
|
10876
|
-
onUnarchivePhase:
|
|
10882
|
+
onUnarchivePhase: m
|
|
10877
10883
|
}, null, 8, ["id", "milestones", "name", "deadline", "active", "is-editable"])
|
|
10878
10884
|
])),
|
|
10879
|
-
|
|
10885
|
+
C.value ? O("", !0) : (d(), _("div", Yh, [
|
|
10880
10886
|
f("div", xh, [
|
|
10881
10887
|
A(Q(mt), Ae({
|
|
10882
10888
|
class: "ao-project-phase__milestones-list",
|
|
@@ -10921,7 +10927,7 @@ const Wh = {
|
|
|
10921
10927
|
label: h.$t("project.milestone.add"),
|
|
10922
10928
|
class: "ao-project-phase__milestone-add",
|
|
10923
10929
|
"icon-name": "Add",
|
|
10924
|
-
onClick:
|
|
10930
|
+
onClick: g[0] || (g[0] = () => r(h.phase.id))
|
|
10925
10931
|
}, null, 8, ["label"])) : O("", !0)
|
|
10926
10932
|
])
|
|
10927
10933
|
])
|
|
@@ -10945,8 +10951,8 @@ const Xh = { class: "ao-project__phases" }, Qh = {
|
|
|
10945
10951
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "unarchiveMilestone", "addPhase", "updatePhase", "archivePhase", "unarchivePhase"],
|
|
10946
10952
|
setup(t, { emit: e }) {
|
|
10947
10953
|
const a = t;
|
|
10948
|
-
ce(() => a.phases, (p,
|
|
10949
|
-
Qe(p,
|
|
10954
|
+
ce(() => a.phases, (p, m) => {
|
|
10955
|
+
Qe(p, m);
|
|
10950
10956
|
});
|
|
10951
10957
|
const s = (p) => {
|
|
10952
10958
|
e("addMilestone", p);
|
|
@@ -10962,10 +10968,10 @@ const Xh = { class: "ao-project__phases" }, Qh = {
|
|
|
10962
10968
|
e("unarchivePhase", p);
|
|
10963
10969
|
}, c = (p) => {
|
|
10964
10970
|
if (p.moved) {
|
|
10965
|
-
const
|
|
10971
|
+
const m = ya(p, a.phases ?? []);
|
|
10966
10972
|
e("updatePhase", {
|
|
10967
10973
|
id: p.moved.element.id,
|
|
10968
|
-
rank:
|
|
10974
|
+
rank: m
|
|
10969
10975
|
});
|
|
10970
10976
|
}
|
|
10971
10977
|
}, u = (p) => {
|
|
@@ -10973,7 +10979,7 @@ const Xh = { class: "ao-project__phases" }, Qh = {
|
|
|
10973
10979
|
}, v = (p) => {
|
|
10974
10980
|
e("addPhase", p);
|
|
10975
10981
|
};
|
|
10976
|
-
return (p,
|
|
10982
|
+
return (p, m) => (d(), _("div", Xh, [
|
|
10977
10983
|
A(Q(mt), {
|
|
10978
10984
|
class: "ao-project-phase__phases-list",
|
|
10979
10985
|
"model-value": p.phases,
|
|
@@ -11206,17 +11212,17 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
|
|
|
11206
11212
|
e("updateMilestone", T);
|
|
11207
11213
|
}, p = (T) => {
|
|
11208
11214
|
e("archiveMilestone", T);
|
|
11209
|
-
},
|
|
11215
|
+
}, m = (T) => {
|
|
11210
11216
|
e("unarchiveMilestone", T);
|
|
11211
11217
|
}, $ = (T) => {
|
|
11212
11218
|
e("addActivity", T);
|
|
11213
11219
|
}, w = (T) => {
|
|
11214
11220
|
e("update:activity", T);
|
|
11215
|
-
},
|
|
11221
|
+
}, C = (T) => {
|
|
11216
11222
|
e("archiveActivity", T);
|
|
11217
11223
|
}, h = (T) => {
|
|
11218
11224
|
e("unarchiveActivity", T);
|
|
11219
|
-
},
|
|
11225
|
+
}, g = (T) => {
|
|
11220
11226
|
e("addSubtask", T);
|
|
11221
11227
|
}, y = (T) => {
|
|
11222
11228
|
e("updateSubtask", T);
|
|
@@ -11299,7 +11305,7 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
|
|
|
11299
11305
|
onAddMilestone: u,
|
|
11300
11306
|
onUpdateMilestone: v,
|
|
11301
11307
|
onArchiveMilestone: p,
|
|
11302
|
-
onUnarchiveMilestone:
|
|
11308
|
+
onUnarchiveMilestone: m,
|
|
11303
11309
|
onAddPhase: o,
|
|
11304
11310
|
onUpdatePhase: i,
|
|
11305
11311
|
onArchivePhase: l,
|
|
@@ -11320,7 +11326,7 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
|
|
|
11320
11326
|
onUpdateMilestone: v,
|
|
11321
11327
|
onAddActivity: $,
|
|
11322
11328
|
onUpdateActivity: w,
|
|
11323
|
-
onArchiveActivity:
|
|
11329
|
+
onArchiveActivity: C,
|
|
11324
11330
|
onUnarchiveActivity: h
|
|
11325
11331
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
|
|
11326
11332
|
(d(), D(Tt, { to: "body" }, [
|
|
@@ -11337,7 +11343,7 @@ const tn = /* @__PURE__ */ N(m9, [["render", _9], ["__scopeId", "data-v-ff4e3297
|
|
|
11337
11343
|
"is-editable": T.isEditable,
|
|
11338
11344
|
"attachment-enabled": T.attachmentEnabled,
|
|
11339
11345
|
"onUpdate:activity": w,
|
|
11340
|
-
onAddSubtask:
|
|
11346
|
+
onAddSubtask: g,
|
|
11341
11347
|
onUpdateSubtask: y,
|
|
11342
11348
|
onDeleteSubtask: P,
|
|
11343
11349
|
onAddFiles: L,
|
|
@@ -11433,22 +11439,22 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
|
|
|
11433
11439
|
},
|
|
11434
11440
|
emits: ["removeAssignee", "updateActivity"],
|
|
11435
11441
|
setup(t, { emit: e }) {
|
|
11436
|
-
const a = t, s = M(() => a.tagType === "milestone" ? a.milestoneName : a.projectName), n = M(() => a.tagType === "milestone" ? a.milestoneColor : a.projectColor), o = (
|
|
11442
|
+
const a = t, s = M(() => a.tagType === "milestone" ? a.milestoneName : a.projectName), n = M(() => a.tagType === "milestone" ? a.milestoneColor : a.projectColor), o = (m) => {
|
|
11437
11443
|
e("updateActivity", {
|
|
11438
11444
|
id: a.id,
|
|
11439
|
-
name:
|
|
11445
|
+
name: m
|
|
11440
11446
|
});
|
|
11441
|
-
}, i = M(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), l = M(() => a.assignee ? [a.assignee] : []), r = M(() => Qa(a.deadline)), c = (
|
|
11442
|
-
e("removeAssignee",
|
|
11447
|
+
}, i = M(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), l = M(() => a.assignee ? [a.assignee] : []), r = M(() => Qa(a.deadline)), c = (m) => {
|
|
11448
|
+
e("removeAssignee", m);
|
|
11443
11449
|
}, u = M(() => {
|
|
11444
|
-
var
|
|
11445
|
-
return (
|
|
11450
|
+
var m;
|
|
11451
|
+
return (m = a.tasks) == null ? void 0 : m.length;
|
|
11446
11452
|
}), v = M(() => {
|
|
11447
|
-
var
|
|
11448
|
-
return (
|
|
11453
|
+
var m;
|
|
11454
|
+
return (m = a.tasks) == null ? void 0 : m.filter(($) => $.isDone).length;
|
|
11449
11455
|
}), p = M(() => (v.value || 0) / (u.value || 1));
|
|
11450
|
-
return (
|
|
11451
|
-
class: X(["ao-card-feed", { "ao-card-feed--closed":
|
|
11456
|
+
return (m, $) => (d(), D(os, {
|
|
11457
|
+
class: X(["ao-card-feed", { "ao-card-feed--closed": m.isClosed }]),
|
|
11452
11458
|
"is-clickable": !0
|
|
11453
11459
|
}, {
|
|
11454
11460
|
header: F(() => [
|
|
@@ -11458,30 +11464,30 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
|
|
|
11458
11464
|
label: s.value,
|
|
11459
11465
|
class: "ao-card-feed__project",
|
|
11460
11466
|
variant: "solid",
|
|
11461
|
-
color:
|
|
11467
|
+
color: m.projectColor ? void 0 : "primary",
|
|
11462
11468
|
"raw-color": n.value
|
|
11463
11469
|
}, null, 8, ["label", "color", "raw-color"])) : O("", !0),
|
|
11464
|
-
|
|
11465
|
-
|
|
11470
|
+
m.isPrivate || m.important || m.isClosed ? (d(), _("div", k9, [
|
|
11471
|
+
m.isPrivate ? (d(), D(pe, {
|
|
11466
11472
|
key: 0,
|
|
11467
11473
|
name: "Lock",
|
|
11468
11474
|
class: "ao-card-feed__warning",
|
|
11469
11475
|
size: "sm"
|
|
11470
11476
|
})) : O("", !0),
|
|
11471
|
-
|
|
11477
|
+
m.important ? (d(), D(pe, {
|
|
11472
11478
|
key: 1,
|
|
11473
11479
|
name: "FlagRounded",
|
|
11474
11480
|
class: "ao-card-feed__important",
|
|
11475
11481
|
size: "sm"
|
|
11476
11482
|
})) : O("", !0),
|
|
11477
|
-
|
|
11483
|
+
m.isClosed ? (d(), D(pe, {
|
|
11478
11484
|
key: 2,
|
|
11479
11485
|
name: "CheckSmallRounded",
|
|
11480
11486
|
class: "ao-card-feed__closed"
|
|
11481
11487
|
})) : O("", !0)
|
|
11482
11488
|
])) : O("", !0),
|
|
11483
|
-
|
|
11484
|
-
te(
|
|
11489
|
+
m.$slots.secondary ? (d(), _("div", S9, [
|
|
11490
|
+
te(m.$slots, "secondary")
|
|
11485
11491
|
])) : O("", !0)
|
|
11486
11492
|
])
|
|
11487
11493
|
]),
|
|
@@ -11490,18 +11496,18 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
|
|
|
11490
11496
|
i.value ? (d(), _("span", M9, W(i.value), 1)) : O("", !0),
|
|
11491
11497
|
f("div", T9, [
|
|
11492
11498
|
f("div", O9, [
|
|
11493
|
-
|
|
11499
|
+
m.slug ? (d(), _("span", E9, W(m.slug) + ": ", 1)) : O("", !0),
|
|
11494
11500
|
A(be, {
|
|
11495
|
-
id:
|
|
11496
|
-
title:
|
|
11501
|
+
id: m.id,
|
|
11502
|
+
title: m.name,
|
|
11497
11503
|
level: 5,
|
|
11498
|
-
"is-editable":
|
|
11504
|
+
"is-editable": m.isEditable,
|
|
11499
11505
|
"onUpdate:title": o,
|
|
11500
11506
|
class: "ao-card-feed__title-inline"
|
|
11501
11507
|
}, null, 8, ["id", "title", "is-editable"])
|
|
11502
11508
|
])
|
|
11503
11509
|
]),
|
|
11504
|
-
|
|
11510
|
+
m.deadline ? (d(), _("span", I9, W(r.value), 1)) : O("", !0)
|
|
11505
11511
|
])
|
|
11506
11512
|
]),
|
|
11507
11513
|
footer: F(() => [
|
|
@@ -11521,25 +11527,25 @@ const $9 = { class: "ao-card-feed__header" }, k9 = {
|
|
|
11521
11527
|
])) : O("", !0)
|
|
11522
11528
|
], 64))), 128))
|
|
11523
11529
|
]),
|
|
11524
|
-
|
|
11525
|
-
|
|
11530
|
+
m.comments || m.attachments ? (d(), _("ul", D9, [
|
|
11531
|
+
m.comments ? (d(), _("li", B9, [
|
|
11526
11532
|
A(pe, {
|
|
11527
11533
|
name: "ChatOutline",
|
|
11528
11534
|
size: "sm"
|
|
11529
11535
|
}),
|
|
11530
|
-
f("span", j9, W(
|
|
11536
|
+
f("span", j9, W(m.comments), 1)
|
|
11531
11537
|
])) : O("", !0),
|
|
11532
|
-
|
|
11538
|
+
m.attachments ? (d(), _("li", R9, [
|
|
11533
11539
|
A(pe, {
|
|
11534
11540
|
name: "AttachFileRounded",
|
|
11535
11541
|
size: "sm"
|
|
11536
11542
|
}),
|
|
11537
|
-
f("span", N9, W(
|
|
11543
|
+
f("span", N9, W(m.attachments), 1)
|
|
11538
11544
|
])) : O("", !0)
|
|
11539
11545
|
])) : O("", !0)
|
|
11540
11546
|
]),
|
|
11541
11547
|
f("div", U9, [
|
|
11542
|
-
|
|
11548
|
+
m.tasks && m.tasks.length ? (d(), _("div", F9, [
|
|
11543
11549
|
f("div", Z9, [
|
|
11544
11550
|
A(pe, {
|
|
11545
11551
|
name: "SelectCheckBox",
|
|
@@ -11621,95 +11627,95 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11621
11627
|
emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity"],
|
|
11622
11628
|
setup(t, { emit: e }) {
|
|
11623
11629
|
const a = t, { t: s } = _t(), n = M(() => {
|
|
11624
|
-
var
|
|
11625
|
-
return (
|
|
11630
|
+
var g;
|
|
11631
|
+
return (g = a.phases) == null ? void 0 : g.find((y) => y.id === a.phaseId);
|
|
11626
11632
|
}), o = M(
|
|
11627
11633
|
() => {
|
|
11628
|
-
var
|
|
11629
|
-
return (
|
|
11634
|
+
var g;
|
|
11635
|
+
return (g = a.phases) == null ? void 0 : g.flatMap((y) => y.milestones);
|
|
11630
11636
|
}
|
|
11631
11637
|
), i = M(() => {
|
|
11632
|
-
var
|
|
11633
|
-
return (
|
|
11638
|
+
var g;
|
|
11639
|
+
return (g = o.value) == null ? void 0 : g.find((y) => y.id === a.milestoneId);
|
|
11634
11640
|
}), l = M(() => {
|
|
11635
|
-
var
|
|
11636
|
-
return (
|
|
11641
|
+
var g;
|
|
11642
|
+
return (g = i.value) == null ? void 0 : g.activities;
|
|
11637
11643
|
});
|
|
11638
|
-
ce(l, (
|
|
11639
|
-
Qe(
|
|
11644
|
+
ce(l, (g, y) => {
|
|
11645
|
+
Qe(g, y);
|
|
11640
11646
|
});
|
|
11641
|
-
const r = (
|
|
11642
|
-
e("close",
|
|
11647
|
+
const r = (g) => {
|
|
11648
|
+
e("close", g);
|
|
11643
11649
|
}, c = () => {
|
|
11644
|
-
const { name:
|
|
11650
|
+
const { name: g, rank: y } = At(
|
|
11645
11651
|
l.value ?? [],
|
|
11646
11652
|
"activity",
|
|
11647
11653
|
s
|
|
11648
11654
|
);
|
|
11649
11655
|
e("addActivity", {
|
|
11650
11656
|
milestoneId: a.milestoneId,
|
|
11651
|
-
name:
|
|
11657
|
+
name: g,
|
|
11652
11658
|
rank: y,
|
|
11653
11659
|
projectId: a.projectId
|
|
11654
11660
|
});
|
|
11655
|
-
}, u = (
|
|
11656
|
-
e("updateActivity",
|
|
11657
|
-
}, v = (
|
|
11658
|
-
l.value && "moved" in
|
|
11659
|
-
id:
|
|
11660
|
-
rank: Ut(l.value,
|
|
11661
|
+
}, u = (g) => {
|
|
11662
|
+
e("updateActivity", g);
|
|
11663
|
+
}, v = (g) => {
|
|
11664
|
+
l.value && "moved" in g && e("updateActivity", {
|
|
11665
|
+
id: g.moved.element.id,
|
|
11666
|
+
rank: Ut(l.value, g.moved.newIndex)
|
|
11661
11667
|
});
|
|
11662
11668
|
}, p = M({
|
|
11663
11669
|
get: () => {
|
|
11664
|
-
var
|
|
11665
|
-
return (
|
|
11670
|
+
var g;
|
|
11671
|
+
return (g = i.value) == null ? void 0 : g.color;
|
|
11666
11672
|
},
|
|
11667
|
-
set: (
|
|
11673
|
+
set: (g) => {
|
|
11668
11674
|
i.value && e("updateMilestone", {
|
|
11669
11675
|
id: i.value.id,
|
|
11670
|
-
color:
|
|
11676
|
+
color: g
|
|
11671
11677
|
});
|
|
11672
11678
|
}
|
|
11673
|
-
}),
|
|
11679
|
+
}), m = M({
|
|
11674
11680
|
get: () => {
|
|
11675
|
-
var
|
|
11676
|
-
return ((
|
|
11681
|
+
var g;
|
|
11682
|
+
return ((g = i == null ? void 0 : i.value) == null ? void 0 : g.deadline) ?? "";
|
|
11677
11683
|
},
|
|
11678
|
-
set: (
|
|
11684
|
+
set: (g) => {
|
|
11679
11685
|
i.value && e("updateMilestone", {
|
|
11680
11686
|
id: i.value.id,
|
|
11681
|
-
deadline:
|
|
11687
|
+
deadline: g != null && g.length ? g : null
|
|
11682
11688
|
});
|
|
11683
11689
|
}
|
|
11684
|
-
}), $ = (
|
|
11685
|
-
var
|
|
11686
|
-
return ((
|
|
11690
|
+
}), $ = (g) => a.closedStatus ? Ps(g, a.closedStatus) : !1, w = M(() => {
|
|
11691
|
+
var g;
|
|
11692
|
+
return ((g = a.users) == null ? void 0 : g.map((y) => ({
|
|
11687
11693
|
label: `${y.firstName} ${y.lastName}`,
|
|
11688
11694
|
value: y.id,
|
|
11689
11695
|
avatar: y.avatarUrl
|
|
11690
11696
|
}))) || [];
|
|
11691
|
-
}),
|
|
11697
|
+
}), C = M({
|
|
11692
11698
|
get() {
|
|
11693
|
-
var
|
|
11694
|
-
return (y = (
|
|
11699
|
+
var g, y;
|
|
11700
|
+
return (y = (g = i.value) == null ? void 0 : g.assignee) != null && y.id ? [i.value.assignee.id] : [];
|
|
11695
11701
|
},
|
|
11696
|
-
set(
|
|
11702
|
+
set(g) {
|
|
11697
11703
|
e("updateMilestone", {
|
|
11698
11704
|
id: a.milestoneId,
|
|
11699
|
-
assigneeId:
|
|
11705
|
+
assigneeId: g[0] ?? null
|
|
11700
11706
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
11701
11707
|
});
|
|
11702
11708
|
}
|
|
11703
11709
|
}), h = M({
|
|
11704
11710
|
get() {
|
|
11705
|
-
var
|
|
11706
|
-
return ((
|
|
11711
|
+
var g;
|
|
11712
|
+
return ((g = i.value) == null ? void 0 : g.important) ?? !1;
|
|
11707
11713
|
},
|
|
11708
|
-
set(
|
|
11709
|
-
e("updateMilestone", { id: a.milestoneId, important:
|
|
11714
|
+
set(g) {
|
|
11715
|
+
e("updateMilestone", { id: a.milestoneId, important: g });
|
|
11710
11716
|
}
|
|
11711
11717
|
});
|
|
11712
|
-
return (
|
|
11718
|
+
return (g, y) => {
|
|
11713
11719
|
var P;
|
|
11714
11720
|
return d(), _("div", K9, [
|
|
11715
11721
|
f("header", G9, [
|
|
@@ -11725,17 +11731,17 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11725
11731
|
f("div", Q9, [
|
|
11726
11732
|
f("div", J9, [
|
|
11727
11733
|
A(be, {
|
|
11728
|
-
title: ((P = i.value) == null ? void 0 : P.name) ||
|
|
11734
|
+
title: ((P = i.value) == null ? void 0 : P.name) || g.milestoneId,
|
|
11729
11735
|
level: 5
|
|
11730
11736
|
}, null, 8, ["title"]),
|
|
11731
11737
|
A(As, {
|
|
11732
11738
|
modelValue: h.value,
|
|
11733
11739
|
"onUpdate:modelValue": y[0] || (y[0] = (I) => h.value = I),
|
|
11734
11740
|
modelModifiers: { lazy: !0 },
|
|
11735
|
-
disabled: !
|
|
11741
|
+
disabled: !g.isEditable,
|
|
11736
11742
|
class: "ao-milestone__important",
|
|
11737
11743
|
color: "danger",
|
|
11738
|
-
label:
|
|
11744
|
+
label: g.$t("activity.important.label"),
|
|
11739
11745
|
"icon-name": "FlagRounded",
|
|
11740
11746
|
variant: "ghost",
|
|
11741
11747
|
size: "sm"
|
|
@@ -11746,13 +11752,13 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11746
11752
|
f("div", t4, [
|
|
11747
11753
|
f("label", a4, [
|
|
11748
11754
|
De(f("input", {
|
|
11749
|
-
"onUpdate:modelValue": y[1] || (y[1] = (I) =>
|
|
11755
|
+
"onUpdate:modelValue": y[1] || (y[1] = (I) => m.value = I),
|
|
11750
11756
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
11751
11757
|
type: "date"
|
|
11752
11758
|
}, null, 512), [
|
|
11753
11759
|
[
|
|
11754
11760
|
Ze,
|
|
11755
|
-
|
|
11761
|
+
m.value,
|
|
11756
11762
|
void 0,
|
|
11757
11763
|
{ lazy: !0 }
|
|
11758
11764
|
]
|
|
@@ -11762,17 +11768,17 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11762
11768
|
f("div", s4, [
|
|
11763
11769
|
f("label", n4, [
|
|
11764
11770
|
A(Se, {
|
|
11765
|
-
modelValue:
|
|
11766
|
-
"onUpdate:modelValue": y[2] || (y[2] = (I) =>
|
|
11771
|
+
modelValue: C.value,
|
|
11772
|
+
"onUpdate:modelValue": y[2] || (y[2] = (I) => C.value = I),
|
|
11767
11773
|
options: w.value,
|
|
11768
11774
|
"close-on-select": !0,
|
|
11769
11775
|
searchable: !0,
|
|
11770
11776
|
max: 1,
|
|
11771
11777
|
class: "ao-milestone__field ao-milestone__multiselect",
|
|
11772
|
-
placeholder:
|
|
11778
|
+
placeholder: g.$t("activity.filters.assignee.placeholder"),
|
|
11773
11779
|
mode: "tags",
|
|
11774
|
-
disabled: !
|
|
11775
|
-
caret:
|
|
11780
|
+
disabled: !g.isEditable,
|
|
11781
|
+
caret: g.isEditable
|
|
11776
11782
|
}, {
|
|
11777
11783
|
tag: F(({
|
|
11778
11784
|
option: I,
|
|
@@ -11799,10 +11805,10 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11799
11805
|
A(Q(mt), Ae({
|
|
11800
11806
|
class: "ao-project-milestone__activities",
|
|
11801
11807
|
list: l.value,
|
|
11802
|
-
disabled: !
|
|
11808
|
+
disabled: !g.isEditable,
|
|
11803
11809
|
"item-key": "id",
|
|
11804
11810
|
group: "kanban"
|
|
11805
|
-
},
|
|
11811
|
+
}, g.$attrs, { onChange: v }), {
|
|
11806
11812
|
item: F(({ element: I }) => {
|
|
11807
11813
|
var L, U, z, K, J;
|
|
11808
11814
|
return [
|
|
@@ -11814,26 +11820,26 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11814
11820
|
"milestone-color": (z = i.value) == null ? void 0 : z.color,
|
|
11815
11821
|
deadline: I.deadline,
|
|
11816
11822
|
important: I.important,
|
|
11817
|
-
users:
|
|
11823
|
+
users: g.users,
|
|
11818
11824
|
assignee: I.assignee,
|
|
11819
11825
|
slug: I.slug,
|
|
11820
11826
|
comments: (K = I.comments) == null ? void 0 : K.length,
|
|
11821
11827
|
attachments: (J = I.attachments) == null ? void 0 : J.length,
|
|
11822
11828
|
tasks: I.tasks,
|
|
11823
|
-
"is-editable":
|
|
11829
|
+
"is-editable": g.isEditable,
|
|
11824
11830
|
"is-private": I.private,
|
|
11825
11831
|
"is-closed": $(I),
|
|
11826
|
-
onClick: (ae) =>
|
|
11832
|
+
onClick: (ae) => g.$router.push({
|
|
11827
11833
|
name: Q(ye).activity,
|
|
11828
|
-
params: { milestoneId:
|
|
11834
|
+
params: { milestoneId: g.milestoneId, activityId: I.id }
|
|
11829
11835
|
}),
|
|
11830
11836
|
onUpdateActivity: u,
|
|
11831
11837
|
onRemoveAssignee: () => u({ id: I.id, assigneeId: null })
|
|
11832
11838
|
}, fa({ _: 2 }, [
|
|
11833
|
-
|
|
11839
|
+
g.isEditable ? {
|
|
11834
11840
|
name: "secondary",
|
|
11835
11841
|
fn: F(() => [
|
|
11836
|
-
|
|
11842
|
+
g.isEditable && I.active ? (d(), D(re, {
|
|
11837
11843
|
key: 0,
|
|
11838
11844
|
color: "primary",
|
|
11839
11845
|
variant: "ghost",
|
|
@@ -11841,10 +11847,10 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11841
11847
|
size: "sm",
|
|
11842
11848
|
"icon-position": "start",
|
|
11843
11849
|
corners: "round",
|
|
11844
|
-
label:
|
|
11845
|
-
onClick: ve(() =>
|
|
11850
|
+
label: g.$t("archive"),
|
|
11851
|
+
onClick: ve(() => g.$emit("archiveActivity", { id: I.id }), ["stop"])
|
|
11846
11852
|
}, null, 8, ["label", "onClick"])) : O("", !0),
|
|
11847
|
-
|
|
11853
|
+
g.isEditable && !I.active ? (d(), D(re, {
|
|
11848
11854
|
key: 1,
|
|
11849
11855
|
color: "primary",
|
|
11850
11856
|
variant: "ghost",
|
|
@@ -11852,9 +11858,9 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11852
11858
|
size: "sm",
|
|
11853
11859
|
"icon-position": "start",
|
|
11854
11860
|
corners: "round",
|
|
11855
|
-
label:
|
|
11861
|
+
label: g.$t("feed.activity.unarchive"),
|
|
11856
11862
|
onClick: ve(
|
|
11857
|
-
() =>
|
|
11863
|
+
() => g.$emit("unarchiveActivity", { id: I.id }),
|
|
11858
11864
|
["stop"]
|
|
11859
11865
|
)
|
|
11860
11866
|
}, null, 8, ["label", "onClick"])) : O("", !0)
|
|
@@ -11866,10 +11872,10 @@ const x9 = /* @__PURE__ */ N(z9, [["render", Y9]]), K9 = { class: "ao-project-mi
|
|
|
11866
11872
|
}),
|
|
11867
11873
|
_: 1
|
|
11868
11874
|
}, 16, ["list", "disabled"]),
|
|
11869
|
-
|
|
11875
|
+
g.isEditable ? (d(), _("div", o4, [
|
|
11870
11876
|
A(gt, {
|
|
11871
11877
|
"icon-name": "Add",
|
|
11872
|
-
label:
|
|
11878
|
+
label: g.$t("project.activity.add"),
|
|
11873
11879
|
onClick: c
|
|
11874
11880
|
}, null, 8, ["label"])
|
|
11875
11881
|
])) : O("", !0)
|
|
@@ -11898,68 +11904,68 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
11898
11904
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
11899
11905
|
setup(t, { emit: e }) {
|
|
11900
11906
|
const a = t, s = M(() => {
|
|
11901
|
-
var
|
|
11902
|
-
return (
|
|
11907
|
+
var C;
|
|
11908
|
+
return (C = a.phases) == null ? void 0 : C.find((h) => h.id === a.phaseId);
|
|
11903
11909
|
}), n = M(
|
|
11904
11910
|
() => {
|
|
11905
|
-
var
|
|
11906
|
-
return (
|
|
11911
|
+
var C;
|
|
11912
|
+
return (C = a.phases) == null ? void 0 : C.flatMap((h) => h.milestones);
|
|
11907
11913
|
}
|
|
11908
11914
|
), o = M(() => {
|
|
11909
|
-
var
|
|
11910
|
-
return (
|
|
11915
|
+
var C;
|
|
11916
|
+
return (C = n.value) == null ? void 0 : C.find((h) => h.id === a.milestoneId);
|
|
11911
11917
|
}), i = M(() => {
|
|
11912
|
-
var
|
|
11913
|
-
return (
|
|
11914
|
-
}), l = (
|
|
11915
|
-
e("update:activity",
|
|
11916
|
-
}, r = (
|
|
11917
|
-
e("addSubtask",
|
|
11918
|
-
}, c = (
|
|
11919
|
-
e("updateSubtask",
|
|
11920
|
-
}, u = (
|
|
11921
|
-
e("deleteSubtask",
|
|
11922
|
-
}, v = (
|
|
11923
|
-
e("addFiles",
|
|
11924
|
-
}, p = (
|
|
11925
|
-
e("removeFile",
|
|
11926
|
-
},
|
|
11927
|
-
e("addComment",
|
|
11928
|
-
}, $ = (
|
|
11929
|
-
e("updateComment",
|
|
11930
|
-
}, w = (
|
|
11931
|
-
e("removeComment",
|
|
11918
|
+
var C;
|
|
11919
|
+
return (C = a.activities) == null ? void 0 : C.find((h) => h.id === a.activityId);
|
|
11920
|
+
}), l = (C) => {
|
|
11921
|
+
e("update:activity", C);
|
|
11922
|
+
}, r = (C) => {
|
|
11923
|
+
e("addSubtask", C);
|
|
11924
|
+
}, c = (C) => {
|
|
11925
|
+
e("updateSubtask", C);
|
|
11926
|
+
}, u = (C) => {
|
|
11927
|
+
e("deleteSubtask", C);
|
|
11928
|
+
}, v = (C) => {
|
|
11929
|
+
e("addFiles", C);
|
|
11930
|
+
}, p = (C) => {
|
|
11931
|
+
e("removeFile", C);
|
|
11932
|
+
}, m = (C) => {
|
|
11933
|
+
e("addComment", C);
|
|
11934
|
+
}, $ = (C) => {
|
|
11935
|
+
e("updateComment", C);
|
|
11936
|
+
}, w = (C) => {
|
|
11937
|
+
e("removeComment", C);
|
|
11932
11938
|
};
|
|
11933
|
-
return (
|
|
11934
|
-
var
|
|
11939
|
+
return (C, h) => {
|
|
11940
|
+
var g, y;
|
|
11935
11941
|
return i.value ? (d(), D(qs, {
|
|
11936
11942
|
key: 0,
|
|
11937
11943
|
activity: i.value,
|
|
11938
|
-
"activity-types":
|
|
11939
|
-
"milestone-id":
|
|
11940
|
-
"template-activities":
|
|
11944
|
+
"activity-types": C.activityTypes,
|
|
11945
|
+
"milestone-id": C.milestoneId,
|
|
11946
|
+
"template-activities": C.activities,
|
|
11941
11947
|
"is-template": !1,
|
|
11942
|
-
users:
|
|
11943
|
-
"user-id":
|
|
11944
|
-
"is-task-checkable":
|
|
11945
|
-
statuses:
|
|
11946
|
-
breadcrumbs: `${(
|
|
11947
|
-
"is-editable":
|
|
11948
|
-
"attachment-enabled":
|
|
11949
|
-
projects: [
|
|
11950
|
-
onClose:
|
|
11948
|
+
users: C.users,
|
|
11949
|
+
"user-id": C.userId,
|
|
11950
|
+
"is-task-checkable": C.isTaskCheckable,
|
|
11951
|
+
statuses: C.statuses,
|
|
11952
|
+
breadcrumbs: `${(g = s.value) == null ? void 0 : g.name} / ${(y = o.value) == null ? void 0 : y.name}`,
|
|
11953
|
+
"is-editable": C.isEditable,
|
|
11954
|
+
"attachment-enabled": C.attachmentEnabled,
|
|
11955
|
+
projects: [C.project],
|
|
11956
|
+
onClose: C.$router.back,
|
|
11951
11957
|
"onUpdate:activity": l,
|
|
11952
11958
|
onAddSubtask: r,
|
|
11953
11959
|
onUpdateSubtask: c,
|
|
11954
11960
|
onDeleteSubtask: u,
|
|
11955
11961
|
onAddFiles: v,
|
|
11956
11962
|
onRemoveFile: p,
|
|
11957
|
-
onAddComment:
|
|
11963
|
+
onAddComment: m,
|
|
11958
11964
|
onUpdateComment: $,
|
|
11959
11965
|
onRemoveComment: w
|
|
11960
11966
|
}, {
|
|
11961
11967
|
default: F((P) => [
|
|
11962
|
-
te(
|
|
11968
|
+
te(C.$slots, "default", ha(ma(P)))
|
|
11963
11969
|
]),
|
|
11964
11970
|
_: 3
|
|
11965
11971
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "onClose"])) : O("", !0);
|
|
@@ -12061,7 +12067,7 @@ function _4(t, e, a = {}) {
|
|
|
12061
12067
|
([$, w]) => {
|
|
12062
12068
|
if (u(), !v.value || !$.length)
|
|
12063
12069
|
return;
|
|
12064
|
-
const
|
|
12070
|
+
const C = new IntersectionObserver(
|
|
12065
12071
|
e,
|
|
12066
12072
|
{
|
|
12067
12073
|
root: bs(w),
|
|
@@ -12069,15 +12075,15 @@ function _4(t, e, a = {}) {
|
|
|
12069
12075
|
threshold: o
|
|
12070
12076
|
}
|
|
12071
12077
|
);
|
|
12072
|
-
$.forEach((h) => h &&
|
|
12073
|
-
|
|
12078
|
+
$.forEach((h) => h && C.observe(h)), u = () => {
|
|
12079
|
+
C.disconnect(), u = oa;
|
|
12074
12080
|
};
|
|
12075
12081
|
},
|
|
12076
12082
|
{ immediate: l, flush: "post" }
|
|
12077
|
-
) : oa,
|
|
12083
|
+
) : oa, m = () => {
|
|
12078
12084
|
u(), p(), v.value = !1;
|
|
12079
12085
|
};
|
|
12080
|
-
return c4(
|
|
12086
|
+
return c4(m), {
|
|
12081
12087
|
isSupported: r,
|
|
12082
12088
|
isActive: v,
|
|
12083
12089
|
pause() {
|
|
@@ -12086,7 +12092,7 @@ function _4(t, e, a = {}) {
|
|
|
12086
12092
|
resume() {
|
|
12087
12093
|
v.value = !0;
|
|
12088
12094
|
},
|
|
12089
|
-
stop:
|
|
12095
|
+
stop: m
|
|
12090
12096
|
};
|
|
12091
12097
|
}
|
|
12092
12098
|
const y4 = {
|
|
@@ -12182,17 +12188,17 @@ const y4 = {
|
|
|
12182
12188
|
}
|
|
12183
12189
|
}), {
|
|
12184
12190
|
item: F(({ element: p }) => {
|
|
12185
|
-
var
|
|
12191
|
+
var m, $, w, C, h, g, y, P, I;
|
|
12186
12192
|
return [
|
|
12187
12193
|
A(mi, {
|
|
12188
12194
|
class: X(o(p) ? "ao-list-draggable" : ""),
|
|
12189
12195
|
id: p.id,
|
|
12190
12196
|
name: p.name,
|
|
12191
|
-
"project-name": (
|
|
12197
|
+
"project-name": (m = p.project) == null ? void 0 : m.name,
|
|
12192
12198
|
"project-color": ($ = p.project) == null ? void 0 : $.color,
|
|
12193
|
-
"phase-name": (
|
|
12199
|
+
"phase-name": (C = (w = p.milestone) == null ? void 0 : w.phase) == null ? void 0 : C.name,
|
|
12194
12200
|
"milestone-name": (h = p.milestone) == null ? void 0 : h.name,
|
|
12195
|
-
"milestone-color": (
|
|
12201
|
+
"milestone-color": (g = p.milestone) == null ? void 0 : g.color,
|
|
12196
12202
|
deadline: p.deadline,
|
|
12197
12203
|
rules: ((y = p.rules) == null ? void 0 : y.length) || 0,
|
|
12198
12204
|
tasks: p.tasks,
|
|
@@ -12364,14 +12370,14 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
12364
12370
|
statusId: k.id
|
|
12365
12371
|
};
|
|
12366
12372
|
a.filters.assigneeId.length > 0 && (oe.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (oe.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (oe.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", oe);
|
|
12367
|
-
},
|
|
12373
|
+
}, m = (k, R) => {
|
|
12368
12374
|
c.value = !1, e("update:filters", { ...a.filters, [k]: R });
|
|
12369
12375
|
}, $ = M(
|
|
12370
12376
|
() => a.project ? [a.project] : a.projects ?? []
|
|
12371
12377
|
), w = M(() => $.value.map((k) => ({
|
|
12372
12378
|
value: k.id,
|
|
12373
12379
|
label: k.name
|
|
12374
|
-
}))),
|
|
12380
|
+
}))), C = M(() => {
|
|
12375
12381
|
var k;
|
|
12376
12382
|
return (k = a.activityTypes) == null ? void 0 : k.map((R) => ({
|
|
12377
12383
|
value: R.id,
|
|
@@ -12381,7 +12387,7 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
12381
12387
|
value: k.id,
|
|
12382
12388
|
label: `${k.firstName} ${k.lastName}`,
|
|
12383
12389
|
avatar: k.avatarUrl
|
|
12384
|
-
}))),
|
|
12390
|
+
}))), g = (k) => {
|
|
12385
12391
|
a.selectedActivity && e("update:activity", k);
|
|
12386
12392
|
}, y = (k) => {
|
|
12387
12393
|
e("update:activity", k);
|
|
@@ -12448,18 +12454,18 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
12448
12454
|
searchable: !0,
|
|
12449
12455
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
12450
12456
|
placeholder: k.$t("feed.filters.project.placeholder"),
|
|
12451
|
-
"onUpdate:modelValue": R[1] || (R[1] = (V) =>
|
|
12457
|
+
"onUpdate:modelValue": R[1] || (R[1] = (V) => m(Q(Dt).project, V))
|
|
12452
12458
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
12453
|
-
|
|
12459
|
+
C.value ? (d(), D(Se, {
|
|
12454
12460
|
key: 1,
|
|
12455
12461
|
"model-value": k.filters[Q(Dt).type],
|
|
12456
12462
|
mode: "tags",
|
|
12457
|
-
options:
|
|
12463
|
+
options: C.value,
|
|
12458
12464
|
"close-on-select": !1,
|
|
12459
12465
|
searchable: !0,
|
|
12460
12466
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
12461
12467
|
placeholder: k.$t("feed.filters.activityType.placeholder"),
|
|
12462
|
-
"onUpdate:modelValue": R[2] || (R[2] = (V) =>
|
|
12468
|
+
"onUpdate:modelValue": R[2] || (R[2] = (V) => m(Q(Dt).type, V))
|
|
12463
12469
|
}, null, 8, ["model-value", "options", "placeholder"])) : O("", !0),
|
|
12464
12470
|
h.value.length ? (d(), D(Se, {
|
|
12465
12471
|
key: 2,
|
|
@@ -12470,7 +12476,7 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
12470
12476
|
searchable: !0,
|
|
12471
12477
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
12472
12478
|
placeholder: k.$t("feed.filters.assignee.placeholder"),
|
|
12473
|
-
"onUpdate:modelValue": R[3] || (R[3] = (V) =>
|
|
12479
|
+
"onUpdate:modelValue": R[3] || (R[3] = (V) => m(Q(Dt).assignee, V))
|
|
12474
12480
|
}, {
|
|
12475
12481
|
tag: F(({
|
|
12476
12482
|
option: V,
|
|
@@ -12559,7 +12565,7 @@ const I4 = { class: "ao-feed" }, L4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
12559
12565
|
"attachment-enabled": k.attachmentEnabled,
|
|
12560
12566
|
projects: $.value,
|
|
12561
12567
|
onClose: R[7] || (R[7] = () => i(null, null)),
|
|
12562
|
-
"onUpdate:activity":
|
|
12568
|
+
"onUpdate:activity": g,
|
|
12563
12569
|
onAddSubtask: z,
|
|
12564
12570
|
onUpdateSubtask: K,
|
|
12565
12571
|
onDeleteSubtask: J,
|
|
@@ -12602,66 +12608,66 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
|
|
|
12602
12608
|
emits: ["addPhase", "updatePhase", "archivePhase", "unarchivePhase", "copyPhaseToTemplate", "applyTemplate", "saveTemplate", "update:showsArchived"],
|
|
12603
12609
|
setup(t, { emit: e }) {
|
|
12604
12610
|
const a = t, { t: s } = _t(), n = () => {
|
|
12605
|
-
const { name:
|
|
12606
|
-
e("addPhase", { name:
|
|
12607
|
-
}, o = (
|
|
12608
|
-
e("updatePhase",
|
|
12609
|
-
}, i = (
|
|
12610
|
-
e("archivePhase",
|
|
12611
|
-
}, l = (
|
|
12612
|
-
e("unarchivePhase",
|
|
12613
|
-
}, r = (
|
|
12614
|
-
e("copyPhaseToTemplate",
|
|
12615
|
-
}, c = q(!1), u = q(!1), v = (
|
|
12616
|
-
e("applyTemplate", { templateId:
|
|
12617
|
-
}, p = (
|
|
12611
|
+
const { name: C, rank: h } = At(a.phases, "phase", s);
|
|
12612
|
+
e("addPhase", { name: C, rank: h, projectId: a.project.id });
|
|
12613
|
+
}, o = (C) => {
|
|
12614
|
+
e("updatePhase", C);
|
|
12615
|
+
}, i = (C) => {
|
|
12616
|
+
e("archivePhase", C);
|
|
12617
|
+
}, l = (C) => {
|
|
12618
|
+
e("unarchivePhase", C);
|
|
12619
|
+
}, r = (C) => {
|
|
12620
|
+
e("copyPhaseToTemplate", C);
|
|
12621
|
+
}, c = q(!1), u = q(!1), v = (C, h) => {
|
|
12622
|
+
e("applyTemplate", { templateId: C, projectId: h }), c.value = !1;
|
|
12623
|
+
}, p = (C, h) => {
|
|
12618
12624
|
var P;
|
|
12619
|
-
const
|
|
12620
|
-
e("saveTemplate", { templateName:
|
|
12621
|
-
},
|
|
12625
|
+
const g = (P = a.templates) == null ? void 0 : P.at(-1), y = g ? we.LexoRank.parse(g.rank).genNext() : we.LexoRank.middle();
|
|
12626
|
+
e("saveTemplate", { templateName: C, rank: y.format(), phaseIds: h }), u.value = !1;
|
|
12627
|
+
}, m = Os(), $ = q("mapping"), w = [
|
|
12622
12628
|
{ label: "Overview", value: "overview" },
|
|
12623
12629
|
{ label: "Feed", value: "feed" },
|
|
12624
12630
|
{ label: "Mapping", value: "mapping" }
|
|
12625
12631
|
];
|
|
12626
|
-
return ce($, (
|
|
12627
|
-
|
|
12628
|
-
}), (
|
|
12629
|
-
f("div", Ae({ class: "ao-project-mapping-overview" },
|
|
12632
|
+
return ce($, (C) => {
|
|
12633
|
+
C === "feed" ? (m.push({ name: ye.feed }), console.log("Navigating to feed...")) : C === "overview" ? (m.push({ name: ye.project }), console.log("Navigating to feed...")) : C === "mapping" && (m.push({ name: ye.mapping }), console.log("Navigating to feed..."));
|
|
12634
|
+
}), (C, h) => (d(), _(fe, null, [
|
|
12635
|
+
f("div", Ae({ class: "ao-project-mapping-overview" }, C.$attrs), [
|
|
12630
12636
|
f("div", V4, [
|
|
12631
12637
|
A(ba, null, {
|
|
12632
12638
|
primary: F(() => [
|
|
12633
12639
|
A(tn, {
|
|
12634
12640
|
tabs: w,
|
|
12635
12641
|
modelValue: $.value,
|
|
12636
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
12642
|
+
"onUpdate:modelValue": h[0] || (h[0] = (g) => $.value = g)
|
|
12637
12643
|
}, null, 8, ["modelValue"]),
|
|
12638
12644
|
A(re, {
|
|
12639
12645
|
class: "ao-feed__show-archived",
|
|
12640
12646
|
size: "sm",
|
|
12641
|
-
"icon-name":
|
|
12647
|
+
"icon-name": C.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
12642
12648
|
"icon-position": "start",
|
|
12643
12649
|
color: "primary",
|
|
12644
12650
|
variant: "ghost",
|
|
12645
|
-
label:
|
|
12651
|
+
label: C.$t("feed.filters.showsArchived.label"),
|
|
12646
12652
|
role: "checkbox",
|
|
12647
|
-
"aria-checked":
|
|
12648
|
-
onClick: h[1] || (h[1] = (
|
|
12653
|
+
"aria-checked": C.showsArchived,
|
|
12654
|
+
onClick: h[1] || (h[1] = (g) => C.$emit("update:showsArchived", !C.showsArchived))
|
|
12649
12655
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
12650
12656
|
]),
|
|
12651
12657
|
secondary: F(() => [
|
|
12652
|
-
|
|
12658
|
+
C.isEditable === !0 ? (d(), D(re, {
|
|
12653
12659
|
key: 0,
|
|
12654
12660
|
class: "ao-project-mapping-overview__save-as-template",
|
|
12655
12661
|
color: "primary",
|
|
12656
|
-
label:
|
|
12657
|
-
onClick: h[2] || (h[2] = (
|
|
12662
|
+
label: C.$t("project.template.save.label"),
|
|
12663
|
+
onClick: h[2] || (h[2] = (g) => u.value = !0)
|
|
12658
12664
|
}, null, 8, ["label"])) : O("", !0),
|
|
12659
|
-
|
|
12665
|
+
C.isEditable === !0 ? (d(), D(re, {
|
|
12660
12666
|
key: 1,
|
|
12661
12667
|
class: "ao-project-mapping-overview__add-template",
|
|
12662
12668
|
color: "primary",
|
|
12663
|
-
label:
|
|
12664
|
-
onClick: h[3] || (h[3] = (
|
|
12669
|
+
label: C.$t("project.template.apply.label"),
|
|
12670
|
+
onClick: h[3] || (h[3] = (g) => c.value = !0)
|
|
12665
12671
|
}, null, 8, ["label"])) : O("", !0)
|
|
12666
12672
|
]),
|
|
12667
12673
|
_: 1
|
|
@@ -12669,10 +12675,10 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
|
|
|
12669
12675
|
f("div", D4, [
|
|
12670
12676
|
f("div", B4, [
|
|
12671
12677
|
A(vi, {
|
|
12672
|
-
phases:
|
|
12673
|
-
"closed-status":
|
|
12674
|
-
"is-editable":
|
|
12675
|
-
users:
|
|
12678
|
+
phases: C.phases,
|
|
12679
|
+
"closed-status": C.closedStatus,
|
|
12680
|
+
"is-editable": C.isEditable === !0,
|
|
12681
|
+
users: C.users,
|
|
12676
12682
|
onAddPhase: n,
|
|
12677
12683
|
onUpdatePhase: o,
|
|
12678
12684
|
onArchivePhase: i,
|
|
@@ -12680,10 +12686,10 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
|
|
|
12680
12686
|
onCopyPhaseToTemplate: r
|
|
12681
12687
|
}, null, 8, ["phases", "closed-status", "is-editable", "users"])
|
|
12682
12688
|
]),
|
|
12683
|
-
|
|
12689
|
+
C.project.architectureImage ? (d(), _("div", j4, [
|
|
12684
12690
|
f("img", {
|
|
12685
12691
|
class: "architecture-image",
|
|
12686
|
-
src:
|
|
12692
|
+
src: C.project.architectureImage.url,
|
|
12687
12693
|
alt: Q(s)("architectureImage.alt")
|
|
12688
12694
|
}, null, 8, R4)
|
|
12689
12695
|
])) : O("", !0)
|
|
@@ -12693,15 +12699,15 @@ const V4 = { class: "ao-project-mapping" }, D4 = { class: "ao-project-mapping-ma
|
|
|
12693
12699
|
(d(), D(Tt, { to: "body" }, [
|
|
12694
12700
|
u.value ? (d(), D(hi, {
|
|
12695
12701
|
key: 0,
|
|
12696
|
-
phases:
|
|
12697
|
-
onClose: h[4] || (h[4] = (
|
|
12702
|
+
phases: C.phases,
|
|
12703
|
+
onClose: h[4] || (h[4] = (g) => u.value = !1),
|
|
12698
12704
|
onSave: p
|
|
12699
12705
|
}, null, 8, ["phases"])) : O("", !0),
|
|
12700
12706
|
c.value ? (d(), D(fi, {
|
|
12701
12707
|
key: 1,
|
|
12702
|
-
"project-id":
|
|
12703
|
-
templates:
|
|
12704
|
-
onClose: h[5] || (h[5] = (
|
|
12708
|
+
"project-id": C.project.id,
|
|
12709
|
+
templates: C.templates,
|
|
12710
|
+
onClose: h[5] || (h[5] = (g) => c.value = !1),
|
|
12705
12711
|
onApply: v
|
|
12706
12712
|
}, null, 8, ["project-id", "templates"])) : O("", !0)
|
|
12707
12713
|
]))
|
|
@@ -12793,8 +12799,8 @@ const jt = {
|
|
|
12793
12799
|
Qe(r, c);
|
|
12794
12800
|
});
|
|
12795
12801
|
const n = () => {
|
|
12796
|
-
var p,
|
|
12797
|
-
const r = (p = a.templates) == null ? void 0 : p.at(-1), c = r ? we.LexoRank.parse(r.rank).genNext() : we.LexoRank.middle(), u = ((
|
|
12802
|
+
var p, m;
|
|
12803
|
+
const r = (p = a.templates) == null ? void 0 : p.at(-1), c = r ? we.LexoRank.parse(r.rank).genNext() : we.LexoRank.middle(), u = ((m = a.templates) == null ? void 0 : m.length) ?? 0, v = {
|
|
12798
12804
|
name: s("template.defaultName.template", { idx: u + 1 }),
|
|
12799
12805
|
rank: c.format()
|
|
12800
12806
|
};
|
|
@@ -12866,7 +12872,7 @@ const jt = {
|
|
|
12866
12872
|
name: Q(jt).TEMPLATE_DETAILS,
|
|
12867
12873
|
params: { templateId: u.id }
|
|
12868
12874
|
}),
|
|
12869
|
-
onDeleteItem: c[0] || (c[0] = (p,
|
|
12875
|
+
onDeleteItem: c[0] || (c[0] = (p, m) => i(p, m))
|
|
12870
12876
|
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
12871
12877
|
];
|
|
12872
12878
|
}),
|