@26lights/orcha 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/orcha.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, openBlock as v, createBlock as
|
|
1
|
+
import { defineComponent as Y, openBlock as v, createBlock as j, unref as Z, mergeProps as Ve, createElementBlock as h, createElementVNode as d, pushScopeId as nn, popScopeId as sn, createStaticVNode as on, computed as w, resolveDynamicComponent as et, normalizeClass as X, renderSlot as ee, toDisplayString as q, createCommentVNode as S, ref as Q, watch as re, nextTick as Ee, withKeys as ze, toHandlers as ln, withCtx as R, createTextVNode as t1, createVNode as k, normalizeStyle as la, withModifiers as _e, createSlots as Ht, Fragment as ve, renderList as ye, onMounted as Dt, onBeforeUnmount as rn, onUnmounted as ra, toRefs as $e, getCurrentInstance as tt, toRef as ct, normalizeProps as un, guardReactiveProps as cn, onUpdated as dn, withDirectives as dt, vModelText as Et, vModelCheckbox as fn, Teleport as It, resolveComponent as vn, getCurrentScope as pn, onScopeDispose as hn, provide as mn } from "vue";
|
|
2
2
|
import { RouterView as Cn } from "vue-router";
|
|
3
3
|
import Ge from "vuedraggable";
|
|
4
4
|
const N4 = /* @__PURE__ */ Y({
|
|
@@ -7,7 +7,7 @@ const N4 = /* @__PURE__ */ Y({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(a) {
|
|
10
|
-
return (e, t) => (v(),
|
|
10
|
+
return (e, t) => (v(), j(Z(Cn), Ve({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), B = (a, e) => {
|
|
13
13
|
const t = a.__vccOpts || a;
|
|
@@ -27,7 +27,7 @@ const N4 = /* @__PURE__ */ Y({
|
|
|
27
27
|
yn
|
|
28
28
|
];
|
|
29
29
|
function wn(a, e) {
|
|
30
|
-
return v(),
|
|
30
|
+
return v(), h("svg", gn, bn);
|
|
31
31
|
}
|
|
32
32
|
const $n = /* @__PURE__ */ B(_n, [["render", wn]]), Mn = {}, kn = {
|
|
33
33
|
width: "24",
|
|
@@ -42,7 +42,7 @@ const $n = /* @__PURE__ */ B(_n, [["render", wn]]), Mn = {}, kn = {
|
|
|
42
42
|
An
|
|
43
43
|
];
|
|
44
44
|
function Sn(a, e) {
|
|
45
|
-
return v(),
|
|
45
|
+
return v(), h("svg", kn, Tn);
|
|
46
46
|
}
|
|
47
47
|
const En = /* @__PURE__ */ B(Mn, [["render", Sn]]), In = {}, On = {
|
|
48
48
|
width: "24",
|
|
@@ -57,7 +57,7 @@ const En = /* @__PURE__ */ B(Mn, [["render", Sn]]), In = {}, On = {
|
|
|
57
57
|
Ln
|
|
58
58
|
];
|
|
59
59
|
function Hn(a, e) {
|
|
60
|
-
return v(),
|
|
60
|
+
return v(), h("svg", On, Vn);
|
|
61
61
|
}
|
|
62
62
|
const Dn = /* @__PURE__ */ B(In, [["render", Hn]]), Pn = {}, Bn = {
|
|
63
63
|
width: "24",
|
|
@@ -72,7 +72,7 @@ const Dn = /* @__PURE__ */ B(In, [["render", Hn]]), Pn = {}, Bn = {
|
|
|
72
72
|
Nn
|
|
73
73
|
];
|
|
74
74
|
function Un(a, e) {
|
|
75
|
-
return v(),
|
|
75
|
+
return v(), h("svg", Bn, Rn);
|
|
76
76
|
}
|
|
77
77
|
const jn = /* @__PURE__ */ B(Pn, [["render", Un]]), Zn = {}, Fn = {
|
|
78
78
|
width: "24",
|
|
@@ -87,7 +87,7 @@ const jn = /* @__PURE__ */ B(Pn, [["render", Un]]), Zn = {}, Fn = {
|
|
|
87
87
|
qn
|
|
88
88
|
];
|
|
89
89
|
function zn(a, e) {
|
|
90
|
-
return v(),
|
|
90
|
+
return v(), h("svg", Fn, Wn);
|
|
91
91
|
}
|
|
92
92
|
const xn = /* @__PURE__ */ B(Zn, [["render", zn]]), Yn = {}, Kn = {
|
|
93
93
|
width: "24",
|
|
@@ -102,7 +102,7 @@ const xn = /* @__PURE__ */ B(Zn, [["render", zn]]), Yn = {}, Kn = {
|
|
|
102
102
|
Gn
|
|
103
103
|
];
|
|
104
104
|
function Qn(a, e) {
|
|
105
|
-
return v(),
|
|
105
|
+
return v(), h("svg", Kn, Xn);
|
|
106
106
|
}
|
|
107
107
|
const Jn = /* @__PURE__ */ B(Yn, [["render", Qn]]), es = {}, ts = {
|
|
108
108
|
width: "24",
|
|
@@ -117,7 +117,7 @@ const Jn = /* @__PURE__ */ B(Yn, [["render", Qn]]), es = {}, ts = {
|
|
|
117
117
|
as
|
|
118
118
|
];
|
|
119
119
|
function ss(a, e) {
|
|
120
|
-
return v(),
|
|
120
|
+
return v(), h("svg", ts, ns);
|
|
121
121
|
}
|
|
122
122
|
const is = /* @__PURE__ */ B(es, [["render", ss]]), os = {}, ls = {
|
|
123
123
|
width: "24",
|
|
@@ -132,7 +132,7 @@ const is = /* @__PURE__ */ B(es, [["render", ss]]), os = {}, ls = {
|
|
|
132
132
|
rs
|
|
133
133
|
];
|
|
134
134
|
function cs(a, e) {
|
|
135
|
-
return v(),
|
|
135
|
+
return v(), h("svg", ls, us);
|
|
136
136
|
}
|
|
137
137
|
const ds = /* @__PURE__ */ B(os, [["render", cs]]), fs = {}, vs = {
|
|
138
138
|
width: "24",
|
|
@@ -147,7 +147,7 @@ const ds = /* @__PURE__ */ B(os, [["render", cs]]), fs = {}, vs = {
|
|
|
147
147
|
ps
|
|
148
148
|
];
|
|
149
149
|
function ms(a, e) {
|
|
150
|
-
return v(),
|
|
150
|
+
return v(), h("svg", vs, hs);
|
|
151
151
|
}
|
|
152
152
|
const Cs = /* @__PURE__ */ B(fs, [["render", ms]]), _s = {}, gs = {
|
|
153
153
|
width: "24",
|
|
@@ -162,7 +162,7 @@ const Cs = /* @__PURE__ */ B(fs, [["render", ms]]), _s = {}, gs = {
|
|
|
162
162
|
ys
|
|
163
163
|
];
|
|
164
164
|
function ws(a, e) {
|
|
165
|
-
return v(),
|
|
165
|
+
return v(), h("svg", gs, bs);
|
|
166
166
|
}
|
|
167
167
|
const $s = /* @__PURE__ */ B(_s, [["render", ws]]), Ms = {}, ks = {
|
|
168
168
|
width: "24",
|
|
@@ -177,7 +177,7 @@ const $s = /* @__PURE__ */ B(_s, [["render", ws]]), Ms = {}, ks = {
|
|
|
177
177
|
As
|
|
178
178
|
];
|
|
179
179
|
function Ss(a, e) {
|
|
180
|
-
return v(),
|
|
180
|
+
return v(), h("svg", ks, Ts);
|
|
181
181
|
}
|
|
182
182
|
const Es = /* @__PURE__ */ B(Ms, [["render", Ss]]), Is = {}, Os = {
|
|
183
183
|
width: "24",
|
|
@@ -192,7 +192,7 @@ const Es = /* @__PURE__ */ B(Ms, [["render", Ss]]), Is = {}, Os = {
|
|
|
192
192
|
Ls
|
|
193
193
|
];
|
|
194
194
|
function Hs(a, e) {
|
|
195
|
-
return v(),
|
|
195
|
+
return v(), h("svg", Os, Vs);
|
|
196
196
|
}
|
|
197
197
|
const Ds = /* @__PURE__ */ B(Is, [["render", Hs]]), Ps = {}, Bs = {
|
|
198
198
|
width: "24",
|
|
@@ -207,7 +207,7 @@ const Ds = /* @__PURE__ */ B(Is, [["render", Hs]]), Ps = {}, Bs = {
|
|
|
207
207
|
Ns
|
|
208
208
|
];
|
|
209
209
|
function Us(a, e) {
|
|
210
|
-
return v(),
|
|
210
|
+
return v(), h("svg", Bs, Rs);
|
|
211
211
|
}
|
|
212
212
|
const js = /* @__PURE__ */ B(Ps, [["render", Us]]), Zs = {}, Fs = {
|
|
213
213
|
width: "24",
|
|
@@ -222,7 +222,7 @@ const js = /* @__PURE__ */ B(Ps, [["render", Us]]), Zs = {}, Fs = {
|
|
|
222
222
|
qs
|
|
223
223
|
];
|
|
224
224
|
function zs(a, e) {
|
|
225
|
-
return v(),
|
|
225
|
+
return v(), h("svg", Fs, Ws);
|
|
226
226
|
}
|
|
227
227
|
const xs = /* @__PURE__ */ B(Zs, [["render", zs]]), Ys = {}, Ks = {
|
|
228
228
|
width: "24",
|
|
@@ -237,7 +237,7 @@ const xs = /* @__PURE__ */ B(Zs, [["render", zs]]), Ys = {}, Ks = {
|
|
|
237
237
|
Gs
|
|
238
238
|
];
|
|
239
239
|
function Qs(a, e) {
|
|
240
|
-
return v(),
|
|
240
|
+
return v(), h("svg", Ks, Xs);
|
|
241
241
|
}
|
|
242
242
|
const Js = /* @__PURE__ */ B(Ys, [["render", Qs]]), ei = {}, ti = {
|
|
243
243
|
width: "24",
|
|
@@ -252,7 +252,7 @@ const Js = /* @__PURE__ */ B(Ys, [["render", Qs]]), ei = {}, ti = {
|
|
|
252
252
|
ai
|
|
253
253
|
];
|
|
254
254
|
function si(a, e) {
|
|
255
|
-
return v(),
|
|
255
|
+
return v(), h("svg", ti, ni);
|
|
256
256
|
}
|
|
257
257
|
const ii = /* @__PURE__ */ B(ei, [["render", si]]), oi = {}, li = {
|
|
258
258
|
width: "24",
|
|
@@ -267,7 +267,7 @@ const ii = /* @__PURE__ */ B(ei, [["render", si]]), oi = {}, li = {
|
|
|
267
267
|
ri
|
|
268
268
|
];
|
|
269
269
|
function ci(a, e) {
|
|
270
|
-
return v(),
|
|
270
|
+
return v(), h("svg", li, ui);
|
|
271
271
|
}
|
|
272
272
|
const di = /* @__PURE__ */ B(oi, [["render", ci]]), fi = {}, vi = {
|
|
273
273
|
width: "24",
|
|
@@ -282,7 +282,7 @@ const di = /* @__PURE__ */ B(oi, [["render", ci]]), fi = {}, vi = {
|
|
|
282
282
|
pi
|
|
283
283
|
];
|
|
284
284
|
function mi(a, e) {
|
|
285
|
-
return v(),
|
|
285
|
+
return v(), h("svg", vi, hi);
|
|
286
286
|
}
|
|
287
287
|
const Ci = /* @__PURE__ */ B(fi, [["render", mi]]), _i = {}, gi = {
|
|
288
288
|
width: "24",
|
|
@@ -297,7 +297,7 @@ const Ci = /* @__PURE__ */ B(fi, [["render", mi]]), _i = {}, gi = {
|
|
|
297
297
|
yi
|
|
298
298
|
];
|
|
299
299
|
function wi(a, e) {
|
|
300
|
-
return v(),
|
|
300
|
+
return v(), h("svg", gi, bi);
|
|
301
301
|
}
|
|
302
302
|
const $i = /* @__PURE__ */ B(_i, [["render", wi]]), Mi = {}, ki = {
|
|
303
303
|
width: "24",
|
|
@@ -312,7 +312,7 @@ const $i = /* @__PURE__ */ B(_i, [["render", wi]]), Mi = {}, ki = {
|
|
|
312
312
|
Ai
|
|
313
313
|
];
|
|
314
314
|
function Si(a, e) {
|
|
315
|
-
return v(),
|
|
315
|
+
return v(), h("svg", ki, Ti);
|
|
316
316
|
}
|
|
317
317
|
const Ei = /* @__PURE__ */ B(Mi, [["render", Si]]), Ii = {}, Oi = {
|
|
318
318
|
width: "24",
|
|
@@ -327,7 +327,7 @@ const Ei = /* @__PURE__ */ B(Mi, [["render", Si]]), Ii = {}, Oi = {
|
|
|
327
327
|
Li
|
|
328
328
|
];
|
|
329
329
|
function Hi(a, e) {
|
|
330
|
-
return v(),
|
|
330
|
+
return v(), h("svg", Oi, Vi);
|
|
331
331
|
}
|
|
332
332
|
const Di = /* @__PURE__ */ B(Ii, [["render", Hi]]), Pi = {}, Bi = {
|
|
333
333
|
width: "24",
|
|
@@ -342,7 +342,7 @@ const Di = /* @__PURE__ */ B(Ii, [["render", Hi]]), Pi = {}, Bi = {
|
|
|
342
342
|
Ni
|
|
343
343
|
];
|
|
344
344
|
function Ui(a, e) {
|
|
345
|
-
return v(),
|
|
345
|
+
return v(), h("svg", Bi, Ri);
|
|
346
346
|
}
|
|
347
347
|
const ji = /* @__PURE__ */ B(Pi, [["render", Ui]]), Zi = {}, Fi = {
|
|
348
348
|
width: "24",
|
|
@@ -357,7 +357,7 @@ const ji = /* @__PURE__ */ B(Pi, [["render", Ui]]), Zi = {}, Fi = {
|
|
|
357
357
|
qi
|
|
358
358
|
];
|
|
359
359
|
function zi(a, e) {
|
|
360
|
-
return v(),
|
|
360
|
+
return v(), h("svg", Fi, Wi);
|
|
361
361
|
}
|
|
362
362
|
const xi = /* @__PURE__ */ B(Zi, [["render", zi]]), Yi = {}, Ki = {
|
|
363
363
|
width: "24",
|
|
@@ -372,7 +372,7 @@ const xi = /* @__PURE__ */ B(Zi, [["render", zi]]), Yi = {}, Ki = {
|
|
|
372
372
|
Gi
|
|
373
373
|
];
|
|
374
374
|
function Qi(a, e) {
|
|
375
|
-
return v(),
|
|
375
|
+
return v(), h("svg", Ki, Xi);
|
|
376
376
|
}
|
|
377
377
|
const Ji = /* @__PURE__ */ B(Yi, [["render", Qi]]), eo = {}, to = {
|
|
378
378
|
width: "24",
|
|
@@ -387,7 +387,7 @@ const Ji = /* @__PURE__ */ B(Yi, [["render", Qi]]), eo = {}, to = {
|
|
|
387
387
|
ao
|
|
388
388
|
];
|
|
389
389
|
function so(a, e) {
|
|
390
|
-
return v(),
|
|
390
|
+
return v(), h("svg", to, no);
|
|
391
391
|
}
|
|
392
392
|
const io = /* @__PURE__ */ B(eo, [["render", so]]), oo = {}, lo = {
|
|
393
393
|
width: "24",
|
|
@@ -402,7 +402,7 @@ const io = /* @__PURE__ */ B(eo, [["render", so]]), oo = {}, lo = {
|
|
|
402
402
|
ro
|
|
403
403
|
];
|
|
404
404
|
function co(a, e) {
|
|
405
|
-
return v(),
|
|
405
|
+
return v(), h("svg", lo, uo);
|
|
406
406
|
}
|
|
407
407
|
const fo = /* @__PURE__ */ B(oo, [["render", co]]), vo = {}, po = {
|
|
408
408
|
width: "24",
|
|
@@ -417,7 +417,7 @@ const fo = /* @__PURE__ */ B(oo, [["render", co]]), vo = {}, po = {
|
|
|
417
417
|
ho
|
|
418
418
|
];
|
|
419
419
|
function Co(a, e) {
|
|
420
|
-
return v(),
|
|
420
|
+
return v(), h("svg", po, mo);
|
|
421
421
|
}
|
|
422
422
|
const _o = /* @__PURE__ */ B(vo, [["render", Co]]), go = {}, yo = {
|
|
423
423
|
width: "24",
|
|
@@ -432,7 +432,7 @@ const _o = /* @__PURE__ */ B(vo, [["render", Co]]), go = {}, yo = {
|
|
|
432
432
|
bo
|
|
433
433
|
];
|
|
434
434
|
function $o(a, e) {
|
|
435
|
-
return v(),
|
|
435
|
+
return v(), h("svg", yo, wo);
|
|
436
436
|
}
|
|
437
437
|
const Mo = /* @__PURE__ */ B(go, [["render", $o]]), ko = {}, Ao = {
|
|
438
438
|
width: "24",
|
|
@@ -447,7 +447,7 @@ const Mo = /* @__PURE__ */ B(go, [["render", $o]]), ko = {}, Ao = {
|
|
|
447
447
|
To
|
|
448
448
|
];
|
|
449
449
|
function Eo(a, e) {
|
|
450
|
-
return v(),
|
|
450
|
+
return v(), h("svg", Ao, So);
|
|
451
451
|
}
|
|
452
452
|
const Io = /* @__PURE__ */ B(ko, [["render", Eo]]), Oo = {}, Lo = {
|
|
453
453
|
width: "24",
|
|
@@ -462,7 +462,7 @@ const Io = /* @__PURE__ */ B(ko, [["render", Eo]]), Oo = {}, Lo = {
|
|
|
462
462
|
Vo
|
|
463
463
|
];
|
|
464
464
|
function Do(a, e) {
|
|
465
|
-
return v(),
|
|
465
|
+
return v(), h("svg", Lo, Ho);
|
|
466
466
|
}
|
|
467
467
|
const Po = /* @__PURE__ */ B(Oo, [["render", Do]]), Bo = {}, No = {
|
|
468
468
|
width: "24",
|
|
@@ -477,7 +477,7 @@ const Po = /* @__PURE__ */ B(Oo, [["render", Do]]), Bo = {}, No = {
|
|
|
477
477
|
Ro
|
|
478
478
|
];
|
|
479
479
|
function jo(a, e) {
|
|
480
|
-
return v(),
|
|
480
|
+
return v(), h("svg", No, Uo);
|
|
481
481
|
}
|
|
482
482
|
const Zo = /* @__PURE__ */ B(Bo, [["render", jo]]), Fo = {}, qo = {
|
|
483
483
|
width: "24",
|
|
@@ -492,7 +492,7 @@ const Zo = /* @__PURE__ */ B(Bo, [["render", jo]]), Fo = {}, qo = {
|
|
|
492
492
|
Wo
|
|
493
493
|
];
|
|
494
494
|
function xo(a, e) {
|
|
495
|
-
return v(),
|
|
495
|
+
return v(), h("svg", qo, zo);
|
|
496
496
|
}
|
|
497
497
|
const Yo = /* @__PURE__ */ B(Fo, [["render", xo]]), Ko = {}, Go = {
|
|
498
498
|
width: "24",
|
|
@@ -507,7 +507,7 @@ const Yo = /* @__PURE__ */ B(Fo, [["render", xo]]), Ko = {}, Go = {
|
|
|
507
507
|
Xo
|
|
508
508
|
];
|
|
509
509
|
function Jo(a, e) {
|
|
510
|
-
return v(),
|
|
510
|
+
return v(), h("svg", Go, Qo);
|
|
511
511
|
}
|
|
512
512
|
const el = /* @__PURE__ */ B(Ko, [["render", Jo]]), tl = {}, al = {
|
|
513
513
|
width: "24",
|
|
@@ -522,7 +522,7 @@ const el = /* @__PURE__ */ B(Ko, [["render", Jo]]), tl = {}, al = {
|
|
|
522
522
|
nl
|
|
523
523
|
];
|
|
524
524
|
function il(a, e) {
|
|
525
|
-
return v(),
|
|
525
|
+
return v(), h("svg", al, sl);
|
|
526
526
|
}
|
|
527
527
|
const ol = /* @__PURE__ */ B(tl, [["render", il]]), ll = {}, rl = {
|
|
528
528
|
width: "24",
|
|
@@ -537,7 +537,7 @@ const ol = /* @__PURE__ */ B(tl, [["render", il]]), ll = {}, rl = {
|
|
|
537
537
|
ul
|
|
538
538
|
];
|
|
539
539
|
function dl(a, e) {
|
|
540
|
-
return v(),
|
|
540
|
+
return v(), h("svg", rl, cl);
|
|
541
541
|
}
|
|
542
542
|
const fl = /* @__PURE__ */ B(ll, [["render", dl]]), vl = {}, pl = {
|
|
543
543
|
width: "24",
|
|
@@ -552,7 +552,7 @@ const fl = /* @__PURE__ */ B(ll, [["render", dl]]), vl = {}, pl = {
|
|
|
552
552
|
hl
|
|
553
553
|
];
|
|
554
554
|
function Cl(a, e) {
|
|
555
|
-
return v(),
|
|
555
|
+
return v(), h("svg", pl, ml);
|
|
556
556
|
}
|
|
557
557
|
const _l = /* @__PURE__ */ B(vl, [["render", Cl]]), gl = {}, yl = {
|
|
558
558
|
width: "24",
|
|
@@ -567,7 +567,7 @@ const _l = /* @__PURE__ */ B(vl, [["render", Cl]]), gl = {}, yl = {
|
|
|
567
567
|
bl
|
|
568
568
|
];
|
|
569
569
|
function $l(a, e) {
|
|
570
|
-
return v(),
|
|
570
|
+
return v(), h("svg", yl, wl);
|
|
571
571
|
}
|
|
572
572
|
const Ml = /* @__PURE__ */ B(gl, [["render", $l]]), kl = {}, Al = {
|
|
573
573
|
width: "24",
|
|
@@ -582,7 +582,7 @@ const Ml = /* @__PURE__ */ B(gl, [["render", $l]]), kl = {}, Al = {
|
|
|
582
582
|
Tl
|
|
583
583
|
];
|
|
584
584
|
function El(a, e) {
|
|
585
|
-
return v(),
|
|
585
|
+
return v(), h("svg", Al, Sl);
|
|
586
586
|
}
|
|
587
587
|
const Il = /* @__PURE__ */ B(kl, [["render", El]]), Ol = {}, Ll = {
|
|
588
588
|
width: "24",
|
|
@@ -597,7 +597,7 @@ const Il = /* @__PURE__ */ B(kl, [["render", El]]), Ol = {}, Ll = {
|
|
|
597
597
|
Vl
|
|
598
598
|
];
|
|
599
599
|
function Dl(a, e) {
|
|
600
|
-
return v(),
|
|
600
|
+
return v(), h("svg", Ll, Hl);
|
|
601
601
|
}
|
|
602
602
|
const Pl = /* @__PURE__ */ B(Ol, [["render", Dl]]), Bl = {}, Nl = {
|
|
603
603
|
width: "24",
|
|
@@ -612,7 +612,7 @@ const Pl = /* @__PURE__ */ B(Ol, [["render", Dl]]), Bl = {}, Nl = {
|
|
|
612
612
|
Rl
|
|
613
613
|
];
|
|
614
614
|
function jl(a, e) {
|
|
615
|
-
return v(),
|
|
615
|
+
return v(), h("svg", Nl, Ul);
|
|
616
616
|
}
|
|
617
617
|
const Zl = /* @__PURE__ */ B(Bl, [["render", jl]]), Fl = Y({
|
|
618
618
|
name: "LoadingIcon"
|
|
@@ -644,7 +644,7 @@ const T1 = (a) => (nn("data-v-ad6da4a9"), a = a(), sn(), a), ql = {
|
|
|
644
644
|
xl
|
|
645
645
|
];
|
|
646
646
|
function Kl(a, e, t, s, n, o) {
|
|
647
|
-
return v(),
|
|
647
|
+
return v(), h("svg", ql, Yl);
|
|
648
648
|
}
|
|
649
649
|
const Gl = /* @__PURE__ */ B(Fl, [["render", Kl], ["__scopeId", "data-v-ad6da4a9"]]), Xl = {}, Ql = {
|
|
650
650
|
width: "24",
|
|
@@ -659,7 +659,7 @@ const Gl = /* @__PURE__ */ B(Fl, [["render", Kl], ["__scopeId", "data-v-ad6da4a9
|
|
|
659
659
|
Jl
|
|
660
660
|
];
|
|
661
661
|
function tr(a, e) {
|
|
662
|
-
return v(),
|
|
662
|
+
return v(), h("svg", Ql, er);
|
|
663
663
|
}
|
|
664
664
|
const ar = /* @__PURE__ */ B(Xl, [["render", tr]]), nr = {}, sr = {
|
|
665
665
|
width: "24",
|
|
@@ -674,7 +674,7 @@ const ar = /* @__PURE__ */ B(Xl, [["render", tr]]), nr = {}, sr = {
|
|
|
674
674
|
ir
|
|
675
675
|
];
|
|
676
676
|
function lr(a, e) {
|
|
677
|
-
return v(),
|
|
677
|
+
return v(), h("svg", sr, or);
|
|
678
678
|
}
|
|
679
679
|
const rr = /* @__PURE__ */ B(nr, [["render", lr]]), ur = {}, cr = {
|
|
680
680
|
width: "24",
|
|
@@ -689,7 +689,7 @@ const rr = /* @__PURE__ */ B(nr, [["render", lr]]), ur = {}, cr = {
|
|
|
689
689
|
dr
|
|
690
690
|
];
|
|
691
691
|
function vr(a, e) {
|
|
692
|
-
return v(),
|
|
692
|
+
return v(), h("svg", cr, fr);
|
|
693
693
|
}
|
|
694
694
|
const pr = /* @__PURE__ */ B(ur, [["render", vr]]), hr = {}, mr = {
|
|
695
695
|
width: "24",
|
|
@@ -704,7 +704,7 @@ const pr = /* @__PURE__ */ B(ur, [["render", vr]]), hr = {}, mr = {
|
|
|
704
704
|
Cr
|
|
705
705
|
];
|
|
706
706
|
function gr(a, e) {
|
|
707
|
-
return v(),
|
|
707
|
+
return v(), h("svg", mr, _r);
|
|
708
708
|
}
|
|
709
709
|
const yr = /* @__PURE__ */ B(hr, [["render", gr]]), br = {}, wr = {
|
|
710
710
|
width: "24",
|
|
@@ -719,7 +719,7 @@ const yr = /* @__PURE__ */ B(hr, [["render", gr]]), br = {}, wr = {
|
|
|
719
719
|
$r
|
|
720
720
|
];
|
|
721
721
|
function kr(a, e) {
|
|
722
|
-
return v(),
|
|
722
|
+
return v(), h("svg", wr, Mr);
|
|
723
723
|
}
|
|
724
724
|
const Ar = /* @__PURE__ */ B(br, [["render", kr]]), Tr = {}, Sr = {
|
|
725
725
|
width: "24",
|
|
@@ -734,7 +734,7 @@ const Ar = /* @__PURE__ */ B(br, [["render", kr]]), Tr = {}, Sr = {
|
|
|
734
734
|
Er
|
|
735
735
|
];
|
|
736
736
|
function Or(a, e) {
|
|
737
|
-
return v(),
|
|
737
|
+
return v(), h("svg", Sr, Ir);
|
|
738
738
|
}
|
|
739
739
|
const Lr = /* @__PURE__ */ B(Tr, [["render", Or]]), Vr = {}, Hr = {
|
|
740
740
|
width: "24",
|
|
@@ -749,7 +749,7 @@ const Lr = /* @__PURE__ */ B(Tr, [["render", Or]]), Vr = {}, Hr = {
|
|
|
749
749
|
Dr
|
|
750
750
|
];
|
|
751
751
|
function Br(a, e) {
|
|
752
|
-
return v(),
|
|
752
|
+
return v(), h("svg", Hr, Pr);
|
|
753
753
|
}
|
|
754
754
|
const Nr = /* @__PURE__ */ B(Vr, [["render", Br]]), Rr = {}, Ur = {
|
|
755
755
|
width: "24",
|
|
@@ -764,7 +764,7 @@ const Nr = /* @__PURE__ */ B(Vr, [["render", Br]]), Rr = {}, Ur = {
|
|
|
764
764
|
jr
|
|
765
765
|
];
|
|
766
766
|
function Fr(a, e) {
|
|
767
|
-
return v(),
|
|
767
|
+
return v(), h("svg", Ur, Zr);
|
|
768
768
|
}
|
|
769
769
|
const qr = /* @__PURE__ */ B(Rr, [["render", Fr]]), Wr = {}, zr = {
|
|
770
770
|
width: "24",
|
|
@@ -779,7 +779,7 @@ const qr = /* @__PURE__ */ B(Rr, [["render", Fr]]), Wr = {}, zr = {
|
|
|
779
779
|
xr
|
|
780
780
|
];
|
|
781
781
|
function Kr(a, e) {
|
|
782
|
-
return v(),
|
|
782
|
+
return v(), h("svg", zr, Yr);
|
|
783
783
|
}
|
|
784
784
|
const Gr = /* @__PURE__ */ B(Wr, [["render", Kr]]), Xr = {}, Qr = {
|
|
785
785
|
width: "24",
|
|
@@ -794,7 +794,7 @@ const Gr = /* @__PURE__ */ B(Wr, [["render", Kr]]), Xr = {}, Qr = {
|
|
|
794
794
|
Jr
|
|
795
795
|
];
|
|
796
796
|
function t2(a, e) {
|
|
797
|
-
return v(),
|
|
797
|
+
return v(), h("svg", Qr, e2);
|
|
798
798
|
}
|
|
799
799
|
const a2 = /* @__PURE__ */ B(Xr, [["render", t2]]), n2 = {}, s2 = {
|
|
800
800
|
width: "24",
|
|
@@ -809,7 +809,7 @@ const a2 = /* @__PURE__ */ B(Xr, [["render", t2]]), n2 = {}, s2 = {
|
|
|
809
809
|
i2
|
|
810
810
|
];
|
|
811
811
|
function l2(a, e) {
|
|
812
|
-
return v(),
|
|
812
|
+
return v(), h("svg", s2, o2);
|
|
813
813
|
}
|
|
814
814
|
const r2 = /* @__PURE__ */ B(n2, [["render", l2]]), u2 = {}, c2 = {
|
|
815
815
|
width: "24",
|
|
@@ -824,7 +824,7 @@ const r2 = /* @__PURE__ */ B(n2, [["render", l2]]), u2 = {}, c2 = {
|
|
|
824
824
|
d2
|
|
825
825
|
];
|
|
826
826
|
function v2(a, e) {
|
|
827
|
-
return v(),
|
|
827
|
+
return v(), h("svg", c2, f2);
|
|
828
828
|
}
|
|
829
829
|
const p2 = /* @__PURE__ */ B(u2, [["render", v2]]), h2 = {}, m2 = {
|
|
830
830
|
width: "26",
|
|
@@ -836,7 +836,7 @@ const p2 = /* @__PURE__ */ B(u2, [["render", v2]]), h2 = {}, m2 = {
|
|
|
836
836
|
C2
|
|
837
837
|
];
|
|
838
838
|
function g2(a, e) {
|
|
839
|
-
return v(),
|
|
839
|
+
return v(), h("svg", m2, _2);
|
|
840
840
|
}
|
|
841
841
|
const y2 = /* @__PURE__ */ B(h2, [["render", g2]]), b2 = {}, w2 = {
|
|
842
842
|
width: "24",
|
|
@@ -851,7 +851,7 @@ const y2 = /* @__PURE__ */ B(h2, [["render", g2]]), b2 = {}, w2 = {
|
|
|
851
851
|
$2
|
|
852
852
|
];
|
|
853
853
|
function k2(a, e) {
|
|
854
|
-
return v(),
|
|
854
|
+
return v(), h("svg", w2, M2);
|
|
855
855
|
}
|
|
856
856
|
const A2 = /* @__PURE__ */ B(b2, [["render", k2]]), T2 = {}, S2 = {
|
|
857
857
|
width: "24",
|
|
@@ -866,7 +866,7 @@ const A2 = /* @__PURE__ */ B(b2, [["render", k2]]), T2 = {}, S2 = {
|
|
|
866
866
|
E2
|
|
867
867
|
];
|
|
868
868
|
function O2(a, e) {
|
|
869
|
-
return v(),
|
|
869
|
+
return v(), h("svg", S2, I2);
|
|
870
870
|
}
|
|
871
871
|
const L2 = /* @__PURE__ */ B(T2, [["render", O2]]), V2 = {}, H2 = {
|
|
872
872
|
width: "24",
|
|
@@ -881,7 +881,7 @@ const L2 = /* @__PURE__ */ B(T2, [["render", O2]]), V2 = {}, H2 = {
|
|
|
881
881
|
D2
|
|
882
882
|
];
|
|
883
883
|
function B2(a, e) {
|
|
884
|
-
return v(),
|
|
884
|
+
return v(), h("svg", H2, P2);
|
|
885
885
|
}
|
|
886
886
|
const N2 = /* @__PURE__ */ B(V2, [["render", B2]]), R2 = {}, U2 = {
|
|
887
887
|
width: "24",
|
|
@@ -896,7 +896,7 @@ const N2 = /* @__PURE__ */ B(V2, [["render", B2]]), R2 = {}, U2 = {
|
|
|
896
896
|
j2
|
|
897
897
|
];
|
|
898
898
|
function F2(a, e) {
|
|
899
|
-
return v(),
|
|
899
|
+
return v(), h("svg", U2, Z2);
|
|
900
900
|
}
|
|
901
901
|
const q2 = /* @__PURE__ */ B(R2, [["render", F2]]), W2 = {}, z2 = {
|
|
902
902
|
width: "24",
|
|
@@ -911,7 +911,7 @@ const q2 = /* @__PURE__ */ B(R2, [["render", F2]]), W2 = {}, z2 = {
|
|
|
911
911
|
x2
|
|
912
912
|
];
|
|
913
913
|
function K2(a, e) {
|
|
914
|
-
return v(),
|
|
914
|
+
return v(), h("svg", z2, Y2);
|
|
915
915
|
}
|
|
916
916
|
const G2 = /* @__PURE__ */ B(W2, [["render", K2]]), X2 = {}, Q2 = {
|
|
917
917
|
width: "24",
|
|
@@ -926,7 +926,7 @@ const G2 = /* @__PURE__ */ B(W2, [["render", K2]]), X2 = {}, Q2 = {
|
|
|
926
926
|
J2
|
|
927
927
|
];
|
|
928
928
|
function tu(a, e) {
|
|
929
|
-
return v(),
|
|
929
|
+
return v(), h("svg", Q2, eu);
|
|
930
930
|
}
|
|
931
931
|
const au = /* @__PURE__ */ B(X2, [["render", tu]]), nu = {}, su = {
|
|
932
932
|
width: "24",
|
|
@@ -941,7 +941,7 @@ const au = /* @__PURE__ */ B(X2, [["render", tu]]), nu = {}, su = {
|
|
|
941
941
|
iu
|
|
942
942
|
];
|
|
943
943
|
function lu(a, e) {
|
|
944
|
-
return v(),
|
|
944
|
+
return v(), h("svg", su, ou);
|
|
945
945
|
}
|
|
946
946
|
const ru = /* @__PURE__ */ B(nu, [["render", lu]]), uu = {}, cu = {
|
|
947
947
|
width: "24",
|
|
@@ -956,7 +956,7 @@ const ru = /* @__PURE__ */ B(nu, [["render", lu]]), uu = {}, cu = {
|
|
|
956
956
|
du
|
|
957
957
|
];
|
|
958
958
|
function vu(a, e) {
|
|
959
|
-
return v(),
|
|
959
|
+
return v(), h("svg", cu, fu);
|
|
960
960
|
}
|
|
961
961
|
const pu = /* @__PURE__ */ B(uu, [["render", vu]]), hu = {}, mu = {
|
|
962
962
|
width: "24",
|
|
@@ -971,7 +971,7 @@ const pu = /* @__PURE__ */ B(uu, [["render", vu]]), hu = {}, mu = {
|
|
|
971
971
|
Cu
|
|
972
972
|
];
|
|
973
973
|
function gu(a, e) {
|
|
974
|
-
return v(),
|
|
974
|
+
return v(), h("svg", mu, _u);
|
|
975
975
|
}
|
|
976
976
|
const yu = /* @__PURE__ */ B(hu, [["render", gu]]), bu = {}, wu = {
|
|
977
977
|
width: "24",
|
|
@@ -986,7 +986,7 @@ const yu = /* @__PURE__ */ B(hu, [["render", gu]]), bu = {}, wu = {
|
|
|
986
986
|
$u
|
|
987
987
|
];
|
|
988
988
|
function ku(a, e) {
|
|
989
|
-
return v(),
|
|
989
|
+
return v(), h("svg", wu, Mu);
|
|
990
990
|
}
|
|
991
991
|
const Au = /* @__PURE__ */ B(bu, [["render", ku]]), Tu = {}, Su = {
|
|
992
992
|
width: "24",
|
|
@@ -1001,7 +1001,7 @@ const Au = /* @__PURE__ */ B(bu, [["render", ku]]), Tu = {}, Su = {
|
|
|
1001
1001
|
Eu
|
|
1002
1002
|
];
|
|
1003
1003
|
function Ou(a, e) {
|
|
1004
|
-
return v(),
|
|
1004
|
+
return v(), h("svg", Su, Iu);
|
|
1005
1005
|
}
|
|
1006
1006
|
const Lu = /* @__PURE__ */ B(Tu, [["render", Ou]]), Vu = {}, Hu = {
|
|
1007
1007
|
width: "24",
|
|
@@ -1016,7 +1016,7 @@ const Lu = /* @__PURE__ */ B(Tu, [["render", Ou]]), Vu = {}, Hu = {
|
|
|
1016
1016
|
Du
|
|
1017
1017
|
];
|
|
1018
1018
|
function Bu(a, e) {
|
|
1019
|
-
return v(),
|
|
1019
|
+
return v(), h("svg", Hu, Pu);
|
|
1020
1020
|
}
|
|
1021
1021
|
const Nu = /* @__PURE__ */ B(Vu, [["render", Bu]]), Ru = {}, Uu = {
|
|
1022
1022
|
width: "24",
|
|
@@ -1031,7 +1031,7 @@ const Nu = /* @__PURE__ */ B(Vu, [["render", Bu]]), Ru = {}, Uu = {
|
|
|
1031
1031
|
ju
|
|
1032
1032
|
];
|
|
1033
1033
|
function Fu(a, e) {
|
|
1034
|
-
return v(),
|
|
1034
|
+
return v(), h("svg", Uu, Zu);
|
|
1035
1035
|
}
|
|
1036
1036
|
const qu = /* @__PURE__ */ B(Ru, [["render", Fu]]), Wu = {}, zu = {
|
|
1037
1037
|
width: "24",
|
|
@@ -1046,7 +1046,7 @@ const qu = /* @__PURE__ */ B(Ru, [["render", Fu]]), Wu = {}, zu = {
|
|
|
1046
1046
|
xu
|
|
1047
1047
|
];
|
|
1048
1048
|
function Ku(a, e) {
|
|
1049
|
-
return v(),
|
|
1049
|
+
return v(), h("svg", zu, Yu);
|
|
1050
1050
|
}
|
|
1051
1051
|
const Gu = /* @__PURE__ */ B(Wu, [["render", Ku]]), Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1052
1052
|
__proto__: null,
|
|
@@ -1141,8 +1141,8 @@ const Gu = /* @__PURE__ */ B(Wu, [["render", Ku]]), Xu = /* @__PURE__ */ Object.
|
|
|
1141
1141
|
size: { default: a1.MD }
|
|
1142
1142
|
},
|
|
1143
1143
|
setup(a) {
|
|
1144
|
-
const e = a, t =
|
|
1145
|
-
return (s, n) => (v(),
|
|
1144
|
+
const e = a, t = w(() => Xu[e.name]);
|
|
1145
|
+
return (s, n) => (v(), j(et(t.value), {
|
|
1146
1146
|
class: X(["ao-icon", `ao-icon--${s.size}`])
|
|
1147
1147
|
}, null, 8, ["class"]));
|
|
1148
1148
|
}
|
|
@@ -1165,8 +1165,8 @@ const ec = ["type"], tc = {
|
|
|
1165
1165
|
corners: { default: () => ua.ROUNDED }
|
|
1166
1166
|
},
|
|
1167
1167
|
setup(a) {
|
|
1168
|
-
const e = a, t =
|
|
1169
|
-
return (n, o) => (v(),
|
|
1168
|
+
const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
|
|
1169
|
+
return (n, o) => (v(), h("button", {
|
|
1170
1170
|
type: n.type,
|
|
1171
1171
|
class: X([
|
|
1172
1172
|
"ao-button",
|
|
@@ -1180,9 +1180,9 @@ const ec = ["type"], tc = {
|
|
|
1180
1180
|
])
|
|
1181
1181
|
}, [
|
|
1182
1182
|
ee(n.$slots, "default", {}, () => [
|
|
1183
|
-
n.label ? (v(),
|
|
1183
|
+
n.label ? (v(), h("span", tc, q(n.label), 1)) : S("", !0)
|
|
1184
1184
|
]),
|
|
1185
|
-
s.value ? (v(),
|
|
1185
|
+
s.value ? (v(), j(de, {
|
|
1186
1186
|
key: 0,
|
|
1187
1187
|
name: s.value,
|
|
1188
1188
|
class: "ao-button__icon",
|
|
@@ -1192,7 +1192,7 @@ const ec = ["type"], tc = {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
});
|
|
1194
1194
|
function ca(a) {
|
|
1195
|
-
const e = Q(!1), t = Q(""), s =
|
|
1195
|
+
const e = Q(!1), t = Q(""), s = w(() => "value" in a.value ? "value" : "innerHTML"), n = () => {
|
|
1196
1196
|
e.value = !e.value;
|
|
1197
1197
|
}, o = (r) => {
|
|
1198
1198
|
e.value = r;
|
|
@@ -1232,51 +1232,51 @@ const me = /* @__PURE__ */ Y({
|
|
|
1232
1232
|
},
|
|
1233
1233
|
emits: ["update:title", "toggle-is-editing"],
|
|
1234
1234
|
setup(a, { emit: e }) {
|
|
1235
|
-
const t = a, s = Q(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r =
|
|
1235
|
+
const t = a, s = Q(null), { isEditing: n, setIsEditing: o, onUpdate: i, onDiscard: l } = ca(s), r = w(() => n.value ? "input" : t.tag || `h${t.level}`), c = w(() => t.isEditable ? n.value ? {
|
|
1236
1236
|
change: u,
|
|
1237
|
-
click: (
|
|
1237
|
+
click: (M) => M.stopPropagation(),
|
|
1238
1238
|
blur: p
|
|
1239
1239
|
} : {
|
|
1240
|
-
click:
|
|
1241
|
-
focus:
|
|
1242
|
-
} : {}), u = i((
|
|
1243
|
-
const
|
|
1244
|
-
e("update:title",
|
|
1240
|
+
click: $,
|
|
1241
|
+
focus: $
|
|
1242
|
+
} : {}), u = i((M, A) => {
|
|
1243
|
+
const y = A.target.value;
|
|
1244
|
+
e("update:title", y);
|
|
1245
1245
|
}), f = l(), p = async () => {
|
|
1246
1246
|
n.value && o(!1);
|
|
1247
|
-
},
|
|
1247
|
+
}, C = () => {
|
|
1248
1248
|
e("toggle-is-editing", !1);
|
|
1249
|
-
},
|
|
1250
|
-
|
|
1249
|
+
}, $ = (M) => {
|
|
1250
|
+
M.stopPropagation(), n.value || o(!0);
|
|
1251
1251
|
};
|
|
1252
1252
|
return re(
|
|
1253
1253
|
() => t.isEditable,
|
|
1254
|
-
(
|
|
1255
|
-
|
|
1254
|
+
(M) => {
|
|
1255
|
+
M || f();
|
|
1256
1256
|
}
|
|
1257
|
-
), (
|
|
1258
|
-
id:
|
|
1257
|
+
), (M, A) => (v(), j(et(r.value), Ve({
|
|
1258
|
+
id: M.id,
|
|
1259
1259
|
ref_key: "target",
|
|
1260
1260
|
ref: s,
|
|
1261
1261
|
class: [
|
|
1262
1262
|
"ao-title",
|
|
1263
|
-
`ao-title--${
|
|
1263
|
+
`ao-title--${M.level}`,
|
|
1264
1264
|
{
|
|
1265
|
-
[`ao-title--${
|
|
1266
|
-
"ao-title--editable":
|
|
1265
|
+
[`ao-title--${M.color}`]: !!M.color,
|
|
1266
|
+
"ao-title--editable": M.isEditable,
|
|
1267
1267
|
"ao-field__input ao-title--editing": Z(n),
|
|
1268
1268
|
"ao-title--readonly": !Z(n)
|
|
1269
1269
|
}
|
|
1270
1270
|
],
|
|
1271
1271
|
type: Z(n) ? "text" : null,
|
|
1272
|
-
value: Z(n) ?
|
|
1272
|
+
value: Z(n) ? M.title : null,
|
|
1273
1273
|
tabindex: "0",
|
|
1274
|
-
onKeyup: ze(
|
|
1274
|
+
onKeyup: ze(C, ["enter"])
|
|
1275
1275
|
}, ln(c.value), {
|
|
1276
1276
|
onKeydown: ze(Z(f), ["esc"])
|
|
1277
1277
|
}), {
|
|
1278
1278
|
default: R(() => [
|
|
1279
|
-
t1(q(
|
|
1279
|
+
t1(q(M.title), 1)
|
|
1280
1280
|
]),
|
|
1281
1281
|
_: 1
|
|
1282
1282
|
}, 16, ["id", "class", "type", "value", "onKeyup", "onKeydown"]));
|
|
@@ -1320,18 +1320,18 @@ const ac = {
|
|
|
1320
1320
|
const t = (s) => {
|
|
1321
1321
|
e("update:title", s);
|
|
1322
1322
|
};
|
|
1323
|
-
return (s, n) => (v(),
|
|
1323
|
+
return (s, n) => (v(), j(et(s.tagName), {
|
|
1324
1324
|
class: X(["ao-card-horiz", { "ao-card-horiz--active": s.isActive }])
|
|
1325
1325
|
}, {
|
|
1326
1326
|
default: R(() => [
|
|
1327
|
-
s.isDraggable ? (v(),
|
|
1327
|
+
s.isDraggable ? (v(), h("div", ac, [
|
|
1328
1328
|
k(de, {
|
|
1329
1329
|
name: "DragIndicator",
|
|
1330
1330
|
class: "ao-card-horiz__drag-handle"
|
|
1331
1331
|
})
|
|
1332
1332
|
])) : S("", !0),
|
|
1333
1333
|
d("div", nc, [
|
|
1334
|
-
s.icon ? (v(),
|
|
1334
|
+
s.icon ? (v(), h("div", sc, [
|
|
1335
1335
|
k(de, {
|
|
1336
1336
|
class: "ao-card-horiz__icon",
|
|
1337
1337
|
name: s.icon,
|
|
@@ -1348,20 +1348,20 @@ const ac = {
|
|
|
1348
1348
|
"onUpdate:title": t
|
|
1349
1349
|
}, null, 8, ["id", "title"]),
|
|
1350
1350
|
ee(s.$slots, "subtitle", {}, () => [
|
|
1351
|
-
s.subtitle ? (v(),
|
|
1351
|
+
s.subtitle ? (v(), h("span", oc, q(s.subtitle), 1)) : S("", !0)
|
|
1352
1352
|
])
|
|
1353
1353
|
]),
|
|
1354
|
-
s.$slots.header ? (v(),
|
|
1354
|
+
s.$slots.header ? (v(), h("div", lc, [
|
|
1355
1355
|
ee(s.$slots, "header")
|
|
1356
1356
|
])) : S("", !0)
|
|
1357
1357
|
]),
|
|
1358
|
-
s.$slots.default ? (v(),
|
|
1358
|
+
s.$slots.default ? (v(), h("div", rc, [
|
|
1359
1359
|
ee(s.$slots, "default")
|
|
1360
1360
|
])) : S("", !0),
|
|
1361
|
-
s.$slots.footer ? (v(),
|
|
1361
|
+
s.$slots.footer ? (v(), h("div", uc, [
|
|
1362
1362
|
ee(s.$slots, "footer")
|
|
1363
1363
|
])) : S("", !0),
|
|
1364
|
-
s.$slots.secondary ? (v(),
|
|
1364
|
+
s.$slots.secondary ? (v(), h("div", cc, [
|
|
1365
1365
|
ee(s.$slots, "secondary")
|
|
1366
1366
|
])) : S("", !0)
|
|
1367
1367
|
]),
|
|
@@ -1381,10 +1381,10 @@ const S1 = /* @__PURE__ */ Y({
|
|
|
1381
1381
|
},
|
|
1382
1382
|
emits: ["click", "close"],
|
|
1383
1383
|
setup(a) {
|
|
1384
|
-
const e = a, t =
|
|
1384
|
+
const e = a, t = w(() => e.clickable ? "button" : "span"), s = w(
|
|
1385
1385
|
() => t.value === "button" ? { type: "button" } : {}
|
|
1386
1386
|
);
|
|
1387
|
-
return (n, o) => (v(),
|
|
1387
|
+
return (n, o) => (v(), h("div", {
|
|
1388
1388
|
class: X([
|
|
1389
1389
|
"ao-tag",
|
|
1390
1390
|
n.color ? `ao-tag--${n.color}` : "",
|
|
@@ -1394,7 +1394,7 @@ const S1 = /* @__PURE__ */ Y({
|
|
|
1394
1394
|
]),
|
|
1395
1395
|
style: la(n.rawColor ? { "--ao-tag-bg": n.rawColor } : {})
|
|
1396
1396
|
}, [
|
|
1397
|
-
(v(),
|
|
1397
|
+
(v(), j(et(t.value), Ve({ class: "ao-tag__label" }, s.value, {
|
|
1398
1398
|
onClick: o[0] || (o[0] = (i) => n.$emit("click", i))
|
|
1399
1399
|
}), {
|
|
1400
1400
|
default: R(() => [
|
|
@@ -1402,7 +1402,7 @@ const S1 = /* @__PURE__ */ Y({
|
|
|
1402
1402
|
]),
|
|
1403
1403
|
_: 1
|
|
1404
1404
|
}, 16)),
|
|
1405
|
-
n.closable ? (v(),
|
|
1405
|
+
n.closable ? (v(), h("button", {
|
|
1406
1406
|
key: 0,
|
|
1407
1407
|
class: "ao-tag__close",
|
|
1408
1408
|
onClick: o[1] || (o[1] = (i) => n.$emit("close", i))
|
|
@@ -1508,29 +1508,29 @@ function Gt(a, e) {
|
|
|
1508
1508
|
var u = n1(), f = xe((t = (s = (n = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && n !== void 0 ? n : u.weekStartsOn) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1509
1509
|
if (!(f >= 0 && f <= 6))
|
|
1510
1510
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1511
|
-
var p = De(a),
|
|
1512
|
-
return p.setUTCDate(p.getUTCDate() -
|
|
1511
|
+
var p = De(a), C = p.getUTCDay(), $ = (C < f ? 7 : 0) + C - f;
|
|
1512
|
+
return p.setUTCDate(p.getUTCDate() - $), p.setUTCHours(0, 0, 0, 0), p;
|
|
1513
1513
|
}
|
|
1514
1514
|
function ma(a, e) {
|
|
1515
1515
|
var t, s, n, o, i, l, r, c;
|
|
1516
1516
|
ge(1, arguments);
|
|
1517
|
-
var u = De(a), f = u.getUTCFullYear(), p = n1(),
|
|
1518
|
-
if (!(
|
|
1517
|
+
var u = De(a), f = u.getUTCFullYear(), p = n1(), C = xe((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : p.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = p.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
1518
|
+
if (!(C >= 1 && C <= 7))
|
|
1519
1519
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1520
|
-
var
|
|
1521
|
-
|
|
1522
|
-
var
|
|
1523
|
-
A.setUTCFullYear(f, 0,
|
|
1524
|
-
var
|
|
1525
|
-
return u.getTime() >=
|
|
1520
|
+
var $ = /* @__PURE__ */ new Date(0);
|
|
1521
|
+
$.setUTCFullYear(f + 1, 0, C), $.setUTCHours(0, 0, 0, 0);
|
|
1522
|
+
var M = Gt($, e), A = /* @__PURE__ */ new Date(0);
|
|
1523
|
+
A.setUTCFullYear(f, 0, C), A.setUTCHours(0, 0, 0, 0);
|
|
1524
|
+
var _ = Gt(A, e);
|
|
1525
|
+
return u.getTime() >= M.getTime() ? f + 1 : u.getTime() >= _.getTime() ? f : f - 1;
|
|
1526
1526
|
}
|
|
1527
1527
|
function bc(a, e) {
|
|
1528
1528
|
var t, s, n, o, i, l, r, c;
|
|
1529
1529
|
ge(1, arguments);
|
|
1530
|
-
var u = n1(), f = xe((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = ma(a, e),
|
|
1531
|
-
|
|
1532
|
-
var
|
|
1533
|
-
return
|
|
1530
|
+
var u = n1(), f = xe((t = (s = (n = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (i = e.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && n !== void 0 ? n : u.firstWeekContainsDate) !== null && s !== void 0 ? s : (r = u.locale) === null || r === void 0 || (c = r.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), p = ma(a, e), C = /* @__PURE__ */ new Date(0);
|
|
1531
|
+
C.setUTCFullYear(p, 0, f), C.setUTCHours(0, 0, 0, 0);
|
|
1532
|
+
var $ = Gt(C, e);
|
|
1533
|
+
return $;
|
|
1534
1534
|
}
|
|
1535
1535
|
var wc = 6048e5;
|
|
1536
1536
|
function $c(a, e) {
|
|
@@ -2644,12 +2644,12 @@ var Cd = {
|
|
|
2644
2644
|
const _d = Cd;
|
|
2645
2645
|
var gd = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, yd = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, bd = /^'([^]*?)'?$/, wd = /''/g, $d = /[a-zA-Z]/;
|
|
2646
2646
|
function Md(a, e, t) {
|
|
2647
|
-
var s, n, o, i, l, r, c, u, f, p,
|
|
2647
|
+
var s, n, o, i, l, r, c, u, f, p, C, $, M, A, _, y, V, U;
|
|
2648
2648
|
ge(2, arguments);
|
|
2649
2649
|
var F = String(e), H = n1(), O = (s = (n = t == null ? void 0 : t.locale) !== null && n !== void 0 ? n : H.locale) !== null && s !== void 0 ? s : _d, z = xe((o = (i = (l = (r = t == null ? void 0 : t.firstWeekContainsDate) !== null && r !== void 0 ? r : t == null || (c = t.locale) === null || c === void 0 || (u = c.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && l !== void 0 ? l : H.firstWeekContainsDate) !== null && i !== void 0 ? i : (f = H.locale) === null || f === void 0 || (p = f.options) === null || p === void 0 ? void 0 : p.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2650
2650
|
if (!(z >= 1 && z <= 7))
|
|
2651
2651
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2652
|
-
var K = xe((
|
|
2652
|
+
var K = xe((C = ($ = (M = (A = t == null ? void 0 : t.weekStartsOn) !== null && A !== void 0 ? A : t == null || (_ = t.locale) === null || _ === void 0 || (y = _.options) === null || y === void 0 ? void 0 : y.weekStartsOn) !== null && M !== void 0 ? M : H.weekStartsOn) !== null && $ !== void 0 ? $ : (V = H.locale) === null || V === void 0 || (U = V.options) === null || U === void 0 ? void 0 : U.weekStartsOn) !== null && C !== void 0 ? C : 0);
|
|
2653
2653
|
if (!(K >= 0 && K <= 6))
|
|
2654
2654
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
2655
2655
|
if (!O.localize)
|
|
@@ -2659,7 +2659,7 @@ function Md(a, e, t) {
|
|
|
2659
2659
|
var ie = De(a);
|
|
2660
2660
|
if (!pa(ie))
|
|
2661
2661
|
throw new RangeError("Invalid time value");
|
|
2662
|
-
var
|
|
2662
|
+
var b = vc(ie), T = hc(ie, b), P = {
|
|
2663
2663
|
firstWeekContainsDate: z,
|
|
2664
2664
|
weekStartsOn: K,
|
|
2665
2665
|
locale: O,
|
|
@@ -3385,21 +3385,21 @@ function wa() {
|
|
|
3385
3385
|
r = u;
|
|
3386
3386
|
}
|
|
3387
3387
|
let f;
|
|
3388
|
-
for (let
|
|
3389
|
-
const
|
|
3390
|
-
if (f = c.setScale(
|
|
3388
|
+
for (let $ = r.getScale(); $ > 0; c = f) {
|
|
3389
|
+
const M = $ - 1, A = r.setScale(M, !0);
|
|
3390
|
+
if (f = c.setScale(M, !1), A.compareTo(f) === 0)
|
|
3391
3391
|
return n.checkMid(i, l, A);
|
|
3392
3392
|
if (A.compareTo(f) > 0)
|
|
3393
3393
|
break;
|
|
3394
|
-
|
|
3394
|
+
$ = M, r = A;
|
|
3395
3395
|
}
|
|
3396
|
-
let p = n.middleInternal(i, l, r, c),
|
|
3397
|
-
for (let
|
|
3398
|
-
|
|
3399
|
-
const
|
|
3400
|
-
if (i.compareTo(
|
|
3396
|
+
let p = n.middleInternal(i, l, r, c), C;
|
|
3397
|
+
for (let $ = p.getScale(); $ > 0; $ = C) {
|
|
3398
|
+
C = $ - 1;
|
|
3399
|
+
const M = p.setScale(C);
|
|
3400
|
+
if (i.compareTo(M) >= 0 || M.compareTo(l) >= 0)
|
|
3401
3401
|
break;
|
|
3402
|
-
p =
|
|
3402
|
+
p = M;
|
|
3403
3403
|
}
|
|
3404
3404
|
return p;
|
|
3405
3405
|
}
|
|
@@ -3586,13 +3586,13 @@ const Qd = ["title"], Jd = { className: "ao-avatar__initials" }, _t = /* @__PURE
|
|
|
3586
3586
|
const s = Xd(a.userName), n = (o) => {
|
|
3587
3587
|
e("close", o);
|
|
3588
3588
|
};
|
|
3589
|
-
return (o, i) => (v(),
|
|
3589
|
+
return (o, i) => (v(), h("div", {
|
|
3590
3590
|
role: "img",
|
|
3591
3591
|
class: X(["ao-avatar", `ao-avatar--${o.size}`]),
|
|
3592
3592
|
title: o.userName
|
|
3593
3593
|
}, [
|
|
3594
3594
|
d("span", Jd, q(Z(s)), 1),
|
|
3595
|
-
o.isClosable ? (v(),
|
|
3595
|
+
o.isClosable ? (v(), j(ce, {
|
|
3596
3596
|
key: 0,
|
|
3597
3597
|
"icon-name": "CloseRounded",
|
|
3598
3598
|
class: "ao-avatar__close",
|
|
@@ -3628,7 +3628,7 @@ const e3 = { class: "ao-card-template__subitems" }, t3 = { class: "ao-card-templ
|
|
|
3628
3628
|
const t = (s) => {
|
|
3629
3629
|
e("updateTitle", s);
|
|
3630
3630
|
};
|
|
3631
|
-
return (s, n) => (v(),
|
|
3631
|
+
return (s, n) => (v(), j(da, {
|
|
3632
3632
|
id: s.id,
|
|
3633
3633
|
title: s.title,
|
|
3634
3634
|
"is-draggable": !0,
|
|
@@ -3662,8 +3662,8 @@ const e3 = { class: "ao-card-template__subitems" }, t3 = { class: "ao-card-templ
|
|
|
3662
3662
|
}),
|
|
3663
3663
|
d("span", r3, q(s.$t("template.phases.title")), 1)
|
|
3664
3664
|
]),
|
|
3665
|
-
s.phases ? (v(),
|
|
3666
|
-
(v(!0),
|
|
3665
|
+
s.phases ? (v(), h("ul", u3, [
|
|
3666
|
+
(v(!0), h(ve, null, ye(s.phases, (o) => (v(), j(S1, {
|
|
3667
3667
|
key: o.id,
|
|
3668
3668
|
label: o.name || o.id,
|
|
3669
3669
|
color: "primary",
|
|
@@ -3679,7 +3679,7 @@ const e3 = { class: "ao-card-template__subitems" }, t3 = { class: "ao-card-templ
|
|
|
3679
3679
|
name: "footer",
|
|
3680
3680
|
fn: R(() => [
|
|
3681
3681
|
d("div", c3, [
|
|
3682
|
-
s.updatedAt ? (v(),
|
|
3682
|
+
s.updatedAt ? (v(), h("div", d3, [
|
|
3683
3683
|
d("div", f3, [
|
|
3684
3684
|
d("span", v3, q(s.$t("template.updatedAt.label")), 1)
|
|
3685
3685
|
]),
|
|
@@ -3687,7 +3687,7 @@ const e3 = { class: "ao-card-template__subitems" }, t3 = { class: "ao-card-templ
|
|
|
3687
3687
|
d("span", null, q(s.updatedAt), 1)
|
|
3688
3688
|
])
|
|
3689
3689
|
])) : S("", !0),
|
|
3690
|
-
s.updatedBy ? (v(),
|
|
3690
|
+
s.updatedBy ? (v(), h("div", h3, [
|
|
3691
3691
|
d("div", m3, [
|
|
3692
3692
|
d("span", C3, q(s.$t("template.updatedBy.label")), 1)
|
|
3693
3693
|
]),
|
|
@@ -3712,9 +3712,9 @@ const y3 = { class: "ao-page-header" }, b3 = { class: "ao-page-header-main" }, w
|
|
|
3712
3712
|
},
|
|
3713
3713
|
emits: ["goBack"],
|
|
3714
3714
|
setup(a) {
|
|
3715
|
-
return (e, t) => (v(),
|
|
3715
|
+
return (e, t) => (v(), h("header", y3, [
|
|
3716
3716
|
d("div", b3, [
|
|
3717
|
-
e.canGoBack ? (v(),
|
|
3717
|
+
e.canGoBack ? (v(), j(ce, {
|
|
3718
3718
|
key: 0,
|
|
3719
3719
|
"icon-name": "ArrowBackRounded",
|
|
3720
3720
|
variant: "ghost",
|
|
@@ -3722,7 +3722,7 @@ const y3 = { class: "ao-page-header" }, b3 = { class: "ao-page-header-main" }, w
|
|
|
3722
3722
|
})) : S("", !0),
|
|
3723
3723
|
ee(e.$slots, "primary")
|
|
3724
3724
|
]),
|
|
3725
|
-
e.$slots.secondary ? (v(),
|
|
3725
|
+
e.$slots.secondary ? (v(), h("div", w3, [
|
|
3726
3726
|
ee(e.$slots, "secondary")
|
|
3727
3727
|
])) : S("", !0)
|
|
3728
3728
|
]));
|
|
@@ -3744,8 +3744,8 @@ const $3 = ["type"], M3 = {
|
|
|
3744
3744
|
corners: { default: () => ua.ROUNDED }
|
|
3745
3745
|
},
|
|
3746
3746
|
setup(a) {
|
|
3747
|
-
const e = a, t =
|
|
3748
|
-
return (n, o) => (v(),
|
|
3747
|
+
const e = a, t = w(() => e.size), s = w(() => e.isLoading ? "Loading" : e.iconName);
|
|
3748
|
+
return (n, o) => (v(), h("button", {
|
|
3749
3749
|
type: n.type,
|
|
3750
3750
|
class: X([
|
|
3751
3751
|
"ao-button-card",
|
|
@@ -3755,9 +3755,9 @@ const $3 = ["type"], M3 = {
|
|
|
3755
3755
|
])
|
|
3756
3756
|
}, [
|
|
3757
3757
|
ee(n.$slots, "default", {}, () => [
|
|
3758
|
-
n.label ? (v(),
|
|
3758
|
+
n.label ? (v(), h("span", M3, q(n.label), 1)) : S("", !0)
|
|
3759
3759
|
]),
|
|
3760
|
-
s.value ? (v(),
|
|
3760
|
+
s.value ? (v(), j(de, {
|
|
3761
3761
|
key: 0,
|
|
3762
3762
|
name: s.value,
|
|
3763
3763
|
class: "ao-button-card__icon",
|
|
@@ -3789,11 +3789,11 @@ const k3 = { class: "ao-card-template-item__footer" }, A3 = {
|
|
|
3789
3789
|
}, o = () => {
|
|
3790
3790
|
e("remove");
|
|
3791
3791
|
};
|
|
3792
|
-
return (i, l) => (v(),
|
|
3792
|
+
return (i, l) => (v(), j(da, { "onUpdate:title": t }, {
|
|
3793
3793
|
footer: R(() => [
|
|
3794
3794
|
d("ul", k3, [
|
|
3795
|
-
(v(),
|
|
3796
|
-
i.$props[r] ? (v(),
|
|
3795
|
+
(v(), h(ve, null, ye(s, (r) => (v(), h(ve, { key: r }, [
|
|
3796
|
+
i.$props[r] ? (v(), h("li", A3, [
|
|
3797
3797
|
k(de, {
|
|
3798
3798
|
name: n[r],
|
|
3799
3799
|
size: "sm"
|
|
@@ -3826,11 +3826,11 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3826
3826
|
milestones: {}
|
|
3827
3827
|
},
|
|
3828
3828
|
setup(a) {
|
|
3829
|
-
const e = a, t =
|
|
3829
|
+
const e = a, t = w(() => {
|
|
3830
3830
|
var n;
|
|
3831
3831
|
return (n = e.milestones) == null ? void 0 : n.length;
|
|
3832
|
-
}), s =
|
|
3833
|
-
return (n, o) => (v(),
|
|
3832
|
+
}), s = w(() => e.milestones ? $a(e.milestones) : 0);
|
|
3833
|
+
return (n, o) => (v(), j(I1, Ve({
|
|
3834
3834
|
id: n.id,
|
|
3835
3835
|
title: n.name,
|
|
3836
3836
|
activities: s.value,
|
|
@@ -3848,11 +3848,11 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3848
3848
|
activities: {}
|
|
3849
3849
|
},
|
|
3850
3850
|
setup(a) {
|
|
3851
|
-
const e = a, t =
|
|
3851
|
+
const e = a, t = w(() => {
|
|
3852
3852
|
var s;
|
|
3853
3853
|
return ((s = e.activities) == null ? void 0 : s.length) || 0;
|
|
3854
3854
|
});
|
|
3855
|
-
return (s, n) => (v(),
|
|
3855
|
+
return (s, n) => (v(), j(I1, { activities: t.value }, {
|
|
3856
3856
|
default: R(() => [
|
|
3857
3857
|
ee(s.$slots, "default")
|
|
3858
3858
|
]),
|
|
@@ -3883,7 +3883,7 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3883
3883
|
});
|
|
3884
3884
|
}
|
|
3885
3885
|
};
|
|
3886
|
-
return (l, r) => l.phase ? (v(),
|
|
3886
|
+
return (l, r) => l.phase ? (v(), j(Z(Ge), {
|
|
3887
3887
|
key: 0,
|
|
3888
3888
|
"model-value": l.phase.milestones,
|
|
3889
3889
|
class: "ao-templates__list",
|
|
@@ -3900,7 +3900,7 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3900
3900
|
})
|
|
3901
3901
|
]),
|
|
3902
3902
|
item: R(({ element: c }) => [
|
|
3903
|
-
(v(),
|
|
3903
|
+
(v(), j(I3, {
|
|
3904
3904
|
id: c.id,
|
|
3905
3905
|
key: c.id,
|
|
3906
3906
|
title: c.name,
|
|
@@ -3935,11 +3935,11 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3935
3935
|
tasks: {}
|
|
3936
3936
|
},
|
|
3937
3937
|
setup(a) {
|
|
3938
|
-
const e = a, t =
|
|
3938
|
+
const e = a, t = w(() => {
|
|
3939
3939
|
var s;
|
|
3940
3940
|
return ((s = e.tasks) == null ? void 0 : s.length) || 0;
|
|
3941
3941
|
});
|
|
3942
|
-
return (s, n) => (v(),
|
|
3942
|
+
return (s, n) => (v(), j(I1, { tasks: t.value }, {
|
|
3943
3943
|
default: R(() => [
|
|
3944
3944
|
ee(s.$slots, "default")
|
|
3945
3945
|
]),
|
|
@@ -3973,7 +3973,7 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3973
3973
|
});
|
|
3974
3974
|
}
|
|
3975
3975
|
};
|
|
3976
|
-
return (l, r) => l.milestone ? (v(),
|
|
3976
|
+
return (l, r) => l.milestone ? (v(), j(Z(Ge), {
|
|
3977
3977
|
key: 0,
|
|
3978
3978
|
"model-value": l.milestone.activities,
|
|
3979
3979
|
title: l.$t("template.activities.title"),
|
|
@@ -3990,7 +3990,7 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
3990
3990
|
})
|
|
3991
3991
|
]),
|
|
3992
3992
|
item: R(({ element: c }) => [
|
|
3993
|
-
(v(),
|
|
3993
|
+
(v(), j(V3, {
|
|
3994
3994
|
id: c.id,
|
|
3995
3995
|
key: c.id,
|
|
3996
3996
|
title: c.name,
|
|
@@ -4027,7 +4027,7 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
4027
4027
|
},
|
|
4028
4028
|
emits: ["close"],
|
|
4029
4029
|
setup(a) {
|
|
4030
|
-
return (e, t) => (v(),
|
|
4030
|
+
return (e, t) => (v(), h("div", {
|
|
4031
4031
|
class: X(["ao-modal__wrapper", `ao-modal__wrapper--${e.size}`])
|
|
4032
4032
|
}, [
|
|
4033
4033
|
d("div", {
|
|
@@ -4044,14 +4044,14 @@ const E3 = /* @__PURE__ */ Y({
|
|
|
4044
4044
|
onClick: t[1] || (t[1] = (s) => e.$emit("close"))
|
|
4045
4045
|
})
|
|
4046
4046
|
]),
|
|
4047
|
-
e.$slots.header ? (v(),
|
|
4047
|
+
e.$slots.header ? (v(), h("header", R3, [
|
|
4048
4048
|
ee(e.$slots, "header")
|
|
4049
4049
|
])) : S("", !0)
|
|
4050
4050
|
]),
|
|
4051
4051
|
d("div", U3, [
|
|
4052
4052
|
ee(e.$slots, "default")
|
|
4053
4053
|
]),
|
|
4054
|
-
e.$slots.footer ? (v(),
|
|
4054
|
+
e.$slots.footer ? (v(), h("footer", j3, [
|
|
4055
4055
|
ee(e.$slots, "footer")
|
|
4056
4056
|
])) : S("", !0)
|
|
4057
4057
|
])
|
|
@@ -4157,47 +4157,47 @@ function ta(a, e, t) {
|
|
|
4157
4157
|
floating: n
|
|
4158
4158
|
} = a;
|
|
4159
4159
|
const o = V1(e), i = ka(e), l = Ma(i), r = ht(e), c = o === "y", u = s.x + s.width / 2 - n.width / 2, f = s.y + s.height / 2 - n.height / 2, p = s[l] / 2 - n[l] / 2;
|
|
4160
|
-
let
|
|
4160
|
+
let C;
|
|
4161
4161
|
switch (r) {
|
|
4162
4162
|
case "top":
|
|
4163
|
-
|
|
4163
|
+
C = {
|
|
4164
4164
|
x: u,
|
|
4165
4165
|
y: s.y - n.height
|
|
4166
4166
|
};
|
|
4167
4167
|
break;
|
|
4168
4168
|
case "bottom":
|
|
4169
|
-
|
|
4169
|
+
C = {
|
|
4170
4170
|
x: u,
|
|
4171
4171
|
y: s.y + s.height
|
|
4172
4172
|
};
|
|
4173
4173
|
break;
|
|
4174
4174
|
case "right":
|
|
4175
|
-
|
|
4175
|
+
C = {
|
|
4176
4176
|
x: s.x + s.width,
|
|
4177
4177
|
y: f
|
|
4178
4178
|
};
|
|
4179
4179
|
break;
|
|
4180
4180
|
case "left":
|
|
4181
|
-
|
|
4181
|
+
C = {
|
|
4182
4182
|
x: s.x - n.width,
|
|
4183
4183
|
y: f
|
|
4184
4184
|
};
|
|
4185
4185
|
break;
|
|
4186
4186
|
default:
|
|
4187
|
-
|
|
4187
|
+
C = {
|
|
4188
4188
|
x: s.x,
|
|
4189
4189
|
y: s.y
|
|
4190
4190
|
};
|
|
4191
4191
|
}
|
|
4192
4192
|
switch (u1(e)) {
|
|
4193
4193
|
case "start":
|
|
4194
|
-
|
|
4194
|
+
C[i] -= p * (t && c ? -1 : 1);
|
|
4195
4195
|
break;
|
|
4196
4196
|
case "end":
|
|
4197
|
-
|
|
4197
|
+
C[i] += p * (t && c ? -1 : 1);
|
|
4198
4198
|
break;
|
|
4199
4199
|
}
|
|
4200
|
-
return
|
|
4200
|
+
return C;
|
|
4201
4201
|
}
|
|
4202
4202
|
const X3 = async (a, e, t) => {
|
|
4203
4203
|
const {
|
|
@@ -4213,23 +4213,23 @@ const X3 = async (a, e, t) => {
|
|
|
4213
4213
|
}), {
|
|
4214
4214
|
x: u,
|
|
4215
4215
|
y: f
|
|
4216
|
-
} = ta(c, s, r), p = s,
|
|
4217
|
-
for (let
|
|
4216
|
+
} = ta(c, s, r), p = s, C = {}, $ = 0;
|
|
4217
|
+
for (let M = 0; M < l.length; M++) {
|
|
4218
4218
|
const {
|
|
4219
4219
|
name: A,
|
|
4220
|
-
fn:
|
|
4221
|
-
} = l[
|
|
4222
|
-
x:
|
|
4220
|
+
fn: _
|
|
4221
|
+
} = l[M], {
|
|
4222
|
+
x: y,
|
|
4223
4223
|
y: V,
|
|
4224
|
-
data:
|
|
4224
|
+
data: U,
|
|
4225
4225
|
reset: F
|
|
4226
|
-
} = await
|
|
4226
|
+
} = await _({
|
|
4227
4227
|
x: u,
|
|
4228
4228
|
y: f,
|
|
4229
4229
|
initialPlacement: s,
|
|
4230
4230
|
placement: p,
|
|
4231
4231
|
strategy: n,
|
|
4232
|
-
middlewareData:
|
|
4232
|
+
middlewareData: C,
|
|
4233
4233
|
rects: c,
|
|
4234
4234
|
platform: i,
|
|
4235
4235
|
elements: {
|
|
@@ -4237,21 +4237,21 @@ const X3 = async (a, e, t) => {
|
|
|
4237
4237
|
floating: e
|
|
4238
4238
|
}
|
|
4239
4239
|
});
|
|
4240
|
-
if (u =
|
|
4241
|
-
...
|
|
4240
|
+
if (u = y ?? u, f = V ?? f, C = {
|
|
4241
|
+
...C,
|
|
4242
4242
|
[A]: {
|
|
4243
|
-
...
|
|
4244
|
-
...
|
|
4243
|
+
...C[A],
|
|
4244
|
+
...U
|
|
4245
4245
|
}
|
|
4246
|
-
}, F &&
|
|
4247
|
-
|
|
4246
|
+
}, F && $ <= 50) {
|
|
4247
|
+
$++, typeof F == "object" && (F.placement && (p = F.placement), F.rects && (c = F.rects === !0 ? await i.getElementRects({
|
|
4248
4248
|
reference: a,
|
|
4249
4249
|
floating: e,
|
|
4250
4250
|
strategy: n
|
|
4251
4251
|
}) : F.rects), {
|
|
4252
4252
|
x: u,
|
|
4253
4253
|
y: f
|
|
4254
|
-
} = ta(c, p, r)),
|
|
4254
|
+
} = ta(c, p, r)), M = -1;
|
|
4255
4255
|
continue;
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
@@ -4260,7 +4260,7 @@ const X3 = async (a, e, t) => {
|
|
|
4260
4260
|
y: f,
|
|
4261
4261
|
placement: p,
|
|
4262
4262
|
strategy: n,
|
|
4263
|
-
middlewareData:
|
|
4263
|
+
middlewareData: C
|
|
4264
4264
|
};
|
|
4265
4265
|
};
|
|
4266
4266
|
async function Aa(a, e) {
|
|
@@ -4278,32 +4278,32 @@ async function Aa(a, e) {
|
|
|
4278
4278
|
rootBoundary: u = "viewport",
|
|
4279
4279
|
elementContext: f = "floating",
|
|
4280
4280
|
altBoundary: p = !1,
|
|
4281
|
-
padding:
|
|
4282
|
-
} = L1(e, a),
|
|
4281
|
+
padding: C = 0
|
|
4282
|
+
} = L1(e, a), $ = G3(C), A = l[p ? f === "floating" ? "reference" : "floating" : f], _ = Jt(await o.getClippingRect({
|
|
4283
4283
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(A))) == null || t ? A : A.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
4284
4284
|
boundary: c,
|
|
4285
4285
|
rootBoundary: u,
|
|
4286
4286
|
strategy: r
|
|
4287
|
-
})),
|
|
4287
|
+
})), y = f === "floating" ? {
|
|
4288
4288
|
...i.floating,
|
|
4289
4289
|
x: s,
|
|
4290
4290
|
y: n
|
|
4291
|
-
} : i.reference, V = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)),
|
|
4291
|
+
} : i.reference, V = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), U = await (o.isElement == null ? void 0 : o.isElement(V)) ? await (o.getScale == null ? void 0 : o.getScale(V)) || {
|
|
4292
4292
|
x: 1,
|
|
4293
4293
|
y: 1
|
|
4294
4294
|
} : {
|
|
4295
4295
|
x: 1,
|
|
4296
4296
|
y: 1
|
|
4297
4297
|
}, F = Jt(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4298
|
-
rect:
|
|
4298
|
+
rect: y,
|
|
4299
4299
|
offsetParent: V,
|
|
4300
4300
|
strategy: r
|
|
4301
|
-
}) :
|
|
4301
|
+
}) : y);
|
|
4302
4302
|
return {
|
|
4303
|
-
top: (
|
|
4304
|
-
bottom: (F.bottom -
|
|
4305
|
-
left: (
|
|
4306
|
-
right: (F.right -
|
|
4303
|
+
top: (_.top - F.top + $.top) / U.y,
|
|
4304
|
+
bottom: (F.bottom - _.bottom + $.bottom) / U.y,
|
|
4305
|
+
left: (_.left - F.left + $.left) / U.x,
|
|
4306
|
+
right: (F.right - _.right + $.right) / U.x
|
|
4307
4307
|
};
|
|
4308
4308
|
}
|
|
4309
4309
|
const Q3 = function(a) {
|
|
@@ -4323,18 +4323,18 @@ const Q3 = function(a) {
|
|
|
4323
4323
|
mainAxis: u = !0,
|
|
4324
4324
|
crossAxis: f = !0,
|
|
4325
4325
|
fallbackPlacements: p,
|
|
4326
|
-
fallbackStrategy:
|
|
4327
|
-
fallbackAxisSideDirection:
|
|
4328
|
-
flipAlignment:
|
|
4326
|
+
fallbackStrategy: C = "bestFit",
|
|
4327
|
+
fallbackAxisSideDirection: $ = "none",
|
|
4328
|
+
flipAlignment: M = !0,
|
|
4329
4329
|
...A
|
|
4330
4330
|
} = L1(a, e);
|
|
4331
4331
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
4332
4332
|
return {};
|
|
4333
|
-
const
|
|
4334
|
-
!p &&
|
|
4335
|
-
const F = [l, ...
|
|
4333
|
+
const _ = ht(n), y = ht(l) === l, V = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), U = p || (y || !M ? [Qt(l)] : z3(l));
|
|
4334
|
+
!p && $ !== "none" && U.push(...Y3(l, M, $, V));
|
|
4335
|
+
const F = [l, ...U], H = await Aa(e, A), O = [];
|
|
4336
4336
|
let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
4337
|
-
if (u && O.push(H[
|
|
4337
|
+
if (u && O.push(H[_]), f) {
|
|
4338
4338
|
const T = W3(n, i, V);
|
|
4339
4339
|
O.push(H[T[0]], H[T[1]]);
|
|
4340
4340
|
}
|
|
@@ -4356,10 +4356,10 @@ const Q3 = function(a) {
|
|
|
4356
4356
|
};
|
|
4357
4357
|
let le = (ie = z.filter((ae) => ae.overflows[0] <= 0).sort((ae, ue) => ae.overflows[1] - ue.overflows[1])[0]) == null ? void 0 : ie.placement;
|
|
4358
4358
|
if (!le)
|
|
4359
|
-
switch (
|
|
4359
|
+
switch (C) {
|
|
4360
4360
|
case "bestFit": {
|
|
4361
|
-
var
|
|
4362
|
-
const ae = (
|
|
4361
|
+
var b;
|
|
4362
|
+
const ae = (b = z.map((ue) => [ue.placement, ue.overflows.filter((se) => se > 0).reduce((se, E) => se + E, 0)]).sort((ue, se) => ue[1] - se[1])[0]) == null ? void 0 : b[0];
|
|
4363
4363
|
ae && (le = ae);
|
|
4364
4364
|
break;
|
|
4365
4365
|
}
|
|
@@ -4393,30 +4393,30 @@ const Q3 = function(a) {
|
|
|
4393
4393
|
...l
|
|
4394
4394
|
} = L1(a, e), r = await Aa(e, l), c = ht(t), u = u1(t), f = V1(t) === "y", {
|
|
4395
4395
|
width: p,
|
|
4396
|
-
height:
|
|
4396
|
+
height: C
|
|
4397
4397
|
} = s.floating;
|
|
4398
|
-
let
|
|
4399
|
-
c === "top" || c === "bottom" ? (
|
|
4400
|
-
const A =
|
|
4401
|
-
let V = A,
|
|
4398
|
+
let $, M;
|
|
4399
|
+
c === "top" || c === "bottom" ? ($ = c, M = u === (await (n.isRTL == null ? void 0 : n.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (M = c, $ = u === "end" ? "top" : "bottom");
|
|
4400
|
+
const A = C - r[$], _ = p - r[M], y = !e.middlewareData.shift;
|
|
4401
|
+
let V = A, U = _;
|
|
4402
4402
|
if (f) {
|
|
4403
4403
|
const H = p - r.left - r.right;
|
|
4404
|
-
|
|
4404
|
+
U = u || y ? Lt(_, H) : H;
|
|
4405
4405
|
} else {
|
|
4406
|
-
const H =
|
|
4407
|
-
V = u ||
|
|
4406
|
+
const H = C - r.top - r.bottom;
|
|
4407
|
+
V = u || y ? Lt(A, H) : H;
|
|
4408
4408
|
}
|
|
4409
|
-
if (
|
|
4409
|
+
if (y && !u) {
|
|
4410
4410
|
const H = ke(r.left, 0), O = ke(r.right, 0), z = ke(r.top, 0), K = ke(r.bottom, 0);
|
|
4411
|
-
f ?
|
|
4411
|
+
f ? U = p - 2 * (H !== 0 || O !== 0 ? H + O : ke(r.left, r.right)) : V = C - 2 * (z !== 0 || K !== 0 ? z + K : ke(r.top, r.bottom));
|
|
4412
4412
|
}
|
|
4413
4413
|
await i({
|
|
4414
4414
|
...e,
|
|
4415
|
-
availableWidth:
|
|
4415
|
+
availableWidth: U,
|
|
4416
4416
|
availableHeight: V
|
|
4417
4417
|
});
|
|
4418
4418
|
const F = await n.getDimensions(o.floating);
|
|
4419
|
-
return p !== F.width ||
|
|
4419
|
+
return p !== F.width || C !== F.height ? {
|
|
4420
4420
|
reset: {
|
|
4421
4421
|
rects: !0
|
|
4422
4422
|
}
|
|
@@ -4559,11 +4559,11 @@ function Je(a, e, t, s) {
|
|
|
4559
4559
|
const l = n0(o, t, s) ? Ia(o) : Ye(0);
|
|
4560
4560
|
let r = (n.left + l.x) / i.x, c = (n.top + l.y) / i.y, u = n.width / i.x, f = n.height / i.y;
|
|
4561
4561
|
if (o) {
|
|
4562
|
-
const p = we(o),
|
|
4563
|
-
let
|
|
4564
|
-
for (;
|
|
4565
|
-
const
|
|
4566
|
-
r *=
|
|
4562
|
+
const p = we(o), C = s && Ue(s) ? we(s) : s;
|
|
4563
|
+
let $ = p.frameElement;
|
|
4564
|
+
for (; $ && s && C !== p; ) {
|
|
4565
|
+
const M = ft($), A = $.getBoundingClientRect(), _ = Se($), y = A.left + ($.clientLeft + parseFloat(_.paddingLeft)) * M.x, V = A.top + ($.clientTop + parseFloat(_.paddingTop)) * M.y;
|
|
4566
|
+
r *= M.x, c *= M.y, u *= M.x, f *= M.y, r += y, c += V, $ = we($).frameElement;
|
|
4567
4567
|
}
|
|
4568
4568
|
}
|
|
4569
4569
|
return Jt({
|
|
@@ -4774,12 +4774,12 @@ function m0(a, e) {
|
|
|
4774
4774
|
} = a.getBoundingClientRect();
|
|
4775
4775
|
if (l || e(), !f || !p)
|
|
4776
4776
|
return;
|
|
4777
|
-
const
|
|
4778
|
-
rootMargin: -
|
|
4777
|
+
const C = xt(u), $ = xt(n.clientWidth - (c + f)), M = xt(n.clientHeight - (u + p)), A = xt(c), y = {
|
|
4778
|
+
rootMargin: -C + "px " + -$ + "px " + -M + "px " + -A + "px",
|
|
4779
4779
|
threshold: ke(0, Lt(1, r)) || 1
|
|
4780
4780
|
};
|
|
4781
4781
|
let V = !0;
|
|
4782
|
-
function
|
|
4782
|
+
function U(F) {
|
|
4783
4783
|
const H = F[0].intersectionRatio;
|
|
4784
4784
|
if (H !== r) {
|
|
4785
4785
|
if (!V)
|
|
@@ -4791,13 +4791,13 @@ function m0(a, e) {
|
|
|
4791
4791
|
V = !1;
|
|
4792
4792
|
}
|
|
4793
4793
|
try {
|
|
4794
|
-
t = new IntersectionObserver(
|
|
4795
|
-
...
|
|
4794
|
+
t = new IntersectionObserver(U, {
|
|
4795
|
+
...y,
|
|
4796
4796
|
// Handle <iframe>s
|
|
4797
4797
|
root: n.ownerDocument
|
|
4798
4798
|
});
|
|
4799
4799
|
} catch {
|
|
4800
|
-
t = new IntersectionObserver(
|
|
4800
|
+
t = new IntersectionObserver(U, y);
|
|
4801
4801
|
}
|
|
4802
4802
|
t.observe(a);
|
|
4803
4803
|
}
|
|
@@ -4812,29 +4812,29 @@ function C0(a, e, t, s) {
|
|
|
4812
4812
|
layoutShift: l = typeof IntersectionObserver == "function",
|
|
4813
4813
|
animationFrame: r = !1
|
|
4814
4814
|
} = s, c = P1(a), u = n || o ? [...c ? Vt(c) : [], ...Vt(e)] : [];
|
|
4815
|
-
u.forEach((
|
|
4816
|
-
n &&
|
|
4815
|
+
u.forEach((_) => {
|
|
4816
|
+
n && _.addEventListener("scroll", t, {
|
|
4817
4817
|
passive: !0
|
|
4818
|
-
}), o &&
|
|
4818
|
+
}), o && _.addEventListener("resize", t);
|
|
4819
4819
|
});
|
|
4820
4820
|
const f = c && l ? m0(c, t) : null;
|
|
4821
|
-
let p = -1,
|
|
4822
|
-
i && (
|
|
4823
|
-
let [
|
|
4824
|
-
|
|
4825
|
-
|
|
4821
|
+
let p = -1, C = null;
|
|
4822
|
+
i && (C = new ResizeObserver((_) => {
|
|
4823
|
+
let [y] = _;
|
|
4824
|
+
y && y.target === c && C && (C.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
4825
|
+
C && C.observe(e);
|
|
4826
4826
|
})), t();
|
|
4827
|
-
}), c && !r &&
|
|
4828
|
-
let
|
|
4827
|
+
}), c && !r && C.observe(c), C.observe(e));
|
|
4828
|
+
let $, M = r ? Je(a) : null;
|
|
4829
4829
|
r && A();
|
|
4830
4830
|
function A() {
|
|
4831
|
-
const
|
|
4832
|
-
|
|
4831
|
+
const _ = Je(a);
|
|
4832
|
+
M && (_.x !== M.x || _.y !== M.y || _.width !== M.width || _.height !== M.height) && t(), M = _, $ = requestAnimationFrame(A);
|
|
4833
4833
|
}
|
|
4834
4834
|
return t(), () => {
|
|
4835
|
-
u.forEach((
|
|
4836
|
-
n &&
|
|
4837
|
-
}), f && f(),
|
|
4835
|
+
u.forEach((_) => {
|
|
4836
|
+
n && _.removeEventListener("scroll", t), o && _.removeEventListener("resize", t);
|
|
4837
|
+
}), f && f(), C && C.disconnect(), C = null, r && cancelAnimationFrame($);
|
|
4838
4838
|
};
|
|
4839
4839
|
}
|
|
4840
4840
|
const _0 = (a, e, t) => {
|
|
@@ -4874,9 +4874,9 @@ const _0 = (a, e, t) => {
|
|
|
4874
4874
|
transform: "none",
|
|
4875
4875
|
marginTop: 0
|
|
4876
4876
|
}), i.appendChild(p), a.multiselect.value.handleFocusOut = r;
|
|
4877
|
-
const
|
|
4877
|
+
const $ = C0(t.value, s.value, u);
|
|
4878
4878
|
l.value = () => {
|
|
4879
|
-
s.value && i.contains(s.value) && i.removeChild(s.value),
|
|
4879
|
+
s.value && i.contains(s.value) && i.removeChild(s.value), $();
|
|
4880
4880
|
};
|
|
4881
4881
|
}
|
|
4882
4882
|
function u() {
|
|
@@ -4889,10 +4889,10 @@ const _0 = (a, e, t) => {
|
|
|
4889
4889
|
fallbackPlacements: ["top-start", "bottom-start"]
|
|
4890
4890
|
}),
|
|
4891
4891
|
J3({
|
|
4892
|
-
apply({ availableWidth: f, availableHeight: p, elements:
|
|
4893
|
-
Object.assign(
|
|
4892
|
+
apply({ availableWidth: f, availableHeight: p, elements: C, rects: $ }) {
|
|
4893
|
+
Object.assign(C.floating.style, {
|
|
4894
4894
|
minHeight: `${n.value}px`,
|
|
4895
|
-
width: `${
|
|
4895
|
+
width: `${$.reference.width}px`,
|
|
4896
4896
|
maxWidth: `${f}px`,
|
|
4897
4897
|
maxHeight: `${p}px`
|
|
4898
4898
|
// These numbers are pleasant defaults/control for screen size.
|
|
@@ -4921,15 +4921,15 @@ function Le(a) {
|
|
|
4921
4921
|
function y0(a, e, t) {
|
|
4922
4922
|
const { object: s, valueProp: n, mode: o } = $e(a), i = tt().proxy, l = t.iv, r = (f, p = !0) => {
|
|
4923
4923
|
l.value = u(f);
|
|
4924
|
-
const
|
|
4925
|
-
e.emit("change",
|
|
4924
|
+
const C = c(f);
|
|
4925
|
+
e.emit("change", C, i), p && (e.emit("input", C), e.emit("update:modelValue", C));
|
|
4926
4926
|
}, c = (f) => s.value || Le(f) ? f : Array.isArray(f) ? f.map((p) => p[n.value]) : f[n.value], u = (f) => Le(f) ? o.value === "single" ? {} : [] : f;
|
|
4927
4927
|
return {
|
|
4928
4928
|
update: r
|
|
4929
4929
|
};
|
|
4930
4930
|
}
|
|
4931
4931
|
function b0(a, e) {
|
|
4932
|
-
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = Q(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r =
|
|
4932
|
+
const { value: t, modelValue: s, mode: n, valueProp: o } = $e(a), i = Q(n.value !== "single" ? [] : {}), l = s && s.value !== void 0 ? s : t, r = w(() => n.value === "single" ? i.value[o.value] : i.value.map((u) => u[o.value])), c = w(() => n.value !== "single" ? i.value.map((u) => u[o.value]).join(",") : i.value[o.value]);
|
|
4933
4933
|
return {
|
|
4934
4934
|
iv: i,
|
|
4935
4935
|
internalValue: i,
|
|
@@ -4942,23 +4942,23 @@ function b0(a, e) {
|
|
|
4942
4942
|
function w0(a, e, t) {
|
|
4943
4943
|
const { regex: s } = $e(a), n = tt().proxy, o = t.isOpen, i = t.open, l = Q(null), r = Q(null), c = () => {
|
|
4944
4944
|
l.value = "";
|
|
4945
|
-
}, u = (
|
|
4946
|
-
l.value =
|
|
4947
|
-
}, f = (
|
|
4945
|
+
}, u = (C) => {
|
|
4946
|
+
l.value = C.target.value;
|
|
4947
|
+
}, f = (C) => {
|
|
4948
4948
|
if (s && s.value) {
|
|
4949
|
-
let
|
|
4950
|
-
typeof
|
|
4949
|
+
let $ = s.value;
|
|
4950
|
+
typeof $ == "string" && ($ = new RegExp($)), C.key.match($) || C.preventDefault();
|
|
4951
4951
|
}
|
|
4952
|
-
}, p = (
|
|
4952
|
+
}, p = (C) => {
|
|
4953
4953
|
if (s && s.value) {
|
|
4954
|
-
let
|
|
4954
|
+
let M = (C.clipboardData || /* istanbul ignore next */
|
|
4955
4955
|
window.clipboardData).getData("Text"), A = s.value;
|
|
4956
|
-
typeof A == "string" && (A = new RegExp(A)),
|
|
4956
|
+
typeof A == "string" && (A = new RegExp(A)), M.split("").every((_) => !!_.match(A)) || C.preventDefault();
|
|
4957
4957
|
}
|
|
4958
|
-
e.emit("paste",
|
|
4958
|
+
e.emit("paste", C, n);
|
|
4959
4959
|
};
|
|
4960
|
-
return re(l, (
|
|
4961
|
-
!o.value &&
|
|
4960
|
+
return re(l, (C) => {
|
|
4961
|
+
!o.value && C && i(), e.emit("search-change", C, n);
|
|
4962
4962
|
}), {
|
|
4963
4963
|
search: l,
|
|
4964
4964
|
input: r,
|
|
@@ -5004,21 +5004,21 @@ function A0(a, e, t) {
|
|
|
5004
5004
|
label: u,
|
|
5005
5005
|
appendNewTag: f,
|
|
5006
5006
|
appendNewOption: p,
|
|
5007
|
-
multipleLabel:
|
|
5008
|
-
object:
|
|
5009
|
-
loading:
|
|
5007
|
+
multipleLabel: C,
|
|
5008
|
+
object: $,
|
|
5009
|
+
loading: M,
|
|
5010
5010
|
delay: A,
|
|
5011
|
-
resolveOnLoad:
|
|
5012
|
-
minChars:
|
|
5011
|
+
resolveOnLoad: _,
|
|
5012
|
+
minChars: y,
|
|
5013
5013
|
filterResults: V,
|
|
5014
|
-
clearOnSearch:
|
|
5014
|
+
clearOnSearch: U,
|
|
5015
5015
|
clearOnSelect: F,
|
|
5016
5016
|
valueProp: H,
|
|
5017
5017
|
allowAbsent: O,
|
|
5018
5018
|
groupLabel: z,
|
|
5019
5019
|
canDeselect: K,
|
|
5020
5020
|
max: ie,
|
|
5021
|
-
strict:
|
|
5021
|
+
strict: b,
|
|
5022
5022
|
closeOnSelect: T,
|
|
5023
5023
|
closeOnDeselect: P,
|
|
5024
5024
|
groups: le,
|
|
@@ -5027,52 +5027,52 @@ function A0(a, e, t) {
|
|
|
5027
5027
|
groupOptions: se,
|
|
5028
5028
|
groupHideEmpty: E,
|
|
5029
5029
|
groupSelect: L,
|
|
5030
|
-
onCreate:
|
|
5030
|
+
onCreate: g,
|
|
5031
5031
|
disabledProp: N,
|
|
5032
5032
|
searchStart: fe,
|
|
5033
5033
|
searchFilter: te
|
|
5034
|
-
} = $e(a), J = tt().proxy, x = t.iv, I = t.ev, W = t.search, Ce = t.clearSearch, Pe = t.update, Da = t.pointer, nt = t.clearPointer, Pa = t.focus, Ba = t.deactivate, st = t.close, Na = t.localize, gt = Q([]), Ze = Q([]), Ie = Q(!1), f1 = Q(null), v1 = Q(ue.value && i.value === -1 ? 10 : i.value), U1 =
|
|
5034
|
+
} = $e(a), J = tt().proxy, x = t.iv, I = t.ev, W = t.search, Ce = t.clearSearch, Pe = t.update, Da = t.pointer, nt = t.clearPointer, Pa = t.focus, Ba = t.deactivate, st = t.close, Na = t.localize, gt = Q([]), Ze = Q([]), Ie = Q(!1), f1 = Q(null), v1 = Q(ue.value && i.value === -1 ? 10 : i.value), U1 = w(() => r.value || c.value || !1), Ra = w(() => f.value !== void 0 ? f.value : p.value !== void 0 ? p.value : !0), Fe = w(() => {
|
|
5035
5035
|
if (le.value) {
|
|
5036
|
-
let
|
|
5036
|
+
let m = Ut.value || /* istanbul ignore next */
|
|
5037
5037
|
[], D = [];
|
|
5038
|
-
return
|
|
5038
|
+
return m.forEach((ne) => {
|
|
5039
5039
|
g1(ne[se.value]).forEach((pe) => {
|
|
5040
5040
|
D.push(Object.assign({}, pe, ne[N.value] ? { [N.value]: !0 } : {}));
|
|
5041
5041
|
});
|
|
5042
5042
|
}), D;
|
|
5043
5043
|
} else {
|
|
5044
|
-
let
|
|
5044
|
+
let m = g1(Ze.value || /* istanbul ignore next */
|
|
5045
5045
|
[]);
|
|
5046
|
-
return gt.value.length && (
|
|
5046
|
+
return gt.value.length && (m = m.concat(gt.value)), m;
|
|
5047
5047
|
}
|
|
5048
|
-
}), j1 =
|
|
5049
|
-
let
|
|
5050
|
-
return ae.value && (
|
|
5051
|
-
}), yt =
|
|
5052
|
-
let
|
|
5053
|
-
return v1.value > 0 && (
|
|
5054
|
-
}), Ut =
|
|
5048
|
+
}), j1 = w(() => {
|
|
5049
|
+
let m = Fe.value;
|
|
5050
|
+
return ae.value && (m = m.reverse()), it.value.length && (m = it.value.concat(m)), _1(m);
|
|
5051
|
+
}), yt = w(() => {
|
|
5052
|
+
let m = j1.value;
|
|
5053
|
+
return v1.value > 0 && (m = m.slice(0, v1.value)), m;
|
|
5054
|
+
}), Ut = w(() => {
|
|
5055
5055
|
if (!le.value)
|
|
5056
5056
|
return [];
|
|
5057
|
-
let
|
|
5057
|
+
let m = [], D = Ze.value || /* istanbul ignore next */
|
|
5058
5058
|
[];
|
|
5059
|
-
return gt.value.length &&
|
|
5059
|
+
return gt.value.length && m.push({
|
|
5060
5060
|
[z.value]: " ",
|
|
5061
5061
|
[se.value]: [...gt.value],
|
|
5062
5062
|
__CREATE__: !0
|
|
5063
|
-
}),
|
|
5064
|
-
}), Ua =
|
|
5065
|
-
let
|
|
5066
|
-
return it.value.length && (
|
|
5063
|
+
}), m.concat(D);
|
|
5064
|
+
}), Ua = w(() => {
|
|
5065
|
+
let m = [...Ut.value].map((D) => ({ ...D }));
|
|
5066
|
+
return it.value.length && (m[0] && m[0].__CREATE__ ? m[0][se.value] = [...it.value, ...m[0][se.value]] : m = [{
|
|
5067
5067
|
[z.value]: " ",
|
|
5068
5068
|
[se.value]: [...it.value],
|
|
5069
5069
|
__CREATE__: !0
|
|
5070
|
-
}].concat(
|
|
5071
|
-
}), Z1 =
|
|
5070
|
+
}].concat(m)), m;
|
|
5071
|
+
}), Z1 = w(() => {
|
|
5072
5072
|
if (!le.value)
|
|
5073
5073
|
return [];
|
|
5074
|
-
let
|
|
5075
|
-
return tn((
|
|
5074
|
+
let m = Ua.value;
|
|
5075
|
+
return tn((m || /* istanbul ignore next */
|
|
5076
5076
|
[]).map((D, ne) => {
|
|
5077
5077
|
const pe = g1(D[se.value]);
|
|
5078
5078
|
return {
|
|
@@ -5083,7 +5083,7 @@ function A0(a, e, t) {
|
|
|
5083
5083
|
__VISIBLE__: _1(pe).map((bt) => Object.assign({}, bt, D[N.value] ? { [N.value]: !0 } : {}))
|
|
5084
5084
|
};
|
|
5085
5085
|
}));
|
|
5086
|
-
}), p1 =
|
|
5086
|
+
}), p1 = w(() => {
|
|
5087
5087
|
switch (n.value) {
|
|
5088
5088
|
case "single":
|
|
5089
5089
|
return !Le(x.value[H.value]);
|
|
@@ -5091,12 +5091,12 @@ function A0(a, e, t) {
|
|
|
5091
5091
|
case "tags":
|
|
5092
5092
|
return !Le(x.value) && x.value.length > 0;
|
|
5093
5093
|
}
|
|
5094
|
-
}), ja =
|
|
5094
|
+
}), ja = w(() => C !== void 0 && C.value !== void 0 ? C.value(x.value, J) : x.value && x.value.length > 1 ? `${x.value.length} options selected` : "1 option selected"), Za = w(() => !Fe.value.length && !Ie.value && !it.value.length), Fa = w(() => Fe.value.length > 0 && yt.value.length == 0 && (W.value && le.value || !le.value)), it = w(() => U1.value === !1 || !W.value ? [] : Qa(W.value) !== -1 ? [] : [{
|
|
5095
5095
|
[H.value]: W.value,
|
|
5096
5096
|
[Oe.value]: W.value,
|
|
5097
5097
|
[u.value]: W.value,
|
|
5098
5098
|
__CREATE__: !0
|
|
5099
|
-
}]), Oe =
|
|
5099
|
+
}]), Oe = w(() => o.value || u.value), qa = w(() => {
|
|
5100
5100
|
switch (n.value) {
|
|
5101
5101
|
case "single":
|
|
5102
5102
|
return null;
|
|
@@ -5104,134 +5104,134 @@ function A0(a, e, t) {
|
|
|
5104
5104
|
case "tags":
|
|
5105
5105
|
return [];
|
|
5106
5106
|
}
|
|
5107
|
-
}), Wa =
|
|
5108
|
-
switch (typeof
|
|
5107
|
+
}), Wa = w(() => M.value || Ie.value), ot = (m) => {
|
|
5108
|
+
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5109
5109
|
case "single":
|
|
5110
|
-
Pe(
|
|
5110
|
+
Pe(m);
|
|
5111
5111
|
break;
|
|
5112
5112
|
case "multiple":
|
|
5113
5113
|
case "tags":
|
|
5114
|
-
Pe(x.value.concat(
|
|
5114
|
+
Pe(x.value.concat(m));
|
|
5115
5115
|
break;
|
|
5116
5116
|
}
|
|
5117
|
-
e.emit("select", F1(
|
|
5118
|
-
}, lt = (
|
|
5119
|
-
switch (typeof
|
|
5117
|
+
e.emit("select", F1(m), m, J);
|
|
5118
|
+
}, lt = (m) => {
|
|
5119
|
+
switch (typeof m != "object" && (m = Ne(m)), n.value) {
|
|
5120
5120
|
case "single":
|
|
5121
5121
|
W1();
|
|
5122
5122
|
break;
|
|
5123
5123
|
case "tags":
|
|
5124
5124
|
case "multiple":
|
|
5125
|
-
Pe(Array.isArray(
|
|
5125
|
+
Pe(Array.isArray(m) ? x.value.filter((D) => m.map((ne) => ne[H.value]).indexOf(D[H.value]) === -1) : x.value.filter((D) => D[H.value] != m[H.value]));
|
|
5126
5126
|
break;
|
|
5127
5127
|
}
|
|
5128
|
-
e.emit("deselect", F1(
|
|
5129
|
-
}, F1 = (
|
|
5130
|
-
lt(
|
|
5131
|
-
}, za = (
|
|
5128
|
+
e.emit("deselect", F1(m), m, J);
|
|
5129
|
+
}, F1 = (m) => $.value ? m : m[H.value], q1 = (m) => {
|
|
5130
|
+
lt(m);
|
|
5131
|
+
}, za = (m, D) => {
|
|
5132
5132
|
if (D.button !== 0) {
|
|
5133
5133
|
D.preventDefault();
|
|
5134
5134
|
return;
|
|
5135
5135
|
}
|
|
5136
|
-
q1(
|
|
5136
|
+
q1(m);
|
|
5137
5137
|
}, W1 = () => {
|
|
5138
5138
|
e.emit("clear", J), Pe(qa.value);
|
|
5139
|
-
}, Be = (
|
|
5140
|
-
if (
|
|
5141
|
-
return n.value === "single" ? !1 : Xa(
|
|
5139
|
+
}, Be = (m) => {
|
|
5140
|
+
if (m.group !== void 0)
|
|
5141
|
+
return n.value === "single" ? !1 : Xa(m[se.value]) && m[se.value].length;
|
|
5142
5142
|
switch (n.value) {
|
|
5143
5143
|
case "single":
|
|
5144
|
-
return !Le(x.value) && x.value[H.value] ==
|
|
5144
|
+
return !Le(x.value) && x.value[H.value] == m[H.value];
|
|
5145
5145
|
case "tags":
|
|
5146
5146
|
case "multiple":
|
|
5147
|
-
return !Le(x.value) && x.value.map((D) => D[H.value]).indexOf(
|
|
5147
|
+
return !Le(x.value) && x.value.map((D) => D[H.value]).indexOf(m[H.value]) !== -1;
|
|
5148
5148
|
}
|
|
5149
|
-
}, h1 = (
|
|
5150
|
-
if (!h1(
|
|
5151
|
-
if (
|
|
5152
|
-
Ie.value = !0,
|
|
5149
|
+
}, h1 = (m) => m[N.value] === !0, m1 = () => ie === void 0 || ie.value === -1 || !p1.value && ie.value > 0 ? !1 : x.value.length >= ie.value, xa = (m) => {
|
|
5150
|
+
if (!h1(m)) {
|
|
5151
|
+
if (g && g.value && !Be(m) && m.__CREATE__ && (m = { ...m }, delete m.__CREATE__, m = g.value(m, J), m instanceof Promise)) {
|
|
5152
|
+
Ie.value = !0, m.then((D) => {
|
|
5153
5153
|
Ie.value = !1, z1(D);
|
|
5154
5154
|
});
|
|
5155
5155
|
return;
|
|
5156
5156
|
}
|
|
5157
|
-
z1(
|
|
5157
|
+
z1(m);
|
|
5158
5158
|
}
|
|
5159
|
-
}, z1 = (
|
|
5160
|
-
switch (
|
|
5159
|
+
}, z1 = (m) => {
|
|
5160
|
+
switch (m.__CREATE__ && (m = { ...m }, delete m.__CREATE__), n.value) {
|
|
5161
5161
|
case "single":
|
|
5162
|
-
if (
|
|
5163
|
-
K.value && lt(
|
|
5162
|
+
if (m && Be(m)) {
|
|
5163
|
+
K.value && lt(m), P.value && (nt(), st());
|
|
5164
5164
|
return;
|
|
5165
5165
|
}
|
|
5166
|
-
|
|
5166
|
+
m && C1(m), F.value && Ce(), T.value && (nt(), st()), m && ot(m);
|
|
5167
5167
|
break;
|
|
5168
5168
|
case "multiple":
|
|
5169
|
-
if (
|
|
5170
|
-
lt(
|
|
5169
|
+
if (m && Be(m)) {
|
|
5170
|
+
lt(m), P.value && (nt(), st());
|
|
5171
5171
|
return;
|
|
5172
5172
|
}
|
|
5173
5173
|
if (m1()) {
|
|
5174
5174
|
e.emit("max", J);
|
|
5175
5175
|
return;
|
|
5176
5176
|
}
|
|
5177
|
-
|
|
5177
|
+
m && (C1(m), ot(m)), F.value && Ce(), l.value && nt(), T.value && st();
|
|
5178
5178
|
break;
|
|
5179
5179
|
case "tags":
|
|
5180
|
-
if (
|
|
5181
|
-
lt(
|
|
5180
|
+
if (m && Be(m)) {
|
|
5181
|
+
lt(m), P.value && (nt(), st());
|
|
5182
5182
|
return;
|
|
5183
5183
|
}
|
|
5184
5184
|
if (m1()) {
|
|
5185
5185
|
e.emit("max", J);
|
|
5186
5186
|
return;
|
|
5187
5187
|
}
|
|
5188
|
-
|
|
5188
|
+
m && C1(m), F.value && Ce(), m && ot(m), l.value && nt(), T.value && st();
|
|
5189
5189
|
break;
|
|
5190
5190
|
}
|
|
5191
5191
|
T.value || Pa();
|
|
5192
|
-
}, Ya = (
|
|
5193
|
-
if (!(h1(
|
|
5192
|
+
}, Ya = (m) => {
|
|
5193
|
+
if (!(h1(m) || n.value === "single" || !L.value)) {
|
|
5194
5194
|
switch (n.value) {
|
|
5195
5195
|
case "multiple":
|
|
5196
5196
|
case "tags":
|
|
5197
|
-
Ga(
|
|
5198
|
-
|
|
5197
|
+
Ga(m[se.value]) ? lt(m[se.value]) : ot(
|
|
5198
|
+
m[se.value].filter((D) => x.value.map((ne) => ne[H.value]).indexOf(D[H.value]) === -1).filter((D) => !D[N.value]).filter((D, ne) => x.value.length + 1 + ne <= ie.value || ie.value === -1)
|
|
5199
5199
|
);
|
|
5200
5200
|
break;
|
|
5201
5201
|
}
|
|
5202
5202
|
T.value && Ba();
|
|
5203
5203
|
}
|
|
5204
|
-
}, C1 = (
|
|
5205
|
-
Ne(
|
|
5204
|
+
}, C1 = (m) => {
|
|
5205
|
+
Ne(m[H.value]) === void 0 && U1.value && (e.emit("tag", m[H.value], J), e.emit("option", m[H.value], J), e.emit("create", m[H.value], J), Ra.value && en(m), Ce());
|
|
5206
5206
|
}, Ka = () => {
|
|
5207
|
-
n.value !== "single" && ot(yt.value.filter((
|
|
5208
|
-
}, Ga = (
|
|
5209
|
-
parseInt(
|
|
5210
|
-
), Ja = (
|
|
5211
|
-
gt.value.push(
|
|
5212
|
-
}, tn = (
|
|
5207
|
+
n.value !== "single" && ot(yt.value.filter((m) => !m.disabled && !Be(m)));
|
|
5208
|
+
}, Ga = (m) => m.find((D) => !Be(D) && !D[N.value]) === void 0, Xa = (m) => m.find((D) => !Be(D)) === void 0, Ne = (m) => Fe.value[Fe.value.map((D) => String(D[H.value])).indexOf(String(m))], Qa = (m, D = !0) => Fe.value.map((ne) => parseInt(ne[Oe.value]) == ne[Oe.value] ? parseInt(ne[Oe.value]) : ne[Oe.value]).indexOf(
|
|
5209
|
+
parseInt(m) == m ? parseInt(m) : m
|
|
5210
|
+
), Ja = (m) => ["tags", "multiple"].indexOf(n.value) !== -1 && l.value && Be(m), en = (m) => {
|
|
5211
|
+
gt.value.push(m);
|
|
5212
|
+
}, tn = (m) => E.value ? m.filter(
|
|
5213
5213
|
(D) => W.value ? D.__VISIBLE__.length : D[se.value].length
|
|
5214
|
-
) :
|
|
5215
|
-
let ne =
|
|
5214
|
+
) : m.filter((D) => W.value ? D.__VISIBLE__.length : !0), _1 = (m, D = !0) => {
|
|
5215
|
+
let ne = m;
|
|
5216
5216
|
if (W.value && V.value) {
|
|
5217
5217
|
let pe = te.value;
|
|
5218
5218
|
pe || (pe = (bt, H4) => {
|
|
5219
|
-
let Y1 = $1(Na(bt[Oe.value]),
|
|
5220
|
-
return fe.value ? Y1.startsWith($1(W.value,
|
|
5219
|
+
let Y1 = $1(Na(bt[Oe.value]), b.value);
|
|
5220
|
+
return fe.value ? Y1.startsWith($1(W.value, b.value)) : Y1.indexOf($1(W.value, b.value)) !== -1;
|
|
5221
5221
|
}), ne = ne.filter(pe);
|
|
5222
5222
|
}
|
|
5223
5223
|
return l.value && D && (ne = ne.filter((pe) => !Ja(pe))), ne;
|
|
5224
|
-
}, g1 = (
|
|
5225
|
-
let D =
|
|
5224
|
+
}, g1 = (m) => {
|
|
5225
|
+
let D = m;
|
|
5226
5226
|
return M0(D) && (D = Object.keys(D).map((ne) => {
|
|
5227
5227
|
let pe = D[ne];
|
|
5228
5228
|
return { [H.value]: ne, [Oe.value]: pe, [u.value]: pe };
|
|
5229
5229
|
})), D = D.map((ne) => typeof ne == "object" ? ne : { [H.value]: ne, [Oe.value]: ne, [u.value]: ne }), D;
|
|
5230
5230
|
}, jt = () => {
|
|
5231
5231
|
Le(I.value) || (x.value = Ft(I.value));
|
|
5232
|
-
}, Zt = (
|
|
5232
|
+
}, Zt = (m) => (Ie.value = !0, new Promise((D, ne) => {
|
|
5233
5233
|
s.value(W.value, J).then((pe) => {
|
|
5234
|
-
Ze.value = pe || [], typeof
|
|
5234
|
+
Ze.value = pe || [], typeof m == "function" && m(pe), Ie.value = !1;
|
|
5235
5235
|
}).catch((pe) => {
|
|
5236
5236
|
console.error(pe), Ze.value = [], Ie.value = !1;
|
|
5237
5237
|
}).finally(() => {
|
|
@@ -5240,34 +5240,34 @@ function A0(a, e, t) {
|
|
|
5240
5240
|
})), y1 = () => {
|
|
5241
5241
|
if (p1.value)
|
|
5242
5242
|
if (n.value === "single") {
|
|
5243
|
-
let
|
|
5244
|
-
if (
|
|
5245
|
-
let D =
|
|
5246
|
-
x.value[u.value] = D,
|
|
5243
|
+
let m = Ne(x.value[H.value]);
|
|
5244
|
+
if (m !== void 0) {
|
|
5245
|
+
let D = m[u.value];
|
|
5246
|
+
x.value[u.value] = D, $.value && (I.value[u.value] = D);
|
|
5247
5247
|
}
|
|
5248
5248
|
} else
|
|
5249
|
-
x.value.forEach((
|
|
5249
|
+
x.value.forEach((m, D) => {
|
|
5250
5250
|
let ne = Ne(x.value[D][H.value]);
|
|
5251
5251
|
if (ne !== void 0) {
|
|
5252
5252
|
let pe = ne[u.value];
|
|
5253
|
-
x.value[D][u.value] = pe,
|
|
5253
|
+
x.value[D][u.value] = pe, $.value && (I.value[D][u.value] = pe);
|
|
5254
5254
|
}
|
|
5255
5255
|
});
|
|
5256
|
-
}, an = (
|
|
5257
|
-
Zt(
|
|
5258
|
-
}, Ft = (
|
|
5259
|
-
[u.value]:
|
|
5260
|
-
[H.value]:
|
|
5261
|
-
[Oe.value]:
|
|
5262
|
-
} : {}) :
|
|
5256
|
+
}, an = (m) => {
|
|
5257
|
+
Zt(m);
|
|
5258
|
+
}, Ft = (m) => Le(m) ? n.value === "single" ? {} : [] : $.value ? m : n.value === "single" ? Ne(m) || (O.value ? {
|
|
5259
|
+
[u.value]: m,
|
|
5260
|
+
[H.value]: m,
|
|
5261
|
+
[Oe.value]: m
|
|
5262
|
+
} : {}) : m.filter((D) => !!Ne(D) || O.value).map((D) => Ne(D) || {
|
|
5263
5263
|
[u.value]: D,
|
|
5264
5264
|
[H.value]: D,
|
|
5265
5265
|
[Oe.value]: D
|
|
5266
5266
|
}), x1 = () => {
|
|
5267
|
-
f1.value = re(W, (
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
(
|
|
5267
|
+
f1.value = re(W, (m) => {
|
|
5268
|
+
m.length < y.value || !m && y.value !== 0 || (Ie.value = !0, U.value && (Ze.value = []), setTimeout(() => {
|
|
5269
|
+
m == W.value && s.value(W.value, J).then((D) => {
|
|
5270
|
+
(m == W.value || !W.value) && (Ze.value = D, Da.value = yt.value.filter((ne) => ne[N.value] !== !0)[0] || null, Ie.value = !1);
|
|
5271
5271
|
}).catch(
|
|
5272
5272
|
/* istanbul ignore next */
|
|
5273
5273
|
(D) => {
|
|
@@ -5279,24 +5279,24 @@ function A0(a, e, t) {
|
|
|
5279
5279
|
};
|
|
5280
5280
|
if (n.value !== "single" && !Le(I.value) && !Array.isArray(I.value))
|
|
5281
5281
|
throw new Error(`v-model must be an array when using "${n.value}" mode`);
|
|
5282
|
-
return s && typeof s.value == "function" ?
|
|
5283
|
-
f1.value && f1.value(),
|
|
5284
|
-
}), re(I, (
|
|
5285
|
-
if (Le(
|
|
5286
|
-
Pe(Ft(
|
|
5282
|
+
return s && typeof s.value == "function" ? _.value ? Zt(jt) : $.value == !0 && jt() : (Ze.value = s.value, jt()), A.value > -1 && x1(), re(A, (m, D) => {
|
|
5283
|
+
f1.value && f1.value(), m >= 0 && x1();
|
|
5284
|
+
}), re(I, (m) => {
|
|
5285
|
+
if (Le(m)) {
|
|
5286
|
+
Pe(Ft(m), !1);
|
|
5287
5287
|
return;
|
|
5288
5288
|
}
|
|
5289
5289
|
switch (n.value) {
|
|
5290
5290
|
case "single":
|
|
5291
|
-
(
|
|
5291
|
+
($.value ? m[H.value] != x.value[H.value] : m != x.value[H.value]) && Pe(Ft(m), !1);
|
|
5292
5292
|
break;
|
|
5293
5293
|
case "multiple":
|
|
5294
5294
|
case "tags":
|
|
5295
|
-
k0(
|
|
5295
|
+
k0($.value ? m.map((D) => D[H.value]) : m, x.value.map((D) => D[H.value])) || Pe(Ft(m), !1);
|
|
5296
5296
|
break;
|
|
5297
5297
|
}
|
|
5298
|
-
}, { deep: !0 }), re(s, (
|
|
5299
|
-
typeof a.options == "function" ?
|
|
5298
|
+
}, { deep: !0 }), re(s, (m, D) => {
|
|
5299
|
+
typeof a.options == "function" ? _.value && (!D || m && m.toString() !== D.toString()) && Zt() : (Ze.value = a.options, Object.keys(x.value).length || jt(), y1());
|
|
5300
5300
|
}), re(u, y1), {
|
|
5301
5301
|
pfo: j1,
|
|
5302
5302
|
fo: yt,
|
|
@@ -5342,67 +5342,67 @@ function T0(a, e, t) {
|
|
|
5342
5342
|
groupSelect: c,
|
|
5343
5343
|
disabledProp: u,
|
|
5344
5344
|
groupOptions: f
|
|
5345
|
-
} = $e(a), p = t.fo,
|
|
5346
|
-
const I = K.value ?
|
|
5345
|
+
} = $e(a), p = t.fo, C = t.fg, $ = t.handleOptionClick, M = t.handleGroupClick, A = t.search, _ = t.pointer, y = t.setPointer, V = t.clearPointer, U = t.multiselect, F = t.isOpen, H = w(() => p.value.filter((I) => !I[u.value])), O = w(() => C.value.filter((I) => !I[u.value])), z = w(() => r.value !== "single" && c.value), K = w(() => _.value && _.value.group), ie = w(() => J(_.value)), b = w(() => {
|
|
5346
|
+
const I = K.value ? _.value : (
|
|
5347
5347
|
/* istanbul ignore next */
|
|
5348
|
-
J(
|
|
5348
|
+
J(_.value)
|
|
5349
5349
|
), W = O.value.map((Pe) => Pe[i.value]).indexOf(I[i.value]);
|
|
5350
5350
|
let Ce = O.value[W - 1];
|
|
5351
5351
|
return Ce === void 0 && (Ce = P.value), Ce;
|
|
5352
|
-
}), T =
|
|
5353
|
-
let I = O.value.map((W) => W.label).indexOf(K.value ?
|
|
5352
|
+
}), T = w(() => {
|
|
5353
|
+
let I = O.value.map((W) => W.label).indexOf(K.value ? _.value[i.value] : J(_.value)[i.value]) + 1;
|
|
5354
5354
|
return O.value.length <= I && (I = 0), O.value[I];
|
|
5355
|
-
}), P =
|
|
5355
|
+
}), P = w(() => [...O.value].slice(-1)[0]), le = w(() => _.value.__VISIBLE__.filter((I) => !I[u.value])[0]), ae = w(() => {
|
|
5356
5356
|
const I = ie.value.__VISIBLE__.filter((W) => !W[u.value]);
|
|
5357
|
-
return I[I.map((W) => W[s.value]).indexOf(
|
|
5358
|
-
}), ue =
|
|
5359
|
-
const I = J(
|
|
5360
|
-
return I[I.map((W) => W[s.value]).indexOf(
|
|
5361
|
-
}), se =
|
|
5362
|
-
|
|
5357
|
+
return I[I.map((W) => W[s.value]).indexOf(_.value[s.value]) - 1];
|
|
5358
|
+
}), ue = w(() => {
|
|
5359
|
+
const I = J(_.value).__VISIBLE__.filter((W) => !W[u.value]);
|
|
5360
|
+
return I[I.map((W) => W[s.value]).indexOf(_.value[s.value]) + 1];
|
|
5361
|
+
}), se = w(() => [...b.value.__VISIBLE__.filter((I) => !I[u.value])].slice(-1)[0]), E = w(() => [...P.value.__VISIBLE__.filter((I) => !I[u.value])].slice(-1)[0]), L = (I) => _.value && (!I.group && _.value[s.value] === I[s.value] || I.group !== void 0 && _.value[i.value] === I[i.value]) ? !0 : void 0, g = () => {
|
|
5362
|
+
y(H.value[0] || null);
|
|
5363
5363
|
}, N = () => {
|
|
5364
|
-
!
|
|
5364
|
+
!_.value || _.value[u.value] === !0 || (K.value ? M(_.value) : $(_.value));
|
|
5365
5365
|
}, fe = () => {
|
|
5366
|
-
if (
|
|
5367
|
-
|
|
5366
|
+
if (_.value === null)
|
|
5367
|
+
y((l.value && z.value ? O.value[0].__CREATE__ ? H.value[0] : O.value[0] : H.value[0]) || null);
|
|
5368
5368
|
else if (l.value && z.value) {
|
|
5369
5369
|
let I = K.value ? le.value : ue.value;
|
|
5370
|
-
I === void 0 && (I = T.value, I.__CREATE__ && (I = I[f.value][0])),
|
|
5370
|
+
I === void 0 && (I = T.value, I.__CREATE__ && (I = I[f.value][0])), y(I || /* istanbul ignore next */
|
|
5371
5371
|
null);
|
|
5372
5372
|
} else {
|
|
5373
|
-
let I = H.value.map((W) => W[s.value]).indexOf(
|
|
5374
|
-
H.value.length <= I && (I = 0),
|
|
5373
|
+
let I = H.value.map((W) => W[s.value]).indexOf(_.value[s.value]) + 1;
|
|
5374
|
+
H.value.length <= I && (I = 0), y(H.value[I] || null);
|
|
5375
5375
|
}
|
|
5376
5376
|
Ee(() => {
|
|
5377
5377
|
x();
|
|
5378
5378
|
});
|
|
5379
5379
|
}, te = () => {
|
|
5380
|
-
if (
|
|
5380
|
+
if (_.value === null) {
|
|
5381
5381
|
let I = H.value[H.value.length - 1];
|
|
5382
|
-
l.value && z.value && (I = E.value, I === void 0 && (I = P.value)),
|
|
5382
|
+
l.value && z.value && (I = E.value, I === void 0 && (I = P.value)), y(I || null);
|
|
5383
5383
|
} else if (l.value && z.value) {
|
|
5384
5384
|
let I = K.value ? se.value : ae.value;
|
|
5385
|
-
I === void 0 && (I = K.value ?
|
|
5385
|
+
I === void 0 && (I = K.value ? b.value : ie.value, I.__CREATE__ && (I = se.value, I === void 0 && (I = b.value))), y(I || /* istanbul ignore next */
|
|
5386
5386
|
null);
|
|
5387
5387
|
} else {
|
|
5388
|
-
let I = H.value.map((W) => W[s.value]).indexOf(
|
|
5389
|
-
I < 0 && (I = H.value.length - 1),
|
|
5388
|
+
let I = H.value.map((W) => W[s.value]).indexOf(_.value[s.value]) - 1;
|
|
5389
|
+
I < 0 && (I = H.value.length - 1), y(H.value[I] || null);
|
|
5390
5390
|
}
|
|
5391
5391
|
Ee(() => {
|
|
5392
5392
|
x();
|
|
5393
5393
|
});
|
|
5394
5394
|
}, J = (I) => O.value.find((W) => W.__VISIBLE__.map((Ce) => Ce[s.value]).indexOf(I[s.value]) !== -1), x = () => {
|
|
5395
|
-
let I =
|
|
5395
|
+
let I = U.value.querySelector("[data-pointed]");
|
|
5396
5396
|
if (!I)
|
|
5397
5397
|
return;
|
|
5398
5398
|
let W = I.parentElement.parentElement;
|
|
5399
5399
|
l.value && (W = K.value ? I.parentElement.parentElement.parentElement : I.parentElement.parentElement.parentElement.parentElement), I.offsetTop + I.offsetHeight > W.clientHeight + W.scrollTop && (W.scrollTop = I.offsetTop + I.offsetHeight - W.clientHeight), I.offsetTop < W.scrollTop && (W.scrollTop = I.offsetTop);
|
|
5400
5400
|
};
|
|
5401
5401
|
return re(A, (I) => {
|
|
5402
|
-
o.value && (I.length && n.value ?
|
|
5402
|
+
o.value && (I.length && n.value ? g() : V());
|
|
5403
5403
|
}), re(F, (I) => {
|
|
5404
5404
|
if (I) {
|
|
5405
|
-
let W =
|
|
5405
|
+
let W = U.value.querySelectorAll("[data-selected]")[0];
|
|
5406
5406
|
if (!W)
|
|
5407
5407
|
return;
|
|
5408
5408
|
let Ce = W.parentElement.parentElement;
|
|
@@ -5411,10 +5411,10 @@ function T0(a, e, t) {
|
|
|
5411
5411
|
});
|
|
5412
5412
|
}
|
|
5413
5413
|
}), {
|
|
5414
|
-
pointer:
|
|
5414
|
+
pointer: _,
|
|
5415
5415
|
canPointGroups: z,
|
|
5416
5416
|
isPointed: L,
|
|
5417
|
-
setPointerFirst:
|
|
5417
|
+
setPointerFirst: g,
|
|
5418
5418
|
selectPointer: N,
|
|
5419
5419
|
forwardPointer: fe,
|
|
5420
5420
|
backwardPointer: te
|
|
@@ -5433,42 +5433,42 @@ function S0(a, e, t) {
|
|
|
5433
5433
|
};
|
|
5434
5434
|
}
|
|
5435
5435
|
function E0(a, e, t) {
|
|
5436
|
-
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, c = t.clearSearch, u = t.isOpen, f = Q(null), p = Q(null),
|
|
5436
|
+
const { searchable: s, disabled: n, clearOnBlur: o } = $e(a), i = t.input, l = t.open, r = t.close, c = t.clearSearch, u = t.isOpen, f = Q(null), p = Q(null), C = Q(null), $ = Q(!1), M = Q(!1), A = w(() => s.value || n.value ? -1 : 0), _ = () => {
|
|
5437
5437
|
s.value && i.value.blur(), p.value.blur();
|
|
5438
|
-
},
|
|
5438
|
+
}, y = () => {
|
|
5439
5439
|
s.value && !n.value && i.value.focus();
|
|
5440
5440
|
}, V = (K = !0) => {
|
|
5441
|
-
n.value || (
|
|
5442
|
-
},
|
|
5443
|
-
|
|
5444
|
-
|
|
5441
|
+
n.value || ($.value = !0, K && l());
|
|
5442
|
+
}, U = () => {
|
|
5443
|
+
$.value = !1, setTimeout(() => {
|
|
5444
|
+
$.value || (r(), o.value && c());
|
|
5445
5445
|
}, 1);
|
|
5446
5446
|
};
|
|
5447
5447
|
return {
|
|
5448
5448
|
multiselect: f,
|
|
5449
5449
|
wrapper: p,
|
|
5450
|
-
tags:
|
|
5450
|
+
tags: C,
|
|
5451
5451
|
tabindex: A,
|
|
5452
|
-
isActive:
|
|
5453
|
-
mouseClicked:
|
|
5454
|
-
blur:
|
|
5455
|
-
focus:
|
|
5452
|
+
isActive: $,
|
|
5453
|
+
mouseClicked: M,
|
|
5454
|
+
blur: _,
|
|
5455
|
+
focus: y,
|
|
5456
5456
|
activate: V,
|
|
5457
|
-
deactivate:
|
|
5457
|
+
deactivate: U,
|
|
5458
5458
|
handleFocusIn: (K) => {
|
|
5459
|
-
K.target.closest("[data-tags]") && K.target.nodeName !== "INPUT" || K.target.closest("[data-clear]") || V(
|
|
5459
|
+
K.target.closest("[data-tags]") && K.target.nodeName !== "INPUT" || K.target.closest("[data-clear]") || V(M.value);
|
|
5460
5460
|
},
|
|
5461
5461
|
handleFocusOut: () => {
|
|
5462
|
-
|
|
5462
|
+
U();
|
|
5463
5463
|
},
|
|
5464
5464
|
handleCaretClick: () => {
|
|
5465
|
-
|
|
5465
|
+
U(), _();
|
|
5466
5466
|
},
|
|
5467
5467
|
handleMousedown: (K) => {
|
|
5468
|
-
|
|
5469
|
-
|
|
5468
|
+
M.value = !0, u.value && (K.target.isEqualNode(p.value) || K.target.isEqualNode(C.value)) ? setTimeout(() => {
|
|
5469
|
+
U();
|
|
5470
5470
|
}, 0) : document.activeElement.isEqualNode(p.value) && !u.value && V(), setTimeout(() => {
|
|
5471
|
-
|
|
5471
|
+
M.value = !1;
|
|
5472
5472
|
}, 0);
|
|
5473
5473
|
}
|
|
5474
5474
|
};
|
|
@@ -5485,30 +5485,30 @@ function I0(a, e, t) {
|
|
|
5485
5485
|
addOptionOn: u,
|
|
5486
5486
|
createTag: f,
|
|
5487
5487
|
createOption: p,
|
|
5488
|
-
reverse:
|
|
5489
|
-
} = $e(a),
|
|
5490
|
-
s.value === "tags" && !l.value && P.value && i.value && !c.value &&
|
|
5488
|
+
reverse: C
|
|
5489
|
+
} = $e(a), $ = tt().proxy, M = t.iv, A = t.update, _ = t.search, y = t.setPointer, V = t.selectPointer, U = t.backwardPointer, F = t.forwardPointer, H = t.multiselect, O = t.wrapper, z = t.tags, K = t.isOpen, ie = t.open, b = t.blur, T = t.fo, P = w(() => f.value || p.value || !1), le = w(() => n.value !== void 0 ? n.value : u.value !== void 0 ? u.value : ["enter"]), ae = () => {
|
|
5490
|
+
s.value === "tags" && !l.value && P.value && i.value && !c.value && y(T.value[T.value.map((L) => L[r.value]).indexOf(_.value)]);
|
|
5491
5491
|
}, ue = (L) => {
|
|
5492
|
-
let
|
|
5493
|
-
for (;
|
|
5494
|
-
|
|
5495
|
-
return
|
|
5492
|
+
let g = L.length - 1;
|
|
5493
|
+
for (; g >= 0 && (L[g].remove === !1 || L[g].disabled); )
|
|
5494
|
+
g--;
|
|
5495
|
+
return g < 0 || L.splice(g, 1), L;
|
|
5496
5496
|
};
|
|
5497
5497
|
return {
|
|
5498
5498
|
handleKeydown: (L) => {
|
|
5499
|
-
e.emit("keydown", L,
|
|
5500
|
-
let
|
|
5501
|
-
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (
|
|
5499
|
+
e.emit("keydown", L, $);
|
|
5500
|
+
let g, N;
|
|
5501
|
+
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(L.key) !== -1 && s.value === "tags" && (g = [...H.value.querySelectorAll("[data-tags] > *")].filter((fe) => fe !== z.value), N = g.findIndex((fe) => fe === document.activeElement)), L.key) {
|
|
5502
5502
|
case "Backspace":
|
|
5503
|
-
if (s.value === "single" || i.value && [null, ""].indexOf(
|
|
5503
|
+
if (s.value === "single" || i.value && [null, ""].indexOf(_.value) === -1 || M.value.length === 0)
|
|
5504
5504
|
return;
|
|
5505
|
-
A(ue([
|
|
5505
|
+
A(ue([...M.value]));
|
|
5506
5506
|
break;
|
|
5507
5507
|
case "Enter":
|
|
5508
5508
|
if (L.preventDefault(), L.keyCode === 229)
|
|
5509
5509
|
return;
|
|
5510
5510
|
if (N !== -1 && N !== void 0) {
|
|
5511
|
-
A([
|
|
5511
|
+
A([...M.value].filter((fe, te) => te !== N)), N === g.length - 1 && (g.length - 1 ? g[g.length - 2].focus() : i.value ? z.value.querySelector("input").focus() : O.value.focus());
|
|
5512
5512
|
return;
|
|
5513
5513
|
}
|
|
5514
5514
|
if (le.value.indexOf("enter") === -1 && P.value)
|
|
@@ -5534,12 +5534,12 @@ function I0(a, e, t) {
|
|
|
5534
5534
|
ae(), V(), L.preventDefault();
|
|
5535
5535
|
break;
|
|
5536
5536
|
case "Escape":
|
|
5537
|
-
|
|
5537
|
+
b();
|
|
5538
5538
|
break;
|
|
5539
5539
|
case "ArrowUp":
|
|
5540
5540
|
if (L.preventDefault(), !l.value)
|
|
5541
5541
|
return;
|
|
5542
|
-
K.value || ie(),
|
|
5542
|
+
K.value || ie(), U();
|
|
5543
5543
|
break;
|
|
5544
5544
|
case "ArrowDown":
|
|
5545
5545
|
if (L.preventDefault(), !l.value)
|
|
@@ -5547,19 +5547,19 @@ function I0(a, e, t) {
|
|
|
5547
5547
|
K.value || ie(), F();
|
|
5548
5548
|
break;
|
|
5549
5549
|
case "ArrowLeft":
|
|
5550
|
-
if (i.value && z.value && z.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" ||
|
|
5550
|
+
if (i.value && z.value && z.value.querySelector("input").selectionStart || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5551
5551
|
return;
|
|
5552
|
-
L.preventDefault(), N === -1 ?
|
|
5552
|
+
L.preventDefault(), N === -1 ? g[g.length - 1].focus() : N > 0 && g[N - 1].focus();
|
|
5553
5553
|
break;
|
|
5554
5554
|
case "ArrowRight":
|
|
5555
|
-
if (N === -1 || L.shiftKey || s.value !== "tags" ||
|
|
5555
|
+
if (N === -1 || L.shiftKey || s.value !== "tags" || !M.value || !M.value.length)
|
|
5556
5556
|
return;
|
|
5557
|
-
L.preventDefault(),
|
|
5557
|
+
L.preventDefault(), g.length > N + 1 ? g[N + 1].focus() : i.value ? z.value.querySelector("input").focus() : i.value || O.value.focus();
|
|
5558
5558
|
break;
|
|
5559
5559
|
}
|
|
5560
5560
|
},
|
|
5561
5561
|
handleKeyup: (L) => {
|
|
5562
|
-
e.emit("keyup", L,
|
|
5562
|
+
e.emit("keyup", L, $);
|
|
5563
5563
|
},
|
|
5564
5564
|
preparePointer: ae
|
|
5565
5565
|
};
|
|
@@ -5570,7 +5570,7 @@ function O0(a, e, t) {
|
|
|
5570
5570
|
disabled: n,
|
|
5571
5571
|
openDirection: o,
|
|
5572
5572
|
showOptions: i
|
|
5573
|
-
} = $e(a), l = t.isOpen, r = t.isPointed, c = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups,
|
|
5573
|
+
} = $e(a), l = t.isOpen, r = t.isPointed, c = t.isSelected, u = t.isDisabled, f = t.isActive, p = t.canPointGroups, C = t.resolving, $ = t.fo, M = w(() => ({
|
|
5574
5574
|
container: "multiselect",
|
|
5575
5575
|
containerDisabled: "is-disabled",
|
|
5576
5576
|
containerOpen: "is-open",
|
|
@@ -5623,49 +5623,49 @@ function O0(a, e, t) {
|
|
|
5623
5623
|
assist: "multiselect-assistive-text",
|
|
5624
5624
|
spacer: "multiselect-spacer",
|
|
5625
5625
|
...s.value
|
|
5626
|
-
})), A =
|
|
5626
|
+
})), A = w(() => !!(l.value && i.value && (!C.value || C.value && $.value.length)));
|
|
5627
5627
|
return {
|
|
5628
|
-
classList:
|
|
5629
|
-
const
|
|
5628
|
+
classList: w(() => {
|
|
5629
|
+
const y = M.value;
|
|
5630
5630
|
return {
|
|
5631
|
-
container: [
|
|
5632
|
-
wrapper:
|
|
5633
|
-
spacer:
|
|
5634
|
-
singleLabel:
|
|
5635
|
-
singleLabelText:
|
|
5636
|
-
multipleLabel:
|
|
5637
|
-
search:
|
|
5638
|
-
tags:
|
|
5639
|
-
tag: [
|
|
5640
|
-
tagDisabled:
|
|
5641
|
-
tagRemove:
|
|
5642
|
-
tagRemoveIcon:
|
|
5643
|
-
tagsSearchWrapper:
|
|
5644
|
-
tagsSearch:
|
|
5645
|
-
tagsSearchCopy:
|
|
5646
|
-
placeholder:
|
|
5647
|
-
caret: [
|
|
5648
|
-
clear:
|
|
5649
|
-
clearIcon:
|
|
5650
|
-
spinner:
|
|
5651
|
-
inifinite:
|
|
5652
|
-
inifiniteSpinner:
|
|
5653
|
-
dropdown: [
|
|
5654
|
-
options: [
|
|
5655
|
-
group:
|
|
5631
|
+
container: [y.container].concat(n.value ? y.containerDisabled : []).concat(A.value && o.value === "top" ? y.containerOpenTop : []).concat(A.value && o.value !== "top" ? y.containerOpen : []).concat(f.value ? y.containerActive : []),
|
|
5632
|
+
wrapper: y.wrapper,
|
|
5633
|
+
spacer: y.spacer,
|
|
5634
|
+
singleLabel: y.singleLabel,
|
|
5635
|
+
singleLabelText: y.singleLabelText,
|
|
5636
|
+
multipleLabel: y.multipleLabel,
|
|
5637
|
+
search: y.search,
|
|
5638
|
+
tags: y.tags,
|
|
5639
|
+
tag: [y.tag].concat(n.value ? y.tagDisabled : []),
|
|
5640
|
+
tagDisabled: y.tagDisabled,
|
|
5641
|
+
tagRemove: y.tagRemove,
|
|
5642
|
+
tagRemoveIcon: y.tagRemoveIcon,
|
|
5643
|
+
tagsSearchWrapper: y.tagsSearchWrapper,
|
|
5644
|
+
tagsSearch: y.tagsSearch,
|
|
5645
|
+
tagsSearchCopy: y.tagsSearchCopy,
|
|
5646
|
+
placeholder: y.placeholder,
|
|
5647
|
+
caret: [y.caret].concat(l.value ? y.caretOpen : []),
|
|
5648
|
+
clear: y.clear,
|
|
5649
|
+
clearIcon: y.clearIcon,
|
|
5650
|
+
spinner: y.spinner,
|
|
5651
|
+
inifinite: y.inifinite,
|
|
5652
|
+
inifiniteSpinner: y.inifiniteSpinner,
|
|
5653
|
+
dropdown: [y.dropdown].concat(o.value === "top" ? y.dropdownTop : []).concat(!l.value || !i.value || !A.value ? y.dropdownHidden : []),
|
|
5654
|
+
options: [y.options].concat(o.value === "top" ? y.optionsTop : []),
|
|
5655
|
+
group: y.group,
|
|
5656
5656
|
groupLabel: (V) => {
|
|
5657
|
-
let
|
|
5658
|
-
return r(V) ?
|
|
5657
|
+
let U = [y.groupLabel];
|
|
5658
|
+
return r(V) ? U.push(c(V) ? y.groupLabelSelectedPointed : y.groupLabelPointed) : c(V) && p.value ? U.push(u(V) ? y.groupLabelSelectedDisabled : y.groupLabelSelected) : u(V) && U.push(y.groupLabelDisabled), p.value && U.push(y.groupLabelPointable), U;
|
|
5659
5659
|
},
|
|
5660
|
-
groupOptions:
|
|
5661
|
-
option: (V,
|
|
5662
|
-
let F = [
|
|
5663
|
-
return r(V) ? F.push(c(V) ?
|
|
5660
|
+
groupOptions: y.groupOptions,
|
|
5661
|
+
option: (V, U) => {
|
|
5662
|
+
let F = [y.option];
|
|
5663
|
+
return r(V) ? F.push(c(V) ? y.optionSelectedPointed : y.optionPointed) : c(V) ? F.push(u(V) ? y.optionSelectedDisabled : y.optionSelected) : (u(V) || U && u(U)) && F.push(y.optionDisabled), F;
|
|
5664
5664
|
},
|
|
5665
|
-
noOptions:
|
|
5666
|
-
noResults:
|
|
5667
|
-
assist:
|
|
5668
|
-
fakeInput:
|
|
5665
|
+
noOptions: y.noOptions,
|
|
5666
|
+
noResults: y.noResults,
|
|
5667
|
+
assist: y.assist,
|
|
5668
|
+
fakeInput: y.fakeInput
|
|
5669
5669
|
};
|
|
5670
5670
|
}),
|
|
5671
5671
|
showDropdown: A
|
|
@@ -5675,25 +5675,25 @@ function L0(a, e, t) {
|
|
|
5675
5675
|
const {
|
|
5676
5676
|
limit: s,
|
|
5677
5677
|
infinite: n
|
|
5678
|
-
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, c = t.eo, u = Q(null), f = Q(null), p =
|
|
5679
|
-
const { isIntersecting: A, target:
|
|
5678
|
+
} = $e(a), o = t.isOpen, i = t.offset, l = t.search, r = t.pfo, c = t.eo, u = Q(null), f = Q(null), p = w(() => i.value < r.value.length), C = (M) => {
|
|
5679
|
+
const { isIntersecting: A, target: _ } = M[0];
|
|
5680
5680
|
if (A) {
|
|
5681
|
-
const
|
|
5681
|
+
const y = _.offsetParent, V = y.scrollTop;
|
|
5682
5682
|
i.value += s.value == -1 ? 10 : s.value, Ee(() => {
|
|
5683
|
-
|
|
5683
|
+
y.scrollTop = V;
|
|
5684
5684
|
});
|
|
5685
5685
|
}
|
|
5686
|
-
},
|
|
5686
|
+
}, $ = () => {
|
|
5687
5687
|
o.value && i.value < r.value.length ? u.value.observe(f.value) : !o.value && u.value && u.value.disconnect();
|
|
5688
5688
|
};
|
|
5689
5689
|
return re(o, () => {
|
|
5690
|
-
n.value &&
|
|
5690
|
+
n.value && $();
|
|
5691
5691
|
}), re(l, () => {
|
|
5692
|
-
n.value && (i.value = s.value,
|
|
5692
|
+
n.value && (i.value = s.value, $());
|
|
5693
5693
|
}, { flush: "post" }), re(c, () => {
|
|
5694
|
-
n.value &&
|
|
5694
|
+
n.value && $();
|
|
5695
5695
|
}, { immediate: !1, flush: "post" }), Dt(() => {
|
|
5696
|
-
window && window.IntersectionObserver && (u.value = new IntersectionObserver(
|
|
5696
|
+
window && window.IntersectionObserver && (u.value = new IntersectionObserver(C));
|
|
5697
5697
|
}), {
|
|
5698
5698
|
hasMore: p,
|
|
5699
5699
|
infiniteLoader: f
|
|
@@ -5709,20 +5709,20 @@ function V0(a, e, t) {
|
|
|
5709
5709
|
groupLabel: r,
|
|
5710
5710
|
aria: c,
|
|
5711
5711
|
searchable: u
|
|
5712
|
-
} = $e(a), f = t.pointer, p = t.iv,
|
|
5712
|
+
} = $e(a), f = t.pointer, p = t.iv, C = t.hasSelected, $ = t.multipleLabelText, M = Q(null), A = w(() => {
|
|
5713
5713
|
let T = [];
|
|
5714
5714
|
return n && n.value && T.push(n.value), T.push("assist"), T.join("-");
|
|
5715
|
-
}),
|
|
5715
|
+
}), _ = w(() => {
|
|
5716
5716
|
let T = [];
|
|
5717
5717
|
return n && n.value && T.push(n.value), T.push("multiselect-options"), T.join("-");
|
|
5718
|
-
}),
|
|
5718
|
+
}), y = w(() => {
|
|
5719
5719
|
let T = [];
|
|
5720
5720
|
if (n && n.value && T.push(n.value), f.value)
|
|
5721
5721
|
return T.push(f.value.group ? "multiselect-group" : "multiselect-option"), T.push(f.value.group ? f.value.index : f.value[o.value]), T.join("-");
|
|
5722
|
-
}), V =
|
|
5722
|
+
}), V = w(() => s.value), U = w(() => l.value !== "single"), F = w(() => {
|
|
5723
5723
|
let T = "";
|
|
5724
|
-
return l.value === "single" &&
|
|
5725
|
-
}), H =
|
|
5724
|
+
return l.value === "single" && C.value && (T += p.value[i.value]), l.value === "multiple" && C.value && (T += $.value), l.value === "tags" && C.value && (T += p.value.map((P) => P[i.value]).join(", ")), T;
|
|
5725
|
+
}), H = w(() => {
|
|
5726
5726
|
let T = { ...c.value };
|
|
5727
5727
|
return u.value && (T["aria-labelledby"] = T["aria-labelledby"] ? `${A.value} ${T["aria-labelledby"]}` : A.value, F.value && T["aria-label"] && (T["aria-label"] = `${F.value}, ${T["aria-label"]}`)), T;
|
|
5728
5728
|
}), O = (T) => {
|
|
@@ -5737,25 +5737,25 @@ function V0(a, e, t) {
|
|
|
5737
5737
|
}, ie = (T) => {
|
|
5738
5738
|
let P = [];
|
|
5739
5739
|
return P.push(T), P.join(" ");
|
|
5740
|
-
},
|
|
5740
|
+
}, b = (T) => `${T} ❎`;
|
|
5741
5741
|
return Dt(() => {
|
|
5742
5742
|
if (n && n.value && document && document.querySelector) {
|
|
5743
5743
|
let T = document.querySelector(`[for="${n.value}"]`);
|
|
5744
|
-
|
|
5744
|
+
M.value = T ? T.innerText : null;
|
|
5745
5745
|
}
|
|
5746
5746
|
}), {
|
|
5747
5747
|
arias: H,
|
|
5748
5748
|
ariaLabel: F,
|
|
5749
5749
|
ariaAssist: A,
|
|
5750
|
-
ariaControls:
|
|
5750
|
+
ariaControls: _,
|
|
5751
5751
|
ariaPlaceholder: V,
|
|
5752
|
-
ariaMultiselectable:
|
|
5753
|
-
ariaActiveDescendant:
|
|
5752
|
+
ariaMultiselectable: U,
|
|
5753
|
+
ariaActiveDescendant: y,
|
|
5754
5754
|
ariaOptionId: O,
|
|
5755
5755
|
ariaOptionLabel: K,
|
|
5756
5756
|
ariaGroupId: z,
|
|
5757
5757
|
ariaGroupLabel: ie,
|
|
5758
|
-
ariaTagLabel:
|
|
5758
|
+
ariaTagLabel: b
|
|
5759
5759
|
};
|
|
5760
5760
|
}
|
|
5761
5761
|
function H0(a, e, t) {
|
|
@@ -6130,7 +6130,7 @@ var We = {
|
|
|
6130
6130
|
};
|
|
6131
6131
|
const P0 = ["id", "dir"], B0 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], N0 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], R0 = ["onKeyup", "aria-label"], U0 = ["onClick"], j0 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], Z0 = ["innerHTML"], F0 = ["id"], q0 = ["id", "aria-label", "aria-selected"], W0 = ["data-pointed", "onMouseenter", "onClick"], z0 = ["innerHTML"], x0 = ["aria-label"], Y0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], K0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], G0 = ["innerHTML"], X0 = ["innerHTML"], Q0 = ["value"], J0 = ["name", "value"], e5 = ["name", "value"], t5 = ["id"];
|
|
6132
6132
|
function a5(a, e, t, s, n, o) {
|
|
6133
|
-
return v(),
|
|
6133
|
+
return v(), h("div", {
|
|
6134
6134
|
ref: "multiselect",
|
|
6135
6135
|
class: X(a.classList.container),
|
|
6136
6136
|
id: t.searchable ? void 0 : t.id,
|
|
@@ -6153,7 +6153,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6153
6153
|
role: t.searchable ? void 0 : "combobox"
|
|
6154
6154
|
}, t.searchable ? {} : a.arias), [
|
|
6155
6155
|
S(" Search "),
|
|
6156
|
-
t.mode !== "tags" && t.searchable && !t.disabled ? (v(),
|
|
6156
|
+
t.mode !== "tags" && t.searchable && !t.disabled ? (v(), h("input", Ve({
|
|
6157
6157
|
key: 0,
|
|
6158
6158
|
type: t.inputType,
|
|
6159
6159
|
modelValue: a.search,
|
|
@@ -6176,7 +6176,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6176
6176
|
...a.arias
|
|
6177
6177
|
}), null, 16, N0)) : S("v-if", !0),
|
|
6178
6178
|
S(" Tags (with search) "),
|
|
6179
|
-
t.mode == "tags" ? (v(),
|
|
6179
|
+
t.mode == "tags" ? (v(), h(
|
|
6180
6180
|
"div",
|
|
6181
6181
|
{
|
|
6182
6182
|
key: 1,
|
|
@@ -6184,7 +6184,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6184
6184
|
"data-tags": ""
|
|
6185
6185
|
},
|
|
6186
6186
|
[
|
|
6187
|
-
(v(!0),
|
|
6187
|
+
(v(!0), h(
|
|
6188
6188
|
ve,
|
|
6189
6189
|
null,
|
|
6190
6190
|
ye(a.iv, (i, l, r) => ee(a.$slots, "tag", {
|
|
@@ -6192,7 +6192,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6192
6192
|
handleTagRemove: a.handleTagRemove,
|
|
6193
6193
|
disabled: t.disabled
|
|
6194
6194
|
}, () => [
|
|
6195
|
-
(v(),
|
|
6195
|
+
(v(), h("span", {
|
|
6196
6196
|
class: X([
|
|
6197
6197
|
a.classList.tag,
|
|
6198
6198
|
i.disabled ? a.classList.tagDisabled : null
|
|
@@ -6207,7 +6207,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6207
6207
|
1
|
|
6208
6208
|
/* TEXT */
|
|
6209
6209
|
),
|
|
6210
|
-
!t.disabled && !i.disabled ? (v(),
|
|
6210
|
+
!t.disabled && !i.disabled ? (v(), h("span", {
|
|
6211
6211
|
key: 0,
|
|
6212
6212
|
class: X(a.classList.tagRemove),
|
|
6213
6213
|
onClick: _e((c) => a.handleTagRemove(i, c), ["stop"])
|
|
@@ -6245,7 +6245,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6245
6245
|
/* TEXT, CLASS */
|
|
6246
6246
|
),
|
|
6247
6247
|
S(" Actual search input "),
|
|
6248
|
-
t.searchable && !t.disabled ? (v(),
|
|
6248
|
+
t.searchable && !t.disabled ? (v(), h("input", Ve({
|
|
6249
6249
|
key: 0,
|
|
6250
6250
|
type: t.inputType,
|
|
6251
6251
|
modelValue: a.search,
|
|
@@ -6397,10 +6397,10 @@ function a5(a, e, t, s, n, o) {
|
|
|
6397
6397
|
id: a.ariaControls,
|
|
6398
6398
|
role: "listbox"
|
|
6399
6399
|
}, [
|
|
6400
|
-
t.groups ? (v(!0),
|
|
6400
|
+
t.groups ? (v(!0), h(
|
|
6401
6401
|
ve,
|
|
6402
6402
|
{ key: 0 },
|
|
6403
|
-
ye(a.fg, (i, l, r) => (v(),
|
|
6403
|
+
ye(a.fg, (i, l, r) => (v(), h("li", {
|
|
6404
6404
|
class: X(a.classList.group),
|
|
6405
6405
|
key: r,
|
|
6406
6406
|
id: a.ariaGroupId(i),
|
|
@@ -6408,7 +6408,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6408
6408
|
"aria-selected": a.isSelected(i),
|
|
6409
6409
|
role: "option"
|
|
6410
6410
|
}, [
|
|
6411
|
-
i.__CREATE__ ? S("v-if", !0) : (v(),
|
|
6411
|
+
i.__CREATE__ ? S("v-if", !0) : (v(), h("div", {
|
|
6412
6412
|
key: 0,
|
|
6413
6413
|
class: X(a.classList.groupLabel(i)),
|
|
6414
6414
|
"data-pointed": a.isPointed(i),
|
|
@@ -6430,10 +6430,10 @@ function a5(a, e, t, s, n, o) {
|
|
|
6430
6430
|
"aria-label": a.ariaGroupLabel(a.localize(i[t.groupLabel])),
|
|
6431
6431
|
role: "group"
|
|
6432
6432
|
}, [
|
|
6433
|
-
(v(!0),
|
|
6433
|
+
(v(!0), h(
|
|
6434
6434
|
ve,
|
|
6435
6435
|
null,
|
|
6436
|
-
ye(i.__VISIBLE__, (c, u, f) => (v(),
|
|
6436
|
+
ye(i.__VISIBLE__, (c, u, f) => (v(), h("li", {
|
|
6437
6437
|
class: X(a.classList.option(c, i)),
|
|
6438
6438
|
"data-pointed": a.isPointed(c),
|
|
6439
6439
|
"data-selected": a.isSelected(c) || void 0,
|
|
@@ -6467,10 +6467,10 @@ function a5(a, e, t, s, n, o) {
|
|
|
6467
6467
|
], 10, q0))),
|
|
6468
6468
|
128
|
|
6469
6469
|
/* KEYED_FRAGMENT */
|
|
6470
|
-
)) : (v(!0),
|
|
6470
|
+
)) : (v(!0), h(
|
|
6471
6471
|
ve,
|
|
6472
6472
|
{ key: 1 },
|
|
6473
|
-
ye(a.fo, (i, l, r) => (v(),
|
|
6473
|
+
ye(a.fo, (i, l, r) => (v(), h("li", {
|
|
6474
6474
|
class: X(a.classList.option(i)),
|
|
6475
6475
|
"data-pointed": a.isPointed(i),
|
|
6476
6476
|
"data-selected": a.isSelected(i) || void 0,
|
|
@@ -6513,7 +6513,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6513
6513
|
innerHTML: a.localize(t.noResultsText)
|
|
6514
6514
|
}, null, 10, X0)
|
|
6515
6515
|
]) : S("v-if", !0),
|
|
6516
|
-
t.infinite && a.hasMore ? (v(),
|
|
6516
|
+
t.infinite && a.hasMore ? (v(), h(
|
|
6517
6517
|
"div",
|
|
6518
6518
|
{
|
|
6519
6519
|
key: 2,
|
|
@@ -6542,7 +6542,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6542
6542
|
/* CLASS */
|
|
6543
6543
|
),
|
|
6544
6544
|
S(" Hacky input element to show HTML5 required warning "),
|
|
6545
|
-
t.required ? (v(),
|
|
6545
|
+
t.required ? (v(), h("input", {
|
|
6546
6546
|
key: 0,
|
|
6547
6547
|
class: X(a.classList.fakeInput),
|
|
6548
6548
|
tabindex: "-1",
|
|
@@ -6550,19 +6550,19 @@ function a5(a, e, t, s, n, o) {
|
|
|
6550
6550
|
required: ""
|
|
6551
6551
|
}, null, 10, Q0)) : S("v-if", !0),
|
|
6552
6552
|
S(" Native input support "),
|
|
6553
|
-
t.nativeSupport ? (v(),
|
|
6553
|
+
t.nativeSupport ? (v(), h(
|
|
6554
6554
|
ve,
|
|
6555
6555
|
{ key: 1 },
|
|
6556
6556
|
[
|
|
6557
|
-
t.mode == "single" ? (v(),
|
|
6557
|
+
t.mode == "single" ? (v(), h("input", {
|
|
6558
6558
|
key: 0,
|
|
6559
6559
|
type: "hidden",
|
|
6560
6560
|
name: t.name,
|
|
6561
6561
|
value: a.plainValue !== void 0 ? a.plainValue : ""
|
|
6562
|
-
}, null, 8, J0)) : (v(!0),
|
|
6562
|
+
}, null, 8, J0)) : (v(!0), h(
|
|
6563
6563
|
ve,
|
|
6564
6564
|
{ key: 1 },
|
|
6565
|
-
ye(a.plainValue, (i, l) => (v(),
|
|
6565
|
+
ye(a.plainValue, (i, l) => (v(), h("input", {
|
|
6566
6566
|
type: "hidden",
|
|
6567
6567
|
name: `${t.name}[]`,
|
|
6568
6568
|
value: i,
|
|
@@ -6576,7 +6576,7 @@ function a5(a, e, t, s, n, o) {
|
|
|
6576
6576
|
/* STABLE_FRAGMENT */
|
|
6577
6577
|
)) : S("v-if", !0),
|
|
6578
6578
|
S(" Screen reader assistive text "),
|
|
6579
|
-
t.searchable && a.hasSelected ? (v(),
|
|
6579
|
+
t.searchable && a.hasSelected ? (v(), h("div", {
|
|
6580
6580
|
key: 2,
|
|
6581
6581
|
class: X(a.classList.assist),
|
|
6582
6582
|
id: a.ariaAssist,
|
|
@@ -6607,7 +6607,7 @@ const be = /* @__PURE__ */ Y({
|
|
|
6607
6607
|
return e.detached && g0({
|
|
6608
6608
|
multiselect: s,
|
|
6609
6609
|
appendTo: t.value
|
|
6610
|
-
}), (n, o) => (v(),
|
|
6610
|
+
}), (n, o) => (v(), j(Z(We), {
|
|
6611
6611
|
ref_key: "multiselectRef",
|
|
6612
6612
|
ref: s,
|
|
6613
6613
|
class: "ao-multiselect"
|
|
@@ -6687,7 +6687,7 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6687
6687
|
re(() => t.tasks, (f, p) => {
|
|
6688
6688
|
Re(f, p);
|
|
6689
6689
|
});
|
|
6690
|
-
const n =
|
|
6690
|
+
const n = w(
|
|
6691
6691
|
() => {
|
|
6692
6692
|
var f;
|
|
6693
6693
|
return ((f = t.users) == null ? void 0 : f.map((p) => ({
|
|
@@ -6702,10 +6702,10 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6702
6702
|
};
|
|
6703
6703
|
e("add", p);
|
|
6704
6704
|
}, i = (f, p) => {
|
|
6705
|
-
const
|
|
6705
|
+
const $ = f.target.value;
|
|
6706
6706
|
e("update", {
|
|
6707
6707
|
id: p,
|
|
6708
|
-
name:
|
|
6708
|
+
name: $
|
|
6709
6709
|
});
|
|
6710
6710
|
}, l = (f, p) => {
|
|
6711
6711
|
t.isEditable && e("update", {
|
|
@@ -6723,34 +6723,34 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6723
6723
|
const p = f.target;
|
|
6724
6724
|
p == null || p.blur();
|
|
6725
6725
|
};
|
|
6726
|
-
return (f, p) => (v(),
|
|
6726
|
+
return (f, p) => (v(), h("div", s5, [
|
|
6727
6727
|
d("ul", i5, [
|
|
6728
|
-
(v(!0),
|
|
6729
|
-
var
|
|
6730
|
-
return v(),
|
|
6731
|
-
key:
|
|
6728
|
+
(v(!0), h(ve, null, ye(f.tasks, (C) => {
|
|
6729
|
+
var $, M;
|
|
6730
|
+
return v(), h("li", {
|
|
6731
|
+
key: C.id,
|
|
6732
6732
|
class: "ao-subtask"
|
|
6733
6733
|
}, [
|
|
6734
|
-
((
|
|
6734
|
+
(($ = f.isCheckable) == null ? void 0 : $.call(f, C)) ?? !1 ? (v(), j(ce, {
|
|
6735
6735
|
key: 0,
|
|
6736
6736
|
class: "ao-subtask__check",
|
|
6737
|
-
"icon-name":
|
|
6737
|
+
"icon-name": C.isDone ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
6738
6738
|
disabled: !f.isEditable,
|
|
6739
6739
|
variant: "ghost",
|
|
6740
|
-
onClick: () => l(
|
|
6740
|
+
onClick: () => l(C.id, !C.isDone)
|
|
6741
6741
|
}, null, 8, ["icon-name", "disabled", "onClick"])) : S("", !0),
|
|
6742
6742
|
d("input", {
|
|
6743
|
-
id:
|
|
6744
|
-
value:
|
|
6743
|
+
id: C.id,
|
|
6744
|
+
value: C.name,
|
|
6745
6745
|
readonly: !f.isEditable,
|
|
6746
6746
|
class: "ao-field__input ao-subtask__field",
|
|
6747
6747
|
type: "text",
|
|
6748
|
-
onChange: (A) => i(A,
|
|
6748
|
+
onChange: (A) => i(A, C.id),
|
|
6749
6749
|
onKeyup: ze(u, ["enter"])
|
|
6750
6750
|
}, null, 40, o5),
|
|
6751
|
-
f.users ? (v(),
|
|
6751
|
+
f.users ? (v(), j(be, {
|
|
6752
6752
|
key: 1,
|
|
6753
|
-
value: [(
|
|
6753
|
+
value: [(M = C.assignee) == null ? void 0 : M.id],
|
|
6754
6754
|
options: n.value,
|
|
6755
6755
|
"close-on-select": !1,
|
|
6756
6756
|
searchable: !0,
|
|
@@ -6760,31 +6760,31 @@ const s5 = { class: "ao-tasks" }, i5 = { class: "ao-tasks__list" }, o5 = ["id",
|
|
|
6760
6760
|
placeholder: f.$t("feed.filters.assignee.placeholder"),
|
|
6761
6761
|
disabled: !f.isEditable,
|
|
6762
6762
|
caret: f.isEditable,
|
|
6763
|
-
onChange: (A) => c(A,
|
|
6763
|
+
onChange: (A) => c(A, C.id)
|
|
6764
6764
|
}, {
|
|
6765
|
-
tag: R(({ option: A, handleTagRemove:
|
|
6765
|
+
tag: R(({ option: A, handleTagRemove: _ }) => [
|
|
6766
6766
|
k(_t, {
|
|
6767
6767
|
"user-name": A.label,
|
|
6768
6768
|
"is-closable": !0,
|
|
6769
|
-
onClose: (
|
|
6769
|
+
onClose: (y) => _(A, y)
|
|
6770
6770
|
}, null, 8, ["user-name", "onClose"])
|
|
6771
6771
|
]),
|
|
6772
6772
|
_: 2
|
|
6773
6773
|
}, 1032, ["value", "options", "placeholder", "disabled", "caret", "onChange"])) : S("", !0),
|
|
6774
|
-
f.isEditable ? (v(),
|
|
6774
|
+
f.isEditable ? (v(), j(ce, {
|
|
6775
6775
|
key: 2,
|
|
6776
6776
|
class: "ao-subtask__delete",
|
|
6777
6777
|
"icon-name": "CancelRounded",
|
|
6778
6778
|
size: "sm",
|
|
6779
6779
|
variant: "ghost",
|
|
6780
6780
|
color: "neutral",
|
|
6781
|
-
onClick: () => r(
|
|
6781
|
+
onClick: () => r(C.id)
|
|
6782
6782
|
}, null, 8, ["onClick"])) : S("", !0)
|
|
6783
6783
|
]);
|
|
6784
6784
|
}), 128))
|
|
6785
6785
|
]),
|
|
6786
6786
|
d("div", l5, [
|
|
6787
|
-
f.isEditable ? (v(),
|
|
6787
|
+
f.isEditable ? (v(), j(ce, {
|
|
6788
6788
|
key: 0,
|
|
6789
6789
|
label: f.$t("activity.tasks.add"),
|
|
6790
6790
|
"icon-name": "Add",
|
|
@@ -6846,7 +6846,7 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6846
6846
|
}
|
|
6847
6847
|
return (c, u) => {
|
|
6848
6848
|
var f;
|
|
6849
|
-
return v(),
|
|
6849
|
+
return v(), h("div", {
|
|
6850
6850
|
class: X([
|
|
6851
6851
|
"ao-files__wrapper",
|
|
6852
6852
|
{
|
|
@@ -6858,8 +6858,8 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6858
6858
|
onDragover: _e(i, ["prevent"]),
|
|
6859
6859
|
onDragleave: _e(l, ["prevent"])
|
|
6860
6860
|
}, [
|
|
6861
|
-
(f = c.attachments) != null && f.length && c.attachments.length > 0 ? (v(),
|
|
6862
|
-
(v(!0),
|
|
6861
|
+
(f = c.attachments) != null && f.length && c.attachments.length > 0 ? (v(), h("ul", c5, [
|
|
6862
|
+
(v(!0), h(ve, null, ye(c.attachments, (p) => (v(), h("li", {
|
|
6863
6863
|
key: p.id,
|
|
6864
6864
|
class: "ao-file"
|
|
6865
6865
|
}, [
|
|
@@ -6876,7 +6876,7 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6876
6876
|
}),
|
|
6877
6877
|
d("span", f5, q(p.name), 1)
|
|
6878
6878
|
], 8, d5),
|
|
6879
|
-
c.isEditable ? (v(),
|
|
6879
|
+
c.isEditable ? (v(), j(ce, {
|
|
6880
6880
|
key: 0,
|
|
6881
6881
|
class: "ao-files__delete-button",
|
|
6882
6882
|
"icon-name": "DeleteOutlineRounded",
|
|
@@ -6888,7 +6888,7 @@ const u5 = ["onDrop", "onDragenter", "onDragover", "onDragleave"], c5 = {
|
|
|
6888
6888
|
}, null, 8, ["onClick"])) : S("", !0)
|
|
6889
6889
|
]))), 128))
|
|
6890
6890
|
])) : S("", !0),
|
|
6891
|
-
c.isEditable ? (v(),
|
|
6891
|
+
c.isEditable ? (v(), h("div", v5, [
|
|
6892
6892
|
d("label", p5, [
|
|
6893
6893
|
d("span", h5, q(c.$t("activity.attachment.button.resting")), 1),
|
|
6894
6894
|
d("input", {
|
|
@@ -6920,39 +6920,39 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6920
6920
|
},
|
|
6921
6921
|
emits: ["edit", "remove"],
|
|
6922
6922
|
setup(a, { emit: e }) {
|
|
6923
|
-
const t = a, s =
|
|
6923
|
+
const t = a, s = w(() => {
|
|
6924
6924
|
const A = t.user;
|
|
6925
6925
|
return A ? `${A == null ? void 0 : A.firstName} ${A == null ? void 0 : A.lastName}` : null;
|
|
6926
|
-
}), n = Q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), c =
|
|
6926
|
+
}), n = Q(null), { isEditing: o, toggleIsEditing: i, onUpdate: l, onDiscard: r } = ca(n), c = w(() => k1(t.createdAt)), u = w(() => k1(t.editedAt)), f = w(() => o.value ? "textarea" : "p"), p = r(), C = l((A) => {
|
|
6927
6927
|
e("edit", A);
|
|
6928
|
-
}),
|
|
6928
|
+
}), $ = () => {
|
|
6929
6929
|
e("remove");
|
|
6930
|
-
},
|
|
6930
|
+
}, M = Q(2);
|
|
6931
6931
|
return dn(() => {
|
|
6932
6932
|
Ee(() => {
|
|
6933
6933
|
var A;
|
|
6934
6934
|
if (!o.value) {
|
|
6935
|
-
const
|
|
6936
|
-
|
|
6935
|
+
const _ = (A = n.value) == null ? void 0 : A.getClientRects().length;
|
|
6936
|
+
M.value = _ || 2;
|
|
6937
6937
|
}
|
|
6938
6938
|
});
|
|
6939
|
-
}), (A,
|
|
6940
|
-
s.value ? (v(),
|
|
6939
|
+
}), (A, _) => (v(), h("li", _5, [
|
|
6940
|
+
s.value ? (v(), j(_t, {
|
|
6941
6941
|
key: 0,
|
|
6942
6942
|
"user-name": s.value,
|
|
6943
6943
|
class: "ao-comment__avatar"
|
|
6944
6944
|
}, null, 8, ["user-name"])) : S("", !0),
|
|
6945
6945
|
d("div", g5, [
|
|
6946
6946
|
d("div", y5, [
|
|
6947
|
-
(v(),
|
|
6947
|
+
(v(), j(et(f.value), {
|
|
6948
6948
|
ref_key: "commentContent",
|
|
6949
6949
|
ref: n,
|
|
6950
6950
|
class: "ao-comment__content",
|
|
6951
6951
|
value: Z(o) ? A.content : null,
|
|
6952
|
-
rows: Z(o) ?
|
|
6952
|
+
rows: Z(o) ? M.value : null,
|
|
6953
6953
|
onKeyup: [
|
|
6954
6954
|
ze(Z(p), ["esc"]),
|
|
6955
|
-
ze(_e(Z(
|
|
6955
|
+
ze(_e(Z(C), ["ctrl"]), ["enter"])
|
|
6956
6956
|
]
|
|
6957
6957
|
}, {
|
|
6958
6958
|
default: R(() => [
|
|
@@ -6963,8 +6963,8 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6963
6963
|
]),
|
|
6964
6964
|
d("span", b5, q(u.value || c.value), 1)
|
|
6965
6965
|
]),
|
|
6966
|
-
A.isEditable ? (v(),
|
|
6967
|
-
Z(o) ? (v(),
|
|
6966
|
+
A.isEditable ? (v(), h("div", w5, [
|
|
6967
|
+
Z(o) ? (v(), h(ve, { key: 0 }, [
|
|
6968
6968
|
k(ce, {
|
|
6969
6969
|
"icon-name": "CloseRounded",
|
|
6970
6970
|
size: "sm",
|
|
@@ -6977,15 +6977,15 @@ const _5 = { class: "ao-comment" }, g5 = { class: "ao-comment__body" }, y5 = { c
|
|
|
6977
6977
|
size: "sm",
|
|
6978
6978
|
variant: "solid",
|
|
6979
6979
|
color: "neutral",
|
|
6980
|
-
onClick: Z(
|
|
6980
|
+
onClick: Z(C)
|
|
6981
6981
|
}, null, 8, ["onClick"])
|
|
6982
|
-
], 64)) : (v(),
|
|
6982
|
+
], 64)) : (v(), h(ve, { key: 1 }, [
|
|
6983
6983
|
k(ce, {
|
|
6984
6984
|
label: A.$t("activity.comment.delete"),
|
|
6985
6985
|
size: "sm",
|
|
6986
6986
|
variant: "ghost",
|
|
6987
6987
|
color: "neutral",
|
|
6988
|
-
onClick:
|
|
6988
|
+
onClick: $
|
|
6989
6989
|
}, null, 8, ["label"]),
|
|
6990
6990
|
k(ce, {
|
|
6991
6991
|
label: A.$t("activity.comment.edit"),
|
|
@@ -7016,7 +7016,7 @@ const M5 = {
|
|
|
7016
7016
|
Ee(() => {
|
|
7017
7017
|
n.value && (n.value.scrollTop = n.value.scrollHeight);
|
|
7018
7018
|
});
|
|
7019
|
-
const o = ct(t.newComment), i =
|
|
7019
|
+
const o = ct(t.newComment), i = w({
|
|
7020
7020
|
get() {
|
|
7021
7021
|
return o.value;
|
|
7022
7022
|
},
|
|
@@ -7036,22 +7036,22 @@ const M5 = {
|
|
|
7036
7036
|
};
|
|
7037
7037
|
return (u, f) => {
|
|
7038
7038
|
var p;
|
|
7039
|
-
return v(),
|
|
7039
|
+
return v(), h("div", {
|
|
7040
7040
|
ref_key: "commentsContainer",
|
|
7041
7041
|
ref: n,
|
|
7042
7042
|
class: "ao-comments"
|
|
7043
7043
|
}, [
|
|
7044
|
-
((p = u.comments) == null ? void 0 : p.length) > 0 ? (v(),
|
|
7045
|
-
(v(!0),
|
|
7046
|
-
key:
|
|
7047
|
-
user: s(
|
|
7048
|
-
content:
|
|
7049
|
-
"created-at":
|
|
7050
|
-
"edited-at":
|
|
7051
|
-
"is-editable":
|
|
7044
|
+
((p = u.comments) == null ? void 0 : p.length) > 0 ? (v(), h("ul", M5, [
|
|
7045
|
+
(v(!0), h(ve, null, ye(u.comments, (C) => (v(), j($5, {
|
|
7046
|
+
key: C.id,
|
|
7047
|
+
user: s(C.author.id),
|
|
7048
|
+
content: C.message,
|
|
7049
|
+
"created-at": C.createdAt,
|
|
7050
|
+
"edited-at": C.updatedAt,
|
|
7051
|
+
"is-editable": C.author.id === u.userId,
|
|
7052
7052
|
class: "ao-comment",
|
|
7053
|
-
onEdit: (
|
|
7054
|
-
onRemove: () => c(
|
|
7053
|
+
onEdit: ($) => r(C.id, $),
|
|
7054
|
+
onRemove: () => c(C.id)
|
|
7055
7055
|
}, null, 8, ["user", "content", "created-at", "edited-at", "is-editable", "onEdit", "onRemove"]))), 128))
|
|
7056
7056
|
])) : S("", !0),
|
|
7057
7057
|
d("div", k5, [
|
|
@@ -7062,7 +7062,7 @@ const M5 = {
|
|
|
7062
7062
|
d("label", T5, [
|
|
7063
7063
|
d("span", S5, q(u.$t("activity.comment.label")), 1),
|
|
7064
7064
|
dt(d("textarea", {
|
|
7065
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
7065
|
+
"onUpdate:modelValue": f[0] || (f[0] = (C) => i.value = C),
|
|
7066
7066
|
rows: "4",
|
|
7067
7067
|
class: "ao-field__textarea"
|
|
7068
7068
|
}, null, 512), [
|
|
@@ -7116,167 +7116,167 @@ const O5 = {
|
|
|
7116
7116
|
},
|
|
7117
7117
|
emits: ["update:activity", "close", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
7118
7118
|
setup(a, { emit: e }) {
|
|
7119
|
-
const t = a, s = (
|
|
7119
|
+
const t = a, s = (b) => {
|
|
7120
7120
|
e("update:activity", {
|
|
7121
7121
|
id: t.activity.id,
|
|
7122
|
-
name:
|
|
7122
|
+
name: b
|
|
7123
7123
|
});
|
|
7124
|
-
}, n =
|
|
7124
|
+
}, n = w({
|
|
7125
7125
|
get() {
|
|
7126
7126
|
return t.activity.description ?? "";
|
|
7127
7127
|
},
|
|
7128
|
-
set(
|
|
7129
|
-
e("update:activity", { id: t.activity.id, description:
|
|
7128
|
+
set(b) {
|
|
7129
|
+
e("update:activity", { id: t.activity.id, description: b });
|
|
7130
7130
|
}
|
|
7131
|
-
}), o =
|
|
7131
|
+
}), o = w({
|
|
7132
7132
|
get() {
|
|
7133
7133
|
return t.activity.estimation ?? 0;
|
|
7134
7134
|
},
|
|
7135
|
-
set(
|
|
7136
|
-
e("update:activity", { id: t.activity.id, estimation:
|
|
7135
|
+
set(b) {
|
|
7136
|
+
e("update:activity", { id: t.activity.id, estimation: b });
|
|
7137
7137
|
}
|
|
7138
|
-
}), i =
|
|
7138
|
+
}), i = w({
|
|
7139
7139
|
get() {
|
|
7140
7140
|
return t.activity.important ?? !1;
|
|
7141
7141
|
},
|
|
7142
|
-
set(
|
|
7143
|
-
e("update:activity", { id: t.activity.id, important:
|
|
7142
|
+
set(b) {
|
|
7143
|
+
e("update:activity", { id: t.activity.id, important: b });
|
|
7144
7144
|
}
|
|
7145
|
-
}), l =
|
|
7145
|
+
}), l = w({
|
|
7146
7146
|
get() {
|
|
7147
|
-
var
|
|
7148
|
-
return (
|
|
7147
|
+
var b;
|
|
7148
|
+
return (b = t.activity.type) == null ? void 0 : b.id;
|
|
7149
7149
|
},
|
|
7150
|
-
set(
|
|
7151
|
-
e("update:activity", { id: t.activity.id, typeId:
|
|
7150
|
+
set(b) {
|
|
7151
|
+
e("update:activity", { id: t.activity.id, typeId: b });
|
|
7152
7152
|
}
|
|
7153
|
-
}), r =
|
|
7154
|
-
label:
|
|
7155
|
-
value:
|
|
7156
|
-
}))), c =
|
|
7153
|
+
}), r = w(() => t.templateActivities.filter((b) => b.id !== t.activity.id).map((b) => ({
|
|
7154
|
+
label: b.name,
|
|
7155
|
+
value: b.id
|
|
7156
|
+
}))), c = w({
|
|
7157
7157
|
get() {
|
|
7158
|
-
var
|
|
7159
|
-
return (
|
|
7158
|
+
var b;
|
|
7159
|
+
return (b = t.activity.dependingOn) == null ? void 0 : b.map((T) => T.id);
|
|
7160
7160
|
},
|
|
7161
|
-
set(
|
|
7162
|
-
|
|
7161
|
+
set(b) {
|
|
7162
|
+
b && e("update:activity", {
|
|
7163
7163
|
id: t.activity.id,
|
|
7164
|
-
dependingOn:
|
|
7164
|
+
dependingOn: b
|
|
7165
7165
|
});
|
|
7166
7166
|
}
|
|
7167
|
-
}), u =
|
|
7167
|
+
}), u = w(() => r.value.map((b) => {
|
|
7168
7168
|
var T;
|
|
7169
7169
|
return {
|
|
7170
|
-
...
|
|
7171
|
-
disabled: (T = t.activity.blocking) == null ? void 0 : T.some((P) => P.id ===
|
|
7170
|
+
...b,
|
|
7171
|
+
disabled: (T = t.activity.blocking) == null ? void 0 : T.some((P) => P.id === b.value)
|
|
7172
7172
|
};
|
|
7173
|
-
})), f =
|
|
7173
|
+
})), f = w({
|
|
7174
7174
|
get() {
|
|
7175
|
-
var
|
|
7176
|
-
return (
|
|
7175
|
+
var b;
|
|
7176
|
+
return (b = t.activity.blocking) == null ? void 0 : b.map((T) => T.id);
|
|
7177
7177
|
},
|
|
7178
|
-
set(
|
|
7179
|
-
|
|
7178
|
+
set(b) {
|
|
7179
|
+
b && e("update:activity", {
|
|
7180
7180
|
id: t.activity.id,
|
|
7181
|
-
blocking:
|
|
7181
|
+
blocking: b
|
|
7182
7182
|
});
|
|
7183
7183
|
}
|
|
7184
|
-
}), p =
|
|
7184
|
+
}), p = w(() => r.value.map((b) => {
|
|
7185
7185
|
var T;
|
|
7186
7186
|
return {
|
|
7187
|
-
...
|
|
7188
|
-
disabled: (T = t.activity.dependingOn) == null ? void 0 : T.some((P) => P.id ===
|
|
7187
|
+
...b,
|
|
7188
|
+
disabled: (T = t.activity.dependingOn) == null ? void 0 : T.some((P) => P.id === b.value)
|
|
7189
7189
|
};
|
|
7190
|
-
})),
|
|
7190
|
+
})), C = w(() => (t.templateMilestones || []).filter((T) => T.id !== t.milestoneId).map((T) => ({
|
|
7191
7191
|
label: T.name,
|
|
7192
7192
|
value: T.id
|
|
7193
|
-
}))),
|
|
7193
|
+
}))), $ = w({
|
|
7194
7194
|
get() {
|
|
7195
7195
|
return t.activity.dependingMilestones;
|
|
7196
7196
|
},
|
|
7197
|
-
set(
|
|
7197
|
+
set(b) {
|
|
7198
7198
|
e("update:activity", {
|
|
7199
7199
|
id: t.activity.id,
|
|
7200
|
-
dependingMilestones:
|
|
7200
|
+
dependingMilestones: b
|
|
7201
7201
|
});
|
|
7202
7202
|
}
|
|
7203
|
-
}),
|
|
7204
|
-
e("addSubtask",
|
|
7205
|
-
}, A = (
|
|
7206
|
-
e("updateSubtask",
|
|
7207
|
-
},
|
|
7208
|
-
e("deleteSubtask",
|
|
7209
|
-
},
|
|
7210
|
-
var
|
|
7211
|
-
return ((
|
|
7203
|
+
}), M = (b) => {
|
|
7204
|
+
e("addSubtask", b);
|
|
7205
|
+
}, A = (b) => {
|
|
7206
|
+
e("updateSubtask", b);
|
|
7207
|
+
}, _ = (b) => {
|
|
7208
|
+
e("deleteSubtask", b);
|
|
7209
|
+
}, y = w(() => {
|
|
7210
|
+
var b;
|
|
7211
|
+
return ((b = t.users) == null ? void 0 : b.map((T) => ({
|
|
7212
7212
|
label: `${T.firstName} ${T.lastName}`,
|
|
7213
7213
|
value: T.id
|
|
7214
7214
|
}))) || [];
|
|
7215
|
-
}), V =
|
|
7215
|
+
}), V = w({
|
|
7216
7216
|
get() {
|
|
7217
|
-
var
|
|
7218
|
-
return (
|
|
7217
|
+
var b, T;
|
|
7218
|
+
return (b = t.activity.assignee) != null && b.id ? [(T = t.activity.assignee) == null ? void 0 : T.id] : [];
|
|
7219
7219
|
},
|
|
7220
|
-
set(
|
|
7220
|
+
set(b) {
|
|
7221
7221
|
e("update:activity", {
|
|
7222
7222
|
id: t.activity.id,
|
|
7223
|
-
assigneeId:
|
|
7223
|
+
assigneeId: b[0]
|
|
7224
7224
|
});
|
|
7225
7225
|
}
|
|
7226
|
-
}),
|
|
7226
|
+
}), U = (b) => {
|
|
7227
7227
|
e("addFiles", {
|
|
7228
7228
|
activityId: t.activity.id,
|
|
7229
|
-
files:
|
|
7229
|
+
files: b
|
|
7230
7230
|
});
|
|
7231
|
-
}, F = (
|
|
7231
|
+
}, F = (b) => {
|
|
7232
7232
|
e("removeFile", {
|
|
7233
7233
|
activityId: t.activity.id,
|
|
7234
|
-
file:
|
|
7234
|
+
file: b
|
|
7235
7235
|
});
|
|
7236
|
-
}, H =
|
|
7237
|
-
var
|
|
7238
|
-
return (
|
|
7236
|
+
}, H = w(() => {
|
|
7237
|
+
var b;
|
|
7238
|
+
return (b = t.statuses) == null ? void 0 : b.map((T) => ({
|
|
7239
7239
|
value: T.id,
|
|
7240
7240
|
label: T.name
|
|
7241
7241
|
}));
|
|
7242
|
-
}), O = (
|
|
7242
|
+
}), O = (b) => {
|
|
7243
7243
|
e("update:activity", {
|
|
7244
7244
|
id: t.activity.id,
|
|
7245
|
-
statusId:
|
|
7245
|
+
statusId: b
|
|
7246
7246
|
});
|
|
7247
|
-
}, z = (
|
|
7247
|
+
}, z = (b) => {
|
|
7248
7248
|
e("addComment", {
|
|
7249
|
-
...
|
|
7249
|
+
...b,
|
|
7250
7250
|
activityId: t.activity.id
|
|
7251
7251
|
});
|
|
7252
|
-
}, K = (
|
|
7253
|
-
e("updateComment",
|
|
7254
|
-
}, ie = (
|
|
7255
|
-
e("removeComment",
|
|
7252
|
+
}, K = (b) => {
|
|
7253
|
+
e("updateComment", b);
|
|
7254
|
+
}, ie = (b) => {
|
|
7255
|
+
e("removeComment", b);
|
|
7256
7256
|
};
|
|
7257
|
-
return (
|
|
7258
|
-
onClose: T[8] || (T[8] = (P) =>
|
|
7257
|
+
return (b, T) => (v(), j(O1, {
|
|
7258
|
+
onClose: T[8] || (T[8] = (P) => b.$emit("close"))
|
|
7259
7259
|
}, {
|
|
7260
7260
|
header: R(() => [
|
|
7261
|
-
|
|
7261
|
+
b.breadcrumbs ? (v(), h("div", O5, q(b.breadcrumbs), 1)) : S("", !0),
|
|
7262
7262
|
k(me, {
|
|
7263
|
-
title:
|
|
7263
|
+
title: b.activity.name || "",
|
|
7264
7264
|
level: 4,
|
|
7265
|
-
"is-editable":
|
|
7265
|
+
"is-editable": b.isEditable,
|
|
7266
7266
|
"onUpdate:title": s
|
|
7267
7267
|
}, null, 8, ["title", "is-editable"]),
|
|
7268
|
-
ee(
|
|
7268
|
+
ee(b.$slots, "header", {}, () => {
|
|
7269
7269
|
var P;
|
|
7270
7270
|
return [
|
|
7271
|
-
H.value ? (v(),
|
|
7272
|
-
d("span", V5, q(
|
|
7271
|
+
H.value ? (v(), h("label", L5, [
|
|
7272
|
+
d("span", V5, q(b.$t("activity.status.label")), 1),
|
|
7273
7273
|
k(be, {
|
|
7274
7274
|
options: H.value,
|
|
7275
|
-
value: (P =
|
|
7275
|
+
value: (P = b.activity.status) == null ? void 0 : P.id,
|
|
7276
7276
|
"can-clear": !1,
|
|
7277
7277
|
"can-deselect": !1,
|
|
7278
|
-
disabled: !
|
|
7279
|
-
caret:
|
|
7278
|
+
disabled: !b.isEditable,
|
|
7279
|
+
caret: b.isEditable,
|
|
7280
7280
|
onChange: O
|
|
7281
7281
|
}, null, 8, ["options", "value", "disabled", "caret"])
|
|
7282
7282
|
])) : S("", !0)
|
|
@@ -7288,10 +7288,10 @@ const O5 = {
|
|
|
7288
7288
|
d("fieldset", D5, [
|
|
7289
7289
|
d("div", P5, [
|
|
7290
7290
|
d("label", B5, [
|
|
7291
|
-
d("span", N5, q(
|
|
7291
|
+
d("span", N5, q(b.$t("activity.description.label")), 1),
|
|
7292
7292
|
dt(d("textarea", {
|
|
7293
7293
|
"onUpdate:modelValue": T[0] || (T[0] = (P) => n.value = P),
|
|
7294
|
-
readonly: !
|
|
7294
|
+
readonly: !b.isEditable,
|
|
7295
7295
|
rows: "4",
|
|
7296
7296
|
class: "ao-field__textarea"
|
|
7297
7297
|
}, null, 8, R5), [
|
|
@@ -7309,10 +7309,10 @@ const O5 = {
|
|
|
7309
7309
|
]),
|
|
7310
7310
|
d("div", U5, [
|
|
7311
7311
|
d("label", j5, [
|
|
7312
|
-
d("span", Z5, q(
|
|
7312
|
+
d("span", Z5, q(b.$t("activity.estimation.label")), 1),
|
|
7313
7313
|
dt(d("input", {
|
|
7314
7314
|
"onUpdate:modelValue": T[1] || (T[1] = (P) => o.value = P),
|
|
7315
|
-
readonly: !
|
|
7315
|
+
readonly: !b.isEditable,
|
|
7316
7316
|
class: "ao-field__input",
|
|
7317
7317
|
type: "number",
|
|
7318
7318
|
min: "0"
|
|
@@ -7329,10 +7329,10 @@ const O5 = {
|
|
|
7329
7329
|
])
|
|
7330
7330
|
]),
|
|
7331
7331
|
d("label", q5, [
|
|
7332
|
-
d("span", W5, q(
|
|
7332
|
+
d("span", W5, q(b.$t("activity.important.label")), 1),
|
|
7333
7333
|
dt(d("input", {
|
|
7334
7334
|
"onUpdate:modelValue": T[2] || (T[2] = (P) => i.value = P),
|
|
7335
|
-
disabled: !
|
|
7335
|
+
disabled: !b.isEditable,
|
|
7336
7336
|
class: "ao-field__input",
|
|
7337
7337
|
type: "checkbox"
|
|
7338
7338
|
}, null, 8, z5), [
|
|
@@ -7351,7 +7351,7 @@ const O5 = {
|
|
|
7351
7351
|
k(de, { name: "AccountBoxSharp" }),
|
|
7352
7352
|
k(me, {
|
|
7353
7353
|
level: 4,
|
|
7354
|
-
title:
|
|
7354
|
+
title: b.$t("activity.assignee.title")
|
|
7355
7355
|
}, null, 8, ["title"])
|
|
7356
7356
|
]),
|
|
7357
7357
|
d("div", K5, [
|
|
@@ -7360,15 +7360,15 @@ const O5 = {
|
|
|
7360
7360
|
k(be, {
|
|
7361
7361
|
modelValue: V.value,
|
|
7362
7362
|
"onUpdate:modelValue": T[3] || (T[3] = (P) => V.value = P),
|
|
7363
|
-
options:
|
|
7363
|
+
options: y.value,
|
|
7364
7364
|
"close-on-select": !1,
|
|
7365
7365
|
searchable: !0,
|
|
7366
7366
|
max: 1,
|
|
7367
7367
|
class: "ao-activity-details__assignees",
|
|
7368
|
-
placeholder:
|
|
7368
|
+
placeholder: b.$t("activity.filters.assignee.placeholder"),
|
|
7369
7369
|
mode: "tags",
|
|
7370
|
-
disabled: !
|
|
7371
|
-
caret:
|
|
7370
|
+
disabled: !b.isEditable,
|
|
7371
|
+
caret: b.isEditable
|
|
7372
7372
|
}, {
|
|
7373
7373
|
tag: R(({ option: P, handleTagRemove: le }) => [
|
|
7374
7374
|
k(_t, {
|
|
@@ -7388,20 +7388,20 @@ const O5 = {
|
|
|
7388
7388
|
k(de, { name: "SelectCheckBox" }),
|
|
7389
7389
|
k(me, {
|
|
7390
7390
|
level: 4,
|
|
7391
|
-
title:
|
|
7391
|
+
title: b.$t("activity.tasks.title")
|
|
7392
7392
|
}, null, 8, ["title"])
|
|
7393
7393
|
]),
|
|
7394
7394
|
d("div", e7, [
|
|
7395
7395
|
k(r5, {
|
|
7396
7396
|
class: "ao-activity-details__tasks ao-field__row",
|
|
7397
|
-
tasks:
|
|
7398
|
-
"activity-id":
|
|
7399
|
-
users:
|
|
7400
|
-
"is-checkable":
|
|
7401
|
-
"is-editable":
|
|
7402
|
-
onAdd:
|
|
7397
|
+
tasks: b.activity.tasks || [],
|
|
7398
|
+
"activity-id": b.activity.id,
|
|
7399
|
+
users: b.users,
|
|
7400
|
+
"is-checkable": b.isTaskCheckable,
|
|
7401
|
+
"is-editable": b.isEditable,
|
|
7402
|
+
onAdd: M,
|
|
7403
7403
|
onUpdate: A,
|
|
7404
|
-
onDelete:
|
|
7404
|
+
onDelete: _
|
|
7405
7405
|
}, null, 8, ["tasks", "activity-id", "users", "is-checkable", "is-editable"])
|
|
7406
7406
|
])
|
|
7407
7407
|
]),
|
|
@@ -7410,13 +7410,13 @@ const O5 = {
|
|
|
7410
7410
|
k(de, { name: "FlowsheetOutlineRounded" }),
|
|
7411
7411
|
k(me, {
|
|
7412
7412
|
level: 4,
|
|
7413
|
-
title:
|
|
7413
|
+
title: b.$t("activity.dependencies.title")
|
|
7414
7414
|
}, null, 8, ["title"])
|
|
7415
7415
|
]),
|
|
7416
7416
|
d("div", n7, [
|
|
7417
7417
|
d("div", s7, [
|
|
7418
7418
|
d("label", i7, [
|
|
7419
|
-
d("span", o7, q(
|
|
7419
|
+
d("span", o7, q(b.$t("activity.dependingOn.label")), 1),
|
|
7420
7420
|
k(be, {
|
|
7421
7421
|
modelValue: c.value,
|
|
7422
7422
|
"onUpdate:modelValue": T[4] || (T[4] = (P) => c.value = P),
|
|
@@ -7424,14 +7424,14 @@ const O5 = {
|
|
|
7424
7424
|
"close-on-select": !1,
|
|
7425
7425
|
searchable: !0,
|
|
7426
7426
|
options: u.value,
|
|
7427
|
-
disabled: !
|
|
7428
|
-
caret:
|
|
7427
|
+
disabled: !b.isEditable,
|
|
7428
|
+
caret: b.isEditable
|
|
7429
7429
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7430
7430
|
])
|
|
7431
7431
|
]),
|
|
7432
7432
|
d("div", l7, [
|
|
7433
7433
|
d("label", r7, [
|
|
7434
|
-
d("span", u7, q(
|
|
7434
|
+
d("span", u7, q(b.$t("activity.blocking.label")), 1),
|
|
7435
7435
|
k(be, {
|
|
7436
7436
|
modelValue: f.value,
|
|
7437
7437
|
"onUpdate:modelValue": T[5] || (T[5] = (P) => f.value = P),
|
|
@@ -7439,23 +7439,23 @@ const O5 = {
|
|
|
7439
7439
|
"close-on-select": !1,
|
|
7440
7440
|
searchable: !0,
|
|
7441
7441
|
options: p.value,
|
|
7442
|
-
disabled: !
|
|
7443
|
-
caret:
|
|
7442
|
+
disabled: !b.isEditable,
|
|
7443
|
+
caret: b.isEditable
|
|
7444
7444
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7445
7445
|
])
|
|
7446
7446
|
]),
|
|
7447
7447
|
d("div", c7, [
|
|
7448
7448
|
d("label", d7, [
|
|
7449
|
-
d("span", f7, q(
|
|
7449
|
+
d("span", f7, q(b.$t("activity.dependingMilestone.label")), 1),
|
|
7450
7450
|
k(be, {
|
|
7451
|
-
modelValue:
|
|
7452
|
-
"onUpdate:modelValue": T[6] || (T[6] = (P) =>
|
|
7451
|
+
modelValue: $.value,
|
|
7452
|
+
"onUpdate:modelValue": T[6] || (T[6] = (P) => $.value = P),
|
|
7453
7453
|
mode: "tags",
|
|
7454
7454
|
"close-on-select": !1,
|
|
7455
7455
|
searchable: !0,
|
|
7456
|
-
options:
|
|
7457
|
-
disabled: !
|
|
7458
|
-
caret:
|
|
7456
|
+
options: C.value,
|
|
7457
|
+
disabled: !b.isEditable,
|
|
7458
|
+
caret: b.isEditable
|
|
7459
7459
|
}, null, 8, ["modelValue", "options", "disabled", "caret"])
|
|
7460
7460
|
])
|
|
7461
7461
|
])
|
|
@@ -7464,47 +7464,47 @@ const O5 = {
|
|
|
7464
7464
|
d("fieldset", v7, [
|
|
7465
7465
|
d("div", p7, [
|
|
7466
7466
|
d("label", h7, [
|
|
7467
|
-
d("span", m7, q(
|
|
7467
|
+
d("span", m7, q(b.$t("activity.type.label")), 1),
|
|
7468
7468
|
k(be, {
|
|
7469
7469
|
modelValue: l.value,
|
|
7470
7470
|
"onUpdate:modelValue": T[7] || (T[7] = (P) => l.value = P),
|
|
7471
7471
|
mode: "single",
|
|
7472
7472
|
searchable: !0,
|
|
7473
|
-
options:
|
|
7474
|
-
placeholder:
|
|
7475
|
-
disabled: !
|
|
7476
|
-
caret:
|
|
7473
|
+
options: b.activityTypes,
|
|
7474
|
+
placeholder: b.$t("activity.filters.type.placeholder"),
|
|
7475
|
+
disabled: !b.isEditable,
|
|
7476
|
+
caret: b.isEditable
|
|
7477
7477
|
}, null, 8, ["modelValue", "options", "placeholder", "disabled", "caret"])
|
|
7478
7478
|
])
|
|
7479
7479
|
]),
|
|
7480
|
-
ee(
|
|
7480
|
+
ee(b.$slots, "default")
|
|
7481
7481
|
])
|
|
7482
7482
|
]),
|
|
7483
|
-
|
|
7483
|
+
b.isTemplate !== !0 && b.userId ? (v(), h("div", C7, [
|
|
7484
7484
|
d("div", _7, [
|
|
7485
7485
|
k(de, { name: "AttachFileRounded" }),
|
|
7486
7486
|
k(me, {
|
|
7487
7487
|
level: 4,
|
|
7488
|
-
title:
|
|
7488
|
+
title: b.$t("activity.attachments.title")
|
|
7489
7489
|
}, null, 8, ["title"])
|
|
7490
7490
|
]),
|
|
7491
7491
|
k(C5, {
|
|
7492
|
-
attachments:
|
|
7493
|
-
"is-editable":
|
|
7494
|
-
onAdd:
|
|
7492
|
+
attachments: b.activity.attachments,
|
|
7493
|
+
"is-editable": b.isEditable,
|
|
7494
|
+
onAdd: U,
|
|
7495
7495
|
onRemove: F
|
|
7496
7496
|
}, null, 8, ["attachments", "is-editable"]),
|
|
7497
7497
|
d("div", g7, [
|
|
7498
7498
|
k(de, { name: "ChatOutline" }),
|
|
7499
7499
|
k(me, {
|
|
7500
7500
|
level: 4,
|
|
7501
|
-
title:
|
|
7501
|
+
title: b.$t("activity.comments.title")
|
|
7502
7502
|
}, null, 8, ["title"])
|
|
7503
7503
|
]),
|
|
7504
7504
|
k(I5, {
|
|
7505
|
-
comments:
|
|
7506
|
-
users:
|
|
7507
|
-
"user-id":
|
|
7505
|
+
comments: b.activity.comments,
|
|
7506
|
+
users: b.users,
|
|
7507
|
+
"user-id": b.userId,
|
|
7508
7508
|
onCreateComment: z,
|
|
7509
7509
|
onUpdateComment: K,
|
|
7510
7510
|
onRemoveComment: ie
|
|
@@ -7568,111 +7568,111 @@ const j4 = {
|
|
|
7568
7568
|
setup(a, { emit: e }) {
|
|
7569
7569
|
const t = a, s = ct(
|
|
7570
7570
|
t.rule.itemType || he.ACTIVITIES
|
|
7571
|
-
), n =
|
|
7571
|
+
), n = w({
|
|
7572
7572
|
get() {
|
|
7573
7573
|
return s.value;
|
|
7574
7574
|
},
|
|
7575
|
-
set(
|
|
7576
|
-
s.value =
|
|
7575
|
+
set(_) {
|
|
7576
|
+
s.value = _, e("update:rule", {
|
|
7577
7577
|
...t.rule,
|
|
7578
|
-
itemType:
|
|
7578
|
+
itemType: _,
|
|
7579
7579
|
subItemId: void 0
|
|
7580
7580
|
});
|
|
7581
7581
|
}
|
|
7582
|
-
}), o =
|
|
7582
|
+
}), o = w(() => Object.values(he)), i = w({
|
|
7583
7583
|
get() {
|
|
7584
7584
|
return t.rule.subItemId;
|
|
7585
7585
|
},
|
|
7586
|
-
set(
|
|
7586
|
+
set(_) {
|
|
7587
7587
|
e("update:rule", {
|
|
7588
7588
|
...t.rule,
|
|
7589
|
-
subItemId:
|
|
7589
|
+
subItemId: _,
|
|
7590
7590
|
itemType: t.rule.itemType || n.value
|
|
7591
7591
|
});
|
|
7592
7592
|
}
|
|
7593
|
-
}), l =
|
|
7594
|
-
var
|
|
7595
|
-
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (
|
|
7593
|
+
}), l = w(() => {
|
|
7594
|
+
var y;
|
|
7595
|
+
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (y = {
|
|
7596
7596
|
[he.ACTIVITIES]: t.templateActivities,
|
|
7597
7597
|
[he.MILESTONES]: t.templateMilestones,
|
|
7598
7598
|
[he.PHASES]: t.templatePhases
|
|
7599
|
-
}[s.value]) == null ? void 0 :
|
|
7599
|
+
}[s.value]) == null ? void 0 : y.map((V) => ({
|
|
7600
7600
|
value: V.id,
|
|
7601
7601
|
label: V.name
|
|
7602
7602
|
}));
|
|
7603
|
-
}), r = ct(t.rule.comparator), c =
|
|
7603
|
+
}), r = ct(t.rule.comparator), c = w({
|
|
7604
7604
|
get() {
|
|
7605
7605
|
return r.value;
|
|
7606
7606
|
},
|
|
7607
|
-
set(
|
|
7608
|
-
e("update:rule", { ...t.rule, comparator:
|
|
7607
|
+
set(_) {
|
|
7608
|
+
e("update:rule", { ...t.rule, comparator: _ });
|
|
7609
7609
|
}
|
|
7610
|
-
}), u =
|
|
7610
|
+
}), u = w(() => Object.values(b7)), f = ct(t.rule.trigger), p = w({
|
|
7611
7611
|
get() {
|
|
7612
7612
|
return f.value;
|
|
7613
7613
|
},
|
|
7614
|
-
set(
|
|
7615
|
-
e("update:rule", { ...t.rule, trigger:
|
|
7614
|
+
set(_) {
|
|
7615
|
+
e("update:rule", { ...t.rule, trigger: _ });
|
|
7616
7616
|
}
|
|
7617
|
-
}),
|
|
7617
|
+
}), C = w(() => Object.values(w7)), $ = w({
|
|
7618
7618
|
get() {
|
|
7619
7619
|
return t.rule.duration;
|
|
7620
7620
|
},
|
|
7621
|
-
set(
|
|
7622
|
-
e("update:rule", { ...t.rule, duration:
|
|
7621
|
+
set(_) {
|
|
7622
|
+
e("update:rule", { ...t.rule, duration: _ });
|
|
7623
7623
|
}
|
|
7624
|
-
}),
|
|
7624
|
+
}), M = w({
|
|
7625
7625
|
get() {
|
|
7626
7626
|
return t.rule.durationUnit;
|
|
7627
7627
|
},
|
|
7628
|
-
set(
|
|
7629
|
-
e("update:rule", { ...t.rule, durationUnit:
|
|
7628
|
+
set(_) {
|
|
7629
|
+
e("update:rule", { ...t.rule, durationUnit: _ });
|
|
7630
7630
|
}
|
|
7631
|
-
}), A =
|
|
7632
|
-
return (
|
|
7631
|
+
}), A = w(() => Object.values($7));
|
|
7632
|
+
return (_, y) => (v(), j(et(_.tagName), { class: "ao-rule-line" }, {
|
|
7633
7633
|
default: R(() => [
|
|
7634
7634
|
k(Z(We), {
|
|
7635
7635
|
modelValue: n.value,
|
|
7636
|
-
"onUpdate:modelValue":
|
|
7636
|
+
"onUpdate:modelValue": y[0] || (y[0] = (V) => n.value = V),
|
|
7637
7637
|
options: o.value
|
|
7638
7638
|
}, null, 8, ["modelValue", "options"]),
|
|
7639
7639
|
k(Z(We), {
|
|
7640
7640
|
modelValue: i.value,
|
|
7641
|
-
"onUpdate:modelValue":
|
|
7641
|
+
"onUpdate:modelValue": y[1] || (y[1] = (V) => i.value = V),
|
|
7642
7642
|
options: l.value
|
|
7643
7643
|
}, null, 8, ["modelValue", "options"]),
|
|
7644
7644
|
k(Z(We), {
|
|
7645
7645
|
modelValue: p.value,
|
|
7646
|
-
"onUpdate:modelValue":
|
|
7647
|
-
options:
|
|
7646
|
+
"onUpdate:modelValue": y[2] || (y[2] = (V) => p.value = V),
|
|
7647
|
+
options: C.value
|
|
7648
7648
|
}, null, 8, ["modelValue", "options"]),
|
|
7649
7649
|
k(Z(We), {
|
|
7650
7650
|
modelValue: c.value,
|
|
7651
|
-
"onUpdate:modelValue":
|
|
7651
|
+
"onUpdate:modelValue": y[3] || (y[3] = (V) => c.value = V),
|
|
7652
7652
|
options: u.value
|
|
7653
7653
|
}, null, 8, ["modelValue", "options"]),
|
|
7654
7654
|
dt(d("input", {
|
|
7655
|
-
"onUpdate:modelValue":
|
|
7655
|
+
"onUpdate:modelValue": y[4] || (y[4] = (V) => $.value = V),
|
|
7656
7656
|
type: "number",
|
|
7657
7657
|
min: "0"
|
|
7658
7658
|
}, null, 512), [
|
|
7659
7659
|
[
|
|
7660
7660
|
Et,
|
|
7661
|
-
|
|
7661
|
+
$.value,
|
|
7662
7662
|
void 0,
|
|
7663
7663
|
{ number: !0 }
|
|
7664
7664
|
]
|
|
7665
7665
|
]),
|
|
7666
7666
|
k(Z(We), {
|
|
7667
|
-
modelValue:
|
|
7668
|
-
"onUpdate:modelValue":
|
|
7667
|
+
modelValue: M.value,
|
|
7668
|
+
"onUpdate:modelValue": y[5] || (y[5] = (V) => M.value = V),
|
|
7669
7669
|
options: A.value
|
|
7670
7670
|
}, null, 8, ["modelValue", "options"]),
|
|
7671
7671
|
k(ce, {
|
|
7672
7672
|
class: "ao-rule-line__remove",
|
|
7673
7673
|
"icon-name": "CloseRounded",
|
|
7674
7674
|
variant: "ghost",
|
|
7675
|
-
onClick:
|
|
7675
|
+
onClick: y[6] || (y[6] = (V) => _.$emit("close"))
|
|
7676
7676
|
})
|
|
7677
7677
|
]),
|
|
7678
7678
|
_: 1
|
|
@@ -7695,7 +7695,7 @@ const A7 = { class: "ao-template-rules__body" }, T7 = { class: "ao-template-rule
|
|
|
7695
7695
|
}, s = (n) => {
|
|
7696
7696
|
e("removeRule", n);
|
|
7697
7697
|
};
|
|
7698
|
-
return (n, o) => (v(),
|
|
7698
|
+
return (n, o) => (v(), j(O1, null, {
|
|
7699
7699
|
header: R(() => [
|
|
7700
7700
|
k(me, {
|
|
7701
7701
|
title: n.$t("template.rules.title"),
|
|
@@ -7705,7 +7705,7 @@ const A7 = { class: "ao-template-rules__body" }, T7 = { class: "ao-template-rule
|
|
|
7705
7705
|
default: R(() => [
|
|
7706
7706
|
d("div", A7, [
|
|
7707
7707
|
d("ul", T7, [
|
|
7708
|
-
(v(!0),
|
|
7708
|
+
(v(!0), h(ve, null, ye(n.rules, (i) => (v(), j(k7, {
|
|
7709
7709
|
key: i.id,
|
|
7710
7710
|
rule: i,
|
|
7711
7711
|
"template-phases": n.templatePhases,
|
|
@@ -7749,7 +7749,7 @@ const E7 = {
|
|
|
7749
7749
|
},
|
|
7750
7750
|
emits: ["addItem", "removeItem", "updateItem", "addRule", "removeRule", "addFiles", "removeFile"],
|
|
7751
7751
|
setup(a, { emit: e }) {
|
|
7752
|
-
const t = a, { t: s } = at(), n =
|
|
7752
|
+
const t = a, { t: s } = at(), n = w(
|
|
7753
7753
|
() => {
|
|
7754
7754
|
var E;
|
|
7755
7755
|
return (E = t.templates) == null ? void 0 : E.find((L) => L.id === t.templateId);
|
|
@@ -7761,9 +7761,9 @@ const E7 = {
|
|
|
7761
7761
|
}, (E, L) => {
|
|
7762
7762
|
o.value && Re(E, L);
|
|
7763
7763
|
});
|
|
7764
|
-
const i =
|
|
7764
|
+
const i = w(() => {
|
|
7765
7765
|
var E, L;
|
|
7766
|
-
return (L = (E = n == null ? void 0 : n.value) == null ? void 0 : E.phases) == null ? void 0 : L.find((
|
|
7766
|
+
return (L = (E = n == null ? void 0 : n.value) == null ? void 0 : E.phases) == null ? void 0 : L.find((g) => g.id === t.phaseId);
|
|
7767
7767
|
});
|
|
7768
7768
|
re(() => {
|
|
7769
7769
|
var E;
|
|
@@ -7771,10 +7771,10 @@ const E7 = {
|
|
|
7771
7771
|
}, (E, L) => {
|
|
7772
7772
|
o.value && Re(E, L);
|
|
7773
7773
|
});
|
|
7774
|
-
const l =
|
|
7774
|
+
const l = w(() => {
|
|
7775
7775
|
var E, L;
|
|
7776
7776
|
return (L = (E = i.value) == null ? void 0 : E.milestones) == null ? void 0 : L.find(
|
|
7777
|
-
(
|
|
7777
|
+
(g) => g.id === t.milestoneId
|
|
7778
7778
|
);
|
|
7779
7779
|
});
|
|
7780
7780
|
re(() => {
|
|
@@ -7783,36 +7783,36 @@ const E7 = {
|
|
|
7783
7783
|
}, (E, L) => {
|
|
7784
7784
|
o.value && Re(E, L);
|
|
7785
7785
|
});
|
|
7786
|
-
const r =
|
|
7786
|
+
const r = w(() => {
|
|
7787
7787
|
var E, L;
|
|
7788
|
-
return ((L = (E = n.value) == null ? void 0 : E.phases) == null ? void 0 : L.reduce((
|
|
7788
|
+
return ((L = (E = n.value) == null ? void 0 : E.phases) == null ? void 0 : L.reduce((g, N) => {
|
|
7789
7789
|
const fe = N.milestones || [];
|
|
7790
|
-
return [...
|
|
7790
|
+
return [...g, ...fe];
|
|
7791
7791
|
}, [])) || [];
|
|
7792
|
-
}), c =
|
|
7792
|
+
}), c = w(() => {
|
|
7793
7793
|
var E, L;
|
|
7794
|
-
return ((L = (E = n.value) == null ? void 0 : E.phases) == null ? void 0 : L.reduce((
|
|
7794
|
+
return ((L = (E = n.value) == null ? void 0 : E.phases) == null ? void 0 : L.reduce((g, N) => {
|
|
7795
7795
|
const te = (N.milestones || []).reduce(
|
|
7796
7796
|
(J, x) => x.activities ? [...J, ...x.activities] : J,
|
|
7797
7797
|
[]
|
|
7798
7798
|
);
|
|
7799
|
-
return [...
|
|
7799
|
+
return [...g, ...te];
|
|
7800
7800
|
}, [])) || [];
|
|
7801
|
-
}), u =
|
|
7801
|
+
}), u = w(() => {
|
|
7802
7802
|
var E, L;
|
|
7803
7803
|
return (L = (E = l.value) == null ? void 0 : E.activities) == null ? void 0 : L.find(
|
|
7804
|
-
(
|
|
7804
|
+
(g) => g.id === t.activityId
|
|
7805
7805
|
);
|
|
7806
|
-
}), f =
|
|
7806
|
+
}), f = w(() => {
|
|
7807
7807
|
var E;
|
|
7808
7808
|
return ((E = t.activityTypes) == null ? void 0 : E.map((L) => ({
|
|
7809
7809
|
label: L.name,
|
|
7810
7810
|
value: L.id
|
|
7811
7811
|
}))) || [];
|
|
7812
|
-
}), p =
|
|
7812
|
+
}), p = w(() => {
|
|
7813
7813
|
var E;
|
|
7814
7814
|
return ((E = n.value) == null ? void 0 : E.name) || t.templateId;
|
|
7815
|
-
}),
|
|
7815
|
+
}), C = () => {
|
|
7816
7816
|
if (!n.value)
|
|
7817
7817
|
return;
|
|
7818
7818
|
const { name: E, rank: L } = vt(
|
|
@@ -7828,14 +7828,14 @@ const E7 = {
|
|
|
7828
7828
|
rank: L
|
|
7829
7829
|
}
|
|
7830
7830
|
});
|
|
7831
|
-
},
|
|
7831
|
+
}, $ = (E) => {
|
|
7832
7832
|
e("updateItem", {
|
|
7833
7833
|
templateId: t.templateId,
|
|
7834
7834
|
id: t.templateId,
|
|
7835
7835
|
itemType: he.TEMPLATES,
|
|
7836
7836
|
data: { name: E }
|
|
7837
7837
|
});
|
|
7838
|
-
},
|
|
7838
|
+
}, M = (E) => {
|
|
7839
7839
|
e("removeItem", {
|
|
7840
7840
|
type: he.PHASES,
|
|
7841
7841
|
templateId: t.templateId,
|
|
@@ -7850,12 +7850,12 @@ const E7 = {
|
|
|
7850
7850
|
itemType: he.PHASES,
|
|
7851
7851
|
data: { name: L }
|
|
7852
7852
|
});
|
|
7853
|
-
},
|
|
7853
|
+
}, _ = (E) => {
|
|
7854
7854
|
e("updateItem", E);
|
|
7855
|
-
},
|
|
7855
|
+
}, y = (E) => {
|
|
7856
7856
|
if (!i.value)
|
|
7857
7857
|
return;
|
|
7858
|
-
const { name: L, rank:
|
|
7858
|
+
const { name: L, rank: g } = vt(
|
|
7859
7859
|
i.value.milestones,
|
|
7860
7860
|
"milestone",
|
|
7861
7861
|
s
|
|
@@ -7866,7 +7866,7 @@ const E7 = {
|
|
|
7866
7866
|
phaseId: E.phaseId,
|
|
7867
7867
|
item: {
|
|
7868
7868
|
name: L,
|
|
7869
|
-
rank:
|
|
7869
|
+
rank: g,
|
|
7870
7870
|
phaseId: E.phaseId
|
|
7871
7871
|
}
|
|
7872
7872
|
});
|
|
@@ -7879,19 +7879,19 @@ const E7 = {
|
|
|
7879
7879
|
id: E.id
|
|
7880
7880
|
}
|
|
7881
7881
|
});
|
|
7882
|
-
},
|
|
7883
|
-
const { id: L, ...
|
|
7882
|
+
}, U = (E) => {
|
|
7883
|
+
const { id: L, ...g } = E;
|
|
7884
7884
|
e("updateItem", {
|
|
7885
7885
|
itemType: he.MILESTONES,
|
|
7886
7886
|
id: L,
|
|
7887
7887
|
templateId: t.templateId,
|
|
7888
|
-
data:
|
|
7888
|
+
data: g
|
|
7889
7889
|
});
|
|
7890
7890
|
}, F = (E) => {
|
|
7891
7891
|
const { milestoneId: L } = E;
|
|
7892
7892
|
if (!l.value)
|
|
7893
7893
|
return;
|
|
7894
|
-
const { name:
|
|
7894
|
+
const { name: g, rank: N } = vt(
|
|
7895
7895
|
l.value.activities,
|
|
7896
7896
|
"activity",
|
|
7897
7897
|
s
|
|
@@ -7900,43 +7900,43 @@ const E7 = {
|
|
|
7900
7900
|
type: he.ACTIVITIES,
|
|
7901
7901
|
milestoneId: L,
|
|
7902
7902
|
templateId: t.templateId,
|
|
7903
|
-
item: { name:
|
|
7903
|
+
item: { name: g, rank: N, milestoneId: L }
|
|
7904
7904
|
});
|
|
7905
7905
|
}, H = (E) => {
|
|
7906
|
-
var L,
|
|
7906
|
+
var L, g;
|
|
7907
7907
|
e("removeItem", {
|
|
7908
7908
|
type: he.ACTIVITIES,
|
|
7909
7909
|
templateId: t.templateId,
|
|
7910
7910
|
phaseId: (L = i.value) == null ? void 0 : L.id,
|
|
7911
|
-
milestoneId: (
|
|
7911
|
+
milestoneId: (g = l.value) == null ? void 0 : g.id,
|
|
7912
7912
|
data: {
|
|
7913
7913
|
id: E.id
|
|
7914
7914
|
}
|
|
7915
7915
|
});
|
|
7916
7916
|
}, O = (E) => {
|
|
7917
|
-
const { id: L, ...
|
|
7917
|
+
const { id: L, ...g } = E;
|
|
7918
7918
|
e("updateItem", {
|
|
7919
7919
|
itemType: he.ACTIVITIES,
|
|
7920
7920
|
id: L,
|
|
7921
7921
|
templateId: t.templateId,
|
|
7922
|
-
data:
|
|
7922
|
+
data: g
|
|
7923
7923
|
});
|
|
7924
7924
|
}, z = Q(!1), K = () => {
|
|
7925
7925
|
z.value = !z.value;
|
|
7926
7926
|
}, ie = () => {
|
|
7927
7927
|
e("addRule", { templateId: t.templateId });
|
|
7928
|
-
},
|
|
7928
|
+
}, b = (E) => {
|
|
7929
7929
|
e("removeRule", { id: E, templateId: t.templateId });
|
|
7930
7930
|
}, T = (E) => {
|
|
7931
7931
|
var L;
|
|
7932
7932
|
if (E.moved) {
|
|
7933
|
-
const
|
|
7933
|
+
const g = Nt(E, ((L = n.value) == null ? void 0 : L.phases) ?? []);
|
|
7934
7934
|
e("updateItem", {
|
|
7935
7935
|
itemType: he.PHASES,
|
|
7936
7936
|
id: E.moved.element.id,
|
|
7937
7937
|
templateId: t.templateId,
|
|
7938
7938
|
data: {
|
|
7939
|
-
rank:
|
|
7939
|
+
rank: g
|
|
7940
7940
|
}
|
|
7941
7941
|
});
|
|
7942
7942
|
}
|
|
@@ -7971,8 +7971,8 @@ const E7 = {
|
|
|
7971
7971
|
e("removeFile", E);
|
|
7972
7972
|
};
|
|
7973
7973
|
return (E, L) => {
|
|
7974
|
-
var
|
|
7975
|
-
return n.value ? (v(),
|
|
7974
|
+
var g, N, fe, te, J, x;
|
|
7975
|
+
return n.value ? (v(), h("div", E7, [
|
|
7976
7976
|
k(r1, {
|
|
7977
7977
|
"can-go-back": !0,
|
|
7978
7978
|
onGoBack: L[1] || (L[1] = (I) => E.$router.push({ name: Z(Tt).TEMPLATES_LIST }))
|
|
@@ -7983,7 +7983,7 @@ const E7 = {
|
|
|
7983
7983
|
level: 2,
|
|
7984
7984
|
"is-editable": !0,
|
|
7985
7985
|
"onUpdate:title": L[0] || (L[0] = (I) => {
|
|
7986
|
-
|
|
7986
|
+
$(I);
|
|
7987
7987
|
})
|
|
7988
7988
|
}, null, 8, ["title"])
|
|
7989
7989
|
]),
|
|
@@ -8030,7 +8030,7 @@ const E7 = {
|
|
|
8030
8030
|
"onUpdate:title": (Ce) => {
|
|
8031
8031
|
A(I.id, Ce);
|
|
8032
8032
|
},
|
|
8033
|
-
onRemove: () =>
|
|
8033
|
+
onRemove: () => M(I.id)
|
|
8034
8034
|
}, null, 8, ["id", "name", "milestones", "is-active", "onClick", "onUpdate:title", "onRemove"])
|
|
8035
8035
|
];
|
|
8036
8036
|
}),
|
|
@@ -8039,7 +8039,7 @@ const E7 = {
|
|
|
8039
8039
|
k(Xe, {
|
|
8040
8040
|
"icon-name": "AddBoxOutlineRounded",
|
|
8041
8041
|
label: E.$t("template.phases.add"),
|
|
8042
|
-
onClick:
|
|
8042
|
+
onClick: C
|
|
8043
8043
|
}, null, 8, ["label"])
|
|
8044
8044
|
])
|
|
8045
8045
|
]),
|
|
@@ -8047,19 +8047,19 @@ const E7 = {
|
|
|
8047
8047
|
}, 8, ["model-value"])
|
|
8048
8048
|
]),
|
|
8049
8049
|
d("li", H7, [
|
|
8050
|
-
i.value ? (v(),
|
|
8050
|
+
i.value ? (v(), j(L3, {
|
|
8051
8051
|
key: 0,
|
|
8052
8052
|
"template-id": E.templateId,
|
|
8053
8053
|
phase: i.value,
|
|
8054
|
-
"milestone-id": (
|
|
8055
|
-
onAddMilestone:
|
|
8056
|
-
onUpdateMilestone:
|
|
8057
|
-
onUpdatePhase:
|
|
8054
|
+
"milestone-id": (g = l.value) == null ? void 0 : g.id,
|
|
8055
|
+
onAddMilestone: y,
|
|
8056
|
+
onUpdateMilestone: U,
|
|
8057
|
+
onUpdatePhase: _,
|
|
8058
8058
|
onRemoveMilestone: V
|
|
8059
8059
|
}, null, 8, ["template-id", "phase", "milestone-id"])) : S("", !0)
|
|
8060
8060
|
]),
|
|
8061
8061
|
d("li", D7, [
|
|
8062
|
-
i.value && l.value ? (v(),
|
|
8062
|
+
i.value && l.value ? (v(), j(D3, {
|
|
8063
8063
|
key: 0,
|
|
8064
8064
|
"template-id": E.templateId,
|
|
8065
8065
|
"phase-id": (N = i.value) == null ? void 0 : N.id,
|
|
@@ -8072,8 +8072,8 @@ const E7 = {
|
|
|
8072
8072
|
])
|
|
8073
8073
|
])
|
|
8074
8074
|
]),
|
|
8075
|
-
(v(),
|
|
8076
|
-
u.value ? (v(),
|
|
8075
|
+
(v(), j(It, { to: "body" }, [
|
|
8076
|
+
u.value ? (v(), j(B1, {
|
|
8077
8077
|
key: 0,
|
|
8078
8078
|
activity: u.value,
|
|
8079
8079
|
"activity-types": f.value,
|
|
@@ -8094,8 +8094,8 @@ const E7 = {
|
|
|
8094
8094
|
onRemoveFile: se
|
|
8095
8095
|
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "users", "onClose"])) : S("", !0)
|
|
8096
8096
|
])),
|
|
8097
|
-
(v(),
|
|
8098
|
-
z.value ? (v(),
|
|
8097
|
+
(v(), j(It, { to: "body" }, [
|
|
8098
|
+
z.value ? (v(), j(S7, {
|
|
8099
8099
|
key: 0,
|
|
8100
8100
|
"template-id": n.value.id,
|
|
8101
8101
|
rules: n.value.rules || [],
|
|
@@ -8104,7 +8104,7 @@ const E7 = {
|
|
|
8104
8104
|
"template-activities": c.value,
|
|
8105
8105
|
onClose: K,
|
|
8106
8106
|
onAddRule: ie,
|
|
8107
|
-
onRemoveRule:
|
|
8107
|
+
onRemoveRule: b
|
|
8108
8108
|
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : S("", !0)
|
|
8109
8109
|
]))
|
|
8110
8110
|
])) : S("", !0);
|
|
@@ -8124,17 +8124,17 @@ const B7 = {
|
|
|
8124
8124
|
tagName: { default: "div" }
|
|
8125
8125
|
},
|
|
8126
8126
|
setup(a) {
|
|
8127
|
-
return (e, t) => (v(),
|
|
8127
|
+
return (e, t) => (v(), j(et(e.tagName), {
|
|
8128
8128
|
class: X(["ao-card", { "ao-card--clickable": e.isClickable }])
|
|
8129
8129
|
}, {
|
|
8130
8130
|
default: R(() => [
|
|
8131
|
-
e.$slots.header ? (v(),
|
|
8131
|
+
e.$slots.header ? (v(), h("header", B7, [
|
|
8132
8132
|
ee(e.$slots, "header")
|
|
8133
8133
|
])) : S("", !0),
|
|
8134
8134
|
d("div", N7, [
|
|
8135
8135
|
ee(e.$slots, "default")
|
|
8136
8136
|
]),
|
|
8137
|
-
e.$slots.footer ? (v(),
|
|
8137
|
+
e.$slots.footer ? (v(), h("footer", R7, [
|
|
8138
8138
|
ee(e.$slots, "footer")
|
|
8139
8139
|
])) : S("", !0)
|
|
8140
8140
|
]),
|
|
@@ -8149,12 +8149,12 @@ const R1 = /* @__PURE__ */ Y({
|
|
|
8149
8149
|
status: {}
|
|
8150
8150
|
},
|
|
8151
8151
|
setup(a) {
|
|
8152
|
-
const e = a, t =
|
|
8153
|
-
return (s, n) => (v(),
|
|
8152
|
+
const e = a, t = w(() => typeof e.percentages == "number" ? [e.percentages] : e.percentages ?? []);
|
|
8153
|
+
return (s, n) => (v(), h("div", {
|
|
8154
8154
|
class: X(["ao-progress", s.status ? `ao-progress--${s.status}` : ""]),
|
|
8155
8155
|
role: "meter"
|
|
8156
8156
|
}, [
|
|
8157
|
-
(v(!0),
|
|
8157
|
+
(v(!0), h(ve, null, ye(t.value, (o) => (v(), h("div", {
|
|
8158
8158
|
key: o,
|
|
8159
8159
|
class: X(["ao-progress__progress"]),
|
|
8160
8160
|
style: la({ width: `${o * 100}%` })
|
|
@@ -8178,14 +8178,14 @@ const U7 = { class: "ao-card-project-phase__header" }, j7 = { class: "ao-card-pr
|
|
|
8178
8178
|
setup(a, { emit: e }) {
|
|
8179
8179
|
const t = a, s = (l) => {
|
|
8180
8180
|
e("update:title", l);
|
|
8181
|
-
}, n =
|
|
8181
|
+
}, n = w(() => {
|
|
8182
8182
|
var l;
|
|
8183
8183
|
return (l = t.milestones) == null ? void 0 : l.length;
|
|
8184
|
-
}), o =
|
|
8184
|
+
}), o = w(() => {
|
|
8185
8185
|
var l;
|
|
8186
8186
|
return (l = t.milestones) == null ? void 0 : l.filter((r) => r.status === y7.done).length;
|
|
8187
|
-
}), i =
|
|
8188
|
-
return (l, r) => (v(),
|
|
8187
|
+
}), i = w(() => (o.value || 0) / (n.value || 1));
|
|
8188
|
+
return (l, r) => (v(), j(N1, { class: "ao-card-project-phase" }, Ht({
|
|
8189
8189
|
default: R(() => [
|
|
8190
8190
|
k(me, {
|
|
8191
8191
|
id: l.id,
|
|
@@ -8199,7 +8199,7 @@ const U7 = { class: "ao-card-project-phase__header" }, j7 = { class: "ao-card-pr
|
|
|
8199
8199
|
footer: R(() => [
|
|
8200
8200
|
d("div", j7, [
|
|
8201
8201
|
d("div", Z7, [
|
|
8202
|
-
n.value ? (v(),
|
|
8202
|
+
n.value ? (v(), h(ve, { key: 0 }, [
|
|
8203
8203
|
d("div", F7, [
|
|
8204
8204
|
k(de, {
|
|
8205
8205
|
name: "MountainFlagOutlineRounded",
|
|
@@ -8212,7 +8212,7 @@ const U7 = { class: "ao-card-project-phase__header" }, j7 = { class: "ao-card-pr
|
|
|
8212
8212
|
class: "ao-card-project-phase__progress"
|
|
8213
8213
|
}, null, 8, ["percentages"])
|
|
8214
8214
|
], 64)) : S("", !0),
|
|
8215
|
-
l.$slots.secondary ? (v(),
|
|
8215
|
+
l.$slots.secondary ? (v(), h("div", W7, [
|
|
8216
8216
|
ee(l.$slots, "secondary")
|
|
8217
8217
|
])) : S("", !0)
|
|
8218
8218
|
])
|
|
@@ -8259,19 +8259,19 @@ const x7 = { class: "ao-card-project-milestone__default" }, Y7 = {
|
|
|
8259
8259
|
},
|
|
8260
8260
|
emits: ["updateMilestone", "archiveMilestone"],
|
|
8261
8261
|
setup(a, { emit: e }) {
|
|
8262
|
-
const t = a, s =
|
|
8262
|
+
const t = a, s = w(() => {
|
|
8263
8263
|
var l;
|
|
8264
8264
|
return (l = t.activities) == null ? void 0 : l.length;
|
|
8265
|
-
}), n =
|
|
8265
|
+
}), n = w(() => {
|
|
8266
8266
|
var l;
|
|
8267
8267
|
return (l = t.activities) == null ? void 0 : l.filter((r) => {
|
|
8268
8268
|
var c, u;
|
|
8269
8269
|
return ((c = r.status) == null ? void 0 : c.id) === ((u = t.doneStatus) == null ? void 0 : u.id);
|
|
8270
8270
|
}).length;
|
|
8271
|
-
}), o =
|
|
8271
|
+
}), o = w(() => (n.value || 0) / (s.value || 1)), i = (l) => {
|
|
8272
8272
|
e("updateMilestone", { id: t.id, name: l });
|
|
8273
8273
|
};
|
|
8274
|
-
return (l, r) => (v(),
|
|
8274
|
+
return (l, r) => (v(), j(N1, {
|
|
8275
8275
|
class: "ao-card-project-milestone",
|
|
8276
8276
|
"is-clickable": !0,
|
|
8277
8277
|
"tag-name": "li"
|
|
@@ -8286,7 +8286,7 @@ const x7 = { class: "ao-card-project-milestone__default" }, Y7 = {
|
|
|
8286
8286
|
class: "ao-card-project-milestone__title",
|
|
8287
8287
|
"onUpdate:title": i
|
|
8288
8288
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8289
|
-
l.isEditable ? (v(),
|
|
8289
|
+
l.isEditable ? (v(), h("div", Y7, [
|
|
8290
8290
|
k(ce, {
|
|
8291
8291
|
color: "primary",
|
|
8292
8292
|
variant: "ghost",
|
|
@@ -8303,7 +8303,7 @@ const x7 = { class: "ao-card-project-milestone__default" }, Y7 = {
|
|
|
8303
8303
|
footer: R(() => [
|
|
8304
8304
|
d("div", K7, [
|
|
8305
8305
|
d("div", G7, [
|
|
8306
|
-
s.value ? (v(),
|
|
8306
|
+
s.value ? (v(), h(ve, { key: 0 }, [
|
|
8307
8307
|
d("div", X7, [
|
|
8308
8308
|
k(de, {
|
|
8309
8309
|
name: "SelectCheckBox",
|
|
@@ -8316,7 +8316,7 @@ const x7 = { class: "ao-card-project-milestone__default" }, Y7 = {
|
|
|
8316
8316
|
class: "ao-card-project-phase__progress"
|
|
8317
8317
|
}, null, 8, ["percentages"])
|
|
8318
8318
|
], 64)) : S("", !0),
|
|
8319
|
-
l.$slots.secondary ? (v(),
|
|
8319
|
+
l.$slots.secondary ? (v(), h("div", J7, [
|
|
8320
8320
|
ee(l.$slots, "secondary")
|
|
8321
8321
|
])) : S("", !0)
|
|
8322
8322
|
])
|
|
@@ -8343,9 +8343,9 @@ const t9 = { class: "ao-project-phase" }, a9 = {
|
|
|
8343
8343
|
});
|
|
8344
8344
|
const n = (f) => {
|
|
8345
8345
|
e("updatePhase", { id: t.phase.id, name: f });
|
|
8346
|
-
}, o =
|
|
8347
|
-
const { name: p, rank:
|
|
8348
|
-
e("addMilestone", { name: p, rank:
|
|
8346
|
+
}, o = w(() => t.phase.milestones), i = (f) => {
|
|
8347
|
+
const { name: p, rank: C } = vt(o.value ?? [], "milestone", s);
|
|
8348
|
+
e("addMilestone", { name: p, rank: C, phaseId: f });
|
|
8349
8349
|
}, l = (f) => {
|
|
8350
8350
|
e("updateMilestone", f);
|
|
8351
8351
|
}, r = (f) => {
|
|
@@ -8362,8 +8362,8 @@ const t9 = { class: "ao-project-phase" }, a9 = {
|
|
|
8362
8362
|
)
|
|
8363
8363
|
});
|
|
8364
8364
|
};
|
|
8365
|
-
return (f, p) => (v(),
|
|
8366
|
-
f.isEditable ? (v(),
|
|
8365
|
+
return (f, p) => (v(), h("li", t9, [
|
|
8366
|
+
f.isEditable ? (v(), h("div", a9, [
|
|
8367
8367
|
k(de, {
|
|
8368
8368
|
name: "DragIndicator",
|
|
8369
8369
|
class: "ao-project-phase__drag-handle"
|
|
@@ -8388,17 +8388,17 @@ const t9 = { class: "ao-project-phase" }, a9 = {
|
|
|
8388
8388
|
"item-key": "id",
|
|
8389
8389
|
group: "kanban"
|
|
8390
8390
|
}, f.$attrs, { onChange: u }), {
|
|
8391
|
-
item: R(({ element:
|
|
8391
|
+
item: R(({ element: C }) => [
|
|
8392
8392
|
k(e9, {
|
|
8393
|
-
id:
|
|
8394
|
-
name:
|
|
8395
|
-
activities:
|
|
8393
|
+
id: C.id,
|
|
8394
|
+
name: C.name,
|
|
8395
|
+
activities: C.activities,
|
|
8396
8396
|
"is-editable": f.isEditable,
|
|
8397
8397
|
"is-draggable": f.isEditable,
|
|
8398
8398
|
class: "ao-project-phase__milestone",
|
|
8399
|
-
onClick: (
|
|
8399
|
+
onClick: ($) => f.$router.push({
|
|
8400
8400
|
name: Z(pt).milestone,
|
|
8401
|
-
params: { phaseId: f.phase.id, milestoneId:
|
|
8401
|
+
params: { phaseId: f.phase.id, milestoneId: C.id }
|
|
8402
8402
|
}),
|
|
8403
8403
|
onUpdateMilestone: l,
|
|
8404
8404
|
onArchiveMilestone: r
|
|
@@ -8407,7 +8407,7 @@ const t9 = { class: "ao-project-phase" }, a9 = {
|
|
|
8407
8407
|
_: 1
|
|
8408
8408
|
}, 16, ["list", "disabled"]),
|
|
8409
8409
|
d("div", o9, [
|
|
8410
|
-
f.isEditable ? (v(),
|
|
8410
|
+
f.isEditable ? (v(), j(Xe, {
|
|
8411
8411
|
key: 0,
|
|
8412
8412
|
label: f.$t("project.milestone.add"),
|
|
8413
8413
|
class: "ao-project-phase__milestone-add",
|
|
@@ -8456,7 +8456,7 @@ const r9 = { class: "ao-project__phases" }, u9 = {
|
|
|
8456
8456
|
}, c = (u) => {
|
|
8457
8457
|
e("addPhase", u);
|
|
8458
8458
|
};
|
|
8459
|
-
return (u, f) => (v(),
|
|
8459
|
+
return (u, f) => (v(), h("div", r9, [
|
|
8460
8460
|
k(Z(Ge), {
|
|
8461
8461
|
class: "ao-project-phase__phases-list",
|
|
8462
8462
|
"model-value": u.phases,
|
|
@@ -8477,7 +8477,7 @@ const r9 = { class: "ao-project__phases" }, u9 = {
|
|
|
8477
8477
|
]),
|
|
8478
8478
|
_: 1
|
|
8479
8479
|
}, 8, ["model-value"]),
|
|
8480
|
-
u.isEditable ? (v(),
|
|
8480
|
+
u.isEditable ? (v(), h("div", u9, [
|
|
8481
8481
|
c9,
|
|
8482
8482
|
d("div", d9, [
|
|
8483
8483
|
k(Xe, {
|
|
@@ -8500,7 +8500,7 @@ const p9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, m9
|
|
|
8500
8500
|
},
|
|
8501
8501
|
emits: ["apply"],
|
|
8502
8502
|
setup(a, { emit: e }) {
|
|
8503
|
-
const t = a, s =
|
|
8503
|
+
const t = a, s = w(() => t.templates.map((l) => ({
|
|
8504
8504
|
value: l.id,
|
|
8505
8505
|
label: l.name
|
|
8506
8506
|
}))), n = Q(null), o = (l) => {
|
|
@@ -8508,7 +8508,7 @@ const p9 = ["onSubmit"], h9 = { class: "ao-add-template-modal__form-body" }, m9
|
|
|
8508
8508
|
}, i = () => {
|
|
8509
8509
|
n.value && e("apply", n.value, t.projectId);
|
|
8510
8510
|
};
|
|
8511
|
-
return (l, r) => (v(),
|
|
8511
|
+
return (l, r) => (v(), j(O1, { size: "sm" }, {
|
|
8512
8512
|
header: R(() => [
|
|
8513
8513
|
k(me, {
|
|
8514
8514
|
title: l.$t("project.template.add.title"),
|
|
@@ -8557,9 +8557,9 @@ const g9 = { class: "ao-project-overview" }, y9 = { class: "ao-project" }, b9 =
|
|
|
8557
8557
|
statuses: {},
|
|
8558
8558
|
isEditable: { type: Boolean }
|
|
8559
8559
|
},
|
|
8560
|
-
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8560
|
+
emits: ["addPhase", "updatePhase", "archivePhase", "addMilestone", "updateMilestone", "archiveMilestone", "addActivity", "update:activity", "archiveActivity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment", "applyTemplate"],
|
|
8561
8561
|
setup(a, { emit: e }) {
|
|
8562
|
-
const t = a, { t: s } = at(), n =
|
|
8562
|
+
const t = a, { t: s } = at(), n = w(
|
|
8563
8563
|
() => t.phases.flatMap((O) => O.milestones)
|
|
8564
8564
|
), o = () => {
|
|
8565
8565
|
const { name: O, rank: z } = vt(t.phases, "phase", s);
|
|
@@ -8578,28 +8578,28 @@ const g9 = { class: "ao-project-overview" }, y9 = { class: "ao-project" }, b9 =
|
|
|
8578
8578
|
e("addActivity", O);
|
|
8579
8579
|
}, p = (O) => {
|
|
8580
8580
|
e("update:activity", O);
|
|
8581
|
-
},
|
|
8581
|
+
}, C = (O) => {
|
|
8582
8582
|
e("archiveActivity", O);
|
|
8583
|
-
},
|
|
8583
|
+
}, $ = (O) => {
|
|
8584
8584
|
e("addSubtask", O);
|
|
8585
|
-
},
|
|
8585
|
+
}, M = w(
|
|
8586
8586
|
() => n.value.flatMap((O) => O.activities)
|
|
8587
8587
|
), A = (O) => {
|
|
8588
8588
|
e("addFiles", O);
|
|
8589
|
-
},
|
|
8589
|
+
}, _ = (O) => {
|
|
8590
8590
|
e("removeFile", O);
|
|
8591
|
-
},
|
|
8591
|
+
}, y = (O) => {
|
|
8592
8592
|
e("addComment", O);
|
|
8593
8593
|
}, V = (O) => {
|
|
8594
8594
|
e("updateComment", O);
|
|
8595
|
-
},
|
|
8595
|
+
}, U = (O) => {
|
|
8596
8596
|
e("removeComment", O);
|
|
8597
8597
|
}, F = Q(!1), H = (O, z) => {
|
|
8598
8598
|
e("applyTemplate", { templateId: O, projectId: z }), F.value = !1;
|
|
8599
8599
|
};
|
|
8600
8600
|
return (O, z) => {
|
|
8601
8601
|
const K = vn("RouterView");
|
|
8602
|
-
return v(),
|
|
8602
|
+
return v(), h(ve, null, [
|
|
8603
8603
|
d("div", g9, [
|
|
8604
8604
|
d("div", y9, [
|
|
8605
8605
|
k(r1, null, Ht({ _: 2 }, [
|
|
@@ -8639,12 +8639,12 @@ const g9 = { class: "ao-project-overview" }, y9 = { class: "ao-project" }, b9 =
|
|
|
8639
8639
|
onClose: z[1] || (z[1] = (ie) => O.$router.push({ name: Z(pt).project })),
|
|
8640
8640
|
onAddActivity: f,
|
|
8641
8641
|
onUpdateActivity: p,
|
|
8642
|
-
onArchiveActivity:
|
|
8642
|
+
onArchiveActivity: C
|
|
8643
8643
|
}, null, 8, ["phases", "project-id", "project-name", "users", "is-editable"]),
|
|
8644
|
-
(v(),
|
|
8644
|
+
(v(), j(It, { to: "body" }, [
|
|
8645
8645
|
k(K, {
|
|
8646
8646
|
name: "modal",
|
|
8647
|
-
activities:
|
|
8647
|
+
activities: M.value,
|
|
8648
8648
|
"is-task-checkable": O.isTaskCheckable,
|
|
8649
8649
|
statuses: O.statuses,
|
|
8650
8650
|
phases: O.phases,
|
|
@@ -8652,17 +8652,17 @@ const g9 = { class: "ao-project-overview" }, y9 = { class: "ao-project" }, b9 =
|
|
|
8652
8652
|
"user-id": O.userId,
|
|
8653
8653
|
"is-editable": O.isEditable,
|
|
8654
8654
|
"onUpdate:activity": p,
|
|
8655
|
-
onAddSubtask:
|
|
8655
|
+
onAddSubtask: $,
|
|
8656
8656
|
onAddFiles: A,
|
|
8657
|
-
onRemoveFile:
|
|
8658
|
-
onAddComment:
|
|
8657
|
+
onRemoveFile: _,
|
|
8658
|
+
onAddComment: y,
|
|
8659
8659
|
onUpdateComment: V,
|
|
8660
|
-
onRemoveComment:
|
|
8660
|
+
onRemoveComment: U
|
|
8661
8661
|
}, null, 8, ["activities", "is-task-checkable", "statuses", "phases", "users", "user-id", "is-editable"])
|
|
8662
8662
|
]))
|
|
8663
8663
|
]),
|
|
8664
|
-
(v(),
|
|
8665
|
-
F.value ? (v(),
|
|
8664
|
+
(v(), j(It, { to: "body" }, [
|
|
8665
|
+
F.value ? (v(), j(_9, {
|
|
8666
8666
|
key: 0,
|
|
8667
8667
|
"project-id": O.project.id,
|
|
8668
8668
|
templates: O.templates,
|
|
@@ -8722,25 +8722,25 @@ const $9 = { class: "ao-card-feed__header" }, M9 = {
|
|
|
8722
8722
|
id: t.id,
|
|
8723
8723
|
name: p
|
|
8724
8724
|
});
|
|
8725
|
-
}, n =
|
|
8726
|
-
const { firstName:
|
|
8727
|
-
return `${
|
|
8725
|
+
}, n = w(() => t.phaseName && t.milestoneName ? `${t.phaseName} / ${t.milestoneName}` : ""), o = w(() => t.assignee ? [t.assignee] : []), i = w(() => k1(t.deadline)), l = (p) => {
|
|
8726
|
+
const { firstName: C, lastName: $ } = p || {};
|
|
8727
|
+
return `${C ?? ""}${C ? " " : ""}${$ ?? ""}`;
|
|
8728
8728
|
}, r = (p) => {
|
|
8729
8729
|
e("removeAssignee", p);
|
|
8730
|
-
}, c =
|
|
8730
|
+
}, c = w(() => {
|
|
8731
8731
|
var p;
|
|
8732
8732
|
return (p = t.tasks) == null ? void 0 : p.length;
|
|
8733
|
-
}), u =
|
|
8733
|
+
}), u = w(() => {
|
|
8734
8734
|
var p;
|
|
8735
|
-
return (p = t.tasks) == null ? void 0 : p.filter((
|
|
8736
|
-
}), f =
|
|
8737
|
-
return (p,
|
|
8735
|
+
return (p = t.tasks) == null ? void 0 : p.filter((C) => C.isDone).length;
|
|
8736
|
+
}), f = w(() => (u.value || 0) / (c.value || 1));
|
|
8737
|
+
return (p, C) => (v(), j(N1, {
|
|
8738
8738
|
class: "ao-card-feed",
|
|
8739
8739
|
"is-clickable": !0
|
|
8740
8740
|
}, {
|
|
8741
8741
|
header: R(() => [
|
|
8742
8742
|
d("div", $9, [
|
|
8743
|
-
p.projectName ? (v(),
|
|
8743
|
+
p.projectName ? (v(), j(S1, {
|
|
8744
8744
|
key: 0,
|
|
8745
8745
|
label: p.projectName,
|
|
8746
8746
|
class: "ao-card-feed__project",
|
|
@@ -8748,20 +8748,20 @@ const $9 = { class: "ao-card-feed__header" }, M9 = {
|
|
|
8748
8748
|
color: p.projectColor ? void 0 : "primary",
|
|
8749
8749
|
"raw-color": p.projectColor
|
|
8750
8750
|
}, null, 8, ["label", "color", "raw-color"])) : S("", !0),
|
|
8751
|
-
p.important ? (v(),
|
|
8751
|
+
p.important ? (v(), j(de, {
|
|
8752
8752
|
key: 1,
|
|
8753
8753
|
name: "FlagRounded",
|
|
8754
8754
|
class: "ao-card-feed__important ao-card-feed__header-secondary",
|
|
8755
8755
|
size: "sm"
|
|
8756
8756
|
})) : S("", !0),
|
|
8757
|
-
p.$slots.secondary ? (v(),
|
|
8757
|
+
p.$slots.secondary ? (v(), h("div", M9, [
|
|
8758
8758
|
ee(p.$slots, "secondary")
|
|
8759
8759
|
])) : S("", !0)
|
|
8760
8760
|
])
|
|
8761
8761
|
]),
|
|
8762
8762
|
default: R(() => [
|
|
8763
8763
|
d("div", k9, [
|
|
8764
|
-
n.value ? (v(),
|
|
8764
|
+
n.value ? (v(), h("span", A9, q(n.value), 1)) : S("", !0),
|
|
8765
8765
|
k(me, {
|
|
8766
8766
|
id: p.id,
|
|
8767
8767
|
title: p.name,
|
|
@@ -8769,34 +8769,34 @@ const $9 = { class: "ao-card-feed__header" }, M9 = {
|
|
|
8769
8769
|
"is-editable": p.isEditable,
|
|
8770
8770
|
"onUpdate:title": s
|
|
8771
8771
|
}, null, 8, ["id", "title", "is-editable"]),
|
|
8772
|
-
p.deadline ? (v(),
|
|
8772
|
+
p.deadline ? (v(), h("span", T9, q(i.value), 1)) : S("", !0)
|
|
8773
8773
|
])
|
|
8774
8774
|
]),
|
|
8775
8775
|
footer: R(() => [
|
|
8776
8776
|
d("div", S9, [
|
|
8777
8777
|
d("div", E9, [
|
|
8778
8778
|
d("ul", I9, [
|
|
8779
|
-
(v(!0),
|
|
8780
|
-
key:
|
|
8779
|
+
(v(!0), h(ve, null, ye(o.value, ($) => (v(), h(ve, {
|
|
8780
|
+
key: $.id
|
|
8781
8781
|
}, [
|
|
8782
|
-
|
|
8782
|
+
$ ? (v(), h("li", O9, [
|
|
8783
8783
|
k(_t, {
|
|
8784
|
-
"user-name": l(
|
|
8784
|
+
"user-name": l($),
|
|
8785
8785
|
"is-closable": !0,
|
|
8786
|
-
onClose: () => r(
|
|
8786
|
+
onClose: () => r($.id)
|
|
8787
8787
|
}, null, 8, ["user-name", "onClose"])
|
|
8788
8788
|
])) : S("", !0)
|
|
8789
8789
|
], 64))), 128))
|
|
8790
8790
|
]),
|
|
8791
|
-
p.comments || p.attachments ? (v(),
|
|
8792
|
-
p.comments ? (v(),
|
|
8791
|
+
p.comments || p.attachments ? (v(), h("ul", L9, [
|
|
8792
|
+
p.comments ? (v(), h("li", V9, [
|
|
8793
8793
|
k(de, {
|
|
8794
8794
|
name: "ChatOutline",
|
|
8795
8795
|
size: "sm"
|
|
8796
8796
|
}),
|
|
8797
8797
|
d("span", H9, q(p.comments), 1)
|
|
8798
8798
|
])) : S("", !0),
|
|
8799
|
-
p.attachments ? (v(),
|
|
8799
|
+
p.attachments ? (v(), h("li", D9, [
|
|
8800
8800
|
k(de, {
|
|
8801
8801
|
name: "AttachFileRounded",
|
|
8802
8802
|
size: "sm"
|
|
@@ -8806,7 +8806,7 @@ const $9 = { class: "ao-card-feed__header" }, M9 = {
|
|
|
8806
8806
|
])) : S("", !0)
|
|
8807
8807
|
]),
|
|
8808
8808
|
d("div", B9, [
|
|
8809
|
-
p.tasks && p.tasks.length ? (v(),
|
|
8809
|
+
p.tasks && p.tasks.length ? (v(), h("div", N9, [
|
|
8810
8810
|
d("div", R9, [
|
|
8811
8811
|
k(de, {
|
|
8812
8812
|
name: "SelectCheckBox",
|
|
@@ -8841,30 +8841,30 @@ const j9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8841
8841
|
},
|
|
8842
8842
|
emits: ["close", "addActivity", "updateActivity", "archiveActivity"],
|
|
8843
8843
|
setup(a, { emit: e }) {
|
|
8844
|
-
const t = a, { t: s } = at(), n =
|
|
8844
|
+
const t = a, { t: s } = at(), n = w(() => {
|
|
8845
8845
|
var p;
|
|
8846
|
-
return (p = t.phases) == null ? void 0 : p.find((
|
|
8847
|
-
}), o =
|
|
8846
|
+
return (p = t.phases) == null ? void 0 : p.find((C) => C.id === t.phaseId);
|
|
8847
|
+
}), o = w(() => {
|
|
8848
8848
|
var p;
|
|
8849
|
-
return (p = t.phases) == null ? void 0 : p.flatMap((
|
|
8850
|
-
}), i =
|
|
8849
|
+
return (p = t.phases) == null ? void 0 : p.flatMap((C) => C.milestones);
|
|
8850
|
+
}), i = w(() => {
|
|
8851
8851
|
var p;
|
|
8852
|
-
return (p = o.value) == null ? void 0 : p.find((
|
|
8853
|
-
}), l =
|
|
8852
|
+
return (p = o.value) == null ? void 0 : p.find((C) => C.id === t.milestoneId);
|
|
8853
|
+
}), l = w(() => {
|
|
8854
8854
|
var p;
|
|
8855
8855
|
return (p = i.value) == null ? void 0 : p.activities;
|
|
8856
8856
|
});
|
|
8857
|
-
re(l, (p,
|
|
8858
|
-
Re(p,
|
|
8857
|
+
re(l, (p, C) => {
|
|
8858
|
+
Re(p, C);
|
|
8859
8859
|
});
|
|
8860
8860
|
const r = (p) => {
|
|
8861
8861
|
e("close", p);
|
|
8862
8862
|
}, c = () => {
|
|
8863
|
-
const { name: p, rank:
|
|
8863
|
+
const { name: p, rank: C } = vt(l.value ?? [], "activity", s);
|
|
8864
8864
|
e("addActivity", {
|
|
8865
8865
|
milestoneId: t.milestoneId,
|
|
8866
8866
|
name: p,
|
|
8867
|
-
rank:
|
|
8867
|
+
rank: C,
|
|
8868
8868
|
projectId: t.projectId
|
|
8869
8869
|
});
|
|
8870
8870
|
}, u = (p) => {
|
|
@@ -8879,14 +8879,14 @@ const j9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8879
8879
|
)
|
|
8880
8880
|
});
|
|
8881
8881
|
};
|
|
8882
|
-
return (p,
|
|
8883
|
-
var
|
|
8884
|
-
return v(),
|
|
8882
|
+
return (p, C) => {
|
|
8883
|
+
var $;
|
|
8884
|
+
return v(), h("div", j9, [
|
|
8885
8885
|
d("header", Z9, [
|
|
8886
8886
|
d("div", F9, [
|
|
8887
8887
|
d("span", null, q(p.$t("project.milestone.title")), 1),
|
|
8888
8888
|
k(me, {
|
|
8889
|
-
title: ((
|
|
8889
|
+
title: (($ = i.value) == null ? void 0 : $.name) || p.milestoneId,
|
|
8890
8890
|
level: 5
|
|
8891
8891
|
}, null, 8, ["title"])
|
|
8892
8892
|
]),
|
|
@@ -8904,28 +8904,28 @@ const j9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8904
8904
|
"item-key": "id",
|
|
8905
8905
|
group: "kanban"
|
|
8906
8906
|
}, p.$attrs, { onChange: f }), {
|
|
8907
|
-
item: R(({ element:
|
|
8908
|
-
var A,
|
|
8907
|
+
item: R(({ element: M }) => {
|
|
8908
|
+
var A, _, y, V;
|
|
8909
8909
|
return [
|
|
8910
8910
|
k(Ha, {
|
|
8911
|
-
id:
|
|
8912
|
-
name:
|
|
8911
|
+
id: M.id,
|
|
8912
|
+
name: M.name || M.id,
|
|
8913
8913
|
"phase-name": (A = n.value) == null ? void 0 : A.name,
|
|
8914
|
-
"milestone-name": (
|
|
8915
|
-
deadline:
|
|
8916
|
-
important:
|
|
8914
|
+
"milestone-name": (_ = i.value) == null ? void 0 : _.name,
|
|
8915
|
+
deadline: M.deadline,
|
|
8916
|
+
important: M.important,
|
|
8917
8917
|
users: p.users,
|
|
8918
|
-
assignee:
|
|
8919
|
-
comments: (
|
|
8920
|
-
attachments: (V =
|
|
8921
|
-
tasks:
|
|
8918
|
+
assignee: M.assignee,
|
|
8919
|
+
comments: (y = M.comments) == null ? void 0 : y.length,
|
|
8920
|
+
attachments: (V = M.attachments) == null ? void 0 : V.length,
|
|
8921
|
+
tasks: M.tasks,
|
|
8922
8922
|
"is-editable": p.isEditable,
|
|
8923
|
-
onClick: (
|
|
8923
|
+
onClick: (U) => p.$router.push({
|
|
8924
8924
|
name: Z(pt).activity,
|
|
8925
|
-
params: { milestoneId: p.milestoneId, activityId:
|
|
8925
|
+
params: { milestoneId: p.milestoneId, activityId: M.id }
|
|
8926
8926
|
}),
|
|
8927
8927
|
onUpdateActivity: u,
|
|
8928
|
-
onRemoveAssignee: () => u({ id:
|
|
8928
|
+
onRemoveAssignee: () => u({ id: M.id, assigneeId: null })
|
|
8929
8929
|
}, Ht({ _: 2 }, [
|
|
8930
8930
|
p.isEditable ? {
|
|
8931
8931
|
name: "secondary",
|
|
@@ -8938,7 +8938,7 @@ const j9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8938
8938
|
"icon-position": "start",
|
|
8939
8939
|
corners: "round",
|
|
8940
8940
|
label: p.$t("archive"),
|
|
8941
|
-
onClick: _e(() => p.$emit("archiveActivity", { id:
|
|
8941
|
+
onClick: _e(() => p.$emit("archiveActivity", { id: M.id }), ["stop"])
|
|
8942
8942
|
}, null, 8, ["label", "onClick"])
|
|
8943
8943
|
]),
|
|
8944
8944
|
key: "0"
|
|
@@ -8948,7 +8948,7 @@ const j9 = { class: "ao-project-milestone" }, Z9 = { class: "ao-project-mileston
|
|
|
8948
8948
|
}),
|
|
8949
8949
|
_: 1
|
|
8950
8950
|
}, 16, ["list", "disabled"]),
|
|
8951
|
-
p.isEditable ? (v(),
|
|
8951
|
+
p.isEditable ? (v(), h("div", W9, [
|
|
8952
8952
|
k(Xe, {
|
|
8953
8953
|
"icon-name": "Add",
|
|
8954
8954
|
label: p.$t("project.activity.add"),
|
|
@@ -8976,58 +8976,70 @@ const z9 = /* @__PURE__ */ Y({
|
|
|
8976
8976
|
userId: {},
|
|
8977
8977
|
isEditable: { type: Boolean }
|
|
8978
8978
|
},
|
|
8979
|
-
emits: ["update:activity", "addSubtask", "addComment", "updateComment", "removeComment"],
|
|
8979
|
+
emits: ["update:activity", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
8980
8980
|
setup(a, { emit: e }) {
|
|
8981
|
-
const t = a, s =
|
|
8982
|
-
var
|
|
8983
|
-
return (
|
|
8984
|
-
}), n =
|
|
8985
|
-
var
|
|
8986
|
-
return (
|
|
8987
|
-
}), o =
|
|
8988
|
-
var
|
|
8989
|
-
return (
|
|
8990
|
-
}), i =
|
|
8991
|
-
var
|
|
8992
|
-
return (
|
|
8993
|
-
}), l =
|
|
8994
|
-
var
|
|
8995
|
-
return ((
|
|
8996
|
-
value:
|
|
8997
|
-
label:
|
|
8981
|
+
const t = a, s = w(() => {
|
|
8982
|
+
var _;
|
|
8983
|
+
return (_ = t.phases) == null ? void 0 : _.find((y) => y.id === t.phaseId);
|
|
8984
|
+
}), n = w(() => {
|
|
8985
|
+
var _;
|
|
8986
|
+
return (_ = t.phases) == null ? void 0 : _.flatMap((y) => y.milestones);
|
|
8987
|
+
}), o = w(() => {
|
|
8988
|
+
var _;
|
|
8989
|
+
return (_ = n.value) == null ? void 0 : _.find((y) => y.id === t.milestoneId);
|
|
8990
|
+
}), i = w(() => {
|
|
8991
|
+
var _;
|
|
8992
|
+
return (_ = t.activities) == null ? void 0 : _.find((y) => y.id === t.activityId);
|
|
8993
|
+
}), l = w(() => {
|
|
8994
|
+
var _;
|
|
8995
|
+
return ((_ = t.activityTypes) == null ? void 0 : _.map((y) => ({
|
|
8996
|
+
value: y,
|
|
8997
|
+
label: y
|
|
8998
8998
|
}))) || [];
|
|
8999
|
-
}), r = (
|
|
9000
|
-
e("update:activity",
|
|
9001
|
-
}, c = (
|
|
9002
|
-
e("addSubtask",
|
|
9003
|
-
}, u = (
|
|
9004
|
-
e("
|
|
9005
|
-
}, f = (
|
|
9006
|
-
e("
|
|
9007
|
-
}, p = (
|
|
9008
|
-
e("
|
|
8999
|
+
}), r = (_) => {
|
|
9000
|
+
e("update:activity", _);
|
|
9001
|
+
}, c = (_) => {
|
|
9002
|
+
e("addSubtask", _);
|
|
9003
|
+
}, u = (_) => {
|
|
9004
|
+
e("updateSubtask", _);
|
|
9005
|
+
}, f = (_) => {
|
|
9006
|
+
e("deleteSubtask", _);
|
|
9007
|
+
}, p = (_) => {
|
|
9008
|
+
e("addFiles", _);
|
|
9009
|
+
}, C = (_) => {
|
|
9010
|
+
e("removeFile", _);
|
|
9011
|
+
}, $ = (_) => {
|
|
9012
|
+
e("addComment", _);
|
|
9013
|
+
}, M = (_) => {
|
|
9014
|
+
e("updateComment", _);
|
|
9015
|
+
}, A = (_) => {
|
|
9016
|
+
e("removeComment", _);
|
|
9009
9017
|
};
|
|
9010
|
-
return (
|
|
9011
|
-
var
|
|
9012
|
-
return i.value ? (v(),
|
|
9018
|
+
return (_, y) => {
|
|
9019
|
+
var V, U;
|
|
9020
|
+
return i.value ? (v(), j(B1, {
|
|
9013
9021
|
key: 0,
|
|
9014
9022
|
activity: i.value,
|
|
9015
9023
|
"activity-types": l.value,
|
|
9016
|
-
"milestone-id":
|
|
9017
|
-
"template-activities":
|
|
9024
|
+
"milestone-id": _.milestoneId,
|
|
9025
|
+
"template-activities": _.activities,
|
|
9018
9026
|
"is-template": !1,
|
|
9019
|
-
users:
|
|
9020
|
-
"user-id":
|
|
9021
|
-
"is-task-checkable":
|
|
9022
|
-
statuses:
|
|
9023
|
-
breadcrumbs: `${(
|
|
9024
|
-
"is-editable":
|
|
9025
|
-
onClose:
|
|
9027
|
+
users: _.users,
|
|
9028
|
+
"user-id": _.userId,
|
|
9029
|
+
"is-task-checkable": _.isTaskCheckable,
|
|
9030
|
+
statuses: _.statuses,
|
|
9031
|
+
breadcrumbs: `${(V = s.value) == null ? void 0 : V.name} / ${(U = o.value) == null ? void 0 : U.name}`,
|
|
9032
|
+
"is-editable": _.isEditable,
|
|
9033
|
+
onClose: _.$router.back,
|
|
9026
9034
|
"onUpdate:activity": r,
|
|
9027
9035
|
onAddSubtask: c,
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9036
|
+
onUpdateSubtask: u,
|
|
9037
|
+
onDeleteSubtask: f,
|
|
9038
|
+
onAddFiles: p,
|
|
9039
|
+
onRemoveFile: C,
|
|
9040
|
+
onAddComment: $,
|
|
9041
|
+
onUpdateComment: M,
|
|
9042
|
+
onRemoveComment: A
|
|
9031
9043
|
}, null, 8, ["activity", "activity-types", "milestone-id", "template-activities", "users", "user-id", "is-task-checkable", "statuses", "breadcrumbs", "is-editable", "onClose"])) : S("", !0);
|
|
9032
9044
|
};
|
|
9033
9045
|
}
|
|
@@ -9128,7 +9140,7 @@ const z9 = /* @__PURE__ */ Y({
|
|
|
9128
9140
|
});
|
|
9129
9141
|
}
|
|
9130
9142
|
};
|
|
9131
|
-
return (l, r) => (v(),
|
|
9143
|
+
return (l, r) => (v(), h("div", x9, [
|
|
9132
9144
|
k(r1, null, {
|
|
9133
9145
|
secondary: R(() => [
|
|
9134
9146
|
k(ce, {
|
|
@@ -9179,13 +9191,13 @@ const K9 = { class: "ao-col-header" }, G9 = /* @__PURE__ */ Y({
|
|
|
9179
9191
|
items: {}
|
|
9180
9192
|
},
|
|
9181
9193
|
setup(a) {
|
|
9182
|
-
return (e, t) => (v(),
|
|
9194
|
+
return (e, t) => (v(), h("header", K9, [
|
|
9183
9195
|
k(me, {
|
|
9184
9196
|
title: e.title,
|
|
9185
9197
|
class: "ao-col-header__title",
|
|
9186
9198
|
level: 4
|
|
9187
9199
|
}, null, 8, ["title"]),
|
|
9188
|
-
e.items ? (v(),
|
|
9200
|
+
e.items ? (v(), j(S1, {
|
|
9189
9201
|
key: 0,
|
|
9190
9202
|
label: e.items,
|
|
9191
9203
|
class: "ao-col-header__items",
|
|
@@ -9247,7 +9259,7 @@ function s4() {
|
|
|
9247
9259
|
}
|
|
9248
9260
|
function i4(a) {
|
|
9249
9261
|
const e = s4();
|
|
9250
|
-
return
|
|
9262
|
+
return w(() => (e.value, !!a()));
|
|
9251
9263
|
}
|
|
9252
9264
|
function o4(a, e, t = {}) {
|
|
9253
9265
|
const {
|
|
@@ -9256,33 +9268,33 @@ function o4(a, e, t = {}) {
|
|
|
9256
9268
|
threshold: o = 0.1,
|
|
9257
9269
|
window: i = n4,
|
|
9258
9270
|
immediate: l = !0
|
|
9259
|
-
} = t, r = i4(() => i && "IntersectionObserver" in i), c =
|
|
9260
|
-
const
|
|
9261
|
-
return (Array.isArray(
|
|
9271
|
+
} = t, r = i4(() => i && "IntersectionObserver" in i), c = w(() => {
|
|
9272
|
+
const $ = e1(a);
|
|
9273
|
+
return (Array.isArray($) ? $ : [$]).map(M1).filter(J9);
|
|
9262
9274
|
});
|
|
9263
9275
|
let u = St;
|
|
9264
9276
|
const f = Q(l), p = r.value ? re(
|
|
9265
9277
|
() => [c.value, M1(s), f.value],
|
|
9266
|
-
([
|
|
9267
|
-
if (u(), !f.value ||
|
|
9278
|
+
([$, M]) => {
|
|
9279
|
+
if (u(), !f.value || !$.length)
|
|
9268
9280
|
return;
|
|
9269
9281
|
const A = new IntersectionObserver(
|
|
9270
9282
|
e,
|
|
9271
9283
|
{
|
|
9272
|
-
root: M1(
|
|
9284
|
+
root: M1(M),
|
|
9273
9285
|
rootMargin: n,
|
|
9274
9286
|
threshold: o
|
|
9275
9287
|
}
|
|
9276
9288
|
);
|
|
9277
|
-
|
|
9289
|
+
$.forEach((_) => _ && A.observe(_)), u = () => {
|
|
9278
9290
|
A.disconnect(), u = St;
|
|
9279
9291
|
};
|
|
9280
9292
|
},
|
|
9281
9293
|
{ immediate: l, flush: "post" }
|
|
9282
|
-
) : St,
|
|
9294
|
+
) : St, C = () => {
|
|
9283
9295
|
u(), p(), f.value = !1;
|
|
9284
9296
|
};
|
|
9285
|
-
return X9(
|
|
9297
|
+
return X9(C), {
|
|
9286
9298
|
isSupported: r,
|
|
9287
9299
|
isActive: f,
|
|
9288
9300
|
pause() {
|
|
@@ -9291,7 +9303,7 @@ function o4(a, e, t = {}) {
|
|
|
9291
9303
|
resume() {
|
|
9292
9304
|
f.value = !0;
|
|
9293
9305
|
},
|
|
9294
|
-
stop:
|
|
9306
|
+
stop: C
|
|
9295
9307
|
};
|
|
9296
9308
|
}
|
|
9297
9309
|
const l4 = {
|
|
@@ -9349,12 +9361,12 @@ const l4 = {
|
|
|
9349
9361
|
)
|
|
9350
9362
|
});
|
|
9351
9363
|
};
|
|
9352
|
-
return (r, c) => (v(),
|
|
9364
|
+
return (r, c) => (v(), h("div", l4, [
|
|
9353
9365
|
r.title || r.$slots.header ? ee(r.$slots, "header", { key: 0 }, () => {
|
|
9354
9366
|
var u;
|
|
9355
9367
|
return [
|
|
9356
9368
|
d("div", r4, [
|
|
9357
|
-
r.title ? (v(),
|
|
9369
|
+
r.title ? (v(), j(G9, {
|
|
9358
9370
|
key: 0,
|
|
9359
9371
|
title: r.title,
|
|
9360
9372
|
level: 3,
|
|
@@ -9370,23 +9382,23 @@ const l4 = {
|
|
|
9370
9382
|
group: "kanban"
|
|
9371
9383
|
}, r.$attrs, { onChange: l }), {
|
|
9372
9384
|
item: R(({ element: u }) => {
|
|
9373
|
-
var f, p,
|
|
9385
|
+
var f, p, C, $, M, A, _, y;
|
|
9374
9386
|
return [
|
|
9375
9387
|
k(Ha, {
|
|
9376
9388
|
id: u.id,
|
|
9377
9389
|
name: u.name,
|
|
9378
9390
|
"project-name": (f = u.project) == null ? void 0 : f.name,
|
|
9379
9391
|
"project-color": (p = u.project) == null ? void 0 : p.color,
|
|
9380
|
-
"phase-name": (
|
|
9381
|
-
"milestone-name": (
|
|
9392
|
+
"phase-name": ($ = (C = u.milestone) == null ? void 0 : C.phase) == null ? void 0 : $.name,
|
|
9393
|
+
"milestone-name": (M = u.milestone) == null ? void 0 : M.name,
|
|
9382
9394
|
deadline: u.deadline,
|
|
9383
9395
|
rules: ((A = u.rules) == null ? void 0 : A.length) || 0,
|
|
9384
9396
|
tasks: u.tasks,
|
|
9385
9397
|
description: u.description,
|
|
9386
9398
|
important: u.important,
|
|
9387
9399
|
type: u.type,
|
|
9388
|
-
comments: (
|
|
9389
|
-
attachments: (
|
|
9400
|
+
comments: (_ = u.comments) == null ? void 0 : _.length,
|
|
9401
|
+
attachments: (y = u.attachments) == null ? void 0 : y.length,
|
|
9390
9402
|
users: r.users,
|
|
9391
9403
|
assignee: u.assignee,
|
|
9392
9404
|
onClick: () => o(u.id),
|
|
@@ -9410,20 +9422,20 @@ const l4 = {
|
|
|
9410
9422
|
];
|
|
9411
9423
|
}),
|
|
9412
9424
|
footer: R(() => [
|
|
9413
|
-
r.isLoading ? (v(),
|
|
9425
|
+
r.isLoading ? (v(), h("div", u4, [
|
|
9414
9426
|
k(de, { name: "Loading" })
|
|
9415
|
-
])) : r.hasMore ? (v(),
|
|
9427
|
+
])) : r.hasMore ? (v(), h("div", {
|
|
9416
9428
|
key: 2,
|
|
9417
9429
|
ref_key: "scrollEnd",
|
|
9418
9430
|
ref: n,
|
|
9419
9431
|
class: "ao-list-kanban__end"
|
|
9420
|
-
}, null, 512)) : (v(),
|
|
9421
|
-
r.noMoreLabel ? (v(),
|
|
9432
|
+
}, null, 512)) : (v(), h("div", c4, [
|
|
9433
|
+
r.noMoreLabel ? (v(), h("span", d4, q(r.noMoreLabel), 1)) : (v(), h("span", f4))
|
|
9422
9434
|
]))
|
|
9423
9435
|
]),
|
|
9424
9436
|
_: 1
|
|
9425
9437
|
}, 16, ["list"]),
|
|
9426
|
-
r.$slots.footer || r.footerLabel ? (v(),
|
|
9438
|
+
r.$slots.footer || r.footerLabel ? (v(), h("div", v4, [
|
|
9427
9439
|
ee(r.$slots, "footer", {}, () => [
|
|
9428
9440
|
k(Xe, {
|
|
9429
9441
|
"icon-name": "AddBoxOutlineRounded",
|
|
@@ -9450,7 +9462,7 @@ const h4 = { class: "ao-field ao-search-field" }, m4 = ["value", "placeholder",
|
|
|
9450
9462
|
}, n = a4(s, t.delay), o = (i) => {
|
|
9451
9463
|
e("clear", i);
|
|
9452
9464
|
};
|
|
9453
|
-
return (i, l) => (v(),
|
|
9465
|
+
return (i, l) => (v(), h("div", h4, [
|
|
9454
9466
|
d("input", {
|
|
9455
9467
|
value: i.modelValue,
|
|
9456
9468
|
type: "text",
|
|
@@ -9476,7 +9488,7 @@ const h4 = { class: "ao-field ao-search-field" }, m4 = ["value", "placeholder",
|
|
|
9476
9488
|
}
|
|
9477
9489
|
});
|
|
9478
9490
|
function _4(a) {
|
|
9479
|
-
const e = Q(), t =
|
|
9491
|
+
const e = Q(), t = w(
|
|
9480
9492
|
() => a.value.find(
|
|
9481
9493
|
(n) => n.id === e.value
|
|
9482
9494
|
)
|
|
@@ -9519,15 +9531,15 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9519
9531
|
},
|
|
9520
9532
|
emits: ["change:activities", "addActivity", "update:filters", "selectActivity", "update:activity", "archiveActivity", "update:searchText", "clear:searchText", "update:showsArchivedActivities", "addSubtask", "updateSubtask", "deleteSubtask", "addFiles", "removeFile", "addComment", "updateComment", "removeComment"],
|
|
9521
9533
|
setup(a, { emit: e }) {
|
|
9522
|
-
const t = a, { t: s } = at(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = y4(n), l = (
|
|
9523
|
-
o(
|
|
9534
|
+
const t = a, { t: s } = at(), n = ct(t, "activities"), { selectActivity: o, selectedActivity: i } = y4(n), l = (g) => {
|
|
9535
|
+
o(g), e("selectActivity", g);
|
|
9524
9536
|
}, r = Q({}), c = Q(!1);
|
|
9525
9537
|
re(
|
|
9526
9538
|
[() => t.statuses, () => t.activities],
|
|
9527
9539
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
9528
|
-
async ([
|
|
9540
|
+
async ([g, N], [fe, te]) => {
|
|
9529
9541
|
r.value = Object.fromEntries(
|
|
9530
|
-
|
|
9542
|
+
g.map((J) => [
|
|
9531
9543
|
J.id,
|
|
9532
9544
|
N.filter((x) => {
|
|
9533
9545
|
var I;
|
|
@@ -9538,146 +9550,146 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9538
9550
|
},
|
|
9539
9551
|
{ immediate: !0 }
|
|
9540
9552
|
);
|
|
9541
|
-
const u =
|
|
9542
|
-
var
|
|
9543
|
-
return !i.value || !i.value.milestone ? "" : `${((
|
|
9544
|
-
}), f = (
|
|
9553
|
+
const u = w(() => {
|
|
9554
|
+
var g;
|
|
9555
|
+
return !i.value || !i.value.milestone ? "" : `${((g = i.value.milestone.phase) == null ? void 0 : g.name) ?? ""} / ${i.value.milestone.name ?? ""}`;
|
|
9556
|
+
}), f = (g) => {
|
|
9545
9557
|
var x, I;
|
|
9546
9558
|
const N = (x = t.activities) == null ? void 0 : x.at(-1), fe = N ? Ae.LexoRank.parse(N.rank).genNext() : Ae.LexoRank.middle(), te = ((I = t.activities) == null ? void 0 : I.length) ?? 0, J = {
|
|
9547
9559
|
name: s("activity.defaultName", { idx: te + 1 }),
|
|
9548
9560
|
rank: fe.format(),
|
|
9549
|
-
statusId:
|
|
9561
|
+
statusId: g.id
|
|
9550
9562
|
};
|
|
9551
9563
|
t.filters.assigneeId.length > 0 && (J.assigneeId = t.filters.assigneeId[0]), t.filters.projectId.length > 0 && (J.projectId = t.filters.projectId[0]), t.filters.typeId.length > 0 && (J.typeId = t.filters.typeId[0]), c.value = !0, e("addActivity", J);
|
|
9552
|
-
}, p = (
|
|
9553
|
-
c.value = !1, e("update:filters", { ...t.filters, [
|
|
9554
|
-
},
|
|
9555
|
-
value:
|
|
9556
|
-
label:
|
|
9557
|
-
}))),
|
|
9558
|
-
value:
|
|
9559
|
-
label:
|
|
9560
|
-
}))),
|
|
9561
|
-
value:
|
|
9562
|
-
label: `${
|
|
9563
|
-
}))), A = (
|
|
9564
|
-
i.value && e("update:activity",
|
|
9565
|
-
},
|
|
9566
|
-
e("update:activity",
|
|
9567
|
-
},
|
|
9568
|
-
e("archiveActivity",
|
|
9569
|
-
}, V =
|
|
9564
|
+
}, p = (g, N) => {
|
|
9565
|
+
c.value = !1, e("update:filters", { ...t.filters, [g]: N });
|
|
9566
|
+
}, C = w(() => t.projects.map((g) => ({
|
|
9567
|
+
value: g.id,
|
|
9568
|
+
label: g.name
|
|
9569
|
+
}))), $ = w(() => t.activityTypes.map((g) => ({
|
|
9570
|
+
value: g.id,
|
|
9571
|
+
label: g.name
|
|
9572
|
+
}))), M = w(() => t.users.map((g) => ({
|
|
9573
|
+
value: g.id,
|
|
9574
|
+
label: `${g.firstName} ${g.lastName}`
|
|
9575
|
+
}))), A = (g) => {
|
|
9576
|
+
i.value && e("update:activity", g);
|
|
9577
|
+
}, _ = (g) => {
|
|
9578
|
+
e("update:activity", g);
|
|
9579
|
+
}, y = (g) => {
|
|
9580
|
+
e("archiveActivity", g);
|
|
9581
|
+
}, V = w({
|
|
9570
9582
|
get() {
|
|
9571
|
-
var
|
|
9572
|
-
return (
|
|
9583
|
+
var g;
|
|
9584
|
+
return (g = i.value) == null ? void 0 : g.deadline;
|
|
9573
9585
|
},
|
|
9574
|
-
set(
|
|
9586
|
+
set(g) {
|
|
9575
9587
|
i.value && A({
|
|
9576
9588
|
id: i.value.id,
|
|
9577
|
-
deadline:
|
|
9589
|
+
deadline: g
|
|
9578
9590
|
});
|
|
9579
9591
|
}
|
|
9580
|
-
}),
|
|
9581
|
-
c.value = !1, e("update:searchText",
|
|
9582
|
-
}, F = (
|
|
9583
|
-
c.value = !1, e("clear:searchText",
|
|
9584
|
-
}, H = (
|
|
9585
|
-
i.value && e("addSubtask",
|
|
9586
|
-
}, O = (
|
|
9587
|
-
i.value && e("updateSubtask",
|
|
9588
|
-
}, z = (
|
|
9589
|
-
i.value && e("deleteSubtask",
|
|
9590
|
-
}, K = (
|
|
9591
|
-
e("addFiles",
|
|
9592
|
-
}, ie = (
|
|
9593
|
-
e("removeFile",
|
|
9594
|
-
},
|
|
9592
|
+
}), U = (g) => {
|
|
9593
|
+
c.value = !1, e("update:searchText", g);
|
|
9594
|
+
}, F = (g) => {
|
|
9595
|
+
c.value = !1, e("clear:searchText", g);
|
|
9596
|
+
}, H = (g) => {
|
|
9597
|
+
i.value && e("addSubtask", g);
|
|
9598
|
+
}, O = (g) => {
|
|
9599
|
+
i.value && e("updateSubtask", g);
|
|
9600
|
+
}, z = (g) => {
|
|
9601
|
+
i.value && e("deleteSubtask", g);
|
|
9602
|
+
}, K = (g) => {
|
|
9603
|
+
e("addFiles", g);
|
|
9604
|
+
}, ie = (g) => {
|
|
9605
|
+
e("removeFile", g);
|
|
9606
|
+
}, b = (g) => {
|
|
9595
9607
|
i.value && e("addComment", {
|
|
9596
|
-
...
|
|
9608
|
+
...g,
|
|
9597
9609
|
activityId: i.value.id
|
|
9598
9610
|
});
|
|
9599
|
-
}, T = (
|
|
9611
|
+
}, T = (g) => {
|
|
9600
9612
|
const { id: N } = i.value || {};
|
|
9601
|
-
N && e("updateComment",
|
|
9602
|
-
}, P = (
|
|
9613
|
+
N && e("updateComment", g);
|
|
9614
|
+
}, P = (g) => {
|
|
9603
9615
|
const { id: N } = i.value || {};
|
|
9604
|
-
N && e("removeComment",
|
|
9605
|
-
}, le =
|
|
9606
|
-
var
|
|
9607
|
-
return (
|
|
9616
|
+
N && e("removeComment", g);
|
|
9617
|
+
}, le = w(() => {
|
|
9618
|
+
var g;
|
|
9619
|
+
return (g = t.projects) == null ? void 0 : g.map((N) => ({
|
|
9608
9620
|
value: N.id,
|
|
9609
9621
|
label: N.name
|
|
9610
9622
|
}));
|
|
9611
|
-
}), ae =
|
|
9623
|
+
}), ae = w(() => {
|
|
9612
9624
|
var N, fe, te;
|
|
9613
|
-
const
|
|
9614
|
-
return
|
|
9625
|
+
const g = (te = (fe = (N = i.value) == null ? void 0 : N.project) == null ? void 0 : fe.phases) == null ? void 0 : te.reduce((J, x) => [...J, ...x.milestones], []);
|
|
9626
|
+
return g == null ? void 0 : g.map((J) => ({
|
|
9615
9627
|
value: J.id,
|
|
9616
9628
|
label: J.name
|
|
9617
9629
|
}));
|
|
9618
|
-
}), ue = (
|
|
9630
|
+
}), ue = (g) => {
|
|
9619
9631
|
i.value && e("update:activity", {
|
|
9620
9632
|
id: i.value.id,
|
|
9621
|
-
projectId:
|
|
9633
|
+
projectId: g
|
|
9622
9634
|
});
|
|
9623
|
-
}, se = (
|
|
9635
|
+
}, se = (g) => {
|
|
9624
9636
|
i.value && e("update:activity", {
|
|
9625
9637
|
id: i.value.id,
|
|
9626
|
-
milestoneId:
|
|
9638
|
+
milestoneId: g
|
|
9627
9639
|
});
|
|
9628
|
-
}, E =
|
|
9629
|
-
var
|
|
9630
|
-
return (
|
|
9640
|
+
}, E = w(() => {
|
|
9641
|
+
var g;
|
|
9642
|
+
return (g = t.statuses) == null ? void 0 : g.map((N) => ({
|
|
9631
9643
|
value: N.id,
|
|
9632
9644
|
label: N.name
|
|
9633
9645
|
}));
|
|
9634
|
-
}), L = (
|
|
9646
|
+
}), L = (g) => {
|
|
9635
9647
|
i.value && e("update:activity", {
|
|
9636
9648
|
id: i.value.id,
|
|
9637
|
-
statusId:
|
|
9649
|
+
statusId: g
|
|
9638
9650
|
});
|
|
9639
9651
|
};
|
|
9640
|
-
return (
|
|
9652
|
+
return (g, N) => {
|
|
9641
9653
|
var fe;
|
|
9642
|
-
return v(),
|
|
9654
|
+
return v(), h("div", b4, [
|
|
9643
9655
|
k(r1, null, {
|
|
9644
9656
|
primary: R(() => [
|
|
9645
9657
|
d("div", w4, [
|
|
9646
9658
|
k(C4, {
|
|
9647
|
-
"model-value":
|
|
9648
|
-
placeholder:
|
|
9659
|
+
"model-value": g.searchText,
|
|
9660
|
+
placeholder: g.$t("feed.search.placeholder"),
|
|
9649
9661
|
class: "ao-feed__search",
|
|
9650
|
-
"onUpdate:modelValue":
|
|
9662
|
+
"onUpdate:modelValue": U,
|
|
9651
9663
|
onClear: F
|
|
9652
9664
|
}, null, 8, ["model-value", "placeholder"]),
|
|
9653
9665
|
k(be, {
|
|
9654
|
-
"model-value":
|
|
9666
|
+
"model-value": g.filters[Z(ut).project],
|
|
9655
9667
|
mode: "tags",
|
|
9656
|
-
options:
|
|
9668
|
+
options: C.value,
|
|
9657
9669
|
"close-on-select": !1,
|
|
9658
9670
|
searchable: !0,
|
|
9659
9671
|
class: "ao-feed__filter ao-feed__filter__projects",
|
|
9660
|
-
placeholder:
|
|
9672
|
+
placeholder: g.$t("feed.filters.project.placeholder"),
|
|
9661
9673
|
"onUpdate:modelValue": N[0] || (N[0] = (te) => p(Z(ut).project, te))
|
|
9662
9674
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
9663
9675
|
k(be, {
|
|
9664
|
-
"model-value":
|
|
9676
|
+
"model-value": g.filters[Z(ut).type],
|
|
9665
9677
|
mode: "tags",
|
|
9666
|
-
options:
|
|
9678
|
+
options: $.value,
|
|
9667
9679
|
"close-on-select": !1,
|
|
9668
9680
|
searchable: !0,
|
|
9669
9681
|
class: "ao-feed__filter ao-feed__filter__types",
|
|
9670
|
-
placeholder:
|
|
9682
|
+
placeholder: g.$t("feed.filters.activityType.placeholder"),
|
|
9671
9683
|
"onUpdate:modelValue": N[1] || (N[1] = (te) => p(Z(ut).type, te))
|
|
9672
9684
|
}, null, 8, ["model-value", "options", "placeholder"]),
|
|
9673
9685
|
k(be, {
|
|
9674
|
-
"model-value":
|
|
9686
|
+
"model-value": g.filters[Z(ut).assignee],
|
|
9675
9687
|
mode: "tags",
|
|
9676
|
-
options:
|
|
9688
|
+
options: M.value,
|
|
9677
9689
|
"close-on-select": !1,
|
|
9678
9690
|
searchable: !0,
|
|
9679
9691
|
class: "ao-feed__filter ao-feed__filter__assignees",
|
|
9680
|
-
placeholder:
|
|
9692
|
+
placeholder: g.$t("feed.filters.assignee.placeholder"),
|
|
9681
9693
|
"onUpdate:modelValue": N[2] || (N[2] = (te) => p(Z(ut).assignee, te))
|
|
9682
9694
|
}, {
|
|
9683
9695
|
tag: R(({ option: te, handleTagRemove: J }) => [
|
|
@@ -9693,43 +9705,43 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9693
9705
|
k(ce, {
|
|
9694
9706
|
class: "ao-feed__show-archived",
|
|
9695
9707
|
size: "sm",
|
|
9696
|
-
"icon-name":
|
|
9708
|
+
"icon-name": g.showsArchivedActivities ? "CheckBoxOutlineRounded" : "CheckBoxOutlineBlank",
|
|
9697
9709
|
"icon-position": "start",
|
|
9698
9710
|
color: "primary",
|
|
9699
9711
|
variant: "ghost",
|
|
9700
|
-
label:
|
|
9712
|
+
label: g.$t("feed.filters.showsArchivedActivities.label"),
|
|
9701
9713
|
role: "checkbox",
|
|
9702
|
-
"aria-checked":
|
|
9703
|
-
onClick: N[3] || (N[3] = (te) =>
|
|
9714
|
+
"aria-checked": g.showsArchivedActivities,
|
|
9715
|
+
onClick: N[3] || (N[3] = (te) => g.$emit("update:showsArchivedActivities", !g.showsArchivedActivities))
|
|
9704
9716
|
}, null, 8, ["icon-name", "label", "aria-checked"])
|
|
9705
9717
|
]),
|
|
9706
9718
|
_: 1
|
|
9707
9719
|
}),
|
|
9708
9720
|
d("div", $4, [
|
|
9709
|
-
(v(!0),
|
|
9721
|
+
(v(!0), h(ve, null, ye(g.statuses, (te) => (v(), j(p4, {
|
|
9710
9722
|
key: te.id,
|
|
9711
9723
|
status: te,
|
|
9712
9724
|
list: r.value[te.id],
|
|
9713
9725
|
title: te.name,
|
|
9714
|
-
"footer-label":
|
|
9715
|
-
users:
|
|
9726
|
+
"footer-label": g.$t("feed.activity.add"),
|
|
9727
|
+
users: g.users,
|
|
9716
9728
|
onAdd: () => f(te),
|
|
9717
9729
|
onSelectActivity: l,
|
|
9718
|
-
onArchiveActivity:
|
|
9719
|
-
onUpdateActivity:
|
|
9730
|
+
onArchiveActivity: y,
|
|
9731
|
+
onUpdateActivity: _
|
|
9720
9732
|
}, null, 8, ["status", "list", "title", "footer-label", "users", "onAdd"]))), 128))
|
|
9721
9733
|
]),
|
|
9722
|
-
(v(),
|
|
9723
|
-
Z(i) ? (v(),
|
|
9734
|
+
(v(), j(It, { to: "body" }, [
|
|
9735
|
+
Z(i) ? (v(), j(B1, {
|
|
9724
9736
|
key: 0,
|
|
9725
9737
|
activity: Z(i),
|
|
9726
|
-
"activity-types":
|
|
9738
|
+
"activity-types": $.value,
|
|
9727
9739
|
"milestone-id": (fe = Z(i).milestone) == null ? void 0 : fe.id,
|
|
9728
9740
|
"template-activities": n.value,
|
|
9729
|
-
users:
|
|
9730
|
-
"user-id":
|
|
9731
|
-
"is-task-checkable":
|
|
9732
|
-
statuses:
|
|
9741
|
+
users: g.users,
|
|
9742
|
+
"user-id": g.userId,
|
|
9743
|
+
"is-task-checkable": g.isTaskCheckable,
|
|
9744
|
+
statuses: g.statuses,
|
|
9733
9745
|
breadcrumbs: u.value,
|
|
9734
9746
|
"is-editable": !0,
|
|
9735
9747
|
onClose: N[5] || (N[5] = () => l(null)),
|
|
@@ -9739,7 +9751,7 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9739
9751
|
onDeleteSubtask: z,
|
|
9740
9752
|
onAddFiles: K,
|
|
9741
9753
|
onRemoveFile: ie,
|
|
9742
|
-
onAddComment:
|
|
9754
|
+
onAddComment: b,
|
|
9743
9755
|
onUpdateComment: T,
|
|
9744
9756
|
onRemoveComment: P
|
|
9745
9757
|
}, {
|
|
@@ -9747,8 +9759,8 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9747
9759
|
var te, J, x;
|
|
9748
9760
|
return [
|
|
9749
9761
|
d("div", M4, [
|
|
9750
|
-
le.value ? (v(),
|
|
9751
|
-
d("span", A4, q(
|
|
9762
|
+
le.value ? (v(), h("label", k4, [
|
|
9763
|
+
d("span", A4, q(g.$t("activity.project.label")), 1),
|
|
9752
9764
|
k(be, {
|
|
9753
9765
|
options: le.value,
|
|
9754
9766
|
value: (te = Z(i).project) == null ? void 0 : te.id,
|
|
@@ -9756,8 +9768,8 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9756
9768
|
onChange: ue
|
|
9757
9769
|
}, null, 8, ["options", "value"])
|
|
9758
9770
|
])) : S("", !0),
|
|
9759
|
-
ae.value ? (v(),
|
|
9760
|
-
d("span", S4, q(
|
|
9771
|
+
ae.value ? (v(), h("label", T4, [
|
|
9772
|
+
d("span", S4, q(g.$t("activity.milestone.label")), 1),
|
|
9761
9773
|
k(be, {
|
|
9762
9774
|
options: ae.value,
|
|
9763
9775
|
value: (J = Z(i).milestone) == null ? void 0 : J.id,
|
|
@@ -9765,8 +9777,8 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9765
9777
|
onChange: se
|
|
9766
9778
|
}, null, 8, ["options", "value"])
|
|
9767
9779
|
])) : S("", !0),
|
|
9768
|
-
E.value ? (v(),
|
|
9769
|
-
d("span", I4, q(
|
|
9780
|
+
E.value ? (v(), h("label", E4, [
|
|
9781
|
+
d("span", I4, q(g.$t("activity.status.label")), 1),
|
|
9770
9782
|
k(be, {
|
|
9771
9783
|
options: E.value,
|
|
9772
9784
|
value: (x = Z(i).status) == null ? void 0 : x.id,
|
|
@@ -9781,7 +9793,7 @@ const b4 = { class: "ao-feed" }, w4 = { class: "ao-feed__filters" }, $4 = { clas
|
|
|
9781
9793
|
default: R(() => [
|
|
9782
9794
|
d("div", O4, [
|
|
9783
9795
|
d("label", L4, [
|
|
9784
|
-
d("span", V4, q(
|
|
9796
|
+
d("span", V4, q(g.$t("activity.deadline.label")), 1),
|
|
9785
9797
|
dt(d("input", {
|
|
9786
9798
|
"onUpdate:modelValue": N[4] || (N[4] = (te) => V.value = te),
|
|
9787
9799
|
class: "ao-field__input",
|