@maltjoy/core-vue 3.6.1 → 3.6.2

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,5 +1,5 @@
1
- import { defineComponent as $, openBlock as v, createElementBlock as p, normalizeClass as S, renderSlot as h, createTextVNode as C, toDisplayString as I, createElementVNode as b, useAttrs as Me, computed as L, createBlock as x, resolveDynamicComponent as ce, unref as w, withCtx as B, createCommentVNode as _, ref as g, createVNode as N, mergeProps as Y, getCurrentScope as ot, onScopeDispose as nt, getCurrentInstance as at, onMounted as X, nextTick as Ne, watch as J, h as it, reactive as te, onBeforeUnmount as He, normalizeStyle as Z, Fragment as fe, renderList as ye, normalizeProps as ve, guardReactiveProps as me, Teleport as rt, createSlots as We, useSlots as G, onBeforeMount as st, inject as ut, provide as dt, pushScopeId as ct, popScopeId as ft } from "vue";
2
- const yt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink", "dark-blue", "yellow"], vt = /* @__PURE__ */ $({
1
+ import { defineComponent as $, openBlock as v, createElementBlock as p, normalizeClass as S, renderSlot as h, createTextVNode as C, toDisplayString as I, createElementVNode as g, useAttrs as Me, computed as L, createBlock as x, resolveDynamicComponent as ce, unref as w, withCtx as B, createCommentVNode as _, ref as b, createVNode as N, mergeProps as Y, getCurrentScope as nt, onScopeDispose as at, getCurrentInstance as it, onMounted as X, nextTick as Ne, watch as J, h as rt, reactive as te, onBeforeUnmount as He, normalizeStyle as Z, Fragment as fe, renderList as ye, normalizeProps as ve, guardReactiveProps as me, Teleport as st, createSlots as We, useSlots as G, onBeforeMount as ut, inject as dt, provide as ct, pushScopeId as ft, popScopeId as yt } from "vue";
2
+ const vt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink", "dark-blue", "yellow"], mt = /* @__PURE__ */ $({
3
3
  __name: "VJoyBadge",
4
4
  props: {
5
5
  /**
@@ -22,7 +22,7 @@ const yt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
22
22
  variant: {
23
23
  type: String,
24
24
  validator(e) {
25
- return yt.includes(e);
25
+ return vt.includes(e);
26
26
  }
27
27
  }
28
28
  },
@@ -42,13 +42,13 @@ const V = (e, t) => {
42
42
  for (const [o, a] of t)
43
43
  l[o] = a;
44
44
  return l;
45
- }, mt = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-41907acc"]]), pt = ["teal", "white"], ht = /* @__PURE__ */ $({
45
+ }, pt = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-41907acc"]]), ht = ["teal", "white"], gt = /* @__PURE__ */ $({
46
46
  __name: "VJoySpinner",
47
47
  props: {
48
48
  color: {
49
49
  type: String,
50
50
  validator(e) {
51
- return pt.includes(e);
51
+ return ht.includes(e);
52
52
  }
53
53
  }
54
54
  },
@@ -58,7 +58,7 @@ const V = (e, t) => {
58
58
  }, null, 2));
59
59
  }
60
60
  });
61
- const pe = /* @__PURE__ */ V(ht, [["__scopeId", "data-v-616a29d0"]]), D = /* @__PURE__ */ $({
61
+ const pe = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-616a29d0"]]), R = /* @__PURE__ */ $({
62
62
  __name: "VJoyIcon",
63
63
  props: {
64
64
  name: {
@@ -78,13 +78,13 @@ const pe = /* @__PURE__ */ V(ht, [["__scopeId", "data-v-616a29d0"]]), D = /* @__
78
78
  return (t, l) => (v(), p("span", {
79
79
  class: S(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
80
80
  }, [
81
- b("i", {
81
+ g("i", {
82
82
  class: S(["icon", `icon-${e.name}`])
83
83
  }, null, 2)
84
84
  ], 2));
85
85
  }
86
86
  });
87
- const bt = ["primary", "secondary"], gt = ["neutral", "success", "info", "warning", "error"], _t = ["main", "admin", "ghost", "white"], wt = [...bt, ..._t], St = ["large", "medium", "small", "xsmall", "xxsmall"], jt = { class: "joy-button--slot" }, kt = /* @__PURE__ */ $({
87
+ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warning", "error"], wt = ["main", "admin", "ghost", "white"], St = [...bt, ...wt], jt = ["large", "medium", "small", "xsmall", "xxsmall"], kt = { class: "joy-button--slot" }, $t = /* @__PURE__ */ $({
88
88
  __name: "VJoyButton",
89
89
  props: {
90
90
  /**
@@ -120,7 +120,7 @@ const bt = ["primary", "secondary"], gt = ["neutral", "success", "info", "warnin
120
120
  type: String,
121
121
  default: "primary",
122
122
  validator(e) {
123
- return wt.includes(e);
123
+ return St.includes(e);
124
124
  }
125
125
  },
126
126
  /** Button or Link size */
@@ -128,7 +128,7 @@ const bt = ["primary", "secondary"], gt = ["neutral", "success", "info", "warnin
128
128
  type: String,
129
129
  default: "medium",
130
130
  validator(e) {
131
- return St.includes(e);
131
+ return jt.includes(e);
132
132
  }
133
133
  }
134
134
  },
@@ -159,7 +159,7 @@ const bt = ["primary", "secondary"], gt = ["neutral", "success", "info", "warnin
159
159
  ])
160
160
  }, {
161
161
  default: B(() => [
162
- e.icon && e.iconPosition === "left" ? (v(), x(D, {
162
+ e.icon && e.iconPosition === "left" ? (v(), x(R, {
163
163
  key: 0,
164
164
  class: "joy-button_icon joy-button_icon--left",
165
165
  name: e.icon,
@@ -169,12 +169,12 @@ const bt = ["primary", "secondary"], gt = ["neutral", "success", "info", "warnin
169
169
  key: 1,
170
170
  color: w(a)
171
171
  }, null, 8, ["color"])) : _("", !0),
172
- b("span", jt, [
172
+ g("span", kt, [
173
173
  h(r.$slots, "default", {}, () => [
174
174
  C(I(e.label), 1)
175
175
  ], !0)
176
176
  ]),
177
- e.icon && e.iconPosition === "right" ? (v(), x(D, {
177
+ e.icon && e.iconPosition === "right" ? (v(), x(R, {
178
178
  key: 2,
179
179
  class: "joy-button_icon joy-button_icon--right",
180
180
  name: e.icon,
@@ -185,7 +185,7 @@ const bt = ["primary", "secondary"], gt = ["neutral", "success", "info", "warnin
185
185
  }, 8, ["disabled", "type", "class"]));
186
186
  }
187
187
  });
188
- const $t = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["aria-checked", "aria-hidden"], xt = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, Bt = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ $({
188
+ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["aria-checked", "aria-hidden"], xt = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, Bt = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ $({
189
189
  __name: "VJoyCheckbox",
190
190
  props: {
191
191
  /** 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 */
@@ -233,7 +233,7 @@ const $t = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
233
233
  },
234
234
  emits: ["update:checked", "focus", "blur"],
235
235
  setup(e, { expose: t, emit: l }) {
236
- const o = e, a = g(), r = g(o.indeterminate), s = g(!1), n = {
236
+ const o = e, a = b(), r = b(o.indeterminate), s = b(!1), n = {
237
237
  onChange: (f) => {
238
238
  const c = f.target.checked;
239
239
  r.value = !1, l("update:checked", c);
@@ -252,7 +252,7 @@ const $t = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
252
252
  "aria-checked": e.checked,
253
253
  "aria-hidden": e.disabled
254
254
  }, [
255
- b("label", {
255
+ g("label", {
256
256
  class: S([
257
257
  "joy-checkbox",
258
258
  {
@@ -263,8 +263,8 @@ const $t = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
263
263
  }
264
264
  ])
265
265
  }, [
266
- b("div", xt, [
267
- b("input", {
266
+ g("div", xt, [
267
+ g("input", {
268
268
  id: e.id,
269
269
  ref_key: "input",
270
270
  ref: a,
@@ -286,11 +286,11 @@ const $t = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
286
286
  (...u) => n.onBlur && n.onBlur(...u))
287
287
  }, null, 40, It)
288
288
  ]),
289
- b("div", Ot, [
289
+ g("div", Ot, [
290
290
  h(f.$slots, "default", {}, () => [
291
291
  C(I(e.label), 1)
292
292
  ], !0),
293
- b("div", Bt, [
293
+ g("div", Bt, [
294
294
  h(f.$slots, "checkbox-content", {}, void 0, !0)
295
295
  ])
296
296
  ])
@@ -371,7 +371,7 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
371
371
  },
372
372
  emits: ["update:modelValue"],
373
373
  setup(e, { expose: t, emit: l }) {
374
- const o = e, a = g(!1), r = g(!1);
374
+ const o = e, a = b(!1), r = b(!1);
375
375
  function s() {
376
376
  const d = c(!1);
377
377
  d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), f();
@@ -424,20 +424,20 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
424
424
  ]),
425
425
  _: 3
426
426
  }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
427
- b("div", {
427
+ g("div", {
428
428
  class: S(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
429
429
  }, [
430
- b("button", {
430
+ g("button", {
431
431
  class: "joy-counter__decrement",
432
432
  type: "button",
433
433
  "aria-label": e.labelDecrement,
434
434
  disabled: e.modelValue <= e.min,
435
435
  onClick: s
436
436
  }, [
437
- N(w(D), { name: "minus" })
437
+ N(w(R), { name: "minus" })
438
438
  ], 8, Ct),
439
- b("div", Jt, [
440
- b("input", Y({
439
+ g("div", Jt, [
440
+ g("input", Y({
441
441
  id: e.id,
442
442
  ref: "input",
443
443
  type: "number",
@@ -458,17 +458,17 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
458
458
  (...j) => y.onFocus && y.onFocus(...j))
459
459
  }), null, 16, Pt)
460
460
  ]),
461
- b("button", {
461
+ g("button", {
462
462
  class: "joy-counter__increment",
463
463
  type: "button",
464
464
  "aria-label": e.labelIncrement,
465
465
  disabled: e.max ? e.modelValue >= e.max : !1,
466
466
  onClick: n
467
467
  }, [
468
- N(w(D), { name: "add" })
468
+ N(w(R), { name: "add" })
469
469
  ], 8, Tt),
470
470
  e.invalid && e.errorMessage ? (v(), p("div", qt, [
471
- N(w(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
471
+ N(w(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
472
472
  ])) : _("", !0)
473
473
  ], 2)
474
474
  ]));
@@ -476,12 +476,12 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
476
476
  });
477
477
  const Ft = /* @__PURE__ */ V(At, [["__scopeId", "data-v-a59ac0ad"]]);
478
478
  var we;
479
- const K = typeof window < "u", Ue = (e) => typeof e == "string", z = () => {
479
+ const K = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
480
480
  }, le = K && ((we = window == null ? void 0 : window.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
481
481
  function P(e) {
482
482
  return typeof e == "function" ? e() : w(e);
483
483
  }
484
- function Ge(e, t) {
484
+ function Ke(e, t) {
485
485
  function l(...o) {
486
486
  return new Promise((a, r) => {
487
487
  Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(a).catch(r);
@@ -528,32 +528,32 @@ function Mt(e) {
528
528
  return e;
529
529
  }
530
530
  function Q(e) {
531
- return ot() ? (nt(e), !0) : !1;
531
+ return nt() ? (at(e), !0) : !1;
532
532
  }
533
533
  function Nt(e, t = 200, l = {}) {
534
- return Ge(Dt(t, l), e);
534
+ return Ke(Dt(t, l), e);
535
535
  }
536
536
  function Ht(e, t = 200, l = !1, o = !0, a = !1) {
537
- return Ge(Rt(t, l, o, a), e);
537
+ return Ke(Rt(t, l, o, a), e);
538
538
  }
539
539
  function Wt(e) {
540
- return typeof e == "function" ? L(e) : g(e);
540
+ return typeof e == "function" ? L(e) : b(e);
541
541
  }
542
- function Ke(e, t = !0) {
543
- at() ? X(e) : t ? e() : Ne(e);
542
+ function Qe(e, t = !0) {
543
+ it() ? X(e) : t ? e() : Ne(e);
544
544
  }
545
545
  function U(e) {
546
546
  var t;
547
547
  const l = P(e);
548
548
  return (t = l == null ? void 0 : l.$el) != null ? t : l;
549
549
  }
550
- const be = K ? window : void 0;
550
+ const ge = K ? window : void 0;
551
551
  K && window.document;
552
552
  K && window.navigator;
553
553
  K && window.location;
554
554
  function ae(...e) {
555
555
  let t, l, o, a;
556
- if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = be) : [t, l, o, a] = e, !t)
556
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = ge) : [t, l, o, a] = e, !t)
557
557
  return z;
558
558
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
559
559
  const r = [], s = () => {
@@ -567,7 +567,7 @@ function ae(...e) {
567
567
  }
568
568
  let Se = !1;
569
569
  function Ut(e, t, l = {}) {
570
- const { window: o = be, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = l;
570
+ const { window: o = ge, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = l;
571
571
  if (!o)
572
572
  return;
573
573
  le && !Se && (Se = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
@@ -603,8 +603,8 @@ function Ut(e, t, l = {}) {
603
603
  return () => u.forEach((i) => i());
604
604
  }
605
605
  function Gt(e, t = !1) {
606
- const l = g(), o = () => l.value = Boolean(e());
607
- return o(), Ke(o, t), l;
606
+ const l = b(), o = () => l.value = Boolean(e());
607
+ return o(), Qe(o, t), l;
608
608
  }
609
609
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
610
610
  ie[re] = ie[re] || {};
@@ -619,7 +619,7 @@ var je = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, Qt
619
619
  return l;
620
620
  };
621
621
  function Yt(e, t, l = {}) {
622
- const o = l, { window: a = be } = o, r = Zt(o, ["window"]);
622
+ const o = l, { window: a = ge } = o, r = Zt(o, ["window"]);
623
623
  let s;
624
624
  const n = Gt(() => a && "ResizeObserver" in a), f = () => {
625
625
  s && (s.disconnect(), s = void 0);
@@ -638,7 +638,7 @@ var ke;
638
638
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
639
639
  })(ke || (ke = {}));
640
640
  function Xt(e) {
641
- const t = g(e == null ? void 0 : e.element), l = g(e == null ? void 0 : e.input);
641
+ const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
642
642
  function o() {
643
643
  var a, r;
644
644
  t.value && (t.value.style.height = "1px", t.value.style.height = `${(a = t.value) == null ? void 0 : a.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
@@ -691,12 +691,12 @@ const al = /* @__PURE__ */ $({
691
691
  props: ["as", "options"],
692
692
  emits: ["trigger"],
693
693
  setup(e, { slots: t, emit: l }) {
694
- const o = g();
694
+ const o = b();
695
695
  return Ut(o, (a) => {
696
696
  l("trigger", a);
697
697
  }, e.options), () => {
698
698
  if (t.default)
699
- return it(e.as || "div", { ref: o }, t.default());
699
+ return rt(e.as || "div", { ref: o }, t.default());
700
700
  };
701
701
  }
702
702
  });
@@ -708,7 +708,7 @@ function T(e) {
708
708
  const H = K ? window : void 0;
709
709
  function A(...e) {
710
710
  let t, l, o, a;
711
- if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = H) : [t, l, o, a] = e, !t)
711
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = H) : [t, l, o, a] = e, !t)
712
712
  return z;
713
713
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
714
714
  const r = [], s = () => {
@@ -798,12 +798,12 @@ M.mounted + "";
798
798
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
799
799
  se[ue] = se[ue] || {};
800
800
  se[ue];
801
- function Qe(e, t = !1) {
802
- const l = g(), o = () => l.value = Boolean(e());
803
- return o(), Ke(o, t), l;
801
+ function Ze(e, t = !1) {
802
+ const l = b(), o = () => l.value = Boolean(e());
803
+ return o(), Qe(o, t), l;
804
804
  }
805
805
  function fl(e, t = {}) {
806
- const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, a = g(!1);
806
+ const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, a = b(!1);
807
807
  let r;
808
808
  const s = (n) => {
809
809
  const f = n ? l : o;
@@ -824,7 +824,7 @@ var Ce = Object.getOwnPropertySymbols, yl = Object.prototype.hasOwnProperty, vl
824
824
  function pl(e, t, l = {}) {
825
825
  const o = l, { window: a = H } = o, r = ml(o, ["window"]);
826
826
  let s;
827
- const n = Qe(() => a && "ResizeObserver" in a), f = () => {
827
+ const n = Ze(() => a && "ResizeObserver" in a), f = () => {
828
828
  s && (s.disconnect(), s = void 0);
829
829
  }, c = J(() => T(e), (m) => {
830
830
  f(), n.value && a && m && (s = new ResizeObserver(t), s.observe(m, r));
@@ -840,7 +840,7 @@ function hl(e, t = { width: 0, height: 0 }, l = {}) {
840
840
  const { window: o = H, box: a = "content-box" } = l, r = L(() => {
841
841
  var f, c;
842
842
  return (c = (f = T(e)) == null ? void 0 : f.namespaceURI) == null ? void 0 : c.includes("svg");
843
- }), s = g(t.width), n = g(t.height);
843
+ }), s = b(t.width), n = b(t.height);
844
844
  return pl(e, ([f]) => {
845
845
  const c = a === "border-box" ? f.borderBoxSize : a === "content-box" ? f.contentBoxSize : f.devicePixelContentBoxSize;
846
846
  if (o && r.value) {
@@ -863,7 +863,7 @@ function hl(e, t = { width: 0, height: 0 }, l = {}) {
863
863
  }
864
864
  M.mounted + "";
865
865
  function Je(e, { window: t = H, scrollTarget: l } = {}) {
866
- const o = g(!1), a = () => {
866
+ const o = b(!1), a = () => {
867
867
  if (!t)
868
868
  return;
869
869
  const r = t.document, s = T(e);
@@ -898,7 +898,7 @@ function de(e, t = {}) {
898
898
  passive: !0
899
899
  },
900
900
  behavior: f = "auto"
901
- } = t, c = g(0), u = g(0), m = L({
901
+ } = t, c = b(0), u = b(0), m = L({
902
902
  get() {
903
903
  return c.value;
904
904
  },
@@ -914,15 +914,15 @@ function de(e, t = {}) {
914
914
  }
915
915
  });
916
916
  function y(E, q) {
917
- var R, F, _e;
917
+ var D, F, _e;
918
918
  const ne = P(e);
919
919
  ne && ((_e = ne instanceof Document ? document.body : ne) == null || _e.scrollTo({
920
- top: (R = P(q)) != null ? R : i.value,
920
+ top: (D = P(q)) != null ? D : i.value,
921
921
  left: (F = P(E)) != null ? F : m.value,
922
922
  behavior: P(f)
923
923
  }));
924
924
  }
925
- const d = g(!1), k = te({
925
+ const d = b(!1), k = te({
926
926
  left: !0,
927
927
  right: !1,
928
928
  top: !0,
@@ -935,8 +935,8 @@ function de(e, t = {}) {
935
935
  }), ee = (E) => {
936
936
  d.value && (d.value = !1, j.left = !1, j.right = !1, j.top = !1, j.bottom = !1, a(E));
937
937
  }, oe = Nt(ee, l + o), O = (E) => {
938
- const q = E.target === document ? E.target.documentElement : E.target, R = q.scrollLeft;
939
- j.left = R < c.value, j.right = R > u.value, k.left = R <= 0 + (s.left || 0), k.right = R + q.clientWidth >= q.scrollWidth - (s.right || 0) - Pe, c.value = R;
938
+ const q = E.target === document ? E.target.documentElement : E.target, D = q.scrollLeft;
939
+ j.left = D < c.value, j.right = D > u.value, k.left = D <= 0 + (s.left || 0), k.right = D + q.clientWidth >= q.scrollWidth - (s.right || 0) - Pe, c.value = D;
940
940
  let F = q.scrollTop;
941
941
  E.target === document && !F && (F = document.body.scrollTop), j.top = F < u.value, j.bottom = F > u.value, k.top = F <= 0 + (s.top || 0), k.bottom = F + q.clientHeight >= q.scrollHeight - (s.bottom || 0) - Pe, u.value = F, d.value = !0, oe(E), r(E);
942
942
  };
@@ -948,14 +948,14 @@ function de(e, t = {}) {
948
948
  directions: j
949
949
  };
950
950
  }
951
- var bl = Object.defineProperty, gl = Object.defineProperties, _l = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, wl = Object.prototype.hasOwnProperty, Sl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? bl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, ze = (e, t) => {
951
+ var gl = Object.defineProperty, bl = Object.defineProperties, _l = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, wl = Object.prototype.hasOwnProperty, Sl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? gl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, ze = (e, t) => {
952
952
  for (var l in t || (t = {}))
953
953
  wl.call(t, l) && qe(e, l, t[l]);
954
954
  if (Te)
955
955
  for (var l of Te(t))
956
956
  Sl.call(t, l) && qe(e, l, t[l]);
957
957
  return e;
958
- }, jl = (e, t) => gl(e, _l(t));
958
+ }, jl = (e, t) => bl(e, _l(t));
959
959
  function Ae(e, t, l = {}) {
960
960
  var o, a;
961
961
  const r = (o = l.direction) != null ? o : "bottom", s = te(de(e, jl(ze({}, l), {
@@ -986,7 +986,7 @@ function Fe(e, t, l = {}) {
986
986
  rootMargin: a = "0px",
987
987
  threshold: r = 0.1,
988
988
  window: s = H
989
- } = l, n = Qe(() => s && "IntersectionObserver" in s);
989
+ } = l, n = Ze(() => s && "IntersectionObserver" in s);
990
990
  let f = z;
991
991
  const c = n.value ? J(() => ({
992
992
  el: T(e),
@@ -1020,21 +1020,21 @@ var kl = Object.defineProperty, $l = Object.defineProperties, Vl = Object.getOwn
1020
1020
  return e;
1021
1021
  }, Bl = (e, t) => $l(e, Vl(t));
1022
1022
  M.mounted + "";
1023
- function Ze(e) {
1023
+ function Ye(e) {
1024
1024
  const t = window.getComputedStyle(e);
1025
1025
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1026
1026
  return !0;
1027
1027
  {
1028
1028
  const l = e.parentNode;
1029
- return !l || l.tagName === "BODY" ? !1 : Ze(l);
1029
+ return !l || l.tagName === "BODY" ? !1 : Ye(l);
1030
1030
  }
1031
1031
  }
1032
1032
  function Ll(e) {
1033
1033
  const t = e || window.event, l = t.target;
1034
- return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1034
+ return Ye(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1035
1035
  }
1036
1036
  function El(e, t = !1) {
1037
- const l = g(t);
1037
+ const l = b(t);
1038
1038
  let o = null, a;
1039
1039
  J(Wt(e), (n) => {
1040
1040
  if (n) {
@@ -1064,7 +1064,7 @@ function El(e, t = !1) {
1064
1064
  }
1065
1065
  const Cl = () => {
1066
1066
  let e = !1;
1067
- const t = g(!1);
1067
+ const t = b(!1);
1068
1068
  return (l, o) => {
1069
1069
  if (t.value = o.value, e)
1070
1070
  return;
@@ -1074,7 +1074,7 @@ const Cl = () => {
1074
1074
  };
1075
1075
  };
1076
1076
  Cl();
1077
- const Ye = ["medium", "small"], Jl = {
1077
+ const Xe = ["medium", "small"], Jl = {
1078
1078
  key: 0,
1079
1079
  class: "joy-dropdown-list__header"
1080
1080
  }, Pl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Tl = {
@@ -1099,7 +1099,7 @@ const Ye = ["medium", "small"], Jl = {
1099
1099
  type: String,
1100
1100
  default: "medium",
1101
1101
  validator(e) {
1102
- return Ye.includes(e);
1102
+ return Xe.includes(e);
1103
1103
  }
1104
1104
  },
1105
1105
  modelValue: {
@@ -1116,7 +1116,7 @@ const Ye = ["medium", "small"], Jl = {
1116
1116
  },
1117
1117
  emits: ["update:modelValue", "close:dropdownList"],
1118
1118
  setup(e, { expose: t, emit: l }) {
1119
- const o = e, a = g(), r = L(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1119
+ const o = e, a = b(), r = L(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1120
1120
  function s(i) {
1121
1121
  i.disabled || l("update:modelValue", i.value || i.id);
1122
1122
  }
@@ -1168,7 +1168,7 @@ const Ye = ["medium", "small"], Jl = {
1168
1168
  i.$slots["dropdown-list-header"] ? (v(), p("header", Jl, [
1169
1169
  h(i.$slots, "dropdown-list-header", {}, void 0, !0)
1170
1170
  ])) : _("", !0),
1171
- b("div", {
1171
+ g("div", {
1172
1172
  class: S(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1173
1173
  style: Z({ "max-height": `${e.height}px` })
1174
1174
  }, [
@@ -1201,7 +1201,7 @@ const Ye = ["medium", "small"], Jl = {
1201
1201
  onClick: (k) => s(d)
1202
1202
  }, [
1203
1203
  h(i.$slots, "label", ve(me(d)), () => [
1204
- b("span", null, I(d.label), 1)
1204
+ g("span", null, I(d.label), 1)
1205
1205
  ], !0)
1206
1206
  ], 14, Pl))), 128))
1207
1207
  ], 512)) : _("", !0)
@@ -1212,7 +1212,7 @@ const Ye = ["medium", "small"], Jl = {
1212
1212
  ], 4));
1213
1213
  }
1214
1214
  });
1215
- const Xe = /* @__PURE__ */ V(ql, [["__scopeId", "data-v-1085f269"]]);
1215
+ const et = /* @__PURE__ */ V(ql, [["__scopeId", "data-v-1085f269"]]);
1216
1216
  function zl(e) {
1217
1217
  const t = () => e();
1218
1218
  X(() => {
@@ -1269,7 +1269,7 @@ const Al = /* @__PURE__ */ $({
1269
1269
  type: String,
1270
1270
  default: "medium",
1271
1271
  validator(e) {
1272
- return Ye.includes(e);
1272
+ return Xe.includes(e);
1273
1273
  }
1274
1274
  },
1275
1275
  modelValue: {
@@ -1300,7 +1300,7 @@ const Al = /* @__PURE__ */ $({
1300
1300
  },
1301
1301
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1302
1302
  setup(e, { expose: t, emit: l }) {
1303
- const o = e, a = g(!1), r = g(null), s = g(), n = g(null), f = g(null), c = g(!1), u = {
1303
+ const o = e, a = b(!1), r = b(null), s = b(), n = b(null), f = b(null), c = b(!1), u = {
1304
1304
  ignore: [s, ".joy-dropdown__list"]
1305
1305
  };
1306
1306
  let m = null;
@@ -1324,8 +1324,8 @@ const Al = /* @__PURE__ */ $({
1324
1324
  f.value && f.value.focus();
1325
1325
  }
1326
1326
  function ee() {
1327
- const O = s.value.getBoundingClientRect(), E = document.documentElement.scrollTop + O.top, q = O.height, R = O.left, F = O.width;
1328
- o.justify === "left" ? i.left = R + "px" : i.left = R + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = E + q + parseInt(o.dropdownGap) + "px" : i.top = E - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1327
+ const O = s.value.getBoundingClientRect(), E = document.documentElement.scrollTop + O.top, q = O.height, D = O.left, F = O.width;
1328
+ o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = E + q + parseInt(o.dropdownGap) + "px" : i.top = E - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1329
1329
  }
1330
1330
  function oe(O) {
1331
1331
  l("update:modelValue", O), o.closeOnSelect && (y(), j());
@@ -1340,7 +1340,7 @@ const Al = /* @__PURE__ */ $({
1340
1340
  onTrigger: y
1341
1341
  }, {
1342
1342
  default: B(() => [
1343
- b("div", {
1343
+ g("div", {
1344
1344
  ref_key: "button",
1345
1345
  ref: s,
1346
1346
  class: "joy-dropdown__button",
@@ -1348,7 +1348,7 @@ const Al = /* @__PURE__ */ $({
1348
1348
  }, [
1349
1349
  h(O.$slots, "dropdown-button", {}, void 0, !0)
1350
1350
  ], 512),
1351
- (v(), x(rt, {
1351
+ (v(), x(st, {
1352
1352
  to: e.appendTo,
1353
1353
  disabled: e.disableTeleport
1354
1354
  }, [
@@ -1369,7 +1369,7 @@ const Al = /* @__PURE__ */ $({
1369
1369
  left: i.left
1370
1370
  })
1371
1371
  }, [
1372
- N(Xe, {
1372
+ N(et, {
1373
1373
  "model-value": e.modelValue,
1374
1374
  options: e.options,
1375
1375
  size: e.size,
@@ -1380,7 +1380,7 @@ const Al = /* @__PURE__ */ $({
1380
1380
  }, We({
1381
1381
  label: B((q) => [
1382
1382
  h(O.$slots, "dropdown-item", ve(me(q)), () => [
1383
- b("span", null, I(q.label), 1)
1383
+ g("span", null, I(q.label), 1)
1384
1384
  ], !0)
1385
1385
  ]),
1386
1386
  _: 2
@@ -1431,11 +1431,11 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-2657fbc4"]]), Dl = ["ari
1431
1431
  class: S(["joy-form-error", { "joy-has-error": e.visible }]),
1432
1432
  role: "alert"
1433
1433
  }, [
1434
- N(D, {
1434
+ N(R, {
1435
1435
  class: "joy-icon-error",
1436
1436
  name: "warning-triangle"
1437
1437
  }),
1438
- b("div", null, [
1438
+ g("div", null, [
1439
1439
  h(t.$slots, "default", {}, () => [
1440
1440
  C(I(e.noHtmlErrorText), 1)
1441
1441
  ], !0)
@@ -1443,7 +1443,7 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-2657fbc4"]]), Dl = ["ari
1443
1443
  ], 10, Dl));
1444
1444
  }
1445
1445
  });
1446
- const et = /* @__PURE__ */ V(Rl, [["__scopeId", "data-v-581fd33b"]]);
1446
+ const tt = /* @__PURE__ */ V(Rl, [["__scopeId", "data-v-581fd33b"]]);
1447
1447
  function Ml(e) {
1448
1448
  let t;
1449
1449
  switch (e) {
@@ -1458,7 +1458,7 @@ function Ml(e) {
1458
1458
  }
1459
1459
  return t;
1460
1460
  }
1461
- const Nl = [...gt], Hl = { class: "joy-highlight--text" }, Wl = /* @__PURE__ */ $({
1461
+ const Nl = [..._t], Hl = { class: "joy-highlight--text" }, Wl = { key: 0 }, Ul = /* @__PURE__ */ $({
1462
1462
  __name: "VJoyHighlight",
1463
1463
  props: {
1464
1464
  accent: {
@@ -1494,33 +1494,33 @@ const Nl = [...gt], Hl = { class: "joy-highlight--text" }, Wl = /* @__PURE__ */
1494
1494
  }
1495
1495
  ])
1496
1496
  }, [
1497
- e.displayIcon ? (v(), x(D, {
1497
+ e.displayIcon ? (v(), x(R, {
1498
1498
  key: 0,
1499
1499
  name: w(o)
1500
1500
  }, null, 8, ["name"])) : _("", !0),
1501
- b("div", Hl, [
1502
- b("strong", null, [
1501
+ g("div", Hl, [
1502
+ a.$slots["highlight-title"] ? (v(), p("strong", Wl, [
1503
1503
  h(a.$slots, "highlight-title", {}, void 0, !0)
1504
- ]),
1504
+ ])) : _("", !0),
1505
1505
  h(a.$slots, "default", {}, void 0, !0)
1506
1506
  ])
1507
1507
  ], 2));
1508
1508
  }
1509
1509
  });
1510
- const Ul = /* @__PURE__ */ V(Wl, [["__scopeId", "data-v-aac4eb8a"]]), Gl = ["small", "medium", "large"], Kl = {
1510
+ const Gl = /* @__PURE__ */ V(Ul, [["__scopeId", "data-v-ba5e6101"]]), Kl = ["small", "medium", "large"], Ql = {
1511
1511
  key: 0,
1512
1512
  class: "joy-label-required"
1513
- }, Ql = {
1513
+ }, Zl = {
1514
1514
  key: 1,
1515
1515
  class: "joy-label-optional"
1516
- }, Zl = /* @__PURE__ */ $({
1516
+ }, Yl = /* @__PURE__ */ $({
1517
1517
  __name: "VJoyLabel",
1518
1518
  props: {
1519
1519
  size: {
1520
1520
  type: String,
1521
1521
  default: "medium",
1522
1522
  validator(e) {
1523
- return Gl.includes(e);
1523
+ return Kl.includes(e);
1524
1524
  }
1525
1525
  },
1526
1526
  tagName: {
@@ -1544,17 +1544,17 @@ const Ul = /* @__PURE__ */ V(Wl, [["__scopeId", "data-v-aac4eb8a"]]), Gl = ["sma
1544
1544
  h(t.$slots, "default", {}, () => [
1545
1545
  C(I(e.text), 1)
1546
1546
  ], !0),
1547
- e.required ? (v(), p("span", Kl, "*")) : _("", !0),
1548
- e.optionalLabel ? (v(), p("span", Ql, "- " + I(e.optionalLabel), 1)) : _("", !0)
1547
+ e.required ? (v(), p("span", Ql, "*")) : _("", !0),
1548
+ e.optionalLabel ? (v(), p("span", Zl, "- " + I(e.optionalLabel), 1)) : _("", !0)
1549
1549
  ]),
1550
1550
  _: 3
1551
1551
  }, 16, ["class"]));
1552
1552
  }
1553
1553
  });
1554
- const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["large", "medium", "small"], Xl = ["id", "disabled", "type", "value"], eo = ["data-unit"], to = {
1554
+ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["large", "medium", "small"], eo = ["id", "disabled", "type", "value"], to = ["data-unit"], lo = {
1555
1555
  inheritAttrs: !1
1556
- }, lo = /* @__PURE__ */ $({
1557
- ...to,
1556
+ }, oo = /* @__PURE__ */ $({
1557
+ ...lo,
1558
1558
  __name: "VJoyInput",
1559
1559
  props: {
1560
1560
  disabled: {
@@ -1606,7 +1606,7 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1606
1606
  type: String,
1607
1607
  default: "medium",
1608
1608
  validator(e) {
1609
- return Yl.includes(e);
1609
+ return Xl.includes(e);
1610
1610
  }
1611
1611
  },
1612
1612
  type: String,
@@ -1615,11 +1615,11 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1615
1615
  },
1616
1616
  emits: ["update:modelValue"],
1617
1617
  setup(e, { emit: t }) {
1618
- const l = e, o = g(), a = g(), r = Me(), s = G(), n = g(!1), f = L(() => typeof l.modelValue == "number" || !l.clearable || l.unit || !l.modelValue ? !1 : l.modelValue.length > 0 && !l.unit), c = L(() => s.default && s.default()), u = L(() => {
1618
+ const l = e, o = b(), a = b(), r = Me(), s = G(), n = b(!1), f = L(() => typeof l.modelValue == "number" || !l.clearable || l.unit || !l.modelValue ? !1 : l.modelValue.length > 0 && !l.unit), c = L(() => s.default && s.default()), u = L(() => {
1619
1619
  var y, d;
1620
1620
  return !!((y = a.value) != null && y.closest("joy-wrapper")) || !!((d = a.value) != null && d.closest(".joy-wrapper"));
1621
- }), m = g(l.type);
1622
- st(() => {
1621
+ }), m = b(l.type);
1622
+ ut(() => {
1623
1623
  m.value = l.unit ? "number" : l.unit || "text";
1624
1624
  });
1625
1625
  const i = {
@@ -1642,7 +1642,7 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1642
1642
  ref: a,
1643
1643
  class: S([`joy-input--${l.size}`])
1644
1644
  }, [
1645
- b("div", {
1645
+ g("div", {
1646
1646
  class: S([
1647
1647
  "joy-input",
1648
1648
  {
@@ -1667,7 +1667,7 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1667
1667
  ]),
1668
1668
  _: 3
1669
1669
  }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
1670
- b("div", {
1670
+ g("div", {
1671
1671
  class: S([
1672
1672
  "joy-input--wrapper",
1673
1673
  {
@@ -1678,7 +1678,7 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1678
1678
  }
1679
1679
  ])
1680
1680
  }, [
1681
- b("input", Y(y.$attrs, {
1681
+ g("input", Y(y.$attrs, {
1682
1682
  id: l.name,
1683
1683
  ref_key: "input",
1684
1684
  ref: o,
@@ -1697,15 +1697,17 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1697
1697
  (...k) => i.onBlur && i.onBlur(...k)),
1698
1698
  onInput: d[2] || (d[2] = //@ts-ignore
1699
1699
  (...k) => i.onInput && i.onInput(...k))
1700
- }), null, 16, Xl),
1701
- w(f) ? (v(), x(D, {
1700
+ }), null, 16, eo),
1701
+ w(f) ? (v(), x(Ue, {
1702
1702
  key: 0,
1703
- size: "xxsmall",
1704
- name: "cross",
1705
1703
  class: "joy-input--clear",
1704
+ circle: "",
1705
+ variant: "ghost",
1706
+ size: "xxsmall",
1707
+ icon: "cross",
1706
1708
  onClick: i.clearValue
1707
1709
  }, null, 8, ["onClick"])) : _("", !0),
1708
- e.icon && !e.clearable ? (v(), x(D, {
1710
+ e.icon && !e.clearable ? (v(), x(R, {
1709
1711
  key: 1,
1710
1712
  role: "img",
1711
1713
  class: "joy-input--decorative-icon",
@@ -1715,13 +1717,13 @@ const W = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-1265214a"]]), Yl = ["larg
1715
1717
  key: 2,
1716
1718
  "data-unit": e.unit,
1717
1719
  class: "joy-input--unit"
1718
- }, null, 8, eo)) : _("", !0)
1720
+ }, null, 8, to)) : _("", !0)
1719
1721
  ], 2)
1720
1722
  ], 2)
1721
1723
  ], 2));
1722
1724
  }
1723
1725
  });
1724
- const oo = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-b6f3034b"]]), no = ["teal", "white"], ao = ["href"], io = /* @__PURE__ */ $({
1726
+ const no = /* @__PURE__ */ V(oo, [["__scopeId", "data-v-c37d9a7a"]]), ao = ["teal", "white"], io = ["href"], ro = /* @__PURE__ */ $({
1725
1727
  __name: "VJoyLink",
1726
1728
  props: {
1727
1729
  href: {
@@ -1732,7 +1734,7 @@ const oo = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-b6f3034b"]]), no = ["tea
1732
1734
  type: String,
1733
1735
  default: "teal",
1734
1736
  validator(e) {
1735
- return no.includes(e);
1737
+ return ao.includes(e);
1736
1738
  }
1737
1739
  },
1738
1740
  icon: {
@@ -1744,19 +1746,19 @@ const oo = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-b6f3034b"]]), no = ["tea
1744
1746
  return (t, l) => (v(), p("a", Y({ href: e.href }, t.$attrs, {
1745
1747
  class: ["joy-link", `joy-link_${e.color}`]
1746
1748
  }), [
1747
- e.icon ? (v(), x(D, {
1749
+ e.icon ? (v(), x(R, {
1748
1750
  key: 0,
1749
1751
  name: e.icon
1750
1752
  }, null, 8, ["name"])) : _("", !0),
1751
1753
  h(t.$slots, "default", {}, () => [
1752
1754
  C(I(e.text), 1)
1753
1755
  ], !0)
1754
- ], 16, ao));
1756
+ ], 16, io));
1755
1757
  }
1756
1758
  });
1757
- const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-a8db21c2"]]), so = ["id"], uo = {
1759
+ const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-a8db21c2"]]), uo = ["id"], co = {
1758
1760
  class: /* @__PURE__ */ S(["joy-multi-checkbox"])
1759
- }, co = /* @__PURE__ */ $({
1761
+ }, fo = /* @__PURE__ */ $({
1760
1762
  __name: "VJoyMultiCheckbox",
1761
1763
  props: {
1762
1764
  options: {
@@ -1815,7 +1817,7 @@ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-a8db21c2"]]), so = ["id"
1815
1817
  ]),
1816
1818
  _: 1
1817
1819
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
1818
- b("div", uo, [
1820
+ g("div", co, [
1819
1821
  (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(w(he), {
1820
1822
  id: n.id,
1821
1823
  key: n.id,
@@ -1832,22 +1834,22 @@ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-a8db21c2"]]), so = ["id"
1832
1834
  _: 2
1833
1835
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1834
1836
  ])
1835
- ], 8, so));
1837
+ ], 8, uo));
1836
1838
  }
1837
1839
  });
1838
- const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["small", "medium", "large"], vo = ["small", "large"], mo = {
1840
+ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-47574ced"]]), vo = ["small", "medium", "large"], mo = ["small", "large"], po = {
1839
1841
  key: 0,
1840
1842
  class: /* @__PURE__ */ S(["joy-panel__header"])
1841
- }, po = {
1843
+ }, ho = {
1842
1844
  key: 1,
1843
1845
  class: "joy-panel__header-action"
1844
- }, ho = {
1846
+ }, go = {
1845
1847
  key: 2,
1846
1848
  class: "joy-panel__header-subtitle"
1847
- }, bo = { class: "joy-panel__body" }, go = {
1849
+ }, bo = { class: "joy-panel__body" }, _o = {
1848
1850
  key: 1,
1849
1851
  class: "joy-panel__footer"
1850
- }, _o = /* @__PURE__ */ $({
1852
+ }, wo = /* @__PURE__ */ $({
1851
1853
  __name: "VJoyPanel",
1852
1854
  props: {
1853
1855
  flex: {
@@ -1861,14 +1863,14 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1861
1863
  type: String,
1862
1864
  default: "medium",
1863
1865
  validator(e) {
1864
- return yo.includes(e);
1866
+ return vo.includes(e);
1865
1867
  }
1866
1868
  },
1867
1869
  titleSize: {
1868
1870
  type: String,
1869
1871
  default: "large",
1870
1872
  validator(e) {
1871
- return vo.includes(e);
1873
+ return mo.includes(e);
1872
1874
  }
1873
1875
  },
1874
1876
  loading: {
@@ -1881,7 +1883,7 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1881
1883
  }
1882
1884
  },
1883
1885
  setup(e) {
1884
- const t = ut("VJoyWrapperContext", {}), l = L(() => Object.keys(t).length > 0), o = G(), a = g(), r = L(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1886
+ const t = dt("VJoyWrapperContext", {}), l = L(() => Object.keys(t).length > 0), o = G(), a = b(), r = L(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1885
1887
  return (s, n) => (v(), p("section", {
1886
1888
  ref_key: "panel",
1887
1889
  ref: a,
@@ -1895,27 +1897,27 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1895
1897
  }
1896
1898
  ])
1897
1899
  }, [
1898
- w(r) ? (v(), p("header", mo, [
1900
+ w(r) ? (v(), p("header", po, [
1899
1901
  w(o)["panel-title"] ? (v(), p("div", {
1900
1902
  key: 0,
1901
1903
  class: S(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1902
1904
  }, [
1903
1905
  h(s.$slots, "panel-title", {}, void 0, !0)
1904
1906
  ], 2)) : _("", !0),
1905
- w(o)["panel-title-action"] ? (v(), p("div", po, [
1907
+ w(o)["panel-title-action"] ? (v(), p("div", ho, [
1906
1908
  h(s.$slots, "panel-title-action", {}, void 0, !0)
1907
1909
  ])) : _("", !0),
1908
- w(o)["panel-subtitle"] ? (v(), p("div", ho, [
1910
+ w(o)["panel-subtitle"] ? (v(), p("div", go, [
1909
1911
  h(s.$slots, "panel-subtitle", {}, void 0, !0)
1910
1912
  ])) : _("", !0)
1911
1913
  ])) : _("", !0),
1912
- b("div", bo, [
1914
+ g("div", bo, [
1913
1915
  h(s.$slots, "panel-body", {}, void 0, !0)
1914
1916
  ]),
1915
- w(o)["panel-action"] ? (v(), p("footer", go, [
1917
+ w(o)["panel-action"] ? (v(), p("footer", _o, [
1916
1918
  h(s.$slots, "panel-action", {}, void 0, !0)
1917
1919
  ])) : _("", !0),
1918
- e.loading ? (v(), x(w(ge), {
1920
+ e.loading ? (v(), x(w(be), {
1919
1921
  key: 2,
1920
1922
  overlay: "",
1921
1923
  color: e.loadingColor
@@ -1928,27 +1930,27 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1928
1930
  ], 6));
1929
1931
  }
1930
1932
  });
1931
- const wo = /* @__PURE__ */ V(_o, [["__scopeId", "data-v-2e3a2baa"]]), So = { class: "joy-panel-section" }, jo = {
1933
+ const So = /* @__PURE__ */ V(wo, [["__scopeId", "data-v-2e3a2baa"]]), jo = { class: "joy-panel-section" }, ko = {
1932
1934
  key: 0,
1933
1935
  class: "joy-panel-section__title"
1934
- }, ko = {
1936
+ }, $o = {
1935
1937
  key: 1,
1936
1938
  class: "joy-panel-section__content"
1937
- }, $o = /* @__PURE__ */ $({
1939
+ }, Vo = /* @__PURE__ */ $({
1938
1940
  __name: "VJoyPanelSection",
1939
1941
  setup(e) {
1940
1942
  const t = G();
1941
- return (l, o) => (v(), p("div", So, [
1942
- w(t)["panel-section-title"] ? (v(), p("div", jo, [
1943
+ return (l, o) => (v(), p("div", jo, [
1944
+ w(t)["panel-section-title"] ? (v(), p("div", ko, [
1943
1945
  h(l.$slots, "panel-section-title", {}, void 0, !0)
1944
1946
  ])) : _("", !0),
1945
- w(t)["panel-section-content"] ? (v(), p("div", ko, [
1947
+ w(t)["panel-section-content"] ? (v(), p("div", $o, [
1946
1948
  h(l.$slots, "panel-section-content", {}, void 0, !0)
1947
1949
  ])) : _("", !0)
1948
1950
  ]));
1949
1951
  }
1950
1952
  });
1951
- const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id", "value", "checked", "disabled", "required", "name"], Io = { class: "joy-radio-label" }, Oo = { class: "joy-radio-content__wrapper" }, Bo = { class: "joy-radio-content" }, Lo = /* @__PURE__ */ $({
1953
+ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id", "value", "checked", "disabled", "required", "name"], Oo = { class: "joy-radio-label" }, Bo = { class: "joy-radio-content__wrapper" }, Lo = { class: "joy-radio-content" }, Eo = /* @__PURE__ */ $({
1952
1954
  __name: "VJoyRadio",
1953
1955
  props: {
1954
1956
  disabled: {
@@ -1984,7 +1986,7 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
1984
1986
  },
1985
1987
  emits: ["update:modelValue"],
1986
1988
  setup(e, { expose: t, emit: l }) {
1987
- const o = e, a = g(!1), r = g(!1), s = g(null), n = g(null), f = G(), c = L(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1989
+ const o = e, a = b(!1), r = b(!1), s = b(null), n = b(null), f = G(), c = L(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1988
1990
  function u() {
1989
1991
  a.value = !!f["expandable-content"] && c.value;
1990
1992
  }
@@ -2023,7 +2025,7 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
2023
2025
  }
2024
2026
  ])
2025
2027
  }, [
2026
- b("input", {
2028
+ g("input", {
2027
2029
  id: e.id,
2028
2030
  type: "radio",
2029
2031
  value: e.value,
@@ -2034,15 +2036,15 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
2034
2036
  onChange: m,
2035
2037
  onFocus: i,
2036
2038
  onBlur: y
2037
- }, null, 40, xo),
2038
- b("span", Io, [
2039
+ }, null, 40, Io),
2040
+ g("span", Oo, [
2039
2041
  h(d.$slots, "default", {}, void 0, !0)
2040
2042
  ]),
2041
- b("div", Oo, [
2042
- b("div", Bo, [
2043
+ g("div", Bo, [
2044
+ g("div", Lo, [
2043
2045
  h(d.$slots, "radio-content", {}, void 0, !0)
2044
2046
  ]),
2045
- b("div", {
2047
+ g("div", {
2046
2048
  ref_key: "expandableElement",
2047
2049
  ref: n,
2048
2050
  class: S(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
@@ -2053,13 +2055,19 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
2053
2055
  ], 2));
2054
2056
  }
2055
2057
  });
2056
- const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-24cea99b"]]), Co = ["form", "name"], Jo = /* @__PURE__ */ $({
2058
+ const Co = /* @__PURE__ */ V(Eo, [["__scopeId", "data-v-24cea99b"]]), Jo = ["form", "name"], Po = /* @__PURE__ */ $({
2057
2059
  __name: "VJoyRadioGroup",
2058
2060
  props: {
2061
+ /**
2062
+ * Change the layout
2063
+ */
2059
2064
  direction: {
2060
2065
  type: String,
2061
2066
  default: "horizontal"
2062
2067
  },
2068
+ /**
2069
+ * Applied to the generated fieldset. Can bind a form ID to your component if you can't include it into the form itself.
2070
+ */
2063
2071
  form: {
2064
2072
  type: String
2065
2073
  },
@@ -2076,18 +2084,18 @@ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-24cea99b"]]), Co = ["for
2076
2084
  name: e.name
2077
2085
  }, [
2078
2086
  h(t.$slots, "radio-group-legend", {}, void 0, !0),
2079
- b("div", {
2087
+ g("div", {
2080
2088
  class: S(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2081
2089
  }, [
2082
2090
  h(t.$slots, "default", {}, void 0, !0)
2083
2091
  ], 2)
2084
- ], 8, Co));
2092
+ ], 8, Jo));
2085
2093
  }
2086
2094
  });
2087
- const Po = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-ace1a80f"]]), To = { class: "joy-screen-loader__content" }, qo = {
2095
+ const To = /* @__PURE__ */ V(Po, [["__scopeId", "data-v-a77e7f95"]]), qo = { class: "joy-screen-loader__content" }, zo = {
2088
2096
  key: 0,
2089
2097
  class: "joy-screen-loader__content"
2090
- }, zo = /* @__PURE__ */ $({
2098
+ }, Ao = /* @__PURE__ */ $({
2091
2099
  __name: "VJoyScreenLoader",
2092
2100
  props: {
2093
2101
  /** Light or dark. Changes the spinner and background color */
@@ -2105,20 +2113,20 @@ const Po = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-ace1a80f"]]), To = { cla
2105
2113
  return (t, l) => (v(), p("div", {
2106
2114
  class: S(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2107
2115
  }, [
2108
- b("div", To, [
2116
+ g("div", qo, [
2109
2117
  h(t.$slots, "spinner", {}, () => [
2110
2118
  N(pe, {
2111
2119
  color: e.color === "dark" ? "white" : "teal"
2112
2120
  }, null, 8, ["color"])
2113
2121
  ], !0),
2114
- t.$slots.content ? (v(), p("div", qo, [
2122
+ t.$slots.content ? (v(), p("div", zo, [
2115
2123
  h(t.$slots, "content", {}, void 0, !0)
2116
2124
  ])) : _("", !0)
2117
2125
  ])
2118
2126
  ], 2));
2119
2127
  }
2120
2128
  });
2121
- const ge = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id", "name", "aria-invalid", "required", "disabled", "value"], Fo = /* @__PURE__ */ $({
2129
+ const be = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-5c4f6d7f"]]), Fo = ["id", "name", "aria-invalid", "required", "disabled", "value"], Do = /* @__PURE__ */ $({
2122
2130
  __name: "VJoySelect",
2123
2131
  props: {
2124
2132
  disabled: {
@@ -2159,7 +2167,7 @@ const ge = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2159
2167
  },
2160
2168
  emits: ["update:modelValue"],
2161
2169
  setup(e, { emit: t }) {
2162
- const l = e, o = g(), a = g(), r = G(), s = g(!1);
2170
+ const l = e, o = b(), a = b(), r = G(), s = b(!1);
2163
2171
  X(() => {
2164
2172
  var i;
2165
2173
  const u = r.label && r.label();
@@ -2203,7 +2211,7 @@ const ge = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2203
2211
  _: 1
2204
2212
  }, 8, ["required", "optional-label", "for", "size"])) : _("", !0)
2205
2213
  ], !0),
2206
- b("div", {
2214
+ g("div", {
2207
2215
  class: S({
2208
2216
  "joy-select__wrapper": !0,
2209
2217
  "joy-select--invalid": e.invalid,
@@ -2211,7 +2219,7 @@ const ge = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2211
2219
  "joy-select--focusing": s.value
2212
2220
  })
2213
2221
  }, [
2214
- b("select", {
2222
+ g("select", {
2215
2223
  id: e.id || e.name,
2216
2224
  ref_key: "select",
2217
2225
  ref: a,
@@ -2226,8 +2234,8 @@ const ge = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2226
2234
  onBlur: c
2227
2235
  }, [
2228
2236
  h(u.$slots, "default", {}, void 0, !0)
2229
- ], 40, Ao),
2230
- N(D, {
2237
+ ], 40, Fo),
2238
+ N(R, {
2231
2239
  class: "joy-select__chevron",
2232
2240
  name: "chevron-down"
2233
2241
  })
@@ -2235,7 +2243,7 @@ const ge = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2235
2243
  ], 512));
2236
2244
  }
2237
2245
  });
2238
- const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-b1af08d1"]]), Ro = ["aria-disabled"], Mo = ["id", "value", "checked", "disabled", "required", "name"], No = /* @__PURE__ */ $({
2246
+ const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["aria-disabled"], No = ["id", "value", "checked", "disabled", "required", "name"], Ho = /* @__PURE__ */ $({
2239
2247
  __name: "VJoySelectableItem",
2240
2248
  props: {
2241
2249
  disabled: {
@@ -2272,7 +2280,7 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-b1af08d1"]]), Ro = ["ari
2272
2280
  },
2273
2281
  emits: ["update:checked"],
2274
2282
  setup(e, { emit: t }) {
2275
- const l = e, o = g(l.checked), a = g(), r = g(!1), s = l.multiple ? "div" : "label", n = {
2283
+ const l = e, o = b(l.checked), a = b(), r = b(!1), s = l.multiple ? "div" : "label", n = {
2276
2284
  onRadioChange: () => {
2277
2285
  t("update:checked", l.value);
2278
2286
  },
@@ -2320,7 +2328,7 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-b1af08d1"]]), Ro = ["ari
2320
2328
  (...m) => n.onFocus && n.onFocus(...m)),
2321
2329
  onBlur: u[2] || (u[2] = //@ts-ignore
2322
2330
  (...m) => n.onBlur && n.onBlur(...m))
2323
- }, null, 40, Mo)),
2331
+ }, null, 40, No)),
2324
2332
  (v(), x(ce(w(s)), {
2325
2333
  for: e.id,
2326
2334
  class: S([
@@ -2357,7 +2365,7 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-b1af08d1"]]), Ro = ["ari
2357
2365
  _: 3
2358
2366
  }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : _("", !0),
2359
2367
  e.multiple ? _("", !0) : h(c.$slots, "default", { key: 1 }, void 0, !0),
2360
- b("div", {
2368
+ g("div", {
2361
2369
  class: S([{ "joy-selectable-item__sublabel": c.$slots["selectable-item-sublabel"] }])
2362
2370
  }, [
2363
2371
  h(c.$slots, "selectable-item-sublabel", {}, void 0, !0)
@@ -2365,10 +2373,10 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-b1af08d1"]]), Ro = ["ari
2365
2373
  ]),
2366
2374
  _: 3
2367
2375
  }, 8, ["for", "class", "onClick"]))
2368
- ], 10, Ro));
2376
+ ], 10, Mo));
2369
2377
  }
2370
2378
  });
2371
- const tt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"], Wo = /* @__PURE__ */ $({
2379
+ const lt = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-cb2531c0"]]), Wo = ["id"], Uo = /* @__PURE__ */ $({
2372
2380
  __name: "VJoySelectableItemGroup",
2373
2381
  props: {
2374
2382
  options: {
@@ -2435,7 +2443,7 @@ const tt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"
2435
2443
  ]),
2436
2444
  _: 1
2437
2445
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
2438
- b("div", {
2446
+ g("div", {
2439
2447
  class: S([
2440
2448
  "joy-selectable-item-group",
2441
2449
  {
@@ -2445,10 +2453,11 @@ const tt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"
2445
2453
  }
2446
2454
  ])
2447
2455
  }, [
2448
- (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(w(tt), {
2456
+ (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(w(lt), {
2449
2457
  id: n.id,
2450
2458
  key: n.id,
2451
2459
  name: n.name,
2460
+ disabled: n.disabled,
2452
2461
  value: n.value,
2453
2462
  multiple: e.multiple,
2454
2463
  checked: o(n),
@@ -2466,12 +2475,12 @@ const tt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"
2466
2475
  ]),
2467
2476
  key: "0"
2468
2477
  } : void 0
2469
- ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2478
+ ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2470
2479
  ], 2)
2471
- ], 8, Ho));
2480
+ ], 8, Wo));
2472
2481
  }
2473
2482
  });
2474
- const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-3ba17434"]]), Go = /* @__PURE__ */ $({
2483
+ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-0730aed0"]]), Ko = /* @__PURE__ */ $({
2475
2484
  __name: "VJoyWrapper",
2476
2485
  props: {
2477
2486
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2505,7 +2514,7 @@ const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-3ba17434"]]), Go = /* @_
2505
2514
  }
2506
2515
  },
2507
2516
  setup(e) {
2508
- return dt("VJoyWrapperContext", e), (l, o) => (v(), p("div", {
2517
+ return ct("VJoyWrapperContext", e), (l, o) => (v(), p("div", {
2509
2518
  class: S([
2510
2519
  "joy-wrapper",
2511
2520
  `joy-wrapper--justify-${e.justify}`,
@@ -2520,28 +2529,28 @@ const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-3ba17434"]]), Go = /* @_
2520
2529
  ], 2));
2521
2530
  }
2522
2531
  });
2523
- const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { class: "joy-template__wrapper" }, Zo = {
2532
+ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-e2f29698"]]), Zo = { class: "joy-template__wrapper" }, Yo = {
2524
2533
  key: 0,
2525
2534
  class: "joy-template__heading"
2526
- }, Yo = {
2535
+ }, Xo = {
2527
2536
  key: 0,
2528
2537
  class: "joy-template-slot-back"
2529
- }, Xo = { class: "joy-template__heading___headings" }, en = {
2538
+ }, en = { class: "joy-template__heading___headings" }, tn = {
2530
2539
  key: 0,
2531
2540
  class: "joy-template-slot-title"
2532
- }, tn = {
2541
+ }, ln = {
2533
2542
  key: 1,
2534
2543
  class: "joy-template-slot-subtitle"
2535
- }, ln = {
2544
+ }, on = {
2536
2545
  key: 1,
2537
2546
  class: "joy-template-slot-actions"
2538
- }, on = {
2547
+ }, nn = {
2539
2548
  key: 0,
2540
2549
  class: "joy-template-slot-main"
2541
- }, nn = {
2550
+ }, an = {
2542
2551
  key: 1,
2543
2552
  class: "joy-template-slot-sidebar"
2544
- }, an = /* @__PURE__ */ $({
2553
+ }, rn = /* @__PURE__ */ $({
2545
2554
  __name: "VJoyTemplate",
2546
2555
  props: {
2547
2556
  full: { type: Boolean, default: !1 },
@@ -2560,24 +2569,24 @@ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { cla
2560
2569
  return (a, r) => (v(), p("main", {
2561
2570
  class: S(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
2562
2571
  }, [
2563
- b("div", Qo, [
2564
- w(o) ? (v(), p("div", Zo, [
2565
- w(l)["template-back"] ? (v(), p("div", Yo, [
2572
+ g("div", Zo, [
2573
+ w(o) ? (v(), p("div", Yo, [
2574
+ w(l)["template-back"] ? (v(), p("div", Xo, [
2566
2575
  h(a.$slots, "template-back", {}, void 0, !0)
2567
2576
  ])) : _("", !0),
2568
- b("div", Xo, [
2569
- w(l)["template-title"] ? (v(), p("div", en, [
2577
+ g("div", en, [
2578
+ w(l)["template-title"] ? (v(), p("div", tn, [
2570
2579
  h(a.$slots, "template-title", {}, void 0, !0)
2571
2580
  ])) : _("", !0),
2572
- w(l)["template-subtitle"] ? (v(), p("div", tn, [
2581
+ w(l)["template-subtitle"] ? (v(), p("div", ln, [
2573
2582
  h(a.$slots, "template-subtitle", {}, void 0, !0)
2574
2583
  ])) : _("", !0)
2575
2584
  ]),
2576
- w(l)["template-actions"] ? (v(), p("div", ln, [
2585
+ w(l)["template-actions"] ? (v(), p("div", on, [
2577
2586
  h(a.$slots, "template-actions", {}, void 0, !0)
2578
2587
  ])) : _("", !0)
2579
2588
  ])) : _("", !0),
2580
- b("div", {
2589
+ g("div", {
2581
2590
  class: S([
2582
2591
  "joy-template__content",
2583
2592
  {
@@ -2585,15 +2594,15 @@ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { cla
2585
2594
  }
2586
2595
  ])
2587
2596
  }, [
2588
- a.$slots["template-main"] ? (v(), p("div", on, [
2597
+ a.$slots["template-main"] ? (v(), p("div", nn, [
2589
2598
  h(a.$slots, "template-main", {}, void 0, !0)
2590
2599
  ])) : _("", !0),
2591
- a.$slots["template-sidebar"] ? (v(), p("div", nn, [
2600
+ a.$slots["template-sidebar"] ? (v(), p("div", an, [
2592
2601
  h(a.$slots, "template-sidebar", {}, void 0, !0)
2593
2602
  ])) : _("", !0)
2594
2603
  ], 2)
2595
2604
  ]),
2596
- e.loading ? (v(), x(ge, {
2605
+ e.loading ? (v(), x(be, {
2597
2606
  key: 0,
2598
2607
  overlay: "",
2599
2608
  color: e.loadingColor
@@ -2606,13 +2615,13 @@ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { cla
2606
2615
  ], 2));
2607
2616
  }
2608
2617
  });
2609
- const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["aria-disabled"], un = { class: "joy-textarea_wrapper" }, dn = ["id", "disabled", "name", "required", "minlength", "value"], cn = {
2618
+ const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["aria-disabled"], dn = { class: "joy-textarea_wrapper" }, cn = ["id", "disabled", "name", "required", "minlength", "value"], fn = {
2610
2619
  key: 0,
2611
2620
  class: "joy-textarea_helpers"
2612
- }, fn = {
2621
+ }, yn = {
2613
2622
  inheritAttrs: !1
2614
- }, yn = /* @__PURE__ */ $({
2615
- ...fn,
2623
+ }, vn = /* @__PURE__ */ $({
2624
+ ...yn,
2616
2625
  __name: "VJoyTextarea",
2617
2626
  props: {
2618
2627
  disabled: {
@@ -2661,9 +2670,9 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2661
2670
  },
2662
2671
  emits: ["update:modelValue"],
2663
2672
  setup(e, { expose: t, emit: l }) {
2664
- const o = e, a = g(), { triggerResize: r } = Xt({
2673
+ const o = e, a = b(), { triggerResize: r } = Xt({
2665
2674
  element: o.autogrow ? a : void 0
2666
- }), s = g(!1), n = g(!1), f = L(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), c = L(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2675
+ }), s = b(!1), n = b(!1), f = L(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), c = L(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2667
2676
  onInput: (m) => {
2668
2677
  l("update:modelValue", m.target.value), r();
2669
2678
  },
@@ -2703,8 +2712,8 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2703
2712
  ]),
2704
2713
  _: 3
2705
2714
  }, 8, ["for", "required", "optional-label", "size"]),
2706
- b("div", un, [
2707
- b("textarea", Y(m.$attrs, {
2715
+ g("div", dn, [
2716
+ g("textarea", Y(m.$attrs, {
2708
2717
  id: e.id,
2709
2718
  ref_key: "textarea",
2710
2719
  ref: a,
@@ -2720,14 +2729,14 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2720
2729
  (...y) => u.onFocus && u.onFocus(...y)),
2721
2730
  onBlur: i[2] || (i[2] = //@ts-ignore
2722
2731
  (...y) => u.onBlur && u.onBlur(...y))
2723
- }), null, 16, dn)
2732
+ }), null, 16, cn)
2724
2733
  ]),
2725
- e.minlength || e.maxlength ? (v(), p("div", cn, [
2734
+ e.minlength || e.maxlength ? (v(), p("div", fn, [
2726
2735
  e.minlength ? (v(), p("p", {
2727
2736
  key: 0,
2728
2737
  class: S(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2729
2738
  }, [
2730
- w(c) ? _("", !0) : (v(), x(D, {
2739
+ w(c) ? _("", !0) : (v(), x(R, {
2731
2740
  key: 0,
2732
2741
  name: "check",
2733
2742
  color: "neutral",
@@ -2740,23 +2749,23 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2740
2749
  class: S(["joy-textarea-count", { "joy-textarea-count-invalid": w(f) }])
2741
2750
  }, I(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
2742
2751
  ])) : _("", !0)
2743
- ], 10, sn));
2752
+ ], 10, un));
2744
2753
  }
2745
2754
  });
2746
- const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), lt = (e) => (ct("data-v-cf79d999"), e = e(), ft(), e), mn = { class: "joy-toggle__wrapper" }, pn = ["name", "disabled", "checked", "required", "aria-checked", "value"], hn = { class: "joy-toggle__content" }, bn = /* @__PURE__ */ lt(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), gn = { class: "joy-toggle__content-label" }, _n = /* @__PURE__ */ lt(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
2747
- /* @__PURE__ */ b("svg", {
2755
+ const mn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) => (ft("data-v-cf79d999"), e = e(), yt(), e), pn = { class: "joy-toggle__wrapper" }, hn = ["name", "disabled", "checked", "required", "aria-checked", "value"], gn = { class: "joy-toggle__content" }, bn = /* @__PURE__ */ ot(() => /* @__PURE__ */ g("span", { class: "joy-toggle__symbol" }, null, -1)), _n = { class: "joy-toggle__content-label" }, wn = /* @__PURE__ */ ot(() => /* @__PURE__ */ g("span", { class: "joy-toggle__smile" }, [
2756
+ /* @__PURE__ */ g("svg", {
2748
2757
  width: "18",
2749
2758
  height: "10",
2750
2759
  viewBox: "0 0 18 10",
2751
2760
  fill: "currentColor",
2752
2761
  xmlns: "http://www.w3.org/2000/svg"
2753
2762
  }, [
2754
- /* @__PURE__ */ b("path", {
2763
+ /* @__PURE__ */ g("path", {
2755
2764
  d: "M9.0237 9.14856C15.7144 9.14856 17.8736 2.22231 17.9649 1.91853L17.9345 1.94891C18.1778 1.15908 17.7216 0.308485 16.9309 0.0654591C16.1402 -0.177566 15.2886 0.278108 15.0453 1.06794C14.9845 1.25021 13.5551 6.11073 8.99328 6.11073C4.43147 6.11073 3.03249 1.43248 2.97167 1.21983C2.75878 0.399622 1.90724 -0.0560541 1.11652 0.156593C0.295397 0.369241 -0.160787 1.18945 0.0520982 2.00967C0.721165 4.4703 3.48869 9.14856 9.0237 9.14856Z",
2756
2765
  fill: "currentColor"
2757
2766
  })
2758
2767
  ])
2759
- ], -1)), wn = /* @__PURE__ */ $({
2768
+ ], -1)), Sn = /* @__PURE__ */ $({
2760
2769
  __name: "VJoyToggle",
2761
2770
  props: {
2762
2771
  modelValue: {
@@ -2790,7 +2799,7 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), lt = (e) =
2790
2799
  },
2791
2800
  emits: ["update:modelValue"],
2792
2801
  setup(e, { emit: t }) {
2793
- const l = g(!1), o = {
2802
+ const l = b(!1), o = {
2794
2803
  onChange: (a) => {
2795
2804
  const r = a.target.checked;
2796
2805
  t("update:modelValue", r);
@@ -2802,8 +2811,8 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), lt = (e) =
2802
2811
  l.value = !1;
2803
2812
  }
2804
2813
  };
2805
- return (a, r) => (v(), p("div", mn, [
2806
- b("label", {
2814
+ return (a, r) => (v(), p("div", pn, [
2815
+ g("label", {
2807
2816
  class: S([
2808
2817
  "joy-toggle",
2809
2818
  {
@@ -2813,7 +2822,7 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), lt = (e) =
2813
2822
  }
2814
2823
  ])
2815
2824
  }, [
2816
- b("input", {
2825
+ g("input", {
2817
2826
  ref: "input",
2818
2827
  type: "checkbox",
2819
2828
  class: "joy-toggle__input",
@@ -2830,81 +2839,81 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), lt = (e) =
2830
2839
  (...s) => o.onFocus && o.onFocus(...s)),
2831
2840
  onBlur: r[2] || (r[2] = //@ts-ignore
2832
2841
  (...s) => o.onBlur && o.onBlur(...s))
2833
- }, null, 40, pn),
2834
- b("p", hn, [
2842
+ }, null, 40, hn),
2843
+ g("p", gn, [
2835
2844
  bn,
2836
- b("span", gn, [
2845
+ g("span", _n, [
2837
2846
  h(a.$slots, "default", {}, () => [
2838
2847
  C(I(e.label), 1)
2839
2848
  ], !0)
2840
2849
  ]),
2841
- _n
2850
+ wn
2842
2851
  ])
2843
2852
  ], 2)
2844
2853
  ]));
2845
2854
  }
2846
2855
  });
2847
- const Sn = /* @__PURE__ */ V(wn, [["__scopeId", "data-v-cf79d999"]]), jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2856
+ const jn = /* @__PURE__ */ V(Sn, [["__scopeId", "data-v-cf79d999"]]), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2848
2857
  __proto__: null,
2849
- VJoyBadge: mt,
2850
- VJoyButton: $t,
2858
+ VJoyBadge: pt,
2859
+ VJoyButton: Ue,
2851
2860
  VJoyCheckbox: he,
2852
2861
  VJoyCounter: Ft,
2853
2862
  VJoyDropdown: Fl,
2854
- VJoyDropdownList: Xe,
2855
- VJoyFormError: et,
2856
- VJoyHighlight: Ul,
2857
- VJoyIcon: D,
2858
- VJoyInput: oo,
2863
+ VJoyDropdownList: et,
2864
+ VJoyFormError: tt,
2865
+ VJoyHighlight: Gl,
2866
+ VJoyIcon: R,
2867
+ VJoyInput: no,
2859
2868
  VJoyLabel: W,
2860
- VJoyLink: ro,
2861
- VJoyMultiCheckbox: fo,
2862
- VJoyPanel: wo,
2863
- VJoyPanelSection: Vo,
2864
- VJoyRadio: Eo,
2865
- VJoyRadioGroup: Po,
2866
- VJoyScreenLoader: ge,
2867
- VJoySelect: Do,
2868
- VJoySelectableItem: tt,
2869
- VJoySelectableItemGroup: Uo,
2869
+ VJoyLink: so,
2870
+ VJoyMultiCheckbox: yo,
2871
+ VJoyPanel: So,
2872
+ VJoyPanelSection: xo,
2873
+ VJoyRadio: Co,
2874
+ VJoyRadioGroup: To,
2875
+ VJoyScreenLoader: be,
2876
+ VJoySelect: Ro,
2877
+ VJoySelectableItem: lt,
2878
+ VJoySelectableItemGroup: Go,
2870
2879
  VJoySpinner: pe,
2871
- VJoyTemplate: rn,
2872
- VJoyTextarea: vn,
2873
- VJoyToggle: Sn,
2874
- VJoyWrapper: Ko
2875
- }, Symbol.toStringTag, { value: "Module" })), $n = {
2880
+ VJoyTemplate: sn,
2881
+ VJoyTextarea: mn,
2882
+ VJoyToggle: jn,
2883
+ VJoyWrapper: Qo
2884
+ }, Symbol.toStringTag, { value: "Module" })), Vn = {
2876
2885
  install: (e) => {
2877
- Object.entries(jn).forEach(([t, l]) => {
2886
+ Object.entries(kn).forEach(([t, l]) => {
2878
2887
  e.component(t, l);
2879
2888
  });
2880
2889
  }
2881
2890
  };
2882
2891
  export {
2883
- $n as JoyVuePlugin,
2884
- mt as VJoyBadge,
2885
- $t as VJoyButton,
2892
+ Vn as JoyVuePlugin,
2893
+ pt as VJoyBadge,
2894
+ Ue as VJoyButton,
2886
2895
  he as VJoyCheckbox,
2887
2896
  Ft as VJoyCounter,
2888
2897
  Fl as VJoyDropdown,
2889
- Xe as VJoyDropdownList,
2890
- et as VJoyFormError,
2891
- Ul as VJoyHighlight,
2892
- D as VJoyIcon,
2893
- oo as VJoyInput,
2898
+ et as VJoyDropdownList,
2899
+ tt as VJoyFormError,
2900
+ Gl as VJoyHighlight,
2901
+ R as VJoyIcon,
2902
+ no as VJoyInput,
2894
2903
  W as VJoyLabel,
2895
- ro as VJoyLink,
2896
- fo as VJoyMultiCheckbox,
2897
- wo as VJoyPanel,
2898
- Vo as VJoyPanelSection,
2899
- Eo as VJoyRadio,
2900
- Po as VJoyRadioGroup,
2901
- ge as VJoyScreenLoader,
2902
- Do as VJoySelect,
2903
- tt as VJoySelectableItem,
2904
- Uo as VJoySelectableItemGroup,
2904
+ so as VJoyLink,
2905
+ yo as VJoyMultiCheckbox,
2906
+ So as VJoyPanel,
2907
+ xo as VJoyPanelSection,
2908
+ Co as VJoyRadio,
2909
+ To as VJoyRadioGroup,
2910
+ be as VJoyScreenLoader,
2911
+ Ro as VJoySelect,
2912
+ lt as VJoySelectableItem,
2913
+ Go as VJoySelectableItemGroup,
2905
2914
  pe as VJoySpinner,
2906
- rn as VJoyTemplate,
2907
- vn as VJoyTextarea,
2908
- Sn as VJoyToggle,
2909
- Ko as VJoyWrapper
2915
+ sn as VJoyTemplate,
2916
+ mn as VJoyTextarea,
2917
+ jn as VJoyToggle,
2918
+ Qo as VJoyWrapper
2910
2919
  };