@26lights/orcha 0.7.39 → 0.7.40
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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as Y, openBlock as c, createBlock as U, unref as H, mergeProps as Pe, createElementBlock as f, createElementVNode as r, pushScopeId as ha, popScopeId as pa, createStaticVNode as Ca, computed as _, resolveDynamicComponent as Je, normalizeClass as W, renderSlot as K, toDisplayString as R, createCommentVNode as
|
|
2
|
-
import { RouterView as
|
|
1
|
+
import { defineComponent as Y, openBlock as c, createBlock as U, unref as H, mergeProps as Pe, createElementBlock as f, createElementVNode as r, pushScopeId as ha, popScopeId as pa, createStaticVNode as Ca, computed as _, resolveDynamicComponent as Je, normalizeClass as W, renderSlot as K, toDisplayString as R, createCommentVNode as T, ref as ee, watch as fe, nextTick as Ze, withKeys as mt, toHandlers as _a, withCtx as q, createTextVNode as t1, createVNode as M, withModifiers as ke, Fragment as oe, renderList as he, toRefs as ye, getCurrentInstance as Ue, onMounted as Ot, onUnmounted as ga, withDirectives as xe, vModelText as ft, vModelCheckbox as ya, toRef as ct, Teleport as kt, normalizeStyle as ba, toValue as C1, onBeforeMount as wa, resolveComponent as $a, getCurrentScope as Ma, onScopeDispose as ka, provide as Ta } from "vue";
|
|
2
|
+
import { RouterView as Sa } from "vue-router";
|
|
3
3
|
import ht from "vuedraggable";
|
|
4
4
|
const Yd = /* @__PURE__ */ Y({
|
|
5
5
|
__name: "AoTemplates",
|
|
@@ -7,7 +7,7 @@ const Yd = /* @__PURE__ */ Y({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
return (e, t) => (c(), U(H(
|
|
10
|
+
return (e, t) => (c(), U(H(Sa), Pe({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), O = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
@@ -143,13 +143,13 @@ const wn = /* @__PURE__ */ O(Cn, [["render", bn]]), $n = {}, Mn = {
|
|
|
143
143
|
}, kn = /* @__PURE__ */ r("path", {
|
|
144
144
|
d: "M11.3 14.3L8.70001 11.7C8.38335 11.3833 8.31268 11.021 8.48801 10.613C8.66268 10.2043 8.97501 10 9.42501 10H14.575C15.025 10 15.3373 10.2043 15.512 10.613C15.6873 11.021 15.6167 11.3833 15.3 11.7L12.7 14.3C12.6 14.4 12.4917 14.475 12.375 14.525C12.2583 14.575 12.1333 14.6 12 14.6C11.8667 14.6 11.7417 14.575 11.625 14.525C11.5083 14.475 11.4 14.4 11.3 14.3V14.3Z",
|
|
145
145
|
fill: "black"
|
|
146
|
-
}, null, -1),
|
|
146
|
+
}, null, -1), Tn = [
|
|
147
147
|
kn
|
|
148
148
|
];
|
|
149
|
-
function
|
|
150
|
-
return c(), f("svg", Mn,
|
|
149
|
+
function Sn(a, e) {
|
|
150
|
+
return c(), f("svg", Mn, Tn);
|
|
151
151
|
}
|
|
152
|
-
const An = /* @__PURE__ */ O($n, [["render",
|
|
152
|
+
const An = /* @__PURE__ */ O($n, [["render", Sn]]), In = {}, On = {
|
|
153
153
|
width: "24",
|
|
154
154
|
height: "24",
|
|
155
155
|
viewBox: "0 0 24 24",
|
|
@@ -278,13 +278,13 @@ const ws = /* @__PURE__ */ O(Cs, [["render", bs]]), $s = {}, Ms = {
|
|
|
278
278
|
}, ks = /* @__PURE__ */ r("path", {
|
|
279
279
|
d: "M10 13.6L15.9 7.70005C16.0834 7.51672 16.3167 7.42505 16.6 7.42505C16.8834 7.42505 17.1167 7.51672 17.3 7.70005C17.4834 7.88338 17.575 8.11671 17.575 8.40005C17.575 8.68338 17.4834 8.91672 17.3 9.10005L10.7 15.7C10.5 15.9 10.2667 16 10 16C9.73338 16 9.50005 15.9 9.30005 15.7L6.70005 13.1C6.51672 12.9167 6.42505 12.6834 6.42505 12.4C6.42505 12.1167 6.51672 11.8834 6.70005 11.7C6.88338 11.5167 7.11672 11.425 7.40005 11.425C7.68338 11.425 7.91672 11.5167 8.10005 11.7L10 13.6Z",
|
|
280
280
|
fill: "black"
|
|
281
|
-
}, null, -1),
|
|
281
|
+
}, null, -1), Ts = [
|
|
282
282
|
ks
|
|
283
283
|
];
|
|
284
|
-
function
|
|
285
|
-
return c(), f("svg", Ms,
|
|
284
|
+
function Ss(a, e) {
|
|
285
|
+
return c(), f("svg", Ms, Ts);
|
|
286
286
|
}
|
|
287
|
-
const As = /* @__PURE__ */ O($s, [["render",
|
|
287
|
+
const As = /* @__PURE__ */ O($s, [["render", Ss]]), Is = {}, Os = {
|
|
288
288
|
width: "24",
|
|
289
289
|
height: "24",
|
|
290
290
|
viewBox: "0 0 24 24",
|
|
@@ -413,13 +413,13 @@ const wi = /* @__PURE__ */ O(Ci, [["render", bi]]), $i = {}, Mi = {
|
|
|
413
413
|
}, ki = /* @__PURE__ */ r("path", {
|
|
414
414
|
d: "M6 22C5.45 22 4.979 21.804 4.587 21.412C4.195 21.02 3.99934 20.5493 4 20V4C4 3.45 4.196 2.979 4.588 2.587C4.98 2.195 5.45067 1.99934 6 2H13.175C13.4417 2 13.696 2.05 13.938 2.15C14.18 2.25 14.3923 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60834 19.75 7.821 19.85 8.063C19.95 8.305 20 8.559 20 8.825V11.1L12 19.075V22H6ZM14.5 22C14.3667 22 14.25 21.95 14.15 21.85C14.05 21.75 14 21.6333 14 21.5V20.3C14 20.1667 14.0293 20.0333 14.088 19.9C14.1467 19.7667 14.2173 19.6583 14.3 19.575L19.15 14.7L21.3 16.8L16.425 21.7C16.3417 21.8 16.2333 21.875 16.1 21.925C15.9667 21.975 15.8333 22 15.7 22H14.5ZM22.025 16.1L19.9 13.975L20.6 13.275C20.8 13.075 21.0417 12.975 21.325 12.975C21.6083 12.975 21.8417 13.075 22.025 13.275L22.725 14C22.9083 14.2 23 14.4377 23 14.713C23 14.9883 22.9083 15.2173 22.725 15.4L22.025 16.1ZM14 9H18L13 4V8C13 8.28334 13.096 8.521 13.288 8.713C13.48 8.905 13.7173 9.00067 14 9Z",
|
|
415
415
|
fill: "black"
|
|
416
|
-
}, null, -1),
|
|
416
|
+
}, null, -1), Ti = [
|
|
417
417
|
ki
|
|
418
418
|
];
|
|
419
|
-
function
|
|
420
|
-
return c(), f("svg", Mi,
|
|
419
|
+
function Si(a, e) {
|
|
420
|
+
return c(), f("svg", Mi, Ti);
|
|
421
421
|
}
|
|
422
|
-
const Ai = /* @__PURE__ */ O($i, [["render",
|
|
422
|
+
const Ai = /* @__PURE__ */ O($i, [["render", Si]]), Ii = {}, Oi = {
|
|
423
423
|
width: "24",
|
|
424
424
|
height: "24",
|
|
425
425
|
viewBox: "0 0 24 24",
|
|
@@ -548,13 +548,13 @@ const wl = /* @__PURE__ */ O(Cl, [["render", bl]]), $l = {}, Ml = {
|
|
|
548
548
|
}, kl = /* @__PURE__ */ r("path", {
|
|
549
549
|
d: "M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.55 3 20.021 3.196 20.413 3.588C20.805 3.98 21.0007 4.45067 21 5V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM7 17H17C17.2 17 17.35 16.9083 17.45 16.725C17.55 16.5417 17.5333 16.3667 17.4 16.2L14.65 12.525C14.55 12.3917 14.4167 12.325 14.25 12.325C14.0833 12.325 13.95 12.3917 13.85 12.525L11.25 16L9.4 13.525C9.3 13.3917 9.16667 13.325 9 13.325C8.83334 13.325 8.7 13.3917 8.6 13.525L6.6 16.2C6.46667 16.3667 6.45 16.5417 6.55 16.725C6.65 16.9083 6.8 17 7 17Z",
|
|
550
550
|
fill: "black"
|
|
551
|
-
}, null, -1),
|
|
551
|
+
}, null, -1), Tl = [
|
|
552
552
|
kl
|
|
553
553
|
];
|
|
554
|
-
function
|
|
555
|
-
return c(), f("svg", Ml,
|
|
554
|
+
function Sl(a, e) {
|
|
555
|
+
return c(), f("svg", Ml, Tl);
|
|
556
556
|
}
|
|
557
|
-
const Al = /* @__PURE__ */ O($l, [["render",
|
|
557
|
+
const Al = /* @__PURE__ */ O($l, [["render", Sl]]), Il = {}, Ol = {
|
|
558
558
|
width: "24",
|
|
559
559
|
height: "24",
|
|
560
560
|
viewBox: "0 0 24 24",
|
|
@@ -691,7 +691,7 @@ const go = /* @__PURE__ */ O(fo, [["render", _o]]), yo = {}, bo = {
|
|
|
691
691
|
function Mo(a, e) {
|
|
692
692
|
return c(), f("svg", bo, $o);
|
|
693
693
|
}
|
|
694
|
-
const ko = /* @__PURE__ */ O(yo, [["render", Mo]]),
|
|
694
|
+
const ko = /* @__PURE__ */ O(yo, [["render", Mo]]), To = {}, So = {
|
|
695
695
|
width: "24",
|
|
696
696
|
height: "24",
|
|
697
697
|
viewBox: "0 0 24 24",
|
|
@@ -704,9 +704,9 @@ const ko = /* @__PURE__ */ O(yo, [["render", Mo]]), So = {}, To = {
|
|
|
704
704
|
Ao
|
|
705
705
|
];
|
|
706
706
|
function Oo(a, e) {
|
|
707
|
-
return c(), f("svg",
|
|
707
|
+
return c(), f("svg", So, Io);
|
|
708
708
|
}
|
|
709
|
-
const Lo = /* @__PURE__ */ O(
|
|
709
|
+
const Lo = /* @__PURE__ */ O(To, [["render", Oo]]), Eo = {}, Vo = {
|
|
710
710
|
width: "24",
|
|
711
711
|
height: "24",
|
|
712
712
|
viewBox: "0 0 24 24",
|
|
@@ -823,7 +823,7 @@ const gr = /* @__PURE__ */ O(fr, [["render", _r]]), yr = {}, br = {
|
|
|
823
823
|
function Mr(a, e) {
|
|
824
824
|
return c(), f("svg", br, $r);
|
|
825
825
|
}
|
|
826
|
-
const kr = /* @__PURE__ */ O(yr, [["render", Mr]]),
|
|
826
|
+
const kr = /* @__PURE__ */ O(yr, [["render", Mr]]), Tr = {}, Sr = {
|
|
827
827
|
width: "24",
|
|
828
828
|
height: "24",
|
|
829
829
|
viewBox: "0 0 24 24",
|
|
@@ -836,9 +836,9 @@ const kr = /* @__PURE__ */ O(yr, [["render", Mr]]), Sr = {}, Tr = {
|
|
|
836
836
|
Ar
|
|
837
837
|
];
|
|
838
838
|
function Or(a, e) {
|
|
839
|
-
return c(), f("svg",
|
|
839
|
+
return c(), f("svg", Sr, Ir);
|
|
840
840
|
}
|
|
841
|
-
const Lr = /* @__PURE__ */ O(
|
|
841
|
+
const Lr = /* @__PURE__ */ O(Tr, [["render", Or]]), Er = {}, Vr = {
|
|
842
842
|
width: "24",
|
|
843
843
|
height: "24",
|
|
844
844
|
viewBox: "0 0 24 24",
|
|
@@ -958,7 +958,7 @@ const g2 = /* @__PURE__ */ O(f2, [["render", _2]]), y2 = {}, b2 = {
|
|
|
958
958
|
function M2(a, e) {
|
|
959
959
|
return c(), f("svg", b2, $2);
|
|
960
960
|
}
|
|
961
|
-
const k2 = /* @__PURE__ */ O(y2, [["render", M2]]),
|
|
961
|
+
const k2 = /* @__PURE__ */ O(y2, [["render", M2]]), T2 = {}, S2 = {
|
|
962
962
|
width: "24",
|
|
963
963
|
height: "24",
|
|
964
964
|
viewBox: "0 0 24 24",
|
|
@@ -971,9 +971,9 @@ const k2 = /* @__PURE__ */ O(y2, [["render", M2]]), S2 = {}, T2 = {
|
|
|
971
971
|
A2
|
|
972
972
|
];
|
|
973
973
|
function O2(a, e) {
|
|
974
|
-
return c(), f("svg",
|
|
974
|
+
return c(), f("svg", S2, I2);
|
|
975
975
|
}
|
|
976
|
-
const L2 = /* @__PURE__ */ O(
|
|
976
|
+
const L2 = /* @__PURE__ */ O(T2, [["render", O2]]), E2 = {}, V2 = {
|
|
977
977
|
width: "24",
|
|
978
978
|
height: "24",
|
|
979
979
|
viewBox: "0 0 24 24",
|
|
@@ -1164,14 +1164,14 @@ const iu = ["type"], lu = {
|
|
|
1164
1164
|
])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
K(n.$slots, "default", {}, () => [
|
|
1167
|
-
n.label ? (c(), f("span", lu, R(n.label), 1)) :
|
|
1167
|
+
n.label ? (c(), f("span", lu, R(n.label), 1)) : T("", !0)
|
|
1168
1168
|
]),
|
|
1169
1169
|
s.value ? (c(), U(ie, {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
name: s.value,
|
|
1172
1172
|
class: "ao-button__icon",
|
|
1173
1173
|
size: t.value
|
|
1174
|
-
}, null, 8, ["name", "size"])) :
|
|
1174
|
+
}, null, 8, ["name", "size"])) : T("", !0)
|
|
1175
1175
|
], 10, iu));
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
@@ -1309,7 +1309,7 @@ const ou = {
|
|
|
1309
1309
|
name: "DragIndicator",
|
|
1310
1310
|
class: "ao-card-horiz__drag-handle"
|
|
1311
1311
|
})
|
|
1312
|
-
])) :
|
|
1312
|
+
])) : T("", !0),
|
|
1313
1313
|
r("div", ru, [
|
|
1314
1314
|
s.icon ? (c(), f("div", uu, [
|
|
1315
1315
|
M(ie, {
|
|
@@ -1317,7 +1317,7 @@ const ou = {
|
|
|
1317
1317
|
name: s.icon,
|
|
1318
1318
|
size: "xl"
|
|
1319
1319
|
}, null, 8, ["name"])
|
|
1320
|
-
])) :
|
|
1320
|
+
])) : T("", !0),
|
|
1321
1321
|
r("div", cu, [
|
|
1322
1322
|
M(ve, {
|
|
1323
1323
|
class: "ao-card-horiz__title",
|
|
@@ -1327,22 +1327,22 @@ const ou = {
|
|
|
1327
1327
|
"onUpdate:title": t
|
|
1328
1328
|
}, null, 8, ["title"]),
|
|
1329
1329
|
K(s.$slots, "subtitle", {}, () => [
|
|
1330
|
-
s.subtitle ? (c(), f("span", du, R(s.subtitle), 1)) :
|
|
1330
|
+
s.subtitle ? (c(), f("span", du, R(s.subtitle), 1)) : T("", !0)
|
|
1331
1331
|
])
|
|
1332
1332
|
]),
|
|
1333
1333
|
s.$slots.header ? (c(), f("div", vu, [
|
|
1334
1334
|
K(s.$slots, "header")
|
|
1335
|
-
])) :
|
|
1335
|
+
])) : T("", !0)
|
|
1336
1336
|
]),
|
|
1337
1337
|
s.$slots.default ? (c(), f("div", mu, [
|
|
1338
1338
|
K(s.$slots, "default")
|
|
1339
|
-
])) :
|
|
1339
|
+
])) : T("", !0),
|
|
1340
1340
|
s.$slots.footer ? (c(), f("div", fu, [
|
|
1341
1341
|
K(s.$slots, "footer")
|
|
1342
|
-
])) :
|
|
1342
|
+
])) : T("", !0),
|
|
1343
1343
|
s.$slots.secondary ? (c(), f("div", hu, [
|
|
1344
1344
|
K(s.$slots, "secondary")
|
|
1345
|
-
])) :
|
|
1345
|
+
])) : T("", !0)
|
|
1346
1346
|
]),
|
|
1347
1347
|
_: 3
|
|
1348
1348
|
}, 8, ["class"]));
|
|
@@ -1389,17 +1389,17 @@ const Et = /* @__PURE__ */ Y({
|
|
|
1389
1389
|
size: "sm",
|
|
1390
1390
|
class: "ao-tag__close-icon"
|
|
1391
1391
|
})
|
|
1392
|
-
])) :
|
|
1392
|
+
])) : T("", !0)
|
|
1393
1393
|
], 2));
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
1396
|
-
function
|
|
1396
|
+
function Tt(a) {
|
|
1397
1397
|
"@babel/helpers - typeof";
|
|
1398
|
-
return
|
|
1398
|
+
return Tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1399
1399
|
return typeof e;
|
|
1400
1400
|
} : function(e) {
|
|
1401
1401
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1402
|
-
},
|
|
1402
|
+
}, Tt(a);
|
|
1403
1403
|
}
|
|
1404
1404
|
function Ne(a) {
|
|
1405
1405
|
if (a === null || a === !0 || a === !1)
|
|
@@ -1414,7 +1414,7 @@ function Ce(a, e) {
|
|
|
1414
1414
|
function Ie(a) {
|
|
1415
1415
|
Ce(1, arguments);
|
|
1416
1416
|
var e = Object.prototype.toString.call(a);
|
|
1417
|
-
return a instanceof Date ||
|
|
1417
|
+
return a instanceof Date || Tt(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));
|
|
1418
1418
|
}
|
|
1419
1419
|
function pu(a, e) {
|
|
1420
1420
|
Ce(2, arguments);
|
|
@@ -1431,7 +1431,7 @@ function _u(a) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
var L1 = 6e4, E1 = 36e5;
|
|
1433
1433
|
function gu(a) {
|
|
1434
|
-
return Ce(1, arguments), a instanceof Date ||
|
|
1434
|
+
return Ce(1, arguments), a instanceof Date || Tt(a) === "object" && Object.prototype.toString.call(a) === "[object Date]";
|
|
1435
1435
|
}
|
|
1436
1436
|
function V1(a) {
|
|
1437
1437
|
if (Ce(1, arguments), !gu(a) && typeof a != "number")
|
|
@@ -1452,7 +1452,7 @@ function wu(a) {
|
|
|
1452
1452
|
var s = e.getTime(), n = t - s;
|
|
1453
1453
|
return Math.floor(n / bu) + 1;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function St(a) {
|
|
1456
1456
|
Ce(1, arguments);
|
|
1457
1457
|
var e = 1, t = Ie(a), s = t.getUTCDay(), n = (s < e ? 7 : 0) + s - e;
|
|
1458
1458
|
return t.setUTCDate(t.getUTCDate() - n), t.setUTCHours(0, 0, 0, 0), t;
|
|
@@ -1461,22 +1461,22 @@ function H1(a) {
|
|
|
1461
1461
|
Ce(1, arguments);
|
|
1462
1462
|
var e = Ie(a), t = e.getUTCFullYear(), s = /* @__PURE__ */ new Date(0);
|
|
1463
1463
|
s.setUTCFullYear(t + 1, 0, 4), s.setUTCHours(0, 0, 0, 0);
|
|
1464
|
-
var n =
|
|
1464
|
+
var n = St(s), l = /* @__PURE__ */ new Date(0);
|
|
1465
1465
|
l.setUTCFullYear(t, 0, 4), l.setUTCHours(0, 0, 0, 0);
|
|
1466
|
-
var i =
|
|
1466
|
+
var i = St(l);
|
|
1467
1467
|
return e.getTime() >= n.getTime() ? t + 1 : e.getTime() >= i.getTime() ? t : t - 1;
|
|
1468
1468
|
}
|
|
1469
1469
|
function $u(a) {
|
|
1470
1470
|
Ce(1, arguments);
|
|
1471
1471
|
var e = H1(a), t = /* @__PURE__ */ new Date(0);
|
|
1472
1472
|
t.setUTCFullYear(e, 0, 4), t.setUTCHours(0, 0, 0, 0);
|
|
1473
|
-
var s =
|
|
1473
|
+
var s = St(t);
|
|
1474
1474
|
return s;
|
|
1475
1475
|
}
|
|
1476
1476
|
var Mu = 6048e5;
|
|
1477
1477
|
function ku(a) {
|
|
1478
1478
|
Ce(1, arguments);
|
|
1479
|
-
var e = Ie(a), t =
|
|
1479
|
+
var e = Ie(a), t = St(e).getTime() - $u(e).getTime();
|
|
1480
1480
|
return Math.round(t / Mu) + 1;
|
|
1481
1481
|
}
|
|
1482
1482
|
function At(a, e) {
|
|
@@ -1501,7 +1501,7 @@ function D1(a, e) {
|
|
|
1501
1501
|
var b = At(E, e);
|
|
1502
1502
|
return u.getTime() >= I.getTime() ? p + 1 : u.getTime() >= b.getTime() ? p : p - 1;
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function Tu(a, e) {
|
|
1505
1505
|
var t, s, n, l, i, o, v, d;
|
|
1506
1506
|
Ce(1, arguments);
|
|
1507
1507
|
var u = Vt(), p = Ne((t = (s = (n = (l = e == null ? void 0 : e.firstWeekContainsDate) !== null && l !== void 0 ? l : e == null || (i = e.locale) === null || i === void 0 || (o = i.options) === null || o === void 0 ? void 0 : o.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (v = u.locale) === null || v === void 0 || (d = v.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), h = D1(a, e), y = /* @__PURE__ */ new Date(0);
|
|
@@ -1509,11 +1509,11 @@ function Su(a, e) {
|
|
|
1509
1509
|
var w = At(y, e);
|
|
1510
1510
|
return w;
|
|
1511
1511
|
}
|
|
1512
|
-
var
|
|
1512
|
+
var Su = 6048e5;
|
|
1513
1513
|
function Au(a, e) {
|
|
1514
1514
|
Ce(1, arguments);
|
|
1515
|
-
var t = Ie(a), s = At(t, e).getTime() -
|
|
1516
|
-
return Math.round(s /
|
|
1515
|
+
var t = Ie(a), s = At(t, e).getTime() - Tu(t, e).getTime();
|
|
1516
|
+
return Math.round(s / Su) + 1;
|
|
1517
1517
|
}
|
|
1518
1518
|
function ae(a, e) {
|
|
1519
1519
|
for (var t = a < 0 ? "-" : "", s = Math.abs(a).toString(); s.length < e; )
|
|
@@ -2619,7 +2619,7 @@ var w3 = {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
};
|
|
2621
2621
|
const $3 = w3;
|
|
2622
|
-
var M3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, k3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
|
|
2622
|
+
var M3 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, k3 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, T3 = /^'([^]*?)'?$/, S3 = /''/g, A3 = /[a-zA-Z]/;
|
|
2623
2623
|
function I3(a, e, t) {
|
|
2624
2624
|
var s, n, l, i, o, v, d, u, p, h, y, w, I, E, b, $, D, X;
|
|
2625
2625
|
Ce(2, arguments);
|
|
@@ -2641,7 +2641,7 @@ function I3(a, e, t) {
|
|
|
2641
2641
|
weekStartsOn: J,
|
|
2642
2642
|
locale: L,
|
|
2643
2643
|
_originalDate: se
|
|
2644
|
-
},
|
|
2644
|
+
}, k = ne.match(k3).map(function(j) {
|
|
2645
2645
|
var le = j[0];
|
|
2646
2646
|
if (le === "p" || le === "P") {
|
|
2647
2647
|
var g = Hu[le];
|
|
@@ -2661,11 +2661,11 @@ function I3(a, e, t) {
|
|
|
2661
2661
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + le + "`");
|
|
2662
2662
|
return j;
|
|
2663
2663
|
}).join("");
|
|
2664
|
-
return
|
|
2664
|
+
return k;
|
|
2665
2665
|
}
|
|
2666
2666
|
function O3(a) {
|
|
2667
|
-
var e = a.match(
|
|
2668
|
-
return e ? e[1].replace(
|
|
2667
|
+
var e = a.match(T3);
|
|
2668
|
+
return e ? e[1].replace(S3, "'") : a;
|
|
2669
2669
|
}
|
|
2670
2670
|
function L3(a, e) {
|
|
2671
2671
|
var t;
|
|
@@ -3576,7 +3576,7 @@ const n0 = ["title"], s0 = { className: "ao-avatar__initials" }, tt = /* @__PURE
|
|
|
3576
3576
|
color: "primary",
|
|
3577
3577
|
corners: "round",
|
|
3578
3578
|
onClick: ke(n, ["stop"])
|
|
3579
|
-
}, null, 8, ["onClick"])) :
|
|
3579
|
+
}, null, 8, ["onClick"])) : T("", !0)
|
|
3580
3580
|
], 10, n0));
|
|
3581
3581
|
}
|
|
3582
3582
|
});
|
|
@@ -3644,7 +3644,7 @@ const i0 = { class: "ao-card-template__subitems" }, l0 = { class: "ao-card-templ
|
|
|
3644
3644
|
color: "primary",
|
|
3645
3645
|
variant: "solid"
|
|
3646
3646
|
}, null, 8, ["label"]))), 128))
|
|
3647
|
-
])) :
|
|
3647
|
+
])) : T("", !0)
|
|
3648
3648
|
])
|
|
3649
3649
|
])
|
|
3650
3650
|
]),
|
|
@@ -3657,7 +3657,7 @@ const i0 = { class: "ao-card-template__subitems" }, l0 = { class: "ao-card-templ
|
|
|
3657
3657
|
r("div", g0, [
|
|
3658
3658
|
r("span", null, R(s.updatedAt), 1)
|
|
3659
3659
|
])
|
|
3660
|
-
])) :
|
|
3660
|
+
])) : T("", !0),
|
|
3661
3661
|
s.updatedBy ? (c(), f("div", y0, [
|
|
3662
3662
|
r("div", b0, [
|
|
3663
3663
|
r("span", w0, R(s.$t("template.updatedBy.label")), 1)
|
|
@@ -3665,14 +3665,14 @@ const i0 = { class: "ao-card-template__subitems" }, l0 = { class: "ao-card-templ
|
|
|
3665
3665
|
r("div", $0, [
|
|
3666
3666
|
M(tt, { "user-name": s.updatedBy }, null, 8, ["user-name"])
|
|
3667
3667
|
])
|
|
3668
|
-
])) :
|
|
3668
|
+
])) : T("", !0)
|
|
3669
3669
|
])
|
|
3670
3670
|
]),
|
|
3671
3671
|
_: 1
|
|
3672
3672
|
}, 8, ["title"]));
|
|
3673
3673
|
}
|
|
3674
3674
|
});
|
|
3675
|
-
const k0 = { class: "ao-page-header" },
|
|
3675
|
+
const k0 = { class: "ao-page-header" }, T0 = { class: "ao-page-header-main" }, S0 = { class: "ao-page-header-secondary" }, Zt = /* @__PURE__ */ Y({
|
|
3676
3676
|
__name: "AoPageHeader",
|
|
3677
3677
|
props: {
|
|
3678
3678
|
canGoBack: { type: Boolean }
|
|
@@ -3680,16 +3680,16 @@ const k0 = { class: "ao-page-header" }, S0 = { class: "ao-page-header-main" }, T
|
|
|
3680
3680
|
emits: ["goBack"],
|
|
3681
3681
|
setup(a) {
|
|
3682
3682
|
return (e, t) => (c(), f("header", k0, [
|
|
3683
|
-
r("div",
|
|
3683
|
+
r("div", T0, [
|
|
3684
3684
|
e.canGoBack ? (c(), U(de, {
|
|
3685
3685
|
key: 0,
|
|
3686
3686
|
"icon-name": "ArrowBackRounded",
|
|
3687
3687
|
variant: "ghost",
|
|
3688
3688
|
onClick: t[0] || (t[0] = (s) => e.$emit("goBack"))
|
|
3689
|
-
})) :
|
|
3689
|
+
})) : T("", !0),
|
|
3690
3690
|
K(e.$slots, "primary")
|
|
3691
3691
|
]),
|
|
3692
|
-
r("div",
|
|
3692
|
+
r("div", S0, [
|
|
3693
3693
|
K(e.$slots, "secondary")
|
|
3694
3694
|
])
|
|
3695
3695
|
]));
|
|
@@ -3722,14 +3722,14 @@ const A0 = ["type"], I0 = {
|
|
|
3722
3722
|
])
|
|
3723
3723
|
}, [
|
|
3724
3724
|
K(n.$slots, "default", {}, () => [
|
|
3725
|
-
n.label ? (c(), f("span", I0, R(n.label), 1)) :
|
|
3725
|
+
n.label ? (c(), f("span", I0, R(n.label), 1)) : T("", !0)
|
|
3726
3726
|
]),
|
|
3727
3727
|
s.value ? (c(), U(ie, {
|
|
3728
3728
|
key: 0,
|
|
3729
3729
|
name: s.value,
|
|
3730
3730
|
class: "ao-button-card__icon",
|
|
3731
3731
|
size: t.value
|
|
3732
|
-
}, null, 8, ["name", "size"])) :
|
|
3732
|
+
}, null, 8, ["name", "size"])) : T("", !0)
|
|
3733
3733
|
], 10, A0));
|
|
3734
3734
|
}
|
|
3735
3735
|
});
|
|
@@ -3766,7 +3766,7 @@ const O0 = { class: "ao-card-template-item__footer" }, L0 = {
|
|
|
3766
3766
|
size: "sm"
|
|
3767
3767
|
}, null, 8, ["name"]),
|
|
3768
3768
|
r("span", E0, R(i.$props[v]), 1)
|
|
3769
|
-
])) :
|
|
3769
|
+
])) : T("", !0)
|
|
3770
3770
|
], 64))), 64))
|
|
3771
3771
|
])
|
|
3772
3772
|
]),
|
|
@@ -3891,7 +3891,7 @@ const H0 = /* @__PURE__ */ Y({
|
|
|
3891
3891
|
])
|
|
3892
3892
|
]),
|
|
3893
3893
|
_: 1
|
|
3894
|
-
}, 8, ["model-value", "title"])) :
|
|
3894
|
+
}, 8, ["model-value", "title"])) : T("", !0);
|
|
3895
3895
|
}
|
|
3896
3896
|
}), B0 = /* @__PURE__ */ Y({
|
|
3897
3897
|
__name: "AoCardTemplateItemActivity",
|
|
@@ -3976,7 +3976,7 @@ const H0 = /* @__PURE__ */ Y({
|
|
|
3976
3976
|
])
|
|
3977
3977
|
]),
|
|
3978
3978
|
_: 1
|
|
3979
|
-
}, 8, ["model-value", "title"])) :
|
|
3979
|
+
}, 8, ["model-value", "title"])) : T("", !0);
|
|
3980
3980
|
}
|
|
3981
3981
|
});
|
|
3982
3982
|
function Ae(a) {
|
|
@@ -4085,7 +4085,7 @@ function Y0(a, e, t) {
|
|
|
4085
4085
|
strict: me,
|
|
4086
4086
|
closeOnSelect: N,
|
|
4087
4087
|
closeOnDeselect: x,
|
|
4088
|
-
groups:
|
|
4088
|
+
groups: k,
|
|
4089
4089
|
reverse: j,
|
|
4090
4090
|
infinite: le,
|
|
4091
4091
|
groupOptions: g,
|
|
@@ -4095,8 +4095,8 @@ function Y0(a, e, t) {
|
|
|
4095
4095
|
disabledProp: te,
|
|
4096
4096
|
searchStart: _e,
|
|
4097
4097
|
searchFilter: Me
|
|
4098
|
-
} = ye(a), re = Ue().proxy, F = t.iv,
|
|
4099
|
-
if (
|
|
4098
|
+
} = ye(a), re = Ue().proxy, F = t.iv, S = t.ev, Z = t.search, ge = t.clearSearch, Oe = t.update, Y1 = t.pointer, qe = t.clearPointer, G1 = t.focus, K1 = t.deactivate, Fe = t.close, x1 = t.localize, at = ee([]), Ve = ee([]), Te = ee(!1), Ut = ee(null), jt = ee(le.value && i.value === -1 ? 10 : i.value), r1 = _(() => v.value || d.value || !1), X1 = _(() => p.value !== void 0 ? p.value : h.value !== void 0 ? h.value : !0), He = _(() => {
|
|
4099
|
+
if (k.value) {
|
|
4100
4100
|
let m = _t.value || /* istanbul ignore next */
|
|
4101
4101
|
[], A = [];
|
|
4102
4102
|
return m.forEach((Q) => {
|
|
@@ -4116,7 +4116,7 @@ function Y0(a, e, t) {
|
|
|
4116
4116
|
let m = u1.value;
|
|
4117
4117
|
return jt.value > 0 && (m = m.slice(0, jt.value)), m;
|
|
4118
4118
|
}), _t = _(() => {
|
|
4119
|
-
if (!
|
|
4119
|
+
if (!k.value)
|
|
4120
4120
|
return [];
|
|
4121
4121
|
let m = [], A = Ve.value || /* istanbul ignore next */
|
|
4122
4122
|
[];
|
|
@@ -4133,7 +4133,7 @@ function Y0(a, e, t) {
|
|
|
4133
4133
|
__CREATE__: !0
|
|
4134
4134
|
}].concat(m)), m;
|
|
4135
4135
|
}), c1 = _(() => {
|
|
4136
|
-
if (!
|
|
4136
|
+
if (!k.value)
|
|
4137
4137
|
return [];
|
|
4138
4138
|
let m = Q1.value;
|
|
4139
4139
|
return ma((m || /* istanbul ignore next */
|
|
@@ -4155,12 +4155,12 @@ function Y0(a, e, t) {
|
|
|
4155
4155
|
case "tags":
|
|
4156
4156
|
return !Ae(F.value) && F.value.length > 0;
|
|
4157
4157
|
}
|
|
4158
|
-
}), J1 = _(() => y !== void 0 && y.value !== void 0 ? y.value(F.value, re) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), ea = _(() => !He.value.length && !
|
|
4158
|
+
}), J1 = _(() => y !== void 0 && y.value !== void 0 ? y.value(F.value, re) : F.value && F.value.length > 1 ? `${F.value.length} options selected` : "1 option selected"), ea = _(() => !He.value.length && !Te.value && !ze.value.length), ta = _(() => He.value.length > 0 && nt.value.length == 0 && (Z.value && k.value || !k.value)), ze = _(() => r1.value === !1 || !Z.value ? [] : ca(Z.value) !== -1 ? [] : [{
|
|
4159
4159
|
[C.value]: Z.value,
|
|
4160
|
-
[
|
|
4160
|
+
[Se.value]: Z.value,
|
|
4161
4161
|
[u.value]: Z.value,
|
|
4162
4162
|
__CREATE__: !0
|
|
4163
|
-
}]),
|
|
4163
|
+
}]), Se = _(() => l.value || u.value), aa = _(() => {
|
|
4164
4164
|
switch (n.value) {
|
|
4165
4165
|
case "single":
|
|
4166
4166
|
return null;
|
|
@@ -4168,7 +4168,7 @@ function Y0(a, e, t) {
|
|
|
4168
4168
|
case "tags":
|
|
4169
4169
|
return [];
|
|
4170
4170
|
}
|
|
4171
|
-
}), na = _(() => I.value ||
|
|
4171
|
+
}), na = _(() => I.value || Te.value), We = (m) => {
|
|
4172
4172
|
switch (typeof m != "object" && (m = Ee(m)), n.value) {
|
|
4173
4173
|
case "single":
|
|
4174
4174
|
Oe(m);
|
|
@@ -4213,8 +4213,8 @@ function Y0(a, e, t) {
|
|
|
4213
4213
|
}, qt = (m) => m[te.value] === !0, Ft = () => se === void 0 || se.value === -1 || !Rt.value && se.value > 0 ? !1 : F.value.length >= se.value, ia = (m) => {
|
|
4214
4214
|
if (!qt(m)) {
|
|
4215
4215
|
if (G && G.value && !Le(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = G.value(m, re), m instanceof Promise)) {
|
|
4216
|
-
|
|
4217
|
-
|
|
4216
|
+
Te.value = !0, m.then((A) => {
|
|
4217
|
+
Te.value = !1, f1(A);
|
|
4218
4218
|
});
|
|
4219
4219
|
return;
|
|
4220
4220
|
}
|
|
@@ -4269,7 +4269,7 @@ function Y0(a, e, t) {
|
|
|
4269
4269
|
Ee(m[C.value]) === void 0 && r1.value && (e.emit("tag", m[C.value], re), e.emit("option", m[C.value], re), e.emit("create", m[C.value], re), X1.value && va(m), ge());
|
|
4270
4270
|
}, oa = () => {
|
|
4271
4271
|
n.value !== "single" && We(nt.value.filter((m) => !m.disabled && !Le(m)));
|
|
4272
|
-
}, ra = (m) => m.find((A) => !Le(A) && !A[te.value]) === void 0, ua = (m) => m.find((A) => !Le(A)) === void 0, Ee = (m) => He.value[He.value.map((A) => String(A[C.value])).indexOf(String(m))], ca = (m, A = !0) => He.value.map((Q) => parseInt(Q[
|
|
4272
|
+
}, ra = (m) => m.find((A) => !Le(A) && !A[te.value]) === void 0, ua = (m) => m.find((A) => !Le(A)) === void 0, Ee = (m) => He.value[He.value.map((A) => String(A[C.value])).indexOf(String(m))], ca = (m, A = !0) => He.value.map((Q) => parseInt(Q[Se.value]) == Q[Se.value] ? parseInt(Q[Se.value]) : Q[Se.value]).indexOf(
|
|
4273
4273
|
parseInt(m) == m ? parseInt(m) : m
|
|
4274
4274
|
), da = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && o.value && Le(m), va = (m) => {
|
|
4275
4275
|
at.value.push(m);
|
|
@@ -4280,7 +4280,7 @@ function Y0(a, e, t) {
|
|
|
4280
4280
|
if (Z.value && D.value) {
|
|
4281
4281
|
let ce = Me.value;
|
|
4282
4282
|
ce || (ce = (st, qd) => {
|
|
4283
|
-
let p1 = Xt(x1(st[
|
|
4283
|
+
let p1 = Xt(x1(st[Se.value]), me.value);
|
|
4284
4284
|
return _e.value ? p1.startsWith(Xt(Z.value, me.value)) : p1.indexOf(Xt(Z.value, me.value)) !== -1;
|
|
4285
4285
|
}), Q = Q.filter(ce);
|
|
4286
4286
|
}
|
|
@@ -4289,15 +4289,15 @@ function Y0(a, e, t) {
|
|
|
4289
4289
|
let A = m;
|
|
4290
4290
|
return z0(A) && (A = Object.keys(A).map((Q) => {
|
|
4291
4291
|
let ce = A[Q];
|
|
4292
|
-
return { [C.value]: Q, [
|
|
4293
|
-
})), A = A.map((Q) => typeof Q == "object" ? Q : { [C.value]: Q, [
|
|
4292
|
+
return { [C.value]: Q, [Se.value]: ce, [u.value]: ce };
|
|
4293
|
+
})), A = A.map((Q) => typeof Q == "object" ? Q : { [C.value]: Q, [Se.value]: Q, [u.value]: Q }), A;
|
|
4294
4294
|
}, gt = () => {
|
|
4295
|
-
Ae(
|
|
4296
|
-
}, yt = (m) => (
|
|
4295
|
+
Ae(S.value) || (F.value = bt(S.value));
|
|
4296
|
+
}, yt = (m) => (Te.value = !0, new Promise((A, Q) => {
|
|
4297
4297
|
s.value(Z.value, re).then((ce) => {
|
|
4298
|
-
Ve.value = ce || [], typeof m == "function" && m(ce),
|
|
4298
|
+
Ve.value = ce || [], typeof m == "function" && m(ce), Te.value = !1;
|
|
4299
4299
|
}).catch((ce) => {
|
|
4300
|
-
console.error(ce), Ve.value = [],
|
|
4300
|
+
console.error(ce), Ve.value = [], Te.value = !1;
|
|
4301
4301
|
}).finally(() => {
|
|
4302
4302
|
A();
|
|
4303
4303
|
});
|
|
@@ -4307,14 +4307,14 @@ function Y0(a, e, t) {
|
|
|
4307
4307
|
let m = Ee(F.value[C.value]);
|
|
4308
4308
|
if (m !== void 0) {
|
|
4309
4309
|
let A = m[u.value];
|
|
4310
|
-
F.value[u.value] = A, w.value && (
|
|
4310
|
+
F.value[u.value] = A, w.value && (S.value[u.value] = A);
|
|
4311
4311
|
}
|
|
4312
4312
|
} else
|
|
4313
4313
|
F.value.forEach((m, A) => {
|
|
4314
4314
|
let Q = Ee(F.value[A][C.value]);
|
|
4315
4315
|
if (Q !== void 0) {
|
|
4316
4316
|
let ce = Q[u.value];
|
|
4317
|
-
F.value[A][u.value] = ce, w.value && (
|
|
4317
|
+
F.value[A][u.value] = ce, w.value && (S.value[A][u.value] = ce);
|
|
4318
4318
|
}
|
|
4319
4319
|
});
|
|
4320
4320
|
}, fa = (m) => {
|
|
@@ -4322,16 +4322,16 @@ function Y0(a, e, t) {
|
|
|
4322
4322
|
}, bt = (m) => Ae(m) ? n.value === "single" ? {} : [] : w.value ? m : n.value === "single" ? Ee(m) || (L.value ? {
|
|
4323
4323
|
[u.value]: m,
|
|
4324
4324
|
[C.value]: m,
|
|
4325
|
-
[
|
|
4325
|
+
[Se.value]: m
|
|
4326
4326
|
} : {}) : m.filter((A) => !!Ee(A) || L.value).map((A) => Ee(A) || {
|
|
4327
4327
|
[u.value]: A,
|
|
4328
4328
|
[C.value]: A,
|
|
4329
|
-
[
|
|
4329
|
+
[Se.value]: A
|
|
4330
4330
|
}), h1 = () => {
|
|
4331
4331
|
Ut.value = fe(Z, (m) => {
|
|
4332
|
-
m.length < $.value || !m && $.value !== 0 || (
|
|
4332
|
+
m.length < $.value || !m && $.value !== 0 || (Te.value = !0, X.value && (Ve.value = []), setTimeout(() => {
|
|
4333
4333
|
m == Z.value && s.value(Z.value, re).then((A) => {
|
|
4334
|
-
(m == Z.value || !Z.value) && (Ve.value = A, Y1.value = nt.value.filter((Q) => Q[te.value] !== !0)[0] || null,
|
|
4334
|
+
(m == Z.value || !Z.value) && (Ve.value = A, Y1.value = nt.value.filter((Q) => Q[te.value] !== !0)[0] || null, Te.value = !1);
|
|
4335
4335
|
}).catch(
|
|
4336
4336
|
/* istanbul ignore next */
|
|
4337
4337
|
(A) => {
|
|
@@ -4341,11 +4341,11 @@ function Y0(a, e, t) {
|
|
|
4341
4341
|
}, E.value));
|
|
4342
4342
|
}, { flush: "sync" });
|
|
4343
4343
|
};
|
|
4344
|
-
if (n.value !== "single" && !Ae(
|
|
4344
|
+
if (n.value !== "single" && !Ae(S.value) && !Array.isArray(S.value))
|
|
4345
4345
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
4346
4346
|
return s && typeof s.value == "function" ? b.value ? yt(gt) : w.value == !0 && gt() : (Ve.value = s.value, gt()), E.value > -1 && h1(), fe(E, (m, A) => {
|
|
4347
4347
|
Ut.value && Ut.value(), m >= 0 && h1();
|
|
4348
|
-
}), fe(
|
|
4348
|
+
}), fe(S, (m) => {
|
|
4349
4349
|
if (Ae(m)) {
|
|
4350
4350
|
Oe(bt(m), !1);
|
|
4351
4351
|
return;
|
|
@@ -4375,7 +4375,7 @@ function Y0(a, e, t) {
|
|
|
4375
4375
|
filteredGroups: c1,
|
|
4376
4376
|
noOptions: ea,
|
|
4377
4377
|
noResults: ta,
|
|
4378
|
-
resolving:
|
|
4378
|
+
resolving: Te,
|
|
4379
4379
|
busy: na,
|
|
4380
4380
|
offset: jt,
|
|
4381
4381
|
select: We,
|
|
@@ -4406,23 +4406,23 @@ function G0(a, e, t) {
|
|
|
4406
4406
|
groupSelect: d,
|
|
4407
4407
|
disabledProp: u,
|
|
4408
4408
|
groupOptions: p
|
|
4409
|
-
} = ye(a), h = t.fo, y = t.fg, w = t.handleOptionClick, I = t.handleGroupClick, E = t.search, b = t.pointer, $ = t.setPointer, D = t.clearPointer, X = t.multiselect, ne = t.isOpen, C = _(() => h.value.filter((
|
|
4410
|
-
const
|
|
4409
|
+
} = ye(a), h = t.fo, y = t.fg, w = t.handleOptionClick, I = t.handleGroupClick, E = t.search, b = t.pointer, $ = t.setPointer, D = t.clearPointer, X = t.multiselect, ne = t.isOpen, C = _(() => h.value.filter((S) => !S[u.value])), L = _(() => y.value.filter((S) => !S[u.value])), B = _(() => v.value !== "single" && d.value), J = _(() => b.value && b.value.group), se = _(() => re(b.value)), me = _(() => {
|
|
4410
|
+
const S = J.value ? b.value : (
|
|
4411
4411
|
/* istanbul ignore next */
|
|
4412
4412
|
re(b.value)
|
|
4413
|
-
), Z = L.value.map((Oe) => Oe[i.value]).indexOf(
|
|
4413
|
+
), Z = L.value.map((Oe) => Oe[i.value]).indexOf(S[i.value]);
|
|
4414
4414
|
let ge = L.value[Z - 1];
|
|
4415
4415
|
return ge === void 0 && (ge = x.value), ge;
|
|
4416
4416
|
}), N = _(() => {
|
|
4417
|
-
let
|
|
4418
|
-
return L.value.length <=
|
|
4419
|
-
}), x = _(() => [...L.value].slice(-1)[0]),
|
|
4420
|
-
const
|
|
4421
|
-
return
|
|
4417
|
+
let S = L.value.map((Z) => Z.label).indexOf(J.value ? b.value[i.value] : re(b.value)[i.value]) + 1;
|
|
4418
|
+
return L.value.length <= S && (S = 0), L.value[S];
|
|
4419
|
+
}), x = _(() => [...L.value].slice(-1)[0]), k = _(() => b.value.__VISIBLE__.filter((S) => !S[u.value])[0]), j = _(() => {
|
|
4420
|
+
const S = se.value.__VISIBLE__.filter((Z) => !Z[u.value]);
|
|
4421
|
+
return S[S.map((Z) => Z[s.value]).indexOf(b.value[s.value]) - 1];
|
|
4422
4422
|
}), le = _(() => {
|
|
4423
|
-
const
|
|
4424
|
-
return
|
|
4425
|
-
}), g = _(() => [...me.value.__VISIBLE__.filter((
|
|
4423
|
+
const S = re(b.value).__VISIBLE__.filter((Z) => !Z[u.value]);
|
|
4424
|
+
return S[S.map((Z) => Z[s.value]).indexOf(b.value[s.value]) + 1];
|
|
4425
|
+
}), g = _(() => [...me.value.__VISIBLE__.filter((S) => !S[u.value])].slice(-1)[0]), P = _(() => [...x.value.__VISIBLE__.filter((S) => !S[u.value])].slice(-1)[0]), V = (S) => b.value && (!S.group && b.value[s.value] === S[s.value] || S.group !== void 0 && b.value[i.value] === S[i.value]) ? !0 : void 0, G = () => {
|
|
4426
4426
|
$(C.value[0] || null);
|
|
4427
4427
|
}, te = () => {
|
|
4428
4428
|
!b.value || b.value[u.value] === !0 || (J.value ? I(b.value) : w(b.value));
|
|
@@ -4430,42 +4430,42 @@ function G0(a, e, t) {
|
|
|
4430
4430
|
if (b.value === null)
|
|
4431
4431
|
$((o.value && B.value ? L.value[0].__CREATE__ ? C.value[0] : L.value[0] : C.value[0]) || null);
|
|
4432
4432
|
else if (o.value && B.value) {
|
|
4433
|
-
let
|
|
4434
|
-
|
|
4433
|
+
let S = J.value ? k.value : le.value;
|
|
4434
|
+
S === void 0 && (S = N.value, S.__CREATE__ && (S = S[p.value][0])), $(S || /* istanbul ignore next */
|
|
4435
4435
|
null);
|
|
4436
4436
|
} else {
|
|
4437
|
-
let
|
|
4438
|
-
C.value.length <=
|
|
4437
|
+
let S = C.value.map((Z) => Z[s.value]).indexOf(b.value[s.value]) + 1;
|
|
4438
|
+
C.value.length <= S && (S = 0), $(C.value[S] || null);
|
|
4439
4439
|
}
|
|
4440
4440
|
Ze(() => {
|
|
4441
4441
|
F();
|
|
4442
4442
|
});
|
|
4443
4443
|
}, Me = () => {
|
|
4444
4444
|
if (b.value === null) {
|
|
4445
|
-
let
|
|
4446
|
-
o.value && B.value && (
|
|
4445
|
+
let S = C.value[C.value.length - 1];
|
|
4446
|
+
o.value && B.value && (S = P.value, S === void 0 && (S = x.value)), $(S || null);
|
|
4447
4447
|
} else if (o.value && B.value) {
|
|
4448
|
-
let
|
|
4449
|
-
|
|
4448
|
+
let S = J.value ? g.value : j.value;
|
|
4449
|
+
S === void 0 && (S = J.value ? me.value : se.value, S.__CREATE__ && (S = g.value, S === void 0 && (S = me.value))), $(S || /* istanbul ignore next */
|
|
4450
4450
|
null);
|
|
4451
4451
|
} else {
|
|
4452
|
-
let
|
|
4453
|
-
|
|
4452
|
+
let S = C.value.map((Z) => Z[s.value]).indexOf(b.value[s.value]) - 1;
|
|
4453
|
+
S < 0 && (S = C.value.length - 1), $(C.value[S] || null);
|
|
4454
4454
|
}
|
|
4455
4455
|
Ze(() => {
|
|
4456
4456
|
F();
|
|
4457
4457
|
});
|
|
4458
|
-
}, re = (
|
|
4459
|
-
let
|
|
4460
|
-
if (!
|
|
4458
|
+
}, re = (S) => L.value.find((Z) => Z.__VISIBLE__.map((ge) => ge[s.value]).indexOf(S[s.value]) !== -1), F = () => {
|
|
4459
|
+
let S = X.value.querySelector("[data-pointed]");
|
|
4460
|
+
if (!S)
|
|
4461
4461
|
return;
|
|
4462
|
-
let Z =
|
|
4463
|
-
o.value && (Z = J.value ?
|
|
4462
|
+
let Z = S.parentElement.parentElement;
|
|
4463
|
+
o.value && (Z = J.value ? S.parentElement.parentElement.parentElement : S.parentElement.parentElement.parentElement.parentElement), S.offsetTop + S.offsetHeight > Z.clientHeight + Z.scrollTop && (Z.scrollTop = S.offsetTop + S.offsetHeight - Z.clientHeight), S.offsetTop < Z.scrollTop && (Z.scrollTop = S.offsetTop);
|
|
4464
4464
|
};
|
|
4465
|
-
return fe(E, (
|
|
4466
|
-
l.value && (
|
|
4467
|
-
}), fe(ne, (
|
|
4468
|
-
if (
|
|
4465
|
+
return fe(E, (S) => {
|
|
4466
|
+
l.value && (S.length && n.value ? G() : D());
|
|
4467
|
+
}), fe(ne, (S) => {
|
|
4468
|
+
if (S) {
|
|
4469
4469
|
let Z = X.value.querySelectorAll("[data-selected]")[0];
|
|
4470
4470
|
if (!Z)
|
|
4471
4471
|
return;
|
|
@@ -4550,7 +4550,7 @@ function X0(a, e, t) {
|
|
|
4550
4550
|
createTag: p,
|
|
4551
4551
|
createOption: h,
|
|
4552
4552
|
reverse: y
|
|
4553
|
-
} = ye(a), w = Ue().proxy, I = t.iv, E = t.update, b = t.search, $ = t.setPointer, D = t.selectPointer, X = t.backwardPointer, ne = t.forwardPointer, C = t.multiselect, L = t.wrapper, B = t.tags, J = t.isOpen, se = t.open, me = t.blur, N = t.fo, x = _(() => p.value || h.value || !1),
|
|
4553
|
+
} = ye(a), w = Ue().proxy, I = t.iv, E = t.update, b = t.search, $ = t.setPointer, D = t.selectPointer, X = t.backwardPointer, ne = t.forwardPointer, C = t.multiselect, L = t.wrapper, B = t.tags, J = t.isOpen, se = t.open, me = t.blur, N = t.fo, x = _(() => p.value || h.value || !1), k = _(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), j = () => {
|
|
4554
4554
|
s.value === "tags" && !o.value && x.value && i.value && !d.value && $(N.value[N.value.map((V) => V[v.value]).indexOf(b.value)]);
|
|
4555
4555
|
}, le = (V) => {
|
|
4556
4556
|
let G = V.length - 1;
|
|
@@ -4575,7 +4575,7 @@ function X0(a, e, t) {
|
|
|
4575
4575
|
E([...I.value].filter((_e, Me) => Me !== te)), te === G.length - 1 && (G.length - 1 ? G[G.length - 2].focus() : i.value ? B.value.querySelector("input").focus() : L.value.focus());
|
|
4576
4576
|
return;
|
|
4577
4577
|
}
|
|
4578
|
-
if (
|
|
4578
|
+
if (k.value.indexOf("enter") === -1 && x.value)
|
|
4579
4579
|
return;
|
|
4580
4580
|
j(), D();
|
|
4581
4581
|
break;
|
|
@@ -4586,14 +4586,14 @@ function X0(a, e, t) {
|
|
|
4586
4586
|
}
|
|
4587
4587
|
if (!x.value)
|
|
4588
4588
|
return !1;
|
|
4589
|
-
if (
|
|
4589
|
+
if (k.value.indexOf("space") === -1 && x.value)
|
|
4590
4590
|
return;
|
|
4591
4591
|
V.preventDefault(), j(), D();
|
|
4592
4592
|
break;
|
|
4593
4593
|
case "Tab":
|
|
4594
4594
|
case ";":
|
|
4595
4595
|
case ",":
|
|
4596
|
-
if (
|
|
4596
|
+
if (k.value.indexOf(V.key.toLowerCase()) === -1 || !x.value)
|
|
4597
4597
|
return;
|
|
4598
4598
|
j(), D(), V.preventDefault();
|
|
4599
4599
|
break;
|
|
@@ -5216,7 +5216,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5216
5216
|
"aria-multiselectable": t.searchable ? void 0 : a.ariaMultiselectable,
|
|
5217
5217
|
role: t.searchable ? void 0 : "combobox"
|
|
5218
5218
|
}, t.searchable ? {} : a.arias), [
|
|
5219
|
-
|
|
5219
|
+
T(" Search "),
|
|
5220
5220
|
t.mode !== "tags" && t.searchable && !t.disabled ? (c(), f("input", Pe({
|
|
5221
5221
|
key: 0,
|
|
5222
5222
|
type: t.inputType,
|
|
@@ -5238,8 +5238,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5238
5238
|
}, {
|
|
5239
5239
|
...t.attrs,
|
|
5240
5240
|
...a.arias
|
|
5241
|
-
}), null, 16, i5)) :
|
|
5242
|
-
|
|
5241
|
+
}), null, 16, i5)) : T("v-if", !0),
|
|
5242
|
+
T(" Tags (with search) "),
|
|
5243
5243
|
t.mode == "tags" ? (c(), f(
|
|
5244
5244
|
"div",
|
|
5245
5245
|
{
|
|
@@ -5285,7 +5285,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5285
5285
|
2
|
|
5286
5286
|
/* CLASS */
|
|
5287
5287
|
)
|
|
5288
|
-
], 10, o5)) :
|
|
5288
|
+
], 10, o5)) : T("v-if", !0)
|
|
5289
5289
|
], 42, l5))
|
|
5290
5290
|
])),
|
|
5291
5291
|
256
|
|
@@ -5298,7 +5298,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5298
5298
|
ref: "tags"
|
|
5299
5299
|
},
|
|
5300
5300
|
[
|
|
5301
|
-
|
|
5301
|
+
T(" Used for measuring search width "),
|
|
5302
5302
|
r(
|
|
5303
5303
|
"span",
|
|
5304
5304
|
{
|
|
@@ -5308,7 +5308,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5308
5308
|
3
|
|
5309
5309
|
/* TEXT, CLASS */
|
|
5310
5310
|
),
|
|
5311
|
-
|
|
5311
|
+
T(" Actual search input "),
|
|
5312
5312
|
t.searchable && !t.disabled ? (c(), f("input", Pe({
|
|
5313
5313
|
key: 0,
|
|
5314
5314
|
type: t.inputType,
|
|
@@ -5330,7 +5330,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5330
5330
|
}, {
|
|
5331
5331
|
...t.attrs,
|
|
5332
5332
|
...a.arias
|
|
5333
|
-
}), null, 16, r5)) :
|
|
5333
|
+
}), null, 16, r5)) : T("v-if", !0)
|
|
5334
5334
|
],
|
|
5335
5335
|
2
|
|
5336
5336
|
/* CLASS */
|
|
@@ -5338,8 +5338,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5338
5338
|
],
|
|
5339
5339
|
2
|
|
5340
5340
|
/* CLASS */
|
|
5341
|
-
)) :
|
|
5342
|
-
|
|
5341
|
+
)) : T("v-if", !0),
|
|
5342
|
+
T(" Single label "),
|
|
5343
5343
|
t.mode == "single" && a.hasSelected && !a.search && a.iv ? K(a.$slots, "singlelabel", {
|
|
5344
5344
|
key: 2,
|
|
5345
5345
|
value: a.iv
|
|
@@ -5363,8 +5363,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5363
5363
|
2
|
|
5364
5364
|
/* CLASS */
|
|
5365
5365
|
)
|
|
5366
|
-
]) :
|
|
5367
|
-
|
|
5366
|
+
]) : T("v-if", !0),
|
|
5367
|
+
T(" Multiple label "),
|
|
5368
5368
|
t.mode == "multiple" && a.hasSelected && !a.search ? K(a.$slots, "multiplelabel", {
|
|
5369
5369
|
key: 3,
|
|
5370
5370
|
values: a.iv
|
|
@@ -5373,8 +5373,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5373
5373
|
class: W(a.classList.multipleLabel),
|
|
5374
5374
|
innerHTML: a.multipleLabelText
|
|
5375
5375
|
}, null, 10, u5)
|
|
5376
|
-
]) :
|
|
5377
|
-
|
|
5376
|
+
]) : T("v-if", !0),
|
|
5377
|
+
T(" Placeholder "),
|
|
5378
5378
|
t.placeholder && !a.hasSelected && !a.search ? K(a.$slots, "placeholder", { key: 4 }, () => [
|
|
5379
5379
|
r(
|
|
5380
5380
|
"div",
|
|
@@ -5386,8 +5386,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5386
5386
|
3
|
|
5387
5387
|
/* TEXT, CLASS */
|
|
5388
5388
|
)
|
|
5389
|
-
]) :
|
|
5390
|
-
|
|
5389
|
+
]) : T("v-if", !0),
|
|
5390
|
+
T(" Spinner "),
|
|
5391
5391
|
t.loading || a.resolving ? K(a.$slots, "spinner", { key: 5 }, () => [
|
|
5392
5392
|
r(
|
|
5393
5393
|
"span",
|
|
@@ -5399,8 +5399,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5399
5399
|
2
|
|
5400
5400
|
/* CLASS */
|
|
5401
5401
|
)
|
|
5402
|
-
]) :
|
|
5403
|
-
|
|
5402
|
+
]) : T("v-if", !0),
|
|
5403
|
+
T(" Clear "),
|
|
5404
5404
|
a.hasSelected && !t.disabled && t.canClear && !a.busy ? K(a.$slots, "clear", {
|
|
5405
5405
|
key: 6,
|
|
5406
5406
|
clear: a.clear
|
|
@@ -5431,8 +5431,8 @@ function $5(a, e, t, s, n, l) {
|
|
|
5431
5431
|
34
|
|
5432
5432
|
/* CLASS, HYDRATE_EVENTS */
|
|
5433
5433
|
)
|
|
5434
|
-
]) :
|
|
5435
|
-
|
|
5434
|
+
]) : T("v-if", !0),
|
|
5435
|
+
T(" Caret "),
|
|
5436
5436
|
t.caret && t.showOptions ? K(a.$slots, "caret", { key: 7 }, () => [
|
|
5437
5437
|
r(
|
|
5438
5438
|
"span",
|
|
@@ -5445,9 +5445,9 @@ function $5(a, e, t, s, n, l) {
|
|
|
5445
5445
|
2
|
|
5446
5446
|
/* CLASS */
|
|
5447
5447
|
)
|
|
5448
|
-
]) :
|
|
5448
|
+
]) : T("v-if", !0)
|
|
5449
5449
|
], 16, s5),
|
|
5450
|
-
|
|
5450
|
+
T(" Options "),
|
|
5451
5451
|
r(
|
|
5452
5452
|
"div",
|
|
5453
5453
|
{
|
|
@@ -5472,7 +5472,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5472
5472
|
"aria-selected": a.isSelected(i),
|
|
5473
5473
|
role: "option"
|
|
5474
5474
|
}, [
|
|
5475
|
-
i.__CREATE__ ?
|
|
5475
|
+
i.__CREATE__ ? T("v-if", !0) : (c(), f("div", {
|
|
5476
5476
|
key: 0,
|
|
5477
5477
|
class: W(a.classList.groupLabel(i)),
|
|
5478
5478
|
"data-pointed": a.isPointed(i),
|
|
@@ -5570,13 +5570,13 @@ function $5(a, e, t, s, n, l) {
|
|
|
5570
5570
|
class: W(a.classList.noOptions),
|
|
5571
5571
|
innerHTML: a.localize(t.noOptionsText)
|
|
5572
5572
|
}, null, 10, C5)
|
|
5573
|
-
]) :
|
|
5573
|
+
]) : T("v-if", !0),
|
|
5574
5574
|
a.noResults ? K(a.$slots, "noresults", { key: 1 }, () => [
|
|
5575
5575
|
r("div", {
|
|
5576
5576
|
class: W(a.classList.noResults),
|
|
5577
5577
|
innerHTML: a.localize(t.noResultsText)
|
|
5578
5578
|
}, null, 10, _5)
|
|
5579
|
-
]) :
|
|
5579
|
+
]) : T("v-if", !0),
|
|
5580
5580
|
t.infinite && a.hasMore ? (c(), f(
|
|
5581
5581
|
"div",
|
|
5582
5582
|
{
|
|
@@ -5599,21 +5599,21 @@ function $5(a, e, t, s, n, l) {
|
|
|
5599
5599
|
],
|
|
5600
5600
|
2
|
|
5601
5601
|
/* CLASS */
|
|
5602
|
-
)) :
|
|
5602
|
+
)) : T("v-if", !0),
|
|
5603
5603
|
K(a.$slots, "afterlist", { options: a.fo })
|
|
5604
5604
|
],
|
|
5605
5605
|
2
|
|
5606
5606
|
/* CLASS */
|
|
5607
5607
|
),
|
|
5608
|
-
|
|
5608
|
+
T(" Hacky input element to show HTML5 required warning "),
|
|
5609
5609
|
t.required ? (c(), f("input", {
|
|
5610
5610
|
key: 0,
|
|
5611
5611
|
class: W(a.classList.fakeInput),
|
|
5612
5612
|
tabindex: "-1",
|
|
5613
5613
|
value: a.textValue,
|
|
5614
5614
|
required: ""
|
|
5615
|
-
}, null, 10, g5)) :
|
|
5616
|
-
|
|
5615
|
+
}, null, 10, g5)) : T("v-if", !0),
|
|
5616
|
+
T(" Native input support "),
|
|
5617
5617
|
t.nativeSupport ? (c(), f(
|
|
5618
5618
|
oe,
|
|
5619
5619
|
{ key: 1 },
|
|
@@ -5638,15 +5638,15 @@ function $5(a, e, t, s, n, l) {
|
|
|
5638
5638
|
],
|
|
5639
5639
|
64
|
|
5640
5640
|
/* STABLE_FRAGMENT */
|
|
5641
|
-
)) :
|
|
5642
|
-
|
|
5641
|
+
)) : T("v-if", !0),
|
|
5642
|
+
T(" Screen reader assistive text "),
|
|
5643
5643
|
t.searchable && a.hasSelected ? (c(), f("div", {
|
|
5644
5644
|
key: 2,
|
|
5645
5645
|
class: W(a.classList.assist),
|
|
5646
5646
|
id: a.ariaAssist,
|
|
5647
5647
|
"aria-hidden": "true"
|
|
5648
|
-
}, R(a.ariaLabel), 11, w5)) :
|
|
5649
|
-
|
|
5648
|
+
}, R(a.ariaLabel), 11, w5)) : T("v-if", !0),
|
|
5649
|
+
T(" Create height for empty input "),
|
|
5650
5650
|
r(
|
|
5651
5651
|
"div",
|
|
5652
5652
|
{
|
|
@@ -5660,7 +5660,7 @@ function $5(a, e, t, s, n, l) {
|
|
|
5660
5660
|
}
|
|
5661
5661
|
pe.render = $5;
|
|
5662
5662
|
pe.__file = "src/Multiselect.vue";
|
|
5663
|
-
const M5 = { class: "ao-modal__wrapper" }, k5 = { class: "ao-modal" },
|
|
5663
|
+
const M5 = { class: "ao-modal__wrapper" }, k5 = { class: "ao-modal" }, T5 = { class: "ao-modal__header" }, S5 = { class: "ao-modal__header-meta" }, A5 = {
|
|
5664
5664
|
key: 0,
|
|
5665
5665
|
class: "ao-modal__title-group"
|
|
5666
5666
|
}, I5 = { class: "ao-modal__body" }, q1 = /* @__PURE__ */ Y({
|
|
@@ -5673,8 +5673,8 @@ const M5 = { class: "ao-modal__wrapper" }, k5 = { class: "ao-modal" }, S5 = { cl
|
|
|
5673
5673
|
onClick: t[0] || (t[0] = (s) => e.$emit("close"))
|
|
5674
5674
|
}),
|
|
5675
5675
|
r("div", k5, [
|
|
5676
|
-
r("div",
|
|
5677
|
-
r("div",
|
|
5676
|
+
r("div", T5, [
|
|
5677
|
+
r("div", S5, [
|
|
5678
5678
|
M(de, {
|
|
5679
5679
|
"icon-name": "CloseRounded",
|
|
5680
5680
|
variant: "ghost",
|
|
@@ -5684,7 +5684,7 @@ const M5 = { class: "ao-modal__wrapper" }, k5 = { class: "ao-modal" }, S5 = { cl
|
|
|
5684
5684
|
]),
|
|
5685
5685
|
e.$slots.header ? (c(), f("header", A5, [
|
|
5686
5686
|
K(e.$slots, "header")
|
|
5687
|
-
])) :
|
|
5687
|
+
])) : T("", !0)
|
|
5688
5688
|
]),
|
|
5689
5689
|
r("div", I5, [
|
|
5690
5690
|
K(e.$slots, "default")
|
|
@@ -5784,7 +5784,7 @@ const L5 = { class: "ao-tasks" }, E5 = { class: "ao-tasks__list" }, V5 = ["value
|
|
|
5784
5784
|
"icon-name": h.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
5785
5785
|
variant: "ghost",
|
|
5786
5786
|
onClick: () => o(h.id, !h.isDone)
|
|
5787
|
-
}, null, 8, ["icon-name", "onClick"])) :
|
|
5787
|
+
}, null, 8, ["icon-name", "onClick"])) : T("", !0),
|
|
5788
5788
|
r("input", {
|
|
5789
5789
|
value: h.name,
|
|
5790
5790
|
class: "ao-field__input ao-subtask__field",
|
|
@@ -5809,7 +5809,7 @@ const L5 = { class: "ao-tasks" }, E5 = { class: "ao-tasks__list" }, V5 = ["value
|
|
|
5809
5809
|
}, null, 8, ["user-name", "onClose"])
|
|
5810
5810
|
]),
|
|
5811
5811
|
_: 2
|
|
5812
|
-
}, 1032, ["value", "options", "placeholder", "onChange"])) :
|
|
5812
|
+
}, 1032, ["value", "options", "placeholder", "onChange"])) : T("", !0),
|
|
5813
5813
|
M(de, {
|
|
5814
5814
|
class: "ao-subtask__delete",
|
|
5815
5815
|
"icon-name": "CloseRounded",
|
|
@@ -5951,7 +5951,8 @@ const z5 = {
|
|
|
5951
5951
|
templateActivities: {},
|
|
5952
5952
|
templateMilestones: {},
|
|
5953
5953
|
isTemplate: { type: Boolean },
|
|
5954
|
-
users: {}
|
|
5954
|
+
users: {},
|
|
5955
|
+
isTaskCheckable: { type: Boolean }
|
|
5955
5956
|
},
|
|
5956
5957
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile"],
|
|
5957
5958
|
setup(a, { emit: e }) {
|
|
@@ -6076,7 +6077,7 @@ const z5 = {
|
|
|
6076
6077
|
}, {
|
|
6077
6078
|
header: q(() => [
|
|
6078
6079
|
K(C.$slots, "header", {}, () => [
|
|
6079
|
-
C.breadcrumbs ? (c(), f("div", z5, R(C.breadcrumbs), 1)) :
|
|
6080
|
+
C.breadcrumbs ? (c(), f("div", z5, R(C.breadcrumbs), 1)) : T("", !0),
|
|
6080
6081
|
M(ve, {
|
|
6081
6082
|
title: C.activity.name || C.activity.id,
|
|
6082
6083
|
level: 4,
|
|
@@ -6247,10 +6248,11 @@ const z5 = {
|
|
|
6247
6248
|
tasks: C.activity.tasks || [],
|
|
6248
6249
|
"activity-id": C.activity.id,
|
|
6249
6250
|
users: C.users,
|
|
6251
|
+
"is-checkable": C.isTaskCheckable,
|
|
6250
6252
|
onAdd: I,
|
|
6251
6253
|
onUpdate: E,
|
|
6252
6254
|
onDelete: b
|
|
6253
|
-
}, null, 8, ["tasks", "activity-id", "users"])
|
|
6255
|
+
}, null, 8, ["tasks", "activity-id", "users", "is-checkable"])
|
|
6254
6256
|
]),
|
|
6255
6257
|
K(C.$slots, "default")
|
|
6256
6258
|
]),
|
|
@@ -6293,7 +6295,7 @@ const $7 = {
|
|
|
6293
6295
|
}, k7 = {
|
|
6294
6296
|
START: "start",
|
|
6295
6297
|
end: "end"
|
|
6296
|
-
},
|
|
6298
|
+
}, T7 = {
|
|
6297
6299
|
DAYS: "days",
|
|
6298
6300
|
WEEKS: "weeks",
|
|
6299
6301
|
MONTHS: "months"
|
|
@@ -6304,7 +6306,7 @@ const $7 = {
|
|
|
6304
6306
|
ACTIVITIES: "activities",
|
|
6305
6307
|
TASKS: "tasks"
|
|
6306
6308
|
};
|
|
6307
|
-
var
|
|
6309
|
+
var S7 = /* @__PURE__ */ ((a) => (a.PHASES = "phases", a.MILESTONES = "milestones", a.ACTIVITIES = "activities", a))(S7 || {});
|
|
6308
6310
|
const xd = {
|
|
6309
6311
|
add: "add",
|
|
6310
6312
|
remove: "remove",
|
|
@@ -6386,7 +6388,7 @@ const xd = {
|
|
|
6386
6388
|
set(b) {
|
|
6387
6389
|
e("update:rule", { ...t.rule, durationUnit: b });
|
|
6388
6390
|
}
|
|
6389
|
-
}), E = _(() => Object.values(
|
|
6391
|
+
}), E = _(() => Object.values(T7));
|
|
6390
6392
|
return (b, $) => (c(), U(Je(b.tagName), { class: "ao-rule-line" }, {
|
|
6391
6393
|
default: q(() => [
|
|
6392
6394
|
M(H(pe), {
|
|
@@ -6696,7 +6698,7 @@ const E7 = {
|
|
|
6696
6698
|
templateId: t.templateId,
|
|
6697
6699
|
data: g
|
|
6698
6700
|
});
|
|
6699
|
-
},
|
|
6701
|
+
}, k = (g) => {
|
|
6700
6702
|
!l.value || !i.value || !d.value || e("removeItem", {
|
|
6701
6703
|
type: ue.TASKS,
|
|
6702
6704
|
activityId: d.value.id,
|
|
@@ -6756,13 +6758,13 @@ const E7 = {
|
|
|
6756
6758
|
}, null, 8, ["title"])
|
|
6757
6759
|
]),
|
|
6758
6760
|
item: q(({ element: F }) => {
|
|
6759
|
-
var
|
|
6761
|
+
var S;
|
|
6760
6762
|
return [
|
|
6761
6763
|
M(H0, {
|
|
6762
6764
|
id: F.id,
|
|
6763
6765
|
name: F.name,
|
|
6764
6766
|
milestones: F.milestones,
|
|
6765
|
-
"is-active": ((
|
|
6767
|
+
"is-active": ((S = l.value) == null ? void 0 : S.id) === F.id,
|
|
6766
6768
|
"is-draggable": !0,
|
|
6767
6769
|
onClick: (Z) => g.$router.push({
|
|
6768
6770
|
params: { templateId: g.templateId, phaseId: F.id }
|
|
@@ -6796,7 +6798,7 @@ const E7 = {
|
|
|
6796
6798
|
onUpdateMilestone: D,
|
|
6797
6799
|
onUpdatePhase: E,
|
|
6798
6800
|
onRemoveMilestone: $
|
|
6799
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) :
|
|
6801
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
6800
6802
|
]),
|
|
6801
6803
|
r("li", B7, [
|
|
6802
6804
|
l.value && i.value ? (c(), U(U0, {
|
|
@@ -6808,7 +6810,7 @@ const E7 = {
|
|
|
6808
6810
|
onAddActivity: X,
|
|
6809
6811
|
onUpdateActivity: C,
|
|
6810
6812
|
onRemoveActivity: ne
|
|
6811
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) :
|
|
6813
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : T("", !0)
|
|
6812
6814
|
])
|
|
6813
6815
|
])
|
|
6814
6816
|
]),
|
|
@@ -6828,10 +6830,10 @@ const E7 = {
|
|
|
6828
6830
|
onClose: g.$router.back,
|
|
6829
6831
|
onAddSubtask: N,
|
|
6830
6832
|
onUpdateSubtask: x,
|
|
6831
|
-
onDeleteSubtask:
|
|
6833
|
+
onDeleteSubtask: k,
|
|
6832
6834
|
onAddFiles: j,
|
|
6833
6835
|
onRemoveFile: le
|
|
6834
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) :
|
|
6836
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : T("", !0)
|
|
6835
6837
|
])),
|
|
6836
6838
|
(c(), U(kt, { to: "body" }, [
|
|
6837
6839
|
L.value ? (c(), U(L7, {
|
|
@@ -6844,9 +6846,9 @@ const E7 = {
|
|
|
6844
6846
|
onClose: B,
|
|
6845
6847
|
onAddRule: J,
|
|
6846
6848
|
onRemoveRule: se
|
|
6847
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) :
|
|
6849
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : T("", !0)
|
|
6848
6850
|
]))
|
|
6849
|
-
])) :
|
|
6851
|
+
])) : T("", !0);
|
|
6850
6852
|
};
|
|
6851
6853
|
}
|
|
6852
6854
|
});
|
|
@@ -6869,13 +6871,13 @@ const U7 = {
|
|
|
6869
6871
|
default: q(() => [
|
|
6870
6872
|
e.$slots.header ? (c(), f("header", U7, [
|
|
6871
6873
|
K(e.$slots, "header")
|
|
6872
|
-
])) :
|
|
6874
|
+
])) : T("", !0),
|
|
6873
6875
|
r("div", j7, [
|
|
6874
6876
|
K(e.$slots, "default")
|
|
6875
6877
|
]),
|
|
6876
6878
|
e.$slots.footer ? (c(), f("footer", R7, [
|
|
6877
6879
|
K(e.$slots, "footer")
|
|
6878
|
-
])) :
|
|
6880
|
+
])) : T("", !0)
|
|
6879
6881
|
]),
|
|
6880
6882
|
_: 3
|
|
6881
6883
|
}, 8, ["class"]));
|
|
@@ -6929,7 +6931,7 @@ const q7 = { class: "ao-card-project-phase__header" }, F7 = { class: "ao-card-pr
|
|
|
6929
6931
|
class: "ao-card-project-phase__project",
|
|
6930
6932
|
variant: "solid",
|
|
6931
6933
|
color: "primary"
|
|
6932
|
-
}, null, 8, ["label"])) :
|
|
6934
|
+
}, null, 8, ["label"])) : T("", !0)
|
|
6933
6935
|
])
|
|
6934
6936
|
]),
|
|
6935
6937
|
default: q(() => [
|
|
@@ -6953,10 +6955,10 @@ const q7 = { class: "ao-card-project-phase__header" }, F7 = { class: "ao-card-pr
|
|
|
6953
6955
|
percentages: n.value,
|
|
6954
6956
|
class: "ao-card-project-phase__progress"
|
|
6955
6957
|
}, null, 8, ["percentages"])
|
|
6956
|
-
], 64)) :
|
|
6958
|
+
], 64)) : T("", !0),
|
|
6957
6959
|
l.$slots.secondary ? (c(), f("div", G7, [
|
|
6958
6960
|
K(l.$slots, "secondary")
|
|
6959
|
-
])) :
|
|
6961
|
+
])) : T("", !0)
|
|
6960
6962
|
])
|
|
6961
6963
|
])
|
|
6962
6964
|
]),
|
|
@@ -7012,10 +7014,10 @@ const x7 = { class: "ao-card-project-phase__footer" }, X7 = { class: "ao-card-pr
|
|
|
7012
7014
|
percentages: n.value,
|
|
7013
7015
|
class: "ao-card-project-phase__progress"
|
|
7014
7016
|
}, null, 8, ["percentages"])
|
|
7015
|
-
], 64)) :
|
|
7017
|
+
], 64)) : T("", !0),
|
|
7016
7018
|
l.$slots.secondary ? (c(), f("div", ec, [
|
|
7017
7019
|
K(l.$slots, "secondary")
|
|
7018
|
-
])) :
|
|
7020
|
+
])) : T("", !0)
|
|
7019
7021
|
])
|
|
7020
7022
|
])
|
|
7021
7023
|
]),
|
|
@@ -7072,14 +7074,14 @@ const ac = { class: "ao-project-phase" }, nc = { class: "ao-project-phase__col-p
|
|
|
7072
7074
|
]));
|
|
7073
7075
|
}
|
|
7074
7076
|
});
|
|
7075
|
-
const k1 = ee([]),
|
|
7077
|
+
const k1 = ee([]), T1 = ee("");
|
|
7076
7078
|
function F1() {
|
|
7077
7079
|
return {
|
|
7078
7080
|
init: (e) => {
|
|
7079
|
-
k1.value = C1(e.users),
|
|
7081
|
+
k1.value = C1(e.users), T1.value = C1(e.userId);
|
|
7080
7082
|
},
|
|
7081
7083
|
users: k1,
|
|
7082
|
-
userId:
|
|
7084
|
+
userId: T1
|
|
7083
7085
|
};
|
|
7084
7086
|
}
|
|
7085
7087
|
const uc = { class: "ao-project-overview" }, cc = { class: "ao-project" }, dc = { class: "ao-project__body" }, vc = { class: "ao-project__col-header" }, mc = { class: "ao-project__col ao-project__col--phases" }, fc = { class: "ao-project__col-title" }, hc = { class: "ao-project__col ao-project__col--milestones" }, pc = { class: "ao-project__col-title" }, Cc = { class: "ao-project__phases" }, _c = /* @__PURE__ */ Y({
|
|
@@ -7208,7 +7210,7 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7208
7210
|
}, $c = {
|
|
7209
7211
|
key: 1,
|
|
7210
7212
|
class: "ao-card-feed__deadline"
|
|
7211
|
-
}, Mc = { class: "ao-card-feed__footer" }, kc = { class: "ao-card-feed__footer-row" },
|
|
7213
|
+
}, Mc = { class: "ao-card-feed__footer" }, kc = { class: "ao-card-feed__footer-row" }, Tc = { class: "ao-assignees" }, Sc = {
|
|
7212
7214
|
key: 0,
|
|
7213
7215
|
class: "ao-assignee"
|
|
7214
7216
|
}, Ac = {
|
|
@@ -7269,44 +7271,44 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7269
7271
|
class: "ao-card-feed__project",
|
|
7270
7272
|
variant: "solid",
|
|
7271
7273
|
color: "primary"
|
|
7272
|
-
}, null, 8, ["label"])) :
|
|
7274
|
+
}, null, 8, ["label"])) : T("", !0),
|
|
7273
7275
|
h.important ? (c(), U(ie, {
|
|
7274
7276
|
key: 1,
|
|
7275
7277
|
name: "FlagRounded",
|
|
7276
7278
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
7277
7279
|
size: "sm"
|
|
7278
|
-
})) :
|
|
7280
|
+
})) : T("", !0),
|
|
7279
7281
|
h.$slots.secondary ? (c(), f("div", yc, [
|
|
7280
7282
|
K(h.$slots, "secondary")
|
|
7281
|
-
])) :
|
|
7283
|
+
])) : T("", !0)
|
|
7282
7284
|
])
|
|
7283
7285
|
]),
|
|
7284
7286
|
default: q(() => [
|
|
7285
7287
|
r("div", bc, [
|
|
7286
|
-
n.value ? (c(), f("span", wc, R(n.value), 1)) :
|
|
7288
|
+
n.value ? (c(), f("span", wc, R(n.value), 1)) : T("", !0),
|
|
7287
7289
|
M(ve, {
|
|
7288
7290
|
title: h.name,
|
|
7289
7291
|
level: 5,
|
|
7290
7292
|
"is-editable": !0,
|
|
7291
7293
|
"onUpdate:title": s
|
|
7292
7294
|
}, null, 8, ["title"]),
|
|
7293
|
-
h.deadline ? (c(), f("span", $c, R(i.value), 1)) :
|
|
7295
|
+
h.deadline ? (c(), f("span", $c, R(i.value), 1)) : T("", !0)
|
|
7294
7296
|
])
|
|
7295
7297
|
]),
|
|
7296
7298
|
footer: q(() => [
|
|
7297
7299
|
r("div", Mc, [
|
|
7298
7300
|
r("div", kc, [
|
|
7299
|
-
r("ul",
|
|
7301
|
+
r("ul", Tc, [
|
|
7300
7302
|
(c(!0), f(oe, null, he(l.value, (w) => (c(), f(oe, {
|
|
7301
7303
|
key: w.id
|
|
7302
7304
|
}, [
|
|
7303
|
-
w ? (c(), f("li",
|
|
7305
|
+
w ? (c(), f("li", Sc, [
|
|
7304
7306
|
M(tt, {
|
|
7305
7307
|
"user-name": o(w),
|
|
7306
7308
|
"is-closable": !0,
|
|
7307
7309
|
onClose: () => v(w.id)
|
|
7308
7310
|
}, null, 8, ["user-name", "onClose"])
|
|
7309
|
-
])) :
|
|
7311
|
+
])) : T("", !0)
|
|
7310
7312
|
], 64))), 128))
|
|
7311
7313
|
]),
|
|
7312
7314
|
h.comments || h.attachments ? (c(), f("ul", Ac, [
|
|
@@ -7316,15 +7318,15 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7316
7318
|
size: "sm"
|
|
7317
7319
|
}),
|
|
7318
7320
|
r("span", Oc, R(h.comments), 1)
|
|
7319
|
-
])) :
|
|
7321
|
+
])) : T("", !0),
|
|
7320
7322
|
h.attachments ? (c(), f("li", Lc, [
|
|
7321
7323
|
M(ie, {
|
|
7322
7324
|
name: "AttachFileRounded",
|
|
7323
7325
|
size: "sm"
|
|
7324
7326
|
}),
|
|
7325
7327
|
r("span", Ec, R(h.attachments), 1)
|
|
7326
|
-
])) :
|
|
7327
|
-
])) :
|
|
7328
|
+
])) : T("", !0)
|
|
7329
|
+
])) : T("", !0)
|
|
7328
7330
|
]),
|
|
7329
7331
|
r("div", Vc, [
|
|
7330
7332
|
h.tasks ? (c(), f("div", Hc, [
|
|
@@ -7339,7 +7341,7 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7339
7341
|
percentages: p.value,
|
|
7340
7342
|
class: "ao-card-feed__progress"
|
|
7341
7343
|
}, null, 8, ["percentages"])
|
|
7342
|
-
])) :
|
|
7344
|
+
])) : T("", !0)
|
|
7343
7345
|
])
|
|
7344
7346
|
])
|
|
7345
7347
|
]),
|
|
@@ -7347,7 +7349,7 @@ const gc = { class: "ao-card-feed__header" }, yc = {
|
|
|
7347
7349
|
}));
|
|
7348
7350
|
}
|
|
7349
7351
|
});
|
|
7350
|
-
const Nc = { class: "ao-project-milestone" }, Bc = { class: "ao-project-milestone__header" }, Zc = { class: "ao-project-milestone__title" }, Uc = { class: "ao-project-milestone__body" }, jc = { class: "ao-project-milestone__activities" }, Rc = { class: "ao-project-milestone__footer" },
|
|
7352
|
+
const Nc = { class: "ao-project-milestone" }, Bc = { class: "ao-project-milestone__header" }, Zc = { class: "ao-project-milestone__title" }, Uc = { class: "ao-project-milestone__body" }, jc = { class: "ao-project-milestone__activities" }, Rc = { class: "ao-project-milestone__footer" }, S1 = /* @__PURE__ */ Y({
|
|
7351
7353
|
__name: "AoProjectOverviewMilestoneDetails",
|
|
7352
7354
|
props: {
|
|
7353
7355
|
milestoneId: {},
|
|
@@ -7463,7 +7465,7 @@ const qc = { class: "ao-comment" }, Fc = { class: "ao-comment__body" }, zc = ["c
|
|
|
7463
7465
|
key: 0,
|
|
7464
7466
|
"user-name": s.value,
|
|
7465
7467
|
class: "ao-comment__avatar"
|
|
7466
|
-
}, null, 8, ["user-name"])) :
|
|
7468
|
+
}, null, 8, ["user-name"])) : T("", !0),
|
|
7467
7469
|
r("div", Fc, [
|
|
7468
7470
|
r("p", {
|
|
7469
7471
|
ref_key: "commentContent",
|
|
@@ -7505,7 +7507,7 @@ const qc = { class: "ao-comment" }, Fc = { class: "ao-comment__body" }, zc = ["c
|
|
|
7505
7507
|
onClick: H(i)
|
|
7506
7508
|
}, null, 8, ["label", "onClick"])
|
|
7507
7509
|
], 64))
|
|
7508
|
-
])) :
|
|
7510
|
+
])) : T("", !0)
|
|
7509
7511
|
]));
|
|
7510
7512
|
}
|
|
7511
7513
|
});
|
|
@@ -7555,7 +7557,7 @@ const Kc = { class: "ao-comments" }, xc = {
|
|
|
7555
7557
|
onEdit: (y) => o(h.id, y),
|
|
7556
7558
|
onRemove: () => v(h.id)
|
|
7557
7559
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
7558
|
-
])) :
|
|
7560
|
+
])) : T("", !0),
|
|
7559
7561
|
r("div", Xc, [
|
|
7560
7562
|
r("form", {
|
|
7561
7563
|
class: "ao-comments__form",
|
|
@@ -7679,7 +7681,7 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7679
7681
|
])
|
|
7680
7682
|
]),
|
|
7681
7683
|
_: 1
|
|
7682
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) :
|
|
7684
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) : T("", !0);
|
|
7683
7685
|
}
|
|
7684
7686
|
}), dt = {
|
|
7685
7687
|
TEMPLATES: "templates",
|
|
@@ -7722,7 +7724,7 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7722
7724
|
{
|
|
7723
7725
|
path: ":phaseId/:milestoneId",
|
|
7724
7726
|
name: Qe.milestone,
|
|
7725
|
-
component:
|
|
7727
|
+
component: S1,
|
|
7726
7728
|
props: !0
|
|
7727
7729
|
},
|
|
7728
7730
|
{
|
|
@@ -7730,7 +7732,7 @@ const ad = { class: "ao-fieldset" }, nd = { class: "ao-fieldset__title" }, sd =
|
|
|
7730
7732
|
name: Qe.activity,
|
|
7731
7733
|
props: { default: !0, modal: !0 },
|
|
7732
7734
|
components: {
|
|
7733
|
-
default:
|
|
7735
|
+
default: S1,
|
|
7734
7736
|
modal: sd
|
|
7735
7737
|
}
|
|
7736
7738
|
}
|
|
@@ -7836,7 +7838,7 @@ const od = { class: "ao-col-header" }, rd = /* @__PURE__ */ Y({
|
|
|
7836
7838
|
class: "ao-col-header__items",
|
|
7837
7839
|
variant: "solid",
|
|
7838
7840
|
color: "primary"
|
|
7839
|
-
}, null, 8, ["label"])) :
|
|
7841
|
+
}, null, 8, ["label"])) : T("", !0)
|
|
7840
7842
|
]));
|
|
7841
7843
|
}
|
|
7842
7844
|
});
|
|
@@ -7956,7 +7958,7 @@ const gd = {
|
|
|
7956
7958
|
}, kd = {
|
|
7957
7959
|
key: 1,
|
|
7958
7960
|
class: "ao-list-kanban__footer"
|
|
7959
|
-
},
|
|
7961
|
+
}, Td = /* @__PURE__ */ Y({
|
|
7960
7962
|
__name: "AoListKanban",
|
|
7961
7963
|
props: {
|
|
7962
7964
|
list: {},
|
|
@@ -8004,10 +8006,10 @@ const gd = {
|
|
|
8004
8006
|
title: v.title,
|
|
8005
8007
|
level: 3,
|
|
8006
8008
|
items: (u = v.list) == null ? void 0 : u.length
|
|
8007
|
-
}, null, 8, ["title", "items"])) :
|
|
8009
|
+
}, null, 8, ["title", "items"])) : T("", !0)
|
|
8008
8010
|
])
|
|
8009
8011
|
];
|
|
8010
|
-
}) :
|
|
8012
|
+
}) : T("", !0),
|
|
8011
8013
|
M(H(ht), Pe({
|
|
8012
8014
|
class: "ao-list-kanban__list",
|
|
8013
8015
|
list: v.list,
|
|
@@ -8075,11 +8077,11 @@ const gd = {
|
|
|
8075
8077
|
onClick: d[0] || (d[0] = (u) => v.$emit("add"))
|
|
8076
8078
|
}, null, 8, ["label"])
|
|
8077
8079
|
])
|
|
8078
|
-
])) :
|
|
8080
|
+
])) : T("", !0)
|
|
8079
8081
|
]));
|
|
8080
8082
|
}
|
|
8081
8083
|
});
|
|
8082
|
-
const
|
|
8084
|
+
const Sd = { class: "ao-field ao-search-field" }, Ad = ["value", "placeholder", "onKeypress"], Id = /* @__PURE__ */ Y({
|
|
8083
8085
|
__name: "AoSearchField",
|
|
8084
8086
|
props: {
|
|
8085
8087
|
modelValue: {},
|
|
@@ -8094,7 +8096,7 @@ const Td = { class: "ao-field ao-search-field" }, Ad = ["value", "placeholder",
|
|
|
8094
8096
|
}, n = fd(s, t.delay), l = (i) => {
|
|
8095
8097
|
e("clear", i);
|
|
8096
8098
|
};
|
|
8097
|
-
return (i, o) => (c(), f("div",
|
|
8099
|
+
return (i, o) => (c(), f("div", Sd, [
|
|
8098
8100
|
r("input", {
|
|
8099
8101
|
value: i.modelValue,
|
|
8100
8102
|
type: "text",
|
|
@@ -8136,7 +8138,7 @@ function Od(a) {
|
|
|
8136
8138
|
const Ld = Symbol.for("FeedStore");
|
|
8137
8139
|
function Ed(a) {
|
|
8138
8140
|
const e = Od(a);
|
|
8139
|
-
return
|
|
8141
|
+
return Ta(Ld, e), e;
|
|
8140
8142
|
}
|
|
8141
8143
|
const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { class: "ao-feed__body" }, Pd = { class: "ao-field" }, Nd = { class: "ao-field__label" }, Bd = { class: "ao-fieldset" }, Zd = { class: "ao-field" }, Ud = { class: "ao-field__label" }, jd = { class: "ao-fieldset" }, Rd = { class: "ao-fieldset__title" }, Jd = /* @__PURE__ */ Y({
|
|
8142
8144
|
__name: "AoFeed",
|
|
@@ -8148,16 +8150,17 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8148
8150
|
activityTypes: {},
|
|
8149
8151
|
users: {},
|
|
8150
8152
|
userId: {},
|
|
8151
|
-
searchText: { default: "" }
|
|
8153
|
+
searchText: { default: "" },
|
|
8154
|
+
isTaskCheckable: { type: Boolean }
|
|
8152
8155
|
},
|
|
8153
8156
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
8154
8157
|
setup(a, { emit: e }) {
|
|
8155
8158
|
const t = a, { t: s } = Re(), n = ct(t, "activities"), { selectActivity: l, selectedActivity: i } = Ed(n), o = ee({});
|
|
8156
8159
|
fe(
|
|
8157
8160
|
[() => t.statuses, () => t.activities],
|
|
8158
|
-
([
|
|
8161
|
+
([k, j]) => {
|
|
8159
8162
|
o.value = Object.fromEntries(
|
|
8160
|
-
|
|
8163
|
+
k.map((le) => [
|
|
8161
8164
|
le.id,
|
|
8162
8165
|
j.filter((g) => g.status.id === le.id)
|
|
8163
8166
|
])
|
|
@@ -8165,119 +8168,119 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8165
8168
|
},
|
|
8166
8169
|
{ immediate: !0 }
|
|
8167
8170
|
);
|
|
8168
|
-
const v = (
|
|
8171
|
+
const v = (k) => {
|
|
8169
8172
|
var V, G;
|
|
8170
8173
|
const j = (V = t.activities) == null ? void 0 : V.at(-1), le = j ? we.LexoRank.parse(j.rank).genNext() : we.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, P = {
|
|
8171
8174
|
name: s("activity.defaultName", { idx: g + 1 }),
|
|
8172
8175
|
rank: le.format(),
|
|
8173
|
-
statusId:
|
|
8176
|
+
statusId: k.id
|
|
8174
8177
|
};
|
|
8175
8178
|
e("addActivity", P);
|
|
8176
|
-
}, d = (
|
|
8177
|
-
e("update:filters", { ...t.filters, [
|
|
8178
|
-
}, u = _(() => t.projects.map((
|
|
8179
|
-
value:
|
|
8180
|
-
label:
|
|
8181
|
-
}))), p = _(() => t.activityTypes.map((
|
|
8182
|
-
value:
|
|
8183
|
-
label:
|
|
8184
|
-
}))), h = _(() => t.users.map((
|
|
8185
|
-
value:
|
|
8186
|
-
label: `${
|
|
8187
|
-
}))), y = (
|
|
8188
|
-
i.value && e("update:activity",
|
|
8189
|
-
}, w = (
|
|
8190
|
-
e("update:activity",
|
|
8191
|
-
}, I = ee(null), E = (
|
|
8179
|
+
}, d = (k, j) => {
|
|
8180
|
+
e("update:filters", { ...t.filters, [k]: j });
|
|
8181
|
+
}, u = _(() => t.projects.map((k) => ({
|
|
8182
|
+
value: k.id,
|
|
8183
|
+
label: k.name
|
|
8184
|
+
}))), p = _(() => t.activityTypes.map((k) => ({
|
|
8185
|
+
value: k.id,
|
|
8186
|
+
label: k.name
|
|
8187
|
+
}))), h = _(() => t.users.map((k) => ({
|
|
8188
|
+
value: k.id,
|
|
8189
|
+
label: `${k.firstName} ${k.lastName}`
|
|
8190
|
+
}))), y = (k) => {
|
|
8191
|
+
i.value && e("update:activity", k);
|
|
8192
|
+
}, w = (k) => {
|
|
8193
|
+
e("update:activity", k);
|
|
8194
|
+
}, I = ee(null), E = (k) => {
|
|
8192
8195
|
i.value && e("update:activity", {
|
|
8193
8196
|
id: i.value.id,
|
|
8194
|
-
name:
|
|
8197
|
+
name: k
|
|
8195
8198
|
});
|
|
8196
|
-
}, b = (
|
|
8197
|
-
e("archiveActivity",
|
|
8199
|
+
}, b = (k) => {
|
|
8200
|
+
e("archiveActivity", k);
|
|
8198
8201
|
}, $ = _({
|
|
8199
8202
|
get() {
|
|
8200
|
-
var
|
|
8201
|
-
return (
|
|
8203
|
+
var k;
|
|
8204
|
+
return (k = i.value) == null ? void 0 : k.deadline;
|
|
8202
8205
|
},
|
|
8203
|
-
set(
|
|
8206
|
+
set(k) {
|
|
8204
8207
|
i.value && y({
|
|
8205
8208
|
id: i.value.id,
|
|
8206
|
-
deadline:
|
|
8209
|
+
deadline: k
|
|
8207
8210
|
});
|
|
8208
8211
|
}
|
|
8209
|
-
}), D = (
|
|
8210
|
-
e("clear:searchText",
|
|
8211
|
-
}, X = (
|
|
8212
|
-
i.value && e("addSubtask",
|
|
8213
|
-
}, ne = (
|
|
8214
|
-
i.value && e("updateSubtask",
|
|
8215
|
-
}, C = (
|
|
8216
|
-
i.value && e("deleteSubtask",
|
|
8217
|
-
}, L = (
|
|
8218
|
-
e("addFiles",
|
|
8219
|
-
}, B = (
|
|
8220
|
-
e("removeFile",
|
|
8221
|
-
}, J = (
|
|
8212
|
+
}), D = (k) => {
|
|
8213
|
+
e("clear:searchText", k);
|
|
8214
|
+
}, X = (k) => {
|
|
8215
|
+
i.value && e("addSubtask", k);
|
|
8216
|
+
}, ne = (k) => {
|
|
8217
|
+
i.value && e("updateSubtask", k);
|
|
8218
|
+
}, C = (k) => {
|
|
8219
|
+
i.value && e("deleteSubtask", k);
|
|
8220
|
+
}, L = (k) => {
|
|
8221
|
+
e("addFiles", k);
|
|
8222
|
+
}, B = (k) => {
|
|
8223
|
+
e("removeFile", k);
|
|
8224
|
+
}, J = (k) => {
|
|
8222
8225
|
i.value && e("addComment", {
|
|
8223
|
-
...
|
|
8226
|
+
...k,
|
|
8224
8227
|
activityId: i.value.id
|
|
8225
8228
|
});
|
|
8226
|
-
}, se = (
|
|
8229
|
+
}, se = (k) => {
|
|
8227
8230
|
const { id: j } = i.value || {};
|
|
8228
|
-
j && e("updateComment",
|
|
8229
|
-
}, me = (
|
|
8231
|
+
j && e("updateComment", k);
|
|
8232
|
+
}, me = (k) => {
|
|
8230
8233
|
const { id: j } = i.value || {};
|
|
8231
|
-
j && e("removeComment",
|
|
8232
|
-
}, N = _(() => t.statuses.map((
|
|
8233
|
-
value:
|
|
8234
|
-
label:
|
|
8235
|
-
}))), x = (
|
|
8234
|
+
j && e("removeComment", k);
|
|
8235
|
+
}, N = _(() => t.statuses.map((k) => ({
|
|
8236
|
+
value: k.id,
|
|
8237
|
+
label: k.name
|
|
8238
|
+
}))), x = (k) => {
|
|
8236
8239
|
i.value && e("update:activity", {
|
|
8237
8240
|
id: i.value.id,
|
|
8238
|
-
statusId:
|
|
8241
|
+
statusId: k
|
|
8239
8242
|
});
|
|
8240
8243
|
};
|
|
8241
|
-
return (
|
|
8244
|
+
return (k, j) => {
|
|
8242
8245
|
var le;
|
|
8243
8246
|
return c(), f("div", Vd, [
|
|
8244
8247
|
M(Zt, null, {
|
|
8245
8248
|
primary: q(() => [
|
|
8246
8249
|
M(Id, {
|
|
8247
|
-
"model-value":
|
|
8248
|
-
placeholder:
|
|
8249
|
-
"onUpdate:modelValue": j[0] || (j[0] = (g) =>
|
|
8250
|
+
"model-value": k.searchText,
|
|
8251
|
+
placeholder: k.$t("feed.search.placeholder"),
|
|
8252
|
+
"onUpdate:modelValue": j[0] || (j[0] = (g) => k.$emit("update:searchText", g)),
|
|
8250
8253
|
onClear: D
|
|
8251
8254
|
}, null, 8, ["model-value", "placeholder"]),
|
|
8252
8255
|
r("div", Hd, [
|
|
8253
8256
|
M(H(pe), {
|
|
8254
|
-
"model-value":
|
|
8257
|
+
"model-value": k.filters[H(Ke).project],
|
|
8255
8258
|
mode: "tags",
|
|
8256
8259
|
options: u.value,
|
|
8257
8260
|
"close-on-select": !1,
|
|
8258
8261
|
searchable: !0,
|
|
8259
8262
|
class: "ao-feed__filter",
|
|
8260
|
-
placeholder:
|
|
8263
|
+
placeholder: k.$t("feed.filters.project.placeholder"),
|
|
8261
8264
|
"onUpdate:modelValue": j[1] || (j[1] = (g) => d(H(Ke).project, g))
|
|
8262
8265
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
8263
8266
|
M(H(pe), {
|
|
8264
|
-
"model-value":
|
|
8267
|
+
"model-value": k.filters[H(Ke).type],
|
|
8265
8268
|
mode: "tags",
|
|
8266
8269
|
options: p.value,
|
|
8267
8270
|
"close-on-select": !1,
|
|
8268
8271
|
searchable: !0,
|
|
8269
8272
|
class: "ao-feed__filter",
|
|
8270
|
-
placeholder:
|
|
8273
|
+
placeholder: k.$t("feed.filters.activityType.placeholder"),
|
|
8271
8274
|
"onUpdate:modelValue": j[2] || (j[2] = (g) => d(H(Ke).type, g))
|
|
8272
8275
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
8273
8276
|
M(H(pe), {
|
|
8274
|
-
"model-value":
|
|
8277
|
+
"model-value": k.filters[H(Ke).assignee],
|
|
8275
8278
|
mode: "tags",
|
|
8276
8279
|
options: h.value,
|
|
8277
8280
|
"close-on-select": !1,
|
|
8278
8281
|
searchable: !0,
|
|
8279
8282
|
class: "ao-feed__filter",
|
|
8280
|
-
placeholder:
|
|
8283
|
+
placeholder: k.$t("feed.filters.assignee.placeholder"),
|
|
8281
8284
|
"onUpdate:modelValue": j[3] || (j[3] = (g) => d(H(Ke).assignee, g))
|
|
8282
8285
|
}, {
|
|
8283
8286
|
tag: q(({ option: g, handleTagRemove: P }) => [
|
|
@@ -8294,13 +8297,13 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8294
8297
|
_: 1
|
|
8295
8298
|
}),
|
|
8296
8299
|
r("div", Dd, [
|
|
8297
|
-
(c(!0), f(oe, null, he(
|
|
8300
|
+
(c(!0), f(oe, null, he(k.statuses, (g) => (c(), U(Td, {
|
|
8298
8301
|
key: g.id,
|
|
8299
8302
|
status: g,
|
|
8300
8303
|
list: o.value[g.id],
|
|
8301
8304
|
title: g.name,
|
|
8302
|
-
"footer-label":
|
|
8303
|
-
users:
|
|
8305
|
+
"footer-label": k.$t("feed.activity.add"),
|
|
8306
|
+
users: k.users,
|
|
8304
8307
|
onAdd: () => v(g),
|
|
8305
8308
|
onSelectActivity: H(l),
|
|
8306
8309
|
onArchiveActivity: b,
|
|
@@ -8314,7 +8317,8 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8314
8317
|
"activity-types": p.value,
|
|
8315
8318
|
"milestone-id": (le = H(i).milestone) == null ? void 0 : le.id,
|
|
8316
8319
|
"template-activities": n.value,
|
|
8317
|
-
users:
|
|
8320
|
+
users: k.users,
|
|
8321
|
+
"is-task-checkable": k.isTaskCheckable,
|
|
8318
8322
|
onClose: j[5] || (j[5] = () => H(l)(null)),
|
|
8319
8323
|
"onUpdate:activity": y,
|
|
8320
8324
|
onAddSubtask: X,
|
|
@@ -8333,7 +8337,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8333
8337
|
"onUpdate:title": E
|
|
8334
8338
|
}, null, 8, ["title"]),
|
|
8335
8339
|
r("label", Pd, [
|
|
8336
|
-
r("span", Nd, R(
|
|
8340
|
+
r("span", Nd, R(k.$t("activity.status.label")), 1),
|
|
8337
8341
|
M(H(pe), {
|
|
8338
8342
|
options: N.value,
|
|
8339
8343
|
value: H(i).status.id,
|
|
@@ -8344,7 +8348,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8344
8348
|
default: q(() => [
|
|
8345
8349
|
r("fieldset", Bd, [
|
|
8346
8350
|
r("label", Zd, [
|
|
8347
|
-
r("span", Ud, R(
|
|
8351
|
+
r("span", Ud, R(k.$t("activity.deadline.label")), 1),
|
|
8348
8352
|
xe(r("input", {
|
|
8349
8353
|
"onUpdate:modelValue": j[4] || (j[4] = (g) => $.value = g),
|
|
8350
8354
|
class: "ao-field__input",
|
|
@@ -8364,13 +8368,13 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8364
8368
|
M(ie, { name: "ChatOutline" }),
|
|
8365
8369
|
M(ve, {
|
|
8366
8370
|
level: 4,
|
|
8367
|
-
title:
|
|
8371
|
+
title: k.$t("activity.comments.title")
|
|
8368
8372
|
}, null, 8, ["title"])
|
|
8369
8373
|
]),
|
|
8370
8374
|
M(W1, {
|
|
8371
8375
|
comments: H(i).comments,
|
|
8372
|
-
users:
|
|
8373
|
-
"user-id":
|
|
8376
|
+
users: k.users,
|
|
8377
|
+
"user-id": k.userId,
|
|
8374
8378
|
onCreateComment: J,
|
|
8375
8379
|
onUpdateComment: se,
|
|
8376
8380
|
onRemoveComment: me
|
|
@@ -8378,7 +8382,7 @@ const Vd = { class: "ao-feed" }, Hd = { class: "ao-feed__filters" }, Dd = { clas
|
|
|
8378
8382
|
])
|
|
8379
8383
|
]),
|
|
8380
8384
|
_: 1
|
|
8381
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users"])) :
|
|
8385
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "is-task-checkable"])) : T("", !0)
|
|
8382
8386
|
]))
|
|
8383
8387
|
]);
|
|
8384
8388
|
};
|
|
@@ -8389,7 +8393,7 @@ export {
|
|
|
8389
8393
|
Z7 as AoTemplateDetails,
|
|
8390
8394
|
Yd as AoTemplates,
|
|
8391
8395
|
ld as AoTemplatesList,
|
|
8392
|
-
|
|
8396
|
+
S7 as TemplateItemTypeEnum,
|
|
8393
8397
|
Kd as activityFeedStatus,
|
|
8394
8398
|
Gd as durationTypes,
|
|
8395
8399
|
Ke as feedFilterTypes,
|
|
@@ -8399,7 +8403,7 @@ export {
|
|
|
8399
8403
|
$7 as milestoneStatus,
|
|
8400
8404
|
Qe as projectOverviewRoutes,
|
|
8401
8405
|
M7 as ruleComparators,
|
|
8402
|
-
|
|
8406
|
+
T7 as ruleDurationUnits,
|
|
8403
8407
|
k7 as ruleTriggerTypes,
|
|
8404
8408
|
ue as templateItemType,
|
|
8405
8409
|
dt as templateRouteNames
|