@26lights/orcha 0.6.0 → 0.7.0
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.css +1 -1
- package/dist/orcha.es.js +694 -682
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoTitle.vue.d.ts +11 -0
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e1, openBlock as d, createBlock as
|
|
1
|
+
import { defineComponent as e1, openBlock as d, createBlock as F, unref as Y, mergeProps as k1, createElementBlock as C, createElementVNode as r, pushScopeId as wt, popScopeId as $t, createStaticVNode as Mt, computed as _, resolveDynamicComponent as G1, normalizeClass as j, renderSlot as K, toDisplayString as x, createCommentVNode as A, ref as J, watch as c1, nextTick as H1, withKeys as le, toHandlers as It, withCtx as G, createTextVNode as Me, createVNode as V, withModifiers as A1, Fragment as f1, renderList as $1, toRefs as p1, getCurrentInstance as N1, onMounted as Ie, onUnmounted as St, withDirectives as ae, vModelText as $e, vModelCheckbox as Lt, toRef as ye, Teleport as Ue } from "vue";
|
|
2
2
|
import { RouterView as At } from "vue-router";
|
|
3
3
|
import ne from "vuedraggable";
|
|
4
4
|
const _o = /* @__PURE__ */ e1({
|
|
@@ -7,29 +7,29 @@ const _o = /* @__PURE__ */ e1({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
return (e, t) => (d(), Y(
|
|
10
|
+
return (e, t) => (d(), F(Y(At), k1({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), M = (s, e) => {
|
|
13
13
|
const t = s.__vccOpts || s;
|
|
14
14
|
for (const [n, a] of e)
|
|
15
15
|
t[n] = a;
|
|
16
16
|
return t;
|
|
17
|
-
}, Vt = {},
|
|
17
|
+
}, Vt = {}, Et = {
|
|
18
18
|
width: "24",
|
|
19
19
|
height: "24",
|
|
20
20
|
viewBox: "0 0 24 24",
|
|
21
21
|
fill: "none",
|
|
22
22
|
xmlns: "http://www.w3.org/2000/svg"
|
|
23
|
-
},
|
|
23
|
+
}, Tt = /* @__PURE__ */ r("path", {
|
|
24
24
|
d: "M12 13C12.9667 13 13.7917 12.6583 14.475 11.975C15.1583 11.2917 15.5 10.4667 15.5 9.5C15.5 8.53333 15.1583 7.70833 14.475 7.025C13.7917 6.34167 12.9667 6 12 6C11.0333 6 10.2083 6.34167 9.525 7.025C8.84167 7.70833 8.5 8.53333 8.5 9.5C8.5 10.4667 8.84167 11.2917 9.525 11.975C10.2083 12.6583 11.0333 13 12 13ZM3 21V3H21V21H3ZM5 19H19V17.85C18.1 16.9667 17.054 16.271 15.862 15.763C14.67 15.255 13.3827 15.0007 12 15C10.6167 15 9.329 15.2543 8.137 15.763C6.945 16.2717 5.89933 16.9673 5 17.85V19Z",
|
|
25
25
|
fill: "black"
|
|
26
|
-
}, null, -1),
|
|
27
|
-
|
|
26
|
+
}, null, -1), kt = [
|
|
27
|
+
Tt
|
|
28
28
|
];
|
|
29
|
-
function
|
|
30
|
-
return d(), C("svg",
|
|
29
|
+
function Ht(s, e) {
|
|
30
|
+
return d(), C("svg", Et, kt);
|
|
31
31
|
}
|
|
32
|
-
const Ot = /* @__PURE__ */ M(Vt, [["render",
|
|
32
|
+
const Ot = /* @__PURE__ */ M(Vt, [["render", Ht]]), Bt = {}, Zt = {
|
|
33
33
|
width: "24",
|
|
34
34
|
height: "24",
|
|
35
35
|
viewBox: "0 0 24 24",
|
|
@@ -149,22 +149,22 @@ const w2 = /* @__PURE__ */ M(_2, [["render", y2]]), $2 = {}, M2 = {
|
|
|
149
149
|
function L2(s, e) {
|
|
150
150
|
return d(), C("svg", M2, S2);
|
|
151
151
|
}
|
|
152
|
-
const A2 = /* @__PURE__ */ M($2, [["render", L2]]), V2 = {},
|
|
152
|
+
const A2 = /* @__PURE__ */ M($2, [["render", L2]]), V2 = {}, E2 = {
|
|
153
153
|
width: "24",
|
|
154
154
|
height: "24",
|
|
155
155
|
viewBox: "0 0 24 24",
|
|
156
156
|
fill: "none",
|
|
157
157
|
xmlns: "http://www.w3.org/2000/svg"
|
|
158
|
-
},
|
|
158
|
+
}, T2 = /* @__PURE__ */ r("path", {
|
|
159
159
|
d: "M11.3 19.3C11.1167 19.1167 11.0207 18.8834 11.012 18.6C11.004 18.3167 11.0917 18.0834 11.275 17.9L16.175 13H5C4.71667 13 4.479 12.904 4.287 12.712C4.09567 12.5207 4 12.2834 4 12C4 11.7167 4.09567 11.479 4.287 11.287C4.479 11.0957 4.71667 11 5 11H16.175L11.275 6.10005C11.0917 5.91672 11.004 5.68338 11.012 5.40005C11.0207 5.11672 11.1167 4.88338 11.3 4.70005C11.4833 4.51672 11.7167 4.42505 12 4.42505C12.2833 4.42505 12.5167 4.51672 12.7 4.70005L19.3 11.3C19.4 11.3834 19.471 11.4874 19.513 11.612C19.5543 11.7374 19.575 11.8667 19.575 12C19.575 12.1334 19.5543 12.2584 19.513 12.375C19.471 12.4917 19.4 12.6 19.3 12.7L12.7 19.3C12.5167 19.4834 12.2833 19.575 12 19.575C11.7167 19.575 11.4833 19.4834 11.3 19.3V19.3Z",
|
|
160
160
|
fill: "black"
|
|
161
|
-
}, null, -1),
|
|
162
|
-
|
|
161
|
+
}, null, -1), k2 = [
|
|
162
|
+
T2
|
|
163
163
|
];
|
|
164
|
-
function
|
|
165
|
-
return d(), C("svg",
|
|
164
|
+
function H2(s, e) {
|
|
165
|
+
return d(), C("svg", E2, k2);
|
|
166
166
|
}
|
|
167
|
-
const O2 = /* @__PURE__ */ M(V2, [["render",
|
|
167
|
+
const O2 = /* @__PURE__ */ M(V2, [["render", H2]]), B2 = {}, Z2 = {
|
|
168
168
|
width: "24",
|
|
169
169
|
height: "24",
|
|
170
170
|
viewBox: "0 0 24 24",
|
|
@@ -284,22 +284,22 @@ const ws = /* @__PURE__ */ M(_s, [["render", ys]]), $s = {}, Ms = {
|
|
|
284
284
|
function Ls(s, e) {
|
|
285
285
|
return d(), C("svg", Ms, Ss);
|
|
286
286
|
}
|
|
287
|
-
const As = /* @__PURE__ */ M($s, [["render", Ls]]), Vs = {},
|
|
287
|
+
const As = /* @__PURE__ */ M($s, [["render", Ls]]), Vs = {}, Es = {
|
|
288
288
|
width: "24",
|
|
289
289
|
height: "24",
|
|
290
290
|
viewBox: "0 0 24 24",
|
|
291
291
|
fill: "none",
|
|
292
292
|
xmlns: "http://www.w3.org/2000/svg"
|
|
293
|
-
},
|
|
293
|
+
}, Ts = /* @__PURE__ */ r("path", {
|
|
294
294
|
d: "M14 8.99989C13.7167 8.99989 13.479 8.90389 13.287 8.71189C13.095 8.51989 12.9994 8.28255 13 7.99989C13 7.71655 13.096 7.47889 13.288 7.28689C13.48 7.09489 13.7174 6.99922 14 6.99989H21C21.2834 6.99989 21.521 7.09589 21.713 7.28789C21.905 7.47989 22.0007 7.71722 22 7.99989C22 8.28322 21.904 8.52089 21.712 8.71289C21.52 8.90489 21.2827 9.00055 21 8.99989H14ZM14 16.9999C13.7167 16.9999 13.479 16.9039 13.287 16.7119C13.095 16.5199 12.9994 16.2826 13 15.9999C13 15.7166 13.096 15.4789 13.288 15.2869C13.48 15.0949 13.7174 14.9992 14 14.9999H21C21.2834 14.9999 21.521 15.0959 21.713 15.2879C21.905 15.4799 22.0007 15.7172 22 15.9999C22 16.2832 21.904 16.5209 21.712 16.7129C21.52 16.9049 21.2827 17.0006 21 16.9999H14ZM4.85005 10.2999L2.70005 8.14989C2.51672 7.96655 2.42505 7.73322 2.42505 7.44989C2.42505 7.16655 2.51672 6.93322 2.70005 6.74989C2.88338 6.56655 3.11672 6.47489 3.40005 6.47489C3.68338 6.47489 3.91672 6.56655 4.10005 6.74989L5.52505 8.17489L9.07505 4.62489C9.27505 4.42489 9.50838 4.32889 9.77505 4.33689C10.0417 4.34489 10.275 4.44922 10.475 4.64989C10.6584 4.84989 10.75 5.08322 10.75 5.34989C10.75 5.61655 10.6584 5.84989 10.475 6.04989L6.25005 10.2999C6.05005 10.4999 5.81672 10.5999 5.55005 10.5999C5.28338 10.5999 5.05005 10.4999 4.85005 10.2999ZM4.85005 18.2999L2.70005 16.1499C2.51672 15.9666 2.42505 15.7332 2.42505 15.4499C2.42505 15.1666 2.51672 14.9332 2.70005 14.7499C2.88338 14.5666 3.11672 14.4749 3.40005 14.4749C3.68338 14.4749 3.91672 14.5666 4.10005 14.7499L5.52505 16.1749L9.07505 12.6249C9.27505 12.4249 9.50838 12.3292 9.77505 12.3379C10.0417 12.3466 10.275 12.4506 10.475 12.6499C10.6584 12.8499 10.75 13.0832 10.75 13.3499C10.75 13.6166 10.6584 13.8499 10.475 14.0499L6.25005 18.2999C6.05005 18.4999 5.81672 18.5999 5.55005 18.5999C5.28338 18.5999 5.05005 18.4999 4.85005 18.2999Z",
|
|
295
295
|
fill: "black"
|
|
296
|
-
}, null, -1),
|
|
297
|
-
|
|
296
|
+
}, null, -1), ks = [
|
|
297
|
+
Ts
|
|
298
298
|
];
|
|
299
|
-
function
|
|
300
|
-
return d(), C("svg",
|
|
299
|
+
function Hs(s, e) {
|
|
300
|
+
return d(), C("svg", Es, ks);
|
|
301
301
|
}
|
|
302
|
-
const Os = /* @__PURE__ */ M(Vs, [["render",
|
|
302
|
+
const Os = /* @__PURE__ */ M(Vs, [["render", Hs]]), Bs = {}, Zs = {
|
|
303
303
|
width: "24",
|
|
304
304
|
height: "24",
|
|
305
305
|
viewBox: "0 0 24 24",
|
|
@@ -419,22 +419,22 @@ const wa = /* @__PURE__ */ M(_a, [["render", ya]]), $a = {}, Ma = {
|
|
|
419
419
|
function La(s, e) {
|
|
420
420
|
return d(), C("svg", Ma, Sa);
|
|
421
421
|
}
|
|
422
|
-
const Aa = /* @__PURE__ */ M($a, [["render", La]]), Va = {},
|
|
422
|
+
const Aa = /* @__PURE__ */ M($a, [["render", La]]), Va = {}, Ea = {
|
|
423
423
|
width: "24",
|
|
424
424
|
height: "24",
|
|
425
425
|
viewBox: "0 0 24 24",
|
|
426
426
|
fill: "none",
|
|
427
427
|
xmlns: "http://www.w3.org/2000/svg"
|
|
428
|
-
},
|
|
428
|
+
}, Ta = /* @__PURE__ */ r("path", {
|
|
429
429
|
d: "M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3043 2.75 17.863 2.75C18.4217 2.75 18.8923 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.571 21.275 6.113C21.2917 6.655 21.1083 7.11733 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4ZM14.325 9.675L13.625 8.975L15.025 10.375L14.325 9.675Z",
|
|
430
430
|
fill: "black"
|
|
431
|
-
}, null, -1),
|
|
432
|
-
|
|
431
|
+
}, null, -1), ka = [
|
|
432
|
+
Ta
|
|
433
433
|
];
|
|
434
|
-
function
|
|
435
|
-
return d(), C("svg",
|
|
434
|
+
function Ha(s, e) {
|
|
435
|
+
return d(), C("svg", Ea, ka);
|
|
436
436
|
}
|
|
437
|
-
const Oa = /* @__PURE__ */ M(Va, [["render",
|
|
437
|
+
const Oa = /* @__PURE__ */ M(Va, [["render", Ha]]), Ba = {}, Za = {
|
|
438
438
|
width: "24",
|
|
439
439
|
height: "24",
|
|
440
440
|
viewBox: "0 0 24 24",
|
|
@@ -554,22 +554,22 @@ const wl = /* @__PURE__ */ M(_l, [["render", yl]]), $l = {}, Ml = {
|
|
|
554
554
|
function Ll(s, e) {
|
|
555
555
|
return d(), C("svg", Ml, Sl);
|
|
556
556
|
}
|
|
557
|
-
const Al = /* @__PURE__ */ M($l, [["render", Ll]]), Vl = {},
|
|
557
|
+
const Al = /* @__PURE__ */ M($l, [["render", Ll]]), Vl = {}, El = {
|
|
558
558
|
width: "24",
|
|
559
559
|
height: "24",
|
|
560
560
|
viewBox: "0 0 24 24",
|
|
561
561
|
fill: "none",
|
|
562
562
|
xmlns: "http://www.w3.org/2000/svg"
|
|
563
|
-
},
|
|
563
|
+
}, Tl = /* @__PURE__ */ r("path", {
|
|
564
564
|
d: "M11 17H13V11H11V17ZM12 9C12.2833 9 12.521 8.904 12.713 8.712C12.905 8.52 13.0007 8.28267 13 8C13 7.71667 12.904 7.479 12.712 7.287C12.52 7.095 12.2827 6.99933 12 7C11.7167 7 11.479 7.096 11.287 7.288C11.095 7.48 10.9993 7.71733 11 8C11 8.28333 11.096 8.521 11.288 8.713C11.48 8.905 11.7173 9.00067 12 9ZM12 22C10.6167 22 9.31667 21.7373 8.1 21.212C6.88333 20.6867 5.825 19.9743 4.925 19.075C4.025 18.175 3.31267 17.1167 2.788 15.9C2.26333 14.6833 2.00067 13.3833 2 12C2 10.6167 2.26267 9.31667 2.788 8.1C3.31333 6.88333 4.02567 5.825 4.925 4.925C5.825 4.025 6.88333 3.31267 8.1 2.788C9.31667 2.26333 10.6167 2.00067 12 2C13.3833 2 14.6833 2.26267 15.9 2.788C17.1167 3.31333 18.175 4.02567 19.075 4.925C19.975 5.825 20.6877 6.88333 21.213 8.1C21.7383 9.31667 22.0007 10.6167 22 12C22 13.3833 21.7373 14.6833 21.212 15.9C20.6867 17.1167 19.9743 18.175 19.075 19.075C18.175 19.975 17.1167 20.6877 15.9 21.213C14.6833 21.7383 13.3833 22.0007 12 22Z",
|
|
565
565
|
fill: "black"
|
|
566
|
-
}, null, -1),
|
|
567
|
-
|
|
566
|
+
}, null, -1), kl = [
|
|
567
|
+
Tl
|
|
568
568
|
];
|
|
569
|
-
function
|
|
570
|
-
return d(), C("svg",
|
|
569
|
+
function Hl(s, e) {
|
|
570
|
+
return d(), C("svg", El, kl);
|
|
571
571
|
}
|
|
572
|
-
const Ol = /* @__PURE__ */ M(Vl, [["render",
|
|
572
|
+
const Ol = /* @__PURE__ */ M(Vl, [["render", Hl]]), Bl = {}, Zl = {
|
|
573
573
|
width: "24",
|
|
574
574
|
height: "24",
|
|
575
575
|
viewBox: "0 0 24 24",
|
|
@@ -703,10 +703,10 @@ const In = /* @__PURE__ */ M(bn, [["render", Mn]]), Sn = {}, Ln = {
|
|
|
703
703
|
}, null, -1), Vn = [
|
|
704
704
|
An
|
|
705
705
|
];
|
|
706
|
-
function
|
|
706
|
+
function En(s, e) {
|
|
707
707
|
return d(), C("svg", Ln, Vn);
|
|
708
708
|
}
|
|
709
|
-
const
|
|
709
|
+
const Tn = /* @__PURE__ */ M(Sn, [["render", En]]), kn = {}, Hn = {
|
|
710
710
|
width: "24",
|
|
711
711
|
height: "24",
|
|
712
712
|
viewBox: "0 0 24 24",
|
|
@@ -719,9 +719,9 @@ const En = /* @__PURE__ */ M(Sn, [["render", Tn]]), Hn = {}, kn = {
|
|
|
719
719
|
On
|
|
720
720
|
];
|
|
721
721
|
function Zn(s, e) {
|
|
722
|
-
return d(), C("svg",
|
|
722
|
+
return d(), C("svg", Hn, Bn);
|
|
723
723
|
}
|
|
724
|
-
const Dn = /* @__PURE__ */ M(
|
|
724
|
+
const Dn = /* @__PURE__ */ M(kn, [["render", Zn]]), Pn = {}, Nn = {
|
|
725
725
|
width: "24",
|
|
726
726
|
height: "24",
|
|
727
727
|
viewBox: "0 0 24 24",
|
|
@@ -835,10 +835,10 @@ const Ii = /* @__PURE__ */ M(bi, [["render", Mi]]), Si = {}, Li = {
|
|
|
835
835
|
}, null, -1), Vi = [
|
|
836
836
|
Ai
|
|
837
837
|
];
|
|
838
|
-
function
|
|
838
|
+
function Ei(s, e) {
|
|
839
839
|
return d(), C("svg", Li, Vi);
|
|
840
840
|
}
|
|
841
|
-
const
|
|
841
|
+
const Ti = /* @__PURE__ */ M(Si, [["render", Ei]]), ki = {}, Hi = {
|
|
842
842
|
width: "24",
|
|
843
843
|
height: "24",
|
|
844
844
|
viewBox: "0 0 24 24",
|
|
@@ -851,9 +851,9 @@ const Ei = /* @__PURE__ */ M(Si, [["render", Ti]]), Hi = {}, ki = {
|
|
|
851
851
|
Oi
|
|
852
852
|
];
|
|
853
853
|
function Zi(s, e) {
|
|
854
|
-
return d(), C("svg",
|
|
854
|
+
return d(), C("svg", Hi, Bi);
|
|
855
855
|
}
|
|
856
|
-
const Di = /* @__PURE__ */ M(
|
|
856
|
+
const Di = /* @__PURE__ */ M(ki, [["render", Zi]]), Pi = {}, Ni = {
|
|
857
857
|
width: "24",
|
|
858
858
|
height: "24",
|
|
859
859
|
viewBox: "0 0 24 24",
|
|
@@ -970,10 +970,10 @@ const I3 = /* @__PURE__ */ M(b3, [["render", M3]]), S3 = {}, L3 = {
|
|
|
970
970
|
}, null, -1), V3 = [
|
|
971
971
|
A3
|
|
972
972
|
];
|
|
973
|
-
function
|
|
973
|
+
function E3(s, e) {
|
|
974
974
|
return d(), C("svg", L3, V3);
|
|
975
975
|
}
|
|
976
|
-
const
|
|
976
|
+
const T3 = /* @__PURE__ */ M(S3, [["render", E3]]), k3 = {}, H3 = {
|
|
977
977
|
width: "24",
|
|
978
978
|
height: "24",
|
|
979
979
|
viewBox: "0 0 24 24",
|
|
@@ -986,9 +986,9 @@ const E3 = /* @__PURE__ */ M(S3, [["render", T3]]), H3 = {}, k3 = {
|
|
|
986
986
|
O3
|
|
987
987
|
];
|
|
988
988
|
function Z3(s, e) {
|
|
989
|
-
return d(), C("svg",
|
|
989
|
+
return d(), C("svg", H3, B3);
|
|
990
990
|
}
|
|
991
|
-
const D3 = /* @__PURE__ */ M(
|
|
991
|
+
const D3 = /* @__PURE__ */ M(k3, [["render", Z3]]), P3 = {}, N3 = {
|
|
992
992
|
width: "24",
|
|
993
993
|
height: "24",
|
|
994
994
|
viewBox: "0 0 24 24",
|
|
@@ -1079,7 +1079,7 @@ const t5 = /* @__PURE__ */ M(X3, [["render", e5]]), s5 = /* @__PURE__ */ Object.
|
|
|
1079
1079
|
Menu: vn,
|
|
1080
1080
|
MoreHoriz: gn,
|
|
1081
1081
|
MoreTimeRounded: In,
|
|
1082
|
-
MoreVert:
|
|
1082
|
+
MoreVert: Tn,
|
|
1083
1083
|
MountainFlagOutlineRounded: Dn,
|
|
1084
1084
|
PersonAddOutlineRounded: jn,
|
|
1085
1085
|
PictureAsPdfRounded: Yn,
|
|
@@ -1088,7 +1088,7 @@ const t5 = /* @__PURE__ */ M(X3, [["render", e5]]), s5 = /* @__PURE__ */ Object.
|
|
|
1088
1088
|
RadioButtonUnchecked: vi,
|
|
1089
1089
|
RemoveRounded: gi,
|
|
1090
1090
|
SearchRounded: Ii,
|
|
1091
|
-
SelectCheckBox:
|
|
1091
|
+
SelectCheckBox: Ti,
|
|
1092
1092
|
SendRounded: Di,
|
|
1093
1093
|
Settings: ji,
|
|
1094
1094
|
SlideshowRounded: Yi,
|
|
@@ -1097,7 +1097,7 @@ const t5 = /* @__PURE__ */ M(X3, [["render", e5]]), s5 = /* @__PURE__ */ Object.
|
|
|
1097
1097
|
TextSnippetRounded: v3,
|
|
1098
1098
|
TimerOutline: g3,
|
|
1099
1099
|
ViewComfyAltRounded: I3,
|
|
1100
|
-
ViewCompactAltRounded:
|
|
1100
|
+
ViewCompactAltRounded: T3,
|
|
1101
1101
|
ViewTimelineRounded: D3,
|
|
1102
1102
|
WarningOutlineRounded: j3,
|
|
1103
1103
|
WarningRounded: Y3,
|
|
@@ -1125,8 +1125,8 @@ const t5 = /* @__PURE__ */ M(X3, [["render", e5]]), s5 = /* @__PURE__ */ Object.
|
|
|
1125
1125
|
size: { default: ie.MD }
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(s) {
|
|
1128
|
-
const e = s, t =
|
|
1129
|
-
return (n, a) => (d(),
|
|
1128
|
+
const e = s, t = _(() => s5[e.name]);
|
|
1129
|
+
return (n, a) => (d(), F(G1(t.value), {
|
|
1130
1130
|
class: j(["ao-icon", `ao-icon--${n.size}`])
|
|
1131
1131
|
}, null, 8, ["class"]));
|
|
1132
1132
|
}
|
|
@@ -1149,7 +1149,7 @@ const n5 = ["type"], i5 = {
|
|
|
1149
1149
|
corners: { default: () => xe.ROUNDED }
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(s) {
|
|
1152
|
-
const e = s, t =
|
|
1152
|
+
const e = s, t = _(() => e.size), n = _(() => e.isLoading ? "Loading" : e.iconName);
|
|
1153
1153
|
return (a, i) => (d(), C("button", {
|
|
1154
1154
|
type: a.type,
|
|
1155
1155
|
class: j([
|
|
@@ -1164,33 +1164,33 @@ const n5 = ["type"], i5 = {
|
|
|
1164
1164
|
])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
K(a.$slots, "default", {}, () => [
|
|
1167
|
-
a.label ? (d(), C("span", i5, x(a.label), 1)) :
|
|
1167
|
+
a.label ? (d(), C("span", i5, x(a.label), 1)) : A("", !0)
|
|
1168
1168
|
]),
|
|
1169
|
-
n.value ? (d(),
|
|
1169
|
+
n.value ? (d(), F(v1, {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
name: n.value,
|
|
1172
1172
|
class: "ao-button__icon",
|
|
1173
1173
|
size: t.value
|
|
1174
|
-
}, null, 8, ["name", "size"])) :
|
|
1174
|
+
}, null, 8, ["name", "size"])) : A("", !0)
|
|
1175
1175
|
], 10, n5));
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
1178
1178
|
function o5(s) {
|
|
1179
|
-
const e = J(!1), t = J(""), n =
|
|
1179
|
+
const e = J(!1), t = J(""), n = _(() => "value" in s.value ? "value" : "innerHTML"), a = () => {
|
|
1180
1180
|
e.value = !e.value;
|
|
1181
1181
|
}, i = (p) => {
|
|
1182
1182
|
e.value = p;
|
|
1183
1183
|
}, l = (p) => async (u) => {
|
|
1184
|
-
i(!1), await
|
|
1184
|
+
i(!1), await H1(() => {
|
|
1185
1185
|
s.value[n.value] = t.value, p == null || p(u);
|
|
1186
1186
|
});
|
|
1187
1187
|
}, o = (p) => async (u) => {
|
|
1188
|
-
i(!1), await
|
|
1188
|
+
i(!1), await H1(() => {
|
|
1189
1189
|
p(s.value[n.value], u);
|
|
1190
1190
|
});
|
|
1191
1191
|
};
|
|
1192
|
-
return
|
|
1193
|
-
await
|
|
1192
|
+
return c1(e, async (p) => {
|
|
1193
|
+
await H1(() => {
|
|
1194
1194
|
setTimeout(() => {
|
|
1195
1195
|
s.value && p && (s.value.focus(), t.value = s.value[n.value]);
|
|
1196
1196
|
}, 1);
|
|
@@ -1209,46 +1209,55 @@ const M1 = /* @__PURE__ */ e1({
|
|
|
1209
1209
|
title: {},
|
|
1210
1210
|
level: { default: 1 },
|
|
1211
1211
|
tag: {},
|
|
1212
|
-
color: {}
|
|
1212
|
+
color: {},
|
|
1213
|
+
isEditable: { type: Boolean, default: !1 }
|
|
1213
1214
|
},
|
|
1214
|
-
emits: ["update:title"],
|
|
1215
|
+
emits: ["update:title", "toggle-is-editing"],
|
|
1215
1216
|
setup(s, { emit: e }) {
|
|
1216
|
-
const t = s, n = J(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: o } = o5(n), p =
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1217
|
+
const t = s, n = J(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: o } = o5(n), p = _(() => a.value ? "input" : t.tag || `h${t.level}`), u = _(() => t.isEditable ? a.value ? {
|
|
1218
|
+
change: v,
|
|
1219
|
+
click: (E) => E.stopPropagation(),
|
|
1220
|
+
blur: I
|
|
1221
|
+
} : {
|
|
1222
|
+
click: k,
|
|
1223
|
+
focus: k
|
|
1224
|
+
} : {}), v = l((E, R) => {
|
|
1225
|
+
const h = R.target.value;
|
|
1226
|
+
e("update:title", h);
|
|
1227
|
+
}), y = o(), I = async () => {
|
|
1220
1228
|
a.value && i(!1);
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
},
|
|
1224
|
-
|
|
1229
|
+
}, B = () => {
|
|
1230
|
+
e("toggle-is-editing", !1);
|
|
1231
|
+
}, k = (E) => {
|
|
1232
|
+
E.stopPropagation(), a.value || i(!0);
|
|
1225
1233
|
};
|
|
1226
|
-
return (
|
|
1227
|
-
|
|
1234
|
+
return c1(
|
|
1235
|
+
() => t.isEditable,
|
|
1236
|
+
(E) => {
|
|
1237
|
+
E || y();
|
|
1238
|
+
}
|
|
1239
|
+
), (E, R) => (d(), F(G1(p.value), k1({
|
|
1240
|
+
ref_key: "target",
|
|
1241
|
+
ref: n,
|
|
1228
1242
|
class: [
|
|
1229
1243
|
"ao-title",
|
|
1230
|
-
`ao-title--${
|
|
1231
|
-
|
|
1232
|
-
|
|
1244
|
+
`ao-title--${E.level}`,
|
|
1245
|
+
{
|
|
1246
|
+
[`ao-title--${E.color}`]: !!E.color,
|
|
1247
|
+
"ao-title--editable": E.isEditable,
|
|
1248
|
+
"ao-field__input ao-title--editing": Y(a),
|
|
1249
|
+
"ao-title--readonly": !Y(a)
|
|
1250
|
+
}
|
|
1233
1251
|
],
|
|
1234
|
-
type:
|
|
1235
|
-
value:
|
|
1252
|
+
type: Y(a) ? "text" : null,
|
|
1253
|
+
value: Y(a) ? E.title : null,
|
|
1236
1254
|
tabindex: "0",
|
|
1237
|
-
onKeyup: le(
|
|
1238
|
-
}, It(
|
|
1239
|
-
|
|
1240
|
-
change: G(u),
|
|
1241
|
-
click: (P) => P.stopPropagation(),
|
|
1242
|
-
blur: y
|
|
1243
|
-
} : {
|
|
1244
|
-
click: H,
|
|
1245
|
-
focus: H
|
|
1246
|
-
}
|
|
1247
|
-
), {
|
|
1248
|
-
onKeydown: le(G(v), ["esc"])
|
|
1255
|
+
onKeyup: le(B, ["enter"])
|
|
1256
|
+
}, It(u.value), {
|
|
1257
|
+
onKeydown: le(Y(y), ["esc"])
|
|
1249
1258
|
}), {
|
|
1250
|
-
default:
|
|
1251
|
-
Me(x(
|
|
1259
|
+
default: G(() => [
|
|
1260
|
+
Me(x(E.title), 1)
|
|
1252
1261
|
]),
|
|
1253
1262
|
_: 1
|
|
1254
1263
|
}, 16, ["class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1293,54 +1302,55 @@ const r5 = {
|
|
|
1293
1302
|
}, a = (i) => {
|
|
1294
1303
|
e("update:title", i);
|
|
1295
1304
|
};
|
|
1296
|
-
return (i, l) => (d(),
|
|
1305
|
+
return (i, l) => (d(), F(G1(i.tagName), {
|
|
1297
1306
|
class: j(["ao-card-horiz", { "ao-card-horiz--active": i.isActive }])
|
|
1298
1307
|
}, {
|
|
1299
|
-
default:
|
|
1308
|
+
default: G(() => [
|
|
1300
1309
|
i.isDraggable ? (d(), C("div", r5, [
|
|
1301
|
-
|
|
1310
|
+
V(v1, {
|
|
1302
1311
|
name: "DragIndicator",
|
|
1303
1312
|
class: "ao-card-horiz__drag-handle"
|
|
1304
1313
|
})
|
|
1305
|
-
])) :
|
|
1314
|
+
])) : A("", !0),
|
|
1306
1315
|
r("div", u5, [
|
|
1307
1316
|
i.icon ? (d(), C("div", c5, [
|
|
1308
|
-
|
|
1317
|
+
V(v1, {
|
|
1309
1318
|
class: "ao-card-horiz__icon",
|
|
1310
1319
|
name: i.icon,
|
|
1311
1320
|
size: "xl"
|
|
1312
1321
|
}, null, 8, ["name"])
|
|
1313
|
-
])) :
|
|
1322
|
+
])) : A("", !0),
|
|
1314
1323
|
r("div", {
|
|
1315
1324
|
class: "ao-card-horiz__title-group",
|
|
1316
1325
|
onClick: l[0] || (l[0] = A1(() => {
|
|
1317
1326
|
}, ["stop"]))
|
|
1318
1327
|
}, [
|
|
1319
|
-
|
|
1328
|
+
V(M1, {
|
|
1320
1329
|
class: "ao-card-horiz__title",
|
|
1321
1330
|
level: 4,
|
|
1322
1331
|
title: i.title || "",
|
|
1332
|
+
"is-editable": !0,
|
|
1323
1333
|
"is-editing": t.value,
|
|
1324
1334
|
onToggleIsEditing: n,
|
|
1325
1335
|
"onUpdate:title": a
|
|
1326
1336
|
}, null, 8, ["title", "is-editing"]),
|
|
1327
1337
|
K(i.$slots, "subtitle", {}, () => [
|
|
1328
|
-
i.subtitle ? (d(), C("span", d5, x(i.subtitle), 1)) :
|
|
1338
|
+
i.subtitle ? (d(), C("span", d5, x(i.subtitle), 1)) : A("", !0)
|
|
1329
1339
|
])
|
|
1330
1340
|
]),
|
|
1331
1341
|
i.$slots.header ? (d(), C("div", C5, [
|
|
1332
1342
|
K(i.$slots, "header")
|
|
1333
|
-
])) :
|
|
1343
|
+
])) : A("", !0)
|
|
1334
1344
|
]),
|
|
1335
1345
|
i.$slots.default ? (d(), C("div", v5, [
|
|
1336
1346
|
K(i.$slots, "default")
|
|
1337
|
-
])) :
|
|
1347
|
+
])) : A("", !0),
|
|
1338
1348
|
i.$slots.footer ? (d(), C("div", p5, [
|
|
1339
1349
|
K(i.$slots, "footer")
|
|
1340
|
-
])) :
|
|
1350
|
+
])) : A("", !0),
|
|
1341
1351
|
i.$slots.secondary ? (d(), C("div", h5, [
|
|
1342
1352
|
K(i.$slots, "secondary")
|
|
1343
|
-
])) :
|
|
1353
|
+
])) : A("", !0)
|
|
1344
1354
|
]),
|
|
1345
1355
|
_: 3
|
|
1346
1356
|
}, 8, ["class"]));
|
|
@@ -1357,7 +1367,7 @@ const f5 = /* @__PURE__ */ e1({
|
|
|
1357
1367
|
},
|
|
1358
1368
|
emits: ["click", "close"],
|
|
1359
1369
|
setup(s) {
|
|
1360
|
-
const e = s, t =
|
|
1370
|
+
const e = s, t = _(() => e.clickable ? "button" : "span"), n = _(
|
|
1361
1371
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1362
1372
|
);
|
|
1363
1373
|
return (a, i) => (d(), C("div", {
|
|
@@ -1369,10 +1379,10 @@ const f5 = /* @__PURE__ */ e1({
|
|
|
1369
1379
|
a.variant ? `ao-tag--${a.variant}` : ""
|
|
1370
1380
|
])
|
|
1371
1381
|
}, [
|
|
1372
|
-
(d(),
|
|
1382
|
+
(d(), F(G1(t.value), k1({ class: "ao-tag__label" }, n.value, {
|
|
1373
1383
|
onClick: i[0] || (i[0] = (l) => a.$emit("click", l))
|
|
1374
1384
|
}), {
|
|
1375
|
-
default:
|
|
1385
|
+
default: G(() => [
|
|
1376
1386
|
Me(x(a.label), 1)
|
|
1377
1387
|
]),
|
|
1378
1388
|
_: 1
|
|
@@ -1382,12 +1392,12 @@ const f5 = /* @__PURE__ */ e1({
|
|
|
1382
1392
|
class: "ao-tag__close",
|
|
1383
1393
|
onClick: i[1] || (i[1] = (l) => a.$emit("close", l))
|
|
1384
1394
|
}, [
|
|
1385
|
-
|
|
1395
|
+
V(v1, {
|
|
1386
1396
|
name: "CloseRounded",
|
|
1387
1397
|
size: "sm",
|
|
1388
1398
|
class: "ao-tag__close-icon"
|
|
1389
1399
|
})
|
|
1390
|
-
])) :
|
|
1400
|
+
])) : A("", !0)
|
|
1391
1401
|
], 2));
|
|
1392
1402
|
}
|
|
1393
1403
|
});
|
|
@@ -1972,21 +1982,21 @@ function Xe() {
|
|
|
1972
1982
|
p = v;
|
|
1973
1983
|
}
|
|
1974
1984
|
let y;
|
|
1975
|
-
for (let
|
|
1976
|
-
const
|
|
1977
|
-
if (y = u.setScale(
|
|
1978
|
-
return a.checkMid(l, o,
|
|
1979
|
-
if (
|
|
1985
|
+
for (let k = p.getScale(); k > 0; u = y) {
|
|
1986
|
+
const E = k - 1, R = p.setScale(E, !0);
|
|
1987
|
+
if (y = u.setScale(E, !1), R.compareTo(y) === 0)
|
|
1988
|
+
return a.checkMid(l, o, R);
|
|
1989
|
+
if (R.compareTo(y) > 0)
|
|
1980
1990
|
break;
|
|
1981
|
-
|
|
1991
|
+
k = E, p = R;
|
|
1982
1992
|
}
|
|
1983
|
-
let I = a.middleInternal(l, o, p, u),
|
|
1984
|
-
for (let
|
|
1985
|
-
|
|
1986
|
-
const
|
|
1987
|
-
if (l.compareTo(
|
|
1993
|
+
let I = a.middleInternal(l, o, p, u), B;
|
|
1994
|
+
for (let k = I.getScale(); k > 0; k = B) {
|
|
1995
|
+
B = k - 1;
|
|
1996
|
+
const E = I.setScale(B);
|
|
1997
|
+
if (l.compareTo(E) >= 0 || E.compareTo(o) >= 0)
|
|
1988
1998
|
break;
|
|
1989
|
-
I =
|
|
1999
|
+
I = E;
|
|
1990
2000
|
}
|
|
1991
2001
|
return I;
|
|
1992
2002
|
}
|
|
@@ -2167,19 +2177,19 @@ const L5 = ["title"], A5 = { className: "ao-avatar__initials" }, Ve = /* @__PURE
|
|
|
2167
2177
|
class: j(["ao-avatar", `ao-avatar--${i.size}`]),
|
|
2168
2178
|
title: i.userName
|
|
2169
2179
|
}, [
|
|
2170
|
-
r("span", A5, x(
|
|
2171
|
-
i.isClosable ? (d(),
|
|
2180
|
+
r("span", A5, x(Y(n)), 1),
|
|
2181
|
+
i.isClosable ? (d(), F(g1, {
|
|
2172
2182
|
key: 0,
|
|
2173
2183
|
"icon-name": "CloseRounded",
|
|
2174
2184
|
class: "ao-avatar__close",
|
|
2175
2185
|
color: "primary",
|
|
2176
2186
|
corners: "round",
|
|
2177
2187
|
onClick: a
|
|
2178
|
-
})) :
|
|
2188
|
+
})) : A("", !0)
|
|
2179
2189
|
], 10, L5));
|
|
2180
2190
|
}
|
|
2181
2191
|
});
|
|
2182
|
-
const V5 = { class: "ao-card-template__subitems" },
|
|
2192
|
+
const V5 = { class: "ao-card-template__subitems" }, E5 = { class: "ao-card-template__subitem" }, T5 = { class: "ao-card-template__subitem-number" }, k5 = { class: "ao-card-template__subitem" }, H5 = { class: "ao-card-template__subitem" }, O5 = { class: "ao-card-template__body" }, B5 = { class: "ao-card-template__col ao-card-template__col--phases" }, Z5 = { class: "ao-card-template__col-title" }, D5 = { class: "ao-card-template__col-label" }, P5 = {
|
|
2183
2193
|
key: 0,
|
|
2184
2194
|
class: "ao-card-template__col-body ao-card-template__phases-list"
|
|
2185
2195
|
}, N5 = { class: "ao-card-template__footer" }, R5 = { class: "ao-card-template__col ao-card-template__col--updated-at" }, U5 = { class: "ao-card-template__col-title" }, q5 = { class: "ao-card-template__col-label" }, j5 = { class: "ao-card-template__col-body" }, z5 = {
|
|
@@ -2200,51 +2210,51 @@ const V5 = { class: "ao-card-template__subitems" }, T5 = { class: "ao-card-templ
|
|
|
2200
2210
|
const t = (n) => {
|
|
2201
2211
|
e("updateTitle", n);
|
|
2202
2212
|
};
|
|
2203
|
-
return (n, a) => (d(),
|
|
2213
|
+
return (n, a) => (d(), F(Ke, {
|
|
2204
2214
|
title: n.title,
|
|
2205
2215
|
"is-draggable": !0,
|
|
2206
2216
|
"onUpdate:title": t
|
|
2207
2217
|
}, {
|
|
2208
|
-
subtitle:
|
|
2218
|
+
subtitle: G(() => [
|
|
2209
2219
|
r("ul", V5, [
|
|
2210
|
-
r("li",
|
|
2211
|
-
|
|
2220
|
+
r("li", E5, [
|
|
2221
|
+
V(v1, {
|
|
2212
2222
|
name: "MountainFlagOutlineRounded",
|
|
2213
2223
|
size: "sm"
|
|
2214
2224
|
}),
|
|
2215
|
-
r("span",
|
|
2225
|
+
r("span", T5, x(n.milestones), 1)
|
|
2216
2226
|
]),
|
|
2217
|
-
r("li",
|
|
2218
|
-
|
|
2227
|
+
r("li", k5, [
|
|
2228
|
+
V(v1, {
|
|
2219
2229
|
name: "TaskOutlineRounded",
|
|
2220
2230
|
size: "sm"
|
|
2221
2231
|
}),
|
|
2222
|
-
r("span",
|
|
2232
|
+
r("span", H5, x(n.activities), 1)
|
|
2223
2233
|
])
|
|
2224
2234
|
])
|
|
2225
2235
|
]),
|
|
2226
|
-
default:
|
|
2236
|
+
default: G(() => [
|
|
2227
2237
|
r("div", O5, [
|
|
2228
2238
|
r("div", B5, [
|
|
2229
2239
|
r("div", Z5, [
|
|
2230
|
-
|
|
2240
|
+
V(v1, {
|
|
2231
2241
|
name: "WaterfallChartRounded",
|
|
2232
2242
|
size: "sm"
|
|
2233
2243
|
}),
|
|
2234
2244
|
r("span", D5, x(n.$t("template.phases.title")), 1)
|
|
2235
2245
|
]),
|
|
2236
2246
|
n.phases ? (d(), C("ul", P5, [
|
|
2237
|
-
(d(!0), C(f1, null, $1(n.phases, (i) => (d(),
|
|
2247
|
+
(d(!0), C(f1, null, $1(n.phases, (i) => (d(), F(f5, {
|
|
2238
2248
|
key: i.id,
|
|
2239
2249
|
label: i.name || i.id,
|
|
2240
2250
|
color: "primary",
|
|
2241
2251
|
variant: "solid"
|
|
2242
2252
|
}, null, 8, ["label"]))), 128))
|
|
2243
|
-
])) :
|
|
2253
|
+
])) : A("", !0)
|
|
2244
2254
|
])
|
|
2245
2255
|
])
|
|
2246
2256
|
]),
|
|
2247
|
-
footer:
|
|
2257
|
+
footer: G(() => [
|
|
2248
2258
|
r("div", N5, [
|
|
2249
2259
|
r("div", R5, [
|
|
2250
2260
|
r("div", U5, [
|
|
@@ -2259,9 +2269,9 @@ const V5 = { class: "ao-card-template__subitems" }, T5 = { class: "ao-card-templ
|
|
|
2259
2269
|
r("span", K5, x(n.$t("template.updatedBy.label")), 1)
|
|
2260
2270
|
]),
|
|
2261
2271
|
r("div", G5, [
|
|
2262
|
-
|
|
2272
|
+
V(Ve, { "user-name": n.updatedBy }, null, 8, ["user-name"])
|
|
2263
2273
|
])
|
|
2264
|
-
])) :
|
|
2274
|
+
])) : A("", !0)
|
|
2265
2275
|
])
|
|
2266
2276
|
]),
|
|
2267
2277
|
_: 1
|
|
@@ -2277,12 +2287,12 @@ const Y5 = { class: "ao-page-header" }, X5 = { class: "ao-page-header-main" }, W
|
|
|
2277
2287
|
setup(s) {
|
|
2278
2288
|
return (e, t) => (d(), C("header", Y5, [
|
|
2279
2289
|
r("div", X5, [
|
|
2280
|
-
e.canGoBack ? (d(),
|
|
2290
|
+
e.canGoBack ? (d(), F(g1, {
|
|
2281
2291
|
key: 0,
|
|
2282
2292
|
"icon-name": "ArrowBackRounded",
|
|
2283
2293
|
variant: "ghost",
|
|
2284
2294
|
onClick: t[0] || (t[0] = (n) => e.$emit("goBack"))
|
|
2285
|
-
})) :
|
|
2295
|
+
})) : A("", !0),
|
|
2286
2296
|
K(e.$slots, "primary")
|
|
2287
2297
|
]),
|
|
2288
2298
|
r("div", W5, [
|
|
@@ -2307,7 +2317,7 @@ const J5 = ["type"], Q5 = {
|
|
|
2307
2317
|
corners: { default: () => xe.ROUNDED }
|
|
2308
2318
|
},
|
|
2309
2319
|
setup(s) {
|
|
2310
|
-
const e = s, t =
|
|
2320
|
+
const e = s, t = _(() => e.size), n = _(() => e.isLoading ? "Loading" : e.iconName);
|
|
2311
2321
|
return (a, i) => (d(), C("button", {
|
|
2312
2322
|
type: a.type,
|
|
2313
2323
|
class: j([
|
|
@@ -2318,21 +2328,21 @@ const J5 = ["type"], Q5 = {
|
|
|
2318
2328
|
])
|
|
2319
2329
|
}, [
|
|
2320
2330
|
K(a.$slots, "default", {}, () => [
|
|
2321
|
-
a.label ? (d(), C("span", Q5, x(a.label), 1)) :
|
|
2331
|
+
a.label ? (d(), C("span", Q5, x(a.label), 1)) : A("", !0)
|
|
2322
2332
|
]),
|
|
2323
|
-
n.value ? (d(),
|
|
2333
|
+
n.value ? (d(), F(v1, {
|
|
2324
2334
|
key: 0,
|
|
2325
2335
|
name: n.value,
|
|
2326
2336
|
class: "ao-button-card__icon",
|
|
2327
2337
|
size: t.value
|
|
2328
|
-
}, null, 8, ["name", "size"])) :
|
|
2338
|
+
}, null, 8, ["name", "size"])) : A("", !0)
|
|
2329
2339
|
], 10, J5));
|
|
2330
2340
|
}
|
|
2331
2341
|
});
|
|
2332
2342
|
const e7 = { class: "ao-card-template-item__footer" }, t7 = {
|
|
2333
2343
|
key: 0,
|
|
2334
2344
|
class: "ao-card-template-item__subitem"
|
|
2335
|
-
}, s7 = { class: "ao-card-template-item__subitem-number" }, a7 = { class: "ao-card-template-item__secondary" },
|
|
2345
|
+
}, s7 = { class: "ao-card-template-item__subitem-number" }, a7 = { class: "ao-card-template-item__secondary" }, Ee = /* @__PURE__ */ e1({
|
|
2336
2346
|
__name: "AoCardTemplateItem",
|
|
2337
2347
|
props: {
|
|
2338
2348
|
milestones: {},
|
|
@@ -2352,23 +2362,23 @@ const e7 = { class: "ao-card-template-item__footer" }, t7 = {
|
|
|
2352
2362
|
}, i = () => {
|
|
2353
2363
|
e("remove");
|
|
2354
2364
|
};
|
|
2355
|
-
return (l, o) => (d(),
|
|
2356
|
-
footer:
|
|
2365
|
+
return (l, o) => (d(), F(Ke, { "onUpdate:title": t }, {
|
|
2366
|
+
footer: G(() => [
|
|
2357
2367
|
r("ul", e7, [
|
|
2358
2368
|
(d(), C(f1, null, $1(n, (p) => (d(), C(f1, { key: p }, [
|
|
2359
2369
|
l.$props[p] ? (d(), C("li", t7, [
|
|
2360
|
-
|
|
2370
|
+
V(v1, {
|
|
2361
2371
|
name: a[p],
|
|
2362
2372
|
size: "sm"
|
|
2363
2373
|
}, null, 8, ["name"]),
|
|
2364
2374
|
r("span", s7, x(l.$props[p]), 1)
|
|
2365
|
-
])) :
|
|
2375
|
+
])) : A("", !0)
|
|
2366
2376
|
], 64))), 64))
|
|
2367
2377
|
])
|
|
2368
2378
|
]),
|
|
2369
|
-
secondary:
|
|
2379
|
+
secondary: G(() => [
|
|
2370
2380
|
r("div", a7, [
|
|
2371
|
-
|
|
2381
|
+
V(g1, {
|
|
2372
2382
|
"icon-name": "DeleteOutlineRounded",
|
|
2373
2383
|
variant: "ghost",
|
|
2374
2384
|
size: "md",
|
|
@@ -2389,16 +2399,16 @@ const l7 = /* @__PURE__ */ e1({
|
|
|
2389
2399
|
milestones: {}
|
|
2390
2400
|
},
|
|
2391
2401
|
setup(s) {
|
|
2392
|
-
const e = s, t =
|
|
2402
|
+
const e = s, t = _(() => {
|
|
2393
2403
|
var a;
|
|
2394
2404
|
return (a = e.milestones) == null ? void 0 : a.length;
|
|
2395
|
-
}), n =
|
|
2396
|
-
return (a, i) => (d(),
|
|
2405
|
+
}), n = _(() => e.milestones ? We(e.milestones) : 0);
|
|
2406
|
+
return (a, i) => (d(), F(Ee, k1({
|
|
2397
2407
|
title: a.name,
|
|
2398
2408
|
activities: n.value,
|
|
2399
2409
|
milestones: t.value
|
|
2400
2410
|
}, a.$attrs), {
|
|
2401
|
-
default:
|
|
2411
|
+
default: G(() => [
|
|
2402
2412
|
K(a.$slots, "default")
|
|
2403
2413
|
]),
|
|
2404
2414
|
_: 3
|
|
@@ -2410,12 +2420,12 @@ const l7 = /* @__PURE__ */ e1({
|
|
|
2410
2420
|
activities: {}
|
|
2411
2421
|
},
|
|
2412
2422
|
setup(s) {
|
|
2413
|
-
const e = s, t =
|
|
2423
|
+
const e = s, t = _(() => {
|
|
2414
2424
|
var n;
|
|
2415
2425
|
return ((n = e.activities) == null ? void 0 : n.length) || 0;
|
|
2416
2426
|
});
|
|
2417
|
-
return (n, a) => (d(),
|
|
2418
|
-
default:
|
|
2427
|
+
return (n, a) => (d(), F(Ee, { activities: t.value }, {
|
|
2428
|
+
default: G(() => [
|
|
2419
2429
|
K(n.$slots, "default")
|
|
2420
2430
|
]),
|
|
2421
2431
|
_: 3
|
|
@@ -2475,7 +2485,7 @@ const yo = {
|
|
|
2475
2485
|
emits: ["addMilestone", "updateMilestone", "updatePhase", "removeMilestone"],
|
|
2476
2486
|
setup(s, { emit: e }) {
|
|
2477
2487
|
const t = s;
|
|
2478
|
-
|
|
2488
|
+
_({
|
|
2479
2489
|
get() {
|
|
2480
2490
|
return [...t.phase.milestones || []].sort((p, u) => p.order - u.order);
|
|
2481
2491
|
},
|
|
@@ -2510,7 +2520,7 @@ const yo = {
|
|
|
2510
2520
|
});
|
|
2511
2521
|
}
|
|
2512
2522
|
};
|
|
2513
|
-
return (o, p) => o.phase ? (d(), Y(
|
|
2523
|
+
return (o, p) => o.phase ? (d(), F(Y(ne), {
|
|
2514
2524
|
key: 0,
|
|
2515
2525
|
"model-value": o.phase.milestones,
|
|
2516
2526
|
class: "ao-templates__list",
|
|
@@ -2519,15 +2529,15 @@ const yo = {
|
|
|
2519
2529
|
"item-key": "id",
|
|
2520
2530
|
onChange: l
|
|
2521
2531
|
}, {
|
|
2522
|
-
header:
|
|
2523
|
-
|
|
2532
|
+
header: G(() => [
|
|
2533
|
+
V(M1, {
|
|
2524
2534
|
title: "Milestones",
|
|
2525
2535
|
level: 3,
|
|
2526
2536
|
class: "ao-list__title"
|
|
2527
2537
|
})
|
|
2528
2538
|
]),
|
|
2529
|
-
item:
|
|
2530
|
-
(d(),
|
|
2539
|
+
item: G(({ element: u }) => [
|
|
2540
|
+
(d(), F(n7, {
|
|
2531
2541
|
key: u.id,
|
|
2532
2542
|
title: u.name,
|
|
2533
2543
|
activities: u.activities,
|
|
@@ -2542,9 +2552,9 @@ const yo = {
|
|
|
2542
2552
|
onRemove: () => a(u.id)
|
|
2543
2553
|
}, null, 8, ["title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
2544
2554
|
]),
|
|
2545
|
-
footer:
|
|
2555
|
+
footer: G(() => [
|
|
2546
2556
|
r("div", c7, [
|
|
2547
|
-
|
|
2557
|
+
V(de, {
|
|
2548
2558
|
"icon-name": "AddBoxOutlineRounded",
|
|
2549
2559
|
label: o.$t("template.milestones.add"),
|
|
2550
2560
|
onClick: n
|
|
@@ -2552,7 +2562,7 @@ const yo = {
|
|
|
2552
2562
|
])
|
|
2553
2563
|
]),
|
|
2554
2564
|
_: 1
|
|
2555
|
-
}, 8, ["model-value", "title"])) :
|
|
2565
|
+
}, 8, ["model-value", "title"])) : A("", !0);
|
|
2556
2566
|
}
|
|
2557
2567
|
}), C7 = /* @__PURE__ */ e1({
|
|
2558
2568
|
__name: "AoCardTemplateItemActivity",
|
|
@@ -2561,12 +2571,12 @@ const yo = {
|
|
|
2561
2571
|
subtasks: {}
|
|
2562
2572
|
},
|
|
2563
2573
|
setup(s) {
|
|
2564
|
-
const e = s, t =
|
|
2574
|
+
const e = s, t = _(() => {
|
|
2565
2575
|
var n;
|
|
2566
2576
|
return ((n = e.subtasks) == null ? void 0 : n.length) || 0;
|
|
2567
2577
|
});
|
|
2568
|
-
return (n, a) => (d(),
|
|
2569
|
-
default:
|
|
2578
|
+
return (n, a) => (d(), F(Ee, { subtasks: t.value }, {
|
|
2579
|
+
default: G(() => [
|
|
2570
2580
|
K(n.$slots, "default")
|
|
2571
2581
|
]),
|
|
2572
2582
|
_: 3
|
|
@@ -2599,7 +2609,7 @@ const yo = {
|
|
|
2599
2609
|
milestoneId: t.milestone.id,
|
|
2600
2610
|
id: o
|
|
2601
2611
|
});
|
|
2602
|
-
}, l =
|
|
2612
|
+
}, l = _({
|
|
2603
2613
|
get() {
|
|
2604
2614
|
return [...t.milestone.activities || []].sort((p, u) => p.order - u.order);
|
|
2605
2615
|
},
|
|
@@ -2613,7 +2623,7 @@ const yo = {
|
|
|
2613
2623
|
});
|
|
2614
2624
|
}
|
|
2615
2625
|
});
|
|
2616
|
-
return (o, p) => o.milestone ? (d(), Y(
|
|
2626
|
+
return (o, p) => o.milestone ? (d(), F(Y(ne), {
|
|
2617
2627
|
key: 0,
|
|
2618
2628
|
modelValue: l.value,
|
|
2619
2629
|
"onUpdate:modelValue": p[0] || (p[0] = (u) => l.value = u),
|
|
@@ -2622,15 +2632,15 @@ const yo = {
|
|
|
2622
2632
|
handle: ".ao-card__drag",
|
|
2623
2633
|
"item-key": "id"
|
|
2624
2634
|
}, {
|
|
2625
|
-
header:
|
|
2626
|
-
|
|
2635
|
+
header: G(() => [
|
|
2636
|
+
V(M1, {
|
|
2627
2637
|
title: "Activities",
|
|
2628
2638
|
level: 3,
|
|
2629
2639
|
class: "ao-list__title"
|
|
2630
2640
|
})
|
|
2631
2641
|
]),
|
|
2632
|
-
item:
|
|
2633
|
-
(d(),
|
|
2642
|
+
item: G(({ element: u }) => [
|
|
2643
|
+
(d(), F(C7, {
|
|
2634
2644
|
key: u.id,
|
|
2635
2645
|
title: u.name,
|
|
2636
2646
|
subtasks: u.subtasks,
|
|
@@ -2641,9 +2651,9 @@ const yo = {
|
|
|
2641
2651
|
onRemove: () => i(u.id)
|
|
2642
2652
|
}, null, 8, ["title", "subtasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
2643
2653
|
]),
|
|
2644
|
-
footer:
|
|
2654
|
+
footer: G(() => [
|
|
2645
2655
|
r("div", v7, [
|
|
2646
|
-
|
|
2656
|
+
V(de, {
|
|
2647
2657
|
"icon-name": "AddBoxOutlineRounded",
|
|
2648
2658
|
label: o.$t("template.activities.add"),
|
|
2649
2659
|
onClick: n
|
|
@@ -2651,7 +2661,7 @@ const yo = {
|
|
|
2651
2661
|
])
|
|
2652
2662
|
]),
|
|
2653
2663
|
_: 1
|
|
2654
|
-
}, 8, ["modelValue", "title"])) :
|
|
2664
|
+
}, 8, ["modelValue", "title"])) : A("", !0);
|
|
2655
2665
|
}
|
|
2656
2666
|
});
|
|
2657
2667
|
function w1(s) {
|
|
@@ -2660,15 +2670,15 @@ function w1(s) {
|
|
|
2660
2670
|
function h7(s, e, t) {
|
|
2661
2671
|
const { object: n, valueProp: a, mode: i } = p1(s), l = N1().proxy, o = t.iv, p = (y, I = !0) => {
|
|
2662
2672
|
o.value = v(y);
|
|
2663
|
-
const
|
|
2664
|
-
e.emit("change",
|
|
2673
|
+
const B = u(y);
|
|
2674
|
+
e.emit("change", B, l), I && (e.emit("input", B), e.emit("update:modelValue", B));
|
|
2665
2675
|
}, u = (y) => n.value || w1(y) ? y : Array.isArray(y) ? y.map((I) => I[a.value]) : y[a.value], v = (y) => w1(y) ? i.value === "single" ? {} : [] : y;
|
|
2666
2676
|
return {
|
|
2667
2677
|
update: p
|
|
2668
2678
|
};
|
|
2669
2679
|
}
|
|
2670
2680
|
function f7(s, e) {
|
|
2671
|
-
const { value: t, modelValue: n, mode: a, valueProp: i } = p1(s), l = J(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, p =
|
|
2681
|
+
const { value: t, modelValue: n, mode: a, valueProp: i } = p1(s), l = J(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, p = _(() => a.value === "single" ? l.value[i.value] : l.value.map((v) => v[i.value])), u = _(() => a.value !== "single" ? l.value.map((v) => v[i.value]).join(",") : l.value[i.value]);
|
|
2672
2682
|
return {
|
|
2673
2683
|
iv: l,
|
|
2674
2684
|
internalValue: l,
|
|
@@ -2681,23 +2691,23 @@ function f7(s, e) {
|
|
|
2681
2691
|
function _7(s, e, t) {
|
|
2682
2692
|
const { regex: n } = p1(s), a = N1().proxy, i = t.isOpen, l = t.open, o = J(null), p = J(null), u = () => {
|
|
2683
2693
|
o.value = "";
|
|
2684
|
-
}, v = (
|
|
2685
|
-
o.value =
|
|
2686
|
-
}, y = (
|
|
2694
|
+
}, v = (B) => {
|
|
2695
|
+
o.value = B.target.value;
|
|
2696
|
+
}, y = (B) => {
|
|
2687
2697
|
if (n && n.value) {
|
|
2688
|
-
let
|
|
2689
|
-
typeof
|
|
2698
|
+
let k = n.value;
|
|
2699
|
+
typeof k == "string" && (k = new RegExp(k)), B.key.match(k) || B.preventDefault();
|
|
2690
2700
|
}
|
|
2691
|
-
}, I = (
|
|
2701
|
+
}, I = (B) => {
|
|
2692
2702
|
if (n && n.value) {
|
|
2693
|
-
let
|
|
2694
|
-
window.clipboardData).getData("Text"),
|
|
2695
|
-
typeof
|
|
2703
|
+
let E = (B.clipboardData || /* istanbul ignore next */
|
|
2704
|
+
window.clipboardData).getData("Text"), R = n.value;
|
|
2705
|
+
typeof R == "string" && (R = new RegExp(R)), E.split("").every((L) => !!L.match(R)) || B.preventDefault();
|
|
2696
2706
|
}
|
|
2697
|
-
e.emit("paste",
|
|
2707
|
+
e.emit("paste", B, a);
|
|
2698
2708
|
};
|
|
2699
|
-
return
|
|
2700
|
-
!i.value &&
|
|
2709
|
+
return c1(o, (B) => {
|
|
2710
|
+
!i.value && B && l(), e.emit("search-change", B, a);
|
|
2701
2711
|
}), {
|
|
2702
2712
|
search: o,
|
|
2703
2713
|
input: p,
|
|
@@ -2743,40 +2753,40 @@ function y7(s, e, t) {
|
|
|
2743
2753
|
label: v,
|
|
2744
2754
|
appendNewTag: y,
|
|
2745
2755
|
appendNewOption: I,
|
|
2746
|
-
multipleLabel:
|
|
2747
|
-
object:
|
|
2748
|
-
loading:
|
|
2749
|
-
delay:
|
|
2756
|
+
multipleLabel: B,
|
|
2757
|
+
object: k,
|
|
2758
|
+
loading: E,
|
|
2759
|
+
delay: R,
|
|
2750
2760
|
resolveOnLoad: L,
|
|
2751
2761
|
minChars: h,
|
|
2752
|
-
filterResults:
|
|
2762
|
+
filterResults: Z,
|
|
2753
2763
|
clearOnSearch: X,
|
|
2754
2764
|
clearOnSelect: s1,
|
|
2755
|
-
valueProp:
|
|
2765
|
+
valueProp: H,
|
|
2756
2766
|
allowAbsent: t1,
|
|
2757
|
-
groupLabel:
|
|
2767
|
+
groupLabel: m,
|
|
2758
2768
|
canDeselect: $,
|
|
2759
|
-
max:
|
|
2769
|
+
max: P,
|
|
2760
2770
|
strict: o1,
|
|
2761
|
-
closeOnSelect:
|
|
2771
|
+
closeOnSelect: T,
|
|
2762
2772
|
closeOnDeselect: z,
|
|
2763
|
-
groups:
|
|
2773
|
+
groups: d1,
|
|
2764
2774
|
reverse: m1,
|
|
2765
|
-
infinite:
|
|
2775
|
+
infinite: T1,
|
|
2766
2776
|
groupOptions: n1,
|
|
2767
2777
|
groupHideEmpty: b,
|
|
2768
2778
|
groupSelect: g,
|
|
2769
2779
|
onCreate: S,
|
|
2770
|
-
disabledProp:
|
|
2780
|
+
disabledProp: D,
|
|
2771
2781
|
searchStart: Q,
|
|
2772
2782
|
searchFilter: i1
|
|
2773
|
-
} = p1(s), W = N1().proxy, U = t.iv, f = t.ev, O = t.search, r1 = t.clearSearch, I1 = t.update, et = t.pointer, O1 = t.clearPointer, tt = t.focus, st = t.deactivate, B1 = t.close, at = t.localize, U1 = J([]), V1 = J([]), b1 = J(!1), Ce = J(null), ve = J(
|
|
2774
|
-
if (
|
|
2783
|
+
} = p1(s), W = N1().proxy, U = t.iv, f = t.ev, O = t.search, r1 = t.clearSearch, I1 = t.update, et = t.pointer, O1 = t.clearPointer, tt = t.focus, st = t.deactivate, B1 = t.close, at = t.localize, U1 = J([]), V1 = J([]), b1 = J(!1), Ce = J(null), ve = J(T1.value && l.value === -1 ? 10 : l.value), ke = _(() => p.value || u.value || !1), lt = _(() => y.value !== void 0 ? y.value : I.value !== void 0 ? I.value : !0), E1 = _(() => {
|
|
2784
|
+
if (d1.value) {
|
|
2775
2785
|
let c = X1.value || /* istanbul ignore next */
|
|
2776
2786
|
[], w = [];
|
|
2777
2787
|
return c.forEach((q) => {
|
|
2778
2788
|
ge(q[n1.value]).forEach((a1) => {
|
|
2779
|
-
w.push(Object.assign({}, a1, q[
|
|
2789
|
+
w.push(Object.assign({}, a1, q[D.value] ? { [D.value]: !0 } : {}));
|
|
2780
2790
|
});
|
|
2781
2791
|
}), w;
|
|
2782
2792
|
} else {
|
|
@@ -2784,31 +2794,31 @@ function y7(s, e, t) {
|
|
|
2784
2794
|
[]);
|
|
2785
2795
|
return U1.value.length && (c = c.concat(U1.value)), c;
|
|
2786
2796
|
}
|
|
2787
|
-
}),
|
|
2788
|
-
let c =
|
|
2797
|
+
}), He = _(() => {
|
|
2798
|
+
let c = E1.value;
|
|
2789
2799
|
return m1.value && (c = c.reverse()), Z1.value.length && (c = Z1.value.concat(c)), me(c);
|
|
2790
|
-
}), q1 =
|
|
2791
|
-
let c =
|
|
2800
|
+
}), q1 = _(() => {
|
|
2801
|
+
let c = He.value;
|
|
2792
2802
|
return ve.value > 0 && (c = c.slice(0, ve.value)), c;
|
|
2793
|
-
}), X1 =
|
|
2794
|
-
if (!
|
|
2803
|
+
}), X1 = _(() => {
|
|
2804
|
+
if (!d1.value)
|
|
2795
2805
|
return [];
|
|
2796
2806
|
let c = [], w = V1.value || /* istanbul ignore next */
|
|
2797
2807
|
[];
|
|
2798
2808
|
return U1.value.length && c.push({
|
|
2799
|
-
[
|
|
2809
|
+
[m.value]: " ",
|
|
2800
2810
|
[n1.value]: [...U1.value],
|
|
2801
2811
|
__CREATE__: !0
|
|
2802
2812
|
}), c.concat(w);
|
|
2803
|
-
}), nt =
|
|
2813
|
+
}), nt = _(() => {
|
|
2804
2814
|
let c = [...X1.value].map((w) => ({ ...w }));
|
|
2805
2815
|
return Z1.value.length && (c[0] && c[0].__CREATE__ ? c[0][n1.value] = [...Z1.value, ...c[0][n1.value]] : c = [{
|
|
2806
|
-
[
|
|
2816
|
+
[m.value]: " ",
|
|
2807
2817
|
[n1.value]: [...Z1.value],
|
|
2808
2818
|
__CREATE__: !0
|
|
2809
2819
|
}].concat(c)), c;
|
|
2810
|
-
}), Oe =
|
|
2811
|
-
if (!
|
|
2820
|
+
}), Oe = _(() => {
|
|
2821
|
+
if (!d1.value)
|
|
2812
2822
|
return [];
|
|
2813
2823
|
let c = nt.value;
|
|
2814
2824
|
return bt((c || /* istanbul ignore next */
|
|
@@ -2818,24 +2828,24 @@ function y7(s, e, t) {
|
|
|
2818
2828
|
...w,
|
|
2819
2829
|
index: q,
|
|
2820
2830
|
group: !0,
|
|
2821
|
-
[n1.value]: me(a1, !1).map((j1) => Object.assign({}, j1, w[
|
|
2822
|
-
__VISIBLE__: me(a1).map((j1) => Object.assign({}, j1, w[
|
|
2831
|
+
[n1.value]: me(a1, !1).map((j1) => Object.assign({}, j1, w[D.value] ? { [D.value]: !0 } : {})),
|
|
2832
|
+
__VISIBLE__: me(a1).map((j1) => Object.assign({}, j1, w[D.value] ? { [D.value]: !0 } : {}))
|
|
2823
2833
|
};
|
|
2824
2834
|
}));
|
|
2825
|
-
}), pe =
|
|
2835
|
+
}), pe = _(() => {
|
|
2826
2836
|
switch (a.value) {
|
|
2827
2837
|
case "single":
|
|
2828
|
-
return !w1(U.value[
|
|
2838
|
+
return !w1(U.value[H.value]);
|
|
2829
2839
|
case "multiple":
|
|
2830
2840
|
case "tags":
|
|
2831
2841
|
return !w1(U.value) && U.value.length > 0;
|
|
2832
2842
|
}
|
|
2833
|
-
}), it =
|
|
2834
|
-
[
|
|
2843
|
+
}), it = _(() => B !== void 0 && B.value !== void 0 ? B.value(U.value, W) : U.value && U.value.length > 1 ? `${U.value.length} options selected` : "1 option selected"), ot = _(() => !E1.value.length && !b1.value && !Z1.value.length), rt = _(() => E1.value.length > 0 && q1.value.length == 0 && (O.value && d1.value || !d1.value)), Z1 = _(() => ke.value === !1 || !O.value ? [] : _t(O.value) !== -1 ? [] : [{
|
|
2844
|
+
[H.value]: O.value,
|
|
2835
2845
|
[y1.value]: O.value,
|
|
2836
2846
|
[v.value]: O.value,
|
|
2837
2847
|
__CREATE__: !0
|
|
2838
|
-
}]), y1 =
|
|
2848
|
+
}]), y1 = _(() => i.value || v.value), ut = _(() => {
|
|
2839
2849
|
switch (a.value) {
|
|
2840
2850
|
case "single":
|
|
2841
2851
|
return null;
|
|
@@ -2843,7 +2853,7 @@ function y7(s, e, t) {
|
|
|
2843
2853
|
case "tags":
|
|
2844
2854
|
return [];
|
|
2845
2855
|
}
|
|
2846
|
-
}), ct =
|
|
2856
|
+
}), ct = _(() => E.value || b1.value), D1 = (c) => {
|
|
2847
2857
|
switch (typeof c != "object" && (c = L1(c)), a.value) {
|
|
2848
2858
|
case "single":
|
|
2849
2859
|
I1(c);
|
|
@@ -2861,11 +2871,11 @@ function y7(s, e, t) {
|
|
|
2861
2871
|
break;
|
|
2862
2872
|
case "tags":
|
|
2863
2873
|
case "multiple":
|
|
2864
|
-
I1(Array.isArray(c) ? U.value.filter((w) => c.map((q) => q[
|
|
2874
|
+
I1(Array.isArray(c) ? U.value.filter((w) => c.map((q) => q[H.value]).indexOf(w[H.value]) === -1) : U.value.filter((w) => w[H.value] != c[H.value]));
|
|
2865
2875
|
break;
|
|
2866
2876
|
}
|
|
2867
2877
|
e.emit("deselect", Be(c), c, W);
|
|
2868
|
-
}, Be = (c) =>
|
|
2878
|
+
}, Be = (c) => k.value ? c : c[H.value], Ze = (c) => {
|
|
2869
2879
|
P1(c);
|
|
2870
2880
|
}, dt = (c, w) => {
|
|
2871
2881
|
if (w.button !== 0) {
|
|
@@ -2880,12 +2890,12 @@ function y7(s, e, t) {
|
|
|
2880
2890
|
return a.value === "single" ? !1 : ft(c[n1.value]) && c[n1.value].length;
|
|
2881
2891
|
switch (a.value) {
|
|
2882
2892
|
case "single":
|
|
2883
|
-
return !w1(U.value) && U.value[
|
|
2893
|
+
return !w1(U.value) && U.value[H.value] == c[H.value];
|
|
2884
2894
|
case "tags":
|
|
2885
2895
|
case "multiple":
|
|
2886
|
-
return !w1(U.value) && U.value.map((w) => w[
|
|
2896
|
+
return !w1(U.value) && U.value.map((w) => w[H.value]).indexOf(c[H.value]) !== -1;
|
|
2887
2897
|
}
|
|
2888
|
-
}, he = (c) => c[
|
|
2898
|
+
}, he = (c) => c[D.value] === !0, fe = () => P === void 0 || P.value === -1 || !pe.value && P.value > 0 ? !1 : U.value.length >= P.value, Ct = (c) => {
|
|
2889
2899
|
if (!he(c)) {
|
|
2890
2900
|
if (S && S.value && !S1(c) && c.__CREATE__ && (c = { ...c }, delete c.__CREATE__, c = S.value(c, W), c instanceof Promise)) {
|
|
2891
2901
|
b1.value = !0, c.then((w) => {
|
|
@@ -2902,7 +2912,7 @@ function y7(s, e, t) {
|
|
|
2902
2912
|
$.value && P1(c), z.value && (O1(), B1());
|
|
2903
2913
|
return;
|
|
2904
2914
|
}
|
|
2905
|
-
c && _e(c), s1.value && r1(),
|
|
2915
|
+
c && _e(c), s1.value && r1(), T.value && (O1(), B1()), c && D1(c);
|
|
2906
2916
|
break;
|
|
2907
2917
|
case "multiple":
|
|
2908
2918
|
if (c && S1(c)) {
|
|
@@ -2913,7 +2923,7 @@ function y7(s, e, t) {
|
|
|
2913
2923
|
e.emit("max", W);
|
|
2914
2924
|
return;
|
|
2915
2925
|
}
|
|
2916
|
-
c && (_e(c), D1(c)), s1.value && r1(), o.value && O1(),
|
|
2926
|
+
c && (_e(c), D1(c)), s1.value && r1(), o.value && O1(), T.value && B1();
|
|
2917
2927
|
break;
|
|
2918
2928
|
case "tags":
|
|
2919
2929
|
if (c && S1(c)) {
|
|
@@ -2924,27 +2934,27 @@ function y7(s, e, t) {
|
|
|
2924
2934
|
e.emit("max", W);
|
|
2925
2935
|
return;
|
|
2926
2936
|
}
|
|
2927
|
-
c && _e(c), s1.value && r1(), c && D1(c), o.value && O1(),
|
|
2937
|
+
c && _e(c), s1.value && r1(), c && D1(c), o.value && O1(), T.value && B1();
|
|
2928
2938
|
break;
|
|
2929
2939
|
}
|
|
2930
|
-
|
|
2940
|
+
T.value || tt();
|
|
2931
2941
|
}, vt = (c) => {
|
|
2932
2942
|
if (!(he(c) || a.value === "single" || !g.value)) {
|
|
2933
2943
|
switch (a.value) {
|
|
2934
2944
|
case "multiple":
|
|
2935
2945
|
case "tags":
|
|
2936
2946
|
ht(c[n1.value]) ? P1(c[n1.value]) : D1(
|
|
2937
|
-
c[n1.value].filter((w) => U.value.map((q) => q[
|
|
2947
|
+
c[n1.value].filter((w) => U.value.map((q) => q[H.value]).indexOf(w[H.value]) === -1).filter((w) => !w[D.value]).filter((w, q) => U.value.length + 1 + q <= P.value || P.value === -1)
|
|
2938
2948
|
);
|
|
2939
2949
|
break;
|
|
2940
2950
|
}
|
|
2941
|
-
|
|
2951
|
+
T.value && st();
|
|
2942
2952
|
}
|
|
2943
2953
|
}, _e = (c) => {
|
|
2944
|
-
L1(c[
|
|
2954
|
+
L1(c[H.value]) === void 0 && ke.value && (e.emit("tag", c[H.value], W), e.emit("option", c[H.value], W), e.emit("create", c[H.value], W), lt.value && gt(c), r1());
|
|
2945
2955
|
}, pt = () => {
|
|
2946
2956
|
a.value !== "single" && D1(q1.value.filter((c) => !c.disabled && !S1(c)));
|
|
2947
|
-
}, ht = (c) => c.find((w) => !S1(w) && !w[
|
|
2957
|
+
}, ht = (c) => c.find((w) => !S1(w) && !w[D.value]) === void 0, ft = (c) => c.find((w) => !S1(w)) === void 0, L1 = (c) => E1.value[E1.value.map((w) => String(w[H.value])).indexOf(String(c))], _t = (c, w = !0) => E1.value.map((q) => parseInt(q[y1.value]) == q[y1.value] ? parseInt(q[y1.value]) : q[y1.value]).indexOf(
|
|
2948
2958
|
parseInt(c) == c ? parseInt(c) : c
|
|
2949
2959
|
), mt = (c) => ["tags", "multiple"].indexOf(a.value) !== -1 && o.value && S1(c), gt = (c) => {
|
|
2950
2960
|
U1.value.push(c);
|
|
@@ -2952,7 +2962,7 @@ function y7(s, e, t) {
|
|
|
2952
2962
|
(w) => O.value ? w.__VISIBLE__.length : w[n1.value].length
|
|
2953
2963
|
) : c.filter((w) => O.value ? w.__VISIBLE__.length : !0), me = (c, w = !0) => {
|
|
2954
2964
|
let q = c;
|
|
2955
|
-
if (O.value &&
|
|
2965
|
+
if (O.value && Z.value) {
|
|
2956
2966
|
let a1 = i1.value;
|
|
2957
2967
|
a1 || (a1 = (j1, vo) => {
|
|
2958
2968
|
let Re = we(at(j1[y1.value]), o1.value);
|
|
@@ -2964,8 +2974,8 @@ function y7(s, e, t) {
|
|
|
2964
2974
|
let w = c;
|
|
2965
2975
|
return g7(w) && (w = Object.keys(w).map((q) => {
|
|
2966
2976
|
let a1 = w[q];
|
|
2967
|
-
return { [
|
|
2968
|
-
})), w = w.map((q) => typeof q == "object" ? q : { [
|
|
2977
|
+
return { [H.value]: q, [y1.value]: a1, [v.value]: a1 };
|
|
2978
|
+
})), w = w.map((q) => typeof q == "object" ? q : { [H.value]: q, [y1.value]: q, [v.value]: q }), w;
|
|
2969
2979
|
}, W1 = () => {
|
|
2970
2980
|
w1(f.value) || (U.value = Q1(f.value));
|
|
2971
2981
|
}, J1 = (c) => (b1.value = !0, new Promise((w, q) => {
|
|
@@ -2979,71 +2989,71 @@ function y7(s, e, t) {
|
|
|
2979
2989
|
})), be = () => {
|
|
2980
2990
|
if (pe.value)
|
|
2981
2991
|
if (a.value === "single") {
|
|
2982
|
-
let c = L1(U.value[
|
|
2992
|
+
let c = L1(U.value[H.value]);
|
|
2983
2993
|
if (c !== void 0) {
|
|
2984
2994
|
let w = c[v.value];
|
|
2985
|
-
U.value[v.value] = w,
|
|
2995
|
+
U.value[v.value] = w, k.value && (f.value[v.value] = w);
|
|
2986
2996
|
}
|
|
2987
2997
|
} else
|
|
2988
2998
|
U.value.forEach((c, w) => {
|
|
2989
|
-
let q = L1(U.value[w][
|
|
2999
|
+
let q = L1(U.value[w][H.value]);
|
|
2990
3000
|
if (q !== void 0) {
|
|
2991
3001
|
let a1 = q[v.value];
|
|
2992
|
-
U.value[w][v.value] = a1,
|
|
3002
|
+
U.value[w][v.value] = a1, k.value && (f.value[w][v.value] = a1);
|
|
2993
3003
|
}
|
|
2994
3004
|
});
|
|
2995
3005
|
}, yt = (c) => {
|
|
2996
3006
|
J1(c);
|
|
2997
|
-
}, Q1 = (c) => w1(c) ? a.value === "single" ? {} : [] :
|
|
3007
|
+
}, Q1 = (c) => w1(c) ? a.value === "single" ? {} : [] : k.value ? c : a.value === "single" ? L1(c) || (t1.value ? {
|
|
2998
3008
|
[v.value]: c,
|
|
2999
|
-
[
|
|
3009
|
+
[H.value]: c,
|
|
3000
3010
|
[y1.value]: c
|
|
3001
3011
|
} : {}) : c.filter((w) => !!L1(w) || t1.value).map((w) => L1(w) || {
|
|
3002
3012
|
[v.value]: w,
|
|
3003
|
-
[
|
|
3013
|
+
[H.value]: w,
|
|
3004
3014
|
[y1.value]: w
|
|
3005
3015
|
}), Ne = () => {
|
|
3006
|
-
Ce.value =
|
|
3016
|
+
Ce.value = c1(O, (c) => {
|
|
3007
3017
|
c.length < h.value || !c && h.value !== 0 || (b1.value = !0, X.value && (V1.value = []), setTimeout(() => {
|
|
3008
3018
|
c == O.value && n.value(O.value, W).then((w) => {
|
|
3009
|
-
(c == O.value || !O.value) && (V1.value = w, et.value = q1.value.filter((q) => q[
|
|
3019
|
+
(c == O.value || !O.value) && (V1.value = w, et.value = q1.value.filter((q) => q[D.value] !== !0)[0] || null, b1.value = !1);
|
|
3010
3020
|
}).catch(
|
|
3011
3021
|
/* istanbul ignore next */
|
|
3012
3022
|
(w) => {
|
|
3013
3023
|
console.error(w);
|
|
3014
3024
|
}
|
|
3015
3025
|
);
|
|
3016
|
-
},
|
|
3026
|
+
}, R.value));
|
|
3017
3027
|
}, { flush: "sync" });
|
|
3018
3028
|
};
|
|
3019
3029
|
if (a.value !== "single" && !w1(f.value) && !Array.isArray(f.value))
|
|
3020
3030
|
throw new Error(`v-model must be an array when using "${a.value}" mode`);
|
|
3021
|
-
return n && typeof n.value == "function" ? L.value ? J1(W1) :
|
|
3031
|
+
return n && typeof n.value == "function" ? L.value ? J1(W1) : k.value == !0 && W1() : (V1.value = n.value, W1()), R.value > -1 && Ne(), c1(R, (c, w) => {
|
|
3022
3032
|
Ce.value && Ce.value(), c >= 0 && Ne();
|
|
3023
|
-
}),
|
|
3033
|
+
}), c1(f, (c) => {
|
|
3024
3034
|
if (w1(c)) {
|
|
3025
3035
|
I1(Q1(c), !1);
|
|
3026
3036
|
return;
|
|
3027
3037
|
}
|
|
3028
3038
|
switch (a.value) {
|
|
3029
3039
|
case "single":
|
|
3030
|
-
(
|
|
3040
|
+
(k.value ? c[H.value] != U.value[H.value] : c != U.value[H.value]) && I1(Q1(c), !1);
|
|
3031
3041
|
break;
|
|
3032
3042
|
case "multiple":
|
|
3033
3043
|
case "tags":
|
|
3034
|
-
b7(
|
|
3044
|
+
b7(k.value ? c.map((w) => w[H.value]) : c, U.value.map((w) => w[H.value])) || I1(Q1(c), !1);
|
|
3035
3045
|
break;
|
|
3036
3046
|
}
|
|
3037
|
-
}, { deep: !0 }),
|
|
3047
|
+
}, { deep: !0 }), c1(n, (c, w) => {
|
|
3038
3048
|
typeof s.options == "function" ? L.value && (!w || c && c.toString() !== w.toString()) && J1() : (V1.value = s.options, Object.keys(U.value).length || W1(), be());
|
|
3039
|
-
}),
|
|
3040
|
-
pfo:
|
|
3049
|
+
}), c1(v, be), {
|
|
3050
|
+
pfo: He,
|
|
3041
3051
|
fo: q1,
|
|
3042
3052
|
filteredOptions: q1,
|
|
3043
3053
|
hasSelected: pe,
|
|
3044
3054
|
multipleLabelText: it,
|
|
3045
|
-
eo:
|
|
3046
|
-
extendedOptions:
|
|
3055
|
+
eo: E1,
|
|
3056
|
+
extendedOptions: E1,
|
|
3047
3057
|
eg: X1,
|
|
3048
3058
|
extendedGroups: X1,
|
|
3049
3059
|
fg: Oe,
|
|
@@ -3081,53 +3091,53 @@ function w7(s, e, t) {
|
|
|
3081
3091
|
groupSelect: u,
|
|
3082
3092
|
disabledProp: v,
|
|
3083
3093
|
groupOptions: y
|
|
3084
|
-
} = p1(s), I = t.fo,
|
|
3094
|
+
} = p1(s), I = t.fo, B = t.fg, k = t.handleOptionClick, E = t.handleGroupClick, R = t.search, L = t.pointer, h = t.setPointer, Z = t.clearPointer, X = t.multiselect, s1 = t.isOpen, H = _(() => I.value.filter((f) => !f[v.value])), t1 = _(() => B.value.filter((f) => !f[v.value])), m = _(() => p.value !== "single" && u.value), $ = _(() => L.value && L.value.group), P = _(() => W(L.value)), o1 = _(() => {
|
|
3085
3095
|
const f = $.value ? L.value : (
|
|
3086
3096
|
/* istanbul ignore next */
|
|
3087
3097
|
W(L.value)
|
|
3088
3098
|
), O = t1.value.map((I1) => I1[l.value]).indexOf(f[l.value]);
|
|
3089
3099
|
let r1 = t1.value[O - 1];
|
|
3090
3100
|
return r1 === void 0 && (r1 = z.value), r1;
|
|
3091
|
-
}),
|
|
3101
|
+
}), T = _(() => {
|
|
3092
3102
|
let f = t1.value.map((O) => O.label).indexOf($.value ? L.value[l.value] : W(L.value)[l.value]) + 1;
|
|
3093
3103
|
return t1.value.length <= f && (f = 0), t1.value[f];
|
|
3094
|
-
}), z =
|
|
3095
|
-
const f =
|
|
3104
|
+
}), z = _(() => [...t1.value].slice(-1)[0]), d1 = _(() => L.value.__VISIBLE__.filter((f) => !f[v.value])[0]), m1 = _(() => {
|
|
3105
|
+
const f = P.value.__VISIBLE__.filter((O) => !O[v.value]);
|
|
3096
3106
|
return f[f.map((O) => O[n.value]).indexOf(L.value[n.value]) - 1];
|
|
3097
|
-
}),
|
|
3107
|
+
}), T1 = _(() => {
|
|
3098
3108
|
const f = W(L.value).__VISIBLE__.filter((O) => !O[v.value]);
|
|
3099
3109
|
return f[f.map((O) => O[n.value]).indexOf(L.value[n.value]) + 1];
|
|
3100
|
-
}), n1 =
|
|
3101
|
-
h(
|
|
3102
|
-
},
|
|
3103
|
-
!L.value || L.value[v.value] === !0 || ($.value ?
|
|
3110
|
+
}), n1 = _(() => [...o1.value.__VISIBLE__.filter((f) => !f[v.value])].slice(-1)[0]), b = _(() => [...z.value.__VISIBLE__.filter((f) => !f[v.value])].slice(-1)[0]), g = (f) => L.value && (!f.group && L.value[n.value] === f[n.value] || f.group !== void 0 && L.value[l.value] === f[l.value]) ? !0 : void 0, S = () => {
|
|
3111
|
+
h(H.value[0] || null);
|
|
3112
|
+
}, D = () => {
|
|
3113
|
+
!L.value || L.value[v.value] === !0 || ($.value ? E(L.value) : k(L.value));
|
|
3104
3114
|
}, Q = () => {
|
|
3105
3115
|
if (L.value === null)
|
|
3106
|
-
h((o.value &&
|
|
3107
|
-
else if (o.value &&
|
|
3108
|
-
let f = $.value ?
|
|
3109
|
-
f === void 0 && (f =
|
|
3116
|
+
h((o.value && m.value ? t1.value[0].__CREATE__ ? H.value[0] : t1.value[0] : H.value[0]) || null);
|
|
3117
|
+
else if (o.value && m.value) {
|
|
3118
|
+
let f = $.value ? d1.value : T1.value;
|
|
3119
|
+
f === void 0 && (f = T.value, f.__CREATE__ && (f = f[y.value][0])), h(f || /* istanbul ignore next */
|
|
3110
3120
|
null);
|
|
3111
3121
|
} else {
|
|
3112
|
-
let f =
|
|
3113
|
-
|
|
3122
|
+
let f = H.value.map((O) => O[n.value]).indexOf(L.value[n.value]) + 1;
|
|
3123
|
+
H.value.length <= f && (f = 0), h(H.value[f] || null);
|
|
3114
3124
|
}
|
|
3115
|
-
|
|
3125
|
+
H1(() => {
|
|
3116
3126
|
U();
|
|
3117
3127
|
});
|
|
3118
3128
|
}, i1 = () => {
|
|
3119
3129
|
if (L.value === null) {
|
|
3120
|
-
let f =
|
|
3121
|
-
o.value &&
|
|
3122
|
-
} else if (o.value &&
|
|
3130
|
+
let f = H.value[H.value.length - 1];
|
|
3131
|
+
o.value && m.value && (f = b.value, f === void 0 && (f = z.value)), h(f || null);
|
|
3132
|
+
} else if (o.value && m.value) {
|
|
3123
3133
|
let f = $.value ? n1.value : m1.value;
|
|
3124
|
-
f === void 0 && (f = $.value ? o1.value :
|
|
3134
|
+
f === void 0 && (f = $.value ? o1.value : P.value, f.__CREATE__ && (f = n1.value, f === void 0 && (f = o1.value))), h(f || /* istanbul ignore next */
|
|
3125
3135
|
null);
|
|
3126
3136
|
} else {
|
|
3127
|
-
let f =
|
|
3128
|
-
f < 0 && (f =
|
|
3137
|
+
let f = H.value.map((O) => O[n.value]).indexOf(L.value[n.value]) - 1;
|
|
3138
|
+
f < 0 && (f = H.value.length - 1), h(H.value[f] || null);
|
|
3129
3139
|
}
|
|
3130
|
-
|
|
3140
|
+
H1(() => {
|
|
3131
3141
|
U();
|
|
3132
3142
|
});
|
|
3133
3143
|
}, W = (f) => t1.value.find((O) => O.__VISIBLE__.map((r1) => r1[n.value]).indexOf(f[n.value]) !== -1), U = () => {
|
|
@@ -3137,24 +3147,24 @@ function w7(s, e, t) {
|
|
|
3137
3147
|
let O = f.parentElement.parentElement;
|
|
3138
3148
|
o.value && (O = $.value ? f.parentElement.parentElement.parentElement : f.parentElement.parentElement.parentElement.parentElement), f.offsetTop + f.offsetHeight > O.clientHeight + O.scrollTop && (O.scrollTop = f.offsetTop + f.offsetHeight - O.clientHeight), f.offsetTop < O.scrollTop && (O.scrollTop = f.offsetTop);
|
|
3139
3149
|
};
|
|
3140
|
-
return
|
|
3141
|
-
i.value && (f.length && a.value ? S() :
|
|
3142
|
-
}),
|
|
3150
|
+
return c1(R, (f) => {
|
|
3151
|
+
i.value && (f.length && a.value ? S() : Z());
|
|
3152
|
+
}), c1(s1, (f) => {
|
|
3143
3153
|
if (f) {
|
|
3144
3154
|
let O = X.value.querySelectorAll("[data-selected]")[0];
|
|
3145
3155
|
if (!O)
|
|
3146
3156
|
return;
|
|
3147
3157
|
let r1 = O.parentElement.parentElement;
|
|
3148
|
-
|
|
3158
|
+
H1(() => {
|
|
3149
3159
|
r1.scrollTop > 0 || (r1.scrollTop = O.offsetTop);
|
|
3150
3160
|
});
|
|
3151
3161
|
}
|
|
3152
3162
|
}), {
|
|
3153
3163
|
pointer: L,
|
|
3154
|
-
canPointGroups:
|
|
3164
|
+
canPointGroups: m,
|
|
3155
3165
|
isPointed: g,
|
|
3156
3166
|
setPointerFirst: S,
|
|
3157
|
-
selectPointer:
|
|
3167
|
+
selectPointer: D,
|
|
3158
3168
|
forwardPointer: Q,
|
|
3159
3169
|
backwardPointer: i1
|
|
3160
3170
|
};
|
|
@@ -3172,30 +3182,30 @@ function $7(s, e, t) {
|
|
|
3172
3182
|
};
|
|
3173
3183
|
}
|
|
3174
3184
|
function M7(s, e, t) {
|
|
3175
|
-
const { searchable: n, disabled: a, clearOnBlur: i } = p1(s), l = t.input, o = t.open, p = t.close, u = t.clearSearch, v = t.isOpen, y = J(null), I = J(null),
|
|
3185
|
+
const { searchable: n, disabled: a, clearOnBlur: i } = p1(s), l = t.input, o = t.open, p = t.close, u = t.clearSearch, v = t.isOpen, y = J(null), I = J(null), B = J(null), k = J(!1), E = J(!1), R = _(() => n.value || a.value ? -1 : 0), L = () => {
|
|
3176
3186
|
n.value && l.value.blur(), I.value.blur();
|
|
3177
3187
|
}, h = () => {
|
|
3178
3188
|
n.value && !a.value && l.value.focus();
|
|
3179
|
-
},
|
|
3180
|
-
a.value || (
|
|
3189
|
+
}, Z = ($ = !0) => {
|
|
3190
|
+
a.value || (k.value = !0, $ && o());
|
|
3181
3191
|
}, X = () => {
|
|
3182
|
-
|
|
3183
|
-
|
|
3192
|
+
k.value = !1, setTimeout(() => {
|
|
3193
|
+
k.value || (p(), i.value && u());
|
|
3184
3194
|
}, 1);
|
|
3185
3195
|
};
|
|
3186
3196
|
return {
|
|
3187
3197
|
multiselect: y,
|
|
3188
3198
|
wrapper: I,
|
|
3189
|
-
tags:
|
|
3190
|
-
tabindex:
|
|
3191
|
-
isActive:
|
|
3192
|
-
mouseClicked:
|
|
3199
|
+
tags: B,
|
|
3200
|
+
tabindex: R,
|
|
3201
|
+
isActive: k,
|
|
3202
|
+
mouseClicked: E,
|
|
3193
3203
|
blur: L,
|
|
3194
3204
|
focus: h,
|
|
3195
|
-
activate:
|
|
3205
|
+
activate: Z,
|
|
3196
3206
|
deactivate: X,
|
|
3197
3207
|
handleFocusIn: ($) => {
|
|
3198
|
-
$.target.closest("[data-tags]") && $.target.nodeName !== "INPUT" || $.target.closest("[data-clear]") ||
|
|
3208
|
+
$.target.closest("[data-tags]") && $.target.nodeName !== "INPUT" || $.target.closest("[data-clear]") || Z(E.value);
|
|
3199
3209
|
},
|
|
3200
3210
|
handleFocusOut: () => {
|
|
3201
3211
|
X();
|
|
@@ -3204,10 +3214,10 @@ function M7(s, e, t) {
|
|
|
3204
3214
|
X(), L();
|
|
3205
3215
|
},
|
|
3206
3216
|
handleMousedown: ($) => {
|
|
3207
|
-
|
|
3217
|
+
E.value = !0, v.value && ($.target.isEqualNode(I.value) || $.target.isEqualNode(B.value)) ? setTimeout(() => {
|
|
3208
3218
|
X();
|
|
3209
|
-
}, 0) : document.activeElement.isEqualNode(I.value) && !v.value &&
|
|
3210
|
-
|
|
3219
|
+
}, 0) : document.activeElement.isEqualNode(I.value) && !v.value && Z(), setTimeout(() => {
|
|
3220
|
+
E.value = !1;
|
|
3211
3221
|
}, 0);
|
|
3212
3222
|
}
|
|
3213
3223
|
};
|
|
@@ -3224,10 +3234,10 @@ function I7(s, e, t) {
|
|
|
3224
3234
|
addOptionOn: v,
|
|
3225
3235
|
createTag: y,
|
|
3226
3236
|
createOption: I,
|
|
3227
|
-
reverse:
|
|
3228
|
-
} = p1(s),
|
|
3229
|
-
n.value === "tags" && !o.value && z.value && l.value && !u.value && h(
|
|
3230
|
-
},
|
|
3237
|
+
reverse: B
|
|
3238
|
+
} = p1(s), k = N1().proxy, E = t.iv, R = t.update, L = t.search, h = t.setPointer, Z = t.selectPointer, X = t.backwardPointer, s1 = t.forwardPointer, H = t.multiselect, t1 = t.wrapper, m = t.tags, $ = t.isOpen, P = t.open, o1 = t.blur, T = t.fo, z = _(() => y.value || I.value || !1), d1 = _(() => a.value !== void 0 ? a.value : v.value !== void 0 ? v.value : ["enter"]), m1 = () => {
|
|
3239
|
+
n.value === "tags" && !o.value && z.value && l.value && !u.value && h(T.value[T.value.map((g) => g[p.value]).indexOf(L.value)]);
|
|
3240
|
+
}, T1 = (g) => {
|
|
3231
3241
|
let S = g.length - 1;
|
|
3232
3242
|
for (; S >= 0 && (g[S].remove === !1 || g[S].disabled); )
|
|
3233
3243
|
S--;
|
|
@@ -3235,42 +3245,42 @@ function I7(s, e, t) {
|
|
|
3235
3245
|
};
|
|
3236
3246
|
return {
|
|
3237
3247
|
handleKeydown: (g) => {
|
|
3238
|
-
e.emit("keydown", g,
|
|
3239
|
-
let S,
|
|
3240
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(g.key) !== -1 && n.value === "tags" && (S = [...
|
|
3248
|
+
e.emit("keydown", g, k);
|
|
3249
|
+
let S, D;
|
|
3250
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(g.key) !== -1 && n.value === "tags" && (S = [...H.value.querySelectorAll("[data-tags] > *")].filter((Q) => Q !== m.value), D = S.findIndex((Q) => Q === document.activeElement)), g.key) {
|
|
3241
3251
|
case "Backspace":
|
|
3242
|
-
if (n.value === "single" || l.value && [null, ""].indexOf(L.value) === -1 ||
|
|
3252
|
+
if (n.value === "single" || l.value && [null, ""].indexOf(L.value) === -1 || E.value.length === 0)
|
|
3243
3253
|
return;
|
|
3244
|
-
|
|
3254
|
+
R(T1([...E.value]));
|
|
3245
3255
|
break;
|
|
3246
3256
|
case "Enter":
|
|
3247
3257
|
if (g.preventDefault(), g.keyCode === 229)
|
|
3248
3258
|
return;
|
|
3249
|
-
if (
|
|
3250
|
-
|
|
3259
|
+
if (D !== -1 && D !== void 0) {
|
|
3260
|
+
R([...E.value].filter((Q, i1) => i1 !== D)), D === S.length - 1 && (S.length - 1 ? S[S.length - 2].focus() : l.value ? m.value.querySelector("input").focus() : t1.value.focus());
|
|
3251
3261
|
return;
|
|
3252
3262
|
}
|
|
3253
|
-
if (
|
|
3263
|
+
if (d1.value.indexOf("enter") === -1 && z.value)
|
|
3254
3264
|
return;
|
|
3255
|
-
m1(),
|
|
3265
|
+
m1(), Z();
|
|
3256
3266
|
break;
|
|
3257
3267
|
case " ":
|
|
3258
3268
|
if (!z.value && !l.value) {
|
|
3259
|
-
g.preventDefault(), m1(),
|
|
3269
|
+
g.preventDefault(), m1(), Z();
|
|
3260
3270
|
return;
|
|
3261
3271
|
}
|
|
3262
3272
|
if (!z.value)
|
|
3263
3273
|
return !1;
|
|
3264
|
-
if (
|
|
3274
|
+
if (d1.value.indexOf("space") === -1 && z.value)
|
|
3265
3275
|
return;
|
|
3266
|
-
g.preventDefault(), m1(),
|
|
3276
|
+
g.preventDefault(), m1(), Z();
|
|
3267
3277
|
break;
|
|
3268
3278
|
case "Tab":
|
|
3269
3279
|
case ";":
|
|
3270
3280
|
case ",":
|
|
3271
|
-
if (
|
|
3281
|
+
if (d1.value.indexOf(g.key.toLowerCase()) === -1 || !z.value)
|
|
3272
3282
|
return;
|
|
3273
|
-
m1(),
|
|
3283
|
+
m1(), Z(), g.preventDefault();
|
|
3274
3284
|
break;
|
|
3275
3285
|
case "Escape":
|
|
3276
3286
|
o1();
|
|
@@ -3278,27 +3288,27 @@ function I7(s, e, t) {
|
|
|
3278
3288
|
case "ArrowUp":
|
|
3279
3289
|
if (g.preventDefault(), !o.value)
|
|
3280
3290
|
return;
|
|
3281
|
-
$.value ||
|
|
3291
|
+
$.value || P(), X();
|
|
3282
3292
|
break;
|
|
3283
3293
|
case "ArrowDown":
|
|
3284
3294
|
if (g.preventDefault(), !o.value)
|
|
3285
3295
|
return;
|
|
3286
|
-
$.value ||
|
|
3296
|
+
$.value || P(), s1();
|
|
3287
3297
|
break;
|
|
3288
3298
|
case "ArrowLeft":
|
|
3289
|
-
if (l.value &&
|
|
3299
|
+
if (l.value && m.value && m.value.querySelector("input").selectionStart || g.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
|
|
3290
3300
|
return;
|
|
3291
|
-
g.preventDefault(),
|
|
3301
|
+
g.preventDefault(), D === -1 ? S[S.length - 1].focus() : D > 0 && S[D - 1].focus();
|
|
3292
3302
|
break;
|
|
3293
3303
|
case "ArrowRight":
|
|
3294
|
-
if (
|
|
3304
|
+
if (D === -1 || g.shiftKey || n.value !== "tags" || !E.value || !E.value.length)
|
|
3295
3305
|
return;
|
|
3296
|
-
g.preventDefault(), S.length >
|
|
3306
|
+
g.preventDefault(), S.length > D + 1 ? S[D + 1].focus() : l.value ? m.value.querySelector("input").focus() : l.value || t1.value.focus();
|
|
3297
3307
|
break;
|
|
3298
3308
|
}
|
|
3299
3309
|
},
|
|
3300
3310
|
handleKeyup: (g) => {
|
|
3301
|
-
e.emit("keyup", g,
|
|
3311
|
+
e.emit("keyup", g, k);
|
|
3302
3312
|
},
|
|
3303
3313
|
preparePointer: m1
|
|
3304
3314
|
};
|
|
@@ -3309,7 +3319,7 @@ function S7(s, e, t) {
|
|
|
3309
3319
|
disabled: a,
|
|
3310
3320
|
openDirection: i,
|
|
3311
3321
|
showOptions: l
|
|
3312
|
-
} = p1(s), o = t.isOpen, p = t.isPointed, u = t.isSelected, v = t.isDisabled, y = t.isActive, I = t.canPointGroups,
|
|
3322
|
+
} = p1(s), o = t.isOpen, p = t.isPointed, u = t.isSelected, v = t.isDisabled, y = t.isActive, I = t.canPointGroups, B = t.resolving, k = t.fo, E = _(() => ({
|
|
3313
3323
|
container: "multiselect",
|
|
3314
3324
|
containerDisabled: "is-disabled",
|
|
3315
3325
|
containerOpen: "is-open",
|
|
@@ -3362,12 +3372,12 @@ function S7(s, e, t) {
|
|
|
3362
3372
|
assist: "multiselect-assistive-text",
|
|
3363
3373
|
spacer: "multiselect-spacer",
|
|
3364
3374
|
...n.value
|
|
3365
|
-
})),
|
|
3375
|
+
})), R = _(() => !!(o.value && l.value && (!B.value || B.value && k.value.length)));
|
|
3366
3376
|
return {
|
|
3367
|
-
classList:
|
|
3368
|
-
const h =
|
|
3377
|
+
classList: _(() => {
|
|
3378
|
+
const h = E.value;
|
|
3369
3379
|
return {
|
|
3370
|
-
container: [h.container].concat(a.value ? h.containerDisabled : []).concat(
|
|
3380
|
+
container: [h.container].concat(a.value ? h.containerDisabled : []).concat(R.value && i.value === "top" ? h.containerOpenTop : []).concat(R.value && i.value !== "top" ? h.containerOpen : []).concat(y.value ? h.containerActive : []),
|
|
3371
3381
|
wrapper: h.wrapper,
|
|
3372
3382
|
spacer: h.spacer,
|
|
3373
3383
|
singleLabel: h.singleLabel,
|
|
@@ -3389,17 +3399,17 @@ function S7(s, e, t) {
|
|
|
3389
3399
|
spinner: h.spinner,
|
|
3390
3400
|
inifinite: h.inifinite,
|
|
3391
3401
|
inifiniteSpinner: h.inifiniteSpinner,
|
|
3392
|
-
dropdown: [h.dropdown].concat(i.value === "top" ? h.dropdownTop : []).concat(!o.value || !l.value || !
|
|
3402
|
+
dropdown: [h.dropdown].concat(i.value === "top" ? h.dropdownTop : []).concat(!o.value || !l.value || !R.value ? h.dropdownHidden : []),
|
|
3393
3403
|
options: [h.options].concat(i.value === "top" ? h.optionsTop : []),
|
|
3394
3404
|
group: h.group,
|
|
3395
|
-
groupLabel: (
|
|
3405
|
+
groupLabel: (Z) => {
|
|
3396
3406
|
let X = [h.groupLabel];
|
|
3397
|
-
return p(
|
|
3407
|
+
return p(Z) ? X.push(u(Z) ? h.groupLabelSelectedPointed : h.groupLabelPointed) : u(Z) && I.value ? X.push(v(Z) ? h.groupLabelSelectedDisabled : h.groupLabelSelected) : v(Z) && X.push(h.groupLabelDisabled), I.value && X.push(h.groupLabelPointable), X;
|
|
3398
3408
|
},
|
|
3399
3409
|
groupOptions: h.groupOptions,
|
|
3400
|
-
option: (
|
|
3410
|
+
option: (Z, X) => {
|
|
3401
3411
|
let s1 = [h.option];
|
|
3402
|
-
return p(
|
|
3412
|
+
return p(Z) ? s1.push(u(Z) ? h.optionSelectedPointed : h.optionPointed) : u(Z) ? s1.push(v(Z) ? h.optionSelectedDisabled : h.optionSelected) : (v(Z) || X && v(X)) && s1.push(h.optionDisabled), s1;
|
|
3403
3413
|
},
|
|
3404
3414
|
noOptions: h.noOptions,
|
|
3405
3415
|
noResults: h.noResults,
|
|
@@ -3407,32 +3417,32 @@ function S7(s, e, t) {
|
|
|
3407
3417
|
fakeInput: h.fakeInput
|
|
3408
3418
|
};
|
|
3409
3419
|
}),
|
|
3410
|
-
showDropdown:
|
|
3420
|
+
showDropdown: R
|
|
3411
3421
|
};
|
|
3412
3422
|
}
|
|
3413
3423
|
function L7(s, e, t) {
|
|
3414
3424
|
const {
|
|
3415
3425
|
limit: n,
|
|
3416
3426
|
infinite: a
|
|
3417
|
-
} = p1(s), i = t.isOpen, l = t.offset, o = t.search, p = t.pfo, u = t.eo, v = J(null), y = J(null), I =
|
|
3418
|
-
const { isIntersecting:
|
|
3419
|
-
if (
|
|
3420
|
-
const h = L.offsetParent,
|
|
3421
|
-
l.value += n.value == -1 ? 10 : n.value,
|
|
3422
|
-
h.scrollTop =
|
|
3427
|
+
} = p1(s), i = t.isOpen, l = t.offset, o = t.search, p = t.pfo, u = t.eo, v = J(null), y = J(null), I = _(() => l.value < p.value.length), B = (E) => {
|
|
3428
|
+
const { isIntersecting: R, target: L } = E[0];
|
|
3429
|
+
if (R) {
|
|
3430
|
+
const h = L.offsetParent, Z = h.scrollTop;
|
|
3431
|
+
l.value += n.value == -1 ? 10 : n.value, H1(() => {
|
|
3432
|
+
h.scrollTop = Z;
|
|
3423
3433
|
});
|
|
3424
3434
|
}
|
|
3425
|
-
},
|
|
3435
|
+
}, k = () => {
|
|
3426
3436
|
i.value && l.value < p.value.length ? v.value.observe(y.value) : !i.value && v.value && v.value.disconnect();
|
|
3427
3437
|
};
|
|
3428
|
-
return
|
|
3429
|
-
a.value &&
|
|
3430
|
-
}),
|
|
3431
|
-
a.value && (l.value = n.value,
|
|
3432
|
-
}, { flush: "post" }),
|
|
3433
|
-
a.value &&
|
|
3438
|
+
return c1(i, () => {
|
|
3439
|
+
a.value && k();
|
|
3440
|
+
}), c1(o, () => {
|
|
3441
|
+
a.value && (l.value = n.value, k());
|
|
3442
|
+
}, { flush: "post" }), c1(u, () => {
|
|
3443
|
+
a.value && k();
|
|
3434
3444
|
}, { immediate: !1, flush: "post" }), Ie(() => {
|
|
3435
|
-
window && window.IntersectionObserver && (v.value = new IntersectionObserver(
|
|
3445
|
+
window && window.IntersectionObserver && (v.value = new IntersectionObserver(B));
|
|
3436
3446
|
}), {
|
|
3437
3447
|
hasMore: I,
|
|
3438
3448
|
infiniteLoader: y
|
|
@@ -3448,52 +3458,52 @@ function A7(s, e, t) {
|
|
|
3448
3458
|
groupLabel: p,
|
|
3449
3459
|
aria: u,
|
|
3450
3460
|
searchable: v
|
|
3451
|
-
} = p1(s), y = t.pointer, I = t.iv,
|
|
3452
|
-
let
|
|
3453
|
-
return a && a.value &&
|
|
3454
|
-
}), L =
|
|
3455
|
-
let
|
|
3456
|
-
return a && a.value &&
|
|
3457
|
-
}), h =
|
|
3458
|
-
let
|
|
3459
|
-
if (a && a.value &&
|
|
3460
|
-
return
|
|
3461
|
-
}),
|
|
3462
|
-
let
|
|
3463
|
-
return o.value === "single" &&
|
|
3464
|
-
}),
|
|
3465
|
-
let
|
|
3466
|
-
return v.value && (
|
|
3467
|
-
}), t1 = (
|
|
3461
|
+
} = p1(s), y = t.pointer, I = t.iv, B = t.hasSelected, k = t.multipleLabelText, E = J(null), R = _(() => {
|
|
3462
|
+
let T = [];
|
|
3463
|
+
return a && a.value && T.push(a.value), T.push("assist"), T.join("-");
|
|
3464
|
+
}), L = _(() => {
|
|
3465
|
+
let T = [];
|
|
3466
|
+
return a && a.value && T.push(a.value), T.push("multiselect-options"), T.join("-");
|
|
3467
|
+
}), h = _(() => {
|
|
3468
|
+
let T = [];
|
|
3469
|
+
if (a && a.value && T.push(a.value), y.value)
|
|
3470
|
+
return T.push(y.value.group ? "multiselect-group" : "multiselect-option"), T.push(y.value.group ? y.value.index : y.value[i.value]), T.join("-");
|
|
3471
|
+
}), Z = _(() => n.value), X = _(() => o.value !== "single"), s1 = _(() => {
|
|
3472
|
+
let T = "";
|
|
3473
|
+
return o.value === "single" && B.value && (T += I.value[l.value]), o.value === "multiple" && B.value && (T += k.value), o.value === "tags" && B.value && (T += I.value.map((z) => z[l.value]).join(", ")), T;
|
|
3474
|
+
}), H = _(() => {
|
|
3475
|
+
let T = { ...u.value };
|
|
3476
|
+
return v.value && (T["aria-labelledby"] = T["aria-labelledby"] ? `${R.value} ${T["aria-labelledby"]}` : R.value, s1.value && T["aria-label"] && (T["aria-label"] = `${s1.value}, ${T["aria-label"]}`)), T;
|
|
3477
|
+
}), t1 = (T) => {
|
|
3468
3478
|
let z = [];
|
|
3469
|
-
return a && a.value && z.push(a.value), z.push("multiselect-option"), z.push(
|
|
3470
|
-
},
|
|
3479
|
+
return a && a.value && z.push(a.value), z.push("multiselect-option"), z.push(T[i.value]), z.join("-");
|
|
3480
|
+
}, m = (T) => {
|
|
3471
3481
|
let z = [];
|
|
3472
|
-
return a && a.value && z.push(a.value), z.push("multiselect-group"), z.push(
|
|
3473
|
-
}, $ = (
|
|
3482
|
+
return a && a.value && z.push(a.value), z.push("multiselect-group"), z.push(T.index), z.join("-");
|
|
3483
|
+
}, $ = (T) => {
|
|
3474
3484
|
let z = [];
|
|
3475
|
-
return z.push(
|
|
3476
|
-
},
|
|
3485
|
+
return z.push(T), z.join(" ");
|
|
3486
|
+
}, P = (T) => {
|
|
3477
3487
|
let z = [];
|
|
3478
|
-
return z.push(
|
|
3479
|
-
}, o1 = (
|
|
3488
|
+
return z.push(T), z.join(" ");
|
|
3489
|
+
}, o1 = (T) => `${T} ❎`;
|
|
3480
3490
|
return Ie(() => {
|
|
3481
3491
|
if (a && a.value && document && document.querySelector) {
|
|
3482
|
-
let
|
|
3483
|
-
|
|
3492
|
+
let T = document.querySelector(`[for="${a.value}"]`);
|
|
3493
|
+
E.value = T ? T.innerText : null;
|
|
3484
3494
|
}
|
|
3485
3495
|
}), {
|
|
3486
|
-
arias:
|
|
3496
|
+
arias: H,
|
|
3487
3497
|
ariaLabel: s1,
|
|
3488
|
-
ariaAssist:
|
|
3498
|
+
ariaAssist: R,
|
|
3489
3499
|
ariaControls: L,
|
|
3490
|
-
ariaPlaceholder:
|
|
3500
|
+
ariaPlaceholder: Z,
|
|
3491
3501
|
ariaMultiselectable: X,
|
|
3492
3502
|
ariaActiveDescendant: h,
|
|
3493
3503
|
ariaOptionId: t1,
|
|
3494
3504
|
ariaOptionLabel: $,
|
|
3495
|
-
ariaGroupId:
|
|
3496
|
-
ariaGroupLabel:
|
|
3505
|
+
ariaGroupId: m,
|
|
3506
|
+
ariaGroupLabel: P,
|
|
3497
3507
|
ariaTagLabel: o1
|
|
3498
3508
|
};
|
|
3499
3509
|
}
|
|
@@ -3506,7 +3516,7 @@ function V7(s, e, t) {
|
|
|
3506
3516
|
localize: (l) => !l || typeof l != "object" ? l : l && l[n.value] ? l[n.value] : l && n.value && l[n.value.toUpperCase()] ? l[n.value.toUpperCase()] : l && l[a.value] ? l[a.value] : l && a.value && l[a.value.toUpperCase()] ? l[a.value.toUpperCase()] : l && Object.keys(l)[0] ? l[Object.keys(l)[0]] : ""
|
|
3507
3517
|
};
|
|
3508
3518
|
}
|
|
3509
|
-
function
|
|
3519
|
+
function E7(s, e, t, n = {}) {
|
|
3510
3520
|
return t.forEach((a) => {
|
|
3511
3521
|
a && (n = {
|
|
3512
3522
|
...n,
|
|
@@ -3850,7 +3860,7 @@ var C1 = {
|
|
|
3850
3860
|
}
|
|
3851
3861
|
},
|
|
3852
3862
|
setup(s, e) {
|
|
3853
|
-
return
|
|
3863
|
+
return E7(s, e, [
|
|
3854
3864
|
V7,
|
|
3855
3865
|
f7,
|
|
3856
3866
|
m7,
|
|
@@ -3867,7 +3877,7 @@ var C1 = {
|
|
|
3867
3877
|
]);
|
|
3868
3878
|
}
|
|
3869
3879
|
};
|
|
3870
|
-
const
|
|
3880
|
+
const T7 = ["id", "dir"], k7 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], H7 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], O7 = ["onKeyup", "aria-label"], B7 = ["onClick"], Z7 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], D7 = ["innerHTML"], P7 = ["id"], N7 = ["id", "aria-label", "aria-selected"], R7 = ["data-pointed", "onMouseenter", "onClick"], U7 = ["innerHTML"], q7 = ["aria-label"], j7 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], z7 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], x7 = ["innerHTML"], K7 = ["innerHTML"], G7 = ["value"], F7 = ["name", "value"], Y7 = ["name", "value"], X7 = ["id"];
|
|
3871
3881
|
function W7(s, e, t, n, a, i) {
|
|
3872
3882
|
return d(), C("div", {
|
|
3873
3883
|
ref: "multiselect",
|
|
@@ -3879,7 +3889,7 @@ function W7(s, e, t, n, a, i) {
|
|
|
3879
3889
|
onKeyup: e[12] || (e[12] = (...l) => s.handleKeyup && s.handleKeyup(...l)),
|
|
3880
3890
|
onKeydown: e[13] || (e[13] = (...l) => s.handleKeydown && s.handleKeydown(...l))
|
|
3881
3891
|
}, [
|
|
3882
|
-
r("div",
|
|
3892
|
+
r("div", k1({
|
|
3883
3893
|
class: s.classList.wrapper,
|
|
3884
3894
|
onMousedown: e[9] || (e[9] = (...l) => s.handleMousedown && s.handleMousedown(...l)),
|
|
3885
3895
|
ref: "wrapper",
|
|
@@ -3891,8 +3901,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
3891
3901
|
"aria-multiselectable": t.searchable ? void 0 : s.ariaMultiselectable,
|
|
3892
3902
|
role: t.searchable ? void 0 : "combobox"
|
|
3893
3903
|
}, t.searchable ? {} : s.arias), [
|
|
3894
|
-
|
|
3895
|
-
t.mode !== "tags" && t.searchable && !t.disabled ? (d(), C("input",
|
|
3904
|
+
A(" Search "),
|
|
3905
|
+
t.mode !== "tags" && t.searchable && !t.disabled ? (d(), C("input", k1({
|
|
3896
3906
|
key: 0,
|
|
3897
3907
|
type: t.inputType,
|
|
3898
3908
|
modelValue: s.search,
|
|
@@ -3913,8 +3923,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
3913
3923
|
}, {
|
|
3914
3924
|
...t.attrs,
|
|
3915
3925
|
...s.arias
|
|
3916
|
-
}), null, 16,
|
|
3917
|
-
|
|
3926
|
+
}), null, 16, H7)) : A("v-if", !0),
|
|
3927
|
+
A(" Tags (with search) "),
|
|
3918
3928
|
t.mode == "tags" ? (d(), C(
|
|
3919
3929
|
"div",
|
|
3920
3930
|
{
|
|
@@ -3960,7 +3970,7 @@ function W7(s, e, t, n, a, i) {
|
|
|
3960
3970
|
2
|
|
3961
3971
|
/* CLASS */
|
|
3962
3972
|
)
|
|
3963
|
-
], 10, B7)) :
|
|
3973
|
+
], 10, B7)) : A("v-if", !0)
|
|
3964
3974
|
], 42, O7))
|
|
3965
3975
|
])),
|
|
3966
3976
|
256
|
|
@@ -3973,7 +3983,7 @@ function W7(s, e, t, n, a, i) {
|
|
|
3973
3983
|
ref: "tags"
|
|
3974
3984
|
},
|
|
3975
3985
|
[
|
|
3976
|
-
|
|
3986
|
+
A(" Used for measuring search width "),
|
|
3977
3987
|
r(
|
|
3978
3988
|
"span",
|
|
3979
3989
|
{
|
|
@@ -3983,8 +3993,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
3983
3993
|
3
|
|
3984
3994
|
/* TEXT, CLASS */
|
|
3985
3995
|
),
|
|
3986
|
-
|
|
3987
|
-
t.searchable && !t.disabled ? (d(), C("input",
|
|
3996
|
+
A(" Actual search input "),
|
|
3997
|
+
t.searchable && !t.disabled ? (d(), C("input", k1({
|
|
3988
3998
|
key: 0,
|
|
3989
3999
|
type: t.inputType,
|
|
3990
4000
|
modelValue: s.search,
|
|
@@ -4005,7 +4015,7 @@ function W7(s, e, t, n, a, i) {
|
|
|
4005
4015
|
}, {
|
|
4006
4016
|
...t.attrs,
|
|
4007
4017
|
...s.arias
|
|
4008
|
-
}), null, 16, Z7)) :
|
|
4018
|
+
}), null, 16, Z7)) : A("v-if", !0)
|
|
4009
4019
|
],
|
|
4010
4020
|
2
|
|
4011
4021
|
/* CLASS */
|
|
@@ -4013,8 +4023,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
4013
4023
|
],
|
|
4014
4024
|
2
|
|
4015
4025
|
/* CLASS */
|
|
4016
|
-
)) :
|
|
4017
|
-
|
|
4026
|
+
)) : A("v-if", !0),
|
|
4027
|
+
A(" Single label "),
|
|
4018
4028
|
t.mode == "single" && s.hasSelected && !s.search && s.iv ? K(s.$slots, "singlelabel", {
|
|
4019
4029
|
key: 2,
|
|
4020
4030
|
value: s.iv
|
|
@@ -4038,8 +4048,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
4038
4048
|
2
|
|
4039
4049
|
/* CLASS */
|
|
4040
4050
|
)
|
|
4041
|
-
]) :
|
|
4042
|
-
|
|
4051
|
+
]) : A("v-if", !0),
|
|
4052
|
+
A(" Multiple label "),
|
|
4043
4053
|
t.mode == "multiple" && s.hasSelected && !s.search ? K(s.$slots, "multiplelabel", {
|
|
4044
4054
|
key: 3,
|
|
4045
4055
|
values: s.iv
|
|
@@ -4048,8 +4058,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
4048
4058
|
class: j(s.classList.multipleLabel),
|
|
4049
4059
|
innerHTML: s.multipleLabelText
|
|
4050
4060
|
}, null, 10, D7)
|
|
4051
|
-
]) :
|
|
4052
|
-
|
|
4061
|
+
]) : A("v-if", !0),
|
|
4062
|
+
A(" Placeholder "),
|
|
4053
4063
|
t.placeholder && !s.hasSelected && !s.search ? K(s.$slots, "placeholder", { key: 4 }, () => [
|
|
4054
4064
|
r(
|
|
4055
4065
|
"div",
|
|
@@ -4061,8 +4071,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
4061
4071
|
3
|
|
4062
4072
|
/* TEXT, CLASS */
|
|
4063
4073
|
)
|
|
4064
|
-
]) :
|
|
4065
|
-
|
|
4074
|
+
]) : A("v-if", !0),
|
|
4075
|
+
A(" Spinner "),
|
|
4066
4076
|
t.loading || s.resolving ? K(s.$slots, "spinner", { key: 5 }, () => [
|
|
4067
4077
|
r(
|
|
4068
4078
|
"span",
|
|
@@ -4074,8 +4084,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
4074
4084
|
2
|
|
4075
4085
|
/* CLASS */
|
|
4076
4086
|
)
|
|
4077
|
-
]) :
|
|
4078
|
-
|
|
4087
|
+
]) : A("v-if", !0),
|
|
4088
|
+
A(" Clear "),
|
|
4079
4089
|
s.hasSelected && !t.disabled && t.canClear && !s.busy ? K(s.$slots, "clear", {
|
|
4080
4090
|
key: 6,
|
|
4081
4091
|
clear: s.clear
|
|
@@ -4106,8 +4116,8 @@ function W7(s, e, t, n, a, i) {
|
|
|
4106
4116
|
34
|
|
4107
4117
|
/* CLASS, HYDRATE_EVENTS */
|
|
4108
4118
|
)
|
|
4109
|
-
]) :
|
|
4110
|
-
|
|
4119
|
+
]) : A("v-if", !0),
|
|
4120
|
+
A(" Caret "),
|
|
4111
4121
|
t.caret && t.showOptions ? K(s.$slots, "caret", { key: 7 }, () => [
|
|
4112
4122
|
r(
|
|
4113
4123
|
"span",
|
|
@@ -4120,9 +4130,9 @@ function W7(s, e, t, n, a, i) {
|
|
|
4120
4130
|
2
|
|
4121
4131
|
/* CLASS */
|
|
4122
4132
|
)
|
|
4123
|
-
]) :
|
|
4124
|
-
], 16,
|
|
4125
|
-
|
|
4133
|
+
]) : A("v-if", !0)
|
|
4134
|
+
], 16, k7),
|
|
4135
|
+
A(" Options "),
|
|
4126
4136
|
r(
|
|
4127
4137
|
"div",
|
|
4128
4138
|
{
|
|
@@ -4147,7 +4157,7 @@ function W7(s, e, t, n, a, i) {
|
|
|
4147
4157
|
"aria-selected": s.isSelected(l),
|
|
4148
4158
|
role: "option"
|
|
4149
4159
|
}, [
|
|
4150
|
-
l.__CREATE__ ?
|
|
4160
|
+
l.__CREATE__ ? A("v-if", !0) : (d(), C("div", {
|
|
4151
4161
|
key: 0,
|
|
4152
4162
|
class: j(s.classList.groupLabel(l)),
|
|
4153
4163
|
"data-pointed": s.isPointed(l),
|
|
@@ -4245,13 +4255,13 @@ function W7(s, e, t, n, a, i) {
|
|
|
4245
4255
|
class: j(s.classList.noOptions),
|
|
4246
4256
|
innerHTML: s.localize(t.noOptionsText)
|
|
4247
4257
|
}, null, 10, x7)
|
|
4248
|
-
]) :
|
|
4258
|
+
]) : A("v-if", !0),
|
|
4249
4259
|
s.noResults ? K(s.$slots, "noresults", { key: 1 }, () => [
|
|
4250
4260
|
r("div", {
|
|
4251
4261
|
class: j(s.classList.noResults),
|
|
4252
4262
|
innerHTML: s.localize(t.noResultsText)
|
|
4253
4263
|
}, null, 10, K7)
|
|
4254
|
-
]) :
|
|
4264
|
+
]) : A("v-if", !0),
|
|
4255
4265
|
t.infinite && s.hasMore ? (d(), C(
|
|
4256
4266
|
"div",
|
|
4257
4267
|
{
|
|
@@ -4274,21 +4284,21 @@ function W7(s, e, t, n, a, i) {
|
|
|
4274
4284
|
],
|
|
4275
4285
|
2
|
|
4276
4286
|
/* CLASS */
|
|
4277
|
-
)) :
|
|
4287
|
+
)) : A("v-if", !0),
|
|
4278
4288
|
K(s.$slots, "afterlist", { options: s.fo })
|
|
4279
4289
|
],
|
|
4280
4290
|
2
|
|
4281
4291
|
/* CLASS */
|
|
4282
4292
|
),
|
|
4283
|
-
|
|
4293
|
+
A(" Hacky input element to show HTML5 required warning "),
|
|
4284
4294
|
t.required ? (d(), C("input", {
|
|
4285
4295
|
key: 0,
|
|
4286
4296
|
class: j(s.classList.fakeInput),
|
|
4287
4297
|
tabindex: "-1",
|
|
4288
4298
|
value: s.textValue,
|
|
4289
4299
|
required: ""
|
|
4290
|
-
}, null, 10, G7)) :
|
|
4291
|
-
|
|
4300
|
+
}, null, 10, G7)) : A("v-if", !0),
|
|
4301
|
+
A(" Native input support "),
|
|
4292
4302
|
t.nativeSupport ? (d(), C(
|
|
4293
4303
|
f1,
|
|
4294
4304
|
{ key: 1 },
|
|
@@ -4313,15 +4323,15 @@ function W7(s, e, t, n, a, i) {
|
|
|
4313
4323
|
],
|
|
4314
4324
|
64
|
|
4315
4325
|
/* STABLE_FRAGMENT */
|
|
4316
|
-
)) :
|
|
4317
|
-
|
|
4326
|
+
)) : A("v-if", !0),
|
|
4327
|
+
A(" Screen reader assistive text "),
|
|
4318
4328
|
t.searchable && s.hasSelected ? (d(), C("div", {
|
|
4319
4329
|
key: 2,
|
|
4320
4330
|
class: j(s.classList.assist),
|
|
4321
4331
|
id: s.ariaAssist,
|
|
4322
4332
|
"aria-hidden": "true"
|
|
4323
|
-
}, x(s.ariaLabel), 11, X7)) :
|
|
4324
|
-
|
|
4333
|
+
}, x(s.ariaLabel), 11, X7)) : A("v-if", !0),
|
|
4334
|
+
A(" Create height for empty input "),
|
|
4325
4335
|
r(
|
|
4326
4336
|
"div",
|
|
4327
4337
|
{
|
|
@@ -4331,7 +4341,7 @@ function W7(s, e, t, n, a, i) {
|
|
|
4331
4341
|
2
|
|
4332
4342
|
/* CLASS */
|
|
4333
4343
|
)
|
|
4334
|
-
], 42,
|
|
4344
|
+
], 42, T7);
|
|
4335
4345
|
}
|
|
4336
4346
|
C1.render = W7;
|
|
4337
4347
|
C1.__file = "src/Multiselect.vue";
|
|
@@ -4350,7 +4360,7 @@ const J7 = { class: "ao-modal__wrapper" }, Q7 = { class: "ao-modal" }, e0 = { cl
|
|
|
4350
4360
|
r("div", Q7, [
|
|
4351
4361
|
r("div", e0, [
|
|
4352
4362
|
r("div", t0, [
|
|
4353
|
-
|
|
4363
|
+
V(g1, {
|
|
4354
4364
|
"icon-name": "CloseRounded",
|
|
4355
4365
|
variant: "ghost",
|
|
4356
4366
|
color: "primary",
|
|
@@ -4359,7 +4369,7 @@ const J7 = { class: "ao-modal__wrapper" }, Q7 = { class: "ao-modal" }, e0 = { cl
|
|
|
4359
4369
|
]),
|
|
4360
4370
|
e.$slots.header ? (d(), C("header", s0, [
|
|
4361
4371
|
K(e.$slots, "header")
|
|
4362
|
-
])) :
|
|
4372
|
+
])) : A("", !0)
|
|
4363
4373
|
]),
|
|
4364
4374
|
r("div", a0, [
|
|
4365
4375
|
K(e.$slots, "default")
|
|
@@ -4369,7 +4379,7 @@ const J7 = { class: "ao-modal__wrapper" }, Q7 = { class: "ao-modal" }, e0 = { cl
|
|
|
4369
4379
|
}
|
|
4370
4380
|
});
|
|
4371
4381
|
var ze;
|
|
4372
|
-
function
|
|
4382
|
+
function Te() {
|
|
4373
4383
|
const s = l0(), e = s.appContext.config.globalProperties;
|
|
4374
4384
|
return {
|
|
4375
4385
|
i18next: e.$i18next,
|
|
@@ -4412,7 +4422,7 @@ const n0 = { class: "ao-subtasks" }, i0 = { class: "ao-subtasks__list" }, o0 = [
|
|
|
4412
4422
|
},
|
|
4413
4423
|
emits: ["add", "delete", "update"],
|
|
4414
4424
|
setup(s, { emit: e }) {
|
|
4415
|
-
const t = s, { t: n } =
|
|
4425
|
+
const t = s, { t: n } = Te(), a = () => {
|
|
4416
4426
|
const u = t.subtasks.length, v = t.subtasks.at(-1), y = v ? u1.LexoRank.parse(v.rank).genNext() : u1.LexoRank.middle(), I = {
|
|
4417
4427
|
name: n("template.defaultName.subtask", { idx: u + 1 }),
|
|
4418
4428
|
rank: y.format(),
|
|
@@ -4444,23 +4454,23 @@ const n0 = { class: "ao-subtasks" }, i0 = { class: "ao-subtasks__list" }, o0 = [
|
|
|
4444
4454
|
key: y.id,
|
|
4445
4455
|
class: "ao-subtask"
|
|
4446
4456
|
}, [
|
|
4447
|
-
u.isCheckable ? (d(),
|
|
4457
|
+
u.isCheckable ? (d(), F(g1, {
|
|
4448
4458
|
key: 0,
|
|
4449
4459
|
class: "ao-subtask__delete",
|
|
4450
|
-
"icon-name": y.status ===
|
|
4460
|
+
"icon-name": y.status === Y(se).done ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
4451
4461
|
variant: "ghost",
|
|
4452
4462
|
onClick: () => l(
|
|
4453
4463
|
y.id,
|
|
4454
|
-
y.status ===
|
|
4464
|
+
y.status === Y(se).done ? Y(se).todo : Y(se).done
|
|
4455
4465
|
)
|
|
4456
|
-
}, null, 8, ["icon-name", "onClick"])) :
|
|
4466
|
+
}, null, 8, ["icon-name", "onClick"])) : A("", !0),
|
|
4457
4467
|
r("input", {
|
|
4458
4468
|
value: y.name,
|
|
4459
4469
|
class: "ao-field__input ao-subtask__field",
|
|
4460
4470
|
type: "text",
|
|
4461
4471
|
onChange: (I) => i(I, y.id)
|
|
4462
4472
|
}, null, 40, o0),
|
|
4463
|
-
|
|
4473
|
+
V(Y(C1), {
|
|
4464
4474
|
mode: "tags",
|
|
4465
4475
|
value: y.assignees,
|
|
4466
4476
|
options: u.assigneesOptions,
|
|
@@ -4470,16 +4480,16 @@ const n0 = { class: "ao-subtasks" }, i0 = { class: "ao-subtasks__list" }, o0 = [
|
|
|
4470
4480
|
placeholder: u.$t("feed.filters.assignee.placeholder"),
|
|
4471
4481
|
onChange: (I) => p(I, y.id)
|
|
4472
4482
|
}, {
|
|
4473
|
-
tag:
|
|
4474
|
-
|
|
4483
|
+
tag: G(({ option: I, handleTagRemove: B }) => [
|
|
4484
|
+
V(Ve, {
|
|
4475
4485
|
"user-name": I.label,
|
|
4476
4486
|
"is-closable": !0,
|
|
4477
|
-
onClose: (
|
|
4487
|
+
onClose: (k) => B(I, k)
|
|
4478
4488
|
}, null, 8, ["user-name", "onClose"])
|
|
4479
4489
|
]),
|
|
4480
4490
|
_: 2
|
|
4481
4491
|
}, 1032, ["value", "options", "placeholder", "onChange"]),
|
|
4482
|
-
|
|
4492
|
+
V(g1, {
|
|
4483
4493
|
class: "ao-subtask__delete",
|
|
4484
4494
|
"icon-name": "CloseRounded",
|
|
4485
4495
|
variant: "ghost",
|
|
@@ -4488,7 +4498,7 @@ const n0 = { class: "ao-subtasks" }, i0 = { class: "ao-subtasks__list" }, o0 = [
|
|
|
4488
4498
|
]))), 128))
|
|
4489
4499
|
]),
|
|
4490
4500
|
r("div", r0, [
|
|
4491
|
-
|
|
4501
|
+
V(g1, {
|
|
4492
4502
|
label: u.$t("activity.subtasks.add"),
|
|
4493
4503
|
"icon-name": "Add",
|
|
4494
4504
|
variant: "ghost",
|
|
@@ -4537,7 +4547,7 @@ const c0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], d0 = {
|
|
|
4537
4547
|
function o() {
|
|
4538
4548
|
i.value = !1;
|
|
4539
4549
|
}
|
|
4540
|
-
|
|
4550
|
+
c1(i, (u) => {
|
|
4541
4551
|
e("toggleIsDropActive", u);
|
|
4542
4552
|
});
|
|
4543
4553
|
function p(u) {
|
|
@@ -4571,14 +4581,14 @@ const c0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], d0 = {
|
|
|
4571
4581
|
target: "_blank",
|
|
4572
4582
|
rel: "noopener noreferrer"
|
|
4573
4583
|
}, [
|
|
4574
|
-
|
|
4584
|
+
V(v1, {
|
|
4575
4585
|
class: "ao-file__icon",
|
|
4576
4586
|
name: "AttachFileRounded",
|
|
4577
4587
|
size: "sm"
|
|
4578
4588
|
}),
|
|
4579
4589
|
r("span", v0, x(I.name), 1)
|
|
4580
4590
|
], 8, C0),
|
|
4581
|
-
|
|
4591
|
+
V(g1, {
|
|
4582
4592
|
class: "ao-files__delete-button",
|
|
4583
4593
|
"icon-name": "DeleteOutlineRounded",
|
|
4584
4594
|
variant: "ghost",
|
|
@@ -4609,7 +4619,7 @@ const c0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], d0 = {
|
|
|
4609
4619
|
const g0 = {
|
|
4610
4620
|
key: 0,
|
|
4611
4621
|
class: "ao-activity__category"
|
|
4612
|
-
}, b0 = { class: "ao-activity-details__content" }, y0 = { class: "ao-fieldset" }, w0 = { class: "ao-field__row" }, $0 = { class: "ao-field ao-field--full" }, M0 = { class: "ao-field__label" }, I0 = { class: "ao-field__row" }, S0 = { class: "ao-field" }, L0 = { class: "ao-field__label" }, A0 = { class: "ao-field" }, V0 = { class: "ao-field__label" },
|
|
4622
|
+
}, b0 = { class: "ao-activity-details__content" }, y0 = { class: "ao-fieldset" }, w0 = { class: "ao-field__row" }, $0 = { class: "ao-field ao-field--full" }, M0 = { class: "ao-field__label" }, I0 = { class: "ao-field__row" }, S0 = { class: "ao-field" }, L0 = { class: "ao-field__label" }, A0 = { class: "ao-field" }, V0 = { class: "ao-field__label" }, E0 = { class: "ao-field__row" }, T0 = { class: "ao-field ao-field--multiselect" }, k0 = { class: "ao-field__label" }, H0 = { class: "ao-field__row" }, O0 = { class: "ao-field ao-field--multiselect" }, B0 = { class: "ao-field__label" }, Z0 = { class: "ao-fieldset" }, D0 = { class: "ao-fieldset__title" }, P0 = { class: "ao-field__row" }, N0 = { class: "ao-field ao-field--multiselect" }, R0 = { class: "ao-field__label" }, U0 = { class: "ao-field__row" }, q0 = { class: "ao-field ao-field--multiselect" }, j0 = { class: "ao-field__label" }, z0 = { class: "ao-field__row" }, x0 = { class: "ao-field ao-field--multiselect" }, K0 = { class: "ao-field__label" }, G0 = { class: "ao-fieldset" }, F0 = { class: "ao-fieldset__title" }, Y0 = { class: "ao-activity-details__aside" }, X0 = { class: "ao-fieldset__title" }, W0 = /* @__PURE__ */ e1({
|
|
4613
4623
|
__name: "AoActivityDetails",
|
|
4614
4624
|
props: {
|
|
4615
4625
|
activity: {},
|
|
@@ -4623,152 +4633,153 @@ const g0 = {
|
|
|
4623
4633
|
},
|
|
4624
4634
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "addFiles", "removeFile"],
|
|
4625
4635
|
setup(s, { emit: e }) {
|
|
4626
|
-
const t = s, n = J(!1), a = (
|
|
4627
|
-
n.value =
|
|
4628
|
-
}, i = (
|
|
4636
|
+
const t = s, n = J(!1), a = (m) => {
|
|
4637
|
+
n.value = m;
|
|
4638
|
+
}, i = (m) => {
|
|
4629
4639
|
e("update:activity", {
|
|
4630
4640
|
id: t.activity.id,
|
|
4631
|
-
name:
|
|
4641
|
+
name: m
|
|
4632
4642
|
});
|
|
4633
|
-
}, l =
|
|
4643
|
+
}, l = _({
|
|
4634
4644
|
get() {
|
|
4635
4645
|
return t.activity.description || "";
|
|
4636
4646
|
},
|
|
4637
|
-
set(
|
|
4638
|
-
e("update:activity", { id: t.activity.id, description:
|
|
4647
|
+
set(m) {
|
|
4648
|
+
e("update:activity", { id: t.activity.id, description: m });
|
|
4639
4649
|
}
|
|
4640
|
-
}), o =
|
|
4650
|
+
}), o = _({
|
|
4641
4651
|
get() {
|
|
4642
4652
|
return t.activity.estimation || 0;
|
|
4643
4653
|
},
|
|
4644
|
-
set(
|
|
4645
|
-
e("update:activity", { id: t.activity.id, estimation:
|
|
4654
|
+
set(m) {
|
|
4655
|
+
e("update:activity", { id: t.activity.id, estimation: m });
|
|
4646
4656
|
}
|
|
4647
|
-
}), p =
|
|
4657
|
+
}), p = _({
|
|
4648
4658
|
get() {
|
|
4649
4659
|
return t.activity.isImportant || !1;
|
|
4650
4660
|
},
|
|
4651
|
-
set(
|
|
4652
|
-
e("update:activity", { id: t.activity.id, isImportant:
|
|
4661
|
+
set(m) {
|
|
4662
|
+
e("update:activity", { id: t.activity.id, isImportant: m });
|
|
4653
4663
|
}
|
|
4654
|
-
}), u =
|
|
4664
|
+
}), u = _({
|
|
4655
4665
|
get() {
|
|
4656
4666
|
return t.activity.type;
|
|
4657
4667
|
},
|
|
4658
|
-
set(
|
|
4659
|
-
e("update:activity", { id: t.activity.id, type:
|
|
4668
|
+
set(m) {
|
|
4669
|
+
e("update:activity", { id: t.activity.id, type: m });
|
|
4660
4670
|
}
|
|
4661
|
-
}), v =
|
|
4662
|
-
label:
|
|
4663
|
-
value:
|
|
4664
|
-
}))), y =
|
|
4671
|
+
}), v = _(() => t.templateActivities.filter((m) => m.id !== t.activity.id).map((m) => ({
|
|
4672
|
+
label: m.name,
|
|
4673
|
+
value: m.id
|
|
4674
|
+
}))), y = _({
|
|
4665
4675
|
get() {
|
|
4666
4676
|
return t.activity.dependingOn;
|
|
4667
4677
|
},
|
|
4668
|
-
set(
|
|
4669
|
-
|
|
4678
|
+
set(m) {
|
|
4679
|
+
m && e("update:activity", {
|
|
4670
4680
|
id: t.activity.id,
|
|
4671
|
-
dependingOn:
|
|
4681
|
+
dependingOn: m
|
|
4672
4682
|
});
|
|
4673
4683
|
}
|
|
4674
|
-
}), I =
|
|
4684
|
+
}), I = _(() => v.value.map((m) => {
|
|
4675
4685
|
var $;
|
|
4676
4686
|
return {
|
|
4677
|
-
...
|
|
4678
|
-
disabled: ($ = t.activity.blocking) == null ? void 0 : $.some((
|
|
4687
|
+
...m,
|
|
4688
|
+
disabled: ($ = t.activity.blocking) == null ? void 0 : $.some((P) => P === m.value)
|
|
4679
4689
|
};
|
|
4680
|
-
})),
|
|
4690
|
+
})), B = _({
|
|
4681
4691
|
get() {
|
|
4682
4692
|
return t.activity.blocking;
|
|
4683
4693
|
},
|
|
4684
|
-
set(
|
|
4685
|
-
|
|
4694
|
+
set(m) {
|
|
4695
|
+
m && e("update:activity", {
|
|
4686
4696
|
id: t.activity.id,
|
|
4687
|
-
blocking:
|
|
4697
|
+
blocking: m
|
|
4688
4698
|
});
|
|
4689
4699
|
}
|
|
4690
|
-
}),
|
|
4700
|
+
}), k = _(() => v.value.map((m) => {
|
|
4691
4701
|
var $;
|
|
4692
4702
|
return {
|
|
4693
|
-
...
|
|
4694
|
-
disabled: ($ = t.activity.dependingOn) == null ? void 0 : $.some((
|
|
4703
|
+
...m,
|
|
4704
|
+
disabled: ($ = t.activity.dependingOn) == null ? void 0 : $.some((P) => P === m.value)
|
|
4695
4705
|
};
|
|
4696
|
-
})),
|
|
4706
|
+
})), E = _(() => (t.templateMilestones || []).filter(($) => $.id !== t.milestoneId).map(($) => ({
|
|
4697
4707
|
label: $.name,
|
|
4698
4708
|
value: $.id
|
|
4699
|
-
}))),
|
|
4709
|
+
}))), R = _({
|
|
4700
4710
|
get() {
|
|
4701
4711
|
return t.activity.dependingMilestones;
|
|
4702
4712
|
},
|
|
4703
|
-
set(
|
|
4713
|
+
set(m) {
|
|
4704
4714
|
e("update:activity", {
|
|
4705
4715
|
id: t.activity.id,
|
|
4706
|
-
dependingMilestones:
|
|
4716
|
+
dependingMilestones: m
|
|
4707
4717
|
});
|
|
4708
4718
|
}
|
|
4709
|
-
}), L = (
|
|
4710
|
-
e("addSubtask",
|
|
4711
|
-
}, h = (
|
|
4712
|
-
const $ = [...t.activity.subtasks || []],
|
|
4713
|
-
$[
|
|
4714
|
-
...$[
|
|
4715
|
-
...
|
|
4719
|
+
}), L = (m) => {
|
|
4720
|
+
e("addSubtask", m);
|
|
4721
|
+
}, h = (m) => {
|
|
4722
|
+
const $ = [...t.activity.subtasks || []], P = $.findIndex((o1) => o1.id === m.id);
|
|
4723
|
+
$[P] = {
|
|
4724
|
+
...$[P],
|
|
4725
|
+
...m
|
|
4716
4726
|
}, e("update:activity", { id: t.activity.id, subtasks: $ });
|
|
4717
|
-
},
|
|
4727
|
+
}, Z = (m) => {
|
|
4718
4728
|
const $ = [...t.activity.subtasks || []].filter(
|
|
4719
|
-
(
|
|
4729
|
+
(P) => P.id !== m
|
|
4720
4730
|
);
|
|
4721
4731
|
e("update:activity", { id: t.activity.id, subtasks: $ });
|
|
4722
|
-
}, X =
|
|
4723
|
-
var
|
|
4724
|
-
return ((
|
|
4732
|
+
}, X = _(() => {
|
|
4733
|
+
var m;
|
|
4734
|
+
return ((m = t.users) == null ? void 0 : m.map(($) => ({
|
|
4725
4735
|
label: `${$.firstName} ${$.lastName}`,
|
|
4726
4736
|
value: $.id
|
|
4727
4737
|
}))) || [];
|
|
4728
|
-
}), s1 =
|
|
4738
|
+
}), s1 = _({
|
|
4729
4739
|
get() {
|
|
4730
4740
|
return t.activity.assignees;
|
|
4731
4741
|
},
|
|
4732
|
-
set(
|
|
4742
|
+
set(m) {
|
|
4733
4743
|
e("update:activity", {
|
|
4734
4744
|
id: t.activity.id,
|
|
4735
|
-
assignees:
|
|
4745
|
+
assignees: m
|
|
4736
4746
|
});
|
|
4737
4747
|
}
|
|
4738
|
-
}),
|
|
4748
|
+
}), H = (m) => {
|
|
4739
4749
|
e("addFiles", {
|
|
4740
4750
|
activityId: t.activity.id,
|
|
4741
|
-
files:
|
|
4751
|
+
files: m
|
|
4742
4752
|
});
|
|
4743
|
-
}, t1 = (
|
|
4753
|
+
}, t1 = (m) => {
|
|
4744
4754
|
e("removeFile", {
|
|
4745
4755
|
activityId: t.activity.id,
|
|
4746
|
-
file:
|
|
4756
|
+
file: m
|
|
4747
4757
|
});
|
|
4748
4758
|
};
|
|
4749
|
-
return (
|
|
4750
|
-
onClose: $[8] || ($[8] = (
|
|
4759
|
+
return (m, $) => (d(), F(Qe, {
|
|
4760
|
+
onClose: $[8] || ($[8] = (P) => m.$emit("close"))
|
|
4751
4761
|
}, {
|
|
4752
|
-
header:
|
|
4753
|
-
K(
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
title:
|
|
4762
|
+
header: G(() => [
|
|
4763
|
+
K(m.$slots, "header", {}, () => [
|
|
4764
|
+
m.breadcrumbs ? (d(), C("div", g0, x(m.breadcrumbs), 1)) : A("", !0),
|
|
4765
|
+
V(M1, {
|
|
4766
|
+
title: m.activity.name || m.activity.id,
|
|
4757
4767
|
level: 4,
|
|
4768
|
+
"is-editable": !0,
|
|
4758
4769
|
"is-editing": n.value,
|
|
4759
4770
|
onToggleIsEditing: a,
|
|
4760
4771
|
"onUpdate:title": i
|
|
4761
4772
|
}, null, 8, ["title", "is-editing"])
|
|
4762
4773
|
])
|
|
4763
4774
|
]),
|
|
4764
|
-
default:
|
|
4775
|
+
default: G(() => [
|
|
4765
4776
|
r("div", b0, [
|
|
4766
4777
|
r("fieldset", y0, [
|
|
4767
4778
|
r("div", w0, [
|
|
4768
4779
|
r("label", $0, [
|
|
4769
|
-
r("span", M0, x(
|
|
4780
|
+
r("span", M0, x(m.$t("activity.description.label")), 1),
|
|
4770
4781
|
ae(r("textarea", {
|
|
4771
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
4782
|
+
"onUpdate:modelValue": $[0] || ($[0] = (P) => l.value = P),
|
|
4772
4783
|
rows: "4",
|
|
4773
4784
|
class: "ao-field__textarea"
|
|
4774
4785
|
}, null, 512), [
|
|
@@ -4786,9 +4797,9 @@ const g0 = {
|
|
|
4786
4797
|
]),
|
|
4787
4798
|
r("div", I0, [
|
|
4788
4799
|
r("label", S0, [
|
|
4789
|
-
r("span", L0, x(
|
|
4800
|
+
r("span", L0, x(m.$t("activity.estimation.label")), 1),
|
|
4790
4801
|
ae(r("input", {
|
|
4791
|
-
"onUpdate:modelValue": $[1] || ($[1] = (
|
|
4802
|
+
"onUpdate:modelValue": $[1] || ($[1] = (P) => o.value = P),
|
|
4792
4803
|
class: "ao-field__input",
|
|
4793
4804
|
type: "number",
|
|
4794
4805
|
min: "0"
|
|
@@ -4805,9 +4816,9 @@ const g0 = {
|
|
|
4805
4816
|
])
|
|
4806
4817
|
]),
|
|
4807
4818
|
r("label", A0, [
|
|
4808
|
-
r("span", V0, x(
|
|
4819
|
+
r("span", V0, x(m.$t("activity.isImportant.label")), 1),
|
|
4809
4820
|
ae(r("input", {
|
|
4810
|
-
"onUpdate:modelValue": $[2] || ($[2] = (
|
|
4821
|
+
"onUpdate:modelValue": $[2] || ($[2] = (P) => p.value = P),
|
|
4811
4822
|
class: "ao-field__input",
|
|
4812
4823
|
type: "checkbox"
|
|
4813
4824
|
}, null, 512), [
|
|
@@ -4820,59 +4831,59 @@ const g0 = {
|
|
|
4820
4831
|
])
|
|
4821
4832
|
])
|
|
4822
4833
|
]),
|
|
4823
|
-
r("div",
|
|
4824
|
-
r("div",
|
|
4825
|
-
r("span",
|
|
4826
|
-
|
|
4834
|
+
r("div", E0, [
|
|
4835
|
+
r("div", T0, [
|
|
4836
|
+
r("span", k0, x(m.$t("activity.assignees.label")), 1),
|
|
4837
|
+
V(Y(C1), {
|
|
4827
4838
|
modelValue: s1.value,
|
|
4828
|
-
"onUpdate:modelValue": $[3] || ($[3] = (
|
|
4839
|
+
"onUpdate:modelValue": $[3] || ($[3] = (P) => s1.value = P),
|
|
4829
4840
|
mode: "tags",
|
|
4830
4841
|
options: X.value,
|
|
4831
4842
|
"close-on-select": !1,
|
|
4832
4843
|
searchable: !0,
|
|
4833
4844
|
class: "ao-activity-details__assignees",
|
|
4834
|
-
placeholder:
|
|
4845
|
+
placeholder: m.$t("feed.filters.assignee.placeholder")
|
|
4835
4846
|
}, {
|
|
4836
|
-
tag:
|
|
4837
|
-
|
|
4838
|
-
"user-name":
|
|
4847
|
+
tag: G(({ option: P, handleTagRemove: o1 }) => [
|
|
4848
|
+
V(Ve, {
|
|
4849
|
+
"user-name": P.label,
|
|
4839
4850
|
"is-closable": !0,
|
|
4840
|
-
onClose: (
|
|
4851
|
+
onClose: (T) => o1(P, T)
|
|
4841
4852
|
}, null, 8, ["user-name", "onClose"])
|
|
4842
4853
|
]),
|
|
4843
4854
|
_: 1
|
|
4844
4855
|
}, 8, ["modelValue", "options", "placeholder"])
|
|
4845
4856
|
])
|
|
4846
4857
|
]),
|
|
4847
|
-
r("div",
|
|
4858
|
+
r("div", H0, [
|
|
4848
4859
|
r("label", O0, [
|
|
4849
|
-
r("span", B0, x(
|
|
4850
|
-
|
|
4860
|
+
r("span", B0, x(m.$t("activity.type.label")), 1),
|
|
4861
|
+
V(Y(C1), {
|
|
4851
4862
|
modelValue: u.value,
|
|
4852
|
-
"onUpdate:modelValue": $[4] || ($[4] = (
|
|
4863
|
+
"onUpdate:modelValue": $[4] || ($[4] = (P) => u.value = P),
|
|
4853
4864
|
class: "ao-field__multiselect",
|
|
4854
4865
|
mode: "single",
|
|
4855
4866
|
searchable: !0,
|
|
4856
4867
|
"create-option": !0,
|
|
4857
|
-
options:
|
|
4868
|
+
options: m.activityTypes
|
|
4858
4869
|
}, null, 8, ["modelValue", "options"])
|
|
4859
4870
|
])
|
|
4860
4871
|
])
|
|
4861
4872
|
]),
|
|
4862
4873
|
r("fieldset", Z0, [
|
|
4863
4874
|
r("div", D0, [
|
|
4864
|
-
|
|
4865
|
-
|
|
4875
|
+
V(v1, { name: "FlowsheetOutlineRounded" }),
|
|
4876
|
+
V(M1, {
|
|
4866
4877
|
level: 4,
|
|
4867
|
-
title:
|
|
4878
|
+
title: m.$t("activity.dependencies.title")
|
|
4868
4879
|
}, null, 8, ["title"])
|
|
4869
4880
|
]),
|
|
4870
4881
|
r("div", P0, [
|
|
4871
4882
|
r("label", N0, [
|
|
4872
|
-
r("span", R0, x(
|
|
4873
|
-
|
|
4883
|
+
r("span", R0, x(m.$t("activity.dependingOn.label")), 1),
|
|
4884
|
+
V(Y(C1), {
|
|
4874
4885
|
modelValue: y.value,
|
|
4875
|
-
"onUpdate:modelValue": $[5] || ($[5] = (
|
|
4886
|
+
"onUpdate:modelValue": $[5] || ($[5] = (P) => y.value = P),
|
|
4876
4887
|
class: "ao-field__multiselect",
|
|
4877
4888
|
mode: "tags",
|
|
4878
4889
|
"close-on-select": !1,
|
|
@@ -4883,64 +4894,64 @@ const g0 = {
|
|
|
4883
4894
|
]),
|
|
4884
4895
|
r("div", U0, [
|
|
4885
4896
|
r("label", q0, [
|
|
4886
|
-
r("span", j0, x(
|
|
4887
|
-
|
|
4888
|
-
modelValue:
|
|
4889
|
-
"onUpdate:modelValue": $[6] || ($[6] = (
|
|
4897
|
+
r("span", j0, x(m.$t("activity.blocking.label")), 1),
|
|
4898
|
+
V(Y(C1), {
|
|
4899
|
+
modelValue: B.value,
|
|
4900
|
+
"onUpdate:modelValue": $[6] || ($[6] = (P) => B.value = P),
|
|
4890
4901
|
class: "ao-field__multiselect",
|
|
4891
4902
|
mode: "tags",
|
|
4892
4903
|
"close-on-select": !1,
|
|
4893
4904
|
searchable: !0,
|
|
4894
|
-
options:
|
|
4905
|
+
options: k.value
|
|
4895
4906
|
}, null, 8, ["modelValue", "options"])
|
|
4896
4907
|
])
|
|
4897
4908
|
]),
|
|
4898
4909
|
r("div", z0, [
|
|
4899
4910
|
r("label", x0, [
|
|
4900
|
-
r("span", K0, x(
|
|
4901
|
-
|
|
4902
|
-
modelValue:
|
|
4903
|
-
"onUpdate:modelValue": $[7] || ($[7] = (
|
|
4911
|
+
r("span", K0, x(m.$t("activity.dependingMilestone.label")), 1),
|
|
4912
|
+
V(Y(C1), {
|
|
4913
|
+
modelValue: R.value,
|
|
4914
|
+
"onUpdate:modelValue": $[7] || ($[7] = (P) => R.value = P),
|
|
4904
4915
|
class: "ao-field__multiselect",
|
|
4905
4916
|
mode: "tags",
|
|
4906
4917
|
"close-on-select": !1,
|
|
4907
4918
|
searchable: !0,
|
|
4908
|
-
options:
|
|
4919
|
+
options: E.value
|
|
4909
4920
|
}, null, 8, ["modelValue", "options"])
|
|
4910
4921
|
])
|
|
4911
4922
|
])
|
|
4912
4923
|
]),
|
|
4913
4924
|
r("fieldset", G0, [
|
|
4914
4925
|
r("div", F0, [
|
|
4915
|
-
|
|
4916
|
-
|
|
4926
|
+
V(v1, { name: "SelectCheckBox" }),
|
|
4927
|
+
V(M1, {
|
|
4917
4928
|
level: 4,
|
|
4918
|
-
title:
|
|
4929
|
+
title: m.$t("activity.subtasks.title")
|
|
4919
4930
|
}, null, 8, ["title"])
|
|
4920
4931
|
]),
|
|
4921
|
-
|
|
4932
|
+
V(u0, {
|
|
4922
4933
|
class: "ao-activity-details__subtasks",
|
|
4923
|
-
subtasks:
|
|
4924
|
-
"activity-id":
|
|
4934
|
+
subtasks: m.activity.subtasks || [],
|
|
4935
|
+
"activity-id": m.activity.id,
|
|
4925
4936
|
"assignees-options": X.value,
|
|
4926
4937
|
onAdd: L,
|
|
4927
4938
|
onUpdate: h,
|
|
4928
|
-
onDelete:
|
|
4939
|
+
onDelete: Z
|
|
4929
4940
|
}, null, 8, ["subtasks", "activity-id", "assignees-options"])
|
|
4930
4941
|
]),
|
|
4931
|
-
K(
|
|
4942
|
+
K(m.$slots, "default")
|
|
4932
4943
|
]),
|
|
4933
4944
|
r("div", Y0, [
|
|
4934
4945
|
r("div", X0, [
|
|
4935
|
-
|
|
4936
|
-
|
|
4946
|
+
V(v1, { name: "AttachFileRounded" }),
|
|
4947
|
+
V(M1, {
|
|
4937
4948
|
level: 4,
|
|
4938
|
-
title:
|
|
4949
|
+
title: m.$t("activity.attachments.title")
|
|
4939
4950
|
}, null, 8, ["title"])
|
|
4940
4951
|
]),
|
|
4941
|
-
|
|
4942
|
-
attachments:
|
|
4943
|
-
onAdd:
|
|
4952
|
+
V(m0, {
|
|
4953
|
+
attachments: m.activity.attachments,
|
|
4954
|
+
onAdd: H,
|
|
4944
4955
|
onRemove: t1
|
|
4945
4956
|
}, null, 8, ["attachments"])
|
|
4946
4957
|
])
|
|
@@ -4962,7 +4973,7 @@ const J0 = /* @__PURE__ */ e1({
|
|
|
4962
4973
|
setup(s, { emit: e }) {
|
|
4963
4974
|
const t = s, n = ye(
|
|
4964
4975
|
t.rule.itemType || l1.ACTIVITIES
|
|
4965
|
-
), a =
|
|
4976
|
+
), a = _({
|
|
4966
4977
|
get() {
|
|
4967
4978
|
return n.value;
|
|
4968
4979
|
},
|
|
@@ -4973,7 +4984,7 @@ const J0 = /* @__PURE__ */ e1({
|
|
|
4973
4984
|
subItemId: void 0
|
|
4974
4985
|
});
|
|
4975
4986
|
}
|
|
4976
|
-
}), i =
|
|
4987
|
+
}), i = _(() => Object.values(l1)), l = _({
|
|
4977
4988
|
get() {
|
|
4978
4989
|
return t.rule.subItemId;
|
|
4979
4990
|
},
|
|
@@ -4984,89 +4995,89 @@ const J0 = /* @__PURE__ */ e1({
|
|
|
4984
4995
|
itemType: t.rule.itemType || a.value
|
|
4985
4996
|
});
|
|
4986
4997
|
}
|
|
4987
|
-
}), o =
|
|
4998
|
+
}), o = _(() => {
|
|
4988
4999
|
var h;
|
|
4989
5000
|
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (h = {
|
|
4990
5001
|
[l1.ACTIVITIES]: t.templateActivities,
|
|
4991
5002
|
[l1.MILESTONES]: t.templateMilestones,
|
|
4992
5003
|
[l1.PHASES]: t.templatePhases
|
|
4993
|
-
}[n.value]) == null ? void 0 : h.map((
|
|
4994
|
-
value:
|
|
4995
|
-
label:
|
|
5004
|
+
}[n.value]) == null ? void 0 : h.map((Z) => ({
|
|
5005
|
+
value: Z.id,
|
|
5006
|
+
label: Z.name
|
|
4996
5007
|
}));
|
|
4997
|
-
}), p = ye(t.rule.comparator), u =
|
|
5008
|
+
}), p = ye(t.rule.comparator), u = _({
|
|
4998
5009
|
get() {
|
|
4999
5010
|
return p.value;
|
|
5000
5011
|
},
|
|
5001
5012
|
set(L) {
|
|
5002
5013
|
e("update:rule", { ...t.rule, comparator: L });
|
|
5003
5014
|
}
|
|
5004
|
-
}), v =
|
|
5015
|
+
}), v = _(() => Object.values(i7)), y = ye(t.rule.trigger), I = _({
|
|
5005
5016
|
get() {
|
|
5006
5017
|
return y.value;
|
|
5007
5018
|
},
|
|
5008
5019
|
set(L) {
|
|
5009
5020
|
e("update:rule", { ...t.rule, trigger: L });
|
|
5010
5021
|
}
|
|
5011
|
-
}),
|
|
5022
|
+
}), B = _(() => Object.values(o7)), k = _({
|
|
5012
5023
|
get() {
|
|
5013
5024
|
return t.rule.duration;
|
|
5014
5025
|
},
|
|
5015
5026
|
set(L) {
|
|
5016
5027
|
e("update:rule", { ...t.rule, duration: L });
|
|
5017
5028
|
}
|
|
5018
|
-
}),
|
|
5029
|
+
}), E = _({
|
|
5019
5030
|
get() {
|
|
5020
5031
|
return t.rule.durationUnit;
|
|
5021
5032
|
},
|
|
5022
5033
|
set(L) {
|
|
5023
5034
|
e("update:rule", { ...t.rule, durationUnit: L });
|
|
5024
5035
|
}
|
|
5025
|
-
}),
|
|
5026
|
-
return (L, h) => (d(),
|
|
5027
|
-
default:
|
|
5028
|
-
|
|
5036
|
+
}), R = _(() => Object.values(r7));
|
|
5037
|
+
return (L, h) => (d(), F(G1(L.tagName), { class: "ao-rule-line" }, {
|
|
5038
|
+
default: G(() => [
|
|
5039
|
+
V(Y(C1), {
|
|
5029
5040
|
modelValue: a.value,
|
|
5030
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
5041
|
+
"onUpdate:modelValue": h[0] || (h[0] = (Z) => a.value = Z),
|
|
5031
5042
|
options: i.value
|
|
5032
5043
|
}, null, 8, ["modelValue", "options"]),
|
|
5033
|
-
|
|
5044
|
+
V(Y(C1), {
|
|
5034
5045
|
modelValue: l.value,
|
|
5035
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
5046
|
+
"onUpdate:modelValue": h[1] || (h[1] = (Z) => l.value = Z),
|
|
5036
5047
|
options: o.value
|
|
5037
5048
|
}, null, 8, ["modelValue", "options"]),
|
|
5038
|
-
|
|
5049
|
+
V(Y(C1), {
|
|
5039
5050
|
modelValue: I.value,
|
|
5040
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
5041
|
-
options:
|
|
5051
|
+
"onUpdate:modelValue": h[2] || (h[2] = (Z) => I.value = Z),
|
|
5052
|
+
options: B.value
|
|
5042
5053
|
}, null, 8, ["modelValue", "options"]),
|
|
5043
|
-
|
|
5054
|
+
V(Y(C1), {
|
|
5044
5055
|
modelValue: u.value,
|
|
5045
|
-
"onUpdate:modelValue": h[3] || (h[3] = (
|
|
5056
|
+
"onUpdate:modelValue": h[3] || (h[3] = (Z) => u.value = Z),
|
|
5046
5057
|
options: v.value
|
|
5047
5058
|
}, null, 8, ["modelValue", "options"]),
|
|
5048
5059
|
ae(r("input", {
|
|
5049
|
-
"onUpdate:modelValue": h[4] || (h[4] = (
|
|
5060
|
+
"onUpdate:modelValue": h[4] || (h[4] = (Z) => k.value = Z),
|
|
5050
5061
|
type: "number",
|
|
5051
5062
|
min: "0"
|
|
5052
5063
|
}, null, 512), [
|
|
5053
5064
|
[
|
|
5054
5065
|
$e,
|
|
5055
|
-
|
|
5066
|
+
k.value,
|
|
5056
5067
|
void 0,
|
|
5057
5068
|
{ number: !0 }
|
|
5058
5069
|
]
|
|
5059
5070
|
]),
|
|
5060
|
-
|
|
5061
|
-
modelValue:
|
|
5062
|
-
"onUpdate:modelValue": h[5] || (h[5] = (
|
|
5063
|
-
options:
|
|
5071
|
+
V(Y(C1), {
|
|
5072
|
+
modelValue: E.value,
|
|
5073
|
+
"onUpdate:modelValue": h[5] || (h[5] = (Z) => E.value = Z),
|
|
5074
|
+
options: R.value
|
|
5064
5075
|
}, null, 8, ["modelValue", "options"]),
|
|
5065
|
-
|
|
5076
|
+
V(g1, {
|
|
5066
5077
|
class: "ao-rule-line__remove",
|
|
5067
5078
|
"icon-name": "CloseRounded",
|
|
5068
5079
|
variant: "ghost",
|
|
5069
|
-
onClick: h[6] || (h[6] = (
|
|
5080
|
+
onClick: h[6] || (h[6] = (Z) => L.$emit("close"))
|
|
5070
5081
|
})
|
|
5071
5082
|
]),
|
|
5072
5083
|
_: 1
|
|
@@ -5089,17 +5100,17 @@ const Q0 = { class: "ao-template-rules__body" }, eo = { class: "ao-template-rule
|
|
|
5089
5100
|
}, n = (a) => {
|
|
5090
5101
|
e("removeRule", a);
|
|
5091
5102
|
};
|
|
5092
|
-
return (a, i) => (d(),
|
|
5093
|
-
header:
|
|
5094
|
-
|
|
5103
|
+
return (a, i) => (d(), F(Qe, null, {
|
|
5104
|
+
header: G(() => [
|
|
5105
|
+
V(M1, {
|
|
5095
5106
|
title: a.$t("template.rules.title"),
|
|
5096
5107
|
level: 2
|
|
5097
5108
|
}, null, 8, ["title"])
|
|
5098
5109
|
]),
|
|
5099
|
-
default:
|
|
5110
|
+
default: G(() => [
|
|
5100
5111
|
r("div", Q0, [
|
|
5101
5112
|
r("ul", eo, [
|
|
5102
|
-
(d(!0), C(f1, null, $1(a.rules, (l) => (d(),
|
|
5113
|
+
(d(!0), C(f1, null, $1(a.rules, (l) => (d(), F(J0, {
|
|
5103
5114
|
key: l.id,
|
|
5104
5115
|
rule: l,
|
|
5105
5116
|
"template-phases": a.templatePhases,
|
|
@@ -5109,7 +5120,7 @@ const Q0 = { class: "ao-template-rules__body" }, eo = { class: "ao-template-rule
|
|
|
5109
5120
|
onClose: () => n(l.id)
|
|
5110
5121
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
5111
5122
|
]),
|
|
5112
|
-
|
|
5123
|
+
V(de, {
|
|
5113
5124
|
label: a.$t("template.rules.add"),
|
|
5114
5125
|
"icon-name": "Add",
|
|
5115
5126
|
onClick: t
|
|
@@ -5135,62 +5146,62 @@ const so = {
|
|
|
5135
5146
|
},
|
|
5136
5147
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
5137
5148
|
setup(s, { emit: e }) {
|
|
5138
|
-
const t = s, { t: n } =
|
|
5149
|
+
const t = s, { t: n } = Te(), a = _(
|
|
5139
5150
|
() => {
|
|
5140
5151
|
var b;
|
|
5141
5152
|
return (b = t.templates) == null ? void 0 : b.find((g) => g.id === t.templateId);
|
|
5142
5153
|
}
|
|
5143
5154
|
);
|
|
5144
|
-
|
|
5155
|
+
_({
|
|
5145
5156
|
get() {
|
|
5146
5157
|
var S;
|
|
5147
|
-
return [...((S = a.value) == null ? void 0 : S.phases) || []].sort((
|
|
5158
|
+
return [...((S = a.value) == null ? void 0 : S.phases) || []].sort((D, Q) => D.order - Q.order);
|
|
5148
5159
|
},
|
|
5149
5160
|
set(b) {
|
|
5150
5161
|
b.map((g, S) => (g.order = S, g));
|
|
5151
5162
|
}
|
|
5152
5163
|
});
|
|
5153
|
-
const i =
|
|
5164
|
+
const i = _(() => {
|
|
5154
5165
|
var b, g;
|
|
5155
5166
|
return (g = (b = a == null ? void 0 : a.value) == null ? void 0 : b.phases) == null ? void 0 : g.find((S) => S.id === t.phaseId);
|
|
5156
|
-
}), l =
|
|
5167
|
+
}), l = _(() => {
|
|
5157
5168
|
var b, g;
|
|
5158
5169
|
return (g = (b = i.value) == null ? void 0 : b.milestones) == null ? void 0 : g.find(
|
|
5159
5170
|
(S) => S.id === t.milestoneId
|
|
5160
5171
|
);
|
|
5161
|
-
}), o =
|
|
5172
|
+
}), o = _(() => {
|
|
5162
5173
|
var b, g;
|
|
5163
|
-
return ((g = (b = a.value) == null ? void 0 : b.phases) == null ? void 0 : g.reduce((S,
|
|
5164
|
-
const Q =
|
|
5174
|
+
return ((g = (b = a.value) == null ? void 0 : b.phases) == null ? void 0 : g.reduce((S, D) => {
|
|
5175
|
+
const Q = D.milestones || [];
|
|
5165
5176
|
return [...S, ...Q];
|
|
5166
5177
|
}, [])) || [];
|
|
5167
|
-
}), p =
|
|
5178
|
+
}), p = _(() => {
|
|
5168
5179
|
var b, g;
|
|
5169
|
-
return ((g = (b = a.value) == null ? void 0 : b.phases) == null ? void 0 : g.reduce((S,
|
|
5170
|
-
const i1 = (
|
|
5180
|
+
return ((g = (b = a.value) == null ? void 0 : b.phases) == null ? void 0 : g.reduce((S, D) => {
|
|
5181
|
+
const i1 = (D.milestones || []).reduce(
|
|
5171
5182
|
(W, U) => U.activities ? [...W, ...U.activities] : W,
|
|
5172
5183
|
[]
|
|
5173
5184
|
);
|
|
5174
5185
|
return [...S, ...i1];
|
|
5175
5186
|
}, [])) || [];
|
|
5176
|
-
}), u =
|
|
5187
|
+
}), u = _(() => {
|
|
5177
5188
|
var b, g;
|
|
5178
5189
|
return (g = (b = l.value) == null ? void 0 : b.activities) == null ? void 0 : g.find(
|
|
5179
5190
|
(S) => S.id === t.activityId
|
|
5180
5191
|
);
|
|
5181
|
-
}), v =
|
|
5192
|
+
}), v = _(() => {
|
|
5182
5193
|
var b;
|
|
5183
5194
|
return ((b = t.activityTypes) == null ? void 0 : b.map((g) => ({
|
|
5184
5195
|
label: g.name,
|
|
5185
5196
|
value: g.id
|
|
5186
5197
|
}))) || [];
|
|
5187
|
-
}), y =
|
|
5198
|
+
}), y = _(() => {
|
|
5188
5199
|
var b;
|
|
5189
5200
|
return ((b = a.value) == null ? void 0 : b.name) || t.templateId;
|
|
5190
|
-
}), I = J(!1),
|
|
5201
|
+
}), I = J(!1), B = () => {
|
|
5191
5202
|
if (!a.value)
|
|
5192
5203
|
return;
|
|
5193
|
-
const b = a.value.phases.length, g = a.value.phases.at(-1), S = g ? u1.LexoRank.parse(g.rank).genNext() : u1.LexoRank.middle(),
|
|
5204
|
+
const b = a.value.phases.length, g = a.value.phases.at(-1), S = g ? u1.LexoRank.parse(g.rank).genNext() : u1.LexoRank.middle(), D = {
|
|
5194
5205
|
name: n("template.defaultName.phase", { idx: b + 1 }),
|
|
5195
5206
|
rank: S.format(),
|
|
5196
5207
|
templateId: t.templateId
|
|
@@ -5198,16 +5209,16 @@ const so = {
|
|
|
5198
5209
|
e("addItem", {
|
|
5199
5210
|
type: l1.PHASES,
|
|
5200
5211
|
templateId: t.templateId,
|
|
5201
|
-
item:
|
|
5212
|
+
item: D
|
|
5202
5213
|
});
|
|
5203
|
-
},
|
|
5214
|
+
}, k = (b) => {
|
|
5204
5215
|
e("updateItem", {
|
|
5205
5216
|
templateId: t.templateId,
|
|
5206
5217
|
id: t.templateId,
|
|
5207
5218
|
itemType: l1.TEMPLATES,
|
|
5208
5219
|
data: { name: b }
|
|
5209
5220
|
});
|
|
5210
|
-
},
|
|
5221
|
+
}, E = (b) => {
|
|
5211
5222
|
e("removeItem", {
|
|
5212
5223
|
type: l1.PHASES,
|
|
5213
5224
|
templateId: t.templateId,
|
|
@@ -5215,7 +5226,7 @@ const so = {
|
|
|
5215
5226
|
id: b
|
|
5216
5227
|
}
|
|
5217
5228
|
});
|
|
5218
|
-
},
|
|
5229
|
+
}, R = (b, g) => {
|
|
5219
5230
|
e("updateItem", {
|
|
5220
5231
|
templateId: t.templateId,
|
|
5221
5232
|
id: b,
|
|
@@ -5227,9 +5238,9 @@ const so = {
|
|
|
5227
5238
|
}, h = (b) => {
|
|
5228
5239
|
if (!i.value)
|
|
5229
5240
|
return;
|
|
5230
|
-
const g = i.value.milestones.length, S = i.value.milestones.at(-1),
|
|
5241
|
+
const g = i.value.milestones.length, S = i.value.milestones.at(-1), D = S ? u1.LexoRank.parse(S.rank).genNext() : u1.LexoRank.middle(), Q = {
|
|
5231
5242
|
name: n("template.defaultName.milestone", { idx: g + 1 }),
|
|
5232
|
-
rank:
|
|
5243
|
+
rank: D.format(),
|
|
5233
5244
|
phaseId: b.phaseId
|
|
5234
5245
|
};
|
|
5235
5246
|
e("addItem", {
|
|
@@ -5238,7 +5249,7 @@ const so = {
|
|
|
5238
5249
|
phaseId: b.phaseId,
|
|
5239
5250
|
item: Q
|
|
5240
5251
|
});
|
|
5241
|
-
},
|
|
5252
|
+
}, Z = (b) => {
|
|
5242
5253
|
e("removeItem", {
|
|
5243
5254
|
type: l1.MILESTONES,
|
|
5244
5255
|
templateId: t.templateId,
|
|
@@ -5259,7 +5270,7 @@ const so = {
|
|
|
5259
5270
|
const { milestoneId: g } = b;
|
|
5260
5271
|
if (!l.value)
|
|
5261
5272
|
return;
|
|
5262
|
-
const S = l.value.activities.length,
|
|
5273
|
+
const S = l.value.activities.length, D = l.value.activities.at(-1), Q = D ? u1.LexoRank.parse(D.rank).genNext() : u1.LexoRank.middle(), i1 = {
|
|
5263
5274
|
name: n("template.defaultName.activity", { idx: S + 1 }),
|
|
5264
5275
|
rank: Q.format(),
|
|
5265
5276
|
milestoneId: g
|
|
@@ -5269,7 +5280,7 @@ const so = {
|
|
|
5269
5280
|
milestoneId: g,
|
|
5270
5281
|
item: i1
|
|
5271
5282
|
});
|
|
5272
|
-
},
|
|
5283
|
+
}, H = (b) => {
|
|
5273
5284
|
const { phaseId: g, milestoneId: S } = b;
|
|
5274
5285
|
e("removeItem", {
|
|
5275
5286
|
type: l1.ACTIVITIES,
|
|
@@ -5288,13 +5299,13 @@ const so = {
|
|
|
5288
5299
|
templateId: t.templateId,
|
|
5289
5300
|
data: S
|
|
5290
5301
|
});
|
|
5291
|
-
},
|
|
5292
|
-
|
|
5293
|
-
},
|
|
5302
|
+
}, m = J(!1), $ = () => {
|
|
5303
|
+
m.value = !m.value;
|
|
5304
|
+
}, P = () => {
|
|
5294
5305
|
e("addRule", { templateId: t.templateId });
|
|
5295
5306
|
}, o1 = (b) => {
|
|
5296
5307
|
e("removeRule", { id: b, templateId: t.templateId });
|
|
5297
|
-
},
|
|
5308
|
+
}, T = (b) => {
|
|
5298
5309
|
var g;
|
|
5299
5310
|
if (b.moved) {
|
|
5300
5311
|
const S = Ae(b, ((g = a.value) == null ? void 0 : g.phases) ?? []);
|
|
@@ -5316,11 +5327,11 @@ const so = {
|
|
|
5316
5327
|
templateId: t.templateId,
|
|
5317
5328
|
item: b
|
|
5318
5329
|
});
|
|
5319
|
-
},
|
|
5320
|
-
var
|
|
5330
|
+
}, d1 = (b) => {
|
|
5331
|
+
var D, Q, i1, W;
|
|
5321
5332
|
if (!i.value || !l.value || !u.value)
|
|
5322
5333
|
return;
|
|
5323
|
-
const g = [...((
|
|
5334
|
+
const g = [...((D = u.value) == null ? void 0 : D.subtasks) || []], S = g.findIndex((U) => U.id === b.id);
|
|
5324
5335
|
g[S] = {
|
|
5325
5336
|
...g[S],
|
|
5326
5337
|
...b
|
|
@@ -5331,45 +5342,46 @@ const so = {
|
|
|
5331
5342
|
subtasks: g
|
|
5332
5343
|
});
|
|
5333
5344
|
}, m1 = (b) => {
|
|
5334
|
-
var S,
|
|
5345
|
+
var S, D, Q, i1;
|
|
5335
5346
|
if (!i.value || !l.value || !u.value)
|
|
5336
5347
|
return;
|
|
5337
5348
|
const g = [...((S = u.value) == null ? void 0 : S.subtasks) || []].filter(
|
|
5338
5349
|
(W) => W.id !== b
|
|
5339
5350
|
);
|
|
5340
5351
|
t1({
|
|
5341
|
-
id: (
|
|
5352
|
+
id: (D = u.value) == null ? void 0 : D.id,
|
|
5342
5353
|
phaseId: (Q = i.value) == null ? void 0 : Q.id,
|
|
5343
5354
|
milestoneId: (i1 = l.value) == null ? void 0 : i1.id,
|
|
5344
5355
|
subtasks: g
|
|
5345
5356
|
});
|
|
5346
|
-
},
|
|
5357
|
+
}, T1 = (b) => {
|
|
5347
5358
|
e("addFiles", b);
|
|
5348
5359
|
}, n1 = (b) => {
|
|
5349
5360
|
e("removeFile", b);
|
|
5350
5361
|
};
|
|
5351
5362
|
return (b, g) => {
|
|
5352
|
-
var S,
|
|
5363
|
+
var S, D, Q, i1, W, U;
|
|
5353
5364
|
return a.value ? (d(), C("div", so, [
|
|
5354
|
-
|
|
5365
|
+
V(Je, {
|
|
5355
5366
|
"can-go-back": !0,
|
|
5356
|
-
onGoBack: g[2] || (g[2] = (f) => b.$router.push({ name:
|
|
5367
|
+
onGoBack: g[2] || (g[2] = (f) => b.$router.push({ name: Y(K1).TEMPLATES_LIST }))
|
|
5357
5368
|
}, {
|
|
5358
|
-
primary:
|
|
5359
|
-
|
|
5369
|
+
primary: G(() => [
|
|
5370
|
+
V(M1, {
|
|
5360
5371
|
title: y.value,
|
|
5361
5372
|
level: 2,
|
|
5373
|
+
"is-editable": !0,
|
|
5362
5374
|
"is-editing": I.value,
|
|
5363
5375
|
onToggleIsEditing: g[0] || (g[0] = (f) => {
|
|
5364
5376
|
I.value = f;
|
|
5365
5377
|
}),
|
|
5366
5378
|
"onUpdate:title": g[1] || (g[1] = (f) => {
|
|
5367
|
-
|
|
5379
|
+
k(f);
|
|
5368
5380
|
})
|
|
5369
5381
|
}, null, 8, ["title", "is-editing"])
|
|
5370
5382
|
]),
|
|
5371
|
-
secondary:
|
|
5372
|
-
|
|
5383
|
+
secondary: G(() => [
|
|
5384
|
+
V(g1, {
|
|
5373
5385
|
label: b.$t("template.rules.edit"),
|
|
5374
5386
|
color: "primary",
|
|
5375
5387
|
"icon-name": "Settings",
|
|
@@ -5382,24 +5394,24 @@ const so = {
|
|
|
5382
5394
|
r("div", ao, [
|
|
5383
5395
|
r("ol", lo, [
|
|
5384
5396
|
r("li", no, [
|
|
5385
|
-
|
|
5397
|
+
V(Y(ne), {
|
|
5386
5398
|
"model-value": a.value.phases,
|
|
5387
5399
|
class: "ao-templates__list",
|
|
5388
5400
|
"item-key": "id",
|
|
5389
5401
|
handle: ".ao-card__drag",
|
|
5390
|
-
onChange:
|
|
5402
|
+
onChange: T
|
|
5391
5403
|
}, {
|
|
5392
|
-
header:
|
|
5393
|
-
|
|
5404
|
+
header: G(() => [
|
|
5405
|
+
V(M1, {
|
|
5394
5406
|
title: b.$t("template.phases.title"),
|
|
5395
5407
|
level: 3,
|
|
5396
5408
|
class: "ao-list__title"
|
|
5397
5409
|
}, null, 8, ["title"])
|
|
5398
5410
|
]),
|
|
5399
|
-
item:
|
|
5411
|
+
item: G(({ element: f }) => {
|
|
5400
5412
|
var O;
|
|
5401
5413
|
return [
|
|
5402
|
-
|
|
5414
|
+
V(l7, {
|
|
5403
5415
|
id: f.id,
|
|
5404
5416
|
name: f.name,
|
|
5405
5417
|
milestones: f.milestones,
|
|
@@ -5409,18 +5421,18 @@ const so = {
|
|
|
5409
5421
|
params: { templateId: b.templateId, phaseId: f.id }
|
|
5410
5422
|
}),
|
|
5411
5423
|
"onUpdate:title": (r1) => {
|
|
5412
|
-
|
|
5424
|
+
R(f.id, r1);
|
|
5413
5425
|
},
|
|
5414
|
-
onRemove: () =>
|
|
5426
|
+
onRemove: () => E(f.id)
|
|
5415
5427
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
5416
5428
|
];
|
|
5417
5429
|
}),
|
|
5418
|
-
footer:
|
|
5430
|
+
footer: G(() => [
|
|
5419
5431
|
r("div", io, [
|
|
5420
|
-
|
|
5432
|
+
V(de, {
|
|
5421
5433
|
"icon-name": "AddBoxOutlineRounded",
|
|
5422
5434
|
label: b.$t("template.phases.add"),
|
|
5423
|
-
onClick:
|
|
5435
|
+
onClick: B
|
|
5424
5436
|
}, null, 8, ["label"])
|
|
5425
5437
|
])
|
|
5426
5438
|
]),
|
|
@@ -5428,7 +5440,7 @@ const so = {
|
|
|
5428
5440
|
}, 8, ["model-value"])
|
|
5429
5441
|
]),
|
|
5430
5442
|
r("li", oo, [
|
|
5431
|
-
i.value ? (d(),
|
|
5443
|
+
i.value ? (d(), F(d7, {
|
|
5432
5444
|
key: 0,
|
|
5433
5445
|
"template-id": b.templateId,
|
|
5434
5446
|
phase: i.value,
|
|
@@ -5436,26 +5448,26 @@ const so = {
|
|
|
5436
5448
|
onAddMilestone: h,
|
|
5437
5449
|
onUpdateMilestone: X,
|
|
5438
5450
|
onUpdatePhase: L,
|
|
5439
|
-
onRemoveMilestone:
|
|
5440
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) :
|
|
5451
|
+
onRemoveMilestone: Z
|
|
5452
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : A("", !0)
|
|
5441
5453
|
]),
|
|
5442
5454
|
r("li", ro, [
|
|
5443
|
-
i.value && l.value ? (d(),
|
|
5455
|
+
i.value && l.value ? (d(), F(p7, {
|
|
5444
5456
|
key: 0,
|
|
5445
5457
|
"template-id": b.templateId,
|
|
5446
|
-
"phase-id": (
|
|
5458
|
+
"phase-id": (D = i.value) == null ? void 0 : D.id,
|
|
5447
5459
|
milestone: l.value,
|
|
5448
5460
|
"activity-id": (Q = u.value) == null ? void 0 : Q.id,
|
|
5449
5461
|
onAddActivity: s1,
|
|
5450
5462
|
onUpdateActivity: t1,
|
|
5451
5463
|
onUpdateMilestone: X,
|
|
5452
|
-
onRemoveActivity:
|
|
5453
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) :
|
|
5464
|
+
onRemoveActivity: H
|
|
5465
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : A("", !0)
|
|
5454
5466
|
])
|
|
5455
5467
|
])
|
|
5456
5468
|
]),
|
|
5457
|
-
(d(),
|
|
5458
|
-
u.value ? (d(),
|
|
5469
|
+
(d(), F(Ue, { to: "body" }, [
|
|
5470
|
+
u.value ? (d(), F(W0, {
|
|
5459
5471
|
key: 0,
|
|
5460
5472
|
activity: u.value,
|
|
5461
5473
|
"activity-types": v.value,
|
|
@@ -5473,14 +5485,14 @@ const so = {
|
|
|
5473
5485
|
}),
|
|
5474
5486
|
onClose: b.$router.back,
|
|
5475
5487
|
onAddSubtask: z,
|
|
5476
|
-
onUpdateSubtask:
|
|
5488
|
+
onUpdateSubtask: d1,
|
|
5477
5489
|
onDeleteSubtask: m1,
|
|
5478
|
-
onAddFiles:
|
|
5490
|
+
onAddFiles: T1,
|
|
5479
5491
|
onRemoveFile: n1
|
|
5480
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) :
|
|
5492
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : A("", !0)
|
|
5481
5493
|
])),
|
|
5482
|
-
(d(),
|
|
5483
|
-
|
|
5494
|
+
(d(), F(Ue, { to: "body" }, [
|
|
5495
|
+
m.value ? (d(), F(to, {
|
|
5484
5496
|
key: 0,
|
|
5485
5497
|
"template-id": a.value.id,
|
|
5486
5498
|
rules: a.value.rules || [],
|
|
@@ -5488,11 +5500,11 @@ const so = {
|
|
|
5488
5500
|
"template-milestones": o.value,
|
|
5489
5501
|
"template-activities": p.value,
|
|
5490
5502
|
onClose: $,
|
|
5491
|
-
onAddRule:
|
|
5503
|
+
onAddRule: P,
|
|
5492
5504
|
onRemoveRule: o1
|
|
5493
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) :
|
|
5505
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : A("", !0)
|
|
5494
5506
|
]))
|
|
5495
|
-
])) :
|
|
5507
|
+
])) : A("", !0);
|
|
5496
5508
|
};
|
|
5497
5509
|
}
|
|
5498
5510
|
});
|
|
@@ -5528,7 +5540,7 @@ const K1 = {
|
|
|
5528
5540
|
},
|
|
5529
5541
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
5530
5542
|
setup(s, { emit: e }) {
|
|
5531
|
-
const t = s, { t: n } =
|
|
5543
|
+
const t = s, { t: n } = Te(), a = () => {
|
|
5532
5544
|
var y, I;
|
|
5533
5545
|
const o = (y = t.templates) == null ? void 0 : y.at(-1), p = o ? u1.LexoRank.parse(o.rank).genNext() : u1.LexoRank.middle(), u = ((I = t.templates) == null ? void 0 : I.length) ?? 0, v = {
|
|
5534
5546
|
name: n("template.defaultName.template", { idx: u + 1 }),
|
|
@@ -5558,9 +5570,9 @@ const K1 = {
|
|
|
5558
5570
|
}
|
|
5559
5571
|
};
|
|
5560
5572
|
return (o, p) => (d(), C("div", co, [
|
|
5561
|
-
|
|
5562
|
-
secondary:
|
|
5563
|
-
|
|
5573
|
+
V(Je, null, {
|
|
5574
|
+
secondary: G(() => [
|
|
5575
|
+
V(g1, {
|
|
5564
5576
|
label: o.$t("templates.new"),
|
|
5565
5577
|
color: "primary",
|
|
5566
5578
|
"icon-name": "Add",
|
|
@@ -5570,26 +5582,26 @@ const K1 = {
|
|
|
5570
5582
|
]),
|
|
5571
5583
|
_: 1
|
|
5572
5584
|
}),
|
|
5573
|
-
|
|
5585
|
+
V(Y(ne), {
|
|
5574
5586
|
"model-value": o.templates,
|
|
5575
5587
|
class: "ao-templates__list",
|
|
5576
5588
|
"item-key": "id",
|
|
5577
5589
|
handle: ".ao-card__drag",
|
|
5578
5590
|
onChange: l
|
|
5579
5591
|
}, {
|
|
5580
|
-
item:
|
|
5592
|
+
item: G(({ element: u }) => {
|
|
5581
5593
|
var v;
|
|
5582
5594
|
return [
|
|
5583
|
-
|
|
5595
|
+
V(F5, {
|
|
5584
5596
|
title: u.name || u.id,
|
|
5585
5597
|
phases: u.phases,
|
|
5586
|
-
milestones: (v = u.phases) != null && v.length ?
|
|
5587
|
-
activities: u.phases ?
|
|
5598
|
+
milestones: (v = u.phases) != null && v.length ? Y(M5)(u.phases) : 0,
|
|
5599
|
+
activities: u.phases ? Y(I5)(u.phases) : 0,
|
|
5588
5600
|
"updated-at": u.updatedAt,
|
|
5589
5601
|
"updated-by": u.updatedBy,
|
|
5590
5602
|
onUpdateTitle: (y) => i(u.id, y),
|
|
5591
5603
|
onClick: (y) => o.$router.push({
|
|
5592
|
-
name:
|
|
5604
|
+
name: Y(K1).TEMPLATE_DETAILS,
|
|
5593
5605
|
params: { templateId: u.id }
|
|
5594
5606
|
})
|
|
5595
5607
|
}, null, 8, ["title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|