@maltjoy/core-vue 1.0.0-beta.5 → 1.0.0-beta.6
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/components/JoyButton/JoyButton.types.d.ts +2 -1
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +11 -0
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +1 -1
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +12 -5
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +9 -2
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +1 -1
- package/dist/joy-vue.js +284 -268
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/joy-vue.js
CHANGED
|
@@ -51,7 +51,7 @@ const V = (e, t) => {
|
|
|
51
51
|
}, null, 2));
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...mt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = /* @__PURE__ */ $({
|
|
54
|
+
const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...mt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = ["name", "size"], jt = /* @__PURE__ */ $({
|
|
55
55
|
__name: "VJoyButton",
|
|
56
56
|
props: {
|
|
57
57
|
/**
|
|
@@ -64,6 +64,11 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
64
64
|
},
|
|
65
65
|
/** Name of the icon, placed before the text */
|
|
66
66
|
icon: String,
|
|
67
|
+
/** Left to the text or right */
|
|
68
|
+
iconPosition: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "left"
|
|
71
|
+
},
|
|
67
72
|
/** Change the component's state and display a JoySpinner. */
|
|
68
73
|
loading: {
|
|
69
74
|
type: Boolean,
|
|
@@ -90,7 +95,7 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
90
95
|
const t = e, l = Re(), o = x(() => {
|
|
91
96
|
switch (t.size) {
|
|
92
97
|
case "xxsmall":
|
|
93
|
-
return "
|
|
98
|
+
return "xxsmall";
|
|
94
99
|
case "xsmall":
|
|
95
100
|
return "xxsmall";
|
|
96
101
|
case "small":
|
|
@@ -112,8 +117,9 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
112
117
|
])
|
|
113
118
|
}, {
|
|
114
119
|
default: L(() => [
|
|
115
|
-
e.icon ? (m(), p("joy-icon", {
|
|
120
|
+
e.icon && e.iconPosition === "left" ? (m(), p("joy-icon", {
|
|
116
121
|
key: 0,
|
|
122
|
+
class: "joy-button_icon joy-button_icon--left",
|
|
117
123
|
name: e.icon,
|
|
118
124
|
size: _(o),
|
|
119
125
|
lazy: !1
|
|
@@ -124,13 +130,20 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
124
130
|
}, null, 8, ["color"])) : w("", !0),
|
|
125
131
|
h("span", wt, [
|
|
126
132
|
g(r.$slots, "default", {}, void 0, !0)
|
|
127
|
-
])
|
|
133
|
+
]),
|
|
134
|
+
e.icon && e.iconPosition === "right" ? (m(), p("joy-icon", {
|
|
135
|
+
key: 2,
|
|
136
|
+
class: "joy-button_icon joy-button_icon--right",
|
|
137
|
+
name: e.icon,
|
|
138
|
+
size: _(o),
|
|
139
|
+
lazy: !1
|
|
140
|
+
}, null, 8, St)) : w("", !0)
|
|
128
141
|
]),
|
|
129
142
|
_: 3
|
|
130
143
|
}, 8, ["disabled", "class"]));
|
|
131
144
|
}
|
|
132
145
|
});
|
|
133
|
-
const
|
|
146
|
+
const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["aria-checked", "aria-hidden"], Vt = { class: "joy-checkbox__input-wrapper" }, xt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, It = { class: "joy-checkbox__content" }, Bt = /* @__PURE__ */ $({
|
|
134
147
|
__name: "VJoyCheckbox",
|
|
135
148
|
props: {
|
|
136
149
|
/** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
|
|
@@ -206,7 +219,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
206
219
|
}
|
|
207
220
|
])
|
|
208
221
|
}, [
|
|
209
|
-
h("div",
|
|
222
|
+
h("div", Vt, [
|
|
210
223
|
h("input", {
|
|
211
224
|
id: e.id,
|
|
212
225
|
ref_key: "input",
|
|
@@ -227,36 +240,36 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
227
240
|
(...u) => a.onFocus && a.onFocus(...u)),
|
|
228
241
|
onBlur: f[2] || (f[2] = //@ts-ignore
|
|
229
242
|
(...u) => a.onBlur && a.onBlur(...u))
|
|
230
|
-
}, null, 40,
|
|
243
|
+
}, null, 40, xt)
|
|
231
244
|
]),
|
|
232
|
-
h("div",
|
|
245
|
+
h("div", Ot, [
|
|
233
246
|
g(c.$slots, "default", {}, () => [
|
|
234
247
|
J(I(e.label), 1)
|
|
235
248
|
], !0),
|
|
236
|
-
h("div",
|
|
249
|
+
h("div", It, [
|
|
237
250
|
g(c.$slots, "checkbox-content", {}, void 0, !0)
|
|
238
251
|
])
|
|
239
252
|
])
|
|
240
253
|
], 2)
|
|
241
|
-
], 8,
|
|
254
|
+
], 8, $t));
|
|
242
255
|
}
|
|
243
256
|
});
|
|
244
|
-
const he = /* @__PURE__ */ V(
|
|
257
|
+
const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Lt = { class: "joy-counter" }, Et = ["aria-label", "disabled"], Pt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
|
|
245
258
|
name: "minus",
|
|
246
259
|
color: "teal",
|
|
247
260
|
lazy: !1
|
|
248
261
|
}, null, -1)), Ct = [
|
|
249
|
-
|
|
250
|
-
],
|
|
262
|
+
Pt
|
|
263
|
+
], Jt = { class: "joy-counter__input-wrapper" }, qt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], zt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
|
|
251
264
|
name: "add",
|
|
252
265
|
lazy: !1,
|
|
253
266
|
color: "teal"
|
|
254
|
-
}, null, -1)),
|
|
255
|
-
|
|
256
|
-
],
|
|
267
|
+
}, null, -1)), At = [
|
|
268
|
+
zt
|
|
269
|
+
], Ft = {
|
|
257
270
|
key: 0,
|
|
258
271
|
class: "joy-counter_error"
|
|
259
|
-
},
|
|
272
|
+
}, Dt = /* @__PURE__ */ $({
|
|
260
273
|
__name: "VJoyCounter",
|
|
261
274
|
props: {
|
|
262
275
|
/** Removes any interactivity */
|
|
@@ -361,7 +374,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
361
374
|
};
|
|
362
375
|
return t({
|
|
363
376
|
props: o
|
|
364
|
-
}), (d, j) => (m(), p("div",
|
|
377
|
+
}), (d, j) => (m(), p("div", Lt, [
|
|
365
378
|
e.label ? (m(), q(_(N), {
|
|
366
379
|
key: 0,
|
|
367
380
|
for: e.id,
|
|
@@ -385,8 +398,8 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
385
398
|
"aria-label": e.labelDecrement,
|
|
386
399
|
disabled: e.modelValue <= e.min,
|
|
387
400
|
onClick: s
|
|
388
|
-
}, Ct, 8,
|
|
389
|
-
h("div",
|
|
401
|
+
}, Ct, 8, Et),
|
|
402
|
+
h("div", Jt, [
|
|
390
403
|
h("input", Q({
|
|
391
404
|
id: e.id,
|
|
392
405
|
ref: "input",
|
|
@@ -406,7 +419,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
406
419
|
(...S) => y.onBlur && y.onBlur(...S)),
|
|
407
420
|
onFocus: j[2] || (j[2] = //@ts-ignore
|
|
408
421
|
(...S) => y.onFocus && y.onFocus(...S))
|
|
409
|
-
}), null, 16,
|
|
422
|
+
}), null, 16, qt)
|
|
410
423
|
]),
|
|
411
424
|
h("button", {
|
|
412
425
|
class: "joy-counter__increment",
|
|
@@ -414,19 +427,19 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
414
427
|
"aria-label": e.labelIncrement,
|
|
415
428
|
disabled: e.max ? e.modelValue >= e.max : !1,
|
|
416
429
|
onClick: a
|
|
417
|
-
},
|
|
418
|
-
e.invalid && e.errorMessage ? (m(), p("div",
|
|
430
|
+
}, At, 8, Tt),
|
|
431
|
+
e.invalid && e.errorMessage ? (m(), p("div", Ft, [
|
|
419
432
|
fe(_(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
|
|
420
433
|
])) : w("", !0)
|
|
421
434
|
], 2)
|
|
422
435
|
]));
|
|
423
436
|
}
|
|
424
437
|
});
|
|
425
|
-
const
|
|
438
|
+
const Rt = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-0d1ab3f2"]]);
|
|
426
439
|
var _e;
|
|
427
440
|
const U = typeof window < "u", Ue = (e) => typeof e == "string", z = () => {
|
|
428
441
|
}, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
429
|
-
function
|
|
442
|
+
function P(e) {
|
|
430
443
|
return typeof e == "function" ? e() : _(e);
|
|
431
444
|
}
|
|
432
445
|
function Ge(e, t) {
|
|
@@ -437,13 +450,13 @@ function Ge(e, t) {
|
|
|
437
450
|
}
|
|
438
451
|
return l;
|
|
439
452
|
}
|
|
440
|
-
function
|
|
453
|
+
function Mt(e, t = {}) {
|
|
441
454
|
let l, o, n = z;
|
|
442
455
|
const r = (a) => {
|
|
443
456
|
clearTimeout(a), n(), n = z;
|
|
444
457
|
};
|
|
445
458
|
return (a) => {
|
|
446
|
-
const c =
|
|
459
|
+
const c = P(e), f = P(t.maxWait);
|
|
447
460
|
return l && r(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
|
|
448
461
|
n = t.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
|
|
449
462
|
l && r(l), o = null, u(a());
|
|
@@ -453,13 +466,13 @@ function Rt(e, t = {}) {
|
|
|
453
466
|
});
|
|
454
467
|
};
|
|
455
468
|
}
|
|
456
|
-
function
|
|
469
|
+
function Nt(e, t = !0, l = !0, o = !1) {
|
|
457
470
|
let n = 0, r, s = !0, a = z, c;
|
|
458
471
|
const f = () => {
|
|
459
472
|
r && (clearTimeout(r), r = void 0, a(), a = z);
|
|
460
473
|
};
|
|
461
474
|
return (v) => {
|
|
462
|
-
const i =
|
|
475
|
+
const i = P(e), y = Date.now() - n, d = () => c = v();
|
|
463
476
|
return f(), i <= 0 ? (n = Date.now(), d()) : (y > i && (l || !s) ? (n = Date.now(), d()) : t && (c = new Promise((j, S) => {
|
|
464
477
|
a = o ? S : j, r = setTimeout(() => {
|
|
465
478
|
n = Date.now(), s = !0, j(d()), f();
|
|
@@ -472,19 +485,19 @@ const R = {
|
|
|
472
485
|
updated: "updated",
|
|
473
486
|
unmounted: "unmounted"
|
|
474
487
|
};
|
|
475
|
-
function
|
|
488
|
+
function Ht(e) {
|
|
476
489
|
return e;
|
|
477
490
|
}
|
|
478
491
|
function G(e) {
|
|
479
492
|
return ot() ? (nt(e), !0) : !1;
|
|
480
493
|
}
|
|
481
|
-
function
|
|
482
|
-
return Ge(
|
|
494
|
+
function Wt(e, t = 200, l = {}) {
|
|
495
|
+
return Ge(Mt(t, l), e);
|
|
483
496
|
}
|
|
484
|
-
function
|
|
485
|
-
return Ge(
|
|
497
|
+
function Ut(e, t = 200, l = !1, o = !0, n = !1) {
|
|
498
|
+
return Ge(Nt(t, l, o, n), e);
|
|
486
499
|
}
|
|
487
|
-
function
|
|
500
|
+
function Gt(e) {
|
|
488
501
|
return typeof e == "function" ? x(e) : b(e);
|
|
489
502
|
}
|
|
490
503
|
function Ke(e, t = !0) {
|
|
@@ -492,7 +505,7 @@ function Ke(e, t = !0) {
|
|
|
492
505
|
}
|
|
493
506
|
function H(e) {
|
|
494
507
|
var t;
|
|
495
|
-
const l =
|
|
508
|
+
const l = P(e);
|
|
496
509
|
return (t = l == null ? void 0 : l.$el) != null ? t : l;
|
|
497
510
|
}
|
|
498
511
|
const be = U ? window : void 0;
|
|
@@ -506,7 +519,7 @@ function ae(...e) {
|
|
|
506
519
|
Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
|
|
507
520
|
const r = [], s = () => {
|
|
508
521
|
r.forEach((u) => u()), r.length = 0;
|
|
509
|
-
}, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [H(t),
|
|
522
|
+
}, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [H(t), P(n)], ([u, v]) => {
|
|
510
523
|
s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
|
|
511
524
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
512
525
|
c(), s();
|
|
@@ -514,7 +527,7 @@ function ae(...e) {
|
|
|
514
527
|
return G(f), f;
|
|
515
528
|
}
|
|
516
529
|
let we = !1;
|
|
517
|
-
function
|
|
530
|
+
function Kt(e, t, l = {}) {
|
|
518
531
|
const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
|
|
519
532
|
if (!o)
|
|
520
533
|
return;
|
|
@@ -550,26 +563,26 @@ function Gt(e, t, l = {}) {
|
|
|
550
563
|
].filter(Boolean);
|
|
551
564
|
return () => u.forEach((i) => i());
|
|
552
565
|
}
|
|
553
|
-
function
|
|
566
|
+
function Qt(e, t = !1) {
|
|
554
567
|
const l = b(), o = () => l.value = Boolean(e());
|
|
555
568
|
return o(), Ke(o, t), l;
|
|
556
569
|
}
|
|
557
570
|
const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
|
|
558
571
|
ie[re] = ie[re] || {};
|
|
559
572
|
ie[re];
|
|
560
|
-
var Se = Object.getOwnPropertySymbols,
|
|
573
|
+
var Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Xt = (e, t) => {
|
|
561
574
|
var l = {};
|
|
562
575
|
for (var o in e)
|
|
563
|
-
|
|
576
|
+
Zt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
|
|
564
577
|
if (e != null && Se)
|
|
565
578
|
for (var o of Se(e))
|
|
566
|
-
t.indexOf(o) < 0 &&
|
|
579
|
+
t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
|
|
567
580
|
return l;
|
|
568
581
|
};
|
|
569
|
-
function
|
|
570
|
-
const o = l, { window: n = be } = o, r =
|
|
582
|
+
function el(e, t, l = {}) {
|
|
583
|
+
const o = l, { window: n = be } = o, r = Xt(o, ["window"]);
|
|
571
584
|
let s;
|
|
572
|
-
const a =
|
|
585
|
+
const a = Qt(() => n && "ResizeObserver" in n), c = () => {
|
|
573
586
|
s && (s.disconnect(), s = void 0);
|
|
574
587
|
}, f = B(() => H(e), (v) => {
|
|
575
588
|
c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
|
|
@@ -585,27 +598,27 @@ var je;
|
|
|
585
598
|
(function(e) {
|
|
586
599
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
587
600
|
})(je || (je = {}));
|
|
588
|
-
function
|
|
601
|
+
function tl(e) {
|
|
589
602
|
const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
|
|
590
603
|
function o() {
|
|
591
604
|
var n, r;
|
|
592
605
|
t.value && (t.value.style.height = "1px", t.value.style.height = `${(n = t.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
|
|
593
606
|
}
|
|
594
|
-
return B([l, t], o, { immediate: !0 }),
|
|
607
|
+
return B([l, t], o, { immediate: !0 }), el(t, () => o()), e != null && e.watch && B(e.watch, o, { immediate: !0, deep: !0 }), {
|
|
595
608
|
textarea: t,
|
|
596
609
|
input: l,
|
|
597
610
|
triggerResize: o
|
|
598
611
|
};
|
|
599
612
|
}
|
|
600
|
-
var
|
|
613
|
+
var ll = Object.defineProperty, ke = Object.getOwnPropertySymbols, ol = Object.prototype.hasOwnProperty, nl = Object.prototype.propertyIsEnumerable, $e = (e, t, l) => t in e ? ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, al = (e, t) => {
|
|
601
614
|
for (var l in t || (t = {}))
|
|
602
|
-
|
|
615
|
+
ol.call(t, l) && $e(e, l, t[l]);
|
|
603
616
|
if (ke)
|
|
604
617
|
for (var l of ke(t))
|
|
605
|
-
|
|
618
|
+
nl.call(t, l) && $e(e, l, t[l]);
|
|
606
619
|
return e;
|
|
607
620
|
};
|
|
608
|
-
const
|
|
621
|
+
const il = {
|
|
609
622
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
610
623
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
611
624
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -631,16 +644,16 @@ const al = {
|
|
|
631
644
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
632
645
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
633
646
|
};
|
|
634
|
-
|
|
635
|
-
linear:
|
|
636
|
-
},
|
|
637
|
-
const
|
|
647
|
+
al({
|
|
648
|
+
linear: Ht
|
|
649
|
+
}, il);
|
|
650
|
+
const rl = /* @__PURE__ */ $({
|
|
638
651
|
name: "OnClickOutside",
|
|
639
652
|
props: ["as", "options"],
|
|
640
653
|
emits: ["trigger"],
|
|
641
654
|
setup(e, { slots: t, emit: l }) {
|
|
642
655
|
const o = b();
|
|
643
|
-
return
|
|
656
|
+
return Kt(o, (n) => {
|
|
644
657
|
l("trigger", n);
|
|
645
658
|
}, e.options), () => {
|
|
646
659
|
if (t.default)
|
|
@@ -648,9 +661,9 @@ const il = /* @__PURE__ */ $({
|
|
|
648
661
|
};
|
|
649
662
|
}
|
|
650
663
|
});
|
|
651
|
-
function
|
|
664
|
+
function C(e) {
|
|
652
665
|
var t;
|
|
653
|
-
const l =
|
|
666
|
+
const l = P(e);
|
|
654
667
|
return (t = l == null ? void 0 : l.$el) != null ? t : l;
|
|
655
668
|
}
|
|
656
669
|
const M = U ? window : void 0;
|
|
@@ -661,7 +674,7 @@ function A(...e) {
|
|
|
661
674
|
Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
|
|
662
675
|
const r = [], s = () => {
|
|
663
676
|
r.forEach((u) => u()), r.length = 0;
|
|
664
|
-
}, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [
|
|
677
|
+
}, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [C(t), P(n)], ([u, v]) => {
|
|
665
678
|
s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
|
|
666
679
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
667
680
|
c(), s();
|
|
@@ -679,12 +692,12 @@ function xe(e, t, l = {}) {
|
|
|
679
692
|
if (typeof y == "string")
|
|
680
693
|
return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
|
|
681
694
|
{
|
|
682
|
-
const d =
|
|
695
|
+
const d = C(y);
|
|
683
696
|
return d && (i.target === d || i.composedPath().includes(d));
|
|
684
697
|
}
|
|
685
698
|
}), u = [
|
|
686
699
|
A(o, "click", (i) => {
|
|
687
|
-
const y =
|
|
700
|
+
const y = C(e);
|
|
688
701
|
if (!(!y || y === i.target || i.composedPath().includes(y))) {
|
|
689
702
|
if (i.detail === 0 && (a = !c(i)), !a) {
|
|
690
703
|
a = !0;
|
|
@@ -694,47 +707,47 @@ function xe(e, t, l = {}) {
|
|
|
694
707
|
}
|
|
695
708
|
}, { passive: !0, capture: r }),
|
|
696
709
|
A(o, "pointerdown", (i) => {
|
|
697
|
-
const y =
|
|
710
|
+
const y = C(e);
|
|
698
711
|
y && (a = !i.composedPath().includes(y) && !c(i));
|
|
699
712
|
}, { passive: !0 }),
|
|
700
713
|
s && A(o, "blur", (i) => {
|
|
701
714
|
var y;
|
|
702
|
-
const d =
|
|
715
|
+
const d = C(e);
|
|
703
716
|
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
|
|
704
717
|
})
|
|
705
718
|
].filter(Boolean);
|
|
706
719
|
return () => u.forEach((i) => i());
|
|
707
720
|
}
|
|
708
721
|
R.mounted + "", R.unmounted + "";
|
|
709
|
-
const
|
|
722
|
+
const sl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
710
723
|
function Oe(...e) {
|
|
711
724
|
let t, l, o = {};
|
|
712
725
|
e.length === 3 ? (t = e[0], l = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, l = e[0], o = e[1]) : (t = e[0], l = e[1]) : (t = !0, l = e[0]);
|
|
713
|
-
const { target: n = M, eventName: r = "keydown", passive: s = !1 } = o, a =
|
|
726
|
+
const { target: n = M, eventName: r = "keydown", passive: s = !1 } = o, a = sl(t);
|
|
714
727
|
return A(n, r, (f) => {
|
|
715
728
|
a(f) && l(f);
|
|
716
729
|
}, s);
|
|
717
730
|
}
|
|
718
|
-
var
|
|
731
|
+
var ul = Object.defineProperty, Ie = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, cl = Object.prototype.propertyIsEnumerable, Be = (e, t, l) => t in e ? ul(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, fl = (e, t) => {
|
|
719
732
|
for (var l in t || (t = {}))
|
|
720
|
-
|
|
733
|
+
dl.call(t, l) && Be(e, l, t[l]);
|
|
721
734
|
if (Ie)
|
|
722
735
|
for (var l of Ie(t))
|
|
723
|
-
|
|
736
|
+
cl.call(t, l) && Be(e, l, t[l]);
|
|
724
737
|
return e;
|
|
725
738
|
};
|
|
726
739
|
R.mounted + "";
|
|
727
|
-
const
|
|
740
|
+
const yl = 500;
|
|
728
741
|
function Le(e, t, l) {
|
|
729
742
|
var o, n;
|
|
730
|
-
const r = x(() =>
|
|
743
|
+
const r = x(() => C(e));
|
|
731
744
|
let s;
|
|
732
745
|
function a() {
|
|
733
746
|
s && (clearTimeout(s), s = void 0);
|
|
734
747
|
}
|
|
735
748
|
function c(u) {
|
|
736
749
|
var v, i, y, d;
|
|
737
|
-
(v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== r.value || (a(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && u.preventDefault(), (y = l == null ? void 0 : l.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d :
|
|
750
|
+
(v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== r.value || (a(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && u.preventDefault(), (y = l == null ? void 0 : l.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d : yl));
|
|
738
751
|
}
|
|
739
752
|
const f = {
|
|
740
753
|
capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
|
|
@@ -750,7 +763,7 @@ function Qe(e, t = !1) {
|
|
|
750
763
|
const l = b(), o = () => l.value = Boolean(e());
|
|
751
764
|
return o(), Ke(o, t), l;
|
|
752
765
|
}
|
|
753
|
-
function
|
|
766
|
+
function vl(e, t = {}) {
|
|
754
767
|
const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = b(!1);
|
|
755
768
|
let r;
|
|
756
769
|
const s = (a) => {
|
|
@@ -760,21 +773,21 @@ function yl(e, t = {}) {
|
|
|
760
773
|
return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
|
|
761
774
|
}
|
|
762
775
|
R.mounted + "";
|
|
763
|
-
var Ee = Object.getOwnPropertySymbols,
|
|
776
|
+
var Ee = Object.getOwnPropertySymbols, ml = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable, hl = (e, t) => {
|
|
764
777
|
var l = {};
|
|
765
778
|
for (var o in e)
|
|
766
|
-
|
|
779
|
+
ml.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
|
|
767
780
|
if (e != null && Ee)
|
|
768
781
|
for (var o of Ee(e))
|
|
769
|
-
t.indexOf(o) < 0 &&
|
|
782
|
+
t.indexOf(o) < 0 && pl.call(e, o) && (l[o] = e[o]);
|
|
770
783
|
return l;
|
|
771
784
|
};
|
|
772
|
-
function
|
|
773
|
-
const o = l, { window: n = M } = o, r =
|
|
785
|
+
function bl(e, t, l = {}) {
|
|
786
|
+
const o = l, { window: n = M } = o, r = hl(o, ["window"]);
|
|
774
787
|
let s;
|
|
775
788
|
const a = Qe(() => n && "ResizeObserver" in n), c = () => {
|
|
776
789
|
s && (s.disconnect(), s = void 0);
|
|
777
|
-
}, f = B(() =>
|
|
790
|
+
}, f = B(() => C(e), (v) => {
|
|
778
791
|
c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
|
|
779
792
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
780
793
|
c(), f();
|
|
@@ -784,15 +797,15 @@ function hl(e, t, l = {}) {
|
|
|
784
797
|
stop: u
|
|
785
798
|
};
|
|
786
799
|
}
|
|
787
|
-
function
|
|
800
|
+
function gl(e, t = { width: 0, height: 0 }, l = {}) {
|
|
788
801
|
const { window: o = M, box: n = "content-box" } = l, r = x(() => {
|
|
789
802
|
var c, f;
|
|
790
|
-
return (f = (c =
|
|
803
|
+
return (f = (c = C(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
791
804
|
}), s = b(t.width), a = b(t.height);
|
|
792
|
-
return
|
|
805
|
+
return bl(e, ([c]) => {
|
|
793
806
|
const f = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
|
|
794
807
|
if (o && r.value) {
|
|
795
|
-
const u =
|
|
808
|
+
const u = C(e);
|
|
796
809
|
if (u) {
|
|
797
810
|
const v = o.getComputedStyle(u);
|
|
798
811
|
s.value = parseFloat(v.width), a.value = parseFloat(v.height);
|
|
@@ -802,7 +815,7 @@ function bl(e, t = { width: 0, height: 0 }, l = {}) {
|
|
|
802
815
|
s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
|
|
803
816
|
} else
|
|
804
817
|
s.value = c.contentRect.width, a.value = c.contentRect.height;
|
|
805
|
-
}, l), B(() =>
|
|
818
|
+
}, l), B(() => C(e), (c) => {
|
|
806
819
|
s.value = c ? t.width : 0, a.value = c ? t.height : 0;
|
|
807
820
|
}), {
|
|
808
821
|
width: s,
|
|
@@ -810,11 +823,11 @@ function bl(e, t = { width: 0, height: 0 }, l = {}) {
|
|
|
810
823
|
};
|
|
811
824
|
}
|
|
812
825
|
R.mounted + "";
|
|
813
|
-
function
|
|
826
|
+
function Pe(e, { window: t = M, scrollTarget: l } = {}) {
|
|
814
827
|
const o = b(!1), n = () => {
|
|
815
828
|
if (!t)
|
|
816
829
|
return;
|
|
817
|
-
const r = t.document, s =
|
|
830
|
+
const r = t.document, s = C(e);
|
|
818
831
|
if (!s)
|
|
819
832
|
o.value = !1;
|
|
820
833
|
else {
|
|
@@ -822,13 +835,13 @@ function Ce(e, { window: t = M, scrollTarget: l } = {}) {
|
|
|
822
835
|
o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
|
|
823
836
|
}
|
|
824
837
|
};
|
|
825
|
-
return B(() =>
|
|
838
|
+
return B(() => C(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
|
|
826
839
|
capture: !1,
|
|
827
840
|
passive: !0
|
|
828
841
|
}), o;
|
|
829
842
|
}
|
|
830
843
|
R.mounted + "";
|
|
831
|
-
const
|
|
844
|
+
const Ce = 1;
|
|
832
845
|
function de(e, t = {}) {
|
|
833
846
|
const {
|
|
834
847
|
throttle: l = 0,
|
|
@@ -863,11 +876,11 @@ function de(e, t = {}) {
|
|
|
863
876
|
});
|
|
864
877
|
function y(O, T) {
|
|
865
878
|
var D, F, ge;
|
|
866
|
-
const ne =
|
|
879
|
+
const ne = P(e);
|
|
867
880
|
ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
|
|
868
|
-
top: (D =
|
|
869
|
-
left: (F =
|
|
870
|
-
behavior:
|
|
881
|
+
top: (D = P(T)) != null ? D : i.value,
|
|
882
|
+
left: (F = P(O)) != null ? F : v.value,
|
|
883
|
+
behavior: P(c)
|
|
871
884
|
}));
|
|
872
885
|
}
|
|
873
886
|
const d = b(!1), j = X({
|
|
@@ -882,13 +895,13 @@ function de(e, t = {}) {
|
|
|
882
895
|
bottom: !1
|
|
883
896
|
}), Y = (O) => {
|
|
884
897
|
d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(O));
|
|
885
|
-
}, oe =
|
|
898
|
+
}, oe = Wt(Y, l + o), E = (O) => {
|
|
886
899
|
const T = O.target === document ? O.target.documentElement : O.target, D = T.scrollLeft;
|
|
887
|
-
S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) -
|
|
900
|
+
S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) - Ce, f.value = D;
|
|
888
901
|
let F = T.scrollTop;
|
|
889
|
-
O.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 + T.clientHeight >= T.scrollHeight - (s.bottom || 0) -
|
|
902
|
+
O.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 + T.clientHeight >= T.scrollHeight - (s.bottom || 0) - Ce, u.value = F, d.value = !0, oe(O), r(O);
|
|
890
903
|
};
|
|
891
|
-
return A(e, "scroll", l ?
|
|
904
|
+
return A(e, "scroll", l ? Ut(E, l, !0, !1) : E, a), A(e, "scrollend", Y, a), {
|
|
892
905
|
x: v,
|
|
893
906
|
y: i,
|
|
894
907
|
isScrolling: d,
|
|
@@ -896,17 +909,17 @@ function de(e, t = {}) {
|
|
|
896
909
|
directions: S
|
|
897
910
|
};
|
|
898
911
|
}
|
|
899
|
-
var
|
|
912
|
+
var _l = Object.defineProperty, wl = Object.defineProperties, Sl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, jl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? _l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Te = (e, t) => {
|
|
900
913
|
for (var l in t || (t = {}))
|
|
901
|
-
|
|
914
|
+
jl.call(t, l) && qe(e, l, t[l]);
|
|
902
915
|
if (Je)
|
|
903
916
|
for (var l of Je(t))
|
|
904
|
-
|
|
917
|
+
kl.call(t, l) && qe(e, l, t[l]);
|
|
905
918
|
return e;
|
|
906
|
-
},
|
|
919
|
+
}, $l = (e, t) => wl(e, Sl(t));
|
|
907
920
|
function ze(e, t, l = {}) {
|
|
908
921
|
var o, n;
|
|
909
|
-
const r = (o = l.direction) != null ? o : "bottom", s = X(de(e,
|
|
922
|
+
const r = (o = l.direction) != null ? o : "bottom", s = X(de(e, $l(Te({}, l), {
|
|
910
923
|
offset: Te({
|
|
911
924
|
[r]: (n = l.distance) != null ? n : 0
|
|
912
925
|
}, l.offset)
|
|
@@ -914,7 +927,7 @@ function ze(e, t, l = {}) {
|
|
|
914
927
|
B(() => s.arrivedState[r], async (a) => {
|
|
915
928
|
var c, f;
|
|
916
929
|
if (a) {
|
|
917
|
-
const u =
|
|
930
|
+
const u = P(e), v = {
|
|
918
931
|
height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
|
|
919
932
|
width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
|
|
920
933
|
};
|
|
@@ -937,8 +950,8 @@ function Ae(e, t, l = {}) {
|
|
|
937
950
|
} = l, a = Qe(() => s && "IntersectionObserver" in s);
|
|
938
951
|
let c = z;
|
|
939
952
|
const f = a.value ? B(() => ({
|
|
940
|
-
el:
|
|
941
|
-
root:
|
|
953
|
+
el: C(e),
|
|
954
|
+
root: C(o)
|
|
942
955
|
}), ({ el: v, root: i }) => {
|
|
943
956
|
if (c(), !v)
|
|
944
957
|
return;
|
|
@@ -959,14 +972,14 @@ function Ae(e, t, l = {}) {
|
|
|
959
972
|
};
|
|
960
973
|
}
|
|
961
974
|
R.mounted + "";
|
|
962
|
-
var
|
|
975
|
+
var Vl = Object.defineProperty, xl = Object.defineProperties, Ol = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Il = Object.prototype.hasOwnProperty, Bl = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Vl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ll = (e, t) => {
|
|
963
976
|
for (var l in t || (t = {}))
|
|
964
|
-
|
|
977
|
+
Il.call(t, l) && De(e, l, t[l]);
|
|
965
978
|
if (Fe)
|
|
966
979
|
for (var l of Fe(t))
|
|
967
|
-
|
|
980
|
+
Bl.call(t, l) && De(e, l, t[l]);
|
|
968
981
|
return e;
|
|
969
|
-
},
|
|
982
|
+
}, El = (e, t) => xl(e, Ol(t));
|
|
970
983
|
R.mounted + "";
|
|
971
984
|
function Ze(e) {
|
|
972
985
|
const t = window.getComputedStyle(e);
|
|
@@ -977,14 +990,14 @@ function Ze(e) {
|
|
|
977
990
|
return !l || l.tagName === "BODY" ? !1 : Ze(l);
|
|
978
991
|
}
|
|
979
992
|
}
|
|
980
|
-
function
|
|
993
|
+
function Pl(e) {
|
|
981
994
|
const t = e || window.event, l = t.target;
|
|
982
995
|
return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
983
996
|
}
|
|
984
997
|
function Cl(e, t = !1) {
|
|
985
998
|
const l = b(t);
|
|
986
999
|
let o = null, n;
|
|
987
|
-
B(
|
|
1000
|
+
B(Gt(e), (a) => {
|
|
988
1001
|
if (a) {
|
|
989
1002
|
const c = a;
|
|
990
1003
|
n = c.style.overflow, l.value && (c.style.overflow = "hidden");
|
|
@@ -993,12 +1006,12 @@ function Cl(e, t = !1) {
|
|
|
993
1006
|
immediate: !0
|
|
994
1007
|
});
|
|
995
1008
|
const r = () => {
|
|
996
|
-
const a =
|
|
1009
|
+
const a = P(e);
|
|
997
1010
|
!a || l.value || (ee && (o = A(a, "touchmove", (c) => {
|
|
998
|
-
|
|
1011
|
+
Pl(c);
|
|
999
1012
|
}, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
|
|
1000
1013
|
}, s = () => {
|
|
1001
|
-
const a =
|
|
1014
|
+
const a = P(e);
|
|
1002
1015
|
!a || !l.value || (ee && (o == null || o()), a.style.overflow = n, l.value = !1);
|
|
1003
1016
|
};
|
|
1004
1017
|
return G(s), x({
|
|
@@ -1010,7 +1023,7 @@ function Cl(e, t = !1) {
|
|
|
1010
1023
|
}
|
|
1011
1024
|
});
|
|
1012
1025
|
}
|
|
1013
|
-
const
|
|
1026
|
+
const Jl = () => {
|
|
1014
1027
|
let e = !1;
|
|
1015
1028
|
const t = b(!1);
|
|
1016
1029
|
return (l, o) => {
|
|
@@ -1021,17 +1034,20 @@ const Pl = () => {
|
|
|
1021
1034
|
B(t, (r) => n.value = r);
|
|
1022
1035
|
};
|
|
1023
1036
|
};
|
|
1024
|
-
|
|
1025
|
-
const Ye = ["medium", "small"],
|
|
1037
|
+
Jl();
|
|
1038
|
+
const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Tl = {
|
|
1026
1039
|
key: 0,
|
|
1027
1040
|
class: "joy-dropdown-list__footer"
|
|
1028
|
-
},
|
|
1041
|
+
}, zl = /* @__PURE__ */ $({
|
|
1029
1042
|
__name: "VJoyDropdownList",
|
|
1030
1043
|
props: {
|
|
1044
|
+
/**
|
|
1045
|
+
* In order to make it work with v-model, you need to pass for each option, a value or an ID.
|
|
1046
|
+
*/
|
|
1031
1047
|
options: {
|
|
1032
1048
|
type: Array,
|
|
1033
1049
|
validator(e) {
|
|
1034
|
-
return e.every((
|
|
1050
|
+
return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
|
|
1035
1051
|
},
|
|
1036
1052
|
default() {
|
|
1037
1053
|
return [];
|
|
@@ -1058,9 +1074,9 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1058
1074
|
},
|
|
1059
1075
|
emits: ["update:modelValue", "close:dropdownList"],
|
|
1060
1076
|
setup(e, { expose: t, emit: l }) {
|
|
1061
|
-
const o = e, n = b(), r = x(() => (i) => !o.modelValue && !i.value ? !1 : o.modelValue === i.
|
|
1077
|
+
const o = e, n = b(), r = x(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
|
|
1062
1078
|
function s(i) {
|
|
1063
|
-
i.disabled || l("update:modelValue", i.
|
|
1079
|
+
i.disabled || l("update:modelValue", i.value || i.id);
|
|
1064
1080
|
}
|
|
1065
1081
|
function a() {
|
|
1066
1082
|
var i;
|
|
@@ -1083,13 +1099,13 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1083
1099
|
return;
|
|
1084
1100
|
if (d.querySelector("a"))
|
|
1085
1101
|
return d.querySelector("a").click();
|
|
1086
|
-
l("update:modelValue", d.
|
|
1102
|
+
l("update:modelValue", d.dataModel);
|
|
1087
1103
|
}
|
|
1088
1104
|
if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
|
|
1089
1105
|
const d = a(), j = f();
|
|
1090
1106
|
let S = d.indexOf(j);
|
|
1091
1107
|
if (d.length) {
|
|
1092
|
-
i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S =
|
|
1108
|
+
i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), v(d[S]);
|
|
1093
1109
|
return;
|
|
1094
1110
|
}
|
|
1095
1111
|
}
|
|
@@ -1105,7 +1121,7 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1105
1121
|
isSelected: r
|
|
1106
1122
|
}), (i, y) => (m(), p("div", {
|
|
1107
1123
|
class: "joy-dropdown-list",
|
|
1108
|
-
style: K({ "max-width": `${e.width}px`, "max-height": `${e.height}px` })
|
|
1124
|
+
style: K({ width: `${e.width}px`, "max-width": `${e.width}px`, "max-height": `${e.height}px` })
|
|
1109
1125
|
}, [
|
|
1110
1126
|
h("ul", {
|
|
1111
1127
|
ref_key: "listbox",
|
|
@@ -1131,23 +1147,23 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1131
1147
|
"aria-selected": _(r)(d),
|
|
1132
1148
|
title: d.label,
|
|
1133
1149
|
"aria-label": d.label,
|
|
1134
|
-
".
|
|
1150
|
+
".dataModel": d.value || d.id,
|
|
1135
1151
|
role: "option",
|
|
1136
1152
|
onClick: (j) => s(d)
|
|
1137
1153
|
}, [
|
|
1138
1154
|
g(i.$slots, "label", me(pe(d)), () => [
|
|
1139
1155
|
h("span", null, I(d.label), 1)
|
|
1140
1156
|
], !0)
|
|
1141
|
-
], 14,
|
|
1157
|
+
], 14, ql))), 128))
|
|
1142
1158
|
], 4),
|
|
1143
|
-
i.$slots.footer ? (m(), p("footer",
|
|
1159
|
+
i.$slots.footer ? (m(), p("footer", Tl, [
|
|
1144
1160
|
g(i.$slots, "footer", {}, void 0, !0)
|
|
1145
1161
|
])) : w("", !0)
|
|
1146
1162
|
], 4));
|
|
1147
1163
|
}
|
|
1148
1164
|
});
|
|
1149
|
-
const Xe = /* @__PURE__ */ V(
|
|
1150
|
-
function
|
|
1165
|
+
const Xe = /* @__PURE__ */ V(zl, [["__scopeId", "data-v-af851385"]]);
|
|
1166
|
+
function Al(e) {
|
|
1151
1167
|
const t = () => e();
|
|
1152
1168
|
Z(() => {
|
|
1153
1169
|
window.addEventListener("resize", t);
|
|
@@ -1155,7 +1171,7 @@ function zl(e) {
|
|
|
1155
1171
|
window.removeEventListener("resize", t);
|
|
1156
1172
|
});
|
|
1157
1173
|
}
|
|
1158
|
-
const
|
|
1174
|
+
const Fl = /* @__PURE__ */ $({
|
|
1159
1175
|
__name: "VJoyDropdown",
|
|
1160
1176
|
props: {
|
|
1161
1177
|
/** DOM valid selector to give to Vue3 Teleport "to" property */
|
|
@@ -1232,7 +1248,7 @@ const Al = /* @__PURE__ */ $({
|
|
|
1232
1248
|
default: "300"
|
|
1233
1249
|
}
|
|
1234
1250
|
},
|
|
1235
|
-
emits: ["update:modelValue"],
|
|
1251
|
+
emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
|
|
1236
1252
|
setup(e, { expose: t, emit: l }) {
|
|
1237
1253
|
const o = e, n = b(!1), r = b(null), s = b(), a = b(null), c = b(null), f = b(!1), u = {
|
|
1238
1254
|
ignore: [s, ".joy-dropdown__list"]
|
|
@@ -1245,11 +1261,11 @@ const Al = /* @__PURE__ */ $({
|
|
|
1245
1261
|
});
|
|
1246
1262
|
function y() {
|
|
1247
1263
|
v && clearTimeout(v), f.value = !0, v = setTimeout(() => {
|
|
1248
|
-
n.value = !1, f.value = !1;
|
|
1264
|
+
n.value = !1, f.value = !1, l("dropdown:hide");
|
|
1249
1265
|
}, 300);
|
|
1250
1266
|
}
|
|
1251
1267
|
function d(E) {
|
|
1252
|
-
f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, n.value = !0;
|
|
1268
|
+
f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, n.value = !0, l("dropdown:open");
|
|
1253
1269
|
}
|
|
1254
1270
|
function j() {
|
|
1255
1271
|
y(), S();
|
|
@@ -1264,9 +1280,9 @@ const Al = /* @__PURE__ */ $({
|
|
|
1264
1280
|
function oe(E) {
|
|
1265
1281
|
l("update:modelValue", E), o.closeOnSelect && (y(), S());
|
|
1266
1282
|
}
|
|
1267
|
-
return
|
|
1283
|
+
return Al(y), t({
|
|
1268
1284
|
showDropdownList: n
|
|
1269
|
-
}), (E, O) => (m(), q(_(
|
|
1285
|
+
}), (E, O) => (m(), q(_(rl), {
|
|
1270
1286
|
ref_key: "dropdown",
|
|
1271
1287
|
ref: r,
|
|
1272
1288
|
options: u,
|
|
@@ -1326,10 +1342,10 @@ const Al = /* @__PURE__ */ $({
|
|
|
1326
1342
|
}, 512));
|
|
1327
1343
|
}
|
|
1328
1344
|
});
|
|
1329
|
-
const
|
|
1345
|
+
const Dl = /* @__PURE__ */ V(Fl, [["__scopeId", "data-v-6caf97fb"]]), Rl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Ml = ["aria-hidden"], Nl = /* @__PURE__ */ Rl(() => /* @__PURE__ */ h("joy-icon", {
|
|
1330
1346
|
"custom-class": "joy-icon-error",
|
|
1331
1347
|
name: "warning-triangle"
|
|
1332
|
-
}, null, -1)),
|
|
1348
|
+
}, null, -1)), Hl = /* @__PURE__ */ $({
|
|
1333
1349
|
__name: "VJoyFormError",
|
|
1334
1350
|
props: {
|
|
1335
1351
|
/** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
|
|
@@ -1346,17 +1362,17 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-49159b35"]]), Dl = (e) =
|
|
|
1346
1362
|
class: k(["joy-form-error", { "joy-has-error": e.visible }]),
|
|
1347
1363
|
role: "alert"
|
|
1348
1364
|
}, [
|
|
1349
|
-
|
|
1365
|
+
Nl,
|
|
1350
1366
|
h("div", null, [
|
|
1351
1367
|
g(t.$slots, "default", {}, () => [
|
|
1352
1368
|
J(I(e.noHtmlErrorText), 1)
|
|
1353
1369
|
], !0)
|
|
1354
1370
|
])
|
|
1355
|
-
], 10,
|
|
1371
|
+
], 10, Ml));
|
|
1356
1372
|
}
|
|
1357
1373
|
});
|
|
1358
|
-
const et = /* @__PURE__ */ V(
|
|
1359
|
-
function
|
|
1374
|
+
const et = /* @__PURE__ */ V(Hl, [["__scopeId", "data-v-50e209d6"]]);
|
|
1375
|
+
function Wl(e) {
|
|
1360
1376
|
let t;
|
|
1361
1377
|
switch (e) {
|
|
1362
1378
|
case "error":
|
|
@@ -1370,7 +1386,7 @@ function Hl(e) {
|
|
|
1370
1386
|
}
|
|
1371
1387
|
return t;
|
|
1372
1388
|
}
|
|
1373
|
-
const
|
|
1389
|
+
const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /* @__PURE__ */ $({
|
|
1374
1390
|
__name: "VJoyHighlight",
|
|
1375
1391
|
props: {
|
|
1376
1392
|
accent: {
|
|
@@ -1386,12 +1402,12 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
|
|
|
1386
1402
|
type: String,
|
|
1387
1403
|
default: "neutral",
|
|
1388
1404
|
validator(e) {
|
|
1389
|
-
return
|
|
1405
|
+
return Ul.includes(e);
|
|
1390
1406
|
}
|
|
1391
1407
|
}
|
|
1392
1408
|
},
|
|
1393
1409
|
setup(e, { expose: t }) {
|
|
1394
|
-
const l = e, o = x(() => l.icon ? l.icon :
|
|
1410
|
+
const l = e, o = x(() => l.icon ? l.icon : Wl(l.level));
|
|
1395
1411
|
return t({
|
|
1396
1412
|
getRelevantIcon: o
|
|
1397
1413
|
}), (n, r) => (m(), p("div", {
|
|
@@ -1407,8 +1423,8 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
|
|
|
1407
1423
|
e.displayIcon ? (m(), p("joy-icon", {
|
|
1408
1424
|
key: 0,
|
|
1409
1425
|
name: _(o)
|
|
1410
|
-
}, null, 8,
|
|
1411
|
-
h("div",
|
|
1426
|
+
}, null, 8, Gl)) : w("", !0),
|
|
1427
|
+
h("div", Kl, [
|
|
1412
1428
|
h("strong", null, [
|
|
1413
1429
|
g(n.$slots, "highlight-title", {}, void 0, !0)
|
|
1414
1430
|
]),
|
|
@@ -1417,20 +1433,20 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
|
|
|
1417
1433
|
], 2));
|
|
1418
1434
|
}
|
|
1419
1435
|
});
|
|
1420
|
-
const
|
|
1436
|
+
const Zl = /* @__PURE__ */ V(Ql, [["__scopeId", "data-v-a0ff7a60"]]), Yl = ["small", "medium", "large"], Xl = {
|
|
1421
1437
|
key: 0,
|
|
1422
1438
|
class: "joy-label-required"
|
|
1423
|
-
},
|
|
1439
|
+
}, eo = {
|
|
1424
1440
|
key: 1,
|
|
1425
1441
|
class: "joy-label-optional"
|
|
1426
|
-
},
|
|
1442
|
+
}, to = /* @__PURE__ */ $({
|
|
1427
1443
|
__name: "VJoyLabel",
|
|
1428
1444
|
props: {
|
|
1429
1445
|
size: {
|
|
1430
1446
|
type: String,
|
|
1431
1447
|
default: "medium",
|
|
1432
1448
|
validator(e) {
|
|
1433
|
-
return
|
|
1449
|
+
return Yl.includes(e);
|
|
1434
1450
|
}
|
|
1435
1451
|
},
|
|
1436
1452
|
tagName: {
|
|
@@ -1451,14 +1467,14 @@ const Ql = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-a0ff7a60"]]), Zl = ["sma
|
|
|
1451
1467
|
}, t.$attrs), {
|
|
1452
1468
|
default: L(() => [
|
|
1453
1469
|
g(t.$slots, "default", {}, void 0, !0),
|
|
1454
|
-
e.required ? (m(), p("span",
|
|
1455
|
-
e.optionalLabel ? (m(), p("span",
|
|
1470
|
+
e.required ? (m(), p("span", Xl, "*")) : w("", !0),
|
|
1471
|
+
e.optionalLabel ? (m(), p("span", eo, "- " + I(e.optionalLabel), 1)) : w("", !0)
|
|
1456
1472
|
]),
|
|
1457
1473
|
_: 3
|
|
1458
1474
|
}, 16, ["class"]));
|
|
1459
1475
|
}
|
|
1460
1476
|
});
|
|
1461
|
-
const N = /* @__PURE__ */ V(
|
|
1477
|
+
const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["large", "medium", "small"], oo = ["id", "disabled", "type", "value"], no = ["name"], ao = ["data-unit"], io = /* @__PURE__ */ $({
|
|
1462
1478
|
__name: "VJoyInput",
|
|
1463
1479
|
props: {
|
|
1464
1480
|
disabled: {
|
|
@@ -1509,7 +1525,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1509
1525
|
type: String,
|
|
1510
1526
|
default: "medium",
|
|
1511
1527
|
validator(e) {
|
|
1512
|
-
return
|
|
1528
|
+
return lo.includes(e);
|
|
1513
1529
|
}
|
|
1514
1530
|
},
|
|
1515
1531
|
type: String,
|
|
@@ -1600,7 +1616,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1600
1616
|
(...j) => i.onBlur && i.onBlur(...j)),
|
|
1601
1617
|
onInput: d[2] || (d[2] = //@ts-ignore
|
|
1602
1618
|
(...j) => i.onInput && i.onInput(...j))
|
|
1603
|
-
}), null, 16,
|
|
1619
|
+
}), null, 16, oo),
|
|
1604
1620
|
_(c) ? (m(), p("joy-icon", {
|
|
1605
1621
|
key: 0,
|
|
1606
1622
|
size: "xxsmall",
|
|
@@ -1614,18 +1630,18 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1614
1630
|
role: "img",
|
|
1615
1631
|
class: "joy-input--decorative-icon",
|
|
1616
1632
|
name: e.icon
|
|
1617
|
-
}, null, 8,
|
|
1633
|
+
}, null, 8, no)) : w("", !0),
|
|
1618
1634
|
e.unit ? (m(), p("div", {
|
|
1619
1635
|
key: 2,
|
|
1620
1636
|
"data-unit": e.unit,
|
|
1621
1637
|
class: "joy-input--unit"
|
|
1622
|
-
}, null, 8,
|
|
1638
|
+
}, null, 8, ao)) : w("", !0)
|
|
1623
1639
|
], 2)
|
|
1624
1640
|
], 2)
|
|
1625
1641
|
], 2));
|
|
1626
1642
|
}
|
|
1627
1643
|
});
|
|
1628
|
-
const
|
|
1644
|
+
const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-8258d6d7"]]), so = ["teal", "white"], uo = ["href"], co = ["color", "name"], fo = /* @__PURE__ */ $({
|
|
1629
1645
|
__name: "VJoyLink",
|
|
1630
1646
|
props: {
|
|
1631
1647
|
href: {
|
|
@@ -1636,7 +1652,7 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
|
|
|
1636
1652
|
type: String,
|
|
1637
1653
|
default: "teal",
|
|
1638
1654
|
validator(e) {
|
|
1639
|
-
return
|
|
1655
|
+
return so.includes(e);
|
|
1640
1656
|
}
|
|
1641
1657
|
},
|
|
1642
1658
|
icon: String
|
|
@@ -1650,14 +1666,14 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
|
|
|
1650
1666
|
key: 0,
|
|
1651
1667
|
color: _(l),
|
|
1652
1668
|
name: e.icon
|
|
1653
|
-
}, null, 8,
|
|
1669
|
+
}, null, 8, co)) : w("", !0),
|
|
1654
1670
|
g(o.$slots, "default", {}, void 0, !0)
|
|
1655
|
-
], 16,
|
|
1671
|
+
], 16, uo));
|
|
1656
1672
|
}
|
|
1657
1673
|
});
|
|
1658
|
-
const
|
|
1674
|
+
const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-7ef59bc8"]]), vo = ["id"], mo = {
|
|
1659
1675
|
class: /* @__PURE__ */ k(["joy-multi-checkbox"])
|
|
1660
|
-
},
|
|
1676
|
+
}, po = /* @__PURE__ */ $({
|
|
1661
1677
|
__name: "VJoyMultiCheckbox",
|
|
1662
1678
|
props: {
|
|
1663
1679
|
options: {
|
|
@@ -1720,7 +1736,7 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1720
1736
|
]),
|
|
1721
1737
|
_: 1
|
|
1722
1738
|
}, 8, ["required", "optional-label", "size"])) : w("", !0),
|
|
1723
|
-
h("div",
|
|
1739
|
+
h("div", mo, [
|
|
1724
1740
|
(m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(he), {
|
|
1725
1741
|
id: a.id,
|
|
1726
1742
|
key: a.id,
|
|
@@ -1737,25 +1753,25 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1737
1753
|
_: 2
|
|
1738
1754
|
}, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
|
|
1739
1755
|
])
|
|
1740
|
-
], 8,
|
|
1756
|
+
], 8, vo));
|
|
1741
1757
|
}
|
|
1742
1758
|
});
|
|
1743
|
-
const
|
|
1759
|
+
const ho = /* @__PURE__ */ V(po, [["__scopeId", "data-v-f4301a1f"]]), bo = ["small", "medium", "large"], go = {
|
|
1744
1760
|
key: 0,
|
|
1745
1761
|
class: /* @__PURE__ */ k(["joy-panel__header"])
|
|
1746
|
-
},
|
|
1762
|
+
}, _o = {
|
|
1747
1763
|
key: 0,
|
|
1748
1764
|
class: "joy-panel__header-title"
|
|
1749
|
-
},
|
|
1765
|
+
}, wo = {
|
|
1750
1766
|
key: 1,
|
|
1751
1767
|
class: "joy-panel__header-action"
|
|
1752
|
-
},
|
|
1768
|
+
}, So = {
|
|
1753
1769
|
key: 2,
|
|
1754
1770
|
class: "joy-panel__header-subtitle"
|
|
1755
|
-
},
|
|
1771
|
+
}, jo = { class: "joy-panel__body" }, ko = {
|
|
1756
1772
|
key: 1,
|
|
1757
1773
|
class: "joy-panel__footer"
|
|
1758
|
-
},
|
|
1774
|
+
}, $o = /* @__PURE__ */ $({
|
|
1759
1775
|
__name: "VJoyPanel",
|
|
1760
1776
|
props: {
|
|
1761
1777
|
flex: {
|
|
@@ -1769,7 +1785,7 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
|
|
|
1769
1785
|
type: String,
|
|
1770
1786
|
default: "medium",
|
|
1771
1787
|
validator(e) {
|
|
1772
|
-
return
|
|
1788
|
+
return bo.includes(e);
|
|
1773
1789
|
}
|
|
1774
1790
|
}
|
|
1775
1791
|
},
|
|
@@ -1781,47 +1797,47 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
|
|
|
1781
1797
|
style: K({ flex: e.flex }),
|
|
1782
1798
|
class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin }])
|
|
1783
1799
|
}, [
|
|
1784
|
-
_(o) ? (m(), p("header",
|
|
1785
|
-
_(t)["panel-title"] ? (m(), p("div",
|
|
1800
|
+
_(o) ? (m(), p("header", go, [
|
|
1801
|
+
_(t)["panel-title"] ? (m(), p("div", _o, [
|
|
1786
1802
|
g(n.$slots, "panel-title", {}, void 0, !0)
|
|
1787
1803
|
])) : w("", !0),
|
|
1788
|
-
_(t)["panel-title-action"] ? (m(), p("div",
|
|
1804
|
+
_(t)["panel-title-action"] ? (m(), p("div", wo, [
|
|
1789
1805
|
g(n.$slots, "panel-title-action", {}, void 0, !0)
|
|
1790
1806
|
])) : w("", !0),
|
|
1791
|
-
_(t)["panel-subtitle"] ? (m(), p("div",
|
|
1807
|
+
_(t)["panel-subtitle"] ? (m(), p("div", So, [
|
|
1792
1808
|
g(n.$slots, "panel-subtitle", {}, void 0, !0)
|
|
1793
1809
|
])) : w("", !0)
|
|
1794
1810
|
])) : w("", !0),
|
|
1795
|
-
h("div",
|
|
1811
|
+
h("div", jo, [
|
|
1796
1812
|
g(n.$slots, "panel-body", {}, void 0, !0)
|
|
1797
1813
|
]),
|
|
1798
|
-
_(t)["panel-action"] ? (m(), p("footer",
|
|
1814
|
+
_(t)["panel-action"] ? (m(), p("footer", ko, [
|
|
1799
1815
|
g(n.$slots, "panel-action", {}, void 0, !0)
|
|
1800
1816
|
])) : w("", !0)
|
|
1801
1817
|
], 6));
|
|
1802
1818
|
}
|
|
1803
1819
|
});
|
|
1804
|
-
const
|
|
1820
|
+
const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-1aadee0b"]]), xo = { class: "joy-panel-section" }, Oo = {
|
|
1805
1821
|
key: 0,
|
|
1806
1822
|
class: "joy-panel-section__title"
|
|
1807
|
-
},
|
|
1823
|
+
}, Io = {
|
|
1808
1824
|
key: 1,
|
|
1809
1825
|
class: "joy-panel-section__content"
|
|
1810
|
-
},
|
|
1826
|
+
}, Bo = /* @__PURE__ */ $({
|
|
1811
1827
|
__name: "VJoyPanelSection",
|
|
1812
1828
|
setup(e) {
|
|
1813
1829
|
const t = W();
|
|
1814
|
-
return (l, o) => (m(), p("div",
|
|
1815
|
-
_(t)["panel-section-title"] ? (m(), p("div",
|
|
1830
|
+
return (l, o) => (m(), p("div", xo, [
|
|
1831
|
+
_(t)["panel-section-title"] ? (m(), p("div", Oo, [
|
|
1816
1832
|
g(l.$slots, "panel-section-title", {}, void 0, !0)
|
|
1817
1833
|
])) : w("", !0),
|
|
1818
|
-
_(t)["panel-section-content"] ? (m(), p("div",
|
|
1834
|
+
_(t)["panel-section-content"] ? (m(), p("div", Io, [
|
|
1819
1835
|
g(l.$slots, "panel-section-content", {}, void 0, !0)
|
|
1820
1836
|
])) : w("", !0)
|
|
1821
1837
|
]));
|
|
1822
1838
|
}
|
|
1823
1839
|
});
|
|
1824
|
-
const
|
|
1840
|
+
const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id", "value", "checked", "disabled", "required", "name"], Po = { class: "joy-radio-label" }, Co = { class: "joy-radio-content__wrapper" }, Jo = { class: "joy-radio-content" }, qo = /* @__PURE__ */ $({
|
|
1825
1841
|
__name: "VJoyRadio",
|
|
1826
1842
|
props: {
|
|
1827
1843
|
disabled: {
|
|
@@ -1907,12 +1923,12 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1907
1923
|
onChange: v,
|
|
1908
1924
|
onFocus: i,
|
|
1909
1925
|
onBlur: y
|
|
1910
|
-
}, null, 40,
|
|
1911
|
-
h("span",
|
|
1926
|
+
}, null, 40, Eo),
|
|
1927
|
+
h("span", Po, [
|
|
1912
1928
|
g(d.$slots, "default", {}, void 0, !0)
|
|
1913
1929
|
]),
|
|
1914
1930
|
h("div", Co, [
|
|
1915
|
-
h("div",
|
|
1931
|
+
h("div", Jo, [
|
|
1916
1932
|
g(d.$slots, "radio-content", {}, void 0, !0)
|
|
1917
1933
|
]),
|
|
1918
1934
|
h("div", {
|
|
@@ -1926,7 +1942,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1926
1942
|
], 2));
|
|
1927
1943
|
}
|
|
1928
1944
|
});
|
|
1929
|
-
const
|
|
1945
|
+
const To = /* @__PURE__ */ V(qo, [["__scopeId", "data-v-24cea99b"]]), zo = ["form", "name"], Ao = /* @__PURE__ */ $({
|
|
1930
1946
|
__name: "VJoyRadioGroup",
|
|
1931
1947
|
props: {
|
|
1932
1948
|
direction: {
|
|
@@ -1954,13 +1970,13 @@ const qo = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-24cea99b"]]), To = ["for
|
|
|
1954
1970
|
}, [
|
|
1955
1971
|
g(t.$slots, "default", {}, void 0, !0)
|
|
1956
1972
|
], 2)
|
|
1957
|
-
], 8,
|
|
1973
|
+
], 8, zo));
|
|
1958
1974
|
}
|
|
1959
1975
|
});
|
|
1960
|
-
const
|
|
1976
|
+
const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-de56c3c4"]]), Do = (e) => (te("data-v-d251a432"), e = e(), le(), e), Ro = ["id", "name", "aria-invalid", "required", "disabled", "value"], Mo = /* @__PURE__ */ Do(() => /* @__PURE__ */ h("joy-icon", {
|
|
1961
1977
|
class: "joy-select__chevron",
|
|
1962
1978
|
name: "chevron-down"
|
|
1963
|
-
}, null, -1)),
|
|
1979
|
+
}, null, -1)), No = /* @__PURE__ */ $({
|
|
1964
1980
|
__name: "VJoySelect",
|
|
1965
1981
|
props: {
|
|
1966
1982
|
disabled: {
|
|
@@ -2068,13 +2084,13 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2068
2084
|
onBlur: f
|
|
2069
2085
|
}, [
|
|
2070
2086
|
g(u.$slots, "default", {}, void 0, !0)
|
|
2071
|
-
], 40,
|
|
2072
|
-
|
|
2087
|
+
], 40, Ro),
|
|
2088
|
+
Mo
|
|
2073
2089
|
], 2)
|
|
2074
2090
|
], 512));
|
|
2075
2091
|
}
|
|
2076
2092
|
});
|
|
2077
|
-
const
|
|
2093
|
+
const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["aria-disabled"], Uo = ["id", "value", "checked", "disabled", "required", "name"], Go = /* @__PURE__ */ $({
|
|
2078
2094
|
__name: "VJoySelectableItem",
|
|
2079
2095
|
props: {
|
|
2080
2096
|
disabled: {
|
|
@@ -2159,7 +2175,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2159
2175
|
(...v) => a.onFocus && a.onFocus(...v)),
|
|
2160
2176
|
onBlur: u[2] || (u[2] = //@ts-ignore
|
|
2161
2177
|
(...v) => a.onBlur && a.onBlur(...v))
|
|
2162
|
-
}, null, 40,
|
|
2178
|
+
}, null, 40, Uo)),
|
|
2163
2179
|
(m(), q(ce(_(s)), {
|
|
2164
2180
|
for: e.id,
|
|
2165
2181
|
class: k([
|
|
@@ -2204,10 +2220,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2204
2220
|
]),
|
|
2205
2221
|
_: 3
|
|
2206
2222
|
}, 8, ["for", "class", "onClick"]))
|
|
2207
|
-
], 10,
|
|
2223
|
+
], 10, Wo));
|
|
2208
2224
|
}
|
|
2209
2225
|
});
|
|
2210
|
-
const tt = /* @__PURE__ */ V(
|
|
2226
|
+
const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"], Qo = /* @__PURE__ */ $({
|
|
2211
2227
|
__name: "VJoySelectableItemGroup",
|
|
2212
2228
|
props: {
|
|
2213
2229
|
options: {
|
|
@@ -2307,10 +2323,10 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
|
|
|
2307
2323
|
} : void 0
|
|
2308
2324
|
]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
|
|
2309
2325
|
], 2)
|
|
2310
|
-
], 8,
|
|
2326
|
+
], 8, Ko));
|
|
2311
2327
|
}
|
|
2312
2328
|
});
|
|
2313
|
-
const
|
|
2329
|
+
const Zo = /* @__PURE__ */ V(Qo, [["__scopeId", "data-v-3ba17434"]]), Yo = /* @__PURE__ */ $({
|
|
2314
2330
|
__name: "VJoyWrapper",
|
|
2315
2331
|
props: {
|
|
2316
2332
|
justify: {
|
|
@@ -2349,25 +2365,25 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @_
|
|
|
2349
2365
|
], 2));
|
|
2350
2366
|
}
|
|
2351
2367
|
});
|
|
2352
|
-
const
|
|
2368
|
+
const Xo = /* @__PURE__ */ V(Yo, [["__scopeId", "data-v-477e149b"]]), en = { class: "joy-template__wrapper" }, tn = {
|
|
2353
2369
|
key: 0,
|
|
2354
2370
|
class: "joy-template__heading"
|
|
2355
|
-
},
|
|
2371
|
+
}, ln = {
|
|
2356
2372
|
key: 0,
|
|
2357
2373
|
class: "joy-template-slot-back"
|
|
2358
|
-
},
|
|
2374
|
+
}, on = { class: "joy-template__heading___headings" }, nn = {
|
|
2359
2375
|
key: 0,
|
|
2360
2376
|
class: "joy-template-slot-title"
|
|
2361
|
-
},
|
|
2377
|
+
}, an = {
|
|
2362
2378
|
key: 1,
|
|
2363
2379
|
class: "joy-template-slot-subtitle"
|
|
2364
|
-
},
|
|
2380
|
+
}, rn = {
|
|
2365
2381
|
key: 0,
|
|
2366
2382
|
class: "joy-template-slot-main"
|
|
2367
|
-
},
|
|
2383
|
+
}, sn = {
|
|
2368
2384
|
key: 1,
|
|
2369
2385
|
class: "joy-template-slot-sidebar"
|
|
2370
|
-
},
|
|
2386
|
+
}, un = /* @__PURE__ */ $({
|
|
2371
2387
|
__name: "VJoyTemplate",
|
|
2372
2388
|
props: {
|
|
2373
2389
|
full: { type: Boolean, default: !1 },
|
|
@@ -2378,16 +2394,16 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
|
|
|
2378
2394
|
return (n, r) => (m(), p("main", {
|
|
2379
2395
|
class: k(["joy-template", { "joy-template--full": t.full }])
|
|
2380
2396
|
}, [
|
|
2381
|
-
h("div",
|
|
2382
|
-
_(o) ? (m(), p("div",
|
|
2383
|
-
_(l)["template-back"] ? (m(), p("div",
|
|
2397
|
+
h("div", en, [
|
|
2398
|
+
_(o) ? (m(), p("div", tn, [
|
|
2399
|
+
_(l)["template-back"] ? (m(), p("div", ln, [
|
|
2384
2400
|
g(n.$slots, "template-back", {}, void 0, !0)
|
|
2385
2401
|
])) : w("", !0),
|
|
2386
|
-
h("div",
|
|
2387
|
-
_(l)["template-title"] ? (m(), p("div",
|
|
2402
|
+
h("div", on, [
|
|
2403
|
+
_(l)["template-title"] ? (m(), p("div", nn, [
|
|
2388
2404
|
g(n.$slots, "template-title", {}, void 0, !0)
|
|
2389
2405
|
])) : w("", !0),
|
|
2390
|
-
_(l)["template-subtitle"] ? (m(), p("div",
|
|
2406
|
+
_(l)["template-subtitle"] ? (m(), p("div", an, [
|
|
2391
2407
|
g(n.$slots, "template-subtitle", {}, void 0, !0)
|
|
2392
2408
|
])) : w("", !0)
|
|
2393
2409
|
])
|
|
@@ -2400,10 +2416,10 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
|
|
|
2400
2416
|
}
|
|
2401
2417
|
])
|
|
2402
2418
|
}, [
|
|
2403
|
-
n.$slots["template-main"] ? (m(), p("div",
|
|
2419
|
+
n.$slots["template-main"] ? (m(), p("div", rn, [
|
|
2404
2420
|
g(n.$slots, "template-main", {}, void 0, !0)
|
|
2405
2421
|
])) : w("", !0),
|
|
2406
|
-
n.$slots["template-sidebar"] ? (m(), p("div",
|
|
2422
|
+
n.$slots["template-sidebar"] ? (m(), p("div", sn, [
|
|
2407
2423
|
g(n.$slots, "template-sidebar", {}, void 0, !0)
|
|
2408
2424
|
])) : w("", !0)
|
|
2409
2425
|
], 2)
|
|
@@ -2411,15 +2427,15 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
|
|
|
2411
2427
|
], 2));
|
|
2412
2428
|
}
|
|
2413
2429
|
});
|
|
2414
|
-
const
|
|
2430
|
+
const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["aria-disabled"], fn = { class: "joy-textarea_wrapper" }, yn = ["id", "disabled", "name", "required", "minlength", "value"], vn = {
|
|
2415
2431
|
key: 0,
|
|
2416
2432
|
class: "joy-textarea_helpers"
|
|
2417
|
-
},
|
|
2433
|
+
}, mn = {
|
|
2418
2434
|
key: 0,
|
|
2419
2435
|
name: "check",
|
|
2420
2436
|
color: "grey",
|
|
2421
2437
|
size: "xxsmall"
|
|
2422
|
-
},
|
|
2438
|
+
}, pn = /* @__PURE__ */ $({
|
|
2423
2439
|
__name: "VJoyTextarea",
|
|
2424
2440
|
props: {
|
|
2425
2441
|
disabled: {
|
|
@@ -2468,7 +2484,7 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2468
2484
|
},
|
|
2469
2485
|
emits: ["update:modelValue"],
|
|
2470
2486
|
setup(e, { expose: t, emit: l }) {
|
|
2471
|
-
const o = e, n = b(), { triggerResize: r } =
|
|
2487
|
+
const o = e, n = b(), { triggerResize: r } = tl({
|
|
2472
2488
|
element: o.autogrow ? n : void 0
|
|
2473
2489
|
}), s = b(!1), a = b(!1), c = x(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = x(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
|
|
2474
2490
|
onInput: (v) => {
|
|
@@ -2510,7 +2526,7 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2510
2526
|
]),
|
|
2511
2527
|
_: 3
|
|
2512
2528
|
}, 8, ["for", "required", "optional-label", "size"]),
|
|
2513
|
-
h("div",
|
|
2529
|
+
h("div", fn, [
|
|
2514
2530
|
h("textarea", Q(v.$attrs, {
|
|
2515
2531
|
id: e.id,
|
|
2516
2532
|
ref_key: "textarea",
|
|
@@ -2527,14 +2543,14 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2527
2543
|
(...y) => u.onFocus && u.onFocus(...y)),
|
|
2528
2544
|
onBlur: i[2] || (i[2] = //@ts-ignore
|
|
2529
2545
|
(...y) => u.onBlur && u.onBlur(...y))
|
|
2530
|
-
}), null, 16,
|
|
2546
|
+
}), null, 16, yn)
|
|
2531
2547
|
]),
|
|
2532
|
-
e.minlength || e.maxlength ? (m(), p("div",
|
|
2548
|
+
e.minlength || e.maxlength ? (m(), p("div", vn, [
|
|
2533
2549
|
e.minlength ? (m(), p("p", {
|
|
2534
2550
|
key: 0,
|
|
2535
2551
|
class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
|
|
2536
2552
|
}, [
|
|
2537
|
-
_(f) ? w("", !0) : (m(), p("joy-icon",
|
|
2553
|
+
_(f) ? w("", !0) : (m(), p("joy-icon", mn)),
|
|
2538
2554
|
J(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
|
|
2539
2555
|
], 2)) : w("", !0),
|
|
2540
2556
|
e.maxlength ? (m(), p("p", {
|
|
@@ -2542,10 +2558,10 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2542
2558
|
class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
|
|
2543
2559
|
}, I(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
|
|
2544
2560
|
])) : w("", !0)
|
|
2545
|
-
], 10,
|
|
2561
|
+
], 10, cn));
|
|
2546
2562
|
}
|
|
2547
2563
|
});
|
|
2548
|
-
const
|
|
2564
|
+
const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) => (te("data-v-cf79d999"), e = e(), le(), e), bn = { class: "joy-toggle__wrapper" }, gn = ["name", "disabled", "checked", "required", "aria-checked", "value"], _n = { class: "joy-toggle__content" }, wn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), Sn = { class: "joy-toggle__content-label" }, jn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
|
|
2549
2565
|
/* @__PURE__ */ h("svg", {
|
|
2550
2566
|
width: "18",
|
|
2551
2567
|
height: "10",
|
|
@@ -2558,7 +2574,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2558
2574
|
fill: "currentColor"
|
|
2559
2575
|
})
|
|
2560
2576
|
])
|
|
2561
|
-
], -1)),
|
|
2577
|
+
], -1)), kn = /* @__PURE__ */ $({
|
|
2562
2578
|
__name: "VJoyToggle",
|
|
2563
2579
|
props: {
|
|
2564
2580
|
modelValue: {
|
|
@@ -2604,7 +2620,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2604
2620
|
l.value = !1;
|
|
2605
2621
|
}
|
|
2606
2622
|
};
|
|
2607
|
-
return (n, r) => (m(), p("div",
|
|
2623
|
+
return (n, r) => (m(), p("div", bn, [
|
|
2608
2624
|
h("label", {
|
|
2609
2625
|
class: k([
|
|
2610
2626
|
"joy-toggle",
|
|
@@ -2632,77 +2648,77 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2632
2648
|
(...s) => o.onFocus && o.onFocus(...s)),
|
|
2633
2649
|
onBlur: r[2] || (r[2] = //@ts-ignore
|
|
2634
2650
|
(...s) => o.onBlur && o.onBlur(...s))
|
|
2635
|
-
}, null, 40,
|
|
2636
|
-
h("p",
|
|
2637
|
-
|
|
2638
|
-
h("span",
|
|
2651
|
+
}, null, 40, gn),
|
|
2652
|
+
h("p", _n, [
|
|
2653
|
+
wn,
|
|
2654
|
+
h("span", Sn, [
|
|
2639
2655
|
g(n.$slots, "default", {}, () => [
|
|
2640
2656
|
J(I(e.label), 1)
|
|
2641
2657
|
], !0)
|
|
2642
2658
|
]),
|
|
2643
|
-
|
|
2659
|
+
jn
|
|
2644
2660
|
])
|
|
2645
2661
|
], 2)
|
|
2646
2662
|
]));
|
|
2647
2663
|
}
|
|
2648
2664
|
});
|
|
2649
|
-
const
|
|
2665
|
+
const $n = /* @__PURE__ */ V(kn, [["__scopeId", "data-v-cf79d999"]]), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2650
2666
|
__proto__: null,
|
|
2651
2667
|
VJoyBadge: ft,
|
|
2652
|
-
VJoyButton:
|
|
2668
|
+
VJoyButton: kt,
|
|
2653
2669
|
VJoyCheckbox: he,
|
|
2654
|
-
VJoyCounter:
|
|
2655
|
-
VJoyDropdown:
|
|
2670
|
+
VJoyCounter: Rt,
|
|
2671
|
+
VJoyDropdown: Dl,
|
|
2656
2672
|
VJoyDropdownList: Xe,
|
|
2657
2673
|
VJoyFormError: et,
|
|
2658
|
-
VJoyHighlight:
|
|
2659
|
-
VJoyInput:
|
|
2674
|
+
VJoyHighlight: Zl,
|
|
2675
|
+
VJoyInput: ro,
|
|
2660
2676
|
VJoyLabel: N,
|
|
2661
|
-
VJoyLink:
|
|
2662
|
-
VJoyMultiCheckbox:
|
|
2663
|
-
VJoyPanel:
|
|
2664
|
-
VJoyPanelSection:
|
|
2665
|
-
VJoyRadio:
|
|
2666
|
-
VJoyRadioGroup:
|
|
2667
|
-
VJoySelect:
|
|
2677
|
+
VJoyLink: yo,
|
|
2678
|
+
VJoyMultiCheckbox: ho,
|
|
2679
|
+
VJoyPanel: Vo,
|
|
2680
|
+
VJoyPanelSection: Lo,
|
|
2681
|
+
VJoyRadio: To,
|
|
2682
|
+
VJoyRadioGroup: Fo,
|
|
2683
|
+
VJoySelect: Ho,
|
|
2668
2684
|
VJoySelectableItem: tt,
|
|
2669
|
-
VJoySelectableItemGroup:
|
|
2685
|
+
VJoySelectableItemGroup: Zo,
|
|
2670
2686
|
VJoySpinner: He,
|
|
2671
|
-
VJoyTemplate:
|
|
2672
|
-
VJoyTextarea:
|
|
2673
|
-
VJoyToggle:
|
|
2674
|
-
VJoyWrapper:
|
|
2675
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2687
|
+
VJoyTemplate: dn,
|
|
2688
|
+
VJoyTextarea: hn,
|
|
2689
|
+
VJoyToggle: $n,
|
|
2690
|
+
VJoyWrapper: Xo
|
|
2691
|
+
}, Symbol.toStringTag, { value: "Module" })), On = {
|
|
2676
2692
|
install: (e) => {
|
|
2677
|
-
Object.entries(
|
|
2693
|
+
Object.entries(Vn).forEach(([t, l]) => {
|
|
2678
2694
|
e.component(t, l);
|
|
2679
2695
|
});
|
|
2680
2696
|
}
|
|
2681
2697
|
};
|
|
2682
2698
|
export {
|
|
2683
|
-
|
|
2699
|
+
On as JoyVuePlugin,
|
|
2684
2700
|
ft as VJoyBadge,
|
|
2685
|
-
|
|
2701
|
+
kt as VJoyButton,
|
|
2686
2702
|
he as VJoyCheckbox,
|
|
2687
|
-
|
|
2688
|
-
|
|
2703
|
+
Rt as VJoyCounter,
|
|
2704
|
+
Dl as VJoyDropdown,
|
|
2689
2705
|
Xe as VJoyDropdownList,
|
|
2690
2706
|
et as VJoyFormError,
|
|
2691
|
-
|
|
2692
|
-
|
|
2707
|
+
Zl as VJoyHighlight,
|
|
2708
|
+
ro as VJoyInput,
|
|
2693
2709
|
N as VJoyLabel,
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2710
|
+
yo as VJoyLink,
|
|
2711
|
+
ho as VJoyMultiCheckbox,
|
|
2712
|
+
Vo as VJoyPanel,
|
|
2713
|
+
Lo as VJoyPanelSection,
|
|
2714
|
+
To as VJoyRadio,
|
|
2715
|
+
Fo as VJoyRadioGroup,
|
|
2716
|
+
Ho as VJoySelect,
|
|
2701
2717
|
tt as VJoySelectableItem,
|
|
2702
|
-
|
|
2718
|
+
Zo as VJoySelectableItemGroup,
|
|
2703
2719
|
He as VJoySpinner,
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2720
|
+
dn as VJoyTemplate,
|
|
2721
|
+
hn as VJoyTextarea,
|
|
2722
|
+
$n as VJoyToggle,
|
|
2723
|
+
Xo as VJoyWrapper
|
|
2708
2724
|
};
|