@maltjoy/core-vue 1.0.0-beta.3 → 1.0.0-beta.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/dist/joy-vue.js
CHANGED
|
@@ -32,8 +32,8 @@ const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
|
|
|
32
32
|
});
|
|
33
33
|
const V = (e, t) => {
|
|
34
34
|
const l = e.__vccOpts || e;
|
|
35
|
-
for (const [o,
|
|
36
|
-
l[o] =
|
|
35
|
+
for (const [o, a] of t)
|
|
36
|
+
l[o] = a;
|
|
37
37
|
return l;
|
|
38
38
|
}, ft = /* @__PURE__ */ V(ct, [["__scopeId", "data-v-c0310e42"]]), yt = ["teal", "white"], vt = /* @__PURE__ */ $({
|
|
39
39
|
__name: "VJoySpinner",
|
|
@@ -98,8 +98,8 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
98
98
|
default:
|
|
99
99
|
return "small";
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
102
|
-
return (
|
|
101
|
+
}), a = x(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
|
|
102
|
+
return (i, s) => (m(), q(ce(_(l).href ? "a" : "button"), {
|
|
103
103
|
disabled: e.loading || _(l).disabled,
|
|
104
104
|
class: k([
|
|
105
105
|
"joy-button",
|
|
@@ -120,10 +120,10 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
120
120
|
}, null, 8, _t)) : w("", !0),
|
|
121
121
|
e.loading ? (m(), q(He, {
|
|
122
122
|
key: 1,
|
|
123
|
-
color: _(
|
|
123
|
+
color: _(a)
|
|
124
124
|
}, null, 8, ["color"])) : w("", !0),
|
|
125
125
|
h("span", wt, [
|
|
126
|
-
g(
|
|
126
|
+
g(i.$slots, "default", {}, void 0, !0)
|
|
127
127
|
])
|
|
128
128
|
]),
|
|
129
129
|
_: 3
|
|
@@ -178,10 +178,10 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
178
178
|
},
|
|
179
179
|
emits: ["update:checked", "focus", "blur"],
|
|
180
180
|
setup(e, { expose: t, emit: l }) {
|
|
181
|
-
const o = e,
|
|
181
|
+
const o = e, a = b(), i = b(o.indeterminate), s = b(!1), n = {
|
|
182
182
|
onChange: (c) => {
|
|
183
183
|
const f = c.target.checked;
|
|
184
|
-
|
|
184
|
+
i.value = !1, l("update:checked", f);
|
|
185
185
|
},
|
|
186
186
|
onFocus: () => {
|
|
187
187
|
s.value = !0, l("focus");
|
|
@@ -191,7 +191,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
return t({
|
|
194
|
-
isIndeterminate:
|
|
194
|
+
isIndeterminate: i
|
|
195
195
|
}), (c, f) => (m(), p("div", {
|
|
196
196
|
"aria-checked": e.checked,
|
|
197
197
|
"aria-hidden": e.disabled
|
|
@@ -201,7 +201,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
201
201
|
"joy-checkbox",
|
|
202
202
|
{
|
|
203
203
|
"joy-checkbox__checked": e.checked,
|
|
204
|
-
"joy-checkbox__indeterminate":
|
|
204
|
+
"joy-checkbox__indeterminate": i.value,
|
|
205
205
|
"joy-checkbox__focusing": s.value && e.displayFocus
|
|
206
206
|
}
|
|
207
207
|
])
|
|
@@ -210,7 +210,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
210
210
|
h("input", {
|
|
211
211
|
id: e.id,
|
|
212
212
|
ref_key: "input",
|
|
213
|
-
ref:
|
|
213
|
+
ref: a,
|
|
214
214
|
type: "checkbox",
|
|
215
215
|
class: "joy-checkbox__input",
|
|
216
216
|
role: "checkbox",
|
|
@@ -220,13 +220,13 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
220
220
|
required: e.required,
|
|
221
221
|
"aria-checked": e.checked,
|
|
222
222
|
value: e.value,
|
|
223
|
-
indeterminate:
|
|
223
|
+
indeterminate: i.value,
|
|
224
224
|
onChange: f[0] || (f[0] = //@ts-ignore
|
|
225
|
-
(...u) =>
|
|
225
|
+
(...u) => n.onChange && n.onChange(...u)),
|
|
226
226
|
onFocus: f[1] || (f[1] = //@ts-ignore
|
|
227
|
-
(...u) =>
|
|
227
|
+
(...u) => n.onFocus && n.onFocus(...u)),
|
|
228
228
|
onBlur: f[2] || (f[2] = //@ts-ignore
|
|
229
|
-
(...u) =>
|
|
229
|
+
(...u) => n.onBlur && n.onBlur(...u))
|
|
230
230
|
}, null, 40, Vt)
|
|
231
231
|
]),
|
|
232
232
|
h("div", xt, [
|
|
@@ -323,40 +323,40 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
323
323
|
},
|
|
324
324
|
emits: ["update:modelValue"],
|
|
325
325
|
setup(e, { expose: t, emit: l }) {
|
|
326
|
-
const o = e,
|
|
326
|
+
const o = e, a = b(!1), i = b(!1);
|
|
327
327
|
function s() {
|
|
328
328
|
const d = f(!1);
|
|
329
329
|
d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), c();
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function n() {
|
|
332
332
|
const d = f();
|
|
333
333
|
o.max && d <= o.max ? l("update:modelValue", d >= o.max ? o.max : d) : o.max && d > o.max ? l("update:modelValue", o.max) : l("update:modelValue", d), c();
|
|
334
334
|
}
|
|
335
335
|
function c() {
|
|
336
|
-
|
|
336
|
+
a.value = !u();
|
|
337
337
|
}
|
|
338
338
|
function f(d = !0) {
|
|
339
339
|
const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
|
|
340
340
|
return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
|
|
341
341
|
}
|
|
342
342
|
function u() {
|
|
343
|
-
return v() &&
|
|
343
|
+
return v() && r();
|
|
344
344
|
}
|
|
345
345
|
function v() {
|
|
346
346
|
return !o.max || o.modelValue <= o.max;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function r() {
|
|
349
349
|
return o.min <= o.modelValue;
|
|
350
350
|
}
|
|
351
351
|
const y = {
|
|
352
352
|
onInput: (d) => {
|
|
353
|
-
l("update:modelValue", +d.target.value || 0),
|
|
353
|
+
l("update:modelValue", +d.target.value || 0), a.value = !1;
|
|
354
354
|
},
|
|
355
355
|
onFocus: () => {
|
|
356
|
-
|
|
356
|
+
i.value = !0;
|
|
357
357
|
},
|
|
358
358
|
onBlur: () => {
|
|
359
|
-
|
|
359
|
+
i.value = !1, c();
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
return t({
|
|
@@ -377,7 +377,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
377
377
|
_: 3
|
|
378
378
|
}, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
|
|
379
379
|
h("div", {
|
|
380
|
-
class: k(["joy-counter__wrapper", { "joy-counter--focusing":
|
|
380
|
+
class: k(["joy-counter__wrapper", { "joy-counter--focusing": i.value }])
|
|
381
381
|
}, [
|
|
382
382
|
h("button", {
|
|
383
383
|
class: "joy-counter__decrement",
|
|
@@ -391,10 +391,10 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
391
391
|
id: e.id,
|
|
392
392
|
ref: "input",
|
|
393
393
|
type: "number",
|
|
394
|
-
class: { "joy-counter__invalid": e.invalid ||
|
|
394
|
+
class: { "joy-counter__invalid": e.invalid || a.value },
|
|
395
395
|
min: e.min,
|
|
396
396
|
max: e.max,
|
|
397
|
-
"aria-invalid": e.invalid ||
|
|
397
|
+
"aria-invalid": e.invalid || a.value,
|
|
398
398
|
name: e.name,
|
|
399
399
|
required: e.required,
|
|
400
400
|
step: "any",
|
|
@@ -413,7 +413,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
413
413
|
type: "button",
|
|
414
414
|
"aria-label": e.labelIncrement,
|
|
415
415
|
disabled: e.max ? e.modelValue >= e.max : !1,
|
|
416
|
-
onClick:
|
|
416
|
+
onClick: n
|
|
417
417
|
}, zt, 8, qt),
|
|
418
418
|
e.invalid && e.errorMessage ? (m(), p("div", At, [
|
|
419
419
|
fe(_(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
|
|
@@ -431,40 +431,40 @@ function C(e) {
|
|
|
431
431
|
}
|
|
432
432
|
function Ge(e, t) {
|
|
433
433
|
function l(...o) {
|
|
434
|
-
return new Promise((
|
|
435
|
-
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(
|
|
434
|
+
return new Promise((a, i) => {
|
|
435
|
+
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(a).catch(i);
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
return l;
|
|
439
439
|
}
|
|
440
440
|
function Rt(e, t = {}) {
|
|
441
|
-
let l, o,
|
|
442
|
-
const
|
|
443
|
-
clearTimeout(
|
|
441
|
+
let l, o, a = z;
|
|
442
|
+
const i = (n) => {
|
|
443
|
+
clearTimeout(n), a(), a = z;
|
|
444
444
|
};
|
|
445
|
-
return (
|
|
445
|
+
return (n) => {
|
|
446
446
|
const c = C(e), f = C(t.maxWait);
|
|
447
|
-
return l &&
|
|
448
|
-
|
|
449
|
-
l &&
|
|
447
|
+
return l && i(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (i(o), o = null), Promise.resolve(n())) : new Promise((u, v) => {
|
|
448
|
+
a = t.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
|
|
449
|
+
l && i(l), o = null, u(n());
|
|
450
450
|
}, f)), l = setTimeout(() => {
|
|
451
|
-
o &&
|
|
451
|
+
o && i(o), o = null, u(n());
|
|
452
452
|
}, c);
|
|
453
453
|
});
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
456
|
function Mt(e, t = !0, l = !0, o = !1) {
|
|
457
|
-
let
|
|
457
|
+
let a = 0, i, s = !0, n = z, c;
|
|
458
458
|
const f = () => {
|
|
459
|
-
|
|
459
|
+
i && (clearTimeout(i), i = void 0, n(), n = z);
|
|
460
460
|
};
|
|
461
461
|
return (v) => {
|
|
462
|
-
const
|
|
463
|
-
return f(),
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}, Math.max(0,
|
|
467
|
-
})), !l && !
|
|
462
|
+
const r = C(e), y = Date.now() - a, d = () => c = v();
|
|
463
|
+
return f(), r <= 0 ? (a = Date.now(), d()) : (y > r && (l || !s) ? (a = Date.now(), d()) : t && (c = new Promise((j, S) => {
|
|
464
|
+
n = o ? S : j, i = setTimeout(() => {
|
|
465
|
+
a = Date.now(), s = !0, j(d()), f();
|
|
466
|
+
}, Math.max(0, r - y));
|
|
467
|
+
})), !l && !i && (i = setTimeout(() => s = !0, r)), s = !1, c);
|
|
468
468
|
};
|
|
469
469
|
}
|
|
470
470
|
const R = {
|
|
@@ -481,8 +481,8 @@ function G(e) {
|
|
|
481
481
|
function Ht(e, t = 200, l = {}) {
|
|
482
482
|
return Ge(Rt(t, l), e);
|
|
483
483
|
}
|
|
484
|
-
function Wt(e, t = 200, l = !1, o = !0,
|
|
485
|
-
return Ge(Mt(t, l, o,
|
|
484
|
+
function Wt(e, t = 200, l = !1, o = !0, a = !1) {
|
|
485
|
+
return Ge(Mt(t, l, o, a), e);
|
|
486
486
|
}
|
|
487
487
|
function Ut(e) {
|
|
488
488
|
return typeof e == "function" ? x(e) : b(e);
|
|
@@ -500,14 +500,14 @@ U && window.document;
|
|
|
500
500
|
U && window.navigator;
|
|
501
501
|
U && window.location;
|
|
502
502
|
function ae(...e) {
|
|
503
|
-
let t, l, o,
|
|
504
|
-
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o,
|
|
503
|
+
let t, l, o, a;
|
|
504
|
+
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = be) : [t, l, o, a] = e, !t)
|
|
505
505
|
return z;
|
|
506
506
|
Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
},
|
|
510
|
-
s(), u &&
|
|
507
|
+
const i = [], s = () => {
|
|
508
|
+
i.forEach((u) => u()), i.length = 0;
|
|
509
|
+
}, n = (u, v, r, y) => (u.addEventListener(v, r, y), () => u.removeEventListener(v, r, y)), c = B(() => [H(t), C(a)], ([u, v]) => {
|
|
510
|
+
s(), u && i.push(...l.flatMap((r) => o.map((y) => n(u, r, y, v))));
|
|
511
511
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
512
512
|
c(), s();
|
|
513
513
|
};
|
|
@@ -515,40 +515,40 @@ function ae(...e) {
|
|
|
515
515
|
}
|
|
516
516
|
let we = !1;
|
|
517
517
|
function Gt(e, t, l = {}) {
|
|
518
|
-
const { window: o = be, ignore:
|
|
518
|
+
const { window: o = be, ignore: a = [], capture: i = !0, detectIframe: s = !1 } = l;
|
|
519
519
|
if (!o)
|
|
520
520
|
return;
|
|
521
|
-
ee && !we && (we = !0, Array.from(o.document.body.children).forEach((
|
|
522
|
-
let
|
|
523
|
-
const c = (
|
|
521
|
+
ee && !we && (we = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", z)));
|
|
522
|
+
let n = !0;
|
|
523
|
+
const c = (r) => a.some((y) => {
|
|
524
524
|
if (typeof y == "string")
|
|
525
|
-
return Array.from(o.document.querySelectorAll(y)).some((d) => d ===
|
|
525
|
+
return Array.from(o.document.querySelectorAll(y)).some((d) => d === r.target || r.composedPath().includes(d));
|
|
526
526
|
{
|
|
527
527
|
const d = H(y);
|
|
528
|
-
return d && (
|
|
528
|
+
return d && (r.target === d || r.composedPath().includes(d));
|
|
529
529
|
}
|
|
530
530
|
}), u = [
|
|
531
|
-
ae(o, "click", (
|
|
531
|
+
ae(o, "click", (r) => {
|
|
532
532
|
const y = H(e);
|
|
533
|
-
if (!(!y || y ===
|
|
534
|
-
if (
|
|
535
|
-
|
|
533
|
+
if (!(!y || y === r.target || r.composedPath().includes(y))) {
|
|
534
|
+
if (r.detail === 0 && (n = !c(r)), !n) {
|
|
535
|
+
n = !0;
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
538
|
-
t(
|
|
538
|
+
t(r);
|
|
539
539
|
}
|
|
540
|
-
}, { passive: !0, capture:
|
|
541
|
-
ae(o, "pointerdown", (
|
|
540
|
+
}, { passive: !0, capture: i }),
|
|
541
|
+
ae(o, "pointerdown", (r) => {
|
|
542
542
|
const y = H(e);
|
|
543
|
-
y && (
|
|
543
|
+
y && (n = !r.composedPath().includes(y) && !c(r));
|
|
544
544
|
}, { passive: !0 }),
|
|
545
|
-
s && ae(o, "blur", (
|
|
545
|
+
s && ae(o, "blur", (r) => {
|
|
546
546
|
var y;
|
|
547
547
|
const d = H(e);
|
|
548
|
-
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(
|
|
548
|
+
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(r);
|
|
549
549
|
})
|
|
550
550
|
].filter(Boolean);
|
|
551
|
-
return () => u.forEach((
|
|
551
|
+
return () => u.forEach((r) => r());
|
|
552
552
|
}
|
|
553
553
|
function Kt(e, t = !1) {
|
|
554
554
|
const l = b(), o = () => l.value = Boolean(e());
|
|
@@ -567,17 +567,17 @@ var Se = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Zt
|
|
|
567
567
|
return l;
|
|
568
568
|
};
|
|
569
569
|
function Xt(e, t, l = {}) {
|
|
570
|
-
const o = l, { window:
|
|
570
|
+
const o = l, { window: a = be } = o, i = Yt(o, ["window"]);
|
|
571
571
|
let s;
|
|
572
|
-
const
|
|
572
|
+
const n = Kt(() => a && "ResizeObserver" in a), c = () => {
|
|
573
573
|
s && (s.disconnect(), s = void 0);
|
|
574
574
|
}, f = B(() => H(e), (v) => {
|
|
575
|
-
c(),
|
|
575
|
+
c(), n.value && a && v && (s = new ResizeObserver(t), s.observe(v, i));
|
|
576
576
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
577
577
|
c(), f();
|
|
578
578
|
};
|
|
579
579
|
return G(u), {
|
|
580
|
-
isSupported:
|
|
580
|
+
isSupported: n,
|
|
581
581
|
stop: u
|
|
582
582
|
};
|
|
583
583
|
}
|
|
@@ -588,8 +588,8 @@ var je;
|
|
|
588
588
|
function el(e) {
|
|
589
589
|
const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
|
|
590
590
|
function o() {
|
|
591
|
-
var
|
|
592
|
-
t.value && (t.value.style.height = "1px", t.value.style.height = `${(
|
|
591
|
+
var a, i;
|
|
592
|
+
t.value && (t.value.style.height = "1px", t.value.style.height = `${(a = t.value) == null ? void 0 : a.scrollHeight}px`, (i = e == null ? void 0 : e.onResize) == null || i.call(e));
|
|
593
593
|
}
|
|
594
594
|
return B([l, t], o, { immediate: !0 }), Xt(t, () => o()), e != null && e.watch && B(e.watch, o, { immediate: !0, deep: !0 }), {
|
|
595
595
|
textarea: t,
|
|
@@ -640,8 +640,8 @@ const il = /* @__PURE__ */ $({
|
|
|
640
640
|
emits: ["trigger"],
|
|
641
641
|
setup(e, { slots: t, emit: l }) {
|
|
642
642
|
const o = b();
|
|
643
|
-
return Gt(o, (
|
|
644
|
-
l("trigger",
|
|
643
|
+
return Gt(o, (a) => {
|
|
644
|
+
l("trigger", a);
|
|
645
645
|
}, e.options), () => {
|
|
646
646
|
if (t.default)
|
|
647
647
|
return it(e.as || "div", { ref: o }, t.default());
|
|
@@ -655,14 +655,14 @@ function P(e) {
|
|
|
655
655
|
}
|
|
656
656
|
const M = U ? window : void 0;
|
|
657
657
|
function A(...e) {
|
|
658
|
-
let t, l, o,
|
|
659
|
-
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o,
|
|
658
|
+
let t, l, o, a;
|
|
659
|
+
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = M) : [t, l, o, a] = e, !t)
|
|
660
660
|
return z;
|
|
661
661
|
Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
},
|
|
665
|
-
s(), u &&
|
|
662
|
+
const i = [], s = () => {
|
|
663
|
+
i.forEach((u) => u()), i.length = 0;
|
|
664
|
+
}, n = (u, v, r, y) => (u.addEventListener(v, r, y), () => u.removeEventListener(v, r, y)), c = B(() => [P(t), C(a)], ([u, v]) => {
|
|
665
|
+
s(), u && i.push(...l.flatMap((r) => o.map((y) => n(u, r, y, v))));
|
|
666
666
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
667
667
|
c(), s();
|
|
668
668
|
};
|
|
@@ -670,49 +670,49 @@ function A(...e) {
|
|
|
670
670
|
}
|
|
671
671
|
let Ve = !1;
|
|
672
672
|
function xe(e, t, l = {}) {
|
|
673
|
-
const { window: o = M, ignore:
|
|
673
|
+
const { window: o = M, ignore: a = [], capture: i = !0, detectIframe: s = !1 } = l;
|
|
674
674
|
if (!o)
|
|
675
675
|
return;
|
|
676
|
-
ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((
|
|
677
|
-
let
|
|
678
|
-
const c = (
|
|
676
|
+
ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", z)));
|
|
677
|
+
let n = !0;
|
|
678
|
+
const c = (r) => a.some((y) => {
|
|
679
679
|
if (typeof y == "string")
|
|
680
|
-
return Array.from(o.document.querySelectorAll(y)).some((d) => d ===
|
|
680
|
+
return Array.from(o.document.querySelectorAll(y)).some((d) => d === r.target || r.composedPath().includes(d));
|
|
681
681
|
{
|
|
682
682
|
const d = P(y);
|
|
683
|
-
return d && (
|
|
683
|
+
return d && (r.target === d || r.composedPath().includes(d));
|
|
684
684
|
}
|
|
685
685
|
}), u = [
|
|
686
|
-
A(o, "click", (
|
|
686
|
+
A(o, "click", (r) => {
|
|
687
687
|
const y = P(e);
|
|
688
|
-
if (!(!y || y ===
|
|
689
|
-
if (
|
|
690
|
-
|
|
688
|
+
if (!(!y || y === r.target || r.composedPath().includes(y))) {
|
|
689
|
+
if (r.detail === 0 && (n = !c(r)), !n) {
|
|
690
|
+
n = !0;
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
t(
|
|
693
|
+
t(r);
|
|
694
694
|
}
|
|
695
|
-
}, { passive: !0, capture:
|
|
696
|
-
A(o, "pointerdown", (
|
|
695
|
+
}, { passive: !0, capture: i }),
|
|
696
|
+
A(o, "pointerdown", (r) => {
|
|
697
697
|
const y = P(e);
|
|
698
|
-
y && (
|
|
698
|
+
y && (n = !r.composedPath().includes(y) && !c(r));
|
|
699
699
|
}, { passive: !0 }),
|
|
700
|
-
s && A(o, "blur", (
|
|
700
|
+
s && A(o, "blur", (r) => {
|
|
701
701
|
var y;
|
|
702
702
|
const d = P(e);
|
|
703
|
-
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(
|
|
703
|
+
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(r);
|
|
704
704
|
})
|
|
705
705
|
].filter(Boolean);
|
|
706
|
-
return () => u.forEach((
|
|
706
|
+
return () => u.forEach((r) => r());
|
|
707
707
|
}
|
|
708
708
|
R.mounted + "", R.unmounted + "";
|
|
709
709
|
const rl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
710
710
|
function Oe(...e) {
|
|
711
711
|
let t, l, o = {};
|
|
712
712
|
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:
|
|
714
|
-
return A(
|
|
715
|
-
|
|
713
|
+
const { target: a = M, eventName: i = "keydown", passive: s = !1 } = o, n = rl(t);
|
|
714
|
+
return A(a, i, (f) => {
|
|
715
|
+
n(f) && l(f);
|
|
716
716
|
}, s);
|
|
717
717
|
}
|
|
718
718
|
var sl = Object.defineProperty, Ie = Object.getOwnPropertySymbols, ul = Object.prototype.hasOwnProperty, dl = Object.prototype.propertyIsEnumerable, Be = (e, t, l) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, cl = (e, t) => {
|
|
@@ -726,21 +726,21 @@ var sl = Object.defineProperty, Ie = Object.getOwnPropertySymbols, ul = Object.p
|
|
|
726
726
|
R.mounted + "";
|
|
727
727
|
const fl = 500;
|
|
728
728
|
function Le(e, t, l) {
|
|
729
|
-
var o,
|
|
730
|
-
const
|
|
729
|
+
var o, a;
|
|
730
|
+
const i = x(() => P(e));
|
|
731
731
|
let s;
|
|
732
|
-
function
|
|
732
|
+
function n() {
|
|
733
733
|
s && (clearTimeout(s), s = void 0);
|
|
734
734
|
}
|
|
735
735
|
function c(u) {
|
|
736
|
-
var v,
|
|
737
|
-
(v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !==
|
|
736
|
+
var v, r, y, d;
|
|
737
|
+
(v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== i.value || (n(), (r = l == null ? void 0 : l.modifiers) != null && r.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 : fl));
|
|
738
738
|
}
|
|
739
739
|
const f = {
|
|
740
740
|
capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
|
|
741
|
-
once: (
|
|
741
|
+
once: (a = l == null ? void 0 : l.modifiers) == null ? void 0 : a.once
|
|
742
742
|
};
|
|
743
|
-
A(
|
|
743
|
+
A(i, "pointerdown", c, f), A(i, "pointerup", n, f), A(i, "pointerleave", n, f);
|
|
744
744
|
}
|
|
745
745
|
R.mounted + "";
|
|
746
746
|
const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
|
|
@@ -751,13 +751,13 @@ function Qe(e, t = !1) {
|
|
|
751
751
|
return o(), Ke(o, t), l;
|
|
752
752
|
}
|
|
753
753
|
function yl(e, t = {}) {
|
|
754
|
-
const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0,
|
|
755
|
-
let
|
|
756
|
-
const s = (
|
|
757
|
-
const c =
|
|
758
|
-
|
|
754
|
+
const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, a = b(!1);
|
|
755
|
+
let i;
|
|
756
|
+
const s = (n) => {
|
|
757
|
+
const c = n ? l : o;
|
|
758
|
+
i && (clearTimeout(i), i = void 0), c ? i = setTimeout(() => a.value = n, c) : a.value = n;
|
|
759
759
|
};
|
|
760
|
-
return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })),
|
|
760
|
+
return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), a;
|
|
761
761
|
}
|
|
762
762
|
R.mounted + "";
|
|
763
763
|
var Ee = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, ml = Object.prototype.propertyIsEnumerable, pl = (e, t) => {
|
|
@@ -770,59 +770,59 @@ var Ee = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, ml
|
|
|
770
770
|
return l;
|
|
771
771
|
};
|
|
772
772
|
function hl(e, t, l = {}) {
|
|
773
|
-
const o = l, { window:
|
|
773
|
+
const o = l, { window: a = M } = o, i = pl(o, ["window"]);
|
|
774
774
|
let s;
|
|
775
|
-
const
|
|
775
|
+
const n = Qe(() => a && "ResizeObserver" in a), c = () => {
|
|
776
776
|
s && (s.disconnect(), s = void 0);
|
|
777
777
|
}, f = B(() => P(e), (v) => {
|
|
778
|
-
c(),
|
|
778
|
+
c(), n.value && a && v && (s = new ResizeObserver(t), s.observe(v, i));
|
|
779
779
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
780
780
|
c(), f();
|
|
781
781
|
};
|
|
782
782
|
return G(u), {
|
|
783
|
-
isSupported:
|
|
783
|
+
isSupported: n,
|
|
784
784
|
stop: u
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
787
|
function bl(e, t = { width: 0, height: 0 }, l = {}) {
|
|
788
|
-
const { window: o = M, box:
|
|
788
|
+
const { window: o = M, box: a = "content-box" } = l, i = x(() => {
|
|
789
789
|
var c, f;
|
|
790
790
|
return (f = (c = P(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
791
|
-
}), s = b(t.width),
|
|
791
|
+
}), s = b(t.width), n = b(t.height);
|
|
792
792
|
return hl(e, ([c]) => {
|
|
793
|
-
const f =
|
|
794
|
-
if (o &&
|
|
793
|
+
const f = a === "border-box" ? c.borderBoxSize : a === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
|
|
794
|
+
if (o && i.value) {
|
|
795
795
|
const u = P(e);
|
|
796
796
|
if (u) {
|
|
797
797
|
const v = o.getComputedStyle(u);
|
|
798
|
-
s.value = parseFloat(v.width),
|
|
798
|
+
s.value = parseFloat(v.width), n.value = parseFloat(v.height);
|
|
799
799
|
}
|
|
800
800
|
} else if (f) {
|
|
801
801
|
const u = Array.isArray(f) ? f : [f];
|
|
802
|
-
s.value = u.reduce((v, { inlineSize:
|
|
802
|
+
s.value = u.reduce((v, { inlineSize: r }) => v + r, 0), n.value = u.reduce((v, { blockSize: r }) => v + r, 0);
|
|
803
803
|
} else
|
|
804
|
-
s.value = c.contentRect.width,
|
|
804
|
+
s.value = c.contentRect.width, n.value = c.contentRect.height;
|
|
805
805
|
}, l), B(() => P(e), (c) => {
|
|
806
|
-
s.value = c ? t.width : 0,
|
|
806
|
+
s.value = c ? t.width : 0, n.value = c ? t.height : 0;
|
|
807
807
|
}), {
|
|
808
808
|
width: s,
|
|
809
|
-
height:
|
|
809
|
+
height: n
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
812
|
R.mounted + "";
|
|
813
813
|
function Ce(e, { window: t = M, scrollTarget: l } = {}) {
|
|
814
|
-
const o = b(!1),
|
|
814
|
+
const o = b(!1), a = () => {
|
|
815
815
|
if (!t)
|
|
816
816
|
return;
|
|
817
|
-
const
|
|
817
|
+
const i = t.document, s = P(e);
|
|
818
818
|
if (!s)
|
|
819
819
|
o.value = !1;
|
|
820
820
|
else {
|
|
821
|
-
const
|
|
822
|
-
o.value =
|
|
821
|
+
const n = s.getBoundingClientRect();
|
|
822
|
+
o.value = n.top <= (t.innerHeight || i.documentElement.clientHeight) && n.left <= (t.innerWidth || i.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
|
|
823
823
|
}
|
|
824
824
|
};
|
|
825
|
-
return B(() => P(e), () =>
|
|
825
|
+
return B(() => P(e), () => a(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", a, {
|
|
826
826
|
capture: !1,
|
|
827
827
|
passive: !0
|
|
828
828
|
}), o;
|
|
@@ -833,15 +833,15 @@ function de(e, t = {}) {
|
|
|
833
833
|
const {
|
|
834
834
|
throttle: l = 0,
|
|
835
835
|
idle: o = 200,
|
|
836
|
-
onStop:
|
|
837
|
-
onScroll:
|
|
836
|
+
onStop: a = z,
|
|
837
|
+
onScroll: i = z,
|
|
838
838
|
offset: s = {
|
|
839
839
|
left: 0,
|
|
840
840
|
right: 0,
|
|
841
841
|
top: 0,
|
|
842
842
|
bottom: 0
|
|
843
843
|
},
|
|
844
|
-
eventListenerOptions:
|
|
844
|
+
eventListenerOptions: n = {
|
|
845
845
|
capture: !1,
|
|
846
846
|
passive: !0
|
|
847
847
|
},
|
|
@@ -853,7 +853,7 @@ function de(e, t = {}) {
|
|
|
853
853
|
set(O) {
|
|
854
854
|
y(O, void 0);
|
|
855
855
|
}
|
|
856
|
-
}),
|
|
856
|
+
}), r = x({
|
|
857
857
|
get() {
|
|
858
858
|
return u.value;
|
|
859
859
|
},
|
|
@@ -865,7 +865,7 @@ function de(e, t = {}) {
|
|
|
865
865
|
var D, F, ge;
|
|
866
866
|
const ne = C(e);
|
|
867
867
|
ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
|
|
868
|
-
top: (D = C(T)) != null ? D :
|
|
868
|
+
top: (D = C(T)) != null ? D : r.value,
|
|
869
869
|
left: (F = C(O)) != null ? F : v.value,
|
|
870
870
|
behavior: C(c)
|
|
871
871
|
}));
|
|
@@ -881,16 +881,16 @@ function de(e, t = {}) {
|
|
|
881
881
|
top: !1,
|
|
882
882
|
bottom: !1
|
|
883
883
|
}), Y = (O) => {
|
|
884
|
-
d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1,
|
|
884
|
+
d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, a(O));
|
|
885
885
|
}, oe = Ht(Y, l + o), E = (O) => {
|
|
886
886
|
const T = O.target === document ? O.target.documentElement : O.target, D = T.scrollLeft;
|
|
887
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) - Pe, f.value = D;
|
|
888
888
|
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) - Pe, u.value = F, d.value = !0, oe(O),
|
|
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) - Pe, u.value = F, d.value = !0, oe(O), i(O);
|
|
890
890
|
};
|
|
891
|
-
return A(e, "scroll", l ? Wt(E, l, !0, !1) : E,
|
|
891
|
+
return A(e, "scroll", l ? Wt(E, l, !0, !1) : E, n), A(e, "scrollend", Y, n), {
|
|
892
892
|
x: v,
|
|
893
|
-
y:
|
|
893
|
+
y: r,
|
|
894
894
|
isScrolling: d,
|
|
895
895
|
arrivedState: j,
|
|
896
896
|
directions: S
|
|
@@ -905,15 +905,15 @@ var gl = Object.defineProperty, _l = Object.defineProperties, wl = Object.getOwn
|
|
|
905
905
|
return e;
|
|
906
906
|
}, kl = (e, t) => _l(e, wl(t));
|
|
907
907
|
function ze(e, t, l = {}) {
|
|
908
|
-
var o,
|
|
909
|
-
const
|
|
908
|
+
var o, a;
|
|
909
|
+
const i = (o = l.direction) != null ? o : "bottom", s = X(de(e, kl(Te({}, l), {
|
|
910
910
|
offset: Te({
|
|
911
|
-
[
|
|
911
|
+
[i]: (a = l.distance) != null ? a : 0
|
|
912
912
|
}, l.offset)
|
|
913
913
|
})));
|
|
914
|
-
B(() => s.arrivedState[
|
|
914
|
+
B(() => s.arrivedState[i], async (n) => {
|
|
915
915
|
var c, f;
|
|
916
|
-
if (
|
|
916
|
+
if (n) {
|
|
917
917
|
const u = C(e), v = {
|
|
918
918
|
height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
|
|
919
919
|
width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
|
|
@@ -931,21 +931,21 @@ R.mounted + "";
|
|
|
931
931
|
function Ae(e, t, l = {}) {
|
|
932
932
|
const {
|
|
933
933
|
root: o,
|
|
934
|
-
rootMargin:
|
|
935
|
-
threshold:
|
|
934
|
+
rootMargin: a = "0px",
|
|
935
|
+
threshold: i = 0.1,
|
|
936
936
|
window: s = M
|
|
937
|
-
} = l,
|
|
937
|
+
} = l, n = Qe(() => s && "IntersectionObserver" in s);
|
|
938
938
|
let c = z;
|
|
939
|
-
const f =
|
|
939
|
+
const f = n.value ? B(() => ({
|
|
940
940
|
el: P(e),
|
|
941
941
|
root: P(o)
|
|
942
|
-
}), ({ el: v, root:
|
|
942
|
+
}), ({ el: v, root: r }) => {
|
|
943
943
|
if (c(), !v)
|
|
944
944
|
return;
|
|
945
945
|
const y = new IntersectionObserver(t, {
|
|
946
|
-
root:
|
|
947
|
-
rootMargin:
|
|
948
|
-
threshold:
|
|
946
|
+
root: r,
|
|
947
|
+
rootMargin: a,
|
|
948
|
+
threshold: i
|
|
949
949
|
});
|
|
950
950
|
y.observe(v), c = () => {
|
|
951
951
|
y.disconnect(), c = z;
|
|
@@ -954,7 +954,7 @@ function Ae(e, t, l = {}) {
|
|
|
954
954
|
c(), f();
|
|
955
955
|
};
|
|
956
956
|
return G(u), {
|
|
957
|
-
isSupported:
|
|
957
|
+
isSupported: n,
|
|
958
958
|
stop: u
|
|
959
959
|
};
|
|
960
960
|
}
|
|
@@ -983,30 +983,30 @@ function El(e) {
|
|
|
983
983
|
}
|
|
984
984
|
function Cl(e, t = !1) {
|
|
985
985
|
const l = b(t);
|
|
986
|
-
let o = null,
|
|
987
|
-
B(Ut(e), (
|
|
988
|
-
if (
|
|
989
|
-
const c =
|
|
990
|
-
|
|
986
|
+
let o = null, a;
|
|
987
|
+
B(Ut(e), (n) => {
|
|
988
|
+
if (n) {
|
|
989
|
+
const c = n;
|
|
990
|
+
a = c.style.overflow, l.value && (c.style.overflow = "hidden");
|
|
991
991
|
}
|
|
992
992
|
}, {
|
|
993
993
|
immediate: !0
|
|
994
994
|
});
|
|
995
|
-
const
|
|
996
|
-
const
|
|
997
|
-
!
|
|
995
|
+
const i = () => {
|
|
996
|
+
const n = C(e);
|
|
997
|
+
!n || l.value || (ee && (o = A(n, "touchmove", (c) => {
|
|
998
998
|
El(c);
|
|
999
|
-
}, { passive: !1 })),
|
|
999
|
+
}, { passive: !1 })), n.style.overflow = "hidden", l.value = !0);
|
|
1000
1000
|
}, s = () => {
|
|
1001
|
-
const
|
|
1002
|
-
!
|
|
1001
|
+
const n = C(e);
|
|
1002
|
+
!n || !l.value || (ee && (o == null || o()), n.style.overflow = a, l.value = !1);
|
|
1003
1003
|
};
|
|
1004
1004
|
return G(s), x({
|
|
1005
1005
|
get() {
|
|
1006
1006
|
return l.value;
|
|
1007
1007
|
},
|
|
1008
|
-
set(
|
|
1009
|
-
|
|
1008
|
+
set(n) {
|
|
1009
|
+
n ? i() : s();
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
@@ -1017,8 +1017,8 @@ const Pl = () => {
|
|
|
1017
1017
|
if (t.value = o.value, e)
|
|
1018
1018
|
return;
|
|
1019
1019
|
e = !0;
|
|
1020
|
-
const
|
|
1021
|
-
B(t, (
|
|
1020
|
+
const a = Cl(l, o.value);
|
|
1021
|
+
B(t, (i) => a.value = i);
|
|
1022
1022
|
};
|
|
1023
1023
|
};
|
|
1024
1024
|
Pl();
|
|
@@ -1058,26 +1058,26 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1058
1058
|
},
|
|
1059
1059
|
emits: ["update:modelValue", "close:dropdownList"],
|
|
1060
1060
|
setup(e, { expose: t, emit: l }) {
|
|
1061
|
-
const o = e,
|
|
1062
|
-
function s(
|
|
1063
|
-
|
|
1061
|
+
const o = e, a = b(), i = x(() => (r) => !o.modelValue && !r.value ? !1 : o.modelValue === r.label || o.modelValue === r.value);
|
|
1062
|
+
function s(r) {
|
|
1063
|
+
r.disabled || l("update:modelValue", r.label);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
var
|
|
1067
|
-
return Array.from(((
|
|
1065
|
+
function n() {
|
|
1066
|
+
var r;
|
|
1067
|
+
return Array.from(((r = a.value) == null ? void 0 : r.querySelectorAll("li")) || []);
|
|
1068
1068
|
}
|
|
1069
1069
|
function c() {
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
top:
|
|
1070
|
+
const r = n().find((y) => y.getAttribute("aria-selected") === "true");
|
|
1071
|
+
r && (r.focus(), a.value.scrollTo({
|
|
1072
|
+
top: r.offsetTop
|
|
1073
1073
|
}));
|
|
1074
1074
|
}
|
|
1075
1075
|
function f() {
|
|
1076
|
-
return
|
|
1076
|
+
return n().find((r) => r === document.activeElement);
|
|
1077
1077
|
}
|
|
1078
|
-
function u(
|
|
1078
|
+
function u(r) {
|
|
1079
1079
|
var y;
|
|
1080
|
-
if ((
|
|
1080
|
+
if ((r.key === "Escape" || r.key === "Tab") && l("close:dropdownList"), (r.key === "Enter" || r.key === "enter") && (r.preventDefault(), f() && ((y = a.value) != null && y.contains(f())))) {
|
|
1081
1081
|
const d = f();
|
|
1082
1082
|
if (!d)
|
|
1083
1083
|
return;
|
|
@@ -1085,31 +1085,31 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1085
1085
|
return d.querySelector("a").click();
|
|
1086
1086
|
l("update:modelValue", d.dataLabel);
|
|
1087
1087
|
}
|
|
1088
|
-
if (
|
|
1089
|
-
const d =
|
|
1088
|
+
if (r.key === " " && r.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key)) {
|
|
1089
|
+
const d = n(), j = f();
|
|
1090
1090
|
let S = d.indexOf(j);
|
|
1091
1091
|
if (d.length) {
|
|
1092
|
-
|
|
1092
|
+
r.preventDefault(), r.key === "ArrowDown" ? S++ : r.key === "ArrowUp" ? S-- : r.key === "Home" ? S = 0 : r.key === "End" && (S = d.length - 1), S < 0 && (S = 0), S > d.length - 1 && (S = 0), v(d[S]);
|
|
1093
1093
|
return;
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
}
|
|
1097
|
-
function v(
|
|
1098
|
-
|
|
1097
|
+
function v(r) {
|
|
1098
|
+
r.focus();
|
|
1099
1099
|
}
|
|
1100
1100
|
return Z(() => {
|
|
1101
1101
|
window.addEventListener("keydown", u), c();
|
|
1102
1102
|
}), Ne(() => {
|
|
1103
1103
|
window.removeEventListener("keydown", u);
|
|
1104
1104
|
}), t({
|
|
1105
|
-
isSelected:
|
|
1106
|
-
}), (
|
|
1105
|
+
isSelected: i
|
|
1106
|
+
}), (r, y) => (m(), p("div", {
|
|
1107
1107
|
class: "joy-dropdown-list",
|
|
1108
1108
|
style: K({ "max-width": `${e.width}px`, "max-height": `${e.height}px` })
|
|
1109
1109
|
}, [
|
|
1110
1110
|
h("ul", {
|
|
1111
1111
|
ref_key: "listbox",
|
|
1112
|
-
ref:
|
|
1112
|
+
ref: a,
|
|
1113
1113
|
role: "listbox",
|
|
1114
1114
|
class: "joy-dropdown-list__items",
|
|
1115
1115
|
style: K({ "max-height": `${e.height}px` })
|
|
@@ -1122,26 +1122,26 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1122
1122
|
"joy-dropdown-list__item",
|
|
1123
1123
|
`joy-dropdown-list__item--${e.size}`,
|
|
1124
1124
|
{
|
|
1125
|
-
"joy-dropdown-list__item--selected": _(
|
|
1125
|
+
"joy-dropdown-list__item--selected": _(i)(d),
|
|
1126
1126
|
"joy-dropdown-list__item--disabled": d.disabled
|
|
1127
1127
|
}
|
|
1128
1128
|
]),
|
|
1129
1129
|
tabindex: d.disabled ? void 0 : 0,
|
|
1130
1130
|
"aria-disabled": d.disabled,
|
|
1131
|
-
"aria-selected": _(
|
|
1131
|
+
"aria-selected": _(i)(d),
|
|
1132
1132
|
title: d.label,
|
|
1133
1133
|
"aria-label": d.label,
|
|
1134
1134
|
".dataLabel": d.value || d.label,
|
|
1135
1135
|
role: "option",
|
|
1136
1136
|
onClick: (j) => s(d)
|
|
1137
1137
|
}, [
|
|
1138
|
-
g(
|
|
1138
|
+
g(r.$slots, "label", me(pe(d)), () => [
|
|
1139
1139
|
h("span", null, I(d.label), 1)
|
|
1140
1140
|
], !0)
|
|
1141
1141
|
], 14, Jl))), 128))
|
|
1142
1142
|
], 4),
|
|
1143
|
-
|
|
1144
|
-
g(
|
|
1143
|
+
r.$slots.footer ? (m(), p("footer", ql, [
|
|
1144
|
+
g(r.$slots, "footer", {}, void 0, !0)
|
|
1145
1145
|
])) : w("", !0)
|
|
1146
1146
|
], 4));
|
|
1147
1147
|
}
|
|
@@ -1234,22 +1234,22 @@ const Al = /* @__PURE__ */ $({
|
|
|
1234
1234
|
},
|
|
1235
1235
|
emits: ["update:modelValue"],
|
|
1236
1236
|
setup(e, { expose: t, emit: l }) {
|
|
1237
|
-
const o = e,
|
|
1237
|
+
const o = e, a = b(!1), i = b(null), s = b(), n = b(null), c = b(null), f = b(!1), u = {
|
|
1238
1238
|
ignore: [s, ".joy-dropdown__list"]
|
|
1239
1239
|
};
|
|
1240
1240
|
let v = null;
|
|
1241
|
-
const
|
|
1241
|
+
const r = X({
|
|
1242
1242
|
left: "auto",
|
|
1243
1243
|
top: "0px",
|
|
1244
1244
|
right: "auto"
|
|
1245
1245
|
});
|
|
1246
1246
|
function y() {
|
|
1247
1247
|
v && clearTimeout(v), f.value = !0, v = setTimeout(() => {
|
|
1248
|
-
|
|
1248
|
+
a.value = !1, f.value = !1;
|
|
1249
1249
|
}, 300);
|
|
1250
1250
|
}
|
|
1251
1251
|
function d(E) {
|
|
1252
|
-
f.value = !1, v && clearTimeout(v), Y(), c.value = E.target,
|
|
1252
|
+
f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, a.value = !0;
|
|
1253
1253
|
}
|
|
1254
1254
|
function j() {
|
|
1255
1255
|
y(), S();
|
|
@@ -1259,16 +1259,16 @@ const Al = /* @__PURE__ */ $({
|
|
|
1259
1259
|
}
|
|
1260
1260
|
function Y() {
|
|
1261
1261
|
const E = s.value.getBoundingClientRect(), O = document.documentElement.scrollTop + E.top, T = E.height, D = E.left, F = E.width;
|
|
1262
|
-
o.justify === "left" ?
|
|
1262
|
+
o.justify === "left" ? r.left = D + "px" : r.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? r.top = O + T + parseInt(o.dropdownGap) + "px" : r.top = O - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
|
|
1263
1263
|
}
|
|
1264
1264
|
function oe(E) {
|
|
1265
1265
|
l("update:modelValue", E), o.closeOnSelect && (y(), S());
|
|
1266
1266
|
}
|
|
1267
1267
|
return zl(y), t({
|
|
1268
|
-
showDropdownList:
|
|
1268
|
+
showDropdownList: a
|
|
1269
1269
|
}), (E, O) => (m(), q(_(il), {
|
|
1270
1270
|
ref_key: "dropdown",
|
|
1271
|
-
ref:
|
|
1271
|
+
ref: i,
|
|
1272
1272
|
options: u,
|
|
1273
1273
|
class: "joy-dropdown",
|
|
1274
1274
|
onTrigger: y
|
|
@@ -1286,10 +1286,10 @@ const Al = /* @__PURE__ */ $({
|
|
|
1286
1286
|
to: e.appendTo,
|
|
1287
1287
|
disabled: e.disableTeleport
|
|
1288
1288
|
}, [
|
|
1289
|
-
|
|
1289
|
+
a.value ? (m(), p("div", {
|
|
1290
1290
|
key: 0,
|
|
1291
1291
|
ref_key: "list",
|
|
1292
|
-
ref:
|
|
1292
|
+
ref: n,
|
|
1293
1293
|
class: k([
|
|
1294
1294
|
"joy-dropdown__list",
|
|
1295
1295
|
`joy-dropdown__list--${e.direction}`,
|
|
@@ -1299,8 +1299,8 @@ const Al = /* @__PURE__ */ $({
|
|
|
1299
1299
|
}
|
|
1300
1300
|
]),
|
|
1301
1301
|
style: K({
|
|
1302
|
-
top:
|
|
1303
|
-
left:
|
|
1302
|
+
top: r.top,
|
|
1303
|
+
left: r.left
|
|
1304
1304
|
})
|
|
1305
1305
|
}, [
|
|
1306
1306
|
fe(Xe, {
|
|
@@ -1394,13 +1394,13 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
|
|
|
1394
1394
|
const l = e, o = x(() => l.icon ? l.icon : Hl(l.level));
|
|
1395
1395
|
return t({
|
|
1396
1396
|
getRelevantIcon: o
|
|
1397
|
-
}), (
|
|
1397
|
+
}), (a, i) => (m(), p("div", {
|
|
1398
1398
|
class: k([
|
|
1399
1399
|
"joy-highlight",
|
|
1400
1400
|
`joy-highlight_${e.level}`,
|
|
1401
1401
|
{
|
|
1402
1402
|
"joy-highlight__accent": e.accent,
|
|
1403
|
-
"joy-highlight__titled":
|
|
1403
|
+
"joy-highlight__titled": a.$slots["highlight-title"]
|
|
1404
1404
|
}
|
|
1405
1405
|
])
|
|
1406
1406
|
}, [
|
|
@@ -1410,9 +1410,9 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
|
|
|
1410
1410
|
}, null, 8, Ul)) : w("", !0),
|
|
1411
1411
|
h("div", Gl, [
|
|
1412
1412
|
h("strong", null, [
|
|
1413
|
-
g(
|
|
1413
|
+
g(a.$slots, "highlight-title", {}, void 0, !0)
|
|
1414
1414
|
]),
|
|
1415
|
-
g(
|
|
1415
|
+
g(a.$slots, "default", {}, void 0, !0)
|
|
1416
1416
|
])
|
|
1417
1417
|
], 2));
|
|
1418
1418
|
}
|
|
@@ -1518,19 +1518,19 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1518
1518
|
},
|
|
1519
1519
|
emits: ["update:modelValue"],
|
|
1520
1520
|
setup(e, { emit: t }) {
|
|
1521
|
-
const l = e, o = b(),
|
|
1521
|
+
const l = e, o = b(), a = b(), i = Re(), s = W(), n = b(!1), c = x(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = x(() => s.default && s.default()), u = x(() => {
|
|
1522
1522
|
var y, d;
|
|
1523
|
-
return !!((y =
|
|
1523
|
+
return !!((y = a.value) != null && y.closest("joy-wrapper")) || !!((d = a.value) != null && d.closest(".joy-wrapper"));
|
|
1524
1524
|
}), v = b(l.type);
|
|
1525
1525
|
st(() => {
|
|
1526
1526
|
v.value = l.unit ? "number" : l.unit || "text";
|
|
1527
1527
|
});
|
|
1528
|
-
const
|
|
1528
|
+
const r = {
|
|
1529
1529
|
onFocus: () => {
|
|
1530
|
-
|
|
1530
|
+
n.value = !0;
|
|
1531
1531
|
},
|
|
1532
1532
|
onBlur: () => {
|
|
1533
|
-
|
|
1533
|
+
n.value = !1;
|
|
1534
1534
|
},
|
|
1535
1535
|
onInput: (y) => {
|
|
1536
1536
|
let d = y.target.value;
|
|
@@ -1542,17 +1542,17 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1542
1542
|
};
|
|
1543
1543
|
return (y, d) => (m(), p("div", {
|
|
1544
1544
|
ref_key: "root",
|
|
1545
|
-
ref:
|
|
1545
|
+
ref: a,
|
|
1546
1546
|
class: k([`joy-input--${l.size}`])
|
|
1547
1547
|
}, [
|
|
1548
1548
|
h("div", {
|
|
1549
1549
|
class: k([
|
|
1550
1550
|
"joy-input",
|
|
1551
1551
|
{
|
|
1552
|
-
"joy-input--focusing":
|
|
1552
|
+
"joy-input--focusing": n.value,
|
|
1553
1553
|
"joy-input--disabled": e.disabled,
|
|
1554
1554
|
"joy-input--invalid": e.invalid,
|
|
1555
|
-
"joy-input--valid": !e.invalid && !_(
|
|
1555
|
+
"joy-input--valid": !e.invalid && !_(i).disabled
|
|
1556
1556
|
}
|
|
1557
1557
|
])
|
|
1558
1558
|
}, [
|
|
@@ -1595,11 +1595,11 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1595
1595
|
type: v.value,
|
|
1596
1596
|
value: e.modelValue,
|
|
1597
1597
|
onFocus: d[0] || (d[0] = //@ts-ignore
|
|
1598
|
-
(...j) =>
|
|
1598
|
+
(...j) => r.onFocus && r.onFocus(...j)),
|
|
1599
1599
|
onBlur: d[1] || (d[1] = //@ts-ignore
|
|
1600
|
-
(...j) =>
|
|
1600
|
+
(...j) => r.onBlur && r.onBlur(...j)),
|
|
1601
1601
|
onInput: d[2] || (d[2] = //@ts-ignore
|
|
1602
|
-
(...j) =>
|
|
1602
|
+
(...j) => r.onInput && r.onInput(...j))
|
|
1603
1603
|
}), null, 16, lo),
|
|
1604
1604
|
_(c) ? (m(), p("joy-icon", {
|
|
1605
1605
|
key: 0,
|
|
@@ -1607,7 +1607,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1607
1607
|
name: "cross",
|
|
1608
1608
|
class: "joy-input--clear",
|
|
1609
1609
|
onClick: d[3] || (d[3] = //@ts-ignore
|
|
1610
|
-
(...j) =>
|
|
1610
|
+
(...j) => r.clearValue && r.clearValue(...j))
|
|
1611
1611
|
})) : w("", !0),
|
|
1612
1612
|
e.icon && !e.clearable ? (m(), p("joy-icon", {
|
|
1613
1613
|
key: 1,
|
|
@@ -1643,7 +1643,7 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
|
|
|
1643
1643
|
},
|
|
1644
1644
|
setup(e) {
|
|
1645
1645
|
const t = e, l = x(() => t.color === "white" ? "white" : "teal");
|
|
1646
|
-
return (o,
|
|
1646
|
+
return (o, a) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
|
|
1647
1647
|
class: ["joy-link", `joy-link_${e.color}`]
|
|
1648
1648
|
}), [
|
|
1649
1649
|
e.icon ? (m(), p("joy-icon", {
|
|
@@ -1697,14 +1697,14 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1697
1697
|
emits: ["update:value"],
|
|
1698
1698
|
setup(e, { emit: t }) {
|
|
1699
1699
|
const l = e;
|
|
1700
|
-
function o(
|
|
1701
|
-
return l.value.includes(
|
|
1700
|
+
function o(i) {
|
|
1701
|
+
return l.value.includes(i.value);
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1704
|
-
let
|
|
1705
|
-
s ?
|
|
1703
|
+
function a(i, s) {
|
|
1704
|
+
let n = [...l.value || []];
|
|
1705
|
+
s ? n.push(i) : n.splice(n.indexOf(i), 1), t("update:value", n);
|
|
1706
1706
|
}
|
|
1707
|
-
return (
|
|
1707
|
+
return (i, s) => (m(), p("fieldset", {
|
|
1708
1708
|
id: e.id,
|
|
1709
1709
|
class: "joy-multi-checkbox__wrapper"
|
|
1710
1710
|
}, [
|
|
@@ -1721,17 +1721,17 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1721
1721
|
_: 1
|
|
1722
1722
|
}, 8, ["required", "optional-label", "size"])) : w("", !0),
|
|
1723
1723
|
h("div", vo, [
|
|
1724
|
-
(m(!0), p(ye, null, ve(e.options, (
|
|
1725
|
-
id:
|
|
1726
|
-
key:
|
|
1727
|
-
name:
|
|
1728
|
-
value:
|
|
1729
|
-
checked: o(
|
|
1730
|
-
"onUpdate:checked": (c) => n
|
|
1724
|
+
(m(!0), p(ye, null, ve(e.options, (n) => (m(), q(_(he), {
|
|
1725
|
+
id: n.id,
|
|
1726
|
+
key: n.id,
|
|
1727
|
+
name: n.name,
|
|
1728
|
+
value: n.value,
|
|
1729
|
+
checked: o(n),
|
|
1730
|
+
"onUpdate:checked": (c) => a(n.value, c)
|
|
1731
1731
|
}, {
|
|
1732
1732
|
default: L(() => [
|
|
1733
|
-
g(
|
|
1734
|
-
J(I(
|
|
1733
|
+
g(i.$slots, "checkbox", me(pe(n)), () => [
|
|
1734
|
+
J(I(n.label), 1)
|
|
1735
1735
|
], !0)
|
|
1736
1736
|
]),
|
|
1737
1737
|
_: 2
|
|
@@ -1741,6 +1741,7 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
1743
|
const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["small", "medium", "large"], bo = {
|
|
1744
|
+
key: 0,
|
|
1744
1745
|
class: /* @__PURE__ */ k(["joy-panel__header"])
|
|
1745
1746
|
}, go = {
|
|
1746
1747
|
key: 0,
|
|
@@ -1751,7 +1752,10 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
|
|
|
1751
1752
|
}, wo = {
|
|
1752
1753
|
key: 2,
|
|
1753
1754
|
class: "joy-panel__header-subtitle"
|
|
1754
|
-
}, So = { class: "joy-panel__body" }, jo = {
|
|
1755
|
+
}, So = { class: "joy-panel__body" }, jo = {
|
|
1756
|
+
key: 1,
|
|
1757
|
+
class: "joy-panel__footer"
|
|
1758
|
+
}, ko = /* @__PURE__ */ $({
|
|
1755
1759
|
__name: "VJoyPanel",
|
|
1756
1760
|
props: {
|
|
1757
1761
|
flex: {
|
|
@@ -1763,7 +1767,7 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
|
|
|
1763
1767
|
},
|
|
1764
1768
|
padding: {
|
|
1765
1769
|
type: String,
|
|
1766
|
-
|
|
1770
|
+
default: "medium",
|
|
1767
1771
|
validator(e) {
|
|
1768
1772
|
return ho.includes(e);
|
|
1769
1773
|
}
|
|
@@ -1771,36 +1775,36 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
|
|
|
1771
1775
|
},
|
|
1772
1776
|
setup(e) {
|
|
1773
1777
|
const t = W(), l = b(), o = x(() => {
|
|
1774
|
-
var
|
|
1775
|
-
return (
|
|
1776
|
-
});
|
|
1777
|
-
return (
|
|
1778
|
+
var i;
|
|
1779
|
+
return (i = l.value) == null ? void 0 : i.closest(".joy-wrapper");
|
|
1780
|
+
}), a = x(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
|
|
1781
|
+
return (i, s) => (m(), p("section", {
|
|
1778
1782
|
ref_key: "panel",
|
|
1779
1783
|
ref: l,
|
|
1780
1784
|
style: K({ flex: e.flex }),
|
|
1781
1785
|
class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin || _(o) }])
|
|
1782
1786
|
}, [
|
|
1783
|
-
|
|
1787
|
+
_(a) ? (m(), p("header", bo, [
|
|
1784
1788
|
_(t)["panel-title"] ? (m(), p("div", go, [
|
|
1785
|
-
g(
|
|
1789
|
+
g(i.$slots, "panel-title", {}, void 0, !0)
|
|
1786
1790
|
])) : w("", !0),
|
|
1787
1791
|
_(t)["panel-action"] ? (m(), p("div", _o, [
|
|
1788
|
-
g(
|
|
1792
|
+
g(i.$slots, "panel-title-action", {}, void 0, !0)
|
|
1789
1793
|
])) : w("", !0),
|
|
1790
1794
|
_(t)["panel-subtitle"] ? (m(), p("div", wo, [
|
|
1791
|
-
g(
|
|
1795
|
+
g(i.$slots, "panel-subtitle", {}, void 0, !0)
|
|
1792
1796
|
])) : w("", !0)
|
|
1793
|
-
]),
|
|
1797
|
+
])) : w("", !0),
|
|
1794
1798
|
h("div", So, [
|
|
1795
|
-
g(
|
|
1799
|
+
g(i.$slots, "panel-body", {}, void 0, !0)
|
|
1796
1800
|
]),
|
|
1797
|
-
|
|
1798
|
-
g(
|
|
1799
|
-
])
|
|
1801
|
+
_(t)["panel-action"] ? (m(), p("footer", jo, [
|
|
1802
|
+
g(i.$slots, "panel-action", {}, void 0, !0)
|
|
1803
|
+
])) : w("", !0)
|
|
1800
1804
|
], 6));
|
|
1801
1805
|
}
|
|
1802
1806
|
});
|
|
1803
|
-
const $o = /* @__PURE__ */ V(ko, [["__scopeId", "data-v-
|
|
1807
|
+
const $o = /* @__PURE__ */ V(ko, [["__scopeId", "data-v-54ce815b"]]), Vo = { class: "joy-panel-section" }, xo = {
|
|
1804
1808
|
key: 0,
|
|
1805
1809
|
class: "joy-panel-section__title"
|
|
1806
1810
|
}, Oo = {
|
|
@@ -1856,9 +1860,9 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1856
1860
|
},
|
|
1857
1861
|
emits: ["update:modelValue"],
|
|
1858
1862
|
setup(e, { expose: t, emit: l }) {
|
|
1859
|
-
const o = e,
|
|
1863
|
+
const o = e, a = b(!1), i = b(!1), s = b(null), n = b(null), c = W(), f = x(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
|
|
1860
1864
|
function u() {
|
|
1861
|
-
|
|
1865
|
+
a.value = !!c["expandable-content"] && f.value;
|
|
1862
1866
|
}
|
|
1863
1867
|
function v() {
|
|
1864
1868
|
l("update:modelValue", o.value), u();
|
|
@@ -1866,11 +1870,11 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1866
1870
|
Z(() => {
|
|
1867
1871
|
o.theme === "outline" && u();
|
|
1868
1872
|
});
|
|
1869
|
-
function
|
|
1870
|
-
|
|
1873
|
+
function r() {
|
|
1874
|
+
i.value = !0;
|
|
1871
1875
|
}
|
|
1872
1876
|
function y() {
|
|
1873
|
-
|
|
1877
|
+
i.value = !1;
|
|
1874
1878
|
}
|
|
1875
1879
|
return B(
|
|
1876
1880
|
() => o.modelValue,
|
|
@@ -1879,7 +1883,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1879
1883
|
}
|
|
1880
1884
|
), t({
|
|
1881
1885
|
checked: f,
|
|
1882
|
-
isExpanded:
|
|
1886
|
+
isExpanded: a
|
|
1883
1887
|
}), (d, j) => (m(), p("label", {
|
|
1884
1888
|
ref_key: "root",
|
|
1885
1889
|
ref: s,
|
|
@@ -1890,8 +1894,8 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1890
1894
|
"joy-radio--checked": _(f),
|
|
1891
1895
|
"joy-radio--disabled": e.disabled,
|
|
1892
1896
|
"joy-radio--invalid": e.invalid,
|
|
1893
|
-
"joy-radio--outline-focus":
|
|
1894
|
-
"joy-radio--focus":
|
|
1897
|
+
"joy-radio--outline-focus": i.value && e.theme === "outline",
|
|
1898
|
+
"joy-radio--focus": i.value && e.theme === "default"
|
|
1895
1899
|
}
|
|
1896
1900
|
])
|
|
1897
1901
|
}, [
|
|
@@ -1904,7 +1908,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1904
1908
|
required: e.required,
|
|
1905
1909
|
name: e.name,
|
|
1906
1910
|
onChange: v,
|
|
1907
|
-
onFocus:
|
|
1911
|
+
onFocus: r,
|
|
1908
1912
|
onBlur: y
|
|
1909
1913
|
}, null, 40, Lo),
|
|
1910
1914
|
h("span", Eo, [
|
|
@@ -1916,8 +1920,8 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1916
1920
|
]),
|
|
1917
1921
|
h("div", {
|
|
1918
1922
|
ref_key: "expandableElement",
|
|
1919
|
-
ref:
|
|
1920
|
-
class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded":
|
|
1923
|
+
ref: n,
|
|
1924
|
+
class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
|
|
1921
1925
|
}, [
|
|
1922
1926
|
g(d.$slots, "expandable-content", {}, void 0, !0)
|
|
1923
1927
|
], 2)
|
|
@@ -2000,15 +2004,15 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2000
2004
|
},
|
|
2001
2005
|
emits: ["update:modelValue"],
|
|
2002
2006
|
setup(e, { emit: t }) {
|
|
2003
|
-
const l = e, o = b(),
|
|
2007
|
+
const l = e, o = b(), a = b(), i = W(), s = b(!1);
|
|
2004
2008
|
Z(() => {
|
|
2005
|
-
var
|
|
2006
|
-
const u =
|
|
2009
|
+
var r;
|
|
2010
|
+
const u = i.label && i.label();
|
|
2007
2011
|
if (!u || !u.length)
|
|
2008
2012
|
return;
|
|
2009
2013
|
const v = u[0];
|
|
2010
2014
|
if (v.type === "JoyLabel") {
|
|
2011
|
-
const y = (
|
|
2015
|
+
const y = (r = v.props) == null ? void 0 : r.for;
|
|
2012
2016
|
if (!y) {
|
|
2013
2017
|
console.warn("JoyLabel for attribute is missing");
|
|
2014
2018
|
return;
|
|
@@ -2016,7 +2020,7 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2016
2020
|
y !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
|
|
2017
2021
|
}
|
|
2018
2022
|
});
|
|
2019
|
-
function
|
|
2023
|
+
function n(u) {
|
|
2020
2024
|
const v = u.target.value;
|
|
2021
2025
|
t("update:modelValue", v);
|
|
2022
2026
|
}
|
|
@@ -2055,14 +2059,14 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2055
2059
|
h("select", {
|
|
2056
2060
|
id: e.id || e.name,
|
|
2057
2061
|
ref_key: "select",
|
|
2058
|
-
ref:
|
|
2062
|
+
ref: a,
|
|
2059
2063
|
class: "joy-select",
|
|
2060
2064
|
name: e.name,
|
|
2061
2065
|
"aria-invalid": e.invalid,
|
|
2062
2066
|
required: e.required,
|
|
2063
2067
|
disabled: e.disabled,
|
|
2064
2068
|
value: e.modelValue,
|
|
2065
|
-
onInput:
|
|
2069
|
+
onInput: n,
|
|
2066
2070
|
onFocus: c,
|
|
2067
2071
|
onBlur: f
|
|
2068
2072
|
}, [
|
|
@@ -2110,7 +2114,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2110
2114
|
},
|
|
2111
2115
|
emits: ["update:checked"],
|
|
2112
2116
|
setup(e, { emit: t }) {
|
|
2113
|
-
const l = e, o = b(l.checked),
|
|
2117
|
+
const l = e, o = b(l.checked), a = b(), i = b(!1), s = l.multiple ? "div" : "label", n = {
|
|
2114
2118
|
onRadioChange: () => {
|
|
2115
2119
|
t("update:checked", l.value);
|
|
2116
2120
|
},
|
|
@@ -2121,10 +2125,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2121
2125
|
l.multiple || f.stopPropagation();
|
|
2122
2126
|
},
|
|
2123
2127
|
onFocus: () => {
|
|
2124
|
-
|
|
2128
|
+
i.value = !0;
|
|
2125
2129
|
},
|
|
2126
2130
|
onBlur: () => {
|
|
2127
|
-
|
|
2131
|
+
i.value = !1;
|
|
2128
2132
|
}
|
|
2129
2133
|
};
|
|
2130
2134
|
function c(f) {
|
|
@@ -2134,18 +2138,18 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2134
2138
|
class: k([
|
|
2135
2139
|
"joy-selectable-item__wrapper",
|
|
2136
2140
|
{
|
|
2137
|
-
"joy-selectable-item--focusing":
|
|
2141
|
+
"joy-selectable-item--focusing": i.value
|
|
2138
2142
|
}
|
|
2139
2143
|
]),
|
|
2140
2144
|
"aria-disabled": e.disabled,
|
|
2141
2145
|
onClick: u[4] || (u[4] = //@ts-ignore
|
|
2142
|
-
(...v) =>
|
|
2146
|
+
(...v) => n.onClick && n.onClick(...v))
|
|
2143
2147
|
}, [
|
|
2144
2148
|
e.multiple ? w("", !0) : (m(), p("input", {
|
|
2145
2149
|
key: 0,
|
|
2146
2150
|
id: e.id,
|
|
2147
2151
|
ref_key: "inputRadio",
|
|
2148
|
-
ref:
|
|
2152
|
+
ref: a,
|
|
2149
2153
|
type: "radio",
|
|
2150
2154
|
value: e.value,
|
|
2151
2155
|
checked: e.checked,
|
|
@@ -2153,11 +2157,11 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2153
2157
|
required: e.required,
|
|
2154
2158
|
name: e.name,
|
|
2155
2159
|
onChange: u[0] || (u[0] = //@ts-ignore
|
|
2156
|
-
(...v) =>
|
|
2160
|
+
(...v) => n.onRadioChange && n.onRadioChange(...v)),
|
|
2157
2161
|
onFocus: u[1] || (u[1] = //@ts-ignore
|
|
2158
|
-
(...v) =>
|
|
2162
|
+
(...v) => n.onFocus && n.onFocus(...v)),
|
|
2159
2163
|
onBlur: u[2] || (u[2] = //@ts-ignore
|
|
2160
|
-
(...v) =>
|
|
2164
|
+
(...v) => n.onBlur && n.onBlur(...v))
|
|
2161
2165
|
}, null, 40, Wo)),
|
|
2162
2166
|
(m(), q(ce(_(s)), {
|
|
2163
2167
|
for: e.id,
|
|
@@ -2170,7 +2174,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2170
2174
|
"joy-selectable-item--single": !e.multiple
|
|
2171
2175
|
}
|
|
2172
2176
|
]),
|
|
2173
|
-
onClick:
|
|
2177
|
+
onClick: n.onLabelClick
|
|
2174
2178
|
}, {
|
|
2175
2179
|
default: L(() => [
|
|
2176
2180
|
e.multiple ? (m(), q(_(he), {
|
|
@@ -2186,8 +2190,8 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2186
2190
|
name: e.name,
|
|
2187
2191
|
"display-focus": !1,
|
|
2188
2192
|
required: e.required,
|
|
2189
|
-
onFocus:
|
|
2190
|
-
onBlur:
|
|
2193
|
+
onFocus: n.onFocus,
|
|
2194
|
+
onBlur: n.onBlur
|
|
2191
2195
|
}, {
|
|
2192
2196
|
default: L(() => [
|
|
2193
2197
|
g(f.$slots, "default", {}, void 0, !0)
|
|
@@ -2248,16 +2252,16 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
|
|
|
2248
2252
|
emits: ["update:value"],
|
|
2249
2253
|
setup(e, { emit: t }) {
|
|
2250
2254
|
const l = e;
|
|
2251
|
-
function o(
|
|
2252
|
-
return typeof l.value == "string" ? l.value ===
|
|
2255
|
+
function o(i) {
|
|
2256
|
+
return typeof l.value == "string" ? l.value === i.value : (l.value || []).includes(i.value);
|
|
2253
2257
|
}
|
|
2254
|
-
function
|
|
2258
|
+
function a(i, s) {
|
|
2255
2259
|
if (!l.multiple)
|
|
2256
2260
|
return t("update:value", s);
|
|
2257
|
-
let
|
|
2258
|
-
s && typeof s == "boolean" ?
|
|
2261
|
+
let n = [...l.value || []];
|
|
2262
|
+
s && typeof s == "boolean" ? n.push(i) : n.splice(n.indexOf(i), 1), t("update:value", n);
|
|
2259
2263
|
}
|
|
2260
|
-
return (
|
|
2264
|
+
return (i, s) => (m(), p("fieldset", {
|
|
2261
2265
|
id: e.id,
|
|
2262
2266
|
class: "joy-selectable-item-group__wrapper"
|
|
2263
2267
|
}, [
|
|
@@ -2283,24 +2287,24 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
|
|
|
2283
2287
|
}
|
|
2284
2288
|
])
|
|
2285
2289
|
}, [
|
|
2286
|
-
(m(!0), p(ye, null, ve(e.options, (
|
|
2287
|
-
id:
|
|
2288
|
-
key:
|
|
2289
|
-
name:
|
|
2290
|
-
value:
|
|
2290
|
+
(m(!0), p(ye, null, ve(e.options, (n) => (m(), q(_(tt), {
|
|
2291
|
+
id: n.id,
|
|
2292
|
+
key: n.id,
|
|
2293
|
+
name: n.name,
|
|
2294
|
+
value: n.value,
|
|
2291
2295
|
multiple: e.multiple,
|
|
2292
|
-
checked: o(
|
|
2293
|
-
"onUpdate:checked": (c) => n
|
|
2296
|
+
checked: o(n),
|
|
2297
|
+
"onUpdate:checked": (c) => a(n.value, c)
|
|
2294
2298
|
}, ut({
|
|
2295
2299
|
default: L(() => [
|
|
2296
|
-
J(I(
|
|
2300
|
+
J(I(n.label) + " ", 1)
|
|
2297
2301
|
]),
|
|
2298
2302
|
_: 2
|
|
2299
2303
|
}, [
|
|
2300
|
-
|
|
2304
|
+
n.subLabel ? {
|
|
2301
2305
|
name: "selectable-item-sublabel",
|
|
2302
2306
|
fn: L(() => [
|
|
2303
|
-
J(I(
|
|
2307
|
+
J(I(n.subLabel), 1)
|
|
2304
2308
|
]),
|
|
2305
2309
|
key: "0"
|
|
2306
2310
|
} : void 0
|
|
@@ -2327,17 +2331,28 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @_
|
|
|
2327
2331
|
wrap: {
|
|
2328
2332
|
type: String,
|
|
2329
2333
|
default: "wrap"
|
|
2334
|
+
},
|
|
2335
|
+
/** Apply a flex-grow to children in order to stretch them all along horizontal space */
|
|
2336
|
+
itemStretch: {
|
|
2337
|
+
type: Boolean
|
|
2330
2338
|
}
|
|
2331
2339
|
},
|
|
2332
2340
|
setup(e) {
|
|
2333
2341
|
return (t, l) => (m(), p("div", {
|
|
2334
|
-
class: k([
|
|
2342
|
+
class: k([
|
|
2343
|
+
"joy-wrapper",
|
|
2344
|
+
`joy-wrapper--justify-${e.justify}`,
|
|
2345
|
+
`joy-wrapper--align-${e.align}`,
|
|
2346
|
+
`joy-wrapper--direction-${e.direction}`,
|
|
2347
|
+
`joy-wrapper--wrap-${e.wrap}`,
|
|
2348
|
+
{ "joy-wrapper--item-stretch": e.itemStretch }
|
|
2349
|
+
])
|
|
2335
2350
|
}, [
|
|
2336
2351
|
g(t.$slots, "default", {}, void 0, !0)
|
|
2337
2352
|
], 2));
|
|
2338
2353
|
}
|
|
2339
2354
|
});
|
|
2340
|
-
const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-
|
|
2355
|
+
const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { class: "joy-template__wrapper" }, en = {
|
|
2341
2356
|
key: 0,
|
|
2342
2357
|
class: "joy-template__heading"
|
|
2343
2358
|
}, tn = {
|
|
@@ -2363,20 +2378,20 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-319d995e"]]), Xo = { cla
|
|
|
2363
2378
|
},
|
|
2364
2379
|
setup(e) {
|
|
2365
2380
|
const t = e, l = W(), o = x(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"]);
|
|
2366
|
-
return (
|
|
2381
|
+
return (a, i) => (m(), p("main", {
|
|
2367
2382
|
class: k(["joy-template", { "joy-template--full": t.full }])
|
|
2368
2383
|
}, [
|
|
2369
2384
|
h("div", Xo, [
|
|
2370
2385
|
_(o) ? (m(), p("div", en, [
|
|
2371
2386
|
_(l)["template-back"] ? (m(), p("div", tn, [
|
|
2372
|
-
g(
|
|
2387
|
+
g(a.$slots, "template-back", {}, void 0, !0)
|
|
2373
2388
|
])) : w("", !0),
|
|
2374
2389
|
h("div", ln, [
|
|
2375
2390
|
_(l)["template-title"] ? (m(), p("div", on, [
|
|
2376
|
-
g(
|
|
2391
|
+
g(a.$slots, "template-title", {}, void 0, !0)
|
|
2377
2392
|
])) : w("", !0),
|
|
2378
2393
|
_(l)["template-subtitle"] ? (m(), p("div", nn, [
|
|
2379
|
-
g(
|
|
2394
|
+
g(a.$slots, "template-subtitle", {}, void 0, !0)
|
|
2380
2395
|
])) : w("", !0)
|
|
2381
2396
|
])
|
|
2382
2397
|
])) : w("", !0),
|
|
@@ -2388,11 +2403,11 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-319d995e"]]), Xo = { cla
|
|
|
2388
2403
|
}
|
|
2389
2404
|
])
|
|
2390
2405
|
}, [
|
|
2391
|
-
|
|
2392
|
-
g(
|
|
2406
|
+
a.$slots["template-main"] ? (m(), p("div", an, [
|
|
2407
|
+
g(a.$slots, "template-main", {}, void 0, !0)
|
|
2393
2408
|
])) : w("", !0),
|
|
2394
|
-
|
|
2395
|
-
g(
|
|
2409
|
+
a.$slots["template-sidebar"] ? (m(), p("div", rn, [
|
|
2410
|
+
g(a.$slots, "template-sidebar", {}, void 0, !0)
|
|
2396
2411
|
])) : w("", !0)
|
|
2397
2412
|
], 2)
|
|
2398
2413
|
])
|
|
@@ -2456,24 +2471,24 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2456
2471
|
},
|
|
2457
2472
|
emits: ["update:modelValue"],
|
|
2458
2473
|
setup(e, { expose: t, emit: l }) {
|
|
2459
|
-
const o = e,
|
|
2460
|
-
element: o.autogrow ?
|
|
2461
|
-
}), s = b(!1),
|
|
2474
|
+
const o = e, a = b(), { triggerResize: i } = el({
|
|
2475
|
+
element: o.autogrow ? a : void 0
|
|
2476
|
+
}), s = b(!1), n = b(!1), c = x(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = x(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
|
|
2462
2477
|
onInput: (v) => {
|
|
2463
|
-
l("update:modelValue", v.target.value),
|
|
2478
|
+
l("update:modelValue", v.target.value), i();
|
|
2464
2479
|
},
|
|
2465
2480
|
onBlur: () => {
|
|
2466
|
-
|
|
2481
|
+
n.value = !1, s.value = c.value || f.value;
|
|
2467
2482
|
},
|
|
2468
2483
|
onFocus: () => {
|
|
2469
|
-
|
|
2484
|
+
n.value = !0;
|
|
2470
2485
|
}
|
|
2471
2486
|
};
|
|
2472
2487
|
return t({
|
|
2473
2488
|
isInvalid: s,
|
|
2474
2489
|
valueOverMaxlength: c,
|
|
2475
2490
|
valueUnderMinlength: f
|
|
2476
|
-
}), (v,
|
|
2491
|
+
}), (v, r) => (m(), p("div", {
|
|
2477
2492
|
"aria-disabled": e.disabled,
|
|
2478
2493
|
class: k([
|
|
2479
2494
|
"joy-textarea",
|
|
@@ -2481,7 +2496,7 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2481
2496
|
"joy-textarea_invalid": s.value || e.invalid,
|
|
2482
2497
|
"joy-textarea_disabled": e.disabled,
|
|
2483
2498
|
"joy-textarea_autogrow": e.autogrow,
|
|
2484
|
-
"joy-textarea_focusing":
|
|
2499
|
+
"joy-textarea_focusing": n.value
|
|
2485
2500
|
}
|
|
2486
2501
|
])
|
|
2487
2502
|
}, [
|
|
@@ -2502,18 +2517,18 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2502
2517
|
h("textarea", Q(v.$attrs, {
|
|
2503
2518
|
id: e.id,
|
|
2504
2519
|
ref_key: "textarea",
|
|
2505
|
-
ref:
|
|
2520
|
+
ref: a,
|
|
2506
2521
|
class: "joy-native-textarea",
|
|
2507
2522
|
disabled: e.disabled,
|
|
2508
2523
|
name: e.name,
|
|
2509
2524
|
required: e.required,
|
|
2510
2525
|
minlength: e.minlength,
|
|
2511
2526
|
value: e.modelValue,
|
|
2512
|
-
onInput:
|
|
2527
|
+
onInput: r[0] || (r[0] = //@ts-ignore
|
|
2513
2528
|
(...y) => u.onInput && u.onInput(...y)),
|
|
2514
|
-
onFocus:
|
|
2529
|
+
onFocus: r[1] || (r[1] = //@ts-ignore
|
|
2515
2530
|
(...y) => u.onFocus && u.onFocus(...y)),
|
|
2516
|
-
onBlur:
|
|
2531
|
+
onBlur: r[2] || (r[2] = //@ts-ignore
|
|
2517
2532
|
(...y) => u.onBlur && u.onBlur(...y))
|
|
2518
2533
|
}), null, 16, fn)
|
|
2519
2534
|
]),
|
|
@@ -2581,9 +2596,9 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2581
2596
|
emits: ["update:modelValue"],
|
|
2582
2597
|
setup(e, { emit: t }) {
|
|
2583
2598
|
const l = b(!1), o = {
|
|
2584
|
-
onChange: (
|
|
2585
|
-
const
|
|
2586
|
-
t("update:modelValue",
|
|
2599
|
+
onChange: (a) => {
|
|
2600
|
+
const i = a.target.checked;
|
|
2601
|
+
t("update:modelValue", i);
|
|
2587
2602
|
},
|
|
2588
2603
|
onFocus: () => {
|
|
2589
2604
|
l.value = !0;
|
|
@@ -2592,7 +2607,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2592
2607
|
l.value = !1;
|
|
2593
2608
|
}
|
|
2594
2609
|
};
|
|
2595
|
-
return (
|
|
2610
|
+
return (a, i) => (m(), p("div", hn, [
|
|
2596
2611
|
h("label", {
|
|
2597
2612
|
class: k([
|
|
2598
2613
|
"joy-toggle",
|
|
@@ -2614,17 +2629,17 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2614
2629
|
required: e.required,
|
|
2615
2630
|
"aria-checked": e.modelValue,
|
|
2616
2631
|
value: e.value,
|
|
2617
|
-
onChange:
|
|
2632
|
+
onChange: i[0] || (i[0] = //@ts-ignore
|
|
2618
2633
|
(...s) => o.onChange && o.onChange(...s)),
|
|
2619
|
-
onFocus:
|
|
2634
|
+
onFocus: i[1] || (i[1] = //@ts-ignore
|
|
2620
2635
|
(...s) => o.onFocus && o.onFocus(...s)),
|
|
2621
|
-
onBlur:
|
|
2636
|
+
onBlur: i[2] || (i[2] = //@ts-ignore
|
|
2622
2637
|
(...s) => o.onBlur && o.onBlur(...s))
|
|
2623
2638
|
}, null, 40, bn),
|
|
2624
2639
|
h("p", gn, [
|
|
2625
2640
|
_n,
|
|
2626
2641
|
h("span", wn, [
|
|
2627
|
-
g(
|
|
2642
|
+
g(a.$slots, "default", {}, () => [
|
|
2628
2643
|
J(I(e.label), 1)
|
|
2629
2644
|
], !0)
|
|
2630
2645
|
]),
|