@26lights/orcha 0.7.32 → 0.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, openBlock as u, createBlock as
|
|
1
|
+
import { defineComponent as K, openBlock as u, createBlock as j, unref as E, mergeProps as Ee, createElementBlock as C, createElementVNode as o, pushScopeId as Nt, popScopeId as Rt, createStaticVNode as Ut, computed as f, resolveDynamicComponent as Ke, normalizeClass as F, renderSlot as Y, toDisplayString as N, createCommentVNode as M, ref as Q, watch as de, nextTick as He, withKeys as a1, toHandlers as qt, withCtx as R, createTextVNode as Z1, createVNode as y, withModifiers as we, Fragment as ae, renderList as pe, toRefs as fe, getCurrentInstance as Oe, onMounted as m1, onUnmounted as zt, withDirectives as qe, vModelText as l1, vModelCheckbox as Ft, toRef as e1, Teleport as C1, normalizeStyle as Kt, toValue as x1, onBeforeMount as Gt, resolveComponent as Yt, getCurrentScope as Wt, onScopeDispose as Xt, provide as Jt } from "vue";
|
|
2
2
|
import { RouterView as Qt } from "vue-router";
|
|
3
3
|
import n1 from "vuedraggable";
|
|
4
4
|
const Ru = /* @__PURE__ */ K({
|
|
@@ -7,7 +7,7 @@ const Ru = /* @__PURE__ */ K({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
return (e, t) => (u(),
|
|
10
|
+
return (e, t) => (u(), j(E(Qt), Ee({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), V = (s, e) => {
|
|
13
13
|
const t = s.__vccOpts || s;
|
|
@@ -116,10 +116,10 @@ const Os = /* @__PURE__ */ V(Vs, [["render", Hs]]), Bs = {}, Ds = {
|
|
|
116
116
|
}, null, -1), Ps = [
|
|
117
117
|
Zs
|
|
118
118
|
];
|
|
119
|
-
function
|
|
119
|
+
function js(s, e) {
|
|
120
120
|
return u(), C("svg", Ds, Ps);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Ns = /* @__PURE__ */ V(Bs, [["render", js]]), Rs = {}, Us = {
|
|
123
123
|
width: "24",
|
|
124
124
|
height: "24",
|
|
125
125
|
viewBox: "0 0 24 24",
|
|
@@ -251,10 +251,10 @@ const Oa = /* @__PURE__ */ V(Va, [["render", Ha]]), Ba = {}, Da = {
|
|
|
251
251
|
}, null, -1), Pa = [
|
|
252
252
|
Za
|
|
253
253
|
];
|
|
254
|
-
function
|
|
254
|
+
function ja(s, e) {
|
|
255
255
|
return u(), C("svg", Da, Pa);
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const Na = /* @__PURE__ */ V(Ba, [["render", ja]]), Ra = {}, Ua = {
|
|
258
258
|
width: "24",
|
|
259
259
|
height: "24",
|
|
260
260
|
viewBox: "0 0 24 24",
|
|
@@ -386,10 +386,10 @@ const Ol = /* @__PURE__ */ V(Vl, [["render", Hl]]), Bl = {}, Dl = {
|
|
|
386
386
|
}, null, -1), Pl = [
|
|
387
387
|
Zl
|
|
388
388
|
];
|
|
389
|
-
function
|
|
389
|
+
function jl(s, e) {
|
|
390
390
|
return u(), C("svg", Dl, Pl);
|
|
391
391
|
}
|
|
392
|
-
const
|
|
392
|
+
const Nl = /* @__PURE__ */ V(Bl, [["render", jl]]), Rl = {}, Ul = {
|
|
393
393
|
width: "24",
|
|
394
394
|
height: "24",
|
|
395
395
|
viewBox: "0 0 24 24",
|
|
@@ -518,13 +518,13 @@ const Bn = /* @__PURE__ */ V(Ln, [["render", On]]), Dn = {}, Zn = {
|
|
|
518
518
|
}, Pn = /* @__PURE__ */ o("path", {
|
|
519
519
|
d: "M0 18V16.425C0 15.7083 0.366667 15.125 1.1 14.675C1.83333 14.225 2.8 14 4 14C4.21667 14 4.425 14.0043 4.625 14.013C4.825 14.0217 5.01667 14.0423 5.2 14.075C4.96667 14.425 4.79167 14.7917 4.675 15.175C4.55833 15.5583 4.5 15.9583 4.5 16.375V18H0ZM6 18V16.375C6 15.8417 6.146 15.354 6.438 14.912C6.73 14.47 7.14233 14.0827 7.675 13.75C8.20833 13.4167 8.846 13.1667 9.588 13C10.33 12.8333 11.134 12.75 12 12.75C12.8833 12.75 13.696 12.8333 14.438 13C15.18 13.1667 15.8173 13.4167 16.35 13.75C16.8833 14.0833 17.2917 14.471 17.575 14.913C17.8583 15.355 18 15.8423 18 16.375V18H6ZM19.5 18V16.375C19.5 15.9417 19.4457 15.5333 19.337 15.15C19.2283 14.7667 19.066 14.4083 18.85 14.075C19.0333 14.0417 19.221 14.021 19.413 14.013C19.605 14.005 19.8007 14.0007 20 14C21.2 14 22.1667 14.221 22.9 14.663C23.6333 15.105 24 15.6923 24 16.425V18H19.5ZM8.125 16H15.9C15.7333 15.6667 15.2707 15.375 14.512 15.125C13.7533 14.875 12.916 14.75 12 14.75C11.0833 14.75 10.2457 14.875 9.487 15.125C8.72833 15.375 8.27467 15.6667 8.126 16H8.125ZM4 13C3.45 13 2.979 12.804 2.587 12.412C2.195 12.02 1.99933 11.5493 2 11C2 10.4333 2.196 9.95833 2.588 9.575C2.98 9.19167 3.45067 9 4 9C4.56667 9 5.04167 9.19167 5.425 9.575C5.80833 9.95833 6 10.4333 6 11C6 11.55 5.80833 12.021 5.425 12.413C5.04167 12.805 4.56667 13.0007 4 13ZM20 13C19.45 13 18.979 12.804 18.587 12.412C18.195 12.02 17.9993 11.5493 18 11C18 10.4333 18.196 9.95833 18.588 9.575C18.98 9.19167 19.4507 9 20 9C20.5667 9 21.0417 9.19167 21.425 9.575C21.8083 9.95833 22 10.4333 22 11C22 11.55 21.8083 12.021 21.425 12.413C21.0417 12.805 20.5667 13.0007 20 13ZM12 12C11.1667 12 10.4583 11.7083 9.875 11.125C9.29167 10.5417 9 9.83333 9 9C9 8.15 9.29167 7.43733 9.875 6.862C10.4583 6.28667 11.1667 5.99933 12 6C12.85 6 13.5627 6.28767 14.138 6.863C14.7133 7.43833 15.0007 8.15067 15 9C15 9.83333 14.7123 10.5417 14.137 11.125C13.5617 11.7083 12.8493 12 12 12ZM12 10C12.2833 10 12.521 9.904 12.713 9.712C12.905 9.52 13.0007 9.28267 13 9C13 8.71667 12.904 8.479 12.712 8.287C12.52 8.095 12.2827 7.99933 12 8C11.7167 8 11.479 8.096 11.287 8.288C11.095 8.48 10.9993 8.71733 11 9C11 9.28333 11.096 9.521 11.288 9.713C11.48 9.905 11.7173 10.0007 12 10Z",
|
|
520
520
|
fill: "black"
|
|
521
|
-
}, null, -1),
|
|
521
|
+
}, null, -1), jn = [
|
|
522
522
|
Pn
|
|
523
523
|
];
|
|
524
|
-
function
|
|
525
|
-
return u(), C("svg", Zn,
|
|
524
|
+
function Nn(s, e) {
|
|
525
|
+
return u(), C("svg", Zn, jn);
|
|
526
526
|
}
|
|
527
|
-
const Rn = /* @__PURE__ */ V(Dn, [["render",
|
|
527
|
+
const Rn = /* @__PURE__ */ V(Dn, [["render", Nn]]), Un = {}, qn = {
|
|
528
528
|
width: "24",
|
|
529
529
|
height: "24",
|
|
530
530
|
viewBox: "0 0 24 24",
|
|
@@ -602,7 +602,7 @@ function mi(s, e) {
|
|
|
602
602
|
const hi = /* @__PURE__ */ V(pi, [["render", mi]]), fi = K({
|
|
603
603
|
name: "LoadingIcon"
|
|
604
604
|
});
|
|
605
|
-
const P1 = (s) => (
|
|
605
|
+
const P1 = (s) => (Nt("data-v-ad6da4a9"), s = s(), Rt(), s), gi = {
|
|
606
606
|
width: "24",
|
|
607
607
|
height: "24",
|
|
608
608
|
viewBox: "0 0 24 24",
|
|
@@ -661,20 +661,20 @@ const Ti = /* @__PURE__ */ V(ki, [["render", Li]]), Ei = {}, Hi = {
|
|
|
661
661
|
function Di(s, e) {
|
|
662
662
|
return u(), C("svg", Hi, Bi);
|
|
663
663
|
}
|
|
664
|
-
const Zi = /* @__PURE__ */ V(Ei, [["render", Di]]), Pi = {},
|
|
664
|
+
const Zi = /* @__PURE__ */ V(Ei, [["render", Di]]), Pi = {}, ji = {
|
|
665
665
|
width: "24",
|
|
666
666
|
height: "24",
|
|
667
667
|
viewBox: "0 0 24 24",
|
|
668
668
|
fill: "none",
|
|
669
669
|
xmlns: "http://www.w3.org/2000/svg"
|
|
670
|
-
},
|
|
670
|
+
}, Ni = /* @__PURE__ */ o("path", {
|
|
671
671
|
d: "M6 14C5.45 14 4.979 13.804 4.587 13.412C4.195 13.02 3.99934 12.5493 4 12C4 11.45 4.196 10.979 4.588 10.587C4.98 10.195 5.45067 9.99934 6 10C6.55 10 7.021 10.196 7.413 10.588C7.805 10.98 8.00067 11.4507 8 12C8 12.55 7.804 13.021 7.412 13.413C7.02 13.805 6.54934 14.0007 6 14ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM18 14C17.45 14 16.979 13.804 16.587 13.412C16.195 13.02 15.9993 12.5493 16 12C16 11.45 16.196 10.979 16.588 10.587C16.98 10.195 17.4507 9.99934 18 10C18.55 10 19.021 10.196 19.413 10.588C19.805 10.98 20.0007 11.4507 20 12C20 12.55 19.804 13.021 19.412 13.413C19.02 13.805 18.5493 14.0007 18 14Z",
|
|
672
672
|
fill: "black"
|
|
673
673
|
}, null, -1), Ri = [
|
|
674
|
-
|
|
674
|
+
Ni
|
|
675
675
|
];
|
|
676
676
|
function Ui(s, e) {
|
|
677
|
-
return u(), C("svg",
|
|
677
|
+
return u(), C("svg", ji, Ri);
|
|
678
678
|
}
|
|
679
679
|
const qi = /* @__PURE__ */ V(Pi, [["render", Ui]]), zi = {}, Fi = {
|
|
680
680
|
width: "24",
|
|
@@ -796,7 +796,7 @@ const Eo = /* @__PURE__ */ V(Io, [["render", To]]), Ho = {}, Oo = {
|
|
|
796
796
|
function Zo(s, e) {
|
|
797
797
|
return u(), C("svg", Oo, Do);
|
|
798
798
|
}
|
|
799
|
-
const Po = /* @__PURE__ */ V(Ho, [["render", Zo]]),
|
|
799
|
+
const Po = /* @__PURE__ */ V(Ho, [["render", Zo]]), jo = {}, No = {
|
|
800
800
|
width: "24",
|
|
801
801
|
height: "24",
|
|
802
802
|
viewBox: "0 0 24 24",
|
|
@@ -809,9 +809,9 @@ const Po = /* @__PURE__ */ V(Ho, [["render", Zo]]), No = {}, jo = {
|
|
|
809
809
|
Ro
|
|
810
810
|
];
|
|
811
811
|
function qo(s, e) {
|
|
812
|
-
return u(), C("svg",
|
|
812
|
+
return u(), C("svg", No, Uo);
|
|
813
813
|
}
|
|
814
|
-
const zo = /* @__PURE__ */ V(
|
|
814
|
+
const zo = /* @__PURE__ */ V(jo, [["render", qo]]), Fo = {}, Ko = {
|
|
815
815
|
width: "26",
|
|
816
816
|
height: "29",
|
|
817
817
|
viewBox: "0 0 26 29",
|
|
@@ -928,7 +928,7 @@ const E2 = /* @__PURE__ */ V(I2, [["render", T2]]), H2 = {}, O2 = {
|
|
|
928
928
|
function Z2(s, e) {
|
|
929
929
|
return u(), C("svg", O2, D2);
|
|
930
930
|
}
|
|
931
|
-
const P2 = /* @__PURE__ */ V(H2, [["render", Z2]]),
|
|
931
|
+
const P2 = /* @__PURE__ */ V(H2, [["render", Z2]]), j2 = {}, N2 = {
|
|
932
932
|
width: "24",
|
|
933
933
|
height: "24",
|
|
934
934
|
viewBox: "0 0 24 24",
|
|
@@ -941,9 +941,9 @@ const P2 = /* @__PURE__ */ V(H2, [["render", Z2]]), N2 = {}, j2 = {
|
|
|
941
941
|
R2
|
|
942
942
|
];
|
|
943
943
|
function q2(s, e) {
|
|
944
|
-
return u(), C("svg",
|
|
944
|
+
return u(), C("svg", N2, U2);
|
|
945
945
|
}
|
|
946
|
-
const z2 = /* @__PURE__ */ V(
|
|
946
|
+
const z2 = /* @__PURE__ */ V(j2, [["render", q2]]), F2 = {}, K2 = {
|
|
947
947
|
width: "24",
|
|
948
948
|
height: "24",
|
|
949
949
|
viewBox: "0 0 24 24",
|
|
@@ -1041,7 +1041,7 @@ const kr = /* @__PURE__ */ V(br, [["render", Ar]]), Ir = /* @__PURE__ */ Object.
|
|
|
1041
1041
|
AccountTreeRounded: $s,
|
|
1042
1042
|
Add: Ss,
|
|
1043
1043
|
AddBoxOutlineRounded: Os,
|
|
1044
|
-
ArchiveOutlineRounded:
|
|
1044
|
+
ArchiveOutlineRounded: Ns,
|
|
1045
1045
|
ArrowBackRounded: Ks,
|
|
1046
1046
|
ArrowDropDownRounded: Qs,
|
|
1047
1047
|
ArrowForwardRounded: la,
|
|
@@ -1050,7 +1050,7 @@ const kr = /* @__PURE__ */ V(br, [["render", Ar]]), Ir = /* @__PURE__ */ Object.
|
|
|
1050
1050
|
CalendarTodayOutlineRounded: $a,
|
|
1051
1051
|
ChatOutline: Sa,
|
|
1052
1052
|
CheckBoxOutlineBlank: Oa,
|
|
1053
|
-
CheckBoxOutlineBlankSharp:
|
|
1053
|
+
CheckBoxOutlineBlankSharp: Na,
|
|
1054
1054
|
CheckBoxOutlineRounded: Ka,
|
|
1055
1055
|
CheckSmallRounded: Qa,
|
|
1056
1056
|
ChecklistRounded: ll,
|
|
@@ -1059,7 +1059,7 @@ const kr = /* @__PURE__ */ V(br, [["render", Ar]]), Ir = /* @__PURE__ */ Object.
|
|
|
1059
1059
|
CloseRounded: $l,
|
|
1060
1060
|
ContactsOutlineRounded: Sl,
|
|
1061
1061
|
ContentCopyOutline: Ol,
|
|
1062
|
-
DeleteOutlineRounded:
|
|
1062
|
+
DeleteOutlineRounded: Nl,
|
|
1063
1063
|
DragIndicator: Kl,
|
|
1064
1064
|
EditDocumentRounded: Ql,
|
|
1065
1065
|
EditOutline: ln,
|
|
@@ -1118,15 +1118,15 @@ const kr = /* @__PURE__ */ V(br, [["render", Ar]]), Ir = /* @__PURE__ */ Object.
|
|
|
1118
1118
|
}, it = {
|
|
1119
1119
|
ROUND: "round",
|
|
1120
1120
|
ROUNDED: "rounded"
|
|
1121
|
-
},
|
|
1121
|
+
}, se = /* @__PURE__ */ K({
|
|
1122
1122
|
__name: "AoIcon",
|
|
1123
1123
|
props: {
|
|
1124
1124
|
name: {},
|
|
1125
1125
|
size: { default: h1.MD }
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(s) {
|
|
1128
|
-
const e = s, t =
|
|
1129
|
-
return (n, a) => (u(),
|
|
1128
|
+
const e = s, t = f(() => Ir[e.name]);
|
|
1129
|
+
return (n, a) => (u(), j(Ke(t.value), {
|
|
1130
1130
|
class: F(["ao-icon", `ao-icon--${n.size}`])
|
|
1131
1131
|
}, null, 8, ["class"]));
|
|
1132
1132
|
}
|
|
@@ -1149,7 +1149,7 @@ const Lr = ["type"], Tr = {
|
|
|
1149
1149
|
corners: { default: () => it.ROUNDED }
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(s) {
|
|
1152
|
-
const e = s, t =
|
|
1152
|
+
const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
|
|
1153
1153
|
return (a, i) => (u(), C("button", {
|
|
1154
1154
|
type: a.type,
|
|
1155
1155
|
class: F([
|
|
@@ -1164,19 +1164,19 @@ const Lr = ["type"], Tr = {
|
|
|
1164
1164
|
])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
Y(a.$slots, "default", {}, () => [
|
|
1167
|
-
a.label ? (u(), C("span", Tr,
|
|
1167
|
+
a.label ? (u(), C("span", Tr, N(a.label), 1)) : M("", !0)
|
|
1168
1168
|
]),
|
|
1169
|
-
n.value ? (u(),
|
|
1169
|
+
n.value ? (u(), j(se, {
|
|
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"])) : M("", !0)
|
|
1175
1175
|
], 10, Lr));
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
1178
1178
|
function ot(s) {
|
|
1179
|
-
const e = Q(!1), t = Q(""), n =
|
|
1179
|
+
const e = Q(!1), t = Q(""), n = f(() => "value" in s.value ? "value" : "innerHTML"), a = () => {
|
|
1180
1180
|
e.value = !e.value;
|
|
1181
1181
|
}, i = (c) => {
|
|
1182
1182
|
e.value = c;
|
|
@@ -1214,50 +1214,50 @@ const ce = /* @__PURE__ */ K({
|
|
|
1214
1214
|
},
|
|
1215
1215
|
emits: ["update:title", "toggle-is-editing"],
|
|
1216
1216
|
setup(s, { emit: e }) {
|
|
1217
|
-
const t = s, n = Q(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: r } = ot(n), c =
|
|
1217
|
+
const t = s, n = Q(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: r } = ot(n), c = f(() => a.value ? "input" : t.tag || `h${t.level}`), d = f(() => t.isEditable ? a.value ? {
|
|
1218
1218
|
change: p,
|
|
1219
|
-
click: (
|
|
1219
|
+
click: (L) => L.stopPropagation(),
|
|
1220
1220
|
blur: m
|
|
1221
1221
|
} : {
|
|
1222
1222
|
click: I,
|
|
1223
1223
|
focus: I
|
|
1224
|
-
} : {}), p = l((
|
|
1225
|
-
const
|
|
1226
|
-
e("update:title",
|
|
1224
|
+
} : {}), p = l((L, Z) => {
|
|
1225
|
+
const b = Z.target.value;
|
|
1226
|
+
e("update:title", b);
|
|
1227
1227
|
}), _ = r(), m = async () => {
|
|
1228
1228
|
a.value && i(!1);
|
|
1229
|
-
},
|
|
1229
|
+
}, w = () => {
|
|
1230
1230
|
e("toggle-is-editing", !1);
|
|
1231
|
-
}, I = (
|
|
1232
|
-
|
|
1231
|
+
}, I = (L) => {
|
|
1232
|
+
L.stopPropagation(), a.value || i(!0);
|
|
1233
1233
|
};
|
|
1234
1234
|
return de(
|
|
1235
1235
|
() => t.isEditable,
|
|
1236
|
-
(
|
|
1237
|
-
|
|
1236
|
+
(L) => {
|
|
1237
|
+
L || _();
|
|
1238
1238
|
}
|
|
1239
|
-
), (
|
|
1239
|
+
), (L, Z) => (u(), j(Ke(c.value), Ee({
|
|
1240
1240
|
ref_key: "target",
|
|
1241
1241
|
ref: n,
|
|
1242
1242
|
class: [
|
|
1243
1243
|
"ao-title",
|
|
1244
|
-
`ao-title--${
|
|
1244
|
+
`ao-title--${L.level}`,
|
|
1245
1245
|
{
|
|
1246
|
-
[`ao-title--${
|
|
1247
|
-
"ao-title--editable":
|
|
1246
|
+
[`ao-title--${L.color}`]: !!L.color,
|
|
1247
|
+
"ao-title--editable": L.isEditable,
|
|
1248
1248
|
"ao-field__input ao-title--editing": E(a),
|
|
1249
1249
|
"ao-title--readonly": !E(a)
|
|
1250
1250
|
}
|
|
1251
1251
|
],
|
|
1252
1252
|
type: E(a) ? "text" : null,
|
|
1253
|
-
value: E(a) ?
|
|
1253
|
+
value: E(a) ? L.title : null,
|
|
1254
1254
|
tabindex: "0",
|
|
1255
|
-
onKeyup: a1(
|
|
1255
|
+
onKeyup: a1(w, ["enter"])
|
|
1256
1256
|
}, qt(d.value), {
|
|
1257
1257
|
onKeydown: a1(E(_), ["esc"])
|
|
1258
1258
|
}), {
|
|
1259
1259
|
default: R(() => [
|
|
1260
|
-
Z1(
|
|
1260
|
+
Z1(N(L.title), 1)
|
|
1261
1261
|
]),
|
|
1262
1262
|
_: 1
|
|
1263
1263
|
}, 16, ["class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1278,10 +1278,10 @@ const Er = {
|
|
|
1278
1278
|
}, Pr = {
|
|
1279
1279
|
key: 1,
|
|
1280
1280
|
class: "ao-card-horiz__body"
|
|
1281
|
-
},
|
|
1281
|
+
}, jr = {
|
|
1282
1282
|
key: 2,
|
|
1283
1283
|
class: "ao-card-horiz__footer"
|
|
1284
|
-
},
|
|
1284
|
+
}, Nr = {
|
|
1285
1285
|
key: 3,
|
|
1286
1286
|
class: "ao-card-horiz__secondary"
|
|
1287
1287
|
}, rt = /* @__PURE__ */ K({
|
|
@@ -1300,26 +1300,26 @@ const Er = {
|
|
|
1300
1300
|
const t = (n) => {
|
|
1301
1301
|
e("update:title", n);
|
|
1302
1302
|
};
|
|
1303
|
-
return (n, a) => (u(),
|
|
1303
|
+
return (n, a) => (u(), j(Ke(n.tagName), {
|
|
1304
1304
|
class: F(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
|
|
1305
1305
|
}, {
|
|
1306
1306
|
default: R(() => [
|
|
1307
1307
|
n.isDraggable ? (u(), C("div", Er, [
|
|
1308
|
-
|
|
1308
|
+
y(se, {
|
|
1309
1309
|
name: "DragIndicator",
|
|
1310
1310
|
class: "ao-card-horiz__drag-handle"
|
|
1311
1311
|
})
|
|
1312
|
-
])) :
|
|
1312
|
+
])) : M("", !0),
|
|
1313
1313
|
o("div", Hr, [
|
|
1314
1314
|
n.icon ? (u(), C("div", Or, [
|
|
1315
|
-
|
|
1315
|
+
y(se, {
|
|
1316
1316
|
class: "ao-card-horiz__icon",
|
|
1317
1317
|
name: n.icon,
|
|
1318
1318
|
size: "xl"
|
|
1319
1319
|
}, null, 8, ["name"])
|
|
1320
|
-
])) :
|
|
1320
|
+
])) : M("", !0),
|
|
1321
1321
|
o("div", Br, [
|
|
1322
|
-
|
|
1322
|
+
y(ce, {
|
|
1323
1323
|
class: "ao-card-horiz__title",
|
|
1324
1324
|
level: 4,
|
|
1325
1325
|
title: n.title || "",
|
|
@@ -1327,22 +1327,22 @@ const Er = {
|
|
|
1327
1327
|
"onUpdate:title": t
|
|
1328
1328
|
}, null, 8, ["title"]),
|
|
1329
1329
|
Y(n.$slots, "subtitle", {}, () => [
|
|
1330
|
-
n.subtitle ? (u(), C("span", Dr,
|
|
1330
|
+
n.subtitle ? (u(), C("span", Dr, N(n.subtitle), 1)) : M("", !0)
|
|
1331
1331
|
])
|
|
1332
1332
|
]),
|
|
1333
1333
|
n.$slots.header ? (u(), C("div", Zr, [
|
|
1334
1334
|
Y(n.$slots, "header")
|
|
1335
|
-
])) :
|
|
1335
|
+
])) : M("", !0)
|
|
1336
1336
|
]),
|
|
1337
1337
|
n.$slots.default ? (u(), C("div", Pr, [
|
|
1338
1338
|
Y(n.$slots, "default")
|
|
1339
|
-
])) :
|
|
1340
|
-
n.$slots.footer ? (u(), C("div",
|
|
1339
|
+
])) : M("", !0),
|
|
1340
|
+
n.$slots.footer ? (u(), C("div", jr, [
|
|
1341
1341
|
Y(n.$slots, "footer")
|
|
1342
|
-
])) :
|
|
1343
|
-
n.$slots.secondary ? (u(), C("div",
|
|
1342
|
+
])) : M("", !0),
|
|
1343
|
+
n.$slots.secondary ? (u(), C("div", Nr, [
|
|
1344
1344
|
Y(n.$slots, "secondary")
|
|
1345
|
-
])) :
|
|
1345
|
+
])) : M("", !0)
|
|
1346
1346
|
]),
|
|
1347
1347
|
_: 3
|
|
1348
1348
|
}, 8, ["class"]));
|
|
@@ -1359,7 +1359,7 @@ const f1 = /* @__PURE__ */ K({
|
|
|
1359
1359
|
},
|
|
1360
1360
|
emits: ["click", "close"],
|
|
1361
1361
|
setup(s) {
|
|
1362
|
-
const e = s, t =
|
|
1362
|
+
const e = s, t = f(() => e.clickable ? "button" : "span"), n = f(
|
|
1363
1363
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1364
1364
|
);
|
|
1365
1365
|
return (a, i) => (u(), C("div", {
|
|
@@ -1371,11 +1371,11 @@ const f1 = /* @__PURE__ */ K({
|
|
|
1371
1371
|
a.variant ? `ao-tag--${a.variant}` : ""
|
|
1372
1372
|
])
|
|
1373
1373
|
}, [
|
|
1374
|
-
(u(),
|
|
1374
|
+
(u(), j(Ke(t.value), Ee({ class: "ao-tag__label" }, n.value, {
|
|
1375
1375
|
onClick: i[0] || (i[0] = (l) => a.$emit("click", l))
|
|
1376
1376
|
}), {
|
|
1377
1377
|
default: R(() => [
|
|
1378
|
-
Z1(
|
|
1378
|
+
Z1(N(a.label), 1)
|
|
1379
1379
|
]),
|
|
1380
1380
|
_: 1
|
|
1381
1381
|
}, 16)),
|
|
@@ -1384,12 +1384,12 @@ const f1 = /* @__PURE__ */ K({
|
|
|
1384
1384
|
class: "ao-tag__close",
|
|
1385
1385
|
onClick: i[1] || (i[1] = (l) => a.$emit("close", l))
|
|
1386
1386
|
}, [
|
|
1387
|
-
|
|
1387
|
+
y(se, {
|
|
1388
1388
|
name: "CloseRounded",
|
|
1389
1389
|
size: "sm",
|
|
1390
1390
|
class: "ao-tag__close-icon"
|
|
1391
1391
|
})
|
|
1392
|
-
])) :
|
|
1392
|
+
])) : M("", !0)
|
|
1393
1393
|
], 2));
|
|
1394
1394
|
}
|
|
1395
1395
|
});
|
|
@@ -1798,7 +1798,7 @@ function ct() {
|
|
|
1798
1798
|
}
|
|
1799
1799
|
return v1.default = t, v1;
|
|
1800
1800
|
}
|
|
1801
|
-
var
|
|
1801
|
+
var j1 = {}, dt = {};
|
|
1802
1802
|
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
1803
1803
|
var y1 = {};
|
|
1804
1804
|
Object.defineProperty(y1, "__esModule", { value: !0 });
|
|
@@ -1908,13 +1908,13 @@ $1.LexoNumeralSystem64 = Gr;
|
|
|
1908
1908
|
i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
|
|
1909
1909
|
};
|
|
1910
1910
|
Object.defineProperty(s, "__esModule", { value: !0 }), t(dt, s), t(y1, s), t(b1, s), t($1, s);
|
|
1911
|
-
})(
|
|
1911
|
+
})(j1);
|
|
1912
1912
|
var tt;
|
|
1913
1913
|
function pt() {
|
|
1914
1914
|
if (tt)
|
|
1915
1915
|
return Qe;
|
|
1916
1916
|
tt = 1, Object.defineProperty(Qe, "__esModule", { value: !0 }), Qe.LexoRank = void 0;
|
|
1917
|
-
const s = i1, e = ct(), t = o1, n =
|
|
1917
|
+
const s = i1, e = ct(), t = o1, n = j1;
|
|
1918
1918
|
class a {
|
|
1919
1919
|
constructor(l, r) {
|
|
1920
1920
|
this.value = l.format() + "|" + a.formatDecimal(r), this.bucket = l, this.decimal = r;
|
|
@@ -1975,20 +1975,20 @@ function pt() {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
let _;
|
|
1977
1977
|
for (let I = c.getScale(); I > 0; d = _) {
|
|
1978
|
-
const
|
|
1979
|
-
if (_ = d.setScale(
|
|
1980
|
-
return a.checkMid(l, r,
|
|
1981
|
-
if (
|
|
1978
|
+
const L = I - 1, Z = c.setScale(L, !0);
|
|
1979
|
+
if (_ = d.setScale(L, !1), Z.compareTo(_) === 0)
|
|
1980
|
+
return a.checkMid(l, r, Z);
|
|
1981
|
+
if (Z.compareTo(_) > 0)
|
|
1982
1982
|
break;
|
|
1983
|
-
I =
|
|
1983
|
+
I = L, c = Z;
|
|
1984
1984
|
}
|
|
1985
|
-
let m = a.middleInternal(l, r, c, d),
|
|
1986
|
-
for (let I = m.getScale(); I > 0; I =
|
|
1987
|
-
|
|
1988
|
-
const
|
|
1989
|
-
if (l.compareTo(
|
|
1985
|
+
let m = a.middleInternal(l, r, c, d), w;
|
|
1986
|
+
for (let I = m.getScale(); I > 0; I = w) {
|
|
1987
|
+
w = I - 1;
|
|
1988
|
+
const L = m.setScale(w);
|
|
1989
|
+
if (l.compareTo(L) >= 0 || L.compareTo(r) >= 0)
|
|
1990
1990
|
break;
|
|
1991
|
-
m =
|
|
1991
|
+
m = L;
|
|
1992
1992
|
}
|
|
1993
1993
|
return m;
|
|
1994
1994
|
}
|
|
@@ -2115,7 +2115,7 @@ function pt() {
|
|
|
2115
2115
|
for (var i in n)
|
|
2116
2116
|
i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
|
|
2117
2117
|
};
|
|
2118
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(ut, s), t(
|
|
2118
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(ut, s), t(j1, s);
|
|
2119
2119
|
})(ye);
|
|
2120
2120
|
function vt(s) {
|
|
2121
2121
|
return (s == null ? void 0 : s.reduce((e, t) => {
|
|
@@ -2174,15 +2174,15 @@ const Jr = ["title"], Qr = { className: "ao-avatar__initials" }, Ye = /* @__PURE
|
|
|
2174
2174
|
class: F(["ao-avatar", `ao-avatar--${i.size}`]),
|
|
2175
2175
|
title: i.userName
|
|
2176
2176
|
}, [
|
|
2177
|
-
o("span", Qr,
|
|
2178
|
-
i.isClosable ? (u(),
|
|
2177
|
+
o("span", Qr, N(E(n)), 1),
|
|
2178
|
+
i.isClosable ? (u(), j(ue, {
|
|
2179
2179
|
key: 0,
|
|
2180
2180
|
"icon-name": "CloseRounded",
|
|
2181
2181
|
class: "ao-avatar__close",
|
|
2182
2182
|
color: "primary",
|
|
2183
2183
|
corners: "round",
|
|
2184
|
-
onClick: a
|
|
2185
|
-
})) :
|
|
2184
|
+
onClick: we(a, ["stop"])
|
|
2185
|
+
}, null, 8, ["onClick"])) : M("", !0)
|
|
2186
2186
|
], 10, Jr));
|
|
2187
2187
|
}
|
|
2188
2188
|
});
|
|
@@ -2210,7 +2210,7 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2210
2210
|
const t = (n) => {
|
|
2211
2211
|
e("updateTitle", n);
|
|
2212
2212
|
};
|
|
2213
|
-
return (n, a) => (u(),
|
|
2213
|
+
return (n, a) => (u(), j(rt, {
|
|
2214
2214
|
title: n.title,
|
|
2215
2215
|
"is-draggable": !0,
|
|
2216
2216
|
"onUpdate:title": t
|
|
@@ -2218,18 +2218,18 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2218
2218
|
subtitle: R(() => [
|
|
2219
2219
|
o("ul", xr, [
|
|
2220
2220
|
o("li", e3, [
|
|
2221
|
-
|
|
2221
|
+
y(se, {
|
|
2222
2222
|
name: "MountainFlagOutlineRounded",
|
|
2223
2223
|
size: "sm"
|
|
2224
2224
|
}),
|
|
2225
|
-
o("span", t3,
|
|
2225
|
+
o("span", t3, N(n.milestones), 1)
|
|
2226
2226
|
]),
|
|
2227
2227
|
o("li", s3, [
|
|
2228
|
-
|
|
2228
|
+
y(se, {
|
|
2229
2229
|
name: "TaskOutlineRounded",
|
|
2230
2230
|
size: "sm"
|
|
2231
2231
|
}),
|
|
2232
|
-
o("span", a3,
|
|
2232
|
+
o("span", a3, N(n.activities), 1)
|
|
2233
2233
|
])
|
|
2234
2234
|
])
|
|
2235
2235
|
]),
|
|
@@ -2237,20 +2237,20 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2237
2237
|
o("div", l3, [
|
|
2238
2238
|
o("div", n3, [
|
|
2239
2239
|
o("div", i3, [
|
|
2240
|
-
|
|
2240
|
+
y(se, {
|
|
2241
2241
|
name: "WaterfallChartRounded",
|
|
2242
2242
|
size: "sm"
|
|
2243
2243
|
}),
|
|
2244
|
-
o("span", o3,
|
|
2244
|
+
o("span", o3, N(n.$t("template.phases.title")), 1)
|
|
2245
2245
|
]),
|
|
2246
2246
|
n.phases ? (u(), C("ul", r3, [
|
|
2247
|
-
(u(!0), C(
|
|
2247
|
+
(u(!0), C(ae, null, pe(n.phases, (i) => (u(), j(f1, {
|
|
2248
2248
|
key: i.id,
|
|
2249
2249
|
label: i.name || i.id,
|
|
2250
2250
|
color: "primary",
|
|
2251
2251
|
variant: "solid"
|
|
2252
2252
|
}, null, 8, ["label"]))), 128))
|
|
2253
|
-
])) :
|
|
2253
|
+
])) : M("", !0)
|
|
2254
2254
|
])
|
|
2255
2255
|
])
|
|
2256
2256
|
]),
|
|
@@ -2258,20 +2258,20 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2258
2258
|
o("div", u3, [
|
|
2259
2259
|
n.updatedAt ? (u(), C("div", c3, [
|
|
2260
2260
|
o("div", d3, [
|
|
2261
|
-
o("span", p3,
|
|
2261
|
+
o("span", p3, N(n.$t("template.updatedAt.label")), 1)
|
|
2262
2262
|
]),
|
|
2263
2263
|
o("div", v3, [
|
|
2264
|
-
o("span", null,
|
|
2264
|
+
o("span", null, N(n.updatedAt), 1)
|
|
2265
2265
|
])
|
|
2266
|
-
])) :
|
|
2266
|
+
])) : M("", !0),
|
|
2267
2267
|
n.updatedBy ? (u(), C("div", C3, [
|
|
2268
2268
|
o("div", _3, [
|
|
2269
|
-
o("span", m3,
|
|
2269
|
+
o("span", m3, N(n.$t("template.updatedBy.label")), 1)
|
|
2270
2270
|
]),
|
|
2271
2271
|
o("div", h3, [
|
|
2272
|
-
|
|
2272
|
+
y(Ye, { "user-name": n.updatedBy }, null, 8, ["user-name"])
|
|
2273
2273
|
])
|
|
2274
|
-
])) :
|
|
2274
|
+
])) : M("", !0)
|
|
2275
2275
|
])
|
|
2276
2276
|
]),
|
|
2277
2277
|
_: 1
|
|
@@ -2287,12 +2287,12 @@ const g3 = { class: "ao-page-header" }, y3 = { class: "ao-page-header-main" }, b
|
|
|
2287
2287
|
setup(s) {
|
|
2288
2288
|
return (e, t) => (u(), C("header", g3, [
|
|
2289
2289
|
o("div", y3, [
|
|
2290
|
-
e.canGoBack ? (u(),
|
|
2290
|
+
e.canGoBack ? (u(), j(ue, {
|
|
2291
2291
|
key: 0,
|
|
2292
2292
|
"icon-name": "ArrowBackRounded",
|
|
2293
2293
|
variant: "ghost",
|
|
2294
2294
|
onClick: t[0] || (t[0] = (n) => e.$emit("goBack"))
|
|
2295
|
-
})) :
|
|
2295
|
+
})) : M("", !0),
|
|
2296
2296
|
Y(e.$slots, "primary")
|
|
2297
2297
|
]),
|
|
2298
2298
|
o("div", b3, [
|
|
@@ -2317,7 +2317,7 @@ const $3 = ["type"], w3 = {
|
|
|
2317
2317
|
corners: { default: () => it.ROUNDED }
|
|
2318
2318
|
},
|
|
2319
2319
|
setup(s) {
|
|
2320
|
-
const e = s, t =
|
|
2320
|
+
const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
|
|
2321
2321
|
return (a, i) => (u(), C("button", {
|
|
2322
2322
|
type: a.type,
|
|
2323
2323
|
class: F([
|
|
@@ -2328,21 +2328,21 @@ const $3 = ["type"], w3 = {
|
|
|
2328
2328
|
])
|
|
2329
2329
|
}, [
|
|
2330
2330
|
Y(a.$slots, "default", {}, () => [
|
|
2331
|
-
a.label ? (u(), C("span", w3,
|
|
2331
|
+
a.label ? (u(), C("span", w3, N(a.label), 1)) : M("", !0)
|
|
2332
2332
|
]),
|
|
2333
|
-
n.value ? (u(),
|
|
2333
|
+
n.value ? (u(), j(se, {
|
|
2334
2334
|
key: 0,
|
|
2335
2335
|
name: n.value,
|
|
2336
2336
|
class: "ao-button-card__icon",
|
|
2337
2337
|
size: t.value
|
|
2338
|
-
}, null, 8, ["name", "size"])) :
|
|
2338
|
+
}, null, 8, ["name", "size"])) : M("", !0)
|
|
2339
2339
|
], 10, $3));
|
|
2340
2340
|
}
|
|
2341
2341
|
});
|
|
2342
2342
|
const M3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
class: "ao-card-template-item__subitem"
|
|
2345
|
-
}, k3 = { class: "ao-card-template-item__subitem-number" }, I3 = { class: "ao-card-template-item__secondary" },
|
|
2345
|
+
}, k3 = { class: "ao-card-template-item__subitem-number" }, I3 = { class: "ao-card-template-item__secondary" }, N1 = /* @__PURE__ */ K({
|
|
2346
2346
|
__name: "AoCardTemplateItem",
|
|
2347
2347
|
props: {
|
|
2348
2348
|
milestones: {},
|
|
@@ -2362,28 +2362,28 @@ const M3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
|
2362
2362
|
}, i = () => {
|
|
2363
2363
|
e("remove");
|
|
2364
2364
|
};
|
|
2365
|
-
return (l, r) => (u(),
|
|
2365
|
+
return (l, r) => (u(), j(rt, { "onUpdate:title": t }, {
|
|
2366
2366
|
footer: R(() => [
|
|
2367
2367
|
o("ul", M3, [
|
|
2368
|
-
(u(), C(
|
|
2368
|
+
(u(), C(ae, null, pe(n, (c) => (u(), C(ae, { key: c }, [
|
|
2369
2369
|
l.$props[c] ? (u(), C("li", A3, [
|
|
2370
|
-
|
|
2370
|
+
y(se, {
|
|
2371
2371
|
name: a[c],
|
|
2372
2372
|
size: "sm"
|
|
2373
2373
|
}, null, 8, ["name"]),
|
|
2374
|
-
o("span", k3,
|
|
2375
|
-
])) :
|
|
2374
|
+
o("span", k3, N(l.$props[c]), 1)
|
|
2375
|
+
])) : M("", !0)
|
|
2376
2376
|
], 64))), 64))
|
|
2377
2377
|
])
|
|
2378
2378
|
]),
|
|
2379
2379
|
secondary: R(() => [
|
|
2380
2380
|
o("div", I3, [
|
|
2381
|
-
|
|
2381
|
+
y(ue, {
|
|
2382
2382
|
"icon-name": "DeleteOutlineRounded",
|
|
2383
2383
|
variant: "ghost",
|
|
2384
2384
|
size: "md",
|
|
2385
2385
|
corners: "round",
|
|
2386
|
-
onClick:
|
|
2386
|
+
onClick: we(i, ["stop"])
|
|
2387
2387
|
}, null, 8, ["onClick"])
|
|
2388
2388
|
])
|
|
2389
2389
|
]),
|
|
@@ -2399,11 +2399,11 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2399
2399
|
milestones: {}
|
|
2400
2400
|
},
|
|
2401
2401
|
setup(s) {
|
|
2402
|
-
const e = s, t =
|
|
2402
|
+
const e = s, t = f(() => {
|
|
2403
2403
|
var a;
|
|
2404
2404
|
return (a = e.milestones) == null ? void 0 : a.length;
|
|
2405
|
-
}), n =
|
|
2406
|
-
return (a, i) => (u(),
|
|
2405
|
+
}), n = f(() => e.milestones ? vt(e.milestones) : 0);
|
|
2406
|
+
return (a, i) => (u(), j(N1, Ee({
|
|
2407
2407
|
title: a.name,
|
|
2408
2408
|
activities: n.value,
|
|
2409
2409
|
milestones: t.value
|
|
@@ -2420,11 +2420,11 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2420
2420
|
activities: {}
|
|
2421
2421
|
},
|
|
2422
2422
|
setup(s) {
|
|
2423
|
-
const e = s, t =
|
|
2423
|
+
const e = s, t = f(() => {
|
|
2424
2424
|
var n;
|
|
2425
2425
|
return ((n = e.activities) == null ? void 0 : n.length) || 0;
|
|
2426
2426
|
});
|
|
2427
|
-
return (n, a) => (u(),
|
|
2427
|
+
return (n, a) => (u(), j(N1, { activities: t.value }, {
|
|
2428
2428
|
default: R(() => [
|
|
2429
2429
|
Y(n.$slots, "default")
|
|
2430
2430
|
]),
|
|
@@ -2455,7 +2455,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2455
2455
|
});
|
|
2456
2456
|
}
|
|
2457
2457
|
};
|
|
2458
|
-
return (r, c) => r.phase ? (u(),
|
|
2458
|
+
return (r, c) => r.phase ? (u(), j(E(n1), {
|
|
2459
2459
|
key: 0,
|
|
2460
2460
|
"model-value": r.phase.milestones,
|
|
2461
2461
|
class: "ao-templates__list",
|
|
@@ -2465,14 +2465,14 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2465
2465
|
onChange: l
|
|
2466
2466
|
}, {
|
|
2467
2467
|
header: R(() => [
|
|
2468
|
-
|
|
2468
|
+
y(ce, {
|
|
2469
2469
|
title: "Milestones",
|
|
2470
2470
|
level: 3,
|
|
2471
2471
|
class: "ao-list__title"
|
|
2472
2472
|
})
|
|
2473
2473
|
]),
|
|
2474
2474
|
item: R(({ element: d }) => [
|
|
2475
|
-
(u(),
|
|
2475
|
+
(u(), j(V3, {
|
|
2476
2476
|
key: d.id,
|
|
2477
2477
|
title: d.name,
|
|
2478
2478
|
activities: d.activities,
|
|
@@ -2489,7 +2489,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2489
2489
|
]),
|
|
2490
2490
|
footer: R(() => [
|
|
2491
2491
|
o("div", L3, [
|
|
2492
|
-
|
|
2492
|
+
y(Be, {
|
|
2493
2493
|
"icon-name": "AddBoxOutlineRounded",
|
|
2494
2494
|
label: r.$t("template.milestones.add"),
|
|
2495
2495
|
onClick: n
|
|
@@ -2497,7 +2497,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2497
2497
|
])
|
|
2498
2498
|
]),
|
|
2499
2499
|
_: 1
|
|
2500
|
-
}, 8, ["model-value", "title"])) :
|
|
2500
|
+
}, 8, ["model-value", "title"])) : M("", !0);
|
|
2501
2501
|
}
|
|
2502
2502
|
}), E3 = /* @__PURE__ */ K({
|
|
2503
2503
|
__name: "AoCardTemplateItemActivity",
|
|
@@ -2506,11 +2506,11 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2506
2506
|
subtasks: {}
|
|
2507
2507
|
},
|
|
2508
2508
|
setup(s) {
|
|
2509
|
-
const e = s, t =
|
|
2509
|
+
const e = s, t = f(() => {
|
|
2510
2510
|
var n;
|
|
2511
2511
|
return ((n = e.subtasks) == null ? void 0 : n.length) || 0;
|
|
2512
2512
|
});
|
|
2513
|
-
return (n, a) => (u(),
|
|
2513
|
+
return (n, a) => (u(), j(N1, { subtasks: t.value }, {
|
|
2514
2514
|
default: R(() => [
|
|
2515
2515
|
Y(n.$slots, "default")
|
|
2516
2516
|
]),
|
|
@@ -2544,7 +2544,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2544
2544
|
});
|
|
2545
2545
|
}
|
|
2546
2546
|
};
|
|
2547
|
-
return (r, c) => r.milestone ? (u(),
|
|
2547
|
+
return (r, c) => r.milestone ? (u(), j(E(n1), {
|
|
2548
2548
|
key: 0,
|
|
2549
2549
|
"model-value": r.milestone.activities,
|
|
2550
2550
|
title: r.$t("template.activities.title"),
|
|
@@ -2554,14 +2554,14 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2554
2554
|
onChange: l
|
|
2555
2555
|
}, {
|
|
2556
2556
|
header: R(() => [
|
|
2557
|
-
|
|
2557
|
+
y(ce, {
|
|
2558
2558
|
title: "Activities",
|
|
2559
2559
|
level: 3,
|
|
2560
2560
|
class: "ao-list__title"
|
|
2561
2561
|
})
|
|
2562
2562
|
]),
|
|
2563
2563
|
item: R(({ element: d }) => [
|
|
2564
|
-
(u(),
|
|
2564
|
+
(u(), j(E3, {
|
|
2565
2565
|
key: d.id,
|
|
2566
2566
|
title: d.name,
|
|
2567
2567
|
subtasks: d.subtasks,
|
|
@@ -2574,7 +2574,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2574
2574
|
]),
|
|
2575
2575
|
footer: R(() => [
|
|
2576
2576
|
o("div", H3, [
|
|
2577
|
-
|
|
2577
|
+
y(Be, {
|
|
2578
2578
|
"icon-name": "AddBoxOutlineRounded",
|
|
2579
2579
|
label: r.$t("template.activities.add"),
|
|
2580
2580
|
onClick: n
|
|
@@ -2582,24 +2582,24 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2582
2582
|
])
|
|
2583
2583
|
]),
|
|
2584
2584
|
_: 1
|
|
2585
|
-
}, 8, ["model-value", "title"])) :
|
|
2585
|
+
}, 8, ["model-value", "title"])) : M("", !0);
|
|
2586
2586
|
}
|
|
2587
2587
|
});
|
|
2588
|
-
function
|
|
2588
|
+
function ke(s) {
|
|
2589
2589
|
return [null, void 0].indexOf(s) !== -1;
|
|
2590
2590
|
}
|
|
2591
2591
|
function B3(s, e, t) {
|
|
2592
2592
|
const { object: n, valueProp: a, mode: i } = fe(s), l = Oe().proxy, r = t.iv, c = (_, m = !0) => {
|
|
2593
2593
|
r.value = p(_);
|
|
2594
|
-
const
|
|
2595
|
-
e.emit("change",
|
|
2596
|
-
}, d = (_) => n.value ||
|
|
2594
|
+
const w = d(_);
|
|
2595
|
+
e.emit("change", w, l), m && (e.emit("input", w), e.emit("update:modelValue", w));
|
|
2596
|
+
}, d = (_) => n.value || ke(_) ? _ : Array.isArray(_) ? _.map((m) => m[a.value]) : _[a.value], p = (_) => ke(_) ? i.value === "single" ? {} : [] : _;
|
|
2597
2597
|
return {
|
|
2598
2598
|
update: c
|
|
2599
2599
|
};
|
|
2600
2600
|
}
|
|
2601
2601
|
function D3(s, e) {
|
|
2602
|
-
const { value: t, modelValue: n, mode: a, valueProp: i } = fe(s), l = Q(a.value !== "single" ? [] : {}), r = n && n.value !== void 0 ? n : t, c =
|
|
2602
|
+
const { value: t, modelValue: n, mode: a, valueProp: i } = fe(s), l = Q(a.value !== "single" ? [] : {}), r = n && n.value !== void 0 ? n : t, c = f(() => a.value === "single" ? l.value[i.value] : l.value.map((p) => p[i.value])), d = f(() => a.value !== "single" ? l.value.map((p) => p[i.value]).join(",") : l.value[i.value]);
|
|
2603
2603
|
return {
|
|
2604
2604
|
iv: l,
|
|
2605
2605
|
internalValue: l,
|
|
@@ -2612,23 +2612,23 @@ function D3(s, e) {
|
|
|
2612
2612
|
function Z3(s, e, t) {
|
|
2613
2613
|
const { regex: n } = fe(s), a = Oe().proxy, i = t.isOpen, l = t.open, r = Q(null), c = Q(null), d = () => {
|
|
2614
2614
|
r.value = "";
|
|
2615
|
-
}, p = (
|
|
2616
|
-
r.value =
|
|
2617
|
-
}, _ = (
|
|
2615
|
+
}, p = (w) => {
|
|
2616
|
+
r.value = w.target.value;
|
|
2617
|
+
}, _ = (w) => {
|
|
2618
2618
|
if (n && n.value) {
|
|
2619
2619
|
let I = n.value;
|
|
2620
|
-
typeof I == "string" && (I = new RegExp(I)),
|
|
2620
|
+
typeof I == "string" && (I = new RegExp(I)), w.key.match(I) || w.preventDefault();
|
|
2621
2621
|
}
|
|
2622
|
-
}, m = (
|
|
2622
|
+
}, m = (w) => {
|
|
2623
2623
|
if (n && n.value) {
|
|
2624
|
-
let
|
|
2625
|
-
window.clipboardData).getData("Text"),
|
|
2626
|
-
typeof
|
|
2624
|
+
let L = (w.clipboardData || /* istanbul ignore next */
|
|
2625
|
+
window.clipboardData).getData("Text"), Z = n.value;
|
|
2626
|
+
typeof Z == "string" && (Z = new RegExp(Z)), L.split("").every(($) => !!$.match(Z)) || w.preventDefault();
|
|
2627
2627
|
}
|
|
2628
|
-
e.emit("paste",
|
|
2628
|
+
e.emit("paste", w, a);
|
|
2629
2629
|
};
|
|
2630
|
-
return de(r, (
|
|
2631
|
-
!i.value &&
|
|
2630
|
+
return de(r, (w) => {
|
|
2631
|
+
!i.value && w && l(), e.emit("search-change", w, a);
|
|
2632
2632
|
}), {
|
|
2633
2633
|
search: r,
|
|
2634
2634
|
input: c,
|
|
@@ -2653,10 +2653,10 @@ function P3(s, e, t) {
|
|
|
2653
2653
|
function O1(s, e = !0) {
|
|
2654
2654
|
return e ? String(s).toLowerCase().trim() : String(s).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g), "ae").replace(new RegExp(/œ/g), "oe").replace(new RegExp(/ø/g), "o").replace(/\p{Diacritic}/gu, "");
|
|
2655
2655
|
}
|
|
2656
|
-
function
|
|
2656
|
+
function j3(s) {
|
|
2657
2657
|
return Object.prototype.toString.call(s) === "[object Object]";
|
|
2658
2658
|
}
|
|
2659
|
-
function
|
|
2659
|
+
function N3(s, e) {
|
|
2660
2660
|
const t = e.slice().sort();
|
|
2661
2661
|
return s.length === e.length && s.slice().sort().every(function(n, a) {
|
|
2662
2662
|
return n === t[a];
|
|
@@ -2674,16 +2674,16 @@ function R3(s, e, t) {
|
|
|
2674
2674
|
label: p,
|
|
2675
2675
|
appendNewTag: _,
|
|
2676
2676
|
appendNewOption: m,
|
|
2677
|
-
multipleLabel:
|
|
2677
|
+
multipleLabel: w,
|
|
2678
2678
|
object: I,
|
|
2679
|
-
loading:
|
|
2680
|
-
delay:
|
|
2681
|
-
resolveOnLoad:
|
|
2682
|
-
minChars:
|
|
2683
|
-
filterResults:
|
|
2679
|
+
loading: L,
|
|
2680
|
+
delay: Z,
|
|
2681
|
+
resolveOnLoad: $,
|
|
2682
|
+
minChars: b,
|
|
2683
|
+
filterResults: B,
|
|
2684
2684
|
clearOnSearch: x,
|
|
2685
|
-
clearOnSelect:
|
|
2686
|
-
valueProp:
|
|
2685
|
+
clearOnSelect: le,
|
|
2686
|
+
valueProp: h,
|
|
2687
2687
|
allowAbsent: H,
|
|
2688
2688
|
groupLabel: U,
|
|
2689
2689
|
canDeselect: te,
|
|
@@ -2691,82 +2691,82 @@ function R3(s, e, t) {
|
|
|
2691
2691
|
strict: Ce,
|
|
2692
2692
|
closeOnSelect: D,
|
|
2693
2693
|
closeOnDeselect: X,
|
|
2694
|
-
groups:
|
|
2694
|
+
groups: A,
|
|
2695
2695
|
reverse: W,
|
|
2696
2696
|
infinite: _e,
|
|
2697
|
-
groupOptions:
|
|
2698
|
-
groupHideEmpty:
|
|
2699
|
-
groupSelect:
|
|
2697
|
+
groupOptions: g,
|
|
2698
|
+
groupHideEmpty: O,
|
|
2699
|
+
groupSelect: T,
|
|
2700
2700
|
onCreate: G,
|
|
2701
2701
|
disabledProp: ee,
|
|
2702
2702
|
searchStart: me,
|
|
2703
2703
|
searchFilter: $e
|
|
2704
|
-
} = fe(s), ne = Oe().proxy, q = t.iv,
|
|
2705
|
-
if (
|
|
2704
|
+
} = fe(s), ne = Oe().proxy, q = t.iv, k = t.ev, P = t.search, he = t.clearSearch, Ie = t.update, ft = t.pointer, Ze = t.clearPointer, gt = t.focus, yt = t.deactivate, Pe = t.close, bt = t.localize, We = Q([]), Le = Q([]), Me = Q(!1), A1 = Q(null), k1 = Q(_e.value && l.value === -1 ? 10 : l.value), z1 = f(() => c.value || d.value || !1), $t = f(() => _.value !== void 0 ? _.value : m.value !== void 0 ? m.value : !0), Te = f(() => {
|
|
2705
|
+
if (A.value) {
|
|
2706
2706
|
let v = r1.value || /* istanbul ignore next */
|
|
2707
|
-
[],
|
|
2707
|
+
[], S = [];
|
|
2708
2708
|
return v.forEach((J) => {
|
|
2709
|
-
E1(J[
|
|
2710
|
-
|
|
2709
|
+
E1(J[g.value]).forEach((oe) => {
|
|
2710
|
+
S.push(Object.assign({}, oe, J[ee.value] ? { [ee.value]: !0 } : {}));
|
|
2711
2711
|
});
|
|
2712
|
-
}),
|
|
2712
|
+
}), S;
|
|
2713
2713
|
} else {
|
|
2714
2714
|
let v = E1(Le.value || /* istanbul ignore next */
|
|
2715
2715
|
[]);
|
|
2716
2716
|
return We.value.length && (v = v.concat(We.value)), v;
|
|
2717
2717
|
}
|
|
2718
|
-
}), F1 =
|
|
2718
|
+
}), F1 = f(() => {
|
|
2719
2719
|
let v = Te.value;
|
|
2720
|
-
return W.value && (v = v.reverse()),
|
|
2721
|
-
}), Xe =
|
|
2720
|
+
return W.value && (v = v.reverse()), je.value.length && (v = je.value.concat(v)), T1(v);
|
|
2721
|
+
}), Xe = f(() => {
|
|
2722
2722
|
let v = F1.value;
|
|
2723
2723
|
return k1.value > 0 && (v = v.slice(0, k1.value)), v;
|
|
2724
|
-
}), r1 =
|
|
2725
|
-
if (!
|
|
2724
|
+
}), r1 = f(() => {
|
|
2725
|
+
if (!A.value)
|
|
2726
2726
|
return [];
|
|
2727
|
-
let v = [],
|
|
2727
|
+
let v = [], S = Le.value || /* istanbul ignore next */
|
|
2728
2728
|
[];
|
|
2729
2729
|
return We.value.length && v.push({
|
|
2730
2730
|
[U.value]: " ",
|
|
2731
|
-
[
|
|
2731
|
+
[g.value]: [...We.value],
|
|
2732
2732
|
__CREATE__: !0
|
|
2733
|
-
}), v.concat(
|
|
2734
|
-
}), wt =
|
|
2735
|
-
let v = [...r1.value].map((
|
|
2736
|
-
return
|
|
2733
|
+
}), v.concat(S);
|
|
2734
|
+
}), wt = f(() => {
|
|
2735
|
+
let v = [...r1.value].map((S) => ({ ...S }));
|
|
2736
|
+
return je.value.length && (v[0] && v[0].__CREATE__ ? v[0][g.value] = [...je.value, ...v[0][g.value]] : v = [{
|
|
2737
2737
|
[U.value]: " ",
|
|
2738
|
-
[
|
|
2738
|
+
[g.value]: [...je.value],
|
|
2739
2739
|
__CREATE__: !0
|
|
2740
2740
|
}].concat(v)), v;
|
|
2741
|
-
}), K1 =
|
|
2742
|
-
if (!
|
|
2741
|
+
}), K1 = f(() => {
|
|
2742
|
+
if (!A.value)
|
|
2743
2743
|
return [];
|
|
2744
2744
|
let v = wt.value;
|
|
2745
2745
|
return Pt((v || /* istanbul ignore next */
|
|
2746
|
-
[]).map((
|
|
2747
|
-
const oe = E1(
|
|
2746
|
+
[]).map((S, J) => {
|
|
2747
|
+
const oe = E1(S[g.value]);
|
|
2748
2748
|
return {
|
|
2749
|
-
...
|
|
2749
|
+
...S,
|
|
2750
2750
|
index: J,
|
|
2751
2751
|
group: !0,
|
|
2752
|
-
[
|
|
2753
|
-
__VISIBLE__: T1(oe).map((Je) => Object.assign({}, Je,
|
|
2752
|
+
[g.value]: T1(oe, !1).map((Je) => Object.assign({}, Je, S[ee.value] ? { [ee.value]: !0 } : {})),
|
|
2753
|
+
__VISIBLE__: T1(oe).map((Je) => Object.assign({}, Je, S[ee.value] ? { [ee.value]: !0 } : {}))
|
|
2754
2754
|
};
|
|
2755
2755
|
}));
|
|
2756
|
-
}), I1 =
|
|
2756
|
+
}), I1 = f(() => {
|
|
2757
2757
|
switch (a.value) {
|
|
2758
2758
|
case "single":
|
|
2759
|
-
return !
|
|
2759
|
+
return !ke(q.value[h.value]);
|
|
2760
2760
|
case "multiple":
|
|
2761
2761
|
case "tags":
|
|
2762
|
-
return !
|
|
2762
|
+
return !ke(q.value) && q.value.length > 0;
|
|
2763
2763
|
}
|
|
2764
|
-
}), Mt =
|
|
2765
|
-
[
|
|
2766
|
-
[
|
|
2767
|
-
[p.value]:
|
|
2764
|
+
}), Mt = f(() => w !== void 0 && w.value !== void 0 ? w.value(q.value, ne) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), At = f(() => !Te.value.length && !Me.value && !je.value.length), kt = f(() => Te.value.length > 0 && Xe.value.length == 0 && (P.value && A.value || !A.value)), je = f(() => z1.value === !1 || !P.value ? [] : Bt(P.value) !== -1 ? [] : [{
|
|
2765
|
+
[h.value]: P.value,
|
|
2766
|
+
[Ae.value]: P.value,
|
|
2767
|
+
[p.value]: P.value,
|
|
2768
2768
|
__CREATE__: !0
|
|
2769
|
-
}]),
|
|
2769
|
+
}]), Ae = f(() => i.value || p.value), It = f(() => {
|
|
2770
2770
|
switch (a.value) {
|
|
2771
2771
|
case "single":
|
|
2772
2772
|
return null;
|
|
@@ -2774,7 +2774,7 @@ function R3(s, e, t) {
|
|
|
2774
2774
|
case "tags":
|
|
2775
2775
|
return [];
|
|
2776
2776
|
}
|
|
2777
|
-
}), St =
|
|
2777
|
+
}), St = f(() => L.value || Me.value), Ne = (v) => {
|
|
2778
2778
|
switch (typeof v != "object" && (v = Ve(v)), a.value) {
|
|
2779
2779
|
case "single":
|
|
2780
2780
|
Ie(v);
|
|
@@ -2792,15 +2792,15 @@ function R3(s, e, t) {
|
|
|
2792
2792
|
break;
|
|
2793
2793
|
case "tags":
|
|
2794
2794
|
case "multiple":
|
|
2795
|
-
Ie(Array.isArray(v) ? q.value.filter((
|
|
2795
|
+
Ie(Array.isArray(v) ? q.value.filter((S) => v.map((J) => J[h.value]).indexOf(S[h.value]) === -1) : q.value.filter((S) => S[h.value] != v[h.value]));
|
|
2796
2796
|
break;
|
|
2797
2797
|
}
|
|
2798
2798
|
e.emit("deselect", G1(v), v, ne);
|
|
2799
|
-
}, G1 = (v) => I.value ? v : v[
|
|
2799
|
+
}, G1 = (v) => I.value ? v : v[h.value], Y1 = (v) => {
|
|
2800
2800
|
Re(v);
|
|
2801
|
-
}, Vt = (v,
|
|
2802
|
-
if (
|
|
2803
|
-
|
|
2801
|
+
}, Vt = (v, S) => {
|
|
2802
|
+
if (S.button !== 0) {
|
|
2803
|
+
S.preventDefault();
|
|
2804
2804
|
return;
|
|
2805
2805
|
}
|
|
2806
2806
|
Y1(v);
|
|
@@ -2808,19 +2808,19 @@ function R3(s, e, t) {
|
|
|
2808
2808
|
e.emit("clear", ne), Ie(It.value);
|
|
2809
2809
|
}, Se = (v) => {
|
|
2810
2810
|
if (v.group !== void 0)
|
|
2811
|
-
return a.value === "single" ? !1 : Ot(v[
|
|
2811
|
+
return a.value === "single" ? !1 : Ot(v[g.value]) && v[g.value].length;
|
|
2812
2812
|
switch (a.value) {
|
|
2813
2813
|
case "single":
|
|
2814
|
-
return !
|
|
2814
|
+
return !ke(q.value) && q.value[h.value] == v[h.value];
|
|
2815
2815
|
case "tags":
|
|
2816
2816
|
case "multiple":
|
|
2817
|
-
return !
|
|
2817
|
+
return !ke(q.value) && q.value.map((S) => S[h.value]).indexOf(v[h.value]) !== -1;
|
|
2818
2818
|
}
|
|
2819
2819
|
}, S1 = (v) => v[ee.value] === !0, V1 = () => re === void 0 || re.value === -1 || !I1.value && re.value > 0 ? !1 : q.value.length >= re.value, Lt = (v) => {
|
|
2820
2820
|
if (!S1(v)) {
|
|
2821
2821
|
if (G && G.value && !Se(v) && v.__CREATE__ && (v = { ...v }, delete v.__CREATE__, v = G.value(v, ne), v instanceof Promise)) {
|
|
2822
|
-
|
|
2823
|
-
|
|
2822
|
+
Me.value = !0, v.then((S) => {
|
|
2823
|
+
Me.value = !1, X1(S);
|
|
2824
2824
|
});
|
|
2825
2825
|
return;
|
|
2826
2826
|
}
|
|
@@ -2833,7 +2833,7 @@ function R3(s, e, t) {
|
|
|
2833
2833
|
te.value && Re(v), X.value && (Ze(), Pe());
|
|
2834
2834
|
return;
|
|
2835
2835
|
}
|
|
2836
|
-
v && L1(v),
|
|
2836
|
+
v && L1(v), le.value && he(), D.value && (Ze(), Pe()), v && Ne(v);
|
|
2837
2837
|
break;
|
|
2838
2838
|
case "multiple":
|
|
2839
2839
|
if (v && Se(v)) {
|
|
@@ -2844,7 +2844,7 @@ function R3(s, e, t) {
|
|
|
2844
2844
|
e.emit("max", ne);
|
|
2845
2845
|
return;
|
|
2846
2846
|
}
|
|
2847
|
-
v && (L1(v),
|
|
2847
|
+
v && (L1(v), Ne(v)), le.value && he(), r.value && Ze(), D.value && Pe();
|
|
2848
2848
|
break;
|
|
2849
2849
|
case "tags":
|
|
2850
2850
|
if (v && Se(v)) {
|
|
@@ -2855,118 +2855,118 @@ function R3(s, e, t) {
|
|
|
2855
2855
|
e.emit("max", ne);
|
|
2856
2856
|
return;
|
|
2857
2857
|
}
|
|
2858
|
-
v && L1(v),
|
|
2858
|
+
v && L1(v), le.value && he(), v && Ne(v), r.value && Ze(), D.value && Pe();
|
|
2859
2859
|
break;
|
|
2860
2860
|
}
|
|
2861
2861
|
D.value || gt();
|
|
2862
2862
|
}, Tt = (v) => {
|
|
2863
|
-
if (!(S1(v) || a.value === "single" || !
|
|
2863
|
+
if (!(S1(v) || a.value === "single" || !T.value)) {
|
|
2864
2864
|
switch (a.value) {
|
|
2865
2865
|
case "multiple":
|
|
2866
2866
|
case "tags":
|
|
2867
|
-
Ht(v[
|
|
2868
|
-
v[
|
|
2867
|
+
Ht(v[g.value]) ? Re(v[g.value]) : Ne(
|
|
2868
|
+
v[g.value].filter((S) => q.value.map((J) => J[h.value]).indexOf(S[h.value]) === -1).filter((S) => !S[ee.value]).filter((S, J) => q.value.length + 1 + J <= re.value || re.value === -1)
|
|
2869
2869
|
);
|
|
2870
2870
|
break;
|
|
2871
2871
|
}
|
|
2872
2872
|
D.value && yt();
|
|
2873
2873
|
}
|
|
2874
2874
|
}, L1 = (v) => {
|
|
2875
|
-
Ve(v[
|
|
2875
|
+
Ve(v[h.value]) === void 0 && z1.value && (e.emit("tag", v[h.value], ne), e.emit("option", v[h.value], ne), e.emit("create", v[h.value], ne), $t.value && Zt(v), he());
|
|
2876
2876
|
}, Et = () => {
|
|
2877
|
-
a.value !== "single" &&
|
|
2878
|
-
}, Ht = (v) => v.find((
|
|
2877
|
+
a.value !== "single" && Ne(Xe.value.filter((v) => !v.disabled && !Se(v)));
|
|
2878
|
+
}, Ht = (v) => v.find((S) => !Se(S) && !S[ee.value]) === void 0, Ot = (v) => v.find((S) => !Se(S)) === void 0, Ve = (v) => Te.value[Te.value.map((S) => String(S[h.value])).indexOf(String(v))], Bt = (v, S = !0) => Te.value.map((J) => parseInt(J[Ae.value]) == J[Ae.value] ? parseInt(J[Ae.value]) : J[Ae.value]).indexOf(
|
|
2879
2879
|
parseInt(v) == v ? parseInt(v) : v
|
|
2880
2880
|
), Dt = (v) => ["tags", "multiple"].indexOf(a.value) !== -1 && r.value && Se(v), Zt = (v) => {
|
|
2881
2881
|
We.value.push(v);
|
|
2882
|
-
}, Pt = (v) =>
|
|
2883
|
-
(
|
|
2884
|
-
) : v.filter((
|
|
2882
|
+
}, Pt = (v) => O.value ? v.filter(
|
|
2883
|
+
(S) => P.value ? S.__VISIBLE__.length : S[g.value].length
|
|
2884
|
+
) : v.filter((S) => P.value ? S.__VISIBLE__.length : !0), T1 = (v, S = !0) => {
|
|
2885
2885
|
let J = v;
|
|
2886
|
-
if (
|
|
2886
|
+
if (P.value && B.value) {
|
|
2887
2887
|
let oe = $e.value;
|
|
2888
2888
|
oe || (oe = (Je, Zu) => {
|
|
2889
|
-
let Q1 = O1(bt(Je[
|
|
2890
|
-
return me.value ? Q1.startsWith(O1(
|
|
2889
|
+
let Q1 = O1(bt(Je[Ae.value]), Ce.value);
|
|
2890
|
+
return me.value ? Q1.startsWith(O1(P.value, Ce.value)) : Q1.indexOf(O1(P.value, Ce.value)) !== -1;
|
|
2891
2891
|
}), J = J.filter(oe);
|
|
2892
2892
|
}
|
|
2893
|
-
return r.value &&
|
|
2893
|
+
return r.value && S && (J = J.filter((oe) => !Dt(oe))), J;
|
|
2894
2894
|
}, E1 = (v) => {
|
|
2895
|
-
let
|
|
2896
|
-
return
|
|
2897
|
-
let oe =
|
|
2898
|
-
return { [
|
|
2899
|
-
})),
|
|
2895
|
+
let S = v;
|
|
2896
|
+
return j3(S) && (S = Object.keys(S).map((J) => {
|
|
2897
|
+
let oe = S[J];
|
|
2898
|
+
return { [h.value]: J, [Ae.value]: oe, [p.value]: oe };
|
|
2899
|
+
})), S = S.map((J) => typeof J == "object" ? J : { [h.value]: J, [Ae.value]: J, [p.value]: J }), S;
|
|
2900
2900
|
}, u1 = () => {
|
|
2901
|
-
|
|
2902
|
-
}, c1 = (v) => (
|
|
2903
|
-
n.value(
|
|
2904
|
-
Le.value = oe || [], typeof v == "function" && v(oe),
|
|
2901
|
+
ke(k.value) || (q.value = d1(k.value));
|
|
2902
|
+
}, c1 = (v) => (Me.value = !0, new Promise((S, J) => {
|
|
2903
|
+
n.value(P.value, ne).then((oe) => {
|
|
2904
|
+
Le.value = oe || [], typeof v == "function" && v(oe), Me.value = !1;
|
|
2905
2905
|
}).catch((oe) => {
|
|
2906
|
-
console.error(oe), Le.value = [],
|
|
2906
|
+
console.error(oe), Le.value = [], Me.value = !1;
|
|
2907
2907
|
}).finally(() => {
|
|
2908
|
-
|
|
2908
|
+
S();
|
|
2909
2909
|
});
|
|
2910
2910
|
})), H1 = () => {
|
|
2911
2911
|
if (I1.value)
|
|
2912
2912
|
if (a.value === "single") {
|
|
2913
|
-
let v = Ve(q.value[
|
|
2913
|
+
let v = Ve(q.value[h.value]);
|
|
2914
2914
|
if (v !== void 0) {
|
|
2915
|
-
let
|
|
2916
|
-
q.value[p.value] =
|
|
2915
|
+
let S = v[p.value];
|
|
2916
|
+
q.value[p.value] = S, I.value && (k.value[p.value] = S);
|
|
2917
2917
|
}
|
|
2918
2918
|
} else
|
|
2919
|
-
q.value.forEach((v,
|
|
2920
|
-
let J = Ve(q.value[
|
|
2919
|
+
q.value.forEach((v, S) => {
|
|
2920
|
+
let J = Ve(q.value[S][h.value]);
|
|
2921
2921
|
if (J !== void 0) {
|
|
2922
2922
|
let oe = J[p.value];
|
|
2923
|
-
q.value[
|
|
2923
|
+
q.value[S][p.value] = oe, I.value && (k.value[S][p.value] = oe);
|
|
2924
2924
|
}
|
|
2925
2925
|
});
|
|
2926
|
-
},
|
|
2926
|
+
}, jt = (v) => {
|
|
2927
2927
|
c1(v);
|
|
2928
|
-
}, d1 = (v) =>
|
|
2928
|
+
}, d1 = (v) => ke(v) ? a.value === "single" ? {} : [] : I.value ? v : a.value === "single" ? Ve(v) || (H.value ? {
|
|
2929
2929
|
[p.value]: v,
|
|
2930
|
-
[
|
|
2931
|
-
[
|
|
2932
|
-
} : {}) : v.filter((
|
|
2933
|
-
[p.value]:
|
|
2934
|
-
[
|
|
2935
|
-
[
|
|
2930
|
+
[h.value]: v,
|
|
2931
|
+
[Ae.value]: v
|
|
2932
|
+
} : {}) : v.filter((S) => !!Ve(S) || H.value).map((S) => Ve(S) || {
|
|
2933
|
+
[p.value]: S,
|
|
2934
|
+
[h.value]: S,
|
|
2935
|
+
[Ae.value]: S
|
|
2936
2936
|
}), J1 = () => {
|
|
2937
|
-
A1.value = de(
|
|
2938
|
-
v.length <
|
|
2939
|
-
v ==
|
|
2940
|
-
(v ==
|
|
2937
|
+
A1.value = de(P, (v) => {
|
|
2938
|
+
v.length < b.value || !v && b.value !== 0 || (Me.value = !0, x.value && (Le.value = []), setTimeout(() => {
|
|
2939
|
+
v == P.value && n.value(P.value, ne).then((S) => {
|
|
2940
|
+
(v == P.value || !P.value) && (Le.value = S, ft.value = Xe.value.filter((J) => J[ee.value] !== !0)[0] || null, Me.value = !1);
|
|
2941
2941
|
}).catch(
|
|
2942
2942
|
/* istanbul ignore next */
|
|
2943
|
-
(
|
|
2944
|
-
console.error(
|
|
2943
|
+
(S) => {
|
|
2944
|
+
console.error(S);
|
|
2945
2945
|
}
|
|
2946
2946
|
);
|
|
2947
|
-
},
|
|
2947
|
+
}, Z.value));
|
|
2948
2948
|
}, { flush: "sync" });
|
|
2949
2949
|
};
|
|
2950
|
-
if (a.value !== "single" && !
|
|
2950
|
+
if (a.value !== "single" && !ke(k.value) && !Array.isArray(k.value))
|
|
2951
2951
|
throw new Error(`v-model must be an array when using "${a.value}" mode`);
|
|
2952
|
-
return n && typeof n.value == "function" ?
|
|
2952
|
+
return n && typeof n.value == "function" ? $.value ? c1(u1) : I.value == !0 && u1() : (Le.value = n.value, u1()), Z.value > -1 && J1(), de(Z, (v, S) => {
|
|
2953
2953
|
A1.value && A1.value(), v >= 0 && J1();
|
|
2954
|
-
}), de(
|
|
2955
|
-
if (
|
|
2954
|
+
}), de(k, (v) => {
|
|
2955
|
+
if (ke(v)) {
|
|
2956
2956
|
Ie(d1(v), !1);
|
|
2957
2957
|
return;
|
|
2958
2958
|
}
|
|
2959
2959
|
switch (a.value) {
|
|
2960
2960
|
case "single":
|
|
2961
|
-
(I.value ? v[
|
|
2961
|
+
(I.value ? v[h.value] != q.value[h.value] : v != q.value[h.value]) && Ie(d1(v), !1);
|
|
2962
2962
|
break;
|
|
2963
2963
|
case "multiple":
|
|
2964
2964
|
case "tags":
|
|
2965
|
-
|
|
2965
|
+
N3(I.value ? v.map((S) => S[h.value]) : v, q.value.map((S) => S[h.value])) || Ie(d1(v), !1);
|
|
2966
2966
|
break;
|
|
2967
2967
|
}
|
|
2968
|
-
}, { deep: !0 }), de(n, (v,
|
|
2969
|
-
typeof s.options == "function" ?
|
|
2968
|
+
}, { deep: !0 }), de(n, (v, S) => {
|
|
2969
|
+
typeof s.options == "function" ? $.value && (!S || v && v.toString() !== S.toString()) && c1() : (Le.value = s.options, Object.keys(q.value).length || u1(), H1());
|
|
2970
2970
|
}), de(p, H1), {
|
|
2971
2971
|
pfo: F1,
|
|
2972
2972
|
fo: Xe,
|
|
@@ -2981,10 +2981,10 @@ function R3(s, e, t) {
|
|
|
2981
2981
|
filteredGroups: K1,
|
|
2982
2982
|
noOptions: At,
|
|
2983
2983
|
noResults: kt,
|
|
2984
|
-
resolving:
|
|
2984
|
+
resolving: Me,
|
|
2985
2985
|
busy: St,
|
|
2986
2986
|
offset: k1,
|
|
2987
|
-
select:
|
|
2987
|
+
select: Ne,
|
|
2988
2988
|
deselect: Re,
|
|
2989
2989
|
remove: Y1,
|
|
2990
2990
|
selectAll: Et,
|
|
@@ -2996,7 +2996,7 @@ function R3(s, e, t) {
|
|
|
2996
2996
|
handleOptionClick: Lt,
|
|
2997
2997
|
handleGroupClick: Tt,
|
|
2998
2998
|
handleTagRemove: Vt,
|
|
2999
|
-
refreshOptions:
|
|
2999
|
+
refreshOptions: jt,
|
|
3000
3000
|
resolveOptions: c1,
|
|
3001
3001
|
refreshLabels: H1
|
|
3002
3002
|
};
|
|
@@ -3012,78 +3012,78 @@ function U3(s, e, t) {
|
|
|
3012
3012
|
groupSelect: d,
|
|
3013
3013
|
disabledProp: p,
|
|
3014
3014
|
groupOptions: _
|
|
3015
|
-
} = fe(s), m = t.fo,
|
|
3016
|
-
const
|
|
3015
|
+
} = fe(s), m = t.fo, w = t.fg, I = t.handleOptionClick, L = t.handleGroupClick, Z = t.search, $ = t.pointer, b = t.setPointer, B = t.clearPointer, x = t.multiselect, le = t.isOpen, h = f(() => m.value.filter((k) => !k[p.value])), H = f(() => w.value.filter((k) => !k[p.value])), U = f(() => c.value !== "single" && d.value), te = f(() => $.value && $.value.group), re = f(() => ne($.value)), Ce = f(() => {
|
|
3016
|
+
const k = te.value ? $.value : (
|
|
3017
3017
|
/* istanbul ignore next */
|
|
3018
|
-
ne(
|
|
3019
|
-
),
|
|
3020
|
-
let he = H.value[
|
|
3018
|
+
ne($.value)
|
|
3019
|
+
), P = H.value.map((Ie) => Ie[l.value]).indexOf(k[l.value]);
|
|
3020
|
+
let he = H.value[P - 1];
|
|
3021
3021
|
return he === void 0 && (he = X.value), he;
|
|
3022
|
-
}), D =
|
|
3023
|
-
let
|
|
3024
|
-
return H.value.length <=
|
|
3025
|
-
}), X =
|
|
3026
|
-
const
|
|
3027
|
-
return
|
|
3028
|
-
}), _e =
|
|
3029
|
-
const
|
|
3030
|
-
return
|
|
3031
|
-
}),
|
|
3032
|
-
h
|
|
3022
|
+
}), D = f(() => {
|
|
3023
|
+
let k = H.value.map((P) => P.label).indexOf(te.value ? $.value[l.value] : ne($.value)[l.value]) + 1;
|
|
3024
|
+
return H.value.length <= k && (k = 0), H.value[k];
|
|
3025
|
+
}), X = f(() => [...H.value].slice(-1)[0]), A = f(() => $.value.__VISIBLE__.filter((k) => !k[p.value])[0]), W = f(() => {
|
|
3026
|
+
const k = re.value.__VISIBLE__.filter((P) => !P[p.value]);
|
|
3027
|
+
return k[k.map((P) => P[n.value]).indexOf($.value[n.value]) - 1];
|
|
3028
|
+
}), _e = f(() => {
|
|
3029
|
+
const k = ne($.value).__VISIBLE__.filter((P) => !P[p.value]);
|
|
3030
|
+
return k[k.map((P) => P[n.value]).indexOf($.value[n.value]) + 1];
|
|
3031
|
+
}), g = f(() => [...Ce.value.__VISIBLE__.filter((k) => !k[p.value])].slice(-1)[0]), O = f(() => [...X.value.__VISIBLE__.filter((k) => !k[p.value])].slice(-1)[0]), T = (k) => $.value && (!k.group && $.value[n.value] === k[n.value] || k.group !== void 0 && $.value[l.value] === k[l.value]) ? !0 : void 0, G = () => {
|
|
3032
|
+
b(h.value[0] || null);
|
|
3033
3033
|
}, ee = () => {
|
|
3034
|
-
|
|
3034
|
+
!$.value || $.value[p.value] === !0 || (te.value ? L($.value) : I($.value));
|
|
3035
3035
|
}, me = () => {
|
|
3036
|
-
if (
|
|
3037
|
-
|
|
3036
|
+
if ($.value === null)
|
|
3037
|
+
b((r.value && U.value ? H.value[0].__CREATE__ ? h.value[0] : H.value[0] : h.value[0]) || null);
|
|
3038
3038
|
else if (r.value && U.value) {
|
|
3039
|
-
let
|
|
3040
|
-
|
|
3039
|
+
let k = te.value ? A.value : _e.value;
|
|
3040
|
+
k === void 0 && (k = D.value, k.__CREATE__ && (k = k[_.value][0])), b(k || /* istanbul ignore next */
|
|
3041
3041
|
null);
|
|
3042
3042
|
} else {
|
|
3043
|
-
let
|
|
3044
|
-
|
|
3043
|
+
let k = h.value.map((P) => P[n.value]).indexOf($.value[n.value]) + 1;
|
|
3044
|
+
h.value.length <= k && (k = 0), b(h.value[k] || null);
|
|
3045
3045
|
}
|
|
3046
3046
|
He(() => {
|
|
3047
3047
|
q();
|
|
3048
3048
|
});
|
|
3049
3049
|
}, $e = () => {
|
|
3050
|
-
if (
|
|
3051
|
-
let
|
|
3052
|
-
r.value && U.value && (
|
|
3050
|
+
if ($.value === null) {
|
|
3051
|
+
let k = h.value[h.value.length - 1];
|
|
3052
|
+
r.value && U.value && (k = O.value, k === void 0 && (k = X.value)), b(k || null);
|
|
3053
3053
|
} else if (r.value && U.value) {
|
|
3054
|
-
let
|
|
3055
|
-
|
|
3054
|
+
let k = te.value ? g.value : W.value;
|
|
3055
|
+
k === void 0 && (k = te.value ? Ce.value : re.value, k.__CREATE__ && (k = g.value, k === void 0 && (k = Ce.value))), b(k || /* istanbul ignore next */
|
|
3056
3056
|
null);
|
|
3057
3057
|
} else {
|
|
3058
|
-
let
|
|
3059
|
-
|
|
3058
|
+
let k = h.value.map((P) => P[n.value]).indexOf($.value[n.value]) - 1;
|
|
3059
|
+
k < 0 && (k = h.value.length - 1), b(h.value[k] || null);
|
|
3060
3060
|
}
|
|
3061
3061
|
He(() => {
|
|
3062
3062
|
q();
|
|
3063
3063
|
});
|
|
3064
|
-
}, ne = (
|
|
3065
|
-
let
|
|
3066
|
-
if (!
|
|
3064
|
+
}, ne = (k) => H.value.find((P) => P.__VISIBLE__.map((he) => he[n.value]).indexOf(k[n.value]) !== -1), q = () => {
|
|
3065
|
+
let k = x.value.querySelector("[data-pointed]");
|
|
3066
|
+
if (!k)
|
|
3067
3067
|
return;
|
|
3068
|
-
let
|
|
3069
|
-
r.value && (
|
|
3068
|
+
let P = k.parentElement.parentElement;
|
|
3069
|
+
r.value && (P = te.value ? k.parentElement.parentElement.parentElement : k.parentElement.parentElement.parentElement.parentElement), k.offsetTop + k.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = k.offsetTop + k.offsetHeight - P.clientHeight), k.offsetTop < P.scrollTop && (P.scrollTop = k.offsetTop);
|
|
3070
3070
|
};
|
|
3071
|
-
return de(
|
|
3072
|
-
i.value && (
|
|
3073
|
-
}), de(
|
|
3074
|
-
if (
|
|
3075
|
-
let
|
|
3076
|
-
if (!
|
|
3071
|
+
return de(Z, (k) => {
|
|
3072
|
+
i.value && (k.length && a.value ? G() : B());
|
|
3073
|
+
}), de(le, (k) => {
|
|
3074
|
+
if (k) {
|
|
3075
|
+
let P = x.value.querySelectorAll("[data-selected]")[0];
|
|
3076
|
+
if (!P)
|
|
3077
3077
|
return;
|
|
3078
|
-
let he =
|
|
3078
|
+
let he = P.parentElement.parentElement;
|
|
3079
3079
|
He(() => {
|
|
3080
|
-
he.scrollTop > 0 || (he.scrollTop =
|
|
3080
|
+
he.scrollTop > 0 || (he.scrollTop = P.offsetTop);
|
|
3081
3081
|
});
|
|
3082
3082
|
}
|
|
3083
3083
|
}), {
|
|
3084
|
-
pointer:
|
|
3084
|
+
pointer: $,
|
|
3085
3085
|
canPointGroups: U,
|
|
3086
|
-
isPointed:
|
|
3086
|
+
isPointed: T,
|
|
3087
3087
|
setPointerFirst: G,
|
|
3088
3088
|
selectPointer: ee,
|
|
3089
3089
|
forwardPointer: me,
|
|
@@ -3103,11 +3103,11 @@ function q3(s, e, t) {
|
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
3105
|
function z3(s, e, t) {
|
|
3106
|
-
const { searchable: n, disabled: a, clearOnBlur: i } = fe(s), l = t.input, r = t.open, c = t.close, d = t.clearSearch, p = t.isOpen, _ = Q(null), m = Q(null),
|
|
3106
|
+
const { searchable: n, disabled: a, clearOnBlur: i } = fe(s), l = t.input, r = t.open, c = t.close, d = t.clearSearch, p = t.isOpen, _ = Q(null), m = Q(null), w = Q(null), I = Q(!1), L = Q(!1), Z = f(() => n.value || a.value ? -1 : 0), $ = () => {
|
|
3107
3107
|
n.value && l.value.blur(), m.value.blur();
|
|
3108
|
-
},
|
|
3108
|
+
}, b = () => {
|
|
3109
3109
|
n.value && !a.value && l.value.focus();
|
|
3110
|
-
},
|
|
3110
|
+
}, B = (te = !0) => {
|
|
3111
3111
|
a.value || (I.value = !0, te && r());
|
|
3112
3112
|
}, x = () => {
|
|
3113
3113
|
I.value = !1, setTimeout(() => {
|
|
@@ -3117,28 +3117,28 @@ function z3(s, e, t) {
|
|
|
3117
3117
|
return {
|
|
3118
3118
|
multiselect: _,
|
|
3119
3119
|
wrapper: m,
|
|
3120
|
-
tags:
|
|
3121
|
-
tabindex:
|
|
3120
|
+
tags: w,
|
|
3121
|
+
tabindex: Z,
|
|
3122
3122
|
isActive: I,
|
|
3123
|
-
mouseClicked:
|
|
3124
|
-
blur:
|
|
3125
|
-
focus:
|
|
3126
|
-
activate:
|
|
3123
|
+
mouseClicked: L,
|
|
3124
|
+
blur: $,
|
|
3125
|
+
focus: b,
|
|
3126
|
+
activate: B,
|
|
3127
3127
|
deactivate: x,
|
|
3128
3128
|
handleFocusIn: (te) => {
|
|
3129
|
-
te.target.closest("[data-tags]") && te.target.nodeName !== "INPUT" || te.target.closest("[data-clear]") ||
|
|
3129
|
+
te.target.closest("[data-tags]") && te.target.nodeName !== "INPUT" || te.target.closest("[data-clear]") || B(L.value);
|
|
3130
3130
|
},
|
|
3131
3131
|
handleFocusOut: () => {
|
|
3132
3132
|
x();
|
|
3133
3133
|
},
|
|
3134
3134
|
handleCaretClick: () => {
|
|
3135
|
-
x(),
|
|
3135
|
+
x(), $();
|
|
3136
3136
|
},
|
|
3137
3137
|
handleMousedown: (te) => {
|
|
3138
|
-
|
|
3138
|
+
L.value = !0, p.value && (te.target.isEqualNode(m.value) || te.target.isEqualNode(w.value)) ? setTimeout(() => {
|
|
3139
3139
|
x();
|
|
3140
|
-
}, 0) : document.activeElement.isEqualNode(m.value) && !p.value &&
|
|
3141
|
-
|
|
3140
|
+
}, 0) : document.activeElement.isEqualNode(m.value) && !p.value && B(), setTimeout(() => {
|
|
3141
|
+
L.value = !1;
|
|
3142
3142
|
}, 0);
|
|
3143
3143
|
}
|
|
3144
3144
|
};
|
|
@@ -3155,81 +3155,81 @@ function F3(s, e, t) {
|
|
|
3155
3155
|
addOptionOn: p,
|
|
3156
3156
|
createTag: _,
|
|
3157
3157
|
createOption: m,
|
|
3158
|
-
reverse:
|
|
3159
|
-
} = fe(s), I = Oe().proxy,
|
|
3160
|
-
n.value === "tags" && !r.value && X.value && l.value && !d.value &&
|
|
3161
|
-
}, _e = (
|
|
3162
|
-
let G =
|
|
3163
|
-
for (; G >= 0 && (
|
|
3158
|
+
reverse: w
|
|
3159
|
+
} = fe(s), I = Oe().proxy, L = t.iv, Z = t.update, $ = t.search, b = t.setPointer, B = t.selectPointer, x = t.backwardPointer, le = t.forwardPointer, h = t.multiselect, H = t.wrapper, U = t.tags, te = t.isOpen, re = t.open, Ce = t.blur, D = t.fo, X = f(() => _.value || m.value || !1), A = f(() => a.value !== void 0 ? a.value : p.value !== void 0 ? p.value : ["enter"]), W = () => {
|
|
3160
|
+
n.value === "tags" && !r.value && X.value && l.value && !d.value && b(D.value[D.value.map((T) => T[c.value]).indexOf($.value)]);
|
|
3161
|
+
}, _e = (T) => {
|
|
3162
|
+
let G = T.length - 1;
|
|
3163
|
+
for (; G >= 0 && (T[G].remove === !1 || T[G].disabled); )
|
|
3164
3164
|
G--;
|
|
3165
|
-
return G < 0 ||
|
|
3165
|
+
return G < 0 || T.splice(G, 1), T;
|
|
3166
3166
|
};
|
|
3167
3167
|
return {
|
|
3168
|
-
handleKeydown: (
|
|
3169
|
-
e.emit("keydown",
|
|
3168
|
+
handleKeydown: (T) => {
|
|
3169
|
+
e.emit("keydown", T, I);
|
|
3170
3170
|
let G, ee;
|
|
3171
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(
|
|
3171
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...h.value.querySelectorAll("[data-tags] > *")].filter((me) => me !== U.value), ee = G.findIndex((me) => me === document.activeElement)), T.key) {
|
|
3172
3172
|
case "Backspace":
|
|
3173
|
-
if (n.value === "single" || l.value && [null, ""].indexOf(
|
|
3173
|
+
if (n.value === "single" || l.value && [null, ""].indexOf($.value) === -1 || L.value.length === 0)
|
|
3174
3174
|
return;
|
|
3175
|
-
|
|
3175
|
+
Z(_e([...L.value]));
|
|
3176
3176
|
break;
|
|
3177
3177
|
case "Enter":
|
|
3178
|
-
if (
|
|
3178
|
+
if (T.preventDefault(), T.keyCode === 229)
|
|
3179
3179
|
return;
|
|
3180
3180
|
if (ee !== -1 && ee !== void 0) {
|
|
3181
|
-
|
|
3181
|
+
Z([...L.value].filter((me, $e) => $e !== ee)), ee === G.length - 1 && (G.length - 1 ? G[G.length - 2].focus() : l.value ? U.value.querySelector("input").focus() : H.value.focus());
|
|
3182
3182
|
return;
|
|
3183
3183
|
}
|
|
3184
|
-
if (
|
|
3184
|
+
if (A.value.indexOf("enter") === -1 && X.value)
|
|
3185
3185
|
return;
|
|
3186
|
-
W(),
|
|
3186
|
+
W(), B();
|
|
3187
3187
|
break;
|
|
3188
3188
|
case " ":
|
|
3189
3189
|
if (!X.value && !l.value) {
|
|
3190
|
-
|
|
3190
|
+
T.preventDefault(), W(), B();
|
|
3191
3191
|
return;
|
|
3192
3192
|
}
|
|
3193
3193
|
if (!X.value)
|
|
3194
3194
|
return !1;
|
|
3195
|
-
if (
|
|
3195
|
+
if (A.value.indexOf("space") === -1 && X.value)
|
|
3196
3196
|
return;
|
|
3197
|
-
|
|
3197
|
+
T.preventDefault(), W(), B();
|
|
3198
3198
|
break;
|
|
3199
3199
|
case "Tab":
|
|
3200
3200
|
case ";":
|
|
3201
3201
|
case ",":
|
|
3202
|
-
if (
|
|
3202
|
+
if (A.value.indexOf(T.key.toLowerCase()) === -1 || !X.value)
|
|
3203
3203
|
return;
|
|
3204
|
-
W(),
|
|
3204
|
+
W(), B(), T.preventDefault();
|
|
3205
3205
|
break;
|
|
3206
3206
|
case "Escape":
|
|
3207
3207
|
Ce();
|
|
3208
3208
|
break;
|
|
3209
3209
|
case "ArrowUp":
|
|
3210
|
-
if (
|
|
3210
|
+
if (T.preventDefault(), !r.value)
|
|
3211
3211
|
return;
|
|
3212
3212
|
te.value || re(), x();
|
|
3213
3213
|
break;
|
|
3214
3214
|
case "ArrowDown":
|
|
3215
|
-
if (
|
|
3215
|
+
if (T.preventDefault(), !r.value)
|
|
3216
3216
|
return;
|
|
3217
|
-
te.value || re(),
|
|
3217
|
+
te.value || re(), le();
|
|
3218
3218
|
break;
|
|
3219
3219
|
case "ArrowLeft":
|
|
3220
|
-
if (l.value && U.value && U.value.querySelector("input").selectionStart ||
|
|
3220
|
+
if (l.value && U.value && U.value.querySelector("input").selectionStart || T.shiftKey || n.value !== "tags" || !L.value || !L.value.length)
|
|
3221
3221
|
return;
|
|
3222
|
-
|
|
3222
|
+
T.preventDefault(), ee === -1 ? G[G.length - 1].focus() : ee > 0 && G[ee - 1].focus();
|
|
3223
3223
|
break;
|
|
3224
3224
|
case "ArrowRight":
|
|
3225
|
-
if (ee === -1 ||
|
|
3225
|
+
if (ee === -1 || T.shiftKey || n.value !== "tags" || !L.value || !L.value.length)
|
|
3226
3226
|
return;
|
|
3227
|
-
|
|
3227
|
+
T.preventDefault(), G.length > ee + 1 ? G[ee + 1].focus() : l.value ? U.value.querySelector("input").focus() : l.value || H.value.focus();
|
|
3228
3228
|
break;
|
|
3229
3229
|
}
|
|
3230
3230
|
},
|
|
3231
|
-
handleKeyup: (
|
|
3232
|
-
e.emit("keyup",
|
|
3231
|
+
handleKeyup: (T) => {
|
|
3232
|
+
e.emit("keyup", T, I);
|
|
3233
3233
|
},
|
|
3234
3234
|
preparePointer: W
|
|
3235
3235
|
};
|
|
@@ -3240,7 +3240,7 @@ function K3(s, e, t) {
|
|
|
3240
3240
|
disabled: a,
|
|
3241
3241
|
openDirection: i,
|
|
3242
3242
|
showOptions: l
|
|
3243
|
-
} = fe(s), r = t.isOpen, c = t.isPointed, d = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups,
|
|
3243
|
+
} = fe(s), r = t.isOpen, c = t.isPointed, d = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups, w = t.resolving, I = t.fo, L = f(() => ({
|
|
3244
3244
|
container: "multiselect",
|
|
3245
3245
|
containerDisabled: "is-disabled",
|
|
3246
3246
|
containerOpen: "is-open",
|
|
@@ -3293,64 +3293,64 @@ function K3(s, e, t) {
|
|
|
3293
3293
|
assist: "multiselect-assistive-text",
|
|
3294
3294
|
spacer: "multiselect-spacer",
|
|
3295
3295
|
...n.value
|
|
3296
|
-
})),
|
|
3296
|
+
})), Z = f(() => !!(r.value && l.value && (!w.value || w.value && I.value.length)));
|
|
3297
3297
|
return {
|
|
3298
|
-
classList:
|
|
3299
|
-
const
|
|
3298
|
+
classList: f(() => {
|
|
3299
|
+
const b = L.value;
|
|
3300
3300
|
return {
|
|
3301
|
-
container: [
|
|
3302
|
-
wrapper:
|
|
3303
|
-
spacer:
|
|
3304
|
-
singleLabel:
|
|
3305
|
-
singleLabelText:
|
|
3306
|
-
multipleLabel:
|
|
3307
|
-
search:
|
|
3308
|
-
tags:
|
|
3309
|
-
tag: [
|
|
3310
|
-
tagDisabled:
|
|
3311
|
-
tagRemove:
|
|
3312
|
-
tagRemoveIcon:
|
|
3313
|
-
tagsSearchWrapper:
|
|
3314
|
-
tagsSearch:
|
|
3315
|
-
tagsSearchCopy:
|
|
3316
|
-
placeholder:
|
|
3317
|
-
caret: [
|
|
3318
|
-
clear:
|
|
3319
|
-
clearIcon:
|
|
3320
|
-
spinner:
|
|
3321
|
-
inifinite:
|
|
3322
|
-
inifiniteSpinner:
|
|
3323
|
-
dropdown: [
|
|
3324
|
-
options: [
|
|
3325
|
-
group:
|
|
3326
|
-
groupLabel: (
|
|
3327
|
-
let x = [
|
|
3328
|
-
return c(
|
|
3301
|
+
container: [b.container].concat(a.value ? b.containerDisabled : []).concat(Z.value && i.value === "top" ? b.containerOpenTop : []).concat(Z.value && i.value !== "top" ? b.containerOpen : []).concat(_.value ? b.containerActive : []),
|
|
3302
|
+
wrapper: b.wrapper,
|
|
3303
|
+
spacer: b.spacer,
|
|
3304
|
+
singleLabel: b.singleLabel,
|
|
3305
|
+
singleLabelText: b.singleLabelText,
|
|
3306
|
+
multipleLabel: b.multipleLabel,
|
|
3307
|
+
search: b.search,
|
|
3308
|
+
tags: b.tags,
|
|
3309
|
+
tag: [b.tag].concat(a.value ? b.tagDisabled : []),
|
|
3310
|
+
tagDisabled: b.tagDisabled,
|
|
3311
|
+
tagRemove: b.tagRemove,
|
|
3312
|
+
tagRemoveIcon: b.tagRemoveIcon,
|
|
3313
|
+
tagsSearchWrapper: b.tagsSearchWrapper,
|
|
3314
|
+
tagsSearch: b.tagsSearch,
|
|
3315
|
+
tagsSearchCopy: b.tagsSearchCopy,
|
|
3316
|
+
placeholder: b.placeholder,
|
|
3317
|
+
caret: [b.caret].concat(r.value ? b.caretOpen : []),
|
|
3318
|
+
clear: b.clear,
|
|
3319
|
+
clearIcon: b.clearIcon,
|
|
3320
|
+
spinner: b.spinner,
|
|
3321
|
+
inifinite: b.inifinite,
|
|
3322
|
+
inifiniteSpinner: b.inifiniteSpinner,
|
|
3323
|
+
dropdown: [b.dropdown].concat(i.value === "top" ? b.dropdownTop : []).concat(!r.value || !l.value || !Z.value ? b.dropdownHidden : []),
|
|
3324
|
+
options: [b.options].concat(i.value === "top" ? b.optionsTop : []),
|
|
3325
|
+
group: b.group,
|
|
3326
|
+
groupLabel: (B) => {
|
|
3327
|
+
let x = [b.groupLabel];
|
|
3328
|
+
return c(B) ? x.push(d(B) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : d(B) && m.value ? x.push(p(B) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : p(B) && x.push(b.groupLabelDisabled), m.value && x.push(b.groupLabelPointable), x;
|
|
3329
3329
|
},
|
|
3330
|
-
groupOptions:
|
|
3331
|
-
option: (
|
|
3332
|
-
let
|
|
3333
|
-
return c(
|
|
3330
|
+
groupOptions: b.groupOptions,
|
|
3331
|
+
option: (B, x) => {
|
|
3332
|
+
let le = [b.option];
|
|
3333
|
+
return c(B) ? le.push(d(B) ? b.optionSelectedPointed : b.optionPointed) : d(B) ? le.push(p(B) ? b.optionSelectedDisabled : b.optionSelected) : (p(B) || x && p(x)) && le.push(b.optionDisabled), le;
|
|
3334
3334
|
},
|
|
3335
|
-
noOptions:
|
|
3336
|
-
noResults:
|
|
3337
|
-
assist:
|
|
3338
|
-
fakeInput:
|
|
3335
|
+
noOptions: b.noOptions,
|
|
3336
|
+
noResults: b.noResults,
|
|
3337
|
+
assist: b.assist,
|
|
3338
|
+
fakeInput: b.fakeInput
|
|
3339
3339
|
};
|
|
3340
3340
|
}),
|
|
3341
|
-
showDropdown:
|
|
3341
|
+
showDropdown: Z
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
3344
|
function G3(s, e, t) {
|
|
3345
3345
|
const {
|
|
3346
3346
|
limit: n,
|
|
3347
3347
|
infinite: a
|
|
3348
|
-
} = fe(s), i = t.isOpen, l = t.offset, r = t.search, c = t.pfo, d = t.eo, p = Q(null), _ = Q(null), m =
|
|
3349
|
-
const { isIntersecting:
|
|
3350
|
-
if (
|
|
3351
|
-
const
|
|
3348
|
+
} = fe(s), i = t.isOpen, l = t.offset, r = t.search, c = t.pfo, d = t.eo, p = Q(null), _ = Q(null), m = f(() => l.value < c.value.length), w = (L) => {
|
|
3349
|
+
const { isIntersecting: Z, target: $ } = L[0];
|
|
3350
|
+
if (Z) {
|
|
3351
|
+
const b = $.offsetParent, B = b.scrollTop;
|
|
3352
3352
|
l.value += n.value == -1 ? 10 : n.value, He(() => {
|
|
3353
|
-
|
|
3353
|
+
b.scrollTop = B;
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
3356
|
}, I = () => {
|
|
@@ -3363,7 +3363,7 @@ function G3(s, e, t) {
|
|
|
3363
3363
|
}, { flush: "post" }), de(d, () => {
|
|
3364
3364
|
a.value && I();
|
|
3365
3365
|
}, { immediate: !1, flush: "post" }), m1(() => {
|
|
3366
|
-
window && window.IntersectionObserver && (p.value = new IntersectionObserver(
|
|
3366
|
+
window && window.IntersectionObserver && (p.value = new IntersectionObserver(w));
|
|
3367
3367
|
}), {
|
|
3368
3368
|
hasMore: m,
|
|
3369
3369
|
infiniteLoader: _
|
|
@@ -3379,22 +3379,22 @@ function Y3(s, e, t) {
|
|
|
3379
3379
|
groupLabel: c,
|
|
3380
3380
|
aria: d,
|
|
3381
3381
|
searchable: p
|
|
3382
|
-
} = fe(s), _ = t.pointer, m = t.iv,
|
|
3382
|
+
} = fe(s), _ = t.pointer, m = t.iv, w = t.hasSelected, I = t.multipleLabelText, L = Q(null), Z = f(() => {
|
|
3383
3383
|
let D = [];
|
|
3384
3384
|
return a && a.value && D.push(a.value), D.push("assist"), D.join("-");
|
|
3385
|
-
}),
|
|
3385
|
+
}), $ = f(() => {
|
|
3386
3386
|
let D = [];
|
|
3387
3387
|
return a && a.value && D.push(a.value), D.push("multiselect-options"), D.join("-");
|
|
3388
|
-
}),
|
|
3388
|
+
}), b = f(() => {
|
|
3389
3389
|
let D = [];
|
|
3390
3390
|
if (a && a.value && D.push(a.value), _.value)
|
|
3391
3391
|
return D.push(_.value.group ? "multiselect-group" : "multiselect-option"), D.push(_.value.group ? _.value.index : _.value[i.value]), D.join("-");
|
|
3392
|
-
}),
|
|
3392
|
+
}), B = f(() => n.value), x = f(() => r.value !== "single"), le = f(() => {
|
|
3393
3393
|
let D = "";
|
|
3394
|
-
return r.value === "single" &&
|
|
3395
|
-
}),
|
|
3394
|
+
return r.value === "single" && w.value && (D += m.value[l.value]), r.value === "multiple" && w.value && (D += I.value), r.value === "tags" && w.value && (D += m.value.map((X) => X[l.value]).join(", ")), D;
|
|
3395
|
+
}), h = f(() => {
|
|
3396
3396
|
let D = { ...d.value };
|
|
3397
|
-
return p.value && (D["aria-labelledby"] = D["aria-labelledby"] ? `${
|
|
3397
|
+
return p.value && (D["aria-labelledby"] = D["aria-labelledby"] ? `${Z.value} ${D["aria-labelledby"]}` : Z.value, le.value && D["aria-label"] && (D["aria-label"] = `${le.value}, ${D["aria-label"]}`)), D;
|
|
3398
3398
|
}), H = (D) => {
|
|
3399
3399
|
let X = [];
|
|
3400
3400
|
return a && a.value && X.push(a.value), X.push("multiselect-option"), X.push(D[i.value]), X.join("-");
|
|
@@ -3411,16 +3411,16 @@ function Y3(s, e, t) {
|
|
|
3411
3411
|
return m1(() => {
|
|
3412
3412
|
if (a && a.value && document && document.querySelector) {
|
|
3413
3413
|
let D = document.querySelector(`[for="${a.value}"]`);
|
|
3414
|
-
|
|
3414
|
+
L.value = D ? D.innerText : null;
|
|
3415
3415
|
}
|
|
3416
3416
|
}), {
|
|
3417
|
-
arias:
|
|
3418
|
-
ariaLabel:
|
|
3419
|
-
ariaAssist:
|
|
3420
|
-
ariaControls:
|
|
3421
|
-
ariaPlaceholder:
|
|
3417
|
+
arias: h,
|
|
3418
|
+
ariaLabel: le,
|
|
3419
|
+
ariaAssist: Z,
|
|
3420
|
+
ariaControls: $,
|
|
3421
|
+
ariaPlaceholder: B,
|
|
3422
3422
|
ariaMultiselectable: x,
|
|
3423
|
-
ariaActiveDescendant:
|
|
3423
|
+
ariaActiveDescendant: b,
|
|
3424
3424
|
ariaOptionId: H,
|
|
3425
3425
|
ariaOptionLabel: te,
|
|
3426
3426
|
ariaGroupId: U,
|
|
@@ -3822,7 +3822,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3822
3822
|
"aria-multiselectable": t.searchable ? void 0 : s.ariaMultiselectable,
|
|
3823
3823
|
role: t.searchable ? void 0 : "combobox"
|
|
3824
3824
|
}, t.searchable ? {} : s.arias), [
|
|
3825
|
-
|
|
3825
|
+
M(" Search "),
|
|
3826
3826
|
t.mode !== "tags" && t.searchable && !t.disabled ? (u(), C("input", Ee({
|
|
3827
3827
|
key: 0,
|
|
3828
3828
|
type: t.inputType,
|
|
@@ -3833,7 +3833,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3833
3833
|
id: t.searchable ? t.id : void 0,
|
|
3834
3834
|
onInput: e[0] || (e[0] = (...l) => s.handleSearchInput && s.handleSearchInput(...l)),
|
|
3835
3835
|
onKeypress: e[1] || (e[1] = (...l) => s.handleKeypress && s.handleKeypress(...l)),
|
|
3836
|
-
onPaste: e[2] || (e[2] =
|
|
3836
|
+
onPaste: e[2] || (e[2] = we((...l) => s.handlePaste && s.handlePaste(...l), ["stop"])),
|
|
3837
3837
|
ref: "input",
|
|
3838
3838
|
"aria-controls": s.ariaControls,
|
|
3839
3839
|
"aria-placeholder": s.ariaPlaceholder,
|
|
@@ -3844,8 +3844,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3844
3844
|
}, {
|
|
3845
3845
|
...t.attrs,
|
|
3846
3846
|
...s.arias
|
|
3847
|
-
}), null, 16, x3)) :
|
|
3848
|
-
|
|
3847
|
+
}), null, 16, x3)) : M("v-if", !0),
|
|
3848
|
+
M(" Tags (with search) "),
|
|
3849
3849
|
t.mode == "tags" ? (u(), C(
|
|
3850
3850
|
"div",
|
|
3851
3851
|
{
|
|
@@ -3855,7 +3855,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3855
3855
|
},
|
|
3856
3856
|
[
|
|
3857
3857
|
(u(!0), C(
|
|
3858
|
-
|
|
3858
|
+
ae,
|
|
3859
3859
|
null,
|
|
3860
3860
|
pe(s.iv, (l, r, c) => Y(s.$slots, "tag", {
|
|
3861
3861
|
option: l,
|
|
@@ -3873,14 +3873,14 @@ function h5(s, e, t, n, a, i) {
|
|
|
3873
3873
|
"aria-label": s.ariaTagLabel(s.localize(l[t.label]))
|
|
3874
3874
|
}, [
|
|
3875
3875
|
Z1(
|
|
3876
|
-
|
|
3876
|
+
N(s.localize(l[t.label])) + " ",
|
|
3877
3877
|
1
|
|
3878
3878
|
/* TEXT */
|
|
3879
3879
|
),
|
|
3880
3880
|
!t.disabled && !l.disabled ? (u(), C("span", {
|
|
3881
3881
|
key: 0,
|
|
3882
3882
|
class: F(s.classList.tagRemove),
|
|
3883
|
-
onClick:
|
|
3883
|
+
onClick: we((d) => s.handleTagRemove(l, d), ["stop"])
|
|
3884
3884
|
}, [
|
|
3885
3885
|
o(
|
|
3886
3886
|
"span",
|
|
@@ -3891,7 +3891,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3891
3891
|
2
|
|
3892
3892
|
/* CLASS */
|
|
3893
3893
|
)
|
|
3894
|
-
], 10, t5)) :
|
|
3894
|
+
], 10, t5)) : M("v-if", !0)
|
|
3895
3895
|
], 42, e5))
|
|
3896
3896
|
])),
|
|
3897
3897
|
256
|
|
@@ -3904,17 +3904,17 @@ function h5(s, e, t, n, a, i) {
|
|
|
3904
3904
|
ref: "tags"
|
|
3905
3905
|
},
|
|
3906
3906
|
[
|
|
3907
|
-
|
|
3907
|
+
M(" Used for measuring search width "),
|
|
3908
3908
|
o(
|
|
3909
3909
|
"span",
|
|
3910
3910
|
{
|
|
3911
3911
|
class: F(s.classList.tagsSearchCopy)
|
|
3912
3912
|
},
|
|
3913
|
-
|
|
3913
|
+
N(s.search),
|
|
3914
3914
|
3
|
|
3915
3915
|
/* TEXT, CLASS */
|
|
3916
3916
|
),
|
|
3917
|
-
|
|
3917
|
+
M(" Actual search input "),
|
|
3918
3918
|
t.searchable && !t.disabled ? (u(), C("input", Ee({
|
|
3919
3919
|
key: 0,
|
|
3920
3920
|
type: t.inputType,
|
|
@@ -3925,7 +3925,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3925
3925
|
autocomplete: t.autocomplete,
|
|
3926
3926
|
onInput: e[3] || (e[3] = (...l) => s.handleSearchInput && s.handleSearchInput(...l)),
|
|
3927
3927
|
onKeypress: e[4] || (e[4] = (...l) => s.handleKeypress && s.handleKeypress(...l)),
|
|
3928
|
-
onPaste: e[5] || (e[5] =
|
|
3928
|
+
onPaste: e[5] || (e[5] = we((...l) => s.handlePaste && s.handlePaste(...l), ["stop"])),
|
|
3929
3929
|
ref: "input",
|
|
3930
3930
|
"aria-controls": s.ariaControls,
|
|
3931
3931
|
"aria-placeholder": s.ariaPlaceholder,
|
|
@@ -3936,7 +3936,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3936
3936
|
}, {
|
|
3937
3937
|
...t.attrs,
|
|
3938
3938
|
...s.arias
|
|
3939
|
-
}), null, 16, s5)) :
|
|
3939
|
+
}), null, 16, s5)) : M("v-if", !0)
|
|
3940
3940
|
],
|
|
3941
3941
|
2
|
|
3942
3942
|
/* CLASS */
|
|
@@ -3944,8 +3944,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3944
3944
|
],
|
|
3945
3945
|
2
|
|
3946
3946
|
/* CLASS */
|
|
3947
|
-
)) :
|
|
3948
|
-
|
|
3947
|
+
)) : M("v-if", !0),
|
|
3948
|
+
M(" Single label "),
|
|
3949
3949
|
t.mode == "single" && s.hasSelected && !s.search && s.iv ? Y(s.$slots, "singlelabel", {
|
|
3950
3950
|
key: 2,
|
|
3951
3951
|
value: s.iv
|
|
@@ -3961,7 +3961,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
3961
3961
|
{
|
|
3962
3962
|
class: F(s.classList.singleLabelText)
|
|
3963
3963
|
},
|
|
3964
|
-
|
|
3964
|
+
N(s.localize(s.iv[t.label])),
|
|
3965
3965
|
3
|
|
3966
3966
|
/* TEXT, CLASS */
|
|
3967
3967
|
)
|
|
@@ -3969,8 +3969,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3969
3969
|
2
|
|
3970
3970
|
/* CLASS */
|
|
3971
3971
|
)
|
|
3972
|
-
]) :
|
|
3973
|
-
|
|
3972
|
+
]) : M("v-if", !0),
|
|
3973
|
+
M(" Multiple label "),
|
|
3974
3974
|
t.mode == "multiple" && s.hasSelected && !s.search ? Y(s.$slots, "multiplelabel", {
|
|
3975
3975
|
key: 3,
|
|
3976
3976
|
values: s.iv
|
|
@@ -3979,8 +3979,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
3979
3979
|
class: F(s.classList.multipleLabel),
|
|
3980
3980
|
innerHTML: s.multipleLabelText
|
|
3981
3981
|
}, null, 10, a5)
|
|
3982
|
-
]) :
|
|
3983
|
-
|
|
3982
|
+
]) : M("v-if", !0),
|
|
3983
|
+
M(" Placeholder "),
|
|
3984
3984
|
t.placeholder && !s.hasSelected && !s.search ? Y(s.$slots, "placeholder", { key: 4 }, () => [
|
|
3985
3985
|
o(
|
|
3986
3986
|
"div",
|
|
@@ -3988,12 +3988,12 @@ function h5(s, e, t, n, a, i) {
|
|
|
3988
3988
|
class: F(s.classList.placeholder),
|
|
3989
3989
|
"aria-hidden": "true"
|
|
3990
3990
|
},
|
|
3991
|
-
|
|
3991
|
+
N(t.placeholder),
|
|
3992
3992
|
3
|
|
3993
3993
|
/* TEXT, CLASS */
|
|
3994
3994
|
)
|
|
3995
|
-
]) :
|
|
3996
|
-
|
|
3995
|
+
]) : M("v-if", !0),
|
|
3996
|
+
M(" Spinner "),
|
|
3997
3997
|
t.loading || s.resolving ? Y(s.$slots, "spinner", { key: 5 }, () => [
|
|
3998
3998
|
o(
|
|
3999
3999
|
"span",
|
|
@@ -4005,8 +4005,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
4005
4005
|
2
|
|
4006
4006
|
/* CLASS */
|
|
4007
4007
|
)
|
|
4008
|
-
]) :
|
|
4009
|
-
|
|
4008
|
+
]) : M("v-if", !0),
|
|
4009
|
+
M(" Clear "),
|
|
4010
4010
|
s.hasSelected && !t.disabled && t.canClear && !s.busy ? Y(s.$slots, "clear", {
|
|
4011
4011
|
key: 6,
|
|
4012
4012
|
clear: s.clear
|
|
@@ -4037,8 +4037,8 @@ function h5(s, e, t, n, a, i) {
|
|
|
4037
4037
|
34
|
|
4038
4038
|
/* CLASS, HYDRATE_EVENTS */
|
|
4039
4039
|
)
|
|
4040
|
-
]) :
|
|
4041
|
-
|
|
4040
|
+
]) : M("v-if", !0),
|
|
4041
|
+
M(" Caret "),
|
|
4042
4042
|
t.caret && t.showOptions ? Y(s.$slots, "caret", { key: 7 }, () => [
|
|
4043
4043
|
o(
|
|
4044
4044
|
"span",
|
|
@@ -4051,9 +4051,9 @@ function h5(s, e, t, n, a, i) {
|
|
|
4051
4051
|
2
|
|
4052
4052
|
/* CLASS */
|
|
4053
4053
|
)
|
|
4054
|
-
]) :
|
|
4054
|
+
]) : M("v-if", !0)
|
|
4055
4055
|
], 16, Q3),
|
|
4056
|
-
|
|
4056
|
+
M(" Options "),
|
|
4057
4057
|
o(
|
|
4058
4058
|
"div",
|
|
4059
4059
|
{
|
|
@@ -4068,7 +4068,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4068
4068
|
role: "listbox"
|
|
4069
4069
|
}, [
|
|
4070
4070
|
t.groups ? (u(!0), C(
|
|
4071
|
-
|
|
4071
|
+
ae,
|
|
4072
4072
|
{ key: 0 },
|
|
4073
4073
|
pe(s.fg, (l, r, c) => (u(), C("li", {
|
|
4074
4074
|
class: F(s.classList.group),
|
|
@@ -4078,7 +4078,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4078
4078
|
"aria-selected": s.isSelected(l),
|
|
4079
4079
|
role: "option"
|
|
4080
4080
|
}, [
|
|
4081
|
-
l.__CREATE__ ?
|
|
4081
|
+
l.__CREATE__ ? M("v-if", !0) : (u(), C("div", {
|
|
4082
4082
|
key: 0,
|
|
4083
4083
|
class: F(s.classList.groupLabel(l)),
|
|
4084
4084
|
"data-pointed": s.isPointed(l),
|
|
@@ -4101,7 +4101,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4101
4101
|
role: "group"
|
|
4102
4102
|
}, [
|
|
4103
4103
|
(u(!0), C(
|
|
4104
|
-
|
|
4104
|
+
ae,
|
|
4105
4105
|
null,
|
|
4106
4106
|
pe(l.__VISIBLE__, (d, p, _) => (u(), C("li", {
|
|
4107
4107
|
class: F(s.classList.option(d, l)),
|
|
@@ -4124,7 +4124,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4124
4124
|
o(
|
|
4125
4125
|
"span",
|
|
4126
4126
|
null,
|
|
4127
|
-
|
|
4127
|
+
N(s.localize(d[t.label])),
|
|
4128
4128
|
1
|
|
4129
4129
|
/* TEXT */
|
|
4130
4130
|
)
|
|
@@ -4138,7 +4138,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4138
4138
|
128
|
|
4139
4139
|
/* KEYED_FRAGMENT */
|
|
4140
4140
|
)) : (u(!0), C(
|
|
4141
|
-
|
|
4141
|
+
ae,
|
|
4142
4142
|
{ key: 1 },
|
|
4143
4143
|
pe(s.fo, (l, r, c) => (u(), C("li", {
|
|
4144
4144
|
class: F(s.classList.option(l)),
|
|
@@ -4161,7 +4161,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4161
4161
|
o(
|
|
4162
4162
|
"span",
|
|
4163
4163
|
null,
|
|
4164
|
-
|
|
4164
|
+
N(s.localize(l[t.label])),
|
|
4165
4165
|
1
|
|
4166
4166
|
/* TEXT */
|
|
4167
4167
|
)
|
|
@@ -4176,13 +4176,13 @@ function h5(s, e, t, n, a, i) {
|
|
|
4176
4176
|
class: F(s.classList.noOptions),
|
|
4177
4177
|
innerHTML: s.localize(t.noOptionsText)
|
|
4178
4178
|
}, null, 10, d5)
|
|
4179
|
-
]) :
|
|
4179
|
+
]) : M("v-if", !0),
|
|
4180
4180
|
s.noResults ? Y(s.$slots, "noresults", { key: 1 }, () => [
|
|
4181
4181
|
o("div", {
|
|
4182
4182
|
class: F(s.classList.noResults),
|
|
4183
4183
|
innerHTML: s.localize(t.noResultsText)
|
|
4184
4184
|
}, null, 10, p5)
|
|
4185
|
-
]) :
|
|
4185
|
+
]) : M("v-if", !0),
|
|
4186
4186
|
t.infinite && s.hasMore ? (u(), C(
|
|
4187
4187
|
"div",
|
|
4188
4188
|
{
|
|
@@ -4205,23 +4205,23 @@ function h5(s, e, t, n, a, i) {
|
|
|
4205
4205
|
],
|
|
4206
4206
|
2
|
|
4207
4207
|
/* CLASS */
|
|
4208
|
-
)) :
|
|
4208
|
+
)) : M("v-if", !0),
|
|
4209
4209
|
Y(s.$slots, "afterlist", { options: s.fo })
|
|
4210
4210
|
],
|
|
4211
4211
|
2
|
|
4212
4212
|
/* CLASS */
|
|
4213
4213
|
),
|
|
4214
|
-
|
|
4214
|
+
M(" Hacky input element to show HTML5 required warning "),
|
|
4215
4215
|
t.required ? (u(), C("input", {
|
|
4216
4216
|
key: 0,
|
|
4217
4217
|
class: F(s.classList.fakeInput),
|
|
4218
4218
|
tabindex: "-1",
|
|
4219
4219
|
value: s.textValue,
|
|
4220
4220
|
required: ""
|
|
4221
|
-
}, null, 10, v5)) :
|
|
4222
|
-
|
|
4221
|
+
}, null, 10, v5)) : M("v-if", !0),
|
|
4222
|
+
M(" Native input support "),
|
|
4223
4223
|
t.nativeSupport ? (u(), C(
|
|
4224
|
-
|
|
4224
|
+
ae,
|
|
4225
4225
|
{ key: 1 },
|
|
4226
4226
|
[
|
|
4227
4227
|
t.mode == "single" ? (u(), C("input", {
|
|
@@ -4230,7 +4230,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4230
4230
|
name: t.name,
|
|
4231
4231
|
value: s.plainValue !== void 0 ? s.plainValue : ""
|
|
4232
4232
|
}, null, 8, C5)) : (u(!0), C(
|
|
4233
|
-
|
|
4233
|
+
ae,
|
|
4234
4234
|
{ key: 1 },
|
|
4235
4235
|
pe(s.plainValue, (l, r) => (u(), C("input", {
|
|
4236
4236
|
type: "hidden",
|
|
@@ -4244,15 +4244,15 @@ function h5(s, e, t, n, a, i) {
|
|
|
4244
4244
|
],
|
|
4245
4245
|
64
|
|
4246
4246
|
/* STABLE_FRAGMENT */
|
|
4247
|
-
)) :
|
|
4248
|
-
|
|
4247
|
+
)) : M("v-if", !0),
|
|
4248
|
+
M(" Screen reader assistive text "),
|
|
4249
4249
|
t.searchable && s.hasSelected ? (u(), C("div", {
|
|
4250
4250
|
key: 2,
|
|
4251
4251
|
class: F(s.classList.assist),
|
|
4252
4252
|
id: s.ariaAssist,
|
|
4253
4253
|
"aria-hidden": "true"
|
|
4254
|
-
},
|
|
4255
|
-
|
|
4254
|
+
}, N(s.ariaLabel), 11, m5)) : M("v-if", !0),
|
|
4255
|
+
M(" Create height for empty input "),
|
|
4256
4256
|
o(
|
|
4257
4257
|
"div",
|
|
4258
4258
|
{
|
|
@@ -4281,7 +4281,7 @@ const f5 = { class: "ao-modal__wrapper" }, g5 = { class: "ao-modal" }, y5 = { cl
|
|
|
4281
4281
|
o("div", g5, [
|
|
4282
4282
|
o("div", y5, [
|
|
4283
4283
|
o("div", b5, [
|
|
4284
|
-
|
|
4284
|
+
y(ue, {
|
|
4285
4285
|
"icon-name": "CloseRounded",
|
|
4286
4286
|
variant: "ghost",
|
|
4287
4287
|
color: "primary",
|
|
@@ -4290,7 +4290,7 @@ const f5 = { class: "ao-modal__wrapper" }, g5 = { class: "ao-modal" }, y5 = { cl
|
|
|
4290
4290
|
]),
|
|
4291
4291
|
e.$slots.header ? (u(), C("header", $5, [
|
|
4292
4292
|
Y(e.$slots, "header")
|
|
4293
|
-
])) :
|
|
4293
|
+
])) : M("", !0)
|
|
4294
4294
|
]),
|
|
4295
4295
|
o("div", w5, [
|
|
4296
4296
|
Y(e.$slots, "default")
|
|
@@ -4343,7 +4343,7 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4343
4343
|
},
|
|
4344
4344
|
emits: ["add", "delete", "update"],
|
|
4345
4345
|
setup(s, { emit: e }) {
|
|
4346
|
-
const t = s, { t: n } = De(), a =
|
|
4346
|
+
const t = s, { t: n } = De(), a = f(
|
|
4347
4347
|
() => {
|
|
4348
4348
|
var p;
|
|
4349
4349
|
return ((p = t.users) == null ? void 0 : p.map((_) => ({
|
|
@@ -4358,10 +4358,10 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4358
4358
|
};
|
|
4359
4359
|
e("add", _);
|
|
4360
4360
|
}, l = (p, _) => {
|
|
4361
|
-
const
|
|
4361
|
+
const w = p.target.value;
|
|
4362
4362
|
e("update", {
|
|
4363
4363
|
id: _,
|
|
4364
|
-
name:
|
|
4364
|
+
name: w
|
|
4365
4365
|
});
|
|
4366
4366
|
}, r = (p, _) => {
|
|
4367
4367
|
e("update", {
|
|
@@ -4378,28 +4378,28 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4378
4378
|
};
|
|
4379
4379
|
return (p, _) => (u(), C("div", A5, [
|
|
4380
4380
|
o("ul", k5, [
|
|
4381
|
-
(u(!0), C(
|
|
4382
|
-
var
|
|
4381
|
+
(u(!0), C(ae, null, pe(p.subtasks, (m) => {
|
|
4382
|
+
var w;
|
|
4383
4383
|
return u(), C("li", {
|
|
4384
4384
|
key: m.id,
|
|
4385
4385
|
class: "ao-subtask"
|
|
4386
4386
|
}, [
|
|
4387
|
-
p.isCheckable ? (u(),
|
|
4387
|
+
p.isCheckable ? (u(), j(ue, {
|
|
4388
4388
|
key: 0,
|
|
4389
4389
|
class: "ao-subtask__delete",
|
|
4390
4390
|
"icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
4391
4391
|
variant: "ghost",
|
|
4392
4392
|
onClick: () => r(m.id, !m.isDone)
|
|
4393
|
-
}, null, 8, ["icon-name", "onClick"])) :
|
|
4393
|
+
}, null, 8, ["icon-name", "onClick"])) : M("", !0),
|
|
4394
4394
|
o("input", {
|
|
4395
4395
|
value: m.name,
|
|
4396
4396
|
class: "ao-field__input ao-subtask__field",
|
|
4397
4397
|
type: "text",
|
|
4398
4398
|
onChange: (I) => l(I, m.id)
|
|
4399
4399
|
}, null, 40, I5),
|
|
4400
|
-
p.users ? (u(),
|
|
4400
|
+
p.users ? (u(), j(E(ve), {
|
|
4401
4401
|
key: 1,
|
|
4402
|
-
value: (
|
|
4402
|
+
value: (w = m.assignee) == null ? void 0 : w.id,
|
|
4403
4403
|
options: a.value,
|
|
4404
4404
|
"close-on-select": !1,
|
|
4405
4405
|
searchable: !0,
|
|
@@ -4407,16 +4407,16 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4407
4407
|
placeholder: p.$t("feed.filters.assignee.placeholder"),
|
|
4408
4408
|
onChange: (I) => d(I, m.id)
|
|
4409
4409
|
}, {
|
|
4410
|
-
tag: R(({ option: I, handleTagRemove:
|
|
4411
|
-
|
|
4410
|
+
tag: R(({ option: I, handleTagRemove: L }) => [
|
|
4411
|
+
y(Ye, {
|
|
4412
4412
|
"user-name": I.label,
|
|
4413
4413
|
"is-closable": !0,
|
|
4414
|
-
onClose: (
|
|
4414
|
+
onClose: (Z) => L(I, Z)
|
|
4415
4415
|
}, null, 8, ["user-name", "onClose"])
|
|
4416
4416
|
]),
|
|
4417
4417
|
_: 2
|
|
4418
|
-
}, 1032, ["value", "options", "placeholder", "onChange"])) :
|
|
4419
|
-
|
|
4418
|
+
}, 1032, ["value", "options", "placeholder", "onChange"])) : M("", !0),
|
|
4419
|
+
y(ue, {
|
|
4420
4420
|
class: "ao-subtask__delete",
|
|
4421
4421
|
"icon-name": "CloseRounded",
|
|
4422
4422
|
variant: "ghost",
|
|
@@ -4426,7 +4426,7 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4426
4426
|
}), 128))
|
|
4427
4427
|
]),
|
|
4428
4428
|
o("div", S5, [
|
|
4429
|
-
|
|
4429
|
+
y(ue, {
|
|
4430
4430
|
label: p.$t("activity.subtasks.add"),
|
|
4431
4431
|
"icon-name": "Add",
|
|
4432
4432
|
variant: "ghost",
|
|
@@ -4493,13 +4493,13 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
4493
4493
|
"ao-files__wrapper--drop-active": i.value
|
|
4494
4494
|
}
|
|
4495
4495
|
]),
|
|
4496
|
-
onDrop:
|
|
4497
|
-
onDragenter:
|
|
4498
|
-
onDragover:
|
|
4499
|
-
onDragleave:
|
|
4496
|
+
onDrop: we(c, ["prevent"]),
|
|
4497
|
+
onDragenter: we(l, ["prevent"]),
|
|
4498
|
+
onDragover: we(l, ["prevent"]),
|
|
4499
|
+
onDragleave: we(r, ["prevent"])
|
|
4500
4500
|
}, [
|
|
4501
4501
|
(_ = d.attachments) != null && _.length && d.attachments.length > 0 ? (u(), C("ul", T5, [
|
|
4502
|
-
(u(!0), C(
|
|
4502
|
+
(u(!0), C(ae, null, pe(d.attachments, (m) => (u(), C("li", {
|
|
4503
4503
|
key: m.id,
|
|
4504
4504
|
class: "ao-file"
|
|
4505
4505
|
}, [
|
|
@@ -4509,14 +4509,14 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
4509
4509
|
target: "_blank",
|
|
4510
4510
|
rel: "noopener noreferrer"
|
|
4511
4511
|
}, [
|
|
4512
|
-
|
|
4512
|
+
y(se, {
|
|
4513
4513
|
class: "ao-file__icon",
|
|
4514
4514
|
name: "AttachFileRounded",
|
|
4515
4515
|
size: "sm"
|
|
4516
4516
|
}),
|
|
4517
|
-
o("span", H5,
|
|
4517
|
+
o("span", H5, N(m.name), 1)
|
|
4518
4518
|
], 8, E5),
|
|
4519
|
-
|
|
4519
|
+
y(ue, {
|
|
4520
4520
|
class: "ao-files__delete-button",
|
|
4521
4521
|
"icon-name": "DeleteOutlineRounded",
|
|
4522
4522
|
variant: "ghost",
|
|
@@ -4528,7 +4528,7 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
4528
4528
|
]))), 128))
|
|
4529
4529
|
])) : (u(), C("div", O5, [
|
|
4530
4530
|
o("label", B5, [
|
|
4531
|
-
o("span", D5,
|
|
4531
|
+
o("span", D5, N(d.$t("activity.attachment.button.resting")), 1),
|
|
4532
4532
|
o("input", {
|
|
4533
4533
|
class: "input-field",
|
|
4534
4534
|
type: "file",
|
|
@@ -4538,16 +4538,16 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
4538
4538
|
onChange: n
|
|
4539
4539
|
}, null, 32)
|
|
4540
4540
|
]),
|
|
4541
|
-
o("span", Z5,
|
|
4541
|
+
o("span", Z5, N(d.$t("activity.attachment.placeholder.resting")), 1)
|
|
4542
4542
|
]))
|
|
4543
4543
|
], 42, L5);
|
|
4544
4544
|
};
|
|
4545
4545
|
}
|
|
4546
4546
|
});
|
|
4547
|
-
const
|
|
4547
|
+
const j5 = {
|
|
4548
4548
|
key: 0,
|
|
4549
4549
|
class: "ao-activity__category"
|
|
4550
|
-
},
|
|
4550
|
+
}, N5 = { class: "ao-activity-details__content" }, R5 = { class: "ao-fieldset" }, U5 = { class: "ao-field__row" }, q5 = { class: "ao-field ao-field--full" }, z5 = { class: "ao-field__label" }, F5 = { class: "ao-field__row" }, K5 = { class: "ao-field" }, G5 = { class: "ao-field__label" }, Y5 = { class: "ao-field" }, W5 = { class: "ao-field__label" }, X5 = { class: "ao-field__row" }, J5 = { class: "ao-field ao-field--multiselect" }, Q5 = { class: "ao-field__label" }, x5 = { class: "ao-field__row" }, e7 = { class: "ao-field ao-field--multiselect" }, t7 = { class: "ao-field__label" }, s7 = { class: "ao-fieldset" }, a7 = { class: "ao-fieldset__title" }, l7 = { class: "ao-field__row" }, n7 = { class: "ao-field ao-field--multiselect" }, i7 = { class: "ao-field__label" }, o7 = { class: "ao-field__row" }, r7 = { class: "ao-field ao-field--multiselect" }, u7 = { class: "ao-field__label" }, c7 = { class: "ao-field__row" }, d7 = { class: "ao-field ao-field--multiselect" }, p7 = { class: "ao-field__label" }, v7 = { class: "ao-fieldset" }, C7 = { class: "ao-fieldset__title" }, _7 = { class: "ao-activity-details__aside" }, m7 = { class: "ao-fieldset__title" }, R1 = /* @__PURE__ */ K({
|
|
4551
4551
|
__name: "AoActivityDetails",
|
|
4552
4552
|
props: {
|
|
4553
4553
|
activity: {},
|
|
@@ -4561,130 +4561,130 @@ const N5 = {
|
|
|
4561
4561
|
},
|
|
4562
4562
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile"],
|
|
4563
4563
|
setup(s, { emit: e }) {
|
|
4564
|
-
const t = s, n = (
|
|
4564
|
+
const t = s, n = (h) => {
|
|
4565
4565
|
e("update:activity", {
|
|
4566
4566
|
id: t.activity.id,
|
|
4567
|
-
name:
|
|
4567
|
+
name: h
|
|
4568
4568
|
});
|
|
4569
|
-
}, a =
|
|
4569
|
+
}, a = f({
|
|
4570
4570
|
get() {
|
|
4571
4571
|
return t.activity.description ?? "";
|
|
4572
4572
|
},
|
|
4573
|
-
set(
|
|
4574
|
-
e("update:activity", { id: t.activity.id, description:
|
|
4573
|
+
set(h) {
|
|
4574
|
+
e("update:activity", { id: t.activity.id, description: h });
|
|
4575
4575
|
}
|
|
4576
|
-
}), i =
|
|
4576
|
+
}), i = f({
|
|
4577
4577
|
get() {
|
|
4578
4578
|
return t.activity.estimation ?? 0;
|
|
4579
4579
|
},
|
|
4580
|
-
set(
|
|
4581
|
-
e("update:activity", { id: t.activity.id, estimation:
|
|
4580
|
+
set(h) {
|
|
4581
|
+
e("update:activity", { id: t.activity.id, estimation: h });
|
|
4582
4582
|
}
|
|
4583
|
-
}), l =
|
|
4583
|
+
}), l = f({
|
|
4584
4584
|
get() {
|
|
4585
4585
|
return t.activity.important ?? !1;
|
|
4586
4586
|
},
|
|
4587
|
-
set(
|
|
4588
|
-
e("update:activity", { id: t.activity.id, important:
|
|
4587
|
+
set(h) {
|
|
4588
|
+
e("update:activity", { id: t.activity.id, important: h });
|
|
4589
4589
|
}
|
|
4590
|
-
}), r =
|
|
4590
|
+
}), r = f({
|
|
4591
4591
|
get() {
|
|
4592
|
-
var
|
|
4593
|
-
return (
|
|
4592
|
+
var h;
|
|
4593
|
+
return (h = t.activity.type) == null ? void 0 : h.id;
|
|
4594
4594
|
},
|
|
4595
|
-
set(
|
|
4596
|
-
e("update:activity", { id: t.activity.id, typeId:
|
|
4595
|
+
set(h) {
|
|
4596
|
+
e("update:activity", { id: t.activity.id, typeId: h });
|
|
4597
4597
|
}
|
|
4598
|
-
}), c =
|
|
4599
|
-
label:
|
|
4600
|
-
value:
|
|
4601
|
-
}))), d =
|
|
4598
|
+
}), c = f(() => t.templateActivities.filter((h) => h.id !== t.activity.id).map((h) => ({
|
|
4599
|
+
label: h.name,
|
|
4600
|
+
value: h.id
|
|
4601
|
+
}))), d = f({
|
|
4602
4602
|
get() {
|
|
4603
4603
|
return t.activity.dependingOn;
|
|
4604
4604
|
},
|
|
4605
|
-
set(
|
|
4606
|
-
|
|
4605
|
+
set(h) {
|
|
4606
|
+
h && e("update:activity", {
|
|
4607
4607
|
id: t.activity.id,
|
|
4608
|
-
dependingOn:
|
|
4608
|
+
dependingOn: h
|
|
4609
4609
|
});
|
|
4610
4610
|
}
|
|
4611
|
-
}), p =
|
|
4611
|
+
}), p = f(() => c.value.map((h) => {
|
|
4612
4612
|
var H;
|
|
4613
4613
|
return {
|
|
4614
|
-
...
|
|
4615
|
-
disabled: (H = t.activity.blocking) == null ? void 0 : H.some((U) => U ===
|
|
4614
|
+
...h,
|
|
4615
|
+
disabled: (H = t.activity.blocking) == null ? void 0 : H.some((U) => U === h.value)
|
|
4616
4616
|
};
|
|
4617
|
-
})), _ =
|
|
4617
|
+
})), _ = f({
|
|
4618
4618
|
get() {
|
|
4619
4619
|
return t.activity.blocking;
|
|
4620
4620
|
},
|
|
4621
|
-
set(
|
|
4622
|
-
|
|
4621
|
+
set(h) {
|
|
4622
|
+
h && e("update:activity", {
|
|
4623
4623
|
id: t.activity.id,
|
|
4624
|
-
blocking:
|
|
4624
|
+
blocking: h
|
|
4625
4625
|
});
|
|
4626
4626
|
}
|
|
4627
|
-
}), m =
|
|
4627
|
+
}), m = f(() => c.value.map((h) => {
|
|
4628
4628
|
var H;
|
|
4629
4629
|
return {
|
|
4630
|
-
...
|
|
4631
|
-
disabled: (H = t.activity.dependingOn) == null ? void 0 : H.some((U) => U ===
|
|
4630
|
+
...h,
|
|
4631
|
+
disabled: (H = t.activity.dependingOn) == null ? void 0 : H.some((U) => U === h.value)
|
|
4632
4632
|
};
|
|
4633
|
-
})),
|
|
4633
|
+
})), w = f(() => (t.templateMilestones || []).filter((H) => H.id !== t.milestoneId).map((H) => ({
|
|
4634
4634
|
label: H.name,
|
|
4635
4635
|
value: H.id
|
|
4636
|
-
}))), I =
|
|
4636
|
+
}))), I = f({
|
|
4637
4637
|
get() {
|
|
4638
4638
|
return t.activity.dependingMilestones;
|
|
4639
4639
|
},
|
|
4640
|
-
set(
|
|
4640
|
+
set(h) {
|
|
4641
4641
|
e("update:activity", {
|
|
4642
4642
|
id: t.activity.id,
|
|
4643
|
-
dependingMilestones:
|
|
4643
|
+
dependingMilestones: h
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
|
-
}),
|
|
4647
|
-
e("addSubtask",
|
|
4648
|
-
},
|
|
4649
|
-
e("updateSubtask",
|
|
4650
|
-
},
|
|
4651
|
-
e("deleteSubtask",
|
|
4652
|
-
},
|
|
4653
|
-
var
|
|
4654
|
-
return ((
|
|
4646
|
+
}), L = (h) => {
|
|
4647
|
+
e("addSubtask", h);
|
|
4648
|
+
}, Z = (h) => {
|
|
4649
|
+
e("updateSubtask", h);
|
|
4650
|
+
}, $ = (h) => {
|
|
4651
|
+
e("deleteSubtask", h);
|
|
4652
|
+
}, b = f(() => {
|
|
4653
|
+
var h;
|
|
4654
|
+
return ((h = t.users) == null ? void 0 : h.map((H) => ({
|
|
4655
4655
|
label: `${H.firstName} ${H.lastName}`,
|
|
4656
4656
|
value: H.id
|
|
4657
4657
|
}))) || [];
|
|
4658
|
-
}),
|
|
4658
|
+
}), B = f({
|
|
4659
4659
|
get() {
|
|
4660
|
-
var
|
|
4661
|
-
return (
|
|
4660
|
+
var h;
|
|
4661
|
+
return (h = t.activity.assignee) == null ? void 0 : h.id;
|
|
4662
4662
|
},
|
|
4663
|
-
set(
|
|
4663
|
+
set(h) {
|
|
4664
4664
|
e("update:activity", {
|
|
4665
4665
|
id: t.activity.id,
|
|
4666
|
-
assigneeId:
|
|
4666
|
+
assigneeId: h
|
|
4667
4667
|
});
|
|
4668
4668
|
}
|
|
4669
|
-
}), x = (
|
|
4669
|
+
}), x = (h) => {
|
|
4670
4670
|
e("addFiles", {
|
|
4671
4671
|
activityId: t.activity.id,
|
|
4672
|
-
files:
|
|
4672
|
+
files: h
|
|
4673
4673
|
});
|
|
4674
|
-
},
|
|
4674
|
+
}, le = (h) => {
|
|
4675
4675
|
e("removeFile", {
|
|
4676
4676
|
activityId: t.activity.id,
|
|
4677
|
-
file:
|
|
4677
|
+
file: h
|
|
4678
4678
|
});
|
|
4679
4679
|
};
|
|
4680
|
-
return (
|
|
4681
|
-
onClose: H[8] || (H[8] = (U) =>
|
|
4680
|
+
return (h, H) => (u(), j(Ct, {
|
|
4681
|
+
onClose: H[8] || (H[8] = (U) => h.$emit("close"))
|
|
4682
4682
|
}, {
|
|
4683
4683
|
header: R(() => [
|
|
4684
|
-
Y(
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
title:
|
|
4684
|
+
Y(h.$slots, "header", {}, () => [
|
|
4685
|
+
h.breadcrumbs ? (u(), C("div", j5, N(h.breadcrumbs), 1)) : M("", !0),
|
|
4686
|
+
y(ce, {
|
|
4687
|
+
title: h.activity.name || h.activity.id,
|
|
4688
4688
|
level: 4,
|
|
4689
4689
|
"is-editable": !0,
|
|
4690
4690
|
"onUpdate:title": n
|
|
@@ -4692,11 +4692,11 @@ const N5 = {
|
|
|
4692
4692
|
])
|
|
4693
4693
|
]),
|
|
4694
4694
|
default: R(() => [
|
|
4695
|
-
o("div",
|
|
4695
|
+
o("div", N5, [
|
|
4696
4696
|
o("fieldset", R5, [
|
|
4697
4697
|
o("div", U5, [
|
|
4698
4698
|
o("label", q5, [
|
|
4699
|
-
o("span", z5,
|
|
4699
|
+
o("span", z5, N(h.$t("activity.description.label")), 1),
|
|
4700
4700
|
qe(o("textarea", {
|
|
4701
4701
|
"onUpdate:modelValue": H[0] || (H[0] = (U) => a.value = U),
|
|
4702
4702
|
rows: "4",
|
|
@@ -4716,7 +4716,7 @@ const N5 = {
|
|
|
4716
4716
|
]),
|
|
4717
4717
|
o("div", F5, [
|
|
4718
4718
|
o("label", K5, [
|
|
4719
|
-
o("span", G5,
|
|
4719
|
+
o("span", G5, N(h.$t("activity.estimation.label")), 1),
|
|
4720
4720
|
qe(o("input", {
|
|
4721
4721
|
"onUpdate:modelValue": H[1] || (H[1] = (U) => i.value = U),
|
|
4722
4722
|
class: "ao-field__input",
|
|
@@ -4735,7 +4735,7 @@ const N5 = {
|
|
|
4735
4735
|
])
|
|
4736
4736
|
]),
|
|
4737
4737
|
o("label", Y5, [
|
|
4738
|
-
o("span", W5,
|
|
4738
|
+
o("span", W5, N(h.$t("activity.isImportant.label")), 1),
|
|
4739
4739
|
qe(o("input", {
|
|
4740
4740
|
"onUpdate:modelValue": H[2] || (H[2] = (U) => l.value = U),
|
|
4741
4741
|
class: "ao-field__input",
|
|
@@ -4752,18 +4752,18 @@ const N5 = {
|
|
|
4752
4752
|
]),
|
|
4753
4753
|
o("div", X5, [
|
|
4754
4754
|
o("div", J5, [
|
|
4755
|
-
o("span", Q5,
|
|
4756
|
-
|
|
4757
|
-
modelValue:
|
|
4758
|
-
"onUpdate:modelValue": H[3] || (H[3] = (U) =>
|
|
4759
|
-
options:
|
|
4755
|
+
o("span", Q5, N(h.$t("activity.assignee.label")), 1),
|
|
4756
|
+
y(E(ve), {
|
|
4757
|
+
modelValue: B.value,
|
|
4758
|
+
"onUpdate:modelValue": H[3] || (H[3] = (U) => B.value = U),
|
|
4759
|
+
options: b.value,
|
|
4760
4760
|
"close-on-select": !1,
|
|
4761
4761
|
searchable: !0,
|
|
4762
4762
|
class: "ao-activity-details__assignees",
|
|
4763
|
-
placeholder:
|
|
4763
|
+
placeholder: h.$t("activity.filters.assignee.placeholder")
|
|
4764
4764
|
}, {
|
|
4765
4765
|
tag: R(({ option: U, handleTagRemove: te }) => [
|
|
4766
|
-
|
|
4766
|
+
y(Ye, {
|
|
4767
4767
|
"user-name": U.label,
|
|
4768
4768
|
"is-closable": !0,
|
|
4769
4769
|
onClose: (re) => te(U, re)
|
|
@@ -4775,32 +4775,32 @@ const N5 = {
|
|
|
4775
4775
|
]),
|
|
4776
4776
|
o("div", x5, [
|
|
4777
4777
|
o("label", e7, [
|
|
4778
|
-
o("span", t7,
|
|
4779
|
-
|
|
4778
|
+
o("span", t7, N(h.$t("activity.type.label")), 1),
|
|
4779
|
+
y(E(ve), {
|
|
4780
4780
|
modelValue: r.value,
|
|
4781
4781
|
"onUpdate:modelValue": H[4] || (H[4] = (U) => r.value = U),
|
|
4782
4782
|
class: "ao-field__multiselect",
|
|
4783
4783
|
mode: "single",
|
|
4784
4784
|
searchable: !0,
|
|
4785
4785
|
"create-option": !0,
|
|
4786
|
-
options:
|
|
4787
|
-
placeholder:
|
|
4786
|
+
options: h.activityTypes,
|
|
4787
|
+
placeholder: h.$t("activity.filters.type.placeholder")
|
|
4788
4788
|
}, null, 8, ["modelValue", "options", "placeholder"])
|
|
4789
4789
|
])
|
|
4790
4790
|
])
|
|
4791
4791
|
]),
|
|
4792
4792
|
o("fieldset", s7, [
|
|
4793
4793
|
o("div", a7, [
|
|
4794
|
-
|
|
4795
|
-
|
|
4794
|
+
y(se, { name: "FlowsheetOutlineRounded" }),
|
|
4795
|
+
y(ce, {
|
|
4796
4796
|
level: 4,
|
|
4797
|
-
title:
|
|
4797
|
+
title: h.$t("activity.dependencies.title")
|
|
4798
4798
|
}, null, 8, ["title"])
|
|
4799
4799
|
]),
|
|
4800
4800
|
o("div", l7, [
|
|
4801
4801
|
o("label", n7, [
|
|
4802
|
-
o("span", i7,
|
|
4803
|
-
|
|
4802
|
+
o("span", i7, N(h.$t("activity.dependingOn.label")), 1),
|
|
4803
|
+
y(E(ve), {
|
|
4804
4804
|
modelValue: d.value,
|
|
4805
4805
|
"onUpdate:modelValue": H[5] || (H[5] = (U) => d.value = U),
|
|
4806
4806
|
class: "ao-field__multiselect",
|
|
@@ -4813,8 +4813,8 @@ const N5 = {
|
|
|
4813
4813
|
]),
|
|
4814
4814
|
o("div", o7, [
|
|
4815
4815
|
o("label", r7, [
|
|
4816
|
-
o("span", u7,
|
|
4817
|
-
|
|
4816
|
+
o("span", u7, N(h.$t("activity.blocking.label")), 1),
|
|
4817
|
+
y(E(ve), {
|
|
4818
4818
|
modelValue: _.value,
|
|
4819
4819
|
"onUpdate:modelValue": H[6] || (H[6] = (U) => _.value = U),
|
|
4820
4820
|
class: "ao-field__multiselect",
|
|
@@ -4827,51 +4827,51 @@ const N5 = {
|
|
|
4827
4827
|
]),
|
|
4828
4828
|
o("div", c7, [
|
|
4829
4829
|
o("label", d7, [
|
|
4830
|
-
o("span", p7,
|
|
4831
|
-
|
|
4830
|
+
o("span", p7, N(h.$t("activity.dependingMilestone.label")), 1),
|
|
4831
|
+
y(E(ve), {
|
|
4832
4832
|
modelValue: I.value,
|
|
4833
4833
|
"onUpdate:modelValue": H[7] || (H[7] = (U) => I.value = U),
|
|
4834
4834
|
class: "ao-field__multiselect",
|
|
4835
4835
|
mode: "tags",
|
|
4836
4836
|
"close-on-select": !1,
|
|
4837
4837
|
searchable: !0,
|
|
4838
|
-
options:
|
|
4838
|
+
options: w.value
|
|
4839
4839
|
}, null, 8, ["modelValue", "options"])
|
|
4840
4840
|
])
|
|
4841
4841
|
])
|
|
4842
4842
|
]),
|
|
4843
4843
|
o("fieldset", v7, [
|
|
4844
4844
|
o("div", C7, [
|
|
4845
|
-
|
|
4846
|
-
|
|
4845
|
+
y(se, { name: "SelectCheckBox" }),
|
|
4846
|
+
y(ce, {
|
|
4847
4847
|
level: 4,
|
|
4848
|
-
title:
|
|
4848
|
+
title: h.$t("activity.subtasks.title")
|
|
4849
4849
|
}, null, 8, ["title"])
|
|
4850
4850
|
]),
|
|
4851
|
-
|
|
4851
|
+
y(V5, {
|
|
4852
4852
|
class: "ao-activity-details__subtasks",
|
|
4853
|
-
subtasks:
|
|
4854
|
-
"activity-id":
|
|
4855
|
-
users:
|
|
4856
|
-
onAdd:
|
|
4857
|
-
onUpdate:
|
|
4858
|
-
onDelete:
|
|
4853
|
+
subtasks: h.activity.tasks || [],
|
|
4854
|
+
"activity-id": h.activity.id,
|
|
4855
|
+
users: h.users,
|
|
4856
|
+
onAdd: L,
|
|
4857
|
+
onUpdate: Z,
|
|
4858
|
+
onDelete: $
|
|
4859
4859
|
}, null, 8, ["subtasks", "activity-id", "users"])
|
|
4860
4860
|
]),
|
|
4861
|
-
Y(
|
|
4861
|
+
Y(h.$slots, "default")
|
|
4862
4862
|
]),
|
|
4863
4863
|
o("div", _7, [
|
|
4864
4864
|
o("div", m7, [
|
|
4865
|
-
|
|
4866
|
-
|
|
4865
|
+
y(se, { name: "AttachFileRounded" }),
|
|
4866
|
+
y(ce, {
|
|
4867
4867
|
level: 4,
|
|
4868
|
-
title:
|
|
4868
|
+
title: h.$t("activity.attachments.title")
|
|
4869
4869
|
}, null, 8, ["title"])
|
|
4870
4870
|
]),
|
|
4871
|
-
|
|
4872
|
-
attachments:
|
|
4871
|
+
y(P5, {
|
|
4872
|
+
attachments: h.activity.attachments,
|
|
4873
4873
|
onAdd: x,
|
|
4874
|
-
onRemove:
|
|
4874
|
+
onRemove: le
|
|
4875
4875
|
}, null, 8, ["attachments"])
|
|
4876
4876
|
])
|
|
4877
4877
|
]),
|
|
@@ -4932,91 +4932,91 @@ const zu = {
|
|
|
4932
4932
|
setup(s, { emit: e }) {
|
|
4933
4933
|
const t = s, n = e1(
|
|
4934
4934
|
t.rule.itemType || ie.ACTIVITIES
|
|
4935
|
-
), a =
|
|
4935
|
+
), a = f({
|
|
4936
4936
|
get() {
|
|
4937
4937
|
return n.value;
|
|
4938
4938
|
},
|
|
4939
|
-
set(
|
|
4940
|
-
n.value =
|
|
4939
|
+
set($) {
|
|
4940
|
+
n.value = $, e("update:rule", {
|
|
4941
4941
|
...t.rule,
|
|
4942
|
-
itemType:
|
|
4942
|
+
itemType: $,
|
|
4943
4943
|
subItemId: void 0
|
|
4944
4944
|
});
|
|
4945
4945
|
}
|
|
4946
|
-
}), i =
|
|
4946
|
+
}), i = f(() => Object.values(ie)), l = f({
|
|
4947
4947
|
get() {
|
|
4948
4948
|
return t.rule.subItemId;
|
|
4949
4949
|
},
|
|
4950
|
-
set(
|
|
4950
|
+
set($) {
|
|
4951
4951
|
e("update:rule", {
|
|
4952
4952
|
...t.rule,
|
|
4953
|
-
subItemId:
|
|
4953
|
+
subItemId: $,
|
|
4954
4954
|
itemType: t.rule.itemType || a.value
|
|
4955
4955
|
});
|
|
4956
4956
|
}
|
|
4957
|
-
}), r =
|
|
4958
|
-
var
|
|
4959
|
-
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (
|
|
4957
|
+
}), r = f(() => {
|
|
4958
|
+
var b;
|
|
4959
|
+
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (b = {
|
|
4960
4960
|
[ie.ACTIVITIES]: t.templateActivities,
|
|
4961
4961
|
[ie.MILESTONES]: t.templateMilestones,
|
|
4962
4962
|
[ie.PHASES]: t.templatePhases
|
|
4963
|
-
}[n.value]) == null ? void 0 :
|
|
4964
|
-
value:
|
|
4965
|
-
label:
|
|
4963
|
+
}[n.value]) == null ? void 0 : b.map((B) => ({
|
|
4964
|
+
value: B.id,
|
|
4965
|
+
label: B.name
|
|
4966
4966
|
}));
|
|
4967
|
-
}), c = e1(t.rule.comparator), d =
|
|
4967
|
+
}), c = e1(t.rule.comparator), d = f({
|
|
4968
4968
|
get() {
|
|
4969
4969
|
return c.value;
|
|
4970
4970
|
},
|
|
4971
|
-
set(
|
|
4972
|
-
e("update:rule", { ...t.rule, comparator:
|
|
4971
|
+
set($) {
|
|
4972
|
+
e("update:rule", { ...t.rule, comparator: $ });
|
|
4973
4973
|
}
|
|
4974
|
-
}), p =
|
|
4974
|
+
}), p = f(() => Object.values(f7)), _ = e1(t.rule.trigger), m = f({
|
|
4975
4975
|
get() {
|
|
4976
4976
|
return _.value;
|
|
4977
4977
|
},
|
|
4978
|
-
set(
|
|
4979
|
-
e("update:rule", { ...t.rule, trigger:
|
|
4978
|
+
set($) {
|
|
4979
|
+
e("update:rule", { ...t.rule, trigger: $ });
|
|
4980
4980
|
}
|
|
4981
|
-
}),
|
|
4981
|
+
}), w = f(() => Object.values(g7)), I = f({
|
|
4982
4982
|
get() {
|
|
4983
4983
|
return t.rule.duration;
|
|
4984
4984
|
},
|
|
4985
|
-
set(
|
|
4986
|
-
e("update:rule", { ...t.rule, duration:
|
|
4985
|
+
set($) {
|
|
4986
|
+
e("update:rule", { ...t.rule, duration: $ });
|
|
4987
4987
|
}
|
|
4988
|
-
}),
|
|
4988
|
+
}), L = f({
|
|
4989
4989
|
get() {
|
|
4990
4990
|
return t.rule.durationUnit;
|
|
4991
4991
|
},
|
|
4992
|
-
set(
|
|
4993
|
-
e("update:rule", { ...t.rule, durationUnit:
|
|
4992
|
+
set($) {
|
|
4993
|
+
e("update:rule", { ...t.rule, durationUnit: $ });
|
|
4994
4994
|
}
|
|
4995
|
-
}),
|
|
4996
|
-
return (
|
|
4995
|
+
}), Z = f(() => Object.values(y7));
|
|
4996
|
+
return ($, b) => (u(), j(Ke($.tagName), { class: "ao-rule-line" }, {
|
|
4997
4997
|
default: R(() => [
|
|
4998
|
-
|
|
4998
|
+
y(E(ve), {
|
|
4999
4999
|
modelValue: a.value,
|
|
5000
|
-
"onUpdate:modelValue":
|
|
5000
|
+
"onUpdate:modelValue": b[0] || (b[0] = (B) => a.value = B),
|
|
5001
5001
|
options: i.value
|
|
5002
5002
|
}, null, 8, ["modelValue", "options"]),
|
|
5003
|
-
|
|
5003
|
+
y(E(ve), {
|
|
5004
5004
|
modelValue: l.value,
|
|
5005
|
-
"onUpdate:modelValue":
|
|
5005
|
+
"onUpdate:modelValue": b[1] || (b[1] = (B) => l.value = B),
|
|
5006
5006
|
options: r.value
|
|
5007
5007
|
}, null, 8, ["modelValue", "options"]),
|
|
5008
|
-
|
|
5008
|
+
y(E(ve), {
|
|
5009
5009
|
modelValue: m.value,
|
|
5010
|
-
"onUpdate:modelValue":
|
|
5011
|
-
options:
|
|
5010
|
+
"onUpdate:modelValue": b[2] || (b[2] = (B) => m.value = B),
|
|
5011
|
+
options: w.value
|
|
5012
5012
|
}, null, 8, ["modelValue", "options"]),
|
|
5013
|
-
|
|
5013
|
+
y(E(ve), {
|
|
5014
5014
|
modelValue: d.value,
|
|
5015
|
-
"onUpdate:modelValue":
|
|
5015
|
+
"onUpdate:modelValue": b[3] || (b[3] = (B) => d.value = B),
|
|
5016
5016
|
options: p.value
|
|
5017
5017
|
}, null, 8, ["modelValue", "options"]),
|
|
5018
5018
|
qe(o("input", {
|
|
5019
|
-
"onUpdate:modelValue":
|
|
5019
|
+
"onUpdate:modelValue": b[4] || (b[4] = (B) => I.value = B),
|
|
5020
5020
|
type: "number",
|
|
5021
5021
|
min: "0"
|
|
5022
5022
|
}, null, 512), [
|
|
@@ -5027,16 +5027,16 @@ const zu = {
|
|
|
5027
5027
|
{ number: !0 }
|
|
5028
5028
|
]
|
|
5029
5029
|
]),
|
|
5030
|
-
|
|
5031
|
-
modelValue:
|
|
5032
|
-
"onUpdate:modelValue":
|
|
5033
|
-
options:
|
|
5030
|
+
y(E(ve), {
|
|
5031
|
+
modelValue: L.value,
|
|
5032
|
+
"onUpdate:modelValue": b[5] || (b[5] = (B) => L.value = B),
|
|
5033
|
+
options: Z.value
|
|
5034
5034
|
}, null, 8, ["modelValue", "options"]),
|
|
5035
|
-
|
|
5035
|
+
y(ue, {
|
|
5036
5036
|
class: "ao-rule-line__remove",
|
|
5037
5037
|
"icon-name": "CloseRounded",
|
|
5038
5038
|
variant: "ghost",
|
|
5039
|
-
onClick:
|
|
5039
|
+
onClick: b[6] || (b[6] = (B) => $.$emit("close"))
|
|
5040
5040
|
})
|
|
5041
5041
|
]),
|
|
5042
5042
|
_: 1
|
|
@@ -5059,9 +5059,9 @@ const w7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rule
|
|
|
5059
5059
|
}, n = (a) => {
|
|
5060
5060
|
e("removeRule", a);
|
|
5061
5061
|
};
|
|
5062
|
-
return (a, i) => (u(),
|
|
5062
|
+
return (a, i) => (u(), j(Ct, null, {
|
|
5063
5063
|
header: R(() => [
|
|
5064
|
-
|
|
5064
|
+
y(ce, {
|
|
5065
5065
|
title: a.$t("template.rules.title"),
|
|
5066
5066
|
level: 2
|
|
5067
5067
|
}, null, 8, ["title"])
|
|
@@ -5069,7 +5069,7 @@ const w7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rule
|
|
|
5069
5069
|
default: R(() => [
|
|
5070
5070
|
o("div", w7, [
|
|
5071
5071
|
o("ul", M7, [
|
|
5072
|
-
(u(!0), C(
|
|
5072
|
+
(u(!0), C(ae, null, pe(a.rules, (l) => (u(), j($7, {
|
|
5073
5073
|
key: l.id,
|
|
5074
5074
|
rule: l,
|
|
5075
5075
|
"template-phases": a.templatePhases,
|
|
@@ -5079,7 +5079,7 @@ const w7 = { class: "ao-template-rules__body" }, M7 = { class: "ao-template-rule
|
|
|
5079
5079
|
onClose: () => n(l.id)
|
|
5080
5080
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
5081
5081
|
]),
|
|
5082
|
-
|
|
5082
|
+
y(Be, {
|
|
5083
5083
|
label: a.$t("template.rules.add"),
|
|
5084
5084
|
"icon-name": "Add",
|
|
5085
5085
|
onClick: t
|
|
@@ -5113,52 +5113,52 @@ const k7 = {
|
|
|
5113
5113
|
},
|
|
5114
5114
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
5115
5115
|
setup(s, { emit: e }) {
|
|
5116
|
-
const t = s, { t: n } = De(), a =
|
|
5116
|
+
const t = s, { t: n } = De(), a = f(
|
|
5117
5117
|
() => {
|
|
5118
|
-
var
|
|
5119
|
-
return (
|
|
5118
|
+
var g;
|
|
5119
|
+
return (g = t.templates) == null ? void 0 : g.find((O) => O.id === t.templateId);
|
|
5120
5120
|
}
|
|
5121
|
-
), i =
|
|
5122
|
-
var
|
|
5123
|
-
return (
|
|
5124
|
-
}), l =
|
|
5125
|
-
var
|
|
5126
|
-
return (
|
|
5127
|
-
(
|
|
5121
|
+
), i = f(() => {
|
|
5122
|
+
var g, O;
|
|
5123
|
+
return (O = (g = a == null ? void 0 : a.value) == null ? void 0 : g.phases) == null ? void 0 : O.find((T) => T.id === t.phaseId);
|
|
5124
|
+
}), l = f(() => {
|
|
5125
|
+
var g, O;
|
|
5126
|
+
return (O = (g = i.value) == null ? void 0 : g.milestones) == null ? void 0 : O.find(
|
|
5127
|
+
(T) => T.id === t.milestoneId
|
|
5128
5128
|
);
|
|
5129
|
-
}), r =
|
|
5130
|
-
var
|
|
5131
|
-
return ((
|
|
5129
|
+
}), r = f(() => {
|
|
5130
|
+
var g, O;
|
|
5131
|
+
return ((O = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : O.reduce((T, G) => {
|
|
5132
5132
|
const ee = G.milestones || [];
|
|
5133
|
-
return [...
|
|
5133
|
+
return [...T, ...ee];
|
|
5134
5134
|
}, [])) || [];
|
|
5135
|
-
}), c =
|
|
5136
|
-
var
|
|
5137
|
-
return ((
|
|
5135
|
+
}), c = f(() => {
|
|
5136
|
+
var g, O;
|
|
5137
|
+
return ((O = (g = a.value) == null ? void 0 : g.phases) == null ? void 0 : O.reduce((T, G) => {
|
|
5138
5138
|
const me = (G.milestones || []).reduce(
|
|
5139
5139
|
($e, ne) => ne.activities ? [...$e, ...ne.activities] : $e,
|
|
5140
5140
|
[]
|
|
5141
5141
|
);
|
|
5142
|
-
return [...
|
|
5142
|
+
return [...T, ...me];
|
|
5143
5143
|
}, [])) || [];
|
|
5144
|
-
}), d =
|
|
5145
|
-
var
|
|
5146
|
-
return (
|
|
5147
|
-
(
|
|
5144
|
+
}), d = f(() => {
|
|
5145
|
+
var g, O;
|
|
5146
|
+
return (O = (g = l.value) == null ? void 0 : g.activities) == null ? void 0 : O.find(
|
|
5147
|
+
(T) => T.id === t.activityId
|
|
5148
5148
|
);
|
|
5149
|
-
}), p =
|
|
5150
|
-
var
|
|
5151
|
-
return ((
|
|
5152
|
-
label:
|
|
5153
|
-
value:
|
|
5149
|
+
}), p = f(() => {
|
|
5150
|
+
var g;
|
|
5151
|
+
return ((g = t.activityTypes) == null ? void 0 : g.map((O) => ({
|
|
5152
|
+
label: O.name,
|
|
5153
|
+
value: O.id
|
|
5154
5154
|
}))) || [];
|
|
5155
|
-
}), _ =
|
|
5156
|
-
var
|
|
5157
|
-
return ((
|
|
5155
|
+
}), _ = f(() => {
|
|
5156
|
+
var g;
|
|
5157
|
+
return ((g = a.value) == null ? void 0 : g.name) || t.templateId;
|
|
5158
5158
|
}), m = () => {
|
|
5159
5159
|
if (!a.value)
|
|
5160
5160
|
return;
|
|
5161
|
-
const { name:
|
|
5161
|
+
const { name: g, rank: O } = ze(
|
|
5162
5162
|
a.value.phases,
|
|
5163
5163
|
"phase",
|
|
5164
5164
|
n
|
|
@@ -5167,39 +5167,39 @@ const k7 = {
|
|
|
5167
5167
|
type: ie.PHASES,
|
|
5168
5168
|
templateId: t.templateId,
|
|
5169
5169
|
item: {
|
|
5170
|
-
name:
|
|
5171
|
-
rank:
|
|
5170
|
+
name: g,
|
|
5171
|
+
rank: O,
|
|
5172
5172
|
templateId: t.templateId
|
|
5173
5173
|
}
|
|
5174
5174
|
});
|
|
5175
|
-
},
|
|
5175
|
+
}, w = (g) => {
|
|
5176
5176
|
e("updateItem", {
|
|
5177
5177
|
templateId: t.templateId,
|
|
5178
5178
|
id: t.templateId,
|
|
5179
5179
|
itemType: ie.TEMPLATES,
|
|
5180
|
-
data: { name:
|
|
5180
|
+
data: { name: g }
|
|
5181
5181
|
});
|
|
5182
|
-
}, I = (
|
|
5182
|
+
}, I = (g) => {
|
|
5183
5183
|
e("removeItem", {
|
|
5184
5184
|
type: ie.PHASES,
|
|
5185
5185
|
templateId: t.templateId,
|
|
5186
5186
|
data: {
|
|
5187
|
-
id:
|
|
5187
|
+
id: g
|
|
5188
5188
|
}
|
|
5189
5189
|
});
|
|
5190
|
-
},
|
|
5190
|
+
}, L = (g, O) => {
|
|
5191
5191
|
e("updateItem", {
|
|
5192
5192
|
templateId: t.templateId,
|
|
5193
|
-
id:
|
|
5193
|
+
id: g,
|
|
5194
5194
|
itemType: ie.PHASES,
|
|
5195
|
-
data: { name:
|
|
5195
|
+
data: { name: O }
|
|
5196
5196
|
});
|
|
5197
|
-
},
|
|
5198
|
-
e("updateItem",
|
|
5199
|
-
},
|
|
5197
|
+
}, Z = (g) => {
|
|
5198
|
+
e("updateItem", g);
|
|
5199
|
+
}, $ = (g) => {
|
|
5200
5200
|
if (!i.value)
|
|
5201
5201
|
return;
|
|
5202
|
-
const { name:
|
|
5202
|
+
const { name: O, rank: T } = ze(
|
|
5203
5203
|
i.value.milestones,
|
|
5204
5204
|
"milestone",
|
|
5205
5205
|
n
|
|
@@ -5207,135 +5207,135 @@ const k7 = {
|
|
|
5207
5207
|
e("addItem", {
|
|
5208
5208
|
type: ie.MILESTONES,
|
|
5209
5209
|
templateId: t.templateId,
|
|
5210
|
-
phaseId:
|
|
5210
|
+
phaseId: g.phaseId,
|
|
5211
5211
|
item: {
|
|
5212
|
-
name:
|
|
5213
|
-
rank:
|
|
5214
|
-
phaseId:
|
|
5212
|
+
name: O,
|
|
5213
|
+
rank: T,
|
|
5214
|
+
phaseId: g.phaseId
|
|
5215
5215
|
}
|
|
5216
5216
|
});
|
|
5217
|
-
},
|
|
5217
|
+
}, b = (g) => {
|
|
5218
5218
|
e("removeItem", {
|
|
5219
5219
|
type: ie.MILESTONES,
|
|
5220
5220
|
templateId: t.templateId,
|
|
5221
|
-
phaseId:
|
|
5221
|
+
phaseId: g.phaseId,
|
|
5222
5222
|
data: {
|
|
5223
|
-
id:
|
|
5223
|
+
id: g.id
|
|
5224
5224
|
}
|
|
5225
5225
|
});
|
|
5226
|
-
},
|
|
5227
|
-
const { id:
|
|
5226
|
+
}, B = (g) => {
|
|
5227
|
+
const { id: O, ...T } = g;
|
|
5228
5228
|
e("updateItem", {
|
|
5229
5229
|
itemType: ie.MILESTONES,
|
|
5230
|
-
id:
|
|
5230
|
+
id: O,
|
|
5231
5231
|
templateId: t.templateId,
|
|
5232
|
-
data:
|
|
5232
|
+
data: T
|
|
5233
5233
|
});
|
|
5234
|
-
}, x = (
|
|
5235
|
-
const { milestoneId:
|
|
5234
|
+
}, x = (g) => {
|
|
5235
|
+
const { milestoneId: O } = g;
|
|
5236
5236
|
if (!l.value)
|
|
5237
5237
|
return;
|
|
5238
|
-
const { name:
|
|
5238
|
+
const { name: T, rank: G } = ze(
|
|
5239
5239
|
l.value.activities,
|
|
5240
5240
|
"activity",
|
|
5241
5241
|
n
|
|
5242
5242
|
);
|
|
5243
5243
|
e("addItem", {
|
|
5244
5244
|
type: ie.ACTIVITIES,
|
|
5245
|
-
milestoneId:
|
|
5246
|
-
item: { name:
|
|
5245
|
+
milestoneId: O,
|
|
5246
|
+
item: { name: T, rank: G, milestoneId: O }
|
|
5247
5247
|
});
|
|
5248
|
-
},
|
|
5249
|
-
const { phaseId:
|
|
5248
|
+
}, le = (g) => {
|
|
5249
|
+
const { phaseId: O, milestoneId: T } = g;
|
|
5250
5250
|
e("removeItem", {
|
|
5251
5251
|
type: ie.ACTIVITIES,
|
|
5252
5252
|
templateId: t.templateId,
|
|
5253
|
-
phaseId:
|
|
5254
|
-
milestoneId:
|
|
5253
|
+
phaseId: O,
|
|
5254
|
+
milestoneId: T,
|
|
5255
5255
|
data: {
|
|
5256
|
-
id:
|
|
5256
|
+
id: g.id
|
|
5257
5257
|
}
|
|
5258
5258
|
});
|
|
5259
|
-
},
|
|
5260
|
-
const { id:
|
|
5259
|
+
}, h = (g) => {
|
|
5260
|
+
const { id: O, ...T } = g;
|
|
5261
5261
|
e("updateItem", {
|
|
5262
5262
|
itemType: ie.ACTIVITIES,
|
|
5263
|
-
id:
|
|
5263
|
+
id: O,
|
|
5264
5264
|
templateId: t.templateId,
|
|
5265
|
-
data:
|
|
5265
|
+
data: T
|
|
5266
5266
|
});
|
|
5267
5267
|
}, H = Q(!1), U = () => {
|
|
5268
5268
|
H.value = !H.value;
|
|
5269
5269
|
}, te = () => {
|
|
5270
5270
|
e("addRule", { templateId: t.templateId });
|
|
5271
|
-
}, re = (
|
|
5272
|
-
e("removeRule", { id:
|
|
5273
|
-
}, Ce = (
|
|
5274
|
-
var
|
|
5275
|
-
if (
|
|
5276
|
-
const
|
|
5271
|
+
}, re = (g) => {
|
|
5272
|
+
e("removeRule", { id: g, templateId: t.templateId });
|
|
5273
|
+
}, Ce = (g) => {
|
|
5274
|
+
var O;
|
|
5275
|
+
if (g.moved) {
|
|
5276
|
+
const T = w1(g, ((O = a.value) == null ? void 0 : O.phases) ?? []);
|
|
5277
5277
|
e("updateItem", {
|
|
5278
5278
|
itemType: ie.PHASES,
|
|
5279
|
-
id:
|
|
5279
|
+
id: g.moved.element.id,
|
|
5280
5280
|
templateId: t.templateId,
|
|
5281
5281
|
data: {
|
|
5282
|
-
rank:
|
|
5282
|
+
rank: T
|
|
5283
5283
|
}
|
|
5284
5284
|
});
|
|
5285
5285
|
}
|
|
5286
|
-
}, D = (
|
|
5286
|
+
}, D = (g) => {
|
|
5287
5287
|
!i.value || !l.value || !d.value || e("addItem", {
|
|
5288
5288
|
type: ie.SUBTASKS,
|
|
5289
|
-
activityId:
|
|
5289
|
+
activityId: g.activityId,
|
|
5290
5290
|
milestoneId: l.value.id,
|
|
5291
5291
|
phaseId: i.value.id,
|
|
5292
5292
|
templateId: t.templateId,
|
|
5293
|
-
item:
|
|
5293
|
+
item: g
|
|
5294
5294
|
});
|
|
5295
|
-
}, X = (
|
|
5296
|
-
var
|
|
5295
|
+
}, X = (g) => {
|
|
5296
|
+
var O, T, G;
|
|
5297
5297
|
!i.value || !l.value || !d.value || e("updateItem", {
|
|
5298
5298
|
itemType: ie.SUBTASKS,
|
|
5299
|
-
phaseId: (
|
|
5300
|
-
milestoneId: (
|
|
5299
|
+
phaseId: (O = i.value) == null ? void 0 : O.id,
|
|
5300
|
+
milestoneId: (T = l.value) == null ? void 0 : T.id,
|
|
5301
5301
|
activityId: (G = d.value) == null ? void 0 : G.id,
|
|
5302
5302
|
templateId: t.templateId,
|
|
5303
|
-
data:
|
|
5303
|
+
data: g
|
|
5304
5304
|
});
|
|
5305
|
-
},
|
|
5305
|
+
}, A = (g) => {
|
|
5306
5306
|
!i.value || !l.value || !d.value || e("removeItem", {
|
|
5307
5307
|
type: ie.SUBTASKS,
|
|
5308
5308
|
activityId: d.value.id,
|
|
5309
5309
|
milestoneId: l.value.id,
|
|
5310
5310
|
phaseId: i.value.id,
|
|
5311
5311
|
templateId: t.templateId,
|
|
5312
|
-
data:
|
|
5312
|
+
data: g
|
|
5313
5313
|
});
|
|
5314
|
-
}, W = (
|
|
5315
|
-
e("addFiles",
|
|
5316
|
-
}, _e = (
|
|
5317
|
-
e("removeFile",
|
|
5314
|
+
}, W = (g) => {
|
|
5315
|
+
e("addFiles", g);
|
|
5316
|
+
}, _e = (g) => {
|
|
5317
|
+
e("removeFile", g);
|
|
5318
5318
|
};
|
|
5319
|
-
return (
|
|
5320
|
-
var
|
|
5319
|
+
return (g, O) => {
|
|
5320
|
+
var T, G, ee, me, $e, ne;
|
|
5321
5321
|
return a.value ? (u(), C("div", k7, [
|
|
5322
|
-
|
|
5322
|
+
y(M1, {
|
|
5323
5323
|
"can-go-back": !0,
|
|
5324
|
-
onGoBack:
|
|
5324
|
+
onGoBack: O[1] || (O[1] = (q) => g.$router.push({ name: E(t1).TEMPLATES_LIST }))
|
|
5325
5325
|
}, {
|
|
5326
5326
|
primary: R(() => [
|
|
5327
|
-
|
|
5327
|
+
y(ce, {
|
|
5328
5328
|
title: _.value,
|
|
5329
5329
|
level: 2,
|
|
5330
5330
|
"is-editable": !0,
|
|
5331
|
-
"onUpdate:title":
|
|
5332
|
-
|
|
5331
|
+
"onUpdate:title": O[0] || (O[0] = (q) => {
|
|
5332
|
+
w(q);
|
|
5333
5333
|
})
|
|
5334
5334
|
}, null, 8, ["title"])
|
|
5335
5335
|
]),
|
|
5336
5336
|
secondary: R(() => [
|
|
5337
|
-
|
|
5338
|
-
label:
|
|
5337
|
+
y(ue, {
|
|
5338
|
+
label: g.$t("template.rules.edit"),
|
|
5339
5339
|
color: "primary",
|
|
5340
5340
|
"icon-name": "Settings",
|
|
5341
5341
|
"icon-position": "start",
|
|
@@ -5347,7 +5347,7 @@ const k7 = {
|
|
|
5347
5347
|
o("div", I7, [
|
|
5348
5348
|
o("ol", S7, [
|
|
5349
5349
|
o("li", V7, [
|
|
5350
|
-
|
|
5350
|
+
y(E(n1), {
|
|
5351
5351
|
"model-value": a.value.phases,
|
|
5352
5352
|
class: "ao-templates__list",
|
|
5353
5353
|
"item-key": "id",
|
|
@@ -5355,26 +5355,26 @@ const k7 = {
|
|
|
5355
5355
|
onChange: Ce
|
|
5356
5356
|
}, {
|
|
5357
5357
|
header: R(() => [
|
|
5358
|
-
|
|
5359
|
-
title:
|
|
5358
|
+
y(ce, {
|
|
5359
|
+
title: g.$t("template.phases.title"),
|
|
5360
5360
|
level: 3,
|
|
5361
5361
|
class: "ao-list__title"
|
|
5362
5362
|
}, null, 8, ["title"])
|
|
5363
5363
|
]),
|
|
5364
5364
|
item: R(({ element: q }) => {
|
|
5365
|
-
var
|
|
5365
|
+
var k;
|
|
5366
5366
|
return [
|
|
5367
|
-
|
|
5367
|
+
y(S3, {
|
|
5368
5368
|
id: q.id,
|
|
5369
5369
|
name: q.name,
|
|
5370
5370
|
milestones: q.milestones,
|
|
5371
|
-
"is-active": ((
|
|
5371
|
+
"is-active": ((k = i.value) == null ? void 0 : k.id) === q.id,
|
|
5372
5372
|
"is-draggable": !0,
|
|
5373
|
-
onClick: (
|
|
5374
|
-
params: { templateId:
|
|
5373
|
+
onClick: (P) => g.$router.push({
|
|
5374
|
+
params: { templateId: g.templateId, phaseId: q.id }
|
|
5375
5375
|
}),
|
|
5376
|
-
"onUpdate:title": (
|
|
5377
|
-
|
|
5376
|
+
"onUpdate:title": (P) => {
|
|
5377
|
+
L(q.id, P);
|
|
5378
5378
|
},
|
|
5379
5379
|
onRemove: () => I(q.id)
|
|
5380
5380
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
@@ -5382,9 +5382,9 @@ const k7 = {
|
|
|
5382
5382
|
}),
|
|
5383
5383
|
footer: R(() => [
|
|
5384
5384
|
o("div", L7, [
|
|
5385
|
-
|
|
5385
|
+
y(Be, {
|
|
5386
5386
|
"icon-name": "AddBoxOutlineRounded",
|
|
5387
|
-
label:
|
|
5387
|
+
label: g.$t("template.phases.add"),
|
|
5388
5388
|
onClick: m
|
|
5389
5389
|
}, null, 8, ["label"])
|
|
5390
5390
|
])
|
|
@@ -5393,33 +5393,33 @@ const k7 = {
|
|
|
5393
5393
|
}, 8, ["model-value"])
|
|
5394
5394
|
]),
|
|
5395
5395
|
o("li", T7, [
|
|
5396
|
-
i.value ? (u(),
|
|
5396
|
+
i.value ? (u(), j(T3, {
|
|
5397
5397
|
key: 0,
|
|
5398
|
-
"template-id":
|
|
5398
|
+
"template-id": g.templateId,
|
|
5399
5399
|
phase: i.value,
|
|
5400
|
-
"milestone-id": (
|
|
5401
|
-
onAddMilestone:
|
|
5402
|
-
onUpdateMilestone:
|
|
5403
|
-
onUpdatePhase:
|
|
5404
|
-
onRemoveMilestone:
|
|
5405
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) :
|
|
5400
|
+
"milestone-id": (T = l.value) == null ? void 0 : T.id,
|
|
5401
|
+
onAddMilestone: $,
|
|
5402
|
+
onUpdateMilestone: B,
|
|
5403
|
+
onUpdatePhase: Z,
|
|
5404
|
+
onRemoveMilestone: b
|
|
5405
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : M("", !0)
|
|
5406
5406
|
]),
|
|
5407
5407
|
o("li", E7, [
|
|
5408
|
-
i.value && l.value ? (u(),
|
|
5408
|
+
i.value && l.value ? (u(), j(O3, {
|
|
5409
5409
|
key: 0,
|
|
5410
|
-
"template-id":
|
|
5410
|
+
"template-id": g.templateId,
|
|
5411
5411
|
"phase-id": (G = i.value) == null ? void 0 : G.id,
|
|
5412
5412
|
milestone: l.value,
|
|
5413
5413
|
"activity-id": (ee = d.value) == null ? void 0 : ee.id,
|
|
5414
5414
|
onAddActivity: x,
|
|
5415
|
-
onUpdateActivity:
|
|
5416
|
-
onRemoveActivity:
|
|
5417
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) :
|
|
5415
|
+
onUpdateActivity: h,
|
|
5416
|
+
onRemoveActivity: le
|
|
5417
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : M("", !0)
|
|
5418
5418
|
])
|
|
5419
5419
|
])
|
|
5420
5420
|
]),
|
|
5421
|
-
(u(),
|
|
5422
|
-
d.value ? (u(),
|
|
5421
|
+
(u(), j(C1, { to: "body" }, [
|
|
5422
|
+
d.value ? (u(), j(R1, {
|
|
5423
5423
|
key: 0,
|
|
5424
5424
|
activity: d.value,
|
|
5425
5425
|
"activity-types": p.value,
|
|
@@ -5428,19 +5428,19 @@ const k7 = {
|
|
|
5428
5428
|
"template-activities": c.value,
|
|
5429
5429
|
"template-milestones": r.value,
|
|
5430
5430
|
"is-template": !0,
|
|
5431
|
-
"onUpdate:activity":
|
|
5432
|
-
d.value &&
|
|
5431
|
+
"onUpdate:activity": O[2] || (O[2] = (q) => {
|
|
5432
|
+
d.value && h(q);
|
|
5433
5433
|
}),
|
|
5434
|
-
onClose:
|
|
5434
|
+
onClose: g.$router.back,
|
|
5435
5435
|
onAddSubtask: D,
|
|
5436
5436
|
onUpdateSubtask: X,
|
|
5437
|
-
onDeleteSubtask:
|
|
5437
|
+
onDeleteSubtask: A,
|
|
5438
5438
|
onAddFiles: W,
|
|
5439
5439
|
onRemoveFile: _e
|
|
5440
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) :
|
|
5440
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : M("", !0)
|
|
5441
5441
|
])),
|
|
5442
|
-
(u(),
|
|
5443
|
-
H.value ? (u(),
|
|
5442
|
+
(u(), j(C1, { to: "body" }, [
|
|
5443
|
+
H.value ? (u(), j(A7, {
|
|
5444
5444
|
key: 0,
|
|
5445
5445
|
"template-id": a.value.id,
|
|
5446
5446
|
rules: a.value.rules || [],
|
|
@@ -5450,9 +5450,9 @@ const k7 = {
|
|
|
5450
5450
|
onClose: U,
|
|
5451
5451
|
onAddRule: te,
|
|
5452
5452
|
onRemoveRule: re
|
|
5453
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) :
|
|
5453
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : M("", !0)
|
|
5454
5454
|
]))
|
|
5455
|
-
])) :
|
|
5455
|
+
])) : M("", !0);
|
|
5456
5456
|
};
|
|
5457
5457
|
}
|
|
5458
5458
|
});
|
|
@@ -5469,19 +5469,19 @@ const O7 = {
|
|
|
5469
5469
|
tagName: { default: "div" }
|
|
5470
5470
|
},
|
|
5471
5471
|
setup(s) {
|
|
5472
|
-
return (e, t) => (u(),
|
|
5472
|
+
return (e, t) => (u(), j(Ke(e.tagName), {
|
|
5473
5473
|
class: F(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
5474
5474
|
}, {
|
|
5475
5475
|
default: R(() => [
|
|
5476
5476
|
e.$slots.header ? (u(), C("header", O7, [
|
|
5477
5477
|
Y(e.$slots, "header")
|
|
5478
|
-
])) :
|
|
5478
|
+
])) : M("", !0),
|
|
5479
5479
|
o("div", B7, [
|
|
5480
5480
|
Y(e.$slots, "default")
|
|
5481
5481
|
]),
|
|
5482
5482
|
e.$slots.footer ? (u(), C("footer", D7, [
|
|
5483
5483
|
Y(e.$slots, "footer")
|
|
5484
|
-
])) :
|
|
5484
|
+
])) : M("", !0)
|
|
5485
5485
|
]),
|
|
5486
5486
|
_: 3
|
|
5487
5487
|
}, 8, ["class"]));
|
|
@@ -5494,12 +5494,12 @@ const q1 = /* @__PURE__ */ K({
|
|
|
5494
5494
|
status: {}
|
|
5495
5495
|
},
|
|
5496
5496
|
setup(s) {
|
|
5497
|
-
const e = s, t =
|
|
5497
|
+
const e = s, t = f(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
5498
5498
|
return (n, a) => (u(), C("div", {
|
|
5499
5499
|
class: F(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
|
|
5500
5500
|
role: "meter"
|
|
5501
5501
|
}, [
|
|
5502
|
-
(u(!0), C(
|
|
5502
|
+
(u(!0), C(ae, null, pe(t.value, (i) => (u(), C("div", {
|
|
5503
5503
|
key: i,
|
|
5504
5504
|
class: F(["ao-progress__progress"]),
|
|
5505
5505
|
style: Kt({ width: `${i * 100}%` })
|
|
@@ -5507,7 +5507,7 @@ const q1 = /* @__PURE__ */ K({
|
|
|
5507
5507
|
], 2));
|
|
5508
5508
|
}
|
|
5509
5509
|
});
|
|
5510
|
-
const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-project-phase__footer" },
|
|
5510
|
+
const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-project-phase__footer" }, j7 = { class: "ao-card-project-phase__footer-row" }, N7 = { class: "ao-card-project-phase__subitem" }, R7 = { class: "ao-card-project-phase__subitem" }, U7 = {
|
|
5511
5511
|
key: 1,
|
|
5512
5512
|
class: "ao-card-project-phase__secondary"
|
|
5513
5513
|
}, q7 = /* @__PURE__ */ K({
|
|
@@ -5519,50 +5519,50 @@ const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-pr
|
|
|
5519
5519
|
milestones: {}
|
|
5520
5520
|
},
|
|
5521
5521
|
setup(s) {
|
|
5522
|
-
const e = s, t =
|
|
5522
|
+
const e = s, t = f(() => {
|
|
5523
5523
|
var i;
|
|
5524
5524
|
return (i = e.milestones) == null ? void 0 : i.length;
|
|
5525
|
-
}), n =
|
|
5525
|
+
}), n = f(() => {
|
|
5526
5526
|
var i;
|
|
5527
5527
|
return (i = e.milestones) == null ? void 0 : i.filter((l) => l.status === h7.done).length;
|
|
5528
|
-
}), a =
|
|
5529
|
-
return (i, l) => (u(),
|
|
5528
|
+
}), a = f(() => (n.value || 0) / (t.value || 1));
|
|
5529
|
+
return (i, l) => (u(), j(U1, { class: "ao-card-project-phase" }, {
|
|
5530
5530
|
header: R(() => [
|
|
5531
5531
|
o("div", Z7, [
|
|
5532
|
-
i.projectName ? (u(),
|
|
5532
|
+
i.projectName ? (u(), j(f1, {
|
|
5533
5533
|
key: 0,
|
|
5534
5534
|
label: i.projectName,
|
|
5535
5535
|
class: "ao-card-project-phase__project",
|
|
5536
5536
|
variant: "solid",
|
|
5537
5537
|
color: "primary"
|
|
5538
|
-
}, null, 8, ["label"])) :
|
|
5538
|
+
}, null, 8, ["label"])) : M("", !0)
|
|
5539
5539
|
])
|
|
5540
5540
|
]),
|
|
5541
5541
|
default: R(() => [
|
|
5542
|
-
|
|
5542
|
+
y(ce, {
|
|
5543
5543
|
title: i.name || i.id,
|
|
5544
5544
|
level: 4
|
|
5545
5545
|
}, null, 8, ["title"])
|
|
5546
5546
|
]),
|
|
5547
5547
|
footer: R(() => [
|
|
5548
5548
|
o("div", P7, [
|
|
5549
|
-
o("div",
|
|
5550
|
-
t.value ? (u(), C(
|
|
5551
|
-
o("div",
|
|
5552
|
-
|
|
5549
|
+
o("div", j7, [
|
|
5550
|
+
t.value ? (u(), C(ae, { key: 0 }, [
|
|
5551
|
+
o("div", N7, [
|
|
5552
|
+
y(se, {
|
|
5553
5553
|
name: "MountainFlagOutlineRounded",
|
|
5554
5554
|
size: "sm"
|
|
5555
5555
|
}),
|
|
5556
|
-
o("span", R7,
|
|
5556
|
+
o("span", R7, N(n.value) + " / " + N(t.value), 1)
|
|
5557
5557
|
]),
|
|
5558
|
-
|
|
5558
|
+
y(q1, {
|
|
5559
5559
|
percentages: a.value,
|
|
5560
5560
|
class: "ao-card-project-phase__progress"
|
|
5561
5561
|
}, null, 8, ["percentages"])
|
|
5562
|
-
], 64)) :
|
|
5562
|
+
], 64)) : M("", !0),
|
|
5563
5563
|
i.$slots.secondary ? (u(), C("div", U7, [
|
|
5564
5564
|
Y(i.$slots, "secondary")
|
|
5565
|
-
])) :
|
|
5565
|
+
])) : M("", !0)
|
|
5566
5566
|
])
|
|
5567
5567
|
])
|
|
5568
5568
|
]),
|
|
@@ -5582,23 +5582,23 @@ const z7 = { class: "ao-card-project-phase__footer" }, F7 = { class: "ao-card-pr
|
|
|
5582
5582
|
doneStatus: {}
|
|
5583
5583
|
},
|
|
5584
5584
|
setup(s) {
|
|
5585
|
-
const e = s, t =
|
|
5585
|
+
const e = s, t = f(() => {
|
|
5586
5586
|
var i;
|
|
5587
5587
|
return (i = e.activities) == null ? void 0 : i.length;
|
|
5588
|
-
}), n =
|
|
5588
|
+
}), n = f(() => {
|
|
5589
5589
|
var i;
|
|
5590
5590
|
return (i = e.activities) == null ? void 0 : i.filter((l) => {
|
|
5591
5591
|
var r, c;
|
|
5592
5592
|
return ((r = l.status) == null ? void 0 : r.id) === ((c = e.doneStatus) == null ? void 0 : c.id);
|
|
5593
5593
|
}).length;
|
|
5594
|
-
}), a =
|
|
5595
|
-
return (i, l) => (u(),
|
|
5594
|
+
}), a = f(() => (n.value || 0) / (t.value || 1));
|
|
5595
|
+
return (i, l) => (u(), j(U1, {
|
|
5596
5596
|
class: "ao-card-project-milestone",
|
|
5597
5597
|
"is-clickable": !0,
|
|
5598
5598
|
"tag-name": "li"
|
|
5599
5599
|
}, {
|
|
5600
5600
|
default: R(() => [
|
|
5601
|
-
|
|
5601
|
+
y(ce, {
|
|
5602
5602
|
title: i.name || i.id,
|
|
5603
5603
|
level: 5
|
|
5604
5604
|
}, null, 8, ["title"])
|
|
@@ -5606,22 +5606,22 @@ const z7 = { class: "ao-card-project-phase__footer" }, F7 = { class: "ao-card-pr
|
|
|
5606
5606
|
footer: R(() => [
|
|
5607
5607
|
o("div", z7, [
|
|
5608
5608
|
o("div", F7, [
|
|
5609
|
-
t.value ? (u(), C(
|
|
5609
|
+
t.value ? (u(), C(ae, { key: 0 }, [
|
|
5610
5610
|
o("div", K7, [
|
|
5611
|
-
|
|
5611
|
+
y(se, {
|
|
5612
5612
|
name: "SelectCheckBox",
|
|
5613
5613
|
size: "sm"
|
|
5614
5614
|
}),
|
|
5615
|
-
o("span", G7,
|
|
5615
|
+
o("span", G7, N(n.value) + " / " + N(t.value), 1)
|
|
5616
5616
|
]),
|
|
5617
|
-
|
|
5617
|
+
y(q1, {
|
|
5618
5618
|
percentages: a.value,
|
|
5619
5619
|
class: "ao-card-project-phase__progress"
|
|
5620
5620
|
}, null, 8, ["percentages"])
|
|
5621
|
-
], 64)) :
|
|
5621
|
+
], 64)) : M("", !0),
|
|
5622
5622
|
i.$slots.secondary ? (u(), C("div", Y7, [
|
|
5623
5623
|
Y(i.$slots, "secondary")
|
|
5624
|
-
])) :
|
|
5624
|
+
])) : M("", !0)
|
|
5625
5625
|
])
|
|
5626
5626
|
])
|
|
5627
5627
|
]),
|
|
@@ -5637,13 +5637,13 @@ const X7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__col-p
|
|
|
5637
5637
|
},
|
|
5638
5638
|
emits: ["addMilestone"],
|
|
5639
5639
|
setup(s, { emit: e }) {
|
|
5640
|
-
const t = s, { t: n } = De(), a =
|
|
5640
|
+
const t = s, { t: n } = De(), a = f(() => t.phase.milestones), i = (l) => {
|
|
5641
5641
|
const { name: r, rank: c } = ze(a.value ?? [], "milestone", n);
|
|
5642
5642
|
e("addMilestone", { name: r, rank: c, phaseId: l });
|
|
5643
5643
|
};
|
|
5644
5644
|
return (l, r) => (u(), C("li", X7, [
|
|
5645
5645
|
o("div", J7, [
|
|
5646
|
-
|
|
5646
|
+
y(q7, {
|
|
5647
5647
|
id: l.phase.id,
|
|
5648
5648
|
milestones: a.value,
|
|
5649
5649
|
name: l.phase.name,
|
|
@@ -5653,7 +5653,7 @@ const X7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__col-p
|
|
|
5653
5653
|
o("div", Q7, [
|
|
5654
5654
|
o("div", x7, [
|
|
5655
5655
|
o("ul", e0, [
|
|
5656
|
-
(u(!0), C(
|
|
5656
|
+
(u(!0), C(ae, null, pe(a.value, (c) => (u(), j(W7, {
|
|
5657
5657
|
id: c.id,
|
|
5658
5658
|
key: c.id,
|
|
5659
5659
|
name: c.name,
|
|
@@ -5666,7 +5666,7 @@ const X7 = { class: "ao-project-phase" }, J7 = { class: "ao-project-phase__col-p
|
|
|
5666
5666
|
}, null, 8, ["id", "name", "activities", "onClick"]))), 128))
|
|
5667
5667
|
]),
|
|
5668
5668
|
o("div", t0, [
|
|
5669
|
-
|
|
5669
|
+
y(Be, {
|
|
5670
5670
|
label: l.$t("project.milestone.add"),
|
|
5671
5671
|
class: "ao-project-phase__milestone-add",
|
|
5672
5672
|
"icon-name": "Add",
|
|
@@ -5692,6 +5692,7 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5692
5692
|
__name: "AoProjectOverviewProject",
|
|
5693
5693
|
props: {
|
|
5694
5694
|
project: {},
|
|
5695
|
+
phases: {},
|
|
5695
5696
|
users: {},
|
|
5696
5697
|
userId: {}
|
|
5697
5698
|
},
|
|
@@ -5701,40 +5702,40 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5701
5702
|
Gt(() => {
|
|
5702
5703
|
a({ users: t.users, userId: t.userId });
|
|
5703
5704
|
});
|
|
5704
|
-
const i =
|
|
5705
|
-
const { name:
|
|
5706
|
-
e("addPhase", { name:
|
|
5707
|
-
},
|
|
5708
|
-
e("addMilestone",
|
|
5709
|
-
},
|
|
5710
|
-
e("addActivity",
|
|
5711
|
-
},
|
|
5712
|
-
e("update:activity",
|
|
5713
|
-
},
|
|
5714
|
-
e("addSubtask",
|
|
5715
|
-
},
|
|
5716
|
-
() =>
|
|
5717
|
-
),
|
|
5718
|
-
e("addFiles",
|
|
5719
|
-
},
|
|
5720
|
-
e("removeFile",
|
|
5721
|
-
},
|
|
5722
|
-
e("addComment",
|
|
5723
|
-
},
|
|
5724
|
-
e("updateComment",
|
|
5725
|
-
},
|
|
5726
|
-
e("removeComment",
|
|
5705
|
+
const i = f(() => t.phases.flatMap(($) => $.milestones)), l = () => {
|
|
5706
|
+
const { name: $, rank: b } = ze(t.phases, "phase", n);
|
|
5707
|
+
e("addPhase", { name: $, rank: b, projectId: t.project.id });
|
|
5708
|
+
}, r = ($) => {
|
|
5709
|
+
e("addMilestone", $);
|
|
5710
|
+
}, c = ($) => {
|
|
5711
|
+
e("addActivity", $);
|
|
5712
|
+
}, d = ($) => {
|
|
5713
|
+
e("update:activity", $);
|
|
5714
|
+
}, p = ($) => {
|
|
5715
|
+
e("addSubtask", $);
|
|
5716
|
+
}, _ = f(
|
|
5717
|
+
() => i.value.flatMap(($) => $.activities)
|
|
5718
|
+
), m = ($) => {
|
|
5719
|
+
e("addFiles", $);
|
|
5720
|
+
}, w = ($) => {
|
|
5721
|
+
e("removeFile", $);
|
|
5722
|
+
}, I = ($) => {
|
|
5723
|
+
e("addComment", $);
|
|
5724
|
+
}, L = ($) => {
|
|
5725
|
+
e("updateComment", $);
|
|
5726
|
+
}, Z = ($) => {
|
|
5727
|
+
e("removeComment", $);
|
|
5727
5728
|
};
|
|
5728
|
-
return (
|
|
5729
|
-
const
|
|
5729
|
+
return ($, b) => {
|
|
5730
|
+
const B = Yt("RouterView");
|
|
5730
5731
|
return u(), C("div", a0, [
|
|
5731
5732
|
o("div", l0, [
|
|
5732
|
-
|
|
5733
|
+
y(M1, null, {
|
|
5733
5734
|
primary: R(() => [
|
|
5734
|
-
|
|
5735
|
-
label:
|
|
5735
|
+
y(ue, {
|
|
5736
|
+
label: $.$t("project.phases.add"),
|
|
5736
5737
|
color: "primary",
|
|
5737
|
-
onClick:
|
|
5738
|
+
onClick: l
|
|
5738
5739
|
}, null, 8, ["label"])
|
|
5739
5740
|
]),
|
|
5740
5741
|
_: 1
|
|
@@ -5743,60 +5744,60 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5743
5744
|
o("header", i0, [
|
|
5744
5745
|
o("div", o0, [
|
|
5745
5746
|
o("div", r0, [
|
|
5746
|
-
|
|
5747
|
+
y(se, {
|
|
5747
5748
|
class: "ao-project__col-title-icon",
|
|
5748
5749
|
name: "WaterfallChartRounded",
|
|
5749
5750
|
size: "md"
|
|
5750
5751
|
}),
|
|
5751
|
-
|
|
5752
|
+
y(ce, {
|
|
5752
5753
|
level: 3,
|
|
5753
|
-
title:
|
|
5754
|
+
title: $.$t("project.phases.title")
|
|
5754
5755
|
}, null, 8, ["title"])
|
|
5755
5756
|
])
|
|
5756
5757
|
]),
|
|
5757
5758
|
o("div", u0, [
|
|
5758
5759
|
o("div", c0, [
|
|
5759
|
-
|
|
5760
|
+
y(se, {
|
|
5760
5761
|
class: "ao-project__col-title-icon",
|
|
5761
5762
|
name: "MountainFlagOutlineRounded",
|
|
5762
5763
|
size: "md"
|
|
5763
5764
|
}),
|
|
5764
|
-
|
|
5765
|
+
y(ce, {
|
|
5765
5766
|
level: 3,
|
|
5766
|
-
title:
|
|
5767
|
+
title: $.$t("project.milestones.title")
|
|
5767
5768
|
}, null, 8, ["title"])
|
|
5768
5769
|
])
|
|
5769
5770
|
])
|
|
5770
5771
|
]),
|
|
5771
5772
|
o("ul", d0, [
|
|
5772
|
-
(u(!0), C(
|
|
5773
|
-
key:
|
|
5774
|
-
phase:
|
|
5775
|
-
"project-name":
|
|
5776
|
-
onAddMilestone:
|
|
5773
|
+
(u(!0), C(ae, null, pe($.phases, (x) => (u(), j(s0, {
|
|
5774
|
+
key: x.id,
|
|
5775
|
+
phase: x,
|
|
5776
|
+
"project-name": $.project.name,
|
|
5777
|
+
onAddMilestone: r
|
|
5777
5778
|
}, null, 8, ["phase", "project-name"]))), 128))
|
|
5778
5779
|
])
|
|
5779
5780
|
])
|
|
5780
5781
|
]),
|
|
5781
|
-
|
|
5782
|
+
y(B, {
|
|
5782
5783
|
class: "ao-project__sidebar",
|
|
5783
|
-
milestones:
|
|
5784
|
-
"project-name":
|
|
5785
|
-
users:
|
|
5786
|
-
onClose:
|
|
5787
|
-
onAddActivity:
|
|
5784
|
+
milestones: i.value,
|
|
5785
|
+
"project-name": $.project.name,
|
|
5786
|
+
users: $.users,
|
|
5787
|
+
onClose: b[0] || (b[0] = (x) => $.$router.push({ name: E(Fe).project })),
|
|
5788
|
+
onAddActivity: c
|
|
5788
5789
|
}, null, 8, ["milestones", "project-name", "users"]),
|
|
5789
|
-
(u(),
|
|
5790
|
-
|
|
5790
|
+
(u(), j(C1, { to: "body" }, [
|
|
5791
|
+
y(B, {
|
|
5791
5792
|
name: "modal",
|
|
5792
|
-
activities:
|
|
5793
|
-
"onUpdate:activity":
|
|
5794
|
-
onAddSubtask:
|
|
5795
|
-
onAddFiles:
|
|
5796
|
-
onRemoveFile:
|
|
5797
|
-
onAddComment:
|
|
5798
|
-
onUpdateComment:
|
|
5799
|
-
onRemoveComment:
|
|
5793
|
+
activities: _.value,
|
|
5794
|
+
"onUpdate:activity": d,
|
|
5795
|
+
onAddSubtask: p,
|
|
5796
|
+
onAddFiles: m,
|
|
5797
|
+
onRemoveFile: w,
|
|
5798
|
+
onAddComment: I,
|
|
5799
|
+
onUpdateComment: L,
|
|
5800
|
+
onRemoveComment: Z
|
|
5800
5801
|
}, null, 8, ["activities"])
|
|
5801
5802
|
]))
|
|
5802
5803
|
]);
|
|
@@ -5850,107 +5851,107 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5850
5851
|
id: t.id,
|
|
5851
5852
|
name: _
|
|
5852
5853
|
});
|
|
5853
|
-
}, a =
|
|
5854
|
+
}, a = f(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), i = f(() => {
|
|
5854
5855
|
var _;
|
|
5855
5856
|
return (_ = t.assignees) == null ? void 0 : _.map((m) => {
|
|
5856
|
-
var
|
|
5857
|
-
return (
|
|
5857
|
+
var w;
|
|
5858
|
+
return (w = t.users) == null ? void 0 : w.find((I) => I.id === m);
|
|
5858
5859
|
});
|
|
5859
5860
|
}), l = (_) => {
|
|
5860
|
-
const { firstName: m, lastName:
|
|
5861
|
-
return m &&
|
|
5861
|
+
const { firstName: m, lastName: w } = _ || {};
|
|
5862
|
+
return m && w ? `${m} ${w}` : "";
|
|
5862
5863
|
}, r = (_) => {
|
|
5863
5864
|
e("removeAssignee", _);
|
|
5864
|
-
}, c =
|
|
5865
|
+
}, c = f(() => {
|
|
5865
5866
|
var _;
|
|
5866
5867
|
return (_ = t.subtasks) == null ? void 0 : _.length;
|
|
5867
|
-
}), d =
|
|
5868
|
+
}), d = f(() => {
|
|
5868
5869
|
var _;
|
|
5869
5870
|
return (_ = t.subtasks) == null ? void 0 : _.filter((m) => m.isDone).length;
|
|
5870
|
-
}), p =
|
|
5871
|
-
return (_, m) => (u(),
|
|
5871
|
+
}), p = f(() => (d.value || 0) / (c.value || 1));
|
|
5872
|
+
return (_, m) => (u(), j(U1, {
|
|
5872
5873
|
class: "ao-card-feed",
|
|
5873
5874
|
"is-clickable": !0
|
|
5874
5875
|
}, {
|
|
5875
5876
|
header: R(() => [
|
|
5876
5877
|
o("div", v0, [
|
|
5877
|
-
_.projectName ? (u(),
|
|
5878
|
+
_.projectName ? (u(), j(f1, {
|
|
5878
5879
|
key: 0,
|
|
5879
5880
|
label: _.projectName,
|
|
5880
5881
|
class: "ao-card-feed__project",
|
|
5881
5882
|
variant: "solid",
|
|
5882
5883
|
color: "primary"
|
|
5883
|
-
}, null, 8, ["label"])) :
|
|
5884
|
-
_.isImportant ? (u(),
|
|
5884
|
+
}, null, 8, ["label"])) : M("", !0),
|
|
5885
|
+
_.isImportant ? (u(), j(se, {
|
|
5885
5886
|
key: 1,
|
|
5886
5887
|
name: "FlagRounded",
|
|
5887
5888
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
5888
5889
|
size: "sm"
|
|
5889
|
-
})) :
|
|
5890
|
+
})) : M("", !0),
|
|
5890
5891
|
_.$slots.secondary ? (u(), C("div", C0, [
|
|
5891
5892
|
Y(_.$slots, "secondary")
|
|
5892
|
-
])) :
|
|
5893
|
+
])) : M("", !0)
|
|
5893
5894
|
])
|
|
5894
5895
|
]),
|
|
5895
5896
|
default: R(() => [
|
|
5896
5897
|
o("div", _0, [
|
|
5897
|
-
a.value ? (u(), C("span", m0,
|
|
5898
|
-
|
|
5898
|
+
a.value ? (u(), C("span", m0, N(a.value), 1)) : M("", !0),
|
|
5899
|
+
y(ce, {
|
|
5899
5900
|
title: _.name,
|
|
5900
5901
|
level: 5,
|
|
5901
5902
|
"is-editable": !0,
|
|
5902
5903
|
"onUpdate:title": n
|
|
5903
5904
|
}, null, 8, ["title"]),
|
|
5904
|
-
_.endDate ? (u(), C("span", h0,
|
|
5905
|
+
_.endDate ? (u(), C("span", h0, N(_.endDate), 1)) : M("", !0)
|
|
5905
5906
|
])
|
|
5906
5907
|
]),
|
|
5907
5908
|
footer: R(() => [
|
|
5908
5909
|
o("div", f0, [
|
|
5909
5910
|
o("div", g0, [
|
|
5910
5911
|
o("ul", y0, [
|
|
5911
|
-
(u(!0), C(
|
|
5912
|
-
key:
|
|
5912
|
+
(u(!0), C(ae, null, pe(i.value, (w) => (u(), C(ae, {
|
|
5913
|
+
key: w.id
|
|
5913
5914
|
}, [
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
"user-name": l(
|
|
5915
|
+
w ? (u(), C("li", b0, [
|
|
5916
|
+
y(Ye, {
|
|
5917
|
+
"user-name": l(w),
|
|
5917
5918
|
"is-closable": !0,
|
|
5918
|
-
onClose: () => r(
|
|
5919
|
+
onClose: () => r(w.id)
|
|
5919
5920
|
}, null, 8, ["user-name", "onClose"])
|
|
5920
|
-
])) :
|
|
5921
|
+
])) : M("", !0)
|
|
5921
5922
|
], 64))), 128))
|
|
5922
5923
|
]),
|
|
5923
5924
|
_.comments || _.attachments ? (u(), C("ul", $0, [
|
|
5924
5925
|
_.comments ? (u(), C("li", w0, [
|
|
5925
|
-
|
|
5926
|
+
y(se, {
|
|
5926
5927
|
name: "ChatOutline",
|
|
5927
5928
|
size: "sm"
|
|
5928
5929
|
}),
|
|
5929
|
-
o("span", M0,
|
|
5930
|
-
])) :
|
|
5930
|
+
o("span", M0, N(_.comments), 1)
|
|
5931
|
+
])) : M("", !0),
|
|
5931
5932
|
_.attachments ? (u(), C("li", A0, [
|
|
5932
|
-
|
|
5933
|
+
y(se, {
|
|
5933
5934
|
name: "AttachFileRounded",
|
|
5934
5935
|
size: "sm"
|
|
5935
5936
|
}),
|
|
5936
|
-
o("span", k0,
|
|
5937
|
-
])) :
|
|
5938
|
-
])) :
|
|
5937
|
+
o("span", k0, N(_.attachments), 1)
|
|
5938
|
+
])) : M("", !0)
|
|
5939
|
+
])) : M("", !0)
|
|
5939
5940
|
]),
|
|
5940
5941
|
o("div", I0, [
|
|
5941
5942
|
_.subtasks ? (u(), C("div", S0, [
|
|
5942
5943
|
o("div", V0, [
|
|
5943
|
-
|
|
5944
|
+
y(se, {
|
|
5944
5945
|
name: "SelectCheckBox",
|
|
5945
5946
|
size: "sm"
|
|
5946
5947
|
}),
|
|
5947
|
-
o("span", L0,
|
|
5948
|
+
o("span", L0, N(d.value) + " / " + N(c.value), 1)
|
|
5948
5949
|
]),
|
|
5949
|
-
|
|
5950
|
+
y(q1, {
|
|
5950
5951
|
percentages: p.value,
|
|
5951
5952
|
class: "ao-card-feed__progress"
|
|
5952
5953
|
}, null, 8, ["percentages"])
|
|
5953
|
-
])) :
|
|
5954
|
+
])) : M("", !0)
|
|
5954
5955
|
])
|
|
5955
5956
|
])
|
|
5956
5957
|
]),
|
|
@@ -5970,10 +5971,10 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
5970
5971
|
},
|
|
5971
5972
|
emits: ["close", "addActivity"],
|
|
5972
5973
|
setup(s, { emit: e }) {
|
|
5973
|
-
const t = s, { t: n } = De(), a =
|
|
5974
|
+
const t = s, { t: n } = De(), a = f(() => {
|
|
5974
5975
|
var c;
|
|
5975
5976
|
return (c = t.milestones) == null ? void 0 : c.find((d) => d.id === t.milestoneId);
|
|
5976
|
-
}), i =
|
|
5977
|
+
}), i = f(() => {
|
|
5977
5978
|
var c;
|
|
5978
5979
|
return (c = a.value) == null ? void 0 : c.activities;
|
|
5979
5980
|
}), l = (c) => {
|
|
@@ -5991,13 +5992,13 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
5991
5992
|
return u(), C("div", T0, [
|
|
5992
5993
|
o("header", E0, [
|
|
5993
5994
|
o("div", H0, [
|
|
5994
|
-
o("span", null,
|
|
5995
|
-
|
|
5995
|
+
o("span", null, N(c.$t("project.milestone.title")), 1),
|
|
5996
|
+
y(ce, {
|
|
5996
5997
|
title: ((p = a.value) == null ? void 0 : p.name) || c.milestoneId,
|
|
5997
5998
|
level: 5
|
|
5998
5999
|
}, null, 8, ["title"])
|
|
5999
6000
|
]),
|
|
6000
|
-
|
|
6001
|
+
y(ue, {
|
|
6001
6002
|
"icon-name": "CloseRounded",
|
|
6002
6003
|
variant: "ghost",
|
|
6003
6004
|
onClick: l
|
|
@@ -6005,9 +6006,9 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6005
6006
|
]),
|
|
6006
6007
|
o("div", O0, [
|
|
6007
6008
|
o("ul", B0, [
|
|
6008
|
-
(u(!0), C(
|
|
6009
|
-
var m,
|
|
6010
|
-
return u(),
|
|
6009
|
+
(u(!0), C(ae, null, pe(i.value, (_) => {
|
|
6010
|
+
var m, w, I;
|
|
6011
|
+
return u(), j(mt, {
|
|
6011
6012
|
key: _.id,
|
|
6012
6013
|
name: _.name || _.id,
|
|
6013
6014
|
"project-name": c.projectName,
|
|
@@ -6017,10 +6018,10 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6017
6018
|
"is-important": _.isImportant,
|
|
6018
6019
|
users: c.users,
|
|
6019
6020
|
assignees: _.assignees,
|
|
6020
|
-
comments: (
|
|
6021
|
+
comments: (w = _.comments) == null ? void 0 : w.length,
|
|
6021
6022
|
attachments: (I = _.attachments) == null ? void 0 : I.length,
|
|
6022
6023
|
subtasks: _.subtasks,
|
|
6023
|
-
onClick: (
|
|
6024
|
+
onClick: (L) => c.$router.push({
|
|
6024
6025
|
name: E(Fe).activity,
|
|
6025
6026
|
params: { milestoneId: c.milestoneId, activityId: _.id }
|
|
6026
6027
|
})
|
|
@@ -6028,7 +6029,7 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6028
6029
|
}), 128))
|
|
6029
6030
|
]),
|
|
6030
6031
|
o("div", D0, [
|
|
6031
|
-
|
|
6032
|
+
y(Be, {
|
|
6032
6033
|
"icon-name": "Add",
|
|
6033
6034
|
label: c.$t("project.activity.add"),
|
|
6034
6035
|
onClick: r
|
|
@@ -6039,7 +6040,7 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6039
6040
|
};
|
|
6040
6041
|
}
|
|
6041
6042
|
});
|
|
6042
|
-
const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" },
|
|
6043
|
+
const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, j0 = ["contenteditable"], N0 = { class: "ao-comment__created-at" }, R0 = {
|
|
6043
6044
|
key: 1,
|
|
6044
6045
|
class: "ao-comment__footer"
|
|
6045
6046
|
}, U0 = /* @__PURE__ */ K({
|
|
@@ -6053,7 +6054,7 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, N0 = ["c
|
|
|
6053
6054
|
},
|
|
6054
6055
|
emits: ["edit", "remove"],
|
|
6055
6056
|
setup(s, { emit: e }) {
|
|
6056
|
-
const t = s, n =
|
|
6057
|
+
const t = s, n = f(() => {
|
|
6057
6058
|
const m = t.user;
|
|
6058
6059
|
return m ? `${m == null ? void 0 : m.firstName} ${m == null ? void 0 : m.lastName}` : null;
|
|
6059
6060
|
}), a = Q(null), { isEditing: i, toggleIsEditing: l, onUpdate: r, onDiscard: c } = ot(a), d = c(), p = r((m) => {
|
|
@@ -6061,46 +6062,46 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, N0 = ["c
|
|
|
6061
6062
|
}), _ = () => {
|
|
6062
6063
|
e("remove");
|
|
6063
6064
|
};
|
|
6064
|
-
return (m,
|
|
6065
|
-
n.value ? (u(),
|
|
6065
|
+
return (m, w) => (u(), C("li", Z0, [
|
|
6066
|
+
n.value ? (u(), j(Ye, {
|
|
6066
6067
|
key: 0,
|
|
6067
6068
|
"user-name": n.value,
|
|
6068
6069
|
class: "ao-comment__avatar"
|
|
6069
|
-
}, null, 8, ["user-name"])) :
|
|
6070
|
+
}, null, 8, ["user-name"])) : M("", !0),
|
|
6070
6071
|
o("div", P0, [
|
|
6071
6072
|
o("p", {
|
|
6072
6073
|
ref_key: "commentContent",
|
|
6073
6074
|
ref: a,
|
|
6074
6075
|
class: "ao-comment__content",
|
|
6075
6076
|
contenteditable: E(i)
|
|
6076
|
-
},
|
|
6077
|
-
o("span",
|
|
6077
|
+
}, N(m.content), 9, j0),
|
|
6078
|
+
o("span", N0, N(m.editedAt || m.createdAt), 1)
|
|
6078
6079
|
]),
|
|
6079
6080
|
m.isEditable ? (u(), C("div", R0, [
|
|
6080
|
-
E(i) ? (u(), C(
|
|
6081
|
-
|
|
6081
|
+
E(i) ? (u(), C(ae, { key: 0 }, [
|
|
6082
|
+
y(ue, {
|
|
6082
6083
|
"icon-name": "CloseRounded",
|
|
6083
6084
|
size: "sm",
|
|
6084
6085
|
variant: "ghost",
|
|
6085
6086
|
color: "neutral",
|
|
6086
6087
|
onClick: E(d)
|
|
6087
6088
|
}, null, 8, ["onClick"]),
|
|
6088
|
-
|
|
6089
|
+
y(ue, {
|
|
6089
6090
|
"icon-name": "CheckSmallRounded",
|
|
6090
6091
|
size: "sm",
|
|
6091
6092
|
variant: "solid",
|
|
6092
6093
|
color: "neutral",
|
|
6093
6094
|
onClick: E(p)
|
|
6094
6095
|
}, null, 8, ["onClick"])
|
|
6095
|
-
], 64)) : (u(), C(
|
|
6096
|
-
|
|
6096
|
+
], 64)) : (u(), C(ae, { key: 1 }, [
|
|
6097
|
+
y(ue, {
|
|
6097
6098
|
label: m.$t("activity.comment.delete"),
|
|
6098
6099
|
size: "sm",
|
|
6099
6100
|
variant: "ghost",
|
|
6100
6101
|
color: "neutral",
|
|
6101
6102
|
onClick: _
|
|
6102
6103
|
}, null, 8, ["label"]),
|
|
6103
|
-
|
|
6104
|
+
y(ue, {
|
|
6104
6105
|
label: m.$t("activity.comment.edit"),
|
|
6105
6106
|
size: "sm",
|
|
6106
6107
|
variant: "ghost",
|
|
@@ -6108,7 +6109,7 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, N0 = ["c
|
|
|
6108
6109
|
onClick: E(l)
|
|
6109
6110
|
}, null, 8, ["label", "onClick"])
|
|
6110
6111
|
], 64))
|
|
6111
|
-
])) :
|
|
6112
|
+
])) : M("", !0)
|
|
6112
6113
|
]));
|
|
6113
6114
|
}
|
|
6114
6115
|
});
|
|
@@ -6125,7 +6126,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6125
6126
|
},
|
|
6126
6127
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
6127
6128
|
setup(s, { emit: e }) {
|
|
6128
|
-
const t = s, n = (d) => t.users.find((_) => _.id === d), a = e1(t.newComment || ""), i =
|
|
6129
|
+
const t = s, n = (d) => t.users.find((_) => _.id === d), a = e1(t.newComment || ""), i = f({
|
|
6129
6130
|
get() {
|
|
6130
6131
|
return a.value;
|
|
6131
6132
|
},
|
|
@@ -6147,7 +6148,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6147
6148
|
var _;
|
|
6148
6149
|
return u(), C("div", q0, [
|
|
6149
6150
|
((_ = d.comments) == null ? void 0 : _.length) > 0 ? (u(), C("ul", z0, [
|
|
6150
|
-
(u(!0), C(
|
|
6151
|
+
(u(!0), C(ae, null, pe(d.comments, (m) => (u(), j(U0, {
|
|
6151
6152
|
key: m.id,
|
|
6152
6153
|
user: n(m.userId),
|
|
6153
6154
|
content: m.content,
|
|
@@ -6155,17 +6156,17 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6155
6156
|
"edited-at": m.editedAt,
|
|
6156
6157
|
"is-editable": m.userId === d.userId,
|
|
6157
6158
|
class: "ao-comment",
|
|
6158
|
-
onEdit: (
|
|
6159
|
+
onEdit: (w) => r(m.id, w),
|
|
6159
6160
|
onRemove: () => c(m.id)
|
|
6160
6161
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
6161
|
-
])) :
|
|
6162
|
+
])) : M("", !0),
|
|
6162
6163
|
o("div", F0, [
|
|
6163
6164
|
o("form", {
|
|
6164
6165
|
class: "ao-comments__form",
|
|
6165
|
-
onSubmit:
|
|
6166
|
+
onSubmit: we(l, ["prevent"])
|
|
6166
6167
|
}, [
|
|
6167
6168
|
o("label", G0, [
|
|
6168
|
-
o("span", Y0,
|
|
6169
|
+
o("span", Y0, N(d.$t("activity.comment.label")), 1),
|
|
6169
6170
|
qe(o("textarea", {
|
|
6170
6171
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
|
|
6171
6172
|
rows: "4",
|
|
@@ -6180,7 +6181,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6180
6181
|
])
|
|
6181
6182
|
]),
|
|
6182
6183
|
o("div", W0, [
|
|
6183
|
-
|
|
6184
|
+
y(ue, {
|
|
6184
6185
|
type: "submit",
|
|
6185
6186
|
"icon-name": "SendRounded",
|
|
6186
6187
|
color: "primary",
|
|
@@ -6206,20 +6207,20 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6206
6207
|
},
|
|
6207
6208
|
emits: ["update:activity", "addSubtask", "addComment", "updateComment", "removeComment"],
|
|
6208
6209
|
setup(s, { emit: e }) {
|
|
6209
|
-
const t = s, { users: n, userId: a } = _t(), i =
|
|
6210
|
+
const t = s, { users: n, userId: a } = _t(), i = f(() => {
|
|
6210
6211
|
var m;
|
|
6211
|
-
return (m = t.activities) == null ? void 0 : m.find((
|
|
6212
|
-
}), l =
|
|
6212
|
+
return (m = t.activities) == null ? void 0 : m.find((w) => w.id === t.activityId);
|
|
6213
|
+
}), l = f(() => {
|
|
6213
6214
|
var m;
|
|
6214
|
-
return ((m = t.activityTypes) == null ? void 0 : m.map((
|
|
6215
|
-
value:
|
|
6216
|
-
label:
|
|
6215
|
+
return ((m = t.activityTypes) == null ? void 0 : m.map((w) => ({
|
|
6216
|
+
value: w,
|
|
6217
|
+
label: w
|
|
6217
6218
|
}))) || [];
|
|
6218
6219
|
}), r = (m) => {
|
|
6219
|
-
const { id:
|
|
6220
|
+
const { id: w } = m;
|
|
6220
6221
|
i.value && i.value.projectId && e("update:activity", {
|
|
6221
6222
|
itemType: ie.ACTIVITIES,
|
|
6222
|
-
id:
|
|
6223
|
+
id: w,
|
|
6223
6224
|
projectId: i.value.projectId,
|
|
6224
6225
|
data: {
|
|
6225
6226
|
...i.value,
|
|
@@ -6240,13 +6241,13 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6240
6241
|
comment: m
|
|
6241
6242
|
});
|
|
6242
6243
|
}, p = (m) => {
|
|
6243
|
-
const { id:
|
|
6244
|
-
|
|
6244
|
+
const { id: w } = i.value || {};
|
|
6245
|
+
w && e("updateComment", { ...m, activityId: w });
|
|
6245
6246
|
}, _ = (m) => {
|
|
6246
|
-
const { id:
|
|
6247
|
-
|
|
6247
|
+
const { id: w } = i.value || {};
|
|
6248
|
+
w && e("removeComment", { id: m, activityId: w });
|
|
6248
6249
|
};
|
|
6249
|
-
return (m,
|
|
6250
|
+
return (m, w) => i.value ? (u(), j(R1, {
|
|
6250
6251
|
key: 0,
|
|
6251
6252
|
activity: i.value,
|
|
6252
6253
|
"activity-types": l.value,
|
|
@@ -6255,7 +6256,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6255
6256
|
"is-template": !1,
|
|
6256
6257
|
users: E(n),
|
|
6257
6258
|
onClose: m.$router.back,
|
|
6258
|
-
"onUpdate:activity":
|
|
6259
|
+
"onUpdate:activity": w[0] || (w[0] = (I) => {
|
|
6259
6260
|
r({
|
|
6260
6261
|
...I
|
|
6261
6262
|
});
|
|
@@ -6265,13 +6266,13 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6265
6266
|
default: R(() => [
|
|
6266
6267
|
o("fieldset", X0, [
|
|
6267
6268
|
o("div", J0, [
|
|
6268
|
-
|
|
6269
|
-
|
|
6269
|
+
y(se, { name: "ChatOutline" }),
|
|
6270
|
+
y(ce, {
|
|
6270
6271
|
level: 4,
|
|
6271
6272
|
title: m.$t("activity.comments.title")
|
|
6272
6273
|
}, null, 8, ["title"])
|
|
6273
6274
|
]),
|
|
6274
|
-
|
|
6275
|
+
y(ht, {
|
|
6275
6276
|
comments: i.value.comments,
|
|
6276
6277
|
users: E(n),
|
|
6277
6278
|
"user-id": E(a),
|
|
@@ -6282,7 +6283,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6282
6283
|
])
|
|
6283
6284
|
]),
|
|
6284
6285
|
_: 1
|
|
6285
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) :
|
|
6286
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "onClose"])) : M("", !0);
|
|
6286
6287
|
}
|
|
6287
6288
|
}), t1 = {
|
|
6288
6289
|
TEMPLATES: "templates",
|
|
@@ -6378,9 +6379,9 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6378
6379
|
}
|
|
6379
6380
|
};
|
|
6380
6381
|
return (r, c) => (u(), C("div", x0, [
|
|
6381
|
-
|
|
6382
|
+
y(M1, null, {
|
|
6382
6383
|
secondary: R(() => [
|
|
6383
|
-
|
|
6384
|
+
y(ue, {
|
|
6384
6385
|
label: r.$t("templates.new"),
|
|
6385
6386
|
color: "primary",
|
|
6386
6387
|
"icon-name": "Add",
|
|
@@ -6390,7 +6391,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6390
6391
|
]),
|
|
6391
6392
|
_: 1
|
|
6392
6393
|
}),
|
|
6393
|
-
|
|
6394
|
+
y(E(n1), {
|
|
6394
6395
|
"model-value": r.templates,
|
|
6395
6396
|
class: "ao-templates__list",
|
|
6396
6397
|
"item-key": "id",
|
|
@@ -6400,7 +6401,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6400
6401
|
item: R(({ element: d }) => {
|
|
6401
6402
|
var p;
|
|
6402
6403
|
return [
|
|
6403
|
-
|
|
6404
|
+
y(f3, {
|
|
6404
6405
|
title: d.name || d.id,
|
|
6405
6406
|
phases: d.phases,
|
|
6406
6407
|
milestones: (p = d.phases) != null && p.length ? E(Yr)(d.phases) : 0,
|
|
@@ -6428,18 +6429,18 @@ const tu = { class: "ao-col-header" }, su = /* @__PURE__ */ K({
|
|
|
6428
6429
|
},
|
|
6429
6430
|
setup(s) {
|
|
6430
6431
|
return (e, t) => (u(), C("header", tu, [
|
|
6431
|
-
|
|
6432
|
+
y(ce, {
|
|
6432
6433
|
title: e.title,
|
|
6433
6434
|
class: "ao-col-header__title",
|
|
6434
6435
|
level: 4
|
|
6435
6436
|
}, null, 8, ["title"]),
|
|
6436
|
-
e.items ? (u(),
|
|
6437
|
+
e.items ? (u(), j(f1, {
|
|
6437
6438
|
key: 0,
|
|
6438
6439
|
label: e.items,
|
|
6439
6440
|
class: "ao-col-header__items",
|
|
6440
6441
|
variant: "solid",
|
|
6441
6442
|
color: "primary"
|
|
6442
|
-
}, null, 8, ["label"])) :
|
|
6443
|
+
}, null, 8, ["label"])) : M("", !0)
|
|
6443
6444
|
]));
|
|
6444
6445
|
}
|
|
6445
6446
|
});
|
|
@@ -6495,7 +6496,7 @@ function cu() {
|
|
|
6495
6496
|
}
|
|
6496
6497
|
function du(s) {
|
|
6497
6498
|
const e = cu();
|
|
6498
|
-
return
|
|
6499
|
+
return f(() => (e.value, !!s()));
|
|
6499
6500
|
}
|
|
6500
6501
|
function pu(s, e, t = {}) {
|
|
6501
6502
|
const {
|
|
@@ -6504,33 +6505,33 @@ function pu(s, e, t = {}) {
|
|
|
6504
6505
|
threshold: i = 0.1,
|
|
6505
6506
|
window: l = uu,
|
|
6506
6507
|
immediate: r = !0
|
|
6507
|
-
} = t, c = du(() => l && "IntersectionObserver" in l), d =
|
|
6508
|
+
} = t, c = du(() => l && "IntersectionObserver" in l), d = f(() => {
|
|
6508
6509
|
const I = _1(s);
|
|
6509
6510
|
return (Array.isArray(I) ? I : [I]).map(B1).filter(nu);
|
|
6510
6511
|
});
|
|
6511
6512
|
let p = s1;
|
|
6512
6513
|
const _ = Q(r), m = c.value ? de(
|
|
6513
6514
|
() => [d.value, B1(n), _.value],
|
|
6514
|
-
([I,
|
|
6515
|
+
([I, L]) => {
|
|
6515
6516
|
if (p(), !_.value || !I.length)
|
|
6516
6517
|
return;
|
|
6517
|
-
const
|
|
6518
|
+
const Z = new IntersectionObserver(
|
|
6518
6519
|
e,
|
|
6519
6520
|
{
|
|
6520
|
-
root: B1(
|
|
6521
|
+
root: B1(L),
|
|
6521
6522
|
rootMargin: a,
|
|
6522
6523
|
threshold: i
|
|
6523
6524
|
}
|
|
6524
6525
|
);
|
|
6525
|
-
I.forEach((
|
|
6526
|
-
|
|
6526
|
+
I.forEach(($) => $ && Z.observe($)), p = () => {
|
|
6527
|
+
Z.disconnect(), p = s1;
|
|
6527
6528
|
};
|
|
6528
6529
|
},
|
|
6529
6530
|
{ immediate: r, flush: "post" }
|
|
6530
|
-
) : s1,
|
|
6531
|
+
) : s1, w = () => {
|
|
6531
6532
|
p(), m(), _.value = !1;
|
|
6532
6533
|
};
|
|
6533
|
-
return au(
|
|
6534
|
+
return au(w), {
|
|
6534
6535
|
isSupported: c,
|
|
6535
6536
|
isActive: _,
|
|
6536
6537
|
pause() {
|
|
@@ -6539,7 +6540,7 @@ function pu(s, e, t = {}) {
|
|
|
6539
6540
|
resume() {
|
|
6540
6541
|
_.value = !0;
|
|
6541
6542
|
},
|
|
6542
|
-
stop:
|
|
6543
|
+
stop: w
|
|
6543
6544
|
};
|
|
6544
6545
|
}
|
|
6545
6546
|
const vu = {
|
|
@@ -6564,6 +6565,7 @@ const vu = {
|
|
|
6564
6565
|
props: {
|
|
6565
6566
|
list: {},
|
|
6566
6567
|
status: {},
|
|
6568
|
+
users: {},
|
|
6567
6569
|
title: {},
|
|
6568
6570
|
footerLabel: {},
|
|
6569
6571
|
isLoading: { type: Boolean },
|
|
@@ -6601,74 +6603,81 @@ const vu = {
|
|
|
6601
6603
|
var p;
|
|
6602
6604
|
return [
|
|
6603
6605
|
o("div", Cu, [
|
|
6604
|
-
c.title ? (u(),
|
|
6606
|
+
c.title ? (u(), j(su, {
|
|
6605
6607
|
key: 0,
|
|
6606
6608
|
title: c.title,
|
|
6607
6609
|
level: 3,
|
|
6608
6610
|
items: (p = c.list) == null ? void 0 : p.length
|
|
6609
|
-
}, null, 8, ["title", "items"])) :
|
|
6611
|
+
}, null, 8, ["title", "items"])) : M("", !0)
|
|
6610
6612
|
])
|
|
6611
6613
|
];
|
|
6612
|
-
}) :
|
|
6613
|
-
|
|
6614
|
+
}) : M("", !0),
|
|
6615
|
+
y(E(n1), Ee({
|
|
6614
6616
|
class: "ao-list-kanban__list",
|
|
6615
6617
|
list: c.list,
|
|
6616
6618
|
"item-key": "id",
|
|
6617
6619
|
group: "kanban"
|
|
6618
6620
|
}, c.$attrs, { onChange: r }), {
|
|
6619
6621
|
item: R(({ element: p }) => {
|
|
6620
|
-
var _, m, $;
|
|
6622
|
+
var _, m, w, I, L, Z, $;
|
|
6621
6623
|
return [
|
|
6622
|
-
|
|
6624
|
+
y(mt, {
|
|
6623
6625
|
id: p.id,
|
|
6624
6626
|
name: p.name,
|
|
6625
|
-
|
|
6627
|
+
"project-name": (_ = p.project) == null ? void 0 : _.name,
|
|
6628
|
+
"phase-name": (w = (m = p.milestone) == null ? void 0 : m.phase) == null ? void 0 : w.name,
|
|
6629
|
+
"milestone-name": (I = p.milestone) == null ? void 0 : I.name,
|
|
6630
|
+
"end-date": p.deadline,
|
|
6631
|
+
rules: ((L = p.rules) == null ? void 0 : L.length) || 0,
|
|
6626
6632
|
subtasks: p.tasks,
|
|
6627
6633
|
description: p.description,
|
|
6628
6634
|
"is-important": p.important,
|
|
6629
6635
|
type: p.type,
|
|
6630
|
-
comments: (
|
|
6636
|
+
comments: (Z = p.comments) == null ? void 0 : Z.length,
|
|
6631
6637
|
attachments: ($ = p.attachments) == null ? void 0 : $.length,
|
|
6638
|
+
users: c.users,
|
|
6639
|
+
assignees: p.assignee ? [p.assignee.id] : [],
|
|
6632
6640
|
onClick: () => i(p.id),
|
|
6633
|
-
onUpdateActivity: l
|
|
6641
|
+
onUpdateActivity: l,
|
|
6642
|
+
onRemoveAssignee: () => l({ id: p.id, assigneeId: null })
|
|
6634
6643
|
}, {
|
|
6635
6644
|
secondary: R(() => [
|
|
6636
|
-
|
|
6645
|
+
y(ue, {
|
|
6637
6646
|
color: "primary",
|
|
6638
6647
|
variant: "ghost",
|
|
6639
6648
|
"icon-name": "ArchiveOutlineRounded",
|
|
6640
6649
|
size: "sm",
|
|
6641
6650
|
corners: "round",
|
|
6642
|
-
onClick:
|
|
6651
|
+
onClick: we(() => c.$emit("archiveActivity", p.id), ["stop"])
|
|
6643
6652
|
}, null, 8, ["onClick"])
|
|
6644
6653
|
]),
|
|
6645
6654
|
_: 2
|
|
6646
|
-
}, 1032, ["id", "name", "rules", "subtasks", "description", "is-important", "type", "comments", "attachments", "onClick"])
|
|
6655
|
+
}, 1032, ["id", "name", "project-name", "phase-name", "milestone-name", "end-date", "rules", "subtasks", "description", "is-important", "type", "comments", "attachments", "users", "assignees", "onClick", "onRemoveAssignee"])
|
|
6647
6656
|
];
|
|
6648
6657
|
}),
|
|
6649
6658
|
footer: R(() => [
|
|
6650
6659
|
c.isLoading ? (u(), C("div", _u, [
|
|
6651
|
-
|
|
6660
|
+
y(se, { name: "Loading" })
|
|
6652
6661
|
])) : c.hasMore ? (u(), C("div", {
|
|
6653
6662
|
key: 2,
|
|
6654
6663
|
ref_key: "scrollEnd",
|
|
6655
6664
|
ref: a,
|
|
6656
6665
|
class: "ao-list-kanban__end"
|
|
6657
6666
|
}, null, 512)) : (u(), C("div", mu, [
|
|
6658
|
-
c.noMoreLabel ? (u(), C("span", hu,
|
|
6667
|
+
c.noMoreLabel ? (u(), C("span", hu, N(c.noMoreLabel), 1)) : (u(), C("span", fu))
|
|
6659
6668
|
]))
|
|
6660
6669
|
]),
|
|
6661
6670
|
_: 1
|
|
6662
6671
|
}, 16, ["list"]),
|
|
6663
6672
|
c.$slots.footer || c.footerLabel ? (u(), C("div", gu, [
|
|
6664
6673
|
Y(c.$slots, "footer", {}, () => [
|
|
6665
|
-
|
|
6674
|
+
y(Be, {
|
|
6666
6675
|
"icon-name": "AddBoxOutlineRounded",
|
|
6667
6676
|
label: c.footerLabel,
|
|
6668
6677
|
onClick: d[0] || (d[0] = (p) => c.$emit("add"))
|
|
6669
6678
|
}, null, 8, ["label"])
|
|
6670
6679
|
])
|
|
6671
|
-
])) :
|
|
6680
|
+
])) : M("", !0)
|
|
6672
6681
|
]));
|
|
6673
6682
|
}
|
|
6674
6683
|
});
|
|
@@ -6697,11 +6706,11 @@ const bu = { class: "ao-field ao-search-field" }, $u = ["value", "placeholder",
|
|
|
6697
6706
|
(...c) => E(a) && E(a)(...c)),
|
|
6698
6707
|
onKeypress: a1(n, ["enter"])
|
|
6699
6708
|
}, null, 40, $u),
|
|
6700
|
-
|
|
6709
|
+
y(se, {
|
|
6701
6710
|
name: "SearchRounded",
|
|
6702
6711
|
class: F(`ao-search-field__icon ao-search-field__action ${l.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
6703
6712
|
}, null, 8, ["class"]),
|
|
6704
|
-
|
|
6713
|
+
y(ue, {
|
|
6705
6714
|
"icon-name": "CloseRounded",
|
|
6706
6715
|
size: "sm",
|
|
6707
6716
|
color: "primary",
|
|
@@ -6713,7 +6722,7 @@ const bu = { class: "ao-field ao-search-field" }, $u = ["value", "placeholder",
|
|
|
6713
6722
|
}
|
|
6714
6723
|
});
|
|
6715
6724
|
function Mu(s) {
|
|
6716
|
-
const e = Q(), t =
|
|
6725
|
+
const e = Q(), t = f(
|
|
6717
6726
|
() => s.value.find(
|
|
6718
6727
|
(a) => a.id === e.value
|
|
6719
6728
|
)
|
|
@@ -6748,136 +6757,136 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6748
6757
|
const t = s, { t: n } = De(), a = e1(t, "activities"), { selectActivity: i, selectedActivity: l } = ku(a), r = Q({});
|
|
6749
6758
|
de(
|
|
6750
6759
|
[() => t.statuses, () => t.activities],
|
|
6751
|
-
([
|
|
6760
|
+
([A, W]) => {
|
|
6752
6761
|
r.value = Object.fromEntries(
|
|
6753
|
-
|
|
6762
|
+
A.map((_e) => [
|
|
6754
6763
|
_e.id,
|
|
6755
|
-
W.filter((
|
|
6764
|
+
W.filter((g) => g.status.id === _e.id)
|
|
6756
6765
|
])
|
|
6757
6766
|
);
|
|
6758
6767
|
},
|
|
6759
6768
|
{ immediate: !0 }
|
|
6760
6769
|
);
|
|
6761
|
-
const c = (
|
|
6762
|
-
var
|
|
6763
|
-
const W = (
|
|
6764
|
-
name: n("activity.defaultName", { idx:
|
|
6770
|
+
const c = (A) => {
|
|
6771
|
+
var T, G;
|
|
6772
|
+
const W = (T = t.activities) == null ? void 0 : T.at(-1), _e = W ? ye.LexoRank.parse(W.rank).genNext() : ye.LexoRank.middle(), g = ((G = t.activities) == null ? void 0 : G.length) ?? 0, O = {
|
|
6773
|
+
name: n("activity.defaultName", { idx: g + 1 }),
|
|
6765
6774
|
rank: _e.format(),
|
|
6766
|
-
statusId:
|
|
6775
|
+
statusId: A.id
|
|
6767
6776
|
};
|
|
6768
|
-
e("addActivity",
|
|
6769
|
-
}, d = (
|
|
6770
|
-
e("update:filters", { ...t.filters, [
|
|
6771
|
-
}, p =
|
|
6772
|
-
value:
|
|
6773
|
-
label:
|
|
6774
|
-
}))), _ =
|
|
6775
|
-
value:
|
|
6776
|
-
label:
|
|
6777
|
-
}))), m =
|
|
6778
|
-
value:
|
|
6779
|
-
label: `${
|
|
6780
|
-
}))),
|
|
6781
|
-
l.value && e("update:activity",
|
|
6782
|
-
}, I = (
|
|
6783
|
-
e("update:activity",
|
|
6784
|
-
},
|
|
6777
|
+
e("addActivity", O);
|
|
6778
|
+
}, d = (A, W) => {
|
|
6779
|
+
e("update:filters", { ...t.filters, [A]: W });
|
|
6780
|
+
}, p = f(() => t.projects.map((A) => ({
|
|
6781
|
+
value: A.id,
|
|
6782
|
+
label: A.name
|
|
6783
|
+
}))), _ = f(() => t.activityTypes.map((A) => ({
|
|
6784
|
+
value: A.id,
|
|
6785
|
+
label: A.name
|
|
6786
|
+
}))), m = f(() => t.users.map((A) => ({
|
|
6787
|
+
value: A.id,
|
|
6788
|
+
label: `${A.firstName} ${A.lastName}`
|
|
6789
|
+
}))), w = (A) => {
|
|
6790
|
+
l.value && e("update:activity", A);
|
|
6791
|
+
}, I = (A) => {
|
|
6792
|
+
e("update:activity", A);
|
|
6793
|
+
}, L = Q(null), Z = (A) => {
|
|
6785
6794
|
l.value && e("update:activity", {
|
|
6786
6795
|
id: l.value.id,
|
|
6787
|
-
name:
|
|
6796
|
+
name: A
|
|
6788
6797
|
});
|
|
6789
|
-
},
|
|
6790
|
-
e("archiveActivity",
|
|
6791
|
-
},
|
|
6798
|
+
}, $ = (A) => {
|
|
6799
|
+
e("archiveActivity", A);
|
|
6800
|
+
}, b = f({
|
|
6792
6801
|
get() {
|
|
6793
|
-
var
|
|
6794
|
-
return (
|
|
6802
|
+
var A;
|
|
6803
|
+
return (A = l.value) == null ? void 0 : A.deadline;
|
|
6795
6804
|
},
|
|
6796
|
-
set(
|
|
6797
|
-
l.value &&
|
|
6805
|
+
set(A) {
|
|
6806
|
+
l.value && w({
|
|
6798
6807
|
id: l.value.id,
|
|
6799
|
-
deadline:
|
|
6808
|
+
deadline: A
|
|
6800
6809
|
});
|
|
6801
6810
|
}
|
|
6802
|
-
}),
|
|
6803
|
-
e("clear:searchText",
|
|
6804
|
-
}, x = (
|
|
6805
|
-
l.value && e("addSubtask",
|
|
6806
|
-
},
|
|
6807
|
-
l.value && e("updateSubtask",
|
|
6808
|
-
},
|
|
6809
|
-
l.value && e("deleteSubtask",
|
|
6810
|
-
}, H = (
|
|
6811
|
-
e("addFiles",
|
|
6812
|
-
}, U = (
|
|
6813
|
-
e("removeFile",
|
|
6814
|
-
}, te = (
|
|
6811
|
+
}), B = (A) => {
|
|
6812
|
+
e("clear:searchText", A);
|
|
6813
|
+
}, x = (A) => {
|
|
6814
|
+
l.value && e("addSubtask", A);
|
|
6815
|
+
}, le = (A) => {
|
|
6816
|
+
l.value && e("updateSubtask", A);
|
|
6817
|
+
}, h = (A) => {
|
|
6818
|
+
l.value && e("deleteSubtask", A);
|
|
6819
|
+
}, H = (A) => {
|
|
6820
|
+
e("addFiles", A);
|
|
6821
|
+
}, U = (A) => {
|
|
6822
|
+
e("removeFile", A);
|
|
6823
|
+
}, te = (A) => {
|
|
6815
6824
|
l.value && e("addComment", {
|
|
6816
6825
|
activityId: l.value.id,
|
|
6817
|
-
comment:
|
|
6826
|
+
comment: A
|
|
6818
6827
|
});
|
|
6819
|
-
}, re = (
|
|
6828
|
+
}, re = (A) => {
|
|
6820
6829
|
const { id: W } = l.value || {};
|
|
6821
|
-
W && e("updateComment", { ...
|
|
6822
|
-
}, Ce = (
|
|
6830
|
+
W && e("updateComment", { ...A, activityId: W });
|
|
6831
|
+
}, Ce = (A) => {
|
|
6823
6832
|
const { id: W } = l.value || {};
|
|
6824
|
-
W && e("removeComment", { id:
|
|
6825
|
-
}, D =
|
|
6826
|
-
value:
|
|
6827
|
-
label:
|
|
6828
|
-
}))), X = (
|
|
6833
|
+
W && e("removeComment", { id: A, activityId: W });
|
|
6834
|
+
}, D = f(() => t.statuses.map((A) => ({
|
|
6835
|
+
value: A.id,
|
|
6836
|
+
label: A.name
|
|
6837
|
+
}))), X = (A) => {
|
|
6829
6838
|
l.value && e("update:activity", {
|
|
6830
6839
|
id: l.value.id,
|
|
6831
|
-
statusId:
|
|
6840
|
+
statusId: A
|
|
6832
6841
|
});
|
|
6833
6842
|
};
|
|
6834
|
-
return (
|
|
6843
|
+
return (A, W) => {
|
|
6835
6844
|
var _e;
|
|
6836
6845
|
return u(), C("div", Iu, [
|
|
6837
|
-
|
|
6846
|
+
y(M1, null, {
|
|
6838
6847
|
primary: R(() => [
|
|
6839
|
-
|
|
6840
|
-
"model-value":
|
|
6841
|
-
placeholder:
|
|
6842
|
-
"onUpdate:modelValue": W[0] || (W[0] = (
|
|
6843
|
-
onClear:
|
|
6848
|
+
y(wu, {
|
|
6849
|
+
"model-value": A.searchText,
|
|
6850
|
+
placeholder: A.$t("feed.search.placeholder"),
|
|
6851
|
+
"onUpdate:modelValue": W[0] || (W[0] = (g) => A.$emit("update:searchText", g)),
|
|
6852
|
+
onClear: B
|
|
6844
6853
|
}, null, 8, ["model-value", "placeholder"]),
|
|
6845
6854
|
o("div", Su, [
|
|
6846
|
-
|
|
6847
|
-
"model-value":
|
|
6855
|
+
y(E(ve), {
|
|
6856
|
+
"model-value": A.filters[E(Ue).project],
|
|
6848
6857
|
mode: "tags",
|
|
6849
6858
|
options: p.value,
|
|
6850
6859
|
"close-on-select": !1,
|
|
6851
6860
|
searchable: !0,
|
|
6852
6861
|
class: "ao-feed__filter",
|
|
6853
|
-
placeholder:
|
|
6854
|
-
"onUpdate:modelValue": W[1] || (W[1] = (
|
|
6862
|
+
placeholder: A.$t("feed.filters.project.placeholder"),
|
|
6863
|
+
"onUpdate:modelValue": W[1] || (W[1] = (g) => d(E(Ue).project, g))
|
|
6855
6864
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
6856
|
-
|
|
6857
|
-
"model-value":
|
|
6865
|
+
y(E(ve), {
|
|
6866
|
+
"model-value": A.filters[E(Ue).type],
|
|
6858
6867
|
mode: "tags",
|
|
6859
6868
|
options: _.value,
|
|
6860
6869
|
"close-on-select": !1,
|
|
6861
6870
|
searchable: !0,
|
|
6862
6871
|
class: "ao-feed__filter",
|
|
6863
|
-
placeholder:
|
|
6864
|
-
"onUpdate:modelValue": W[2] || (W[2] = (
|
|
6872
|
+
placeholder: A.$t("feed.filters.activityType.placeholder"),
|
|
6873
|
+
"onUpdate:modelValue": W[2] || (W[2] = (g) => d(E(Ue).type, g))
|
|
6865
6874
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
6866
|
-
|
|
6867
|
-
"model-value":
|
|
6875
|
+
y(E(ve), {
|
|
6876
|
+
"model-value": A.filters[E(Ue).assignee],
|
|
6868
6877
|
mode: "tags",
|
|
6869
6878
|
options: m.value,
|
|
6870
6879
|
"close-on-select": !1,
|
|
6871
6880
|
searchable: !0,
|
|
6872
6881
|
class: "ao-feed__filter",
|
|
6873
|
-
placeholder:
|
|
6874
|
-
"onUpdate:modelValue": W[3] || (W[3] = (
|
|
6882
|
+
placeholder: A.$t("feed.filters.assignee.placeholder"),
|
|
6883
|
+
"onUpdate:modelValue": W[3] || (W[3] = (g) => d(E(Ue).assignee, g))
|
|
6875
6884
|
}, {
|
|
6876
|
-
tag: R(({ option:
|
|
6877
|
-
|
|
6878
|
-
"user-name":
|
|
6885
|
+
tag: R(({ option: g, handleTagRemove: O }) => [
|
|
6886
|
+
y(Ye, {
|
|
6887
|
+
"user-name": g.label,
|
|
6879
6888
|
"is-closable": !0,
|
|
6880
|
-
onClose: (
|
|
6889
|
+
onClose: (T) => O(g, T)
|
|
6881
6890
|
}, null, 8, ["user-name", "onClose"])
|
|
6882
6891
|
]),
|
|
6883
6892
|
_: 1
|
|
@@ -6887,46 +6896,47 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6887
6896
|
_: 1
|
|
6888
6897
|
}),
|
|
6889
6898
|
o("div", Vu, [
|
|
6890
|
-
(u(!0), C(
|
|
6891
|
-
key:
|
|
6892
|
-
status:
|
|
6893
|
-
list: r.value[
|
|
6894
|
-
title:
|
|
6895
|
-
"footer-label":
|
|
6896
|
-
|
|
6899
|
+
(u(!0), C(ae, null, pe(A.statuses, (g) => (u(), j(yu, {
|
|
6900
|
+
key: g.id,
|
|
6901
|
+
status: g,
|
|
6902
|
+
list: r.value[g.id],
|
|
6903
|
+
title: g.name,
|
|
6904
|
+
"footer-label": A.$t("feed.activity.add"),
|
|
6905
|
+
users: A.users,
|
|
6906
|
+
onAdd: () => c(g),
|
|
6897
6907
|
onSelectActivity: E(i),
|
|
6898
|
-
onArchiveActivity:
|
|
6908
|
+
onArchiveActivity: $,
|
|
6899
6909
|
onUpdateActivity: I
|
|
6900
|
-
}, null, 8, ["status", "list", "title", "footer-label", "onAdd", "onSelectActivity"]))), 128))
|
|
6910
|
+
}, null, 8, ["status", "list", "title", "footer-label", "users", "onAdd", "onSelectActivity"]))), 128))
|
|
6901
6911
|
]),
|
|
6902
|
-
(u(),
|
|
6903
|
-
E(l) ? (u(),
|
|
6912
|
+
(u(), j(C1, { to: "body" }, [
|
|
6913
|
+
E(l) ? (u(), j(R1, {
|
|
6904
6914
|
key: 0,
|
|
6905
6915
|
activity: E(l),
|
|
6906
6916
|
"activity-types": _.value,
|
|
6907
6917
|
"milestone-id": (_e = E(l).milestone) == null ? void 0 : _e.id,
|
|
6908
6918
|
"template-activities": a.value,
|
|
6909
|
-
users:
|
|
6919
|
+
users: A.users,
|
|
6910
6920
|
onClose: W[5] || (W[5] = () => E(i)(null)),
|
|
6911
|
-
"onUpdate:activity":
|
|
6921
|
+
"onUpdate:activity": w,
|
|
6912
6922
|
onAddSubtask: x,
|
|
6913
|
-
onUpdateSubtask:
|
|
6914
|
-
onDeleteSubtask:
|
|
6923
|
+
onUpdateSubtask: le,
|
|
6924
|
+
onDeleteSubtask: h,
|
|
6915
6925
|
onAddFiles: H,
|
|
6916
6926
|
onRemoveFile: U
|
|
6917
6927
|
}, {
|
|
6918
6928
|
header: R(() => [
|
|
6919
|
-
|
|
6929
|
+
y(ce, {
|
|
6920
6930
|
ref_key: "target",
|
|
6921
|
-
ref:
|
|
6931
|
+
ref: L,
|
|
6922
6932
|
title: E(l).name || E(l).id,
|
|
6923
6933
|
level: 4,
|
|
6924
6934
|
"is-editable": !0,
|
|
6925
|
-
"onUpdate:title":
|
|
6935
|
+
"onUpdate:title": Z
|
|
6926
6936
|
}, null, 8, ["title"]),
|
|
6927
6937
|
o("label", Lu, [
|
|
6928
|
-
o("span", Tu,
|
|
6929
|
-
|
|
6938
|
+
o("span", Tu, N(A.$t("activity.status.label")), 1),
|
|
6939
|
+
y(E(ve), {
|
|
6930
6940
|
options: D.value,
|
|
6931
6941
|
value: E(l).status.id,
|
|
6932
6942
|
onChange: X
|
|
@@ -6936,15 +6946,15 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6936
6946
|
default: R(() => [
|
|
6937
6947
|
o("fieldset", Eu, [
|
|
6938
6948
|
o("label", Hu, [
|
|
6939
|
-
o("span", Ou,
|
|
6949
|
+
o("span", Ou, N(A.$t("activity.endDate.label")), 1),
|
|
6940
6950
|
qe(o("input", {
|
|
6941
|
-
"onUpdate:modelValue": W[4] || (W[4] = (
|
|
6951
|
+
"onUpdate:modelValue": W[4] || (W[4] = (g) => b.value = g),
|
|
6942
6952
|
class: "ao-field__input",
|
|
6943
6953
|
type: "date"
|
|
6944
6954
|
}, null, 512), [
|
|
6945
6955
|
[
|
|
6946
6956
|
l1,
|
|
6947
|
-
|
|
6957
|
+
b.value,
|
|
6948
6958
|
void 0,
|
|
6949
6959
|
{ lazy: !0 }
|
|
6950
6960
|
]
|
|
@@ -6953,16 +6963,16 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6953
6963
|
]),
|
|
6954
6964
|
o("fieldset", Bu, [
|
|
6955
6965
|
o("div", Du, [
|
|
6956
|
-
|
|
6957
|
-
|
|
6966
|
+
y(se, { name: "ChatOutline" }),
|
|
6967
|
+
y(ce, {
|
|
6958
6968
|
level: 4,
|
|
6959
|
-
title:
|
|
6969
|
+
title: A.$t("activity.comments.title")
|
|
6960
6970
|
}, null, 8, ["title"])
|
|
6961
6971
|
]),
|
|
6962
|
-
|
|
6972
|
+
y(ht, {
|
|
6963
6973
|
comments: E(l).comments,
|
|
6964
|
-
users:
|
|
6965
|
-
"user-id":
|
|
6974
|
+
users: A.users,
|
|
6975
|
+
"user-id": A.userId,
|
|
6966
6976
|
onCreateComment: te,
|
|
6967
6977
|
onUpdateComment: re,
|
|
6968
6978
|
onRemoveComment: Ce
|
|
@@ -6970,7 +6980,7 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6970
6980
|
])
|
|
6971
6981
|
]),
|
|
6972
6982
|
_: 1
|
|
6973
|
-
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users"])) :
|
|
6983
|
+
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users"])) : M("", !0)
|
|
6974
6984
|
]))
|
|
6975
6985
|
]);
|
|
6976
6986
|
};
|