@maltjoy/core-vue 1.0.0-rc.3 → 3.4.4
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/README.md +1 -0
- package/dist/joy-vue.js +218 -209
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/joy-vue.js
CHANGED
|
@@ -272,7 +272,7 @@ const Vt = /* @__PURE__ */ V($t, [["__scopeId", "data-v-44b223fb"]]), xt = ["ari
|
|
|
272
272
|
], 8, xt));
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) => (te("data-v-
|
|
275
|
+
const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) => (te("data-v-9aab3fa1"), e = e(), le(), e), Ct = { class: "joy-counter" }, Pt = ["aria-label", "disabled"], Jt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
|
|
276
276
|
name: "minus",
|
|
277
277
|
color: "teal",
|
|
278
278
|
lazy: !1
|
|
@@ -287,7 +287,10 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
|
|
|
287
287
|
], Rt = {
|
|
288
288
|
key: 0,
|
|
289
289
|
class: "joy-counter_error"
|
|
290
|
-
}, Mt =
|
|
290
|
+
}, Mt = {
|
|
291
|
+
inheritAttrs: !1
|
|
292
|
+
}, Nt = /* @__PURE__ */ $({
|
|
293
|
+
...Mt,
|
|
291
294
|
__name: "VJoyCounter",
|
|
292
295
|
props: {
|
|
293
296
|
/** Removes any interactivity */
|
|
@@ -453,7 +456,7 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
|
|
|
453
456
|
]));
|
|
454
457
|
}
|
|
455
458
|
});
|
|
456
|
-
const
|
|
459
|
+
const Ht = /* @__PURE__ */ V(Nt, [["__scopeId", "data-v-9aab3fa1"]]);
|
|
457
460
|
var _e;
|
|
458
461
|
const U = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
|
|
459
462
|
}, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
@@ -468,7 +471,7 @@ function Ke(e, l) {
|
|
|
468
471
|
}
|
|
469
472
|
return t;
|
|
470
473
|
}
|
|
471
|
-
function
|
|
474
|
+
function Wt(e, l = {}) {
|
|
472
475
|
let t, o, a = z;
|
|
473
476
|
const r = (n) => {
|
|
474
477
|
clearTimeout(n), a(), a = z;
|
|
@@ -484,7 +487,7 @@ function Ht(e, l = {}) {
|
|
|
484
487
|
});
|
|
485
488
|
};
|
|
486
489
|
}
|
|
487
|
-
function
|
|
490
|
+
function Ut(e, l = !0, t = !0, o = !1) {
|
|
488
491
|
let a = 0, r, s = !0, n = z, c;
|
|
489
492
|
const f = () => {
|
|
490
493
|
r && (clearTimeout(r), r = void 0, n(), n = z);
|
|
@@ -503,19 +506,19 @@ const R = {
|
|
|
503
506
|
updated: "updated",
|
|
504
507
|
unmounted: "unmounted"
|
|
505
508
|
};
|
|
506
|
-
function
|
|
509
|
+
function Gt(e) {
|
|
507
510
|
return e;
|
|
508
511
|
}
|
|
509
512
|
function G(e) {
|
|
510
513
|
return nt() ? (at(e), !0) : !1;
|
|
511
514
|
}
|
|
512
|
-
function
|
|
513
|
-
return Ke(
|
|
515
|
+
function Kt(e, l = 200, t = {}) {
|
|
516
|
+
return Ke(Wt(l, t), e);
|
|
514
517
|
}
|
|
515
|
-
function
|
|
516
|
-
return Ke(
|
|
518
|
+
function Qt(e, l = 200, t = !1, o = !0, a = !1) {
|
|
519
|
+
return Ke(Ut(l, t, o, a), e);
|
|
517
520
|
}
|
|
518
|
-
function
|
|
521
|
+
function Zt(e) {
|
|
519
522
|
return typeof e == "function" ? I(e) : g(e);
|
|
520
523
|
}
|
|
521
524
|
function Qe(e, l = !0) {
|
|
@@ -545,7 +548,7 @@ function ae(...e) {
|
|
|
545
548
|
return G(f), f;
|
|
546
549
|
}
|
|
547
550
|
let we = !1;
|
|
548
|
-
function
|
|
551
|
+
function Yt(e, l, t = {}) {
|
|
549
552
|
const { window: o = be, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
|
|
550
553
|
if (!o)
|
|
551
554
|
return;
|
|
@@ -581,26 +584,26 @@ function Zt(e, l, t = {}) {
|
|
|
581
584
|
].filter(Boolean);
|
|
582
585
|
return () => u.forEach((i) => i());
|
|
583
586
|
}
|
|
584
|
-
function
|
|
587
|
+
function Xt(e, l = !1) {
|
|
585
588
|
const t = g(), o = () => t.value = Boolean(e());
|
|
586
589
|
return o(), Qe(o, l), t;
|
|
587
590
|
}
|
|
588
591
|
const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
|
|
589
592
|
ie[re] = ie[re] || {};
|
|
590
593
|
ie[re];
|
|
591
|
-
var Se = Object.getOwnPropertySymbols,
|
|
594
|
+
var Se = Object.getOwnPropertySymbols, el = Object.prototype.hasOwnProperty, tl = Object.prototype.propertyIsEnumerable, ll = (e, l) => {
|
|
592
595
|
var t = {};
|
|
593
596
|
for (var o in e)
|
|
594
|
-
|
|
597
|
+
el.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
|
|
595
598
|
if (e != null && Se)
|
|
596
599
|
for (var o of Se(e))
|
|
597
|
-
l.indexOf(o) < 0 &&
|
|
600
|
+
l.indexOf(o) < 0 && tl.call(e, o) && (t[o] = e[o]);
|
|
598
601
|
return t;
|
|
599
602
|
};
|
|
600
|
-
function
|
|
601
|
-
const o = t, { window: a = be } = o, r =
|
|
603
|
+
function ol(e, l, t = {}) {
|
|
604
|
+
const o = t, { window: a = be } = o, r = ll(o, ["window"]);
|
|
602
605
|
let s;
|
|
603
|
-
const n =
|
|
606
|
+
const n = Xt(() => a && "ResizeObserver" in a), c = () => {
|
|
604
607
|
s && (s.disconnect(), s = void 0);
|
|
605
608
|
}, f = C(() => H(e), (m) => {
|
|
606
609
|
c(), n.value && a && m && (s = new ResizeObserver(l), s.observe(m, r));
|
|
@@ -616,27 +619,27 @@ var je;
|
|
|
616
619
|
(function(e) {
|
|
617
620
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
618
621
|
})(je || (je = {}));
|
|
619
|
-
function
|
|
622
|
+
function nl(e) {
|
|
620
623
|
const l = g(e == null ? void 0 : e.element), t = g(e == null ? void 0 : e.input);
|
|
621
624
|
function o() {
|
|
622
625
|
var a, r;
|
|
623
626
|
l.value && (l.value.style.height = "1px", l.value.style.height = `${(a = l.value) == null ? void 0 : a.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
|
|
624
627
|
}
|
|
625
|
-
return C([t, l], o, { immediate: !0 }),
|
|
628
|
+
return C([t, l], o, { immediate: !0 }), ol(l, () => o()), e != null && e.watch && C(e.watch, o, { immediate: !0, deep: !0 }), {
|
|
626
629
|
textarea: l,
|
|
627
630
|
input: t,
|
|
628
631
|
triggerResize: o
|
|
629
632
|
};
|
|
630
633
|
}
|
|
631
|
-
var
|
|
634
|
+
var al = Object.defineProperty, ke = Object.getOwnPropertySymbols, il = Object.prototype.hasOwnProperty, rl = Object.prototype.propertyIsEnumerable, $e = (e, l, t) => l in e ? al(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, sl = (e, l) => {
|
|
632
635
|
for (var t in l || (l = {}))
|
|
633
|
-
|
|
636
|
+
il.call(l, t) && $e(e, t, l[t]);
|
|
634
637
|
if (ke)
|
|
635
638
|
for (var t of ke(l))
|
|
636
|
-
|
|
639
|
+
rl.call(l, t) && $e(e, t, l[t]);
|
|
637
640
|
return e;
|
|
638
641
|
};
|
|
639
|
-
const
|
|
642
|
+
const ul = {
|
|
640
643
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
641
644
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
642
645
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -662,16 +665,16 @@ const sl = {
|
|
|
662
665
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
663
666
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
664
667
|
};
|
|
665
|
-
|
|
666
|
-
linear:
|
|
667
|
-
},
|
|
668
|
-
const
|
|
668
|
+
sl({
|
|
669
|
+
linear: Gt
|
|
670
|
+
}, ul);
|
|
671
|
+
const dl = /* @__PURE__ */ $({
|
|
669
672
|
name: "OnClickOutside",
|
|
670
673
|
props: ["as", "options"],
|
|
671
674
|
emits: ["trigger"],
|
|
672
675
|
setup(e, { slots: l, emit: t }) {
|
|
673
676
|
const o = g();
|
|
674
|
-
return
|
|
677
|
+
return Yt(o, (a) => {
|
|
675
678
|
t("trigger", a);
|
|
676
679
|
}, e.options), () => {
|
|
677
680
|
if (l.default)
|
|
@@ -737,25 +740,25 @@ function xe(e, l, t = {}) {
|
|
|
737
740
|
return () => u.forEach((i) => i());
|
|
738
741
|
}
|
|
739
742
|
R.mounted + "", R.unmounted + "";
|
|
740
|
-
const
|
|
743
|
+
const cl = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
|
|
741
744
|
function Oe(...e) {
|
|
742
745
|
let l, t, o = {};
|
|
743
746
|
e.length === 3 ? (l = e[0], t = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], o = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
|
|
744
|
-
const { target: a = M, eventName: r = "keydown", passive: s = !1 } = o, n =
|
|
747
|
+
const { target: a = M, eventName: r = "keydown", passive: s = !1 } = o, n = cl(l);
|
|
745
748
|
return A(a, r, (f) => {
|
|
746
749
|
n(f) && t(f);
|
|
747
750
|
}, s);
|
|
748
751
|
}
|
|
749
|
-
var
|
|
752
|
+
var fl = Object.defineProperty, Ie = Object.getOwnPropertySymbols, yl = Object.prototype.hasOwnProperty, ml = Object.prototype.propertyIsEnumerable, Be = (e, l, t) => l in e ? fl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, vl = (e, l) => {
|
|
750
753
|
for (var t in l || (l = {}))
|
|
751
|
-
|
|
754
|
+
yl.call(l, t) && Be(e, t, l[t]);
|
|
752
755
|
if (Ie)
|
|
753
756
|
for (var t of Ie(l))
|
|
754
|
-
|
|
757
|
+
ml.call(l, t) && Be(e, t, l[t]);
|
|
755
758
|
return e;
|
|
756
759
|
};
|
|
757
760
|
R.mounted + "";
|
|
758
|
-
const
|
|
761
|
+
const pl = 500;
|
|
759
762
|
function Ee(e, l, t) {
|
|
760
763
|
var o, a;
|
|
761
764
|
const r = I(() => J(e));
|
|
@@ -765,7 +768,7 @@ function Ee(e, l, t) {
|
|
|
765
768
|
}
|
|
766
769
|
function c(u) {
|
|
767
770
|
var m, i, y, d;
|
|
768
|
-
(m = t == null ? void 0 : t.modifiers) != null && m.self && u.target !== r.value || (n(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (y = t == null ? void 0 : t.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => l(u), (d = t == null ? void 0 : t.delay) != null ? d :
|
|
771
|
+
(m = t == null ? void 0 : t.modifiers) != null && m.self && u.target !== r.value || (n(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (y = t == null ? void 0 : t.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => l(u), (d = t == null ? void 0 : t.delay) != null ? d : pl));
|
|
769
772
|
}
|
|
770
773
|
const f = {
|
|
771
774
|
capture: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.capture,
|
|
@@ -781,7 +784,7 @@ function Ze(e, l = !1) {
|
|
|
781
784
|
const t = g(), o = () => t.value = Boolean(e());
|
|
782
785
|
return o(), Qe(o, l), t;
|
|
783
786
|
}
|
|
784
|
-
function
|
|
787
|
+
function hl(e, l = {}) {
|
|
785
788
|
const t = l ? l.delayEnter : 0, o = l ? l.delayLeave : 0, a = g(!1);
|
|
786
789
|
let r;
|
|
787
790
|
const s = (n) => {
|
|
@@ -791,17 +794,17 @@ function pl(e, l = {}) {
|
|
|
791
794
|
return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), a;
|
|
792
795
|
}
|
|
793
796
|
R.mounted + "";
|
|
794
|
-
var Le = Object.getOwnPropertySymbols,
|
|
797
|
+
var Le = Object.getOwnPropertySymbols, bl = Object.prototype.hasOwnProperty, gl = Object.prototype.propertyIsEnumerable, _l = (e, l) => {
|
|
795
798
|
var t = {};
|
|
796
799
|
for (var o in e)
|
|
797
|
-
|
|
800
|
+
bl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
|
|
798
801
|
if (e != null && Le)
|
|
799
802
|
for (var o of Le(e))
|
|
800
|
-
l.indexOf(o) < 0 &&
|
|
803
|
+
l.indexOf(o) < 0 && gl.call(e, o) && (t[o] = e[o]);
|
|
801
804
|
return t;
|
|
802
805
|
};
|
|
803
|
-
function
|
|
804
|
-
const o = t, { window: a = M } = o, r =
|
|
806
|
+
function wl(e, l, t = {}) {
|
|
807
|
+
const o = t, { window: a = M } = o, r = _l(o, ["window"]);
|
|
805
808
|
let s;
|
|
806
809
|
const n = Ze(() => a && "ResizeObserver" in a), c = () => {
|
|
807
810
|
s && (s.disconnect(), s = void 0);
|
|
@@ -815,12 +818,12 @@ function _l(e, l, t = {}) {
|
|
|
815
818
|
stop: u
|
|
816
819
|
};
|
|
817
820
|
}
|
|
818
|
-
function
|
|
821
|
+
function Sl(e, l = { width: 0, height: 0 }, t = {}) {
|
|
819
822
|
const { window: o = M, box: a = "content-box" } = t, r = I(() => {
|
|
820
823
|
var c, f;
|
|
821
824
|
return (f = (c = J(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
822
825
|
}), s = g(l.width), n = g(l.height);
|
|
823
|
-
return
|
|
826
|
+
return wl(e, ([c]) => {
|
|
824
827
|
const f = a === "border-box" ? c.borderBoxSize : a === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
|
|
825
828
|
if (o && r.value) {
|
|
826
829
|
const u = J(e);
|
|
@@ -913,13 +916,13 @@ function de(e, l = {}) {
|
|
|
913
916
|
bottom: !1
|
|
914
917
|
}), Y = (B) => {
|
|
915
918
|
d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, a(B));
|
|
916
|
-
}, oe =
|
|
919
|
+
}, oe = Kt(Y, t + o), O = (B) => {
|
|
917
920
|
const q = B.target === document ? B.target.documentElement : B.target, D = q.scrollLeft;
|
|
918
921
|
S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + q.clientWidth >= q.scrollWidth - (s.right || 0) - Pe, f.value = D;
|
|
919
922
|
let F = q.scrollTop;
|
|
920
923
|
B.target === document && !F && (F = document.body.scrollTop), S.top = F < u.value, S.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + q.clientHeight >= q.scrollHeight - (s.bottom || 0) - Pe, u.value = F, d.value = !0, oe(B), r(B);
|
|
921
924
|
};
|
|
922
|
-
return A(e, "scroll", t ?
|
|
925
|
+
return A(e, "scroll", t ? Qt(O, t, !0, !1) : O, n), A(e, "scrollend", Y, n), {
|
|
923
926
|
x: m,
|
|
924
927
|
y: i,
|
|
925
928
|
isScrolling: d,
|
|
@@ -927,17 +930,17 @@ function de(e, l = {}) {
|
|
|
927
930
|
directions: S
|
|
928
931
|
};
|
|
929
932
|
}
|
|
930
|
-
var
|
|
933
|
+
var jl = Object.defineProperty, kl = Object.defineProperties, $l = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Vl = Object.prototype.hasOwnProperty, xl = Object.prototype.propertyIsEnumerable, Te = (e, l, t) => l in e ? jl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, qe = (e, l) => {
|
|
931
934
|
for (var t in l || (l = {}))
|
|
932
|
-
|
|
935
|
+
Vl.call(l, t) && Te(e, t, l[t]);
|
|
933
936
|
if (Je)
|
|
934
937
|
for (var t of Je(l))
|
|
935
|
-
|
|
938
|
+
xl.call(l, t) && Te(e, t, l[t]);
|
|
936
939
|
return e;
|
|
937
|
-
},
|
|
940
|
+
}, Ol = (e, l) => kl(e, $l(l));
|
|
938
941
|
function ze(e, l, t = {}) {
|
|
939
942
|
var o, a;
|
|
940
|
-
const r = (o = t.direction) != null ? o : "bottom", s = X(de(e,
|
|
943
|
+
const r = (o = t.direction) != null ? o : "bottom", s = X(de(e, Ol(qe({}, t), {
|
|
941
944
|
offset: qe({
|
|
942
945
|
[r]: (a = t.distance) != null ? a : 0
|
|
943
946
|
}, t.offset)
|
|
@@ -990,14 +993,14 @@ function Ae(e, l, t = {}) {
|
|
|
990
993
|
};
|
|
991
994
|
}
|
|
992
995
|
R.mounted + "";
|
|
993
|
-
var
|
|
996
|
+
var Il = Object.defineProperty, Bl = Object.defineProperties, El = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Ll = Object.prototype.hasOwnProperty, Cl = Object.prototype.propertyIsEnumerable, De = (e, l, t) => l in e ? Il(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Pl = (e, l) => {
|
|
994
997
|
for (var t in l || (l = {}))
|
|
995
|
-
|
|
998
|
+
Ll.call(l, t) && De(e, t, l[t]);
|
|
996
999
|
if (Fe)
|
|
997
1000
|
for (var t of Fe(l))
|
|
998
|
-
|
|
1001
|
+
Cl.call(l, t) && De(e, t, l[t]);
|
|
999
1002
|
return e;
|
|
1000
|
-
},
|
|
1003
|
+
}, Jl = (e, l) => Bl(e, El(l));
|
|
1001
1004
|
R.mounted + "";
|
|
1002
1005
|
function Ye(e) {
|
|
1003
1006
|
const l = window.getComputedStyle(e);
|
|
@@ -1008,14 +1011,14 @@ function Ye(e) {
|
|
|
1008
1011
|
return !t || t.tagName === "BODY" ? !1 : Ye(t);
|
|
1009
1012
|
}
|
|
1010
1013
|
}
|
|
1011
|
-
function
|
|
1014
|
+
function Tl(e) {
|
|
1012
1015
|
const l = e || window.event, t = l.target;
|
|
1013
1016
|
return Ye(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
|
|
1014
1017
|
}
|
|
1015
|
-
function
|
|
1018
|
+
function ql(e, l = !1) {
|
|
1016
1019
|
const t = g(l);
|
|
1017
1020
|
let o = null, a;
|
|
1018
|
-
C(
|
|
1021
|
+
C(Zt(e), (n) => {
|
|
1019
1022
|
if (n) {
|
|
1020
1023
|
const c = n;
|
|
1021
1024
|
a = c.style.overflow, t.value && (c.style.overflow = "hidden");
|
|
@@ -1026,7 +1029,7 @@ function Tl(e, l = !1) {
|
|
|
1026
1029
|
const r = () => {
|
|
1027
1030
|
const n = P(e);
|
|
1028
1031
|
!n || t.value || (ee && (o = A(n, "touchmove", (c) => {
|
|
1029
|
-
|
|
1032
|
+
Tl(c);
|
|
1030
1033
|
}, { passive: !1 })), n.style.overflow = "hidden", t.value = !0);
|
|
1031
1034
|
}, s = () => {
|
|
1032
1035
|
const n = P(e);
|
|
@@ -1041,25 +1044,25 @@ function Tl(e, l = !1) {
|
|
|
1041
1044
|
}
|
|
1042
1045
|
});
|
|
1043
1046
|
}
|
|
1044
|
-
const
|
|
1047
|
+
const zl = () => {
|
|
1045
1048
|
let e = !1;
|
|
1046
1049
|
const l = g(!1);
|
|
1047
1050
|
return (t, o) => {
|
|
1048
1051
|
if (l.value = o.value, e)
|
|
1049
1052
|
return;
|
|
1050
1053
|
e = !0;
|
|
1051
|
-
const a =
|
|
1054
|
+
const a = ql(t, o.value);
|
|
1052
1055
|
C(l, (r) => a.value = r);
|
|
1053
1056
|
};
|
|
1054
1057
|
};
|
|
1055
|
-
|
|
1056
|
-
const Xe = ["medium", "small"],
|
|
1058
|
+
zl();
|
|
1059
|
+
const Xe = ["medium", "small"], Al = {
|
|
1057
1060
|
key: 0,
|
|
1058
1061
|
class: "joy-dropdown-list__header"
|
|
1059
|
-
},
|
|
1062
|
+
}, Fl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Dl = {
|
|
1060
1063
|
key: 1,
|
|
1061
1064
|
class: "joy-dropdown-list__footer"
|
|
1062
|
-
},
|
|
1065
|
+
}, Rl = /* @__PURE__ */ $({
|
|
1063
1066
|
__name: "VJoyDropdownList",
|
|
1064
1067
|
props: {
|
|
1065
1068
|
/**
|
|
@@ -1144,7 +1147,7 @@ const Xe = ["medium", "small"], zl = {
|
|
|
1144
1147
|
class: "joy-dropdown-list",
|
|
1145
1148
|
style: K({ width: `${e.width}px`, "max-width": `${e.width}px` })
|
|
1146
1149
|
}, [
|
|
1147
|
-
i.$slots["dropdown-list-header"] ? (v(), p("header",
|
|
1150
|
+
i.$slots["dropdown-list-header"] ? (v(), p("header", Al, [
|
|
1148
1151
|
b(i.$slots, "dropdown-list-header", {}, void 0, !0)
|
|
1149
1152
|
])) : w("", !0),
|
|
1150
1153
|
h("div", {
|
|
@@ -1182,17 +1185,17 @@ const Xe = ["medium", "small"], zl = {
|
|
|
1182
1185
|
b(i.$slots, "label", ve(pe(d)), () => [
|
|
1183
1186
|
h("span", null, x(d.label), 1)
|
|
1184
1187
|
], !0)
|
|
1185
|
-
], 14,
|
|
1188
|
+
], 14, Fl))), 128))
|
|
1186
1189
|
], 512)) : w("", !0)
|
|
1187
1190
|
], 6),
|
|
1188
|
-
i.$slots["dropdown-list-footer"] ? (v(), p("footer",
|
|
1191
|
+
i.$slots["dropdown-list-footer"] ? (v(), p("footer", Dl, [
|
|
1189
1192
|
b(i.$slots, "dropdown-list-footer", {}, void 0, !0)
|
|
1190
1193
|
])) : w("", !0)
|
|
1191
1194
|
], 4));
|
|
1192
1195
|
}
|
|
1193
1196
|
});
|
|
1194
|
-
const et = /* @__PURE__ */ V(
|
|
1195
|
-
function
|
|
1197
|
+
const et = /* @__PURE__ */ V(Rl, [["__scopeId", "data-v-63134a7f"]]);
|
|
1198
|
+
function Ml(e) {
|
|
1196
1199
|
const l = () => e();
|
|
1197
1200
|
Z(() => {
|
|
1198
1201
|
window.addEventListener("resize", l);
|
|
@@ -1200,7 +1203,7 @@ function Rl(e) {
|
|
|
1200
1203
|
window.removeEventListener("resize", l);
|
|
1201
1204
|
});
|
|
1202
1205
|
}
|
|
1203
|
-
const
|
|
1206
|
+
const Nl = /* @__PURE__ */ $({
|
|
1204
1207
|
__name: "VJoyDropdown",
|
|
1205
1208
|
props: {
|
|
1206
1209
|
/** DOM valid selector to give to Vue3 Teleport "to" property */
|
|
@@ -1309,9 +1312,9 @@ const Ml = /* @__PURE__ */ $({
|
|
|
1309
1312
|
function oe(O) {
|
|
1310
1313
|
t("update:modelValue", O), o.closeOnSelect && (y(), S());
|
|
1311
1314
|
}
|
|
1312
|
-
return
|
|
1315
|
+
return Ml(y), l({
|
|
1313
1316
|
showDropdownList: a
|
|
1314
|
-
}), (O, B) => (v(), T(_(
|
|
1317
|
+
}), (O, B) => (v(), T(_(dl), {
|
|
1315
1318
|
ref_key: "dropdown",
|
|
1316
1319
|
ref: r,
|
|
1317
1320
|
options: u,
|
|
@@ -1393,10 +1396,10 @@ const Ml = /* @__PURE__ */ $({
|
|
|
1393
1396
|
}, 512));
|
|
1394
1397
|
}
|
|
1395
1398
|
});
|
|
1396
|
-
const
|
|
1399
|
+
const Hl = /* @__PURE__ */ V(Nl, [["__scopeId", "data-v-2657fbc4"]]), Wl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Ul = ["aria-hidden"], Gl = /* @__PURE__ */ Wl(() => /* @__PURE__ */ h("joy-icon", {
|
|
1397
1400
|
"custom-class": "joy-icon-error",
|
|
1398
1401
|
name: "warning-triangle"
|
|
1399
|
-
}, null, -1)),
|
|
1402
|
+
}, null, -1)), Kl = /* @__PURE__ */ $({
|
|
1400
1403
|
__name: "VJoyFormError",
|
|
1401
1404
|
props: {
|
|
1402
1405
|
/** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
|
|
@@ -1413,17 +1416,17 @@ const Nl = /* @__PURE__ */ V(Ml, [["__scopeId", "data-v-2657fbc4"]]), Hl = (e) =
|
|
|
1413
1416
|
class: k(["joy-form-error", { "joy-has-error": e.visible }]),
|
|
1414
1417
|
role: "alert"
|
|
1415
1418
|
}, [
|
|
1416
|
-
|
|
1419
|
+
Gl,
|
|
1417
1420
|
h("div", null, [
|
|
1418
1421
|
b(l.$slots, "default", {}, () => [
|
|
1419
1422
|
L(x(e.noHtmlErrorText), 1)
|
|
1420
1423
|
], !0)
|
|
1421
1424
|
])
|
|
1422
|
-
], 10,
|
|
1425
|
+
], 10, Ul));
|
|
1423
1426
|
}
|
|
1424
1427
|
});
|
|
1425
|
-
const tt = /* @__PURE__ */ V(
|
|
1426
|
-
function
|
|
1428
|
+
const tt = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-50e209d6"]]);
|
|
1429
|
+
function Ql(e) {
|
|
1427
1430
|
let l;
|
|
1428
1431
|
switch (e) {
|
|
1429
1432
|
case "error":
|
|
@@ -1437,7 +1440,7 @@ function Kl(e) {
|
|
|
1437
1440
|
}
|
|
1438
1441
|
return l;
|
|
1439
1442
|
}
|
|
1440
|
-
const
|
|
1443
|
+
const Zl = [...bt], Yl = ["name"], Xl = { class: "joy-highlight--text" }, eo = /* @__PURE__ */ $({
|
|
1441
1444
|
__name: "VJoyHighlight",
|
|
1442
1445
|
props: {
|
|
1443
1446
|
accent: {
|
|
@@ -1453,12 +1456,12 @@ const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /
|
|
|
1453
1456
|
type: String,
|
|
1454
1457
|
default: "neutral",
|
|
1455
1458
|
validator(e) {
|
|
1456
|
-
return
|
|
1459
|
+
return Zl.includes(e);
|
|
1457
1460
|
}
|
|
1458
1461
|
}
|
|
1459
1462
|
},
|
|
1460
1463
|
setup(e, { expose: l }) {
|
|
1461
|
-
const t = e, o = I(() => t.icon ? t.icon :
|
|
1464
|
+
const t = e, o = I(() => t.icon ? t.icon : Ql(t.level));
|
|
1462
1465
|
return l({
|
|
1463
1466
|
getRelevantIcon: o
|
|
1464
1467
|
}), (a, r) => (v(), p("div", {
|
|
@@ -1474,8 +1477,8 @@ const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /
|
|
|
1474
1477
|
e.displayIcon ? (v(), p("joy-icon", {
|
|
1475
1478
|
key: 0,
|
|
1476
1479
|
name: _(o)
|
|
1477
|
-
}, null, 8,
|
|
1478
|
-
h("div",
|
|
1480
|
+
}, null, 8, Yl)) : w("", !0),
|
|
1481
|
+
h("div", Xl, [
|
|
1479
1482
|
h("strong", null, [
|
|
1480
1483
|
b(a.$slots, "highlight-title", {}, void 0, !0)
|
|
1481
1484
|
]),
|
|
@@ -1484,20 +1487,20 @@ const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /
|
|
|
1484
1487
|
], 2));
|
|
1485
1488
|
}
|
|
1486
1489
|
});
|
|
1487
|
-
const
|
|
1490
|
+
const to = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-a0ff7a60"]]), lo = ["small", "medium", "large"], oo = {
|
|
1488
1491
|
key: 0,
|
|
1489
1492
|
class: "joy-label-required"
|
|
1490
|
-
},
|
|
1493
|
+
}, no = {
|
|
1491
1494
|
key: 1,
|
|
1492
1495
|
class: "joy-label-optional"
|
|
1493
|
-
},
|
|
1496
|
+
}, ao = /* @__PURE__ */ $({
|
|
1494
1497
|
__name: "VJoyLabel",
|
|
1495
1498
|
props: {
|
|
1496
1499
|
size: {
|
|
1497
1500
|
type: String,
|
|
1498
1501
|
default: "medium",
|
|
1499
1502
|
validator(e) {
|
|
1500
|
-
return
|
|
1503
|
+
return lo.includes(e);
|
|
1501
1504
|
}
|
|
1502
1505
|
},
|
|
1503
1506
|
tagName: {
|
|
@@ -1521,14 +1524,17 @@ const eo = /* @__PURE__ */ V(Xl, [["__scopeId", "data-v-a0ff7a60"]]), to = ["sma
|
|
|
1521
1524
|
b(l.$slots, "default", {}, () => [
|
|
1522
1525
|
L(x(e.text), 1)
|
|
1523
1526
|
], !0),
|
|
1524
|
-
e.required ? (v(), p("span",
|
|
1525
|
-
e.optionalLabel ? (v(), p("span",
|
|
1527
|
+
e.required ? (v(), p("span", oo, "*")) : w("", !0),
|
|
1528
|
+
e.optionalLabel ? (v(), p("span", no, "- " + x(e.optionalLabel), 1)) : w("", !0)
|
|
1526
1529
|
]),
|
|
1527
1530
|
_: 3
|
|
1528
1531
|
}, 16, ["class"]));
|
|
1529
1532
|
}
|
|
1530
1533
|
});
|
|
1531
|
-
const N = /* @__PURE__ */ V(
|
|
1534
|
+
const N = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-1265214a"]]), io = ["large", "medium", "small"], ro = ["id", "disabled", "type", "value"], so = ["name"], uo = ["data-unit"], co = {
|
|
1535
|
+
inheritAttrs: !1
|
|
1536
|
+
}, fo = /* @__PURE__ */ $({
|
|
1537
|
+
...co,
|
|
1532
1538
|
__name: "VJoyInput",
|
|
1533
1539
|
props: {
|
|
1534
1540
|
disabled: {
|
|
@@ -1578,7 +1584,7 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
|
|
|
1578
1584
|
type: String,
|
|
1579
1585
|
default: "medium",
|
|
1580
1586
|
validator(e) {
|
|
1581
|
-
return
|
|
1587
|
+
return io.includes(e);
|
|
1582
1588
|
}
|
|
1583
1589
|
},
|
|
1584
1590
|
type: String,
|
|
@@ -1669,7 +1675,7 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
|
|
|
1669
1675
|
(...j) => i.onBlur && i.onBlur(...j)),
|
|
1670
1676
|
onInput: d[2] || (d[2] = //@ts-ignore
|
|
1671
1677
|
(...j) => i.onInput && i.onInput(...j))
|
|
1672
|
-
}), null, 16,
|
|
1678
|
+
}), null, 16, ro),
|
|
1673
1679
|
_(c) ? (v(), p("joy-icon", {
|
|
1674
1680
|
key: 0,
|
|
1675
1681
|
size: "xxsmall",
|
|
@@ -1683,18 +1689,18 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
|
|
|
1683
1689
|
role: "img",
|
|
1684
1690
|
class: "joy-input--decorative-icon",
|
|
1685
1691
|
name: e.icon
|
|
1686
|
-
}, null, 8,
|
|
1692
|
+
}, null, 8, so)) : w("", !0),
|
|
1687
1693
|
e.unit ? (v(), p("div", {
|
|
1688
1694
|
key: 2,
|
|
1689
1695
|
"data-unit": e.unit,
|
|
1690
1696
|
class: "joy-input--unit"
|
|
1691
|
-
}, null, 8,
|
|
1697
|
+
}, null, 8, uo)) : w("", !0)
|
|
1692
1698
|
], 2)
|
|
1693
1699
|
], 2)
|
|
1694
1700
|
], 2));
|
|
1695
1701
|
}
|
|
1696
1702
|
});
|
|
1697
|
-
const
|
|
1703
|
+
const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-35fce715"]]), mo = ["teal", "white"], vo = ["href"], po = ["color", "name"], ho = /* @__PURE__ */ $({
|
|
1698
1704
|
__name: "VJoyLink",
|
|
1699
1705
|
props: {
|
|
1700
1706
|
href: {
|
|
@@ -1705,7 +1711,7 @@ const co = /* @__PURE__ */ V(uo, [["__scopeId", "data-v-4155cc79"]]), fo = ["tea
|
|
|
1705
1711
|
type: String,
|
|
1706
1712
|
default: "teal",
|
|
1707
1713
|
validator(e) {
|
|
1708
|
-
return
|
|
1714
|
+
return mo.includes(e);
|
|
1709
1715
|
}
|
|
1710
1716
|
},
|
|
1711
1717
|
icon: String,
|
|
@@ -1720,16 +1726,16 @@ const co = /* @__PURE__ */ V(uo, [["__scopeId", "data-v-4155cc79"]]), fo = ["tea
|
|
|
1720
1726
|
key: 0,
|
|
1721
1727
|
color: _(t),
|
|
1722
1728
|
name: e.icon
|
|
1723
|
-
}, null, 8,
|
|
1729
|
+
}, null, 8, po)) : w("", !0),
|
|
1724
1730
|
b(o.$slots, "default", {}, () => [
|
|
1725
1731
|
L(x(e.text), 1)
|
|
1726
1732
|
], !0)
|
|
1727
|
-
], 16,
|
|
1733
|
+
], 16, vo));
|
|
1728
1734
|
}
|
|
1729
1735
|
});
|
|
1730
|
-
const
|
|
1736
|
+
const bo = /* @__PURE__ */ V(ho, [["__scopeId", "data-v-920769ba"]]), go = ["id"], _o = {
|
|
1731
1737
|
class: /* @__PURE__ */ k(["joy-multi-checkbox"])
|
|
1732
|
-
},
|
|
1738
|
+
}, wo = /* @__PURE__ */ $({
|
|
1733
1739
|
__name: "VJoyMultiCheckbox",
|
|
1734
1740
|
props: {
|
|
1735
1741
|
options: {
|
|
@@ -1788,7 +1794,7 @@ const po = /* @__PURE__ */ V(vo, [["__scopeId", "data-v-920769ba"]]), ho = ["id"
|
|
|
1788
1794
|
]),
|
|
1789
1795
|
_: 1
|
|
1790
1796
|
}, 8, ["required", "optional-label", "size"])) : w("", !0),
|
|
1791
|
-
h("div",
|
|
1797
|
+
h("div", _o, [
|
|
1792
1798
|
(v(!0), p(ye, null, me(e.options, (n) => (v(), T(_(he), {
|
|
1793
1799
|
id: n.id,
|
|
1794
1800
|
key: n.id,
|
|
@@ -1805,22 +1811,22 @@ const po = /* @__PURE__ */ V(vo, [["__scopeId", "data-v-920769ba"]]), ho = ["id"
|
|
|
1805
1811
|
_: 2
|
|
1806
1812
|
}, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
|
|
1807
1813
|
])
|
|
1808
|
-
], 8,
|
|
1814
|
+
], 8, go));
|
|
1809
1815
|
}
|
|
1810
1816
|
});
|
|
1811
|
-
const
|
|
1817
|
+
const So = /* @__PURE__ */ V(wo, [["__scopeId", "data-v-47574ced"]]), jo = ["small", "medium", "large"], ko = ["small", "large"], $o = {
|
|
1812
1818
|
key: 0,
|
|
1813
1819
|
class: /* @__PURE__ */ k(["joy-panel__header"])
|
|
1814
|
-
},
|
|
1820
|
+
}, Vo = {
|
|
1815
1821
|
key: 1,
|
|
1816
1822
|
class: "joy-panel__header-action"
|
|
1817
|
-
},
|
|
1823
|
+
}, xo = {
|
|
1818
1824
|
key: 2,
|
|
1819
1825
|
class: "joy-panel__header-subtitle"
|
|
1820
|
-
},
|
|
1826
|
+
}, Oo = { class: "joy-panel__body" }, Io = {
|
|
1821
1827
|
key: 1,
|
|
1822
1828
|
class: "joy-panel__footer"
|
|
1823
|
-
},
|
|
1829
|
+
}, Bo = /* @__PURE__ */ $({
|
|
1824
1830
|
__name: "VJoyPanel",
|
|
1825
1831
|
props: {
|
|
1826
1832
|
flex: {
|
|
@@ -1834,14 +1840,14 @@ const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-47574ced"]]), wo = ["sma
|
|
|
1834
1840
|
type: String,
|
|
1835
1841
|
default: "medium",
|
|
1836
1842
|
validator(e) {
|
|
1837
|
-
return
|
|
1843
|
+
return jo.includes(e);
|
|
1838
1844
|
}
|
|
1839
1845
|
},
|
|
1840
1846
|
titleSize: {
|
|
1841
1847
|
type: String,
|
|
1842
1848
|
default: "large",
|
|
1843
1849
|
validator(e) {
|
|
1844
|
-
return
|
|
1850
|
+
return ko.includes(e);
|
|
1845
1851
|
}
|
|
1846
1852
|
}
|
|
1847
1853
|
},
|
|
@@ -1859,50 +1865,50 @@ const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-47574ced"]]), wo = ["sma
|
|
|
1859
1865
|
}
|
|
1860
1866
|
])
|
|
1861
1867
|
}, [
|
|
1862
|
-
_(r) ? (v(), p("header",
|
|
1868
|
+
_(r) ? (v(), p("header", $o, [
|
|
1863
1869
|
_(o)["panel-title"] ? (v(), p("div", {
|
|
1864
1870
|
key: 0,
|
|
1865
1871
|
class: k(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
|
|
1866
1872
|
}, [
|
|
1867
1873
|
b(s.$slots, "panel-title", {}, void 0, !0)
|
|
1868
1874
|
], 2)) : w("", !0),
|
|
1869
|
-
_(o)["panel-title-action"] ? (v(), p("div",
|
|
1875
|
+
_(o)["panel-title-action"] ? (v(), p("div", Vo, [
|
|
1870
1876
|
b(s.$slots, "panel-title-action", {}, void 0, !0)
|
|
1871
1877
|
])) : w("", !0),
|
|
1872
|
-
_(o)["panel-subtitle"] ? (v(), p("div",
|
|
1878
|
+
_(o)["panel-subtitle"] ? (v(), p("div", xo, [
|
|
1873
1879
|
b(s.$slots, "panel-subtitle", {}, void 0, !0)
|
|
1874
1880
|
])) : w("", !0)
|
|
1875
1881
|
])) : w("", !0),
|
|
1876
|
-
h("div",
|
|
1882
|
+
h("div", Oo, [
|
|
1877
1883
|
b(s.$slots, "panel-body", {}, void 0, !0)
|
|
1878
1884
|
]),
|
|
1879
|
-
_(o)["panel-action"] ? (v(), p("footer",
|
|
1885
|
+
_(o)["panel-action"] ? (v(), p("footer", Io, [
|
|
1880
1886
|
b(s.$slots, "panel-action", {}, void 0, !0)
|
|
1881
1887
|
])) : w("", !0)
|
|
1882
1888
|
], 6));
|
|
1883
1889
|
}
|
|
1884
1890
|
});
|
|
1885
|
-
const
|
|
1891
|
+
const Eo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-49d83306"]]), Lo = { class: "joy-panel-section" }, Co = {
|
|
1886
1892
|
key: 0,
|
|
1887
1893
|
class: "joy-panel-section__title"
|
|
1888
|
-
},
|
|
1894
|
+
}, Po = {
|
|
1889
1895
|
key: 1,
|
|
1890
1896
|
class: "joy-panel-section__content"
|
|
1891
|
-
},
|
|
1897
|
+
}, Jo = /* @__PURE__ */ $({
|
|
1892
1898
|
__name: "VJoyPanelSection",
|
|
1893
1899
|
setup(e) {
|
|
1894
1900
|
const l = W();
|
|
1895
|
-
return (t, o) => (v(), p("div",
|
|
1896
|
-
_(l)["panel-section-title"] ? (v(), p("div",
|
|
1901
|
+
return (t, o) => (v(), p("div", Lo, [
|
|
1902
|
+
_(l)["panel-section-title"] ? (v(), p("div", Co, [
|
|
1897
1903
|
b(t.$slots, "panel-section-title", {}, void 0, !0)
|
|
1898
1904
|
])) : w("", !0),
|
|
1899
|
-
_(l)["panel-section-content"] ? (v(), p("div",
|
|
1905
|
+
_(l)["panel-section-content"] ? (v(), p("div", Po, [
|
|
1900
1906
|
b(t.$slots, "panel-section-content", {}, void 0, !0)
|
|
1901
1907
|
])) : w("", !0)
|
|
1902
1908
|
]));
|
|
1903
1909
|
}
|
|
1904
1910
|
});
|
|
1905
|
-
const
|
|
1911
|
+
const To = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-d88510ab"]]), qo = ["id", "value", "checked", "disabled", "required", "name"], zo = { class: "joy-radio-label" }, Ao = { class: "joy-radio-content__wrapper" }, Fo = { class: "joy-radio-content" }, Do = /* @__PURE__ */ $({
|
|
1906
1912
|
__name: "VJoyRadio",
|
|
1907
1913
|
props: {
|
|
1908
1914
|
disabled: {
|
|
@@ -1988,12 +1994,12 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
|
|
|
1988
1994
|
onChange: m,
|
|
1989
1995
|
onFocus: i,
|
|
1990
1996
|
onBlur: y
|
|
1991
|
-
}, null, 40,
|
|
1992
|
-
h("span",
|
|
1997
|
+
}, null, 40, qo),
|
|
1998
|
+
h("span", zo, [
|
|
1993
1999
|
b(d.$slots, "default", {}, void 0, !0)
|
|
1994
2000
|
]),
|
|
1995
|
-
h("div",
|
|
1996
|
-
h("div",
|
|
2001
|
+
h("div", Ao, [
|
|
2002
|
+
h("div", Fo, [
|
|
1997
2003
|
b(d.$slots, "radio-content", {}, void 0, !0)
|
|
1998
2004
|
]),
|
|
1999
2005
|
h("div", {
|
|
@@ -2007,7 +2013,7 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
|
|
|
2007
2013
|
], 2));
|
|
2008
2014
|
}
|
|
2009
2015
|
});
|
|
2010
|
-
const
|
|
2016
|
+
const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-24cea99b"]]), Mo = ["form", "name"], No = /* @__PURE__ */ $({
|
|
2011
2017
|
__name: "VJoyRadioGroup",
|
|
2012
2018
|
props: {
|
|
2013
2019
|
direction: {
|
|
@@ -2035,13 +2041,13 @@ const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-24cea99b"]]), Do = ["for
|
|
|
2035
2041
|
}, [
|
|
2036
2042
|
b(l.$slots, "default", {}, void 0, !0)
|
|
2037
2043
|
], 2)
|
|
2038
|
-
], 8,
|
|
2044
|
+
], 8, Mo));
|
|
2039
2045
|
}
|
|
2040
2046
|
});
|
|
2041
|
-
const
|
|
2047
|
+
const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-ace1a80f"]]), Wo = (e) => (te("data-v-ab4d0113"), e = e(), le(), e), Uo = ["id", "name", "aria-invalid", "required", "disabled", "value"], Go = /* @__PURE__ */ Wo(() => /* @__PURE__ */ h("joy-icon", {
|
|
2042
2048
|
class: "joy-select__chevron",
|
|
2043
2049
|
name: "chevron-down"
|
|
2044
|
-
}, null, -1)),
|
|
2050
|
+
}, null, -1)), Ko = /* @__PURE__ */ $({
|
|
2045
2051
|
__name: "VJoySelect",
|
|
2046
2052
|
props: {
|
|
2047
2053
|
disabled: {
|
|
@@ -2149,13 +2155,13 @@ const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-ace1a80f"]]), No = (e) =
|
|
|
2149
2155
|
onBlur: f
|
|
2150
2156
|
}, [
|
|
2151
2157
|
b(u.$slots, "default", {}, void 0, !0)
|
|
2152
|
-
], 40,
|
|
2153
|
-
|
|
2158
|
+
], 40, Uo),
|
|
2159
|
+
Go
|
|
2154
2160
|
], 2)
|
|
2155
2161
|
], 512));
|
|
2156
2162
|
}
|
|
2157
2163
|
});
|
|
2158
|
-
const
|
|
2164
|
+
const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-ab4d0113"]]), Zo = ["aria-disabled"], Yo = ["id", "value", "checked", "disabled", "required", "name"], Xo = /* @__PURE__ */ $({
|
|
2159
2165
|
__name: "VJoySelectableItem",
|
|
2160
2166
|
props: {
|
|
2161
2167
|
disabled: {
|
|
@@ -2240,7 +2246,7 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["ari
|
|
|
2240
2246
|
(...m) => n.onFocus && n.onFocus(...m)),
|
|
2241
2247
|
onBlur: u[2] || (u[2] = //@ts-ignore
|
|
2242
2248
|
(...m) => n.onBlur && n.onBlur(...m))
|
|
2243
|
-
}, null, 40,
|
|
2249
|
+
}, null, 40, Yo)),
|
|
2244
2250
|
(v(), T(ce(_(s)), {
|
|
2245
2251
|
for: e.id,
|
|
2246
2252
|
class: k([
|
|
@@ -2285,10 +2291,10 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["ari
|
|
|
2285
2291
|
]),
|
|
2286
2292
|
_: 3
|
|
2287
2293
|
}, 8, ["for", "class", "onClick"]))
|
|
2288
|
-
], 10,
|
|
2294
|
+
], 10, Zo));
|
|
2289
2295
|
}
|
|
2290
2296
|
});
|
|
2291
|
-
const lt = /* @__PURE__ */ V(
|
|
2297
|
+
const lt = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-cb2531c0"]]), en = ["id"], tn = /* @__PURE__ */ $({
|
|
2292
2298
|
__name: "VJoySelectableItemGroup",
|
|
2293
2299
|
props: {
|
|
2294
2300
|
options: {
|
|
@@ -2388,10 +2394,10 @@ const lt = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-cb2531c0"]]), Yo = ["id"
|
|
|
2388
2394
|
} : void 0
|
|
2389
2395
|
]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
|
|
2390
2396
|
], 2)
|
|
2391
|
-
], 8,
|
|
2397
|
+
], 8, en));
|
|
2392
2398
|
}
|
|
2393
2399
|
});
|
|
2394
|
-
const
|
|
2400
|
+
const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-3ba17434"]]), on = /* @__PURE__ */ $({
|
|
2395
2401
|
__name: "VJoyWrapper",
|
|
2396
2402
|
props: {
|
|
2397
2403
|
/** Horizontal spread. Refers to CSS flex justify-content. */
|
|
@@ -2440,28 +2446,28 @@ const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-3ba17434"]]), tn = /* @_
|
|
|
2440
2446
|
], 2));
|
|
2441
2447
|
}
|
|
2442
2448
|
});
|
|
2443
|
-
const
|
|
2449
|
+
const nn = /* @__PURE__ */ V(on, [["__scopeId", "data-v-e2f29698"]]), an = { class: "joy-template__wrapper" }, rn = {
|
|
2444
2450
|
key: 0,
|
|
2445
2451
|
class: "joy-template__heading"
|
|
2446
|
-
},
|
|
2452
|
+
}, sn = {
|
|
2447
2453
|
key: 0,
|
|
2448
2454
|
class: "joy-template-slot-back"
|
|
2449
|
-
},
|
|
2455
|
+
}, un = { class: "joy-template__heading___headings" }, dn = {
|
|
2450
2456
|
key: 0,
|
|
2451
2457
|
class: "joy-template-slot-title"
|
|
2452
|
-
},
|
|
2458
|
+
}, cn = {
|
|
2453
2459
|
key: 1,
|
|
2454
2460
|
class: "joy-template-slot-subtitle"
|
|
2455
|
-
},
|
|
2461
|
+
}, fn = {
|
|
2456
2462
|
key: 1,
|
|
2457
2463
|
class: "joy-template-slot-actions"
|
|
2458
|
-
},
|
|
2464
|
+
}, yn = {
|
|
2459
2465
|
key: 0,
|
|
2460
2466
|
class: "joy-template-slot-main"
|
|
2461
|
-
},
|
|
2467
|
+
}, mn = {
|
|
2462
2468
|
key: 1,
|
|
2463
2469
|
class: "joy-template-slot-sidebar"
|
|
2464
|
-
},
|
|
2470
|
+
}, vn = /* @__PURE__ */ $({
|
|
2465
2471
|
__name: "VJoyTemplate",
|
|
2466
2472
|
props: {
|
|
2467
2473
|
full: { type: Boolean, default: !1 },
|
|
@@ -2472,20 +2478,20 @@ const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-e2f29698"]]), on = { cla
|
|
|
2472
2478
|
return (a, r) => (v(), p("main", {
|
|
2473
2479
|
class: k(["joy-template", { "joy-template--full": l.full }])
|
|
2474
2480
|
}, [
|
|
2475
|
-
h("div",
|
|
2476
|
-
_(o) ? (v(), p("div",
|
|
2477
|
-
_(t)["template-back"] ? (v(), p("div",
|
|
2481
|
+
h("div", an, [
|
|
2482
|
+
_(o) ? (v(), p("div", rn, [
|
|
2483
|
+
_(t)["template-back"] ? (v(), p("div", sn, [
|
|
2478
2484
|
b(a.$slots, "template-back", {}, void 0, !0)
|
|
2479
2485
|
])) : w("", !0),
|
|
2480
|
-
h("div",
|
|
2481
|
-
_(t)["template-title"] ? (v(), p("div",
|
|
2486
|
+
h("div", un, [
|
|
2487
|
+
_(t)["template-title"] ? (v(), p("div", dn, [
|
|
2482
2488
|
b(a.$slots, "template-title", {}, void 0, !0)
|
|
2483
2489
|
])) : w("", !0),
|
|
2484
|
-
_(t)["template-subtitle"] ? (v(), p("div",
|
|
2490
|
+
_(t)["template-subtitle"] ? (v(), p("div", cn, [
|
|
2485
2491
|
b(a.$slots, "template-subtitle", {}, void 0, !0)
|
|
2486
2492
|
])) : w("", !0)
|
|
2487
2493
|
]),
|
|
2488
|
-
_(t)["template-actions"] ? (v(), p("div",
|
|
2494
|
+
_(t)["template-actions"] ? (v(), p("div", fn, [
|
|
2489
2495
|
b(a.$slots, "template-actions", {}, void 0, !0)
|
|
2490
2496
|
])) : w("", !0)
|
|
2491
2497
|
])) : w("", !0),
|
|
@@ -2497,10 +2503,10 @@ const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-e2f29698"]]), on = { cla
|
|
|
2497
2503
|
}
|
|
2498
2504
|
])
|
|
2499
2505
|
}, [
|
|
2500
|
-
a.$slots["template-main"] ? (v(), p("div",
|
|
2506
|
+
a.$slots["template-main"] ? (v(), p("div", yn, [
|
|
2501
2507
|
b(a.$slots, "template-main", {}, void 0, !0)
|
|
2502
2508
|
])) : w("", !0),
|
|
2503
|
-
a.$slots["template-sidebar"] ? (v(), p("div",
|
|
2509
|
+
a.$slots["template-sidebar"] ? (v(), p("div", mn, [
|
|
2504
2510
|
b(a.$slots, "template-sidebar", {}, void 0, !0)
|
|
2505
2511
|
])) : w("", !0)
|
|
2506
2512
|
], 2)
|
|
@@ -2508,15 +2514,18 @@ const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-e2f29698"]]), on = { cla
|
|
|
2508
2514
|
], 2));
|
|
2509
2515
|
}
|
|
2510
2516
|
});
|
|
2511
|
-
const
|
|
2517
|
+
const pn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-85e0d8cf"]]), hn = ["aria-disabled"], bn = { class: "joy-textarea_wrapper" }, gn = ["id", "disabled", "name", "required", "minlength", "value"], _n = {
|
|
2512
2518
|
key: 0,
|
|
2513
2519
|
class: "joy-textarea_helpers"
|
|
2514
|
-
},
|
|
2520
|
+
}, wn = {
|
|
2515
2521
|
key: 0,
|
|
2516
2522
|
name: "check",
|
|
2517
2523
|
color: "grey",
|
|
2518
2524
|
size: "xxsmall"
|
|
2519
|
-
},
|
|
2525
|
+
}, Sn = {
|
|
2526
|
+
inheritAttrs: !1
|
|
2527
|
+
}, jn = /* @__PURE__ */ $({
|
|
2528
|
+
...Sn,
|
|
2520
2529
|
__name: "VJoyTextarea",
|
|
2521
2530
|
props: {
|
|
2522
2531
|
disabled: {
|
|
@@ -2565,7 +2574,7 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
|
|
|
2565
2574
|
},
|
|
2566
2575
|
emits: ["update:modelValue"],
|
|
2567
2576
|
setup(e, { expose: l, emit: t }) {
|
|
2568
|
-
const o = e, a = g(), { triggerResize: r } =
|
|
2577
|
+
const o = e, a = g(), { triggerResize: r } = nl({
|
|
2569
2578
|
element: o.autogrow ? a : void 0
|
|
2570
2579
|
}), s = g(!1), n = g(!1), c = I(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = I(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
|
|
2571
2580
|
onInput: (m) => {
|
|
@@ -2607,7 +2616,7 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
|
|
|
2607
2616
|
]),
|
|
2608
2617
|
_: 3
|
|
2609
2618
|
}, 8, ["for", "required", "optional-label", "size"]),
|
|
2610
|
-
h("div",
|
|
2619
|
+
h("div", bn, [
|
|
2611
2620
|
h("textarea", Q(m.$attrs, {
|
|
2612
2621
|
id: e.id,
|
|
2613
2622
|
ref_key: "textarea",
|
|
@@ -2624,14 +2633,14 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
|
|
|
2624
2633
|
(...y) => u.onFocus && u.onFocus(...y)),
|
|
2625
2634
|
onBlur: i[2] || (i[2] = //@ts-ignore
|
|
2626
2635
|
(...y) => u.onBlur && u.onBlur(...y))
|
|
2627
|
-
}), null, 16,
|
|
2636
|
+
}), null, 16, gn)
|
|
2628
2637
|
]),
|
|
2629
|
-
e.minlength || e.maxlength ? (v(), p("div",
|
|
2638
|
+
e.minlength || e.maxlength ? (v(), p("div", _n, [
|
|
2630
2639
|
e.minlength ? (v(), p("p", {
|
|
2631
2640
|
key: 0,
|
|
2632
2641
|
class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
|
|
2633
2642
|
}, [
|
|
2634
|
-
_(f) ? w("", !0) : (v(), p("joy-icon",
|
|
2643
|
+
_(f) ? w("", !0) : (v(), p("joy-icon", wn)),
|
|
2635
2644
|
L(" " + x(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
|
|
2636
2645
|
], 2)) : w("", !0),
|
|
2637
2646
|
e.maxlength ? (v(), p("p", {
|
|
@@ -2639,10 +2648,10 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
|
|
|
2639
2648
|
class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
|
|
2640
2649
|
}, x(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
|
|
2641
2650
|
])) : w("", !0)
|
|
2642
|
-
], 10,
|
|
2651
|
+
], 10, hn));
|
|
2643
2652
|
}
|
|
2644
2653
|
});
|
|
2645
|
-
const
|
|
2654
|
+
const kn = /* @__PURE__ */ V(jn, [["__scopeId", "data-v-627a255b"]]), ot = (e) => (te("data-v-cf79d999"), e = e(), le(), e), $n = { class: "joy-toggle__wrapper" }, Vn = ["name", "disabled", "checked", "required", "aria-checked", "value"], xn = { class: "joy-toggle__content" }, On = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), In = { class: "joy-toggle__content-label" }, Bn = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
|
|
2646
2655
|
/* @__PURE__ */ h("svg", {
|
|
2647
2656
|
width: "18",
|
|
2648
2657
|
height: "10",
|
|
@@ -2655,7 +2664,7 @@ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
|
|
|
2655
2664
|
fill: "currentColor"
|
|
2656
2665
|
})
|
|
2657
2666
|
])
|
|
2658
|
-
], -1)),
|
|
2667
|
+
], -1)), En = /* @__PURE__ */ $({
|
|
2659
2668
|
__name: "VJoyToggle",
|
|
2660
2669
|
props: {
|
|
2661
2670
|
modelValue: {
|
|
@@ -2701,7 +2710,7 @@ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
|
|
|
2701
2710
|
t.value = !1;
|
|
2702
2711
|
}
|
|
2703
2712
|
};
|
|
2704
|
-
return (a, r) => (v(), p("div",
|
|
2713
|
+
return (a, r) => (v(), p("div", $n, [
|
|
2705
2714
|
h("label", {
|
|
2706
2715
|
class: k([
|
|
2707
2716
|
"joy-toggle",
|
|
@@ -2729,77 +2738,77 @@ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
|
|
|
2729
2738
|
(...s) => o.onFocus && o.onFocus(...s)),
|
|
2730
2739
|
onBlur: r[2] || (r[2] = //@ts-ignore
|
|
2731
2740
|
(...s) => o.onBlur && o.onBlur(...s))
|
|
2732
|
-
}, null, 40,
|
|
2733
|
-
h("p",
|
|
2734
|
-
|
|
2735
|
-
h("span",
|
|
2741
|
+
}, null, 40, Vn),
|
|
2742
|
+
h("p", xn, [
|
|
2743
|
+
On,
|
|
2744
|
+
h("span", In, [
|
|
2736
2745
|
b(a.$slots, "default", {}, () => [
|
|
2737
2746
|
L(x(e.label), 1)
|
|
2738
2747
|
], !0)
|
|
2739
2748
|
]),
|
|
2740
|
-
|
|
2749
|
+
Bn
|
|
2741
2750
|
])
|
|
2742
2751
|
], 2)
|
|
2743
2752
|
]));
|
|
2744
2753
|
}
|
|
2745
2754
|
});
|
|
2746
|
-
const
|
|
2755
|
+
const Ln = /* @__PURE__ */ V(En, [["__scopeId", "data-v-cf79d999"]]), Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2747
2756
|
__proto__: null,
|
|
2748
2757
|
VJoyBadge: mt,
|
|
2749
2758
|
VJoyButton: Vt,
|
|
2750
2759
|
VJoyCheckbox: he,
|
|
2751
|
-
VJoyCounter:
|
|
2752
|
-
VJoyDropdown:
|
|
2760
|
+
VJoyCounter: Ht,
|
|
2761
|
+
VJoyDropdown: Hl,
|
|
2753
2762
|
VJoyDropdownList: et,
|
|
2754
2763
|
VJoyFormError: tt,
|
|
2755
|
-
VJoyHighlight:
|
|
2756
|
-
VJoyInput:
|
|
2764
|
+
VJoyHighlight: to,
|
|
2765
|
+
VJoyInput: yo,
|
|
2757
2766
|
VJoyLabel: N,
|
|
2758
|
-
VJoyLink:
|
|
2759
|
-
VJoyMultiCheckbox:
|
|
2760
|
-
VJoyPanel:
|
|
2761
|
-
VJoyPanelSection:
|
|
2762
|
-
VJoyRadio:
|
|
2763
|
-
VJoyRadioGroup:
|
|
2764
|
-
VJoySelect:
|
|
2767
|
+
VJoyLink: bo,
|
|
2768
|
+
VJoyMultiCheckbox: So,
|
|
2769
|
+
VJoyPanel: Eo,
|
|
2770
|
+
VJoyPanelSection: To,
|
|
2771
|
+
VJoyRadio: Ro,
|
|
2772
|
+
VJoyRadioGroup: Ho,
|
|
2773
|
+
VJoySelect: Qo,
|
|
2765
2774
|
VJoySelectableItem: lt,
|
|
2766
|
-
VJoySelectableItemGroup:
|
|
2775
|
+
VJoySelectableItemGroup: ln,
|
|
2767
2776
|
VJoySpinner: We,
|
|
2768
|
-
VJoyTemplate:
|
|
2769
|
-
VJoyTextarea:
|
|
2770
|
-
VJoyToggle:
|
|
2771
|
-
VJoyWrapper:
|
|
2772
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2777
|
+
VJoyTemplate: pn,
|
|
2778
|
+
VJoyTextarea: kn,
|
|
2779
|
+
VJoyToggle: Ln,
|
|
2780
|
+
VJoyWrapper: nn
|
|
2781
|
+
}, Symbol.toStringTag, { value: "Module" })), Jn = {
|
|
2773
2782
|
install: (e) => {
|
|
2774
|
-
Object.entries(
|
|
2783
|
+
Object.entries(Cn).forEach(([l, t]) => {
|
|
2775
2784
|
e.component(l, t);
|
|
2776
2785
|
});
|
|
2777
2786
|
}
|
|
2778
2787
|
};
|
|
2779
2788
|
export {
|
|
2780
|
-
|
|
2789
|
+
Jn as JoyVuePlugin,
|
|
2781
2790
|
mt as VJoyBadge,
|
|
2782
2791
|
Vt as VJoyButton,
|
|
2783
2792
|
he as VJoyCheckbox,
|
|
2784
|
-
|
|
2785
|
-
|
|
2793
|
+
Ht as VJoyCounter,
|
|
2794
|
+
Hl as VJoyDropdown,
|
|
2786
2795
|
et as VJoyDropdownList,
|
|
2787
2796
|
tt as VJoyFormError,
|
|
2788
|
-
|
|
2789
|
-
|
|
2797
|
+
to as VJoyHighlight,
|
|
2798
|
+
yo as VJoyInput,
|
|
2790
2799
|
N as VJoyLabel,
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2800
|
+
bo as VJoyLink,
|
|
2801
|
+
So as VJoyMultiCheckbox,
|
|
2802
|
+
Eo as VJoyPanel,
|
|
2803
|
+
To as VJoyPanelSection,
|
|
2804
|
+
Ro as VJoyRadio,
|
|
2805
|
+
Ho as VJoyRadioGroup,
|
|
2806
|
+
Qo as VJoySelect,
|
|
2798
2807
|
lt as VJoySelectableItem,
|
|
2799
|
-
|
|
2808
|
+
ln as VJoySelectableItemGroup,
|
|
2800
2809
|
We as VJoySpinner,
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2810
|
+
pn as VJoyTemplate,
|
|
2811
|
+
kn as VJoyTextarea,
|
|
2812
|
+
Ln as VJoyToggle,
|
|
2813
|
+
nn as VJoyWrapper
|
|
2805
2814
|
};
|