@maltjoy/core-vue 1.0.0-beta.5 → 1.0.0-beta.7

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
@@ -1,7 +1,14 @@
1
- import { defineComponent as $, openBlock as m, createElementBlock as p, normalizeClass as k, renderSlot as g, createTextVNode as J, toDisplayString as I, useAttrs as Re, computed as x, createBlock as q, resolveDynamicComponent as ce, unref as _, withCtx as L, createCommentVNode as w, createElementVNode as h, ref as b, mergeProps as Q, createVNode as fe, pushScopeId as te, popScopeId as le, getCurrentScope as ot, onScopeDispose as nt, getCurrentInstance as at, onMounted as Z, nextTick as Me, watch as B, h as it, reactive as X, onBeforeUnmount as Ne, normalizeStyle as K, Fragment as ye, renderList as ve, normalizeProps as me, guardReactiveProps as pe, Teleport as rt, useSlots as W, onBeforeMount as st, createSlots as ut } from "vue";
1
+ import { defineComponent as $, openBlock as m, createElementBlock as p, normalizeClass as k, renderSlot as g, createTextVNode as J, toDisplayString as L, useAttrs as Re, computed as O, createBlock as q, resolveDynamicComponent as ce, unref as _, withCtx as B, createCommentVNode as w, createElementVNode as h, ref as b, mergeProps as Q, createVNode as fe, pushScopeId as te, popScopeId as le, getCurrentScope as nt, onScopeDispose as at, getCurrentInstance as it, onMounted as Z, nextTick as Me, watch as E, h as rt, reactive as X, onBeforeUnmount as Ne, normalizeStyle as K, Fragment as ye, renderList as ve, normalizeProps as me, guardReactiveProps as pe, Teleport as st, createSlots as He, useSlots as W, onBeforeMount as ut } from "vue";
2
2
  const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink", "dark-blue", "yellow"], ct = /* @__PURE__ */ $({
3
3
  __name: "VJoyBadge",
4
4
  props: {
5
+ /**
6
+ * Display the colored bulletpoint on the left
7
+ */
8
+ bulletpoint: {
9
+ type: Boolean,
10
+ default: !1
11
+ },
5
12
  /**
6
13
  * Use label or slot in order to inject the text.
7
14
  */
@@ -21,11 +28,11 @@ const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
21
28
  },
22
29
  setup(e) {
23
30
  return (t, l) => (m(), p("span", {
24
- class: k(["joy-badge", `joy-badge__${e.variant}`]),
31
+ class: k(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
25
32
  role: "status"
26
33
  }, [
27
34
  g(t.$slots, "default", {}, () => [
28
- J(I(e.label), 1)
35
+ J(L(e.label), 1)
29
36
  ], !0)
30
37
  ], 2));
31
38
  }
@@ -35,7 +42,7 @@ const V = (e, t) => {
35
42
  for (const [o, n] of t)
36
43
  l[o] = n;
37
44
  return l;
38
- }, ft = /* @__PURE__ */ V(ct, [["__scopeId", "data-v-c0310e42"]]), yt = ["teal", "white"], vt = /* @__PURE__ */ $({
45
+ }, ft = /* @__PURE__ */ V(ct, [["__scopeId", "data-v-41907acc"]]), yt = ["teal", "white"], vt = /* @__PURE__ */ $({
39
46
  __name: "VJoySpinner",
40
47
  props: {
41
48
  color: {
@@ -51,7 +58,7 @@ const V = (e, t) => {
51
58
  }, null, 2));
52
59
  }
53
60
  });
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__ */ $({
61
+ const We = /* @__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
62
  __name: "VJoyButton",
56
63
  props: {
57
64
  /**
@@ -64,6 +71,11 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
64
71
  },
65
72
  /** Name of the icon, placed before the text */
66
73
  icon: String,
74
+ /** Left to the text or right */
75
+ iconPosition: {
76
+ type: String,
77
+ default: "left"
78
+ },
67
79
  /** Change the component's state and display a JoySpinner. */
68
80
  loading: {
69
81
  type: Boolean,
@@ -87,10 +99,10 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
87
99
  }
88
100
  },
89
101
  setup(e) {
90
- const t = e, l = Re(), o = x(() => {
102
+ const t = e, l = Re(), o = O(() => {
91
103
  switch (t.size) {
92
104
  case "xxsmall":
93
- return "xsmall";
105
+ return "xxsmall";
94
106
  case "xsmall":
95
107
  return "xxsmall";
96
108
  case "small":
@@ -98,9 +110,10 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
98
110
  default:
99
111
  return "small";
100
112
  }
101
- }), n = x(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
113
+ }), n = O(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
102
114
  return (r, s) => (m(), q(ce(_(l).href ? "a" : "button"), {
103
115
  disabled: e.loading || _(l).disabled,
116
+ type: _(l).type || "button",
104
117
  class: k([
105
118
  "joy-button",
106
119
  `joy-button_${e.variant}`,
@@ -111,26 +124,34 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
111
124
  }
112
125
  ])
113
126
  }, {
114
- default: L(() => [
115
- e.icon ? (m(), p("joy-icon", {
127
+ default: B(() => [
128
+ e.icon && e.iconPosition === "left" ? (m(), p("joy-icon", {
116
129
  key: 0,
130
+ class: "joy-button_icon joy-button_icon--left",
117
131
  name: e.icon,
118
132
  size: _(o),
119
133
  lazy: !1
120
134
  }, null, 8, _t)) : w("", !0),
121
- e.loading ? (m(), q(He, {
135
+ e.loading ? (m(), q(We, {
122
136
  key: 1,
123
137
  color: _(n)
124
138
  }, null, 8, ["color"])) : w("", !0),
125
139
  h("span", wt, [
126
140
  g(r.$slots, "default", {}, void 0, !0)
127
- ])
141
+ ]),
142
+ e.icon && e.iconPosition === "right" ? (m(), p("joy-icon", {
143
+ key: 2,
144
+ class: "joy-button_icon joy-button_icon--right",
145
+ name: e.icon,
146
+ size: _(o),
147
+ lazy: !1
148
+ }, null, 8, St)) : w("", !0)
128
149
  ]),
129
150
  _: 3
130
- }, 8, ["disabled", "class"]));
151
+ }, 8, ["disabled", "type", "class"]));
131
152
  }
132
153
  });
133
- const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["aria-checked", "aria-hidden"], $t = { class: "joy-checkbox__input-wrapper" }, Vt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], xt = { class: "joy-checkbox__content-wrapper" }, Ot = { class: "joy-checkbox__content" }, It = /* @__PURE__ */ $({
154
+ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-058329aa"]]), $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
155
  __name: "VJoyCheckbox",
135
156
  props: {
136
157
  /** 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 */
@@ -193,6 +214,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
193
214
  return t({
194
215
  isIndeterminate: r
195
216
  }), (c, f) => (m(), p("div", {
217
+ class: "joy-checkbox__wrapper",
196
218
  "aria-checked": e.checked,
197
219
  "aria-hidden": e.disabled
198
220
  }, [
@@ -206,7 +228,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
206
228
  }
207
229
  ])
208
230
  }, [
209
- h("div", $t, [
231
+ h("div", Vt, [
210
232
  h("input", {
211
233
  id: e.id,
212
234
  ref_key: "input",
@@ -227,36 +249,36 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
227
249
  (...u) => a.onFocus && a.onFocus(...u)),
228
250
  onBlur: f[2] || (f[2] = //@ts-ignore
229
251
  (...u) => a.onBlur && a.onBlur(...u))
230
- }, null, 40, Vt)
252
+ }, null, 40, xt)
231
253
  ]),
232
- h("div", xt, [
254
+ h("div", Ot, [
233
255
  g(c.$slots, "default", {}, () => [
234
- J(I(e.label), 1)
256
+ J(L(e.label), 1)
235
257
  ], !0),
236
- h("div", Ot, [
258
+ h("div", It, [
237
259
  g(c.$slots, "checkbox-content", {}, void 0, !0)
238
260
  ])
239
261
  ])
240
262
  ], 2)
241
- ], 8, kt));
263
+ ], 8, $t));
242
264
  }
243
265
  });
244
- const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Bt = { class: "joy-counter" }, Lt = ["aria-label", "disabled"], Et = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
266
+ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-192cc0d3"]]), Ue = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Lt = { class: "joy-counter" }, Et = ["aria-label", "disabled"], Pt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
245
267
  name: "minus",
246
268
  color: "teal",
247
269
  lazy: !1
248
270
  }, null, -1)), Ct = [
249
- Et
250
- ], Pt = { class: "joy-counter__input-wrapper" }, Jt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], qt = ["aria-label", "disabled"], Tt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
271
+ Pt
272
+ ], Jt = { class: "joy-counter__input-wrapper" }, qt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], zt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
251
273
  name: "add",
252
274
  lazy: !1,
253
275
  color: "teal"
254
- }, null, -1)), zt = [
255
- Tt
256
- ], At = {
276
+ }, null, -1)), At = [
277
+ zt
278
+ ], Ft = {
257
279
  key: 0,
258
280
  class: "joy-counter_error"
259
- }, Ft = /* @__PURE__ */ $({
281
+ }, Dt = /* @__PURE__ */ $({
260
282
  __name: "VJoyCounter",
261
283
  props: {
262
284
  /** Removes any interactivity */
@@ -361,7 +383,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
361
383
  };
362
384
  return t({
363
385
  props: o
364
- }), (d, j) => (m(), p("div", Bt, [
386
+ }), (d, j) => (m(), p("div", Lt, [
365
387
  e.label ? (m(), q(_(N), {
366
388
  key: 0,
367
389
  for: e.id,
@@ -369,9 +391,9 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
369
391
  "optional-label": e.optionalLabel,
370
392
  size: e.labelSize
371
393
  }, {
372
- default: L(() => [
394
+ default: B(() => [
373
395
  g(d.$slots, "default", {}, () => [
374
- J(I(e.label), 1)
396
+ J(L(e.label), 1)
375
397
  ], !0)
376
398
  ]),
377
399
  _: 3
@@ -385,8 +407,8 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
385
407
  "aria-label": e.labelDecrement,
386
408
  disabled: e.modelValue <= e.min,
387
409
  onClick: s
388
- }, Ct, 8, Lt),
389
- h("div", Pt, [
410
+ }, Ct, 8, Et),
411
+ h("div", Jt, [
390
412
  h("input", Q({
391
413
  id: e.id,
392
414
  ref: "input",
@@ -406,7 +428,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
406
428
  (...S) => y.onBlur && y.onBlur(...S)),
407
429
  onFocus: j[2] || (j[2] = //@ts-ignore
408
430
  (...S) => y.onFocus && y.onFocus(...S))
409
- }), null, 16, Jt)
431
+ }), null, 16, qt)
410
432
  ]),
411
433
  h("button", {
412
434
  class: "joy-counter__increment",
@@ -414,22 +436,22 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
414
436
  "aria-label": e.labelIncrement,
415
437
  disabled: e.max ? e.modelValue >= e.max : !1,
416
438
  onClick: a
417
- }, zt, 8, qt),
418
- e.invalid && e.errorMessage ? (m(), p("div", At, [
419
- fe(_(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
439
+ }, At, 8, Tt),
440
+ e.invalid && e.errorMessage ? (m(), p("div", Ft, [
441
+ fe(_(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
420
442
  ])) : w("", !0)
421
443
  ], 2)
422
444
  ]));
423
445
  }
424
446
  });
425
- const Dt = /* @__PURE__ */ V(Ft, [["__scopeId", "data-v-0d1ab3f2"]]);
447
+ const Rt = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-0d1ab3f2"]]);
426
448
  var _e;
427
- const U = typeof window < "u", Ue = (e) => typeof e == "string", z = () => {
449
+ const U = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
428
450
  }, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
429
- function C(e) {
451
+ function P(e) {
430
452
  return typeof e == "function" ? e() : _(e);
431
453
  }
432
- function Ge(e, t) {
454
+ function Ke(e, t) {
433
455
  function l(...o) {
434
456
  return new Promise((n, r) => {
435
457
  Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
@@ -437,13 +459,13 @@ function Ge(e, t) {
437
459
  }
438
460
  return l;
439
461
  }
440
- function Rt(e, t = {}) {
462
+ function Mt(e, t = {}) {
441
463
  let l, o, n = z;
442
464
  const r = (a) => {
443
465
  clearTimeout(a), n(), n = z;
444
466
  };
445
467
  return (a) => {
446
- const c = C(e), f = C(t.maxWait);
468
+ const c = P(e), f = P(t.maxWait);
447
469
  return l && r(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
448
470
  n = t.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
449
471
  l && r(l), o = null, u(a());
@@ -453,13 +475,13 @@ function Rt(e, t = {}) {
453
475
  });
454
476
  };
455
477
  }
456
- function Mt(e, t = !0, l = !0, o = !1) {
478
+ function Nt(e, t = !0, l = !0, o = !1) {
457
479
  let n = 0, r, s = !0, a = z, c;
458
480
  const f = () => {
459
481
  r && (clearTimeout(r), r = void 0, a(), a = z);
460
482
  };
461
483
  return (v) => {
462
- const i = C(e), y = Date.now() - n, d = () => c = v();
484
+ const i = P(e), y = Date.now() - n, d = () => c = v();
463
485
  return f(), i <= 0 ? (n = Date.now(), d()) : (y > i && (l || !s) ? (n = Date.now(), d()) : t && (c = new Promise((j, S) => {
464
486
  a = o ? S : j, r = setTimeout(() => {
465
487
  n = Date.now(), s = !0, j(d()), f();
@@ -472,27 +494,27 @@ const R = {
472
494
  updated: "updated",
473
495
  unmounted: "unmounted"
474
496
  };
475
- function Nt(e) {
497
+ function Ht(e) {
476
498
  return e;
477
499
  }
478
500
  function G(e) {
479
- return ot() ? (nt(e), !0) : !1;
501
+ return nt() ? (at(e), !0) : !1;
480
502
  }
481
- function Ht(e, t = 200, l = {}) {
482
- return Ge(Rt(t, l), e);
503
+ function Wt(e, t = 200, l = {}) {
504
+ return Ke(Mt(t, l), e);
483
505
  }
484
- function Wt(e, t = 200, l = !1, o = !0, n = !1) {
485
- return Ge(Mt(t, l, o, n), e);
506
+ function Ut(e, t = 200, l = !1, o = !0, n = !1) {
507
+ return Ke(Nt(t, l, o, n), e);
486
508
  }
487
- function Ut(e) {
488
- return typeof e == "function" ? x(e) : b(e);
509
+ function Gt(e) {
510
+ return typeof e == "function" ? O(e) : b(e);
489
511
  }
490
- function Ke(e, t = !0) {
491
- at() ? Z(e) : t ? e() : Me(e);
512
+ function Qe(e, t = !0) {
513
+ it() ? Z(e) : t ? e() : Me(e);
492
514
  }
493
515
  function H(e) {
494
516
  var t;
495
- const l = C(e);
517
+ const l = P(e);
496
518
  return (t = l == null ? void 0 : l.$el) != null ? t : l;
497
519
  }
498
520
  const be = U ? window : void 0;
@@ -501,12 +523,12 @@ U && window.navigator;
501
523
  U && window.location;
502
524
  function ae(...e) {
503
525
  let t, l, o, n;
504
- if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
526
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
505
527
  return z;
506
528
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
507
529
  const r = [], s = () => {
508
530
  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), C(n)], ([u, v]) => {
531
+ }, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = E(() => [H(t), P(n)], ([u, v]) => {
510
532
  s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
511
533
  }, { immediate: !0, flush: "post" }), f = () => {
512
534
  c(), s();
@@ -514,7 +536,7 @@ function ae(...e) {
514
536
  return G(f), f;
515
537
  }
516
538
  let we = !1;
517
- function Gt(e, t, l = {}) {
539
+ function Kt(e, t, l = {}) {
518
540
  const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
519
541
  if (!o)
520
542
  return;
@@ -550,28 +572,28 @@ function Gt(e, t, l = {}) {
550
572
  ].filter(Boolean);
551
573
  return () => u.forEach((i) => i());
552
574
  }
553
- function Kt(e, t = !1) {
575
+ function Qt(e, t = !1) {
554
576
  const l = b(), o = () => l.value = Boolean(e());
555
- return o(), Ke(o, t), l;
577
+ return o(), Qe(o, t), l;
556
578
  }
557
579
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
558
580
  ie[re] = ie[re] || {};
559
581
  ie[re];
560
- var Se = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, Yt = (e, t) => {
582
+ var Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Xt = (e, t) => {
561
583
  var l = {};
562
584
  for (var o in e)
563
- Qt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
585
+ Zt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
564
586
  if (e != null && Se)
565
587
  for (var o of Se(e))
566
- t.indexOf(o) < 0 && Zt.call(e, o) && (l[o] = e[o]);
588
+ t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
567
589
  return l;
568
590
  };
569
- function Xt(e, t, l = {}) {
570
- const o = l, { window: n = be } = o, r = Yt(o, ["window"]);
591
+ function el(e, t, l = {}) {
592
+ const o = l, { window: n = be } = o, r = Xt(o, ["window"]);
571
593
  let s;
572
- const a = Kt(() => n && "ResizeObserver" in n), c = () => {
594
+ const a = Qt(() => n && "ResizeObserver" in n), c = () => {
573
595
  s && (s.disconnect(), s = void 0);
574
- }, f = B(() => H(e), (v) => {
596
+ }, f = E(() => H(e), (v) => {
575
597
  c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
576
598
  }, { immediate: !0, flush: "post" }), u = () => {
577
599
  c(), f();
@@ -585,27 +607,27 @@ var je;
585
607
  (function(e) {
586
608
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
587
609
  })(je || (je = {}));
588
- function el(e) {
610
+ function tl(e) {
589
611
  const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
590
612
  function o() {
591
613
  var n, r;
592
614
  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
615
  }
594
- return B([l, t], o, { immediate: !0 }), Xt(t, () => o()), e != null && e.watch && B(e.watch, o, { immediate: !0, deep: !0 }), {
616
+ return E([l, t], o, { immediate: !0 }), el(t, () => o()), e != null && e.watch && E(e.watch, o, { immediate: !0, deep: !0 }), {
595
617
  textarea: t,
596
618
  input: l,
597
619
  triggerResize: o
598
620
  };
599
621
  }
600
- var tl = Object.defineProperty, ke = Object.getOwnPropertySymbols, ll = Object.prototype.hasOwnProperty, ol = Object.prototype.propertyIsEnumerable, $e = (e, t, l) => t in e ? tl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, nl = (e, t) => {
622
+ 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
623
  for (var l in t || (t = {}))
602
- ll.call(t, l) && $e(e, l, t[l]);
624
+ ol.call(t, l) && $e(e, l, t[l]);
603
625
  if (ke)
604
626
  for (var l of ke(t))
605
- ol.call(t, l) && $e(e, l, t[l]);
627
+ nl.call(t, l) && $e(e, l, t[l]);
606
628
  return e;
607
629
  };
608
- const al = {
630
+ const il = {
609
631
  easeInSine: [0.12, 0, 0.39, 0],
610
632
  easeOutSine: [0.61, 1, 0.88, 1],
611
633
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -631,37 +653,37 @@ const al = {
631
653
  easeOutBack: [0.34, 1.56, 0.64, 1],
632
654
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
633
655
  };
634
- nl({
635
- linear: Nt
636
- }, al);
637
- const il = /* @__PURE__ */ $({
656
+ al({
657
+ linear: Ht
658
+ }, il);
659
+ const rl = /* @__PURE__ */ $({
638
660
  name: "OnClickOutside",
639
661
  props: ["as", "options"],
640
662
  emits: ["trigger"],
641
663
  setup(e, { slots: t, emit: l }) {
642
664
  const o = b();
643
- return Gt(o, (n) => {
665
+ return Kt(o, (n) => {
644
666
  l("trigger", n);
645
667
  }, e.options), () => {
646
668
  if (t.default)
647
- return it(e.as || "div", { ref: o }, t.default());
669
+ return rt(e.as || "div", { ref: o }, t.default());
648
670
  };
649
671
  }
650
672
  });
651
- function P(e) {
673
+ function C(e) {
652
674
  var t;
653
- const l = C(e);
675
+ const l = P(e);
654
676
  return (t = l == null ? void 0 : l.$el) != null ? t : l;
655
677
  }
656
678
  const M = U ? window : void 0;
657
679
  function A(...e) {
658
680
  let t, l, o, n;
659
- if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = M) : [t, l, o, n] = e, !t)
681
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = M) : [t, l, o, n] = e, !t)
660
682
  return z;
661
683
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
662
684
  const r = [], s = () => {
663
685
  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(() => [P(t), C(n)], ([u, v]) => {
686
+ }, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = E(() => [C(t), P(n)], ([u, v]) => {
665
687
  s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
666
688
  }, { immediate: !0, flush: "post" }), f = () => {
667
689
  c(), s();
@@ -679,12 +701,12 @@ function xe(e, t, l = {}) {
679
701
  if (typeof y == "string")
680
702
  return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
681
703
  {
682
- const d = P(y);
704
+ const d = C(y);
683
705
  return d && (i.target === d || i.composedPath().includes(d));
684
706
  }
685
707
  }), u = [
686
708
  A(o, "click", (i) => {
687
- const y = P(e);
709
+ const y = C(e);
688
710
  if (!(!y || y === i.target || i.composedPath().includes(y))) {
689
711
  if (i.detail === 0 && (a = !c(i)), !a) {
690
712
  a = !0;
@@ -694,47 +716,47 @@ function xe(e, t, l = {}) {
694
716
  }
695
717
  }, { passive: !0, capture: r }),
696
718
  A(o, "pointerdown", (i) => {
697
- const y = P(e);
719
+ const y = C(e);
698
720
  y && (a = !i.composedPath().includes(y) && !c(i));
699
721
  }, { passive: !0 }),
700
722
  s && A(o, "blur", (i) => {
701
723
  var y;
702
- const d = P(e);
724
+ const d = C(e);
703
725
  ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
704
726
  })
705
727
  ].filter(Boolean);
706
728
  return () => u.forEach((i) => i());
707
729
  }
708
730
  R.mounted + "", R.unmounted + "";
709
- const rl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
731
+ const sl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
710
732
  function Oe(...e) {
711
733
  let t, l, o = {};
712
734
  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 = rl(t);
735
+ const { target: n = M, eventName: r = "keydown", passive: s = !1 } = o, a = sl(t);
714
736
  return A(n, r, (f) => {
715
737
  a(f) && l(f);
716
738
  }, s);
717
739
  }
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) => {
740
+ 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
741
  for (var l in t || (t = {}))
720
- ul.call(t, l) && Be(e, l, t[l]);
742
+ dl.call(t, l) && Be(e, l, t[l]);
721
743
  if (Ie)
722
744
  for (var l of Ie(t))
723
- dl.call(t, l) && Be(e, l, t[l]);
745
+ cl.call(t, l) && Be(e, l, t[l]);
724
746
  return e;
725
747
  };
726
748
  R.mounted + "";
727
- const fl = 500;
749
+ const yl = 500;
728
750
  function Le(e, t, l) {
729
751
  var o, n;
730
- const r = x(() => P(e));
752
+ const r = O(() => C(e));
731
753
  let s;
732
754
  function a() {
733
755
  s && (clearTimeout(s), s = void 0);
734
756
  }
735
757
  function c(u) {
736
758
  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 : fl));
759
+ (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
760
  }
739
761
  const f = {
740
762
  capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
@@ -746,11 +768,11 @@ R.mounted + "";
746
768
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
747
769
  se[ue] = se[ue] || {};
748
770
  se[ue];
749
- function Qe(e, t = !1) {
771
+ function Ze(e, t = !1) {
750
772
  const l = b(), o = () => l.value = Boolean(e());
751
- return o(), Ke(o, t), l;
773
+ return o(), Qe(o, t), l;
752
774
  }
753
- function yl(e, t = {}) {
775
+ function vl(e, t = {}) {
754
776
  const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = b(!1);
755
777
  let r;
756
778
  const s = (a) => {
@@ -760,21 +782,21 @@ function yl(e, t = {}) {
760
782
  return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
761
783
  }
762
784
  R.mounted + "";
763
- var Ee = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, ml = Object.prototype.propertyIsEnumerable, pl = (e, t) => {
785
+ var Ee = Object.getOwnPropertySymbols, ml = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable, hl = (e, t) => {
764
786
  var l = {};
765
787
  for (var o in e)
766
- vl.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
788
+ ml.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
767
789
  if (e != null && Ee)
768
790
  for (var o of Ee(e))
769
- t.indexOf(o) < 0 && ml.call(e, o) && (l[o] = e[o]);
791
+ t.indexOf(o) < 0 && pl.call(e, o) && (l[o] = e[o]);
770
792
  return l;
771
793
  };
772
- function hl(e, t, l = {}) {
773
- const o = l, { window: n = M } = o, r = pl(o, ["window"]);
794
+ function bl(e, t, l = {}) {
795
+ const o = l, { window: n = M } = o, r = hl(o, ["window"]);
774
796
  let s;
775
- const a = Qe(() => n && "ResizeObserver" in n), c = () => {
797
+ const a = Ze(() => n && "ResizeObserver" in n), c = () => {
776
798
  s && (s.disconnect(), s = void 0);
777
- }, f = B(() => P(e), (v) => {
799
+ }, f = E(() => C(e), (v) => {
778
800
  c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
779
801
  }, { immediate: !0, flush: "post" }), u = () => {
780
802
  c(), f();
@@ -784,15 +806,15 @@ function hl(e, t, l = {}) {
784
806
  stop: u
785
807
  };
786
808
  }
787
- function bl(e, t = { width: 0, height: 0 }, l = {}) {
788
- const { window: o = M, box: n = "content-box" } = l, r = x(() => {
809
+ function gl(e, t = { width: 0, height: 0 }, l = {}) {
810
+ const { window: o = M, box: n = "content-box" } = l, r = O(() => {
789
811
  var c, f;
790
- return (f = (c = P(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
812
+ return (f = (c = C(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
791
813
  }), s = b(t.width), a = b(t.height);
792
- return hl(e, ([c]) => {
814
+ return bl(e, ([c]) => {
793
815
  const f = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
794
816
  if (o && r.value) {
795
- const u = P(e);
817
+ const u = C(e);
796
818
  if (u) {
797
819
  const v = o.getComputedStyle(u);
798
820
  s.value = parseFloat(v.width), a.value = parseFloat(v.height);
@@ -802,7 +824,7 @@ function bl(e, t = { width: 0, height: 0 }, l = {}) {
802
824
  s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
803
825
  } else
804
826
  s.value = c.contentRect.width, a.value = c.contentRect.height;
805
- }, l), B(() => P(e), (c) => {
827
+ }, l), E(() => C(e), (c) => {
806
828
  s.value = c ? t.width : 0, a.value = c ? t.height : 0;
807
829
  }), {
808
830
  width: s,
@@ -810,11 +832,11 @@ function bl(e, t = { width: 0, height: 0 }, l = {}) {
810
832
  };
811
833
  }
812
834
  R.mounted + "";
813
- function Ce(e, { window: t = M, scrollTarget: l } = {}) {
835
+ function Pe(e, { window: t = M, scrollTarget: l } = {}) {
814
836
  const o = b(!1), n = () => {
815
837
  if (!t)
816
838
  return;
817
- const r = t.document, s = P(e);
839
+ const r = t.document, s = C(e);
818
840
  if (!s)
819
841
  o.value = !1;
820
842
  else {
@@ -822,13 +844,13 @@ function Ce(e, { window: t = M, scrollTarget: l } = {}) {
822
844
  o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
823
845
  }
824
846
  };
825
- return B(() => P(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
847
+ return E(() => C(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
826
848
  capture: !1,
827
849
  passive: !0
828
850
  }), o;
829
851
  }
830
852
  R.mounted + "";
831
- const Pe = 1;
853
+ const Ce = 1;
832
854
  function de(e, t = {}) {
833
855
  const {
834
856
  throttle: l = 0,
@@ -846,28 +868,28 @@ function de(e, t = {}) {
846
868
  passive: !0
847
869
  },
848
870
  behavior: c = "auto"
849
- } = t, f = b(0), u = b(0), v = x({
871
+ } = t, f = b(0), u = b(0), v = O({
850
872
  get() {
851
873
  return f.value;
852
874
  },
853
- set(O) {
854
- y(O, void 0);
875
+ set(I) {
876
+ y(I, void 0);
855
877
  }
856
- }), i = x({
878
+ }), i = O({
857
879
  get() {
858
880
  return u.value;
859
881
  },
860
- set(O) {
861
- y(void 0, O);
882
+ set(I) {
883
+ y(void 0, I);
862
884
  }
863
885
  });
864
- function y(O, T) {
886
+ function y(I, T) {
865
887
  var D, F, ge;
866
- const ne = C(e);
888
+ const ne = P(e);
867
889
  ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
868
- top: (D = C(T)) != null ? D : i.value,
869
- left: (F = C(O)) != null ? F : v.value,
870
- behavior: C(c)
890
+ top: (D = P(T)) != null ? D : i.value,
891
+ left: (F = P(I)) != null ? F : v.value,
892
+ behavior: P(c)
871
893
  }));
872
894
  }
873
895
  const d = b(!1), j = X({
@@ -880,15 +902,15 @@ function de(e, t = {}) {
880
902
  right: !1,
881
903
  top: !1,
882
904
  bottom: !1
883
- }), Y = (O) => {
884
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(O));
885
- }, oe = Ht(Y, l + o), E = (O) => {
886
- 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) - Pe, f.value = D;
905
+ }), Y = (I) => {
906
+ d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(I));
907
+ }, oe = Wt(Y, l + o), x = (I) => {
908
+ const T = I.target === document ? I.target.documentElement : I.target, D = T.scrollLeft;
909
+ 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
910
  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), r(O);
911
+ I.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(I), r(I);
890
912
  };
891
- return A(e, "scroll", l ? Wt(E, l, !0, !1) : E, a), A(e, "scrollend", Y, a), {
913
+ return A(e, "scroll", l ? Ut(x, l, !0, !1) : x, a), A(e, "scrollend", Y, a), {
892
914
  x: v,
893
915
  y: i,
894
916
  isScrolling: d,
@@ -896,25 +918,25 @@ function de(e, t = {}) {
896
918
  directions: S
897
919
  };
898
920
  }
899
- var gl = Object.defineProperty, _l = Object.defineProperties, wl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Sl = Object.prototype.hasOwnProperty, jl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? gl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Te = (e, t) => {
921
+ 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
922
  for (var l in t || (t = {}))
901
- Sl.call(t, l) && qe(e, l, t[l]);
923
+ jl.call(t, l) && qe(e, l, t[l]);
902
924
  if (Je)
903
925
  for (var l of Je(t))
904
- jl.call(t, l) && qe(e, l, t[l]);
926
+ kl.call(t, l) && qe(e, l, t[l]);
905
927
  return e;
906
- }, kl = (e, t) => _l(e, wl(t));
928
+ }, $l = (e, t) => wl(e, Sl(t));
907
929
  function ze(e, t, l = {}) {
908
930
  var o, n;
909
- const r = (o = l.direction) != null ? o : "bottom", s = X(de(e, kl(Te({}, l), {
931
+ const r = (o = l.direction) != null ? o : "bottom", s = X(de(e, $l(Te({}, l), {
910
932
  offset: Te({
911
933
  [r]: (n = l.distance) != null ? n : 0
912
934
  }, l.offset)
913
935
  })));
914
- B(() => s.arrivedState[r], async (a) => {
936
+ E(() => s.arrivedState[r], async (a) => {
915
937
  var c, f;
916
938
  if (a) {
917
- const u = C(e), v = {
939
+ const u = P(e), v = {
918
940
  height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
919
941
  width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
920
942
  };
@@ -934,11 +956,11 @@ function Ae(e, t, l = {}) {
934
956
  rootMargin: n = "0px",
935
957
  threshold: r = 0.1,
936
958
  window: s = M
937
- } = l, a = Qe(() => s && "IntersectionObserver" in s);
959
+ } = l, a = Ze(() => s && "IntersectionObserver" in s);
938
960
  let c = z;
939
- const f = a.value ? B(() => ({
940
- el: P(e),
941
- root: P(o)
961
+ const f = a.value ? E(() => ({
962
+ el: C(e),
963
+ root: C(o)
942
964
  }), ({ el: v, root: i }) => {
943
965
  if (c(), !v)
944
966
  return;
@@ -959,32 +981,32 @@ function Ae(e, t, l = {}) {
959
981
  };
960
982
  }
961
983
  R.mounted + "";
962
- var $l = Object.defineProperty, Vl = Object.defineProperties, xl = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Ol = Object.prototype.hasOwnProperty, Il = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Bl = (e, t) => {
984
+ 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
985
  for (var l in t || (t = {}))
964
- Ol.call(t, l) && De(e, l, t[l]);
986
+ Il.call(t, l) && De(e, l, t[l]);
965
987
  if (Fe)
966
988
  for (var l of Fe(t))
967
- Il.call(t, l) && De(e, l, t[l]);
989
+ Bl.call(t, l) && De(e, l, t[l]);
968
990
  return e;
969
- }, Ll = (e, t) => Vl(e, xl(t));
991
+ }, El = (e, t) => xl(e, Ol(t));
970
992
  R.mounted + "";
971
- function Ze(e) {
993
+ function Ye(e) {
972
994
  const t = window.getComputedStyle(e);
973
995
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
974
996
  return !0;
975
997
  {
976
998
  const l = e.parentNode;
977
- return !l || l.tagName === "BODY" ? !1 : Ze(l);
999
+ return !l || l.tagName === "BODY" ? !1 : Ye(l);
978
1000
  }
979
1001
  }
980
- function El(e) {
1002
+ function Pl(e) {
981
1003
  const t = e || window.event, l = t.target;
982
- return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1004
+ return Ye(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
983
1005
  }
984
1006
  function Cl(e, t = !1) {
985
1007
  const l = b(t);
986
1008
  let o = null, n;
987
- B(Ut(e), (a) => {
1009
+ E(Gt(e), (a) => {
988
1010
  if (a) {
989
1011
  const c = a;
990
1012
  n = c.style.overflow, l.value && (c.style.overflow = "hidden");
@@ -993,15 +1015,15 @@ function Cl(e, t = !1) {
993
1015
  immediate: !0
994
1016
  });
995
1017
  const r = () => {
996
- const a = C(e);
1018
+ const a = P(e);
997
1019
  !a || l.value || (ee && (o = A(a, "touchmove", (c) => {
998
- El(c);
1020
+ Pl(c);
999
1021
  }, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
1000
1022
  }, s = () => {
1001
- const a = C(e);
1023
+ const a = P(e);
1002
1024
  !a || !l.value || (ee && (o == null || o()), a.style.overflow = n, l.value = !1);
1003
1025
  };
1004
- return G(s), x({
1026
+ return G(s), O({
1005
1027
  get() {
1006
1028
  return l.value;
1007
1029
  },
@@ -1010,7 +1032,7 @@ function Cl(e, t = !1) {
1010
1032
  }
1011
1033
  });
1012
1034
  }
1013
- const Pl = () => {
1035
+ const Jl = () => {
1014
1036
  let e = !1;
1015
1037
  const t = b(!1);
1016
1038
  return (l, o) => {
@@ -1018,20 +1040,26 @@ const Pl = () => {
1018
1040
  return;
1019
1041
  e = !0;
1020
1042
  const n = Cl(l, o.value);
1021
- B(t, (r) => n.value = r);
1043
+ E(t, (r) => n.value = r);
1022
1044
  };
1023
1045
  };
1024
- Pl();
1025
- const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataLabel", "onClick"], ql = {
1046
+ Jl();
1047
+ const Xe = ["medium", "small"], ql = {
1026
1048
  key: 0,
1049
+ class: "joy-dropdown-list__header"
1050
+ }, Tl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], zl = {
1051
+ key: 1,
1027
1052
  class: "joy-dropdown-list__footer"
1028
- }, Tl = /* @__PURE__ */ $({
1053
+ }, Al = /* @__PURE__ */ $({
1029
1054
  __name: "VJoyDropdownList",
1030
1055
  props: {
1056
+ /**
1057
+ * In order to make it work with v-model, you need to pass for each option, a value or an ID.
1058
+ */
1031
1059
  options: {
1032
1060
  type: Array,
1033
1061
  validator(e) {
1034
- return e.every((l) => Object.keys(l).includes("label"));
1062
+ return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
1035
1063
  },
1036
1064
  default() {
1037
1065
  return [];
@@ -1041,7 +1069,7 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
1041
1069
  type: String,
1042
1070
  default: "medium",
1043
1071
  validator(e) {
1044
- return Ye.includes(e);
1072
+ return Xe.includes(e);
1045
1073
  }
1046
1074
  },
1047
1075
  modelValue: {
@@ -1058,9 +1086,9 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
1058
1086
  },
1059
1087
  emits: ["update:modelValue", "close:dropdownList"],
1060
1088
  setup(e, { expose: t, emit: l }) {
1061
- const o = e, n = b(), r = x(() => (i) => !o.modelValue && !i.value ? !1 : o.modelValue === i.label || o.modelValue === i.value);
1089
+ const o = e, n = b(), r = O(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1062
1090
  function s(i) {
1063
- i.disabled || l("update:modelValue", i.label);
1091
+ i.disabled || l("update:modelValue", i.value || i.id);
1064
1092
  }
1065
1093
  function a() {
1066
1094
  var i;
@@ -1083,13 +1111,13 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
1083
1111
  return;
1084
1112
  if (d.querySelector("a"))
1085
1113
  return d.querySelector("a").click();
1086
- l("update:modelValue", d.dataLabel);
1114
+ l("update:modelValue", d.dataModel);
1087
1115
  }
1088
1116
  if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1089
1117
  const d = a(), j = f();
1090
1118
  let S = d.indexOf(j);
1091
1119
  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 = 0), S > d.length - 1 && (S = 0), v(d[S]);
1120
+ 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
1121
  return;
1094
1122
  }
1095
1123
  }
@@ -1105,49 +1133,57 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
1105
1133
  isSelected: r
1106
1134
  }), (i, y) => (m(), p("div", {
1107
1135
  class: "joy-dropdown-list",
1108
- style: K({ "max-width": `${e.width}px`, "max-height": `${e.height}px` })
1136
+ style: K({ width: `${e.width}px`, "max-width": `${e.width}px` })
1109
1137
  }, [
1110
- h("ul", {
1111
- ref_key: "listbox",
1112
- ref: n,
1113
- role: "listbox",
1114
- class: "joy-dropdown-list__items",
1138
+ i.$slots["dropdown-list-header"] ? (m(), p("header", ql, [
1139
+ g(i.$slots, "dropdown-list-header", {}, void 0, !0)
1140
+ ])) : w("", !0),
1141
+ h("div", {
1142
+ class: k(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1115
1143
  style: K({ "max-height": `${e.height}px` })
1116
1144
  }, [
1117
- (m(!0), p(ye, null, ve(e.options, (d) => (m(), p("li", {
1118
- id: d.id,
1119
- key: d.label,
1120
- style: K({ "max-width": `${e.width}px` }),
1121
- class: k([
1122
- "joy-dropdown-list__item",
1123
- `joy-dropdown-list__item--${e.size}`,
1124
- {
1125
- "joy-dropdown-list__item--selected": _(r)(d),
1126
- "joy-dropdown-list__item--disabled": d.disabled
1127
- }
1128
- ]),
1129
- tabindex: d.disabled ? void 0 : 0,
1130
- "aria-disabled": d.disabled,
1131
- "aria-selected": _(r)(d),
1132
- title: d.label,
1133
- "aria-label": d.label,
1134
- ".dataLabel": d.value || d.label,
1135
- role: "option",
1136
- onClick: (j) => s(d)
1145
+ g(i.$slots, "dropdown-list-items", {}, void 0, !0),
1146
+ e.options.length ? (m(), p("ul", {
1147
+ key: 0,
1148
+ ref_key: "listbox",
1149
+ ref: n,
1150
+ role: "listbox"
1137
1151
  }, [
1138
- g(i.$slots, "label", me(pe(d)), () => [
1139
- h("span", null, I(d.label), 1)
1140
- ], !0)
1141
- ], 14, Jl))), 128))
1142
- ], 4),
1143
- i.$slots.footer ? (m(), p("footer", ql, [
1144
- g(i.$slots, "footer", {}, void 0, !0)
1152
+ (m(!0), p(ye, null, ve(e.options, (d) => (m(), p("li", {
1153
+ id: d.id,
1154
+ key: d.label,
1155
+ style: K({ "max-width": `${e.width}px` }),
1156
+ class: k([
1157
+ "joy-dropdown-list__item",
1158
+ `joy-dropdown-list__item--${e.size}`,
1159
+ {
1160
+ "joy-dropdown-list__item--selected": _(r)(d),
1161
+ "joy-dropdown-list__item--disabled": d.disabled
1162
+ }
1163
+ ]),
1164
+ tabindex: d.disabled ? void 0 : 0,
1165
+ "aria-disabled": d.disabled,
1166
+ "aria-selected": _(r)(d),
1167
+ title: d.label,
1168
+ "aria-label": d.label,
1169
+ ".dataModel": d.value || d.id,
1170
+ role: "option",
1171
+ onClick: (j) => s(d)
1172
+ }, [
1173
+ g(i.$slots, "label", me(pe(d)), () => [
1174
+ h("span", null, L(d.label), 1)
1175
+ ], !0)
1176
+ ], 14, Tl))), 128))
1177
+ ], 512)) : w("", !0)
1178
+ ], 6),
1179
+ i.$slots["dropdown-list-footer"] ? (m(), p("footer", zl, [
1180
+ g(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1145
1181
  ])) : w("", !0)
1146
1182
  ], 4));
1147
1183
  }
1148
1184
  });
1149
- const Xe = /* @__PURE__ */ V(Tl, [["__scopeId", "data-v-5ab31622"]]);
1150
- function zl(e) {
1185
+ const et = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-63134a7f"]]);
1186
+ function Fl(e) {
1151
1187
  const t = () => e();
1152
1188
  Z(() => {
1153
1189
  window.addEventListener("resize", t);
@@ -1155,7 +1191,7 @@ function zl(e) {
1155
1191
  window.removeEventListener("resize", t);
1156
1192
  });
1157
1193
  }
1158
- const Al = /* @__PURE__ */ $({
1194
+ const Dl = /* @__PURE__ */ $({
1159
1195
  __name: "VJoyDropdown",
1160
1196
  props: {
1161
1197
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1203,7 +1239,7 @@ const Al = /* @__PURE__ */ $({
1203
1239
  type: String,
1204
1240
  default: "medium",
1205
1241
  validator(e) {
1206
- return Ye.includes(e);
1242
+ return Xe.includes(e);
1207
1243
  }
1208
1244
  },
1209
1245
  modelValue: {
@@ -1232,7 +1268,7 @@ const Al = /* @__PURE__ */ $({
1232
1268
  default: "300"
1233
1269
  }
1234
1270
  },
1235
- emits: ["update:modelValue"],
1271
+ emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1236
1272
  setup(e, { expose: t, emit: l }) {
1237
1273
  const o = e, n = b(!1), r = b(null), s = b(), a = b(null), c = b(null), f = b(!1), u = {
1238
1274
  ignore: [s, ".joy-dropdown__list"]
@@ -1245,11 +1281,11 @@ const Al = /* @__PURE__ */ $({
1245
1281
  });
1246
1282
  function y() {
1247
1283
  v && clearTimeout(v), f.value = !0, v = setTimeout(() => {
1248
- n.value = !1, f.value = !1;
1284
+ n.value = !1, f.value = !1, l("dropdown:hide");
1249
1285
  }, 300);
1250
1286
  }
1251
- function d(E) {
1252
- f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, n.value = !0;
1287
+ function d(x) {
1288
+ f.value = !1, v && clearTimeout(v), Y(), c.value = x.target, n.value = !0, l("dropdown:open");
1253
1289
  }
1254
1290
  function j() {
1255
1291
  y(), S();
@@ -1258,31 +1294,31 @@ const Al = /* @__PURE__ */ $({
1258
1294
  c.value && c.value.focus();
1259
1295
  }
1260
1296
  function Y() {
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" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = O + T + parseInt(o.dropdownGap) + "px" : i.top = O - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1297
+ const x = s.value.getBoundingClientRect(), I = document.documentElement.scrollTop + x.top, T = x.height, D = x.left, F = x.width;
1298
+ o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = I + T + parseInt(o.dropdownGap) + "px" : i.top = I - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1263
1299
  }
1264
- function oe(E) {
1265
- l("update:modelValue", E), o.closeOnSelect && (y(), S());
1300
+ function oe(x) {
1301
+ l("update:modelValue", x), o.closeOnSelect && (y(), S());
1266
1302
  }
1267
- return zl(y), t({
1303
+ return Fl(y), t({
1268
1304
  showDropdownList: n
1269
- }), (E, O) => (m(), q(_(il), {
1305
+ }), (x, I) => (m(), q(_(rl), {
1270
1306
  ref_key: "dropdown",
1271
1307
  ref: r,
1272
1308
  options: u,
1273
1309
  class: "joy-dropdown",
1274
1310
  onTrigger: y
1275
1311
  }, {
1276
- default: L(() => [
1312
+ default: B(() => [
1277
1313
  h("div", {
1278
1314
  ref_key: "button",
1279
1315
  ref: s,
1280
1316
  class: "joy-dropdown__button",
1281
1317
  onClick: d
1282
1318
  }, [
1283
- g(E.$slots, "dropdown-button", {}, void 0, !0)
1319
+ g(x.$slots, "dropdown-button", {}, void 0, !0)
1284
1320
  ], 512),
1285
- (m(), q(rt, {
1321
+ (m(), q(st, {
1286
1322
  to: e.appendTo,
1287
1323
  disabled: e.disableTeleport
1288
1324
  }, [
@@ -1303,7 +1339,7 @@ const Al = /* @__PURE__ */ $({
1303
1339
  left: i.left
1304
1340
  })
1305
1341
  }, [
1306
- fe(Xe, {
1342
+ fe(et, {
1307
1343
  "model-value": e.modelValue,
1308
1344
  options: e.options,
1309
1345
  size: e.size,
@@ -1311,14 +1347,36 @@ const Al = /* @__PURE__ */ $({
1311
1347
  height: e.height,
1312
1348
  "onUpdate:modelValue": oe,
1313
1349
  "onClose:dropdownList": j
1314
- }, {
1315
- label: L((T) => [
1316
- g(E.$slots, "dropdown-item", me(pe(T)), () => [
1317
- h("span", null, I(T.label), 1)
1350
+ }, He({
1351
+ label: B((T) => [
1352
+ g(x.$slots, "dropdown-item", me(pe(T)), () => [
1353
+ h("span", null, L(T.label), 1)
1318
1354
  ], !0)
1319
1355
  ]),
1320
- _: 3
1321
- }, 8, ["model-value", "options", "size", "width", "height"])
1356
+ _: 2
1357
+ }, [
1358
+ x.$slots["dropdown-header"] ? {
1359
+ name: "dropdown-list-header",
1360
+ fn: B(() => [
1361
+ g(x.$slots, "dropdown-header", {}, void 0, !0)
1362
+ ]),
1363
+ key: "0"
1364
+ } : void 0,
1365
+ x.$slots["dropdown-items"] ? {
1366
+ name: "dropdown-list-items",
1367
+ fn: B(() => [
1368
+ g(x.$slots, "dropdown-items", {}, void 0, !0)
1369
+ ]),
1370
+ key: "1"
1371
+ } : void 0,
1372
+ x.$slots["dropdown-footer"] ? {
1373
+ name: "dropdown-list-footer",
1374
+ fn: B(() => [
1375
+ g(x.$slots, "dropdown-footer", {}, void 0, !0)
1376
+ ]),
1377
+ key: "2"
1378
+ } : void 0
1379
+ ]), 1032, ["model-value", "options", "size", "width", "height"])
1322
1380
  ], 6)) : w("", !0)
1323
1381
  ], 8, ["to", "disabled"]))
1324
1382
  ]),
@@ -1326,10 +1384,10 @@ const Al = /* @__PURE__ */ $({
1326
1384
  }, 512));
1327
1385
  }
1328
1386
  });
1329
- const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-49159b35"]]), Dl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Rl = ["aria-hidden"], Ml = /* @__PURE__ */ Dl(() => /* @__PURE__ */ h("joy-icon", {
1387
+ const Rl = /* @__PURE__ */ V(Dl, [["__scopeId", "data-v-2657fbc4"]]), Ml = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Nl = ["aria-hidden"], Hl = /* @__PURE__ */ Ml(() => /* @__PURE__ */ h("joy-icon", {
1330
1388
  "custom-class": "joy-icon-error",
1331
1389
  name: "warning-triangle"
1332
- }, null, -1)), Nl = /* @__PURE__ */ $({
1390
+ }, null, -1)), Wl = /* @__PURE__ */ $({
1333
1391
  __name: "VJoyFormError",
1334
1392
  props: {
1335
1393
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1346,17 +1404,17 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-49159b35"]]), Dl = (e) =
1346
1404
  class: k(["joy-form-error", { "joy-has-error": e.visible }]),
1347
1405
  role: "alert"
1348
1406
  }, [
1349
- Ml,
1407
+ Hl,
1350
1408
  h("div", null, [
1351
1409
  g(t.$slots, "default", {}, () => [
1352
- J(I(e.noHtmlErrorText), 1)
1410
+ J(L(e.noHtmlErrorText), 1)
1353
1411
  ], !0)
1354
1412
  ])
1355
- ], 10, Rl));
1413
+ ], 10, Nl));
1356
1414
  }
1357
1415
  });
1358
- const et = /* @__PURE__ */ V(Nl, [["__scopeId", "data-v-50e209d6"]]);
1359
- function Hl(e) {
1416
+ const tt = /* @__PURE__ */ V(Wl, [["__scopeId", "data-v-50e209d6"]]);
1417
+ function Ul(e) {
1360
1418
  let t;
1361
1419
  switch (e) {
1362
1420
  case "error":
@@ -1370,7 +1428,7 @@ function Hl(e) {
1370
1428
  }
1371
1429
  return t;
1372
1430
  }
1373
- const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /* @__PURE__ */ $({
1431
+ const Gl = [...pt], Kl = ["name"], Ql = { class: "joy-highlight--text" }, Zl = /* @__PURE__ */ $({
1374
1432
  __name: "VJoyHighlight",
1375
1433
  props: {
1376
1434
  accent: {
@@ -1386,12 +1444,12 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
1386
1444
  type: String,
1387
1445
  default: "neutral",
1388
1446
  validator(e) {
1389
- return Wl.includes(e);
1447
+ return Gl.includes(e);
1390
1448
  }
1391
1449
  }
1392
1450
  },
1393
1451
  setup(e, { expose: t }) {
1394
- const l = e, o = x(() => l.icon ? l.icon : Hl(l.level));
1452
+ const l = e, o = O(() => l.icon ? l.icon : Ul(l.level));
1395
1453
  return t({
1396
1454
  getRelevantIcon: o
1397
1455
  }), (n, r) => (m(), p("div", {
@@ -1407,8 +1465,8 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
1407
1465
  e.displayIcon ? (m(), p("joy-icon", {
1408
1466
  key: 0,
1409
1467
  name: _(o)
1410
- }, null, 8, Ul)) : w("", !0),
1411
- h("div", Gl, [
1468
+ }, null, 8, Kl)) : w("", !0),
1469
+ h("div", Ql, [
1412
1470
  h("strong", null, [
1413
1471
  g(n.$slots, "highlight-title", {}, void 0, !0)
1414
1472
  ]),
@@ -1417,20 +1475,20 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
1417
1475
  ], 2));
1418
1476
  }
1419
1477
  });
1420
- const Ql = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-a0ff7a60"]]), Zl = ["small", "medium", "large"], Yl = {
1478
+ const Yl = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-a0ff7a60"]]), Xl = ["small", "medium", "large"], eo = {
1421
1479
  key: 0,
1422
1480
  class: "joy-label-required"
1423
- }, Xl = {
1481
+ }, to = {
1424
1482
  key: 1,
1425
1483
  class: "joy-label-optional"
1426
- }, eo = /* @__PURE__ */ $({
1484
+ }, lo = /* @__PURE__ */ $({
1427
1485
  __name: "VJoyLabel",
1428
1486
  props: {
1429
1487
  size: {
1430
1488
  type: String,
1431
1489
  default: "medium",
1432
1490
  validator(e) {
1433
- return Zl.includes(e);
1491
+ return Xl.includes(e);
1434
1492
  }
1435
1493
  },
1436
1494
  tagName: {
@@ -1449,16 +1507,16 @@ const Ql = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-a0ff7a60"]]), Zl = ["sma
1449
1507
  return (t, l) => (m(), q(ce(e.tagName), Q({
1450
1508
  class: ["joy-label", `joy-label--${e.size}`]
1451
1509
  }, t.$attrs), {
1452
- default: L(() => [
1510
+ default: B(() => [
1453
1511
  g(t.$slots, "default", {}, void 0, !0),
1454
- e.required ? (m(), p("span", Yl, "*")) : w("", !0),
1455
- e.optionalLabel ? (m(), p("span", Xl, "- " + I(e.optionalLabel), 1)) : w("", !0)
1512
+ e.required ? (m(), p("span", eo, "*")) : w("", !0),
1513
+ e.optionalLabel ? (m(), p("span", to, "- " + L(e.optionalLabel), 1)) : w("", !0)
1456
1514
  ]),
1457
1515
  _: 3
1458
1516
  }, 16, ["class"]));
1459
1517
  }
1460
1518
  });
1461
- const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["large", "medium", "small"], lo = ["id", "disabled", "type", "value"], oo = ["name"], no = ["data-unit"], ao = /* @__PURE__ */ $({
1519
+ const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1e682734"]]), oo = ["large", "medium", "small"], no = ["id", "disabled", "type", "value"], ao = ["name"], io = ["data-unit"], ro = /* @__PURE__ */ $({
1462
1520
  __name: "VJoyInput",
1463
1521
  props: {
1464
1522
  disabled: {
@@ -1509,7 +1567,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1509
1567
  type: String,
1510
1568
  default: "medium",
1511
1569
  validator(e) {
1512
- return to.includes(e);
1570
+ return oo.includes(e);
1513
1571
  }
1514
1572
  },
1515
1573
  type: String,
@@ -1518,11 +1576,11 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1518
1576
  },
1519
1577
  emits: ["update:modelValue"],
1520
1578
  setup(e, { emit: t }) {
1521
- const l = e, o = b(), n = b(), r = Re(), s = W(), a = b(!1), c = x(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = x(() => s.default && s.default()), u = x(() => {
1579
+ const l = e, o = b(), n = b(), r = Re(), s = W(), a = b(!1), c = O(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = O(() => s.default && s.default()), u = O(() => {
1522
1580
  var y, d;
1523
1581
  return !!((y = n.value) != null && y.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1524
1582
  }), v = b(l.type);
1525
- st(() => {
1583
+ ut(() => {
1526
1584
  v.value = l.unit ? "number" : l.unit || "text";
1527
1585
  });
1528
1586
  const i = {
@@ -1563,9 +1621,9 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1563
1621
  "optional-label": e.optionalLabel,
1564
1622
  size: e.labelSize
1565
1623
  }, {
1566
- default: L(() => [
1624
+ default: B(() => [
1567
1625
  g(y.$slots, "default", {}, () => [
1568
- J(I(e.label), 1)
1626
+ J(L(e.label), 1)
1569
1627
  ], !0)
1570
1628
  ]),
1571
1629
  _: 3
@@ -1600,7 +1658,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1600
1658
  (...j) => i.onBlur && i.onBlur(...j)),
1601
1659
  onInput: d[2] || (d[2] = //@ts-ignore
1602
1660
  (...j) => i.onInput && i.onInput(...j))
1603
- }), null, 16, lo),
1661
+ }), null, 16, no),
1604
1662
  _(c) ? (m(), p("joy-icon", {
1605
1663
  key: 0,
1606
1664
  size: "xxsmall",
@@ -1614,18 +1672,18 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1614
1672
  role: "img",
1615
1673
  class: "joy-input--decorative-icon",
1616
1674
  name: e.icon
1617
- }, null, 8, oo)) : w("", !0),
1675
+ }, null, 8, ao)) : w("", !0),
1618
1676
  e.unit ? (m(), p("div", {
1619
1677
  key: 2,
1620
1678
  "data-unit": e.unit,
1621
1679
  class: "joy-input--unit"
1622
- }, null, 8, no)) : w("", !0)
1680
+ }, null, 8, io)) : w("", !0)
1623
1681
  ], 2)
1624
1682
  ], 2)
1625
1683
  ], 2));
1626
1684
  }
1627
1685
  });
1628
- const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["teal", "white"], so = ["href"], uo = ["color", "name"], co = /* @__PURE__ */ $({
1686
+ const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-8258d6d7"]]), uo = ["teal", "white"], co = ["href"], fo = ["color", "name"], yo = /* @__PURE__ */ $({
1629
1687
  __name: "VJoyLink",
1630
1688
  props: {
1631
1689
  href: {
@@ -1636,13 +1694,13 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
1636
1694
  type: String,
1637
1695
  default: "teal",
1638
1696
  validator(e) {
1639
- return ro.includes(e);
1697
+ return uo.includes(e);
1640
1698
  }
1641
1699
  },
1642
1700
  icon: String
1643
1701
  },
1644
1702
  setup(e) {
1645
- const t = e, l = x(() => t.color === "white" ? "white" : "teal");
1703
+ const t = e, l = O(() => t.color === "white" ? "white" : "teal");
1646
1704
  return (o, n) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
1647
1705
  class: ["joy-link", `joy-link_${e.color}`]
1648
1706
  }), [
@@ -1650,14 +1708,14 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
1650
1708
  key: 0,
1651
1709
  color: _(l),
1652
1710
  name: e.icon
1653
- }, null, 8, uo)) : w("", !0),
1711
+ }, null, 8, fo)) : w("", !0),
1654
1712
  g(o.$slots, "default", {}, void 0, !0)
1655
- ], 16, so));
1713
+ ], 16, co));
1656
1714
  }
1657
1715
  });
1658
- const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"], vo = {
1716
+ const vo = /* @__PURE__ */ V(yo, [["__scopeId", "data-v-7ef59bc8"]]), mo = ["id"], po = {
1659
1717
  class: /* @__PURE__ */ k(["joy-multi-checkbox"])
1660
- }, mo = /* @__PURE__ */ $({
1718
+ }, ho = /* @__PURE__ */ $({
1661
1719
  __name: "VJoyMultiCheckbox",
1662
1720
  props: {
1663
1721
  options: {
@@ -1715,12 +1773,12 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
1715
1773
  "optional-label": e.optionalLabel,
1716
1774
  size: e.labelSize
1717
1775
  }, {
1718
- default: L(() => [
1719
- J(I(e.label), 1)
1776
+ default: B(() => [
1777
+ J(L(e.label), 1)
1720
1778
  ]),
1721
1779
  _: 1
1722
1780
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
1723
- h("div", vo, [
1781
+ h("div", po, [
1724
1782
  (m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(he), {
1725
1783
  id: a.id,
1726
1784
  key: a.id,
@@ -1729,33 +1787,33 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
1729
1787
  checked: o(a),
1730
1788
  "onUpdate:checked": (c) => n(a.value, c)
1731
1789
  }, {
1732
- default: L(() => [
1790
+ default: B(() => [
1733
1791
  g(r.$slots, "checkbox", me(pe(a)), () => [
1734
- J(I(a.label), 1)
1792
+ J(L(a.label), 1)
1735
1793
  ], !0)
1736
1794
  ]),
1737
1795
  _: 2
1738
1796
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1739
1797
  ])
1740
- ], 8, yo));
1798
+ ], 8, mo));
1741
1799
  }
1742
1800
  });
1743
- const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["small", "medium", "large"], bo = {
1801
+ const bo = /* @__PURE__ */ V(ho, [["__scopeId", "data-v-f4301a1f"]]), go = ["small", "medium", "large"], _o = {
1744
1802
  key: 0,
1745
1803
  class: /* @__PURE__ */ k(["joy-panel__header"])
1746
- }, go = {
1804
+ }, wo = {
1747
1805
  key: 0,
1748
1806
  class: "joy-panel__header-title"
1749
- }, _o = {
1807
+ }, So = {
1750
1808
  key: 1,
1751
1809
  class: "joy-panel__header-action"
1752
- }, wo = {
1810
+ }, jo = {
1753
1811
  key: 2,
1754
1812
  class: "joy-panel__header-subtitle"
1755
- }, So = { class: "joy-panel__body" }, jo = {
1813
+ }, ko = { class: "joy-panel__body" }, $o = {
1756
1814
  key: 1,
1757
1815
  class: "joy-panel__footer"
1758
- }, ko = /* @__PURE__ */ $({
1816
+ }, Vo = /* @__PURE__ */ $({
1759
1817
  __name: "VJoyPanel",
1760
1818
  props: {
1761
1819
  flex: {
@@ -1769,59 +1827,59 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
1769
1827
  type: String,
1770
1828
  default: "medium",
1771
1829
  validator(e) {
1772
- return ho.includes(e);
1830
+ return go.includes(e);
1773
1831
  }
1774
1832
  }
1775
1833
  },
1776
1834
  setup(e) {
1777
- const t = W(), l = b(), o = x(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
1835
+ const t = W(), l = b(), o = O(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
1778
1836
  return (n, r) => (m(), p("section", {
1779
1837
  ref_key: "panel",
1780
1838
  ref: l,
1781
1839
  style: K({ flex: e.flex }),
1782
1840
  class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin }])
1783
1841
  }, [
1784
- _(o) ? (m(), p("header", bo, [
1785
- _(t)["panel-title"] ? (m(), p("div", go, [
1842
+ _(o) ? (m(), p("header", _o, [
1843
+ _(t)["panel-title"] ? (m(), p("div", wo, [
1786
1844
  g(n.$slots, "panel-title", {}, void 0, !0)
1787
1845
  ])) : w("", !0),
1788
- _(t)["panel-title-action"] ? (m(), p("div", _o, [
1846
+ _(t)["panel-title-action"] ? (m(), p("div", So, [
1789
1847
  g(n.$slots, "panel-title-action", {}, void 0, !0)
1790
1848
  ])) : w("", !0),
1791
- _(t)["panel-subtitle"] ? (m(), p("div", wo, [
1849
+ _(t)["panel-subtitle"] ? (m(), p("div", jo, [
1792
1850
  g(n.$slots, "panel-subtitle", {}, void 0, !0)
1793
1851
  ])) : w("", !0)
1794
1852
  ])) : w("", !0),
1795
- h("div", So, [
1853
+ h("div", ko, [
1796
1854
  g(n.$slots, "panel-body", {}, void 0, !0)
1797
1855
  ]),
1798
- _(t)["panel-action"] ? (m(), p("footer", jo, [
1856
+ _(t)["panel-action"] ? (m(), p("footer", $o, [
1799
1857
  g(n.$slots, "panel-action", {}, void 0, !0)
1800
1858
  ])) : w("", !0)
1801
1859
  ], 6));
1802
1860
  }
1803
1861
  });
1804
- const $o = /* @__PURE__ */ V(ko, [["__scopeId", "data-v-1aadee0b"]]), Vo = { class: "joy-panel-section" }, xo = {
1862
+ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-1aadee0b"]]), Oo = { class: "joy-panel-section" }, Io = {
1805
1863
  key: 0,
1806
1864
  class: "joy-panel-section__title"
1807
- }, Oo = {
1865
+ }, Bo = {
1808
1866
  key: 1,
1809
1867
  class: "joy-panel-section__content"
1810
- }, Io = /* @__PURE__ */ $({
1868
+ }, Lo = /* @__PURE__ */ $({
1811
1869
  __name: "VJoyPanelSection",
1812
1870
  setup(e) {
1813
1871
  const t = W();
1814
- return (l, o) => (m(), p("div", Vo, [
1815
- _(t)["panel-section-title"] ? (m(), p("div", xo, [
1872
+ return (l, o) => (m(), p("div", Oo, [
1873
+ _(t)["panel-section-title"] ? (m(), p("div", Io, [
1816
1874
  g(l.$slots, "panel-section-title", {}, void 0, !0)
1817
1875
  ])) : w("", !0),
1818
- _(t)["panel-section-content"] ? (m(), p("div", Oo, [
1876
+ _(t)["panel-section-content"] ? (m(), p("div", Bo, [
1819
1877
  g(l.$slots, "panel-section-content", {}, void 0, !0)
1820
1878
  ])) : w("", !0)
1821
1879
  ]));
1822
1880
  }
1823
1881
  });
1824
- const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id", "value", "checked", "disabled", "required", "name"], Eo = { class: "joy-radio-label" }, Co = { class: "joy-radio-content__wrapper" }, Po = { class: "joy-radio-content" }, Jo = /* @__PURE__ */ $({
1882
+ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-d88510ab"]]), Po = ["id", "value", "checked", "disabled", "required", "name"], Co = { class: "joy-radio-label" }, Jo = { class: "joy-radio-content__wrapper" }, qo = { class: "joy-radio-content" }, To = /* @__PURE__ */ $({
1825
1883
  __name: "VJoyRadio",
1826
1884
  props: {
1827
1885
  disabled: {
@@ -1857,7 +1915,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1857
1915
  },
1858
1916
  emits: ["update:modelValue"],
1859
1917
  setup(e, { expose: t, emit: l }) {
1860
- const o = e, n = b(!1), r = b(!1), s = b(null), a = b(null), c = W(), f = x(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1918
+ const o = e, n = b(!1), r = b(!1), s = b(null), a = b(null), c = W(), f = O(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1861
1919
  function u() {
1862
1920
  n.value = !!c["expandable-content"] && f.value;
1863
1921
  }
@@ -1873,7 +1931,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1873
1931
  function y() {
1874
1932
  r.value = !1;
1875
1933
  }
1876
- return B(
1934
+ return E(
1877
1935
  () => o.modelValue,
1878
1936
  () => {
1879
1937
  u();
@@ -1907,12 +1965,12 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1907
1965
  onChange: v,
1908
1966
  onFocus: i,
1909
1967
  onBlur: y
1910
- }, null, 40, Lo),
1911
- h("span", Eo, [
1968
+ }, null, 40, Po),
1969
+ h("span", Co, [
1912
1970
  g(d.$slots, "default", {}, void 0, !0)
1913
1971
  ]),
1914
- h("div", Co, [
1915
- h("div", Po, [
1972
+ h("div", Jo, [
1973
+ h("div", qo, [
1916
1974
  g(d.$slots, "radio-content", {}, void 0, !0)
1917
1975
  ]),
1918
1976
  h("div", {
@@ -1926,7 +1984,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1926
1984
  ], 2));
1927
1985
  }
1928
1986
  });
1929
- const qo = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-24cea99b"]]), To = ["form", "name"], zo = /* @__PURE__ */ $({
1987
+ const zo = /* @__PURE__ */ V(To, [["__scopeId", "data-v-24cea99b"]]), Ao = ["form", "name"], Fo = /* @__PURE__ */ $({
1930
1988
  __name: "VJoyRadioGroup",
1931
1989
  props: {
1932
1990
  direction: {
@@ -1954,13 +2012,13 @@ const qo = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-24cea99b"]]), To = ["for
1954
2012
  }, [
1955
2013
  g(t.$slots, "default", {}, void 0, !0)
1956
2014
  ], 2)
1957
- ], 8, To));
2015
+ ], 8, Ao));
1958
2016
  }
1959
2017
  });
1960
- const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) => (te("data-v-d251a432"), e = e(), le(), e), Do = ["id", "name", "aria-invalid", "required", "disabled", "value"], Ro = /* @__PURE__ */ Fo(() => /* @__PURE__ */ h("joy-icon", {
2018
+ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-de56c3c4"]]), Ro = (e) => (te("data-v-d251a432"), e = e(), le(), e), Mo = ["id", "name", "aria-invalid", "required", "disabled", "value"], No = /* @__PURE__ */ Ro(() => /* @__PURE__ */ h("joy-icon", {
1961
2019
  class: "joy-select__chevron",
1962
2020
  name: "chevron-down"
1963
- }, null, -1)), Mo = /* @__PURE__ */ $({
2021
+ }, null, -1)), Ho = /* @__PURE__ */ $({
1964
2022
  __name: "VJoySelect",
1965
2023
  props: {
1966
2024
  disabled: {
@@ -2039,8 +2097,8 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
2039
2097
  for: e.id || e.name,
2040
2098
  size: e.labelSize
2041
2099
  }, {
2042
- default: L(() => [
2043
- J(I(e.label), 1)
2100
+ default: B(() => [
2101
+ J(L(e.label), 1)
2044
2102
  ]),
2045
2103
  _: 1
2046
2104
  }, 8, ["required", "optional-label", "for", "size"])) : w("", !0)
@@ -2068,13 +2126,13 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
2068
2126
  onBlur: f
2069
2127
  }, [
2070
2128
  g(u.$slots, "default", {}, void 0, !0)
2071
- ], 40, Do),
2072
- Ro
2129
+ ], 40, Mo),
2130
+ No
2073
2131
  ], 2)
2074
2132
  ], 512));
2075
2133
  }
2076
2134
  });
2077
- const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["aria-disabled"], Wo = ["id", "value", "checked", "disabled", "required", "name"], Uo = /* @__PURE__ */ $({
2135
+ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-d251a432"]]), Uo = ["aria-disabled"], Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = /* @__PURE__ */ $({
2078
2136
  __name: "VJoySelectableItem",
2079
2137
  props: {
2080
2138
  disabled: {
@@ -2159,7 +2217,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2159
2217
  (...v) => a.onFocus && a.onFocus(...v)),
2160
2218
  onBlur: u[2] || (u[2] = //@ts-ignore
2161
2219
  (...v) => a.onBlur && a.onBlur(...v))
2162
- }, null, 40, Wo)),
2220
+ }, null, 40, Go)),
2163
2221
  (m(), q(ce(_(s)), {
2164
2222
  for: e.id,
2165
2223
  class: k([
@@ -2173,7 +2231,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2173
2231
  ]),
2174
2232
  onClick: a.onLabelClick
2175
2233
  }, {
2176
- default: L(() => [
2234
+ default: B(() => [
2177
2235
  e.multiple ? (m(), q(_(he), {
2178
2236
  key: 0,
2179
2237
  id: e.id,
@@ -2190,7 +2248,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2190
2248
  onFocus: a.onFocus,
2191
2249
  onBlur: a.onBlur
2192
2250
  }, {
2193
- default: L(() => [
2251
+ default: B(() => [
2194
2252
  g(f.$slots, "default", {}, void 0, !0)
2195
2253
  ]),
2196
2254
  _: 3
@@ -2204,10 +2262,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2204
2262
  ]),
2205
2263
  _: 3
2206
2264
  }, 8, ["for", "class", "onClick"]))
2207
- ], 10, Ho));
2265
+ ], 10, Uo));
2208
2266
  }
2209
2267
  });
2210
- const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"], Ko = /* @__PURE__ */ $({
2268
+ const lt = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"], Zo = /* @__PURE__ */ $({
2211
2269
  __name: "VJoySelectableItemGroup",
2212
2270
  props: {
2213
2271
  options: {
@@ -2269,8 +2327,8 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
2269
2327
  "optional-label": e.optionalLabel,
2270
2328
  size: e.labelSize
2271
2329
  }, {
2272
- default: L(() => [
2273
- J(I(e.label), 1)
2330
+ default: B(() => [
2331
+ J(L(e.label), 1)
2274
2332
  ]),
2275
2333
  _: 1
2276
2334
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
@@ -2284,7 +2342,7 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
2284
2342
  }
2285
2343
  ])
2286
2344
  }, [
2287
- (m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(tt), {
2345
+ (m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(lt), {
2288
2346
  id: a.id,
2289
2347
  key: a.id,
2290
2348
  name: a.name,
@@ -2292,25 +2350,25 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
2292
2350
  multiple: e.multiple,
2293
2351
  checked: o(a),
2294
2352
  "onUpdate:checked": (c) => n(a.value, c)
2295
- }, ut({
2296
- default: L(() => [
2297
- J(I(a.label) + " ", 1)
2353
+ }, He({
2354
+ default: B(() => [
2355
+ J(L(a.label) + " ", 1)
2298
2356
  ]),
2299
2357
  _: 2
2300
2358
  }, [
2301
2359
  a.subLabel ? {
2302
2360
  name: "selectable-item-sublabel",
2303
- fn: L(() => [
2304
- J(I(a.subLabel), 1)
2361
+ fn: B(() => [
2362
+ J(L(a.subLabel), 1)
2305
2363
  ]),
2306
2364
  key: "0"
2307
2365
  } : void 0
2308
2366
  ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2309
2367
  ], 2)
2310
- ], 8, Go));
2368
+ ], 8, Qo));
2311
2369
  }
2312
2370
  });
2313
- const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @__PURE__ */ $({
2371
+ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-3ba17434"]]), Xo = /* @__PURE__ */ $({
2314
2372
  __name: "VJoyWrapper",
2315
2373
  props: {
2316
2374
  justify: {
@@ -2349,45 +2407,45 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @_
2349
2407
  ], 2));
2350
2408
  }
2351
2409
  });
2352
- const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { class: "joy-template__wrapper" }, en = {
2410
+ const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-477e149b"]]), tn = { class: "joy-template__wrapper" }, ln = {
2353
2411
  key: 0,
2354
2412
  class: "joy-template__heading"
2355
- }, tn = {
2413
+ }, on = {
2356
2414
  key: 0,
2357
2415
  class: "joy-template-slot-back"
2358
- }, ln = { class: "joy-template__heading___headings" }, on = {
2416
+ }, nn = { class: "joy-template__heading___headings" }, an = {
2359
2417
  key: 0,
2360
2418
  class: "joy-template-slot-title"
2361
- }, nn = {
2419
+ }, rn = {
2362
2420
  key: 1,
2363
2421
  class: "joy-template-slot-subtitle"
2364
- }, an = {
2422
+ }, sn = {
2365
2423
  key: 0,
2366
2424
  class: "joy-template-slot-main"
2367
- }, rn = {
2425
+ }, un = {
2368
2426
  key: 1,
2369
2427
  class: "joy-template-slot-sidebar"
2370
- }, sn = /* @__PURE__ */ $({
2428
+ }, dn = /* @__PURE__ */ $({
2371
2429
  __name: "VJoyTemplate",
2372
2430
  props: {
2373
2431
  full: { type: Boolean, default: !1 },
2374
2432
  sidebar: { type: String, default: "right" }
2375
2433
  },
2376
2434
  setup(e) {
2377
- const t = e, l = W(), o = x(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"]);
2435
+ const t = e, l = W(), o = O(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"]);
2378
2436
  return (n, r) => (m(), p("main", {
2379
2437
  class: k(["joy-template", { "joy-template--full": t.full }])
2380
2438
  }, [
2381
- h("div", Xo, [
2382
- _(o) ? (m(), p("div", en, [
2383
- _(l)["template-back"] ? (m(), p("div", tn, [
2439
+ h("div", tn, [
2440
+ _(o) ? (m(), p("div", ln, [
2441
+ _(l)["template-back"] ? (m(), p("div", on, [
2384
2442
  g(n.$slots, "template-back", {}, void 0, !0)
2385
2443
  ])) : w("", !0),
2386
- h("div", ln, [
2387
- _(l)["template-title"] ? (m(), p("div", on, [
2444
+ h("div", nn, [
2445
+ _(l)["template-title"] ? (m(), p("div", an, [
2388
2446
  g(n.$slots, "template-title", {}, void 0, !0)
2389
2447
  ])) : w("", !0),
2390
- _(l)["template-subtitle"] ? (m(), p("div", nn, [
2448
+ _(l)["template-subtitle"] ? (m(), p("div", rn, [
2391
2449
  g(n.$slots, "template-subtitle", {}, void 0, !0)
2392
2450
  ])) : w("", !0)
2393
2451
  ])
@@ -2400,10 +2458,10 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
2400
2458
  }
2401
2459
  ])
2402
2460
  }, [
2403
- n.$slots["template-main"] ? (m(), p("div", an, [
2461
+ n.$slots["template-main"] ? (m(), p("div", sn, [
2404
2462
  g(n.$slots, "template-main", {}, void 0, !0)
2405
2463
  ])) : w("", !0),
2406
- n.$slots["template-sidebar"] ? (m(), p("div", rn, [
2464
+ n.$slots["template-sidebar"] ? (m(), p("div", un, [
2407
2465
  g(n.$slots, "template-sidebar", {}, void 0, !0)
2408
2466
  ])) : w("", !0)
2409
2467
  ], 2)
@@ -2411,15 +2469,15 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
2411
2469
  ], 2));
2412
2470
  }
2413
2471
  });
2414
- const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["aria-disabled"], cn = { class: "joy-textarea_wrapper" }, fn = ["id", "disabled", "name", "required", "minlength", "value"], yn = {
2472
+ const cn = /* @__PURE__ */ V(dn, [["__scopeId", "data-v-f891bd85"]]), fn = ["aria-disabled"], yn = { class: "joy-textarea_wrapper" }, vn = ["id", "disabled", "name", "required", "minlength", "value"], mn = {
2415
2473
  key: 0,
2416
2474
  class: "joy-textarea_helpers"
2417
- }, vn = {
2475
+ }, pn = {
2418
2476
  key: 0,
2419
2477
  name: "check",
2420
2478
  color: "grey",
2421
2479
  size: "xxsmall"
2422
- }, mn = /* @__PURE__ */ $({
2480
+ }, hn = /* @__PURE__ */ $({
2423
2481
  __name: "VJoyTextarea",
2424
2482
  props: {
2425
2483
  disabled: {
@@ -2468,9 +2526,9 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2468
2526
  },
2469
2527
  emits: ["update:modelValue"],
2470
2528
  setup(e, { expose: t, emit: l }) {
2471
- const o = e, n = b(), { triggerResize: r } = el({
2529
+ const o = e, n = b(), { triggerResize: r } = tl({
2472
2530
  element: o.autogrow ? n : void 0
2473
- }), 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 = {
2531
+ }), s = b(!1), a = b(!1), c = O(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = O(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2474
2532
  onInput: (v) => {
2475
2533
  l("update:modelValue", v.target.value), r();
2476
2534
  },
@@ -2503,14 +2561,14 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2503
2561
  "optional-label": e.optionalLabel,
2504
2562
  size: e.labelSize
2505
2563
  }, {
2506
- default: L(() => [
2564
+ default: B(() => [
2507
2565
  g(v.$slots, "default", {}, () => [
2508
- J(I(e.label), 1)
2566
+ J(L(e.label), 1)
2509
2567
  ], !0)
2510
2568
  ]),
2511
2569
  _: 3
2512
2570
  }, 8, ["for", "required", "optional-label", "size"]),
2513
- h("div", cn, [
2571
+ h("div", yn, [
2514
2572
  h("textarea", Q(v.$attrs, {
2515
2573
  id: e.id,
2516
2574
  ref_key: "textarea",
@@ -2527,25 +2585,25 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2527
2585
  (...y) => u.onFocus && u.onFocus(...y)),
2528
2586
  onBlur: i[2] || (i[2] = //@ts-ignore
2529
2587
  (...y) => u.onBlur && u.onBlur(...y))
2530
- }), null, 16, fn)
2588
+ }), null, 16, vn)
2531
2589
  ]),
2532
- e.minlength || e.maxlength ? (m(), p("div", yn, [
2590
+ e.minlength || e.maxlength ? (m(), p("div", mn, [
2533
2591
  e.minlength ? (m(), p("p", {
2534
2592
  key: 0,
2535
2593
  class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2536
2594
  }, [
2537
- _(f) ? w("", !0) : (m(), p("joy-icon", vn)),
2538
- J(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2595
+ _(f) ? w("", !0) : (m(), p("joy-icon", pn)),
2596
+ J(" " + L(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2539
2597
  ], 2)) : w("", !0),
2540
2598
  e.maxlength ? (m(), p("p", {
2541
2599
  key: 1,
2542
2600
  class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
2543
- }, I(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2601
+ }, L(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2544
2602
  ])) : w("", !0)
2545
- ], 10, dn));
2603
+ ], 10, fn));
2546
2604
  }
2547
2605
  });
2548
- const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) => (te("data-v-cf79d999"), e = e(), le(), e), hn = { class: "joy-toggle__wrapper" }, bn = ["name", "disabled", "checked", "required", "aria-checked", "value"], gn = { class: "joy-toggle__content" }, _n = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), wn = { class: "joy-toggle__content-label" }, Sn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2606
+ const bn = /* @__PURE__ */ V(hn, [["__scopeId", "data-v-1496c389"]]), ot = (e) => (te("data-v-cf79d999"), e = e(), le(), e), gn = { class: "joy-toggle__wrapper" }, _n = ["name", "disabled", "checked", "required", "aria-checked", "value"], wn = { class: "joy-toggle__content" }, Sn = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), jn = { class: "joy-toggle__content-label" }, kn = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2549
2607
  /* @__PURE__ */ h("svg", {
2550
2608
  width: "18",
2551
2609
  height: "10",
@@ -2558,7 +2616,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2558
2616
  fill: "currentColor"
2559
2617
  })
2560
2618
  ])
2561
- ], -1)), jn = /* @__PURE__ */ $({
2619
+ ], -1)), $n = /* @__PURE__ */ $({
2562
2620
  __name: "VJoyToggle",
2563
2621
  props: {
2564
2622
  modelValue: {
@@ -2604,7 +2662,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2604
2662
  l.value = !1;
2605
2663
  }
2606
2664
  };
2607
- return (n, r) => (m(), p("div", hn, [
2665
+ return (n, r) => (m(), p("div", gn, [
2608
2666
  h("label", {
2609
2667
  class: k([
2610
2668
  "joy-toggle",
@@ -2632,77 +2690,77 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2632
2690
  (...s) => o.onFocus && o.onFocus(...s)),
2633
2691
  onBlur: r[2] || (r[2] = //@ts-ignore
2634
2692
  (...s) => o.onBlur && o.onBlur(...s))
2635
- }, null, 40, bn),
2636
- h("p", gn, [
2637
- _n,
2638
- h("span", wn, [
2693
+ }, null, 40, _n),
2694
+ h("p", wn, [
2695
+ Sn,
2696
+ h("span", jn, [
2639
2697
  g(n.$slots, "default", {}, () => [
2640
- J(I(e.label), 1)
2698
+ J(L(e.label), 1)
2641
2699
  ], !0)
2642
2700
  ]),
2643
- Sn
2701
+ kn
2644
2702
  ])
2645
2703
  ], 2)
2646
2704
  ]));
2647
2705
  }
2648
2706
  });
2649
- const kn = /* @__PURE__ */ V(jn, [["__scopeId", "data-v-cf79d999"]]), $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2707
+ const Vn = /* @__PURE__ */ V($n, [["__scopeId", "data-v-cf79d999"]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2650
2708
  __proto__: null,
2651
2709
  VJoyBadge: ft,
2652
- VJoyButton: jt,
2710
+ VJoyButton: kt,
2653
2711
  VJoyCheckbox: he,
2654
- VJoyCounter: Dt,
2655
- VJoyDropdown: Fl,
2656
- VJoyDropdownList: Xe,
2657
- VJoyFormError: et,
2658
- VJoyHighlight: Ql,
2659
- VJoyInput: io,
2712
+ VJoyCounter: Rt,
2713
+ VJoyDropdown: Rl,
2714
+ VJoyDropdownList: et,
2715
+ VJoyFormError: tt,
2716
+ VJoyHighlight: Yl,
2717
+ VJoyInput: so,
2660
2718
  VJoyLabel: N,
2661
- VJoyLink: fo,
2662
- VJoyMultiCheckbox: po,
2663
- VJoyPanel: $o,
2664
- VJoyPanelSection: Bo,
2665
- VJoyRadio: qo,
2666
- VJoyRadioGroup: Ao,
2667
- VJoySelect: No,
2668
- VJoySelectableItem: tt,
2669
- VJoySelectableItemGroup: Qo,
2670
- VJoySpinner: He,
2671
- VJoyTemplate: un,
2672
- VJoyTextarea: pn,
2673
- VJoyToggle: kn,
2674
- VJoyWrapper: Yo
2675
- }, Symbol.toStringTag, { value: "Module" })), xn = {
2719
+ VJoyLink: vo,
2720
+ VJoyMultiCheckbox: bo,
2721
+ VJoyPanel: xo,
2722
+ VJoyPanelSection: Eo,
2723
+ VJoyRadio: zo,
2724
+ VJoyRadioGroup: Do,
2725
+ VJoySelect: Wo,
2726
+ VJoySelectableItem: lt,
2727
+ VJoySelectableItemGroup: Yo,
2728
+ VJoySpinner: We,
2729
+ VJoyTemplate: cn,
2730
+ VJoyTextarea: bn,
2731
+ VJoyToggle: Vn,
2732
+ VJoyWrapper: en
2733
+ }, Symbol.toStringTag, { value: "Module" })), In = {
2676
2734
  install: (e) => {
2677
- Object.entries($n).forEach(([t, l]) => {
2735
+ Object.entries(xn).forEach(([t, l]) => {
2678
2736
  e.component(t, l);
2679
2737
  });
2680
2738
  }
2681
2739
  };
2682
2740
  export {
2683
- xn as JoyVuePlugin,
2741
+ In as JoyVuePlugin,
2684
2742
  ft as VJoyBadge,
2685
- jt as VJoyButton,
2743
+ kt as VJoyButton,
2686
2744
  he as VJoyCheckbox,
2687
- Dt as VJoyCounter,
2688
- Fl as VJoyDropdown,
2689
- Xe as VJoyDropdownList,
2690
- et as VJoyFormError,
2691
- Ql as VJoyHighlight,
2692
- io as VJoyInput,
2745
+ Rt as VJoyCounter,
2746
+ Rl as VJoyDropdown,
2747
+ et as VJoyDropdownList,
2748
+ tt as VJoyFormError,
2749
+ Yl as VJoyHighlight,
2750
+ so as VJoyInput,
2693
2751
  N as VJoyLabel,
2694
- fo as VJoyLink,
2695
- po as VJoyMultiCheckbox,
2696
- $o as VJoyPanel,
2697
- Bo as VJoyPanelSection,
2698
- qo as VJoyRadio,
2699
- Ao as VJoyRadioGroup,
2700
- No as VJoySelect,
2701
- tt as VJoySelectableItem,
2702
- Qo as VJoySelectableItemGroup,
2703
- He as VJoySpinner,
2704
- un as VJoyTemplate,
2705
- pn as VJoyTextarea,
2706
- kn as VJoyToggle,
2707
- Yo as VJoyWrapper
2752
+ vo as VJoyLink,
2753
+ bo as VJoyMultiCheckbox,
2754
+ xo as VJoyPanel,
2755
+ Eo as VJoyPanelSection,
2756
+ zo as VJoyRadio,
2757
+ Do as VJoyRadioGroup,
2758
+ Wo as VJoySelect,
2759
+ lt as VJoySelectableItem,
2760
+ Yo as VJoySelectableItemGroup,
2761
+ We as VJoySpinner,
2762
+ cn as VJoyTemplate,
2763
+ bn as VJoyTextarea,
2764
+ Vn as VJoyToggle,
2765
+ en as VJoyWrapper
2708
2766
  };