@26lights/orcha 0.41.82 → 0.41.84
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 +371 -363
- package/dist/orcha.umd.js +3 -3
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, openBlock as v, createBlock as D, unref as Q, mergeProps as Ae, createElementBlock as C, createElementVNode as f, pushScopeId as Vi, popScopeId as Di, createStaticVNode as Bi, computed as A, resolveDynamicComponent as mt, normalizeClass as X, renderSlot as te, toDisplayString as W, createCommentVNode as O, ref as
|
|
1
|
+
import { defineComponent as q, openBlock as v, createBlock as D, unref as Q, mergeProps as Ae, createElementBlock as C, createElementVNode as f, pushScopeId as Vi, popScopeId as Di, createStaticVNode as Bi, computed as A, resolveDynamicComponent as mt, normalizeClass as X, renderSlot as te, toDisplayString as W, createCommentVNode as O, ref as Y, watch as ce, nextTick as Me, withKeys as dt, toHandlers as ji, withCtx as N, createTextVNode as qa, createVNode as M, normalizeStyle as pt, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as _e, onMounted as It, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ee, getCurrentInstance as Lt, toRef as Rt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as De, vShow as Ri, onUpdated as Ni, vModelText as Ze, resolveComponent as rt, vModelCheckbox as Ui, getCurrentScope as Fi, onScopeDispose as Zi, toHandlerKey as Wi } from "vue";
|
|
2
2
|
import { RouterView as zi, useRoute as qi, useRouter as Es } from "vue-router";
|
|
3
3
|
import gt from "vuedraggable";
|
|
4
4
|
const t8 = /* @__PURE__ */ q({
|
|
@@ -1218,7 +1218,7 @@ const D2 = ["type"], B2 = {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
});
|
|
1220
1220
|
function Hn(t) {
|
|
1221
|
-
const e =
|
|
1221
|
+
const e = Y(!1), a = Y(""), s = A(() => "value" in t.value ? "value" : "innerHTML"), n = () => {
|
|
1222
1222
|
e.value = !e.value;
|
|
1223
1223
|
}, o = (r) => {
|
|
1224
1224
|
e.value = r;
|
|
@@ -1258,51 +1258,51 @@ const be = /* @__PURE__ */ q({
|
|
|
1258
1258
|
},
|
|
1259
1259
|
emits: ["update:title", "toggle-is-editing"],
|
|
1260
1260
|
setup(t, { emit: e }) {
|
|
1261
|
-
const a = t, s =
|
|
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(($) => {
|
|
@@ -5033,12 +5033,12 @@ const u7 = (t, e, a) => {
|
|
|
5033
5033
|
platform: o
|
|
5034
5034
|
});
|
|
5035
5035
|
}, c7 = (t) => {
|
|
5036
|
-
const e =
|
|
5036
|
+
const e = Y(!1), a = Y(), s = Y(), n = Y(0);
|
|
5037
5037
|
function o() {
|
|
5038
5038
|
const c = Q(t.appendTo);
|
|
5039
5039
|
return c ? typeof c == "string" ? document.getElementById(c) ?? document.body : c : document.getElementById("floatingElements") ?? document.body;
|
|
5040
5040
|
}
|
|
5041
|
-
const i = o(), l =
|
|
5041
|
+
const i = o(), l = Y(() => {
|
|
5042
5042
|
});
|
|
5043
5043
|
function r(c) {
|
|
5044
5044
|
c.relatedTarget && s.value && s.value.contains(c.relatedTarget) || t.multiselect.value.deactivate();
|
|
@@ -5112,7 +5112,7 @@ function d7(t, e, a) {
|
|
|
5112
5112
|
};
|
|
5113
5113
|
}
|
|
5114
5114
|
function p7(t, e) {
|
|
5115
|
-
const { value: a, modelValue: s, mode: n, valueProp: o } = Ee(t), i =
|
|
5115
|
+
const { value: a, modelValue: s, mode: n, valueProp: o } = Ee(t), i = Y(n.value !== "single" ? [] : {}), l = A(() => s && s.value !== void 0 ? s.value : a.value), r = A(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = A(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
5116
5116
|
return {
|
|
5117
5117
|
iv: i,
|
|
5118
5118
|
internalValue: i,
|
|
@@ -5123,7 +5123,7 @@ function p7(t, e) {
|
|
|
5123
5123
|
};
|
|
5124
5124
|
}
|
|
5125
5125
|
function v7(t, e, a) {
|
|
5126
|
-
const { regex: s } = Ee(t), n = Lt().proxy, o = a.isOpen, i = a.open, l =
|
|
5126
|
+
const { regex: s } = Ee(t), n = Lt().proxy, o = a.isOpen, i = a.open, l = Y(null), r = () => {
|
|
5127
5127
|
l.value = "";
|
|
5128
5128
|
}, d = (p) => {
|
|
5129
5129
|
l.value = p.target.value;
|
|
@@ -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
|
};
|
|
@@ -5151,7 +5151,7 @@ function v7(t, e, a) {
|
|
|
5151
5151
|
};
|
|
5152
5152
|
}
|
|
5153
5153
|
function f7(t, e, a) {
|
|
5154
|
-
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = Ee(t), l =
|
|
5154
|
+
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = Ee(t), l = Y(null), r = (u) => {
|
|
5155
5155
|
u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (l.value = u);
|
|
5156
5156
|
};
|
|
5157
5157
|
return {
|
|
@@ -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,
|
|
@@ -5213,7 +5213,7 @@ function g7(t, e, a) {
|
|
|
5213
5213
|
disabledProp: b,
|
|
5214
5214
|
searchStart: V,
|
|
5215
5215
|
searchFilter: oe
|
|
5216
|
-
} = Ee(t), ne = Lt().proxy, Z = a.iv, H = a.ev,
|
|
5216
|
+
} = Ee(t), ne = Lt().proxy, Z = a.iv, H = a.ev, x = a.search, he = a.clearSearch, ke = a.update, Gt = a.pointer, Xt = a.setPointer, st = a.clearPointer, $a = a.focus, rs = a.deactivate, nt = a.close, ka = a.localize, it = Y([]), Ue = Y([]), Ie = Y(!1), Re = Y(null), Ye = Y(ee.value && i.value === -1 ? 10 : i.value), Qt = A(() => r.value || d.value || !1), Sa = A(() => c.value !== void 0 ? c.value : p.value !== void 0 ? p.value : !0), Le = A(() => {
|
|
5217
5217
|
if (le.value) {
|
|
5218
5218
|
let S = bt.value || /* istanbul ignore next */
|
|
5219
5219
|
[], B = [];
|
|
@@ -5273,10 +5273,10 @@ function g7(t, e, a) {
|
|
|
5273
5273
|
case "tags":
|
|
5274
5274
|
return !Fe(Z.value) && Z.value.length > 0;
|
|
5275
5275
|
}
|
|
5276
|
-
}), Ci = A(() => h !== void 0 && h.value !== void 0 ? h.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), _i = A(() => !Le.value.length && !Ie.value && !Pt.value.length), yi = A(() => Le.value.length > 0 && ot.value.length == 0 && (
|
|
5277
|
-
[L.value]:
|
|
5278
|
-
[wt.value[0]]:
|
|
5279
|
-
[u.value]:
|
|
5276
|
+
}), Ci = A(() => h !== void 0 && h.value !== void 0 ? h.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), _i = A(() => !Le.value.length && !Ie.value && !Pt.value.length), yi = A(() => Le.value.length > 0 && ot.value.length == 0 && (x.value && le.value || !le.value)), Pt = A(() => Qt.value === !1 || !x.value ? [] : Oi(x.value) !== -1 ? [] : [{
|
|
5277
|
+
[L.value]: x.value,
|
|
5278
|
+
[wt.value[0]]: x.value,
|
|
5279
|
+
[u.value]: x.value,
|
|
5280
5280
|
__CREATE__: !0
|
|
5281
5281
|
}]), wt = A(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [u.value]), bi = A(() => {
|
|
5282
5282
|
switch (n.value) {
|
|
@@ -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);
|
|
@@ -5390,15 +5390,15 @@ function g7(t, e, a) {
|
|
|
5390
5390
|
}, Mi = (S) => S.find((B) => !xe(B) && !B[b.value]) === void 0, Ti = (S) => S.find((B) => !xe(B)) === void 0, Ke = (S) => Le.value[Le.value.map((B) => String(B[L.value])).indexOf(String(S))], Oi = (S) => Le.value.findIndex((B) => wt.value.some((ue) => (parseInt(B[ue]) == B[ue] ? parseInt(B[ue]) : B[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Ei = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && xe(S), Ii = (S) => {
|
|
5391
5391
|
it.value.push(S);
|
|
5392
5392
|
}, Li = (S) => T.value ? S.filter(
|
|
5393
|
-
(B) =>
|
|
5394
|
-
) : S.filter((B) =>
|
|
5393
|
+
(B) => x.value ? B.__VISIBLE__.length : B[E.value].length
|
|
5394
|
+
) : S.filter((B) => x.value ? B.__VISIBLE__.length : !0), fs = (S, B = !0) => {
|
|
5395
5395
|
let ue = S;
|
|
5396
|
-
if (
|
|
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);
|
|
5400
5400
|
return V.value ? dn.startsWith(ys(cn, ae.value)) : dn.indexOf(ys(cn, ae.value)) !== -1;
|
|
5401
|
-
})), ue = ue.filter(($t) => ge($t,
|
|
5401
|
+
})), ue = ue.filter(($t) => ge($t, x.value, ne));
|
|
5402
5402
|
}
|
|
5403
5403
|
return l.value && B && (ue = ue.filter((ge) => !Ei(ge))), ue;
|
|
5404
5404
|
}, hs = (S) => {
|
|
@@ -5410,7 +5410,7 @@ function g7(t, e, a) {
|
|
|
5410
5410
|
}, Ma = () => {
|
|
5411
5411
|
Fe(H.value) || (Z.value = Oa(H.value));
|
|
5412
5412
|
}, Ta = (S) => (Ie.value = !0, new Promise((B, ue) => {
|
|
5413
|
-
s.value(
|
|
5413
|
+
s.value(x.value, ne).then((ge) => {
|
|
5414
5414
|
Ue.value = ge || [], typeof S == "function" && S(ge), Ie.value = !1;
|
|
5415
5415
|
}).catch((ge) => {
|
|
5416
5416
|
console.error(ge), Ue.value = [], Ie.value = !1;
|
|
@@ -5444,10 +5444,10 @@ function g7(t, e, a) {
|
|
|
5444
5444
|
[L.value]: B,
|
|
5445
5445
|
[wt.value[0]]: B
|
|
5446
5446
|
}), un = () => {
|
|
5447
|
-
Re.value = ce(
|
|
5447
|
+
Re.value = ce(x, (S) => {
|
|
5448
5448
|
S.length < m.value || !S && m.value !== 0 || (Ie.value = !0, P.value && (Ue.value = []), setTimeout(() => {
|
|
5449
|
-
S ==
|
|
5450
|
-
(S ==
|
|
5449
|
+
S == x.value && s.value(x.value, ne).then((B) => {
|
|
5450
|
+
(S == x.value || !x.value) && (Ue.value = B, Gt.value = ot.value.filter((ue) => ue[b.value] !== !0)[0] || null, Ie.value = !1);
|
|
5451
5451
|
}).catch(
|
|
5452
5452
|
/* istanbul ignore next */
|
|
5453
5453
|
(B) => {
|
|
@@ -5524,26 +5524,26 @@ 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)
|
|
5531
|
-
),
|
|
5532
|
-
let he = F.value[
|
|
5531
|
+
), x = F.value.map((ke) => ke[i.value]).indexOf(H[i.value]);
|
|
5532
|
+
let he = F.value[x - 1];
|
|
5533
5533
|
return he === void 0 && (he = G.value), he;
|
|
5534
5534
|
}), j = A(() => {
|
|
5535
|
-
let H = F.value.map((
|
|
5535
|
+
let H = F.value.map((x) => x.label).indexOf(K.value ? $.value[i.value] : ne($.value)[i.value]) + 1;
|
|
5536
5536
|
return F.value.length <= H && (H = 0), F.value[H];
|
|
5537
5537
|
}), G = A(() => [...F.value].slice(-1)[0]), le = A(() => $.value.__VISIBLE__.filter((H) => !H[u.value])[0]), se = A(() => {
|
|
5538
|
-
const H = J.value.__VISIBLE__.filter((
|
|
5539
|
-
return H[H.map((
|
|
5538
|
+
const H = J.value.__VISIBLE__.filter((x) => !x[u.value]);
|
|
5539
|
+
return H[H.map((x) => x[s.value]).indexOf($.value[s.value]) - 1];
|
|
5540
5540
|
}), ee = A(() => {
|
|
5541
|
-
const H = ne($.value).__VISIBLE__.filter((
|
|
5542
|
-
return H[H.map((
|
|
5541
|
+
const H = ne($.value).__VISIBLE__.filter((x) => !x[u.value]);
|
|
5542
|
+
return H[H.map((x) => x[s.value]).indexOf($.value[s.value]) + 1];
|
|
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);
|
|
@@ -5552,7 +5552,7 @@ function C7(t, e, a) {
|
|
|
5552
5552
|
H === void 0 && (H = j.value, H.__CREATE__ && (H = H[c.value][0])), m(H || /* istanbul ignore next */
|
|
5553
5553
|
null);
|
|
5554
5554
|
} else {
|
|
5555
|
-
let H = L.value.map((
|
|
5555
|
+
let H = L.value.map((x) => x[s.value]).indexOf($.value[s.value]) + 1;
|
|
5556
5556
|
L.value.length <= H && (H = 0), m(L.value[H] || null);
|
|
5557
5557
|
}
|
|
5558
5558
|
Me(() => {
|
|
@@ -5567,29 +5567,29 @@ function C7(t, e, a) {
|
|
|
5567
5567
|
H === void 0 && (H = K.value ? ae.value : J.value, H.__CREATE__ && (H = E.value, H === void 0 && (H = ae.value))), m(H || /* istanbul ignore next */
|
|
5568
5568
|
null);
|
|
5569
5569
|
} else {
|
|
5570
|
-
let H = L.value.map((
|
|
5570
|
+
let H = L.value.map((x) => x[s.value]).indexOf($.value[s.value]) - 1;
|
|
5571
5571
|
H < 0 && (H = L.value.length - 1), m(L.value[H] || null);
|
|
5572
5572
|
}
|
|
5573
5573
|
Me(() => {
|
|
5574
5574
|
Z();
|
|
5575
5575
|
});
|
|
5576
|
-
}, ne = (H) => F.value.find((
|
|
5576
|
+
}, ne = (H) => F.value.find((x) => x.__VISIBLE__.map((he) => he[s.value]).indexOf(H[s.value]) !== -1), Z = () => {
|
|
5577
5577
|
let H = P.value.querySelector("[data-pointed]");
|
|
5578
5578
|
if (!H)
|
|
5579
5579
|
return;
|
|
5580
|
-
let
|
|
5581
|
-
l.value && (
|
|
5580
|
+
let x = H.parentElement.parentElement;
|
|
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
|
-
let
|
|
5588
|
-
if (!
|
|
5587
|
+
let x = P.value.querySelectorAll("[data-selected]")[0];
|
|
5588
|
+
if (!x)
|
|
5589
5589
|
return;
|
|
5590
|
-
let he =
|
|
5590
|
+
let he = x.parentElement.parentElement;
|
|
5591
5591
|
Me(() => {
|
|
5592
|
-
he.scrollTop > 0 || (he.scrollTop =
|
|
5592
|
+
he.scrollTop > 0 || (he.scrollTop = x.offsetTop);
|
|
5593
5593
|
});
|
|
5594
5594
|
}
|
|
5595
5595
|
}), {
|
|
@@ -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],
|
|
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, {
|
|
@@ -6387,8 +6387,8 @@ function Cp(t) {
|
|
|
6387
6387
|
}
|
|
6388
6388
|
if (z)
|
|
6389
6389
|
for (var R = w ? 3 : 1, b = function(Z) {
|
|
6390
|
-
var H = P.find(function(
|
|
6391
|
-
var he = F.get(
|
|
6390
|
+
var H = P.find(function(x) {
|
|
6391
|
+
var he = F.get(x);
|
|
6392
6392
|
if (he)
|
|
6393
6393
|
return he.slice(0, Z).every(function(ke) {
|
|
6394
6394
|
return ke;
|
|
@@ -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 =
|
|
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 =
|
|
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 =
|
|
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,
|
|
@@ -6820,7 +6820,7 @@ function Ap(t, e, a) {
|
|
|
6820
6820
|
};
|
|
6821
6821
|
}
|
|
6822
6822
|
function Mp(t, e, a) {
|
|
6823
|
-
const s =
|
|
6823
|
+
const s = Y(null), n = Y(null), o = Y(null), i = Y(null), l = Y(null);
|
|
6824
6824
|
return {
|
|
6825
6825
|
multiselect: s,
|
|
6826
6826
|
wrapper: n,
|
|
@@ -7702,7 +7702,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
7702
7702
|
appendTo: {}
|
|
7703
7703
|
},
|
|
7704
7704
|
setup(t) {
|
|
7705
|
-
const e = t, a = Rt(() => e.appendTo), s =
|
|
7705
|
+
const e = t, a = Rt(() => e.appendTo), s = Y();
|
|
7706
7706
|
return e.detached && c7({
|
|
7707
7707
|
multiselect: s,
|
|
7708
7708
|
appendTo: a.value
|
|
@@ -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,
|
|
@@ -7929,7 +7929,7 @@ const sv = ["onDrop", "onDragenter", "onDragover", "onDragleave"], nv = { class:
|
|
|
7929
7929
|
);
|
|
7930
7930
|
});
|
|
7931
7931
|
});
|
|
7932
|
-
const i =
|
|
7932
|
+
const i = Y(!1);
|
|
7933
7933
|
function l() {
|
|
7934
7934
|
a.isEditable && (i.value = !0);
|
|
7935
7935
|
}
|
|
@@ -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
|
|
8037
|
-
}), n =
|
|
8038
|
-
const
|
|
8035
|
+
const _ = a.user;
|
|
8036
|
+
return _ ? `${_ == null ? void 0 : _.firstName} ${_ == null ? void 0 : _.lastName}` : null;
|
|
8037
|
+
}), n = Y(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = Hn(n), d = A(() => {
|
|
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
|
-
}, w =
|
|
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",
|
|
@@ -8133,7 +8133,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8133
8133
|
setup(t, { emit: e }) {
|
|
8134
8134
|
const a = t, s = A(() => (a.comments || []).toSorted(
|
|
8135
8135
|
(p, h) => t0(ca(p.createdAt), ca(h.createdAt))
|
|
8136
|
-
)), n = (c) => a.users.find((h) => h.id === c), o =
|
|
8136
|
+
)), n = (c) => a.users.find((h) => h.id === c), o = Y();
|
|
8137
8137
|
Me(() => {
|
|
8138
8138
|
o.value && (o.value.scrollTop = o.value.scrollHeight);
|
|
8139
8139
|
});
|
|
@@ -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
|
]),
|
|
@@ -8666,13 +8666,13 @@ const As = /* @__PURE__ */ q({
|
|
|
8666
8666
|
}, {
|
|
8667
8667
|
tag: N(({
|
|
8668
8668
|
option: H,
|
|
8669
|
-
handleTagRemove:
|
|
8669
|
+
handleTagRemove: x
|
|
8670
8670
|
}) => [
|
|
8671
8671
|
M(Je, {
|
|
8672
8672
|
"user-name": H.label,
|
|
8673
8673
|
"avatar-url": H.avatar,
|
|
8674
8674
|
"is-closable": !0,
|
|
8675
|
-
onClose: (he) =>
|
|
8675
|
+
onClose: (he) => x(H, he)
|
|
8676
8676
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
8677
8677
|
]),
|
|
8678
8678
|
_: 1
|
|
@@ -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
|
|
@@ -9005,7 +9005,7 @@ const Lf = {
|
|
|
9005
9005
|
var E;
|
|
9006
9006
|
return (E = a.templates) == null ? void 0 : E.find((T) => T.id === a.templateId);
|
|
9007
9007
|
}
|
|
9008
|
-
), o =
|
|
9008
|
+
), o = Y(!1);
|
|
9009
9009
|
ce(
|
|
9010
9010
|
() => [a.templateId, a.phaseId, a.milestoneId],
|
|
9011
9011
|
() => o.value = !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,
|
|
@@ -9178,7 +9178,7 @@ const Lf = {
|
|
|
9178
9178
|
templateId: a.templateId,
|
|
9179
9179
|
data: k
|
|
9180
9180
|
});
|
|
9181
|
-
}, F =
|
|
9181
|
+
}, F = Y(!1), z = () => {
|
|
9182
9182
|
F.value = !F.value;
|
|
9183
9183
|
}, K = () => {
|
|
9184
9184
|
e("addRule", { templateId: a.templateId });
|
|
@@ -9272,11 +9272,11 @@ const Lf = {
|
|
|
9272
9272
|
milestones: Z.milestones,
|
|
9273
9273
|
"is-active": ((H = i.value) == null ? void 0 : H.id) === Z.id,
|
|
9274
9274
|
"is-draggable": !0,
|
|
9275
|
-
onClick: (
|
|
9275
|
+
onClick: (x) => E.$router.push({
|
|
9276
9276
|
params: { templateId: E.templateId, phaseId: Z.id }
|
|
9277
9277
|
}),
|
|
9278
|
-
"onUpdate:title": (
|
|
9279
|
-
|
|
9278
|
+
"onUpdate:title": (x) => {
|
|
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
|
}
|
|
@@ -10004,7 +10004,7 @@ var tn = q({
|
|
|
10004
10004
|
},
|
|
10005
10005
|
emits: ["selectColor"],
|
|
10006
10006
|
setup(t, { emit: e }) {
|
|
10007
|
-
const a =
|
|
10007
|
+
const a = Y(), s = Y([]), n = Y();
|
|
10008
10008
|
t.colorsHistoryKey && localStorage && (s.value = JSON.parse(localStorage.getItem(t.colorsHistoryKey)) || []), n.value = xs(4).toDataURL(), Os(() => {
|
|
10009
10009
|
o(a.value);
|
|
10010
10010
|
});
|
|
@@ -10373,38 +10373,46 @@ 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 =
|
|
10377
|
-
|
|
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
|
-
|
|
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",
|
|
10391
|
+
window.removeEventListener("click", l);
|
|
10392
|
+
}), ce(() => a.color, (u) => {
|
|
10393
|
+
s.value || (r.value = u);
|
|
10386
10394
|
});
|
|
10387
|
-
const
|
|
10388
|
-
const { r, g:
|
|
10389
|
-
|
|
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})`;
|
|
10390
10398
|
};
|
|
10391
|
-
return (
|
|
10392
|
-
te(
|
|
10393
|
-
openPicker:
|
|
10394
|
-
bgColor:
|
|
10399
|
+
return (u, c) => (v(), C("div", ph, [
|
|
10400
|
+
te(u.$slots, "clickable", {
|
|
10401
|
+
openPicker: i,
|
|
10402
|
+
bgColor: u.color
|
|
10395
10403
|
}),
|
|
10396
|
-
|
|
10404
|
+
s.value ? (v(), C("div", {
|
|
10397
10405
|
key: 0,
|
|
10398
10406
|
ref_key: "pickerRef",
|
|
10399
|
-
ref:
|
|
10407
|
+
ref: n,
|
|
10408
|
+
class: X(["color-picker", o.value])
|
|
10400
10409
|
}, [
|
|
10401
10410
|
M(Q(Ut), {
|
|
10402
|
-
class: "color-picker",
|
|
10403
10411
|
theme: "light",
|
|
10404
|
-
color:
|
|
10405
|
-
onChangeColor:
|
|
10412
|
+
color: u.color,
|
|
10413
|
+
onChangeColor: d
|
|
10406
10414
|
}, null, 8, ["color"])
|
|
10407
|
-
],
|
|
10415
|
+
], 2)) : O("", !0)
|
|
10408
10416
|
]));
|
|
10409
10417
|
}
|
|
10410
10418
|
});
|
|
@@ -10438,7 +10446,7 @@ const vh = { class: "ao-card-project-phase__header" }, fh = { class: "ao-card-pr
|
|
|
10438
10446
|
return (c = a.milestones) == null ? void 0 : c.reduce(
|
|
10439
10447
|
(p, h) => {
|
|
10440
10448
|
var w;
|
|
10441
|
-
return p + ((w = h.activities) == null ? void 0 : w.reduce((
|
|
10449
|
+
return p + ((w = h.activities) == null ? void 0 : w.reduce((_, g) => _ + (g.estimation || 0), 0));
|
|
10442
10450
|
},
|
|
10443
10451
|
0
|
|
10444
10452
|
);
|
|
@@ -10473,7 +10481,7 @@ const vh = { class: "ao-card-project-phase__header" }, fh = { class: "ao-card-pr
|
|
|
10473
10481
|
"is-clickable": c.isEditable,
|
|
10474
10482
|
color: w,
|
|
10475
10483
|
withLeftBorder: !0,
|
|
10476
|
-
onClick: (
|
|
10484
|
+
onClick: (_) => u(_, h)
|
|
10477
10485
|
}, fa({
|
|
10478
10486
|
default: N(() => [
|
|
10479
10487
|
f("div", fh, [
|
|
@@ -10512,7 +10520,7 @@ const vh = { class: "ao-card-project-phase__header" }, fh = { class: "ao-card-pr
|
|
|
10512
10520
|
}, [
|
|
10513
10521
|
c.isEditable ? De((v(), C("input", {
|
|
10514
10522
|
key: 0,
|
|
10515
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
10523
|
+
"onUpdate:modelValue": p[1] || (p[1] = (_) => r.value = _),
|
|
10516
10524
|
class: "ao-card-project-phase__deadline ao-card-project-phase__deadline--input",
|
|
10517
10525
|
type: "date"
|
|
10518
10526
|
}, null, 512)), [
|
|
@@ -10739,7 +10747,7 @@ const Rh = { class: "ao-mapping-card-project-phase__header" }, Nh = { class: "ao
|
|
|
10739
10747
|
return (c = a.milestones) == null ? void 0 : c.reduce(
|
|
10740
10748
|
(p, h) => {
|
|
10741
10749
|
var w;
|
|
10742
|
-
return p + ((w = h.activities) == null ? void 0 : w.reduce((
|
|
10750
|
+
return p + ((w = h.activities) == null ? void 0 : w.reduce((_, g) => _ + (g.estimation || 0), 0));
|
|
10743
10751
|
},
|
|
10744
10752
|
0
|
|
10745
10753
|
);
|
|
@@ -10774,7 +10782,7 @@ const Rh = { class: "ao-mapping-card-project-phase__header" }, Nh = { class: "ao
|
|
|
10774
10782
|
"is-clickable": c.isEditable,
|
|
10775
10783
|
color: w,
|
|
10776
10784
|
withLeftBorder: !0,
|
|
10777
|
-
onClick: (
|
|
10785
|
+
onClick: (_) => u(_, h)
|
|
10778
10786
|
}, fa({
|
|
10779
10787
|
default: N(() => [
|
|
10780
10788
|
f("div", Nh, [
|
|
@@ -10813,7 +10821,7 @@ const Rh = { class: "ao-mapping-card-project-phase__header" }, Nh = { class: "ao
|
|
|
10813
10821
|
}, [
|
|
10814
10822
|
c.isEditable ? De((v(), C("input", {
|
|
10815
10823
|
key: 0,
|
|
10816
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
10824
|
+
"onUpdate:modelValue": p[1] || (p[1] = (_) => r.value = _),
|
|
10817
10825
|
class: "ao-mapping-card-project-phase__deadline ao-mapping-card-project-phase__deadline--input",
|
|
10818
10826
|
type: "date"
|
|
10819
10827
|
}, null, 512)), [
|
|
@@ -10884,8 +10892,8 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
10884
10892
|
const a = t, { t: s } = yt();
|
|
10885
10893
|
ce(
|
|
10886
10894
|
() => a.phase.milestones,
|
|
10887
|
-
(m,
|
|
10888
|
-
Xe(m,
|
|
10895
|
+
(m, y) => {
|
|
10896
|
+
Xe(m, y);
|
|
10889
10897
|
}
|
|
10890
10898
|
);
|
|
10891
10899
|
const n = (m) => {
|
|
@@ -10899,12 +10907,12 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
10899
10907
|
(m) => j3(m, a.closedStatus)
|
|
10900
10908
|
)
|
|
10901
10909
|
), r = (m) => {
|
|
10902
|
-
const { name:
|
|
10910
|
+
const { name: y, rank: P } = Mt(
|
|
10903
10911
|
l.value ?? [],
|
|
10904
10912
|
"milestone",
|
|
10905
10913
|
s
|
|
10906
10914
|
);
|
|
10907
|
-
e("addMilestone", { name:
|
|
10915
|
+
e("addMilestone", { name: y, rank: P, phaseId: m });
|
|
10908
10916
|
}, d = (m) => {
|
|
10909
10917
|
e("updateMilestone", m);
|
|
10910
10918
|
}, u = (m) => {
|
|
@@ -10924,11 +10932,11 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
10924
10932
|
id: m.moved.element.id,
|
|
10925
10933
|
rank: Ft(l.value, m.moved.newIndex)
|
|
10926
10934
|
});
|
|
10927
|
-
},
|
|
10935
|
+
}, _ = qi(), g = A(() => _.path.includes("/mapping")), $ = A(() => {
|
|
10928
10936
|
var m;
|
|
10929
|
-
return a.phase.id !== ((m =
|
|
10937
|
+
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)" };
|
|
10930
10938
|
});
|
|
10931
|
-
return (m,
|
|
10939
|
+
return (m, y) => (v(), C("li", Kh, [
|
|
10932
10940
|
f("div", {
|
|
10933
10941
|
class: "ao-project-phases__draggable-card",
|
|
10934
10942
|
style: pt($.value)
|
|
@@ -11020,7 +11028,7 @@ const Kh = { class: "ao-project-phase" }, Gh = {
|
|
|
11020
11028
|
label: m.$t("project.milestone.add"),
|
|
11021
11029
|
class: "ao-project-phase__milestone-add",
|
|
11022
11030
|
"icon-name": "Add",
|
|
11023
|
-
onClick:
|
|
11031
|
+
onClick: y[0] || (y[0] = () => r(m.phase.id))
|
|
11024
11032
|
}, null, 8, ["label"])) : O("", !0)
|
|
11025
11033
|
])
|
|
11026
11034
|
], 4)
|
|
@@ -11123,7 +11131,7 @@ const l9 = ["onSubmit"], r9 = { class: "ao-add-template-modal__form-body" }, u9
|
|
|
11123
11131
|
const a = t, s = A(() => a.templates.map((l) => ({
|
|
11124
11132
|
value: l.id,
|
|
11125
11133
|
label: l.name
|
|
11126
|
-
}))), n =
|
|
11134
|
+
}))), n = Y(null), o = (l) => {
|
|
11127
11135
|
n.value = l;
|
|
11128
11136
|
}, i = () => {
|
|
11129
11137
|
n.value && e("apply", n.value, a.projectId);
|
|
@@ -11173,7 +11181,7 @@ const d9 = ["onSubmit"], p9 = { class: "ao-save-template-modal__form-body" }, v9
|
|
|
11173
11181
|
},
|
|
11174
11182
|
emits: ["save"],
|
|
11175
11183
|
setup(t, { emit: e }) {
|
|
11176
|
-
const a = t, s =
|
|
11184
|
+
const a = t, s = Y(""), n = Y([]);
|
|
11177
11185
|
It(() => {
|
|
11178
11186
|
n.value = a.phases.map((i) => i.id);
|
|
11179
11187
|
});
|
|
@@ -11308,7 +11316,7 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11308
11316
|
e("unarchiveMilestone", T);
|
|
11309
11317
|
}, w = (T) => {
|
|
11310
11318
|
e("addActivity", T);
|
|
11311
|
-
},
|
|
11319
|
+
}, _ = (T) => {
|
|
11312
11320
|
e("update:activity", T);
|
|
11313
11321
|
}, g = (T) => {
|
|
11314
11322
|
e("archiveActivity", T);
|
|
@@ -11316,7 +11324,7 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11316
11324
|
e("unarchiveActivity", T);
|
|
11317
11325
|
}, m = (T) => {
|
|
11318
11326
|
e("addSubtask", T);
|
|
11319
|
-
},
|
|
11327
|
+
}, y = (T) => {
|
|
11320
11328
|
e("updateSubtask", T);
|
|
11321
11329
|
}, P = (T) => {
|
|
11322
11330
|
e("deleteSubtask", T);
|
|
@@ -11332,13 +11340,13 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11332
11340
|
e("updateComment", T);
|
|
11333
11341
|
}, J = (T) => {
|
|
11334
11342
|
e("removeComment", T);
|
|
11335
|
-
}, ae =
|
|
11343
|
+
}, ae = Y(!1), j = Y(!1), G = (T, k) => {
|
|
11336
11344
|
e("applyTemplate", { templateId: T, projectId: k }), ae.value = !1;
|
|
11337
11345
|
}, le = (T, k) => {
|
|
11338
11346
|
var V;
|
|
11339
11347
|
const R = (V = a.templates) == null ? void 0 : V.at(-1), b = R ? we.LexoRank.parse(R.rank).genNext() : we.LexoRank.middle();
|
|
11340
11348
|
e("saveTemplate", { templateName: T, rank: b.format(), phaseIds: k }), j.value = !1;
|
|
11341
|
-
}, se = Es(), ee =
|
|
11349
|
+
}, se = Es(), ee = Y("overview"), E = [
|
|
11342
11350
|
{ label: "Overview", value: "overview" },
|
|
11343
11351
|
{ label: "Feed", value: "feed" },
|
|
11344
11352
|
{ label: "Mapping", value: "mapping" }
|
|
@@ -11417,7 +11425,7 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11417
11425
|
onClose: k[4] || (k[4] = (b) => T.$router.push({ name: Q(ye).project })),
|
|
11418
11426
|
onUpdateMilestone: c,
|
|
11419
11427
|
onAddActivity: w,
|
|
11420
|
-
onUpdateActivity:
|
|
11428
|
+
onUpdateActivity: _,
|
|
11421
11429
|
onArchiveActivity: g,
|
|
11422
11430
|
onUnarchiveActivity: $
|
|
11423
11431
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable", "closed-status"]),
|
|
@@ -11434,9 +11442,9 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11434
11442
|
"user-id": T.userId,
|
|
11435
11443
|
"is-editable": T.isEditable,
|
|
11436
11444
|
"attachment-enabled": T.attachmentEnabled,
|
|
11437
|
-
"onUpdate:activity":
|
|
11445
|
+
"onUpdate:activity": _,
|
|
11438
11446
|
onAddSubtask: m,
|
|
11439
|
-
onUpdateSubtask:
|
|
11447
|
+
onUpdateSubtask: y,
|
|
11440
11448
|
onDeleteSubtask: P,
|
|
11441
11449
|
onAddFiles: L,
|
|
11442
11450
|
onRemoveFile: F,
|
|
@@ -11606,15 +11614,15 @@ const T9 = { class: "ao-card-feed__header" }, O9 = {
|
|
|
11606
11614
|
f("div", B9, [
|
|
11607
11615
|
f("div", j9, [
|
|
11608
11616
|
f("ul", R9, [
|
|
11609
|
-
(v(!0), C(fe, null, _e(l.value, (
|
|
11610
|
-
key:
|
|
11617
|
+
(v(!0), C(fe, null, _e(l.value, (_) => (v(), C(fe, {
|
|
11618
|
+
key: _.id
|
|
11611
11619
|
}, [
|
|
11612
|
-
|
|
11620
|
+
_ ? (v(), C("li", N9, [
|
|
11613
11621
|
M(Je, {
|
|
11614
|
-
"user-name": Q(Gn)(
|
|
11615
|
-
"avatar-url":
|
|
11622
|
+
"user-name": Q(Gn)(_),
|
|
11623
|
+
"avatar-url": _.avatarUrl,
|
|
11616
11624
|
"is-closable": !0,
|
|
11617
|
-
onClose: () => d(
|
|
11625
|
+
onClose: () => d(_.id)
|
|
11618
11626
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
11619
11627
|
])) : O("", !0)
|
|
11620
11628
|
], 64))), 128))
|
|
@@ -11678,26 +11686,26 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11678
11686
|
setup(t, { emit: e }) {
|
|
11679
11687
|
const a = t, { t: s } = yt(), n = A(() => {
|
|
11680
11688
|
var m;
|
|
11681
|
-
return (m = a.phases) == null ? void 0 : m.find((
|
|
11689
|
+
return (m = a.phases) == null ? void 0 : m.find((y) => y.id === a.phaseId);
|
|
11682
11690
|
}), o = A(
|
|
11683
11691
|
() => {
|
|
11684
11692
|
var m;
|
|
11685
|
-
return (m = a.phases) == null ? void 0 : m.flatMap((
|
|
11693
|
+
return (m = a.phases) == null ? void 0 : m.flatMap((y) => y.milestones);
|
|
11686
11694
|
}
|
|
11687
11695
|
), i = A(() => {
|
|
11688
11696
|
var m;
|
|
11689
|
-
return (m = o.value) == null ? void 0 : m.find((
|
|
11697
|
+
return (m = o.value) == null ? void 0 : m.find((y) => y.id === a.milestoneId);
|
|
11690
11698
|
}), l = A(() => {
|
|
11691
11699
|
var m;
|
|
11692
11700
|
return (m = i.value) == null ? void 0 : m.activities;
|
|
11693
11701
|
});
|
|
11694
|
-
ce(l, (m,
|
|
11695
|
-
Xe(m,
|
|
11702
|
+
ce(l, (m, y) => {
|
|
11703
|
+
Xe(m, y);
|
|
11696
11704
|
});
|
|
11697
11705
|
const r = (m) => {
|
|
11698
11706
|
e("close", m);
|
|
11699
11707
|
}, d = () => {
|
|
11700
|
-
const { name: m, rank:
|
|
11708
|
+
const { name: m, rank: y } = Mt(
|
|
11701
11709
|
l.value ?? [],
|
|
11702
11710
|
"activity",
|
|
11703
11711
|
s
|
|
@@ -11705,7 +11713,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11705
11713
|
e("addActivity", {
|
|
11706
11714
|
milestoneId: a.milestoneId,
|
|
11707
11715
|
name: m,
|
|
11708
|
-
rank:
|
|
11716
|
+
rank: y,
|
|
11709
11717
|
projectId: a.projectId
|
|
11710
11718
|
});
|
|
11711
11719
|
}, u = (m) => {
|
|
@@ -11737,17 +11745,17 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11737
11745
|
deadline: m != null && m.length ? m : null
|
|
11738
11746
|
});
|
|
11739
11747
|
}
|
|
11740
|
-
}), w = (m) => a.closedStatus ? Hs(m, a.closedStatus) : !1,
|
|
11748
|
+
}), w = (m) => a.closedStatus ? Hs(m, a.closedStatus) : !1, _ = A(() => {
|
|
11741
11749
|
var m;
|
|
11742
|
-
return ((m = a.users) == null ? void 0 : m.map((
|
|
11743
|
-
label: `${
|
|
11744
|
-
value:
|
|
11745
|
-
avatar:
|
|
11750
|
+
return ((m = a.users) == null ? void 0 : m.map((y) => ({
|
|
11751
|
+
label: `${y.firstName} ${y.lastName}`,
|
|
11752
|
+
value: y.id,
|
|
11753
|
+
avatar: y.avatarUrl
|
|
11746
11754
|
}))) || [];
|
|
11747
11755
|
}), g = A({
|
|
11748
11756
|
get() {
|
|
11749
|
-
var m,
|
|
11750
|
-
return (
|
|
11757
|
+
var m, y;
|
|
11758
|
+
return (y = (m = i.value) == null ? void 0 : m.assignee) != null && y.id ? [i.value.assignee.id] : [];
|
|
11751
11759
|
},
|
|
11752
11760
|
set(m) {
|
|
11753
11761
|
e("updateMilestone", {
|
|
@@ -11765,7 +11773,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11765
11773
|
e("updateMilestone", { id: a.milestoneId, important: m });
|
|
11766
11774
|
}
|
|
11767
11775
|
});
|
|
11768
|
-
return (m,
|
|
11776
|
+
return (m, y) => {
|
|
11769
11777
|
var P;
|
|
11770
11778
|
return v(), C("div", G9, [
|
|
11771
11779
|
f("header", X9, [
|
|
@@ -11786,7 +11794,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11786
11794
|
}, null, 8, ["title"]),
|
|
11787
11795
|
M(As, {
|
|
11788
11796
|
modelValue: $.value,
|
|
11789
|
-
"onUpdate:modelValue":
|
|
11797
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => $.value = I),
|
|
11790
11798
|
modelModifiers: { lazy: !0 },
|
|
11791
11799
|
disabled: !m.isEditable,
|
|
11792
11800
|
class: "ao-milestone__important",
|
|
@@ -11802,7 +11810,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11802
11810
|
f("div", a4, [
|
|
11803
11811
|
f("label", s4, [
|
|
11804
11812
|
De(f("input", {
|
|
11805
|
-
"onUpdate:modelValue":
|
|
11813
|
+
"onUpdate:modelValue": y[1] || (y[1] = (I) => h.value = I),
|
|
11806
11814
|
class: "ao-milestone__field ao-milestone__date-field",
|
|
11807
11815
|
type: "date"
|
|
11808
11816
|
}, null, 512), [
|
|
@@ -11819,8 +11827,8 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11819
11827
|
f("label", i4, [
|
|
11820
11828
|
M(Se, {
|
|
11821
11829
|
modelValue: g.value,
|
|
11822
|
-
"onUpdate:modelValue":
|
|
11823
|
-
options:
|
|
11830
|
+
"onUpdate:modelValue": y[2] || (y[2] = (I) => g.value = I),
|
|
11831
|
+
options: _.value,
|
|
11824
11832
|
"close-on-select": !0,
|
|
11825
11833
|
searchable: !0,
|
|
11826
11834
|
max: 1,
|
|
@@ -11847,7 +11855,7 @@ const G9 = { class: "ao-project-milestone" }, X9 = { class: "ao-project-mileston
|
|
|
11847
11855
|
]),
|
|
11848
11856
|
M(an, {
|
|
11849
11857
|
color: p.value,
|
|
11850
|
-
"onUpdate:color":
|
|
11858
|
+
"onUpdate:color": y[3] || (y[3] = (I) => p.value = I)
|
|
11851
11859
|
}, {
|
|
11852
11860
|
clickable: N(({ openPicker: I, bgColor: L }) => [
|
|
11853
11861
|
f("button", {
|
|
@@ -11992,11 +12000,11 @@ const u4 = /* @__PURE__ */ q({
|
|
|
11992
12000
|
e("addComment", g);
|
|
11993
12001
|
}, w = (g) => {
|
|
11994
12002
|
e("updateComment", g);
|
|
11995
|
-
},
|
|
12003
|
+
}, _ = (g) => {
|
|
11996
12004
|
e("removeComment", g);
|
|
11997
12005
|
};
|
|
11998
12006
|
return (g, $) => {
|
|
11999
|
-
var m,
|
|
12007
|
+
var m, y;
|
|
12000
12008
|
return i.value ? (v(), D(Ys, {
|
|
12001
12009
|
key: 0,
|
|
12002
12010
|
activity: i.value,
|
|
@@ -12008,7 +12016,7 @@ const u4 = /* @__PURE__ */ q({
|
|
|
12008
12016
|
"user-id": g.userId,
|
|
12009
12017
|
"is-task-checkable": g.isTaskCheckable,
|
|
12010
12018
|
statuses: g.statuses,
|
|
12011
|
-
breadcrumbs: `${(m = s.value) == null ? void 0 : m.name} / ${(
|
|
12019
|
+
breadcrumbs: `${(m = s.value) == null ? void 0 : m.name} / ${(y = o.value) == null ? void 0 : y.name}`,
|
|
12012
12020
|
"is-editable": g.isEditable,
|
|
12013
12021
|
"attachment-enabled": g.attachmentEnabled,
|
|
12014
12022
|
projects: [g.project],
|
|
@@ -12021,7 +12029,7 @@ const u4 = /* @__PURE__ */ q({
|
|
|
12021
12029
|
onRemoveFile: p,
|
|
12022
12030
|
onAddComment: h,
|
|
12023
12031
|
onUpdateComment: w,
|
|
12024
|
-
onRemoveComment:
|
|
12032
|
+
onRemoveComment: _
|
|
12025
12033
|
}, {
|
|
12026
12034
|
default: N((P) => [
|
|
12027
12035
|
te(g.$slots, "default", ha(ma(P)))
|
|
@@ -12100,7 +12108,7 @@ function bs(t) {
|
|
|
12100
12108
|
}
|
|
12101
12109
|
const C4 = v4 ? window : void 0;
|
|
12102
12110
|
function _4() {
|
|
12103
|
-
const t =
|
|
12111
|
+
const t = Y(!1), e = Lt();
|
|
12104
12112
|
return e && It(() => {
|
|
12105
12113
|
t.value = !0;
|
|
12106
12114
|
}, e), t;
|
|
@@ -12121,15 +12129,15 @@ function b4(t, e, a = {}) {
|
|
|
12121
12129
|
return (Array.isArray(w) ? w : [w]).map(bs).filter(f4);
|
|
12122
12130
|
});
|
|
12123
12131
|
let u = la;
|
|
12124
|
-
const c =
|
|
12132
|
+
const c = Y(l), p = r.value ? ce(
|
|
12125
12133
|
() => [d.value, bs(s), c.value],
|
|
12126
|
-
([w,
|
|
12134
|
+
([w, _]) => {
|
|
12127
12135
|
if (u(), !c.value || !w.length)
|
|
12128
12136
|
return;
|
|
12129
12137
|
const g = new IntersectionObserver(
|
|
12130
12138
|
e,
|
|
12131
12139
|
{
|
|
12132
|
-
root: bs(
|
|
12140
|
+
root: bs(_),
|
|
12133
12141
|
rootMargin: n,
|
|
12134
12142
|
threshold: o
|
|
12135
12143
|
}
|
|
@@ -12188,7 +12196,7 @@ const w4 = {
|
|
|
12188
12196
|
},
|
|
12189
12197
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "unarchiveActivity", "updateActivity"],
|
|
12190
12198
|
setup(t, { emit: e }) {
|
|
12191
|
-
const a = t, s =
|
|
12199
|
+
const a = t, s = Y(!1), n = Y(null);
|
|
12192
12200
|
b4(n, ([{ isIntersecting: u }]) => {
|
|
12193
12201
|
s.value = u;
|
|
12194
12202
|
}), ce(s, (u) => {
|
|
@@ -12213,7 +12221,7 @@ const w4 = {
|
|
|
12213
12221
|
u.moved.newIndex
|
|
12214
12222
|
)
|
|
12215
12223
|
});
|
|
12216
|
-
}, d =
|
|
12224
|
+
}, d = Y(!1);
|
|
12217
12225
|
return (u, c) => (v(), C("div", w4, [
|
|
12218
12226
|
u.title || u.$slots.header ? te(u.$slots, "header", { key: 0 }, () => {
|
|
12219
12227
|
var p;
|
|
@@ -12247,7 +12255,7 @@ const w4 = {
|
|
|
12247
12255
|
}
|
|
12248
12256
|
}), {
|
|
12249
12257
|
item: N(({ element: p }) => {
|
|
12250
|
-
var h, w,
|
|
12258
|
+
var h, w, _, g, $, m, y, P, I;
|
|
12251
12259
|
return [
|
|
12252
12260
|
M(gi, {
|
|
12253
12261
|
class: X(o(p) ? "ao-list-draggable" : ""),
|
|
@@ -12255,11 +12263,11 @@ const w4 = {
|
|
|
12255
12263
|
name: p.name,
|
|
12256
12264
|
"project-name": (h = p.project) == null ? void 0 : h.name,
|
|
12257
12265
|
"project-color": (w = p.project) == null ? void 0 : w.color,
|
|
12258
|
-
"phase-name": (g = (
|
|
12266
|
+
"phase-name": (g = (_ = p.milestone) == null ? void 0 : _.phase) == null ? void 0 : g.name,
|
|
12259
12267
|
"milestone-name": ($ = p.milestone) == null ? void 0 : $.name,
|
|
12260
12268
|
"milestone-color": (m = p.milestone) == null ? void 0 : m.color,
|
|
12261
12269
|
deadline: p.deadline,
|
|
12262
|
-
rules: ((
|
|
12270
|
+
rules: ((y = p.rules) == null ? void 0 : y.length) || 0,
|
|
12263
12271
|
tasks: p.tasks,
|
|
12264
12272
|
description: p.description,
|
|
12265
12273
|
important: p.important,
|
|
@@ -12401,7 +12409,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12401
12409
|
}
|
|
12402
12410
|
const o = Rt(a, "activities"), i = async (k, R) => {
|
|
12403
12411
|
await e("selectActivity", k, R);
|
|
12404
|
-
}, l =
|
|
12412
|
+
}, l = Y({}), r = Y(!1), d = Y(!1), u = A(() => a.project ? "milestone" : "project");
|
|
12405
12413
|
ce(
|
|
12406
12414
|
[() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
|
|
12407
12415
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -12410,8 +12418,8 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12410
12418
|
k.map((Z) => [
|
|
12411
12419
|
Z.id,
|
|
12412
12420
|
R.filter((H) => {
|
|
12413
|
-
var
|
|
12414
|
-
return ((
|
|
12421
|
+
var x;
|
|
12422
|
+
return ((x = H.status) == null ? void 0 : x.id) === Z.id;
|
|
12415
12423
|
})
|
|
12416
12424
|
])
|
|
12417
12425
|
), b && !r.value ? (i(b, null), r.value = !0) : V && !r.value && (i(null, V), r.value = !0), d.value && Xe(R, ne);
|
|
@@ -12433,7 +12441,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12433
12441
|
d.value = !1, e("update:filters", { ...a.filters, [k]: R });
|
|
12434
12442
|
}, w = A(
|
|
12435
12443
|
() => a.project ? [a.project] : a.projects ?? []
|
|
12436
|
-
),
|
|
12444
|
+
), _ = A(() => w.value.map((k) => ({
|
|
12437
12445
|
value: k.id,
|
|
12438
12446
|
label: k.name
|
|
12439
12447
|
}))), g = A(() => {
|
|
@@ -12448,7 +12456,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12448
12456
|
avatar: k.avatarUrl
|
|
12449
12457
|
}))), m = (k) => {
|
|
12450
12458
|
a.selectedActivity && e("update:activity", k);
|
|
12451
|
-
},
|
|
12459
|
+
}, y = (k) => {
|
|
12452
12460
|
e("update:activity", k);
|
|
12453
12461
|
}, P = (k) => {
|
|
12454
12462
|
e("archiveActivity", k);
|
|
@@ -12479,7 +12487,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12479
12487
|
}, se = (k) => {
|
|
12480
12488
|
const { id: R } = a.selectedActivity || {};
|
|
12481
12489
|
R && e("removeComment", k);
|
|
12482
|
-
}, ee = Es(), E =
|
|
12490
|
+
}, ee = Es(), E = Y("feed"), T = [
|
|
12483
12491
|
{ label: "Overview", value: "overview" },
|
|
12484
12492
|
{ label: "Feed", value: "feed" },
|
|
12485
12493
|
{ label: "Mapping", value: "mapping" }
|
|
@@ -12508,7 +12516,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12508
12516
|
key: 0,
|
|
12509
12517
|
"model-value": k.filters[Q(Dt).project],
|
|
12510
12518
|
mode: "tags",
|
|
12511
|
-
options:
|
|
12519
|
+
options: _.value,
|
|
12512
12520
|
"close-on-select": !1,
|
|
12513
12521
|
searchable: !0,
|
|
12514
12522
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
@@ -12605,7 +12613,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12605
12613
|
onSelectActivity: i,
|
|
12606
12614
|
onArchiveActivity: P,
|
|
12607
12615
|
onUnarchiveActivity: I,
|
|
12608
|
-
onUpdateActivity:
|
|
12616
|
+
onUpdateActivity: y
|
|
12609
12617
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "user-id", "is-editable", "tagType", "onAdd"]))), 128))
|
|
12610
12618
|
]),
|
|
12611
12619
|
(v(), D(Tt, { to: "body" }, [
|
|
@@ -12677,13 +12685,13 @@ const B4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
|
|
|
12677
12685
|
e("unarchivePhase", g);
|
|
12678
12686
|
}, r = (g) => {
|
|
12679
12687
|
e("copyPhaseToTemplate", g);
|
|
12680
|
-
}, d =
|
|
12688
|
+
}, d = Y(!1), u = Y(!1), c = (g, $) => {
|
|
12681
12689
|
e("applyTemplate", { templateId: g, projectId: $ }), d.value = !1;
|
|
12682
12690
|
}, p = (g, $) => {
|
|
12683
12691
|
var P;
|
|
12684
|
-
const m = (P = a.templates) == null ? void 0 : P.at(-1),
|
|
12685
|
-
e("saveTemplate", { templateName: g, rank:
|
|
12686
|
-
}, h = Es(), w =
|
|
12692
|
+
const m = (P = a.templates) == null ? void 0 : P.at(-1), y = m ? we.LexoRank.parse(m.rank).genNext() : we.LexoRank.middle();
|
|
12693
|
+
e("saveTemplate", { templateName: g, rank: y.format(), phaseIds: $ }), u.value = !1;
|
|
12694
|
+
}, h = Es(), w = Y("mapping"), _ = [
|
|
12687
12695
|
{ label: "Overview", value: "overview" },
|
|
12688
12696
|
{ label: "Feed", value: "feed" },
|
|
12689
12697
|
{ label: "Mapping", value: "mapping" }
|
|
@@ -12696,7 +12704,7 @@ const B4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
|
|
|
12696
12704
|
M(ba, null, {
|
|
12697
12705
|
primary: N(() => [
|
|
12698
12706
|
M(sn, {
|
|
12699
|
-
tabs:
|
|
12707
|
+
tabs: _,
|
|
12700
12708
|
modelValue: w.value,
|
|
12701
12709
|
"onUpdate:modelValue": $[0] || ($[0] = (m) => w.value = m)
|
|
12702
12710
|
}, null, 8, ["modelValue"]),
|