@26lights/orcha 0.41.83 → 0.41.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +2 -2
- package/dist/orcha.css +1 -1
- package/dist/orcha.es.js +307 -300
- package/dist/orcha.umd.js +3 -3
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1260,49 +1260,49 @@ const be = /* @__PURE__ */ q({
|
|
|
1260
1260
|
setup(t, { emit: e }) {
|
|
1261
1261
|
const a = t, s = Y(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = Hn(s), r = A(() => n.value ? "input" : a.tag || `h${a.level}`), d = A(() => a.isEditable ? n.value ? {
|
|
1262
1262
|
change: u,
|
|
1263
|
-
click: (
|
|
1263
|
+
click: (_) => _.stopPropagation(),
|
|
1264
1264
|
blur: p
|
|
1265
1265
|
} : {
|
|
1266
1266
|
click: w,
|
|
1267
1267
|
focus: w
|
|
1268
|
-
} : {}), u = i((
|
|
1268
|
+
} : {}), u = i((_, g) => {
|
|
1269
1269
|
const m = g.target.value;
|
|
1270
1270
|
e("update:title", m);
|
|
1271
1271
|
}), c = l(), p = async () => {
|
|
1272
1272
|
n.value && o(!1);
|
|
1273
1273
|
}, h = () => {
|
|
1274
1274
|
e("toggle-is-editing", !1);
|
|
1275
|
-
}, w = (
|
|
1276
|
-
|
|
1275
|
+
}, w = (_) => {
|
|
1276
|
+
_.stopPropagation(), n.value || o(!0);
|
|
1277
1277
|
};
|
|
1278
1278
|
return ce(
|
|
1279
1279
|
() => a.isEditable,
|
|
1280
|
-
(
|
|
1281
|
-
|
|
1280
|
+
(_) => {
|
|
1281
|
+
_ || c();
|
|
1282
1282
|
}
|
|
1283
|
-
), (
|
|
1284
|
-
id:
|
|
1283
|
+
), (_, g) => (v(), D(mt(r.value), Ae({
|
|
1284
|
+
id: _.id,
|
|
1285
1285
|
ref_key: "target",
|
|
1286
1286
|
ref: s,
|
|
1287
1287
|
class: [
|
|
1288
1288
|
"ao-title",
|
|
1289
|
-
`ao-title--${
|
|
1289
|
+
`ao-title--${_.level}`,
|
|
1290
1290
|
{
|
|
1291
|
-
[`ao-title--${
|
|
1292
|
-
"ao-title--editable":
|
|
1291
|
+
[`ao-title--${_.color}`]: !!_.color,
|
|
1292
|
+
"ao-title--editable": _.isEditable,
|
|
1293
1293
|
"ao-field__input ao-title--editing": Q(n),
|
|
1294
1294
|
"ao-title--readonly": !Q(n)
|
|
1295
1295
|
}
|
|
1296
1296
|
],
|
|
1297
1297
|
type: Q(n) ? "text" : null,
|
|
1298
|
-
value: Q(n) ?
|
|
1298
|
+
value: Q(n) ? _.title : null,
|
|
1299
1299
|
tabindex: "0",
|
|
1300
1300
|
onKeyup: dt(h, ["enter"])
|
|
1301
1301
|
}, ji(d.value), {
|
|
1302
1302
|
onKeydown: dt(Q(c), ["esc"])
|
|
1303
1303
|
}), {
|
|
1304
1304
|
default: N(() => [
|
|
1305
|
-
qa(W(
|
|
1305
|
+
qa(W(_.title), 1)
|
|
1306
1306
|
]),
|
|
1307
1307
|
_: 1
|
|
1308
1308
|
}, 16, ["id", "class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1609,10 +1609,10 @@ function Nn(t, e) {
|
|
|
1609
1609
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1610
1610
|
var w = /* @__PURE__ */ new Date(0);
|
|
1611
1611
|
w.setUTCFullYear(c + 1, 0, h), w.setUTCHours(0, 0, 0, 0);
|
|
1612
|
-
var
|
|
1612
|
+
var _ = Na(w, e), g = /* @__PURE__ */ new Date(0);
|
|
1613
1613
|
g.setUTCFullYear(c, 0, h), g.setUTCHours(0, 0, 0, 0);
|
|
1614
1614
|
var $ = Na(g, e);
|
|
1615
|
-
return u.getTime() >=
|
|
1615
|
+
return u.getTime() >= _.getTime() ? c + 1 : u.getTime() >= $.getTime() ? c : c - 1;
|
|
1616
1616
|
}
|
|
1617
1617
|
function r0(t, e) {
|
|
1618
1618
|
var a, s, n, o, i, l, r, d;
|
|
@@ -2734,12 +2734,12 @@ var n3 = {
|
|
|
2734
2734
|
const Fn = n3;
|
|
2735
2735
|
var i3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, o3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, l3 = /^'([^]*?)'?$/, r3 = /''/g, u3 = /[a-zA-Z]/;
|
|
2736
2736
|
function Zn(t, e, a) {
|
|
2737
|
-
var s, n, o, i, l, r, d, u, c, p, h, w,
|
|
2737
|
+
var s, n, o, i, l, r, d, u, c, p, h, w, _, g, $, m, y, P;
|
|
2738
2738
|
Ce(2, arguments);
|
|
2739
2739
|
var I = String(e), L = ga(), F = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : L.locale) !== null && s !== void 0 ? s : Fn, z = Qe((o = (i = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : L.firstWeekContainsDate) !== null && i !== void 0 ? i : (c = L.locale) === null || c === void 0 || (p = c.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2740
2740
|
if (!(z >= 1 && z <= 7))
|
|
2741
2741
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2742
|
-
var K = Qe((h = (w = (
|
|
2742
|
+
var K = Qe((h = (w = (_ = (g = a == null ? void 0 : a.weekStartsOn) !== null && g !== void 0 ? g : a == null || ($ = a.locale) === null || $ === void 0 || (m = $.options) === null || m === void 0 ? void 0 : m.weekStartsOn) !== null && _ !== void 0 ? _ : L.weekStartsOn) !== null && w !== void 0 ? w : (y = L.locale) === null || y === void 0 || (P = y.options) === null || P === void 0 ? void 0 : P.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2743
2743
|
if (!(K >= 0 && K <= 6))
|
|
2744
2744
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2745
2745
|
if (!F.localize)
|
|
@@ -2783,7 +2783,7 @@ function c3(t) {
|
|
|
2783
2783
|
function d3(t, e, a) {
|
|
2784
2784
|
var s, n, o, i, l, r, d, u, c, p;
|
|
2785
2785
|
Ce(2, arguments);
|
|
2786
|
-
var h = $e(t), w = $e(e),
|
|
2786
|
+
var h = $e(t), w = $e(e), _ = ga(), g = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : _.locale) !== null && s !== void 0 ? s : Fn, $ = Qe((o = (i = (l = (r = a == null ? void 0 : a.weekStartsOn) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && l !== void 0 ? l : _.weekStartsOn) !== null && i !== void 0 ? i : (c = _.locale) === null || c === void 0 || (p = c.options) === null || p === void 0 ? void 0 : p.weekStartsOn) !== null && o !== void 0 ? o : 0);
|
|
2787
2787
|
if (!g.localize)
|
|
2788
2788
|
throw new RangeError("locale must contain localize property");
|
|
2789
2789
|
if (!g.formatLong)
|
|
@@ -2793,9 +2793,9 @@ function d3(t, e, a) {
|
|
|
2793
2793
|
var m = e0(h, w);
|
|
2794
2794
|
if (isNaN(m))
|
|
2795
2795
|
throw new RangeError("Invalid time value");
|
|
2796
|
-
var
|
|
2797
|
-
m < -6 ?
|
|
2798
|
-
var P = ws(h, ua(h)), I = ws(w, ua(w)), L = g.formatRelative(
|
|
2796
|
+
var y;
|
|
2797
|
+
m < -6 ? y = "other" : m < -1 ? y = "lastWeek" : m < 0 ? y = "yesterday" : m < 1 ? y = "today" : m < 2 ? y = "tomorrow" : m < 7 ? y = "nextWeek" : y = "other";
|
|
2798
|
+
var P = ws(h, ua(h)), I = ws(w, ua(w)), L = g.formatRelative(y, P, I, {
|
|
2799
2799
|
locale: g,
|
|
2800
2800
|
weekStartsOn: $
|
|
2801
2801
|
});
|
|
@@ -3500,20 +3500,20 @@ function xn() {
|
|
|
3500
3500
|
}
|
|
3501
3501
|
let c;
|
|
3502
3502
|
for (let w = r.getScale(); w > 0; d = c) {
|
|
3503
|
-
const
|
|
3504
|
-
if (c = d.setScale(
|
|
3503
|
+
const _ = w - 1, g = r.setScale(_, !0);
|
|
3504
|
+
if (c = d.setScale(_, !1), g.compareTo(c) === 0)
|
|
3505
3505
|
return n.checkMid(i, l, g);
|
|
3506
3506
|
if (g.compareTo(c) > 0)
|
|
3507
3507
|
break;
|
|
3508
|
-
w =
|
|
3508
|
+
w = _, r = g;
|
|
3509
3509
|
}
|
|
3510
3510
|
let p = n.middleInternal(i, l, r, d), h;
|
|
3511
3511
|
for (let w = p.getScale(); w > 0; w = h) {
|
|
3512
3512
|
h = w - 1;
|
|
3513
|
-
const
|
|
3514
|
-
if (i.compareTo(
|
|
3513
|
+
const _ = p.setScale(h);
|
|
3514
|
+
if (i.compareTo(_) >= 0 || _.compareTo(l) >= 0)
|
|
3515
3515
|
break;
|
|
3516
|
-
p =
|
|
3516
|
+
p = _;
|
|
3517
3517
|
}
|
|
3518
3518
|
return p;
|
|
3519
3519
|
}
|
|
@@ -4397,13 +4397,13 @@ const F5 = async (t, e, a) => {
|
|
|
4397
4397
|
x: u,
|
|
4398
4398
|
y: c
|
|
4399
4399
|
} = _n(d, s, r), p = s, h = {}, w = 0;
|
|
4400
|
-
for (let
|
|
4400
|
+
for (let _ = 0; _ < l.length; _++) {
|
|
4401
4401
|
const {
|
|
4402
4402
|
name: g,
|
|
4403
4403
|
fn: $
|
|
4404
|
-
} = l[
|
|
4404
|
+
} = l[_], {
|
|
4405
4405
|
x: m,
|
|
4406
|
-
y
|
|
4406
|
+
y,
|
|
4407
4407
|
data: P,
|
|
4408
4408
|
reset: I
|
|
4409
4409
|
} = await $({
|
|
@@ -4420,7 +4420,7 @@ const F5 = async (t, e, a) => {
|
|
|
4420
4420
|
floating: e
|
|
4421
4421
|
}
|
|
4422
4422
|
});
|
|
4423
|
-
if (u = m ?? u, c =
|
|
4423
|
+
if (u = m ?? u, c = y ?? c, h = {
|
|
4424
4424
|
...h,
|
|
4425
4425
|
[g]: {
|
|
4426
4426
|
...h[g],
|
|
@@ -4434,7 +4434,7 @@ const F5 = async (t, e, a) => {
|
|
|
4434
4434
|
}) : I.rects), {
|
|
4435
4435
|
x: u,
|
|
4436
4436
|
y: c
|
|
4437
|
-
} = _n(d, p, r)),
|
|
4437
|
+
} = _n(d, p, r)), _ = -1;
|
|
4438
4438
|
continue;
|
|
4439
4439
|
}
|
|
4440
4440
|
}
|
|
@@ -4471,7 +4471,7 @@ async function Jn(t, e) {
|
|
|
4471
4471
|
...i.floating,
|
|
4472
4472
|
x: s,
|
|
4473
4473
|
y: n
|
|
4474
|
-
} : i.reference,
|
|
4474
|
+
} : i.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), P = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
|
|
4475
4475
|
x: 1,
|
|
4476
4476
|
y: 1
|
|
4477
4477
|
} : {
|
|
@@ -4479,7 +4479,7 @@ async function Jn(t, e) {
|
|
|
4479
4479
|
y: 1
|
|
4480
4480
|
}, I = Za(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4481
4481
|
rect: m,
|
|
4482
|
-
offsetParent:
|
|
4482
|
+
offsetParent: y,
|
|
4483
4483
|
strategy: r
|
|
4484
4484
|
}) : m);
|
|
4485
4485
|
return {
|
|
@@ -4508,17 +4508,17 @@ const Z5 = function(t) {
|
|
|
4508
4508
|
fallbackPlacements: p,
|
|
4509
4509
|
fallbackStrategy: h = "bestFit",
|
|
4510
4510
|
fallbackAxisSideDirection: w = "none",
|
|
4511
|
-
flipAlignment:
|
|
4511
|
+
flipAlignment: _ = !0,
|
|
4512
4512
|
...g
|
|
4513
4513
|
} = Ds(t, e);
|
|
4514
4514
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4515
4515
|
return {};
|
|
4516
|
-
const $ = Zt(n), m = Zt(l) === l,
|
|
4517
|
-
!p && w !== "none" && P.push(...R5(l,
|
|
4516
|
+
const $ = Zt(n), m = Zt(l) === l, y = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), P = p || (m || !_ ? [Fa(l)] : B5(l));
|
|
4517
|
+
!p && w !== "none" && P.push(...R5(l, _, w, y));
|
|
4518
4518
|
const I = [l, ...P], L = await Jn(e, g), F = [];
|
|
4519
4519
|
let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4520
4520
|
if (u && F.push(L[$]), c) {
|
|
4521
|
-
const j = D5(n, i,
|
|
4521
|
+
const j = D5(n, i, y);
|
|
4522
4522
|
F.push(L[j[0]], L[j[1]]);
|
|
4523
4523
|
}
|
|
4524
4524
|
if (z = [...z, {
|
|
@@ -4578,25 +4578,25 @@ const Z5 = function(t) {
|
|
|
4578
4578
|
width: p,
|
|
4579
4579
|
height: h
|
|
4580
4580
|
} = s.floating;
|
|
4581
|
-
let w,
|
|
4582
|
-
d === "top" || d === "bottom" ? (w = d,
|
|
4583
|
-
const g = h - r[w], $ = p - r[
|
|
4584
|
-
let
|
|
4581
|
+
let w, _;
|
|
4582
|
+
d === "top" || d === "bottom" ? (w = d, _ = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, w = u === "end" ? "top" : "bottom");
|
|
4583
|
+
const g = h - r[w], $ = p - r[_], m = !e.middlewareData.shift;
|
|
4584
|
+
let y = g, P = $;
|
|
4585
4585
|
if (c) {
|
|
4586
4586
|
const L = p - r.left - r.right;
|
|
4587
4587
|
P = u || m ? da($, L) : L;
|
|
4588
4588
|
} else {
|
|
4589
4589
|
const L = h - r.top - r.bottom;
|
|
4590
|
-
|
|
4590
|
+
y = u || m ? da(g, L) : L;
|
|
4591
4591
|
}
|
|
4592
4592
|
if (m && !u) {
|
|
4593
4593
|
const L = He(r.left, 0), F = He(r.right, 0), z = He(r.top, 0), K = He(r.bottom, 0);
|
|
4594
|
-
c ? P = p - 2 * (L !== 0 || F !== 0 ? L + F : He(r.left, r.right)) :
|
|
4594
|
+
c ? P = p - 2 * (L !== 0 || F !== 0 ? L + F : He(r.left, r.right)) : y = h - 2 * (z !== 0 || K !== 0 ? z + K : He(r.top, r.bottom));
|
|
4595
4595
|
}
|
|
4596
4596
|
await i({
|
|
4597
4597
|
...e,
|
|
4598
4598
|
availableWidth: P,
|
|
4599
|
-
availableHeight:
|
|
4599
|
+
availableHeight: y
|
|
4600
4600
|
});
|
|
4601
4601
|
const I = await n.getDimensions(o.floating);
|
|
4602
4602
|
return p !== I.width || h !== I.height ? {
|
|
@@ -4745,8 +4745,8 @@ function Ot(t, e, a, s) {
|
|
|
4745
4745
|
const p = Te(o), h = s && et(s) ? Te(s) : s;
|
|
4746
4746
|
let w = p.frameElement;
|
|
4747
4747
|
for (; w && s && h !== p; ) {
|
|
4748
|
-
const
|
|
4749
|
-
r *=
|
|
4748
|
+
const _ = Nt(w), g = w.getBoundingClientRect(), $ = je(w), m = g.left + (w.clientLeft + parseFloat($.paddingLeft)) * _.x, y = g.top + (w.clientTop + parseFloat($.paddingTop)) * _.y;
|
|
4749
|
+
r *= _.x, d *= _.y, u *= _.x, c *= _.y, r += m, d += y, w = Te(w).frameElement;
|
|
4750
4750
|
}
|
|
4751
4751
|
}
|
|
4752
4752
|
return Za({
|
|
@@ -4957,21 +4957,21 @@ function l7(t, e) {
|
|
|
4957
4957
|
} = t.getBoundingClientRect();
|
|
4958
4958
|
if (l || e(), !c || !p)
|
|
4959
4959
|
return;
|
|
4960
|
-
const h = Pa(u), w = Pa(n.clientWidth - (d + c)),
|
|
4961
|
-
rootMargin: -h + "px " + -w + "px " + -
|
|
4960
|
+
const h = Pa(u), w = Pa(n.clientWidth - (d + c)), _ = Pa(n.clientHeight - (u + p)), g = Pa(d), m = {
|
|
4961
|
+
rootMargin: -h + "px " + -w + "px " + -_ + "px " + -g + "px",
|
|
4962
4962
|
threshold: He(0, da(1, r)) || 1
|
|
4963
4963
|
};
|
|
4964
|
-
let
|
|
4964
|
+
let y = !0;
|
|
4965
4965
|
function P(I) {
|
|
4966
4966
|
const L = I[0].intersectionRatio;
|
|
4967
4967
|
if (L !== r) {
|
|
4968
|
-
if (!
|
|
4968
|
+
if (!y)
|
|
4969
4969
|
return i();
|
|
4970
4970
|
L ? i(!1, L) : s = setTimeout(() => {
|
|
4971
4971
|
i(!1, 1e-7);
|
|
4972
4972
|
}, 100);
|
|
4973
4973
|
}
|
|
4974
|
-
|
|
4974
|
+
y = !1;
|
|
4975
4975
|
}
|
|
4976
4976
|
try {
|
|
4977
4977
|
a = new IntersectionObserver(P, {
|
|
@@ -5008,11 +5008,11 @@ function r7(t, e, a, s) {
|
|
|
5008
5008
|
h && h.observe(e);
|
|
5009
5009
|
})), a();
|
|
5010
5010
|
}), d && !r && h.observe(d), h.observe(e));
|
|
5011
|
-
let w,
|
|
5011
|
+
let w, _ = r ? Ot(t) : null;
|
|
5012
5012
|
r && g();
|
|
5013
5013
|
function g() {
|
|
5014
5014
|
const $ = Ot(t);
|
|
5015
|
-
|
|
5015
|
+
_ && ($.x !== _.x || $.y !== _.y || $.width !== _.width || $.height !== _.height) && a(), _ = $, w = requestAnimationFrame(g);
|
|
5016
5016
|
}
|
|
5017
5017
|
return a(), () => {
|
|
5018
5018
|
u.forEach(($) => {
|
|
@@ -5135,8 +5135,8 @@ function v7(t, e, a) {
|
|
|
5135
5135
|
}, c = (p) => {
|
|
5136
5136
|
if (s && s.value) {
|
|
5137
5137
|
let w = (p.clipboardData || /* istanbul ignore next */
|
|
5138
|
-
window.clipboardData).getData("Text"),
|
|
5139
|
-
typeof
|
|
5138
|
+
window.clipboardData).getData("Text"), _ = s.value;
|
|
5139
|
+
typeof _ == "string" && (_ = new RegExp(_)), w.split("").every((g) => !!g.match(_)) || p.preventDefault();
|
|
5140
5140
|
}
|
|
5141
5141
|
e.emit("paste", p, n);
|
|
5142
5142
|
};
|
|
@@ -5188,11 +5188,11 @@ function g7(t, e, a) {
|
|
|
5188
5188
|
appendNewOption: p,
|
|
5189
5189
|
multipleLabel: h,
|
|
5190
5190
|
object: w,
|
|
5191
|
-
loading:
|
|
5191
|
+
loading: _,
|
|
5192
5192
|
delay: g,
|
|
5193
5193
|
resolveOnLoad: $,
|
|
5194
5194
|
minChars: m,
|
|
5195
|
-
filterResults:
|
|
5195
|
+
filterResults: y,
|
|
5196
5196
|
clearOnSearch: P,
|
|
5197
5197
|
clearOnSelect: I,
|
|
5198
5198
|
valueProp: L,
|
|
@@ -5286,7 +5286,7 @@ function g7(t, e, a) {
|
|
|
5286
5286
|
case "tags":
|
|
5287
5287
|
return [];
|
|
5288
5288
|
}
|
|
5289
|
-
}), wi = A(() =>
|
|
5289
|
+
}), wi = A(() => _.value || Ie.value), Ht = (S) => {
|
|
5290
5290
|
switch (typeof S != "object" && (S = Ke(S)), n.value) {
|
|
5291
5291
|
case "single":
|
|
5292
5292
|
ke(S);
|
|
@@ -5393,7 +5393,7 @@ function g7(t, e, a) {
|
|
|
5393
5393
|
(B) => x.value ? B.__VISIBLE__.length : B[E.value].length
|
|
5394
5394
|
) : S.filter((B) => x.value ? B.__VISIBLE__.length : !0), fs = (S, B = !0) => {
|
|
5395
5395
|
let ue = S;
|
|
5396
|
-
if (x.value &&
|
|
5396
|
+
if (x.value && y.value) {
|
|
5397
5397
|
let ge = oe.value;
|
|
5398
5398
|
ge || (ge = ($t, cn, X4) => wt.value.some((Hi) => {
|
|
5399
5399
|
let dn = ys(ka($t[Hi]), ae.value);
|
|
@@ -5524,7 +5524,7 @@ function C7(t, e, a) {
|
|
|
5524
5524
|
groupSelect: d,
|
|
5525
5525
|
disabledProp: u,
|
|
5526
5526
|
groupOptions: c
|
|
5527
|
-
} = Ee(t), p = a.fo, h = a.fg, w = a.handleOptionClick,
|
|
5527
|
+
} = Ee(t), p = a.fo, h = a.fg, w = a.handleOptionClick, _ = a.handleGroupClick, g = a.search, $ = a.pointer, m = a.setPointer, y = a.clearPointer, P = a.multiselect, I = a.isOpen, L = A(() => p.value.filter((H) => !H[u.value])), F = A(() => h.value.filter((H) => !H[u.value])), z = A(() => r.value !== "single" && d.value), K = A(() => $.value && $.value.group), J = A(() => ne($.value)), ae = A(() => {
|
|
5528
5528
|
const H = K.value ? $.value : (
|
|
5529
5529
|
/* istanbul ignore next */
|
|
5530
5530
|
ne($.value)
|
|
@@ -5543,7 +5543,7 @@ function C7(t, e, a) {
|
|
|
5543
5543
|
}), E = A(() => [...ae.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), T = A(() => [...G.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), k = (H) => $.value && (!H.group && $.value[s.value] === H[s.value] || H.group !== void 0 && $.value[i.value] === H[i.value]) ? !0 : void 0, R = () => {
|
|
5544
5544
|
m(L.value[0] || null);
|
|
5545
5545
|
}, b = () => {
|
|
5546
|
-
!$.value || $.value[u.value] === !0 || (K.value ?
|
|
5546
|
+
!$.value || $.value[u.value] === !0 || (K.value ? _($.value) : w($.value));
|
|
5547
5547
|
}, V = () => {
|
|
5548
5548
|
if ($.value === null)
|
|
5549
5549
|
m((l.value && z.value ? F.value[0].__CREATE__ ? L.value[0] : F.value[0] : L.value[0]) || null);
|
|
@@ -5581,7 +5581,7 @@ function C7(t, e, a) {
|
|
|
5581
5581
|
l.value && (x = K.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > x.clientHeight + x.scrollTop && (x.scrollTop = H.offsetTop + H.offsetHeight - x.clientHeight), H.offsetTop < x.scrollTop && (x.scrollTop = H.offsetTop);
|
|
5582
5582
|
};
|
|
5583
5583
|
return ce(g, (H) => {
|
|
5584
|
-
o.value && (H.length && n.value ? R() :
|
|
5584
|
+
o.value && (H.length && n.value ? R() : y());
|
|
5585
5585
|
}), ce(I, (H) => {
|
|
5586
5586
|
if (H) {
|
|
5587
5587
|
let x = P.value.querySelectorAll("[data-selected]")[0];
|
|
@@ -5961,12 +5961,12 @@ function K7(t, e) {
|
|
|
5961
5961
|
}
|
|
5962
5962
|
function qs(t, e) {
|
|
5963
5963
|
e === void 0 && (e = {});
|
|
5964
|
-
var a = e, s = a.placement, n = s === void 0 ? t.placement : s, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? S7 : l, d = a.rootBoundary, u = d === void 0 ? ci : d, c = a.elementContext, p = c === void 0 ? ia : c, h = a.altBoundary, w = h === void 0 ? !1 : h,
|
|
5964
|
+
var a = e, s = a.placement, n = s === void 0 ? t.placement : s, o = a.strategy, i = o === void 0 ? t.strategy : o, l = a.boundary, r = l === void 0 ? S7 : l, d = a.rootBoundary, u = d === void 0 ? ci : d, c = a.elementContext, p = c === void 0 ? ia : c, h = a.altBoundary, w = h === void 0 ? !1 : h, _ = a.padding, g = _ === void 0 ? 0 : _, $ = x7(typeof g != "number" ? g : K7(g, is)), m = p === ia ? A7 : ia, y = t.rects.popper, P = t.elements[w ? m : p], I = Y7(Et(P) ? P : P.contextElement || _t(t.elements.popper), r, u, i), L = qt(t.elements.reference), F = pi({
|
|
5965
5965
|
reference: L,
|
|
5966
|
-
element:
|
|
5966
|
+
element: y,
|
|
5967
5967
|
strategy: "absolute",
|
|
5968
5968
|
placement: n
|
|
5969
|
-
}), z = Ss(Object.assign({},
|
|
5969
|
+
}), z = Ss(Object.assign({}, y, F)), K = p === ia ? z : L, J = {
|
|
5970
5970
|
top: I.top - K.top + $.top,
|
|
5971
5971
|
bottom: K.bottom - I.bottom + $.bottom,
|
|
5972
5972
|
left: I.left - K.left + $.left,
|
|
@@ -6013,12 +6013,12 @@ function G7(t) {
|
|
|
6013
6013
|
state: u,
|
|
6014
6014
|
setOptions: function($) {
|
|
6015
6015
|
var m = typeof $ == "function" ? $(u.options) : $;
|
|
6016
|
-
|
|
6016
|
+
_(), u.options = Object.assign({}, o, u.options, m), u.scrollParents = {
|
|
6017
6017
|
reference: Et(l) ? oa(l) : l.contextElement ? oa(l.contextElement) : [],
|
|
6018
6018
|
popper: oa(r)
|
|
6019
6019
|
};
|
|
6020
|
-
var
|
|
6021
|
-
return u.orderedModifiers =
|
|
6020
|
+
var y = R7(U7([].concat(s, u.options.modifiers)));
|
|
6021
|
+
return u.orderedModifiers = y.filter(function(P) {
|
|
6022
6022
|
return P.enabled;
|
|
6023
6023
|
}), w(), h.update();
|
|
6024
6024
|
},
|
|
@@ -6029,11 +6029,11 @@ function G7(t) {
|
|
|
6029
6029
|
// prefer the async Popper#update method
|
|
6030
6030
|
forceUpdate: function() {
|
|
6031
6031
|
if (!p) {
|
|
6032
|
-
var $ = u.elements, m = $.reference,
|
|
6033
|
-
if (Mn(m,
|
|
6032
|
+
var $ = u.elements, m = $.reference, y = $.popper;
|
|
6033
|
+
if (Mn(m, y)) {
|
|
6034
6034
|
u.rects = {
|
|
6035
|
-
reference: w7(m, ns(
|
|
6036
|
-
popper: ri(
|
|
6035
|
+
reference: w7(m, ns(y), u.options.strategy === "fixed"),
|
|
6036
|
+
popper: ri(y)
|
|
6037
6037
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(J) {
|
|
6038
6038
|
return u.modifiersData[J.name] = Object.assign({}, J.data);
|
|
6039
6039
|
});
|
|
@@ -6061,7 +6061,7 @@ function G7(t) {
|
|
|
6061
6061
|
});
|
|
6062
6062
|
}),
|
|
6063
6063
|
destroy: function() {
|
|
6064
|
-
|
|
6064
|
+
_(), p = !0;
|
|
6065
6065
|
}
|
|
6066
6066
|
};
|
|
6067
6067
|
if (!Mn(l, r))
|
|
@@ -6071,20 +6071,20 @@ function G7(t) {
|
|
|
6071
6071
|
});
|
|
6072
6072
|
function w() {
|
|
6073
6073
|
u.orderedModifiers.forEach(function(g) {
|
|
6074
|
-
var $ = g.name, m = g.options,
|
|
6074
|
+
var $ = g.name, m = g.options, y = m === void 0 ? {} : m, P = g.effect;
|
|
6075
6075
|
if (typeof P == "function") {
|
|
6076
6076
|
var I = P({
|
|
6077
6077
|
state: u,
|
|
6078
6078
|
name: $,
|
|
6079
6079
|
instance: h,
|
|
6080
|
-
options:
|
|
6080
|
+
options: y
|
|
6081
6081
|
}), L = function() {
|
|
6082
6082
|
};
|
|
6083
6083
|
c.push(I || L);
|
|
6084
6084
|
}
|
|
6085
6085
|
});
|
|
6086
6086
|
}
|
|
6087
|
-
function
|
|
6087
|
+
function _() {
|
|
6088
6088
|
c.forEach(function(g) {
|
|
6089
6089
|
return g();
|
|
6090
6090
|
}), c = [];
|
|
@@ -6143,15 +6143,15 @@ function ap(t, e) {
|
|
|
6143
6143
|
};
|
|
6144
6144
|
}
|
|
6145
6145
|
function Tn(t) {
|
|
6146
|
-
var e, a = t.popper, s = t.popperRect, n = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, d = t.adaptive, u = t.roundOffsets, c = t.isFixed, p = i.x, h = p === void 0 ? 0 : p, w = i.y,
|
|
6146
|
+
var e, a = t.popper, s = t.popperRect, n = t.placement, o = t.variation, i = t.offsets, l = t.position, r = t.gpuAcceleration, d = t.adaptive, u = t.roundOffsets, c = t.isFixed, p = i.x, h = p === void 0 ? 0 : p, w = i.y, _ = w === void 0 ? 0 : w, g = typeof u == "function" ? u({
|
|
6147
6147
|
x: h,
|
|
6148
|
-
y
|
|
6148
|
+
y: _
|
|
6149
6149
|
}) : {
|
|
6150
6150
|
x: h,
|
|
6151
|
-
y
|
|
6151
|
+
y: _
|
|
6152
6152
|
};
|
|
6153
|
-
h = g.x,
|
|
6154
|
-
var $ = i.hasOwnProperty("x"), m = i.hasOwnProperty("y"),
|
|
6153
|
+
h = g.x, _ = g.y;
|
|
6154
|
+
var $ = i.hasOwnProperty("x"), m = i.hasOwnProperty("y"), y = Ge, P = Ne, I = window;
|
|
6155
6155
|
if (d) {
|
|
6156
6156
|
var L = ns(a), F = "clientHeight", z = "clientWidth";
|
|
6157
6157
|
if (L === Oe(a) && (L = _t(a), tt(L).position !== "static" && l === "absolute" && (F = "scrollHeight", z = "scrollWidth")), L = L, n === Ne || (n === Ge || n === ht) && o === va) {
|
|
@@ -6160,10 +6160,10 @@ function Tn(t) {
|
|
|
6160
6160
|
// $FlowFixMe[prop-missing]
|
|
6161
6161
|
L[F]
|
|
6162
6162
|
);
|
|
6163
|
-
|
|
6163
|
+
_ -= K - s.height, _ *= r ? 1 : -1;
|
|
6164
6164
|
}
|
|
6165
6165
|
if (n === Ge || (n === Ne || n === qe) && o === va) {
|
|
6166
|
-
|
|
6166
|
+
y = ht;
|
|
6167
6167
|
var J = c && L === I && I.visualViewport ? I.visualViewport.width : (
|
|
6168
6168
|
// $FlowFixMe[prop-missing]
|
|
6169
6169
|
L[z]
|
|
@@ -6175,16 +6175,16 @@ function Tn(t) {
|
|
|
6175
6175
|
position: l
|
|
6176
6176
|
}, d && tp), j = u === !0 ? ap({
|
|
6177
6177
|
x: h,
|
|
6178
|
-
y
|
|
6178
|
+
y: _
|
|
6179
6179
|
}, Oe(a)) : {
|
|
6180
6180
|
x: h,
|
|
6181
|
-
y
|
|
6181
|
+
y: _
|
|
6182
6182
|
};
|
|
6183
|
-
if (h = j.x,
|
|
6183
|
+
if (h = j.x, _ = j.y, r) {
|
|
6184
6184
|
var G;
|
|
6185
|
-
return Object.assign({}, ae, (G = {}, G[P] = m ? "0" : "", G[
|
|
6185
|
+
return Object.assign({}, ae, (G = {}, G[P] = m ? "0" : "", G[y] = $ ? "0" : "", G.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + _ + "px)" : "translate3d(" + h + "px, " + _ + "px, 0)", G));
|
|
6186
6186
|
}
|
|
6187
|
-
return Object.assign({}, ae, (e = {}, e[P] = m ?
|
|
6187
|
+
return Object.assign({}, ae, (e = {}, e[P] = m ? _ + "px" : "", e[y] = $ ? h + "px" : "", e.transform = "", e));
|
|
6188
6188
|
}
|
|
6189
6189
|
function sp(t) {
|
|
6190
6190
|
var e = t.state, a = t.options, s = a.gpuAcceleration, n = s === void 0 ? !0 : s, o = a.adaptive, i = o === void 0 ? !0 : o, l = a.roundOffsets, r = l === void 0 ? !0 : l, d = {
|
|
@@ -6271,14 +6271,14 @@ function dp(t, e, a) {
|
|
|
6271
6271
|
return s > a ? a : s;
|
|
6272
6272
|
}
|
|
6273
6273
|
function pp(t) {
|
|
6274
|
-
var e = t.state, a = t.options, s = t.name, n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, d = a.rootBoundary, u = a.altBoundary, c = a.padding, p = a.tether, h = p === void 0 ? !0 : p, w = a.tetherOffset,
|
|
6274
|
+
var e = t.state, a = t.options, s = t.name, n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !1 : i, r = a.boundary, d = a.rootBoundary, u = a.altBoundary, c = a.padding, p = a.tether, h = p === void 0 ? !0 : p, w = a.tetherOffset, _ = w === void 0 ? 0 : w, g = qs(e, {
|
|
6275
6275
|
boundary: r,
|
|
6276
6276
|
rootBoundary: d,
|
|
6277
6277
|
padding: c,
|
|
6278
6278
|
altBoundary: u
|
|
6279
|
-
}), $ = ct(e.placement), m = xt(e.placement),
|
|
6279
|
+
}), $ = ct(e.placement), m = xt(e.placement), y = !m, P = di($), I = cp(P), L = e.modifiersData.popperOffsets, F = e.rects.reference, z = e.rects.popper, K = typeof _ == "function" ? _(Object.assign({}, e.rects, {
|
|
6280
6280
|
placement: e.placement
|
|
6281
|
-
})) :
|
|
6281
|
+
})) : _, J = typeof K == "number" ? {
|
|
6282
6282
|
mainAxis: K,
|
|
6283
6283
|
altAxis: K
|
|
6284
6284
|
} : Object.assign({
|
|
@@ -6293,7 +6293,7 @@ function pp(t) {
|
|
|
6293
6293
|
var G, le = P === "y" ? Ne : Ge, se = P === "y" ? qe : ht, ee = P === "y" ? "height" : "width", E = L[P], T = E + g[le], k = E - g[se], R = h ? -z[ee] / 2 : 0, b = m === Yt ? F[ee] : z[ee], V = m === Yt ? -z[ee] : -F[ee], oe = e.elements.arrow, ne = h && oe ? ri(oe) : {
|
|
6294
6294
|
width: 0,
|
|
6295
6295
|
height: 0
|
|
6296
|
-
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vi(), H = Z[le], x = Z[se], he = Va(0, F[ee], ne[ee]), ke =
|
|
6296
|
+
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vi(), H = Z[le], x = Z[se], he = Va(0, F[ee], ne[ee]), ke = y ? F[ee] / 2 - R - he - H - J.mainAxis : b - he - H - J.mainAxis, Gt = y ? -F[ee] / 2 + R + he + x + J.mainAxis : V + he + x + J.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), st = Xt ? P === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - st, nt = E + Gt - $a, ka = Va(h ? Wa(T, rs) : T, E, h ? At(k, nt) : k);
|
|
6297
6297
|
L[P] = ka, j[P] = ka - E;
|
|
6298
6298
|
}
|
|
6299
6299
|
if (l) {
|
|
@@ -6337,16 +6337,16 @@ function mp(t, e) {
|
|
|
6337
6337
|
return d.indexOf(w) >= 0;
|
|
6338
6338
|
});
|
|
6339
6339
|
p.length === 0 && (p = c);
|
|
6340
|
-
var h = p.reduce(function(w,
|
|
6341
|
-
return w[
|
|
6342
|
-
placement:
|
|
6340
|
+
var h = p.reduce(function(w, _) {
|
|
6341
|
+
return w[_] = qs(t, {
|
|
6342
|
+
placement: _,
|
|
6343
6343
|
boundary: n,
|
|
6344
6344
|
rootBoundary: o,
|
|
6345
6345
|
padding: i
|
|
6346
|
-
})[ct(
|
|
6346
|
+
})[ct(_)], w;
|
|
6347
6347
|
}, {});
|
|
6348
|
-
return Object.keys(h).sort(function(w,
|
|
6349
|
-
return h[w] - h[
|
|
6348
|
+
return Object.keys(h).sort(function(w, _) {
|
|
6349
|
+
return h[w] - h[_];
|
|
6350
6350
|
});
|
|
6351
6351
|
}
|
|
6352
6352
|
function gp(t) {
|
|
@@ -6358,14 +6358,14 @@ function gp(t) {
|
|
|
6358
6358
|
function Cp(t) {
|
|
6359
6359
|
var e = t.state, a = t.options, s = t.name;
|
|
6360
6360
|
if (!e.modifiersData[s]._skip) {
|
|
6361
|
-
for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, d = a.padding, u = a.boundary, c = a.rootBoundary, p = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h,
|
|
6361
|
+
for (var n = a.mainAxis, o = n === void 0 ? !0 : n, i = a.altAxis, l = i === void 0 ? !0 : i, r = a.fallbackPlacements, d = a.padding, u = a.boundary, c = a.rootBoundary, p = a.altBoundary, h = a.flipVariations, w = h === void 0 ? !0 : h, _ = a.allowedAutoPlacements, g = e.options.placement, $ = ct(g), m = $ === g, y = r || (m || !w ? [Da(g)] : gp(g)), P = [g].concat(y).reduce(function(ne, Z) {
|
|
6362
6362
|
return ne.concat(ct(Z) === zs ? mp(e, {
|
|
6363
6363
|
placement: Z,
|
|
6364
6364
|
boundary: u,
|
|
6365
6365
|
rootBoundary: c,
|
|
6366
6366
|
padding: d,
|
|
6367
6367
|
flipVariations: w,
|
|
6368
|
-
allowedAutoPlacements:
|
|
6368
|
+
allowedAutoPlacements: _
|
|
6369
6369
|
}) : Z);
|
|
6370
6370
|
}, []), I = e.rects.reference, L = e.rects.popper, F = /* @__PURE__ */ new Map(), z = !0, K = P[0], J = 0; J < P.length; J++) {
|
|
6371
6371
|
var ae = P[J], j = ct(ae), G = xt(ae) === Yt, le = [Ne, qe].indexOf(j) >= 0, se = le ? "width" : "height", ee = qs(e, {
|
|
@@ -6415,7 +6415,7 @@ var _p = {
|
|
|
6415
6415
|
}
|
|
6416
6416
|
};
|
|
6417
6417
|
function yp(t, e, a) {
|
|
6418
|
-
const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, d = a.dropdown, u = Y(!1), c = Y(null), p = Y(null), h = A(() => n.value || o.value), w = A(() => i.value === "top" && p.value === "bottom" || i.value === "bottom" && p.value !== "top" ? "bottom" : "top"),
|
|
6418
|
+
const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, d = a.dropdown, u = Y(!1), c = Y(null), p = Y(null), h = A(() => n.value || o.value), w = A(() => i.value === "top" && p.value === "bottom" || i.value === "bottom" && p.value !== "top" ? "bottom" : "top"), _ = () => {
|
|
6419
6419
|
u.value || s.value || (u.value = !0, e.emit("open", l), h.value && Me(() => {
|
|
6420
6420
|
$();
|
|
6421
6421
|
}));
|
|
@@ -6424,7 +6424,7 @@ function yp(t, e, a) {
|
|
|
6424
6424
|
}, $ = () => {
|
|
6425
6425
|
if (!c.value)
|
|
6426
6426
|
return;
|
|
6427
|
-
let
|
|
6427
|
+
let y = parseInt(window.getComputedStyle(d.value).borderTopWidth.replace("px", "")), P = parseInt(window.getComputedStyle(d.value).borderBottomWidth.replace("px", ""));
|
|
6428
6428
|
c.value.setOptions((I) => ({
|
|
6429
6429
|
...I,
|
|
6430
6430
|
modifiers: [
|
|
@@ -6432,16 +6432,16 @@ function yp(t, e, a) {
|
|
|
6432
6432
|
{
|
|
6433
6433
|
name: "offset",
|
|
6434
6434
|
options: {
|
|
6435
|
-
offset: [0, (w.value === "top" ?
|
|
6435
|
+
offset: [0, (w.value === "top" ? y : P) * -1]
|
|
6436
6436
|
}
|
|
6437
6437
|
}
|
|
6438
6438
|
]
|
|
6439
6439
|
})), c.value.update();
|
|
6440
|
-
}, m = (
|
|
6441
|
-
for (;
|
|
6442
|
-
if (getComputedStyle(
|
|
6440
|
+
}, m = (y) => {
|
|
6441
|
+
for (; y && y !== document.body; ) {
|
|
6442
|
+
if (getComputedStyle(y).position === "fixed")
|
|
6443
6443
|
return !0;
|
|
6444
|
-
|
|
6444
|
+
y = y.parentElement;
|
|
6445
6445
|
}
|
|
6446
6446
|
return !1;
|
|
6447
6447
|
};
|
|
@@ -6460,19 +6460,19 @@ function yp(t, e, a) {
|
|
|
6460
6460
|
enabled: !0,
|
|
6461
6461
|
phase: "beforeWrite",
|
|
6462
6462
|
requires: ["computeStyles"],
|
|
6463
|
-
fn: ({ state:
|
|
6464
|
-
|
|
6463
|
+
fn: ({ state: y }) => {
|
|
6464
|
+
y.styles.popper.width = `${y.rects.reference.width}px`;
|
|
6465
6465
|
},
|
|
6466
|
-
effect: ({ state:
|
|
6467
|
-
|
|
6466
|
+
effect: ({ state: y }) => {
|
|
6467
|
+
y.elements.popper.style.width = `${y.elements.reference.offsetWidth}px`;
|
|
6468
6468
|
}
|
|
6469
6469
|
},
|
|
6470
6470
|
{
|
|
6471
6471
|
name: "toggleClass",
|
|
6472
6472
|
enabled: !0,
|
|
6473
6473
|
phase: "write",
|
|
6474
|
-
fn({ state:
|
|
6475
|
-
p.value =
|
|
6474
|
+
fn({ state: y }) {
|
|
6475
|
+
p.value = y.placement;
|
|
6476
6476
|
}
|
|
6477
6477
|
}
|
|
6478
6478
|
]
|
|
@@ -6482,44 +6482,44 @@ function yp(t, e, a) {
|
|
|
6482
6482
|
}), {
|
|
6483
6483
|
popper: c,
|
|
6484
6484
|
isOpen: u,
|
|
6485
|
-
open:
|
|
6485
|
+
open: _,
|
|
6486
6486
|
close: g,
|
|
6487
6487
|
placement: w,
|
|
6488
6488
|
updatePopper: $
|
|
6489
6489
|
};
|
|
6490
6490
|
}
|
|
6491
6491
|
function bp(t, e, a) {
|
|
6492
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, d = a.clearSearch, u = a.isOpen, c = a.wrapper, p = a.tags, h = Y(!1), w = Y(!1),
|
|
6492
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, d = a.clearSearch, u = a.isOpen, c = a.wrapper, p = a.tags, h = Y(!1), w = Y(!1), _ = A(() => s.value || n.value ? -1 : 0), g = () => {
|
|
6493
6493
|
s.value && i.value.blur(), c.value.blur();
|
|
6494
6494
|
}, $ = () => {
|
|
6495
6495
|
s.value && !n.value && i.value.focus();
|
|
6496
6496
|
}, m = (z = !0) => {
|
|
6497
6497
|
n.value || (h.value = !0, z && l());
|
|
6498
|
-
},
|
|
6498
|
+
}, y = () => {
|
|
6499
6499
|
h.value = !1, setTimeout(() => {
|
|
6500
6500
|
h.value || (r(), o.value && d());
|
|
6501
6501
|
}, 1);
|
|
6502
6502
|
};
|
|
6503
6503
|
return {
|
|
6504
|
-
tabindex:
|
|
6504
|
+
tabindex: _,
|
|
6505
6505
|
isActive: h,
|
|
6506
6506
|
mouseClicked: w,
|
|
6507
6507
|
blur: g,
|
|
6508
6508
|
focus: $,
|
|
6509
6509
|
activate: m,
|
|
6510
|
-
deactivate:
|
|
6510
|
+
deactivate: y,
|
|
6511
6511
|
handleFocusIn: (z) => {
|
|
6512
6512
|
z.target.closest("[data-tags]") && z.target.nodeName !== "INPUT" || z.target.closest("[data-clear]") || m(w.value);
|
|
6513
6513
|
},
|
|
6514
6514
|
handleFocusOut: () => {
|
|
6515
|
-
|
|
6515
|
+
y();
|
|
6516
6516
|
},
|
|
6517
6517
|
handleCaretClick: () => {
|
|
6518
|
-
|
|
6518
|
+
y(), g();
|
|
6519
6519
|
},
|
|
6520
6520
|
handleMousedown: (z) => {
|
|
6521
6521
|
w.value = !0, u.value && (z.target.isEqualNode(c.value) || z.target.isEqualNode(p.value)) ? setTimeout(() => {
|
|
6522
|
-
|
|
6522
|
+
y();
|
|
6523
6523
|
}, 0) : !u.value && (document.activeElement.isEqualNode(c.value) || document.activeElement.isEqualNode(i.value)) && m(), setTimeout(() => {
|
|
6524
6524
|
w.value = !1;
|
|
6525
6525
|
}, 0);
|
|
@@ -6539,8 +6539,8 @@ function wp(t, e, a) {
|
|
|
6539
6539
|
createTag: c,
|
|
6540
6540
|
createOption: p,
|
|
6541
6541
|
reverse: h
|
|
6542
|
-
} = Ee(t), w = Lt().proxy,
|
|
6543
|
-
s.value === "tags" && !l.value && le.value && i.value && !d.value &&
|
|
6542
|
+
} = Ee(t), w = Lt().proxy, _ = a.iv, g = a.update, $ = a.deselect, m = a.search, y = a.setPointer, P = a.selectPointer, I = a.backwardPointer, L = a.forwardPointer, F = a.multiselect, z = a.wrapper, K = a.tags, J = a.isOpen, ae = a.open, j = a.blur, G = a.fo, le = A(() => c.value || p.value || !1), se = A(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ee = () => {
|
|
6543
|
+
s.value === "tags" && !l.value && le.value && i.value && !d.value && y(G.value[G.value.map((k) => k[r.value]).indexOf(m.value)]);
|
|
6544
6544
|
};
|
|
6545
6545
|
return {
|
|
6546
6546
|
handleKeydown: (k) => {
|
|
@@ -6548,16 +6548,16 @@ function wp(t, e, a) {
|
|
|
6548
6548
|
let R, b;
|
|
6549
6549
|
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(k.key) !== -1 && s.value === "tags" && (R = [...F.value.querySelectorAll("[data-tags] > *")].filter((V) => V !== K.value), b = R.findIndex((V) => V === document.activeElement)), k.key) {
|
|
6550
6550
|
case "Backspace":
|
|
6551
|
-
if (s.value === "single" || i.value && [null, ""].indexOf(m.value) === -1 ||
|
|
6551
|
+
if (s.value === "single" || i.value && [null, ""].indexOf(m.value) === -1 || _.value.length === 0)
|
|
6552
6552
|
return;
|
|
6553
|
-
let V =
|
|
6553
|
+
let V = _.value.filter((oe) => !oe.disabled && oe.remove !== !1);
|
|
6554
6554
|
V.length && $(V[V.length - 1]);
|
|
6555
6555
|
break;
|
|
6556
6556
|
case "Enter":
|
|
6557
6557
|
if (k.preventDefault(), k.keyCode === 229)
|
|
6558
6558
|
return;
|
|
6559
6559
|
if (b !== -1 && b !== void 0) {
|
|
6560
|
-
g([...
|
|
6560
|
+
g([..._.value].filter((oe, ne) => ne !== b)), b === R.length - 1 && (R.length - 1 ? R[R.length - 2].focus() : i.value ? K.value.querySelector("input").focus() : z.value.focus());
|
|
6561
6561
|
return;
|
|
6562
6562
|
}
|
|
6563
6563
|
if (se.value.indexOf("enter") === -1 && le.value)
|
|
@@ -6596,12 +6596,12 @@ function wp(t, e, a) {
|
|
|
6596
6596
|
J.value || ae(), L();
|
|
6597
6597
|
break;
|
|
6598
6598
|
case "ArrowLeft":
|
|
6599
|
-
if (i.value && K.value && K.value.querySelector("input").selectionStart || k.shiftKey || s.value !== "tags" || !
|
|
6599
|
+
if (i.value && K.value && K.value.querySelector("input").selectionStart || k.shiftKey || s.value !== "tags" || !_.value || !_.value.length)
|
|
6600
6600
|
return;
|
|
6601
6601
|
k.preventDefault(), b === -1 ? R[R.length - 1].focus() : b > 0 && R[b - 1].focus();
|
|
6602
6602
|
break;
|
|
6603
6603
|
case "ArrowRight":
|
|
6604
|
-
if (b === -1 || k.shiftKey || s.value !== "tags" || !
|
|
6604
|
+
if (b === -1 || k.shiftKey || s.value !== "tags" || !_.value || !_.value.length)
|
|
6605
6605
|
return;
|
|
6606
6606
|
k.preventDefault(), R.length > b + 1 ? R[b + 1].focus() : i.value ? K.value.querySelector("input").focus() : i.value || z.value.focus();
|
|
6607
6607
|
break;
|
|
@@ -6619,7 +6619,7 @@ function $p(t, e, a) {
|
|
|
6619
6619
|
disabled: n,
|
|
6620
6620
|
showOptions: o,
|
|
6621
6621
|
breakTags: i
|
|
6622
|
-
} = Ee(t), l = a.isOpen, r = a.isPointed, d = a.isSelected, u = a.isDisabled, c = a.isActive, p = a.canPointGroups, h = a.resolving, w = a.fo,
|
|
6622
|
+
} = Ee(t), l = a.isOpen, r = a.isPointed, d = a.isSelected, u = a.isDisabled, c = a.isActive, p = a.canPointGroups, h = a.resolving, w = a.fo, _ = a.placement, g = A(() => ({
|
|
6623
6623
|
container: "multiselect",
|
|
6624
6624
|
containerDisabled: "is-disabled",
|
|
6625
6625
|
containerOpen: "is-open",
|
|
@@ -6677,47 +6677,47 @@ function $p(t, e, a) {
|
|
|
6677
6677
|
})), $ = A(() => !!(l.value && o.value && (!h.value || h.value && w.value.length)));
|
|
6678
6678
|
return {
|
|
6679
6679
|
classList: A(() => {
|
|
6680
|
-
const
|
|
6680
|
+
const y = g.value;
|
|
6681
6681
|
return {
|
|
6682
|
-
container: [
|
|
6683
|
-
wrapper:
|
|
6684
|
-
spacer:
|
|
6685
|
-
singleLabel:
|
|
6686
|
-
singleLabelText:
|
|
6687
|
-
multipleLabel:
|
|
6688
|
-
search:
|
|
6689
|
-
tags:
|
|
6690
|
-
tag: [
|
|
6691
|
-
tagWrapper: [
|
|
6692
|
-
tagDisabled:
|
|
6693
|
-
tagRemove:
|
|
6694
|
-
tagRemoveIcon:
|
|
6695
|
-
tagsSearchWrapper:
|
|
6696
|
-
tagsSearch:
|
|
6697
|
-
tagsSearchCopy:
|
|
6698
|
-
placeholder:
|
|
6699
|
-
caret: [
|
|
6700
|
-
clear:
|
|
6701
|
-
clearIcon:
|
|
6702
|
-
spinner:
|
|
6703
|
-
inifinite:
|
|
6704
|
-
inifiniteSpinner:
|
|
6705
|
-
dropdown: [
|
|
6706
|
-
options: [
|
|
6707
|
-
group:
|
|
6682
|
+
container: [y.container].concat(n.value ? y.containerDisabled : []).concat($.value && _.value === "top" ? y.containerOpenTop : []).concat($.value && _.value !== "top" ? y.containerOpen : []).concat(c.value ? y.containerActive : []),
|
|
6683
|
+
wrapper: y.wrapper,
|
|
6684
|
+
spacer: y.spacer,
|
|
6685
|
+
singleLabel: y.singleLabel,
|
|
6686
|
+
singleLabelText: y.singleLabelText,
|
|
6687
|
+
multipleLabel: y.multipleLabel,
|
|
6688
|
+
search: y.search,
|
|
6689
|
+
tags: y.tags,
|
|
6690
|
+
tag: [y.tag].concat(n.value ? y.tagDisabled : []),
|
|
6691
|
+
tagWrapper: [y.tagWrapper, i.value ? y.tagWrapperBreak : null],
|
|
6692
|
+
tagDisabled: y.tagDisabled,
|
|
6693
|
+
tagRemove: y.tagRemove,
|
|
6694
|
+
tagRemoveIcon: y.tagRemoveIcon,
|
|
6695
|
+
tagsSearchWrapper: y.tagsSearchWrapper,
|
|
6696
|
+
tagsSearch: y.tagsSearch,
|
|
6697
|
+
tagsSearchCopy: y.tagsSearchCopy,
|
|
6698
|
+
placeholder: y.placeholder,
|
|
6699
|
+
caret: [y.caret].concat(l.value ? y.caretOpen : []),
|
|
6700
|
+
clear: y.clear,
|
|
6701
|
+
clearIcon: y.clearIcon,
|
|
6702
|
+
spinner: y.spinner,
|
|
6703
|
+
inifinite: y.inifinite,
|
|
6704
|
+
inifiniteSpinner: y.inifiniteSpinner,
|
|
6705
|
+
dropdown: [y.dropdown].concat(_.value === "top" ? y.dropdownTop : []).concat(!l.value || !o.value || !$.value ? y.dropdownHidden : []),
|
|
6706
|
+
options: [y.options].concat(_.value === "top" ? y.optionsTop : []),
|
|
6707
|
+
group: y.group,
|
|
6708
6708
|
groupLabel: (P) => {
|
|
6709
|
-
let I = [
|
|
6710
|
-
return r(P) ? I.push(d(P) ?
|
|
6709
|
+
let I = [y.groupLabel];
|
|
6710
|
+
return r(P) ? I.push(d(P) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : d(P) && p.value ? I.push(u(P) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : u(P) && I.push(y.groupLabelDisabled), p.value && I.push(y.groupLabelPointable), I;
|
|
6711
6711
|
},
|
|
6712
|
-
groupOptions:
|
|
6712
|
+
groupOptions: y.groupOptions,
|
|
6713
6713
|
option: (P, I) => {
|
|
6714
|
-
let L = [
|
|
6715
|
-
return r(P) ? L.push(d(P) ?
|
|
6714
|
+
let L = [y.option];
|
|
6715
|
+
return r(P) ? L.push(d(P) ? y.optionSelectedPointed : y.optionPointed) : d(P) ? L.push(u(P) ? y.optionSelectedDisabled : y.optionSelected) : (u(P) || I && u(I)) && L.push(y.optionDisabled), L;
|
|
6716
6716
|
},
|
|
6717
|
-
noOptions:
|
|
6718
|
-
noResults:
|
|
6719
|
-
assist:
|
|
6720
|
-
fakeInput:
|
|
6717
|
+
noOptions: y.noOptions,
|
|
6718
|
+
noResults: y.noResults,
|
|
6719
|
+
assist: y.assist,
|
|
6720
|
+
fakeInput: y.fakeInput
|
|
6721
6721
|
};
|
|
6722
6722
|
}),
|
|
6723
6723
|
showDropdown: $
|
|
@@ -6727,12 +6727,12 @@ function kp(t, e, a) {
|
|
|
6727
6727
|
const {
|
|
6728
6728
|
limit: s,
|
|
6729
6729
|
infinite: n
|
|
6730
|
-
} = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, d = a.eo, u = Y(null), c = Y(null), p = A(() => i.value < r.value.length), h = (
|
|
6731
|
-
const { isIntersecting: g, target: $ } =
|
|
6730
|
+
} = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, d = a.eo, u = Y(null), c = Y(null), p = A(() => i.value < r.value.length), h = (_) => {
|
|
6731
|
+
const { isIntersecting: g, target: $ } = _[0];
|
|
6732
6732
|
if (g) {
|
|
6733
|
-
const m = $.offsetParent,
|
|
6733
|
+
const m = $.offsetParent, y = m.scrollTop;
|
|
6734
6734
|
i.value += s.value == -1 ? 10 : s.value, Me(() => {
|
|
6735
|
-
m.scrollTop =
|
|
6735
|
+
m.scrollTop = y;
|
|
6736
6736
|
});
|
|
6737
6737
|
}
|
|
6738
6738
|
}, w = () => {
|
|
@@ -6761,7 +6761,7 @@ function Sp(t, e, a) {
|
|
|
6761
6761
|
groupLabel: r,
|
|
6762
6762
|
aria: d,
|
|
6763
6763
|
searchable: u
|
|
6764
|
-
} = Ee(t), c = a.pointer, p = a.iv, h = a.hasSelected, w = a.multipleLabelText,
|
|
6764
|
+
} = Ee(t), c = a.pointer, p = a.iv, h = a.hasSelected, w = a.multipleLabelText, _ = Y(null), g = A(() => {
|
|
6765
6765
|
let j = [];
|
|
6766
6766
|
return n && n.value && j.push(n.value), j.push("assist"), j.join("-");
|
|
6767
6767
|
}), $ = A(() => {
|
|
@@ -6771,7 +6771,7 @@ function Sp(t, e, a) {
|
|
|
6771
6771
|
let j = [];
|
|
6772
6772
|
if (n && n.value && j.push(n.value), c.value)
|
|
6773
6773
|
return j.push(c.value.group ? "multiselect-group" : "multiselect-option"), j.push(c.value.group ? c.value.index : c.value[o.value]), j.join("-");
|
|
6774
|
-
}),
|
|
6774
|
+
}), y = A(() => s.value), P = A(() => l.value !== "single"), I = A(() => {
|
|
6775
6775
|
let j = "";
|
|
6776
6776
|
return l.value === "single" && h.value && (j += p.value[i.value]), l.value === "multiple" && h.value && (j += w.value), l.value === "tags" && h.value && (j += p.value.map((G) => G[i.value]).join(", ")), j;
|
|
6777
6777
|
}), L = A(() => {
|
|
@@ -6793,14 +6793,14 @@ function Sp(t, e, a) {
|
|
|
6793
6793
|
return It(() => {
|
|
6794
6794
|
if (n && n.value && document && document.querySelector) {
|
|
6795
6795
|
let j = document.querySelector(`[for="${n.value}"]`);
|
|
6796
|
-
|
|
6796
|
+
_.value = j ? j.innerText : null;
|
|
6797
6797
|
}
|
|
6798
6798
|
}), {
|
|
6799
6799
|
arias: L,
|
|
6800
6800
|
ariaLabel: I,
|
|
6801
6801
|
ariaAssist: g,
|
|
6802
6802
|
ariaControls: $,
|
|
6803
|
-
ariaPlaceholder:
|
|
6803
|
+
ariaPlaceholder: y,
|
|
6804
6804
|
ariaMultiselectable: P,
|
|
6805
6805
|
ariaActiveDescendant: m,
|
|
6806
6806
|
ariaOptionId: F,
|
|
@@ -7827,7 +7827,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
|
|
|
7827
7827
|
return (c, p) => (v(), C("div", Qp, [
|
|
7828
7828
|
f("ul", Jp, [
|
|
7829
7829
|
(v(!0), C(fe, null, _e(c.tasks, (h) => {
|
|
7830
|
-
var w,
|
|
7830
|
+
var w, _;
|
|
7831
7831
|
return v(), C("li", {
|
|
7832
7832
|
key: h.id,
|
|
7833
7833
|
class: "ao-subtask"
|
|
@@ -7853,7 +7853,7 @@ const Qp = { class: "ao-tasks" }, Jp = { class: "ao-tasks__list" }, ev = ["id",
|
|
|
7853
7853
|
qa(". "),
|
|
7854
7854
|
!c.isTemplate && c.users ? (v(), D(Se, {
|
|
7855
7855
|
key: 1,
|
|
7856
|
-
value: (
|
|
7856
|
+
value: (_ = h.assignee) != null && _.id ? [h.assignee.id] : [],
|
|
7857
7857
|
options: n.value,
|
|
7858
7858
|
"close-on-select": !0,
|
|
7859
7859
|
searchable: !0,
|
|
@@ -8032,30 +8032,30 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
|
|
|
8032
8032
|
emits: ["edit", "remove"],
|
|
8033
8033
|
setup(t, { emit: e }) {
|
|
8034
8034
|
const a = t, s = A(() => {
|
|
8035
|
-
const
|
|
8036
|
-
return
|
|
8035
|
+
const _ = a.user;
|
|
8036
|
+
return _ ? `${_ == null ? void 0 : _.firstName} ${_ == null ? void 0 : _.lastName}` : null;
|
|
8037
8037
|
}), n = Y(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = Hn(n), d = A(() => {
|
|
8038
|
-
const
|
|
8038
|
+
const _ = a.editedAt && ca(a.editedAt), g = ca(a.createdAt), $ = /* @__PURE__ */ new Date(), m = _ ?? g;
|
|
8039
8039
|
return m && d3(m, $);
|
|
8040
|
-
}), u = A(() => o.value ? "textarea" : "p"), c = r(), p = l((
|
|
8041
|
-
e("edit",
|
|
8040
|
+
}), u = A(() => o.value ? "textarea" : "p"), c = r(), p = l((_) => {
|
|
8041
|
+
e("edit", _);
|
|
8042
8042
|
}), h = () => {
|
|
8043
8043
|
e("remove");
|
|
8044
8044
|
}, w = Y(2);
|
|
8045
8045
|
return Ni(() => {
|
|
8046
8046
|
Me(() => {
|
|
8047
|
-
var
|
|
8047
|
+
var _;
|
|
8048
8048
|
if (!o.value) {
|
|
8049
|
-
const g = (
|
|
8049
|
+
const g = (_ = n.value) == null ? void 0 : _.getClientRects().length;
|
|
8050
8050
|
w.value = g || 2;
|
|
8051
8051
|
}
|
|
8052
8052
|
});
|
|
8053
|
-
}), (
|
|
8053
|
+
}), (_, g) => {
|
|
8054
8054
|
var $;
|
|
8055
8055
|
return v(), C("li", hv, [
|
|
8056
8056
|
s.value ? (v(), D(Je, {
|
|
8057
8057
|
key: 0,
|
|
8058
|
-
"avatar-url": ($ =
|
|
8058
|
+
"avatar-url": ($ = _.user) == null ? void 0 : $.avatarUrl,
|
|
8059
8059
|
"user-name": s.value,
|
|
8060
8060
|
class: "ao-comment__avatar"
|
|
8061
8061
|
}, null, 8, ["avatar-url", "user-name"])) : O("", !0),
|
|
@@ -8066,7 +8066,7 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
|
|
|
8066
8066
|
ref_key: "commentContent",
|
|
8067
8067
|
ref: n,
|
|
8068
8068
|
class: "ao-comment__content",
|
|
8069
|
-
value: Q(o) ?
|
|
8069
|
+
value: Q(o) ? _.content : null,
|
|
8070
8070
|
rows: Q(o) ? w.value : null,
|
|
8071
8071
|
onKeyup: [
|
|
8072
8072
|
dt(Q(c), ["esc"]),
|
|
@@ -8074,13 +8074,13 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
|
|
|
8074
8074
|
]
|
|
8075
8075
|
}, {
|
|
8076
8076
|
default: N(() => [
|
|
8077
|
-
qa(W(
|
|
8077
|
+
qa(W(_.content), 1)
|
|
8078
8078
|
]),
|
|
8079
8079
|
_: 1
|
|
8080
8080
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
8081
8081
|
])
|
|
8082
8082
|
]),
|
|
8083
|
-
|
|
8083
|
+
_.isEditable ? (v(), C("div", _v, [
|
|
8084
8084
|
Q(o) ? (v(), C(fe, { key: 0 }, [
|
|
8085
8085
|
M(re, {
|
|
8086
8086
|
"icon-name": "CloseRounded",
|
|
@@ -8099,14 +8099,14 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
|
|
|
8099
8099
|
}, null, 8, ["onClick"])
|
|
8100
8100
|
], 64)) : (v(), C(fe, { key: 1 }, [
|
|
8101
8101
|
M(re, {
|
|
8102
|
-
label:
|
|
8102
|
+
label: _.$t("activity.comment.delete"),
|
|
8103
8103
|
size: "sm",
|
|
8104
8104
|
variant: "ghost",
|
|
8105
8105
|
color: "neutral",
|
|
8106
8106
|
onClick: h
|
|
8107
8107
|
}, null, 8, ["label"]),
|
|
8108
8108
|
M(re, {
|
|
8109
|
-
label:
|
|
8109
|
+
label: _.$t("activity.comment.edit"),
|
|
8110
8110
|
size: "sm",
|
|
8111
8111
|
variant: "ghost",
|
|
8112
8112
|
color: "neutral",
|
|
@@ -8201,7 +8201,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8201
8201
|
"edited-at": w.updatedAt,
|
|
8202
8202
|
"is-editable": w.author.id === c.userId,
|
|
8203
8203
|
class: "ao-comment",
|
|
8204
|
-
onEdit: (
|
|
8204
|
+
onEdit: (_) => d(w.id, _),
|
|
8205
8205
|
onRemove: () => u(w.id)
|
|
8206
8206
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
8207
8207
|
])) : O("", !0)
|
|
@@ -8350,7 +8350,7 @@ const As = /* @__PURE__ */ q({
|
|
|
8350
8350
|
...b,
|
|
8351
8351
|
disabled: (V = a.activity.blocking) == null ? void 0 : V.some((oe) => oe.id === b.value)
|
|
8352
8352
|
};
|
|
8353
|
-
})),
|
|
8353
|
+
})), _ = A({
|
|
8354
8354
|
get() {
|
|
8355
8355
|
var b;
|
|
8356
8356
|
return (b = a.activity.blocking) == null ? void 0 : b.map((V) => V.id);
|
|
@@ -8373,7 +8373,7 @@ const As = /* @__PURE__ */ q({
|
|
|
8373
8373
|
e("addSubtask", b);
|
|
8374
8374
|
}, m = (b) => {
|
|
8375
8375
|
e("updateSubtask", b);
|
|
8376
|
-
},
|
|
8376
|
+
}, y = (b) => {
|
|
8377
8377
|
e("deleteSubtask", b);
|
|
8378
8378
|
};
|
|
8379
8379
|
function P() {
|
|
@@ -8593,7 +8593,7 @@ const As = /* @__PURE__ */ q({
|
|
|
8593
8593
|
"is-template": b.isTemplate,
|
|
8594
8594
|
onAdd: $,
|
|
8595
8595
|
onUpdate: m,
|
|
8596
|
-
onDelete:
|
|
8596
|
+
onDelete: y
|
|
8597
8597
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
8598
8598
|
])
|
|
8599
8599
|
]),
|
|
@@ -8775,8 +8775,8 @@ const As = /* @__PURE__ */ q({
|
|
|
8775
8775
|
f("label", kf, [
|
|
8776
8776
|
f("span", Sf, W(b.$t("activity.blocking.label")), 1),
|
|
8777
8777
|
M(Se, {
|
|
8778
|
-
modelValue:
|
|
8779
|
-
"onUpdate:modelValue": V[9] || (V[9] = (H) =>
|
|
8778
|
+
modelValue: _.value,
|
|
8779
|
+
"onUpdate:modelValue": V[9] || (V[9] = (H) => _.value = H),
|
|
8780
8780
|
class: "ao-activity-details__multiselect",
|
|
8781
8781
|
mode: "tags",
|
|
8782
8782
|
"close-on-select": !1,
|
|
@@ -8847,9 +8847,9 @@ const Tf = /* @__PURE__ */ q({
|
|
|
8847
8847
|
[me.ACTIVITIES]: a.templateActivities,
|
|
8848
8848
|
[me.MILESTONES]: a.templateMilestones,
|
|
8849
8849
|
[me.PHASES]: a.templatePhases
|
|
8850
|
-
}[s.value]) == null ? void 0 : m.map((
|
|
8851
|
-
value:
|
|
8852
|
-
label:
|
|
8850
|
+
}[s.value]) == null ? void 0 : m.map((y) => ({
|
|
8851
|
+
value: y.id,
|
|
8852
|
+
label: y.name
|
|
8853
8853
|
}));
|
|
8854
8854
|
}), r = Rt(a.rule.comparator), d = A({
|
|
8855
8855
|
get() {
|
|
@@ -8872,7 +8872,7 @@ const Tf = /* @__PURE__ */ q({
|
|
|
8872
8872
|
set($) {
|
|
8873
8873
|
e("update:rule", { ...a.rule, duration: $ });
|
|
8874
8874
|
}
|
|
8875
|
-
}),
|
|
8875
|
+
}), _ = A({
|
|
8876
8876
|
get() {
|
|
8877
8877
|
return a.rule.durationUnit;
|
|
8878
8878
|
},
|
|
@@ -8884,26 +8884,26 @@ const Tf = /* @__PURE__ */ q({
|
|
|
8884
8884
|
default: N(() => [
|
|
8885
8885
|
M(Q(ut), {
|
|
8886
8886
|
modelValue: n.value,
|
|
8887
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
8887
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => n.value = y),
|
|
8888
8888
|
options: o.value
|
|
8889
8889
|
}, null, 8, ["modelValue", "options"]),
|
|
8890
8890
|
M(Q(ut), {
|
|
8891
8891
|
modelValue: i.value,
|
|
8892
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
8892
|
+
"onUpdate:modelValue": m[1] || (m[1] = (y) => i.value = y),
|
|
8893
8893
|
options: l.value
|
|
8894
8894
|
}, null, 8, ["modelValue", "options"]),
|
|
8895
8895
|
M(Q(ut), {
|
|
8896
8896
|
modelValue: p.value,
|
|
8897
|
-
"onUpdate:modelValue": m[2] || (m[2] = (
|
|
8897
|
+
"onUpdate:modelValue": m[2] || (m[2] = (y) => p.value = y),
|
|
8898
8898
|
options: h.value
|
|
8899
8899
|
}, null, 8, ["modelValue", "options"]),
|
|
8900
8900
|
M(Q(ut), {
|
|
8901
8901
|
modelValue: d.value,
|
|
8902
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
8902
|
+
"onUpdate:modelValue": m[3] || (m[3] = (y) => d.value = y),
|
|
8903
8903
|
options: u.value
|
|
8904
8904
|
}, null, 8, ["modelValue", "options"]),
|
|
8905
8905
|
De(f("input", {
|
|
8906
|
-
"onUpdate:modelValue": m[4] || (m[4] = (
|
|
8906
|
+
"onUpdate:modelValue": m[4] || (m[4] = (y) => w.value = y),
|
|
8907
8907
|
type: "number",
|
|
8908
8908
|
min: "0"
|
|
8909
8909
|
}, null, 512), [
|
|
@@ -8915,15 +8915,15 @@ const Tf = /* @__PURE__ */ q({
|
|
|
8915
8915
|
]
|
|
8916
8916
|
]),
|
|
8917
8917
|
M(Q(ut), {
|
|
8918
|
-
modelValue:
|
|
8919
|
-
"onUpdate:modelValue": m[5] || (m[5] = (
|
|
8918
|
+
modelValue: _.value,
|
|
8919
|
+
"onUpdate:modelValue": m[5] || (m[5] = (y) => _.value = y),
|
|
8920
8920
|
options: g.value
|
|
8921
8921
|
}, null, 8, ["modelValue", "options"]),
|
|
8922
8922
|
M(re, {
|
|
8923
8923
|
class: "ao-rule-line__remove",
|
|
8924
8924
|
"icon-name": "CloseRounded",
|
|
8925
8925
|
variant: "ghost",
|
|
8926
|
-
onClick: m[6] || (m[6] = (
|
|
8926
|
+
onClick: m[6] || (m[6] = (y) => $.$emit("close"))
|
|
8927
8927
|
})
|
|
8928
8928
|
]),
|
|
8929
8929
|
_: 1
|
|
@@ -9100,7 +9100,7 @@ const Lf = {
|
|
|
9100
9100
|
id: E
|
|
9101
9101
|
}
|
|
9102
9102
|
});
|
|
9103
|
-
},
|
|
9103
|
+
}, _ = (E, T) => {
|
|
9104
9104
|
e("updateItem", {
|
|
9105
9105
|
templateId: a.templateId,
|
|
9106
9106
|
id: E,
|
|
@@ -9136,7 +9136,7 @@ const Lf = {
|
|
|
9136
9136
|
id: E.id
|
|
9137
9137
|
}
|
|
9138
9138
|
});
|
|
9139
|
-
},
|
|
9139
|
+
}, y = (E) => {
|
|
9140
9140
|
const { id: T, ...k } = E;
|
|
9141
9141
|
e("updateItem", {
|
|
9142
9142
|
itemType: me.MILESTONES,
|
|
@@ -9276,7 +9276,7 @@ const Lf = {
|
|
|
9276
9276
|
params: { templateId: E.templateId, phaseId: Z.id }
|
|
9277
9277
|
}),
|
|
9278
9278
|
"onUpdate:title": (x) => {
|
|
9279
|
-
|
|
9279
|
+
_(Z.id, x);
|
|
9280
9280
|
},
|
|
9281
9281
|
onRemove: () => w(Z.id)
|
|
9282
9282
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
@@ -9301,7 +9301,7 @@ const Lf = {
|
|
|
9301
9301
|
phase: i.value,
|
|
9302
9302
|
"milestone-id": (k = l.value) == null ? void 0 : k.id,
|
|
9303
9303
|
onAddMilestone: $,
|
|
9304
|
-
onUpdateMilestone:
|
|
9304
|
+
onUpdateMilestone: y,
|
|
9305
9305
|
onUpdatePhase: g,
|
|
9306
9306
|
onRemoveMilestone: m
|
|
9307
9307
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : O("", !0)
|
|
@@ -9832,8 +9832,8 @@ var Js = q({
|
|
|
9832
9832
|
const { clientX: e, clientY: a } = t, { top: s, left: n, width: o, height: i } = this.suckerCanvas.getBoundingClientRect(), l = e - n, r = a - s, u = this.suckerCanvas.getContext("2d").getImageData(Math.min(l, o - 1), Math.min(r, i - 1), 1, 1);
|
|
9833
9833
|
let [c, p, h, w] = u.data;
|
|
9834
9834
|
w = parseFloat((w / 255).toFixed(2));
|
|
9835
|
-
const
|
|
9836
|
-
Object.assign(
|
|
9835
|
+
const _ = this.suckerPreview.style;
|
|
9836
|
+
Object.assign(_, {
|
|
9837
9837
|
position: "absolute",
|
|
9838
9838
|
left: e + 20 + "px",
|
|
9839
9839
|
top: a - 36 + "px",
|
|
@@ -9848,13 +9848,13 @@ var Js = q({
|
|
|
9848
9848
|
e >= this.suckerArea[0] && // @ts-ignore
|
|
9849
9849
|
a >= this.suckerArea[1] && // @ts-ignore
|
|
9850
9850
|
e <= this.suckerArea[2] && // @ts-ignore
|
|
9851
|
-
a <= this.suckerArea[3] ?
|
|
9851
|
+
a <= this.suckerArea[3] ? _.display = "" : _.display = "none";
|
|
9852
9852
|
},
|
|
9853
9853
|
suckColor(t) {
|
|
9854
9854
|
t && t.tagName !== "CANVAS" || (this.suckerPreview = document.createElement("div"), this.suckerPreview && document.body.appendChild(this.suckerPreview), document.addEventListener("mousemove", this.mousemoveHandler), document.addEventListener("mouseup", this.mousemoveHandler), t.addEventListener("click", (e) => {
|
|
9855
9855
|
const { clientX: a, clientY: s } = e, { top: n, left: o, width: i, height: l } = t.getBoundingClientRect(), r = a - o, d = s - n, c = t.getContext("2d").getImageData(Math.min(r, i - 1), Math.min(d, l - 1), 1, 1);
|
|
9856
|
-
let [p, h, w,
|
|
9857
|
-
|
|
9856
|
+
let [p, h, w, _] = c.data;
|
|
9857
|
+
_ = parseFloat((_ / 255).toFixed(2)), this.$emit("selectSucker", { r: p, g: h, b: w, a: _ });
|
|
9858
9858
|
}));
|
|
9859
9859
|
}
|
|
9860
9860
|
}
|
|
@@ -10373,40 +10373,47 @@ const ph = { class: "color-picker-wrapper" }, an = /* @__PURE__ */ q({
|
|
|
10373
10373
|
},
|
|
10374
10374
|
emits: ["update:color"],
|
|
10375
10375
|
setup(t, { emit: e }) {
|
|
10376
|
-
const a = t, s = Y(!1), n = Y(null), o = async () => {
|
|
10377
|
-
s.value = !0
|
|
10378
|
-
|
|
10376
|
+
const a = t, s = Y(!1), n = Y(null), o = Y("bottom"), i = async () => {
|
|
10377
|
+
s.value = !0;
|
|
10378
|
+
const u = n.value, c = u == null ? void 0 : u.parentElement;
|
|
10379
|
+
if (u && c) {
|
|
10380
|
+
const p = c.getBoundingClientRect(), h = u.offsetHeight, w = window.innerHeight - p.bottom, _ = p.top;
|
|
10381
|
+
o.value = w < h && _ > h ? "top" : "bottom";
|
|
10382
|
+
}
|
|
10383
|
+
await Me(), setTimeout(() => {
|
|
10384
|
+
window.addEventListener("click", l);
|
|
10379
10385
|
}, 0);
|
|
10380
|
-
},
|
|
10381
|
-
const
|
|
10382
|
-
n.value && !n.value.contains(
|
|
10386
|
+
}, l = (u) => {
|
|
10387
|
+
const c = u.target;
|
|
10388
|
+
n.value && !n.value.contains(c) && (s.value = !1, e("update:color", r.value), window.removeEventListener("click", l));
|
|
10383
10389
|
};
|
|
10384
10390
|
Ts(() => {
|
|
10385
|
-
window.removeEventListener("click",
|
|
10386
|
-
}), ce(() => a.color, (
|
|
10387
|
-
s.value || (
|
|
10391
|
+
window.removeEventListener("click", l);
|
|
10392
|
+
}), ce(() => a.color, (u) => {
|
|
10393
|
+
s.value || (r.value = u);
|
|
10388
10394
|
});
|
|
10389
|
-
const
|
|
10390
|
-
const { r:
|
|
10391
|
-
|
|
10395
|
+
const r = Y(a.color), d = (u) => {
|
|
10396
|
+
const { r: c, g: p, b: h, a: w } = u.rgba;
|
|
10397
|
+
r.value = `rgba(${c}, ${p}, ${h}, ${w})`;
|
|
10392
10398
|
};
|
|
10393
|
-
return (
|
|
10394
|
-
te(
|
|
10395
|
-
openPicker:
|
|
10396
|
-
bgColor:
|
|
10399
|
+
return (u, c) => (v(), C("div", ph, [
|
|
10400
|
+
te(u.$slots, "clickable", {
|
|
10401
|
+
openPicker: i,
|
|
10402
|
+
bgColor: u.color
|
|
10397
10403
|
}),
|
|
10398
10404
|
s.value ? (v(), C("div", {
|
|
10399
10405
|
key: 0,
|
|
10400
10406
|
ref_key: "pickerRef",
|
|
10401
|
-
ref: n
|
|
10407
|
+
ref: n,
|
|
10408
|
+
class: X(["color-picker", o.value])
|
|
10402
10409
|
}, [
|
|
10403
10410
|
M(Q(Ut), {
|
|
10404
|
-
class: "color-picker",
|
|
10411
|
+
class: "color-picker-box",
|
|
10405
10412
|
theme: "light",
|
|
10406
|
-
color:
|
|
10407
|
-
onChangeColor:
|
|
10413
|
+
color: u.color,
|
|
10414
|
+
onChangeColor: d
|
|
10408
10415
|
}, null, 8, ["color"])
|
|
10409
|
-
],
|
|
10416
|
+
], 2)) : O("", !0)
|
|
10410
10417
|
]));
|
|
10411
10418
|
}
|
|
10412
10419
|
});
|
|
@@ -10440,7 +10447,7 @@ const vh = { class: "ao-card-project-phase__header" }, fh = { class: "ao-card-pr
|
|
|
10440
10447
|
return (c = a.milestones) == null ? void 0 : c.reduce(
|
|
10441
10448
|
(p, h) => {
|
|
10442
10449
|
var w;
|
|
10443
|
-
return p + ((w = h.activities) == null ? void 0 : w.reduce((
|
|
10450
|
+
return p + ((w = h.activities) == null ? void 0 : w.reduce((_, g) => _ + (g.estimation || 0), 0));
|
|
10444
10451
|
},
|
|
10445
10452
|
0
|
|
10446
10453
|
);
|
|
@@ -10475,7 +10482,7 @@ const vh = { class: "ao-card-project-phase__header" }, fh = { class: "ao-card-pr
|
|
|
10475
10482
|
"is-clickable": c.isEditable,
|
|
10476
10483
|
color: w,
|
|
10477
10484
|
withLeftBorder: !0,
|
|
10478
|
-
onClick: (
|
|
10485
|
+
onClick: (_) => u(_, h)
|
|
10479
10486
|
}, fa({
|
|
10480
10487
|
default: N(() => [
|
|
10481
10488
|
f("div", fh, [
|
|
@@ -10514,7 +10521,7 @@ const vh = { class: "ao-card-project-phase__header" }, fh = { class: "ao-card-pr
|
|
|
10514
10521
|
}, [
|
|
10515
10522
|
c.isEditable ? De((v(), C("input", {
|
|
10516
10523
|
key: 0,
|
|
10517
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
10524
|
+
"onUpdate:modelValue": p[1] || (p[1] = (_) => r.value = _),
|
|
10518
10525
|
class: "ao-card-project-phase__deadline ao-card-project-phase__deadline--input",
|
|
10519
10526
|
type: "date"
|
|
10520
10527
|
}, null, 512)), [
|
|
@@ -10741,7 +10748,7 @@ const Rh = { class: "ao-mapping-card-project-phase__header" }, Nh = { class: "ao
|
|
|
10741
10748
|
return (c = a.milestones) == null ? void 0 : c.reduce(
|
|
10742
10749
|
(p, h) => {
|
|
10743
10750
|
var w;
|
|
10744
|
-
return p + ((w = h.activities) == null ? void 0 : w.reduce((
|
|
10751
|
+
return p + ((w = h.activities) == null ? void 0 : w.reduce((_, g) => _ + (g.estimation || 0), 0));
|
|
10745
10752
|
},
|
|
10746
10753
|
0
|
|
10747
10754
|
);
|
|
@@ -10776,7 +10783,7 @@ const Rh = { class: "ao-mapping-card-project-phase__header" }, Nh = { class: "ao
|
|
|
10776
10783
|
"is-clickable": c.isEditable,
|
|
10777
10784
|
color: w,
|
|
10778
10785
|
withLeftBorder: !0,
|
|
10779
|
-
onClick: (
|
|
10786
|
+
onClick: (_) => u(_, h)
|
|
10780
10787
|
}, fa({
|
|
10781
10788
|
default: N(() => [
|
|
10782
10789
|
f("div", Nh, [
|
|
@@ -10815,7 +10822,7 @@ const Rh = { class: "ao-mapping-card-project-phase__header" }, Nh = { class: "ao
|
|
|
10815
10822
|
}, [
|
|
10816
10823
|
c.isEditable ? De((v(), C("input", {
|
|
10817
10824
|
key: 0,
|
|
10818
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
10825
|
+
"onUpdate:modelValue": p[1] || (p[1] = (_) => r.value = _),
|
|
10819
10826
|
class: "ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",
|
|
10820
10827
|
type: "date"
|
|
10821
10828
|
}, null, 512)), [
|
|
@@ -10886,8 +10893,8 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
10886
10893
|
const a = t, { t: s } = yt();
|
|
10887
10894
|
ce(
|
|
10888
10895
|
() => a.phase.milestones,
|
|
10889
|
-
(m,
|
|
10890
|
-
Xe(m,
|
|
10896
|
+
(m, y) => {
|
|
10897
|
+
Xe(m, y);
|
|
10891
10898
|
}
|
|
10892
10899
|
);
|
|
10893
10900
|
const n = (m) => {
|
|
@@ -10901,12 +10908,12 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
10901
10908
|
(m) => j3(m, a.closedStatus)
|
|
10902
10909
|
)
|
|
10903
10910
|
), r = (m) => {
|
|
10904
|
-
const { name:
|
|
10911
|
+
const { name: y, rank: P } = Mt(
|
|
10905
10912
|
l.value ?? [],
|
|
10906
10913
|
"milestone",
|
|
10907
10914
|
s
|
|
10908
10915
|
);
|
|
10909
|
-
e("addMilestone", { name:
|
|
10916
|
+
e("addMilestone", { name: y, rank: P, phaseId: m });
|
|
10910
10917
|
}, d = (m) => {
|
|
10911
10918
|
e("updateMilestone", m);
|
|
10912
10919
|
}, u = (m) => {
|
|
@@ -10926,11 +10933,11 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
10926
10933
|
id: m.moved.element.id,
|
|
10927
10934
|
rank: Ft(l.value, m.moved.newIndex)
|
|
10928
10935
|
});
|
|
10929
|
-
},
|
|
10936
|
+
}, _ = qi(), g = A(() => _.path.includes("/mapping")), $ = A(() => {
|
|
10930
10937
|
var m;
|
|
10931
|
-
return a.phase.id !== ((m =
|
|
10938
|
+
return a.phase.id !== ((m = _.params) == null ? void 0 : m.phaseId) ? { backgroundColor: "var(--ao-color-sheet)" } : a.phase.color ? { backgroundColor: N3(a.phase.color) } : { backgroundColor: "var(--ao-color-primary-lightest)" };
|
|
10932
10939
|
});
|
|
10933
|
-
return (m,
|
|
10940
|
+
return (m, y) => (v(), C("li", Kh, [
|
|
10934
10941
|
f("div", {
|
|
10935
10942
|
class: "ao-project-phases__draggable-card",
|
|
10936
10943
|
style: pt($.value)
|
|
@@ -11022,7 +11029,7 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
11022
11029
|
label: m.$t("project.milestone.add"),
|
|
11023
11030
|
class: "ao-project-phase__milestone-add",
|
|
11024
11031
|
"icon-name": "Add",
|
|
11025
|
-
onClick:
|
|
11032
|
+
onClick: y[0] || (y[0] = () => r(m.phase.id))
|
|
11026
11033
|
}, null, 8, ["label"])) : O("", !0)
|
|
11027
11034
|
])
|
|
11028
11035
|
], 4)
|
|
@@ -11310,7 +11317,7 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11310
11317
|
e("unarchiveMilestone", T);
|
|
11311
11318
|
}, w = (T) => {
|
|
11312
11319
|
e("addActivity", T);
|
|
11313
|
-
},
|
|
11320
|
+
}, _ = (T) => {
|
|
11314
11321
|
e("update:activity", T);
|
|
11315
11322
|
}, g = (T) => {
|
|
11316
11323
|
e("archiveActivity", T);
|
|
@@ -11318,7 +11325,7 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11318
11325
|
e("unarchiveActivity", T);
|
|
11319
11326
|
}, m = (T) => {
|
|
11320
11327
|
e("addSubtask", T);
|
|
11321
|
-
},
|
|
11328
|
+
}, y = (T) => {
|
|
11322
11329
|
e("updateSubtask", T);
|
|
11323
11330
|
}, P = (T) => {
|
|
11324
11331
|
e("deleteSubtask", T);
|
|
@@ -11419,7 +11426,7 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11419
11426
|
onClose: k[4] || (k[4] = (b) => T.$router.push({ name: Q(ye).project })),
|
|
11420
11427
|
onUpdateMilestone: c,
|
|
11421
11428
|
onAddActivity: w,
|
|
11422
|
-
onUpdateActivity:
|
|
11429
|
+
onUpdateActivity: _,
|
|
11423
11430
|
onArchiveActivity: g,
|
|
11424
11431
|
onUnarchiveActivity: $
|
|
11425
11432
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
|
|
@@ -11436,9 +11443,9 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11436
11443
|
"user-id": T.userId,
|
|
11437
11444
|
"is-editable": T.isEditable,
|
|
11438
11445
|
"attachment-enabled": T.attachmentEnabled,
|
|
11439
|
-
"onUpdate:activity":
|
|
11446
|
+
"onUpdate:activity": _,
|
|
11440
11447
|
onAddSubtask: m,
|
|
11441
|
-
onUpdateSubtask:
|
|
11448
|
+
onUpdateSubtask: y,
|
|
11442
11449
|
onDeleteSubtask: P,
|
|
11443
11450
|
onAddFiles: L,
|
|
11444
11451
|
onRemoveFile: F,
|
|
@@ -11608,15 +11615,15 @@ const T9 = { class: "ao-card-feed__header" }, O9 = {
|
|
|
11608
11615
|
f("div", B9, [
|
|
11609
11616
|
f("div", j9, [
|
|
11610
11617
|
f("ul", R9, [
|
|
11611
|
-
(v(!0), C(fe, null, _e(l.value, (
|
|
11612
|
-
key:
|
|
11618
|
+
(v(!0), C(fe, null, _e(l.value, (_) => (v(), C(fe, {
|
|
11619
|
+
key: _.id
|
|
11613
11620
|
}, [
|
|
11614
|
-
|
|
11621
|
+
_ ? (v(), C("li", N9, [
|
|
11615
11622
|
M(Je, {
|
|
11616
|
-
"user-name": Q(Gn)(
|
|
11617
|
-
"avatar-url":
|
|
11623
|
+
"user-name": Q(Gn)(_),
|
|
11624
|
+
"avatar-url": _.avatarUrl,
|
|
11618
11625
|
"is-closable": !0,
|
|
11619
|
-
onClose: () => d(
|
|
11626
|
+
onClose: () => d(_.id)
|
|
11620
11627
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
11621
11628
|
])) : O("", !0)
|
|
11622
11629
|
], 64))), 128))
|
|
@@ -11680,26 +11687,26 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11680
11687
|
setup(t, { emit: e }) {
|
|
11681
11688
|
const a = t, { t: s } = yt(), n = A(() => {
|
|
11682
11689
|
var m;
|
|
11683
|
-
return (m = a.phases) == null ? void 0 : m.find((
|
|
11690
|
+
return (m = a.phases) == null ? void 0 : m.find((y) => y.id === a.phaseId);
|
|
11684
11691
|
}), o = A(
|
|
11685
11692
|
() => {
|
|
11686
11693
|
var m;
|
|
11687
|
-
return (m = a.phases) == null ? void 0 : m.flatMap((
|
|
11694
|
+
return (m = a.phases) == null ? void 0 : m.flatMap((y) => y.milestones);
|
|
11688
11695
|
}
|
|
11689
11696
|
), i = A(() => {
|
|
11690
11697
|
var m;
|
|
11691
|
-
return (m = o.value) == null ? void 0 : m.find((
|
|
11698
|
+
return (m = o.value) == null ? void 0 : m.find((y) => y.id === a.milestoneId);
|
|
11692
11699
|
}), l = A(() => {
|
|
11693
11700
|
var m;
|
|
11694
11701
|
return (m = i.value) == null ? void 0 : m.activities;
|
|
11695
11702
|
});
|
|
11696
|
-
ce(l, (m,
|
|
11697
|
-
Xe(m,
|
|
11703
|
+
ce(l, (m, y) => {
|
|
11704
|
+
Xe(m, y);
|
|
11698
11705
|
});
|
|
11699
11706
|
const r = (m) => {
|
|
11700
11707
|
e("close", m);
|
|
11701
11708
|
}, d = () => {
|
|
11702
|
-
const { name: m, rank:
|
|
11709
|
+
const { name: m, rank: y } = Mt(
|
|
11703
11710
|
l.value ?? [],
|
|
11704
11711
|
"activity",
|
|
11705
11712
|
s
|
|
@@ -11707,7 +11714,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11707
11714
|
e("addActivity", {
|
|
11708
11715
|
milestoneId: a.milestoneId,
|
|
11709
11716
|
name: m,
|
|
11710
|
-
rank:
|
|
11717
|
+
rank: y,
|
|
11711
11718
|
projectId: a.projectId
|
|
11712
11719
|
});
|
|
11713
11720
|
}, u = (m) => {
|
|
@@ -11739,17 +11746,17 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11739
11746
|
deadline: m != null && m.length ? m : null
|
|
11740
11747
|
});
|
|
11741
11748
|
}
|
|
11742
|
-
}), w = (m) => a.closedStatus ? Hs(m, a.closedStatus) : !1,
|
|
11749
|
+
}), w = (m) => a.closedStatus ? Hs(m, a.closedStatus) : !1, _ = A(() => {
|
|
11743
11750
|
var m;
|
|
11744
|
-
return ((m = a.users) == null ? void 0 : m.map((
|
|
11745
|
-
label: `${
|
|
11746
|
-
value:
|
|
11747
|
-
avatar:
|
|
11751
|
+
return ((m = a.users) == null ? void 0 : m.map((y) => ({
|
|
11752
|
+
label: `${y.firstName} ${y.lastName}`,
|
|
11753
|
+
value: y.id,
|
|
11754
|
+
avatar: y.avatarUrl
|
|
11748
11755
|
}))) || [];
|
|
11749
11756
|
}), g = A({
|
|
11750
11757
|
get() {
|
|
11751
|
-
var m,
|
|
11752
|
-
return (
|
|
11758
|
+
var m, y;
|
|
11759
|
+
return (y = (m = i.value) == null ? void 0 : m.assignee) != null && y.id ? [i.value.assignee.id] : [];
|
|
11753
11760
|
},
|
|
11754
11761
|
set(m) {
|
|
11755
11762
|
e("updateMilestone", {
|
|
@@ -11767,7 +11774,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11767
11774
|
e("updateMilestone", { id: a.milestoneId, important: m });
|
|
11768
11775
|
}
|
|
11769
11776
|
});
|
|
11770
|
-
return (m,
|
|
11777
|
+
return (m, y) => {
|
|
11771
11778
|
var P;
|
|
11772
11779
|
return v(), C("div", G9, [
|
|
11773
11780
|
f("header", X9, [
|
|
@@ -11788,7 +11795,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11788
11795
|
}, null, 8, ["title"]),
|
|
11789
11796
|
M(As, {
|
|
11790
11797
|
modelValue: $.value,
|
|
11791
|
-
"onUpdate:modelValue":
|
|
11798
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => $.value = I),
|
|
11792
11799
|
modelModifiers: { lazy: !0 },
|
|
11793
11800
|
disabled: !m.isEditable,
|
|
11794
11801
|
class: "ao-milestone__important",
|
|
@@ -11804,7 +11811,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11804
11811
|
f("div", a4, [
|
|
11805
11812
|
f("label", s4, [
|
|
11806
11813
|
De(f("input", {
|
|
11807
|
-
"onUpdate:modelValue":
|
|
11814
|
+
"onUpdate:modelValue": y[1] || (y[1] = (I) => h.value = I),
|
|
11808
11815
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
11809
11816
|
type: "date"
|
|
11810
11817
|
}, null, 512), [
|
|
@@ -11821,8 +11828,8 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11821
11828
|
f("label", i4, [
|
|
11822
11829
|
M(Se, {
|
|
11823
11830
|
modelValue: g.value,
|
|
11824
|
-
"onUpdate:modelValue":
|
|
11825
|
-
options:
|
|
11831
|
+
"onUpdate:modelValue": y[2] || (y[2] = (I) => g.value = I),
|
|
11832
|
+
options: _.value,
|
|
11826
11833
|
"close-on-select": !0,
|
|
11827
11834
|
searchable: !0,
|
|
11828
11835
|
max: 1,
|
|
@@ -11849,7 +11856,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11849
11856
|
]),
|
|
11850
11857
|
M(an, {
|
|
11851
11858
|
color: p.value,
|
|
11852
|
-
"onUpdate:color":
|
|
11859
|
+
"onUpdate:color": y[3] || (y[3] = (I) => p.value = I)
|
|
11853
11860
|
}, {
|
|
11854
11861
|
clickable: N(({ openPicker: I, bgColor: L }) => [
|
|
11855
11862
|
f("button", {
|
|
@@ -11994,11 +12001,11 @@ const u4 = /* @__PURE__ */ q({
|
|
|
11994
12001
|
e("addComment", g);
|
|
11995
12002
|
}, w = (g) => {
|
|
11996
12003
|
e("updateComment", g);
|
|
11997
|
-
},
|
|
12004
|
+
}, _ = (g) => {
|
|
11998
12005
|
e("removeComment", g);
|
|
11999
12006
|
};
|
|
12000
12007
|
return (g, $) => {
|
|
12001
|
-
var m,
|
|
12008
|
+
var m, y;
|
|
12002
12009
|
return i.value ? (v(), D(Ys, {
|
|
12003
12010
|
key: 0,
|
|
12004
12011
|
activity: i.value,
|
|
@@ -12010,7 +12017,7 @@ const u4 = /* @__PURE__ */ q({
|
|
|
12010
12017
|
"user-id": g.userId,
|
|
12011
12018
|
"is-task-checkable": g.isTaskCheckable,
|
|
12012
12019
|
statuses: g.statuses,
|
|
12013
|
-
breadcrumbs: `${(m = s.value) == null ? void 0 : m.name} / ${(
|
|
12020
|
+
breadcrumbs: `${(m = s.value) == null ? void 0 : m.name} / ${(y = o.value) == null ? void 0 : y.name}`,
|
|
12014
12021
|
"is-editable": g.isEditable,
|
|
12015
12022
|
"attachment-enabled": g.attachmentEnabled,
|
|
12016
12023
|
projects: [g.project],
|
|
@@ -12023,7 +12030,7 @@ const u4 = /* @__PURE__ */ q({
|
|
|
12023
12030
|
onRemoveFile: p,
|
|
12024
12031
|
onAddComment: h,
|
|
12025
12032
|
onUpdateComment: w,
|
|
12026
|
-
onRemoveComment:
|
|
12033
|
+
onRemoveComment: _
|
|
12027
12034
|
}, {
|
|
12028
12035
|
default: N((P) => [
|
|
12029
12036
|
te(g.$slots, "default", ha(ma(P)))
|
|
@@ -12125,13 +12132,13 @@ function b4(t, e, a = {}) {
|
|
|
12125
12132
|
let u = la;
|
|
12126
12133
|
const c = Y(l), p = r.value ? ce(
|
|
12127
12134
|
() => [d.value, bs(s), c.value],
|
|
12128
|
-
([w,
|
|
12135
|
+
([w, _]) => {
|
|
12129
12136
|
if (u(), !c.value || !w.length)
|
|
12130
12137
|
return;
|
|
12131
12138
|
const g = new IntersectionObserver(
|
|
12132
12139
|
e,
|
|
12133
12140
|
{
|
|
12134
|
-
root: bs(
|
|
12141
|
+
root: bs(_),
|
|
12135
12142
|
rootMargin: n,
|
|
12136
12143
|
threshold: o
|
|
12137
12144
|
}
|
|
@@ -12249,7 +12256,7 @@ const w4 = {
|
|
|
12249
12256
|
}
|
|
12250
12257
|
}), {
|
|
12251
12258
|
item: N(({ element: p }) => {
|
|
12252
|
-
var h, w,
|
|
12259
|
+
var h, w, _, g, $, m, y, P, I;
|
|
12253
12260
|
return [
|
|
12254
12261
|
M(gi, {
|
|
12255
12262
|
class: X(o(p) ? "ao-list-draggable" : ""),
|
|
@@ -12257,11 +12264,11 @@ const w4 = {
|
|
|
12257
12264
|
name: p.name,
|
|
12258
12265
|
"project-name": (h = p.project) == null ? void 0 : h.name,
|
|
12259
12266
|
"project-color": (w = p.project) == null ? void 0 : w.color,
|
|
12260
|
-
"phase-name": (g = (
|
|
12267
|
+
"phase-name": (g = (_ = p.milestone) == null ? void 0 : _.phase) == null ? void 0 : g.name,
|
|
12261
12268
|
"milestone-name": ($ = p.milestone) == null ? void 0 : $.name,
|
|
12262
12269
|
"milestone-color": (m = p.milestone) == null ? void 0 : m.color,
|
|
12263
12270
|
deadline: p.deadline,
|
|
12264
|
-
rules: ((
|
|
12271
|
+
rules: ((y = p.rules) == null ? void 0 : y.length) || 0,
|
|
12265
12272
|
tasks: p.tasks,
|
|
12266
12273
|
description: p.description,
|
|
12267
12274
|
important: p.important,
|
|
@@ -12435,7 +12442,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12435
12442
|
d.value = !1, e("update:filters", { ...a.filters, [k]: R });
|
|
12436
12443
|
}, w = A(
|
|
12437
12444
|
() => a.project ? [a.project] : a.projects ?? []
|
|
12438
|
-
),
|
|
12445
|
+
), _ = A(() => w.value.map((k) => ({
|
|
12439
12446
|
value: k.id,
|
|
12440
12447
|
label: k.name
|
|
12441
12448
|
}))), g = A(() => {
|
|
@@ -12450,7 +12457,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12450
12457
|
avatar: k.avatarUrl
|
|
12451
12458
|
}))), m = (k) => {
|
|
12452
12459
|
a.selectedActivity && e("update:activity", k);
|
|
12453
|
-
},
|
|
12460
|
+
}, y = (k) => {
|
|
12454
12461
|
e("update:activity", k);
|
|
12455
12462
|
}, P = (k) => {
|
|
12456
12463
|
e("archiveActivity", k);
|
|
@@ -12510,7 +12517,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12510
12517
|
key: 0,
|
|
12511
12518
|
"model-value": k.filters[Q(Dt).project],
|
|
12512
12519
|
mode: "tags",
|
|
12513
|
-
options:
|
|
12520
|
+
options: _.value,
|
|
12514
12521
|
"close-on-select": !1,
|
|
12515
12522
|
searchable: !0,
|
|
12516
12523
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
@@ -12607,7 +12614,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12607
12614
|
onSelectActivity: i,
|
|
12608
12615
|
onArchiveActivity: P,
|
|
12609
12616
|
onUnarchiveActivity: I,
|
|
12610
|
-
onUpdateActivity:
|
|
12617
|
+
onUpdateActivity: y
|
|
12611
12618
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tagType", "onAdd"]))), 128))
|
|
12612
12619
|
]),
|
|
12613
12620
|
(v(), D(Tt, { to: "body" }, [
|
|
@@ -12683,9 +12690,9 @@ const B4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
|
|
|
12683
12690
|
e("applyTemplate", { templateId: g, projectId: $ }), d.value = !1;
|
|
12684
12691
|
}, p = (g, $) => {
|
|
12685
12692
|
var P;
|
|
12686
|
-
const m = (P = a.templates) == null ? void 0 : P.at(-1),
|
|
12687
|
-
e("saveTemplate", { templateName: g, rank:
|
|
12688
|
-
}, h = Es(), w = Y("mapping"),
|
|
12693
|
+
const m = (P = a.templates) == null ? void 0 : P.at(-1), y = m ? we.LexoRank.parse(m.rank).genNext() : we.LexoRank.middle();
|
|
12694
|
+
e("saveTemplate", { templateName: g, rank: y.format(), phaseIds: $ }), u.value = !1;
|
|
12695
|
+
}, h = Es(), w = Y("mapping"), _ = [
|
|
12689
12696
|
{ label: "Overview", value: "overview" },
|
|
12690
12697
|
{ label: "Feed", value: "feed" },
|
|
12691
12698
|
{ label: "Mapping", value: "mapping" }
|
|
@@ -12698,7 +12705,7 @@ const B4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
|
|
|
12698
12705
|
M(ba, null, {
|
|
12699
12706
|
primary: N(() => [
|
|
12700
12707
|
M(sn, {
|
|
12701
|
-
tabs:
|
|
12708
|
+
tabs: _,
|
|
12702
12709
|
modelValue: w.value,
|
|
12703
12710
|
"onUpdate:modelValue": $[0] || ($[0] = (m) => w.value = m)
|
|
12704
12711
|
}, null, 8, ["modelValue"]),
|