@26lights/orcha 0.12.6 → 0.12.7
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 +251 -256
- package/dist/orcha.umd.js +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as 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
|
|
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 U, createTextVNode as e1, createVNode as k, normalizeStyle as ra, withModifiers as _e, createSlots as t1, Fragment as fe, renderList as ye, onMounted as Dt, 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
3
|
import Xe from "vuedraggable";
|
|
4
4
|
const Z4 = /* @__PURE__ */ G({
|
|
@@ -1275,8 +1275,8 @@ const me = /* @__PURE__ */ G({
|
|
|
1275
1275
|
}, un(c.value), {
|
|
1276
1276
|
onKeydown: Ye(F(d), ["esc"])
|
|
1277
1277
|
}), {
|
|
1278
|
-
default:
|
|
1279
|
-
|
|
1278
|
+
default: U(() => [
|
|
1279
|
+
e1(z(M.title), 1)
|
|
1280
1280
|
]),
|
|
1281
1281
|
_: 1
|
|
1282
1282
|
}, 16, ["id", "class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1323,7 +1323,7 @@ const sc = {
|
|
|
1323
1323
|
return (s, n) => (v(), N(tt(s.tagName), {
|
|
1324
1324
|
class: Q(["ao-card-horiz", { "ao-card-horiz--active": s.isActive }])
|
|
1325
1325
|
}, {
|
|
1326
|
-
default:
|
|
1326
|
+
default: U(() => [
|
|
1327
1327
|
s.isDraggable ? (v(), h("div", sc, [
|
|
1328
1328
|
k(de, {
|
|
1329
1329
|
name: "DragIndicator",
|
|
@@ -1397,8 +1397,8 @@ const E1 = /* @__PURE__ */ G({
|
|
|
1397
1397
|
(v(), N(tt(t.value), Ve({ class: "ao-tag__label" }, s.value, {
|
|
1398
1398
|
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
1399
1399
|
}), {
|
|
1400
|
-
default:
|
|
1401
|
-
|
|
1400
|
+
default: U(() => [
|
|
1401
|
+
e1(z(n.label), 1)
|
|
1402
1402
|
]),
|
|
1403
1403
|
_: 1
|
|
1404
1404
|
}, 16)),
|
|
@@ -1457,13 +1457,13 @@ const W4 = {
|
|
|
1457
1457
|
type: "typeId",
|
|
1458
1458
|
assignee: "assigneeId"
|
|
1459
1459
|
};
|
|
1460
|
-
function
|
|
1460
|
+
function Yt(a) {
|
|
1461
1461
|
"@babel/helpers - typeof";
|
|
1462
|
-
return
|
|
1462
|
+
return Yt = 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
|
+
}, Yt(a);
|
|
1467
1467
|
}
|
|
1468
1468
|
function xe(a) {
|
|
1469
1469
|
if (a === null || a === !0 || a === !1)
|
|
@@ -1478,7 +1478,7 @@ 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 || Yt(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);
|
|
@@ -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 || Yt(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")
|
|
@@ -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 xt(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,25 +1525,25 @@ 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 = xt(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 = xt(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 = xt(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 = xt(e).getTime() - Mc(e).getTime();
|
|
1544
1544
|
return Math.round(t / kc) + 1;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function Kt(a, e) {
|
|
1547
1547
|
var t, s, n, o, i, l, r, c;
|
|
1548
1548
|
ge(1, arguments);
|
|
1549
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);
|
|
@@ -1560,9 +1560,9 @@ function Ca(a, e) {
|
|
|
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 = Kt(w, e), S = /* @__PURE__ */ new Date(0);
|
|
1564
1564
|
S.setUTCFullYear(d, 0, C), S.setUTCHours(0, 0, 0, 0);
|
|
1565
|
-
var _ =
|
|
1565
|
+
var _ = Kt(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) {
|
|
@@ -1570,13 +1570,13 @@ function Sc(a, e) {
|
|
|
1570
1570
|
ge(1, arguments);
|
|
1571
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 = Kt(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 = Kt(t, e).getTime() - Sc(t, e).getTime();
|
|
1580
1580
|
return Math.round(s / Tc) + 1;
|
|
1581
1581
|
}
|
|
1582
1582
|
function oe(a, e) {
|
|
@@ -2685,12 +2685,12 @@ var $d = {
|
|
|
2685
2685
|
const Md = $d;
|
|
2686
2686
|
var kd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ad = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Sd = /^'([^]*?)'?$/, Td = /''/g, Ed = /[a-zA-Z]/;
|
|
2687
2687
|
function Id(a, e, t) {
|
|
2688
|
-
var s, n, o, i, l, r, c, u, d, p, C, w, M, S, _, g, V,
|
|
2688
|
+
var s, n, o, i, l, r, c, u, d, p, C, w, M, S, _, g, V, R;
|
|
2689
2689
|
ge(2, arguments);
|
|
2690
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
2691
|
if (!(ae >= 1 && ae <= 7))
|
|
2692
2692
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
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 || (
|
|
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 || (R = V.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && C !== void 0 ? C : 0);
|
|
2694
2694
|
if (!(I >= 0 && I <= 6))
|
|
2695
2695
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2696
2696
|
if (!K.localize)
|
|
@@ -2758,17 +2758,17 @@ function Ld(a, e) {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
return new Date(l + r + c);
|
|
2760
2760
|
}
|
|
2761
|
-
var
|
|
2761
|
+
var Ft = {
|
|
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(Ft.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], Ft.timeZoneDelimiter.test(e.date) && (e.date = a.split(Ft.timeZoneDelimiter)[0], s = a.substr(e.date.length, a.length))), s) {
|
|
2771
|
+
var n = Ft.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 = {}, Ht = {}, 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 Pt = {};
|
|
2861
|
+
Object.defineProperty(Pt, "__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
|
+
Pt.default = Kd;
|
|
2886
2886
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
2887
2887
|
Ct.LexoInteger = void 0;
|
|
2888
|
-
const
|
|
2888
|
+
const qt = s1, Gd = Pt;
|
|
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 qt.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 qt.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 qt.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 qt.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(Ht, "__esModule", { value: !0 });
|
|
3089
|
+
Ht.LexoDecimal = void 0;
|
|
3090
|
+
const At = Ct, Xd = Pt;
|
|
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
|
+
Ht.LexoDecimal = Me;
|
|
3195
|
+
var Wt = {}, ea;
|
|
3196
3196
|
function ba() {
|
|
3197
3197
|
if (ea)
|
|
3198
|
-
return
|
|
3199
|
-
ea = 1, Object.defineProperty(
|
|
3198
|
+
return Wt;
|
|
3199
|
+
ea = 1, Object.defineProperty(Wt, "__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 Wt.default = t, Wt;
|
|
3252
3252
|
}
|
|
3253
3253
|
var I1 = {}, wa = {};
|
|
3254
3254
|
Object.defineProperty(wa, "__esModule", { value: !0 });
|
|
@@ -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 = Ht, e = ba(), t = Pt, 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(Ht, 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) {
|
|
@@ -3591,7 +3591,7 @@ function a3(a) {
|
|
|
3591
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 Bt(a, e) {
|
|
3595
3595
|
if (a.moved)
|
|
3596
3596
|
return Ot(e, a.moved.oldIndex, a.moved.newIndex);
|
|
3597
3597
|
}
|
|
@@ -3686,8 +3686,8 @@ const r3 = { class: "ao-card-template__subitems" }, u3 = { class: "ao-card-templ
|
|
|
3686
3686
|
title: s.title,
|
|
3687
3687
|
"is-draggable": !0,
|
|
3688
3688
|
"onUpdate:title": t
|
|
3689
|
-
},
|
|
3690
|
-
subtitle:
|
|
3689
|
+
}, t1({
|
|
3690
|
+
subtitle: U(() => [
|
|
3691
3691
|
f("ul", r3, [
|
|
3692
3692
|
f("li", u3, [
|
|
3693
3693
|
k(de, {
|
|
@@ -3705,7 +3705,7 @@ const r3 = { class: "ao-card-template__subitems" }, u3 = { class: "ao-card-templ
|
|
|
3705
3705
|
])
|
|
3706
3706
|
])
|
|
3707
3707
|
]),
|
|
3708
|
-
default:
|
|
3708
|
+
default: U(() => [
|
|
3709
3709
|
f("div", v3, [
|
|
3710
3710
|
f("div", p3, [
|
|
3711
3711
|
f("div", h3, [
|
|
@@ -3730,7 +3730,7 @@ const r3 = { class: "ao-card-template__subitems" }, u3 = { class: "ao-card-templ
|
|
|
3730
3730
|
}, [
|
|
3731
3731
|
s.updatedBy || s.updatedAt ? {
|
|
3732
3732
|
name: "footer",
|
|
3733
|
-
fn:
|
|
3733
|
+
fn: U(() => [
|
|
3734
3734
|
f("div", _3, [
|
|
3735
3735
|
s.updatedAt ? (v(), h("div", g3, [
|
|
3736
3736
|
f("div", y3, [
|
|
@@ -3843,7 +3843,7 @@ const V3 = { class: "ao-card-template-item__footer" }, D3 = {
|
|
|
3843
3843
|
e("remove");
|
|
3844
3844
|
};
|
|
3845
3845
|
return (i, l) => (v(), N(fa, { "onUpdate:title": t }, {
|
|
3846
|
-
footer:
|
|
3846
|
+
footer: U(() => [
|
|
3847
3847
|
f("ul", V3, [
|
|
3848
3848
|
(v(), h(fe, null, ye(s, (r) => (v(), h(fe, { key: r }, [
|
|
3849
3849
|
i.$props[r] ? (v(), h("li", D3, [
|
|
@@ -3856,7 +3856,7 @@ const V3 = { class: "ao-card-template-item__footer" }, D3 = {
|
|
|
3856
3856
|
], 64))), 64))
|
|
3857
3857
|
])
|
|
3858
3858
|
]),
|
|
3859
|
-
secondary:
|
|
3859
|
+
secondary: U(() => [
|
|
3860
3860
|
f("div", P3, [
|
|
3861
3861
|
k(le, {
|
|
3862
3862
|
"icon-name": "DeleteOutlineRounded",
|
|
@@ -3889,7 +3889,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
3889
3889
|
activities: s.value,
|
|
3890
3890
|
milestones: t.value
|
|
3891
3891
|
}, n.$attrs), {
|
|
3892
|
-
default:
|
|
3892
|
+
default: U(() => [
|
|
3893
3893
|
te(n.$slots, "default")
|
|
3894
3894
|
]),
|
|
3895
3895
|
_: 3
|
|
@@ -3906,7 +3906,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
3906
3906
|
return ((s = e.activities) == null ? void 0 : s.length) || 0;
|
|
3907
3907
|
});
|
|
3908
3908
|
return (s, n) => (v(), N(O1, { activities: t.value }, {
|
|
3909
|
-
default:
|
|
3909
|
+
default: U(() => [
|
|
3910
3910
|
te(s.$slots, "default")
|
|
3911
3911
|
]),
|
|
3912
3912
|
_: 3
|
|
@@ -3929,7 +3929,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
3929
3929
|
e("updateMilestone", l);
|
|
3930
3930
|
}, i = (l) => {
|
|
3931
3931
|
if (l.moved) {
|
|
3932
|
-
const r =
|
|
3932
|
+
const r = Bt(l, t.phase.milestones);
|
|
3933
3933
|
e("updateMilestone", {
|
|
3934
3934
|
id: l.moved.element.id,
|
|
3935
3935
|
rank: r
|
|
@@ -3945,14 +3945,14 @@ const B3 = /* @__PURE__ */ G({
|
|
|
3945
3945
|
"item-key": "id",
|
|
3946
3946
|
onChange: i
|
|
3947
3947
|
}, {
|
|
3948
|
-
header:
|
|
3948
|
+
header: U(() => [
|
|
3949
3949
|
k(me, {
|
|
3950
3950
|
title: "Milestones",
|
|
3951
3951
|
level: 3,
|
|
3952
3952
|
class: "ao-list__title"
|
|
3953
3953
|
})
|
|
3954
3954
|
]),
|
|
3955
|
-
item:
|
|
3955
|
+
item: U(({ element: c }) => [
|
|
3956
3956
|
(v(), N(N3, {
|
|
3957
3957
|
id: c.id,
|
|
3958
3958
|
key: c.id,
|
|
@@ -3969,7 +3969,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
3969
3969
|
onRemove: () => n(c.id)
|
|
3970
3970
|
}, null, 8, ["id", "title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3971
3971
|
]),
|
|
3972
|
-
footer:
|
|
3972
|
+
footer: U(() => [
|
|
3973
3973
|
f("div", R3, [
|
|
3974
3974
|
k(Qe, {
|
|
3975
3975
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -3993,7 +3993,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
3993
3993
|
return ((s = e.tasks) == null ? void 0 : s.length) || 0;
|
|
3994
3994
|
});
|
|
3995
3995
|
return (s, n) => (v(), N(O1, { tasks: t.value }, {
|
|
3996
|
-
default:
|
|
3996
|
+
default: U(() => [
|
|
3997
3997
|
te(s.$slots, "default")
|
|
3998
3998
|
]),
|
|
3999
3999
|
_: 3
|
|
@@ -4019,7 +4019,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
4019
4019
|
e("removeActivity", { id: l });
|
|
4020
4020
|
}, i = (l) => {
|
|
4021
4021
|
if (l.moved) {
|
|
4022
|
-
const r =
|
|
4022
|
+
const r = Bt(l, t.milestone.activities);
|
|
4023
4023
|
e("updateActivity", {
|
|
4024
4024
|
id: l.moved.element.id,
|
|
4025
4025
|
rank: r
|
|
@@ -4035,14 +4035,14 @@ const B3 = /* @__PURE__ */ G({
|
|
|
4035
4035
|
"item-key": "id",
|
|
4036
4036
|
onChange: i
|
|
4037
4037
|
}, {
|
|
4038
|
-
header:
|
|
4038
|
+
header: U(() => [
|
|
4039
4039
|
k(me, {
|
|
4040
4040
|
title: "Activities",
|
|
4041
4041
|
level: 3,
|
|
4042
4042
|
class: "ao-list__title"
|
|
4043
4043
|
})
|
|
4044
4044
|
]),
|
|
4045
|
-
item:
|
|
4045
|
+
item: U(({ element: c }) => [
|
|
4046
4046
|
(v(), N(U3, {
|
|
4047
4047
|
id: c.id,
|
|
4048
4048
|
key: c.id,
|
|
@@ -4055,7 +4055,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
4055
4055
|
onRemove: () => o(c.id)
|
|
4056
4056
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4057
4057
|
]),
|
|
4058
|
-
footer:
|
|
4058
|
+
footer: U(() => [
|
|
4059
4059
|
f("div", Z3, [
|
|
4060
4060
|
k(Qe, {
|
|
4061
4061
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -4111,7 +4111,7 @@ const B3 = /* @__PURE__ */ G({
|
|
|
4111
4111
|
], 2));
|
|
4112
4112
|
}
|
|
4113
4113
|
});
|
|
4114
|
-
const Lt = Math.min, ke = Math.max,
|
|
4114
|
+
const Lt = Math.min, ke = Math.max, Gt = Math.round, zt = Math.floor, Ke = (a) => ({
|
|
4115
4115
|
x: a,
|
|
4116
4116
|
y: a
|
|
4117
4117
|
}), G3 = {
|
|
@@ -4148,10 +4148,10 @@ 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 = Xt(i)), [i, Xt(i)];
|
|
4152
4152
|
}
|
|
4153
4153
|
function e0(a) {
|
|
4154
|
-
const e =
|
|
4154
|
+
const e = Xt(a);
|
|
4155
4155
|
return [S1(a), e, S1(e)];
|
|
4156
4156
|
}
|
|
4157
4157
|
function S1(a) {
|
|
@@ -4175,7 +4175,7 @@ function a0(a, e, t, s) {
|
|
|
4175
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
|
|
4178
|
+
function Xt(a) {
|
|
4179
4179
|
return a.replace(/left|right|bottom|top/g, (e) => G3[e]);
|
|
4180
4180
|
}
|
|
4181
4181
|
function n0(a) {
|
|
@@ -4195,7 +4195,7 @@ function s0(a) {
|
|
|
4195
4195
|
left: a
|
|
4196
4196
|
};
|
|
4197
4197
|
}
|
|
4198
|
-
function
|
|
4198
|
+
function Qt(a) {
|
|
4199
4199
|
return {
|
|
4200
4200
|
...a,
|
|
4201
4201
|
top: a.y,
|
|
@@ -4274,7 +4274,7 @@ const i0 = async (a, e, t) => {
|
|
|
4274
4274
|
} = l[M], {
|
|
4275
4275
|
x: g,
|
|
4276
4276
|
y: V,
|
|
4277
|
-
data:
|
|
4277
|
+
data: R,
|
|
4278
4278
|
reset: x
|
|
4279
4279
|
} = await _({
|
|
4280
4280
|
x: u,
|
|
@@ -4294,7 +4294,7 @@ const i0 = async (a, e, t) => {
|
|
|
4294
4294
|
...C,
|
|
4295
4295
|
[S]: {
|
|
4296
4296
|
...C[S],
|
|
4297
|
-
...
|
|
4297
|
+
...R
|
|
4298
4298
|
}
|
|
4299
4299
|
}, x && w <= 50) {
|
|
4300
4300
|
w++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (c = x.rects === !0 ? await i.getElementRects({
|
|
@@ -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 = s0(C), S = l[p ? d === "floating" ? "reference" : "floating" : d], _ =
|
|
4335
|
+
} = V1(e, a), w = s0(C), S = l[p ? d === "floating" ? "reference" : "floating" : d], _ = Qt(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,
|
|
@@ -4341,22 +4341,22 @@ async function Ta(a, e) {
|
|
|
4341
4341
|
...i.floating,
|
|
4342
4342
|
x: s,
|
|
4343
4343
|
y: n
|
|
4344
|
-
} : i.reference, V = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)),
|
|
4344
|
+
} : i.reference, V = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), R = await (o.isElement == null ? void 0 : o.isElement(V)) ? await (o.getScale == null ? void 0 : o.getScale(V)) || {
|
|
4345
4345
|
x: 1,
|
|
4346
4346
|
y: 1
|
|
4347
4347
|
} : {
|
|
4348
4348
|
x: 1,
|
|
4349
4349
|
y: 1
|
|
4350
|
-
}, x =
|
|
4350
|
+
}, x = Qt(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 - x.top + w.top) /
|
|
4357
|
-
bottom: (x.bottom - _.bottom + w.bottom) /
|
|
4358
|
-
left: (_.left - x.left + w.left) /
|
|
4359
|
-
right: (x.right - _.right + w.right) /
|
|
4356
|
+
top: (_.top - x.top + w.top) / R.y,
|
|
4357
|
+
bottom: (x.bottom - _.bottom + w.bottom) / R.y,
|
|
4358
|
+
left: (_.left - x.left + w.left) / R.x,
|
|
4359
|
+
right: (x.right - _.right + w.right) / R.x
|
|
4360
4360
|
};
|
|
4361
4361
|
}
|
|
4362
4362
|
const o0 = function(a) {
|
|
@@ -4383,9 +4383,9 @@ const o0 = 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)),
|
|
4387
|
-
!p && w !== "none" &&
|
|
4388
|
-
const x = [l, ...
|
|
4386
|
+
const _ = ht(n), g = ht(l) === l, V = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), R = p || (g || !M ? [Xt(l)] : e0(l));
|
|
4387
|
+
!p && w !== "none" && R.push(...a0(l, M, w, V));
|
|
4388
|
+
const x = [l, ...R], D = await Ta(e, S), K = [];
|
|
4389
4389
|
let ae = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4390
4390
|
if (u && K.push(D[_]), d) {
|
|
4391
4391
|
const A = J3(n, i, V);
|
|
@@ -4451,21 +4451,21 @@ const o0 = function(a) {
|
|
|
4451
4451
|
let w, M;
|
|
4452
4452
|
c === "top" || c === "bottom" ? (w = c, M = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (M = c, w = u === "end" ? "top" : "bottom");
|
|
4453
4453
|
const S = C - r[w], _ = p - r[M], g = !e.middlewareData.shift;
|
|
4454
|
-
let V = S,
|
|
4454
|
+
let V = S, R = _;
|
|
4455
4455
|
if (d) {
|
|
4456
4456
|
const D = p - r.left - r.right;
|
|
4457
|
-
|
|
4457
|
+
R = u || g ? Lt(_, D) : D;
|
|
4458
4458
|
} else {
|
|
4459
4459
|
const D = C - r.top - r.bottom;
|
|
4460
4460
|
V = u || g ? Lt(S, D) : D;
|
|
4461
4461
|
}
|
|
4462
4462
|
if (g && !u) {
|
|
4463
4463
|
const D = ke(r.left, 0), K = ke(r.right, 0), ae = ke(r.top, 0), I = ke(r.bottom, 0);
|
|
4464
|
-
d ?
|
|
4464
|
+
d ? R = 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
|
-
availableWidth:
|
|
4468
|
+
availableWidth: R,
|
|
4469
4469
|
availableHeight: V
|
|
4470
4470
|
});
|
|
4471
4471
|
const x = await n.getDimensions(o.floating);
|
|
@@ -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 Nt(a) {
|
|
4504
4504
|
const {
|
|
4505
4505
|
overflow: e,
|
|
4506
4506
|
overflowX: t,
|
|
@@ -4557,18 +4557,18 @@ function mt(a) {
|
|
|
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) && Nt(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 || [], Nt(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 = Gt(t) !== o || Gt(s) !== i;
|
|
4572
4572
|
return l && (t = o, s = i), {
|
|
4573
4573
|
width: t,
|
|
4574
4574
|
height: s,
|
|
@@ -4587,7 +4587,7 @@ function vt(a) {
|
|
|
4587
4587
|
height: n,
|
|
4588
4588
|
$: o
|
|
4589
4589
|
} = Oa(e);
|
|
4590
|
-
let i = (o ?
|
|
4590
|
+
let i = (o ? Gt(t.width) : t.width) / s, l = (o ? Gt(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
|
|
@@ -4619,7 +4619,7 @@ function et(a, e, t, s) {
|
|
|
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 Qt({
|
|
4623
4623
|
width: u,
|
|
4624
4624
|
height: d,
|
|
4625
4625
|
x: r,
|
|
@@ -4640,7 +4640,7 @@ function f0(a) {
|
|
|
4640
4640
|
scrollTop: 0
|
|
4641
4641
|
}, l = Ke(1);
|
|
4642
4642
|
const r = Ke(0);
|
|
4643
|
-
if ((n || !n && s !== "fixed") && ((Ge(t) !== "body" ||
|
|
4643
|
+
if ((n || !n && s !== "fixed") && ((Ge(t) !== "body" || Nt(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
|
}
|
|
@@ -4708,7 +4708,7 @@ function sa(a, e, t) {
|
|
|
4708
4708
|
y: e.y - n.y
|
|
4709
4709
|
};
|
|
4710
4710
|
}
|
|
4711
|
-
return
|
|
4711
|
+
return Qt(s);
|
|
4712
4712
|
}
|
|
4713
4713
|
function Da(a, e) {
|
|
4714
4714
|
const t = mt(a);
|
|
@@ -4723,7 +4723,7 @@ function C0(a, e) {
|
|
|
4723
4723
|
let i = o ? mt(a) : a;
|
|
4724
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) || Nt(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
|
}
|
|
@@ -4756,7 +4756,7 @@ function y0(a, e, t) {
|
|
|
4756
4756
|
};
|
|
4757
4757
|
const r = Ke(0);
|
|
4758
4758
|
if (s || !s && !o)
|
|
4759
|
-
if ((Ge(e) !== "body" ||
|
|
4759
|
+
if ((Ge(e) !== "body" || Nt(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
|
|
@@ -4827,12 +4827,12 @@ function M0(a, e) {
|
|
|
4827
4827
|
} = a.getBoundingClientRect();
|
|
4828
4828
|
if (l || e(), !d || !p)
|
|
4829
4829
|
return;
|
|
4830
|
-
const C =
|
|
4830
|
+
const C = zt(u), w = zt(n.clientWidth - (c + d)), M = zt(n.clientHeight - (u + p)), S = zt(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
|
|
4835
|
+
function R(x) {
|
|
4836
4836
|
const D = x[0].intersectionRatio;
|
|
4837
4837
|
if (D !== r) {
|
|
4838
4838
|
if (!V)
|
|
@@ -4844,13 +4844,13 @@ function M0(a, e) {
|
|
|
4844
4844
|
V = !1;
|
|
4845
4845
|
}
|
|
4846
4846
|
try {
|
|
4847
|
-
t = new IntersectionObserver(
|
|
4847
|
+
t = new IntersectionObserver(R, {
|
|
4848
4848
|
...g,
|
|
4849
4849
|
// Handle <iframe>s
|
|
4850
4850
|
root: n.ownerDocument
|
|
4851
4851
|
});
|
|
4852
4852
|
} catch {
|
|
4853
|
-
t = new IntersectionObserver(
|
|
4853
|
+
t = new IntersectionObserver(R, g);
|
|
4854
4854
|
}
|
|
4855
4855
|
t.observe(a);
|
|
4856
4856
|
}
|
|
@@ -4960,7 +4960,7 @@ const A0 = (a, e, t) => {
|
|
|
4960
4960
|
});
|
|
4961
4961
|
});
|
|
4962
4962
|
}
|
|
4963
|
-
|
|
4963
|
+
Dt(() => {
|
|
4964
4964
|
c();
|
|
4965
4965
|
}), cn(() => {
|
|
4966
4966
|
l.value();
|
|
@@ -5064,7 +5064,7 @@ function D0(a, e, t) {
|
|
|
5064
5064
|
resolveOnLoad: _,
|
|
5065
5065
|
minChars: g,
|
|
5066
5066
|
filterResults: V,
|
|
5067
|
-
clearOnSearch:
|
|
5067
|
+
clearOnSearch: R,
|
|
5068
5068
|
clearOnSelect: x,
|
|
5069
5069
|
valueProp: D,
|
|
5070
5070
|
allowAbsent: K,
|
|
@@ -5084,9 +5084,9 @@ function D0(a, e, t) {
|
|
|
5084
5084
|
disabledProp: $,
|
|
5085
5085
|
searchStart: Y,
|
|
5086
5086
|
searchFilter: he
|
|
5087
|
-
} = $e(a), W = at().proxy, Z = t.iv, E = t.ev,
|
|
5087
|
+
} = $e(a), W = at().proxy, Z = t.iv, E = t.ev, j = 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 = Rt.value || /* istanbul ignore next */
|
|
5090
5090
|
[], H = [];
|
|
5091
5091
|
return m.forEach((se) => {
|
|
5092
5092
|
g1(se[ie.value]).forEach((ve) => {
|
|
@@ -5104,7 +5104,7 @@ function D0(a, e, t) {
|
|
|
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
|
+
}), Rt = b(() => {
|
|
5108
5108
|
if (!ce.value)
|
|
5109
5109
|
return [];
|
|
5110
5110
|
let m = [], H = Fe.value || /* istanbul ignore next */
|
|
@@ -5115,7 +5115,7 @@ function D0(a, e, t) {
|
|
|
5115
5115
|
__CREATE__: !0
|
|
5116
5116
|
}), m.concat(H);
|
|
5117
5117
|
}), Za = b(() => {
|
|
5118
|
-
let m = [...
|
|
5118
|
+
let m = [...Rt.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],
|
|
@@ -5144,10 +5144,10 @@ function D0(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(() => !qe.value.length && !Ie.value && !ot.value.length), Wa = b(() => qe.value.length > 0 && yt.value.length == 0 && (
|
|
5148
|
-
[D.value]:
|
|
5149
|
-
[Oe.value]:
|
|
5150
|
-
[u.value]:
|
|
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 && (j.value && ce.value || !ce.value)), ot = b(() => U1.value === !1 || !j.value ? [] : en(j.value) !== -1 ? [] : [{
|
|
5148
|
+
[D.value]: j.value,
|
|
5149
|
+
[Oe.value]: j.value,
|
|
5150
|
+
[u.value]: j.value,
|
|
5151
5151
|
__CREATE__: !0
|
|
5152
5152
|
}]), Oe = b(() => o.value || u.value), za = b(() => {
|
|
5153
5153
|
switch (n.value) {
|
|
@@ -5263,14 +5263,14 @@ function D0(a, e, t) {
|
|
|
5263
5263
|
), tn = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), an = (m) => {
|
|
5264
5264
|
gt.value.push(m);
|
|
5265
5265
|
}, nn = (m) => O.value ? m.filter(
|
|
5266
|
-
(H) =>
|
|
5267
|
-
) : m.filter((H) =>
|
|
5266
|
+
(H) => j.value ? H.__VISIBLE__.length : H[ie.value].length
|
|
5267
|
+
) : m.filter((H) => j.value ? H.__VISIBLE__.length : !0), _1 = (m, H = !0) => {
|
|
5268
5268
|
let se = m;
|
|
5269
|
-
if (
|
|
5269
|
+
if (j.value && V.value) {
|
|
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 Y.value ? K1.startsWith($1(
|
|
5273
|
+
return Y.value ? K1.startsWith($1(j.value, y.value)) : K1.indexOf($1(j.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;
|
|
@@ -5280,10 +5280,10 @@ function D0(a, e, t) {
|
|
|
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
|
-
},
|
|
5286
|
-
s.value(
|
|
5283
|
+
}, jt = () => {
|
|
5284
|
+
Le(E.value) || (Z.value = Zt(E.value));
|
|
5285
|
+
}, Ut = (m) => (Ie.value = !0, new Promise((H, se) => {
|
|
5286
|
+
s.value(j.value, W).then((ve) => {
|
|
5287
5287
|
Fe.value = ve || [], typeof m == "function" && m(ve), Ie.value = !1;
|
|
5288
5288
|
}).catch((ve) => {
|
|
5289
5289
|
console.error(ve), Fe.value = [], Ie.value = !1;
|
|
@@ -5307,8 +5307,8 @@ function D0(a, e, t) {
|
|
|
5307
5307
|
}
|
|
5308
5308
|
});
|
|
5309
5309
|
}, sn = (m) => {
|
|
5310
|
-
|
|
5311
|
-
},
|
|
5310
|
+
Ut(m);
|
|
5311
|
+
}, Zt = (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 D0(a, e, t) {
|
|
|
5317
5317
|
[D.value]: H,
|
|
5318
5318
|
[Oe.value]: H
|
|
5319
5319
|
}), x1 = () => {
|
|
5320
|
-
f1.value = ue(
|
|
5321
|
-
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0,
|
|
5322
|
-
m ==
|
|
5323
|
-
(m ==
|
|
5320
|
+
f1.value = ue(j, (m) => {
|
|
5321
|
+
m.length < g.value || !m && g.value !== 0 || (Ie.value = !0, R.value && (Fe.value = []), setTimeout(() => {
|
|
5322
|
+
m == j.value && s.value(j.value, W).then((H) => {
|
|
5323
|
+
(m == j.value || !j.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,24 +5332,24 @@ function D0(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 ? Ut(jt) : w.value == !0 && jt() : (Fe.value = s.value, jt()), 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(Zt(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(Zt(m), !1);
|
|
5345
5345
|
break;
|
|
5346
5346
|
case "multiple":
|
|
5347
5347
|
case "tags":
|
|
5348
|
-
V0(w.value ? m.map((H) => H[D.value]) : m, Z.value.map((H) => H[D.value])) || Pe(
|
|
5348
|
+
V0(w.value ? m.map((H) => H[D.value]) : m, Z.value.map((H) => H[D.value])) || Pe(Zt(m), !1);
|
|
5349
5349
|
break;
|
|
5350
5350
|
}
|
|
5351
5351
|
}, { deep: !0 }), ue(s, (m, H) => {
|
|
5352
|
-
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) &&
|
|
5352
|
+
typeof a.options == "function" ? _.value && (!H || m && m.toString() !== H.toString()) && Ut() : (Fe.value = a.options, Object.keys(Z.value).length || jt(), y1());
|
|
5353
5353
|
}), ue(u, y1), {
|
|
5354
5354
|
pfo: Z1,
|
|
5355
5355
|
fo: yt,
|
|
@@ -5358,8 +5358,8 @@ function D0(a, e, t) {
|
|
|
5358
5358
|
multipleLabelText: Fa,
|
|
5359
5359
|
eo: qe,
|
|
5360
5360
|
extendedOptions: qe,
|
|
5361
|
-
eg:
|
|
5362
|
-
extendedGroups:
|
|
5361
|
+
eg: Rt,
|
|
5362
|
+
extendedGroups: Rt,
|
|
5363
5363
|
fg: F1,
|
|
5364
5364
|
filteredGroups: F1,
|
|
5365
5365
|
noOptions: qa,
|
|
@@ -5380,7 +5380,7 @@ function D0(a, e, t) {
|
|
|
5380
5380
|
handleGroupClick: Ga,
|
|
5381
5381
|
handleTagRemove: xa,
|
|
5382
5382
|
refreshOptions: sn,
|
|
5383
|
-
resolveOptions:
|
|
5383
|
+
resolveOptions: Ut,
|
|
5384
5384
|
refreshLabels: y1
|
|
5385
5385
|
};
|
|
5386
5386
|
}
|
|
@@ -5395,22 +5395,22 @@ function H0(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,
|
|
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, R = 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)
|
|
5402
|
-
),
|
|
5403
|
-
let Ce = K.value[
|
|
5402
|
+
), j = K.value.map((Pe) => Pe[i.value]).indexOf(E[i.value]);
|
|
5403
|
+
let Ce = K.value[j - 1];
|
|
5404
5404
|
return Ce === void 0 && (Ce = P.value), Ce;
|
|
5405
5405
|
}), A = b(() => {
|
|
5406
|
-
let E = K.value.map((
|
|
5406
|
+
let E = K.value.map((j) => j.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 = ee.value.__VISIBLE__.filter((
|
|
5410
|
-
return E[E.map((
|
|
5409
|
+
const E = ee.value.__VISIBLE__.filter((j) => !j[u.value]);
|
|
5410
|
+
return E[E.map((j) => j[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5411
5411
|
}), re = b(() => {
|
|
5412
|
-
const E = W(_.value).__VISIBLE__.filter((
|
|
5413
|
-
return E[E.map((
|
|
5412
|
+
const E = W(_.value).__VISIBLE__.filter((j) => !j[u.value]);
|
|
5413
|
+
return E[E.map((j) => j[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5414
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
|
}, $ = () => {
|
|
@@ -5423,7 +5423,7 @@ function H0(a, e, t) {
|
|
|
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 {
|
|
5426
|
-
let E = D.value.map((
|
|
5426
|
+
let E = D.value.map((j) => j[s.value]).indexOf(_.value[s.value]) + 1;
|
|
5427
5427
|
D.value.length <= E && (E = 0), g(D.value[E] || null);
|
|
5428
5428
|
}
|
|
5429
5429
|
Ee(() => {
|
|
@@ -5438,29 +5438,29 @@ function H0(a, e, t) {
|
|
|
5438
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
|
-
let E = D.value.map((
|
|
5441
|
+
let E = D.value.map((j) => j[s.value]).indexOf(_.value[s.value]) - 1;
|
|
5442
5442
|
E < 0 && (E = D.value.length - 1), g(D.value[E] || null);
|
|
5443
5443
|
}
|
|
5444
5444
|
Ee(() => {
|
|
5445
5445
|
Z();
|
|
5446
5446
|
});
|
|
5447
|
-
}, W = (E) => K.value.find((
|
|
5448
|
-
let E =
|
|
5447
|
+
}, W = (E) => K.value.find((j) => j.__VISIBLE__.map((Ce) => Ce[s.value]).indexOf(E[s.value]) !== -1), Z = () => {
|
|
5448
|
+
let E = R.value.querySelector("[data-pointed]");
|
|
5449
5449
|
if (!E)
|
|
5450
5450
|
return;
|
|
5451
|
-
let
|
|
5452
|
-
l.value && (
|
|
5451
|
+
let j = E.parentElement.parentElement;
|
|
5452
|
+
l.value && (j = I.value ? E.parentElement.parentElement.parentElement : E.parentElement.parentElement.parentElement.parentElement), E.offsetTop + E.offsetHeight > j.clientHeight + j.scrollTop && (j.scrollTop = E.offsetTop + E.offsetHeight - j.clientHeight), E.offsetTop < j.scrollTop && (j.scrollTop = E.offsetTop);
|
|
5453
5453
|
};
|
|
5454
5454
|
return ue(S, (E) => {
|
|
5455
5455
|
o.value && (E.length && n.value ? q() : V());
|
|
5456
5456
|
}), ue(x, (E) => {
|
|
5457
5457
|
if (E) {
|
|
5458
|
-
let
|
|
5459
|
-
if (!
|
|
5458
|
+
let j = R.value.querySelectorAll("[data-selected]")[0];
|
|
5459
|
+
if (!j)
|
|
5460
5460
|
return;
|
|
5461
|
-
let Ce =
|
|
5461
|
+
let Ce = j.parentElement.parentElement;
|
|
5462
5462
|
Ee(() => {
|
|
5463
|
-
Ce.scrollTop > 0 || (Ce.scrollTop =
|
|
5463
|
+
Ce.scrollTop > 0 || (Ce.scrollTop = j.offsetTop);
|
|
5464
5464
|
});
|
|
5465
5465
|
}
|
|
5466
5466
|
}), {
|
|
@@ -5492,7 +5492,7 @@ function B0(a, e, t) {
|
|
|
5492
5492
|
s.value && !n.value && i.value.focus();
|
|
5493
5493
|
}, V = (I = !0) => {
|
|
5494
5494
|
n.value || (w.value = !0, I && l());
|
|
5495
|
-
},
|
|
5495
|
+
}, R = () => {
|
|
5496
5496
|
w.value = !1, setTimeout(() => {
|
|
5497
5497
|
w.value || (r(), o.value && c());
|
|
5498
5498
|
}, 1);
|
|
@@ -5507,19 +5507,19 @@ function B0(a, e, t) {
|
|
|
5507
5507
|
blur: _,
|
|
5508
5508
|
focus: g,
|
|
5509
5509
|
activate: V,
|
|
5510
|
-
deactivate:
|
|
5510
|
+
deactivate: R,
|
|
5511
5511
|
handleFocusIn: (I) => {
|
|
5512
5512
|
I.target.closest("[data-tags]") && I.target.nodeName !== "INPUT" || I.target.closest("[data-clear]") || V(M.value);
|
|
5513
5513
|
},
|
|
5514
5514
|
handleFocusOut: () => {
|
|
5515
|
-
|
|
5515
|
+
R();
|
|
5516
5516
|
},
|
|
5517
5517
|
handleCaretClick: () => {
|
|
5518
|
-
|
|
5518
|
+
R(), _();
|
|
5519
5519
|
},
|
|
5520
5520
|
handleMousedown: (I) => {
|
|
5521
5521
|
M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(C.value)) ? setTimeout(() => {
|
|
5522
|
-
|
|
5522
|
+
R();
|
|
5523
5523
|
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value && V(), setTimeout(() => {
|
|
5524
5524
|
M.value = !1;
|
|
5525
5525
|
}, 0);
|
|
@@ -5539,7 +5539,7 @@ function N0(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,
|
|
5542
|
+
} = $e(a), w = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, V = t.selectPointer, R = 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
5544
|
}, re = (L) => {
|
|
5545
5545
|
let q = L.length - 1;
|
|
@@ -5592,7 +5592,7 @@ function N0(a, e, t) {
|
|
|
5592
5592
|
case "ArrowUp":
|
|
5593
5593
|
if (L.preventDefault(), !l.value)
|
|
5594
5594
|
return;
|
|
5595
|
-
I.value || ee(),
|
|
5595
|
+
I.value || ee(), R();
|
|
5596
5596
|
break;
|
|
5597
5597
|
case "ArrowDown":
|
|
5598
5598
|
if (L.preventDefault(), !l.value)
|
|
@@ -5707,13 +5707,13 @@ function R0(a, e, t) {
|
|
|
5707
5707
|
options: [g.options].concat(o.value === "top" ? g.optionsTop : []),
|
|
5708
5708
|
group: g.group,
|
|
5709
5709
|
groupLabel: (V) => {
|
|
5710
|
-
let
|
|
5711
|
-
return r(V) ?
|
|
5710
|
+
let R = [g.groupLabel];
|
|
5711
|
+
return r(V) ? R.push(c(V) ? g.groupLabelSelectedPointed : g.groupLabelPointed) : c(V) && p.value ? R.push(u(V) ? g.groupLabelSelectedDisabled : g.groupLabelSelected) : u(V) && R.push(g.groupLabelDisabled), p.value && R.push(g.groupLabelPointable), R;
|
|
5712
5712
|
},
|
|
5713
5713
|
groupOptions: g.groupOptions,
|
|
5714
|
-
option: (V,
|
|
5714
|
+
option: (V, R) => {
|
|
5715
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) ||
|
|
5716
|
+
return r(V) ? x.push(c(V) ? g.optionSelectedPointed : g.optionPointed) : c(V) ? x.push(u(V) ? g.optionSelectedDisabled : g.optionSelected) : (u(V) || R && u(R)) && x.push(g.optionDisabled), x;
|
|
5717
5717
|
},
|
|
5718
5718
|
noOptions: g.noOptions,
|
|
5719
5719
|
noResults: g.noResults,
|
|
@@ -5745,7 +5745,7 @@ function j0(a, e, t) {
|
|
|
5745
5745
|
n.value && (i.value = s.value, w());
|
|
5746
5746
|
}, { flush: "post" }), ue(c, () => {
|
|
5747
5747
|
n.value && w();
|
|
5748
|
-
}, { immediate: !1, flush: "post" }),
|
|
5748
|
+
}, { immediate: !1, flush: "post" }), Dt(() => {
|
|
5749
5749
|
window && window.IntersectionObserver && (u.value = new IntersectionObserver(C));
|
|
5750
5750
|
}), {
|
|
5751
5751
|
hasMore: p,
|
|
@@ -5772,7 +5772,7 @@ function U0(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),
|
|
5775
|
+
}), V = b(() => s.value), R = 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(() => {
|
|
@@ -5791,7 +5791,7 @@ function U0(a, e, t) {
|
|
|
5791
5791
|
let P = [];
|
|
5792
5792
|
return P.push(A), P.join(" ");
|
|
5793
5793
|
}, y = (A) => `${A} ❎`;
|
|
5794
|
-
return
|
|
5794
|
+
return Dt(() => {
|
|
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;
|
|
@@ -5802,7 +5802,7 @@ function U0(a, e, t) {
|
|
|
5802
5802
|
ariaAssist: S,
|
|
5803
5803
|
ariaControls: _,
|
|
5804
5804
|
ariaPlaceholder: V,
|
|
5805
|
-
ariaMultiselectable:
|
|
5805
|
+
ariaMultiselectable: R,
|
|
5806
5806
|
ariaActiveDescendant: g,
|
|
5807
5807
|
ariaOptionId: K,
|
|
5808
5808
|
ariaOptionLabel: I,
|
|
@@ -6255,7 +6255,7 @@ function c5(a, e, t, s, n, o) {
|
|
|
6255
6255
|
key: r,
|
|
6256
6256
|
"aria-label": a.ariaTagLabel(a.localize(i[t.label]))
|
|
6257
6257
|
}, [
|
|
6258
|
-
|
|
6258
|
+
e1(
|
|
6259
6259
|
z(a.localize(i[t.label])) + " ",
|
|
6260
6260
|
1
|
|
6261
6261
|
/* TEXT */
|
|
@@ -6664,10 +6664,10 @@ const be = /* @__PURE__ */ G({
|
|
|
6664
6664
|
ref_key: "multiselectRef",
|
|
6665
6665
|
ref: s,
|
|
6666
6666
|
class: "ao-multiselect"
|
|
6667
|
-
},
|
|
6667
|
+
}, t1({ _: 2 }, [
|
|
6668
6668
|
ye(n.$slots, (i, l) => ({
|
|
6669
6669
|
name: l,
|
|
6670
|
-
fn:
|
|
6670
|
+
fn: U((r) => [
|
|
6671
6671
|
te(n.$slots, l, dn(fn(r ?? {})))
|
|
6672
6672
|
])
|
|
6673
6673
|
}))
|
|
@@ -6815,7 +6815,7 @@ const f5 = { class: "ao-tasks" }, v5 = { class: "ao-tasks__list" }, p5 = ["id",
|
|
|
6815
6815
|
caret: d.isEditable,
|
|
6816
6816
|
onChange: (S) => c(S, C.id)
|
|
6817
6817
|
}, {
|
|
6818
|
-
tag:
|
|
6818
|
+
tag: U(({ option: S, handleTagRemove: _ }) => [
|
|
6819
6819
|
k(_t, {
|
|
6820
6820
|
"user-name": S.label,
|
|
6821
6821
|
"is-closable": !0,
|
|
@@ -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
|
+
Dt(() => {
|
|
6873
6873
|
n.forEach((c) => {
|
|
6874
6874
|
document.body.addEventListener(c, (u) => u.preventDefault());
|
|
6875
6875
|
});
|
|
@@ -7008,8 +7008,8 @@ const A5 = { class: "ao-comment" }, S5 = { class: "ao-comment__body" }, T5 = { c
|
|
|
7008
7008
|
Ye(_e(F(C), ["ctrl"]), ["enter"])
|
|
7009
7009
|
]
|
|
7010
7010
|
}, {
|
|
7011
|
-
default:
|
|
7012
|
-
|
|
7011
|
+
default: U(() => [
|
|
7012
|
+
e1(z(S.content), 1)
|
|
7013
7013
|
]),
|
|
7014
7014
|
_: 1
|
|
7015
7015
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
@@ -7279,7 +7279,7 @@ const R5 = {
|
|
|
7279
7279
|
assigneeId: y[0]
|
|
7280
7280
|
});
|
|
7281
7281
|
}
|
|
7282
|
-
}),
|
|
7282
|
+
}), R = (y) => {
|
|
7283
7283
|
e("addFiles", {
|
|
7284
7284
|
activityId: t.activity.id,
|
|
7285
7285
|
files: y
|
|
@@ -7313,7 +7313,7 @@ const R5 = {
|
|
|
7313
7313
|
return (y, A) => (v(), N(L1, {
|
|
7314
7314
|
onClose: A[8] || (A[8] = (P) => y.$emit("close"))
|
|
7315
7315
|
}, {
|
|
7316
|
-
header:
|
|
7316
|
+
header: U(() => [
|
|
7317
7317
|
y.breadcrumbs ? (v(), h("div", R5, z(y.breadcrumbs), 1)) : T("", !0),
|
|
7318
7318
|
k(me, {
|
|
7319
7319
|
title: y.activity.name || "",
|
|
@@ -7339,7 +7339,7 @@ const R5 = {
|
|
|
7339
7339
|
];
|
|
7340
7340
|
})
|
|
7341
7341
|
]),
|
|
7342
|
-
default:
|
|
7342
|
+
default: U(() => [
|
|
7343
7343
|
f("div", Z5, [
|
|
7344
7344
|
f("fieldset", F5, [
|
|
7345
7345
|
f("div", q5, [
|
|
@@ -7426,7 +7426,7 @@ const R5 = {
|
|
|
7426
7426
|
disabled: !y.isEditable,
|
|
7427
7427
|
caret: y.isEditable
|
|
7428
7428
|
}, {
|
|
7429
|
-
tag:
|
|
7429
|
+
tag: U(({ option: P, handleTagRemove: ce }) => [
|
|
7430
7430
|
k(_t, {
|
|
7431
7431
|
"user-name": P.label,
|
|
7432
7432
|
"is-closable": !0,
|
|
@@ -7547,7 +7547,7 @@ const R5 = {
|
|
|
7547
7547
|
k(k5, {
|
|
7548
7548
|
attachments: y.activity.attachments,
|
|
7549
7549
|
"is-editable": y.isEditable,
|
|
7550
|
-
onAdd:
|
|
7550
|
+
onAdd: R,
|
|
7551
7551
|
onRemove: x
|
|
7552
7552
|
}, null, 8, ["attachments", "is-editable"]),
|
|
7553
7553
|
f("div", S7, [
|
|
@@ -7646,7 +7646,7 @@ const T7 = /* @__PURE__ */ G({
|
|
|
7646
7646
|
}
|
|
7647
7647
|
}), S = b(() => Object.values(hc));
|
|
7648
7648
|
return (_, g) => (v(), N(tt(_.tagName), { class: "ao-rule-line" }, {
|
|
7649
|
-
default:
|
|
7649
|
+
default: U(() => [
|
|
7650
7650
|
k(F(ze), {
|
|
7651
7651
|
modelValue: n.value,
|
|
7652
7652
|
"onUpdate:modelValue": g[0] || (g[0] = (V) => n.value = V),
|
|
@@ -7712,13 +7712,13 @@ const E7 = { class: "ao-template-rules__body" }, I7 = { class: "ao-template-rule
|
|
|
7712
7712
|
e("removeRule", n);
|
|
7713
7713
|
};
|
|
7714
7714
|
return (n, o) => (v(), N(L1, null, {
|
|
7715
|
-
header:
|
|
7715
|
+
header: U(() => [
|
|
7716
7716
|
k(me, {
|
|
7717
7717
|
title: n.$t("template.rules.title"),
|
|
7718
7718
|
level: 2
|
|
7719
7719
|
}, null, 8, ["title"])
|
|
7720
7720
|
]),
|
|
7721
|
-
default:
|
|
7721
|
+
default: U(() => [
|
|
7722
7722
|
f("div", E7, [
|
|
7723
7723
|
f("ul", I7, [
|
|
7724
7724
|
(v(!0), h(fe, null, ye(n.rules, (i) => (v(), N(T7, {
|
|
@@ -7895,7 +7895,7 @@ const L7 = {
|
|
|
7895
7895
|
id: O.id
|
|
7896
7896
|
}
|
|
7897
7897
|
});
|
|
7898
|
-
},
|
|
7898
|
+
}, R = (O) => {
|
|
7899
7899
|
const { id: L, ...q } = O;
|
|
7900
7900
|
e("updateItem", {
|
|
7901
7901
|
itemType: pe.MILESTONES,
|
|
@@ -7946,7 +7946,7 @@ const L7 = {
|
|
|
7946
7946
|
}, A = (O) => {
|
|
7947
7947
|
var L;
|
|
7948
7948
|
if (O.moved) {
|
|
7949
|
-
const q =
|
|
7949
|
+
const q = Bt(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,
|
|
@@ -7993,7 +7993,7 @@ const L7 = {
|
|
|
7993
7993
|
"can-go-back": !0,
|
|
7994
7994
|
onGoBack: L[1] || (L[1] = (E) => O.$router.push({ name: F(Tt).TEMPLATES_LIST }))
|
|
7995
7995
|
}, {
|
|
7996
|
-
primary:
|
|
7996
|
+
primary: U(() => [
|
|
7997
7997
|
k(me, {
|
|
7998
7998
|
title: p.value,
|
|
7999
7999
|
level: 2,
|
|
@@ -8003,7 +8003,7 @@ const L7 = {
|
|
|
8003
8003
|
})
|
|
8004
8004
|
}, null, 8, ["title"])
|
|
8005
8005
|
]),
|
|
8006
|
-
secondary:
|
|
8006
|
+
secondary: U(() => [
|
|
8007
8007
|
k(le, {
|
|
8008
8008
|
label: O.$t("template.rules.edit"),
|
|
8009
8009
|
color: "primary",
|
|
@@ -8024,21 +8024,21 @@ const L7 = {
|
|
|
8024
8024
|
handle: ".ao-card__drag",
|
|
8025
8025
|
onChange: A
|
|
8026
8026
|
}, {
|
|
8027
|
-
header:
|
|
8027
|
+
header: U(() => [
|
|
8028
8028
|
k(me, {
|
|
8029
8029
|
title: O.$t("template.phases.title"),
|
|
8030
8030
|
level: 3,
|
|
8031
8031
|
class: "ao-list__title"
|
|
8032
8032
|
}, null, 8, ["title"])
|
|
8033
8033
|
]),
|
|
8034
|
-
item:
|
|
8035
|
-
var
|
|
8034
|
+
item: U(({ element: E }) => {
|
|
8035
|
+
var j;
|
|
8036
8036
|
return [
|
|
8037
8037
|
k(B3, {
|
|
8038
8038
|
id: E.id,
|
|
8039
8039
|
name: E.name,
|
|
8040
8040
|
milestones: E.milestones,
|
|
8041
|
-
"is-active": ((
|
|
8041
|
+
"is-active": ((j = i.value) == null ? void 0 : j.id) === E.id,
|
|
8042
8042
|
"is-draggable": !0,
|
|
8043
8043
|
onClick: (Ce) => O.$router.push({
|
|
8044
8044
|
params: { templateId: O.templateId, phaseId: E.id }
|
|
@@ -8050,7 +8050,7 @@ const L7 = {
|
|
|
8050
8050
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
8051
8051
|
];
|
|
8052
8052
|
}),
|
|
8053
|
-
footer:
|
|
8053
|
+
footer: U(() => [
|
|
8054
8054
|
f("div", P7, [
|
|
8055
8055
|
k(Qe, {
|
|
8056
8056
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -8069,7 +8069,7 @@ const L7 = {
|
|
|
8069
8069
|
phase: i.value,
|
|
8070
8070
|
"milestone-id": (q = l.value) == null ? void 0 : q.id,
|
|
8071
8071
|
onAddMilestone: g,
|
|
8072
|
-
onUpdateMilestone:
|
|
8072
|
+
onUpdateMilestone: R,
|
|
8073
8073
|
onUpdatePhase: _,
|
|
8074
8074
|
onRemoveMilestone: V
|
|
8075
8075
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
@@ -8143,7 +8143,7 @@ const j7 = {
|
|
|
8143
8143
|
return (e, t) => (v(), N(tt(e.tagName), {
|
|
8144
8144
|
class: Q(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
8145
8145
|
}, {
|
|
8146
|
-
default:
|
|
8146
|
+
default: U(() => [
|
|
8147
8147
|
e.$slots.header ? (v(), h("header", j7, [
|
|
8148
8148
|
te(e.$slots, "header")
|
|
8149
8149
|
])) : T("", !0),
|
|
@@ -8201,8 +8201,8 @@ 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" },
|
|
8205
|
-
default:
|
|
8204
|
+
return (l, r) => (v(), N(R1, { class: "ao-card-project-phase" }, t1({
|
|
8205
|
+
default: U(() => [
|
|
8206
8206
|
k(me, {
|
|
8207
8207
|
id: l.id,
|
|
8208
8208
|
class: "ao-card-project-phase__title",
|
|
@@ -8212,7 +8212,7 @@ const F7 = { class: "ao-card-project-phase__header" }, q7 = { class: "ao-card-pr
|
|
|
8212
8212
|
"onUpdate:title": s
|
|
8213
8213
|
}, null, 8, ["id", "title", "is-editable"])
|
|
8214
8214
|
]),
|
|
8215
|
-
footer:
|
|
8215
|
+
footer: U(() => [
|
|
8216
8216
|
f("div", q7, [
|
|
8217
8217
|
f("div", W7, [
|
|
8218
8218
|
n.value ? (v(), h(fe, { key: 0 }, [
|
|
@@ -8238,7 +8238,7 @@ const F7 = { class: "ao-card-project-phase__header" }, q7 = { class: "ao-card-pr
|
|
|
8238
8238
|
}, [
|
|
8239
8239
|
l.isEditable ? {
|
|
8240
8240
|
name: "header",
|
|
8241
|
-
fn:
|
|
8241
|
+
fn: U(() => [
|
|
8242
8242
|
f("div", F7, [
|
|
8243
8243
|
k(le, {
|
|
8244
8244
|
class: "ao-card-project-phase__archive",
|
|
@@ -8289,7 +8289,7 @@ const G7 = { class: "ao-card-project-milestone__default" }, X7 = {
|
|
|
8289
8289
|
"is-clickable": !0,
|
|
8290
8290
|
"tag-name": "li"
|
|
8291
8291
|
}, {
|
|
8292
|
-
default:
|
|
8292
|
+
default: U(() => [
|
|
8293
8293
|
f("div", G7, [
|
|
8294
8294
|
k(me, {
|
|
8295
8295
|
id: l.id,
|
|
@@ -8313,7 +8313,7 @@ const G7 = { class: "ao-card-project-milestone__default" }, X7 = {
|
|
|
8313
8313
|
])) : T("", !0)
|
|
8314
8314
|
])
|
|
8315
8315
|
]),
|
|
8316
|
-
footer:
|
|
8316
|
+
footer: U(() => [
|
|
8317
8317
|
f("div", Q7, [
|
|
8318
8318
|
f("div", J7, [
|
|
8319
8319
|
s.value ? (v(), h(fe, { key: 0 }, [
|
|
@@ -8402,7 +8402,7 @@ const s9 = { class: "ao-project-phase" }, i9 = {
|
|
|
8402
8402
|
"item-key": "id",
|
|
8403
8403
|
group: "kanban"
|
|
8404
8404
|
}, d.$attrs, { onChange: u }), {
|
|
8405
|
-
item:
|
|
8405
|
+
item: U(({ element: C }) => [
|
|
8406
8406
|
k(n9, {
|
|
8407
8407
|
id: C.id,
|
|
8408
8408
|
name: C.name,
|
|
@@ -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 = Bt(u, t.phases ?? []);
|
|
8465
8465
|
e("updatePhase", {
|
|
8466
8466
|
id: u.moved.element.id,
|
|
8467
8467
|
rank: d
|
|
@@ -8480,7 +8480,7 @@ const d9 = { class: "ao-project__phases" }, f9 = {
|
|
|
8480
8480
|
handle: ".ao-card__drag",
|
|
8481
8481
|
onChange: l
|
|
8482
8482
|
}, {
|
|
8483
|
-
item:
|
|
8483
|
+
item: U(({ element: p }) => [
|
|
8484
8484
|
k(c9, {
|
|
8485
8485
|
phase: p,
|
|
8486
8486
|
"is-editable": u.isEditable,
|
|
@@ -8526,13 +8526,13 @@ const C9 = ["onSubmit"], _9 = { class: "ao-add-template-modal__form-body" }, g9
|
|
|
8526
8526
|
n.value && e("apply", n.value, t.projectId);
|
|
8527
8527
|
};
|
|
8528
8528
|
return (l, r) => (v(), N(L1, { size: "sm" }, {
|
|
8529
|
-
header:
|
|
8529
|
+
header: U(() => [
|
|
8530
8530
|
k(me, {
|
|
8531
8531
|
title: l.$t("project.template.add.title"),
|
|
8532
8532
|
level: 3
|
|
8533
8533
|
}, null, 8, ["title"])
|
|
8534
8534
|
]),
|
|
8535
|
-
default:
|
|
8535
|
+
default: U(() => [
|
|
8536
8536
|
f("form", {
|
|
8537
8537
|
class: "ao-add-template-modal__form",
|
|
8538
8538
|
onSubmit: _e(i, ["prevent"])
|
|
@@ -8610,7 +8610,7 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8610
8610
|
e("addFiles", I);
|
|
8611
8611
|
}, V = (I) => {
|
|
8612
8612
|
e("removeFile", I);
|
|
8613
|
-
},
|
|
8613
|
+
}, R = (I) => {
|
|
8614
8614
|
e("addComment", I);
|
|
8615
8615
|
}, x = (I) => {
|
|
8616
8616
|
e("updateComment", I);
|
|
@@ -8624,30 +8624,24 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8624
8624
|
return v(), h(fe, null, [
|
|
8625
8625
|
f("div", w9, [
|
|
8626
8626
|
f("div", $9, [
|
|
8627
|
-
k(r1, null,
|
|
8628
|
-
|
|
8627
|
+
k(r1, null, {
|
|
8628
|
+
primary: U(() => [
|
|
8629
8629
|
k(le, {
|
|
8630
8630
|
class: "ao-project-overview__add-template",
|
|
8631
8631
|
color: "primary",
|
|
8632
8632
|
label: I.$t("project.feed.switch"),
|
|
8633
8633
|
onClick: ee[0] || (ee[0] = (A) => I.$router.push({ name: F(Re).feed }))
|
|
8634
|
-
}, null, 8, ["label"])
|
|
8634
|
+
}, null, 8, ["label"]),
|
|
8635
|
+
I.isEditable ? (v(), N(le, {
|
|
8636
|
+
key: 0,
|
|
8637
|
+
class: "ao-project-overview__add-template",
|
|
8638
|
+
color: "primary",
|
|
8639
|
+
label: I.$t("project.template.add.label"),
|
|
8640
|
+
onClick: ee[1] || (ee[1] = (A) => K.value = !0)
|
|
8641
|
+
}, null, 8, ["label"])) : T("", !0)
|
|
8635
8642
|
]),
|
|
8636
|
-
_:
|
|
8637
|
-
},
|
|
8638
|
-
I.isEditable ? {
|
|
8639
|
-
name: "primary",
|
|
8640
|
-
fn: R(() => [
|
|
8641
|
-
k(le, {
|
|
8642
|
-
class: "ao-project-overview__add-template",
|
|
8643
|
-
color: "primary",
|
|
8644
|
-
label: I.$t("project.template.add.label"),
|
|
8645
|
-
onClick: ee[1] || (ee[1] = (A) => K.value = !0)
|
|
8646
|
-
}, null, 8, ["label"])
|
|
8647
|
-
]),
|
|
8648
|
-
key: "0"
|
|
8649
|
-
} : void 0
|
|
8650
|
-
]), 1024),
|
|
8643
|
+
_: 1
|
|
8644
|
+
}),
|
|
8651
8645
|
f("div", M9, [
|
|
8652
8646
|
k(m9, {
|
|
8653
8647
|
phases: I.phases,
|
|
@@ -8690,7 +8684,7 @@ const w9 = { class: "ao-project-overview" }, $9 = { class: "ao-project" }, M9 =
|
|
|
8690
8684
|
onDeleteSubtask: S,
|
|
8691
8685
|
onAddFiles: g,
|
|
8692
8686
|
onRemoveFile: V,
|
|
8693
|
-
onAddComment:
|
|
8687
|
+
onAddComment: R,
|
|
8694
8688
|
onUpdateComment: x,
|
|
8695
8689
|
onRemoveComment: D
|
|
8696
8690
|
}, null, 8, ["activities", "is-task-checkable", "statuses", "phases", "users", "user-id", "is-editable"])
|
|
@@ -8773,7 +8767,7 @@ const A9 = { class: "ao-card-feed__header" }, S9 = {
|
|
|
8773
8767
|
class: "ao-card-feed",
|
|
8774
8768
|
"is-clickable": !0
|
|
8775
8769
|
}, {
|
|
8776
|
-
header:
|
|
8770
|
+
header: U(() => [
|
|
8777
8771
|
f("div", A9, [
|
|
8778
8772
|
p.projectName ? (v(), N(E1, {
|
|
8779
8773
|
key: 0,
|
|
@@ -8794,7 +8788,7 @@ const A9 = { class: "ao-card-feed__header" }, S9 = {
|
|
|
8794
8788
|
])) : T("", !0)
|
|
8795
8789
|
])
|
|
8796
8790
|
]),
|
|
8797
|
-
default:
|
|
8791
|
+
default: U(() => [
|
|
8798
8792
|
f("div", T9, [
|
|
8799
8793
|
n.value ? (v(), h("span", E9, z(n.value), 1)) : T("", !0),
|
|
8800
8794
|
k(me, {
|
|
@@ -8807,7 +8801,7 @@ const A9 = { class: "ao-card-feed__header" }, S9 = {
|
|
|
8807
8801
|
p.deadline ? (v(), h("span", I9, z(i.value), 1)) : T("", !0)
|
|
8808
8802
|
])
|
|
8809
8803
|
]),
|
|
8810
|
-
footer:
|
|
8804
|
+
footer: U(() => [
|
|
8811
8805
|
f("div", O9, [
|
|
8812
8806
|
f("div", L9, [
|
|
8813
8807
|
f("ul", V9, [
|
|
@@ -8939,7 +8933,7 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8939
8933
|
"item-key": "id",
|
|
8940
8934
|
group: "kanban"
|
|
8941
8935
|
}, p.$attrs, { onChange: d }), {
|
|
8942
|
-
item:
|
|
8936
|
+
item: U(({ element: M }) => {
|
|
8943
8937
|
var S, _, g, V;
|
|
8944
8938
|
return [
|
|
8945
8939
|
k(Pa, {
|
|
@@ -8955,16 +8949,16 @@ const q9 = { class: "ao-project-milestone" }, W9 = { class: "ao-project-mileston
|
|
|
8955
8949
|
attachments: (V = M.attachments) == null ? void 0 : V.length,
|
|
8956
8950
|
tasks: M.tasks,
|
|
8957
8951
|
"is-editable": p.isEditable,
|
|
8958
|
-
onClick: (
|
|
8952
|
+
onClick: (R) => p.$router.push({
|
|
8959
8953
|
name: F(Re).activity,
|
|
8960
8954
|
params: { milestoneId: p.milestoneId, activityId: M.id }
|
|
8961
8955
|
}),
|
|
8962
8956
|
onUpdateActivity: u,
|
|
8963
8957
|
onRemoveAssignee: () => u({ id: M.id, assigneeId: null })
|
|
8964
|
-
},
|
|
8958
|
+
}, t1({ _: 2 }, [
|
|
8965
8959
|
p.isEditable ? {
|
|
8966
8960
|
name: "secondary",
|
|
8967
|
-
fn:
|
|
8961
|
+
fn: U(() => [
|
|
8968
8962
|
k(le, {
|
|
8969
8963
|
color: "primary",
|
|
8970
8964
|
variant: "ghost",
|
|
@@ -9051,7 +9045,7 @@ const K9 = /* @__PURE__ */ G({
|
|
|
9051
9045
|
e("removeComment", _);
|
|
9052
9046
|
};
|
|
9053
9047
|
return (_, g) => {
|
|
9054
|
-
var V,
|
|
9048
|
+
var V, R;
|
|
9055
9049
|
return i.value ? (v(), N(N1, {
|
|
9056
9050
|
key: 0,
|
|
9057
9051
|
activity: i.value,
|
|
@@ -9063,7 +9057,7 @@ const K9 = /* @__PURE__ */ G({
|
|
|
9063
9057
|
"user-id": _.userId,
|
|
9064
9058
|
"is-task-checkable": _.isTaskCheckable,
|
|
9065
9059
|
statuses: _.statuses,
|
|
9066
|
-
breadcrumbs: `${(V = s.value) == null ? void 0 : V.name} / ${(
|
|
9060
|
+
breadcrumbs: `${(V = s.value) == null ? void 0 : V.name} / ${(R = o.value) == null ? void 0 : R.name}`,
|
|
9067
9061
|
"is-editable": _.isEditable,
|
|
9068
9062
|
onClose: _.$router.back,
|
|
9069
9063
|
"onUpdate:activity": r,
|
|
@@ -9104,7 +9098,7 @@ const K9 = /* @__PURE__ */ G({
|
|
|
9104
9098
|
function Q9(a) {
|
|
9105
9099
|
return mn() ? (Cn(a), !0) : !1;
|
|
9106
9100
|
}
|
|
9107
|
-
function
|
|
9101
|
+
function Jt(a) {
|
|
9108
9102
|
return typeof a == "function" ? a() : F(a);
|
|
9109
9103
|
}
|
|
9110
9104
|
const J9 = typeof window < "u", e4 = (a) => a != null, St = () => {
|
|
@@ -9123,7 +9117,7 @@ function a4(a, e = {}) {
|
|
|
9123
9117
|
clearTimeout(l), n(), n = St;
|
|
9124
9118
|
};
|
|
9125
9119
|
return (l) => {
|
|
9126
|
-
const r =
|
|
9120
|
+
const r = Jt(a), c = Jt(e.maxWait);
|
|
9127
9121
|
return t && o(t), r <= 0 || c !== void 0 && c <= 0 ? (s && (o(s), s = null), Promise.resolve(l())) : new Promise((u, d) => {
|
|
9128
9122
|
n = e.rejectOnCancel ? d : u, c && !s && (s = setTimeout(() => {
|
|
9129
9123
|
t && o(t), s = null, u(l());
|
|
@@ -9141,13 +9135,13 @@ function n4(a, e = 200, t = {}) {
|
|
|
9141
9135
|
}
|
|
9142
9136
|
function M1(a) {
|
|
9143
9137
|
var e;
|
|
9144
|
-
const t =
|
|
9138
|
+
const t = Jt(a);
|
|
9145
9139
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
9146
9140
|
}
|
|
9147
9141
|
const s4 = J9 ? window : void 0;
|
|
9148
9142
|
function i4() {
|
|
9149
9143
|
const a = J(!1);
|
|
9150
|
-
return at() &&
|
|
9144
|
+
return at() && Dt(() => {
|
|
9151
9145
|
a.value = !0;
|
|
9152
9146
|
}), a;
|
|
9153
9147
|
}
|
|
@@ -9163,7 +9157,7 @@ function l4(a, e, t = {}) {
|
|
|
9163
9157
|
window: i = s4,
|
|
9164
9158
|
immediate: l = !0
|
|
9165
9159
|
} = t, r = o4(() => i && "IntersectionObserver" in i), c = b(() => {
|
|
9166
|
-
const w =
|
|
9160
|
+
const w = Jt(a);
|
|
9167
9161
|
return (Array.isArray(w) ? w : [w]).map(M1).filter(e4);
|
|
9168
9162
|
});
|
|
9169
9163
|
let u = St;
|
|
@@ -9275,7 +9269,7 @@ const r4 = {
|
|
|
9275
9269
|
"item-key": "id",
|
|
9276
9270
|
group: "kanban"
|
|
9277
9271
|
}, r.$attrs, { onChange: l }), {
|
|
9278
|
-
item:
|
|
9272
|
+
item: U(({ element: u }) => {
|
|
9279
9273
|
var d, p, C, w, M, S, _, g;
|
|
9280
9274
|
return [
|
|
9281
9275
|
k(Pa, {
|
|
@@ -9299,7 +9293,7 @@ const r4 = {
|
|
|
9299
9293
|
onUpdateActivity: i,
|
|
9300
9294
|
onRemoveAssignee: () => i({ id: u.id, assigneeId: null })
|
|
9301
9295
|
}, {
|
|
9302
|
-
secondary:
|
|
9296
|
+
secondary: U(() => [
|
|
9303
9297
|
k(le, {
|
|
9304
9298
|
color: "primary",
|
|
9305
9299
|
variant: "ghost",
|
|
@@ -9315,7 +9309,7 @@ const r4 = {
|
|
|
9315
9309
|
}, 1032, ["id", "name", "project-name", "project-color", "phase-name", "milestone-name", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "onClick", "onRemoveAssignee"])
|
|
9316
9310
|
];
|
|
9317
9311
|
}),
|
|
9318
|
-
footer:
|
|
9312
|
+
footer: U(() => [
|
|
9319
9313
|
r.isLoading ? (v(), h("div", c4, [
|
|
9320
9314
|
k(de, { name: "Loading" })
|
|
9321
9315
|
])) : r.hasMore ? (v(), h("div", {
|
|
@@ -9437,8 +9431,8 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9437
9431
|
$.map((Z) => [
|
|
9438
9432
|
Z.id,
|
|
9439
9433
|
Y.filter((E) => {
|
|
9440
|
-
var
|
|
9441
|
-
return ((
|
|
9434
|
+
var j;
|
|
9435
|
+
return ((j = E.status) == null ? void 0 : j.id) === Z.id;
|
|
9442
9436
|
})
|
|
9443
9437
|
])
|
|
9444
9438
|
), c.value && je(Y, W);
|
|
@@ -9449,8 +9443,8 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9449
9443
|
var $;
|
|
9450
9444
|
return !i.value || !i.value.milestone ? "" : `${(($ = i.value.milestone.phase) == null ? void 0 : $.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9451
9445
|
}), d = ($) => {
|
|
9452
|
-
var E,
|
|
9453
|
-
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), W = ((
|
|
9446
|
+
var E, j;
|
|
9447
|
+
const Y = (E = t.activities) == null ? void 0 : E.at(-1), he = Y ? Ae.LexoRank.parse(Y.rank).genNext() : Ae.LexoRank.middle(), W = ((j = t.activities) == null ? void 0 : j.length) ?? 0, Z = {
|
|
9454
9448
|
name: s("activity.defaultName", { idx: W + 1 }),
|
|
9455
9449
|
rank: he.format(),
|
|
9456
9450
|
statusId: $.id
|
|
@@ -9476,7 +9470,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9476
9470
|
e("update:activity", $);
|
|
9477
9471
|
}, V = ($) => {
|
|
9478
9472
|
e("archiveActivity", $);
|
|
9479
|
-
},
|
|
9473
|
+
}, R = b({
|
|
9480
9474
|
get() {
|
|
9481
9475
|
var $;
|
|
9482
9476
|
return ($ = i.value) == null ? void 0 : $.deadline;
|
|
@@ -9548,14 +9542,15 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9548
9542
|
var he;
|
|
9549
9543
|
return v(), h("div", w4, [
|
|
9550
9544
|
k(r1, null, {
|
|
9551
|
-
primary:
|
|
9545
|
+
primary: U(() => [
|
|
9552
9546
|
f("div", $4, [
|
|
9553
|
-
|
|
9547
|
+
t.project ? (v(), N(le, {
|
|
9548
|
+
key: 0,
|
|
9554
9549
|
class: "ao-project-overview__add-template",
|
|
9555
9550
|
color: "primary",
|
|
9556
9551
|
label: $.$t("project.overview.switch"),
|
|
9557
9552
|
onClick: Y[0] || (Y[0] = (W) => $.$router.push({ name: F(Re).project }))
|
|
9558
|
-
}, null, 8, ["label"]),
|
|
9553
|
+
}, null, 8, ["label"])) : T("", !0),
|
|
9559
9554
|
k(_4, {
|
|
9560
9555
|
"model-value": $.searchText,
|
|
9561
9556
|
placeholder: $.$t("feed.search.placeholder"),
|
|
@@ -9564,7 +9559,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9564
9559
|
onClear: D
|
|
9565
9560
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9566
9561
|
t.project ? T("", !0) : (v(), N(be, {
|
|
9567
|
-
key:
|
|
9562
|
+
key: 1,
|
|
9568
9563
|
"model-value": $.filters[F(ut).project],
|
|
9569
9564
|
mode: "tags",
|
|
9570
9565
|
options: w.value,
|
|
@@ -9575,7 +9570,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9575
9570
|
"onUpdate:modelValue": Y[1] || (Y[1] = (W) => p(F(ut).project, W))
|
|
9576
9571
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9577
9572
|
M.value ? (v(), N(be, {
|
|
9578
|
-
key:
|
|
9573
|
+
key: 2,
|
|
9579
9574
|
"model-value": $.filters[F(ut).type],
|
|
9580
9575
|
mode: "tags",
|
|
9581
9576
|
options: M.value,
|
|
@@ -9595,7 +9590,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9595
9590
|
placeholder: $.$t("feed.filters.assignee.placeholder"),
|
|
9596
9591
|
"onUpdate:modelValue": Y[3] || (Y[3] = (W) => p(F(ut).assignee, W))
|
|
9597
9592
|
}, {
|
|
9598
|
-
tag:
|
|
9593
|
+
tag: U(({ option: W, handleTagRemove: Z }) => [
|
|
9599
9594
|
k(_t, {
|
|
9600
9595
|
"user-name": W.label,
|
|
9601
9596
|
"is-closable": !0,
|
|
@@ -9658,7 +9653,7 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9658
9653
|
onUpdateComment: P,
|
|
9659
9654
|
onRemoveComment: ce
|
|
9660
9655
|
}, {
|
|
9661
|
-
header:
|
|
9656
|
+
header: U(() => {
|
|
9662
9657
|
var W, Z, E;
|
|
9663
9658
|
return [
|
|
9664
9659
|
f("div", k4, [
|
|
@@ -9693,18 +9688,18 @@ const w4 = { class: "ao-feed" }, $4 = { class: "ao-feed__filters" }, M4 = { clas
|
|
|
9693
9688
|
])
|
|
9694
9689
|
];
|
|
9695
9690
|
}),
|
|
9696
|
-
default:
|
|
9691
|
+
default: U(() => [
|
|
9697
9692
|
f("div", L4, [
|
|
9698
9693
|
f("label", V4, [
|
|
9699
9694
|
f("span", D4, z($.$t("activity.deadline.label")), 1),
|
|
9700
9695
|
ft(f("input", {
|
|
9701
|
-
"onUpdate:modelValue": Y[5] || (Y[5] = (W) =>
|
|
9696
|
+
"onUpdate:modelValue": Y[5] || (Y[5] = (W) => R.value = W),
|
|
9702
9697
|
class: "ao-field__input",
|
|
9703
9698
|
type: "date"
|
|
9704
9699
|
}, null, 512), [
|
|
9705
9700
|
[
|
|
9706
9701
|
Et,
|
|
9707
|
-
|
|
9702
|
+
R.value,
|
|
9708
9703
|
void 0,
|
|
9709
9704
|
{ lazy: !0 }
|
|
9710
9705
|
]
|
|
@@ -9812,7 +9807,7 @@ const Tt = {
|
|
|
9812
9807
|
});
|
|
9813
9808
|
}, i = (l) => {
|
|
9814
9809
|
if (l.moved) {
|
|
9815
|
-
const r =
|
|
9810
|
+
const r = Bt(l, t.templates ?? []);
|
|
9816
9811
|
e("updateItem", {
|
|
9817
9812
|
itemType: pe.TEMPLATES,
|
|
9818
9813
|
id: l.moved.element.id,
|
|
@@ -9825,7 +9820,7 @@ const Tt = {
|
|
|
9825
9820
|
};
|
|
9826
9821
|
return (l, r) => (v(), h("div", P4, [
|
|
9827
9822
|
k(r1, null, {
|
|
9828
|
-
secondary:
|
|
9823
|
+
secondary: U(() => [
|
|
9829
9824
|
k(le, {
|
|
9830
9825
|
label: l.$t("templates.new"),
|
|
9831
9826
|
color: "primary",
|
|
@@ -9843,7 +9838,7 @@ const Tt = {
|
|
|
9843
9838
|
handle: ".ao-card__drag",
|
|
9844
9839
|
onChange: i
|
|
9845
9840
|
}, {
|
|
9846
|
-
item:
|
|
9841
|
+
item: U(({ element: c }) => {
|
|
9847
9842
|
var u;
|
|
9848
9843
|
return [
|
|
9849
9844
|
k(S3, {
|