@26lights/orcha 0.7.17 → 0.7.18
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 +719 -721
- package/dist/orcha.umd.js +1 -1
- package/dist/src/types/index.d.ts +6 -6
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, openBlock as
|
|
1
|
+
import { defineComponent as K, openBlock as d, createBlock as q, unref as j, mergeProps as De, createElementBlock as h, createElementVNode as r, pushScopeId as Ut, popScopeId as qt, createStaticVNode as Ft, computed as f, resolveDynamicComponent as Ke, normalizeClass as G, renderSlot as x, toDisplayString as U, createCommentVNode as S, ref as J, watch as _e, nextTick as Be, withKeys as a1, toHandlers as zt, withCtx as F, createTextVNode as N1, createVNode as y, Fragment as oe, renderList as me, withModifiers as Le, toRefs as we, getCurrentInstance as Pe, onMounted as _1, onUnmounted as Gt, withDirectives as Fe, vModelText as n1, vModelCheckbox as Kt, toRef as m1, Teleport as v1, normalizeStyle as xt, resolveComponent as Wt, toValue as ze, getCurrentScope as Yt, onScopeDispose as Xt } from "vue";
|
|
2
2
|
import { RouterView as Qt } from "vue-router";
|
|
3
3
|
import i1 from "vuedraggable";
|
|
4
4
|
const Rc = /* @__PURE__ */ K({
|
|
@@ -7,7 +7,7 @@ const Rc = /* @__PURE__ */ K({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
return (e, t) => (
|
|
10
|
+
return (e, t) => (d(), q(j(Qt), De({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), H = (s, e) => {
|
|
13
13
|
const t = s.__vccOpts || s;
|
|
@@ -27,7 +27,7 @@ const Rc = /* @__PURE__ */ K({
|
|
|
27
27
|
ts
|
|
28
28
|
];
|
|
29
29
|
function as(s, e) {
|
|
30
|
-
return
|
|
30
|
+
return d(), h("svg", es, ss);
|
|
31
31
|
}
|
|
32
32
|
const ns = /* @__PURE__ */ H(Jt, [["render", as]]), is = {}, os = {
|
|
33
33
|
width: "24",
|
|
@@ -42,7 +42,7 @@ const ns = /* @__PURE__ */ H(Jt, [["render", as]]), is = {}, os = {
|
|
|
42
42
|
ls
|
|
43
43
|
];
|
|
44
44
|
function cs(s, e) {
|
|
45
|
-
return
|
|
45
|
+
return d(), h("svg", os, rs);
|
|
46
46
|
}
|
|
47
47
|
const ds = /* @__PURE__ */ H(is, [["render", cs]]), us = {}, ps = {
|
|
48
48
|
width: "24",
|
|
@@ -57,7 +57,7 @@ const ds = /* @__PURE__ */ H(is, [["render", cs]]), us = {}, ps = {
|
|
|
57
57
|
hs
|
|
58
58
|
];
|
|
59
59
|
function vs(s, e) {
|
|
60
|
-
return
|
|
60
|
+
return d(), h("svg", ps, ms);
|
|
61
61
|
}
|
|
62
62
|
const Cs = /* @__PURE__ */ H(us, [["render", vs]]), _s = {}, fs = {
|
|
63
63
|
width: "24",
|
|
@@ -72,7 +72,7 @@ const Cs = /* @__PURE__ */ H(us, [["render", vs]]), _s = {}, fs = {
|
|
|
72
72
|
gs
|
|
73
73
|
];
|
|
74
74
|
function bs(s, e) {
|
|
75
|
-
return
|
|
75
|
+
return d(), h("svg", fs, ys);
|
|
76
76
|
}
|
|
77
77
|
const ws = /* @__PURE__ */ H(_s, [["render", bs]]), $s = {}, Is = {
|
|
78
78
|
width: "24",
|
|
@@ -87,7 +87,7 @@ const ws = /* @__PURE__ */ H(_s, [["render", bs]]), $s = {}, Is = {
|
|
|
87
87
|
Ms
|
|
88
88
|
];
|
|
89
89
|
function Ss(s, e) {
|
|
90
|
-
return
|
|
90
|
+
return d(), h("svg", Is, As);
|
|
91
91
|
}
|
|
92
92
|
const ks = /* @__PURE__ */ H($s, [["render", Ss]]), Ls = {}, Ts = {
|
|
93
93
|
width: "24",
|
|
@@ -102,7 +102,7 @@ const ks = /* @__PURE__ */ H($s, [["render", Ss]]), Ls = {}, Ts = {
|
|
|
102
102
|
Vs
|
|
103
103
|
];
|
|
104
104
|
function Hs(s, e) {
|
|
105
|
-
return
|
|
105
|
+
return d(), h("svg", Ts, Es);
|
|
106
106
|
}
|
|
107
107
|
const Os = /* @__PURE__ */ H(Ls, [["render", Hs]]), Ds = {}, Bs = {
|
|
108
108
|
width: "24",
|
|
@@ -117,7 +117,7 @@ const Os = /* @__PURE__ */ H(Ls, [["render", Hs]]), Ds = {}, Bs = {
|
|
|
117
117
|
Ps
|
|
118
118
|
];
|
|
119
119
|
function Zs(s, e) {
|
|
120
|
-
return
|
|
120
|
+
return d(), h("svg", Bs, js);
|
|
121
121
|
}
|
|
122
122
|
const Ns = /* @__PURE__ */ H(Ds, [["render", Zs]]), Rs = {}, Us = {
|
|
123
123
|
width: "24",
|
|
@@ -132,7 +132,7 @@ const Ns = /* @__PURE__ */ H(Ds, [["render", Zs]]), Rs = {}, Us = {
|
|
|
132
132
|
qs
|
|
133
133
|
];
|
|
134
134
|
function zs(s, e) {
|
|
135
|
-
return
|
|
135
|
+
return d(), h("svg", Us, Fs);
|
|
136
136
|
}
|
|
137
137
|
const Gs = /* @__PURE__ */ H(Rs, [["render", zs]]), Ks = {}, xs = {
|
|
138
138
|
width: "24",
|
|
@@ -147,7 +147,7 @@ const Gs = /* @__PURE__ */ H(Rs, [["render", zs]]), Ks = {}, xs = {
|
|
|
147
147
|
Ws
|
|
148
148
|
];
|
|
149
149
|
function Xs(s, e) {
|
|
150
|
-
return
|
|
150
|
+
return d(), h("svg", xs, Ys);
|
|
151
151
|
}
|
|
152
152
|
const Qs = /* @__PURE__ */ H(Ks, [["render", Xs]]), Js = {}, ea = {
|
|
153
153
|
width: "24",
|
|
@@ -162,7 +162,7 @@ const Qs = /* @__PURE__ */ H(Ks, [["render", Xs]]), Js = {}, ea = {
|
|
|
162
162
|
ta
|
|
163
163
|
];
|
|
164
164
|
function aa(s, e) {
|
|
165
|
-
return
|
|
165
|
+
return d(), h("svg", ea, sa);
|
|
166
166
|
}
|
|
167
167
|
const na = /* @__PURE__ */ H(Js, [["render", aa]]), ia = {}, oa = {
|
|
168
168
|
width: "24",
|
|
@@ -177,7 +177,7 @@ const na = /* @__PURE__ */ H(Js, [["render", aa]]), ia = {}, oa = {
|
|
|
177
177
|
la
|
|
178
178
|
];
|
|
179
179
|
function ca(s, e) {
|
|
180
|
-
return
|
|
180
|
+
return d(), h("svg", oa, ra);
|
|
181
181
|
}
|
|
182
182
|
const da = /* @__PURE__ */ H(ia, [["render", ca]]), ua = {}, pa = {
|
|
183
183
|
width: "24",
|
|
@@ -192,7 +192,7 @@ const da = /* @__PURE__ */ H(ia, [["render", ca]]), ua = {}, pa = {
|
|
|
192
192
|
ha
|
|
193
193
|
];
|
|
194
194
|
function va(s, e) {
|
|
195
|
-
return
|
|
195
|
+
return d(), h("svg", pa, ma);
|
|
196
196
|
}
|
|
197
197
|
const Ca = /* @__PURE__ */ H(ua, [["render", va]]), _a = {}, fa = {
|
|
198
198
|
width: "24",
|
|
@@ -207,7 +207,7 @@ const Ca = /* @__PURE__ */ H(ua, [["render", va]]), _a = {}, fa = {
|
|
|
207
207
|
ga
|
|
208
208
|
];
|
|
209
209
|
function ba(s, e) {
|
|
210
|
-
return
|
|
210
|
+
return d(), h("svg", fa, ya);
|
|
211
211
|
}
|
|
212
212
|
const wa = /* @__PURE__ */ H(_a, [["render", ba]]), $a = {}, Ia = {
|
|
213
213
|
width: "24",
|
|
@@ -222,7 +222,7 @@ const wa = /* @__PURE__ */ H(_a, [["render", ba]]), $a = {}, Ia = {
|
|
|
222
222
|
Ma
|
|
223
223
|
];
|
|
224
224
|
function Sa(s, e) {
|
|
225
|
-
return
|
|
225
|
+
return d(), h("svg", Ia, Aa);
|
|
226
226
|
}
|
|
227
227
|
const ka = /* @__PURE__ */ H($a, [["render", Sa]]), La = {}, Ta = {
|
|
228
228
|
width: "24",
|
|
@@ -237,7 +237,7 @@ const ka = /* @__PURE__ */ H($a, [["render", Sa]]), La = {}, Ta = {
|
|
|
237
237
|
Va
|
|
238
238
|
];
|
|
239
239
|
function Ha(s, e) {
|
|
240
|
-
return
|
|
240
|
+
return d(), h("svg", Ta, Ea);
|
|
241
241
|
}
|
|
242
242
|
const Oa = /* @__PURE__ */ H(La, [["render", Ha]]), Da = {}, Ba = {
|
|
243
243
|
width: "24",
|
|
@@ -252,7 +252,7 @@ const Oa = /* @__PURE__ */ H(La, [["render", Ha]]), Da = {}, Ba = {
|
|
|
252
252
|
Pa
|
|
253
253
|
];
|
|
254
254
|
function Za(s, e) {
|
|
255
|
-
return
|
|
255
|
+
return d(), h("svg", Ba, ja);
|
|
256
256
|
}
|
|
257
257
|
const Na = /* @__PURE__ */ H(Da, [["render", Za]]), Ra = {}, Ua = {
|
|
258
258
|
width: "24",
|
|
@@ -267,7 +267,7 @@ const Na = /* @__PURE__ */ H(Da, [["render", Za]]), Ra = {}, Ua = {
|
|
|
267
267
|
qa
|
|
268
268
|
];
|
|
269
269
|
function za(s, e) {
|
|
270
|
-
return
|
|
270
|
+
return d(), h("svg", Ua, Fa);
|
|
271
271
|
}
|
|
272
272
|
const Ga = /* @__PURE__ */ H(Ra, [["render", za]]), Ka = {}, xa = {
|
|
273
273
|
width: "24",
|
|
@@ -282,7 +282,7 @@ const Ga = /* @__PURE__ */ H(Ra, [["render", za]]), Ka = {}, xa = {
|
|
|
282
282
|
Wa
|
|
283
283
|
];
|
|
284
284
|
function Xa(s, e) {
|
|
285
|
-
return
|
|
285
|
+
return d(), h("svg", xa, Ya);
|
|
286
286
|
}
|
|
287
287
|
const Qa = /* @__PURE__ */ H(Ka, [["render", Xa]]), Ja = {}, en = {
|
|
288
288
|
width: "24",
|
|
@@ -297,7 +297,7 @@ const Qa = /* @__PURE__ */ H(Ka, [["render", Xa]]), Ja = {}, en = {
|
|
|
297
297
|
tn
|
|
298
298
|
];
|
|
299
299
|
function an(s, e) {
|
|
300
|
-
return
|
|
300
|
+
return d(), h("svg", en, sn);
|
|
301
301
|
}
|
|
302
302
|
const nn = /* @__PURE__ */ H(Ja, [["render", an]]), on = {}, ln = {
|
|
303
303
|
width: "24",
|
|
@@ -312,7 +312,7 @@ const nn = /* @__PURE__ */ H(Ja, [["render", an]]), on = {}, ln = {
|
|
|
312
312
|
rn
|
|
313
313
|
];
|
|
314
314
|
function dn(s, e) {
|
|
315
|
-
return
|
|
315
|
+
return d(), h("svg", ln, cn);
|
|
316
316
|
}
|
|
317
317
|
const un = /* @__PURE__ */ H(on, [["render", dn]]), pn = {}, hn = {
|
|
318
318
|
width: "24",
|
|
@@ -327,7 +327,7 @@ const un = /* @__PURE__ */ H(on, [["render", dn]]), pn = {}, hn = {
|
|
|
327
327
|
mn
|
|
328
328
|
];
|
|
329
329
|
function Cn(s, e) {
|
|
330
|
-
return
|
|
330
|
+
return d(), h("svg", hn, vn);
|
|
331
331
|
}
|
|
332
332
|
const _n = /* @__PURE__ */ H(pn, [["render", Cn]]), fn = {}, gn = {
|
|
333
333
|
width: "24",
|
|
@@ -342,7 +342,7 @@ const _n = /* @__PURE__ */ H(pn, [["render", Cn]]), fn = {}, gn = {
|
|
|
342
342
|
yn
|
|
343
343
|
];
|
|
344
344
|
function wn(s, e) {
|
|
345
|
-
return
|
|
345
|
+
return d(), h("svg", gn, bn);
|
|
346
346
|
}
|
|
347
347
|
const $n = /* @__PURE__ */ H(fn, [["render", wn]]), In = {}, Mn = {
|
|
348
348
|
width: "24",
|
|
@@ -357,7 +357,7 @@ const $n = /* @__PURE__ */ H(fn, [["render", wn]]), In = {}, Mn = {
|
|
|
357
357
|
An
|
|
358
358
|
];
|
|
359
359
|
function kn(s, e) {
|
|
360
|
-
return
|
|
360
|
+
return d(), h("svg", Mn, Sn);
|
|
361
361
|
}
|
|
362
362
|
const Ln = /* @__PURE__ */ H(In, [["render", kn]]), Tn = {}, Vn = {
|
|
363
363
|
width: "24",
|
|
@@ -372,7 +372,7 @@ const Ln = /* @__PURE__ */ H(In, [["render", kn]]), Tn = {}, Vn = {
|
|
|
372
372
|
En
|
|
373
373
|
];
|
|
374
374
|
function On(s, e) {
|
|
375
|
-
return
|
|
375
|
+
return d(), h("svg", Vn, Hn);
|
|
376
376
|
}
|
|
377
377
|
const Dn = /* @__PURE__ */ H(Tn, [["render", On]]), Bn = {}, Pn = {
|
|
378
378
|
width: "24",
|
|
@@ -387,7 +387,7 @@ const Dn = /* @__PURE__ */ H(Tn, [["render", On]]), Bn = {}, Pn = {
|
|
|
387
387
|
jn
|
|
388
388
|
];
|
|
389
389
|
function Nn(s, e) {
|
|
390
|
-
return
|
|
390
|
+
return d(), h("svg", Pn, Zn);
|
|
391
391
|
}
|
|
392
392
|
const Rn = /* @__PURE__ */ H(Bn, [["render", Nn]]), Un = {}, qn = {
|
|
393
393
|
width: "24",
|
|
@@ -402,7 +402,7 @@ const Rn = /* @__PURE__ */ H(Bn, [["render", Nn]]), Un = {}, qn = {
|
|
|
402
402
|
Fn
|
|
403
403
|
];
|
|
404
404
|
function Gn(s, e) {
|
|
405
|
-
return
|
|
405
|
+
return d(), h("svg", qn, zn);
|
|
406
406
|
}
|
|
407
407
|
const Kn = /* @__PURE__ */ H(Un, [["render", Gn]]), xn = {}, Wn = {
|
|
408
408
|
width: "24",
|
|
@@ -417,7 +417,7 @@ const Kn = /* @__PURE__ */ H(Un, [["render", Gn]]), xn = {}, Wn = {
|
|
|
417
417
|
Yn
|
|
418
418
|
];
|
|
419
419
|
function Qn(s, e) {
|
|
420
|
-
return
|
|
420
|
+
return d(), h("svg", Wn, Xn);
|
|
421
421
|
}
|
|
422
422
|
const Jn = /* @__PURE__ */ H(xn, [["render", Qn]]), ei = {}, ti = {
|
|
423
423
|
width: "24",
|
|
@@ -432,7 +432,7 @@ const Jn = /* @__PURE__ */ H(xn, [["render", Qn]]), ei = {}, ti = {
|
|
|
432
432
|
si
|
|
433
433
|
];
|
|
434
434
|
function ni(s, e) {
|
|
435
|
-
return
|
|
435
|
+
return d(), h("svg", ti, ai);
|
|
436
436
|
}
|
|
437
437
|
const ii = /* @__PURE__ */ H(ei, [["render", ni]]), oi = {}, li = {
|
|
438
438
|
width: "24",
|
|
@@ -447,7 +447,7 @@ const ii = /* @__PURE__ */ H(ei, [["render", ni]]), oi = {}, li = {
|
|
|
447
447
|
ri
|
|
448
448
|
];
|
|
449
449
|
function di(s, e) {
|
|
450
|
-
return
|
|
450
|
+
return d(), h("svg", li, ci);
|
|
451
451
|
}
|
|
452
452
|
const ui = /* @__PURE__ */ H(oi, [["render", di]]), pi = {}, hi = {
|
|
453
453
|
width: "24",
|
|
@@ -462,7 +462,7 @@ const ui = /* @__PURE__ */ H(oi, [["render", di]]), pi = {}, hi = {
|
|
|
462
462
|
mi
|
|
463
463
|
];
|
|
464
464
|
function Ci(s, e) {
|
|
465
|
-
return
|
|
465
|
+
return d(), h("svg", hi, vi);
|
|
466
466
|
}
|
|
467
467
|
const _i = /* @__PURE__ */ H(pi, [["render", Ci]]), fi = {}, gi = {
|
|
468
468
|
width: "24",
|
|
@@ -477,7 +477,7 @@ const _i = /* @__PURE__ */ H(pi, [["render", Ci]]), fi = {}, gi = {
|
|
|
477
477
|
yi
|
|
478
478
|
];
|
|
479
479
|
function wi(s, e) {
|
|
480
|
-
return
|
|
480
|
+
return d(), h("svg", gi, bi);
|
|
481
481
|
}
|
|
482
482
|
const $i = /* @__PURE__ */ H(fi, [["render", wi]]), Ii = {}, Mi = {
|
|
483
483
|
width: "24",
|
|
@@ -492,7 +492,7 @@ const $i = /* @__PURE__ */ H(fi, [["render", wi]]), Ii = {}, Mi = {
|
|
|
492
492
|
Ai
|
|
493
493
|
];
|
|
494
494
|
function ki(s, e) {
|
|
495
|
-
return
|
|
495
|
+
return d(), h("svg", Mi, Si);
|
|
496
496
|
}
|
|
497
497
|
const Li = /* @__PURE__ */ H(Ii, [["render", ki]]), Ti = {}, Vi = {
|
|
498
498
|
width: "24",
|
|
@@ -507,7 +507,7 @@ const Li = /* @__PURE__ */ H(Ii, [["render", ki]]), Ti = {}, Vi = {
|
|
|
507
507
|
Ei
|
|
508
508
|
];
|
|
509
509
|
function Oi(s, e) {
|
|
510
|
-
return
|
|
510
|
+
return d(), h("svg", Vi, Hi);
|
|
511
511
|
}
|
|
512
512
|
const Di = /* @__PURE__ */ H(Ti, [["render", Oi]]), Bi = {}, Pi = {
|
|
513
513
|
width: "24",
|
|
@@ -522,7 +522,7 @@ const Di = /* @__PURE__ */ H(Ti, [["render", Oi]]), Bi = {}, Pi = {
|
|
|
522
522
|
ji
|
|
523
523
|
];
|
|
524
524
|
function Ni(s, e) {
|
|
525
|
-
return
|
|
525
|
+
return d(), h("svg", Pi, Zi);
|
|
526
526
|
}
|
|
527
527
|
const Ri = /* @__PURE__ */ H(Bi, [["render", Ni]]), Ui = {}, qi = {
|
|
528
528
|
width: "24",
|
|
@@ -537,7 +537,7 @@ const Ri = /* @__PURE__ */ H(Bi, [["render", Ni]]), Ui = {}, qi = {
|
|
|
537
537
|
Fi
|
|
538
538
|
];
|
|
539
539
|
function Gi(s, e) {
|
|
540
|
-
return
|
|
540
|
+
return d(), h("svg", qi, zi);
|
|
541
541
|
}
|
|
542
542
|
const Ki = /* @__PURE__ */ H(Ui, [["render", Gi]]), xi = {}, Wi = {
|
|
543
543
|
width: "24",
|
|
@@ -552,7 +552,7 @@ const Ki = /* @__PURE__ */ H(Ui, [["render", Gi]]), xi = {}, Wi = {
|
|
|
552
552
|
Yi
|
|
553
553
|
];
|
|
554
554
|
function Qi(s, e) {
|
|
555
|
-
return
|
|
555
|
+
return d(), h("svg", Wi, Xi);
|
|
556
556
|
}
|
|
557
557
|
const Ji = /* @__PURE__ */ H(xi, [["render", Qi]]), eo = {}, to = {
|
|
558
558
|
width: "24",
|
|
@@ -567,7 +567,7 @@ const Ji = /* @__PURE__ */ H(xi, [["render", Qi]]), eo = {}, to = {
|
|
|
567
567
|
so
|
|
568
568
|
];
|
|
569
569
|
function no(s, e) {
|
|
570
|
-
return
|
|
570
|
+
return d(), h("svg", to, ao);
|
|
571
571
|
}
|
|
572
572
|
const io = /* @__PURE__ */ H(eo, [["render", no]]), oo = {}, lo = {
|
|
573
573
|
width: "24",
|
|
@@ -582,7 +582,7 @@ const io = /* @__PURE__ */ H(eo, [["render", no]]), oo = {}, lo = {
|
|
|
582
582
|
ro
|
|
583
583
|
];
|
|
584
584
|
function uo(s, e) {
|
|
585
|
-
return
|
|
585
|
+
return d(), h("svg", lo, co);
|
|
586
586
|
}
|
|
587
587
|
const po = /* @__PURE__ */ H(oo, [["render", uo]]), ho = {}, mo = {
|
|
588
588
|
width: "24",
|
|
@@ -597,7 +597,7 @@ const po = /* @__PURE__ */ H(oo, [["render", uo]]), ho = {}, mo = {
|
|
|
597
597
|
vo
|
|
598
598
|
];
|
|
599
599
|
function _o(s, e) {
|
|
600
|
-
return
|
|
600
|
+
return d(), h("svg", mo, Co);
|
|
601
601
|
}
|
|
602
602
|
const fo = /* @__PURE__ */ H(ho, [["render", _o]]), go = K({
|
|
603
603
|
name: "LoadingIcon"
|
|
@@ -629,7 +629,7 @@ const R1 = (s) => (Ut("data-v-ad6da4a9"), s = s(), qt(), s), yo = {
|
|
|
629
629
|
$o
|
|
630
630
|
];
|
|
631
631
|
function Mo(s, e, t, n, a, o) {
|
|
632
|
-
return
|
|
632
|
+
return d(), h("svg", yo, Io);
|
|
633
633
|
}
|
|
634
634
|
const Ao = /* @__PURE__ */ H(go, [["render", Mo], ["__scopeId", "data-v-ad6da4a9"]]), So = {}, ko = {
|
|
635
635
|
width: "24",
|
|
@@ -644,7 +644,7 @@ const Ao = /* @__PURE__ */ H(go, [["render", Mo], ["__scopeId", "data-v-ad6da4a9
|
|
|
644
644
|
Lo
|
|
645
645
|
];
|
|
646
646
|
function Vo(s, e) {
|
|
647
|
-
return
|
|
647
|
+
return d(), h("svg", ko, To);
|
|
648
648
|
}
|
|
649
649
|
const Eo = /* @__PURE__ */ H(So, [["render", Vo]]), Ho = {}, Oo = {
|
|
650
650
|
width: "24",
|
|
@@ -659,7 +659,7 @@ const Eo = /* @__PURE__ */ H(So, [["render", Vo]]), Ho = {}, Oo = {
|
|
|
659
659
|
Do
|
|
660
660
|
];
|
|
661
661
|
function Po(s, e) {
|
|
662
|
-
return
|
|
662
|
+
return d(), h("svg", Oo, Bo);
|
|
663
663
|
}
|
|
664
664
|
const jo = /* @__PURE__ */ H(Ho, [["render", Po]]), Zo = {}, No = {
|
|
665
665
|
width: "24",
|
|
@@ -674,7 +674,7 @@ const jo = /* @__PURE__ */ H(Ho, [["render", Po]]), Zo = {}, No = {
|
|
|
674
674
|
Ro
|
|
675
675
|
];
|
|
676
676
|
function qo(s, e) {
|
|
677
|
-
return
|
|
677
|
+
return d(), h("svg", No, Uo);
|
|
678
678
|
}
|
|
679
679
|
const Fo = /* @__PURE__ */ H(Zo, [["render", qo]]), zo = {}, Go = {
|
|
680
680
|
width: "24",
|
|
@@ -689,7 +689,7 @@ const Fo = /* @__PURE__ */ H(Zo, [["render", qo]]), zo = {}, Go = {
|
|
|
689
689
|
Ko
|
|
690
690
|
];
|
|
691
691
|
function Wo(s, e) {
|
|
692
|
-
return
|
|
692
|
+
return d(), h("svg", Go, xo);
|
|
693
693
|
}
|
|
694
694
|
const Yo = /* @__PURE__ */ H(zo, [["render", Wo]]), Xo = {}, Qo = {
|
|
695
695
|
width: "24",
|
|
@@ -704,7 +704,7 @@ const Yo = /* @__PURE__ */ H(zo, [["render", Wo]]), Xo = {}, Qo = {
|
|
|
704
704
|
Jo
|
|
705
705
|
];
|
|
706
706
|
function tl(s, e) {
|
|
707
|
-
return
|
|
707
|
+
return d(), h("svg", Qo, el);
|
|
708
708
|
}
|
|
709
709
|
const sl = /* @__PURE__ */ H(Xo, [["render", tl]]), al = {}, nl = {
|
|
710
710
|
width: "24",
|
|
@@ -719,7 +719,7 @@ const sl = /* @__PURE__ */ H(Xo, [["render", tl]]), al = {}, nl = {
|
|
|
719
719
|
il
|
|
720
720
|
];
|
|
721
721
|
function ll(s, e) {
|
|
722
|
-
return
|
|
722
|
+
return d(), h("svg", nl, ol);
|
|
723
723
|
}
|
|
724
724
|
const rl = /* @__PURE__ */ H(al, [["render", ll]]), cl = {}, dl = {
|
|
725
725
|
width: "24",
|
|
@@ -734,7 +734,7 @@ const rl = /* @__PURE__ */ H(al, [["render", ll]]), cl = {}, dl = {
|
|
|
734
734
|
ul
|
|
735
735
|
];
|
|
736
736
|
function hl(s, e) {
|
|
737
|
-
return
|
|
737
|
+
return d(), h("svg", dl, pl);
|
|
738
738
|
}
|
|
739
739
|
const ml = /* @__PURE__ */ H(cl, [["render", hl]]), vl = {}, Cl = {
|
|
740
740
|
width: "24",
|
|
@@ -749,7 +749,7 @@ const ml = /* @__PURE__ */ H(cl, [["render", hl]]), vl = {}, Cl = {
|
|
|
749
749
|
_l
|
|
750
750
|
];
|
|
751
751
|
function gl(s, e) {
|
|
752
|
-
return
|
|
752
|
+
return d(), h("svg", Cl, fl);
|
|
753
753
|
}
|
|
754
754
|
const yl = /* @__PURE__ */ H(vl, [["render", gl]]), bl = {}, wl = {
|
|
755
755
|
width: "24",
|
|
@@ -764,7 +764,7 @@ const yl = /* @__PURE__ */ H(vl, [["render", gl]]), bl = {}, wl = {
|
|
|
764
764
|
$l
|
|
765
765
|
];
|
|
766
766
|
function Ml(s, e) {
|
|
767
|
-
return
|
|
767
|
+
return d(), h("svg", wl, Il);
|
|
768
768
|
}
|
|
769
769
|
const Al = /* @__PURE__ */ H(bl, [["render", Ml]]), Sl = {}, kl = {
|
|
770
770
|
width: "24",
|
|
@@ -779,7 +779,7 @@ const Al = /* @__PURE__ */ H(bl, [["render", Ml]]), Sl = {}, kl = {
|
|
|
779
779
|
Ll
|
|
780
780
|
];
|
|
781
781
|
function Vl(s, e) {
|
|
782
|
-
return
|
|
782
|
+
return d(), h("svg", kl, Tl);
|
|
783
783
|
}
|
|
784
784
|
const El = /* @__PURE__ */ H(Sl, [["render", Vl]]), Hl = {}, Ol = {
|
|
785
785
|
width: "24",
|
|
@@ -794,7 +794,7 @@ const El = /* @__PURE__ */ H(Sl, [["render", Vl]]), Hl = {}, Ol = {
|
|
|
794
794
|
Dl
|
|
795
795
|
];
|
|
796
796
|
function Pl(s, e) {
|
|
797
|
-
return
|
|
797
|
+
return d(), h("svg", Ol, Bl);
|
|
798
798
|
}
|
|
799
799
|
const jl = /* @__PURE__ */ H(Hl, [["render", Pl]]), Zl = {}, Nl = {
|
|
800
800
|
width: "24",
|
|
@@ -809,7 +809,7 @@ const jl = /* @__PURE__ */ H(Hl, [["render", Pl]]), Zl = {}, Nl = {
|
|
|
809
809
|
Rl
|
|
810
810
|
];
|
|
811
811
|
function ql(s, e) {
|
|
812
|
-
return
|
|
812
|
+
return d(), h("svg", Nl, Ul);
|
|
813
813
|
}
|
|
814
814
|
const Fl = /* @__PURE__ */ H(Zl, [["render", ql]]), zl = {}, Gl = {
|
|
815
815
|
width: "26",
|
|
@@ -821,7 +821,7 @@ const Fl = /* @__PURE__ */ H(Zl, [["render", ql]]), zl = {}, Gl = {
|
|
|
821
821
|
Kl
|
|
822
822
|
];
|
|
823
823
|
function Wl(s, e) {
|
|
824
|
-
return
|
|
824
|
+
return d(), h("svg", Gl, xl);
|
|
825
825
|
}
|
|
826
826
|
const Yl = /* @__PURE__ */ H(zl, [["render", Wl]]), Xl = {}, Ql = {
|
|
827
827
|
width: "24",
|
|
@@ -836,7 +836,7 @@ const Yl = /* @__PURE__ */ H(zl, [["render", Wl]]), Xl = {}, Ql = {
|
|
|
836
836
|
Jl
|
|
837
837
|
];
|
|
838
838
|
function t2(s, e) {
|
|
839
|
-
return
|
|
839
|
+
return d(), h("svg", Ql, e2);
|
|
840
840
|
}
|
|
841
841
|
const s2 = /* @__PURE__ */ H(Xl, [["render", t2]]), a2 = {}, n2 = {
|
|
842
842
|
width: "24",
|
|
@@ -851,7 +851,7 @@ const s2 = /* @__PURE__ */ H(Xl, [["render", t2]]), a2 = {}, n2 = {
|
|
|
851
851
|
i2
|
|
852
852
|
];
|
|
853
853
|
function l2(s, e) {
|
|
854
|
-
return
|
|
854
|
+
return d(), h("svg", n2, o2);
|
|
855
855
|
}
|
|
856
856
|
const r2 = /* @__PURE__ */ H(a2, [["render", l2]]), c2 = {}, d2 = {
|
|
857
857
|
width: "24",
|
|
@@ -866,7 +866,7 @@ const r2 = /* @__PURE__ */ H(a2, [["render", l2]]), c2 = {}, d2 = {
|
|
|
866
866
|
u2
|
|
867
867
|
];
|
|
868
868
|
function h2(s, e) {
|
|
869
|
-
return
|
|
869
|
+
return d(), h("svg", d2, p2);
|
|
870
870
|
}
|
|
871
871
|
const m2 = /* @__PURE__ */ H(c2, [["render", h2]]), v2 = {}, C2 = {
|
|
872
872
|
width: "24",
|
|
@@ -881,7 +881,7 @@ const m2 = /* @__PURE__ */ H(c2, [["render", h2]]), v2 = {}, C2 = {
|
|
|
881
881
|
_2
|
|
882
882
|
];
|
|
883
883
|
function g2(s, e) {
|
|
884
|
-
return
|
|
884
|
+
return d(), h("svg", C2, f2);
|
|
885
885
|
}
|
|
886
886
|
const y2 = /* @__PURE__ */ H(v2, [["render", g2]]), b2 = {}, w2 = {
|
|
887
887
|
width: "24",
|
|
@@ -896,7 +896,7 @@ const y2 = /* @__PURE__ */ H(v2, [["render", g2]]), b2 = {}, w2 = {
|
|
|
896
896
|
$2
|
|
897
897
|
];
|
|
898
898
|
function M2(s, e) {
|
|
899
|
-
return
|
|
899
|
+
return d(), h("svg", w2, I2);
|
|
900
900
|
}
|
|
901
901
|
const A2 = /* @__PURE__ */ H(b2, [["render", M2]]), S2 = {}, k2 = {
|
|
902
902
|
width: "24",
|
|
@@ -911,7 +911,7 @@ const A2 = /* @__PURE__ */ H(b2, [["render", M2]]), S2 = {}, k2 = {
|
|
|
911
911
|
L2
|
|
912
912
|
];
|
|
913
913
|
function V2(s, e) {
|
|
914
|
-
return
|
|
914
|
+
return d(), h("svg", k2, T2);
|
|
915
915
|
}
|
|
916
916
|
const E2 = /* @__PURE__ */ H(S2, [["render", V2]]), H2 = {}, O2 = {
|
|
917
917
|
width: "24",
|
|
@@ -926,7 +926,7 @@ const E2 = /* @__PURE__ */ H(S2, [["render", V2]]), H2 = {}, O2 = {
|
|
|
926
926
|
D2
|
|
927
927
|
];
|
|
928
928
|
function P2(s, e) {
|
|
929
|
-
return
|
|
929
|
+
return d(), h("svg", O2, B2);
|
|
930
930
|
}
|
|
931
931
|
const j2 = /* @__PURE__ */ H(H2, [["render", P2]]), Z2 = {}, N2 = {
|
|
932
932
|
width: "24",
|
|
@@ -941,7 +941,7 @@ const j2 = /* @__PURE__ */ H(H2, [["render", P2]]), Z2 = {}, N2 = {
|
|
|
941
941
|
R2
|
|
942
942
|
];
|
|
943
943
|
function q2(s, e) {
|
|
944
|
-
return
|
|
944
|
+
return d(), h("svg", N2, U2);
|
|
945
945
|
}
|
|
946
946
|
const F2 = /* @__PURE__ */ H(Z2, [["render", q2]]), z2 = {}, G2 = {
|
|
947
947
|
width: "24",
|
|
@@ -956,7 +956,7 @@ const F2 = /* @__PURE__ */ H(Z2, [["render", q2]]), z2 = {}, G2 = {
|
|
|
956
956
|
K2
|
|
957
957
|
];
|
|
958
958
|
function W2(s, e) {
|
|
959
|
-
return
|
|
959
|
+
return d(), h("svg", G2, x2);
|
|
960
960
|
}
|
|
961
961
|
const Y2 = /* @__PURE__ */ H(z2, [["render", W2]]), X2 = {}, Q2 = {
|
|
962
962
|
width: "24",
|
|
@@ -971,7 +971,7 @@ const Y2 = /* @__PURE__ */ H(z2, [["render", W2]]), X2 = {}, Q2 = {
|
|
|
971
971
|
J2
|
|
972
972
|
];
|
|
973
973
|
function tr(s, e) {
|
|
974
|
-
return
|
|
974
|
+
return d(), h("svg", Q2, er);
|
|
975
975
|
}
|
|
976
976
|
const sr = /* @__PURE__ */ H(X2, [["render", tr]]), ar = {}, nr = {
|
|
977
977
|
width: "24",
|
|
@@ -986,7 +986,7 @@ const sr = /* @__PURE__ */ H(X2, [["render", tr]]), ar = {}, nr = {
|
|
|
986
986
|
ir
|
|
987
987
|
];
|
|
988
988
|
function lr(s, e) {
|
|
989
|
-
return
|
|
989
|
+
return d(), h("svg", nr, or);
|
|
990
990
|
}
|
|
991
991
|
const rr = /* @__PURE__ */ H(ar, [["render", lr]]), cr = {}, dr = {
|
|
992
992
|
width: "24",
|
|
@@ -1001,7 +1001,7 @@ const rr = /* @__PURE__ */ H(ar, [["render", lr]]), cr = {}, dr = {
|
|
|
1001
1001
|
ur
|
|
1002
1002
|
];
|
|
1003
1003
|
function hr(s, e) {
|
|
1004
|
-
return
|
|
1004
|
+
return d(), h("svg", dr, pr);
|
|
1005
1005
|
}
|
|
1006
1006
|
const mr = /* @__PURE__ */ H(cr, [["render", hr]]), vr = {}, Cr = {
|
|
1007
1007
|
width: "24",
|
|
@@ -1016,7 +1016,7 @@ const mr = /* @__PURE__ */ H(cr, [["render", hr]]), vr = {}, Cr = {
|
|
|
1016
1016
|
_r
|
|
1017
1017
|
];
|
|
1018
1018
|
function gr(s, e) {
|
|
1019
|
-
return
|
|
1019
|
+
return d(), h("svg", Cr, fr);
|
|
1020
1020
|
}
|
|
1021
1021
|
const yr = /* @__PURE__ */ H(vr, [["render", gr]]), br = {}, wr = {
|
|
1022
1022
|
width: "24",
|
|
@@ -1031,7 +1031,7 @@ const yr = /* @__PURE__ */ H(vr, [["render", gr]]), br = {}, wr = {
|
|
|
1031
1031
|
$r
|
|
1032
1032
|
];
|
|
1033
1033
|
function Mr(s, e) {
|
|
1034
|
-
return
|
|
1034
|
+
return d(), h("svg", wr, Ir);
|
|
1035
1035
|
}
|
|
1036
1036
|
const Ar = /* @__PURE__ */ H(br, [["render", Mr]]), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1037
1037
|
__proto__: null,
|
|
@@ -1126,7 +1126,7 @@ const Ar = /* @__PURE__ */ H(br, [["render", Mr]]), Sr = /* @__PURE__ */ Object.
|
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(s) {
|
|
1128
1128
|
const e = s, t = f(() => Sr[e.name]);
|
|
1129
|
-
return (n, a) => (
|
|
1129
|
+
return (n, a) => (d(), q(Ke(t.value), {
|
|
1130
1130
|
class: G(["ao-icon", `ao-icon--${n.size}`])
|
|
1131
1131
|
}, null, 8, ["class"]));
|
|
1132
1132
|
}
|
|
@@ -1150,7 +1150,7 @@ const Tr = ["type"], Vr = {
|
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(s) {
|
|
1152
1152
|
const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
|
|
1153
|
-
return (a, o) => (
|
|
1153
|
+
return (a, o) => (d(), h("button", {
|
|
1154
1154
|
type: a.type,
|
|
1155
1155
|
class: G([
|
|
1156
1156
|
"ao-button",
|
|
@@ -1164,9 +1164,9 @@ const Tr = ["type"], Vr = {
|
|
|
1164
1164
|
])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
x(a.$slots, "default", {}, () => [
|
|
1167
|
-
a.label ? (
|
|
1167
|
+
a.label ? (d(), h("span", Vr, U(a.label), 1)) : S("", !0)
|
|
1168
1168
|
]),
|
|
1169
|
-
n.value ? (
|
|
1169
|
+
n.value ? (d(), q(le, {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
name: n.value,
|
|
1172
1172
|
class: "ao-button__icon",
|
|
@@ -1178,21 +1178,21 @@ const Tr = ["type"], Vr = {
|
|
|
1178
1178
|
function ct(s) {
|
|
1179
1179
|
const e = J(!1), t = J(""), n = f(() => "value" in s.value ? "value" : "innerHTML"), a = () => {
|
|
1180
1180
|
e.value = !e.value;
|
|
1181
|
-
}, o = (
|
|
1182
|
-
e.value =
|
|
1183
|
-
}, i = (
|
|
1181
|
+
}, o = (C) => {
|
|
1182
|
+
e.value = C;
|
|
1183
|
+
}, i = (C) => async () => {
|
|
1184
1184
|
o(!1), await Be(() => {
|
|
1185
|
-
s.value[n.value] = t.value,
|
|
1185
|
+
s.value[n.value] = t.value, C == null || C();
|
|
1186
1186
|
});
|
|
1187
|
-
}, l = (
|
|
1187
|
+
}, l = (C) => async (c) => {
|
|
1188
1188
|
o(!1), await Be(() => {
|
|
1189
|
-
|
|
1189
|
+
C(s.value[n.value], c);
|
|
1190
1190
|
});
|
|
1191
1191
|
};
|
|
1192
|
-
return _e(e, async (
|
|
1192
|
+
return _e(e, async (C) => {
|
|
1193
1193
|
await Be(() => {
|
|
1194
1194
|
setTimeout(() => {
|
|
1195
|
-
s.value &&
|
|
1195
|
+
s.value && C && (s.value.focus(), t.value = s.value[n.value]);
|
|
1196
1196
|
}, 1);
|
|
1197
1197
|
});
|
|
1198
1198
|
}), {
|
|
@@ -1214,17 +1214,17 @@ const pe = /* @__PURE__ */ K({
|
|
|
1214
1214
|
},
|
|
1215
1215
|
emits: ["update:title", "toggle-is-editing"],
|
|
1216
1216
|
setup(s, { emit: e }) {
|
|
1217
|
-
const t = s, n = J(null), { isEditing: a, setIsEditing: o, onUpdate: i, onDiscard: l } = ct(n),
|
|
1218
|
-
change:
|
|
1217
|
+
const t = s, n = J(null), { isEditing: a, setIsEditing: o, onUpdate: i, onDiscard: l } = ct(n), C = f(() => a.value ? "input" : t.tag || `h${t.level}`), c = f(() => t.isEditable ? a.value ? {
|
|
1218
|
+
change: v,
|
|
1219
1219
|
click: ($) => $.stopPropagation(),
|
|
1220
1220
|
blur: g
|
|
1221
1221
|
} : {
|
|
1222
1222
|
click: V,
|
|
1223
1223
|
focus: V
|
|
1224
|
-
} : {}),
|
|
1224
|
+
} : {}), v = i(($, O) => {
|
|
1225
1225
|
const b = O.target.value;
|
|
1226
1226
|
e("update:title", b);
|
|
1227
|
-
}),
|
|
1227
|
+
}), m = l(), g = async () => {
|
|
1228
1228
|
a.value && o(!1);
|
|
1229
1229
|
}, I = () => {
|
|
1230
1230
|
e("toggle-is-editing", !1);
|
|
@@ -1234,9 +1234,9 @@ const pe = /* @__PURE__ */ K({
|
|
|
1234
1234
|
return _e(
|
|
1235
1235
|
() => t.isEditable,
|
|
1236
1236
|
($) => {
|
|
1237
|
-
$ ||
|
|
1237
|
+
$ || m();
|
|
1238
1238
|
}
|
|
1239
|
-
), ($, O) => (
|
|
1239
|
+
), ($, O) => (d(), q(Ke(C.value), De({
|
|
1240
1240
|
ref_key: "target",
|
|
1241
1241
|
ref: n,
|
|
1242
1242
|
class: [
|
|
@@ -1253,8 +1253,8 @@ const pe = /* @__PURE__ */ K({
|
|
|
1253
1253
|
value: j(a) ? $.title : null,
|
|
1254
1254
|
tabindex: "0",
|
|
1255
1255
|
onKeyup: a1(I, ["enter"])
|
|
1256
|
-
}, zt(
|
|
1257
|
-
onKeydown: a1(j(
|
|
1256
|
+
}, zt(c.value), {
|
|
1257
|
+
onKeydown: a1(j(m), ["esc"])
|
|
1258
1258
|
}), {
|
|
1259
1259
|
default: F(() => [
|
|
1260
1260
|
N1(U($.title), 1)
|
|
@@ -1300,18 +1300,18 @@ const Er = {
|
|
|
1300
1300
|
const t = (n) => {
|
|
1301
1301
|
e("update:title", n);
|
|
1302
1302
|
};
|
|
1303
|
-
return (n, a) => (
|
|
1303
|
+
return (n, a) => (d(), q(Ke(n.tagName), {
|
|
1304
1304
|
class: G(["ao-card-horiz", { "ao-card-horiz--active": n.isActive }])
|
|
1305
1305
|
}, {
|
|
1306
1306
|
default: F(() => [
|
|
1307
|
-
n.isDraggable ? (
|
|
1307
|
+
n.isDraggable ? (d(), h("div", Er, [
|
|
1308
1308
|
y(le, {
|
|
1309
1309
|
name: "DragIndicator",
|
|
1310
1310
|
class: "ao-card-horiz__drag-handle"
|
|
1311
1311
|
})
|
|
1312
1312
|
])) : S("", !0),
|
|
1313
1313
|
r("div", Hr, [
|
|
1314
|
-
n.icon ? (
|
|
1314
|
+
n.icon ? (d(), h("div", Or, [
|
|
1315
1315
|
y(le, {
|
|
1316
1316
|
class: "ao-card-horiz__icon",
|
|
1317
1317
|
name: n.icon,
|
|
@@ -1327,20 +1327,20 @@ const Er = {
|
|
|
1327
1327
|
"onUpdate:title": t
|
|
1328
1328
|
}, null, 8, ["title"]),
|
|
1329
1329
|
x(n.$slots, "subtitle", {}, () => [
|
|
1330
|
-
n.subtitle ? (
|
|
1330
|
+
n.subtitle ? (d(), h("span", Br, U(n.subtitle), 1)) : S("", !0)
|
|
1331
1331
|
])
|
|
1332
1332
|
]),
|
|
1333
|
-
n.$slots.header ? (
|
|
1333
|
+
n.$slots.header ? (d(), h("div", Pr, [
|
|
1334
1334
|
x(n.$slots, "header")
|
|
1335
1335
|
])) : S("", !0)
|
|
1336
1336
|
]),
|
|
1337
|
-
n.$slots.default ? (
|
|
1337
|
+
n.$slots.default ? (d(), h("div", jr, [
|
|
1338
1338
|
x(n.$slots, "default")
|
|
1339
1339
|
])) : S("", !0),
|
|
1340
|
-
n.$slots.footer ? (
|
|
1340
|
+
n.$slots.footer ? (d(), h("div", Zr, [
|
|
1341
1341
|
x(n.$slots, "footer")
|
|
1342
1342
|
])) : S("", !0),
|
|
1343
|
-
n.$slots.secondary ? (
|
|
1343
|
+
n.$slots.secondary ? (d(), h("div", Nr, [
|
|
1344
1344
|
x(n.$slots, "secondary")
|
|
1345
1345
|
])) : S("", !0)
|
|
1346
1346
|
]),
|
|
@@ -1362,7 +1362,7 @@ const g1 = /* @__PURE__ */ K({
|
|
|
1362
1362
|
const e = s, t = f(() => e.clickable ? "button" : "span"), n = f(
|
|
1363
1363
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1364
1364
|
);
|
|
1365
|
-
return (a, o) => (
|
|
1365
|
+
return (a, o) => (d(), h("div", {
|
|
1366
1366
|
class: G([
|
|
1367
1367
|
"ao-tag",
|
|
1368
1368
|
a.color ? `ao-tag--${a.color}` : "",
|
|
@@ -1371,7 +1371,7 @@ const g1 = /* @__PURE__ */ K({
|
|
|
1371
1371
|
a.variant ? `ao-tag--${a.variant}` : ""
|
|
1372
1372
|
])
|
|
1373
1373
|
}, [
|
|
1374
|
-
(
|
|
1374
|
+
(d(), q(Ke(t.value), De({ class: "ao-tag__label" }, n.value, {
|
|
1375
1375
|
onClick: o[0] || (o[0] = (i) => a.$emit("click", i))
|
|
1376
1376
|
}), {
|
|
1377
1377
|
default: F(() => [
|
|
@@ -1379,7 +1379,7 @@ const g1 = /* @__PURE__ */ K({
|
|
|
1379
1379
|
]),
|
|
1380
1380
|
_: 1
|
|
1381
1381
|
}, 16)),
|
|
1382
|
-
a.closable ? (
|
|
1382
|
+
a.closable ? (d(), h("button", {
|
|
1383
1383
|
key: 0,
|
|
1384
1384
|
class: "ao-tag__close",
|
|
1385
1385
|
onClick: o[1] || (o[1] = (i) => a.$emit("close", i))
|
|
@@ -1468,11 +1468,11 @@ class z {
|
|
|
1468
1468
|
const a = Math.max(t.length, n.length), o = new Array(a).fill(0);
|
|
1469
1469
|
let i = 0;
|
|
1470
1470
|
for (let l = 0; l < a; ++l) {
|
|
1471
|
-
const
|
|
1472
|
-
let
|
|
1473
|
-
for (i = 0;
|
|
1471
|
+
const C = l < t.length ? t[l] : 0, c = l < n.length ? n[l] : 0;
|
|
1472
|
+
let v = C + c + i;
|
|
1473
|
+
for (i = 0; v >= e.getBase(); v -= e.getBase())
|
|
1474
1474
|
++i;
|
|
1475
|
-
o[l] =
|
|
1475
|
+
o[l] = v;
|
|
1476
1476
|
}
|
|
1477
1477
|
return z.extendWithCarry(o, i);
|
|
1478
1478
|
}
|
|
@@ -1767,19 +1767,19 @@ function pt() {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
static from(a) {
|
|
1769
1769
|
const o = s.LexoInteger.parse(a, e.LexoRank.NUMERAL_SYSTEM), i = t.VALUES, l = i.length;
|
|
1770
|
-
for (let
|
|
1771
|
-
const
|
|
1772
|
-
if (
|
|
1773
|
-
return
|
|
1770
|
+
for (let C = 0; C < l; ++C) {
|
|
1771
|
+
const c = i[C];
|
|
1772
|
+
if (c.value.equals(o))
|
|
1773
|
+
return c;
|
|
1774
1774
|
}
|
|
1775
1775
|
throw new Error("Unknown bucket: " + a);
|
|
1776
1776
|
}
|
|
1777
1777
|
static resolve(a) {
|
|
1778
1778
|
const o = t.VALUES, i = o.length;
|
|
1779
1779
|
for (let l = 0; l < i; ++l) {
|
|
1780
|
-
const
|
|
1781
|
-
if (
|
|
1782
|
-
return
|
|
1780
|
+
const C = o[l];
|
|
1781
|
+
if (C.equals(t.from(a.toString())))
|
|
1782
|
+
return C;
|
|
1783
1783
|
}
|
|
1784
1784
|
throw new Error("No bucket found with id " + a);
|
|
1785
1785
|
}
|
|
@@ -1962,27 +1962,27 @@ function mt() {
|
|
|
1962
1962
|
static between(i, l) {
|
|
1963
1963
|
if (i.getSystem().getBase() !== l.getSystem().getBase())
|
|
1964
1964
|
throw new Error("Expected same system");
|
|
1965
|
-
let
|
|
1965
|
+
let C = i, c = l, v;
|
|
1966
1966
|
if (i.getScale() < l.getScale()) {
|
|
1967
|
-
if (
|
|
1967
|
+
if (v = l.setScale(i.getScale(), !1), i.compareTo(v) >= 0)
|
|
1968
1968
|
return a.mid(i, l);
|
|
1969
|
-
|
|
1969
|
+
c = v;
|
|
1970
1970
|
}
|
|
1971
|
-
if (i.getScale() >
|
|
1972
|
-
if (
|
|
1971
|
+
if (i.getScale() > c.getScale()) {
|
|
1972
|
+
if (v = i.setScale(c.getScale(), !0), v.compareTo(c) >= 0)
|
|
1973
1973
|
return a.mid(i, l);
|
|
1974
|
-
|
|
1974
|
+
C = v;
|
|
1975
1975
|
}
|
|
1976
|
-
let
|
|
1977
|
-
for (let V =
|
|
1978
|
-
const $ = V - 1, O =
|
|
1979
|
-
if (
|
|
1976
|
+
let m;
|
|
1977
|
+
for (let V = C.getScale(); V > 0; c = m) {
|
|
1978
|
+
const $ = V - 1, O = C.setScale($, !0);
|
|
1979
|
+
if (m = c.setScale($, !1), O.compareTo(m) === 0)
|
|
1980
1980
|
return a.checkMid(i, l, O);
|
|
1981
|
-
if (O.compareTo(
|
|
1981
|
+
if (O.compareTo(m) > 0)
|
|
1982
1982
|
break;
|
|
1983
|
-
V = $,
|
|
1983
|
+
V = $, C = O;
|
|
1984
1984
|
}
|
|
1985
|
-
let g = a.middleInternal(i, l,
|
|
1985
|
+
let g = a.middleInternal(i, l, C, c), I;
|
|
1986
1986
|
for (let V = g.getScale(); V > 0; V = I) {
|
|
1987
1987
|
I = V - 1;
|
|
1988
1988
|
const $ = g.setScale(I);
|
|
@@ -1993,56 +1993,56 @@ function mt() {
|
|
|
1993
1993
|
return g;
|
|
1994
1994
|
}
|
|
1995
1995
|
static parse(i) {
|
|
1996
|
-
const l = i.split("|"),
|
|
1997
|
-
return new a(
|
|
1996
|
+
const l = i.split("|"), C = e.default.from(l[0]), c = s.LexoDecimal.parse(l[1], a.NUMERAL_SYSTEM);
|
|
1997
|
+
return new a(C, c);
|
|
1998
1998
|
}
|
|
1999
1999
|
static from(i, l) {
|
|
2000
2000
|
if (l.getSystem().getBase() !== a.NUMERAL_SYSTEM.getBase())
|
|
2001
2001
|
throw new Error("Expected different system");
|
|
2002
2002
|
return new a(i, l);
|
|
2003
2003
|
}
|
|
2004
|
-
static middleInternal(i, l,
|
|
2005
|
-
const
|
|
2006
|
-
return a.checkMid(i, l,
|
|
2004
|
+
static middleInternal(i, l, C, c) {
|
|
2005
|
+
const v = a.mid(C, c);
|
|
2006
|
+
return a.checkMid(i, l, v);
|
|
2007
2007
|
}
|
|
2008
|
-
static checkMid(i, l,
|
|
2009
|
-
return i.compareTo(
|
|
2008
|
+
static checkMid(i, l, C) {
|
|
2009
|
+
return i.compareTo(C) >= 0 || C.compareTo(l) >= 0 ? a.mid(i, l) : C;
|
|
2010
2010
|
}
|
|
2011
2011
|
static mid(i, l) {
|
|
2012
|
-
const
|
|
2013
|
-
if (
|
|
2014
|
-
const
|
|
2015
|
-
if (
|
|
2016
|
-
return
|
|
2017
|
-
const g =
|
|
2012
|
+
const c = i.add(l).multiply(s.LexoDecimal.half(i.getSystem())), v = i.getScale() > l.getScale() ? i.getScale() : l.getScale();
|
|
2013
|
+
if (c.getScale() > v) {
|
|
2014
|
+
const m = c.setScale(v, !1);
|
|
2015
|
+
if (m.compareTo(i) > 0)
|
|
2016
|
+
return m;
|
|
2017
|
+
const g = c.setScale(v, !0);
|
|
2018
2018
|
if (g.compareTo(l) < 0)
|
|
2019
2019
|
return g;
|
|
2020
2020
|
}
|
|
2021
|
-
return
|
|
2021
|
+
return c;
|
|
2022
2022
|
}
|
|
2023
2023
|
static formatDecimal(i) {
|
|
2024
|
-
const l = i.format(),
|
|
2025
|
-
let
|
|
2026
|
-
const
|
|
2027
|
-
for (
|
|
2028
|
-
|
|
2029
|
-
for (;
|
|
2030
|
-
|
|
2031
|
-
return
|
|
2024
|
+
const l = i.format(), C = new t.default(l);
|
|
2025
|
+
let c = l.indexOf(a.NUMERAL_SYSTEM.getRadixPointChar());
|
|
2026
|
+
const v = a.NUMERAL_SYSTEM.toChar(0);
|
|
2027
|
+
for (c < 0 && (c = l.length, C.append(a.NUMERAL_SYSTEM.getRadixPointChar())); c < 6; )
|
|
2028
|
+
C.insert(0, v), ++c;
|
|
2029
|
+
for (; C[C.length - 1] === v; )
|
|
2030
|
+
C.length = C.length - 1;
|
|
2031
|
+
return C.toString();
|
|
2032
2032
|
}
|
|
2033
2033
|
genPrev() {
|
|
2034
2034
|
if (this.isMax())
|
|
2035
2035
|
return new a(this.bucket, a.INITIAL_MAX_DECIMAL);
|
|
2036
2036
|
const i = this.decimal.floor();
|
|
2037
|
-
let
|
|
2038
|
-
return
|
|
2037
|
+
let C = s.LexoDecimal.from(i).subtract(a.EIGHT_DECIMAL);
|
|
2038
|
+
return C.compareTo(a.MIN_DECIMAL) <= 0 && (C = a.between(a.MIN_DECIMAL, this.decimal)), new a(this.bucket, C);
|
|
2039
2039
|
}
|
|
2040
2040
|
genNext() {
|
|
2041
2041
|
if (this.isMin())
|
|
2042
2042
|
return new a(this.bucket, a.INITIAL_MIN_DECIMAL);
|
|
2043
2043
|
const i = this.decimal.ceil();
|
|
2044
|
-
let
|
|
2045
|
-
return
|
|
2044
|
+
let C = s.LexoDecimal.from(i).add(a.EIGHT_DECIMAL);
|
|
2045
|
+
return C.compareTo(a.MAX_DECIMAL) >= 0 && (C = a.between(this.decimal, a.MAX_DECIMAL)), new a(this.bucket, C);
|
|
2046
2046
|
}
|
|
2047
2047
|
between(i) {
|
|
2048
2048
|
if (!this.bucket.equals(i.bucket))
|
|
@@ -2164,13 +2164,13 @@ const Xr = ["title"], Qr = { className: "ao-avatar__initials" }, We = /* @__PURE
|
|
|
2164
2164
|
const n = Yr(s.userName), a = (o) => {
|
|
2165
2165
|
e("close", o);
|
|
2166
2166
|
};
|
|
2167
|
-
return (o, i) => (
|
|
2167
|
+
return (o, i) => (d(), h("div", {
|
|
2168
2168
|
role: "img",
|
|
2169
2169
|
class: G(["ao-avatar", `ao-avatar--${o.size}`]),
|
|
2170
2170
|
title: o.userName
|
|
2171
2171
|
}, [
|
|
2172
2172
|
r("span", Qr, U(j(n)), 1),
|
|
2173
|
-
o.isClosable ? (
|
|
2173
|
+
o.isClosable ? (d(), q(ue, {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
"icon-name": "CloseRounded",
|
|
2176
2176
|
class: "ao-avatar__close",
|
|
@@ -2205,7 +2205,7 @@ const Jr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2205
2205
|
const t = (n) => {
|
|
2206
2206
|
e("updateTitle", n);
|
|
2207
2207
|
};
|
|
2208
|
-
return (n, a) => (
|
|
2208
|
+
return (n, a) => (d(), q(dt, {
|
|
2209
2209
|
title: n.title,
|
|
2210
2210
|
"is-draggable": !0,
|
|
2211
2211
|
"onUpdate:title": t
|
|
@@ -2238,8 +2238,8 @@ const Jr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2238
2238
|
}),
|
|
2239
2239
|
r("span", l3, U(n.$t("template.phases.title")), 1)
|
|
2240
2240
|
]),
|
|
2241
|
-
n.phases ? (
|
|
2242
|
-
(
|
|
2241
|
+
n.phases ? (d(), h("ul", r3, [
|
|
2242
|
+
(d(!0), h(oe, null, me(n.phases, (o) => (d(), q(g1, {
|
|
2243
2243
|
key: o.id,
|
|
2244
2244
|
label: o.name || o.id,
|
|
2245
2245
|
color: "primary",
|
|
@@ -2251,7 +2251,7 @@ const Jr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2251
2251
|
]),
|
|
2252
2252
|
footer: F(() => [
|
|
2253
2253
|
r("div", c3, [
|
|
2254
|
-
n.updatedAt ? (
|
|
2254
|
+
n.updatedAt ? (d(), h("div", d3, [
|
|
2255
2255
|
r("div", u3, [
|
|
2256
2256
|
r("span", p3, U(n.$t("template.updatedAt.label")), 1)
|
|
2257
2257
|
]),
|
|
@@ -2259,7 +2259,7 @@ const Jr = { class: "ao-card-template__subitems" }, e3 = { class: "ao-card-templ
|
|
|
2259
2259
|
r("span", null, U(n.updatedAt), 1)
|
|
2260
2260
|
])
|
|
2261
2261
|
])) : S("", !0),
|
|
2262
|
-
n.updatedBy ? (
|
|
2262
|
+
n.updatedBy ? (d(), h("div", m3, [
|
|
2263
2263
|
r("div", v3, [
|
|
2264
2264
|
r("span", C3, U(n.$t("template.updatedBy.label")), 1)
|
|
2265
2265
|
]),
|
|
@@ -2280,9 +2280,9 @@ const g3 = { class: "ao-page-header" }, y3 = { class: "ao-page-header-main" }, b
|
|
|
2280
2280
|
},
|
|
2281
2281
|
emits: ["goBack"],
|
|
2282
2282
|
setup(s) {
|
|
2283
|
-
return (e, t) => (
|
|
2283
|
+
return (e, t) => (d(), h("header", g3, [
|
|
2284
2284
|
r("div", y3, [
|
|
2285
|
-
e.canGoBack ? (
|
|
2285
|
+
e.canGoBack ? (d(), q(ue, {
|
|
2286
2286
|
key: 0,
|
|
2287
2287
|
"icon-name": "ArrowBackRounded",
|
|
2288
2288
|
variant: "ghost",
|
|
@@ -2313,7 +2313,7 @@ const w3 = ["type"], $3 = {
|
|
|
2313
2313
|
},
|
|
2314
2314
|
setup(s) {
|
|
2315
2315
|
const e = s, t = f(() => e.size), n = f(() => e.isLoading ? "Loading" : e.iconName);
|
|
2316
|
-
return (a, o) => (
|
|
2316
|
+
return (a, o) => (d(), h("button", {
|
|
2317
2317
|
type: a.type,
|
|
2318
2318
|
class: G([
|
|
2319
2319
|
"ao-button-card",
|
|
@@ -2323,9 +2323,9 @@ const w3 = ["type"], $3 = {
|
|
|
2323
2323
|
])
|
|
2324
2324
|
}, [
|
|
2325
2325
|
x(a.$slots, "default", {}, () => [
|
|
2326
|
-
a.label ? (
|
|
2326
|
+
a.label ? (d(), h("span", $3, U(a.label), 1)) : S("", !0)
|
|
2327
2327
|
]),
|
|
2328
|
-
n.value ? (
|
|
2328
|
+
n.value ? (d(), q(le, {
|
|
2329
2329
|
key: 0,
|
|
2330
2330
|
name: n.value,
|
|
2331
2331
|
class: "ao-button-card__icon",
|
|
@@ -2357,16 +2357,16 @@ const I3 = { class: "ao-card-template-item__footer" }, M3 = {
|
|
|
2357
2357
|
}, o = () => {
|
|
2358
2358
|
e("remove");
|
|
2359
2359
|
};
|
|
2360
|
-
return (i, l) => (
|
|
2360
|
+
return (i, l) => (d(), q(dt, { "onUpdate:title": t }, {
|
|
2361
2361
|
footer: F(() => [
|
|
2362
2362
|
r("ul", I3, [
|
|
2363
|
-
(
|
|
2364
|
-
i.$props[
|
|
2363
|
+
(d(), h(oe, null, me(n, (C) => (d(), h(oe, { key: C }, [
|
|
2364
|
+
i.$props[C] ? (d(), h("li", M3, [
|
|
2365
2365
|
y(le, {
|
|
2366
|
-
name: a[
|
|
2366
|
+
name: a[C],
|
|
2367
2367
|
size: "sm"
|
|
2368
2368
|
}, null, 8, ["name"]),
|
|
2369
|
-
r("span", A3, U(i.$props[
|
|
2369
|
+
r("span", A3, U(i.$props[C]), 1)
|
|
2370
2370
|
])) : S("", !0)
|
|
2371
2371
|
], 64))), 64))
|
|
2372
2372
|
])
|
|
@@ -2398,7 +2398,7 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2398
2398
|
var a;
|
|
2399
2399
|
return (a = e.milestones) == null ? void 0 : a.length;
|
|
2400
2400
|
}), n = f(() => e.milestones ? vt(e.milestones) : 0);
|
|
2401
|
-
return (a, o) => (
|
|
2401
|
+
return (a, o) => (d(), q(q1, De({
|
|
2402
2402
|
title: a.name,
|
|
2403
2403
|
activities: n.value,
|
|
2404
2404
|
milestones: t.value
|
|
@@ -2419,7 +2419,7 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2419
2419
|
var n;
|
|
2420
2420
|
return ((n = e.activities) == null ? void 0 : n.length) || 0;
|
|
2421
2421
|
});
|
|
2422
|
-
return (n, a) => (
|
|
2422
|
+
return (n, a) => (d(), q(q1, { activities: t.value }, {
|
|
2423
2423
|
default: F(() => [
|
|
2424
2424
|
x(n.$slots, "default")
|
|
2425
2425
|
]),
|
|
@@ -2443,14 +2443,14 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2443
2443
|
e("updateMilestone", l);
|
|
2444
2444
|
}, i = (l) => {
|
|
2445
2445
|
if (l.moved) {
|
|
2446
|
-
const
|
|
2446
|
+
const C = I1(l, t.phase.milestones);
|
|
2447
2447
|
e("updateMilestone", {
|
|
2448
2448
|
id: l.moved.element.id,
|
|
2449
|
-
rank:
|
|
2449
|
+
rank: C
|
|
2450
2450
|
});
|
|
2451
2451
|
}
|
|
2452
2452
|
};
|
|
2453
|
-
return (l,
|
|
2453
|
+
return (l, C) => l.phase ? (d(), q(j(i1), {
|
|
2454
2454
|
key: 0,
|
|
2455
2455
|
"model-value": l.phase.milestones,
|
|
2456
2456
|
class: "ao-templates__list",
|
|
@@ -2466,20 +2466,20 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2466
2466
|
class: "ao-list__title"
|
|
2467
2467
|
})
|
|
2468
2468
|
]),
|
|
2469
|
-
item: F(({ element:
|
|
2470
|
-
(
|
|
2471
|
-
key:
|
|
2472
|
-
title:
|
|
2473
|
-
activities:
|
|
2474
|
-
"is-active": l.milestoneId ===
|
|
2469
|
+
item: F(({ element: c }) => [
|
|
2470
|
+
(d(), q(L3, {
|
|
2471
|
+
key: c.id,
|
|
2472
|
+
title: c.name,
|
|
2473
|
+
activities: c.activities,
|
|
2474
|
+
"is-active": l.milestoneId === c.id,
|
|
2475
2475
|
"is-draggable": !0,
|
|
2476
|
-
"onUpdate:title": (
|
|
2477
|
-
onClick: (
|
|
2476
|
+
"onUpdate:title": (v) => o({ id: c.id, name: v }),
|
|
2477
|
+
onClick: (v) => l.$router.push({
|
|
2478
2478
|
params: {
|
|
2479
|
-
milestoneId:
|
|
2479
|
+
milestoneId: c.id
|
|
2480
2480
|
}
|
|
2481
2481
|
}),
|
|
2482
|
-
onRemove: () => a(
|
|
2482
|
+
onRemove: () => a(c.id)
|
|
2483
2483
|
}, null, 8, ["title", "activities", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
2484
2484
|
]),
|
|
2485
2485
|
footer: F(() => [
|
|
@@ -2505,7 +2505,7 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2505
2505
|
var n;
|
|
2506
2506
|
return ((n = e.subtasks) == null ? void 0 : n.length) || 0;
|
|
2507
2507
|
});
|
|
2508
|
-
return (n, a) => (
|
|
2508
|
+
return (n, a) => (d(), q(q1, { subtasks: t.value }, {
|
|
2509
2509
|
default: F(() => [
|
|
2510
2510
|
x(n.$slots, "default")
|
|
2511
2511
|
]),
|
|
@@ -2532,14 +2532,14 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2532
2532
|
e("removeActivity", { id: l });
|
|
2533
2533
|
}, i = (l) => {
|
|
2534
2534
|
if (l.moved) {
|
|
2535
|
-
const
|
|
2535
|
+
const C = I1(l, t.milestone.activities);
|
|
2536
2536
|
e("updateActivity", {
|
|
2537
2537
|
id: l.moved.element.id,
|
|
2538
|
-
rank:
|
|
2538
|
+
rank: C
|
|
2539
2539
|
});
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
|
-
return (l,
|
|
2542
|
+
return (l, C) => l.milestone ? (d(), q(j(i1), {
|
|
2543
2543
|
key: 0,
|
|
2544
2544
|
"model-value": l.milestone.activities,
|
|
2545
2545
|
title: l.$t("template.activities.title"),
|
|
@@ -2555,16 +2555,16 @@ const k3 = /* @__PURE__ */ K({
|
|
|
2555
2555
|
class: "ao-list__title"
|
|
2556
2556
|
})
|
|
2557
2557
|
]),
|
|
2558
|
-
item: F(({ element:
|
|
2559
|
-
(
|
|
2560
|
-
key:
|
|
2561
|
-
title:
|
|
2562
|
-
subtasks:
|
|
2563
|
-
"is-active": l.activityId ===
|
|
2558
|
+
item: F(({ element: c }) => [
|
|
2559
|
+
(d(), q(E3, {
|
|
2560
|
+
key: c.id,
|
|
2561
|
+
title: c.name,
|
|
2562
|
+
subtasks: c.subtasks,
|
|
2563
|
+
"is-active": l.activityId === c.id,
|
|
2564
2564
|
"is-draggable": !0,
|
|
2565
|
-
"onUpdate:title": (
|
|
2566
|
-
onClick: (
|
|
2567
|
-
onRemove: () => o(
|
|
2565
|
+
"onUpdate:title": (v) => a({ id: c.id, name: v }),
|
|
2566
|
+
onClick: (v) => l.$router.push({ params: { activityId: c.id } }),
|
|
2567
|
+
onRemove: () => o(c.id)
|
|
2568
2568
|
}, null, 8, ["title", "subtasks", "is-active", "onUpdate:title", "onClick", "onRemove"]))
|
|
2569
2569
|
]),
|
|
2570
2570
|
footer: F(() => [
|
|
@@ -2584,32 +2584,32 @@ function ke(s) {
|
|
|
2584
2584
|
return [null, void 0].indexOf(s) !== -1;
|
|
2585
2585
|
}
|
|
2586
2586
|
function D3(s, e, t) {
|
|
2587
|
-
const { object: n, valueProp: a, mode: o } = we(s), i = Pe().proxy, l = t.iv,
|
|
2588
|
-
l.value = m
|
|
2589
|
-
const I =
|
|
2587
|
+
const { object: n, valueProp: a, mode: o } = we(s), i = Pe().proxy, l = t.iv, C = (m, g = !0) => {
|
|
2588
|
+
l.value = v(m);
|
|
2589
|
+
const I = c(m);
|
|
2590
2590
|
e.emit("change", I, i), g && (e.emit("input", I), e.emit("update:modelValue", I));
|
|
2591
|
-
},
|
|
2591
|
+
}, c = (m) => n.value || ke(m) ? m : Array.isArray(m) ? m.map((g) => g[a.value]) : m[a.value], v = (m) => ke(m) ? o.value === "single" ? {} : [] : m;
|
|
2592
2592
|
return {
|
|
2593
|
-
update:
|
|
2593
|
+
update: C
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
2596
|
function B3(s, e) {
|
|
2597
|
-
const { value: t, modelValue: n, mode: a, valueProp: o } = we(s), i = J(a.value !== "single" ? [] : {}), l = n && n.value !== void 0 ? n : t,
|
|
2597
|
+
const { value: t, modelValue: n, mode: a, valueProp: o } = we(s), i = J(a.value !== "single" ? [] : {}), l = n && n.value !== void 0 ? n : t, C = f(() => a.value === "single" ? i.value[o.value] : i.value.map((v) => v[o.value])), c = f(() => a.value !== "single" ? i.value.map((v) => v[o.value]).join(",") : i.value[o.value]);
|
|
2598
2598
|
return {
|
|
2599
2599
|
iv: i,
|
|
2600
2600
|
internalValue: i,
|
|
2601
2601
|
ev: l,
|
|
2602
2602
|
externalValue: l,
|
|
2603
|
-
textValue:
|
|
2604
|
-
plainValue:
|
|
2603
|
+
textValue: c,
|
|
2604
|
+
plainValue: C
|
|
2605
2605
|
};
|
|
2606
2606
|
}
|
|
2607
2607
|
function P3(s, e, t) {
|
|
2608
|
-
const { regex: n } = we(s), a = Pe().proxy, o = t.isOpen, i = t.open, l = J(null),
|
|
2608
|
+
const { regex: n } = we(s), a = Pe().proxy, o = t.isOpen, i = t.open, l = J(null), C = J(null), c = () => {
|
|
2609
2609
|
l.value = "";
|
|
2610
|
-
},
|
|
2610
|
+
}, v = (I) => {
|
|
2611
2611
|
l.value = I.target.value;
|
|
2612
|
-
},
|
|
2612
|
+
}, m = (I) => {
|
|
2613
2613
|
if (n && n.value) {
|
|
2614
2614
|
let V = n.value;
|
|
2615
2615
|
typeof V == "string" && (V = new RegExp(V)), I.key.match(V) || I.preventDefault();
|
|
@@ -2626,22 +2626,22 @@ function P3(s, e, t) {
|
|
|
2626
2626
|
!o.value && I && i(), e.emit("search-change", I, a);
|
|
2627
2627
|
}), {
|
|
2628
2628
|
search: l,
|
|
2629
|
-
input:
|
|
2630
|
-
clearSearch:
|
|
2631
|
-
handleSearchInput:
|
|
2632
|
-
handleKeypress:
|
|
2629
|
+
input: C,
|
|
2630
|
+
clearSearch: c,
|
|
2631
|
+
handleSearchInput: v,
|
|
2632
|
+
handleKeypress: m,
|
|
2633
2633
|
handlePaste: g
|
|
2634
2634
|
};
|
|
2635
2635
|
}
|
|
2636
2636
|
function j3(s, e, t) {
|
|
2637
|
-
const { groupSelect: n, mode: a, groups: o, disabledProp: i } = we(s), l = J(null),
|
|
2638
|
-
|
|
2637
|
+
const { groupSelect: n, mode: a, groups: o, disabledProp: i } = we(s), l = J(null), C = (v) => {
|
|
2638
|
+
v === void 0 || v !== null && v[i.value] || o.value && v && v.group && (a.value === "single" || !n.value) || (l.value = v);
|
|
2639
2639
|
};
|
|
2640
2640
|
return {
|
|
2641
2641
|
pointer: l,
|
|
2642
|
-
setPointer:
|
|
2642
|
+
setPointer: C,
|
|
2643
2643
|
clearPointer: () => {
|
|
2644
|
-
|
|
2644
|
+
C(null);
|
|
2645
2645
|
}
|
|
2646
2646
|
};
|
|
2647
2647
|
}
|
|
@@ -2664,10 +2664,10 @@ function R3(s, e, t) {
|
|
|
2664
2664
|
trackBy: o,
|
|
2665
2665
|
limit: i,
|
|
2666
2666
|
hideSelected: l,
|
|
2667
|
-
createTag:
|
|
2668
|
-
createOption:
|
|
2669
|
-
label:
|
|
2670
|
-
appendNewTag:
|
|
2667
|
+
createTag: C,
|
|
2668
|
+
createOption: c,
|
|
2669
|
+
label: v,
|
|
2670
|
+
appendNewTag: m,
|
|
2671
2671
|
appendNewOption: g,
|
|
2672
2672
|
multipleLabel: I,
|
|
2673
2673
|
object: V,
|
|
@@ -2696,48 +2696,48 @@ function R3(s, e, t) {
|
|
|
2696
2696
|
disabledProp: D,
|
|
2697
2697
|
searchStart: te,
|
|
2698
2698
|
searchFilter: ae
|
|
2699
|
-
} = we(s), Q = Pe().proxy, R = t.iv, A = t.ev, P = t.search, Ce = t.clearSearch, Me = t.update, yt = t.pointer, Ze = t.clearPointer, bt = t.focus, wt = t.deactivate, Ne = t.close, $t = t.localize, Ye = J([]), He = J([]), Ae = J(!1), S1 = J(null), k1 = J(Te.value && i.value === -1 ? 10 : i.value), K1 = f(() =>
|
|
2699
|
+
} = we(s), Q = Pe().proxy, R = t.iv, A = t.ev, P = t.search, Ce = t.clearSearch, Me = t.update, yt = t.pointer, Ze = t.clearPointer, bt = t.focus, wt = t.deactivate, Ne = t.close, $t = t.localize, Ye = J([]), He = J([]), Ae = J(!1), S1 = J(null), k1 = J(Te.value && i.value === -1 ? 10 : i.value), K1 = f(() => C.value || c.value || !1), It = f(() => m.value !== void 0 ? m.value : g.value !== void 0 ? g.value : !0), Oe = f(() => {
|
|
2700
2700
|
if (ge.value) {
|
|
2701
|
-
let
|
|
2701
|
+
let p = r1.value || /* istanbul ignore next */
|
|
2702
2702
|
[], L = [];
|
|
2703
|
-
return
|
|
2703
|
+
return p.forEach((Y) => {
|
|
2704
2704
|
O1(Y[u.value]).forEach((re) => {
|
|
2705
2705
|
L.push(Object.assign({}, re, Y[D.value] ? { [D.value]: !0 } : {}));
|
|
2706
2706
|
});
|
|
2707
2707
|
}), L;
|
|
2708
2708
|
} else {
|
|
2709
|
-
let
|
|
2709
|
+
let p = O1(He.value || /* istanbul ignore next */
|
|
2710
2710
|
[]);
|
|
2711
|
-
return Ye.value.length && (
|
|
2711
|
+
return Ye.value.length && (p = p.concat(Ye.value)), p;
|
|
2712
2712
|
}
|
|
2713
2713
|
}), x1 = f(() => {
|
|
2714
|
-
let
|
|
2715
|
-
return ye.value && (
|
|
2714
|
+
let p = Oe.value;
|
|
2715
|
+
return ye.value && (p = p.reverse()), Re.value.length && (p = Re.value.concat(p)), H1(p);
|
|
2716
2716
|
}), Xe = f(() => {
|
|
2717
|
-
let
|
|
2718
|
-
return k1.value > 0 && (
|
|
2717
|
+
let p = x1.value;
|
|
2718
|
+
return k1.value > 0 && (p = p.slice(0, k1.value)), p;
|
|
2719
2719
|
}), r1 = f(() => {
|
|
2720
2720
|
if (!ge.value)
|
|
2721
2721
|
return [];
|
|
2722
|
-
let
|
|
2722
|
+
let p = [], L = He.value || /* istanbul ignore next */
|
|
2723
2723
|
[];
|
|
2724
|
-
return Ye.value.length &&
|
|
2724
|
+
return Ye.value.length && p.push({
|
|
2725
2725
|
[N.value]: " ",
|
|
2726
2726
|
[u.value]: [...Ye.value],
|
|
2727
2727
|
__CREATE__: !0
|
|
2728
|
-
}),
|
|
2728
|
+
}), p.concat(L);
|
|
2729
2729
|
}), Mt = f(() => {
|
|
2730
|
-
let
|
|
2731
|
-
return Re.value.length && (
|
|
2730
|
+
let p = [...r1.value].map((L) => ({ ...L }));
|
|
2731
|
+
return Re.value.length && (p[0] && p[0].__CREATE__ ? p[0][u.value] = [...Re.value, ...p[0][u.value]] : p = [{
|
|
2732
2732
|
[N.value]: " ",
|
|
2733
2733
|
[u.value]: [...Re.value],
|
|
2734
2734
|
__CREATE__: !0
|
|
2735
|
-
}].concat(
|
|
2735
|
+
}].concat(p)), p;
|
|
2736
2736
|
}), W1 = f(() => {
|
|
2737
2737
|
if (!ge.value)
|
|
2738
2738
|
return [];
|
|
2739
|
-
let
|
|
2740
|
-
return Nt((
|
|
2739
|
+
let p = Mt.value;
|
|
2740
|
+
return Nt((p || /* istanbul ignore next */
|
|
2741
2741
|
[]).map((L, Y) => {
|
|
2742
2742
|
const re = O1(L[u.value]);
|
|
2743
2743
|
return {
|
|
@@ -2759,9 +2759,9 @@ function R3(s, e, t) {
|
|
|
2759
2759
|
}), At = f(() => I !== void 0 && I.value !== void 0 ? I.value(R.value, Q) : R.value && R.value.length > 1 ? `${R.value.length} options selected` : "1 option selected"), St = f(() => !Oe.value.length && !Ae.value && !Re.value.length), kt = f(() => Oe.value.length > 0 && Xe.value.length == 0 && (P.value && ge.value || !ge.value)), Re = f(() => K1.value === !1 || !P.value ? [] : Pt(P.value) !== -1 ? [] : [{
|
|
2760
2760
|
[_.value]: P.value,
|
|
2761
2761
|
[Se.value]: P.value,
|
|
2762
|
-
[
|
|
2762
|
+
[v.value]: P.value,
|
|
2763
2763
|
__CREATE__: !0
|
|
2764
|
-
}]), Se = f(() => o.value ||
|
|
2764
|
+
}]), Se = f(() => o.value || v.value), Lt = f(() => {
|
|
2765
2765
|
switch (a.value) {
|
|
2766
2766
|
case "single":
|
|
2767
2767
|
return null;
|
|
@@ -2769,115 +2769,115 @@ function R3(s, e, t) {
|
|
|
2769
2769
|
case "tags":
|
|
2770
2770
|
return [];
|
|
2771
2771
|
}
|
|
2772
|
-
}), Tt = f(() => $.value || Ae.value), Ue = (
|
|
2773
|
-
switch (typeof
|
|
2772
|
+
}), Tt = f(() => $.value || Ae.value), Ue = (p) => {
|
|
2773
|
+
switch (typeof p != "object" && (p = Ee(p)), a.value) {
|
|
2774
2774
|
case "single":
|
|
2775
|
-
Me(
|
|
2775
|
+
Me(p);
|
|
2776
2776
|
break;
|
|
2777
2777
|
case "multiple":
|
|
2778
2778
|
case "tags":
|
|
2779
|
-
Me(R.value.concat(
|
|
2779
|
+
Me(R.value.concat(p));
|
|
2780
2780
|
break;
|
|
2781
2781
|
}
|
|
2782
|
-
e.emit("select", Y1(
|
|
2783
|
-
}, qe = (
|
|
2784
|
-
switch (typeof
|
|
2782
|
+
e.emit("select", Y1(p), p, Q);
|
|
2783
|
+
}, qe = (p) => {
|
|
2784
|
+
switch (typeof p != "object" && (p = Ee(p)), a.value) {
|
|
2785
2785
|
case "single":
|
|
2786
2786
|
Q1();
|
|
2787
2787
|
break;
|
|
2788
2788
|
case "tags":
|
|
2789
2789
|
case "multiple":
|
|
2790
|
-
Me(Array.isArray(
|
|
2790
|
+
Me(Array.isArray(p) ? R.value.filter((L) => p.map((Y) => Y[_.value]).indexOf(L[_.value]) === -1) : R.value.filter((L) => L[_.value] != p[_.value]));
|
|
2791
2791
|
break;
|
|
2792
2792
|
}
|
|
2793
|
-
e.emit("deselect", Y1(
|
|
2794
|
-
}, Y1 = (
|
|
2795
|
-
qe(
|
|
2796
|
-
}, Vt = (
|
|
2793
|
+
e.emit("deselect", Y1(p), p, Q);
|
|
2794
|
+
}, Y1 = (p) => V.value ? p : p[_.value], X1 = (p) => {
|
|
2795
|
+
qe(p);
|
|
2796
|
+
}, Vt = (p, L) => {
|
|
2797
2797
|
if (L.button !== 0) {
|
|
2798
2798
|
L.preventDefault();
|
|
2799
2799
|
return;
|
|
2800
2800
|
}
|
|
2801
|
-
X1(
|
|
2801
|
+
X1(p);
|
|
2802
2802
|
}, Q1 = () => {
|
|
2803
2803
|
e.emit("clear", Q), Me(Lt.value);
|
|
2804
|
-
}, Ve = (
|
|
2805
|
-
if (
|
|
2806
|
-
return a.value === "single" ? !1 : Bt(
|
|
2804
|
+
}, Ve = (p) => {
|
|
2805
|
+
if (p.group !== void 0)
|
|
2806
|
+
return a.value === "single" ? !1 : Bt(p[u.value]) && p[u.value].length;
|
|
2807
2807
|
switch (a.value) {
|
|
2808
2808
|
case "single":
|
|
2809
|
-
return !ke(R.value) && R.value[_.value] ==
|
|
2809
|
+
return !ke(R.value) && R.value[_.value] == p[_.value];
|
|
2810
2810
|
case "tags":
|
|
2811
2811
|
case "multiple":
|
|
2812
|
-
return !ke(R.value) && R.value.map((L) => L[_.value]).indexOf(
|
|
2812
|
+
return !ke(R.value) && R.value.map((L) => L[_.value]).indexOf(p[_.value]) !== -1;
|
|
2813
2813
|
}
|
|
2814
|
-
}, T1 = (
|
|
2815
|
-
if (!T1(
|
|
2816
|
-
if (k && k.value && !Ve(
|
|
2817
|
-
Ae.value = !0,
|
|
2814
|
+
}, T1 = (p) => p[D.value] === !0, V1 = () => ce === void 0 || ce.value === -1 || !L1.value && ce.value > 0 ? !1 : R.value.length >= ce.value, Et = (p) => {
|
|
2815
|
+
if (!T1(p)) {
|
|
2816
|
+
if (k && k.value && !Ve(p) && p.__CREATE__ && (p = { ...p }, delete p.__CREATE__, p = k.value(p, Q), p instanceof Promise)) {
|
|
2817
|
+
Ae.value = !0, p.then((L) => {
|
|
2818
2818
|
Ae.value = !1, J1(L);
|
|
2819
2819
|
});
|
|
2820
2820
|
return;
|
|
2821
2821
|
}
|
|
2822
|
-
J1(
|
|
2822
|
+
J1(p);
|
|
2823
2823
|
}
|
|
2824
|
-
}, J1 = (
|
|
2825
|
-
switch (
|
|
2824
|
+
}, J1 = (p) => {
|
|
2825
|
+
switch (p.__CREATE__ && (p = { ...p }, delete p.__CREATE__), a.value) {
|
|
2826
2826
|
case "single":
|
|
2827
|
-
if (
|
|
2828
|
-
ee.value && qe(
|
|
2827
|
+
if (p && Ve(p)) {
|
|
2828
|
+
ee.value && qe(p), W.value && (Ze(), Ne());
|
|
2829
2829
|
return;
|
|
2830
2830
|
}
|
|
2831
|
-
|
|
2831
|
+
p && E1(p), se.value && Ce(), Z.value && (Ze(), Ne()), p && Ue(p);
|
|
2832
2832
|
break;
|
|
2833
2833
|
case "multiple":
|
|
2834
|
-
if (
|
|
2835
|
-
qe(
|
|
2834
|
+
if (p && Ve(p)) {
|
|
2835
|
+
qe(p), W.value && (Ze(), Ne());
|
|
2836
2836
|
return;
|
|
2837
2837
|
}
|
|
2838
2838
|
if (V1()) {
|
|
2839
2839
|
e.emit("max", Q);
|
|
2840
2840
|
return;
|
|
2841
2841
|
}
|
|
2842
|
-
|
|
2842
|
+
p && (E1(p), Ue(p)), se.value && Ce(), l.value && Ze(), Z.value && Ne();
|
|
2843
2843
|
break;
|
|
2844
2844
|
case "tags":
|
|
2845
|
-
if (
|
|
2846
|
-
qe(
|
|
2845
|
+
if (p && Ve(p)) {
|
|
2846
|
+
qe(p), W.value && (Ze(), Ne());
|
|
2847
2847
|
return;
|
|
2848
2848
|
}
|
|
2849
2849
|
if (V1()) {
|
|
2850
2850
|
e.emit("max", Q);
|
|
2851
2851
|
return;
|
|
2852
2852
|
}
|
|
2853
|
-
|
|
2853
|
+
p && E1(p), se.value && Ce(), p && Ue(p), l.value && Ze(), Z.value && Ne();
|
|
2854
2854
|
break;
|
|
2855
2855
|
}
|
|
2856
2856
|
Z.value || bt();
|
|
2857
|
-
}, Ht = (
|
|
2858
|
-
if (!(T1(
|
|
2857
|
+
}, Ht = (p) => {
|
|
2858
|
+
if (!(T1(p) || a.value === "single" || !M.value)) {
|
|
2859
2859
|
switch (a.value) {
|
|
2860
2860
|
case "multiple":
|
|
2861
2861
|
case "tags":
|
|
2862
|
-
Dt(
|
|
2863
|
-
|
|
2862
|
+
Dt(p[u.value]) ? qe(p[u.value]) : Ue(
|
|
2863
|
+
p[u.value].filter((L) => R.value.map((Y) => Y[_.value]).indexOf(L[_.value]) === -1).filter((L) => !L[D.value]).filter((L, Y) => R.value.length + 1 + Y <= ce.value || ce.value === -1)
|
|
2864
2864
|
);
|
|
2865
2865
|
break;
|
|
2866
2866
|
}
|
|
2867
2867
|
Z.value && wt();
|
|
2868
2868
|
}
|
|
2869
|
-
}, E1 = (
|
|
2870
|
-
Ee(
|
|
2869
|
+
}, E1 = (p) => {
|
|
2870
|
+
Ee(p[_.value]) === void 0 && K1.value && (e.emit("tag", p[_.value], Q), e.emit("option", p[_.value], Q), e.emit("create", p[_.value], Q), It.value && Zt(p), Ce());
|
|
2871
2871
|
}, Ot = () => {
|
|
2872
|
-
a.value !== "single" && Ue(Xe.value.filter((
|
|
2873
|
-
}, Dt = (
|
|
2874
|
-
parseInt(
|
|
2875
|
-
), jt = (
|
|
2876
|
-
Ye.value.push(
|
|
2877
|
-
}, Nt = (
|
|
2872
|
+
a.value !== "single" && Ue(Xe.value.filter((p) => !p.disabled && !Ve(p)));
|
|
2873
|
+
}, Dt = (p) => p.find((L) => !Ve(L) && !L[D.value]) === void 0, Bt = (p) => p.find((L) => !Ve(L)) === void 0, Ee = (p) => Oe.value[Oe.value.map((L) => String(L[_.value])).indexOf(String(p))], Pt = (p, L = !0) => Oe.value.map((Y) => parseInt(Y[Se.value]) == Y[Se.value] ? parseInt(Y[Se.value]) : Y[Se.value]).indexOf(
|
|
2874
|
+
parseInt(p) == p ? parseInt(p) : p
|
|
2875
|
+
), jt = (p) => ["tags", "multiple"].indexOf(a.value) !== -1 && l.value && Ve(p), Zt = (p) => {
|
|
2876
|
+
Ye.value.push(p);
|
|
2877
|
+
}, Nt = (p) => w.value ? p.filter(
|
|
2878
2878
|
(L) => P.value ? L.__VISIBLE__.length : L[u.value].length
|
|
2879
|
-
) :
|
|
2880
|
-
let Y =
|
|
2879
|
+
) : p.filter((L) => P.value ? L.__VISIBLE__.length : !0), H1 = (p, L = !0) => {
|
|
2880
|
+
let Y = p;
|
|
2881
2881
|
if (P.value && B.value) {
|
|
2882
2882
|
let re = ae.value;
|
|
2883
2883
|
re || (re = (Qe, Pc) => {
|
|
@@ -2886,17 +2886,17 @@ function R3(s, e, t) {
|
|
|
2886
2886
|
}), Y = Y.filter(re);
|
|
2887
2887
|
}
|
|
2888
2888
|
return l.value && L && (Y = Y.filter((re) => !jt(re))), Y;
|
|
2889
|
-
}, O1 = (
|
|
2890
|
-
let L =
|
|
2889
|
+
}, O1 = (p) => {
|
|
2890
|
+
let L = p;
|
|
2891
2891
|
return Z3(L) && (L = Object.keys(L).map((Y) => {
|
|
2892
2892
|
let re = L[Y];
|
|
2893
|
-
return { [_.value]: Y, [Se.value]: re, [
|
|
2894
|
-
})), L = L.map((Y) => typeof Y == "object" ? Y : { [_.value]: Y, [Se.value]: Y, [
|
|
2893
|
+
return { [_.value]: Y, [Se.value]: re, [v.value]: re };
|
|
2894
|
+
})), L = L.map((Y) => typeof Y == "object" ? Y : { [_.value]: Y, [Se.value]: Y, [v.value]: Y }), L;
|
|
2895
2895
|
}, c1 = () => {
|
|
2896
2896
|
ke(A.value) || (R.value = u1(A.value));
|
|
2897
|
-
}, d1 = (
|
|
2897
|
+
}, d1 = (p) => (Ae.value = !0, new Promise((L, Y) => {
|
|
2898
2898
|
n.value(P.value, Q).then((re) => {
|
|
2899
|
-
He.value = re || [], typeof
|
|
2899
|
+
He.value = re || [], typeof p == "function" && p(re), Ae.value = !1;
|
|
2900
2900
|
}).catch((re) => {
|
|
2901
2901
|
console.error(re), He.value = [], Ae.value = !1;
|
|
2902
2902
|
}).finally(() => {
|
|
@@ -2905,34 +2905,34 @@ function R3(s, e, t) {
|
|
|
2905
2905
|
})), D1 = () => {
|
|
2906
2906
|
if (L1.value)
|
|
2907
2907
|
if (a.value === "single") {
|
|
2908
|
-
let
|
|
2909
|
-
if (
|
|
2910
|
-
let L =
|
|
2911
|
-
R.value[
|
|
2908
|
+
let p = Ee(R.value[_.value]);
|
|
2909
|
+
if (p !== void 0) {
|
|
2910
|
+
let L = p[v.value];
|
|
2911
|
+
R.value[v.value] = L, V.value && (A.value[v.value] = L);
|
|
2912
2912
|
}
|
|
2913
2913
|
} else
|
|
2914
|
-
R.value.forEach((
|
|
2914
|
+
R.value.forEach((p, L) => {
|
|
2915
2915
|
let Y = Ee(R.value[L][_.value]);
|
|
2916
2916
|
if (Y !== void 0) {
|
|
2917
|
-
let re = Y[
|
|
2918
|
-
R.value[L][
|
|
2917
|
+
let re = Y[v.value];
|
|
2918
|
+
R.value[L][v.value] = re, V.value && (A.value[L][v.value] = re);
|
|
2919
2919
|
}
|
|
2920
2920
|
});
|
|
2921
|
-
}, Rt = (
|
|
2922
|
-
d1(
|
|
2923
|
-
}, u1 = (
|
|
2924
|
-
[
|
|
2925
|
-
[_.value]:
|
|
2926
|
-
[Se.value]:
|
|
2927
|
-
} : {}) :
|
|
2928
|
-
[
|
|
2921
|
+
}, Rt = (p) => {
|
|
2922
|
+
d1(p);
|
|
2923
|
+
}, u1 = (p) => ke(p) ? a.value === "single" ? {} : [] : V.value ? p : a.value === "single" ? Ee(p) || (E.value ? {
|
|
2924
|
+
[v.value]: p,
|
|
2925
|
+
[_.value]: p,
|
|
2926
|
+
[Se.value]: p
|
|
2927
|
+
} : {}) : p.filter((L) => !!Ee(L) || E.value).map((L) => Ee(L) || {
|
|
2928
|
+
[v.value]: L,
|
|
2929
2929
|
[_.value]: L,
|
|
2930
2930
|
[Se.value]: L
|
|
2931
2931
|
}), et = () => {
|
|
2932
|
-
S1.value = _e(P, (
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
(
|
|
2932
|
+
S1.value = _e(P, (p) => {
|
|
2933
|
+
p.length < b.value || !p && b.value !== 0 || (Ae.value = !0, X.value && (He.value = []), setTimeout(() => {
|
|
2934
|
+
p == P.value && n.value(P.value, Q).then((L) => {
|
|
2935
|
+
(p == P.value || !P.value) && (He.value = L, yt.value = Xe.value.filter((Y) => Y[D.value] !== !0)[0] || null, Ae.value = !1);
|
|
2936
2936
|
}).catch(
|
|
2937
2937
|
/* istanbul ignore next */
|
|
2938
2938
|
(L) => {
|
|
@@ -2944,25 +2944,25 @@ function R3(s, e, t) {
|
|
|
2944
2944
|
};
|
|
2945
2945
|
if (a.value !== "single" && !ke(A.value) && !Array.isArray(A.value))
|
|
2946
2946
|
throw new Error(`v-model must be an array when using "${a.value}" mode`);
|
|
2947
|
-
return n && typeof n.value == "function" ? T.value ? d1(c1) : V.value == !0 && c1() : (He.value = n.value, c1()), O.value > -1 && et(), _e(O, (
|
|
2948
|
-
S1.value && S1.value(),
|
|
2949
|
-
}), _e(A, (
|
|
2950
|
-
if (ke(
|
|
2951
|
-
Me(u1(
|
|
2947
|
+
return n && typeof n.value == "function" ? T.value ? d1(c1) : V.value == !0 && c1() : (He.value = n.value, c1()), O.value > -1 && et(), _e(O, (p, L) => {
|
|
2948
|
+
S1.value && S1.value(), p >= 0 && et();
|
|
2949
|
+
}), _e(A, (p) => {
|
|
2950
|
+
if (ke(p)) {
|
|
2951
|
+
Me(u1(p), !1);
|
|
2952
2952
|
return;
|
|
2953
2953
|
}
|
|
2954
2954
|
switch (a.value) {
|
|
2955
2955
|
case "single":
|
|
2956
|
-
(V.value ?
|
|
2956
|
+
(V.value ? p[_.value] != R.value[_.value] : p != R.value[_.value]) && Me(u1(p), !1);
|
|
2957
2957
|
break;
|
|
2958
2958
|
case "multiple":
|
|
2959
2959
|
case "tags":
|
|
2960
|
-
N3(V.value ?
|
|
2960
|
+
N3(V.value ? p.map((L) => L[_.value]) : p, R.value.map((L) => L[_.value])) || Me(u1(p), !1);
|
|
2961
2961
|
break;
|
|
2962
2962
|
}
|
|
2963
|
-
}, { deep: !0 }), _e(n, (
|
|
2964
|
-
typeof s.options == "function" ? T.value && (!L ||
|
|
2965
|
-
}), _e(
|
|
2963
|
+
}, { deep: !0 }), _e(n, (p, L) => {
|
|
2964
|
+
typeof s.options == "function" ? T.value && (!L || p && p.toString() !== L.toString()) && d1() : (He.value = s.options, Object.keys(R.value).length || c1(), D1());
|
|
2965
|
+
}), _e(v, D1), {
|
|
2966
2966
|
pfo: x1,
|
|
2967
2967
|
fo: Xe,
|
|
2968
2968
|
filteredOptions: Xe,
|
|
@@ -3003,11 +3003,11 @@ function U3(s, e, t) {
|
|
|
3003
3003
|
searchable: o,
|
|
3004
3004
|
groupLabel: i,
|
|
3005
3005
|
groups: l,
|
|
3006
|
-
mode:
|
|
3007
|
-
groupSelect:
|
|
3008
|
-
disabledProp:
|
|
3009
|
-
groupOptions:
|
|
3010
|
-
} = we(s), g = t.fo, I = t.fg, V = t.handleOptionClick, $ = t.handleGroupClick, O = t.search, T = t.pointer, b = t.setPointer, B = t.clearPointer, X = t.multiselect, se = t.isOpen, _ = f(() => g.value.filter((A) => !A[
|
|
3006
|
+
mode: C,
|
|
3007
|
+
groupSelect: c,
|
|
3008
|
+
disabledProp: v,
|
|
3009
|
+
groupOptions: m
|
|
3010
|
+
} = we(s), g = t.fo, I = t.fg, V = t.handleOptionClick, $ = t.handleGroupClick, O = t.search, T = t.pointer, b = t.setPointer, B = t.clearPointer, X = t.multiselect, se = t.isOpen, _ = f(() => g.value.filter((A) => !A[v.value])), E = f(() => I.value.filter((A) => !A[v.value])), N = f(() => C.value !== "single" && c.value), ee = f(() => T.value && T.value.group), ce = f(() => Q(T.value)), fe = f(() => {
|
|
3011
3011
|
const A = ee.value ? T.value : (
|
|
3012
3012
|
/* istanbul ignore next */
|
|
3013
3013
|
Q(T.value)
|
|
@@ -3017,22 +3017,22 @@ function U3(s, e, t) {
|
|
|
3017
3017
|
}), Z = f(() => {
|
|
3018
3018
|
let A = E.value.map((P) => P.label).indexOf(ee.value ? T.value[i.value] : Q(T.value)[i.value]) + 1;
|
|
3019
3019
|
return E.value.length <= A && (A = 0), E.value[A];
|
|
3020
|
-
}), W = f(() => [...E.value].slice(-1)[0]), ge = f(() => T.value.__VISIBLE__.filter((A) => !A[
|
|
3021
|
-
const A = ce.value.__VISIBLE__.filter((P) => !P[
|
|
3020
|
+
}), W = f(() => [...E.value].slice(-1)[0]), ge = f(() => T.value.__VISIBLE__.filter((A) => !A[v.value])[0]), ye = f(() => {
|
|
3021
|
+
const A = ce.value.__VISIBLE__.filter((P) => !P[v.value]);
|
|
3022
3022
|
return A[A.map((P) => P[n.value]).indexOf(T.value[n.value]) - 1];
|
|
3023
3023
|
}), Te = f(() => {
|
|
3024
|
-
const A = Q(T.value).__VISIBLE__.filter((P) => !P[
|
|
3024
|
+
const A = Q(T.value).__VISIBLE__.filter((P) => !P[v.value]);
|
|
3025
3025
|
return A[A.map((P) => P[n.value]).indexOf(T.value[n.value]) + 1];
|
|
3026
|
-
}), u = f(() => [...fe.value.__VISIBLE__.filter((A) => !A[
|
|
3026
|
+
}), u = f(() => [...fe.value.__VISIBLE__.filter((A) => !A[v.value])].slice(-1)[0]), w = f(() => [...W.value.__VISIBLE__.filter((A) => !A[v.value])].slice(-1)[0]), M = (A) => T.value && (!A.group && T.value[n.value] === A[n.value] || A.group !== void 0 && T.value[i.value] === A[i.value]) ? !0 : void 0, k = () => {
|
|
3027
3027
|
b(_.value[0] || null);
|
|
3028
3028
|
}, D = () => {
|
|
3029
|
-
!T.value || T.value[
|
|
3029
|
+
!T.value || T.value[v.value] === !0 || (ee.value ? $(T.value) : V(T.value));
|
|
3030
3030
|
}, te = () => {
|
|
3031
3031
|
if (T.value === null)
|
|
3032
3032
|
b((l.value && N.value ? E.value[0].__CREATE__ ? _.value[0] : E.value[0] : _.value[0]) || null);
|
|
3033
3033
|
else if (l.value && N.value) {
|
|
3034
3034
|
let A = ee.value ? ge.value : Te.value;
|
|
3035
|
-
A === void 0 && (A = Z.value, A.__CREATE__ && (A = A[
|
|
3035
|
+
A === void 0 && (A = Z.value, A.__CREATE__ && (A = A[m.value][0])), b(A || /* istanbul ignore next */
|
|
3036
3036
|
null);
|
|
3037
3037
|
} else {
|
|
3038
3038
|
let A = _.value.map((P) => P[n.value]).indexOf(T.value[n.value]) + 1;
|
|
@@ -3098,7 +3098,7 @@ function q3(s, e, t) {
|
|
|
3098
3098
|
};
|
|
3099
3099
|
}
|
|
3100
3100
|
function F3(s, e, t) {
|
|
3101
|
-
const { searchable: n, disabled: a, clearOnBlur: o } = we(s), i = t.input, l = t.open,
|
|
3101
|
+
const { searchable: n, disabled: a, clearOnBlur: o } = we(s), i = t.input, l = t.open, C = t.close, c = t.clearSearch, v = t.isOpen, m = J(null), g = J(null), I = J(null), V = J(!1), $ = J(!1), O = f(() => n.value || a.value ? -1 : 0), T = () => {
|
|
3102
3102
|
n.value && i.value.blur(), g.value.blur();
|
|
3103
3103
|
}, b = () => {
|
|
3104
3104
|
n.value && !a.value && i.value.focus();
|
|
@@ -3106,11 +3106,11 @@ function F3(s, e, t) {
|
|
|
3106
3106
|
a.value || (V.value = !0, ee && l());
|
|
3107
3107
|
}, X = () => {
|
|
3108
3108
|
V.value = !1, setTimeout(() => {
|
|
3109
|
-
V.value || (
|
|
3109
|
+
V.value || (C(), o.value && c());
|
|
3110
3110
|
}, 1);
|
|
3111
3111
|
};
|
|
3112
3112
|
return {
|
|
3113
|
-
multiselect:
|
|
3113
|
+
multiselect: m,
|
|
3114
3114
|
wrapper: g,
|
|
3115
3115
|
tags: I,
|
|
3116
3116
|
tabindex: O,
|
|
@@ -3130,9 +3130,9 @@ function F3(s, e, t) {
|
|
|
3130
3130
|
X(), T();
|
|
3131
3131
|
},
|
|
3132
3132
|
handleMousedown: (ee) => {
|
|
3133
|
-
$.value = !0,
|
|
3133
|
+
$.value = !0, v.value && (ee.target.isEqualNode(g.value) || ee.target.isEqualNode(I.value)) ? setTimeout(() => {
|
|
3134
3134
|
X();
|
|
3135
|
-
}, 0) : document.activeElement.isEqualNode(g.value) && !
|
|
3135
|
+
}, 0) : document.activeElement.isEqualNode(g.value) && !v.value && B(), setTimeout(() => {
|
|
3136
3136
|
$.value = !1;
|
|
3137
3137
|
}, 0);
|
|
3138
3138
|
}
|
|
@@ -3145,14 +3145,14 @@ function z3(s, e, t) {
|
|
|
3145
3145
|
openDirection: o,
|
|
3146
3146
|
searchable: i,
|
|
3147
3147
|
showOptions: l,
|
|
3148
|
-
valueProp:
|
|
3149
|
-
groups:
|
|
3150
|
-
addOptionOn:
|
|
3151
|
-
createTag:
|
|
3148
|
+
valueProp: C,
|
|
3149
|
+
groups: c,
|
|
3150
|
+
addOptionOn: v,
|
|
3151
|
+
createTag: m,
|
|
3152
3152
|
createOption: g,
|
|
3153
3153
|
reverse: I
|
|
3154
|
-
} = we(s), V = Pe().proxy, $ = t.iv, O = t.update, T = t.search, b = t.setPointer, B = t.selectPointer, X = t.backwardPointer, se = t.forwardPointer, _ = t.multiselect, E = t.wrapper, N = t.tags, ee = t.isOpen, ce = t.open, fe = t.blur, Z = t.fo, W = f(() =>
|
|
3155
|
-
n.value === "tags" && !l.value && W.value && i.value && !
|
|
3154
|
+
} = we(s), V = Pe().proxy, $ = t.iv, O = t.update, T = t.search, b = t.setPointer, B = t.selectPointer, X = t.backwardPointer, se = t.forwardPointer, _ = t.multiselect, E = t.wrapper, N = t.tags, ee = t.isOpen, ce = t.open, fe = t.blur, Z = t.fo, W = f(() => m.value || g.value || !1), ge = f(() => a.value !== void 0 ? a.value : v.value !== void 0 ? v.value : ["enter"]), ye = () => {
|
|
3155
|
+
n.value === "tags" && !l.value && W.value && i.value && !c.value && b(Z.value[Z.value.map((M) => M[C.value]).indexOf(T.value)]);
|
|
3156
3156
|
}, Te = (M) => {
|
|
3157
3157
|
let k = M.length - 1;
|
|
3158
3158
|
for (; k >= 0 && (M[k].remove === !1 || M[k].disabled); )
|
|
@@ -3235,7 +3235,7 @@ function G3(s, e, t) {
|
|
|
3235
3235
|
disabled: a,
|
|
3236
3236
|
openDirection: o,
|
|
3237
3237
|
showOptions: i
|
|
3238
|
-
} = we(s), l = t.isOpen,
|
|
3238
|
+
} = we(s), l = t.isOpen, C = t.isPointed, c = t.isSelected, v = t.isDisabled, m = t.isActive, g = t.canPointGroups, I = t.resolving, V = t.fo, $ = f(() => ({
|
|
3239
3239
|
container: "multiselect",
|
|
3240
3240
|
containerDisabled: "is-disabled",
|
|
3241
3241
|
containerOpen: "is-open",
|
|
@@ -3293,7 +3293,7 @@ function G3(s, e, t) {
|
|
|
3293
3293
|
classList: f(() => {
|
|
3294
3294
|
const b = $.value;
|
|
3295
3295
|
return {
|
|
3296
|
-
container: [b.container].concat(a.value ? b.containerDisabled : []).concat(O.value && o.value === "top" ? b.containerOpenTop : []).concat(O.value && o.value !== "top" ? b.containerOpen : []).concat(
|
|
3296
|
+
container: [b.container].concat(a.value ? b.containerDisabled : []).concat(O.value && o.value === "top" ? b.containerOpenTop : []).concat(O.value && o.value !== "top" ? b.containerOpen : []).concat(m.value ? b.containerActive : []),
|
|
3297
3297
|
wrapper: b.wrapper,
|
|
3298
3298
|
spacer: b.spacer,
|
|
3299
3299
|
singleLabel: b.singleLabel,
|
|
@@ -3320,12 +3320,12 @@ function G3(s, e, t) {
|
|
|
3320
3320
|
group: b.group,
|
|
3321
3321
|
groupLabel: (B) => {
|
|
3322
3322
|
let X = [b.groupLabel];
|
|
3323
|
-
return
|
|
3323
|
+
return C(B) ? X.push(c(B) ? b.groupLabelSelectedPointed : b.groupLabelPointed) : c(B) && g.value ? X.push(v(B) ? b.groupLabelSelectedDisabled : b.groupLabelSelected) : v(B) && X.push(b.groupLabelDisabled), g.value && X.push(b.groupLabelPointable), X;
|
|
3324
3324
|
},
|
|
3325
3325
|
groupOptions: b.groupOptions,
|
|
3326
3326
|
option: (B, X) => {
|
|
3327
3327
|
let se = [b.option];
|
|
3328
|
-
return
|
|
3328
|
+
return C(B) ? se.push(c(B) ? b.optionSelectedPointed : b.optionPointed) : c(B) ? se.push(v(B) ? b.optionSelectedDisabled : b.optionSelected) : (v(B) || X && v(X)) && se.push(b.optionDisabled), se;
|
|
3329
3329
|
},
|
|
3330
3330
|
noOptions: b.noOptions,
|
|
3331
3331
|
noResults: b.noResults,
|
|
@@ -3340,7 +3340,7 @@ function K3(s, e, t) {
|
|
|
3340
3340
|
const {
|
|
3341
3341
|
limit: n,
|
|
3342
3342
|
infinite: a
|
|
3343
|
-
} = we(s), o = t.isOpen, i = t.offset, l = t.search,
|
|
3343
|
+
} = we(s), o = t.isOpen, i = t.offset, l = t.search, C = t.pfo, c = t.eo, v = J(null), m = J(null), g = f(() => i.value < C.value.length), I = ($) => {
|
|
3344
3344
|
const { isIntersecting: O, target: T } = $[0];
|
|
3345
3345
|
if (O) {
|
|
3346
3346
|
const b = T.offsetParent, B = b.scrollTop;
|
|
@@ -3349,19 +3349,19 @@ function K3(s, e, t) {
|
|
|
3349
3349
|
});
|
|
3350
3350
|
}
|
|
3351
3351
|
}, V = () => {
|
|
3352
|
-
o.value && i.value <
|
|
3352
|
+
o.value && i.value < C.value.length ? v.value.observe(m.value) : !o.value && v.value && v.value.disconnect();
|
|
3353
3353
|
};
|
|
3354
3354
|
return _e(o, () => {
|
|
3355
3355
|
a.value && V();
|
|
3356
3356
|
}), _e(l, () => {
|
|
3357
3357
|
a.value && (i.value = n.value, V());
|
|
3358
|
-
}, { flush: "post" }), _e(
|
|
3358
|
+
}, { flush: "post" }), _e(c, () => {
|
|
3359
3359
|
a.value && V();
|
|
3360
3360
|
}, { immediate: !1, flush: "post" }), _1(() => {
|
|
3361
|
-
window && window.IntersectionObserver && (
|
|
3361
|
+
window && window.IntersectionObserver && (v.value = new IntersectionObserver(I));
|
|
3362
3362
|
}), {
|
|
3363
3363
|
hasMore: g,
|
|
3364
|
-
infiniteLoader:
|
|
3364
|
+
infiniteLoader: m
|
|
3365
3365
|
};
|
|
3366
3366
|
}
|
|
3367
3367
|
function x3(s, e, t) {
|
|
@@ -3371,10 +3371,10 @@ function x3(s, e, t) {
|
|
|
3371
3371
|
valueProp: o,
|
|
3372
3372
|
label: i,
|
|
3373
3373
|
mode: l,
|
|
3374
|
-
groupLabel:
|
|
3375
|
-
aria:
|
|
3376
|
-
searchable:
|
|
3377
|
-
} = we(s),
|
|
3374
|
+
groupLabel: C,
|
|
3375
|
+
aria: c,
|
|
3376
|
+
searchable: v
|
|
3377
|
+
} = we(s), m = t.pointer, g = t.iv, I = t.hasSelected, V = t.multipleLabelText, $ = J(null), O = f(() => {
|
|
3378
3378
|
let Z = [];
|
|
3379
3379
|
return a && a.value && Z.push(a.value), Z.push("assist"), Z.join("-");
|
|
3380
3380
|
}), T = f(() => {
|
|
@@ -3382,14 +3382,14 @@ function x3(s, e, t) {
|
|
|
3382
3382
|
return a && a.value && Z.push(a.value), Z.push("multiselect-options"), Z.join("-");
|
|
3383
3383
|
}), b = f(() => {
|
|
3384
3384
|
let Z = [];
|
|
3385
|
-
if (a && a.value && Z.push(a.value),
|
|
3386
|
-
return Z.push(
|
|
3385
|
+
if (a && a.value && Z.push(a.value), m.value)
|
|
3386
|
+
return Z.push(m.value.group ? "multiselect-group" : "multiselect-option"), Z.push(m.value.group ? m.value.index : m.value[o.value]), Z.join("-");
|
|
3387
3387
|
}), B = f(() => n.value), X = f(() => l.value !== "single"), se = f(() => {
|
|
3388
3388
|
let Z = "";
|
|
3389
3389
|
return l.value === "single" && I.value && (Z += g.value[i.value]), l.value === "multiple" && I.value && (Z += V.value), l.value === "tags" && I.value && (Z += g.value.map((W) => W[i.value]).join(", ")), Z;
|
|
3390
3390
|
}), _ = f(() => {
|
|
3391
|
-
let Z = { ...
|
|
3392
|
-
return
|
|
3391
|
+
let Z = { ...c.value };
|
|
3392
|
+
return v.value && (Z["aria-labelledby"] = Z["aria-labelledby"] ? `${O.value} ${Z["aria-labelledby"]}` : O.value, se.value && Z["aria-label"] && (Z["aria-label"] = `${se.value}, ${Z["aria-label"]}`)), Z;
|
|
3393
3393
|
}), E = (Z) => {
|
|
3394
3394
|
let W = [];
|
|
3395
3395
|
return a && a.value && W.push(a.value), W.push("multiselect-option"), W.push(Z[o.value]), W.join("-");
|
|
@@ -3795,7 +3795,7 @@ var ve = {
|
|
|
3795
3795
|
};
|
|
3796
3796
|
const X3 = ["id", "dir"], Q3 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], J3 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], e0 = ["onKeyup", "aria-label"], t0 = ["onClick"], s0 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], a0 = ["innerHTML"], n0 = ["id"], i0 = ["id", "aria-label", "aria-selected"], o0 = ["data-pointed", "onMouseenter", "onClick"], l0 = ["innerHTML"], r0 = ["aria-label"], c0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], d0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], u0 = ["innerHTML"], p0 = ["innerHTML"], h0 = ["value"], m0 = ["name", "value"], v0 = ["name", "value"], C0 = ["id"];
|
|
3797
3797
|
function _0(s, e, t, n, a, o) {
|
|
3798
|
-
return
|
|
3798
|
+
return d(), h("div", {
|
|
3799
3799
|
ref: "multiselect",
|
|
3800
3800
|
class: G(s.classList.container),
|
|
3801
3801
|
id: t.searchable ? void 0 : t.id,
|
|
@@ -3818,7 +3818,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
3818
3818
|
role: t.searchable ? void 0 : "combobox"
|
|
3819
3819
|
}, t.searchable ? {} : s.arias), [
|
|
3820
3820
|
S(" Search "),
|
|
3821
|
-
t.mode !== "tags" && t.searchable && !t.disabled ? (
|
|
3821
|
+
t.mode !== "tags" && t.searchable && !t.disabled ? (d(), h("input", De({
|
|
3822
3822
|
key: 0,
|
|
3823
3823
|
type: t.inputType,
|
|
3824
3824
|
modelValue: s.search,
|
|
@@ -3841,7 +3841,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
3841
3841
|
...s.arias
|
|
3842
3842
|
}), null, 16, J3)) : S("v-if", !0),
|
|
3843
3843
|
S(" Tags (with search) "),
|
|
3844
|
-
t.mode == "tags" ? (
|
|
3844
|
+
t.mode == "tags" ? (d(), h(
|
|
3845
3845
|
"div",
|
|
3846
3846
|
{
|
|
3847
3847
|
key: 1,
|
|
@@ -3849,22 +3849,22 @@ function _0(s, e, t, n, a, o) {
|
|
|
3849
3849
|
"data-tags": ""
|
|
3850
3850
|
},
|
|
3851
3851
|
[
|
|
3852
|
-
(
|
|
3852
|
+
(d(!0), h(
|
|
3853
3853
|
oe,
|
|
3854
3854
|
null,
|
|
3855
|
-
me(s.iv, (i, l,
|
|
3855
|
+
me(s.iv, (i, l, C) => x(s.$slots, "tag", {
|
|
3856
3856
|
option: i,
|
|
3857
3857
|
handleTagRemove: s.handleTagRemove,
|
|
3858
3858
|
disabled: t.disabled
|
|
3859
3859
|
}, () => [
|
|
3860
|
-
(
|
|
3860
|
+
(d(), h("span", {
|
|
3861
3861
|
class: G([
|
|
3862
3862
|
s.classList.tag,
|
|
3863
3863
|
i.disabled ? s.classList.tagDisabled : null
|
|
3864
3864
|
]),
|
|
3865
3865
|
tabindex: "-1",
|
|
3866
|
-
onKeyup: a1((
|
|
3867
|
-
key:
|
|
3866
|
+
onKeyup: a1((c) => s.handleTagRemove(i, c), ["enter"]),
|
|
3867
|
+
key: C,
|
|
3868
3868
|
"aria-label": s.ariaTagLabel(s.localize(i[t.label]))
|
|
3869
3869
|
}, [
|
|
3870
3870
|
N1(
|
|
@@ -3872,10 +3872,10 @@ function _0(s, e, t, n, a, o) {
|
|
|
3872
3872
|
1
|
|
3873
3873
|
/* TEXT */
|
|
3874
3874
|
),
|
|
3875
|
-
!t.disabled && !i.disabled ? (
|
|
3875
|
+
!t.disabled && !i.disabled ? (d(), h("span", {
|
|
3876
3876
|
key: 0,
|
|
3877
3877
|
class: G(s.classList.tagRemove),
|
|
3878
|
-
onClick: Le((
|
|
3878
|
+
onClick: Le((c) => s.handleTagRemove(i, c), ["stop"])
|
|
3879
3879
|
}, [
|
|
3880
3880
|
r(
|
|
3881
3881
|
"span",
|
|
@@ -3910,7 +3910,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
3910
3910
|
/* TEXT, CLASS */
|
|
3911
3911
|
),
|
|
3912
3912
|
S(" Actual search input "),
|
|
3913
|
-
t.searchable && !t.disabled ? (
|
|
3913
|
+
t.searchable && !t.disabled ? (d(), h("input", De({
|
|
3914
3914
|
key: 0,
|
|
3915
3915
|
type: t.inputType,
|
|
3916
3916
|
modelValue: s.search,
|
|
@@ -4062,23 +4062,23 @@ function _0(s, e, t, n, a, o) {
|
|
|
4062
4062
|
id: s.ariaControls,
|
|
4063
4063
|
role: "listbox"
|
|
4064
4064
|
}, [
|
|
4065
|
-
t.groups ? (
|
|
4065
|
+
t.groups ? (d(!0), h(
|
|
4066
4066
|
oe,
|
|
4067
4067
|
{ key: 0 },
|
|
4068
|
-
me(s.fg, (i, l,
|
|
4068
|
+
me(s.fg, (i, l, C) => (d(), h("li", {
|
|
4069
4069
|
class: G(s.classList.group),
|
|
4070
|
-
key:
|
|
4070
|
+
key: C,
|
|
4071
4071
|
id: s.ariaGroupId(i),
|
|
4072
4072
|
"aria-label": s.ariaGroupLabel(s.localize(i[t.groupLabel])),
|
|
4073
4073
|
"aria-selected": s.isSelected(i),
|
|
4074
4074
|
role: "option"
|
|
4075
4075
|
}, [
|
|
4076
|
-
i.__CREATE__ ? S("v-if", !0) : (
|
|
4076
|
+
i.__CREATE__ ? S("v-if", !0) : (d(), h("div", {
|
|
4077
4077
|
key: 0,
|
|
4078
4078
|
class: G(s.classList.groupLabel(i)),
|
|
4079
4079
|
"data-pointed": s.isPointed(i),
|
|
4080
|
-
onMouseenter: (
|
|
4081
|
-
onClick: (
|
|
4080
|
+
onMouseenter: (c) => s.setPointer(i, l),
|
|
4081
|
+
onClick: (c) => s.handleGroupClick(i)
|
|
4082
4082
|
}, [
|
|
4083
4083
|
x(s.$slots, "grouplabel", {
|
|
4084
4084
|
group: i,
|
|
@@ -4095,23 +4095,23 @@ function _0(s, e, t, n, a, o) {
|
|
|
4095
4095
|
"aria-label": s.ariaGroupLabel(s.localize(i[t.groupLabel])),
|
|
4096
4096
|
role: "group"
|
|
4097
4097
|
}, [
|
|
4098
|
-
(
|
|
4098
|
+
(d(!0), h(
|
|
4099
4099
|
oe,
|
|
4100
4100
|
null,
|
|
4101
|
-
me(i.__VISIBLE__, (
|
|
4102
|
-
class: G(s.classList.option(
|
|
4103
|
-
"data-pointed": s.isPointed(
|
|
4104
|
-
"data-selected": s.isSelected(
|
|
4105
|
-
key:
|
|
4106
|
-
onMouseenter: (g) => s.setPointer(
|
|
4107
|
-
onClick: (g) => s.handleOptionClick(
|
|
4108
|
-
id: s.ariaOptionId(
|
|
4109
|
-
"aria-selected": s.isSelected(
|
|
4110
|
-
"aria-label": s.ariaOptionLabel(s.localize(
|
|
4101
|
+
me(i.__VISIBLE__, (c, v, m) => (d(), h("li", {
|
|
4102
|
+
class: G(s.classList.option(c, i)),
|
|
4103
|
+
"data-pointed": s.isPointed(c),
|
|
4104
|
+
"data-selected": s.isSelected(c) || void 0,
|
|
4105
|
+
key: m,
|
|
4106
|
+
onMouseenter: (g) => s.setPointer(c),
|
|
4107
|
+
onClick: (g) => s.handleOptionClick(c),
|
|
4108
|
+
id: s.ariaOptionId(c),
|
|
4109
|
+
"aria-selected": s.isSelected(c),
|
|
4110
|
+
"aria-label": s.ariaOptionLabel(s.localize(c[t.label])),
|
|
4111
4111
|
role: "option"
|
|
4112
4112
|
}, [
|
|
4113
4113
|
x(s.$slots, "option", {
|
|
4114
|
-
option:
|
|
4114
|
+
option: c,
|
|
4115
4115
|
isSelected: s.isSelected,
|
|
4116
4116
|
isPointed: s.isPointed,
|
|
4117
4117
|
search: s.search
|
|
@@ -4119,7 +4119,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
4119
4119
|
r(
|
|
4120
4120
|
"span",
|
|
4121
4121
|
null,
|
|
4122
|
-
U(s.localize(
|
|
4122
|
+
U(s.localize(c[t.label])),
|
|
4123
4123
|
1
|
|
4124
4124
|
/* TEXT */
|
|
4125
4125
|
)
|
|
@@ -4132,16 +4132,16 @@ function _0(s, e, t, n, a, o) {
|
|
|
4132
4132
|
], 10, i0))),
|
|
4133
4133
|
128
|
|
4134
4134
|
/* KEYED_FRAGMENT */
|
|
4135
|
-
)) : (
|
|
4135
|
+
)) : (d(!0), h(
|
|
4136
4136
|
oe,
|
|
4137
4137
|
{ key: 1 },
|
|
4138
|
-
me(s.fo, (i, l,
|
|
4138
|
+
me(s.fo, (i, l, C) => (d(), h("li", {
|
|
4139
4139
|
class: G(s.classList.option(i)),
|
|
4140
4140
|
"data-pointed": s.isPointed(i),
|
|
4141
4141
|
"data-selected": s.isSelected(i) || void 0,
|
|
4142
|
-
key:
|
|
4143
|
-
onMouseenter: (
|
|
4144
|
-
onClick: (
|
|
4142
|
+
key: C,
|
|
4143
|
+
onMouseenter: (c) => s.setPointer(i),
|
|
4144
|
+
onClick: (c) => s.handleOptionClick(i),
|
|
4145
4145
|
id: s.ariaOptionId(i),
|
|
4146
4146
|
"aria-selected": s.isSelected(i),
|
|
4147
4147
|
"aria-label": s.ariaOptionLabel(s.localize(i[t.label])),
|
|
@@ -4178,7 +4178,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
4178
4178
|
innerHTML: s.localize(t.noResultsText)
|
|
4179
4179
|
}, null, 10, p0)
|
|
4180
4180
|
]) : S("v-if", !0),
|
|
4181
|
-
t.infinite && s.hasMore ? (
|
|
4181
|
+
t.infinite && s.hasMore ? (d(), h(
|
|
4182
4182
|
"div",
|
|
4183
4183
|
{
|
|
4184
4184
|
key: 2,
|
|
@@ -4207,7 +4207,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
4207
4207
|
/* CLASS */
|
|
4208
4208
|
),
|
|
4209
4209
|
S(" Hacky input element to show HTML5 required warning "),
|
|
4210
|
-
t.required ? (
|
|
4210
|
+
t.required ? (d(), h("input", {
|
|
4211
4211
|
key: 0,
|
|
4212
4212
|
class: G(s.classList.fakeInput),
|
|
4213
4213
|
tabindex: "-1",
|
|
@@ -4215,19 +4215,19 @@ function _0(s, e, t, n, a, o) {
|
|
|
4215
4215
|
required: ""
|
|
4216
4216
|
}, null, 10, h0)) : S("v-if", !0),
|
|
4217
4217
|
S(" Native input support "),
|
|
4218
|
-
t.nativeSupport ? (
|
|
4218
|
+
t.nativeSupport ? (d(), h(
|
|
4219
4219
|
oe,
|
|
4220
4220
|
{ key: 1 },
|
|
4221
4221
|
[
|
|
4222
|
-
t.mode == "single" ? (
|
|
4222
|
+
t.mode == "single" ? (d(), h("input", {
|
|
4223
4223
|
key: 0,
|
|
4224
4224
|
type: "hidden",
|
|
4225
4225
|
name: t.name,
|
|
4226
4226
|
value: s.plainValue !== void 0 ? s.plainValue : ""
|
|
4227
|
-
}, null, 8, m0)) : (
|
|
4227
|
+
}, null, 8, m0)) : (d(!0), h(
|
|
4228
4228
|
oe,
|
|
4229
4229
|
{ key: 1 },
|
|
4230
|
-
me(s.plainValue, (i, l) => (
|
|
4230
|
+
me(s.plainValue, (i, l) => (d(), h("input", {
|
|
4231
4231
|
type: "hidden",
|
|
4232
4232
|
name: `${t.name}[]`,
|
|
4233
4233
|
value: i,
|
|
@@ -4241,7 +4241,7 @@ function _0(s, e, t, n, a, o) {
|
|
|
4241
4241
|
/* STABLE_FRAGMENT */
|
|
4242
4242
|
)) : S("v-if", !0),
|
|
4243
4243
|
S(" Screen reader assistive text "),
|
|
4244
|
-
t.searchable && s.hasSelected ? (
|
|
4244
|
+
t.searchable && s.hasSelected ? (d(), h("div", {
|
|
4245
4245
|
key: 2,
|
|
4246
4246
|
class: G(s.classList.assist),
|
|
4247
4247
|
id: s.ariaAssist,
|
|
@@ -4268,7 +4268,7 @@ const f0 = { class: "ao-modal__wrapper" }, g0 = { class: "ao-modal" }, y0 = { cl
|
|
|
4268
4268
|
__name: "AoModal",
|
|
4269
4269
|
emits: ["close"],
|
|
4270
4270
|
setup(s) {
|
|
4271
|
-
return (e, t) => (
|
|
4271
|
+
return (e, t) => (d(), h("div", f0, [
|
|
4272
4272
|
r("div", {
|
|
4273
4273
|
class: "ao-modal__backdrop",
|
|
4274
4274
|
onClick: t[0] || (t[0] = (n) => e.$emit("close"))
|
|
@@ -4283,7 +4283,7 @@ const f0 = { class: "ao-modal__wrapper" }, g0 = { class: "ao-modal" }, y0 = { cl
|
|
|
4283
4283
|
onClick: t[1] || (t[1] = (n) => e.$emit("close"))
|
|
4284
4284
|
})
|
|
4285
4285
|
]),
|
|
4286
|
-
e.$slots.header ? (
|
|
4286
|
+
e.$slots.header ? (d(), h("header", w0, [
|
|
4287
4287
|
x(e.$slots, "header")
|
|
4288
4288
|
])) : S("", !0)
|
|
4289
4289
|
]),
|
|
@@ -4339,59 +4339,59 @@ const M0 = { class: "ao-subtasks" }, A0 = { class: "ao-subtasks__list" }, S0 = [
|
|
|
4339
4339
|
emits: ["add", "delete", "update"],
|
|
4340
4340
|
setup(s, { emit: e }) {
|
|
4341
4341
|
const t = s, { t: n } = A1(), a = () => {
|
|
4342
|
-
const
|
|
4343
|
-
name: n("template.defaultName.subtask", { idx:
|
|
4344
|
-
rank:
|
|
4342
|
+
const c = t.subtasks.length, v = t.subtasks.at(-1), m = v ? he.LexoRank.parse(v.rank).genNext() : he.LexoRank.middle(), g = {
|
|
4343
|
+
name: n("template.defaultName.subtask", { idx: c + 1 }),
|
|
4344
|
+
rank: m.format(),
|
|
4345
4345
|
activityId: t.activityId
|
|
4346
4346
|
};
|
|
4347
4347
|
e("add", g);
|
|
4348
|
-
}, o = (
|
|
4349
|
-
const g =
|
|
4348
|
+
}, o = (c, v) => {
|
|
4349
|
+
const g = c.target.value;
|
|
4350
4350
|
e("update", {
|
|
4351
|
-
id:
|
|
4351
|
+
id: v,
|
|
4352
4352
|
name: g
|
|
4353
4353
|
});
|
|
4354
|
-
}, i = (
|
|
4354
|
+
}, i = (c, v) => {
|
|
4355
4355
|
e("update", {
|
|
4356
|
-
id:
|
|
4357
|
-
status:
|
|
4356
|
+
id: c,
|
|
4357
|
+
status: v
|
|
4358
4358
|
});
|
|
4359
|
-
}, l = (
|
|
4360
|
-
e("delete",
|
|
4361
|
-
},
|
|
4359
|
+
}, l = (c) => {
|
|
4360
|
+
e("delete", c);
|
|
4361
|
+
}, C = (c, v) => {
|
|
4362
4362
|
e("update", {
|
|
4363
|
-
id:
|
|
4364
|
-
assignees:
|
|
4363
|
+
id: v,
|
|
4364
|
+
assignees: c
|
|
4365
4365
|
});
|
|
4366
4366
|
};
|
|
4367
|
-
return (
|
|
4367
|
+
return (c, v) => (d(), h("div", M0, [
|
|
4368
4368
|
r("ul", A0, [
|
|
4369
|
-
(
|
|
4370
|
-
key:
|
|
4369
|
+
(d(!0), h(oe, null, me(c.subtasks, (m) => (d(), h("li", {
|
|
4370
|
+
key: m.id,
|
|
4371
4371
|
class: "ao-subtask"
|
|
4372
4372
|
}, [
|
|
4373
|
-
|
|
4373
|
+
c.isCheckable ? (d(), q(ue, {
|
|
4374
4374
|
key: 0,
|
|
4375
4375
|
class: "ao-subtask__delete",
|
|
4376
|
-
"icon-name":
|
|
4376
|
+
"icon-name": m.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
4377
4377
|
variant: "ghost",
|
|
4378
|
-
onClick: () => i(
|
|
4378
|
+
onClick: () => i(m.id, m.isDone)
|
|
4379
4379
|
}, null, 8, ["icon-name", "onClick"])) : S("", !0),
|
|
4380
4380
|
r("input", {
|
|
4381
|
-
value:
|
|
4381
|
+
value: m.name,
|
|
4382
4382
|
class: "ao-field__input ao-subtask__field",
|
|
4383
4383
|
type: "text",
|
|
4384
|
-
onChange: (g) => o(g,
|
|
4384
|
+
onChange: (g) => o(g, m.id)
|
|
4385
4385
|
}, null, 40, S0),
|
|
4386
4386
|
y(j(ve), {
|
|
4387
4387
|
mode: "tags",
|
|
4388
|
-
value:
|
|
4389
|
-
options:
|
|
4388
|
+
value: m.assignees,
|
|
4389
|
+
options: c.assigneesOptions,
|
|
4390
4390
|
"close-on-select": !1,
|
|
4391
4391
|
searchable: !0,
|
|
4392
4392
|
class: "ao-subtask__assignees",
|
|
4393
|
-
placeholder:
|
|
4394
|
-
onChange: (g) =>
|
|
4393
|
+
placeholder: c.$t("feed.filters.assignee.placeholder"),
|
|
4394
|
+
onChange: (g) => C(g, m.id)
|
|
4395
4395
|
}, {
|
|
4396
4396
|
tag: F(({ option: g, handleTagRemove: I }) => [
|
|
4397
4397
|
y(We, {
|
|
@@ -4406,13 +4406,13 @@ const M0 = { class: "ao-subtasks" }, A0 = { class: "ao-subtasks__list" }, S0 = [
|
|
|
4406
4406
|
class: "ao-subtask__delete",
|
|
4407
4407
|
"icon-name": "CloseRounded",
|
|
4408
4408
|
variant: "ghost",
|
|
4409
|
-
onClick: () => l(
|
|
4409
|
+
onClick: () => l(m.id)
|
|
4410
4410
|
}, null, 8, ["onClick"])
|
|
4411
4411
|
]))), 128))
|
|
4412
4412
|
]),
|
|
4413
4413
|
r("div", k0, [
|
|
4414
4414
|
y(ue, {
|
|
4415
|
-
label:
|
|
4415
|
+
label: c.$t("activity.subtasks.add"),
|
|
4416
4416
|
"icon-name": "Add",
|
|
4417
4417
|
variant: "ghost",
|
|
4418
4418
|
color: "primary",
|
|
@@ -4435,21 +4435,21 @@ const T0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V0 = {
|
|
|
4435
4435
|
},
|
|
4436
4436
|
emits: ["add", "toggleIsDropActive", "remove"],
|
|
4437
4437
|
setup(s, { emit: e }) {
|
|
4438
|
-
const t = (
|
|
4439
|
-
e("remove",
|
|
4440
|
-
}, n = (
|
|
4441
|
-
const
|
|
4442
|
-
e("add",
|
|
4438
|
+
const t = (c) => {
|
|
4439
|
+
e("remove", c);
|
|
4440
|
+
}, n = (c) => {
|
|
4441
|
+
const v = c.target, m = Array.from(v.files ?? []);
|
|
4442
|
+
e("add", m);
|
|
4443
4443
|
}, a = ["dragenter", "dragover", "dragleave", "drop"];
|
|
4444
4444
|
_1(() => {
|
|
4445
|
-
a.forEach((
|
|
4446
|
-
document.body.addEventListener(
|
|
4445
|
+
a.forEach((c) => {
|
|
4446
|
+
document.body.addEventListener(c, (v) => v.preventDefault());
|
|
4447
4447
|
});
|
|
4448
4448
|
}), Gt(() => {
|
|
4449
|
-
a.forEach((
|
|
4449
|
+
a.forEach((c) => {
|
|
4450
4450
|
document.body.removeEventListener(
|
|
4451
|
-
|
|
4452
|
-
(
|
|
4451
|
+
c,
|
|
4452
|
+
(v) => v.preventDefault()
|
|
4453
4453
|
);
|
|
4454
4454
|
});
|
|
4455
4455
|
});
|
|
@@ -4460,31 +4460,31 @@ const T0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V0 = {
|
|
|
4460
4460
|
function l() {
|
|
4461
4461
|
o.value = !1;
|
|
4462
4462
|
}
|
|
4463
|
-
_e(o, (
|
|
4464
|
-
e("toggleIsDropActive",
|
|
4463
|
+
_e(o, (c) => {
|
|
4464
|
+
e("toggleIsDropActive", c);
|
|
4465
4465
|
});
|
|
4466
|
-
function
|
|
4467
|
-
var
|
|
4466
|
+
function C(c) {
|
|
4467
|
+
var m;
|
|
4468
4468
|
l();
|
|
4469
|
-
const
|
|
4470
|
-
|
|
4469
|
+
const v = Array.from(((m = c.dataTransfer) == null ? void 0 : m.files) || []);
|
|
4470
|
+
c.dataTransfer && e("add", v);
|
|
4471
4471
|
}
|
|
4472
|
-
return (
|
|
4473
|
-
var
|
|
4474
|
-
return
|
|
4472
|
+
return (c, v) => {
|
|
4473
|
+
var m;
|
|
4474
|
+
return d(), h("div", {
|
|
4475
4475
|
class: G([
|
|
4476
4476
|
"ao-files__wrapper",
|
|
4477
4477
|
{
|
|
4478
4478
|
"ao-files__wrapper--drop-active": o.value
|
|
4479
4479
|
}
|
|
4480
4480
|
]),
|
|
4481
|
-
onDrop: Le(
|
|
4481
|
+
onDrop: Le(C, ["prevent"]),
|
|
4482
4482
|
onDragenter: Le(i, ["prevent"]),
|
|
4483
4483
|
onDragover: Le(i, ["prevent"]),
|
|
4484
4484
|
onDragleave: Le(l, ["prevent"])
|
|
4485
4485
|
}, [
|
|
4486
|
-
(
|
|
4487
|
-
(
|
|
4486
|
+
(m = c.attachments) != null && m.length && c.attachments.length > 0 ? (d(), h("ul", V0, [
|
|
4487
|
+
(d(!0), h(oe, null, me(c.attachments, (g) => (d(), h("li", {
|
|
4488
4488
|
key: g.id,
|
|
4489
4489
|
class: "ao-file"
|
|
4490
4490
|
}, [
|
|
@@ -4511,9 +4511,9 @@ const T0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V0 = {
|
|
|
4511
4511
|
onClick: () => t(g)
|
|
4512
4512
|
}, null, 8, ["onClick"])
|
|
4513
4513
|
]))), 128))
|
|
4514
|
-
])) : (
|
|
4514
|
+
])) : (d(), h("div", O0, [
|
|
4515
4515
|
r("label", D0, [
|
|
4516
|
-
r("span", B0, U(
|
|
4516
|
+
r("span", B0, U(c.$t("activity.attachment.button.resting")), 1),
|
|
4517
4517
|
r("input", {
|
|
4518
4518
|
class: "input-field",
|
|
4519
4519
|
type: "file",
|
|
@@ -4523,7 +4523,7 @@ const T0 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], V0 = {
|
|
|
4523
4523
|
onChange: n
|
|
4524
4524
|
}, null, 32)
|
|
4525
4525
|
]),
|
|
4526
|
-
r("span", P0, U(
|
|
4526
|
+
r("span", P0, U(c.$t("activity.attachment.placeholder.resting")), 1)
|
|
4527
4527
|
]))
|
|
4528
4528
|
], 42, T0);
|
|
4529
4529
|
};
|
|
@@ -4580,10 +4580,10 @@ const Z0 = {
|
|
|
4580
4580
|
set(_) {
|
|
4581
4581
|
e("update:activity", { id: t.activity.id, typeId: _ });
|
|
4582
4582
|
}
|
|
4583
|
-
}),
|
|
4583
|
+
}), C = f(() => t.templateActivities.filter((_) => _.id !== t.activity.id).map((_) => ({
|
|
4584
4584
|
label: _.name,
|
|
4585
4585
|
value: _.id
|
|
4586
|
-
}))),
|
|
4586
|
+
}))), c = f({
|
|
4587
4587
|
get() {
|
|
4588
4588
|
return t.activity.dependingOn;
|
|
4589
4589
|
},
|
|
@@ -4593,13 +4593,13 @@ const Z0 = {
|
|
|
4593
4593
|
dependingOn: _
|
|
4594
4594
|
});
|
|
4595
4595
|
}
|
|
4596
|
-
}),
|
|
4596
|
+
}), v = f(() => C.value.map((_) => {
|
|
4597
4597
|
var E;
|
|
4598
4598
|
return {
|
|
4599
4599
|
..._,
|
|
4600
4600
|
disabled: (E = t.activity.blocking) == null ? void 0 : E.some((N) => N === _.value)
|
|
4601
4601
|
};
|
|
4602
|
-
})),
|
|
4602
|
+
})), m = f({
|
|
4603
4603
|
get() {
|
|
4604
4604
|
return t.activity.blocking;
|
|
4605
4605
|
},
|
|
@@ -4609,7 +4609,7 @@ const Z0 = {
|
|
|
4609
4609
|
blocking: _
|
|
4610
4610
|
});
|
|
4611
4611
|
}
|
|
4612
|
-
}), g = f(() =>
|
|
4612
|
+
}), g = f(() => C.value.map((_) => {
|
|
4613
4613
|
var E;
|
|
4614
4614
|
return {
|
|
4615
4615
|
..._,
|
|
@@ -4667,12 +4667,12 @@ const Z0 = {
|
|
|
4667
4667
|
file: _
|
|
4668
4668
|
});
|
|
4669
4669
|
};
|
|
4670
|
-
return (_, E) => (
|
|
4670
|
+
return (_, E) => (d(), q(Ct, {
|
|
4671
4671
|
onClose: E[8] || (E[8] = (N) => _.$emit("close"))
|
|
4672
4672
|
}, {
|
|
4673
4673
|
header: F(() => [
|
|
4674
4674
|
x(_.$slots, "header", {}, () => [
|
|
4675
|
-
_.breadcrumbs ? (
|
|
4675
|
+
_.breadcrumbs ? (d(), h("div", Z0, U(_.breadcrumbs), 1)) : S("", !0),
|
|
4676
4676
|
y(pe, {
|
|
4677
4677
|
title: _.activity.name || _.activity.id,
|
|
4678
4678
|
level: 4,
|
|
@@ -4791,13 +4791,13 @@ const Z0 = {
|
|
|
4791
4791
|
r("label", i5, [
|
|
4792
4792
|
r("span", o5, U(_.$t("activity.dependingOn.label")), 1),
|
|
4793
4793
|
y(j(ve), {
|
|
4794
|
-
modelValue:
|
|
4795
|
-
"onUpdate:modelValue": E[5] || (E[5] = (N) =>
|
|
4794
|
+
modelValue: c.value,
|
|
4795
|
+
"onUpdate:modelValue": E[5] || (E[5] = (N) => c.value = N),
|
|
4796
4796
|
class: "ao-field__multiselect",
|
|
4797
4797
|
mode: "tags",
|
|
4798
4798
|
"close-on-select": !1,
|
|
4799
4799
|
searchable: !0,
|
|
4800
|
-
options:
|
|
4800
|
+
options: v.value
|
|
4801
4801
|
}, null, 8, ["modelValue", "options"])
|
|
4802
4802
|
])
|
|
4803
4803
|
]),
|
|
@@ -4805,8 +4805,8 @@ const Z0 = {
|
|
|
4805
4805
|
r("label", r5, [
|
|
4806
4806
|
r("span", c5, U(_.$t("activity.blocking.label")), 1),
|
|
4807
4807
|
y(j(ve), {
|
|
4808
|
-
modelValue:
|
|
4809
|
-
"onUpdate:modelValue": E[6] || (E[6] = (N) =>
|
|
4808
|
+
modelValue: m.value,
|
|
4809
|
+
"onUpdate:modelValue": E[6] || (E[6] = (N) => m.value = N),
|
|
4810
4810
|
class: "ao-field__multiselect",
|
|
4811
4811
|
mode: "tags",
|
|
4812
4812
|
"close-on-select": !1,
|
|
@@ -4954,16 +4954,16 @@ const Fc = {
|
|
|
4954
4954
|
value: B.id,
|
|
4955
4955
|
label: B.name
|
|
4956
4956
|
}));
|
|
4957
|
-
}),
|
|
4957
|
+
}), C = m1(t.rule.comparator), c = f({
|
|
4958
4958
|
get() {
|
|
4959
|
-
return
|
|
4959
|
+
return C.value;
|
|
4960
4960
|
},
|
|
4961
4961
|
set(T) {
|
|
4962
4962
|
e("update:rule", { ...t.rule, comparator: T });
|
|
4963
4963
|
}
|
|
4964
|
-
}),
|
|
4964
|
+
}), v = f(() => Object.values(f5)), m = m1(t.rule.trigger), g = f({
|
|
4965
4965
|
get() {
|
|
4966
|
-
return
|
|
4966
|
+
return m.value;
|
|
4967
4967
|
},
|
|
4968
4968
|
set(T) {
|
|
4969
4969
|
e("update:rule", { ...t.rule, trigger: T });
|
|
@@ -4983,7 +4983,7 @@ const Fc = {
|
|
|
4983
4983
|
e("update:rule", { ...t.rule, durationUnit: T });
|
|
4984
4984
|
}
|
|
4985
4985
|
}), O = f(() => Object.values(y5));
|
|
4986
|
-
return (T, b) => (
|
|
4986
|
+
return (T, b) => (d(), q(Ke(T.tagName), { class: "ao-rule-line" }, {
|
|
4987
4987
|
default: F(() => [
|
|
4988
4988
|
y(j(ve), {
|
|
4989
4989
|
modelValue: a.value,
|
|
@@ -5001,9 +5001,9 @@ const Fc = {
|
|
|
5001
5001
|
options: I.value
|
|
5002
5002
|
}, null, 8, ["modelValue", "options"]),
|
|
5003
5003
|
y(j(ve), {
|
|
5004
|
-
modelValue:
|
|
5005
|
-
"onUpdate:modelValue": b[3] || (b[3] = (B) =>
|
|
5006
|
-
options:
|
|
5004
|
+
modelValue: c.value,
|
|
5005
|
+
"onUpdate:modelValue": b[3] || (b[3] = (B) => c.value = B),
|
|
5006
|
+
options: v.value
|
|
5007
5007
|
}, null, 8, ["modelValue", "options"]),
|
|
5008
5008
|
Fe(r("input", {
|
|
5009
5009
|
"onUpdate:modelValue": b[4] || (b[4] = (B) => V.value = B),
|
|
@@ -5049,7 +5049,7 @@ const $5 = { class: "ao-template-rules__body" }, I5 = { class: "ao-template-rule
|
|
|
5049
5049
|
}, n = (a) => {
|
|
5050
5050
|
e("removeRule", a);
|
|
5051
5051
|
};
|
|
5052
|
-
return (a, o) => (
|
|
5052
|
+
return (a, o) => (d(), q(Ct, null, {
|
|
5053
5053
|
header: F(() => [
|
|
5054
5054
|
y(pe, {
|
|
5055
5055
|
title: a.$t("template.rules.title"),
|
|
@@ -5059,7 +5059,7 @@ const $5 = { class: "ao-template-rules__body" }, I5 = { class: "ao-template-rule
|
|
|
5059
5059
|
default: F(() => [
|
|
5060
5060
|
r("div", $5, [
|
|
5061
5061
|
r("ul", I5, [
|
|
5062
|
-
(
|
|
5062
|
+
(d(!0), h(oe, null, me(a.rules, (i) => (d(), q(w5, {
|
|
5063
5063
|
key: i.id,
|
|
5064
5064
|
rule: i,
|
|
5065
5065
|
"template-phases": a.templatePhases,
|
|
@@ -5124,7 +5124,7 @@ const A5 = {
|
|
|
5124
5124
|
const D = k.milestones || [];
|
|
5125
5125
|
return [...M, ...D];
|
|
5126
5126
|
}, [])) || [];
|
|
5127
|
-
}),
|
|
5127
|
+
}), C = f(() => {
|
|
5128
5128
|
var u, w;
|
|
5129
5129
|
return ((w = (u = a.value) == null ? void 0 : u.phases) == null ? void 0 : w.reduce((M, k) => {
|
|
5130
5130
|
const te = (k.milestones || []).reduce(
|
|
@@ -5133,18 +5133,18 @@ const A5 = {
|
|
|
5133
5133
|
);
|
|
5134
5134
|
return [...M, ...te];
|
|
5135
5135
|
}, [])) || [];
|
|
5136
|
-
}),
|
|
5136
|
+
}), c = f(() => {
|
|
5137
5137
|
var u, w;
|
|
5138
5138
|
return (w = (u = i.value) == null ? void 0 : u.activities) == null ? void 0 : w.find(
|
|
5139
5139
|
(M) => M.id === t.activityId
|
|
5140
5140
|
);
|
|
5141
|
-
}),
|
|
5141
|
+
}), v = f(() => {
|
|
5142
5142
|
var u;
|
|
5143
5143
|
return ((u = t.activityTypes) == null ? void 0 : u.map((w) => ({
|
|
5144
5144
|
label: w.name,
|
|
5145
5145
|
value: w.id
|
|
5146
5146
|
}))) || [];
|
|
5147
|
-
}),
|
|
5147
|
+
}), m = f(() => {
|
|
5148
5148
|
var u;
|
|
5149
5149
|
return ((u = a.value) == null ? void 0 : u.name) || t.templateId;
|
|
5150
5150
|
}), g = () => {
|
|
@@ -5268,7 +5268,7 @@ const A5 = {
|
|
|
5268
5268
|
});
|
|
5269
5269
|
}
|
|
5270
5270
|
}, Z = (u) => {
|
|
5271
|
-
!o.value || !i.value || !
|
|
5271
|
+
!o.value || !i.value || !c.value || e("addItem", {
|
|
5272
5272
|
type: de.SUBTASKS,
|
|
5273
5273
|
activityId: u.activityId,
|
|
5274
5274
|
milestoneId: i.value.id,
|
|
@@ -5278,27 +5278,27 @@ const A5 = {
|
|
|
5278
5278
|
});
|
|
5279
5279
|
}, W = (u) => {
|
|
5280
5280
|
var k, D, te, ae;
|
|
5281
|
-
if (!o.value || !i.value || !
|
|
5281
|
+
if (!o.value || !i.value || !c.value)
|
|
5282
5282
|
return;
|
|
5283
|
-
const w = [...((k =
|
|
5283
|
+
const w = [...((k = c.value) == null ? void 0 : k.subtasks) || []], M = w.findIndex((Q) => Q.id === u.id);
|
|
5284
5284
|
w[M] = {
|
|
5285
5285
|
...w[M],
|
|
5286
5286
|
...u
|
|
5287
5287
|
}, _({
|
|
5288
|
-
id: (D =
|
|
5288
|
+
id: (D = c.value) == null ? void 0 : D.id,
|
|
5289
5289
|
phaseId: (te = o.value) == null ? void 0 : te.id,
|
|
5290
5290
|
milestoneId: (ae = i.value) == null ? void 0 : ae.id,
|
|
5291
5291
|
subtasks: w
|
|
5292
5292
|
});
|
|
5293
5293
|
}, ge = (u) => {
|
|
5294
5294
|
var M, k, D, te;
|
|
5295
|
-
if (!o.value || !i.value || !
|
|
5295
|
+
if (!o.value || !i.value || !c.value)
|
|
5296
5296
|
return;
|
|
5297
|
-
const w = [...((M =
|
|
5297
|
+
const w = [...((M = c.value) == null ? void 0 : M.subtasks) || []].filter(
|
|
5298
5298
|
(ae) => ae.id !== u
|
|
5299
5299
|
);
|
|
5300
5300
|
_({
|
|
5301
|
-
id: (k =
|
|
5301
|
+
id: (k = c.value) == null ? void 0 : k.id,
|
|
5302
5302
|
phaseId: (D = o.value) == null ? void 0 : D.id,
|
|
5303
5303
|
milestoneId: (te = i.value) == null ? void 0 : te.id,
|
|
5304
5304
|
subtasks: w
|
|
@@ -5310,14 +5310,14 @@ const A5 = {
|
|
|
5310
5310
|
};
|
|
5311
5311
|
return (u, w) => {
|
|
5312
5312
|
var M, k, D, te, ae, Q;
|
|
5313
|
-
return a.value ? (
|
|
5313
|
+
return a.value ? (d(), h("div", A5, [
|
|
5314
5314
|
y(M1, {
|
|
5315
5315
|
"can-go-back": !0,
|
|
5316
5316
|
onGoBack: w[1] || (w[1] = (R) => u.$router.push({ name: j(t1).TEMPLATES_LIST }))
|
|
5317
5317
|
}, {
|
|
5318
5318
|
primary: F(() => [
|
|
5319
5319
|
y(pe, {
|
|
5320
|
-
title:
|
|
5320
|
+
title: m.value,
|
|
5321
5321
|
level: 2,
|
|
5322
5322
|
"is-editable": !0,
|
|
5323
5323
|
"onUpdate:title": w[0] || (w[0] = (R) => {
|
|
@@ -5385,7 +5385,7 @@ const A5 = {
|
|
|
5385
5385
|
}, 8, ["model-value"])
|
|
5386
5386
|
]),
|
|
5387
5387
|
r("li", V5, [
|
|
5388
|
-
o.value ? (
|
|
5388
|
+
o.value ? (d(), q(V3, {
|
|
5389
5389
|
key: 0,
|
|
5390
5390
|
"template-id": u.templateId,
|
|
5391
5391
|
phase: o.value,
|
|
@@ -5397,12 +5397,12 @@ const A5 = {
|
|
|
5397
5397
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : S("", !0)
|
|
5398
5398
|
]),
|
|
5399
5399
|
r("li", E5, [
|
|
5400
|
-
o.value && i.value ? (
|
|
5400
|
+
o.value && i.value ? (d(), q(O3, {
|
|
5401
5401
|
key: 0,
|
|
5402
5402
|
"template-id": u.templateId,
|
|
5403
5403
|
"phase-id": (k = o.value) == null ? void 0 : k.id,
|
|
5404
5404
|
milestone: i.value,
|
|
5405
|
-
"activity-id": (D =
|
|
5405
|
+
"activity-id": (D = c.value) == null ? void 0 : D.id,
|
|
5406
5406
|
onAddActivity: X,
|
|
5407
5407
|
onUpdateActivity: _,
|
|
5408
5408
|
onRemoveActivity: se
|
|
@@ -5410,18 +5410,18 @@ const A5 = {
|
|
|
5410
5410
|
])
|
|
5411
5411
|
])
|
|
5412
5412
|
]),
|
|
5413
|
-
(
|
|
5414
|
-
|
|
5413
|
+
(d(), q(v1, { to: "body" }, [
|
|
5414
|
+
c.value ? (d(), q(F1, {
|
|
5415
5415
|
key: 0,
|
|
5416
|
-
activity:
|
|
5417
|
-
"activity-types":
|
|
5416
|
+
activity: c.value,
|
|
5417
|
+
"activity-types": v.value,
|
|
5418
5418
|
breadcrumbs: `${a.value.name} / ${(te = o.value) == null ? void 0 : te.name} / ${(ae = i.value) == null ? void 0 : ae.name}`,
|
|
5419
5419
|
"milestone-id": (Q = i.value) == null ? void 0 : Q.id,
|
|
5420
|
-
"template-activities":
|
|
5420
|
+
"template-activities": C.value,
|
|
5421
5421
|
"template-milestones": l.value,
|
|
5422
5422
|
"is-template": !0,
|
|
5423
5423
|
"onUpdate:activity": w[2] || (w[2] = (R) => {
|
|
5424
|
-
u.phaseId && u.milestoneId &&
|
|
5424
|
+
u.phaseId && u.milestoneId && c.value && _({
|
|
5425
5425
|
...R,
|
|
5426
5426
|
phaseId: u.phaseId,
|
|
5427
5427
|
milestoneId: u.milestoneId
|
|
@@ -5435,14 +5435,14 @@ const A5 = {
|
|
|
5435
5435
|
onRemoveFile: Te
|
|
5436
5436
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : S("", !0)
|
|
5437
5437
|
])),
|
|
5438
|
-
(
|
|
5439
|
-
E.value ? (
|
|
5438
|
+
(d(), q(v1, { to: "body" }, [
|
|
5439
|
+
E.value ? (d(), q(M5, {
|
|
5440
5440
|
key: 0,
|
|
5441
5441
|
"template-id": a.value.id,
|
|
5442
5442
|
rules: a.value.rules || [],
|
|
5443
5443
|
"template-phases": a.value.phases,
|
|
5444
5444
|
"template-milestones": l.value,
|
|
5445
|
-
"template-activities":
|
|
5445
|
+
"template-activities": C.value,
|
|
5446
5446
|
onClose: N,
|
|
5447
5447
|
onAddRule: ee,
|
|
5448
5448
|
onRemoveRule: ce
|
|
@@ -5465,17 +5465,17 @@ const O5 = {
|
|
|
5465
5465
|
tagName: { default: "div" }
|
|
5466
5466
|
},
|
|
5467
5467
|
setup(s) {
|
|
5468
|
-
return (e, t) => (
|
|
5468
|
+
return (e, t) => (d(), q(Ke(e.tagName), {
|
|
5469
5469
|
class: G(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
5470
5470
|
}, {
|
|
5471
5471
|
default: F(() => [
|
|
5472
|
-
e.$slots.header ? (
|
|
5472
|
+
e.$slots.header ? (d(), h("header", O5, [
|
|
5473
5473
|
x(e.$slots, "header")
|
|
5474
5474
|
])) : S("", !0),
|
|
5475
5475
|
r("div", D5, [
|
|
5476
5476
|
x(e.$slots, "default")
|
|
5477
5477
|
]),
|
|
5478
|
-
e.$slots.footer ? (
|
|
5478
|
+
e.$slots.footer ? (d(), h("footer", B5, [
|
|
5479
5479
|
x(e.$slots, "footer")
|
|
5480
5480
|
])) : S("", !0)
|
|
5481
5481
|
]),
|
|
@@ -5491,11 +5491,11 @@ const G1 = /* @__PURE__ */ K({
|
|
|
5491
5491
|
},
|
|
5492
5492
|
setup(s) {
|
|
5493
5493
|
const e = s, t = f(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
5494
|
-
return (n, a) => (
|
|
5494
|
+
return (n, a) => (d(), h("div", {
|
|
5495
5495
|
class: G(["ao-progress", n.status ? `ao-progress--${n.status}` : ""]),
|
|
5496
5496
|
role: "meter"
|
|
5497
5497
|
}, [
|
|
5498
|
-
(
|
|
5498
|
+
(d(!0), h(oe, null, me(t.value, (o) => (d(), h("div", {
|
|
5499
5499
|
key: o,
|
|
5500
5500
|
class: G(["ao-progress__progress"]),
|
|
5501
5501
|
style: xt({ width: `${o * 100}%` })
|
|
@@ -5522,10 +5522,10 @@ const P5 = { class: "ao-card-project-phase__header" }, j5 = { class: "ao-card-pr
|
|
|
5522
5522
|
var o;
|
|
5523
5523
|
return (o = e.milestones) == null ? void 0 : o.filter((i) => i.status === _5.done).length;
|
|
5524
5524
|
}), a = f(() => (n.value || 0) / (t.value || 1));
|
|
5525
|
-
return (o, i) => (
|
|
5525
|
+
return (o, i) => (d(), q(z1, { class: "ao-card-project-phase" }, {
|
|
5526
5526
|
header: F(() => [
|
|
5527
5527
|
r("div", P5, [
|
|
5528
|
-
o.projectName ? (
|
|
5528
|
+
o.projectName ? (d(), q(g1, {
|
|
5529
5529
|
key: 0,
|
|
5530
5530
|
label: o.projectName,
|
|
5531
5531
|
class: "ao-card-project-phase__project",
|
|
@@ -5543,7 +5543,7 @@ const P5 = { class: "ao-card-project-phase__header" }, j5 = { class: "ao-card-pr
|
|
|
5543
5543
|
footer: F(() => [
|
|
5544
5544
|
r("div", j5, [
|
|
5545
5545
|
r("div", Z5, [
|
|
5546
|
-
t.value ? (
|
|
5546
|
+
t.value ? (d(), h(oe, { key: 0 }, [
|
|
5547
5547
|
r("div", N5, [
|
|
5548
5548
|
y(le, {
|
|
5549
5549
|
name: "MountainFlagOutlineRounded",
|
|
@@ -5556,7 +5556,7 @@ const P5 = { class: "ao-card-project-phase__header" }, j5 = { class: "ao-card-pr
|
|
|
5556
5556
|
class: "ao-card-project-phase__progress"
|
|
5557
5557
|
}, null, 8, ["percentages"])
|
|
5558
5558
|
], 64)) : S("", !0),
|
|
5559
|
-
o.$slots.secondary ? (
|
|
5559
|
+
o.$slots.secondary ? (d(), h("div", U5, [
|
|
5560
5560
|
x(o.$slots, "secondary")
|
|
5561
5561
|
])) : S("", !0)
|
|
5562
5562
|
])
|
|
@@ -5584,11 +5584,11 @@ const F5 = { class: "ao-card-project-phase__footer" }, z5 = { class: "ao-card-pr
|
|
|
5584
5584
|
}), n = f(() => {
|
|
5585
5585
|
var o;
|
|
5586
5586
|
return (o = e.activities) == null ? void 0 : o.filter((i) => {
|
|
5587
|
-
var l,
|
|
5588
|
-
return ((l = i.status) == null ? void 0 : l.id) === ((
|
|
5587
|
+
var l, C;
|
|
5588
|
+
return ((l = i.status) == null ? void 0 : l.id) === ((C = e.doneStatus) == null ? void 0 : C.id);
|
|
5589
5589
|
}).length;
|
|
5590
5590
|
}), a = f(() => (n.value || 0) / (t.value || 1));
|
|
5591
|
-
return (o, i) => (
|
|
5591
|
+
return (o, i) => (d(), q(z1, {
|
|
5592
5592
|
class: "ao-card-project-milestone",
|
|
5593
5593
|
"is-clickable": !0,
|
|
5594
5594
|
"tag-name": "li"
|
|
@@ -5602,7 +5602,7 @@ const F5 = { class: "ao-card-project-phase__footer" }, z5 = { class: "ao-card-pr
|
|
|
5602
5602
|
footer: F(() => [
|
|
5603
5603
|
r("div", F5, [
|
|
5604
5604
|
r("div", z5, [
|
|
5605
|
-
t.value ? (
|
|
5605
|
+
t.value ? (d(), h(oe, { key: 0 }, [
|
|
5606
5606
|
r("div", G5, [
|
|
5607
5607
|
y(le, {
|
|
5608
5608
|
name: "SelectCheckBox",
|
|
@@ -5615,7 +5615,7 @@ const F5 = { class: "ao-card-project-phase__footer" }, z5 = { class: "ao-card-pr
|
|
|
5615
5615
|
class: "ao-card-project-phase__progress"
|
|
5616
5616
|
}, null, 8, ["percentages"])
|
|
5617
5617
|
], 64)) : S("", !0),
|
|
5618
|
-
o.$slots.secondary ? (
|
|
5618
|
+
o.$slots.secondary ? (d(), h("div", x5, [
|
|
5619
5619
|
x(o.$slots, "secondary")
|
|
5620
5620
|
])) : S("", !0)
|
|
5621
5621
|
])
|
|
@@ -5636,7 +5636,7 @@ const Y5 = { class: "ao-project-phase" }, X5 = { class: "ao-project-phase__col-p
|
|
|
5636
5636
|
const t = s, n = f(() => t.phase.milestones), a = (o) => {
|
|
5637
5637
|
e("addMilestone", o);
|
|
5638
5638
|
};
|
|
5639
|
-
return (o, i) => (
|
|
5639
|
+
return (o, i) => (d(), h("li", Y5, [
|
|
5640
5640
|
r("div", X5, [
|
|
5641
5641
|
y(q5, {
|
|
5642
5642
|
id: o.phase.id,
|
|
@@ -5648,13 +5648,13 @@ const Y5 = { class: "ao-project-phase" }, X5 = { class: "ao-project-phase__col-p
|
|
|
5648
5648
|
r("div", Q5, [
|
|
5649
5649
|
r("div", J5, [
|
|
5650
5650
|
r("ul", e7, [
|
|
5651
|
-
(
|
|
5651
|
+
(d(!0), h(oe, null, me(n.value, (l) => (d(), q(W5, {
|
|
5652
5652
|
id: l.id,
|
|
5653
5653
|
key: l.id,
|
|
5654
5654
|
name: l.name,
|
|
5655
5655
|
activities: l.activities,
|
|
5656
5656
|
class: "ao-project-phase__milestone",
|
|
5657
|
-
onClick: (
|
|
5657
|
+
onClick: (C) => o.$router.push({
|
|
5658
5658
|
name: j(Ge).milestone,
|
|
5659
5659
|
params: { phaseId: o.phase.id, milestoneId: l.id }
|
|
5660
5660
|
})
|
|
@@ -5690,7 +5690,7 @@ const a7 = { class: "ao-project" }, n7 = { class: "ao-project__body" }, i7 = { c
|
|
|
5690
5690
|
e("addActivity", $);
|
|
5691
5691
|
}, l = ($) => {
|
|
5692
5692
|
e("update:activity", $);
|
|
5693
|
-
},
|
|
5693
|
+
}, C = ($) => {
|
|
5694
5694
|
var b;
|
|
5695
5695
|
const O = t.phases.find((B) => {
|
|
5696
5696
|
var X;
|
|
@@ -5707,9 +5707,9 @@ const a7 = { class: "ao-project" }, n7 = { class: "ao-project__body" }, i7 = { c
|
|
|
5707
5707
|
phaseId: O == null ? void 0 : O.id,
|
|
5708
5708
|
...$
|
|
5709
5709
|
});
|
|
5710
|
-
},
|
|
5710
|
+
}, c = f(() => n.value.reduce(($, O) => [...$, ...O.activities || []], [])), v = ($) => {
|
|
5711
5711
|
e("addFiles", $);
|
|
5712
|
-
},
|
|
5712
|
+
}, m = ($) => {
|
|
5713
5713
|
e("removeFile", $);
|
|
5714
5714
|
}, g = ($) => {
|
|
5715
5715
|
e("addComment", $);
|
|
@@ -5720,7 +5720,7 @@ const a7 = { class: "ao-project" }, n7 = { class: "ao-project__body" }, i7 = { c
|
|
|
5720
5720
|
};
|
|
5721
5721
|
return ($, O) => {
|
|
5722
5722
|
const T = Wt("RouterView");
|
|
5723
|
-
return
|
|
5723
|
+
return d(), h(oe, null, [
|
|
5724
5724
|
r("div", a7, [
|
|
5725
5725
|
y(M1, null, {
|
|
5726
5726
|
primary: F(() => [
|
|
@@ -5762,7 +5762,7 @@ const a7 = { class: "ao-project" }, n7 = { class: "ao-project__body" }, i7 = { c
|
|
|
5762
5762
|
])
|
|
5763
5763
|
]),
|
|
5764
5764
|
r("ul", d7, [
|
|
5765
|
-
(
|
|
5765
|
+
(d(!0), h(oe, null, me($.phases, (b) => (d(), q(s7, {
|
|
5766
5766
|
key: b.id,
|
|
5767
5767
|
phase: b,
|
|
5768
5768
|
"project-name": $.project.projectName,
|
|
@@ -5779,14 +5779,14 @@ const a7 = { class: "ao-project" }, n7 = { class: "ao-project__body" }, i7 = { c
|
|
|
5779
5779
|
onClose: O[0] || (O[0] = (b) => $.$router.push({ name: j(Ge).project })),
|
|
5780
5780
|
onAddActivity: i
|
|
5781
5781
|
}, null, 8, ["milestones", "project-name", "users"]),
|
|
5782
|
-
(
|
|
5782
|
+
(d(), q(v1, { to: "body" }, [
|
|
5783
5783
|
y(T, {
|
|
5784
5784
|
name: "modal",
|
|
5785
|
-
activities:
|
|
5785
|
+
activities: c.value,
|
|
5786
5786
|
"onUpdate:activity": l,
|
|
5787
|
-
onAddSubtask:
|
|
5788
|
-
onAddFiles:
|
|
5789
|
-
onRemoveFile:
|
|
5787
|
+
onAddSubtask: C,
|
|
5788
|
+
onAddFiles: v,
|
|
5789
|
+
onRemoveFile: m,
|
|
5790
5790
|
onAddComment: g,
|
|
5791
5791
|
onUpdateComment: I,
|
|
5792
5792
|
onRemoveComment: V
|
|
@@ -5838,73 +5838,73 @@ const p7 = { class: "ao-card-feed__header" }, h7 = {
|
|
|
5838
5838
|
},
|
|
5839
5839
|
emits: ["removeAssignee", "updateActivity"],
|
|
5840
5840
|
setup(s, { emit: e }) {
|
|
5841
|
-
const t = s, n = (
|
|
5841
|
+
const t = s, n = (m) => {
|
|
5842
5842
|
e("updateActivity", {
|
|
5843
5843
|
id: t.id,
|
|
5844
|
-
name:
|
|
5844
|
+
name: m
|
|
5845
5845
|
});
|
|
5846
5846
|
}, a = f(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = f(() => {
|
|
5847
|
-
var
|
|
5848
|
-
return (
|
|
5847
|
+
var m;
|
|
5848
|
+
return (m = t.assignees) == null ? void 0 : m.map((g) => {
|
|
5849
5849
|
var I;
|
|
5850
5850
|
return (I = t.users) == null ? void 0 : I.find((V) => V.id === g);
|
|
5851
5851
|
});
|
|
5852
|
-
}), i = (
|
|
5853
|
-
const { firstName: g, lastName: I } =
|
|
5852
|
+
}), i = (m) => {
|
|
5853
|
+
const { firstName: g, lastName: I } = m || {};
|
|
5854
5854
|
return g && I ? `${g} ${I}` : "";
|
|
5855
|
-
}, l = (
|
|
5856
|
-
e("removeAssignee",
|
|
5857
|
-
},
|
|
5858
|
-
var
|
|
5859
|
-
return (
|
|
5860
|
-
}),
|
|
5861
|
-
var
|
|
5862
|
-
return (
|
|
5863
|
-
}),
|
|
5864
|
-
return (
|
|
5855
|
+
}, l = (m) => {
|
|
5856
|
+
e("removeAssignee", m);
|
|
5857
|
+
}, C = f(() => {
|
|
5858
|
+
var m;
|
|
5859
|
+
return (m = t.subtasks) == null ? void 0 : m.length;
|
|
5860
|
+
}), c = f(() => {
|
|
5861
|
+
var m;
|
|
5862
|
+
return (m = t.subtasks) == null ? void 0 : m.filter((g) => g.isDone).length;
|
|
5863
|
+
}), v = f(() => (c.value || 0) / (C.value || 1));
|
|
5864
|
+
return (m, g) => (d(), q(z1, {
|
|
5865
5865
|
class: "ao-card-feed",
|
|
5866
5866
|
"is-clickable": !0
|
|
5867
5867
|
}, {
|
|
5868
5868
|
header: F(() => [
|
|
5869
5869
|
r("div", p7, [
|
|
5870
|
-
|
|
5870
|
+
m.projectName ? (d(), q(g1, {
|
|
5871
5871
|
key: 0,
|
|
5872
|
-
label:
|
|
5872
|
+
label: m.projectName,
|
|
5873
5873
|
class: "ao-card-feed__project",
|
|
5874
5874
|
variant: "solid",
|
|
5875
5875
|
color: "primary"
|
|
5876
5876
|
}, null, 8, ["label"])) : S("", !0),
|
|
5877
|
-
|
|
5877
|
+
m.isImportant ? (d(), q(le, {
|
|
5878
5878
|
key: 1,
|
|
5879
5879
|
name: "FlagRounded",
|
|
5880
5880
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
5881
5881
|
size: "sm"
|
|
5882
5882
|
})) : S("", !0),
|
|
5883
|
-
|
|
5884
|
-
x(
|
|
5883
|
+
m.$slots.secondary ? (d(), h("div", h7, [
|
|
5884
|
+
x(m.$slots, "secondary")
|
|
5885
5885
|
])) : S("", !0)
|
|
5886
5886
|
])
|
|
5887
5887
|
]),
|
|
5888
5888
|
default: F(() => [
|
|
5889
5889
|
r("div", m7, [
|
|
5890
|
-
a.value ? (
|
|
5890
|
+
a.value ? (d(), h("span", v7, U(a.value), 1)) : S("", !0),
|
|
5891
5891
|
y(pe, {
|
|
5892
|
-
title:
|
|
5892
|
+
title: m.name,
|
|
5893
5893
|
level: 5,
|
|
5894
5894
|
"is-editable": !0,
|
|
5895
5895
|
"onUpdate:title": n
|
|
5896
5896
|
}, null, 8, ["title"]),
|
|
5897
|
-
|
|
5897
|
+
m.endDate ? (d(), h("span", C7, U(m.endDate), 1)) : S("", !0)
|
|
5898
5898
|
])
|
|
5899
5899
|
]),
|
|
5900
5900
|
footer: F(() => [
|
|
5901
5901
|
r("div", _7, [
|
|
5902
5902
|
r("div", f7, [
|
|
5903
5903
|
r("ul", g7, [
|
|
5904
|
-
(
|
|
5904
|
+
(d(!0), h(oe, null, me(o.value, (I) => (d(), h(oe, {
|
|
5905
5905
|
key: I.id
|
|
5906
5906
|
}, [
|
|
5907
|
-
I ? (
|
|
5907
|
+
I ? (d(), h("li", y7, [
|
|
5908
5908
|
y(We, {
|
|
5909
5909
|
"user-name": i(I),
|
|
5910
5910
|
"is-closable": !0,
|
|
@@ -5913,34 +5913,34 @@ const p7 = { class: "ao-card-feed__header" }, h7 = {
|
|
|
5913
5913
|
])) : S("", !0)
|
|
5914
5914
|
], 64))), 128))
|
|
5915
5915
|
]),
|
|
5916
|
-
|
|
5917
|
-
|
|
5916
|
+
m.comments || m.attachments ? (d(), h("ul", b7, [
|
|
5917
|
+
m.comments ? (d(), h("li", w7, [
|
|
5918
5918
|
y(le, {
|
|
5919
5919
|
name: "ChatOutline",
|
|
5920
5920
|
size: "sm"
|
|
5921
5921
|
}),
|
|
5922
|
-
r("span", $7, U(
|
|
5922
|
+
r("span", $7, U(m.comments), 1)
|
|
5923
5923
|
])) : S("", !0),
|
|
5924
|
-
|
|
5924
|
+
m.attachments ? (d(), h("li", I7, [
|
|
5925
5925
|
y(le, {
|
|
5926
5926
|
name: "AttachFileRounded",
|
|
5927
5927
|
size: "sm"
|
|
5928
5928
|
}),
|
|
5929
|
-
r("span", M7, U(
|
|
5929
|
+
r("span", M7, U(m.attachments), 1)
|
|
5930
5930
|
])) : S("", !0)
|
|
5931
5931
|
])) : S("", !0)
|
|
5932
5932
|
]),
|
|
5933
5933
|
r("div", A7, [
|
|
5934
|
-
|
|
5934
|
+
m.subtasks ? (d(), h("div", S7, [
|
|
5935
5935
|
r("div", k7, [
|
|
5936
5936
|
y(le, {
|
|
5937
5937
|
name: "SelectCheckBox",
|
|
5938
5938
|
size: "sm"
|
|
5939
5939
|
}),
|
|
5940
|
-
r("span", L7, U(
|
|
5940
|
+
r("span", L7, U(c.value) + " / " + U(C.value), 1)
|
|
5941
5941
|
]),
|
|
5942
5942
|
y(G1, {
|
|
5943
|
-
percentages:
|
|
5943
|
+
percentages: v.value,
|
|
5944
5944
|
class: "ao-card-feed__progress"
|
|
5945
5945
|
}, null, 8, ["percentages"])
|
|
5946
5946
|
])) : S("", !0)
|
|
@@ -5965,7 +5965,7 @@ const T7 = { class: "ao-project-milestone" }, V7 = { class: "ao-project-mileston
|
|
|
5965
5965
|
setup(s, { emit: e }) {
|
|
5966
5966
|
const t = s, n = f(() => {
|
|
5967
5967
|
var l;
|
|
5968
|
-
return (l = t.milestones) == null ? void 0 : l.find((
|
|
5968
|
+
return (l = t.milestones) == null ? void 0 : l.find((C) => C.id === t.milestoneId);
|
|
5969
5969
|
}), a = f(() => {
|
|
5970
5970
|
var l;
|
|
5971
5971
|
return (l = n.value) == null ? void 0 : l.activities;
|
|
@@ -5977,14 +5977,14 @@ const T7 = { class: "ao-project-milestone" }, V7 = { class: "ao-project-mileston
|
|
|
5977
5977
|
phaseId: t.phaseId
|
|
5978
5978
|
});
|
|
5979
5979
|
};
|
|
5980
|
-
return (l,
|
|
5981
|
-
var
|
|
5982
|
-
return
|
|
5980
|
+
return (l, C) => {
|
|
5981
|
+
var c;
|
|
5982
|
+
return d(), h("div", T7, [
|
|
5983
5983
|
r("header", V7, [
|
|
5984
5984
|
r("div", E7, [
|
|
5985
5985
|
r("span", null, U(l.$t("project.milestone.title")), 1),
|
|
5986
5986
|
y(pe, {
|
|
5987
|
-
title: ((
|
|
5987
|
+
title: ((c = n.value) == null ? void 0 : c.name) || l.milestoneId,
|
|
5988
5988
|
level: 5
|
|
5989
5989
|
}, null, 8, ["title"])
|
|
5990
5990
|
]),
|
|
@@ -5996,24 +5996,24 @@ const T7 = { class: "ao-project-milestone" }, V7 = { class: "ao-project-mileston
|
|
|
5996
5996
|
]),
|
|
5997
5997
|
r("div", H7, [
|
|
5998
5998
|
r("ul", O7, [
|
|
5999
|
-
(
|
|
6000
|
-
var
|
|
6001
|
-
return
|
|
6002
|
-
key:
|
|
6003
|
-
name:
|
|
5999
|
+
(d(!0), h(oe, null, me(a.value, (v) => {
|
|
6000
|
+
var m, g, I;
|
|
6001
|
+
return d(), q(_t, {
|
|
6002
|
+
key: v.id,
|
|
6003
|
+
name: v.name || v.id,
|
|
6004
6004
|
"project-name": l.projectName,
|
|
6005
6005
|
"phase-name": l.phaseName,
|
|
6006
|
-
"milestone-name": (
|
|
6007
|
-
"end-date":
|
|
6008
|
-
"is-important":
|
|
6006
|
+
"milestone-name": (m = n.value) == null ? void 0 : m.name,
|
|
6007
|
+
"end-date": v.endDate,
|
|
6008
|
+
"is-important": v.isImportant,
|
|
6009
6009
|
users: l.users,
|
|
6010
|
-
assignees:
|
|
6011
|
-
comments: (g =
|
|
6012
|
-
attachments: (I =
|
|
6013
|
-
subtasks:
|
|
6010
|
+
assignees: v.assignees,
|
|
6011
|
+
comments: (g = v.comments) == null ? void 0 : g.length,
|
|
6012
|
+
attachments: (I = v.attachments) == null ? void 0 : I.length,
|
|
6013
|
+
subtasks: v.subtasks,
|
|
6014
6014
|
onClick: (V) => l.$router.push({
|
|
6015
6015
|
name: j(Ge).activity,
|
|
6016
|
-
params: { phaseId: l.phaseId, milestoneId: l.milestoneId, activityId:
|
|
6016
|
+
params: { phaseId: l.phaseId, milestoneId: l.milestoneId, activityId: v.id }
|
|
6017
6017
|
})
|
|
6018
6018
|
}, null, 8, ["name", "project-name", "phase-name", "milestone-name", "end-date", "is-important", "users", "assignees", "comments", "attachments", "subtasks", "onClick"]);
|
|
6019
6019
|
}), 128))
|
|
@@ -6057,13 +6057,13 @@ const P7 = { class: "ao-comment" }, j7 = { class: "ao-comment__body" }, Z7 = ["c
|
|
|
6057
6057
|
const t = s, n = f(() => {
|
|
6058
6058
|
const g = t.user;
|
|
6059
6059
|
return g ? `${g == null ? void 0 : g.firstName} ${g == null ? void 0 : g.lastName}` : null;
|
|
6060
|
-
}), a = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard:
|
|
6060
|
+
}), a = J(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: C } = ct(a), c = C(), v = l((g) => {
|
|
6061
6061
|
e("edit", g);
|
|
6062
|
-
}),
|
|
6062
|
+
}), m = () => {
|
|
6063
6063
|
e("remove");
|
|
6064
6064
|
};
|
|
6065
|
-
return (g, I) => (
|
|
6066
|
-
n.value ? (
|
|
6065
|
+
return (g, I) => (d(), h("li", P7, [
|
|
6066
|
+
n.value ? (d(), q(We, {
|
|
6067
6067
|
key: 0,
|
|
6068
6068
|
"user-name": n.value,
|
|
6069
6069
|
class: "ao-comment__avatar"
|
|
@@ -6077,29 +6077,29 @@ const P7 = { class: "ao-comment" }, j7 = { class: "ao-comment__body" }, Z7 = ["c
|
|
|
6077
6077
|
}, U(g.content), 9, Z7),
|
|
6078
6078
|
r("span", N7, U(g.editedAt || g.createdAt), 1)
|
|
6079
6079
|
]),
|
|
6080
|
-
g.isEditable ? (
|
|
6081
|
-
j(o) ? (
|
|
6080
|
+
g.isEditable ? (d(), h("div", R7, [
|
|
6081
|
+
j(o) ? (d(), h(oe, { key: 0 }, [
|
|
6082
6082
|
y(ue, {
|
|
6083
6083
|
"icon-name": "CloseRounded",
|
|
6084
6084
|
size: "sm",
|
|
6085
6085
|
variant: "ghost",
|
|
6086
6086
|
color: "neutral",
|
|
6087
|
-
onClick: j(
|
|
6087
|
+
onClick: j(c)
|
|
6088
6088
|
}, null, 8, ["onClick"]),
|
|
6089
6089
|
y(ue, {
|
|
6090
6090
|
"icon-name": "CheckSmallRounded",
|
|
6091
6091
|
size: "sm",
|
|
6092
6092
|
variant: "solid",
|
|
6093
6093
|
color: "neutral",
|
|
6094
|
-
onClick: j(
|
|
6094
|
+
onClick: j(v)
|
|
6095
6095
|
}, null, 8, ["onClick"])
|
|
6096
|
-
], 64)) : (
|
|
6096
|
+
], 64)) : (d(), h(oe, { key: 1 }, [
|
|
6097
6097
|
y(ue, {
|
|
6098
6098
|
label: g.$t("activity.comment.delete"),
|
|
6099
6099
|
size: "sm",
|
|
6100
6100
|
variant: "ghost",
|
|
6101
6101
|
color: "neutral",
|
|
6102
|
-
onClick:
|
|
6102
|
+
onClick: m
|
|
6103
6103
|
}, null, 8, ["label"]),
|
|
6104
6104
|
y(ue, {
|
|
6105
6105
|
label: g.$t("activity.comment.edit"),
|
|
@@ -6123,36 +6123,36 @@ const q7 = { class: "ao-comments" }, F7 = { class: "ao-comments__list" }, z7 = {
|
|
|
6123
6123
|
},
|
|
6124
6124
|
emits: ["createComment", "updateComment", "removeComment"],
|
|
6125
6125
|
setup(s, { emit: e }) {
|
|
6126
|
-
const t = s, n = (
|
|
6126
|
+
const t = s, n = (c) => t.users.find((m) => m.id === c), a = m1(t.newComment || ""), o = f({
|
|
6127
6127
|
get() {
|
|
6128
6128
|
return a.value;
|
|
6129
6129
|
},
|
|
6130
|
-
set(
|
|
6131
|
-
a.value =
|
|
6130
|
+
set(c) {
|
|
6131
|
+
a.value = c;
|
|
6132
6132
|
}
|
|
6133
6133
|
}), i = () => {
|
|
6134
|
-
const
|
|
6135
|
-
|
|
6136
|
-
}, l = (
|
|
6134
|
+
const c = a.value.trim();
|
|
6135
|
+
c && (e("createComment", c), a.value = "");
|
|
6136
|
+
}, l = (c, v) => {
|
|
6137
6137
|
e("updateComment", {
|
|
6138
|
-
id:
|
|
6139
|
-
content:
|
|
6138
|
+
id: c,
|
|
6139
|
+
content: v
|
|
6140
6140
|
});
|
|
6141
|
-
},
|
|
6142
|
-
e("removeComment",
|
|
6141
|
+
}, C = (c) => {
|
|
6142
|
+
e("removeComment", c);
|
|
6143
6143
|
};
|
|
6144
|
-
return (
|
|
6144
|
+
return (c, v) => (d(), h("div", q7, [
|
|
6145
6145
|
r("ul", F7, [
|
|
6146
|
-
(
|
|
6147
|
-
key:
|
|
6148
|
-
user: n(
|
|
6149
|
-
content:
|
|
6150
|
-
"created-at":
|
|
6151
|
-
"edited-at":
|
|
6152
|
-
"is-editable":
|
|
6146
|
+
(d(!0), h(oe, null, me(c.comments, (m) => (d(), q(U7, {
|
|
6147
|
+
key: m.id,
|
|
6148
|
+
user: n(m.userId),
|
|
6149
|
+
content: m.content,
|
|
6150
|
+
"created-at": m.createdAt,
|
|
6151
|
+
"edited-at": m.editedAt,
|
|
6152
|
+
"is-editable": m.userId === c.userId,
|
|
6153
6153
|
class: "ao-comment",
|
|
6154
|
-
onEdit: (g) => l(
|
|
6155
|
-
onRemove: () =>
|
|
6154
|
+
onEdit: (g) => l(m.id, g),
|
|
6155
|
+
onRemove: () => C(m.id)
|
|
6156
6156
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
6157
6157
|
]),
|
|
6158
6158
|
r("div", z7, [
|
|
@@ -6161,9 +6161,9 @@ const q7 = { class: "ao-comments" }, F7 = { class: "ao-comments__list" }, z7 = {
|
|
|
6161
6161
|
onSubmit: Le(i, ["prevent"])
|
|
6162
6162
|
}, [
|
|
6163
6163
|
r("label", K7, [
|
|
6164
|
-
r("span", x7, U(
|
|
6164
|
+
r("span", x7, U(c.$t("activity.comment.label")), 1),
|
|
6165
6165
|
Fe(r("textarea", {
|
|
6166
|
-
"onUpdate:modelValue":
|
|
6166
|
+
"onUpdate:modelValue": v[0] || (v[0] = (m) => o.value = m),
|
|
6167
6167
|
rows: "4",
|
|
6168
6168
|
class: "ao-field__textarea"
|
|
6169
6169
|
}, null, 512), [
|
|
@@ -6181,7 +6181,7 @@ const q7 = { class: "ao-comments" }, F7 = { class: "ao-comments__list" }, z7 = {
|
|
|
6181
6181
|
"icon-name": "SendRounded",
|
|
6182
6182
|
color: "primary",
|
|
6183
6183
|
variant: "solid",
|
|
6184
|
-
label:
|
|
6184
|
+
label: c.$t("activity.comment.submit")
|
|
6185
6185
|
}, null, 8, ["label"])
|
|
6186
6186
|
])
|
|
6187
6187
|
], 40, G7)
|
|
@@ -6223,25 +6223,25 @@ const Y7 = { class: "ao-fieldset" }, X7 = { class: "ao-fieldset__title" }, Q7 =
|
|
|
6223
6223
|
milestoneId: t.milestoneId
|
|
6224
6224
|
}
|
|
6225
6225
|
});
|
|
6226
|
-
},
|
|
6226
|
+
}, C = (g) => {
|
|
6227
6227
|
e("addSubtask", {
|
|
6228
6228
|
...g,
|
|
6229
6229
|
milestoneId: t.milestoneId,
|
|
6230
6230
|
phaseId: t.phaseId
|
|
6231
6231
|
});
|
|
6232
|
-
},
|
|
6232
|
+
}, c = (g) => {
|
|
6233
6233
|
o.value && e("addComment", {
|
|
6234
6234
|
activityId: o.value.id,
|
|
6235
6235
|
comment: g
|
|
6236
6236
|
});
|
|
6237
|
-
},
|
|
6237
|
+
}, v = (g) => {
|
|
6238
6238
|
const { id: I } = o.value || {};
|
|
6239
6239
|
I && e("updateComment", { ...g, activityId: I });
|
|
6240
|
-
},
|
|
6240
|
+
}, m = (g) => {
|
|
6241
6241
|
const { id: I } = o.value || {};
|
|
6242
6242
|
I && e("removeComment", { id: g, activityId: I });
|
|
6243
6243
|
};
|
|
6244
|
-
return (g, I) => o.value ? (
|
|
6244
|
+
return (g, I) => o.value ? (d(), q(F1, {
|
|
6245
6245
|
key: 0,
|
|
6246
6246
|
activity: o.value,
|
|
6247
6247
|
"activity-types": i.value,
|
|
@@ -6255,7 +6255,7 @@ const Y7 = { class: "ao-fieldset" }, X7 = { class: "ao-fieldset__title" }, Q7 =
|
|
|
6255
6255
|
...V
|
|
6256
6256
|
});
|
|
6257
6257
|
}),
|
|
6258
|
-
onAddSubtask:
|
|
6258
|
+
onAddSubtask: C
|
|
6259
6259
|
}, {
|
|
6260
6260
|
default: F(() => [
|
|
6261
6261
|
r("fieldset", Y7, [
|
|
@@ -6270,9 +6270,9 @@ const Y7 = { class: "ao-fieldset" }, X7 = { class: "ao-fieldset__title" }, Q7 =
|
|
|
6270
6270
|
comments: o.value.comments,
|
|
6271
6271
|
users: j(n),
|
|
6272
6272
|
"user-id": j(a),
|
|
6273
|
-
onCreateComment:
|
|
6274
|
-
onUpdateComment:
|
|
6275
|
-
onRemoveComment:
|
|
6273
|
+
onCreateComment: c,
|
|
6274
|
+
onUpdateComment: v,
|
|
6275
|
+
onRemoveComment: m
|
|
6276
6276
|
}, null, 8, ["comments", "users", "user-id"])
|
|
6277
6277
|
])
|
|
6278
6278
|
]),
|
|
@@ -6342,35 +6342,35 @@ const Y7 = { class: "ao-fieldset" }, X7 = { class: "ao-fieldset__title" }, Q7 =
|
|
|
6342
6342
|
emits: ["addTemplate", "updateTemplates", "updateItem"],
|
|
6343
6343
|
setup(s, { emit: e }) {
|
|
6344
6344
|
const t = s, { t: n } = A1(), a = () => {
|
|
6345
|
-
var
|
|
6346
|
-
const l = (
|
|
6347
|
-
name: n("template.defaultName.template", { idx:
|
|
6348
|
-
rank:
|
|
6345
|
+
var m, g;
|
|
6346
|
+
const l = (m = t.templates) == null ? void 0 : m.at(-1), C = l ? he.LexoRank.parse(l.rank).genNext() : he.LexoRank.middle(), c = ((g = t.templates) == null ? void 0 : g.length) ?? 0, v = {
|
|
6347
|
+
name: n("template.defaultName.template", { idx: c + 1 }),
|
|
6348
|
+
rank: C.format()
|
|
6349
6349
|
};
|
|
6350
|
-
e("addTemplate",
|
|
6351
|
-
}, o = (l,
|
|
6350
|
+
e("addTemplate", v);
|
|
6351
|
+
}, o = (l, C) => {
|
|
6352
6352
|
e("updateItem", {
|
|
6353
6353
|
itemType: de.TEMPLATES,
|
|
6354
6354
|
id: l,
|
|
6355
6355
|
templateId: l,
|
|
6356
6356
|
data: {
|
|
6357
|
-
name:
|
|
6357
|
+
name: C
|
|
6358
6358
|
}
|
|
6359
6359
|
});
|
|
6360
6360
|
}, i = (l) => {
|
|
6361
6361
|
if (l.moved) {
|
|
6362
|
-
const
|
|
6362
|
+
const C = I1(l, t.templates ?? []);
|
|
6363
6363
|
e("updateItem", {
|
|
6364
6364
|
itemType: de.TEMPLATES,
|
|
6365
6365
|
id: l.moved.element.id,
|
|
6366
6366
|
templateId: l.moved.element.id,
|
|
6367
6367
|
data: {
|
|
6368
|
-
rank:
|
|
6368
|
+
rank: C
|
|
6369
6369
|
}
|
|
6370
6370
|
});
|
|
6371
6371
|
}
|
|
6372
6372
|
};
|
|
6373
|
-
return (l,
|
|
6373
|
+
return (l, C) => (d(), h("div", J7, [
|
|
6374
6374
|
y(M1, null, {
|
|
6375
6375
|
secondary: F(() => [
|
|
6376
6376
|
y(ue, {
|
|
@@ -6390,20 +6390,20 @@ const Y7 = { class: "ao-fieldset" }, X7 = { class: "ao-fieldset__title" }, Q7 =
|
|
|
6390
6390
|
handle: ".ao-card__drag",
|
|
6391
6391
|
onChange: i
|
|
6392
6392
|
}, {
|
|
6393
|
-
item: F(({ element:
|
|
6394
|
-
var
|
|
6393
|
+
item: F(({ element: c }) => {
|
|
6394
|
+
var v;
|
|
6395
6395
|
return [
|
|
6396
6396
|
y(f3, {
|
|
6397
|
-
title:
|
|
6398
|
-
phases:
|
|
6399
|
-
milestones: (
|
|
6400
|
-
activities:
|
|
6401
|
-
"updated-at":
|
|
6402
|
-
"updated-by":
|
|
6403
|
-
onUpdateTitle: (
|
|
6404
|
-
onClick: (
|
|
6397
|
+
title: c.name || c.id,
|
|
6398
|
+
phases: c.phases,
|
|
6399
|
+
milestones: (v = c.phases) != null && v.length ? j(xr)(c.phases) : 0,
|
|
6400
|
+
activities: c.phases ? j(Wr)(c.phases) : 0,
|
|
6401
|
+
"updated-at": c.updatedAt,
|
|
6402
|
+
"updated-by": c.updatedBy,
|
|
6403
|
+
onUpdateTitle: (m) => o(c.id, m),
|
|
6404
|
+
onClick: (m) => l.$router.push({
|
|
6405
6405
|
name: j(t1).TEMPLATE_DETAILS,
|
|
6406
|
-
params: { templateId:
|
|
6406
|
+
params: { templateId: c.id }
|
|
6407
6407
|
})
|
|
6408
6408
|
}, null, 8, ["title", "phases", "milestones", "activities", "updated-at", "updated-by", "onUpdateTitle", "onClick"])
|
|
6409
6409
|
];
|
|
@@ -6420,13 +6420,13 @@ const tc = { class: "ao-col-header" }, sc = /* @__PURE__ */ K({
|
|
|
6420
6420
|
items: {}
|
|
6421
6421
|
},
|
|
6422
6422
|
setup(s) {
|
|
6423
|
-
return (e, t) => (
|
|
6423
|
+
return (e, t) => (d(), h("header", tc, [
|
|
6424
6424
|
y(pe, {
|
|
6425
6425
|
title: e.title,
|
|
6426
6426
|
class: "ao-col-header__title",
|
|
6427
6427
|
level: 4
|
|
6428
6428
|
}, null, 8, ["title"]),
|
|
6429
|
-
e.items ? (
|
|
6429
|
+
e.items ? (d(), q(g1, {
|
|
6430
6430
|
key: 0,
|
|
6431
6431
|
label: e.items,
|
|
6432
6432
|
class: "ao-col-header__items",
|
|
@@ -6458,13 +6458,13 @@ function lc(s, e = {}) {
|
|
|
6458
6458
|
clearTimeout(l), a(), a = s1;
|
|
6459
6459
|
};
|
|
6460
6460
|
return (l) => {
|
|
6461
|
-
const
|
|
6462
|
-
return t && o(t),
|
|
6463
|
-
a = e.rejectOnCancel ?
|
|
6464
|
-
t && o(t), n = null,
|
|
6465
|
-
},
|
|
6466
|
-
n && o(n), n = null,
|
|
6467
|
-
},
|
|
6461
|
+
const C = C1(s), c = C1(e.maxWait);
|
|
6462
|
+
return t && o(t), C <= 0 || c !== void 0 && c <= 0 ? (n && (o(n), n = null), Promise.resolve(l())) : new Promise((v, m) => {
|
|
6463
|
+
a = e.rejectOnCancel ? m : v, c && !n && (n = setTimeout(() => {
|
|
6464
|
+
t && o(t), n = null, v(l());
|
|
6465
|
+
}, c)), t = setTimeout(() => {
|
|
6466
|
+
n && o(n), n = null, v(l());
|
|
6467
|
+
}, C);
|
|
6468
6468
|
});
|
|
6469
6469
|
};
|
|
6470
6470
|
}
|
|
@@ -6497,15 +6497,15 @@ function pc(s, e, t = {}) {
|
|
|
6497
6497
|
threshold: o = 0.1,
|
|
6498
6498
|
window: i = cc,
|
|
6499
6499
|
immediate: l = !0
|
|
6500
|
-
} = t,
|
|
6500
|
+
} = t, C = uc(() => i && "IntersectionObserver" in i), c = f(() => {
|
|
6501
6501
|
const V = C1(s);
|
|
6502
6502
|
return (Array.isArray(V) ? V : [V]).map(j1).filter(ic);
|
|
6503
6503
|
});
|
|
6504
|
-
let
|
|
6505
|
-
const
|
|
6506
|
-
() => [
|
|
6504
|
+
let v = s1;
|
|
6505
|
+
const m = J(l), g = C.value ? _e(
|
|
6506
|
+
() => [c.value, j1(n), m.value],
|
|
6507
6507
|
([V, $]) => {
|
|
6508
|
-
if (
|
|
6508
|
+
if (v(), !m.value || !V.length)
|
|
6509
6509
|
return;
|
|
6510
6510
|
const O = new IntersectionObserver(
|
|
6511
6511
|
e,
|
|
@@ -6515,22 +6515,22 @@ function pc(s, e, t = {}) {
|
|
|
6515
6515
|
threshold: o
|
|
6516
6516
|
}
|
|
6517
6517
|
);
|
|
6518
|
-
V.forEach((T) => T && O.observe(T)),
|
|
6519
|
-
O.disconnect(),
|
|
6518
|
+
V.forEach((T) => T && O.observe(T)), v = () => {
|
|
6519
|
+
O.disconnect(), v = s1;
|
|
6520
6520
|
};
|
|
6521
6521
|
},
|
|
6522
6522
|
{ immediate: l, flush: "post" }
|
|
6523
6523
|
) : s1, I = () => {
|
|
6524
|
-
|
|
6524
|
+
v(), g(), m.value = !1;
|
|
6525
6525
|
};
|
|
6526
6526
|
return ac(I), {
|
|
6527
|
-
isSupported:
|
|
6528
|
-
isActive:
|
|
6527
|
+
isSupported: C,
|
|
6528
|
+
isActive: m,
|
|
6529
6529
|
pause() {
|
|
6530
|
-
|
|
6530
|
+
v(), m.value = !1;
|
|
6531
6531
|
},
|
|
6532
6532
|
resume() {
|
|
6533
|
-
|
|
6533
|
+
m.value = !0;
|
|
6534
6534
|
},
|
|
6535
6535
|
stop: I
|
|
6536
6536
|
};
|
|
@@ -6565,59 +6565,57 @@ const hc = {
|
|
|
6565
6565
|
},
|
|
6566
6566
|
emits: ["add", "update:list", "change:list", "loadMore", "selectActivity", "archiveActivity", "updateActivity"],
|
|
6567
6567
|
setup(s, { emit: e }) {
|
|
6568
|
-
const t = s, n = (
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
"add" in p ? d = p.add.element : "removed" in p ? d = p.removed.element : "moved" in p && (d = p.moved.element), d && e("updateActivity", {
|
|
6572
|
-
id: d.id,
|
|
6568
|
+
const t = s, n = (c) => "added" in c, a = (c) => {
|
|
6569
|
+
n(c) && e("updateActivity", {
|
|
6570
|
+
id: c.added.element.id,
|
|
6573
6571
|
statusId: t.status.id
|
|
6574
6572
|
});
|
|
6575
|
-
},
|
|
6576
|
-
pc(
|
|
6577
|
-
|
|
6578
|
-
}), _e(
|
|
6579
|
-
|
|
6573
|
+
}, o = J(!1), i = J(null);
|
|
6574
|
+
pc(i, ([{ isIntersecting: c }]) => {
|
|
6575
|
+
o.value = c;
|
|
6576
|
+
}), _e(o, (c) => {
|
|
6577
|
+
c && t.hasMore && !t.isLoading && e("loadMore");
|
|
6580
6578
|
});
|
|
6581
|
-
const
|
|
6582
|
-
|
|
6583
|
-
},
|
|
6584
|
-
e("updateActivity",
|
|
6579
|
+
const l = (c) => {
|
|
6580
|
+
e("selectActivity", c);
|
|
6581
|
+
}, C = (c) => {
|
|
6582
|
+
e("updateActivity", c);
|
|
6585
6583
|
};
|
|
6586
|
-
return (
|
|
6587
|
-
|
|
6584
|
+
return (c, v) => (d(), h("div", hc, [
|
|
6585
|
+
c.title || c.$slots.header ? x(c.$slots, "header", { key: 0 }, () => {
|
|
6588
6586
|
var m;
|
|
6589
6587
|
return [
|
|
6590
6588
|
r("div", mc, [
|
|
6591
|
-
|
|
6589
|
+
c.title ? (d(), q(sc, {
|
|
6592
6590
|
key: 0,
|
|
6593
|
-
title:
|
|
6591
|
+
title: c.title,
|
|
6594
6592
|
level: 3,
|
|
6595
|
-
items: (m =
|
|
6593
|
+
items: (m = c.list) == null ? void 0 : m.length
|
|
6596
6594
|
}, null, 8, ["title", "items"])) : S("", !0)
|
|
6597
6595
|
])
|
|
6598
6596
|
];
|
|
6599
6597
|
}) : S("", !0),
|
|
6600
6598
|
y(j(i1), De({
|
|
6601
|
-
list:
|
|
6599
|
+
list: c.list,
|
|
6602
6600
|
class: "ao-list-kanban__list",
|
|
6603
6601
|
"item-key": "id",
|
|
6604
6602
|
group: "kanban"
|
|
6605
|
-
},
|
|
6603
|
+
}, c.$attrs, { onChange: a }), {
|
|
6606
6604
|
item: F(({ element: m }) => {
|
|
6607
|
-
var
|
|
6605
|
+
var g, I, V;
|
|
6608
6606
|
return [
|
|
6609
6607
|
y(_t, {
|
|
6610
6608
|
id: m.id,
|
|
6611
6609
|
name: m.name,
|
|
6612
|
-
rules: ((
|
|
6610
|
+
rules: ((g = m.rules) == null ? void 0 : g.length) || 0,
|
|
6613
6611
|
subtasks: m.tasks,
|
|
6614
6612
|
description: m.description,
|
|
6615
6613
|
"is-important": m.important,
|
|
6616
6614
|
type: m.type,
|
|
6617
|
-
comments: (
|
|
6618
|
-
attachments: (
|
|
6619
|
-
onClick: () =>
|
|
6620
|
-
onUpdateActivity:
|
|
6615
|
+
comments: (I = m.comments) == null ? void 0 : I.length,
|
|
6616
|
+
attachments: (V = m.attachments) == null ? void 0 : V.length,
|
|
6617
|
+
onClick: () => l(m.id),
|
|
6618
|
+
onUpdateActivity: C
|
|
6621
6619
|
}, {
|
|
6622
6620
|
secondary: F(() => [
|
|
6623
6621
|
y(ue, {
|
|
@@ -6626,7 +6624,7 @@ const hc = {
|
|
|
6626
6624
|
"icon-name": "ArchiveOutlineRounded",
|
|
6627
6625
|
size: "sm",
|
|
6628
6626
|
corners: "round",
|
|
6629
|
-
onClick: Le(() =>
|
|
6627
|
+
onClick: Le(() => c.$emit("archiveActivity", m.id), ["stop"])
|
|
6630
6628
|
}, null, 8, ["onClick"])
|
|
6631
6629
|
]),
|
|
6632
6630
|
_: 2
|
|
@@ -6634,25 +6632,25 @@ const hc = {
|
|
|
6634
6632
|
];
|
|
6635
6633
|
}),
|
|
6636
6634
|
footer: F(() => [
|
|
6637
|
-
|
|
6635
|
+
c.isLoading ? (d(), h("div", vc, [
|
|
6638
6636
|
y(le, { name: "Loading" })
|
|
6639
|
-
])) :
|
|
6637
|
+
])) : c.hasMore ? (d(), h("div", {
|
|
6640
6638
|
key: 2,
|
|
6641
6639
|
ref_key: "scrollEnd",
|
|
6642
|
-
ref:
|
|
6640
|
+
ref: i,
|
|
6643
6641
|
class: "ao-list-kanban__end"
|
|
6644
|
-
}, null, 512)) : (
|
|
6645
|
-
|
|
6642
|
+
}, null, 512)) : (d(), h("div", Cc, [
|
|
6643
|
+
c.noMoreLabel ? (d(), h("span", _c, U(c.noMoreLabel), 1)) : (d(), h("span", fc))
|
|
6646
6644
|
]))
|
|
6647
6645
|
]),
|
|
6648
6646
|
_: 1
|
|
6649
6647
|
}, 16, ["list"]),
|
|
6650
|
-
|
|
6651
|
-
x(
|
|
6648
|
+
c.$slots.footer || c.footerLabel ? (d(), h("div", gc, [
|
|
6649
|
+
x(c.$slots, "footer", {}, () => [
|
|
6652
6650
|
y(je, {
|
|
6653
6651
|
"icon-name": "AddBoxOutlineRounded",
|
|
6654
|
-
label:
|
|
6655
|
-
onClick:
|
|
6652
|
+
label: c.footerLabel,
|
|
6653
|
+
onClick: v[0] || (v[0] = (m) => c.$emit("add"))
|
|
6656
6654
|
}, null, 8, ["label"])
|
|
6657
6655
|
])
|
|
6658
6656
|
])) : S("", !0)
|
|
@@ -6669,19 +6667,19 @@ const bc = { class: "ao-field ao-search-field" }, wc = ["value", "placeholder",
|
|
|
6669
6667
|
emits: ["update:modelValue", "clear"],
|
|
6670
6668
|
setup(s, { emit: e }) {
|
|
6671
6669
|
const t = s, n = async (i) => {
|
|
6672
|
-
const
|
|
6673
|
-
e("update:modelValue",
|
|
6670
|
+
const C = i.target.value;
|
|
6671
|
+
e("update:modelValue", C, i);
|
|
6674
6672
|
}, a = rc(n, t.delay), o = (i) => {
|
|
6675
6673
|
e("clear", i);
|
|
6676
6674
|
};
|
|
6677
|
-
return (i, l) => (
|
|
6675
|
+
return (i, l) => (d(), h("div", bc, [
|
|
6678
6676
|
r("input", {
|
|
6679
6677
|
value: i.modelValue,
|
|
6680
6678
|
type: "text",
|
|
6681
6679
|
class: "ao-field__input ao-search-field__input",
|
|
6682
6680
|
placeholder: i.placeholder,
|
|
6683
6681
|
onInput: l[0] || (l[0] = //@ts-ignore
|
|
6684
|
-
(...
|
|
6682
|
+
(...C) => j(a) && j(a)(...C)),
|
|
6685
6683
|
onKeypress: a1(n, ["enter"])
|
|
6686
6684
|
}, null, 40, wc),
|
|
6687
6685
|
y(le, {
|
|
@@ -7585,7 +7583,7 @@ const Sc = { class: "ao-feed" }, kc = { class: "ao-feed__filters" }, Lc = { clas
|
|
|
7585
7583
|
}, {})
|
|
7586
7584
|
), l = (u) => {
|
|
7587
7585
|
e("update:activity", u);
|
|
7588
|
-
},
|
|
7586
|
+
}, C = (u) => {
|
|
7589
7587
|
var te, ae;
|
|
7590
7588
|
const w = (te = t.activities) == null ? void 0 : te.at(-1), M = w ? he.LexoRank.parse(w.rank).genNext() : he.LexoRank.middle(), k = ((ae = t.activities) == null ? void 0 : ae.length) ?? 0, D = {
|
|
7591
7589
|
name: n("activity.defaultName.activity", { idx: k + 1 }),
|
|
@@ -7593,7 +7591,7 @@ const Sc = { class: "ao-feed" }, kc = { class: "ao-feed__filters" }, Lc = { clas
|
|
|
7593
7591
|
statusId: u.id
|
|
7594
7592
|
};
|
|
7595
7593
|
e("addActivity", D);
|
|
7596
|
-
},
|
|
7594
|
+
}, c = f({
|
|
7597
7595
|
get() {
|
|
7598
7596
|
return ze(t.filters.project);
|
|
7599
7597
|
},
|
|
@@ -7604,10 +7602,10 @@ const Sc = { class: "ao-feed" }, kc = { class: "ao-feed__filters" }, Lc = { clas
|
|
|
7604
7602
|
};
|
|
7605
7603
|
e("update:filter", w);
|
|
7606
7604
|
}
|
|
7607
|
-
}),
|
|
7605
|
+
}), v = f(() => t.projects.map((u) => ({
|
|
7608
7606
|
value: u.id,
|
|
7609
7607
|
label: u.name
|
|
7610
|
-
}))),
|
|
7608
|
+
}))), m = f({
|
|
7611
7609
|
get() {
|
|
7612
7610
|
return ze(t.filters.activity_type);
|
|
7613
7611
|
},
|
|
@@ -7737,7 +7735,7 @@ const Sc = { class: "ao-feed" }, kc = { class: "ao-feed__filters" }, Lc = { clas
|
|
|
7737
7735
|
};
|
|
7738
7736
|
return (u, w) => {
|
|
7739
7737
|
var M;
|
|
7740
|
-
return
|
|
7738
|
+
return d(), h("div", Sc, [
|
|
7741
7739
|
y(M1, null, {
|
|
7742
7740
|
primary: F(() => [
|
|
7743
7741
|
y($c, {
|
|
@@ -7748,18 +7746,18 @@ const Sc = { class: "ao-feed" }, kc = { class: "ao-feed__filters" }, Lc = { clas
|
|
|
7748
7746
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
7749
7747
|
r("div", kc, [
|
|
7750
7748
|
y(j(ve), {
|
|
7751
|
-
modelValue:
|
|
7752
|
-
"onUpdate:modelValue": w[1] || (w[1] = (k) =>
|
|
7749
|
+
modelValue: c.value,
|
|
7750
|
+
"onUpdate:modelValue": w[1] || (w[1] = (k) => c.value = k),
|
|
7753
7751
|
mode: "tags",
|
|
7754
|
-
options:
|
|
7752
|
+
options: v.value,
|
|
7755
7753
|
"close-on-select": !1,
|
|
7756
7754
|
searchable: !0,
|
|
7757
7755
|
class: "ao-feed__filter",
|
|
7758
7756
|
placeholder: u.$t("feed.filters.project.placeholder")
|
|
7759
7757
|
}, null, 8, ["modelValue", "options", "placeholder"]),
|
|
7760
7758
|
y(j(ve), {
|
|
7761
|
-
modelValue:
|
|
7762
|
-
"onUpdate:modelValue": w[2] || (w[2] = (k) =>
|
|
7759
|
+
modelValue: m.value,
|
|
7760
|
+
"onUpdate:modelValue": w[2] || (w[2] = (k) => m.value = k),
|
|
7763
7761
|
mode: "tags",
|
|
7764
7762
|
options: g.value,
|
|
7765
7763
|
"close-on-select": !1,
|
|
@@ -7791,21 +7789,21 @@ const Sc = { class: "ao-feed" }, kc = { class: "ao-feed__filters" }, Lc = { clas
|
|
|
7791
7789
|
_: 1
|
|
7792
7790
|
}),
|
|
7793
7791
|
r("div", Lc, [
|
|
7794
|
-
(
|
|
7792
|
+
(d(!0), h(oe, null, me(u.statuses, (k) => (d(), q(yc, {
|
|
7795
7793
|
key: k.id,
|
|
7796
7794
|
status: k,
|
|
7797
7795
|
list: i.value[k.id],
|
|
7798
7796
|
title: k.name,
|
|
7799
7797
|
"footer-label": u.$t("feed.activity.add"),
|
|
7800
|
-
onAdd: () =>
|
|
7798
|
+
onAdd: () => C(k),
|
|
7801
7799
|
onSelectActivity: j(a),
|
|
7802
7800
|
"onChange:list": l,
|
|
7803
7801
|
onArchiveActivity: B,
|
|
7804
7802
|
onUpdateActivity: O
|
|
7805
7803
|
}, null, 8, ["status", "list", "title", "footer-label", "onAdd", "onSelectActivity"]))), 128))
|
|
7806
7804
|
]),
|
|
7807
|
-
(
|
|
7808
|
-
j(o) ? (
|
|
7805
|
+
(d(), q(v1, { to: "body" }, [
|
|
7806
|
+
j(o) ? (d(), q(F1, {
|
|
7809
7807
|
key: 0,
|
|
7810
7808
|
activity: j(o),
|
|
7811
7809
|
"activity-types": g.value,
|