@26lights/orcha 0.12.3 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +702 -692
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoProjectPhase.vue.d.ts +4 -4
- package/dist/src/components/AoProjectPhases.vue.d.ts +4 -4
- package/dist/src/components/AoTemplateDetailsActivities.vue.d.ts +1 -1
- package/dist/src/components/AoTemplateDetailsMilestones.vue.d.ts +1 -1
- package/dist/src/views/AoFeed.vue.d.ts +1 -1
- package/dist/src/views/AoProjectOverviewProject.vue.d.ts +5 -5
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as G, openBlock as v, createBlock as N, unref as
|
|
1
|
+
import { defineComponent as G, openBlock as v, createBlock as N, unref as F, mergeProps as Ve, createElementBlock as h, createElementVNode as f, pushScopeId as on, popScopeId as ln, createStaticVNode as rn, computed as b, resolveDynamicComponent as tt, normalizeClass as Q, renderSlot as te, toDisplayString as z, createCommentVNode as T, ref as J, watch as ue, nextTick as Ee, withKeys as Ye, toHandlers as un, withCtx as R, createTextVNode as t1, createVNode as k, normalizeStyle as ra, withModifiers as _e, createSlots as Dt, Fragment as fe, renderList as ye, onMounted as Ht, onBeforeUnmount as cn, onUnmounted as ua, toRefs as $e, getCurrentInstance as at, toRef as dt, normalizeProps as dn, guardReactiveProps as fn, onUpdated as vn, withDirectives as ft, vModelText as Et, vModelCheckbox as pn, Teleport as It, resolveComponent as hn, getCurrentScope as mn, onScopeDispose as Cn, provide as _n } from "vue";
|
|
2
2
|
import { RouterView as gn } from "vue-router";
|
|
3
|
-
import
|
|
3
|
+
import Xe from "vuedraggable";
|
|
4
4
|
const Z4 = /* @__PURE__ */ G({
|
|
5
5
|
__name: "AoTemplates",
|
|
6
6
|
props: {
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
return (e, t) => (v(), N(
|
|
10
|
+
return (e, t) => (v(), N(F(gn), Ve({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), B = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
@@ -1150,7 +1150,7 @@ const Qu = /* @__PURE__ */ B(Yu, [["render", Xu]]), Ju = /* @__PURE__ */ Object.
|
|
|
1150
1150
|
const ac = ["type"], nc = {
|
|
1151
1151
|
key: 0,
|
|
1152
1152
|
class: "ao-button__label"
|
|
1153
|
-
},
|
|
1153
|
+
}, le = /* @__PURE__ */ G({
|
|
1154
1154
|
__name: "AoButton",
|
|
1155
1155
|
props: {
|
|
1156
1156
|
label: { default: () => "" },
|
|
@@ -1179,7 +1179,7 @@ const ac = ["type"], nc = {
|
|
|
1179
1179
|
n.$attrs.disabled ? "ao-button--is-disabled" : ""
|
|
1180
1180
|
])
|
|
1181
1181
|
}, [
|
|
1182
|
-
|
|
1182
|
+
te(n.$slots, "default", {}, () => [
|
|
1183
1183
|
n.label ? (v(), h("span", nc, z(n.label), 1)) : T("", !0)
|
|
1184
1184
|
]),
|
|
1185
1185
|
s.value ? (v(), N(de, {
|
|
@@ -1206,7 +1206,7 @@ function da(a) {
|
|
|
1206
1206
|
r(u, c);
|
|
1207
1207
|
});
|
|
1208
1208
|
};
|
|
1209
|
-
return
|
|
1209
|
+
return ue(e, async (r) => {
|
|
1210
1210
|
await Ee(() => {
|
|
1211
1211
|
setTimeout(() => {
|
|
1212
1212
|
a.value && r && (a.value.focus(), t.value = a.value[s.value]);
|
|
@@ -1249,7 +1249,7 @@ const me = /* @__PURE__ */ G({
|
|
|
1249
1249
|
}, w = (M) => {
|
|
1250
1250
|
M.stopPropagation(), n.value || o(!0);
|
|
1251
1251
|
};
|
|
1252
|
-
return
|
|
1252
|
+
return ue(
|
|
1253
1253
|
() => t.isEditable,
|
|
1254
1254
|
(M) => {
|
|
1255
1255
|
M || d();
|
|
@@ -1264,19 +1264,19 @@ const me = /* @__PURE__ */ G({
|
|
|
1264
1264
|
{
|
|
1265
1265
|
[`ao-title--${M.color}`]: !!M.color,
|
|
1266
1266
|
"ao-title--editable": M.isEditable,
|
|
1267
|
-
"ao-field__input ao-title--editing":
|
|
1268
|
-
"ao-title--readonly": !
|
|
1267
|
+
"ao-field__input ao-title--editing": F(n),
|
|
1268
|
+
"ao-title--readonly": !F(n)
|
|
1269
1269
|
}
|
|
1270
1270
|
],
|
|
1271
|
-
type:
|
|
1272
|
-
value:
|
|
1271
|
+
type: F(n) ? "text" : null,
|
|
1272
|
+
value: F(n) ? M.title : null,
|
|
1273
1273
|
tabindex: "0",
|
|
1274
|
-
onKeyup:
|
|
1274
|
+
onKeyup: Ye(C, ["enter"])
|
|
1275
1275
|
}, un(c.value), {
|
|
1276
|
-
onKeydown:
|
|
1276
|
+
onKeydown: Ye(F(d), ["esc"])
|
|
1277
1277
|
}), {
|
|
1278
1278
|
default: R(() => [
|
|
1279
|
-
|
|
1279
|
+
t1(z(M.title), 1)
|
|
1280
1280
|
]),
|
|
1281
1281
|
_: 1
|
|
1282
1282
|
}, 16, ["id", "class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1347,22 +1347,22 @@ const sc = {
|
|
|
1347
1347
|
"is-editable": !0,
|
|
1348
1348
|
"onUpdate:title": t
|
|
1349
1349
|
}, null, 8, ["id", "title"]),
|
|
1350
|
-
|
|
1350
|
+
te(s.$slots, "subtitle", {}, () => [
|
|
1351
1351
|
s.subtitle ? (v(), h("span", rc, z(s.subtitle), 1)) : T("", !0)
|
|
1352
1352
|
])
|
|
1353
1353
|
]),
|
|
1354
1354
|
s.$slots.header ? (v(), h("div", uc, [
|
|
1355
|
-
|
|
1355
|
+
te(s.$slots, "header")
|
|
1356
1356
|
])) : T("", !0)
|
|
1357
1357
|
]),
|
|
1358
1358
|
s.$slots.default ? (v(), h("div", cc, [
|
|
1359
|
-
|
|
1359
|
+
te(s.$slots, "default")
|
|
1360
1360
|
])) : T("", !0),
|
|
1361
1361
|
s.$slots.footer ? (v(), h("div", dc, [
|
|
1362
|
-
|
|
1362
|
+
te(s.$slots, "footer")
|
|
1363
1363
|
])) : T("", !0),
|
|
1364
1364
|
s.$slots.secondary ? (v(), h("div", fc, [
|
|
1365
|
-
|
|
1365
|
+
te(s.$slots, "secondary")
|
|
1366
1366
|
])) : T("", !0)
|
|
1367
1367
|
]),
|
|
1368
1368
|
_: 3
|
|
@@ -1398,7 +1398,7 @@ const E1 = /* @__PURE__ */ G({
|
|
|
1398
1398
|
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
1399
1399
|
}), {
|
|
1400
1400
|
default: R(() => [
|
|
1401
|
-
|
|
1401
|
+
t1(z(n.label), 1)
|
|
1402
1402
|
]),
|
|
1403
1403
|
_: 1
|
|
1404
1404
|
}, 16)),
|
|
@@ -1457,15 +1457,15 @@ const W4 = {
|
|
|
1457
1457
|
type: "typeId",
|
|
1458
1458
|
assignee: "assigneeId"
|
|
1459
1459
|
};
|
|
1460
|
-
function
|
|
1460
|
+
function xt(a) {
|
|
1461
1461
|
"@babel/helpers - typeof";
|
|
1462
|
-
return
|
|
1462
|
+
return xt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1463
1463
|
return typeof e;
|
|
1464
1464
|
} : function(e) {
|
|
1465
1465
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1466
|
-
},
|
|
1466
|
+
}, xt(a);
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function xe(a) {
|
|
1469
1469
|
if (a === null || a === !0 || a === !1)
|
|
1470
1470
|
return NaN;
|
|
1471
1471
|
var e = Number(a);
|
|
@@ -1478,11 +1478,11 @@ function ge(a, e) {
|
|
|
1478
1478
|
function He(a) {
|
|
1479
1479
|
ge(1, arguments);
|
|
1480
1480
|
var e = Object.prototype.toString.call(a);
|
|
1481
|
-
return a instanceof Date ||
|
|
1481
|
+
return a instanceof Date || xt(a) === "object" && e === "[object Date]" ? new Date(a.getTime()) : typeof a == "number" || e === "[object Number]" ? new Date(a) : ((typeof a == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
1482
1482
|
}
|
|
1483
1483
|
function Cc(a, e) {
|
|
1484
1484
|
ge(2, arguments);
|
|
1485
|
-
var t = He(a).getTime(), s =
|
|
1485
|
+
var t = He(a).getTime(), s = xe(e);
|
|
1486
1486
|
return new Date(t + s);
|
|
1487
1487
|
}
|
|
1488
1488
|
var _c = {};
|
|
@@ -1495,7 +1495,7 @@ function gc(a) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
var va = 6e4, pa = 36e5;
|
|
1497
1497
|
function yc(a) {
|
|
1498
|
-
return ge(1, arguments), a instanceof Date ||
|
|
1498
|
+
return ge(1, arguments), a instanceof Date || xt(a) === "object" && Object.prototype.toString.call(a) === "[object Date]";
|
|
1499
1499
|
}
|
|
1500
1500
|
function ha(a) {
|
|
1501
1501
|
if (ge(1, arguments), !yc(a) && typeof a != "number")
|
|
@@ -1505,7 +1505,7 @@ function ha(a) {
|
|
|
1505
1505
|
}
|
|
1506
1506
|
function bc(a, e) {
|
|
1507
1507
|
ge(2, arguments);
|
|
1508
|
-
var t =
|
|
1508
|
+
var t = xe(e);
|
|
1509
1509
|
return Cc(a, -t);
|
|
1510
1510
|
}
|
|
1511
1511
|
var wc = 864e5;
|
|
@@ -1516,7 +1516,7 @@ function $c(a) {
|
|
|
1516
1516
|
var s = e.getTime(), n = t - s;
|
|
1517
1517
|
return Math.floor(n / wc) + 1;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function Kt(a) {
|
|
1520
1520
|
ge(1, arguments);
|
|
1521
1521
|
var e = 1, t = He(a), s = t.getUTCDay(), n = (s < e ? 7 : 0) + s - e;
|
|
1522
1522
|
return t.setUTCDate(t.getUTCDate() - n), t.setUTCHours(0, 0, 0, 0), t;
|
|
@@ -1525,28 +1525,28 @@ function ma(a) {
|
|
|
1525
1525
|
ge(1, arguments);
|
|
1526
1526
|
var e = He(a), t = e.getUTCFullYear(), s = /* @__PURE__ */ new Date(0);
|
|
1527
1527
|
s.setUTCFullYear(t + 1, 0, 4), s.setUTCHours(0, 0, 0, 0);
|
|
1528
|
-
var n =
|
|
1528
|
+
var n = Kt(s), o = /* @__PURE__ */ new Date(0);
|
|
1529
1529
|
o.setUTCFullYear(t, 0, 4), o.setUTCHours(0, 0, 0, 0);
|
|
1530
|
-
var i =
|
|
1530
|
+
var i = Kt(o);
|
|
1531
1531
|
return e.getTime() >= n.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
1532
1532
|
}
|
|
1533
1533
|
function Mc(a) {
|
|
1534
1534
|
ge(1, arguments);
|
|
1535
1535
|
var e = ma(a), t = /* @__PURE__ */ new Date(0);
|
|
1536
1536
|
t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
|
|
1537
|
-
var s =
|
|
1537
|
+
var s = Kt(t);
|
|
1538
1538
|
return s;
|
|
1539
1539
|
}
|
|
1540
1540
|
var kc = 6048e5;
|
|
1541
1541
|
function Ac(a) {
|
|
1542
1542
|
ge(1, arguments);
|
|
1543
|
-
var e = He(a), t =
|
|
1543
|
+
var e = He(a), t = Kt(e).getTime() - Mc(e).getTime();
|
|
1544
1544
|
return Math.round(t / kc) + 1;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Gt(a, e) {
|
|
1547
1547
|
var t, s, n, o, i, l, r, c;
|
|
1548
1548
|
ge(1, arguments);
|
|
1549
|
-
var u = n1(), d =
|
|
1549
|
+
var u = n1(), d = xe((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 || (c = r.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1550
1550
|
if (!(d >= 0 && d <= 6))
|
|
1551
1551
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1552
1552
|
var p = He(a), C = p.getUTCDay(), w = (C < d ? 7 : 0) + C - d;
|
|
@@ -1555,28 +1555,28 @@ function Xt(a, e) {
|
|
|
1555
1555
|
function Ca(a, e) {
|
|
1556
1556
|
var t, s, n, o, i, l, r, c;
|
|
1557
1557
|
ge(1, arguments);
|
|
1558
|
-
var u = He(a), d = u.getUTCFullYear(), p = n1(), C =
|
|
1558
|
+
var u = He(a), d = u.getUTCFullYear(), p = n1(), C = xe((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 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
1559
1559
|
if (!(C >= 1 && C <= 7))
|
|
1560
1560
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1561
1561
|
var w = /* @__PURE__ */ new Date(0);
|
|
1562
1562
|
w.setUTCFullYear(d + 1, 0, C), w.setUTCHours(0, 0, 0, 0);
|
|
1563
|
-
var M =
|
|
1563
|
+
var M = Gt(w, e), S = /* @__PURE__ */ new Date(0);
|
|
1564
1564
|
S.setUTCFullYear(d, 0, C), S.setUTCHours(0, 0, 0, 0);
|
|
1565
|
-
var _ =
|
|
1565
|
+
var _ = Gt(S, e);
|
|
1566
1566
|
return u.getTime() >= M.getTime() ? d + 1 : u.getTime() >= _.getTime() ? d : d - 1;
|
|
1567
1567
|
}
|
|
1568
1568
|
function Sc(a, e) {
|
|
1569
1569
|
var t, s, n, o, i, l, r, c;
|
|
1570
1570
|
ge(1, arguments);
|
|
1571
|
-
var u = n1(), d =
|
|
1571
|
+
var u = n1(), d = xe((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 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = Ca(a, e), C = /* @__PURE__ */ new Date(0);
|
|
1572
1572
|
C.setUTCFullYear(p, 0, d), C.setUTCHours(0, 0, 0, 0);
|
|
1573
|
-
var w =
|
|
1573
|
+
var w = Gt(C, e);
|
|
1574
1574
|
return w;
|
|
1575
1575
|
}
|
|
1576
1576
|
var Tc = 6048e5;
|
|
1577
1577
|
function Ec(a, e) {
|
|
1578
1578
|
ge(1, arguments);
|
|
1579
|
-
var t = He(a), s =
|
|
1579
|
+
var t = He(a), s = Gt(t, e).getTime() - Sc(t, e).getTime();
|
|
1580
1580
|
return Math.round(s / Tc) + 1;
|
|
1581
1581
|
}
|
|
1582
1582
|
function oe(a, e) {
|
|
@@ -1637,7 +1637,7 @@ var Ic = {
|
|
|
1637
1637
|
return oe(o, t.length);
|
|
1638
1638
|
}
|
|
1639
1639
|
};
|
|
1640
|
-
const
|
|
1640
|
+
const We = Ic;
|
|
1641
1641
|
var ct = {
|
|
1642
1642
|
am: "am",
|
|
1643
1643
|
pm: "pm",
|
|
@@ -1677,7 +1677,7 @@ var ct = {
|
|
|
1677
1677
|
unit: "year"
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
|
-
return
|
|
1680
|
+
return We.y(e, t);
|
|
1681
1681
|
},
|
|
1682
1682
|
// Local week-numbering year
|
|
1683
1683
|
Y: function(e, t, s, n) {
|
|
@@ -1774,7 +1774,7 @@ var ct = {
|
|
|
1774
1774
|
switch (t) {
|
|
1775
1775
|
case "M":
|
|
1776
1776
|
case "MM":
|
|
1777
|
-
return
|
|
1777
|
+
return We.M(e, t);
|
|
1778
1778
|
case "Mo":
|
|
1779
1779
|
return s.ordinalNumber(n + 1, {
|
|
1780
1780
|
unit: "month"
|
|
@@ -1845,7 +1845,7 @@ var ct = {
|
|
|
1845
1845
|
d: function(e, t, s) {
|
|
1846
1846
|
return t === "do" ? s.ordinalNumber(e.getUTCDate(), {
|
|
1847
1847
|
unit: "date"
|
|
1848
|
-
}) :
|
|
1848
|
+
}) : We.d(e, t);
|
|
1849
1849
|
},
|
|
1850
1850
|
// Day of year
|
|
1851
1851
|
D: function(e, t, s) {
|
|
@@ -2076,13 +2076,13 @@ var ct = {
|
|
|
2076
2076
|
unit: "hour"
|
|
2077
2077
|
});
|
|
2078
2078
|
}
|
|
2079
|
-
return
|
|
2079
|
+
return We.h(e, t);
|
|
2080
2080
|
},
|
|
2081
2081
|
// Hour [0-23]
|
|
2082
2082
|
H: function(e, t, s) {
|
|
2083
2083
|
return t === "Ho" ? s.ordinalNumber(e.getUTCHours(), {
|
|
2084
2084
|
unit: "hour"
|
|
2085
|
-
}) :
|
|
2085
|
+
}) : We.H(e, t);
|
|
2086
2086
|
},
|
|
2087
2087
|
// Hour [0-11]
|
|
2088
2088
|
K: function(e, t, s) {
|
|
@@ -2102,17 +2102,17 @@ var ct = {
|
|
|
2102
2102
|
m: function(e, t, s) {
|
|
2103
2103
|
return t === "mo" ? s.ordinalNumber(e.getUTCMinutes(), {
|
|
2104
2104
|
unit: "minute"
|
|
2105
|
-
}) :
|
|
2105
|
+
}) : We.m(e, t);
|
|
2106
2106
|
},
|
|
2107
2107
|
// Second
|
|
2108
2108
|
s: function(e, t, s) {
|
|
2109
2109
|
return t === "so" ? s.ordinalNumber(e.getUTCSeconds(), {
|
|
2110
2110
|
unit: "second"
|
|
2111
|
-
}) :
|
|
2111
|
+
}) : We.s(e, t);
|
|
2112
2112
|
},
|
|
2113
2113
|
// Fraction of second
|
|
2114
2114
|
S: function(e, t) {
|
|
2115
|
-
return
|
|
2115
|
+
return We.S(e, t);
|
|
2116
2116
|
},
|
|
2117
2117
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
2118
2118
|
X: function(e, t, s, n) {
|
|
@@ -2124,11 +2124,11 @@ var ct = {
|
|
|
2124
2124
|
return X1(i);
|
|
2125
2125
|
case "XXXX":
|
|
2126
2126
|
case "XX":
|
|
2127
|
-
return
|
|
2127
|
+
return Je(i);
|
|
2128
2128
|
case "XXXXX":
|
|
2129
2129
|
case "XXX":
|
|
2130
2130
|
default:
|
|
2131
|
-
return
|
|
2131
|
+
return Je(i, ":");
|
|
2132
2132
|
}
|
|
2133
2133
|
},
|
|
2134
2134
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -2139,11 +2139,11 @@ var ct = {
|
|
|
2139
2139
|
return X1(i);
|
|
2140
2140
|
case "xxxx":
|
|
2141
2141
|
case "xx":
|
|
2142
|
-
return
|
|
2142
|
+
return Je(i);
|
|
2143
2143
|
case "xxxxx":
|
|
2144
2144
|
case "xxx":
|
|
2145
2145
|
default:
|
|
2146
|
-
return
|
|
2146
|
+
return Je(i, ":");
|
|
2147
2147
|
}
|
|
2148
2148
|
},
|
|
2149
2149
|
// Timezone (GMT)
|
|
@@ -2156,7 +2156,7 @@ var ct = {
|
|
|
2156
2156
|
return "GMT" + G1(i, ":");
|
|
2157
2157
|
case "OOOO":
|
|
2158
2158
|
default:
|
|
2159
|
-
return "GMT" +
|
|
2159
|
+
return "GMT" + Je(i, ":");
|
|
2160
2160
|
}
|
|
2161
2161
|
},
|
|
2162
2162
|
// Timezone (specific non-location)
|
|
@@ -2169,7 +2169,7 @@ var ct = {
|
|
|
2169
2169
|
return "GMT" + G1(i, ":");
|
|
2170
2170
|
case "zzzz":
|
|
2171
2171
|
default:
|
|
2172
|
-
return "GMT" +
|
|
2172
|
+
return "GMT" + Je(i, ":");
|
|
2173
2173
|
}
|
|
2174
2174
|
},
|
|
2175
2175
|
// Seconds timestamp
|
|
@@ -2195,9 +2195,9 @@ function X1(a, e) {
|
|
|
2195
2195
|
var t = a > 0 ? "-" : "+";
|
|
2196
2196
|
return t + oe(Math.abs(a) / 60, 2);
|
|
2197
2197
|
}
|
|
2198
|
-
return
|
|
2198
|
+
return Je(a, e);
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function Je(a, e) {
|
|
2201
2201
|
var t = e || "", s = a > 0 ? "-" : "+", n = Math.abs(a), o = oe(Math.floor(n / 60), 2), i = oe(n % 60, 2);
|
|
2202
2202
|
return s + o + t + i;
|
|
2203
2203
|
}
|
|
@@ -2687,42 +2687,42 @@ var kd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ad = /P+p+|P+|
|
|
|
2687
2687
|
function Id(a, e, t) {
|
|
2688
2688
|
var s, n, o, i, l, r, c, u, d, p, C, w, M, S, _, g, V, j;
|
|
2689
2689
|
ge(2, arguments);
|
|
2690
|
-
var
|
|
2691
|
-
if (!(
|
|
2690
|
+
var x = String(e), D = n1(), K = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : D.locale) !== null && s !== void 0 ? s : Md, ae = xe((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (c = t.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : D.firstWeekContainsDate) !== null && i !== void 0 ? i : (d = D.locale) === null || d === void 0 || (p = d.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2691
|
+
if (!(ae >= 1 && ae <= 7))
|
|
2692
2692
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2693
|
-
var I =
|
|
2693
|
+
var I = xe((C = (w = (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 && w !== void 0 ? w : (V = D.locale) === null || V === void 0 || (j = V.options) === null || j === void 0 ? void 0 : j.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 (!K.localize)
|
|
2697
2697
|
throw new RangeError("locale must contain localize property");
|
|
2698
2698
|
if (!K.formatLong)
|
|
2699
2699
|
throw new RangeError("locale must contain formatLong property");
|
|
2700
|
-
var
|
|
2701
|
-
if (!ha(
|
|
2700
|
+
var ee = He(a);
|
|
2701
|
+
if (!ha(ee))
|
|
2702
2702
|
throw new RangeError("Invalid time value");
|
|
2703
|
-
var y = gc(
|
|
2704
|
-
firstWeekContainsDate:
|
|
2703
|
+
var y = gc(ee), A = bc(ee, y), P = {
|
|
2704
|
+
firstWeekContainsDate: ae,
|
|
2705
2705
|
weekStartsOn: I,
|
|
2706
2706
|
locale: K,
|
|
2707
|
-
_originalDate:
|
|
2708
|
-
}, ce =
|
|
2709
|
-
var
|
|
2710
|
-
if (
|
|
2711
|
-
var ie = Hc[
|
|
2707
|
+
_originalDate: ee
|
|
2708
|
+
}, ce = x.match(Ad).map(function(ne) {
|
|
2709
|
+
var re = ne[0];
|
|
2710
|
+
if (re === "p" || re === "P") {
|
|
2711
|
+
var ie = Hc[re];
|
|
2712
2712
|
return ie(ne, K.formatLong);
|
|
2713
2713
|
}
|
|
2714
2714
|
return ne;
|
|
2715
2715
|
}).join("").match(kd).map(function(ne) {
|
|
2716
2716
|
if (ne === "''")
|
|
2717
2717
|
return "'";
|
|
2718
|
-
var
|
|
2719
|
-
if (
|
|
2718
|
+
var re = ne[0];
|
|
2719
|
+
if (re === "'")
|
|
2720
2720
|
return Od(ne);
|
|
2721
|
-
var ie = Lc[
|
|
2721
|
+
var ie = Lc[re];
|
|
2722
2722
|
if (ie)
|
|
2723
2723
|
return !(t != null && t.useAdditionalWeekYearTokens) && Rc(ne) && J1(ne, e, String(a)), !(t != null && t.useAdditionalDayOfYearTokens) && Nc(ne) && J1(ne, e, String(a)), ie(A, ne, K.localize, P);
|
|
2724
|
-
if (
|
|
2725
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" +
|
|
2724
|
+
if (re.match(Ed))
|
|
2725
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + re + "`");
|
|
2726
2726
|
return ne;
|
|
2727
2727
|
}).join("");
|
|
2728
2728
|
return ce;
|
|
@@ -2734,7 +2734,7 @@ function Od(a) {
|
|
|
2734
2734
|
function Ld(a, e) {
|
|
2735
2735
|
var t;
|
|
2736
2736
|
ge(1, arguments);
|
|
2737
|
-
var s =
|
|
2737
|
+
var s = xe((t = e == null ? void 0 : e.additionalDigits) !== null && t !== void 0 ? t : 2);
|
|
2738
2738
|
if (s !== 2 && s !== 1 && s !== 0)
|
|
2739
2739
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
2740
2740
|
if (!(typeof a == "string" || Object.prototype.toString.call(a) === "[object String]"))
|
|
@@ -2758,17 +2758,17 @@ function Ld(a, e) {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
return new Date(l + r + c);
|
|
2760
2760
|
}
|
|
2761
|
-
var
|
|
2761
|
+
var qt = {
|
|
2762
2762
|
dateTimeDelimiter: /[T ]/,
|
|
2763
2763
|
timeZoneDelimiter: /[Z ]/i,
|
|
2764
2764
|
timezone: /([Z+-].*)$/
|
|
2765
2765
|
}, Vd = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, Dd = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, Hd = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
2766
2766
|
function Pd(a) {
|
|
2767
|
-
var e = {}, t = a.split(
|
|
2767
|
+
var e = {}, t = a.split(qt.dateTimeDelimiter), s;
|
|
2768
2768
|
if (t.length > 2)
|
|
2769
2769
|
return e;
|
|
2770
|
-
if (/:/.test(t[0]) ? s = t[0] : (e.date = t[0], s = t[1],
|
|
2771
|
-
var n =
|
|
2770
|
+
if (/:/.test(t[0]) ? s = t[0] : (e.date = t[0], s = t[1], qt.timeZoneDelimiter.test(e.date) && (e.date = a.split(qt.timeZoneDelimiter)[0], s = a.substr(e.date.length, a.length))), s) {
|
|
2771
|
+
var n = qt.timezone.exec(s);
|
|
2772
2772
|
n ? (e.time = s.replace(n[1], ""), e.timezone = n[1]) : e.time = s;
|
|
2773
2773
|
}
|
|
2774
2774
|
return e;
|
|
@@ -2845,7 +2845,7 @@ function zd(a, e, t) {
|
|
|
2845
2845
|
function Yd(a, e) {
|
|
2846
2846
|
return e >= 0 && e <= 59;
|
|
2847
2847
|
}
|
|
2848
|
-
var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ae = {}, ya = {}, kt = {},
|
|
2848
|
+
var Se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ae = {}, ya = {}, kt = {}, Pt = {}, Ct = {}, s1 = {};
|
|
2849
2849
|
Object.defineProperty(s1, "__esModule", { value: !0 });
|
|
2850
2850
|
s1.lexoHelper = void 0;
|
|
2851
2851
|
s1.lexoHelper = {
|
|
@@ -2857,8 +2857,8 @@ function xd(a, e, t, s, n) {
|
|
|
2857
2857
|
for (let l = e; l < i; l++)
|
|
2858
2858
|
t[o] = a[l], ++o;
|
|
2859
2859
|
}
|
|
2860
|
-
var
|
|
2861
|
-
Object.defineProperty(
|
|
2860
|
+
var Bt = {};
|
|
2861
|
+
Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
2862
2862
|
class Kd {
|
|
2863
2863
|
constructor(e = "") {
|
|
2864
2864
|
this.str = e;
|
|
@@ -2882,10 +2882,10 @@ class Kd {
|
|
|
2882
2882
|
return this.str;
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
|
-
|
|
2885
|
+
Bt.default = Kd;
|
|
2886
2886
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
2887
2887
|
Ct.LexoInteger = void 0;
|
|
2888
|
-
const
|
|
2888
|
+
const Wt = s1, Gd = Bt;
|
|
2889
2889
|
class X {
|
|
2890
2890
|
constructor(e, t, s) {
|
|
2891
2891
|
this.sys = e, this.sign = t, this.mag = s;
|
|
@@ -2914,7 +2914,7 @@ class X {
|
|
|
2914
2914
|
if (n === s.length)
|
|
2915
2915
|
return new X(e, t, s);
|
|
2916
2916
|
const o = new Array(n).fill(0);
|
|
2917
|
-
return
|
|
2917
|
+
return Wt.lexoHelper.arrayCopy(s, 0, o, 0, n), new X(e, t, o);
|
|
2918
2918
|
}
|
|
2919
2919
|
static add(e, t, s) {
|
|
2920
2920
|
const n = Math.max(t.length, s.length), o = new Array(n).fill(0);
|
|
@@ -2931,7 +2931,7 @@ class X {
|
|
|
2931
2931
|
static extendWithCarry(e, t) {
|
|
2932
2932
|
if (t > 0) {
|
|
2933
2933
|
const s = new Array(e.length + 1).fill(0);
|
|
2934
|
-
return
|
|
2934
|
+
return Wt.lexoHelper.arrayCopy(e, 0, s, 0, e.length), s[s.length - 1] = t, s;
|
|
2935
2935
|
}
|
|
2936
2936
|
return e;
|
|
2937
2937
|
}
|
|
@@ -3015,13 +3015,13 @@ class X {
|
|
|
3015
3015
|
if (e < 0)
|
|
3016
3016
|
return this.shiftRight(Math.abs(e));
|
|
3017
3017
|
const t = new Array(this.mag.length + e).fill(0);
|
|
3018
|
-
return
|
|
3018
|
+
return Wt.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), X.make(this.sys, this.sign, t);
|
|
3019
3019
|
}
|
|
3020
3020
|
shiftRight(e = 1) {
|
|
3021
3021
|
if (this.mag.length - e <= 0)
|
|
3022
3022
|
return X.zero(this.sys);
|
|
3023
3023
|
const t = new Array(this.mag.length - e).fill(0);
|
|
3024
|
-
return
|
|
3024
|
+
return Wt.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), X.make(this.sys, this.sign, t);
|
|
3025
3025
|
}
|
|
3026
3026
|
complement() {
|
|
3027
3027
|
return this.complementDigits(this.mag.length);
|
|
@@ -3085,9 +3085,9 @@ X.ONE_MAG = [1];
|
|
|
3085
3085
|
X.NEGATIVE_SIGN = -1;
|
|
3086
3086
|
X.ZERO_SIGN = 0;
|
|
3087
3087
|
X.POSITIVE_SIGN = 1;
|
|
3088
|
-
Object.defineProperty(
|
|
3089
|
-
|
|
3090
|
-
const At = Ct, Xd =
|
|
3088
|
+
Object.defineProperty(Pt, "__esModule", { value: !0 });
|
|
3089
|
+
Pt.LexoDecimal = void 0;
|
|
3090
|
+
const At = Ct, Xd = Bt;
|
|
3091
3091
|
class Me {
|
|
3092
3092
|
constructor(e, t) {
|
|
3093
3093
|
this.mag = e, this.sig = t;
|
|
@@ -3191,12 +3191,12 @@ class Me {
|
|
|
3191
3191
|
return this.format();
|
|
3192
3192
|
}
|
|
3193
3193
|
}
|
|
3194
|
-
|
|
3195
|
-
var
|
|
3194
|
+
Pt.LexoDecimal = Me;
|
|
3195
|
+
var zt = {}, ea;
|
|
3196
3196
|
function ba() {
|
|
3197
3197
|
if (ea)
|
|
3198
|
-
return
|
|
3199
|
-
ea = 1, Object.defineProperty(
|
|
3198
|
+
return zt;
|
|
3199
|
+
ea = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
3200
3200
|
const a = Ct, e = $a();
|
|
3201
3201
|
class t {
|
|
3202
3202
|
constructor(n) {
|
|
@@ -3248,7 +3248,7 @@ function ba() {
|
|
|
3248
3248
|
return this === n ? !0 : n ? this.value.equals(n.value) : !1;
|
|
3249
3249
|
}
|
|
3250
3250
|
}
|
|
3251
|
-
return
|
|
3251
|
+
return zt.default = t, zt;
|
|
3252
3252
|
}
|
|
3253
3253
|
var I1 = {}, wa = {};
|
|
3254
3254
|
Object.defineProperty(wa, "__esModule", { value: !0 });
|
|
@@ -3312,7 +3312,7 @@ o1.LexoNumeralSystem36 = Jd;
|
|
|
3312
3312
|
var l1 = {};
|
|
3313
3313
|
Object.defineProperty(l1, "__esModule", { value: !0 });
|
|
3314
3314
|
l1.LexoNumeralSystem64 = void 0;
|
|
3315
|
-
class
|
|
3315
|
+
class e3 {
|
|
3316
3316
|
constructor() {
|
|
3317
3317
|
this.DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("");
|
|
3318
3318
|
}
|
|
@@ -3345,7 +3345,7 @@ class e0 {
|
|
|
3345
3345
|
return this.DIGITS[e];
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
|
-
l1.LexoNumeralSystem64 =
|
|
3348
|
+
l1.LexoNumeralSystem64 = e3;
|
|
3349
3349
|
(function(a) {
|
|
3350
3350
|
var e = Se && Se.__createBinding || (Object.create ? function(s, n, o, i) {
|
|
3351
3351
|
i === void 0 && (i = o);
|
|
@@ -3366,7 +3366,7 @@ function $a() {
|
|
|
3366
3366
|
if (ta)
|
|
3367
3367
|
return kt;
|
|
3368
3368
|
ta = 1, Object.defineProperty(kt, "__esModule", { value: !0 }), kt.LexoRank = void 0;
|
|
3369
|
-
const a =
|
|
3369
|
+
const a = Pt, e = ba(), t = Bt, s = I1;
|
|
3370
3370
|
class n {
|
|
3371
3371
|
constructor(i, l) {
|
|
3372
3372
|
this.value = i.format() + "|" + n.formatDecimal(l), this.bucket = i, this.decimal = l;
|
|
@@ -3552,7 +3552,7 @@ function $a() {
|
|
|
3552
3552
|
for (var o in s)
|
|
3553
3553
|
o !== "default" && !Object.prototype.hasOwnProperty.call(n, o) && e(n, s, o);
|
|
3554
3554
|
};
|
|
3555
|
-
Object.defineProperty(a, "__esModule", { value: !0 }), t($a(), a), t(ba(), a), t(
|
|
3555
|
+
Object.defineProperty(a, "__esModule", { value: !0 }), t($a(), a), t(ba(), a), t(Pt, a), t(Ct, a);
|
|
3556
3556
|
})(ya);
|
|
3557
3557
|
(function(a) {
|
|
3558
3558
|
var e = Se && Se.__createBinding || (Object.create ? function(s, n, o, i) {
|
|
@@ -3575,23 +3575,23 @@ function Ma(a) {
|
|
|
3575
3575
|
return e + (((s = t.activities) == null ? void 0 : s.length) ?? 0);
|
|
3576
3576
|
}, 0)) ?? 0;
|
|
3577
3577
|
}
|
|
3578
|
-
function
|
|
3578
|
+
function t3(a) {
|
|
3579
3579
|
return (a == null ? void 0 : a.reduce((e, t) => {
|
|
3580
3580
|
var s;
|
|
3581
3581
|
return e + (((s = t.milestones) == null ? void 0 : s.length) ?? 0);
|
|
3582
3582
|
}, 0)) ?? 0;
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3584
|
+
function a3(a) {
|
|
3585
3585
|
return (a == null ? void 0 : a.reduce((e, t) => {
|
|
3586
3586
|
var n;
|
|
3587
3587
|
const s = (n = t.milestones) != null && n.length ? Ma(t.milestones) : 0;
|
|
3588
3588
|
return e + s;
|
|
3589
3589
|
}, 0)) ?? 0;
|
|
3590
3590
|
}
|
|
3591
|
-
function
|
|
3591
|
+
function n3(a) {
|
|
3592
3592
|
return a.split(" ").slice(0, 2).map((e) => e.charAt(0).toLocaleLowerCase()).join("");
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function Nt(a, e) {
|
|
3595
3595
|
if (a.moved)
|
|
3596
3596
|
return Ot(e, a.moved.oldIndex, a.moved.newIndex);
|
|
3597
3597
|
}
|
|
@@ -3618,16 +3618,16 @@ function A1(a, e = "dd/MM/yyyy") {
|
|
|
3618
3618
|
function ka(a, e) {
|
|
3619
3619
|
return a.status.id === e.id;
|
|
3620
3620
|
}
|
|
3621
|
-
function
|
|
3621
|
+
function s3(a, e) {
|
|
3622
3622
|
return !a.activities.some((t) => !ka(t, e));
|
|
3623
3623
|
}
|
|
3624
|
-
function
|
|
3624
|
+
function i3(a, e) {
|
|
3625
3625
|
return {
|
|
3626
3626
|
...a,
|
|
3627
|
-
status:
|
|
3627
|
+
status: s3(a, e) ? k1.done : k1.todo
|
|
3628
3628
|
};
|
|
3629
3629
|
}
|
|
3630
|
-
const
|
|
3630
|
+
const o3 = ["title"], l3 = { className: "ao-avatar__initials" }, _t = /* @__PURE__ */ G({
|
|
3631
3631
|
__name: "AoAvatar",
|
|
3632
3632
|
props: {
|
|
3633
3633
|
userName: {},
|
|
@@ -3636,7 +3636,7 @@ const o0 = ["title"], l0 = { className: "ao-avatar__initials" }, _t = /* @__PURE
|
|
|
3636
3636
|
},
|
|
3637
3637
|
emits: ["close"],
|
|
3638
3638
|
setup(a, { emit: e }) {
|
|
3639
|
-
const s =
|
|
3639
|
+
const s = n3(a.userName), n = (o) => {
|
|
3640
3640
|
e("close", o);
|
|
3641
3641
|
};
|
|
3642
3642
|
return (o, i) => (v(), h("div", {
|
|
@@ -3644,8 +3644,8 @@ const o0 = ["title"], l0 = { className: "ao-avatar__initials" }, _t = /* @__PURE
|
|
|
3644
3644
|
class: Q(["ao-avatar", `ao-avatar--${o.size}`]),
|
|
3645
3645
|
title: o.userName
|
|
3646
3646
|
}, [
|
|
3647
|
-
f("span",
|
|
3648
|
-
o.isClosable ? (v(), N(
|
|
3647
|
+
f("span", l3, z(F(s)), 1),
|
|
3648
|
+
o.isClosable ? (v(), N(le, {
|
|
3649
3649
|
key: 0,
|
|
3650
3650
|
"icon-name": "CloseRounded",
|
|
3651
3651
|
class: "ao-avatar__close",
|
|
@@ -3653,19 +3653,19 @@ const o0 = ["title"], l0 = { className: "ao-avatar__initials" }, _t = /* @__PURE
|
|
|
3653
3653
|
corners: "round",
|
|
3654
3654
|
onClick: _e(n, ["stop"])
|
|
3655
3655
|
}, null, 8, ["onClick"])) : T("", !0)
|
|
3656
|
-
], 10,
|
|
3656
|
+
], 10, o3));
|
|
3657
3657
|
}
|
|
3658
3658
|
});
|
|
3659
|
-
const
|
|
3659
|
+
const r3 = { class: "ao-card-template__subitems" }, u3 = { class: "ao-card-template__subitem" }, c3 = { class: "ao-card-template__subitem-number" }, d3 = { class: "ao-card-template__subitem" }, f3 = { class: "ao-card-template__subitem" }, v3 = { class: "ao-card-template__body" }, p3 = { class: "ao-card-template__col ao-card-template__col--phases" }, h3 = { class: "ao-card-template__col-title" }, m3 = { class: "ao-card-template__col-label" }, C3 = {
|
|
3660
3660
|
key: 0,
|
|
3661
3661
|
class: "ao-card-template__col-body ao-card-template__phases-list"
|
|
3662
|
-
},
|
|
3662
|
+
}, _3 = { class: "ao-card-template__footer" }, g3 = {
|
|
3663
3663
|
key: 0,
|
|
3664
3664
|
class: "ao-card-template__col ao-card-template__col--updated-at"
|
|
3665
|
-
},
|
|
3665
|
+
}, y3 = { class: "ao-card-template__col-title" }, b3 = { class: "ao-card-template__col-label" }, w3 = { class: "ao-card-template__col-body" }, $3 = {
|
|
3666
3666
|
key: 1,
|
|
3667
3667
|
class: "ao-card-template__col ao-card-template__col--updated-by"
|
|
3668
|
-
},
|
|
3668
|
+
}, M3 = { class: "ao-card-template__col-title" }, k3 = { class: "ao-card-template__col-label" }, A3 = { class: "ao-card-template__col-body" }, S3 = /* @__PURE__ */ G({
|
|
3669
3669
|
__name: "AoCardTemplate",
|
|
3670
3670
|
props: {
|
|
3671
3671
|
id: {},
|
|
@@ -3686,36 +3686,36 @@ const r0 = { class: "ao-card-template__subitems" }, u0 = { class: "ao-card-templ
|
|
|
3686
3686
|
title: s.title,
|
|
3687
3687
|
"is-draggable": !0,
|
|
3688
3688
|
"onUpdate:title": t
|
|
3689
|
-
},
|
|
3689
|
+
}, Dt({
|
|
3690
3690
|
subtitle: R(() => [
|
|
3691
|
-
f("ul",
|
|
3692
|
-
f("li",
|
|
3691
|
+
f("ul", r3, [
|
|
3692
|
+
f("li", u3, [
|
|
3693
3693
|
k(de, {
|
|
3694
3694
|
name: "MountainFlagOutlineRounded",
|
|
3695
3695
|
size: "sm"
|
|
3696
3696
|
}),
|
|
3697
|
-
f("span",
|
|
3697
|
+
f("span", c3, z(s.milestones), 1)
|
|
3698
3698
|
]),
|
|
3699
|
-
f("li",
|
|
3699
|
+
f("li", d3, [
|
|
3700
3700
|
k(de, {
|
|
3701
3701
|
name: "TaskOutlineRounded",
|
|
3702
3702
|
size: "sm"
|
|
3703
3703
|
}),
|
|
3704
|
-
f("span",
|
|
3704
|
+
f("span", f3, z(s.activities), 1)
|
|
3705
3705
|
])
|
|
3706
3706
|
])
|
|
3707
3707
|
]),
|
|
3708
3708
|
default: R(() => [
|
|
3709
|
-
f("div",
|
|
3710
|
-
f("div",
|
|
3711
|
-
f("div",
|
|
3709
|
+
f("div", v3, [
|
|
3710
|
+
f("div", p3, [
|
|
3711
|
+
f("div", h3, [
|
|
3712
3712
|
k(de, {
|
|
3713
3713
|
name: "WaterfallChartRounded",
|
|
3714
3714
|
size: "sm"
|
|
3715
3715
|
}),
|
|
3716
|
-
f("span",
|
|
3716
|
+
f("span", m3, z(s.$t("template.phases.title")), 1)
|
|
3717
3717
|
]),
|
|
3718
|
-
s.phases ? (v(), h("ul",
|
|
3718
|
+
s.phases ? (v(), h("ul", C3, [
|
|
3719
3719
|
(v(!0), h(fe, null, ye(s.phases, (o) => (v(), N(E1, {
|
|
3720
3720
|
key: o.id,
|
|
3721
3721
|
label: o.name || o.id,
|
|
@@ -3731,20 +3731,20 @@ const r0 = { class: "ao-card-template__subitems" }, u0 = { class: "ao-card-templ
|
|
|
3731
3731
|
s.updatedBy || s.updatedAt ? {
|
|
3732
3732
|
name: "footer",
|
|
3733
3733
|
fn: R(() => [
|
|
3734
|
-
f("div",
|
|
3735
|
-
s.updatedAt ? (v(), h("div",
|
|
3736
|
-
f("div",
|
|
3737
|
-
f("span",
|
|
3734
|
+
f("div", _3, [
|
|
3735
|
+
s.updatedAt ? (v(), h("div", g3, [
|
|
3736
|
+
f("div", y3, [
|
|
3737
|
+
f("span", b3, z(s.$t("template.updatedAt.label")), 1)
|
|
3738
3738
|
]),
|
|
3739
|
-
f("div",
|
|
3739
|
+
f("div", w3, [
|
|
3740
3740
|
f("span", null, z(s.updatedAt), 1)
|
|
3741
3741
|
])
|
|
3742
3742
|
])) : T("", !0),
|
|
3743
|
-
s.updatedBy ? (v(), h("div", $
|
|
3744
|
-
f("div",
|
|
3745
|
-
f("span",
|
|
3743
|
+
s.updatedBy ? (v(), h("div", $3, [
|
|
3744
|
+
f("div", M3, [
|
|
3745
|
+
f("span", k3, z(s.$t("template.updatedBy.label")), 1)
|
|
3746
3746
|
]),
|
|
3747
|
-
f("div",
|
|
3747
|
+
f("div", A3, [
|
|
3748
3748
|
k(_t, { "user-name": s.updatedBy }, null, 8, ["user-name"])
|
|
3749
3749
|
])
|
|
3750
3750
|
])) : T("", !0)
|
|
@@ -3755,7 +3755,7 @@ const r0 = { class: "ao-card-template__subitems" }, u0 = { class: "ao-card-templ
|
|
|
3755
3755
|
]), 1032, ["id", "title"]));
|
|
3756
3756
|
}
|
|
3757
3757
|
});
|
|
3758
|
-
const
|
|
3758
|
+
const T3 = { class: "ao-page-header" }, E3 = { class: "ao-page-header-main" }, I3 = {
|
|
3759
3759
|
key: 0,
|
|
3760
3760
|
class: "ao-page-header-secondary"
|
|
3761
3761
|
}, r1 = /* @__PURE__ */ G({
|
|
@@ -3765,26 +3765,26 @@ const T0 = { class: "ao-page-header" }, E0 = { class: "ao-page-header-main" }, I
|
|
|
3765
3765
|
},
|
|
3766
3766
|
emits: ["goBack"],
|
|
3767
3767
|
setup(a) {
|
|
3768
|
-
return (e, t) => (v(), h("header",
|
|
3769
|
-
f("div",
|
|
3770
|
-
e.canGoBack ? (v(), N(
|
|
3768
|
+
return (e, t) => (v(), h("header", T3, [
|
|
3769
|
+
f("div", E3, [
|
|
3770
|
+
e.canGoBack ? (v(), N(le, {
|
|
3771
3771
|
key: 0,
|
|
3772
3772
|
"icon-name": "ArrowBackRounded",
|
|
3773
3773
|
variant: "ghost",
|
|
3774
3774
|
onClick: t[0] || (t[0] = (s) => e.$emit("goBack"))
|
|
3775
3775
|
})) : T("", !0),
|
|
3776
|
-
|
|
3776
|
+
te(e.$slots, "primary")
|
|
3777
3777
|
]),
|
|
3778
|
-
e.$slots.secondary ? (v(), h("div",
|
|
3779
|
-
|
|
3778
|
+
e.$slots.secondary ? (v(), h("div", I3, [
|
|
3779
|
+
te(e.$slots, "secondary")
|
|
3780
3780
|
])) : T("", !0)
|
|
3781
3781
|
]));
|
|
3782
3782
|
}
|
|
3783
3783
|
});
|
|
3784
|
-
const
|
|
3784
|
+
const O3 = ["type"], L3 = {
|
|
3785
3785
|
key: 0,
|
|
3786
3786
|
class: "ao-button-card__label"
|
|
3787
|
-
},
|
|
3787
|
+
}, Qe = /* @__PURE__ */ G({
|
|
3788
3788
|
__name: "AoButtonCard",
|
|
3789
3789
|
props: {
|
|
3790
3790
|
label: { default: () => "" },
|
|
@@ -3807,8 +3807,8 @@ const O0 = ["type"], L0 = {
|
|
|
3807
3807
|
n.$attrs.disabled ? "ao-button-card--is-disabled" : ""
|
|
3808
3808
|
])
|
|
3809
3809
|
}, [
|
|
3810
|
-
|
|
3811
|
-
n.label ? (v(), h("span",
|
|
3810
|
+
te(n.$slots, "default", {}, () => [
|
|
3811
|
+
n.label ? (v(), h("span", L3, z(n.label), 1)) : T("", !0)
|
|
3812
3812
|
]),
|
|
3813
3813
|
s.value ? (v(), N(de, {
|
|
3814
3814
|
key: 0,
|
|
@@ -3816,13 +3816,13 @@ const O0 = ["type"], L0 = {
|
|
|
3816
3816
|
class: "ao-button-card__icon",
|
|
3817
3817
|
size: t.value
|
|
3818
3818
|
}, null, 8, ["name", "size"])) : T("", !0)
|
|
3819
|
-
], 10,
|
|
3819
|
+
], 10, O3));
|
|
3820
3820
|
}
|
|
3821
3821
|
});
|
|
3822
|
-
const
|
|
3822
|
+
const V3 = { class: "ao-card-template-item__footer" }, D3 = {
|
|
3823
3823
|
key: 0,
|
|
3824
3824
|
class: "ao-card-template-item__subitem"
|
|
3825
|
-
},
|
|
3825
|
+
}, H3 = { class: "ao-card-template-item__subitem-number" }, P3 = { class: "ao-card-template-item__secondary" }, O1 = /* @__PURE__ */ G({
|
|
3826
3826
|
__name: "AoCardTemplateItem",
|
|
3827
3827
|
props: {
|
|
3828
3828
|
milestones: {},
|
|
@@ -3844,21 +3844,21 @@ const V0 = { class: "ao-card-template-item__footer" }, D0 = {
|
|
|
3844
3844
|
};
|
|
3845
3845
|
return (i, l) => (v(), N(fa, { "onUpdate:title": t }, {
|
|
3846
3846
|
footer: R(() => [
|
|
3847
|
-
f("ul",
|
|
3847
|
+
f("ul", V3, [
|
|
3848
3848
|
(v(), h(fe, null, ye(s, (r) => (v(), h(fe, { key: r }, [
|
|
3849
|
-
i.$props[r] ? (v(), h("li",
|
|
3849
|
+
i.$props[r] ? (v(), h("li", D3, [
|
|
3850
3850
|
k(de, {
|
|
3851
3851
|
name: n[r],
|
|
3852
3852
|
size: "sm"
|
|
3853
3853
|
}, null, 8, ["name"]),
|
|
3854
|
-
f("span",
|
|
3854
|
+
f("span", H3, z(i.$props[r]), 1)
|
|
3855
3855
|
])) : T("", !0)
|
|
3856
3856
|
], 64))), 64))
|
|
3857
3857
|
])
|
|
3858
3858
|
]),
|
|
3859
3859
|
secondary: R(() => [
|
|
3860
|
-
f("div",
|
|
3861
|
-
k(
|
|
3860
|
+
f("div", P3, [
|
|
3861
|
+
k(le, {
|
|
3862
3862
|
"icon-name": "DeleteOutlineRounded",
|
|
3863
3863
|
variant: "ghost",
|
|
3864
3864
|
size: "md",
|
|
@@ -3871,7 +3871,7 @@ const V0 = { class: "ao-card-template-item__footer" }, D0 = {
|
|
|
3871
3871
|
}));
|
|
3872
3872
|
}
|
|
3873
3873
|
});
|
|
3874
|
-
const
|
|
3874
|
+
const B3 = /* @__PURE__ */ G({
|
|
3875
3875
|
__name: "AoCardTemplateItemPhase",
|
|
3876
3876
|
props: {
|
|
3877
3877
|
id: {},
|
|
@@ -3890,12 +3890,12 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3890
3890
|
milestones: t.value
|
|
3891
3891
|
}, n.$attrs), {
|
|
3892
3892
|
default: R(() => [
|
|
3893
|
-
|
|
3893
|
+
te(n.$slots, "default")
|
|
3894
3894
|
]),
|
|
3895
3895
|
_: 3
|
|
3896
3896
|
}, 16, ["id", "title", "activities", "milestones"]));
|
|
3897
3897
|
}
|
|
3898
|
-
}),
|
|
3898
|
+
}), N3 = /* @__PURE__ */ G({
|
|
3899
3899
|
__name: "AoCardTemplateItemMilestone",
|
|
3900
3900
|
props: {
|
|
3901
3901
|
activities: {}
|
|
@@ -3907,12 +3907,12 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3907
3907
|
});
|
|
3908
3908
|
return (s, n) => (v(), N(O1, { activities: t.value }, {
|
|
3909
3909
|
default: R(() => [
|
|
3910
|
-
|
|
3910
|
+
te(s.$slots, "default")
|
|
3911
3911
|
]),
|
|
3912
3912
|
_: 3
|
|
3913
3913
|
}, 8, ["activities"]));
|
|
3914
3914
|
}
|
|
3915
|
-
}),
|
|
3915
|
+
}), R3 = { class: "ao-list__footer" }, j3 = /* @__PURE__ */ G({
|
|
3916
3916
|
__name: "AoTemplateDetailsMilestones",
|
|
3917
3917
|
props: {
|
|
3918
3918
|
templateId: {},
|
|
@@ -3929,14 +3929,14 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3929
3929
|
e("updateMilestone", l);
|
|
3930
3930
|
}, i = (l) => {
|
|
3931
3931
|
if (l.moved) {
|
|
3932
|
-
const r =
|
|
3932
|
+
const r = Nt(l, t.phase.milestones);
|
|
3933
3933
|
e("updateMilestone", {
|
|
3934
3934
|
id: l.moved.element.id,
|
|
3935
3935
|
rank: r
|
|
3936
3936
|
});
|
|
3937
3937
|
}
|
|
3938
3938
|
};
|
|
3939
|
-
return (l, r) => l.phase ? (v(), N(
|
|
3939
|
+
return (l, r) => l.phase ? (v(), N(F(Xe), {
|
|
3940
3940
|
key: 0,
|
|
3941
3941
|
"model-value": l.phase.milestones,
|
|
3942
3942
|
class: "ao-templates__list",
|
|
@@ -3953,7 +3953,7 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3953
3953
|
})
|
|
3954
3954
|
]),
|
|
3955
3955
|
item: R(({ element: c }) => [
|
|
3956
|
-
(v(), N(
|
|
3956
|
+
(v(), N(N3, {
|
|
3957
3957
|
id: c.id,
|
|
3958
3958
|
key: c.id,
|
|
3959
3959
|
title: c.name,
|
|
@@ -3970,8 +3970,8 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3970
3970
|
}, null, 8, ["id", "title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3971
3971
|
]),
|
|
3972
3972
|
footer: R(() => [
|
|
3973
|
-
f("div",
|
|
3974
|
-
k(
|
|
3973
|
+
f("div", R3, [
|
|
3974
|
+
k(Qe, {
|
|
3975
3975
|
"icon-name": "AddBoxOutlineRounded",
|
|
3976
3976
|
label: l.$t("template.milestones.add"),
|
|
3977
3977
|
onClick: s
|
|
@@ -3981,7 +3981,7 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3981
3981
|
_: 1
|
|
3982
3982
|
}, 8, ["model-value", "title"])) : T("", !0);
|
|
3983
3983
|
}
|
|
3984
|
-
}),
|
|
3984
|
+
}), U3 = /* @__PURE__ */ G({
|
|
3985
3985
|
__name: "AoCardTemplateItemActivity",
|
|
3986
3986
|
props: {
|
|
3987
3987
|
name: {},
|
|
@@ -3994,12 +3994,12 @@ const B0 = /* @__PURE__ */ G({
|
|
|
3994
3994
|
});
|
|
3995
3995
|
return (s, n) => (v(), N(O1, { tasks: t.value }, {
|
|
3996
3996
|
default: R(() => [
|
|
3997
|
-
|
|
3997
|
+
te(s.$slots, "default")
|
|
3998
3998
|
]),
|
|
3999
3999
|
_: 3
|
|
4000
4000
|
}, 8, ["tasks"]));
|
|
4001
4001
|
}
|
|
4002
|
-
}),
|
|
4002
|
+
}), Z3 = { class: "ao-list__footer" }, F3 = /* @__PURE__ */ G({
|
|
4003
4003
|
__name: "AoTemplateDetailsActivities",
|
|
4004
4004
|
props: {
|
|
4005
4005
|
templateId: {},
|
|
@@ -4019,14 +4019,14 @@ const B0 = /* @__PURE__ */ G({
|
|
|
4019
4019
|
e("removeActivity", { id: l });
|
|
4020
4020
|
}, i = (l) => {
|
|
4021
4021
|
if (l.moved) {
|
|
4022
|
-
const r =
|
|
4022
|
+
const r = Nt(l, t.milestone.activities);
|
|
4023
4023
|
e("updateActivity", {
|
|
4024
4024
|
id: l.moved.element.id,
|
|
4025
4025
|
rank: r
|
|
4026
4026
|
});
|
|
4027
4027
|
}
|
|
4028
4028
|
};
|
|
4029
|
-
return (l, r) => l.milestone ? (v(), N(
|
|
4029
|
+
return (l, r) => l.milestone ? (v(), N(F(Xe), {
|
|
4030
4030
|
key: 0,
|
|
4031
4031
|
"model-value": l.milestone.activities,
|
|
4032
4032
|
title: l.$t("template.activities.title"),
|
|
@@ -4043,7 +4043,7 @@ const B0 = /* @__PURE__ */ G({
|
|
|
4043
4043
|
})
|
|
4044
4044
|
]),
|
|
4045
4045
|
item: R(({ element: c }) => [
|
|
4046
|
-
(v(), N(
|
|
4046
|
+
(v(), N(U3, {
|
|
4047
4047
|
id: c.id,
|
|
4048
4048
|
key: c.id,
|
|
4049
4049
|
title: c.name,
|
|
@@ -4056,8 +4056,8 @@ const B0 = /* @__PURE__ */ G({
|
|
|
4056
4056
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4057
4057
|
]),
|
|
4058
4058
|
footer: R(() => [
|
|
4059
|
-
f("div",
|
|
4060
|
-
k(
|
|
4059
|
+
f("div", Z3, [
|
|
4060
|
+
k(Qe, {
|
|
4061
4061
|
"icon-name": "AddBoxOutlineRounded",
|
|
4062
4062
|
label: l.$t("template.activities.add"),
|
|
4063
4063
|
onClick: s
|
|
@@ -4067,10 +4067,10 @@ const B0 = /* @__PURE__ */ G({
|
|
|
4067
4067
|
_: 1
|
|
4068
4068
|
}, 8, ["model-value", "title"])) : T("", !0);
|
|
4069
4069
|
}
|
|
4070
|
-
}),
|
|
4070
|
+
}), q3 = { class: "ao-modal" }, W3 = { class: "ao-modal__header" }, z3 = { class: "ao-modal__header-meta" }, Y3 = {
|
|
4071
4071
|
key: 0,
|
|
4072
4072
|
class: "ao-modal__title-group"
|
|
4073
|
-
},
|
|
4073
|
+
}, x3 = { class: "ao-modal__body" }, K3 = {
|
|
4074
4074
|
key: 0,
|
|
4075
4075
|
class: "ao-modal__footer"
|
|
4076
4076
|
}, L1 = /* @__PURE__ */ G({
|
|
@@ -4087,39 +4087,39 @@ const B0 = /* @__PURE__ */ G({
|
|
|
4087
4087
|
class: "ao-modal__backdrop",
|
|
4088
4088
|
onClick: t[0] || (t[0] = (s) => e.$emit("close"))
|
|
4089
4089
|
}),
|
|
4090
|
-
f("div",
|
|
4091
|
-
f("div",
|
|
4092
|
-
f("div",
|
|
4093
|
-
k(
|
|
4090
|
+
f("div", q3, [
|
|
4091
|
+
f("div", W3, [
|
|
4092
|
+
f("div", z3, [
|
|
4093
|
+
k(le, {
|
|
4094
4094
|
"icon-name": "CloseRounded",
|
|
4095
4095
|
variant: "ghost",
|
|
4096
4096
|
color: "primary",
|
|
4097
4097
|
onClick: t[1] || (t[1] = (s) => e.$emit("close"))
|
|
4098
4098
|
})
|
|
4099
4099
|
]),
|
|
4100
|
-
e.$slots.header ? (v(), h("header",
|
|
4101
|
-
|
|
4100
|
+
e.$slots.header ? (v(), h("header", Y3, [
|
|
4101
|
+
te(e.$slots, "header")
|
|
4102
4102
|
])) : T("", !0)
|
|
4103
4103
|
]),
|
|
4104
|
-
f("div",
|
|
4105
|
-
|
|
4104
|
+
f("div", x3, [
|
|
4105
|
+
te(e.$slots, "default")
|
|
4106
4106
|
]),
|
|
4107
|
-
e.$slots.footer ? (v(), h("footer",
|
|
4108
|
-
|
|
4107
|
+
e.$slots.footer ? (v(), h("footer", K3, [
|
|
4108
|
+
te(e.$slots, "footer")
|
|
4109
4109
|
])) : T("", !0)
|
|
4110
4110
|
])
|
|
4111
4111
|
], 2));
|
|
4112
4112
|
}
|
|
4113
4113
|
});
|
|
4114
|
-
const Lt = Math.min, ke = Math.max,
|
|
4114
|
+
const Lt = Math.min, ke = Math.max, Xt = Math.round, Yt = Math.floor, Ke = (a) => ({
|
|
4115
4115
|
x: a,
|
|
4116
4116
|
y: a
|
|
4117
|
-
}),
|
|
4117
|
+
}), G3 = {
|
|
4118
4118
|
left: "right",
|
|
4119
4119
|
right: "left",
|
|
4120
4120
|
bottom: "top",
|
|
4121
4121
|
top: "bottom"
|
|
4122
|
-
},
|
|
4122
|
+
}, X3 = {
|
|
4123
4123
|
start: "end",
|
|
4124
4124
|
end: "start"
|
|
4125
4125
|
};
|
|
@@ -4132,7 +4132,7 @@ function ht(a) {
|
|
|
4132
4132
|
function u1(a) {
|
|
4133
4133
|
return a.split("-")[1];
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function Q3(a) {
|
|
4136
4136
|
return a === "x" ? "y" : "x";
|
|
4137
4137
|
}
|
|
4138
4138
|
function Aa(a) {
|
|
@@ -4142,22 +4142,22 @@ function D1(a) {
|
|
|
4142
4142
|
return ["top", "bottom"].includes(ht(a)) ? "y" : "x";
|
|
4143
4143
|
}
|
|
4144
4144
|
function Sa(a) {
|
|
4145
|
-
return
|
|
4145
|
+
return Q3(D1(a));
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function J3(a, e, t) {
|
|
4148
4148
|
t === void 0 && (t = !1);
|
|
4149
4149
|
const s = u1(a), n = Sa(a), o = Aa(n);
|
|
4150
4150
|
let i = n === "x" ? s === (t ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
|
4151
|
-
return e.reference[o] > e.floating[o] && (i =
|
|
4151
|
+
return e.reference[o] > e.floating[o] && (i = Qt(i)), [i, Qt(i)];
|
|
4152
4152
|
}
|
|
4153
|
-
function
|
|
4154
|
-
const e =
|
|
4153
|
+
function e0(a) {
|
|
4154
|
+
const e = Qt(a);
|
|
4155
4155
|
return [S1(a), e, S1(e)];
|
|
4156
4156
|
}
|
|
4157
4157
|
function S1(a) {
|
|
4158
|
-
return a.replace(/start|end/g, (e) =>
|
|
4158
|
+
return a.replace(/start|end/g, (e) => X3[e]);
|
|
4159
4159
|
}
|
|
4160
|
-
function
|
|
4160
|
+
function t0(a, e, t) {
|
|
4161
4161
|
const s = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
|
|
4162
4162
|
switch (a) {
|
|
4163
4163
|
case "top":
|
|
@@ -4170,15 +4170,15 @@ function t3(a, e, t) {
|
|
|
4170
4170
|
return [];
|
|
4171
4171
|
}
|
|
4172
4172
|
}
|
|
4173
|
-
function
|
|
4173
|
+
function a0(a, e, t, s) {
|
|
4174
4174
|
const n = u1(a);
|
|
4175
|
-
let o =
|
|
4175
|
+
let o = t0(ht(a), t === "start", s);
|
|
4176
4176
|
return n && (o = o.map((i) => i + "-" + n), e && (o = o.concat(o.map(S1)))), o;
|
|
4177
4177
|
}
|
|
4178
|
-
function
|
|
4179
|
-
return a.replace(/left|right|bottom|top/g, (e) =>
|
|
4178
|
+
function Qt(a) {
|
|
4179
|
+
return a.replace(/left|right|bottom|top/g, (e) => G3[e]);
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4181
|
+
function n0(a) {
|
|
4182
4182
|
return {
|
|
4183
4183
|
top: 0,
|
|
4184
4184
|
right: 0,
|
|
@@ -4187,15 +4187,15 @@ function n3(a) {
|
|
|
4187
4187
|
...a
|
|
4188
4188
|
};
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4191
|
-
return typeof a != "number" ?
|
|
4190
|
+
function s0(a) {
|
|
4191
|
+
return typeof a != "number" ? n0(a) : {
|
|
4192
4192
|
top: a,
|
|
4193
4193
|
right: a,
|
|
4194
4194
|
bottom: a,
|
|
4195
4195
|
left: a
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
function
|
|
4198
|
+
function Jt(a) {
|
|
4199
4199
|
return {
|
|
4200
4200
|
...a,
|
|
4201
4201
|
top: a.y,
|
|
@@ -4252,7 +4252,7 @@ function aa(a, e, t) {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
return C;
|
|
4254
4254
|
}
|
|
4255
|
-
const
|
|
4255
|
+
const i0 = async (a, e, t) => {
|
|
4256
4256
|
const {
|
|
4257
4257
|
placement: s = "bottom",
|
|
4258
4258
|
strategy: n = "absolute",
|
|
@@ -4275,7 +4275,7 @@ const i3 = async (a, e, t) => {
|
|
|
4275
4275
|
x: g,
|
|
4276
4276
|
y: V,
|
|
4277
4277
|
data: j,
|
|
4278
|
-
reset:
|
|
4278
|
+
reset: x
|
|
4279
4279
|
} = await _({
|
|
4280
4280
|
x: u,
|
|
4281
4281
|
y: d,
|
|
@@ -4296,12 +4296,12 @@ const i3 = async (a, e, t) => {
|
|
|
4296
4296
|
...C[S],
|
|
4297
4297
|
...j
|
|
4298
4298
|
}
|
|
4299
|
-
},
|
|
4300
|
-
w++, typeof
|
|
4299
|
+
}, x && w <= 50) {
|
|
4300
|
+
w++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (c = x.rects === !0 ? await i.getElementRects({
|
|
4301
4301
|
reference: a,
|
|
4302
4302
|
floating: e,
|
|
4303
4303
|
strategy: n
|
|
4304
|
-
}) :
|
|
4304
|
+
}) : x.rects), {
|
|
4305
4305
|
x: u,
|
|
4306
4306
|
y: d
|
|
4307
4307
|
} = aa(c, p, r)), M = -1;
|
|
@@ -4332,7 +4332,7 @@ async function Ta(a, e) {
|
|
|
4332
4332
|
elementContext: d = "floating",
|
|
4333
4333
|
altBoundary: p = !1,
|
|
4334
4334
|
padding: C = 0
|
|
4335
|
-
} = V1(e, a), w =
|
|
4335
|
+
} = V1(e, a), w = s0(C), S = l[p ? d === "floating" ? "reference" : "floating" : d], _ = Jt(await o.getClippingRect({
|
|
4336
4336
|
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)),
|
|
4337
4337
|
boundary: c,
|
|
4338
4338
|
rootBoundary: u,
|
|
@@ -4347,19 +4347,19 @@ async function Ta(a, e) {
|
|
|
4347
4347
|
} : {
|
|
4348
4348
|
x: 1,
|
|
4349
4349
|
y: 1
|
|
4350
|
-
},
|
|
4350
|
+
}, x = Jt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4351
4351
|
rect: g,
|
|
4352
4352
|
offsetParent: V,
|
|
4353
4353
|
strategy: r
|
|
4354
4354
|
}) : g);
|
|
4355
4355
|
return {
|
|
4356
|
-
top: (_.top -
|
|
4357
|
-
bottom: (
|
|
4358
|
-
left: (_.left -
|
|
4359
|
-
right: (
|
|
4356
|
+
top: (_.top - x.top + w.top) / j.y,
|
|
4357
|
+
bottom: (x.bottom - _.bottom + w.bottom) / j.y,
|
|
4358
|
+
left: (_.left - x.left + w.left) / j.x,
|
|
4359
|
+
right: (x.right - _.right + w.right) / j.x
|
|
4360
4360
|
};
|
|
4361
4361
|
}
|
|
4362
|
-
const
|
|
4362
|
+
const o0 = function(a) {
|
|
4363
4363
|
return a === void 0 && (a = {}), {
|
|
4364
4364
|
name: "flip",
|
|
4365
4365
|
options: a,
|
|
@@ -4383,36 +4383,36 @@ const o3 = function(a) {
|
|
|
4383
4383
|
} = V1(a, e);
|
|
4384
4384
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
4385
4385
|
return {};
|
|
4386
|
-
const _ = ht(n), g = ht(l) === l, V = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), j = p || (g || !M ? [
|
|
4387
|
-
!p && w !== "none" && j.push(...
|
|
4388
|
-
const
|
|
4389
|
-
let
|
|
4386
|
+
const _ = ht(n), g = ht(l) === l, V = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), j = p || (g || !M ? [Qt(l)] : e0(l));
|
|
4387
|
+
!p && w !== "none" && j.push(...a0(l, M, w, V));
|
|
4388
|
+
const x = [l, ...j], D = await Ta(e, S), K = [];
|
|
4389
|
+
let ae = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4390
4390
|
if (u && K.push(D[_]), d) {
|
|
4391
|
-
const A =
|
|
4391
|
+
const A = J3(n, i, V);
|
|
4392
4392
|
K.push(D[A[0]], D[A[1]]);
|
|
4393
4393
|
}
|
|
4394
|
-
if (
|
|
4394
|
+
if (ae = [...ae, {
|
|
4395
4395
|
placement: n,
|
|
4396
4396
|
overflows: K
|
|
4397
4397
|
}], !K.every((A) => A <= 0)) {
|
|
4398
|
-
var I,
|
|
4399
|
-
const A = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, P =
|
|
4398
|
+
var I, ee;
|
|
4399
|
+
const A = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, P = x[A];
|
|
4400
4400
|
if (P)
|
|
4401
4401
|
return {
|
|
4402
4402
|
data: {
|
|
4403
4403
|
index: A,
|
|
4404
|
-
overflows:
|
|
4404
|
+
overflows: ae
|
|
4405
4405
|
},
|
|
4406
4406
|
reset: {
|
|
4407
4407
|
placement: P
|
|
4408
4408
|
}
|
|
4409
4409
|
};
|
|
4410
|
-
let ce = (
|
|
4410
|
+
let ce = (ee = ae.filter((ne) => ne.overflows[0] <= 0).sort((ne, re) => ne.overflows[1] - re.overflows[1])[0]) == null ? void 0 : ee.placement;
|
|
4411
4411
|
if (!ce)
|
|
4412
4412
|
switch (C) {
|
|
4413
4413
|
case "bestFit": {
|
|
4414
4414
|
var y;
|
|
4415
|
-
const ne = (y =
|
|
4415
|
+
const ne = (y = ae.map((re) => [re.placement, re.overflows.filter((ie) => ie > 0).reduce((ie, O) => ie + O, 0)]).sort((re, ie) => re[1] - ie[1])[0]) == null ? void 0 : y[0];
|
|
4416
4416
|
ne && (ce = ne);
|
|
4417
4417
|
break;
|
|
4418
4418
|
}
|
|
@@ -4430,7 +4430,7 @@ const o3 = function(a) {
|
|
|
4430
4430
|
return {};
|
|
4431
4431
|
}
|
|
4432
4432
|
};
|
|
4433
|
-
},
|
|
4433
|
+
}, l0 = function(a) {
|
|
4434
4434
|
return a === void 0 && (a = {}), {
|
|
4435
4435
|
name: "size",
|
|
4436
4436
|
options: a,
|
|
@@ -4460,16 +4460,16 @@ const o3 = function(a) {
|
|
|
4460
4460
|
V = u || g ? Lt(S, D) : D;
|
|
4461
4461
|
}
|
|
4462
4462
|
if (g && !u) {
|
|
4463
|
-
const D = ke(r.left, 0), K = ke(r.right, 0),
|
|
4464
|
-
d ? j = p - 2 * (D !== 0 || K !== 0 ? D + K : ke(r.left, r.right)) : V = C - 2 * (
|
|
4463
|
+
const D = ke(r.left, 0), K = ke(r.right, 0), ae = ke(r.top, 0), I = ke(r.bottom, 0);
|
|
4464
|
+
d ? j = p - 2 * (D !== 0 || K !== 0 ? D + K : ke(r.left, r.right)) : V = C - 2 * (ae !== 0 || I !== 0 ? ae + I : ke(r.top, r.bottom));
|
|
4465
4465
|
}
|
|
4466
4466
|
await i({
|
|
4467
4467
|
...e,
|
|
4468
4468
|
availableWidth: j,
|
|
4469
4469
|
availableHeight: V
|
|
4470
4470
|
});
|
|
4471
|
-
const
|
|
4472
|
-
return p !==
|
|
4471
|
+
const x = await n.getDimensions(o.floating);
|
|
4472
|
+
return p !== x.width || C !== x.height ? {
|
|
4473
4473
|
reset: {
|
|
4474
4474
|
rects: !0
|
|
4475
4475
|
}
|
|
@@ -4477,21 +4477,21 @@ const o3 = function(a) {
|
|
|
4477
4477
|
}
|
|
4478
4478
|
};
|
|
4479
4479
|
};
|
|
4480
|
-
function
|
|
4480
|
+
function Ge(a) {
|
|
4481
4481
|
return Ea(a) ? (a.nodeName || "").toLowerCase() : "#document";
|
|
4482
4482
|
}
|
|
4483
4483
|
function we(a) {
|
|
4484
4484
|
var e;
|
|
4485
4485
|
return (a == null || (e = a.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
4486
4486
|
}
|
|
4487
|
-
function
|
|
4487
|
+
function Ze(a) {
|
|
4488
4488
|
var e;
|
|
4489
4489
|
return (e = (Ea(a) ? a.ownerDocument : a.document) || window.document) == null ? void 0 : e.documentElement;
|
|
4490
4490
|
}
|
|
4491
4491
|
function Ea(a) {
|
|
4492
4492
|
return a instanceof Node || a instanceof we(a).Node;
|
|
4493
4493
|
}
|
|
4494
|
-
function
|
|
4494
|
+
function Ue(a) {
|
|
4495
4495
|
return a instanceof Element || a instanceof we(a).Element;
|
|
4496
4496
|
}
|
|
4497
4497
|
function De(a) {
|
|
@@ -4500,7 +4500,7 @@ function De(a) {
|
|
|
4500
4500
|
function na(a) {
|
|
4501
4501
|
return typeof ShadowRoot > "u" ? !1 : a instanceof ShadowRoot || a instanceof we(a).ShadowRoot;
|
|
4502
4502
|
}
|
|
4503
|
-
function
|
|
4503
|
+
function Rt(a) {
|
|
4504
4504
|
const {
|
|
4505
4505
|
overflow: e,
|
|
4506
4506
|
overflowX: t,
|
|
@@ -4509,14 +4509,14 @@ function jt(a) {
|
|
|
4509
4509
|
} = Te(a);
|
|
4510
4510
|
return /auto|scroll|overlay|hidden|clip/.test(e + s + t) && !["inline", "contents"].includes(n);
|
|
4511
4511
|
}
|
|
4512
|
-
function
|
|
4513
|
-
return ["table", "td", "th"].includes(
|
|
4512
|
+
function r0(a) {
|
|
4513
|
+
return ["table", "td", "th"].includes(Ge(a));
|
|
4514
4514
|
}
|
|
4515
4515
|
function H1(a) {
|
|
4516
4516
|
const e = P1(), t = Te(a);
|
|
4517
4517
|
return t.transform !== "none" || t.perspective !== "none" || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((s) => (t.willChange || "").includes(s)) || ["paint", "layout", "strict", "content"].some((s) => (t.contain || "").includes(s));
|
|
4518
4518
|
}
|
|
4519
|
-
function
|
|
4519
|
+
function u0(a) {
|
|
4520
4520
|
let e = mt(a);
|
|
4521
4521
|
for (; De(e) && !c1(e); ) {
|
|
4522
4522
|
if (H1(e))
|
|
@@ -4529,13 +4529,13 @@ function P1() {
|
|
|
4529
4529
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
4530
4530
|
}
|
|
4531
4531
|
function c1(a) {
|
|
4532
|
-
return ["html", "body", "#document"].includes(
|
|
4532
|
+
return ["html", "body", "#document"].includes(Ge(a));
|
|
4533
4533
|
}
|
|
4534
4534
|
function Te(a) {
|
|
4535
4535
|
return we(a).getComputedStyle(a);
|
|
4536
4536
|
}
|
|
4537
4537
|
function d1(a) {
|
|
4538
|
-
return
|
|
4538
|
+
return Ue(a) ? {
|
|
4539
4539
|
scrollLeft: a.scrollLeft,
|
|
4540
4540
|
scrollTop: a.scrollTop
|
|
4541
4541
|
} : {
|
|
@@ -4544,31 +4544,31 @@ function d1(a) {
|
|
|
4544
4544
|
};
|
|
4545
4545
|
}
|
|
4546
4546
|
function mt(a) {
|
|
4547
|
-
if (
|
|
4547
|
+
if (Ge(a) === "html")
|
|
4548
4548
|
return a;
|
|
4549
4549
|
const e = (
|
|
4550
4550
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
4551
4551
|
a.assignedSlot || // DOM Element detected.
|
|
4552
4552
|
a.parentNode || // ShadowRoot detected.
|
|
4553
4553
|
na(a) && a.host || // Fallback.
|
|
4554
|
-
|
|
4554
|
+
Ze(a)
|
|
4555
4555
|
);
|
|
4556
4556
|
return na(e) ? e.host : e;
|
|
4557
4557
|
}
|
|
4558
4558
|
function Ia(a) {
|
|
4559
4559
|
const e = mt(a);
|
|
4560
|
-
return c1(e) ? a.ownerDocument ? a.ownerDocument.body : a.body : De(e) &&
|
|
4560
|
+
return c1(e) ? a.ownerDocument ? a.ownerDocument.body : a.body : De(e) && Rt(e) ? e : Ia(e);
|
|
4561
4561
|
}
|
|
4562
4562
|
function Vt(a, e, t) {
|
|
4563
4563
|
var s;
|
|
4564
4564
|
e === void 0 && (e = []), t === void 0 && (t = !0);
|
|
4565
4565
|
const n = Ia(a), o = n === ((s = a.ownerDocument) == null ? void 0 : s.body), i = we(n);
|
|
4566
|
-
return o ? e.concat(i, i.visualViewport || [],
|
|
4566
|
+
return o ? e.concat(i, i.visualViewport || [], Rt(n) ? n : [], i.frameElement && t ? Vt(i.frameElement) : []) : e.concat(n, Vt(n));
|
|
4567
4567
|
}
|
|
4568
4568
|
function Oa(a) {
|
|
4569
4569
|
const e = Te(a);
|
|
4570
4570
|
let t = parseFloat(e.width) || 0, s = parseFloat(e.height) || 0;
|
|
4571
|
-
const n = De(a), o = n ? a.offsetWidth : t, i = n ? a.offsetHeight : s, l =
|
|
4571
|
+
const n = De(a), o = n ? a.offsetWidth : t, i = n ? a.offsetHeight : s, l = Xt(t) !== o || Xt(s) !== i;
|
|
4572
4572
|
return l && (t = o, s = i), {
|
|
4573
4573
|
width: t,
|
|
4574
4574
|
height: s,
|
|
@@ -4576,71 +4576,71 @@ function Oa(a) {
|
|
|
4576
4576
|
};
|
|
4577
4577
|
}
|
|
4578
4578
|
function B1(a) {
|
|
4579
|
-
return
|
|
4579
|
+
return Ue(a) ? a : a.contextElement;
|
|
4580
4580
|
}
|
|
4581
4581
|
function vt(a) {
|
|
4582
4582
|
const e = B1(a);
|
|
4583
4583
|
if (!De(e))
|
|
4584
|
-
return
|
|
4584
|
+
return Ke(1);
|
|
4585
4585
|
const t = e.getBoundingClientRect(), {
|
|
4586
4586
|
width: s,
|
|
4587
4587
|
height: n,
|
|
4588
4588
|
$: o
|
|
4589
4589
|
} = Oa(e);
|
|
4590
|
-
let i = (o ?
|
|
4590
|
+
let i = (o ? Xt(t.width) : t.width) / s, l = (o ? Xt(t.height) : t.height) / n;
|
|
4591
4591
|
return (!i || !Number.isFinite(i)) && (i = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
4592
4592
|
x: i,
|
|
4593
4593
|
y: l
|
|
4594
4594
|
};
|
|
4595
4595
|
}
|
|
4596
|
-
const
|
|
4596
|
+
const c0 = /* @__PURE__ */ Ke(0);
|
|
4597
4597
|
function La(a) {
|
|
4598
4598
|
const e = we(a);
|
|
4599
|
-
return !P1() || !e.visualViewport ?
|
|
4599
|
+
return !P1() || !e.visualViewport ? c0 : {
|
|
4600
4600
|
x: e.visualViewport.offsetLeft,
|
|
4601
4601
|
y: e.visualViewport.offsetTop
|
|
4602
4602
|
};
|
|
4603
4603
|
}
|
|
4604
|
-
function
|
|
4604
|
+
function d0(a, e, t) {
|
|
4605
4605
|
return e === void 0 && (e = !1), !t || e && t !== we(a) ? !1 : e;
|
|
4606
4606
|
}
|
|
4607
4607
|
function et(a, e, t, s) {
|
|
4608
4608
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
4609
4609
|
const n = a.getBoundingClientRect(), o = B1(a);
|
|
4610
|
-
let i =
|
|
4611
|
-
e && (s ?
|
|
4612
|
-
const l =
|
|
4610
|
+
let i = Ke(1);
|
|
4611
|
+
e && (s ? Ue(s) && (i = vt(s)) : i = vt(a));
|
|
4612
|
+
const l = d0(o, t, s) ? La(o) : Ke(0);
|
|
4613
4613
|
let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, d = n.height / i.y;
|
|
4614
4614
|
if (o) {
|
|
4615
|
-
const p = we(o), C = s &&
|
|
4615
|
+
const p = we(o), C = s && Ue(s) ? we(s) : s;
|
|
4616
4616
|
let w = p.frameElement;
|
|
4617
4617
|
for (; w && s && C !== p; ) {
|
|
4618
4618
|
const M = vt(w), S = w.getBoundingClientRect(), _ = Te(w), g = S.left + (w.clientLeft + parseFloat(_.paddingLeft)) * M.x, V = S.top + (w.clientTop + parseFloat(_.paddingTop)) * M.y;
|
|
4619
4619
|
r *= M.x, c *= M.y, u *= M.x, d *= M.y, r += g, c += V, w = we(w).frameElement;
|
|
4620
4620
|
}
|
|
4621
4621
|
}
|
|
4622
|
-
return
|
|
4622
|
+
return Jt({
|
|
4623
4623
|
width: u,
|
|
4624
4624
|
height: d,
|
|
4625
4625
|
x: r,
|
|
4626
4626
|
y: c
|
|
4627
4627
|
});
|
|
4628
4628
|
}
|
|
4629
|
-
function
|
|
4629
|
+
function f0(a) {
|
|
4630
4630
|
let {
|
|
4631
4631
|
rect: e,
|
|
4632
4632
|
offsetParent: t,
|
|
4633
4633
|
strategy: s
|
|
4634
4634
|
} = a;
|
|
4635
|
-
const n = De(t), o =
|
|
4635
|
+
const n = De(t), o = Ze(t);
|
|
4636
4636
|
if (t === o)
|
|
4637
4637
|
return e;
|
|
4638
4638
|
let i = {
|
|
4639
4639
|
scrollLeft: 0,
|
|
4640
4640
|
scrollTop: 0
|
|
4641
|
-
}, l =
|
|
4642
|
-
const r =
|
|
4643
|
-
if ((n || !n && s !== "fixed") && ((
|
|
4641
|
+
}, l = Ke(1);
|
|
4642
|
+
const r = Ke(0);
|
|
4643
|
+
if ((n || !n && s !== "fixed") && ((Ge(t) !== "body" || Rt(o)) && (i = d1(t)), De(t))) {
|
|
4644
4644
|
const c = et(t);
|
|
4645
4645
|
l = vt(t), r.x = c.x + t.clientLeft, r.y = c.y + t.clientTop;
|
|
4646
4646
|
}
|
|
@@ -4651,14 +4651,14 @@ function f3(a) {
|
|
|
4651
4651
|
y: e.y * l.y - i.scrollTop * l.y + r.y
|
|
4652
4652
|
};
|
|
4653
4653
|
}
|
|
4654
|
-
function
|
|
4654
|
+
function v0(a) {
|
|
4655
4655
|
return Array.from(a.getClientRects());
|
|
4656
4656
|
}
|
|
4657
4657
|
function Va(a) {
|
|
4658
|
-
return et(
|
|
4658
|
+
return et(Ze(a)).left + d1(a).scrollLeft;
|
|
4659
4659
|
}
|
|
4660
|
-
function
|
|
4661
|
-
const e =
|
|
4660
|
+
function p0(a) {
|
|
4661
|
+
const e = Ze(a), t = d1(a), s = a.ownerDocument.body, n = ke(e.scrollWidth, e.clientWidth, s.scrollWidth, s.clientWidth), o = ke(e.scrollHeight, e.clientHeight, s.scrollHeight, s.clientHeight);
|
|
4662
4662
|
let i = -t.scrollLeft + Va(a);
|
|
4663
4663
|
const l = -t.scrollTop;
|
|
4664
4664
|
return Te(s).direction === "rtl" && (i += ke(e.clientWidth, s.clientWidth) - n), {
|
|
@@ -4668,8 +4668,8 @@ function p3(a) {
|
|
|
4668
4668
|
y: l
|
|
4669
4669
|
};
|
|
4670
4670
|
}
|
|
4671
|
-
function
|
|
4672
|
-
const t = we(a), s =
|
|
4671
|
+
function h0(a, e) {
|
|
4672
|
+
const t = we(a), s = Ze(a), n = t.visualViewport;
|
|
4673
4673
|
let o = s.clientWidth, i = s.clientHeight, l = 0, r = 0;
|
|
4674
4674
|
if (n) {
|
|
4675
4675
|
o = n.width, i = n.height;
|
|
@@ -4683,8 +4683,8 @@ function h3(a, e) {
|
|
|
4683
4683
|
y: r
|
|
4684
4684
|
};
|
|
4685
4685
|
}
|
|
4686
|
-
function
|
|
4687
|
-
const t = et(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = De(a) ? vt(a) :
|
|
4686
|
+
function m0(a, e) {
|
|
4687
|
+
const t = et(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = De(a) ? vt(a) : Ke(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, c = s * o.y;
|
|
4688
4688
|
return {
|
|
4689
4689
|
width: i,
|
|
4690
4690
|
height: l,
|
|
@@ -4695,11 +4695,11 @@ function m3(a, e) {
|
|
|
4695
4695
|
function sa(a, e, t) {
|
|
4696
4696
|
let s;
|
|
4697
4697
|
if (e === "viewport")
|
|
4698
|
-
s =
|
|
4698
|
+
s = h0(a, t);
|
|
4699
4699
|
else if (e === "document")
|
|
4700
|
-
s =
|
|
4701
|
-
else if (
|
|
4702
|
-
s =
|
|
4700
|
+
s = p0(Ze(a));
|
|
4701
|
+
else if (Ue(e))
|
|
4702
|
+
s = m0(e, t);
|
|
4703
4703
|
else {
|
|
4704
4704
|
const n = La(a);
|
|
4705
4705
|
s = {
|
|
@@ -4708,33 +4708,33 @@ function sa(a, e, t) {
|
|
|
4708
4708
|
y: e.y - n.y
|
|
4709
4709
|
};
|
|
4710
4710
|
}
|
|
4711
|
-
return
|
|
4711
|
+
return Jt(s);
|
|
4712
4712
|
}
|
|
4713
4713
|
function Da(a, e) {
|
|
4714
4714
|
const t = mt(a);
|
|
4715
|
-
return t === e || !
|
|
4715
|
+
return t === e || !Ue(t) || c1(t) ? !1 : Te(t).position === "fixed" || Da(t, e);
|
|
4716
4716
|
}
|
|
4717
|
-
function
|
|
4717
|
+
function C0(a, e) {
|
|
4718
4718
|
const t = e.get(a);
|
|
4719
4719
|
if (t)
|
|
4720
4720
|
return t;
|
|
4721
|
-
let s = Vt(a, [], !1).filter((l) =>
|
|
4721
|
+
let s = Vt(a, [], !1).filter((l) => Ue(l) && Ge(l) !== "body"), n = null;
|
|
4722
4722
|
const o = Te(a).position === "fixed";
|
|
4723
4723
|
let i = o ? mt(a) : a;
|
|
4724
|
-
for (;
|
|
4724
|
+
for (; Ue(i) && !c1(i); ) {
|
|
4725
4725
|
const l = Te(i), r = H1(i);
|
|
4726
|
-
!r && l.position === "fixed" && (n = null), (o ? !r && !n : !r && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) ||
|
|
4726
|
+
!r && l.position === "fixed" && (n = null), (o ? !r && !n : !r && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Rt(i) && !r && Da(a, i)) ? s = s.filter((u) => u !== i) : n = l, i = mt(i);
|
|
4727
4727
|
}
|
|
4728
4728
|
return e.set(a, s), s;
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4730
|
+
function _0(a) {
|
|
4731
4731
|
let {
|
|
4732
4732
|
element: e,
|
|
4733
4733
|
boundary: t,
|
|
4734
4734
|
rootBoundary: s,
|
|
4735
4735
|
strategy: n
|
|
4736
4736
|
} = a;
|
|
4737
|
-
const i = [...t === "clippingAncestors" ?
|
|
4737
|
+
const i = [...t === "clippingAncestors" ? C0(e, this._c) : [].concat(t), s], l = i[0], r = i.reduce((c, u) => {
|
|
4738
4738
|
const d = sa(e, u, n);
|
|
4739
4739
|
return c.top = ke(d.top, c.top), c.right = Lt(d.right, c.right), c.bottom = Lt(d.bottom, c.bottom), c.left = ke(d.left, c.left), c;
|
|
4740
4740
|
}, sa(e, l, n));
|
|
@@ -4745,18 +4745,18 @@ function _3(a) {
|
|
|
4745
4745
|
y: r.top
|
|
4746
4746
|
};
|
|
4747
4747
|
}
|
|
4748
|
-
function
|
|
4748
|
+
function g0(a) {
|
|
4749
4749
|
return Oa(a);
|
|
4750
4750
|
}
|
|
4751
|
-
function
|
|
4752
|
-
const s = De(e), n =
|
|
4751
|
+
function y0(a, e, t) {
|
|
4752
|
+
const s = De(e), n = Ze(e), o = t === "fixed", i = et(a, !0, o, e);
|
|
4753
4753
|
let l = {
|
|
4754
4754
|
scrollLeft: 0,
|
|
4755
4755
|
scrollTop: 0
|
|
4756
4756
|
};
|
|
4757
|
-
const r =
|
|
4757
|
+
const r = Ke(0);
|
|
4758
4758
|
if (s || !s && !o)
|
|
4759
|
-
if ((
|
|
4759
|
+
if ((Ge(e) !== "body" || Rt(n)) && (l = d1(e)), s) {
|
|
4760
4760
|
const c = et(e, !0, o, e);
|
|
4761
4761
|
r.x = c.x + e.clientLeft, r.y = c.y + e.clientTop;
|
|
4762
4762
|
} else
|
|
@@ -4776,11 +4776,11 @@ function Ha(a, e) {
|
|
|
4776
4776
|
if (!De(a))
|
|
4777
4777
|
return t;
|
|
4778
4778
|
let s = ia(a, e);
|
|
4779
|
-
for (; s &&
|
|
4779
|
+
for (; s && r0(s) && Te(s).position === "static"; )
|
|
4780
4780
|
s = ia(s, e);
|
|
4781
|
-
return s && (
|
|
4781
|
+
return s && (Ge(s) === "html" || Ge(s) === "body" && Te(s).position === "static" && !H1(s)) ? t : s || u0(a) || t;
|
|
4782
4782
|
}
|
|
4783
|
-
const
|
|
4783
|
+
const b0 = async function(a) {
|
|
4784
4784
|
let {
|
|
4785
4785
|
reference: e,
|
|
4786
4786
|
floating: t,
|
|
@@ -4788,7 +4788,7 @@ const b3 = async function(a) {
|
|
|
4788
4788
|
} = a;
|
|
4789
4789
|
const n = this.getOffsetParent || Ha, o = this.getDimensions;
|
|
4790
4790
|
return {
|
|
4791
|
-
reference:
|
|
4791
|
+
reference: y0(e, await n(t), s),
|
|
4792
4792
|
floating: {
|
|
4793
4793
|
x: 0,
|
|
4794
4794
|
y: 0,
|
|
@@ -4796,24 +4796,24 @@ const b3 = async function(a) {
|
|
|
4796
4796
|
}
|
|
4797
4797
|
};
|
|
4798
4798
|
};
|
|
4799
|
-
function
|
|
4799
|
+
function w0(a) {
|
|
4800
4800
|
return Te(a).direction === "rtl";
|
|
4801
4801
|
}
|
|
4802
|
-
const $
|
|
4803
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4804
|
-
getDocumentElement:
|
|
4805
|
-
getClippingRect:
|
|
4802
|
+
const $0 = {
|
|
4803
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: f0,
|
|
4804
|
+
getDocumentElement: Ze,
|
|
4805
|
+
getClippingRect: _0,
|
|
4806
4806
|
getOffsetParent: Ha,
|
|
4807
|
-
getElementRects:
|
|
4808
|
-
getClientRects:
|
|
4809
|
-
getDimensions:
|
|
4807
|
+
getElementRects: b0,
|
|
4808
|
+
getClientRects: v0,
|
|
4809
|
+
getDimensions: g0,
|
|
4810
4810
|
getScale: vt,
|
|
4811
|
-
isElement:
|
|
4812
|
-
isRTL:
|
|
4811
|
+
isElement: Ue,
|
|
4812
|
+
isRTL: w0
|
|
4813
4813
|
};
|
|
4814
|
-
function
|
|
4814
|
+
function M0(a, e) {
|
|
4815
4815
|
let t = null, s;
|
|
4816
|
-
const n =
|
|
4816
|
+
const n = Ze(a);
|
|
4817
4817
|
function o() {
|
|
4818
4818
|
clearTimeout(s), t && t.disconnect(), t = null;
|
|
4819
4819
|
}
|
|
@@ -4827,13 +4827,13 @@ function M3(a, e) {
|
|
|
4827
4827
|
} = a.getBoundingClientRect();
|
|
4828
4828
|
if (l || e(), !d || !p)
|
|
4829
4829
|
return;
|
|
4830
|
-
const C =
|
|
4830
|
+
const C = Yt(u), w = Yt(n.clientWidth - (c + d)), M = Yt(n.clientHeight - (u + p)), S = Yt(c), g = {
|
|
4831
4831
|
rootMargin: -C + "px " + -w + "px " + -M + "px " + -S + "px",
|
|
4832
4832
|
threshold: ke(0, Lt(1, r)) || 1
|
|
4833
4833
|
};
|
|
4834
4834
|
let V = !0;
|
|
4835
|
-
function j(
|
|
4836
|
-
const D =
|
|
4835
|
+
function j(x) {
|
|
4836
|
+
const D = x[0].intersectionRatio;
|
|
4837
4837
|
if (D !== r) {
|
|
4838
4838
|
if (!V)
|
|
4839
4839
|
return i();
|
|
@@ -4856,7 +4856,7 @@ function M3(a, e) {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
return i(!0), o;
|
|
4858
4858
|
}
|
|
4859
|
-
function
|
|
4859
|
+
function k0(a, e, t, s) {
|
|
4860
4860
|
s === void 0 && (s = {});
|
|
4861
4861
|
const {
|
|
4862
4862
|
ancestorScroll: n = !0,
|
|
@@ -4870,7 +4870,7 @@ function k3(a, e, t, s) {
|
|
|
4870
4870
|
passive: !0
|
|
4871
4871
|
}), o && _.addEventListener("resize", t);
|
|
4872
4872
|
});
|
|
4873
|
-
const d = c && l ?
|
|
4873
|
+
const d = c && l ? M0(c, t) : null;
|
|
4874
4874
|
let p = -1, C = null;
|
|
4875
4875
|
i && (C = new ResizeObserver((_) => {
|
|
4876
4876
|
let [g] = _;
|
|
@@ -4890,22 +4890,22 @@ function k3(a, e, t, s) {
|
|
|
4890
4890
|
}), d && d(), C && C.disconnect(), C = null, r && cancelAnimationFrame(w);
|
|
4891
4891
|
};
|
|
4892
4892
|
}
|
|
4893
|
-
const
|
|
4893
|
+
const A0 = (a, e, t) => {
|
|
4894
4894
|
const s = /* @__PURE__ */ new Map(), n = {
|
|
4895
|
-
platform: $
|
|
4895
|
+
platform: $0,
|
|
4896
4896
|
...t
|
|
4897
4897
|
}, o = {
|
|
4898
4898
|
...n.platform,
|
|
4899
4899
|
_c: s
|
|
4900
4900
|
};
|
|
4901
|
-
return
|
|
4901
|
+
return i0(a, e, {
|
|
4902
4902
|
...n,
|
|
4903
4903
|
platform: o
|
|
4904
4904
|
});
|
|
4905
|
-
},
|
|
4905
|
+
}, S0 = (a) => {
|
|
4906
4906
|
const e = J(!1), t = J(), s = J(), n = J(0);
|
|
4907
4907
|
function o() {
|
|
4908
|
-
const d =
|
|
4908
|
+
const d = F(a.appendTo);
|
|
4909
4909
|
return d ? typeof d == "string" ? document.getElementById(d) ?? document.body : d : document.getElementById("floatingElements") ?? document.body;
|
|
4910
4910
|
}
|
|
4911
4911
|
const i = o(), l = J(() => {
|
|
@@ -4927,21 +4927,21 @@ const A3 = (a, e, t) => {
|
|
|
4927
4927
|
transform: "none",
|
|
4928
4928
|
marginTop: 0
|
|
4929
4929
|
}), i.appendChild(p), a.multiselect.value.handleFocusOut = r;
|
|
4930
|
-
const w =
|
|
4930
|
+
const w = k0(t.value, s.value, u);
|
|
4931
4931
|
l.value = () => {
|
|
4932
4932
|
s.value && i.contains(s.value) && i.removeChild(s.value), w();
|
|
4933
4933
|
};
|
|
4934
4934
|
}
|
|
4935
4935
|
function u() {
|
|
4936
|
-
!s.value || !t.value ||
|
|
4936
|
+
!s.value || !t.value || A0(t.value, s.value, {
|
|
4937
4937
|
strategy: "absolute",
|
|
4938
4938
|
placement: "bottom-start",
|
|
4939
4939
|
middleware: [
|
|
4940
|
-
|
|
4940
|
+
o0({
|
|
4941
4941
|
fallbackStrategy: "initialPlacement",
|
|
4942
4942
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
4943
4943
|
}),
|
|
4944
|
-
|
|
4944
|
+
l0({
|
|
4945
4945
|
apply({ availableWidth: d, availableHeight: p, elements: C, rects: w }) {
|
|
4946
4946
|
Object.assign(C.floating.style, {
|
|
4947
4947
|
minHeight: `${n.value}px`,
|
|
@@ -4960,7 +4960,7 @@ const A3 = (a, e, t) => {
|
|
|
4960
4960
|
});
|
|
4961
4961
|
});
|
|
4962
4962
|
}
|
|
4963
|
-
|
|
4963
|
+
Ht(() => {
|
|
4964
4964
|
c();
|
|
4965
4965
|
}), cn(() => {
|
|
4966
4966
|
l.value();
|
|
@@ -4971,7 +4971,7 @@ const A3 = (a, e, t) => {
|
|
|
4971
4971
|
function Le(a) {
|
|
4972
4972
|
return [null, void 0].indexOf(a) !== -1;
|
|
4973
4973
|
}
|
|
4974
|
-
function
|
|
4974
|
+
function T0(a, e, t) {
|
|
4975
4975
|
const { object: s, valueProp: n, mode: o } = $e(a), i = at().proxy, l = t.iv, r = (d, p = !0) => {
|
|
4976
4976
|
l.value = u(d);
|
|
4977
4977
|
const C = c(d);
|
|
@@ -4981,7 +4981,7 @@ function T3(a, e, t) {
|
|
|
4981
4981
|
update: r
|
|
4982
4982
|
};
|
|
4983
4983
|
}
|
|
4984
|
-
function
|
|
4984
|
+
function E0(a, e) {
|
|
4985
4985
|
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = b(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), c = b(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4986
4986
|
return {
|
|
4987
4987
|
iv: i,
|
|
@@ -4992,7 +4992,7 @@ function E3(a, e) {
|
|
|
4992
4992
|
plainValue: r
|
|
4993
4993
|
};
|
|
4994
4994
|
}
|
|
4995
|
-
function
|
|
4995
|
+
function I0(a, e, t) {
|
|
4996
4996
|
const { regex: s } = $e(a), n = at().proxy, o = t.isOpen, i = t.open, l = J(null), r = J(null), c = () => {
|
|
4997
4997
|
l.value = "";
|
|
4998
4998
|
}, u = (C) => {
|
|
@@ -5010,7 +5010,7 @@ function I3(a, e, t) {
|
|
|
5010
5010
|
}
|
|
5011
5011
|
e.emit("paste", C, n);
|
|
5012
5012
|
};
|
|
5013
|
-
return
|
|
5013
|
+
return ue(l, (C) => {
|
|
5014
5014
|
!o.value && C && i(), e.emit("search-change", C, n);
|
|
5015
5015
|
}), {
|
|
5016
5016
|
search: l,
|
|
@@ -5021,7 +5021,7 @@ function I3(a, e, t) {
|
|
|
5021
5021
|
handlePaste: p
|
|
5022
5022
|
};
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5024
|
+
function O0(a, e, t) {
|
|
5025
5025
|
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = $e(a), l = J(null), r = (u) => {
|
|
5026
5026
|
u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (l.value = u);
|
|
5027
5027
|
};
|
|
@@ -5036,16 +5036,16 @@ function O3(a, e, t) {
|
|
|
5036
5036
|
function $1(a, e = !0) {
|
|
5037
5037
|
return e ? String(a).toLowerCase().trim() : String(a).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g), "ae").replace(new RegExp(/œ/g), "oe").replace(new RegExp(/ø/g), "o").replace(/\p{Diacritic}/gu, "");
|
|
5038
5038
|
}
|
|
5039
|
-
function
|
|
5039
|
+
function L0(a) {
|
|
5040
5040
|
return Object.prototype.toString.call(a) === "[object Object]";
|
|
5041
5041
|
}
|
|
5042
|
-
function
|
|
5042
|
+
function V0(a, e) {
|
|
5043
5043
|
const t = e.slice().sort();
|
|
5044
5044
|
return a.length === e.length && a.slice().sort().every(function(s, n) {
|
|
5045
5045
|
return s === t[n];
|
|
5046
5046
|
});
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function D0(a, e, t) {
|
|
5049
5049
|
const {
|
|
5050
5050
|
options: s,
|
|
5051
5051
|
mode: n,
|
|
@@ -5065,28 +5065,28 @@ function D3(a, e, t) {
|
|
|
5065
5065
|
minChars: g,
|
|
5066
5066
|
filterResults: V,
|
|
5067
5067
|
clearOnSearch: j,
|
|
5068
|
-
clearOnSelect:
|
|
5068
|
+
clearOnSelect: x,
|
|
5069
5069
|
valueProp: D,
|
|
5070
5070
|
allowAbsent: K,
|
|
5071
|
-
groupLabel:
|
|
5071
|
+
groupLabel: ae,
|
|
5072
5072
|
canDeselect: I,
|
|
5073
|
-
max:
|
|
5073
|
+
max: ee,
|
|
5074
5074
|
strict: y,
|
|
5075
5075
|
closeOnSelect: A,
|
|
5076
5076
|
closeOnDeselect: P,
|
|
5077
5077
|
groups: ce,
|
|
5078
5078
|
reverse: ne,
|
|
5079
|
-
infinite:
|
|
5079
|
+
infinite: re,
|
|
5080
5080
|
groupOptions: ie,
|
|
5081
5081
|
groupHideEmpty: O,
|
|
5082
5082
|
groupSelect: L,
|
|
5083
|
-
onCreate:
|
|
5083
|
+
onCreate: q,
|
|
5084
5084
|
disabledProp: $,
|
|
5085
|
-
searchStart:
|
|
5085
|
+
searchStart: Y,
|
|
5086
5086
|
searchFilter: he
|
|
5087
|
-
} = $e(a), W = at().proxy, Z = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Ba = t.pointer, st = t.clearPointer, Na = t.focus, Ra = t.deactivate, it = t.close, ja = t.localize, gt = J([]),
|
|
5087
|
+
} = $e(a), W = at().proxy, Z = t.iv, E = t.ev, U = t.search, Ce = t.clearSearch, Pe = t.update, Ba = t.pointer, st = t.clearPointer, Na = t.focus, Ra = t.deactivate, it = t.close, ja = t.localize, gt = J([]), Fe = J([]), Ie = J(!1), f1 = J(null), v1 = J(re.value && i.value === -1 ? 10 : i.value), U1 = b(() => r.value || c.value || !1), Ua = b(() => d.value !== void 0 ? d.value : p.value !== void 0 ? p.value : !0), qe = b(() => {
|
|
5088
5088
|
if (ce.value) {
|
|
5089
|
-
let m =
|
|
5089
|
+
let m = jt.value || /* istanbul ignore next */
|
|
5090
5090
|
[], H = [];
|
|
5091
5091
|
return m.forEach((se) => {
|
|
5092
5092
|
g1(se[ie.value]).forEach((ve) => {
|
|
@@ -5094,30 +5094,30 @@ function D3(a, e, t) {
|
|
|
5094
5094
|
});
|
|
5095
5095
|
}), H;
|
|
5096
5096
|
} else {
|
|
5097
|
-
let m = g1(
|
|
5097
|
+
let m = g1(Fe.value || /* istanbul ignore next */
|
|
5098
5098
|
[]);
|
|
5099
5099
|
return gt.value.length && (m = m.concat(gt.value)), m;
|
|
5100
5100
|
}
|
|
5101
5101
|
}), Z1 = b(() => {
|
|
5102
|
-
let m =
|
|
5102
|
+
let m = qe.value;
|
|
5103
5103
|
return ne.value && (m = m.reverse()), ot.value.length && (m = ot.value.concat(m)), _1(m);
|
|
5104
5104
|
}), yt = b(() => {
|
|
5105
5105
|
let m = Z1.value;
|
|
5106
5106
|
return v1.value > 0 && (m = m.slice(0, v1.value)), m;
|
|
5107
|
-
}),
|
|
5107
|
+
}), jt = b(() => {
|
|
5108
5108
|
if (!ce.value)
|
|
5109
5109
|
return [];
|
|
5110
|
-
let m = [], H =
|
|
5110
|
+
let m = [], H = Fe.value || /* istanbul ignore next */
|
|
5111
5111
|
[];
|
|
5112
5112
|
return gt.value.length && m.push({
|
|
5113
|
-
[
|
|
5113
|
+
[ae.value]: " ",
|
|
5114
5114
|
[ie.value]: [...gt.value],
|
|
5115
5115
|
__CREATE__: !0
|
|
5116
5116
|
}), m.concat(H);
|
|
5117
5117
|
}), Za = b(() => {
|
|
5118
|
-
let m = [...
|
|
5118
|
+
let m = [...jt.value].map((H) => ({ ...H }));
|
|
5119
5119
|
return ot.value.length && (m[0] && m[0].__CREATE__ ? m[0][ie.value] = [...ot.value, ...m[0][ie.value]] : m = [{
|
|
5120
|
-
[
|
|
5120
|
+
[ae.value]: " ",
|
|
5121
5121
|
[ie.value]: [...ot.value],
|
|
5122
5122
|
__CREATE__: !0
|
|
5123
5123
|
}].concat(m)), m;
|
|
@@ -5144,7 +5144,7 @@ function D3(a, e, t) {
|
|
|
5144
5144
|
case "tags":
|
|
5145
5145
|
return !Le(Z.value) && Z.value.length > 0;
|
|
5146
5146
|
}
|
|
5147
|
-
}), Fa = b(() => C !== void 0 && C.value !== void 0 ? C.value(Z.value, W) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), qa = b(() => !
|
|
5147
|
+
}), Fa = b(() => C !== void 0 && C.value !== void 0 ? C.value(Z.value, W) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), qa = b(() => !qe.value.length && !Ie.value && !ot.value.length), Wa = b(() => qe.value.length > 0 && yt.value.length == 0 && (U.value && ce.value || !ce.value)), ot = b(() => U1.value === !1 || !U.value ? [] : en(U.value) !== -1 ? [] : [{
|
|
5148
5148
|
[D.value]: U.value,
|
|
5149
5149
|
[Oe.value]: U.value,
|
|
5150
5150
|
[u.value]: U.value,
|
|
@@ -5199,9 +5199,9 @@ function D3(a, e, t) {
|
|
|
5199
5199
|
case "multiple":
|
|
5200
5200
|
return !Le(Z.value) && Z.value.map((H) => H[D.value]).indexOf(m[D.value]) !== -1;
|
|
5201
5201
|
}
|
|
5202
|
-
}, h1 = (m) => m[$.value] === !0, m1 = () =>
|
|
5202
|
+
}, h1 = (m) => m[$.value] === !0, m1 = () => ee === void 0 || ee.value === -1 || !p1.value && ee.value > 0 ? !1 : Z.value.length >= ee.value, Ka = (m) => {
|
|
5203
5203
|
if (!h1(m)) {
|
|
5204
|
-
if (
|
|
5204
|
+
if (q && q.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = q.value(m, W), m instanceof Promise)) {
|
|
5205
5205
|
Ie.value = !0, m.then((H) => {
|
|
5206
5206
|
Ie.value = !1, Y1(H);
|
|
5207
5207
|
});
|
|
@@ -5216,7 +5216,7 @@ function D3(a, e, t) {
|
|
|
5216
5216
|
I.value && rt(m), P.value && (st(), it());
|
|
5217
5217
|
return;
|
|
5218
5218
|
}
|
|
5219
|
-
m && C1(m),
|
|
5219
|
+
m && C1(m), x.value && Ce(), A.value && (st(), it()), m && lt(m);
|
|
5220
5220
|
break;
|
|
5221
5221
|
case "multiple":
|
|
5222
5222
|
if (m && Be(m)) {
|
|
@@ -5227,7 +5227,7 @@ function D3(a, e, t) {
|
|
|
5227
5227
|
e.emit("max", W);
|
|
5228
5228
|
return;
|
|
5229
5229
|
}
|
|
5230
|
-
m && (C1(m), lt(m)),
|
|
5230
|
+
m && (C1(m), lt(m)), x.value && Ce(), l.value && st(), A.value && it();
|
|
5231
5231
|
break;
|
|
5232
5232
|
case "tags":
|
|
5233
5233
|
if (m && Be(m)) {
|
|
@@ -5238,7 +5238,7 @@ function D3(a, e, t) {
|
|
|
5238
5238
|
e.emit("max", W);
|
|
5239
5239
|
return;
|
|
5240
5240
|
}
|
|
5241
|
-
m && C1(m),
|
|
5241
|
+
m && C1(m), x.value && Ce(), m && lt(m), l.value && st(), A.value && it();
|
|
5242
5242
|
break;
|
|
5243
5243
|
}
|
|
5244
5244
|
A.value || Na();
|
|
@@ -5248,7 +5248,7 @@ function D3(a, e, t) {
|
|
|
5248
5248
|
case "multiple":
|
|
5249
5249
|
case "tags":
|
|
5250
5250
|
Qa(m[ie.value]) ? rt(m[ie.value]) : lt(
|
|
5251
|
-
m[ie.value].filter((H) => Z.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[$.value]).filter((H, se) => Z.value.length + 1 + se <=
|
|
5251
|
+
m[ie.value].filter((H) => Z.value.map((se) => se[D.value]).indexOf(H[D.value]) === -1).filter((H) => !H[$.value]).filter((H, se) => Z.value.length + 1 + se <= ee.value || ee.value === -1)
|
|
5252
5252
|
);
|
|
5253
5253
|
break;
|
|
5254
5254
|
}
|
|
@@ -5258,7 +5258,7 @@ function D3(a, e, t) {
|
|
|
5258
5258
|
Ne(m[D.value]) === void 0 && U1.value && (e.emit("tag", m[D.value], W), e.emit("option", m[D.value], W), e.emit("create", m[D.value], W), Ua.value && an(m), Ce());
|
|
5259
5259
|
}, Xa = () => {
|
|
5260
5260
|
n.value !== "single" && lt(yt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5261
|
-
}, Qa = (m) => m.find((H) => !Be(H) && !H[$.value]) === void 0, Ja = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) =>
|
|
5261
|
+
}, Qa = (m) => m.find((H) => !Be(H) && !H[$.value]) === void 0, Ja = (m) => m.find((H) => !Be(H)) === void 0, Ne = (m) => qe.value[qe.value.map((H) => String(H[D.value])).indexOf(String(m))], en = (m, H = !0) => qe.value.map((se) => parseInt(se[Oe.value]) == se[Oe.value] ? parseInt(se[Oe.value]) : se[Oe.value]).indexOf(
|
|
5262
5262
|
parseInt(m) == m ? parseInt(m) : m
|
|
5263
5263
|
), tn = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), an = (m) => {
|
|
5264
5264
|
gt.value.push(m);
|
|
@@ -5270,23 +5270,23 @@ function D3(a, e, t) {
|
|
|
5270
5270
|
let ve = he.value;
|
|
5271
5271
|
ve || (ve = (bt, N4) => {
|
|
5272
5272
|
let K1 = $1(ja(bt[Oe.value]), y.value);
|
|
5273
|
-
return
|
|
5273
|
+
return Y.value ? K1.startsWith($1(U.value, y.value)) : K1.indexOf($1(U.value, y.value)) !== -1;
|
|
5274
5274
|
}), se = se.filter(ve);
|
|
5275
5275
|
}
|
|
5276
5276
|
return l.value && H && (se = se.filter((ve) => !tn(ve))), se;
|
|
5277
5277
|
}, g1 = (m) => {
|
|
5278
5278
|
let H = m;
|
|
5279
|
-
return
|
|
5279
|
+
return L0(H) && (H = Object.keys(H).map((se) => {
|
|
5280
5280
|
let ve = H[se];
|
|
5281
5281
|
return { [D.value]: se, [Oe.value]: ve, [u.value]: ve };
|
|
5282
5282
|
})), H = H.map((se) => typeof se == "object" ? se : { [D.value]: se, [Oe.value]: se, [u.value]: se }), H;
|
|
5283
|
-
},
|
|
5284
|
-
Le(E.value) || (Z.value =
|
|
5285
|
-
},
|
|
5283
|
+
}, Ut = () => {
|
|
5284
|
+
Le(E.value) || (Z.value = Ft(E.value));
|
|
5285
|
+
}, Zt = (m) => (Ie.value = !0, new Promise((H, se) => {
|
|
5286
5286
|
s.value(U.value, W).then((ve) => {
|
|
5287
|
-
|
|
5287
|
+
Fe.value = ve || [], typeof m == "function" && m(ve), Ie.value = !1;
|
|
5288
5288
|
}).catch((ve) => {
|
|
5289
|
-
console.error(ve),
|
|
5289
|
+
console.error(ve), Fe.value = [], Ie.value = !1;
|
|
5290
5290
|
}).finally(() => {
|
|
5291
5291
|
H();
|
|
5292
5292
|
});
|
|
@@ -5307,8 +5307,8 @@ function D3(a, e, t) {
|
|
|
5307
5307
|
}
|
|
5308
5308
|
});
|
|
5309
5309
|
}, sn = (m) => {
|
|
5310
|
-
|
|
5311
|
-
},
|
|
5310
|
+
Zt(m);
|
|
5311
|
+
}, Ft = (m) => Le(m) ? n.value === "single" ? {} : [] : w.value ? m : n.value === "single" ? Ne(m) || (K.value ? {
|
|
5312
5312
|
[u.value]: m,
|
|
5313
5313
|
[D.value]: m,
|
|
5314
5314
|
[Oe.value]: m
|
|
@@ -5317,10 +5317,10 @@ function D3(a, e, t) {
|
|
|
5317
5317
|
[D.value]: H,
|
|
5318
5318
|
[Oe.value]: H
|
|
5319
5319
|
}), x1 = () => {
|
|
5320
|
-
f1.value =
|
|
5321
|
-
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, j.value && (
|
|
5320
|
+
f1.value = ue(U, (m) => {
|
|
5321
|
+
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, j.value && (Fe.value = []), setTimeout(() => {
|
|
5322
5322
|
m == U.value && s.value(U.value, W).then((H) => {
|
|
5323
|
-
(m == U.value || !U.value) && (
|
|
5323
|
+
(m == U.value || !U.value) && (Fe.value = H, Ba.value = yt.value.filter((se) => se[$.value] !== !0)[0] || null, Ie.value = !1);
|
|
5324
5324
|
}).catch(
|
|
5325
5325
|
/* istanbul ignore next */
|
|
5326
5326
|
(H) => {
|
|
@@ -5332,34 +5332,34 @@ function D3(a, e, t) {
|
|
|
5332
5332
|
};
|
|
5333
5333
|
if (n.value !== "single" && !Le(E.value) && !Array.isArray(E.value))
|
|
5334
5334
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5335
|
-
return s && typeof s.value == "function" ? _.value ?
|
|
5335
|
+
return s && typeof s.value == "function" ? _.value ? Zt(Ut) : w.value == !0 && Ut() : (Fe.value = s.value, Ut()), S.value > -1 && x1(), ue(S, (m, H) => {
|
|
5336
5336
|
f1.value && f1.value(), m >= 0 && x1();
|
|
5337
|
-
}),
|
|
5337
|
+
}), ue(E, (m) => {
|
|
5338
5338
|
if (Le(m)) {
|
|
5339
|
-
Pe(
|
|
5339
|
+
Pe(Ft(m), !1);
|
|
5340
5340
|
return;
|
|
5341
5341
|
}
|
|
5342
5342
|
switch (n.value) {
|
|
5343
5343
|
case "single":
|
|
5344
|
-
(w.value ? m[D.value] != Z.value[D.value] : m != Z.value[D.value]) && Pe(
|
|
5344
|
+
(w.value ? m[D.value] != Z.value[D.value] : m != Z.value[D.value]) && Pe(Ft(m), !1);
|
|
5345
5345
|
break;
|
|
5346
5346
|
case "multiple":
|
|
5347
5347
|
case "tags":
|
|
5348
|
-
|
|
5348
|
+
V0(w.value ? m.map((H) => H[D.value]) : m, Z.value.map((H) => H[D.value])) || Pe(Ft(m), !1);
|
|
5349
5349
|
break;
|
|
5350
5350
|
}
|
|
5351
|
-
}, { deep: !0 }),
|
|
5352
|
-
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) &&
|
|
5353
|
-
}),
|
|
5351
|
+
}, { deep: !0 }), ue(s, (m, H) => {
|
|
5352
|
+
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) && Zt() : (Fe.value = a.options, Object.keys(Z.value).length || Ut(), y1());
|
|
5353
|
+
}), ue(u, y1), {
|
|
5354
5354
|
pfo: Z1,
|
|
5355
5355
|
fo: yt,
|
|
5356
5356
|
filteredOptions: yt,
|
|
5357
5357
|
hasSelected: p1,
|
|
5358
5358
|
multipleLabelText: Fa,
|
|
5359
|
-
eo:
|
|
5360
|
-
extendedOptions:
|
|
5361
|
-
eg:
|
|
5362
|
-
extendedGroups:
|
|
5359
|
+
eo: qe,
|
|
5360
|
+
extendedOptions: qe,
|
|
5361
|
+
eg: jt,
|
|
5362
|
+
extendedGroups: jt,
|
|
5363
5363
|
fg: F1,
|
|
5364
5364
|
filteredGroups: F1,
|
|
5365
5365
|
noOptions: qa,
|
|
@@ -5380,11 +5380,11 @@ function D3(a, e, t) {
|
|
|
5380
5380
|
handleGroupClick: Ga,
|
|
5381
5381
|
handleTagRemove: xa,
|
|
5382
5382
|
refreshOptions: sn,
|
|
5383
|
-
resolveOptions:
|
|
5383
|
+
resolveOptions: Zt,
|
|
5384
5384
|
refreshLabels: y1
|
|
5385
5385
|
};
|
|
5386
5386
|
}
|
|
5387
|
-
function
|
|
5387
|
+
function H0(a, e, t) {
|
|
5388
5388
|
const {
|
|
5389
5389
|
valueProp: s,
|
|
5390
5390
|
showOptions: n,
|
|
@@ -5395,7 +5395,7 @@ function H3(a, e, t) {
|
|
|
5395
5395
|
groupSelect: c,
|
|
5396
5396
|
disabledProp: u,
|
|
5397
5397
|
groupOptions: d
|
|
5398
|
-
} = $e(a), p = t.fo, C = t.fg, w = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, j = t.multiselect,
|
|
5398
|
+
} = $e(a), p = t.fo, C = t.fg, w = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, V = t.clearPointer, j = t.multiselect, x = t.isOpen, D = b(() => p.value.filter((E) => !E[u.value])), K = b(() => C.value.filter((E) => !E[u.value])), ae = b(() => r.value !== "single" && c.value), I = b(() => _.value && _.value.group), ee = b(() => W(_.value)), y = b(() => {
|
|
5399
5399
|
const E = I.value ? _.value : (
|
|
5400
5400
|
/* istanbul ignore next */
|
|
5401
5401
|
W(_.value)
|
|
@@ -5406,20 +5406,20 @@ function H3(a, e, t) {
|
|
|
5406
5406
|
let E = K.value.map((U) => U.label).indexOf(I.value ? _.value[i.value] : W(_.value)[i.value]) + 1;
|
|
5407
5407
|
return K.value.length <= E && (E = 0), K.value[E];
|
|
5408
5408
|
}), P = b(() => [...K.value].slice(-1)[0]), ce = b(() => _.value.__VISIBLE__.filter((E) => !E[u.value])[0]), ne = b(() => {
|
|
5409
|
-
const E =
|
|
5409
|
+
const E = ee.value.__VISIBLE__.filter((U) => !U[u.value]);
|
|
5410
5410
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5411
|
-
}),
|
|
5411
|
+
}), re = b(() => {
|
|
5412
5412
|
const E = W(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5413
5413
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5414
|
-
}), ie = b(() => [...y.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = b(() => [...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,
|
|
5414
|
+
}), ie = b(() => [...y.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = b(() => [...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, q = () => {
|
|
5415
5415
|
g(D.value[0] || null);
|
|
5416
5416
|
}, $ = () => {
|
|
5417
5417
|
!_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : w(_.value));
|
|
5418
|
-
},
|
|
5418
|
+
}, Y = () => {
|
|
5419
5419
|
if (_.value === null)
|
|
5420
|
-
g((l.value &&
|
|
5421
|
-
else if (l.value &&
|
|
5422
|
-
let E = I.value ? ce.value :
|
|
5420
|
+
g((l.value && ae.value ? K.value[0].__CREATE__ ? D.value[0] : K.value[0] : D.value[0]) || null);
|
|
5421
|
+
else if (l.value && ae.value) {
|
|
5422
|
+
let E = I.value ? ce.value : re.value;
|
|
5423
5423
|
E === void 0 && (E = A.value, E.__CREATE__ && (E = E[d.value][0])), g(E || /* istanbul ignore next */
|
|
5424
5424
|
null);
|
|
5425
5425
|
} else {
|
|
@@ -5432,10 +5432,10 @@ function H3(a, e, t) {
|
|
|
5432
5432
|
}, he = () => {
|
|
5433
5433
|
if (_.value === null) {
|
|
5434
5434
|
let E = D.value[D.value.length - 1];
|
|
5435
|
-
l.value &&
|
|
5436
|
-
} else if (l.value &&
|
|
5435
|
+
l.value && ae.value && (E = O.value, E === void 0 && (E = P.value)), g(E || null);
|
|
5436
|
+
} else if (l.value && ae.value) {
|
|
5437
5437
|
let E = I.value ? ie.value : ne.value;
|
|
5438
|
-
E === void 0 && (E = I.value ? y.value :
|
|
5438
|
+
E === void 0 && (E = I.value ? y.value : ee.value, E.__CREATE__ && (E = ie.value, E === void 0 && (E = y.value))), g(E || /* istanbul ignore next */
|
|
5439
5439
|
null);
|
|
5440
5440
|
} else {
|
|
5441
5441
|
let E = D.value.map((U) => U[s.value]).indexOf(_.value[s.value]) - 1;
|
|
@@ -5451,9 +5451,9 @@ function H3(a, e, t) {
|
|
|
5451
5451
|
let U = E.parentElement.parentElement;
|
|
5452
5452
|
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);
|
|
5453
5453
|
};
|
|
5454
|
-
return
|
|
5455
|
-
o.value && (E.length && n.value ?
|
|
5456
|
-
}),
|
|
5454
|
+
return ue(S, (E) => {
|
|
5455
|
+
o.value && (E.length && n.value ? q() : V());
|
|
5456
|
+
}), ue(x, (E) => {
|
|
5457
5457
|
if (E) {
|
|
5458
5458
|
let U = j.value.querySelectorAll("[data-selected]")[0];
|
|
5459
5459
|
if (!U)
|
|
@@ -5465,15 +5465,15 @@ function H3(a, e, t) {
|
|
|
5465
5465
|
}
|
|
5466
5466
|
}), {
|
|
5467
5467
|
pointer: _,
|
|
5468
|
-
canPointGroups:
|
|
5468
|
+
canPointGroups: ae,
|
|
5469
5469
|
isPointed: L,
|
|
5470
|
-
setPointerFirst:
|
|
5470
|
+
setPointerFirst: q,
|
|
5471
5471
|
selectPointer: $,
|
|
5472
|
-
forwardPointer:
|
|
5472
|
+
forwardPointer: Y,
|
|
5473
5473
|
backwardPointer: he
|
|
5474
5474
|
};
|
|
5475
5475
|
}
|
|
5476
|
-
function
|
|
5476
|
+
function P0(a, e, t) {
|
|
5477
5477
|
const { disabled: s } = $e(a), n = at().proxy, o = J(!1);
|
|
5478
5478
|
return {
|
|
5479
5479
|
isOpen: o,
|
|
@@ -5485,7 +5485,7 @@ function P3(a, e, t) {
|
|
|
5485
5485
|
}
|
|
5486
5486
|
};
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5488
|
+
function B0(a, e, t) {
|
|
5489
5489
|
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, c = t.clearSearch, u = t.isOpen, d = J(null), p = J(null), C = J(null), w = J(!1), M = J(!1), S = b(() => s.value || n.value ? -1 : 0), _ = () => {
|
|
5490
5490
|
s.value && i.value.blur(), p.value.blur();
|
|
5491
5491
|
}, g = () => {
|
|
@@ -5526,7 +5526,7 @@ function B3(a, e, t) {
|
|
|
5526
5526
|
}
|
|
5527
5527
|
};
|
|
5528
5528
|
}
|
|
5529
|
-
function
|
|
5529
|
+
function N0(a, e, t) {
|
|
5530
5530
|
const {
|
|
5531
5531
|
mode: s,
|
|
5532
5532
|
addTagOn: n,
|
|
@@ -5539,29 +5539,29 @@ function N3(a, e, t) {
|
|
|
5539
5539
|
createTag: d,
|
|
5540
5540
|
createOption: p,
|
|
5541
5541
|
reverse: C
|
|
5542
|
-
} = $e(a), w = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, j = t.backwardPointer,
|
|
5542
|
+
} = $e(a), w = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, j = t.backwardPointer, x = t.forwardPointer, D = t.multiselect, K = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, y = t.blur, A = t.fo, P = b(() => d.value || p.value || !1), ce = b(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5543
5543
|
s.value === "tags" && !l.value && P.value && i.value && !c.value && g(A.value[A.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5544
|
-
},
|
|
5545
|
-
let
|
|
5546
|
-
for (;
|
|
5547
|
-
|
|
5548
|
-
return
|
|
5544
|
+
}, re = (L) => {
|
|
5545
|
+
let q = L.length - 1;
|
|
5546
|
+
for (; q >= 0 && (L[q].remove === !1 || L[q].disabled); )
|
|
5547
|
+
q--;
|
|
5548
|
+
return q < 0 || L.splice(q, 1), L;
|
|
5549
5549
|
};
|
|
5550
5550
|
return {
|
|
5551
5551
|
handleKeydown: (L) => {
|
|
5552
5552
|
e.emit("keydown", L, w);
|
|
5553
|
-
let
|
|
5554
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (
|
|
5553
|
+
let q, $;
|
|
5554
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (q = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), $ = q.findIndex((Y) => Y === document.activeElement)), L.key) {
|
|
5555
5555
|
case "Backspace":
|
|
5556
5556
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5557
5557
|
return;
|
|
5558
|
-
S(
|
|
5558
|
+
S(re([...M.value]));
|
|
5559
5559
|
break;
|
|
5560
5560
|
case "Enter":
|
|
5561
5561
|
if (L.preventDefault(), L.keyCode === 229)
|
|
5562
5562
|
return;
|
|
5563
5563
|
if ($ !== -1 && $ !== void 0) {
|
|
5564
|
-
S([...M.value].filter((
|
|
5564
|
+
S([...M.value].filter((Y, he) => he !== $)), $ === q.length - 1 && (q.length - 1 ? q[q.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : K.value.focus());
|
|
5565
5565
|
return;
|
|
5566
5566
|
}
|
|
5567
5567
|
if (ce.value.indexOf("enter") === -1 && P.value)
|
|
@@ -5592,22 +5592,22 @@ function N3(a, e, t) {
|
|
|
5592
5592
|
case "ArrowUp":
|
|
5593
5593
|
if (L.preventDefault(), !l.value)
|
|
5594
5594
|
return;
|
|
5595
|
-
I.value ||
|
|
5595
|
+
I.value || ee(), j();
|
|
5596
5596
|
break;
|
|
5597
5597
|
case "ArrowDown":
|
|
5598
5598
|
if (L.preventDefault(), !l.value)
|
|
5599
5599
|
return;
|
|
5600
|
-
I.value ||
|
|
5600
|
+
I.value || ee(), x();
|
|
5601
5601
|
break;
|
|
5602
5602
|
case "ArrowLeft":
|
|
5603
|
-
if (i.value &&
|
|
5603
|
+
if (i.value && ae.value && ae.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5604
5604
|
return;
|
|
5605
|
-
L.preventDefault(), $ === -1 ?
|
|
5605
|
+
L.preventDefault(), $ === -1 ? q[q.length - 1].focus() : $ > 0 && q[$ - 1].focus();
|
|
5606
5606
|
break;
|
|
5607
5607
|
case "ArrowRight":
|
|
5608
5608
|
if ($ === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5609
5609
|
return;
|
|
5610
|
-
L.preventDefault(),
|
|
5610
|
+
L.preventDefault(), q.length > $ + 1 ? q[$ + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || K.value.focus();
|
|
5611
5611
|
break;
|
|
5612
5612
|
}
|
|
5613
5613
|
},
|
|
@@ -5617,7 +5617,7 @@ function N3(a, e, t) {
|
|
|
5617
5617
|
preparePointer: ne
|
|
5618
5618
|
};
|
|
5619
5619
|
}
|
|
5620
|
-
function
|
|
5620
|
+
function R0(a, e, t) {
|
|
5621
5621
|
const {
|
|
5622
5622
|
classes: s,
|
|
5623
5623
|
disabled: n,
|
|
@@ -5712,8 +5712,8 @@ function R3(a, e, t) {
|
|
|
5712
5712
|
},
|
|
5713
5713
|
groupOptions: g.groupOptions,
|
|
5714
5714
|
option: (V, j) => {
|
|
5715
|
-
let
|
|
5716
|
-
return r(V) ?
|
|
5715
|
+
let x = [g.option];
|
|
5716
|
+
return r(V) ? x.push(c(V) ? g.optionSelectedPointed : g.optionPointed) : c(V) ? x.push(u(V) ? g.optionSelectedDisabled : g.optionSelected) : (u(V) || j && u(j)) && x.push(g.optionDisabled), x;
|
|
5717
5717
|
},
|
|
5718
5718
|
noOptions: g.noOptions,
|
|
5719
5719
|
noResults: g.noResults,
|
|
@@ -5724,7 +5724,7 @@ function R3(a, e, t) {
|
|
|
5724
5724
|
showDropdown: S
|
|
5725
5725
|
};
|
|
5726
5726
|
}
|
|
5727
|
-
function
|
|
5727
|
+
function j0(a, e, t) {
|
|
5728
5728
|
const {
|
|
5729
5729
|
limit: s,
|
|
5730
5730
|
infinite: n
|
|
@@ -5739,20 +5739,20 @@ function j3(a, e, t) {
|
|
|
5739
5739
|
}, w = () => {
|
|
5740
5740
|
o.value && i.value < r.value.length ? u.value.observe(d.value) : !o.value && u.value && u.value.disconnect();
|
|
5741
5741
|
};
|
|
5742
|
-
return
|
|
5742
|
+
return ue(o, () => {
|
|
5743
5743
|
n.value && w();
|
|
5744
|
-
}),
|
|
5744
|
+
}), ue(l, () => {
|
|
5745
5745
|
n.value && (i.value = s.value, w());
|
|
5746
|
-
}, { flush: "post" }),
|
|
5746
|
+
}, { flush: "post" }), ue(c, () => {
|
|
5747
5747
|
n.value && w();
|
|
5748
|
-
}, { immediate: !1, flush: "post" }),
|
|
5748
|
+
}, { immediate: !1, flush: "post" }), Ht(() => {
|
|
5749
5749
|
window && window.IntersectionObserver && (u.value = new IntersectionObserver(C));
|
|
5750
5750
|
}), {
|
|
5751
5751
|
hasMore: p,
|
|
5752
5752
|
infiniteLoader: d
|
|
5753
5753
|
};
|
|
5754
5754
|
}
|
|
5755
|
-
function
|
|
5755
|
+
function U0(a, e, t) {
|
|
5756
5756
|
const {
|
|
5757
5757
|
placeholder: s,
|
|
5758
5758
|
id: n,
|
|
@@ -5772,33 +5772,33 @@ function U3(a, e, t) {
|
|
|
5772
5772
|
let A = [];
|
|
5773
5773
|
if (n && n.value && A.push(n.value), d.value)
|
|
5774
5774
|
return A.push(d.value.group ? "multiselect-group" : "multiselect-option"), A.push(d.value.group ? d.value.index : d.value[o.value]), A.join("-");
|
|
5775
|
-
}), V = b(() => s.value), j = b(() => l.value !== "single"),
|
|
5775
|
+
}), V = b(() => s.value), j = b(() => l.value !== "single"), x = b(() => {
|
|
5776
5776
|
let A = "";
|
|
5777
5777
|
return l.value === "single" && C.value && (A += p.value[i.value]), l.value === "multiple" && C.value && (A += w.value), l.value === "tags" && C.value && (A += p.value.map((P) => P[i.value]).join(", ")), A;
|
|
5778
5778
|
}), D = b(() => {
|
|
5779
5779
|
let A = { ...c.value };
|
|
5780
|
-
return u.value && (A["aria-labelledby"] = A["aria-labelledby"] ? `${S.value} ${A["aria-labelledby"]}` : S.value,
|
|
5780
|
+
return u.value && (A["aria-labelledby"] = A["aria-labelledby"] ? `${S.value} ${A["aria-labelledby"]}` : S.value, x.value && A["aria-label"] && (A["aria-label"] = `${x.value}, ${A["aria-label"]}`)), A;
|
|
5781
5781
|
}), K = (A) => {
|
|
5782
5782
|
let P = [];
|
|
5783
5783
|
return n && n.value && P.push(n.value), P.push("multiselect-option"), P.push(A[o.value]), P.join("-");
|
|
5784
|
-
},
|
|
5784
|
+
}, ae = (A) => {
|
|
5785
5785
|
let P = [];
|
|
5786
5786
|
return n && n.value && P.push(n.value), P.push("multiselect-group"), P.push(A.index), P.join("-");
|
|
5787
5787
|
}, I = (A) => {
|
|
5788
5788
|
let P = [];
|
|
5789
5789
|
return P.push(A), P.join(" ");
|
|
5790
|
-
},
|
|
5790
|
+
}, ee = (A) => {
|
|
5791
5791
|
let P = [];
|
|
5792
5792
|
return P.push(A), P.join(" ");
|
|
5793
5793
|
}, y = (A) => `${A} ❎`;
|
|
5794
|
-
return
|
|
5794
|
+
return Ht(() => {
|
|
5795
5795
|
if (n && n.value && document && document.querySelector) {
|
|
5796
5796
|
let A = document.querySelector(`[for="${n.value}"]`);
|
|
5797
5797
|
M.value = A ? A.innerText : null;
|
|
5798
5798
|
}
|
|
5799
5799
|
}), {
|
|
5800
5800
|
arias: D,
|
|
5801
|
-
ariaLabel:
|
|
5801
|
+
ariaLabel: x,
|
|
5802
5802
|
ariaAssist: S,
|
|
5803
5803
|
ariaControls: _,
|
|
5804
5804
|
ariaPlaceholder: V,
|
|
@@ -5806,12 +5806,12 @@ function U3(a, e, t) {
|
|
|
5806
5806
|
ariaActiveDescendant: g,
|
|
5807
5807
|
ariaOptionId: K,
|
|
5808
5808
|
ariaOptionLabel: I,
|
|
5809
|
-
ariaGroupId:
|
|
5810
|
-
ariaGroupLabel:
|
|
5809
|
+
ariaGroupId: ae,
|
|
5810
|
+
ariaGroupLabel: ee,
|
|
5811
5811
|
ariaTagLabel: y
|
|
5812
5812
|
};
|
|
5813
5813
|
}
|
|
5814
|
-
function
|
|
5814
|
+
function Z0(a, e, t) {
|
|
5815
5815
|
const {
|
|
5816
5816
|
locale: s,
|
|
5817
5817
|
fallbackLocale: n
|
|
@@ -5820,7 +5820,7 @@ function Z3(a, e, t) {
|
|
|
5820
5820
|
localize: (i) => !i || typeof i != "object" ? i : i && i[s.value] ? i[s.value] : i && s.value && i[s.value.toUpperCase()] ? i[s.value.toUpperCase()] : i && i[n.value] ? i[n.value] : i && n.value && i[n.value.toUpperCase()] ? i[n.value.toUpperCase()] : i && Object.keys(i)[0] ? i[Object.keys(i)[0]] : ""
|
|
5821
5821
|
};
|
|
5822
5822
|
}
|
|
5823
|
-
function
|
|
5823
|
+
function F0(a, e, t, s = {}) {
|
|
5824
5824
|
return t.forEach((n) => {
|
|
5825
5825
|
n && (s = {
|
|
5826
5826
|
...s,
|
|
@@ -5828,7 +5828,7 @@ function F3(a, e, t, s = {}) {
|
|
|
5828
5828
|
});
|
|
5829
5829
|
}), s;
|
|
5830
5830
|
}
|
|
5831
|
-
var
|
|
5831
|
+
var ze = {
|
|
5832
5832
|
name: "Multiselect",
|
|
5833
5833
|
emits: [
|
|
5834
5834
|
"paste",
|
|
@@ -6164,24 +6164,24 @@ var We = {
|
|
|
6164
6164
|
}
|
|
6165
6165
|
},
|
|
6166
6166
|
setup(a, e) {
|
|
6167
|
-
return
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6167
|
+
return F0(a, e, [
|
|
6168
|
+
Z0,
|
|
6169
|
+
E0,
|
|
6170
|
+
O0,
|
|
6171
|
+
P0,
|
|
6172
|
+
I0,
|
|
6173
|
+
T0,
|
|
6174
|
+
B0,
|
|
6175
|
+
D0,
|
|
6176
|
+
j0,
|
|
6177
|
+
H0,
|
|
6178
|
+
N0,
|
|
6179
|
+
R0,
|
|
6180
|
+
U0
|
|
6181
6181
|
]);
|
|
6182
6182
|
}
|
|
6183
6183
|
};
|
|
6184
|
-
const
|
|
6184
|
+
const q0 = ["id", "dir"], W0 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], z0 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], Y0 = ["onKeyup", "aria-label"], x0 = ["onClick"], K0 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], G0 = ["innerHTML"], X0 = ["id"], Q0 = ["id", "aria-label", "aria-selected"], J0 = ["data-pointed", "onMouseenter", "onClick"], e5 = ["innerHTML"], t5 = ["aria-label"], a5 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], n5 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], s5 = ["innerHTML"], i5 = ["innerHTML"], o5 = ["value"], l5 = ["name", "value"], r5 = ["name", "value"], u5 = ["id"];
|
|
6185
6185
|
function c5(a, e, t, s, n, o) {
|
|
6186
6186
|
return v(), h("div", {
|
|
6187
6187
|
ref: "multiselect",
|
|
@@ -6227,7 +6227,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6227
6227
|
}, {
|
|
6228
6228
|
...t.attrs,
|
|
6229
6229
|
...a.arias
|
|
6230
|
-
}), null, 16,
|
|
6230
|
+
}), null, 16, z0)) : T("v-if", !0),
|
|
6231
6231
|
T(" Tags (with search) "),
|
|
6232
6232
|
t.mode == "tags" ? (v(), h(
|
|
6233
6233
|
"div",
|
|
@@ -6240,7 +6240,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6240
6240
|
(v(!0), h(
|
|
6241
6241
|
fe,
|
|
6242
6242
|
null,
|
|
6243
|
-
ye(a.iv, (i, l, r) =>
|
|
6243
|
+
ye(a.iv, (i, l, r) => te(a.$slots, "tag", {
|
|
6244
6244
|
option: i,
|
|
6245
6245
|
handleTagRemove: a.handleTagRemove,
|
|
6246
6246
|
disabled: t.disabled
|
|
@@ -6251,11 +6251,11 @@ function c5(a, e, t, s, n, o) {
|
|
|
6251
6251
|
i.disabled ? a.classList.tagDisabled : null
|
|
6252
6252
|
]),
|
|
6253
6253
|
tabindex: "-1",
|
|
6254
|
-
onKeyup:
|
|
6254
|
+
onKeyup: Ye((c) => a.handleTagRemove(i, c), ["enter"]),
|
|
6255
6255
|
key: r,
|
|
6256
6256
|
"aria-label": a.ariaTagLabel(a.localize(i[t.label]))
|
|
6257
6257
|
}, [
|
|
6258
|
-
|
|
6258
|
+
t1(
|
|
6259
6259
|
z(a.localize(i[t.label])) + " ",
|
|
6260
6260
|
1
|
|
6261
6261
|
/* TEXT */
|
|
@@ -6274,8 +6274,8 @@ function c5(a, e, t, s, n, o) {
|
|
|
6274
6274
|
2
|
|
6275
6275
|
/* CLASS */
|
|
6276
6276
|
)
|
|
6277
|
-
], 10,
|
|
6278
|
-
], 42,
|
|
6277
|
+
], 10, x0)) : T("v-if", !0)
|
|
6278
|
+
], 42, Y0))
|
|
6279
6279
|
])),
|
|
6280
6280
|
256
|
|
6281
6281
|
/* UNKEYED_FRAGMENT */
|
|
@@ -6319,7 +6319,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6319
6319
|
}, {
|
|
6320
6320
|
...t.attrs,
|
|
6321
6321
|
...a.arias
|
|
6322
|
-
}), null, 16,
|
|
6322
|
+
}), null, 16, K0)) : T("v-if", !0)
|
|
6323
6323
|
],
|
|
6324
6324
|
2
|
|
6325
6325
|
/* CLASS */
|
|
@@ -6329,7 +6329,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6329
6329
|
/* CLASS */
|
|
6330
6330
|
)) : T("v-if", !0),
|
|
6331
6331
|
T(" Single label "),
|
|
6332
|
-
t.mode == "single" && a.hasSelected && !a.search && a.iv ?
|
|
6332
|
+
t.mode == "single" && a.hasSelected && !a.search && a.iv ? te(a.$slots, "singlelabel", {
|
|
6333
6333
|
key: 2,
|
|
6334
6334
|
value: a.iv
|
|
6335
6335
|
}, () => [
|
|
@@ -6354,17 +6354,17 @@ function c5(a, e, t, s, n, o) {
|
|
|
6354
6354
|
)
|
|
6355
6355
|
]) : T("v-if", !0),
|
|
6356
6356
|
T(" Multiple label "),
|
|
6357
|
-
t.mode == "multiple" && a.hasSelected && !a.search ?
|
|
6357
|
+
t.mode == "multiple" && a.hasSelected && !a.search ? te(a.$slots, "multiplelabel", {
|
|
6358
6358
|
key: 3,
|
|
6359
6359
|
values: a.iv
|
|
6360
6360
|
}, () => [
|
|
6361
6361
|
f("div", {
|
|
6362
6362
|
class: Q(a.classList.multipleLabel),
|
|
6363
6363
|
innerHTML: a.multipleLabelText
|
|
6364
|
-
}, null, 10,
|
|
6364
|
+
}, null, 10, G0)
|
|
6365
6365
|
]) : T("v-if", !0),
|
|
6366
6366
|
T(" Placeholder "),
|
|
6367
|
-
t.placeholder && !a.hasSelected && !a.search ?
|
|
6367
|
+
t.placeholder && !a.hasSelected && !a.search ? te(a.$slots, "placeholder", { key: 4 }, () => [
|
|
6368
6368
|
f(
|
|
6369
6369
|
"div",
|
|
6370
6370
|
{
|
|
@@ -6377,7 +6377,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6377
6377
|
)
|
|
6378
6378
|
]) : T("v-if", !0),
|
|
6379
6379
|
T(" Spinner "),
|
|
6380
|
-
t.loading || a.resolving ?
|
|
6380
|
+
t.loading || a.resolving ? te(a.$slots, "spinner", { key: 5 }, () => [
|
|
6381
6381
|
f(
|
|
6382
6382
|
"span",
|
|
6383
6383
|
{
|
|
@@ -6390,7 +6390,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6390
6390
|
)
|
|
6391
6391
|
]) : T("v-if", !0),
|
|
6392
6392
|
T(" Clear "),
|
|
6393
|
-
a.hasSelected && !t.disabled && t.canClear && !a.busy ?
|
|
6393
|
+
a.hasSelected && !t.disabled && t.canClear && !a.busy ? te(a.$slots, "clear", {
|
|
6394
6394
|
key: 6,
|
|
6395
6395
|
clear: a.clear
|
|
6396
6396
|
}, () => [
|
|
@@ -6404,7 +6404,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6404
6404
|
"aria-roledescription": "❎",
|
|
6405
6405
|
class: Q(a.classList.clear),
|
|
6406
6406
|
onClick: e[6] || (e[6] = (...i) => a.clear && a.clear(...i)),
|
|
6407
|
-
onKeyup: e[7] || (e[7] =
|
|
6407
|
+
onKeyup: e[7] || (e[7] = Ye((...i) => a.clear && a.clear(...i), ["enter"]))
|
|
6408
6408
|
},
|
|
6409
6409
|
[
|
|
6410
6410
|
f(
|
|
@@ -6422,7 +6422,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6422
6422
|
)
|
|
6423
6423
|
]) : T("v-if", !0),
|
|
6424
6424
|
T(" Caret "),
|
|
6425
|
-
t.caret && t.showOptions ?
|
|
6425
|
+
t.caret && t.showOptions ? te(a.$slots, "caret", { key: 7 }, () => [
|
|
6426
6426
|
f(
|
|
6427
6427
|
"span",
|
|
6428
6428
|
{
|
|
@@ -6435,7 +6435,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6435
6435
|
/* CLASS */
|
|
6436
6436
|
)
|
|
6437
6437
|
]) : T("v-if", !0)
|
|
6438
|
-
], 16,
|
|
6438
|
+
], 16, W0),
|
|
6439
6439
|
T(" Options "),
|
|
6440
6440
|
f(
|
|
6441
6441
|
"div",
|
|
@@ -6444,7 +6444,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6444
6444
|
tabindex: "-1"
|
|
6445
6445
|
},
|
|
6446
6446
|
[
|
|
6447
|
-
|
|
6447
|
+
te(a.$slots, "beforelist", { options: a.fo }),
|
|
6448
6448
|
f("ul", {
|
|
6449
6449
|
class: Q(a.classList.options),
|
|
6450
6450
|
id: a.ariaControls,
|
|
@@ -6468,7 +6468,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6468
6468
|
onMouseenter: (c) => a.setPointer(i, l),
|
|
6469
6469
|
onClick: (c) => a.handleGroupClick(i)
|
|
6470
6470
|
}, [
|
|
6471
|
-
|
|
6471
|
+
te(a.$slots, "grouplabel", {
|
|
6472
6472
|
group: i,
|
|
6473
6473
|
isSelected: a.isSelected,
|
|
6474
6474
|
isPointed: a.isPointed
|
|
@@ -6477,7 +6477,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6477
6477
|
innerHTML: a.localize(i[t.groupLabel])
|
|
6478
6478
|
}, null, 8, e5)
|
|
6479
6479
|
])
|
|
6480
|
-
], 42,
|
|
6480
|
+
], 42, J0)),
|
|
6481
6481
|
f("ul", {
|
|
6482
6482
|
class: Q(a.classList.groupOptions),
|
|
6483
6483
|
"aria-label": a.ariaGroupLabel(a.localize(i[t.groupLabel])),
|
|
@@ -6498,7 +6498,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6498
6498
|
"aria-label": a.ariaOptionLabel(a.localize(c[t.label])),
|
|
6499
6499
|
role: "option"
|
|
6500
6500
|
}, [
|
|
6501
|
-
|
|
6501
|
+
te(a.$slots, "option", {
|
|
6502
6502
|
option: c,
|
|
6503
6503
|
isSelected: a.isSelected,
|
|
6504
6504
|
isPointed: a.isPointed,
|
|
@@ -6517,7 +6517,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6517
6517
|
/* KEYED_FRAGMENT */
|
|
6518
6518
|
))
|
|
6519
6519
|
], 10, t5)
|
|
6520
|
-
], 10,
|
|
6520
|
+
], 10, Q0))),
|
|
6521
6521
|
128
|
|
6522
6522
|
/* KEYED_FRAGMENT */
|
|
6523
6523
|
)) : (v(!0), h(
|
|
@@ -6535,7 +6535,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6535
6535
|
"aria-label": a.ariaOptionLabel(a.localize(i[t.label])),
|
|
6536
6536
|
role: "option"
|
|
6537
6537
|
}, [
|
|
6538
|
-
|
|
6538
|
+
te(a.$slots, "option", {
|
|
6539
6539
|
option: i,
|
|
6540
6540
|
isSelected: a.isSelected,
|
|
6541
6541
|
isPointed: a.isPointed,
|
|
@@ -6553,14 +6553,14 @@ function c5(a, e, t, s, n, o) {
|
|
|
6553
6553
|
128
|
|
6554
6554
|
/* KEYED_FRAGMENT */
|
|
6555
6555
|
))
|
|
6556
|
-
], 10,
|
|
6557
|
-
a.noOptions ?
|
|
6556
|
+
], 10, X0),
|
|
6557
|
+
a.noOptions ? te(a.$slots, "nooptions", { key: 0 }, () => [
|
|
6558
6558
|
f("div", {
|
|
6559
6559
|
class: Q(a.classList.noOptions),
|
|
6560
6560
|
innerHTML: a.localize(t.noOptionsText)
|
|
6561
6561
|
}, null, 10, s5)
|
|
6562
6562
|
]) : T("v-if", !0),
|
|
6563
|
-
a.noResults ?
|
|
6563
|
+
a.noResults ? te(a.$slots, "noresults", { key: 1 }, () => [
|
|
6564
6564
|
f("div", {
|
|
6565
6565
|
class: Q(a.classList.noResults),
|
|
6566
6566
|
innerHTML: a.localize(t.noResultsText)
|
|
@@ -6574,7 +6574,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6574
6574
|
ref: "infiniteLoader"
|
|
6575
6575
|
},
|
|
6576
6576
|
[
|
|
6577
|
-
|
|
6577
|
+
te(a.$slots, "infinite", {}, () => [
|
|
6578
6578
|
f(
|
|
6579
6579
|
"span",
|
|
6580
6580
|
{
|
|
@@ -6589,7 +6589,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6589
6589
|
2
|
|
6590
6590
|
/* CLASS */
|
|
6591
6591
|
)) : T("v-if", !0),
|
|
6592
|
-
|
|
6592
|
+
te(a.$slots, "afterlist", { options: a.fo })
|
|
6593
6593
|
],
|
|
6594
6594
|
2
|
|
6595
6595
|
/* CLASS */
|
|
@@ -6645,10 +6645,10 @@ function c5(a, e, t, s, n, o) {
|
|
|
6645
6645
|
2
|
|
6646
6646
|
/* CLASS */
|
|
6647
6647
|
)
|
|
6648
|
-
], 42,
|
|
6648
|
+
], 42, q0);
|
|
6649
6649
|
}
|
|
6650
|
-
|
|
6651
|
-
|
|
6650
|
+
ze.render = c5;
|
|
6651
|
+
ze.__file = "src/Multiselect.vue";
|
|
6652
6652
|
const be = /* @__PURE__ */ G({
|
|
6653
6653
|
__name: "AoMultiselect",
|
|
6654
6654
|
props: {
|
|
@@ -6657,18 +6657,18 @@ const be = /* @__PURE__ */ G({
|
|
|
6657
6657
|
},
|
|
6658
6658
|
setup(a) {
|
|
6659
6659
|
const e = a, t = dt(() => e.appendTo), s = J();
|
|
6660
|
-
return e.detached &&
|
|
6660
|
+
return e.detached && S0({
|
|
6661
6661
|
multiselect: s,
|
|
6662
6662
|
appendTo: t.value
|
|
6663
|
-
}), (n, o) => (v(), N(
|
|
6663
|
+
}), (n, o) => (v(), N(F(ze), {
|
|
6664
6664
|
ref_key: "multiselectRef",
|
|
6665
6665
|
ref: s,
|
|
6666
6666
|
class: "ao-multiselect"
|
|
6667
|
-
},
|
|
6667
|
+
}, Dt({ _: 2 }, [
|
|
6668
6668
|
ye(n.$slots, (i, l) => ({
|
|
6669
6669
|
name: l,
|
|
6670
6670
|
fn: R((r) => [
|
|
6671
|
-
|
|
6671
|
+
te(n.$slots, l, dn(fn(r ?? {})))
|
|
6672
6672
|
])
|
|
6673
6673
|
}))
|
|
6674
6674
|
]), 1536));
|
|
@@ -6708,7 +6708,7 @@ G({
|
|
|
6708
6708
|
};
|
|
6709
6709
|
}
|
|
6710
6710
|
});
|
|
6711
|
-
async function
|
|
6711
|
+
async function je(a, e) {
|
|
6712
6712
|
if (e && a && a.length - e.length === 1) {
|
|
6713
6713
|
const t = new Set(e.map((l) => l.id)), s = a.filter(
|
|
6714
6714
|
(l) => !t.has(l.id)
|
|
@@ -6737,8 +6737,8 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6737
6737
|
emits: ["add", "delete", "update"],
|
|
6738
6738
|
setup(a, { emit: e }) {
|
|
6739
6739
|
const t = a, { t: s } = nt();
|
|
6740
|
-
|
|
6741
|
-
|
|
6740
|
+
ue(() => t.tasks, (d, p) => {
|
|
6741
|
+
je(d, p);
|
|
6742
6742
|
});
|
|
6743
6743
|
const n = b(
|
|
6744
6744
|
() => {
|
|
@@ -6784,7 +6784,7 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6784
6784
|
key: C.id,
|
|
6785
6785
|
class: "ao-subtask"
|
|
6786
6786
|
}, [
|
|
6787
|
-
((w = d.isCheckable) == null ? void 0 : w.call(d, C)) ?? !1 ? (v(), N(
|
|
6787
|
+
((w = d.isCheckable) == null ? void 0 : w.call(d, C)) ?? !1 ? (v(), N(le, {
|
|
6788
6788
|
key: 0,
|
|
6789
6789
|
class: "ao-subtask__check",
|
|
6790
6790
|
"icon-name": C.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
@@ -6799,7 +6799,7 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6799
6799
|
class: "ao-field__input ao-subtask__field",
|
|
6800
6800
|
type: "text",
|
|
6801
6801
|
onChange: (S) => i(S, C.id),
|
|
6802
|
-
onKeyup:
|
|
6802
|
+
onKeyup: Ye(u, ["enter"])
|
|
6803
6803
|
}, null, 40, p5),
|
|
6804
6804
|
d.users ? (v(), N(be, {
|
|
6805
6805
|
key: 1,
|
|
@@ -6824,7 +6824,7 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6824
6824
|
]),
|
|
6825
6825
|
_: 2
|
|
6826
6826
|
}, 1032, ["value", "options", "placeholder", "disabled", "caret", "onChange"])) : T("", !0),
|
|
6827
|
-
d.isEditable ? (v(), N(
|
|
6827
|
+
d.isEditable ? (v(), N(le, {
|
|
6828
6828
|
key: 2,
|
|
6829
6829
|
class: "ao-subtask__delete",
|
|
6830
6830
|
"icon-name": "CancelRounded",
|
|
@@ -6837,7 +6837,7 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6837
6837
|
}), 128))
|
|
6838
6838
|
]),
|
|
6839
6839
|
f("div", h5, [
|
|
6840
|
-
d.isEditable ? (v(), N(
|
|
6840
|
+
d.isEditable ? (v(), N(le, {
|
|
6841
6841
|
key: 0,
|
|
6842
6842
|
label: d.$t("activity.tasks.add"),
|
|
6843
6843
|
"icon-name": "Add",
|
|
@@ -6869,7 +6869,7 @@ const C5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], _5 = {
|
|
|
6869
6869
|
const u = c.target, d = Array.from(u.files ?? []);
|
|
6870
6870
|
e("add", d);
|
|
6871
6871
|
}, n = ["dragenter", "dragover", "dragleave", "drop"];
|
|
6872
|
-
|
|
6872
|
+
Ht(() => {
|
|
6873
6873
|
n.forEach((c) => {
|
|
6874
6874
|
document.body.addEventListener(c, (u) => u.preventDefault());
|
|
6875
6875
|
});
|
|
@@ -6888,7 +6888,7 @@ const C5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], _5 = {
|
|
|
6888
6888
|
function l() {
|
|
6889
6889
|
o.value = !1;
|
|
6890
6890
|
}
|
|
6891
|
-
|
|
6891
|
+
ue(o, (c) => {
|
|
6892
6892
|
e("toggleIsDropActive", c);
|
|
6893
6893
|
});
|
|
6894
6894
|
function r(c) {
|
|
@@ -6929,7 +6929,7 @@ const C5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], _5 = {
|
|
|
6929
6929
|
}),
|
|
6930
6930
|
f("span", y5, z(p.name), 1)
|
|
6931
6931
|
], 8, g5),
|
|
6932
|
-
c.isEditable ? (v(), N(
|
|
6932
|
+
c.isEditable ? (v(), N(le, {
|
|
6933
6933
|
key: 0,
|
|
6934
6934
|
class: "ao-files__delete-button",
|
|
6935
6935
|
"icon-name": "DeleteOutlineRounded",
|
|
@@ -7001,15 +7001,15 @@ const A5 = { class: "ao-comment" }, S5 = { class: "ao-comment__body" }, T5 = { c
|
|
|
7001
7001
|
ref_key: "commentContent",
|
|
7002
7002
|
ref: n,
|
|
7003
7003
|
class: "ao-comment__content",
|
|
7004
|
-
value:
|
|
7005
|
-
rows:
|
|
7004
|
+
value: F(o) ? S.content : null,
|
|
7005
|
+
rows: F(o) ? M.value : null,
|
|
7006
7006
|
onKeyup: [
|
|
7007
|
-
|
|
7008
|
-
|
|
7007
|
+
Ye(F(p), ["esc"]),
|
|
7008
|
+
Ye(_e(F(C), ["ctrl"]), ["enter"])
|
|
7009
7009
|
]
|
|
7010
7010
|
}, {
|
|
7011
7011
|
default: R(() => [
|
|
7012
|
-
|
|
7012
|
+
t1(z(S.content), 1)
|
|
7013
7013
|
]),
|
|
7014
7014
|
_: 1
|
|
7015
7015
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
@@ -7017,35 +7017,35 @@ const A5 = { class: "ao-comment" }, S5 = { class: "ao-comment__body" }, T5 = { c
|
|
|
7017
7017
|
f("span", E5, z(u.value || c.value), 1)
|
|
7018
7018
|
]),
|
|
7019
7019
|
S.isEditable ? (v(), h("div", I5, [
|
|
7020
|
-
|
|
7021
|
-
k(
|
|
7020
|
+
F(o) ? (v(), h(fe, { key: 0 }, [
|
|
7021
|
+
k(le, {
|
|
7022
7022
|
"icon-name": "CloseRounded",
|
|
7023
7023
|
size: "sm",
|
|
7024
7024
|
variant: "ghost",
|
|
7025
7025
|
color: "neutral",
|
|
7026
|
-
onClick:
|
|
7026
|
+
onClick: F(p)
|
|
7027
7027
|
}, null, 8, ["onClick"]),
|
|
7028
|
-
k(
|
|
7028
|
+
k(le, {
|
|
7029
7029
|
"icon-name": "CheckSmallRounded",
|
|
7030
7030
|
size: "sm",
|
|
7031
7031
|
variant: "solid",
|
|
7032
7032
|
color: "neutral",
|
|
7033
|
-
onClick:
|
|
7033
|
+
onClick: F(C)
|
|
7034
7034
|
}, null, 8, ["onClick"])
|
|
7035
7035
|
], 64)) : (v(), h(fe, { key: 1 }, [
|
|
7036
|
-
k(
|
|
7036
|
+
k(le, {
|
|
7037
7037
|
label: S.$t("activity.comment.delete"),
|
|
7038
7038
|
size: "sm",
|
|
7039
7039
|
variant: "ghost",
|
|
7040
7040
|
color: "neutral",
|
|
7041
7041
|
onClick: w
|
|
7042
7042
|
}, null, 8, ["label"]),
|
|
7043
|
-
k(
|
|
7043
|
+
k(le, {
|
|
7044
7044
|
label: S.$t("activity.comment.edit"),
|
|
7045
7045
|
size: "sm",
|
|
7046
7046
|
variant: "ghost",
|
|
7047
7047
|
color: "neutral",
|
|
7048
|
-
onClick:
|
|
7048
|
+
onClick: F(i)
|
|
7049
7049
|
}, null, 8, ["label", "onClick"])
|
|
7050
7050
|
], 64))
|
|
7051
7051
|
])) : T("", !0)
|
|
@@ -7128,7 +7128,7 @@ const L5 = {
|
|
|
7128
7128
|
])
|
|
7129
7129
|
]),
|
|
7130
7130
|
f("div", B5, [
|
|
7131
|
-
k(
|
|
7131
|
+
k(le, {
|
|
7132
7132
|
type: "submit",
|
|
7133
7133
|
"icon-name": "SendRounded",
|
|
7134
7134
|
color: "primary",
|
|
@@ -7284,7 +7284,7 @@ const R5 = {
|
|
|
7284
7284
|
activityId: t.activity.id,
|
|
7285
7285
|
files: y
|
|
7286
7286
|
});
|
|
7287
|
-
},
|
|
7287
|
+
}, x = (y) => {
|
|
7288
7288
|
e("removeFile", {
|
|
7289
7289
|
activityId: t.activity.id,
|
|
7290
7290
|
file: y
|
|
@@ -7300,14 +7300,14 @@ const R5 = {
|
|
|
7300
7300
|
id: t.activity.id,
|
|
7301
7301
|
statusId: y
|
|
7302
7302
|
});
|
|
7303
|
-
},
|
|
7303
|
+
}, ae = (y) => {
|
|
7304
7304
|
e("addComment", {
|
|
7305
7305
|
...y,
|
|
7306
7306
|
activityId: t.activity.id
|
|
7307
7307
|
});
|
|
7308
7308
|
}, I = (y) => {
|
|
7309
7309
|
e("updateComment", y);
|
|
7310
|
-
},
|
|
7310
|
+
}, ee = (y) => {
|
|
7311
7311
|
e("removeComment", y);
|
|
7312
7312
|
};
|
|
7313
7313
|
return (y, A) => (v(), N(L1, {
|
|
@@ -7321,7 +7321,7 @@ const R5 = {
|
|
|
7321
7321
|
"is-editable": y.isEditable,
|
|
7322
7322
|
"onUpdate:title": s
|
|
7323
7323
|
}, null, 8, ["title", "is-editable"]),
|
|
7324
|
-
|
|
7324
|
+
te(y.$slots, "header", {}, () => {
|
|
7325
7325
|
var P;
|
|
7326
7326
|
return [
|
|
7327
7327
|
D.value ? (v(), h("label", j5, [
|
|
@@ -7533,7 +7533,7 @@ const R5 = {
|
|
|
7533
7533
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
7534
7534
|
])
|
|
7535
7535
|
])) : T("", !0),
|
|
7536
|
-
|
|
7536
|
+
te(y.$slots, "default")
|
|
7537
7537
|
])
|
|
7538
7538
|
]),
|
|
7539
7539
|
y.isTemplate !== !0 && y.userId ? (v(), h("div", k7, [
|
|
@@ -7548,7 +7548,7 @@ const R5 = {
|
|
|
7548
7548
|
attachments: y.activity.attachments,
|
|
7549
7549
|
"is-editable": y.isEditable,
|
|
7550
7550
|
onAdd: j,
|
|
7551
|
-
onRemove:
|
|
7551
|
+
onRemove: x
|
|
7552
7552
|
}, null, 8, ["attachments", "is-editable"]),
|
|
7553
7553
|
f("div", S7, [
|
|
7554
7554
|
k(de, { name: "ChatOutline" }),
|
|
@@ -7561,9 +7561,9 @@ const R5 = {
|
|
|
7561
7561
|
comments: y.activity.comments,
|
|
7562
7562
|
users: y.users,
|
|
7563
7563
|
"user-id": y.userId,
|
|
7564
|
-
onCreateComment:
|
|
7564
|
+
onCreateComment: ae,
|
|
7565
7565
|
onUpdateComment: I,
|
|
7566
|
-
onRemoveComment:
|
|
7566
|
+
onRemoveComment: ee
|
|
7567
7567
|
}, null, 8, ["comments", "users", "user-id"])
|
|
7568
7568
|
])) : T("", !0)
|
|
7569
7569
|
]),
|
|
@@ -7647,22 +7647,22 @@ const T7 = /* @__PURE__ */ G({
|
|
|
7647
7647
|
}), S = b(() => Object.values(hc));
|
|
7648
7648
|
return (_, g) => (v(), N(tt(_.tagName), { class: "ao-rule-line" }, {
|
|
7649
7649
|
default: R(() => [
|
|
7650
|
-
k(
|
|
7650
|
+
k(F(ze), {
|
|
7651
7651
|
modelValue: n.value,
|
|
7652
7652
|
"onUpdate:modelValue": g[0] || (g[0] = (V) => n.value = V),
|
|
7653
7653
|
options: o.value
|
|
7654
7654
|
}, null, 8, ["modelValue", "options"]),
|
|
7655
|
-
k(
|
|
7655
|
+
k(F(ze), {
|
|
7656
7656
|
modelValue: i.value,
|
|
7657
7657
|
"onUpdate:modelValue": g[1] || (g[1] = (V) => i.value = V),
|
|
7658
7658
|
options: l.value
|
|
7659
7659
|
}, null, 8, ["modelValue", "options"]),
|
|
7660
|
-
k(
|
|
7660
|
+
k(F(ze), {
|
|
7661
7661
|
modelValue: p.value,
|
|
7662
7662
|
"onUpdate:modelValue": g[2] || (g[2] = (V) => p.value = V),
|
|
7663
7663
|
options: C.value
|
|
7664
7664
|
}, null, 8, ["modelValue", "options"]),
|
|
7665
|
-
k(
|
|
7665
|
+
k(F(ze), {
|
|
7666
7666
|
modelValue: c.value,
|
|
7667
7667
|
"onUpdate:modelValue": g[3] || (g[3] = (V) => c.value = V),
|
|
7668
7668
|
options: u.value
|
|
@@ -7679,12 +7679,12 @@ const T7 = /* @__PURE__ */ G({
|
|
|
7679
7679
|
{ number: !0 }
|
|
7680
7680
|
]
|
|
7681
7681
|
]),
|
|
7682
|
-
k(
|
|
7682
|
+
k(F(ze), {
|
|
7683
7683
|
modelValue: M.value,
|
|
7684
7684
|
"onUpdate:modelValue": g[5] || (g[5] = (V) => M.value = V),
|
|
7685
7685
|
options: S.value
|
|
7686
7686
|
}, null, 8, ["modelValue", "options"]),
|
|
7687
|
-
k(
|
|
7687
|
+
k(le, {
|
|
7688
7688
|
class: "ao-rule-line__remove",
|
|
7689
7689
|
"icon-name": "CloseRounded",
|
|
7690
7690
|
variant: "ghost",
|
|
@@ -7731,7 +7731,7 @@ const E7 = { class: "ao-template-rules__body" }, I7 = { class: "ao-template-rule
|
|
|
7731
7731
|
onClose: () => s(i.id)
|
|
7732
7732
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
7733
7733
|
]),
|
|
7734
|
-
k(
|
|
7734
|
+
k(Qe, {
|
|
7735
7735
|
label: n.$t("template.rules.add"),
|
|
7736
7736
|
"icon-name": "Add",
|
|
7737
7737
|
onClick: t
|
|
@@ -7771,53 +7771,53 @@ const L7 = {
|
|
|
7771
7771
|
return (O = t.templates) == null ? void 0 : O.find((L) => L.id === t.templateId);
|
|
7772
7772
|
}
|
|
7773
7773
|
), o = J(!1);
|
|
7774
|
-
|
|
7774
|
+
ue(() => [t.templateId, t.phaseId, t.milestoneId], () => o.value = !1), ue(() => {
|
|
7775
7775
|
var O;
|
|
7776
7776
|
return (O = n.value) == null ? void 0 : O.phases;
|
|
7777
7777
|
}, (O, L) => {
|
|
7778
|
-
o.value &&
|
|
7778
|
+
o.value && je(O, L);
|
|
7779
7779
|
});
|
|
7780
7780
|
const i = b(() => {
|
|
7781
7781
|
var O, L;
|
|
7782
|
-
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((
|
|
7782
|
+
return (L = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : L.find((q) => q.id === t.phaseId);
|
|
7783
7783
|
});
|
|
7784
|
-
|
|
7784
|
+
ue(() => {
|
|
7785
7785
|
var O;
|
|
7786
7786
|
return (O = i.value) == null ? void 0 : O.milestones;
|
|
7787
7787
|
}, (O, L) => {
|
|
7788
|
-
o.value &&
|
|
7788
|
+
o.value && je(O, L);
|
|
7789
7789
|
});
|
|
7790
7790
|
const l = b(() => {
|
|
7791
7791
|
var O, L;
|
|
7792
7792
|
return (L = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : L.find(
|
|
7793
|
-
(
|
|
7793
|
+
(q) => q.id === t.milestoneId
|
|
7794
7794
|
);
|
|
7795
7795
|
});
|
|
7796
|
-
|
|
7796
|
+
ue(() => {
|
|
7797
7797
|
var O;
|
|
7798
7798
|
return (O = l.value) == null ? void 0 : O.activities;
|
|
7799
7799
|
}, (O, L) => {
|
|
7800
|
-
o.value &&
|
|
7800
|
+
o.value && je(O, L);
|
|
7801
7801
|
});
|
|
7802
7802
|
const r = b(() => {
|
|
7803
7803
|
var O, L;
|
|
7804
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((
|
|
7805
|
-
const
|
|
7806
|
-
return [...
|
|
7804
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((q, $) => {
|
|
7805
|
+
const Y = $.milestones || [];
|
|
7806
|
+
return [...q, ...Y];
|
|
7807
7807
|
}, [])) || [];
|
|
7808
7808
|
}), c = b(() => {
|
|
7809
7809
|
var O, L;
|
|
7810
|
-
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((
|
|
7810
|
+
return ((L = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : L.reduce((q, $) => {
|
|
7811
7811
|
const he = ($.milestones || []).reduce(
|
|
7812
7812
|
(W, Z) => Z.activities ? [...W, ...Z.activities] : W,
|
|
7813
7813
|
[]
|
|
7814
7814
|
);
|
|
7815
|
-
return [...
|
|
7815
|
+
return [...q, ...he];
|
|
7816
7816
|
}, [])) || [];
|
|
7817
7817
|
}), u = b(() => {
|
|
7818
7818
|
var O, L;
|
|
7819
7819
|
return (L = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : L.find(
|
|
7820
|
-
(
|
|
7820
|
+
(q) => q.id === t.activityId
|
|
7821
7821
|
);
|
|
7822
7822
|
}), d = b(() => {
|
|
7823
7823
|
var O;
|
|
@@ -7871,7 +7871,7 @@ const L7 = {
|
|
|
7871
7871
|
}, g = (O) => {
|
|
7872
7872
|
if (!i.value)
|
|
7873
7873
|
return;
|
|
7874
|
-
const { name: L, rank:
|
|
7874
|
+
const { name: L, rank: q } = pt(
|
|
7875
7875
|
i.value.milestones,
|
|
7876
7876
|
"milestone",
|
|
7877
7877
|
s
|
|
@@ -7882,7 +7882,7 @@ const L7 = {
|
|
|
7882
7882
|
phaseId: O.phaseId,
|
|
7883
7883
|
item: {
|
|
7884
7884
|
name: L,
|
|
7885
|
-
rank:
|
|
7885
|
+
rank: q,
|
|
7886
7886
|
phaseId: O.phaseId
|
|
7887
7887
|
}
|
|
7888
7888
|
});
|
|
@@ -7896,18 +7896,18 @@ const L7 = {
|
|
|
7896
7896
|
}
|
|
7897
7897
|
});
|
|
7898
7898
|
}, j = (O) => {
|
|
7899
|
-
const { id: L, ...
|
|
7899
|
+
const { id: L, ...q } = O;
|
|
7900
7900
|
e("updateItem", {
|
|
7901
7901
|
itemType: pe.MILESTONES,
|
|
7902
7902
|
id: L,
|
|
7903
7903
|
templateId: t.templateId,
|
|
7904
|
-
data:
|
|
7904
|
+
data: q
|
|
7905
7905
|
});
|
|
7906
|
-
},
|
|
7906
|
+
}, x = (O) => {
|
|
7907
7907
|
const { milestoneId: L } = O;
|
|
7908
7908
|
if (!l.value)
|
|
7909
7909
|
return;
|
|
7910
|
-
const { name:
|
|
7910
|
+
const { name: q, rank: $ } = pt(
|
|
7911
7911
|
l.value.activities,
|
|
7912
7912
|
"activity",
|
|
7913
7913
|
s
|
|
@@ -7916,43 +7916,43 @@ const L7 = {
|
|
|
7916
7916
|
type: pe.ACTIVITIES,
|
|
7917
7917
|
milestoneId: L,
|
|
7918
7918
|
templateId: t.templateId,
|
|
7919
|
-
item: { name:
|
|
7919
|
+
item: { name: q, rank: $, milestoneId: L }
|
|
7920
7920
|
});
|
|
7921
7921
|
}, D = (O) => {
|
|
7922
|
-
var L,
|
|
7922
|
+
var L, q;
|
|
7923
7923
|
e("removeItem", {
|
|
7924
7924
|
type: pe.ACTIVITIES,
|
|
7925
7925
|
templateId: t.templateId,
|
|
7926
7926
|
phaseId: (L = i.value) == null ? void 0 : L.id,
|
|
7927
|
-
milestoneId: (
|
|
7927
|
+
milestoneId: (q = l.value) == null ? void 0 : q.id,
|
|
7928
7928
|
data: {
|
|
7929
7929
|
id: O.id
|
|
7930
7930
|
}
|
|
7931
7931
|
});
|
|
7932
7932
|
}, K = (O) => {
|
|
7933
|
-
const { id: L, ...
|
|
7933
|
+
const { id: L, ...q } = O;
|
|
7934
7934
|
e("updateItem", {
|
|
7935
7935
|
itemType: pe.ACTIVITIES,
|
|
7936
7936
|
id: L,
|
|
7937
7937
|
templateId: t.templateId,
|
|
7938
|
-
data:
|
|
7938
|
+
data: q
|
|
7939
7939
|
});
|
|
7940
|
-
},
|
|
7941
|
-
|
|
7942
|
-
},
|
|
7940
|
+
}, ae = J(!1), I = () => {
|
|
7941
|
+
ae.value = !ae.value;
|
|
7942
|
+
}, ee = () => {
|
|
7943
7943
|
e("addRule", { templateId: t.templateId });
|
|
7944
7944
|
}, y = (O) => {
|
|
7945
7945
|
e("removeRule", { id: O, templateId: t.templateId });
|
|
7946
7946
|
}, A = (O) => {
|
|
7947
7947
|
var L;
|
|
7948
7948
|
if (O.moved) {
|
|
7949
|
-
const
|
|
7949
|
+
const q = Nt(O, ((L = n.value) == null ? void 0 : L.phases) ?? []);
|
|
7950
7950
|
e("updateItem", {
|
|
7951
7951
|
itemType: pe.PHASES,
|
|
7952
7952
|
id: O.moved.element.id,
|
|
7953
7953
|
templateId: t.templateId,
|
|
7954
7954
|
data: {
|
|
7955
|
-
rank:
|
|
7955
|
+
rank: q
|
|
7956
7956
|
}
|
|
7957
7957
|
});
|
|
7958
7958
|
}
|
|
@@ -7981,17 +7981,17 @@ const L7 = {
|
|
|
7981
7981
|
templateId: t.templateId,
|
|
7982
7982
|
data: O
|
|
7983
7983
|
});
|
|
7984
|
-
},
|
|
7984
|
+
}, re = (O) => {
|
|
7985
7985
|
e("addFiles", O);
|
|
7986
7986
|
}, ie = (O) => {
|
|
7987
7987
|
e("removeFile", O);
|
|
7988
7988
|
};
|
|
7989
7989
|
return (O, L) => {
|
|
7990
|
-
var
|
|
7990
|
+
var q, $, Y, he, W, Z;
|
|
7991
7991
|
return n.value ? (v(), h("div", L7, [
|
|
7992
7992
|
k(r1, {
|
|
7993
7993
|
"can-go-back": !0,
|
|
7994
|
-
onGoBack: L[1] || (L[1] = (E) => O.$router.push({ name:
|
|
7994
|
+
onGoBack: L[1] || (L[1] = (E) => O.$router.push({ name: F(Tt).TEMPLATES_LIST }))
|
|
7995
7995
|
}, {
|
|
7996
7996
|
primary: R(() => [
|
|
7997
7997
|
k(me, {
|
|
@@ -8004,7 +8004,7 @@ const L7 = {
|
|
|
8004
8004
|
}, null, 8, ["title"])
|
|
8005
8005
|
]),
|
|
8006
8006
|
secondary: R(() => [
|
|
8007
|
-
k(
|
|
8007
|
+
k(le, {
|
|
8008
8008
|
label: O.$t("template.rules.edit"),
|
|
8009
8009
|
color: "primary",
|
|
8010
8010
|
"icon-name": "Settings",
|
|
@@ -8017,7 +8017,7 @@ const L7 = {
|
|
|
8017
8017
|
f("div", V7, [
|
|
8018
8018
|
f("ol", D7, [
|
|
8019
8019
|
f("li", H7, [
|
|
8020
|
-
k(
|
|
8020
|
+
k(F(Xe), {
|
|
8021
8021
|
"model-value": n.value.phases,
|
|
8022
8022
|
class: "ao-templates__list",
|
|
8023
8023
|
"item-key": "id",
|
|
@@ -8034,7 +8034,7 @@ const L7 = {
|
|
|
8034
8034
|
item: R(({ element: E }) => {
|
|
8035
8035
|
var U;
|
|
8036
8036
|
return [
|
|
8037
|
-
k(
|
|
8037
|
+
k(B3, {
|
|
8038
8038
|
id: E.id,
|
|
8039
8039
|
name: E.name,
|
|
8040
8040
|
milestones: E.milestones,
|
|
@@ -8052,7 +8052,7 @@ const L7 = {
|
|
|
8052
8052
|
}),
|
|
8053
8053
|
footer: R(() => [
|
|
8054
8054
|
f("div", P7, [
|
|
8055
|
-
k(
|
|
8055
|
+
k(Qe, {
|
|
8056
8056
|
"icon-name": "AddBoxOutlineRounded",
|
|
8057
8057
|
label: O.$t("template.phases.add"),
|
|
8058
8058
|
onClick: C
|
|
@@ -8063,11 +8063,11 @@ const L7 = {
|
|
|
8063
8063
|
}, 8, ["model-value"])
|
|
8064
8064
|
]),
|
|
8065
8065
|
f("li", B7, [
|
|
8066
|
-
i.value ? (v(), N(
|
|
8066
|
+
i.value ? (v(), N(j3, {
|
|
8067
8067
|
key: 0,
|
|
8068
8068
|
"template-id": O.templateId,
|
|
8069
8069
|
phase: i.value,
|
|
8070
|
-
"milestone-id": (
|
|
8070
|
+
"milestone-id": (q = l.value) == null ? void 0 : q.id,
|
|
8071
8071
|
onAddMilestone: g,
|
|
8072
8072
|
onUpdateMilestone: j,
|
|
8073
8073
|
onUpdatePhase: _,
|
|
@@ -8075,13 +8075,13 @@ const L7 = {
|
|
|
8075
8075
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
8076
8076
|
]),
|
|
8077
8077
|
f("li", N7, [
|
|
8078
|
-
i.value && l.value ? (v(), N(
|
|
8078
|
+
i.value && l.value ? (v(), N(F3, {
|
|
8079
8079
|
key: 0,
|
|
8080
8080
|
"template-id": O.templateId,
|
|
8081
8081
|
"phase-id": ($ = i.value) == null ? void 0 : $.id,
|
|
8082
8082
|
milestone: l.value,
|
|
8083
|
-
"activity-id": (
|
|
8084
|
-
onAddActivity:
|
|
8083
|
+
"activity-id": (Y = u.value) == null ? void 0 : Y.id,
|
|
8084
|
+
onAddActivity: x,
|
|
8085
8085
|
onUpdateActivity: K,
|
|
8086
8086
|
onRemoveActivity: D
|
|
8087
8087
|
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : T("", !0)
|
|
@@ -8106,12 +8106,12 @@ const L7 = {
|
|
|
8106
8106
|
onAddSubtask: P,
|
|
8107
8107
|
onUpdateSubtask: ce,
|
|
8108
8108
|
onDeleteSubtask: ne,
|
|
8109
|
-
onAddFiles:
|
|
8109
|
+
onAddFiles: re,
|
|
8110
8110
|
onRemoveFile: ie
|
|
8111
8111
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : T("", !0)
|
|
8112
8112
|
])),
|
|
8113
8113
|
(v(), N(It, { to: "body" }, [
|
|
8114
|
-
|
|
8114
|
+
ae.value ? (v(), N(O7, {
|
|
8115
8115
|
key: 0,
|
|
8116
8116
|
"template-id": n.value.id,
|
|
8117
8117
|
rules: n.value.rules || [],
|
|
@@ -8119,7 +8119,7 @@ const L7 = {
|
|
|
8119
8119
|
"template-milestones": r.value,
|
|
8120
8120
|
"template-activities": c.value,
|
|
8121
8121
|
onClose: I,
|
|
8122
|
-
onAddRule:
|
|
8122
|
+
onAddRule: ee,
|
|
8123
8123
|
onRemoveRule: y
|
|
8124
8124
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : T("", !0)
|
|
8125
8125
|
]))
|
|
@@ -8145,13 +8145,13 @@ const j7 = {
|
|
|
8145
8145
|
}, {
|
|
8146
8146
|
default: R(() => [
|
|
8147
8147
|
e.$slots.header ? (v(), h("header", j7, [
|
|
8148
|
-
|
|
8148
|
+
te(e.$slots, "header")
|
|
8149
8149
|
])) : T("", !0),
|
|
8150
8150
|
f("div", U7, [
|
|
8151
|
-
|
|
8151
|
+
te(e.$slots, "default")
|
|
8152
8152
|
]),
|
|
8153
8153
|
e.$slots.footer ? (v(), h("footer", Z7, [
|
|
8154
|
-
|
|
8154
|
+
te(e.$slots, "footer")
|
|
8155
8155
|
])) : T("", !0)
|
|
8156
8156
|
]),
|
|
8157
8157
|
_: 3
|
|
@@ -8201,7 +8201,7 @@ const F7 = { class: "ao-card-project-phase__header" }, q7 = { class: "ao-card-pr
|
|
|
8201
8201
|
var l;
|
|
8202
8202
|
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === k1.done).length;
|
|
8203
8203
|
}), i = b(() => (o.value || 0) / (n.value || 1));
|
|
8204
|
-
return (l, r) => (v(), N(R1, { class: "ao-card-project-phase" },
|
|
8204
|
+
return (l, r) => (v(), N(R1, { class: "ao-card-project-phase" }, Dt({
|
|
8205
8205
|
default: R(() => [
|
|
8206
8206
|
k(me, {
|
|
8207
8207
|
id: l.id,
|
|
@@ -8229,7 +8229,7 @@ const F7 = { class: "ao-card-project-phase__header" }, q7 = { class: "ao-card-pr
|
|
|
8229
8229
|
}, null, 8, ["percentages"])
|
|
8230
8230
|
], 64)) : T("", !0),
|
|
8231
8231
|
l.$slots.secondary ? (v(), h("div", x7, [
|
|
8232
|
-
|
|
8232
|
+
te(l.$slots, "secondary")
|
|
8233
8233
|
])) : T("", !0)
|
|
8234
8234
|
])
|
|
8235
8235
|
])
|
|
@@ -8240,7 +8240,7 @@ const F7 = { class: "ao-card-project-phase__header" }, q7 = { class: "ao-card-pr
|
|
|
8240
8240
|
name: "header",
|
|
8241
8241
|
fn: R(() => [
|
|
8242
8242
|
f("div", F7, [
|
|
8243
|
-
k(
|
|
8243
|
+
k(le, {
|
|
8244
8244
|
class: "ao-card-project-phase__archive",
|
|
8245
8245
|
color: "primary",
|
|
8246
8246
|
variant: "ghost",
|
|
@@ -8300,7 +8300,7 @@ const G7 = { class: "ao-card-project-milestone__default" }, X7 = {
|
|
|
8300
8300
|
"onUpdate:title": i
|
|
8301
8301
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8302
8302
|
l.isEditable ? (v(), h("div", X7, [
|
|
8303
|
-
k(
|
|
8303
|
+
k(le, {
|
|
8304
8304
|
color: "primary",
|
|
8305
8305
|
variant: "ghost",
|
|
8306
8306
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -8330,7 +8330,7 @@ const G7 = { class: "ao-card-project-milestone__default" }, X7 = {
|
|
|
8330
8330
|
}, null, 8, ["percentages"])
|
|
8331
8331
|
], 64)) : T("", !0),
|
|
8332
8332
|
l.$slots.secondary ? (v(), h("div", a9, [
|
|
8333
|
-
|
|
8333
|
+
te(l.$slots, "secondary")
|
|
8334
8334
|
])) : T("", !0)
|
|
8335
8335
|
])
|
|
8336
8336
|
])
|
|
@@ -8352,12 +8352,12 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8352
8352
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
|
|
8353
8353
|
setup(a, { emit: e }) {
|
|
8354
8354
|
const t = a, { t: s } = nt();
|
|
8355
|
-
|
|
8356
|
-
|
|
8355
|
+
ue(() => t.phase.milestones, (d, p) => {
|
|
8356
|
+
je(d, p);
|
|
8357
8357
|
});
|
|
8358
8358
|
const n = (d) => {
|
|
8359
8359
|
e("updatePhase", { id: t.phase.id, name: d });
|
|
8360
|
-
}, o = b(() => t.phase.milestones.map((d) =>
|
|
8360
|
+
}, o = b(() => t.phase.milestones.map((d) => i3(d, t.closedStatus))), i = (d) => {
|
|
8361
8361
|
const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
|
|
8362
8362
|
e("addMilestone", { name: p, rank: C, phaseId: d });
|
|
8363
8363
|
}, l = (d) => {
|
|
@@ -8395,7 +8395,7 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8395
8395
|
]),
|
|
8396
8396
|
f("div", l9, [
|
|
8397
8397
|
f("div", r9, [
|
|
8398
|
-
k(
|
|
8398
|
+
k(F(Xe), Ve({
|
|
8399
8399
|
class: "ao-project-phase__milestones-list",
|
|
8400
8400
|
list: o.value,
|
|
8401
8401
|
disabled: !d.isEditable,
|
|
@@ -8412,7 +8412,7 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8412
8412
|
"closed-status": d.closedStatus,
|
|
8413
8413
|
class: "ao-project-phase__milestone",
|
|
8414
8414
|
onClick: (w) => d.$router.push({
|
|
8415
|
-
name:
|
|
8415
|
+
name: F(Re).milestone,
|
|
8416
8416
|
params: { phaseId: d.phase.id, milestoneId: C.id }
|
|
8417
8417
|
}),
|
|
8418
8418
|
onUpdateMilestone: l,
|
|
@@ -8422,7 +8422,7 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8422
8422
|
_: 1
|
|
8423
8423
|
}, 16, ["list", "disabled"]),
|
|
8424
8424
|
f("div", u9, [
|
|
8425
|
-
d.isEditable ? (v(), N(
|
|
8425
|
+
d.isEditable ? (v(), N(Qe, {
|
|
8426
8426
|
key: 0,
|
|
8427
8427
|
label: d.$t("project.milestone.add"),
|
|
8428
8428
|
class: "ao-project-phase__milestone-add",
|
|
@@ -8448,8 +8448,8 @@ const d9 = { class: "ao-project__phases" }, f9 = {
|
|
|
8448
8448
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
8449
8449
|
setup(a, { emit: e }) {
|
|
8450
8450
|
const t = a;
|
|
8451
|
-
|
|
8452
|
-
|
|
8451
|
+
ue(() => t.phases, (u, d) => {
|
|
8452
|
+
je(u, d);
|
|
8453
8453
|
});
|
|
8454
8454
|
const s = (u) => {
|
|
8455
8455
|
e("addMilestone", u);
|
|
@@ -8461,7 +8461,7 @@ const d9 = { class: "ao-project__phases" }, f9 = {
|
|
|
8461
8461
|
e("archivePhase", u);
|
|
8462
8462
|
}, l = (u) => {
|
|
8463
8463
|
if (u.moved) {
|
|
8464
|
-
const d =
|
|
8464
|
+
const d = Nt(u, t.phases ?? []);
|
|
8465
8465
|
e("updatePhase", {
|
|
8466
8466
|
id: u.moved.element.id,
|
|
8467
8467
|
rank: d
|
|
@@ -8473,7 +8473,7 @@ const d9 = { class: "ao-project__phases" }, f9 = {
|
|
|
8473
8473
|
e("addPhase", u);
|
|
8474
8474
|
};
|
|
8475
8475
|
return (u, d) => (v(), h("div", d9, [
|
|
8476
|
-
k(
|
|
8476
|
+
k(F(Xe), {
|
|
8477
8477
|
class: "ao-project-phase__phases-list",
|
|
8478
8478
|
"model-value": u.phases,
|
|
8479
8479
|
"item-key": "id",
|
|
@@ -8497,7 +8497,7 @@ const d9 = { class: "ao-project__phases" }, f9 = {
|
|
|
8497
8497
|
u.isEditable ? (v(), h("div", f9, [
|
|
8498
8498
|
v9,
|
|
8499
8499
|
f("div", p9, [
|
|
8500
|
-
k(
|
|
8500
|
+
k(Qe, {
|
|
8501
8501
|
label: u.$t("project.phases.add"),
|
|
8502
8502
|
"icon-name": "Add",
|
|
8503
8503
|
class: "ao-project-phase__add-phase",
|
|
@@ -8548,7 +8548,7 @@ const C9 = ["onSubmit"], _9 = { class: "ao-add-template-modal__form-body" }, g9
|
|
|
8548
8548
|
])
|
|
8549
8549
|
]),
|
|
8550
8550
|
f("footer", y9, [
|
|
8551
|
-
k(
|
|
8551
|
+
k(le, {
|
|
8552
8552
|
label: l.$t("project.template.add.label"),
|
|
8553
8553
|
type: "submit",
|
|
8554
8554
|
color: "primary",
|
|
@@ -8580,8 +8580,8 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8580
8580
|
const t = a, { t: s } = nt(), n = b(
|
|
8581
8581
|
() => t.phases.flatMap((I) => I.milestones)
|
|
8582
8582
|
), o = () => {
|
|
8583
|
-
const { name: I, rank:
|
|
8584
|
-
e("addPhase", { name: I, rank:
|
|
8583
|
+
const { name: I, rank: ee } = pt(t.phases, "phase", s);
|
|
8584
|
+
e("addPhase", { name: I, rank: ee, projectId: t.project.id });
|
|
8585
8585
|
}, i = (I) => {
|
|
8586
8586
|
e("updatePhase", I);
|
|
8587
8587
|
}, l = (I) => {
|
|
@@ -8612,27 +8612,37 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8612
8612
|
e("removeFile", I);
|
|
8613
8613
|
}, j = (I) => {
|
|
8614
8614
|
e("addComment", I);
|
|
8615
|
-
},
|
|
8615
|
+
}, x = (I) => {
|
|
8616
8616
|
e("updateComment", I);
|
|
8617
8617
|
}, D = (I) => {
|
|
8618
8618
|
e("removeComment", I);
|
|
8619
|
-
}, K = J(!1),
|
|
8620
|
-
e("applyTemplate", { templateId: I, projectId:
|
|
8619
|
+
}, K = J(!1), ae = (I, ee) => {
|
|
8620
|
+
e("applyTemplate", { templateId: I, projectId: ee }), K.value = !1;
|
|
8621
8621
|
};
|
|
8622
|
-
return (I,
|
|
8622
|
+
return (I, ee) => {
|
|
8623
8623
|
const y = hn("RouterView");
|
|
8624
8624
|
return v(), h(fe, null, [
|
|
8625
8625
|
f("div", w9, [
|
|
8626
8626
|
f("div", $9, [
|
|
8627
|
-
k(r1, null,
|
|
8627
|
+
k(r1, null, Dt({
|
|
8628
|
+
default: R(() => [
|
|
8629
|
+
k(le, {
|
|
8630
|
+
class: "ao-project-overview__add-template",
|
|
8631
|
+
color: "primary",
|
|
8632
|
+
label: I.$t("project.feed.switch"),
|
|
8633
|
+
onClose: ee[0] || (ee[0] = (A) => I.$router.push({ name: F(Re).feed }))
|
|
8634
|
+
}, null, 8, ["label"])
|
|
8635
|
+
]),
|
|
8636
|
+
_: 2
|
|
8637
|
+
}, [
|
|
8628
8638
|
I.isEditable ? {
|
|
8629
8639
|
name: "primary",
|
|
8630
8640
|
fn: R(() => [
|
|
8631
|
-
k(
|
|
8641
|
+
k(le, {
|
|
8632
8642
|
class: "ao-project-overview__add-template",
|
|
8633
8643
|
color: "primary",
|
|
8634
8644
|
label: I.$t("project.template.add.label"),
|
|
8635
|
-
onClick:
|
|
8645
|
+
onClick: ee[1] || (ee[1] = (A) => K.value = !0)
|
|
8636
8646
|
}, null, 8, ["label"])
|
|
8637
8647
|
]),
|
|
8638
8648
|
key: "0"
|
|
@@ -8659,7 +8669,7 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8659
8669
|
"project-name": I.project.name,
|
|
8660
8670
|
users: I.users,
|
|
8661
8671
|
"is-editable": I.isEditable,
|
|
8662
|
-
onClose:
|
|
8672
|
+
onClose: ee[2] || (ee[2] = (A) => I.$router.push({ name: F(Re).project })),
|
|
8663
8673
|
onAddActivity: d,
|
|
8664
8674
|
onUpdateActivity: p,
|
|
8665
8675
|
onArchiveActivity: C
|
|
@@ -8681,7 +8691,7 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8681
8691
|
onAddFiles: g,
|
|
8682
8692
|
onRemoveFile: V,
|
|
8683
8693
|
onAddComment: j,
|
|
8684
|
-
onUpdateComment:
|
|
8694
|
+
onUpdateComment: x,
|
|
8685
8695
|
onRemoveComment: D
|
|
8686
8696
|
}, null, 8, ["activities", "is-task-checkable", "statuses", "phases", "users", "user-id", "is-editable"])
|
|
8687
8697
|
]))
|
|
@@ -8691,8 +8701,8 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8691
8701
|
key: 0,
|
|
8692
8702
|
"project-id": I.project.id,
|
|
8693
8703
|
templates: I.templates,
|
|
8694
|
-
onClose:
|
|
8695
|
-
onApply:
|
|
8704
|
+
onClose: ee[3] || (ee[3] = (A) => K.value = !1),
|
|
8705
|
+
onApply: ae
|
|
8696
8706
|
}, null, 8, ["project-id", "templates"])) : T("", !0)
|
|
8697
8707
|
]))
|
|
8698
8708
|
], 64);
|
|
@@ -8780,7 +8790,7 @@ const A9 = { class: "ao-card-feed__header" }, S9 = {
|
|
|
8780
8790
|
size: "sm"
|
|
8781
8791
|
})) : T("", !0),
|
|
8782
8792
|
p.$slots.secondary ? (v(), h("div", S9, [
|
|
8783
|
-
|
|
8793
|
+
te(p.$slots, "secondary")
|
|
8784
8794
|
])) : T("", !0)
|
|
8785
8795
|
])
|
|
8786
8796
|
]),
|
|
@@ -8879,8 +8889,8 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8879
8889
|
var p;
|
|
8880
8890
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
8881
8891
|
});
|
|
8882
|
-
|
|
8883
|
-
|
|
8892
|
+
ue(l, (p, C) => {
|
|
8893
|
+
je(p, C);
|
|
8884
8894
|
});
|
|
8885
8895
|
const r = (p) => {
|
|
8886
8896
|
e("close", p);
|
|
@@ -8915,14 +8925,14 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8915
8925
|
level: 5
|
|
8916
8926
|
}, null, 8, ["title"])
|
|
8917
8927
|
]),
|
|
8918
|
-
k(
|
|
8928
|
+
k(le, {
|
|
8919
8929
|
"icon-name": "CloseRounded",
|
|
8920
8930
|
variant: "ghost",
|
|
8921
8931
|
onClick: r
|
|
8922
8932
|
})
|
|
8923
8933
|
]),
|
|
8924
8934
|
f("div", Y9, [
|
|
8925
|
-
k(
|
|
8935
|
+
k(F(Xe), Ve({
|
|
8926
8936
|
class: "ao-project-milestone__activities",
|
|
8927
8937
|
list: l.value,
|
|
8928
8938
|
disabled: !p.isEditable,
|
|
@@ -8946,16 +8956,16 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8946
8956
|
tasks: M.tasks,
|
|
8947
8957
|
"is-editable": p.isEditable,
|
|
8948
8958
|
onClick: (j) => p.$router.push({
|
|
8949
|
-
name:
|
|
8959
|
+
name: F(Re).activity,
|
|
8950
8960
|
params: { milestoneId: p.milestoneId, activityId: M.id }
|
|
8951
8961
|
}),
|
|
8952
8962
|
onUpdateActivity: u,
|
|
8953
8963
|
onRemoveAssignee: () => u({ id: M.id, assigneeId: null })
|
|
8954
|
-
},
|
|
8964
|
+
}, Dt({ _: 2 }, [
|
|
8955
8965
|
p.isEditable ? {
|
|
8956
8966
|
name: "secondary",
|
|
8957
8967
|
fn: R(() => [
|
|
8958
|
-
k(
|
|
8968
|
+
k(le, {
|
|
8959
8969
|
color: "primary",
|
|
8960
8970
|
variant: "ghost",
|
|
8961
8971
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -8974,7 +8984,7 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8974
8984
|
_: 1
|
|
8975
8985
|
}, 16, ["list", "disabled"]),
|
|
8976
8986
|
p.isEditable ? (v(), h("div", x9, [
|
|
8977
|
-
k(
|
|
8987
|
+
k(Qe, {
|
|
8978
8988
|
"icon-name": "Add",
|
|
8979
8989
|
label: p.$t("project.activity.add"),
|
|
8980
8990
|
onClick: c
|
|
@@ -9094,8 +9104,8 @@ const K9 = /* @__PURE__ */ G({
|
|
|
9094
9104
|
function Q9(a) {
|
|
9095
9105
|
return mn() ? (Cn(a), !0) : !1;
|
|
9096
9106
|
}
|
|
9097
|
-
function
|
|
9098
|
-
return typeof a == "function" ? a() :
|
|
9107
|
+
function e1(a) {
|
|
9108
|
+
return typeof a == "function" ? a() : F(a);
|
|
9099
9109
|
}
|
|
9100
9110
|
const J9 = typeof window < "u", e4 = (a) => a != null, St = () => {
|
|
9101
9111
|
};
|
|
@@ -9113,7 +9123,7 @@ function a4(a, e = {}) {
|
|
|
9113
9123
|
clearTimeout(l), n(), n = St;
|
|
9114
9124
|
};
|
|
9115
9125
|
return (l) => {
|
|
9116
|
-
const r =
|
|
9126
|
+
const r = e1(a), c = e1(e.maxWait);
|
|
9117
9127
|
return t && o(t), r <= 0 || c !== void 0 && c <= 0 ? (s && (o(s), s = null), Promise.resolve(l())) : new Promise((u, d) => {
|
|
9118
9128
|
n = e.rejectOnCancel ? d : u, c && !s && (s = setTimeout(() => {
|
|
9119
9129
|
t && o(t), s = null, u(l());
|
|
@@ -9131,13 +9141,13 @@ function n4(a, e = 200, t = {}) {
|
|
|
9131
9141
|
}
|
|
9132
9142
|
function M1(a) {
|
|
9133
9143
|
var e;
|
|
9134
|
-
const t =
|
|
9144
|
+
const t = e1(a);
|
|
9135
9145
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
9136
9146
|
}
|
|
9137
9147
|
const s4 = J9 ? window : void 0;
|
|
9138
9148
|
function i4() {
|
|
9139
9149
|
const a = J(!1);
|
|
9140
|
-
return at() &&
|
|
9150
|
+
return at() && Ht(() => {
|
|
9141
9151
|
a.value = !0;
|
|
9142
9152
|
}), a;
|
|
9143
9153
|
}
|
|
@@ -9153,11 +9163,11 @@ function l4(a, e, t = {}) {
|
|
|
9153
9163
|
window: i = s4,
|
|
9154
9164
|
immediate: l = !0
|
|
9155
9165
|
} = t, r = o4(() => i && "IntersectionObserver" in i), c = b(() => {
|
|
9156
|
-
const w =
|
|
9166
|
+
const w = e1(a);
|
|
9157
9167
|
return (Array.isArray(w) ? w : [w]).map(M1).filter(e4);
|
|
9158
9168
|
});
|
|
9159
9169
|
let u = St;
|
|
9160
|
-
const d = J(l), p = r.value ?
|
|
9170
|
+
const d = J(l), p = r.value ? ue(
|
|
9161
9171
|
() => [c.value, M1(s), d.value],
|
|
9162
9172
|
([w, M]) => {
|
|
9163
9173
|
if (u(), !d.value || !w.length)
|
|
@@ -9224,7 +9234,7 @@ const r4 = {
|
|
|
9224
9234
|
const t = a, s = J(!1), n = J(null);
|
|
9225
9235
|
l4(n, ([{ isIntersecting: r }]) => {
|
|
9226
9236
|
s.value = r;
|
|
9227
|
-
}),
|
|
9237
|
+
}), ue(s, (r) => {
|
|
9228
9238
|
r && t.hasMore && !t.isLoading && e("loadMore");
|
|
9229
9239
|
});
|
|
9230
9240
|
const o = (r) => {
|
|
@@ -9246,7 +9256,7 @@ const r4 = {
|
|
|
9246
9256
|
});
|
|
9247
9257
|
};
|
|
9248
9258
|
return (r, c) => (v(), h("div", r4, [
|
|
9249
|
-
r.title || r.$slots.header ?
|
|
9259
|
+
r.title || r.$slots.header ? te(r.$slots, "header", { key: 0 }, () => {
|
|
9250
9260
|
var u;
|
|
9251
9261
|
return [
|
|
9252
9262
|
f("div", u4, [
|
|
@@ -9259,7 +9269,7 @@ const r4 = {
|
|
|
9259
9269
|
])
|
|
9260
9270
|
];
|
|
9261
9271
|
}) : T("", !0),
|
|
9262
|
-
k(
|
|
9272
|
+
k(F(Xe), Ve({
|
|
9263
9273
|
class: "ao-list-kanban__list",
|
|
9264
9274
|
list: r.list,
|
|
9265
9275
|
"item-key": "id",
|
|
@@ -9290,7 +9300,7 @@ const r4 = {
|
|
|
9290
9300
|
onRemoveAssignee: () => i({ id: u.id, assigneeId: null })
|
|
9291
9301
|
}, {
|
|
9292
9302
|
secondary: R(() => [
|
|
9293
|
-
k(
|
|
9303
|
+
k(le, {
|
|
9294
9304
|
color: "primary",
|
|
9295
9305
|
variant: "ghost",
|
|
9296
9306
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -9320,8 +9330,8 @@ const r4 = {
|
|
|
9320
9330
|
_: 1
|
|
9321
9331
|
}, 16, ["list"]),
|
|
9322
9332
|
r.$slots.footer || r.footerLabel ? (v(), h("div", p4, [
|
|
9323
|
-
|
|
9324
|
-
k(
|
|
9333
|
+
te(r.$slots, "footer", {}, () => [
|
|
9334
|
+
k(Qe, {
|
|
9325
9335
|
"icon-name": "AddBoxOutlineRounded",
|
|
9326
9336
|
label: r.footerLabel,
|
|
9327
9337
|
onClick: c[0] || (c[0] = (u) => r.$emit("add"))
|
|
@@ -9353,14 +9363,14 @@ const m4 = { class: "ao-field ao-search-field" }, C4 = ["value", "placeholder",
|
|
|
9353
9363
|
class: "ao-field__input ao-search-field__input",
|
|
9354
9364
|
placeholder: i.placeholder,
|
|
9355
9365
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
9356
|
-
(...r) =>
|
|
9357
|
-
onKeypress:
|
|
9366
|
+
(...r) => F(n) && F(n)(...r)),
|
|
9367
|
+
onKeypress: Ye(s, ["enter"])
|
|
9358
9368
|
}, null, 40, C4),
|
|
9359
9369
|
k(de, {
|
|
9360
9370
|
name: "SearchRounded",
|
|
9361
9371
|
class: Q(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
9362
9372
|
}, null, 8, ["class"]),
|
|
9363
|
-
k(
|
|
9373
|
+
k(le, {
|
|
9364
9374
|
"icon-name": "CloseRounded",
|
|
9365
9375
|
size: "sm",
|
|
9366
9376
|
color: "primary",
|
|
@@ -9419,19 +9429,19 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9419
9429
|
const t = a, { t: s } = nt(), n = dt(t, "activities"), { selectActivity: o, selectedActivity: i } = b4(n), l = ($) => {
|
|
9420
9430
|
o($), e("selectActivity", $);
|
|
9421
9431
|
}, r = J({}), c = J(!1);
|
|
9422
|
-
|
|
9432
|
+
ue(
|
|
9423
9433
|
[() => t.statuses, () => t.activities],
|
|
9424
9434
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9425
|
-
async ([$,
|
|
9435
|
+
async ([$, Y], [he, W]) => {
|
|
9426
9436
|
r.value = Object.fromEntries(
|
|
9427
9437
|
$.map((Z) => [
|
|
9428
9438
|
Z.id,
|
|
9429
|
-
|
|
9439
|
+
Y.filter((E) => {
|
|
9430
9440
|
var U;
|
|
9431
9441
|
return ((U = E.status) == null ? void 0 : U.id) === Z.id;
|
|
9432
9442
|
})
|
|
9433
9443
|
])
|
|
9434
|
-
), c.value &&
|
|
9444
|
+
), c.value && je(Y, W);
|
|
9435
9445
|
},
|
|
9436
9446
|
{ immediate: !0 }
|
|
9437
9447
|
);
|
|
@@ -9440,22 +9450,22 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9440
9450
|
return !i.value || !i.value.milestone ? "" : `${(($ = i.value.milestone.phase) == null ? void 0 : $.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9441
9451
|
}), d = ($) => {
|
|
9442
9452
|
var E, U;
|
|
9443
|
-
const
|
|
9453
|
+
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), W = ((U = t.activities) == null ? void 0 : U.length) ?? 0, Z = {
|
|
9444
9454
|
name: s("activity.defaultName", { idx: W + 1 }),
|
|
9445
9455
|
rank: he.format(),
|
|
9446
9456
|
statusId: $.id
|
|
9447
9457
|
};
|
|
9448
9458
|
t.filters.assigneeId.length > 0 && (Z.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (Z.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (Z.typeId = t.filters.typeId[0]), c.value = !0, e("addActivity", Z);
|
|
9449
|
-
}, p = ($,
|
|
9450
|
-
c.value = !1, e("update:filters", { ...t.filters, [$]:
|
|
9459
|
+
}, p = ($, Y) => {
|
|
9460
|
+
c.value = !1, e("update:filters", { ...t.filters, [$]: Y });
|
|
9451
9461
|
}, C = t.project ? [t.project] : t.projects ?? [], w = b(() => C.map(($) => ({
|
|
9452
9462
|
value: $.id,
|
|
9453
9463
|
label: $.name
|
|
9454
9464
|
}))), M = b(() => {
|
|
9455
9465
|
var $;
|
|
9456
|
-
return ($ = t.activityTypes) == null ? void 0 : $.map((
|
|
9457
|
-
value:
|
|
9458
|
-
label:
|
|
9466
|
+
return ($ = t.activityTypes) == null ? void 0 : $.map((Y) => ({
|
|
9467
|
+
value: Y.id,
|
|
9468
|
+
label: Y.name
|
|
9459
9469
|
}));
|
|
9460
9470
|
}), S = b(() => t.users.map(($) => ({
|
|
9461
9471
|
value: $.id,
|
|
@@ -9477,17 +9487,17 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9477
9487
|
deadline: $
|
|
9478
9488
|
});
|
|
9479
9489
|
}
|
|
9480
|
-
}),
|
|
9490
|
+
}), x = ($) => {
|
|
9481
9491
|
c.value = !1, e("update:searchText", $);
|
|
9482
9492
|
}, D = ($) => {
|
|
9483
9493
|
c.value = !1, e("clear:searchText", $);
|
|
9484
9494
|
}, K = ($) => {
|
|
9485
9495
|
i.value && e("addSubtask", $);
|
|
9486
|
-
},
|
|
9496
|
+
}, ae = ($) => {
|
|
9487
9497
|
i.value && e("updateSubtask", $);
|
|
9488
9498
|
}, I = ($) => {
|
|
9489
9499
|
i.value && e("deleteSubtask", $);
|
|
9490
|
-
},
|
|
9500
|
+
}, ee = ($) => {
|
|
9491
9501
|
e("addFiles", $);
|
|
9492
9502
|
}, y = ($) => {
|
|
9493
9503
|
e("removeFile", $);
|
|
@@ -9497,17 +9507,17 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9497
9507
|
activityId: i.value.id
|
|
9498
9508
|
});
|
|
9499
9509
|
}, P = ($) => {
|
|
9500
|
-
const { id:
|
|
9501
|
-
|
|
9510
|
+
const { id: Y } = i.value || {};
|
|
9511
|
+
Y && e("updateComment", $);
|
|
9502
9512
|
}, ce = ($) => {
|
|
9503
|
-
const { id:
|
|
9504
|
-
|
|
9513
|
+
const { id: Y } = i.value || {};
|
|
9514
|
+
Y && e("removeComment", $);
|
|
9505
9515
|
}, ne = b(() => C.map(($) => ({
|
|
9506
9516
|
value: $.id,
|
|
9507
9517
|
label: $.name
|
|
9508
|
-
}))),
|
|
9509
|
-
var
|
|
9510
|
-
const $ = (W = (he = (
|
|
9518
|
+
}))), re = b(() => {
|
|
9519
|
+
var Y, he, W;
|
|
9520
|
+
const $ = (W = (he = (Y = i.value) == null ? void 0 : Y.project) == null ? void 0 : he.phases) == null ? void 0 : W.reduce((Z, E) => [...Z, ...E.milestones], []);
|
|
9511
9521
|
return $ == null ? void 0 : $.map((Z) => ({
|
|
9512
9522
|
value: Z.id,
|
|
9513
9523
|
label: Z.name
|
|
@@ -9524,66 +9534,66 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9524
9534
|
});
|
|
9525
9535
|
}, L = b(() => {
|
|
9526
9536
|
var $;
|
|
9527
|
-
return ($ = t.statuses) == null ? void 0 : $.map((
|
|
9528
|
-
value:
|
|
9529
|
-
label:
|
|
9537
|
+
return ($ = t.statuses) == null ? void 0 : $.map((Y) => ({
|
|
9538
|
+
value: Y.id,
|
|
9539
|
+
label: Y.name
|
|
9530
9540
|
}));
|
|
9531
|
-
}),
|
|
9541
|
+
}), q = ($) => {
|
|
9532
9542
|
i.value && e("update:activity", {
|
|
9533
9543
|
id: i.value.id,
|
|
9534
9544
|
statusId: $
|
|
9535
9545
|
});
|
|
9536
9546
|
};
|
|
9537
|
-
return ($,
|
|
9547
|
+
return ($, Y) => {
|
|
9538
9548
|
var he;
|
|
9539
9549
|
return v(), h("div", w4, [
|
|
9540
9550
|
k(r1, null, {
|
|
9541
9551
|
primary: R(() => [
|
|
9542
9552
|
f("div", $4, [
|
|
9543
|
-
k(
|
|
9544
|
-
|
|
9545
|
-
|
|
9546
|
-
|
|
9547
|
-
|
|
9548
|
-
}),
|
|
9553
|
+
k(le, {
|
|
9554
|
+
class: "ao-project-overview__add-template",
|
|
9555
|
+
color: "primary",
|
|
9556
|
+
label: $.$t("project.overview.switch"),
|
|
9557
|
+
onClose: Y[0] || (Y[0] = (W) => $.$router.push({ name: F(Re).project }))
|
|
9558
|
+
}, null, 8, ["label"]),
|
|
9549
9559
|
k(_4, {
|
|
9550
9560
|
"model-value": $.searchText,
|
|
9551
9561
|
placeholder: $.$t("feed.search.placeholder"),
|
|
9552
9562
|
class: "ao-feed__search",
|
|
9553
|
-
"onUpdate:modelValue":
|
|
9563
|
+
"onUpdate:modelValue": x,
|
|
9554
9564
|
onClear: D
|
|
9555
9565
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9556
|
-
|
|
9566
|
+
t.project ? T("", !0) : (v(), N(be, {
|
|
9557
9567
|
key: 0,
|
|
9558
|
-
"model-value": $.filters[
|
|
9568
|
+
"model-value": $.filters[F(ut).project],
|
|
9559
9569
|
mode: "tags",
|
|
9560
9570
|
options: w.value,
|
|
9561
9571
|
"close-on-select": !1,
|
|
9562
9572
|
searchable: !0,
|
|
9563
9573
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9564
9574
|
placeholder: $.$t("feed.filters.project.placeholder"),
|
|
9565
|
-
"onUpdate:modelValue":
|
|
9566
|
-
}, null, 8, ["model-value", "options", "placeholder"]))
|
|
9575
|
+
"onUpdate:modelValue": Y[1] || (Y[1] = (W) => p(F(ut).project, W))
|
|
9576
|
+
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9567
9577
|
M.value ? (v(), N(be, {
|
|
9568
9578
|
key: 1,
|
|
9569
|
-
"model-value": $.filters[
|
|
9579
|
+
"model-value": $.filters[F(ut).type],
|
|
9570
9580
|
mode: "tags",
|
|
9571
9581
|
options: M.value,
|
|
9572
9582
|
"close-on-select": !1,
|
|
9573
9583
|
searchable: !0,
|
|
9574
9584
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9575
9585
|
placeholder: $.$t("feed.filters.activityType.placeholder"),
|
|
9576
|
-
"onUpdate:modelValue":
|
|
9586
|
+
"onUpdate:modelValue": Y[2] || (Y[2] = (W) => p(F(ut).type, W))
|
|
9577
9587
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
9578
9588
|
k(be, {
|
|
9579
|
-
"model-value": $.filters[
|
|
9589
|
+
"model-value": $.filters[F(ut).assignee],
|
|
9580
9590
|
mode: "tags",
|
|
9581
9591
|
options: S.value,
|
|
9582
9592
|
"close-on-select": !1,
|
|
9583
9593
|
searchable: !0,
|
|
9584
9594
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9585
9595
|
placeholder: $.$t("feed.filters.assignee.placeholder"),
|
|
9586
|
-
"onUpdate:modelValue":
|
|
9596
|
+
"onUpdate:modelValue": Y[3] || (Y[3] = (W) => p(F(ut).assignee, W))
|
|
9587
9597
|
}, {
|
|
9588
9598
|
tag: R(({ option: W, handleTagRemove: Z }) => [
|
|
9589
9599
|
k(_t, {
|
|
@@ -9595,7 +9605,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9595
9605
|
_: 1
|
|
9596
9606
|
}, 8, ["model-value", "options", "placeholder"])
|
|
9597
9607
|
]),
|
|
9598
|
-
k(
|
|
9608
|
+
k(le, {
|
|
9599
9609
|
class: "ao-feed__show-archived",
|
|
9600
9610
|
size: "sm",
|
|
9601
9611
|
"icon-name": $.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
@@ -9605,7 +9615,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9605
9615
|
label: $.$t("feed.filters.showsArchivedActivities.label"),
|
|
9606
9616
|
role: "checkbox",
|
|
9607
9617
|
"aria-checked": $.showsArchivedActivities,
|
|
9608
|
-
onClick:
|
|
9618
|
+
onClick: Y[4] || (Y[4] = (W) => $.$emit("update:showsArchivedActivities", !$.showsArchivedActivities))
|
|
9609
9619
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9610
9620
|
]),
|
|
9611
9621
|
_: 1
|
|
@@ -9625,11 +9635,11 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9625
9635
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "onAdd"]))), 128))
|
|
9626
9636
|
]),
|
|
9627
9637
|
(v(), N(It, { to: "body" }, [
|
|
9628
|
-
|
|
9638
|
+
F(i) ? (v(), N(N1, {
|
|
9629
9639
|
key: 0,
|
|
9630
|
-
activity:
|
|
9640
|
+
activity: F(i),
|
|
9631
9641
|
"activity-types": M.value,
|
|
9632
|
-
"milestone-id": (he =
|
|
9642
|
+
"milestone-id": (he = F(i).milestone) == null ? void 0 : he.id,
|
|
9633
9643
|
"template-activities": n.value,
|
|
9634
9644
|
users: $.users,
|
|
9635
9645
|
"user-id": $.userId,
|
|
@@ -9637,12 +9647,12 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9637
9647
|
statuses: $.statuses,
|
|
9638
9648
|
breadcrumbs: u.value,
|
|
9639
9649
|
"is-editable": !0,
|
|
9640
|
-
onClose:
|
|
9650
|
+
onClose: Y[6] || (Y[6] = () => l(null)),
|
|
9641
9651
|
"onUpdate:activity": _,
|
|
9642
9652
|
onAddSubtask: K,
|
|
9643
|
-
onUpdateSubtask:
|
|
9653
|
+
onUpdateSubtask: ae,
|
|
9644
9654
|
onDeleteSubtask: I,
|
|
9645
|
-
onAddFiles:
|
|
9655
|
+
onAddFiles: ee,
|
|
9646
9656
|
onRemoveFile: y,
|
|
9647
9657
|
onAddComment: A,
|
|
9648
9658
|
onUpdateComment: P,
|
|
@@ -9656,16 +9666,16 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9656
9666
|
f("span", S4, z($.$t("activity.project.label")), 1),
|
|
9657
9667
|
k(be, {
|
|
9658
9668
|
options: ne.value,
|
|
9659
|
-
value: (W =
|
|
9669
|
+
value: (W = F(i).project) == null ? void 0 : W.id,
|
|
9660
9670
|
searchable: !0,
|
|
9661
9671
|
onChange: ie
|
|
9662
9672
|
}, null, 8, ["options", "value"])
|
|
9663
9673
|
])) : T("", !0),
|
|
9664
|
-
|
|
9674
|
+
re.value ? (v(), h("label", T4, [
|
|
9665
9675
|
f("span", E4, z($.$t("activity.milestone.label")), 1),
|
|
9666
9676
|
k(be, {
|
|
9667
|
-
options:
|
|
9668
|
-
value: (Z =
|
|
9677
|
+
options: re.value,
|
|
9678
|
+
value: (Z = F(i).milestone) == null ? void 0 : Z.id,
|
|
9669
9679
|
searchable: !0,
|
|
9670
9680
|
onChange: O
|
|
9671
9681
|
}, null, 8, ["options", "value"])
|
|
@@ -9674,10 +9684,10 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9674
9684
|
f("span", O4, z($.$t("activity.status.label")), 1),
|
|
9675
9685
|
k(be, {
|
|
9676
9686
|
options: L.value,
|
|
9677
|
-
value: (E =
|
|
9687
|
+
value: (E = F(i).status) == null ? void 0 : E.id,
|
|
9678
9688
|
"can-clear": !1,
|
|
9679
9689
|
"can-deselect": !1,
|
|
9680
|
-
onChange:
|
|
9690
|
+
onChange: q
|
|
9681
9691
|
}, null, 8, ["options", "value"])
|
|
9682
9692
|
])) : T("", !0)
|
|
9683
9693
|
])
|
|
@@ -9688,7 +9698,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9688
9698
|
f("label", V4, [
|
|
9689
9699
|
f("span", D4, z($.$t("activity.deadline.label")), 1),
|
|
9690
9700
|
ft(f("input", {
|
|
9691
|
-
"onUpdate:modelValue":
|
|
9701
|
+
"onUpdate:modelValue": Y[5] || (Y[5] = (W) => j.value = W),
|
|
9692
9702
|
class: "ao-field__input",
|
|
9693
9703
|
type: "date"
|
|
9694
9704
|
}, null, 512), [
|
|
@@ -9732,7 +9742,7 @@ const Tt = {
|
|
|
9732
9742
|
}
|
|
9733
9743
|
]
|
|
9734
9744
|
}
|
|
9735
|
-
],
|
|
9745
|
+
], Re = {
|
|
9736
9746
|
project: "AoProject",
|
|
9737
9747
|
feed: "AoProjectFeed",
|
|
9738
9748
|
milestone: "AoMilestone",
|
|
@@ -9744,19 +9754,19 @@ const Tt = {
|
|
|
9744
9754
|
children: [
|
|
9745
9755
|
{
|
|
9746
9756
|
path: "",
|
|
9747
|
-
name:
|
|
9757
|
+
name: Re.project,
|
|
9748
9758
|
component: k9,
|
|
9749
9759
|
props: !0,
|
|
9750
9760
|
children: [
|
|
9751
9761
|
{
|
|
9752
9762
|
path: ":phaseId/:milestoneId",
|
|
9753
|
-
name:
|
|
9763
|
+
name: Re.milestone,
|
|
9754
9764
|
component: la,
|
|
9755
9765
|
props: !0
|
|
9756
9766
|
},
|
|
9757
9767
|
{
|
|
9758
9768
|
path: ":phaseId/:milestoneId/:activityId",
|
|
9759
|
-
name:
|
|
9769
|
+
name: Re.activity,
|
|
9760
9770
|
props: { default: !0, modal: !0 },
|
|
9761
9771
|
components: {
|
|
9762
9772
|
default: la,
|
|
@@ -9767,7 +9777,7 @@ const Tt = {
|
|
|
9767
9777
|
},
|
|
9768
9778
|
{
|
|
9769
9779
|
path: "feed",
|
|
9770
|
-
name:
|
|
9780
|
+
name: Re.feed,
|
|
9771
9781
|
component: H4,
|
|
9772
9782
|
props: !0
|
|
9773
9783
|
}
|
|
@@ -9781,8 +9791,8 @@ const Tt = {
|
|
|
9781
9791
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
9782
9792
|
setup(a, { emit: e }) {
|
|
9783
9793
|
const t = a, { t: s } = nt();
|
|
9784
|
-
|
|
9785
|
-
|
|
9794
|
+
ue(() => t.templates, (l, r) => {
|
|
9795
|
+
je(l, r);
|
|
9786
9796
|
});
|
|
9787
9797
|
const n = () => {
|
|
9788
9798
|
var d, p;
|
|
@@ -9802,7 +9812,7 @@ const Tt = {
|
|
|
9802
9812
|
});
|
|
9803
9813
|
}, i = (l) => {
|
|
9804
9814
|
if (l.moved) {
|
|
9805
|
-
const r =
|
|
9815
|
+
const r = Nt(l, t.templates ?? []);
|
|
9806
9816
|
e("updateItem", {
|
|
9807
9817
|
itemType: pe.TEMPLATES,
|
|
9808
9818
|
id: l.moved.element.id,
|
|
@@ -9816,7 +9826,7 @@ const Tt = {
|
|
|
9816
9826
|
return (l, r) => (v(), h("div", P4, [
|
|
9817
9827
|
k(r1, null, {
|
|
9818
9828
|
secondary: R(() => [
|
|
9819
|
-
k(
|
|
9829
|
+
k(le, {
|
|
9820
9830
|
label: l.$t("templates.new"),
|
|
9821
9831
|
color: "primary",
|
|
9822
9832
|
"icon-name": "Add",
|
|
@@ -9826,7 +9836,7 @@ const Tt = {
|
|
|
9826
9836
|
]),
|
|
9827
9837
|
_: 1
|
|
9828
9838
|
}),
|
|
9829
|
-
k(
|
|
9839
|
+
k(F(Xe), {
|
|
9830
9840
|
"model-value": l.templates,
|
|
9831
9841
|
class: "ao-templates__list",
|
|
9832
9842
|
"item-key": "id",
|
|
@@ -9836,17 +9846,17 @@ const Tt = {
|
|
|
9836
9846
|
item: R(({ element: c }) => {
|
|
9837
9847
|
var u;
|
|
9838
9848
|
return [
|
|
9839
|
-
k(
|
|
9849
|
+
k(S3, {
|
|
9840
9850
|
id: c.id,
|
|
9841
9851
|
title: c.name,
|
|
9842
9852
|
phases: c.phases,
|
|
9843
|
-
milestones: (u = c.phases) != null && u.length ?
|
|
9844
|
-
activities: c.phases ?
|
|
9853
|
+
milestones: (u = c.phases) != null && u.length ? F(t3)(c.phases) : 0,
|
|
9854
|
+
activities: c.phases ? F(a3)(c.phases) : 0,
|
|
9845
9855
|
"updated-at": c.updatedAt,
|
|
9846
9856
|
"updated-by": c.updatedBy,
|
|
9847
9857
|
onUpdateTitle: (d) => o(c.id, d),
|
|
9848
9858
|
onClick: (d) => l.$router.push({
|
|
9849
|
-
name:
|
|
9859
|
+
name: F(Tt).TEMPLATE_DETAILS,
|
|
9850
9860
|
params: { templateId: c.id }
|
|
9851
9861
|
})
|
|
9852
9862
|
}, null, 8, ["id", "title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
@@ -9870,7 +9880,7 @@ export {
|
|
|
9870
9880
|
z4 as getTemplateRoutes,
|
|
9871
9881
|
W4 as listUpdateTypes,
|
|
9872
9882
|
k1 as milestoneStatus,
|
|
9873
|
-
|
|
9883
|
+
Re as projectOverviewRoutes,
|
|
9874
9884
|
vc as ruleComparators,
|
|
9875
9885
|
hc as ruleDurationUnits,
|
|
9876
9886
|
pc as ruleTriggerTypes,
|