@26lights/orcha 0.14.7 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +270 -274
- package/dist/orcha.umd.js +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as y, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as te, toDisplayString as z, createCommentVNode as A, ref as J, watch as
|
|
1
|
+
import { defineComponent as x, openBlock as c, createBlock as N, unref as q, mergeProps as Ve, createElementBlock as h, createElementVNode as v, pushScopeId as ln, popScopeId as rn, createStaticVNode as un, computed as y, resolveDynamicComponent as tt, normalizeClass as G, renderSlot as te, toDisplayString as z, createCommentVNode as A, ref as J, watch as re, nextTick as Ee, withKeys as Ye, toHandlers as dn, withCtx as j, createTextVNode as e1, createVNode as T, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as be, onMounted as Dt, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as ct, normalizeProps as fn, guardReactiveProps as vn, onUpdated as pn, withDirectives as ft, vModelText as Et, vModelCheckbox as hn, Teleport as It, resolveComponent as mn, getCurrentScope as Cn, onScopeDispose as _n, provide as gn } from "vue";
|
|
2
2
|
import { RouterView as bn } from "vue-router";
|
|
3
3
|
import Xe from "vuedraggable";
|
|
4
4
|
const Y4 = /* @__PURE__ */ x({
|
|
@@ -1206,7 +1206,7 @@ function ca(a) {
|
|
|
1206
1206
|
r(u, d);
|
|
1207
1207
|
});
|
|
1208
1208
|
};
|
|
1209
|
-
return
|
|
1209
|
+
return re(e, async (r) => {
|
|
1210
1210
|
await Ee(() => {
|
|
1211
1211
|
setTimeout(() => {
|
|
1212
1212
|
a.value && r && (a.value.focus(), t.value = a.value[s.value]);
|
|
@@ -1244,12 +1244,12 @@ const me = /* @__PURE__ */ x({
|
|
|
1244
1244
|
e("update:title", g);
|
|
1245
1245
|
}), f = l(), p = async () => {
|
|
1246
1246
|
n.value && o(!1);
|
|
1247
|
-
},
|
|
1247
|
+
}, C = () => {
|
|
1248
1248
|
e("toggle-is-editing", !1);
|
|
1249
1249
|
}, $ = (M) => {
|
|
1250
1250
|
M.stopPropagation(), n.value || o(!0);
|
|
1251
1251
|
};
|
|
1252
|
-
return
|
|
1252
|
+
return re(
|
|
1253
1253
|
() => t.isEditable,
|
|
1254
1254
|
(M) => {
|
|
1255
1255
|
M || f();
|
|
@@ -1271,7 +1271,7 @@ const me = /* @__PURE__ */ x({
|
|
|
1271
1271
|
type: q(n) ? "text" : null,
|
|
1272
1272
|
value: q(n) ? M.title : null,
|
|
1273
1273
|
tabindex: "0",
|
|
1274
|
-
onKeyup: Ye(
|
|
1274
|
+
onKeyup: Ye(C, ["enter"])
|
|
1275
1275
|
}, dn(d.value), {
|
|
1276
1276
|
onKeydown: Ye(q(f), ["esc"])
|
|
1277
1277
|
}), {
|
|
@@ -1549,28 +1549,28 @@ function Gt(a, e) {
|
|
|
1549
1549
|
var u = n1(), f = Ke((t = (s = (n = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1550
1550
|
if (!(f >= 0 && f <= 6))
|
|
1551
1551
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1552
|
-
var p = He(a),
|
|
1552
|
+
var p = He(a), C = p.getUTCDay(), $ = (C < f ? 7 : 0) + C - f;
|
|
1553
1553
|
return p.setUTCDate(p.getUTCDate() - $), p.setUTCHours(0, 0, 0, 0), p;
|
|
1554
1554
|
}
|
|
1555
1555
|
function Ca(a, e) {
|
|
1556
1556
|
var t, s, n, o, i, l, r, d;
|
|
1557
1557
|
ge(1, arguments);
|
|
1558
|
-
var u = He(a), f = u.getUTCFullYear(), p = n1(),
|
|
1559
|
-
if (!(
|
|
1558
|
+
var u = He(a), f = u.getUTCFullYear(), p = n1(), C = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
1559
|
+
if (!(C >= 1 && C <= 7))
|
|
1560
1560
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1561
1561
|
var $ = /* @__PURE__ */ new Date(0);
|
|
1562
|
-
$.setUTCFullYear(f + 1, 0,
|
|
1562
|
+
$.setUTCFullYear(f + 1, 0, C), $.setUTCHours(0, 0, 0, 0);
|
|
1563
1563
|
var M = Gt($, e), S = /* @__PURE__ */ new Date(0);
|
|
1564
|
-
S.setUTCFullYear(f, 0,
|
|
1564
|
+
S.setUTCFullYear(f, 0, C), S.setUTCHours(0, 0, 0, 0);
|
|
1565
1565
|
var _ = Gt(S, e);
|
|
1566
1566
|
return u.getTime() >= M.getTime() ? f + 1 : u.getTime() >= _.getTime() ? f : f - 1;
|
|
1567
1567
|
}
|
|
1568
1568
|
function Td(a, e) {
|
|
1569
1569
|
var t, s, n, o, i, l, r, d;
|
|
1570
1570
|
ge(1, arguments);
|
|
1571
|
-
var u = n1(), f = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ca(a, e),
|
|
1572
|
-
|
|
1573
|
-
var $ = Gt(
|
|
1571
|
+
var u = n1(), f = Ke((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (d = r.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ca(a, e), C = /* @__PURE__ */ new Date(0);
|
|
1572
|
+
C.setUTCFullYear(p, 0, f), C.setUTCHours(0, 0, 0, 0);
|
|
1573
|
+
var $ = Gt(C, e);
|
|
1574
1574
|
return $;
|
|
1575
1575
|
}
|
|
1576
1576
|
var Ed = 6048e5;
|
|
@@ -2685,12 +2685,12 @@ var Mc = {
|
|
|
2685
2685
|
const kc = Mc;
|
|
2686
2686
|
var Ac = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Sc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tc = /^'([^]*?)'?$/, Ec = /''/g, Ic = /[a-zA-Z]/;
|
|
2687
2687
|
function Oc(a, e, t) {
|
|
2688
|
-
var s, n, o, i, l, r, d, u, f, p,
|
|
2688
|
+
var s, n, o, i, l, r, d, u, f, p, C, $, M, S, _, g, V, R;
|
|
2689
2689
|
ge(2, arguments);
|
|
2690
2690
|
var K = String(e), D = n1(), X = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : D.locale) !== null && s !== void 0 ? s : kc, ae = Ke((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (d = t.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : D.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = D.locale) === null || f === void 0 || (p = f.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2691
2691
|
if (!(ae >= 1 && ae <= 7))
|
|
2692
2692
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2693
|
-
var I = Ke((
|
|
2693
|
+
var I = Ke((C = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (V = D.locale) === null || V === void 0 || (R = V.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && C !== void 0 ? C : 0);
|
|
2694
2694
|
if (!(I >= 0 && I <= 6))
|
|
2695
2695
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2696
2696
|
if (!X.localize)
|
|
@@ -2706,23 +2706,23 @@ function Oc(a, e, t) {
|
|
|
2706
2706
|
locale: X,
|
|
2707
2707
|
_originalDate: ee
|
|
2708
2708
|
}, ue = K.match(Sc).map(function(ne) {
|
|
2709
|
-
var
|
|
2710
|
-
if (
|
|
2711
|
-
var ie = Pd[
|
|
2709
|
+
var le = ne[0];
|
|
2710
|
+
if (le === "p" || le === "P") {
|
|
2711
|
+
var ie = Pd[le];
|
|
2712
2712
|
return ie(ne, X.formatLong);
|
|
2713
2713
|
}
|
|
2714
2714
|
return ne;
|
|
2715
2715
|
}).join("").match(Ac).map(function(ne) {
|
|
2716
2716
|
if (ne === "''")
|
|
2717
2717
|
return "'";
|
|
2718
|
-
var
|
|
2719
|
-
if (
|
|
2718
|
+
var le = ne[0];
|
|
2719
|
+
if (le === "'")
|
|
2720
2720
|
return Lc(ne);
|
|
2721
|
-
var ie = Vd[
|
|
2721
|
+
var ie = Vd[le];
|
|
2722
2722
|
if (ie)
|
|
2723
2723
|
return !(t != null && t.useAdditionalWeekYearTokens) && Ud(ne) && J1(ne, e, String(a)), !(t != null && t.useAdditionalDayOfYearTokens) && Rd(ne) && J1(ne, e, String(a)), ie(k, ne, X.localize, P);
|
|
2724
|
-
if (
|
|
2725
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" +
|
|
2724
|
+
if (le.match(Ic))
|
|
2725
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + le + "`");
|
|
2726
2726
|
return ne;
|
|
2727
2727
|
}).join("");
|
|
2728
2728
|
return ue;
|
|
@@ -3434,10 +3434,10 @@ function $a() {
|
|
|
3434
3434
|
break;
|
|
3435
3435
|
$ = M, r = S;
|
|
3436
3436
|
}
|
|
3437
|
-
let p = n.middleInternal(i, l, r, d),
|
|
3438
|
-
for (let $ = p.getScale(); $ > 0; $ =
|
|
3439
|
-
|
|
3440
|
-
const M = p.setScale(
|
|
3437
|
+
let p = n.middleInternal(i, l, r, d), C;
|
|
3438
|
+
for (let $ = p.getScale(); $ > 0; $ = C) {
|
|
3439
|
+
C = $ - 1;
|
|
3440
|
+
const M = p.setScale(C);
|
|
3441
3441
|
if (i.compareTo(M) >= 0 || M.compareTo(l) >= 0)
|
|
3442
3442
|
break;
|
|
3443
3443
|
p = M;
|
|
@@ -4219,47 +4219,47 @@ function aa(a, e, t) {
|
|
|
4219
4219
|
floating: n
|
|
4220
4220
|
} = a;
|
|
4221
4221
|
const o = D1(e), i = Sa(e), l = Aa(i), r = ht(e), d = o === "y", u = s.x + s.width / 2 - n.width / 2, f = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
|
|
4222
|
-
let
|
|
4222
|
+
let C;
|
|
4223
4223
|
switch (r) {
|
|
4224
4224
|
case "top":
|
|
4225
|
-
|
|
4225
|
+
C = {
|
|
4226
4226
|
x: u,
|
|
4227
4227
|
y: s.y - n.height
|
|
4228
4228
|
};
|
|
4229
4229
|
break;
|
|
4230
4230
|
case "bottom":
|
|
4231
|
-
|
|
4231
|
+
C = {
|
|
4232
4232
|
x: u,
|
|
4233
4233
|
y: s.y + s.height
|
|
4234
4234
|
};
|
|
4235
4235
|
break;
|
|
4236
4236
|
case "right":
|
|
4237
|
-
|
|
4237
|
+
C = {
|
|
4238
4238
|
x: s.x + s.width,
|
|
4239
4239
|
y: f
|
|
4240
4240
|
};
|
|
4241
4241
|
break;
|
|
4242
4242
|
case "left":
|
|
4243
|
-
|
|
4243
|
+
C = {
|
|
4244
4244
|
x: s.x - n.width,
|
|
4245
4245
|
y: f
|
|
4246
4246
|
};
|
|
4247
4247
|
break;
|
|
4248
4248
|
default:
|
|
4249
|
-
|
|
4249
|
+
C = {
|
|
4250
4250
|
x: s.x,
|
|
4251
4251
|
y: s.y
|
|
4252
4252
|
};
|
|
4253
4253
|
}
|
|
4254
4254
|
switch (u1(e)) {
|
|
4255
4255
|
case "start":
|
|
4256
|
-
|
|
4256
|
+
C[i] -= p * (t && d ? -1 : 1);
|
|
4257
4257
|
break;
|
|
4258
4258
|
case "end":
|
|
4259
|
-
|
|
4259
|
+
C[i] += p * (t && d ? -1 : 1);
|
|
4260
4260
|
break;
|
|
4261
4261
|
}
|
|
4262
|
-
return
|
|
4262
|
+
return C;
|
|
4263
4263
|
}
|
|
4264
4264
|
const l0 = async (a, e, t) => {
|
|
4265
4265
|
const {
|
|
@@ -4275,7 +4275,7 @@ const l0 = async (a, e, t) => {
|
|
|
4275
4275
|
}), {
|
|
4276
4276
|
x: u,
|
|
4277
4277
|
y: f
|
|
4278
|
-
} = aa(d, s, r), p = s,
|
|
4278
|
+
} = aa(d, s, r), p = s, C = {}, $ = 0;
|
|
4279
4279
|
for (let M = 0; M < l.length; M++) {
|
|
4280
4280
|
const {
|
|
4281
4281
|
name: S,
|
|
@@ -4291,7 +4291,7 @@ const l0 = async (a, e, t) => {
|
|
|
4291
4291
|
initialPlacement: s,
|
|
4292
4292
|
placement: p,
|
|
4293
4293
|
strategy: n,
|
|
4294
|
-
middlewareData:
|
|
4294
|
+
middlewareData: C,
|
|
4295
4295
|
rects: d,
|
|
4296
4296
|
platform: i,
|
|
4297
4297
|
elements: {
|
|
@@ -4299,10 +4299,10 @@ const l0 = async (a, e, t) => {
|
|
|
4299
4299
|
floating: e
|
|
4300
4300
|
}
|
|
4301
4301
|
});
|
|
4302
|
-
if (u = g ?? u, f = V ?? f,
|
|
4303
|
-
...
|
|
4302
|
+
if (u = g ?? u, f = V ?? f, C = {
|
|
4303
|
+
...C,
|
|
4304
4304
|
[S]: {
|
|
4305
|
-
...
|
|
4305
|
+
...C[S],
|
|
4306
4306
|
...R
|
|
4307
4307
|
}
|
|
4308
4308
|
}, K && $ <= 50) {
|
|
@@ -4322,7 +4322,7 @@ const l0 = async (a, e, t) => {
|
|
|
4322
4322
|
y: f,
|
|
4323
4323
|
placement: p,
|
|
4324
4324
|
strategy: n,
|
|
4325
|
-
middlewareData:
|
|
4325
|
+
middlewareData: C
|
|
4326
4326
|
};
|
|
4327
4327
|
};
|
|
4328
4328
|
async function Ta(a, e) {
|
|
@@ -4340,8 +4340,8 @@ async function Ta(a, e) {
|
|
|
4340
4340
|
rootBoundary: u = "viewport",
|
|
4341
4341
|
elementContext: f = "floating",
|
|
4342
4342
|
altBoundary: p = !1,
|
|
4343
|
-
padding:
|
|
4344
|
-
} = V1(e, a), $ = o0(
|
|
4343
|
+
padding: C = 0
|
|
4344
|
+
} = V1(e, a), $ = o0(C), S = l[p ? f === "floating" ? "reference" : "floating" : f], _ = Qt(await o.getClippingRect({
|
|
4345
4345
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(S))) == null || t ? S : S.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4346
4346
|
boundary: d,
|
|
4347
4347
|
rootBoundary: u,
|
|
@@ -4385,7 +4385,7 @@ const r0 = function(a) {
|
|
|
4385
4385
|
mainAxis: u = !0,
|
|
4386
4386
|
crossAxis: f = !0,
|
|
4387
4387
|
fallbackPlacements: p,
|
|
4388
|
-
fallbackStrategy:
|
|
4388
|
+
fallbackStrategy: C = "bestFit",
|
|
4389
4389
|
fallbackAxisSideDirection: $ = "none",
|
|
4390
4390
|
flipAlignment: M = !0,
|
|
4391
4391
|
...S
|
|
@@ -4416,12 +4416,12 @@ const r0 = function(a) {
|
|
|
4416
4416
|
placement: P
|
|
4417
4417
|
}
|
|
4418
4418
|
};
|
|
4419
|
-
let ue = (ee = ae.filter((ne) => ne.overflows[0] <= 0).sort((ne,
|
|
4419
|
+
let ue = (ee = ae.filter((ne) => ne.overflows[0] <= 0).sort((ne, le) => ne.overflows[1] - le.overflows[1])[0]) == null ? void 0 : ee.placement;
|
|
4420
4420
|
if (!ue)
|
|
4421
|
-
switch (
|
|
4421
|
+
switch (C) {
|
|
4422
4422
|
case "bestFit": {
|
|
4423
4423
|
var b;
|
|
4424
|
-
const ne = (b = ae.map((
|
|
4424
|
+
const ne = (b = ae.map((le) => [le.placement, le.overflows.filter((ie) => ie > 0).reduce((ie, O) => ie + O, 0)]).sort((le, ie) => le[1] - ie[1])[0]) == null ? void 0 : b[0];
|
|
4425
4425
|
ne && (ue = ne);
|
|
4426
4426
|
break;
|
|
4427
4427
|
}
|
|
@@ -4455,22 +4455,22 @@ const r0 = function(a) {
|
|
|
4455
4455
|
...l
|
|
4456
4456
|
} = V1(a, e), r = await Ta(e, l), d = ht(t), u = u1(t), f = D1(t) === "y", {
|
|
4457
4457
|
width: p,
|
|
4458
|
-
height:
|
|
4458
|
+
height: C
|
|
4459
4459
|
} = s.floating;
|
|
4460
4460
|
let $, M;
|
|
4461
4461
|
d === "top" || d === "bottom" ? ($ = d, M = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (M = d, $ = u === "end" ? "top" : "bottom");
|
|
4462
|
-
const S =
|
|
4462
|
+
const S = C - r[$], _ = p - r[M], g = !e.middlewareData.shift;
|
|
4463
4463
|
let V = S, R = _;
|
|
4464
4464
|
if (f) {
|
|
4465
4465
|
const D = p - r.left - r.right;
|
|
4466
4466
|
R = u || g ? Lt(_, D) : D;
|
|
4467
4467
|
} else {
|
|
4468
|
-
const D =
|
|
4468
|
+
const D = C - r.top - r.bottom;
|
|
4469
4469
|
V = u || g ? Lt(S, D) : D;
|
|
4470
4470
|
}
|
|
4471
4471
|
if (g && !u) {
|
|
4472
4472
|
const D = ke(r.left, 0), X = ke(r.right, 0), ae = ke(r.top, 0), I = ke(r.bottom, 0);
|
|
4473
|
-
f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) : V =
|
|
4473
|
+
f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) : V = C - 2 * (ae !== 0 || I !== 0 ? ae + I : ke(r.top, r.bottom));
|
|
4474
4474
|
}
|
|
4475
4475
|
await i({
|
|
4476
4476
|
...e,
|
|
@@ -4478,7 +4478,7 @@ const r0 = function(a) {
|
|
|
4478
4478
|
availableHeight: V
|
|
4479
4479
|
});
|
|
4480
4480
|
const K = await n.getDimensions(o.floating);
|
|
4481
|
-
return p !== K.width ||
|
|
4481
|
+
return p !== K.width || C !== K.height ? {
|
|
4482
4482
|
reset: {
|
|
4483
4483
|
rects: !0
|
|
4484
4484
|
}
|
|
@@ -4621,9 +4621,9 @@ function et(a, e, t, s) {
|
|
|
4621
4621
|
const l = v0(o, t, s) ? La(o) : Ge(0);
|
|
4622
4622
|
let r = (n.left + l.x) / i.x, d = (n.top + l.y) / i.y, u = n.width / i.x, f = n.height / i.y;
|
|
4623
4623
|
if (o) {
|
|
4624
|
-
const p = we(o),
|
|
4624
|
+
const p = we(o), C = s && je(s) ? we(s) : s;
|
|
4625
4625
|
let $ = p.frameElement;
|
|
4626
|
-
for (; $ && s &&
|
|
4626
|
+
for (; $ && s && C !== p; ) {
|
|
4627
4627
|
const M = vt($), S = $.getBoundingClientRect(), _ = Te($), g = S.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x, V = S.top + ($.clientTop + parseFloat(_.paddingTop)) * M.y;
|
|
4628
4628
|
r *= M.x, d *= M.y, u *= M.x, f *= M.y, r += g, d += V, $ = we($).frameElement;
|
|
4629
4629
|
}
|
|
@@ -4836,8 +4836,8 @@ function A0(a, e) {
|
|
|
4836
4836
|
} = a.getBoundingClientRect();
|
|
4837
4837
|
if (l || e(), !f || !p)
|
|
4838
4838
|
return;
|
|
4839
|
-
const
|
|
4840
|
-
rootMargin: -
|
|
4839
|
+
const C = zt(u), $ = zt(n.clientWidth - (d + f)), M = zt(n.clientHeight - (u + p)), S = zt(d), g = {
|
|
4840
|
+
rootMargin: -C + "px " + -$ + "px " + -M + "px " + -S + "px",
|
|
4841
4841
|
threshold: ke(0, Lt(1, r)) || 1
|
|
4842
4842
|
};
|
|
4843
4843
|
let V = !0;
|
|
@@ -4880,13 +4880,13 @@ function S0(a, e, t, s) {
|
|
|
4880
4880
|
}), o && _.addEventListener("resize", t);
|
|
4881
4881
|
});
|
|
4882
4882
|
const f = d && l ? A0(d, t) : null;
|
|
4883
|
-
let p = -1,
|
|
4884
|
-
i && (
|
|
4883
|
+
let p = -1, C = null;
|
|
4884
|
+
i && (C = new ResizeObserver((_) => {
|
|
4885
4885
|
let [g] = _;
|
|
4886
|
-
g && g.target === d &&
|
|
4887
|
-
|
|
4886
|
+
g && g.target === d && C && (C.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
4887
|
+
C && C.observe(e);
|
|
4888
4888
|
})), t();
|
|
4889
|
-
}), d && !r &&
|
|
4889
|
+
}), d && !r && C.observe(d), C.observe(e));
|
|
4890
4890
|
let $, M = r ? et(a) : null;
|
|
4891
4891
|
r && S();
|
|
4892
4892
|
function S() {
|
|
@@ -4896,7 +4896,7 @@ function S0(a, e, t, s) {
|
|
|
4896
4896
|
return t(), () => {
|
|
4897
4897
|
u.forEach((_) => {
|
|
4898
4898
|
n && _.removeEventListener("scroll", t), o && _.removeEventListener("resize", t);
|
|
4899
|
-
}), f && f(),
|
|
4899
|
+
}), f && f(), C && C.disconnect(), C = null, r && cancelAnimationFrame($);
|
|
4900
4900
|
};
|
|
4901
4901
|
}
|
|
4902
4902
|
const T0 = (a, e, t) => {
|
|
@@ -4951,8 +4951,8 @@ const T0 = (a, e, t) => {
|
|
|
4951
4951
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
4952
4952
|
}),
|
|
4953
4953
|
u0({
|
|
4954
|
-
apply({ availableWidth: f, availableHeight: p, elements:
|
|
4955
|
-
Object.assign(
|
|
4954
|
+
apply({ availableWidth: f, availableHeight: p, elements: C, rects: $ }) {
|
|
4955
|
+
Object.assign(C.floating.style, {
|
|
4956
4956
|
minHeight: `${n.value}px`,
|
|
4957
4957
|
width: `${$.reference.width}px`,
|
|
4958
4958
|
maxWidth: `${f}px`,
|
|
@@ -4983,8 +4983,8 @@ function Le(a) {
|
|
|
4983
4983
|
function I0(a, e, t) {
|
|
4984
4984
|
const { object: s, valueProp: n, mode: o } = $e(a), i = at().proxy, l = t.iv, r = (f, p = !0) => {
|
|
4985
4985
|
l.value = u(f);
|
|
4986
|
-
const
|
|
4987
|
-
e.emit("change",
|
|
4986
|
+
const C = d(f);
|
|
4987
|
+
e.emit("change", C, i), p && (e.emit("input", C), e.emit("update:modelValue", C));
|
|
4988
4988
|
}, d = (f) => s.value || Le(f) ? f : Array.isArray(f) ? f.map((p) => p[n.value]) : f[n.value], u = (f) => Le(f) ? o.value === "single" ? {} : [] : f;
|
|
4989
4989
|
return {
|
|
4990
4990
|
update: r
|
|
@@ -5004,23 +5004,23 @@ function O0(a, e) {
|
|
|
5004
5004
|
function L0(a, e, t) {
|
|
5005
5005
|
const { regex: s } = $e(a), n = at().proxy, o = t.isOpen, i = t.open, l = J(null), r = J(null), d = () => {
|
|
5006
5006
|
l.value = "";
|
|
5007
|
-
}, u = (
|
|
5008
|
-
l.value =
|
|
5009
|
-
}, f = (
|
|
5007
|
+
}, u = (C) => {
|
|
5008
|
+
l.value = C.target.value;
|
|
5009
|
+
}, f = (C) => {
|
|
5010
5010
|
if (s && s.value) {
|
|
5011
5011
|
let $ = s.value;
|
|
5012
|
-
typeof $ == "string" && ($ = new RegExp($)),
|
|
5012
|
+
typeof $ == "string" && ($ = new RegExp($)), C.key.match($) || C.preventDefault();
|
|
5013
5013
|
}
|
|
5014
|
-
}, p = (
|
|
5014
|
+
}, p = (C) => {
|
|
5015
5015
|
if (s && s.value) {
|
|
5016
|
-
let M = (
|
|
5016
|
+
let M = (C.clipboardData || /* istanbul ignore next */
|
|
5017
5017
|
window.clipboardData).getData("Text"), S = s.value;
|
|
5018
|
-
typeof S == "string" && (S = new RegExp(S)), M.split("").every((_) => !!_.match(S)) ||
|
|
5018
|
+
typeof S == "string" && (S = new RegExp(S)), M.split("").every((_) => !!_.match(S)) || C.preventDefault();
|
|
5019
5019
|
}
|
|
5020
|
-
e.emit("paste",
|
|
5020
|
+
e.emit("paste", C, n);
|
|
5021
5021
|
};
|
|
5022
|
-
return
|
|
5023
|
-
!o.value &&
|
|
5022
|
+
return re(l, (C) => {
|
|
5023
|
+
!o.value && C && i(), e.emit("search-change", C, n);
|
|
5024
5024
|
}), {
|
|
5025
5025
|
search: l,
|
|
5026
5026
|
input: r,
|
|
@@ -5066,7 +5066,7 @@ function P0(a, e, t) {
|
|
|
5066
5066
|
label: u,
|
|
5067
5067
|
appendNewTag: f,
|
|
5068
5068
|
appendNewOption: p,
|
|
5069
|
-
multipleLabel:
|
|
5069
|
+
multipleLabel: C,
|
|
5070
5070
|
object: $,
|
|
5071
5071
|
loading: M,
|
|
5072
5072
|
delay: S,
|
|
@@ -5085,7 +5085,7 @@ function P0(a, e, t) {
|
|
|
5085
5085
|
closeOnDeselect: P,
|
|
5086
5086
|
groups: ue,
|
|
5087
5087
|
reverse: ne,
|
|
5088
|
-
infinite:
|
|
5088
|
+
infinite: le,
|
|
5089
5089
|
groupOptions: ie,
|
|
5090
5090
|
groupHideEmpty: O,
|
|
5091
5091
|
groupSelect: L,
|
|
@@ -5093,48 +5093,48 @@ function P0(a, e, t) {
|
|
|
5093
5093
|
disabledProp: w,
|
|
5094
5094
|
searchStart: Y,
|
|
5095
5095
|
searchFilter: he
|
|
5096
|
-
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(
|
|
5096
|
+
} = $e(a), Z = at().proxy, F = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Na = t.pointer, st = t.clearPointer, Ra = t.focus, Ua = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(le.value && i.value === -1 ? 10 : i.value), j1 = y(() => r.value || d.value || !1), Za = y(() => f.value !== void 0 ? f.value : p.value !== void 0 ? p.value : !0), qe = y(() => {
|
|
5097
5097
|
if (ue.value) {
|
|
5098
|
-
let
|
|
5098
|
+
let m = Rt.value || /* istanbul ignore next */
|
|
5099
5099
|
[], H = [];
|
|
5100
|
-
return
|
|
5100
|
+
return m.forEach((se) => {
|
|
5101
5101
|
g1(se[ie.value]).forEach((ve) => {
|
|
5102
5102
|
H.push(Object.assign({}, ve, se[w.value] ? { [w.value]: !0 } : {}));
|
|
5103
5103
|
});
|
|
5104
5104
|
}), H;
|
|
5105
5105
|
} else {
|
|
5106
|
-
let
|
|
5106
|
+
let m = g1(Fe.value || /* istanbul ignore next */
|
|
5107
5107
|
[]);
|
|
5108
|
-
return gt.value.length && (
|
|
5108
|
+
return gt.value.length && (m = m.concat(gt.value)), m;
|
|
5109
5109
|
}
|
|
5110
5110
|
}), Z1 = y(() => {
|
|
5111
|
-
let
|
|
5112
|
-
return ne.value && (
|
|
5111
|
+
let m = qe.value;
|
|
5112
|
+
return ne.value && (m = m.reverse()), ot.value.length && (m = ot.value.concat(m)), _1(m);
|
|
5113
5113
|
}), bt = y(() => {
|
|
5114
|
-
let
|
|
5115
|
-
return v1.value > 0 && (
|
|
5114
|
+
let m = Z1.value;
|
|
5115
|
+
return v1.value > 0 && (m = m.slice(0, v1.value)), m;
|
|
5116
5116
|
}), Rt = y(() => {
|
|
5117
5117
|
if (!ue.value)
|
|
5118
5118
|
return [];
|
|
5119
|
-
let
|
|
5119
|
+
let m = [], H = Fe.value || /* istanbul ignore next */
|
|
5120
5120
|
[];
|
|
5121
|
-
return gt.value.length &&
|
|
5121
|
+
return gt.value.length && m.push({
|
|
5122
5122
|
[ae.value]: " ",
|
|
5123
5123
|
[ie.value]: [...gt.value],
|
|
5124
5124
|
__CREATE__: !0
|
|
5125
|
-
}),
|
|
5125
|
+
}), m.concat(H);
|
|
5126
5126
|
}), Fa = y(() => {
|
|
5127
|
-
let
|
|
5128
|
-
return ot.value.length && (
|
|
5127
|
+
let m = [...Rt.value].map((H) => ({ ...H }));
|
|
5128
|
+
return ot.value.length && (m[0] && m[0].__CREATE__ ? m[0][ie.value] = [...ot.value, ...m[0][ie.value]] : m = [{
|
|
5129
5129
|
[ae.value]: " ",
|
|
5130
5130
|
[ie.value]: [...ot.value],
|
|
5131
5131
|
__CREATE__: !0
|
|
5132
|
-
}].concat(
|
|
5132
|
+
}].concat(m)), m;
|
|
5133
5133
|
}), F1 = y(() => {
|
|
5134
5134
|
if (!ue.value)
|
|
5135
5135
|
return [];
|
|
5136
|
-
let
|
|
5137
|
-
return sn((
|
|
5136
|
+
let m = Fa.value;
|
|
5137
|
+
return sn((m || /* istanbul ignore next */
|
|
5138
5138
|
[]).map((H, se) => {
|
|
5139
5139
|
const ve = g1(H[ie.value]);
|
|
5140
5140
|
return {
|
|
@@ -5153,7 +5153,7 @@ function P0(a, e, t) {
|
|
|
5153
5153
|
case "tags":
|
|
5154
5154
|
return !Le(F.value) && F.value.length > 0;
|
|
5155
5155
|
}
|
|
5156
|
-
}), qa = y(() =>
|
|
5156
|
+
}), qa = y(() => C !== void 0 && C.value !== void 0 ? C.value(F.value, Z) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), Wa = y(() => !qe.value.length && !Ie.value && !ot.value.length), za = y(() => qe.value.length > 0 && bt.value.length == 0 && (U.value && ue.value || !ue.value)), ot = y(() => j1.value === !1 || !U.value ? [] : tn(U.value) !== -1 ? [] : [{
|
|
5157
5157
|
[D.value]: U.value,
|
|
5158
5158
|
[Oe.value]: U.value,
|
|
5159
5159
|
[u.value]: U.value,
|
|
@@ -5166,115 +5166,115 @@ function P0(a, e, t) {
|
|
|
5166
5166
|
case "tags":
|
|
5167
5167
|
return [];
|
|
5168
5168
|
}
|
|
5169
|
-
}), Ka = y(() => M.value || Ie.value), lt = (
|
|
5170
|
-
switch (typeof
|
|
5169
|
+
}), Ka = y(() => M.value || Ie.value), lt = (m) => {
|
|
5170
|
+
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5171
5171
|
case "single":
|
|
5172
|
-
Pe(
|
|
5172
|
+
Pe(m);
|
|
5173
5173
|
break;
|
|
5174
5174
|
case "multiple":
|
|
5175
5175
|
case "tags":
|
|
5176
|
-
Pe(F.value.concat(
|
|
5176
|
+
Pe(F.value.concat(m));
|
|
5177
5177
|
break;
|
|
5178
5178
|
}
|
|
5179
|
-
e.emit("select", q1(
|
|
5180
|
-
}, rt = (
|
|
5181
|
-
switch (typeof
|
|
5179
|
+
e.emit("select", q1(m), m, Z);
|
|
5180
|
+
}, rt = (m) => {
|
|
5181
|
+
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5182
5182
|
case "single":
|
|
5183
5183
|
z1();
|
|
5184
5184
|
break;
|
|
5185
5185
|
case "tags":
|
|
5186
5186
|
case "multiple":
|
|
5187
|
-
Pe(Array.isArray(
|
|
5187
|
+
Pe(Array.isArray(m) ? F.value.filter((H) => m.map((se) => se[D.value]).indexOf(H[D.value]) === -1) : F.value.filter((H) => H[D.value] != m[D.value]));
|
|
5188
5188
|
break;
|
|
5189
5189
|
}
|
|
5190
|
-
e.emit("deselect", q1(
|
|
5191
|
-
}, q1 = (
|
|
5192
|
-
rt(
|
|
5193
|
-
}, Ga = (
|
|
5190
|
+
e.emit("deselect", q1(m), m, Z);
|
|
5191
|
+
}, q1 = (m) => $.value ? m : m[D.value], W1 = (m) => {
|
|
5192
|
+
rt(m);
|
|
5193
|
+
}, Ga = (m, H) => {
|
|
5194
5194
|
if (H.button !== 0) {
|
|
5195
5195
|
H.preventDefault();
|
|
5196
5196
|
return;
|
|
5197
5197
|
}
|
|
5198
|
-
W1(
|
|
5198
|
+
W1(m);
|
|
5199
5199
|
}, z1 = () => {
|
|
5200
5200
|
e.emit("clear", Z), Pe(Ya.value);
|
|
5201
|
-
}, Be = (
|
|
5202
|
-
if (
|
|
5203
|
-
return n.value === "single" ? !1 : en(
|
|
5201
|
+
}, Be = (m) => {
|
|
5202
|
+
if (m.group !== void 0)
|
|
5203
|
+
return n.value === "single" ? !1 : en(m[ie.value]) && m[ie.value].length;
|
|
5204
5204
|
switch (n.value) {
|
|
5205
5205
|
case "single":
|
|
5206
|
-
return !Le(F.value) && F.value[D.value] ==
|
|
5206
|
+
return !Le(F.value) && F.value[D.value] == m[D.value];
|
|
5207
5207
|
case "tags":
|
|
5208
5208
|
case "multiple":
|
|
5209
|
-
return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(
|
|
5209
|
+
return !Le(F.value) && F.value.map((H) => H[D.value]).indexOf(m[D.value]) !== -1;
|
|
5210
5210
|
}
|
|
5211
|
-
}, h1 = (
|
|
5212
|
-
if (!h1(
|
|
5213
|
-
if (W && W.value && !Be(
|
|
5214
|
-
Ie.value = !0,
|
|
5211
|
+
}, h1 = (m) => m[w.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : F.value.length >= ee.value, xa = (m) => {
|
|
5212
|
+
if (!h1(m)) {
|
|
5213
|
+
if (W && W.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = W.value(m, Z), m instanceof Promise)) {
|
|
5214
|
+
Ie.value = !0, m.then((H) => {
|
|
5215
5215
|
Ie.value = !1, Y1(H);
|
|
5216
5216
|
});
|
|
5217
5217
|
return;
|
|
5218
5218
|
}
|
|
5219
|
-
Y1(
|
|
5219
|
+
Y1(m);
|
|
5220
5220
|
}
|
|
5221
|
-
}, Y1 = (
|
|
5222
|
-
switch (
|
|
5221
|
+
}, Y1 = (m) => {
|
|
5222
|
+
switch (m.__CREATE__ && (m = { ...m }, delete m.__CREATE__), n.value) {
|
|
5223
5223
|
case "single":
|
|
5224
|
-
if (
|
|
5225
|
-
I.value && rt(
|
|
5224
|
+
if (m && Be(m)) {
|
|
5225
|
+
I.value && rt(m), P.value && (st(), it());
|
|
5226
5226
|
return;
|
|
5227
5227
|
}
|
|
5228
|
-
|
|
5228
|
+
m && C1(m), K.value && Ce(), k.value && (st(), it()), m && lt(m);
|
|
5229
5229
|
break;
|
|
5230
5230
|
case "multiple":
|
|
5231
|
-
if (
|
|
5232
|
-
rt(
|
|
5231
|
+
if (m && Be(m)) {
|
|
5232
|
+
rt(m), P.value && (st(), it());
|
|
5233
5233
|
return;
|
|
5234
5234
|
}
|
|
5235
5235
|
if (m1()) {
|
|
5236
5236
|
e.emit("max", Z);
|
|
5237
5237
|
return;
|
|
5238
5238
|
}
|
|
5239
|
-
|
|
5239
|
+
m && (C1(m), lt(m)), K.value && Ce(), l.value && st(), k.value && it();
|
|
5240
5240
|
break;
|
|
5241
5241
|
case "tags":
|
|
5242
|
-
if (
|
|
5243
|
-
rt(
|
|
5242
|
+
if (m && Be(m)) {
|
|
5243
|
+
rt(m), P.value && (st(), it());
|
|
5244
5244
|
return;
|
|
5245
5245
|
}
|
|
5246
5246
|
if (m1()) {
|
|
5247
5247
|
e.emit("max", Z);
|
|
5248
5248
|
return;
|
|
5249
5249
|
}
|
|
5250
|
-
|
|
5250
|
+
m && C1(m), K.value && Ce(), m && lt(m), l.value && st(), k.value && it();
|
|
5251
5251
|
break;
|
|
5252
5252
|
}
|
|
5253
5253
|
k.value || Ra();
|
|
5254
|
-
}, Xa = (
|
|
5255
|
-
if (!(h1(
|
|
5254
|
+
}, Xa = (m) => {
|
|
5255
|
+
if (!(h1(m) || n.value === "single" || !L.value)) {
|
|
5256
5256
|
switch (n.value) {
|
|
5257
5257
|
case "multiple":
|
|
5258
5258
|
case "tags":
|
|
5259
|
-
Ja(
|
|
5260
|
-
|
|
5259
|
+
Ja(m[ie.value]) ? rt(m[ie.value]) : lt(
|
|
5260
|
+
m[ie.value].filter((H) => F.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[w.value]).filter((H, se) => F.value.length + 1 + se <= ee.value || ee.value === -1)
|
|
5261
5261
|
);
|
|
5262
5262
|
break;
|
|
5263
5263
|
}
|
|
5264
5264
|
k.value && Ua();
|
|
5265
5265
|
}
|
|
5266
|
-
}, C1 = (
|
|
5267
|
-
Ne(
|
|
5266
|
+
}, C1 = (m) => {
|
|
5267
|
+
Ne(m[D.value]) === void 0 && j1.value && (e.emit("tag", m[D.value], Z), e.emit("option", m[D.value], Z), e.emit("create", m[D.value], Z), Za.value && nn(m), Ce());
|
|
5268
5268
|
}, Qa = () => {
|
|
5269
|
-
n.value !== "single" && lt(bt.value.filter((
|
|
5270
|
-
}, Ja = (
|
|
5271
|
-
parseInt(
|
|
5272
|
-
), an = (
|
|
5273
|
-
gt.value.push(
|
|
5274
|
-
}, sn = (
|
|
5269
|
+
n.value !== "single" && lt(bt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5270
|
+
}, Ja = (m) => m.find((H) => !Be(H) && !H[w.value]) === void 0, en = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(m))], tn = (m, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
|
|
5271
|
+
parseInt(m) == m ? parseInt(m) : m
|
|
5272
|
+
), an = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), nn = (m) => {
|
|
5273
|
+
gt.value.push(m);
|
|
5274
|
+
}, sn = (m) => O.value ? m.filter(
|
|
5275
5275
|
(H) => U.value ? H.__VISIBLE__.length : H[ie.value].length
|
|
5276
|
-
) :
|
|
5277
|
-
let se =
|
|
5276
|
+
) : m.filter((H) => U.value ? H.__VISIBLE__.length : !0), _1 = (m, H = !0) => {
|
|
5277
|
+
let se = m;
|
|
5278
5278
|
if (U.value && V.value) {
|
|
5279
5279
|
let ve = he.value;
|
|
5280
5280
|
ve || (ve = (yt, F4) => {
|
|
@@ -5283,17 +5283,17 @@ function P0(a, e, t) {
|
|
|
5283
5283
|
}), se = se.filter(ve);
|
|
5284
5284
|
}
|
|
5285
5285
|
return l.value && H && (se = se.filter((ve) => !an(ve))), se;
|
|
5286
|
-
}, g1 = (
|
|
5287
|
-
let H =
|
|
5286
|
+
}, g1 = (m) => {
|
|
5287
|
+
let H = m;
|
|
5288
5288
|
return D0(H) && (H = Object.keys(H).map((se) => {
|
|
5289
5289
|
let ve = H[se];
|
|
5290
5290
|
return { [D.value]: se, [Oe.value]: ve, [u.value]: ve };
|
|
5291
5291
|
})), H = H.map((se) => typeof se == "object" ? se : { [D.value]: se, [Oe.value]: se, [u.value]: se }), H;
|
|
5292
5292
|
}, Ut = () => {
|
|
5293
5293
|
Le(E.value) || (F.value = Zt(E.value));
|
|
5294
|
-
}, jt = (
|
|
5294
|
+
}, jt = (m) => (Ie.value = !0, new Promise((H, se) => {
|
|
5295
5295
|
s.value(U.value, Z).then((ve) => {
|
|
5296
|
-
Fe.value = ve || [], typeof
|
|
5296
|
+
Fe.value = ve || [], typeof m == "function" && m(ve), Ie.value = !1;
|
|
5297
5297
|
}).catch((ve) => {
|
|
5298
5298
|
console.error(ve), Fe.value = [], Ie.value = !1;
|
|
5299
5299
|
}).finally(() => {
|
|
@@ -5302,34 +5302,34 @@ function P0(a, e, t) {
|
|
|
5302
5302
|
})), b1 = () => {
|
|
5303
5303
|
if (p1.value)
|
|
5304
5304
|
if (n.value === "single") {
|
|
5305
|
-
let
|
|
5306
|
-
if (
|
|
5307
|
-
let H =
|
|
5305
|
+
let m = Ne(F.value[D.value]);
|
|
5306
|
+
if (m !== void 0) {
|
|
5307
|
+
let H = m[u.value];
|
|
5308
5308
|
F.value[u.value] = H, $.value && (E.value[u.value] = H);
|
|
5309
5309
|
}
|
|
5310
5310
|
} else
|
|
5311
|
-
F.value.forEach((
|
|
5311
|
+
F.value.forEach((m, H) => {
|
|
5312
5312
|
let se = Ne(F.value[H][D.value]);
|
|
5313
5313
|
if (se !== void 0) {
|
|
5314
5314
|
let ve = se[u.value];
|
|
5315
5315
|
F.value[H][u.value] = ve, $.value && (E.value[H][u.value] = ve);
|
|
5316
5316
|
}
|
|
5317
5317
|
});
|
|
5318
|
-
}, on = (
|
|
5319
|
-
jt(
|
|
5320
|
-
}, Zt = (
|
|
5321
|
-
[u.value]:
|
|
5322
|
-
[D.value]:
|
|
5323
|
-
[Oe.value]:
|
|
5324
|
-
} : {}) :
|
|
5318
|
+
}, on = (m) => {
|
|
5319
|
+
jt(m);
|
|
5320
|
+
}, Zt = (m) => Le(m) ? n.value === "single" ? {} : [] : $.value ? m : n.value === "single" ? Ne(m) || (X.value ? {
|
|
5321
|
+
[u.value]: m,
|
|
5322
|
+
[D.value]: m,
|
|
5323
|
+
[Oe.value]: m
|
|
5324
|
+
} : {}) : m.filter((H) => !!Ne(H) || X.value).map((H) => Ne(H) || {
|
|
5325
5325
|
[u.value]: H,
|
|
5326
5326
|
[D.value]: H,
|
|
5327
5327
|
[Oe.value]: H
|
|
5328
5328
|
}), K1 = () => {
|
|
5329
|
-
f1.value =
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
(
|
|
5329
|
+
f1.value = re(U, (m) => {
|
|
5330
|
+
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
|
|
5331
|
+
m == U.value && s.value(U.value, Z).then((H) => {
|
|
5332
|
+
(m == U.value || !U.value) && (Fe.value = H, Na.value = bt.value.filter((se) => se[w.value] !== !0)[0] || null, Ie.value = !1);
|
|
5333
5333
|
}).catch(
|
|
5334
5334
|
/* istanbul ignore next */
|
|
5335
5335
|
(H) => {
|
|
@@ -5341,25 +5341,25 @@ function P0(a, e, t) {
|
|
|
5341
5341
|
};
|
|
5342
5342
|
if (n.value !== "single" && !Le(E.value) && !Array.isArray(E.value))
|
|
5343
5343
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5344
|
-
return s && typeof s.value == "function" ? _.value ? jt(Ut) : $.value == !0 && Ut() : (Fe.value = s.value, Ut()), S.value > -1 && K1(),
|
|
5345
|
-
f1.value && f1.value(),
|
|
5346
|
-
}),
|
|
5347
|
-
if (Le(
|
|
5348
|
-
Pe(Zt(
|
|
5344
|
+
return s && typeof s.value == "function" ? _.value ? jt(Ut) : $.value == !0 && Ut() : (Fe.value = s.value, Ut()), S.value > -1 && K1(), re(S, (m, H) => {
|
|
5345
|
+
f1.value && f1.value(), m >= 0 && K1();
|
|
5346
|
+
}), re(E, (m) => {
|
|
5347
|
+
if (Le(m)) {
|
|
5348
|
+
Pe(Zt(m), !1);
|
|
5349
5349
|
return;
|
|
5350
5350
|
}
|
|
5351
5351
|
switch (n.value) {
|
|
5352
5352
|
case "single":
|
|
5353
|
-
($.value ?
|
|
5353
|
+
($.value ? m[D.value] != F.value[D.value] : m != F.value[D.value]) && Pe(Zt(m), !1);
|
|
5354
5354
|
break;
|
|
5355
5355
|
case "multiple":
|
|
5356
5356
|
case "tags":
|
|
5357
|
-
H0($.value ?
|
|
5357
|
+
H0($.value ? m.map((H) => H[D.value]) : m, F.value.map((H) => H[D.value])) || Pe(Zt(m), !1);
|
|
5358
5358
|
break;
|
|
5359
5359
|
}
|
|
5360
|
-
}, { deep: !0 }),
|
|
5361
|
-
typeof a.options == "function" ? _.value && (!H ||
|
|
5362
|
-
}),
|
|
5360
|
+
}, { deep: !0 }), re(s, (m, H) => {
|
|
5361
|
+
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) && jt() : (Fe.value = a.options, Object.keys(F.value).length || Ut(), b1());
|
|
5362
|
+
}), re(u, b1), {
|
|
5363
5363
|
pfo: Z1,
|
|
5364
5364
|
fo: bt,
|
|
5365
5365
|
filteredOptions: bt,
|
|
@@ -5404,7 +5404,7 @@ function B0(a, e, t) {
|
|
|
5404
5404
|
groupSelect: d,
|
|
5405
5405
|
disabledProp: u,
|
|
5406
5406
|
groupOptions: f
|
|
5407
|
-
} = $e(a), p = t.fo,
|
|
5407
|
+
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, R = t.multiselect, K = t.isOpen, D = y(() => p.value.filter((E) => !E[u.value])), X = y(() => C.value.filter((E) => !E[u.value])), ae = y(() => r.value !== "single" && d.value), I = y(() => _.value && _.value.group), ee = y(() => Z(_.value)), b = y(() => {
|
|
5408
5408
|
const E = I.value ? _.value : (
|
|
5409
5409
|
/* istanbul ignore next */
|
|
5410
5410
|
Z(_.value)
|
|
@@ -5417,7 +5417,7 @@ function B0(a, e, t) {
|
|
|
5417
5417
|
}), P = y(() => [...X.value].slice(-1)[0]), ue = y(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = y(() => {
|
|
5418
5418
|
const E = ee.value.__VISIBLE__.filter((U) => !U[u.value]);
|
|
5419
5419
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5420
|
-
}),
|
|
5420
|
+
}), le = y(() => {
|
|
5421
5421
|
const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5422
5422
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5423
5423
|
}), ie = y(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = y(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), L = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
|
|
@@ -5428,7 +5428,7 @@ function B0(a, e, t) {
|
|
|
5428
5428
|
if (_.value === null)
|
|
5429
5429
|
g((l.value && ae.value ? X.value[0].__CREATE__ ? D.value[0] : X.value[0] : D.value[0]) || null);
|
|
5430
5430
|
else if (l.value && ae.value) {
|
|
5431
|
-
let E = I.value ? ue.value :
|
|
5431
|
+
let E = I.value ? ue.value : le.value;
|
|
5432
5432
|
E === void 0 && (E = k.value, E.__CREATE__ && (E = E[f.value][0])), g(E || /* istanbul ignore next */
|
|
5433
5433
|
null);
|
|
5434
5434
|
} else {
|
|
@@ -5460,9 +5460,9 @@ function B0(a, e, t) {
|
|
|
5460
5460
|
let U = E.parentElement.parentElement;
|
|
5461
5461
|
l.value && (U = I.value ? E.parentElement.parentElement.parentElement : E.parentElement.parentElement.parentElement.parentElement), E.offsetTop + E.offsetHeight > U.clientHeight + U.scrollTop && (U.scrollTop = E.offsetTop + E.offsetHeight - U.clientHeight), E.offsetTop < U.scrollTop && (U.scrollTop = E.offsetTop);
|
|
5462
5462
|
};
|
|
5463
|
-
return
|
|
5463
|
+
return re(S, (E) => {
|
|
5464
5464
|
o.value && (E.length && n.value ? W() : V());
|
|
5465
|
-
}),
|
|
5465
|
+
}), re(K, (E) => {
|
|
5466
5466
|
if (E) {
|
|
5467
5467
|
let U = R.value.querySelectorAll("[data-selected]")[0];
|
|
5468
5468
|
if (!U)
|
|
@@ -5495,7 +5495,7 @@ function N0(a, e, t) {
|
|
|
5495
5495
|
};
|
|
5496
5496
|
}
|
|
5497
5497
|
function R0(a, e, t) {
|
|
5498
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null),
|
|
5498
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S = y(() => s.value || n.value ? -1 : 0), _ = () => {
|
|
5499
5499
|
s.value && i.value.blur(), p.value.blur();
|
|
5500
5500
|
}, g = () => {
|
|
5501
5501
|
s.value && !n.value && i.value.focus();
|
|
@@ -5509,7 +5509,7 @@ function R0(a, e, t) {
|
|
|
5509
5509
|
return {
|
|
5510
5510
|
multiselect: f,
|
|
5511
5511
|
wrapper: p,
|
|
5512
|
-
tags:
|
|
5512
|
+
tags: C,
|
|
5513
5513
|
tabindex: S,
|
|
5514
5514
|
isActive: $,
|
|
5515
5515
|
mouseClicked: M,
|
|
@@ -5527,7 +5527,7 @@ function R0(a, e, t) {
|
|
|
5527
5527
|
R(), _();
|
|
5528
5528
|
},
|
|
5529
5529
|
handleMousedown: (I) => {
|
|
5530
|
-
M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(
|
|
5530
|
+
M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(C.value)) ? setTimeout(() => {
|
|
5531
5531
|
R();
|
|
5532
5532
|
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value && V(), setTimeout(() => {
|
|
5533
5533
|
M.value = !1;
|
|
@@ -5547,10 +5547,10 @@ function U0(a, e, t) {
|
|
|
5547
5547
|
addOptionOn: u,
|
|
5548
5548
|
createTag: f,
|
|
5549
5549
|
createOption: p,
|
|
5550
|
-
reverse:
|
|
5550
|
+
reverse: C
|
|
5551
5551
|
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, k = t.fo, P = y(() => f.value || p.value || !1), ue = y(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5552
5552
|
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(k.value[k.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5553
|
-
},
|
|
5553
|
+
}, le = (L) => {
|
|
5554
5554
|
let W = L.length - 1;
|
|
5555
5555
|
for (; W >= 0 && (L[W].remove === !1 || L[W].disabled); )
|
|
5556
5556
|
W--;
|
|
@@ -5564,7 +5564,7 @@ function U0(a, e, t) {
|
|
|
5564
5564
|
case "Backspace":
|
|
5565
5565
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5566
5566
|
return;
|
|
5567
|
-
S(
|
|
5567
|
+
S(le([...M.value]));
|
|
5568
5568
|
break;
|
|
5569
5569
|
case "Enter":
|
|
5570
5570
|
if (L.preventDefault(), L.keyCode === 229)
|
|
@@ -5632,7 +5632,7 @@ function j0(a, e, t) {
|
|
|
5632
5632
|
disabled: n,
|
|
5633
5633
|
openDirection: o,
|
|
5634
5634
|
showOptions: i
|
|
5635
|
-
} = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups,
|
|
5635
|
+
} = $e(a), l = t.isOpen, r = t.isPointed, d = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M = y(() => ({
|
|
5636
5636
|
container: "multiselect",
|
|
5637
5637
|
containerDisabled: "is-disabled",
|
|
5638
5638
|
containerOpen: "is-open",
|
|
@@ -5685,7 +5685,7 @@ function j0(a, e, t) {
|
|
|
5685
5685
|
assist: "multiselect-assistive-text",
|
|
5686
5686
|
spacer: "multiselect-spacer",
|
|
5687
5687
|
...s.value
|
|
5688
|
-
})), S = y(() => !!(l.value && i.value && (!
|
|
5688
|
+
})), S = y(() => !!(l.value && i.value && (!C.value || C.value && $.value.length)));
|
|
5689
5689
|
return {
|
|
5690
5690
|
classList: y(() => {
|
|
5691
5691
|
const g = M.value;
|
|
@@ -5737,7 +5737,7 @@ function Z0(a, e, t) {
|
|
|
5737
5737
|
const {
|
|
5738
5738
|
limit: s,
|
|
5739
5739
|
infinite: n
|
|
5740
|
-
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = y(() => i.value < r.value.length),
|
|
5740
|
+
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = y(() => i.value < r.value.length), C = (M) => {
|
|
5741
5741
|
const { isIntersecting: S, target: _ } = M[0];
|
|
5742
5742
|
if (S) {
|
|
5743
5743
|
const g = _.offsetParent, V = g.scrollTop;
|
|
@@ -5748,14 +5748,14 @@ function Z0(a, e, t) {
|
|
|
5748
5748
|
}, $ = () => {
|
|
5749
5749
|
o.value && i.value < r.value.length ? u.value.observe(f.value) : !o.value && u.value && u.value.disconnect();
|
|
5750
5750
|
};
|
|
5751
|
-
return
|
|
5751
|
+
return re(o, () => {
|
|
5752
5752
|
n.value && $();
|
|
5753
|
-
}),
|
|
5753
|
+
}), re(l, () => {
|
|
5754
5754
|
n.value && (i.value = s.value, $());
|
|
5755
|
-
}, { flush: "post" }),
|
|
5755
|
+
}, { flush: "post" }), re(d, () => {
|
|
5756
5756
|
n.value && $();
|
|
5757
5757
|
}, { immediate: !1, flush: "post" }), Dt(() => {
|
|
5758
|
-
window && window.IntersectionObserver && (u.value = new IntersectionObserver(
|
|
5758
|
+
window && window.IntersectionObserver && (u.value = new IntersectionObserver(C));
|
|
5759
5759
|
}), {
|
|
5760
5760
|
hasMore: p,
|
|
5761
5761
|
infiniteLoader: f
|
|
@@ -5771,7 +5771,7 @@ function F0(a, e, t) {
|
|
|
5771
5771
|
groupLabel: r,
|
|
5772
5772
|
aria: d,
|
|
5773
5773
|
searchable: u
|
|
5774
|
-
} = $e(a), f = t.pointer, p = t.iv,
|
|
5774
|
+
} = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = J(null), S = y(() => {
|
|
5775
5775
|
let k = [];
|
|
5776
5776
|
return n && n.value && k.push(n.value), k.push("assist"), k.join("-");
|
|
5777
5777
|
}), _ = y(() => {
|
|
@@ -5783,7 +5783,7 @@ function F0(a, e, t) {
|
|
|
5783
5783
|
return k.push(f.value.group ? "multiselect-group" : "multiselect-option"), k.push(f.value.group ? f.value.index : f.value[o.value]), k.join("-");
|
|
5784
5784
|
}), V = y(() => s.value), R = y(() => l.value !== "single"), K = y(() => {
|
|
5785
5785
|
let k = "";
|
|
5786
|
-
return l.value === "single" &&
|
|
5786
|
+
return l.value === "single" && C.value && (k += p.value[i.value]), l.value === "multiple" && C.value && (k += $.value), l.value === "tags" && C.value && (k += p.value.map((P) => P[i.value]).join(", ")), k;
|
|
5787
5787
|
}), D = y(() => {
|
|
5788
5788
|
let k = { ...d.value };
|
|
5789
5789
|
return u.value && (k["aria-labelledby"] = k["aria-labelledby"] ? `${S.value} ${k["aria-labelledby"]}` : S.value, K.value && k["aria-label"] && (k["aria-label"] = `${K.value}, ${k["aria-label"]}`)), k;
|
|
@@ -6746,7 +6746,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6746
6746
|
emits: ["add", "delete", "update"],
|
|
6747
6747
|
setup(a, { emit: e }) {
|
|
6748
6748
|
const t = a, { t: s } = nt();
|
|
6749
|
-
|
|
6749
|
+
re(() => t.tasks, (f, p) => {
|
|
6750
6750
|
Ue(f, p);
|
|
6751
6751
|
});
|
|
6752
6752
|
const n = y(
|
|
@@ -6788,32 +6788,32 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6788
6788
|
};
|
|
6789
6789
|
return (f, p) => (c(), h("div", p5, [
|
|
6790
6790
|
v("ul", h5, [
|
|
6791
|
-
(c(!0), h(fe, null, be(f.tasks, (
|
|
6791
|
+
(c(!0), h(fe, null, be(f.tasks, (C) => {
|
|
6792
6792
|
var $, M;
|
|
6793
6793
|
return c(), h("li", {
|
|
6794
|
-
key:
|
|
6794
|
+
key: C.id,
|
|
6795
6795
|
class: "ao-subtask"
|
|
6796
6796
|
}, [
|
|
6797
|
-
(($ = f.isCheckable) == null ? void 0 : $.call(f,
|
|
6797
|
+
(($ = f.isCheckable) == null ? void 0 : $.call(f, C)) ?? !1 ? (c(), N(de, {
|
|
6798
6798
|
key: 0,
|
|
6799
6799
|
class: "ao-subtask__check",
|
|
6800
|
-
"icon-name":
|
|
6800
|
+
"icon-name": C.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
6801
6801
|
disabled: !f.isEditable,
|
|
6802
6802
|
variant: "ghost",
|
|
6803
|
-
onClick: () => l(
|
|
6803
|
+
onClick: () => l(C.id, !C.isDone)
|
|
6804
6804
|
}, null, 8, ["icon-name", "disabled", "onClick"])) : A("", !0),
|
|
6805
6805
|
v("input", {
|
|
6806
|
-
id:
|
|
6807
|
-
value:
|
|
6806
|
+
id: C.id,
|
|
6807
|
+
value: C.name,
|
|
6808
6808
|
readonly: !f.isEditable,
|
|
6809
6809
|
class: "ao-field__input ao-subtask__field",
|
|
6810
6810
|
type: "text",
|
|
6811
|
-
onChange: (S) => i(S,
|
|
6811
|
+
onChange: (S) => i(S, C.id),
|
|
6812
6812
|
onKeyup: Ye(u, ["enter"])
|
|
6813
6813
|
}, null, 40, m5),
|
|
6814
6814
|
f.users ? (c(), N(ye, {
|
|
6815
6815
|
key: 1,
|
|
6816
|
-
value: [(M =
|
|
6816
|
+
value: [(M = C.assignee) == null ? void 0 : M.id],
|
|
6817
6817
|
options: n.value,
|
|
6818
6818
|
"close-on-select": !1,
|
|
6819
6819
|
searchable: !0,
|
|
@@ -6823,7 +6823,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6823
6823
|
placeholder: f.$t("feed.filters.assignee.placeholder"),
|
|
6824
6824
|
disabled: !f.isEditable,
|
|
6825
6825
|
caret: f.isEditable,
|
|
6826
|
-
onChange: (S) => d(S,
|
|
6826
|
+
onChange: (S) => d(S, C.id)
|
|
6827
6827
|
}, {
|
|
6828
6828
|
tag: j(({ option: S, handleTagRemove: _ }) => [
|
|
6829
6829
|
T(_t, {
|
|
@@ -6842,7 +6842,7 @@ const p5 = { class: "ao-tasks" }, h5 = { class: "ao-tasks__list" }, m5 = ["id",
|
|
|
6842
6842
|
size: "sm",
|
|
6843
6843
|
variant: "ghost",
|
|
6844
6844
|
color: "neutral",
|
|
6845
|
-
onClick: () => r(
|
|
6845
|
+
onClick: () => r(C.id)
|
|
6846
6846
|
}, null, 8, ["onClick"])) : A("", !0)
|
|
6847
6847
|
]);
|
|
6848
6848
|
}), 128))
|
|
@@ -6899,7 +6899,7 @@ const g5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], b5 = {
|
|
|
6899
6899
|
function l() {
|
|
6900
6900
|
o.value = !1;
|
|
6901
6901
|
}
|
|
6902
|
-
|
|
6902
|
+
re(o, (d) => {
|
|
6903
6903
|
e("toggleIsDropActive", d);
|
|
6904
6904
|
});
|
|
6905
6905
|
function r(d) {
|
|
@@ -6987,7 +6987,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
6987
6987
|
const t = a, s = y(() => {
|
|
6988
6988
|
const S = t.user;
|
|
6989
6989
|
return S ? `${S == null ? void 0 : S.firstName} ${S == null ? void 0 : S.lastName}` : null;
|
|
6990
|
-
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d = y(() => A1(t.createdAt)), u = y(() => A1(t.editedAt)), f = y(() => o.value ? "textarea" : "p"), p = r(),
|
|
6990
|
+
}), n = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), d = y(() => A1(t.createdAt)), u = y(() => A1(t.editedAt)), f = y(() => o.value ? "textarea" : "p"), p = r(), C = l((S) => {
|
|
6991
6991
|
e("edit", S);
|
|
6992
6992
|
}), $ = () => {
|
|
6993
6993
|
e("remove");
|
|
@@ -7019,7 +7019,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7019
7019
|
rows: q(o) ? M.value : null,
|
|
7020
7020
|
onKeyup: [
|
|
7021
7021
|
Ye(q(p), ["esc"]),
|
|
7022
|
-
Ye(_e(q(
|
|
7022
|
+
Ye(_e(q(C), ["ctrl"]), ["enter"])
|
|
7023
7023
|
]
|
|
7024
7024
|
}, {
|
|
7025
7025
|
default: j(() => [
|
|
@@ -7044,7 +7044,7 @@ const T5 = { class: "ao-comment" }, E5 = { class: "ao-comment__body" }, I5 = { c
|
|
|
7044
7044
|
size: "sm",
|
|
7045
7045
|
variant: "solid",
|
|
7046
7046
|
color: "neutral",
|
|
7047
|
-
onClick: q(
|
|
7047
|
+
onClick: q(C)
|
|
7048
7048
|
}, null, 8, ["onClick"])
|
|
7049
7049
|
], 64)) : (c(), h(fe, { key: 1 }, [
|
|
7050
7050
|
T(de, {
|
|
@@ -7110,16 +7110,16 @@ const D5 = {
|
|
|
7110
7110
|
class: "ao-comments"
|
|
7111
7111
|
}, [
|
|
7112
7112
|
((p = u.comments) == null ? void 0 : p.length) > 0 ? (c(), h("ul", D5, [
|
|
7113
|
-
(c(!0), h(fe, null, be(u.comments, (
|
|
7114
|
-
key:
|
|
7115
|
-
user: s(
|
|
7116
|
-
content:
|
|
7117
|
-
"created-at":
|
|
7118
|
-
"edited-at":
|
|
7119
|
-
"is-editable":
|
|
7113
|
+
(c(!0), h(fe, null, be(u.comments, (C) => (c(), N(V5, {
|
|
7114
|
+
key: C.id,
|
|
7115
|
+
user: s(C.author.id),
|
|
7116
|
+
content: C.message,
|
|
7117
|
+
"created-at": C.createdAt,
|
|
7118
|
+
"edited-at": C.updatedAt,
|
|
7119
|
+
"is-editable": C.author.id === u.userId,
|
|
7120
7120
|
class: "ao-comment",
|
|
7121
|
-
onEdit: ($) => r(
|
|
7122
|
-
onRemove: () => d(
|
|
7121
|
+
onEdit: ($) => r(C.id, $),
|
|
7122
|
+
onRemove: () => d(C.id)
|
|
7123
7123
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
7124
7124
|
])) : A("", !0),
|
|
7125
7125
|
v("div", H5, [
|
|
@@ -7130,7 +7130,7 @@ const D5 = {
|
|
|
7130
7130
|
v("label", B5, [
|
|
7131
7131
|
v("span", N5, z(u.$t("activity.comment.label")), 1),
|
|
7132
7132
|
ft(v("textarea", {
|
|
7133
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
7133
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => i.value = C),
|
|
7134
7134
|
rows: "4",
|
|
7135
7135
|
class: "ao-field__textarea"
|
|
7136
7136
|
}, null, 512), [
|
|
@@ -7258,7 +7258,7 @@ const j5 = {
|
|
|
7258
7258
|
...b,
|
|
7259
7259
|
disabled: (k = t.activity.dependingOn) == null ? void 0 : k.some((P) => P.id === b.value)
|
|
7260
7260
|
};
|
|
7261
|
-
})),
|
|
7261
|
+
})), C = y(() => (t.templateMilestones || []).filter((k) => k.id !== t.milestoneId).map((k) => ({
|
|
7262
7262
|
label: k.name,
|
|
7263
7263
|
value: k.id
|
|
7264
7264
|
}))), $ = y({
|
|
@@ -7526,7 +7526,7 @@ const j5 = {
|
|
|
7526
7526
|
mode: "tags",
|
|
7527
7527
|
"close-on-select": !1,
|
|
7528
7528
|
searchable: !0,
|
|
7529
|
-
options:
|
|
7529
|
+
options: C.value,
|
|
7530
7530
|
disabled: !b.isEditable,
|
|
7531
7531
|
caret: b.isEditable
|
|
7532
7532
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
@@ -7647,7 +7647,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7647
7647
|
set(_) {
|
|
7648
7648
|
e("update:rule", { ...t.rule, trigger: _ });
|
|
7649
7649
|
}
|
|
7650
|
-
}),
|
|
7650
|
+
}), C = y(() => Object.values(hd)), $ = y({
|
|
7651
7651
|
get() {
|
|
7652
7652
|
return t.rule.duration;
|
|
7653
7653
|
},
|
|
@@ -7677,7 +7677,7 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7677
7677
|
T(q(ze), {
|
|
7678
7678
|
modelValue: p.value,
|
|
7679
7679
|
"onUpdate:modelValue": g[2] || (g[2] = (V) => p.value = V),
|
|
7680
|
-
options:
|
|
7680
|
+
options: C.value
|
|
7681
7681
|
}, null, 8, ["modelValue", "options"]),
|
|
7682
7682
|
T(q(ze), {
|
|
7683
7683
|
modelValue: d.value,
|
|
@@ -7788,7 +7788,7 @@ const D7 = {
|
|
|
7788
7788
|
return (O = t.templates) == null ? void 0 : O.find((L) => L.id === t.templateId);
|
|
7789
7789
|
}
|
|
7790
7790
|
), o = J(!1);
|
|
7791
|
-
|
|
7791
|
+
re(() => [t.templateId, t.phaseId, t.milestoneId], () => o.value = !1), re(() => {
|
|
7792
7792
|
var O;
|
|
7793
7793
|
return (O = n.value) == null ? void 0 : O.phases;
|
|
7794
7794
|
}, (O, L) => {
|
|
@@ -7798,7 +7798,7 @@ const D7 = {
|
|
|
7798
7798
|
var O, L;
|
|
7799
7799
|
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((W) => W.id === t.phaseId);
|
|
7800
7800
|
});
|
|
7801
|
-
|
|
7801
|
+
re(() => {
|
|
7802
7802
|
var O;
|
|
7803
7803
|
return (O = i.value) == null ? void 0 : O.milestones;
|
|
7804
7804
|
}, (O, L) => {
|
|
@@ -7810,7 +7810,7 @@ const D7 = {
|
|
|
7810
7810
|
(W) => W.id === t.milestoneId
|
|
7811
7811
|
);
|
|
7812
7812
|
});
|
|
7813
|
-
|
|
7813
|
+
re(() => {
|
|
7814
7814
|
var O;
|
|
7815
7815
|
return (O = l.value) == null ? void 0 : O.activities;
|
|
7816
7816
|
}, (O, L) => {
|
|
@@ -7845,7 +7845,7 @@ const D7 = {
|
|
|
7845
7845
|
}), p = y(() => {
|
|
7846
7846
|
var O;
|
|
7847
7847
|
return ((O = n.value) == null ? void 0 : O.name) || t.templateId;
|
|
7848
|
-
}),
|
|
7848
|
+
}), C = () => {
|
|
7849
7849
|
if (!n.value)
|
|
7850
7850
|
return;
|
|
7851
7851
|
const { name: O, rank: L } = pt(
|
|
@@ -7998,7 +7998,7 @@ const D7 = {
|
|
|
7998
7998
|
templateId: t.templateId,
|
|
7999
7999
|
data: O
|
|
8000
8000
|
});
|
|
8001
|
-
},
|
|
8001
|
+
}, le = (O) => {
|
|
8002
8002
|
e("addFiles", O);
|
|
8003
8003
|
}, ie = (O) => {
|
|
8004
8004
|
e("removeFile", O);
|
|
@@ -8072,7 +8072,7 @@ const D7 = {
|
|
|
8072
8072
|
T(Qe, {
|
|
8073
8073
|
"icon-name": "AddBoxOutlineRounded",
|
|
8074
8074
|
label: O.$t("template.phases.add"),
|
|
8075
|
-
onClick:
|
|
8075
|
+
onClick: C
|
|
8076
8076
|
}, null, 8, ["label"])
|
|
8077
8077
|
])
|
|
8078
8078
|
]),
|
|
@@ -8123,7 +8123,7 @@ const D7 = {
|
|
|
8123
8123
|
onAddSubtask: P,
|
|
8124
8124
|
onUpdateSubtask: ue,
|
|
8125
8125
|
onDeleteSubtask: ne,
|
|
8126
|
-
onAddFiles:
|
|
8126
|
+
onAddFiles: le,
|
|
8127
8127
|
onRemoveFile: ie
|
|
8128
8128
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : A("", !0)
|
|
8129
8129
|
])),
|
|
@@ -8369,14 +8369,14 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8369
8369
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
|
|
8370
8370
|
setup(a, { emit: e }) {
|
|
8371
8371
|
const t = a, { t: s } = nt();
|
|
8372
|
-
|
|
8372
|
+
re(() => t.phase.milestones, (f, p) => {
|
|
8373
8373
|
Ue(f, p);
|
|
8374
8374
|
});
|
|
8375
8375
|
const n = (f) => {
|
|
8376
8376
|
e("updatePhase", { id: t.phase.id, name: f });
|
|
8377
8377
|
}, o = y(() => t.phase.milestones.map((f) => o3(f, t.closedStatus))), i = (f) => {
|
|
8378
|
-
const { name: p, rank:
|
|
8379
|
-
e("addMilestone", { name: p, rank:
|
|
8378
|
+
const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
|
|
8379
|
+
e("addMilestone", { name: p, rank: C, phaseId: f });
|
|
8380
8380
|
}, l = (f) => {
|
|
8381
8381
|
e("updateMilestone", f);
|
|
8382
8382
|
}, r = (f) => {
|
|
@@ -8419,18 +8419,18 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8419
8419
|
"item-key": "id",
|
|
8420
8420
|
group: "kanban"
|
|
8421
8421
|
}, f.$attrs, { onChange: u }), {
|
|
8422
|
-
item: j(({ element:
|
|
8422
|
+
item: j(({ element: C }) => [
|
|
8423
8423
|
T(i9, {
|
|
8424
|
-
id:
|
|
8425
|
-
name:
|
|
8426
|
-
activities:
|
|
8424
|
+
id: C.id,
|
|
8425
|
+
name: C.name,
|
|
8426
|
+
activities: C.activities,
|
|
8427
8427
|
"is-editable": f.isEditable,
|
|
8428
8428
|
"is-draggable": f.isEditable,
|
|
8429
8429
|
"closed-status": f.closedStatus,
|
|
8430
8430
|
class: "ao-project-phase__milestone",
|
|
8431
8431
|
onClick: ($) => f.$router.push({
|
|
8432
8432
|
name: q(Re).milestone,
|
|
8433
|
-
params: { phaseId: f.phase.id, milestoneId:
|
|
8433
|
+
params: { phaseId: f.phase.id, milestoneId: C.id }
|
|
8434
8434
|
}),
|
|
8435
8435
|
onUpdateMilestone: l,
|
|
8436
8436
|
onArchiveMilestone: r
|
|
@@ -8465,7 +8465,7 @@ const v9 = { class: "ao-project__phases" }, p9 = {
|
|
|
8465
8465
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
8466
8466
|
setup(a, { emit: e }) {
|
|
8467
8467
|
const t = a;
|
|
8468
|
-
|
|
8468
|
+
re(() => t.phases, (u, f) => {
|
|
8469
8469
|
Ue(u, f);
|
|
8470
8470
|
});
|
|
8471
8471
|
const s = (u) => {
|
|
@@ -8665,7 +8665,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8665
8665
|
e("addActivity", I);
|
|
8666
8666
|
}, p = (I) => {
|
|
8667
8667
|
e("update:activity", I);
|
|
8668
|
-
},
|
|
8668
|
+
}, C = (I) => {
|
|
8669
8669
|
e("archiveActivity", I);
|
|
8670
8670
|
}, $ = (I) => {
|
|
8671
8671
|
e("addSubtask", I);
|
|
@@ -8737,7 +8737,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8737
8737
|
onClose: ee[2] || (ee[2] = (k) => I.$router.push({ name: q(Re).project })),
|
|
8738
8738
|
onAddActivity: f,
|
|
8739
8739
|
onUpdateActivity: p,
|
|
8740
|
-
onArchiveActivity:
|
|
8740
|
+
onArchiveActivity: C
|
|
8741
8741
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable"]),
|
|
8742
8742
|
(c(), N(It, { to: "body" }, [
|
|
8743
8743
|
T(b, {
|
|
@@ -8823,8 +8823,8 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8823
8823
|
name: p
|
|
8824
8824
|
});
|
|
8825
8825
|
}, n = y(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = y(() => t.assignee ? [t.assignee] : []), i = y(() => A1(t.deadline)), l = (p) => {
|
|
8826
|
-
const { firstName:
|
|
8827
|
-
return `${
|
|
8826
|
+
const { firstName: C, lastName: $ } = p || {};
|
|
8827
|
+
return `${C ?? ""}${C ? " " : ""}${$ ?? ""}`;
|
|
8828
8828
|
}, r = (p) => {
|
|
8829
8829
|
e("removeAssignee", p);
|
|
8830
8830
|
}, d = y(() => {
|
|
@@ -8832,9 +8832,9 @@ const O9 = { class: "ao-card-feed__header" }, L9 = {
|
|
|
8832
8832
|
return (p = t.tasks) == null ? void 0 : p.length;
|
|
8833
8833
|
}), u = y(() => {
|
|
8834
8834
|
var p;
|
|
8835
|
-
return (p = t.tasks) == null ? void 0 : p.filter((
|
|
8835
|
+
return (p = t.tasks) == null ? void 0 : p.filter((C) => C.isDone).length;
|
|
8836
8836
|
}), f = y(() => (u.value || 0) / (d.value || 1));
|
|
8837
|
-
return (p,
|
|
8837
|
+
return (p, C) => (c(), N(R1, {
|
|
8838
8838
|
class: "ao-card-feed",
|
|
8839
8839
|
"is-clickable": !0
|
|
8840
8840
|
}, {
|
|
@@ -8944,28 +8944,28 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
8944
8944
|
setup(a, { emit: e }) {
|
|
8945
8945
|
const t = a, { t: s } = nt(), n = y(() => {
|
|
8946
8946
|
var p;
|
|
8947
|
-
return (p = t.phases) == null ? void 0 : p.find((
|
|
8947
|
+
return (p = t.phases) == null ? void 0 : p.find((C) => C.id === t.phaseId);
|
|
8948
8948
|
}), o = y(() => {
|
|
8949
8949
|
var p;
|
|
8950
|
-
return (p = t.phases) == null ? void 0 : p.flatMap((
|
|
8950
|
+
return (p = t.phases) == null ? void 0 : p.flatMap((C) => C.milestones);
|
|
8951
8951
|
}), i = y(() => {
|
|
8952
8952
|
var p;
|
|
8953
|
-
return (p = o.value) == null ? void 0 : p.find((
|
|
8953
|
+
return (p = o.value) == null ? void 0 : p.find((C) => C.id === t.milestoneId);
|
|
8954
8954
|
}), l = y(() => {
|
|
8955
8955
|
var p;
|
|
8956
8956
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
8957
8957
|
});
|
|
8958
|
-
|
|
8959
|
-
Ue(p,
|
|
8958
|
+
re(l, (p, C) => {
|
|
8959
|
+
Ue(p, C);
|
|
8960
8960
|
});
|
|
8961
8961
|
const r = (p) => {
|
|
8962
8962
|
e("close", p);
|
|
8963
8963
|
}, d = () => {
|
|
8964
|
-
const { name: p, rank:
|
|
8964
|
+
const { name: p, rank: C } = pt(l.value ?? [], "activity", s);
|
|
8965
8965
|
e("addActivity", {
|
|
8966
8966
|
milestoneId: t.milestoneId,
|
|
8967
8967
|
name: p,
|
|
8968
|
-
rank:
|
|
8968
|
+
rank: C,
|
|
8969
8969
|
projectId: t.projectId
|
|
8970
8970
|
});
|
|
8971
8971
|
}, u = (p) => {
|
|
@@ -8980,7 +8980,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
8980
8980
|
)
|
|
8981
8981
|
});
|
|
8982
8982
|
};
|
|
8983
|
-
return (p,
|
|
8983
|
+
return (p, C) => {
|
|
8984
8984
|
var $;
|
|
8985
8985
|
return c(), h("div", G9, [
|
|
8986
8986
|
v("header", x9, [
|
|
@@ -9107,7 +9107,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9107
9107
|
e("deleteSubtask", _);
|
|
9108
9108
|
}, p = (_) => {
|
|
9109
9109
|
e("addFiles", _);
|
|
9110
|
-
},
|
|
9110
|
+
}, C = (_) => {
|
|
9111
9111
|
e("removeFile", _);
|
|
9112
9112
|
}, $ = (_) => {
|
|
9113
9113
|
e("addComment", _);
|
|
@@ -9137,7 +9137,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9137
9137
|
onUpdateSubtask: u,
|
|
9138
9138
|
onDeleteSubtask: f,
|
|
9139
9139
|
onAddFiles: p,
|
|
9140
|
-
onRemoveFile:
|
|
9140
|
+
onRemoveFile: C,
|
|
9141
9141
|
onAddComment: $,
|
|
9142
9142
|
onUpdateComment: M,
|
|
9143
9143
|
onRemoveComment: S
|
|
@@ -9233,7 +9233,7 @@ function f4(a, e, t = {}) {
|
|
|
9233
9233
|
return (Array.isArray($) ? $ : [$]).map(M1).filter(i4);
|
|
9234
9234
|
});
|
|
9235
9235
|
let u = St;
|
|
9236
|
-
const f = J(l), p = r.value ?
|
|
9236
|
+
const f = J(l), p = r.value ? re(
|
|
9237
9237
|
() => [d.value, M1(s), f.value],
|
|
9238
9238
|
([$, M]) => {
|
|
9239
9239
|
if (u(), !f.value || !$.length)
|
|
@@ -9251,10 +9251,10 @@ function f4(a, e, t = {}) {
|
|
|
9251
9251
|
};
|
|
9252
9252
|
},
|
|
9253
9253
|
{ immediate: l, flush: "post" }
|
|
9254
|
-
) : St,
|
|
9254
|
+
) : St, C = () => {
|
|
9255
9255
|
u(), p(), f.value = !1;
|
|
9256
9256
|
};
|
|
9257
|
-
return n4(
|
|
9257
|
+
return n4(C), {
|
|
9258
9258
|
isSupported: r,
|
|
9259
9259
|
isActive: f,
|
|
9260
9260
|
pause() {
|
|
@@ -9263,7 +9263,7 @@ function f4(a, e, t = {}) {
|
|
|
9263
9263
|
resume() {
|
|
9264
9264
|
f.value = !0;
|
|
9265
9265
|
},
|
|
9266
|
-
stop:
|
|
9266
|
+
stop: C
|
|
9267
9267
|
};
|
|
9268
9268
|
}
|
|
9269
9269
|
const v4 = {
|
|
@@ -9301,7 +9301,7 @@ const v4 = {
|
|
|
9301
9301
|
const t = a, s = J(!1), n = J(null);
|
|
9302
9302
|
f4(n, ([{ isIntersecting: r }]) => {
|
|
9303
9303
|
s.value = r;
|
|
9304
|
-
}),
|
|
9304
|
+
}), re(s, (r) => {
|
|
9305
9305
|
r && t.hasMore && !t.isLoading && e("loadMore");
|
|
9306
9306
|
});
|
|
9307
9307
|
const o = (r) => {
|
|
@@ -9346,14 +9346,14 @@ const v4 = {
|
|
|
9346
9346
|
draggable: r.isEditable
|
|
9347
9347
|
}), {
|
|
9348
9348
|
item: j(({ element: u }) => {
|
|
9349
|
-
var f, p,
|
|
9349
|
+
var f, p, C, $, M, S, _, g;
|
|
9350
9350
|
return [
|
|
9351
9351
|
T(Ba, {
|
|
9352
9352
|
id: u.id,
|
|
9353
9353
|
name: u.name,
|
|
9354
9354
|
"project-name": (f = u.project) == null ? void 0 : f.name,
|
|
9355
9355
|
"project-color": (p = u.project) == null ? void 0 : p.color,
|
|
9356
|
-
"phase-name": ($ = (
|
|
9356
|
+
"phase-name": ($ = (C = u.milestone) == null ? void 0 : C.phase) == null ? void 0 : $.name,
|
|
9357
9357
|
"milestone-name": (M = u.milestone) == null ? void 0 : M.name,
|
|
9358
9358
|
deadline: u.deadline,
|
|
9359
9359
|
rules: ((S = u.rules) == null ? void 0 : S.length) || 0,
|
|
@@ -9503,7 +9503,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9503
9503
|
const t = a, { t: s } = nt(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = A4(n), l = (w) => {
|
|
9504
9504
|
o(w), e("selectActivity", w);
|
|
9505
9505
|
}, r = J({}), d = J(!1);
|
|
9506
|
-
|
|
9506
|
+
re(
|
|
9507
9507
|
[() => t.statuses, () => t.activities],
|
|
9508
9508
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9509
9509
|
async ([w, Y], [he, Z]) => {
|
|
@@ -9532,11 +9532,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9532
9532
|
t.filters.assigneeId.length > 0 && (F.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (F.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (F.typeId = t.filters.typeId[0]), d.value = !0, e("addActivity", F);
|
|
9533
9533
|
}, p = (w, Y) => {
|
|
9534
9534
|
d.value = !1, e("update:filters", { ...t.filters, [w]: Y });
|
|
9535
|
-
},
|
|
9536
|
-
le([m, t], () => {
|
|
9537
|
-
console.log({ propsProject: JSON.stringify(t.project), propsProjects: JSON.stringify(t.projects), projects: JSON.stringify(m) });
|
|
9538
|
-
});
|
|
9539
|
-
const $ = y(() => m.value.map((w) => ({
|
|
9535
|
+
}, C = y(() => t.project ? [t.project] : t.projects ?? []), $ = y(() => C.value.map((w) => ({
|
|
9540
9536
|
value: w.id,
|
|
9541
9537
|
label: w.name
|
|
9542
9538
|
}))), M = y(() => {
|
|
@@ -9591,10 +9587,10 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9591
9587
|
}, ue = (w) => {
|
|
9592
9588
|
const { id: Y } = i.value || {};
|
|
9593
9589
|
Y && e("removeComment", w);
|
|
9594
|
-
}, ne = y(() =>
|
|
9590
|
+
}, ne = y(() => C.value.map((w) => ({
|
|
9595
9591
|
value: w.id,
|
|
9596
9592
|
label: w.name
|
|
9597
|
-
}))),
|
|
9593
|
+
}))), le = y(() => {
|
|
9598
9594
|
var Y, he, Z;
|
|
9599
9595
|
const w = (Z = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : Z.reduce((F, E) => [...F, ...E.milestones], []);
|
|
9600
9596
|
return w == null ? void 0 : w.map((F) => ({
|
|
@@ -9755,10 +9751,10 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9755
9751
|
onChange: ie
|
|
9756
9752
|
}, null, 8, ["options", "value"])
|
|
9757
9753
|
])) : A("", !0),
|
|
9758
|
-
|
|
9754
|
+
le.value ? (c(), h("label", V4, [
|
|
9759
9755
|
v("span", D4, z(w.$t("activity.milestone.label")), 1),
|
|
9760
9756
|
T(ye, {
|
|
9761
|
-
options:
|
|
9757
|
+
options: le.value,
|
|
9762
9758
|
value: (F = q(i).milestone) == null ? void 0 : F.id,
|
|
9763
9759
|
searchable: !0,
|
|
9764
9760
|
onChange: O
|
|
@@ -9875,7 +9871,7 @@ const Tt = {
|
|
|
9875
9871
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
9876
9872
|
setup(a, { emit: e }) {
|
|
9877
9873
|
const t = a, { t: s } = nt();
|
|
9878
|
-
|
|
9874
|
+
re(() => t.templates, (l, r) => {
|
|
9879
9875
|
Ue(l, r);
|
|
9880
9876
|
});
|
|
9881
9877
|
const n = () => {
|