@26lights/orcha 0.29.1 → 0.30.0
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/locales/en/translation.json +1 -0
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +732 -732
- package/dist/orcha.umd.js +1 -1
- package/package.json +2 -2
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, openBlock as f, createBlock as N, unref as z, mergeProps as Ee, createElementBlock as h, createElementVNode as v, pushScopeId as us, popScopeId as ds, createStaticVNode as cs, computed as b, resolveDynamicComponent as Xe, normalizeClass as G, renderSlot as x, toDisplayString as q, createCommentVNode as T, ref as Q, watch as
|
|
1
|
+
import { defineComponent as Y, openBlock as f, createBlock as N, unref as z, mergeProps as Ee, createElementBlock as h, createElementVNode as v, pushScopeId as us, popScopeId as ds, createStaticVNode as cs, computed as b, resolveDynamicComponent as Xe, normalizeClass as G, renderSlot as x, toDisplayString as q, createCommentVNode as T, ref as Q, watch as ue, nextTick as Oe, withKeys as Ye, toHandlers as fs, withCtx as U, createTextVNode as a1, createVNode as I, normalizeStyle as ca, withModifiers as _e, createSlots as s1, Fragment as ve, renderList as ye, onMounted as Dt, onBeforeUnmount as vs, onUnmounted as fa, toRefs as $e, getCurrentInstance as st, toRef as vt, normalizeProps as Ht, guardReactiveProps as Pt, onUpdated as ps, withDirectives as tt, vModelText as Et, vModelCheckbox as Q1, Teleport as It, resolveComponent as hs, getCurrentScope as ms, onScopeDispose as Cs, provide as _s, toHandlerKey as gs } from "vue";
|
|
2
2
|
import { RouterView as ys } from "vue-router";
|
|
3
3
|
import Qe from "vuedraggable";
|
|
4
4
|
const o8 = /* @__PURE__ */ Y({
|
|
@@ -1218,7 +1218,7 @@ function pa(t) {
|
|
|
1218
1218
|
d(c, r);
|
|
1219
1219
|
});
|
|
1220
1220
|
};
|
|
1221
|
-
return
|
|
1221
|
+
return ue(e, async (d) => {
|
|
1222
1222
|
await Oe(() => {
|
|
1223
1223
|
setTimeout(() => {
|
|
1224
1224
|
t.value && d && (t.value.focus(), a.value = t.value[n.value]);
|
|
@@ -1251,8 +1251,8 @@ const Ce = /* @__PURE__ */ Y({
|
|
|
1251
1251
|
} : {
|
|
1252
1252
|
click: w,
|
|
1253
1253
|
focus: w
|
|
1254
|
-
} : {}), c = i((A,
|
|
1255
|
-
const y =
|
|
1254
|
+
} : {}), c = i((A, _) => {
|
|
1255
|
+
const y = _.target.value;
|
|
1256
1256
|
e("update:title", y);
|
|
1257
1257
|
}), u = l(), p = async () => {
|
|
1258
1258
|
s.value && o(!1);
|
|
@@ -1261,12 +1261,12 @@ const Ce = /* @__PURE__ */ Y({
|
|
|
1261
1261
|
}, w = (A) => {
|
|
1262
1262
|
A.stopPropagation(), s.value || o(!0);
|
|
1263
1263
|
};
|
|
1264
|
-
return
|
|
1264
|
+
return ue(
|
|
1265
1265
|
() => a.isEditable,
|
|
1266
1266
|
(A) => {
|
|
1267
1267
|
A || u();
|
|
1268
1268
|
}
|
|
1269
|
-
), (A,
|
|
1269
|
+
), (A, _) => (f(), N(Xe(d.value), Ee({
|
|
1270
1270
|
id: A.id,
|
|
1271
1271
|
ref_key: "target",
|
|
1272
1272
|
ref: n,
|
|
@@ -1337,21 +1337,21 @@ const fd = {
|
|
|
1337
1337
|
}, {
|
|
1338
1338
|
default: U(() => [
|
|
1339
1339
|
n.isDraggable ? (f(), h("div", fd, [
|
|
1340
|
-
|
|
1340
|
+
I(ce, {
|
|
1341
1341
|
name: "DragIndicator",
|
|
1342
1342
|
class: "ao-card-horiz__drag-handle"
|
|
1343
1343
|
})
|
|
1344
1344
|
])) : T("", !0),
|
|
1345
1345
|
v("div", vd, [
|
|
1346
1346
|
n.icon ? (f(), h("div", pd, [
|
|
1347
|
-
|
|
1347
|
+
I(ce, {
|
|
1348
1348
|
class: "ao-card-horiz__icon",
|
|
1349
1349
|
name: n.icon,
|
|
1350
1350
|
size: "xl"
|
|
1351
1351
|
}, null, 8, ["name"])
|
|
1352
1352
|
])) : T("", !0),
|
|
1353
1353
|
v("div", hd, [
|
|
1354
|
-
|
|
1354
|
+
I(Ce, {
|
|
1355
1355
|
id: n.id,
|
|
1356
1356
|
class: "ao-card-horiz__title",
|
|
1357
1357
|
level: 4,
|
|
@@ -1419,7 +1419,7 @@ const O1 = /* @__PURE__ */ Y({
|
|
|
1419
1419
|
class: "ao-tag__close",
|
|
1420
1420
|
onClick: o[1] || (o[1] = (i) => s.$emit("close", i))
|
|
1421
1421
|
}, [
|
|
1422
|
-
|
|
1422
|
+
I(ce, {
|
|
1423
1423
|
name: "CloseRounded",
|
|
1424
1424
|
size: "sm",
|
|
1425
1425
|
class: "ao-tag__close-icon"
|
|
@@ -1572,9 +1572,9 @@ function ya(t, e) {
|
|
|
1572
1572
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1573
1573
|
var w = /* @__PURE__ */ new Date(0);
|
|
1574
1574
|
w.setUTCFullYear(u + 1, 0, m), w.setUTCHours(0, 0, 0, 0);
|
|
1575
|
-
var A = Xt(w, e),
|
|
1576
|
-
|
|
1577
|
-
var $ = Xt(
|
|
1575
|
+
var A = Xt(w, e), _ = /* @__PURE__ */ new Date(0);
|
|
1576
|
+
_.setUTCFullYear(u, 0, m), _.setUTCHours(0, 0, 0, 0);
|
|
1577
|
+
var $ = Xt(_, e);
|
|
1578
1578
|
return c.getTime() >= A.getTime() ? u + 1 : c.getTime() >= $.getTime() ? u : u - 1;
|
|
1579
1579
|
}
|
|
1580
1580
|
function Hd(t, e) {
|
|
@@ -2697,47 +2697,47 @@ var Oc = {
|
|
|
2697
2697
|
const Lc = Oc;
|
|
2698
2698
|
var Vc = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Dc = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Hc = /^'([^]*?)'?$/, Pc = /''/g, Bc = /[a-zA-Z]/;
|
|
2699
2699
|
function Nc(t, e, a) {
|
|
2700
|
-
var n, s, o, i, l, d, r, c, u, p, m, w, A,
|
|
2700
|
+
var n, s, o, i, l, d, r, c, u, p, m, w, A, _, $, y, L, Z;
|
|
2701
2701
|
ge(2, arguments);
|
|
2702
2702
|
var W = String(e), V = i1(), X = (n = (s = a == null ? void 0 : a.locale) !== null && s !== void 0 ? s : V.locale) !== null && n !== void 0 ? n : Lc, te = Ke((o = (i = (l = (d = a == null ? void 0 : a.firstWeekContainsDate) !== null && d !== void 0 ? d : a == null || (r = a.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && l !== void 0 ? l : V.firstWeekContainsDate) !== null && i !== void 0 ? i : (u = V.locale) === null || u === void 0 || (p = u.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2703
2703
|
if (!(te >= 1 && te <= 7))
|
|
2704
2704
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2705
|
-
var
|
|
2706
|
-
if (!(
|
|
2705
|
+
var E = Ke((m = (w = (A = (_ = a == null ? void 0 : a.weekStartsOn) !== null && _ !== void 0 ? _ : a == null || ($ = a.locale) === null || $ === void 0 || (y = $.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && A !== void 0 ? A : V.weekStartsOn) !== null && w !== void 0 ? w : (L = V.locale) === null || L === void 0 || (Z = L.options) === null || Z === void 0 ? void 0 : Z.weekStartsOn) !== null && m !== void 0 ? m : 0);
|
|
2706
|
+
if (!(E >= 0 && E <= 6))
|
|
2707
2707
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2708
2708
|
if (!X.localize)
|
|
2709
2709
|
throw new RangeError("locale must contain localize property");
|
|
2710
2710
|
if (!X.formatLong)
|
|
2711
2711
|
throw new RangeError("locale must contain formatLong property");
|
|
2712
|
-
var
|
|
2713
|
-
if (!_a(
|
|
2712
|
+
var J = Be(t);
|
|
2713
|
+
if (!_a(J))
|
|
2714
2714
|
throw new RangeError("Invalid time value");
|
|
2715
|
-
var
|
|
2715
|
+
var g = Td(J), S = Ed(J, g), P = {
|
|
2716
2716
|
firstWeekContainsDate: te,
|
|
2717
|
-
weekStartsOn:
|
|
2717
|
+
weekStartsOn: E,
|
|
2718
2718
|
locale: X,
|
|
2719
|
-
_originalDate:
|
|
2720
|
-
},
|
|
2721
|
-
var
|
|
2722
|
-
if (
|
|
2723
|
-
var M = Fd[
|
|
2719
|
+
_originalDate: J
|
|
2720
|
+
}, de = W.match(Dc).map(function(se) {
|
|
2721
|
+
var re = se[0];
|
|
2722
|
+
if (re === "p" || re === "P") {
|
|
2723
|
+
var M = Fd[re];
|
|
2724
2724
|
return M(se, X.formatLong);
|
|
2725
2725
|
}
|
|
2726
2726
|
return se;
|
|
2727
2727
|
}).join("").match(Vc).map(function(se) {
|
|
2728
2728
|
if (se === "''")
|
|
2729
2729
|
return "'";
|
|
2730
|
-
var
|
|
2731
|
-
if (
|
|
2730
|
+
var re = se[0];
|
|
2731
|
+
if (re === "'")
|
|
2732
2732
|
return Rc(se);
|
|
2733
|
-
var M = Ud[
|
|
2733
|
+
var M = Ud[re];
|
|
2734
2734
|
if (M)
|
|
2735
|
-
return !(a != null && a.useAdditionalWeekYearTokens) && Yd(se) && aa(se, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && Wd(se) && aa(se, e, String(t)), M(
|
|
2736
|
-
if (
|
|
2737
|
-
throw new RangeError("Format string contains an unescaped latin alphabet character `" +
|
|
2735
|
+
return !(a != null && a.useAdditionalWeekYearTokens) && Yd(se) && aa(se, e, String(t)), !(a != null && a.useAdditionalDayOfYearTokens) && Wd(se) && aa(se, e, String(t)), M(S, se, X.localize, P);
|
|
2736
|
+
if (re.match(Bc))
|
|
2737
|
+
throw new RangeError("Format string contains an unescaped latin alphabet character `" + re + "`");
|
|
2738
2738
|
return se;
|
|
2739
2739
|
}).join("");
|
|
2740
|
-
return
|
|
2740
|
+
return de;
|
|
2741
2741
|
}
|
|
2742
2742
|
function Rc(t) {
|
|
2743
2743
|
var e = t.match(Hc);
|
|
@@ -2898,7 +2898,7 @@ Nt.default = s0;
|
|
|
2898
2898
|
Object.defineProperty(_t, "__esModule", { value: !0 });
|
|
2899
2899
|
_t.LexoInteger = void 0;
|
|
2900
2900
|
const Wt = o1, n0 = Nt;
|
|
2901
|
-
class
|
|
2901
|
+
class ee {
|
|
2902
2902
|
constructor(e, a, n) {
|
|
2903
2903
|
this.sys = e, this.sign = a, this.mag = n;
|
|
2904
2904
|
}
|
|
@@ -2909,24 +2909,24 @@ class J {
|
|
|
2909
2909
|
let i = o.length - 1;
|
|
2910
2910
|
for (let l = 0; i >= 0; ++l)
|
|
2911
2911
|
o[l] = a.toDigit(n.charAt(i)), --i;
|
|
2912
|
-
return
|
|
2912
|
+
return ee.make(a, s, o);
|
|
2913
2913
|
}
|
|
2914
2914
|
static zero(e) {
|
|
2915
|
-
return new
|
|
2915
|
+
return new ee(e, 0, ee.ZERO_MAG);
|
|
2916
2916
|
}
|
|
2917
2917
|
static one(e) {
|
|
2918
|
-
return
|
|
2918
|
+
return ee.make(e, 1, ee.ONE_MAG);
|
|
2919
2919
|
}
|
|
2920
2920
|
static make(e, a, n) {
|
|
2921
2921
|
let s;
|
|
2922
2922
|
for (s = n.length; s > 0 && n[s - 1] === 0; --s)
|
|
2923
2923
|
;
|
|
2924
2924
|
if (s === 0)
|
|
2925
|
-
return
|
|
2925
|
+
return ee.zero(e);
|
|
2926
2926
|
if (s === n.length)
|
|
2927
|
-
return new
|
|
2927
|
+
return new ee(e, a, n);
|
|
2928
2928
|
const o = new Array(s).fill(0);
|
|
2929
|
-
return Wt.lexoHelper.arrayCopy(n, 0, o, 0, s), new
|
|
2929
|
+
return Wt.lexoHelper.arrayCopy(n, 0, o, 0, s), new ee(e, a, o);
|
|
2930
2930
|
}
|
|
2931
2931
|
static add(e, a, n) {
|
|
2932
2932
|
const s = Math.max(a.length, n.length), o = new Array(s).fill(0);
|
|
@@ -2938,7 +2938,7 @@ class J {
|
|
|
2938
2938
|
++i;
|
|
2939
2939
|
o[l] = c;
|
|
2940
2940
|
}
|
|
2941
|
-
return
|
|
2941
|
+
return ee.extendWithCarry(o, i);
|
|
2942
2942
|
}
|
|
2943
2943
|
static extendWithCarry(e, a) {
|
|
2944
2944
|
if (a > 0) {
|
|
@@ -2948,8 +2948,8 @@ class J {
|
|
|
2948
2948
|
return e;
|
|
2949
2949
|
}
|
|
2950
2950
|
static subtract(e, a, n) {
|
|
2951
|
-
const s =
|
|
2952
|
-
return o[o.length - 1] = 0,
|
|
2951
|
+
const s = ee.complement(e, n, a.length), o = ee.add(e, a, s);
|
|
2952
|
+
return o[o.length - 1] = 0, ee.add(e, o, ee.ONE_MAG);
|
|
2953
2953
|
}
|
|
2954
2954
|
static multiply(e, a, n) {
|
|
2955
2955
|
const s = new Array(a.length + n.length).fill(0);
|
|
@@ -2991,8 +2991,8 @@ class J {
|
|
|
2991
2991
|
let n;
|
|
2992
2992
|
return this.sign === -1 ? (n = this.negate(), n.subtract(e).negate()) : (n = e.negate(), this.subtract(n));
|
|
2993
2993
|
}
|
|
2994
|
-
const a =
|
|
2995
|
-
return
|
|
2994
|
+
const a = ee.add(this.sys, this.mag, e.mag);
|
|
2995
|
+
return ee.make(this.sys, this.sign, a);
|
|
2996
2996
|
}
|
|
2997
2997
|
subtract(e) {
|
|
2998
2998
|
if (this.checkSystem(e), this.isZero())
|
|
@@ -3003,8 +3003,8 @@ class J {
|
|
|
3003
3003
|
let n;
|
|
3004
3004
|
return this.sign === -1 ? (n = this.negate(), n.add(e).negate()) : (n = e.negate(), this.add(n));
|
|
3005
3005
|
}
|
|
3006
|
-
const a =
|
|
3007
|
-
return a === 0 ?
|
|
3006
|
+
const a = ee.compare(this.mag, e.mag);
|
|
3007
|
+
return a === 0 ? ee.zero(this.sys) : a < 0 ? ee.make(this.sys, this.sign === -1 ? 1 : -1, ee.subtract(this.sys, e.mag, this.mag)) : ee.make(this.sys, this.sign === -1 ? -1 : 1, ee.subtract(this.sys, this.mag, e.mag));
|
|
3008
3008
|
}
|
|
3009
3009
|
multiply(e) {
|
|
3010
3010
|
if (this.checkSystem(e), this.isZero())
|
|
@@ -3012,14 +3012,14 @@ class J {
|
|
|
3012
3012
|
if (e.isZero())
|
|
3013
3013
|
return e;
|
|
3014
3014
|
if (this.isOneish())
|
|
3015
|
-
return this.sign === e.sign ?
|
|
3015
|
+
return this.sign === e.sign ? ee.make(this.sys, 1, e.mag) : ee.make(this.sys, -1, e.mag);
|
|
3016
3016
|
if (e.isOneish())
|
|
3017
|
-
return this.sign === e.sign ?
|
|
3018
|
-
const a =
|
|
3019
|
-
return this.sign === e.sign ?
|
|
3017
|
+
return this.sign === e.sign ? ee.make(this.sys, 1, this.mag) : ee.make(this.sys, -1, this.mag);
|
|
3018
|
+
const a = ee.multiply(this.sys, this.mag, e.mag);
|
|
3019
|
+
return this.sign === e.sign ? ee.make(this.sys, 1, a) : ee.make(this.sys, -1, a);
|
|
3020
3020
|
}
|
|
3021
3021
|
negate() {
|
|
3022
|
-
return this.isZero() ? this :
|
|
3022
|
+
return this.isZero() ? this : ee.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
|
|
3023
3023
|
}
|
|
3024
3024
|
shiftLeft(e = 1) {
|
|
3025
3025
|
if (e === 0)
|
|
@@ -3027,19 +3027,19 @@ class J {
|
|
|
3027
3027
|
if (e < 0)
|
|
3028
3028
|
return this.shiftRight(Math.abs(e));
|
|
3029
3029
|
const a = new Array(this.mag.length + e).fill(0);
|
|
3030
|
-
return Wt.lexoHelper.arrayCopy(this.mag, 0, a, e, this.mag.length),
|
|
3030
|
+
return Wt.lexoHelper.arrayCopy(this.mag, 0, a, e, this.mag.length), ee.make(this.sys, this.sign, a);
|
|
3031
3031
|
}
|
|
3032
3032
|
shiftRight(e = 1) {
|
|
3033
3033
|
if (this.mag.length - e <= 0)
|
|
3034
|
-
return
|
|
3034
|
+
return ee.zero(this.sys);
|
|
3035
3035
|
const a = new Array(this.mag.length - e).fill(0);
|
|
3036
|
-
return Wt.lexoHelper.arrayCopy(this.mag, e, a, 0, a.length),
|
|
3036
|
+
return Wt.lexoHelper.arrayCopy(this.mag, e, a, 0, a.length), ee.make(this.sys, this.sign, a);
|
|
3037
3037
|
}
|
|
3038
3038
|
complement() {
|
|
3039
3039
|
return this.complementDigits(this.mag.length);
|
|
3040
3040
|
}
|
|
3041
3041
|
complementDigits(e) {
|
|
3042
|
-
return
|
|
3042
|
+
return ee.make(this.sys, this.sign, ee.complement(this.sys, this.mag, e));
|
|
3043
3043
|
}
|
|
3044
3044
|
isZero() {
|
|
3045
3045
|
return this.sign === 0 && this.mag.length === 1 && this.mag[0] === 0;
|
|
@@ -3057,12 +3057,12 @@ class J {
|
|
|
3057
3057
|
return 1;
|
|
3058
3058
|
if (this.sign === -1) {
|
|
3059
3059
|
if (e.sign === -1) {
|
|
3060
|
-
const a =
|
|
3060
|
+
const a = ee.compare(this.mag, e.mag);
|
|
3061
3061
|
return a === -1 ? 1 : a === 1 ? -1 : 0;
|
|
3062
3062
|
}
|
|
3063
3063
|
return -1;
|
|
3064
3064
|
}
|
|
3065
|
-
return this.sign === 1 ? e.sign === 1 ?
|
|
3065
|
+
return this.sign === 1 ? e.sign === 1 ? ee.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
|
|
3066
3066
|
}
|
|
3067
3067
|
getSystem() {
|
|
3068
3068
|
return this.sys;
|
|
@@ -3091,12 +3091,12 @@ class J {
|
|
|
3091
3091
|
throw new Error("Expected numbers of same numeral sys");
|
|
3092
3092
|
}
|
|
3093
3093
|
}
|
|
3094
|
-
_t.LexoInteger =
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3094
|
+
_t.LexoInteger = ee;
|
|
3095
|
+
ee.ZERO_MAG = [0];
|
|
3096
|
+
ee.ONE_MAG = [1];
|
|
3097
|
+
ee.NEGATIVE_SIGN = -1;
|
|
3098
|
+
ee.ZERO_SIGN = 0;
|
|
3099
|
+
ee.POSITIVE_SIGN = 1;
|
|
3100
3100
|
Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
3101
3101
|
Bt.LexoDecimal = void 0;
|
|
3102
3102
|
const Tt = _t, i0 = Nt;
|
|
@@ -3439,12 +3439,12 @@ function Aa() {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
let u;
|
|
3441
3441
|
for (let w = d.getScale(); w > 0; r = u) {
|
|
3442
|
-
const A = w - 1,
|
|
3443
|
-
if (u = r.setScale(A, !1),
|
|
3444
|
-
return s.checkMid(i, l,
|
|
3445
|
-
if (
|
|
3442
|
+
const A = w - 1, _ = d.setScale(A, !0);
|
|
3443
|
+
if (u = r.setScale(A, !1), _.compareTo(u) === 0)
|
|
3444
|
+
return s.checkMid(i, l, _);
|
|
3445
|
+
if (_.compareTo(u) > 0)
|
|
3446
3446
|
break;
|
|
3447
|
-
w = A, d =
|
|
3447
|
+
w = A, d = _;
|
|
3448
3448
|
}
|
|
3449
3449
|
let p = s.middleInternal(i, l, d, r), m;
|
|
3450
3450
|
for (let w = p.getScale(); w > 0; w = m) {
|
|
@@ -3712,14 +3712,14 @@ const C0 = { class: "ao-card-template__subitems" }, _0 = { class: "ao-card-templ
|
|
|
3712
3712
|
subtitle: U(() => [
|
|
3713
3713
|
v("ul", C0, [
|
|
3714
3714
|
v("li", _0, [
|
|
3715
|
-
|
|
3715
|
+
I(ce, {
|
|
3716
3716
|
name: "MountainFlagOutlineRounded",
|
|
3717
3717
|
size: "sm"
|
|
3718
3718
|
}),
|
|
3719
3719
|
v("span", g0, q(n.milestones), 1)
|
|
3720
3720
|
]),
|
|
3721
3721
|
v("li", y0, [
|
|
3722
|
-
|
|
3722
|
+
I(ce, {
|
|
3723
3723
|
name: "TaskOutlineRounded",
|
|
3724
3724
|
size: "sm"
|
|
3725
3725
|
}),
|
|
@@ -3731,7 +3731,7 @@ const C0 = { class: "ao-card-template__subitems" }, _0 = { class: "ao-card-templ
|
|
|
3731
3731
|
v("div", w0, [
|
|
3732
3732
|
v("div", $0, [
|
|
3733
3733
|
v("div", M0, [
|
|
3734
|
-
|
|
3734
|
+
I(ce, {
|
|
3735
3735
|
name: "WaterfallChartRounded",
|
|
3736
3736
|
size: "sm"
|
|
3737
3737
|
}),
|
|
@@ -3767,7 +3767,7 @@ const C0 = { class: "ao-card-template__subitems" }, _0 = { class: "ao-card-templ
|
|
|
3767
3767
|
v("span", D0, q(n.$t("template.updatedBy.label")), 1)
|
|
3768
3768
|
]),
|
|
3769
3769
|
v("div", H0, [
|
|
3770
|
-
|
|
3770
|
+
I(gt, { "user-name": n.updatedBy }, null, 8, ["user-name"])
|
|
3771
3771
|
])
|
|
3772
3772
|
])) : T("", !0)
|
|
3773
3773
|
])
|
|
@@ -3869,7 +3869,7 @@ const Z0 = { class: "ao-card-template-item__footer" }, F0 = {
|
|
|
3869
3869
|
v("ul", Z0, [
|
|
3870
3870
|
(f(), h(ve, null, ye(n, (d) => (f(), h(ve, { key: d }, [
|
|
3871
3871
|
i.$props[d] ? (f(), h("li", F0, [
|
|
3872
|
-
|
|
3872
|
+
I(ce, {
|
|
3873
3873
|
name: s[d],
|
|
3874
3874
|
size: "sm"
|
|
3875
3875
|
}, null, 8, ["name"]),
|
|
@@ -3880,7 +3880,7 @@ const Z0 = { class: "ao-card-template-item__footer" }, F0 = {
|
|
|
3880
3880
|
]),
|
|
3881
3881
|
secondary: U(() => [
|
|
3882
3882
|
v("div", z0, [
|
|
3883
|
-
|
|
3883
|
+
I(fe, {
|
|
3884
3884
|
"icon-name": "DeleteOutlineRounded",
|
|
3885
3885
|
variant: "ghost",
|
|
3886
3886
|
size: "md",
|
|
@@ -3968,7 +3968,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
3968
3968
|
onChange: i
|
|
3969
3969
|
}, {
|
|
3970
3970
|
header: U(() => [
|
|
3971
|
-
|
|
3971
|
+
I(Ce, {
|
|
3972
3972
|
title: "Milestones",
|
|
3973
3973
|
level: 3,
|
|
3974
3974
|
class: "ao-list__title"
|
|
@@ -3993,7 +3993,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
3993
3993
|
]),
|
|
3994
3994
|
footer: U(() => [
|
|
3995
3995
|
v("div", K0, [
|
|
3996
|
-
|
|
3996
|
+
I(Je, {
|
|
3997
3997
|
"icon-name": "AddBoxOutlineRounded",
|
|
3998
3998
|
label: l.$t("template.milestones.add"),
|
|
3999
3999
|
onClick: n
|
|
@@ -4058,7 +4058,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
4058
4058
|
onChange: i
|
|
4059
4059
|
}, {
|
|
4060
4060
|
header: U(() => [
|
|
4061
|
-
|
|
4061
|
+
I(Ce, {
|
|
4062
4062
|
title: "Activities",
|
|
4063
4063
|
level: 3,
|
|
4064
4064
|
class: "ao-list__title"
|
|
@@ -4079,7 +4079,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
4079
4079
|
]),
|
|
4080
4080
|
footer: U(() => [
|
|
4081
4081
|
v("div", X0, [
|
|
4082
|
-
|
|
4082
|
+
I(Je, {
|
|
4083
4083
|
"icon-name": "AddBoxOutlineRounded",
|
|
4084
4084
|
label: l.$t("template.activities.add"),
|
|
4085
4085
|
onClick: n
|
|
@@ -4112,7 +4112,7 @@ const W0 = /* @__PURE__ */ Y({
|
|
|
4112
4112
|
v("div", J0, [
|
|
4113
4113
|
v("div", e3, [
|
|
4114
4114
|
v("div", t3, [
|
|
4115
|
-
|
|
4115
|
+
I(fe, {
|
|
4116
4116
|
"icon-name": "CloseRounded",
|
|
4117
4117
|
variant: "ghost",
|
|
4118
4118
|
color: "primary",
|
|
@@ -4291,7 +4291,7 @@ const p3 = async (t, e, a) => {
|
|
|
4291
4291
|
} = ia(r, n, d), p = n, m = {}, w = 0;
|
|
4292
4292
|
for (let A = 0; A < l.length; A++) {
|
|
4293
4293
|
const {
|
|
4294
|
-
name:
|
|
4294
|
+
name: _,
|
|
4295
4295
|
fn: $
|
|
4296
4296
|
} = l[A], {
|
|
4297
4297
|
x: y,
|
|
@@ -4314,8 +4314,8 @@ const p3 = async (t, e, a) => {
|
|
|
4314
4314
|
});
|
|
4315
4315
|
if (c = y ?? c, u = L ?? u, m = {
|
|
4316
4316
|
...m,
|
|
4317
|
-
[
|
|
4318
|
-
...m[
|
|
4317
|
+
[_]: {
|
|
4318
|
+
...m[_],
|
|
4319
4319
|
...Z
|
|
4320
4320
|
}
|
|
4321
4321
|
}, W && w <= 50) {
|
|
@@ -4354,8 +4354,8 @@ async function Oa(t, e) {
|
|
|
4354
4354
|
elementContext: u = "floating",
|
|
4355
4355
|
altBoundary: p = !1,
|
|
4356
4356
|
padding: m = 0
|
|
4357
|
-
} = H1(e, t), w = v3(m),
|
|
4358
|
-
element: (a = await (o.isElement == null ? void 0 : o.isElement(
|
|
4357
|
+
} = H1(e, t), w = v3(m), _ = l[p ? u === "floating" ? "reference" : "floating" : u], $ = e1(await o.getClippingRect({
|
|
4358
|
+
element: (a = await (o.isElement == null ? void 0 : o.isElement(_))) == null || a ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4359
4359
|
boundary: r,
|
|
4360
4360
|
rootBoundary: c,
|
|
4361
4361
|
strategy: d
|
|
@@ -4401,51 +4401,51 @@ const h3 = function(t) {
|
|
|
4401
4401
|
fallbackStrategy: m = "bestFit",
|
|
4402
4402
|
fallbackAxisSideDirection: w = "none",
|
|
4403
4403
|
flipAlignment: A = !0,
|
|
4404
|
-
...
|
|
4404
|
+
..._
|
|
4405
4405
|
} = H1(t, e);
|
|
4406
4406
|
if ((a = o.arrow) != null && a.alignmentOffset)
|
|
4407
4407
|
return {};
|
|
4408
4408
|
const $ = mt(s), y = mt(l) === l, L = await (d.isRTL == null ? void 0 : d.isRTL(r.floating)), Z = p || (y || !A ? [Jt(l)] : u3(l));
|
|
4409
4409
|
!p && w !== "none" && Z.push(...c3(l, A, w, L));
|
|
4410
|
-
const W = [l, ...Z], V = await Oa(e,
|
|
4410
|
+
const W = [l, ...Z], V = await Oa(e, _), X = [];
|
|
4411
4411
|
let te = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
4412
4412
|
if (c && X.push(V[$]), u) {
|
|
4413
|
-
const
|
|
4414
|
-
X.push(V[
|
|
4413
|
+
const S = r3(s, i, L);
|
|
4414
|
+
X.push(V[S[0]], V[S[1]]);
|
|
4415
4415
|
}
|
|
4416
4416
|
if (te = [...te, {
|
|
4417
4417
|
placement: s,
|
|
4418
4418
|
overflows: X
|
|
4419
|
-
}], !X.every((
|
|
4420
|
-
var
|
|
4421
|
-
const
|
|
4422
|
-
if (
|
|
4419
|
+
}], !X.every((S) => S <= 0)) {
|
|
4420
|
+
var E, J;
|
|
4421
|
+
const S = (((E = o.flip) == null ? void 0 : E.index) || 0) + 1, P = W[S];
|
|
4422
|
+
if (P)
|
|
4423
4423
|
return {
|
|
4424
4424
|
data: {
|
|
4425
|
-
index:
|
|
4425
|
+
index: S,
|
|
4426
4426
|
overflows: te
|
|
4427
4427
|
},
|
|
4428
4428
|
reset: {
|
|
4429
|
-
placement:
|
|
4429
|
+
placement: P
|
|
4430
4430
|
}
|
|
4431
4431
|
};
|
|
4432
|
-
let
|
|
4433
|
-
if (!
|
|
4432
|
+
let de = (J = te.filter((se) => se.overflows[0] <= 0).sort((se, re) => se.overflows[1] - re.overflows[1])[0]) == null ? void 0 : J.placement;
|
|
4433
|
+
if (!de)
|
|
4434
4434
|
switch (m) {
|
|
4435
4435
|
case "bestFit": {
|
|
4436
|
-
var
|
|
4437
|
-
const se = (
|
|
4438
|
-
se && (
|
|
4436
|
+
var g;
|
|
4437
|
+
const se = (g = te.map((re) => [re.placement, re.overflows.filter((M) => M > 0).reduce((M, F) => M + F, 0)]).sort((re, M) => re[1] - M[1])[0]) == null ? void 0 : g[0];
|
|
4438
|
+
se && (de = se);
|
|
4439
4439
|
break;
|
|
4440
4440
|
}
|
|
4441
4441
|
case "initialPlacement":
|
|
4442
|
-
|
|
4442
|
+
de = l;
|
|
4443
4443
|
break;
|
|
4444
4444
|
}
|
|
4445
|
-
if (s !==
|
|
4445
|
+
if (s !== de)
|
|
4446
4446
|
return {
|
|
4447
4447
|
reset: {
|
|
4448
|
-
placement:
|
|
4448
|
+
placement: de
|
|
4449
4449
|
}
|
|
4450
4450
|
};
|
|
4451
4451
|
}
|
|
@@ -4472,18 +4472,18 @@ const h3 = function(t) {
|
|
|
4472
4472
|
} = n.floating;
|
|
4473
4473
|
let w, A;
|
|
4474
4474
|
r === "top" || r === "bottom" ? (w = r, A = c === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (A = r, w = c === "end" ? "top" : "bottom");
|
|
4475
|
-
const
|
|
4476
|
-
let L =
|
|
4475
|
+
const _ = m - d[w], $ = p - d[A], y = !e.middlewareData.shift;
|
|
4476
|
+
let L = _, Z = $;
|
|
4477
4477
|
if (u) {
|
|
4478
4478
|
const V = p - d.left - d.right;
|
|
4479
4479
|
Z = c || y ? Lt($, V) : V;
|
|
4480
4480
|
} else {
|
|
4481
4481
|
const V = m - d.top - d.bottom;
|
|
4482
|
-
L = c || y ? Lt(
|
|
4482
|
+
L = c || y ? Lt(_, V) : V;
|
|
4483
4483
|
}
|
|
4484
4484
|
if (y && !c) {
|
|
4485
|
-
const V = Ae(d.left, 0), X = Ae(d.right, 0), te = Ae(d.top, 0),
|
|
4486
|
-
u ? Z = p - 2 * (V !== 0 || X !== 0 ? V + X : Ae(d.left, d.right)) : L = m - 2 * (te !== 0 ||
|
|
4485
|
+
const V = Ae(d.left, 0), X = Ae(d.right, 0), te = Ae(d.top, 0), E = Ae(d.bottom, 0);
|
|
4486
|
+
u ? Z = p - 2 * (V !== 0 || X !== 0 ? V + X : Ae(d.left, d.right)) : L = m - 2 * (te !== 0 || E !== 0 ? te + E : Ae(d.top, d.bottom));
|
|
4487
4487
|
}
|
|
4488
4488
|
await i({
|
|
4489
4489
|
...e,
|
|
@@ -4637,7 +4637,7 @@ function at(t, e, a, n) {
|
|
|
4637
4637
|
const p = we(o), m = n && je(n) ? we(n) : n;
|
|
4638
4638
|
let w = p.frameElement;
|
|
4639
4639
|
for (; w && n && m !== p; ) {
|
|
4640
|
-
const A = pt(w),
|
|
4640
|
+
const A = pt(w), _ = w.getBoundingClientRect(), $ = Ie(w), y = _.left + (w.clientLeft + parseFloat($.paddingLeft)) * A.x, L = _.top + (w.clientTop + parseFloat($.paddingTop)) * A.y;
|
|
4641
4641
|
d *= A.x, r *= A.y, c *= A.x, u *= A.y, d += y, r += L, w = we(w).frameElement;
|
|
4642
4642
|
}
|
|
4643
4643
|
}
|
|
@@ -4849,8 +4849,8 @@ function V3(t, e) {
|
|
|
4849
4849
|
} = t.getBoundingClientRect();
|
|
4850
4850
|
if (l || e(), !u || !p)
|
|
4851
4851
|
return;
|
|
4852
|
-
const m = Kt(c), w = Kt(s.clientWidth - (r + u)), A = Kt(s.clientHeight - (c + p)),
|
|
4853
|
-
rootMargin: -m + "px " + -w + "px " + -A + "px " + -
|
|
4852
|
+
const m = Kt(c), w = Kt(s.clientWidth - (r + u)), A = Kt(s.clientHeight - (c + p)), _ = Kt(r), y = {
|
|
4853
|
+
rootMargin: -m + "px " + -w + "px " + -A + "px " + -_ + "px",
|
|
4854
4854
|
threshold: Ae(0, Lt(1, d)) || 1
|
|
4855
4855
|
};
|
|
4856
4856
|
let L = !0;
|
|
@@ -4901,10 +4901,10 @@ function D3(t, e, a, n) {
|
|
|
4901
4901
|
})), a();
|
|
4902
4902
|
}), r && !d && m.observe(r), m.observe(e));
|
|
4903
4903
|
let w, A = d ? at(t) : null;
|
|
4904
|
-
d &&
|
|
4905
|
-
function
|
|
4904
|
+
d && _();
|
|
4905
|
+
function _() {
|
|
4906
4906
|
const $ = at(t);
|
|
4907
|
-
A && ($.x !== A.x || $.y !== A.y || $.width !== A.width || $.height !== A.height) && a(), A = $, w = requestAnimationFrame(
|
|
4907
|
+
A && ($.x !== A.x || $.y !== A.y || $.width !== A.width || $.height !== A.height) && a(), A = $, w = requestAnimationFrame(_);
|
|
4908
4908
|
}
|
|
4909
4909
|
return a(), () => {
|
|
4910
4910
|
c.forEach(($) => {
|
|
@@ -5027,12 +5027,12 @@ function R3(t, e, a) {
|
|
|
5027
5027
|
}, p = (m) => {
|
|
5028
5028
|
if (n && n.value) {
|
|
5029
5029
|
let A = (m.clipboardData || /* istanbul ignore next */
|
|
5030
|
-
window.clipboardData).getData("Text"),
|
|
5031
|
-
typeof
|
|
5030
|
+
window.clipboardData).getData("Text"), _ = n.value;
|
|
5031
|
+
typeof _ == "string" && (_ = new RegExp(_)), A.split("").every(($) => !!$.match(_)) || m.preventDefault();
|
|
5032
5032
|
}
|
|
5033
5033
|
e.emit("paste", m, s);
|
|
5034
5034
|
};
|
|
5035
|
-
return
|
|
5035
|
+
return ue(l, (m) => {
|
|
5036
5036
|
!o.value && m && i(), e.emit("search-change", m, s);
|
|
5037
5037
|
}), {
|
|
5038
5038
|
search: l,
|
|
@@ -5082,7 +5082,7 @@ function F3(t, e, a) {
|
|
|
5082
5082
|
multipleLabel: m,
|
|
5083
5083
|
object: w,
|
|
5084
5084
|
loading: A,
|
|
5085
|
-
delay:
|
|
5085
|
+
delay: _,
|
|
5086
5086
|
resolveOnLoad: $,
|
|
5087
5087
|
minChars: y,
|
|
5088
5088
|
filterResults: L,
|
|
@@ -5091,14 +5091,14 @@ function F3(t, e, a) {
|
|
|
5091
5091
|
valueProp: V,
|
|
5092
5092
|
allowAbsent: X,
|
|
5093
5093
|
groupLabel: te,
|
|
5094
|
-
canDeselect:
|
|
5095
|
-
max:
|
|
5096
|
-
strict:
|
|
5097
|
-
closeOnSelect:
|
|
5098
|
-
closeOnDeselect:
|
|
5099
|
-
groups:
|
|
5094
|
+
canDeselect: E,
|
|
5095
|
+
max: J,
|
|
5096
|
+
strict: g,
|
|
5097
|
+
closeOnSelect: S,
|
|
5098
|
+
closeOnDeselect: P,
|
|
5099
|
+
groups: de,
|
|
5100
5100
|
reverse: se,
|
|
5101
|
-
infinite:
|
|
5101
|
+
infinite: re,
|
|
5102
5102
|
groupOptions: M,
|
|
5103
5103
|
groupHideEmpty: F,
|
|
5104
5104
|
groupSelect: j,
|
|
@@ -5106,8 +5106,8 @@ function F3(t, e, a) {
|
|
|
5106
5106
|
disabledProp: oe,
|
|
5107
5107
|
searchStart: k,
|
|
5108
5108
|
searchFilter: K
|
|
5109
|
-
} = $e(t), ie = st().proxy,
|
|
5110
|
-
if (
|
|
5109
|
+
} = $e(t), ie = st().proxy, H = a.iv, O = a.ev, R = a.search, me = a.clearSearch, Me = a.update, ja = a.pointer, it = a.clearPointer, Za = a.focus, Fa = a.deactivate, ot = a.close, qa = a.localize, yt = Q([]), Fe = Q([]), Le = Q(!1), p1 = Q(null), h1 = Q(re.value && i.value === -1 ? 10 : i.value), F1 = b(() => d.value || r.value || !1), za = b(() => u.value !== void 0 ? u.value : p.value !== void 0 ? p.value : !0), qe = b(() => {
|
|
5110
|
+
if (de.value) {
|
|
5111
5111
|
let C = jt.value || /* istanbul ignore next */
|
|
5112
5112
|
[], D = [];
|
|
5113
5113
|
return C.forEach((ne) => {
|
|
@@ -5127,7 +5127,7 @@ function F3(t, e, a) {
|
|
|
5127
5127
|
let C = q1.value;
|
|
5128
5128
|
return h1.value > 0 && (C = C.slice(0, h1.value)), C;
|
|
5129
5129
|
}), jt = b(() => {
|
|
5130
|
-
if (!
|
|
5130
|
+
if (!de.value)
|
|
5131
5131
|
return [];
|
|
5132
5132
|
let C = [], D = Fe.value || /* istanbul ignore next */
|
|
5133
5133
|
[];
|
|
@@ -5144,7 +5144,7 @@ function F3(t, e, a) {
|
|
|
5144
5144
|
__CREATE__: !0
|
|
5145
5145
|
}].concat(C)), C;
|
|
5146
5146
|
}), z1 = b(() => {
|
|
5147
|
-
if (!
|
|
5147
|
+
if (!de.value)
|
|
5148
5148
|
return [];
|
|
5149
5149
|
let C = Wa.value;
|
|
5150
5150
|
return ls((C || /* istanbul ignore next */
|
|
@@ -5161,12 +5161,12 @@ function F3(t, e, a) {
|
|
|
5161
5161
|
}), m1 = b(() => {
|
|
5162
5162
|
switch (s.value) {
|
|
5163
5163
|
case "single":
|
|
5164
|
-
return !De(
|
|
5164
|
+
return !De(H.value[V.value]);
|
|
5165
5165
|
case "multiple":
|
|
5166
5166
|
case "tags":
|
|
5167
|
-
return !De(
|
|
5167
|
+
return !De(H.value) && H.value.length > 0;
|
|
5168
5168
|
}
|
|
5169
|
-
}), Ya = b(() => m !== void 0 && m.value !== void 0 ? m.value(
|
|
5169
|
+
}), Ya = b(() => m !== void 0 && m.value !== void 0 ? m.value(H.value, ie) : H.value && H.value.length > 1 ? `${H.value.length} options selected` : "1 option selected"), Ka = b(() => !qe.value.length && !Le.value && !lt.value.length), Ga = b(() => qe.value.length > 0 && bt.value.length == 0 && (R.value && de.value || !de.value)), lt = b(() => F1.value === !1 || !R.value ? [] : ns(R.value) !== -1 ? [] : [{
|
|
5170
5170
|
[V.value]: R.value,
|
|
5171
5171
|
[Ve.value]: R.value,
|
|
5172
5172
|
[c.value]: R.value,
|
|
@@ -5186,7 +5186,7 @@ function F3(t, e, a) {
|
|
|
5186
5186
|
break;
|
|
5187
5187
|
case "multiple":
|
|
5188
5188
|
case "tags":
|
|
5189
|
-
Me(
|
|
5189
|
+
Me(H.value.concat(C));
|
|
5190
5190
|
break;
|
|
5191
5191
|
}
|
|
5192
5192
|
e.emit("select", W1(C), C, ie);
|
|
@@ -5197,7 +5197,7 @@ function F3(t, e, a) {
|
|
|
5197
5197
|
break;
|
|
5198
5198
|
case "tags":
|
|
5199
5199
|
case "multiple":
|
|
5200
|
-
Me(Array.isArray(C) ?
|
|
5200
|
+
Me(Array.isArray(C) ? H.value.filter((D) => C.map((ne) => ne[V.value]).indexOf(D[V.value]) === -1) : H.value.filter((D) => D[V.value] != C[V.value]));
|
|
5201
5201
|
break;
|
|
5202
5202
|
}
|
|
5203
5203
|
e.emit("deselect", W1(C), C, ie);
|
|
@@ -5216,12 +5216,12 @@ function F3(t, e, a) {
|
|
|
5216
5216
|
return s.value === "single" ? !1 : ss(C[M.value]) && C[M.value].length;
|
|
5217
5217
|
switch (s.value) {
|
|
5218
5218
|
case "single":
|
|
5219
|
-
return !De(
|
|
5219
|
+
return !De(H.value) && H.value[V.value] == C[V.value];
|
|
5220
5220
|
case "tags":
|
|
5221
5221
|
case "multiple":
|
|
5222
|
-
return !De(
|
|
5222
|
+
return !De(H.value) && H.value.map((D) => D[V.value]).indexOf(C[V.value]) !== -1;
|
|
5223
5223
|
}
|
|
5224
|
-
}, C1 = (C) => C[oe.value] === !0, _1 = () =>
|
|
5224
|
+
}, C1 = (C) => C[oe.value] === !0, _1 = () => J === void 0 || J.value === -1 || !m1.value && J.value > 0 ? !1 : H.value.length >= J.value, Ja = (C) => {
|
|
5225
5225
|
if (!C1(C)) {
|
|
5226
5226
|
if (ae && ae.value && !Ne(C) && C.__CREATE__ && (C = { ...C }, delete C.__CREATE__, C = ae.value(C, ie), C instanceof Promise)) {
|
|
5227
5227
|
Le.value = !0, C.then((D) => {
|
|
@@ -5235,46 +5235,46 @@ function F3(t, e, a) {
|
|
|
5235
5235
|
switch (C.__CREATE__ && (C = { ...C }, delete C.__CREATE__), s.value) {
|
|
5236
5236
|
case "single":
|
|
5237
5237
|
if (C && Ne(C)) {
|
|
5238
|
-
|
|
5238
|
+
E.value && ut(C), P.value && (it(), ot());
|
|
5239
5239
|
return;
|
|
5240
5240
|
}
|
|
5241
|
-
C && g1(C), W.value && me(),
|
|
5241
|
+
C && g1(C), W.value && me(), S.value && (it(), ot()), C && rt(C);
|
|
5242
5242
|
break;
|
|
5243
5243
|
case "multiple":
|
|
5244
5244
|
if (C && Ne(C)) {
|
|
5245
|
-
ut(C),
|
|
5245
|
+
ut(C), P.value && (it(), ot());
|
|
5246
5246
|
return;
|
|
5247
5247
|
}
|
|
5248
5248
|
if (_1()) {
|
|
5249
5249
|
e.emit("max", ie);
|
|
5250
5250
|
return;
|
|
5251
5251
|
}
|
|
5252
|
-
C && (g1(C), rt(C)), W.value && me(), l.value && it(),
|
|
5252
|
+
C && (g1(C), rt(C)), W.value && me(), l.value && it(), S.value && ot();
|
|
5253
5253
|
break;
|
|
5254
5254
|
case "tags":
|
|
5255
5255
|
if (C && Ne(C)) {
|
|
5256
|
-
ut(C),
|
|
5256
|
+
ut(C), P.value && (it(), ot());
|
|
5257
5257
|
return;
|
|
5258
5258
|
}
|
|
5259
5259
|
if (_1()) {
|
|
5260
5260
|
e.emit("max", ie);
|
|
5261
5261
|
return;
|
|
5262
5262
|
}
|
|
5263
|
-
C && g1(C), W.value && me(), C && rt(C), l.value && it(),
|
|
5263
|
+
C && g1(C), W.value && me(), C && rt(C), l.value && it(), S.value && ot();
|
|
5264
5264
|
break;
|
|
5265
5265
|
}
|
|
5266
|
-
|
|
5266
|
+
S.value || Za();
|
|
5267
5267
|
}, es = (C) => {
|
|
5268
5268
|
if (!(C1(C) || s.value === "single" || !j.value)) {
|
|
5269
5269
|
switch (s.value) {
|
|
5270
5270
|
case "multiple":
|
|
5271
5271
|
case "tags":
|
|
5272
5272
|
as(C[M.value]) ? ut(C[M.value]) : rt(
|
|
5273
|
-
C[M.value].filter((D) =>
|
|
5273
|
+
C[M.value].filter((D) => H.value.map((ne) => ne[V.value]).indexOf(D[V.value]) === -1).filter((D) => !D[oe.value]).filter((D, ne) => H.value.length + 1 + ne <= J.value || J.value === -1)
|
|
5274
5274
|
);
|
|
5275
5275
|
break;
|
|
5276
5276
|
}
|
|
5277
|
-
|
|
5277
|
+
S.value && Fa();
|
|
5278
5278
|
}
|
|
5279
5279
|
}, g1 = (C) => {
|
|
5280
5280
|
Re(C[V.value]) === void 0 && F1.value && (e.emit("tag", C[V.value], ie), e.emit("option", C[V.value], ie), e.emit("create", C[V.value], ie), za.value && os(C), me());
|
|
@@ -5291,8 +5291,8 @@ function F3(t, e, a) {
|
|
|
5291
5291
|
if (R.value && L.value) {
|
|
5292
5292
|
let pe = K.value;
|
|
5293
5293
|
pe || (pe = (wt, a8) => {
|
|
5294
|
-
let X1 = k1(qa(wt[Ve.value]),
|
|
5295
|
-
return k.value ? X1.startsWith(k1(R.value,
|
|
5294
|
+
let X1 = k1(qa(wt[Ve.value]), g.value);
|
|
5295
|
+
return k.value ? X1.startsWith(k1(R.value, g.value)) : X1.indexOf(k1(R.value, g.value)) !== -1;
|
|
5296
5296
|
}), ne = ne.filter(pe);
|
|
5297
5297
|
}
|
|
5298
5298
|
return l.value && D && (ne = ne.filter((pe) => !is(pe))), ne;
|
|
@@ -5303,7 +5303,7 @@ function F3(t, e, a) {
|
|
|
5303
5303
|
return { [V.value]: ne, [Ve.value]: pe, [c.value]: pe };
|
|
5304
5304
|
})), D = D.map((ne) => typeof ne == "object" ? ne : { [V.value]: ne, [Ve.value]: ne, [c.value]: ne }), D;
|
|
5305
5305
|
}, Zt = () => {
|
|
5306
|
-
De(
|
|
5306
|
+
De(O.value) || (H.value = qt(O.value));
|
|
5307
5307
|
}, Ft = (C) => (Le.value = !0, new Promise((D, ne) => {
|
|
5308
5308
|
n.value(R.value, ie).then((pe) => {
|
|
5309
5309
|
Fe.value = pe || [], typeof C == "function" && C(pe), Le.value = !1;
|
|
@@ -5315,17 +5315,17 @@ function F3(t, e, a) {
|
|
|
5315
5315
|
})), w1 = () => {
|
|
5316
5316
|
if (m1.value)
|
|
5317
5317
|
if (s.value === "single") {
|
|
5318
|
-
let C = Re(
|
|
5318
|
+
let C = Re(H.value[V.value]);
|
|
5319
5319
|
if (C !== void 0) {
|
|
5320
5320
|
let D = C[c.value];
|
|
5321
|
-
|
|
5321
|
+
H.value[c.value] = D, w.value && (O.value[c.value] = D);
|
|
5322
5322
|
}
|
|
5323
5323
|
} else
|
|
5324
|
-
|
|
5325
|
-
let ne = Re(
|
|
5324
|
+
H.value.forEach((C, D) => {
|
|
5325
|
+
let ne = Re(H.value[D][V.value]);
|
|
5326
5326
|
if (ne !== void 0) {
|
|
5327
5327
|
let pe = ne[c.value];
|
|
5328
|
-
|
|
5328
|
+
H.value[D][c.value] = pe, w.value && (O.value[D][c.value] = pe);
|
|
5329
5329
|
}
|
|
5330
5330
|
});
|
|
5331
5331
|
}, rs = (C) => {
|
|
@@ -5339,7 +5339,7 @@ function F3(t, e, a) {
|
|
|
5339
5339
|
[V.value]: D,
|
|
5340
5340
|
[Ve.value]: D
|
|
5341
5341
|
}), x1 = () => {
|
|
5342
|
-
p1.value =
|
|
5342
|
+
p1.value = ue(R, (C) => {
|
|
5343
5343
|
C.length < y.value || !C && y.value !== 0 || (Le.value = !0, Z.value && (Fe.value = []), setTimeout(() => {
|
|
5344
5344
|
C == R.value && n.value(R.value, ie).then((D) => {
|
|
5345
5345
|
(C == R.value || !R.value) && (Fe.value = D, ja.value = bt.value.filter((ne) => ne[oe.value] !== !0)[0] || null, Le.value = !1);
|
|
@@ -5349,30 +5349,30 @@ function F3(t, e, a) {
|
|
|
5349
5349
|
console.error(D);
|
|
5350
5350
|
}
|
|
5351
5351
|
);
|
|
5352
|
-
},
|
|
5352
|
+
}, _.value));
|
|
5353
5353
|
}, { flush: "sync" });
|
|
5354
5354
|
};
|
|
5355
|
-
if (s.value !== "single" && !De(
|
|
5355
|
+
if (s.value !== "single" && !De(O.value) && !Array.isArray(O.value))
|
|
5356
5356
|
throw new Error(`v-model must be an array when using "${s.value}" mode`);
|
|
5357
|
-
return n && typeof n.value == "function" ? $.value ? Ft(Zt) : w.value == !0 && Zt() : (Fe.value = n.value, Zt()),
|
|
5357
|
+
return n && typeof n.value == "function" ? $.value ? Ft(Zt) : w.value == !0 && Zt() : (Fe.value = n.value, Zt()), _.value > -1 && x1(), ue(_, (C, D) => {
|
|
5358
5358
|
p1.value && p1.value(), C >= 0 && x1();
|
|
5359
|
-
}),
|
|
5359
|
+
}), ue(O, (C) => {
|
|
5360
5360
|
if (De(C)) {
|
|
5361
5361
|
Me(qt(C), !1);
|
|
5362
5362
|
return;
|
|
5363
5363
|
}
|
|
5364
5364
|
switch (s.value) {
|
|
5365
5365
|
case "single":
|
|
5366
|
-
(w.value ? C[V.value] !=
|
|
5366
|
+
(w.value ? C[V.value] != H.value[V.value] : C != H.value[V.value]) && Me(qt(C), !1);
|
|
5367
5367
|
break;
|
|
5368
5368
|
case "multiple":
|
|
5369
5369
|
case "tags":
|
|
5370
|
-
Z3(w.value ? C.map((D) => D[V.value]) : C,
|
|
5370
|
+
Z3(w.value ? C.map((D) => D[V.value]) : C, H.value.map((D) => D[V.value])) || Me(qt(C), !1);
|
|
5371
5371
|
break;
|
|
5372
5372
|
}
|
|
5373
|
-
}, { deep: !0 }),
|
|
5374
|
-
typeof t.options == "function" ? $.value && (!D || C && C.toString() !== D.toString()) && Ft() : (Fe.value = t.options, Object.keys(
|
|
5375
|
-
}),
|
|
5373
|
+
}, { deep: !0 }), ue(n, (C, D) => {
|
|
5374
|
+
typeof t.options == "function" ? $.value && (!D || C && C.toString() !== D.toString()) && Ft() : (Fe.value = t.options, Object.keys(H.value).length || Zt(), w1());
|
|
5375
|
+
}), ue(c, w1), {
|
|
5376
5376
|
pfo: q1,
|
|
5377
5377
|
fo: bt,
|
|
5378
5378
|
filteredOptions: bt,
|
|
@@ -5417,66 +5417,66 @@ function q3(t, e, a) {
|
|
|
5417
5417
|
groupSelect: r,
|
|
5418
5418
|
disabledProp: c,
|
|
5419
5419
|
groupOptions: u
|
|
5420
|
-
} = $e(t), p = a.fo, m = a.fg, w = a.handleOptionClick, A = a.handleGroupClick,
|
|
5421
|
-
const
|
|
5420
|
+
} = $e(t), p = a.fo, m = a.fg, w = a.handleOptionClick, A = a.handleGroupClick, _ = a.search, $ = a.pointer, y = a.setPointer, L = a.clearPointer, Z = a.multiselect, W = a.isOpen, V = b(() => p.value.filter((O) => !O[c.value])), X = b(() => m.value.filter((O) => !O[c.value])), te = b(() => d.value !== "single" && r.value), E = b(() => $.value && $.value.group), J = b(() => ie($.value)), g = b(() => {
|
|
5421
|
+
const O = E.value ? $.value : (
|
|
5422
5422
|
/* istanbul ignore next */
|
|
5423
5423
|
ie($.value)
|
|
5424
|
-
), R = X.value.map((Me) => Me[i.value]).indexOf(
|
|
5424
|
+
), R = X.value.map((Me) => Me[i.value]).indexOf(O[i.value]);
|
|
5425
5425
|
let me = X.value[R - 1];
|
|
5426
|
-
return me === void 0 && (me =
|
|
5427
|
-
}),
|
|
5428
|
-
let
|
|
5429
|
-
return X.value.length <=
|
|
5430
|
-
}),
|
|
5431
|
-
const
|
|
5432
|
-
return
|
|
5433
|
-
}),
|
|
5434
|
-
const
|
|
5435
|
-
return
|
|
5436
|
-
}), M = b(() => [...
|
|
5426
|
+
return me === void 0 && (me = P.value), me;
|
|
5427
|
+
}), S = b(() => {
|
|
5428
|
+
let O = X.value.map((R) => R.label).indexOf(E.value ? $.value[i.value] : ie($.value)[i.value]) + 1;
|
|
5429
|
+
return X.value.length <= O && (O = 0), X.value[O];
|
|
5430
|
+
}), P = b(() => [...X.value].slice(-1)[0]), de = b(() => $.value.__VISIBLE__.filter((O) => !O[c.value])[0]), se = b(() => {
|
|
5431
|
+
const O = J.value.__VISIBLE__.filter((R) => !R[c.value]);
|
|
5432
|
+
return O[O.map((R) => R[n.value]).indexOf($.value[n.value]) - 1];
|
|
5433
|
+
}), re = b(() => {
|
|
5434
|
+
const O = ie($.value).__VISIBLE__.filter((R) => !R[c.value]);
|
|
5435
|
+
return O[O.map((R) => R[n.value]).indexOf($.value[n.value]) + 1];
|
|
5436
|
+
}), M = b(() => [...g.value.__VISIBLE__.filter((O) => !O[c.value])].slice(-1)[0]), F = b(() => [...P.value.__VISIBLE__.filter((O) => !O[c.value])].slice(-1)[0]), j = (O) => $.value && (!O.group && $.value[n.value] === O[n.value] || O.group !== void 0 && $.value[i.value] === O[i.value]) ? !0 : void 0, ae = () => {
|
|
5437
5437
|
y(V.value[0] || null);
|
|
5438
5438
|
}, oe = () => {
|
|
5439
|
-
!$.value || $.value[c.value] === !0 || (
|
|
5439
|
+
!$.value || $.value[c.value] === !0 || (E.value ? A($.value) : w($.value));
|
|
5440
5440
|
}, k = () => {
|
|
5441
5441
|
if ($.value === null)
|
|
5442
5442
|
y((l.value && te.value ? X.value[0].__CREATE__ ? V.value[0] : X.value[0] : V.value[0]) || null);
|
|
5443
5443
|
else if (l.value && te.value) {
|
|
5444
|
-
let
|
|
5445
|
-
|
|
5444
|
+
let O = E.value ? de.value : re.value;
|
|
5445
|
+
O === void 0 && (O = S.value, O.__CREATE__ && (O = O[u.value][0])), y(O || /* istanbul ignore next */
|
|
5446
5446
|
null);
|
|
5447
5447
|
} else {
|
|
5448
|
-
let
|
|
5449
|
-
V.value.length <=
|
|
5448
|
+
let O = V.value.map((R) => R[n.value]).indexOf($.value[n.value]) + 1;
|
|
5449
|
+
V.value.length <= O && (O = 0), y(V.value[O] || null);
|
|
5450
5450
|
}
|
|
5451
5451
|
Oe(() => {
|
|
5452
|
-
|
|
5452
|
+
H();
|
|
5453
5453
|
});
|
|
5454
5454
|
}, K = () => {
|
|
5455
5455
|
if ($.value === null) {
|
|
5456
|
-
let
|
|
5457
|
-
l.value && te.value && (
|
|
5456
|
+
let O = V.value[V.value.length - 1];
|
|
5457
|
+
l.value && te.value && (O = F.value, O === void 0 && (O = P.value)), y(O || null);
|
|
5458
5458
|
} else if (l.value && te.value) {
|
|
5459
|
-
let
|
|
5460
|
-
|
|
5459
|
+
let O = E.value ? M.value : se.value;
|
|
5460
|
+
O === void 0 && (O = E.value ? g.value : J.value, O.__CREATE__ && (O = M.value, O === void 0 && (O = g.value))), y(O || /* istanbul ignore next */
|
|
5461
5461
|
null);
|
|
5462
5462
|
} else {
|
|
5463
|
-
let
|
|
5464
|
-
|
|
5463
|
+
let O = V.value.map((R) => R[n.value]).indexOf($.value[n.value]) - 1;
|
|
5464
|
+
O < 0 && (O = V.value.length - 1), y(V.value[O] || null);
|
|
5465
5465
|
}
|
|
5466
5466
|
Oe(() => {
|
|
5467
|
-
|
|
5467
|
+
H();
|
|
5468
5468
|
});
|
|
5469
|
-
}, ie = (
|
|
5470
|
-
let
|
|
5471
|
-
if (!
|
|
5469
|
+
}, ie = (O) => X.value.find((R) => R.__VISIBLE__.map((me) => me[n.value]).indexOf(O[n.value]) !== -1), H = () => {
|
|
5470
|
+
let O = Z.value.querySelector("[data-pointed]");
|
|
5471
|
+
if (!O)
|
|
5472
5472
|
return;
|
|
5473
|
-
let R =
|
|
5474
|
-
l.value && (R =
|
|
5473
|
+
let R = O.parentElement.parentElement;
|
|
5474
|
+
l.value && (R = E.value ? O.parentElement.parentElement.parentElement : O.parentElement.parentElement.parentElement.parentElement), O.offsetTop + O.offsetHeight > R.clientHeight + R.scrollTop && (R.scrollTop = O.offsetTop + O.offsetHeight - R.clientHeight), O.offsetTop < R.scrollTop && (R.scrollTop = O.offsetTop);
|
|
5475
5475
|
};
|
|
5476
|
-
return
|
|
5477
|
-
o.value && (
|
|
5478
|
-
}),
|
|
5479
|
-
if (
|
|
5476
|
+
return ue(_, (O) => {
|
|
5477
|
+
o.value && (O.length && s.value ? ae() : L());
|
|
5478
|
+
}), ue(W, (O) => {
|
|
5479
|
+
if (O) {
|
|
5480
5480
|
let R = Z.value.querySelectorAll("[data-selected]")[0];
|
|
5481
5481
|
if (!R)
|
|
5482
5482
|
return;
|
|
@@ -5508,12 +5508,12 @@ function z3(t, e, a) {
|
|
|
5508
5508
|
};
|
|
5509
5509
|
}
|
|
5510
5510
|
function W3(t, e, a) {
|
|
5511
|
-
const { searchable: n, disabled: s, clearOnBlur: o } = $e(t), i = a.input, l = a.open, d = a.close, r = a.clearSearch, c = a.isOpen, u = Q(null), p = Q(null), m = Q(null), w = Q(!1), A = Q(!1),
|
|
5511
|
+
const { searchable: n, disabled: s, clearOnBlur: o } = $e(t), i = a.input, l = a.open, d = a.close, r = a.clearSearch, c = a.isOpen, u = Q(null), p = Q(null), m = Q(null), w = Q(!1), A = Q(!1), _ = b(() => n.value || s.value ? -1 : 0), $ = () => {
|
|
5512
5512
|
n.value && i.value.blur(), p.value.blur();
|
|
5513
5513
|
}, y = () => {
|
|
5514
5514
|
n.value && !s.value && i.value.focus();
|
|
5515
|
-
}, L = (
|
|
5516
|
-
s.value || (w.value = !0,
|
|
5515
|
+
}, L = (E = !0) => {
|
|
5516
|
+
s.value || (w.value = !0, E && l());
|
|
5517
5517
|
}, Z = () => {
|
|
5518
5518
|
w.value = !1, setTimeout(() => {
|
|
5519
5519
|
w.value || (d(), o.value && r());
|
|
@@ -5523,15 +5523,15 @@ function W3(t, e, a) {
|
|
|
5523
5523
|
multiselect: u,
|
|
5524
5524
|
wrapper: p,
|
|
5525
5525
|
tags: m,
|
|
5526
|
-
tabindex:
|
|
5526
|
+
tabindex: _,
|
|
5527
5527
|
isActive: w,
|
|
5528
5528
|
mouseClicked: A,
|
|
5529
5529
|
blur: $,
|
|
5530
5530
|
focus: y,
|
|
5531
5531
|
activate: L,
|
|
5532
5532
|
deactivate: Z,
|
|
5533
|
-
handleFocusIn: (
|
|
5534
|
-
|
|
5533
|
+
handleFocusIn: (E) => {
|
|
5534
|
+
E.target.closest("[data-tags]") && E.target.nodeName !== "INPUT" || E.target.closest("[data-clear]") || L(A.value);
|
|
5535
5535
|
},
|
|
5536
5536
|
handleFocusOut: () => {
|
|
5537
5537
|
Z();
|
|
@@ -5539,8 +5539,8 @@ function W3(t, e, a) {
|
|
|
5539
5539
|
handleCaretClick: () => {
|
|
5540
5540
|
Z(), $();
|
|
5541
5541
|
},
|
|
5542
|
-
handleMousedown: (
|
|
5543
|
-
A.value = !0, c.value && (
|
|
5542
|
+
handleMousedown: (E) => {
|
|
5543
|
+
A.value = !0, c.value && (E.target.isEqualNode(p.value) || E.target.isEqualNode(m.value)) ? setTimeout(() => {
|
|
5544
5544
|
Z();
|
|
5545
5545
|
}, 0) : document.activeElement.isEqualNode(p.value) && !c.value && L(), setTimeout(() => {
|
|
5546
5546
|
A.value = !1;
|
|
@@ -5561,9 +5561,9 @@ function Y3(t, e, a) {
|
|
|
5561
5561
|
createTag: u,
|
|
5562
5562
|
createOption: p,
|
|
5563
5563
|
reverse: m
|
|
5564
|
-
} = $e(t), w = st().proxy, A = a.iv,
|
|
5565
|
-
n.value === "tags" && !l.value &&
|
|
5566
|
-
},
|
|
5564
|
+
} = $e(t), w = st().proxy, A = a.iv, _ = a.update, $ = a.search, y = a.setPointer, L = a.selectPointer, Z = a.backwardPointer, W = a.forwardPointer, V = a.multiselect, X = a.wrapper, te = a.tags, E = a.isOpen, J = a.open, g = a.blur, S = a.fo, P = b(() => u.value || p.value || !1), de = b(() => s.value !== void 0 ? s.value : c.value !== void 0 ? c.value : ["enter"]), se = () => {
|
|
5565
|
+
n.value === "tags" && !l.value && P.value && i.value && !r.value && y(S.value[S.value.map((j) => j[d.value]).indexOf($.value)]);
|
|
5566
|
+
}, re = (j) => {
|
|
5567
5567
|
let ae = j.length - 1;
|
|
5568
5568
|
for (; ae >= 0 && (j[ae].remove === !1 || j[ae].disabled); )
|
|
5569
5569
|
ae--;
|
|
@@ -5577,49 +5577,49 @@ function Y3(t, e, a) {
|
|
|
5577
5577
|
case "Backspace":
|
|
5578
5578
|
if (n.value === "single" || i.value && [null, ""].indexOf($.value) === -1 || A.value.length === 0)
|
|
5579
5579
|
return;
|
|
5580
|
-
|
|
5580
|
+
_(re([...A.value]));
|
|
5581
5581
|
break;
|
|
5582
5582
|
case "Enter":
|
|
5583
5583
|
if (j.preventDefault(), j.keyCode === 229)
|
|
5584
5584
|
return;
|
|
5585
5585
|
if (oe !== -1 && oe !== void 0) {
|
|
5586
|
-
|
|
5586
|
+
_([...A.value].filter((k, K) => K !== oe)), oe === ae.length - 1 && (ae.length - 1 ? ae[ae.length - 2].focus() : i.value ? te.value.querySelector("input").focus() : X.value.focus());
|
|
5587
5587
|
return;
|
|
5588
5588
|
}
|
|
5589
|
-
if (
|
|
5589
|
+
if (de.value.indexOf("enter") === -1 && P.value)
|
|
5590
5590
|
return;
|
|
5591
5591
|
se(), L();
|
|
5592
5592
|
break;
|
|
5593
5593
|
case " ":
|
|
5594
|
-
if (!
|
|
5594
|
+
if (!P.value && !i.value) {
|
|
5595
5595
|
j.preventDefault(), se(), L();
|
|
5596
5596
|
return;
|
|
5597
5597
|
}
|
|
5598
|
-
if (!
|
|
5598
|
+
if (!P.value)
|
|
5599
5599
|
return !1;
|
|
5600
|
-
if (
|
|
5600
|
+
if (de.value.indexOf("space") === -1 && P.value)
|
|
5601
5601
|
return;
|
|
5602
5602
|
j.preventDefault(), se(), L();
|
|
5603
5603
|
break;
|
|
5604
5604
|
case "Tab":
|
|
5605
5605
|
case ";":
|
|
5606
5606
|
case ",":
|
|
5607
|
-
if (
|
|
5607
|
+
if (de.value.indexOf(j.key.toLowerCase()) === -1 || !P.value)
|
|
5608
5608
|
return;
|
|
5609
5609
|
se(), L(), j.preventDefault();
|
|
5610
5610
|
break;
|
|
5611
5611
|
case "Escape":
|
|
5612
|
-
|
|
5612
|
+
g();
|
|
5613
5613
|
break;
|
|
5614
5614
|
case "ArrowUp":
|
|
5615
5615
|
if (j.preventDefault(), !l.value)
|
|
5616
5616
|
return;
|
|
5617
|
-
|
|
5617
|
+
E.value || J(), Z();
|
|
5618
5618
|
break;
|
|
5619
5619
|
case "ArrowDown":
|
|
5620
5620
|
if (j.preventDefault(), !l.value)
|
|
5621
5621
|
return;
|
|
5622
|
-
|
|
5622
|
+
E.value || J(), W();
|
|
5623
5623
|
break;
|
|
5624
5624
|
case "ArrowLeft":
|
|
5625
5625
|
if (i.value && te.value && te.value.querySelector("input").selectionStart || j.shiftKey || n.value !== "tags" || !A.value || !A.value.length)
|
|
@@ -5698,12 +5698,12 @@ function K3(t, e, a) {
|
|
|
5698
5698
|
assist: "multiselect-assistive-text",
|
|
5699
5699
|
spacer: "multiselect-spacer",
|
|
5700
5700
|
...n.value
|
|
5701
|
-
})),
|
|
5701
|
+
})), _ = b(() => !!(l.value && i.value && (!m.value || m.value && w.value.length)));
|
|
5702
5702
|
return {
|
|
5703
5703
|
classList: b(() => {
|
|
5704
5704
|
const y = A.value;
|
|
5705
5705
|
return {
|
|
5706
|
-
container: [y.container].concat(s.value ? y.containerDisabled : []).concat(
|
|
5706
|
+
container: [y.container].concat(s.value ? y.containerDisabled : []).concat(_.value && o.value === "top" ? y.containerOpenTop : []).concat(_.value && o.value !== "top" ? y.containerOpen : []).concat(u.value ? y.containerActive : []),
|
|
5707
5707
|
wrapper: y.wrapper,
|
|
5708
5708
|
spacer: y.spacer,
|
|
5709
5709
|
singleLabel: y.singleLabel,
|
|
@@ -5725,7 +5725,7 @@ function K3(t, e, a) {
|
|
|
5725
5725
|
spinner: y.spinner,
|
|
5726
5726
|
inifinite: y.inifinite,
|
|
5727
5727
|
inifiniteSpinner: y.inifiniteSpinner,
|
|
5728
|
-
dropdown: [y.dropdown].concat(o.value === "top" ? y.dropdownTop : []).concat(!l.value || !i.value || !
|
|
5728
|
+
dropdown: [y.dropdown].concat(o.value === "top" ? y.dropdownTop : []).concat(!l.value || !i.value || !_.value ? y.dropdownHidden : []),
|
|
5729
5729
|
options: [y.options].concat(o.value === "top" ? y.optionsTop : []),
|
|
5730
5730
|
group: y.group,
|
|
5731
5731
|
groupLabel: (L) => {
|
|
@@ -5743,7 +5743,7 @@ function K3(t, e, a) {
|
|
|
5743
5743
|
fakeInput: y.fakeInput
|
|
5744
5744
|
};
|
|
5745
5745
|
}),
|
|
5746
|
-
showDropdown:
|
|
5746
|
+
showDropdown: _
|
|
5747
5747
|
};
|
|
5748
5748
|
}
|
|
5749
5749
|
function G3(t, e, a) {
|
|
@@ -5751,8 +5751,8 @@ function G3(t, e, a) {
|
|
|
5751
5751
|
limit: n,
|
|
5752
5752
|
infinite: s
|
|
5753
5753
|
} = $e(t), o = a.isOpen, i = a.offset, l = a.search, d = a.pfo, r = a.eo, c = Q(null), u = Q(null), p = b(() => i.value < d.value.length), m = (A) => {
|
|
5754
|
-
const { isIntersecting:
|
|
5755
|
-
if (
|
|
5754
|
+
const { isIntersecting: _, target: $ } = A[0];
|
|
5755
|
+
if (_) {
|
|
5756
5756
|
const y = $.offsetParent, L = y.scrollTop;
|
|
5757
5757
|
i.value += n.value == -1 ? 10 : n.value, Oe(() => {
|
|
5758
5758
|
y.scrollTop = L;
|
|
@@ -5761,11 +5761,11 @@ function G3(t, e, a) {
|
|
|
5761
5761
|
}, w = () => {
|
|
5762
5762
|
o.value && i.value < d.value.length ? c.value.observe(u.value) : !o.value && c.value && c.value.disconnect();
|
|
5763
5763
|
};
|
|
5764
|
-
return
|
|
5764
|
+
return ue(o, () => {
|
|
5765
5765
|
s.value && w();
|
|
5766
|
-
}),
|
|
5766
|
+
}), ue(l, () => {
|
|
5767
5767
|
s.value && (i.value = n.value, w());
|
|
5768
|
-
}, { flush: "post" }),
|
|
5768
|
+
}, { flush: "post" }), ue(r, () => {
|
|
5769
5769
|
s.value && w();
|
|
5770
5770
|
}, { immediate: !1, flush: "post" }), Dt(() => {
|
|
5771
5771
|
window && window.IntersectionObserver && (c.value = new IntersectionObserver(m));
|
|
@@ -5784,53 +5784,53 @@ function x3(t, e, a) {
|
|
|
5784
5784
|
groupLabel: d,
|
|
5785
5785
|
aria: r,
|
|
5786
5786
|
searchable: c
|
|
5787
|
-
} = $e(t), u = a.pointer, p = a.iv, m = a.hasSelected, w = a.multipleLabelText, A = Q(null),
|
|
5788
|
-
let
|
|
5789
|
-
return s && s.value &&
|
|
5787
|
+
} = $e(t), u = a.pointer, p = a.iv, m = a.hasSelected, w = a.multipleLabelText, A = Q(null), _ = b(() => {
|
|
5788
|
+
let S = [];
|
|
5789
|
+
return s && s.value && S.push(s.value), S.push("assist"), S.join("-");
|
|
5790
5790
|
}), $ = b(() => {
|
|
5791
|
-
let
|
|
5792
|
-
return s && s.value &&
|
|
5791
|
+
let S = [];
|
|
5792
|
+
return s && s.value && S.push(s.value), S.push("multiselect-options"), S.join("-");
|
|
5793
5793
|
}), y = b(() => {
|
|
5794
|
-
let
|
|
5795
|
-
if (s && s.value &&
|
|
5796
|
-
return
|
|
5794
|
+
let S = [];
|
|
5795
|
+
if (s && s.value && S.push(s.value), u.value)
|
|
5796
|
+
return S.push(u.value.group ? "multiselect-group" : "multiselect-option"), S.push(u.value.group ? u.value.index : u.value[o.value]), S.join("-");
|
|
5797
5797
|
}), L = b(() => n.value), Z = b(() => l.value !== "single"), W = b(() => {
|
|
5798
|
-
let
|
|
5799
|
-
return l.value === "single" && m.value && (
|
|
5798
|
+
let S = "";
|
|
5799
|
+
return l.value === "single" && m.value && (S += p.value[i.value]), l.value === "multiple" && m.value && (S += w.value), l.value === "tags" && m.value && (S += p.value.map((P) => P[i.value]).join(", ")), S;
|
|
5800
5800
|
}), V = b(() => {
|
|
5801
|
-
let
|
|
5802
|
-
return c.value && (
|
|
5803
|
-
}), X = (
|
|
5804
|
-
let
|
|
5805
|
-
return s && s.value &&
|
|
5806
|
-
}, te = (
|
|
5807
|
-
let
|
|
5808
|
-
return s && s.value &&
|
|
5809
|
-
},
|
|
5810
|
-
let
|
|
5811
|
-
return
|
|
5812
|
-
},
|
|
5813
|
-
let
|
|
5814
|
-
return
|
|
5815
|
-
},
|
|
5801
|
+
let S = { ...r.value };
|
|
5802
|
+
return c.value && (S["aria-labelledby"] = S["aria-labelledby"] ? `${_.value} ${S["aria-labelledby"]}` : _.value, W.value && S["aria-label"] && (S["aria-label"] = `${W.value}, ${S["aria-label"]}`)), S;
|
|
5803
|
+
}), X = (S) => {
|
|
5804
|
+
let P = [];
|
|
5805
|
+
return s && s.value && P.push(s.value), P.push("multiselect-option"), P.push(S[o.value]), P.join("-");
|
|
5806
|
+
}, te = (S) => {
|
|
5807
|
+
let P = [];
|
|
5808
|
+
return s && s.value && P.push(s.value), P.push("multiselect-group"), P.push(S.index), P.join("-");
|
|
5809
|
+
}, E = (S) => {
|
|
5810
|
+
let P = [];
|
|
5811
|
+
return P.push(S), P.join(" ");
|
|
5812
|
+
}, J = (S) => {
|
|
5813
|
+
let P = [];
|
|
5814
|
+
return P.push(S), P.join(" ");
|
|
5815
|
+
}, g = (S) => `${S} ❎`;
|
|
5816
5816
|
return Dt(() => {
|
|
5817
5817
|
if (s && s.value && document && document.querySelector) {
|
|
5818
|
-
let
|
|
5819
|
-
A.value =
|
|
5818
|
+
let S = document.querySelector(`[for="${s.value}"]`);
|
|
5819
|
+
A.value = S ? S.innerText : null;
|
|
5820
5820
|
}
|
|
5821
5821
|
}), {
|
|
5822
5822
|
arias: V,
|
|
5823
5823
|
ariaLabel: W,
|
|
5824
|
-
ariaAssist:
|
|
5824
|
+
ariaAssist: _,
|
|
5825
5825
|
ariaControls: $,
|
|
5826
5826
|
ariaPlaceholder: L,
|
|
5827
5827
|
ariaMultiselectable: Z,
|
|
5828
5828
|
ariaActiveDescendant: y,
|
|
5829
5829
|
ariaOptionId: X,
|
|
5830
|
-
ariaOptionLabel:
|
|
5830
|
+
ariaOptionLabel: E,
|
|
5831
5831
|
ariaGroupId: te,
|
|
5832
|
-
ariaGroupLabel:
|
|
5833
|
-
ariaTagLabel:
|
|
5832
|
+
ariaGroupLabel: J,
|
|
5833
|
+
ariaTagLabel: g
|
|
5834
5834
|
};
|
|
5835
5835
|
}
|
|
5836
5836
|
function X3(t, e, a) {
|
|
@@ -6760,7 +6760,7 @@ const b5 = { class: "ao-tasks" }, w5 = { class: "ao-tasks__list" }, $5 = ["id",
|
|
|
6760
6760
|
emits: ["add", "delete", "update"],
|
|
6761
6761
|
setup(t, { emit: e }) {
|
|
6762
6762
|
const a = t, { t: n } = nt();
|
|
6763
|
-
|
|
6763
|
+
ue(() => a.tasks, (u, p) => {
|
|
6764
6764
|
Ue(u, p);
|
|
6765
6765
|
});
|
|
6766
6766
|
const s = b(
|
|
@@ -6822,7 +6822,7 @@ const b5 = { class: "ao-tasks" }, w5 = { class: "ao-tasks__list" }, $5 = ["id",
|
|
|
6822
6822
|
readonly: !u.isEditable,
|
|
6823
6823
|
class: "ao-field__input ao-subtask__field",
|
|
6824
6824
|
type: "text",
|
|
6825
|
-
onChange: (
|
|
6825
|
+
onChange: (_) => i(_, m.id),
|
|
6826
6826
|
onKeyup: Ye(c, ["enter"])
|
|
6827
6827
|
}, null, 40, $5),
|
|
6828
6828
|
!u.isTemplate && u.users ? (f(), N(be, {
|
|
@@ -6837,14 +6837,14 @@ const b5 = { class: "ao-tasks" }, w5 = { class: "ao-tasks__list" }, $5 = ["id",
|
|
|
6837
6837
|
placeholder: u.$t("feed.filters.assignee.placeholder"),
|
|
6838
6838
|
disabled: !u.isEditable,
|
|
6839
6839
|
caret: u.isEditable,
|
|
6840
|
-
onChange: (
|
|
6840
|
+
onChange: (_) => r(_, m.id)
|
|
6841
6841
|
}, {
|
|
6842
|
-
tag: U(({ option:
|
|
6843
|
-
|
|
6844
|
-
"user-name":
|
|
6845
|
-
"avatar-url":
|
|
6842
|
+
tag: U(({ option: _, handleTagRemove: $ }) => [
|
|
6843
|
+
I(gt, {
|
|
6844
|
+
"user-name": _.label,
|
|
6845
|
+
"avatar-url": _.avatar,
|
|
6846
6846
|
"is-closable": !0,
|
|
6847
|
-
onClose: (y) => $(
|
|
6847
|
+
onClose: (y) => $(_, y)
|
|
6848
6848
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
6849
6849
|
]),
|
|
6850
6850
|
_: 2
|
|
@@ -6913,7 +6913,7 @@ const A5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
6913
6913
|
function l() {
|
|
6914
6914
|
o.value = !1;
|
|
6915
6915
|
}
|
|
6916
|
-
|
|
6916
|
+
ue(o, (r) => {
|
|
6917
6917
|
e("toggleIsDropActive", r);
|
|
6918
6918
|
});
|
|
6919
6919
|
function d(r) {
|
|
@@ -6947,7 +6947,7 @@ const A5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], T5 = {
|
|
|
6947
6947
|
target: "_blank",
|
|
6948
6948
|
rel: "noopener noreferrer"
|
|
6949
6949
|
}, [
|
|
6950
|
-
|
|
6950
|
+
I(ce, {
|
|
6951
6951
|
class: "ao-file__icon",
|
|
6952
6952
|
name: "AttachFileRounded",
|
|
6953
6953
|
size: "sm"
|
|
@@ -6999,27 +6999,27 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
6999
6999
|
emits: ["edit", "remove"],
|
|
7000
7000
|
setup(t, { emit: e }) {
|
|
7001
7001
|
const a = t, n = b(() => {
|
|
7002
|
-
const
|
|
7003
|
-
return
|
|
7004
|
-
}), s = Q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: d } = pa(s), r = b(() => S1(a.createdAt)), c = b(() => S1(a.editedAt)), u = b(() => o.value ? "textarea" : "p"), p = d(), m = l((
|
|
7005
|
-
e("edit",
|
|
7002
|
+
const _ = a.user;
|
|
7003
|
+
return _ ? `${_ == null ? void 0 : _.firstName} ${_ == null ? void 0 : _.lastName}` : null;
|
|
7004
|
+
}), s = Q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: d } = pa(s), r = b(() => S1(a.createdAt)), c = b(() => S1(a.editedAt)), u = b(() => o.value ? "textarea" : "p"), p = d(), m = l((_) => {
|
|
7005
|
+
e("edit", _);
|
|
7006
7006
|
}), w = () => {
|
|
7007
7007
|
e("remove");
|
|
7008
7008
|
}, A = Q(2);
|
|
7009
7009
|
return ps(() => {
|
|
7010
7010
|
Oe(() => {
|
|
7011
|
-
var
|
|
7011
|
+
var _;
|
|
7012
7012
|
if (!o.value) {
|
|
7013
|
-
const $ = (
|
|
7013
|
+
const $ = (_ = s.value) == null ? void 0 : _.getClientRects().length;
|
|
7014
7014
|
A.value = $ || 2;
|
|
7015
7015
|
}
|
|
7016
7016
|
});
|
|
7017
|
-
}), (
|
|
7017
|
+
}), (_, $) => {
|
|
7018
7018
|
var y;
|
|
7019
7019
|
return f(), h("li", H5, [
|
|
7020
7020
|
n.value ? (f(), N(gt, {
|
|
7021
7021
|
key: 0,
|
|
7022
|
-
"avatar-url": (y =
|
|
7022
|
+
"avatar-url": (y = _.user) == null ? void 0 : y.avatarUrl,
|
|
7023
7023
|
"user-name": n.value,
|
|
7024
7024
|
class: "ao-comment__avatar"
|
|
7025
7025
|
}, null, 8, ["avatar-url", "user-name"])) : T("", !0),
|
|
@@ -7029,7 +7029,7 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
7029
7029
|
ref_key: "commentContent",
|
|
7030
7030
|
ref: s,
|
|
7031
7031
|
class: "ao-comment__content",
|
|
7032
|
-
value: z(o) ?
|
|
7032
|
+
value: z(o) ? _.content : null,
|
|
7033
7033
|
rows: z(o) ? A.value : null,
|
|
7034
7034
|
onKeyup: [
|
|
7035
7035
|
Ye(z(p), ["esc"]),
|
|
@@ -7037,23 +7037,23 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
7037
7037
|
]
|
|
7038
7038
|
}, {
|
|
7039
7039
|
default: U(() => [
|
|
7040
|
-
a1(q(
|
|
7040
|
+
a1(q(_.content), 1)
|
|
7041
7041
|
]),
|
|
7042
7042
|
_: 1
|
|
7043
7043
|
}, 40, ["value", "rows", "onKeyup"]))
|
|
7044
7044
|
]),
|
|
7045
7045
|
v("span", N5, q(c.value || r.value), 1)
|
|
7046
7046
|
]),
|
|
7047
|
-
|
|
7047
|
+
_.isEditable ? (f(), h("div", R5, [
|
|
7048
7048
|
z(o) ? (f(), h(ve, { key: 0 }, [
|
|
7049
|
-
|
|
7049
|
+
I(fe, {
|
|
7050
7050
|
"icon-name": "CloseRounded",
|
|
7051
7051
|
size: "sm",
|
|
7052
7052
|
variant: "ghost",
|
|
7053
7053
|
color: "neutral",
|
|
7054
7054
|
onClick: z(p)
|
|
7055
7055
|
}, null, 8, ["onClick"]),
|
|
7056
|
-
|
|
7056
|
+
I(fe, {
|
|
7057
7057
|
"icon-name": "CheckSmallRounded",
|
|
7058
7058
|
size: "sm",
|
|
7059
7059
|
variant: "solid",
|
|
@@ -7061,15 +7061,15 @@ const H5 = { class: "ao-comment" }, P5 = { class: "ao-comment__body" }, B5 = { c
|
|
|
7061
7061
|
onClick: z(m)
|
|
7062
7062
|
}, null, 8, ["onClick"])
|
|
7063
7063
|
], 64)) : (f(), h(ve, { key: 1 }, [
|
|
7064
|
-
|
|
7065
|
-
label:
|
|
7064
|
+
I(fe, {
|
|
7065
|
+
label: _.$t("activity.comment.delete"),
|
|
7066
7066
|
size: "sm",
|
|
7067
7067
|
variant: "ghost",
|
|
7068
7068
|
color: "neutral",
|
|
7069
7069
|
onClick: w
|
|
7070
7070
|
}, null, 8, ["label"]),
|
|
7071
|
-
|
|
7072
|
-
label:
|
|
7071
|
+
I(fe, {
|
|
7072
|
+
label: _.$t("activity.comment.edit"),
|
|
7073
7073
|
size: "sm",
|
|
7074
7074
|
variant: "ghost",
|
|
7075
7075
|
color: "neutral",
|
|
@@ -7157,7 +7157,7 @@ const j5 = {
|
|
|
7157
7157
|
])
|
|
7158
7158
|
]),
|
|
7159
7159
|
v("div", W5, [
|
|
7160
|
-
|
|
7160
|
+
I(fe, {
|
|
7161
7161
|
type: "submit",
|
|
7162
7162
|
"icon-name": "SendRounded",
|
|
7163
7163
|
color: "primary",
|
|
@@ -7207,171 +7207,171 @@ const K5 = {
|
|
|
7207
7207
|
},
|
|
7208
7208
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
7209
7209
|
setup(t, { emit: e }) {
|
|
7210
|
-
const a = t, n = (
|
|
7210
|
+
const a = t, n = (g) => {
|
|
7211
7211
|
e("update:activity", {
|
|
7212
7212
|
id: a.activity.id,
|
|
7213
|
-
name:
|
|
7213
|
+
name: g
|
|
7214
7214
|
});
|
|
7215
7215
|
}, s = b({
|
|
7216
7216
|
get() {
|
|
7217
7217
|
return a.activity.description ?? "";
|
|
7218
7218
|
},
|
|
7219
|
-
set(
|
|
7220
|
-
e("update:activity", { id: a.activity.id, description:
|
|
7219
|
+
set(g) {
|
|
7220
|
+
e("update:activity", { id: a.activity.id, description: g });
|
|
7221
7221
|
}
|
|
7222
7222
|
}), o = b({
|
|
7223
7223
|
get() {
|
|
7224
7224
|
return a.activity.estimation ?? 0;
|
|
7225
7225
|
},
|
|
7226
|
-
set(
|
|
7227
|
-
e("update:activity", { id: a.activity.id, estimation:
|
|
7226
|
+
set(g) {
|
|
7227
|
+
e("update:activity", { id: a.activity.id, estimation: g });
|
|
7228
7228
|
}
|
|
7229
7229
|
}), i = b({
|
|
7230
7230
|
get() {
|
|
7231
7231
|
return a.activity.important ?? !1;
|
|
7232
7232
|
},
|
|
7233
|
-
set(
|
|
7234
|
-
e("update:activity", { id: a.activity.id, important:
|
|
7233
|
+
set(g) {
|
|
7234
|
+
e("update:activity", { id: a.activity.id, important: g });
|
|
7235
7235
|
}
|
|
7236
7236
|
}), l = b({
|
|
7237
7237
|
get() {
|
|
7238
7238
|
return a.activity.private ?? !1;
|
|
7239
7239
|
},
|
|
7240
|
-
set(
|
|
7241
|
-
e("update:activity", { id: a.activity.id, private:
|
|
7240
|
+
set(g) {
|
|
7241
|
+
e("update:activity", { id: a.activity.id, private: g });
|
|
7242
7242
|
}
|
|
7243
7243
|
}), d = b(() => {
|
|
7244
|
-
var
|
|
7245
|
-
return (
|
|
7246
|
-
label:
|
|
7247
|
-
value:
|
|
7244
|
+
var g;
|
|
7245
|
+
return (g = a.activityTypes) == null ? void 0 : g.map((S) => ({
|
|
7246
|
+
label: S.name,
|
|
7247
|
+
value: S.id
|
|
7248
7248
|
}));
|
|
7249
7249
|
}), r = b({
|
|
7250
7250
|
get() {
|
|
7251
|
-
var
|
|
7252
|
-
return (
|
|
7251
|
+
var g;
|
|
7252
|
+
return (g = a.activity.type) == null ? void 0 : g.id;
|
|
7253
7253
|
},
|
|
7254
|
-
set(
|
|
7255
|
-
e("update:activity", { id: a.activity.id, typeId:
|
|
7254
|
+
set(g) {
|
|
7255
|
+
e("update:activity", { id: a.activity.id, typeId: g });
|
|
7256
7256
|
}
|
|
7257
|
-
}), c = b(() => a.templateActivities.filter((
|
|
7258
|
-
label:
|
|
7259
|
-
value:
|
|
7257
|
+
}), c = b(() => a.templateActivities.filter((g) => g.id !== a.activity.id).map((g) => ({
|
|
7258
|
+
label: g.name,
|
|
7259
|
+
value: g.id
|
|
7260
7260
|
}))), u = b({
|
|
7261
7261
|
get() {
|
|
7262
|
-
var
|
|
7263
|
-
return (
|
|
7262
|
+
var g;
|
|
7263
|
+
return (g = a.activity.dependingOn) == null ? void 0 : g.map((S) => S.id);
|
|
7264
7264
|
},
|
|
7265
|
-
set(
|
|
7266
|
-
|
|
7265
|
+
set(g) {
|
|
7266
|
+
g && e("update:activity", {
|
|
7267
7267
|
id: a.activity.id,
|
|
7268
|
-
dependingOn:
|
|
7268
|
+
dependingOn: g
|
|
7269
7269
|
});
|
|
7270
7270
|
}
|
|
7271
|
-
}), p = b(() => c.value.map((
|
|
7272
|
-
var
|
|
7271
|
+
}), p = b(() => c.value.map((g) => {
|
|
7272
|
+
var S;
|
|
7273
7273
|
return {
|
|
7274
|
-
...
|
|
7275
|
-
disabled: (
|
|
7274
|
+
...g,
|
|
7275
|
+
disabled: (S = a.activity.blocking) == null ? void 0 : S.some((P) => P.id === g.value)
|
|
7276
7276
|
};
|
|
7277
7277
|
})), m = b({
|
|
7278
7278
|
get() {
|
|
7279
|
-
var
|
|
7280
|
-
return (
|
|
7279
|
+
var g;
|
|
7280
|
+
return (g = a.activity.blocking) == null ? void 0 : g.map((S) => S.id);
|
|
7281
7281
|
},
|
|
7282
|
-
set(
|
|
7283
|
-
|
|
7282
|
+
set(g) {
|
|
7283
|
+
g && e("update:activity", {
|
|
7284
7284
|
id: a.activity.id,
|
|
7285
|
-
blocking:
|
|
7285
|
+
blocking: g
|
|
7286
7286
|
});
|
|
7287
7287
|
}
|
|
7288
|
-
}), w = b(() => c.value.map((
|
|
7289
|
-
var
|
|
7288
|
+
}), w = b(() => c.value.map((g) => {
|
|
7289
|
+
var S;
|
|
7290
7290
|
return {
|
|
7291
|
-
...
|
|
7292
|
-
disabled: (
|
|
7293
|
-
(
|
|
7291
|
+
...g,
|
|
7292
|
+
disabled: (S = a.activity.dependingOn) == null ? void 0 : S.some(
|
|
7293
|
+
(P) => P.id === g.value
|
|
7294
7294
|
)
|
|
7295
7295
|
};
|
|
7296
|
-
})), A = (
|
|
7297
|
-
e("addSubtask",
|
|
7298
|
-
},
|
|
7299
|
-
e("updateSubtask",
|
|
7300
|
-
}, $ = (
|
|
7301
|
-
e("deleteSubtask",
|
|
7296
|
+
})), A = (g) => {
|
|
7297
|
+
e("addSubtask", g);
|
|
7298
|
+
}, _ = (g) => {
|
|
7299
|
+
e("updateSubtask", g);
|
|
7300
|
+
}, $ = (g) => {
|
|
7301
|
+
e("deleteSubtask", g);
|
|
7302
7302
|
}, y = b(() => {
|
|
7303
|
-
var
|
|
7304
|
-
return ((
|
|
7305
|
-
label: `${
|
|
7306
|
-
value:
|
|
7307
|
-
avatar:
|
|
7303
|
+
var g;
|
|
7304
|
+
return ((g = a.users) == null ? void 0 : g.map((S) => ({
|
|
7305
|
+
label: `${S.firstName} ${S.lastName}`,
|
|
7306
|
+
value: S.id,
|
|
7307
|
+
avatar: S.avatarUrl
|
|
7308
7308
|
}))) || [];
|
|
7309
7309
|
}), L = b({
|
|
7310
7310
|
get() {
|
|
7311
|
-
var
|
|
7312
|
-
return (
|
|
7311
|
+
var g, S;
|
|
7312
|
+
return (g = a.activity.assignee) != null && g.id ? [(S = a.activity.assignee) == null ? void 0 : S.id] : [];
|
|
7313
7313
|
},
|
|
7314
|
-
set(
|
|
7314
|
+
set(g) {
|
|
7315
7315
|
e("update:activity", {
|
|
7316
7316
|
id: a.activity.id,
|
|
7317
|
-
assigneeId:
|
|
7317
|
+
assigneeId: g[0] ?? null
|
|
7318
7318
|
// `undefined` is not a value for GraphQL, we have to use `null` to reset a value
|
|
7319
7319
|
});
|
|
7320
7320
|
}
|
|
7321
|
-
}), Z = (
|
|
7321
|
+
}), Z = (g) => {
|
|
7322
7322
|
e("addFiles", {
|
|
7323
7323
|
activityId: a.activity.id,
|
|
7324
|
-
files:
|
|
7324
|
+
files: g
|
|
7325
7325
|
});
|
|
7326
|
-
}, W = (
|
|
7326
|
+
}, W = (g) => {
|
|
7327
7327
|
e("removeFile", {
|
|
7328
7328
|
activityId: a.activity.id,
|
|
7329
|
-
file:
|
|
7329
|
+
file: g
|
|
7330
7330
|
});
|
|
7331
7331
|
}, V = b(() => {
|
|
7332
|
-
var
|
|
7333
|
-
return (
|
|
7334
|
-
value:
|
|
7335
|
-
label:
|
|
7332
|
+
var g;
|
|
7333
|
+
return (g = a.statuses) == null ? void 0 : g.map((S) => ({
|
|
7334
|
+
value: S.id,
|
|
7335
|
+
label: S.name
|
|
7336
7336
|
}));
|
|
7337
|
-
}), X = (
|
|
7337
|
+
}), X = (g) => {
|
|
7338
7338
|
e("update:activity", {
|
|
7339
7339
|
id: a.activity.id,
|
|
7340
|
-
statusId:
|
|
7340
|
+
statusId: g
|
|
7341
7341
|
});
|
|
7342
|
-
}, te = (
|
|
7342
|
+
}, te = (g) => {
|
|
7343
7343
|
e("addComment", {
|
|
7344
|
-
...
|
|
7344
|
+
...g,
|
|
7345
7345
|
activityId: a.activity.id
|
|
7346
7346
|
});
|
|
7347
|
-
},
|
|
7348
|
-
e("updateComment",
|
|
7349
|
-
},
|
|
7350
|
-
e("removeComment",
|
|
7347
|
+
}, E = (g) => {
|
|
7348
|
+
e("updateComment", g);
|
|
7349
|
+
}, J = (g) => {
|
|
7350
|
+
e("removeComment", g);
|
|
7351
7351
|
};
|
|
7352
|
-
return (
|
|
7353
|
-
onClose:
|
|
7352
|
+
return (g, S) => (f(), N(D1, {
|
|
7353
|
+
onClose: S[8] || (S[8] = (P) => g.$emit("close"))
|
|
7354
7354
|
}, {
|
|
7355
7355
|
header: U(() => [
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
title:
|
|
7356
|
+
g.breadcrumbs ? (f(), h("div", K5, q(g.breadcrumbs), 1)) : T("", !0),
|
|
7357
|
+
I(Ce, {
|
|
7358
|
+
title: g.activity.name || "",
|
|
7359
7359
|
level: 4,
|
|
7360
|
-
"is-editable":
|
|
7360
|
+
"is-editable": g.isEditable,
|
|
7361
7361
|
"onUpdate:title": n
|
|
7362
7362
|
}, null, 8, ["title", "is-editable"]),
|
|
7363
|
-
x(
|
|
7364
|
-
var
|
|
7363
|
+
x(g.$slots, "header", {}, () => {
|
|
7364
|
+
var P;
|
|
7365
7365
|
return [
|
|
7366
7366
|
V.value ? (f(), h("label", G5, [
|
|
7367
|
-
v("span", x5, q(
|
|
7368
|
-
|
|
7367
|
+
v("span", x5, q(g.$t("activity.status.label")), 1),
|
|
7368
|
+
I(be, {
|
|
7369
7369
|
options: V.value,
|
|
7370
|
-
value: (
|
|
7370
|
+
value: (P = g.activity.status) == null ? void 0 : P.id,
|
|
7371
7371
|
"can-clear": !1,
|
|
7372
7372
|
"can-deselect": !1,
|
|
7373
|
-
disabled: !
|
|
7374
|
-
caret:
|
|
7373
|
+
disabled: !g.isEditable,
|
|
7374
|
+
caret: g.isEditable,
|
|
7375
7375
|
onChange: X
|
|
7376
7376
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
7377
7377
|
])) : T("", !0)
|
|
@@ -7383,10 +7383,10 @@ const K5 = {
|
|
|
7383
7383
|
v("fieldset", Q5, [
|
|
7384
7384
|
v("div", J5, [
|
|
7385
7385
|
v("label", e7, [
|
|
7386
|
-
v("span", t7, q(
|
|
7386
|
+
v("span", t7, q(g.$t("activity.description.label")), 1),
|
|
7387
7387
|
tt(v("textarea", {
|
|
7388
|
-
"onUpdate:modelValue":
|
|
7389
|
-
readonly: !
|
|
7388
|
+
"onUpdate:modelValue": S[0] || (S[0] = (P) => s.value = P),
|
|
7389
|
+
readonly: !g.isEditable,
|
|
7390
7390
|
rows: "4",
|
|
7391
7391
|
class: "ao-field__textarea"
|
|
7392
7392
|
}, null, 8, a7), [
|
|
@@ -7404,10 +7404,10 @@ const K5 = {
|
|
|
7404
7404
|
]),
|
|
7405
7405
|
v("div", s7, [
|
|
7406
7406
|
v("label", n7, [
|
|
7407
|
-
v("span", i7, q(
|
|
7407
|
+
v("span", i7, q(g.$t("activity.estimation.label")), 1),
|
|
7408
7408
|
tt(v("input", {
|
|
7409
|
-
"onUpdate:modelValue":
|
|
7410
|
-
readonly: !
|
|
7409
|
+
"onUpdate:modelValue": S[1] || (S[1] = (P) => o.value = P),
|
|
7410
|
+
readonly: !g.isEditable,
|
|
7411
7411
|
class: "ao-field__input",
|
|
7412
7412
|
type: "number",
|
|
7413
7413
|
min: "0"
|
|
@@ -7424,10 +7424,10 @@ const K5 = {
|
|
|
7424
7424
|
])
|
|
7425
7425
|
]),
|
|
7426
7426
|
v("label", l7, [
|
|
7427
|
-
v("span", r7, q(
|
|
7427
|
+
v("span", r7, q(g.$t("activity.important.label")), 1),
|
|
7428
7428
|
tt(v("input", {
|
|
7429
|
-
"onUpdate:modelValue":
|
|
7430
|
-
disabled: !
|
|
7429
|
+
"onUpdate:modelValue": S[2] || (S[2] = (P) => i.value = P),
|
|
7430
|
+
disabled: !g.isEditable,
|
|
7431
7431
|
class: "ao-field__input",
|
|
7432
7432
|
type: "checkbox"
|
|
7433
7433
|
}, null, 8, u7), [
|
|
@@ -7439,11 +7439,11 @@ const K5 = {
|
|
|
7439
7439
|
]
|
|
7440
7440
|
])
|
|
7441
7441
|
]),
|
|
7442
|
-
|
|
7443
|
-
v("span", c7, q(
|
|
7442
|
+
g.isTemplate !== !0 && g.activity.createdBy.id === g.userId ? (f(), h("label", d7, [
|
|
7443
|
+
v("span", c7, q(g.$t("activity.private.label")), 1),
|
|
7444
7444
|
tt(v("input", {
|
|
7445
|
-
"onUpdate:modelValue":
|
|
7446
|
-
disabled: !
|
|
7445
|
+
"onUpdate:modelValue": S[3] || (S[3] = (P) => l.value = P),
|
|
7446
|
+
disabled: !g.isEditable,
|
|
7447
7447
|
class: "ao-field__input",
|
|
7448
7448
|
type: "checkbox"
|
|
7449
7449
|
}, null, 8, f7), [
|
|
@@ -7459,37 +7459,37 @@ const K5 = {
|
|
|
7459
7459
|
]),
|
|
7460
7460
|
l.value ? T("", !0) : (f(), h("fieldset", v7, [
|
|
7461
7461
|
v("div", p7, [
|
|
7462
|
-
|
|
7463
|
-
|
|
7462
|
+
I(ce, { name: "AccountBoxSharp" }),
|
|
7463
|
+
I(Ce, {
|
|
7464
7464
|
level: 4,
|
|
7465
|
-
title:
|
|
7465
|
+
title: g.$t("activity.assignee.title")
|
|
7466
7466
|
}, null, 8, ["title"])
|
|
7467
7467
|
]),
|
|
7468
7468
|
v("div", h7, [
|
|
7469
7469
|
v("div", m7, [
|
|
7470
7470
|
v("div", C7, [
|
|
7471
|
-
|
|
7471
|
+
I(be, {
|
|
7472
7472
|
modelValue: L.value,
|
|
7473
|
-
"onUpdate:modelValue":
|
|
7473
|
+
"onUpdate:modelValue": S[4] || (S[4] = (P) => L.value = P),
|
|
7474
7474
|
options: y.value,
|
|
7475
7475
|
"close-on-select": !0,
|
|
7476
7476
|
searchable: !0,
|
|
7477
7477
|
max: 1,
|
|
7478
7478
|
class: "ao-activity-details__assignees",
|
|
7479
|
-
placeholder:
|
|
7479
|
+
placeholder: g.$t("activity.filters.assignee.placeholder"),
|
|
7480
7480
|
mode: "tags",
|
|
7481
|
-
disabled: !
|
|
7482
|
-
caret:
|
|
7481
|
+
disabled: !g.isEditable,
|
|
7482
|
+
caret: g.isEditable
|
|
7483
7483
|
}, {
|
|
7484
7484
|
tag: U(({
|
|
7485
|
-
option:
|
|
7486
|
-
handleTagRemove:
|
|
7485
|
+
option: P,
|
|
7486
|
+
handleTagRemove: de
|
|
7487
7487
|
}) => [
|
|
7488
|
-
|
|
7489
|
-
"user-name":
|
|
7490
|
-
"avatar-url":
|
|
7488
|
+
I(gt, {
|
|
7489
|
+
"user-name": P.label,
|
|
7490
|
+
"avatar-url": P.avatar,
|
|
7491
7491
|
"is-closable": !0,
|
|
7492
|
-
onClose: (se) =>
|
|
7492
|
+
onClose: (se) => de(P, se)
|
|
7493
7493
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
7494
7494
|
]),
|
|
7495
7495
|
_: 1
|
|
@@ -7500,63 +7500,63 @@ const K5 = {
|
|
|
7500
7500
|
])),
|
|
7501
7501
|
v("fieldset", _7, [
|
|
7502
7502
|
v("div", g7, [
|
|
7503
|
-
|
|
7504
|
-
|
|
7503
|
+
I(ce, { name: "SelectCheckBox" }),
|
|
7504
|
+
I(Ce, {
|
|
7505
7505
|
level: 4,
|
|
7506
|
-
title:
|
|
7506
|
+
title: g.$t("activity.tasks.title")
|
|
7507
7507
|
}, null, 8, ["title"])
|
|
7508
7508
|
]),
|
|
7509
7509
|
v("div", y7, [
|
|
7510
|
-
|
|
7510
|
+
I(k5, {
|
|
7511
7511
|
class: "ao-activity-details__tasks ao-field__row",
|
|
7512
|
-
tasks:
|
|
7513
|
-
"activity-id":
|
|
7514
|
-
users:
|
|
7515
|
-
"is-checkable":
|
|
7516
|
-
"is-editable":
|
|
7517
|
-
"is-template":
|
|
7512
|
+
tasks: g.activity.tasks || [],
|
|
7513
|
+
"activity-id": g.activity.id,
|
|
7514
|
+
users: g.users,
|
|
7515
|
+
"is-checkable": g.isTaskCheckable,
|
|
7516
|
+
"is-editable": g.isEditable,
|
|
7517
|
+
"is-template": g.isTemplate,
|
|
7518
7518
|
onAdd: A,
|
|
7519
|
-
onUpdate:
|
|
7519
|
+
onUpdate: _,
|
|
7520
7520
|
onDelete: $
|
|
7521
7521
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable", "is-template"])
|
|
7522
7522
|
])
|
|
7523
7523
|
]),
|
|
7524
7524
|
v("fieldset", b7, [
|
|
7525
7525
|
v("div", w7, [
|
|
7526
|
-
|
|
7527
|
-
|
|
7526
|
+
I(ce, { name: "FlowsheetOutlineRounded" }),
|
|
7527
|
+
I(Ce, {
|
|
7528
7528
|
level: 4,
|
|
7529
|
-
title:
|
|
7529
|
+
title: g.$t("activity.dependencies.title")
|
|
7530
7530
|
}, null, 8, ["title"])
|
|
7531
7531
|
]),
|
|
7532
7532
|
v("div", $7, [
|
|
7533
7533
|
v("div", M7, [
|
|
7534
7534
|
v("label", k7, [
|
|
7535
|
-
v("span", A7, q(
|
|
7536
|
-
|
|
7535
|
+
v("span", A7, q(g.$t("activity.dependingOn.label")), 1),
|
|
7536
|
+
I(be, {
|
|
7537
7537
|
modelValue: u.value,
|
|
7538
|
-
"onUpdate:modelValue":
|
|
7538
|
+
"onUpdate:modelValue": S[5] || (S[5] = (P) => u.value = P),
|
|
7539
7539
|
mode: "tags",
|
|
7540
7540
|
"close-on-select": !1,
|
|
7541
7541
|
searchable: !0,
|
|
7542
7542
|
options: p.value,
|
|
7543
|
-
disabled: !
|
|
7544
|
-
caret:
|
|
7543
|
+
disabled: !g.isEditable,
|
|
7544
|
+
caret: g.isEditable
|
|
7545
7545
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7546
7546
|
])
|
|
7547
7547
|
]),
|
|
7548
7548
|
v("div", T7, [
|
|
7549
7549
|
v("label", S7, [
|
|
7550
|
-
v("span", E7, q(
|
|
7551
|
-
|
|
7550
|
+
v("span", E7, q(g.$t("activity.blocking.label")), 1),
|
|
7551
|
+
I(be, {
|
|
7552
7552
|
modelValue: m.value,
|
|
7553
|
-
"onUpdate:modelValue":
|
|
7553
|
+
"onUpdate:modelValue": S[6] || (S[6] = (P) => m.value = P),
|
|
7554
7554
|
mode: "tags",
|
|
7555
7555
|
"close-on-select": !1,
|
|
7556
7556
|
searchable: !0,
|
|
7557
7557
|
options: w.value,
|
|
7558
|
-
disabled: !
|
|
7559
|
-
caret:
|
|
7558
|
+
disabled: !g.isEditable,
|
|
7559
|
+
caret: g.isEditable
|
|
7560
7560
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7561
7561
|
])
|
|
7562
7562
|
])
|
|
@@ -7565,50 +7565,50 @@ const K5 = {
|
|
|
7565
7565
|
v("fieldset", I7, [
|
|
7566
7566
|
d.value ? (f(), h("div", O7, [
|
|
7567
7567
|
v("label", L7, [
|
|
7568
|
-
v("span", V7, q(
|
|
7569
|
-
|
|
7568
|
+
v("span", V7, q(g.$t("activity.type.label")), 1),
|
|
7569
|
+
I(be, {
|
|
7570
7570
|
modelValue: r.value,
|
|
7571
|
-
"onUpdate:modelValue":
|
|
7571
|
+
"onUpdate:modelValue": S[7] || (S[7] = (P) => r.value = P),
|
|
7572
7572
|
mode: "single",
|
|
7573
7573
|
searchable: !0,
|
|
7574
7574
|
options: d.value,
|
|
7575
|
-
placeholder:
|
|
7576
|
-
disabled: !
|
|
7577
|
-
caret:
|
|
7575
|
+
placeholder: g.$t("activity.filters.type.placeholder"),
|
|
7576
|
+
disabled: !g.isEditable,
|
|
7577
|
+
caret: g.isEditable
|
|
7578
7578
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
7579
7579
|
])
|
|
7580
7580
|
])) : T("", !0),
|
|
7581
|
-
x(
|
|
7581
|
+
x(g.$slots, "default", { activity: g.activity })
|
|
7582
7582
|
])
|
|
7583
7583
|
]),
|
|
7584
|
-
|
|
7584
|
+
g.isTemplate !== !0 && g.userId ? (f(), h("div", D7, [
|
|
7585
7585
|
v("div", H7, [
|
|
7586
|
-
|
|
7587
|
-
|
|
7586
|
+
I(ce, { name: "AttachFileRounded" }),
|
|
7587
|
+
I(Ce, {
|
|
7588
7588
|
level: 4,
|
|
7589
|
-
title:
|
|
7589
|
+
title: g.$t("activity.attachments.title")
|
|
7590
7590
|
}, null, 8, ["title"])
|
|
7591
7591
|
]),
|
|
7592
|
-
|
|
7593
|
-
attachments:
|
|
7594
|
-
"is-editable":
|
|
7592
|
+
I(D5, {
|
|
7593
|
+
attachments: g.activity.attachments,
|
|
7594
|
+
"is-editable": g.isEditable,
|
|
7595
7595
|
onAdd: Z,
|
|
7596
7596
|
onRemove: W
|
|
7597
7597
|
}, null, 8, ["attachments", "is-editable"]),
|
|
7598
7598
|
v("div", P7, [
|
|
7599
|
-
|
|
7600
|
-
|
|
7599
|
+
I(ce, { name: "ChatOutline" }),
|
|
7600
|
+
I(Ce, {
|
|
7601
7601
|
level: 4,
|
|
7602
|
-
title:
|
|
7602
|
+
title: g.$t("activity.comments.title")
|
|
7603
7603
|
}, null, 8, ["title"])
|
|
7604
7604
|
]),
|
|
7605
|
-
|
|
7606
|
-
comments:
|
|
7607
|
-
users:
|
|
7608
|
-
"user-id":
|
|
7605
|
+
I(Y5, {
|
|
7606
|
+
comments: g.activity.comments,
|
|
7607
|
+
users: g.users,
|
|
7608
|
+
"user-id": g.userId,
|
|
7609
7609
|
onCreateComment: te,
|
|
7610
|
-
onUpdateComment:
|
|
7611
|
-
onRemoveComment:
|
|
7610
|
+
onUpdateComment: E,
|
|
7611
|
+
onRemoveComment: J
|
|
7612
7612
|
}, null, 8, ["comments", "users", "user-id"])
|
|
7613
7613
|
])) : T("", !0)
|
|
7614
7614
|
]),
|
|
@@ -7689,25 +7689,25 @@ const B7 = /* @__PURE__ */ Y({
|
|
|
7689
7689
|
set($) {
|
|
7690
7690
|
e("update:rule", { ...a.rule, durationUnit: $ });
|
|
7691
7691
|
}
|
|
7692
|
-
}),
|
|
7692
|
+
}), _ = b(() => Object.values($d));
|
|
7693
7693
|
return ($, y) => (f(), N(Xe($.tagName), { class: "ao-rule-line" }, {
|
|
7694
7694
|
default: U(() => [
|
|
7695
|
-
|
|
7695
|
+
I(z(We), {
|
|
7696
7696
|
modelValue: s.value,
|
|
7697
7697
|
"onUpdate:modelValue": y[0] || (y[0] = (L) => s.value = L),
|
|
7698
7698
|
options: o.value
|
|
7699
7699
|
}, null, 8, ["modelValue", "options"]),
|
|
7700
|
-
|
|
7700
|
+
I(z(We), {
|
|
7701
7701
|
modelValue: i.value,
|
|
7702
7702
|
"onUpdate:modelValue": y[1] || (y[1] = (L) => i.value = L),
|
|
7703
7703
|
options: l.value
|
|
7704
7704
|
}, null, 8, ["modelValue", "options"]),
|
|
7705
|
-
|
|
7705
|
+
I(z(We), {
|
|
7706
7706
|
modelValue: p.value,
|
|
7707
7707
|
"onUpdate:modelValue": y[2] || (y[2] = (L) => p.value = L),
|
|
7708
7708
|
options: m.value
|
|
7709
7709
|
}, null, 8, ["modelValue", "options"]),
|
|
7710
|
-
|
|
7710
|
+
I(z(We), {
|
|
7711
7711
|
modelValue: r.value,
|
|
7712
7712
|
"onUpdate:modelValue": y[3] || (y[3] = (L) => r.value = L),
|
|
7713
7713
|
options: c.value
|
|
@@ -7724,12 +7724,12 @@ const B7 = /* @__PURE__ */ Y({
|
|
|
7724
7724
|
{ number: !0 }
|
|
7725
7725
|
]
|
|
7726
7726
|
]),
|
|
7727
|
-
|
|
7727
|
+
I(z(We), {
|
|
7728
7728
|
modelValue: A.value,
|
|
7729
7729
|
"onUpdate:modelValue": y[5] || (y[5] = (L) => A.value = L),
|
|
7730
|
-
options:
|
|
7730
|
+
options: _.value
|
|
7731
7731
|
}, null, 8, ["modelValue", "options"]),
|
|
7732
|
-
|
|
7732
|
+
I(fe, {
|
|
7733
7733
|
class: "ao-rule-line__remove",
|
|
7734
7734
|
"icon-name": "CloseRounded",
|
|
7735
7735
|
variant: "ghost",
|
|
@@ -7758,7 +7758,7 @@ const N7 = { class: "ao-template-rules__body" }, R7 = { class: "ao-template-rule
|
|
|
7758
7758
|
};
|
|
7759
7759
|
return (s, o) => (f(), N(D1, null, {
|
|
7760
7760
|
header: U(() => [
|
|
7761
|
-
|
|
7761
|
+
I(Ce, {
|
|
7762
7762
|
title: s.$t("template.rules.title"),
|
|
7763
7763
|
level: 2
|
|
7764
7764
|
}, null, 8, ["title"])
|
|
@@ -7776,7 +7776,7 @@ const N7 = { class: "ao-template-rules__body" }, R7 = { class: "ao-template-rule
|
|
|
7776
7776
|
onClose: () => n(i.id)
|
|
7777
7777
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
7778
7778
|
]),
|
|
7779
|
-
|
|
7779
|
+
I(Je, {
|
|
7780
7780
|
label: s.$t("template.rules.add"),
|
|
7781
7781
|
"icon-name": "Add",
|
|
7782
7782
|
onClick: a
|
|
@@ -7816,10 +7816,10 @@ const j7 = {
|
|
|
7816
7816
|
return (M = a.templates) == null ? void 0 : M.find((F) => F.id === a.templateId);
|
|
7817
7817
|
}
|
|
7818
7818
|
), o = Q(!1);
|
|
7819
|
-
|
|
7819
|
+
ue(
|
|
7820
7820
|
() => [a.templateId, a.phaseId, a.milestoneId],
|
|
7821
7821
|
() => o.value = !1
|
|
7822
|
-
),
|
|
7822
|
+
), ue(
|
|
7823
7823
|
() => {
|
|
7824
7824
|
var M;
|
|
7825
7825
|
return (M = s.value) == null ? void 0 : M.phases;
|
|
@@ -7832,7 +7832,7 @@ const j7 = {
|
|
|
7832
7832
|
var M, F;
|
|
7833
7833
|
return (F = (M = s == null ? void 0 : s.value) == null ? void 0 : M.phases) == null ? void 0 : F.find((j) => j.id === a.phaseId);
|
|
7834
7834
|
});
|
|
7835
|
-
|
|
7835
|
+
ue(
|
|
7836
7836
|
() => {
|
|
7837
7837
|
var M;
|
|
7838
7838
|
return (M = i.value) == null ? void 0 : M.milestones;
|
|
@@ -7847,7 +7847,7 @@ const j7 = {
|
|
|
7847
7847
|
(j) => j.id === a.milestoneId
|
|
7848
7848
|
);
|
|
7849
7849
|
});
|
|
7850
|
-
|
|
7850
|
+
ue(
|
|
7851
7851
|
() => {
|
|
7852
7852
|
var M;
|
|
7853
7853
|
return (M = l.value) == null ? void 0 : M.activities;
|
|
@@ -7917,7 +7917,7 @@ const j7 = {
|
|
|
7917
7917
|
itemType: he.PHASES,
|
|
7918
7918
|
data: { name: F }
|
|
7919
7919
|
});
|
|
7920
|
-
},
|
|
7920
|
+
}, _ = (M) => {
|
|
7921
7921
|
e("updateItem", M);
|
|
7922
7922
|
}, $ = (M) => {
|
|
7923
7923
|
if (!i.value)
|
|
@@ -7990,11 +7990,11 @@ const j7 = {
|
|
|
7990
7990
|
});
|
|
7991
7991
|
}, X = Q(!1), te = () => {
|
|
7992
7992
|
X.value = !X.value;
|
|
7993
|
-
},
|
|
7993
|
+
}, E = () => {
|
|
7994
7994
|
e("addRule", { templateId: a.templateId });
|
|
7995
|
-
},
|
|
7995
|
+
}, J = (M) => {
|
|
7996
7996
|
e("removeRule", { id: M, templateId: a.templateId });
|
|
7997
|
-
},
|
|
7997
|
+
}, g = (M) => {
|
|
7998
7998
|
var F;
|
|
7999
7999
|
if (M.moved) {
|
|
8000
8000
|
const j = Rt(M, ((F = s.value) == null ? void 0 : F.phases) ?? []);
|
|
@@ -8007,7 +8007,7 @@ const j7 = {
|
|
|
8007
8007
|
}
|
|
8008
8008
|
});
|
|
8009
8009
|
}
|
|
8010
|
-
},
|
|
8010
|
+
}, S = (M) => {
|
|
8011
8011
|
!i.value || !l.value || !c.value || e("addItem", {
|
|
8012
8012
|
type: he.TASKS,
|
|
8013
8013
|
activityId: M.activityId,
|
|
@@ -8016,14 +8016,14 @@ const j7 = {
|
|
|
8016
8016
|
templateId: a.templateId,
|
|
8017
8017
|
item: M
|
|
8018
8018
|
});
|
|
8019
|
-
},
|
|
8019
|
+
}, P = (M) => {
|
|
8020
8020
|
!i.value || !l.value || !c.value || e("updateItem", {
|
|
8021
8021
|
itemType: he.TASKS,
|
|
8022
8022
|
id: M.id,
|
|
8023
8023
|
templateId: a.templateId,
|
|
8024
8024
|
data: M
|
|
8025
8025
|
});
|
|
8026
|
-
},
|
|
8026
|
+
}, de = (M) => {
|
|
8027
8027
|
!i.value || !l.value || !c.value || e("removeItem", {
|
|
8028
8028
|
type: he.TASKS,
|
|
8029
8029
|
activityId: c.value.id,
|
|
@@ -8034,23 +8034,23 @@ const j7 = {
|
|
|
8034
8034
|
});
|
|
8035
8035
|
}, se = (M) => {
|
|
8036
8036
|
e("addFiles", M);
|
|
8037
|
-
},
|
|
8037
|
+
}, re = (M) => {
|
|
8038
8038
|
e("removeFile", M);
|
|
8039
8039
|
};
|
|
8040
8040
|
return (M, F) => {
|
|
8041
8041
|
var j, ae, oe, k, K, ie;
|
|
8042
8042
|
return s.value ? (f(), h("div", j7, [
|
|
8043
|
-
|
|
8043
|
+
I(d1, {
|
|
8044
8044
|
"can-go-back": !0,
|
|
8045
|
-
onGoBack: F[1] || (F[1] = (
|
|
8045
|
+
onGoBack: F[1] || (F[1] = (H) => M.$router.push({ name: z(ft).TEMPLATES_LIST }))
|
|
8046
8046
|
}, {
|
|
8047
8047
|
primary: U(() => [
|
|
8048
|
-
|
|
8048
|
+
I(Ce, {
|
|
8049
8049
|
title: u.value,
|
|
8050
8050
|
level: 2,
|
|
8051
8051
|
"is-editable": !0,
|
|
8052
|
-
"onUpdate:title": F[0] || (F[0] = (
|
|
8053
|
-
m(
|
|
8052
|
+
"onUpdate:title": F[0] || (F[0] = (H) => {
|
|
8053
|
+
m(H);
|
|
8054
8054
|
})
|
|
8055
8055
|
}, null, 8, ["title"])
|
|
8056
8056
|
]),
|
|
@@ -8059,42 +8059,42 @@ const j7 = {
|
|
|
8059
8059
|
v("div", Z7, [
|
|
8060
8060
|
v("ol", F7, [
|
|
8061
8061
|
v("li", q7, [
|
|
8062
|
-
|
|
8062
|
+
I(z(Qe), {
|
|
8063
8063
|
"model-value": s.value.phases,
|
|
8064
8064
|
class: "ao-templates__list",
|
|
8065
8065
|
"item-key": "id",
|
|
8066
8066
|
handle: ".ao-card__drag",
|
|
8067
|
-
onChange:
|
|
8067
|
+
onChange: g
|
|
8068
8068
|
}, {
|
|
8069
8069
|
header: U(() => [
|
|
8070
|
-
|
|
8070
|
+
I(Ce, {
|
|
8071
8071
|
title: M.$t("template.phases.title"),
|
|
8072
8072
|
level: 3,
|
|
8073
8073
|
class: "ao-list__title"
|
|
8074
8074
|
}, null, 8, ["title"])
|
|
8075
8075
|
]),
|
|
8076
|
-
item: U(({ element:
|
|
8077
|
-
var
|
|
8076
|
+
item: U(({ element: H }) => {
|
|
8077
|
+
var O;
|
|
8078
8078
|
return [
|
|
8079
|
-
|
|
8080
|
-
id:
|
|
8081
|
-
name:
|
|
8082
|
-
milestones:
|
|
8083
|
-
"is-active": ((
|
|
8079
|
+
I(W0, {
|
|
8080
|
+
id: H.id,
|
|
8081
|
+
name: H.name,
|
|
8082
|
+
milestones: H.milestones,
|
|
8083
|
+
"is-active": ((O = i.value) == null ? void 0 : O.id) === H.id,
|
|
8084
8084
|
"is-draggable": !0,
|
|
8085
8085
|
onClick: (R) => M.$router.push({
|
|
8086
|
-
params: { templateId: M.templateId, phaseId:
|
|
8086
|
+
params: { templateId: M.templateId, phaseId: H.id }
|
|
8087
8087
|
}),
|
|
8088
8088
|
"onUpdate:title": (R) => {
|
|
8089
|
-
A(
|
|
8089
|
+
A(H.id, R);
|
|
8090
8090
|
},
|
|
8091
|
-
onRemove: () => w(
|
|
8091
|
+
onRemove: () => w(H.id)
|
|
8092
8092
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
8093
8093
|
];
|
|
8094
8094
|
}),
|
|
8095
8095
|
footer: U(() => [
|
|
8096
8096
|
v("div", z7, [
|
|
8097
|
-
|
|
8097
|
+
I(Je, {
|
|
8098
8098
|
"icon-name": "AddBoxOutlineRounded",
|
|
8099
8099
|
label: M.$t("template.phases.add"),
|
|
8100
8100
|
onClick: p
|
|
@@ -8112,7 +8112,7 @@ const j7 = {
|
|
|
8112
8112
|
"milestone-id": (j = l.value) == null ? void 0 : j.id,
|
|
8113
8113
|
onAddMilestone: $,
|
|
8114
8114
|
onUpdateMilestone: L,
|
|
8115
|
-
onUpdatePhase:
|
|
8115
|
+
onUpdatePhase: _,
|
|
8116
8116
|
onRemoveMilestone: y
|
|
8117
8117
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : T("", !0)
|
|
8118
8118
|
]),
|
|
@@ -8142,18 +8142,18 @@ const j7 = {
|
|
|
8142
8142
|
"is-template": !0,
|
|
8143
8143
|
"is-editable": !0,
|
|
8144
8144
|
users: M.users,
|
|
8145
|
-
"onUpdate:activity": F[2] || (F[2] = (
|
|
8146
|
-
c.value && V(
|
|
8145
|
+
"onUpdate:activity": F[2] || (F[2] = (H) => {
|
|
8146
|
+
c.value && V(H);
|
|
8147
8147
|
}),
|
|
8148
8148
|
onClose: M.$router.back,
|
|
8149
|
-
onAddSubtask:
|
|
8150
|
-
onUpdateSubtask:
|
|
8151
|
-
onDeleteSubtask:
|
|
8149
|
+
onAddSubtask: S,
|
|
8150
|
+
onUpdateSubtask: P,
|
|
8151
|
+
onDeleteSubtask: de,
|
|
8152
8152
|
onAddFiles: se,
|
|
8153
|
-
onRemoveFile:
|
|
8153
|
+
onRemoveFile: re
|
|
8154
8154
|
}, {
|
|
8155
|
-
default: U((
|
|
8156
|
-
x(M.$slots, "activityDetailsBody", Ht(Pt(
|
|
8155
|
+
default: U((H) => [
|
|
8156
|
+
x(M.$slots, "activityDetailsBody", Ht(Pt(H)))
|
|
8157
8157
|
]),
|
|
8158
8158
|
_: 3
|
|
8159
8159
|
}, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : T("", !0)
|
|
@@ -8167,8 +8167,8 @@ const j7 = {
|
|
|
8167
8167
|
"template-milestones": d.value,
|
|
8168
8168
|
"template-activities": r.value,
|
|
8169
8169
|
onClose: te,
|
|
8170
|
-
onAddRule:
|
|
8171
|
-
onRemoveRule:
|
|
8170
|
+
onAddRule: E,
|
|
8171
|
+
onRemoveRule: J
|
|
8172
8172
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : T("", !0)
|
|
8173
8173
|
]))
|
|
8174
8174
|
])) : T("", !0);
|
|
@@ -8251,7 +8251,7 @@ const Q7 = { class: "ao-card-project-phase__header" }, J7 = { class: "ao-card-pr
|
|
|
8251
8251
|
}), i = b(() => (o.value || 0) / (s.value || 1));
|
|
8252
8252
|
return (l, d) => (f(), N(j1, { class: "ao-card-project-phase" }, s1({
|
|
8253
8253
|
default: U(() => [
|
|
8254
|
-
|
|
8254
|
+
I(Ce, {
|
|
8255
8255
|
id: l.id,
|
|
8256
8256
|
class: "ao-card-project-phase__title",
|
|
8257
8257
|
title: l.name || "",
|
|
@@ -8265,13 +8265,13 @@ const Q7 = { class: "ao-card-project-phase__header" }, J7 = { class: "ao-card-pr
|
|
|
8265
8265
|
v("div", e9, [
|
|
8266
8266
|
s.value ? (f(), h(ve, { key: 0 }, [
|
|
8267
8267
|
v("div", t9, [
|
|
8268
|
-
|
|
8268
|
+
I(ce, {
|
|
8269
8269
|
name: "MountainFlagOutlineRounded",
|
|
8270
8270
|
size: "sm"
|
|
8271
8271
|
}),
|
|
8272
8272
|
v("span", a9, q(o.value) + " / " + q(s.value), 1)
|
|
8273
8273
|
]),
|
|
8274
|
-
|
|
8274
|
+
I(Z1, {
|
|
8275
8275
|
percentages: i.value,
|
|
8276
8276
|
class: "ao-card-project-phase__progress"
|
|
8277
8277
|
}, null, 8, ["percentages"])
|
|
@@ -8288,7 +8288,7 @@ const Q7 = { class: "ao-card-project-phase__header" }, J7 = { class: "ao-card-pr
|
|
|
8288
8288
|
name: "header",
|
|
8289
8289
|
fn: U(() => [
|
|
8290
8290
|
v("div", Q7, [
|
|
8291
|
-
|
|
8291
|
+
I(fe, {
|
|
8292
8292
|
class: "ao-card-project-phase__archive",
|
|
8293
8293
|
color: "primary",
|
|
8294
8294
|
variant: "ghost",
|
|
@@ -8339,7 +8339,7 @@ const i9 = { class: "ao-card-project-milestone__default" }, o9 = {
|
|
|
8339
8339
|
}, {
|
|
8340
8340
|
default: U(() => [
|
|
8341
8341
|
v("div", i9, [
|
|
8342
|
-
|
|
8342
|
+
I(Ce, {
|
|
8343
8343
|
id: l.id,
|
|
8344
8344
|
title: l.name || "",
|
|
8345
8345
|
level: 5,
|
|
@@ -8348,7 +8348,7 @@ const i9 = { class: "ao-card-project-milestone__default" }, o9 = {
|
|
|
8348
8348
|
"onUpdate:title": i
|
|
8349
8349
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8350
8350
|
l.isEditable ? (f(), h("div", o9, [
|
|
8351
|
-
|
|
8351
|
+
I(fe, {
|
|
8352
8352
|
color: "primary",
|
|
8353
8353
|
variant: "ghost",
|
|
8354
8354
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -8366,13 +8366,13 @@ const i9 = { class: "ao-card-project-milestone__default" }, o9 = {
|
|
|
8366
8366
|
v("div", r9, [
|
|
8367
8367
|
n.value ? (f(), h(ve, { key: 0 }, [
|
|
8368
8368
|
v("div", u9, [
|
|
8369
|
-
|
|
8369
|
+
I(ce, {
|
|
8370
8370
|
name: "SelectCheckBox",
|
|
8371
8371
|
size: "sm"
|
|
8372
8372
|
}),
|
|
8373
8373
|
v("span", d9, q(s.value) + " / " + q(n.value), 1)
|
|
8374
8374
|
]),
|
|
8375
|
-
|
|
8375
|
+
I(Z1, {
|
|
8376
8376
|
percentages: o.value,
|
|
8377
8377
|
class: "ao-card-project-phase__progress"
|
|
8378
8378
|
}, null, 8, ["percentages"])
|
|
@@ -8400,7 +8400,7 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8400
8400
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "updatePhase", "archivePhase"],
|
|
8401
8401
|
setup(t, { emit: e }) {
|
|
8402
8402
|
const a = t, { t: n } = nt();
|
|
8403
|
-
|
|
8403
|
+
ue(() => a.phase.milestones, (u, p) => {
|
|
8404
8404
|
Ue(u, p);
|
|
8405
8405
|
});
|
|
8406
8406
|
const s = (u) => {
|
|
@@ -8425,13 +8425,13 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8425
8425
|
};
|
|
8426
8426
|
return (u, p) => (f(), h("li", v9, [
|
|
8427
8427
|
u.isEditable ? (f(), h("div", p9, [
|
|
8428
|
-
|
|
8428
|
+
I(ce, {
|
|
8429
8429
|
name: "DragIndicator",
|
|
8430
8430
|
class: "ao-project-phase__drag-handle"
|
|
8431
8431
|
})
|
|
8432
8432
|
])) : T("", !0),
|
|
8433
8433
|
v("div", h9, [
|
|
8434
|
-
|
|
8434
|
+
I(n9, {
|
|
8435
8435
|
id: u.phase.id,
|
|
8436
8436
|
milestones: o.value,
|
|
8437
8437
|
name: u.phase.name,
|
|
@@ -8442,7 +8442,7 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8442
8442
|
]),
|
|
8443
8443
|
v("div", m9, [
|
|
8444
8444
|
v("div", C9, [
|
|
8445
|
-
|
|
8445
|
+
I(z(Qe), Ee({
|
|
8446
8446
|
class: "ao-project-phase__milestones-list",
|
|
8447
8447
|
list: o.value,
|
|
8448
8448
|
disabled: !u.isEditable,
|
|
@@ -8450,7 +8450,7 @@ const v9 = { class: "ao-project-phase" }, p9 = {
|
|
|
8450
8450
|
group: "kanban"
|
|
8451
8451
|
}, u.$attrs, { onChange: c }), {
|
|
8452
8452
|
item: U(({ element: m }) => [
|
|
8453
|
-
|
|
8453
|
+
I(f9, {
|
|
8454
8454
|
id: m.id,
|
|
8455
8455
|
name: m.name,
|
|
8456
8456
|
activities: m.activities,
|
|
@@ -8495,7 +8495,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8495
8495
|
emits: ["addMilestone", "updateMilestone", "archiveMilestone", "addPhase", "updatePhase", "archivePhase"],
|
|
8496
8496
|
setup(t, { emit: e }) {
|
|
8497
8497
|
const a = t;
|
|
8498
|
-
|
|
8498
|
+
ue(() => a.phases, (c, u) => {
|
|
8499
8499
|
Ue(c, u);
|
|
8500
8500
|
});
|
|
8501
8501
|
const n = (c) => {
|
|
@@ -8520,7 +8520,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8520
8520
|
e("addPhase", c);
|
|
8521
8521
|
};
|
|
8522
8522
|
return (c, u) => (f(), h("div", y9, [
|
|
8523
|
-
|
|
8523
|
+
I(z(Qe), {
|
|
8524
8524
|
class: "ao-project-phase__phases-list",
|
|
8525
8525
|
"model-value": c.phases,
|
|
8526
8526
|
"item-key": "id",
|
|
@@ -8528,7 +8528,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8528
8528
|
onChange: l
|
|
8529
8529
|
}, {
|
|
8530
8530
|
item: U(({ element: p }) => [
|
|
8531
|
-
|
|
8531
|
+
I(g9, {
|
|
8532
8532
|
phase: p,
|
|
8533
8533
|
"is-editable": c.isEditable,
|
|
8534
8534
|
"closed-status": c.closedStatus,
|
|
@@ -8544,7 +8544,7 @@ const y9 = { class: "ao-project__phases" }, b9 = {
|
|
|
8544
8544
|
c.isEditable ? (f(), h("div", b9, [
|
|
8545
8545
|
w9,
|
|
8546
8546
|
v("div", $9, [
|
|
8547
|
-
|
|
8547
|
+
I(Je, {
|
|
8548
8548
|
label: c.$t("project.phases.add"),
|
|
8549
8549
|
"icon-name": "Add",
|
|
8550
8550
|
class: "ao-project-phase__add-phase",
|
|
@@ -8574,7 +8574,7 @@ const A9 = ["onSubmit"], T9 = { class: "ao-add-template-modal__form-body" }, S9
|
|
|
8574
8574
|
};
|
|
8575
8575
|
return (l, d) => (f(), N(D1, { size: "sm" }, {
|
|
8576
8576
|
header: U(() => [
|
|
8577
|
-
|
|
8577
|
+
I(Ce, {
|
|
8578
8578
|
title: l.$t("project.template.add.title"),
|
|
8579
8579
|
level: 3
|
|
8580
8580
|
}, null, 8, ["title"])
|
|
@@ -8586,7 +8586,7 @@ const A9 = ["onSubmit"], T9 = { class: "ao-add-template-modal__form-body" }, S9
|
|
|
8586
8586
|
}, [
|
|
8587
8587
|
v("div", T9, [
|
|
8588
8588
|
v("div", S9, [
|
|
8589
|
-
|
|
8589
|
+
I(be, {
|
|
8590
8590
|
value: s.value,
|
|
8591
8591
|
options: n.value,
|
|
8592
8592
|
detached: !0,
|
|
@@ -8595,7 +8595,7 @@ const A9 = ["onSubmit"], T9 = { class: "ao-add-template-modal__form-body" }, S9
|
|
|
8595
8595
|
])
|
|
8596
8596
|
]),
|
|
8597
8597
|
v("footer", E9, [
|
|
8598
|
-
|
|
8598
|
+
I(fe, {
|
|
8599
8599
|
label: l.$t("project.template.add.label"),
|
|
8600
8600
|
type: "submit",
|
|
8601
8601
|
color: "primary",
|
|
@@ -8679,89 +8679,89 @@ const Ra = /* @__PURE__ */ B(O9, [["render", V9], ["__scopeId", "data-v-c0ae9237
|
|
|
8679
8679
|
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate", "update:showsArchived"],
|
|
8680
8680
|
setup(t, { emit: e }) {
|
|
8681
8681
|
const a = t, { t: n } = nt(), s = b(
|
|
8682
|
-
() => a.phases.flatMap((
|
|
8682
|
+
() => a.phases.flatMap((E) => E.milestones)
|
|
8683
8683
|
), o = () => {
|
|
8684
|
-
const { name:
|
|
8685
|
-
e("addPhase", { name:
|
|
8686
|
-
}, i = (
|
|
8687
|
-
e("updatePhase",
|
|
8688
|
-
}, l = (
|
|
8689
|
-
e("archivePhase",
|
|
8690
|
-
}, d = (
|
|
8691
|
-
e("addMilestone",
|
|
8692
|
-
}, r = (
|
|
8693
|
-
e("updateMilestone",
|
|
8694
|
-
}, c = (
|
|
8695
|
-
e("archiveMilestone",
|
|
8696
|
-
}, u = (
|
|
8697
|
-
e("addActivity",
|
|
8698
|
-
}, p = (
|
|
8699
|
-
e("update:activity",
|
|
8700
|
-
}, m = (
|
|
8701
|
-
e("archiveActivity",
|
|
8702
|
-
}, w = (
|
|
8703
|
-
e("addSubtask",
|
|
8704
|
-
}, A = (
|
|
8705
|
-
e("updateSubtask",
|
|
8706
|
-
},
|
|
8707
|
-
e("deleteSubtask",
|
|
8684
|
+
const { name: E, rank: J } = ht(a.phases, "phase", n);
|
|
8685
|
+
e("addPhase", { name: E, rank: J, projectId: a.project.id });
|
|
8686
|
+
}, i = (E) => {
|
|
8687
|
+
e("updatePhase", E);
|
|
8688
|
+
}, l = (E) => {
|
|
8689
|
+
e("archivePhase", E);
|
|
8690
|
+
}, d = (E) => {
|
|
8691
|
+
e("addMilestone", E);
|
|
8692
|
+
}, r = (E) => {
|
|
8693
|
+
e("updateMilestone", E);
|
|
8694
|
+
}, c = (E) => {
|
|
8695
|
+
e("archiveMilestone", E);
|
|
8696
|
+
}, u = (E) => {
|
|
8697
|
+
e("addActivity", E);
|
|
8698
|
+
}, p = (E) => {
|
|
8699
|
+
e("update:activity", E);
|
|
8700
|
+
}, m = (E) => {
|
|
8701
|
+
e("archiveActivity", E);
|
|
8702
|
+
}, w = (E) => {
|
|
8703
|
+
e("addSubtask", E);
|
|
8704
|
+
}, A = (E) => {
|
|
8705
|
+
e("updateSubtask", E);
|
|
8706
|
+
}, _ = (E) => {
|
|
8707
|
+
e("deleteSubtask", E);
|
|
8708
8708
|
}, $ = b(
|
|
8709
|
-
() => s.value.flatMap((
|
|
8710
|
-
), y = (
|
|
8711
|
-
e("addFiles",
|
|
8712
|
-
}, L = (
|
|
8713
|
-
e("removeFile",
|
|
8714
|
-
}, Z = (
|
|
8715
|
-
e("addComment",
|
|
8716
|
-
}, W = (
|
|
8717
|
-
e("updateComment",
|
|
8718
|
-
}, V = (
|
|
8719
|
-
e("removeComment",
|
|
8720
|
-
}, X = Q(!1), te =
|
|
8721
|
-
e("applyTemplate", { templateId:
|
|
8709
|
+
() => s.value.flatMap((E) => E.activities)
|
|
8710
|
+
), y = (E) => {
|
|
8711
|
+
e("addFiles", E);
|
|
8712
|
+
}, L = (E) => {
|
|
8713
|
+
e("removeFile", E);
|
|
8714
|
+
}, Z = (E) => {
|
|
8715
|
+
e("addComment", E);
|
|
8716
|
+
}, W = (E) => {
|
|
8717
|
+
e("updateComment", E);
|
|
8718
|
+
}, V = (E) => {
|
|
8719
|
+
e("removeComment", E);
|
|
8720
|
+
}, X = Q(!1), te = (E, J) => {
|
|
8721
|
+
e("applyTemplate", { templateId: E, projectId: J }), X.value = !1;
|
|
8722
8722
|
};
|
|
8723
|
-
return (
|
|
8724
|
-
const
|
|
8723
|
+
return (E, J) => {
|
|
8724
|
+
const g = hs("RouterView");
|
|
8725
8725
|
return f(), h(ve, null, [
|
|
8726
|
-
v("div", Ee({ class: "ao-project-overview" },
|
|
8726
|
+
v("div", Ee({ class: "ao-project-overview" }, E.$attrs), [
|
|
8727
8727
|
v("div", D9, [
|
|
8728
|
-
|
|
8728
|
+
I(d1, null, {
|
|
8729
8729
|
primary: U(() => [
|
|
8730
|
-
|
|
8730
|
+
I(Ra, {
|
|
8731
8731
|
"is-left": !0,
|
|
8732
|
-
"right-label":
|
|
8733
|
-
"left-label":
|
|
8734
|
-
"onUpdate:isLeft":
|
|
8735
|
-
|
|
8732
|
+
"right-label": E.$t("project.switch.feed"),
|
|
8733
|
+
"left-label": E.$t("project.switch.overview"),
|
|
8734
|
+
"onUpdate:isLeft": J[0] || (J[0] = (S) => {
|
|
8735
|
+
S || E.$router.push({ name: z(He).feed });
|
|
8736
8736
|
})
|
|
8737
8737
|
}, null, 8, ["right-label", "left-label"]),
|
|
8738
|
-
|
|
8738
|
+
I(fe, {
|
|
8739
8739
|
class: "ao-feed__show-archived",
|
|
8740
8740
|
size: "sm",
|
|
8741
|
-
"icon-name":
|
|
8741
|
+
"icon-name": E.showsArchived ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
8742
8742
|
"icon-position": "start",
|
|
8743
8743
|
color: "primary",
|
|
8744
8744
|
variant: "ghost",
|
|
8745
|
-
label:
|
|
8745
|
+
label: E.$t("feed.filters.showsArchived.label"),
|
|
8746
8746
|
role: "checkbox",
|
|
8747
|
-
"aria-checked":
|
|
8748
|
-
onClick:
|
|
8747
|
+
"aria-checked": E.showsArchived,
|
|
8748
|
+
onClick: J[1] || (J[1] = (S) => E.$emit("update:showsArchived", !E.showsArchived))
|
|
8749
8749
|
}, null, 8, ["icon-name", "label", "aria-checked"]),
|
|
8750
|
-
|
|
8750
|
+
E.isEditable ? (f(), N(fe, {
|
|
8751
8751
|
key: 0,
|
|
8752
8752
|
class: "ao-project-overview__add-template",
|
|
8753
8753
|
color: "primary",
|
|
8754
|
-
label:
|
|
8755
|
-
onClick:
|
|
8754
|
+
label: E.$t("project.template.add.label"),
|
|
8755
|
+
onClick: J[2] || (J[2] = (S) => X.value = !0)
|
|
8756
8756
|
}, null, 8, ["label"])) : T("", !0)
|
|
8757
8757
|
]),
|
|
8758
8758
|
_: 1
|
|
8759
8759
|
}),
|
|
8760
8760
|
v("div", H9, [
|
|
8761
|
-
|
|
8762
|
-
phases:
|
|
8763
|
-
"closed-status":
|
|
8764
|
-
"is-editable":
|
|
8761
|
+
I(k9, {
|
|
8762
|
+
phases: E.phases,
|
|
8763
|
+
"closed-status": E.closedStatus,
|
|
8764
|
+
"is-editable": E.isEditable,
|
|
8765
8765
|
onAddMilestone: d,
|
|
8766
8766
|
onUpdateMilestone: r,
|
|
8767
8767
|
onArchiveMilestone: c,
|
|
@@ -8771,43 +8771,43 @@ const Ra = /* @__PURE__ */ B(O9, [["render", V9], ["__scopeId", "data-v-c0ae9237
|
|
|
8771
8771
|
}, null, 8, ["phases", "closed-status", "is-editable"])
|
|
8772
8772
|
])
|
|
8773
8773
|
]),
|
|
8774
|
-
|
|
8774
|
+
I(g, {
|
|
8775
8775
|
class: "ao-project__sidebar",
|
|
8776
|
-
phases:
|
|
8777
|
-
"project-id":
|
|
8778
|
-
"project-name":
|
|
8779
|
-
users:
|
|
8780
|
-
"is-editable":
|
|
8781
|
-
onClose:
|
|
8776
|
+
phases: E.phases,
|
|
8777
|
+
"project-id": E.project.id,
|
|
8778
|
+
"project-name": E.project.name,
|
|
8779
|
+
users: E.users,
|
|
8780
|
+
"is-editable": E.isEditable,
|
|
8781
|
+
onClose: J[3] || (J[3] = (S) => E.$router.push({ name: z(He).project })),
|
|
8782
8782
|
onAddActivity: u,
|
|
8783
8783
|
onUpdateActivity: p,
|
|
8784
8784
|
onArchiveActivity: m
|
|
8785
8785
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable"]),
|
|
8786
8786
|
(f(), N(It, { to: "body" }, [
|
|
8787
|
-
|
|
8787
|
+
I(g, {
|
|
8788
8788
|
name: "modal",
|
|
8789
8789
|
activities: $.value,
|
|
8790
|
-
"is-task-checkable":
|
|
8791
|
-
statuses:
|
|
8792
|
-
"activity-types":
|
|
8793
|
-
phases:
|
|
8794
|
-
users:
|
|
8795
|
-
"user-id":
|
|
8796
|
-
"is-editable":
|
|
8790
|
+
"is-task-checkable": E.isTaskCheckable,
|
|
8791
|
+
statuses: E.statuses,
|
|
8792
|
+
"activity-types": E.activityTypes,
|
|
8793
|
+
phases: E.phases,
|
|
8794
|
+
users: E.users,
|
|
8795
|
+
"user-id": E.userId,
|
|
8796
|
+
"is-editable": E.isEditable,
|
|
8797
8797
|
"onUpdate:activity": p,
|
|
8798
8798
|
onAddSubtask: w,
|
|
8799
8799
|
onUpdateSubtask: A,
|
|
8800
|
-
onDeleteSubtask:
|
|
8800
|
+
onDeleteSubtask: _,
|
|
8801
8801
|
onAddFiles: y,
|
|
8802
8802
|
onRemoveFile: L,
|
|
8803
8803
|
onAddComment: Z,
|
|
8804
8804
|
onUpdateComment: W,
|
|
8805
8805
|
onRemoveComment: V
|
|
8806
8806
|
}, {
|
|
8807
|
-
default: U(({ Component:
|
|
8808
|
-
(f(), N(Xe(
|
|
8809
|
-
default: U((
|
|
8810
|
-
x(
|
|
8807
|
+
default: U(({ Component: S }) => [
|
|
8808
|
+
(f(), N(Xe(S), null, {
|
|
8809
|
+
default: U((P) => [
|
|
8810
|
+
x(E.$slots, "activityDetailsBody", Ht(Pt(P)))
|
|
8811
8811
|
]),
|
|
8812
8812
|
_: 2
|
|
8813
8813
|
}, 1024))
|
|
@@ -8819,10 +8819,10 @@ const Ra = /* @__PURE__ */ B(O9, [["render", V9], ["__scopeId", "data-v-c0ae9237
|
|
|
8819
8819
|
(f(), N(It, { to: "body" }, [
|
|
8820
8820
|
X.value ? (f(), N(I9, {
|
|
8821
8821
|
key: 0,
|
|
8822
|
-
"project-id":
|
|
8823
|
-
templates:
|
|
8824
|
-
onClose:
|
|
8825
|
-
onApply:
|
|
8822
|
+
"project-id": E.project.id,
|
|
8823
|
+
templates: E.templates,
|
|
8824
|
+
onClose: J[4] || (J[4] = (S) => X.value = !1),
|
|
8825
|
+
onApply: te
|
|
8826
8826
|
}, null, 8, ["project-id", "templates"])) : T("", !0)
|
|
8827
8827
|
]))
|
|
8828
8828
|
], 64);
|
|
@@ -8929,7 +8929,7 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8929
8929
|
default: U(() => [
|
|
8930
8930
|
v("div", U9, [
|
|
8931
8931
|
s.value ? (f(), h("span", j9, q(s.value), 1)) : T("", !0),
|
|
8932
|
-
|
|
8932
|
+
I(Ce, {
|
|
8933
8933
|
id: p.id,
|
|
8934
8934
|
title: p.name,
|
|
8935
8935
|
level: 5,
|
|
@@ -8947,7 +8947,7 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8947
8947
|
key: w.id
|
|
8948
8948
|
}, [
|
|
8949
8949
|
w ? (f(), h("li", W9, [
|
|
8950
|
-
|
|
8950
|
+
I(gt, {
|
|
8951
8951
|
"user-name": l(w),
|
|
8952
8952
|
"avatar-url": w.avatarUrl,
|
|
8953
8953
|
"is-closable": !0,
|
|
@@ -8958,14 +8958,14 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8958
8958
|
]),
|
|
8959
8959
|
p.comments || p.attachments ? (f(), h("ul", Y9, [
|
|
8960
8960
|
p.comments ? (f(), h("li", K9, [
|
|
8961
|
-
|
|
8961
|
+
I(ce, {
|
|
8962
8962
|
name: "ChatOutline",
|
|
8963
8963
|
size: "sm"
|
|
8964
8964
|
}),
|
|
8965
8965
|
v("span", G9, q(p.comments), 1)
|
|
8966
8966
|
])) : T("", !0),
|
|
8967
8967
|
p.attachments ? (f(), h("li", x9, [
|
|
8968
|
-
|
|
8968
|
+
I(ce, {
|
|
8969
8969
|
name: "AttachFileRounded",
|
|
8970
8970
|
size: "sm"
|
|
8971
8971
|
}),
|
|
@@ -8976,13 +8976,13 @@ const B9 = { class: "ao-card-feed__header" }, N9 = {
|
|
|
8976
8976
|
v("div", Q9, [
|
|
8977
8977
|
p.tasks && p.tasks.length ? (f(), h("div", J9, [
|
|
8978
8978
|
v("div", e4, [
|
|
8979
|
-
|
|
8979
|
+
I(ce, {
|
|
8980
8980
|
name: "SelectCheckBox",
|
|
8981
8981
|
size: "sm"
|
|
8982
8982
|
}),
|
|
8983
8983
|
v("span", t4, q(c.value) + " / " + q(r.value), 1)
|
|
8984
8984
|
]),
|
|
8985
|
-
|
|
8985
|
+
I(Z1, {
|
|
8986
8986
|
percentages: u.value,
|
|
8987
8987
|
class: "ao-card-feed__progress"
|
|
8988
8988
|
}, null, 8, ["percentages"])
|
|
@@ -9022,7 +9022,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9022
9022
|
var p;
|
|
9023
9023
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
9024
9024
|
});
|
|
9025
|
-
|
|
9025
|
+
ue(l, (p, m) => {
|
|
9026
9026
|
Ue(p, m);
|
|
9027
9027
|
});
|
|
9028
9028
|
const d = (p) => {
|
|
@@ -9052,19 +9052,19 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9052
9052
|
v("header", s4, [
|
|
9053
9053
|
v("div", n4, [
|
|
9054
9054
|
v("span", null, q(p.$t("project.milestone.title")), 1),
|
|
9055
|
-
|
|
9055
|
+
I(Ce, {
|
|
9056
9056
|
title: ((w = i.value) == null ? void 0 : w.name) || p.milestoneId,
|
|
9057
9057
|
level: 5
|
|
9058
9058
|
}, null, 8, ["title"])
|
|
9059
9059
|
]),
|
|
9060
|
-
|
|
9060
|
+
I(fe, {
|
|
9061
9061
|
"icon-name": "CloseRounded",
|
|
9062
9062
|
variant: "ghost",
|
|
9063
9063
|
onClick: d
|
|
9064
9064
|
})
|
|
9065
9065
|
]),
|
|
9066
9066
|
v("div", i4, [
|
|
9067
|
-
|
|
9067
|
+
I(z(Qe), Ee({
|
|
9068
9068
|
class: "ao-project-milestone__activities",
|
|
9069
9069
|
list: l.value,
|
|
9070
9070
|
disabled: !p.isEditable,
|
|
@@ -9072,12 +9072,12 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9072
9072
|
group: "kanban"
|
|
9073
9073
|
}, p.$attrs, { onChange: u }), {
|
|
9074
9074
|
item: U(({ element: A }) => {
|
|
9075
|
-
var
|
|
9075
|
+
var _, $, y, L;
|
|
9076
9076
|
return [
|
|
9077
|
-
|
|
9077
|
+
I(Ua, {
|
|
9078
9078
|
id: A.id,
|
|
9079
9079
|
name: A.name || A.id,
|
|
9080
|
-
"phase-name": (
|
|
9080
|
+
"phase-name": (_ = s.value) == null ? void 0 : _.name,
|
|
9081
9081
|
"milestone-name": ($ = i.value) == null ? void 0 : $.name,
|
|
9082
9082
|
deadline: A.deadline,
|
|
9083
9083
|
important: A.important,
|
|
@@ -9098,7 +9098,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9098
9098
|
p.isEditable ? {
|
|
9099
9099
|
name: "secondary",
|
|
9100
9100
|
fn: U(() => [
|
|
9101
|
-
|
|
9101
|
+
I(fe, {
|
|
9102
9102
|
color: "primary",
|
|
9103
9103
|
variant: "ghost",
|
|
9104
9104
|
"icon-name": "ArchiveOutlineRounded",
|
|
@@ -9117,7 +9117,7 @@ const a4 = { class: "ao-project-milestone" }, s4 = { class: "ao-project-mileston
|
|
|
9117
9117
|
_: 1
|
|
9118
9118
|
}, 16, ["list", "disabled"]),
|
|
9119
9119
|
p.isEditable ? (f(), h("div", o4, [
|
|
9120
|
-
|
|
9120
|
+
I(Je, {
|
|
9121
9121
|
"icon-name": "Add",
|
|
9122
9122
|
label: p.$t("project.activity.add"),
|
|
9123
9123
|
onClick: r
|
|
@@ -9147,54 +9147,54 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
9147
9147
|
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9148
9148
|
setup(t, { emit: e }) {
|
|
9149
9149
|
const a = t, n = b(() => {
|
|
9150
|
-
var
|
|
9151
|
-
return (
|
|
9150
|
+
var _;
|
|
9151
|
+
return (_ = a.phases) == null ? void 0 : _.find(($) => $.id === a.phaseId);
|
|
9152
9152
|
}), s = b(
|
|
9153
9153
|
() => {
|
|
9154
|
-
var
|
|
9155
|
-
return (
|
|
9154
|
+
var _;
|
|
9155
|
+
return (_ = a.phases) == null ? void 0 : _.flatMap(($) => $.milestones);
|
|
9156
9156
|
}
|
|
9157
9157
|
), o = b(() => {
|
|
9158
|
-
var
|
|
9159
|
-
return (
|
|
9158
|
+
var _;
|
|
9159
|
+
return (_ = s.value) == null ? void 0 : _.find(($) => $.id === a.milestoneId);
|
|
9160
9160
|
}), i = b(() => {
|
|
9161
|
-
var
|
|
9162
|
-
return (
|
|
9163
|
-
}), l = (
|
|
9164
|
-
e("update:activity",
|
|
9165
|
-
}, d = (
|
|
9166
|
-
e("addSubtask",
|
|
9167
|
-
}, r = (
|
|
9168
|
-
e("updateSubtask",
|
|
9169
|
-
}, c = (
|
|
9170
|
-
e("deleteSubtask",
|
|
9171
|
-
}, u = (
|
|
9172
|
-
e("addFiles",
|
|
9173
|
-
}, p = (
|
|
9174
|
-
e("removeFile",
|
|
9175
|
-
}, m = (
|
|
9176
|
-
e("addComment",
|
|
9177
|
-
}, w = (
|
|
9178
|
-
e("updateComment",
|
|
9179
|
-
}, A = (
|
|
9180
|
-
e("removeComment",
|
|
9161
|
+
var _;
|
|
9162
|
+
return (_ = a.activities) == null ? void 0 : _.find(($) => $.id === a.activityId);
|
|
9163
|
+
}), l = (_) => {
|
|
9164
|
+
e("update:activity", _);
|
|
9165
|
+
}, d = (_) => {
|
|
9166
|
+
e("addSubtask", _);
|
|
9167
|
+
}, r = (_) => {
|
|
9168
|
+
e("updateSubtask", _);
|
|
9169
|
+
}, c = (_) => {
|
|
9170
|
+
e("deleteSubtask", _);
|
|
9171
|
+
}, u = (_) => {
|
|
9172
|
+
e("addFiles", _);
|
|
9173
|
+
}, p = (_) => {
|
|
9174
|
+
e("removeFile", _);
|
|
9175
|
+
}, m = (_) => {
|
|
9176
|
+
e("addComment", _);
|
|
9177
|
+
}, w = (_) => {
|
|
9178
|
+
e("updateComment", _);
|
|
9179
|
+
}, A = (_) => {
|
|
9180
|
+
e("removeComment", _);
|
|
9181
9181
|
};
|
|
9182
|
-
return (
|
|
9182
|
+
return (_, $) => {
|
|
9183
9183
|
var y, L;
|
|
9184
9184
|
return i.value ? (f(), N(U1, {
|
|
9185
9185
|
key: 0,
|
|
9186
9186
|
activity: i.value,
|
|
9187
|
-
"activity-types":
|
|
9188
|
-
"milestone-id":
|
|
9189
|
-
"template-activities":
|
|
9187
|
+
"activity-types": _.activityTypes,
|
|
9188
|
+
"milestone-id": _.milestoneId,
|
|
9189
|
+
"template-activities": _.activities,
|
|
9190
9190
|
"is-template": !1,
|
|
9191
|
-
users:
|
|
9192
|
-
"user-id":
|
|
9193
|
-
"is-task-checkable":
|
|
9194
|
-
statuses:
|
|
9191
|
+
users: _.users,
|
|
9192
|
+
"user-id": _.userId,
|
|
9193
|
+
"is-task-checkable": _.isTaskCheckable,
|
|
9194
|
+
statuses: _.statuses,
|
|
9195
9195
|
breadcrumbs: `${(y = n.value) == null ? void 0 : y.name} / ${(L = o.value) == null ? void 0 : L.name}`,
|
|
9196
|
-
"is-editable":
|
|
9197
|
-
onClose:
|
|
9196
|
+
"is-editable": _.isEditable,
|
|
9197
|
+
onClose: _.$router.back,
|
|
9198
9198
|
"onUpdate:activity": l,
|
|
9199
9199
|
onAddSubtask: d,
|
|
9200
9200
|
onUpdateSubtask: r,
|
|
@@ -9206,7 +9206,7 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
9206
9206
|
onRemoveComment: A
|
|
9207
9207
|
}, {
|
|
9208
9208
|
default: U((Z) => [
|
|
9209
|
-
x(
|
|
9209
|
+
x(_.$slots, "default", Ht(Pt(Z)))
|
|
9210
9210
|
]),
|
|
9211
9211
|
_: 3
|
|
9212
9212
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) : T("", !0);
|
|
@@ -9220,7 +9220,7 @@ const l4 = /* @__PURE__ */ Y({
|
|
|
9220
9220
|
},
|
|
9221
9221
|
setup(t) {
|
|
9222
9222
|
return (e, a) => (f(), h("header", r4, [
|
|
9223
|
-
|
|
9223
|
+
I(Ce, {
|
|
9224
9224
|
title: e.title,
|
|
9225
9225
|
class: "ao-col-header__title",
|
|
9226
9226
|
level: 4
|
|
@@ -9301,12 +9301,12 @@ function g4(t, e, a = {}) {
|
|
|
9301
9301
|
return (Array.isArray(w) ? w : [w]).map(A1).filter(f4);
|
|
9302
9302
|
});
|
|
9303
9303
|
let c = St;
|
|
9304
|
-
const u = Q(l), p = d.value ?
|
|
9304
|
+
const u = Q(l), p = d.value ? ue(
|
|
9305
9305
|
() => [r.value, A1(n), u.value],
|
|
9306
9306
|
([w, A]) => {
|
|
9307
9307
|
if (c(), !u.value || !w.length)
|
|
9308
9308
|
return;
|
|
9309
|
-
const
|
|
9309
|
+
const _ = new IntersectionObserver(
|
|
9310
9310
|
e,
|
|
9311
9311
|
{
|
|
9312
9312
|
root: A1(A),
|
|
@@ -9314,8 +9314,8 @@ function g4(t, e, a = {}) {
|
|
|
9314
9314
|
threshold: o
|
|
9315
9315
|
}
|
|
9316
9316
|
);
|
|
9317
|
-
w.forEach(($) => $ &&
|
|
9318
|
-
|
|
9317
|
+
w.forEach(($) => $ && _.observe($)), c = () => {
|
|
9318
|
+
_.disconnect(), c = St;
|
|
9319
9319
|
};
|
|
9320
9320
|
},
|
|
9321
9321
|
{ immediate: l, flush: "post" }
|
|
@@ -9369,7 +9369,7 @@ const y4 = {
|
|
|
9369
9369
|
const a = t, n = Q(!1), s = Q(null);
|
|
9370
9370
|
g4(s, ([{ isIntersecting: r }]) => {
|
|
9371
9371
|
n.value = r;
|
|
9372
|
-
}),
|
|
9372
|
+
}), ue(n, (r) => {
|
|
9373
9373
|
r && a.hasMore && !a.isLoading && e("loadMore");
|
|
9374
9374
|
});
|
|
9375
9375
|
const o = (r) => {
|
|
@@ -9403,7 +9403,7 @@ const y4 = {
|
|
|
9403
9403
|
])
|
|
9404
9404
|
];
|
|
9405
9405
|
}) : T("", !0),
|
|
9406
|
-
|
|
9406
|
+
I(z(Qe), Ee({
|
|
9407
9407
|
class: ["ao-list-kanban__list", d.value ? "ao-list-kanban__transition" : void 0],
|
|
9408
9408
|
list: r.list,
|
|
9409
9409
|
"item-key": "id",
|
|
@@ -9421,15 +9421,15 @@ const y4 = {
|
|
|
9421
9421
|
}
|
|
9422
9422
|
}), {
|
|
9423
9423
|
item: U(({ element: u }) => {
|
|
9424
|
-
var p, m, w, A,
|
|
9424
|
+
var p, m, w, A, _, $, y, L;
|
|
9425
9425
|
return [
|
|
9426
|
-
|
|
9426
|
+
I(Ua, {
|
|
9427
9427
|
id: u.id,
|
|
9428
9428
|
name: u.name,
|
|
9429
9429
|
"project-name": (p = u.project) == null ? void 0 : p.name,
|
|
9430
9430
|
"project-color": (m = u.project) == null ? void 0 : m.color,
|
|
9431
9431
|
"phase-name": (A = (w = u.milestone) == null ? void 0 : w.phase) == null ? void 0 : A.name,
|
|
9432
|
-
"milestone-name": (
|
|
9432
|
+
"milestone-name": (_ = u.milestone) == null ? void 0 : _.name,
|
|
9433
9433
|
deadline: u.deadline,
|
|
9434
9434
|
rules: (($ = u.rules) == null ? void 0 : $.length) || 0,
|
|
9435
9435
|
tasks: u.tasks,
|
|
@@ -9468,7 +9468,7 @@ const y4 = {
|
|
|
9468
9468
|
}),
|
|
9469
9469
|
footer: U(() => [
|
|
9470
9470
|
r.isLoading ? (f(), h("div", w4, [
|
|
9471
|
-
|
|
9471
|
+
I(ce, { name: "Loading" })
|
|
9472
9472
|
])) : r.hasMore ? (f(), h("div", {
|
|
9473
9473
|
key: 2,
|
|
9474
9474
|
ref_key: "scrollEnd",
|
|
@@ -9518,11 +9518,11 @@ const S4 = { class: "ao-field ao-search-field" }, E4 = ["value", "placeholder",
|
|
|
9518
9518
|
(...d) => z(s) && z(s)(...d)),
|
|
9519
9519
|
onKeypress: Ye(n, ["enter"])
|
|
9520
9520
|
}, null, 40, E4),
|
|
9521
|
-
|
|
9521
|
+
I(ce, {
|
|
9522
9522
|
name: "SearchRounded",
|
|
9523
9523
|
class: G(`ao-search-field__icon ao-search-field__action ${i.modelValue ? "" : "ao-search-field__action--visible"}`)
|
|
9524
9524
|
}, null, 8, ["class"]),
|
|
9525
|
-
|
|
9525
|
+
I(fe, {
|
|
9526
9526
|
"icon-name": "CloseRounded",
|
|
9527
9527
|
size: "sm",
|
|
9528
9528
|
color: "primary",
|
|
@@ -9583,10 +9583,10 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9583
9583
|
const a = t, { t: n } = nt(), s = vt(a, "activities"), { selectActivity: o, selectedActivity: i } = V4(s), l = async (k) => {
|
|
9584
9584
|
o(k), await e("selectActivity", k);
|
|
9585
9585
|
}, d = Q({}), r = Q(!1), c = Q(!1);
|
|
9586
|
-
|
|
9586
|
+
ue(
|
|
9587
9587
|
[() => a.statuses, () => a.activities, () => a.initialActivityId],
|
|
9588
9588
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9589
|
-
async ([k, K, ie], [
|
|
9589
|
+
async ([k, K, ie], [H, O]) => {
|
|
9590
9590
|
d.value = Object.fromEntries(
|
|
9591
9591
|
k.map((R) => [
|
|
9592
9592
|
R.id,
|
|
@@ -9595,7 +9595,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9595
9595
|
return ((Me = me.status) == null ? void 0 : Me.id) === R.id;
|
|
9596
9596
|
})
|
|
9597
9597
|
])
|
|
9598
|
-
), ie && !r.value && (l(ie), r.value = !0), c.value && Ue(K,
|
|
9598
|
+
), ie && !r.value && (l(ie), r.value = !0), c.value && Ue(K, O);
|
|
9599
9599
|
},
|
|
9600
9600
|
{ immediate: !0 }
|
|
9601
9601
|
);
|
|
@@ -9604,12 +9604,12 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9604
9604
|
return !i.value || !i.value.milestone ? "" : `${((k = i.value.milestone.phase) == null ? void 0 : k.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9605
9605
|
}), p = (k) => {
|
|
9606
9606
|
var R, me;
|
|
9607
|
-
const K = (R = a.activities) == null ? void 0 : R.at(-1), ie = K ? Te.LexoRank.parse(K.rank).genNext() : Te.LexoRank.middle(),
|
|
9608
|
-
name: n("activity.defaultName", { idx:
|
|
9607
|
+
const K = (R = a.activities) == null ? void 0 : R.at(-1), ie = K ? Te.LexoRank.parse(K.rank).genNext() : Te.LexoRank.middle(), H = ((me = a.activities) == null ? void 0 : me.length) ?? 0, O = {
|
|
9608
|
+
name: n("activity.defaultName", { idx: H + 1 }),
|
|
9609
9609
|
rank: ie.format(),
|
|
9610
9610
|
statusId: k.id
|
|
9611
9611
|
};
|
|
9612
|
-
a.filters.assigneeId.length > 0 && (
|
|
9612
|
+
a.filters.assigneeId.length > 0 && (O.assigneeId = a.filters.assigneeId[0]), a.filters.projectId.length > 0 && (O.projectId = a.filters.projectId[0]), a.filters.typeId.length > 0 && (O.typeId = a.filters.typeId[0]), c.value = !0, e("addActivity", O);
|
|
9613
9613
|
}, m = (k, K) => {
|
|
9614
9614
|
c.value = !1, e("update:filters", { ...a.filters, [k]: K });
|
|
9615
9615
|
}, w = b(
|
|
@@ -9617,7 +9617,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9617
9617
|
), A = b(() => w.value.map((k) => ({
|
|
9618
9618
|
value: k.id,
|
|
9619
9619
|
label: k.name
|
|
9620
|
-
}))),
|
|
9620
|
+
}))), _ = b(() => {
|
|
9621
9621
|
var k;
|
|
9622
9622
|
return (k = a.activityTypes) == null ? void 0 : k.map((K) => ({
|
|
9623
9623
|
value: K.id,
|
|
@@ -9650,37 +9650,37 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9650
9650
|
c.value = !1, e("clear:searchText", k);
|
|
9651
9651
|
}, te = (k) => {
|
|
9652
9652
|
i.value && e("addSubtask", k);
|
|
9653
|
-
},
|
|
9653
|
+
}, E = (k) => {
|
|
9654
9654
|
i.value && e("updateSubtask", k);
|
|
9655
|
-
},
|
|
9655
|
+
}, J = (k) => {
|
|
9656
9656
|
i.value && e("deleteSubtask", k);
|
|
9657
|
-
},
|
|
9657
|
+
}, g = (k) => {
|
|
9658
9658
|
e("addFiles", k);
|
|
9659
|
-
},
|
|
9659
|
+
}, S = (k) => {
|
|
9660
9660
|
e("removeFile", k);
|
|
9661
|
-
},
|
|
9661
|
+
}, P = (k) => {
|
|
9662
9662
|
i.value && e("addComment", {
|
|
9663
9663
|
...k,
|
|
9664
9664
|
activityId: i.value.id
|
|
9665
9665
|
});
|
|
9666
|
-
},
|
|
9666
|
+
}, de = (k) => {
|
|
9667
9667
|
const { id: K } = i.value || {};
|
|
9668
9668
|
K && e("updateComment", k);
|
|
9669
9669
|
}, se = (k) => {
|
|
9670
9670
|
const { id: K } = i.value || {};
|
|
9671
9671
|
K && e("removeComment", k);
|
|
9672
|
-
},
|
|
9672
|
+
}, re = b(() => w.value.map((k) => ({
|
|
9673
9673
|
value: k.id,
|
|
9674
9674
|
label: k.name
|
|
9675
9675
|
}))), M = b(() => {
|
|
9676
|
-
var K, ie,
|
|
9677
|
-
const k = (
|
|
9678
|
-
(
|
|
9676
|
+
var K, ie, H;
|
|
9677
|
+
const k = (H = (ie = (K = i.value) == null ? void 0 : K.project) == null ? void 0 : ie.phases) == null ? void 0 : H.reduce(
|
|
9678
|
+
(O, R) => [...O, ...R.milestones],
|
|
9679
9679
|
[]
|
|
9680
9680
|
);
|
|
9681
|
-
return k == null ? void 0 : k.map((
|
|
9682
|
-
value:
|
|
9683
|
-
label:
|
|
9681
|
+
return k == null ? void 0 : k.map((O) => ({
|
|
9682
|
+
value: O.id,
|
|
9683
|
+
label: O.name
|
|
9684
9684
|
}));
|
|
9685
9685
|
}), F = (k) => {
|
|
9686
9686
|
i.value && e("update:activity", {
|
|
@@ -9707,7 +9707,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9707
9707
|
return (k, K) => {
|
|
9708
9708
|
var ie;
|
|
9709
9709
|
return f(), h("div", D4, [
|
|
9710
|
-
|
|
9710
|
+
I(d1, null, {
|
|
9711
9711
|
primary: U(() => [
|
|
9712
9712
|
v("div", H4, [
|
|
9713
9713
|
a.project ? (f(), N(Ra, {
|
|
@@ -9715,11 +9715,11 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9715
9715
|
"is-left": !1,
|
|
9716
9716
|
"right-label": k.$t("project.switch.feed"),
|
|
9717
9717
|
"left-label": k.$t("project.switch.overview"),
|
|
9718
|
-
"onUpdate:isLeft": K[0] || (K[0] = (
|
|
9719
|
-
|
|
9718
|
+
"onUpdate:isLeft": K[0] || (K[0] = (H) => {
|
|
9719
|
+
H && k.$router.push({ name: z(He).project });
|
|
9720
9720
|
})
|
|
9721
9721
|
}, null, 8, ["right-label", "left-label"])) : T("", !0),
|
|
9722
|
-
|
|
9722
|
+
I(I4, {
|
|
9723
9723
|
"model-value": k.searchText,
|
|
9724
9724
|
placeholder: k.$t("feed.search.placeholder"),
|
|
9725
9725
|
class: "ao-feed__search",
|
|
@@ -9735,20 +9735,20 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9735
9735
|
searchable: !0,
|
|
9736
9736
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9737
9737
|
placeholder: k.$t("feed.filters.project.placeholder"),
|
|
9738
|
-
"onUpdate:modelValue": K[1] || (K[1] = (
|
|
9738
|
+
"onUpdate:modelValue": K[1] || (K[1] = (H) => m(z(dt).project, H))
|
|
9739
9739
|
}, null, 8, ["model-value", "options", "placeholder"])),
|
|
9740
|
-
|
|
9740
|
+
_.value ? (f(), N(be, {
|
|
9741
9741
|
key: 2,
|
|
9742
9742
|
"model-value": k.filters[z(dt).type],
|
|
9743
9743
|
mode: "tags",
|
|
9744
|
-
options:
|
|
9744
|
+
options: _.value,
|
|
9745
9745
|
"close-on-select": !1,
|
|
9746
9746
|
searchable: !0,
|
|
9747
9747
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9748
9748
|
placeholder: k.$t("feed.filters.activityType.placeholder"),
|
|
9749
|
-
"onUpdate:modelValue": K[2] || (K[2] = (
|
|
9749
|
+
"onUpdate:modelValue": K[2] || (K[2] = (H) => m(z(dt).type, H))
|
|
9750
9750
|
}, null, 8, ["model-value", "options", "placeholder"])) : T("", !0),
|
|
9751
|
-
|
|
9751
|
+
I(be, {
|
|
9752
9752
|
"model-value": k.filters[z(dt).assignee],
|
|
9753
9753
|
mode: "tags",
|
|
9754
9754
|
options: $.value,
|
|
@@ -9756,23 +9756,23 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9756
9756
|
searchable: !0,
|
|
9757
9757
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9758
9758
|
placeholder: k.$t("feed.filters.assignee.placeholder"),
|
|
9759
|
-
"onUpdate:modelValue": K[3] || (K[3] = (
|
|
9759
|
+
"onUpdate:modelValue": K[3] || (K[3] = (H) => m(z(dt).assignee, H))
|
|
9760
9760
|
}, {
|
|
9761
9761
|
tag: U(({
|
|
9762
|
-
option:
|
|
9763
|
-
handleTagRemove:
|
|
9762
|
+
option: H,
|
|
9763
|
+
handleTagRemove: O
|
|
9764
9764
|
}) => [
|
|
9765
|
-
|
|
9766
|
-
"user-name":
|
|
9767
|
-
"avatar-url":
|
|
9765
|
+
I(gt, {
|
|
9766
|
+
"user-name": H.label,
|
|
9767
|
+
"avatar-url": H.avatar,
|
|
9768
9768
|
"is-closable": !0,
|
|
9769
|
-
onClose: (R) =>
|
|
9769
|
+
onClose: (R) => O(H, R)
|
|
9770
9770
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
9771
9771
|
]),
|
|
9772
9772
|
_: 1
|
|
9773
9773
|
}, 8, ["model-value", "options", "placeholder"])
|
|
9774
9774
|
]),
|
|
9775
|
-
|
|
9775
|
+
I(fe, {
|
|
9776
9776
|
class: "ao-feed__show-archived",
|
|
9777
9777
|
size: "sm",
|
|
9778
9778
|
"icon-name": k.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
@@ -9782,21 +9782,21 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9782
9782
|
label: k.$t("feed.filters.showsArchivedActivities.label"),
|
|
9783
9783
|
role: "checkbox",
|
|
9784
9784
|
"aria-checked": k.showsArchivedActivities,
|
|
9785
|
-
onClick: K[4] || (K[4] = (
|
|
9785
|
+
onClick: K[4] || (K[4] = (H) => k.$emit("update:showsArchivedActivities", !k.showsArchivedActivities))
|
|
9786
9786
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9787
9787
|
]),
|
|
9788
9788
|
_: 1
|
|
9789
9789
|
}),
|
|
9790
9790
|
v("div", P4, [
|
|
9791
|
-
(f(!0), h(ve, null, ye(k.statuses, (
|
|
9792
|
-
key:
|
|
9793
|
-
status:
|
|
9794
|
-
list: d.value[
|
|
9795
|
-
title:
|
|
9791
|
+
(f(!0), h(ve, null, ye(k.statuses, (H) => (f(), N(T4, {
|
|
9792
|
+
key: H.id,
|
|
9793
|
+
status: H,
|
|
9794
|
+
list: d.value[H.id],
|
|
9795
|
+
title: H.name,
|
|
9796
9796
|
"footer-label": k.$t("feed.activity.add"),
|
|
9797
9797
|
users: k.users,
|
|
9798
9798
|
"is-editable": k.isEditable,
|
|
9799
|
-
onAdd: () => p(
|
|
9799
|
+
onAdd: () => p(H),
|
|
9800
9800
|
onSelectActivity: l,
|
|
9801
9801
|
onArchiveActivity: Z,
|
|
9802
9802
|
onUpdateActivity: L
|
|
@@ -9818,23 +9818,23 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9818
9818
|
onClose: K[6] || (K[6] = () => l(null)),
|
|
9819
9819
|
"onUpdate:activity": y,
|
|
9820
9820
|
onAddSubtask: te,
|
|
9821
|
-
onUpdateSubtask:
|
|
9822
|
-
onDeleteSubtask:
|
|
9823
|
-
onAddFiles:
|
|
9824
|
-
onRemoveFile:
|
|
9825
|
-
onAddComment:
|
|
9826
|
-
onUpdateComment:
|
|
9821
|
+
onUpdateSubtask: E,
|
|
9822
|
+
onDeleteSubtask: J,
|
|
9823
|
+
onAddFiles: g,
|
|
9824
|
+
onRemoveFile: S,
|
|
9825
|
+
onAddComment: P,
|
|
9826
|
+
onUpdateComment: de,
|
|
9827
9827
|
onRemoveComment: se
|
|
9828
9828
|
}, {
|
|
9829
9829
|
header: U(() => {
|
|
9830
|
-
var
|
|
9830
|
+
var H, O, R;
|
|
9831
9831
|
return [
|
|
9832
9832
|
v("div", B4, [
|
|
9833
|
-
|
|
9833
|
+
re.value && !a.project ? (f(), h("label", N4, [
|
|
9834
9834
|
v("span", R4, q(k.$t("activity.project.label")), 1),
|
|
9835
|
-
|
|
9836
|
-
options:
|
|
9837
|
-
value: (
|
|
9835
|
+
I(be, {
|
|
9836
|
+
options: re.value,
|
|
9837
|
+
value: (H = z(i).project) == null ? void 0 : H.id,
|
|
9838
9838
|
searchable: !0,
|
|
9839
9839
|
disabled: !k.isEditable,
|
|
9840
9840
|
caret: k.isEditable,
|
|
@@ -9843,9 +9843,9 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9843
9843
|
])) : T("", !0),
|
|
9844
9844
|
M.value ? (f(), h("label", U4, [
|
|
9845
9845
|
v("span", j4, q(k.$t("activity.milestone.label")), 1),
|
|
9846
|
-
|
|
9846
|
+
I(be, {
|
|
9847
9847
|
options: M.value,
|
|
9848
|
-
value: (
|
|
9848
|
+
value: (O = z(i).milestone) == null ? void 0 : O.id,
|
|
9849
9849
|
searchable: !0,
|
|
9850
9850
|
disabled: !k.isEditable,
|
|
9851
9851
|
caret: k.isEditable,
|
|
@@ -9854,7 +9854,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9854
9854
|
])) : T("", !0),
|
|
9855
9855
|
ae.value ? (f(), h("label", Z4, [
|
|
9856
9856
|
v("span", F4, q(k.$t("activity.status.label")), 1),
|
|
9857
|
-
|
|
9857
|
+
I(be, {
|
|
9858
9858
|
options: ae.value,
|
|
9859
9859
|
value: (R = z(i).status) == null ? void 0 : R.id,
|
|
9860
9860
|
"can-clear": !1,
|
|
@@ -9867,12 +9867,12 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9867
9867
|
])
|
|
9868
9868
|
];
|
|
9869
9869
|
}),
|
|
9870
|
-
default: U((
|
|
9870
|
+
default: U((H) => [
|
|
9871
9871
|
v("div", q4, [
|
|
9872
9872
|
v("label", z4, [
|
|
9873
9873
|
v("span", W4, q(k.$t("activity.deadline.label")), 1),
|
|
9874
9874
|
tt(v("input", {
|
|
9875
|
-
"onUpdate:modelValue": K[5] || (K[5] = (
|
|
9875
|
+
"onUpdate:modelValue": K[5] || (K[5] = (O) => W.value = O),
|
|
9876
9876
|
class: "ao-field__input",
|
|
9877
9877
|
type: "date"
|
|
9878
9878
|
}, null, 512), [
|
|
@@ -9885,7 +9885,7 @@ const D4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, P4 = { clas
|
|
|
9885
9885
|
])
|
|
9886
9886
|
])
|
|
9887
9887
|
]),
|
|
9888
|
-
x(k.$slots, "activityDetailsBody", Ht(Pt(
|
|
9888
|
+
x(k.$slots, "activityDetailsBody", Ht(Pt(H)))
|
|
9889
9889
|
]),
|
|
9890
9890
|
_: 3
|
|
9891
9891
|
}, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable"])) : T("", !0)
|
|
@@ -9968,7 +9968,7 @@ const ft = {
|
|
|
9968
9968
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
9969
9969
|
setup(t, { emit: e }) {
|
|
9970
9970
|
const a = t, { t: n } = nt();
|
|
9971
|
-
|
|
9971
|
+
ue(() => a.templates, (l, d) => {
|
|
9972
9972
|
Ue(l, d);
|
|
9973
9973
|
});
|
|
9974
9974
|
const s = () => {
|
|
@@ -10001,9 +10001,9 @@ const ft = {
|
|
|
10001
10001
|
}
|
|
10002
10002
|
};
|
|
10003
10003
|
return (l, d) => (f(), h("div", K4, [
|
|
10004
|
-
|
|
10004
|
+
I(d1, null, {
|
|
10005
10005
|
secondary: U(() => [
|
|
10006
|
-
|
|
10006
|
+
I(fe, {
|
|
10007
10007
|
label: l.$t("templates.new"),
|
|
10008
10008
|
color: "primary",
|
|
10009
10009
|
"icon-name": "Add",
|
|
@@ -10013,7 +10013,7 @@ const ft = {
|
|
|
10013
10013
|
]),
|
|
10014
10014
|
_: 1
|
|
10015
10015
|
}),
|
|
10016
|
-
|
|
10016
|
+
I(z(Qe), {
|
|
10017
10017
|
"model-value": l.templates,
|
|
10018
10018
|
class: "ao-templates__list",
|
|
10019
10019
|
"item-key": "id",
|
|
@@ -10023,7 +10023,7 @@ const ft = {
|
|
|
10023
10023
|
item: U(({ element: r }) => {
|
|
10024
10024
|
var c;
|
|
10025
10025
|
return [
|
|
10026
|
-
|
|
10026
|
+
I(P0, {
|
|
10027
10027
|
id: r.id,
|
|
10028
10028
|
title: r.name,
|
|
10029
10029
|
phases: r.phases,
|