@26lights/orcha 0.7.32 → 0.7.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +441 -432
- package/dist/orcha.umd.js +1 -1
- package/dist/src/components/AoListKanban.vue.d.ts +5 -1
- package/dist/src/types/index.d.ts +1 -1
- package/package.json +1 -1
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 g, resolveDynamicComponent as Ke, normalizeClass as F, renderSlot as Y, toDisplayString as N, createCommentVNode as w, ref as Q, watch as de, nextTick as He, withKeys as a1, toHandlers as qt, withCtx as R, createTextVNode as Z1, createVNode as b, withModifiers as we, Fragment as le, 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,
|
|
@@ -1126,7 +1126,7 @@ const kr = /* @__PURE__ */ V(br, [["render", Ar]]), Ir = /* @__PURE__ */ Object.
|
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(s) {
|
|
1128
1128
|
const e = s, t = g(() => Ir[e.name]);
|
|
1129
|
-
return (n, a) => (u(),
|
|
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
|
}
|
|
@@ -1164,9 +1164,9 @@ 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)) : w("", !0)
|
|
1168
1168
|
]),
|
|
1169
|
-
n.value ? (u(),
|
|
1169
|
+
n.value ? (u(), j(ae, {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
name: n.value,
|
|
1172
1172
|
class: "ao-button__icon",
|
|
@@ -1216,48 +1216,48 @@ const ce = /* @__PURE__ */ K({
|
|
|
1216
1216
|
setup(s, { emit: e }) {
|
|
1217
1217
|
const t = s, n = Q(null), { isEditing: a, setIsEditing: i, onUpdate: l, onDiscard: r } = ot(n), c = g(() => a.value ? "input" : t.tag || `h${t.level}`), d = g(() => t.isEditable ? a.value ? {
|
|
1218
1218
|
change: p,
|
|
1219
|
-
click: (
|
|
1219
|
+
click: (L) => L.stopPropagation(),
|
|
1220
1220
|
blur: m
|
|
1221
1221
|
} : {
|
|
1222
|
-
click:
|
|
1223
|
-
focus:
|
|
1224
|
-
} : {}), p = l((
|
|
1225
|
-
const h =
|
|
1222
|
+
click: k,
|
|
1223
|
+
focus: k
|
|
1224
|
+
} : {}), p = l((L, Z) => {
|
|
1225
|
+
const h = Z.target.value;
|
|
1226
1226
|
e("update:title", h);
|
|
1227
1227
|
}), _ = r(), m = async () => {
|
|
1228
1228
|
a.value && i(!1);
|
|
1229
1229
|
}, $ = () => {
|
|
1230
1230
|
e("toggle-is-editing", !1);
|
|
1231
|
-
},
|
|
1232
|
-
|
|
1231
|
+
}, k = (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
1255
|
onKeyup: a1($, ["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,7 +1300,7 @@ 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(() => [
|
|
@@ -1327,7 +1327,7 @@ 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)) : w("", !0)
|
|
1331
1331
|
])
|
|
1332
1332
|
]),
|
|
1333
1333
|
n.$slots.header ? (u(), C("div", Zr, [
|
|
@@ -1337,10 +1337,10 @@ const Er = {
|
|
|
1337
1337
|
n.$slots.default ? (u(), C("div", Pr, [
|
|
1338
1338
|
Y(n.$slots, "default")
|
|
1339
1339
|
])) : w("", !0),
|
|
1340
|
-
n.$slots.footer ? (u(), C("div",
|
|
1340
|
+
n.$slots.footer ? (u(), C("div", jr, [
|
|
1341
1341
|
Y(n.$slots, "footer")
|
|
1342
1342
|
])) : w("", !0),
|
|
1343
|
-
n.$slots.secondary ? (u(), C("div",
|
|
1343
|
+
n.$slots.secondary ? (u(), C("div", Nr, [
|
|
1344
1344
|
Y(n.$slots, "secondary")
|
|
1345
1345
|
])) : w("", !0)
|
|
1346
1346
|
]),
|
|
@@ -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)),
|
|
@@ -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;
|
|
@@ -1974,21 +1974,21 @@ function pt() {
|
|
|
1974
1974
|
c = p;
|
|
1975
1975
|
}
|
|
1976
1976
|
let _;
|
|
1977
|
-
for (let
|
|
1978
|
-
const
|
|
1979
|
-
if (_ = d.setScale(
|
|
1980
|
-
return a.checkMid(l, r,
|
|
1981
|
-
if (
|
|
1977
|
+
for (let k = c.getScale(); k > 0; d = _) {
|
|
1978
|
+
const L = k - 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
|
-
|
|
1983
|
+
k = L, c = Z;
|
|
1984
1984
|
}
|
|
1985
1985
|
let m = a.middleInternal(l, r, c, d), $;
|
|
1986
|
-
for (let
|
|
1987
|
-
$ =
|
|
1988
|
-
const
|
|
1989
|
-
if (l.compareTo(
|
|
1986
|
+
for (let k = m.getScale(); k > 0; k = $) {
|
|
1987
|
+
$ = k - 1;
|
|
1988
|
+
const L = m.setScale($);
|
|
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
|
-
})) : w("", !0)
|
|
2184
|
+
onClick: we(a, ["stop"])
|
|
2185
|
+
}, null, 8, ["onClick"])) : w("", !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
|
|
@@ -2222,14 +2222,14 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
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
|
b(ae, {
|
|
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
|
]),
|
|
@@ -2241,10 +2241,10 @@ const xr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
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(le, null, pe(n.phases, (i) => (u(),
|
|
2247
|
+
(u(!0), C(le, null, pe(n.phases, (i) => (u(), j(f1, {
|
|
2248
2248
|
key: i.id,
|
|
2249
2249
|
label: i.name || i.id,
|
|
2250
2250
|
color: "primary",
|
|
@@ -2258,15 +2258,15 @@ 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
|
])) : w("", !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
|
b(Ye, { "user-name": n.updatedBy }, null, 8, ["user-name"])
|
|
@@ -2287,7 +2287,7 @@ 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",
|
|
@@ -2328,9 +2328,9 @@ 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)) : w("", !0)
|
|
2332
2332
|
]),
|
|
2333
|
-
n.value ? (u(),
|
|
2333
|
+
n.value ? (u(), j(ae, {
|
|
2334
2334
|
key: 0,
|
|
2335
2335
|
name: n.value,
|
|
2336
2336
|
class: "ao-button-card__icon",
|
|
@@ -2342,7 +2342,7 @@ const $3 = ["type"], w3 = {
|
|
|
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,7 +2362,7 @@ 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
2368
|
(u(), C(le, null, pe(n, (c) => (u(), C(le, { key: c }, [
|
|
@@ -2371,7 +2371,7 @@ const M3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
|
2371
2371
|
name: a[c],
|
|
2372
2372
|
size: "sm"
|
|
2373
2373
|
}, null, 8, ["name"]),
|
|
2374
|
-
o("span", k3,
|
|
2374
|
+
o("span", k3, N(l.$props[c]), 1)
|
|
2375
2375
|
])) : w("", !0)
|
|
2376
2376
|
], 64))), 64))
|
|
2377
2377
|
])
|
|
@@ -2383,7 +2383,7 @@ const M3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
|
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
|
]),
|
|
@@ -2403,7 +2403,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2403
2403
|
var a;
|
|
2404
2404
|
return (a = e.milestones) == null ? void 0 : a.length;
|
|
2405
2405
|
}), n = g(() => e.milestones ? vt(e.milestones) : 0);
|
|
2406
|
-
return (a, i) => (u(),
|
|
2406
|
+
return (a, i) => (u(), j(N1, Ee({
|
|
2407
2407
|
title: a.name,
|
|
2408
2408
|
activities: n.value,
|
|
2409
2409
|
milestones: t.value
|
|
@@ -2424,7 +2424,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
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",
|
|
@@ -2472,7 +2472,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
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,
|
|
@@ -2510,7 +2510,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
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"),
|
|
@@ -2561,7 +2561,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
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,
|
|
@@ -2585,7 +2585,7 @@ const S3 = /* @__PURE__ */ K({
|
|
|
2585
2585
|
}, 8, ["model-value", "title"])) : w("", !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) {
|
|
@@ -2593,7 +2593,7 @@ function B3(s, e, t) {
|
|
|
2593
2593
|
r.value = p(_);
|
|
2594
2594
|
const $ = d(_);
|
|
2595
2595
|
e.emit("change", $, l), m && (e.emit("input", $), e.emit("update:modelValue", $));
|
|
2596
|
-
}, d = (_) => n.value ||
|
|
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
|
};
|
|
@@ -2616,14 +2616,14 @@ function Z3(s, e, t) {
|
|
|
2616
2616
|
r.value = $.target.value;
|
|
2617
2617
|
}, _ = ($) => {
|
|
2618
2618
|
if (n && n.value) {
|
|
2619
|
-
let
|
|
2620
|
-
typeof
|
|
2619
|
+
let k = n.value;
|
|
2620
|
+
typeof k == "string" && (k = new RegExp(k)), $.key.match(k) || $.preventDefault();
|
|
2621
2621
|
}
|
|
2622
2622
|
}, m = ($) => {
|
|
2623
2623
|
if (n && n.value) {
|
|
2624
|
-
let
|
|
2625
|
-
window.clipboardData).getData("Text"),
|
|
2626
|
-
typeof
|
|
2624
|
+
let L = ($.clipboardData || /* istanbul ignore next */
|
|
2625
|
+
window.clipboardData).getData("Text"), Z = n.value;
|
|
2626
|
+
typeof Z == "string" && (Z = new RegExp(Z)), L.split("").every((S) => !!S.match(Z)) || $.preventDefault();
|
|
2627
2627
|
}
|
|
2628
2628
|
e.emit("paste", $, a);
|
|
2629
2629
|
};
|
|
@@ -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];
|
|
@@ -2675,9 +2675,9 @@ function R3(s, e, t) {
|
|
|
2675
2675
|
appendNewTag: _,
|
|
2676
2676
|
appendNewOption: m,
|
|
2677
2677
|
multipleLabel: $,
|
|
2678
|
-
object:
|
|
2679
|
-
loading:
|
|
2680
|
-
delay:
|
|
2678
|
+
object: k,
|
|
2679
|
+
loading: L,
|
|
2680
|
+
delay: Z,
|
|
2681
2681
|
resolveOnLoad: S,
|
|
2682
2682
|
minChars: h,
|
|
2683
2683
|
filterResults: O,
|
|
@@ -2696,20 +2696,20 @@ function R3(s, e, t) {
|
|
|
2696
2696
|
infinite: _e,
|
|
2697
2697
|
groupOptions: y,
|
|
2698
2698
|
groupHideEmpty: B,
|
|
2699
|
-
groupSelect:
|
|
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, A = t.ev,
|
|
2704
|
+
} = fe(s), ne = Oe().proxy, q = t.iv, A = 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 = g(() => c.value || d.value || !1), $t = g(() => _.value !== void 0 ? _.value : m.value !== void 0 ? m.value : !0), Te = g(() => {
|
|
2705
2705
|
if (M.value) {
|
|
2706
2706
|
let v = r1.value || /* istanbul ignore next */
|
|
2707
|
-
[],
|
|
2707
|
+
[], I = [];
|
|
2708
2708
|
return v.forEach((J) => {
|
|
2709
2709
|
E1(J[y.value]).forEach((oe) => {
|
|
2710
|
-
|
|
2710
|
+
I.push(Object.assign({}, oe, J[ee.value] ? { [ee.value]: !0 } : {}));
|
|
2711
2711
|
});
|
|
2712
|
-
}),
|
|
2712
|
+
}), I;
|
|
2713
2713
|
} else {
|
|
2714
2714
|
let v = E1(Le.value || /* istanbul ignore next */
|
|
2715
2715
|
[]);
|
|
@@ -2717,25 +2717,25 @@ function R3(s, e, t) {
|
|
|
2717
2717
|
}
|
|
2718
2718
|
}), F1 = g(() => {
|
|
2719
2719
|
let v = Te.value;
|
|
2720
|
-
return W.value && (v = v.reverse()),
|
|
2720
|
+
return W.value && (v = v.reverse()), je.value.length && (v = je.value.concat(v)), T1(v);
|
|
2721
2721
|
}), Xe = g(() => {
|
|
2722
2722
|
let v = F1.value;
|
|
2723
2723
|
return k1.value > 0 && (v = v.slice(0, k1.value)), v;
|
|
2724
2724
|
}), r1 = g(() => {
|
|
2725
2725
|
if (!M.value)
|
|
2726
2726
|
return [];
|
|
2727
|
-
let v = [],
|
|
2727
|
+
let v = [], I = Le.value || /* istanbul ignore next */
|
|
2728
2728
|
[];
|
|
2729
2729
|
return We.value.length && v.push({
|
|
2730
2730
|
[U.value]: " ",
|
|
2731
2731
|
[y.value]: [...We.value],
|
|
2732
2732
|
__CREATE__: !0
|
|
2733
|
-
}), v.concat(
|
|
2733
|
+
}), v.concat(I);
|
|
2734
2734
|
}), wt = g(() => {
|
|
2735
|
-
let v = [...r1.value].map((
|
|
2736
|
-
return
|
|
2735
|
+
let v = [...r1.value].map((I) => ({ ...I }));
|
|
2736
|
+
return je.value.length && (v[0] && v[0].__CREATE__ ? v[0][y.value] = [...je.value, ...v[0][y.value]] : v = [{
|
|
2737
2737
|
[U.value]: " ",
|
|
2738
|
-
[y.value]: [...
|
|
2738
|
+
[y.value]: [...je.value],
|
|
2739
2739
|
__CREATE__: !0
|
|
2740
2740
|
}].concat(v)), v;
|
|
2741
2741
|
}), K1 = g(() => {
|
|
@@ -2743,30 +2743,30 @@ function R3(s, e, t) {
|
|
|
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((I, J) => {
|
|
2747
|
+
const oe = E1(I[y.value]);
|
|
2748
2748
|
return {
|
|
2749
|
-
...
|
|
2749
|
+
...I,
|
|
2750
2750
|
index: J,
|
|
2751
2751
|
group: !0,
|
|
2752
|
-
[y.value]: T1(oe, !1).map((Je) => Object.assign({}, Je,
|
|
2753
|
-
__VISIBLE__: T1(oe).map((Je) => Object.assign({}, Je,
|
|
2752
|
+
[y.value]: T1(oe, !1).map((Je) => Object.assign({}, Je, I[ee.value] ? { [ee.value]: !0 } : {})),
|
|
2753
|
+
__VISIBLE__: T1(oe).map((Je) => Object.assign({}, Je, I[ee.value] ? { [ee.value]: !0 } : {}))
|
|
2754
2754
|
};
|
|
2755
2755
|
}));
|
|
2756
2756
|
}), I1 = g(() => {
|
|
2757
2757
|
switch (a.value) {
|
|
2758
2758
|
case "single":
|
|
2759
|
-
return !
|
|
2759
|
+
return !ke(q.value[f.value]);
|
|
2760
2760
|
case "multiple":
|
|
2761
2761
|
case "tags":
|
|
2762
|
-
return !
|
|
2762
|
+
return !ke(q.value) && q.value.length > 0;
|
|
2763
2763
|
}
|
|
2764
|
-
}), Mt = g(() => $ !== void 0 && $.value !== void 0 ? $.value(q.value, ne) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), At = g(() => !Te.value.length && !
|
|
2765
|
-
[f.value]:
|
|
2766
|
-
[
|
|
2767
|
-
[p.value]:
|
|
2764
|
+
}), Mt = g(() => $ !== void 0 && $.value !== void 0 ? $.value(q.value, ne) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), At = g(() => !Te.value.length && !Me.value && !je.value.length), kt = g(() => Te.value.length > 0 && Xe.value.length == 0 && (P.value && M.value || !M.value)), je = g(() => z1.value === !1 || !P.value ? [] : Bt(P.value) !== -1 ? [] : [{
|
|
2765
|
+
[f.value]: P.value,
|
|
2766
|
+
[Ae.value]: P.value,
|
|
2767
|
+
[p.value]: P.value,
|
|
2768
2768
|
__CREATE__: !0
|
|
2769
|
-
}]),
|
|
2769
|
+
}]), Ae = g(() => i.value || p.value), It = g(() => {
|
|
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 = g(() =>
|
|
2777
|
+
}), St = g(() => 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((I) => v.map((J) => J[f.value]).indexOf(I[f.value]) === -1) : q.value.filter((I) => I[f.value] != v[f.value]));
|
|
2796
2796
|
break;
|
|
2797
2797
|
}
|
|
2798
2798
|
e.emit("deselect", G1(v), v, ne);
|
|
2799
|
-
}, G1 = (v) =>
|
|
2799
|
+
}, G1 = (v) => k.value ? v : v[f.value], Y1 = (v) => {
|
|
2800
2800
|
Re(v);
|
|
2801
|
-
}, Vt = (v,
|
|
2802
|
-
if (
|
|
2803
|
-
|
|
2801
|
+
}, Vt = (v, I) => {
|
|
2802
|
+
if (I.button !== 0) {
|
|
2803
|
+
I.preventDefault();
|
|
2804
2804
|
return;
|
|
2805
2805
|
}
|
|
2806
2806
|
Y1(v);
|
|
@@ -2811,16 +2811,16 @@ function R3(s, e, t) {
|
|
|
2811
2811
|
return a.value === "single" ? !1 : Ot(v[y.value]) && v[y.value].length;
|
|
2812
2812
|
switch (a.value) {
|
|
2813
2813
|
case "single":
|
|
2814
|
-
return !
|
|
2814
|
+
return !ke(q.value) && q.value[f.value] == v[f.value];
|
|
2815
2815
|
case "tags":
|
|
2816
2816
|
case "multiple":
|
|
2817
|
-
return !
|
|
2817
|
+
return !ke(q.value) && q.value.map((I) => I[f.value]).indexOf(v[f.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((I) => {
|
|
2823
|
+
Me.value = !1, X1(I);
|
|
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), se.value && he(), D.value && (Ze(), Pe()), v &&
|
|
2836
|
+
v && L1(v), se.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)), se.value && he(), r.value && Ze(), D.value && Pe();
|
|
2848
2848
|
break;
|
|
2849
2849
|
case "tags":
|
|
2850
2850
|
if (v && Se(v)) {
|
|
@@ -2855,17 +2855,17 @@ function R3(s, e, t) {
|
|
|
2855
2855
|
e.emit("max", ne);
|
|
2856
2856
|
return;
|
|
2857
2857
|
}
|
|
2858
|
-
v && L1(v), se.value && he(), v &&
|
|
2858
|
+
v && L1(v), se.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[y.value]) ? Re(v[y.value]) :
|
|
2868
|
-
v[y.value].filter((
|
|
2867
|
+
Ht(v[y.value]) ? Re(v[y.value]) : Ne(
|
|
2868
|
+
v[y.value].filter((I) => q.value.map((J) => J[f.value]).indexOf(I[f.value]) === -1).filter((I) => !I[ee.value]).filter((I, J) => q.value.length + 1 + J <= re.value || re.value === -1)
|
|
2869
2869
|
);
|
|
2870
2870
|
break;
|
|
2871
2871
|
}
|
|
@@ -2874,99 +2874,99 @@ function R3(s, e, t) {
|
|
|
2874
2874
|
}, L1 = (v) => {
|
|
2875
2875
|
Ve(v[f.value]) === void 0 && z1.value && (e.emit("tag", v[f.value], ne), e.emit("option", v[f.value], ne), e.emit("create", v[f.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((I) => !Se(I) && !I[ee.value]) === void 0, Ot = (v) => v.find((I) => !Se(I)) === void 0, Ve = (v) => Te.value[Te.value.map((I) => String(I[f.value])).indexOf(String(v))], Bt = (v, I = !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
2882
|
}, Pt = (v) => B.value ? v.filter(
|
|
2883
|
-
(
|
|
2884
|
-
) : v.filter((
|
|
2883
|
+
(I) => P.value ? I.__VISIBLE__.length : I[y.value].length
|
|
2884
|
+
) : v.filter((I) => P.value ? I.__VISIBLE__.length : !0), T1 = (v, I = !0) => {
|
|
2885
2885
|
let J = v;
|
|
2886
|
-
if (
|
|
2886
|
+
if (P.value && O.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 && I && (J = J.filter((oe) => !Dt(oe))), J;
|
|
2894
2894
|
}, E1 = (v) => {
|
|
2895
|
-
let
|
|
2896
|
-
return
|
|
2897
|
-
let oe =
|
|
2898
|
-
return { [f.value]: J, [
|
|
2899
|
-
})),
|
|
2895
|
+
let I = v;
|
|
2896
|
+
return j3(I) && (I = Object.keys(I).map((J) => {
|
|
2897
|
+
let oe = I[J];
|
|
2898
|
+
return { [f.value]: J, [Ae.value]: oe, [p.value]: oe };
|
|
2899
|
+
})), I = I.map((J) => typeof J == "object" ? J : { [f.value]: J, [Ae.value]: J, [p.value]: J }), I;
|
|
2900
2900
|
}, u1 = () => {
|
|
2901
|
-
|
|
2902
|
-
}, c1 = (v) => (
|
|
2903
|
-
n.value(
|
|
2904
|
-
Le.value = oe || [], typeof v == "function" && v(oe),
|
|
2901
|
+
ke(A.value) || (q.value = d1(A.value));
|
|
2902
|
+
}, c1 = (v) => (Me.value = !0, new Promise((I, 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
|
+
I();
|
|
2909
2909
|
});
|
|
2910
2910
|
})), H1 = () => {
|
|
2911
2911
|
if (I1.value)
|
|
2912
2912
|
if (a.value === "single") {
|
|
2913
2913
|
let v = Ve(q.value[f.value]);
|
|
2914
2914
|
if (v !== void 0) {
|
|
2915
|
-
let
|
|
2916
|
-
q.value[p.value] =
|
|
2915
|
+
let I = v[p.value];
|
|
2916
|
+
q.value[p.value] = I, k.value && (A.value[p.value] = I);
|
|
2917
2917
|
}
|
|
2918
2918
|
} else
|
|
2919
|
-
q.value.forEach((v,
|
|
2920
|
-
let J = Ve(q.value[
|
|
2919
|
+
q.value.forEach((v, I) => {
|
|
2920
|
+
let J = Ve(q.value[I][f.value]);
|
|
2921
2921
|
if (J !== void 0) {
|
|
2922
2922
|
let oe = J[p.value];
|
|
2923
|
-
q.value[
|
|
2923
|
+
q.value[I][p.value] = oe, k.value && (A.value[I][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" ? {} : [] : k.value ? v : a.value === "single" ? Ve(v) || (H.value ? {
|
|
2929
2929
|
[p.value]: v,
|
|
2930
2930
|
[f.value]: v,
|
|
2931
|
-
[
|
|
2932
|
-
} : {}) : v.filter((
|
|
2933
|
-
[p.value]:
|
|
2934
|
-
[f.value]:
|
|
2935
|
-
[
|
|
2931
|
+
[Ae.value]: v
|
|
2932
|
+
} : {}) : v.filter((I) => !!Ve(I) || H.value).map((I) => Ve(I) || {
|
|
2933
|
+
[p.value]: I,
|
|
2934
|
+
[f.value]: I,
|
|
2935
|
+
[Ae.value]: I
|
|
2936
2936
|
}), J1 = () => {
|
|
2937
|
-
A1.value = de(
|
|
2938
|
-
v.length < h.value || !v && h.value !== 0 || (
|
|
2939
|
-
v ==
|
|
2940
|
-
(v ==
|
|
2937
|
+
A1.value = de(P, (v) => {
|
|
2938
|
+
v.length < h.value || !v && h.value !== 0 || (Me.value = !0, x.value && (Le.value = []), setTimeout(() => {
|
|
2939
|
+
v == P.value && n.value(P.value, ne).then((I) => {
|
|
2940
|
+
(v == P.value || !P.value) && (Le.value = I, 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
|
+
(I) => {
|
|
2944
|
+
console.error(I);
|
|
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(A.value) && !Array.isArray(A.value))
|
|
2951
2951
|
throw new Error(`v-model must be an array when using "${a.value}" mode`);
|
|
2952
|
-
return n && typeof n.value == "function" ? S.value ? c1(u1) :
|
|
2952
|
+
return n && typeof n.value == "function" ? S.value ? c1(u1) : k.value == !0 && u1() : (Le.value = n.value, u1()), Z.value > -1 && J1(), de(Z, (v, I) => {
|
|
2953
2953
|
A1.value && A1.value(), v >= 0 && J1();
|
|
2954
2954
|
}), de(A, (v) => {
|
|
2955
|
-
if (
|
|
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
|
-
(
|
|
2961
|
+
(k.value ? v[f.value] != q.value[f.value] : v != q.value[f.value]) && Ie(d1(v), !1);
|
|
2962
2962
|
break;
|
|
2963
2963
|
case "multiple":
|
|
2964
2964
|
case "tags":
|
|
2965
|
-
|
|
2965
|
+
N3(k.value ? v.map((I) => I[f.value]) : v, q.value.map((I) => I[f.value])) || Ie(d1(v), !1);
|
|
2966
2966
|
break;
|
|
2967
2967
|
}
|
|
2968
|
-
}, { deep: !0 }), de(n, (v,
|
|
2969
|
-
typeof s.options == "function" ? S.value && (!
|
|
2968
|
+
}, { deep: !0 }), de(n, (v, I) => {
|
|
2969
|
+
typeof s.options == "function" ? S.value && (!I || v && v.toString() !== I.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,26 +3012,26 @@ function U3(s, e, t) {
|
|
|
3012
3012
|
groupSelect: d,
|
|
3013
3013
|
disabledProp: p,
|
|
3014
3014
|
groupOptions: _
|
|
3015
|
-
} = fe(s), m = t.fo, $ = t.fg,
|
|
3015
|
+
} = fe(s), m = t.fo, $ = t.fg, k = t.handleOptionClick, L = t.handleGroupClick, Z = t.search, S = t.pointer, h = t.setPointer, O = t.clearPointer, x = t.multiselect, se = t.isOpen, f = g(() => m.value.filter((A) => !A[p.value])), H = g(() => $.value.filter((A) => !A[p.value])), U = g(() => c.value !== "single" && d.value), te = g(() => S.value && S.value.group), re = g(() => ne(S.value)), Ce = g(() => {
|
|
3016
3016
|
const A = te.value ? S.value : (
|
|
3017
3017
|
/* istanbul ignore next */
|
|
3018
3018
|
ne(S.value)
|
|
3019
|
-
),
|
|
3020
|
-
let he = H.value[
|
|
3019
|
+
), P = H.value.map((Ie) => Ie[l.value]).indexOf(A[l.value]);
|
|
3020
|
+
let he = H.value[P - 1];
|
|
3021
3021
|
return he === void 0 && (he = X.value), he;
|
|
3022
3022
|
}), D = g(() => {
|
|
3023
|
-
let A = H.value.map((
|
|
3023
|
+
let A = H.value.map((P) => P.label).indexOf(te.value ? S.value[l.value] : ne(S.value)[l.value]) + 1;
|
|
3024
3024
|
return H.value.length <= A && (A = 0), H.value[A];
|
|
3025
3025
|
}), X = g(() => [...H.value].slice(-1)[0]), M = g(() => S.value.__VISIBLE__.filter((A) => !A[p.value])[0]), W = g(() => {
|
|
3026
|
-
const A = re.value.__VISIBLE__.filter((
|
|
3027
|
-
return A[A.map((
|
|
3026
|
+
const A = re.value.__VISIBLE__.filter((P) => !P[p.value]);
|
|
3027
|
+
return A[A.map((P) => P[n.value]).indexOf(S.value[n.value]) - 1];
|
|
3028
3028
|
}), _e = g(() => {
|
|
3029
|
-
const A = ne(S.value).__VISIBLE__.filter((
|
|
3030
|
-
return A[A.map((
|
|
3031
|
-
}), y = g(() => [...Ce.value.__VISIBLE__.filter((A) => !A[p.value])].slice(-1)[0]), B = g(() => [...X.value.__VISIBLE__.filter((A) => !A[p.value])].slice(-1)[0]),
|
|
3029
|
+
const A = ne(S.value).__VISIBLE__.filter((P) => !P[p.value]);
|
|
3030
|
+
return A[A.map((P) => P[n.value]).indexOf(S.value[n.value]) + 1];
|
|
3031
|
+
}), y = g(() => [...Ce.value.__VISIBLE__.filter((A) => !A[p.value])].slice(-1)[0]), B = g(() => [...X.value.__VISIBLE__.filter((A) => !A[p.value])].slice(-1)[0]), T = (A) => S.value && (!A.group && S.value[n.value] === A[n.value] || A.group !== void 0 && S.value[l.value] === A[l.value]) ? !0 : void 0, G = () => {
|
|
3032
3032
|
h(f.value[0] || null);
|
|
3033
3033
|
}, ee = () => {
|
|
3034
|
-
!S.value || S.value[p.value] === !0 || (te.value ?
|
|
3034
|
+
!S.value || S.value[p.value] === !0 || (te.value ? L(S.value) : k(S.value));
|
|
3035
3035
|
}, me = () => {
|
|
3036
3036
|
if (S.value === null)
|
|
3037
3037
|
h((r.value && U.value ? H.value[0].__CREATE__ ? f.value[0] : H.value[0] : f.value[0]) || null);
|
|
@@ -3040,7 +3040,7 @@ function U3(s, e, t) {
|
|
|
3040
3040
|
A === void 0 && (A = D.value, A.__CREATE__ && (A = A[_.value][0])), h(A || /* istanbul ignore next */
|
|
3041
3041
|
null);
|
|
3042
3042
|
} else {
|
|
3043
|
-
let A = f.value.map((
|
|
3043
|
+
let A = f.value.map((P) => P[n.value]).indexOf(S.value[n.value]) + 1;
|
|
3044
3044
|
f.value.length <= A && (A = 0), h(f.value[A] || null);
|
|
3045
3045
|
}
|
|
3046
3046
|
He(() => {
|
|
@@ -3055,35 +3055,35 @@ function U3(s, e, t) {
|
|
|
3055
3055
|
A === void 0 && (A = te.value ? Ce.value : re.value, A.__CREATE__ && (A = y.value, A === void 0 && (A = Ce.value))), h(A || /* istanbul ignore next */
|
|
3056
3056
|
null);
|
|
3057
3057
|
} else {
|
|
3058
|
-
let A = f.value.map((
|
|
3058
|
+
let A = f.value.map((P) => P[n.value]).indexOf(S.value[n.value]) - 1;
|
|
3059
3059
|
A < 0 && (A = f.value.length - 1), h(f.value[A] || null);
|
|
3060
3060
|
}
|
|
3061
3061
|
He(() => {
|
|
3062
3062
|
q();
|
|
3063
3063
|
});
|
|
3064
|
-
}, ne = (A) => H.value.find((
|
|
3064
|
+
}, ne = (A) => H.value.find((P) => P.__VISIBLE__.map((he) => he[n.value]).indexOf(A[n.value]) !== -1), q = () => {
|
|
3065
3065
|
let A = x.value.querySelector("[data-pointed]");
|
|
3066
3066
|
if (!A)
|
|
3067
3067
|
return;
|
|
3068
|
-
let
|
|
3069
|
-
r.value && (
|
|
3068
|
+
let P = A.parentElement.parentElement;
|
|
3069
|
+
r.value && (P = te.value ? A.parentElement.parentElement.parentElement : A.parentElement.parentElement.parentElement.parentElement), A.offsetTop + A.offsetHeight > P.clientHeight + P.scrollTop && (P.scrollTop = A.offsetTop + A.offsetHeight - P.clientHeight), A.offsetTop < P.scrollTop && (P.scrollTop = A.offsetTop);
|
|
3070
3070
|
};
|
|
3071
|
-
return de(
|
|
3071
|
+
return de(Z, (A) => {
|
|
3072
3072
|
i.value && (A.length && a.value ? G() : O());
|
|
3073
3073
|
}), de(se, (A) => {
|
|
3074
3074
|
if (A) {
|
|
3075
|
-
let
|
|
3076
|
-
if (!
|
|
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
3084
|
pointer: S,
|
|
3085
3085
|
canPointGroups: U,
|
|
3086
|
-
isPointed:
|
|
3086
|
+
isPointed: T,
|
|
3087
3087
|
setPointerFirst: G,
|
|
3088
3088
|
selectPointer: ee,
|
|
3089
3089
|
forwardPointer: me,
|
|
@@ -3103,30 +3103,30 @@ 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), $ = 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), $ = Q(null), k = Q(!1), L = Q(!1), Z = g(() => n.value || a.value ? -1 : 0), S = () => {
|
|
3107
3107
|
n.value && l.value.blur(), m.value.blur();
|
|
3108
3108
|
}, h = () => {
|
|
3109
3109
|
n.value && !a.value && l.value.focus();
|
|
3110
3110
|
}, O = (te = !0) => {
|
|
3111
|
-
a.value || (
|
|
3111
|
+
a.value || (k.value = !0, te && r());
|
|
3112
3112
|
}, x = () => {
|
|
3113
|
-
|
|
3114
|
-
|
|
3113
|
+
k.value = !1, setTimeout(() => {
|
|
3114
|
+
k.value || (c(), i.value && d());
|
|
3115
3115
|
}, 1);
|
|
3116
3116
|
};
|
|
3117
3117
|
return {
|
|
3118
3118
|
multiselect: _,
|
|
3119
3119
|
wrapper: m,
|
|
3120
3120
|
tags: $,
|
|
3121
|
-
tabindex:
|
|
3122
|
-
isActive:
|
|
3123
|
-
mouseClicked:
|
|
3121
|
+
tabindex: Z,
|
|
3122
|
+
isActive: k,
|
|
3123
|
+
mouseClicked: L,
|
|
3124
3124
|
blur: S,
|
|
3125
3125
|
focus: h,
|
|
3126
3126
|
activate: O,
|
|
3127
3127
|
deactivate: x,
|
|
3128
3128
|
handleFocusIn: (te) => {
|
|
3129
|
-
te.target.closest("[data-tags]") && te.target.nodeName !== "INPUT" || te.target.closest("[data-clear]") || O(
|
|
3129
|
+
te.target.closest("[data-tags]") && te.target.nodeName !== "INPUT" || te.target.closest("[data-clear]") || O(L.value);
|
|
3130
3130
|
},
|
|
3131
3131
|
handleFocusOut: () => {
|
|
3132
3132
|
x();
|
|
@@ -3135,10 +3135,10 @@ function z3(s, e, t) {
|
|
|
3135
3135
|
x(), S();
|
|
3136
3136
|
},
|
|
3137
3137
|
handleMousedown: (te) => {
|
|
3138
|
-
|
|
3138
|
+
L.value = !0, p.value && (te.target.isEqualNode(m.value) || te.target.isEqualNode($.value)) ? setTimeout(() => {
|
|
3139
3139
|
x();
|
|
3140
3140
|
}, 0) : document.activeElement.isEqualNode(m.value) && !p.value && O(), setTimeout(() => {
|
|
3141
|
-
|
|
3141
|
+
L.value = !1;
|
|
3142
3142
|
}, 0);
|
|
3143
3143
|
}
|
|
3144
3144
|
};
|
|
@@ -3156,29 +3156,29 @@ function F3(s, e, t) {
|
|
|
3156
3156
|
createTag: _,
|
|
3157
3157
|
createOption: m,
|
|
3158
3158
|
reverse: $
|
|
3159
|
-
} = fe(s),
|
|
3160
|
-
n.value === "tags" && !r.value && X.value && l.value && !d.value && h(D.value[D.value.map((
|
|
3161
|
-
}, _e = (
|
|
3162
|
-
let G =
|
|
3163
|
-
for (; G >= 0 && (
|
|
3159
|
+
} = fe(s), k = Oe().proxy, L = t.iv, Z = t.update, S = t.search, h = t.setPointer, O = t.selectPointer, x = t.backwardPointer, se = t.forwardPointer, f = t.multiselect, H = t.wrapper, U = t.tags, te = t.isOpen, re = t.open, Ce = t.blur, D = t.fo, X = g(() => _.value || m.value || !1), M = g(() => 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 && h(D.value[D.value.map((T) => T[c.value]).indexOf(S.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, k);
|
|
3170
3170
|
let G, ee;
|
|
3171
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(
|
|
3171
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(T.key) !== -1 && n.value === "tags" && (G = [...f.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(S.value) === -1 ||
|
|
3173
|
+
if (n.value === "single" || l.value && [null, ""].indexOf(S.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
3184
|
if (M.value.indexOf("enter") === -1 && X.value)
|
|
@@ -3187,49 +3187,49 @@ function F3(s, e, t) {
|
|
|
3187
3187
|
break;
|
|
3188
3188
|
case " ":
|
|
3189
3189
|
if (!X.value && !l.value) {
|
|
3190
|
-
|
|
3190
|
+
T.preventDefault(), W(), O();
|
|
3191
3191
|
return;
|
|
3192
3192
|
}
|
|
3193
3193
|
if (!X.value)
|
|
3194
3194
|
return !1;
|
|
3195
3195
|
if (M.value.indexOf("space") === -1 && X.value)
|
|
3196
3196
|
return;
|
|
3197
|
-
|
|
3197
|
+
T.preventDefault(), W(), O();
|
|
3198
3198
|
break;
|
|
3199
3199
|
case "Tab":
|
|
3200
3200
|
case ";":
|
|
3201
3201
|
case ",":
|
|
3202
|
-
if (M.value.indexOf(
|
|
3202
|
+
if (M.value.indexOf(T.key.toLowerCase()) === -1 || !X.value)
|
|
3203
3203
|
return;
|
|
3204
|
-
W(), O(),
|
|
3204
|
+
W(), O(), 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
3217
|
te.value || re(), se();
|
|
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, k);
|
|
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, $ = t.resolving,
|
|
3243
|
+
} = fe(s), r = t.isOpen, c = t.isPointed, d = t.isSelected, p = t.isDisabled, _ = t.isActive, m = t.canPointGroups, $ = t.resolving, k = t.fo, L = g(() => ({
|
|
3244
3244
|
container: "multiselect",
|
|
3245
3245
|
containerDisabled: "is-disabled",
|
|
3246
3246
|
containerOpen: "is-open",
|
|
@@ -3293,12 +3293,12 @@ function K3(s, e, t) {
|
|
|
3293
3293
|
assist: "multiselect-assistive-text",
|
|
3294
3294
|
spacer: "multiselect-spacer",
|
|
3295
3295
|
...n.value
|
|
3296
|
-
})),
|
|
3296
|
+
})), Z = g(() => !!(r.value && l.value && (!$.value || $.value && k.value.length)));
|
|
3297
3297
|
return {
|
|
3298
3298
|
classList: g(() => {
|
|
3299
|
-
const h =
|
|
3299
|
+
const h = L.value;
|
|
3300
3300
|
return {
|
|
3301
|
-
container: [h.container].concat(a.value ? h.containerDisabled : []).concat(
|
|
3301
|
+
container: [h.container].concat(a.value ? h.containerDisabled : []).concat(Z.value && i.value === "top" ? h.containerOpenTop : []).concat(Z.value && i.value !== "top" ? h.containerOpen : []).concat(_.value ? h.containerActive : []),
|
|
3302
3302
|
wrapper: h.wrapper,
|
|
3303
3303
|
spacer: h.spacer,
|
|
3304
3304
|
singleLabel: h.singleLabel,
|
|
@@ -3320,7 +3320,7 @@ function K3(s, e, t) {
|
|
|
3320
3320
|
spinner: h.spinner,
|
|
3321
3321
|
inifinite: h.inifinite,
|
|
3322
3322
|
inifiniteSpinner: h.inifiniteSpinner,
|
|
3323
|
-
dropdown: [h.dropdown].concat(i.value === "top" ? h.dropdownTop : []).concat(!r.value || !l.value || !
|
|
3323
|
+
dropdown: [h.dropdown].concat(i.value === "top" ? h.dropdownTop : []).concat(!r.value || !l.value || !Z.value ? h.dropdownHidden : []),
|
|
3324
3324
|
options: [h.options].concat(i.value === "top" ? h.optionsTop : []),
|
|
3325
3325
|
group: h.group,
|
|
3326
3326
|
groupLabel: (O) => {
|
|
@@ -3338,30 +3338,30 @@ function K3(s, e, t) {
|
|
|
3338
3338
|
fakeInput: h.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 = g(() => l.value < c.value.length), $ = (
|
|
3349
|
-
const { isIntersecting:
|
|
3350
|
-
if (
|
|
3348
|
+
} = fe(s), i = t.isOpen, l = t.offset, r = t.search, c = t.pfo, d = t.eo, p = Q(null), _ = Q(null), m = g(() => l.value < c.value.length), $ = (L) => {
|
|
3349
|
+
const { isIntersecting: Z, target: S } = L[0];
|
|
3350
|
+
if (Z) {
|
|
3351
3351
|
const h = S.offsetParent, O = h.scrollTop;
|
|
3352
3352
|
l.value += n.value == -1 ? 10 : n.value, He(() => {
|
|
3353
3353
|
h.scrollTop = O;
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
|
-
},
|
|
3356
|
+
}, k = () => {
|
|
3357
3357
|
i.value && l.value < c.value.length ? p.value.observe(_.value) : !i.value && p.value && p.value.disconnect();
|
|
3358
3358
|
};
|
|
3359
3359
|
return de(i, () => {
|
|
3360
|
-
a.value &&
|
|
3360
|
+
a.value && k();
|
|
3361
3361
|
}), de(r, () => {
|
|
3362
|
-
a.value && (l.value = n.value,
|
|
3362
|
+
a.value && (l.value = n.value, k());
|
|
3363
3363
|
}, { flush: "post" }), de(d, () => {
|
|
3364
|
-
a.value &&
|
|
3364
|
+
a.value && k();
|
|
3365
3365
|
}, { immediate: !1, flush: "post" }), m1(() => {
|
|
3366
3366
|
window && window.IntersectionObserver && (p.value = new IntersectionObserver($));
|
|
3367
3367
|
}), {
|
|
@@ -3379,7 +3379,7 @@ 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, $ = t.hasSelected,
|
|
3382
|
+
} = fe(s), _ = t.pointer, m = t.iv, $ = t.hasSelected, k = t.multipleLabelText, L = Q(null), Z = g(() => {
|
|
3383
3383
|
let D = [];
|
|
3384
3384
|
return a && a.value && D.push(a.value), D.push("assist"), D.join("-");
|
|
3385
3385
|
}), S = g(() => {
|
|
@@ -3391,10 +3391,10 @@ function Y3(s, e, t) {
|
|
|
3391
3391
|
return D.push(_.value.group ? "multiselect-group" : "multiselect-option"), D.push(_.value.group ? _.value.index : _.value[i.value]), D.join("-");
|
|
3392
3392
|
}), O = g(() => n.value), x = g(() => r.value !== "single"), se = g(() => {
|
|
3393
3393
|
let D = "";
|
|
3394
|
-
return r.value === "single" && $.value && (D += m.value[l.value]), r.value === "multiple" && $.value && (D +=
|
|
3394
|
+
return r.value === "single" && $.value && (D += m.value[l.value]), r.value === "multiple" && $.value && (D += k.value), r.value === "tags" && $.value && (D += m.value.map((X) => X[l.value]).join(", ")), D;
|
|
3395
3395
|
}), f = g(() => {
|
|
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, se.value && D["aria-label"] && (D["aria-label"] = `${se.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,12 +3411,12 @@ 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
3417
|
arias: f,
|
|
3418
3418
|
ariaLabel: se,
|
|
3419
|
-
ariaAssist:
|
|
3419
|
+
ariaAssist: Z,
|
|
3420
3420
|
ariaControls: S,
|
|
3421
3421
|
ariaPlaceholder: O,
|
|
3422
3422
|
ariaMultiselectable: x,
|
|
@@ -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,
|
|
@@ -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",
|
|
@@ -3910,7 +3910,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
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
|
),
|
|
@@ -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,
|
|
@@ -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
|
)
|
|
@@ -3988,7 +3988,7 @@ 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
|
)
|
|
@@ -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
|
)
|
|
@@ -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
|
)
|
|
@@ -4251,7 +4251,7 @@ function h5(s, e, t, n, a, i) {
|
|
|
4251
4251
|
class: F(s.classList.assist),
|
|
4252
4252
|
id: s.ariaAssist,
|
|
4253
4253
|
"aria-hidden": "true"
|
|
4254
|
-
},
|
|
4254
|
+
}, N(s.ariaLabel), 11, m5)) : w("v-if", !0),
|
|
4255
4255
|
w(" Create height for empty input "),
|
|
4256
4256
|
o(
|
|
4257
4257
|
"div",
|
|
@@ -4384,7 +4384,7 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
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",
|
|
@@ -4395,9 +4395,9 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4395
4395
|
value: m.name,
|
|
4396
4396
|
class: "ao-field__input ao-subtask__field",
|
|
4397
4397
|
type: "text",
|
|
4398
|
-
onChange: (
|
|
4398
|
+
onChange: (k) => l(k, m.id)
|
|
4399
4399
|
}, null, 40, I5),
|
|
4400
|
-
p.users ? (u(),
|
|
4400
|
+
p.users ? (u(), j(E(ve), {
|
|
4401
4401
|
key: 1,
|
|
4402
4402
|
value: ($ = m.assignee) == null ? void 0 : $.id,
|
|
4403
4403
|
options: a.value,
|
|
@@ -4405,13 +4405,13 @@ const A5 = { class: "ao-subtasks" }, k5 = { class: "ao-subtasks__list" }, I5 = [
|
|
|
4405
4405
|
searchable: !0,
|
|
4406
4406
|
class: "ao-subtask__assignees",
|
|
4407
4407
|
placeholder: p.$t("feed.filters.assignee.placeholder"),
|
|
4408
|
-
onChange: (
|
|
4408
|
+
onChange: (k) => d(k, m.id)
|
|
4409
4409
|
}, {
|
|
4410
|
-
tag: R(({ option:
|
|
4410
|
+
tag: R(({ option: k, handleTagRemove: L }) => [
|
|
4411
4411
|
b(Ye, {
|
|
4412
|
-
"user-name":
|
|
4412
|
+
"user-name": k.label,
|
|
4413
4413
|
"is-closable": !0,
|
|
4414
|
-
onClose: (
|
|
4414
|
+
onClose: (Z) => L(k, Z)
|
|
4415
4415
|
}, null, 8, ["user-name", "onClose"])
|
|
4416
4416
|
]),
|
|
4417
4417
|
_: 2
|
|
@@ -4493,10 +4493,10 @@ 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
4502
|
(u(!0), C(le, null, pe(d.attachments, (m) => (u(), C("li", {
|
|
@@ -4514,7 +4514,7 @@ const L5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
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
|
b(ue, {
|
|
4520
4520
|
class: "ao-files__delete-button",
|
|
@@ -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: {},
|
|
@@ -4633,7 +4633,7 @@ const N5 = {
|
|
|
4633
4633
|
})), $ = g(() => (t.templateMilestones || []).filter((H) => H.id !== t.milestoneId).map((H) => ({
|
|
4634
4634
|
label: H.name,
|
|
4635
4635
|
value: H.id
|
|
4636
|
-
}))),
|
|
4636
|
+
}))), k = g({
|
|
4637
4637
|
get() {
|
|
4638
4638
|
return t.activity.dependingMilestones;
|
|
4639
4639
|
},
|
|
@@ -4643,9 +4643,9 @@ const N5 = {
|
|
|
4643
4643
|
dependingMilestones: f
|
|
4644
4644
|
});
|
|
4645
4645
|
}
|
|
4646
|
-
}),
|
|
4646
|
+
}), L = (f) => {
|
|
4647
4647
|
e("addSubtask", f);
|
|
4648
|
-
},
|
|
4648
|
+
}, Z = (f) => {
|
|
4649
4649
|
e("updateSubtask", f);
|
|
4650
4650
|
}, S = (f) => {
|
|
4651
4651
|
e("deleteSubtask", f);
|
|
@@ -4677,12 +4677,12 @@ const N5 = {
|
|
|
4677
4677
|
file: f
|
|
4678
4678
|
});
|
|
4679
4679
|
};
|
|
4680
|
-
return (f, H) => (u(),
|
|
4680
|
+
return (f, H) => (u(), j(Ct, {
|
|
4681
4681
|
onClose: H[8] || (H[8] = (U) => f.$emit("close"))
|
|
4682
4682
|
}, {
|
|
4683
4683
|
header: R(() => [
|
|
4684
4684
|
Y(f.$slots, "header", {}, () => [
|
|
4685
|
-
f.breadcrumbs ? (u(), C("div",
|
|
4685
|
+
f.breadcrumbs ? (u(), C("div", j5, N(f.breadcrumbs), 1)) : w("", !0),
|
|
4686
4686
|
b(ce, {
|
|
4687
4687
|
title: f.activity.name || f.activity.id,
|
|
4688
4688
|
level: 4,
|
|
@@ -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(f.$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(f.$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(f.$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,7 +4752,7 @@ const N5 = {
|
|
|
4752
4752
|
]),
|
|
4753
4753
|
o("div", X5, [
|
|
4754
4754
|
o("div", J5, [
|
|
4755
|
-
o("span", Q5,
|
|
4755
|
+
o("span", Q5, N(f.$t("activity.assignee.label")), 1),
|
|
4756
4756
|
b(E(ve), {
|
|
4757
4757
|
modelValue: O.value,
|
|
4758
4758
|
"onUpdate:modelValue": H[3] || (H[3] = (U) => O.value = U),
|
|
@@ -4775,7 +4775,7 @@ const N5 = {
|
|
|
4775
4775
|
]),
|
|
4776
4776
|
o("div", x5, [
|
|
4777
4777
|
o("label", e7, [
|
|
4778
|
-
o("span", t7,
|
|
4778
|
+
o("span", t7, N(f.$t("activity.type.label")), 1),
|
|
4779
4779
|
b(E(ve), {
|
|
4780
4780
|
modelValue: r.value,
|
|
4781
4781
|
"onUpdate:modelValue": H[4] || (H[4] = (U) => r.value = U),
|
|
@@ -4799,7 +4799,7 @@ const N5 = {
|
|
|
4799
4799
|
]),
|
|
4800
4800
|
o("div", l7, [
|
|
4801
4801
|
o("label", n7, [
|
|
4802
|
-
o("span", i7,
|
|
4802
|
+
o("span", i7, N(f.$t("activity.dependingOn.label")), 1),
|
|
4803
4803
|
b(E(ve), {
|
|
4804
4804
|
modelValue: d.value,
|
|
4805
4805
|
"onUpdate:modelValue": H[5] || (H[5] = (U) => d.value = U),
|
|
@@ -4813,7 +4813,7 @@ const N5 = {
|
|
|
4813
4813
|
]),
|
|
4814
4814
|
o("div", o7, [
|
|
4815
4815
|
o("label", r7, [
|
|
4816
|
-
o("span", u7,
|
|
4816
|
+
o("span", u7, N(f.$t("activity.blocking.label")), 1),
|
|
4817
4817
|
b(E(ve), {
|
|
4818
4818
|
modelValue: _.value,
|
|
4819
4819
|
"onUpdate:modelValue": H[6] || (H[6] = (U) => _.value = U),
|
|
@@ -4827,10 +4827,10 @@ const N5 = {
|
|
|
4827
4827
|
]),
|
|
4828
4828
|
o("div", c7, [
|
|
4829
4829
|
o("label", d7, [
|
|
4830
|
-
o("span", p7,
|
|
4830
|
+
o("span", p7, N(f.$t("activity.dependingMilestone.label")), 1),
|
|
4831
4831
|
b(E(ve), {
|
|
4832
|
-
modelValue:
|
|
4833
|
-
"onUpdate:modelValue": H[7] || (H[7] = (U) =>
|
|
4832
|
+
modelValue: k.value,
|
|
4833
|
+
"onUpdate:modelValue": H[7] || (H[7] = (U) => k.value = U),
|
|
4834
4834
|
class: "ao-field__multiselect",
|
|
4835
4835
|
mode: "tags",
|
|
4836
4836
|
"close-on-select": !1,
|
|
@@ -4853,8 +4853,8 @@ const N5 = {
|
|
|
4853
4853
|
subtasks: f.activity.tasks || [],
|
|
4854
4854
|
"activity-id": f.activity.id,
|
|
4855
4855
|
users: f.users,
|
|
4856
|
-
onAdd:
|
|
4857
|
-
onUpdate:
|
|
4856
|
+
onAdd: L,
|
|
4857
|
+
onUpdate: Z,
|
|
4858
4858
|
onDelete: S
|
|
4859
4859
|
}, null, 8, ["subtasks", "activity-id", "users"])
|
|
4860
4860
|
]),
|
|
@@ -4978,22 +4978,22 @@ const zu = {
|
|
|
4978
4978
|
set(S) {
|
|
4979
4979
|
e("update:rule", { ...t.rule, trigger: S });
|
|
4980
4980
|
}
|
|
4981
|
-
}), $ = g(() => Object.values(g7)),
|
|
4981
|
+
}), $ = g(() => Object.values(g7)), k = g({
|
|
4982
4982
|
get() {
|
|
4983
4983
|
return t.rule.duration;
|
|
4984
4984
|
},
|
|
4985
4985
|
set(S) {
|
|
4986
4986
|
e("update:rule", { ...t.rule, duration: S });
|
|
4987
4987
|
}
|
|
4988
|
-
}),
|
|
4988
|
+
}), L = g({
|
|
4989
4989
|
get() {
|
|
4990
4990
|
return t.rule.durationUnit;
|
|
4991
4991
|
},
|
|
4992
4992
|
set(S) {
|
|
4993
4993
|
e("update:rule", { ...t.rule, durationUnit: S });
|
|
4994
4994
|
}
|
|
4995
|
-
}),
|
|
4996
|
-
return (S, h) => (u(),
|
|
4995
|
+
}), Z = g(() => Object.values(y7));
|
|
4996
|
+
return (S, h) => (u(), j(Ke(S.tagName), { class: "ao-rule-line" }, {
|
|
4997
4997
|
default: R(() => [
|
|
4998
4998
|
b(E(ve), {
|
|
4999
4999
|
modelValue: a.value,
|
|
@@ -5016,21 +5016,21 @@ const zu = {
|
|
|
5016
5016
|
options: p.value
|
|
5017
5017
|
}, null, 8, ["modelValue", "options"]),
|
|
5018
5018
|
qe(o("input", {
|
|
5019
|
-
"onUpdate:modelValue": h[4] || (h[4] = (O) =>
|
|
5019
|
+
"onUpdate:modelValue": h[4] || (h[4] = (O) => k.value = O),
|
|
5020
5020
|
type: "number",
|
|
5021
5021
|
min: "0"
|
|
5022
5022
|
}, null, 512), [
|
|
5023
5023
|
[
|
|
5024
5024
|
l1,
|
|
5025
|
-
|
|
5025
|
+
k.value,
|
|
5026
5026
|
void 0,
|
|
5027
5027
|
{ number: !0 }
|
|
5028
5028
|
]
|
|
5029
5029
|
]),
|
|
5030
5030
|
b(E(ve), {
|
|
5031
|
-
modelValue:
|
|
5032
|
-
"onUpdate:modelValue": h[5] || (h[5] = (O) =>
|
|
5033
|
-
options:
|
|
5031
|
+
modelValue: L.value,
|
|
5032
|
+
"onUpdate:modelValue": h[5] || (h[5] = (O) => L.value = O),
|
|
5033
|
+
options: Z.value
|
|
5034
5034
|
}, null, 8, ["modelValue", "options"]),
|
|
5035
5035
|
b(ue, {
|
|
5036
5036
|
class: "ao-rule-line__remove",
|
|
@@ -5059,7 +5059,7 @@ 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
|
b(ce, {
|
|
5065
5065
|
title: a.$t("template.rules.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(le, null, pe(a.rules, (l) => (u(),
|
|
5072
|
+
(u(!0), C(le, null, pe(a.rules, (l) => (u(), j($7, {
|
|
5073
5073
|
key: l.id,
|
|
5074
5074
|
rule: l,
|
|
5075
5075
|
"template-phases": a.templatePhases,
|
|
@@ -5120,31 +5120,31 @@ const k7 = {
|
|
|
5120
5120
|
}
|
|
5121
5121
|
), i = g(() => {
|
|
5122
5122
|
var y, B;
|
|
5123
|
-
return (B = (y = a == null ? void 0 : a.value) == null ? void 0 : y.phases) == null ? void 0 : B.find((
|
|
5123
|
+
return (B = (y = a == null ? void 0 : a.value) == null ? void 0 : y.phases) == null ? void 0 : B.find((T) => T.id === t.phaseId);
|
|
5124
5124
|
}), l = g(() => {
|
|
5125
5125
|
var y, B;
|
|
5126
5126
|
return (B = (y = i.value) == null ? void 0 : y.milestones) == null ? void 0 : B.find(
|
|
5127
|
-
(
|
|
5127
|
+
(T) => T.id === t.milestoneId
|
|
5128
5128
|
);
|
|
5129
5129
|
}), r = g(() => {
|
|
5130
5130
|
var y, B;
|
|
5131
|
-
return ((B = (y = a.value) == null ? void 0 : y.phases) == null ? void 0 : B.reduce((
|
|
5131
|
+
return ((B = (y = a.value) == null ? void 0 : y.phases) == null ? void 0 : B.reduce((T, G) => {
|
|
5132
5132
|
const ee = G.milestones || [];
|
|
5133
|
-
return [...
|
|
5133
|
+
return [...T, ...ee];
|
|
5134
5134
|
}, [])) || [];
|
|
5135
5135
|
}), c = g(() => {
|
|
5136
5136
|
var y, B;
|
|
5137
|
-
return ((B = (y = a.value) == null ? void 0 : y.phases) == null ? void 0 : B.reduce((
|
|
5137
|
+
return ((B = (y = a.value) == null ? void 0 : y.phases) == null ? void 0 : B.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
5144
|
}), d = g(() => {
|
|
5145
5145
|
var y, B;
|
|
5146
5146
|
return (B = (y = l.value) == null ? void 0 : y.activities) == null ? void 0 : B.find(
|
|
5147
|
-
(
|
|
5147
|
+
(T) => T.id === t.activityId
|
|
5148
5148
|
);
|
|
5149
5149
|
}), p = g(() => {
|
|
5150
5150
|
var y;
|
|
@@ -5179,7 +5179,7 @@ const k7 = {
|
|
|
5179
5179
|
itemType: ie.TEMPLATES,
|
|
5180
5180
|
data: { name: y }
|
|
5181
5181
|
});
|
|
5182
|
-
},
|
|
5182
|
+
}, k = (y) => {
|
|
5183
5183
|
e("removeItem", {
|
|
5184
5184
|
type: ie.PHASES,
|
|
5185
5185
|
templateId: t.templateId,
|
|
@@ -5187,19 +5187,19 @@ const k7 = {
|
|
|
5187
5187
|
id: y
|
|
5188
5188
|
}
|
|
5189
5189
|
});
|
|
5190
|
-
},
|
|
5190
|
+
}, L = (y, B) => {
|
|
5191
5191
|
e("updateItem", {
|
|
5192
5192
|
templateId: t.templateId,
|
|
5193
5193
|
id: y,
|
|
5194
5194
|
itemType: ie.PHASES,
|
|
5195
5195
|
data: { name: B }
|
|
5196
5196
|
});
|
|
5197
|
-
},
|
|
5197
|
+
}, Z = (y) => {
|
|
5198
5198
|
e("updateItem", y);
|
|
5199
5199
|
}, S = (y) => {
|
|
5200
5200
|
if (!i.value)
|
|
5201
5201
|
return;
|
|
5202
|
-
const { name: B, rank:
|
|
5202
|
+
const { name: B, rank: T } = ze(
|
|
5203
5203
|
i.value.milestones,
|
|
5204
5204
|
"milestone",
|
|
5205
5205
|
n
|
|
@@ -5210,7 +5210,7 @@ const k7 = {
|
|
|
5210
5210
|
phaseId: y.phaseId,
|
|
5211
5211
|
item: {
|
|
5212
5212
|
name: B,
|
|
5213
|
-
rank:
|
|
5213
|
+
rank: T,
|
|
5214
5214
|
phaseId: y.phaseId
|
|
5215
5215
|
}
|
|
5216
5216
|
});
|
|
@@ -5224,18 +5224,18 @@ const k7 = {
|
|
|
5224
5224
|
}
|
|
5225
5225
|
});
|
|
5226
5226
|
}, O = (y) => {
|
|
5227
|
-
const { id: B, ...
|
|
5227
|
+
const { id: B, ...T } = y;
|
|
5228
5228
|
e("updateItem", {
|
|
5229
5229
|
itemType: ie.MILESTONES,
|
|
5230
5230
|
id: B,
|
|
5231
5231
|
templateId: t.templateId,
|
|
5232
|
-
data:
|
|
5232
|
+
data: T
|
|
5233
5233
|
});
|
|
5234
5234
|
}, x = (y) => {
|
|
5235
5235
|
const { milestoneId: B } = y;
|
|
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
|
|
@@ -5243,26 +5243,26 @@ const k7 = {
|
|
|
5243
5243
|
e("addItem", {
|
|
5244
5244
|
type: ie.ACTIVITIES,
|
|
5245
5245
|
milestoneId: B,
|
|
5246
|
-
item: { name:
|
|
5246
|
+
item: { name: T, rank: G, milestoneId: B }
|
|
5247
5247
|
});
|
|
5248
5248
|
}, se = (y) => {
|
|
5249
|
-
const { phaseId: B, milestoneId:
|
|
5249
|
+
const { phaseId: B, milestoneId: T } = y;
|
|
5250
5250
|
e("removeItem", {
|
|
5251
5251
|
type: ie.ACTIVITIES,
|
|
5252
5252
|
templateId: t.templateId,
|
|
5253
5253
|
phaseId: B,
|
|
5254
|
-
milestoneId:
|
|
5254
|
+
milestoneId: T,
|
|
5255
5255
|
data: {
|
|
5256
5256
|
id: y.id
|
|
5257
5257
|
}
|
|
5258
5258
|
});
|
|
5259
5259
|
}, f = (y) => {
|
|
5260
|
-
const { id: B, ...
|
|
5260
|
+
const { id: B, ...T } = y;
|
|
5261
5261
|
e("updateItem", {
|
|
5262
5262
|
itemType: ie.ACTIVITIES,
|
|
5263
5263
|
id: B,
|
|
5264
5264
|
templateId: t.templateId,
|
|
5265
|
-
data:
|
|
5265
|
+
data: T
|
|
5266
5266
|
});
|
|
5267
5267
|
}, H = Q(!1), U = () => {
|
|
5268
5268
|
H.value = !H.value;
|
|
@@ -5273,13 +5273,13 @@ const k7 = {
|
|
|
5273
5273
|
}, Ce = (y) => {
|
|
5274
5274
|
var B;
|
|
5275
5275
|
if (y.moved) {
|
|
5276
|
-
const
|
|
5276
|
+
const T = w1(y, ((B = a.value) == null ? void 0 : B.phases) ?? []);
|
|
5277
5277
|
e("updateItem", {
|
|
5278
5278
|
itemType: ie.PHASES,
|
|
5279
5279
|
id: y.moved.element.id,
|
|
5280
5280
|
templateId: t.templateId,
|
|
5281
5281
|
data: {
|
|
5282
|
-
rank:
|
|
5282
|
+
rank: T
|
|
5283
5283
|
}
|
|
5284
5284
|
});
|
|
5285
5285
|
}
|
|
@@ -5293,11 +5293,11 @@ const k7 = {
|
|
|
5293
5293
|
item: y
|
|
5294
5294
|
});
|
|
5295
5295
|
}, X = (y) => {
|
|
5296
|
-
var B,
|
|
5296
|
+
var B, T, G;
|
|
5297
5297
|
!i.value || !l.value || !d.value || e("updateItem", {
|
|
5298
5298
|
itemType: ie.SUBTASKS,
|
|
5299
5299
|
phaseId: (B = i.value) == null ? void 0 : B.id,
|
|
5300
|
-
milestoneId: (
|
|
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
5303
|
data: y
|
|
@@ -5317,7 +5317,7 @@ const k7 = {
|
|
|
5317
5317
|
e("removeFile", y);
|
|
5318
5318
|
};
|
|
5319
5319
|
return (y, B) => {
|
|
5320
|
-
var
|
|
5320
|
+
var T, G, ee, me, $e, ne;
|
|
5321
5321
|
return a.value ? (u(), C("div", k7, [
|
|
5322
5322
|
b(M1, {
|
|
5323
5323
|
"can-go-back": !0,
|
|
@@ -5370,13 +5370,13 @@ const k7 = {
|
|
|
5370
5370
|
milestones: q.milestones,
|
|
5371
5371
|
"is-active": ((A = i.value) == null ? void 0 : A.id) === q.id,
|
|
5372
5372
|
"is-draggable": !0,
|
|
5373
|
-
onClick: (
|
|
5373
|
+
onClick: (P) => y.$router.push({
|
|
5374
5374
|
params: { templateId: y.templateId, phaseId: q.id }
|
|
5375
5375
|
}),
|
|
5376
|
-
"onUpdate:title": (
|
|
5377
|
-
|
|
5376
|
+
"onUpdate:title": (P) => {
|
|
5377
|
+
L(q.id, P);
|
|
5378
5378
|
},
|
|
5379
|
-
onRemove: () =>
|
|
5379
|
+
onRemove: () => k(q.id)
|
|
5380
5380
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
5381
5381
|
];
|
|
5382
5382
|
}),
|
|
@@ -5393,19 +5393,19 @@ 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
5398
|
"template-id": y.templateId,
|
|
5399
5399
|
phase: i.value,
|
|
5400
|
-
"milestone-id": (
|
|
5400
|
+
"milestone-id": (T = l.value) == null ? void 0 : T.id,
|
|
5401
5401
|
onAddMilestone: S,
|
|
5402
5402
|
onUpdateMilestone: O,
|
|
5403
|
-
onUpdatePhase:
|
|
5403
|
+
onUpdatePhase: Z,
|
|
5404
5404
|
onRemoveMilestone: h
|
|
5405
5405
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : w("", !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
5410
|
"template-id": y.templateId,
|
|
5411
5411
|
"phase-id": (G = i.value) == null ? void 0 : G.id,
|
|
@@ -5418,8 +5418,8 @@ const k7 = {
|
|
|
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,
|
|
@@ -5439,8 +5439,8 @@ const k7 = {
|
|
|
5439
5439
|
onRemoveFile: _e
|
|
5440
5440
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : w("", !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 || [],
|
|
@@ -5469,7 +5469,7 @@ 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(() => [
|
|
@@ -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({
|
|
@@ -5526,10 +5526,10 @@ const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-pr
|
|
|
5526
5526
|
var i;
|
|
5527
5527
|
return (i = e.milestones) == null ? void 0 : i.filter((l) => l.status === h7.done).length;
|
|
5528
5528
|
}), a = g(() => (n.value || 0) / (t.value || 1));
|
|
5529
|
-
return (i, l) => (u(),
|
|
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",
|
|
@@ -5546,14 +5546,14 @@ const Z7 = { class: "ao-card-project-phase__header" }, P7 = { class: "ao-card-pr
|
|
|
5546
5546
|
]),
|
|
5547
5547
|
footer: R(() => [
|
|
5548
5548
|
o("div", P7, [
|
|
5549
|
-
o("div",
|
|
5549
|
+
o("div", j7, [
|
|
5550
5550
|
t.value ? (u(), C(le, { key: 0 }, [
|
|
5551
|
-
o("div",
|
|
5551
|
+
o("div", N7, [
|
|
5552
5552
|
b(ae, {
|
|
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
|
b(q1, {
|
|
5559
5559
|
percentages: a.value,
|
|
@@ -5592,7 +5592,7 @@ const z7 = { class: "ao-card-project-phase__footer" }, F7 = { class: "ao-card-pr
|
|
|
5592
5592
|
return ((r = l.status) == null ? void 0 : r.id) === ((c = e.doneStatus) == null ? void 0 : c.id);
|
|
5593
5593
|
}).length;
|
|
5594
5594
|
}), a = g(() => (n.value || 0) / (t.value || 1));
|
|
5595
|
-
return (i, l) => (u(),
|
|
5595
|
+
return (i, l) => (u(), j(U1, {
|
|
5596
5596
|
class: "ao-card-project-milestone",
|
|
5597
5597
|
"is-clickable": !0,
|
|
5598
5598
|
"tag-name": "li"
|
|
@@ -5612,7 +5612,7 @@ const z7 = { class: "ao-card-project-phase__footer" }, F7 = { class: "ao-card-pr
|
|
|
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
|
b(q1, {
|
|
5618
5618
|
percentages: a.value,
|
|
@@ -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(le, null, pe(a.value, (c) => (u(),
|
|
5656
|
+
(u(!0), C(le, null, pe(a.value, (c) => (u(), j(W7, {
|
|
5657
5657
|
id: c.id,
|
|
5658
5658
|
key: c.id,
|
|
5659
5659
|
name: c.name,
|
|
@@ -5716,11 +5716,11 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5716
5716
|
() => l.value.flatMap((h) => h.activities)
|
|
5717
5717
|
), $ = (h) => {
|
|
5718
5718
|
e("addFiles", h);
|
|
5719
|
-
},
|
|
5719
|
+
}, k = (h) => {
|
|
5720
5720
|
e("removeFile", h);
|
|
5721
|
-
},
|
|
5721
|
+
}, L = (h) => {
|
|
5722
5722
|
e("addComment", h);
|
|
5723
|
-
},
|
|
5723
|
+
}, Z = (h) => {
|
|
5724
5724
|
e("updateComment", h);
|
|
5725
5725
|
}, S = (h) => {
|
|
5726
5726
|
e("removeComment", h);
|
|
@@ -5769,7 +5769,7 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5769
5769
|
])
|
|
5770
5770
|
]),
|
|
5771
5771
|
o("ul", d0, [
|
|
5772
|
-
(u(!0), C(le, null, pe(i.value, (se) => (u(),
|
|
5772
|
+
(u(!0), C(le, null, pe(i.value, (se) => (u(), j(s0, {
|
|
5773
5773
|
key: se.id,
|
|
5774
5774
|
phase: se,
|
|
5775
5775
|
"project-name": h.project.name,
|
|
@@ -5786,16 +5786,16 @@ const a0 = { class: "ao-project-overview" }, l0 = { class: "ao-project" }, n0 =
|
|
|
5786
5786
|
onClose: O[0] || (O[0] = (se) => h.$router.push({ name: E(Fe).project })),
|
|
5787
5787
|
onAddActivity: d
|
|
5788
5788
|
}, null, 8, ["milestones", "project-name", "users"]),
|
|
5789
|
-
(u(),
|
|
5789
|
+
(u(), j(C1, { to: "body" }, [
|
|
5790
5790
|
b(x, {
|
|
5791
5791
|
name: "modal",
|
|
5792
5792
|
activities: m.value,
|
|
5793
5793
|
"onUpdate:activity": p,
|
|
5794
5794
|
onAddSubtask: _,
|
|
5795
5795
|
onAddFiles: $,
|
|
5796
|
-
onRemoveFile:
|
|
5797
|
-
onAddComment:
|
|
5798
|
-
onUpdateComment:
|
|
5796
|
+
onRemoveFile: k,
|
|
5797
|
+
onAddComment: L,
|
|
5798
|
+
onUpdateComment: Z,
|
|
5799
5799
|
onRemoveComment: S
|
|
5800
5800
|
}, null, 8, ["activities"])
|
|
5801
5801
|
]))
|
|
@@ -5854,7 +5854,7 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5854
5854
|
var _;
|
|
5855
5855
|
return (_ = t.assignees) == null ? void 0 : _.map((m) => {
|
|
5856
5856
|
var $;
|
|
5857
|
-
return ($ = t.users) == null ? void 0 : $.find((
|
|
5857
|
+
return ($ = t.users) == null ? void 0 : $.find((k) => k.id === m);
|
|
5858
5858
|
});
|
|
5859
5859
|
}), l = (_) => {
|
|
5860
5860
|
const { firstName: m, lastName: $ } = _ || {};
|
|
@@ -5868,20 +5868,20 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5868
5868
|
var _;
|
|
5869
5869
|
return (_ = t.subtasks) == null ? void 0 : _.filter((m) => m.isDone).length;
|
|
5870
5870
|
}), p = g(() => (d.value || 0) / (c.value || 1));
|
|
5871
|
-
return (_, m) => (u(),
|
|
5871
|
+
return (_, m) => (u(), j(U1, {
|
|
5872
5872
|
class: "ao-card-feed",
|
|
5873
5873
|
"is-clickable": !0
|
|
5874
5874
|
}, {
|
|
5875
5875
|
header: R(() => [
|
|
5876
5876
|
o("div", v0, [
|
|
5877
|
-
_.projectName ? (u(),
|
|
5877
|
+
_.projectName ? (u(), j(f1, {
|
|
5878
5878
|
key: 0,
|
|
5879
5879
|
label: _.projectName,
|
|
5880
5880
|
class: "ao-card-feed__project",
|
|
5881
5881
|
variant: "solid",
|
|
5882
5882
|
color: "primary"
|
|
5883
5883
|
}, null, 8, ["label"])) : w("", !0),
|
|
5884
|
-
_.isImportant ? (u(),
|
|
5884
|
+
_.isImportant ? (u(), j(ae, {
|
|
5885
5885
|
key: 1,
|
|
5886
5886
|
name: "FlagRounded",
|
|
5887
5887
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
@@ -5894,14 +5894,14 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5894
5894
|
]),
|
|
5895
5895
|
default: R(() => [
|
|
5896
5896
|
o("div", _0, [
|
|
5897
|
-
a.value ? (u(), C("span", m0,
|
|
5897
|
+
a.value ? (u(), C("span", m0, N(a.value), 1)) : w("", !0),
|
|
5898
5898
|
b(ce, {
|
|
5899
5899
|
title: _.name,
|
|
5900
5900
|
level: 5,
|
|
5901
5901
|
"is-editable": !0,
|
|
5902
5902
|
"onUpdate:title": n
|
|
5903
5903
|
}, null, 8, ["title"]),
|
|
5904
|
-
_.endDate ? (u(), C("span", h0,
|
|
5904
|
+
_.endDate ? (u(), C("span", h0, N(_.endDate), 1)) : w("", !0)
|
|
5905
5905
|
])
|
|
5906
5906
|
]),
|
|
5907
5907
|
footer: R(() => [
|
|
@@ -5926,14 +5926,14 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5926
5926
|
name: "ChatOutline",
|
|
5927
5927
|
size: "sm"
|
|
5928
5928
|
}),
|
|
5929
|
-
o("span", M0,
|
|
5929
|
+
o("span", M0, N(_.comments), 1)
|
|
5930
5930
|
])) : w("", !0),
|
|
5931
5931
|
_.attachments ? (u(), C("li", A0, [
|
|
5932
5932
|
b(ae, {
|
|
5933
5933
|
name: "AttachFileRounded",
|
|
5934
5934
|
size: "sm"
|
|
5935
5935
|
}),
|
|
5936
|
-
o("span", k0,
|
|
5936
|
+
o("span", k0, N(_.attachments), 1)
|
|
5937
5937
|
])) : w("", !0)
|
|
5938
5938
|
])) : w("", !0)
|
|
5939
5939
|
]),
|
|
@@ -5944,7 +5944,7 @@ const v0 = { class: "ao-card-feed__header" }, C0 = {
|
|
|
5944
5944
|
name: "SelectCheckBox",
|
|
5945
5945
|
size: "sm"
|
|
5946
5946
|
}),
|
|
5947
|
-
o("span", L0,
|
|
5947
|
+
o("span", L0, N(d.value) + " / " + N(c.value), 1)
|
|
5948
5948
|
]),
|
|
5949
5949
|
b(q1, {
|
|
5950
5950
|
percentages: p.value,
|
|
@@ -5991,7 +5991,7 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
5991
5991
|
return u(), C("div", T0, [
|
|
5992
5992
|
o("header", E0, [
|
|
5993
5993
|
o("div", H0, [
|
|
5994
|
-
o("span", null,
|
|
5994
|
+
o("span", null, N(c.$t("project.milestone.title")), 1),
|
|
5995
5995
|
b(ce, {
|
|
5996
5996
|
title: ((p = a.value) == null ? void 0 : p.name) || c.milestoneId,
|
|
5997
5997
|
level: 5
|
|
@@ -6006,8 +6006,8 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6006
6006
|
o("div", O0, [
|
|
6007
6007
|
o("ul", B0, [
|
|
6008
6008
|
(u(!0), C(le, null, pe(i.value, (_) => {
|
|
6009
|
-
var m, $,
|
|
6010
|
-
return u(),
|
|
6009
|
+
var m, $, k;
|
|
6010
|
+
return u(), j(mt, {
|
|
6011
6011
|
key: _.id,
|
|
6012
6012
|
name: _.name || _.id,
|
|
6013
6013
|
"project-name": c.projectName,
|
|
@@ -6018,9 +6018,9 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6018
6018
|
users: c.users,
|
|
6019
6019
|
assignees: _.assignees,
|
|
6020
6020
|
comments: ($ = _.comments) == null ? void 0 : $.length,
|
|
6021
|
-
attachments: (
|
|
6021
|
+
attachments: (k = _.attachments) == null ? void 0 : k.length,
|
|
6022
6022
|
subtasks: _.subtasks,
|
|
6023
|
-
onClick: (
|
|
6023
|
+
onClick: (L) => c.$router.push({
|
|
6024
6024
|
name: E(Fe).activity,
|
|
6025
6025
|
params: { milestoneId: c.milestoneId, activityId: _.id }
|
|
6026
6026
|
})
|
|
@@ -6039,7 +6039,7 @@ const T0 = { class: "ao-project-milestone" }, E0 = { class: "ao-project-mileston
|
|
|
6039
6039
|
};
|
|
6040
6040
|
}
|
|
6041
6041
|
});
|
|
6042
|
-
const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" },
|
|
6042
|
+
const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, j0 = ["contenteditable"], N0 = { class: "ao-comment__created-at" }, R0 = {
|
|
6043
6043
|
key: 1,
|
|
6044
6044
|
class: "ao-comment__footer"
|
|
6045
6045
|
}, U0 = /* @__PURE__ */ K({
|
|
@@ -6062,7 +6062,7 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, N0 = ["c
|
|
|
6062
6062
|
e("remove");
|
|
6063
6063
|
};
|
|
6064
6064
|
return (m, $) => (u(), C("li", Z0, [
|
|
6065
|
-
n.value ? (u(),
|
|
6065
|
+
n.value ? (u(), j(Ye, {
|
|
6066
6066
|
key: 0,
|
|
6067
6067
|
"user-name": n.value,
|
|
6068
6068
|
class: "ao-comment__avatar"
|
|
@@ -6073,8 +6073,8 @@ const Z0 = { class: "ao-comment" }, P0 = { class: "ao-comment__body" }, N0 = ["c
|
|
|
6073
6073
|
ref: a,
|
|
6074
6074
|
class: "ao-comment__content",
|
|
6075
6075
|
contenteditable: E(i)
|
|
6076
|
-
},
|
|
6077
|
-
o("span",
|
|
6076
|
+
}, N(m.content), 9, j0),
|
|
6077
|
+
o("span", N0, N(m.editedAt || m.createdAt), 1)
|
|
6078
6078
|
]),
|
|
6079
6079
|
m.isEditable ? (u(), C("div", R0, [
|
|
6080
6080
|
E(i) ? (u(), C(le, { key: 0 }, [
|
|
@@ -6147,7 +6147,7 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6147
6147
|
var _;
|
|
6148
6148
|
return u(), C("div", q0, [
|
|
6149
6149
|
((_ = d.comments) == null ? void 0 : _.length) > 0 ? (u(), C("ul", z0, [
|
|
6150
|
-
(u(!0), C(le, null, pe(d.comments, (m) => (u(),
|
|
6150
|
+
(u(!0), C(le, null, pe(d.comments, (m) => (u(), j(U0, {
|
|
6151
6151
|
key: m.id,
|
|
6152
6152
|
user: n(m.userId),
|
|
6153
6153
|
content: m.content,
|
|
@@ -6162,10 +6162,10 @@ const q0 = { class: "ao-comments" }, z0 = {
|
|
|
6162
6162
|
o("div", F0, [
|
|
6163
6163
|
o("form", {
|
|
6164
6164
|
class: "ao-comments__form",
|
|
6165
|
-
onSubmit:
|
|
6165
|
+
onSubmit: we(l, ["prevent"])
|
|
6166
6166
|
}, [
|
|
6167
6167
|
o("label", G0, [
|
|
6168
|
-
o("span", Y0,
|
|
6168
|
+
o("span", Y0, N(d.$t("activity.comment.label")), 1),
|
|
6169
6169
|
qe(o("textarea", {
|
|
6170
6170
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
|
|
6171
6171
|
rows: "4",
|
|
@@ -6246,7 +6246,7 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6246
6246
|
const { id: $ } = i.value || {};
|
|
6247
6247
|
$ && e("removeComment", { id: m, activityId: $ });
|
|
6248
6248
|
};
|
|
6249
|
-
return (m, $) => i.value ? (u(),
|
|
6249
|
+
return (m, $) => i.value ? (u(), j(R1, {
|
|
6250
6250
|
key: 0,
|
|
6251
6251
|
activity: i.value,
|
|
6252
6252
|
"activity-types": l.value,
|
|
@@ -6255,9 +6255,9 @@ const X0 = { class: "ao-fieldset" }, J0 = { class: "ao-fieldset__title" }, Q0 =
|
|
|
6255
6255
|
"is-template": !1,
|
|
6256
6256
|
users: E(n),
|
|
6257
6257
|
onClose: m.$router.back,
|
|
6258
|
-
"onUpdate:activity": $[0] || ($[0] = (
|
|
6258
|
+
"onUpdate:activity": $[0] || ($[0] = (k) => {
|
|
6259
6259
|
r({
|
|
6260
|
-
...
|
|
6260
|
+
...k
|
|
6261
6261
|
});
|
|
6262
6262
|
}),
|
|
6263
6263
|
onAddSubtask: c
|
|
@@ -6433,7 +6433,7 @@ const tu = { class: "ao-col-header" }, su = /* @__PURE__ */ K({
|
|
|
6433
6433
|
class: "ao-col-header__title",
|
|
6434
6434
|
level: 4
|
|
6435
6435
|
}, null, 8, ["title"]),
|
|
6436
|
-
e.items ? (u(),
|
|
6436
|
+
e.items ? (u(), j(f1, {
|
|
6437
6437
|
key: 0,
|
|
6438
6438
|
label: e.items,
|
|
6439
6439
|
class: "ao-col-header__items",
|
|
@@ -6505,25 +6505,25 @@ function pu(s, e, t = {}) {
|
|
|
6505
6505
|
window: l = uu,
|
|
6506
6506
|
immediate: r = !0
|
|
6507
6507
|
} = t, c = du(() => l && "IntersectionObserver" in l), d = g(() => {
|
|
6508
|
-
const
|
|
6509
|
-
return (Array.isArray(
|
|
6508
|
+
const k = _1(s);
|
|
6509
|
+
return (Array.isArray(k) ? k : [k]).map(B1).filter(nu);
|
|
6510
6510
|
});
|
|
6511
6511
|
let p = s1;
|
|
6512
6512
|
const _ = Q(r), m = c.value ? de(
|
|
6513
6513
|
() => [d.value, B1(n), _.value],
|
|
6514
|
-
([
|
|
6515
|
-
if (p(), !_.value || !
|
|
6514
|
+
([k, L]) => {
|
|
6515
|
+
if (p(), !_.value || !k.length)
|
|
6516
6516
|
return;
|
|
6517
|
-
const
|
|
6517
|
+
const Z = new IntersectionObserver(
|
|
6518
6518
|
e,
|
|
6519
6519
|
{
|
|
6520
|
-
root: B1(
|
|
6520
|
+
root: B1(L),
|
|
6521
6521
|
rootMargin: a,
|
|
6522
6522
|
threshold: i
|
|
6523
6523
|
}
|
|
6524
6524
|
);
|
|
6525
|
-
|
|
6526
|
-
|
|
6525
|
+
k.forEach((S) => S && Z.observe(S)), p = () => {
|
|
6526
|
+
Z.disconnect(), p = s1;
|
|
6527
6527
|
};
|
|
6528
6528
|
},
|
|
6529
6529
|
{ immediate: r, flush: "post" }
|
|
@@ -6564,6 +6564,7 @@ const vu = {
|
|
|
6564
6564
|
props: {
|
|
6565
6565
|
list: {},
|
|
6566
6566
|
status: {},
|
|
6567
|
+
users: {},
|
|
6567
6568
|
title: {},
|
|
6568
6569
|
footerLabel: {},
|
|
6569
6570
|
isLoading: { type: Boolean },
|
|
@@ -6601,7 +6602,7 @@ const vu = {
|
|
|
6601
6602
|
var p;
|
|
6602
6603
|
return [
|
|
6603
6604
|
o("div", Cu, [
|
|
6604
|
-
c.title ? (u(),
|
|
6605
|
+
c.title ? (u(), j(su, {
|
|
6605
6606
|
key: 0,
|
|
6606
6607
|
title: c.title,
|
|
6607
6608
|
level: 3,
|
|
@@ -6617,20 +6618,27 @@ const vu = {
|
|
|
6617
6618
|
group: "kanban"
|
|
6618
6619
|
}, c.$attrs, { onChange: r }), {
|
|
6619
6620
|
item: R(({ element: p }) => {
|
|
6620
|
-
var _, m,
|
|
6621
|
+
var _, m, $, k, L, Z, S;
|
|
6621
6622
|
return [
|
|
6622
6623
|
b(mt, {
|
|
6623
6624
|
id: p.id,
|
|
6624
6625
|
name: p.name,
|
|
6625
|
-
|
|
6626
|
+
"project-name": (_ = p.project) == null ? void 0 : _.name,
|
|
6627
|
+
"phase-name": ($ = (m = p.milestone) == null ? void 0 : m.phase) == null ? void 0 : $.name,
|
|
6628
|
+
"milestone-name": (k = p.milestone) == null ? void 0 : k.name,
|
|
6629
|
+
"end-date": p.deadline,
|
|
6630
|
+
rules: ((L = p.rules) == null ? void 0 : L.length) || 0,
|
|
6626
6631
|
subtasks: p.tasks,
|
|
6627
6632
|
description: p.description,
|
|
6628
6633
|
"is-important": p.important,
|
|
6629
6634
|
type: p.type,
|
|
6630
|
-
comments: (
|
|
6631
|
-
attachments: (
|
|
6635
|
+
comments: (Z = p.comments) == null ? void 0 : Z.length,
|
|
6636
|
+
attachments: (S = p.attachments) == null ? void 0 : S.length,
|
|
6637
|
+
users: c.users,
|
|
6638
|
+
assignees: p.assignee ? [p.assignee.id] : [],
|
|
6632
6639
|
onClick: () => i(p.id),
|
|
6633
|
-
onUpdateActivity: l
|
|
6640
|
+
onUpdateActivity: l,
|
|
6641
|
+
onRemoveAssignee: () => l({ id: p.id, assigneeId: null })
|
|
6634
6642
|
}, {
|
|
6635
6643
|
secondary: R(() => [
|
|
6636
6644
|
b(ue, {
|
|
@@ -6639,11 +6647,11 @@ const vu = {
|
|
|
6639
6647
|
"icon-name": "ArchiveOutlineRounded",
|
|
6640
6648
|
size: "sm",
|
|
6641
6649
|
corners: "round",
|
|
6642
|
-
onClick:
|
|
6650
|
+
onClick: we(() => c.$emit("archiveActivity", p.id), ["stop"])
|
|
6643
6651
|
}, null, 8, ["onClick"])
|
|
6644
6652
|
]),
|
|
6645
6653
|
_: 2
|
|
6646
|
-
}, 1032, ["id", "name", "rules", "subtasks", "description", "is-important", "type", "comments", "attachments", "onClick"])
|
|
6654
|
+
}, 1032, ["id", "name", "project-name", "phase-name", "milestone-name", "end-date", "rules", "subtasks", "description", "is-important", "type", "comments", "attachments", "users", "assignees", "onClick", "onRemoveAssignee"])
|
|
6647
6655
|
];
|
|
6648
6656
|
}),
|
|
6649
6657
|
footer: R(() => [
|
|
@@ -6655,7 +6663,7 @@ const vu = {
|
|
|
6655
6663
|
ref: a,
|
|
6656
6664
|
class: "ao-list-kanban__end"
|
|
6657
6665
|
}, null, 512)) : (u(), C("div", mu, [
|
|
6658
|
-
c.noMoreLabel ? (u(), C("span", hu,
|
|
6666
|
+
c.noMoreLabel ? (u(), C("span", hu, N(c.noMoreLabel), 1)) : (u(), C("span", fu))
|
|
6659
6667
|
]))
|
|
6660
6668
|
]),
|
|
6661
6669
|
_: 1
|
|
@@ -6759,8 +6767,8 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6759
6767
|
{ immediate: !0 }
|
|
6760
6768
|
);
|
|
6761
6769
|
const c = (M) => {
|
|
6762
|
-
var
|
|
6763
|
-
const W = (
|
|
6770
|
+
var T, G;
|
|
6771
|
+
const W = (T = t.activities) == null ? void 0 : T.at(-1), _e = W ? ye.LexoRank.parse(W.rank).genNext() : ye.LexoRank.middle(), y = ((G = t.activities) == null ? void 0 : G.length) ?? 0, B = {
|
|
6764
6772
|
name: n("activity.defaultName", { idx: y + 1 }),
|
|
6765
6773
|
rank: _e.format(),
|
|
6766
6774
|
statusId: M.id
|
|
@@ -6779,9 +6787,9 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6779
6787
|
label: `${M.firstName} ${M.lastName}`
|
|
6780
6788
|
}))), $ = (M) => {
|
|
6781
6789
|
l.value && e("update:activity", M);
|
|
6782
|
-
},
|
|
6790
|
+
}, k = (M) => {
|
|
6783
6791
|
e("update:activity", M);
|
|
6784
|
-
},
|
|
6792
|
+
}, L = Q(null), Z = (M) => {
|
|
6785
6793
|
l.value && e("update:activity", {
|
|
6786
6794
|
id: l.value.id,
|
|
6787
6795
|
name: M
|
|
@@ -6877,7 +6885,7 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6877
6885
|
b(Ye, {
|
|
6878
6886
|
"user-name": y.label,
|
|
6879
6887
|
"is-closable": !0,
|
|
6880
|
-
onClose: (
|
|
6888
|
+
onClose: (T) => B(y, T)
|
|
6881
6889
|
}, null, 8, ["user-name", "onClose"])
|
|
6882
6890
|
]),
|
|
6883
6891
|
_: 1
|
|
@@ -6887,20 +6895,21 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6887
6895
|
_: 1
|
|
6888
6896
|
}),
|
|
6889
6897
|
o("div", Vu, [
|
|
6890
|
-
(u(!0), C(le, null, pe(M.statuses, (y) => (u(),
|
|
6898
|
+
(u(!0), C(le, null, pe(M.statuses, (y) => (u(), j(yu, {
|
|
6891
6899
|
key: y.id,
|
|
6892
6900
|
status: y,
|
|
6893
6901
|
list: r.value[y.id],
|
|
6894
6902
|
title: y.name,
|
|
6895
6903
|
"footer-label": M.$t("feed.activity.add"),
|
|
6904
|
+
users: M.users,
|
|
6896
6905
|
onAdd: () => c(y),
|
|
6897
6906
|
onSelectActivity: E(i),
|
|
6898
6907
|
onArchiveActivity: S,
|
|
6899
|
-
onUpdateActivity:
|
|
6900
|
-
}, null, 8, ["status", "list", "title", "footer-label", "onAdd", "onSelectActivity"]))), 128))
|
|
6908
|
+
onUpdateActivity: k
|
|
6909
|
+
}, null, 8, ["status", "list", "title", "footer-label", "users", "onAdd", "onSelectActivity"]))), 128))
|
|
6901
6910
|
]),
|
|
6902
|
-
(u(),
|
|
6903
|
-
E(l) ? (u(),
|
|
6911
|
+
(u(), j(C1, { to: "body" }, [
|
|
6912
|
+
E(l) ? (u(), j(R1, {
|
|
6904
6913
|
key: 0,
|
|
6905
6914
|
activity: E(l),
|
|
6906
6915
|
"activity-types": _.value,
|
|
@@ -6918,14 +6927,14 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6918
6927
|
header: R(() => [
|
|
6919
6928
|
b(ce, {
|
|
6920
6929
|
ref_key: "target",
|
|
6921
|
-
ref:
|
|
6930
|
+
ref: L,
|
|
6922
6931
|
title: E(l).name || E(l).id,
|
|
6923
6932
|
level: 4,
|
|
6924
6933
|
"is-editable": !0,
|
|
6925
|
-
"onUpdate:title":
|
|
6934
|
+
"onUpdate:title": Z
|
|
6926
6935
|
}, null, 8, ["title"]),
|
|
6927
6936
|
o("label", Lu, [
|
|
6928
|
-
o("span", Tu,
|
|
6937
|
+
o("span", Tu, N(M.$t("activity.status.label")), 1),
|
|
6929
6938
|
b(E(ve), {
|
|
6930
6939
|
options: D.value,
|
|
6931
6940
|
value: E(l).status.id,
|
|
@@ -6936,7 +6945,7 @@ const Iu = { class: "ao-feed" }, Su = { class: "ao-feed__filters" }, Vu = { clas
|
|
|
6936
6945
|
default: R(() => [
|
|
6937
6946
|
o("fieldset", Eu, [
|
|
6938
6947
|
o("label", Hu, [
|
|
6939
|
-
o("span", Ou,
|
|
6948
|
+
o("span", Ou, N(M.$t("activity.endDate.label")), 1),
|
|
6940
6949
|
qe(o("input", {
|
|
6941
6950
|
"onUpdate:modelValue": W[4] || (W[4] = (y) => h.value = y),
|
|
6942
6951
|
class: "ao-field__input",
|