@26lights/orcha 0.41.120 → 0.41.121
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 +2 -2
- package/dist/orcha.es.js +313 -310
- package/dist/orcha.umd.js +2 -2
- package/dist/src/components/AoCardFeed.vue.d.ts +8 -2
- package/dist/src/components/AoListKanban.vue.d.ts +3 -3
- package/dist/src/views/AoFeed.vue.d.ts +2 -2
- package/dist/src/views/AoProjectOverviewMilestoneDetails.vue.d.ts +2 -2
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as G, openBlock as v, createBlock as D, unref as F, mergeProps as Ae, createElementBlock as _, createElementVNode as f, pushScopeId as Bo, popScopeId as Ro, createStaticVNode as jo, computed as M, resolveDynamicComponent as It, normalizeClass as
|
|
1
|
+
import { defineComponent as G, openBlock as v, createBlock as D, unref as F, mergeProps as Ae, createElementBlock as _, createElementVNode as f, pushScopeId as Bo, popScopeId as Ro, createStaticVNode as jo, computed as M, resolveDynamicComponent as It, normalizeClass as ee, renderSlot as se, toDisplayString as Y, createCommentVNode as E, ref as q, watch as ce, nextTick as $e, withKeys as vt, toHandlers as No, withCtx as Z, createTextVNode as As, createVNode as A, normalizeStyle as Fe, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as Ce, onMounted as Lt, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ie, getCurrentInstance as Pt, toRef as dt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as Te, vShow as Uo, onUpdated as Fo, vModelText as Ne, resolveComponent as ut, vModelCheckbox as Zo, getCurrentScope as Wo, onScopeDispose as zo, toHandlerKey as qo } from "vue";
|
|
2
2
|
import { RouterView as Yo, useRoute as xo, useRouter as Es } from "vue-router";
|
|
3
3
|
import gt from "vuedraggable";
|
|
4
4
|
const l8 = /* @__PURE__ */ G({
|
|
@@ -1169,7 +1169,7 @@ const Pn = {
|
|
|
1169
1169
|
setup(t) {
|
|
1170
1170
|
const e = t, a = M(() => P2[e.name]);
|
|
1171
1171
|
return (s, n) => (v(), D(It(a.value), {
|
|
1172
|
-
class:
|
|
1172
|
+
class: ee(["ao-icon", `ao-icon--${s.size}`])
|
|
1173
1173
|
}, null, 8, ["class"]));
|
|
1174
1174
|
}
|
|
1175
1175
|
});
|
|
@@ -1194,7 +1194,7 @@ const B2 = ["type"], R2 = {
|
|
|
1194
1194
|
const e = t, a = M(() => e.size), s = M(() => e.isLoading ? "Loading" : e.iconName);
|
|
1195
1195
|
return (n, i) => (v(), _("button", {
|
|
1196
1196
|
type: n.type,
|
|
1197
|
-
class:
|
|
1197
|
+
class: ee([
|
|
1198
1198
|
"ao-button",
|
|
1199
1199
|
`ao-button--${n.variant}`,
|
|
1200
1200
|
n.color ? `ao-button--${n.color}` : "",
|
|
@@ -1205,7 +1205,7 @@ const B2 = ["type"], R2 = {
|
|
|
1205
1205
|
n.$attrs.disabled ? "ao-button--is-disabled" : ""
|
|
1206
1206
|
])
|
|
1207
1207
|
}, [
|
|
1208
|
-
|
|
1208
|
+
se(n.$slots, "default", {}, () => [
|
|
1209
1209
|
n.label ? (v(), _("span", R2, Y(n.label), 1)) : E("", !0)
|
|
1210
1210
|
]),
|
|
1211
1211
|
s.value ? (v(), D(de, {
|
|
@@ -1347,7 +1347,7 @@ const j2 = {
|
|
|
1347
1347
|
e("update:title", s);
|
|
1348
1348
|
};
|
|
1349
1349
|
return (s, n) => (v(), D(It(s.tagName), {
|
|
1350
|
-
class:
|
|
1350
|
+
class: ee(["ao-card-horiz", { "ao-card-horiz--active": s.isActive }])
|
|
1351
1351
|
}, {
|
|
1352
1352
|
default: Z(() => [
|
|
1353
1353
|
s.isDraggable ? (v(), _("div", j2, [
|
|
@@ -1373,22 +1373,22 @@ const j2 = {
|
|
|
1373
1373
|
"is-editable": !0,
|
|
1374
1374
|
"onUpdate:title": a
|
|
1375
1375
|
}, null, 8, ["id", "title"]),
|
|
1376
|
-
|
|
1376
|
+
se(s.$slots, "subtitle", {}, () => [
|
|
1377
1377
|
s.subtitle ? (v(), _("span", Z2, Y(s.subtitle), 1)) : E("", !0)
|
|
1378
1378
|
])
|
|
1379
1379
|
]),
|
|
1380
1380
|
s.$slots.header ? (v(), _("div", W2, [
|
|
1381
|
-
|
|
1381
|
+
se(s.$slots, "header")
|
|
1382
1382
|
])) : E("", !0)
|
|
1383
1383
|
]),
|
|
1384
1384
|
s.$slots.default ? (v(), _("div", z2, [
|
|
1385
|
-
|
|
1385
|
+
se(s.$slots, "default")
|
|
1386
1386
|
])) : E("", !0),
|
|
1387
1387
|
s.$slots.footer ? (v(), _("div", q2, [
|
|
1388
|
-
|
|
1388
|
+
se(s.$slots, "footer")
|
|
1389
1389
|
])) : E("", !0),
|
|
1390
1390
|
s.$slots.secondary ? (v(), _("div", Y2, [
|
|
1391
|
-
|
|
1391
|
+
se(s.$slots, "secondary")
|
|
1392
1392
|
])) : E("", !0)
|
|
1393
1393
|
]),
|
|
1394
1394
|
_: 3
|
|
@@ -1412,7 +1412,7 @@ const ra = /* @__PURE__ */ G({
|
|
|
1412
1412
|
() => a.value === "button" ? { type: "button" } : {}
|
|
1413
1413
|
);
|
|
1414
1414
|
return (n, i) => (v(), _("div", {
|
|
1415
|
-
class:
|
|
1415
|
+
class: ee([
|
|
1416
1416
|
"ao-tag",
|
|
1417
1417
|
n.color ? `ao-tag--${n.color}` : "",
|
|
1418
1418
|
n.clickable ? "ao-tag--clickable" : "",
|
|
@@ -2739,21 +2739,21 @@ function Zn(t, e, a) {
|
|
|
2739
2739
|
var I = String(e), T = ga(), V = (s = (n = a == null ? void 0 : a.locale) !== null && n !== void 0 ? n : T.locale) !== null && s !== void 0 ? s : Fn, R = Je((i = (o = (l = (r = a == null ? void 0 : a.firstWeekContainsDate) !== null && r !== void 0 ? r : a == null || (d = a.locale) === null || d === void 0 || (u = d.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : T.firstWeekContainsDate) !== null && o !== void 0 ? o : (c = T.locale) === null || c === void 0 || (p = c.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && i !== void 0 ? i : 1);
|
|
2740
2740
|
if (!(R >= 1 && R <= 7))
|
|
2741
2741
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2742
|
-
var
|
|
2743
|
-
if (!(
|
|
2742
|
+
var x = Je((h = (g = ($ = (m = a == null ? void 0 : a.weekStartsOn) !== null && m !== void 0 ? m : a == null || (k = a.locale) === null || k === void 0 || (w = k.options) === null || w === void 0 ? void 0 : w.weekStartsOn) !== null && $ !== void 0 ? $ : T.weekStartsOn) !== null && g !== void 0 ? g : (b = T.locale) === null || b === void 0 || (y = b.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && h !== void 0 ? h : 0);
|
|
2743
|
+
if (!(x >= 0 && x <= 6))
|
|
2744
2744
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2745
2745
|
if (!V.localize)
|
|
2746
2746
|
throw new RangeError("locale must contain localize property");
|
|
2747
2747
|
if (!V.formatLong)
|
|
2748
2748
|
throw new RangeError("locale must contain formatLong property");
|
|
2749
|
-
var
|
|
2750
|
-
if (!Rn(
|
|
2749
|
+
var J = ke(t);
|
|
2750
|
+
if (!Rn(J))
|
|
2751
2751
|
throw new RangeError("Invalid time value");
|
|
2752
|
-
var
|
|
2752
|
+
var ne = ua(J), N = bs(J, ne), X = {
|
|
2753
2753
|
firstWeekContainsDate: R,
|
|
2754
|
-
weekStartsOn:
|
|
2754
|
+
weekStartsOn: x,
|
|
2755
2755
|
locale: V,
|
|
2756
|
-
_originalDate:
|
|
2756
|
+
_originalDate: J
|
|
2757
2757
|
}, le = I.match(l3).map(function(oe) {
|
|
2758
2758
|
var te = oe[0];
|
|
2759
2759
|
if (te === "p" || te === "P") {
|
|
@@ -3825,7 +3825,7 @@ const Z3 = ["title"], W3 = {
|
|
|
3825
3825
|
};
|
|
3826
3826
|
return (o, l) => (v(), _("div", {
|
|
3827
3827
|
role: "img",
|
|
3828
|
-
class:
|
|
3828
|
+
class: ee(s.value),
|
|
3829
3829
|
title: o.userName
|
|
3830
3830
|
}, [
|
|
3831
3831
|
o.avatarUrl ? E("", !0) : (v(), _("span", W3, Y(F(n)), 1)),
|
|
@@ -3984,10 +3984,10 @@ const v5 = { class: "ao-page-header" }, f5 = { class: "ao-page-header-main" }, h
|
|
|
3984
3984
|
variant: "ghost",
|
|
3985
3985
|
onClick: a[0] || (a[0] = (s) => e.$emit("goBack"))
|
|
3986
3986
|
})) : E("", !0),
|
|
3987
|
-
|
|
3987
|
+
se(e.$slots, "primary")
|
|
3988
3988
|
]),
|
|
3989
3989
|
e.$slots.secondary ? (v(), _("div", h5, [
|
|
3990
|
-
|
|
3990
|
+
se(e.$slots, "secondary")
|
|
3991
3991
|
])) : E("", !0)
|
|
3992
3992
|
]));
|
|
3993
3993
|
}
|
|
@@ -4011,14 +4011,14 @@ const m5 = ["type"], g5 = {
|
|
|
4011
4011
|
const e = t, a = M(() => e.size), s = M(() => e.isLoading ? "Loading" : e.iconName);
|
|
4012
4012
|
return (n, i) => (v(), _("button", {
|
|
4013
4013
|
type: n.type,
|
|
4014
|
-
class:
|
|
4014
|
+
class: ee([
|
|
4015
4015
|
"ao-button-card",
|
|
4016
4016
|
`ao-button-card--${n.color}`,
|
|
4017
4017
|
`ao-button-card--${n.corners}`,
|
|
4018
4018
|
n.$attrs.disabled ? "ao-button-card--is-disabled" : ""
|
|
4019
4019
|
])
|
|
4020
4020
|
}, [
|
|
4021
|
-
|
|
4021
|
+
se(n.$slots, "default", {}, () => [
|
|
4022
4022
|
n.label ? (v(), _("span", g5, Y(n.label), 1)) : E("", !0)
|
|
4023
4023
|
]),
|
|
4024
4024
|
s.value ? (v(), D(de, {
|
|
@@ -4101,7 +4101,7 @@ const w5 = /* @__PURE__ */ G({
|
|
|
4101
4101
|
milestones: a.value
|
|
4102
4102
|
}, n.$attrs), {
|
|
4103
4103
|
default: Z(() => [
|
|
4104
|
-
|
|
4104
|
+
se(n.$slots, "default")
|
|
4105
4105
|
]),
|
|
4106
4106
|
_: 3
|
|
4107
4107
|
}, 16, ["id", "title", "activities", "milestones"]));
|
|
@@ -4118,7 +4118,7 @@ const w5 = /* @__PURE__ */ G({
|
|
|
4118
4118
|
});
|
|
4119
4119
|
return (s, n) => (v(), D(Vs, { activities: a.value }, {
|
|
4120
4120
|
default: Z(() => [
|
|
4121
|
-
|
|
4121
|
+
se(s.$slots, "default")
|
|
4122
4122
|
]),
|
|
4123
4123
|
_: 3
|
|
4124
4124
|
}, 8, ["activities"]));
|
|
@@ -4205,7 +4205,7 @@ const w5 = /* @__PURE__ */ G({
|
|
|
4205
4205
|
});
|
|
4206
4206
|
return (s, n) => (v(), D(Vs, { tasks: a.value }, {
|
|
4207
4207
|
default: Z(() => [
|
|
4208
|
-
|
|
4208
|
+
se(s.$slots, "default")
|
|
4209
4209
|
]),
|
|
4210
4210
|
_: 3
|
|
4211
4211
|
}, 8, ["tasks"]));
|
|
@@ -4292,7 +4292,7 @@ const w5 = /* @__PURE__ */ G({
|
|
|
4292
4292
|
emits: ["close"],
|
|
4293
4293
|
setup(t) {
|
|
4294
4294
|
return (e, a) => (v(), _("div", {
|
|
4295
|
-
class:
|
|
4295
|
+
class: ee(["ao-modal__wrapper", `ao-modal__wrapper--${e.size}`])
|
|
4296
4296
|
}, [
|
|
4297
4297
|
f("div", {
|
|
4298
4298
|
class: "ao-modal__backdrop",
|
|
@@ -4309,14 +4309,14 @@ const w5 = /* @__PURE__ */ G({
|
|
|
4309
4309
|
})
|
|
4310
4310
|
]),
|
|
4311
4311
|
f("header", L5, [
|
|
4312
|
-
|
|
4312
|
+
se(e.$slots, "header")
|
|
4313
4313
|
])
|
|
4314
4314
|
])) : E("", !0),
|
|
4315
4315
|
f("div", P5, [
|
|
4316
|
-
|
|
4316
|
+
se(e.$slots, "default")
|
|
4317
4317
|
]),
|
|
4318
4318
|
e.$slots.footer ? (v(), _("footer", H5, [
|
|
4319
|
-
|
|
4319
|
+
se(e.$slots, "footer")
|
|
4320
4320
|
])) : E("", !0)
|
|
4321
4321
|
])
|
|
4322
4322
|
], 2));
|
|
@@ -4606,8 +4606,8 @@ const z5 = function(t) {
|
|
|
4606
4606
|
placement: n,
|
|
4607
4607
|
overflows: V
|
|
4608
4608
|
}], !V.every((N) => N <= 0)) {
|
|
4609
|
-
var
|
|
4610
|
-
const N = (((
|
|
4609
|
+
var x, J;
|
|
4610
|
+
const N = (((x = i.flip) == null ? void 0 : x.index) || 0) + 1, X = I[N];
|
|
4611
4611
|
if (X)
|
|
4612
4612
|
return {
|
|
4613
4613
|
data: {
|
|
@@ -4618,12 +4618,12 @@ const z5 = function(t) {
|
|
|
4618
4618
|
placement: X
|
|
4619
4619
|
}
|
|
4620
4620
|
};
|
|
4621
|
-
let le = (
|
|
4621
|
+
let le = (J = R.filter((oe) => oe.overflows[0] <= 0).sort((oe, te) => oe.overflows[1] - te.overflows[1])[0]) == null ? void 0 : J.placement;
|
|
4622
4622
|
if (!le)
|
|
4623
4623
|
switch (h) {
|
|
4624
4624
|
case "bestFit": {
|
|
4625
|
-
var
|
|
4626
|
-
const oe = (
|
|
4625
|
+
var ne;
|
|
4626
|
+
const oe = (ne = R.map((te) => [te.placement, te.overflows.filter((P) => P > 0).reduce((P, O) => P + O, 0)]).sort((te, P) => te[1] - P[1])[0]) == null ? void 0 : ne[0];
|
|
4627
4627
|
oe && (le = oe);
|
|
4628
4628
|
break;
|
|
4629
4629
|
}
|
|
@@ -4671,8 +4671,8 @@ const z5 = function(t) {
|
|
|
4671
4671
|
b = u || w ? da(m, T) : T;
|
|
4672
4672
|
}
|
|
4673
4673
|
if (w && !u) {
|
|
4674
|
-
const T = Ve(r.left, 0), V = Ve(r.right, 0), R = Ve(r.top, 0),
|
|
4675
|
-
c ? y = p - 2 * (T !== 0 || V !== 0 ? T + V : Ve(r.left, r.right)) : b = h - 2 * (R !== 0 ||
|
|
4674
|
+
const T = Ve(r.left, 0), V = Ve(r.right, 0), R = Ve(r.top, 0), x = Ve(r.bottom, 0);
|
|
4675
|
+
c ? y = p - 2 * (T !== 0 || V !== 0 ? T + V : Ve(r.left, r.right)) : b = h - 2 * (R !== 0 || x !== 0 ? R + x : Ve(r.top, r.bottom));
|
|
4676
4676
|
}
|
|
4677
4677
|
await o({
|
|
4678
4678
|
...e,
|
|
@@ -5279,9 +5279,9 @@ function _7(t, e, a) {
|
|
|
5279
5279
|
valueProp: T,
|
|
5280
5280
|
allowAbsent: V,
|
|
5281
5281
|
groupLabel: R,
|
|
5282
|
-
canDeselect:
|
|
5283
|
-
max:
|
|
5284
|
-
strict:
|
|
5282
|
+
canDeselect: x,
|
|
5283
|
+
max: J,
|
|
5284
|
+
strict: ne,
|
|
5285
5285
|
closeOnSelect: N,
|
|
5286
5286
|
closeOnDeselect: X,
|
|
5287
5287
|
groups: le,
|
|
@@ -5293,8 +5293,8 @@ function _7(t, e, a) {
|
|
|
5293
5293
|
onCreate: L,
|
|
5294
5294
|
disabledProp: C,
|
|
5295
5295
|
searchStart: B,
|
|
5296
|
-
searchFilter:
|
|
5297
|
-
} = Ie(t),
|
|
5296
|
+
searchFilter: K
|
|
5297
|
+
} = Ie(t), ae = Pt().proxy, z = a.iv, H = a.ev, Q = a.search, he = a.clearSearch, Se = a.update, Gt = a.pointer, Xt = a.setPointer, nt = a.clearPointer, $a = a.focus, ls = a.deactivate, ot = a.close, ka = a.localize, it = q([]), Ze = q([]), Le = q(!1), je = q(null), xe = q(te.value && o.value === -1 ? 10 : o.value), Qt = M(() => r.value || d.value || !1), Sa = M(() => c.value !== void 0 ? c.value : p.value !== void 0 ? p.value : !0), Pe = M(() => {
|
|
5298
5298
|
if (le.value) {
|
|
5299
5299
|
let S = bt.value || /* istanbul ignore next */
|
|
5300
5300
|
[], j = [];
|
|
@@ -5354,7 +5354,7 @@ function _7(t, e, a) {
|
|
|
5354
5354
|
case "tags":
|
|
5355
5355
|
return !We(z.value) && z.value.length > 0;
|
|
5356
5356
|
}
|
|
5357
|
-
}), yo = M(() => h !== void 0 && h.value !== void 0 ? h.value(z.value,
|
|
5357
|
+
}), yo = M(() => h !== void 0 && h.value !== void 0 ? h.value(z.value, ae) : z.value && z.value.length > 1 ? `${z.value.length} options selected` : "1 option selected"), bo = M(() => !Pe.value.length && !Le.value && !Ht.value.length), wo = M(() => Pe.value.length > 0 && lt.value.length == 0 && (Q.value && le.value || !le.value)), Ht = M(() => Qt.value === !1 || !Q.value ? [] : Io(Q.value) !== -1 ? [] : [{
|
|
5358
5358
|
[T.value]: Q.value,
|
|
5359
5359
|
[wt.value[0]]: Q.value,
|
|
5360
5360
|
[u.value]: Q.value,
|
|
@@ -5377,7 +5377,7 @@ function _7(t, e, a) {
|
|
|
5377
5377
|
Se(z.value.concat(S));
|
|
5378
5378
|
break;
|
|
5379
5379
|
}
|
|
5380
|
-
e.emit("select", nn(S), S,
|
|
5380
|
+
e.emit("select", nn(S), S, ae);
|
|
5381
5381
|
}, Dt = (S) => {
|
|
5382
5382
|
switch (typeof S != "object" && (S = Ge(S)), n.value) {
|
|
5383
5383
|
case "single":
|
|
@@ -5388,7 +5388,7 @@ function _7(t, e, a) {
|
|
|
5388
5388
|
Se(Array.isArray(S) ? z.value.filter((j) => S.map((ue) => ue[T.value]).indexOf(j[T.value]) === -1) : z.value.filter((j) => j[T.value] != S[T.value]));
|
|
5389
5389
|
break;
|
|
5390
5390
|
}
|
|
5391
|
-
e.emit("deselect", nn(S), S,
|
|
5391
|
+
e.emit("deselect", nn(S), S, ae);
|
|
5392
5392
|
}, nn = (S) => g.value ? S : S[T.value], on = (S) => {
|
|
5393
5393
|
Dt(S);
|
|
5394
5394
|
}, So = (S, j) => {
|
|
@@ -5398,7 +5398,7 @@ function _7(t, e, a) {
|
|
|
5398
5398
|
}
|
|
5399
5399
|
on(S);
|
|
5400
5400
|
}, ln = () => {
|
|
5401
|
-
Se($o.value), e.emit("clear",
|
|
5401
|
+
Se($o.value), e.emit("clear", ae);
|
|
5402
5402
|
}, Ke = (S) => {
|
|
5403
5403
|
if (S.group !== void 0)
|
|
5404
5404
|
return n.value === "single" ? !1 : Eo(S[P.value]) && S[P.value].length;
|
|
@@ -5409,9 +5409,9 @@ function _7(t, e, a) {
|
|
|
5409
5409
|
case "multiple":
|
|
5410
5410
|
return !We(z.value) && z.value.map((j) => j[T.value]).indexOf(S[T.value]) !== -1;
|
|
5411
5411
|
}
|
|
5412
|
-
}, cs = (S) => S[C.value] === !0, ds = () =>
|
|
5412
|
+
}, cs = (S) => S[C.value] === !0, ds = () => J === void 0 || J.value === -1 || !us.value && J.value > 0 ? !1 : z.value.length >= J.value, Mo = (S) => {
|
|
5413
5413
|
if (!cs(S)) {
|
|
5414
|
-
if (L && L.value && !Ke(S) && S.__CREATE__ && (S = { ...S }, delete S.__CREATE__, S = L.value(S,
|
|
5414
|
+
if (L && L.value && !Ke(S) && S.__CREATE__ && (S = { ...S }, delete S.__CREATE__, S = L.value(S, ae), S instanceof Promise)) {
|
|
5415
5415
|
Le.value = !0, S.then((j) => {
|
|
5416
5416
|
Le.value = !1, rn(j);
|
|
5417
5417
|
});
|
|
@@ -5423,7 +5423,7 @@ function _7(t, e, a) {
|
|
|
5423
5423
|
switch (S.__CREATE__ && (S = { ...S }, delete S.__CREATE__), n.value) {
|
|
5424
5424
|
case "single":
|
|
5425
5425
|
if (S && Ke(S)) {
|
|
5426
|
-
|
|
5426
|
+
x.value && Dt(S), X.value && (nt(), ot());
|
|
5427
5427
|
return;
|
|
5428
5428
|
}
|
|
5429
5429
|
S && ps(S), I.value && he(), N.value && (nt(), ot()), S && Vt(S);
|
|
@@ -5434,7 +5434,7 @@ function _7(t, e, a) {
|
|
|
5434
5434
|
return;
|
|
5435
5435
|
}
|
|
5436
5436
|
if (ds()) {
|
|
5437
|
-
e.emit("max",
|
|
5437
|
+
e.emit("max", ae);
|
|
5438
5438
|
return;
|
|
5439
5439
|
}
|
|
5440
5440
|
S && (ps(S), Vt(S)), I.value && he(), l.value && nt(), N.value && ot();
|
|
@@ -5445,7 +5445,7 @@ function _7(t, e, a) {
|
|
|
5445
5445
|
return;
|
|
5446
5446
|
}
|
|
5447
5447
|
if (ds()) {
|
|
5448
|
-
e.emit("max",
|
|
5448
|
+
e.emit("max", ae);
|
|
5449
5449
|
return;
|
|
5450
5450
|
}
|
|
5451
5451
|
S && ps(S), I.value && he(), S && Vt(S), l.value && nt(), N.value && ot();
|
|
@@ -5458,14 +5458,14 @@ function _7(t, e, a) {
|
|
|
5458
5458
|
case "multiple":
|
|
5459
5459
|
case "tags":
|
|
5460
5460
|
Oo(S[P.value]) ? Dt(S[P.value]) : Vt(
|
|
5461
|
-
S[P.value].filter((j) => z.value.map((ue) => ue[T.value]).indexOf(j[T.value]) === -1).filter((j) => !j[C.value]).filter((j, ue) => z.value.length + 1 + ue <=
|
|
5461
|
+
S[P.value].filter((j) => z.value.map((ue) => ue[T.value]).indexOf(j[T.value]) === -1).filter((j) => !j[C.value]).filter((j, ue) => z.value.length + 1 + ue <= J.value || J.value === -1)
|
|
5462
5462
|
), l.value && Gt.value && Xt(rs.value.filter((j) => !j[C.value])[Gt.value.index]);
|
|
5463
5463
|
break;
|
|
5464
5464
|
}
|
|
5465
5465
|
N.value && ls();
|
|
5466
5466
|
}
|
|
5467
5467
|
}, ps = (S) => {
|
|
5468
|
-
Ge(S[T.value]) === void 0 && Qt.value && (e.emit("tag", S[T.value],
|
|
5468
|
+
Ge(S[T.value]) === void 0 && Qt.value && (e.emit("tag", S[T.value], ae), e.emit("option", S[T.value], ae), e.emit("create", S[T.value], ae), Sa.value && Po(S), he());
|
|
5469
5469
|
}, To = () => {
|
|
5470
5470
|
n.value !== "single" && Vt(lt.value.filter((S) => !S.disabled && !Ke(S)));
|
|
5471
5471
|
}, Oo = (S) => S.find((j) => !Ke(j) && !j[C.value]) === void 0, Eo = (S) => S.find((j) => !Ke(j)) === void 0, Ge = (S) => Pe.value[Pe.value.map((j) => String(j[T.value])).indexOf(String(S))], Io = (S) => Pe.value.findIndex((j) => wt.value.some((ue) => (parseInt(j[ue]) == j[ue] ? parseInt(j[ue]) : j[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Lo = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Ke(S), Po = (S) => {
|
|
@@ -5475,11 +5475,11 @@ function _7(t, e, a) {
|
|
|
5475
5475
|
) : S.filter((j) => Q.value ? j.__VISIBLE__.length : !0), vs = (S, j = !0) => {
|
|
5476
5476
|
let ue = S;
|
|
5477
5477
|
if (Q.value && b.value) {
|
|
5478
|
-
let ge =
|
|
5478
|
+
let ge = K.value;
|
|
5479
5479
|
ge || (ge = ($t, cn, s8) => wt.value.some((Do) => {
|
|
5480
|
-
let dn = _s(ka($t[Do]),
|
|
5481
|
-
return B.value ? dn.startsWith(_s(cn,
|
|
5482
|
-
})), ue = ue.filter(($t) => ge($t, Q.value,
|
|
5480
|
+
let dn = _s(ka($t[Do]), ne.value);
|
|
5481
|
+
return B.value ? dn.startsWith(_s(cn, ne.value)) : dn.indexOf(_s(cn, ne.value)) !== -1;
|
|
5482
|
+
})), ue = ue.filter(($t) => ge($t, Q.value, ae));
|
|
5483
5483
|
}
|
|
5484
5484
|
return l.value && j && (ue = ue.filter((ge) => !Lo(ge))), ue;
|
|
5485
5485
|
}, fs = (S) => {
|
|
@@ -5491,7 +5491,7 @@ function _7(t, e, a) {
|
|
|
5491
5491
|
}, Aa = () => {
|
|
5492
5492
|
We(H.value) || (z.value = Oa(H.value));
|
|
5493
5493
|
}, Ta = (S) => (Le.value = !0, new Promise((j, ue) => {
|
|
5494
|
-
s.value(Q.value,
|
|
5494
|
+
s.value(Q.value, ae).then((ge) => {
|
|
5495
5495
|
Ze.value = ge || [], typeof S == "function" && S(ge), Le.value = !1;
|
|
5496
5496
|
}).catch((ge) => {
|
|
5497
5497
|
console.error(ge), Ze.value = [], Le.value = !1;
|
|
@@ -5527,7 +5527,7 @@ function _7(t, e, a) {
|
|
|
5527
5527
|
}), un = () => {
|
|
5528
5528
|
je.value = ce(Q, (S) => {
|
|
5529
5529
|
S.length < w.value || !S && w.value !== 0 || (Le.value = !0, y.value && (Ze.value = []), setTimeout(() => {
|
|
5530
|
-
S == Q.value && s.value(Q.value,
|
|
5530
|
+
S == Q.value && s.value(Q.value, ae).then((j) => {
|
|
5531
5531
|
(S == Q.value || !Q.value) && (Ze.value = j, Gt.value = lt.value.filter((ue) => ue[C.value] !== !0)[0] || null, Le.value = !1);
|
|
5532
5532
|
}).catch(
|
|
5533
5533
|
/* istanbul ignore next */
|
|
@@ -5605,31 +5605,31 @@ function y7(t, e, a) {
|
|
|
5605
5605
|
groupSelect: d,
|
|
5606
5606
|
disabledProp: u,
|
|
5607
5607
|
groupOptions: c
|
|
5608
|
-
} = Ie(t), p = a.fo, h = a.fg, g = a.handleOptionClick, $ = a.handleGroupClick, m = a.search, k = a.pointer, w = a.setPointer, b = a.clearPointer, y = a.multiselect, I = a.isOpen, T = M(() => p.value.filter((H) => !H[u.value])), V = M(() => h.value.filter((H) => !H[u.value])), R = M(() => r.value !== "single" && d.value),
|
|
5609
|
-
const H =
|
|
5608
|
+
} = Ie(t), p = a.fo, h = a.fg, g = a.handleOptionClick, $ = a.handleGroupClick, m = a.search, k = a.pointer, w = a.setPointer, b = a.clearPointer, y = a.multiselect, I = a.isOpen, T = M(() => p.value.filter((H) => !H[u.value])), V = M(() => h.value.filter((H) => !H[u.value])), R = M(() => r.value !== "single" && d.value), x = M(() => k.value && k.value.group), J = M(() => ae(k.value)), ne = M(() => {
|
|
5609
|
+
const H = x.value ? k.value : (
|
|
5610
5610
|
/* istanbul ignore next */
|
|
5611
|
-
|
|
5611
|
+
ae(k.value)
|
|
5612
5612
|
), Q = V.value.map((Se) => Se[o.value]).indexOf(H[o.value]);
|
|
5613
5613
|
let he = V.value[Q - 1];
|
|
5614
5614
|
return he === void 0 && (he = X.value), he;
|
|
5615
5615
|
}), N = M(() => {
|
|
5616
|
-
let H = V.value.map((Q) => Q.label).indexOf(
|
|
5616
|
+
let H = V.value.map((Q) => Q.label).indexOf(x.value ? k.value[o.value] : ae(k.value)[o.value]) + 1;
|
|
5617
5617
|
return V.value.length <= H && (H = 0), V.value[H];
|
|
5618
5618
|
}), X = M(() => [...V.value].slice(-1)[0]), le = M(() => k.value.__VISIBLE__.filter((H) => !H[u.value])[0]), oe = M(() => {
|
|
5619
|
-
const H =
|
|
5619
|
+
const H = J.value.__VISIBLE__.filter((Q) => !Q[u.value]);
|
|
5620
5620
|
return H[H.map((Q) => Q[s.value]).indexOf(k.value[s.value]) - 1];
|
|
5621
5621
|
}), te = M(() => {
|
|
5622
|
-
const H =
|
|
5622
|
+
const H = ae(k.value).__VISIBLE__.filter((Q) => !Q[u.value]);
|
|
5623
5623
|
return H[H.map((Q) => Q[s.value]).indexOf(k.value[s.value]) + 1];
|
|
5624
|
-
}), P = M(() => [...
|
|
5624
|
+
}), P = M(() => [...ne.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), O = M(() => [...X.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), U = (H) => k.value && (!H.group && k.value[s.value] === H[s.value] || H.group !== void 0 && k.value[o.value] === H[o.value]) ? !0 : void 0, L = () => {
|
|
5625
5625
|
w(T.value[0] || null);
|
|
5626
5626
|
}, C = () => {
|
|
5627
|
-
!k.value || k.value[u.value] === !0 || (
|
|
5627
|
+
!k.value || k.value[u.value] === !0 || (x.value ? $(k.value) : g(k.value));
|
|
5628
5628
|
}, B = () => {
|
|
5629
5629
|
if (k.value === null)
|
|
5630
5630
|
w((l.value && R.value ? V.value[0].__CREATE__ ? T.value[0] : V.value[0] : T.value[0]) || null);
|
|
5631
5631
|
else if (l.value && R.value) {
|
|
5632
|
-
let H =
|
|
5632
|
+
let H = x.value ? le.value : te.value;
|
|
5633
5633
|
H === void 0 && (H = N.value, H.__CREATE__ && (H = H[c.value][0])), w(H || /* istanbul ignore next */
|
|
5634
5634
|
null);
|
|
5635
5635
|
} else {
|
|
@@ -5639,13 +5639,13 @@ function y7(t, e, a) {
|
|
|
5639
5639
|
$e(() => {
|
|
5640
5640
|
z();
|
|
5641
5641
|
});
|
|
5642
|
-
},
|
|
5642
|
+
}, K = () => {
|
|
5643
5643
|
if (k.value === null) {
|
|
5644
5644
|
let H = T.value[T.value.length - 1];
|
|
5645
5645
|
l.value && R.value && (H = O.value, H === void 0 && (H = X.value)), w(H || null);
|
|
5646
5646
|
} else if (l.value && R.value) {
|
|
5647
|
-
let H =
|
|
5648
|
-
H === void 0 && (H =
|
|
5647
|
+
let H = x.value ? P.value : oe.value;
|
|
5648
|
+
H === void 0 && (H = x.value ? ne.value : J.value, H.__CREATE__ && (H = P.value, H === void 0 && (H = ne.value))), w(H || /* istanbul ignore next */
|
|
5649
5649
|
null);
|
|
5650
5650
|
} else {
|
|
5651
5651
|
let H = T.value.map((Q) => Q[s.value]).indexOf(k.value[s.value]) - 1;
|
|
@@ -5654,12 +5654,12 @@ function y7(t, e, a) {
|
|
|
5654
5654
|
$e(() => {
|
|
5655
5655
|
z();
|
|
5656
5656
|
});
|
|
5657
|
-
},
|
|
5657
|
+
}, ae = (H) => V.value.find((Q) => Q.__VISIBLE__.map((he) => he[s.value]).indexOf(H[s.value]) !== -1), z = () => {
|
|
5658
5658
|
let H = y.value.querySelector("[data-pointed]");
|
|
5659
5659
|
if (!H)
|
|
5660
5660
|
return;
|
|
5661
5661
|
let Q = H.parentElement.parentElement;
|
|
5662
|
-
l.value && (Q =
|
|
5662
|
+
l.value && (Q = x.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > Q.clientHeight + Q.scrollTop && (Q.scrollTop = H.offsetTop + H.offsetHeight - Q.clientHeight), H.offsetTop < Q.scrollTop && (Q.scrollTop = H.offsetTop);
|
|
5663
5663
|
};
|
|
5664
5664
|
return ce(m, (H) => {
|
|
5665
5665
|
i.value && (H.length && n.value ? L() : b());
|
|
@@ -5680,7 +5680,7 @@ function y7(t, e, a) {
|
|
|
5680
5680
|
setPointerFirst: L,
|
|
5681
5681
|
selectPointer: C,
|
|
5682
5682
|
forwardPointer: B,
|
|
5683
|
-
backwardPointer:
|
|
5683
|
+
backwardPointer: K
|
|
5684
5684
|
};
|
|
5685
5685
|
}
|
|
5686
5686
|
function Ee(t) {
|
|
@@ -6047,20 +6047,20 @@ function qs(t, e) {
|
|
|
6047
6047
|
element: b,
|
|
6048
6048
|
strategy: "absolute",
|
|
6049
6049
|
placement: n
|
|
6050
|
-
}), R = ks(Object.assign({}, b, V)),
|
|
6051
|
-
top: I.top -
|
|
6052
|
-
bottom:
|
|
6053
|
-
left: I.left -
|
|
6054
|
-
right:
|
|
6055
|
-
},
|
|
6056
|
-
if (p === oa &&
|
|
6057
|
-
var N =
|
|
6058
|
-
Object.keys(
|
|
6050
|
+
}), R = ks(Object.assign({}, b, V)), x = p === oa ? R : T, J = {
|
|
6051
|
+
top: I.top - x.top + k.top,
|
|
6052
|
+
bottom: x.bottom - I.bottom + k.bottom,
|
|
6053
|
+
left: I.left - x.left + k.left,
|
|
6054
|
+
right: x.right - I.right + k.right
|
|
6055
|
+
}, ne = t.modifiersData.offset;
|
|
6056
|
+
if (p === oa && ne) {
|
|
6057
|
+
var N = ne[n];
|
|
6058
|
+
Object.keys(J).forEach(function(X) {
|
|
6059
6059
|
var le = [mt, Ye].indexOf(X) >= 0 ? 1 : -1, oe = [Ue, Ye].indexOf(X) >= 0 ? "y" : "x";
|
|
6060
|
-
|
|
6060
|
+
J[X] += N[oe] * le;
|
|
6061
6061
|
});
|
|
6062
6062
|
}
|
|
6063
|
-
return
|
|
6063
|
+
return J;
|
|
6064
6064
|
}
|
|
6065
6065
|
var Mn = {
|
|
6066
6066
|
placement: "bottom",
|
|
@@ -6115,19 +6115,19 @@ function Q7(t) {
|
|
|
6115
6115
|
u.rects = {
|
|
6116
6116
|
reference: k7(w, ss(b), u.options.strategy === "fixed"),
|
|
6117
6117
|
popper: uo(b)
|
|
6118
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
6119
|
-
return u.modifiersData[
|
|
6118
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(J) {
|
|
6119
|
+
return u.modifiersData[J.name] = Object.assign({}, J.data);
|
|
6120
6120
|
});
|
|
6121
6121
|
for (var y = 0; y < u.orderedModifiers.length; y++) {
|
|
6122
6122
|
if (u.reset === !0) {
|
|
6123
6123
|
u.reset = !1, y = -1;
|
|
6124
6124
|
continue;
|
|
6125
6125
|
}
|
|
6126
|
-
var I = u.orderedModifiers[y], T = I.fn, V = I.options, R = V === void 0 ? {} : V,
|
|
6126
|
+
var I = u.orderedModifiers[y], T = I.fn, V = I.options, R = V === void 0 ? {} : V, x = I.name;
|
|
6127
6127
|
typeof T == "function" && (u = T({
|
|
6128
6128
|
state: u,
|
|
6129
6129
|
options: R,
|
|
6130
|
-
name:
|
|
6130
|
+
name: x,
|
|
6131
6131
|
instance: h
|
|
6132
6132
|
}) || u);
|
|
6133
6133
|
}
|
|
@@ -6237,22 +6237,22 @@ function Tn(t) {
|
|
|
6237
6237
|
var T = ss(a), V = "clientHeight", R = "clientWidth";
|
|
6238
6238
|
if (T === Ee(a) && (T = _t(a), at(T).position !== "static" && l === "absolute" && (V = "scrollHeight", R = "scrollWidth")), T = T, n === Ue || (n === Xe || n === mt) && i === va) {
|
|
6239
6239
|
y = Ye;
|
|
6240
|
-
var
|
|
6240
|
+
var x = c && T === I && I.visualViewport ? I.visualViewport.height : (
|
|
6241
6241
|
// $FlowFixMe[prop-missing]
|
|
6242
6242
|
T[V]
|
|
6243
6243
|
);
|
|
6244
|
-
$ -=
|
|
6244
|
+
$ -= x - s.height, $ *= r ? 1 : -1;
|
|
6245
6245
|
}
|
|
6246
6246
|
if (n === Xe || (n === Ue || n === Ye) && i === va) {
|
|
6247
6247
|
b = mt;
|
|
6248
|
-
var
|
|
6248
|
+
var J = c && T === I && I.visualViewport ? I.visualViewport.width : (
|
|
6249
6249
|
// $FlowFixMe[prop-missing]
|
|
6250
6250
|
T[R]
|
|
6251
6251
|
);
|
|
6252
|
-
h -=
|
|
6252
|
+
h -= J - s.width, h *= r ? 1 : -1;
|
|
6253
6253
|
}
|
|
6254
6254
|
}
|
|
6255
|
-
var
|
|
6255
|
+
var ne = Object.assign({
|
|
6256
6256
|
position: l
|
|
6257
6257
|
}, d && sp), N = u === !0 ? np({
|
|
6258
6258
|
x: h,
|
|
@@ -6263,9 +6263,9 @@ function Tn(t) {
|
|
|
6263
6263
|
};
|
|
6264
6264
|
if (h = N.x, $ = N.y, r) {
|
|
6265
6265
|
var X;
|
|
6266
|
-
return Object.assign({},
|
|
6266
|
+
return Object.assign({}, ne, (X = {}, X[y] = w ? "0" : "", X[b] = k ? "0" : "", X.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + $ + "px)" : "translate3d(" + h + "px, " + $ + "px, 0)", X));
|
|
6267
6267
|
}
|
|
6268
|
-
return Object.assign({},
|
|
6268
|
+
return Object.assign({}, ne, (e = {}, e[y] = w ? $ + "px" : "", e[b] = k ? h + "px" : "", e.transform = "", e));
|
|
6269
6269
|
}
|
|
6270
6270
|
function op(t) {
|
|
6271
6271
|
var e = t.state, a = t.options, s = a.gpuAcceleration, n = s === void 0 ? !0 : s, i = a.adaptive, o = i === void 0 ? !0 : i, l = a.roundOffsets, r = l === void 0 ? !0 : l, d = {
|
|
@@ -6357,28 +6357,28 @@ function fp(t) {
|
|
|
6357
6357
|
rootBoundary: d,
|
|
6358
6358
|
padding: c,
|
|
6359
6359
|
altBoundary: u
|
|
6360
|
-
}), k = pt(e.placement), w = xt(e.placement), b = !w, y = vo(k), I = pp(y), T = e.modifiersData.popperOffsets, V = e.rects.reference, R = e.rects.popper,
|
|
6360
|
+
}), k = pt(e.placement), w = xt(e.placement), b = !w, y = vo(k), I = pp(y), T = e.modifiersData.popperOffsets, V = e.rects.reference, R = e.rects.popper, x = typeof $ == "function" ? $(Object.assign({}, e.rects, {
|
|
6361
6361
|
placement: e.placement
|
|
6362
|
-
})) : $,
|
|
6363
|
-
mainAxis:
|
|
6364
|
-
altAxis:
|
|
6362
|
+
})) : $, J = typeof x == "number" ? {
|
|
6363
|
+
mainAxis: x,
|
|
6364
|
+
altAxis: x
|
|
6365
6365
|
} : Object.assign({
|
|
6366
6366
|
mainAxis: 0,
|
|
6367
6367
|
altAxis: 0
|
|
6368
|
-
},
|
|
6368
|
+
}, x), ne = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, N = {
|
|
6369
6369
|
x: 0,
|
|
6370
6370
|
y: 0
|
|
6371
6371
|
};
|
|
6372
6372
|
if (T) {
|
|
6373
6373
|
if (i) {
|
|
6374
|
-
var X, le = y === "y" ? Ue : Xe, oe = y === "y" ? Ye : mt, te = y === "y" ? "height" : "width", P = T[y], O = P + m[le], U = P - m[oe], L = h ? -R[te] / 2 : 0, C = w === Yt ? V[te] : R[te], B = w === Yt ? -R[te] : -V[te],
|
|
6374
|
+
var X, le = y === "y" ? Ue : Xe, oe = y === "y" ? Ye : mt, te = y === "y" ? "height" : "width", P = T[y], O = P + m[le], U = P - m[oe], L = h ? -R[te] / 2 : 0, C = w === Yt ? V[te] : R[te], B = w === Yt ? -R[te] : -V[te], K = e.elements.arrow, ae = h && K ? uo(K) : {
|
|
6375
6375
|
width: 0,
|
|
6376
6376
|
height: 0
|
|
6377
|
-
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ho(), H = z[le], Q = z[oe], he = Va(0, V[te],
|
|
6377
|
+
}, z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ho(), H = z[le], Q = z[oe], he = Va(0, V[te], ae[te]), Se = b ? V[te] / 2 - L - he - H - J.mainAxis : C - he - H - J.mainAxis, Gt = b ? -V[te] / 2 + L + he + Q + J.mainAxis : B + he + Q + J.mainAxis, Xt = e.elements.arrow && ss(e.elements.arrow), nt = Xt ? y === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (X = ne == null ? void 0 : ne[y]) != null ? X : 0, ls = P + Se - $a - nt, ot = P + Gt - $a, ka = Va(h ? Wa(O, ls) : O, P, h ? Mt(U, ot) : U);
|
|
6378
6378
|
T[y] = ka, N[y] = ka - P;
|
|
6379
6379
|
}
|
|
6380
6380
|
if (l) {
|
|
6381
|
-
var it, Ze = y === "x" ? Ue : Xe, Le = y === "x" ? Ye : mt, je = T[I], xe = I === "y" ? "height" : "width", Qt = je + m[Ze], Sa = je - m[Le], Pe = [Ue, Xe].indexOf(k) !== -1, Jt = (it =
|
|
6381
|
+
var it, Ze = y === "x" ? Ue : Xe, Le = y === "x" ? Ye : mt, je = T[I], xe = I === "y" ? "height" : "width", Qt = je + m[Ze], Sa = je - m[Le], Pe = [Ue, Xe].indexOf(k) !== -1, Jt = (it = ne == null ? void 0 : ne[I]) != null ? it : 0, lt = Pe ? Qt : je - V[xe] - R[xe] - Jt + J.altAxis, bt = Pe ? je + V[xe] + R[xe] - Jt - J.altAxis : Sa, Ma = h && Pe ? vp(lt, je, bt) : Va(h ? lt : Qt, je, h ? bt : Sa);
|
|
6382
6382
|
T[I] = Ma, N[I] = Ma - je;
|
|
6383
6383
|
}
|
|
6384
6384
|
e.modifiersData[s] = N;
|
|
@@ -6439,8 +6439,8 @@ function _p(t) {
|
|
|
6439
6439
|
function yp(t) {
|
|
6440
6440
|
var e = t.state, a = t.options, s = t.name;
|
|
6441
6441
|
if (!e.modifiersData[s]._skip) {
|
|
6442
|
-
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, o = a.altAxis, l = o === void 0 ? !0 : o, r = a.fallbackPlacements, d = a.padding, u = a.boundary, c = a.rootBoundary, p = a.altBoundary, h = a.flipVariations, g = h === void 0 ? !0 : h, $ = a.allowedAutoPlacements, m = e.options.placement, k = pt(m), w = k === m, b = r || (w || !g ? [Da(m)] : _p(m)), y = [m].concat(b).reduce(function(
|
|
6443
|
-
return
|
|
6442
|
+
for (var n = a.mainAxis, i = n === void 0 ? !0 : n, o = a.altAxis, l = o === void 0 ? !0 : o, r = a.fallbackPlacements, d = a.padding, u = a.boundary, c = a.rootBoundary, p = a.altBoundary, h = a.flipVariations, g = h === void 0 ? !0 : h, $ = a.allowedAutoPlacements, m = e.options.placement, k = pt(m), w = k === m, b = r || (w || !g ? [Da(m)] : _p(m)), y = [m].concat(b).reduce(function(ae, z) {
|
|
6443
|
+
return ae.concat(pt(z) === zs ? Cp(e, {
|
|
6444
6444
|
placement: z,
|
|
6445
6445
|
boundary: u,
|
|
6446
6446
|
rootBoundary: c,
|
|
@@ -6448,9 +6448,9 @@ function yp(t) {
|
|
|
6448
6448
|
flipVariations: g,
|
|
6449
6449
|
allowedAutoPlacements: $
|
|
6450
6450
|
}) : z);
|
|
6451
|
-
}, []), I = e.rects.reference, T = e.rects.popper, V = /* @__PURE__ */ new Map(), R = !0,
|
|
6452
|
-
var
|
|
6453
|
-
placement:
|
|
6451
|
+
}, []), I = e.rects.reference, T = e.rects.popper, V = /* @__PURE__ */ new Map(), R = !0, x = y[0], J = 0; J < y.length; J++) {
|
|
6452
|
+
var ne = y[J], N = pt(ne), X = xt(ne) === Yt, le = [Ue, Ye].indexOf(N) >= 0, oe = le ? "width" : "height", te = qs(e, {
|
|
6453
|
+
placement: ne,
|
|
6454
6454
|
boundary: u,
|
|
6455
6455
|
rootBoundary: c,
|
|
6456
6456
|
altBoundary: p,
|
|
@@ -6458,13 +6458,13 @@ function yp(t) {
|
|
|
6458
6458
|
}), P = le ? X ? mt : Xe : X ? Ye : Ue;
|
|
6459
6459
|
I[oe] > T[oe] && (P = Da(P));
|
|
6460
6460
|
var O = Da(P), U = [];
|
|
6461
|
-
if (i && U.push(te[N] <= 0), l && U.push(te[P] <= 0, te[O] <= 0), U.every(function(
|
|
6462
|
-
return
|
|
6461
|
+
if (i && U.push(te[N] <= 0), l && U.push(te[P] <= 0, te[O] <= 0), U.every(function(ae) {
|
|
6462
|
+
return ae;
|
|
6463
6463
|
})) {
|
|
6464
|
-
|
|
6464
|
+
x = ne, R = !1;
|
|
6465
6465
|
break;
|
|
6466
6466
|
}
|
|
6467
|
-
V.set(
|
|
6467
|
+
V.set(ne, U);
|
|
6468
6468
|
}
|
|
6469
6469
|
if (R)
|
|
6470
6470
|
for (var L = g ? 3 : 1, C = function(z) {
|
|
@@ -6476,13 +6476,13 @@ function yp(t) {
|
|
|
6476
6476
|
});
|
|
6477
6477
|
});
|
|
6478
6478
|
if (H)
|
|
6479
|
-
return
|
|
6479
|
+
return x = H, "break";
|
|
6480
6480
|
}, B = L; B > 0; B--) {
|
|
6481
|
-
var
|
|
6482
|
-
if (
|
|
6481
|
+
var K = C(B);
|
|
6482
|
+
if (K === "break")
|
|
6483
6483
|
break;
|
|
6484
6484
|
}
|
|
6485
|
-
e.placement !==
|
|
6485
|
+
e.placement !== x && (e.modifiersData[s]._skip = !0, e.placement = x, e.reset = !0);
|
|
6486
6486
|
}
|
|
6487
6487
|
}
|
|
6488
6488
|
var bp = {
|
|
@@ -6620,25 +6620,25 @@ function kp(t, e, a) {
|
|
|
6620
6620
|
createTag: c,
|
|
6621
6621
|
createOption: p,
|
|
6622
6622
|
reverse: h
|
|
6623
|
-
} = Ie(t), g = Pt().proxy, $ = a.iv, m = a.update, k = a.deselect, w = a.search, b = a.setPointer, y = a.selectPointer, I = a.backwardPointer, T = a.forwardPointer, V = a.multiselect, R = a.wrapper,
|
|
6623
|
+
} = Ie(t), g = Pt().proxy, $ = a.iv, m = a.update, k = a.deselect, w = a.search, b = a.setPointer, y = a.selectPointer, I = a.backwardPointer, T = a.forwardPointer, V = a.multiselect, R = a.wrapper, x = a.tags, J = a.isOpen, ne = a.open, N = a.blur, X = a.fo, le = M(() => c.value || p.value || !1), oe = M(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), te = () => {
|
|
6624
6624
|
s.value === "tags" && !l.value && le.value && o.value && !d.value && b(X.value[X.value.map((U) => U[r.value]).indexOf(w.value)]);
|
|
6625
6625
|
};
|
|
6626
6626
|
return {
|
|
6627
6627
|
handleKeydown: (U) => {
|
|
6628
6628
|
e.emit("keydown", U, g);
|
|
6629
6629
|
let L, C;
|
|
6630
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(U.key) !== -1 && s.value === "tags" && (L = [...V.value.querySelectorAll("[data-tags] > *")].filter((B) => B !==
|
|
6630
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(U.key) !== -1 && s.value === "tags" && (L = [...V.value.querySelectorAll("[data-tags] > *")].filter((B) => B !== x.value), C = L.findIndex((B) => B === document.activeElement)), U.key) {
|
|
6631
6631
|
case "Backspace":
|
|
6632
6632
|
if (s.value === "single" || o.value && [null, ""].indexOf(w.value) === -1 || $.value.length === 0)
|
|
6633
6633
|
return;
|
|
6634
|
-
let B = $.value.filter((
|
|
6634
|
+
let B = $.value.filter((K) => !K.disabled && K.remove !== !1);
|
|
6635
6635
|
B.length && k(B[B.length - 1]);
|
|
6636
6636
|
break;
|
|
6637
6637
|
case "Enter":
|
|
6638
6638
|
if (U.preventDefault(), U.keyCode === 229)
|
|
6639
6639
|
return;
|
|
6640
6640
|
if (C !== -1 && C !== void 0) {
|
|
6641
|
-
m([...$.value].filter((
|
|
6641
|
+
m([...$.value].filter((K, ae) => ae !== C)), C === L.length - 1 && (L.length - 1 ? L[L.length - 2].focus() : o.value ? x.value.querySelector("input").focus() : R.value.focus());
|
|
6642
6642
|
return;
|
|
6643
6643
|
}
|
|
6644
6644
|
if (oe.value.indexOf("enter") === -1 && le.value)
|
|
@@ -6669,22 +6669,22 @@ function kp(t, e, a) {
|
|
|
6669
6669
|
case "ArrowUp":
|
|
6670
6670
|
if (U.preventDefault(), !l.value)
|
|
6671
6671
|
return;
|
|
6672
|
-
|
|
6672
|
+
J.value || ne(), I();
|
|
6673
6673
|
break;
|
|
6674
6674
|
case "ArrowDown":
|
|
6675
6675
|
if (U.preventDefault(), !l.value)
|
|
6676
6676
|
return;
|
|
6677
|
-
|
|
6677
|
+
J.value || ne(), T();
|
|
6678
6678
|
break;
|
|
6679
6679
|
case "ArrowLeft":
|
|
6680
|
-
if (o.value &&
|
|
6680
|
+
if (o.value && x.value && x.value.querySelector("input").selectionStart || U.shiftKey || s.value !== "tags" || !$.value || !$.value.length)
|
|
6681
6681
|
return;
|
|
6682
6682
|
U.preventDefault(), C === -1 ? L[L.length - 1].focus() : C > 0 && L[C - 1].focus();
|
|
6683
6683
|
break;
|
|
6684
6684
|
case "ArrowRight":
|
|
6685
6685
|
if (C === -1 || U.shiftKey || s.value !== "tags" || !$.value || !$.value.length)
|
|
6686
6686
|
return;
|
|
6687
|
-
U.preventDefault(), L.length > C + 1 ? L[C + 1].focus() : o.value ?
|
|
6687
|
+
U.preventDefault(), L.length > C + 1 ? L[C + 1].focus() : o.value ? x.value.querySelector("input").focus() : o.value || R.value.focus();
|
|
6688
6688
|
break;
|
|
6689
6689
|
}
|
|
6690
6690
|
},
|
|
@@ -6864,13 +6864,13 @@ function Ap(t, e, a) {
|
|
|
6864
6864
|
}, R = (N) => {
|
|
6865
6865
|
let X = [];
|
|
6866
6866
|
return n && n.value && X.push(n.value), X.push("multiselect-group"), X.push(N.index), X.join("-");
|
|
6867
|
-
},
|
|
6867
|
+
}, x = (N) => {
|
|
6868
6868
|
let X = [];
|
|
6869
6869
|
return X.push(N), X.join(" ");
|
|
6870
|
-
},
|
|
6870
|
+
}, J = (N) => {
|
|
6871
6871
|
let X = [];
|
|
6872
6872
|
return X.push(N), X.join(" ");
|
|
6873
|
-
},
|
|
6873
|
+
}, ne = (N) => `${N} ❎`;
|
|
6874
6874
|
return Lt(() => {
|
|
6875
6875
|
if (n && n.value && document && document.querySelector) {
|
|
6876
6876
|
let N = document.querySelector(`[for="${n.value}"]`);
|
|
@@ -6885,10 +6885,10 @@ function Ap(t, e, a) {
|
|
|
6885
6885
|
ariaMultiselectable: y,
|
|
6886
6886
|
ariaActiveDescendant: w,
|
|
6887
6887
|
ariaOptionId: V,
|
|
6888
|
-
ariaOptionLabel:
|
|
6888
|
+
ariaOptionLabel: x,
|
|
6889
6889
|
ariaGroupId: R,
|
|
6890
|
-
ariaGroupLabel:
|
|
6891
|
-
ariaTagLabel:
|
|
6890
|
+
ariaGroupLabel: J,
|
|
6891
|
+
ariaTagLabel: ne
|
|
6892
6892
|
};
|
|
6893
6893
|
}
|
|
6894
6894
|
function Tp(t, e, a) {
|
|
@@ -7303,7 +7303,7 @@ const Ip = ["id", "dir"], Lp = ["tabindex", "aria-controls", "aria-placeholder",
|
|
|
7303
7303
|
function Qp(t, e, a, s, n, i) {
|
|
7304
7304
|
return v(), _("div", {
|
|
7305
7305
|
ref: "multiselect",
|
|
7306
|
-
class:
|
|
7306
|
+
class: ee(t.classList.container),
|
|
7307
7307
|
id: a.searchable ? void 0 : a.id,
|
|
7308
7308
|
dir: a.rtl ? "rtl" : void 0,
|
|
7309
7309
|
onFocusin: e[10] || (e[10] = (...o) => t.handleFocusIn && t.handleFocusIn(...o)),
|
|
@@ -7351,20 +7351,20 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7351
7351
|
"div",
|
|
7352
7352
|
{
|
|
7353
7353
|
key: 1,
|
|
7354
|
-
class:
|
|
7354
|
+
class: ee(t.classList.tags),
|
|
7355
7355
|
"data-tags": ""
|
|
7356
7356
|
},
|
|
7357
7357
|
[
|
|
7358
7358
|
(v(!0), _(
|
|
7359
7359
|
fe,
|
|
7360
7360
|
null,
|
|
7361
|
-
Ce(t.iv, (o, l, r) =>
|
|
7361
|
+
Ce(t.iv, (o, l, r) => se(t.$slots, "tag", {
|
|
7362
7362
|
option: o,
|
|
7363
7363
|
handleTagRemove: t.handleTagRemove,
|
|
7364
7364
|
disabled: a.disabled
|
|
7365
7365
|
}, () => [
|
|
7366
7366
|
(v(), _("span", {
|
|
7367
|
-
class:
|
|
7367
|
+
class: ee([
|
|
7368
7368
|
t.classList.tag,
|
|
7369
7369
|
o.disabled ? t.classList.tagDisabled : null
|
|
7370
7370
|
]),
|
|
@@ -7376,7 +7376,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7376
7376
|
f(
|
|
7377
7377
|
"span",
|
|
7378
7378
|
{
|
|
7379
|
-
class:
|
|
7379
|
+
class: ee(t.classList.tagWrapper)
|
|
7380
7380
|
},
|
|
7381
7381
|
Y(t.localize(o[a.label])),
|
|
7382
7382
|
3
|
|
@@ -7384,13 +7384,13 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7384
7384
|
),
|
|
7385
7385
|
!a.disabled && !o.disabled ? (v(), _("span", {
|
|
7386
7386
|
key: 0,
|
|
7387
|
-
class:
|
|
7387
|
+
class: ee(t.classList.tagRemove),
|
|
7388
7388
|
onClick: ve((d) => t.handleTagRemove(o, d), ["stop"])
|
|
7389
7389
|
}, [
|
|
7390
7390
|
f(
|
|
7391
7391
|
"span",
|
|
7392
7392
|
{
|
|
7393
|
-
class:
|
|
7393
|
+
class: ee(t.classList.tagRemoveIcon)
|
|
7394
7394
|
},
|
|
7395
7395
|
null,
|
|
7396
7396
|
2
|
|
@@ -7405,7 +7405,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7405
7405
|
f(
|
|
7406
7406
|
"div",
|
|
7407
7407
|
{
|
|
7408
|
-
class:
|
|
7408
|
+
class: ee(t.classList.tagsSearchWrapper),
|
|
7409
7409
|
ref: "tags"
|
|
7410
7410
|
},
|
|
7411
7411
|
[
|
|
@@ -7413,7 +7413,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7413
7413
|
f(
|
|
7414
7414
|
"span",
|
|
7415
7415
|
{
|
|
7416
|
-
class:
|
|
7416
|
+
class: ee(t.classList.tagsSearchCopy)
|
|
7417
7417
|
},
|
|
7418
7418
|
Y(t.search),
|
|
7419
7419
|
3
|
|
@@ -7451,20 +7451,20 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7451
7451
|
/* CLASS */
|
|
7452
7452
|
)) : E("v-if", !0),
|
|
7453
7453
|
E(" Single label "),
|
|
7454
|
-
a.mode == "single" && t.hasSelected && !t.search && t.iv ?
|
|
7454
|
+
a.mode == "single" && t.hasSelected && !t.search && t.iv ? se(t.$slots, "singlelabel", {
|
|
7455
7455
|
key: 2,
|
|
7456
7456
|
value: t.iv
|
|
7457
7457
|
}, () => [
|
|
7458
7458
|
f(
|
|
7459
7459
|
"div",
|
|
7460
7460
|
{
|
|
7461
|
-
class:
|
|
7461
|
+
class: ee(t.classList.singleLabel)
|
|
7462
7462
|
},
|
|
7463
7463
|
[
|
|
7464
7464
|
f(
|
|
7465
7465
|
"span",
|
|
7466
7466
|
{
|
|
7467
|
-
class:
|
|
7467
|
+
class: ee(t.classList.singleLabelText)
|
|
7468
7468
|
},
|
|
7469
7469
|
Y(t.localize(t.iv[a.label])),
|
|
7470
7470
|
3
|
|
@@ -7476,21 +7476,21 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7476
7476
|
)
|
|
7477
7477
|
]) : E("v-if", !0),
|
|
7478
7478
|
E(" Multiple label "),
|
|
7479
|
-
a.mode == "multiple" && t.hasSelected && !t.search ?
|
|
7479
|
+
a.mode == "multiple" && t.hasSelected && !t.search ? se(t.$slots, "multiplelabel", {
|
|
7480
7480
|
key: 3,
|
|
7481
7481
|
values: t.iv
|
|
7482
7482
|
}, () => [
|
|
7483
7483
|
f("div", {
|
|
7484
|
-
class:
|
|
7484
|
+
class: ee(t.classList.multipleLabel),
|
|
7485
7485
|
innerHTML: t.multipleLabelText
|
|
7486
7486
|
}, null, 10, Bp)
|
|
7487
7487
|
]) : E("v-if", !0),
|
|
7488
7488
|
E(" Placeholder "),
|
|
7489
|
-
a.placeholder && !t.hasSelected && !t.search ?
|
|
7489
|
+
a.placeholder && !t.hasSelected && !t.search ? se(t.$slots, "placeholder", { key: 4 }, () => [
|
|
7490
7490
|
f(
|
|
7491
7491
|
"div",
|
|
7492
7492
|
{
|
|
7493
|
-
class:
|
|
7493
|
+
class: ee(t.classList.placeholder),
|
|
7494
7494
|
"aria-hidden": "true"
|
|
7495
7495
|
},
|
|
7496
7496
|
Y(a.placeholder),
|
|
@@ -7499,11 +7499,11 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7499
7499
|
)
|
|
7500
7500
|
]) : E("v-if", !0),
|
|
7501
7501
|
E(" Spinner "),
|
|
7502
|
-
a.loading || t.resolving ?
|
|
7502
|
+
a.loading || t.resolving ? se(t.$slots, "spinner", { key: 5 }, () => [
|
|
7503
7503
|
f(
|
|
7504
7504
|
"span",
|
|
7505
7505
|
{
|
|
7506
|
-
class:
|
|
7506
|
+
class: ee(t.classList.spinner),
|
|
7507
7507
|
"aria-hidden": "true"
|
|
7508
7508
|
},
|
|
7509
7509
|
null,
|
|
@@ -7512,7 +7512,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7512
7512
|
)
|
|
7513
7513
|
]) : E("v-if", !0),
|
|
7514
7514
|
E(" Clear "),
|
|
7515
|
-
t.hasSelected && !a.disabled && a.canClear && !t.busy ?
|
|
7515
|
+
t.hasSelected && !a.disabled && a.canClear && !t.busy ? se(t.$slots, "clear", {
|
|
7516
7516
|
key: 6,
|
|
7517
7517
|
clear: t.clear
|
|
7518
7518
|
}, () => [
|
|
@@ -7524,7 +7524,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7524
7524
|
role: "button",
|
|
7525
7525
|
"data-clear": "",
|
|
7526
7526
|
"aria-roledescription": "❎",
|
|
7527
|
-
class:
|
|
7527
|
+
class: ee(t.classList.clear),
|
|
7528
7528
|
onClick: e[6] || (e[6] = (...o) => t.clear && t.clear(...o)),
|
|
7529
7529
|
onKeyup: e[7] || (e[7] = vt((...o) => t.clear && t.clear(...o), ["enter"]))
|
|
7530
7530
|
},
|
|
@@ -7532,7 +7532,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7532
7532
|
f(
|
|
7533
7533
|
"span",
|
|
7534
7534
|
{
|
|
7535
|
-
class:
|
|
7535
|
+
class: ee(t.classList.clearIcon)
|
|
7536
7536
|
},
|
|
7537
7537
|
null,
|
|
7538
7538
|
2
|
|
@@ -7544,7 +7544,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7544
7544
|
)
|
|
7545
7545
|
]) : E("v-if", !0),
|
|
7546
7546
|
E(" Caret "),
|
|
7547
|
-
a.caret && a.showOptions ?
|
|
7547
|
+
a.caret && a.showOptions ? se(t.$slots, "caret", {
|
|
7548
7548
|
key: 7,
|
|
7549
7549
|
handleCaretClick: t.handleCaretClick,
|
|
7550
7550
|
isOpen: t.isOpen
|
|
@@ -7552,7 +7552,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7552
7552
|
f(
|
|
7553
7553
|
"span",
|
|
7554
7554
|
{
|
|
7555
|
-
class:
|
|
7555
|
+
class: ee(t.classList.caret),
|
|
7556
7556
|
onClick: e[8] || (e[8] = (...o) => t.handleCaretClick && t.handleCaretClick(...o)),
|
|
7557
7557
|
"aria-hidden": "true"
|
|
7558
7558
|
},
|
|
@@ -7569,13 +7569,13 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7569
7569
|
}, [
|
|
7570
7570
|
f("div", {
|
|
7571
7571
|
id: `${a.id}-dropdown`,
|
|
7572
|
-
class:
|
|
7572
|
+
class: ee(t.classList.dropdown),
|
|
7573
7573
|
tabindex: "-1",
|
|
7574
7574
|
ref: "dropdown"
|
|
7575
7575
|
}, [
|
|
7576
|
-
|
|
7576
|
+
se(t.$slots, "beforelist", { options: t.fo }),
|
|
7577
7577
|
f("ul", {
|
|
7578
|
-
class:
|
|
7578
|
+
class: ee(t.classList.options),
|
|
7579
7579
|
id: t.ariaControls,
|
|
7580
7580
|
role: "listbox"
|
|
7581
7581
|
}, [
|
|
@@ -7583,7 +7583,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7583
7583
|
fe,
|
|
7584
7584
|
{ key: 0 },
|
|
7585
7585
|
Ce(t.fg, (o, l, r) => (v(), _("li", {
|
|
7586
|
-
class:
|
|
7586
|
+
class: ee(t.classList.group),
|
|
7587
7587
|
key: r,
|
|
7588
7588
|
id: t.ariaGroupId(o),
|
|
7589
7589
|
"aria-label": t.ariaGroupLabel(t.localize(o[a.groupLabel])),
|
|
@@ -7592,12 +7592,12 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7592
7592
|
}, [
|
|
7593
7593
|
o.__CREATE__ ? E("v-if", !0) : (v(), _("div", {
|
|
7594
7594
|
key: 0,
|
|
7595
|
-
class:
|
|
7595
|
+
class: ee(t.classList.groupLabel(o)),
|
|
7596
7596
|
"data-pointed": t.isPointed(o),
|
|
7597
7597
|
onMouseenter: (d) => t.setPointer(o, l),
|
|
7598
7598
|
onMousedown: ve((d) => t.handleGroupClick(o), ["prevent"])
|
|
7599
7599
|
}, [
|
|
7600
|
-
|
|
7600
|
+
se(t.$slots, "grouplabel", {
|
|
7601
7601
|
group: o,
|
|
7602
7602
|
isSelected: t.isSelected,
|
|
7603
7603
|
isPointed: t.isPointed
|
|
@@ -7608,7 +7608,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7608
7608
|
])
|
|
7609
7609
|
], 42, Up)),
|
|
7610
7610
|
f("ul", {
|
|
7611
|
-
class:
|
|
7611
|
+
class: ee(t.classList.groupOptions),
|
|
7612
7612
|
"aria-label": t.ariaGroupLabel(t.localize(o[a.groupLabel])),
|
|
7613
7613
|
role: "group"
|
|
7614
7614
|
}, [
|
|
@@ -7616,7 +7616,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7616
7616
|
fe,
|
|
7617
7617
|
null,
|
|
7618
7618
|
Ce(o.__VISIBLE__, (d, u, c) => (v(), _("li", {
|
|
7619
|
-
class:
|
|
7619
|
+
class: ee(t.classList.option(d, o)),
|
|
7620
7620
|
"data-pointed": t.isPointed(d),
|
|
7621
7621
|
"data-selected": t.isSelected(d) || void 0,
|
|
7622
7622
|
key: c,
|
|
@@ -7627,7 +7627,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7627
7627
|
"aria-label": t.ariaOptionLabel(t.localize(d[a.label])),
|
|
7628
7628
|
role: "option"
|
|
7629
7629
|
}, [
|
|
7630
|
-
|
|
7630
|
+
se(t.$slots, "option", {
|
|
7631
7631
|
option: d,
|
|
7632
7632
|
isSelected: t.isSelected,
|
|
7633
7633
|
isPointed: t.isPointed,
|
|
@@ -7653,7 +7653,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7653
7653
|
fe,
|
|
7654
7654
|
{ key: 1 },
|
|
7655
7655
|
Ce(t.fo, (o, l, r) => (v(), _("li", {
|
|
7656
|
-
class:
|
|
7656
|
+
class: ee(t.classList.option(o)),
|
|
7657
7657
|
"data-pointed": t.isPointed(o),
|
|
7658
7658
|
"data-selected": t.isSelected(o) || void 0,
|
|
7659
7659
|
key: r,
|
|
@@ -7664,7 +7664,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7664
7664
|
"aria-label": t.ariaOptionLabel(t.localize(o[a.label])),
|
|
7665
7665
|
role: "option"
|
|
7666
7666
|
}, [
|
|
7667
|
-
|
|
7667
|
+
se(t.$slots, "option", {
|
|
7668
7668
|
option: o,
|
|
7669
7669
|
isSelected: t.isSelected,
|
|
7670
7670
|
isPointed: t.isPointed,
|
|
@@ -7683,15 +7683,15 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7683
7683
|
/* KEYED_FRAGMENT */
|
|
7684
7684
|
))
|
|
7685
7685
|
], 10, jp),
|
|
7686
|
-
t.noOptions ?
|
|
7686
|
+
t.noOptions ? se(t.$slots, "nooptions", { key: 0 }, () => [
|
|
7687
7687
|
f("div", {
|
|
7688
|
-
class:
|
|
7688
|
+
class: ee(t.classList.noOptions),
|
|
7689
7689
|
innerHTML: t.localize(a.noOptionsText)
|
|
7690
7690
|
}, null, 10, qp)
|
|
7691
7691
|
]) : E("v-if", !0),
|
|
7692
|
-
t.noResults ?
|
|
7692
|
+
t.noResults ? se(t.$slots, "noresults", { key: 1 }, () => [
|
|
7693
7693
|
f("div", {
|
|
7694
|
-
class:
|
|
7694
|
+
class: ee(t.classList.noResults),
|
|
7695
7695
|
innerHTML: t.localize(a.noResultsText)
|
|
7696
7696
|
}, null, 10, Yp)
|
|
7697
7697
|
]) : E("v-if", !0),
|
|
@@ -7699,15 +7699,15 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7699
7699
|
"div",
|
|
7700
7700
|
{
|
|
7701
7701
|
key: 2,
|
|
7702
|
-
class:
|
|
7702
|
+
class: ee(t.classList.inifinite),
|
|
7703
7703
|
ref: "infiniteLoader"
|
|
7704
7704
|
},
|
|
7705
7705
|
[
|
|
7706
|
-
|
|
7706
|
+
se(t.$slots, "infinite", {}, () => [
|
|
7707
7707
|
f(
|
|
7708
7708
|
"span",
|
|
7709
7709
|
{
|
|
7710
|
-
class:
|
|
7710
|
+
class: ee(t.classList.inifiniteSpinner)
|
|
7711
7711
|
},
|
|
7712
7712
|
null,
|
|
7713
7713
|
2
|
|
@@ -7718,13 +7718,13 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7718
7718
|
2
|
|
7719
7719
|
/* CLASS */
|
|
7720
7720
|
)) : E("v-if", !0),
|
|
7721
|
-
|
|
7721
|
+
se(t.$slots, "afterlist", { options: t.fo })
|
|
7722
7722
|
], 10, Rp)
|
|
7723
7723
|
], 8, ["to", "disabled"])),
|
|
7724
7724
|
E(" Hacky input element to show HTML5 required warning "),
|
|
7725
7725
|
a.required ? (v(), _("input", {
|
|
7726
7726
|
key: 0,
|
|
7727
|
-
class:
|
|
7727
|
+
class: ee(t.classList.fakeInput),
|
|
7728
7728
|
tabindex: "-1",
|
|
7729
7729
|
value: t.textValue,
|
|
7730
7730
|
required: ""
|
|
@@ -7758,7 +7758,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7758
7758
|
E(" Screen reader assistive text "),
|
|
7759
7759
|
a.searchable && t.hasSelected ? (v(), _("div", {
|
|
7760
7760
|
key: 2,
|
|
7761
|
-
class:
|
|
7761
|
+
class: ee(t.classList.assist),
|
|
7762
7762
|
id: t.ariaAssist,
|
|
7763
7763
|
"aria-hidden": "true"
|
|
7764
7764
|
}, Y(t.ariaLabel), 11, Xp)) : E("v-if", !0),
|
|
@@ -7766,7 +7766,7 @@ function Qp(t, e, a, s, n, i) {
|
|
|
7766
7766
|
f(
|
|
7767
7767
|
"div",
|
|
7768
7768
|
{
|
|
7769
|
-
class:
|
|
7769
|
+
class: ee(t.classList.spacer)
|
|
7770
7770
|
},
|
|
7771
7771
|
null,
|
|
7772
7772
|
2
|
|
@@ -7795,7 +7795,7 @@ const Me = /* @__PURE__ */ G({
|
|
|
7795
7795
|
Ce(n.$slots, (o, l) => ({
|
|
7796
7796
|
name: l,
|
|
7797
7797
|
fn: Z((r) => [
|
|
7798
|
-
|
|
7798
|
+
se(n.$slots, l, ha(ma(r ?? {})))
|
|
7799
7799
|
])
|
|
7800
7800
|
}))
|
|
7801
7801
|
]), 1536));
|
|
@@ -7926,7 +7926,7 @@ const ev = { class: "ao-tasks" }, tv = { class: "ao-tasks__list" }, av = ["id",
|
|
|
7926
7926
|
id: h.id,
|
|
7927
7927
|
value: h.name,
|
|
7928
7928
|
readonly: !c.isEditable,
|
|
7929
|
-
class:
|
|
7929
|
+
class: ee(["ao-field__input ao-subtask__field", { "ao-subtask__field--checked": h.isDone }]),
|
|
7930
7930
|
type: "text",
|
|
7931
7931
|
onChange: (m) => o(m, h.id),
|
|
7932
7932
|
onKeyup: vt(u, ["enter"])
|
|
@@ -8027,7 +8027,7 @@ const ov = ["onDrop", "onDragenter", "onDragover", "onDragleave"], iv = { class:
|
|
|
8027
8027
|
u.dataTransfer && e("add", c);
|
|
8028
8028
|
}
|
|
8029
8029
|
return (u, c) => (v(), _("div", {
|
|
8030
|
-
class:
|
|
8030
|
+
class: ee([
|
|
8031
8031
|
"ao-files__wrapper",
|
|
8032
8032
|
{
|
|
8033
8033
|
"ao-files__wrapper--drop-active": o.value
|
|
@@ -8038,7 +8038,7 @@ const ov = ["onDrop", "onDragenter", "onDragover", "onDragleave"], iv = { class:
|
|
|
8038
8038
|
onDragover: ve(l, ["prevent"]),
|
|
8039
8039
|
onDragleave: ve(r, ["prevent"])
|
|
8040
8040
|
}, [
|
|
8041
|
-
|
|
8041
|
+
se(u.$slots, "default", {}, () => [
|
|
8042
8042
|
f("span", iv, Y(u.$t("activity.attachment.placeholder.resting")), 1)
|
|
8043
8043
|
]),
|
|
8044
8044
|
u.attachments ? (v(), _("ul", lv, [
|
|
@@ -8191,7 +8191,7 @@ const gv = { class: "ao-comment" }, Cv = { class: "ao-comment__created-at" }, _v
|
|
|
8191
8191
|
}, [
|
|
8192
8192
|
(v(!0), _(fe, null, Ce(F(k), (R) => (v(), _("li", {
|
|
8193
8193
|
key: R.id,
|
|
8194
|
-
onClick: (
|
|
8194
|
+
onClick: (x) => F(y)(R.name)
|
|
8195
8195
|
}, " @" + Y(R.name), 9, $v))), 128))
|
|
8196
8196
|
], 4)) : E("", !0)
|
|
8197
8197
|
])
|
|
@@ -8486,7 +8486,7 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8486
8486
|
var B;
|
|
8487
8487
|
return {
|
|
8488
8488
|
...C,
|
|
8489
|
-
disabled: (B = a.activity.blocking) == null ? void 0 : B.some((
|
|
8489
|
+
disabled: (B = a.activity.blocking) == null ? void 0 : B.some((K) => K.id === C.value)
|
|
8490
8490
|
};
|
|
8491
8491
|
})), $ = M({
|
|
8492
8492
|
get() {
|
|
@@ -8504,7 +8504,7 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8504
8504
|
return {
|
|
8505
8505
|
...C,
|
|
8506
8506
|
disabled: (B = a.activity.dependingOn) == null ? void 0 : B.some(
|
|
8507
|
-
(
|
|
8507
|
+
(K) => K.id === C.value
|
|
8508
8508
|
)
|
|
8509
8509
|
};
|
|
8510
8510
|
})), k = (C) => {
|
|
@@ -8544,17 +8544,17 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8544
8544
|
activityId: a.activity.id,
|
|
8545
8545
|
files: C
|
|
8546
8546
|
});
|
|
8547
|
-
},
|
|
8547
|
+
}, x = (C) => {
|
|
8548
8548
|
e("removeFile", {
|
|
8549
8549
|
activityId: a.activity.id,
|
|
8550
8550
|
file: C
|
|
8551
8551
|
});
|
|
8552
|
-
},
|
|
8552
|
+
}, J = M(() => a.projects.map((C) => ({
|
|
8553
8553
|
value: C.id,
|
|
8554
8554
|
label: C.name
|
|
8555
|
-
}))),
|
|
8556
|
-
var B,
|
|
8557
|
-
const C = (
|
|
8555
|
+
}))), ne = M(() => {
|
|
8556
|
+
var B, K, ae;
|
|
8557
|
+
const C = (ae = (K = (B = a.activity) == null ? void 0 : B.project) == null ? void 0 : K.phases) == null ? void 0 : ae.reduce(
|
|
8558
8558
|
(z, H) => [...z, ...H.milestones],
|
|
8559
8559
|
[]
|
|
8560
8560
|
);
|
|
@@ -8597,18 +8597,18 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8597
8597
|
return ((C = a.activity.createdBy) == null ? void 0 : C.firstName) && ((B = a.activity.createdBy) == null ? void 0 : B.lastName) && `${a.activity.createdBy.firstName} ${a.activity.createdBy.lastName}`;
|
|
8598
8598
|
});
|
|
8599
8599
|
function L() {
|
|
8600
|
-
const C = window.location.origin, B = a.activity.slug,
|
|
8601
|
-
navigator.clipboard.writeText(
|
|
8602
|
-
console.log(`Link copied to clipboard: ${
|
|
8600
|
+
const C = window.location.origin, B = a.activity.slug, K = `${C}/activity-feed/slug/${B}`;
|
|
8601
|
+
navigator.clipboard.writeText(K).then(() => {
|
|
8602
|
+
console.log(`Link copied to clipboard: ${K}`), e("toast", "clipboard.copy.success", "success");
|
|
8603
8603
|
}).catch(() => {
|
|
8604
8604
|
console.log("Failed to copy link"), e("toast", "clipboard.copy.error", "error");
|
|
8605
8605
|
});
|
|
8606
8606
|
}
|
|
8607
8607
|
return (C, B) => (v(), D(Qa, {
|
|
8608
|
-
onClose: B[10] || (B[10] = (
|
|
8608
|
+
onClose: B[10] || (B[10] = (K) => C.$emit("close"))
|
|
8609
8609
|
}, {
|
|
8610
8610
|
default: Z(() => {
|
|
8611
|
-
var
|
|
8611
|
+
var K, ae, z;
|
|
8612
8612
|
return [
|
|
8613
8613
|
f("div", Pv, [
|
|
8614
8614
|
f("div", Hv, [
|
|
@@ -8631,22 +8631,22 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8631
8631
|
"onUpdate:title": n
|
|
8632
8632
|
}, null, 8, ["title", "is-editable"]),
|
|
8633
8633
|
f("div", Bv, [
|
|
8634
|
-
|
|
8634
|
+
J.value ? (v(), _("label", Rv, [
|
|
8635
8635
|
f("span", jv, Y(C.$t("activity.project.label")), 1),
|
|
8636
8636
|
A(Me, {
|
|
8637
|
-
options:
|
|
8638
|
-
value: (
|
|
8637
|
+
options: J.value,
|
|
8638
|
+
value: (K = C.activity.project) == null ? void 0 : K.id,
|
|
8639
8639
|
searchable: !0,
|
|
8640
8640
|
disabled: !s.value,
|
|
8641
8641
|
caret: s.value,
|
|
8642
8642
|
onChange: N
|
|
8643
8643
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8644
8644
|
])) : E("", !0),
|
|
8645
|
-
|
|
8645
|
+
ne.value ? (v(), _("label", Nv, [
|
|
8646
8646
|
f("span", Uv, Y(C.$t("activity.milestone.label")), 1),
|
|
8647
8647
|
A(Me, {
|
|
8648
|
-
options:
|
|
8649
|
-
value: (
|
|
8648
|
+
options: ne.value,
|
|
8649
|
+
value: (ae = C.activity.milestone) == null ? void 0 : ae.id,
|
|
8650
8650
|
searchable: !0,
|
|
8651
8651
|
disabled: !s.value,
|
|
8652
8652
|
caret: s.value,
|
|
@@ -8654,7 +8654,7 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8654
8654
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
8655
8655
|
])) : E("", !0)
|
|
8656
8656
|
]),
|
|
8657
|
-
|
|
8657
|
+
se(C.$slots, "header")
|
|
8658
8658
|
]),
|
|
8659
8659
|
f("div", Fv, [
|
|
8660
8660
|
f("fieldset", Zv, [
|
|
@@ -8663,7 +8663,7 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8663
8663
|
attachments: C.activity.attachments,
|
|
8664
8664
|
"is-editable": C.attachmentEnabled && s.value && C.isTemplate !== !0 && !!C.userId,
|
|
8665
8665
|
onAdd: R,
|
|
8666
|
-
onRemove:
|
|
8666
|
+
onRemove: x
|
|
8667
8667
|
}, {
|
|
8668
8668
|
default: Z(() => [
|
|
8669
8669
|
f("label", zv, [
|
|
@@ -8853,7 +8853,7 @@ const Ss = /* @__PURE__ */ G({
|
|
|
8853
8853
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
8854
8854
|
])
|
|
8855
8855
|
])) : E("", !0),
|
|
8856
|
-
|
|
8856
|
+
se(C.$slots, "default", { activity: C.activity })
|
|
8857
8857
|
]),
|
|
8858
8858
|
f("div", bf, [
|
|
8859
8859
|
A(Ss, {
|
|
@@ -9194,7 +9194,7 @@ const Rf = {
|
|
|
9194
9194
|
var P, O;
|
|
9195
9195
|
return ((O = (P = n.value) == null ? void 0 : P.phases) == null ? void 0 : O.reduce((U, L) => {
|
|
9196
9196
|
const B = (L.milestones || []).reduce(
|
|
9197
|
-
(
|
|
9197
|
+
(K, ae) => ae.activities ? [...K, ...ae.activities] : K,
|
|
9198
9198
|
[]
|
|
9199
9199
|
);
|
|
9200
9200
|
return [...U, ...B];
|
|
@@ -9318,11 +9318,11 @@ const Rf = {
|
|
|
9318
9318
|
});
|
|
9319
9319
|
}, V = q(!1), R = () => {
|
|
9320
9320
|
V.value = !V.value;
|
|
9321
|
-
},
|
|
9321
|
+
}, x = () => {
|
|
9322
9322
|
e("addRule", { templateId: a.templateId });
|
|
9323
|
-
},
|
|
9323
|
+
}, J = (P) => {
|
|
9324
9324
|
e("removeRule", { id: P, templateId: a.templateId });
|
|
9325
|
-
},
|
|
9325
|
+
}, ne = (P) => {
|
|
9326
9326
|
var O;
|
|
9327
9327
|
if (P.moved) {
|
|
9328
9328
|
const U = ya(P, ((O = n.value) == null ? void 0 : O.phases) ?? []);
|
|
@@ -9366,7 +9366,7 @@ const Rf = {
|
|
|
9366
9366
|
e("removeFile", P);
|
|
9367
9367
|
};
|
|
9368
9368
|
return (P, O) => {
|
|
9369
|
-
var U, L, C, B,
|
|
9369
|
+
var U, L, C, B, K, ae;
|
|
9370
9370
|
return n.value ? (v(), _("div", Rf, [
|
|
9371
9371
|
A(ba, {
|
|
9372
9372
|
"can-go-back": !0,
|
|
@@ -9392,7 +9392,7 @@ const Rf = {
|
|
|
9392
9392
|
class: "ao-templates__list",
|
|
9393
9393
|
"item-key": "id",
|
|
9394
9394
|
handle: ".ao-card__drag",
|
|
9395
|
-
onChange:
|
|
9395
|
+
onChange: ne
|
|
9396
9396
|
}, {
|
|
9397
9397
|
header: Z(() => [
|
|
9398
9398
|
A(be, {
|
|
@@ -9463,8 +9463,8 @@ const Rf = {
|
|
|
9463
9463
|
key: 0,
|
|
9464
9464
|
activity: u.value,
|
|
9465
9465
|
"activity-types": P.activityTypes,
|
|
9466
|
-
breadcrumbs: `${n.value.name} / ${(B = o.value) == null ? void 0 : B.name} / ${(
|
|
9467
|
-
"milestone-id": (
|
|
9466
|
+
breadcrumbs: `${n.value.name} / ${(B = o.value) == null ? void 0 : B.name} / ${(K = l.value) == null ? void 0 : K.name}`,
|
|
9467
|
+
"milestone-id": (ae = l.value) == null ? void 0 : ae.id,
|
|
9468
9468
|
"template-activities": d.value,
|
|
9469
9469
|
"template-milestones": r.value,
|
|
9470
9470
|
"is-template": !0,
|
|
@@ -9482,7 +9482,7 @@ const Rf = {
|
|
|
9482
9482
|
onRemoveFile: te
|
|
9483
9483
|
}, {
|
|
9484
9484
|
default: Z((z) => [
|
|
9485
|
-
|
|
9485
|
+
se(P.$slots, "activityDetailsBody", ha(ma(z)))
|
|
9486
9486
|
]),
|
|
9487
9487
|
_: 3
|
|
9488
9488
|
}, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : E("", !0)
|
|
@@ -9496,8 +9496,8 @@ const Rf = {
|
|
|
9496
9496
|
"template-milestones": r.value,
|
|
9497
9497
|
"template-activities": d.value,
|
|
9498
9498
|
onClose: R,
|
|
9499
|
-
onAddRule:
|
|
9500
|
-
onRemoveRule:
|
|
9499
|
+
onAddRule: x,
|
|
9500
|
+
onRemoveRule: J
|
|
9501
9501
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : E("", !0)
|
|
9502
9502
|
]))
|
|
9503
9503
|
])) : E("", !0);
|
|
@@ -9521,7 +9521,7 @@ const qf = { class: "ao-card__content" }, Yf = {
|
|
|
9521
9521
|
},
|
|
9522
9522
|
setup(t) {
|
|
9523
9523
|
return (e, a) => (v(), D(It(e.tagName), {
|
|
9524
|
-
class:
|
|
9524
|
+
class: ee([
|
|
9525
9525
|
"ao-card",
|
|
9526
9526
|
{
|
|
9527
9527
|
"ao-card--clickable": e.isClickable
|
|
@@ -9537,13 +9537,13 @@ const qf = { class: "ao-card__content" }, Yf = {
|
|
|
9537
9537
|
}, null, 4)) : E("", !0),
|
|
9538
9538
|
f("div", qf, [
|
|
9539
9539
|
e.$slots.header ? (v(), _("header", Yf, [
|
|
9540
|
-
|
|
9540
|
+
se(e.$slots, "header")
|
|
9541
9541
|
])) : E("", !0),
|
|
9542
9542
|
f("div", xf, [
|
|
9543
|
-
|
|
9543
|
+
se(e.$slots, "default")
|
|
9544
9544
|
]),
|
|
9545
9545
|
e.$slots.footer ? (v(), _("footer", Kf, [
|
|
9546
|
-
|
|
9546
|
+
se(e.$slots, "footer")
|
|
9547
9547
|
])) : E("", !0)
|
|
9548
9548
|
])
|
|
9549
9549
|
]),
|
|
@@ -9561,12 +9561,12 @@ const is = /* @__PURE__ */ G({
|
|
|
9561
9561
|
setup(t) {
|
|
9562
9562
|
const e = t, a = M(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
9563
9563
|
return (s, n) => (v(), _("div", {
|
|
9564
|
-
class:
|
|
9564
|
+
class: ee(["ao-progress", s.status ? `ao-progress--${s.status}` : ""]),
|
|
9565
9565
|
role: "meter"
|
|
9566
9566
|
}, [
|
|
9567
9567
|
(v(!0), _(fe, null, Ce(a.value, (i) => (v(), _("div", {
|
|
9568
9568
|
key: i,
|
|
9569
|
-
class:
|
|
9569
|
+
class: ee(["ao-progress__progress"]),
|
|
9570
9570
|
style: Fe({
|
|
9571
9571
|
width: `${i * 100}%`,
|
|
9572
9572
|
"--ao-progress-color": s.color || "var(--ao-color-primary-base)"
|
|
@@ -10493,7 +10493,7 @@ function gh(t, e, a, s, n, i) {
|
|
|
10493
10493
|
onSelectColor: t.selectColor
|
|
10494
10494
|
}, null, 8, ["color", "colors-default", "colors-history-key", "onSelectColor"]),
|
|
10495
10495
|
E(" custom options "),
|
|
10496
|
-
|
|
10496
|
+
se(t.$slots, "default")
|
|
10497
10497
|
],
|
|
10498
10498
|
6
|
|
10499
10499
|
/* CLASS, STYLE */
|
|
@@ -10536,7 +10536,7 @@ const Ch = { class: "color-picker-wrapper" }, an = /* @__PURE__ */ G({
|
|
|
10536
10536
|
c.value = `rgba(${g}, ${$}, ${m}, ${k})`;
|
|
10537
10537
|
};
|
|
10538
10538
|
return (h, g) => (v(), _("div", Ch, [
|
|
10539
|
-
|
|
10539
|
+
se(h.$slots, "clickable", {
|
|
10540
10540
|
openPicker: r,
|
|
10541
10541
|
bgColor: h.color
|
|
10542
10542
|
}),
|
|
@@ -10653,11 +10653,11 @@ const _h = { class: "ao-card-project-phase__header" }, yh = { class: "ao-card-pr
|
|
|
10653
10653
|
color: c.color
|
|
10654
10654
|
}, null, 8, ["percentages", "color"]),
|
|
10655
10655
|
c.$slots.secondary ? (v(), _("div", Mh, [
|
|
10656
|
-
|
|
10656
|
+
se(c.$slots, "secondary")
|
|
10657
10657
|
])) : E("", !0)
|
|
10658
10658
|
])) : E("", !0),
|
|
10659
10659
|
f("div", {
|
|
10660
|
-
class:
|
|
10660
|
+
class: ee(["ao-card-project-phase__footer-row", r.value ? "" : "ao-card-project-phase__no_deadline"])
|
|
10661
10661
|
}, [
|
|
10662
10662
|
c.isEditable ? Te((v(), _("input", {
|
|
10663
10663
|
key: 0,
|
|
@@ -10767,7 +10767,7 @@ const Eh = { class: "ao-card-project-milestone__default" }, Ih = { class: "ao-ti
|
|
|
10767
10767
|
e("updateMilestone", { id: a.id, name: r });
|
|
10768
10768
|
};
|
|
10769
10769
|
return (r, d) => (v(), D(os, {
|
|
10770
|
-
class:
|
|
10770
|
+
class: ee([
|
|
10771
10771
|
"ao-card-project-milestone"
|
|
10772
10772
|
]),
|
|
10773
10773
|
"is-clickable": !r.readonly,
|
|
@@ -10826,7 +10826,7 @@ const Eh = { class: "ao-card-project-milestone__default" }, Ih = { class: "ao-ti
|
|
|
10826
10826
|
}, null, 8, ["percentages", "color"])
|
|
10827
10827
|
], 64)) : E("", !0),
|
|
10828
10828
|
r.$slots.secondary ? (v(), _("div", jh, [
|
|
10829
|
-
|
|
10829
|
+
se(r.$slots, "secondary")
|
|
10830
10830
|
])) : E("", !0)
|
|
10831
10831
|
])
|
|
10832
10832
|
])
|
|
@@ -10836,7 +10836,7 @@ const Eh = { class: "ao-card-project-milestone__default" }, Ih = { class: "ao-ti
|
|
|
10836
10836
|
r.important ? (v(), D(de, {
|
|
10837
10837
|
key: 0,
|
|
10838
10838
|
name: "FlagRounded",
|
|
10839
|
-
class:
|
|
10839
|
+
class: ee(
|
|
10840
10840
|
r.isSelected ? "ao-card-project-milestone__important--selected" : "ao-card-project-milestone__important"
|
|
10841
10841
|
),
|
|
10842
10842
|
size: "sm"
|
|
@@ -10954,11 +10954,11 @@ const zh = { class: "ao-mapping-card-project-phase__header" }, qh = { class: "ao
|
|
|
10954
10954
|
color: d.value
|
|
10955
10955
|
}, null, 8, ["percentages", "color"]),
|
|
10956
10956
|
c.$slots.secondary ? (v(), _("div", Qh, [
|
|
10957
|
-
|
|
10957
|
+
se(c.$slots, "secondary")
|
|
10958
10958
|
])) : E("", !0)
|
|
10959
10959
|
])) : E("", !0),
|
|
10960
10960
|
f("div", {
|
|
10961
|
-
class:
|
|
10961
|
+
class: ee(["ao-mapping-card-project-phase__footer-row", r.value ? "" : "ao-mapping-card-project-phase__no_deadline"])
|
|
10962
10962
|
}, [
|
|
10963
10963
|
c.isEditable ? Te((v(), _("input", {
|
|
10964
10964
|
key: 0,
|
|
@@ -11150,7 +11150,7 @@ const t9 = { class: "ao-project-phase" }, a9 = {
|
|
|
11150
11150
|
assignee: y.assignee,
|
|
11151
11151
|
important: y.important,
|
|
11152
11152
|
readonly: w.readonly,
|
|
11153
|
-
class:
|
|
11153
|
+
class: ee(["ao-project-phase__milestone"]),
|
|
11154
11154
|
onClick: (T) => !w.readonly && w.$router.push({
|
|
11155
11155
|
name: F(ye).milestone,
|
|
11156
11156
|
params: { phaseId: w.phase.id, milestoneId: y.id }
|
|
@@ -11410,7 +11410,7 @@ function E9(t, e, a, s, n, i) {
|
|
|
11410
11410
|
return v(), _("div", T9, [
|
|
11411
11411
|
(v(!0), _(fe, null, Ce(t.tabs, (o) => (v(), _("button", {
|
|
11412
11412
|
key: o.value,
|
|
11413
|
-
class:
|
|
11413
|
+
class: ee(["tab-button", { "tab-button--active": o.value === t.modelValue }]),
|
|
11414
11414
|
type: "button",
|
|
11415
11415
|
onClick: (l) => t.selectTab(o.value)
|
|
11416
11416
|
}, Y(o.label), 11, O9))), 128))
|
|
@@ -11477,12 +11477,12 @@ const sn = /* @__PURE__ */ W(A9, [["render", E9], ["__scopeId", "data-v-ff4e3297
|
|
|
11477
11477
|
e("removeFile", O);
|
|
11478
11478
|
}, R = (O) => {
|
|
11479
11479
|
e("addComment", O);
|
|
11480
|
-
},
|
|
11480
|
+
}, x = (O) => {
|
|
11481
11481
|
e("updateComment", O);
|
|
11482
|
-
},
|
|
11482
|
+
}, J = (O) => {
|
|
11483
11483
|
e("removeComment", O);
|
|
11484
|
-
},
|
|
11485
|
-
e("applyTemplate", { templateId: O, projectId: U }),
|
|
11484
|
+
}, ne = q(!1), N = q(!1), X = (O, U) => {
|
|
11485
|
+
e("applyTemplate", { templateId: O, projectId: U }), ne.value = !1;
|
|
11486
11486
|
}, le = (O, U) => {
|
|
11487
11487
|
var B;
|
|
11488
11488
|
const L = (B = a.templates) == null ? void 0 : B.at(-1), C = L ? we.LexoRank.parse(L.rank).genNext() : we.LexoRank.middle();
|
|
@@ -11532,7 +11532,7 @@ const sn = /* @__PURE__ */ W(A9, [["render", E9], ["__scopeId", "data-v-ff4e3297
|
|
|
11532
11532
|
class: "ao-project-overview__add-template",
|
|
11533
11533
|
color: "primary",
|
|
11534
11534
|
label: O.$t("project.template.apply.label"),
|
|
11535
|
-
onClick: U[3] || (U[3] = (C) =>
|
|
11535
|
+
onClick: U[3] || (U[3] = (C) => ne.value = !0)
|
|
11536
11536
|
}, null, 8, ["label"])) : E("", !0)
|
|
11537
11537
|
]),
|
|
11538
11538
|
_: 1
|
|
@@ -11590,13 +11590,13 @@ const sn = /* @__PURE__ */ W(A9, [["render", E9], ["__scopeId", "data-v-ff4e3297
|
|
|
11590
11590
|
onAddFiles: T,
|
|
11591
11591
|
onRemoveFile: V,
|
|
11592
11592
|
onAddComment: R,
|
|
11593
|
-
onUpdateComment:
|
|
11594
|
-
onRemoveComment:
|
|
11593
|
+
onUpdateComment: x,
|
|
11594
|
+
onRemoveComment: J
|
|
11595
11595
|
}, {
|
|
11596
11596
|
default: Z(({ Component: C }) => [
|
|
11597
11597
|
(v(), D(It(C), null, {
|
|
11598
11598
|
default: Z((B) => [
|
|
11599
|
-
|
|
11599
|
+
se(O.$slots, "activityDetailsBody", ha(ma(B)))
|
|
11600
11600
|
]),
|
|
11601
11601
|
_: 2
|
|
11602
11602
|
}, 1024))
|
|
@@ -11612,11 +11612,11 @@ const sn = /* @__PURE__ */ W(A9, [["render", E9], ["__scopeId", "data-v-ff4e3297
|
|
|
11612
11612
|
onClose: U[5] || (U[5] = (C) => N.value = !1),
|
|
11613
11613
|
onSave: le
|
|
11614
11614
|
}, null, 8, ["phases"])) : E("", !0),
|
|
11615
|
-
|
|
11615
|
+
ne.value ? (v(), D(go, {
|
|
11616
11616
|
key: 1,
|
|
11617
11617
|
"project-id": O.project.id,
|
|
11618
11618
|
templates: O.templates,
|
|
11619
|
-
onClose: U[6] || (U[6] = (C) =>
|
|
11619
|
+
onClose: U[6] || (U[6] = (C) => ne.value = !1),
|
|
11620
11620
|
onApply: X
|
|
11621
11621
|
}, null, 8, ["project-id", "templates"])) : E("", !0)
|
|
11622
11622
|
]))
|
|
@@ -11634,7 +11634,7 @@ const H9 = { class: "ao-card-feed__header" }, V9 = {
|
|
|
11634
11634
|
key: 0,
|
|
11635
11635
|
class: "ao-card-feed__breadcrumbs"
|
|
11636
11636
|
}, j9 = {
|
|
11637
|
-
class: /* @__PURE__ */
|
|
11637
|
+
class: /* @__PURE__ */ ee(["ao-card-feed__title-group"])
|
|
11638
11638
|
}, N9 = { class: "ao-card-feed__title-line" }, U9 = {
|
|
11639
11639
|
key: 0,
|
|
11640
11640
|
class: "ao-card-feed__slug"
|
|
@@ -11662,6 +11662,7 @@ const H9 = { class: "ao-card-feed__header" }, V9 = {
|
|
|
11662
11662
|
id: {},
|
|
11663
11663
|
name: {},
|
|
11664
11664
|
projectName: {},
|
|
11665
|
+
projectId: {},
|
|
11665
11666
|
projectColor: {},
|
|
11666
11667
|
phaseName: {},
|
|
11667
11668
|
milestoneName: {},
|
|
@@ -11688,7 +11689,7 @@ const H9 = { class: "ao-card-feed__header" }, V9 = {
|
|
|
11688
11689
|
}, o = M(() => a.tagType === "milestone" && a.phaseName ? `${a.phaseName}` : a.phaseName && a.milestoneName ? `${a.phaseName} / ${a.milestoneName}` : ""), l = M(() => a.assignee ? [a.assignee] : []), r = M(() => Xa(a.deadline)), d = (g) => {
|
|
11689
11690
|
e("removeAssignee", g);
|
|
11690
11691
|
}, u = () => {
|
|
11691
|
-
e("startTimer", a.name, a.projectName, a.slug);
|
|
11692
|
+
e("startTimer", a.name, a.projectName, a.projectId, a.slug);
|
|
11692
11693
|
}, c = M(() => {
|
|
11693
11694
|
var g;
|
|
11694
11695
|
return (g = a.tasks) == null ? void 0 : g.length;
|
|
@@ -11697,7 +11698,7 @@ const H9 = { class: "ao-card-feed__header" }, V9 = {
|
|
|
11697
11698
|
return (g = a.tasks) == null ? void 0 : g.filter(($) => $.isDone).length;
|
|
11698
11699
|
}), h = M(() => (p.value || 0) / (c.value || 1));
|
|
11699
11700
|
return (g, $) => (v(), D(os, {
|
|
11700
|
-
class:
|
|
11701
|
+
class: ee(["ao-card-feed", { "ao-card-feed--closed": g.isClosed }]),
|
|
11701
11702
|
"is-clickable": !0
|
|
11702
11703
|
}, {
|
|
11703
11704
|
header: Z(() => [
|
|
@@ -11736,7 +11737,7 @@ const H9 = { class: "ao-card-feed__header" }, V9 = {
|
|
|
11736
11737
|
size: "sm",
|
|
11737
11738
|
onClick: ve(u, ["stop"])
|
|
11738
11739
|
}, null, 8, ["onClick"]),
|
|
11739
|
-
|
|
11740
|
+
se(g.$slots, "secondary")
|
|
11740
11741
|
])) : E("", !0)
|
|
11741
11742
|
])
|
|
11742
11743
|
]),
|
|
@@ -11833,11 +11834,11 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
11833
11834
|
},
|
|
11834
11835
|
emits: ["close", "addActivity", "updateMilestone", "updateActivity", "archiveActivity", "unarchiveActivity", "startTimer"],
|
|
11835
11836
|
setup(t, { emit: e }) {
|
|
11836
|
-
const a = t, { t: s } = yt(), n = (y, I, T) => {
|
|
11837
|
-
var
|
|
11838
|
-
e("startTimer", y, I, T), (
|
|
11837
|
+
const a = t, { t: s } = yt(), n = (y, I, T, V) => {
|
|
11838
|
+
var R;
|
|
11839
|
+
e("startTimer", y, I, T, V), (R = window.parent) == null || R.postMessage({
|
|
11839
11840
|
type: "startTimer",
|
|
11840
|
-
data: { name: y, project: I,
|
|
11841
|
+
data: { name: y, project: I, projectId: T, slug: V }
|
|
11841
11842
|
}, "*");
|
|
11842
11843
|
}, i = M(() => {
|
|
11843
11844
|
var y;
|
|
@@ -12004,7 +12005,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
12004
12005
|
"user-name": V.label,
|
|
12005
12006
|
"avatar-url": V.avatar,
|
|
12006
12007
|
"is-closable": !0,
|
|
12007
|
-
onClose: (
|
|
12008
|
+
onClose: (x) => R(V, x)
|
|
12008
12009
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12009
12010
|
]),
|
|
12010
12011
|
_: 1
|
|
@@ -12019,7 +12020,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
12019
12020
|
f("button", {
|
|
12020
12021
|
style: Fe({ background: R }),
|
|
12021
12022
|
class: "color-button",
|
|
12022
|
-
onClick: (
|
|
12023
|
+
onClick: (x) => b(x, V)
|
|
12023
12024
|
}, null, 12, p4)
|
|
12024
12025
|
]),
|
|
12025
12026
|
_: 1
|
|
@@ -12035,20 +12036,21 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
12035
12036
|
group: "kanban"
|
|
12036
12037
|
}, y.$attrs, { onChange: p }), {
|
|
12037
12038
|
item: Z(({ element: V }) => {
|
|
12038
|
-
var R,
|
|
12039
|
+
var R, x, J, ne, N;
|
|
12039
12040
|
return [
|
|
12040
12041
|
A(_o, {
|
|
12041
12042
|
id: V.id,
|
|
12042
12043
|
name: V.name || V.id,
|
|
12044
|
+
"project-id": y.projectId,
|
|
12043
12045
|
"phase-name": (R = i.value) == null ? void 0 : R.name,
|
|
12044
|
-
"milestone-name": (
|
|
12045
|
-
"milestone-color": (
|
|
12046
|
+
"milestone-name": (x = l.value) == null ? void 0 : x.name,
|
|
12047
|
+
"milestone-color": (J = l.value) == null ? void 0 : J.color,
|
|
12046
12048
|
deadline: V.deadline,
|
|
12047
12049
|
important: V.important,
|
|
12048
12050
|
users: y.users,
|
|
12049
12051
|
assignee: V.assignee,
|
|
12050
12052
|
slug: V.slug,
|
|
12051
|
-
comments: (
|
|
12053
|
+
comments: (ne = V.comments) == null ? void 0 : ne.length,
|
|
12052
12054
|
attachments: (N = V.attachments) == null ? void 0 : N.length,
|
|
12053
12055
|
tasks: V.tasks,
|
|
12054
12056
|
"is-editable": y.isEditable,
|
|
@@ -12093,7 +12095,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
12093
12095
|
]),
|
|
12094
12096
|
key: "0"
|
|
12095
12097
|
} : void 0
|
|
12096
|
-
]), 1032, ["id", "name", "phase-name", "milestone-name", "milestone-color", "deadline", "important", "users", "assignee", "slug", "comments", "attachments", "tasks", "is-editable", "is-private", "is-closed", "onClick", "onRemoveAssignee"])
|
|
12098
|
+
]), 1032, ["id", "name", "project-id", "phase-name", "milestone-name", "milestone-color", "deadline", "important", "users", "assignee", "slug", "comments", "attachments", "tasks", "is-editable", "is-private", "is-closed", "onClick", "onRemoveAssignee"])
|
|
12097
12099
|
];
|
|
12098
12100
|
}),
|
|
12099
12101
|
_: 1
|
|
@@ -12191,7 +12193,7 @@ const h4 = /* @__PURE__ */ G({
|
|
|
12191
12193
|
onRemoveComment: $
|
|
12192
12194
|
}, {
|
|
12193
12195
|
default: Z((y) => [
|
|
12194
|
-
|
|
12196
|
+
se(m.$slots, "default", ha(ma(y)))
|
|
12195
12197
|
]),
|
|
12196
12198
|
_: 3
|
|
12197
12199
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects", "onClose"])) : E("", !0);
|
|
@@ -12322,7 +12324,7 @@ function A4(t, e, a = {}) {
|
|
|
12322
12324
|
};
|
|
12323
12325
|
}
|
|
12324
12326
|
const T4 = {
|
|
12325
|
-
class: /* @__PURE__ */
|
|
12327
|
+
class: /* @__PURE__ */ ee(["ao-list-kanban"])
|
|
12326
12328
|
}, O4 = { class: "ao-list-kanban__header" }, E4 = {
|
|
12327
12329
|
key: 0,
|
|
12328
12330
|
class: "ao-list-kanban__end ao-list-kanban__end--loading"
|
|
@@ -12382,7 +12384,7 @@ const T4 = {
|
|
|
12382
12384
|
});
|
|
12383
12385
|
}, d = q(!1);
|
|
12384
12386
|
return (u, c) => (v(), _("div", T4, [
|
|
12385
|
-
u.title || u.$slots.header ?
|
|
12387
|
+
u.title || u.$slots.header ? se(u.$slots, "header", { key: 0 }, () => {
|
|
12386
12388
|
var p;
|
|
12387
12389
|
return [
|
|
12388
12390
|
f("div", O4, [
|
|
@@ -12414,35 +12416,36 @@ const T4 = {
|
|
|
12414
12416
|
}
|
|
12415
12417
|
}), {
|
|
12416
12418
|
item: Z(({ element: p }) => {
|
|
12417
|
-
var h, g, $, m, k, w, b, y, I;
|
|
12419
|
+
var h, g, $, m, k, w, b, y, I, T;
|
|
12418
12420
|
return [
|
|
12419
12421
|
A(_o, {
|
|
12420
|
-
class:
|
|
12422
|
+
class: ee(i(p) ? "ao-list-draggable" : ""),
|
|
12421
12423
|
id: p.id,
|
|
12422
12424
|
name: p.name,
|
|
12423
12425
|
"project-name": (h = p.project) == null ? void 0 : h.name,
|
|
12424
|
-
"project-
|
|
12425
|
-
"
|
|
12426
|
-
"
|
|
12427
|
-
"milestone-
|
|
12426
|
+
"project-id": (g = p.project) == null ? void 0 : g.id,
|
|
12427
|
+
"project-color": ($ = p.project) == null ? void 0 : $.color,
|
|
12428
|
+
"phase-name": (k = (m = p.milestone) == null ? void 0 : m.phase) == null ? void 0 : k.name,
|
|
12429
|
+
"milestone-name": (w = p.milestone) == null ? void 0 : w.name,
|
|
12430
|
+
"milestone-color": (b = p.milestone) == null ? void 0 : b.color,
|
|
12428
12431
|
deadline: p.deadline,
|
|
12429
|
-
rules: ((
|
|
12432
|
+
rules: ((y = p.rules) == null ? void 0 : y.length) || 0,
|
|
12430
12433
|
tasks: p.tasks,
|
|
12431
12434
|
description: p.description,
|
|
12432
12435
|
important: p.important,
|
|
12433
12436
|
type: p.type,
|
|
12434
|
-
comments: (
|
|
12435
|
-
attachments: (
|
|
12437
|
+
comments: (I = p.comments) == null ? void 0 : I.length,
|
|
12438
|
+
attachments: (T = p.attachments) == null ? void 0 : T.length,
|
|
12436
12439
|
users: u.users,
|
|
12437
12440
|
assignee: p.assignee,
|
|
12438
12441
|
slug: p.slug,
|
|
12439
12442
|
"is-editable": i(p),
|
|
12440
12443
|
"is-private": p.private,
|
|
12441
12444
|
"tag-type": u.tagType,
|
|
12442
|
-
onUpdateActivity: [(
|
|
12445
|
+
onUpdateActivity: [(V) => i(p) && l(V), () => i(p) && l],
|
|
12443
12446
|
onClick: () => o(p.id),
|
|
12444
12447
|
onRemoveAssignee: () => i(p) && l({ id: p.id, assigneeId: null }),
|
|
12445
|
-
onStartTimer: c[0] || (c[0] = (
|
|
12448
|
+
onStartTimer: c[0] || (c[0] = (V, R, x, J) => u.$emit("startTimer", V, R, x, J))
|
|
12446
12449
|
}, {
|
|
12447
12450
|
secondary: Z(() => [
|
|
12448
12451
|
i(p) && p.active ? (v(), D(re, {
|
|
@@ -12469,7 +12472,7 @@ const T4 = {
|
|
|
12469
12472
|
}, null, 8, ["label", "onClick"])) : E("", !0)
|
|
12470
12473
|
]),
|
|
12471
12474
|
_: 2
|
|
12472
|
-
}, 1032, ["class", "id", "name", "project-name", "project-color", "phase-name", "milestone-name", "milestone-color", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "slug", "is-editable", "is-private", "tag-type", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
12475
|
+
}, 1032, ["class", "id", "name", "project-name", "project-id", "project-color", "phase-name", "milestone-name", "milestone-color", "deadline", "rules", "tasks", "description", "important", "type", "comments", "attachments", "users", "assignee", "slug", "is-editable", "is-private", "tag-type", "onUpdateActivity", "onClick", "onRemoveAssignee"])
|
|
12473
12476
|
];
|
|
12474
12477
|
}),
|
|
12475
12478
|
footer: Z(() => [
|
|
@@ -12487,7 +12490,7 @@ const T4 = {
|
|
|
12487
12490
|
_: 1
|
|
12488
12491
|
}, 16, ["class", "list", "disabled"]),
|
|
12489
12492
|
u.$slots.footer || u.footerLabel ? (v(), _("div", H4, [
|
|
12490
|
-
|
|
12493
|
+
se(u.$slots, "footer", {}, () => [
|
|
12491
12494
|
u.isEditable ? (v(), D(Ct, {
|
|
12492
12495
|
key: 0,
|
|
12493
12496
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -12526,14 +12529,14 @@ const D4 = { class: "ao-field ao-search-field" }, B4 = ["value", "placeholder",
|
|
|
12526
12529
|
}, null, 40, B4),
|
|
12527
12530
|
A(de, {
|
|
12528
12531
|
name: "SearchRounded",
|
|
12529
|
-
class:
|
|
12532
|
+
class: ee(`ao-search-field__icon ao-search-field__action ${o.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
12530
12533
|
}, null, 8, ["class"]),
|
|
12531
12534
|
A(re, {
|
|
12532
12535
|
"icon-name": "CloseRounded",
|
|
12533
12536
|
size: "sm",
|
|
12534
12537
|
color: "primary",
|
|
12535
12538
|
corners: "round",
|
|
12536
|
-
class:
|
|
12539
|
+
class: ee(`ao-search-field__button ao-search-field__action ${o.modelValue ? "ao-search-field__action--visible" : ""}`),
|
|
12537
12540
|
onClick: i
|
|
12538
12541
|
}, null, 8, ["class"])
|
|
12539
12542
|
]));
|
|
@@ -12573,7 +12576,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12573
12576
|
ce(
|
|
12574
12577
|
[() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
|
|
12575
12578
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12576
|
-
async ([L, C, B,
|
|
12579
|
+
async ([L, C, B, K], [ae, z]) => {
|
|
12577
12580
|
l.value = Object.fromEntries(
|
|
12578
12581
|
L.map((H) => [
|
|
12579
12582
|
H.id,
|
|
@@ -12582,7 +12585,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12582
12585
|
return ((he = Q.status) == null ? void 0 : he.id) === H.id;
|
|
12583
12586
|
})
|
|
12584
12587
|
])
|
|
12585
|
-
), B && !r.value ? (o(B, null), r.value = !0) :
|
|
12588
|
+
), B && !r.value ? (o(B, null), r.value = !0) : K && !r.value && (o(null, K), r.value = !0), d.value && Qe(C, z);
|
|
12586
12589
|
},
|
|
12587
12590
|
{ immediate: !0 }
|
|
12588
12591
|
);
|
|
@@ -12591,12 +12594,12 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12591
12594
|
return !a.selectedActivity || !a.selectedActivity.milestone ? "" : `${((L = a.selectedActivity.milestone.phase) == null ? void 0 : L.name) ?? ""} / ${a.selectedActivity.milestone.name ?? ""}`;
|
|
12592
12595
|
}), p = (L) => {
|
|
12593
12596
|
var z, H;
|
|
12594
|
-
const C = (z = a.activities) == null ? void 0 : z.at(-1), B = C ? we.LexoRank.parse(C.rank).genNext() : we.LexoRank.middle(),
|
|
12595
|
-
name: s("activity.defaultName", { idx:
|
|
12597
|
+
const C = (z = a.activities) == null ? void 0 : z.at(-1), B = C ? we.LexoRank.parse(C.rank).genNext() : we.LexoRank.middle(), K = ((H = a.activities) == null ? void 0 : H.length) ?? 0, ae = {
|
|
12598
|
+
name: s("activity.defaultName", { idx: K + 1 }),
|
|
12596
12599
|
rank: B.format(),
|
|
12597
12600
|
statusId: L.id
|
|
12598
12601
|
};
|
|
12599
|
-
a.filters.assigneeId.length > 0 && (
|
|
12602
|
+
a.filters.assigneeId.length > 0 && (ae.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (ae.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (ae.typeId = a.filters.typeId[0]), d.value = !0, e("addActivity", ae);
|
|
12600
12603
|
}, h = (L, C) => {
|
|
12601
12604
|
d.value = !1, e("update:filters", { ...a.filters, [L]: C });
|
|
12602
12605
|
}, g = M(
|
|
@@ -12622,21 +12625,21 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12622
12625
|
e("archiveActivity", L);
|
|
12623
12626
|
}, I = (L) => {
|
|
12624
12627
|
e("unarchiveActivity", L);
|
|
12625
|
-
}, T = (L, C, B) => {
|
|
12626
|
-
var
|
|
12627
|
-
e("startTimer", L, C, B), (
|
|
12628
|
+
}, T = (L, C, B, K) => {
|
|
12629
|
+
var ae;
|
|
12630
|
+
e("startTimer", L, C, B, K), (ae = window.parent) == null || ae.postMessage({
|
|
12628
12631
|
type: "startTimer",
|
|
12629
|
-
data: { name: L, project: C,
|
|
12632
|
+
data: { name: L, project: C, projectId: B, slug: K }
|
|
12630
12633
|
}, "*");
|
|
12631
12634
|
}, V = (L) => {
|
|
12632
12635
|
d.value = !1, e("update:searchText", L);
|
|
12633
12636
|
}, R = (L) => {
|
|
12634
12637
|
d.value = !1, e("clear:searchText", L);
|
|
12635
|
-
},
|
|
12638
|
+
}, x = (L) => {
|
|
12636
12639
|
a.selectedActivity && e("addSubtask", L);
|
|
12637
|
-
},
|
|
12640
|
+
}, J = (L) => {
|
|
12638
12641
|
a.selectedActivity && e("updateSubtask", L);
|
|
12639
|
-
},
|
|
12642
|
+
}, ne = (L) => {
|
|
12640
12643
|
a.selectedActivity && e("deleteSubtask", L);
|
|
12641
12644
|
}, N = (L) => {
|
|
12642
12645
|
e("addFiles", L);
|
|
@@ -12669,7 +12672,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12669
12672
|
A(sn, {
|
|
12670
12673
|
tabs: U,
|
|
12671
12674
|
modelValue: O.value,
|
|
12672
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
12675
|
+
"onUpdate:modelValue": C[0] || (C[0] = (K) => O.value = K)
|
|
12673
12676
|
}, null, 8, ["modelValue"]),
|
|
12674
12677
|
A(R4, {
|
|
12675
12678
|
"model-value": L.searchText,
|
|
@@ -12687,7 +12690,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12687
12690
|
searchable: !0,
|
|
12688
12691
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
12689
12692
|
placeholder: L.$t("feed.filters.project.placeholder"),
|
|
12690
|
-
"onUpdate:modelValue": C[1] || (C[1] = (
|
|
12693
|
+
"onUpdate:modelValue": C[1] || (C[1] = (K) => h(F(Bt).project, K))
|
|
12691
12694
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
12692
12695
|
m.value ? (v(), D(Me, {
|
|
12693
12696
|
key: 1,
|
|
@@ -12698,7 +12701,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12698
12701
|
searchable: !0,
|
|
12699
12702
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
12700
12703
|
placeholder: L.$t("feed.filters.activityType.placeholder"),
|
|
12701
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
12704
|
+
"onUpdate:modelValue": C[2] || (C[2] = (K) => h(F(Bt).type, K))
|
|
12702
12705
|
}, null, 8, ["model-value", "options", "placeholder"])) : E("", !0),
|
|
12703
12706
|
k.value.length ? (v(), D(Me, {
|
|
12704
12707
|
key: 2,
|
|
@@ -12709,17 +12712,17 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12709
12712
|
searchable: !0,
|
|
12710
12713
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
12711
12714
|
placeholder: L.$t("feed.filters.assignee.placeholder"),
|
|
12712
|
-
"onUpdate:modelValue": C[3] || (C[3] = (
|
|
12715
|
+
"onUpdate:modelValue": C[3] || (C[3] = (K) => h(F(Bt).assignee, K))
|
|
12713
12716
|
}, {
|
|
12714
12717
|
tag: Z(({
|
|
12715
|
-
option:
|
|
12716
|
-
handleTagRemove:
|
|
12718
|
+
option: K,
|
|
12719
|
+
handleTagRemove: ae
|
|
12717
12720
|
}) => [
|
|
12718
12721
|
A(et, {
|
|
12719
|
-
"user-name":
|
|
12720
|
-
"avatar-url":
|
|
12722
|
+
"user-name": K.label,
|
|
12723
|
+
"avatar-url": K.avatar,
|
|
12721
12724
|
"is-closable": !0,
|
|
12722
|
-
onClose: (z) =>
|
|
12725
|
+
onClose: (z) => ae(K, z)
|
|
12723
12726
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
12724
12727
|
]),
|
|
12725
12728
|
_: 1
|
|
@@ -12735,7 +12738,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12735
12738
|
label: L.$t("feed.filters.showsOnlyNonAssigned.label"),
|
|
12736
12739
|
role: "checkbox",
|
|
12737
12740
|
"aria-checked": L.showsOnlyNonAssigned,
|
|
12738
|
-
onClick: C[4] || (C[4] = (
|
|
12741
|
+
onClick: C[4] || (C[4] = (K) => L.$emit("update:showsOnlyNonAssigned", !L.showsOnlyNonAssigned))
|
|
12739
12742
|
}, null, 8, ["icon-name", "label", "aria-checked"]),
|
|
12740
12743
|
A(re, {
|
|
12741
12744
|
class: "ao-feed__only-important",
|
|
@@ -12747,7 +12750,7 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12747
12750
|
label: L.$t("feed.filters.showsOnlyImportant.label"),
|
|
12748
12751
|
role: "checkbox",
|
|
12749
12752
|
"aria-checked": L.showsOnlyImportant,
|
|
12750
|
-
onClick: C[5] || (C[5] = (
|
|
12753
|
+
onClick: C[5] || (C[5] = (K) => L.$emit("update:showsOnlyImportant", !L.showsOnlyImportant))
|
|
12751
12754
|
}, null, 8, ["icon-name", "label", "aria-checked"]),
|
|
12752
12755
|
A(re, {
|
|
12753
12756
|
class: "ao-feed__show-archived",
|
|
@@ -12759,23 +12762,23 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12759
12762
|
label: L.$t("feed.filters.showsArchivedActivities.label"),
|
|
12760
12763
|
role: "checkbox",
|
|
12761
12764
|
"aria-checked": L.showsArchivedActivities,
|
|
12762
|
-
onClick: C[6] || (C[6] = (
|
|
12765
|
+
onClick: C[6] || (C[6] = (K) => L.$emit("update:showsArchivedActivities", !L.showsArchivedActivities))
|
|
12763
12766
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
12764
12767
|
]),
|
|
12765
12768
|
_: 1
|
|
12766
12769
|
}),
|
|
12767
12770
|
f("div", U4, [
|
|
12768
|
-
(v(!0), _(fe, null, Ce(L.statuses, (
|
|
12769
|
-
key:
|
|
12770
|
-
status:
|
|
12771
|
-
list: l.value[
|
|
12772
|
-
title:
|
|
12771
|
+
(v(!0), _(fe, null, Ce(L.statuses, (K) => (v(), D(V4, {
|
|
12772
|
+
key: K.id,
|
|
12773
|
+
status: K,
|
|
12774
|
+
list: l.value[K.id],
|
|
12775
|
+
title: K.name,
|
|
12773
12776
|
"footer-label": L.$t("feed.activity.add"),
|
|
12774
12777
|
users: L.users,
|
|
12775
12778
|
"user-id": L.userId,
|
|
12776
12779
|
"is-editable": L.isEditable,
|
|
12777
12780
|
tagType: u.value,
|
|
12778
|
-
onAdd: () => p(
|
|
12781
|
+
onAdd: () => p(K),
|
|
12779
12782
|
onSelectActivity: o,
|
|
12780
12783
|
onArchiveActivity: y,
|
|
12781
12784
|
onUnarchiveActivity: I,
|
|
@@ -12800,9 +12803,9 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12800
12803
|
projects: g.value,
|
|
12801
12804
|
onClose: C[7] || (C[7] = () => o(null, null)),
|
|
12802
12805
|
"onUpdate:activity": w,
|
|
12803
|
-
onAddSubtask:
|
|
12804
|
-
onUpdateSubtask:
|
|
12805
|
-
onDeleteSubtask:
|
|
12806
|
+
onAddSubtask: x,
|
|
12807
|
+
onUpdateSubtask: J,
|
|
12808
|
+
onDeleteSubtask: ne,
|
|
12806
12809
|
onAddFiles: N,
|
|
12807
12810
|
onRemoveFile: X,
|
|
12808
12811
|
onAddComment: le,
|
|
@@ -12810,8 +12813,8 @@ const j4 = { class: "ao-feed" }, N4 = { class: "ao-feed__filters" }, U4 = { clas
|
|
|
12810
12813
|
onRemoveComment: te,
|
|
12811
12814
|
onToast: n
|
|
12812
12815
|
}, {
|
|
12813
|
-
default: Z((
|
|
12814
|
-
|
|
12816
|
+
default: Z((K) => [
|
|
12817
|
+
se(L.$slots, "activityDetailsBody", ha(ma(K)))
|
|
12815
12818
|
]),
|
|
12816
12819
|
_: 3
|
|
12817
12820
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "attachment-enabled", "projects"])) : E("", !0)
|
|
@@ -13123,10 +13126,10 @@ const X4 = { class: "ao-field__label" }, Q4 = /* @__PURE__ */ G({
|
|
|
13123
13126
|
},
|
|
13124
13127
|
setup(t) {
|
|
13125
13128
|
return (e, a) => (v(), _("label", {
|
|
13126
|
-
class:
|
|
13129
|
+
class: ee(["ao-field", { "ao-field--multiselect": e.isMultiselect }])
|
|
13127
13130
|
}, [
|
|
13128
13131
|
f("span", X4, Y(e.label), 1),
|
|
13129
|
-
|
|
13132
|
+
se(e.$slots, "default")
|
|
13130
13133
|
], 2));
|
|
13131
13134
|
}
|
|
13132
13135
|
}), J4 = ["type", "value", "disabled", "readonly"], v8 = /* @__PURE__ */ G({
|