@26lights/orcha 0.15.0 → 0.15.2
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 +312 -309
- package/dist/orcha.umd.js +1 -1
- package/dist/src/helpers.d.ts +1 -1
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -2685,12 +2685,12 @@ var Mc = {
|
|
|
2685
2685
|
const kc = Mc;
|
|
2686
2686
|
var Ac = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Sc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Tc = /^'([^]*?)'?$/, Ec = /''/g, Ic = /[a-zA-Z]/;
|
|
2687
2687
|
function Oc(a, e, t) {
|
|
2688
|
-
var s, n, o, i, l, r, d, u, f, p, C, $, M, S, _, g,
|
|
2688
|
+
var s, n, o, i, l, r, d, u, f, p, C, $, M, S, _, g, L, R;
|
|
2689
2689
|
ge(2, arguments);
|
|
2690
2690
|
var K = String(e), D = n1(), X = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : D.locale) !== null && s !== void 0 ? s : kc, ae = Ke((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (d = t.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : D.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = D.locale) === null || f === void 0 || (p = f.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2691
2691
|
if (!(ae >= 1 && ae <= 7))
|
|
2692
2692
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2693
|
-
var I = Ke((C = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (
|
|
2693
|
+
var I = Ke((C = ($ = (M = (S = t == null ? void 0 : t.weekStartsOn) !== null && S !== void 0 ? S : t == null || (_ = t.locale) === null || _ === void 0 || (g = _.options) === null || g === void 0 ? void 0 : g.weekStartsOn) !== null && M !== void 0 ? M : D.weekStartsOn) !== null && $ !== void 0 ? $ : (L = D.locale) === null || L === void 0 || (R = L.options) === null || R === void 0 ? void 0 : R.weekStartsOn) !== null && C !== void 0 ? C : 0);
|
|
2694
2694
|
if (!(I >= 0 && I <= 6))
|
|
2695
2695
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2696
2696
|
if (!X.localize)
|
|
@@ -3281,7 +3281,7 @@ i1.LexoNumeralSystem10 = Jc;
|
|
|
3281
3281
|
var o1 = {};
|
|
3282
3282
|
Object.defineProperty(o1, "__esModule", { value: !0 });
|
|
3283
3283
|
o1.LexoNumeralSystem36 = void 0;
|
|
3284
|
-
class
|
|
3284
|
+
class e0 {
|
|
3285
3285
|
constructor() {
|
|
3286
3286
|
this.DIGITS = "0123456789abcdefghijklmnopqrstuvwxyz".split("");
|
|
3287
3287
|
}
|
|
@@ -3308,11 +3308,11 @@ class e3 {
|
|
|
3308
3308
|
return this.DIGITS[e];
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
o1.LexoNumeralSystem36 =
|
|
3311
|
+
o1.LexoNumeralSystem36 = e0;
|
|
3312
3312
|
var l1 = {};
|
|
3313
3313
|
Object.defineProperty(l1, "__esModule", { value: !0 });
|
|
3314
3314
|
l1.LexoNumeralSystem64 = void 0;
|
|
3315
|
-
class
|
|
3315
|
+
class t0 {
|
|
3316
3316
|
constructor() {
|
|
3317
3317
|
this.DIGITS = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_abcdefghijklmnopqrstuvwxyz".split("");
|
|
3318
3318
|
}
|
|
@@ -3345,7 +3345,7 @@ class t3 {
|
|
|
3345
3345
|
return this.DIGITS[e];
|
|
3346
3346
|
}
|
|
3347
3347
|
}
|
|
3348
|
-
l1.LexoNumeralSystem64 =
|
|
3348
|
+
l1.LexoNumeralSystem64 = t0;
|
|
3349
3349
|
(function(a) {
|
|
3350
3350
|
var e = Se && Se.__createBinding || (Object.create ? function(s, n, o, i) {
|
|
3351
3351
|
i === void 0 && (i = o);
|
|
@@ -3575,20 +3575,20 @@ function Ma(a) {
|
|
|
3575
3575
|
return e + (((s = t.activities) == null ? void 0 : s.length) ?? 0);
|
|
3576
3576
|
}, 0)) ?? 0;
|
|
3577
3577
|
}
|
|
3578
|
-
function
|
|
3578
|
+
function a0(a) {
|
|
3579
3579
|
return (a == null ? void 0 : a.reduce((e, t) => {
|
|
3580
3580
|
var s;
|
|
3581
3581
|
return e + (((s = t.milestones) == null ? void 0 : s.length) ?? 0);
|
|
3582
3582
|
}, 0)) ?? 0;
|
|
3583
3583
|
}
|
|
3584
|
-
function
|
|
3584
|
+
function n0(a) {
|
|
3585
3585
|
return (a == null ? void 0 : a.reduce((e, t) => {
|
|
3586
3586
|
var n;
|
|
3587
3587
|
const s = (n = t.milestones) != null && n.length ? Ma(t.milestones) : 0;
|
|
3588
3588
|
return e + s;
|
|
3589
3589
|
}, 0)) ?? 0;
|
|
3590
3590
|
}
|
|
3591
|
-
function
|
|
3591
|
+
function s0(a) {
|
|
3592
3592
|
return a.split(" ").slice(0, 2).map((e) => e.charAt(0).toLocaleLowerCase()).join("");
|
|
3593
3593
|
}
|
|
3594
3594
|
function Bt(a, e) {
|
|
@@ -3618,19 +3618,19 @@ function A1(a, e = "dd/MM/yyyy") {
|
|
|
3618
3618
|
function ka(a, e) {
|
|
3619
3619
|
return a.status.id === e.id;
|
|
3620
3620
|
}
|
|
3621
|
-
function
|
|
3622
|
-
return !a.activities.some((t) => !ka(t, e));
|
|
3621
|
+
function i0(a, e) {
|
|
3622
|
+
return a.activities.length === 0 ? !1 : !a.activities.some((t) => !ka(t, e));
|
|
3623
3623
|
}
|
|
3624
|
-
function
|
|
3624
|
+
function o0(a, e) {
|
|
3625
3625
|
return {
|
|
3626
3626
|
...a,
|
|
3627
|
-
status:
|
|
3627
|
+
status: i0(a, e) ? k1.done : k1.todo
|
|
3628
3628
|
};
|
|
3629
3629
|
}
|
|
3630
|
-
const
|
|
3630
|
+
const l0 = ["title"], r0 = {
|
|
3631
3631
|
key: 0,
|
|
3632
3632
|
className: "ao-avatar__initials"
|
|
3633
|
-
},
|
|
3633
|
+
}, u0 = ["src"], _t = /* @__PURE__ */ x({
|
|
3634
3634
|
__name: "AoAvatar",
|
|
3635
3635
|
props: {
|
|
3636
3636
|
userName: {},
|
|
@@ -3640,7 +3640,7 @@ const l3 = ["title"], r3 = {
|
|
|
3640
3640
|
},
|
|
3641
3641
|
emits: ["close"],
|
|
3642
3642
|
setup(a, { emit: e }) {
|
|
3643
|
-
const s =
|
|
3643
|
+
const s = s0(a.userName), n = (o) => {
|
|
3644
3644
|
e("close", o);
|
|
3645
3645
|
};
|
|
3646
3646
|
return (o, i) => (c(), h("div", {
|
|
@@ -3648,12 +3648,12 @@ const l3 = ["title"], r3 = {
|
|
|
3648
3648
|
class: G(o.avatarUrl ? ["ao-avatar-img", `ao-avatar-img--${o.size}`] : ["ao-avatar", `ao-avatar--${o.size}`]),
|
|
3649
3649
|
title: o.userName
|
|
3650
3650
|
}, [
|
|
3651
|
-
o.avatarUrl ? k("", !0) : (c(), h("span",
|
|
3651
|
+
o.avatarUrl ? k("", !0) : (c(), h("span", r0, z(q(s)), 1)),
|
|
3652
3652
|
o.avatarUrl ? (c(), h("img", {
|
|
3653
3653
|
key: 1,
|
|
3654
3654
|
className: "ao-avatar__image",
|
|
3655
3655
|
src: o.avatarUrl
|
|
3656
|
-
}, null, 8,
|
|
3656
|
+
}, null, 8, u0)) : k("", !0),
|
|
3657
3657
|
o.isClosable ? (c(), N(de, {
|
|
3658
3658
|
key: 2,
|
|
3659
3659
|
"icon-name": "CloseRounded",
|
|
@@ -3662,19 +3662,19 @@ const l3 = ["title"], r3 = {
|
|
|
3662
3662
|
corners: "round",
|
|
3663
3663
|
onClick: _e(n, ["stop"])
|
|
3664
3664
|
}, null, 8, ["onClick"])) : k("", !0)
|
|
3665
|
-
], 10,
|
|
3665
|
+
], 10, l0));
|
|
3666
3666
|
}
|
|
3667
3667
|
});
|
|
3668
|
-
const
|
|
3668
|
+
const d0 = { class: "ao-card-template__subitems" }, c0 = { class: "ao-card-template__subitem" }, f0 = { class: "ao-card-template__subitem-number" }, v0 = { class: "ao-card-template__subitem" }, p0 = { class: "ao-card-template__subitem" }, h0 = { class: "ao-card-template__body" }, m0 = { class: "ao-card-template__col ao-card-template__col--phases" }, C0 = { class: "ao-card-template__col-title" }, _0 = { class: "ao-card-template__col-label" }, g0 = {
|
|
3669
3669
|
key: 0,
|
|
3670
3670
|
class: "ao-card-template__col-body ao-card-template__phases-list"
|
|
3671
|
-
},
|
|
3671
|
+
}, b0 = { class: "ao-card-template__footer" }, y0 = {
|
|
3672
3672
|
key: 0,
|
|
3673
3673
|
class: "ao-card-template__col ao-card-template__col--updated-at"
|
|
3674
|
-
},
|
|
3674
|
+
}, w0 = { class: "ao-card-template__col-title" }, $0 = { class: "ao-card-template__col-label" }, M0 = { class: "ao-card-template__col-body" }, k0 = {
|
|
3675
3675
|
key: 1,
|
|
3676
3676
|
class: "ao-card-template__col ao-card-template__col--updated-by"
|
|
3677
|
-
},
|
|
3677
|
+
}, A0 = { class: "ao-card-template__col-title" }, S0 = { class: "ao-card-template__col-label" }, T0 = { class: "ao-card-template__col-body" }, E0 = /* @__PURE__ */ x({
|
|
3678
3678
|
__name: "AoCardTemplate",
|
|
3679
3679
|
props: {
|
|
3680
3680
|
id: {},
|
|
@@ -3697,34 +3697,34 @@ const d3 = { class: "ao-card-template__subitems" }, c3 = { class: "ao-card-templ
|
|
|
3697
3697
|
"onUpdate:title": t
|
|
3698
3698
|
}, t1({
|
|
3699
3699
|
subtitle: j(() => [
|
|
3700
|
-
v("ul",
|
|
3701
|
-
v("li",
|
|
3700
|
+
v("ul", d0, [
|
|
3701
|
+
v("li", c0, [
|
|
3702
3702
|
T(ce, {
|
|
3703
3703
|
name: "MountainFlagOutlineRounded",
|
|
3704
3704
|
size: "sm"
|
|
3705
3705
|
}),
|
|
3706
|
-
v("span",
|
|
3706
|
+
v("span", f0, z(s.milestones), 1)
|
|
3707
3707
|
]),
|
|
3708
|
-
v("li",
|
|
3708
|
+
v("li", v0, [
|
|
3709
3709
|
T(ce, {
|
|
3710
3710
|
name: "TaskOutlineRounded",
|
|
3711
3711
|
size: "sm"
|
|
3712
3712
|
}),
|
|
3713
|
-
v("span",
|
|
3713
|
+
v("span", p0, z(s.activities), 1)
|
|
3714
3714
|
])
|
|
3715
3715
|
])
|
|
3716
3716
|
]),
|
|
3717
3717
|
default: j(() => [
|
|
3718
|
-
v("div",
|
|
3719
|
-
v("div",
|
|
3720
|
-
v("div",
|
|
3718
|
+
v("div", h0, [
|
|
3719
|
+
v("div", m0, [
|
|
3720
|
+
v("div", C0, [
|
|
3721
3721
|
T(ce, {
|
|
3722
3722
|
name: "WaterfallChartRounded",
|
|
3723
3723
|
size: "sm"
|
|
3724
3724
|
}),
|
|
3725
|
-
v("span",
|
|
3725
|
+
v("span", _0, z(s.$t("template.phases.title")), 1)
|
|
3726
3726
|
]),
|
|
3727
|
-
s.phases ? (c(), h("ul",
|
|
3727
|
+
s.phases ? (c(), h("ul", g0, [
|
|
3728
3728
|
(c(!0), h(fe, null, be(s.phases, (o) => (c(), N(E1, {
|
|
3729
3729
|
key: o.id,
|
|
3730
3730
|
label: o.name || o.id,
|
|
@@ -3740,20 +3740,20 @@ const d3 = { class: "ao-card-template__subitems" }, c3 = { class: "ao-card-templ
|
|
|
3740
3740
|
s.updatedBy || s.updatedAt ? {
|
|
3741
3741
|
name: "footer",
|
|
3742
3742
|
fn: j(() => [
|
|
3743
|
-
v("div",
|
|
3744
|
-
s.updatedAt ? (c(), h("div",
|
|
3745
|
-
v("div",
|
|
3746
|
-
v("span", $
|
|
3743
|
+
v("div", b0, [
|
|
3744
|
+
s.updatedAt ? (c(), h("div", y0, [
|
|
3745
|
+
v("div", w0, [
|
|
3746
|
+
v("span", $0, z(s.$t("template.updatedAt.label")), 1)
|
|
3747
3747
|
]),
|
|
3748
|
-
v("div",
|
|
3748
|
+
v("div", M0, [
|
|
3749
3749
|
v("span", null, z(s.updatedAt), 1)
|
|
3750
3750
|
])
|
|
3751
3751
|
])) : k("", !0),
|
|
3752
|
-
s.updatedBy ? (c(), h("div",
|
|
3753
|
-
v("div",
|
|
3754
|
-
v("span",
|
|
3752
|
+
s.updatedBy ? (c(), h("div", k0, [
|
|
3753
|
+
v("div", A0, [
|
|
3754
|
+
v("span", S0, z(s.$t("template.updatedBy.label")), 1)
|
|
3755
3755
|
]),
|
|
3756
|
-
v("div",
|
|
3756
|
+
v("div", T0, [
|
|
3757
3757
|
T(_t, { "user-name": s.updatedBy }, null, 8, ["user-name"])
|
|
3758
3758
|
])
|
|
3759
3759
|
])) : k("", !0)
|
|
@@ -3764,7 +3764,7 @@ const d3 = { class: "ao-card-template__subitems" }, c3 = { class: "ao-card-templ
|
|
|
3764
3764
|
]), 1032, ["id", "title"]));
|
|
3765
3765
|
}
|
|
3766
3766
|
});
|
|
3767
|
-
const
|
|
3767
|
+
const I0 = { class: "ao-page-header" }, O0 = { class: "ao-page-header-main" }, L0 = {
|
|
3768
3768
|
key: 0,
|
|
3769
3769
|
class: "ao-page-header-secondary"
|
|
3770
3770
|
}, r1 = /* @__PURE__ */ x({
|
|
@@ -3774,8 +3774,8 @@ const I3 = { class: "ao-page-header" }, O3 = { class: "ao-page-header-main" }, L
|
|
|
3774
3774
|
},
|
|
3775
3775
|
emits: ["goBack"],
|
|
3776
3776
|
setup(a) {
|
|
3777
|
-
return (e, t) => (c(), h("header",
|
|
3778
|
-
v("div",
|
|
3777
|
+
return (e, t) => (c(), h("header", I0, [
|
|
3778
|
+
v("div", O0, [
|
|
3779
3779
|
e.canGoBack ? (c(), N(de, {
|
|
3780
3780
|
key: 0,
|
|
3781
3781
|
"icon-name": "ArrowBackRounded",
|
|
@@ -3784,13 +3784,13 @@ const I3 = { class: "ao-page-header" }, O3 = { class: "ao-page-header-main" }, L
|
|
|
3784
3784
|
})) : k("", !0),
|
|
3785
3785
|
te(e.$slots, "primary")
|
|
3786
3786
|
]),
|
|
3787
|
-
e.$slots.secondary ? (c(), h("div",
|
|
3787
|
+
e.$slots.secondary ? (c(), h("div", L0, [
|
|
3788
3788
|
te(e.$slots, "secondary")
|
|
3789
3789
|
])) : k("", !0)
|
|
3790
3790
|
]));
|
|
3791
3791
|
}
|
|
3792
3792
|
});
|
|
3793
|
-
const
|
|
3793
|
+
const V0 = ["type"], D0 = {
|
|
3794
3794
|
key: 0,
|
|
3795
3795
|
class: "ao-button-card__label"
|
|
3796
3796
|
}, Qe = /* @__PURE__ */ x({
|
|
@@ -3817,7 +3817,7 @@ const V3 = ["type"], D3 = {
|
|
|
3817
3817
|
])
|
|
3818
3818
|
}, [
|
|
3819
3819
|
te(n.$slots, "default", {}, () => [
|
|
3820
|
-
n.label ? (c(), h("span",
|
|
3820
|
+
n.label ? (c(), h("span", D0, z(n.label), 1)) : k("", !0)
|
|
3821
3821
|
]),
|
|
3822
3822
|
s.value ? (c(), N(ce, {
|
|
3823
3823
|
key: 0,
|
|
@@ -3825,13 +3825,13 @@ const V3 = ["type"], D3 = {
|
|
|
3825
3825
|
class: "ao-button-card__icon",
|
|
3826
3826
|
size: t.value
|
|
3827
3827
|
}, null, 8, ["name", "size"])) : k("", !0)
|
|
3828
|
-
], 10,
|
|
3828
|
+
], 10, V0));
|
|
3829
3829
|
}
|
|
3830
3830
|
});
|
|
3831
|
-
const
|
|
3831
|
+
const H0 = { class: "ao-card-template-item__footer" }, P0 = {
|
|
3832
3832
|
key: 0,
|
|
3833
3833
|
class: "ao-card-template-item__subitem"
|
|
3834
|
-
},
|
|
3834
|
+
}, B0 = { class: "ao-card-template-item__subitem-number" }, N0 = { class: "ao-card-template-item__secondary" }, O1 = /* @__PURE__ */ x({
|
|
3835
3835
|
__name: "AoCardTemplateItem",
|
|
3836
3836
|
props: {
|
|
3837
3837
|
milestones: {},
|
|
@@ -3853,20 +3853,20 @@ const H3 = { class: "ao-card-template-item__footer" }, P3 = {
|
|
|
3853
3853
|
};
|
|
3854
3854
|
return (i, l) => (c(), N(fa, { "onUpdate:title": t }, {
|
|
3855
3855
|
footer: j(() => [
|
|
3856
|
-
v("ul",
|
|
3856
|
+
v("ul", H0, [
|
|
3857
3857
|
(c(), h(fe, null, be(s, (r) => (c(), h(fe, { key: r }, [
|
|
3858
|
-
i.$props[r] ? (c(), h("li",
|
|
3858
|
+
i.$props[r] ? (c(), h("li", P0, [
|
|
3859
3859
|
T(ce, {
|
|
3860
3860
|
name: n[r],
|
|
3861
3861
|
size: "sm"
|
|
3862
3862
|
}, null, 8, ["name"]),
|
|
3863
|
-
v("span",
|
|
3863
|
+
v("span", B0, z(i.$props[r]), 1)
|
|
3864
3864
|
])) : k("", !0)
|
|
3865
3865
|
], 64))), 64))
|
|
3866
3866
|
])
|
|
3867
3867
|
]),
|
|
3868
3868
|
secondary: j(() => [
|
|
3869
|
-
v("div",
|
|
3869
|
+
v("div", N0, [
|
|
3870
3870
|
T(de, {
|
|
3871
3871
|
"icon-name": "DeleteOutlineRounded",
|
|
3872
3872
|
variant: "ghost",
|
|
@@ -3880,7 +3880,7 @@ const H3 = { class: "ao-card-template-item__footer" }, P3 = {
|
|
|
3880
3880
|
}));
|
|
3881
3881
|
}
|
|
3882
3882
|
});
|
|
3883
|
-
const
|
|
3883
|
+
const R0 = /* @__PURE__ */ x({
|
|
3884
3884
|
__name: "AoCardTemplateItemPhase",
|
|
3885
3885
|
props: {
|
|
3886
3886
|
id: {},
|
|
@@ -3904,7 +3904,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3904
3904
|
_: 3
|
|
3905
3905
|
}, 16, ["id", "title", "activities", "milestones"]));
|
|
3906
3906
|
}
|
|
3907
|
-
}),
|
|
3907
|
+
}), U0 = /* @__PURE__ */ x({
|
|
3908
3908
|
__name: "AoCardTemplateItemMilestone",
|
|
3909
3909
|
props: {
|
|
3910
3910
|
activities: {}
|
|
@@ -3921,7 +3921,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3921
3921
|
_: 3
|
|
3922
3922
|
}, 8, ["activities"]));
|
|
3923
3923
|
}
|
|
3924
|
-
}),
|
|
3924
|
+
}), j0 = { class: "ao-list__footer" }, Z0 = /* @__PURE__ */ x({
|
|
3925
3925
|
__name: "AoTemplateDetailsMilestones",
|
|
3926
3926
|
props: {
|
|
3927
3927
|
templateId: {},
|
|
@@ -3962,7 +3962,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3962
3962
|
})
|
|
3963
3963
|
]),
|
|
3964
3964
|
item: j(({ element: d }) => [
|
|
3965
|
-
(c(), N(
|
|
3965
|
+
(c(), N(U0, {
|
|
3966
3966
|
id: d.id,
|
|
3967
3967
|
key: d.id,
|
|
3968
3968
|
title: d.name,
|
|
@@ -3979,7 +3979,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3979
3979
|
}, null, 8, ["id", "title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
3980
3980
|
]),
|
|
3981
3981
|
footer: j(() => [
|
|
3982
|
-
v("div",
|
|
3982
|
+
v("div", j0, [
|
|
3983
3983
|
T(Qe, {
|
|
3984
3984
|
"icon-name": "AddBoxOutlineRounded",
|
|
3985
3985
|
label: l.$t("template.milestones.add"),
|
|
@@ -3990,7 +3990,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
3990
3990
|
_: 1
|
|
3991
3991
|
}, 8, ["model-value", "title"])) : k("", !0);
|
|
3992
3992
|
}
|
|
3993
|
-
}),
|
|
3993
|
+
}), F0 = /* @__PURE__ */ x({
|
|
3994
3994
|
__name: "AoCardTemplateItemActivity",
|
|
3995
3995
|
props: {
|
|
3996
3996
|
name: {},
|
|
@@ -4008,7 +4008,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4008
4008
|
_: 3
|
|
4009
4009
|
}, 8, ["tasks"]));
|
|
4010
4010
|
}
|
|
4011
|
-
}),
|
|
4011
|
+
}), q0 = { class: "ao-list__footer" }, W0 = /* @__PURE__ */ x({
|
|
4012
4012
|
__name: "AoTemplateDetailsActivities",
|
|
4013
4013
|
props: {
|
|
4014
4014
|
templateId: {},
|
|
@@ -4052,7 +4052,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4052
4052
|
})
|
|
4053
4053
|
]),
|
|
4054
4054
|
item: j(({ element: d }) => [
|
|
4055
|
-
(c(), N(
|
|
4055
|
+
(c(), N(F0, {
|
|
4056
4056
|
id: d.id,
|
|
4057
4057
|
key: d.id,
|
|
4058
4058
|
title: d.name,
|
|
@@ -4065,7 +4065,7 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4065
4065
|
}, null, 8, ["id", "title", "tasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
4066
4066
|
]),
|
|
4067
4067
|
footer: j(() => [
|
|
4068
|
-
v("div",
|
|
4068
|
+
v("div", q0, [
|
|
4069
4069
|
T(Qe, {
|
|
4070
4070
|
"icon-name": "AddBoxOutlineRounded",
|
|
4071
4071
|
label: l.$t("template.activities.add"),
|
|
@@ -4076,10 +4076,10 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4076
4076
|
_: 1
|
|
4077
4077
|
}, 8, ["model-value", "title"])) : k("", !0);
|
|
4078
4078
|
}
|
|
4079
|
-
}),
|
|
4079
|
+
}), z0 = { class: "ao-modal" }, Y0 = { class: "ao-modal__header" }, K0 = { class: "ao-modal__header-meta" }, G0 = {
|
|
4080
4080
|
key: 0,
|
|
4081
4081
|
class: "ao-modal__title-group"
|
|
4082
|
-
},
|
|
4082
|
+
}, x0 = { class: "ao-modal__body" }, X0 = {
|
|
4083
4083
|
key: 0,
|
|
4084
4084
|
class: "ao-modal__footer"
|
|
4085
4085
|
}, L1 = /* @__PURE__ */ x({
|
|
@@ -4096,9 +4096,9 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4096
4096
|
class: "ao-modal__backdrop",
|
|
4097
4097
|
onClick: t[0] || (t[0] = (s) => e.$emit("close"))
|
|
4098
4098
|
}),
|
|
4099
|
-
v("div",
|
|
4100
|
-
v("div",
|
|
4101
|
-
v("div",
|
|
4099
|
+
v("div", z0, [
|
|
4100
|
+
v("div", Y0, [
|
|
4101
|
+
v("div", K0, [
|
|
4102
4102
|
T(de, {
|
|
4103
4103
|
"icon-name": "CloseRounded",
|
|
4104
4104
|
variant: "ghost",
|
|
@@ -4106,14 +4106,14 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4106
4106
|
onClick: t[1] || (t[1] = (s) => e.$emit("close"))
|
|
4107
4107
|
})
|
|
4108
4108
|
]),
|
|
4109
|
-
e.$slots.header ? (c(), h("header",
|
|
4109
|
+
e.$slots.header ? (c(), h("header", G0, [
|
|
4110
4110
|
te(e.$slots, "header")
|
|
4111
4111
|
])) : k("", !0)
|
|
4112
4112
|
]),
|
|
4113
|
-
v("div",
|
|
4113
|
+
v("div", x0, [
|
|
4114
4114
|
te(e.$slots, "default")
|
|
4115
4115
|
]),
|
|
4116
|
-
e.$slots.footer ? (c(), h("footer",
|
|
4116
|
+
e.$slots.footer ? (c(), h("footer", X0, [
|
|
4117
4117
|
te(e.$slots, "footer")
|
|
4118
4118
|
])) : k("", !0)
|
|
4119
4119
|
])
|
|
@@ -4123,12 +4123,12 @@ const R3 = /* @__PURE__ */ x({
|
|
|
4123
4123
|
const Lt = Math.min, ke = Math.max, xt = Math.round, zt = Math.floor, Ge = (a) => ({
|
|
4124
4124
|
x: a,
|
|
4125
4125
|
y: a
|
|
4126
|
-
}),
|
|
4126
|
+
}), Q0 = {
|
|
4127
4127
|
left: "right",
|
|
4128
4128
|
right: "left",
|
|
4129
4129
|
bottom: "top",
|
|
4130
4130
|
top: "bottom"
|
|
4131
|
-
},
|
|
4131
|
+
}, J0 = {
|
|
4132
4132
|
start: "end",
|
|
4133
4133
|
end: "start"
|
|
4134
4134
|
};
|
|
@@ -4141,7 +4141,7 @@ function ht(a) {
|
|
|
4141
4141
|
function u1(a) {
|
|
4142
4142
|
return a.split("-")[1];
|
|
4143
4143
|
}
|
|
4144
|
-
function
|
|
4144
|
+
function e3(a) {
|
|
4145
4145
|
return a === "x" ? "y" : "x";
|
|
4146
4146
|
}
|
|
4147
4147
|
function Aa(a) {
|
|
@@ -4151,22 +4151,22 @@ function D1(a) {
|
|
|
4151
4151
|
return ["top", "bottom"].includes(ht(a)) ? "y" : "x";
|
|
4152
4152
|
}
|
|
4153
4153
|
function Sa(a) {
|
|
4154
|
-
return
|
|
4154
|
+
return e3(D1(a));
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function t3(a, e, t) {
|
|
4157
4157
|
t === void 0 && (t = !1);
|
|
4158
4158
|
const s = u1(a), n = Sa(a), o = Aa(n);
|
|
4159
4159
|
let i = n === "x" ? s === (t ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
|
4160
4160
|
return e.reference[o] > e.floating[o] && (i = Xt(i)), [i, Xt(i)];
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function a3(a) {
|
|
4163
4163
|
const e = Xt(a);
|
|
4164
4164
|
return [S1(a), e, S1(e)];
|
|
4165
4165
|
}
|
|
4166
4166
|
function S1(a) {
|
|
4167
|
-
return a.replace(/start|end/g, (e) =>
|
|
4167
|
+
return a.replace(/start|end/g, (e) => J0[e]);
|
|
4168
4168
|
}
|
|
4169
|
-
function
|
|
4169
|
+
function n3(a, e, t) {
|
|
4170
4170
|
const s = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
|
|
4171
4171
|
switch (a) {
|
|
4172
4172
|
case "top":
|
|
@@ -4179,15 +4179,15 @@ function n0(a, e, t) {
|
|
|
4179
4179
|
return [];
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
|
-
function
|
|
4182
|
+
function s3(a, e, t, s) {
|
|
4183
4183
|
const n = u1(a);
|
|
4184
|
-
let o =
|
|
4184
|
+
let o = n3(ht(a), t === "start", s);
|
|
4185
4185
|
return n && (o = o.map((i) => i + "-" + n), e && (o = o.concat(o.map(S1)))), o;
|
|
4186
4186
|
}
|
|
4187
4187
|
function Xt(a) {
|
|
4188
|
-
return a.replace(/left|right|bottom|top/g, (e) =>
|
|
4188
|
+
return a.replace(/left|right|bottom|top/g, (e) => Q0[e]);
|
|
4189
4189
|
}
|
|
4190
|
-
function
|
|
4190
|
+
function i3(a) {
|
|
4191
4191
|
return {
|
|
4192
4192
|
top: 0,
|
|
4193
4193
|
right: 0,
|
|
@@ -4196,8 +4196,8 @@ function i0(a) {
|
|
|
4196
4196
|
...a
|
|
4197
4197
|
};
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4200
|
-
return typeof a != "number" ?
|
|
4199
|
+
function o3(a) {
|
|
4200
|
+
return typeof a != "number" ? i3(a) : {
|
|
4201
4201
|
top: a,
|
|
4202
4202
|
right: a,
|
|
4203
4203
|
bottom: a,
|
|
@@ -4261,7 +4261,7 @@ function aa(a, e, t) {
|
|
|
4261
4261
|
}
|
|
4262
4262
|
return C;
|
|
4263
4263
|
}
|
|
4264
|
-
const
|
|
4264
|
+
const l3 = async (a, e, t) => {
|
|
4265
4265
|
const {
|
|
4266
4266
|
placement: s = "bottom",
|
|
4267
4267
|
strategy: n = "absolute",
|
|
@@ -4282,7 +4282,7 @@ const l0 = async (a, e, t) => {
|
|
|
4282
4282
|
fn: _
|
|
4283
4283
|
} = l[M], {
|
|
4284
4284
|
x: g,
|
|
4285
|
-
y:
|
|
4285
|
+
y: L,
|
|
4286
4286
|
data: R,
|
|
4287
4287
|
reset: K
|
|
4288
4288
|
} = await _({
|
|
@@ -4299,7 +4299,7 @@ const l0 = async (a, e, t) => {
|
|
|
4299
4299
|
floating: e
|
|
4300
4300
|
}
|
|
4301
4301
|
});
|
|
4302
|
-
if (u = g ?? u, f =
|
|
4302
|
+
if (u = g ?? u, f = L ?? f, C = {
|
|
4303
4303
|
...C,
|
|
4304
4304
|
[S]: {
|
|
4305
4305
|
...C[S],
|
|
@@ -4341,7 +4341,7 @@ async function Ta(a, e) {
|
|
|
4341
4341
|
elementContext: f = "floating",
|
|
4342
4342
|
altBoundary: p = !1,
|
|
4343
4343
|
padding: C = 0
|
|
4344
|
-
} = V1(e, a), $ =
|
|
4344
|
+
} = V1(e, a), $ = o3(C), S = l[p ? f === "floating" ? "reference" : "floating" : f], _ = Qt(await o.getClippingRect({
|
|
4345
4345
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(S))) == null || t ? S : S.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4346
4346
|
boundary: d,
|
|
4347
4347
|
rootBoundary: u,
|
|
@@ -4350,7 +4350,7 @@ async function Ta(a, e) {
|
|
|
4350
4350
|
...i.floating,
|
|
4351
4351
|
x: s,
|
|
4352
4352
|
y: n
|
|
4353
|
-
} : i.reference,
|
|
4353
|
+
} : i.reference, L = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), R = await (o.isElement == null ? void 0 : o.isElement(L)) ? await (o.getScale == null ? void 0 : o.getScale(L)) || {
|
|
4354
4354
|
x: 1,
|
|
4355
4355
|
y: 1
|
|
4356
4356
|
} : {
|
|
@@ -4358,7 +4358,7 @@ async function Ta(a, e) {
|
|
|
4358
4358
|
y: 1
|
|
4359
4359
|
}, K = Qt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4360
4360
|
rect: g,
|
|
4361
|
-
offsetParent:
|
|
4361
|
+
offsetParent: L,
|
|
4362
4362
|
strategy: r
|
|
4363
4363
|
}) : g);
|
|
4364
4364
|
return {
|
|
@@ -4368,7 +4368,7 @@ async function Ta(a, e) {
|
|
|
4368
4368
|
right: (K.right - _.right + $.right) / R.x
|
|
4369
4369
|
};
|
|
4370
4370
|
}
|
|
4371
|
-
const
|
|
4371
|
+
const r3 = function(a) {
|
|
4372
4372
|
return a === void 0 && (a = {}), {
|
|
4373
4373
|
name: "flip",
|
|
4374
4374
|
options: a,
|
|
@@ -4392,12 +4392,12 @@ const r0 = function(a) {
|
|
|
4392
4392
|
} = V1(a, e);
|
|
4393
4393
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
4394
4394
|
return {};
|
|
4395
|
-
const _ = ht(n), g = ht(l) === l,
|
|
4396
|
-
!p && $ !== "none" && R.push(...
|
|
4395
|
+
const _ = ht(n), g = ht(l) === l, L = await (r.isRTL == null ? void 0 : r.isRTL(d.floating)), R = p || (g || !M ? [Xt(l)] : a3(l));
|
|
4396
|
+
!p && $ !== "none" && R.push(...s3(l, M, $, L));
|
|
4397
4397
|
const K = [l, ...R], D = await Ta(e, S), X = [];
|
|
4398
4398
|
let ae = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4399
4399
|
if (u && X.push(D[_]), f) {
|
|
4400
|
-
const A =
|
|
4400
|
+
const A = t3(n, i, L);
|
|
4401
4401
|
X.push(D[A[0]], D[A[1]]);
|
|
4402
4402
|
}
|
|
4403
4403
|
if (ae = [...ae, {
|
|
@@ -4439,7 +4439,7 @@ const r0 = function(a) {
|
|
|
4439
4439
|
return {};
|
|
4440
4440
|
}
|
|
4441
4441
|
};
|
|
4442
|
-
},
|
|
4442
|
+
}, u3 = function(a) {
|
|
4443
4443
|
return a === void 0 && (a = {}), {
|
|
4444
4444
|
name: "size",
|
|
4445
4445
|
options: a,
|
|
@@ -4460,22 +4460,22 @@ const r0 = function(a) {
|
|
|
4460
4460
|
let $, M;
|
|
4461
4461
|
d === "top" || d === "bottom" ? ($ = d, M = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (M = d, $ = u === "end" ? "top" : "bottom");
|
|
4462
4462
|
const S = C - r[$], _ = p - r[M], g = !e.middlewareData.shift;
|
|
4463
|
-
let
|
|
4463
|
+
let L = S, R = _;
|
|
4464
4464
|
if (f) {
|
|
4465
4465
|
const D = p - r.left - r.right;
|
|
4466
4466
|
R = u || g ? Lt(_, D) : D;
|
|
4467
4467
|
} else {
|
|
4468
4468
|
const D = C - r.top - r.bottom;
|
|
4469
|
-
|
|
4469
|
+
L = u || g ? Lt(S, D) : D;
|
|
4470
4470
|
}
|
|
4471
4471
|
if (g && !u) {
|
|
4472
4472
|
const D = ke(r.left, 0), X = ke(r.right, 0), ae = ke(r.top, 0), I = ke(r.bottom, 0);
|
|
4473
|
-
f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) :
|
|
4473
|
+
f ? R = p - 2 * (D !== 0 || X !== 0 ? D + X : ke(r.left, r.right)) : L = C - 2 * (ae !== 0 || I !== 0 ? ae + I : ke(r.top, r.bottom));
|
|
4474
4474
|
}
|
|
4475
4475
|
await i({
|
|
4476
4476
|
...e,
|
|
4477
4477
|
availableWidth: R,
|
|
4478
|
-
availableHeight:
|
|
4478
|
+
availableHeight: L
|
|
4479
4479
|
});
|
|
4480
4480
|
const K = await n.getDimensions(o.floating);
|
|
4481
4481
|
return p !== K.width || C !== K.height ? {
|
|
@@ -4518,14 +4518,14 @@ function Nt(a) {
|
|
|
4518
4518
|
} = Te(a);
|
|
4519
4519
|
return /auto|scroll|overlay|hidden|clip/.test(e + s + t) && !["inline", "contents"].includes(n);
|
|
4520
4520
|
}
|
|
4521
|
-
function
|
|
4521
|
+
function d3(a) {
|
|
4522
4522
|
return ["table", "td", "th"].includes(xe(a));
|
|
4523
4523
|
}
|
|
4524
4524
|
function H1(a) {
|
|
4525
4525
|
const e = P1(), t = Te(a);
|
|
4526
4526
|
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));
|
|
4527
4527
|
}
|
|
4528
|
-
function
|
|
4528
|
+
function c3(a) {
|
|
4529
4529
|
let e = mt(a);
|
|
4530
4530
|
for (; De(e) && !d1(e); ) {
|
|
4531
4531
|
if (H1(e))
|
|
@@ -4602,15 +4602,15 @@ function vt(a) {
|
|
|
4602
4602
|
y: l
|
|
4603
4603
|
};
|
|
4604
4604
|
}
|
|
4605
|
-
const
|
|
4605
|
+
const f3 = /* @__PURE__ */ Ge(0);
|
|
4606
4606
|
function La(a) {
|
|
4607
4607
|
const e = we(a);
|
|
4608
|
-
return !P1() || !e.visualViewport ?
|
|
4608
|
+
return !P1() || !e.visualViewport ? f3 : {
|
|
4609
4609
|
x: e.visualViewport.offsetLeft,
|
|
4610
4610
|
y: e.visualViewport.offsetTop
|
|
4611
4611
|
};
|
|
4612
4612
|
}
|
|
4613
|
-
function
|
|
4613
|
+
function v3(a, e, t) {
|
|
4614
4614
|
return e === void 0 && (e = !1), !t || e && t !== we(a) ? !1 : e;
|
|
4615
4615
|
}
|
|
4616
4616
|
function et(a, e, t, s) {
|
|
@@ -4618,14 +4618,14 @@ function et(a, e, t, s) {
|
|
|
4618
4618
|
const n = a.getBoundingClientRect(), o = B1(a);
|
|
4619
4619
|
let i = Ge(1);
|
|
4620
4620
|
e && (s ? je(s) && (i = vt(s)) : i = vt(a));
|
|
4621
|
-
const l =
|
|
4621
|
+
const l = v3(o, t, s) ? La(o) : Ge(0);
|
|
4622
4622
|
let r = (n.left + l.x) / i.x, d = (n.top + l.y) / i.y, u = n.width / i.x, f = n.height / i.y;
|
|
4623
4623
|
if (o) {
|
|
4624
4624
|
const p = we(o), C = s && je(s) ? we(s) : s;
|
|
4625
4625
|
let $ = p.frameElement;
|
|
4626
4626
|
for (; $ && s && C !== p; ) {
|
|
4627
|
-
const M = vt($), S = $.getBoundingClientRect(), _ = Te($), g = S.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x,
|
|
4628
|
-
r *= M.x, d *= M.y, u *= M.x, f *= M.y, r += g, d +=
|
|
4627
|
+
const M = vt($), S = $.getBoundingClientRect(), _ = Te($), g = S.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x, L = S.top + ($.clientTop + parseFloat(_.paddingTop)) * M.y;
|
|
4628
|
+
r *= M.x, d *= M.y, u *= M.x, f *= M.y, r += g, d += L, $ = we($).frameElement;
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
4631
|
return Qt({
|
|
@@ -4635,7 +4635,7 @@ function et(a, e, t, s) {
|
|
|
4635
4635
|
y: d
|
|
4636
4636
|
});
|
|
4637
4637
|
}
|
|
4638
|
-
function
|
|
4638
|
+
function p3(a) {
|
|
4639
4639
|
let {
|
|
4640
4640
|
rect: e,
|
|
4641
4641
|
offsetParent: t,
|
|
@@ -4660,13 +4660,13 @@ function p0(a) {
|
|
|
4660
4660
|
y: e.y * l.y - i.scrollTop * l.y + r.y
|
|
4661
4661
|
};
|
|
4662
4662
|
}
|
|
4663
|
-
function
|
|
4663
|
+
function h3(a) {
|
|
4664
4664
|
return Array.from(a.getClientRects());
|
|
4665
4665
|
}
|
|
4666
4666
|
function Va(a) {
|
|
4667
4667
|
return et(Ze(a)).left + c1(a).scrollLeft;
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4669
|
+
function m3(a) {
|
|
4670
4670
|
const e = Ze(a), t = c1(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);
|
|
4671
4671
|
let i = -t.scrollLeft + Va(a);
|
|
4672
4672
|
const l = -t.scrollTop;
|
|
@@ -4677,7 +4677,7 @@ function m0(a) {
|
|
|
4677
4677
|
y: l
|
|
4678
4678
|
};
|
|
4679
4679
|
}
|
|
4680
|
-
function
|
|
4680
|
+
function C3(a, e) {
|
|
4681
4681
|
const t = we(a), s = Ze(a), n = t.visualViewport;
|
|
4682
4682
|
let o = s.clientWidth, i = s.clientHeight, l = 0, r = 0;
|
|
4683
4683
|
if (n) {
|
|
@@ -4692,7 +4692,7 @@ function C0(a, e) {
|
|
|
4692
4692
|
y: r
|
|
4693
4693
|
};
|
|
4694
4694
|
}
|
|
4695
|
-
function
|
|
4695
|
+
function _3(a, e) {
|
|
4696
4696
|
const t = et(a, !0, e === "fixed"), s = t.top + a.clientTop, n = t.left + a.clientLeft, o = De(a) ? vt(a) : Ge(1), i = a.clientWidth * o.x, l = a.clientHeight * o.y, r = n * o.x, d = s * o.y;
|
|
4697
4697
|
return {
|
|
4698
4698
|
width: i,
|
|
@@ -4704,11 +4704,11 @@ function _0(a, e) {
|
|
|
4704
4704
|
function sa(a, e, t) {
|
|
4705
4705
|
let s;
|
|
4706
4706
|
if (e === "viewport")
|
|
4707
|
-
s =
|
|
4707
|
+
s = C3(a, t);
|
|
4708
4708
|
else if (e === "document")
|
|
4709
|
-
s =
|
|
4709
|
+
s = m3(Ze(a));
|
|
4710
4710
|
else if (je(e))
|
|
4711
|
-
s =
|
|
4711
|
+
s = _3(e, t);
|
|
4712
4712
|
else {
|
|
4713
4713
|
const n = La(a);
|
|
4714
4714
|
s = {
|
|
@@ -4723,7 +4723,7 @@ function Da(a, e) {
|
|
|
4723
4723
|
const t = mt(a);
|
|
4724
4724
|
return t === e || !je(t) || d1(t) ? !1 : Te(t).position === "fixed" || Da(t, e);
|
|
4725
4725
|
}
|
|
4726
|
-
function
|
|
4726
|
+
function g3(a, e) {
|
|
4727
4727
|
const t = e.get(a);
|
|
4728
4728
|
if (t)
|
|
4729
4729
|
return t;
|
|
@@ -4736,14 +4736,14 @@ function g0(a, e) {
|
|
|
4736
4736
|
}
|
|
4737
4737
|
return e.set(a, s), s;
|
|
4738
4738
|
}
|
|
4739
|
-
function
|
|
4739
|
+
function b3(a) {
|
|
4740
4740
|
let {
|
|
4741
4741
|
element: e,
|
|
4742
4742
|
boundary: t,
|
|
4743
4743
|
rootBoundary: s,
|
|
4744
4744
|
strategy: n
|
|
4745
4745
|
} = a;
|
|
4746
|
-
const i = [...t === "clippingAncestors" ?
|
|
4746
|
+
const i = [...t === "clippingAncestors" ? g3(e, this._c) : [].concat(t), s], l = i[0], r = i.reduce((d, u) => {
|
|
4747
4747
|
const f = sa(e, u, n);
|
|
4748
4748
|
return d.top = ke(f.top, d.top), d.right = Lt(f.right, d.right), d.bottom = Lt(f.bottom, d.bottom), d.left = ke(f.left, d.left), d;
|
|
4749
4749
|
}, sa(e, l, n));
|
|
@@ -4754,10 +4754,10 @@ function b0(a) {
|
|
|
4754
4754
|
y: r.top
|
|
4755
4755
|
};
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4757
|
+
function y3(a) {
|
|
4758
4758
|
return Oa(a);
|
|
4759
4759
|
}
|
|
4760
|
-
function
|
|
4760
|
+
function w3(a, e, t) {
|
|
4761
4761
|
const s = De(e), n = Ze(e), o = t === "fixed", i = et(a, !0, o, e);
|
|
4762
4762
|
let l = {
|
|
4763
4763
|
scrollLeft: 0,
|
|
@@ -4785,11 +4785,11 @@ function Ha(a, e) {
|
|
|
4785
4785
|
if (!De(a))
|
|
4786
4786
|
return t;
|
|
4787
4787
|
let s = ia(a, e);
|
|
4788
|
-
for (; s &&
|
|
4788
|
+
for (; s && d3(s) && Te(s).position === "static"; )
|
|
4789
4789
|
s = ia(s, e);
|
|
4790
|
-
return s && (xe(s) === "html" || xe(s) === "body" && Te(s).position === "static" && !H1(s)) ? t : s ||
|
|
4790
|
+
return s && (xe(s) === "html" || xe(s) === "body" && Te(s).position === "static" && !H1(s)) ? t : s || c3(a) || t;
|
|
4791
4791
|
}
|
|
4792
|
-
const $
|
|
4792
|
+
const $3 = async function(a) {
|
|
4793
4793
|
let {
|
|
4794
4794
|
reference: e,
|
|
4795
4795
|
floating: t,
|
|
@@ -4797,7 +4797,7 @@ const $0 = async function(a) {
|
|
|
4797
4797
|
} = a;
|
|
4798
4798
|
const n = this.getOffsetParent || Ha, o = this.getDimensions;
|
|
4799
4799
|
return {
|
|
4800
|
-
reference:
|
|
4800
|
+
reference: w3(e, await n(t), s),
|
|
4801
4801
|
floating: {
|
|
4802
4802
|
x: 0,
|
|
4803
4803
|
y: 0,
|
|
@@ -4805,22 +4805,22 @@ const $0 = async function(a) {
|
|
|
4805
4805
|
}
|
|
4806
4806
|
};
|
|
4807
4807
|
};
|
|
4808
|
-
function
|
|
4808
|
+
function M3(a) {
|
|
4809
4809
|
return Te(a).direction === "rtl";
|
|
4810
4810
|
}
|
|
4811
|
-
const
|
|
4812
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
4811
|
+
const k3 = {
|
|
4812
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: p3,
|
|
4813
4813
|
getDocumentElement: Ze,
|
|
4814
|
-
getClippingRect:
|
|
4814
|
+
getClippingRect: b3,
|
|
4815
4815
|
getOffsetParent: Ha,
|
|
4816
|
-
getElementRects: $
|
|
4817
|
-
getClientRects:
|
|
4818
|
-
getDimensions:
|
|
4816
|
+
getElementRects: $3,
|
|
4817
|
+
getClientRects: h3,
|
|
4818
|
+
getDimensions: y3,
|
|
4819
4819
|
getScale: vt,
|
|
4820
4820
|
isElement: je,
|
|
4821
|
-
isRTL:
|
|
4821
|
+
isRTL: M3
|
|
4822
4822
|
};
|
|
4823
|
-
function
|
|
4823
|
+
function A3(a, e) {
|
|
4824
4824
|
let t = null, s;
|
|
4825
4825
|
const n = Ze(a);
|
|
4826
4826
|
function o() {
|
|
@@ -4840,17 +4840,17 @@ function A0(a, e) {
|
|
|
4840
4840
|
rootMargin: -C + "px " + -$ + "px " + -M + "px " + -S + "px",
|
|
4841
4841
|
threshold: ke(0, Lt(1, r)) || 1
|
|
4842
4842
|
};
|
|
4843
|
-
let
|
|
4843
|
+
let L = !0;
|
|
4844
4844
|
function R(K) {
|
|
4845
4845
|
const D = K[0].intersectionRatio;
|
|
4846
4846
|
if (D !== r) {
|
|
4847
|
-
if (!
|
|
4847
|
+
if (!L)
|
|
4848
4848
|
return i();
|
|
4849
4849
|
D ? i(!1, D) : s = setTimeout(() => {
|
|
4850
4850
|
i(!1, 1e-7);
|
|
4851
4851
|
}, 100);
|
|
4852
4852
|
}
|
|
4853
|
-
|
|
4853
|
+
L = !1;
|
|
4854
4854
|
}
|
|
4855
4855
|
try {
|
|
4856
4856
|
t = new IntersectionObserver(R, {
|
|
@@ -4865,7 +4865,7 @@ function A0(a, e) {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
return i(!0), o;
|
|
4867
4867
|
}
|
|
4868
|
-
function
|
|
4868
|
+
function S3(a, e, t, s) {
|
|
4869
4869
|
s === void 0 && (s = {});
|
|
4870
4870
|
const {
|
|
4871
4871
|
ancestorScroll: n = !0,
|
|
@@ -4879,7 +4879,7 @@ function S0(a, e, t, s) {
|
|
|
4879
4879
|
passive: !0
|
|
4880
4880
|
}), o && _.addEventListener("resize", t);
|
|
4881
4881
|
});
|
|
4882
|
-
const f = d && l ?
|
|
4882
|
+
const f = d && l ? A3(d, t) : null;
|
|
4883
4883
|
let p = -1, C = null;
|
|
4884
4884
|
i && (C = new ResizeObserver((_) => {
|
|
4885
4885
|
let [g] = _;
|
|
@@ -4899,19 +4899,19 @@ function S0(a, e, t, s) {
|
|
|
4899
4899
|
}), f && f(), C && C.disconnect(), C = null, r && cancelAnimationFrame($);
|
|
4900
4900
|
};
|
|
4901
4901
|
}
|
|
4902
|
-
const
|
|
4902
|
+
const T3 = (a, e, t) => {
|
|
4903
4903
|
const s = /* @__PURE__ */ new Map(), n = {
|
|
4904
|
-
platform:
|
|
4904
|
+
platform: k3,
|
|
4905
4905
|
...t
|
|
4906
4906
|
}, o = {
|
|
4907
4907
|
...n.platform,
|
|
4908
4908
|
_c: s
|
|
4909
4909
|
};
|
|
4910
|
-
return
|
|
4910
|
+
return l3(a, e, {
|
|
4911
4911
|
...n,
|
|
4912
4912
|
platform: o
|
|
4913
4913
|
});
|
|
4914
|
-
},
|
|
4914
|
+
}, E3 = (a) => {
|
|
4915
4915
|
const e = J(!1), t = J(), s = J(), n = J(0);
|
|
4916
4916
|
function o() {
|
|
4917
4917
|
const f = q(a.appendTo);
|
|
@@ -4936,21 +4936,21 @@ const T0 = (a, e, t) => {
|
|
|
4936
4936
|
transform: "none",
|
|
4937
4937
|
marginTop: 0
|
|
4938
4938
|
}), i.appendChild(p), a.multiselect.value.handleFocusOut = r;
|
|
4939
|
-
const $ =
|
|
4939
|
+
const $ = S3(t.value, s.value, u);
|
|
4940
4940
|
l.value = () => {
|
|
4941
4941
|
s.value && i.contains(s.value) && i.removeChild(s.value), $();
|
|
4942
4942
|
};
|
|
4943
4943
|
}
|
|
4944
4944
|
function u() {
|
|
4945
|
-
!s.value || !t.value ||
|
|
4945
|
+
!s.value || !t.value || T3(t.value, s.value, {
|
|
4946
4946
|
strategy: "absolute",
|
|
4947
4947
|
placement: "bottom-start",
|
|
4948
4948
|
middleware: [
|
|
4949
|
-
|
|
4949
|
+
r3({
|
|
4950
4950
|
fallbackStrategy: "initialPlacement",
|
|
4951
4951
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
4952
4952
|
}),
|
|
4953
|
-
|
|
4953
|
+
u3({
|
|
4954
4954
|
apply({ availableWidth: f, availableHeight: p, elements: C, rects: $ }) {
|
|
4955
4955
|
Object.assign(C.floating.style, {
|
|
4956
4956
|
minHeight: `${n.value}px`,
|
|
@@ -4980,7 +4980,7 @@ const T0 = (a, e, t) => {
|
|
|
4980
4980
|
function Le(a) {
|
|
4981
4981
|
return [null, void 0].indexOf(a) !== -1;
|
|
4982
4982
|
}
|
|
4983
|
-
function
|
|
4983
|
+
function I3(a, e, t) {
|
|
4984
4984
|
const { object: s, valueProp: n, mode: o } = $e(a), i = at().proxy, l = t.iv, r = (f, p = !0) => {
|
|
4985
4985
|
l.value = u(f);
|
|
4986
4986
|
const C = d(f);
|
|
@@ -4990,7 +4990,7 @@ function I0(a, e, t) {
|
|
|
4990
4990
|
update: r
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function O3(a, e) {
|
|
4994
4994
|
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = J(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = w(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = w(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4995
4995
|
return {
|
|
4996
4996
|
iv: i,
|
|
@@ -5001,7 +5001,7 @@ function O0(a, e) {
|
|
|
5001
5001
|
plainValue: r
|
|
5002
5002
|
};
|
|
5003
5003
|
}
|
|
5004
|
-
function
|
|
5004
|
+
function L3(a, e, t) {
|
|
5005
5005
|
const { regex: s } = $e(a), n = at().proxy, o = t.isOpen, i = t.open, l = J(null), r = J(null), d = () => {
|
|
5006
5006
|
l.value = "";
|
|
5007
5007
|
}, u = (C) => {
|
|
@@ -5030,7 +5030,7 @@ function L0(a, e, t) {
|
|
|
5030
5030
|
handlePaste: p
|
|
5031
5031
|
};
|
|
5032
5032
|
}
|
|
5033
|
-
function
|
|
5033
|
+
function V3(a, e, t) {
|
|
5034
5034
|
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = $e(a), l = J(null), r = (u) => {
|
|
5035
5035
|
u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (l.value = u);
|
|
5036
5036
|
};
|
|
@@ -5045,16 +5045,16 @@ function V0(a, e, t) {
|
|
|
5045
5045
|
function $1(a, e = !0) {
|
|
5046
5046
|
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, "");
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function D3(a) {
|
|
5049
5049
|
return Object.prototype.toString.call(a) === "[object Object]";
|
|
5050
5050
|
}
|
|
5051
|
-
function
|
|
5051
|
+
function H3(a, e) {
|
|
5052
5052
|
const t = e.slice().sort();
|
|
5053
5053
|
return a.length === e.length && a.slice().sort().every(function(s, n) {
|
|
5054
5054
|
return s === t[n];
|
|
5055
5055
|
});
|
|
5056
5056
|
}
|
|
5057
|
-
function
|
|
5057
|
+
function P3(a, e, t) {
|
|
5058
5058
|
const {
|
|
5059
5059
|
options: s,
|
|
5060
5060
|
mode: n,
|
|
@@ -5072,7 +5072,7 @@ function P0(a, e, t) {
|
|
|
5072
5072
|
delay: S,
|
|
5073
5073
|
resolveOnLoad: _,
|
|
5074
5074
|
minChars: g,
|
|
5075
|
-
filterResults:
|
|
5075
|
+
filterResults: L,
|
|
5076
5076
|
clearOnSearch: R,
|
|
5077
5077
|
clearOnSelect: K,
|
|
5078
5078
|
valueProp: D,
|
|
@@ -5088,7 +5088,7 @@ function P0(a, e, t) {
|
|
|
5088
5088
|
infinite: le,
|
|
5089
5089
|
groupOptions: ie,
|
|
5090
5090
|
groupHideEmpty: O,
|
|
5091
|
-
groupSelect:
|
|
5091
|
+
groupSelect: V,
|
|
5092
5092
|
onCreate: W,
|
|
5093
5093
|
disabledProp: y,
|
|
5094
5094
|
searchStart: Y,
|
|
@@ -5252,7 +5252,7 @@ function P0(a, e, t) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
A.value || Ra();
|
|
5254
5254
|
}, Xa = (m) => {
|
|
5255
|
-
if (!(h1(m) || n.value === "single" || !
|
|
5255
|
+
if (!(h1(m) || n.value === "single" || !V.value)) {
|
|
5256
5256
|
switch (n.value) {
|
|
5257
5257
|
case "multiple":
|
|
5258
5258
|
case "tags":
|
|
@@ -5275,7 +5275,7 @@ function P0(a, e, t) {
|
|
|
5275
5275
|
(H) => U.value ? H.__VISIBLE__.length : H[ie.value].length
|
|
5276
5276
|
) : m.filter((H) => U.value ? H.__VISIBLE__.length : !0), _1 = (m, H = !0) => {
|
|
5277
5277
|
let se = m;
|
|
5278
|
-
if (U.value &&
|
|
5278
|
+
if (U.value && L.value) {
|
|
5279
5279
|
let ve = he.value;
|
|
5280
5280
|
ve || (ve = (yt, F4) => {
|
|
5281
5281
|
let G1 = $1(ja(yt[Oe.value]), b.value);
|
|
@@ -5285,7 +5285,7 @@ function P0(a, e, t) {
|
|
|
5285
5285
|
return l.value && H && (se = se.filter((ve) => !an(ve))), se;
|
|
5286
5286
|
}, g1 = (m) => {
|
|
5287
5287
|
let H = m;
|
|
5288
|
-
return
|
|
5288
|
+
return D3(H) && (H = Object.keys(H).map((se) => {
|
|
5289
5289
|
let ve = H[se];
|
|
5290
5290
|
return { [D.value]: se, [Oe.value]: ve, [u.value]: ve };
|
|
5291
5291
|
})), H = H.map((se) => typeof se == "object" ? se : { [D.value]: se, [Oe.value]: se, [u.value]: se }), H;
|
|
@@ -5354,7 +5354,7 @@ function P0(a, e, t) {
|
|
|
5354
5354
|
break;
|
|
5355
5355
|
case "multiple":
|
|
5356
5356
|
case "tags":
|
|
5357
|
-
|
|
5357
|
+
H3($.value ? m.map((H) => H[D.value]) : m, F.value.map((H) => H[D.value])) || Pe(Zt(m), !1);
|
|
5358
5358
|
break;
|
|
5359
5359
|
}
|
|
5360
5360
|
}, { deep: !0 }), re(s, (m, H) => {
|
|
@@ -5393,7 +5393,7 @@ function P0(a, e, t) {
|
|
|
5393
5393
|
refreshLabels: b1
|
|
5394
5394
|
};
|
|
5395
5395
|
}
|
|
5396
|
-
function
|
|
5396
|
+
function B3(a, e, t) {
|
|
5397
5397
|
const {
|
|
5398
5398
|
valueProp: s,
|
|
5399
5399
|
showOptions: n,
|
|
@@ -5404,7 +5404,7 @@ function B0(a, e, t) {
|
|
|
5404
5404
|
groupSelect: d,
|
|
5405
5405
|
disabledProp: u,
|
|
5406
5406
|
groupOptions: f
|
|
5407
|
-
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer,
|
|
5407
|
+
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, S = t.search, _ = t.pointer, g = t.setPointer, L = t.clearPointer, R = t.multiselect, K = t.isOpen, D = w(() => p.value.filter((E) => !E[u.value])), X = w(() => C.value.filter((E) => !E[u.value])), ae = w(() => r.value !== "single" && d.value), I = w(() => _.value && _.value.group), ee = w(() => Z(_.value)), b = w(() => {
|
|
5408
5408
|
const E = I.value ? _.value : (
|
|
5409
5409
|
/* istanbul ignore next */
|
|
5410
5410
|
Z(_.value)
|
|
@@ -5420,7 +5420,7 @@ function B0(a, e, t) {
|
|
|
5420
5420
|
}), le = w(() => {
|
|
5421
5421
|
const E = Z(_.value).__VISIBLE__.filter((U) => !U[u.value]);
|
|
5422
5422
|
return E[E.map((U) => U[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5423
|
-
}), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]),
|
|
5423
|
+
}), ie = w(() => [...b.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), O = w(() => [...P.value.__VISIBLE__.filter((E) => !E[u.value])].slice(-1)[0]), V = (E) => _.value && (!E.group && _.value[s.value] === E[s.value] || E.group !== void 0 && _.value[i.value] === E[i.value]) ? !0 : void 0, W = () => {
|
|
5424
5424
|
g(D.value[0] || null);
|
|
5425
5425
|
}, y = () => {
|
|
5426
5426
|
!_.value || _.value[u.value] === !0 || (I.value ? M(_.value) : $(_.value));
|
|
@@ -5461,7 +5461,7 @@ function B0(a, e, t) {
|
|
|
5461
5461
|
l.value && (U = I.value ? E.parentElement.parentElement.parentElement : E.parentElement.parentElement.parentElement.parentElement), E.offsetTop + E.offsetHeight > U.clientHeight + U.scrollTop && (U.scrollTop = E.offsetTop + E.offsetHeight - U.clientHeight), E.offsetTop < U.scrollTop && (U.scrollTop = E.offsetTop);
|
|
5462
5462
|
};
|
|
5463
5463
|
return re(S, (E) => {
|
|
5464
|
-
o.value && (E.length && n.value ? W() :
|
|
5464
|
+
o.value && (E.length && n.value ? W() : L());
|
|
5465
5465
|
}), re(K, (E) => {
|
|
5466
5466
|
if (E) {
|
|
5467
5467
|
let U = R.value.querySelectorAll("[data-selected]")[0];
|
|
@@ -5475,14 +5475,14 @@ function B0(a, e, t) {
|
|
|
5475
5475
|
}), {
|
|
5476
5476
|
pointer: _,
|
|
5477
5477
|
canPointGroups: ae,
|
|
5478
|
-
isPointed:
|
|
5478
|
+
isPointed: V,
|
|
5479
5479
|
setPointerFirst: W,
|
|
5480
5480
|
selectPointer: y,
|
|
5481
5481
|
forwardPointer: Y,
|
|
5482
5482
|
backwardPointer: he
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
|
-
function
|
|
5485
|
+
function N3(a, e, t) {
|
|
5486
5486
|
const { disabled: s } = $e(a), n = at().proxy, o = J(!1);
|
|
5487
5487
|
return {
|
|
5488
5488
|
isOpen: o,
|
|
@@ -5494,12 +5494,12 @@ function N0(a, e, t) {
|
|
|
5494
5494
|
}
|
|
5495
5495
|
};
|
|
5496
5496
|
}
|
|
5497
|
-
function
|
|
5497
|
+
function R3(a, e, t) {
|
|
5498
5498
|
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, d = t.clearSearch, u = t.isOpen, f = J(null), p = J(null), C = J(null), $ = J(!1), M = J(!1), S = w(() => s.value || n.value ? -1 : 0), _ = () => {
|
|
5499
5499
|
s.value && i.value.blur(), p.value.blur();
|
|
5500
5500
|
}, g = () => {
|
|
5501
5501
|
s.value && !n.value && i.value.focus();
|
|
5502
|
-
},
|
|
5502
|
+
}, L = (I = !0) => {
|
|
5503
5503
|
n.value || ($.value = !0, I && l());
|
|
5504
5504
|
}, R = () => {
|
|
5505
5505
|
$.value = !1, setTimeout(() => {
|
|
@@ -5515,10 +5515,10 @@ function R0(a, e, t) {
|
|
|
5515
5515
|
mouseClicked: M,
|
|
5516
5516
|
blur: _,
|
|
5517
5517
|
focus: g,
|
|
5518
|
-
activate:
|
|
5518
|
+
activate: L,
|
|
5519
5519
|
deactivate: R,
|
|
5520
5520
|
handleFocusIn: (I) => {
|
|
5521
|
-
I.target.closest("[data-tags]") && I.target.nodeName !== "INPUT" || I.target.closest("[data-clear]") ||
|
|
5521
|
+
I.target.closest("[data-tags]") && I.target.nodeName !== "INPUT" || I.target.closest("[data-clear]") || L(M.value);
|
|
5522
5522
|
},
|
|
5523
5523
|
handleFocusOut: () => {
|
|
5524
5524
|
R();
|
|
@@ -5529,13 +5529,13 @@ function R0(a, e, t) {
|
|
|
5529
5529
|
handleMousedown: (I) => {
|
|
5530
5530
|
M.value = !0, u.value && (I.target.isEqualNode(p.value) || I.target.isEqualNode(C.value)) ? setTimeout(() => {
|
|
5531
5531
|
R();
|
|
5532
|
-
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value &&
|
|
5532
|
+
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value && L(), setTimeout(() => {
|
|
5533
5533
|
M.value = !1;
|
|
5534
5534
|
}, 0);
|
|
5535
5535
|
}
|
|
5536
5536
|
};
|
|
5537
5537
|
}
|
|
5538
|
-
function
|
|
5538
|
+
function U3(a, e, t) {
|
|
5539
5539
|
const {
|
|
5540
5540
|
mode: s,
|
|
5541
5541
|
addTagOn: n,
|
|
@@ -5548,26 +5548,26 @@ function U0(a, e, t) {
|
|
|
5548
5548
|
createTag: f,
|
|
5549
5549
|
createOption: p,
|
|
5550
5550
|
reverse: C
|
|
5551
|
-
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer,
|
|
5552
|
-
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(A.value[A.value.map((
|
|
5553
|
-
}, le = (
|
|
5554
|
-
let W =
|
|
5555
|
-
for (; W >= 0 && (
|
|
5551
|
+
} = $e(a), $ = at().proxy, M = t.iv, S = t.update, _ = t.search, g = t.setPointer, L = t.selectPointer, R = t.backwardPointer, K = t.forwardPointer, D = t.multiselect, X = t.wrapper, ae = t.tags, I = t.isOpen, ee = t.open, b = t.blur, A = t.fo, P = w(() => f.value || p.value || !1), ue = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ne = () => {
|
|
5552
|
+
s.value === "tags" && !l.value && P.value && i.value && !d.value && g(A.value[A.value.map((V) => V[r.value]).indexOf(_.value)]);
|
|
5553
|
+
}, le = (V) => {
|
|
5554
|
+
let W = V.length - 1;
|
|
5555
|
+
for (; W >= 0 && (V[W].remove === !1 || V[W].disabled); )
|
|
5556
5556
|
W--;
|
|
5557
|
-
return W < 0 ||
|
|
5557
|
+
return W < 0 || V.splice(W, 1), V;
|
|
5558
5558
|
};
|
|
5559
5559
|
return {
|
|
5560
|
-
handleKeydown: (
|
|
5561
|
-
e.emit("keydown",
|
|
5560
|
+
handleKeydown: (V) => {
|
|
5561
|
+
e.emit("keydown", V, $);
|
|
5562
5562
|
let W, y;
|
|
5563
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(
|
|
5563
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(V.key) !== -1 && s.value === "tags" && (W = [...D.value.querySelectorAll("[data-tags] > *")].filter((Y) => Y !== ae.value), y = W.findIndex((Y) => Y === document.activeElement)), V.key) {
|
|
5564
5564
|
case "Backspace":
|
|
5565
5565
|
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5566
5566
|
return;
|
|
5567
5567
|
S(le([...M.value]));
|
|
5568
5568
|
break;
|
|
5569
5569
|
case "Enter":
|
|
5570
|
-
if (
|
|
5570
|
+
if (V.preventDefault(), V.keyCode === 229)
|
|
5571
5571
|
return;
|
|
5572
5572
|
if (y !== -1 && y !== void 0) {
|
|
5573
5573
|
S([...M.value].filter((Y, he) => he !== y)), y === W.length - 1 && (W.length - 1 ? W[W.length - 2].focus() : i.value ? ae.value.querySelector("input").focus() : X.value.focus());
|
|
@@ -5575,58 +5575,58 @@ function U0(a, e, t) {
|
|
|
5575
5575
|
}
|
|
5576
5576
|
if (ue.value.indexOf("enter") === -1 && P.value)
|
|
5577
5577
|
return;
|
|
5578
|
-
ne(),
|
|
5578
|
+
ne(), L();
|
|
5579
5579
|
break;
|
|
5580
5580
|
case " ":
|
|
5581
5581
|
if (!P.value && !i.value) {
|
|
5582
|
-
|
|
5582
|
+
V.preventDefault(), ne(), L();
|
|
5583
5583
|
return;
|
|
5584
5584
|
}
|
|
5585
5585
|
if (!P.value)
|
|
5586
5586
|
return !1;
|
|
5587
5587
|
if (ue.value.indexOf("space") === -1 && P.value)
|
|
5588
5588
|
return;
|
|
5589
|
-
|
|
5589
|
+
V.preventDefault(), ne(), L();
|
|
5590
5590
|
break;
|
|
5591
5591
|
case "Tab":
|
|
5592
5592
|
case ";":
|
|
5593
5593
|
case ",":
|
|
5594
|
-
if (ue.value.indexOf(
|
|
5594
|
+
if (ue.value.indexOf(V.key.toLowerCase()) === -1 || !P.value)
|
|
5595
5595
|
return;
|
|
5596
|
-
ne(),
|
|
5596
|
+
ne(), L(), V.preventDefault();
|
|
5597
5597
|
break;
|
|
5598
5598
|
case "Escape":
|
|
5599
5599
|
b();
|
|
5600
5600
|
break;
|
|
5601
5601
|
case "ArrowUp":
|
|
5602
|
-
if (
|
|
5602
|
+
if (V.preventDefault(), !l.value)
|
|
5603
5603
|
return;
|
|
5604
5604
|
I.value || ee(), R();
|
|
5605
5605
|
break;
|
|
5606
5606
|
case "ArrowDown":
|
|
5607
|
-
if (
|
|
5607
|
+
if (V.preventDefault(), !l.value)
|
|
5608
5608
|
return;
|
|
5609
5609
|
I.value || ee(), K();
|
|
5610
5610
|
break;
|
|
5611
5611
|
case "ArrowLeft":
|
|
5612
|
-
if (i.value && ae.value && ae.value.querySelector("input").selectionStart ||
|
|
5612
|
+
if (i.value && ae.value && ae.value.querySelector("input").selectionStart || V.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5613
5613
|
return;
|
|
5614
|
-
|
|
5614
|
+
V.preventDefault(), y === -1 ? W[W.length - 1].focus() : y > 0 && W[y - 1].focus();
|
|
5615
5615
|
break;
|
|
5616
5616
|
case "ArrowRight":
|
|
5617
|
-
if (y === -1 ||
|
|
5617
|
+
if (y === -1 || V.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5618
5618
|
return;
|
|
5619
|
-
|
|
5619
|
+
V.preventDefault(), W.length > y + 1 ? W[y + 1].focus() : i.value ? ae.value.querySelector("input").focus() : i.value || X.value.focus();
|
|
5620
5620
|
break;
|
|
5621
5621
|
}
|
|
5622
5622
|
},
|
|
5623
|
-
handleKeyup: (
|
|
5624
|
-
e.emit("keyup",
|
|
5623
|
+
handleKeyup: (V) => {
|
|
5624
|
+
e.emit("keyup", V, $);
|
|
5625
5625
|
},
|
|
5626
5626
|
preparePointer: ne
|
|
5627
5627
|
};
|
|
5628
5628
|
}
|
|
5629
|
-
function
|
|
5629
|
+
function j3(a, e, t) {
|
|
5630
5630
|
const {
|
|
5631
5631
|
classes: s,
|
|
5632
5632
|
disabled: n,
|
|
@@ -5715,14 +5715,14 @@ function j0(a, e, t) {
|
|
|
5715
5715
|
dropdown: [g.dropdown].concat(o.value === "top" ? g.dropdownTop : []).concat(!l.value || !i.value || !S.value ? g.dropdownHidden : []),
|
|
5716
5716
|
options: [g.options].concat(o.value === "top" ? g.optionsTop : []),
|
|
5717
5717
|
group: g.group,
|
|
5718
|
-
groupLabel: (
|
|
5718
|
+
groupLabel: (L) => {
|
|
5719
5719
|
let R = [g.groupLabel];
|
|
5720
|
-
return r(
|
|
5720
|
+
return r(L) ? R.push(d(L) ? g.groupLabelSelectedPointed : g.groupLabelPointed) : d(L) && p.value ? R.push(u(L) ? g.groupLabelSelectedDisabled : g.groupLabelSelected) : u(L) && R.push(g.groupLabelDisabled), p.value && R.push(g.groupLabelPointable), R;
|
|
5721
5721
|
},
|
|
5722
5722
|
groupOptions: g.groupOptions,
|
|
5723
|
-
option: (
|
|
5723
|
+
option: (L, R) => {
|
|
5724
5724
|
let K = [g.option];
|
|
5725
|
-
return r(
|
|
5725
|
+
return r(L) ? K.push(d(L) ? g.optionSelectedPointed : g.optionPointed) : d(L) ? K.push(u(L) ? g.optionSelectedDisabled : g.optionSelected) : (u(L) || R && u(R)) && K.push(g.optionDisabled), K;
|
|
5726
5726
|
},
|
|
5727
5727
|
noOptions: g.noOptions,
|
|
5728
5728
|
noResults: g.noResults,
|
|
@@ -5733,16 +5733,16 @@ function j0(a, e, t) {
|
|
|
5733
5733
|
showDropdown: S
|
|
5734
5734
|
};
|
|
5735
5735
|
}
|
|
5736
|
-
function
|
|
5736
|
+
function Z3(a, e, t) {
|
|
5737
5737
|
const {
|
|
5738
5738
|
limit: s,
|
|
5739
5739
|
infinite: n
|
|
5740
5740
|
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, d = t.eo, u = J(null), f = J(null), p = w(() => i.value < r.value.length), C = (M) => {
|
|
5741
5741
|
const { isIntersecting: S, target: _ } = M[0];
|
|
5742
5742
|
if (S) {
|
|
5743
|
-
const g = _.offsetParent,
|
|
5743
|
+
const g = _.offsetParent, L = g.scrollTop;
|
|
5744
5744
|
i.value += s.value == -1 ? 10 : s.value, Ee(() => {
|
|
5745
|
-
g.scrollTop =
|
|
5745
|
+
g.scrollTop = L;
|
|
5746
5746
|
});
|
|
5747
5747
|
}
|
|
5748
5748
|
}, $ = () => {
|
|
@@ -5761,7 +5761,7 @@ function Z0(a, e, t) {
|
|
|
5761
5761
|
infiniteLoader: f
|
|
5762
5762
|
};
|
|
5763
5763
|
}
|
|
5764
|
-
function
|
|
5764
|
+
function F3(a, e, t) {
|
|
5765
5765
|
const {
|
|
5766
5766
|
placeholder: s,
|
|
5767
5767
|
id: n,
|
|
@@ -5781,7 +5781,7 @@ function F0(a, e, t) {
|
|
|
5781
5781
|
let A = [];
|
|
5782
5782
|
if (n && n.value && A.push(n.value), f.value)
|
|
5783
5783
|
return A.push(f.value.group ? "multiselect-group" : "multiselect-option"), A.push(f.value.group ? f.value.index : f.value[o.value]), A.join("-");
|
|
5784
|
-
}),
|
|
5784
|
+
}), L = w(() => s.value), R = w(() => l.value !== "single"), K = w(() => {
|
|
5785
5785
|
let A = "";
|
|
5786
5786
|
return l.value === "single" && C.value && (A += p.value[i.value]), l.value === "multiple" && C.value && (A += $.value), l.value === "tags" && C.value && (A += p.value.map((P) => P[i.value]).join(", ")), A;
|
|
5787
5787
|
}), D = w(() => {
|
|
@@ -5810,7 +5810,7 @@ function F0(a, e, t) {
|
|
|
5810
5810
|
ariaLabel: K,
|
|
5811
5811
|
ariaAssist: S,
|
|
5812
5812
|
ariaControls: _,
|
|
5813
|
-
ariaPlaceholder:
|
|
5813
|
+
ariaPlaceholder: L,
|
|
5814
5814
|
ariaMultiselectable: R,
|
|
5815
5815
|
ariaActiveDescendant: g,
|
|
5816
5816
|
ariaOptionId: X,
|
|
@@ -5820,7 +5820,7 @@ function F0(a, e, t) {
|
|
|
5820
5820
|
ariaTagLabel: b
|
|
5821
5821
|
};
|
|
5822
5822
|
}
|
|
5823
|
-
function
|
|
5823
|
+
function q3(a, e, t) {
|
|
5824
5824
|
const {
|
|
5825
5825
|
locale: s,
|
|
5826
5826
|
fallbackLocale: n
|
|
@@ -5829,7 +5829,7 @@ function q0(a, e, t) {
|
|
|
5829
5829
|
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]] : ""
|
|
5830
5830
|
};
|
|
5831
5831
|
}
|
|
5832
|
-
function
|
|
5832
|
+
function W3(a, e, t, s = {}) {
|
|
5833
5833
|
return t.forEach((n) => {
|
|
5834
5834
|
n && (s = {
|
|
5835
5835
|
...s,
|
|
@@ -6173,24 +6173,24 @@ var ze = {
|
|
|
6173
6173
|
}
|
|
6174
6174
|
},
|
|
6175
6175
|
setup(a, e) {
|
|
6176
|
-
return
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6176
|
+
return W3(a, e, [
|
|
6177
|
+
q3,
|
|
6178
|
+
O3,
|
|
6179
|
+
V3,
|
|
6180
|
+
N3,
|
|
6181
|
+
L3,
|
|
6182
|
+
I3,
|
|
6183
|
+
R3,
|
|
6184
|
+
P3,
|
|
6185
|
+
Z3,
|
|
6186
|
+
B3,
|
|
6187
|
+
U3,
|
|
6188
|
+
j3,
|
|
6189
|
+
F3
|
|
6190
6190
|
]);
|
|
6191
6191
|
}
|
|
6192
6192
|
};
|
|
6193
|
-
const
|
|
6193
|
+
const z3 = ["id", "dir"], Y3 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], K3 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], G3 = ["onKeyup", "aria-label"], x3 = ["onClick"], X3 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], Q3 = ["innerHTML"], J3 = ["id"], e5 = ["id", "aria-label", "aria-selected"], t5 = ["data-pointed", "onMouseenter", "onClick"], a5 = ["innerHTML"], n5 = ["aria-label"], s5 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], i5 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], o5 = ["innerHTML"], l5 = ["innerHTML"], r5 = ["value"], u5 = ["name", "value"], d5 = ["name", "value"], c5 = ["id"];
|
|
6194
6194
|
function f5(a, e, t, s, n, o) {
|
|
6195
6195
|
return c(), h("div", {
|
|
6196
6196
|
ref: "multiselect",
|
|
@@ -6236,7 +6236,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6236
6236
|
}, {
|
|
6237
6237
|
...t.attrs,
|
|
6238
6238
|
...a.arias
|
|
6239
|
-
}), null, 16,
|
|
6239
|
+
}), null, 16, K3)) : k("v-if", !0),
|
|
6240
6240
|
k(" Tags (with search) "),
|
|
6241
6241
|
t.mode == "tags" ? (c(), h(
|
|
6242
6242
|
"div",
|
|
@@ -6283,8 +6283,8 @@ function f5(a, e, t, s, n, o) {
|
|
|
6283
6283
|
2
|
|
6284
6284
|
/* CLASS */
|
|
6285
6285
|
)
|
|
6286
|
-
], 10,
|
|
6287
|
-
], 42,
|
|
6286
|
+
], 10, x3)) : k("v-if", !0)
|
|
6287
|
+
], 42, G3))
|
|
6288
6288
|
])),
|
|
6289
6289
|
256
|
|
6290
6290
|
/* UNKEYED_FRAGMENT */
|
|
@@ -6328,7 +6328,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6328
6328
|
}, {
|
|
6329
6329
|
...t.attrs,
|
|
6330
6330
|
...a.arias
|
|
6331
|
-
}), null, 16,
|
|
6331
|
+
}), null, 16, X3)) : k("v-if", !0)
|
|
6332
6332
|
],
|
|
6333
6333
|
2
|
|
6334
6334
|
/* CLASS */
|
|
@@ -6370,7 +6370,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6370
6370
|
v("div", {
|
|
6371
6371
|
class: G(a.classList.multipleLabel),
|
|
6372
6372
|
innerHTML: a.multipleLabelText
|
|
6373
|
-
}, null, 10,
|
|
6373
|
+
}, null, 10, Q3)
|
|
6374
6374
|
]) : k("v-if", !0),
|
|
6375
6375
|
k(" Placeholder "),
|
|
6376
6376
|
t.placeholder && !a.hasSelected && !a.search ? te(a.$slots, "placeholder", { key: 4 }, () => [
|
|
@@ -6444,7 +6444,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6444
6444
|
/* CLASS */
|
|
6445
6445
|
)
|
|
6446
6446
|
]) : k("v-if", !0)
|
|
6447
|
-
], 16,
|
|
6447
|
+
], 16, Y3),
|
|
6448
6448
|
k(" Options "),
|
|
6449
6449
|
v(
|
|
6450
6450
|
"div",
|
|
@@ -6562,7 +6562,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6562
6562
|
128
|
|
6563
6563
|
/* KEYED_FRAGMENT */
|
|
6564
6564
|
))
|
|
6565
|
-
], 10,
|
|
6565
|
+
], 10, J3),
|
|
6566
6566
|
a.noOptions ? te(a.$slots, "nooptions", { key: 0 }, () => [
|
|
6567
6567
|
v("div", {
|
|
6568
6568
|
class: G(a.classList.noOptions),
|
|
@@ -6654,7 +6654,7 @@ function f5(a, e, t, s, n, o) {
|
|
|
6654
6654
|
2
|
|
6655
6655
|
/* CLASS */
|
|
6656
6656
|
)
|
|
6657
|
-
], 42,
|
|
6657
|
+
], 42, z3);
|
|
6658
6658
|
}
|
|
6659
6659
|
ze.render = f5;
|
|
6660
6660
|
ze.__file = "src/Multiselect.vue";
|
|
@@ -6666,7 +6666,7 @@ const ye = /* @__PURE__ */ x({
|
|
|
6666
6666
|
},
|
|
6667
6667
|
setup(a) {
|
|
6668
6668
|
const e = a, t = ct(() => e.appendTo), s = J();
|
|
6669
|
-
return e.detached &&
|
|
6669
|
+
return e.detached && E3({
|
|
6670
6670
|
multiselect: s,
|
|
6671
6671
|
appendTo: t.value
|
|
6672
6672
|
}), (n, o) => (c(), N(q(ze), {
|
|
@@ -7284,7 +7284,7 @@ const j5 = {
|
|
|
7284
7284
|
value: A.id,
|
|
7285
7285
|
avatar: A.avatarUrl
|
|
7286
7286
|
}))) || [];
|
|
7287
|
-
}),
|
|
7287
|
+
}), L = w({
|
|
7288
7288
|
get() {
|
|
7289
7289
|
var b, A;
|
|
7290
7290
|
return (b = t.activity.assignee) != null && b.id ? [(A = t.activity.assignee) == null ? void 0 : A.id] : [];
|
|
@@ -7430,8 +7430,8 @@ const j5 = {
|
|
|
7430
7430
|
v("div", o7, [
|
|
7431
7431
|
v("div", l7, [
|
|
7432
7432
|
T(ye, {
|
|
7433
|
-
modelValue:
|
|
7434
|
-
"onUpdate:modelValue": A[3] || (A[3] = (P) =>
|
|
7433
|
+
modelValue: L.value,
|
|
7434
|
+
"onUpdate:modelValue": A[3] || (A[3] = (P) => L.value = P),
|
|
7435
7435
|
options: g.value,
|
|
7436
7436
|
"close-on-select": !1,
|
|
7437
7437
|
searchable: !0,
|
|
@@ -7629,9 +7629,9 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7629
7629
|
[pe.ACTIVITIES]: t.templateActivities,
|
|
7630
7630
|
[pe.MILESTONES]: t.templateMilestones,
|
|
7631
7631
|
[pe.PHASES]: t.templatePhases
|
|
7632
|
-
}[s.value]) == null ? void 0 : g.map((
|
|
7633
|
-
value:
|
|
7634
|
-
label:
|
|
7632
|
+
}[s.value]) == null ? void 0 : g.map((L) => ({
|
|
7633
|
+
value: L.id,
|
|
7634
|
+
label: L.name
|
|
7635
7635
|
}));
|
|
7636
7636
|
}), r = ct(t.rule.comparator), d = w({
|
|
7637
7637
|
get() {
|
|
@@ -7666,26 +7666,26 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7666
7666
|
default: j(() => [
|
|
7667
7667
|
T(q(ze), {
|
|
7668
7668
|
modelValue: n.value,
|
|
7669
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
7669
|
+
"onUpdate:modelValue": g[0] || (g[0] = (L) => n.value = L),
|
|
7670
7670
|
options: o.value
|
|
7671
7671
|
}, null, 8, ["modelValue", "options"]),
|
|
7672
7672
|
T(q(ze), {
|
|
7673
7673
|
modelValue: i.value,
|
|
7674
|
-
"onUpdate:modelValue": g[1] || (g[1] = (
|
|
7674
|
+
"onUpdate:modelValue": g[1] || (g[1] = (L) => i.value = L),
|
|
7675
7675
|
options: l.value
|
|
7676
7676
|
}, null, 8, ["modelValue", "options"]),
|
|
7677
7677
|
T(q(ze), {
|
|
7678
7678
|
modelValue: p.value,
|
|
7679
|
-
"onUpdate:modelValue": g[2] || (g[2] = (
|
|
7679
|
+
"onUpdate:modelValue": g[2] || (g[2] = (L) => p.value = L),
|
|
7680
7680
|
options: C.value
|
|
7681
7681
|
}, null, 8, ["modelValue", "options"]),
|
|
7682
7682
|
T(q(ze), {
|
|
7683
7683
|
modelValue: d.value,
|
|
7684
|
-
"onUpdate:modelValue": g[3] || (g[3] = (
|
|
7684
|
+
"onUpdate:modelValue": g[3] || (g[3] = (L) => d.value = L),
|
|
7685
7685
|
options: u.value
|
|
7686
7686
|
}, null, 8, ["modelValue", "options"]),
|
|
7687
7687
|
ft(v("input", {
|
|
7688
|
-
"onUpdate:modelValue": g[4] || (g[4] = (
|
|
7688
|
+
"onUpdate:modelValue": g[4] || (g[4] = (L) => $.value = L),
|
|
7689
7689
|
type: "number",
|
|
7690
7690
|
min: "0"
|
|
7691
7691
|
}, null, 512), [
|
|
@@ -7698,14 +7698,14 @@ const I7 = /* @__PURE__ */ x({
|
|
|
7698
7698
|
]),
|
|
7699
7699
|
T(q(ze), {
|
|
7700
7700
|
modelValue: M.value,
|
|
7701
|
-
"onUpdate:modelValue": g[5] || (g[5] = (
|
|
7701
|
+
"onUpdate:modelValue": g[5] || (g[5] = (L) => M.value = L),
|
|
7702
7702
|
options: S.value
|
|
7703
7703
|
}, null, 8, ["modelValue", "options"]),
|
|
7704
7704
|
T(de, {
|
|
7705
7705
|
class: "ao-rule-line__remove",
|
|
7706
7706
|
"icon-name": "CloseRounded",
|
|
7707
7707
|
variant: "ghost",
|
|
7708
|
-
onClick: g[6] || (g[6] = (
|
|
7708
|
+
onClick: g[6] || (g[6] = (L) => _.$emit("close"))
|
|
7709
7709
|
})
|
|
7710
7710
|
]),
|
|
7711
7711
|
_: 1
|
|
@@ -7785,46 +7785,46 @@ const D7 = {
|
|
|
7785
7785
|
const t = a, { t: s } = nt(), n = w(
|
|
7786
7786
|
() => {
|
|
7787
7787
|
var O;
|
|
7788
|
-
return (O = t.templates) == null ? void 0 : O.find((
|
|
7788
|
+
return (O = t.templates) == null ? void 0 : O.find((V) => V.id === t.templateId);
|
|
7789
7789
|
}
|
|
7790
7790
|
), o = J(!1);
|
|
7791
7791
|
re(() => [t.templateId, t.phaseId, t.milestoneId], () => o.value = !1), re(() => {
|
|
7792
7792
|
var O;
|
|
7793
7793
|
return (O = n.value) == null ? void 0 : O.phases;
|
|
7794
|
-
}, (O,
|
|
7795
|
-
o.value && Ue(O,
|
|
7794
|
+
}, (O, V) => {
|
|
7795
|
+
o.value && Ue(O, V);
|
|
7796
7796
|
});
|
|
7797
7797
|
const i = w(() => {
|
|
7798
|
-
var O,
|
|
7799
|
-
return (
|
|
7798
|
+
var O, V;
|
|
7799
|
+
return (V = (O = n == null ? void 0 : n.value) == null ? void 0 : O.phases) == null ? void 0 : V.find((W) => W.id === t.phaseId);
|
|
7800
7800
|
});
|
|
7801
7801
|
re(() => {
|
|
7802
7802
|
var O;
|
|
7803
7803
|
return (O = i.value) == null ? void 0 : O.milestones;
|
|
7804
|
-
}, (O,
|
|
7805
|
-
o.value && Ue(O,
|
|
7804
|
+
}, (O, V) => {
|
|
7805
|
+
o.value && Ue(O, V);
|
|
7806
7806
|
});
|
|
7807
7807
|
const l = w(() => {
|
|
7808
|
-
var O,
|
|
7809
|
-
return (
|
|
7808
|
+
var O, V;
|
|
7809
|
+
return (V = (O = i.value) == null ? void 0 : O.milestones) == null ? void 0 : V.find(
|
|
7810
7810
|
(W) => W.id === t.milestoneId
|
|
7811
7811
|
);
|
|
7812
7812
|
});
|
|
7813
7813
|
re(() => {
|
|
7814
7814
|
var O;
|
|
7815
7815
|
return (O = l.value) == null ? void 0 : O.activities;
|
|
7816
|
-
}, (O,
|
|
7817
|
-
o.value && Ue(O,
|
|
7816
|
+
}, (O, V) => {
|
|
7817
|
+
o.value && Ue(O, V);
|
|
7818
7818
|
});
|
|
7819
7819
|
const r = w(() => {
|
|
7820
|
-
var O,
|
|
7821
|
-
return ((
|
|
7820
|
+
var O, V;
|
|
7821
|
+
return ((V = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : V.reduce((W, y) => {
|
|
7822
7822
|
const Y = y.milestones || [];
|
|
7823
7823
|
return [...W, ...Y];
|
|
7824
7824
|
}, [])) || [];
|
|
7825
7825
|
}), d = w(() => {
|
|
7826
|
-
var O,
|
|
7827
|
-
return ((
|
|
7826
|
+
var O, V;
|
|
7827
|
+
return ((V = (O = n.value) == null ? void 0 : O.phases) == null ? void 0 : V.reduce((W, y) => {
|
|
7828
7828
|
const he = (y.milestones || []).reduce(
|
|
7829
7829
|
(Z, F) => F.activities ? [...Z, ...F.activities] : Z,
|
|
7830
7830
|
[]
|
|
@@ -7832,15 +7832,15 @@ const D7 = {
|
|
|
7832
7832
|
return [...W, ...he];
|
|
7833
7833
|
}, [])) || [];
|
|
7834
7834
|
}), u = w(() => {
|
|
7835
|
-
var O,
|
|
7836
|
-
return (
|
|
7835
|
+
var O, V;
|
|
7836
|
+
return (V = (O = l.value) == null ? void 0 : O.activities) == null ? void 0 : V.find(
|
|
7837
7837
|
(W) => W.id === t.activityId
|
|
7838
7838
|
);
|
|
7839
7839
|
}), f = w(() => {
|
|
7840
7840
|
var O;
|
|
7841
|
-
return (O = t.activityTypes) == null ? void 0 : O.map((
|
|
7842
|
-
label:
|
|
7843
|
-
value:
|
|
7841
|
+
return (O = t.activityTypes) == null ? void 0 : O.map((V) => ({
|
|
7842
|
+
label: V.name,
|
|
7843
|
+
value: V.id
|
|
7844
7844
|
}));
|
|
7845
7845
|
}), p = w(() => {
|
|
7846
7846
|
var O;
|
|
@@ -7848,7 +7848,7 @@ const D7 = {
|
|
|
7848
7848
|
}), C = () => {
|
|
7849
7849
|
if (!n.value)
|
|
7850
7850
|
return;
|
|
7851
|
-
const { name: O, rank:
|
|
7851
|
+
const { name: O, rank: V } = pt(
|
|
7852
7852
|
n.value.phases,
|
|
7853
7853
|
"phase",
|
|
7854
7854
|
s
|
|
@@ -7858,7 +7858,7 @@ const D7 = {
|
|
|
7858
7858
|
templateId: t.templateId,
|
|
7859
7859
|
item: {
|
|
7860
7860
|
name: O,
|
|
7861
|
-
rank:
|
|
7861
|
+
rank: V
|
|
7862
7862
|
}
|
|
7863
7863
|
});
|
|
7864
7864
|
}, $ = (O) => {
|
|
@@ -7876,19 +7876,19 @@ const D7 = {
|
|
|
7876
7876
|
id: O
|
|
7877
7877
|
}
|
|
7878
7878
|
});
|
|
7879
|
-
}, S = (O,
|
|
7879
|
+
}, S = (O, V) => {
|
|
7880
7880
|
e("updateItem", {
|
|
7881
7881
|
templateId: t.templateId,
|
|
7882
7882
|
id: O,
|
|
7883
7883
|
itemType: pe.PHASES,
|
|
7884
|
-
data: { name:
|
|
7884
|
+
data: { name: V }
|
|
7885
7885
|
});
|
|
7886
7886
|
}, _ = (O) => {
|
|
7887
7887
|
e("updateItem", O);
|
|
7888
7888
|
}, g = (O) => {
|
|
7889
7889
|
if (!i.value)
|
|
7890
7890
|
return;
|
|
7891
|
-
const { name:
|
|
7891
|
+
const { name: V, rank: W } = pt(
|
|
7892
7892
|
i.value.milestones,
|
|
7893
7893
|
"milestone",
|
|
7894
7894
|
s
|
|
@@ -7898,12 +7898,12 @@ const D7 = {
|
|
|
7898
7898
|
templateId: t.templateId,
|
|
7899
7899
|
phaseId: O.phaseId,
|
|
7900
7900
|
item: {
|
|
7901
|
-
name:
|
|
7901
|
+
name: V,
|
|
7902
7902
|
rank: W,
|
|
7903
7903
|
phaseId: O.phaseId
|
|
7904
7904
|
}
|
|
7905
7905
|
});
|
|
7906
|
-
},
|
|
7906
|
+
}, L = (O) => {
|
|
7907
7907
|
e("removeItem", {
|
|
7908
7908
|
type: pe.MILESTONES,
|
|
7909
7909
|
templateId: t.templateId,
|
|
@@ -7913,15 +7913,15 @@ const D7 = {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
});
|
|
7915
7915
|
}, R = (O) => {
|
|
7916
|
-
const { id:
|
|
7916
|
+
const { id: V, ...W } = O;
|
|
7917
7917
|
e("updateItem", {
|
|
7918
7918
|
itemType: pe.MILESTONES,
|
|
7919
|
-
id:
|
|
7919
|
+
id: V,
|
|
7920
7920
|
templateId: t.templateId,
|
|
7921
7921
|
data: W
|
|
7922
7922
|
});
|
|
7923
7923
|
}, K = (O) => {
|
|
7924
|
-
const { milestoneId:
|
|
7924
|
+
const { milestoneId: V } = O;
|
|
7925
7925
|
if (!l.value)
|
|
7926
7926
|
return;
|
|
7927
7927
|
const { name: W, rank: y } = pt(
|
|
@@ -7931,26 +7931,26 @@ const D7 = {
|
|
|
7931
7931
|
);
|
|
7932
7932
|
o.value = !0, e("addItem", {
|
|
7933
7933
|
type: pe.ACTIVITIES,
|
|
7934
|
-
milestoneId:
|
|
7934
|
+
milestoneId: V,
|
|
7935
7935
|
templateId: t.templateId,
|
|
7936
|
-
item: { name: W, rank: y, milestoneId:
|
|
7936
|
+
item: { name: W, rank: y, milestoneId: V }
|
|
7937
7937
|
});
|
|
7938
7938
|
}, D = (O) => {
|
|
7939
|
-
var
|
|
7939
|
+
var V, W;
|
|
7940
7940
|
e("removeItem", {
|
|
7941
7941
|
type: pe.ACTIVITIES,
|
|
7942
7942
|
templateId: t.templateId,
|
|
7943
|
-
phaseId: (
|
|
7943
|
+
phaseId: (V = i.value) == null ? void 0 : V.id,
|
|
7944
7944
|
milestoneId: (W = l.value) == null ? void 0 : W.id,
|
|
7945
7945
|
data: {
|
|
7946
7946
|
id: O.id
|
|
7947
7947
|
}
|
|
7948
7948
|
});
|
|
7949
7949
|
}, X = (O) => {
|
|
7950
|
-
const { id:
|
|
7950
|
+
const { id: V, ...W } = O;
|
|
7951
7951
|
e("updateItem", {
|
|
7952
7952
|
itemType: pe.ACTIVITIES,
|
|
7953
|
-
id:
|
|
7953
|
+
id: V,
|
|
7954
7954
|
templateId: t.templateId,
|
|
7955
7955
|
data: W
|
|
7956
7956
|
});
|
|
@@ -7961,9 +7961,9 @@ const D7 = {
|
|
|
7961
7961
|
}, b = (O) => {
|
|
7962
7962
|
e("removeRule", { id: O, templateId: t.templateId });
|
|
7963
7963
|
}, A = (O) => {
|
|
7964
|
-
var
|
|
7964
|
+
var V;
|
|
7965
7965
|
if (O.moved) {
|
|
7966
|
-
const W = Bt(O, ((
|
|
7966
|
+
const W = Bt(O, ((V = n.value) == null ? void 0 : V.phases) ?? []);
|
|
7967
7967
|
e("updateItem", {
|
|
7968
7968
|
itemType: pe.PHASES,
|
|
7969
7969
|
id: O.moved.element.id,
|
|
@@ -8003,19 +8003,19 @@ const D7 = {
|
|
|
8003
8003
|
}, ie = (O) => {
|
|
8004
8004
|
e("removeFile", O);
|
|
8005
8005
|
};
|
|
8006
|
-
return (O,
|
|
8006
|
+
return (O, V) => {
|
|
8007
8007
|
var W, y, Y, he, Z, F;
|
|
8008
8008
|
return n.value ? (c(), h("div", D7, [
|
|
8009
8009
|
T(r1, {
|
|
8010
8010
|
"can-go-back": !0,
|
|
8011
|
-
onGoBack:
|
|
8011
|
+
onGoBack: V[1] || (V[1] = (E) => O.$router.push({ name: q(Tt).TEMPLATES_LIST }))
|
|
8012
8012
|
}, {
|
|
8013
8013
|
primary: j(() => [
|
|
8014
8014
|
T(me, {
|
|
8015
8015
|
title: p.value,
|
|
8016
8016
|
level: 2,
|
|
8017
8017
|
"is-editable": !0,
|
|
8018
|
-
"onUpdate:title":
|
|
8018
|
+
"onUpdate:title": V[0] || (V[0] = (E) => {
|
|
8019
8019
|
$(E);
|
|
8020
8020
|
})
|
|
8021
8021
|
}, null, 8, ["title"])
|
|
@@ -8051,7 +8051,7 @@ const D7 = {
|
|
|
8051
8051
|
item: j(({ element: E }) => {
|
|
8052
8052
|
var U;
|
|
8053
8053
|
return [
|
|
8054
|
-
T(
|
|
8054
|
+
T(R0, {
|
|
8055
8055
|
id: E.id,
|
|
8056
8056
|
name: E.name,
|
|
8057
8057
|
milestones: E.milestones,
|
|
@@ -8080,7 +8080,7 @@ const D7 = {
|
|
|
8080
8080
|
}, 8, ["model-value"])
|
|
8081
8081
|
]),
|
|
8082
8082
|
v("li", R7, [
|
|
8083
|
-
i.value ? (c(), N(
|
|
8083
|
+
i.value ? (c(), N(Z0, {
|
|
8084
8084
|
key: 0,
|
|
8085
8085
|
"template-id": O.templateId,
|
|
8086
8086
|
phase: i.value,
|
|
@@ -8088,11 +8088,11 @@ const D7 = {
|
|
|
8088
8088
|
onAddMilestone: g,
|
|
8089
8089
|
onUpdateMilestone: R,
|
|
8090
8090
|
onUpdatePhase: _,
|
|
8091
|
-
onRemoveMilestone:
|
|
8091
|
+
onRemoveMilestone: L
|
|
8092
8092
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : k("", !0)
|
|
8093
8093
|
]),
|
|
8094
8094
|
v("li", U7, [
|
|
8095
|
-
i.value && l.value ? (c(), N(
|
|
8095
|
+
i.value && l.value ? (c(), N(W0, {
|
|
8096
8096
|
key: 0,
|
|
8097
8097
|
"template-id": O.templateId,
|
|
8098
8098
|
"phase-id": (y = i.value) == null ? void 0 : y.id,
|
|
@@ -8116,7 +8116,7 @@ const D7 = {
|
|
|
8116
8116
|
"template-milestones": r.value,
|
|
8117
8117
|
"is-template": !0,
|
|
8118
8118
|
users: O.users,
|
|
8119
|
-
"onUpdate:activity":
|
|
8119
|
+
"onUpdate:activity": V[2] || (V[2] = (E) => {
|
|
8120
8120
|
u.value && X(E);
|
|
8121
8121
|
}),
|
|
8122
8122
|
onClose: O.$router.back,
|
|
@@ -8374,7 +8374,7 @@ const o9 = { class: "ao-project-phase" }, l9 = {
|
|
|
8374
8374
|
});
|
|
8375
8375
|
const n = (f) => {
|
|
8376
8376
|
e("updatePhase", { id: t.phase.id, name: f });
|
|
8377
|
-
}, o = w(() => t.phase.milestones.map((f) =>
|
|
8377
|
+
}, o = w(() => t.phase.milestones.map((f) => o0(f, t.closedStatus))), i = (f) => {
|
|
8378
8378
|
const { name: p, rank: C } = pt(o.value ?? [], "milestone", s);
|
|
8379
8379
|
e("addMilestone", { name: p, rank: C, phaseId: f });
|
|
8380
8380
|
}, l = (f) => {
|
|
@@ -8677,7 +8677,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8677
8677
|
() => n.value.flatMap((I) => I.activities)
|
|
8678
8678
|
), g = (I) => {
|
|
8679
8679
|
e("addFiles", I);
|
|
8680
|
-
},
|
|
8680
|
+
}, L = (I) => {
|
|
8681
8681
|
e("removeFile", I);
|
|
8682
8682
|
}, R = (I) => {
|
|
8683
8683
|
e("addComment", I);
|
|
@@ -8754,7 +8754,7 @@ const Pa = /* @__PURE__ */ B(M9, [["render", A9], ["__scopeId", "data-v-8f286655
|
|
|
8754
8754
|
onUpdateSubtask: M,
|
|
8755
8755
|
onDeleteSubtask: S,
|
|
8756
8756
|
onAddFiles: g,
|
|
8757
|
-
onRemoveFile:
|
|
8757
|
+
onRemoveFile: L,
|
|
8758
8758
|
onAddComment: R,
|
|
8759
8759
|
onUpdateComment: K,
|
|
8760
8760
|
onRemoveComment: D
|
|
@@ -9006,7 +9006,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
9006
9006
|
group: "kanban"
|
|
9007
9007
|
}, p.$attrs, { onChange: f }), {
|
|
9008
9008
|
item: j(({ element: M }) => {
|
|
9009
|
-
var S, _, g,
|
|
9009
|
+
var S, _, g, L;
|
|
9010
9010
|
return [
|
|
9011
9011
|
T(Ba, {
|
|
9012
9012
|
id: M.id,
|
|
@@ -9018,7 +9018,7 @@ const G9 = { class: "ao-project-milestone" }, x9 = { class: "ao-project-mileston
|
|
|
9018
9018
|
users: p.users,
|
|
9019
9019
|
assignee: M.assignee,
|
|
9020
9020
|
comments: (g = M.comments) == null ? void 0 : g.length,
|
|
9021
|
-
attachments: (
|
|
9021
|
+
attachments: (L = M.attachments) == null ? void 0 : L.length,
|
|
9022
9022
|
tasks: M.tasks,
|
|
9023
9023
|
"is-editable": p.isEditable,
|
|
9024
9024
|
onClick: (R) => p.$router.push({
|
|
@@ -9117,7 +9117,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9117
9117
|
e("removeComment", _);
|
|
9118
9118
|
};
|
|
9119
9119
|
return (_, g) => {
|
|
9120
|
-
var
|
|
9120
|
+
var L, R;
|
|
9121
9121
|
return i.value ? (c(), N(N1, {
|
|
9122
9122
|
key: 0,
|
|
9123
9123
|
activity: i.value,
|
|
@@ -9129,7 +9129,7 @@ const e4 = /* @__PURE__ */ x({
|
|
|
9129
9129
|
"user-id": _.userId,
|
|
9130
9130
|
"is-task-checkable": _.isTaskCheckable,
|
|
9131
9131
|
statuses: _.statuses,
|
|
9132
|
-
breadcrumbs: `${(
|
|
9132
|
+
breadcrumbs: `${(L = s.value) == null ? void 0 : L.name} / ${(R = o.value) == null ? void 0 : R.name}`,
|
|
9133
9133
|
"is-editable": _.isEditable,
|
|
9134
9134
|
onClose: _.$router.back,
|
|
9135
9135
|
"onUpdate:activity": r,
|
|
@@ -9366,8 +9366,11 @@ const v4 = {
|
|
|
9366
9366
|
users: r.users,
|
|
9367
9367
|
assignee: u.assignee,
|
|
9368
9368
|
"is-editable": r.isEditable,
|
|
9369
|
+
onUpdateActivity: [
|
|
9370
|
+
d[0] || (d[0] = (L) => r.isEditable && i(L)),
|
|
9371
|
+
d[1] || (d[1] = (L) => r.isEditable && i)
|
|
9372
|
+
],
|
|
9369
9373
|
onClick: () => o(u.id),
|
|
9370
|
-
onUpdateActivity: d[0] || (d[0] = (V) => r.isEditable && i),
|
|
9371
9374
|
onRemoveAssignee: () => r.isEditable && i({ id: u.id, assigneeId: null })
|
|
9372
9375
|
}, {
|
|
9373
9376
|
secondary: j(() => [
|
|
@@ -9407,7 +9410,7 @@ const v4 = {
|
|
|
9407
9410
|
key: 0,
|
|
9408
9411
|
"icon-name": "AddBoxOutlineRounded",
|
|
9409
9412
|
label: r.footerLabel,
|
|
9410
|
-
onClick: d[
|
|
9413
|
+
onClick: d[2] || (d[2] = (u) => r.$emit("add"))
|
|
9411
9414
|
}, null, 8, ["label"])) : k("", !0)
|
|
9412
9415
|
])
|
|
9413
9416
|
])) : k("", !0)
|
|
@@ -9549,7 +9552,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9549
9552
|
i.value && e("update:activity", y);
|
|
9550
9553
|
}, g = (y) => {
|
|
9551
9554
|
e("update:activity", y);
|
|
9552
|
-
},
|
|
9555
|
+
}, L = (y) => {
|
|
9553
9556
|
e("archiveActivity", y);
|
|
9554
9557
|
}, R = w({
|
|
9555
9558
|
get() {
|
|
@@ -9607,7 +9610,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9607
9610
|
id: i.value.id,
|
|
9608
9611
|
milestoneId: y
|
|
9609
9612
|
});
|
|
9610
|
-
},
|
|
9613
|
+
}, V = w(() => {
|
|
9611
9614
|
var y;
|
|
9612
9615
|
return (y = t.statuses) == null ? void 0 : y.map((Y) => ({
|
|
9613
9616
|
value: Y.id,
|
|
@@ -9710,7 +9713,7 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9710
9713
|
"is-editable": y.isEditable,
|
|
9711
9714
|
onAdd: () => f(Z),
|
|
9712
9715
|
onSelectActivity: l,
|
|
9713
|
-
onArchiveActivity:
|
|
9716
|
+
onArchiveActivity: L,
|
|
9714
9717
|
onUpdateActivity: g
|
|
9715
9718
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "is-editable", "onAdd"]))), 128))
|
|
9716
9719
|
]),
|
|
@@ -9764,10 +9767,10 @@ const S4 = { class: "ao-feed" }, T4 = { class: "ao-feed__filters" }, E4 = { clas
|
|
|
9764
9767
|
onChange: O
|
|
9765
9768
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
9766
9769
|
])) : k("", !0),
|
|
9767
|
-
|
|
9770
|
+
V.value ? (c(), h("label", H4, [
|
|
9768
9771
|
v("span", P4, z(y.$t("activity.status.label")), 1),
|
|
9769
9772
|
T(ye, {
|
|
9770
|
-
options:
|
|
9773
|
+
options: V.value,
|
|
9771
9774
|
value: (E = q(i).status) == null ? void 0 : E.id,
|
|
9772
9775
|
"can-clear": !1,
|
|
9773
9776
|
"can-deselect": !1,
|
|
@@ -9932,12 +9935,12 @@ const Tt = {
|
|
|
9932
9935
|
item: j(({ element: d }) => {
|
|
9933
9936
|
var u;
|
|
9934
9937
|
return [
|
|
9935
|
-
T(
|
|
9938
|
+
T(E0, {
|
|
9936
9939
|
id: d.id,
|
|
9937
9940
|
title: d.name,
|
|
9938
9941
|
phases: d.phases,
|
|
9939
|
-
milestones: (u = d.phases) != null && u.length ? q(
|
|
9940
|
-
activities: d.phases ? q(
|
|
9942
|
+
milestones: (u = d.phases) != null && u.length ? q(a0)(d.phases) : 0,
|
|
9943
|
+
activities: d.phases ? q(n0)(d.phases) : 0,
|
|
9941
9944
|
"updated-at": d.updatedAt,
|
|
9942
9945
|
"updated-by": d.updatedBy,
|
|
9943
9946
|
onUpdateTitle: (f) => o(d.id, f),
|