@26lights/orcha 0.9.18 → 0.9.20
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 +617 -615
- package/dist/orcha.umd.js +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as v, createBlock as U, unref as F, mergeProps as Ve, createElementBlock as C, createElementVNode as d, pushScopeId as an, popScopeId as nn, createStaticVNode as sn, computed as
|
|
1
|
+
import { defineComponent as x, openBlock as v, createBlock as U, unref as F, mergeProps as Ve, createElementBlock as C, createElementVNode as d, pushScopeId as an, popScopeId as nn, createStaticVNode as sn, computed as b, resolveDynamicComponent as et, normalizeClass as G, renderSlot as Q, toDisplayString as W, createCommentVNode as E, ref as X, watch as ue, nextTick as Ee, withKeys as ze, toHandlers as on, withCtx as R, createTextVNode as t1, createVNode as k, withModifiers as _e, createSlots as Ht, Fragment as fe, renderList as ye, onMounted as Dt, onBeforeUnmount as ln, onUnmounted as la, toRefs as $e, getCurrentInstance as tt, toRef as ct, normalizeProps as rn, guardReactiveProps as un, onUpdated as cn, withDirectives as dt, vModelText as Et, vModelCheckbox as dn, Teleport as It, normalizeStyle as fn, resolveComponent as vn, getCurrentScope as hn, onScopeDispose as pn, provide as mn } from "vue";
|
|
2
2
|
import { RouterView as Cn } from "vue-router";
|
|
3
3
|
import Ge from "vuedraggable";
|
|
4
|
-
const
|
|
4
|
+
const P4 = /* @__PURE__ */ x({
|
|
5
5
|
__name: "AoTemplates",
|
|
6
6
|
props: {
|
|
7
7
|
templates: {}
|
|
@@ -1141,7 +1141,7 @@ const Gu = /* @__PURE__ */ P(Wu, [["render", Ku]]), Xu = /* @__PURE__ */ Object.
|
|
|
1141
1141
|
size: { default: a1.MD }
|
|
1142
1142
|
},
|
|
1143
1143
|
setup(a) {
|
|
1144
|
-
const e = a, t =
|
|
1144
|
+
const e = a, t = b(() => Xu[e.name]);
|
|
1145
1145
|
return (s, n) => (v(), U(et(t.value), {
|
|
1146
1146
|
class: G(["ao-icon", `ao-icon--${s.size}`])
|
|
1147
1147
|
}, null, 8, ["class"]));
|
|
@@ -1165,7 +1165,7 @@ const ec = ["type"], tc = {
|
|
|
1165
1165
|
corners: { default: () => ra.ROUNDED }
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(a) {
|
|
1168
|
-
const e = a, t =
|
|
1168
|
+
const e = a, t = b(() => e.size), s = b(() => e.isLoading ? "Loading" : e.iconName);
|
|
1169
1169
|
return (n, o) => (v(), C("button", {
|
|
1170
1170
|
type: n.type,
|
|
1171
1171
|
class: G([
|
|
@@ -1192,7 +1192,7 @@ const ec = ["type"], tc = {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
1194
|
function ua(a) {
|
|
1195
|
-
const e = X(!1), t = X(""), s =
|
|
1195
|
+
const e = X(!1), t = X(""), s = b(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
|
|
1196
1196
|
e.value = !e.value;
|
|
1197
1197
|
}, o = (r) => {
|
|
1198
1198
|
e.value = r;
|
|
@@ -1232,7 +1232,7 @@ const pe = /* @__PURE__ */ x({
|
|
|
1232
1232
|
},
|
|
1233
1233
|
emits: ["update:title", "toggle-is-editing"],
|
|
1234
1234
|
setup(a, { emit: e }) {
|
|
1235
|
-
const t = a, s = X(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ua(s), r =
|
|
1235
|
+
const t = a, s = X(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ua(s), r = b(() => n.value ? "input" : t.tag || `h${t.level}`), c = b(() => t.isEditable ? n.value ? {
|
|
1236
1236
|
change: u,
|
|
1237
1237
|
click: ($) => $.stopPropagation(),
|
|
1238
1238
|
blur: h
|
|
@@ -1380,7 +1380,7 @@ const S1 = /* @__PURE__ */ x({
|
|
|
1380
1380
|
},
|
|
1381
1381
|
emits: ["click", "close"],
|
|
1382
1382
|
setup(a) {
|
|
1383
|
-
const e = a, t =
|
|
1383
|
+
const e = a, t = b(() => e.clickable ? "button" : "span"), s = b(
|
|
1384
1384
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1385
1385
|
);
|
|
1386
1386
|
return (n, o) => (v(), C("div", {
|
|
@@ -2657,7 +2657,7 @@ function Md(a, e, t) {
|
|
|
2657
2657
|
var ne = De(a);
|
|
2658
2658
|
if (!va(ne))
|
|
2659
2659
|
throw new RangeError("Invalid time value");
|
|
2660
|
-
var
|
|
2660
|
+
var y = vc(ne), S = pc(ne, y), D = {
|
|
2661
2661
|
firstWeekContainsDate: z,
|
|
2662
2662
|
weekStartsOn: Y,
|
|
2663
2663
|
locale: I,
|
|
@@ -3601,16 +3601,16 @@ const Qd = ["title"], Jd = { className: "ao-avatar__initials" }, _t = /* @__PURE
|
|
|
3601
3601
|
], 10, Qd));
|
|
3602
3602
|
}
|
|
3603
3603
|
});
|
|
3604
|
-
const
|
|
3604
|
+
const e3 = { class: "ao-card-template__subitems" }, t3 = { class: "ao-card-template__subitem" }, a3 = { class: "ao-card-template__subitem-number" }, n3 = { class: "ao-card-template__subitem" }, s3 = { class: "ao-card-template__subitem" }, i3 = { class: "ao-card-template__body" }, o3 = { class: "ao-card-template__col ao-card-template__col--phases" }, l3 = { class: "ao-card-template__col-title" }, r3 = { class: "ao-card-template__col-label" }, u3 = {
|
|
3605
3605
|
key: 0,
|
|
3606
3606
|
class: "ao-card-template__col-body ao-card-template__phases-list"
|
|
3607
|
-
},
|
|
3607
|
+
}, c3 = { class: "ao-card-template__footer" }, d3 = {
|
|
3608
3608
|
key: 0,
|
|
3609
3609
|
class: "ao-card-template__col ao-card-template__col--updated-at"
|
|
3610
|
-
},
|
|
3610
|
+
}, f3 = { class: "ao-card-template__col-title" }, v3 = { class: "ao-card-template__col-label" }, h3 = { class: "ao-card-template__col-body" }, p3 = {
|
|
3611
3611
|
key: 1,
|
|
3612
3612
|
class: "ao-card-template__col ao-card-template__col--updated-by"
|
|
3613
|
-
},
|
|
3613
|
+
}, m3 = { class: "ao-card-template__col-title" }, C3 = { class: "ao-card-template__col-label" }, _3 = { class: "ao-card-template__col-body" }, g3 = /* @__PURE__ */ x({
|
|
3614
3614
|
__name: "AoCardTemplate",
|
|
3615
3615
|
props: {
|
|
3616
3616
|
id: {},
|
|
@@ -3633,34 +3633,34 @@ const e0 = { class: "ao-card-template__subitems" }, t0 = { class: "ao-card-templ
|
|
|
3633
3633
|
"onUpdate:title": t
|
|
3634
3634
|
}, Ht({
|
|
3635
3635
|
subtitle: R(() => [
|
|
3636
|
-
d("ul",
|
|
3637
|
-
d("li",
|
|
3636
|
+
d("ul", e3, [
|
|
3637
|
+
d("li", t3, [
|
|
3638
3638
|
k(de, {
|
|
3639
3639
|
name: "MountainFlagOutlineRounded",
|
|
3640
3640
|
size: "sm"
|
|
3641
3641
|
}),
|
|
3642
|
-
d("span",
|
|
3642
|
+
d("span", a3, W(s.milestones), 1)
|
|
3643
3643
|
]),
|
|
3644
|
-
d("li",
|
|
3644
|
+
d("li", n3, [
|
|
3645
3645
|
k(de, {
|
|
3646
3646
|
name: "TaskOutlineRounded",
|
|
3647
3647
|
size: "sm"
|
|
3648
3648
|
}),
|
|
3649
|
-
d("span",
|
|
3649
|
+
d("span", s3, W(s.activities), 1)
|
|
3650
3650
|
])
|
|
3651
3651
|
])
|
|
3652
3652
|
]),
|
|
3653
3653
|
default: R(() => [
|
|
3654
|
-
d("div",
|
|
3655
|
-
d("div",
|
|
3656
|
-
d("div",
|
|
3654
|
+
d("div", i3, [
|
|
3655
|
+
d("div", o3, [
|
|
3656
|
+
d("div", l3, [
|
|
3657
3657
|
k(de, {
|
|
3658
3658
|
name: "WaterfallChartRounded",
|
|
3659
3659
|
size: "sm"
|
|
3660
3660
|
}),
|
|
3661
|
-
d("span",
|
|
3661
|
+
d("span", r3, W(s.$t("template.phases.title")), 1)
|
|
3662
3662
|
]),
|
|
3663
|
-
s.phases ? (v(), C("ul",
|
|
3663
|
+
s.phases ? (v(), C("ul", u3, [
|
|
3664
3664
|
(v(!0), C(fe, null, ye(s.phases, (o) => (v(), U(S1, {
|
|
3665
3665
|
key: o.id,
|
|
3666
3666
|
label: o.name || o.id,
|
|
@@ -3676,20 +3676,20 @@ const e0 = { class: "ao-card-template__subitems" }, t0 = { class: "ao-card-templ
|
|
|
3676
3676
|
s.updatedBy || s.updatedAt ? {
|
|
3677
3677
|
name: "footer",
|
|
3678
3678
|
fn: R(() => [
|
|
3679
|
-
d("div",
|
|
3680
|
-
s.updatedAt ? (v(), C("div",
|
|
3681
|
-
d("div",
|
|
3682
|
-
d("span",
|
|
3679
|
+
d("div", c3, [
|
|
3680
|
+
s.updatedAt ? (v(), C("div", d3, [
|
|
3681
|
+
d("div", f3, [
|
|
3682
|
+
d("span", v3, W(s.$t("template.updatedAt.label")), 1)
|
|
3683
3683
|
]),
|
|
3684
|
-
d("div",
|
|
3684
|
+
d("div", h3, [
|
|
3685
3685
|
d("span", null, W(s.updatedAt), 1)
|
|
3686
3686
|
])
|
|
3687
3687
|
])) : E("", !0),
|
|
3688
|
-
s.updatedBy ? (v(), C("div",
|
|
3689
|
-
d("div",
|
|
3690
|
-
d("span",
|
|
3688
|
+
s.updatedBy ? (v(), C("div", p3, [
|
|
3689
|
+
d("div", m3, [
|
|
3690
|
+
d("span", C3, W(s.$t("template.updatedBy.label")), 1)
|
|
3691
3691
|
]),
|
|
3692
|
-
d("div",
|
|
3692
|
+
d("div", _3, [
|
|
3693
3693
|
k(_t, { "user-name": s.updatedBy }, null, 8, ["user-name"])
|
|
3694
3694
|
])
|
|
3695
3695
|
])) : E("", !0)
|
|
@@ -3700,7 +3700,7 @@ const e0 = { class: "ao-card-template__subitems" }, t0 = { class: "ao-card-templ
|
|
|
3700
3700
|
]), 1032, ["id", "title"]));
|
|
3701
3701
|
}
|
|
3702
3702
|
});
|
|
3703
|
-
const
|
|
3703
|
+
const y3 = { class: "ao-page-header" }, b3 = { class: "ao-page-header-main" }, w3 = {
|
|
3704
3704
|
key: 0,
|
|
3705
3705
|
class: "ao-page-header-secondary"
|
|
3706
3706
|
}, r1 = /* @__PURE__ */ x({
|
|
@@ -3710,8 +3710,8 @@ const y0 = { class: "ao-page-header" }, b0 = { class: "ao-page-header-main" }, w
|
|
|
3710
3710
|
},
|
|
3711
3711
|
emits: ["goBack"],
|
|
3712
3712
|
setup(a) {
|
|
3713
|
-
return (e, t) => (v(), C("header",
|
|
3714
|
-
d("div",
|
|
3713
|
+
return (e, t) => (v(), C("header", y3, [
|
|
3714
|
+
d("div", b3, [
|
|
3715
3715
|
e.canGoBack ? (v(), U(ce, {
|
|
3716
3716
|
key: 0,
|
|
3717
3717
|
"icon-name": "ArrowBackRounded",
|
|
@@ -3720,13 +3720,13 @@ const y0 = { class: "ao-page-header" }, b0 = { class: "ao-page-header-main" }, w
|
|
|
3720
3720
|
})) : E("", !0),
|
|
3721
3721
|
Q(e.$slots, "primary")
|
|
3722
3722
|
]),
|
|
3723
|
-
e.$slots.secondary ? (v(), C("div",
|
|
3723
|
+
e.$slots.secondary ? (v(), C("div", w3, [
|
|
3724
3724
|
Q(e.$slots, "secondary")
|
|
3725
3725
|
])) : E("", !0)
|
|
3726
3726
|
]));
|
|
3727
3727
|
}
|
|
3728
3728
|
});
|
|
3729
|
-
const $
|
|
3729
|
+
const $3 = ["type"], M3 = {
|
|
3730
3730
|
key: 0,
|
|
3731
3731
|
class: "ao-button-card__label"
|
|
3732
3732
|
}, Xe = /* @__PURE__ */ x({
|
|
@@ -3742,7 +3742,7 @@ const $0 = ["type"], M0 = {
|
|
|
3742
3742
|
corners: { default: () => ra.ROUNDED }
|
|
3743
3743
|
},
|
|
3744
3744
|
setup(a) {
|
|
3745
|
-
const e = a, t =
|
|
3745
|
+
const e = a, t = b(() => e.size), s = b(() => e.isLoading ? "Loading" : e.iconName);
|
|
3746
3746
|
return (n, o) => (v(), C("button", {
|
|
3747
3747
|
type: n.type,
|
|
3748
3748
|
class: G([
|
|
@@ -3753,7 +3753,7 @@ const $0 = ["type"], M0 = {
|
|
|
3753
3753
|
])
|
|
3754
3754
|
}, [
|
|
3755
3755
|
Q(n.$slots, "default", {}, () => [
|
|
3756
|
-
n.label ? (v(), C("span",
|
|
3756
|
+
n.label ? (v(), C("span", M3, W(n.label), 1)) : E("", !0)
|
|
3757
3757
|
]),
|
|
3758
3758
|
s.value ? (v(), U(de, {
|
|
3759
3759
|
key: 0,
|
|
@@ -3761,13 +3761,13 @@ const $0 = ["type"], M0 = {
|
|
|
3761
3761
|
class: "ao-button-card__icon",
|
|
3762
3762
|
size: t.value
|
|
3763
3763
|
}, null, 8, ["name", "size"])) : E("", !0)
|
|
3764
|
-
], 10, $
|
|
3764
|
+
], 10, $3));
|
|
3765
3765
|
}
|
|
3766
3766
|
});
|
|
3767
|
-
const
|
|
3767
|
+
const k3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
3768
3768
|
key: 0,
|
|
3769
3769
|
class: "ao-card-template-item__subitem"
|
|
3770
|
-
},
|
|
3770
|
+
}, T3 = { class: "ao-card-template-item__subitem-number" }, S3 = { class: "ao-card-template-item__secondary" }, I1 = /* @__PURE__ */ x({
|
|
3771
3771
|
__name: "AoCardTemplateItem",
|
|
3772
3772
|
props: {
|
|
3773
3773
|
milestones: {},
|
|
@@ -3789,20 +3789,20 @@ const k0 = { class: "ao-card-template-item__footer" }, A0 = {
|
|
|
3789
3789
|
};
|
|
3790
3790
|
return (i, l) => (v(), U(ca, { "onUpdate:title": t }, {
|
|
3791
3791
|
footer: R(() => [
|
|
3792
|
-
d("ul",
|
|
3792
|
+
d("ul", k3, [
|
|
3793
3793
|
(v(), C(fe, null, ye(s, (r) => (v(), C(fe, { key: r }, [
|
|
3794
|
-
i.$props[r] ? (v(), C("li",
|
|
3794
|
+
i.$props[r] ? (v(), C("li", A3, [
|
|
3795
3795
|
k(de, {
|
|
3796
3796
|
name: n[r],
|
|
3797
3797
|
size: "sm"
|
|
3798
3798
|
}, null, 8, ["name"]),
|
|
3799
|
-
d("span",
|
|
3799
|
+
d("span", T3, W(i.$props[r]), 1)
|
|
3800
3800
|
])) : E("", !0)
|
|
3801
3801
|
], 64))), 64))
|
|
3802
3802
|
])
|
|
3803
3803
|
]),
|
|
3804
3804
|
secondary: R(() => [
|
|
3805
|
-
d("div",
|
|
3805
|
+
d("div", S3, [
|
|
3806
3806
|
k(ce, {
|
|
3807
3807
|
"icon-name": "DeleteOutlineRounded",
|
|
3808
3808
|
variant: "ghost",
|
|
@@ -3816,7 +3816,7 @@ const k0 = { class: "ao-card-template-item__footer" }, A0 = {
|
|
|
3816
3816
|
}));
|
|
3817
3817
|
}
|
|
3818
3818
|
});
|
|
3819
|
-
const
|
|
3819
|
+
const E3 = /* @__PURE__ */ x({
|
|
3820
3820
|
__name: "AoCardTemplateItemPhase",
|
|
3821
3821
|
props: {
|
|
3822
3822
|
id: {},
|
|
@@ -3824,10 +3824,10 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3824
3824
|
milestones: {}
|
|
3825
3825
|
},
|
|
3826
3826
|
setup(a) {
|
|
3827
|
-
const e = a, t =
|
|
3827
|
+
const e = a, t = b(() => {
|
|
3828
3828
|
var n;
|
|
3829
3829
|
return (n = e.milestones) == null ? void 0 : n.length;
|
|
3830
|
-
}), s =
|
|
3830
|
+
}), s = b(() => e.milestones ? wa(e.milestones) : 0);
|
|
3831
3831
|
return (n, o) => (v(), U(I1, Ve({
|
|
3832
3832
|
id: n.id,
|
|
3833
3833
|
title: n.name,
|
|
@@ -3840,13 +3840,13 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3840
3840
|
_: 3
|
|
3841
3841
|
}, 16, ["id", "title", "activities", "milestones"]));
|
|
3842
3842
|
}
|
|
3843
|
-
}),
|
|
3843
|
+
}), I3 = /* @__PURE__ */ x({
|
|
3844
3844
|
__name: "AoCardTemplateItemMilestone",
|
|
3845
3845
|
props: {
|
|
3846
3846
|
activities: {}
|
|
3847
3847
|
},
|
|
3848
3848
|
setup(a) {
|
|
3849
|
-
const e = a, t =
|
|
3849
|
+
const e = a, t = b(() => {
|
|
3850
3850
|
var s;
|
|
3851
3851
|
return ((s = e.activities) == null ? void 0 : s.length) || 0;
|
|
3852
3852
|
});
|
|
@@ -3857,7 +3857,7 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3857
3857
|
_: 3
|
|
3858
3858
|
}, 8, ["activities"]));
|
|
3859
3859
|
}
|
|
3860
|
-
}),
|
|
3860
|
+
}), O3 = { class: "ao-list__footer" }, L3 = /* @__PURE__ */ x({
|
|
3861
3861
|
__name: "AoTemplateDetailsMilestones",
|
|
3862
3862
|
props: {
|
|
3863
3863
|
templateId: {},
|
|
@@ -3898,7 +3898,7 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3898
3898
|
})
|
|
3899
3899
|
]),
|
|
3900
3900
|
item: R(({ element: c }) => [
|
|
3901
|
-
(v(), U(
|
|
3901
|
+
(v(), U(I3, {
|
|
3902
3902
|
id: c.id,
|
|
3903
3903
|
key: c.id,
|
|
3904
3904
|
title: c.name,
|
|
@@ -3915,7 +3915,7 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3915
3915
|
}, null, 8, ["id", "title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3916
3916
|
]),
|
|
3917
3917
|
footer: R(() => [
|
|
3918
|
-
d("div",
|
|
3918
|
+
d("div", O3, [
|
|
3919
3919
|
k(Xe, {
|
|
3920
3920
|
"icon-name": "AddBoxOutlineRounded",
|
|
3921
3921
|
label: l.$t("template.milestones.add"),
|
|
@@ -3926,14 +3926,14 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3926
3926
|
_: 1
|
|
3927
3927
|
}, 8, ["model-value", "title"])) : E("", !0);
|
|
3928
3928
|
}
|
|
3929
|
-
}),
|
|
3929
|
+
}), V3 = /* @__PURE__ */ x({
|
|
3930
3930
|
__name: "AoCardTemplateItemActivity",
|
|
3931
3931
|
props: {
|
|
3932
3932
|
name: {},
|
|
3933
3933
|
tasks: {}
|
|
3934
3934
|
},
|
|
3935
3935
|
setup(a) {
|
|
3936
|
-
const e = a, t =
|
|
3936
|
+
const e = a, t = b(() => {
|
|
3937
3937
|
var s;
|
|
3938
3938
|
return ((s = e.tasks) == null ? void 0 : s.length) || 0;
|
|
3939
3939
|
});
|
|
@@ -3944,7 +3944,7 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3944
3944
|
_: 3
|
|
3945
3945
|
}, 8, ["tasks"]));
|
|
3946
3946
|
}
|
|
3947
|
-
}),
|
|
3947
|
+
}), H3 = { class: "ao-list__footer" }, D3 = /* @__PURE__ */ x({
|
|
3948
3948
|
__name: "AoTemplateDetailsActivities",
|
|
3949
3949
|
props: {
|
|
3950
3950
|
templateId: {},
|
|
@@ -3988,7 +3988,7 @@ const E0 = /* @__PURE__ */ x({
|
|
|
3988
3988
|
})
|
|
3989
3989
|
]),
|
|
3990
3990
|
item: R(({ element: c }) => [
|
|
3991
|
-
(v(), U(
|
|
3991
|
+
(v(), U(V3, {
|
|
3992
3992
|
id: c.id,
|
|
3993
3993
|
key: c.id,
|
|
3994
3994
|
title: c.name,
|
|
@@ -4001,7 +4001,7 @@ const E0 = /* @__PURE__ */ x({
|
|
|
4001
4001
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4002
4002
|
]),
|
|
4003
4003
|
footer: R(() => [
|
|
4004
|
-
d("div",
|
|
4004
|
+
d("div", H3, [
|
|
4005
4005
|
k(Xe, {
|
|
4006
4006
|
"icon-name": "AddBoxOutlineRounded",
|
|
4007
4007
|
label: l.$t("template.activities.add"),
|
|
@@ -4012,10 +4012,10 @@ const E0 = /* @__PURE__ */ x({
|
|
|
4012
4012
|
_: 1
|
|
4013
4013
|
}, 8, ["model-value", "title"])) : E("", !0);
|
|
4014
4014
|
}
|
|
4015
|
-
}),
|
|
4015
|
+
}), P3 = { class: "ao-modal" }, B3 = { class: "ao-modal__header" }, N3 = { class: "ao-modal__header-meta" }, R3 = {
|
|
4016
4016
|
key: 0,
|
|
4017
4017
|
class: "ao-modal__title-group"
|
|
4018
|
-
},
|
|
4018
|
+
}, U3 = { class: "ao-modal__body" }, Z3 = {
|
|
4019
4019
|
key: 0,
|
|
4020
4020
|
class: "ao-modal__footer"
|
|
4021
4021
|
}, O1 = /* @__PURE__ */ x({
|
|
@@ -4032,9 +4032,9 @@ const E0 = /* @__PURE__ */ x({
|
|
|
4032
4032
|
class: "ao-modal__backdrop",
|
|
4033
4033
|
onClick: t[0] || (t[0] = (s) => e.$emit("close"))
|
|
4034
4034
|
}),
|
|
4035
|
-
d("div",
|
|
4036
|
-
d("div",
|
|
4037
|
-
d("div",
|
|
4035
|
+
d("div", P3, [
|
|
4036
|
+
d("div", B3, [
|
|
4037
|
+
d("div", N3, [
|
|
4038
4038
|
k(ce, {
|
|
4039
4039
|
"icon-name": "CloseRounded",
|
|
4040
4040
|
variant: "ghost",
|
|
@@ -4042,14 +4042,14 @@ const E0 = /* @__PURE__ */ x({
|
|
|
4042
4042
|
onClick: t[1] || (t[1] = (s) => e.$emit("close"))
|
|
4043
4043
|
})
|
|
4044
4044
|
]),
|
|
4045
|
-
e.$slots.header ? (v(), C("header",
|
|
4045
|
+
e.$slots.header ? (v(), C("header", R3, [
|
|
4046
4046
|
Q(e.$slots, "header")
|
|
4047
4047
|
])) : E("", !0)
|
|
4048
4048
|
]),
|
|
4049
|
-
d("div",
|
|
4049
|
+
d("div", U3, [
|
|
4050
4050
|
Q(e.$slots, "default")
|
|
4051
4051
|
]),
|
|
4052
|
-
e.$slots.footer ? (v(), C("footer",
|
|
4052
|
+
e.$slots.footer ? (v(), C("footer", Z3, [
|
|
4053
4053
|
Q(e.$slots, "footer")
|
|
4054
4054
|
])) : E("", !0)
|
|
4055
4055
|
])
|
|
@@ -4059,12 +4059,12 @@ const E0 = /* @__PURE__ */ x({
|
|
|
4059
4059
|
const Lt = Math.min, ke = Math.max, Xt = Math.round, xt = Math.floor, Ye = (a) => ({
|
|
4060
4060
|
x: a,
|
|
4061
4061
|
y: a
|
|
4062
|
-
}),
|
|
4062
|
+
}), j3 = {
|
|
4063
4063
|
left: "right",
|
|
4064
4064
|
right: "left",
|
|
4065
4065
|
bottom: "top",
|
|
4066
4066
|
top: "bottom"
|
|
4067
|
-
},
|
|
4067
|
+
}, F3 = {
|
|
4068
4068
|
start: "end",
|
|
4069
4069
|
end: "start"
|
|
4070
4070
|
};
|
|
@@ -4077,7 +4077,7 @@ function pt(a) {
|
|
|
4077
4077
|
function u1(a) {
|
|
4078
4078
|
return a.split("-")[1];
|
|
4079
4079
|
}
|
|
4080
|
-
function
|
|
4080
|
+
function q3(a) {
|
|
4081
4081
|
return a === "x" ? "y" : "x";
|
|
4082
4082
|
}
|
|
4083
4083
|
function $a(a) {
|
|
@@ -4087,22 +4087,22 @@ function V1(a) {
|
|
|
4087
4087
|
return ["top", "bottom"].includes(pt(a)) ? "y" : "x";
|
|
4088
4088
|
}
|
|
4089
4089
|
function Ma(a) {
|
|
4090
|
-
return
|
|
4090
|
+
return q3(V1(a));
|
|
4091
4091
|
}
|
|
4092
|
-
function
|
|
4092
|
+
function W3(a, e, t) {
|
|
4093
4093
|
t === void 0 && (t = !1);
|
|
4094
4094
|
const s = u1(a), n = Ma(a), o = $a(n);
|
|
4095
4095
|
let i = n === "x" ? s === (t ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
|
4096
4096
|
return e.reference[o] > e.floating[o] && (i = Qt(i)), [i, Qt(i)];
|
|
4097
4097
|
}
|
|
4098
|
-
function
|
|
4098
|
+
function z3(a) {
|
|
4099
4099
|
const e = Qt(a);
|
|
4100
4100
|
return [A1(a), e, A1(e)];
|
|
4101
4101
|
}
|
|
4102
4102
|
function A1(a) {
|
|
4103
|
-
return a.replace(/start|end/g, (e) =>
|
|
4103
|
+
return a.replace(/start|end/g, (e) => F3[e]);
|
|
4104
4104
|
}
|
|
4105
|
-
function
|
|
4105
|
+
function x3(a, e, t) {
|
|
4106
4106
|
const s = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
|
|
4107
4107
|
switch (a) {
|
|
4108
4108
|
case "top":
|
|
@@ -4115,15 +4115,15 @@ function x0(a, e, t) {
|
|
|
4115
4115
|
return [];
|
|
4116
4116
|
}
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4118
|
+
function Y3(a, e, t, s) {
|
|
4119
4119
|
const n = u1(a);
|
|
4120
|
-
let o =
|
|
4120
|
+
let o = x3(pt(a), t === "start", s);
|
|
4121
4121
|
return n && (o = o.map((i) => i + "-" + n), e && (o = o.concat(o.map(A1)))), o;
|
|
4122
4122
|
}
|
|
4123
4123
|
function Qt(a) {
|
|
4124
|
-
return a.replace(/left|right|bottom|top/g, (e) =>
|
|
4124
|
+
return a.replace(/left|right|bottom|top/g, (e) => j3[e]);
|
|
4125
4125
|
}
|
|
4126
|
-
function
|
|
4126
|
+
function K3(a) {
|
|
4127
4127
|
return {
|
|
4128
4128
|
top: 0,
|
|
4129
4129
|
right: 0,
|
|
@@ -4132,8 +4132,8 @@ function K0(a) {
|
|
|
4132
4132
|
...a
|
|
4133
4133
|
};
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4136
|
-
return typeof a != "number" ?
|
|
4135
|
+
function G3(a) {
|
|
4136
|
+
return typeof a != "number" ? K3(a) : {
|
|
4137
4137
|
top: a,
|
|
4138
4138
|
right: a,
|
|
4139
4139
|
bottom: a,
|
|
@@ -4197,7 +4197,7 @@ function ta(a, e, t) {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
return p;
|
|
4199
4199
|
}
|
|
4200
|
-
const
|
|
4200
|
+
const X3 = async (a, e, t) => {
|
|
4201
4201
|
const {
|
|
4202
4202
|
placement: s = "bottom",
|
|
4203
4203
|
strategy: n = "absolute",
|
|
@@ -4277,7 +4277,7 @@ async function ka(a, e) {
|
|
|
4277
4277
|
elementContext: f = "floating",
|
|
4278
4278
|
altBoundary: h = !1,
|
|
4279
4279
|
padding: p = 0
|
|
4280
|
-
} = L1(e, a), g =
|
|
4280
|
+
} = L1(e, a), g = G3(p), T = l[h ? f === "floating" ? "reference" : "floating" : f], M = Jt(await o.getClippingRect({
|
|
4281
4281
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(T))) == null || t ? T : T.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4282
4282
|
boundary: c,
|
|
4283
4283
|
rootBoundary: u,
|
|
@@ -4304,7 +4304,7 @@ async function ka(a, e) {
|
|
|
4304
4304
|
right: (j.right - M.right + g.right) / Z.x
|
|
4305
4305
|
};
|
|
4306
4306
|
}
|
|
4307
|
-
const
|
|
4307
|
+
const Q3 = function(a) {
|
|
4308
4308
|
return a === void 0 && (a = {}), {
|
|
4309
4309
|
name: "flip",
|
|
4310
4310
|
options: a,
|
|
@@ -4328,12 +4328,12 @@ const Q0 = function(a) {
|
|
|
4328
4328
|
} = L1(a, e);
|
|
4329
4329
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
4330
4330
|
return {};
|
|
4331
|
-
const M = pt(n), w = pt(l) === l, L = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), Z = h || (w || !$ ? [Qt(l)] :
|
|
4332
|
-
!h && g !== "none" && Z.push(...
|
|
4331
|
+
const M = pt(n), w = pt(l) === l, L = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), Z = h || (w || !$ ? [Qt(l)] : z3(l));
|
|
4332
|
+
!h && g !== "none" && Z.push(...Y3(l, $, g, L));
|
|
4333
4333
|
const j = [l, ...Z], V = await ka(e, T), I = [];
|
|
4334
4334
|
let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4335
4335
|
if (u && I.push(V[M]), f) {
|
|
4336
|
-
const S =
|
|
4336
|
+
const S = W3(n, i, L);
|
|
4337
4337
|
I.push(V[S[0]], V[S[1]]);
|
|
4338
4338
|
}
|
|
4339
4339
|
if (z = [...z, {
|
|
@@ -4356,8 +4356,8 @@ const Q0 = function(a) {
|
|
|
4356
4356
|
if (!le)
|
|
4357
4357
|
switch (p) {
|
|
4358
4358
|
case "bestFit": {
|
|
4359
|
-
var
|
|
4360
|
-
const J = (
|
|
4359
|
+
var y;
|
|
4360
|
+
const J = (y = z.map((re) => [re.placement, re.overflows.filter((ae) => ae > 0).reduce((ae, m) => ae + m, 0)]).sort((re, ae) => re[1] - ae[1])[0]) == null ? void 0 : y[0];
|
|
4361
4361
|
J && (le = J);
|
|
4362
4362
|
break;
|
|
4363
4363
|
}
|
|
@@ -4375,7 +4375,7 @@ const Q0 = function(a) {
|
|
|
4375
4375
|
return {};
|
|
4376
4376
|
}
|
|
4377
4377
|
};
|
|
4378
|
-
},
|
|
4378
|
+
}, J3 = function(a) {
|
|
4379
4379
|
return a === void 0 && (a = {}), {
|
|
4380
4380
|
name: "size",
|
|
4381
4381
|
options: a,
|
|
@@ -4454,14 +4454,14 @@ function Rt(a) {
|
|
|
4454
4454
|
} = Se(a);
|
|
4455
4455
|
return /auto|scroll|overlay|hidden|clip/.test(e + s + t) && !["inline", "contents"].includes(n);
|
|
4456
4456
|
}
|
|
4457
|
-
function
|
|
4457
|
+
function e0(a) {
|
|
4458
4458
|
return ["table", "td", "th"].includes(Ke(a));
|
|
4459
4459
|
}
|
|
4460
4460
|
function H1(a) {
|
|
4461
4461
|
const e = D1(), t = Se(a);
|
|
4462
4462
|
return t.transform !== "none" || t.perspective !== "none" || (t.containerType ? t.containerType !== "normal" : !1) || !e && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !e && (t.filter ? t.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((s) => (t.willChange || "").includes(s)) || ["paint", "layout", "strict", "content"].some((s) => (t.contain || "").includes(s));
|
|
4463
4463
|
}
|
|
4464
|
-
function
|
|
4464
|
+
function t0(a) {
|
|
4465
4465
|
let e = mt(a);
|
|
4466
4466
|
for (; He(e) && !c1(e); ) {
|
|
4467
4467
|
if (H1(e))
|
|
@@ -4538,15 +4538,15 @@ function ft(a) {
|
|
|
4538
4538
|
y: l
|
|
4539
4539
|
};
|
|
4540
4540
|
}
|
|
4541
|
-
const
|
|
4541
|
+
const a0 = /* @__PURE__ */ Ye(0);
|
|
4542
4542
|
function Ea(a) {
|
|
4543
4543
|
const e = we(a);
|
|
4544
|
-
return !D1() || !e.visualViewport ?
|
|
4544
|
+
return !D1() || !e.visualViewport ? a0 : {
|
|
4545
4545
|
x: e.visualViewport.offsetLeft,
|
|
4546
4546
|
y: e.visualViewport.offsetTop
|
|
4547
4547
|
};
|
|
4548
4548
|
}
|
|
4549
|
-
function
|
|
4549
|
+
function n0(a, e, t) {
|
|
4550
4550
|
return e === void 0 && (e = !1), !t || e && t !== we(a) ? !1 : e;
|
|
4551
4551
|
}
|
|
4552
4552
|
function Je(a, e, t, s) {
|
|
@@ -4554,7 +4554,7 @@ function Je(a, e, t, s) {
|
|
|
4554
4554
|
const n = a.getBoundingClientRect(), o = P1(a);
|
|
4555
4555
|
let i = Ye(1);
|
|
4556
4556
|
e && (s ? Ue(s) && (i = ft(s)) : i = ft(a));
|
|
4557
|
-
const l =
|
|
4557
|
+
const l = n0(o, t, s) ? Ea(o) : Ye(0);
|
|
4558
4558
|
let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, f = n.height / i.y;
|
|
4559
4559
|
if (o) {
|
|
4560
4560
|
const h = we(o), p = s && Ue(s) ? we(s) : s;
|
|
@@ -4571,7 +4571,7 @@ function Je(a, e, t, s) {
|
|
|
4571
4571
|
y: c
|
|
4572
4572
|
});
|
|
4573
4573
|
}
|
|
4574
|
-
function
|
|
4574
|
+
function s0(a) {
|
|
4575
4575
|
let {
|
|
4576
4576
|
rect: e,
|
|
4577
4577
|
offsetParent: t,
|
|
@@ -4596,13 +4596,13 @@ function s3(a) {
|
|
|
4596
4596
|
y: e.y * l.y - i.scrollTop * l.y + r.y
|
|
4597
4597
|
};
|
|
4598
4598
|
}
|
|
4599
|
-
function
|
|
4599
|
+
function i0(a) {
|
|
4600
4600
|
return Array.from(a.getClientRects());
|
|
4601
4601
|
}
|
|
4602
4602
|
function Ia(a) {
|
|
4603
4603
|
return Je(Ze(a)).left + d1(a).scrollLeft;
|
|
4604
4604
|
}
|
|
4605
|
-
function
|
|
4605
|
+
function o0(a) {
|
|
4606
4606
|
const e = Ze(a), t = d1(a), s = a.ownerDocument.body, n = ke(e.scrollWidth, e.clientWidth, s.scrollWidth, s.clientWidth), o = ke(e.scrollHeight, e.clientHeight, s.scrollHeight, s.clientHeight);
|
|
4607
4607
|
let i = -t.scrollLeft + Ia(a);
|
|
4608
4608
|
const l = -t.scrollTop;
|
|
@@ -4613,7 +4613,7 @@ function o3(a) {
|
|
|
4613
4613
|
y: l
|
|
4614
4614
|
};
|
|
4615
4615
|
}
|
|
4616
|
-
function
|
|
4616
|
+
function l0(a, e) {
|
|
4617
4617
|
const t = we(a), s = Ze(a), n = t.visualViewport;
|
|
4618
4618
|
let o = s.clientWidth, i = s.clientHeight, l = 0, r = 0;
|
|
4619
4619
|
if (n) {
|
|
@@ -4628,7 +4628,7 @@ function l3(a, e) {
|
|
|
4628
4628
|
y: r
|
|
4629
4629
|
};
|
|
4630
4630
|
}
|
|
4631
|
-
function
|
|
4631
|
+
function r0(a, e) {
|
|
4632
4632
|
const t = Je(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = He(a) ? ft(a) : Ye(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, c = s * o.y;
|
|
4633
4633
|
return {
|
|
4634
4634
|
width: i,
|
|
@@ -4640,11 +4640,11 @@ function r3(a, e) {
|
|
|
4640
4640
|
function na(a, e, t) {
|
|
4641
4641
|
let s;
|
|
4642
4642
|
if (e === "viewport")
|
|
4643
|
-
s =
|
|
4643
|
+
s = l0(a, t);
|
|
4644
4644
|
else if (e === "document")
|
|
4645
|
-
s =
|
|
4645
|
+
s = o0(Ze(a));
|
|
4646
4646
|
else if (Ue(e))
|
|
4647
|
-
s =
|
|
4647
|
+
s = r0(e, t);
|
|
4648
4648
|
else {
|
|
4649
4649
|
const n = Ea(a);
|
|
4650
4650
|
s = {
|
|
@@ -4659,7 +4659,7 @@ function Oa(a, e) {
|
|
|
4659
4659
|
const t = mt(a);
|
|
4660
4660
|
return t === e || !Ue(t) || c1(t) ? !1 : Se(t).position === "fixed" || Oa(t, e);
|
|
4661
4661
|
}
|
|
4662
|
-
function
|
|
4662
|
+
function u0(a, e) {
|
|
4663
4663
|
const t = e.get(a);
|
|
4664
4664
|
if (t)
|
|
4665
4665
|
return t;
|
|
@@ -4672,14 +4672,14 @@ function u3(a, e) {
|
|
|
4672
4672
|
}
|
|
4673
4673
|
return e.set(a, s), s;
|
|
4674
4674
|
}
|
|
4675
|
-
function
|
|
4675
|
+
function c0(a) {
|
|
4676
4676
|
let {
|
|
4677
4677
|
element: e,
|
|
4678
4678
|
boundary: t,
|
|
4679
4679
|
rootBoundary: s,
|
|
4680
4680
|
strategy: n
|
|
4681
4681
|
} = a;
|
|
4682
|
-
const i = [...t === "clippingAncestors" ?
|
|
4682
|
+
const i = [...t === "clippingAncestors" ? u0(e, this._c) : [].concat(t), s], l = i[0], r = i.reduce((c, u) => {
|
|
4683
4683
|
const f = na(e, u, n);
|
|
4684
4684
|
return c.top = ke(f.top, c.top), c.right = Lt(f.right, c.right), c.bottom = Lt(f.bottom, c.bottom), c.left = ke(f.left, c.left), c;
|
|
4685
4685
|
}, na(e, l, n));
|
|
@@ -4690,10 +4690,10 @@ function c3(a) {
|
|
|
4690
4690
|
y: r.top
|
|
4691
4691
|
};
|
|
4692
4692
|
}
|
|
4693
|
-
function
|
|
4693
|
+
function d0(a) {
|
|
4694
4694
|
return Sa(a);
|
|
4695
4695
|
}
|
|
4696
|
-
function
|
|
4696
|
+
function f0(a, e, t) {
|
|
4697
4697
|
const s = He(e), n = Ze(e), o = t === "fixed", i = Je(a, !0, o, e);
|
|
4698
4698
|
let l = {
|
|
4699
4699
|
scrollLeft: 0,
|
|
@@ -4721,11 +4721,11 @@ function La(a, e) {
|
|
|
4721
4721
|
if (!He(a))
|
|
4722
4722
|
return t;
|
|
4723
4723
|
let s = sa(a, e);
|
|
4724
|
-
for (; s &&
|
|
4724
|
+
for (; s && e0(s) && Se(s).position === "static"; )
|
|
4725
4725
|
s = sa(s, e);
|
|
4726
|
-
return s && (Ke(s) === "html" || Ke(s) === "body" && Se(s).position === "static" && !H1(s)) ? t : s ||
|
|
4726
|
+
return s && (Ke(s) === "html" || Ke(s) === "body" && Se(s).position === "static" && !H1(s)) ? t : s || t0(a) || t;
|
|
4727
4727
|
}
|
|
4728
|
-
const
|
|
4728
|
+
const v0 = async function(a) {
|
|
4729
4729
|
let {
|
|
4730
4730
|
reference: e,
|
|
4731
4731
|
floating: t,
|
|
@@ -4733,7 +4733,7 @@ const v3 = async function(a) {
|
|
|
4733
4733
|
} = a;
|
|
4734
4734
|
const n = this.getOffsetParent || La, o = this.getDimensions;
|
|
4735
4735
|
return {
|
|
4736
|
-
reference:
|
|
4736
|
+
reference: f0(e, await n(t), s),
|
|
4737
4737
|
floating: {
|
|
4738
4738
|
x: 0,
|
|
4739
4739
|
y: 0,
|
|
@@ -4741,22 +4741,22 @@ const v3 = async function(a) {
|
|
|
4741
4741
|
}
|
|
4742
4742
|
};
|
|
4743
4743
|
};
|
|
4744
|
-
function
|
|
4744
|
+
function h0(a) {
|
|
4745
4745
|
return Se(a).direction === "rtl";
|
|
4746
4746
|
}
|
|
4747
|
-
const
|
|
4748
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4747
|
+
const p0 = {
|
|
4748
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: s0,
|
|
4749
4749
|
getDocumentElement: Ze,
|
|
4750
|
-
getClippingRect:
|
|
4750
|
+
getClippingRect: c0,
|
|
4751
4751
|
getOffsetParent: La,
|
|
4752
|
-
getElementRects:
|
|
4753
|
-
getClientRects:
|
|
4754
|
-
getDimensions:
|
|
4752
|
+
getElementRects: v0,
|
|
4753
|
+
getClientRects: i0,
|
|
4754
|
+
getDimensions: d0,
|
|
4755
4755
|
getScale: ft,
|
|
4756
4756
|
isElement: Ue,
|
|
4757
|
-
isRTL:
|
|
4757
|
+
isRTL: h0
|
|
4758
4758
|
};
|
|
4759
|
-
function
|
|
4759
|
+
function m0(a, e) {
|
|
4760
4760
|
let t = null, s;
|
|
4761
4761
|
const n = Ze(a);
|
|
4762
4762
|
function o() {
|
|
@@ -4801,7 +4801,7 @@ function m3(a, e) {
|
|
|
4801
4801
|
}
|
|
4802
4802
|
return i(!0), o;
|
|
4803
4803
|
}
|
|
4804
|
-
function
|
|
4804
|
+
function C0(a, e, t, s) {
|
|
4805
4805
|
s === void 0 && (s = {});
|
|
4806
4806
|
const {
|
|
4807
4807
|
ancestorScroll: n = !0,
|
|
@@ -4815,7 +4815,7 @@ function C3(a, e, t, s) {
|
|
|
4815
4815
|
passive: !0
|
|
4816
4816
|
}), o && M.addEventListener("resize", t);
|
|
4817
4817
|
});
|
|
4818
|
-
const f = c && l ?
|
|
4818
|
+
const f = c && l ? m0(c, t) : null;
|
|
4819
4819
|
let h = -1, p = null;
|
|
4820
4820
|
i && (p = new ResizeObserver((M) => {
|
|
4821
4821
|
let [w] = M;
|
|
@@ -4835,19 +4835,19 @@ function C3(a, e, t, s) {
|
|
|
4835
4835
|
}), f && f(), p && p.disconnect(), p = null, r && cancelAnimationFrame(g);
|
|
4836
4836
|
};
|
|
4837
4837
|
}
|
|
4838
|
-
const
|
|
4838
|
+
const _0 = (a, e, t) => {
|
|
4839
4839
|
const s = /* @__PURE__ */ new Map(), n = {
|
|
4840
|
-
platform:
|
|
4840
|
+
platform: p0,
|
|
4841
4841
|
...t
|
|
4842
4842
|
}, o = {
|
|
4843
4843
|
...n.platform,
|
|
4844
4844
|
_c: s
|
|
4845
4845
|
};
|
|
4846
|
-
return
|
|
4846
|
+
return X3(a, e, {
|
|
4847
4847
|
...n,
|
|
4848
4848
|
platform: o
|
|
4849
4849
|
});
|
|
4850
|
-
},
|
|
4850
|
+
}, g0 = (a) => {
|
|
4851
4851
|
const e = X(!1), t = X(), s = X(), n = X(0);
|
|
4852
4852
|
function o() {
|
|
4853
4853
|
const f = F(a.appendTo);
|
|
@@ -4872,21 +4872,21 @@ const _3 = (a, e, t) => {
|
|
|
4872
4872
|
transform: "none",
|
|
4873
4873
|
marginTop: 0
|
|
4874
4874
|
}), i.appendChild(h), a.multiselect.value.handleFocusOut = r;
|
|
4875
|
-
const g =
|
|
4875
|
+
const g = C0(t.value, s.value, u);
|
|
4876
4876
|
l.value = () => {
|
|
4877
4877
|
s.value && i.contains(s.value) && i.removeChild(s.value), g();
|
|
4878
4878
|
};
|
|
4879
4879
|
}
|
|
4880
4880
|
function u() {
|
|
4881
|
-
!s.value || !t.value ||
|
|
4881
|
+
!s.value || !t.value || _0(t.value, s.value, {
|
|
4882
4882
|
strategy: "absolute",
|
|
4883
4883
|
placement: "bottom-start",
|
|
4884
4884
|
middleware: [
|
|
4885
|
-
|
|
4885
|
+
Q3({
|
|
4886
4886
|
fallbackStrategy: "initialPlacement",
|
|
4887
4887
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
4888
4888
|
}),
|
|
4889
|
-
|
|
4889
|
+
J3({
|
|
4890
4890
|
apply({ availableWidth: f, availableHeight: h, elements: p, rects: g }) {
|
|
4891
4891
|
Object.assign(p.floating.style, {
|
|
4892
4892
|
minHeight: `${n.value}px`,
|
|
@@ -4916,7 +4916,7 @@ const _3 = (a, e, t) => {
|
|
|
4916
4916
|
function Le(a) {
|
|
4917
4917
|
return [null, void 0].indexOf(a) !== -1;
|
|
4918
4918
|
}
|
|
4919
|
-
function
|
|
4919
|
+
function y0(a, e, t) {
|
|
4920
4920
|
const { object: s, valueProp: n, mode: o } = $e(a), i = tt().proxy, l = t.iv, r = (f, h = !0) => {
|
|
4921
4921
|
l.value = u(f);
|
|
4922
4922
|
const p = c(f);
|
|
@@ -4926,8 +4926,8 @@ function y3(a, e, t) {
|
|
|
4926
4926
|
update: r
|
|
4927
4927
|
};
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4930
|
-
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = X(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r =
|
|
4929
|
+
function b0(a, e) {
|
|
4930
|
+
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = X(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = b(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), c = b(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4931
4931
|
return {
|
|
4932
4932
|
iv: i,
|
|
4933
4933
|
internalValue: i,
|
|
@@ -4937,7 +4937,7 @@ function b3(a, e) {
|
|
|
4937
4937
|
plainValue: r
|
|
4938
4938
|
};
|
|
4939
4939
|
}
|
|
4940
|
-
function
|
|
4940
|
+
function w0(a, e, t) {
|
|
4941
4941
|
const { regex: s } = $e(a), n = tt().proxy, o = t.isOpen, i = t.open, l = X(null), r = X(null), c = () => {
|
|
4942
4942
|
l.value = "";
|
|
4943
4943
|
}, u = (p) => {
|
|
@@ -4966,7 +4966,7 @@ function w3(a, e, t) {
|
|
|
4966
4966
|
handlePaste: h
|
|
4967
4967
|
};
|
|
4968
4968
|
}
|
|
4969
|
-
function $
|
|
4969
|
+
function $0(a, e, t) {
|
|
4970
4970
|
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = $e(a), l = X(null), r = (u) => {
|
|
4971
4971
|
u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (l.value = u);
|
|
4972
4972
|
};
|
|
@@ -4981,16 +4981,16 @@ function $3(a, e, t) {
|
|
|
4981
4981
|
function $1(a, e = !0) {
|
|
4982
4982
|
return e ? String(a).toLowerCase().trim() : String(a).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g), "ae").replace(new RegExp(/œ/g), "oe").replace(new RegExp(/ø/g), "o").replace(/\p{Diacritic}/gu, "");
|
|
4983
4983
|
}
|
|
4984
|
-
function
|
|
4984
|
+
function M0(a) {
|
|
4985
4985
|
return Object.prototype.toString.call(a) === "[object Object]";
|
|
4986
4986
|
}
|
|
4987
|
-
function
|
|
4987
|
+
function k0(a, e) {
|
|
4988
4988
|
const t = e.slice().sort();
|
|
4989
4989
|
return a.length === e.length && a.slice().sort().every(function(s, n) {
|
|
4990
4990
|
return s === t[n];
|
|
4991
4991
|
});
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function A0(a, e, t) {
|
|
4994
4994
|
const {
|
|
4995
4995
|
options: s,
|
|
4996
4996
|
mode: n,
|
|
@@ -5016,7 +5016,7 @@ function A3(a, e, t) {
|
|
|
5016
5016
|
groupLabel: z,
|
|
5017
5017
|
canDeselect: Y,
|
|
5018
5018
|
max: ne,
|
|
5019
|
-
strict:
|
|
5019
|
+
strict: y,
|
|
5020
5020
|
closeOnSelect: S,
|
|
5021
5021
|
closeOnDeselect: D,
|
|
5022
5022
|
groups: le,
|
|
@@ -5029,7 +5029,7 @@ function A3(a, e, t) {
|
|
|
5029
5029
|
disabledProp: B,
|
|
5030
5030
|
searchStart: oe,
|
|
5031
5031
|
searchFilter: me
|
|
5032
|
-
} = $e(a), se = tt().proxy, ee = t.iv, O = t.ev, q = t.search, Ce = t.clearSearch, Pe = t.update, Ha = t.pointer, nt = t.clearPointer, Da = t.focus, Pa = t.deactivate, st = t.close, Ba = t.localize, gt = X([]), je = X([]), Ie = X(!1), f1 = X(null), v1 = X(re.value && i.value === -1 ? 10 : i.value), U1 =
|
|
5032
|
+
} = $e(a), se = tt().proxy, ee = t.iv, O = t.ev, q = t.search, Ce = t.clearSearch, Pe = t.update, Ha = t.pointer, nt = t.clearPointer, Da = t.focus, Pa = t.deactivate, st = t.close, Ba = t.localize, gt = X([]), je = X([]), Ie = X(!1), f1 = X(null), v1 = X(re.value && i.value === -1 ? 10 : i.value), U1 = b(() => r.value || c.value || !1), Na = b(() => f.value !== void 0 ? f.value : h.value !== void 0 ? h.value : !0), Fe = b(() => {
|
|
5033
5033
|
if (le.value) {
|
|
5034
5034
|
let _ = Ut.value || /* istanbul ignore next */
|
|
5035
5035
|
[], H = [];
|
|
@@ -5043,13 +5043,13 @@ function A3(a, e, t) {
|
|
|
5043
5043
|
[]);
|
|
5044
5044
|
return gt.value.length && (_ = _.concat(gt.value)), _;
|
|
5045
5045
|
}
|
|
5046
|
-
}), Z1 =
|
|
5046
|
+
}), Z1 = b(() => {
|
|
5047
5047
|
let _ = Fe.value;
|
|
5048
5048
|
return J.value && (_ = _.reverse()), it.value.length && (_ = it.value.concat(_)), _1(_);
|
|
5049
|
-
}), yt =
|
|
5049
|
+
}), yt = b(() => {
|
|
5050
5050
|
let _ = Z1.value;
|
|
5051
5051
|
return v1.value > 0 && (_ = _.slice(0, v1.value)), _;
|
|
5052
|
-
}), Ut =
|
|
5052
|
+
}), Ut = b(() => {
|
|
5053
5053
|
if (!le.value)
|
|
5054
5054
|
return [];
|
|
5055
5055
|
let _ = [], H = je.value || /* istanbul ignore next */
|
|
@@ -5059,14 +5059,14 @@ function A3(a, e, t) {
|
|
|
5059
5059
|
[ae.value]: [...gt.value],
|
|
5060
5060
|
__CREATE__: !0
|
|
5061
5061
|
}), _.concat(H);
|
|
5062
|
-
}), Ra =
|
|
5062
|
+
}), Ra = b(() => {
|
|
5063
5063
|
let _ = [...Ut.value].map((H) => ({ ...H }));
|
|
5064
5064
|
return it.value.length && (_[0] && _[0].__CREATE__ ? _[0][ae.value] = [...it.value, ..._[0][ae.value]] : _ = [{
|
|
5065
5065
|
[z.value]: " ",
|
|
5066
5066
|
[ae.value]: [...it.value],
|
|
5067
5067
|
__CREATE__: !0
|
|
5068
5068
|
}].concat(_)), _;
|
|
5069
|
-
}), j1 =
|
|
5069
|
+
}), j1 = b(() => {
|
|
5070
5070
|
if (!le.value)
|
|
5071
5071
|
return [];
|
|
5072
5072
|
let _ = Ra.value;
|
|
@@ -5081,7 +5081,7 @@ function A3(a, e, t) {
|
|
|
5081
5081
|
__VISIBLE__: _1(ve).map((bt) => Object.assign({}, bt, H[B.value] ? { [B.value]: !0 } : {}))
|
|
5082
5082
|
};
|
|
5083
5083
|
}));
|
|
5084
|
-
}), h1 =
|
|
5084
|
+
}), h1 = b(() => {
|
|
5085
5085
|
switch (n.value) {
|
|
5086
5086
|
case "single":
|
|
5087
5087
|
return !Le(ee.value[V.value]);
|
|
@@ -5089,12 +5089,12 @@ function A3(a, e, t) {
|
|
|
5089
5089
|
case "tags":
|
|
5090
5090
|
return !Le(ee.value) && ee.value.length > 0;
|
|
5091
5091
|
}
|
|
5092
|
-
}), Ua =
|
|
5092
|
+
}), Ua = b(() => p !== void 0 && p.value !== void 0 ? p.value(ee.value, se) : ee.value && ee.value.length > 1 ? `${ee.value.length} options selected` : "1 option selected"), Za = b(() => !Fe.value.length && !Ie.value && !it.value.length), ja = b(() => Fe.value.length > 0 && yt.value.length == 0 && (q.value && le.value || !le.value)), it = b(() => U1.value === !1 || !q.value ? [] : Xa(q.value) !== -1 ? [] : [{
|
|
5093
5093
|
[V.value]: q.value,
|
|
5094
5094
|
[Oe.value]: q.value,
|
|
5095
5095
|
[u.value]: q.value,
|
|
5096
5096
|
__CREATE__: !0
|
|
5097
|
-
}]), Oe =
|
|
5097
|
+
}]), Oe = b(() => o.value || u.value), Fa = b(() => {
|
|
5098
5098
|
switch (n.value) {
|
|
5099
5099
|
case "single":
|
|
5100
5100
|
return null;
|
|
@@ -5102,7 +5102,7 @@ function A3(a, e, t) {
|
|
|
5102
5102
|
case "tags":
|
|
5103
5103
|
return [];
|
|
5104
5104
|
}
|
|
5105
|
-
}), qa =
|
|
5105
|
+
}), qa = b(() => $.value || Ie.value), ot = (_) => {
|
|
5106
5106
|
switch (typeof _ != "object" && (_ = Ne(_)), n.value) {
|
|
5107
5107
|
case "single":
|
|
5108
5108
|
Pe(_);
|
|
@@ -5213,15 +5213,15 @@ function A3(a, e, t) {
|
|
|
5213
5213
|
let te = _;
|
|
5214
5214
|
if (q.value && L.value) {
|
|
5215
5215
|
let ve = me.value;
|
|
5216
|
-
ve || (ve = (bt,
|
|
5217
|
-
let Y1 = $1(Ba(bt[Oe.value]),
|
|
5218
|
-
return oe.value ? Y1.startsWith($1(q.value,
|
|
5216
|
+
ve || (ve = (bt, L4) => {
|
|
5217
|
+
let Y1 = $1(Ba(bt[Oe.value]), y.value);
|
|
5218
|
+
return oe.value ? Y1.startsWith($1(q.value, y.value)) : Y1.indexOf($1(q.value, y.value)) !== -1;
|
|
5219
5219
|
}), te = te.filter(ve);
|
|
5220
5220
|
}
|
|
5221
5221
|
return l.value && H && (te = te.filter((ve) => !Qa(ve))), te;
|
|
5222
5222
|
}, g1 = (_) => {
|
|
5223
5223
|
let H = _;
|
|
5224
|
-
return
|
|
5224
|
+
return M0(H) && (H = Object.keys(H).map((te) => {
|
|
5225
5225
|
let ve = H[te];
|
|
5226
5226
|
return { [V.value]: te, [Oe.value]: ve, [u.value]: ve };
|
|
5227
5227
|
})), H = H.map((te) => typeof te == "object" ? te : { [V.value]: te, [Oe.value]: te, [u.value]: te }), H;
|
|
@@ -5290,7 +5290,7 @@ function A3(a, e, t) {
|
|
|
5290
5290
|
break;
|
|
5291
5291
|
case "multiple":
|
|
5292
5292
|
case "tags":
|
|
5293
|
-
|
|
5293
|
+
k0(g.value ? _.map((H) => H[V.value]) : _, ee.value.map((H) => H[V.value])) || Pe(Ft(_), !1);
|
|
5294
5294
|
break;
|
|
5295
5295
|
}
|
|
5296
5296
|
}, { deep: !0 }), ue(s, (_, H) => {
|
|
@@ -5329,7 +5329,7 @@ function A3(a, e, t) {
|
|
|
5329
5329
|
refreshLabels: y1
|
|
5330
5330
|
};
|
|
5331
5331
|
}
|
|
5332
|
-
function
|
|
5332
|
+
function T0(a, e, t) {
|
|
5333
5333
|
const {
|
|
5334
5334
|
valueProp: s,
|
|
5335
5335
|
showOptions: n,
|
|
@@ -5340,23 +5340,23 @@ function T3(a, e, t) {
|
|
|
5340
5340
|
groupSelect: c,
|
|
5341
5341
|
disabledProp: u,
|
|
5342
5342
|
groupOptions: f
|
|
5343
|
-
} = $e(a), h = t.fo, p = t.fg, g = t.handleOptionClick, $ = t.handleGroupClick, T = t.search, M = t.pointer, w = t.setPointer, L = t.clearPointer, Z = t.multiselect, j = t.isOpen, V =
|
|
5343
|
+
} = $e(a), h = t.fo, p = t.fg, g = t.handleOptionClick, $ = t.handleGroupClick, T = t.search, M = t.pointer, w = t.setPointer, L = t.clearPointer, Z = t.multiselect, j = t.isOpen, V = b(() => h.value.filter((O) => !O[u.value])), I = b(() => p.value.filter((O) => !O[u.value])), z = b(() => r.value !== "single" && c.value), Y = b(() => M.value && M.value.group), ne = b(() => se(M.value)), y = b(() => {
|
|
5344
5344
|
const O = Y.value ? M.value : (
|
|
5345
5345
|
/* istanbul ignore next */
|
|
5346
5346
|
se(M.value)
|
|
5347
5347
|
), q = I.value.map((Pe) => Pe[i.value]).indexOf(O[i.value]);
|
|
5348
5348
|
let Ce = I.value[q - 1];
|
|
5349
5349
|
return Ce === void 0 && (Ce = D.value), Ce;
|
|
5350
|
-
}), S =
|
|
5350
|
+
}), S = b(() => {
|
|
5351
5351
|
let O = I.value.map((q) => q.label).indexOf(Y.value ? M.value[i.value] : se(M.value)[i.value]) + 1;
|
|
5352
5352
|
return I.value.length <= O && (O = 0), I.value[O];
|
|
5353
|
-
}), D =
|
|
5353
|
+
}), D = b(() => [...I.value].slice(-1)[0]), le = b(() => M.value.__VISIBLE__.filter((O) => !O[u.value])[0]), J = b(() => {
|
|
5354
5354
|
const O = ne.value.__VISIBLE__.filter((q) => !q[u.value]);
|
|
5355
5355
|
return O[O.map((q) => q[s.value]).indexOf(M.value[s.value]) - 1];
|
|
5356
|
-
}), re =
|
|
5356
|
+
}), re = b(() => {
|
|
5357
5357
|
const O = se(M.value).__VISIBLE__.filter((q) => !q[u.value]);
|
|
5358
5358
|
return O[O.map((q) => q[s.value]).indexOf(M.value[s.value]) + 1];
|
|
5359
|
-
}), ae =
|
|
5359
|
+
}), ae = b(() => [...y.value.__VISIBLE__.filter((O) => !O[u.value])].slice(-1)[0]), m = b(() => [...D.value.__VISIBLE__.filter((O) => !O[u.value])].slice(-1)[0]), A = (O) => M.value && (!O.group && M.value[s.value] === O[s.value] || O.group !== void 0 && M.value[i.value] === O[i.value]) ? !0 : void 0, N = () => {
|
|
5360
5360
|
w(V.value[0] || null);
|
|
5361
5361
|
}, B = () => {
|
|
5362
5362
|
!M.value || M.value[u.value] === !0 || (Y.value ? $(M.value) : g(M.value));
|
|
@@ -5380,7 +5380,7 @@ function T3(a, e, t) {
|
|
|
5380
5380
|
l.value && z.value && (O = m.value, O === void 0 && (O = D.value)), w(O || null);
|
|
5381
5381
|
} else if (l.value && z.value) {
|
|
5382
5382
|
let O = Y.value ? ae.value : J.value;
|
|
5383
|
-
O === void 0 && (O = Y.value ?
|
|
5383
|
+
O === void 0 && (O = Y.value ? y.value : ne.value, O.__CREATE__ && (O = ae.value, O === void 0 && (O = y.value))), w(O || /* istanbul ignore next */
|
|
5384
5384
|
null);
|
|
5385
5385
|
} else {
|
|
5386
5386
|
let O = V.value.map((q) => q[s.value]).indexOf(M.value[s.value]) - 1;
|
|
@@ -5418,7 +5418,7 @@ function T3(a, e, t) {
|
|
|
5418
5418
|
backwardPointer: me
|
|
5419
5419
|
};
|
|
5420
5420
|
}
|
|
5421
|
-
function
|
|
5421
|
+
function S0(a, e, t) {
|
|
5422
5422
|
const { disabled: s } = $e(a), n = tt().proxy, o = X(!1);
|
|
5423
5423
|
return {
|
|
5424
5424
|
isOpen: o,
|
|
@@ -5430,8 +5430,8 @@ function S3(a, e, t) {
|
|
|
5430
5430
|
}
|
|
5431
5431
|
};
|
|
5432
5432
|
}
|
|
5433
|
-
function
|
|
5434
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, c = t.clearSearch, u = t.isOpen, f = X(null), h = X(null), p = X(null), g = X(!1), $ = X(!1), T =
|
|
5433
|
+
function E0(a, e, t) {
|
|
5434
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, c = t.clearSearch, u = t.isOpen, f = X(null), h = X(null), p = X(null), g = X(!1), $ = X(!1), T = b(() => s.value || n.value ? -1 : 0), M = () => {
|
|
5435
5435
|
s.value && i.value.blur(), h.value.blur();
|
|
5436
5436
|
}, w = () => {
|
|
5437
5437
|
s.value && !n.value && i.value.focus();
|
|
@@ -5471,7 +5471,7 @@ function E3(a, e, t) {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
};
|
|
5473
5473
|
}
|
|
5474
|
-
function
|
|
5474
|
+
function I0(a, e, t) {
|
|
5475
5475
|
const {
|
|
5476
5476
|
mode: s,
|
|
5477
5477
|
addTagOn: n,
|
|
@@ -5484,7 +5484,7 @@ function I3(a, e, t) {
|
|
|
5484
5484
|
createTag: f,
|
|
5485
5485
|
createOption: h,
|
|
5486
5486
|
reverse: p
|
|
5487
|
-
} = $e(a), g = tt().proxy, $ = t.iv, T = t.update, M = t.search, w = t.setPointer, L = t.selectPointer, Z = t.backwardPointer, j = t.forwardPointer, V = t.multiselect, I = t.wrapper, z = t.tags, Y = t.isOpen, ne = t.open,
|
|
5487
|
+
} = $e(a), g = tt().proxy, $ = t.iv, T = t.update, M = t.search, w = t.setPointer, L = t.selectPointer, Z = t.backwardPointer, j = t.forwardPointer, V = t.multiselect, I = t.wrapper, z = t.tags, Y = t.isOpen, ne = t.open, y = t.blur, S = t.fo, D = b(() => f.value || h.value || !1), le = b(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), J = () => {
|
|
5488
5488
|
s.value === "tags" && !l.value && D.value && i.value && !c.value && w(S.value[S.value.map((A) => A[r.value]).indexOf(M.value)]);
|
|
5489
5489
|
}, re = (A) => {
|
|
5490
5490
|
let N = A.length - 1;
|
|
@@ -5532,7 +5532,7 @@ function I3(a, e, t) {
|
|
|
5532
5532
|
J(), L(), A.preventDefault();
|
|
5533
5533
|
break;
|
|
5534
5534
|
case "Escape":
|
|
5535
|
-
|
|
5535
|
+
y();
|
|
5536
5536
|
break;
|
|
5537
5537
|
case "ArrowUp":
|
|
5538
5538
|
if (A.preventDefault(), !l.value)
|
|
@@ -5562,13 +5562,13 @@ function I3(a, e, t) {
|
|
|
5562
5562
|
preparePointer: J
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
5565
|
-
function
|
|
5565
|
+
function O0(a, e, t) {
|
|
5566
5566
|
const {
|
|
5567
5567
|
classes: s,
|
|
5568
5568
|
disabled: n,
|
|
5569
5569
|
openDirection: o,
|
|
5570
5570
|
showOptions: i
|
|
5571
|
-
} = $e(a), l = t.isOpen, r = t.isPointed, c = t.isSelected, u = t.isDisabled, f = t.isActive, h = t.canPointGroups, p = t.resolving, g = t.fo, $ =
|
|
5571
|
+
} = $e(a), l = t.isOpen, r = t.isPointed, c = t.isSelected, u = t.isDisabled, f = t.isActive, h = t.canPointGroups, p = t.resolving, g = t.fo, $ = b(() => ({
|
|
5572
5572
|
container: "multiselect",
|
|
5573
5573
|
containerDisabled: "is-disabled",
|
|
5574
5574
|
containerOpen: "is-open",
|
|
@@ -5621,9 +5621,9 @@ function O3(a, e, t) {
|
|
|
5621
5621
|
assist: "multiselect-assistive-text",
|
|
5622
5622
|
spacer: "multiselect-spacer",
|
|
5623
5623
|
...s.value
|
|
5624
|
-
})), T =
|
|
5624
|
+
})), T = b(() => !!(l.value && i.value && (!p.value || p.value && g.value.length)));
|
|
5625
5625
|
return {
|
|
5626
|
-
classList:
|
|
5626
|
+
classList: b(() => {
|
|
5627
5627
|
const w = $.value;
|
|
5628
5628
|
return {
|
|
5629
5629
|
container: [w.container].concat(n.value ? w.containerDisabled : []).concat(T.value && o.value === "top" ? w.containerOpenTop : []).concat(T.value && o.value !== "top" ? w.containerOpen : []).concat(f.value ? w.containerActive : []),
|
|
@@ -5669,11 +5669,11 @@ function O3(a, e, t) {
|
|
|
5669
5669
|
showDropdown: T
|
|
5670
5670
|
};
|
|
5671
5671
|
}
|
|
5672
|
-
function
|
|
5672
|
+
function L0(a, e, t) {
|
|
5673
5673
|
const {
|
|
5674
5674
|
limit: s,
|
|
5675
5675
|
infinite: n
|
|
5676
|
-
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, c = t.eo, u = X(null), f = X(null), h =
|
|
5676
|
+
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, c = t.eo, u = X(null), f = X(null), h = b(() => i.value < r.value.length), p = ($) => {
|
|
5677
5677
|
const { isIntersecting: T, target: M } = $[0];
|
|
5678
5678
|
if (T) {
|
|
5679
5679
|
const w = M.offsetParent, L = w.scrollTop;
|
|
@@ -5697,7 +5697,7 @@ function L3(a, e, t) {
|
|
|
5697
5697
|
infiniteLoader: f
|
|
5698
5698
|
};
|
|
5699
5699
|
}
|
|
5700
|
-
function
|
|
5700
|
+
function V0(a, e, t) {
|
|
5701
5701
|
const {
|
|
5702
5702
|
placeholder: s,
|
|
5703
5703
|
id: n,
|
|
@@ -5707,20 +5707,20 @@ function V3(a, e, t) {
|
|
|
5707
5707
|
groupLabel: r,
|
|
5708
5708
|
aria: c,
|
|
5709
5709
|
searchable: u
|
|
5710
|
-
} = $e(a), f = t.pointer, h = t.iv, p = t.hasSelected, g = t.multipleLabelText, $ = X(null), T =
|
|
5710
|
+
} = $e(a), f = t.pointer, h = t.iv, p = t.hasSelected, g = t.multipleLabelText, $ = X(null), T = b(() => {
|
|
5711
5711
|
let S = [];
|
|
5712
5712
|
return n && n.value && S.push(n.value), S.push("assist"), S.join("-");
|
|
5713
|
-
}), M =
|
|
5713
|
+
}), M = b(() => {
|
|
5714
5714
|
let S = [];
|
|
5715
5715
|
return n && n.value && S.push(n.value), S.push("multiselect-options"), S.join("-");
|
|
5716
|
-
}), w =
|
|
5716
|
+
}), w = b(() => {
|
|
5717
5717
|
let S = [];
|
|
5718
5718
|
if (n && n.value && S.push(n.value), f.value)
|
|
5719
5719
|
return S.push(f.value.group ? "multiselect-group" : "multiselect-option"), S.push(f.value.group ? f.value.index : f.value[o.value]), S.join("-");
|
|
5720
|
-
}), L =
|
|
5720
|
+
}), L = b(() => s.value), Z = b(() => l.value !== "single"), j = b(() => {
|
|
5721
5721
|
let S = "";
|
|
5722
5722
|
return l.value === "single" && p.value && (S += h.value[i.value]), l.value === "multiple" && p.value && (S += g.value), l.value === "tags" && p.value && (S += h.value.map((D) => D[i.value]).join(", ")), S;
|
|
5723
|
-
}), V =
|
|
5723
|
+
}), V = b(() => {
|
|
5724
5724
|
let S = { ...c.value };
|
|
5725
5725
|
return u.value && (S["aria-labelledby"] = S["aria-labelledby"] ? `${T.value} ${S["aria-labelledby"]}` : T.value, j.value && S["aria-label"] && (S["aria-label"] = `${j.value}, ${S["aria-label"]}`)), S;
|
|
5726
5726
|
}), I = (S) => {
|
|
@@ -5735,7 +5735,7 @@ function V3(a, e, t) {
|
|
|
5735
5735
|
}, ne = (S) => {
|
|
5736
5736
|
let D = [];
|
|
5737
5737
|
return D.push(S), D.join(" ");
|
|
5738
|
-
},
|
|
5738
|
+
}, y = (S) => `${S} ❎`;
|
|
5739
5739
|
return Dt(() => {
|
|
5740
5740
|
if (n && n.value && document && document.querySelector) {
|
|
5741
5741
|
let S = document.querySelector(`[for="${n.value}"]`);
|
|
@@ -5753,10 +5753,10 @@ function V3(a, e, t) {
|
|
|
5753
5753
|
ariaOptionLabel: Y,
|
|
5754
5754
|
ariaGroupId: z,
|
|
5755
5755
|
ariaGroupLabel: ne,
|
|
5756
|
-
ariaTagLabel:
|
|
5756
|
+
ariaTagLabel: y
|
|
5757
5757
|
};
|
|
5758
5758
|
}
|
|
5759
|
-
function
|
|
5759
|
+
function H0(a, e, t) {
|
|
5760
5760
|
const {
|
|
5761
5761
|
locale: s,
|
|
5762
5762
|
fallbackLocale: n
|
|
@@ -5765,7 +5765,7 @@ function H3(a, e, t) {
|
|
|
5765
5765
|
localize: (i) => !i || typeof i != "object" ? i : i && i[s.value] ? i[s.value] : i && s.value && i[s.value.toUpperCase()] ? i[s.value.toUpperCase()] : i && i[n.value] ? i[n.value] : i && n.value && i[n.value.toUpperCase()] ? i[n.value.toUpperCase()] : i && Object.keys(i)[0] ? i[Object.keys(i)[0]] : ""
|
|
5766
5766
|
};
|
|
5767
5767
|
}
|
|
5768
|
-
function
|
|
5768
|
+
function D0(a, e, t, s = {}) {
|
|
5769
5769
|
return t.forEach((n) => {
|
|
5770
5770
|
n && (s = {
|
|
5771
5771
|
...s,
|
|
@@ -6109,24 +6109,24 @@ var We = {
|
|
|
6109
6109
|
}
|
|
6110
6110
|
},
|
|
6111
6111
|
setup(a, e) {
|
|
6112
|
-
return
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
$
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6112
|
+
return D0(a, e, [
|
|
6113
|
+
H0,
|
|
6114
|
+
b0,
|
|
6115
|
+
$0,
|
|
6116
|
+
S0,
|
|
6117
|
+
w0,
|
|
6118
|
+
y0,
|
|
6119
|
+
E0,
|
|
6120
|
+
A0,
|
|
6121
|
+
L0,
|
|
6122
|
+
T0,
|
|
6123
|
+
I0,
|
|
6124
|
+
O0,
|
|
6125
|
+
V0
|
|
6126
6126
|
]);
|
|
6127
6127
|
}
|
|
6128
6128
|
};
|
|
6129
|
-
const
|
|
6129
|
+
const P0 = ["id", "dir"], B0 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], N0 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], R0 = ["onKeyup", "aria-label"], U0 = ["onClick"], Z0 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], j0 = ["innerHTML"], F0 = ["id"], q0 = ["id", "aria-label", "aria-selected"], W0 = ["data-pointed", "onMouseenter", "onClick"], z0 = ["innerHTML"], x0 = ["aria-label"], Y0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], K0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], G0 = ["innerHTML"], X0 = ["innerHTML"], Q0 = ["value"], J0 = ["name", "value"], e5 = ["name", "value"], t5 = ["id"];
|
|
6130
6130
|
function a5(a, e, t, s, n, o) {
|
|
6131
6131
|
return v(), C("div", {
|
|
6132
6132
|
ref: "multiselect",
|
|
@@ -6172,7 +6172,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6172
6172
|
}, {
|
|
6173
6173
|
...t.attrs,
|
|
6174
6174
|
...a.arias
|
|
6175
|
-
}), null, 16,
|
|
6175
|
+
}), null, 16, N0)) : E("v-if", !0),
|
|
6176
6176
|
E(" Tags (with search) "),
|
|
6177
6177
|
t.mode == "tags" ? (v(), C(
|
|
6178
6178
|
"div",
|
|
@@ -6219,8 +6219,8 @@ function a5(a, e, t, s, n, o) {
|
|
|
6219
6219
|
2
|
|
6220
6220
|
/* CLASS */
|
|
6221
6221
|
)
|
|
6222
|
-
], 10,
|
|
6223
|
-
], 42,
|
|
6222
|
+
], 10, U0)) : E("v-if", !0)
|
|
6223
|
+
], 42, R0))
|
|
6224
6224
|
])),
|
|
6225
6225
|
256
|
|
6226
6226
|
/* UNKEYED_FRAGMENT */
|
|
@@ -6264,7 +6264,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6264
6264
|
}, {
|
|
6265
6265
|
...t.attrs,
|
|
6266
6266
|
...a.arias
|
|
6267
|
-
}), null, 16,
|
|
6267
|
+
}), null, 16, Z0)) : E("v-if", !0)
|
|
6268
6268
|
],
|
|
6269
6269
|
2
|
|
6270
6270
|
/* CLASS */
|
|
@@ -6306,7 +6306,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6306
6306
|
d("div", {
|
|
6307
6307
|
class: G(a.classList.multipleLabel),
|
|
6308
6308
|
innerHTML: a.multipleLabelText
|
|
6309
|
-
}, null, 10,
|
|
6309
|
+
}, null, 10, j0)
|
|
6310
6310
|
]) : E("v-if", !0),
|
|
6311
6311
|
E(" Placeholder "),
|
|
6312
6312
|
t.placeholder && !a.hasSelected && !a.search ? Q(a.$slots, "placeholder", { key: 4 }, () => [
|
|
@@ -6380,7 +6380,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6380
6380
|
/* CLASS */
|
|
6381
6381
|
)
|
|
6382
6382
|
]) : E("v-if", !0)
|
|
6383
|
-
], 16,
|
|
6383
|
+
], 16, B0),
|
|
6384
6384
|
E(" Options "),
|
|
6385
6385
|
d(
|
|
6386
6386
|
"div",
|
|
@@ -6420,9 +6420,9 @@ function a5(a, e, t, s, n, o) {
|
|
|
6420
6420
|
}, () => [
|
|
6421
6421
|
d("span", {
|
|
6422
6422
|
innerHTML: a.localize(i[t.groupLabel])
|
|
6423
|
-
}, null, 8,
|
|
6423
|
+
}, null, 8, z0)
|
|
6424
6424
|
])
|
|
6425
|
-
], 42,
|
|
6425
|
+
], 42, W0)),
|
|
6426
6426
|
d("ul", {
|
|
6427
6427
|
class: G(a.classList.groupOptions),
|
|
6428
6428
|
"aria-label": a.ariaGroupLabel(a.localize(i[t.groupLabel])),
|
|
@@ -6457,12 +6457,12 @@ function a5(a, e, t, s, n, o) {
|
|
|
6457
6457
|
/* TEXT */
|
|
6458
6458
|
)
|
|
6459
6459
|
])
|
|
6460
|
-
], 42,
|
|
6460
|
+
], 42, Y0))),
|
|
6461
6461
|
128
|
|
6462
6462
|
/* KEYED_FRAGMENT */
|
|
6463
6463
|
))
|
|
6464
|
-
], 10,
|
|
6465
|
-
], 10,
|
|
6464
|
+
], 10, x0)
|
|
6465
|
+
], 10, q0))),
|
|
6466
6466
|
128
|
|
6467
6467
|
/* KEYED_FRAGMENT */
|
|
6468
6468
|
)) : (v(!0), C(
|
|
@@ -6494,22 +6494,22 @@ function a5(a, e, t, s, n, o) {
|
|
|
6494
6494
|
/* TEXT */
|
|
6495
6495
|
)
|
|
6496
6496
|
])
|
|
6497
|
-
], 42,
|
|
6497
|
+
], 42, K0))),
|
|
6498
6498
|
128
|
|
6499
6499
|
/* KEYED_FRAGMENT */
|
|
6500
6500
|
))
|
|
6501
|
-
], 10,
|
|
6501
|
+
], 10, F0),
|
|
6502
6502
|
a.noOptions ? Q(a.$slots, "nooptions", { key: 0 }, () => [
|
|
6503
6503
|
d("div", {
|
|
6504
6504
|
class: G(a.classList.noOptions),
|
|
6505
6505
|
innerHTML: a.localize(t.noOptionsText)
|
|
6506
|
-
}, null, 10,
|
|
6506
|
+
}, null, 10, G0)
|
|
6507
6507
|
]) : E("v-if", !0),
|
|
6508
6508
|
a.noResults ? Q(a.$slots, "noresults", { key: 1 }, () => [
|
|
6509
6509
|
d("div", {
|
|
6510
6510
|
class: G(a.classList.noResults),
|
|
6511
6511
|
innerHTML: a.localize(t.noResultsText)
|
|
6512
|
-
}, null, 10,
|
|
6512
|
+
}, null, 10, X0)
|
|
6513
6513
|
]) : E("v-if", !0),
|
|
6514
6514
|
t.infinite && a.hasMore ? (v(), C(
|
|
6515
6515
|
"div",
|
|
@@ -6546,7 +6546,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6546
6546
|
tabindex: "-1",
|
|
6547
6547
|
value: a.textValue,
|
|
6548
6548
|
required: ""
|
|
6549
|
-
}, null, 10,
|
|
6549
|
+
}, null, 10, Q0)) : E("v-if", !0),
|
|
6550
6550
|
E(" Native input support "),
|
|
6551
6551
|
t.nativeSupport ? (v(), C(
|
|
6552
6552
|
fe,
|
|
@@ -6557,7 +6557,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6557
6557
|
type: "hidden",
|
|
6558
6558
|
name: t.name,
|
|
6559
6559
|
value: a.plainValue !== void 0 ? a.plainValue : ""
|
|
6560
|
-
}, null, 8,
|
|
6560
|
+
}, null, 8, J0)) : (v(!0), C(
|
|
6561
6561
|
fe,
|
|
6562
6562
|
{ key: 1 },
|
|
6563
6563
|
ye(a.plainValue, (i, l) => (v(), C("input", {
|
|
@@ -6590,7 +6590,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6590
6590
|
2
|
|
6591
6591
|
/* CLASS */
|
|
6592
6592
|
)
|
|
6593
|
-
], 42,
|
|
6593
|
+
], 42, P0);
|
|
6594
6594
|
}
|
|
6595
6595
|
We.render = a5;
|
|
6596
6596
|
We.__file = "src/Multiselect.vue";
|
|
@@ -6602,7 +6602,7 @@ const be = /* @__PURE__ */ x({
|
|
|
6602
6602
|
},
|
|
6603
6603
|
setup(a) {
|
|
6604
6604
|
const e = a, t = ct(() => e.appendTo), s = X();
|
|
6605
|
-
return e.detached &&
|
|
6605
|
+
return e.detached && g0({
|
|
6606
6606
|
multiselect: s,
|
|
6607
6607
|
appendTo: t.value
|
|
6608
6608
|
}), (n, o) => (v(), U(F(We), {
|
|
@@ -6685,7 +6685,7 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6685
6685
|
ue(() => t.tasks, (f, h) => {
|
|
6686
6686
|
Re(f, h);
|
|
6687
6687
|
});
|
|
6688
|
-
const n =
|
|
6688
|
+
const n = b(
|
|
6689
6689
|
() => {
|
|
6690
6690
|
var f;
|
|
6691
6691
|
return ((f = t.users) == null ? void 0 : f.map((h) => ({
|
|
@@ -6918,10 +6918,10 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6918
6918
|
},
|
|
6919
6919
|
emits: ["edit", "remove"],
|
|
6920
6920
|
setup(a, { emit: e }) {
|
|
6921
|
-
const t = a, s =
|
|
6921
|
+
const t = a, s = b(() => {
|
|
6922
6922
|
const T = t.user;
|
|
6923
6923
|
return T ? `${T == null ? void 0 : T.firstName} ${T == null ? void 0 : T.lastName}` : null;
|
|
6924
|
-
}), n = X(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ua(n), c =
|
|
6924
|
+
}), n = X(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ua(n), c = b(() => k1(t.createdAt)), u = b(() => k1(t.editedAt)), f = b(() => o.value ? "textarea" : "p"), h = r(), p = l((T) => {
|
|
6925
6925
|
e("edit", T);
|
|
6926
6926
|
}), g = () => {
|
|
6927
6927
|
e("remove");
|
|
@@ -7014,7 +7014,7 @@ const M5 = {
|
|
|
7014
7014
|
Ee(() => {
|
|
7015
7015
|
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7016
7016
|
});
|
|
7017
|
-
const o = ct(t.newComment), i =
|
|
7017
|
+
const o = ct(t.newComment), i = b({
|
|
7018
7018
|
get() {
|
|
7019
7019
|
return o.value;
|
|
7020
7020
|
},
|
|
@@ -7093,10 +7093,10 @@ const O5 = {
|
|
|
7093
7093
|
}, L5 = {
|
|
7094
7094
|
key: 0,
|
|
7095
7095
|
class: "ao-field"
|
|
7096
|
-
}, V5 = { class: "ao-field__label" }, H5 = { class: "ao-activity-details__content" }, D5 = { class: "ao-fieldset" }, P5 = { class: "ao-field__row" }, B5 = { class: "ao-field ao-field--full" }, N5 = { class: "ao-field__label" }, R5 = { class: "ao-field__row" },
|
|
7096
|
+
}, V5 = { class: "ao-field__label" }, H5 = { class: "ao-activity-details__content" }, D5 = { class: "ao-fieldset" }, P5 = { class: "ao-field__row" }, B5 = { class: "ao-field ao-field--full" }, N5 = { class: "ao-field__label" }, R5 = ["readonly"], U5 = { class: "ao-field__row" }, Z5 = { class: "ao-field" }, j5 = { class: "ao-field__label" }, F5 = ["readonly"], q5 = { class: "ao-field" }, W5 = { class: "ao-field__label" }, z5 = ["disabled"], x5 = { class: "ao-fieldset" }, Y5 = { class: "ao-fieldset__title" }, K5 = { class: "ao-fieldset__body" }, G5 = { class: "ao-field__row" }, X5 = { class: "ao-field ao-field--multiselect" }, Q5 = { class: "ao-fieldset" }, J5 = { class: "ao-fieldset__title" }, e7 = { class: "ao-fieldset__body" }, t7 = { class: "ao-fieldset" }, a7 = { class: "ao-fieldset__title" }, n7 = { class: "ao-fieldset__body" }, s7 = { class: "ao-field__row" }, i7 = { class: "ao-field ao-field--multiselect" }, o7 = { class: "ao-field__label" }, l7 = { 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" }, f7 = { class: "ao-field__label" }, v7 = { class: "ao-fieldset" }, h7 = { class: "ao-field__row" }, p7 = { class: "ao-field ao-field--multiselect" }, m7 = { class: "ao-field__label" }, C7 = {
|
|
7097
7097
|
key: 0,
|
|
7098
7098
|
class: "ao-activity-details__aside"
|
|
7099
|
-
},
|
|
7099
|
+
}, _7 = { class: "ao-fieldset__title" }, g7 = { class: "ao-fieldset__title" }, B1 = /* @__PURE__ */ x({
|
|
7100
7100
|
__name: "AoActivityDetails",
|
|
7101
7101
|
props: {
|
|
7102
7102
|
activity: {},
|
|
@@ -7114,165 +7114,165 @@ const O5 = {
|
|
|
7114
7114
|
},
|
|
7115
7115
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
7116
7116
|
setup(a, { emit: e }) {
|
|
7117
|
-
const t = a, s = (
|
|
7117
|
+
const t = a, s = (y) => {
|
|
7118
7118
|
e("update:activity", {
|
|
7119
7119
|
id: t.activity.id,
|
|
7120
|
-
name:
|
|
7120
|
+
name: y
|
|
7121
7121
|
});
|
|
7122
|
-
}, n =
|
|
7122
|
+
}, n = b({
|
|
7123
7123
|
get() {
|
|
7124
7124
|
return t.activity.description ?? "";
|
|
7125
7125
|
},
|
|
7126
|
-
set(
|
|
7127
|
-
e("update:activity", { id: t.activity.id, description:
|
|
7126
|
+
set(y) {
|
|
7127
|
+
e("update:activity", { id: t.activity.id, description: y });
|
|
7128
7128
|
}
|
|
7129
|
-
}), o =
|
|
7129
|
+
}), o = b({
|
|
7130
7130
|
get() {
|
|
7131
7131
|
return t.activity.estimation ?? 0;
|
|
7132
7132
|
},
|
|
7133
|
-
set(
|
|
7134
|
-
e("update:activity", { id: t.activity.id, estimation:
|
|
7133
|
+
set(y) {
|
|
7134
|
+
e("update:activity", { id: t.activity.id, estimation: y });
|
|
7135
7135
|
}
|
|
7136
|
-
}), i =
|
|
7136
|
+
}), i = b({
|
|
7137
7137
|
get() {
|
|
7138
7138
|
return t.activity.important ?? !1;
|
|
7139
7139
|
},
|
|
7140
|
-
set(
|
|
7141
|
-
e("update:activity", { id: t.activity.id, important:
|
|
7140
|
+
set(y) {
|
|
7141
|
+
e("update:activity", { id: t.activity.id, important: y });
|
|
7142
7142
|
}
|
|
7143
|
-
}), l =
|
|
7143
|
+
}), l = b({
|
|
7144
7144
|
get() {
|
|
7145
|
-
var
|
|
7146
|
-
return (
|
|
7145
|
+
var y;
|
|
7146
|
+
return (y = t.activity.type) == null ? void 0 : y.id;
|
|
7147
7147
|
},
|
|
7148
|
-
set(
|
|
7149
|
-
e("update:activity", { id: t.activity.id, typeId:
|
|
7148
|
+
set(y) {
|
|
7149
|
+
e("update:activity", { id: t.activity.id, typeId: y });
|
|
7150
7150
|
}
|
|
7151
|
-
}), r =
|
|
7152
|
-
label:
|
|
7153
|
-
value:
|
|
7154
|
-
}))), c =
|
|
7151
|
+
}), r = b(() => t.templateActivities.filter((y) => y.id !== t.activity.id).map((y) => ({
|
|
7152
|
+
label: y.name,
|
|
7153
|
+
value: y.id
|
|
7154
|
+
}))), c = b({
|
|
7155
7155
|
get() {
|
|
7156
7156
|
return t.activity.dependingOn;
|
|
7157
7157
|
},
|
|
7158
|
-
set(
|
|
7159
|
-
|
|
7158
|
+
set(y) {
|
|
7159
|
+
y && e("update:activity", {
|
|
7160
7160
|
id: t.activity.id,
|
|
7161
|
-
dependingOn:
|
|
7161
|
+
dependingOn: y
|
|
7162
7162
|
});
|
|
7163
7163
|
}
|
|
7164
|
-
}), u =
|
|
7164
|
+
}), u = b(() => r.value.map((y) => {
|
|
7165
7165
|
var S;
|
|
7166
7166
|
return {
|
|
7167
|
-
...
|
|
7168
|
-
disabled: (S = t.activity.blocking) == null ? void 0 : S.some((D) => D ===
|
|
7167
|
+
...y,
|
|
7168
|
+
disabled: (S = t.activity.blocking) == null ? void 0 : S.some((D) => D === y.value)
|
|
7169
7169
|
};
|
|
7170
|
-
})), f =
|
|
7170
|
+
})), f = b({
|
|
7171
7171
|
get() {
|
|
7172
7172
|
return t.activity.blocking;
|
|
7173
7173
|
},
|
|
7174
|
-
set(
|
|
7175
|
-
|
|
7174
|
+
set(y) {
|
|
7175
|
+
y && e("update:activity", {
|
|
7176
7176
|
id: t.activity.id,
|
|
7177
|
-
blocking:
|
|
7177
|
+
blocking: y
|
|
7178
7178
|
});
|
|
7179
7179
|
}
|
|
7180
|
-
}), h =
|
|
7180
|
+
}), h = b(() => r.value.map((y) => {
|
|
7181
7181
|
var S;
|
|
7182
7182
|
return {
|
|
7183
|
-
...
|
|
7184
|
-
disabled: (S = t.activity.dependingOn) == null ? void 0 : S.some((D) => D ===
|
|
7183
|
+
...y,
|
|
7184
|
+
disabled: (S = t.activity.dependingOn) == null ? void 0 : S.some((D) => D === y.value)
|
|
7185
7185
|
};
|
|
7186
|
-
})), p =
|
|
7186
|
+
})), p = b(() => (t.templateMilestones || []).filter((S) => S.id !== t.milestoneId).map((S) => ({
|
|
7187
7187
|
label: S.name,
|
|
7188
7188
|
value: S.id
|
|
7189
|
-
}))), g =
|
|
7189
|
+
}))), g = b({
|
|
7190
7190
|
get() {
|
|
7191
7191
|
return t.activity.dependingMilestones;
|
|
7192
7192
|
},
|
|
7193
|
-
set(
|
|
7193
|
+
set(y) {
|
|
7194
7194
|
e("update:activity", {
|
|
7195
7195
|
id: t.activity.id,
|
|
7196
|
-
dependingMilestones:
|
|
7196
|
+
dependingMilestones: y
|
|
7197
7197
|
});
|
|
7198
7198
|
}
|
|
7199
|
-
}), $ = (
|
|
7200
|
-
e("addSubtask",
|
|
7201
|
-
}, T = (
|
|
7202
|
-
e("updateSubtask",
|
|
7203
|
-
}, M = (
|
|
7204
|
-
e("deleteSubtask",
|
|
7205
|
-
}, w =
|
|
7206
|
-
var
|
|
7207
|
-
return ((
|
|
7199
|
+
}), $ = (y) => {
|
|
7200
|
+
e("addSubtask", y);
|
|
7201
|
+
}, T = (y) => {
|
|
7202
|
+
e("updateSubtask", y);
|
|
7203
|
+
}, M = (y) => {
|
|
7204
|
+
e("deleteSubtask", y);
|
|
7205
|
+
}, w = b(() => {
|
|
7206
|
+
var y;
|
|
7207
|
+
return ((y = t.users) == null ? void 0 : y.map((S) => ({
|
|
7208
7208
|
label: `${S.firstName} ${S.lastName}`,
|
|
7209
7209
|
value: S.id
|
|
7210
7210
|
}))) || [];
|
|
7211
|
-
}), L =
|
|
7211
|
+
}), L = b({
|
|
7212
7212
|
get() {
|
|
7213
|
-
var
|
|
7214
|
-
return (
|
|
7213
|
+
var y, S;
|
|
7214
|
+
return (y = t.activity.assignee) != null && y.id ? [(S = t.activity.assignee) == null ? void 0 : S.id] : [];
|
|
7215
7215
|
},
|
|
7216
|
-
set(
|
|
7216
|
+
set(y) {
|
|
7217
7217
|
e("update:activity", {
|
|
7218
7218
|
id: t.activity.id,
|
|
7219
|
-
assigneeId:
|
|
7219
|
+
assigneeId: y[0]
|
|
7220
7220
|
});
|
|
7221
7221
|
}
|
|
7222
|
-
}), Z = (
|
|
7222
|
+
}), Z = (y) => {
|
|
7223
7223
|
e("addFiles", {
|
|
7224
7224
|
activityId: t.activity.id,
|
|
7225
|
-
files:
|
|
7225
|
+
files: y
|
|
7226
7226
|
});
|
|
7227
|
-
}, j = (
|
|
7227
|
+
}, j = (y) => {
|
|
7228
7228
|
e("removeFile", {
|
|
7229
7229
|
activityId: t.activity.id,
|
|
7230
|
-
file:
|
|
7230
|
+
file: y
|
|
7231
7231
|
});
|
|
7232
|
-
}, V =
|
|
7233
|
-
var
|
|
7234
|
-
return (
|
|
7232
|
+
}, V = b(() => {
|
|
7233
|
+
var y;
|
|
7234
|
+
return (y = t.statuses) == null ? void 0 : y.map((S) => ({
|
|
7235
7235
|
value: S.id,
|
|
7236
7236
|
label: S.name
|
|
7237
7237
|
}));
|
|
7238
|
-
}), I = (
|
|
7238
|
+
}), I = (y) => {
|
|
7239
7239
|
e("update:activity", {
|
|
7240
7240
|
id: t.activity.id,
|
|
7241
|
-
statusId:
|
|
7241
|
+
statusId: y
|
|
7242
7242
|
});
|
|
7243
|
-
}, z = (
|
|
7243
|
+
}, z = (y) => {
|
|
7244
7244
|
e("addComment", {
|
|
7245
|
-
...
|
|
7245
|
+
...y,
|
|
7246
7246
|
activityId: t.activity.id
|
|
7247
7247
|
});
|
|
7248
|
-
}, Y = (
|
|
7249
|
-
e("updateComment",
|
|
7250
|
-
}, ne = (
|
|
7251
|
-
e("removeComment",
|
|
7248
|
+
}, Y = (y) => {
|
|
7249
|
+
e("updateComment", y);
|
|
7250
|
+
}, ne = (y) => {
|
|
7251
|
+
e("removeComment", y);
|
|
7252
7252
|
};
|
|
7253
|
-
return (
|
|
7254
|
-
onClose: S[8] || (S[8] = (D) =>
|
|
7253
|
+
return (y, S) => (v(), U(O1, {
|
|
7254
|
+
onClose: S[8] || (S[8] = (D) => y.$emit("close"))
|
|
7255
7255
|
}, {
|
|
7256
7256
|
header: R(() => [
|
|
7257
|
-
|
|
7257
|
+
y.breadcrumbs ? (v(), C("div", O5, W(y.breadcrumbs), 1)) : E("", !0),
|
|
7258
7258
|
k(pe, {
|
|
7259
|
-
title:
|
|
7259
|
+
title: y.activity.name || "",
|
|
7260
7260
|
level: 4,
|
|
7261
|
-
"is-editable":
|
|
7261
|
+
"is-editable": y.isEditable,
|
|
7262
7262
|
"onUpdate:title": s
|
|
7263
7263
|
}, null, 8, ["title", "is-editable"]),
|
|
7264
|
-
Q(
|
|
7264
|
+
Q(y.$slots, "header", {}, () => {
|
|
7265
7265
|
var D;
|
|
7266
7266
|
return [
|
|
7267
7267
|
V.value ? (v(), C("label", L5, [
|
|
7268
|
-
d("span", V5, W(
|
|
7268
|
+
d("span", V5, W(y.$t("activity.status.label")), 1),
|
|
7269
7269
|
k(be, {
|
|
7270
7270
|
options: V.value,
|
|
7271
|
-
value: (D =
|
|
7271
|
+
value: (D = y.activity.status) == null ? void 0 : D.id,
|
|
7272
7272
|
"can-clear": !1,
|
|
7273
7273
|
"can-deselect": !1,
|
|
7274
|
-
disabled: !
|
|
7275
|
-
caret:
|
|
7274
|
+
disabled: !y.isEditable,
|
|
7275
|
+
caret: y.isEditable,
|
|
7276
7276
|
onChange: I
|
|
7277
7277
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
7278
7278
|
])) : E("", !0)
|
|
@@ -7284,12 +7284,13 @@ const O5 = {
|
|
|
7284
7284
|
d("fieldset", D5, [
|
|
7285
7285
|
d("div", P5, [
|
|
7286
7286
|
d("label", B5, [
|
|
7287
|
-
d("span", N5, W(
|
|
7287
|
+
d("span", N5, W(y.$t("activity.description.label")), 1),
|
|
7288
7288
|
dt(d("textarea", {
|
|
7289
7289
|
"onUpdate:modelValue": S[0] || (S[0] = (D) => n.value = D),
|
|
7290
|
+
readonly: !y.isEditable,
|
|
7290
7291
|
rows: "4",
|
|
7291
7292
|
class: "ao-field__textarea"
|
|
7292
|
-
}, null,
|
|
7293
|
+
}, null, 8, R5), [
|
|
7293
7294
|
[
|
|
7294
7295
|
Et,
|
|
7295
7296
|
n.value,
|
|
@@ -7302,16 +7303,16 @@ const O5 = {
|
|
|
7302
7303
|
])
|
|
7303
7304
|
])
|
|
7304
7305
|
]),
|
|
7305
|
-
d("div",
|
|
7306
|
-
d("label",
|
|
7307
|
-
d("span",
|
|
7306
|
+
d("div", U5, [
|
|
7307
|
+
d("label", Z5, [
|
|
7308
|
+
d("span", j5, W(y.$t("activity.estimation.label")), 1),
|
|
7308
7309
|
dt(d("input", {
|
|
7309
7310
|
"onUpdate:modelValue": S[1] || (S[1] = (D) => o.value = D),
|
|
7310
|
-
readonly: !
|
|
7311
|
+
readonly: !y.isEditable,
|
|
7311
7312
|
class: "ao-field__input",
|
|
7312
7313
|
type: "number",
|
|
7313
7314
|
min: "0"
|
|
7314
|
-
}, null, 8,
|
|
7315
|
+
}, null, 8, F5), [
|
|
7315
7316
|
[
|
|
7316
7317
|
Et,
|
|
7317
7318
|
o.value,
|
|
@@ -7323,14 +7324,14 @@ const O5 = {
|
|
|
7323
7324
|
]
|
|
7324
7325
|
])
|
|
7325
7326
|
]),
|
|
7326
|
-
d("label",
|
|
7327
|
-
d("span",
|
|
7327
|
+
d("label", q5, [
|
|
7328
|
+
d("span", W5, W(y.$t("activity.important.label")), 1),
|
|
7328
7329
|
dt(d("input", {
|
|
7329
7330
|
"onUpdate:modelValue": S[2] || (S[2] = (D) => i.value = D),
|
|
7330
|
-
disabled: !
|
|
7331
|
+
disabled: !y.isEditable,
|
|
7331
7332
|
class: "ao-field__input",
|
|
7332
7333
|
type: "checkbox"
|
|
7333
|
-
}, null, 8,
|
|
7334
|
+
}, null, 8, z5), [
|
|
7334
7335
|
[
|
|
7335
7336
|
dn,
|
|
7336
7337
|
i.value,
|
|
@@ -7341,17 +7342,17 @@ const O5 = {
|
|
|
7341
7342
|
])
|
|
7342
7343
|
])
|
|
7343
7344
|
]),
|
|
7344
|
-
d("fieldset",
|
|
7345
|
-
d("div",
|
|
7345
|
+
d("fieldset", x5, [
|
|
7346
|
+
d("div", Y5, [
|
|
7346
7347
|
k(de, { name: "AccountBoxSharp" }),
|
|
7347
7348
|
k(pe, {
|
|
7348
7349
|
level: 4,
|
|
7349
|
-
title:
|
|
7350
|
+
title: y.$t("activity.assignee.title")
|
|
7350
7351
|
}, null, 8, ["title"])
|
|
7351
7352
|
]),
|
|
7352
|
-
d("div",
|
|
7353
|
-
d("div",
|
|
7354
|
-
d("div",
|
|
7353
|
+
d("div", K5, [
|
|
7354
|
+
d("div", G5, [
|
|
7355
|
+
d("div", X5, [
|
|
7355
7356
|
k(be, {
|
|
7356
7357
|
modelValue: L.value,
|
|
7357
7358
|
"onUpdate:modelValue": S[3] || (S[3] = (D) => L.value = D),
|
|
@@ -7360,10 +7361,10 @@ const O5 = {
|
|
|
7360
7361
|
searchable: !0,
|
|
7361
7362
|
max: 1,
|
|
7362
7363
|
class: "ao-activity-details__assignees",
|
|
7363
|
-
placeholder:
|
|
7364
|
+
placeholder: y.$t("activity.filters.assignee.placeholder"),
|
|
7364
7365
|
mode: "tags",
|
|
7365
|
-
disabled: !
|
|
7366
|
-
caret:
|
|
7366
|
+
disabled: !y.isEditable,
|
|
7367
|
+
caret: y.isEditable
|
|
7367
7368
|
}, {
|
|
7368
7369
|
tag: R(({ option: D, handleTagRemove: le }) => [
|
|
7369
7370
|
k(_t, {
|
|
@@ -7378,40 +7379,40 @@ const O5 = {
|
|
|
7378
7379
|
])
|
|
7379
7380
|
])
|
|
7380
7381
|
]),
|
|
7381
|
-
d("fieldset",
|
|
7382
|
-
d("div",
|
|
7382
|
+
d("fieldset", Q5, [
|
|
7383
|
+
d("div", J5, [
|
|
7383
7384
|
k(de, { name: "SelectCheckBox" }),
|
|
7384
7385
|
k(pe, {
|
|
7385
7386
|
level: 4,
|
|
7386
|
-
title:
|
|
7387
|
+
title: y.$t("activity.tasks.title")
|
|
7387
7388
|
}, null, 8, ["title"])
|
|
7388
7389
|
]),
|
|
7389
|
-
d("div",
|
|
7390
|
+
d("div", e7, [
|
|
7390
7391
|
k(r5, {
|
|
7391
7392
|
class: "ao-activity-details__tasks ao-field__row",
|
|
7392
|
-
tasks:
|
|
7393
|
-
"activity-id":
|
|
7394
|
-
users:
|
|
7395
|
-
"is-checkable":
|
|
7396
|
-
"is-editable":
|
|
7393
|
+
tasks: y.activity.tasks || [],
|
|
7394
|
+
"activity-id": y.activity.id,
|
|
7395
|
+
users: y.users,
|
|
7396
|
+
"is-checkable": y.isTaskCheckable,
|
|
7397
|
+
"is-editable": y.isEditable,
|
|
7397
7398
|
onAdd: $,
|
|
7398
7399
|
onUpdate: T,
|
|
7399
7400
|
onDelete: M
|
|
7400
7401
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable"])
|
|
7401
7402
|
])
|
|
7402
7403
|
]),
|
|
7403
|
-
d("fieldset",
|
|
7404
|
-
d("div",
|
|
7404
|
+
d("fieldset", t7, [
|
|
7405
|
+
d("div", a7, [
|
|
7405
7406
|
k(de, { name: "FlowsheetOutlineRounded" }),
|
|
7406
7407
|
k(pe, {
|
|
7407
7408
|
level: 4,
|
|
7408
|
-
title:
|
|
7409
|
+
title: y.$t("activity.dependencies.title")
|
|
7409
7410
|
}, null, 8, ["title"])
|
|
7410
7411
|
]),
|
|
7411
|
-
d("div",
|
|
7412
|
-
d("div",
|
|
7413
|
-
d("label",
|
|
7414
|
-
d("span",
|
|
7412
|
+
d("div", n7, [
|
|
7413
|
+
d("div", s7, [
|
|
7414
|
+
d("label", i7, [
|
|
7415
|
+
d("span", o7, W(y.$t("activity.dependingOn.label")), 1),
|
|
7415
7416
|
k(be, {
|
|
7416
7417
|
modelValue: c.value,
|
|
7417
7418
|
"onUpdate:modelValue": S[4] || (S[4] = (D) => c.value = D),
|
|
@@ -7419,14 +7420,14 @@ const O5 = {
|
|
|
7419
7420
|
"close-on-select": !1,
|
|
7420
7421
|
searchable: !0,
|
|
7421
7422
|
options: u.value,
|
|
7422
|
-
disabled: !
|
|
7423
|
-
caret:
|
|
7423
|
+
disabled: !y.isEditable,
|
|
7424
|
+
caret: y.isEditable
|
|
7424
7425
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7425
7426
|
])
|
|
7426
7427
|
]),
|
|
7427
|
-
d("div",
|
|
7428
|
-
d("label",
|
|
7429
|
-
d("span",
|
|
7428
|
+
d("div", l7, [
|
|
7429
|
+
d("label", r7, [
|
|
7430
|
+
d("span", u7, W(y.$t("activity.blocking.label")), 1),
|
|
7430
7431
|
k(be, {
|
|
7431
7432
|
modelValue: f.value,
|
|
7432
7433
|
"onUpdate:modelValue": S[5] || (S[5] = (D) => f.value = D),
|
|
@@ -7434,14 +7435,14 @@ const O5 = {
|
|
|
7434
7435
|
"close-on-select": !1,
|
|
7435
7436
|
searchable: !0,
|
|
7436
7437
|
options: h.value,
|
|
7437
|
-
disabled: !
|
|
7438
|
-
caret:
|
|
7438
|
+
disabled: !y.isEditable,
|
|
7439
|
+
caret: y.isEditable
|
|
7439
7440
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7440
7441
|
])
|
|
7441
7442
|
]),
|
|
7442
|
-
d("div",
|
|
7443
|
-
d("label",
|
|
7444
|
-
d("span",
|
|
7443
|
+
d("div", c7, [
|
|
7444
|
+
d("label", d7, [
|
|
7445
|
+
d("span", f7, W(y.$t("activity.dependingMilestone.label")), 1),
|
|
7445
7446
|
k(be, {
|
|
7446
7447
|
modelValue: g.value,
|
|
7447
7448
|
"onUpdate:modelValue": S[6] || (S[6] = (D) => g.value = D),
|
|
@@ -7449,57 +7450,57 @@ const O5 = {
|
|
|
7449
7450
|
"close-on-select": !1,
|
|
7450
7451
|
searchable: !0,
|
|
7451
7452
|
options: p.value,
|
|
7452
|
-
disabled: !
|
|
7453
|
-
caret:
|
|
7453
|
+
disabled: !y.isEditable,
|
|
7454
|
+
caret: y.isEditable
|
|
7454
7455
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7455
7456
|
])
|
|
7456
7457
|
])
|
|
7457
7458
|
])
|
|
7458
7459
|
]),
|
|
7459
|
-
d("fieldset",
|
|
7460
|
-
d("div",
|
|
7461
|
-
d("label",
|
|
7462
|
-
d("span",
|
|
7460
|
+
d("fieldset", v7, [
|
|
7461
|
+
d("div", h7, [
|
|
7462
|
+
d("label", p7, [
|
|
7463
|
+
d("span", m7, W(y.$t("activity.type.label")), 1),
|
|
7463
7464
|
k(be, {
|
|
7464
7465
|
modelValue: l.value,
|
|
7465
7466
|
"onUpdate:modelValue": S[7] || (S[7] = (D) => l.value = D),
|
|
7466
7467
|
mode: "single",
|
|
7467
7468
|
searchable: !0,
|
|
7468
|
-
options:
|
|
7469
|
-
placeholder:
|
|
7470
|
-
disabled: !
|
|
7471
|
-
caret:
|
|
7469
|
+
options: y.activityTypes,
|
|
7470
|
+
placeholder: y.$t("activity.filters.type.placeholder"),
|
|
7471
|
+
disabled: !y.isEditable,
|
|
7472
|
+
caret: y.isEditable
|
|
7472
7473
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
7473
7474
|
])
|
|
7474
7475
|
]),
|
|
7475
|
-
Q(
|
|
7476
|
+
Q(y.$slots, "default")
|
|
7476
7477
|
])
|
|
7477
7478
|
]),
|
|
7478
|
-
|
|
7479
|
-
d("div",
|
|
7479
|
+
y.isTemplate !== !0 && y.userId ? (v(), C("div", C7, [
|
|
7480
|
+
d("div", _7, [
|
|
7480
7481
|
k(de, { name: "AttachFileRounded" }),
|
|
7481
7482
|
k(pe, {
|
|
7482
7483
|
level: 4,
|
|
7483
|
-
title:
|
|
7484
|
+
title: y.$t("activity.attachments.title")
|
|
7484
7485
|
}, null, 8, ["title"])
|
|
7485
7486
|
]),
|
|
7486
7487
|
k(C5, {
|
|
7487
|
-
attachments:
|
|
7488
|
-
"is-editable":
|
|
7488
|
+
attachments: y.activity.attachments,
|
|
7489
|
+
"is-editable": y.isEditable,
|
|
7489
7490
|
onAdd: Z,
|
|
7490
7491
|
onRemove: j
|
|
7491
7492
|
}, null, 8, ["attachments", "is-editable"]),
|
|
7492
|
-
d("div",
|
|
7493
|
+
d("div", g7, [
|
|
7493
7494
|
k(de, { name: "ChatOutline" }),
|
|
7494
7495
|
k(pe, {
|
|
7495
7496
|
level: 4,
|
|
7496
|
-
title:
|
|
7497
|
+
title: y.$t("activity.comments.title")
|
|
7497
7498
|
}, null, 8, ["title"])
|
|
7498
7499
|
]),
|
|
7499
7500
|
k(I5, {
|
|
7500
|
-
comments:
|
|
7501
|
-
users:
|
|
7502
|
-
"user-id":
|
|
7501
|
+
comments: y.activity.comments,
|
|
7502
|
+
users: y.users,
|
|
7503
|
+
"user-id": y.userId,
|
|
7503
7504
|
onCreateComment: z,
|
|
7504
7505
|
onUpdateComment: Y,
|
|
7505
7506
|
onRemoveComment: ne
|
|
@@ -7510,27 +7511,27 @@ const O5 = {
|
|
|
7510
7511
|
}));
|
|
7511
7512
|
}
|
|
7512
7513
|
});
|
|
7513
|
-
const
|
|
7514
|
+
const y7 = {
|
|
7514
7515
|
todo: "todo",
|
|
7515
7516
|
done: "done",
|
|
7516
7517
|
archived: "archived"
|
|
7517
|
-
},
|
|
7518
|
+
}, B4 = {
|
|
7518
7519
|
months: "months",
|
|
7519
7520
|
weeks: "weeks",
|
|
7520
7521
|
days: "days"
|
|
7521
|
-
},
|
|
7522
|
+
}, N4 = {
|
|
7522
7523
|
future: "future",
|
|
7523
7524
|
this_month: "this_month",
|
|
7524
7525
|
this_week: "this_week",
|
|
7525
7526
|
today: "today",
|
|
7526
7527
|
done: "done"
|
|
7527
|
-
},
|
|
7528
|
+
}, b7 = {
|
|
7528
7529
|
BEFORE: "before",
|
|
7529
7530
|
AFTER: "after"
|
|
7530
|
-
},
|
|
7531
|
+
}, w7 = {
|
|
7531
7532
|
START: "start",
|
|
7532
7533
|
end: "end"
|
|
7533
|
-
},
|
|
7534
|
+
}, $7 = {
|
|
7534
7535
|
DAYS: "days",
|
|
7535
7536
|
WEEKS: "weeks",
|
|
7536
7537
|
MONTHS: "months"
|
|
@@ -7541,8 +7542,8 @@ const g7 = {
|
|
|
7541
7542
|
ACTIVITIES: "activities",
|
|
7542
7543
|
TASKS: "tasks"
|
|
7543
7544
|
};
|
|
7544
|
-
var
|
|
7545
|
-
const
|
|
7545
|
+
var M7 = /* @__PURE__ */ ((a) => (a.PHASES = "phases", a.MILESTONES = "milestones", a.ACTIVITIES = "activities", a))(M7 || {});
|
|
7546
|
+
const R4 = {
|
|
7546
7547
|
add: "add",
|
|
7547
7548
|
remove: "remove",
|
|
7548
7549
|
moved: "moved"
|
|
@@ -7550,7 +7551,7 @@ const N4 = {
|
|
|
7550
7551
|
project: "projectId",
|
|
7551
7552
|
type: "typeId",
|
|
7552
7553
|
assignee: "assigneeId"
|
|
7553
|
-
},
|
|
7554
|
+
}, k7 = /* @__PURE__ */ x({
|
|
7554
7555
|
__name: "AoRuleLine",
|
|
7555
7556
|
props: {
|
|
7556
7557
|
rule: {},
|
|
@@ -7563,7 +7564,7 @@ const N4 = {
|
|
|
7563
7564
|
setup(a, { emit: e }) {
|
|
7564
7565
|
const t = a, s = ct(
|
|
7565
7566
|
t.rule.itemType || he.ACTIVITIES
|
|
7566
|
-
), n =
|
|
7567
|
+
), n = b({
|
|
7567
7568
|
get() {
|
|
7568
7569
|
return s.value;
|
|
7569
7570
|
},
|
|
@@ -7574,7 +7575,7 @@ const N4 = {
|
|
|
7574
7575
|
subItemId: void 0
|
|
7575
7576
|
});
|
|
7576
7577
|
}
|
|
7577
|
-
}), o =
|
|
7578
|
+
}), o = b(() => Object.values(he)), i = b({
|
|
7578
7579
|
get() {
|
|
7579
7580
|
return t.rule.subItemId;
|
|
7580
7581
|
},
|
|
@@ -7585,7 +7586,7 @@ const N4 = {
|
|
|
7585
7586
|
itemType: t.rule.itemType || n.value
|
|
7586
7587
|
});
|
|
7587
7588
|
}
|
|
7588
|
-
}), l =
|
|
7589
|
+
}), l = b(() => {
|
|
7589
7590
|
var w;
|
|
7590
7591
|
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (w = {
|
|
7591
7592
|
[he.ACTIVITIES]: t.templateActivities,
|
|
@@ -7595,35 +7596,35 @@ const N4 = {
|
|
|
7595
7596
|
value: L.id,
|
|
7596
7597
|
label: L.name
|
|
7597
7598
|
}));
|
|
7598
|
-
}), r = ct(t.rule.comparator), c =
|
|
7599
|
+
}), r = ct(t.rule.comparator), c = b({
|
|
7599
7600
|
get() {
|
|
7600
7601
|
return r.value;
|
|
7601
7602
|
},
|
|
7602
7603
|
set(M) {
|
|
7603
7604
|
e("update:rule", { ...t.rule, comparator: M });
|
|
7604
7605
|
}
|
|
7605
|
-
}), u =
|
|
7606
|
+
}), u = b(() => Object.values(b7)), f = ct(t.rule.trigger), h = b({
|
|
7606
7607
|
get() {
|
|
7607
7608
|
return f.value;
|
|
7608
7609
|
},
|
|
7609
7610
|
set(M) {
|
|
7610
7611
|
e("update:rule", { ...t.rule, trigger: M });
|
|
7611
7612
|
}
|
|
7612
|
-
}), p =
|
|
7613
|
+
}), p = b(() => Object.values(w7)), g = b({
|
|
7613
7614
|
get() {
|
|
7614
7615
|
return t.rule.duration;
|
|
7615
7616
|
},
|
|
7616
7617
|
set(M) {
|
|
7617
7618
|
e("update:rule", { ...t.rule, duration: M });
|
|
7618
7619
|
}
|
|
7619
|
-
}), $ =
|
|
7620
|
+
}), $ = b({
|
|
7620
7621
|
get() {
|
|
7621
7622
|
return t.rule.durationUnit;
|
|
7622
7623
|
},
|
|
7623
7624
|
set(M) {
|
|
7624
7625
|
e("update:rule", { ...t.rule, durationUnit: M });
|
|
7625
7626
|
}
|
|
7626
|
-
}), T =
|
|
7627
|
+
}), T = b(() => Object.values($7));
|
|
7627
7628
|
return (M, w) => (v(), U(et(M.tagName), { class: "ao-rule-line" }, {
|
|
7628
7629
|
default: R(() => [
|
|
7629
7630
|
k(F(We), {
|
|
@@ -7674,7 +7675,7 @@ const N4 = {
|
|
|
7674
7675
|
}));
|
|
7675
7676
|
}
|
|
7676
7677
|
});
|
|
7677
|
-
const
|
|
7678
|
+
const A7 = { class: "ao-template-rules__body" }, T7 = { class: "ao-template-rules__list" }, S7 = /* @__PURE__ */ x({
|
|
7678
7679
|
__name: "AoTemplateRules",
|
|
7679
7680
|
props: {
|
|
7680
7681
|
templateId: {},
|
|
@@ -7698,9 +7699,9 @@ const k7 = { class: "ao-template-rules__body" }, A7 = { class: "ao-template-rule
|
|
|
7698
7699
|
}, null, 8, ["title"])
|
|
7699
7700
|
]),
|
|
7700
7701
|
default: R(() => [
|
|
7701
|
-
d("div",
|
|
7702
|
-
d("ul",
|
|
7703
|
-
(v(!0), C(fe, null, ye(n.rules, (i) => (v(), U(
|
|
7702
|
+
d("div", A7, [
|
|
7703
|
+
d("ul", T7, [
|
|
7704
|
+
(v(!0), C(fe, null, ye(n.rules, (i) => (v(), U(k7, {
|
|
7704
7705
|
key: i.id,
|
|
7705
7706
|
rule: i,
|
|
7706
7707
|
"template-phases": n.templatePhases,
|
|
@@ -7728,10 +7729,10 @@ function vt(a, e, t) {
|
|
|
7728
7729
|
rank: o.format()
|
|
7729
7730
|
};
|
|
7730
7731
|
}
|
|
7731
|
-
const
|
|
7732
|
+
const E7 = {
|
|
7732
7733
|
key: 0,
|
|
7733
7734
|
class: "ao-template-details"
|
|
7734
|
-
},
|
|
7735
|
+
}, I7 = { class: "ao-template-details__body" }, O7 = { class: "ao-template-details__cols" }, L7 = { class: "ao-template-details__col" }, V7 = { class: "ao-list__footer" }, H7 = { class: "ao-template-details__col" }, D7 = { class: "ao-template-details__col" }, P7 = /* @__PURE__ */ x({
|
|
7735
7736
|
__name: "AoTemplateDetails",
|
|
7736
7737
|
props: {
|
|
7737
7738
|
templateId: {},
|
|
@@ -7744,7 +7745,7 @@ const S7 = {
|
|
|
7744
7745
|
},
|
|
7745
7746
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
7746
7747
|
setup(a, { emit: e }) {
|
|
7747
|
-
const t = a, { t: s } = at(), n =
|
|
7748
|
+
const t = a, { t: s } = at(), n = b(
|
|
7748
7749
|
() => {
|
|
7749
7750
|
var m;
|
|
7750
7751
|
return (m = t.templates) == null ? void 0 : m.find((A) => A.id === t.templateId);
|
|
@@ -7756,7 +7757,7 @@ const S7 = {
|
|
|
7756
7757
|
}, (m, A) => {
|
|
7757
7758
|
o.value && Re(m, A);
|
|
7758
7759
|
});
|
|
7759
|
-
const i =
|
|
7760
|
+
const i = b(() => {
|
|
7760
7761
|
var m, A;
|
|
7761
7762
|
return (A = (m = n == null ? void 0 : n.value) == null ? void 0 : m.phases) == null ? void 0 : A.find((N) => N.id === t.phaseId);
|
|
7762
7763
|
});
|
|
@@ -7766,7 +7767,7 @@ const S7 = {
|
|
|
7766
7767
|
}, (m, A) => {
|
|
7767
7768
|
o.value && Re(m, A);
|
|
7768
7769
|
});
|
|
7769
|
-
const l =
|
|
7770
|
+
const l = b(() => {
|
|
7770
7771
|
var m, A;
|
|
7771
7772
|
return (A = (m = i.value) == null ? void 0 : m.milestones) == null ? void 0 : A.find(
|
|
7772
7773
|
(N) => N.id === t.milestoneId
|
|
@@ -7778,13 +7779,13 @@ const S7 = {
|
|
|
7778
7779
|
}, (m, A) => {
|
|
7779
7780
|
o.value && Re(m, A);
|
|
7780
7781
|
});
|
|
7781
|
-
const r =
|
|
7782
|
+
const r = b(() => {
|
|
7782
7783
|
var m, A;
|
|
7783
7784
|
return ((A = (m = n.value) == null ? void 0 : m.phases) == null ? void 0 : A.reduce((N, B) => {
|
|
7784
7785
|
const oe = B.milestones || [];
|
|
7785
7786
|
return [...N, ...oe];
|
|
7786
7787
|
}, [])) || [];
|
|
7787
|
-
}), c =
|
|
7788
|
+
}), c = b(() => {
|
|
7788
7789
|
var m, A;
|
|
7789
7790
|
return ((A = (m = n.value) == null ? void 0 : m.phases) == null ? void 0 : A.reduce((N, B) => {
|
|
7790
7791
|
const me = (B.milestones || []).reduce(
|
|
@@ -7793,18 +7794,18 @@ const S7 = {
|
|
|
7793
7794
|
);
|
|
7794
7795
|
return [...N, ...me];
|
|
7795
7796
|
}, [])) || [];
|
|
7796
|
-
}), u =
|
|
7797
|
+
}), u = b(() => {
|
|
7797
7798
|
var m, A;
|
|
7798
7799
|
return (A = (m = l.value) == null ? void 0 : m.activities) == null ? void 0 : A.find(
|
|
7799
7800
|
(N) => N.id === t.activityId
|
|
7800
7801
|
);
|
|
7801
|
-
}), f =
|
|
7802
|
+
}), f = b(() => {
|
|
7802
7803
|
var m;
|
|
7803
7804
|
return ((m = t.activityTypes) == null ? void 0 : m.map((A) => ({
|
|
7804
7805
|
label: A.name,
|
|
7805
7806
|
value: A.id
|
|
7806
7807
|
}))) || [];
|
|
7807
|
-
}), h =
|
|
7808
|
+
}), h = b(() => {
|
|
7808
7809
|
var m;
|
|
7809
7810
|
return ((m = n.value) == null ? void 0 : m.name) || t.templateId;
|
|
7810
7811
|
}), p = () => {
|
|
@@ -7920,7 +7921,7 @@ const S7 = {
|
|
|
7920
7921
|
z.value = !z.value;
|
|
7921
7922
|
}, ne = () => {
|
|
7922
7923
|
e("addRule", { templateId: t.templateId });
|
|
7923
|
-
},
|
|
7924
|
+
}, y = (m) => {
|
|
7924
7925
|
e("removeRule", { id: m, templateId: t.templateId });
|
|
7925
7926
|
}, S = (m) => {
|
|
7926
7927
|
var A;
|
|
@@ -7967,7 +7968,7 @@ const S7 = {
|
|
|
7967
7968
|
};
|
|
7968
7969
|
return (m, A) => {
|
|
7969
7970
|
var N, B, oe, me, se, ee;
|
|
7970
|
-
return n.value ? (v(), C("div",
|
|
7971
|
+
return n.value ? (v(), C("div", E7, [
|
|
7971
7972
|
k(r1, {
|
|
7972
7973
|
"can-go-back": !0,
|
|
7973
7974
|
onGoBack: A[1] || (A[1] = (O) => m.$router.push({ name: F(Tt).TEMPLATES_LIST }))
|
|
@@ -7993,9 +7994,9 @@ const S7 = {
|
|
|
7993
7994
|
]),
|
|
7994
7995
|
_: 1
|
|
7995
7996
|
}),
|
|
7996
|
-
d("div",
|
|
7997
|
-
d("ol",
|
|
7998
|
-
d("li",
|
|
7997
|
+
d("div", I7, [
|
|
7998
|
+
d("ol", O7, [
|
|
7999
|
+
d("li", L7, [
|
|
7999
8000
|
k(F(Ge), {
|
|
8000
8001
|
"model-value": n.value.phases,
|
|
8001
8002
|
class: "ao-templates__list",
|
|
@@ -8013,7 +8014,7 @@ const S7 = {
|
|
|
8013
8014
|
item: R(({ element: O }) => {
|
|
8014
8015
|
var q;
|
|
8015
8016
|
return [
|
|
8016
|
-
k(
|
|
8017
|
+
k(E3, {
|
|
8017
8018
|
id: O.id,
|
|
8018
8019
|
name: O.name,
|
|
8019
8020
|
milestones: O.milestones,
|
|
@@ -8030,7 +8031,7 @@ const S7 = {
|
|
|
8030
8031
|
];
|
|
8031
8032
|
}),
|
|
8032
8033
|
footer: R(() => [
|
|
8033
|
-
d("div",
|
|
8034
|
+
d("div", V7, [
|
|
8034
8035
|
k(Xe, {
|
|
8035
8036
|
"icon-name": "AddBoxOutlineRounded",
|
|
8036
8037
|
label: m.$t("template.phases.add"),
|
|
@@ -8041,8 +8042,8 @@ const S7 = {
|
|
|
8041
8042
|
_: 1
|
|
8042
8043
|
}, 8, ["model-value"])
|
|
8043
8044
|
]),
|
|
8044
|
-
d("li",
|
|
8045
|
-
i.value ? (v(), U(
|
|
8045
|
+
d("li", H7, [
|
|
8046
|
+
i.value ? (v(), U(L3, {
|
|
8046
8047
|
key: 0,
|
|
8047
8048
|
"template-id": m.templateId,
|
|
8048
8049
|
phase: i.value,
|
|
@@ -8053,8 +8054,8 @@ const S7 = {
|
|
|
8053
8054
|
onRemoveMilestone: L
|
|
8054
8055
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : E("", !0)
|
|
8055
8056
|
]),
|
|
8056
|
-
d("li",
|
|
8057
|
-
i.value && l.value ? (v(), U(
|
|
8057
|
+
d("li", D7, [
|
|
8058
|
+
i.value && l.value ? (v(), U(D3, {
|
|
8058
8059
|
key: 0,
|
|
8059
8060
|
"template-id": m.templateId,
|
|
8060
8061
|
"phase-id": (B = i.value) == null ? void 0 : B.id,
|
|
@@ -8090,7 +8091,7 @@ const S7 = {
|
|
|
8090
8091
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : E("", !0)
|
|
8091
8092
|
])),
|
|
8092
8093
|
(v(), U(It, { to: "body" }, [
|
|
8093
|
-
z.value ? (v(), U(
|
|
8094
|
+
z.value ? (v(), U(S7, {
|
|
8094
8095
|
key: 0,
|
|
8095
8096
|
"template-id": n.value.id,
|
|
8096
8097
|
rules: n.value.rules || [],
|
|
@@ -8099,17 +8100,17 @@ const S7 = {
|
|
|
8099
8100
|
"template-activities": c.value,
|
|
8100
8101
|
onClose: Y,
|
|
8101
8102
|
onAddRule: ne,
|
|
8102
|
-
onRemoveRule:
|
|
8103
|
+
onRemoveRule: y
|
|
8103
8104
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : E("", !0)
|
|
8104
8105
|
]))
|
|
8105
8106
|
])) : E("", !0);
|
|
8106
8107
|
};
|
|
8107
8108
|
}
|
|
8108
8109
|
});
|
|
8109
|
-
const
|
|
8110
|
+
const B7 = {
|
|
8110
8111
|
key: 0,
|
|
8111
8112
|
class: "ao-card__header"
|
|
8112
|
-
},
|
|
8113
|
+
}, N7 = { class: "ao-card__body" }, R7 = {
|
|
8113
8114
|
key: 1,
|
|
8114
8115
|
class: "ao-card__footer"
|
|
8115
8116
|
}, N1 = /* @__PURE__ */ x({
|
|
@@ -8123,13 +8124,13 @@ const P7 = {
|
|
|
8123
8124
|
class: G(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
8124
8125
|
}, {
|
|
8125
8126
|
default: R(() => [
|
|
8126
|
-
e.$slots.header ? (v(), C("header",
|
|
8127
|
+
e.$slots.header ? (v(), C("header", B7, [
|
|
8127
8128
|
Q(e.$slots, "header")
|
|
8128
8129
|
])) : E("", !0),
|
|
8129
|
-
d("div",
|
|
8130
|
+
d("div", N7, [
|
|
8130
8131
|
Q(e.$slots, "default")
|
|
8131
8132
|
]),
|
|
8132
|
-
e.$slots.footer ? (v(), C("footer",
|
|
8133
|
+
e.$slots.footer ? (v(), C("footer", R7, [
|
|
8133
8134
|
Q(e.$slots, "footer")
|
|
8134
8135
|
])) : E("", !0)
|
|
8135
8136
|
]),
|
|
@@ -8144,7 +8145,7 @@ const R1 = /* @__PURE__ */ x({
|
|
|
8144
8145
|
status: {}
|
|
8145
8146
|
},
|
|
8146
8147
|
setup(a) {
|
|
8147
|
-
const e = a, t =
|
|
8148
|
+
const e = a, t = b(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
8148
8149
|
return (s, n) => (v(), C("div", {
|
|
8149
8150
|
class: G(["ao-progress", s.status ? `ao-progress--${s.status}` : ""]),
|
|
8150
8151
|
role: "meter"
|
|
@@ -8157,10 +8158,10 @@ const R1 = /* @__PURE__ */ x({
|
|
|
8157
8158
|
], 2));
|
|
8158
8159
|
}
|
|
8159
8160
|
});
|
|
8160
|
-
const
|
|
8161
|
+
const U7 = { class: "ao-card-project-phase__header" }, Z7 = { class: "ao-card-project-phase__footer" }, j7 = { class: "ao-card-project-phase__footer-row" }, F7 = { class: "ao-card-project-phase__subitem" }, q7 = { class: "ao-card-project-phase__subitem" }, W7 = {
|
|
8161
8162
|
key: 1,
|
|
8162
8163
|
class: "ao-card-project-phase__secondary"
|
|
8163
|
-
},
|
|
8164
|
+
}, z7 = /* @__PURE__ */ x({
|
|
8164
8165
|
__name: "AoCardProjectItemPhase",
|
|
8165
8166
|
props: {
|
|
8166
8167
|
id: {},
|
|
@@ -8173,13 +8174,13 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8173
8174
|
setup(a, { emit: e }) {
|
|
8174
8175
|
const t = a, s = (l) => {
|
|
8175
8176
|
e("update:title", l);
|
|
8176
|
-
}, n =
|
|
8177
|
+
}, n = b(() => {
|
|
8177
8178
|
var l;
|
|
8178
8179
|
return (l = t.milestones) == null ? void 0 : l.length;
|
|
8179
|
-
}), o =
|
|
8180
|
+
}), o = b(() => {
|
|
8180
8181
|
var l;
|
|
8181
|
-
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status ===
|
|
8182
|
-
}), i =
|
|
8182
|
+
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === y7.done).length;
|
|
8183
|
+
}), i = b(() => (o.value || 0) / (n.value || 1));
|
|
8183
8184
|
return (l, r) => (v(), U(N1, { class: "ao-card-project-phase" }, Ht({
|
|
8184
8185
|
default: R(() => [
|
|
8185
8186
|
k(pe, {
|
|
@@ -8192,22 +8193,22 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8192
8193
|
}, null, 8, ["id", "title", "is-editable"])
|
|
8193
8194
|
]),
|
|
8194
8195
|
footer: R(() => [
|
|
8195
|
-
d("div",
|
|
8196
|
-
d("div",
|
|
8196
|
+
d("div", Z7, [
|
|
8197
|
+
d("div", j7, [
|
|
8197
8198
|
n.value ? (v(), C(fe, { key: 0 }, [
|
|
8198
|
-
d("div",
|
|
8199
|
+
d("div", F7, [
|
|
8199
8200
|
k(de, {
|
|
8200
8201
|
name: "MountainFlagOutlineRounded",
|
|
8201
8202
|
size: "sm"
|
|
8202
8203
|
}),
|
|
8203
|
-
d("span",
|
|
8204
|
+
d("span", q7, W(o.value) + " / " + W(n.value), 1)
|
|
8204
8205
|
]),
|
|
8205
8206
|
k(R1, {
|
|
8206
8207
|
percentages: i.value,
|
|
8207
8208
|
class: "ao-card-project-phase__progress"
|
|
8208
8209
|
}, null, 8, ["percentages"])
|
|
8209
8210
|
], 64)) : E("", !0),
|
|
8210
|
-
l.$slots.secondary ? (v(), C("div",
|
|
8211
|
+
l.$slots.secondary ? (v(), C("div", W7, [
|
|
8211
8212
|
Q(l.$slots, "secondary")
|
|
8212
8213
|
])) : E("", !0)
|
|
8213
8214
|
])
|
|
@@ -8218,7 +8219,7 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8218
8219
|
l.isEditable ? {
|
|
8219
8220
|
name: "header",
|
|
8220
8221
|
fn: R(() => [
|
|
8221
|
-
d("div",
|
|
8222
|
+
d("div", U7, [
|
|
8222
8223
|
k(ce, {
|
|
8223
8224
|
class: "ao-card-project-phase__archive",
|
|
8224
8225
|
color: "primary",
|
|
@@ -8237,13 +8238,13 @@ const R7 = { class: "ao-card-project-phase__header" }, U7 = { class: "ao-card-pr
|
|
|
8237
8238
|
]), 1024));
|
|
8238
8239
|
}
|
|
8239
8240
|
});
|
|
8240
|
-
const
|
|
8241
|
+
const x7 = { class: "ao-card-project-milestone__default" }, Y7 = {
|
|
8241
8242
|
key: 0,
|
|
8242
8243
|
class: "ao-card-project-milestone__archive"
|
|
8243
|
-
},
|
|
8244
|
+
}, K7 = { class: "ao-card-project-phase__footer" }, G7 = { class: "ao-card-project-phase__footer-row" }, X7 = { class: "ao-card-project-phase__subitem" }, Q7 = { class: "ao-card-project-phase__subitem" }, J7 = {
|
|
8244
8245
|
key: 1,
|
|
8245
8246
|
class: "ao-card-project-phase__secondary"
|
|
8246
|
-
},
|
|
8247
|
+
}, e9 = /* @__PURE__ */ x({
|
|
8247
8248
|
__name: "AoCardProjectItemMilestone",
|
|
8248
8249
|
props: {
|
|
8249
8250
|
id: {},
|
|
@@ -8254,16 +8255,16 @@ const z7 = { class: "ao-card-project-milestone__default" }, x7 = {
|
|
|
8254
8255
|
},
|
|
8255
8256
|
emits: ["updateMilestone", "archiveMilestone"],
|
|
8256
8257
|
setup(a, { emit: e }) {
|
|
8257
|
-
const t = a, s =
|
|
8258
|
+
const t = a, s = b(() => {
|
|
8258
8259
|
var l;
|
|
8259
8260
|
return (l = t.activities) == null ? void 0 : l.length;
|
|
8260
|
-
}), n =
|
|
8261
|
+
}), n = b(() => {
|
|
8261
8262
|
var l;
|
|
8262
8263
|
return (l = t.activities) == null ? void 0 : l.filter((r) => {
|
|
8263
8264
|
var c, u;
|
|
8264
8265
|
return ((c = r.status) == null ? void 0 : c.id) === ((u = t.doneStatus) == null ? void 0 : u.id);
|
|
8265
8266
|
}).length;
|
|
8266
|
-
}), o =
|
|
8267
|
+
}), o = b(() => (n.value || 0) / (s.value || 1)), i = (l) => {
|
|
8267
8268
|
e("updateMilestone", { id: t.id, name: l });
|
|
8268
8269
|
};
|
|
8269
8270
|
return (l, r) => (v(), U(N1, {
|
|
@@ -8272,7 +8273,7 @@ const z7 = { class: "ao-card-project-milestone__default" }, x7 = {
|
|
|
8272
8273
|
"tag-name": "li"
|
|
8273
8274
|
}, {
|
|
8274
8275
|
default: R(() => [
|
|
8275
|
-
d("div",
|
|
8276
|
+
d("div", x7, [
|
|
8276
8277
|
k(pe, {
|
|
8277
8278
|
id: l.id,
|
|
8278
8279
|
title: l.name || "",
|
|
@@ -8281,7 +8282,7 @@ const z7 = { class: "ao-card-project-milestone__default" }, x7 = {
|
|
|
8281
8282
|
class: "ao-card-project-milestone__title",
|
|
8282
8283
|
"onUpdate:title": i
|
|
8283
8284
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8284
|
-
l.isEditable ? (v(), C("div",
|
|
8285
|
+
l.isEditable ? (v(), C("div", Y7, [
|
|
8285
8286
|
k(ce, {
|
|
8286
8287
|
color: "primary",
|
|
8287
8288
|
variant: "ghost",
|
|
@@ -8296,22 +8297,22 @@ const z7 = { class: "ao-card-project-milestone__default" }, x7 = {
|
|
|
8296
8297
|
])
|
|
8297
8298
|
]),
|
|
8298
8299
|
footer: R(() => [
|
|
8299
|
-
d("div",
|
|
8300
|
-
d("div",
|
|
8300
|
+
d("div", K7, [
|
|
8301
|
+
d("div", G7, [
|
|
8301
8302
|
s.value ? (v(), C(fe, { key: 0 }, [
|
|
8302
|
-
d("div",
|
|
8303
|
+
d("div", X7, [
|
|
8303
8304
|
k(de, {
|
|
8304
8305
|
name: "SelectCheckBox",
|
|
8305
8306
|
size: "sm"
|
|
8306
8307
|
}),
|
|
8307
|
-
d("span",
|
|
8308
|
+
d("span", Q7, W(n.value) + " / " + W(s.value), 1)
|
|
8308
8309
|
]),
|
|
8309
8310
|
k(R1, {
|
|
8310
8311
|
percentages: o.value,
|
|
8311
8312
|
class: "ao-card-project-phase__progress"
|
|
8312
8313
|
}, null, 8, ["percentages"])
|
|
8313
8314
|
], 64)) : E("", !0),
|
|
8314
|
-
l.$slots.secondary ? (v(), C("div",
|
|
8315
|
+
l.$slots.secondary ? (v(), C("div", J7, [
|
|
8315
8316
|
Q(l.$slots, "secondary")
|
|
8316
8317
|
])) : E("", !0)
|
|
8317
8318
|
])
|
|
@@ -8321,10 +8322,10 @@ const z7 = { class: "ao-card-project-milestone__default" }, x7 = {
|
|
|
8321
8322
|
}));
|
|
8322
8323
|
}
|
|
8323
8324
|
});
|
|
8324
|
-
const
|
|
8325
|
+
const t9 = { class: "ao-project-phase" }, a9 = {
|
|
8325
8326
|
key: 0,
|
|
8326
8327
|
class: "ao-project-phase__drag ao-card__drag"
|
|
8327
|
-
},
|
|
8328
|
+
}, n9 = { class: "ao-project-phase__col-phase" }, s9 = { class: "ao-project-phase__col-milestones" }, i9 = { class: "ao-project-phase__milestones" }, o9 = { class: "ao-project-phase__milestones-list-footer" }, l9 = /* @__PURE__ */ x({
|
|
8328
8329
|
__name: "AoProjectPhase",
|
|
8329
8330
|
props: {
|
|
8330
8331
|
phase: {},
|
|
@@ -8338,7 +8339,7 @@ const e9 = { class: "ao-project-phase" }, t9 = {
|
|
|
8338
8339
|
});
|
|
8339
8340
|
const n = (f) => {
|
|
8340
8341
|
e("updatePhase", { id: t.phase.id, name: f });
|
|
8341
|
-
}, o =
|
|
8342
|
+
}, o = b(() => t.phase.milestones), i = (f) => {
|
|
8342
8343
|
const { name: h, rank: p } = vt(o.value ?? [], "milestone", s);
|
|
8343
8344
|
e("addMilestone", { name: h, rank: p, phaseId: f });
|
|
8344
8345
|
}, l = (f) => {
|
|
@@ -8357,15 +8358,15 @@ const e9 = { class: "ao-project-phase" }, t9 = {
|
|
|
8357
8358
|
)
|
|
8358
8359
|
});
|
|
8359
8360
|
};
|
|
8360
|
-
return (f, h) => (v(), C("li",
|
|
8361
|
-
f.isEditable ? (v(), C("div",
|
|
8361
|
+
return (f, h) => (v(), C("li", t9, [
|
|
8362
|
+
f.isEditable ? (v(), C("div", a9, [
|
|
8362
8363
|
k(de, {
|
|
8363
8364
|
name: "DragIndicator",
|
|
8364
8365
|
class: "ao-project-phase__drag-handle"
|
|
8365
8366
|
})
|
|
8366
8367
|
])) : E("", !0),
|
|
8367
|
-
d("div",
|
|
8368
|
-
k(
|
|
8368
|
+
d("div", n9, [
|
|
8369
|
+
k(z7, {
|
|
8369
8370
|
id: f.phase.id,
|
|
8370
8371
|
milestones: o.value,
|
|
8371
8372
|
name: f.phase.name,
|
|
@@ -8374,8 +8375,8 @@ const e9 = { class: "ao-project-phase" }, t9 = {
|
|
|
8374
8375
|
onArchivePhase: c
|
|
8375
8376
|
}, null, 8, ["id", "milestones", "name", "is-editable"])
|
|
8376
8377
|
]),
|
|
8377
|
-
d("div",
|
|
8378
|
-
d("div",
|
|
8378
|
+
d("div", s9, [
|
|
8379
|
+
d("div", i9, [
|
|
8379
8380
|
k(F(Ge), Ve({
|
|
8380
8381
|
class: "ao-project-phase__milestones-list",
|
|
8381
8382
|
list: o.value,
|
|
@@ -8384,7 +8385,7 @@ const e9 = { class: "ao-project-phase" }, t9 = {
|
|
|
8384
8385
|
group: "kanban"
|
|
8385
8386
|
}, f.$attrs, { onChange: u }), {
|
|
8386
8387
|
item: R(({ element: p }) => [
|
|
8387
|
-
k(
|
|
8388
|
+
k(e9, {
|
|
8388
8389
|
id: p.id,
|
|
8389
8390
|
name: p.name,
|
|
8390
8391
|
activities: p.activities,
|
|
@@ -8401,7 +8402,7 @@ const e9 = { class: "ao-project-phase" }, t9 = {
|
|
|
8401
8402
|
]),
|
|
8402
8403
|
_: 1
|
|
8403
8404
|
}, 16, ["list", "disabled"]),
|
|
8404
|
-
d("div",
|
|
8405
|
+
d("div", o9, [
|
|
8405
8406
|
f.isEditable ? (v(), U(Xe, {
|
|
8406
8407
|
key: 0,
|
|
8407
8408
|
label: f.$t("project.milestone.add"),
|
|
@@ -8415,10 +8416,10 @@ const e9 = { class: "ao-project-phase" }, t9 = {
|
|
|
8415
8416
|
]));
|
|
8416
8417
|
}
|
|
8417
8418
|
});
|
|
8418
|
-
const
|
|
8419
|
+
const r9 = { class: "ao-project__phases" }, u9 = {
|
|
8419
8420
|
key: 0,
|
|
8420
8421
|
class: "ao-project-phase__phases-list-footer"
|
|
8421
|
-
},
|
|
8422
|
+
}, c9 = /* @__PURE__ */ d("div", { class: "ao-project-phase__empty_drag" }, null, -1), d9 = { class: "ao-project-phase__col-phase" }, f9 = /* @__PURE__ */ d("div", { class: "ao-project-phase__col-milestones" }, null, -1), v9 = /* @__PURE__ */ x({
|
|
8422
8423
|
__name: "AoProjectPhases",
|
|
8423
8424
|
props: {
|
|
8424
8425
|
phases: {},
|
|
@@ -8451,7 +8452,7 @@ const l9 = { class: "ao-project__phases" }, r9 = {
|
|
|
8451
8452
|
}, c = (u) => {
|
|
8452
8453
|
e("addPhase", u);
|
|
8453
8454
|
};
|
|
8454
|
-
return (u, f) => (v(), C("div",
|
|
8455
|
+
return (u, f) => (v(), C("div", r9, [
|
|
8455
8456
|
k(F(Ge), {
|
|
8456
8457
|
class: "ao-project-phase__phases-list",
|
|
8457
8458
|
"model-value": u.phases,
|
|
@@ -8460,7 +8461,7 @@ const l9 = { class: "ao-project__phases" }, r9 = {
|
|
|
8460
8461
|
onChange: l
|
|
8461
8462
|
}, {
|
|
8462
8463
|
item: R(({ element: h }) => [
|
|
8463
|
-
k(
|
|
8464
|
+
k(l9, {
|
|
8464
8465
|
phase: h,
|
|
8465
8466
|
"is-editable": u.isEditable,
|
|
8466
8467
|
onAddMilestone: s,
|
|
@@ -8472,9 +8473,9 @@ const l9 = { class: "ao-project__phases" }, r9 = {
|
|
|
8472
8473
|
]),
|
|
8473
8474
|
_: 1
|
|
8474
8475
|
}, 8, ["model-value"]),
|
|
8475
|
-
u.isEditable ? (v(), C("div",
|
|
8476
|
-
|
|
8477
|
-
d("div",
|
|
8476
|
+
u.isEditable ? (v(), C("div", u9, [
|
|
8477
|
+
c9,
|
|
8478
|
+
d("div", d9, [
|
|
8478
8479
|
k(Xe, {
|
|
8479
8480
|
label: u.$t("project.phases.add"),
|
|
8480
8481
|
"icon-name": "Add",
|
|
@@ -8482,12 +8483,12 @@ const l9 = { class: "ao-project__phases" }, r9 = {
|
|
|
8482
8483
|
onClick: c
|
|
8483
8484
|
}, null, 8, ["label"])
|
|
8484
8485
|
]),
|
|
8485
|
-
|
|
8486
|
+
f9
|
|
8486
8487
|
])) : E("", !0)
|
|
8487
8488
|
]));
|
|
8488
8489
|
}
|
|
8489
8490
|
});
|
|
8490
|
-
const
|
|
8491
|
+
const h9 = ["onSubmit"], p9 = { class: "ao-add-template-modal__form-body" }, m9 = { class: "field__row" }, C9 = { class: "ao-add-template-modal__form-footer" }, _9 = /* @__PURE__ */ x({
|
|
8491
8492
|
__name: "AoAddTemplateModal",
|
|
8492
8493
|
props: {
|
|
8493
8494
|
projectId: {},
|
|
@@ -8495,7 +8496,7 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, p9
|
|
|
8495
8496
|
},
|
|
8496
8497
|
emits: ["apply"],
|
|
8497
8498
|
setup(a, { emit: e }) {
|
|
8498
|
-
const t = a, s =
|
|
8499
|
+
const t = a, s = b(() => t.templates.map((l) => ({
|
|
8499
8500
|
value: l.id,
|
|
8500
8501
|
label: l.name
|
|
8501
8502
|
}))), n = X(null), o = (l) => {
|
|
@@ -8515,8 +8516,8 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, p9
|
|
|
8515
8516
|
class: "ao-add-template-modal__form",
|
|
8516
8517
|
onSubmit: _e(i, ["prevent"])
|
|
8517
8518
|
}, [
|
|
8518
|
-
d("div",
|
|
8519
|
-
d("div",
|
|
8519
|
+
d("div", p9, [
|
|
8520
|
+
d("div", m9, [
|
|
8520
8521
|
k(be, {
|
|
8521
8522
|
value: n.value,
|
|
8522
8523
|
options: s.value,
|
|
@@ -8525,7 +8526,7 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, p9
|
|
|
8525
8526
|
}, null, 8, ["value", "options"])
|
|
8526
8527
|
])
|
|
8527
8528
|
]),
|
|
8528
|
-
d("footer",
|
|
8529
|
+
d("footer", C9, [
|
|
8529
8530
|
k(ce, {
|
|
8530
8531
|
label: l.$t("project.template.add.label"),
|
|
8531
8532
|
type: "submit",
|
|
@@ -8534,13 +8535,13 @@ const v9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, p9
|
|
|
8534
8535
|
onClick: i
|
|
8535
8536
|
}, null, 8, ["label"])
|
|
8536
8537
|
])
|
|
8537
|
-
], 40,
|
|
8538
|
+
], 40, h9)
|
|
8538
8539
|
]),
|
|
8539
8540
|
_: 1
|
|
8540
8541
|
}));
|
|
8541
8542
|
}
|
|
8542
8543
|
});
|
|
8543
|
-
const
|
|
8544
|
+
const g9 = { class: "ao-project-overview" }, y9 = { class: "ao-project" }, b9 = { class: "ao-project__body" }, w9 = /* @__PURE__ */ x({
|
|
8544
8545
|
__name: "AoProjectOverviewProject",
|
|
8545
8546
|
props: {
|
|
8546
8547
|
project: {},
|
|
@@ -8554,7 +8555,7 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8554
8555
|
},
|
|
8555
8556
|
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8556
8557
|
setup(a, { emit: e }) {
|
|
8557
|
-
const t = a, { t: s } = at(), n =
|
|
8558
|
+
const t = a, { t: s } = at(), n = b(
|
|
8558
8559
|
() => t.phases.flatMap((I) => I.milestones)
|
|
8559
8560
|
), o = () => {
|
|
8560
8561
|
const { name: I, rank: z } = vt(t.phases, "phase", s);
|
|
@@ -8577,7 +8578,7 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8577
8578
|
e("archiveActivity", I);
|
|
8578
8579
|
}, g = (I) => {
|
|
8579
8580
|
e("addSubtask", I);
|
|
8580
|
-
}, $ =
|
|
8581
|
+
}, $ = b(
|
|
8581
8582
|
() => n.value.flatMap((I) => I.activities)
|
|
8582
8583
|
), T = (I) => {
|
|
8583
8584
|
e("addFiles", I);
|
|
@@ -8595,8 +8596,8 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8595
8596
|
return (I, z) => {
|
|
8596
8597
|
const Y = vn("RouterView");
|
|
8597
8598
|
return v(), C(fe, null, [
|
|
8598
|
-
d("div",
|
|
8599
|
-
d("div",
|
|
8599
|
+
d("div", g9, [
|
|
8600
|
+
d("div", y9, [
|
|
8600
8601
|
k(r1, null, Ht({ _: 2 }, [
|
|
8601
8602
|
I.isEditable ? {
|
|
8602
8603
|
name: "primary",
|
|
@@ -8611,8 +8612,8 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8611
8612
|
key: "0"
|
|
8612
8613
|
} : void 0
|
|
8613
8614
|
]), 1024),
|
|
8614
|
-
d("div",
|
|
8615
|
-
k(
|
|
8615
|
+
d("div", b9, [
|
|
8616
|
+
k(v9, {
|
|
8616
8617
|
phases: I.phases,
|
|
8617
8618
|
"is-editable": I.isEditable,
|
|
8618
8619
|
onAddMilestone: r,
|
|
@@ -8657,7 +8658,7 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8657
8658
|
]))
|
|
8658
8659
|
]),
|
|
8659
8660
|
(v(), U(It, { to: "body" }, [
|
|
8660
|
-
j.value ? (v(), U(
|
|
8661
|
+
j.value ? (v(), U(_9, {
|
|
8661
8662
|
key: 0,
|
|
8662
8663
|
"project-id": I.project.id,
|
|
8663
8664
|
templates: I.templates,
|
|
@@ -8669,31 +8670,31 @@ const _9 = { class: "ao-project-overview" }, g9 = { class: "ao-project" }, y9 =
|
|
|
8669
8670
|
};
|
|
8670
8671
|
}
|
|
8671
8672
|
});
|
|
8672
|
-
const
|
|
8673
|
+
const $9 = { class: "ao-card-feed__header" }, M9 = {
|
|
8673
8674
|
key: 2,
|
|
8674
8675
|
class: "ao-card-feed__header-secondary ao-card-feed__secondary"
|
|
8675
|
-
},
|
|
8676
|
+
}, k9 = { class: "ao-card-feed__body" }, A9 = {
|
|
8676
8677
|
key: 0,
|
|
8677
8678
|
class: "ao-card-feed__breadcrumbs"
|
|
8678
|
-
},
|
|
8679
|
+
}, T9 = {
|
|
8679
8680
|
key: 1,
|
|
8680
8681
|
class: "ao-card-feed__deadline"
|
|
8681
|
-
},
|
|
8682
|
+
}, S9 = { class: "ao-card-feed__footer" }, E9 = { class: "ao-card-feed__footer-row" }, I9 = { class: "ao-assignees" }, O9 = {
|
|
8682
8683
|
key: 0,
|
|
8683
8684
|
class: "ao-assignee"
|
|
8684
|
-
},
|
|
8685
|
+
}, L9 = {
|
|
8685
8686
|
key: 0,
|
|
8686
8687
|
class: "ao-card-feed__subitems"
|
|
8687
|
-
},
|
|
8688
|
+
}, V9 = {
|
|
8688
8689
|
key: 0,
|
|
8689
8690
|
class: "ao-card-feed__subitem"
|
|
8690
|
-
},
|
|
8691
|
+
}, H9 = { class: "ao-card-feed__subitem" }, D9 = {
|
|
8691
8692
|
key: 1,
|
|
8692
8693
|
class: "ao-card-feed__subitem"
|
|
8693
|
-
},
|
|
8694
|
+
}, P9 = { class: "ao-card-feed__subitem" }, B9 = { class: "ao-card-feed__footer-row" }, N9 = {
|
|
8694
8695
|
key: 0,
|
|
8695
8696
|
class: "ao-card-feed__progress-wrapper"
|
|
8696
|
-
},
|
|
8697
|
+
}, R9 = { class: "ao-card-feed__subitem" }, U9 = { class: "ao-card-feed__subitem" }, Va = /* @__PURE__ */ x({
|
|
8697
8698
|
__name: "AoCardFeed",
|
|
8698
8699
|
props: {
|
|
8699
8700
|
id: {},
|
|
@@ -8716,24 +8717,24 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8716
8717
|
id: t.id,
|
|
8717
8718
|
name: h
|
|
8718
8719
|
});
|
|
8719
|
-
}, n =
|
|
8720
|
+
}, n = b(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = b(() => t.assignee ? [t.assignee] : []), i = b(() => k1(t.deadline)), l = (h) => {
|
|
8720
8721
|
const { firstName: p, lastName: g } = h || {};
|
|
8721
8722
|
return `${p ?? ""}${p ? " " : ""}${g ?? ""}`;
|
|
8722
8723
|
}, r = (h) => {
|
|
8723
8724
|
e("removeAssignee", h);
|
|
8724
|
-
}, c =
|
|
8725
|
+
}, c = b(() => {
|
|
8725
8726
|
var h;
|
|
8726
8727
|
return (h = t.tasks) == null ? void 0 : h.length;
|
|
8727
|
-
}), u =
|
|
8728
|
+
}), u = b(() => {
|
|
8728
8729
|
var h;
|
|
8729
8730
|
return (h = t.tasks) == null ? void 0 : h.filter((p) => p.isDone).length;
|
|
8730
|
-
}), f =
|
|
8731
|
+
}), f = b(() => (u.value || 0) / (c.value || 1));
|
|
8731
8732
|
return (h, p) => (v(), U(N1, {
|
|
8732
8733
|
class: "ao-card-feed",
|
|
8733
8734
|
"is-clickable": !0
|
|
8734
8735
|
}, {
|
|
8735
8736
|
header: R(() => [
|
|
8736
|
-
d("div",
|
|
8737
|
+
d("div", $9, [
|
|
8737
8738
|
h.projectName ? (v(), U(S1, {
|
|
8738
8739
|
key: 0,
|
|
8739
8740
|
label: h.projectName,
|
|
@@ -8747,14 +8748,14 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8747
8748
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
8748
8749
|
size: "sm"
|
|
8749
8750
|
})) : E("", !0),
|
|
8750
|
-
h.$slots.secondary ? (v(), C("div",
|
|
8751
|
+
h.$slots.secondary ? (v(), C("div", M9, [
|
|
8751
8752
|
Q(h.$slots, "secondary")
|
|
8752
8753
|
])) : E("", !0)
|
|
8753
8754
|
])
|
|
8754
8755
|
]),
|
|
8755
8756
|
default: R(() => [
|
|
8756
|
-
d("div",
|
|
8757
|
-
n.value ? (v(), C("span",
|
|
8757
|
+
d("div", k9, [
|
|
8758
|
+
n.value ? (v(), C("span", A9, W(n.value), 1)) : E("", !0),
|
|
8758
8759
|
k(pe, {
|
|
8759
8760
|
id: h.id,
|
|
8760
8761
|
title: h.name,
|
|
@@ -8762,17 +8763,17 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8762
8763
|
"is-editable": h.isEditable,
|
|
8763
8764
|
"onUpdate:title": s
|
|
8764
8765
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8765
|
-
h.deadline ? (v(), C("span",
|
|
8766
|
+
h.deadline ? (v(), C("span", T9, W(i.value), 1)) : E("", !0)
|
|
8766
8767
|
])
|
|
8767
8768
|
]),
|
|
8768
8769
|
footer: R(() => [
|
|
8769
|
-
d("div",
|
|
8770
|
-
d("div",
|
|
8771
|
-
d("ul",
|
|
8770
|
+
d("div", S9, [
|
|
8771
|
+
d("div", E9, [
|
|
8772
|
+
d("ul", I9, [
|
|
8772
8773
|
(v(!0), C(fe, null, ye(o.value, (g) => (v(), C(fe, {
|
|
8773
8774
|
key: g.id
|
|
8774
8775
|
}, [
|
|
8775
|
-
g ? (v(), C("li",
|
|
8776
|
+
g ? (v(), C("li", O9, [
|
|
8776
8777
|
k(_t, {
|
|
8777
8778
|
"user-name": l(g),
|
|
8778
8779
|
"is-closable": !0,
|
|
@@ -8781,31 +8782,31 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8781
8782
|
])) : E("", !0)
|
|
8782
8783
|
], 64))), 128))
|
|
8783
8784
|
]),
|
|
8784
|
-
h.comments || h.attachments ? (v(), C("ul",
|
|
8785
|
-
h.comments ? (v(), C("li",
|
|
8785
|
+
h.comments || h.attachments ? (v(), C("ul", L9, [
|
|
8786
|
+
h.comments ? (v(), C("li", V9, [
|
|
8786
8787
|
k(de, {
|
|
8787
8788
|
name: "ChatOutline",
|
|
8788
8789
|
size: "sm"
|
|
8789
8790
|
}),
|
|
8790
|
-
d("span",
|
|
8791
|
+
d("span", H9, W(h.comments), 1)
|
|
8791
8792
|
])) : E("", !0),
|
|
8792
|
-
h.attachments ? (v(), C("li",
|
|
8793
|
+
h.attachments ? (v(), C("li", D9, [
|
|
8793
8794
|
k(de, {
|
|
8794
8795
|
name: "AttachFileRounded",
|
|
8795
8796
|
size: "sm"
|
|
8796
8797
|
}),
|
|
8797
|
-
d("span",
|
|
8798
|
+
d("span", P9, W(h.attachments), 1)
|
|
8798
8799
|
])) : E("", !0)
|
|
8799
8800
|
])) : E("", !0)
|
|
8800
8801
|
]),
|
|
8801
|
-
d("div",
|
|
8802
|
-
h.tasks ? (v(), C("div",
|
|
8803
|
-
d("div",
|
|
8802
|
+
d("div", B9, [
|
|
8803
|
+
h.tasks ? (v(), C("div", N9, [
|
|
8804
|
+
d("div", R9, [
|
|
8804
8805
|
k(de, {
|
|
8805
8806
|
name: "SelectCheckBox",
|
|
8806
8807
|
size: "sm"
|
|
8807
8808
|
}),
|
|
8808
|
-
d("span",
|
|
8809
|
+
d("span", U9, W(u.value) + " / " + W(c.value), 1)
|
|
8809
8810
|
]),
|
|
8810
8811
|
k(R1, {
|
|
8811
8812
|
percentages: f.value,
|
|
@@ -8819,7 +8820,7 @@ const w9 = { class: "ao-card-feed__header" }, $9 = {
|
|
|
8819
8820
|
}));
|
|
8820
8821
|
}
|
|
8821
8822
|
});
|
|
8822
|
-
const
|
|
8823
|
+
const Z9 = { class: "ao-project-milestone" }, j9 = { class: "ao-project-milestone__header" }, F9 = { class: "ao-project-milestone__title" }, q9 = { class: "ao-project-milestone__body" }, W9 = {
|
|
8823
8824
|
key: 0,
|
|
8824
8825
|
class: "ao-project-milestone__footer"
|
|
8825
8826
|
}, oa = /* @__PURE__ */ x({
|
|
@@ -8834,16 +8835,16 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8834
8835
|
},
|
|
8835
8836
|
emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
|
|
8836
8837
|
setup(a, { emit: e }) {
|
|
8837
|
-
const t = a, { t: s } = at(), n =
|
|
8838
|
+
const t = a, { t: s } = at(), n = b(() => {
|
|
8838
8839
|
var h;
|
|
8839
8840
|
return (h = t.phases) == null ? void 0 : h.find((p) => p.id === t.phaseId);
|
|
8840
|
-
}), o =
|
|
8841
|
+
}), o = b(() => {
|
|
8841
8842
|
var h;
|
|
8842
8843
|
return (h = t.phases) == null ? void 0 : h.flatMap((p) => p.milestones);
|
|
8843
|
-
}), i =
|
|
8844
|
+
}), i = b(() => {
|
|
8844
8845
|
var h;
|
|
8845
8846
|
return (h = o.value) == null ? void 0 : h.find((p) => p.id === t.milestoneId);
|
|
8846
|
-
}), l =
|
|
8847
|
+
}), l = b(() => {
|
|
8847
8848
|
var h;
|
|
8848
8849
|
return (h = i.value) == null ? void 0 : h.activities;
|
|
8849
8850
|
});
|
|
@@ -8874,9 +8875,9 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8874
8875
|
};
|
|
8875
8876
|
return (h, p) => {
|
|
8876
8877
|
var g;
|
|
8877
|
-
return v(), C("div",
|
|
8878
|
-
d("header",
|
|
8879
|
-
d("div",
|
|
8878
|
+
return v(), C("div", Z9, [
|
|
8879
|
+
d("header", j9, [
|
|
8880
|
+
d("div", F9, [
|
|
8880
8881
|
d("span", null, W(h.$t("project.milestone.title")), 1),
|
|
8881
8882
|
k(pe, {
|
|
8882
8883
|
title: ((g = i.value) == null ? void 0 : g.name) || h.milestoneId,
|
|
@@ -8889,7 +8890,7 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8889
8890
|
onClick: r
|
|
8890
8891
|
})
|
|
8891
8892
|
]),
|
|
8892
|
-
d("div",
|
|
8893
|
+
d("div", q9, [
|
|
8893
8894
|
k(F(Ge), Ve({
|
|
8894
8895
|
class: "ao-project-milestone__activities",
|
|
8895
8896
|
list: l.value,
|
|
@@ -8941,7 +8942,7 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8941
8942
|
}),
|
|
8942
8943
|
_: 1
|
|
8943
8944
|
}, 16, ["list", "disabled"]),
|
|
8944
|
-
h.isEditable ? (v(), C("div",
|
|
8945
|
+
h.isEditable ? (v(), C("div", W9, [
|
|
8945
8946
|
k(Xe, {
|
|
8946
8947
|
"icon-name": "Add",
|
|
8947
8948
|
label: h.$t("project.activity.add"),
|
|
@@ -8953,7 +8954,7 @@ const U9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8953
8954
|
};
|
|
8954
8955
|
}
|
|
8955
8956
|
});
|
|
8956
|
-
const
|
|
8957
|
+
const z9 = /* @__PURE__ */ x({
|
|
8957
8958
|
__name: "AoProjectOverviewActivityDetails",
|
|
8958
8959
|
props: {
|
|
8959
8960
|
phaseId: {},
|
|
@@ -8971,19 +8972,19 @@ const W9 = /* @__PURE__ */ x({
|
|
|
8971
8972
|
},
|
|
8972
8973
|
emits: ["update:activity", "addSubtask", "addComment", "updateComment", "removeComment"],
|
|
8973
8974
|
setup(a, { emit: e }) {
|
|
8974
|
-
const t = a, s =
|
|
8975
|
+
const t = a, s = b(() => {
|
|
8975
8976
|
var p;
|
|
8976
8977
|
return (p = t.phases) == null ? void 0 : p.find((g) => g.id === t.phaseId);
|
|
8977
|
-
}), n =
|
|
8978
|
+
}), n = b(() => {
|
|
8978
8979
|
var p;
|
|
8979
8980
|
return (p = t.phases) == null ? void 0 : p.flatMap((g) => g.milestones);
|
|
8980
|
-
}), o =
|
|
8981
|
+
}), o = b(() => {
|
|
8981
8982
|
var p;
|
|
8982
8983
|
return (p = n.value) == null ? void 0 : p.find((g) => g.id === t.milestoneId);
|
|
8983
|
-
}), i =
|
|
8984
|
+
}), i = b(() => {
|
|
8984
8985
|
var p;
|
|
8985
8986
|
return (p = t.activities) == null ? void 0 : p.find((g) => g.id === t.activityId);
|
|
8986
|
-
}), l =
|
|
8987
|
+
}), l = b(() => {
|
|
8987
8988
|
var p;
|
|
8988
8989
|
return ((p = t.activityTypes) == null ? void 0 : p.map((g) => ({
|
|
8989
8990
|
value: g,
|
|
@@ -9028,7 +9029,7 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9028
9029
|
TEMPLATES: "templates",
|
|
9029
9030
|
TEMPLATE_DETAILS: "template_details",
|
|
9030
9031
|
TEMPLATES_LIST: "templates_list"
|
|
9031
|
-
},
|
|
9032
|
+
}, U4 = (a, e = {}) => [
|
|
9032
9033
|
{
|
|
9033
9034
|
path: a,
|
|
9034
9035
|
name: Tt.TEMPLATES,
|
|
@@ -9037,12 +9038,12 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9037
9038
|
{
|
|
9038
9039
|
path: "",
|
|
9039
9040
|
name: Tt.TEMPLATES_LIST,
|
|
9040
|
-
component:
|
|
9041
|
+
component: Y9
|
|
9041
9042
|
},
|
|
9042
9043
|
{
|
|
9043
9044
|
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
9044
9045
|
name: Tt.TEMPLATE_DETAILS,
|
|
9045
|
-
component:
|
|
9046
|
+
component: P7,
|
|
9046
9047
|
props: !0
|
|
9047
9048
|
}
|
|
9048
9049
|
]
|
|
@@ -9051,7 +9052,7 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9051
9052
|
project: "AoProject",
|
|
9052
9053
|
milestone: "AoMilestone",
|
|
9053
9054
|
activity: "AoActivity"
|
|
9054
|
-
},
|
|
9055
|
+
}, Z4 = (a, e = {}) => [
|
|
9055
9056
|
{
|
|
9056
9057
|
path: a,
|
|
9057
9058
|
...e,
|
|
@@ -9059,7 +9060,7 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9059
9060
|
{
|
|
9060
9061
|
path: "",
|
|
9061
9062
|
name: ht.project,
|
|
9062
|
-
component:
|
|
9063
|
+
component: w9,
|
|
9063
9064
|
props: !0,
|
|
9064
9065
|
children: [
|
|
9065
9066
|
{
|
|
@@ -9074,14 +9075,14 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9074
9075
|
props: { default: !0, modal: !0 },
|
|
9075
9076
|
components: {
|
|
9076
9077
|
default: oa,
|
|
9077
|
-
modal:
|
|
9078
|
+
modal: z9
|
|
9078
9079
|
}
|
|
9079
9080
|
}
|
|
9080
9081
|
]
|
|
9081
9082
|
}
|
|
9082
9083
|
]
|
|
9083
9084
|
}
|
|
9084
|
-
],
|
|
9085
|
+
], x9 = { class: "ao-templates" }, Y9 = /* @__PURE__ */ x({
|
|
9085
9086
|
__name: "AoTemplatesList",
|
|
9086
9087
|
props: {
|
|
9087
9088
|
templates: {}
|
|
@@ -9121,7 +9122,7 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9121
9122
|
});
|
|
9122
9123
|
}
|
|
9123
9124
|
};
|
|
9124
|
-
return (l, r) => (v(), C("div",
|
|
9125
|
+
return (l, r) => (v(), C("div", x9, [
|
|
9125
9126
|
k(r1, null, {
|
|
9126
9127
|
secondary: R(() => [
|
|
9127
9128
|
k(ce, {
|
|
@@ -9144,7 +9145,7 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9144
9145
|
item: R(({ element: c }) => {
|
|
9145
9146
|
var u;
|
|
9146
9147
|
return [
|
|
9147
|
-
k(
|
|
9148
|
+
k(g3, {
|
|
9148
9149
|
id: c.id,
|
|
9149
9150
|
title: c.name,
|
|
9150
9151
|
phases: c.phases,
|
|
@@ -9165,14 +9166,14 @@ const W9 = /* @__PURE__ */ x({
|
|
|
9165
9166
|
]));
|
|
9166
9167
|
}
|
|
9167
9168
|
});
|
|
9168
|
-
const
|
|
9169
|
+
const K9 = { class: "ao-col-header" }, G9 = /* @__PURE__ */ x({
|
|
9169
9170
|
__name: "AoColHeader",
|
|
9170
9171
|
props: {
|
|
9171
9172
|
title: {},
|
|
9172
9173
|
items: {}
|
|
9173
9174
|
},
|
|
9174
9175
|
setup(a) {
|
|
9175
|
-
return (e, t) => (v(), C("header",
|
|
9176
|
+
return (e, t) => (v(), C("header", K9, [
|
|
9176
9177
|
k(pe, {
|
|
9177
9178
|
title: e.title,
|
|
9178
9179
|
class: "ao-col-header__title",
|
|
@@ -9188,15 +9189,15 @@ const Y9 = { class: "ao-col-header" }, K9 = /* @__PURE__ */ x({
|
|
|
9188
9189
|
]));
|
|
9189
9190
|
}
|
|
9190
9191
|
});
|
|
9191
|
-
function
|
|
9192
|
+
function X9(a) {
|
|
9192
9193
|
return hn() ? (pn(a), !0) : !1;
|
|
9193
9194
|
}
|
|
9194
9195
|
function e1(a) {
|
|
9195
9196
|
return typeof a == "function" ? a() : F(a);
|
|
9196
9197
|
}
|
|
9197
|
-
const
|
|
9198
|
+
const Q9 = typeof window < "u", J9 = (a) => a != null, St = () => {
|
|
9198
9199
|
};
|
|
9199
|
-
function
|
|
9200
|
+
function e4(a, e) {
|
|
9200
9201
|
function t(...s) {
|
|
9201
9202
|
return new Promise((n, o) => {
|
|
9202
9203
|
Promise.resolve(a(() => e.apply(this, s), { fn: e, thisArg: this, args: s })).then(n).catch(o);
|
|
@@ -9204,7 +9205,7 @@ function J9(a, e) {
|
|
|
9204
9205
|
}
|
|
9205
9206
|
return t;
|
|
9206
9207
|
}
|
|
9207
|
-
function
|
|
9208
|
+
function t4(a, e = {}) {
|
|
9208
9209
|
let t, s, n = St;
|
|
9209
9210
|
const o = (l) => {
|
|
9210
9211
|
clearTimeout(l), n(), n = St;
|
|
@@ -9220,9 +9221,9 @@ function e4(a, e = {}) {
|
|
|
9220
9221
|
});
|
|
9221
9222
|
};
|
|
9222
9223
|
}
|
|
9223
|
-
function
|
|
9224
|
-
return
|
|
9225
|
-
|
|
9224
|
+
function a4(a, e = 200, t = {}) {
|
|
9225
|
+
return e4(
|
|
9226
|
+
t4(e, t),
|
|
9226
9227
|
a
|
|
9227
9228
|
);
|
|
9228
9229
|
}
|
|
@@ -9231,27 +9232,27 @@ function M1(a) {
|
|
|
9231
9232
|
const t = e1(a);
|
|
9232
9233
|
return (e = t == null ? void 0 : t.$el) != null ? e : t;
|
|
9233
9234
|
}
|
|
9234
|
-
const
|
|
9235
|
-
function
|
|
9235
|
+
const n4 = Q9 ? window : void 0;
|
|
9236
|
+
function s4() {
|
|
9236
9237
|
const a = X(!1);
|
|
9237
9238
|
return tt() && Dt(() => {
|
|
9238
9239
|
a.value = !0;
|
|
9239
9240
|
}), a;
|
|
9240
9241
|
}
|
|
9241
|
-
function
|
|
9242
|
-
const e =
|
|
9243
|
-
return
|
|
9242
|
+
function i4(a) {
|
|
9243
|
+
const e = s4();
|
|
9244
|
+
return b(() => (e.value, !!a()));
|
|
9244
9245
|
}
|
|
9245
|
-
function
|
|
9246
|
+
function o4(a, e, t = {}) {
|
|
9246
9247
|
const {
|
|
9247
9248
|
root: s,
|
|
9248
9249
|
rootMargin: n = "0px",
|
|
9249
9250
|
threshold: o = 0.1,
|
|
9250
|
-
window: i =
|
|
9251
|
+
window: i = n4,
|
|
9251
9252
|
immediate: l = !0
|
|
9252
|
-
} = t, r =
|
|
9253
|
+
} = t, r = i4(() => i && "IntersectionObserver" in i), c = b(() => {
|
|
9253
9254
|
const g = e1(a);
|
|
9254
|
-
return (Array.isArray(g) ? g : [g]).map(M1).filter(
|
|
9255
|
+
return (Array.isArray(g) ? g : [g]).map(M1).filter(J9);
|
|
9255
9256
|
});
|
|
9256
9257
|
let u = St;
|
|
9257
9258
|
const f = X(l), h = r.value ? ue(
|
|
@@ -9275,7 +9276,7 @@ function i4(a, e, t = {}) {
|
|
|
9275
9276
|
) : St, p = () => {
|
|
9276
9277
|
u(), h(), f.value = !1;
|
|
9277
9278
|
};
|
|
9278
|
-
return
|
|
9279
|
+
return X9(p), {
|
|
9279
9280
|
isSupported: r,
|
|
9280
9281
|
isActive: f,
|
|
9281
9282
|
pause() {
|
|
@@ -9287,24 +9288,24 @@ function i4(a, e, t = {}) {
|
|
|
9287
9288
|
stop: p
|
|
9288
9289
|
};
|
|
9289
9290
|
}
|
|
9290
|
-
const
|
|
9291
|
+
const l4 = {
|
|
9291
9292
|
class: /* @__PURE__ */ G(["ao-list-kanban"])
|
|
9292
|
-
},
|
|
9293
|
+
}, r4 = { class: "ao-list-kanban__header" }, u4 = {
|
|
9293
9294
|
key: 0,
|
|
9294
9295
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
9295
|
-
},
|
|
9296
|
+
}, c4 = {
|
|
9296
9297
|
key: 1,
|
|
9297
9298
|
class: "ao-list-kanban__end"
|
|
9298
|
-
},
|
|
9299
|
+
}, d4 = {
|
|
9299
9300
|
key: 0,
|
|
9300
9301
|
class: "ao-list-kanban__no-more"
|
|
9301
|
-
},
|
|
9302
|
+
}, f4 = {
|
|
9302
9303
|
key: 1,
|
|
9303
9304
|
class: "ao-list-kanban__divider"
|
|
9304
|
-
},
|
|
9305
|
+
}, v4 = {
|
|
9305
9306
|
key: 1,
|
|
9306
9307
|
class: "ao-list-kanban__footer"
|
|
9307
|
-
},
|
|
9308
|
+
}, h4 = /* @__PURE__ */ x({
|
|
9308
9309
|
__name: "AoListKanban",
|
|
9309
9310
|
props: {
|
|
9310
9311
|
list: {},
|
|
@@ -9319,7 +9320,7 @@ const o4 = {
|
|
|
9319
9320
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
|
|
9320
9321
|
setup(a, { emit: e }) {
|
|
9321
9322
|
const t = a, s = X(!1), n = X(null);
|
|
9322
|
-
|
|
9323
|
+
o4(n, ([{ isIntersecting: r }]) => {
|
|
9323
9324
|
s.value = r;
|
|
9324
9325
|
}), ue(s, (r) => {
|
|
9325
9326
|
r && t.hasMore && !t.isLoading && e("loadMore");
|
|
@@ -9342,12 +9343,12 @@ const o4 = {
|
|
|
9342
9343
|
)
|
|
9343
9344
|
});
|
|
9344
9345
|
};
|
|
9345
|
-
return (r, c) => (v(), C("div",
|
|
9346
|
+
return (r, c) => (v(), C("div", l4, [
|
|
9346
9347
|
r.title || r.$slots.header ? Q(r.$slots, "header", { key: 0 }, () => {
|
|
9347
9348
|
var u;
|
|
9348
9349
|
return [
|
|
9349
|
-
d("div",
|
|
9350
|
-
r.title ? (v(), U(
|
|
9350
|
+
d("div", r4, [
|
|
9351
|
+
r.title ? (v(), U(G9, {
|
|
9351
9352
|
key: 0,
|
|
9352
9353
|
title: r.title,
|
|
9353
9354
|
level: 3,
|
|
@@ -9402,20 +9403,20 @@ const o4 = {
|
|
|
9402
9403
|
];
|
|
9403
9404
|
}),
|
|
9404
9405
|
footer: R(() => [
|
|
9405
|
-
r.isLoading ? (v(), C("div",
|
|
9406
|
+
r.isLoading ? (v(), C("div", u4, [
|
|
9406
9407
|
k(de, { name: "Loading" })
|
|
9407
9408
|
])) : r.hasMore ? (v(), C("div", {
|
|
9408
9409
|
key: 2,
|
|
9409
9410
|
ref_key: "scrollEnd",
|
|
9410
9411
|
ref: n,
|
|
9411
9412
|
class: "ao-list-kanban__end"
|
|
9412
|
-
}, null, 512)) : (v(), C("div",
|
|
9413
|
-
r.noMoreLabel ? (v(), C("span",
|
|
9413
|
+
}, null, 512)) : (v(), C("div", c4, [
|
|
9414
|
+
r.noMoreLabel ? (v(), C("span", d4, W(r.noMoreLabel), 1)) : (v(), C("span", f4))
|
|
9414
9415
|
]))
|
|
9415
9416
|
]),
|
|
9416
9417
|
_: 1
|
|
9417
9418
|
}, 16, ["list"]),
|
|
9418
|
-
r.$slots.footer || r.footerLabel ? (v(), C("div",
|
|
9419
|
+
r.$slots.footer || r.footerLabel ? (v(), C("div", v4, [
|
|
9419
9420
|
Q(r.$slots, "footer", {}, () => [
|
|
9420
9421
|
k(Xe, {
|
|
9421
9422
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -9427,7 +9428,7 @@ const o4 = {
|
|
|
9427
9428
|
]));
|
|
9428
9429
|
}
|
|
9429
9430
|
});
|
|
9430
|
-
const
|
|
9431
|
+
const p4 = { class: "ao-field ao-search-field" }, m4 = ["value", "placeholder", "onKeypress"], C4 = /* @__PURE__ */ x({
|
|
9431
9432
|
__name: "AoSearchField",
|
|
9432
9433
|
props: {
|
|
9433
9434
|
modelValue: {},
|
|
@@ -9439,10 +9440,10 @@ const h4 = { class: "ao-field ao-search-field" }, p4 = ["value", "placeholder",
|
|
|
9439
9440
|
const t = a, s = async (i) => {
|
|
9440
9441
|
const r = i.target.value;
|
|
9441
9442
|
e("update:modelValue", r, i);
|
|
9442
|
-
}, n =
|
|
9443
|
+
}, n = a4(s, t.delay), o = (i) => {
|
|
9443
9444
|
e("clear", i);
|
|
9444
9445
|
};
|
|
9445
|
-
return (i, l) => (v(), C("div",
|
|
9446
|
+
return (i, l) => (v(), C("div", p4, [
|
|
9446
9447
|
d("input", {
|
|
9447
9448
|
value: i.modelValue,
|
|
9448
9449
|
type: "text",
|
|
@@ -9451,7 +9452,7 @@ const h4 = { class: "ao-field ao-search-field" }, p4 = ["value", "placeholder",
|
|
|
9451
9452
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
9452
9453
|
(...r) => F(n) && F(n)(...r)),
|
|
9453
9454
|
onKeypress: ze(s, ["enter"])
|
|
9454
|
-
}, null, 40,
|
|
9455
|
+
}, null, 40, m4),
|
|
9455
9456
|
k(de, {
|
|
9456
9457
|
name: "SearchRounded",
|
|
9457
9458
|
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
@@ -9467,8 +9468,8 @@ const h4 = { class: "ao-field ao-search-field" }, p4 = ["value", "placeholder",
|
|
|
9467
9468
|
]));
|
|
9468
9469
|
}
|
|
9469
9470
|
});
|
|
9470
|
-
function
|
|
9471
|
-
const e = X(), t =
|
|
9471
|
+
function _4(a) {
|
|
9472
|
+
const e = X(), t = b(
|
|
9472
9473
|
() => a.value.find(
|
|
9473
9474
|
(n) => n.id === e.value
|
|
9474
9475
|
)
|
|
@@ -9481,18 +9482,18 @@ function C4(a) {
|
|
|
9481
9482
|
}
|
|
9482
9483
|
};
|
|
9483
9484
|
}
|
|
9484
|
-
const
|
|
9485
|
-
function
|
|
9486
|
-
const e =
|
|
9487
|
-
return mn(
|
|
9485
|
+
const g4 = Symbol.for("FeedStore");
|
|
9486
|
+
function y4(a) {
|
|
9487
|
+
const e = _4(a);
|
|
9488
|
+
return mn(g4, e), e;
|
|
9488
9489
|
}
|
|
9489
|
-
const
|
|
9490
|
+
const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { class: "ao-feed__body" }, M4 = { class: "ao-feed__activity-details__header" }, k4 = {
|
|
9490
9491
|
key: 0,
|
|
9491
9492
|
class: "ao-field ao-feed__activity-details__project"
|
|
9492
|
-
},
|
|
9493
|
+
}, A4 = { class: "ao-field__label" }, T4 = {
|
|
9493
9494
|
key: 1,
|
|
9494
9495
|
class: "ao-field ao-feed__activity-details__status"
|
|
9495
|
-
},
|
|
9496
|
+
}, S4 = { class: "ao-field__label" }, E4 = { class: "ao-field__row" }, I4 = { class: "ao-field" }, O4 = { class: "ao-field__label" }, j4 = /* @__PURE__ */ x({
|
|
9496
9497
|
__name: "AoFeed",
|
|
9497
9498
|
props: {
|
|
9498
9499
|
activities: {},
|
|
@@ -9508,7 +9509,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9508
9509
|
},
|
|
9509
9510
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9510
9511
|
setup(a, { emit: e }) {
|
|
9511
|
-
const t = a, { t: s } = at(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } =
|
|
9512
|
+
const t = a, { t: s } = at(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = y4(n), l = (m) => {
|
|
9512
9513
|
o(m), e("selectActivity", m);
|
|
9513
9514
|
}, r = X({}), c = X(!1);
|
|
9514
9515
|
ue(
|
|
@@ -9527,7 +9528,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9527
9528
|
},
|
|
9528
9529
|
{ immediate: !0 }
|
|
9529
9530
|
);
|
|
9530
|
-
const u =
|
|
9531
|
+
const u = b(() => {
|
|
9531
9532
|
var m;
|
|
9532
9533
|
return !i.value || !i.value.milestone ? "" : `${((m = i.value.milestone.phase) == null ? void 0 : m.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9533
9534
|
}), f = (m) => {
|
|
@@ -9540,13 +9541,13 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9540
9541
|
t.filters.assigneeId.length > 0 && (oe.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (oe.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (oe.typeId = t.filters.typeId[0]), c.value = !0, e("addActivity", oe);
|
|
9541
9542
|
}, h = (m, A) => {
|
|
9542
9543
|
c.value = !1, e("update:filters", { ...t.filters, [m]: A });
|
|
9543
|
-
}, p =
|
|
9544
|
+
}, p = b(() => t.projects.map((m) => ({
|
|
9544
9545
|
value: m.id,
|
|
9545
9546
|
label: m.name
|
|
9546
|
-
}))), g =
|
|
9547
|
+
}))), g = b(() => t.activityTypes.map((m) => ({
|
|
9547
9548
|
value: m.id,
|
|
9548
9549
|
label: m.name
|
|
9549
|
-
}))), $ =
|
|
9550
|
+
}))), $ = b(() => t.users.map((m) => ({
|
|
9550
9551
|
value: m.id,
|
|
9551
9552
|
label: `${m.firstName} ${m.lastName}`
|
|
9552
9553
|
}))), T = (m) => {
|
|
@@ -9555,7 +9556,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9555
9556
|
e("update:activity", m);
|
|
9556
9557
|
}, w = (m) => {
|
|
9557
9558
|
e("archiveActivity", m);
|
|
9558
|
-
}, L =
|
|
9559
|
+
}, L = b({
|
|
9559
9560
|
get() {
|
|
9560
9561
|
var m;
|
|
9561
9562
|
return (m = i.value) == null ? void 0 : m.deadline;
|
|
@@ -9580,7 +9581,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9580
9581
|
e("addFiles", m);
|
|
9581
9582
|
}, ne = (m) => {
|
|
9582
9583
|
e("removeFile", m);
|
|
9583
|
-
},
|
|
9584
|
+
}, y = (m) => {
|
|
9584
9585
|
i.value && e("addComment", {
|
|
9585
9586
|
...m,
|
|
9586
9587
|
activityId: i.value.id
|
|
@@ -9591,7 +9592,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9591
9592
|
}, D = (m) => {
|
|
9592
9593
|
const { id: A } = i.value || {};
|
|
9593
9594
|
A && e("removeComment", m);
|
|
9594
|
-
}, le =
|
|
9595
|
+
}, le = b(() => {
|
|
9595
9596
|
var m;
|
|
9596
9597
|
return (m = t.projects) == null ? void 0 : m.map((A) => ({
|
|
9597
9598
|
value: A.id,
|
|
@@ -9602,7 +9603,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9602
9603
|
id: i.value.id,
|
|
9603
9604
|
projectId: m
|
|
9604
9605
|
});
|
|
9605
|
-
}, re =
|
|
9606
|
+
}, re = b(() => {
|
|
9606
9607
|
var m;
|
|
9607
9608
|
return (m = t.statuses) == null ? void 0 : m.map((A) => ({
|
|
9608
9609
|
value: A.id,
|
|
@@ -9616,11 +9617,11 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9616
9617
|
};
|
|
9617
9618
|
return (m, A) => {
|
|
9618
9619
|
var N;
|
|
9619
|
-
return v(), C("div",
|
|
9620
|
+
return v(), C("div", b4, [
|
|
9620
9621
|
k(r1, null, {
|
|
9621
9622
|
primary: R(() => [
|
|
9622
|
-
d("div",
|
|
9623
|
-
k(
|
|
9623
|
+
d("div", w4, [
|
|
9624
|
+
k(C4, {
|
|
9624
9625
|
"model-value": m.searchText,
|
|
9625
9626
|
placeholder: m.$t("feed.search.placeholder"),
|
|
9626
9627
|
class: "ao-feed__search",
|
|
@@ -9682,8 +9683,8 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9682
9683
|
]),
|
|
9683
9684
|
_: 1
|
|
9684
9685
|
}),
|
|
9685
|
-
d("div",
|
|
9686
|
-
(v(!0), C(fe, null, ye(m.statuses, (B) => (v(), U(
|
|
9686
|
+
d("div", $4, [
|
|
9687
|
+
(v(!0), C(fe, null, ye(m.statuses, (B) => (v(), U(h4, {
|
|
9687
9688
|
key: B.id,
|
|
9688
9689
|
status: B,
|
|
9689
9690
|
list: r.value[B.id],
|
|
@@ -9708,6 +9709,7 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9708
9709
|
"is-task-checkable": m.isTaskCheckable,
|
|
9709
9710
|
statuses: m.statuses,
|
|
9710
9711
|
breadcrumbs: u.value,
|
|
9712
|
+
"is-editable": !0,
|
|
9711
9713
|
onClose: A[5] || (A[5] = () => l(null)),
|
|
9712
9714
|
"onUpdate:activity": T,
|
|
9713
9715
|
onAddSubtask: V,
|
|
@@ -9715,24 +9717,24 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9715
9717
|
onDeleteSubtask: z,
|
|
9716
9718
|
onAddFiles: Y,
|
|
9717
9719
|
onRemoveFile: ne,
|
|
9718
|
-
onAddComment:
|
|
9720
|
+
onAddComment: y,
|
|
9719
9721
|
onUpdateComment: S,
|
|
9720
9722
|
onRemoveComment: D
|
|
9721
9723
|
}, {
|
|
9722
9724
|
header: R(() => {
|
|
9723
9725
|
var B, oe;
|
|
9724
9726
|
return [
|
|
9725
|
-
d("div",
|
|
9726
|
-
le.value ? (v(), C("label",
|
|
9727
|
-
d("span",
|
|
9727
|
+
d("div", M4, [
|
|
9728
|
+
le.value ? (v(), C("label", k4, [
|
|
9729
|
+
d("span", A4, W(m.$t("activity.project.label")), 1),
|
|
9728
9730
|
k(be, {
|
|
9729
9731
|
options: le.value,
|
|
9730
9732
|
value: (B = F(i).project) == null ? void 0 : B.id,
|
|
9731
9733
|
onChange: J
|
|
9732
9734
|
}, null, 8, ["options", "value"])
|
|
9733
9735
|
])) : E("", !0),
|
|
9734
|
-
re.value ? (v(), C("label",
|
|
9735
|
-
d("span",
|
|
9736
|
+
re.value ? (v(), C("label", T4, [
|
|
9737
|
+
d("span", S4, W(m.$t("activity.status.label")), 1),
|
|
9736
9738
|
k(be, {
|
|
9737
9739
|
options: re.value,
|
|
9738
9740
|
value: (oe = F(i).status) == null ? void 0 : oe.id,
|
|
@@ -9745,9 +9747,9 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9745
9747
|
];
|
|
9746
9748
|
}),
|
|
9747
9749
|
default: R(() => [
|
|
9748
|
-
d("div",
|
|
9749
|
-
d("label",
|
|
9750
|
-
d("span",
|
|
9750
|
+
d("div", E4, [
|
|
9751
|
+
d("label", I4, [
|
|
9752
|
+
d("span", O4, W(m.$t("activity.deadline.label")), 1),
|
|
9751
9753
|
dt(d("input", {
|
|
9752
9754
|
"onUpdate:modelValue": A[4] || (A[4] = (B) => L.value = B),
|
|
9753
9755
|
class: "ao-field__input",
|
|
@@ -9771,22 +9773,22 @@ const y4 = { class: "ao-feed" }, b4 = { class: "ao-feed__filters" }, w4 = { clas
|
|
|
9771
9773
|
}
|
|
9772
9774
|
});
|
|
9773
9775
|
export {
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9776
|
+
j4 as AoFeed,
|
|
9777
|
+
P7 as AoTemplateDetails,
|
|
9778
|
+
P4 as AoTemplates,
|
|
9779
|
+
Y9 as AoTemplatesList,
|
|
9780
|
+
M7 as TemplateItemTypeEnum,
|
|
9781
|
+
N4 as activityFeedStatus,
|
|
9782
|
+
B4 as durationTypes,
|
|
9781
9783
|
ut as feedFilterTypes,
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9784
|
+
Z4 as getProjectOverviewRoutes,
|
|
9785
|
+
U4 as getTemplateRoutes,
|
|
9786
|
+
R4 as listUpdateTypes,
|
|
9787
|
+
y7 as milestoneStatus,
|
|
9786
9788
|
ht as projectOverviewRoutes,
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9789
|
+
b7 as ruleComparators,
|
|
9790
|
+
$7 as ruleDurationUnits,
|
|
9791
|
+
w7 as ruleTriggerTypes,
|
|
9790
9792
|
he as templateItemType,
|
|
9791
9793
|
Tt as templateRouteNames
|
|
9792
9794
|
};
|