@26lights/orcha 0.34.3 → 0.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +467 -472
- package/dist/orcha.umd.js +1 -1
- package/dist/src/types/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1258,16 +1258,16 @@ const _e = /* @__PURE__ */ ae({
|
|
|
1258
1258
|
click: (b) => b.stopPropagation(),
|
|
1259
1259
|
blur: m
|
|
1260
1260
|
} : {
|
|
1261
|
-
click:
|
|
1262
|
-
focus:
|
|
1263
|
-
} : {}), d = i((b,
|
|
1264
|
-
const A =
|
|
1261
|
+
click: y,
|
|
1262
|
+
focus: y
|
|
1263
|
+
} : {}), d = i((b, _) => {
|
|
1264
|
+
const A = _.target.value;
|
|
1265
1265
|
e("update:title", A);
|
|
1266
1266
|
}), c = l(), m = async () => {
|
|
1267
1267
|
s.value && o(!1);
|
|
1268
1268
|
}, p = () => {
|
|
1269
1269
|
e("toggle-is-editing", !1);
|
|
1270
|
-
},
|
|
1270
|
+
}, y = (b) => {
|
|
1271
1271
|
b.stopPropagation(), s.value || o(!0);
|
|
1272
1272
|
};
|
|
1273
1273
|
return ce(
|
|
@@ -1275,7 +1275,7 @@ const _e = /* @__PURE__ */ ae({
|
|
|
1275
1275
|
(b) => {
|
|
1276
1276
|
b || c();
|
|
1277
1277
|
}
|
|
1278
|
-
), (b,
|
|
1278
|
+
), (b, _) => (f(), N(pt(r.value), Ve({
|
|
1279
1279
|
id: b.id,
|
|
1280
1280
|
ref_key: "target",
|
|
1281
1281
|
ref: n,
|
|
@@ -1586,8 +1586,8 @@ function La(t, e) {
|
|
|
1586
1586
|
var d = ca(), c = Xe((a = (n = (s = (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 && s !== void 0 ? s : d.weekStartsOn) !== null && n !== void 0 ? n : (r = d.locale) === null || r === void 0 || (u = r.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && a !== void 0 ? a : 0);
|
|
1587
1587
|
if (!(c >= 0 && c <= 6))
|
|
1588
1588
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1589
|
-
var m = be(t), p = m.getUTCDay(),
|
|
1590
|
-
return m.setUTCDate(m.getUTCDate() -
|
|
1589
|
+
var m = be(t), p = m.getUTCDay(), y = (p < c ? 7 : 0) + p - c;
|
|
1590
|
+
return m.setUTCDate(m.getUTCDate() - y), m.setUTCHours(0, 0, 0, 0), m;
|
|
1591
1591
|
}
|
|
1592
1592
|
function $n(t, e) {
|
|
1593
1593
|
var a, n, s, o, i, l, r, u;
|
|
@@ -1595,11 +1595,11 @@ function $n(t, e) {
|
|
|
1595
1595
|
var d = be(t), c = d.getUTCFullYear(), m = ca(), p = Xe((a = (n = (s = (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 && s !== void 0 ? s : m.firstWeekContainsDate) !== null && n !== void 0 ? n : (r = m.locale) === null || r === void 0 || (u = r.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
1596
1596
|
if (!(p >= 1 && p <= 7))
|
|
1597
1597
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1598
|
-
var
|
|
1599
|
-
|
|
1600
|
-
var b = La(
|
|
1601
|
-
|
|
1602
|
-
var h = La(
|
|
1598
|
+
var y = /* @__PURE__ */ new Date(0);
|
|
1599
|
+
y.setUTCFullYear(c + 1, 0, p), y.setUTCHours(0, 0, 0, 0);
|
|
1600
|
+
var b = La(y, e), _ = /* @__PURE__ */ new Date(0);
|
|
1601
|
+
_.setUTCFullYear(c, 0, p), _.setUTCHours(0, 0, 0, 0);
|
|
1602
|
+
var h = La(_, e);
|
|
1603
1603
|
return d.getTime() >= b.getTime() ? c + 1 : d.getTime() >= h.getTime() ? c : c - 1;
|
|
1604
1604
|
}
|
|
1605
1605
|
function j2(t, e) {
|
|
@@ -1607,8 +1607,8 @@ function j2(t, e) {
|
|
|
1607
1607
|
ge(1, arguments);
|
|
1608
1608
|
var d = ca(), c = Xe((a = (n = (s = (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 && s !== void 0 ? s : d.firstWeekContainsDate) !== null && n !== void 0 ? n : (r = d.locale) === null || r === void 0 || (u = r.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && a !== void 0 ? a : 1), m = $n(t, e), p = /* @__PURE__ */ new Date(0);
|
|
1609
1609
|
p.setUTCFullYear(m, 0, c), p.setUTCHours(0, 0, 0, 0);
|
|
1610
|
-
var
|
|
1611
|
-
return
|
|
1610
|
+
var y = La(p, e);
|
|
1611
|
+
return y;
|
|
1612
1612
|
}
|
|
1613
1613
|
var U2 = 6048e5;
|
|
1614
1614
|
function Z2(t, e) {
|
|
@@ -2722,12 +2722,12 @@ var H0 = {
|
|
|
2722
2722
|
const Mn = H0;
|
|
2723
2723
|
var B0 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, R0 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, N0 = /^'([^]*?)'?$/, j0 = /''/g, U0 = /[a-zA-Z]/;
|
|
2724
2724
|
function An(t, e, a) {
|
|
2725
|
-
var n, s, o, i, l, r, u, d, c, m, p,
|
|
2725
|
+
var n, s, o, i, l, r, u, d, c, m, p, y, b, _, h, A, $, S;
|
|
2726
2726
|
ge(2, arguments);
|
|
2727
2727
|
var D = String(e), I = ca(), Z = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : I.locale) !== null && n !== void 0 ? n : Mn, F = Xe((o = (i = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (u = a.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && l !== void 0 ? l : I.firstWeekContainsDate) !== null && i !== void 0 ? i : (c = I.locale) === null || c === void 0 || (m = c.options) === null || m === void 0 ? void 0 : m.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2728
2728
|
if (!(F >= 1 && F <= 7))
|
|
2729
2729
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2730
|
-
var K = Xe((p = (
|
|
2730
|
+
var K = Xe((p = (y = (b = (_ = a == null ? void 0 : a.weekStartsOn) !== null && _ !== void 0 ? _ : a == null || (h = a.locale) === null || h === void 0 || (A = h.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && b !== void 0 ? b : I.weekStartsOn) !== null && y !== void 0 ? y : ($ = I.locale) === null || $ === void 0 || (S = $.options) === null || S === void 0 ? void 0 : S.weekStartsOn) !== null && p !== void 0 ? p : 0);
|
|
2731
2731
|
if (!(K >= 0 && K <= 6))
|
|
2732
2732
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2733
2733
|
if (!Z.localize)
|
|
@@ -2771,24 +2771,24 @@ function Z0(t) {
|
|
|
2771
2771
|
function F0(t, e, a) {
|
|
2772
2772
|
var n, s, o, i, l, r, u, d, c, m;
|
|
2773
2773
|
ge(2, arguments);
|
|
2774
|
-
var p = be(t),
|
|
2775
|
-
if (!
|
|
2774
|
+
var p = be(t), y = be(e), b = ca(), _ = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : b.locale) !== null && n !== void 0 ? n : Mn, h = Xe((o = (i = (l = (r = a == null ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : a == null || (u = a.locale) === null || u === void 0 || (d = u.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && l !== void 0 ? l : b.weekStartsOn) !== null && i !== void 0 ? i : (c = b.locale) === null || c === void 0 || (m = c.options) === null || m === void 0 ? void 0 : m.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2775
|
+
if (!_.localize)
|
|
2776
2776
|
throw new RangeError("locale must contain localize property");
|
|
2777
|
-
if (!
|
|
2777
|
+
if (!_.formatLong)
|
|
2778
2778
|
throw new RangeError("locale must contain formatLong property");
|
|
2779
|
-
if (!
|
|
2779
|
+
if (!_.formatRelative)
|
|
2780
2780
|
throw new RangeError("locale must contain formatRelative property");
|
|
2781
|
-
var A = L2(p,
|
|
2781
|
+
var A = L2(p, y);
|
|
2782
2782
|
if (isNaN(A))
|
|
2783
2783
|
throw new RangeError("Invalid time value");
|
|
2784
|
-
var
|
|
2785
|
-
A < -6 ?
|
|
2786
|
-
var S = f1(p, na(p)), D = f1(
|
|
2787
|
-
locale:
|
|
2784
|
+
var $;
|
|
2785
|
+
A < -6 ? $ = "other" : A < -1 ? $ = "lastWeek" : A < 0 ? $ = "yesterday" : A < 1 ? $ = "today" : A < 2 ? $ = "tomorrow" : A < 7 ? $ = "nextWeek" : $ = "other";
|
|
2786
|
+
var S = f1(p, na(p)), D = f1(y, na(y)), I = _.formatRelative($, S, D, {
|
|
2787
|
+
locale: _,
|
|
2788
2788
|
weekStartsOn: h
|
|
2789
2789
|
});
|
|
2790
2790
|
return An(p, I, {
|
|
2791
|
-
locale:
|
|
2791
|
+
locale: _,
|
|
2792
2792
|
weekStartsOn: h
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
@@ -3487,17 +3487,17 @@ function In() {
|
|
|
3487
3487
|
r = d;
|
|
3488
3488
|
}
|
|
3489
3489
|
let c;
|
|
3490
|
-
for (let
|
|
3491
|
-
const b =
|
|
3492
|
-
if (c = u.setScale(b, !1),
|
|
3493
|
-
return s.checkMid(i, l,
|
|
3494
|
-
if (
|
|
3490
|
+
for (let y = r.getScale(); y > 0; u = c) {
|
|
3491
|
+
const b = y - 1, _ = r.setScale(b, !0);
|
|
3492
|
+
if (c = u.setScale(b, !1), _.compareTo(c) === 0)
|
|
3493
|
+
return s.checkMid(i, l, _);
|
|
3494
|
+
if (_.compareTo(c) > 0)
|
|
3495
3495
|
break;
|
|
3496
|
-
|
|
3496
|
+
y = b, r = _;
|
|
3497
3497
|
}
|
|
3498
3498
|
let m = s.middleInternal(i, l, r, u), p;
|
|
3499
|
-
for (let
|
|
3500
|
-
p =
|
|
3499
|
+
for (let y = m.getScale(); y > 0; y = p) {
|
|
3500
|
+
p = y - 1;
|
|
3501
3501
|
const b = m.setScale(p);
|
|
3502
3502
|
if (i.compareTo(b) >= 0 || b.compareTo(l) >= 0)
|
|
3503
3503
|
break;
|
|
@@ -4341,14 +4341,14 @@ const C5 = async (t, e, a) => {
|
|
|
4341
4341
|
}), {
|
|
4342
4342
|
x: d,
|
|
4343
4343
|
y: c
|
|
4344
|
-
} = J1(u, n, r), m = n, p = {},
|
|
4344
|
+
} = J1(u, n, r), m = n, p = {}, y = 0;
|
|
4345
4345
|
for (let b = 0; b < l.length; b++) {
|
|
4346
4346
|
const {
|
|
4347
|
-
name:
|
|
4347
|
+
name: _,
|
|
4348
4348
|
fn: h
|
|
4349
4349
|
} = l[b], {
|
|
4350
4350
|
x: A,
|
|
4351
|
-
y:
|
|
4351
|
+
y: $,
|
|
4352
4352
|
data: S,
|
|
4353
4353
|
reset: D
|
|
4354
4354
|
} = await h({
|
|
@@ -4365,14 +4365,14 @@ const C5 = async (t, e, a) => {
|
|
|
4365
4365
|
floating: e
|
|
4366
4366
|
}
|
|
4367
4367
|
});
|
|
4368
|
-
if (d = A ?? d, c =
|
|
4368
|
+
if (d = A ?? d, c = $ ?? c, p = {
|
|
4369
4369
|
...p,
|
|
4370
|
-
[
|
|
4371
|
-
...p[
|
|
4370
|
+
[_]: {
|
|
4371
|
+
...p[_],
|
|
4372
4372
|
...S
|
|
4373
4373
|
}
|
|
4374
|
-
}, D &&
|
|
4375
|
-
|
|
4374
|
+
}, D && y <= 50) {
|
|
4375
|
+
y++, typeof D == "object" && (D.placement && (m = D.placement), D.rects && (u = D.rects === !0 ? await i.getElementRects({
|
|
4376
4376
|
reference: t,
|
|
4377
4377
|
floating: e,
|
|
4378
4378
|
strategy: s
|
|
@@ -4407,8 +4407,8 @@ async function Pn(t, e) {
|
|
|
4407
4407
|
elementContext: c = "floating",
|
|
4408
4408
|
altBoundary: m = !1,
|
|
4409
4409
|
padding: p = 0
|
|
4410
|
-
} = M1(e, t),
|
|
4411
|
-
element: (a = await (o.isElement == null ? void 0 : o.isElement(
|
|
4410
|
+
} = M1(e, t), y = h5(p), _ = l[m ? c === "floating" ? "reference" : "floating" : c], h = Pa(await o.getClippingRect({
|
|
4411
|
+
element: (a = await (o.isElement == null ? void 0 : o.isElement(_))) == null || a ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4412
4412
|
boundary: u,
|
|
4413
4413
|
rootBoundary: d,
|
|
4414
4414
|
strategy: r
|
|
@@ -4416,7 +4416,7 @@ async function Pn(t, e) {
|
|
|
4416
4416
|
...i.floating,
|
|
4417
4417
|
x: n,
|
|
4418
4418
|
y: s
|
|
4419
|
-
} : i.reference,
|
|
4419
|
+
} : i.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), S = await (o.isElement == null ? void 0 : o.isElement($)) ? await (o.getScale == null ? void 0 : o.getScale($)) || {
|
|
4420
4420
|
x: 1,
|
|
4421
4421
|
y: 1
|
|
4422
4422
|
} : {
|
|
@@ -4424,14 +4424,14 @@ async function Pn(t, e) {
|
|
|
4424
4424
|
y: 1
|
|
4425
4425
|
}, D = Pa(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4426
4426
|
rect: A,
|
|
4427
|
-
offsetParent:
|
|
4427
|
+
offsetParent: $,
|
|
4428
4428
|
strategy: r
|
|
4429
4429
|
}) : A);
|
|
4430
4430
|
return {
|
|
4431
|
-
top: (h.top - D.top +
|
|
4432
|
-
bottom: (D.bottom - h.bottom +
|
|
4433
|
-
left: (h.left - D.left +
|
|
4434
|
-
right: (D.right - h.right +
|
|
4431
|
+
top: (h.top - D.top + y.top) / S.y,
|
|
4432
|
+
bottom: (D.bottom - h.bottom + y.bottom) / S.y,
|
|
4433
|
+
left: (h.left - D.left + y.left) / S.x,
|
|
4434
|
+
right: (D.right - h.right + y.right) / S.x
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
4437
|
const g5 = function(t) {
|
|
@@ -4452,18 +4452,18 @@ const g5 = function(t) {
|
|
|
4452
4452
|
crossAxis: c = !0,
|
|
4453
4453
|
fallbackPlacements: m,
|
|
4454
4454
|
fallbackStrategy: p = "bestFit",
|
|
4455
|
-
fallbackAxisSideDirection:
|
|
4455
|
+
fallbackAxisSideDirection: y = "none",
|
|
4456
4456
|
flipAlignment: b = !0,
|
|
4457
|
-
...
|
|
4457
|
+
..._
|
|
4458
4458
|
} = M1(t, e);
|
|
4459
4459
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4460
4460
|
return {};
|
|
4461
|
-
const h = Bt(s), A = Bt(l) === l,
|
|
4462
|
-
!m &&
|
|
4463
|
-
const D = [l, ...S], I = await Pn(e,
|
|
4461
|
+
const h = Bt(s), A = Bt(l) === l, $ = await (r.isRTL == null ? void 0 : r.isRTL(u.floating)), S = m || (A || !b ? [Da(l)] : f5(l));
|
|
4462
|
+
!m && y !== "none" && S.push(...p5(l, b, y, $));
|
|
4463
|
+
const D = [l, ...S], I = await Pn(e, _), Z = [];
|
|
4464
4464
|
let F = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4465
4465
|
if (d && Z.push(I[h]), c) {
|
|
4466
|
-
const B = c5(s, i,
|
|
4466
|
+
const B = c5(s, i, $);
|
|
4467
4467
|
Z.push(I[B[0]], I[B[1]]);
|
|
4468
4468
|
}
|
|
4469
4469
|
if (F = [...F, {
|
|
@@ -4523,25 +4523,25 @@ const g5 = function(t) {
|
|
|
4523
4523
|
width: m,
|
|
4524
4524
|
height: p
|
|
4525
4525
|
} = n.floating;
|
|
4526
|
-
let
|
|
4527
|
-
u === "top" || u === "bottom" ? (
|
|
4528
|
-
const
|
|
4529
|
-
let
|
|
4526
|
+
let y, b;
|
|
4527
|
+
u === "top" || u === "bottom" ? (y = u, b = d === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (b = u, y = d === "end" ? "top" : "bottom");
|
|
4528
|
+
const _ = p - r[y], h = m - r[b], A = !e.middlewareData.shift;
|
|
4529
|
+
let $ = _, S = h;
|
|
4530
4530
|
if (c) {
|
|
4531
4531
|
const I = m - r.left - r.right;
|
|
4532
4532
|
S = d || A ? oa(h, I) : I;
|
|
4533
4533
|
} else {
|
|
4534
4534
|
const I = p - r.top - r.bottom;
|
|
4535
|
-
|
|
4535
|
+
$ = d || A ? oa(_, I) : I;
|
|
4536
4536
|
}
|
|
4537
4537
|
if (A && !d) {
|
|
4538
4538
|
const I = Oe(r.left, 0), Z = Oe(r.right, 0), F = Oe(r.top, 0), K = Oe(r.bottom, 0);
|
|
4539
|
-
c ? S = m - 2 * (I !== 0 || Z !== 0 ? I + Z : Oe(r.left, r.right)) :
|
|
4539
|
+
c ? S = m - 2 * (I !== 0 || Z !== 0 ? I + Z : Oe(r.left, r.right)) : $ = p - 2 * (F !== 0 || K !== 0 ? F + K : Oe(r.top, r.bottom));
|
|
4540
4540
|
}
|
|
4541
4541
|
await i({
|
|
4542
4542
|
...e,
|
|
4543
4543
|
availableWidth: S,
|
|
4544
|
-
availableHeight:
|
|
4544
|
+
availableHeight: $
|
|
4545
4545
|
});
|
|
4546
4546
|
const D = await s.getDimensions(o.floating);
|
|
4547
4547
|
return m !== D.width || p !== D.height ? {
|
|
@@ -4688,10 +4688,10 @@ function $t(t, e, a, n) {
|
|
|
4688
4688
|
let r = (s.left + l.x) / i.x, u = (s.top + l.y) / i.y, d = s.width / i.x, c = s.height / i.y;
|
|
4689
4689
|
if (o) {
|
|
4690
4690
|
const m = ke(o), p = n && Je(n) ? ke(n) : n;
|
|
4691
|
-
let
|
|
4692
|
-
for (;
|
|
4693
|
-
const b = Dt(
|
|
4694
|
-
r *= b.x, u *= b.y, d *= b.x, c *= b.y, r += A, u +=
|
|
4691
|
+
let y = m.frameElement;
|
|
4692
|
+
for (; y && n && p !== m; ) {
|
|
4693
|
+
const b = Dt(y), _ = y.getBoundingClientRect(), h = He(y), A = _.left + (y.clientLeft + parseFloat(h.paddingLeft)) * b.x, $ = _.top + (y.clientTop + parseFloat(h.paddingTop)) * b.y;
|
|
4694
|
+
r *= b.x, u *= b.y, d *= b.x, c *= b.y, r += A, u += $, y = ke(y).frameElement;
|
|
4695
4695
|
}
|
|
4696
4696
|
}
|
|
4697
4697
|
return Pa({
|
|
@@ -4902,21 +4902,21 @@ function H5(t, e) {
|
|
|
4902
4902
|
} = t.getBoundingClientRect();
|
|
4903
4903
|
if (l || e(), !c || !m)
|
|
4904
4904
|
return;
|
|
4905
|
-
const p = Aa(d),
|
|
4906
|
-
rootMargin: -p + "px " + -
|
|
4905
|
+
const p = Aa(d), y = Aa(s.clientWidth - (u + c)), b = Aa(s.clientHeight - (d + m)), _ = Aa(u), A = {
|
|
4906
|
+
rootMargin: -p + "px " + -y + "px " + -b + "px " + -_ + "px",
|
|
4907
4907
|
threshold: Oe(0, oa(1, r)) || 1
|
|
4908
4908
|
};
|
|
4909
|
-
let
|
|
4909
|
+
let $ = !0;
|
|
4910
4910
|
function S(D) {
|
|
4911
4911
|
const I = D[0].intersectionRatio;
|
|
4912
4912
|
if (I !== r) {
|
|
4913
|
-
if (
|
|
4913
|
+
if (!$)
|
|
4914
4914
|
return i();
|
|
4915
4915
|
I ? i(!1, I) : n = setTimeout(() => {
|
|
4916
4916
|
i(!1, 1e-7);
|
|
4917
4917
|
}, 100);
|
|
4918
4918
|
}
|
|
4919
|
-
|
|
4919
|
+
$ = !1;
|
|
4920
4920
|
}
|
|
4921
4921
|
try {
|
|
4922
4922
|
a = new IntersectionObserver(S, {
|
|
@@ -4953,16 +4953,16 @@ function B5(t, e, a, n) {
|
|
|
4953
4953
|
p && p.observe(e);
|
|
4954
4954
|
})), a();
|
|
4955
4955
|
}), u && !r && p.observe(u), p.observe(e));
|
|
4956
|
-
let
|
|
4957
|
-
r &&
|
|
4958
|
-
function
|
|
4956
|
+
let y, b = r ? $t(t) : null;
|
|
4957
|
+
r && _();
|
|
4958
|
+
function _() {
|
|
4959
4959
|
const h = $t(t);
|
|
4960
|
-
b && (h.x !== b.x || h.y !== b.y || h.width !== b.width || h.height !== b.height) && a(), b = h,
|
|
4960
|
+
b && (h.x !== b.x || h.y !== b.y || h.width !== b.width || h.height !== b.height) && a(), b = h, y = requestAnimationFrame(_);
|
|
4961
4961
|
}
|
|
4962
4962
|
return a(), () => {
|
|
4963
4963
|
d.forEach((h) => {
|
|
4964
4964
|
s && h.removeEventListener("scroll", a), o && h.removeEventListener("resize", a);
|
|
4965
|
-
}), c && c(), p && p.disconnect(), p = null, r && cancelAnimationFrame(
|
|
4965
|
+
}), c && c(), p && p.disconnect(), p = null, r && cancelAnimationFrame(y);
|
|
4966
4966
|
};
|
|
4967
4967
|
}
|
|
4968
4968
|
const R5 = (t, e, a) => {
|
|
@@ -5002,9 +5002,9 @@ const R5 = (t, e, a) => {
|
|
|
5002
5002
|
transform: "none",
|
|
5003
5003
|
marginTop: 0
|
|
5004
5004
|
}), i.appendChild(m), t.multiselect.value.handleFocusOut = r;
|
|
5005
|
-
const
|
|
5005
|
+
const y = B5(a.value, n.value, d);
|
|
5006
5006
|
l.value = () => {
|
|
5007
|
-
n.value && i.contains(n.value) && i.removeChild(n.value),
|
|
5007
|
+
n.value && i.contains(n.value) && i.removeChild(n.value), y();
|
|
5008
5008
|
};
|
|
5009
5009
|
}
|
|
5010
5010
|
function d() {
|
|
@@ -5017,10 +5017,10 @@ const R5 = (t, e, a) => {
|
|
|
5017
5017
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
5018
5018
|
}),
|
|
5019
5019
|
_5({
|
|
5020
|
-
apply({ availableWidth: c, availableHeight: m, elements: p, rects:
|
|
5020
|
+
apply({ availableWidth: c, availableHeight: m, elements: p, rects: y }) {
|
|
5021
5021
|
Object.assign(p.floating.style, {
|
|
5022
5022
|
minHeight: `${s.value}px`,
|
|
5023
|
-
width: `${
|
|
5023
|
+
width: `${y.reference.width}px`,
|
|
5024
5024
|
maxWidth: `${c}px`,
|
|
5025
5025
|
maxHeight: `${m}px`
|
|
5026
5026
|
// These numbers are pleasant defaults/control for screen size.
|
|
@@ -5079,9 +5079,9 @@ function Z5(t, e, a) {
|
|
|
5079
5079
|
}
|
|
5080
5080
|
}, c = (m) => {
|
|
5081
5081
|
if (n && n.value) {
|
|
5082
|
-
let
|
|
5082
|
+
let y = (m.clipboardData || /* istanbul ignore next */
|
|
5083
5083
|
window.clipboardData).getData("Text"), b = n.value;
|
|
5084
|
-
typeof b == "string" && (b = new RegExp(b)),
|
|
5084
|
+
typeof b == "string" && (b = new RegExp(b)), y.split("").every((_) => !!_.match(b)) || m.preventDefault();
|
|
5085
5085
|
}
|
|
5086
5086
|
e.emit("paste", m, s);
|
|
5087
5087
|
};
|
|
@@ -5132,12 +5132,12 @@ function z5(t, e, a) {
|
|
|
5132
5132
|
appendNewTag: c,
|
|
5133
5133
|
appendNewOption: m,
|
|
5134
5134
|
multipleLabel: p,
|
|
5135
|
-
object:
|
|
5135
|
+
object: y,
|
|
5136
5136
|
loading: b,
|
|
5137
|
-
delay:
|
|
5137
|
+
delay: _,
|
|
5138
5138
|
resolveOnLoad: h,
|
|
5139
5139
|
minChars: A,
|
|
5140
|
-
filterResults:
|
|
5140
|
+
filterResults: $,
|
|
5141
5141
|
clearOnSearch: S,
|
|
5142
5142
|
clearOnSelect: D,
|
|
5143
5143
|
valueProp: I,
|
|
@@ -5160,46 +5160,46 @@ function z5(t, e, a) {
|
|
|
5160
5160
|
searchFilter: re
|
|
5161
5161
|
} = Ae(t), W = Mt().proxy, R = a.iv, V = a.ev, G = a.search, ve = a.clearSearch, $e = a.update, Wt = a.pointer, zt = a.setPointer, at = a.clearPointer, ha = a.focus, Qa = a.deactivate, nt = a.close, Ca = a.localize, st = se([]), Ne = se([]), Te = se(!1), Be = se(null), We = se(U.value && i.value === -1 ? 10 : i.value), Yt = M(() => r.value || u.value || !1), ga = M(() => c.value !== void 0 ? c.value : m.value !== void 0 ? m.value : !0), Se = M(() => {
|
|
5162
5162
|
if (H.value) {
|
|
5163
|
-
let
|
|
5163
|
+
let w = gt.value || /* istanbul ignore next */
|
|
5164
5164
|
[], P = [];
|
|
5165
|
-
return
|
|
5165
|
+
return w.forEach((oe) => {
|
|
5166
5166
|
i1(oe[T.value]).forEach((pe) => {
|
|
5167
5167
|
P.push(Object.assign({}, pe, oe[k.value] ? { [k.value]: !0 } : {}));
|
|
5168
5168
|
});
|
|
5169
5169
|
}), P;
|
|
5170
5170
|
} else {
|
|
5171
|
-
let
|
|
5171
|
+
let w = i1(Ne.value || /* istanbul ignore next */
|
|
5172
5172
|
[]);
|
|
5173
|
-
return st.value.length && (
|
|
5173
|
+
return st.value.length && (w = w.concat(st.value)), w;
|
|
5174
5174
|
}
|
|
5175
5175
|
}), xt = M(() => {
|
|
5176
|
-
let
|
|
5177
|
-
return te.value && (
|
|
5176
|
+
let w = Se.value;
|
|
5177
|
+
return te.value && (w = w.reverse()), Tt.value.length && (w = Tt.value.concat(w)), s1(w);
|
|
5178
5178
|
}), it = M(() => {
|
|
5179
|
-
let
|
|
5180
|
-
return We.value > 0 && (
|
|
5179
|
+
let w = xt.value;
|
|
5180
|
+
return We.value > 0 && (w = w.slice(0, We.value)), w;
|
|
5181
5181
|
}), gt = M(() => {
|
|
5182
5182
|
if (!H.value)
|
|
5183
5183
|
return [];
|
|
5184
|
-
let
|
|
5184
|
+
let w = [], P = Ne.value || /* istanbul ignore next */
|
|
5185
5185
|
[];
|
|
5186
|
-
return st.value.length &&
|
|
5186
|
+
return st.value.length && w.push({
|
|
5187
5187
|
[F.value]: " ",
|
|
5188
5188
|
[T.value]: [...st.value],
|
|
5189
5189
|
__CREATE__: !0
|
|
5190
|
-
}),
|
|
5190
|
+
}), w.concat(P);
|
|
5191
5191
|
}), _a = M(() => {
|
|
5192
|
-
let
|
|
5193
|
-
return Tt.value.length && (
|
|
5192
|
+
let w = [...gt.value].map((P) => ({ ...P }));
|
|
5193
|
+
return Tt.value.length && (w[0] && w[0].__CREATE__ ? w[0][T.value] = [...Tt.value, ...w[0][T.value]] : w = [{
|
|
5194
5194
|
[F.value]: " ",
|
|
5195
5195
|
[T.value]: [...Tt.value],
|
|
5196
5196
|
__CREATE__: !0
|
|
5197
|
-
}].concat(
|
|
5197
|
+
}].concat(w)), w;
|
|
5198
5198
|
}), Ja = M(() => {
|
|
5199
5199
|
if (!H.value)
|
|
5200
5200
|
return [];
|
|
5201
|
-
let
|
|
5202
|
-
return fs((
|
|
5201
|
+
let w = _a.value;
|
|
5202
|
+
return fs((w || /* istanbul ignore next */
|
|
5203
5203
|
[]).map((P, oe) => {
|
|
5204
5204
|
const pe = i1(P[T.value]);
|
|
5205
5205
|
return {
|
|
@@ -5231,114 +5231,114 @@ function z5(t, e, a) {
|
|
|
5231
5231
|
case "tags":
|
|
5232
5232
|
return [];
|
|
5233
5233
|
}
|
|
5234
|
-
}), as = M(() => b.value || Te.value), St = (
|
|
5235
|
-
switch (typeof
|
|
5234
|
+
}), as = M(() => b.value || Te.value), St = (w) => {
|
|
5235
|
+
switch (typeof w != "object" && (w = Ye(w)), s.value) {
|
|
5236
5236
|
case "single":
|
|
5237
|
-
$e(
|
|
5237
|
+
$e(w);
|
|
5238
5238
|
break;
|
|
5239
5239
|
case "multiple":
|
|
5240
5240
|
case "tags":
|
|
5241
|
-
$e(R.value.concat(
|
|
5241
|
+
$e(R.value.concat(w));
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
|
-
e.emit("select", N1(
|
|
5245
|
-
}, Et = (
|
|
5246
|
-
switch (typeof
|
|
5244
|
+
e.emit("select", N1(w), w, W);
|
|
5245
|
+
}, Et = (w) => {
|
|
5246
|
+
switch (typeof w != "object" && (w = Ye(w)), s.value) {
|
|
5247
5247
|
case "single":
|
|
5248
5248
|
U1();
|
|
5249
5249
|
break;
|
|
5250
5250
|
case "tags":
|
|
5251
5251
|
case "multiple":
|
|
5252
|
-
$e(Array.isArray(
|
|
5252
|
+
$e(Array.isArray(w) ? R.value.filter((P) => w.map((oe) => oe[I.value]).indexOf(P[I.value]) === -1) : R.value.filter((P) => P[I.value] != w[I.value]));
|
|
5253
5253
|
break;
|
|
5254
5254
|
}
|
|
5255
|
-
e.emit("deselect", N1(
|
|
5256
|
-
}, N1 = (
|
|
5257
|
-
Et(
|
|
5258
|
-
}, ns = (
|
|
5255
|
+
e.emit("deselect", N1(w), w, W);
|
|
5256
|
+
}, N1 = (w) => y.value ? w : w[I.value], j1 = (w) => {
|
|
5257
|
+
Et(w);
|
|
5258
|
+
}, ns = (w, P) => {
|
|
5259
5259
|
if (P.button !== 0) {
|
|
5260
5260
|
P.preventDefault();
|
|
5261
5261
|
return;
|
|
5262
5262
|
}
|
|
5263
|
-
j1(
|
|
5263
|
+
j1(w);
|
|
5264
5264
|
}, U1 = () => {
|
|
5265
5265
|
$e(ts.value), e.emit("clear", W);
|
|
5266
|
-
}, ze = (
|
|
5267
|
-
if (
|
|
5268
|
-
return s.value === "single" ? !1 : rs(
|
|
5266
|
+
}, ze = (w) => {
|
|
5267
|
+
if (w.group !== void 0)
|
|
5268
|
+
return s.value === "single" ? !1 : rs(w[T.value]) && w[T.value].length;
|
|
5269
5269
|
switch (s.value) {
|
|
5270
5270
|
case "single":
|
|
5271
|
-
return !je(R.value) && R.value[I.value] ==
|
|
5271
|
+
return !je(R.value) && R.value[I.value] == w[I.value];
|
|
5272
5272
|
case "tags":
|
|
5273
5273
|
case "multiple":
|
|
5274
|
-
return !je(R.value) && R.value.map((P) => P[I.value]).indexOf(
|
|
5274
|
+
return !je(R.value) && R.value.map((P) => P[I.value]).indexOf(w[I.value]) !== -1;
|
|
5275
5275
|
}
|
|
5276
|
-
}, t1 = (
|
|
5277
|
-
if (!t1(
|
|
5278
|
-
if (le && le.value && !ze(
|
|
5279
|
-
Te.value = !0,
|
|
5276
|
+
}, t1 = (w) => w[k.value] === !0, a1 = () => O === void 0 || O.value === -1 || !e1.value && O.value > 0 ? !1 : R.value.length >= O.value, ss = (w) => {
|
|
5277
|
+
if (!t1(w)) {
|
|
5278
|
+
if (le && le.value && !ze(w) && w.__CREATE__ && (w = { ...w }, delete w.__CREATE__, w = le.value(w, W), w instanceof Promise)) {
|
|
5279
|
+
Te.value = !0, w.then((P) => {
|
|
5280
5280
|
Te.value = !1, Z1(P);
|
|
5281
5281
|
});
|
|
5282
5282
|
return;
|
|
5283
5283
|
}
|
|
5284
|
-
Z1(
|
|
5284
|
+
Z1(w);
|
|
5285
5285
|
}
|
|
5286
|
-
}, Z1 = (
|
|
5287
|
-
switch (
|
|
5286
|
+
}, Z1 = (w) => {
|
|
5287
|
+
switch (w.__CREATE__ && (w = { ...w }, delete w.__CREATE__), s.value) {
|
|
5288
5288
|
case "single":
|
|
5289
|
-
if (
|
|
5290
|
-
K.value && Et(
|
|
5289
|
+
if (w && ze(w)) {
|
|
5290
|
+
K.value && Et(w), C.value && (at(), nt());
|
|
5291
5291
|
return;
|
|
5292
5292
|
}
|
|
5293
|
-
|
|
5293
|
+
w && n1(w), D.value && ve(), B.value && (at(), nt()), w && St(w);
|
|
5294
5294
|
break;
|
|
5295
5295
|
case "multiple":
|
|
5296
|
-
if (
|
|
5297
|
-
Et(
|
|
5296
|
+
if (w && ze(w)) {
|
|
5297
|
+
Et(w), C.value && (at(), nt());
|
|
5298
5298
|
return;
|
|
5299
5299
|
}
|
|
5300
5300
|
if (a1()) {
|
|
5301
5301
|
e.emit("max", W);
|
|
5302
5302
|
return;
|
|
5303
5303
|
}
|
|
5304
|
-
|
|
5304
|
+
w && (n1(w), St(w)), D.value && ve(), l.value && at(), B.value && nt();
|
|
5305
5305
|
break;
|
|
5306
5306
|
case "tags":
|
|
5307
|
-
if (
|
|
5308
|
-
Et(
|
|
5307
|
+
if (w && ze(w)) {
|
|
5308
|
+
Et(w), C.value && (at(), nt());
|
|
5309
5309
|
return;
|
|
5310
5310
|
}
|
|
5311
5311
|
if (a1()) {
|
|
5312
5312
|
e.emit("max", W);
|
|
5313
5313
|
return;
|
|
5314
5314
|
}
|
|
5315
|
-
|
|
5315
|
+
w && n1(w), D.value && ve(), w && St(w), l.value && at(), B.value && nt();
|
|
5316
5316
|
break;
|
|
5317
5317
|
}
|
|
5318
5318
|
B.value || ha();
|
|
5319
|
-
}, is = (
|
|
5320
|
-
if (!(t1(
|
|
5319
|
+
}, is = (w) => {
|
|
5320
|
+
if (!(t1(w) || s.value === "single" || !Y.value)) {
|
|
5321
5321
|
switch (s.value) {
|
|
5322
5322
|
case "multiple":
|
|
5323
5323
|
case "tags":
|
|
5324
|
-
ls(
|
|
5325
|
-
|
|
5324
|
+
ls(w[T.value]) ? Et(w[T.value]) : St(
|
|
5325
|
+
w[T.value].filter((P) => R.value.map((oe) => oe[I.value]).indexOf(P[I.value]) === -1).filter((P) => !P[k.value]).filter((P, oe) => R.value.length + 1 + oe <= O.value || O.value === -1)
|
|
5326
5326
|
), l.value && Wt.value && zt(Ja.value.filter((P) => !P[k.value])[Wt.value.index]);
|
|
5327
5327
|
break;
|
|
5328
5328
|
}
|
|
5329
5329
|
B.value && Qa();
|
|
5330
5330
|
}
|
|
5331
|
-
}, n1 = (
|
|
5332
|
-
Ye(
|
|
5331
|
+
}, n1 = (w) => {
|
|
5332
|
+
Ye(w[I.value]) === void 0 && Yt.value && (e.emit("tag", w[I.value], W), e.emit("option", w[I.value], W), e.emit("create", w[I.value], W), ga.value && cs(w), ve());
|
|
5333
5333
|
}, os = () => {
|
|
5334
|
-
s.value !== "single" && St(it.value.filter((
|
|
5335
|
-
}, ls = (
|
|
5336
|
-
st.value.push(
|
|
5337
|
-
}, fs = (
|
|
5334
|
+
s.value !== "single" && St(it.value.filter((w) => !w.disabled && !ze(w)));
|
|
5335
|
+
}, ls = (w) => w.find((P) => !ze(P) && !P[k.value]) === void 0, rs = (w) => w.find((P) => !ze(P)) === void 0, Ye = (w) => Se.value[Se.value.map((P) => String(P[I.value])).indexOf(String(w))], us = (w) => Se.value.findIndex((P) => _t.value.some((oe) => (parseInt(P[oe]) == P[oe] ? parseInt(P[oe]) : P[oe]) === (parseInt(w) == w ? parseInt(w) : w))), ds = (w) => ["tags", "multiple"].indexOf(s.value) !== -1 && l.value && ze(w), cs = (w) => {
|
|
5336
|
+
st.value.push(w);
|
|
5337
|
+
}, fs = (w) => q.value ? w.filter(
|
|
5338
5338
|
(P) => G.value ? P.__VISIBLE__.length : P[T.value].length
|
|
5339
|
-
) :
|
|
5340
|
-
let oe =
|
|
5341
|
-
if (G.value &&
|
|
5339
|
+
) : w.filter((P) => G.value ? P.__VISIBLE__.length : !0), s1 = (w, P = !0) => {
|
|
5340
|
+
let oe = w;
|
|
5341
|
+
if (G.value && $.value) {
|
|
5342
5342
|
let pe = re.value;
|
|
5343
5343
|
pe || (pe = (yt, q1, $v) => _t.value.some((ps) => {
|
|
5344
5344
|
let W1 = u1(Ca(yt[ps]), X.value);
|
|
@@ -5346,17 +5346,17 @@ function z5(t, e, a) {
|
|
|
5346
5346
|
})), oe = oe.filter((yt) => pe(yt, G.value, W));
|
|
5347
5347
|
}
|
|
5348
5348
|
return l.value && P && (oe = oe.filter((pe) => !ds(pe))), oe;
|
|
5349
|
-
}, i1 = (
|
|
5350
|
-
let P =
|
|
5349
|
+
}, i1 = (w) => {
|
|
5350
|
+
let P = w;
|
|
5351
5351
|
return q5(P) && (P = Object.keys(P).map((oe) => {
|
|
5352
5352
|
let pe = P[oe];
|
|
5353
5353
|
return { [I.value]: oe, [_t.value[0]]: pe, [d.value]: pe };
|
|
5354
5354
|
})), P = P.map((oe) => typeof oe == "object" ? oe : { [I.value]: oe, [_t.value[0]]: oe, [d.value]: oe }), P;
|
|
5355
5355
|
}, ya = () => {
|
|
5356
5356
|
je(V.value) || (R.value = wa(V.value));
|
|
5357
|
-
}, ba = (
|
|
5357
|
+
}, ba = (w) => (Te.value = !0, new Promise((P, oe) => {
|
|
5358
5358
|
n.value(G.value, W).then((pe) => {
|
|
5359
|
-
Ne.value = pe || [], typeof
|
|
5359
|
+
Ne.value = pe || [], typeof w == "function" && w(pe), Te.value = !1;
|
|
5360
5360
|
}).catch((pe) => {
|
|
5361
5361
|
console.error(pe), Ne.value = [], Te.value = !1;
|
|
5362
5362
|
}).finally(() => {
|
|
@@ -5365,65 +5365,65 @@ function z5(t, e, a) {
|
|
|
5365
5365
|
})), o1 = () => {
|
|
5366
5366
|
if (e1.value)
|
|
5367
5367
|
if (s.value === "single") {
|
|
5368
|
-
let
|
|
5369
|
-
if (
|
|
5370
|
-
let P =
|
|
5371
|
-
R.value[d.value] = P,
|
|
5368
|
+
let w = Ye(R.value[I.value]);
|
|
5369
|
+
if (w !== void 0) {
|
|
5370
|
+
let P = w[d.value];
|
|
5371
|
+
R.value[d.value] = P, y.value && (V.value[d.value] = P);
|
|
5372
5372
|
}
|
|
5373
5373
|
} else
|
|
5374
|
-
R.value.forEach((
|
|
5374
|
+
R.value.forEach((w, P) => {
|
|
5375
5375
|
let oe = Ye(R.value[P][I.value]);
|
|
5376
5376
|
if (oe !== void 0) {
|
|
5377
5377
|
let pe = oe[d.value];
|
|
5378
|
-
R.value[P][d.value] = pe,
|
|
5378
|
+
R.value[P][d.value] = pe, y.value && (V.value[P][d.value] = pe);
|
|
5379
5379
|
}
|
|
5380
5380
|
});
|
|
5381
|
-
}, vs = (
|
|
5382
|
-
ba(
|
|
5383
|
-
}, wa = (
|
|
5384
|
-
[d.value]:
|
|
5385
|
-
[I.value]:
|
|
5386
|
-
[_t.value[0]]:
|
|
5387
|
-
} : {}) :
|
|
5381
|
+
}, vs = (w) => {
|
|
5382
|
+
ba(w);
|
|
5383
|
+
}, wa = (w) => je(w) ? s.value === "single" ? {} : [] : y.value ? w : s.value === "single" ? Ye(w) || (Z.value ? {
|
|
5384
|
+
[d.value]: w,
|
|
5385
|
+
[I.value]: w,
|
|
5386
|
+
[_t.value[0]]: w
|
|
5387
|
+
} : {}) : w.filter((P) => !!Ye(P) || Z.value).map((P) => Ye(P) || {
|
|
5388
5388
|
[d.value]: P,
|
|
5389
5389
|
[I.value]: P,
|
|
5390
5390
|
[_t.value[0]]: P
|
|
5391
5391
|
}), F1 = () => {
|
|
5392
|
-
Be.value = ce(G, (
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
(
|
|
5392
|
+
Be.value = ce(G, (w) => {
|
|
5393
|
+
w.length < A.value || !w && A.value !== 0 || (Te.value = !0, S.value && (Ne.value = []), setTimeout(() => {
|
|
5394
|
+
w == G.value && n.value(G.value, W).then((P) => {
|
|
5395
|
+
(w == G.value || !G.value) && (Ne.value = P, Wt.value = it.value.filter((oe) => oe[k.value] !== !0)[0] || null, Te.value = !1);
|
|
5396
5396
|
}).catch(
|
|
5397
5397
|
/* istanbul ignore next */
|
|
5398
5398
|
(P) => {
|
|
5399
5399
|
console.error(P);
|
|
5400
5400
|
}
|
|
5401
5401
|
);
|
|
5402
|
-
},
|
|
5402
|
+
}, _.value));
|
|
5403
5403
|
}, { flush: "sync" });
|
|
5404
5404
|
};
|
|
5405
5405
|
if (s.value !== "single" && !je(V.value) && !Array.isArray(V.value))
|
|
5406
5406
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5407
|
-
return n && typeof n.value == "function" ? h.value ? ba(ya) :
|
|
5408
|
-
Be.value && Be.value(),
|
|
5409
|
-
}), ce(V, (
|
|
5410
|
-
if (je(
|
|
5411
|
-
$e(wa(
|
|
5407
|
+
return n && typeof n.value == "function" ? h.value ? ba(ya) : y.value == !0 && ya() : (Ne.value = n.value, ya()), _.value > -1 && F1(), ce(_, (w, P) => {
|
|
5408
|
+
Be.value && Be.value(), w >= 0 && F1();
|
|
5409
|
+
}), ce(V, (w) => {
|
|
5410
|
+
if (je(w)) {
|
|
5411
|
+
$e(wa(w), !1);
|
|
5412
5412
|
return;
|
|
5413
5413
|
}
|
|
5414
5414
|
switch (s.value) {
|
|
5415
5415
|
case "single":
|
|
5416
|
-
(
|
|
5416
|
+
(y.value ? w[I.value] != R.value[I.value] : w != R.value[I.value]) && $e(wa(w), !1);
|
|
5417
5417
|
break;
|
|
5418
5418
|
case "multiple":
|
|
5419
5419
|
case "tags":
|
|
5420
|
-
W5(
|
|
5420
|
+
W5(y.value ? w.map((P) => P[I.value]) : w, R.value.map((P) => P[I.value])) || $e(wa(w), !1);
|
|
5421
5421
|
break;
|
|
5422
5422
|
}
|
|
5423
|
-
}, { deep: !0 }), ce(n, (
|
|
5424
|
-
typeof t.options == "function" ? h.value && (!P ||
|
|
5425
|
-
}), ce(d, o1), ce(i, (
|
|
5426
|
-
We.value = U.value &&
|
|
5423
|
+
}, { deep: !0 }), ce(n, (w, P) => {
|
|
5424
|
+
typeof t.options == "function" ? h.value && (!P || w && w.toString() !== P.toString()) && ba() : (Ne.value = t.options, Object.keys(R.value).length || ya(), o1());
|
|
5425
|
+
}), ce(d, o1), ce(i, (w, P) => {
|
|
5426
|
+
We.value = U.value && w === -1 ? 10 : w;
|
|
5427
5427
|
}), {
|
|
5428
5428
|
pfo: xt,
|
|
5429
5429
|
fo: it,
|
|
@@ -5469,7 +5469,7 @@ function Y5(t, e, a) {
|
|
|
5469
5469
|
groupSelect: u,
|
|
5470
5470
|
disabledProp: d,
|
|
5471
5471
|
groupOptions: c
|
|
5472
|
-
} = Ae(t), m = a.fo, p = a.fg,
|
|
5472
|
+
} = Ae(t), m = a.fo, p = a.fg, y = a.handleOptionClick, b = a.handleGroupClick, _ = a.search, h = a.pointer, A = a.setPointer, $ = a.clearPointer, S = a.multiselect, D = a.isOpen, I = M(() => m.value.filter((V) => !V[d.value])), Z = M(() => p.value.filter((V) => !V[d.value])), F = M(() => r.value !== "single" && u.value), K = M(() => h.value && h.value.group), O = M(() => W(h.value)), X = M(() => {
|
|
5473
5473
|
const V = K.value ? h.value : (
|
|
5474
5474
|
/* istanbul ignore next */
|
|
5475
5475
|
W(h.value)
|
|
@@ -5488,7 +5488,7 @@ function Y5(t, e, a) {
|
|
|
5488
5488
|
}), T = M(() => [...X.value.__VISIBLE__.filter((V) => !V[d.value])].slice(-1)[0]), q = M(() => [...C.value.__VISIBLE__.filter((V) => !V[d.value])].slice(-1)[0]), Y = (V) => h.value && (!V.group && h.value[n.value] === V[n.value] || V.group !== void 0 && h.value[i.value] === V[i.value]) ? !0 : void 0, le = () => {
|
|
5489
5489
|
A(I.value[0] || null);
|
|
5490
5490
|
}, k = () => {
|
|
5491
|
-
!h.value || h.value[d.value] === !0 || (K.value ? b(h.value) :
|
|
5491
|
+
!h.value || h.value[d.value] === !0 || (K.value ? b(h.value) : y(h.value));
|
|
5492
5492
|
}, x = () => {
|
|
5493
5493
|
if (h.value === null)
|
|
5494
5494
|
A((l.value && F.value ? Z.value[0].__CREATE__ ? I.value[0] : Z.value[0] : I.value[0]) || null);
|
|
@@ -5525,8 +5525,8 @@ function Y5(t, e, a) {
|
|
|
5525
5525
|
let G = V.parentElement.parentElement;
|
|
5526
5526
|
l.value && (G = K.value ? V.parentElement.parentElement.parentElement : V.parentElement.parentElement.parentElement.parentElement), V.offsetTop + V.offsetHeight > G.clientHeight + G.scrollTop && (G.scrollTop = V.offsetTop + V.offsetHeight - G.clientHeight), V.offsetTop < G.scrollTop && (G.scrollTop = V.offsetTop);
|
|
5527
5527
|
};
|
|
5528
|
-
return ce(
|
|
5529
|
-
o.value && (V.length && s.value ? le() :
|
|
5528
|
+
return ce(_, (V) => {
|
|
5529
|
+
o.value && (V.length && s.value ? le() : $());
|
|
5530
5530
|
}), ce(D, (V) => {
|
|
5531
5531
|
if (V) {
|
|
5532
5532
|
let G = S.value.querySelectorAll("[data-selected]")[0];
|
|
@@ -5906,12 +5906,12 @@ function k7(t, e) {
|
|
|
5906
5906
|
}
|
|
5907
5907
|
function P1(t, e) {
|
|
5908
5908
|
e === void 0 && (e = {});
|
|
5909
|
-
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? e7 : l, u = a.rootBoundary, d = u === void 0 ? zn : u, c = a.elementContext, m = c === void 0 ? ea : c, p = a.altBoundary,
|
|
5909
|
+
var a = e, n = a.placement, s = n === void 0 ? t.placement : n, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? e7 : l, u = a.rootBoundary, d = u === void 0 ? zn : u, c = a.elementContext, m = c === void 0 ? ea : c, p = a.altBoundary, y = p === void 0 ? !1 : p, b = a.padding, _ = b === void 0 ? 0 : b, h = $7(typeof _ != "number" ? _ : k7(_, Xa)), A = m === ea ? t7 : ea, $ = t.rects.popper, S = t.elements[y ? A : m], D = w7(kt(S) ? S : S.contextElement || Ct(t.elements.popper), r, d, i), I = jt(t.elements.reference), Z = xn({
|
|
5910
5910
|
reference: I,
|
|
5911
|
-
element:
|
|
5911
|
+
element: $,
|
|
5912
5912
|
strategy: "absolute",
|
|
5913
5913
|
placement: s
|
|
5914
|
-
}), F = m1(Object.assign({},
|
|
5914
|
+
}), F = m1(Object.assign({}, $, Z)), K = m === ea ? F : I, O = {
|
|
5915
5915
|
top: D.top - K.top + h.top,
|
|
5916
5916
|
bottom: K.bottom - D.bottom + h.bottom,
|
|
5917
5917
|
left: D.left - K.left + h.left,
|
|
@@ -5962,10 +5962,10 @@ function M7(t) {
|
|
|
5962
5962
|
reference: kt(l) ? ta(l) : l.contextElement ? ta(l.contextElement) : [],
|
|
5963
5963
|
popper: ta(r)
|
|
5964
5964
|
};
|
|
5965
|
-
var
|
|
5966
|
-
return d.orderedModifiers =
|
|
5965
|
+
var $ = p7(h7([].concat(n, d.options.modifiers)));
|
|
5966
|
+
return d.orderedModifiers = $.filter(function(S) {
|
|
5967
5967
|
return S.enabled;
|
|
5968
|
-
}),
|
|
5968
|
+
}), y(), p.update();
|
|
5969
5969
|
},
|
|
5970
5970
|
// Sync update – it will always be executed, even if not necessary. This
|
|
5971
5971
|
// is useful for low frequency updates where sync behavior simplifies the
|
|
@@ -5974,11 +5974,11 @@ function M7(t) {
|
|
|
5974
5974
|
// prefer the async Popper#update method
|
|
5975
5975
|
forceUpdate: function() {
|
|
5976
5976
|
if (!m) {
|
|
5977
|
-
var h = d.elements, A = h.reference,
|
|
5978
|
-
if (rn(A,
|
|
5977
|
+
var h = d.elements, A = h.reference, $ = h.popper;
|
|
5978
|
+
if (rn(A, $)) {
|
|
5979
5979
|
d.rects = {
|
|
5980
|
-
reference: X5(A, Ka(
|
|
5981
|
-
popper: qn(
|
|
5980
|
+
reference: X5(A, Ka($), d.options.strategy === "fixed"),
|
|
5981
|
+
popper: qn($)
|
|
5982
5982
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(O) {
|
|
5983
5983
|
return d.modifiersData[O.name] = Object.assign({}, O.data);
|
|
5984
5984
|
});
|
|
@@ -6001,8 +6001,8 @@ function M7(t) {
|
|
|
6001
6001
|
// Async and optimistically optimized update – it will not be executed if
|
|
6002
6002
|
// not necessary (debounced to run at most once-per-tick)
|
|
6003
6003
|
update: m7(function() {
|
|
6004
|
-
return new Promise(function(
|
|
6005
|
-
p.forceUpdate(),
|
|
6004
|
+
return new Promise(function(_) {
|
|
6005
|
+
p.forceUpdate(), _(d);
|
|
6006
6006
|
});
|
|
6007
6007
|
}),
|
|
6008
6008
|
destroy: function() {
|
|
@@ -6011,18 +6011,18 @@ function M7(t) {
|
|
|
6011
6011
|
};
|
|
6012
6012
|
if (!rn(l, r))
|
|
6013
6013
|
return p;
|
|
6014
|
-
p.setOptions(u).then(function(
|
|
6015
|
-
!m && u.onFirstUpdate && u.onFirstUpdate(
|
|
6014
|
+
p.setOptions(u).then(function(_) {
|
|
6015
|
+
!m && u.onFirstUpdate && u.onFirstUpdate(_);
|
|
6016
6016
|
});
|
|
6017
|
-
function
|
|
6018
|
-
d.orderedModifiers.forEach(function(
|
|
6019
|
-
var h =
|
|
6017
|
+
function y() {
|
|
6018
|
+
d.orderedModifiers.forEach(function(_) {
|
|
6019
|
+
var h = _.name, A = _.options, $ = A === void 0 ? {} : A, S = _.effect;
|
|
6020
6020
|
if (typeof S == "function") {
|
|
6021
6021
|
var D = S({
|
|
6022
6022
|
state: d,
|
|
6023
6023
|
name: h,
|
|
6024
6024
|
instance: p,
|
|
6025
|
-
options:
|
|
6025
|
+
options: $
|
|
6026
6026
|
}), I = function() {
|
|
6027
6027
|
};
|
|
6028
6028
|
c.push(D || I);
|
|
@@ -6030,8 +6030,8 @@ function M7(t) {
|
|
|
6030
6030
|
});
|
|
6031
6031
|
}
|
|
6032
6032
|
function b() {
|
|
6033
|
-
c.forEach(function(
|
|
6034
|
-
return
|
|
6033
|
+
c.forEach(function(_) {
|
|
6034
|
+
return _();
|
|
6035
6035
|
}), c = [];
|
|
6036
6036
|
}
|
|
6037
6037
|
return p;
|
|
@@ -6088,15 +6088,15 @@ function I7(t, e) {
|
|
|
6088
6088
|
};
|
|
6089
6089
|
}
|
|
6090
6090
|
function un(t) {
|
|
6091
|
-
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, u = t.adaptive, d = t.roundOffsets, c = t.isFixed, m = i.x, p = m === void 0 ? 0 : m,
|
|
6091
|
+
var e, a = t.popper, n = t.popperRect, s = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, u = t.adaptive, d = t.roundOffsets, c = t.isFixed, m = i.x, p = m === void 0 ? 0 : m, y = i.y, b = y === void 0 ? 0 : y, _ = typeof d == "function" ? d({
|
|
6092
6092
|
x: p,
|
|
6093
6093
|
y: b
|
|
6094
6094
|
}) : {
|
|
6095
6095
|
x: p,
|
|
6096
6096
|
y: b
|
|
6097
6097
|
};
|
|
6098
|
-
p =
|
|
6099
|
-
var h = i.hasOwnProperty("x"), A = i.hasOwnProperty("y"),
|
|
6098
|
+
p = _.x, b = _.y;
|
|
6099
|
+
var h = i.hasOwnProperty("x"), A = i.hasOwnProperty("y"), $ = Ge, S = Re, D = window;
|
|
6100
6100
|
if (u) {
|
|
6101
6101
|
var I = Ka(a), Z = "clientHeight", F = "clientWidth";
|
|
6102
6102
|
if (I === Me(a) && (I = Ct(a), et(I).position !== "static" && l === "absolute" && (Z = "scrollHeight", F = "scrollWidth")), I = I, s === Re || (s === Ge || s === vt) && o === ra) {
|
|
@@ -6108,7 +6108,7 @@ function un(t) {
|
|
|
6108
6108
|
b -= K - n.height, b *= r ? 1 : -1;
|
|
6109
6109
|
}
|
|
6110
6110
|
if (s === Ge || (s === Re || s === qe) && o === ra) {
|
|
6111
|
-
|
|
6111
|
+
$ = vt;
|
|
6112
6112
|
var O = c && I === D && D.visualViewport ? D.visualViewport.width : (
|
|
6113
6113
|
// $FlowFixMe[prop-missing]
|
|
6114
6114
|
I[F]
|
|
@@ -6127,9 +6127,9 @@ function un(t) {
|
|
|
6127
6127
|
};
|
|
6128
6128
|
if (p = B.x, b = B.y, r) {
|
|
6129
6129
|
var C;
|
|
6130
|
-
return Object.assign({}, X, (C = {}, C[S] = A ? "0" : "", C[
|
|
6130
|
+
return Object.assign({}, X, (C = {}, C[S] = A ? "0" : "", C[$] = h ? "0" : "", C.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + b + "px)" : "translate3d(" + p + "px, " + b + "px, 0)", C));
|
|
6131
6131
|
}
|
|
6132
|
-
return Object.assign({}, X, (e = {}, e[S] = A ? b + "px" : "", e[
|
|
6132
|
+
return Object.assign({}, X, (e = {}, e[S] = A ? b + "px" : "", e[$] = h ? p + "px" : "", e.transform = "", e));
|
|
6133
6133
|
}
|
|
6134
6134
|
function L7(t) {
|
|
6135
6135
|
var e = t.state, a = t.options, n = a.gpuAcceleration, s = n === void 0 ? !0 : n, o = a.adaptive, i = o === void 0 ? !0 : o, l = a.roundOffsets, r = l === void 0 ? !0 : l, u = {
|
|
@@ -6216,12 +6216,12 @@ function j7(t, e, a) {
|
|
|
6216
6216
|
return n > a ? a : n;
|
|
6217
6217
|
}
|
|
6218
6218
|
function U7(t) {
|
|
6219
|
-
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, u = a.rootBoundary, d = a.altBoundary, c = a.padding, m = a.tether, p = m === void 0 ? !0 : m,
|
|
6219
|
+
var e = t.state, a = t.options, n = t.name, s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, u = a.rootBoundary, d = a.altBoundary, c = a.padding, m = a.tether, p = m === void 0 ? !0 : m, y = a.tetherOffset, b = y === void 0 ? 0 : y, _ = P1(e, {
|
|
6220
6220
|
boundary: r,
|
|
6221
6221
|
rootBoundary: u,
|
|
6222
6222
|
padding: c,
|
|
6223
6223
|
altBoundary: d
|
|
6224
|
-
}), h = ut(e.placement), A = Zt(e.placement),
|
|
6224
|
+
}), h = ut(e.placement), A = Zt(e.placement), $ = !A, S = Yn(h), D = N7(S), I = e.modifiersData.popperOffsets, Z = e.rects.reference, F = e.rects.popper, K = typeof b == "function" ? b(Object.assign({}, e.rects, {
|
|
6225
6225
|
placement: e.placement
|
|
6226
6226
|
})) : b, O = typeof K == "number" ? {
|
|
6227
6227
|
mainAxis: K,
|
|
@@ -6235,14 +6235,14 @@ function U7(t) {
|
|
|
6235
6235
|
};
|
|
6236
6236
|
if (I) {
|
|
6237
6237
|
if (o) {
|
|
6238
|
-
var C, H = S === "y" ? Re : Ge, te = S === "y" ? qe : vt, U = S === "y" ? "height" : "width", T = I[S], q = T +
|
|
6238
|
+
var C, H = S === "y" ? Re : Ge, te = S === "y" ? qe : vt, U = S === "y" ? "height" : "width", T = I[S], q = T + _[H], Y = T - _[te], le = p ? -F[U] / 2 : 0, k = A === Ut ? Z[U] : F[U], x = A === Ut ? -F[U] : -Z[U], re = e.elements.arrow, W = p && re ? qn(re) : {
|
|
6239
6239
|
width: 0,
|
|
6240
6240
|
height: 0
|
|
6241
|
-
}, R = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Gn(), V = R[H], G = R[te], ve = Sa(0, Z[U], W[U]), $e =
|
|
6241
|
+
}, R = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Gn(), V = R[H], G = R[te], ve = Sa(0, Z[U], W[U]), $e = $ ? Z[U] / 2 - le - ve - V - O.mainAxis : k - ve - V - O.mainAxis, Wt = $ ? -Z[U] / 2 + le + ve + G + O.mainAxis : x + ve + G + O.mainAxis, zt = e.elements.arrow && Ka(e.elements.arrow), at = zt ? S === "y" ? zt.clientTop || 0 : zt.clientLeft || 0 : 0, ha = (C = X == null ? void 0 : X[S]) != null ? C : 0, Qa = T + $e - ha - at, nt = T + Wt - ha, Ca = Sa(p ? Ha(q, Qa) : q, T, p ? wt(Y, nt) : Y);
|
|
6242
6242
|
I[S] = Ca, B[S] = Ca - T;
|
|
6243
6243
|
}
|
|
6244
6244
|
if (l) {
|
|
6245
|
-
var st, Ne = S === "x" ? Re : Ge, Te = S === "x" ? qe : vt, Be = I[D], We = D === "y" ? "height" : "width", Yt = Be +
|
|
6245
|
+
var st, Ne = S === "x" ? Re : Ge, Te = S === "x" ? qe : vt, Be = I[D], We = D === "y" ? "height" : "width", Yt = Be + _[Ne], ga = Be - _[Te], Se = [Re, Ge].indexOf(h) !== -1, xt = (st = X == null ? void 0 : X[D]) != null ? st : 0, it = Se ? Yt : Be - Z[We] - F[We] - xt + O.altAxis, gt = Se ? Be + Z[We] + F[We] - xt - O.altAxis : ga, _a = p && Se ? j7(it, Be, gt) : Sa(p ? it : Yt, Be, p ? gt : ga);
|
|
6246
6246
|
I[D] = _a, B[D] = _a - Be;
|
|
6247
6247
|
}
|
|
6248
6248
|
e.modifiersData[n] = B;
|
|
@@ -6276,22 +6276,22 @@ function dn(t) {
|
|
|
6276
6276
|
}
|
|
6277
6277
|
function W7(t, e) {
|
|
6278
6278
|
e === void 0 && (e = {});
|
|
6279
|
-
var a = e, n = a.placement, s = a.boundary, o = a.rootBoundary, i = a.padding, l = a.flipVariations, r = a.allowedAutoPlacements, u = r === void 0 ? a7 : r, d = Zt(n), c = d ? l ? sn : sn.filter(function(
|
|
6280
|
-
return Zt(
|
|
6281
|
-
}) : Xa, m = c.filter(function(
|
|
6282
|
-
return u.indexOf(
|
|
6279
|
+
var a = e, n = a.placement, s = a.boundary, o = a.rootBoundary, i = a.padding, l = a.flipVariations, r = a.allowedAutoPlacements, u = r === void 0 ? a7 : r, d = Zt(n), c = d ? l ? sn : sn.filter(function(y) {
|
|
6280
|
+
return Zt(y) === d;
|
|
6281
|
+
}) : Xa, m = c.filter(function(y) {
|
|
6282
|
+
return u.indexOf(y) >= 0;
|
|
6283
6283
|
});
|
|
6284
6284
|
m.length === 0 && (m = c);
|
|
6285
|
-
var p = m.reduce(function(
|
|
6286
|
-
return
|
|
6285
|
+
var p = m.reduce(function(y, b) {
|
|
6286
|
+
return y[b] = P1(t, {
|
|
6287
6287
|
placement: b,
|
|
6288
6288
|
boundary: s,
|
|
6289
6289
|
rootBoundary: o,
|
|
6290
6290
|
padding: i
|
|
6291
|
-
})[ut(b)],
|
|
6291
|
+
})[ut(b)], y;
|
|
6292
6292
|
}, {});
|
|
6293
|
-
return Object.keys(p).sort(function(
|
|
6294
|
-
return p[
|
|
6293
|
+
return Object.keys(p).sort(function(y, b) {
|
|
6294
|
+
return p[y] - p[b];
|
|
6295
6295
|
});
|
|
6296
6296
|
}
|
|
6297
6297
|
function z7(t) {
|
|
@@ -6303,13 +6303,13 @@ function z7(t) {
|
|
|
6303
6303
|
function Y7(t) {
|
|
6304
6304
|
var e = t.state, a = t.options, n = t.name;
|
|
6305
6305
|
if (!e.modifiersData[n]._skip) {
|
|
6306
|
-
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, u = a.padding, d = a.boundary, c = a.rootBoundary, m = a.altBoundary, p = a.flipVariations,
|
|
6306
|
+
for (var s = a.mainAxis, o = s === void 0 ? !0 : s, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, u = a.padding, d = a.boundary, c = a.rootBoundary, m = a.altBoundary, p = a.flipVariations, y = p === void 0 ? !0 : p, b = a.allowedAutoPlacements, _ = e.options.placement, h = ut(_), A = h === _, $ = r || (A || !y ? [Ea(_)] : z7(_)), S = [_].concat($).reduce(function(W, R) {
|
|
6307
6307
|
return W.concat(ut(R) === D1 ? W7(e, {
|
|
6308
6308
|
placement: R,
|
|
6309
6309
|
boundary: d,
|
|
6310
6310
|
rootBoundary: c,
|
|
6311
6311
|
padding: u,
|
|
6312
|
-
flipVariations:
|
|
6312
|
+
flipVariations: y,
|
|
6313
6313
|
allowedAutoPlacements: b
|
|
6314
6314
|
}) : R);
|
|
6315
6315
|
}, []), D = e.rects.reference, I = e.rects.popper, Z = /* @__PURE__ */ new Map(), F = !0, K = S[0], O = 0; O < S.length; O++) {
|
|
@@ -6331,7 +6331,7 @@ function Y7(t) {
|
|
|
6331
6331
|
Z.set(X, Y);
|
|
6332
6332
|
}
|
|
6333
6333
|
if (F)
|
|
6334
|
-
for (var le =
|
|
6334
|
+
for (var le = y ? 3 : 1, k = function(R) {
|
|
6335
6335
|
var V = S.find(function(G) {
|
|
6336
6336
|
var ve = Z.get(G);
|
|
6337
6337
|
if (ve)
|
|
@@ -6360,16 +6360,16 @@ var x7 = {
|
|
|
6360
6360
|
}
|
|
6361
6361
|
};
|
|
6362
6362
|
function G7(t, e, a) {
|
|
6363
|
-
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), l = Mt().proxy, r = a.multiselect, u = a.dropdown, d = se(!1), c = se(null), m = se(null), p = M(() => s.value || o.value),
|
|
6363
|
+
const { disabled: n, appendTo: s, appendToBody: o, openDirection: i } = Ae(t), l = Mt().proxy, r = a.multiselect, u = a.dropdown, d = se(!1), c = se(null), m = se(null), p = M(() => s.value || o.value), y = M(() => i.value === "top" && m.value === "bottom" || i.value === "bottom" && m.value !== "top" ? "bottom" : "top"), b = () => {
|
|
6364
6364
|
d.value || n.value || (d.value = !0, e.emit("open", l), p.value && De(() => {
|
|
6365
6365
|
h();
|
|
6366
6366
|
}));
|
|
6367
|
-
},
|
|
6367
|
+
}, _ = () => {
|
|
6368
6368
|
d.value && (d.value = !1, e.emit("close", l));
|
|
6369
6369
|
}, h = () => {
|
|
6370
6370
|
if (!c.value)
|
|
6371
6371
|
return;
|
|
6372
|
-
let
|
|
6372
|
+
let $ = parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px", "")), S = parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px", ""));
|
|
6373
6373
|
c.value.setOptions((D) => ({
|
|
6374
6374
|
...D,
|
|
6375
6375
|
modifiers: [
|
|
@@ -6377,16 +6377,16 @@ function G7(t, e, a) {
|
|
|
6377
6377
|
{
|
|
6378
6378
|
name: "offset",
|
|
6379
6379
|
options: {
|
|
6380
|
-
offset: [0, (
|
|
6380
|
+
offset: [0, (y.value === "top" ? $ : S) * -1]
|
|
6381
6381
|
}
|
|
6382
6382
|
}
|
|
6383
6383
|
]
|
|
6384
6384
|
})), c.value.update();
|
|
6385
|
-
}, A = (
|
|
6386
|
-
for (;
|
|
6387
|
-
if (getComputedStyle(
|
|
6385
|
+
}, A = ($) => {
|
|
6386
|
+
for (; $ && $ !== document.body; ) {
|
|
6387
|
+
if (getComputedStyle($).position === "fixed")
|
|
6388
6388
|
return !0;
|
|
6389
|
-
|
|
6389
|
+
$ = $.parentElement;
|
|
6390
6390
|
}
|
|
6391
6391
|
return !1;
|
|
6392
6392
|
};
|
|
@@ -6405,19 +6405,19 @@ function G7(t, e, a) {
|
|
|
6405
6405
|
enabled: !0,
|
|
6406
6406
|
phase: "beforeWrite",
|
|
6407
6407
|
requires: ["computeStyles"],
|
|
6408
|
-
fn: ({ state:
|
|
6409
|
-
|
|
6408
|
+
fn: ({ state: $ }) => {
|
|
6409
|
+
$.styles.popper.width = `${$.rects.reference.width}px`;
|
|
6410
6410
|
},
|
|
6411
|
-
effect: ({ state:
|
|
6412
|
-
|
|
6411
|
+
effect: ({ state: $ }) => {
|
|
6412
|
+
$.elements.popper.style.width = `${$.elements.reference.offsetWidth}px`;
|
|
6413
6413
|
}
|
|
6414
6414
|
},
|
|
6415
6415
|
{
|
|
6416
6416
|
name: "toggleClass",
|
|
6417
6417
|
enabled: !0,
|
|
6418
6418
|
phase: "write",
|
|
6419
|
-
fn({ state:
|
|
6420
|
-
m.value =
|
|
6419
|
+
fn({ state: $ }) {
|
|
6420
|
+
m.value = $.placement;
|
|
6421
6421
|
}
|
|
6422
6422
|
}
|
|
6423
6423
|
]
|
|
@@ -6428,19 +6428,19 @@ function G7(t, e, a) {
|
|
|
6428
6428
|
popper: c,
|
|
6429
6429
|
isOpen: d,
|
|
6430
6430
|
open: b,
|
|
6431
|
-
close:
|
|
6432
|
-
placement:
|
|
6431
|
+
close: _,
|
|
6432
|
+
placement: y,
|
|
6433
6433
|
updatePopper: h
|
|
6434
6434
|
};
|
|
6435
6435
|
}
|
|
6436
6436
|
function K7(t, e, a) {
|
|
6437
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, l = a.open, r = a.close, u = a.clearSearch, d = a.isOpen, c = a.wrapper, m = a.tags, p = se(!1),
|
|
6437
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = Ae(t), i = a.input, l = a.open, r = a.close, u = a.clearSearch, d = a.isOpen, c = a.wrapper, m = a.tags, p = se(!1), y = se(!1), b = M(() => n.value || s.value ? -1 : 0), _ = () => {
|
|
6438
6438
|
n.value && i.value.blur(), c.value.blur();
|
|
6439
6439
|
}, h = () => {
|
|
6440
6440
|
n.value && !s.value && i.value.focus();
|
|
6441
6441
|
}, A = (F = !0) => {
|
|
6442
6442
|
s.value || (p.value = !0, F && l());
|
|
6443
|
-
},
|
|
6443
|
+
}, $ = () => {
|
|
6444
6444
|
p.value = !1, setTimeout(() => {
|
|
6445
6445
|
p.value || (r(), o.value && u());
|
|
6446
6446
|
}, 1);
|
|
@@ -6448,25 +6448,25 @@ function K7(t, e, a) {
|
|
|
6448
6448
|
return {
|
|
6449
6449
|
tabindex: b,
|
|
6450
6450
|
isActive: p,
|
|
6451
|
-
mouseClicked:
|
|
6452
|
-
blur:
|
|
6451
|
+
mouseClicked: y,
|
|
6452
|
+
blur: _,
|
|
6453
6453
|
focus: h,
|
|
6454
6454
|
activate: A,
|
|
6455
|
-
deactivate:
|
|
6455
|
+
deactivate: $,
|
|
6456
6456
|
handleFocusIn: (F) => {
|
|
6457
|
-
F.target.closest("[data-tags]") && F.target.nodeName !== "INPUT" || F.target.closest("[data-clear]") || A(
|
|
6457
|
+
F.target.closest("[data-tags]") && F.target.nodeName !== "INPUT" || F.target.closest("[data-clear]") || A(y.value);
|
|
6458
6458
|
},
|
|
6459
6459
|
handleFocusOut: () => {
|
|
6460
|
-
|
|
6460
|
+
$();
|
|
6461
6461
|
},
|
|
6462
6462
|
handleCaretClick: () => {
|
|
6463
|
-
|
|
6463
|
+
$(), _();
|
|
6464
6464
|
},
|
|
6465
6465
|
handleMousedown: (F) => {
|
|
6466
|
-
|
|
6467
|
-
|
|
6466
|
+
y.value = !0, d.value && (F.target.isEqualNode(c.value) || F.target.isEqualNode(m.value)) ? setTimeout(() => {
|
|
6467
|
+
$();
|
|
6468
6468
|
}, 0) : !d.value && (document.activeElement.isEqualNode(c.value) || document.activeElement.isEqualNode(i.value)) && A(), setTimeout(() => {
|
|
6469
|
-
|
|
6469
|
+
y.value = !1;
|
|
6470
6470
|
}, 0);
|
|
6471
6471
|
}
|
|
6472
6472
|
};
|
|
@@ -6484,12 +6484,12 @@ function X7(t, e, a) {
|
|
|
6484
6484
|
createTag: c,
|
|
6485
6485
|
createOption: m,
|
|
6486
6486
|
reverse: p
|
|
6487
|
-
} = Ae(t),
|
|
6488
|
-
n.value === "tags" && !l.value && H.value && i.value && !u.value &&
|
|
6487
|
+
} = Ae(t), y = Mt().proxy, b = a.iv, _ = a.update, h = a.deselect, A = a.search, $ = a.setPointer, S = a.selectPointer, D = a.backwardPointer, I = a.forwardPointer, Z = a.multiselect, F = a.wrapper, K = a.tags, O = a.isOpen, X = a.open, B = a.blur, C = a.fo, H = M(() => c.value || m.value || !1), te = M(() => s.value !== void 0 ? s.value : d.value !== void 0 ? d.value : ["enter"]), U = () => {
|
|
6488
|
+
n.value === "tags" && !l.value && H.value && i.value && !u.value && $(C.value[C.value.map((Y) => Y[r.value]).indexOf(A.value)]);
|
|
6489
6489
|
};
|
|
6490
6490
|
return {
|
|
6491
6491
|
handleKeydown: (Y) => {
|
|
6492
|
-
e.emit("keydown", Y,
|
|
6492
|
+
e.emit("keydown", Y, y);
|
|
6493
6493
|
let le, k;
|
|
6494
6494
|
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(Y.key) !== -1 && n.value === "tags" && (le = [...Z.value.querySelectorAll("[data-tags] > *")].filter((x) => x !== K.value), k = le.findIndex((x) => x === document.activeElement)), Y.key) {
|
|
6495
6495
|
case "Backspace":
|
|
@@ -6502,7 +6502,7 @@ function X7(t, e, a) {
|
|
|
6502
6502
|
if (Y.preventDefault(), Y.keyCode === 229)
|
|
6503
6503
|
return;
|
|
6504
6504
|
if (k !== -1 && k !== void 0) {
|
|
6505
|
-
|
|
6505
|
+
_([...b.value].filter((re, W) => W !== k)), k === le.length - 1 && (le.length - 1 ? le[le.length - 2].focus() : i.value ? K.value.querySelector("input").focus() : F.value.focus());
|
|
6506
6506
|
return;
|
|
6507
6507
|
}
|
|
6508
6508
|
if (te.value.indexOf("enter") === -1 && H.value)
|
|
@@ -6553,7 +6553,7 @@ function X7(t, e, a) {
|
|
|
6553
6553
|
}
|
|
6554
6554
|
},
|
|
6555
6555
|
handleKeyup: (Y) => {
|
|
6556
|
-
e.emit("keyup", Y,
|
|
6556
|
+
e.emit("keyup", Y, y);
|
|
6557
6557
|
},
|
|
6558
6558
|
preparePointer: U
|
|
6559
6559
|
};
|
|
@@ -6564,7 +6564,7 @@ function Q7(t, e, a) {
|
|
|
6564
6564
|
disabled: s,
|
|
6565
6565
|
showOptions: o,
|
|
6566
6566
|
breakTags: i
|
|
6567
|
-
} = Ae(t), l = a.isOpen, r = a.isPointed, u = a.isSelected, d = a.isDisabled, c = a.isActive, m = a.canPointGroups, p = a.resolving,
|
|
6567
|
+
} = Ae(t), l = a.isOpen, r = a.isPointed, u = a.isSelected, d = a.isDisabled, c = a.isActive, m = a.canPointGroups, p = a.resolving, y = a.fo, b = a.placement, _ = M(() => ({
|
|
6568
6568
|
container: "multiselect",
|
|
6569
6569
|
containerDisabled: "is-disabled",
|
|
6570
6570
|
containerOpen: "is-open",
|
|
@@ -6619,50 +6619,50 @@ function Q7(t, e, a) {
|
|
|
6619
6619
|
assist: "multiselect-assistive-text",
|
|
6620
6620
|
spacer: "multiselect-spacer",
|
|
6621
6621
|
...n.value
|
|
6622
|
-
})), h = M(() => !!(l.value && o.value && (!p.value || p.value &&
|
|
6622
|
+
})), h = M(() => !!(l.value && o.value && (!p.value || p.value && y.value.length)));
|
|
6623
6623
|
return {
|
|
6624
6624
|
classList: M(() => {
|
|
6625
|
-
const
|
|
6625
|
+
const $ = _.value;
|
|
6626
6626
|
return {
|
|
6627
|
-
container: [
|
|
6628
|
-
wrapper:
|
|
6629
|
-
spacer:
|
|
6630
|
-
singleLabel:
|
|
6631
|
-
singleLabelText:
|
|
6632
|
-
multipleLabel:
|
|
6633
|
-
search:
|
|
6634
|
-
tags:
|
|
6635
|
-
tag: [
|
|
6636
|
-
tagWrapper: [
|
|
6637
|
-
tagDisabled:
|
|
6638
|
-
tagRemove:
|
|
6639
|
-
tagRemoveIcon:
|
|
6640
|
-
tagsSearchWrapper:
|
|
6641
|
-
tagsSearch:
|
|
6642
|
-
tagsSearchCopy:
|
|
6643
|
-
placeholder:
|
|
6644
|
-
caret: [
|
|
6645
|
-
clear:
|
|
6646
|
-
clearIcon:
|
|
6647
|
-
spinner:
|
|
6648
|
-
inifinite:
|
|
6649
|
-
inifiniteSpinner:
|
|
6650
|
-
dropdown: [
|
|
6651
|
-
options: [
|
|
6652
|
-
group:
|
|
6627
|
+
container: [$.container].concat(s.value ? $.containerDisabled : []).concat(h.value && b.value === "top" ? $.containerOpenTop : []).concat(h.value && b.value !== "top" ? $.containerOpen : []).concat(c.value ? $.containerActive : []),
|
|
6628
|
+
wrapper: $.wrapper,
|
|
6629
|
+
spacer: $.spacer,
|
|
6630
|
+
singleLabel: $.singleLabel,
|
|
6631
|
+
singleLabelText: $.singleLabelText,
|
|
6632
|
+
multipleLabel: $.multipleLabel,
|
|
6633
|
+
search: $.search,
|
|
6634
|
+
tags: $.tags,
|
|
6635
|
+
tag: [$.tag].concat(s.value ? $.tagDisabled : []),
|
|
6636
|
+
tagWrapper: [$.tagWrapper, i.value ? $.tagWrapperBreak : null],
|
|
6637
|
+
tagDisabled: $.tagDisabled,
|
|
6638
|
+
tagRemove: $.tagRemove,
|
|
6639
|
+
tagRemoveIcon: $.tagRemoveIcon,
|
|
6640
|
+
tagsSearchWrapper: $.tagsSearchWrapper,
|
|
6641
|
+
tagsSearch: $.tagsSearch,
|
|
6642
|
+
tagsSearchCopy: $.tagsSearchCopy,
|
|
6643
|
+
placeholder: $.placeholder,
|
|
6644
|
+
caret: [$.caret].concat(l.value ? $.caretOpen : []),
|
|
6645
|
+
clear: $.clear,
|
|
6646
|
+
clearIcon: $.clearIcon,
|
|
6647
|
+
spinner: $.spinner,
|
|
6648
|
+
inifinite: $.inifinite,
|
|
6649
|
+
inifiniteSpinner: $.inifiniteSpinner,
|
|
6650
|
+
dropdown: [$.dropdown].concat(b.value === "top" ? $.dropdownTop : []).concat(!l.value || !o.value || !h.value ? $.dropdownHidden : []),
|
|
6651
|
+
options: [$.options].concat(b.value === "top" ? $.optionsTop : []),
|
|
6652
|
+
group: $.group,
|
|
6653
6653
|
groupLabel: (S) => {
|
|
6654
|
-
let D = [
|
|
6655
|
-
return r(S) ? D.push(u(S) ?
|
|
6654
|
+
let D = [$.groupLabel];
|
|
6655
|
+
return r(S) ? D.push(u(S) ? $.groupLabelSelectedPointed : $.groupLabelPointed) : u(S) && m.value ? D.push(d(S) ? $.groupLabelSelectedDisabled : $.groupLabelSelected) : d(S) && D.push($.groupLabelDisabled), m.value && D.push($.groupLabelPointable), D;
|
|
6656
6656
|
},
|
|
6657
|
-
groupOptions:
|
|
6657
|
+
groupOptions: $.groupOptions,
|
|
6658
6658
|
option: (S, D) => {
|
|
6659
|
-
let I = [
|
|
6660
|
-
return r(S) ? I.push(u(S) ?
|
|
6659
|
+
let I = [$.option];
|
|
6660
|
+
return r(S) ? I.push(u(S) ? $.optionSelectedPointed : $.optionPointed) : u(S) ? I.push(d(S) ? $.optionSelectedDisabled : $.optionSelected) : (d(S) || D && d(D)) && I.push($.optionDisabled), I;
|
|
6661
6661
|
},
|
|
6662
|
-
noOptions:
|
|
6663
|
-
noResults:
|
|
6664
|
-
assist:
|
|
6665
|
-
fakeInput:
|
|
6662
|
+
noOptions: $.noOptions,
|
|
6663
|
+
noResults: $.noResults,
|
|
6664
|
+
assist: $.assist,
|
|
6665
|
+
fakeInput: $.fakeInput
|
|
6666
6666
|
};
|
|
6667
6667
|
}),
|
|
6668
6668
|
showDropdown: h
|
|
@@ -6673,22 +6673,22 @@ function J7(t, e, a) {
|
|
|
6673
6673
|
limit: n,
|
|
6674
6674
|
infinite: s
|
|
6675
6675
|
} = Ae(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, u = a.eo, d = se(null), c = se(null), m = M(() => i.value < r.value.length), p = (b) => {
|
|
6676
|
-
const { isIntersecting:
|
|
6677
|
-
if (
|
|
6678
|
-
const A = h.offsetParent,
|
|
6676
|
+
const { isIntersecting: _, target: h } = b[0];
|
|
6677
|
+
if (_) {
|
|
6678
|
+
const A = h.offsetParent, $ = A.scrollTop;
|
|
6679
6679
|
i.value += n.value == -1 ? 10 : n.value, De(() => {
|
|
6680
|
-
A.scrollTop =
|
|
6680
|
+
A.scrollTop = $;
|
|
6681
6681
|
});
|
|
6682
6682
|
}
|
|
6683
|
-
},
|
|
6683
|
+
}, y = () => {
|
|
6684
6684
|
o.value && i.value < r.value.length ? d.value.observe(c.value) : !o.value && d.value && d.value.disconnect();
|
|
6685
6685
|
};
|
|
6686
6686
|
return ce(o, () => {
|
|
6687
|
-
s.value &&
|
|
6687
|
+
s.value && y();
|
|
6688
6688
|
}), ce(l, () => {
|
|
6689
|
-
s.value && (i.value = n.value,
|
|
6689
|
+
s.value && (i.value = n.value, y());
|
|
6690
6690
|
}, { flush: "post" }), ce(u, () => {
|
|
6691
|
-
s.value &&
|
|
6691
|
+
s.value && y();
|
|
6692
6692
|
}, { immediate: !1, flush: "post" }), Ft(() => {
|
|
6693
6693
|
window && window.IntersectionObserver && (d.value = new IntersectionObserver(p));
|
|
6694
6694
|
}), {
|
|
@@ -6706,7 +6706,7 @@ function e9(t, e, a) {
|
|
|
6706
6706
|
groupLabel: r,
|
|
6707
6707
|
aria: u,
|
|
6708
6708
|
searchable: d
|
|
6709
|
-
} = Ae(t), c = a.pointer, m = a.iv, p = a.hasSelected,
|
|
6709
|
+
} = Ae(t), c = a.pointer, m = a.iv, p = a.hasSelected, y = a.multipleLabelText, b = se(null), _ = M(() => {
|
|
6710
6710
|
let B = [];
|
|
6711
6711
|
return s && s.value && B.push(s.value), B.push("assist"), B.join("-");
|
|
6712
6712
|
}), h = M(() => {
|
|
@@ -6716,12 +6716,12 @@ function e9(t, e, a) {
|
|
|
6716
6716
|
let B = [];
|
|
6717
6717
|
if (s && s.value && B.push(s.value), c.value)
|
|
6718
6718
|
return B.push(c.value.group ? "multiselect-group" : "multiselect-option"), B.push(c.value.group ? c.value.index : c.value[o.value]), B.join("-");
|
|
6719
|
-
}),
|
|
6719
|
+
}), $ = M(() => n.value), S = M(() => l.value !== "single"), D = M(() => {
|
|
6720
6720
|
let B = "";
|
|
6721
|
-
return l.value === "single" && p.value && (B += m.value[i.value]), l.value === "multiple" && p.value && (B +=
|
|
6721
|
+
return l.value === "single" && p.value && (B += m.value[i.value]), l.value === "multiple" && p.value && (B += y.value), l.value === "tags" && p.value && (B += m.value.map((C) => C[i.value]).join(", ")), B;
|
|
6722
6722
|
}), I = M(() => {
|
|
6723
6723
|
let B = { ...u.value };
|
|
6724
|
-
return d.value && (B["aria-labelledby"] = B["aria-labelledby"] ? `${
|
|
6724
|
+
return d.value && (B["aria-labelledby"] = B["aria-labelledby"] ? `${_.value} ${B["aria-labelledby"]}` : _.value, D.value && B["aria-label"] && (B["aria-label"] = `${D.value}, ${B["aria-label"]}`)), B;
|
|
6725
6725
|
}), Z = (B) => {
|
|
6726
6726
|
let C = [];
|
|
6727
6727
|
return s && s.value && C.push(s.value), C.push("multiselect-option"), C.push(B[o.value]), C.join("-");
|
|
@@ -6743,9 +6743,9 @@ function e9(t, e, a) {
|
|
|
6743
6743
|
}), {
|
|
6744
6744
|
arias: I,
|
|
6745
6745
|
ariaLabel: D,
|
|
6746
|
-
ariaAssist:
|
|
6746
|
+
ariaAssist: _,
|
|
6747
6747
|
ariaControls: h,
|
|
6748
|
-
ariaPlaceholder:
|
|
6748
|
+
ariaPlaceholder: $,
|
|
6749
6749
|
ariaMultiselectable: S,
|
|
6750
6750
|
ariaActiveDescendant: A,
|
|
6751
6751
|
ariaOptionId: Z,
|
|
@@ -7748,10 +7748,10 @@ const T9 = { class: "ao-tasks" }, S9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7748
7748
|
};
|
|
7749
7749
|
e("add", m);
|
|
7750
7750
|
}, i = (c, m) => {
|
|
7751
|
-
const
|
|
7751
|
+
const y = c.target.value;
|
|
7752
7752
|
e("update", {
|
|
7753
7753
|
id: m,
|
|
7754
|
-
name:
|
|
7754
|
+
name: y
|
|
7755
7755
|
});
|
|
7756
7756
|
}, l = (c, m) => {
|
|
7757
7757
|
a.isEditable && e("update", {
|
|
@@ -7772,12 +7772,12 @@ const T9 = { class: "ao-tasks" }, S9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7772
7772
|
return (c, m) => (f(), g("div", T9, [
|
|
7773
7773
|
v("ul", S9, [
|
|
7774
7774
|
(f(!0), g(Ce, null, ye(c.tasks, (p) => {
|
|
7775
|
-
var
|
|
7775
|
+
var y, b;
|
|
7776
7776
|
return f(), g("li", {
|
|
7777
7777
|
key: p.id,
|
|
7778
7778
|
class: "ao-subtask"
|
|
7779
7779
|
}, [
|
|
7780
|
-
((
|
|
7780
|
+
((y = c.isCheckable) == null ? void 0 : y.call(c, p)) ?? !1 ? (f(), N(de, {
|
|
7781
7781
|
key: 0,
|
|
7782
7782
|
class: "ao-subtask__check",
|
|
7783
7783
|
"icon-name": p.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
@@ -7792,7 +7792,7 @@ const T9 = { class: "ao-tasks" }, S9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7792
7792
|
readonly: !c.isEditable,
|
|
7793
7793
|
class: Q(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": p.isDone }]),
|
|
7794
7794
|
type: "text",
|
|
7795
|
-
onChange: (
|
|
7795
|
+
onChange: (_) => i(_, p.id),
|
|
7796
7796
|
onKeyup: dt(d, ["enter"])
|
|
7797
7797
|
}, null, 42, E9),
|
|
7798
7798
|
Ra(". "),
|
|
@@ -7808,14 +7808,14 @@ const T9 = { class: "ao-tasks" }, S9 = { class: "ao-tasks__list" }, E9 = ["id",
|
|
|
7808
7808
|
placeholder: c.$t("feed.filters.assignee.placeholder"),
|
|
7809
7809
|
disabled: !c.isEditable,
|
|
7810
7810
|
caret: c.isEditable,
|
|
7811
|
-
onChange: (
|
|
7811
|
+
onChange: (_) => u(_, p.id)
|
|
7812
7812
|
}, {
|
|
7813
|
-
tag: z(({ option:
|
|
7813
|
+
tag: z(({ option: _, handleTagRemove: h }) => [
|
|
7814
7814
|
L(Qe, {
|
|
7815
|
-
"user-name":
|
|
7816
|
-
"avatar-url":
|
|
7815
|
+
"user-name": _.label,
|
|
7816
|
+
"avatar-url": _.avatar,
|
|
7817
7817
|
"is-closable": !0,
|
|
7818
|
-
onClose: (A) => h(
|
|
7818
|
+
onClose: (A) => h(_, A)
|
|
7819
7819
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
7820
7820
|
]),
|
|
7821
7821
|
_: 2
|
|
@@ -7983,22 +7983,22 @@ const q9 = { class: "ao-comment" }, W9 = { class: "ao-comment__created-at" }, z9
|
|
|
7983
7983
|
const b = a.user;
|
|
7984
7984
|
return b ? `${b == null ? void 0 : b.firstName} ${b == null ? void 0 : b.lastName}` : null;
|
|
7985
7985
|
}), s = se(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = Cn(s), u = M(() => {
|
|
7986
|
-
const b = a.editedAt && sa(a.editedAt),
|
|
7986
|
+
const b = a.editedAt && sa(a.editedAt), _ = sa(a.createdAt), h = /* @__PURE__ */ new Date(), A = b ?? _;
|
|
7987
7987
|
return A && F0(A, h);
|
|
7988
7988
|
}), d = M(() => o.value ? "textarea" : "p"), c = r(), m = l((b) => {
|
|
7989
7989
|
e("edit", b);
|
|
7990
7990
|
}), p = () => {
|
|
7991
7991
|
e("remove");
|
|
7992
|
-
},
|
|
7992
|
+
}, y = se(2);
|
|
7993
7993
|
return ys(() => {
|
|
7994
7994
|
De(() => {
|
|
7995
7995
|
var b;
|
|
7996
7996
|
if (!o.value) {
|
|
7997
|
-
const
|
|
7998
|
-
|
|
7997
|
+
const _ = (b = s.value) == null ? void 0 : b.getClientRects().length;
|
|
7998
|
+
y.value = _ || 2;
|
|
7999
7999
|
}
|
|
8000
8000
|
});
|
|
8001
|
-
}), (b,
|
|
8001
|
+
}), (b, _) => {
|
|
8002
8002
|
var h;
|
|
8003
8003
|
return f(), g("li", q9, [
|
|
8004
8004
|
n.value ? (f(), N(Qe, {
|
|
@@ -8015,7 +8015,7 @@ const q9 = { class: "ao-comment" }, W9 = { class: "ao-comment__created-at" }, z9
|
|
|
8015
8015
|
ref: s,
|
|
8016
8016
|
class: "ao-comment__content",
|
|
8017
8017
|
value: ee(o) ? b.content : null,
|
|
8018
|
-
rows: ee(o) ?
|
|
8018
|
+
rows: ee(o) ? y.value : null,
|
|
8019
8019
|
onKeyup: [
|
|
8020
8020
|
dt(ee(c), ["esc"]),
|
|
8021
8021
|
dt(he(ee(m), ["ctrl"]), ["enter"])
|
|
@@ -8116,7 +8116,7 @@ const K9 = { class: "ao-comments__header" }, X9 = ["onSubmit"], Q9 = ["placehold
|
|
|
8116
8116
|
onSubmit: he(r, ["prevent"])
|
|
8117
8117
|
}, [
|
|
8118
8118
|
xe(v("textarea", {
|
|
8119
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
8119
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => l.value = y),
|
|
8120
8120
|
rows: "2",
|
|
8121
8121
|
class: "ao-field__textarea ao-comments__form-textarea",
|
|
8122
8122
|
placeholder: c.$t("activity.comment.label")
|
|
@@ -8141,16 +8141,16 @@ const K9 = { class: "ao-comments__header" }, X9 = ["onSubmit"], Q9 = ["placehold
|
|
|
8141
8141
|
], 40, X9)
|
|
8142
8142
|
]),
|
|
8143
8143
|
((p = n.value) == null ? void 0 : p.length) > 0 ? (f(), g("ul", e4, [
|
|
8144
|
-
(f(!0), g(Ce, null, ye(n.value, (
|
|
8145
|
-
key:
|
|
8146
|
-
user: s(
|
|
8147
|
-
content:
|
|
8148
|
-
"created-at":
|
|
8149
|
-
"edited-at":
|
|
8150
|
-
"is-editable":
|
|
8144
|
+
(f(!0), g(Ce, null, ye(n.value, (y) => (f(), N(G9, {
|
|
8145
|
+
key: y.id,
|
|
8146
|
+
user: s(y.author.id),
|
|
8147
|
+
content: y.message,
|
|
8148
|
+
"created-at": y.createdAt,
|
|
8149
|
+
"edited-at": y.updatedAt,
|
|
8150
|
+
"is-editable": y.author.id === c.userId,
|
|
8151
8151
|
class: "ao-comment",
|
|
8152
|
-
onEdit: (b) => u(
|
|
8153
|
-
onRemove: () => d(
|
|
8152
|
+
onEdit: (b) => u(y.id, b),
|
|
8153
|
+
onRemove: () => d(y.id)
|
|
8154
8154
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
8155
8155
|
])) : E("", !0)
|
|
8156
8156
|
], 512);
|
|
@@ -8288,7 +8288,7 @@ const h1 = /* @__PURE__ */ ae({
|
|
|
8288
8288
|
...C,
|
|
8289
8289
|
disabled: (H = a.activity.blocking) == null ? void 0 : H.some((te) => te.id === C.value)
|
|
8290
8290
|
};
|
|
8291
|
-
})),
|
|
8291
|
+
})), y = M({
|
|
8292
8292
|
get() {
|
|
8293
8293
|
var C;
|
|
8294
8294
|
return (C = a.activity.blocking) == null ? void 0 : C.map((H) => H.id);
|
|
@@ -8307,13 +8307,13 @@ const h1 = /* @__PURE__ */ ae({
|
|
|
8307
8307
|
(te) => te.id === C.value
|
|
8308
8308
|
)
|
|
8309
8309
|
};
|
|
8310
|
-
})),
|
|
8310
|
+
})), _ = (C) => {
|
|
8311
8311
|
e("addSubtask", C);
|
|
8312
8312
|
}, h = (C) => {
|
|
8313
8313
|
e("updateSubtask", C);
|
|
8314
8314
|
}, A = (C) => {
|
|
8315
8315
|
e("deleteSubtask", C);
|
|
8316
|
-
},
|
|
8316
|
+
}, $ = M(() => {
|
|
8317
8317
|
var C;
|
|
8318
8318
|
return ((C = a.users) == null ? void 0 : C.map((H) => ({
|
|
8319
8319
|
label: `${H.firstName} ${H.lastName}`,
|
|
@@ -8457,7 +8457,7 @@ const h1 = /* @__PURE__ */ ae({
|
|
|
8457
8457
|
"is-checkable": C.isTaskCheckable,
|
|
8458
8458
|
"is-editable": C.isEditable,
|
|
8459
8459
|
"is-template": C.isTemplate,
|
|
8460
|
-
onAdd:
|
|
8460
|
+
onAdd: _,
|
|
8461
8461
|
onUpdate: h,
|
|
8462
8462
|
onDelete: A
|
|
8463
8463
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
@@ -8504,7 +8504,7 @@ const h1 = /* @__PURE__ */ ae({
|
|
|
8504
8504
|
modelValue: S.value,
|
|
8505
8505
|
"onUpdate:modelValue": H[2] || (H[2] = (U) => S.value = U),
|
|
8506
8506
|
class: "ao-activity-details__assignees ao-activity-details__multiselect",
|
|
8507
|
-
options:
|
|
8507
|
+
options: $.value,
|
|
8508
8508
|
"close-on-select": !0,
|
|
8509
8509
|
searchable: !0,
|
|
8510
8510
|
max: 1,
|
|
@@ -8624,8 +8624,8 @@ const h1 = /* @__PURE__ */ ae({
|
|
|
8624
8624
|
v("label", q4, [
|
|
8625
8625
|
v("span", W4, J(C.$t("activity.blocking.label")), 1),
|
|
8626
8626
|
L(we, {
|
|
8627
|
-
modelValue:
|
|
8628
|
-
"onUpdate:modelValue": H[8] || (H[8] = (U) =>
|
|
8627
|
+
modelValue: y.value,
|
|
8628
|
+
"onUpdate:modelValue": H[8] || (H[8] = (U) => y.value = U),
|
|
8629
8629
|
class: "ao-activity-details__multiselect",
|
|
8630
8630
|
mode: "tags",
|
|
8631
8631
|
"close-on-select": !1,
|
|
@@ -8696,9 +8696,9 @@ const x4 = /* @__PURE__ */ ae({
|
|
|
8696
8696
|
[me.ACTIVITIES]: a.templateActivities,
|
|
8697
8697
|
[me.MILESTONES]: a.templateMilestones,
|
|
8698
8698
|
[me.PHASES]: a.templatePhases
|
|
8699
|
-
}[n.value]) == null ? void 0 : A.map((
|
|
8700
|
-
value:
|
|
8701
|
-
label:
|
|
8699
|
+
}[n.value]) == null ? void 0 : A.map(($) => ({
|
|
8700
|
+
value: $.id,
|
|
8701
|
+
label: $.name
|
|
8702
8702
|
}));
|
|
8703
8703
|
}), r = Vt(a.rule.comparator), u = M({
|
|
8704
8704
|
get() {
|
|
@@ -8714,7 +8714,7 @@ const x4 = /* @__PURE__ */ ae({
|
|
|
8714
8714
|
set(h) {
|
|
8715
8715
|
e("update:rule", { ...a.rule, trigger: h });
|
|
8716
8716
|
}
|
|
8717
|
-
}), p = M(() => Object.values(A2)),
|
|
8717
|
+
}), p = M(() => Object.values(A2)), y = M({
|
|
8718
8718
|
get() {
|
|
8719
8719
|
return a.rule.duration;
|
|
8720
8720
|
},
|
|
@@ -8728,51 +8728,51 @@ const x4 = /* @__PURE__ */ ae({
|
|
|
8728
8728
|
set(h) {
|
|
8729
8729
|
e("update:rule", { ...a.rule, durationUnit: h });
|
|
8730
8730
|
}
|
|
8731
|
-
}),
|
|
8731
|
+
}), _ = M(() => Object.values(T2));
|
|
8732
8732
|
return (h, A) => (f(), N(pt(h.tagName), { class: "ao-rule-line" }, {
|
|
8733
8733
|
default: z(() => [
|
|
8734
8734
|
L(ee(lt), {
|
|
8735
8735
|
modelValue: s.value,
|
|
8736
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
8736
|
+
"onUpdate:modelValue": A[0] || (A[0] = ($) => s.value = $),
|
|
8737
8737
|
options: o.value
|
|
8738
8738
|
}, null, 8, ["modelValue", "options"]),
|
|
8739
8739
|
L(ee(lt), {
|
|
8740
8740
|
modelValue: i.value,
|
|
8741
|
-
"onUpdate:modelValue": A[1] || (A[1] = (
|
|
8741
|
+
"onUpdate:modelValue": A[1] || (A[1] = ($) => i.value = $),
|
|
8742
8742
|
options: l.value
|
|
8743
8743
|
}, null, 8, ["modelValue", "options"]),
|
|
8744
8744
|
L(ee(lt), {
|
|
8745
8745
|
modelValue: m.value,
|
|
8746
|
-
"onUpdate:modelValue": A[2] || (A[2] = (
|
|
8746
|
+
"onUpdate:modelValue": A[2] || (A[2] = ($) => m.value = $),
|
|
8747
8747
|
options: p.value
|
|
8748
8748
|
}, null, 8, ["modelValue", "options"]),
|
|
8749
8749
|
L(ee(lt), {
|
|
8750
8750
|
modelValue: u.value,
|
|
8751
|
-
"onUpdate:modelValue": A[3] || (A[3] = (
|
|
8751
|
+
"onUpdate:modelValue": A[3] || (A[3] = ($) => u.value = $),
|
|
8752
8752
|
options: d.value
|
|
8753
8753
|
}, null, 8, ["modelValue", "options"]),
|
|
8754
8754
|
xe(v("input", {
|
|
8755
|
-
"onUpdate:modelValue": A[4] || (A[4] = (
|
|
8755
|
+
"onUpdate:modelValue": A[4] || (A[4] = ($) => y.value = $),
|
|
8756
8756
|
type: "number",
|
|
8757
8757
|
min: "0"
|
|
8758
8758
|
}, null, 512), [
|
|
8759
8759
|
[
|
|
8760
8760
|
rt,
|
|
8761
|
-
|
|
8761
|
+
y.value,
|
|
8762
8762
|
void 0,
|
|
8763
8763
|
{ number: !0 }
|
|
8764
8764
|
]
|
|
8765
8765
|
]),
|
|
8766
8766
|
L(ee(lt), {
|
|
8767
8767
|
modelValue: b.value,
|
|
8768
|
-
"onUpdate:modelValue": A[5] || (A[5] = (
|
|
8769
|
-
options:
|
|
8768
|
+
"onUpdate:modelValue": A[5] || (A[5] = ($) => b.value = $),
|
|
8769
|
+
options: _.value
|
|
8770
8770
|
}, null, 8, ["modelValue", "options"]),
|
|
8771
8771
|
L(de, {
|
|
8772
8772
|
class: "ao-rule-line__remove",
|
|
8773
8773
|
"icon-name": "CloseRounded",
|
|
8774
8774
|
variant: "ghost",
|
|
8775
|
-
onClick: A[6] || (A[6] = (
|
|
8775
|
+
onClick: A[6] || (A[6] = ($) => h.$emit("close"))
|
|
8776
8776
|
})
|
|
8777
8777
|
]),
|
|
8778
8778
|
_: 1
|
|
@@ -8941,7 +8941,7 @@ const Q4 = {
|
|
|
8941
8941
|
itemType: me.TEMPLATES,
|
|
8942
8942
|
data: { name: T }
|
|
8943
8943
|
});
|
|
8944
|
-
},
|
|
8944
|
+
}, y = (T) => {
|
|
8945
8945
|
e("removeItem", {
|
|
8946
8946
|
type: me.PHASES,
|
|
8947
8947
|
templateId: a.templateId,
|
|
@@ -8956,7 +8956,7 @@ const Q4 = {
|
|
|
8956
8956
|
itemType: me.PHASES,
|
|
8957
8957
|
data: { name: q }
|
|
8958
8958
|
});
|
|
8959
|
-
},
|
|
8959
|
+
}, _ = (T) => {
|
|
8960
8960
|
e("updateItem", T);
|
|
8961
8961
|
}, h = (T) => {
|
|
8962
8962
|
if (!i.value)
|
|
@@ -8985,7 +8985,7 @@ const Q4 = {
|
|
|
8985
8985
|
id: T.id
|
|
8986
8986
|
}
|
|
8987
8987
|
});
|
|
8988
|
-
},
|
|
8988
|
+
}, $ = (T) => {
|
|
8989
8989
|
const { id: q, ...Y } = T;
|
|
8990
8990
|
e("updateItem", {
|
|
8991
8991
|
itemType: me.MILESTONES,
|
|
@@ -9127,7 +9127,7 @@ const Q4 = {
|
|
|
9127
9127
|
"onUpdate:title": (G) => {
|
|
9128
9128
|
b(R.id, G);
|
|
9129
9129
|
},
|
|
9130
|
-
onRemove: () =>
|
|
9130
|
+
onRemove: () => y(R.id)
|
|
9131
9131
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
9132
9132
|
];
|
|
9133
9133
|
}),
|
|
@@ -9150,8 +9150,8 @@ const Q4 = {
|
|
|
9150
9150
|
phase: i.value,
|
|
9151
9151
|
"milestone-id": (Y = l.value) == null ? void 0 : Y.id,
|
|
9152
9152
|
onAddMilestone: h,
|
|
9153
|
-
onUpdateMilestone:
|
|
9154
|
-
onUpdatePhase:
|
|
9153
|
+
onUpdateMilestone: $,
|
|
9154
|
+
onUpdatePhase: _,
|
|
9155
9155
|
onRemoveMilestone: A
|
|
9156
9156
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : E("", !0)
|
|
9157
9157
|
]),
|
|
@@ -9514,8 +9514,8 @@ const Of = {
|
|
|
9514
9514
|
const a = t, { t: n } = At();
|
|
9515
9515
|
ce(
|
|
9516
9516
|
() => a.phase.milestones,
|
|
9517
|
-
(p,
|
|
9518
|
-
Ke(p,
|
|
9517
|
+
(p, y) => {
|
|
9518
|
+
Ke(p, y);
|
|
9519
9519
|
}
|
|
9520
9520
|
);
|
|
9521
9521
|
const s = (p) => {
|
|
@@ -9527,12 +9527,12 @@ const Of = {
|
|
|
9527
9527
|
(p) => h3(p, a.closedStatus)
|
|
9528
9528
|
)
|
|
9529
9529
|
), l = (p) => {
|
|
9530
|
-
const { name:
|
|
9530
|
+
const { name: y, rank: b } = Pt(
|
|
9531
9531
|
i.value ?? [],
|
|
9532
9532
|
"milestone",
|
|
9533
9533
|
n
|
|
9534
9534
|
);
|
|
9535
|
-
e("addMilestone", { name:
|
|
9535
|
+
e("addMilestone", { name: y, rank: b, phaseId: p });
|
|
9536
9536
|
}, r = (p) => {
|
|
9537
9537
|
e("updateMilestone", p);
|
|
9538
9538
|
}, u = (p) => {
|
|
@@ -9544,12 +9544,8 @@ const Of = {
|
|
|
9544
9544
|
id: p.moved.element.id,
|
|
9545
9545
|
rank: ia(i.value, p.moved.newIndex)
|
|
9546
9546
|
});
|
|
9547
|
-
}, m = (p) => {
|
|
9548
|
-
|
|
9549
|
-
const _ = (b = a.users) == null ? void 0 : b.find((y) => y.id === p);
|
|
9550
|
-
return (_ == null ? void 0 : _.firstName) && (_ == null ? void 0 : _.lastName) && `${_.firstName} ${_.lastName}`;
|
|
9551
|
-
};
|
|
9552
|
-
return (p, _) => {
|
|
9547
|
+
}, m = (p) => p ? `${p == null ? void 0 : p.firstName} ${p == null ? void 0 : p.lastName}` : null;
|
|
9548
|
+
return (p, y) => {
|
|
9553
9549
|
var b;
|
|
9554
9550
|
return f(), g("li", {
|
|
9555
9551
|
class: Q([
|
|
@@ -9584,25 +9580,25 @@ const Of = {
|
|
|
9584
9580
|
"item-key": "id",
|
|
9585
9581
|
group: "kanban"
|
|
9586
9582
|
}, p.$attrs, { onChange: c }), {
|
|
9587
|
-
item: z(({ element:
|
|
9583
|
+
item: z(({ element: _ }) => {
|
|
9588
9584
|
var h;
|
|
9589
9585
|
return [
|
|
9590
9586
|
L(Ef, {
|
|
9591
|
-
id:
|
|
9592
|
-
name:
|
|
9593
|
-
activities:
|
|
9594
|
-
deadline:
|
|
9587
|
+
id: _.id,
|
|
9588
|
+
name: _.name,
|
|
9589
|
+
activities: _.activities,
|
|
9590
|
+
deadline: _.deadline,
|
|
9595
9591
|
"is-editable": !p.readonly && p.isEditable,
|
|
9596
9592
|
"is-draggable": !p.readonly && p.isEditable,
|
|
9597
9593
|
"closed-status": p.closedStatus,
|
|
9598
|
-
"is-selected":
|
|
9599
|
-
"assignee-name": m(
|
|
9600
|
-
important:
|
|
9594
|
+
"is-selected": _.id === ((h = p.$route.params) == null ? void 0 : h.milestoneId),
|
|
9595
|
+
"assignee-name": m(_.assignee),
|
|
9596
|
+
important: _.important,
|
|
9601
9597
|
readonly: p.readonly,
|
|
9602
9598
|
class: Q(["ao-project-phase__milestone"]),
|
|
9603
9599
|
onClick: (A) => !p.readonly && p.$router.push({
|
|
9604
9600
|
name: ee(Ue).milestone,
|
|
9605
|
-
params: { phaseId: p.phase.id, milestoneId:
|
|
9601
|
+
params: { phaseId: p.phase.id, milestoneId: _.id }
|
|
9606
9602
|
}),
|
|
9607
9603
|
onUpdateMilestone: r,
|
|
9608
9604
|
onArchiveMilestone: u
|
|
@@ -9617,7 +9613,7 @@ const Of = {
|
|
|
9617
9613
|
label: p.$t("project.milestone.add"),
|
|
9618
9614
|
class: "ao-project-phase__milestone-add",
|
|
9619
9615
|
"icon-name": "Add",
|
|
9620
|
-
onClick:
|
|
9616
|
+
onClick: y[0] || (y[0] = () => l(p.phase.id))
|
|
9621
9617
|
}, null, 8, ["label"])) : E("", !0)
|
|
9622
9618
|
])
|
|
9623
9619
|
])
|
|
@@ -9847,17 +9843,17 @@ const Kn = /* @__PURE__ */ j(Yf, [["render", Gf], ["__scopeId", "data-v-cbe33527
|
|
|
9847
9843
|
e("update:activity", O);
|
|
9848
9844
|
}, p = (O) => {
|
|
9849
9845
|
e("archiveActivity", O);
|
|
9850
|
-
},
|
|
9846
|
+
}, y = (O) => {
|
|
9851
9847
|
e("unarchiveActivity", O);
|
|
9852
9848
|
}, b = (O) => {
|
|
9853
9849
|
e("addSubtask", O);
|
|
9854
|
-
},
|
|
9850
|
+
}, _ = (O) => {
|
|
9855
9851
|
e("updateSubtask", O);
|
|
9856
9852
|
}, h = (O) => {
|
|
9857
9853
|
e("deleteSubtask", O);
|
|
9858
9854
|
}, A = M(
|
|
9859
9855
|
() => s.value.flatMap((O) => O.activities)
|
|
9860
|
-
),
|
|
9856
|
+
), $ = (O) => {
|
|
9861
9857
|
e("addFiles", O);
|
|
9862
9858
|
}, S = (O) => {
|
|
9863
9859
|
e("removeFile", O);
|
|
@@ -9937,7 +9933,7 @@ const Kn = /* @__PURE__ */ j(Yf, [["render", Gf], ["__scopeId", "data-v-cbe33527
|
|
|
9937
9933
|
onAddActivity: c,
|
|
9938
9934
|
onUpdateActivity: m,
|
|
9939
9935
|
onArchiveActivity: p,
|
|
9940
|
-
onUnarchiveActivity:
|
|
9936
|
+
onUnarchiveActivity: y
|
|
9941
9937
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
|
|
9942
9938
|
(f(), N(Ht, { to: "body" }, [
|
|
9943
9939
|
L(B, {
|
|
@@ -9952,9 +9948,9 @@ const Kn = /* @__PURE__ */ j(Yf, [["render", Gf], ["__scopeId", "data-v-cbe33527
|
|
|
9952
9948
|
"is-editable": O.isEditable,
|
|
9953
9949
|
"onUpdate:activity": m,
|
|
9954
9950
|
onAddSubtask: b,
|
|
9955
|
-
onUpdateSubtask:
|
|
9951
|
+
onUpdateSubtask: _,
|
|
9956
9952
|
onDeleteSubtask: h,
|
|
9957
|
-
onAddFiles:
|
|
9953
|
+
onAddFiles: $,
|
|
9958
9954
|
onRemoveFile: S,
|
|
9959
9955
|
onAddComment: D,
|
|
9960
9956
|
onUpdateComment: I,
|
|
@@ -10041,8 +10037,8 @@ const Jf = { class: "ao-card-feed__header" }, e8 = {
|
|
|
10041
10037
|
name: m
|
|
10042
10038
|
});
|
|
10043
10039
|
}, s = M(() => a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), o = M(() => a.assignee ? [a.assignee] : []), i = M(() => b1(a.deadline)), l = (m) => {
|
|
10044
|
-
const { firstName: p, lastName:
|
|
10045
|
-
return `${p ?? ""}${p ? " " : ""}${
|
|
10040
|
+
const { firstName: p, lastName: y } = m || {};
|
|
10041
|
+
return `${p ?? ""}${p ? " " : ""}${y ?? ""}`;
|
|
10046
10042
|
}, r = (m) => {
|
|
10047
10043
|
e("removeAssignee", m);
|
|
10048
10044
|
}, u = M(() => {
|
|
@@ -10109,15 +10105,15 @@ const Jf = { class: "ao-card-feed__header" }, e8 = {
|
|
|
10109
10105
|
v("div", o8, [
|
|
10110
10106
|
v("div", l8, [
|
|
10111
10107
|
v("ul", r8, [
|
|
10112
|
-
(f(!0), g(Ce, null, ye(o.value, (
|
|
10113
|
-
key:
|
|
10108
|
+
(f(!0), g(Ce, null, ye(o.value, (y) => (f(), g(Ce, {
|
|
10109
|
+
key: y.id
|
|
10114
10110
|
}, [
|
|
10115
|
-
|
|
10111
|
+
y ? (f(), g("li", u8, [
|
|
10116
10112
|
L(Qe, {
|
|
10117
|
-
"user-name": l(
|
|
10118
|
-
"avatar-url":
|
|
10113
|
+
"user-name": l(y),
|
|
10114
|
+
"avatar-url": y.avatarUrl,
|
|
10119
10115
|
"is-closable": !0,
|
|
10120
|
-
onClose: () => r(
|
|
10116
|
+
onClose: () => r(y.id)
|
|
10121
10117
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
10122
10118
|
])) : E("", !0)
|
|
10123
10119
|
], 64))), 128))
|
|
@@ -10188,9 +10184,8 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10188
10184
|
return (h = a.phases) == null ? void 0 : h.flatMap((A) => A.milestones);
|
|
10189
10185
|
}
|
|
10190
10186
|
), i = M(() => {
|
|
10191
|
-
var
|
|
10192
|
-
|
|
10193
|
-
return console.log({ yo: h }), h;
|
|
10187
|
+
var h;
|
|
10188
|
+
return (h = o.value) == null ? void 0 : h.find((A) => A.id === a.milestoneId);
|
|
10194
10189
|
}), l = M(() => {
|
|
10195
10190
|
var h;
|
|
10196
10191
|
return (h = i.value) == null ? void 0 : h.activities;
|
|
@@ -10230,7 +10225,7 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10230
10225
|
deadline: h != null && h.length ? h : null
|
|
10231
10226
|
});
|
|
10232
10227
|
}
|
|
10233
|
-
}), p = (h) => a.closedStatus ? w1(h, a.closedStatus) : !1,
|
|
10228
|
+
}), p = (h) => a.closedStatus ? w1(h, a.closedStatus) : !1, y = M(() => {
|
|
10234
10229
|
var h;
|
|
10235
10230
|
return ((h = a.users) == null ? void 0 : h.map((A) => ({
|
|
10236
10231
|
label: `${A.firstName} ${A.lastName}`,
|
|
@@ -10240,7 +10235,7 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10240
10235
|
}), b = M({
|
|
10241
10236
|
get() {
|
|
10242
10237
|
var h, A;
|
|
10243
|
-
return (
|
|
10238
|
+
return (A = (h = i.value) == null ? void 0 : h.assignee) != null && A.id ? [i.value.assignee.id] : [];
|
|
10244
10239
|
},
|
|
10245
10240
|
set(h) {
|
|
10246
10241
|
e("updateMilestone", {
|
|
@@ -10249,7 +10244,7 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10249
10244
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
10250
10245
|
});
|
|
10251
10246
|
}
|
|
10252
|
-
}),
|
|
10247
|
+
}), _ = M({
|
|
10253
10248
|
get() {
|
|
10254
10249
|
var h;
|
|
10255
10250
|
return ((h = i.value) == null ? void 0 : h.important) ?? !1;
|
|
@@ -10259,7 +10254,7 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10259
10254
|
}
|
|
10260
10255
|
});
|
|
10261
10256
|
return (h, A) => {
|
|
10262
|
-
var
|
|
10257
|
+
var $;
|
|
10263
10258
|
return f(), g("div", _8, [
|
|
10264
10259
|
v("header", y8, [
|
|
10265
10260
|
v("div", b8, [
|
|
@@ -10274,12 +10269,12 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10274
10269
|
v("div", w8, [
|
|
10275
10270
|
v("div", $8, [
|
|
10276
10271
|
L(_e, {
|
|
10277
|
-
title: ((
|
|
10272
|
+
title: (($ = i.value) == null ? void 0 : $.name) || h.milestoneId,
|
|
10278
10273
|
level: 5
|
|
10279
10274
|
}, null, 8, ["title"]),
|
|
10280
10275
|
L(h1, {
|
|
10281
|
-
modelValue:
|
|
10282
|
-
"onUpdate:modelValue": A[0] || (A[0] = (S) =>
|
|
10276
|
+
modelValue: _.value,
|
|
10277
|
+
"onUpdate:modelValue": A[0] || (A[0] = (S) => _.value = S),
|
|
10283
10278
|
modelModifiers: { lazy: !0 },
|
|
10284
10279
|
disabled: !h.isEditable,
|
|
10285
10280
|
class: "ao-milestone__important",
|
|
@@ -10313,7 +10308,7 @@ const _8 = { class: "ao-project-milestone" }, y8 = { class: "ao-project-mileston
|
|
|
10313
10308
|
L(we, {
|
|
10314
10309
|
modelValue: b.value,
|
|
10315
10310
|
"onUpdate:modelValue": A[2] || (A[2] = (S) => b.value = S),
|
|
10316
|
-
options:
|
|
10311
|
+
options: y.value,
|
|
10317
10312
|
"close-on-select": !0,
|
|
10318
10313
|
searchable: !0,
|
|
10319
10314
|
max: 1,
|
|
@@ -10441,55 +10436,55 @@ const I8 = /* @__PURE__ */ ae({
|
|
|
10441
10436
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
10442
10437
|
setup(t, { emit: e }) {
|
|
10443
10438
|
const a = t, n = M(() => {
|
|
10444
|
-
var
|
|
10445
|
-
return (
|
|
10439
|
+
var _;
|
|
10440
|
+
return (_ = a.phases) == null ? void 0 : _.find((h) => h.id === a.phaseId);
|
|
10446
10441
|
}), s = M(
|
|
10447
10442
|
() => {
|
|
10448
|
-
var
|
|
10449
|
-
return (
|
|
10443
|
+
var _;
|
|
10444
|
+
return (_ = a.phases) == null ? void 0 : _.flatMap((h) => h.milestones);
|
|
10450
10445
|
}
|
|
10451
10446
|
), o = M(() => {
|
|
10452
|
-
var
|
|
10453
|
-
return (
|
|
10447
|
+
var _;
|
|
10448
|
+
return (_ = s.value) == null ? void 0 : _.find((h) => h.id === a.milestoneId);
|
|
10454
10449
|
}), i = M(() => {
|
|
10455
|
-
var
|
|
10456
|
-
return (
|
|
10457
|
-
}), l = (
|
|
10458
|
-
e("update:activity",
|
|
10459
|
-
}, r = (
|
|
10460
|
-
e("addSubtask",
|
|
10461
|
-
}, u = (
|
|
10462
|
-
e("updateSubtask",
|
|
10463
|
-
}, d = (
|
|
10464
|
-
e("deleteSubtask",
|
|
10465
|
-
}, c = (
|
|
10466
|
-
e("addFiles",
|
|
10467
|
-
}, m = (
|
|
10468
|
-
e("removeFile",
|
|
10469
|
-
}, p = (
|
|
10470
|
-
e("addComment",
|
|
10471
|
-
},
|
|
10472
|
-
e("updateComment",
|
|
10473
|
-
}, b = (
|
|
10474
|
-
e("removeComment",
|
|
10450
|
+
var _;
|
|
10451
|
+
return (_ = a.activities) == null ? void 0 : _.find((h) => h.id === a.activityId);
|
|
10452
|
+
}), l = (_) => {
|
|
10453
|
+
e("update:activity", _);
|
|
10454
|
+
}, r = (_) => {
|
|
10455
|
+
e("addSubtask", _);
|
|
10456
|
+
}, u = (_) => {
|
|
10457
|
+
e("updateSubtask", _);
|
|
10458
|
+
}, d = (_) => {
|
|
10459
|
+
e("deleteSubtask", _);
|
|
10460
|
+
}, c = (_) => {
|
|
10461
|
+
e("addFiles", _);
|
|
10462
|
+
}, m = (_) => {
|
|
10463
|
+
e("removeFile", _);
|
|
10464
|
+
}, p = (_) => {
|
|
10465
|
+
e("addComment", _);
|
|
10466
|
+
}, y = (_) => {
|
|
10467
|
+
e("updateComment", _);
|
|
10468
|
+
}, b = (_) => {
|
|
10469
|
+
e("removeComment", _);
|
|
10475
10470
|
};
|
|
10476
|
-
return (
|
|
10477
|
-
var A,
|
|
10471
|
+
return (_, h) => {
|
|
10472
|
+
var A, $;
|
|
10478
10473
|
return i.value ? (f(), N(H1, {
|
|
10479
10474
|
key: 0,
|
|
10480
10475
|
activity: i.value,
|
|
10481
|
-
"activity-types":
|
|
10482
|
-
"milestone-id":
|
|
10483
|
-
"template-activities":
|
|
10476
|
+
"activity-types": _.activityTypes,
|
|
10477
|
+
"milestone-id": _.milestoneId,
|
|
10478
|
+
"template-activities": _.activities,
|
|
10484
10479
|
"is-template": !1,
|
|
10485
|
-
users:
|
|
10486
|
-
"user-id":
|
|
10487
|
-
"is-task-checkable":
|
|
10488
|
-
statuses:
|
|
10489
|
-
breadcrumbs: `${(A = n.value) == null ? void 0 : A.name} / ${(
|
|
10490
|
-
"is-editable":
|
|
10491
|
-
"attachment-enabled":
|
|
10492
|
-
onClose:
|
|
10480
|
+
users: _.users,
|
|
10481
|
+
"user-id": _.userId,
|
|
10482
|
+
"is-task-checkable": _.isTaskCheckable,
|
|
10483
|
+
statuses: _.statuses,
|
|
10484
|
+
breadcrumbs: `${(A = n.value) == null ? void 0 : A.name} / ${($ = o.value) == null ? void 0 : $.name}`,
|
|
10485
|
+
"is-editable": _.isEditable,
|
|
10486
|
+
"attachment-enabled": _.attachmentEnabled,
|
|
10487
|
+
onClose: _.$router.back,
|
|
10493
10488
|
"onUpdate:activity": l,
|
|
10494
10489
|
onAddSubtask: r,
|
|
10495
10490
|
onUpdateSubtask: u,
|
|
@@ -10497,11 +10492,11 @@ const I8 = /* @__PURE__ */ ae({
|
|
|
10497
10492
|
onAddFiles: c,
|
|
10498
10493
|
onRemoveFile: m,
|
|
10499
10494
|
onAddComment: p,
|
|
10500
|
-
onUpdateComment:
|
|
10495
|
+
onUpdateComment: y,
|
|
10501
10496
|
onRemoveComment: b
|
|
10502
10497
|
}, {
|
|
10503
10498
|
default: z((S) => [
|
|
10504
|
-
ne(
|
|
10499
|
+
ne(_.$slots, "default", ua(da(S)))
|
|
10505
10500
|
]),
|
|
10506
10501
|
_: 3
|
|
10507
10502
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "onClose"])) : E("", !0);
|
|
@@ -10594,16 +10589,16 @@ function F8(t, e, a = {}) {
|
|
|
10594
10589
|
window: i = j8,
|
|
10595
10590
|
immediate: l = !0
|
|
10596
10591
|
} = a, r = Z8(() => i && "IntersectionObserver" in i), u = M(() => {
|
|
10597
|
-
const
|
|
10598
|
-
return (Array.isArray(
|
|
10592
|
+
const y = Ba(t);
|
|
10593
|
+
return (Array.isArray(y) ? y : [y]).map(d1).filter(H8);
|
|
10599
10594
|
});
|
|
10600
10595
|
let d = aa;
|
|
10601
10596
|
const c = se(l), m = r.value ? ce(
|
|
10602
10597
|
() => [u.value, d1(n), c.value],
|
|
10603
|
-
([
|
|
10604
|
-
if (d(), !c.value || !
|
|
10598
|
+
([y, b]) => {
|
|
10599
|
+
if (d(), !c.value || !y.length)
|
|
10605
10600
|
return;
|
|
10606
|
-
const
|
|
10601
|
+
const _ = new IntersectionObserver(
|
|
10607
10602
|
e,
|
|
10608
10603
|
{
|
|
10609
10604
|
root: d1(b),
|
|
@@ -10611,8 +10606,8 @@ function F8(t, e, a = {}) {
|
|
|
10611
10606
|
threshold: o
|
|
10612
10607
|
}
|
|
10613
10608
|
);
|
|
10614
|
-
|
|
10615
|
-
|
|
10609
|
+
y.forEach((h) => h && _.observe(h)), d = () => {
|
|
10610
|
+
_.disconnect(), d = aa;
|
|
10616
10611
|
};
|
|
10617
10612
|
},
|
|
10618
10613
|
{ immediate: l, flush: "post" }
|
|
@@ -10718,15 +10713,15 @@ const q8 = {
|
|
|
10718
10713
|
}
|
|
10719
10714
|
}), {
|
|
10720
10715
|
item: z(({ element: c }) => {
|
|
10721
|
-
var m, p,
|
|
10716
|
+
var m, p, y, b, _, h, A, $;
|
|
10722
10717
|
return [
|
|
10723
10718
|
L(Xn, {
|
|
10724
10719
|
id: c.id,
|
|
10725
10720
|
name: c.name,
|
|
10726
10721
|
"project-name": (m = c.project) == null ? void 0 : m.name,
|
|
10727
10722
|
"project-color": (p = c.project) == null ? void 0 : p.color,
|
|
10728
|
-
"phase-name": (b = (
|
|
10729
|
-
"milestone-name": (
|
|
10723
|
+
"phase-name": (b = (y = c.milestone) == null ? void 0 : y.phase) == null ? void 0 : b.name,
|
|
10724
|
+
"milestone-name": (_ = c.milestone) == null ? void 0 : _.name,
|
|
10730
10725
|
deadline: c.deadline,
|
|
10731
10726
|
rules: ((h = c.rules) == null ? void 0 : h.length) || 0,
|
|
10732
10727
|
tasks: c.tasks,
|
|
@@ -10734,7 +10729,7 @@ const q8 = {
|
|
|
10734
10729
|
important: c.important,
|
|
10735
10730
|
type: c.type,
|
|
10736
10731
|
comments: (A = c.comments) == null ? void 0 : A.length,
|
|
10737
|
-
attachments: (
|
|
10732
|
+
attachments: ($ = c.attachments) == null ? void 0 : $.length,
|
|
10738
10733
|
users: u.users,
|
|
10739
10734
|
assignee: c.assignee,
|
|
10740
10735
|
"is-editable": u.isEditable,
|
|
@@ -10909,7 +10904,7 @@ const tv = { class: "ao-feed" }, av = { class: "ao-feed__filters" }, nv = { clas
|
|
|
10909
10904
|
), p = M(() => m.value.map((k) => ({
|
|
10910
10905
|
value: k.id,
|
|
10911
10906
|
label: k.name
|
|
10912
|
-
}))),
|
|
10907
|
+
}))), y = M(() => {
|
|
10913
10908
|
var k;
|
|
10914
10909
|
return (k = a.activityTypes) == null ? void 0 : k.map((x) => ({
|
|
10915
10910
|
value: x.id,
|
|
@@ -10919,13 +10914,13 @@ const tv = { class: "ao-feed" }, av = { class: "ao-feed__filters" }, nv = { clas
|
|
|
10919
10914
|
value: k.id,
|
|
10920
10915
|
label: `${k.firstName} ${k.lastName}`,
|
|
10921
10916
|
avatar: k.avatarUrl
|
|
10922
|
-
}))),
|
|
10917
|
+
}))), _ = (k) => {
|
|
10923
10918
|
a.selectedActivity && e("update:activity", k);
|
|
10924
10919
|
}, h = (k) => {
|
|
10925
10920
|
e("update:activity", k);
|
|
10926
10921
|
}, A = (k) => {
|
|
10927
10922
|
e("archiveActivity", k);
|
|
10928
|
-
},
|
|
10923
|
+
}, $ = (k) => {
|
|
10929
10924
|
e("unarchiveActivity", k);
|
|
10930
10925
|
}, S = M({
|
|
10931
10926
|
get() {
|
|
@@ -10933,7 +10928,7 @@ const tv = { class: "ao-feed" }, av = { class: "ao-feed__filters" }, nv = { clas
|
|
|
10933
10928
|
return (k = a.selectedActivity) == null ? void 0 : k.deadline;
|
|
10934
10929
|
},
|
|
10935
10930
|
set(k) {
|
|
10936
|
-
a.selectedActivity &&
|
|
10931
|
+
a.selectedActivity && _({
|
|
10937
10932
|
id: a.selectedActivity.id,
|
|
10938
10933
|
deadline: k != null && k.length ? k : null
|
|
10939
10934
|
});
|
|
@@ -11031,11 +11026,11 @@ const tv = { class: "ao-feed" }, av = { class: "ao-feed__filters" }, nv = { clas
|
|
|
11031
11026
|
placeholder: k.$t("feed.filters.project.placeholder"),
|
|
11032
11027
|
"onUpdate:modelValue": x[1] || (x[1] = (W) => c(ee(Ot).project, W))
|
|
11033
11028
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
11034
|
-
|
|
11029
|
+
y.value ? (f(), N(we, {
|
|
11035
11030
|
key: 2,
|
|
11036
11031
|
"model-value": k.filters[ee(Ot).type],
|
|
11037
11032
|
mode: "tags",
|
|
11038
|
-
options:
|
|
11033
|
+
options: y.value,
|
|
11039
11034
|
"close-on-select": !1,
|
|
11040
11035
|
searchable: !0,
|
|
11041
11036
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
@@ -11105,7 +11100,7 @@ const tv = { class: "ao-feed" }, av = { class: "ao-feed__filters" }, nv = { clas
|
|
|
11105
11100
|
onAdd: () => d(W),
|
|
11106
11101
|
onSelectActivity: o,
|
|
11107
11102
|
onArchiveActivity: A,
|
|
11108
|
-
onUnarchiveActivity:
|
|
11103
|
+
onUnarchiveActivity: $,
|
|
11109
11104
|
onUpdateActivity: h
|
|
11110
11105
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "is-editable", "onAdd"]))), 128))
|
|
11111
11106
|
]),
|
|
@@ -11124,7 +11119,7 @@ const tv = { class: "ao-feed" }, av = { class: "ao-feed__filters" }, nv = { clas
|
|
|
11124
11119
|
"is-editable": k.isEditable,
|
|
11125
11120
|
"attachment-enabled": k.attachmentEnabled,
|
|
11126
11121
|
onClose: x[7] || (x[7] = () => o(null)),
|
|
11127
|
-
"onUpdate:activity":
|
|
11122
|
+
"onUpdate:activity": _,
|
|
11128
11123
|
onAddSubtask: Z,
|
|
11129
11124
|
onUpdateSubtask: F,
|
|
11130
11125
|
onDeleteSubtask: K,
|