@26lights/orcha 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/orcha.cjs.js +1 -1
- package/dist/orcha.es.js +492 -477
- package/dist/orcha.umd.js +1 -1
- package/dist/src/helpers.d.ts +2 -2
- package/dist/src/types/index.d.ts +5 -4
- package/package.json +1 -1
package/dist/orcha.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as X, openBlock as c, createBlock as j, unref as s1, mergeProps as H1, createElementBlock as C, createElementVNode as u, pushScopeId as wt, popScopeId as yt, createStaticVNode as $t, computed as v, resolveDynamicComponent as x1, normalizeClass as N, renderSlot as K, toDisplayString as z, createCommentVNode as
|
|
2
|
-
import { RouterView as
|
|
1
|
+
import { defineComponent as X, openBlock as c, createBlock as j, unref as s1, mergeProps as H1, createElementBlock as C, createElementVNode as u, pushScopeId as wt, popScopeId as yt, createStaticVNode as $t, computed as v, resolveDynamicComponent as x1, normalizeClass as N, renderSlot as K, toDisplayString as z, createCommentVNode as V, ref as W, watch as c1, nextTick as K1, toHandlers as Mt, withCtx as x, createTextVNode as ye, createVNode as P, withModifiers as te, Fragment as m1, renderList as V1, withKeys as Be, toRefs as r1, getCurrentInstance as Z1, onMounted as Ue, withDirectives as se, vModelText as we, vModelCheckbox as Lt, toRef as ge, Teleport as Pe } from "vue";
|
|
2
|
+
import { RouterView as Vt } from "vue-router";
|
|
3
3
|
import ae from "vuedraggable";
|
|
4
4
|
const Ki = /* @__PURE__ */ X({
|
|
5
5
|
__name: "AoTemplates",
|
|
@@ -7,7 +7,7 @@ const Ki = /* @__PURE__ */ X({
|
|
|
7
7
|
templates: {}
|
|
8
8
|
},
|
|
9
9
|
setup(s) {
|
|
10
|
-
return (e, t) => (c(), j(s1(
|
|
10
|
+
return (e, t) => (c(), j(s1(Vt), H1({ templates: e.templates }, e.$attrs), null, 16, ["templates"]));
|
|
11
11
|
}
|
|
12
12
|
}), w = (s, e) => {
|
|
13
13
|
const t = s.__vccOpts || s;
|
|
@@ -41,10 +41,10 @@ const Tt = /* @__PURE__ */ w(It, [["render", At]]), Ot = {}, kt = {
|
|
|
41
41
|
}, null, -1), Bt = [
|
|
42
42
|
Zt
|
|
43
43
|
];
|
|
44
|
-
function
|
|
44
|
+
function Pt(s, e) {
|
|
45
45
|
return c(), C("svg", kt, Bt);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const Dt = /* @__PURE__ */ w(Ot, [["render", Pt]]), Nt = {}, Rt = {
|
|
48
48
|
width: "24",
|
|
49
49
|
height: "24",
|
|
50
50
|
viewBox: "0 0 24 24",
|
|
@@ -146,10 +146,10 @@ const b2 = /* @__PURE__ */ w(p2, [["render", g2]]), w2 = {}, y2 = {
|
|
|
146
146
|
}, null, -1), M2 = [
|
|
147
147
|
$2
|
|
148
148
|
];
|
|
149
|
-
function
|
|
149
|
+
function L2(s, e) {
|
|
150
150
|
return c(), C("svg", y2, M2);
|
|
151
151
|
}
|
|
152
|
-
const
|
|
152
|
+
const V2 = /* @__PURE__ */ w(w2, [["render", L2]]), I2 = {}, S2 = {
|
|
153
153
|
width: "24",
|
|
154
154
|
height: "24",
|
|
155
155
|
viewBox: "0 0 24 24",
|
|
@@ -176,10 +176,10 @@ const T2 = /* @__PURE__ */ w(I2, [["render", A2]]), O2 = {}, k2 = {
|
|
|
176
176
|
}, null, -1), B2 = [
|
|
177
177
|
Z2
|
|
178
178
|
];
|
|
179
|
-
function
|
|
179
|
+
function P2(s, e) {
|
|
180
180
|
return c(), C("svg", k2, B2);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
182
|
+
const D2 = /* @__PURE__ */ w(O2, [["render", P2]]), N2 = {}, R2 = {
|
|
183
183
|
width: "24",
|
|
184
184
|
height: "24",
|
|
185
185
|
viewBox: "0 0 24 24",
|
|
@@ -281,10 +281,10 @@ const bs = /* @__PURE__ */ w(ps, [["render", gs]]), ws = {}, ys = {
|
|
|
281
281
|
}, null, -1), Ms = [
|
|
282
282
|
$s
|
|
283
283
|
];
|
|
284
|
-
function
|
|
284
|
+
function Ls(s, e) {
|
|
285
285
|
return c(), C("svg", ys, Ms);
|
|
286
286
|
}
|
|
287
|
-
const
|
|
287
|
+
const Vs = /* @__PURE__ */ w(ws, [["render", Ls]]), Is = {}, Ss = {
|
|
288
288
|
width: "24",
|
|
289
289
|
height: "24",
|
|
290
290
|
viewBox: "0 0 24 24",
|
|
@@ -311,10 +311,10 @@ const Ts = /* @__PURE__ */ w(Is, [["render", As]]), Os = {}, ks = {
|
|
|
311
311
|
}, null, -1), Bs = [
|
|
312
312
|
Zs
|
|
313
313
|
];
|
|
314
|
-
function
|
|
314
|
+
function Ps(s, e) {
|
|
315
315
|
return c(), C("svg", ks, Bs);
|
|
316
316
|
}
|
|
317
|
-
const
|
|
317
|
+
const Ds = /* @__PURE__ */ w(Os, [["render", Ps]]), Ns = {}, Rs = {
|
|
318
318
|
width: "24",
|
|
319
319
|
height: "24",
|
|
320
320
|
viewBox: "0 0 24 24",
|
|
@@ -416,10 +416,10 @@ const b3 = /* @__PURE__ */ w(p3, [["render", g3]]), w3 = {}, y3 = {
|
|
|
416
416
|
}, null, -1), M3 = [
|
|
417
417
|
$3
|
|
418
418
|
];
|
|
419
|
-
function
|
|
419
|
+
function L3(s, e) {
|
|
420
420
|
return c(), C("svg", y3, M3);
|
|
421
421
|
}
|
|
422
|
-
const
|
|
422
|
+
const V3 = /* @__PURE__ */ w(w3, [["render", L3]]), I3 = {}, S3 = {
|
|
423
423
|
width: "24",
|
|
424
424
|
height: "24",
|
|
425
425
|
viewBox: "0 0 24 24",
|
|
@@ -446,10 +446,10 @@ const T3 = /* @__PURE__ */ w(I3, [["render", A3]]), O3 = {}, k3 = {
|
|
|
446
446
|
}, null, -1), B3 = [
|
|
447
447
|
Z3
|
|
448
448
|
];
|
|
449
|
-
function
|
|
449
|
+
function P3(s, e) {
|
|
450
450
|
return c(), C("svg", k3, B3);
|
|
451
451
|
}
|
|
452
|
-
const
|
|
452
|
+
const D3 = /* @__PURE__ */ w(O3, [["render", P3]]), N3 = {}, R3 = {
|
|
453
453
|
width: "24",
|
|
454
454
|
height: "24",
|
|
455
455
|
viewBox: "0 0 24 24",
|
|
@@ -551,10 +551,10 @@ const ba = /* @__PURE__ */ w(pa, [["render", ga]]), wa = {}, ya = {
|
|
|
551
551
|
}, null, -1), Ma = [
|
|
552
552
|
$a
|
|
553
553
|
];
|
|
554
|
-
function
|
|
554
|
+
function La(s, e) {
|
|
555
555
|
return c(), C("svg", ya, Ma);
|
|
556
556
|
}
|
|
557
|
-
const
|
|
557
|
+
const Va = /* @__PURE__ */ w(wa, [["render", La]]), Ia = {}, Sa = {
|
|
558
558
|
width: "24",
|
|
559
559
|
height: "24",
|
|
560
560
|
viewBox: "0 0 24 24",
|
|
@@ -581,10 +581,10 @@ const Ta = /* @__PURE__ */ w(Ia, [["render", Aa]]), Oa = {}, ka = {
|
|
|
581
581
|
}, null, -1), Ba = [
|
|
582
582
|
Za
|
|
583
583
|
];
|
|
584
|
-
function
|
|
584
|
+
function Pa(s, e) {
|
|
585
585
|
return c(), C("svg", ka, Ba);
|
|
586
586
|
}
|
|
587
|
-
const
|
|
587
|
+
const Da = /* @__PURE__ */ w(Oa, [["render", Pa]]), Na = {}, Ra = {
|
|
588
588
|
width: "24",
|
|
589
589
|
height: "24",
|
|
590
590
|
viewBox: "0 0 24 24",
|
|
@@ -697,14 +697,14 @@ const yl = /* @__PURE__ */ w(_l, [["render", wl]]), $l = {}, Ml = {
|
|
|
697
697
|
viewBox: "0 0 24 24",
|
|
698
698
|
fill: "none",
|
|
699
699
|
xmlns: "http://www.w3.org/2000/svg"
|
|
700
|
-
},
|
|
700
|
+
}, Ll = /* @__PURE__ */ u("path", {
|
|
701
701
|
d: "M12 20C11.45 20 10.979 19.804 10.587 19.412C10.195 19.02 9.99934 18.5493 10 18C10 17.45 10.196 16.979 10.588 16.587C10.98 16.195 11.4507 15.9993 12 16C12.55 16 13.021 16.196 13.413 16.588C13.805 16.98 14.0007 17.4507 14 18C14 18.55 13.804 19.021 13.412 19.413C13.02 19.805 12.5493 20.0007 12 20ZM12 14C11.45 14 10.979 13.804 10.587 13.412C10.195 13.02 9.99934 12.5493 10 12C10 11.45 10.196 10.979 10.588 10.587C10.98 10.195 11.4507 9.99934 12 10C12.55 10 13.021 10.196 13.413 10.588C13.805 10.98 14.0007 11.4507 14 12C14 12.55 13.804 13.021 13.412 13.413C13.02 13.805 12.5493 14.0007 12 14ZM12 8C11.45 8 10.979 7.804 10.587 7.412C10.195 7.02 9.99934 6.54934 10 6C10 5.45 10.196 4.979 10.588 4.587C10.98 4.195 11.4507 3.99934 12 4C12.55 4 13.021 4.196 13.413 4.588C13.805 4.98 14.0007 5.45067 14 6C14 6.55 13.804 7.021 13.412 7.413C13.02 7.805 12.5493 8.00067 12 8Z",
|
|
702
702
|
fill: "black"
|
|
703
|
-
}, null, -1),
|
|
704
|
-
|
|
703
|
+
}, null, -1), Vl = [
|
|
704
|
+
Ll
|
|
705
705
|
];
|
|
706
706
|
function Il(s, e) {
|
|
707
|
-
return c(), C("svg", Ml,
|
|
707
|
+
return c(), C("svg", Ml, Vl);
|
|
708
708
|
}
|
|
709
709
|
const Sl = /* @__PURE__ */ w($l, [["render", Il]]), Hl = {}, El = {
|
|
710
710
|
width: "24",
|
|
@@ -727,14 +727,14 @@ const kl = /* @__PURE__ */ w(Hl, [["render", Ol]]), Zl = {}, Bl = {
|
|
|
727
727
|
viewBox: "0 0 24 24",
|
|
728
728
|
fill: "none",
|
|
729
729
|
xmlns: "http://www.w3.org/2000/svg"
|
|
730
|
-
},
|
|
730
|
+
}, Pl = /* @__PURE__ */ u("path", {
|
|
731
731
|
d: "M19 14C18.7167 14 18.479 13.904 18.287 13.712C18.095 13.52 17.9993 13.2827 18 13V11H16C15.7167 11 15.479 10.904 15.287 10.712C15.095 10.52 14.9993 10.2827 15 10C15 9.71667 15.096 9.479 15.288 9.287C15.48 9.095 15.7173 8.99933 16 9H18V7C18 6.71667 18.096 6.479 18.288 6.287C18.48 6.095 18.7173 5.99933 19 6C19.2833 6 19.521 6.096 19.713 6.288C19.905 6.48 20.0007 6.71733 20 7V9H22C22.2833 9 22.521 9.096 22.713 9.288C22.905 9.48 23.0007 9.71733 23 10C23 10.2833 22.904 10.521 22.712 10.713C22.52 10.905 22.2827 11.0007 22 11H20V13C20 13.2833 19.904 13.521 19.712 13.713C19.52 13.905 19.2827 14.0007 19 14ZM9 12C7.9 12 6.95834 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95834 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM2 20C1.71667 20 1.479 19.904 1.287 19.712C1.095 19.52 0.999337 19.2827 1 19V17.2C1 16.6333 1.146 16.1123 1.438 15.637C1.73 15.1617 2.11734 14.7993 2.6 14.55C3.63334 14.0333 4.68334 13.6457 5.75 13.387C6.81667 13.1283 7.9 12.9993 9 13C10.1 13 11.1833 13.1293 12.25 13.388C13.3167 13.6467 14.3667 14.034 15.4 14.55C15.8833 14.8 16.271 15.1627 16.563 15.638C16.855 16.1133 17.0007 16.634 17 17.2V19C17 19.2833 16.904 19.521 16.712 19.713C16.52 19.905 16.2827 20.0007 16 20H2ZM3 18H15V17.2C15 17.0167 14.954 16.85 14.862 16.7C14.77 16.55 14.6493 16.4333 14.5 16.35C13.6 15.9 12.6917 15.5627 11.775 15.338C10.8583 15.1133 9.93334 15.0007 9 15C8.06667 15 7.14167 15.1127 6.225 15.338C5.30834 15.5633 4.4 15.9007 3.5 16.35C3.35 16.4333 3.229 16.55 3.137 16.7C3.045 16.85 2.99934 17.0167 3 17.2V18ZM9 10C9.55 10 10.021 9.804 10.413 9.412C10.805 9.02 11.0007 8.54933 11 8C11 7.45 10.804 6.979 10.412 6.587C10.02 6.195 9.54934 5.99933 9 6C8.45 6 7.979 6.196 7.587 6.588C7.195 6.98 6.99934 7.45067 7 8C7 8.55 7.196 9.021 7.588 9.413C7.98 9.805 8.45067 10.0007 9 10Z",
|
|
732
732
|
fill: "black"
|
|
733
|
-
}, null, -1),
|
|
734
|
-
|
|
733
|
+
}, null, -1), Dl = [
|
|
734
|
+
Pl
|
|
735
735
|
];
|
|
736
736
|
function Nl(s, e) {
|
|
737
|
-
return c(), C("svg", Bl,
|
|
737
|
+
return c(), C("svg", Bl, Dl);
|
|
738
738
|
}
|
|
739
739
|
const Rl = /* @__PURE__ */ w(Zl, [["render", Nl]]), Ul = {}, ql = {
|
|
740
740
|
width: "24",
|
|
@@ -829,14 +829,14 @@ const y5 = /* @__PURE__ */ w(_5, [["render", w5]]), $5 = {}, M5 = {
|
|
|
829
829
|
viewBox: "0 0 24 24",
|
|
830
830
|
fill: "none",
|
|
831
831
|
xmlns: "http://www.w3.org/2000/svg"
|
|
832
|
-
},
|
|
832
|
+
}, L5 = /* @__PURE__ */ u("path", {
|
|
833
833
|
d: "M5 21C4.45 21 3.979 20.804 3.587 20.412C3.195 20.02 2.99934 19.5493 3 19V5C3 4.45 3.196 3.979 3.588 3.587C3.98 3.195 4.45067 2.99934 5 3H19C19.1333 3 19.2583 3.01267 19.375 3.038C19.4917 3.06334 19.6083 3.10067 19.725 3.15L17.875 5H5V19H19V12.35L21 10.35V19C21 19.55 20.804 20.021 20.412 20.413C20.02 20.805 19.5493 21.0007 19 21H5ZM11.525 17L5.875 11.35L7.275 9.95L11.525 14.2L20.7 5.025L22.125 6.4L11.525 17Z",
|
|
834
834
|
fill: "black"
|
|
835
|
-
}, null, -1),
|
|
836
|
-
|
|
835
|
+
}, null, -1), V5 = [
|
|
836
|
+
L5
|
|
837
837
|
];
|
|
838
838
|
function I5(s, e) {
|
|
839
|
-
return c(), C("svg", M5,
|
|
839
|
+
return c(), C("svg", M5, V5);
|
|
840
840
|
}
|
|
841
841
|
const S5 = /* @__PURE__ */ w($5, [["render", I5]]), H5 = {}, E5 = {
|
|
842
842
|
width: "24",
|
|
@@ -859,14 +859,14 @@ const k5 = /* @__PURE__ */ w(H5, [["render", O5]]), Z5 = {}, B5 = {
|
|
|
859
859
|
viewBox: "0 0 24 24",
|
|
860
860
|
fill: "none",
|
|
861
861
|
xmlns: "http://www.w3.org/2000/svg"
|
|
862
|
-
},
|
|
862
|
+
}, P5 = /* @__PURE__ */ u("path", {
|
|
863
863
|
d: "M9.24995 22L8.84995 18.8C8.63329 18.7167 8.42895 18.6167 8.23695 18.5C8.04495 18.3833 7.85762 18.2583 7.67495 18.125L4.69995 19.375L1.94995 14.625L4.52495 12.675C4.50828 12.5583 4.49995 12.4457 4.49995 12.337V11.663C4.49995 11.5543 4.50828 11.4417 4.52495 11.325L1.94995 9.375L4.69995 4.625L7.67495 5.875C7.85828 5.74167 8.04995 5.61667 8.24995 5.5C8.44995 5.38333 8.64995 5.28333 8.84995 5.2L9.24995 2H14.75L15.15 5.2C15.3666 5.28333 15.571 5.38333 15.763 5.5C15.955 5.61667 16.1423 5.74167 16.325 5.875L19.2999 4.625L22.0499 9.375L19.475 11.325C19.4916 11.4417 19.5 11.5543 19.5 11.663V12.337C19.5 12.4457 19.4833 12.5583 19.45 12.675L22.025 14.625L19.275 19.375L16.325 18.125C16.1416 18.2583 15.95 18.3833 15.75 18.5C15.55 18.6167 15.35 18.7167 15.15 18.8L14.75 22H9.24995ZM12.05 15.5C13.0166 15.5 13.8416 15.1583 14.525 14.475C15.2083 13.7917 15.55 12.9667 15.55 12C15.55 11.0333 15.2083 10.2083 14.525 9.525C13.8416 8.84167 13.0166 8.5 12.05 8.5C11.0666 8.5 10.2373 8.84167 9.56195 9.525C8.88662 10.2083 8.54928 11.0333 8.54995 12C8.54995 12.9667 8.88728 13.7917 9.56195 14.475C10.2366 15.1583 11.066 15.5 12.05 15.5Z",
|
|
864
864
|
fill: "black"
|
|
865
|
-
}, null, -1),
|
|
866
|
-
|
|
865
|
+
}, null, -1), D5 = [
|
|
866
|
+
P5
|
|
867
867
|
];
|
|
868
868
|
function N5(s, e) {
|
|
869
|
-
return c(), C("svg", B5,
|
|
869
|
+
return c(), C("svg", B5, D5);
|
|
870
870
|
}
|
|
871
871
|
const R5 = /* @__PURE__ */ w(Z5, [["render", N5]]), U5 = {}, q5 = {
|
|
872
872
|
width: "24",
|
|
@@ -964,14 +964,14 @@ const y7 = /* @__PURE__ */ w(_7, [["render", w7]]), $7 = {}, M7 = {
|
|
|
964
964
|
viewBox: "0 0 24 24",
|
|
965
965
|
fill: "none",
|
|
966
966
|
xmlns: "http://www.w3.org/2000/svg"
|
|
967
|
-
},
|
|
967
|
+
}, L7 = /* @__PURE__ */ u("path", {
|
|
968
968
|
d: "M8.5 16.5H10.5C10.7833 16.5 11.021 16.404 11.213 16.212C11.405 16.02 11.5007 15.7827 11.5 15.5V13.5C11.5 13.2167 11.404 12.979 11.212 12.787C11.02 12.595 10.7827 12.4993 10.5 12.5H8.5C8.21667 12.5 7.979 12.596 7.787 12.788C7.595 12.98 7.49934 13.2173 7.5 13.5V15.5C7.5 15.7833 7.596 16.021 7.788 16.213C7.98 16.405 8.21734 16.5007 8.5 16.5ZM8.5 11.5H10.5C10.7833 11.5 11.021 11.404 11.213 11.212C11.405 11.02 11.5007 10.7827 11.5 10.5V8.5C11.5 8.21667 11.404 7.979 11.212 7.787C11.02 7.595 10.7827 7.49934 10.5 7.5H8.5C8.21667 7.5 7.979 7.596 7.787 7.788C7.595 7.98 7.49934 8.21734 7.5 8.5V10.5C7.5 10.7833 7.596 11.021 7.788 11.213C7.98 11.405 8.21734 11.5007 8.5 11.5ZM13.5 16.5H15.5C15.7833 16.5 16.021 16.404 16.213 16.212C16.405 16.02 16.5007 15.7827 16.5 15.5V13.5C16.5 13.2167 16.404 12.979 16.212 12.787C16.02 12.595 15.7827 12.4993 15.5 12.5H13.5C13.2167 12.5 12.979 12.596 12.787 12.788C12.595 12.98 12.4993 13.2173 12.5 13.5V15.5C12.5 15.7833 12.596 16.021 12.788 16.213C12.98 16.405 13.2173 16.5007 13.5 16.5ZM13.5 11.5H15.5C15.7833 11.5 16.021 11.404 16.213 11.212C16.405 11.02 16.5007 10.7827 16.5 10.5V8.5C16.5 8.21667 16.404 7.979 16.212 7.787C16.02 7.595 15.7827 7.49934 15.5 7.5H13.5C13.2167 7.5 12.979 7.596 12.787 7.788C12.595 7.98 12.4993 8.21734 12.5 8.5V10.5C12.5 10.7833 12.596 11.021 12.788 11.213C12.98 11.405 13.2173 11.5007 13.5 11.5ZM4 20C3.45 20 2.979 19.804 2.587 19.412C2.195 19.02 1.99934 18.5493 2 18V6C2 5.45 2.196 4.979 2.588 4.587C2.98 4.195 3.45067 3.99934 4 4H20C20.55 4 21.021 4.196 21.413 4.588C21.805 4.98 22.0007 5.45067 22 6V18C22 18.55 21.804 19.021 21.412 19.413C21.02 19.805 20.5493 20.0007 20 20H4Z",
|
|
969
969
|
fill: "black"
|
|
970
|
-
}, null, -1),
|
|
971
|
-
|
|
970
|
+
}, null, -1), V7 = [
|
|
971
|
+
L7
|
|
972
972
|
];
|
|
973
973
|
function I7(s, e) {
|
|
974
|
-
return c(), C("svg", M7,
|
|
974
|
+
return c(), C("svg", M7, V7);
|
|
975
975
|
}
|
|
976
976
|
const S7 = /* @__PURE__ */ w($7, [["render", I7]]), H7 = {}, E7 = {
|
|
977
977
|
width: "24",
|
|
@@ -994,14 +994,14 @@ const k7 = /* @__PURE__ */ w(H7, [["render", O7]]), Z7 = {}, B7 = {
|
|
|
994
994
|
viewBox: "0 0 24 24",
|
|
995
995
|
fill: "none",
|
|
996
996
|
xmlns: "http://www.w3.org/2000/svg"
|
|
997
|
-
},
|
|
997
|
+
}, P7 = /* @__PURE__ */ u("path", {
|
|
998
998
|
d: "M2.72499 21C2.54166 21 2.37499 20.954 2.22499 20.862C2.07499 20.77 1.95833 20.6493 1.87499 20.5C1.79166 20.35 1.74566 20.1873 1.73699 20.012C1.72833 19.8367 1.77433 19.666 1.87499 19.5L11.125 3.5C11.225 3.33333 11.3543 3.20833 11.513 3.125C11.6717 3.04167 11.834 3 12 3C12.1667 3 12.3293 3.04167 12.488 3.125C12.6467 3.20833 12.7757 3.33333 12.875 3.5L22.125 19.5C22.225 19.6667 22.271 19.8377 22.263 20.013C22.255 20.1883 22.209 20.3507 22.125 20.5C22.0417 20.65 21.925 20.771 21.775 20.863C21.625 20.955 21.4583 21.0007 21.275 21H2.72499ZM4.44999 19H19.55L12 6L4.44999 19ZM12 18C12.2833 18 12.521 17.904 12.713 17.712C12.905 17.52 13.0007 17.2827 13 17C13 16.7167 12.904 16.479 12.712 16.287C12.52 16.095 12.2827 15.9993 12 16C11.7167 16 11.479 16.096 11.287 16.288C11.095 16.48 10.9993 16.7173 11 17C11 17.2833 11.096 17.521 11.288 17.713C11.48 17.905 11.7173 18.0007 12 18ZM12 15C12.2833 15 12.521 14.904 12.713 14.712C12.905 14.52 13.0007 14.2827 13 14V11C13 10.7167 12.904 10.479 12.712 10.287C12.52 10.095 12.2827 9.99933 12 10C11.7167 10 11.479 10.096 11.287 10.288C11.095 10.48 10.9993 10.7173 11 11V14C11 14.2833 11.096 14.521 11.288 14.713C11.48 14.905 11.7173 15.0007 12 15Z",
|
|
999
999
|
fill: "black"
|
|
1000
|
-
}, null, -1),
|
|
1001
|
-
|
|
1000
|
+
}, null, -1), D7 = [
|
|
1001
|
+
P7
|
|
1002
1002
|
];
|
|
1003
1003
|
function N7(s, e) {
|
|
1004
|
-
return c(), C("svg", B7,
|
|
1004
|
+
return c(), C("svg", B7, D7);
|
|
1005
1005
|
}
|
|
1006
1006
|
const R7 = /* @__PURE__ */ w(Z7, [["render", N7]]), U7 = {}, q7 = {
|
|
1007
1007
|
width: "24",
|
|
@@ -1036,43 +1036,43 @@ function W7(s, e) {
|
|
|
1036
1036
|
const J7 = /* @__PURE__ */ w(G7, [["render", W7]]), Q7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1037
1037
|
__proto__: null,
|
|
1038
1038
|
AccountBoxSharp: Tt,
|
|
1039
|
-
AccountCircle:
|
|
1039
|
+
AccountCircle: Dt,
|
|
1040
1040
|
AccountTreeOutlineRounded: Kt,
|
|
1041
1041
|
AccountTreeRounded: Xt,
|
|
1042
1042
|
Add: s2,
|
|
1043
1043
|
AddBoxOutlineRounded: r2,
|
|
1044
1044
|
ArchiveOutlineRounded: f2,
|
|
1045
1045
|
ArrowBackRounded: b2,
|
|
1046
|
-
ArrowDropDownRounded:
|
|
1046
|
+
ArrowDropDownRounded: V2,
|
|
1047
1047
|
ArrowForwardRounded: T2,
|
|
1048
|
-
AssignmentOutlineRounded:
|
|
1048
|
+
AssignmentOutlineRounded: D2,
|
|
1049
1049
|
AttachFileRounded: K2,
|
|
1050
1050
|
CalendarTodayOutlineRounded: X2,
|
|
1051
1051
|
ChatOutline: ss,
|
|
1052
1052
|
CheckBoxOutlineBlank: rs,
|
|
1053
1053
|
CheckBoxOutlineBlankSharp: fs,
|
|
1054
1054
|
CheckBoxOutlineRounded: bs,
|
|
1055
|
-
CheckSmallRounded:
|
|
1055
|
+
CheckSmallRounded: Vs,
|
|
1056
1056
|
ChecklistRounded: Ts,
|
|
1057
|
-
ChevronLeft:
|
|
1057
|
+
ChevronLeft: Ds,
|
|
1058
1058
|
ChevronRight: Ks,
|
|
1059
1059
|
CloseRounded: Xs,
|
|
1060
1060
|
ContactsOutlineRounded: s3,
|
|
1061
1061
|
ContentCopyOutline: r3,
|
|
1062
1062
|
DeleteOutlineRounded: f3,
|
|
1063
1063
|
DragIndicator: b3,
|
|
1064
|
-
EditDocumentRounded:
|
|
1064
|
+
EditDocumentRounded: V3,
|
|
1065
1065
|
EditOutline: T3,
|
|
1066
|
-
ErrorOutlineRounded:
|
|
1066
|
+
ErrorOutlineRounded: D3,
|
|
1067
1067
|
FilterListRounded: K3,
|
|
1068
1068
|
FlagRounded: X3,
|
|
1069
1069
|
FlowsheetOutlineRounded: sa,
|
|
1070
1070
|
GifBox: ra,
|
|
1071
1071
|
GroupsOutline: fa,
|
|
1072
1072
|
HomeOutlineRounded: ba,
|
|
1073
|
-
ImageRounded:
|
|
1073
|
+
ImageRounded: Va,
|
|
1074
1074
|
Info: Ta,
|
|
1075
|
-
KeyboardArrowDown:
|
|
1075
|
+
KeyboardArrowDown: Da,
|
|
1076
1076
|
KeyboardArrowUp: Ka,
|
|
1077
1077
|
Loading: Ja,
|
|
1078
1078
|
LogoutRounded: ll,
|
|
@@ -1111,11 +1111,11 @@ const J7 = /* @__PURE__ */ w(G7, [["render", W7]]), Q7 = /* @__PURE__ */ Object.
|
|
|
1111
1111
|
MD: "md",
|
|
1112
1112
|
LG: "lg",
|
|
1113
1113
|
XL: "xl"
|
|
1114
|
-
},
|
|
1114
|
+
}, qe = {
|
|
1115
1115
|
PRIMARY: "primary",
|
|
1116
1116
|
NEUTRAL: "neutral",
|
|
1117
1117
|
BLACK: "black"
|
|
1118
|
-
},
|
|
1118
|
+
}, je = {
|
|
1119
1119
|
ROUND: "round",
|
|
1120
1120
|
ROUNDED: "rounded"
|
|
1121
1121
|
}, g1 = /* @__PURE__ */ X({
|
|
@@ -1142,11 +1142,11 @@ const tn = ["type"], sn = {
|
|
|
1142
1142
|
iconName: {},
|
|
1143
1143
|
iconPosition: {},
|
|
1144
1144
|
type: { default: () => "button" },
|
|
1145
|
-
color: { default: () =>
|
|
1145
|
+
color: { default: () => qe.NEUTRAL },
|
|
1146
1146
|
footer: { type: Boolean, default: () => !1 },
|
|
1147
1147
|
size: { default: () => le.MD },
|
|
1148
1148
|
isLoading: { type: Boolean, default: () => !1 },
|
|
1149
|
-
corners: { default: () =>
|
|
1149
|
+
corners: { default: () => je.ROUNDED }
|
|
1150
1150
|
},
|
|
1151
1151
|
setup(s) {
|
|
1152
1152
|
const e = s, t = v(() => e.size), n = v(() => e.isLoading ? "Loading" : e.iconName);
|
|
@@ -1164,14 +1164,14 @@ const tn = ["type"], sn = {
|
|
|
1164
1164
|
])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
K(a.$slots, "default", {}, () => [
|
|
1167
|
-
a.label ? (c(), C("span", sn, z(a.label), 1)) :
|
|
1167
|
+
a.label ? (c(), C("span", sn, z(a.label), 1)) : V("", !0)
|
|
1168
1168
|
]),
|
|
1169
1169
|
n.value ? (c(), j(g1, {
|
|
1170
1170
|
key: 0,
|
|
1171
1171
|
name: n.value,
|
|
1172
1172
|
class: "ao-button__icon",
|
|
1173
1173
|
size: t.value
|
|
1174
|
-
}, null, 8, ["name", "size"])) :
|
|
1174
|
+
}, null, 8, ["name", "size"])) : V("", !0)
|
|
1175
1175
|
], 10, tn));
|
|
1176
1176
|
}
|
|
1177
1177
|
});
|
|
@@ -1243,7 +1243,7 @@ const an = {
|
|
|
1243
1243
|
}, cn = {
|
|
1244
1244
|
key: 2,
|
|
1245
1245
|
class: "ao-card__footer"
|
|
1246
|
-
},
|
|
1246
|
+
}, Ke = /* @__PURE__ */ X({
|
|
1247
1247
|
__name: "AoCardHoriz",
|
|
1248
1248
|
props: {
|
|
1249
1249
|
title: {},
|
|
@@ -1266,19 +1266,19 @@ const an = {
|
|
|
1266
1266
|
}, {
|
|
1267
1267
|
default: x(() => [
|
|
1268
1268
|
i.isDraggable ? (c(), C("div", an, [
|
|
1269
|
-
|
|
1269
|
+
P(g1, {
|
|
1270
1270
|
name: "DragIndicator",
|
|
1271
1271
|
class: "ao-card__drag-handle"
|
|
1272
1272
|
})
|
|
1273
|
-
])) :
|
|
1273
|
+
])) : V("", !0),
|
|
1274
1274
|
u("div", ln, [
|
|
1275
1275
|
i.icon ? (c(), C("div", nn, [
|
|
1276
|
-
|
|
1276
|
+
P(g1, {
|
|
1277
1277
|
class: "ao-card__icon",
|
|
1278
1278
|
name: i.icon,
|
|
1279
1279
|
size: "xl"
|
|
1280
1280
|
}, null, 8, ["name"])
|
|
1281
|
-
])) :
|
|
1281
|
+
])) : V("", !0),
|
|
1282
1282
|
u("div", {
|
|
1283
1283
|
class: "ao-card__title-group",
|
|
1284
1284
|
onClick: l[0] || (l[0] = te(() => {
|
|
@@ -1292,21 +1292,21 @@ const an = {
|
|
|
1292
1292
|
"is-editing": t.value,
|
|
1293
1293
|
onToggleIsEditing: n,
|
|
1294
1294
|
"onUpdate:title": a
|
|
1295
|
-
}, null, 8, ["title", "is-editing"])) :
|
|
1295
|
+
}, null, 8, ["title", "is-editing"])) : V("", !0),
|
|
1296
1296
|
K(i.$slots, "subtitle", {}, () => [
|
|
1297
|
-
i.subtitle ? (c(), C("span", on, z(i.subtitle), 1)) :
|
|
1297
|
+
i.subtitle ? (c(), C("span", on, z(i.subtitle), 1)) : V("", !0)
|
|
1298
1298
|
])
|
|
1299
1299
|
]),
|
|
1300
1300
|
i.$slots.header ? (c(), C("div", rn, [
|
|
1301
1301
|
K(i.$slots, "header")
|
|
1302
|
-
])) :
|
|
1302
|
+
])) : V("", !0)
|
|
1303
1303
|
]),
|
|
1304
1304
|
i.$slots.default ? (c(), C("div", un, [
|
|
1305
1305
|
K(i.$slots, "default")
|
|
1306
|
-
])) :
|
|
1306
|
+
])) : V("", !0),
|
|
1307
1307
|
i.$slots.footer ? (c(), C("div", cn, [
|
|
1308
1308
|
K(i.$slots, "footer")
|
|
1309
|
-
])) :
|
|
1309
|
+
])) : V("", !0)
|
|
1310
1310
|
]),
|
|
1311
1311
|
_: 3
|
|
1312
1312
|
}, 8, ["class"]));
|
|
@@ -1348,16 +1348,16 @@ const dn = /* @__PURE__ */ X({
|
|
|
1348
1348
|
class: "ao-tag__close",
|
|
1349
1349
|
onClick: i[1] || (i[1] = (l) => a.$emit("close", l))
|
|
1350
1350
|
}, [
|
|
1351
|
-
|
|
1351
|
+
P(g1, {
|
|
1352
1352
|
name: "CloseRounded",
|
|
1353
1353
|
size: "sm",
|
|
1354
1354
|
class: "ao-tag__close-icon"
|
|
1355
1355
|
})
|
|
1356
|
-
])) :
|
|
1356
|
+
])) : V("", !0)
|
|
1357
1357
|
], 2));
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
-
var d1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, f1 = {},
|
|
1360
|
+
var d1 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, f1 = {}, ze = {}, q1 = {}, G1 = {}, P1 = {}, ne = {};
|
|
1361
1361
|
Object.defineProperty(ne, "__esModule", { value: !0 });
|
|
1362
1362
|
ne.lexoHelper = void 0;
|
|
1363
1363
|
ne.lexoHelper = {
|
|
@@ -1395,10 +1395,10 @@ class hn {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
F1.default = hn;
|
|
1398
|
-
Object.defineProperty(
|
|
1399
|
-
|
|
1398
|
+
Object.defineProperty(P1, "__esModule", { value: !0 });
|
|
1399
|
+
P1.LexoInteger = void 0;
|
|
1400
1400
|
const Q1 = ne, fn = F1;
|
|
1401
|
-
class
|
|
1401
|
+
class Z {
|
|
1402
1402
|
constructor(e, t, n) {
|
|
1403
1403
|
this.sys = e, this.sign = t, this.mag = n;
|
|
1404
1404
|
}
|
|
@@ -1409,24 +1409,24 @@ class k {
|
|
|
1409
1409
|
let l = i.length - 1;
|
|
1410
1410
|
for (let o = 0; l >= 0; ++o)
|
|
1411
1411
|
i[o] = t.toDigit(n.charAt(l)), --l;
|
|
1412
|
-
return
|
|
1412
|
+
return Z.make(t, a, i);
|
|
1413
1413
|
}
|
|
1414
1414
|
static zero(e) {
|
|
1415
|
-
return new
|
|
1415
|
+
return new Z(e, 0, Z.ZERO_MAG);
|
|
1416
1416
|
}
|
|
1417
1417
|
static one(e) {
|
|
1418
|
-
return
|
|
1418
|
+
return Z.make(e, 1, Z.ONE_MAG);
|
|
1419
1419
|
}
|
|
1420
1420
|
static make(e, t, n) {
|
|
1421
1421
|
let a;
|
|
1422
1422
|
for (a = n.length; a > 0 && n[a - 1] === 0; --a)
|
|
1423
1423
|
;
|
|
1424
1424
|
if (a === 0)
|
|
1425
|
-
return
|
|
1425
|
+
return Z.zero(e);
|
|
1426
1426
|
if (a === n.length)
|
|
1427
|
-
return new
|
|
1427
|
+
return new Z(e, t, n);
|
|
1428
1428
|
const i = new Array(a).fill(0);
|
|
1429
|
-
return Q1.lexoHelper.arrayCopy(n, 0, i, 0, a), new
|
|
1429
|
+
return Q1.lexoHelper.arrayCopy(n, 0, i, 0, a), new Z(e, t, i);
|
|
1430
1430
|
}
|
|
1431
1431
|
static add(e, t, n) {
|
|
1432
1432
|
const a = Math.max(t.length, n.length), i = new Array(a).fill(0);
|
|
@@ -1438,7 +1438,7 @@ class k {
|
|
|
1438
1438
|
++l;
|
|
1439
1439
|
i[o] = p;
|
|
1440
1440
|
}
|
|
1441
|
-
return
|
|
1441
|
+
return Z.extendWithCarry(i, l);
|
|
1442
1442
|
}
|
|
1443
1443
|
static extendWithCarry(e, t) {
|
|
1444
1444
|
if (t > 0) {
|
|
@@ -1448,8 +1448,8 @@ class k {
|
|
|
1448
1448
|
return e;
|
|
1449
1449
|
}
|
|
1450
1450
|
static subtract(e, t, n) {
|
|
1451
|
-
const a =
|
|
1452
|
-
return i[i.length - 1] = 0,
|
|
1451
|
+
const a = Z.complement(e, n, t.length), i = Z.add(e, t, a);
|
|
1452
|
+
return i[i.length - 1] = 0, Z.add(e, i, Z.ONE_MAG);
|
|
1453
1453
|
}
|
|
1454
1454
|
static multiply(e, t, n) {
|
|
1455
1455
|
const a = new Array(t.length + n.length).fill(0);
|
|
@@ -1491,8 +1491,8 @@ class k {
|
|
|
1491
1491
|
let n;
|
|
1492
1492
|
return this.sign === -1 ? (n = this.negate(), n.subtract(e).negate()) : (n = e.negate(), this.subtract(n));
|
|
1493
1493
|
}
|
|
1494
|
-
const t =
|
|
1495
|
-
return
|
|
1494
|
+
const t = Z.add(this.sys, this.mag, e.mag);
|
|
1495
|
+
return Z.make(this.sys, this.sign, t);
|
|
1496
1496
|
}
|
|
1497
1497
|
subtract(e) {
|
|
1498
1498
|
if (this.checkSystem(e), this.isZero())
|
|
@@ -1503,8 +1503,8 @@ class k {
|
|
|
1503
1503
|
let n;
|
|
1504
1504
|
return this.sign === -1 ? (n = this.negate(), n.add(e).negate()) : (n = e.negate(), this.add(n));
|
|
1505
1505
|
}
|
|
1506
|
-
const t =
|
|
1507
|
-
return t === 0 ?
|
|
1506
|
+
const t = Z.compare(this.mag, e.mag);
|
|
1507
|
+
return t === 0 ? Z.zero(this.sys) : t < 0 ? Z.make(this.sys, this.sign === -1 ? 1 : -1, Z.subtract(this.sys, e.mag, this.mag)) : Z.make(this.sys, this.sign === -1 ? -1 : 1, Z.subtract(this.sys, this.mag, e.mag));
|
|
1508
1508
|
}
|
|
1509
1509
|
multiply(e) {
|
|
1510
1510
|
if (this.checkSystem(e), this.isZero())
|
|
@@ -1512,14 +1512,14 @@ class k {
|
|
|
1512
1512
|
if (e.isZero())
|
|
1513
1513
|
return e;
|
|
1514
1514
|
if (this.isOneish())
|
|
1515
|
-
return this.sign === e.sign ?
|
|
1515
|
+
return this.sign === e.sign ? Z.make(this.sys, 1, e.mag) : Z.make(this.sys, -1, e.mag);
|
|
1516
1516
|
if (e.isOneish())
|
|
1517
|
-
return this.sign === e.sign ?
|
|
1518
|
-
const t =
|
|
1519
|
-
return this.sign === e.sign ?
|
|
1517
|
+
return this.sign === e.sign ? Z.make(this.sys, 1, this.mag) : Z.make(this.sys, -1, this.mag);
|
|
1518
|
+
const t = Z.multiply(this.sys, this.mag, e.mag);
|
|
1519
|
+
return this.sign === e.sign ? Z.make(this.sys, 1, t) : Z.make(this.sys, -1, t);
|
|
1520
1520
|
}
|
|
1521
1521
|
negate() {
|
|
1522
|
-
return this.isZero() ? this :
|
|
1522
|
+
return this.isZero() ? this : Z.make(this.sys, this.sign === 1 ? -1 : 1, this.mag);
|
|
1523
1523
|
}
|
|
1524
1524
|
shiftLeft(e = 1) {
|
|
1525
1525
|
if (e === 0)
|
|
@@ -1527,19 +1527,19 @@ class k {
|
|
|
1527
1527
|
if (e < 0)
|
|
1528
1528
|
return this.shiftRight(Math.abs(e));
|
|
1529
1529
|
const t = new Array(this.mag.length + e).fill(0);
|
|
1530
|
-
return Q1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length),
|
|
1530
|
+
return Q1.lexoHelper.arrayCopy(this.mag, 0, t, e, this.mag.length), Z.make(this.sys, this.sign, t);
|
|
1531
1531
|
}
|
|
1532
1532
|
shiftRight(e = 1) {
|
|
1533
1533
|
if (this.mag.length - e <= 0)
|
|
1534
|
-
return
|
|
1534
|
+
return Z.zero(this.sys);
|
|
1535
1535
|
const t = new Array(this.mag.length - e).fill(0);
|
|
1536
|
-
return Q1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length),
|
|
1536
|
+
return Q1.lexoHelper.arrayCopy(this.mag, e, t, 0, t.length), Z.make(this.sys, this.sign, t);
|
|
1537
1537
|
}
|
|
1538
1538
|
complement() {
|
|
1539
1539
|
return this.complementDigits(this.mag.length);
|
|
1540
1540
|
}
|
|
1541
1541
|
complementDigits(e) {
|
|
1542
|
-
return
|
|
1542
|
+
return Z.make(this.sys, this.sign, Z.complement(this.sys, this.mag, e));
|
|
1543
1543
|
}
|
|
1544
1544
|
isZero() {
|
|
1545
1545
|
return this.sign === 0 && this.mag.length === 1 && this.mag[0] === 0;
|
|
@@ -1557,12 +1557,12 @@ class k {
|
|
|
1557
1557
|
return 1;
|
|
1558
1558
|
if (this.sign === -1) {
|
|
1559
1559
|
if (e.sign === -1) {
|
|
1560
|
-
const t =
|
|
1560
|
+
const t = Z.compare(this.mag, e.mag);
|
|
1561
1561
|
return t === -1 ? 1 : t === 1 ? -1 : 0;
|
|
1562
1562
|
}
|
|
1563
1563
|
return -1;
|
|
1564
1564
|
}
|
|
1565
|
-
return this.sign === 1 ? e.sign === 1 ?
|
|
1565
|
+
return this.sign === 1 ? e.sign === 1 ? Z.compare(this.mag, e.mag) : 1 : e.sign === -1 ? 1 : e.sign === 1 ? -1 : 0;
|
|
1566
1566
|
}
|
|
1567
1567
|
getSystem() {
|
|
1568
1568
|
return this.sys;
|
|
@@ -1591,43 +1591,43 @@ class k {
|
|
|
1591
1591
|
throw new Error("Expected numbers of same numeral sys");
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1594
|
+
P1.LexoInteger = Z;
|
|
1595
|
+
Z.ZERO_MAG = [0];
|
|
1596
|
+
Z.ONE_MAG = [1];
|
|
1597
|
+
Z.NEGATIVE_SIGN = -1;
|
|
1598
|
+
Z.ZERO_SIGN = 0;
|
|
1599
|
+
Z.POSITIVE_SIGN = 1;
|
|
1600
1600
|
Object.defineProperty(G1, "__esModule", { value: !0 });
|
|
1601
1601
|
G1.LexoDecimal = void 0;
|
|
1602
|
-
const j1 =
|
|
1603
|
-
class
|
|
1602
|
+
const j1 = P1, pn = F1;
|
|
1603
|
+
class u1 {
|
|
1604
1604
|
constructor(e, t) {
|
|
1605
1605
|
this.mag = e, this.sig = t;
|
|
1606
1606
|
}
|
|
1607
1607
|
static half(e) {
|
|
1608
1608
|
const t = e.getBase() / 2 | 0;
|
|
1609
|
-
return
|
|
1609
|
+
return u1.make(j1.LexoInteger.make(e, 1, [t]), 1);
|
|
1610
1610
|
}
|
|
1611
1611
|
static parse(e, t) {
|
|
1612
1612
|
const n = e.indexOf(t.getRadixPointChar());
|
|
1613
1613
|
if (e.lastIndexOf(t.getRadixPointChar()) !== n)
|
|
1614
1614
|
throw new Error("More than one " + t.getRadixPointChar());
|
|
1615
1615
|
if (n < 0)
|
|
1616
|
-
return
|
|
1616
|
+
return u1.make(j1.LexoInteger.parse(e, t), 0);
|
|
1617
1617
|
const a = e.substring(0, n) + e.substring(n + 1);
|
|
1618
|
-
return
|
|
1618
|
+
return u1.make(j1.LexoInteger.parse(a, t), e.length - 1 - n);
|
|
1619
1619
|
}
|
|
1620
1620
|
static from(e) {
|
|
1621
|
-
return
|
|
1621
|
+
return u1.make(e, 0);
|
|
1622
1622
|
}
|
|
1623
1623
|
static make(e, t) {
|
|
1624
1624
|
if (e.isZero())
|
|
1625
|
-
return new
|
|
1625
|
+
return new u1(e, 0);
|
|
1626
1626
|
let n = 0;
|
|
1627
1627
|
for (let l = 0; l < t && e.getMag(l) === 0; ++l)
|
|
1628
1628
|
++n;
|
|
1629
1629
|
const a = e.shiftRight(n), i = t - n;
|
|
1630
|
-
return new
|
|
1630
|
+
return new u1(a, i);
|
|
1631
1631
|
}
|
|
1632
1632
|
getSystem() {
|
|
1633
1633
|
return this.mag.getSystem();
|
|
@@ -1638,7 +1638,7 @@ class r1 {
|
|
|
1638
1638
|
t = t.shiftLeft();
|
|
1639
1639
|
for (; n > i; )
|
|
1640
1640
|
a = a.shiftLeft(), ++i;
|
|
1641
|
-
return
|
|
1641
|
+
return u1.make(t.add(a), n);
|
|
1642
1642
|
}
|
|
1643
1643
|
subtract(e) {
|
|
1644
1644
|
let t = this.mag, n = this.sig, a = e.mag, i;
|
|
@@ -1646,10 +1646,10 @@ class r1 {
|
|
|
1646
1646
|
t = t.shiftLeft();
|
|
1647
1647
|
for (; n > i; )
|
|
1648
1648
|
a = a.shiftLeft(), ++i;
|
|
1649
|
-
return
|
|
1649
|
+
return u1.make(t.subtract(a), n);
|
|
1650
1650
|
}
|
|
1651
1651
|
multiply(e) {
|
|
1652
|
-
return
|
|
1652
|
+
return u1.make(this.mag.multiply(e.mag), this.sig + e.sig);
|
|
1653
1653
|
}
|
|
1654
1654
|
floor() {
|
|
1655
1655
|
return this.mag.shiftRight(this.sig);
|
|
@@ -1677,7 +1677,7 @@ class r1 {
|
|
|
1677
1677
|
e < 0 && (e = 0);
|
|
1678
1678
|
const n = this.sig - e;
|
|
1679
1679
|
let a = this.mag.shiftRight(n);
|
|
1680
|
-
return t && (a = a.add(j1.LexoInteger.one(a.getSystem()))),
|
|
1680
|
+
return t && (a = a.add(j1.LexoInteger.one(a.getSystem()))), u1.make(a, e);
|
|
1681
1681
|
}
|
|
1682
1682
|
compareTo(e) {
|
|
1683
1683
|
if (this === e)
|
|
@@ -1703,13 +1703,13 @@ class r1 {
|
|
|
1703
1703
|
return this.format();
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
G1.LexoDecimal =
|
|
1706
|
+
G1.LexoDecimal = u1;
|
|
1707
1707
|
var ee = {}, De;
|
|
1708
|
-
function
|
|
1708
|
+
function xe() {
|
|
1709
1709
|
if (De)
|
|
1710
1710
|
return ee;
|
|
1711
1711
|
De = 1, Object.defineProperty(ee, "__esModule", { value: !0 });
|
|
1712
|
-
const s =
|
|
1712
|
+
const s = P1, e = Fe();
|
|
1713
1713
|
class t {
|
|
1714
1714
|
constructor(a) {
|
|
1715
1715
|
this.value = s.LexoInteger.parse(a, e.LexoRank.NUMERAL_SYSTEM);
|
|
@@ -1762,8 +1762,8 @@ function ze() {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
return ee.default = t, ee;
|
|
1764
1764
|
}
|
|
1765
|
-
var Me = {},
|
|
1766
|
-
Object.defineProperty(
|
|
1765
|
+
var Me = {}, Ge = {};
|
|
1766
|
+
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
1767
1767
|
var ie = {};
|
|
1768
1768
|
Object.defineProperty(ie, "__esModule", { value: !0 });
|
|
1769
1769
|
ie.LexoNumeralSystem10 = void 0;
|
|
@@ -1871,14 +1871,14 @@ re.LexoNumeralSystem64 = mn;
|
|
|
1871
1871
|
for (var i in n)
|
|
1872
1872
|
i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
|
|
1873
1873
|
};
|
|
1874
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(
|
|
1874
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(Ge, s), t(ie, s), t(oe, s), t(re, s);
|
|
1875
1875
|
})(Me);
|
|
1876
|
-
var
|
|
1877
|
-
function
|
|
1878
|
-
if (
|
|
1876
|
+
var Ne;
|
|
1877
|
+
function Fe() {
|
|
1878
|
+
if (Ne)
|
|
1879
1879
|
return q1;
|
|
1880
|
-
|
|
1881
|
-
const s = G1, e =
|
|
1880
|
+
Ne = 1, Object.defineProperty(q1, "__esModule", { value: !0 }), q1.LexoRank = void 0;
|
|
1881
|
+
const s = G1, e = xe(), t = F1, n = Me;
|
|
1882
1882
|
class a {
|
|
1883
1883
|
constructor(l, o) {
|
|
1884
1884
|
this.value = l.format() + "|" + a.formatDecimal(o), this.bucket = l, this.decimal = o;
|
|
@@ -2064,8 +2064,8 @@ function Ge() {
|
|
|
2064
2064
|
for (var i in n)
|
|
2065
2065
|
i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
|
|
2066
2066
|
};
|
|
2067
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(
|
|
2068
|
-
})(
|
|
2067
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(Fe(), s), t(xe(), s), t(G1, s), t(P1, s);
|
|
2068
|
+
})(ze);
|
|
2069
2069
|
(function(s) {
|
|
2070
2070
|
var e = d1 && d1.__createBinding || (Object.create ? function(n, a, i, l) {
|
|
2071
2071
|
l === void 0 && (l = i);
|
|
@@ -2079,9 +2079,9 @@ function Ge() {
|
|
|
2079
2079
|
for (var i in n)
|
|
2080
2080
|
i !== "default" && !Object.prototype.hasOwnProperty.call(a, i) && e(a, n, i);
|
|
2081
2081
|
};
|
|
2082
|
-
Object.defineProperty(s, "__esModule", { value: !0 }), t(
|
|
2082
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), t(ze, s), t(Me, s);
|
|
2083
2083
|
})(f1);
|
|
2084
|
-
function
|
|
2084
|
+
function Ye(s) {
|
|
2085
2085
|
return (s == null ? void 0 : s.reduce((e, t) => {
|
|
2086
2086
|
var n;
|
|
2087
2087
|
return e + (((n = t.activities) == null ? void 0 : n.length) ?? 0);
|
|
@@ -2096,23 +2096,23 @@ function gn(s) {
|
|
|
2096
2096
|
function bn(s) {
|
|
2097
2097
|
return (s == null ? void 0 : s.reduce((e, t) => {
|
|
2098
2098
|
var a;
|
|
2099
|
-
const n = (a = t.milestones) != null && a.length ?
|
|
2099
|
+
const n = (a = t.milestones) != null && a.length ? Ye(t.milestones) : 0;
|
|
2100
2100
|
return e + n;
|
|
2101
2101
|
}, 0)) ?? 0;
|
|
2102
2102
|
}
|
|
2103
2103
|
function wn(s) {
|
|
2104
2104
|
return s.split(" ").slice(0, 2).map((e) => e.charAt(0).toLocaleLowerCase()).join("");
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function Le(s, e) {
|
|
2107
2107
|
if (s.moved) {
|
|
2108
|
-
const {
|
|
2109
|
-
if (
|
|
2110
|
-
return f1.LexoRank.parse(e[
|
|
2111
|
-
if (
|
|
2112
|
-
return f1.LexoRank.parse(e.at(-
|
|
2108
|
+
const { newIndex: t } = s.moved;
|
|
2109
|
+
if (t === 0 && e.length > 0)
|
|
2110
|
+
return f1.LexoRank.parse(e[0].rank).genPrev().format();
|
|
2111
|
+
if (t === e.length - 1)
|
|
2112
|
+
return f1.LexoRank.parse(e.at(-1).rank).genNext().format();
|
|
2113
2113
|
{
|
|
2114
|
-
const
|
|
2115
|
-
return f1.LexoRank.parse(
|
|
2114
|
+
const n = e[t - 1], a = e[t];
|
|
2115
|
+
return f1.LexoRank.parse(a.rank).between(f1.LexoRank.parse(n.rank)).format();
|
|
2116
2116
|
}
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
@@ -2141,14 +2141,14 @@ const yn = ["title"], $n = { className: "ao-avatar__initials" }, Mn = /* @__PURE
|
|
|
2141
2141
|
color: "primary",
|
|
2142
2142
|
corners: "round",
|
|
2143
2143
|
onClick: a
|
|
2144
|
-
})) :
|
|
2144
|
+
})) : V("", !0)
|
|
2145
2145
|
], 10, yn));
|
|
2146
2146
|
}
|
|
2147
2147
|
});
|
|
2148
|
-
const
|
|
2148
|
+
const Ln = { class: "ao-card-template__subitems" }, Vn = { class: "ao-card-template__subitem" }, In = { class: "ao-card-template__subitem-number" }, Sn = { class: "ao-card-template__subitem" }, Hn = { class: "ao-card-template__subitem" }, En = { class: "ao-card-template__body" }, An = { class: "ao-card-template__col ao-card-template__col--phases" }, Tn = { class: "ao-card-template__col-title" }, On = { class: "ao-card-template__col-label" }, kn = {
|
|
2149
2149
|
key: 0,
|
|
2150
2150
|
class: "ao-card-template__col-body ao-card-template__phases-list"
|
|
2151
|
-
}, Zn = { class: "ao-card-template__col ao-card-template__col--updated-at" }, Bn = { class: "ao-card-template__col-title" },
|
|
2151
|
+
}, Zn = { class: "ao-card-template__col ao-card-template__col--updated-at" }, Bn = { class: "ao-card-template__col-title" }, Pn = { class: "ao-card-template__col-label" }, Dn = { class: "ao-card-template__col-body" }, Nn = {
|
|
2152
2152
|
key: 0,
|
|
2153
2153
|
class: "ao-card-template__col ao-card-template__col--updated-by"
|
|
2154
2154
|
}, Rn = { class: "ao-card-template__col-title" }, Un = { class: "ao-card-template__col-label" }, qn = { class: "ao-card-template__col-body" }, jn = /* @__PURE__ */ X({
|
|
@@ -2162,21 +2162,21 @@ const Vn = { class: "ao-card-template__subitems" }, Ln = { class: "ao-card-templ
|
|
|
2162
2162
|
updatedBy: {}
|
|
2163
2163
|
},
|
|
2164
2164
|
setup(s) {
|
|
2165
|
-
return (e, t) => (c(), j(
|
|
2165
|
+
return (e, t) => (c(), j(Ke, {
|
|
2166
2166
|
title: e.title,
|
|
2167
2167
|
"is-draggable": !0
|
|
2168
2168
|
}, {
|
|
2169
2169
|
subtitle: x(() => [
|
|
2170
|
-
u("ul",
|
|
2171
|
-
u("li",
|
|
2172
|
-
|
|
2170
|
+
u("ul", Ln, [
|
|
2171
|
+
u("li", Vn, [
|
|
2172
|
+
P(g1, {
|
|
2173
2173
|
name: "MountainFlagOutlineRounded",
|
|
2174
2174
|
size: "sm"
|
|
2175
2175
|
}),
|
|
2176
2176
|
u("span", In, z(e.milestones), 1)
|
|
2177
2177
|
]),
|
|
2178
2178
|
u("li", Sn, [
|
|
2179
|
-
|
|
2179
|
+
P(g1, {
|
|
2180
2180
|
name: "TaskOutlineRounded",
|
|
2181
2181
|
size: "sm"
|
|
2182
2182
|
}),
|
|
@@ -2188,26 +2188,26 @@ const Vn = { class: "ao-card-template__subitems" }, Ln = { class: "ao-card-templ
|
|
|
2188
2188
|
u("div", En, [
|
|
2189
2189
|
u("div", An, [
|
|
2190
2190
|
u("div", Tn, [
|
|
2191
|
-
|
|
2191
|
+
P(g1, {
|
|
2192
2192
|
name: "WaterfallChartRounded",
|
|
2193
2193
|
size: "sm"
|
|
2194
2194
|
}),
|
|
2195
2195
|
u("span", On, z(e.$t("template.phases.title")), 1)
|
|
2196
2196
|
]),
|
|
2197
2197
|
e.phases ? (c(), C("ul", kn, [
|
|
2198
|
-
(c(!0), C(m1, null,
|
|
2198
|
+
(c(!0), C(m1, null, V1(e.phases, (n) => (c(), j(dn, {
|
|
2199
2199
|
key: n.id,
|
|
2200
2200
|
label: n.name || n.id,
|
|
2201
2201
|
color: "primary",
|
|
2202
2202
|
variant: "solid"
|
|
2203
2203
|
}, null, 8, ["label"]))), 128))
|
|
2204
|
-
])) :
|
|
2204
|
+
])) : V("", !0)
|
|
2205
2205
|
]),
|
|
2206
2206
|
u("div", Zn, [
|
|
2207
2207
|
u("div", Bn, [
|
|
2208
|
-
u("span",
|
|
2208
|
+
u("span", Pn, z(e.$t("template.updatedAt.label")), 1)
|
|
2209
2209
|
]),
|
|
2210
|
-
u("div",
|
|
2210
|
+
u("div", Dn, [
|
|
2211
2211
|
u("span", null, z(e.updatedAt), 1)
|
|
2212
2212
|
])
|
|
2213
2213
|
]),
|
|
@@ -2216,9 +2216,9 @@ const Vn = { class: "ao-card-template__subitems" }, Ln = { class: "ao-card-templ
|
|
|
2216
2216
|
u("span", Un, z(e.$t("template.updatedBy.label")), 1)
|
|
2217
2217
|
]),
|
|
2218
2218
|
u("div", qn, [
|
|
2219
|
-
|
|
2219
|
+
P(Mn, { "user-name": e.updatedBy }, null, 8, ["user-name"])
|
|
2220
2220
|
])
|
|
2221
|
-
])) :
|
|
2221
|
+
])) : V("", !0)
|
|
2222
2222
|
])
|
|
2223
2223
|
]),
|
|
2224
2224
|
_: 1
|
|
@@ -2239,7 +2239,7 @@ const Kn = { class: "ao-page-header" }, zn = { class: "ao-page-header-main" }, x
|
|
|
2239
2239
|
"icon-name": "ArrowBackRounded",
|
|
2240
2240
|
variant: "ghost",
|
|
2241
2241
|
onClick: t[0] || (t[0] = (n) => e.$emit("goBack"))
|
|
2242
|
-
})) :
|
|
2242
|
+
})) : V("", !0),
|
|
2243
2243
|
K(e.$slots, "primary")
|
|
2244
2244
|
]),
|
|
2245
2245
|
u("div", xn, [
|
|
@@ -2258,10 +2258,10 @@ const Gn = ["type"], Fn = {
|
|
|
2258
2258
|
iconName: {},
|
|
2259
2259
|
iconPosition: {},
|
|
2260
2260
|
type: { default: () => "button" },
|
|
2261
|
-
color: { default: () =>
|
|
2261
|
+
color: { default: () => qe.BLACK },
|
|
2262
2262
|
size: { default: () => le.MD },
|
|
2263
2263
|
isLoading: { type: Boolean, default: () => !1 },
|
|
2264
|
-
corners: { default: () =>
|
|
2264
|
+
corners: { default: () => je.ROUNDED }
|
|
2265
2265
|
},
|
|
2266
2266
|
setup(s) {
|
|
2267
2267
|
const e = s, t = v(() => e.size), n = v(() => e.isLoading ? "Loading" : e.iconName);
|
|
@@ -2275,14 +2275,14 @@ const Gn = ["type"], Fn = {
|
|
|
2275
2275
|
])
|
|
2276
2276
|
}, [
|
|
2277
2277
|
K(a.$slots, "default", {}, () => [
|
|
2278
|
-
a.label ? (c(), C("span", Fn, z(a.label), 1)) :
|
|
2278
|
+
a.label ? (c(), C("span", Fn, z(a.label), 1)) : V("", !0)
|
|
2279
2279
|
]),
|
|
2280
2280
|
n.value ? (c(), j(g1, {
|
|
2281
2281
|
key: 0,
|
|
2282
2282
|
name: n.value,
|
|
2283
2283
|
class: "ao-button-card__icon",
|
|
2284
2284
|
size: t.value
|
|
2285
|
-
}, null, 8, ["name", "size"])) :
|
|
2285
|
+
}, null, 8, ["name", "size"])) : V("", !0)
|
|
2286
2286
|
], 10, Gn));
|
|
2287
2287
|
}
|
|
2288
2288
|
});
|
|
@@ -2307,17 +2307,17 @@ const Yn = { class: "ao-card-template-item__footer" }, Xn = {
|
|
|
2307
2307
|
rules: "FlowsheetOutlineRounded",
|
|
2308
2308
|
subtasks: "ChecklistRounded"
|
|
2309
2309
|
};
|
|
2310
|
-
return (i, l) => (c(), j(
|
|
2310
|
+
return (i, l) => (c(), j(Ke, { "onUpdate:title": t }, {
|
|
2311
2311
|
footer: x(() => [
|
|
2312
2312
|
u("ul", Yn, [
|
|
2313
|
-
(c(), C(m1, null,
|
|
2313
|
+
(c(), C(m1, null, V1(n, (o) => (c(), C(m1, { key: o }, [
|
|
2314
2314
|
i.$props[o] ? (c(), C("li", Xn, [
|
|
2315
|
-
|
|
2315
|
+
P(g1, {
|
|
2316
2316
|
name: a[o],
|
|
2317
2317
|
size: "sm"
|
|
2318
2318
|
}, null, 8, ["name"]),
|
|
2319
2319
|
u("span", Wn, z(i.$props[o]), 1)
|
|
2320
|
-
])) :
|
|
2320
|
+
])) : V("", !0)
|
|
2321
2321
|
], 64))), 64))
|
|
2322
2322
|
])
|
|
2323
2323
|
]),
|
|
@@ -2336,7 +2336,7 @@ const Jn = /* @__PURE__ */ X({
|
|
|
2336
2336
|
const e = s, t = v(() => {
|
|
2337
2337
|
var a;
|
|
2338
2338
|
return (a = e.milestones) == null ? void 0 : a.length;
|
|
2339
|
-
}), n = v(() => e.milestones ?
|
|
2339
|
+
}), n = v(() => e.milestones ? Ye(e.milestones) : 0);
|
|
2340
2340
|
return (a, i) => (c(), j(Ve, H1({
|
|
2341
2341
|
title: a.name,
|
|
2342
2342
|
activities: n.value,
|
|
@@ -2389,7 +2389,8 @@ const Jn = /* @__PURE__ */ X({
|
|
|
2389
2389
|
DAYS: "days",
|
|
2390
2390
|
WEEKS: "weeks",
|
|
2391
2391
|
MONTHS: "months"
|
|
2392
|
-
},
|
|
2392
|
+
}, i1 = {
|
|
2393
|
+
TEMPLATES: "templates",
|
|
2393
2394
|
PHASES: "phases",
|
|
2394
2395
|
MILESTONES: "milestones",
|
|
2395
2396
|
ACTIVITIES: "activities"
|
|
@@ -2415,66 +2416,79 @@ const Fi = {
|
|
|
2415
2416
|
const t = s;
|
|
2416
2417
|
v({
|
|
2417
2418
|
get() {
|
|
2418
|
-
return [...t.phase.milestones || []].sort((
|
|
2419
|
+
return [...t.phase.milestones || []].sort((o, d) => o.order - d.order);
|
|
2419
2420
|
},
|
|
2420
|
-
set(
|
|
2421
|
-
const
|
|
2421
|
+
set(l) {
|
|
2422
|
+
const o = l.map((d, h) => (d.order = h, d));
|
|
2422
2423
|
e("updatePhase", {
|
|
2423
|
-
|
|
2424
|
+
itemType: i1.PHASES,
|
|
2424
2425
|
id: t.phase.id,
|
|
2425
2426
|
templateId: t.templateId,
|
|
2426
2427
|
data: {
|
|
2427
|
-
milestones:
|
|
2428
|
+
milestones: o
|
|
2428
2429
|
}
|
|
2429
2430
|
});
|
|
2430
2431
|
}
|
|
2431
2432
|
});
|
|
2432
2433
|
const n = () => {
|
|
2433
2434
|
e("addMilestone", { phaseId: t.phase.id });
|
|
2434
|
-
}, a = (
|
|
2435
|
-
e("updateMilestone", { ...
|
|
2435
|
+
}, a = (l) => {
|
|
2436
|
+
e("updateMilestone", { ...l, phaseId: t.phase.id });
|
|
2437
|
+
}, i = (l) => {
|
|
2438
|
+
if (l.moved) {
|
|
2439
|
+
const o = Le(l, t.phase.milestones);
|
|
2440
|
+
e("updateItem", {
|
|
2441
|
+
itemType: i1.MILESTONES,
|
|
2442
|
+
id: l.moved.element.id,
|
|
2443
|
+
templateId: t.templateId,
|
|
2444
|
+
data: {
|
|
2445
|
+
rank: o
|
|
2446
|
+
}
|
|
2447
|
+
});
|
|
2448
|
+
}
|
|
2436
2449
|
};
|
|
2437
|
-
return (
|
|
2450
|
+
return (l, o) => l.phase ? (c(), j(s1(ae), {
|
|
2438
2451
|
key: 0,
|
|
2439
|
-
|
|
2452
|
+
"model-value": l.phase.milestones,
|
|
2440
2453
|
class: "ao-templates__list",
|
|
2441
|
-
title:
|
|
2454
|
+
title: l.$t("template.milestones.title"),
|
|
2442
2455
|
handle: ".ao-card__drag",
|
|
2443
|
-
"item-key": "id"
|
|
2456
|
+
"item-key": "id",
|
|
2457
|
+
onChange: i
|
|
2444
2458
|
}, {
|
|
2445
2459
|
header: x(() => [
|
|
2446
|
-
|
|
2460
|
+
P(I1, {
|
|
2447
2461
|
title: "Milestones",
|
|
2448
2462
|
level: 3,
|
|
2449
2463
|
class: "ao-list__title"
|
|
2450
2464
|
})
|
|
2451
2465
|
]),
|
|
2452
|
-
item: x(({ element:
|
|
2466
|
+
item: x(({ element: d }) => [
|
|
2453
2467
|
(c(), j(Qn, {
|
|
2454
|
-
key:
|
|
2455
|
-
title:
|
|
2456
|
-
activities:
|
|
2457
|
-
"is-active":
|
|
2468
|
+
key: d.id,
|
|
2469
|
+
title: d.name,
|
|
2470
|
+
activities: d.activities,
|
|
2471
|
+
"is-active": l.milestoneId === d.id,
|
|
2458
2472
|
"is-draggable": !0,
|
|
2459
|
-
"onUpdate:title": (
|
|
2460
|
-
onClick: (
|
|
2473
|
+
"onUpdate:title": (h) => a({ id: d.id, name: h, order: d.order }),
|
|
2474
|
+
onClick: (h) => l.$router.push({
|
|
2461
2475
|
params: {
|
|
2462
|
-
milestoneId:
|
|
2476
|
+
milestoneId: d.id
|
|
2463
2477
|
}
|
|
2464
2478
|
})
|
|
2465
2479
|
}, null, 8, ["title", "activities", "is-active", "onUpdate:title", "onClick"]))
|
|
2466
2480
|
]),
|
|
2467
2481
|
footer: x(() => [
|
|
2468
2482
|
u("div", l0, [
|
|
2469
|
-
|
|
2483
|
+
P(ue, {
|
|
2470
2484
|
"icon-name": "AddBoxOutlineRounded",
|
|
2471
|
-
label:
|
|
2485
|
+
label: l.$t("template.milestones.add"),
|
|
2472
2486
|
onClick: n
|
|
2473
2487
|
}, null, 8, ["label"])
|
|
2474
2488
|
])
|
|
2475
2489
|
]),
|
|
2476
2490
|
_: 1
|
|
2477
|
-
}, 8, ["
|
|
2491
|
+
}, 8, ["model-value", "title"])) : V("", !0);
|
|
2478
2492
|
}
|
|
2479
2493
|
}), i0 = /* @__PURE__ */ X({
|
|
2480
2494
|
__name: "AoCardTemplateItemActivity",
|
|
@@ -2539,7 +2553,7 @@ const Fi = {
|
|
|
2539
2553
|
"item-key": "id"
|
|
2540
2554
|
}, {
|
|
2541
2555
|
header: x(() => [
|
|
2542
|
-
|
|
2556
|
+
P(I1, {
|
|
2543
2557
|
title: "Activities",
|
|
2544
2558
|
level: 3,
|
|
2545
2559
|
class: "ao-list__title"
|
|
@@ -2558,7 +2572,7 @@ const Fi = {
|
|
|
2558
2572
|
]),
|
|
2559
2573
|
footer: x(() => [
|
|
2560
2574
|
u("div", o0, [
|
|
2561
|
-
|
|
2575
|
+
P(ue, {
|
|
2562
2576
|
"icon-name": "AddBoxOutlineRounded",
|
|
2563
2577
|
label: l.$t("template.activities.add"),
|
|
2564
2578
|
onClick: n
|
|
@@ -2566,14 +2580,14 @@ const Fi = {
|
|
|
2566
2580
|
])
|
|
2567
2581
|
]),
|
|
2568
2582
|
_: 1
|
|
2569
|
-
}, 8, ["modelValue", "title"])) :
|
|
2583
|
+
}, 8, ["modelValue", "title"])) : V("", !0);
|
|
2570
2584
|
}
|
|
2571
2585
|
});
|
|
2572
2586
|
function _1(s) {
|
|
2573
2587
|
return [null, void 0].indexOf(s) !== -1;
|
|
2574
2588
|
}
|
|
2575
2589
|
function u0(s, e, t) {
|
|
2576
|
-
const { object: n, valueProp: a, mode: i } =
|
|
2590
|
+
const { object: n, valueProp: a, mode: i } = r1(s), l = Z1().proxy, o = t.iv, d = (I, O = !0) => {
|
|
2577
2591
|
o.value = p(I);
|
|
2578
2592
|
const T = h(I);
|
|
2579
2593
|
e.emit("change", T, l), O && (e.emit("input", T), e.emit("update:modelValue", T));
|
|
@@ -2583,7 +2597,7 @@ function u0(s, e, t) {
|
|
|
2583
2597
|
};
|
|
2584
2598
|
}
|
|
2585
2599
|
function c0(s, e) {
|
|
2586
|
-
const { value: t, modelValue: n, mode: a, valueProp: i } =
|
|
2600
|
+
const { value: t, modelValue: n, mode: a, valueProp: i } = r1(s), l = W(a.value !== "single" ? [] : {}), o = n && n.value !== void 0 ? n : t, d = v(() => a.value === "single" ? l.value[i.value] : l.value.map((p) => p[i.value])), h = v(() => a.value !== "single" ? l.value.map((p) => p[i.value]).join(",") : l.value[i.value]);
|
|
2587
2601
|
return {
|
|
2588
2602
|
iv: l,
|
|
2589
2603
|
internalValue: l,
|
|
@@ -2594,7 +2608,7 @@ function c0(s, e) {
|
|
|
2594
2608
|
};
|
|
2595
2609
|
}
|
|
2596
2610
|
function d0(s, e, t) {
|
|
2597
|
-
const { regex: n } =
|
|
2611
|
+
const { regex: n } = r1(s), a = Z1().proxy, i = t.isOpen, l = t.open, o = W(null), d = W(null), h = () => {
|
|
2598
2612
|
o.value = "";
|
|
2599
2613
|
}, p = (T) => {
|
|
2600
2614
|
o.value = T.target.value;
|
|
@@ -2607,7 +2621,7 @@ function d0(s, e, t) {
|
|
|
2607
2621
|
if (n && n.value) {
|
|
2608
2622
|
let y = (T.clipboardData || /* istanbul ignore next */
|
|
2609
2623
|
window.clipboardData).getData("Text"), S = n.value;
|
|
2610
|
-
typeof S == "string" && (S = new RegExp(S)), y.split("").every((
|
|
2624
|
+
typeof S == "string" && (S = new RegExp(S)), y.split("").every((L) => !!L.match(S)) || T.preventDefault();
|
|
2611
2625
|
}
|
|
2612
2626
|
e.emit("paste", T, a);
|
|
2613
2627
|
};
|
|
@@ -2623,7 +2637,7 @@ function d0(s, e, t) {
|
|
|
2623
2637
|
};
|
|
2624
2638
|
}
|
|
2625
2639
|
function C0(s, e, t) {
|
|
2626
|
-
const { groupSelect: n, mode: a, groups: i, disabledProp: l } =
|
|
2640
|
+
const { groupSelect: n, mode: a, groups: i, disabledProp: l } = r1(s), o = W(null), d = (p) => {
|
|
2627
2641
|
p === void 0 || p !== null && p[l.value] || i.value && p && p.group && (a.value === "single" || !n.value) || (o.value = p);
|
|
2628
2642
|
};
|
|
2629
2643
|
return {
|
|
@@ -2662,7 +2676,7 @@ function p0(s, e, t) {
|
|
|
2662
2676
|
object: _,
|
|
2663
2677
|
loading: y,
|
|
2664
2678
|
delay: S,
|
|
2665
|
-
resolveOnLoad:
|
|
2679
|
+
resolveOnLoad: L,
|
|
2666
2680
|
minChars: f,
|
|
2667
2681
|
filterResults: E,
|
|
2668
2682
|
clearOnSearch: G,
|
|
@@ -2672,9 +2686,9 @@ function p0(s, e, t) {
|
|
|
2672
2686
|
groupLabel: t1,
|
|
2673
2687
|
canDeselect: m,
|
|
2674
2688
|
max: M,
|
|
2675
|
-
strict:
|
|
2689
|
+
strict: k,
|
|
2676
2690
|
closeOnSelect: $,
|
|
2677
|
-
closeOnDeselect:
|
|
2691
|
+
closeOnDeselect: B,
|
|
2678
2692
|
groups: l1,
|
|
2679
2693
|
reverse: n1,
|
|
2680
2694
|
infinite: C1,
|
|
@@ -2684,14 +2698,14 @@ function p0(s, e, t) {
|
|
|
2684
2698
|
onCreate: F,
|
|
2685
2699
|
disabledProp: Y,
|
|
2686
2700
|
searchStart: $1,
|
|
2687
|
-
searchFilter:
|
|
2688
|
-
} =
|
|
2701
|
+
searchFilter: D1
|
|
2702
|
+
} = r1(s), a1 = Z1().proxy, q = t.iv, g = t.ev, A = t.search, o1 = t.clearSearch, b1 = t.update, Qe = t.pointer, E1 = t.clearPointer, et = t.focus, tt = t.deactivate, A1 = t.close, st = t.localize, N1 = W([]), M1 = W([]), p1 = W(!1), ce = W(null), de = W(C1.value && l.value === -1 ? 10 : l.value), Ie = v(() => d.value || h.value || !1), at = v(() => I.value !== void 0 ? I.value : O.value !== void 0 ? O.value : !0), L1 = v(() => {
|
|
2689
2703
|
if (l1.value) {
|
|
2690
2704
|
let r = Y1.value || /* istanbul ignore next */
|
|
2691
2705
|
[], b = [];
|
|
2692
|
-
return r.forEach((
|
|
2693
|
-
_e(
|
|
2694
|
-
b.push(Object.assign({}, J,
|
|
2706
|
+
return r.forEach((D) => {
|
|
2707
|
+
_e(D[U.value]).forEach((J) => {
|
|
2708
|
+
b.push(Object.assign({}, J, D[Y.value] ? { [Y.value]: !0 } : {}));
|
|
2695
2709
|
});
|
|
2696
2710
|
}), b;
|
|
2697
2711
|
} else {
|
|
@@ -2699,11 +2713,11 @@ function p0(s, e, t) {
|
|
|
2699
2713
|
[]);
|
|
2700
2714
|
return N1.value.length && (r = r.concat(N1.value)), r;
|
|
2701
2715
|
}
|
|
2702
|
-
}),
|
|
2703
|
-
let r =
|
|
2716
|
+
}), Se = v(() => {
|
|
2717
|
+
let r = L1.value;
|
|
2704
2718
|
return n1.value && (r = r.reverse()), T1.value.length && (r = T1.value.concat(r)), ve(r);
|
|
2705
2719
|
}), R1 = v(() => {
|
|
2706
|
-
let r =
|
|
2720
|
+
let r = Se.value;
|
|
2707
2721
|
return de.value > 0 && (r = r.slice(0, de.value)), r;
|
|
2708
2722
|
}), Y1 = v(() => {
|
|
2709
2723
|
if (!l1.value)
|
|
@@ -2722,16 +2736,16 @@ function p0(s, e, t) {
|
|
|
2722
2736
|
[U.value]: [...T1.value],
|
|
2723
2737
|
__CREATE__: !0
|
|
2724
2738
|
}].concat(r)), r;
|
|
2725
|
-
}),
|
|
2739
|
+
}), He = v(() => {
|
|
2726
2740
|
if (!l1.value)
|
|
2727
2741
|
return [];
|
|
2728
2742
|
let r = lt.value;
|
|
2729
2743
|
return gt((r || /* istanbul ignore next */
|
|
2730
|
-
[]).map((b,
|
|
2744
|
+
[]).map((b, D) => {
|
|
2731
2745
|
const J = _e(b[U.value]);
|
|
2732
2746
|
return {
|
|
2733
2747
|
...b,
|
|
2734
|
-
index:
|
|
2748
|
+
index: D,
|
|
2735
2749
|
group: !0,
|
|
2736
2750
|
[U.value]: ve(J, !1).map((U1) => Object.assign({}, U1, b[Y.value] ? { [Y.value]: !0 } : {})),
|
|
2737
2751
|
__VISIBLE__: ve(J).map((U1) => Object.assign({}, U1, b[Y.value] ? { [Y.value]: !0 } : {}))
|
|
@@ -2745,7 +2759,7 @@ function p0(s, e, t) {
|
|
|
2745
2759
|
case "tags":
|
|
2746
2760
|
return !_1(q.value) && q.value.length > 0;
|
|
2747
2761
|
}
|
|
2748
|
-
}), nt = v(() => T !== void 0 && T.value !== void 0 ? T.value(q.value, a1) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), it = v(() => !
|
|
2762
|
+
}), nt = v(() => T !== void 0 && T.value !== void 0 ? T.value(q.value, a1) : q.value && q.value.length > 1 ? `${q.value.length} options selected` : "1 option selected"), it = v(() => !L1.value.length && !p1.value && !T1.value.length), ot = v(() => L1.value.length > 0 && R1.value.length == 0 && (A.value && l1.value || !l1.value)), T1 = v(() => Ie.value === !1 || !A.value ? [] : vt(A.value) !== -1 ? [] : [{
|
|
2749
2763
|
[H.value]: A.value,
|
|
2750
2764
|
[v1.value]: A.value,
|
|
2751
2765
|
[p.value]: A.value,
|
|
@@ -2768,27 +2782,27 @@ function p0(s, e, t) {
|
|
|
2768
2782
|
b1(q.value.concat(r));
|
|
2769
2783
|
break;
|
|
2770
2784
|
}
|
|
2771
|
-
e.emit("select",
|
|
2785
|
+
e.emit("select", Ee(r), r, a1);
|
|
2772
2786
|
}, k1 = (r) => {
|
|
2773
2787
|
switch (typeof r != "object" && (r = y1(r)), a.value) {
|
|
2774
2788
|
case "single":
|
|
2775
|
-
|
|
2789
|
+
Te();
|
|
2776
2790
|
break;
|
|
2777
2791
|
case "tags":
|
|
2778
2792
|
case "multiple":
|
|
2779
|
-
b1(Array.isArray(r) ? q.value.filter((b) => r.map((
|
|
2793
|
+
b1(Array.isArray(r) ? q.value.filter((b) => r.map((D) => D[H.value]).indexOf(b[H.value]) === -1) : q.value.filter((b) => b[H.value] != r[H.value]));
|
|
2780
2794
|
break;
|
|
2781
2795
|
}
|
|
2782
|
-
e.emit("deselect",
|
|
2783
|
-
},
|
|
2796
|
+
e.emit("deselect", Ee(r), r, a1);
|
|
2797
|
+
}, Ee = (r) => _.value ? r : r[H.value], Ae = (r) => {
|
|
2784
2798
|
k1(r);
|
|
2785
2799
|
}, ct = (r, b) => {
|
|
2786
2800
|
if (b.button !== 0) {
|
|
2787
2801
|
b.preventDefault();
|
|
2788
2802
|
return;
|
|
2789
2803
|
}
|
|
2790
|
-
|
|
2791
|
-
},
|
|
2804
|
+
Ae(r);
|
|
2805
|
+
}, Te = () => {
|
|
2792
2806
|
e.emit("clear", a1), b1(rt.value);
|
|
2793
2807
|
}, w1 = (r) => {
|
|
2794
2808
|
if (r.group !== void 0)
|
|
@@ -2804,42 +2818,42 @@ function p0(s, e, t) {
|
|
|
2804
2818
|
if (!he(r)) {
|
|
2805
2819
|
if (F && F.value && !w1(r) && r.__CREATE__ && (r = { ...r }, delete r.__CREATE__, r = F.value(r, a1), r instanceof Promise)) {
|
|
2806
2820
|
p1.value = !0, r.then((b) => {
|
|
2807
|
-
p1.value = !1,
|
|
2821
|
+
p1.value = !1, Oe(b);
|
|
2808
2822
|
});
|
|
2809
2823
|
return;
|
|
2810
2824
|
}
|
|
2811
|
-
|
|
2825
|
+
Oe(r);
|
|
2812
2826
|
}
|
|
2813
|
-
},
|
|
2827
|
+
}, Oe = (r) => {
|
|
2814
2828
|
switch (r.__CREATE__ && (r = { ...r }, delete r.__CREATE__), a.value) {
|
|
2815
2829
|
case "single":
|
|
2816
2830
|
if (r && w1(r)) {
|
|
2817
|
-
m.value && k1(r),
|
|
2831
|
+
m.value && k1(r), B.value && (E1(), A1());
|
|
2818
2832
|
return;
|
|
2819
2833
|
}
|
|
2820
|
-
r && pe(r), Q.value &&
|
|
2834
|
+
r && pe(r), Q.value && o1(), $.value && (E1(), A1()), r && O1(r);
|
|
2821
2835
|
break;
|
|
2822
2836
|
case "multiple":
|
|
2823
2837
|
if (r && w1(r)) {
|
|
2824
|
-
k1(r),
|
|
2838
|
+
k1(r), B.value && (E1(), A1());
|
|
2825
2839
|
return;
|
|
2826
2840
|
}
|
|
2827
2841
|
if (fe()) {
|
|
2828
2842
|
e.emit("max", a1);
|
|
2829
2843
|
return;
|
|
2830
2844
|
}
|
|
2831
|
-
r && (pe(r), O1(r)), Q.value &&
|
|
2845
|
+
r && (pe(r), O1(r)), Q.value && o1(), o.value && E1(), $.value && A1();
|
|
2832
2846
|
break;
|
|
2833
2847
|
case "tags":
|
|
2834
2848
|
if (r && w1(r)) {
|
|
2835
|
-
k1(r),
|
|
2849
|
+
k1(r), B.value && (E1(), A1());
|
|
2836
2850
|
return;
|
|
2837
2851
|
}
|
|
2838
2852
|
if (fe()) {
|
|
2839
2853
|
e.emit("max", a1);
|
|
2840
2854
|
return;
|
|
2841
2855
|
}
|
|
2842
|
-
r && pe(r), Q.value &&
|
|
2856
|
+
r && pe(r), Q.value && o1(), r && O1(r), o.value && E1(), $.value && A1();
|
|
2843
2857
|
break;
|
|
2844
2858
|
}
|
|
2845
2859
|
$.value || et();
|
|
@@ -2849,41 +2863,41 @@ function p0(s, e, t) {
|
|
|
2849
2863
|
case "multiple":
|
|
2850
2864
|
case "tags":
|
|
2851
2865
|
ft(r[U.value]) ? k1(r[U.value]) : O1(
|
|
2852
|
-
r[U.value].filter((b) => q.value.map((
|
|
2866
|
+
r[U.value].filter((b) => q.value.map((D) => D[H.value]).indexOf(b[H.value]) === -1).filter((b) => !b[Y.value]).filter((b, D) => q.value.length + 1 + D <= M.value || M.value === -1)
|
|
2853
2867
|
);
|
|
2854
2868
|
break;
|
|
2855
2869
|
}
|
|
2856
2870
|
$.value && tt();
|
|
2857
2871
|
}
|
|
2858
2872
|
}, pe = (r) => {
|
|
2859
|
-
y1(r[H.value]) === void 0 &&
|
|
2873
|
+
y1(r[H.value]) === void 0 && Ie.value && (e.emit("tag", r[H.value], a1), e.emit("option", r[H.value], a1), e.emit("create", r[H.value], a1), at.value && mt(r), o1());
|
|
2860
2874
|
}, ht = () => {
|
|
2861
2875
|
a.value !== "single" && O1(R1.value.filter((r) => !r.disabled && !w1(r)));
|
|
2862
|
-
}, ft = (r) => r.find((b) => !w1(b) && !b[Y.value]) === void 0, pt = (r) => r.find((b) => !w1(b)) === void 0, y1 = (r) =>
|
|
2876
|
+
}, ft = (r) => r.find((b) => !w1(b) && !b[Y.value]) === void 0, pt = (r) => r.find((b) => !w1(b)) === void 0, y1 = (r) => L1.value[L1.value.map((b) => String(b[H.value])).indexOf(String(r))], vt = (r, b = !0) => L1.value.map((D) => parseInt(D[v1.value]) == D[v1.value] ? parseInt(D[v1.value]) : D[v1.value]).indexOf(
|
|
2863
2877
|
parseInt(r) == r ? parseInt(r) : r
|
|
2864
2878
|
), _t = (r) => ["tags", "multiple"].indexOf(a.value) !== -1 && o.value && w1(r), mt = (r) => {
|
|
2865
2879
|
N1.value.push(r);
|
|
2866
2880
|
}, gt = (r) => S1.value ? r.filter(
|
|
2867
2881
|
(b) => A.value ? b.__VISIBLE__.length : b[U.value].length
|
|
2868
2882
|
) : r.filter((b) => A.value ? b.__VISIBLE__.length : !0), ve = (r, b = !0) => {
|
|
2869
|
-
let
|
|
2883
|
+
let D = r;
|
|
2870
2884
|
if (A.value && E.value) {
|
|
2871
|
-
let J =
|
|
2885
|
+
let J = D1.value;
|
|
2872
2886
|
J || (J = (U1, Ri) => {
|
|
2873
|
-
let
|
|
2874
|
-
return $1.value ?
|
|
2875
|
-
}),
|
|
2887
|
+
let Ze = be(st(U1[v1.value]), k.value);
|
|
2888
|
+
return $1.value ? Ze.startsWith(be(A.value, k.value)) : Ze.indexOf(be(A.value, k.value)) !== -1;
|
|
2889
|
+
}), D = D.filter(J);
|
|
2876
2890
|
}
|
|
2877
|
-
return o.value && b && (
|
|
2891
|
+
return o.value && b && (D = D.filter((J) => !_t(J))), D;
|
|
2878
2892
|
}, _e = (r) => {
|
|
2879
2893
|
let b = r;
|
|
2880
|
-
return h0(b) && (b = Object.keys(b).map((
|
|
2881
|
-
let J = b[
|
|
2882
|
-
return { [H.value]:
|
|
2883
|
-
})), b = b.map((
|
|
2894
|
+
return h0(b) && (b = Object.keys(b).map((D) => {
|
|
2895
|
+
let J = b[D];
|
|
2896
|
+
return { [H.value]: D, [v1.value]: J, [p.value]: J };
|
|
2897
|
+
})), b = b.map((D) => typeof D == "object" ? D : { [H.value]: D, [v1.value]: D, [p.value]: D }), b;
|
|
2884
2898
|
}, X1 = () => {
|
|
2885
2899
|
_1(g.value) || (q.value = J1(g.value));
|
|
2886
|
-
}, W1 = (r) => (p1.value = !0, new Promise((b,
|
|
2900
|
+
}, W1 = (r) => (p1.value = !0, new Promise((b, D) => {
|
|
2887
2901
|
n.value(A.value, a1).then((J) => {
|
|
2888
2902
|
M1.value = J || [], typeof r == "function" && r(J), p1.value = !1;
|
|
2889
2903
|
}).catch((J) => {
|
|
@@ -2901,9 +2915,9 @@ function p0(s, e, t) {
|
|
|
2901
2915
|
}
|
|
2902
2916
|
} else
|
|
2903
2917
|
q.value.forEach((r, b) => {
|
|
2904
|
-
let
|
|
2905
|
-
if (
|
|
2906
|
-
let J =
|
|
2918
|
+
let D = y1(q.value[b][H.value]);
|
|
2919
|
+
if (D !== void 0) {
|
|
2920
|
+
let J = D[p.value];
|
|
2907
2921
|
q.value[b][p.value] = J, _.value && (g.value[b][p.value] = J);
|
|
2908
2922
|
}
|
|
2909
2923
|
});
|
|
@@ -2917,11 +2931,11 @@ function p0(s, e, t) {
|
|
|
2917
2931
|
[p.value]: b,
|
|
2918
2932
|
[H.value]: b,
|
|
2919
2933
|
[v1.value]: b
|
|
2920
|
-
}),
|
|
2934
|
+
}), ke = () => {
|
|
2921
2935
|
ce.value = c1(A, (r) => {
|
|
2922
2936
|
r.length < f.value || !r && f.value !== 0 || (p1.value = !0, G.value && (M1.value = []), setTimeout(() => {
|
|
2923
2937
|
r == A.value && n.value(A.value, a1).then((b) => {
|
|
2924
|
-
(r == A.value || !A.value) && (M1.value = b, Qe.value = R1.value.filter((
|
|
2938
|
+
(r == A.value || !A.value) && (M1.value = b, Qe.value = R1.value.filter((D) => D[Y.value] !== !0)[0] || null, p1.value = !1);
|
|
2925
2939
|
}).catch(
|
|
2926
2940
|
/* istanbul ignore next */
|
|
2927
2941
|
(b) => {
|
|
@@ -2933,8 +2947,8 @@ function p0(s, e, t) {
|
|
|
2933
2947
|
};
|
|
2934
2948
|
if (a.value !== "single" && !_1(g.value) && !Array.isArray(g.value))
|
|
2935
2949
|
throw new Error(`v-model must be an array when using "${a.value}" mode`);
|
|
2936
|
-
return n && typeof n.value == "function" ?
|
|
2937
|
-
ce.value && ce.value(), r >= 0 &&
|
|
2950
|
+
return n && typeof n.value == "function" ? L.value ? W1(X1) : _.value == !0 && X1() : (M1.value = n.value, X1()), S.value > -1 && ke(), c1(S, (r, b) => {
|
|
2951
|
+
ce.value && ce.value(), r >= 0 && ke();
|
|
2938
2952
|
}), c1(g, (r) => {
|
|
2939
2953
|
if (_1(r)) {
|
|
2940
2954
|
b1(J1(r), !1);
|
|
@@ -2950,19 +2964,19 @@ function p0(s, e, t) {
|
|
|
2950
2964
|
break;
|
|
2951
2965
|
}
|
|
2952
2966
|
}, { deep: !0 }), c1(n, (r, b) => {
|
|
2953
|
-
typeof s.options == "function" ?
|
|
2967
|
+
typeof s.options == "function" ? L.value && (!b || r && r.toString() !== b.toString()) && W1() : (M1.value = s.options, Object.keys(q.value).length || X1(), me());
|
|
2954
2968
|
}), c1(p, me), {
|
|
2955
|
-
pfo:
|
|
2969
|
+
pfo: Se,
|
|
2956
2970
|
fo: R1,
|
|
2957
2971
|
filteredOptions: R1,
|
|
2958
2972
|
hasSelected: Ce,
|
|
2959
2973
|
multipleLabelText: nt,
|
|
2960
|
-
eo:
|
|
2961
|
-
extendedOptions:
|
|
2974
|
+
eo: L1,
|
|
2975
|
+
extendedOptions: L1,
|
|
2962
2976
|
eg: Y1,
|
|
2963
2977
|
extendedGroups: Y1,
|
|
2964
|
-
fg:
|
|
2965
|
-
filteredGroups:
|
|
2978
|
+
fg: He,
|
|
2979
|
+
filteredGroups: He,
|
|
2966
2980
|
noOptions: it,
|
|
2967
2981
|
noResults: ot,
|
|
2968
2982
|
resolving: p1,
|
|
@@ -2970,9 +2984,9 @@ function p0(s, e, t) {
|
|
|
2970
2984
|
offset: de,
|
|
2971
2985
|
select: O1,
|
|
2972
2986
|
deselect: k1,
|
|
2973
|
-
remove:
|
|
2987
|
+
remove: Ae,
|
|
2974
2988
|
selectAll: ht,
|
|
2975
|
-
clear:
|
|
2989
|
+
clear: Te,
|
|
2976
2990
|
isSelected: w1,
|
|
2977
2991
|
isDisabled: he,
|
|
2978
2992
|
isMax: fe,
|
|
@@ -2996,56 +3010,56 @@ function v0(s, e, t) {
|
|
|
2996
3010
|
groupSelect: h,
|
|
2997
3011
|
disabledProp: p,
|
|
2998
3012
|
groupOptions: I
|
|
2999
|
-
} =
|
|
3000
|
-
const g = m.value ?
|
|
3013
|
+
} = r1(s), O = t.fo, T = t.fg, _ = t.handleOptionClick, y = t.handleGroupClick, S = t.search, L = t.pointer, f = t.setPointer, E = t.clearPointer, G = t.multiselect, Q = t.isOpen, H = v(() => O.value.filter((g) => !g[p.value])), e1 = v(() => T.value.filter((g) => !g[p.value])), t1 = v(() => d.value !== "single" && h.value), m = v(() => L.value && L.value.group), M = v(() => a1(L.value)), k = v(() => {
|
|
3014
|
+
const g = m.value ? L.value : (
|
|
3001
3015
|
/* istanbul ignore next */
|
|
3002
|
-
a1(
|
|
3016
|
+
a1(L.value)
|
|
3003
3017
|
), A = e1.value.map((b1) => b1[l.value]).indexOf(g[l.value]);
|
|
3004
|
-
let
|
|
3005
|
-
return
|
|
3018
|
+
let o1 = e1.value[A - 1];
|
|
3019
|
+
return o1 === void 0 && (o1 = B.value), o1;
|
|
3006
3020
|
}), $ = v(() => {
|
|
3007
|
-
let g = e1.value.map((A) => A.label).indexOf(m.value ?
|
|
3021
|
+
let g = e1.value.map((A) => A.label).indexOf(m.value ? L.value[l.value] : a1(L.value)[l.value]) + 1;
|
|
3008
3022
|
return e1.value.length <= g && (g = 0), e1.value[g];
|
|
3009
|
-
}),
|
|
3023
|
+
}), B = v(() => [...e1.value].slice(-1)[0]), l1 = v(() => L.value.__VISIBLE__.filter((g) => !g[p.value])[0]), n1 = v(() => {
|
|
3010
3024
|
const g = M.value.__VISIBLE__.filter((A) => !A[p.value]);
|
|
3011
|
-
return g[g.map((A) => A[n.value]).indexOf(
|
|
3025
|
+
return g[g.map((A) => A[n.value]).indexOf(L.value[n.value]) - 1];
|
|
3012
3026
|
}), C1 = v(() => {
|
|
3013
|
-
const g = a1(
|
|
3014
|
-
return g[g.map((A) => A[n.value]).indexOf(
|
|
3015
|
-
}), U = v(() => [...
|
|
3027
|
+
const g = a1(L.value).__VISIBLE__.filter((A) => !A[p.value]);
|
|
3028
|
+
return g[g.map((A) => A[n.value]).indexOf(L.value[n.value]) + 1];
|
|
3029
|
+
}), U = v(() => [...k.value.__VISIBLE__.filter((g) => !g[p.value])].slice(-1)[0]), S1 = v(() => [...B.value.__VISIBLE__.filter((g) => !g[p.value])].slice(-1)[0]), R = (g) => L.value && (!g.group && L.value[n.value] === g[n.value] || g.group !== void 0 && L.value[l.value] === g[l.value]) ? !0 : void 0, F = () => {
|
|
3016
3030
|
f(H.value[0] || null);
|
|
3017
3031
|
}, Y = () => {
|
|
3018
|
-
!
|
|
3032
|
+
!L.value || L.value[p.value] === !0 || (m.value ? y(L.value) : _(L.value));
|
|
3019
3033
|
}, $1 = () => {
|
|
3020
|
-
if (
|
|
3034
|
+
if (L.value === null)
|
|
3021
3035
|
f((o.value && t1.value ? e1.value[0].__CREATE__ ? H.value[0] : e1.value[0] : H.value[0]) || null);
|
|
3022
3036
|
else if (o.value && t1.value) {
|
|
3023
3037
|
let g = m.value ? l1.value : C1.value;
|
|
3024
3038
|
g === void 0 && (g = $.value, g.__CREATE__ && (g = g[I.value][0])), f(g || /* istanbul ignore next */
|
|
3025
3039
|
null);
|
|
3026
3040
|
} else {
|
|
3027
|
-
let g = H.value.map((A) => A[n.value]).indexOf(
|
|
3041
|
+
let g = H.value.map((A) => A[n.value]).indexOf(L.value[n.value]) + 1;
|
|
3028
3042
|
H.value.length <= g && (g = 0), f(H.value[g] || null);
|
|
3029
3043
|
}
|
|
3030
3044
|
K1(() => {
|
|
3031
3045
|
q();
|
|
3032
3046
|
});
|
|
3033
|
-
},
|
|
3034
|
-
if (
|
|
3047
|
+
}, D1 = () => {
|
|
3048
|
+
if (L.value === null) {
|
|
3035
3049
|
let g = H.value[H.value.length - 1];
|
|
3036
|
-
o.value && t1.value && (g = S1.value, g === void 0 && (g =
|
|
3050
|
+
o.value && t1.value && (g = S1.value, g === void 0 && (g = B.value)), f(g || null);
|
|
3037
3051
|
} else if (o.value && t1.value) {
|
|
3038
3052
|
let g = m.value ? U.value : n1.value;
|
|
3039
|
-
g === void 0 && (g = m.value ?
|
|
3053
|
+
g === void 0 && (g = m.value ? k.value : M.value, g.__CREATE__ && (g = U.value, g === void 0 && (g = k.value))), f(g || /* istanbul ignore next */
|
|
3040
3054
|
null);
|
|
3041
3055
|
} else {
|
|
3042
|
-
let g = H.value.map((A) => A[n.value]).indexOf(
|
|
3056
|
+
let g = H.value.map((A) => A[n.value]).indexOf(L.value[n.value]) - 1;
|
|
3043
3057
|
g < 0 && (g = H.value.length - 1), f(H.value[g] || null);
|
|
3044
3058
|
}
|
|
3045
3059
|
K1(() => {
|
|
3046
3060
|
q();
|
|
3047
3061
|
});
|
|
3048
|
-
}, a1 = (g) => e1.value.find((A) => A.__VISIBLE__.map((
|
|
3062
|
+
}, a1 = (g) => e1.value.find((A) => A.__VISIBLE__.map((o1) => o1[n.value]).indexOf(g[n.value]) !== -1), q = () => {
|
|
3049
3063
|
let g = G.value.querySelector("[data-pointed]");
|
|
3050
3064
|
if (!g)
|
|
3051
3065
|
return;
|
|
@@ -3059,23 +3073,23 @@ function v0(s, e, t) {
|
|
|
3059
3073
|
let A = G.value.querySelectorAll("[data-selected]")[0];
|
|
3060
3074
|
if (!A)
|
|
3061
3075
|
return;
|
|
3062
|
-
let
|
|
3076
|
+
let o1 = A.parentElement.parentElement;
|
|
3063
3077
|
K1(() => {
|
|
3064
|
-
|
|
3078
|
+
o1.scrollTop > 0 || (o1.scrollTop = A.offsetTop);
|
|
3065
3079
|
});
|
|
3066
3080
|
}
|
|
3067
3081
|
}), {
|
|
3068
|
-
pointer:
|
|
3082
|
+
pointer: L,
|
|
3069
3083
|
canPointGroups: t1,
|
|
3070
3084
|
isPointed: R,
|
|
3071
3085
|
setPointerFirst: F,
|
|
3072
3086
|
selectPointer: Y,
|
|
3073
3087
|
forwardPointer: $1,
|
|
3074
|
-
backwardPointer:
|
|
3088
|
+
backwardPointer: D1
|
|
3075
3089
|
};
|
|
3076
3090
|
}
|
|
3077
3091
|
function _0(s, e, t) {
|
|
3078
|
-
const { disabled: n } =
|
|
3092
|
+
const { disabled: n } = r1(s), a = Z1().proxy, i = W(!1);
|
|
3079
3093
|
return {
|
|
3080
3094
|
isOpen: i,
|
|
3081
3095
|
open: () => {
|
|
@@ -3087,7 +3101,7 @@ function _0(s, e, t) {
|
|
|
3087
3101
|
};
|
|
3088
3102
|
}
|
|
3089
3103
|
function m0(s, e, t) {
|
|
3090
|
-
const { searchable: n, disabled: a, clearOnBlur: i } =
|
|
3104
|
+
const { searchable: n, disabled: a, clearOnBlur: i } = r1(s), l = t.input, o = t.open, d = t.close, h = t.clearSearch, p = t.isOpen, I = W(null), O = W(null), T = W(null), _ = W(!1), y = W(!1), S = v(() => n.value || a.value ? -1 : 0), L = () => {
|
|
3091
3105
|
n.value && l.value.blur(), O.value.blur();
|
|
3092
3106
|
}, f = () => {
|
|
3093
3107
|
n.value && !a.value && l.value.focus();
|
|
@@ -3105,7 +3119,7 @@ function m0(s, e, t) {
|
|
|
3105
3119
|
tabindex: S,
|
|
3106
3120
|
isActive: _,
|
|
3107
3121
|
mouseClicked: y,
|
|
3108
|
-
blur:
|
|
3122
|
+
blur: L,
|
|
3109
3123
|
focus: f,
|
|
3110
3124
|
activate: E,
|
|
3111
3125
|
deactivate: G,
|
|
@@ -3116,7 +3130,7 @@ function m0(s, e, t) {
|
|
|
3116
3130
|
G();
|
|
3117
3131
|
},
|
|
3118
3132
|
handleCaretClick: () => {
|
|
3119
|
-
G(),
|
|
3133
|
+
G(), L();
|
|
3120
3134
|
},
|
|
3121
3135
|
handleMousedown: (m) => {
|
|
3122
3136
|
y.value = !0, p.value && (m.target.isEqualNode(O.value) || m.target.isEqualNode(T.value)) ? setTimeout(() => {
|
|
@@ -3140,8 +3154,8 @@ function g0(s, e, t) {
|
|
|
3140
3154
|
createTag: I,
|
|
3141
3155
|
createOption: O,
|
|
3142
3156
|
reverse: T
|
|
3143
|
-
} =
|
|
3144
|
-
n.value === "tags" && !o.value &&
|
|
3157
|
+
} = r1(s), _ = Z1().proxy, y = t.iv, S = t.update, L = t.search, f = t.setPointer, E = t.selectPointer, G = t.backwardPointer, Q = t.forwardPointer, H = t.multiselect, e1 = t.wrapper, t1 = t.tags, m = t.isOpen, M = t.open, k = t.blur, $ = t.fo, B = v(() => I.value || O.value || !1), l1 = v(() => a.value !== void 0 ? a.value : p.value !== void 0 ? p.value : ["enter"]), n1 = () => {
|
|
3158
|
+
n.value === "tags" && !o.value && B.value && l.value && !h.value && f($.value[$.value.map((R) => R[d.value]).indexOf(L.value)]);
|
|
3145
3159
|
}, C1 = (R) => {
|
|
3146
3160
|
let F = R.length - 1;
|
|
3147
3161
|
for (; F >= 0 && (R[F].remove === !1 || R[F].disabled); )
|
|
@@ -3154,7 +3168,7 @@ function g0(s, e, t) {
|
|
|
3154
3168
|
let F, Y;
|
|
3155
3169
|
switch (["ArrowLeft", "ArrowRight", "Enter"].indexOf(R.key) !== -1 && n.value === "tags" && (F = [...H.value.querySelectorAll("[data-tags] > *")].filter(($1) => $1 !== t1.value), Y = F.findIndex(($1) => $1 === document.activeElement)), R.key) {
|
|
3156
3170
|
case "Backspace":
|
|
3157
|
-
if (n.value === "single" || l.value && [null, ""].indexOf(
|
|
3171
|
+
if (n.value === "single" || l.value && [null, ""].indexOf(L.value) === -1 || y.value.length === 0)
|
|
3158
3172
|
return;
|
|
3159
3173
|
S(C1([...y.value]));
|
|
3160
3174
|
break;
|
|
@@ -3162,33 +3176,33 @@ function g0(s, e, t) {
|
|
|
3162
3176
|
if (R.preventDefault(), R.keyCode === 229)
|
|
3163
3177
|
return;
|
|
3164
3178
|
if (Y !== -1 && Y !== void 0) {
|
|
3165
|
-
S([...y.value].filter(($1,
|
|
3179
|
+
S([...y.value].filter(($1, D1) => D1 !== Y)), Y === F.length - 1 && (F.length - 1 ? F[F.length - 2].focus() : l.value ? t1.value.querySelector("input").focus() : e1.value.focus());
|
|
3166
3180
|
return;
|
|
3167
3181
|
}
|
|
3168
|
-
if (l1.value.indexOf("enter") === -1 &&
|
|
3182
|
+
if (l1.value.indexOf("enter") === -1 && B.value)
|
|
3169
3183
|
return;
|
|
3170
3184
|
n1(), E();
|
|
3171
3185
|
break;
|
|
3172
3186
|
case " ":
|
|
3173
|
-
if (!
|
|
3187
|
+
if (!B.value && !l.value) {
|
|
3174
3188
|
R.preventDefault(), n1(), E();
|
|
3175
3189
|
return;
|
|
3176
3190
|
}
|
|
3177
|
-
if (!
|
|
3191
|
+
if (!B.value)
|
|
3178
3192
|
return !1;
|
|
3179
|
-
if (l1.value.indexOf("space") === -1 &&
|
|
3193
|
+
if (l1.value.indexOf("space") === -1 && B.value)
|
|
3180
3194
|
return;
|
|
3181
3195
|
R.preventDefault(), n1(), E();
|
|
3182
3196
|
break;
|
|
3183
3197
|
case "Tab":
|
|
3184
3198
|
case ";":
|
|
3185
3199
|
case ",":
|
|
3186
|
-
if (l1.value.indexOf(R.key.toLowerCase()) === -1 || !
|
|
3200
|
+
if (l1.value.indexOf(R.key.toLowerCase()) === -1 || !B.value)
|
|
3187
3201
|
return;
|
|
3188
3202
|
n1(), E(), R.preventDefault();
|
|
3189
3203
|
break;
|
|
3190
3204
|
case "Escape":
|
|
3191
|
-
|
|
3205
|
+
k();
|
|
3192
3206
|
break;
|
|
3193
3207
|
case "ArrowUp":
|
|
3194
3208
|
if (R.preventDefault(), !o.value)
|
|
@@ -3224,7 +3238,7 @@ function b0(s, e, t) {
|
|
|
3224
3238
|
disabled: a,
|
|
3225
3239
|
openDirection: i,
|
|
3226
3240
|
showOptions: l
|
|
3227
|
-
} =
|
|
3241
|
+
} = r1(s), o = t.isOpen, d = t.isPointed, h = t.isSelected, p = t.isDisabled, I = t.isActive, O = t.canPointGroups, T = t.resolving, _ = t.fo, y = v(() => ({
|
|
3228
3242
|
container: "multiselect",
|
|
3229
3243
|
containerDisabled: "is-disabled",
|
|
3230
3244
|
containerOpen: "is-open",
|
|
@@ -3329,10 +3343,10 @@ function w0(s, e, t) {
|
|
|
3329
3343
|
const {
|
|
3330
3344
|
limit: n,
|
|
3331
3345
|
infinite: a
|
|
3332
|
-
} =
|
|
3333
|
-
const { isIntersecting: S, target:
|
|
3346
|
+
} = r1(s), i = t.isOpen, l = t.offset, o = t.search, d = t.pfo, h = t.eo, p = W(null), I = W(null), O = v(() => l.value < d.value.length), T = (y) => {
|
|
3347
|
+
const { isIntersecting: S, target: L } = y[0];
|
|
3334
3348
|
if (S) {
|
|
3335
|
-
const f =
|
|
3349
|
+
const f = L.offsetParent, E = f.scrollTop;
|
|
3336
3350
|
l.value += n.value == -1 ? 10 : n.value, K1(() => {
|
|
3337
3351
|
f.scrollTop = E;
|
|
3338
3352
|
});
|
|
@@ -3346,7 +3360,7 @@ function w0(s, e, t) {
|
|
|
3346
3360
|
a.value && (l.value = n.value, _());
|
|
3347
3361
|
}, { flush: "post" }), c1(h, () => {
|
|
3348
3362
|
a.value && _();
|
|
3349
|
-
}, { immediate: !1, flush: "post" }),
|
|
3363
|
+
}, { immediate: !1, flush: "post" }), Ue(() => {
|
|
3350
3364
|
window && window.IntersectionObserver && (p.value = new IntersectionObserver(T));
|
|
3351
3365
|
}), {
|
|
3352
3366
|
hasMore: O,
|
|
@@ -3363,10 +3377,10 @@ function y0(s, e, t) {
|
|
|
3363
3377
|
groupLabel: d,
|
|
3364
3378
|
aria: h,
|
|
3365
3379
|
searchable: p
|
|
3366
|
-
} =
|
|
3380
|
+
} = r1(s), I = t.pointer, O = t.iv, T = t.hasSelected, _ = t.multipleLabelText, y = W(null), S = v(() => {
|
|
3367
3381
|
let $ = [];
|
|
3368
3382
|
return a && a.value && $.push(a.value), $.push("assist"), $.join("-");
|
|
3369
|
-
}),
|
|
3383
|
+
}), L = v(() => {
|
|
3370
3384
|
let $ = [];
|
|
3371
3385
|
return a && a.value && $.push(a.value), $.push("multiselect-options"), $.join("-");
|
|
3372
3386
|
}), f = v(() => {
|
|
@@ -3375,24 +3389,24 @@ function y0(s, e, t) {
|
|
|
3375
3389
|
return $.push(I.value.group ? "multiselect-group" : "multiselect-option"), $.push(I.value.group ? I.value.index : I.value[i.value]), $.join("-");
|
|
3376
3390
|
}), E = v(() => n.value), G = v(() => o.value !== "single"), Q = v(() => {
|
|
3377
3391
|
let $ = "";
|
|
3378
|
-
return o.value === "single" && T.value && ($ += O.value[l.value]), o.value === "multiple" && T.value && ($ += _.value), o.value === "tags" && T.value && ($ += O.value.map((
|
|
3392
|
+
return o.value === "single" && T.value && ($ += O.value[l.value]), o.value === "multiple" && T.value && ($ += _.value), o.value === "tags" && T.value && ($ += O.value.map((B) => B[l.value]).join(", ")), $;
|
|
3379
3393
|
}), H = v(() => {
|
|
3380
3394
|
let $ = { ...h.value };
|
|
3381
3395
|
return p.value && ($["aria-labelledby"] = $["aria-labelledby"] ? `${S.value} ${$["aria-labelledby"]}` : S.value, Q.value && $["aria-label"] && ($["aria-label"] = `${Q.value}, ${$["aria-label"]}`)), $;
|
|
3382
3396
|
}), e1 = ($) => {
|
|
3383
|
-
let
|
|
3384
|
-
return a && a.value &&
|
|
3397
|
+
let B = [];
|
|
3398
|
+
return a && a.value && B.push(a.value), B.push("multiselect-option"), B.push($[i.value]), B.join("-");
|
|
3385
3399
|
}, t1 = ($) => {
|
|
3386
|
-
let
|
|
3387
|
-
return a && a.value &&
|
|
3400
|
+
let B = [];
|
|
3401
|
+
return a && a.value && B.push(a.value), B.push("multiselect-group"), B.push($.index), B.join("-");
|
|
3388
3402
|
}, m = ($) => {
|
|
3389
|
-
let
|
|
3390
|
-
return
|
|
3403
|
+
let B = [];
|
|
3404
|
+
return B.push($), B.join(" ");
|
|
3391
3405
|
}, M = ($) => {
|
|
3392
|
-
let
|
|
3393
|
-
return
|
|
3394
|
-
},
|
|
3395
|
-
return
|
|
3406
|
+
let B = [];
|
|
3407
|
+
return B.push($), B.join(" ");
|
|
3408
|
+
}, k = ($) => `${$} ❎`;
|
|
3409
|
+
return Ue(() => {
|
|
3396
3410
|
if (a && a.value && document && document.querySelector) {
|
|
3397
3411
|
let $ = document.querySelector(`[for="${a.value}"]`);
|
|
3398
3412
|
y.value = $ ? $.innerText : null;
|
|
@@ -3401,7 +3415,7 @@ function y0(s, e, t) {
|
|
|
3401
3415
|
arias: H,
|
|
3402
3416
|
ariaLabel: Q,
|
|
3403
3417
|
ariaAssist: S,
|
|
3404
|
-
ariaControls:
|
|
3418
|
+
ariaControls: L,
|
|
3405
3419
|
ariaPlaceholder: E,
|
|
3406
3420
|
ariaMultiselectable: G,
|
|
3407
3421
|
ariaActiveDescendant: f,
|
|
@@ -3409,14 +3423,14 @@ function y0(s, e, t) {
|
|
|
3409
3423
|
ariaOptionLabel: m,
|
|
3410
3424
|
ariaGroupId: t1,
|
|
3411
3425
|
ariaGroupLabel: M,
|
|
3412
|
-
ariaTagLabel:
|
|
3426
|
+
ariaTagLabel: k
|
|
3413
3427
|
};
|
|
3414
3428
|
}
|
|
3415
3429
|
function $0(s, e, t) {
|
|
3416
3430
|
const {
|
|
3417
3431
|
locale: n,
|
|
3418
3432
|
fallbackLocale: a
|
|
3419
|
-
} =
|
|
3433
|
+
} = r1(s);
|
|
3420
3434
|
return {
|
|
3421
3435
|
localize: (l) => !l || typeof l != "object" ? l : l && l[n.value] ? l[n.value] : l && n.value && l[n.value.toUpperCase()] ? l[n.value.toUpperCase()] : l && l[a.value] ? l[a.value] : l && a.value && l[a.value.toUpperCase()] ? l[a.value.toUpperCase()] : l && Object.keys(l)[0] ? l[Object.keys(l)[0]] : ""
|
|
3422
3436
|
};
|
|
@@ -3782,7 +3796,7 @@ var h1 = {
|
|
|
3782
3796
|
]);
|
|
3783
3797
|
}
|
|
3784
3798
|
};
|
|
3785
|
-
const
|
|
3799
|
+
const L0 = ["id", "dir"], V0 = ["tabindex", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable", "role"], I0 = ["type", "modelValue", "value", "autocomplete", "id", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], S0 = ["onKeyup", "aria-label"], H0 = ["onClick"], E0 = ["type", "modelValue", "value", "id", "autocomplete", "aria-controls", "aria-placeholder", "aria-expanded", "aria-activedescendant", "aria-multiselectable"], A0 = ["innerHTML"], T0 = ["id"], O0 = ["id", "aria-label", "aria-selected"], k0 = ["data-pointed", "onMouseenter", "onClick"], Z0 = ["innerHTML"], B0 = ["aria-label"], P0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], D0 = ["data-pointed", "data-selected", "onMouseenter", "onClick", "id", "aria-selected", "aria-label"], N0 = ["innerHTML"], R0 = ["innerHTML"], U0 = ["value"], q0 = ["name", "value"], j0 = ["name", "value"], K0 = ["id"];
|
|
3786
3800
|
function z0(s, e, t, n, a, i) {
|
|
3787
3801
|
return c(), C("div", {
|
|
3788
3802
|
ref: "multiselect",
|
|
@@ -3806,7 +3820,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3806
3820
|
"aria-multiselectable": t.searchable ? void 0 : s.ariaMultiselectable,
|
|
3807
3821
|
role: t.searchable ? void 0 : "combobox"
|
|
3808
3822
|
}, t.searchable ? {} : s.arias), [
|
|
3809
|
-
|
|
3823
|
+
V(" Search "),
|
|
3810
3824
|
t.mode !== "tags" && t.searchable && !t.disabled ? (c(), C("input", H1({
|
|
3811
3825
|
key: 0,
|
|
3812
3826
|
type: t.inputType,
|
|
@@ -3828,8 +3842,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
3828
3842
|
}, {
|
|
3829
3843
|
...t.attrs,
|
|
3830
3844
|
...s.arias
|
|
3831
|
-
}), null, 16, I0)) :
|
|
3832
|
-
|
|
3845
|
+
}), null, 16, I0)) : V("v-if", !0),
|
|
3846
|
+
V(" Tags (with search) "),
|
|
3833
3847
|
t.mode == "tags" ? (c(), C(
|
|
3834
3848
|
"div",
|
|
3835
3849
|
{
|
|
@@ -3841,7 +3855,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3841
3855
|
(c(!0), C(
|
|
3842
3856
|
m1,
|
|
3843
3857
|
null,
|
|
3844
|
-
|
|
3858
|
+
V1(s.iv, (l, o, d) => K(s.$slots, "tag", {
|
|
3845
3859
|
option: l,
|
|
3846
3860
|
handleTagRemove: s.handleTagRemove,
|
|
3847
3861
|
disabled: t.disabled
|
|
@@ -3852,7 +3866,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3852
3866
|
l.disabled ? s.classList.tagDisabled : null
|
|
3853
3867
|
]),
|
|
3854
3868
|
tabindex: "-1",
|
|
3855
|
-
onKeyup:
|
|
3869
|
+
onKeyup: Be((h) => s.handleTagRemove(l, h), ["enter"]),
|
|
3856
3870
|
key: d,
|
|
3857
3871
|
"aria-label": s.ariaTagLabel(s.localize(l[t.label]))
|
|
3858
3872
|
}, [
|
|
@@ -3875,7 +3889,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3875
3889
|
2
|
|
3876
3890
|
/* CLASS */
|
|
3877
3891
|
)
|
|
3878
|
-
], 10, H0)) :
|
|
3892
|
+
], 10, H0)) : V("v-if", !0)
|
|
3879
3893
|
], 42, S0))
|
|
3880
3894
|
])),
|
|
3881
3895
|
256
|
|
@@ -3888,7 +3902,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3888
3902
|
ref: "tags"
|
|
3889
3903
|
},
|
|
3890
3904
|
[
|
|
3891
|
-
|
|
3905
|
+
V(" Used for measuring search width "),
|
|
3892
3906
|
u(
|
|
3893
3907
|
"span",
|
|
3894
3908
|
{
|
|
@@ -3898,7 +3912,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3898
3912
|
3
|
|
3899
3913
|
/* TEXT, CLASS */
|
|
3900
3914
|
),
|
|
3901
|
-
|
|
3915
|
+
V(" Actual search input "),
|
|
3902
3916
|
t.searchable && !t.disabled ? (c(), C("input", H1({
|
|
3903
3917
|
key: 0,
|
|
3904
3918
|
type: t.inputType,
|
|
@@ -3920,7 +3934,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
3920
3934
|
}, {
|
|
3921
3935
|
...t.attrs,
|
|
3922
3936
|
...s.arias
|
|
3923
|
-
}), null, 16, E0)) :
|
|
3937
|
+
}), null, 16, E0)) : V("v-if", !0)
|
|
3924
3938
|
],
|
|
3925
3939
|
2
|
|
3926
3940
|
/* CLASS */
|
|
@@ -3928,8 +3942,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
3928
3942
|
],
|
|
3929
3943
|
2
|
|
3930
3944
|
/* CLASS */
|
|
3931
|
-
)) :
|
|
3932
|
-
|
|
3945
|
+
)) : V("v-if", !0),
|
|
3946
|
+
V(" Single label "),
|
|
3933
3947
|
t.mode == "single" && s.hasSelected && !s.search && s.iv ? K(s.$slots, "singlelabel", {
|
|
3934
3948
|
key: 2,
|
|
3935
3949
|
value: s.iv
|
|
@@ -3953,8 +3967,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
3953
3967
|
2
|
|
3954
3968
|
/* CLASS */
|
|
3955
3969
|
)
|
|
3956
|
-
]) :
|
|
3957
|
-
|
|
3970
|
+
]) : V("v-if", !0),
|
|
3971
|
+
V(" Multiple label "),
|
|
3958
3972
|
t.mode == "multiple" && s.hasSelected && !s.search ? K(s.$slots, "multiplelabel", {
|
|
3959
3973
|
key: 3,
|
|
3960
3974
|
values: s.iv
|
|
@@ -3963,8 +3977,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
3963
3977
|
class: N(s.classList.multipleLabel),
|
|
3964
3978
|
innerHTML: s.multipleLabelText
|
|
3965
3979
|
}, null, 10, A0)
|
|
3966
|
-
]) :
|
|
3967
|
-
|
|
3980
|
+
]) : V("v-if", !0),
|
|
3981
|
+
V(" Placeholder "),
|
|
3968
3982
|
t.placeholder && !s.hasSelected && !s.search ? K(s.$slots, "placeholder", { key: 4 }, () => [
|
|
3969
3983
|
u(
|
|
3970
3984
|
"div",
|
|
@@ -3976,8 +3990,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
3976
3990
|
3
|
|
3977
3991
|
/* TEXT, CLASS */
|
|
3978
3992
|
)
|
|
3979
|
-
]) :
|
|
3980
|
-
|
|
3993
|
+
]) : V("v-if", !0),
|
|
3994
|
+
V(" Spinner "),
|
|
3981
3995
|
t.loading || s.resolving ? K(s.$slots, "spinner", { key: 5 }, () => [
|
|
3982
3996
|
u(
|
|
3983
3997
|
"span",
|
|
@@ -3989,8 +4003,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
3989
4003
|
2
|
|
3990
4004
|
/* CLASS */
|
|
3991
4005
|
)
|
|
3992
|
-
]) :
|
|
3993
|
-
|
|
4006
|
+
]) : V("v-if", !0),
|
|
4007
|
+
V(" Clear "),
|
|
3994
4008
|
s.hasSelected && !t.disabled && t.canClear && !s.busy ? K(s.$slots, "clear", {
|
|
3995
4009
|
key: 6,
|
|
3996
4010
|
clear: s.clear
|
|
@@ -4005,7 +4019,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4005
4019
|
"aria-roledescription": "❎",
|
|
4006
4020
|
class: N(s.classList.clear),
|
|
4007
4021
|
onClick: e[6] || (e[6] = (...l) => s.clear && s.clear(...l)),
|
|
4008
|
-
onKeyup: e[7] || (e[7] =
|
|
4022
|
+
onKeyup: e[7] || (e[7] = Be((...l) => s.clear && s.clear(...l), ["enter"]))
|
|
4009
4023
|
},
|
|
4010
4024
|
[
|
|
4011
4025
|
u(
|
|
@@ -4021,8 +4035,8 @@ function z0(s, e, t, n, a, i) {
|
|
|
4021
4035
|
34
|
|
4022
4036
|
/* CLASS, HYDRATE_EVENTS */
|
|
4023
4037
|
)
|
|
4024
|
-
]) :
|
|
4025
|
-
|
|
4038
|
+
]) : V("v-if", !0),
|
|
4039
|
+
V(" Caret "),
|
|
4026
4040
|
t.caret && t.showOptions ? K(s.$slots, "caret", { key: 7 }, () => [
|
|
4027
4041
|
u(
|
|
4028
4042
|
"span",
|
|
@@ -4035,9 +4049,9 @@ function z0(s, e, t, n, a, i) {
|
|
|
4035
4049
|
2
|
|
4036
4050
|
/* CLASS */
|
|
4037
4051
|
)
|
|
4038
|
-
]) :
|
|
4039
|
-
], 16,
|
|
4040
|
-
|
|
4052
|
+
]) : V("v-if", !0)
|
|
4053
|
+
], 16, V0),
|
|
4054
|
+
V(" Options "),
|
|
4041
4055
|
u(
|
|
4042
4056
|
"div",
|
|
4043
4057
|
{
|
|
@@ -4054,7 +4068,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4054
4068
|
t.groups ? (c(!0), C(
|
|
4055
4069
|
m1,
|
|
4056
4070
|
{ key: 0 },
|
|
4057
|
-
|
|
4071
|
+
V1(s.fg, (l, o, d) => (c(), C("li", {
|
|
4058
4072
|
class: N(s.classList.group),
|
|
4059
4073
|
key: d,
|
|
4060
4074
|
id: s.ariaGroupId(l),
|
|
@@ -4062,7 +4076,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4062
4076
|
"aria-selected": s.isSelected(l),
|
|
4063
4077
|
role: "option"
|
|
4064
4078
|
}, [
|
|
4065
|
-
l.__CREATE__ ?
|
|
4079
|
+
l.__CREATE__ ? V("v-if", !0) : (c(), C("div", {
|
|
4066
4080
|
key: 0,
|
|
4067
4081
|
class: N(s.classList.groupLabel(l)),
|
|
4068
4082
|
"data-pointed": s.isPointed(l),
|
|
@@ -4087,7 +4101,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4087
4101
|
(c(!0), C(
|
|
4088
4102
|
m1,
|
|
4089
4103
|
null,
|
|
4090
|
-
|
|
4104
|
+
V1(l.__VISIBLE__, (h, p, I) => (c(), C("li", {
|
|
4091
4105
|
class: N(s.classList.option(h, l)),
|
|
4092
4106
|
"data-pointed": s.isPointed(h),
|
|
4093
4107
|
"data-selected": s.isSelected(h) || void 0,
|
|
@@ -4113,7 +4127,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4113
4127
|
/* TEXT */
|
|
4114
4128
|
)
|
|
4115
4129
|
])
|
|
4116
|
-
], 42,
|
|
4130
|
+
], 42, P0))),
|
|
4117
4131
|
128
|
|
4118
4132
|
/* KEYED_FRAGMENT */
|
|
4119
4133
|
))
|
|
@@ -4124,7 +4138,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4124
4138
|
)) : (c(!0), C(
|
|
4125
4139
|
m1,
|
|
4126
4140
|
{ key: 1 },
|
|
4127
|
-
|
|
4141
|
+
V1(s.fo, (l, o, d) => (c(), C("li", {
|
|
4128
4142
|
class: N(s.classList.option(l)),
|
|
4129
4143
|
"data-pointed": s.isPointed(l),
|
|
4130
4144
|
"data-selected": s.isSelected(l) || void 0,
|
|
@@ -4150,7 +4164,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4150
4164
|
/* TEXT */
|
|
4151
4165
|
)
|
|
4152
4166
|
])
|
|
4153
|
-
], 42,
|
|
4167
|
+
], 42, D0))),
|
|
4154
4168
|
128
|
|
4155
4169
|
/* KEYED_FRAGMENT */
|
|
4156
4170
|
))
|
|
@@ -4160,13 +4174,13 @@ function z0(s, e, t, n, a, i) {
|
|
|
4160
4174
|
class: N(s.classList.noOptions),
|
|
4161
4175
|
innerHTML: s.localize(t.noOptionsText)
|
|
4162
4176
|
}, null, 10, N0)
|
|
4163
|
-
]) :
|
|
4177
|
+
]) : V("v-if", !0),
|
|
4164
4178
|
s.noResults ? K(s.$slots, "noresults", { key: 1 }, () => [
|
|
4165
4179
|
u("div", {
|
|
4166
4180
|
class: N(s.classList.noResults),
|
|
4167
4181
|
innerHTML: s.localize(t.noResultsText)
|
|
4168
4182
|
}, null, 10, R0)
|
|
4169
|
-
]) :
|
|
4183
|
+
]) : V("v-if", !0),
|
|
4170
4184
|
t.infinite && s.hasMore ? (c(), C(
|
|
4171
4185
|
"div",
|
|
4172
4186
|
{
|
|
@@ -4189,21 +4203,21 @@ function z0(s, e, t, n, a, i) {
|
|
|
4189
4203
|
],
|
|
4190
4204
|
2
|
|
4191
4205
|
/* CLASS */
|
|
4192
|
-
)) :
|
|
4206
|
+
)) : V("v-if", !0),
|
|
4193
4207
|
K(s.$slots, "afterlist", { options: s.fo })
|
|
4194
4208
|
],
|
|
4195
4209
|
2
|
|
4196
4210
|
/* CLASS */
|
|
4197
4211
|
),
|
|
4198
|
-
|
|
4212
|
+
V(" Hacky input element to show HTML5 required warning "),
|
|
4199
4213
|
t.required ? (c(), C("input", {
|
|
4200
4214
|
key: 0,
|
|
4201
4215
|
class: N(s.classList.fakeInput),
|
|
4202
4216
|
tabindex: "-1",
|
|
4203
4217
|
value: s.textValue,
|
|
4204
4218
|
required: ""
|
|
4205
|
-
}, null, 10, U0)) :
|
|
4206
|
-
|
|
4219
|
+
}, null, 10, U0)) : V("v-if", !0),
|
|
4220
|
+
V(" Native input support "),
|
|
4207
4221
|
t.nativeSupport ? (c(), C(
|
|
4208
4222
|
m1,
|
|
4209
4223
|
{ key: 1 },
|
|
@@ -4216,7 +4230,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4216
4230
|
}, null, 8, q0)) : (c(!0), C(
|
|
4217
4231
|
m1,
|
|
4218
4232
|
{ key: 1 },
|
|
4219
|
-
|
|
4233
|
+
V1(s.plainValue, (l, o) => (c(), C("input", {
|
|
4220
4234
|
type: "hidden",
|
|
4221
4235
|
name: `${t.name}[]`,
|
|
4222
4236
|
value: l,
|
|
@@ -4228,15 +4242,15 @@ function z0(s, e, t, n, a, i) {
|
|
|
4228
4242
|
],
|
|
4229
4243
|
64
|
|
4230
4244
|
/* STABLE_FRAGMENT */
|
|
4231
|
-
)) :
|
|
4232
|
-
|
|
4245
|
+
)) : V("v-if", !0),
|
|
4246
|
+
V(" Screen reader assistive text "),
|
|
4233
4247
|
t.searchable && s.hasSelected ? (c(), C("div", {
|
|
4234
4248
|
key: 2,
|
|
4235
4249
|
class: N(s.classList.assist),
|
|
4236
4250
|
id: s.ariaAssist,
|
|
4237
4251
|
"aria-hidden": "true"
|
|
4238
|
-
}, z(s.ariaLabel), 11, K0)) :
|
|
4239
|
-
|
|
4252
|
+
}, z(s.ariaLabel), 11, K0)) : V("v-if", !0),
|
|
4253
|
+
V(" Create height for empty input "),
|
|
4240
4254
|
u(
|
|
4241
4255
|
"div",
|
|
4242
4256
|
{
|
|
@@ -4246,7 +4260,7 @@ function z0(s, e, t, n, a, i) {
|
|
|
4246
4260
|
2
|
|
4247
4261
|
/* CLASS */
|
|
4248
4262
|
)
|
|
4249
|
-
], 42,
|
|
4263
|
+
], 42, L0);
|
|
4250
4264
|
}
|
|
4251
4265
|
h1.render = z0;
|
|
4252
4266
|
h1.__file = "src/Multiselect.vue";
|
|
@@ -4265,7 +4279,7 @@ const x0 = { class: "ao-modal__wrapper" }, G0 = { class: "ao-modal" }, F0 = { cl
|
|
|
4265
4279
|
u("div", G0, [
|
|
4266
4280
|
u("div", F0, [
|
|
4267
4281
|
u("div", Y0, [
|
|
4268
|
-
|
|
4282
|
+
P(B1, {
|
|
4269
4283
|
"icon-name": "CloseRounded",
|
|
4270
4284
|
variant: "ghost",
|
|
4271
4285
|
color: "primary",
|
|
@@ -4274,7 +4288,7 @@ const x0 = { class: "ao-modal__wrapper" }, G0 = { class: "ao-modal" }, F0 = { cl
|
|
|
4274
4288
|
]),
|
|
4275
4289
|
e.$slots.header ? (c(), C("header", X0, [
|
|
4276
4290
|
K(e.$slots, "header")
|
|
4277
|
-
])) :
|
|
4291
|
+
])) : V("", !0)
|
|
4278
4292
|
]),
|
|
4279
4293
|
u("div", W0, [
|
|
4280
4294
|
K(e.$slots, "default")
|
|
@@ -4380,8 +4394,8 @@ const J0 = {
|
|
|
4380
4394
|
onClose: y[7] || (y[7] = (S) => _.$emit("close"))
|
|
4381
4395
|
}, {
|
|
4382
4396
|
header: x(() => [
|
|
4383
|
-
_.breadcrumbs ? (c(), C("div", J0, z(_.breadcrumbs), 1)) :
|
|
4384
|
-
|
|
4397
|
+
_.breadcrumbs ? (c(), C("div", J0, z(_.breadcrumbs), 1)) : V("", !0),
|
|
4398
|
+
P(I1, {
|
|
4385
4399
|
title: _.activity.name || _.activity.id,
|
|
4386
4400
|
level: 4
|
|
4387
4401
|
}, null, 8, ["title"])
|
|
@@ -4437,7 +4451,7 @@ const J0 = {
|
|
|
4437
4451
|
type: "checkbox"
|
|
4438
4452
|
}, null, 512), [
|
|
4439
4453
|
[
|
|
4440
|
-
|
|
4454
|
+
Lt,
|
|
4441
4455
|
i.value,
|
|
4442
4456
|
void 0,
|
|
4443
4457
|
{ lazy: !0 }
|
|
@@ -4448,7 +4462,7 @@ const J0 = {
|
|
|
4448
4462
|
u("div", ui, [
|
|
4449
4463
|
u("label", ci, [
|
|
4450
4464
|
u("span", di, z(_.$t("activity.type.label")), 1),
|
|
4451
|
-
|
|
4465
|
+
P(s1(h1), {
|
|
4452
4466
|
modelValue: l.value,
|
|
4453
4467
|
"onUpdate:modelValue": y[3] || (y[3] = (S) => l.value = S),
|
|
4454
4468
|
class: "ao-field__multiselect",
|
|
@@ -4462,8 +4476,8 @@ const J0 = {
|
|
|
4462
4476
|
]),
|
|
4463
4477
|
u("fieldset", Ci, [
|
|
4464
4478
|
u("div", hi, [
|
|
4465
|
-
|
|
4466
|
-
|
|
4479
|
+
P(g1, { name: "FlowsheetOutlineRounded" }),
|
|
4480
|
+
P(I1, {
|
|
4467
4481
|
level: 4,
|
|
4468
4482
|
title: "Dependencies"
|
|
4469
4483
|
})
|
|
@@ -4471,7 +4485,7 @@ const J0 = {
|
|
|
4471
4485
|
u("div", fi, [
|
|
4472
4486
|
u("label", pi, [
|
|
4473
4487
|
u("span", vi, z(_.$t("activity.dependingOn.label")), 1),
|
|
4474
|
-
|
|
4488
|
+
P(s1(h1), {
|
|
4475
4489
|
modelValue: d.value,
|
|
4476
4490
|
"onUpdate:modelValue": y[4] || (y[4] = (S) => d.value = S),
|
|
4477
4491
|
class: "ao-field__multiselect",
|
|
@@ -4485,7 +4499,7 @@ const J0 = {
|
|
|
4485
4499
|
u("div", _i, [
|
|
4486
4500
|
u("label", mi, [
|
|
4487
4501
|
u("span", gi, z(_.$t("activity.blocking.label")), 1),
|
|
4488
|
-
|
|
4502
|
+
P(s1(h1), {
|
|
4489
4503
|
modelValue: p.value,
|
|
4490
4504
|
"onUpdate:modelValue": y[5] || (y[5] = (S) => p.value = S),
|
|
4491
4505
|
class: "ao-field__multiselect",
|
|
@@ -4499,7 +4513,7 @@ const J0 = {
|
|
|
4499
4513
|
u("div", bi, [
|
|
4500
4514
|
u("label", wi, [
|
|
4501
4515
|
u("span", yi, z(_.$t("activity.dependingMilestone.label")), 1),
|
|
4502
|
-
|
|
4516
|
+
P(s1(h1), {
|
|
4503
4517
|
modelValue: T.value,
|
|
4504
4518
|
"onUpdate:modelValue": y[6] || (y[6] = (S) => T.value = S),
|
|
4505
4519
|
class: "ao-field__multiselect",
|
|
@@ -4519,7 +4533,7 @@ const J0 = {
|
|
|
4519
4533
|
}));
|
|
4520
4534
|
}
|
|
4521
4535
|
});
|
|
4522
|
-
const
|
|
4536
|
+
const Li = /* @__PURE__ */ X({
|
|
4523
4537
|
__name: "AoRuleLine",
|
|
4524
4538
|
props: {
|
|
4525
4539
|
rule: {},
|
|
@@ -4531,35 +4545,35 @@ const Vi = /* @__PURE__ */ X({
|
|
|
4531
4545
|
emits: ["update:rule", "close"],
|
|
4532
4546
|
setup(s, { emit: e }) {
|
|
4533
4547
|
const t = s, n = ge(
|
|
4534
|
-
t.rule.subItemType ||
|
|
4548
|
+
t.rule.subItemType || i1.ACTIVITIES
|
|
4535
4549
|
), a = v({
|
|
4536
4550
|
get() {
|
|
4537
4551
|
return n.value;
|
|
4538
4552
|
},
|
|
4539
|
-
set(
|
|
4540
|
-
n.value =
|
|
4553
|
+
set(L) {
|
|
4554
|
+
n.value = L, e("update:rule", {
|
|
4541
4555
|
...t.rule,
|
|
4542
|
-
subItemType:
|
|
4556
|
+
subItemType: L,
|
|
4543
4557
|
subItemId: void 0
|
|
4544
4558
|
});
|
|
4545
4559
|
}
|
|
4546
|
-
}), i = v(() => Object.values(
|
|
4560
|
+
}), i = v(() => Object.values(i1)), l = v({
|
|
4547
4561
|
get() {
|
|
4548
4562
|
return t.rule.subItemId;
|
|
4549
4563
|
},
|
|
4550
|
-
set(
|
|
4564
|
+
set(L) {
|
|
4551
4565
|
e("update:rule", {
|
|
4552
4566
|
...t.rule,
|
|
4553
|
-
subItemId:
|
|
4567
|
+
subItemId: L,
|
|
4554
4568
|
subItemType: t.rule.subItemType || a.value
|
|
4555
4569
|
});
|
|
4556
4570
|
}
|
|
4557
4571
|
}), o = v(() => {
|
|
4558
4572
|
var f;
|
|
4559
4573
|
return !t.templateActivities || !t.templateMilestones || !t.templatePhases ? null : (f = {
|
|
4560
|
-
[
|
|
4561
|
-
[
|
|
4562
|
-
[
|
|
4574
|
+
[i1.ACTIVITIES]: t.templateActivities,
|
|
4575
|
+
[i1.MILESTONES]: t.templateMilestones,
|
|
4576
|
+
[i1.PHASES]: t.templatePhases
|
|
4563
4577
|
}[n.value]) == null ? void 0 : f.map((E) => ({
|
|
4564
4578
|
value: E.id,
|
|
4565
4579
|
label: E.name
|
|
@@ -4568,49 +4582,49 @@ const Vi = /* @__PURE__ */ X({
|
|
|
4568
4582
|
get() {
|
|
4569
4583
|
return d.value;
|
|
4570
4584
|
},
|
|
4571
|
-
set(
|
|
4572
|
-
e("update:rule", { ...t.rule, comparator:
|
|
4585
|
+
set(L) {
|
|
4586
|
+
e("update:rule", { ...t.rule, comparator: L });
|
|
4573
4587
|
}
|
|
4574
4588
|
}), p = v(() => Object.values(e0)), I = ge(t.rule.trigger), O = v({
|
|
4575
4589
|
get() {
|
|
4576
4590
|
return I.value;
|
|
4577
4591
|
},
|
|
4578
|
-
set(
|
|
4579
|
-
e("update:rule", { ...t.rule, trigger:
|
|
4592
|
+
set(L) {
|
|
4593
|
+
e("update:rule", { ...t.rule, trigger: L });
|
|
4580
4594
|
}
|
|
4581
4595
|
}), T = v(() => Object.values(t0)), _ = v({
|
|
4582
4596
|
get() {
|
|
4583
4597
|
return t.rule.duration;
|
|
4584
4598
|
},
|
|
4585
|
-
set(
|
|
4586
|
-
e("update:rule", { ...t.rule, duration:
|
|
4599
|
+
set(L) {
|
|
4600
|
+
e("update:rule", { ...t.rule, duration: L });
|
|
4587
4601
|
}
|
|
4588
4602
|
}), y = v({
|
|
4589
4603
|
get() {
|
|
4590
4604
|
return t.rule.durationUnit;
|
|
4591
4605
|
},
|
|
4592
|
-
set(
|
|
4593
|
-
e("update:rule", { ...t.rule, durationUnit:
|
|
4606
|
+
set(L) {
|
|
4607
|
+
e("update:rule", { ...t.rule, durationUnit: L });
|
|
4594
4608
|
}
|
|
4595
4609
|
}), S = v(() => Object.values(s0));
|
|
4596
|
-
return (
|
|
4610
|
+
return (L, f) => (c(), j(x1(L.tagName), { class: "ao-rule-line" }, {
|
|
4597
4611
|
default: x(() => [
|
|
4598
|
-
|
|
4612
|
+
P(s1(h1), {
|
|
4599
4613
|
modelValue: a.value,
|
|
4600
4614
|
"onUpdate:modelValue": f[0] || (f[0] = (E) => a.value = E),
|
|
4601
4615
|
options: i.value
|
|
4602
4616
|
}, null, 8, ["modelValue", "options"]),
|
|
4603
|
-
|
|
4617
|
+
P(s1(h1), {
|
|
4604
4618
|
modelValue: l.value,
|
|
4605
4619
|
"onUpdate:modelValue": f[1] || (f[1] = (E) => l.value = E),
|
|
4606
4620
|
options: o.value
|
|
4607
4621
|
}, null, 8, ["modelValue", "options"]),
|
|
4608
|
-
|
|
4622
|
+
P(s1(h1), {
|
|
4609
4623
|
modelValue: O.value,
|
|
4610
4624
|
"onUpdate:modelValue": f[2] || (f[2] = (E) => O.value = E),
|
|
4611
4625
|
options: T.value
|
|
4612
4626
|
}, null, 8, ["modelValue", "options"]),
|
|
4613
|
-
|
|
4627
|
+
P(s1(h1), {
|
|
4614
4628
|
modelValue: h.value,
|
|
4615
4629
|
"onUpdate:modelValue": f[3] || (f[3] = (E) => h.value = E),
|
|
4616
4630
|
options: p.value
|
|
@@ -4627,23 +4641,23 @@ const Vi = /* @__PURE__ */ X({
|
|
|
4627
4641
|
{ number: !0 }
|
|
4628
4642
|
]
|
|
4629
4643
|
]),
|
|
4630
|
-
|
|
4644
|
+
P(s1(h1), {
|
|
4631
4645
|
modelValue: y.value,
|
|
4632
4646
|
"onUpdate:modelValue": f[5] || (f[5] = (E) => y.value = E),
|
|
4633
4647
|
options: S.value
|
|
4634
4648
|
}, null, 8, ["modelValue", "options"]),
|
|
4635
|
-
|
|
4649
|
+
P(B1, {
|
|
4636
4650
|
class: "ao-rule-line__remove",
|
|
4637
4651
|
"icon-name": "CloseRounded",
|
|
4638
4652
|
variant: "ghost",
|
|
4639
|
-
onClick: f[6] || (f[6] = (E) =>
|
|
4653
|
+
onClick: f[6] || (f[6] = (E) => L.$emit("close"))
|
|
4640
4654
|
})
|
|
4641
4655
|
]),
|
|
4642
4656
|
_: 1
|
|
4643
4657
|
}));
|
|
4644
4658
|
}
|
|
4645
4659
|
});
|
|
4646
|
-
const
|
|
4660
|
+
const Vi = { class: "ao-template-rules__body" }, Ii = { class: "ao-template-rules__list" }, Si = /* @__PURE__ */ X({
|
|
4647
4661
|
__name: "AoTemplateRules",
|
|
4648
4662
|
props: {
|
|
4649
4663
|
templateId: {},
|
|
@@ -4661,15 +4675,15 @@ const Li = { class: "ao-template-rules__body" }, Ii = { class: "ao-template-rule
|
|
|
4661
4675
|
};
|
|
4662
4676
|
return (a, i) => (c(), j(We, null, {
|
|
4663
4677
|
header: x(() => [
|
|
4664
|
-
|
|
4678
|
+
P(I1, {
|
|
4665
4679
|
title: a.$t("template.rules.title"),
|
|
4666
4680
|
level: 2
|
|
4667
4681
|
}, null, 8, ["title"])
|
|
4668
4682
|
]),
|
|
4669
4683
|
default: x(() => [
|
|
4670
|
-
u("div",
|
|
4684
|
+
u("div", Vi, [
|
|
4671
4685
|
u("ul", Ii, [
|
|
4672
|
-
(c(!0), C(m1, null,
|
|
4686
|
+
(c(!0), C(m1, null, V1(a.rules, (l) => (c(), j(Li, {
|
|
4673
4687
|
key: l.id,
|
|
4674
4688
|
rule: l,
|
|
4675
4689
|
"template-phases": a.templatePhases,
|
|
@@ -4679,7 +4693,7 @@ const Li = { class: "ao-template-rules__body" }, Ii = { class: "ao-template-rule
|
|
|
4679
4693
|
onClose: () => n(l.id)
|
|
4680
4694
|
}, null, 8, ["rule", "template-phases", "template-milestones", "template-activities", "onClose"]))), 128))
|
|
4681
4695
|
]),
|
|
4682
|
-
|
|
4696
|
+
P(ue, {
|
|
4683
4697
|
label: a.$t("template.rules.add"),
|
|
4684
4698
|
"icon-name": "Add",
|
|
4685
4699
|
onClick: t
|
|
@@ -4690,7 +4704,7 @@ const Li = { class: "ao-template-rules__body" }, Ii = { class: "ao-template-rule
|
|
|
4690
4704
|
}));
|
|
4691
4705
|
}
|
|
4692
4706
|
});
|
|
4693
|
-
var
|
|
4707
|
+
var Re;
|
|
4694
4708
|
function Je() {
|
|
4695
4709
|
const s = Hi(), e = s.appContext.config.globalProperties;
|
|
4696
4710
|
return {
|
|
@@ -4715,10 +4729,10 @@ X({
|
|
|
4715
4729
|
return () => {
|
|
4716
4730
|
const t = s.translation, n = [];
|
|
4717
4731
|
let a, i = 0;
|
|
4718
|
-
for (; (a =
|
|
4732
|
+
for (; (a = Re.exec(t)) !== null; ) {
|
|
4719
4733
|
n.push(t.substring(i, a.index));
|
|
4720
4734
|
const l = e[a[1]];
|
|
4721
|
-
l ? n.push(...l()) : n.push(a[0]), i =
|
|
4735
|
+
l ? n.push(...l()) : n.push(a[0]), i = Re.lastIndex;
|
|
4722
4736
|
}
|
|
4723
4737
|
return n.push(t.substring(i)), n;
|
|
4724
4738
|
};
|
|
@@ -4727,7 +4741,7 @@ X({
|
|
|
4727
4741
|
const Ei = {
|
|
4728
4742
|
key: 0,
|
|
4729
4743
|
class: "ao-template-details"
|
|
4730
|
-
}, Ai = { class: "ao-template-details__body" }, Ti = { class: "ao-template-details__cols" }, Oi = { class: "ao-template-details__col" }, ki = { class: "ao-list__footer" }, Zi = { class: "ao-template-details__col" }, Bi = { class: "ao-template-details__col" },
|
|
4744
|
+
}, Ai = { class: "ao-template-details__body" }, Ti = { class: "ao-template-details__cols" }, Oi = { class: "ao-template-details__col" }, ki = { class: "ao-list__footer" }, Zi = { class: "ao-template-details__col" }, Bi = { class: "ao-template-details__col" }, Pi = /* @__PURE__ */ X({
|
|
4731
4745
|
__name: "AoTemplateDetails",
|
|
4732
4746
|
props: {
|
|
4733
4747
|
templateId: {},
|
|
@@ -4747,41 +4761,41 @@ const Ei = {
|
|
|
4747
4761
|
);
|
|
4748
4762
|
v({
|
|
4749
4763
|
get() {
|
|
4750
|
-
var
|
|
4751
|
-
return [...((
|
|
4764
|
+
var k;
|
|
4765
|
+
return [...((k = a.value) == null ? void 0 : k.phases) || []].sort(($, B) => $.order - B.order);
|
|
4752
4766
|
},
|
|
4753
4767
|
set(m) {
|
|
4754
|
-
const M = m.map((
|
|
4768
|
+
const M = m.map((k, $) => (k.order = $, k));
|
|
4755
4769
|
e("updateTemplate", { id: t.templateId, phases: M });
|
|
4756
4770
|
}
|
|
4757
4771
|
});
|
|
4758
4772
|
const i = v(() => {
|
|
4759
4773
|
var m, M;
|
|
4760
|
-
return (M = (m = a == null ? void 0 : a.value) == null ? void 0 : m.phases) == null ? void 0 : M.find((
|
|
4774
|
+
return (M = (m = a == null ? void 0 : a.value) == null ? void 0 : m.phases) == null ? void 0 : M.find((k) => k.id === t.phaseId);
|
|
4761
4775
|
}), l = v(() => {
|
|
4762
4776
|
var m, M;
|
|
4763
4777
|
return (M = (m = i.value) == null ? void 0 : m.milestones) == null ? void 0 : M.find(
|
|
4764
|
-
(
|
|
4778
|
+
(k) => k.id === t.milestoneId
|
|
4765
4779
|
);
|
|
4766
4780
|
}), o = v(() => {
|
|
4767
4781
|
var m, M;
|
|
4768
|
-
return ((M = (m = a.value) == null ? void 0 : m.phases) == null ? void 0 : M.reduce((
|
|
4769
|
-
const
|
|
4770
|
-
return [...
|
|
4782
|
+
return ((M = (m = a.value) == null ? void 0 : m.phases) == null ? void 0 : M.reduce((k, $) => {
|
|
4783
|
+
const B = $.milestones || [];
|
|
4784
|
+
return [...k, ...B];
|
|
4771
4785
|
}, [])) || [];
|
|
4772
4786
|
}), d = v(() => {
|
|
4773
4787
|
var m, M;
|
|
4774
|
-
return ((M = (m = a.value) == null ? void 0 : m.phases) == null ? void 0 : M.reduce((
|
|
4788
|
+
return ((M = (m = a.value) == null ? void 0 : m.phases) == null ? void 0 : M.reduce((k, $) => {
|
|
4775
4789
|
const l1 = ($.milestones || []).reduce(
|
|
4776
4790
|
(n1, C1) => C1.activities ? [...n1, ...C1.activities] : n1,
|
|
4777
4791
|
[]
|
|
4778
4792
|
);
|
|
4779
|
-
return [...
|
|
4793
|
+
return [...k, ...l1];
|
|
4780
4794
|
}, [])) || [];
|
|
4781
4795
|
}), h = v(() => {
|
|
4782
4796
|
var m, M;
|
|
4783
4797
|
return (M = (m = l.value) == null ? void 0 : m.activities) == null ? void 0 : M.find(
|
|
4784
|
-
(
|
|
4798
|
+
(k) => k.id === t.activityId
|
|
4785
4799
|
);
|
|
4786
4800
|
}), p = v(() => {
|
|
4787
4801
|
var m;
|
|
@@ -4795,13 +4809,13 @@ const Ei = {
|
|
|
4795
4809
|
}), O = W(!1), T = () => {
|
|
4796
4810
|
if (!a.value)
|
|
4797
4811
|
return;
|
|
4798
|
-
const m = a.value.phases.length, M = a.value.phases.at(-1),
|
|
4812
|
+
const m = a.value.phases.length, M = a.value.phases.at(-1), k = M ? f1.LexoRank.parse(M.rank).genNext() : f1.LexoRank.middle(), $ = {
|
|
4799
4813
|
name: n("template.defaultName.phase", { idx: m + 1 }),
|
|
4800
|
-
rank:
|
|
4814
|
+
rank: k.format(),
|
|
4801
4815
|
templateId: t.templateId
|
|
4802
4816
|
};
|
|
4803
4817
|
e("addItem", {
|
|
4804
|
-
type:
|
|
4818
|
+
type: i1.PHASES,
|
|
4805
4819
|
templateId: t.templateId,
|
|
4806
4820
|
item: $
|
|
4807
4821
|
});
|
|
@@ -4809,7 +4823,7 @@ const Ei = {
|
|
|
4809
4823
|
e("updateItem", {
|
|
4810
4824
|
templateId: t.templateId,
|
|
4811
4825
|
id: m,
|
|
4812
|
-
|
|
4826
|
+
itemType: i1.PHASES,
|
|
4813
4827
|
data: { name: M }
|
|
4814
4828
|
});
|
|
4815
4829
|
}, y = (m) => {
|
|
@@ -4817,40 +4831,40 @@ const Ei = {
|
|
|
4817
4831
|
}, S = (m) => {
|
|
4818
4832
|
if (!i.value)
|
|
4819
4833
|
return;
|
|
4820
|
-
const M = i.value.milestones.length,
|
|
4834
|
+
const M = i.value.milestones.length, k = i.value.milestones.at(-1), $ = k ? f1.LexoRank.parse(k.rank).genNext() : f1.LexoRank.middle(), B = {
|
|
4821
4835
|
name: n("template.defaultName.milestone", { idx: M + 1 }),
|
|
4822
4836
|
rank: $.format(),
|
|
4823
4837
|
phaseId: m.phaseId
|
|
4824
4838
|
};
|
|
4825
4839
|
e("addItem", {
|
|
4826
|
-
type:
|
|
4840
|
+
type: i1.MILESTONES,
|
|
4827
4841
|
templateId: t.templateId,
|
|
4828
4842
|
phaseId: m.phaseId,
|
|
4829
|
-
item:
|
|
4843
|
+
item: B
|
|
4830
4844
|
});
|
|
4831
|
-
},
|
|
4832
|
-
const { id: M, ...
|
|
4845
|
+
}, L = (m) => {
|
|
4846
|
+
const { id: M, ...k } = m;
|
|
4833
4847
|
e("updateItem", {
|
|
4834
|
-
|
|
4848
|
+
itemType: i1.MILESTONES,
|
|
4835
4849
|
id: M,
|
|
4836
4850
|
templateId: t.templateId,
|
|
4837
|
-
data:
|
|
4851
|
+
data: k
|
|
4838
4852
|
});
|
|
4839
4853
|
}, f = (m) => {
|
|
4840
|
-
const { phaseId: M, milestoneId:
|
|
4854
|
+
const { phaseId: M, milestoneId: k } = m;
|
|
4841
4855
|
e("addItem", {
|
|
4842
|
-
type:
|
|
4856
|
+
type: i1.ACTIVITIES,
|
|
4843
4857
|
templateId: t.templateId,
|
|
4844
4858
|
phaseId: M,
|
|
4845
|
-
milestoneId:
|
|
4859
|
+
milestoneId: k
|
|
4846
4860
|
});
|
|
4847
4861
|
}, E = (m) => {
|
|
4848
|
-
const { id: M, ...
|
|
4862
|
+
const { id: M, ...k } = m;
|
|
4849
4863
|
e("updateItem", {
|
|
4850
|
-
|
|
4864
|
+
itemType: i1.ACTIVITIES,
|
|
4851
4865
|
id: M,
|
|
4852
4866
|
templateId: t.templateId,
|
|
4853
|
-
data:
|
|
4867
|
+
data: k
|
|
4854
4868
|
});
|
|
4855
4869
|
}, G = W(!1), Q = () => {
|
|
4856
4870
|
G.value = !G.value;
|
|
@@ -4859,27 +4873,28 @@ const Ei = {
|
|
|
4859
4873
|
}, e1 = (m) => {
|
|
4860
4874
|
e("removeRule", { id: m, templateId: t.templateId });
|
|
4861
4875
|
}, t1 = (m) => {
|
|
4876
|
+
var M;
|
|
4862
4877
|
if (m.moved) {
|
|
4863
|
-
const
|
|
4878
|
+
const k = Le(m, ((M = a.value) == null ? void 0 : M.phases) ?? []);
|
|
4864
4879
|
e("updateItem", {
|
|
4865
|
-
|
|
4866
|
-
id: element.id,
|
|
4880
|
+
itemType: i1.PHASES,
|
|
4881
|
+
id: m.moved.element.id,
|
|
4867
4882
|
templateId: t.templateId,
|
|
4868
4883
|
data: {
|
|
4869
|
-
rank:
|
|
4884
|
+
rank: k
|
|
4870
4885
|
}
|
|
4871
4886
|
});
|
|
4872
4887
|
}
|
|
4873
4888
|
};
|
|
4874
4889
|
return (m, M) => {
|
|
4875
|
-
var
|
|
4890
|
+
var k, $, B, l1, n1, C1;
|
|
4876
4891
|
return a.value ? (c(), C("div", Ei, [
|
|
4877
|
-
|
|
4892
|
+
P(Xe, {
|
|
4878
4893
|
"can-go-back": !0,
|
|
4879
4894
|
onGoBack: M[2] || (M[2] = (U) => m.$router.push({ name: s1(z1).TEMPLATES_LIST }))
|
|
4880
4895
|
}, {
|
|
4881
4896
|
primary: x(() => [
|
|
4882
|
-
|
|
4897
|
+
P(I1, {
|
|
4883
4898
|
title: I.value,
|
|
4884
4899
|
level: 2,
|
|
4885
4900
|
"is-editing": O.value,
|
|
@@ -4892,7 +4907,7 @@ const Ei = {
|
|
|
4892
4907
|
}, null, 8, ["title", "is-editing"])
|
|
4893
4908
|
]),
|
|
4894
4909
|
secondary: x(() => [
|
|
4895
|
-
|
|
4910
|
+
P(B1, {
|
|
4896
4911
|
label: m.$t("template.rules.edit"),
|
|
4897
4912
|
color: "primary",
|
|
4898
4913
|
"icon-name": "Settings",
|
|
@@ -4905,15 +4920,15 @@ const Ei = {
|
|
|
4905
4920
|
u("div", Ai, [
|
|
4906
4921
|
u("ol", Ti, [
|
|
4907
4922
|
u("li", Oi, [
|
|
4908
|
-
|
|
4909
|
-
|
|
4923
|
+
P(s1(ae), {
|
|
4924
|
+
"model-value": a.value.phases,
|
|
4910
4925
|
class: "ao-templates__list",
|
|
4911
4926
|
"item-key": "id",
|
|
4912
4927
|
handle: ".ao-card__drag",
|
|
4913
4928
|
onChange: t1
|
|
4914
4929
|
}, {
|
|
4915
4930
|
header: x(() => [
|
|
4916
|
-
|
|
4931
|
+
P(I1, {
|
|
4917
4932
|
title: m.$t("template.phases.title"),
|
|
4918
4933
|
level: 3,
|
|
4919
4934
|
class: "ao-list__title"
|
|
@@ -4922,7 +4937,7 @@ const Ei = {
|
|
|
4922
4937
|
item: x(({ element: U }) => {
|
|
4923
4938
|
var S1;
|
|
4924
4939
|
return [
|
|
4925
|
-
|
|
4940
|
+
P(Jn, {
|
|
4926
4941
|
id: U.id,
|
|
4927
4942
|
name: U.name,
|
|
4928
4943
|
milestones: U.milestones,
|
|
@@ -4939,7 +4954,7 @@ const Ei = {
|
|
|
4939
4954
|
}),
|
|
4940
4955
|
footer: x(() => [
|
|
4941
4956
|
u("div", ki, [
|
|
4942
|
-
|
|
4957
|
+
P(ue, {
|
|
4943
4958
|
"icon-name": "AddBoxOutlineRounded",
|
|
4944
4959
|
label: m.$t("template.phases.add"),
|
|
4945
4960
|
onClick: T
|
|
@@ -4947,18 +4962,18 @@ const Ei = {
|
|
|
4947
4962
|
])
|
|
4948
4963
|
]),
|
|
4949
4964
|
_: 1
|
|
4950
|
-
}, 8, ["
|
|
4965
|
+
}, 8, ["model-value"])
|
|
4951
4966
|
]),
|
|
4952
4967
|
u("li", Zi, [
|
|
4953
4968
|
i.value ? (c(), j(n0, {
|
|
4954
4969
|
key: 0,
|
|
4955
4970
|
"template-id": m.templateId,
|
|
4956
4971
|
phase: i.value,
|
|
4957
|
-
"milestone-id": (
|
|
4972
|
+
"milestone-id": (k = l.value) == null ? void 0 : k.id,
|
|
4958
4973
|
onAddMilestone: S,
|
|
4959
|
-
onUpdateMilestone:
|
|
4974
|
+
onUpdateMilestone: L,
|
|
4960
4975
|
onUpdatePhase: y
|
|
4961
|
-
}, null, 8, ["template-id", "phase", "milestone-id"])) :
|
|
4976
|
+
}, null, 8, ["template-id", "phase", "milestone-id"])) : V("", !0)
|
|
4962
4977
|
]),
|
|
4963
4978
|
u("li", Bi, [
|
|
4964
4979
|
i.value && l.value ? (c(), j(r0, {
|
|
@@ -4966,15 +4981,15 @@ const Ei = {
|
|
|
4966
4981
|
"template-id": m.templateId,
|
|
4967
4982
|
"phase-id": ($ = i.value) == null ? void 0 : $.id,
|
|
4968
4983
|
milestone: l.value,
|
|
4969
|
-
"activity-id": (
|
|
4984
|
+
"activity-id": (B = h.value) == null ? void 0 : B.id,
|
|
4970
4985
|
onAddActivity: f,
|
|
4971
4986
|
onUpdateActivity: E,
|
|
4972
|
-
onUpdateMilestone:
|
|
4973
|
-
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) :
|
|
4987
|
+
onUpdateMilestone: L
|
|
4988
|
+
}, null, 8, ["template-id", "phase-id", "milestone", "activity-id"])) : V("", !0)
|
|
4974
4989
|
])
|
|
4975
4990
|
])
|
|
4976
4991
|
]),
|
|
4977
|
-
(c(), j(
|
|
4992
|
+
(c(), j(Pe, { to: "body" }, [
|
|
4978
4993
|
h.value ? (c(), j(Mi, {
|
|
4979
4994
|
key: 0,
|
|
4980
4995
|
activity: h.value,
|
|
@@ -4993,9 +5008,9 @@ const Ei = {
|
|
|
4993
5008
|
});
|
|
4994
5009
|
}),
|
|
4995
5010
|
onClose: m.$router.back
|
|
4996
|
-
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) :
|
|
5011
|
+
}, null, 8, ["activity", "activity-types", "breadcrumbs", "milestone-id", "template-activities", "template-milestones", "onClose"])) : V("", !0)
|
|
4997
5012
|
])),
|
|
4998
|
-
(c(), j(
|
|
5013
|
+
(c(), j(Pe, { to: "body" }, [
|
|
4999
5014
|
G.value ? (c(), j(Si, {
|
|
5000
5015
|
key: 0,
|
|
5001
5016
|
"template-id": a.value.id,
|
|
@@ -5006,9 +5021,9 @@ const Ei = {
|
|
|
5006
5021
|
onClose: Q,
|
|
5007
5022
|
onAddRule: H,
|
|
5008
5023
|
onRemoveRule: e1
|
|
5009
|
-
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) :
|
|
5024
|
+
}, null, 8, ["template-id", "rules", "template-phases", "template-milestones", "template-activities"])) : V("", !0)
|
|
5010
5025
|
]))
|
|
5011
|
-
])) :
|
|
5026
|
+
])) : V("", !0);
|
|
5012
5027
|
};
|
|
5013
5028
|
}
|
|
5014
5029
|
});
|
|
@@ -5030,12 +5045,12 @@ const z1 = {
|
|
|
5030
5045
|
{
|
|
5031
5046
|
path: ":templateId/:phaseId?/:milestoneId?/:activityId?",
|
|
5032
5047
|
name: z1.TEMPLATE_DETAILS,
|
|
5033
|
-
component:
|
|
5048
|
+
component: Pi,
|
|
5034
5049
|
props: !0
|
|
5035
5050
|
}
|
|
5036
5051
|
]
|
|
5037
5052
|
}
|
|
5038
|
-
],
|
|
5053
|
+
], Di = { class: "ao-templates" }, Ni = /* @__PURE__ */ X({
|
|
5039
5054
|
__name: "AoTemplatesList",
|
|
5040
5055
|
props: {
|
|
5041
5056
|
templates: {}
|
|
@@ -5051,21 +5066,21 @@ const z1 = {
|
|
|
5051
5066
|
e("addTemplate", h);
|
|
5052
5067
|
}, i = (l) => {
|
|
5053
5068
|
if (l.moved) {
|
|
5054
|
-
const o =
|
|
5069
|
+
const o = Le(l, t.templates);
|
|
5055
5070
|
e("updateItem", {
|
|
5056
|
-
|
|
5057
|
-
id: element.id,
|
|
5058
|
-
templateId: element.id,
|
|
5071
|
+
itemType: i1.TEMPLATES,
|
|
5072
|
+
id: l.moved.element.id,
|
|
5073
|
+
templateId: l.moved.element.id,
|
|
5059
5074
|
data: {
|
|
5060
5075
|
rank: o
|
|
5061
5076
|
}
|
|
5062
5077
|
});
|
|
5063
5078
|
}
|
|
5064
5079
|
};
|
|
5065
|
-
return (l, o) => (c(), C("div",
|
|
5066
|
-
|
|
5080
|
+
return (l, o) => (c(), C("div", Di, [
|
|
5081
|
+
P(Xe, null, {
|
|
5067
5082
|
secondary: x(() => [
|
|
5068
|
-
|
|
5083
|
+
P(B1, {
|
|
5069
5084
|
label: l.$t("templates.new"),
|
|
5070
5085
|
color: "primary",
|
|
5071
5086
|
"icon-name": "Add",
|
|
@@ -5075,8 +5090,8 @@ const z1 = {
|
|
|
5075
5090
|
]),
|
|
5076
5091
|
_: 1
|
|
5077
5092
|
}),
|
|
5078
|
-
|
|
5079
|
-
|
|
5093
|
+
P(s1(ae), {
|
|
5094
|
+
"model-value": l.templates,
|
|
5080
5095
|
class: "ao-templates__list",
|
|
5081
5096
|
"item-key": "id",
|
|
5082
5097
|
handle: ".ao-card__drag",
|
|
@@ -5085,7 +5100,7 @@ const z1 = {
|
|
|
5085
5100
|
item: x(({ element: d }) => {
|
|
5086
5101
|
var h;
|
|
5087
5102
|
return [
|
|
5088
|
-
|
|
5103
|
+
P(jn, {
|
|
5089
5104
|
title: d.name || d.id,
|
|
5090
5105
|
phases: d.phases,
|
|
5091
5106
|
milestones: (h = d.phases) != null && h.length ? s1(gn)(d.phases) : 0,
|
|
@@ -5100,12 +5115,12 @@ const z1 = {
|
|
|
5100
5115
|
];
|
|
5101
5116
|
}),
|
|
5102
5117
|
_: 1
|
|
5103
|
-
}, 8, ["
|
|
5118
|
+
}, 8, ["model-value"])
|
|
5104
5119
|
]));
|
|
5105
5120
|
}
|
|
5106
5121
|
});
|
|
5107
5122
|
export {
|
|
5108
|
-
|
|
5123
|
+
Pi as AoTemplateDetails,
|
|
5109
5124
|
Ki as AoTemplates,
|
|
5110
5125
|
Ni as AoTemplatesList,
|
|
5111
5126
|
a0 as TemplateSubItemTypeEnum,
|
|
@@ -5119,5 +5134,5 @@ export {
|
|
|
5119
5134
|
e0 as ruleComparators,
|
|
5120
5135
|
s0 as ruleDurationUnits,
|
|
5121
5136
|
t0 as ruleTriggerTypes,
|
|
5122
|
-
|
|
5137
|
+
i1 as templateItemType
|
|
5123
5138
|
};
|