@maltjoy/core-vue 1.0.0-beta.6 → 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 = ["name", "size"], jt = /* @__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
  /**
@@ -92,7 +99,7 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
92
99
  }
93
100
  },
94
101
  setup(e) {
95
- const t = e, l = Re(), o = x(() => {
102
+ const t = e, l = Re(), o = O(() => {
96
103
  switch (t.size) {
97
104
  case "xxsmall":
98
105
  return "xxsmall";
@@ -103,9 +110,10 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
103
110
  default:
104
111
  return "small";
105
112
  }
106
- }), n = x(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
113
+ }), n = O(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
107
114
  return (r, s) => (m(), q(ce(_(l).href ? "a" : "button"), {
108
115
  disabled: e.loading || _(l).disabled,
116
+ type: _(l).type || "button",
109
117
  class: k([
110
118
  "joy-button",
111
119
  `joy-button_${e.variant}`,
@@ -116,7 +124,7 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
116
124
  }
117
125
  ])
118
126
  }, {
119
- default: L(() => [
127
+ default: B(() => [
120
128
  e.icon && e.iconPosition === "left" ? (m(), p("joy-icon", {
121
129
  key: 0,
122
130
  class: "joy-button_icon joy-button_icon--left",
@@ -124,7 +132,7 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
124
132
  size: _(o),
125
133
  lazy: !1
126
134
  }, null, 8, _t)) : w("", !0),
127
- e.loading ? (m(), q(He, {
135
+ e.loading ? (m(), q(We, {
128
136
  key: 1,
129
137
  color: _(n)
130
138
  }, null, 8, ["color"])) : w("", !0),
@@ -140,10 +148,10 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
140
148
  }, null, 8, St)) : w("", !0)
141
149
  ]),
142
150
  _: 3
143
- }, 8, ["disabled", "class"]));
151
+ }, 8, ["disabled", "type", "class"]));
144
152
  }
145
153
  });
146
- const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["aria-checked", "aria-hidden"], Vt = { class: "joy-checkbox__input-wrapper" }, xt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, It = { class: "joy-checkbox__content" }, Bt = /* @__PURE__ */ $({
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__ */ $({
147
155
  __name: "VJoyCheckbox",
148
156
  props: {
149
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 */
@@ -206,6 +214,7 @@ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["ari
206
214
  return t({
207
215
  isIndeterminate: r
208
216
  }), (c, f) => (m(), p("div", {
217
+ class: "joy-checkbox__wrapper",
209
218
  "aria-checked": e.checked,
210
219
  "aria-hidden": e.disabled
211
220
  }, [
@@ -244,7 +253,7 @@ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["ari
244
253
  ]),
245
254
  h("div", Ot, [
246
255
  g(c.$slots, "default", {}, () => [
247
- J(I(e.label), 1)
256
+ J(L(e.label), 1)
248
257
  ], !0),
249
258
  h("div", It, [
250
259
  g(c.$slots, "checkbox-content", {}, void 0, !0)
@@ -254,13 +263,13 @@ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["ari
254
263
  ], 8, $t));
255
264
  }
256
265
  });
257
- const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Lt = { class: "joy-counter" }, Et = ["aria-label", "disabled"], Pt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
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", {
258
267
  name: "minus",
259
268
  color: "teal",
260
269
  lazy: !1
261
270
  }, null, -1)), Ct = [
262
271
  Pt
263
- ], Jt = { class: "joy-counter__input-wrapper" }, qt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], zt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
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", {
264
273
  name: "add",
265
274
  lazy: !1,
266
275
  color: "teal"
@@ -382,9 +391,9 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
382
391
  "optional-label": e.optionalLabel,
383
392
  size: e.labelSize
384
393
  }, {
385
- default: L(() => [
394
+ default: B(() => [
386
395
  g(d.$slots, "default", {}, () => [
387
- J(I(e.label), 1)
396
+ J(L(e.label), 1)
388
397
  ], !0)
389
398
  ]),
390
399
  _: 3
@@ -429,7 +438,7 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
429
438
  onClick: a
430
439
  }, At, 8, Tt),
431
440
  e.invalid && e.errorMessage ? (m(), p("div", Ft, [
432
- fe(_(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
441
+ fe(_(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
433
442
  ])) : w("", !0)
434
443
  ], 2)
435
444
  ]));
@@ -437,12 +446,12 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
437
446
  });
438
447
  const Rt = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-0d1ab3f2"]]);
439
448
  var _e;
440
- const U = typeof window < "u", Ue = (e) => typeof e == "string", z = () => {
449
+ const U = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
441
450
  }, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
442
451
  function P(e) {
443
452
  return typeof e == "function" ? e() : _(e);
444
453
  }
445
- function Ge(e, t) {
454
+ function Ke(e, t) {
446
455
  function l(...o) {
447
456
  return new Promise((n, r) => {
448
457
  Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
@@ -489,19 +498,19 @@ function Ht(e) {
489
498
  return e;
490
499
  }
491
500
  function G(e) {
492
- return ot() ? (nt(e), !0) : !1;
501
+ return nt() ? (at(e), !0) : !1;
493
502
  }
494
503
  function Wt(e, t = 200, l = {}) {
495
- return Ge(Mt(t, l), e);
504
+ return Ke(Mt(t, l), e);
496
505
  }
497
506
  function Ut(e, t = 200, l = !1, o = !0, n = !1) {
498
- return Ge(Nt(t, l, o, n), e);
507
+ return Ke(Nt(t, l, o, n), e);
499
508
  }
500
509
  function Gt(e) {
501
- return typeof e == "function" ? x(e) : b(e);
510
+ return typeof e == "function" ? O(e) : b(e);
502
511
  }
503
- function Ke(e, t = !0) {
504
- at() ? Z(e) : t ? e() : Me(e);
512
+ function Qe(e, t = !0) {
513
+ it() ? Z(e) : t ? e() : Me(e);
505
514
  }
506
515
  function H(e) {
507
516
  var t;
@@ -514,12 +523,12 @@ U && window.navigator;
514
523
  U && window.location;
515
524
  function ae(...e) {
516
525
  let t, l, o, n;
517
- 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)
518
527
  return z;
519
528
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
520
529
  const r = [], s = () => {
521
530
  r.forEach((u) => u()), r.length = 0;
522
- }, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [H(t), P(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]) => {
523
532
  s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
524
533
  }, { immediate: !0, flush: "post" }), f = () => {
525
534
  c(), s();
@@ -565,7 +574,7 @@ function Kt(e, t, l = {}) {
565
574
  }
566
575
  function Qt(e, t = !1) {
567
576
  const l = b(), o = () => l.value = Boolean(e());
568
- return o(), Ke(o, t), l;
577
+ return o(), Qe(o, t), l;
569
578
  }
570
579
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
571
580
  ie[re] = ie[re] || {};
@@ -584,7 +593,7 @@ function el(e, t, l = {}) {
584
593
  let s;
585
594
  const a = Qt(() => n && "ResizeObserver" in n), c = () => {
586
595
  s && (s.disconnect(), s = void 0);
587
- }, f = B(() => H(e), (v) => {
596
+ }, f = E(() => H(e), (v) => {
588
597
  c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
589
598
  }, { immediate: !0, flush: "post" }), u = () => {
590
599
  c(), f();
@@ -604,7 +613,7 @@ function tl(e) {
604
613
  var n, r;
605
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));
606
615
  }
607
- return B([l, t], o, { immediate: !0 }), el(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 }), {
608
617
  textarea: t,
609
618
  input: l,
610
619
  triggerResize: o
@@ -657,7 +666,7 @@ const rl = /* @__PURE__ */ $({
657
666
  l("trigger", n);
658
667
  }, e.options), () => {
659
668
  if (t.default)
660
- return it(e.as || "div", { ref: o }, t.default());
669
+ return rt(e.as || "div", { ref: o }, t.default());
661
670
  };
662
671
  }
663
672
  });
@@ -669,12 +678,12 @@ function C(e) {
669
678
  const M = U ? window : void 0;
670
679
  function A(...e) {
671
680
  let t, l, o, n;
672
- 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)
673
682
  return z;
674
683
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
675
684
  const r = [], s = () => {
676
685
  r.forEach((u) => u()), r.length = 0;
677
- }, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [C(t), P(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]) => {
678
687
  s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
679
688
  }, { immediate: !0, flush: "post" }), f = () => {
680
689
  c(), s();
@@ -740,7 +749,7 @@ R.mounted + "";
740
749
  const yl = 500;
741
750
  function Le(e, t, l) {
742
751
  var o, n;
743
- const r = x(() => C(e));
752
+ const r = O(() => C(e));
744
753
  let s;
745
754
  function a() {
746
755
  s && (clearTimeout(s), s = void 0);
@@ -759,9 +768,9 @@ R.mounted + "";
759
768
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
760
769
  se[ue] = se[ue] || {};
761
770
  se[ue];
762
- function Qe(e, t = !1) {
771
+ function Ze(e, t = !1) {
763
772
  const l = b(), o = () => l.value = Boolean(e());
764
- return o(), Ke(o, t), l;
773
+ return o(), Qe(o, t), l;
765
774
  }
766
775
  function vl(e, t = {}) {
767
776
  const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = b(!1);
@@ -785,9 +794,9 @@ var Ee = Object.getOwnPropertySymbols, ml = Object.prototype.hasOwnProperty, pl
785
794
  function bl(e, t, l = {}) {
786
795
  const o = l, { window: n = M } = o, r = hl(o, ["window"]);
787
796
  let s;
788
- const a = Qe(() => n && "ResizeObserver" in n), c = () => {
797
+ const a = Ze(() => n && "ResizeObserver" in n), c = () => {
789
798
  s && (s.disconnect(), s = void 0);
790
- }, f = B(() => C(e), (v) => {
799
+ }, f = E(() => C(e), (v) => {
791
800
  c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
792
801
  }, { immediate: !0, flush: "post" }), u = () => {
793
802
  c(), f();
@@ -798,7 +807,7 @@ function bl(e, t, l = {}) {
798
807
  };
799
808
  }
800
809
  function gl(e, t = { width: 0, height: 0 }, l = {}) {
801
- const { window: o = M, box: n = "content-box" } = l, r = x(() => {
810
+ const { window: o = M, box: n = "content-box" } = l, r = O(() => {
802
811
  var c, f;
803
812
  return (f = (c = C(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
804
813
  }), s = b(t.width), a = b(t.height);
@@ -815,7 +824,7 @@ function gl(e, t = { width: 0, height: 0 }, l = {}) {
815
824
  s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
816
825
  } else
817
826
  s.value = c.contentRect.width, a.value = c.contentRect.height;
818
- }, l), B(() => C(e), (c) => {
827
+ }, l), E(() => C(e), (c) => {
819
828
  s.value = c ? t.width : 0, a.value = c ? t.height : 0;
820
829
  }), {
821
830
  width: s,
@@ -835,7 +844,7 @@ function Pe(e, { window: t = M, scrollTarget: l } = {}) {
835
844
  o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
836
845
  }
837
846
  };
838
- return B(() => C(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, {
839
848
  capture: !1,
840
849
  passive: !0
841
850
  }), o;
@@ -859,27 +868,27 @@ function de(e, t = {}) {
859
868
  passive: !0
860
869
  },
861
870
  behavior: c = "auto"
862
- } = t, f = b(0), u = b(0), v = x({
871
+ } = t, f = b(0), u = b(0), v = O({
863
872
  get() {
864
873
  return f.value;
865
874
  },
866
- set(O) {
867
- y(O, void 0);
875
+ set(I) {
876
+ y(I, void 0);
868
877
  }
869
- }), i = x({
878
+ }), i = O({
870
879
  get() {
871
880
  return u.value;
872
881
  },
873
- set(O) {
874
- y(void 0, O);
882
+ set(I) {
883
+ y(void 0, I);
875
884
  }
876
885
  });
877
- function y(O, T) {
886
+ function y(I, T) {
878
887
  var D, F, ge;
879
888
  const ne = P(e);
880
889
  ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
881
890
  top: (D = P(T)) != null ? D : i.value,
882
- left: (F = P(O)) != null ? F : v.value,
891
+ left: (F = P(I)) != null ? F : v.value,
883
892
  behavior: P(c)
884
893
  }));
885
894
  }
@@ -893,15 +902,15 @@ function de(e, t = {}) {
893
902
  right: !1,
894
903
  top: !1,
895
904
  bottom: !1
896
- }), Y = (O) => {
897
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(O));
898
- }, oe = Wt(Y, l + o), E = (O) => {
899
- const T = O.target === document ? O.target.documentElement : O.target, D = T.scrollLeft;
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;
900
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;
901
910
  let F = T.scrollTop;
902
- O.target === document && !F && (F = document.body.scrollTop), S.top = F < u.value, S.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + T.clientHeight >= T.scrollHeight - (s.bottom || 0) - Ce, u.value = F, d.value = !0, oe(O), r(O);
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);
903
912
  };
904
- return A(e, "scroll", l ? Ut(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), {
905
914
  x: v,
906
915
  y: i,
907
916
  isScrolling: d,
@@ -924,7 +933,7 @@ function ze(e, t, l = {}) {
924
933
  [r]: (n = l.distance) != null ? n : 0
925
934
  }, l.offset)
926
935
  })));
927
- B(() => s.arrivedState[r], async (a) => {
936
+ E(() => s.arrivedState[r], async (a) => {
928
937
  var c, f;
929
938
  if (a) {
930
939
  const u = P(e), v = {
@@ -947,9 +956,9 @@ function Ae(e, t, l = {}) {
947
956
  rootMargin: n = "0px",
948
957
  threshold: r = 0.1,
949
958
  window: s = M
950
- } = l, a = Qe(() => s && "IntersectionObserver" in s);
959
+ } = l, a = Ze(() => s && "IntersectionObserver" in s);
951
960
  let c = z;
952
- const f = a.value ? B(() => ({
961
+ const f = a.value ? E(() => ({
953
962
  el: C(e),
954
963
  root: C(o)
955
964
  }), ({ el: v, root: i }) => {
@@ -981,23 +990,23 @@ var Vl = Object.defineProperty, xl = Object.defineProperties, Ol = Object.getOwn
981
990
  return e;
982
991
  }, El = (e, t) => xl(e, Ol(t));
983
992
  R.mounted + "";
984
- function Ze(e) {
993
+ function Ye(e) {
985
994
  const t = window.getComputedStyle(e);
986
995
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
987
996
  return !0;
988
997
  {
989
998
  const l = e.parentNode;
990
- return !l || l.tagName === "BODY" ? !1 : Ze(l);
999
+ return !l || l.tagName === "BODY" ? !1 : Ye(l);
991
1000
  }
992
1001
  }
993
1002
  function Pl(e) {
994
1003
  const t = e || window.event, l = t.target;
995
- 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);
996
1005
  }
997
1006
  function Cl(e, t = !1) {
998
1007
  const l = b(t);
999
1008
  let o = null, n;
1000
- B(Gt(e), (a) => {
1009
+ E(Gt(e), (a) => {
1001
1010
  if (a) {
1002
1011
  const c = a;
1003
1012
  n = c.style.overflow, l.value && (c.style.overflow = "hidden");
@@ -1014,7 +1023,7 @@ function Cl(e, t = !1) {
1014
1023
  const a = P(e);
1015
1024
  !a || !l.value || (ee && (o == null || o()), a.style.overflow = n, l.value = !1);
1016
1025
  };
1017
- return G(s), x({
1026
+ return G(s), O({
1018
1027
  get() {
1019
1028
  return l.value;
1020
1029
  },
@@ -1031,14 +1040,17 @@ const Jl = () => {
1031
1040
  return;
1032
1041
  e = !0;
1033
1042
  const n = Cl(l, o.value);
1034
- B(t, (r) => n.value = r);
1043
+ E(t, (r) => n.value = r);
1035
1044
  };
1036
1045
  };
1037
1046
  Jl();
1038
- const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Tl = {
1047
+ const Xe = ["medium", "small"], ql = {
1039
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,
1040
1052
  class: "joy-dropdown-list__footer"
1041
- }, zl = /* @__PURE__ */ $({
1053
+ }, Al = /* @__PURE__ */ $({
1042
1054
  __name: "VJoyDropdownList",
1043
1055
  props: {
1044
1056
  /**
@@ -1057,7 +1069,7 @@ const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-s
1057
1069
  type: String,
1058
1070
  default: "medium",
1059
1071
  validator(e) {
1060
- return Ye.includes(e);
1072
+ return Xe.includes(e);
1061
1073
  }
1062
1074
  },
1063
1075
  modelValue: {
@@ -1074,7 +1086,7 @@ const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-s
1074
1086
  },
1075
1087
  emits: ["update:modelValue", "close:dropdownList"],
1076
1088
  setup(e, { expose: t, emit: l }) {
1077
- const o = e, n = b(), r = x(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1089
+ const o = e, n = b(), r = O(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1078
1090
  function s(i) {
1079
1091
  i.disabled || l("update:modelValue", i.value || i.id);
1080
1092
  }
@@ -1121,49 +1133,57 @@ const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-s
1121
1133
  isSelected: r
1122
1134
  }), (i, y) => (m(), p("div", {
1123
1135
  class: "joy-dropdown-list",
1124
- style: K({ width: `${e.width}px`, "max-width": `${e.width}px`, "max-height": `${e.height}px` })
1136
+ style: K({ width: `${e.width}px`, "max-width": `${e.width}px` })
1125
1137
  }, [
1126
- h("ul", {
1127
- ref_key: "listbox",
1128
- ref: n,
1129
- role: "listbox",
1130
- 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"] }]),
1131
1143
  style: K({ "max-height": `${e.height}px` })
1132
1144
  }, [
1133
- (m(!0), p(ye, null, ve(e.options, (d) => (m(), p("li", {
1134
- id: d.id,
1135
- key: d.label,
1136
- style: K({ "max-width": `${e.width}px` }),
1137
- class: k([
1138
- "joy-dropdown-list__item",
1139
- `joy-dropdown-list__item--${e.size}`,
1140
- {
1141
- "joy-dropdown-list__item--selected": _(r)(d),
1142
- "joy-dropdown-list__item--disabled": d.disabled
1143
- }
1144
- ]),
1145
- tabindex: d.disabled ? void 0 : 0,
1146
- "aria-disabled": d.disabled,
1147
- "aria-selected": _(r)(d),
1148
- title: d.label,
1149
- "aria-label": d.label,
1150
- ".dataModel": d.value || d.id,
1151
- role: "option",
1152
- 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"
1153
1151
  }, [
1154
- g(i.$slots, "label", me(pe(d)), () => [
1155
- h("span", null, I(d.label), 1)
1156
- ], !0)
1157
- ], 14, ql))), 128))
1158
- ], 4),
1159
- i.$slots.footer ? (m(), p("footer", Tl, [
1160
- 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)
1161
1181
  ])) : w("", !0)
1162
1182
  ], 4));
1163
1183
  }
1164
1184
  });
1165
- const Xe = /* @__PURE__ */ V(zl, [["__scopeId", "data-v-af851385"]]);
1166
- function Al(e) {
1185
+ const et = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-63134a7f"]]);
1186
+ function Fl(e) {
1167
1187
  const t = () => e();
1168
1188
  Z(() => {
1169
1189
  window.addEventListener("resize", t);
@@ -1171,7 +1191,7 @@ function Al(e) {
1171
1191
  window.removeEventListener("resize", t);
1172
1192
  });
1173
1193
  }
1174
- const Fl = /* @__PURE__ */ $({
1194
+ const Dl = /* @__PURE__ */ $({
1175
1195
  __name: "VJoyDropdown",
1176
1196
  props: {
1177
1197
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1219,7 +1239,7 @@ const Fl = /* @__PURE__ */ $({
1219
1239
  type: String,
1220
1240
  default: "medium",
1221
1241
  validator(e) {
1222
- return Ye.includes(e);
1242
+ return Xe.includes(e);
1223
1243
  }
1224
1244
  },
1225
1245
  modelValue: {
@@ -1264,8 +1284,8 @@ const Fl = /* @__PURE__ */ $({
1264
1284
  n.value = !1, f.value = !1, l("dropdown:hide");
1265
1285
  }, 300);
1266
1286
  }
1267
- function d(E) {
1268
- f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, n.value = !0, l("dropdown:open");
1287
+ function d(x) {
1288
+ f.value = !1, v && clearTimeout(v), Y(), c.value = x.target, n.value = !0, l("dropdown:open");
1269
1289
  }
1270
1290
  function j() {
1271
1291
  y(), S();
@@ -1274,31 +1294,31 @@ const Fl = /* @__PURE__ */ $({
1274
1294
  c.value && c.value.focus();
1275
1295
  }
1276
1296
  function Y() {
1277
- const E = s.value.getBoundingClientRect(), O = document.documentElement.scrollTop + E.top, T = E.height, D = E.left, F = E.width;
1278
- 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";
1279
1299
  }
1280
- function oe(E) {
1281
- l("update:modelValue", E), o.closeOnSelect && (y(), S());
1300
+ function oe(x) {
1301
+ l("update:modelValue", x), o.closeOnSelect && (y(), S());
1282
1302
  }
1283
- return Al(y), t({
1303
+ return Fl(y), t({
1284
1304
  showDropdownList: n
1285
- }), (E, O) => (m(), q(_(rl), {
1305
+ }), (x, I) => (m(), q(_(rl), {
1286
1306
  ref_key: "dropdown",
1287
1307
  ref: r,
1288
1308
  options: u,
1289
1309
  class: "joy-dropdown",
1290
1310
  onTrigger: y
1291
1311
  }, {
1292
- default: L(() => [
1312
+ default: B(() => [
1293
1313
  h("div", {
1294
1314
  ref_key: "button",
1295
1315
  ref: s,
1296
1316
  class: "joy-dropdown__button",
1297
1317
  onClick: d
1298
1318
  }, [
1299
- g(E.$slots, "dropdown-button", {}, void 0, !0)
1319
+ g(x.$slots, "dropdown-button", {}, void 0, !0)
1300
1320
  ], 512),
1301
- (m(), q(rt, {
1321
+ (m(), q(st, {
1302
1322
  to: e.appendTo,
1303
1323
  disabled: e.disableTeleport
1304
1324
  }, [
@@ -1319,7 +1339,7 @@ const Fl = /* @__PURE__ */ $({
1319
1339
  left: i.left
1320
1340
  })
1321
1341
  }, [
1322
- fe(Xe, {
1342
+ fe(et, {
1323
1343
  "model-value": e.modelValue,
1324
1344
  options: e.options,
1325
1345
  size: e.size,
@@ -1327,14 +1347,36 @@ const Fl = /* @__PURE__ */ $({
1327
1347
  height: e.height,
1328
1348
  "onUpdate:modelValue": oe,
1329
1349
  "onClose:dropdownList": j
1330
- }, {
1331
- label: L((T) => [
1332
- g(E.$slots, "dropdown-item", me(pe(T)), () => [
1333
- 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)
1334
1354
  ], !0)
1335
1355
  ]),
1336
- _: 3
1337
- }, 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"])
1338
1380
  ], 6)) : w("", !0)
1339
1381
  ], 8, ["to", "disabled"]))
1340
1382
  ]),
@@ -1342,10 +1384,10 @@ const Fl = /* @__PURE__ */ $({
1342
1384
  }, 512));
1343
1385
  }
1344
1386
  });
1345
- const Dl = /* @__PURE__ */ V(Fl, [["__scopeId", "data-v-6caf97fb"]]), Rl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Ml = ["aria-hidden"], Nl = /* @__PURE__ */ Rl(() => /* @__PURE__ */ h("joy-icon", {
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", {
1346
1388
  "custom-class": "joy-icon-error",
1347
1389
  name: "warning-triangle"
1348
- }, null, -1)), Hl = /* @__PURE__ */ $({
1390
+ }, null, -1)), Wl = /* @__PURE__ */ $({
1349
1391
  __name: "VJoyFormError",
1350
1392
  props: {
1351
1393
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1362,17 +1404,17 @@ const Dl = /* @__PURE__ */ V(Fl, [["__scopeId", "data-v-6caf97fb"]]), Rl = (e) =
1362
1404
  class: k(["joy-form-error", { "joy-has-error": e.visible }]),
1363
1405
  role: "alert"
1364
1406
  }, [
1365
- Nl,
1407
+ Hl,
1366
1408
  h("div", null, [
1367
1409
  g(t.$slots, "default", {}, () => [
1368
- J(I(e.noHtmlErrorText), 1)
1410
+ J(L(e.noHtmlErrorText), 1)
1369
1411
  ], !0)
1370
1412
  ])
1371
- ], 10, Ml));
1413
+ ], 10, Nl));
1372
1414
  }
1373
1415
  });
1374
- const et = /* @__PURE__ */ V(Hl, [["__scopeId", "data-v-50e209d6"]]);
1375
- function Wl(e) {
1416
+ const tt = /* @__PURE__ */ V(Wl, [["__scopeId", "data-v-50e209d6"]]);
1417
+ function Ul(e) {
1376
1418
  let t;
1377
1419
  switch (e) {
1378
1420
  case "error":
@@ -1386,7 +1428,7 @@ function Wl(e) {
1386
1428
  }
1387
1429
  return t;
1388
1430
  }
1389
- const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /* @__PURE__ */ $({
1431
+ const Gl = [...pt], Kl = ["name"], Ql = { class: "joy-highlight--text" }, Zl = /* @__PURE__ */ $({
1390
1432
  __name: "VJoyHighlight",
1391
1433
  props: {
1392
1434
  accent: {
@@ -1402,12 +1444,12 @@ const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /
1402
1444
  type: String,
1403
1445
  default: "neutral",
1404
1446
  validator(e) {
1405
- return Ul.includes(e);
1447
+ return Gl.includes(e);
1406
1448
  }
1407
1449
  }
1408
1450
  },
1409
1451
  setup(e, { expose: t }) {
1410
- const l = e, o = x(() => l.icon ? l.icon : Wl(l.level));
1452
+ const l = e, o = O(() => l.icon ? l.icon : Ul(l.level));
1411
1453
  return t({
1412
1454
  getRelevantIcon: o
1413
1455
  }), (n, r) => (m(), p("div", {
@@ -1423,8 +1465,8 @@ const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /
1423
1465
  e.displayIcon ? (m(), p("joy-icon", {
1424
1466
  key: 0,
1425
1467
  name: _(o)
1426
- }, null, 8, Gl)) : w("", !0),
1427
- h("div", Kl, [
1468
+ }, null, 8, Kl)) : w("", !0),
1469
+ h("div", Ql, [
1428
1470
  h("strong", null, [
1429
1471
  g(n.$slots, "highlight-title", {}, void 0, !0)
1430
1472
  ]),
@@ -1433,20 +1475,20 @@ const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /
1433
1475
  ], 2));
1434
1476
  }
1435
1477
  });
1436
- const Zl = /* @__PURE__ */ V(Ql, [["__scopeId", "data-v-a0ff7a60"]]), Yl = ["small", "medium", "large"], Xl = {
1478
+ const Yl = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-a0ff7a60"]]), Xl = ["small", "medium", "large"], eo = {
1437
1479
  key: 0,
1438
1480
  class: "joy-label-required"
1439
- }, eo = {
1481
+ }, to = {
1440
1482
  key: 1,
1441
1483
  class: "joy-label-optional"
1442
- }, to = /* @__PURE__ */ $({
1484
+ }, lo = /* @__PURE__ */ $({
1443
1485
  __name: "VJoyLabel",
1444
1486
  props: {
1445
1487
  size: {
1446
1488
  type: String,
1447
1489
  default: "medium",
1448
1490
  validator(e) {
1449
- return Yl.includes(e);
1491
+ return Xl.includes(e);
1450
1492
  }
1451
1493
  },
1452
1494
  tagName: {
@@ -1465,16 +1507,16 @@ const Zl = /* @__PURE__ */ V(Ql, [["__scopeId", "data-v-a0ff7a60"]]), Yl = ["sma
1465
1507
  return (t, l) => (m(), q(ce(e.tagName), Q({
1466
1508
  class: ["joy-label", `joy-label--${e.size}`]
1467
1509
  }, t.$attrs), {
1468
- default: L(() => [
1510
+ default: B(() => [
1469
1511
  g(t.$slots, "default", {}, void 0, !0),
1470
- e.required ? (m(), p("span", Xl, "*")) : w("", !0),
1471
- e.optionalLabel ? (m(), p("span", eo, "- " + 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)
1472
1514
  ]),
1473
1515
  _: 3
1474
1516
  }, 16, ["class"]));
1475
1517
  }
1476
1518
  });
1477
- const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["large", "medium", "small"], oo = ["id", "disabled", "type", "value"], no = ["name"], ao = ["data-unit"], io = /* @__PURE__ */ $({
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__ */ $({
1478
1520
  __name: "VJoyInput",
1479
1521
  props: {
1480
1522
  disabled: {
@@ -1525,7 +1567,7 @@ const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["larg
1525
1567
  type: String,
1526
1568
  default: "medium",
1527
1569
  validator(e) {
1528
- return lo.includes(e);
1570
+ return oo.includes(e);
1529
1571
  }
1530
1572
  },
1531
1573
  type: String,
@@ -1534,11 +1576,11 @@ const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["larg
1534
1576
  },
1535
1577
  emits: ["update:modelValue"],
1536
1578
  setup(e, { emit: t }) {
1537
- 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(() => {
1538
1580
  var y, d;
1539
1581
  return !!((y = n.value) != null && y.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1540
1582
  }), v = b(l.type);
1541
- st(() => {
1583
+ ut(() => {
1542
1584
  v.value = l.unit ? "number" : l.unit || "text";
1543
1585
  });
1544
1586
  const i = {
@@ -1579,9 +1621,9 @@ const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["larg
1579
1621
  "optional-label": e.optionalLabel,
1580
1622
  size: e.labelSize
1581
1623
  }, {
1582
- default: L(() => [
1624
+ default: B(() => [
1583
1625
  g(y.$slots, "default", {}, () => [
1584
- J(I(e.label), 1)
1626
+ J(L(e.label), 1)
1585
1627
  ], !0)
1586
1628
  ]),
1587
1629
  _: 3
@@ -1616,7 +1658,7 @@ const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["larg
1616
1658
  (...j) => i.onBlur && i.onBlur(...j)),
1617
1659
  onInput: d[2] || (d[2] = //@ts-ignore
1618
1660
  (...j) => i.onInput && i.onInput(...j))
1619
- }), null, 16, oo),
1661
+ }), null, 16, no),
1620
1662
  _(c) ? (m(), p("joy-icon", {
1621
1663
  key: 0,
1622
1664
  size: "xxsmall",
@@ -1630,18 +1672,18 @@ const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["larg
1630
1672
  role: "img",
1631
1673
  class: "joy-input--decorative-icon",
1632
1674
  name: e.icon
1633
- }, null, 8, no)) : w("", !0),
1675
+ }, null, 8, ao)) : w("", !0),
1634
1676
  e.unit ? (m(), p("div", {
1635
1677
  key: 2,
1636
1678
  "data-unit": e.unit,
1637
1679
  class: "joy-input--unit"
1638
- }, null, 8, ao)) : w("", !0)
1680
+ }, null, 8, io)) : w("", !0)
1639
1681
  ], 2)
1640
1682
  ], 2)
1641
1683
  ], 2));
1642
1684
  }
1643
1685
  });
1644
- const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-8258d6d7"]]), so = ["teal", "white"], uo = ["href"], co = ["color", "name"], fo = /* @__PURE__ */ $({
1686
+ const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-8258d6d7"]]), uo = ["teal", "white"], co = ["href"], fo = ["color", "name"], yo = /* @__PURE__ */ $({
1645
1687
  __name: "VJoyLink",
1646
1688
  props: {
1647
1689
  href: {
@@ -1652,13 +1694,13 @@ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-8258d6d7"]]), so = ["tea
1652
1694
  type: String,
1653
1695
  default: "teal",
1654
1696
  validator(e) {
1655
- return so.includes(e);
1697
+ return uo.includes(e);
1656
1698
  }
1657
1699
  },
1658
1700
  icon: String
1659
1701
  },
1660
1702
  setup(e) {
1661
- const t = e, l = x(() => t.color === "white" ? "white" : "teal");
1703
+ const t = e, l = O(() => t.color === "white" ? "white" : "teal");
1662
1704
  return (o, n) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
1663
1705
  class: ["joy-link", `joy-link_${e.color}`]
1664
1706
  }), [
@@ -1666,14 +1708,14 @@ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-8258d6d7"]]), so = ["tea
1666
1708
  key: 0,
1667
1709
  color: _(l),
1668
1710
  name: e.icon
1669
- }, null, 8, co)) : w("", !0),
1711
+ }, null, 8, fo)) : w("", !0),
1670
1712
  g(o.$slots, "default", {}, void 0, !0)
1671
- ], 16, uo));
1713
+ ], 16, co));
1672
1714
  }
1673
1715
  });
1674
- const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-7ef59bc8"]]), vo = ["id"], mo = {
1716
+ const vo = /* @__PURE__ */ V(yo, [["__scopeId", "data-v-7ef59bc8"]]), mo = ["id"], po = {
1675
1717
  class: /* @__PURE__ */ k(["joy-multi-checkbox"])
1676
- }, po = /* @__PURE__ */ $({
1718
+ }, ho = /* @__PURE__ */ $({
1677
1719
  __name: "VJoyMultiCheckbox",
1678
1720
  props: {
1679
1721
  options: {
@@ -1731,12 +1773,12 @@ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-7ef59bc8"]]), vo = ["id"
1731
1773
  "optional-label": e.optionalLabel,
1732
1774
  size: e.labelSize
1733
1775
  }, {
1734
- default: L(() => [
1735
- J(I(e.label), 1)
1776
+ default: B(() => [
1777
+ J(L(e.label), 1)
1736
1778
  ]),
1737
1779
  _: 1
1738
1780
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
1739
- h("div", mo, [
1781
+ h("div", po, [
1740
1782
  (m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(he), {
1741
1783
  id: a.id,
1742
1784
  key: a.id,
@@ -1745,33 +1787,33 @@ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-7ef59bc8"]]), vo = ["id"
1745
1787
  checked: o(a),
1746
1788
  "onUpdate:checked": (c) => n(a.value, c)
1747
1789
  }, {
1748
- default: L(() => [
1790
+ default: B(() => [
1749
1791
  g(r.$slots, "checkbox", me(pe(a)), () => [
1750
- J(I(a.label), 1)
1792
+ J(L(a.label), 1)
1751
1793
  ], !0)
1752
1794
  ]),
1753
1795
  _: 2
1754
1796
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1755
1797
  ])
1756
- ], 8, vo));
1798
+ ], 8, mo));
1757
1799
  }
1758
1800
  });
1759
- const ho = /* @__PURE__ */ V(po, [["__scopeId", "data-v-f4301a1f"]]), bo = ["small", "medium", "large"], go = {
1801
+ const bo = /* @__PURE__ */ V(ho, [["__scopeId", "data-v-f4301a1f"]]), go = ["small", "medium", "large"], _o = {
1760
1802
  key: 0,
1761
1803
  class: /* @__PURE__ */ k(["joy-panel__header"])
1762
- }, _o = {
1804
+ }, wo = {
1763
1805
  key: 0,
1764
1806
  class: "joy-panel__header-title"
1765
- }, wo = {
1807
+ }, So = {
1766
1808
  key: 1,
1767
1809
  class: "joy-panel__header-action"
1768
- }, So = {
1810
+ }, jo = {
1769
1811
  key: 2,
1770
1812
  class: "joy-panel__header-subtitle"
1771
- }, jo = { class: "joy-panel__body" }, ko = {
1813
+ }, ko = { class: "joy-panel__body" }, $o = {
1772
1814
  key: 1,
1773
1815
  class: "joy-panel__footer"
1774
- }, $o = /* @__PURE__ */ $({
1816
+ }, Vo = /* @__PURE__ */ $({
1775
1817
  __name: "VJoyPanel",
1776
1818
  props: {
1777
1819
  flex: {
@@ -1785,59 +1827,59 @@ const ho = /* @__PURE__ */ V(po, [["__scopeId", "data-v-f4301a1f"]]), bo = ["sma
1785
1827
  type: String,
1786
1828
  default: "medium",
1787
1829
  validator(e) {
1788
- return bo.includes(e);
1830
+ return go.includes(e);
1789
1831
  }
1790
1832
  }
1791
1833
  },
1792
1834
  setup(e) {
1793
- 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"]);
1794
1836
  return (n, r) => (m(), p("section", {
1795
1837
  ref_key: "panel",
1796
1838
  ref: l,
1797
1839
  style: K({ flex: e.flex }),
1798
1840
  class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin }])
1799
1841
  }, [
1800
- _(o) ? (m(), p("header", go, [
1801
- _(t)["panel-title"] ? (m(), p("div", _o, [
1842
+ _(o) ? (m(), p("header", _o, [
1843
+ _(t)["panel-title"] ? (m(), p("div", wo, [
1802
1844
  g(n.$slots, "panel-title", {}, void 0, !0)
1803
1845
  ])) : w("", !0),
1804
- _(t)["panel-title-action"] ? (m(), p("div", wo, [
1846
+ _(t)["panel-title-action"] ? (m(), p("div", So, [
1805
1847
  g(n.$slots, "panel-title-action", {}, void 0, !0)
1806
1848
  ])) : w("", !0),
1807
- _(t)["panel-subtitle"] ? (m(), p("div", So, [
1849
+ _(t)["panel-subtitle"] ? (m(), p("div", jo, [
1808
1850
  g(n.$slots, "panel-subtitle", {}, void 0, !0)
1809
1851
  ])) : w("", !0)
1810
1852
  ])) : w("", !0),
1811
- h("div", jo, [
1853
+ h("div", ko, [
1812
1854
  g(n.$slots, "panel-body", {}, void 0, !0)
1813
1855
  ]),
1814
- _(t)["panel-action"] ? (m(), p("footer", ko, [
1856
+ _(t)["panel-action"] ? (m(), p("footer", $o, [
1815
1857
  g(n.$slots, "panel-action", {}, void 0, !0)
1816
1858
  ])) : w("", !0)
1817
1859
  ], 6));
1818
1860
  }
1819
1861
  });
1820
- const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-1aadee0b"]]), xo = { class: "joy-panel-section" }, Oo = {
1862
+ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-1aadee0b"]]), Oo = { class: "joy-panel-section" }, Io = {
1821
1863
  key: 0,
1822
1864
  class: "joy-panel-section__title"
1823
- }, Io = {
1865
+ }, Bo = {
1824
1866
  key: 1,
1825
1867
  class: "joy-panel-section__content"
1826
- }, Bo = /* @__PURE__ */ $({
1868
+ }, Lo = /* @__PURE__ */ $({
1827
1869
  __name: "VJoyPanelSection",
1828
1870
  setup(e) {
1829
1871
  const t = W();
1830
- return (l, o) => (m(), p("div", xo, [
1831
- _(t)["panel-section-title"] ? (m(), p("div", Oo, [
1872
+ return (l, o) => (m(), p("div", Oo, [
1873
+ _(t)["panel-section-title"] ? (m(), p("div", Io, [
1832
1874
  g(l.$slots, "panel-section-title", {}, void 0, !0)
1833
1875
  ])) : w("", !0),
1834
- _(t)["panel-section-content"] ? (m(), p("div", Io, [
1876
+ _(t)["panel-section-content"] ? (m(), p("div", Bo, [
1835
1877
  g(l.$slots, "panel-section-content", {}, void 0, !0)
1836
1878
  ])) : w("", !0)
1837
1879
  ]));
1838
1880
  }
1839
1881
  });
1840
- const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id", "value", "checked", "disabled", "required", "name"], Po = { class: "joy-radio-label" }, Co = { class: "joy-radio-content__wrapper" }, Jo = { class: "joy-radio-content" }, qo = /* @__PURE__ */ $({
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__ */ $({
1841
1883
  __name: "VJoyRadio",
1842
1884
  props: {
1843
1885
  disabled: {
@@ -1873,7 +1915,7 @@ const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id"
1873
1915
  },
1874
1916
  emits: ["update:modelValue"],
1875
1917
  setup(e, { expose: t, emit: l }) {
1876
- 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);
1877
1919
  function u() {
1878
1920
  n.value = !!c["expandable-content"] && f.value;
1879
1921
  }
@@ -1889,7 +1931,7 @@ const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id"
1889
1931
  function y() {
1890
1932
  r.value = !1;
1891
1933
  }
1892
- return B(
1934
+ return E(
1893
1935
  () => o.modelValue,
1894
1936
  () => {
1895
1937
  u();
@@ -1923,12 +1965,12 @@ const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id"
1923
1965
  onChange: v,
1924
1966
  onFocus: i,
1925
1967
  onBlur: y
1926
- }, null, 40, Eo),
1927
- h("span", Po, [
1968
+ }, null, 40, Po),
1969
+ h("span", Co, [
1928
1970
  g(d.$slots, "default", {}, void 0, !0)
1929
1971
  ]),
1930
- h("div", Co, [
1931
- h("div", Jo, [
1972
+ h("div", Jo, [
1973
+ h("div", qo, [
1932
1974
  g(d.$slots, "radio-content", {}, void 0, !0)
1933
1975
  ]),
1934
1976
  h("div", {
@@ -1942,7 +1984,7 @@ const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id"
1942
1984
  ], 2));
1943
1985
  }
1944
1986
  });
1945
- const To = /* @__PURE__ */ V(qo, [["__scopeId", "data-v-24cea99b"]]), zo = ["form", "name"], Ao = /* @__PURE__ */ $({
1987
+ const zo = /* @__PURE__ */ V(To, [["__scopeId", "data-v-24cea99b"]]), Ao = ["form", "name"], Fo = /* @__PURE__ */ $({
1946
1988
  __name: "VJoyRadioGroup",
1947
1989
  props: {
1948
1990
  direction: {
@@ -1970,13 +2012,13 @@ const To = /* @__PURE__ */ V(qo, [["__scopeId", "data-v-24cea99b"]]), zo = ["for
1970
2012
  }, [
1971
2013
  g(t.$slots, "default", {}, void 0, !0)
1972
2014
  ], 2)
1973
- ], 8, zo));
2015
+ ], 8, Ao));
1974
2016
  }
1975
2017
  });
1976
- const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-de56c3c4"]]), Do = (e) => (te("data-v-d251a432"), e = e(), le(), e), Ro = ["id", "name", "aria-invalid", "required", "disabled", "value"], Mo = /* @__PURE__ */ Do(() => /* @__PURE__ */ h("joy-icon", {
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", {
1977
2019
  class: "joy-select__chevron",
1978
2020
  name: "chevron-down"
1979
- }, null, -1)), No = /* @__PURE__ */ $({
2021
+ }, null, -1)), Ho = /* @__PURE__ */ $({
1980
2022
  __name: "VJoySelect",
1981
2023
  props: {
1982
2024
  disabled: {
@@ -2055,8 +2097,8 @@ const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-de56c3c4"]]), Do = (e) =
2055
2097
  for: e.id || e.name,
2056
2098
  size: e.labelSize
2057
2099
  }, {
2058
- default: L(() => [
2059
- J(I(e.label), 1)
2100
+ default: B(() => [
2101
+ J(L(e.label), 1)
2060
2102
  ]),
2061
2103
  _: 1
2062
2104
  }, 8, ["required", "optional-label", "for", "size"])) : w("", !0)
@@ -2084,13 +2126,13 @@ const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-de56c3c4"]]), Do = (e) =
2084
2126
  onBlur: f
2085
2127
  }, [
2086
2128
  g(u.$slots, "default", {}, void 0, !0)
2087
- ], 40, Ro),
2088
- Mo
2129
+ ], 40, Mo),
2130
+ No
2089
2131
  ], 2)
2090
2132
  ], 512));
2091
2133
  }
2092
2134
  });
2093
- const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["aria-disabled"], Uo = ["id", "value", "checked", "disabled", "required", "name"], Go = /* @__PURE__ */ $({
2135
+ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-d251a432"]]), Uo = ["aria-disabled"], Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = /* @__PURE__ */ $({
2094
2136
  __name: "VJoySelectableItem",
2095
2137
  props: {
2096
2138
  disabled: {
@@ -2175,7 +2217,7 @@ const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["ari
2175
2217
  (...v) => a.onFocus && a.onFocus(...v)),
2176
2218
  onBlur: u[2] || (u[2] = //@ts-ignore
2177
2219
  (...v) => a.onBlur && a.onBlur(...v))
2178
- }, null, 40, Uo)),
2220
+ }, null, 40, Go)),
2179
2221
  (m(), q(ce(_(s)), {
2180
2222
  for: e.id,
2181
2223
  class: k([
@@ -2189,7 +2231,7 @@ const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["ari
2189
2231
  ]),
2190
2232
  onClick: a.onLabelClick
2191
2233
  }, {
2192
- default: L(() => [
2234
+ default: B(() => [
2193
2235
  e.multiple ? (m(), q(_(he), {
2194
2236
  key: 0,
2195
2237
  id: e.id,
@@ -2206,7 +2248,7 @@ const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["ari
2206
2248
  onFocus: a.onFocus,
2207
2249
  onBlur: a.onBlur
2208
2250
  }, {
2209
- default: L(() => [
2251
+ default: B(() => [
2210
2252
  g(f.$slots, "default", {}, void 0, !0)
2211
2253
  ]),
2212
2254
  _: 3
@@ -2220,10 +2262,10 @@ const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["ari
2220
2262
  ]),
2221
2263
  _: 3
2222
2264
  }, 8, ["for", "class", "onClick"]))
2223
- ], 10, Wo));
2265
+ ], 10, Uo));
2224
2266
  }
2225
2267
  });
2226
- const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"], Qo = /* @__PURE__ */ $({
2268
+ const lt = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"], Zo = /* @__PURE__ */ $({
2227
2269
  __name: "VJoySelectableItemGroup",
2228
2270
  props: {
2229
2271
  options: {
@@ -2285,8 +2327,8 @@ const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"
2285
2327
  "optional-label": e.optionalLabel,
2286
2328
  size: e.labelSize
2287
2329
  }, {
2288
- default: L(() => [
2289
- J(I(e.label), 1)
2330
+ default: B(() => [
2331
+ J(L(e.label), 1)
2290
2332
  ]),
2291
2333
  _: 1
2292
2334
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
@@ -2300,7 +2342,7 @@ const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"
2300
2342
  }
2301
2343
  ])
2302
2344
  }, [
2303
- (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), {
2304
2346
  id: a.id,
2305
2347
  key: a.id,
2306
2348
  name: a.name,
@@ -2308,25 +2350,25 @@ const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"
2308
2350
  multiple: e.multiple,
2309
2351
  checked: o(a),
2310
2352
  "onUpdate:checked": (c) => n(a.value, c)
2311
- }, ut({
2312
- default: L(() => [
2313
- J(I(a.label) + " ", 1)
2353
+ }, He({
2354
+ default: B(() => [
2355
+ J(L(a.label) + " ", 1)
2314
2356
  ]),
2315
2357
  _: 2
2316
2358
  }, [
2317
2359
  a.subLabel ? {
2318
2360
  name: "selectable-item-sublabel",
2319
- fn: L(() => [
2320
- J(I(a.subLabel), 1)
2361
+ fn: B(() => [
2362
+ J(L(a.subLabel), 1)
2321
2363
  ]),
2322
2364
  key: "0"
2323
2365
  } : void 0
2324
2366
  ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2325
2367
  ], 2)
2326
- ], 8, Ko));
2368
+ ], 8, Qo));
2327
2369
  }
2328
2370
  });
2329
- const Zo = /* @__PURE__ */ V(Qo, [["__scopeId", "data-v-3ba17434"]]), Yo = /* @__PURE__ */ $({
2371
+ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-3ba17434"]]), Xo = /* @__PURE__ */ $({
2330
2372
  __name: "VJoyWrapper",
2331
2373
  props: {
2332
2374
  justify: {
@@ -2365,45 +2407,45 @@ const Zo = /* @__PURE__ */ V(Qo, [["__scopeId", "data-v-3ba17434"]]), Yo = /* @_
2365
2407
  ], 2));
2366
2408
  }
2367
2409
  });
2368
- const Xo = /* @__PURE__ */ V(Yo, [["__scopeId", "data-v-477e149b"]]), en = { class: "joy-template__wrapper" }, tn = {
2410
+ const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-477e149b"]]), tn = { class: "joy-template__wrapper" }, ln = {
2369
2411
  key: 0,
2370
2412
  class: "joy-template__heading"
2371
- }, ln = {
2413
+ }, on = {
2372
2414
  key: 0,
2373
2415
  class: "joy-template-slot-back"
2374
- }, on = { class: "joy-template__heading___headings" }, nn = {
2416
+ }, nn = { class: "joy-template__heading___headings" }, an = {
2375
2417
  key: 0,
2376
2418
  class: "joy-template-slot-title"
2377
- }, an = {
2419
+ }, rn = {
2378
2420
  key: 1,
2379
2421
  class: "joy-template-slot-subtitle"
2380
- }, rn = {
2422
+ }, sn = {
2381
2423
  key: 0,
2382
2424
  class: "joy-template-slot-main"
2383
- }, sn = {
2425
+ }, un = {
2384
2426
  key: 1,
2385
2427
  class: "joy-template-slot-sidebar"
2386
- }, un = /* @__PURE__ */ $({
2428
+ }, dn = /* @__PURE__ */ $({
2387
2429
  __name: "VJoyTemplate",
2388
2430
  props: {
2389
2431
  full: { type: Boolean, default: !1 },
2390
2432
  sidebar: { type: String, default: "right" }
2391
2433
  },
2392
2434
  setup(e) {
2393
- 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"]);
2394
2436
  return (n, r) => (m(), p("main", {
2395
2437
  class: k(["joy-template", { "joy-template--full": t.full }])
2396
2438
  }, [
2397
- h("div", en, [
2398
- _(o) ? (m(), p("div", tn, [
2399
- _(l)["template-back"] ? (m(), p("div", ln, [
2439
+ h("div", tn, [
2440
+ _(o) ? (m(), p("div", ln, [
2441
+ _(l)["template-back"] ? (m(), p("div", on, [
2400
2442
  g(n.$slots, "template-back", {}, void 0, !0)
2401
2443
  ])) : w("", !0),
2402
- h("div", on, [
2403
- _(l)["template-title"] ? (m(), p("div", nn, [
2444
+ h("div", nn, [
2445
+ _(l)["template-title"] ? (m(), p("div", an, [
2404
2446
  g(n.$slots, "template-title", {}, void 0, !0)
2405
2447
  ])) : w("", !0),
2406
- _(l)["template-subtitle"] ? (m(), p("div", an, [
2448
+ _(l)["template-subtitle"] ? (m(), p("div", rn, [
2407
2449
  g(n.$slots, "template-subtitle", {}, void 0, !0)
2408
2450
  ])) : w("", !0)
2409
2451
  ])
@@ -2416,10 +2458,10 @@ const Xo = /* @__PURE__ */ V(Yo, [["__scopeId", "data-v-477e149b"]]), en = { cla
2416
2458
  }
2417
2459
  ])
2418
2460
  }, [
2419
- n.$slots["template-main"] ? (m(), p("div", rn, [
2461
+ n.$slots["template-main"] ? (m(), p("div", sn, [
2420
2462
  g(n.$slots, "template-main", {}, void 0, !0)
2421
2463
  ])) : w("", !0),
2422
- n.$slots["template-sidebar"] ? (m(), p("div", sn, [
2464
+ n.$slots["template-sidebar"] ? (m(), p("div", un, [
2423
2465
  g(n.$slots, "template-sidebar", {}, void 0, !0)
2424
2466
  ])) : w("", !0)
2425
2467
  ], 2)
@@ -2427,15 +2469,15 @@ const Xo = /* @__PURE__ */ V(Yo, [["__scopeId", "data-v-477e149b"]]), en = { cla
2427
2469
  ], 2));
2428
2470
  }
2429
2471
  });
2430
- const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["aria-disabled"], fn = { class: "joy-textarea_wrapper" }, yn = ["id", "disabled", "name", "required", "minlength", "value"], vn = {
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 = {
2431
2473
  key: 0,
2432
2474
  class: "joy-textarea_helpers"
2433
- }, mn = {
2475
+ }, pn = {
2434
2476
  key: 0,
2435
2477
  name: "check",
2436
2478
  color: "grey",
2437
2479
  size: "xxsmall"
2438
- }, pn = /* @__PURE__ */ $({
2480
+ }, hn = /* @__PURE__ */ $({
2439
2481
  __name: "VJoyTextarea",
2440
2482
  props: {
2441
2483
  disabled: {
@@ -2486,7 +2528,7 @@ const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["ari
2486
2528
  setup(e, { expose: t, emit: l }) {
2487
2529
  const o = e, n = b(), { triggerResize: r } = tl({
2488
2530
  element: o.autogrow ? n : void 0
2489
- }), s = b(!1), a = b(!1), c = x(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = x(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
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 = {
2490
2532
  onInput: (v) => {
2491
2533
  l("update:modelValue", v.target.value), r();
2492
2534
  },
@@ -2519,14 +2561,14 @@ const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["ari
2519
2561
  "optional-label": e.optionalLabel,
2520
2562
  size: e.labelSize
2521
2563
  }, {
2522
- default: L(() => [
2564
+ default: B(() => [
2523
2565
  g(v.$slots, "default", {}, () => [
2524
- J(I(e.label), 1)
2566
+ J(L(e.label), 1)
2525
2567
  ], !0)
2526
2568
  ]),
2527
2569
  _: 3
2528
2570
  }, 8, ["for", "required", "optional-label", "size"]),
2529
- h("div", fn, [
2571
+ h("div", yn, [
2530
2572
  h("textarea", Q(v.$attrs, {
2531
2573
  id: e.id,
2532
2574
  ref_key: "textarea",
@@ -2543,25 +2585,25 @@ const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["ari
2543
2585
  (...y) => u.onFocus && u.onFocus(...y)),
2544
2586
  onBlur: i[2] || (i[2] = //@ts-ignore
2545
2587
  (...y) => u.onBlur && u.onBlur(...y))
2546
- }), null, 16, yn)
2588
+ }), null, 16, vn)
2547
2589
  ]),
2548
- e.minlength || e.maxlength ? (m(), p("div", vn, [
2590
+ e.minlength || e.maxlength ? (m(), p("div", mn, [
2549
2591
  e.minlength ? (m(), p("p", {
2550
2592
  key: 0,
2551
2593
  class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2552
2594
  }, [
2553
- _(f) ? w("", !0) : (m(), p("joy-icon", mn)),
2554
- 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)
2555
2597
  ], 2)) : w("", !0),
2556
2598
  e.maxlength ? (m(), p("p", {
2557
2599
  key: 1,
2558
2600
  class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
2559
- }, I(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2601
+ }, L(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2560
2602
  ])) : w("", !0)
2561
- ], 10, cn));
2603
+ ], 10, fn));
2562
2604
  }
2563
2605
  });
2564
- const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) => (te("data-v-cf79d999"), e = e(), le(), e), bn = { class: "joy-toggle__wrapper" }, gn = ["name", "disabled", "checked", "required", "aria-checked", "value"], _n = { class: "joy-toggle__content" }, wn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), Sn = { class: "joy-toggle__content-label" }, jn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
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" }, [
2565
2607
  /* @__PURE__ */ h("svg", {
2566
2608
  width: "18",
2567
2609
  height: "10",
@@ -2574,7 +2616,7 @@ const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2574
2616
  fill: "currentColor"
2575
2617
  })
2576
2618
  ])
2577
- ], -1)), kn = /* @__PURE__ */ $({
2619
+ ], -1)), $n = /* @__PURE__ */ $({
2578
2620
  __name: "VJoyToggle",
2579
2621
  props: {
2580
2622
  modelValue: {
@@ -2620,7 +2662,7 @@ const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2620
2662
  l.value = !1;
2621
2663
  }
2622
2664
  };
2623
- return (n, r) => (m(), p("div", bn, [
2665
+ return (n, r) => (m(), p("div", gn, [
2624
2666
  h("label", {
2625
2667
  class: k([
2626
2668
  "joy-toggle",
@@ -2648,77 +2690,77 @@ const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2648
2690
  (...s) => o.onFocus && o.onFocus(...s)),
2649
2691
  onBlur: r[2] || (r[2] = //@ts-ignore
2650
2692
  (...s) => o.onBlur && o.onBlur(...s))
2651
- }, null, 40, gn),
2652
- h("p", _n, [
2653
- wn,
2654
- h("span", Sn, [
2693
+ }, null, 40, _n),
2694
+ h("p", wn, [
2695
+ Sn,
2696
+ h("span", jn, [
2655
2697
  g(n.$slots, "default", {}, () => [
2656
- J(I(e.label), 1)
2698
+ J(L(e.label), 1)
2657
2699
  ], !0)
2658
2700
  ]),
2659
- jn
2701
+ kn
2660
2702
  ])
2661
2703
  ], 2)
2662
2704
  ]));
2663
2705
  }
2664
2706
  });
2665
- const $n = /* @__PURE__ */ V(kn, [["__scopeId", "data-v-cf79d999"]]), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2707
+ const Vn = /* @__PURE__ */ V($n, [["__scopeId", "data-v-cf79d999"]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2666
2708
  __proto__: null,
2667
2709
  VJoyBadge: ft,
2668
2710
  VJoyButton: kt,
2669
2711
  VJoyCheckbox: he,
2670
2712
  VJoyCounter: Rt,
2671
- VJoyDropdown: Dl,
2672
- VJoyDropdownList: Xe,
2673
- VJoyFormError: et,
2674
- VJoyHighlight: Zl,
2675
- VJoyInput: ro,
2713
+ VJoyDropdown: Rl,
2714
+ VJoyDropdownList: et,
2715
+ VJoyFormError: tt,
2716
+ VJoyHighlight: Yl,
2717
+ VJoyInput: so,
2676
2718
  VJoyLabel: N,
2677
- VJoyLink: yo,
2678
- VJoyMultiCheckbox: ho,
2679
- VJoyPanel: Vo,
2680
- VJoyPanelSection: Lo,
2681
- VJoyRadio: To,
2682
- VJoyRadioGroup: Fo,
2683
- VJoySelect: Ho,
2684
- VJoySelectableItem: tt,
2685
- VJoySelectableItemGroup: Zo,
2686
- VJoySpinner: He,
2687
- VJoyTemplate: dn,
2688
- VJoyTextarea: hn,
2689
- VJoyToggle: $n,
2690
- VJoyWrapper: Xo
2691
- }, Symbol.toStringTag, { value: "Module" })), On = {
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 = {
2692
2734
  install: (e) => {
2693
- Object.entries(Vn).forEach(([t, l]) => {
2735
+ Object.entries(xn).forEach(([t, l]) => {
2694
2736
  e.component(t, l);
2695
2737
  });
2696
2738
  }
2697
2739
  };
2698
2740
  export {
2699
- On as JoyVuePlugin,
2741
+ In as JoyVuePlugin,
2700
2742
  ft as VJoyBadge,
2701
2743
  kt as VJoyButton,
2702
2744
  he as VJoyCheckbox,
2703
2745
  Rt as VJoyCounter,
2704
- Dl as VJoyDropdown,
2705
- Xe as VJoyDropdownList,
2706
- et as VJoyFormError,
2707
- Zl as VJoyHighlight,
2708
- ro as VJoyInput,
2746
+ Rl as VJoyDropdown,
2747
+ et as VJoyDropdownList,
2748
+ tt as VJoyFormError,
2749
+ Yl as VJoyHighlight,
2750
+ so as VJoyInput,
2709
2751
  N as VJoyLabel,
2710
- yo as VJoyLink,
2711
- ho as VJoyMultiCheckbox,
2712
- Vo as VJoyPanel,
2713
- Lo as VJoyPanelSection,
2714
- To as VJoyRadio,
2715
- Fo as VJoyRadioGroup,
2716
- Ho as VJoySelect,
2717
- tt as VJoySelectableItem,
2718
- Zo as VJoySelectableItemGroup,
2719
- He as VJoySpinner,
2720
- dn as VJoyTemplate,
2721
- hn as VJoyTextarea,
2722
- $n as VJoyToggle,
2723
- Xo 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
2724
2766
  };