@26lights/orcha 0.41.82 → 0.41.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +92 -90
- 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 q, openBlock as v, createBlock as D, unref as Q, mergeProps as Ae, createElementBlock as C, createElementVNode as f, pushScopeId as Vi, popScopeId as Di, createStaticVNode as Bi, computed as A, resolveDynamicComponent as mt, normalizeClass as X, renderSlot as te, toDisplayString as W, createCommentVNode as O, ref as
|
|
1
|
+
import { defineComponent as q, openBlock as v, createBlock as D, unref as Q, mergeProps as Ae, createElementBlock as C, createElementVNode as f, pushScopeId as Vi, popScopeId as Di, createStaticVNode as Bi, computed as A, resolveDynamicComponent as mt, normalizeClass as X, renderSlot as te, toDisplayString as W, createCommentVNode as O, ref as Y, watch as ce, nextTick as Me, withKeys as dt, toHandlers as ji, withCtx as N, createTextVNode as qa, createVNode as M, normalizeStyle as pt, withModifiers as ve, createSlots as fa, Fragment as fe, renderList as _e, onMounted as It, onBeforeUnmount as Ts, onUnmounted as Os, Teleport as Tt, toRefs as Ee, getCurrentInstance as Lt, toRef as Rt, normalizeProps as ha, guardReactiveProps as ma, withDirectives as De, vShow as Ri, onUpdated as Ni, vModelText as Ze, resolveComponent as rt, vModelCheckbox as Ui, getCurrentScope as Fi, onScopeDispose as Zi, toHandlerKey as Wi } from "vue";
|
|
2
2
|
import { RouterView as zi, useRoute as qi, useRouter as Es } from "vue-router";
|
|
3
3
|
import gt from "vuedraggable";
|
|
4
4
|
const t8 = /* @__PURE__ */ q({
|
|
@@ -1218,7 +1218,7 @@ const D2 = ["type"], B2 = {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
});
|
|
1220
1220
|
function Hn(t) {
|
|
1221
|
-
const e =
|
|
1221
|
+
const e = Y(!1), a = Y(""), s = A(() => "value" in t.value ? "value" : "innerHTML"), n = () => {
|
|
1222
1222
|
e.value = !e.value;
|
|
1223
1223
|
}, o = (r) => {
|
|
1224
1224
|
e.value = r;
|
|
@@ -1258,7 +1258,7 @@ const be = /* @__PURE__ */ q({
|
|
|
1258
1258
|
},
|
|
1259
1259
|
emits: ["update:title", "toggle-is-editing"],
|
|
1260
1260
|
setup(t, { emit: e }) {
|
|
1261
|
-
const a = t, s =
|
|
1261
|
+
const a = t, s = Y(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = Hn(s), r = A(() => n.value ? "input" : a.tag || `h${a.level}`), d = A(() => a.isEditable ? n.value ? {
|
|
1262
1262
|
change: u,
|
|
1263
1263
|
click: (y) => y.stopPropagation(),
|
|
1264
1264
|
blur: p
|
|
@@ -5033,12 +5033,12 @@ const u7 = (t, e, a) => {
|
|
|
5033
5033
|
platform: o
|
|
5034
5034
|
});
|
|
5035
5035
|
}, c7 = (t) => {
|
|
5036
|
-
const e =
|
|
5036
|
+
const e = Y(!1), a = Y(), s = Y(), n = Y(0);
|
|
5037
5037
|
function o() {
|
|
5038
5038
|
const c = Q(t.appendTo);
|
|
5039
5039
|
return c ? typeof c == "string" ? document.getElementById(c) ?? document.body : c : document.getElementById("floatingElements") ?? document.body;
|
|
5040
5040
|
}
|
|
5041
|
-
const i = o(), l =
|
|
5041
|
+
const i = o(), l = Y(() => {
|
|
5042
5042
|
});
|
|
5043
5043
|
function r(c) {
|
|
5044
5044
|
c.relatedTarget && s.value && s.value.contains(c.relatedTarget) || t.multiselect.value.deactivate();
|
|
@@ -5112,7 +5112,7 @@ function d7(t, e, a) {
|
|
|
5112
5112
|
};
|
|
5113
5113
|
}
|
|
5114
5114
|
function p7(t, e) {
|
|
5115
|
-
const { value: a, modelValue: s, mode: n, valueProp: o } = Ee(t), i =
|
|
5115
|
+
const { value: a, modelValue: s, mode: n, valueProp: o } = Ee(t), i = Y(n.value !== "single" ? [] : {}), l = A(() => s && s.value !== void 0 ? s.value : a.value), r = A(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), d = A(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
5116
5116
|
return {
|
|
5117
5117
|
iv: i,
|
|
5118
5118
|
internalValue: i,
|
|
@@ -5123,7 +5123,7 @@ function p7(t, e) {
|
|
|
5123
5123
|
};
|
|
5124
5124
|
}
|
|
5125
5125
|
function v7(t, e, a) {
|
|
5126
|
-
const { regex: s } = Ee(t), n = Lt().proxy, o = a.isOpen, i = a.open, l =
|
|
5126
|
+
const { regex: s } = Ee(t), n = Lt().proxy, o = a.isOpen, i = a.open, l = Y(null), r = () => {
|
|
5127
5127
|
l.value = "";
|
|
5128
5128
|
}, d = (p) => {
|
|
5129
5129
|
l.value = p.target.value;
|
|
@@ -5151,7 +5151,7 @@ function v7(t, e, a) {
|
|
|
5151
5151
|
};
|
|
5152
5152
|
}
|
|
5153
5153
|
function f7(t, e, a) {
|
|
5154
|
-
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = Ee(t), l =
|
|
5154
|
+
const { groupSelect: s, mode: n, groups: o, disabledProp: i } = Ee(t), l = Y(null), r = (u) => {
|
|
5155
5155
|
u === void 0 || u !== null && u[i.value] || o.value && u && u.group && (n.value === "single" || !s.value) || (l.value = u);
|
|
5156
5156
|
};
|
|
5157
5157
|
return {
|
|
@@ -5213,7 +5213,7 @@ function g7(t, e, a) {
|
|
|
5213
5213
|
disabledProp: b,
|
|
5214
5214
|
searchStart: V,
|
|
5215
5215
|
searchFilter: oe
|
|
5216
|
-
} = Ee(t), ne = Lt().proxy, Z = a.iv, H = a.ev,
|
|
5216
|
+
} = Ee(t), ne = Lt().proxy, Z = a.iv, H = a.ev, x = a.search, he = a.clearSearch, ke = a.update, Gt = a.pointer, Xt = a.setPointer, st = a.clearPointer, $a = a.focus, rs = a.deactivate, nt = a.close, ka = a.localize, it = Y([]), Ue = Y([]), Ie = Y(!1), Re = Y(null), Ye = Y(ee.value && i.value === -1 ? 10 : i.value), Qt = A(() => r.value || d.value || !1), Sa = A(() => c.value !== void 0 ? c.value : p.value !== void 0 ? p.value : !0), Le = A(() => {
|
|
5217
5217
|
if (le.value) {
|
|
5218
5218
|
let S = bt.value || /* istanbul ignore next */
|
|
5219
5219
|
[], B = [];
|
|
@@ -5273,10 +5273,10 @@ function g7(t, e, a) {
|
|
|
5273
5273
|
case "tags":
|
|
5274
5274
|
return !Fe(Z.value) && Z.value.length > 0;
|
|
5275
5275
|
}
|
|
5276
|
-
}), Ci = A(() => h !== void 0 && h.value !== void 0 ? h.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), _i = A(() => !Le.value.length && !Ie.value && !Pt.value.length), yi = A(() => Le.value.length > 0 && ot.value.length == 0 && (
|
|
5277
|
-
[L.value]:
|
|
5278
|
-
[wt.value[0]]:
|
|
5279
|
-
[u.value]:
|
|
5276
|
+
}), Ci = A(() => h !== void 0 && h.value !== void 0 ? h.value(Z.value, ne) : Z.value && Z.value.length > 1 ? `${Z.value.length} options selected` : "1 option selected"), _i = A(() => !Le.value.length && !Ie.value && !Pt.value.length), yi = A(() => Le.value.length > 0 && ot.value.length == 0 && (x.value && le.value || !le.value)), Pt = A(() => Qt.value === !1 || !x.value ? [] : Oi(x.value) !== -1 ? [] : [{
|
|
5277
|
+
[L.value]: x.value,
|
|
5278
|
+
[wt.value[0]]: x.value,
|
|
5279
|
+
[u.value]: x.value,
|
|
5280
5280
|
__CREATE__: !0
|
|
5281
5281
|
}]), wt = A(() => o.value ? Array.isArray(o.value) ? o.value : [o.value] : [u.value]), bi = A(() => {
|
|
5282
5282
|
switch (n.value) {
|
|
@@ -5390,15 +5390,15 @@ function g7(t, e, a) {
|
|
|
5390
5390
|
}, Mi = (S) => S.find((B) => !xe(B) && !B[b.value]) === void 0, Ti = (S) => S.find((B) => !xe(B)) === void 0, Ke = (S) => Le.value[Le.value.map((B) => String(B[L.value])).indexOf(String(S))], Oi = (S) => Le.value.findIndex((B) => wt.value.some((ue) => (parseInt(B[ue]) == B[ue] ? parseInt(B[ue]) : B[ue]) === (parseInt(S) == S ? parseInt(S) : S))), Ei = (S) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && xe(S), Ii = (S) => {
|
|
5391
5391
|
it.value.push(S);
|
|
5392
5392
|
}, Li = (S) => T.value ? S.filter(
|
|
5393
|
-
(B) =>
|
|
5394
|
-
) : S.filter((B) =>
|
|
5393
|
+
(B) => x.value ? B.__VISIBLE__.length : B[E.value].length
|
|
5394
|
+
) : S.filter((B) => x.value ? B.__VISIBLE__.length : !0), fs = (S, B = !0) => {
|
|
5395
5395
|
let ue = S;
|
|
5396
|
-
if (
|
|
5396
|
+
if (x.value && _.value) {
|
|
5397
5397
|
let ge = oe.value;
|
|
5398
5398
|
ge || (ge = ($t, cn, X4) => wt.value.some((Hi) => {
|
|
5399
5399
|
let dn = ys(ka($t[Hi]), ae.value);
|
|
5400
5400
|
return V.value ? dn.startsWith(ys(cn, ae.value)) : dn.indexOf(ys(cn, ae.value)) !== -1;
|
|
5401
|
-
})), ue = ue.filter(($t) => ge($t,
|
|
5401
|
+
})), ue = ue.filter(($t) => ge($t, x.value, ne));
|
|
5402
5402
|
}
|
|
5403
5403
|
return l.value && B && (ue = ue.filter((ge) => !Ei(ge))), ue;
|
|
5404
5404
|
}, hs = (S) => {
|
|
@@ -5410,7 +5410,7 @@ function g7(t, e, a) {
|
|
|
5410
5410
|
}, Ma = () => {
|
|
5411
5411
|
Fe(H.value) || (Z.value = Oa(H.value));
|
|
5412
5412
|
}, Ta = (S) => (Ie.value = !0, new Promise((B, ue) => {
|
|
5413
|
-
s.value(
|
|
5413
|
+
s.value(x.value, ne).then((ge) => {
|
|
5414
5414
|
Ue.value = ge || [], typeof S == "function" && S(ge), Ie.value = !1;
|
|
5415
5415
|
}).catch((ge) => {
|
|
5416
5416
|
console.error(ge), Ue.value = [], Ie.value = !1;
|
|
@@ -5444,10 +5444,10 @@ function g7(t, e, a) {
|
|
|
5444
5444
|
[L.value]: B,
|
|
5445
5445
|
[wt.value[0]]: B
|
|
5446
5446
|
}), un = () => {
|
|
5447
|
-
Re.value = ce(
|
|
5447
|
+
Re.value = ce(x, (S) => {
|
|
5448
5448
|
S.length < m.value || !S && m.value !== 0 || (Ie.value = !0, P.value && (Ue.value = []), setTimeout(() => {
|
|
5449
|
-
S ==
|
|
5450
|
-
(S ==
|
|
5449
|
+
S == x.value && s.value(x.value, ne).then((B) => {
|
|
5450
|
+
(S == x.value || !x.value) && (Ue.value = B, Gt.value = ot.value.filter((ue) => ue[b.value] !== !0)[0] || null, Ie.value = !1);
|
|
5451
5451
|
}).catch(
|
|
5452
5452
|
/* istanbul ignore next */
|
|
5453
5453
|
(B) => {
|
|
@@ -5528,18 +5528,18 @@ function C7(t, e, a) {
|
|
|
5528
5528
|
const H = K.value ? $.value : (
|
|
5529
5529
|
/* istanbul ignore next */
|
|
5530
5530
|
ne($.value)
|
|
5531
|
-
),
|
|
5532
|
-
let he = F.value[
|
|
5531
|
+
), x = F.value.map((ke) => ke[i.value]).indexOf(H[i.value]);
|
|
5532
|
+
let he = F.value[x - 1];
|
|
5533
5533
|
return he === void 0 && (he = G.value), he;
|
|
5534
5534
|
}), j = A(() => {
|
|
5535
|
-
let H = F.value.map((
|
|
5535
|
+
let H = F.value.map((x) => x.label).indexOf(K.value ? $.value[i.value] : ne($.value)[i.value]) + 1;
|
|
5536
5536
|
return F.value.length <= H && (H = 0), F.value[H];
|
|
5537
5537
|
}), G = A(() => [...F.value].slice(-1)[0]), le = A(() => $.value.__VISIBLE__.filter((H) => !H[u.value])[0]), se = A(() => {
|
|
5538
|
-
const H = J.value.__VISIBLE__.filter((
|
|
5539
|
-
return H[H.map((
|
|
5538
|
+
const H = J.value.__VISIBLE__.filter((x) => !x[u.value]);
|
|
5539
|
+
return H[H.map((x) => x[s.value]).indexOf($.value[s.value]) - 1];
|
|
5540
5540
|
}), ee = A(() => {
|
|
5541
|
-
const H = ne($.value).__VISIBLE__.filter((
|
|
5542
|
-
return H[H.map((
|
|
5541
|
+
const H = ne($.value).__VISIBLE__.filter((x) => !x[u.value]);
|
|
5542
|
+
return H[H.map((x) => x[s.value]).indexOf($.value[s.value]) + 1];
|
|
5543
5543
|
}), E = A(() => [...ae.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), T = A(() => [...G.value.__VISIBLE__.filter((H) => !H[u.value])].slice(-1)[0]), k = (H) => $.value && (!H.group && $.value[s.value] === H[s.value] || H.group !== void 0 && $.value[i.value] === H[i.value]) ? !0 : void 0, R = () => {
|
|
5544
5544
|
m(L.value[0] || null);
|
|
5545
5545
|
}, b = () => {
|
|
@@ -5552,7 +5552,7 @@ function C7(t, e, a) {
|
|
|
5552
5552
|
H === void 0 && (H = j.value, H.__CREATE__ && (H = H[c.value][0])), m(H || /* istanbul ignore next */
|
|
5553
5553
|
null);
|
|
5554
5554
|
} else {
|
|
5555
|
-
let H = L.value.map((
|
|
5555
|
+
let H = L.value.map((x) => x[s.value]).indexOf($.value[s.value]) + 1;
|
|
5556
5556
|
L.value.length <= H && (H = 0), m(L.value[H] || null);
|
|
5557
5557
|
}
|
|
5558
5558
|
Me(() => {
|
|
@@ -5567,29 +5567,29 @@ function C7(t, e, a) {
|
|
|
5567
5567
|
H === void 0 && (H = K.value ? ae.value : J.value, H.__CREATE__ && (H = E.value, H === void 0 && (H = ae.value))), m(H || /* istanbul ignore next */
|
|
5568
5568
|
null);
|
|
5569
5569
|
} else {
|
|
5570
|
-
let H = L.value.map((
|
|
5570
|
+
let H = L.value.map((x) => x[s.value]).indexOf($.value[s.value]) - 1;
|
|
5571
5571
|
H < 0 && (H = L.value.length - 1), m(L.value[H] || null);
|
|
5572
5572
|
}
|
|
5573
5573
|
Me(() => {
|
|
5574
5574
|
Z();
|
|
5575
5575
|
});
|
|
5576
|
-
}, ne = (H) => F.value.find((
|
|
5576
|
+
}, ne = (H) => F.value.find((x) => x.__VISIBLE__.map((he) => he[s.value]).indexOf(H[s.value]) !== -1), Z = () => {
|
|
5577
5577
|
let H = P.value.querySelector("[data-pointed]");
|
|
5578
5578
|
if (!H)
|
|
5579
5579
|
return;
|
|
5580
|
-
let
|
|
5581
|
-
l.value && (
|
|
5580
|
+
let x = H.parentElement.parentElement;
|
|
5581
|
+
l.value && (x = K.value ? H.parentElement.parentElement.parentElement : H.parentElement.parentElement.parentElement.parentElement), H.offsetTop + H.offsetHeight > x.clientHeight + x.scrollTop && (x.scrollTop = H.offsetTop + H.offsetHeight - x.clientHeight), H.offsetTop < x.scrollTop && (x.scrollTop = H.offsetTop);
|
|
5582
5582
|
};
|
|
5583
5583
|
return ce(g, (H) => {
|
|
5584
5584
|
o.value && (H.length && n.value ? R() : _());
|
|
5585
5585
|
}), ce(I, (H) => {
|
|
5586
5586
|
if (H) {
|
|
5587
|
-
let
|
|
5588
|
-
if (!
|
|
5587
|
+
let x = P.value.querySelectorAll("[data-selected]")[0];
|
|
5588
|
+
if (!x)
|
|
5589
5589
|
return;
|
|
5590
|
-
let he =
|
|
5590
|
+
let he = x.parentElement.parentElement;
|
|
5591
5591
|
Me(() => {
|
|
5592
|
-
he.scrollTop > 0 || (he.scrollTop =
|
|
5592
|
+
he.scrollTop > 0 || (he.scrollTop = x.offsetTop);
|
|
5593
5593
|
});
|
|
5594
5594
|
}
|
|
5595
5595
|
}), {
|
|
@@ -6293,7 +6293,7 @@ function pp(t) {
|
|
|
6293
6293
|
var G, le = P === "y" ? Ne : Ge, se = P === "y" ? qe : ht, ee = P === "y" ? "height" : "width", E = L[P], T = E + g[le], k = E - g[se], R = h ? -z[ee] / 2 : 0, b = m === Yt ? F[ee] : z[ee], V = m === Yt ? -z[ee] : -F[ee], oe = e.elements.arrow, ne = h && oe ? ri(oe) : {
|
|
6294
6294
|
width: 0,
|
|
6295
6295
|
height: 0
|
|
6296
|
-
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vi(), H = Z[le],
|
|
6296
|
+
}, Z = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vi(), H = Z[le], x = Z[se], he = Va(0, F[ee], ne[ee]), ke = _ ? F[ee] / 2 - R - he - H - J.mainAxis : b - he - H - J.mainAxis, Gt = _ ? -F[ee] / 2 + R + he + x + J.mainAxis : V + he + x + J.mainAxis, Xt = e.elements.arrow && ns(e.elements.arrow), st = Xt ? P === "y" ? Xt.clientTop || 0 : Xt.clientLeft || 0 : 0, $a = (G = ae == null ? void 0 : ae[P]) != null ? G : 0, rs = E + ke - $a - st, nt = E + Gt - $a, ka = Va(h ? Wa(T, rs) : T, E, h ? At(k, nt) : k);
|
|
6297
6297
|
L[P] = ka, j[P] = ka - E;
|
|
6298
6298
|
}
|
|
6299
6299
|
if (l) {
|
|
@@ -6387,8 +6387,8 @@ function Cp(t) {
|
|
|
6387
6387
|
}
|
|
6388
6388
|
if (z)
|
|
6389
6389
|
for (var R = w ? 3 : 1, b = function(Z) {
|
|
6390
|
-
var H = P.find(function(
|
|
6391
|
-
var he = F.get(
|
|
6390
|
+
var H = P.find(function(x) {
|
|
6391
|
+
var he = F.get(x);
|
|
6392
6392
|
if (he)
|
|
6393
6393
|
return he.slice(0, Z).every(function(ke) {
|
|
6394
6394
|
return ke;
|
|
@@ -6415,7 +6415,7 @@ var _p = {
|
|
|
6415
6415
|
}
|
|
6416
6416
|
};
|
|
6417
6417
|
function yp(t, e, a) {
|
|
6418
|
-
const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, d = a.dropdown, u =
|
|
6418
|
+
const { disabled: s, appendTo: n, appendToBody: o, openDirection: i } = Ee(t), l = Lt().proxy, r = a.multiselect, d = a.dropdown, u = Y(!1), c = Y(null), p = Y(null), h = A(() => n.value || o.value), w = A(() => i.value === "top" && p.value === "bottom" || i.value === "bottom" && p.value !== "top" ? "bottom" : "top"), y = () => {
|
|
6419
6419
|
u.value || s.value || (u.value = !0, e.emit("open", l), h.value && Me(() => {
|
|
6420
6420
|
$();
|
|
6421
6421
|
}));
|
|
@@ -6489,7 +6489,7 @@ function yp(t, e, a) {
|
|
|
6489
6489
|
};
|
|
6490
6490
|
}
|
|
6491
6491
|
function bp(t, e, a) {
|
|
6492
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, d = a.clearSearch, u = a.isOpen, c = a.wrapper, p = a.tags, h =
|
|
6492
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = Ee(t), i = a.input, l = a.open, r = a.close, d = a.clearSearch, u = a.isOpen, c = a.wrapper, p = a.tags, h = Y(!1), w = Y(!1), y = A(() => s.value || n.value ? -1 : 0), g = () => {
|
|
6493
6493
|
s.value && i.value.blur(), c.value.blur();
|
|
6494
6494
|
}, $ = () => {
|
|
6495
6495
|
s.value && !n.value && i.value.focus();
|
|
@@ -6727,7 +6727,7 @@ function kp(t, e, a) {
|
|
|
6727
6727
|
const {
|
|
6728
6728
|
limit: s,
|
|
6729
6729
|
infinite: n
|
|
6730
|
-
} = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, d = a.eo, u =
|
|
6730
|
+
} = Ee(t), o = a.isOpen, i = a.offset, l = a.search, r = a.pfo, d = a.eo, u = Y(null), c = Y(null), p = A(() => i.value < r.value.length), h = (y) => {
|
|
6731
6731
|
const { isIntersecting: g, target: $ } = y[0];
|
|
6732
6732
|
if (g) {
|
|
6733
6733
|
const m = $.offsetParent, _ = m.scrollTop;
|
|
@@ -6761,7 +6761,7 @@ function Sp(t, e, a) {
|
|
|
6761
6761
|
groupLabel: r,
|
|
6762
6762
|
aria: d,
|
|
6763
6763
|
searchable: u
|
|
6764
|
-
} = Ee(t), c = a.pointer, p = a.iv, h = a.hasSelected, w = a.multipleLabelText, y =
|
|
6764
|
+
} = Ee(t), c = a.pointer, p = a.iv, h = a.hasSelected, w = a.multipleLabelText, y = Y(null), g = A(() => {
|
|
6765
6765
|
let j = [];
|
|
6766
6766
|
return n && n.value && j.push(n.value), j.push("assist"), j.join("-");
|
|
6767
6767
|
}), $ = A(() => {
|
|
@@ -6820,7 +6820,7 @@ function Ap(t, e, a) {
|
|
|
6820
6820
|
};
|
|
6821
6821
|
}
|
|
6822
6822
|
function Mp(t, e, a) {
|
|
6823
|
-
const s =
|
|
6823
|
+
const s = Y(null), n = Y(null), o = Y(null), i = Y(null), l = Y(null);
|
|
6824
6824
|
return {
|
|
6825
6825
|
multiselect: s,
|
|
6826
6826
|
wrapper: n,
|
|
@@ -7702,7 +7702,7 @@ const Se = /* @__PURE__ */ q({
|
|
|
7702
7702
|
appendTo: {}
|
|
7703
7703
|
},
|
|
7704
7704
|
setup(t) {
|
|
7705
|
-
const e = t, a = Rt(() => e.appendTo), s =
|
|
7705
|
+
const e = t, a = Rt(() => e.appendTo), s = Y();
|
|
7706
7706
|
return e.detached && c7({
|
|
7707
7707
|
multiselect: s,
|
|
7708
7708
|
appendTo: a.value
|
|
@@ -7929,7 +7929,7 @@ const sv = ["onDrop", "onDragenter", "onDragover", "onDragleave"], nv = { class:
|
|
|
7929
7929
|
);
|
|
7930
7930
|
});
|
|
7931
7931
|
});
|
|
7932
|
-
const i =
|
|
7932
|
+
const i = Y(!1);
|
|
7933
7933
|
function l() {
|
|
7934
7934
|
a.isEditable && (i.value = !0);
|
|
7935
7935
|
}
|
|
@@ -8034,14 +8034,14 @@ const hv = { class: "ao-comment" }, mv = { class: "ao-comment__created-at" }, gv
|
|
|
8034
8034
|
const a = t, s = A(() => {
|
|
8035
8035
|
const y = a.user;
|
|
8036
8036
|
return y ? `${y == null ? void 0 : y.firstName} ${y == null ? void 0 : y.lastName}` : null;
|
|
8037
|
-
}), n =
|
|
8037
|
+
}), n = Y(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = Hn(n), d = A(() => {
|
|
8038
8038
|
const y = a.editedAt && ca(a.editedAt), g = ca(a.createdAt), $ = /* @__PURE__ */ new Date(), m = y ?? g;
|
|
8039
8039
|
return m && d3(m, $);
|
|
8040
8040
|
}), u = A(() => o.value ? "textarea" : "p"), c = r(), p = l((y) => {
|
|
8041
8041
|
e("edit", y);
|
|
8042
8042
|
}), h = () => {
|
|
8043
8043
|
e("remove");
|
|
8044
|
-
}, w =
|
|
8044
|
+
}, w = Y(2);
|
|
8045
8045
|
return Ni(() => {
|
|
8046
8046
|
Me(() => {
|
|
8047
8047
|
var y;
|
|
@@ -8133,7 +8133,7 @@ const bv = { class: "ao-comments__header" }, wv = ["onSubmit"], $v = ["placehold
|
|
|
8133
8133
|
setup(t, { emit: e }) {
|
|
8134
8134
|
const a = t, s = A(() => (a.comments || []).toSorted(
|
|
8135
8135
|
(p, h) => t0(ca(p.createdAt), ca(h.createdAt))
|
|
8136
|
-
)), n = (c) => a.users.find((h) => h.id === c), o =
|
|
8136
|
+
)), n = (c) => a.users.find((h) => h.id === c), o = Y();
|
|
8137
8137
|
Me(() => {
|
|
8138
8138
|
o.value && (o.value.scrollTop = o.value.scrollHeight);
|
|
8139
8139
|
});
|
|
@@ -8666,13 +8666,13 @@ const As = /* @__PURE__ */ q({
|
|
|
8666
8666
|
}, {
|
|
8667
8667
|
tag: N(({
|
|
8668
8668
|
option: H,
|
|
8669
|
-
handleTagRemove:
|
|
8669
|
+
handleTagRemove: x
|
|
8670
8670
|
}) => [
|
|
8671
8671
|
M(Je, {
|
|
8672
8672
|
"user-name": H.label,
|
|
8673
8673
|
"avatar-url": H.avatar,
|
|
8674
8674
|
"is-closable": !0,
|
|
8675
|
-
onClose: (he) =>
|
|
8675
|
+
onClose: (he) => x(H, he)
|
|
8676
8676
|
}, null, 8, ["user-name", "avatar-url", "onClose"])
|
|
8677
8677
|
]),
|
|
8678
8678
|
_: 1
|
|
@@ -9005,7 +9005,7 @@ const Lf = {
|
|
|
9005
9005
|
var E;
|
|
9006
9006
|
return (E = a.templates) == null ? void 0 : E.find((T) => T.id === a.templateId);
|
|
9007
9007
|
}
|
|
9008
|
-
), o =
|
|
9008
|
+
), o = Y(!1);
|
|
9009
9009
|
ce(
|
|
9010
9010
|
() => [a.templateId, a.phaseId, a.milestoneId],
|
|
9011
9011
|
() => o.value = !1
|
|
@@ -9178,7 +9178,7 @@ const Lf = {
|
|
|
9178
9178
|
templateId: a.templateId,
|
|
9179
9179
|
data: k
|
|
9180
9180
|
});
|
|
9181
|
-
}, F =
|
|
9181
|
+
}, F = Y(!1), z = () => {
|
|
9182
9182
|
F.value = !F.value;
|
|
9183
9183
|
}, K = () => {
|
|
9184
9184
|
e("addRule", { templateId: a.templateId });
|
|
@@ -9272,11 +9272,11 @@ const Lf = {
|
|
|
9272
9272
|
milestones: Z.milestones,
|
|
9273
9273
|
"is-active": ((H = i.value) == null ? void 0 : H.id) === Z.id,
|
|
9274
9274
|
"is-draggable": !0,
|
|
9275
|
-
onClick: (
|
|
9275
|
+
onClick: (x) => E.$router.push({
|
|
9276
9276
|
params: { templateId: E.templateId, phaseId: Z.id }
|
|
9277
9277
|
}),
|
|
9278
|
-
"onUpdate:title": (
|
|
9279
|
-
y(Z.id,
|
|
9278
|
+
"onUpdate:title": (x) => {
|
|
9279
|
+
y(Z.id, x);
|
|
9280
9280
|
},
|
|
9281
9281
|
onRemove: () => w(Z.id)
|
|
9282
9282
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
@@ -10004,7 +10004,7 @@ var tn = q({
|
|
|
10004
10004
|
},
|
|
10005
10005
|
emits: ["selectColor"],
|
|
10006
10006
|
setup(t, { emit: e }) {
|
|
10007
|
-
const a =
|
|
10007
|
+
const a = Y(), s = Y([]), n = Y();
|
|
10008
10008
|
t.colorsHistoryKey && localStorage && (s.value = JSON.parse(localStorage.getItem(t.colorsHistoryKey)) || []), n.value = xs(4).toDataURL(), Os(() => {
|
|
10009
10009
|
o(a.value);
|
|
10010
10010
|
});
|
|
@@ -10373,36 +10373,38 @@ const ph = { class: "color-picker-wrapper" }, an = /* @__PURE__ */ q({
|
|
|
10373
10373
|
},
|
|
10374
10374
|
emits: ["update:color"],
|
|
10375
10375
|
setup(t, { emit: e }) {
|
|
10376
|
-
const a =
|
|
10377
|
-
|
|
10378
|
-
window.addEventListener("click",
|
|
10376
|
+
const a = t, s = Y(!1), n = Y(null), o = async () => {
|
|
10377
|
+
s.value = !0, await Me(), setTimeout(() => {
|
|
10378
|
+
window.addEventListener("click", i);
|
|
10379
10379
|
}, 0);
|
|
10380
|
-
},
|
|
10381
|
-
const
|
|
10382
|
-
|
|
10380
|
+
}, i = (d) => {
|
|
10381
|
+
const u = d.target;
|
|
10382
|
+
n.value && !n.value.contains(u) && (s.value = !1, e("update:color", l.value), window.removeEventListener("click", i));
|
|
10383
10383
|
};
|
|
10384
10384
|
Ts(() => {
|
|
10385
|
-
window.removeEventListener("click",
|
|
10385
|
+
window.removeEventListener("click", i);
|
|
10386
|
+
}), ce(() => a.color, (d) => {
|
|
10387
|
+
s.value || (l.value = d);
|
|
10386
10388
|
});
|
|
10387
|
-
const
|
|
10388
|
-
const { r, g:
|
|
10389
|
-
|
|
10389
|
+
const l = Y(a.color), r = (d) => {
|
|
10390
|
+
const { r: u, g: c, b: p, a: h } = d.rgba;
|
|
10391
|
+
l.value = `rgba(${u}, ${c}, ${p}, ${h})`;
|
|
10390
10392
|
};
|
|
10391
|
-
return (
|
|
10392
|
-
te(
|
|
10393
|
-
openPicker:
|
|
10394
|
-
bgColor:
|
|
10393
|
+
return (d, u) => (v(), C("div", ph, [
|
|
10394
|
+
te(d.$slots, "clickable", {
|
|
10395
|
+
openPicker: o,
|
|
10396
|
+
bgColor: d.color
|
|
10395
10397
|
}),
|
|
10396
|
-
|
|
10398
|
+
s.value ? (v(), C("div", {
|
|
10397
10399
|
key: 0,
|
|
10398
10400
|
ref_key: "pickerRef",
|
|
10399
|
-
ref:
|
|
10401
|
+
ref: n
|
|
10400
10402
|
}, [
|
|
10401
10403
|
M(Q(Ut), {
|
|
10402
10404
|
class: "color-picker",
|
|
10403
10405
|
theme: "light",
|
|
10404
|
-
color:
|
|
10405
|
-
onChangeColor:
|
|
10406
|
+
color: d.color,
|
|
10407
|
+
onChangeColor: r
|
|
10406
10408
|
}, null, 8, ["color"])
|
|
10407
10409
|
], 512)) : O("", !0)
|
|
10408
10410
|
]));
|
|
@@ -11123,7 +11125,7 @@ const l9 = ["onSubmit"], r9 = { class: "ao-add-template-modal__form-body" }, u9
|
|
|
11123
11125
|
const a = t, s = A(() => a.templates.map((l) => ({
|
|
11124
11126
|
value: l.id,
|
|
11125
11127
|
label: l.name
|
|
11126
|
-
}))), n =
|
|
11128
|
+
}))), n = Y(null), o = (l) => {
|
|
11127
11129
|
n.value = l;
|
|
11128
11130
|
}, i = () => {
|
|
11129
11131
|
n.value && e("apply", n.value, a.projectId);
|
|
@@ -11173,7 +11175,7 @@ const d9 = ["onSubmit"], p9 = { class: "ao-save-template-modal__form-body" }, v9
|
|
|
11173
11175
|
},
|
|
11174
11176
|
emits: ["save"],
|
|
11175
11177
|
setup(t, { emit: e }) {
|
|
11176
|
-
const a = t, s =
|
|
11178
|
+
const a = t, s = Y(""), n = Y([]);
|
|
11177
11179
|
It(() => {
|
|
11178
11180
|
n.value = a.phases.map((i) => i.id);
|
|
11179
11181
|
});
|
|
@@ -11332,13 +11334,13 @@ const sn = /* @__PURE__ */ U(b9, [["render", k9], ["__scopeId", "data-v-ff4e3297
|
|
|
11332
11334
|
e("updateComment", T);
|
|
11333
11335
|
}, J = (T) => {
|
|
11334
11336
|
e("removeComment", T);
|
|
11335
|
-
}, ae =
|
|
11337
|
+
}, ae = Y(!1), j = Y(!1), G = (T, k) => {
|
|
11336
11338
|
e("applyTemplate", { templateId: T, projectId: k }), ae.value = !1;
|
|
11337
11339
|
}, le = (T, k) => {
|
|
11338
11340
|
var V;
|
|
11339
11341
|
const R = (V = a.templates) == null ? void 0 : V.at(-1), b = R ? we.LexoRank.parse(R.rank).genNext() : we.LexoRank.middle();
|
|
11340
11342
|
e("saveTemplate", { templateName: T, rank: b.format(), phaseIds: k }), j.value = !1;
|
|
11341
|
-
}, se = Es(), ee =
|
|
11343
|
+
}, se = Es(), ee = Y("overview"), E = [
|
|
11342
11344
|
{ label: "Overview", value: "overview" },
|
|
11343
11345
|
{ label: "Feed", value: "feed" },
|
|
11344
11346
|
{ label: "Mapping", value: "mapping" }
|
|
@@ -12100,7 +12102,7 @@ function bs(t) {
|
|
|
12100
12102
|
}
|
|
12101
12103
|
const C4 = v4 ? window : void 0;
|
|
12102
12104
|
function _4() {
|
|
12103
|
-
const t =
|
|
12105
|
+
const t = Y(!1), e = Lt();
|
|
12104
12106
|
return e && It(() => {
|
|
12105
12107
|
t.value = !0;
|
|
12106
12108
|
}, e), t;
|
|
@@ -12121,7 +12123,7 @@ function b4(t, e, a = {}) {
|
|
|
12121
12123
|
return (Array.isArray(w) ? w : [w]).map(bs).filter(f4);
|
|
12122
12124
|
});
|
|
12123
12125
|
let u = la;
|
|
12124
|
-
const c =
|
|
12126
|
+
const c = Y(l), p = r.value ? ce(
|
|
12125
12127
|
() => [d.value, bs(s), c.value],
|
|
12126
12128
|
([w, y]) => {
|
|
12127
12129
|
if (u(), !c.value || !w.length)
|
|
@@ -12188,7 +12190,7 @@ const w4 = {
|
|
|
12188
12190
|
},
|
|
12189
12191
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "unarchiveActivity", "updateActivity"],
|
|
12190
12192
|
setup(t, { emit: e }) {
|
|
12191
|
-
const a = t, s =
|
|
12193
|
+
const a = t, s = Y(!1), n = Y(null);
|
|
12192
12194
|
b4(n, ([{ isIntersecting: u }]) => {
|
|
12193
12195
|
s.value = u;
|
|
12194
12196
|
}), ce(s, (u) => {
|
|
@@ -12213,7 +12215,7 @@ const w4 = {
|
|
|
12213
12215
|
u.moved.newIndex
|
|
12214
12216
|
)
|
|
12215
12217
|
});
|
|
12216
|
-
}, d =
|
|
12218
|
+
}, d = Y(!1);
|
|
12217
12219
|
return (u, c) => (v(), C("div", w4, [
|
|
12218
12220
|
u.title || u.$slots.header ? te(u.$slots, "header", { key: 0 }, () => {
|
|
12219
12221
|
var p;
|
|
@@ -12401,7 +12403,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12401
12403
|
}
|
|
12402
12404
|
const o = Rt(a, "activities"), i = async (k, R) => {
|
|
12403
12405
|
await e("selectActivity", k, R);
|
|
12404
|
-
}, l =
|
|
12406
|
+
}, l = Y({}), r = Y(!1), d = Y(!1), u = A(() => a.project ? "milestone" : "project");
|
|
12405
12407
|
ce(
|
|
12406
12408
|
[() => a.statuses, () => a.activities, () => a.initialActivityId, () => a.initialActivitySlug],
|
|
12407
12409
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -12410,8 +12412,8 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12410
12412
|
k.map((Z) => [
|
|
12411
12413
|
Z.id,
|
|
12412
12414
|
R.filter((H) => {
|
|
12413
|
-
var
|
|
12414
|
-
return ((
|
|
12415
|
+
var x;
|
|
12416
|
+
return ((x = H.status) == null ? void 0 : x.id) === Z.id;
|
|
12415
12417
|
})
|
|
12416
12418
|
])
|
|
12417
12419
|
), b && !r.value ? (i(b, null), r.value = !0) : V && !r.value && (i(null, V), r.value = !0), d.value && Xe(R, ne);
|
|
@@ -12479,7 +12481,7 @@ const P4 = { class: "ao-feed" }, H4 = { class: "ao-feed__filters" }, V4 = { clas
|
|
|
12479
12481
|
}, se = (k) => {
|
|
12480
12482
|
const { id: R } = a.selectedActivity || {};
|
|
12481
12483
|
R && e("removeComment", k);
|
|
12482
|
-
}, ee = Es(), E =
|
|
12484
|
+
}, ee = Es(), E = Y("feed"), T = [
|
|
12483
12485
|
{ label: "Overview", value: "overview" },
|
|
12484
12486
|
{ label: "Feed", value: "feed" },
|
|
12485
12487
|
{ label: "Mapping", value: "mapping" }
|
|
@@ -12677,13 +12679,13 @@ const B4 = { class: "ao-project-mapping" }, j4 = { class: "ao-project-mapping-ma
|
|
|
12677
12679
|
e("unarchivePhase", g);
|
|
12678
12680
|
}, r = (g) => {
|
|
12679
12681
|
e("copyPhaseToTemplate", g);
|
|
12680
|
-
}, d =
|
|
12682
|
+
}, d = Y(!1), u = Y(!1), c = (g, $) => {
|
|
12681
12683
|
e("applyTemplate", { templateId: g, projectId: $ }), d.value = !1;
|
|
12682
12684
|
}, p = (g, $) => {
|
|
12683
12685
|
var P;
|
|
12684
12686
|
const m = (P = a.templates) == null ? void 0 : P.at(-1), _ = m ? we.LexoRank.parse(m.rank).genNext() : we.LexoRank.middle();
|
|
12685
12687
|
e("saveTemplate", { templateName: g, rank: _.format(), phaseIds: $ }), u.value = !1;
|
|
12686
|
-
}, h = Es(), w =
|
|
12688
|
+
}, h = Es(), w = Y("mapping"), y = [
|
|
12687
12689
|
{ label: "Overview", value: "overview" },
|
|
12688
12690
|
{ label: "Feed", value: "feed" },
|
|
12689
12691
|
{ label: "Mapping", value: "mapping" }
|