@maltjoy/core-vue 3.4.3 → 3.5.0

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.
Files changed (28) hide show
  1. package/dist/components/JoyButton/JoyButton.types.d.ts +1 -1
  2. package/dist/components/JoyButton/VJoyButton.vue.d.ts +10 -6
  3. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +1 -1
  4. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +1 -1
  5. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
  6. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +10 -6
  7. package/dist/components/JoyIcon/JoyIcon.types.d.ts +6 -0
  8. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +32 -0
  9. package/dist/components/JoyInput/VJoyInput.vue.d.ts +7 -3
  10. package/dist/components/JoyLink/VJoyLink.vue.d.ts +6 -2
  11. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
  12. package/dist/components/JoySelect/VJoySelect.vue.d.ts +1 -1
  13. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +1 -1
  14. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
  15. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +1 -1
  16. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +13 -2
  17. package/dist/components/index.d.ts +2 -1
  18. package/dist/helpers/index.d.ts +2 -1
  19. package/dist/joy-vue.js +649 -611
  20. package/dist/joy-vue.umd.cjs +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
  23. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
  24. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +1 -1
  25. package/dist/types/index.d.ts +5 -0
  26. package/joy-components.d.ts +1 -0
  27. package/package.json +21 -19
  28. package/LICENSE +0 -21
package/dist/joy-vue.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, openBlock as v, createElementBlock as p, normalizeClass as k, renderSlot as b, createTextVNode as L, toDisplayString as x, useAttrs as Re, computed as I, createBlock as T, resolveDynamicComponent as ce, unref as _, withCtx as E, createCommentVNode as w, createElementVNode as h, ref as g, 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 C, h as rt, reactive as X, onBeforeUnmount as Ne, normalizeStyle as K, Fragment as ye, renderList as me, normalizeProps as ve, guardReactiveProps as pe, Teleport as st, createSlots as He, useSlots as W, onBeforeMount as ut, inject as dt, provide as ct } from "vue";
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 De, computed as B, createBlock as x, resolveDynamicComponent as ce, unref as _, withCtx as L, createCommentVNode as w, ref as g, createVNode as N, mergeProps as Y, getCurrentScope as lt, onScopeDispose as ot, getCurrentInstance as nt, onMounted as X, nextTick as Re, watch as P, h as at, reactive as te, onBeforeUnmount as Me, normalizeStyle as Z, Fragment as fe, renderList as ye, normalizeProps as me, guardReactiveProps as ve, Teleport as it, createSlots as Ne, useSlots as G, onBeforeMount as rt, inject as st, provide as ut, pushScopeId as dt, popScopeId as ct } from "vue";
2
2
  const ft = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink", "dark-blue", "yellow"], yt = /* @__PURE__ */ $({
3
3
  __name: "VJoyBadge",
4
4
  props: {
@@ -28,11 +28,11 @@ const ft = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
28
28
  },
29
29
  setup(e) {
30
30
  return (l, t) => (v(), p("span", {
31
- class: k(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
31
+ class: S(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
32
32
  role: "status"
33
33
  }, [
34
- b(l.$slots, "default", {}, () => [
35
- L(x(e.label), 1)
34
+ h(l.$slots, "default", {}, () => [
35
+ C(I(e.label), 1)
36
36
  ], !0)
37
37
  ], 2));
38
38
  }
@@ -54,11 +54,37 @@ const V = (e, l) => {
54
54
  },
55
55
  setup(e) {
56
56
  return (l, t) => (v(), p("div", {
57
- class: k(["joy-spinner", `joy-spinner_${e.color}`])
57
+ class: S(["joy-spinner", `joy-spinner_${e.color}`])
58
58
  }, null, 2));
59
59
  }
60
60
  });
61
- const We = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), ht = ["primary", "secondary"], bt = ["neutral", "success", "info", "warning", "error"], gt = ["main", "admin", "ghost"], _t = [...ht, ...gt], wt = ["large", "medium", "small", "xsmall", "xxsmall"], St = ["name", "size"], jt = { class: "joy-button--slot" }, kt = ["name", "size"], $t = /* @__PURE__ */ $({
61
+ const He = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), D = /* @__PURE__ */ $({
62
+ __name: "VJoyIcon",
63
+ props: {
64
+ name: {
65
+ type: String,
66
+ required: !0
67
+ },
68
+ color: {
69
+ type: String,
70
+ default: "secondary"
71
+ },
72
+ size: {
73
+ type: String,
74
+ default: "xsmall"
75
+ }
76
+ },
77
+ setup(e) {
78
+ return (l, t) => (v(), p("span", {
79
+ class: S(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
80
+ }, [
81
+ b("i", {
82
+ class: S(["icon", `icon-${e.name}`])
83
+ }, null, 2)
84
+ ], 2));
85
+ }
86
+ });
87
+ const ht = ["primary", "secondary"], bt = ["neutral", "success", "info", "warning", "error"], gt = ["main", "admin", "ghost", "white"], _t = [...ht, ...gt], wt = ["large", "medium", "small", "xsmall", "xxsmall"], St = { class: "joy-button--slot" }, kt = /* @__PURE__ */ $({
62
88
  __name: "VJoyButton",
63
89
  props: {
64
90
  /**
@@ -70,7 +96,9 @@ const We = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), ht = ["pri
70
96
  default: !1
71
97
  },
72
98
  /** Name of the icon, placed before the text */
73
- icon: String,
99
+ icon: {
100
+ type: String
101
+ },
74
102
  /** Left to the text or right */
75
103
  iconPosition: {
76
104
  type: String,
@@ -105,7 +133,7 @@ const We = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), ht = ["pri
105
133
  }
106
134
  },
107
135
  setup(e) {
108
- const l = e, t = Re(), o = I(() => {
136
+ const l = e, t = De(), o = B(() => {
109
137
  switch (l.size) {
110
138
  case "xxsmall":
111
139
  return "xxsmall";
@@ -116,11 +144,11 @@ const We = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), ht = ["pri
116
144
  default:
117
145
  return "small";
118
146
  }
119
- }), a = I(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
120
- return (r, s) => (v(), T(ce(_(t).href ? "a" : "button"), {
147
+ }), a = B(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
148
+ return (r, s) => (v(), x(ce(_(t).href ? "a" : "button"), {
121
149
  disabled: e.loading || _(t).disabled,
122
150
  type: _(t).type || "button",
123
- class: k([
151
+ class: S([
124
152
  "joy-button",
125
153
  `joy-button_${e.variant}`,
126
154
  `joy-button_${e.size}`,
@@ -130,36 +158,34 @@ const We = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), ht = ["pri
130
158
  }
131
159
  ])
132
160
  }, {
133
- default: E(() => [
134
- e.icon && e.iconPosition === "left" ? (v(), p("joy-icon", {
161
+ default: L(() => [
162
+ e.icon && e.iconPosition === "left" ? (v(), x(D, {
135
163
  key: 0,
136
164
  class: "joy-button_icon joy-button_icon--left",
137
165
  name: e.icon,
138
- size: _(o),
139
- lazy: !1
140
- }, null, 8, St)) : w("", !0),
141
- e.loading ? (v(), T(We, {
166
+ size: _(o)
167
+ }, null, 8, ["name", "size"])) : w("", !0),
168
+ e.loading ? (v(), x(He, {
142
169
  key: 1,
143
170
  color: _(a)
144
171
  }, null, 8, ["color"])) : w("", !0),
145
- h("span", jt, [
146
- b(r.$slots, "default", {}, () => [
147
- L(x(e.label), 1)
172
+ b("span", St, [
173
+ h(r.$slots, "default", {}, () => [
174
+ C(I(e.label), 1)
148
175
  ], !0)
149
176
  ]),
150
- e.icon && e.iconPosition === "right" ? (v(), p("joy-icon", {
177
+ e.icon && e.iconPosition === "right" ? (v(), x(D, {
151
178
  key: 2,
152
179
  class: "joy-button_icon joy-button_icon--right",
153
180
  name: e.icon,
154
- size: _(o),
155
- lazy: !1
156
- }, null, 8, kt)) : w("", !0)
181
+ size: _(o)
182
+ }, null, 8, ["name", "size"])) : w("", !0)
157
183
  ]),
158
184
  _: 3
159
185
  }, 8, ["disabled", "type", "class"]));
160
186
  }
161
187
  });
162
- const Vt = /* @__PURE__ */ V($t, [["__scopeId", "data-v-44b223fb"]]), xt = ["aria-checked", "aria-hidden"], Ot = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Bt = { class: "joy-checkbox__content-wrapper" }, Et = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ $({
188
+ const jt = /* @__PURE__ */ V(kt, [["__scopeId", "data-v-ae0676bb"]]), $t = ["aria-checked", "aria-hidden"], Vt = { class: "joy-checkbox__input-wrapper" }, xt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], It = { class: "joy-checkbox__content-wrapper" }, Ot = { class: "joy-checkbox__content" }, Bt = /* @__PURE__ */ $({
163
189
  __name: "VJoyCheckbox",
164
190
  props: {
165
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 */
@@ -226,8 +252,8 @@ const Vt = /* @__PURE__ */ V($t, [["__scopeId", "data-v-44b223fb"]]), xt = ["ari
226
252
  "aria-checked": e.checked,
227
253
  "aria-hidden": e.disabled
228
254
  }, [
229
- h("label", {
230
- class: k([
255
+ b("label", {
256
+ class: S([
231
257
  "joy-checkbox",
232
258
  {
233
259
  "joy-checkbox__checked": e.checked,
@@ -237,8 +263,8 @@ const Vt = /* @__PURE__ */ V($t, [["__scopeId", "data-v-44b223fb"]]), xt = ["ari
237
263
  }
238
264
  ])
239
265
  }, [
240
- h("div", Ot, [
241
- h("input", {
266
+ b("div", Vt, [
267
+ b("input", {
242
268
  id: e.id,
243
269
  ref_key: "input",
244
270
  ref: a,
@@ -258,36 +284,27 @@ const Vt = /* @__PURE__ */ V($t, [["__scopeId", "data-v-44b223fb"]]), xt = ["ari
258
284
  (...u) => n.onFocus && n.onFocus(...u)),
259
285
  onBlur: f[2] || (f[2] = //@ts-ignore
260
286
  (...u) => n.onBlur && n.onBlur(...u))
261
- }, null, 40, It)
287
+ }, null, 40, xt)
262
288
  ]),
263
- h("div", Bt, [
264
- b(c.$slots, "default", {}, () => [
265
- L(x(e.label), 1)
289
+ b("div", It, [
290
+ h(c.$slots, "default", {}, () => [
291
+ C(I(e.label), 1)
266
292
  ], !0),
267
- h("div", Et, [
268
- b(c.$slots, "checkbox-content", {}, void 0, !0)
293
+ b("div", Ot, [
294
+ h(c.$slots, "checkbox-content", {}, void 0, !0)
269
295
  ])
270
296
  ])
271
297
  ], 2)
272
- ], 8, xt));
298
+ ], 8, $t));
273
299
  }
274
300
  });
275
- const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Ct = { class: "joy-counter" }, Pt = ["aria-label", "disabled"], Jt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
276
- name: "minus",
277
- color: "teal",
278
- lazy: !1
279
- }, null, -1)), Tt = [
280
- Jt
281
- ], qt = { class: "joy-counter__input-wrapper" }, zt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], At = ["aria-label", "disabled"], Ft = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
282
- name: "add",
283
- lazy: !1,
284
- color: "teal"
285
- }, null, -1)), Dt = [
286
- Ft
287
- ], Rt = {
301
+ const pe = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Et = { class: "joy-counter" }, Lt = ["aria-label", "disabled"], Ct = { class: "joy-counter__input-wrapper" }, Pt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Jt = ["aria-label", "disabled"], Tt = {
288
302
  key: 0,
289
303
  class: "joy-counter_error"
290
- }, Mt = /* @__PURE__ */ $({
304
+ }, qt = {
305
+ inheritAttrs: !1
306
+ }, zt = /* @__PURE__ */ $({
307
+ ...qt,
291
308
  __name: "VJoyCounter",
292
309
  props: {
293
310
  /** Removes any interactivity */
@@ -367,8 +384,8 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
367
384
  a.value = !u();
368
385
  }
369
386
  function f(d = !0) {
370
- const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
371
- return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
387
+ const j = o.step.toString().split("."), k = j.length === 2 ? j[1].length : 0;
388
+ return parseFloat(d ? (o.modelValue + o.step).toFixed(k) : (o.modelValue - o.step).toFixed(k));
372
389
  }
373
390
  function u() {
374
391
  return m() && i();
@@ -392,33 +409,35 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
392
409
  };
393
410
  return l({
394
411
  props: o
395
- }), (d, j) => (v(), p("div", Ct, [
396
- e.label ? (v(), T(_(N), {
412
+ }), (d, j) => (v(), p("div", Et, [
413
+ e.label ? (v(), x(_(W), {
397
414
  key: 0,
398
415
  for: e.id,
399
416
  required: e.required && e.requiredMark,
400
417
  "optional-label": e.optionalLabel,
401
418
  size: e.labelSize
402
419
  }, {
403
- default: E(() => [
404
- b(d.$slots, "default", {}, () => [
405
- L(x(e.label), 1)
420
+ default: L(() => [
421
+ h(d.$slots, "default", {}, () => [
422
+ C(I(e.label), 1)
406
423
  ], !0)
407
424
  ]),
408
425
  _: 3
409
426
  }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
410
- h("div", {
411
- class: k(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
427
+ b("div", {
428
+ class: S(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
412
429
  }, [
413
- h("button", {
430
+ b("button", {
414
431
  class: "joy-counter__decrement",
415
432
  type: "button",
416
433
  "aria-label": e.labelDecrement,
417
434
  disabled: e.modelValue <= e.min,
418
435
  onClick: s
419
- }, Tt, 8, Pt),
420
- h("div", qt, [
421
- h("input", Q({
436
+ }, [
437
+ N(_(D), { name: "minus" })
438
+ ], 8, Lt),
439
+ b("div", Ct, [
440
+ b("input", Y({
422
441
  id: e.id,
423
442
  ref: "input",
424
443
  type: "number",
@@ -432,35 +451,37 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
432
451
  value: e.modelValue
433
452
  }, d.$attrs, {
434
453
  onInput: j[0] || (j[0] = //@ts-ignore
435
- (...S) => y.onInput && y.onInput(...S)),
454
+ (...k) => y.onInput && y.onInput(...k)),
436
455
  onBlur: j[1] || (j[1] = //@ts-ignore
437
- (...S) => y.onBlur && y.onBlur(...S)),
456
+ (...k) => y.onBlur && y.onBlur(...k)),
438
457
  onFocus: j[2] || (j[2] = //@ts-ignore
439
- (...S) => y.onFocus && y.onFocus(...S))
440
- }), null, 16, zt)
458
+ (...k) => y.onFocus && y.onFocus(...k))
459
+ }), null, 16, Pt)
441
460
  ]),
442
- h("button", {
461
+ b("button", {
443
462
  class: "joy-counter__increment",
444
463
  type: "button",
445
464
  "aria-label": e.labelIncrement,
446
465
  disabled: e.max ? e.modelValue >= e.max : !1,
447
466
  onClick: n
448
- }, Dt, 8, At),
449
- e.invalid && e.errorMessage ? (v(), p("div", Rt, [
450
- fe(_(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
467
+ }, [
468
+ N(_(D), { name: "add" })
469
+ ], 8, Jt),
470
+ e.invalid && e.errorMessage ? (v(), p("div", Tt, [
471
+ N(_(Xe), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
451
472
  ])) : w("", !0)
452
473
  ], 2)
453
474
  ]));
454
475
  }
455
476
  });
456
- const Nt = /* @__PURE__ */ V(Mt, [["__scopeId", "data-v-0d1ab3f2"]]);
457
- var _e;
458
- const U = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
459
- }, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
460
- function P(e) {
477
+ const At = /* @__PURE__ */ V(zt, [["__scopeId", "data-v-a59ac0ad"]]);
478
+ var ge;
479
+ const K = typeof window < "u", We = (e) => typeof e == "string", z = () => {
480
+ }, le = K && ((ge = window == null ? void 0 : window.navigator) == null ? void 0 : ge.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
481
+ function J(e) {
461
482
  return typeof e == "function" ? e() : _(e);
462
483
  }
463
- function Ke(e, l) {
484
+ function Ue(e, l) {
464
485
  function t(...o) {
465
486
  return new Promise((a, r) => {
466
487
  Promise.resolve(e(() => l.apply(this, o), { fn: l, thisArg: this, args: o })).then(a).catch(r);
@@ -468,13 +489,13 @@ function Ke(e, l) {
468
489
  }
469
490
  return t;
470
491
  }
471
- function Ht(e, l = {}) {
492
+ function Ft(e, l = {}) {
472
493
  let t, o, a = z;
473
494
  const r = (n) => {
474
495
  clearTimeout(n), a(), a = z;
475
496
  };
476
497
  return (n) => {
477
- const c = P(e), f = P(l.maxWait);
498
+ const c = J(e), f = J(l.maxWait);
478
499
  return t && r(t), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(n())) : new Promise((u, m) => {
479
500
  a = l.rejectOnCancel ? m : u, f && !o && (o = setTimeout(() => {
480
501
  t && r(t), o = null, u(n());
@@ -484,83 +505,83 @@ function Ht(e, l = {}) {
484
505
  });
485
506
  };
486
507
  }
487
- function Wt(e, l = !0, t = !0, o = !1) {
508
+ function Dt(e, l = !0, t = !0, o = !1) {
488
509
  let a = 0, r, s = !0, n = z, c;
489
510
  const f = () => {
490
511
  r && (clearTimeout(r), r = void 0, n(), n = z);
491
512
  };
492
513
  return (m) => {
493
- const i = P(e), y = Date.now() - a, d = () => c = m();
494
- return f(), i <= 0 ? (a = Date.now(), d()) : (y > i && (t || !s) ? (a = Date.now(), d()) : l && (c = new Promise((j, S) => {
495
- n = o ? S : j, r = setTimeout(() => {
514
+ const i = J(e), y = Date.now() - a, d = () => c = m();
515
+ return f(), i <= 0 ? (a = Date.now(), d()) : (y > i && (t || !s) ? (a = Date.now(), d()) : l && (c = new Promise((j, k) => {
516
+ n = o ? k : j, r = setTimeout(() => {
496
517
  a = Date.now(), s = !0, j(d()), f();
497
518
  }, Math.max(0, i - y));
498
519
  })), !t && !r && (r = setTimeout(() => s = !0, i)), s = !1, c);
499
520
  };
500
521
  }
501
- const R = {
522
+ const M = {
502
523
  mounted: "mounted",
503
524
  updated: "updated",
504
525
  unmounted: "unmounted"
505
526
  };
506
- function Ut(e) {
527
+ function Rt(e) {
507
528
  return e;
508
529
  }
509
- function G(e) {
510
- return nt() ? (at(e), !0) : !1;
530
+ function Q(e) {
531
+ return lt() ? (ot(e), !0) : !1;
511
532
  }
512
- function Gt(e, l = 200, t = {}) {
513
- return Ke(Ht(l, t), e);
533
+ function Mt(e, l = 200, t = {}) {
534
+ return Ue(Ft(l, t), e);
514
535
  }
515
- function Kt(e, l = 200, t = !1, o = !0, a = !1) {
516
- return Ke(Wt(l, t, o, a), e);
536
+ function Nt(e, l = 200, t = !1, o = !0, a = !1) {
537
+ return Ue(Dt(l, t, o, a), e);
517
538
  }
518
- function Qt(e) {
519
- return typeof e == "function" ? I(e) : g(e);
539
+ function Ht(e) {
540
+ return typeof e == "function" ? B(e) : g(e);
520
541
  }
521
- function Qe(e, l = !0) {
522
- it() ? Z(e) : l ? e() : Me(e);
542
+ function Ge(e, l = !0) {
543
+ nt() ? X(e) : l ? e() : Re(e);
523
544
  }
524
- function H(e) {
545
+ function U(e) {
525
546
  var l;
526
- const t = P(e);
547
+ const t = J(e);
527
548
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
528
549
  }
529
- const be = U ? window : void 0;
530
- U && window.document;
531
- U && window.navigator;
532
- U && window.location;
550
+ const he = K ? window : void 0;
551
+ K && window.document;
552
+ K && window.navigator;
553
+ K && window.location;
533
554
  function ae(...e) {
534
555
  let l, t, o, a;
535
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([t, o, a] = e, l = be) : [l, t, o, a] = e, !l)
556
+ if (We(e[0]) || Array.isArray(e[0]) ? ([t, o, a] = e, l = he) : [l, t, o, a] = e, !l)
536
557
  return z;
537
558
  Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
538
559
  const r = [], s = () => {
539
560
  r.forEach((u) => u()), r.length = 0;
540
- }, n = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), c = C(() => [H(l), P(a)], ([u, m]) => {
561
+ }, n = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), c = P(() => [U(l), J(a)], ([u, m]) => {
541
562
  s(), u && r.push(...t.flatMap((i) => o.map((y) => n(u, i, y, m))));
542
563
  }, { immediate: !0, flush: "post" }), f = () => {
543
564
  c(), s();
544
565
  };
545
- return G(f), f;
566
+ return Q(f), f;
546
567
  }
547
- let we = !1;
548
- function Zt(e, l, t = {}) {
549
- const { window: o = be, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
568
+ let _e = !1;
569
+ function Wt(e, l, t = {}) {
570
+ const { window: o = he, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
550
571
  if (!o)
551
572
  return;
552
- ee && !we && (we = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
573
+ le && !_e && (_e = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
553
574
  let n = !0;
554
575
  const c = (i) => a.some((y) => {
555
576
  if (typeof y == "string")
556
577
  return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
557
578
  {
558
- const d = H(y);
579
+ const d = U(y);
559
580
  return d && (i.target === d || i.composedPath().includes(d));
560
581
  }
561
582
  }), u = [
562
583
  ae(o, "click", (i) => {
563
- const y = H(e);
584
+ const y = U(e);
564
585
  if (!(!y || y === i.target || i.composedPath().includes(y))) {
565
586
  if (i.detail === 0 && (n = !c(i)), !n) {
566
587
  n = !0;
@@ -570,73 +591,73 @@ function Zt(e, l, t = {}) {
570
591
  }
571
592
  }, { passive: !0, capture: r }),
572
593
  ae(o, "pointerdown", (i) => {
573
- const y = H(e);
594
+ const y = U(e);
574
595
  y && (n = !i.composedPath().includes(y) && !c(i));
575
596
  }, { passive: !0 }),
576
597
  s && ae(o, "blur", (i) => {
577
598
  var y;
578
- const d = H(e);
599
+ const d = U(e);
579
600
  ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && l(i);
580
601
  })
581
602
  ].filter(Boolean);
582
603
  return () => u.forEach((i) => i());
583
604
  }
584
- function Yt(e, l = !1) {
605
+ function Ut(e, l = !1) {
585
606
  const t = g(), o = () => t.value = Boolean(e());
586
- return o(), Qe(o, l), t;
607
+ return o(), Ge(o, l), t;
587
608
  }
588
609
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
589
610
  ie[re] = ie[re] || {};
590
611
  ie[re];
591
- var Se = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, el = Object.prototype.propertyIsEnumerable, tl = (e, l) => {
612
+ var we = Object.getOwnPropertySymbols, Gt = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, Qt = (e, l) => {
592
613
  var t = {};
593
614
  for (var o in e)
594
- Xt.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
595
- if (e != null && Se)
596
- for (var o of Se(e))
597
- l.indexOf(o) < 0 && el.call(e, o) && (t[o] = e[o]);
615
+ Gt.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
616
+ if (e != null && we)
617
+ for (var o of we(e))
618
+ l.indexOf(o) < 0 && Kt.call(e, o) && (t[o] = e[o]);
598
619
  return t;
599
620
  };
600
- function ll(e, l, t = {}) {
601
- const o = t, { window: a = be } = o, r = tl(o, ["window"]);
621
+ function Zt(e, l, t = {}) {
622
+ const o = t, { window: a = he } = o, r = Qt(o, ["window"]);
602
623
  let s;
603
- const n = Yt(() => a && "ResizeObserver" in a), c = () => {
624
+ const n = Ut(() => a && "ResizeObserver" in a), c = () => {
604
625
  s && (s.disconnect(), s = void 0);
605
- }, f = C(() => H(e), (m) => {
626
+ }, f = P(() => U(e), (m) => {
606
627
  c(), n.value && a && m && (s = new ResizeObserver(l), s.observe(m, r));
607
628
  }, { immediate: !0, flush: "post" }), u = () => {
608
629
  c(), f();
609
630
  };
610
- return G(u), {
631
+ return Q(u), {
611
632
  isSupported: n,
612
633
  stop: u
613
634
  };
614
635
  }
615
- var je;
636
+ var Se;
616
637
  (function(e) {
617
638
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
618
- })(je || (je = {}));
619
- function ol(e) {
639
+ })(Se || (Se = {}));
640
+ function Yt(e) {
620
641
  const l = g(e == null ? void 0 : e.element), t = g(e == null ? void 0 : e.input);
621
642
  function o() {
622
643
  var a, r;
623
644
  l.value && (l.value.style.height = "1px", l.value.style.height = `${(a = l.value) == null ? void 0 : a.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
624
645
  }
625
- return C([t, l], o, { immediate: !0 }), ll(l, () => o()), e != null && e.watch && C(e.watch, o, { immediate: !0, deep: !0 }), {
646
+ return P([t, l], o, { immediate: !0 }), Zt(l, () => o()), e != null && e.watch && P(e.watch, o, { immediate: !0, deep: !0 }), {
626
647
  textarea: l,
627
648
  input: t,
628
649
  triggerResize: o
629
650
  };
630
651
  }
631
- var nl = Object.defineProperty, ke = Object.getOwnPropertySymbols, al = Object.prototype.hasOwnProperty, il = Object.prototype.propertyIsEnumerable, $e = (e, l, t) => l in e ? nl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, rl = (e, l) => {
652
+ var Xt = Object.defineProperty, ke = Object.getOwnPropertySymbols, el = Object.prototype.hasOwnProperty, tl = Object.prototype.propertyIsEnumerable, je = (e, l, t) => l in e ? Xt(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ll = (e, l) => {
632
653
  for (var t in l || (l = {}))
633
- al.call(l, t) && $e(e, t, l[t]);
654
+ el.call(l, t) && je(e, t, l[t]);
634
655
  if (ke)
635
656
  for (var t of ke(l))
636
- il.call(l, t) && $e(e, t, l[t]);
657
+ tl.call(l, t) && je(e, t, l[t]);
637
658
  return e;
638
659
  };
639
- const sl = {
660
+ const ol = {
640
661
  easeInSine: [0.12, 0, 0.39, 0],
641
662
  easeOutSine: [0.61, 1, 0.88, 1],
642
663
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -662,60 +683,60 @@ const sl = {
662
683
  easeOutBack: [0.34, 1.56, 0.64, 1],
663
684
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
664
685
  };
665
- rl({
666
- linear: Ut
667
- }, sl);
668
- const ul = /* @__PURE__ */ $({
686
+ ll({
687
+ linear: Rt
688
+ }, ol);
689
+ const nl = /* @__PURE__ */ $({
669
690
  name: "OnClickOutside",
670
691
  props: ["as", "options"],
671
692
  emits: ["trigger"],
672
693
  setup(e, { slots: l, emit: t }) {
673
694
  const o = g();
674
- return Zt(o, (a) => {
695
+ return Wt(o, (a) => {
675
696
  t("trigger", a);
676
697
  }, e.options), () => {
677
698
  if (l.default)
678
- return rt(e.as || "div", { ref: o }, l.default());
699
+ return at(e.as || "div", { ref: o }, l.default());
679
700
  };
680
701
  }
681
702
  });
682
- function J(e) {
703
+ function T(e) {
683
704
  var l;
684
- const t = P(e);
705
+ const t = J(e);
685
706
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
686
707
  }
687
- const M = U ? window : void 0;
708
+ const H = K ? window : void 0;
688
709
  function A(...e) {
689
710
  let l, t, o, a;
690
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([t, o, a] = e, l = M) : [l, t, o, a] = e, !l)
711
+ if (We(e[0]) || Array.isArray(e[0]) ? ([t, o, a] = e, l = H) : [l, t, o, a] = e, !l)
691
712
  return z;
692
713
  Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
693
714
  const r = [], s = () => {
694
715
  r.forEach((u) => u()), r.length = 0;
695
- }, n = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), c = C(() => [J(l), P(a)], ([u, m]) => {
716
+ }, n = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), c = P(() => [T(l), J(a)], ([u, m]) => {
696
717
  s(), u && r.push(...t.flatMap((i) => o.map((y) => n(u, i, y, m))));
697
718
  }, { immediate: !0, flush: "post" }), f = () => {
698
719
  c(), s();
699
720
  };
700
- return G(f), f;
721
+ return Q(f), f;
701
722
  }
702
- let Ve = !1;
703
- function xe(e, l, t = {}) {
704
- const { window: o = M, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
723
+ let $e = !1;
724
+ function Ve(e, l, t = {}) {
725
+ const { window: o = H, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
705
726
  if (!o)
706
727
  return;
707
- ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
728
+ le && !$e && ($e = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
708
729
  let n = !0;
709
730
  const c = (i) => a.some((y) => {
710
731
  if (typeof y == "string")
711
732
  return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
712
733
  {
713
- const d = J(y);
734
+ const d = T(y);
714
735
  return d && (i.target === d || i.composedPath().includes(d));
715
736
  }
716
737
  }), u = [
717
738
  A(o, "click", (i) => {
718
- const y = J(e);
739
+ const y = T(e);
719
740
  if (!(!y || y === i.target || i.composedPath().includes(y))) {
720
741
  if (i.detail === 0 && (n = !c(i)), !n) {
721
742
  n = !0;
@@ -725,47 +746,47 @@ function xe(e, l, t = {}) {
725
746
  }
726
747
  }, { passive: !0, capture: r }),
727
748
  A(o, "pointerdown", (i) => {
728
- const y = J(e);
749
+ const y = T(e);
729
750
  y && (n = !i.composedPath().includes(y) && !c(i));
730
751
  }, { passive: !0 }),
731
752
  s && A(o, "blur", (i) => {
732
753
  var y;
733
- const d = J(e);
754
+ const d = T(e);
734
755
  ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && l(i);
735
756
  })
736
757
  ].filter(Boolean);
737
758
  return () => u.forEach((i) => i());
738
759
  }
739
- R.mounted + "", R.unmounted + "";
740
- const dl = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
741
- function Oe(...e) {
760
+ M.mounted + "", M.unmounted + "";
761
+ const al = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
762
+ function xe(...e) {
742
763
  let l, t, o = {};
743
764
  e.length === 3 ? (l = e[0], t = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], o = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
744
- const { target: a = M, eventName: r = "keydown", passive: s = !1 } = o, n = dl(l);
765
+ const { target: a = H, eventName: r = "keydown", passive: s = !1 } = o, n = al(l);
745
766
  return A(a, r, (f) => {
746
767
  n(f) && t(f);
747
768
  }, s);
748
769
  }
749
- var cl = Object.defineProperty, Ie = Object.getOwnPropertySymbols, fl = Object.prototype.hasOwnProperty, yl = Object.prototype.propertyIsEnumerable, Be = (e, l, t) => l in e ? cl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ml = (e, l) => {
770
+ var il = Object.defineProperty, Ie = Object.getOwnPropertySymbols, rl = Object.prototype.hasOwnProperty, sl = Object.prototype.propertyIsEnumerable, Oe = (e, l, t) => l in e ? il(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ul = (e, l) => {
750
771
  for (var t in l || (l = {}))
751
- fl.call(l, t) && Be(e, t, l[t]);
772
+ rl.call(l, t) && Oe(e, t, l[t]);
752
773
  if (Ie)
753
774
  for (var t of Ie(l))
754
- yl.call(l, t) && Be(e, t, l[t]);
775
+ sl.call(l, t) && Oe(e, t, l[t]);
755
776
  return e;
756
777
  };
757
- R.mounted + "";
758
- const vl = 500;
759
- function Ee(e, l, t) {
778
+ M.mounted + "";
779
+ const dl = 500;
780
+ function Be(e, l, t) {
760
781
  var o, a;
761
- const r = I(() => J(e));
782
+ const r = B(() => T(e));
762
783
  let s;
763
784
  function n() {
764
785
  s && (clearTimeout(s), s = void 0);
765
786
  }
766
787
  function c(u) {
767
788
  var m, i, y, d;
768
- (m = t == null ? void 0 : t.modifiers) != null && m.self && u.target !== r.value || (n(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (y = t == null ? void 0 : t.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => l(u), (d = t == null ? void 0 : t.delay) != null ? d : vl));
789
+ (m = t == null ? void 0 : t.modifiers) != null && m.self && u.target !== r.value || (n(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (y = t == null ? void 0 : t.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => l(u), (d = t == null ? void 0 : t.delay) != null ? d : dl));
769
790
  }
770
791
  const f = {
771
792
  capture: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.capture,
@@ -773,15 +794,15 @@ function Ee(e, l, t) {
773
794
  };
774
795
  A(r, "pointerdown", c, f), A(r, "pointerup", n, f), A(r, "pointerleave", n, f);
775
796
  }
776
- R.mounted + "";
797
+ M.mounted + "";
777
798
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
778
799
  se[ue] = se[ue] || {};
779
800
  se[ue];
780
- function Ze(e, l = !1) {
801
+ function Ke(e, l = !1) {
781
802
  const t = g(), o = () => t.value = Boolean(e());
782
- return o(), Qe(o, l), t;
803
+ return o(), Ge(o, l), t;
783
804
  }
784
- function pl(e, l = {}) {
805
+ function cl(e, l = {}) {
785
806
  const t = l ? l.delayEnter : 0, o = l ? l.delayLeave : 0, a = g(!1);
786
807
  let r;
787
808
  const s = (n) => {
@@ -790,40 +811,40 @@ function pl(e, l = {}) {
790
811
  };
791
812
  return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), a;
792
813
  }
793
- R.mounted + "";
794
- var Le = Object.getOwnPropertySymbols, hl = Object.prototype.hasOwnProperty, bl = Object.prototype.propertyIsEnumerable, gl = (e, l) => {
814
+ M.mounted + "";
815
+ var Ee = Object.getOwnPropertySymbols, fl = Object.prototype.hasOwnProperty, yl = Object.prototype.propertyIsEnumerable, ml = (e, l) => {
795
816
  var t = {};
796
817
  for (var o in e)
797
- hl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
798
- if (e != null && Le)
799
- for (var o of Le(e))
800
- l.indexOf(o) < 0 && bl.call(e, o) && (t[o] = e[o]);
818
+ fl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
819
+ if (e != null && Ee)
820
+ for (var o of Ee(e))
821
+ l.indexOf(o) < 0 && yl.call(e, o) && (t[o] = e[o]);
801
822
  return t;
802
823
  };
803
- function _l(e, l, t = {}) {
804
- const o = t, { window: a = M } = o, r = gl(o, ["window"]);
824
+ function vl(e, l, t = {}) {
825
+ const o = t, { window: a = H } = o, r = ml(o, ["window"]);
805
826
  let s;
806
- const n = Ze(() => a && "ResizeObserver" in a), c = () => {
827
+ const n = Ke(() => a && "ResizeObserver" in a), c = () => {
807
828
  s && (s.disconnect(), s = void 0);
808
- }, f = C(() => J(e), (m) => {
829
+ }, f = P(() => T(e), (m) => {
809
830
  c(), n.value && a && m && (s = new ResizeObserver(l), s.observe(m, r));
810
831
  }, { immediate: !0, flush: "post" }), u = () => {
811
832
  c(), f();
812
833
  };
813
- return G(u), {
834
+ return Q(u), {
814
835
  isSupported: n,
815
836
  stop: u
816
837
  };
817
838
  }
818
- function wl(e, l = { width: 0, height: 0 }, t = {}) {
819
- const { window: o = M, box: a = "content-box" } = t, r = I(() => {
839
+ function pl(e, l = { width: 0, height: 0 }, t = {}) {
840
+ const { window: o = H, box: a = "content-box" } = t, r = B(() => {
820
841
  var c, f;
821
- return (f = (c = J(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
842
+ return (f = (c = T(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
822
843
  }), s = g(l.width), n = g(l.height);
823
- return _l(e, ([c]) => {
844
+ return vl(e, ([c]) => {
824
845
  const f = a === "border-box" ? c.borderBoxSize : a === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
825
846
  if (o && r.value) {
826
- const u = J(e);
847
+ const u = T(e);
827
848
  if (u) {
828
849
  const m = o.getComputedStyle(u);
829
850
  s.value = parseFloat(m.width), n.value = parseFloat(m.height);
@@ -833,19 +854,19 @@ function wl(e, l = { width: 0, height: 0 }, t = {}) {
833
854
  s.value = u.reduce((m, { inlineSize: i }) => m + i, 0), n.value = u.reduce((m, { blockSize: i }) => m + i, 0);
834
855
  } else
835
856
  s.value = c.contentRect.width, n.value = c.contentRect.height;
836
- }, t), C(() => J(e), (c) => {
857
+ }, t), P(() => T(e), (c) => {
837
858
  s.value = c ? l.width : 0, n.value = c ? l.height : 0;
838
859
  }), {
839
860
  width: s,
840
861
  height: n
841
862
  };
842
863
  }
843
- R.mounted + "";
844
- function Ce(e, { window: l = M, scrollTarget: t } = {}) {
864
+ M.mounted + "";
865
+ function Le(e, { window: l = H, scrollTarget: t } = {}) {
845
866
  const o = g(!1), a = () => {
846
867
  if (!l)
847
868
  return;
848
- const r = l.document, s = J(e);
869
+ const r = l.document, s = T(e);
849
870
  if (!s)
850
871
  o.value = !1;
851
872
  else {
@@ -853,13 +874,13 @@ function Ce(e, { window: l = M, scrollTarget: t } = {}) {
853
874
  o.value = n.top <= (l.innerHeight || r.documentElement.clientHeight) && n.left <= (l.innerWidth || r.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
854
875
  }
855
876
  };
856
- return C(() => J(e), () => a(), { immediate: !0, flush: "post" }), l && A(t || l, "scroll", a, {
877
+ return P(() => T(e), () => a(), { immediate: !0, flush: "post" }), l && A(t || l, "scroll", a, {
857
878
  capture: !1,
858
879
  passive: !0
859
880
  }), o;
860
881
  }
861
- R.mounted + "";
862
- const Pe = 1;
882
+ M.mounted + "";
883
+ const Ce = 1;
863
884
  function de(e, l = {}) {
864
885
  const {
865
886
  throttle: t = 0,
@@ -877,79 +898,79 @@ function de(e, l = {}) {
877
898
  passive: !0
878
899
  },
879
900
  behavior: c = "auto"
880
- } = l, f = g(0), u = g(0), m = I({
901
+ } = l, f = g(0), u = g(0), m = B({
881
902
  get() {
882
903
  return f.value;
883
904
  },
884
- set(B) {
885
- y(B, void 0);
905
+ set(E) {
906
+ y(E, void 0);
886
907
  }
887
- }), i = I({
908
+ }), i = B({
888
909
  get() {
889
910
  return u.value;
890
911
  },
891
- set(B) {
892
- y(void 0, B);
912
+ set(E) {
913
+ y(void 0, E);
893
914
  }
894
915
  });
895
- function y(B, q) {
896
- var D, F, ge;
897
- const ne = P(e);
898
- ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
899
- top: (D = P(q)) != null ? D : i.value,
900
- left: (F = P(B)) != null ? F : m.value,
901
- behavior: P(c)
916
+ function y(E, q) {
917
+ var R, F, be;
918
+ const ne = J(e);
919
+ ne && ((be = ne instanceof Document ? document.body : ne) == null || be.scrollTo({
920
+ top: (R = J(q)) != null ? R : i.value,
921
+ left: (F = J(E)) != null ? F : m.value,
922
+ behavior: J(c)
902
923
  }));
903
924
  }
904
- const d = g(!1), j = X({
925
+ const d = g(!1), j = te({
905
926
  left: !0,
906
927
  right: !1,
907
928
  top: !0,
908
929
  bottom: !1
909
- }), S = X({
930
+ }), k = te({
910
931
  left: !1,
911
932
  right: !1,
912
933
  top: !1,
913
934
  bottom: !1
914
- }), Y = (B) => {
915
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, a(B));
916
- }, oe = Gt(Y, t + o), O = (B) => {
917
- const q = B.target === document ? B.target.documentElement : B.target, D = q.scrollLeft;
918
- S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + q.clientWidth >= q.scrollWidth - (s.right || 0) - Pe, f.value = D;
935
+ }), ee = (E) => {
936
+ d.value && (d.value = !1, k.left = !1, k.right = !1, k.top = !1, k.bottom = !1, a(E));
937
+ }, oe = Mt(ee, t + o), O = (E) => {
938
+ const q = E.target === document ? E.target.documentElement : E.target, R = q.scrollLeft;
939
+ k.left = R < f.value, k.right = R > u.value, j.left = R <= 0 + (s.left || 0), j.right = R + q.clientWidth >= q.scrollWidth - (s.right || 0) - Ce, f.value = R;
919
940
  let F = q.scrollTop;
920
- B.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 + q.clientHeight >= q.scrollHeight - (s.bottom || 0) - Pe, u.value = F, d.value = !0, oe(B), r(B);
941
+ E.target === document && !F && (F = document.body.scrollTop), k.top = F < u.value, k.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + q.clientHeight >= q.scrollHeight - (s.bottom || 0) - Ce, u.value = F, d.value = !0, oe(E), r(E);
921
942
  };
922
- return A(e, "scroll", t ? Kt(O, t, !0, !1) : O, n), A(e, "scrollend", Y, n), {
943
+ return A(e, "scroll", t ? Nt(O, t, !0, !1) : O, n), A(e, "scrollend", ee, n), {
923
944
  x: m,
924
945
  y: i,
925
946
  isScrolling: d,
926
947
  arrivedState: j,
927
- directions: S
948
+ directions: k
928
949
  };
929
950
  }
930
- var Sl = Object.defineProperty, jl = Object.defineProperties, kl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, $l = Object.prototype.hasOwnProperty, Vl = Object.prototype.propertyIsEnumerable, Te = (e, l, t) => l in e ? Sl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, qe = (e, l) => {
951
+ var hl = Object.defineProperty, bl = Object.defineProperties, gl = Object.getOwnPropertyDescriptors, Pe = Object.getOwnPropertySymbols, _l = Object.prototype.hasOwnProperty, wl = Object.prototype.propertyIsEnumerable, Je = (e, l, t) => l in e ? hl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Te = (e, l) => {
931
952
  for (var t in l || (l = {}))
932
- $l.call(l, t) && Te(e, t, l[t]);
933
- if (Je)
934
- for (var t of Je(l))
935
- Vl.call(l, t) && Te(e, t, l[t]);
953
+ _l.call(l, t) && Je(e, t, l[t]);
954
+ if (Pe)
955
+ for (var t of Pe(l))
956
+ wl.call(l, t) && Je(e, t, l[t]);
936
957
  return e;
937
- }, xl = (e, l) => jl(e, kl(l));
938
- function ze(e, l, t = {}) {
958
+ }, Sl = (e, l) => bl(e, gl(l));
959
+ function qe(e, l, t = {}) {
939
960
  var o, a;
940
- const r = (o = t.direction) != null ? o : "bottom", s = X(de(e, xl(qe({}, t), {
941
- offset: qe({
961
+ const r = (o = t.direction) != null ? o : "bottom", s = te(de(e, Sl(Te({}, t), {
962
+ offset: Te({
942
963
  [r]: (a = t.distance) != null ? a : 0
943
964
  }, t.offset)
944
965
  })));
945
- C(() => s.arrivedState[r], async (n) => {
966
+ P(() => s.arrivedState[r], async (n) => {
946
967
  var c, f;
947
968
  if (n) {
948
- const u = P(e), m = {
969
+ const u = J(e), m = {
949
970
  height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
950
971
  width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
951
972
  };
952
- await l(s), t.preserveScrollPosition && u && Me(() => {
973
+ await l(s), t.preserveScrollPosition && u && Re(() => {
953
974
  u.scrollTo({
954
975
  top: u.scrollHeight - m.height,
955
976
  left: u.scrollWidth - m.width
@@ -958,18 +979,18 @@ function ze(e, l, t = {}) {
958
979
  }
959
980
  });
960
981
  }
961
- R.mounted + "";
962
- function Ae(e, l, t = {}) {
982
+ M.mounted + "";
983
+ function ze(e, l, t = {}) {
963
984
  const {
964
985
  root: o,
965
986
  rootMargin: a = "0px",
966
987
  threshold: r = 0.1,
967
- window: s = M
968
- } = t, n = Ze(() => s && "IntersectionObserver" in s);
988
+ window: s = H
989
+ } = t, n = Ke(() => s && "IntersectionObserver" in s);
969
990
  let c = z;
970
- const f = n.value ? C(() => ({
971
- el: J(e),
972
- root: J(o)
991
+ const f = n.value ? P(() => ({
992
+ el: T(e),
993
+ root: T(o)
973
994
  }), ({ el: m, root: i }) => {
974
995
  if (c(), !m)
975
996
  return;
@@ -984,38 +1005,38 @@ function Ae(e, l, t = {}) {
984
1005
  }, { immediate: !0, flush: "post" }) : z, u = () => {
985
1006
  c(), f();
986
1007
  };
987
- return G(u), {
1008
+ return Q(u), {
988
1009
  isSupported: n,
989
1010
  stop: u
990
1011
  };
991
1012
  }
992
- R.mounted + "";
993
- var Ol = Object.defineProperty, Il = Object.defineProperties, Bl = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, El = Object.prototype.hasOwnProperty, Ll = Object.prototype.propertyIsEnumerable, De = (e, l, t) => l in e ? Ol(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Cl = (e, l) => {
1013
+ M.mounted + "";
1014
+ var kl = Object.defineProperty, jl = Object.defineProperties, $l = Object.getOwnPropertyDescriptors, Ae = Object.getOwnPropertySymbols, Vl = Object.prototype.hasOwnProperty, xl = Object.prototype.propertyIsEnumerable, Fe = (e, l, t) => l in e ? kl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Il = (e, l) => {
994
1015
  for (var t in l || (l = {}))
995
- El.call(l, t) && De(e, t, l[t]);
996
- if (Fe)
997
- for (var t of Fe(l))
998
- Ll.call(l, t) && De(e, t, l[t]);
1016
+ Vl.call(l, t) && Fe(e, t, l[t]);
1017
+ if (Ae)
1018
+ for (var t of Ae(l))
1019
+ xl.call(l, t) && Fe(e, t, l[t]);
999
1020
  return e;
1000
- }, Pl = (e, l) => Il(e, Bl(l));
1001
- R.mounted + "";
1002
- function Ye(e) {
1021
+ }, Ol = (e, l) => jl(e, $l(l));
1022
+ M.mounted + "";
1023
+ function Qe(e) {
1003
1024
  const l = window.getComputedStyle(e);
1004
1025
  if (l.overflowX === "scroll" || l.overflowY === "scroll" || l.overflowX === "auto" && e.clientHeight < e.scrollHeight || l.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1005
1026
  return !0;
1006
1027
  {
1007
1028
  const t = e.parentNode;
1008
- return !t || t.tagName === "BODY" ? !1 : Ye(t);
1029
+ return !t || t.tagName === "BODY" ? !1 : Qe(t);
1009
1030
  }
1010
1031
  }
1011
- function Jl(e) {
1032
+ function Bl(e) {
1012
1033
  const l = e || window.event, t = l.target;
1013
- return Ye(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1034
+ return Qe(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1014
1035
  }
1015
- function Tl(e, l = !1) {
1036
+ function El(e, l = !1) {
1016
1037
  const t = g(l);
1017
1038
  let o = null, a;
1018
- C(Qt(e), (n) => {
1039
+ P(Ht(e), (n) => {
1019
1040
  if (n) {
1020
1041
  const c = n;
1021
1042
  a = c.style.overflow, t.value && (c.style.overflow = "hidden");
@@ -1024,15 +1045,15 @@ function Tl(e, l = !1) {
1024
1045
  immediate: !0
1025
1046
  });
1026
1047
  const r = () => {
1027
- const n = P(e);
1028
- !n || t.value || (ee && (o = A(n, "touchmove", (c) => {
1029
- Jl(c);
1048
+ const n = J(e);
1049
+ !n || t.value || (le && (o = A(n, "touchmove", (c) => {
1050
+ Bl(c);
1030
1051
  }, { passive: !1 })), n.style.overflow = "hidden", t.value = !0);
1031
1052
  }, s = () => {
1032
- const n = P(e);
1033
- !n || !t.value || (ee && (o == null || o()), n.style.overflow = a, t.value = !1);
1053
+ const n = J(e);
1054
+ !n || !t.value || (le && (o == null || o()), n.style.overflow = a, t.value = !1);
1034
1055
  };
1035
- return G(s), I({
1056
+ return Q(s), B({
1036
1057
  get() {
1037
1058
  return t.value;
1038
1059
  },
@@ -1041,25 +1062,25 @@ function Tl(e, l = !1) {
1041
1062
  }
1042
1063
  });
1043
1064
  }
1044
- const ql = () => {
1065
+ const Ll = () => {
1045
1066
  let e = !1;
1046
1067
  const l = g(!1);
1047
1068
  return (t, o) => {
1048
1069
  if (l.value = o.value, e)
1049
1070
  return;
1050
1071
  e = !0;
1051
- const a = Tl(t, o.value);
1052
- C(l, (r) => a.value = r);
1072
+ const a = El(t, o.value);
1073
+ P(l, (r) => a.value = r);
1053
1074
  };
1054
1075
  };
1055
- ql();
1056
- const Xe = ["medium", "small"], zl = {
1076
+ Ll();
1077
+ const Ze = ["medium", "small"], Cl = {
1057
1078
  key: 0,
1058
1079
  class: "joy-dropdown-list__header"
1059
- }, Al = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Fl = {
1080
+ }, Pl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Jl = {
1060
1081
  key: 1,
1061
1082
  class: "joy-dropdown-list__footer"
1062
- }, Dl = /* @__PURE__ */ $({
1083
+ }, Tl = /* @__PURE__ */ $({
1063
1084
  __name: "VJoyDropdownList",
1064
1085
  props: {
1065
1086
  /**
@@ -1078,7 +1099,7 @@ const Xe = ["medium", "small"], zl = {
1078
1099
  type: String,
1079
1100
  default: "medium",
1080
1101
  validator(e) {
1081
- return Xe.includes(e);
1102
+ return Ze.includes(e);
1082
1103
  }
1083
1104
  },
1084
1105
  modelValue: {
@@ -1095,7 +1116,7 @@ const Xe = ["medium", "small"], zl = {
1095
1116
  },
1096
1117
  emits: ["update:modelValue", "close:dropdownList"],
1097
1118
  setup(e, { expose: l, emit: t }) {
1098
- const o = e, a = g(), r = I(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1119
+ const o = e, a = g(), r = B(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1099
1120
  function s(i) {
1100
1121
  i.disabled || t("update:modelValue", i.value || i.id);
1101
1122
  }
@@ -1124,9 +1145,9 @@ const Xe = ["medium", "small"], zl = {
1124
1145
  }
1125
1146
  if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1126
1147
  const d = n(), j = f();
1127
- let S = d.indexOf(j);
1148
+ let k = d.indexOf(j);
1128
1149
  if (d.length) {
1129
- i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), m(d[S]);
1150
+ i.preventDefault(), i.key === "ArrowDown" ? k++ : i.key === "ArrowUp" ? k-- : i.key === "Home" ? k = 0 : i.key === "End" && (k = d.length - 1), k < 0 && (k = d.length - 1), k > d.length - 1 && (k = 0), m(d[k]);
1130
1151
  return;
1131
1152
  }
1132
1153
  }
@@ -1134,35 +1155,35 @@ const Xe = ["medium", "small"], zl = {
1134
1155
  function m(i) {
1135
1156
  i.focus();
1136
1157
  }
1137
- return Z(() => {
1158
+ return X(() => {
1138
1159
  window.addEventListener("keydown", u), c();
1139
- }), Ne(() => {
1160
+ }), Me(() => {
1140
1161
  window.removeEventListener("keydown", u);
1141
1162
  }), l({
1142
1163
  isSelected: r
1143
1164
  }), (i, y) => (v(), p("div", {
1144
1165
  class: "joy-dropdown-list",
1145
- style: K({ width: `${e.width}px`, "max-width": `${e.width}px` })
1166
+ style: Z({ width: `${e.width}px`, "max-width": `${e.width}px` })
1146
1167
  }, [
1147
- i.$slots["dropdown-list-header"] ? (v(), p("header", zl, [
1148
- b(i.$slots, "dropdown-list-header", {}, void 0, !0)
1168
+ i.$slots["dropdown-list-header"] ? (v(), p("header", Cl, [
1169
+ h(i.$slots, "dropdown-list-header", {}, void 0, !0)
1149
1170
  ])) : w("", !0),
1150
- h("div", {
1151
- class: k(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1152
- style: K({ "max-height": `${e.height}px` })
1171
+ b("div", {
1172
+ class: S(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1173
+ style: Z({ "max-height": `${e.height}px` })
1153
1174
  }, [
1154
- b(i.$slots, "dropdown-list-items", {}, void 0, !0),
1175
+ h(i.$slots, "dropdown-list-items", {}, void 0, !0),
1155
1176
  e.options.length ? (v(), p("ul", {
1156
1177
  key: 0,
1157
1178
  ref_key: "listbox",
1158
1179
  ref: a,
1159
1180
  role: "listbox"
1160
1181
  }, [
1161
- (v(!0), p(ye, null, me(e.options, (d) => (v(), p("li", {
1182
+ (v(!0), p(fe, null, ye(e.options, (d) => (v(), p("li", {
1162
1183
  id: d.id,
1163
1184
  key: d.label,
1164
- style: K({ "max-width": `${e.width}px` }),
1165
- class: k([
1185
+ style: Z({ "max-width": `${e.width}px` }),
1186
+ class: S([
1166
1187
  "joy-dropdown-list__item",
1167
1188
  `joy-dropdown-list__item--${e.size}`,
1168
1189
  {
@@ -1179,28 +1200,28 @@ const Xe = ["medium", "small"], zl = {
1179
1200
  role: "option",
1180
1201
  onClick: (j) => s(d)
1181
1202
  }, [
1182
- b(i.$slots, "label", ve(pe(d)), () => [
1183
- h("span", null, x(d.label), 1)
1203
+ h(i.$slots, "label", me(ve(d)), () => [
1204
+ b("span", null, I(d.label), 1)
1184
1205
  ], !0)
1185
- ], 14, Al))), 128))
1206
+ ], 14, Pl))), 128))
1186
1207
  ], 512)) : w("", !0)
1187
1208
  ], 6),
1188
- i.$slots["dropdown-list-footer"] ? (v(), p("footer", Fl, [
1189
- b(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1209
+ i.$slots["dropdown-list-footer"] ? (v(), p("footer", Jl, [
1210
+ h(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1190
1211
  ])) : w("", !0)
1191
1212
  ], 4));
1192
1213
  }
1193
1214
  });
1194
- const et = /* @__PURE__ */ V(Dl, [["__scopeId", "data-v-63134a7f"]]);
1195
- function Rl(e) {
1215
+ const Ye = /* @__PURE__ */ V(Tl, [["__scopeId", "data-v-63134a7f"]]);
1216
+ function ql(e) {
1196
1217
  const l = () => e();
1197
- Z(() => {
1218
+ X(() => {
1198
1219
  window.addEventListener("resize", l);
1199
- }), Ne(() => {
1220
+ }), Me(() => {
1200
1221
  window.removeEventListener("resize", l);
1201
1222
  });
1202
1223
  }
1203
- const Ml = /* @__PURE__ */ $({
1224
+ const zl = /* @__PURE__ */ $({
1204
1225
  __name: "VJoyDropdown",
1205
1226
  props: {
1206
1227
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1248,7 +1269,7 @@ const Ml = /* @__PURE__ */ $({
1248
1269
  type: String,
1249
1270
  default: "medium",
1250
1271
  validator(e) {
1251
- return Xe.includes(e);
1272
+ return Ze.includes(e);
1252
1273
  }
1253
1274
  },
1254
1275
  modelValue: {
@@ -1283,7 +1304,7 @@ const Ml = /* @__PURE__ */ $({
1283
1304
  ignore: [s, ".joy-dropdown__list"]
1284
1305
  };
1285
1306
  let m = null;
1286
- const i = X({
1307
+ const i = te({
1287
1308
  left: "auto",
1288
1309
  top: "0px",
1289
1310
  right: "auto"
@@ -1294,40 +1315,40 @@ const Ml = /* @__PURE__ */ $({
1294
1315
  }, 300);
1295
1316
  }
1296
1317
  function d(O) {
1297
- f.value = !1, m && clearTimeout(m), Y(), c.value = O.target, a.value = !0, t("dropdown:open");
1318
+ f.value = !1, m && clearTimeout(m), ee(), c.value = O.target, a.value = !0, t("dropdown:open");
1298
1319
  }
1299
1320
  function j() {
1300
- y(), S();
1321
+ y(), k();
1301
1322
  }
1302
- function S() {
1323
+ function k() {
1303
1324
  c.value && c.value.focus();
1304
1325
  }
1305
- function Y() {
1306
- const O = s.value.getBoundingClientRect(), B = document.documentElement.scrollTop + O.top, q = O.height, D = O.left, F = O.width;
1307
- o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = B + q + parseInt(o.dropdownGap) + "px" : i.top = B - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
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";
1308
1329
  }
1309
1330
  function oe(O) {
1310
- t("update:modelValue", O), o.closeOnSelect && (y(), S());
1331
+ t("update:modelValue", O), o.closeOnSelect && (y(), k());
1311
1332
  }
1312
- return Rl(y), l({
1333
+ return ql(y), l({
1313
1334
  showDropdownList: a
1314
- }), (O, B) => (v(), T(_(ul), {
1335
+ }), (O, E) => (v(), x(_(nl), {
1315
1336
  ref_key: "dropdown",
1316
1337
  ref: r,
1317
1338
  options: u,
1318
1339
  class: "joy-dropdown",
1319
1340
  onTrigger: y
1320
1341
  }, {
1321
- default: E(() => [
1322
- h("div", {
1342
+ default: L(() => [
1343
+ b("div", {
1323
1344
  ref_key: "button",
1324
1345
  ref: s,
1325
1346
  class: "joy-dropdown__button",
1326
1347
  onClick: d
1327
1348
  }, [
1328
- b(O.$slots, "dropdown-button", {}, void 0, !0)
1349
+ h(O.$slots, "dropdown-button", {}, void 0, !0)
1329
1350
  ], 512),
1330
- (v(), T(st, {
1351
+ (v(), x(it, {
1331
1352
  to: e.appendTo,
1332
1353
  disabled: e.disableTeleport
1333
1354
  }, [
@@ -1335,7 +1356,7 @@ const Ml = /* @__PURE__ */ $({
1335
1356
  key: 0,
1336
1357
  ref_key: "list",
1337
1358
  ref: n,
1338
- class: k([
1359
+ class: S([
1339
1360
  "joy-dropdown__list",
1340
1361
  `joy-dropdown__list--${e.direction}`,
1341
1362
  {
@@ -1343,12 +1364,12 @@ const Ml = /* @__PURE__ */ $({
1343
1364
  "joy-dropdown__list--hiding": f.value
1344
1365
  }
1345
1366
  ]),
1346
- style: K({
1367
+ style: Z({
1347
1368
  top: i.top,
1348
1369
  left: i.left
1349
1370
  })
1350
1371
  }, [
1351
- fe(et, {
1372
+ N(Ye, {
1352
1373
  "model-value": e.modelValue,
1353
1374
  options: e.options,
1354
1375
  size: e.size,
@@ -1356,32 +1377,32 @@ const Ml = /* @__PURE__ */ $({
1356
1377
  height: e.height,
1357
1378
  "onUpdate:modelValue": oe,
1358
1379
  "onClose:dropdownList": j
1359
- }, He({
1360
- label: E((q) => [
1361
- b(O.$slots, "dropdown-item", ve(pe(q)), () => [
1362
- h("span", null, x(q.label), 1)
1380
+ }, Ne({
1381
+ label: L((q) => [
1382
+ h(O.$slots, "dropdown-item", me(ve(q)), () => [
1383
+ b("span", null, I(q.label), 1)
1363
1384
  ], !0)
1364
1385
  ]),
1365
1386
  _: 2
1366
1387
  }, [
1367
1388
  O.$slots["dropdown-header"] ? {
1368
1389
  name: "dropdown-list-header",
1369
- fn: E(() => [
1370
- b(O.$slots, "dropdown-header", {}, void 0, !0)
1390
+ fn: L(() => [
1391
+ h(O.$slots, "dropdown-header", {}, void 0, !0)
1371
1392
  ]),
1372
1393
  key: "0"
1373
1394
  } : void 0,
1374
1395
  O.$slots["dropdown-items"] ? {
1375
1396
  name: "dropdown-list-items",
1376
- fn: E(() => [
1377
- b(O.$slots, "dropdown-items", {}, void 0, !0)
1397
+ fn: L(() => [
1398
+ h(O.$slots, "dropdown-items", {}, void 0, !0)
1378
1399
  ]),
1379
1400
  key: "1"
1380
1401
  } : void 0,
1381
1402
  O.$slots["dropdown-footer"] ? {
1382
1403
  name: "dropdown-list-footer",
1383
- fn: E(() => [
1384
- b(O.$slots, "dropdown-footer", {}, void 0, !0)
1404
+ fn: L(() => [
1405
+ h(O.$slots, "dropdown-footer", {}, void 0, !0)
1385
1406
  ]),
1386
1407
  key: "2"
1387
1408
  } : void 0
@@ -1393,10 +1414,7 @@ const Ml = /* @__PURE__ */ $({
1393
1414
  }, 512));
1394
1415
  }
1395
1416
  });
1396
- const Nl = /* @__PURE__ */ V(Ml, [["__scopeId", "data-v-2657fbc4"]]), Hl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Wl = ["aria-hidden"], Ul = /* @__PURE__ */ Hl(() => /* @__PURE__ */ h("joy-icon", {
1397
- "custom-class": "joy-icon-error",
1398
- name: "warning-triangle"
1399
- }, null, -1)), Gl = /* @__PURE__ */ $({
1417
+ const Al = /* @__PURE__ */ V(zl, [["__scopeId", "data-v-2657fbc4"]]), Fl = ["aria-hidden"], Dl = /* @__PURE__ */ $({
1400
1418
  __name: "VJoyFormError",
1401
1419
  props: {
1402
1420
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1410,20 +1428,23 @@ const Nl = /* @__PURE__ */ V(Ml, [["__scopeId", "data-v-2657fbc4"]]), Hl = (e) =
1410
1428
  setup(e) {
1411
1429
  return (l, t) => (v(), p("div", {
1412
1430
  "aria-hidden": e.visible,
1413
- class: k(["joy-form-error", { "joy-has-error": e.visible }]),
1431
+ class: S(["joy-form-error", { "joy-has-error": e.visible }]),
1414
1432
  role: "alert"
1415
1433
  }, [
1416
- Ul,
1417
- h("div", null, [
1418
- b(l.$slots, "default", {}, () => [
1419
- L(x(e.noHtmlErrorText), 1)
1434
+ N(D, {
1435
+ class: "joy-icon-error",
1436
+ name: "warning-triangle"
1437
+ }),
1438
+ b("div", null, [
1439
+ h(l.$slots, "default", {}, () => [
1440
+ C(I(e.noHtmlErrorText), 1)
1420
1441
  ], !0)
1421
1442
  ])
1422
- ], 10, Wl));
1443
+ ], 10, Fl));
1423
1444
  }
1424
1445
  });
1425
- const tt = /* @__PURE__ */ V(Gl, [["__scopeId", "data-v-50e209d6"]]);
1426
- function Kl(e) {
1446
+ const Xe = /* @__PURE__ */ V(Dl, [["__scopeId", "data-v-581fd33b"]]);
1447
+ function Rl(e) {
1427
1448
  let l;
1428
1449
  switch (e) {
1429
1450
  case "error":
@@ -1437,7 +1458,7 @@ function Kl(e) {
1437
1458
  }
1438
1459
  return l;
1439
1460
  }
1440
- const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /* @__PURE__ */ $({
1461
+ const Ml = [...bt], Nl = { class: "joy-highlight--text" }, Hl = /* @__PURE__ */ $({
1441
1462
  __name: "VJoyHighlight",
1442
1463
  props: {
1443
1464
  accent: {
@@ -1448,21 +1469,23 @@ const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /
1448
1469
  type: Boolean,
1449
1470
  default: !1
1450
1471
  },
1451
- icon: String,
1472
+ icon: {
1473
+ type: String
1474
+ },
1452
1475
  level: {
1453
1476
  type: String,
1454
1477
  default: "neutral",
1455
1478
  validator(e) {
1456
- return Ql.includes(e);
1479
+ return Ml.includes(e);
1457
1480
  }
1458
1481
  }
1459
1482
  },
1460
1483
  setup(e, { expose: l }) {
1461
- const t = e, o = I(() => t.icon ? t.icon : Kl(t.level));
1484
+ const t = e, o = B(() => t.icon ? t.icon : Rl(t.level));
1462
1485
  return l({
1463
1486
  getRelevantIcon: o
1464
1487
  }), (a, r) => (v(), p("div", {
1465
- class: k([
1488
+ class: S([
1466
1489
  "joy-highlight",
1467
1490
  `joy-highlight_${e.level}`,
1468
1491
  {
@@ -1471,33 +1494,33 @@ const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /
1471
1494
  }
1472
1495
  ])
1473
1496
  }, [
1474
- e.displayIcon ? (v(), p("joy-icon", {
1497
+ e.displayIcon ? (v(), x(D, {
1475
1498
  key: 0,
1476
1499
  name: _(o)
1477
- }, null, 8, Zl)) : w("", !0),
1478
- h("div", Yl, [
1479
- h("strong", null, [
1480
- b(a.$slots, "highlight-title", {}, void 0, !0)
1500
+ }, null, 8, ["name"])) : w("", !0),
1501
+ b("div", Nl, [
1502
+ b("strong", null, [
1503
+ h(a.$slots, "highlight-title", {}, void 0, !0)
1481
1504
  ]),
1482
- b(a.$slots, "default", {}, void 0, !0)
1505
+ h(a.$slots, "default", {}, void 0, !0)
1483
1506
  ])
1484
1507
  ], 2));
1485
1508
  }
1486
1509
  });
1487
- const eo = /* @__PURE__ */ V(Xl, [["__scopeId", "data-v-a0ff7a60"]]), to = ["small", "medium", "large"], lo = {
1510
+ const Wl = /* @__PURE__ */ V(Hl, [["__scopeId", "data-v-aac4eb8a"]]), Ul = ["small", "medium", "large"], Gl = {
1488
1511
  key: 0,
1489
1512
  class: "joy-label-required"
1490
- }, oo = {
1513
+ }, Kl = {
1491
1514
  key: 1,
1492
1515
  class: "joy-label-optional"
1493
- }, no = /* @__PURE__ */ $({
1516
+ }, Ql = /* @__PURE__ */ $({
1494
1517
  __name: "VJoyLabel",
1495
1518
  props: {
1496
1519
  size: {
1497
1520
  type: String,
1498
1521
  default: "medium",
1499
1522
  validator(e) {
1500
- return to.includes(e);
1523
+ return Ul.includes(e);
1501
1524
  }
1502
1525
  },
1503
1526
  tagName: {
@@ -1514,21 +1537,24 @@ const eo = /* @__PURE__ */ V(Xl, [["__scopeId", "data-v-a0ff7a60"]]), to = ["sma
1514
1537
  text: String
1515
1538
  },
1516
1539
  setup(e) {
1517
- return (l, t) => (v(), T(ce(e.tagName), Q({
1540
+ return (l, t) => (v(), x(ce(e.tagName), Y({
1518
1541
  class: ["joy-label", `joy-label--${e.size}`]
1519
1542
  }, l.$attrs), {
1520
- default: E(() => [
1521
- b(l.$slots, "default", {}, () => [
1522
- L(x(e.text), 1)
1543
+ default: L(() => [
1544
+ h(l.$slots, "default", {}, () => [
1545
+ C(I(e.text), 1)
1523
1546
  ], !0),
1524
- e.required ? (v(), p("span", lo, "*")) : w("", !0),
1525
- e.optionalLabel ? (v(), p("span", oo, "- " + x(e.optionalLabel), 1)) : w("", !0)
1547
+ e.required ? (v(), p("span", Gl, "*")) : w("", !0),
1548
+ e.optionalLabel ? (v(), p("span", Kl, "- " + I(e.optionalLabel), 1)) : w("", !0)
1526
1549
  ]),
1527
1550
  _: 3
1528
1551
  }, 16, ["class"]));
1529
1552
  }
1530
1553
  });
1531
- const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["large", "medium", "small"], io = ["id", "disabled", "type", "value"], ro = ["name"], so = ["data-unit"], uo = /* @__PURE__ */ $({
1554
+ const W = /* @__PURE__ */ V(Ql, [["__scopeId", "data-v-1265214a"]]), Zl = ["large", "medium", "small"], Yl = ["id", "disabled", "type", "value"], Xl = ["data-unit"], eo = {
1555
+ inheritAttrs: !1
1556
+ }, to = /* @__PURE__ */ $({
1557
+ ...eo,
1532
1558
  __name: "VJoyInput",
1533
1559
  props: {
1534
1560
  disabled: {
@@ -1573,12 +1599,14 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
1573
1599
  default: !1
1574
1600
  },
1575
1601
  /** Add a JoyIcon / joy-icon with given name on left-side. */
1576
- icon: String,
1602
+ icon: {
1603
+ type: String
1604
+ },
1577
1605
  size: {
1578
1606
  type: String,
1579
1607
  default: "medium",
1580
1608
  validator(e) {
1581
- return ao.includes(e);
1609
+ return Zl.includes(e);
1582
1610
  }
1583
1611
  },
1584
1612
  type: String,
@@ -1587,11 +1615,11 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
1587
1615
  },
1588
1616
  emits: ["update:modelValue"],
1589
1617
  setup(e, { emit: l }) {
1590
- const t = e, o = g(), a = g(), r = Re(), s = W(), n = g(!1), c = I(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), f = I(() => s.default && s.default()), u = I(() => {
1618
+ const t = e, o = g(), a = g(), r = De(), s = G(), n = g(!1), c = B(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), f = B(() => s.default && s.default()), u = B(() => {
1591
1619
  var y, d;
1592
1620
  return !!((y = a.value) != null && y.closest("joy-wrapper")) || !!((d = a.value) != null && d.closest(".joy-wrapper"));
1593
1621
  }), m = g(t.type);
1594
- ut(() => {
1622
+ rt(() => {
1595
1623
  m.value = t.unit ? "number" : t.unit || "text";
1596
1624
  });
1597
1625
  const i = {
@@ -1612,10 +1640,10 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
1612
1640
  return (y, d) => (v(), p("div", {
1613
1641
  ref_key: "root",
1614
1642
  ref: a,
1615
- class: k([`joy-input--${t.size}`])
1643
+ class: S([`joy-input--${t.size}`])
1616
1644
  }, [
1617
- h("div", {
1618
- class: k([
1645
+ b("div", {
1646
+ class: S([
1619
1647
  "joy-input",
1620
1648
  {
1621
1649
  "joy-input--focusing": n.value,
@@ -1625,22 +1653,22 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
1625
1653
  }
1626
1654
  ])
1627
1655
  }, [
1628
- _(f) || e.label ? (v(), T(N, {
1656
+ _(f) || e.label ? (v(), x(W, {
1629
1657
  key: 0,
1630
1658
  for: e.name,
1631
1659
  required: e.required && e.requiredMark,
1632
1660
  "optional-label": e.optionalLabel,
1633
1661
  size: e.labelSize
1634
1662
  }, {
1635
- default: E(() => [
1636
- b(y.$slots, "default", {}, () => [
1637
- L(x(e.label), 1)
1663
+ default: L(() => [
1664
+ h(y.$slots, "default", {}, () => [
1665
+ C(I(e.label), 1)
1638
1666
  ], !0)
1639
1667
  ]),
1640
1668
  _: 3
1641
1669
  }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
1642
- h("div", {
1643
- class: k([
1670
+ b("div", {
1671
+ class: S([
1644
1672
  "joy-input--wrapper",
1645
1673
  {
1646
1674
  "joy-input--wrapper-has-icon": !!e.icon,
@@ -1650,7 +1678,7 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
1650
1678
  }
1651
1679
  ])
1652
1680
  }, [
1653
- h("input", Q(y.$attrs, {
1681
+ b("input", Y(y.$attrs, {
1654
1682
  id: t.name,
1655
1683
  ref_key: "input",
1656
1684
  ref: o,
@@ -1669,32 +1697,31 @@ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["larg
1669
1697
  (...j) => i.onBlur && i.onBlur(...j)),
1670
1698
  onInput: d[2] || (d[2] = //@ts-ignore
1671
1699
  (...j) => i.onInput && i.onInput(...j))
1672
- }), null, 16, io),
1673
- _(c) ? (v(), p("joy-icon", {
1700
+ }), null, 16, Yl),
1701
+ _(c) ? (v(), x(D, {
1674
1702
  key: 0,
1675
1703
  size: "xxsmall",
1676
1704
  name: "cross",
1677
1705
  class: "joy-input--clear",
1678
- onClick: d[3] || (d[3] = //@ts-ignore
1679
- (...j) => i.clearValue && i.clearValue(...j))
1680
- })) : w("", !0),
1681
- e.icon && !e.clearable ? (v(), p("joy-icon", {
1706
+ onClick: i.clearValue
1707
+ }, null, 8, ["onClick"])) : w("", !0),
1708
+ e.icon && !e.clearable ? (v(), x(D, {
1682
1709
  key: 1,
1683
1710
  role: "img",
1684
1711
  class: "joy-input--decorative-icon",
1685
1712
  name: e.icon
1686
- }, null, 8, ro)) : w("", !0),
1713
+ }, null, 8, ["name"])) : w("", !0),
1687
1714
  e.unit ? (v(), p("div", {
1688
1715
  key: 2,
1689
1716
  "data-unit": e.unit,
1690
1717
  class: "joy-input--unit"
1691
- }, null, 8, so)) : w("", !0)
1718
+ }, null, 8, Xl)) : w("", !0)
1692
1719
  ], 2)
1693
1720
  ], 2)
1694
1721
  ], 2));
1695
1722
  }
1696
1723
  });
1697
- const co = /* @__PURE__ */ V(uo, [["__scopeId", "data-v-4155cc79"]]), fo = ["teal", "white"], yo = ["href"], mo = ["color", "name"], vo = /* @__PURE__ */ $({
1724
+ const lo = /* @__PURE__ */ V(to, [["__scopeId", "data-v-b6f3034b"]]), oo = ["teal", "white"], no = ["href"], ao = /* @__PURE__ */ $({
1698
1725
  __name: "VJoyLink",
1699
1726
  props: {
1700
1727
  href: {
@@ -1705,31 +1732,31 @@ const co = /* @__PURE__ */ V(uo, [["__scopeId", "data-v-4155cc79"]]), fo = ["tea
1705
1732
  type: String,
1706
1733
  default: "teal",
1707
1734
  validator(e) {
1708
- return fo.includes(e);
1735
+ return oo.includes(e);
1709
1736
  }
1710
1737
  },
1711
- icon: String,
1738
+ icon: {
1739
+ type: String
1740
+ },
1712
1741
  text: String
1713
1742
  },
1714
1743
  setup(e) {
1715
- const l = e, t = I(() => l.color === "white" ? "white" : "teal");
1716
- return (o, a) => (v(), p("a", Q({ href: e.href }, o.$attrs, {
1744
+ return (l, t) => (v(), p("a", Y({ href: e.href }, l.$attrs, {
1717
1745
  class: ["joy-link", `joy-link_${e.color}`]
1718
1746
  }), [
1719
- e.icon ? (v(), p("joy-icon", {
1747
+ e.icon ? (v(), x(D, {
1720
1748
  key: 0,
1721
- color: _(t),
1722
1749
  name: e.icon
1723
- }, null, 8, mo)) : w("", !0),
1724
- b(o.$slots, "default", {}, () => [
1725
- L(x(e.text), 1)
1750
+ }, null, 8, ["name"])) : w("", !0),
1751
+ h(l.$slots, "default", {}, () => [
1752
+ C(I(e.text), 1)
1726
1753
  ], !0)
1727
- ], 16, yo));
1754
+ ], 16, no));
1728
1755
  }
1729
1756
  });
1730
- const po = /* @__PURE__ */ V(vo, [["__scopeId", "data-v-920769ba"]]), ho = ["id"], bo = {
1731
- class: /* @__PURE__ */ k(["joy-multi-checkbox"])
1732
- }, go = /* @__PURE__ */ $({
1757
+ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-a8db21c2"]]), ro = ["id"], so = {
1758
+ class: /* @__PURE__ */ S(["joy-multi-checkbox"])
1759
+ }, uo = /* @__PURE__ */ $({
1733
1760
  __name: "VJoyMultiCheckbox",
1734
1761
  props: {
1735
1762
  options: {
@@ -1776,20 +1803,20 @@ const po = /* @__PURE__ */ V(vo, [["__scopeId", "data-v-920769ba"]]), ho = ["id"
1776
1803
  id: e.id,
1777
1804
  class: "joy-multi-checkbox__wrapper"
1778
1805
  }, [
1779
- e.label ? (v(), T(_(N), {
1806
+ e.label ? (v(), x(_(W), {
1780
1807
  key: 0,
1781
1808
  "tag-name": "legend",
1782
1809
  required: e.required && e.requiredMark,
1783
1810
  "optional-label": e.optionalLabel,
1784
1811
  size: e.labelSize
1785
1812
  }, {
1786
- default: E(() => [
1787
- L(x(e.label), 1)
1813
+ default: L(() => [
1814
+ C(I(e.label), 1)
1788
1815
  ]),
1789
1816
  _: 1
1790
1817
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
1791
- h("div", bo, [
1792
- (v(!0), p(ye, null, me(e.options, (n) => (v(), T(_(he), {
1818
+ b("div", so, [
1819
+ (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(_(pe), {
1793
1820
  id: n.id,
1794
1821
  key: n.id,
1795
1822
  name: n.name,
@@ -1797,30 +1824,30 @@ const po = /* @__PURE__ */ V(vo, [["__scopeId", "data-v-920769ba"]]), ho = ["id"
1797
1824
  checked: o(n),
1798
1825
  "onUpdate:checked": (c) => a(n.value, c)
1799
1826
  }, {
1800
- default: E(() => [
1801
- b(r.$slots, "checkbox", ve(pe(n)), () => [
1802
- L(x(n.label), 1)
1827
+ default: L(() => [
1828
+ h(r.$slots, "checkbox", me(ve(n)), () => [
1829
+ C(I(n.label), 1)
1803
1830
  ], !0)
1804
1831
  ]),
1805
1832
  _: 2
1806
1833
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1807
1834
  ])
1808
- ], 8, ho));
1835
+ ], 8, ro));
1809
1836
  }
1810
1837
  });
1811
- const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-47574ced"]]), wo = ["small", "medium", "large"], So = ["small", "large"], jo = {
1838
+ const co = /* @__PURE__ */ V(uo, [["__scopeId", "data-v-47574ced"]]), fo = ["small", "medium", "large"], yo = ["small", "large"], mo = {
1812
1839
  key: 0,
1813
- class: /* @__PURE__ */ k(["joy-panel__header"])
1814
- }, ko = {
1840
+ class: /* @__PURE__ */ S(["joy-panel__header"])
1841
+ }, vo = {
1815
1842
  key: 1,
1816
1843
  class: "joy-panel__header-action"
1817
- }, $o = {
1844
+ }, po = {
1818
1845
  key: 2,
1819
1846
  class: "joy-panel__header-subtitle"
1820
- }, Vo = { class: "joy-panel__body" }, xo = {
1847
+ }, ho = { class: "joy-panel__body" }, bo = {
1821
1848
  key: 1,
1822
1849
  class: "joy-panel__footer"
1823
- }, Oo = /* @__PURE__ */ $({
1850
+ }, go = /* @__PURE__ */ $({
1824
1851
  __name: "VJoyPanel",
1825
1852
  props: {
1826
1853
  flex: {
@@ -1834,24 +1861,24 @@ const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-47574ced"]]), wo = ["sma
1834
1861
  type: String,
1835
1862
  default: "medium",
1836
1863
  validator(e) {
1837
- return wo.includes(e);
1864
+ return fo.includes(e);
1838
1865
  }
1839
1866
  },
1840
1867
  titleSize: {
1841
1868
  type: String,
1842
1869
  default: "large",
1843
1870
  validator(e) {
1844
- return So.includes(e);
1871
+ return yo.includes(e);
1845
1872
  }
1846
1873
  }
1847
1874
  },
1848
1875
  setup(e) {
1849
- const l = dt("VJoyWrapperContext", {}), t = I(() => Object.keys(l).length > 0), o = W(), a = g(), r = I(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1876
+ const l = st("VJoyWrapperContext", {}), t = B(() => Object.keys(l).length > 0), o = G(), a = g(), r = B(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1850
1877
  return (s, n) => (v(), p("section", {
1851
1878
  ref_key: "panel",
1852
1879
  ref: a,
1853
- style: K({ flex: e.flex }),
1854
- class: k([
1880
+ style: Z({ flex: e.flex }),
1881
+ class: S([
1855
1882
  "joy-panel",
1856
1883
  `joy-panel--${e.padding}`,
1857
1884
  {
@@ -1859,50 +1886,50 @@ const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-47574ced"]]), wo = ["sma
1859
1886
  }
1860
1887
  ])
1861
1888
  }, [
1862
- _(r) ? (v(), p("header", jo, [
1889
+ _(r) ? (v(), p("header", mo, [
1863
1890
  _(o)["panel-title"] ? (v(), p("div", {
1864
1891
  key: 0,
1865
- class: k(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1892
+ class: S(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1866
1893
  }, [
1867
- b(s.$slots, "panel-title", {}, void 0, !0)
1894
+ h(s.$slots, "panel-title", {}, void 0, !0)
1868
1895
  ], 2)) : w("", !0),
1869
- _(o)["panel-title-action"] ? (v(), p("div", ko, [
1870
- b(s.$slots, "panel-title-action", {}, void 0, !0)
1896
+ _(o)["panel-title-action"] ? (v(), p("div", vo, [
1897
+ h(s.$slots, "panel-title-action", {}, void 0, !0)
1871
1898
  ])) : w("", !0),
1872
- _(o)["panel-subtitle"] ? (v(), p("div", $o, [
1873
- b(s.$slots, "panel-subtitle", {}, void 0, !0)
1899
+ _(o)["panel-subtitle"] ? (v(), p("div", po, [
1900
+ h(s.$slots, "panel-subtitle", {}, void 0, !0)
1874
1901
  ])) : w("", !0)
1875
1902
  ])) : w("", !0),
1876
- h("div", Vo, [
1877
- b(s.$slots, "panel-body", {}, void 0, !0)
1903
+ b("div", ho, [
1904
+ h(s.$slots, "panel-body", {}, void 0, !0)
1878
1905
  ]),
1879
- _(o)["panel-action"] ? (v(), p("footer", xo, [
1880
- b(s.$slots, "panel-action", {}, void 0, !0)
1906
+ _(o)["panel-action"] ? (v(), p("footer", bo, [
1907
+ h(s.$slots, "panel-action", {}, void 0, !0)
1881
1908
  ])) : w("", !0)
1882
1909
  ], 6));
1883
1910
  }
1884
1911
  });
1885
- const Io = /* @__PURE__ */ V(Oo, [["__scopeId", "data-v-49d83306"]]), Bo = { class: "joy-panel-section" }, Eo = {
1912
+ const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-49d83306"]]), wo = { class: "joy-panel-section" }, So = {
1886
1913
  key: 0,
1887
1914
  class: "joy-panel-section__title"
1888
- }, Lo = {
1915
+ }, ko = {
1889
1916
  key: 1,
1890
1917
  class: "joy-panel-section__content"
1891
- }, Co = /* @__PURE__ */ $({
1918
+ }, jo = /* @__PURE__ */ $({
1892
1919
  __name: "VJoyPanelSection",
1893
1920
  setup(e) {
1894
- const l = W();
1895
- return (t, o) => (v(), p("div", Bo, [
1896
- _(l)["panel-section-title"] ? (v(), p("div", Eo, [
1897
- b(t.$slots, "panel-section-title", {}, void 0, !0)
1921
+ const l = G();
1922
+ return (t, o) => (v(), p("div", wo, [
1923
+ _(l)["panel-section-title"] ? (v(), p("div", So, [
1924
+ h(t.$slots, "panel-section-title", {}, void 0, !0)
1898
1925
  ])) : w("", !0),
1899
- _(l)["panel-section-content"] ? (v(), p("div", Lo, [
1900
- b(t.$slots, "panel-section-content", {}, void 0, !0)
1926
+ _(l)["panel-section-content"] ? (v(), p("div", ko, [
1927
+ h(t.$slots, "panel-section-content", {}, void 0, !0)
1901
1928
  ])) : w("", !0)
1902
1929
  ]));
1903
1930
  }
1904
1931
  });
1905
- const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id", "value", "checked", "disabled", "required", "name"], To = { class: "joy-radio-label" }, qo = { class: "joy-radio-content__wrapper" }, zo = { class: "joy-radio-content" }, Ao = /* @__PURE__ */ $({
1932
+ const $o = /* @__PURE__ */ V(jo, [["__scopeId", "data-v-d88510ab"]]), Vo = ["id", "value", "checked", "disabled", "required", "name"], xo = { class: "joy-radio-label" }, Io = { class: "joy-radio-content__wrapper" }, Oo = { class: "joy-radio-content" }, Bo = /* @__PURE__ */ $({
1906
1933
  __name: "VJoyRadio",
1907
1934
  props: {
1908
1935
  disabled: {
@@ -1938,14 +1965,14 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
1938
1965
  },
1939
1966
  emits: ["update:modelValue"],
1940
1967
  setup(e, { expose: l, emit: t }) {
1941
- const o = e, a = g(!1), r = g(!1), s = g(null), n = g(null), c = W(), f = I(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1968
+ const o = e, a = g(!1), r = g(!1), s = g(null), n = g(null), c = G(), f = B(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1942
1969
  function u() {
1943
1970
  a.value = !!c["expandable-content"] && f.value;
1944
1971
  }
1945
1972
  function m() {
1946
1973
  t("update:modelValue", o.value), u();
1947
1974
  }
1948
- Z(() => {
1975
+ X(() => {
1949
1976
  o.theme === "outline" && u();
1950
1977
  });
1951
1978
  function i() {
@@ -1954,7 +1981,7 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
1954
1981
  function y() {
1955
1982
  r.value = !1;
1956
1983
  }
1957
- return C(
1984
+ return P(
1958
1985
  () => o.modelValue,
1959
1986
  () => {
1960
1987
  u();
@@ -1965,7 +1992,7 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
1965
1992
  }), (d, j) => (v(), p("label", {
1966
1993
  ref_key: "root",
1967
1994
  ref: s,
1968
- class: k([
1995
+ class: S([
1969
1996
  "joy-radio",
1970
1997
  `joy-radio--${e.theme}`,
1971
1998
  {
@@ -1977,7 +2004,7 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
1977
2004
  }
1978
2005
  ])
1979
2006
  }, [
1980
- h("input", {
2007
+ b("input", {
1981
2008
  id: e.id,
1982
2009
  type: "radio",
1983
2010
  value: e.value,
@@ -1988,26 +2015,26 @@ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id"
1988
2015
  onChange: m,
1989
2016
  onFocus: i,
1990
2017
  onBlur: y
1991
- }, null, 40, Jo),
1992
- h("span", To, [
1993
- b(d.$slots, "default", {}, void 0, !0)
2018
+ }, null, 40, Vo),
2019
+ b("span", xo, [
2020
+ h(d.$slots, "default", {}, void 0, !0)
1994
2021
  ]),
1995
- h("div", qo, [
1996
- h("div", zo, [
1997
- b(d.$slots, "radio-content", {}, void 0, !0)
2022
+ b("div", Io, [
2023
+ b("div", Oo, [
2024
+ h(d.$slots, "radio-content", {}, void 0, !0)
1998
2025
  ]),
1999
- h("div", {
2026
+ b("div", {
2000
2027
  ref_key: "expandableElement",
2001
2028
  ref: n,
2002
- class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
2029
+ class: S(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
2003
2030
  }, [
2004
- b(d.$slots, "expandable-content", {}, void 0, !0)
2031
+ h(d.$slots, "expandable-content", {}, void 0, !0)
2005
2032
  ], 2)
2006
2033
  ])
2007
2034
  ], 2));
2008
2035
  }
2009
2036
  });
2010
- const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-24cea99b"]]), Do = ["form", "name"], Ro = /* @__PURE__ */ $({
2037
+ const Eo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-24cea99b"]]), Lo = ["form", "name"], Co = /* @__PURE__ */ $({
2011
2038
  __name: "VJoyRadioGroup",
2012
2039
  props: {
2013
2040
  direction: {
@@ -2029,19 +2056,16 @@ const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-24cea99b"]]), Do = ["for
2029
2056
  form: e.form,
2030
2057
  name: e.name
2031
2058
  }, [
2032
- b(l.$slots, "radio-group-legend", {}, void 0, !0),
2033
- h("div", {
2034
- class: k(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2059
+ h(l.$slots, "radio-group-legend", {}, void 0, !0),
2060
+ b("div", {
2061
+ class: S(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2035
2062
  }, [
2036
- b(l.$slots, "default", {}, void 0, !0)
2063
+ h(l.$slots, "default", {}, void 0, !0)
2037
2064
  ], 2)
2038
- ], 8, Do));
2065
+ ], 8, Lo));
2039
2066
  }
2040
2067
  });
2041
- const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-ace1a80f"]]), No = (e) => (te("data-v-ab4d0113"), e = e(), le(), e), Ho = ["id", "name", "aria-invalid", "required", "disabled", "value"], Wo = /* @__PURE__ */ No(() => /* @__PURE__ */ h("joy-icon", {
2042
- class: "joy-select__chevron",
2043
- name: "chevron-down"
2044
- }, null, -1)), Uo = /* @__PURE__ */ $({
2068
+ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-ace1a80f"]]), Jo = ["id", "name", "aria-invalid", "required", "disabled", "value"], To = /* @__PURE__ */ $({
2045
2069
  __name: "VJoySelect",
2046
2070
  props: {
2047
2071
  disabled: {
@@ -2082,8 +2106,8 @@ const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-ace1a80f"]]), No = (e) =
2082
2106
  },
2083
2107
  emits: ["update:modelValue"],
2084
2108
  setup(e, { emit: l }) {
2085
- const t = e, o = g(), a = g(), r = W(), s = g(!1);
2086
- Z(() => {
2109
+ const t = e, o = g(), a = g(), r = G(), s = g(!1);
2110
+ X(() => {
2087
2111
  var i;
2088
2112
  const u = r.label && r.label();
2089
2113
  if (!u || !u.length)
@@ -2112,29 +2136,29 @@ const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-ace1a80f"]]), No = (e) =
2112
2136
  ref_key: "root",
2113
2137
  ref: o
2114
2138
  }, [
2115
- b(u.$slots, "select-label", {}, () => [
2116
- e.label ? (v(), T(N, {
2139
+ h(u.$slots, "select-label", {}, () => [
2140
+ e.label ? (v(), x(W, {
2117
2141
  key: 0,
2118
2142
  required: e.required && e.requiredMark,
2119
2143
  "optional-label": e.optionalLabel,
2120
2144
  for: e.id || e.name,
2121
2145
  size: e.labelSize
2122
2146
  }, {
2123
- default: E(() => [
2124
- L(x(e.label), 1)
2147
+ default: L(() => [
2148
+ C(I(e.label), 1)
2125
2149
  ]),
2126
2150
  _: 1
2127
2151
  }, 8, ["required", "optional-label", "for", "size"])) : w("", !0)
2128
2152
  ], !0),
2129
- h("div", {
2130
- class: k({
2153
+ b("div", {
2154
+ class: S({
2131
2155
  "joy-select__wrapper": !0,
2132
2156
  "joy-select--invalid": e.invalid,
2133
2157
  "joy-select--disabled": e.disabled,
2134
2158
  "joy-select--focusing": s.value
2135
2159
  })
2136
2160
  }, [
2137
- h("select", {
2161
+ b("select", {
2138
2162
  id: e.id || e.name,
2139
2163
  ref_key: "select",
2140
2164
  ref: a,
@@ -2148,14 +2172,17 @@ const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-ace1a80f"]]), No = (e) =
2148
2172
  onFocus: c,
2149
2173
  onBlur: f
2150
2174
  }, [
2151
- b(u.$slots, "default", {}, void 0, !0)
2152
- ], 40, Ho),
2153
- Wo
2175
+ h(u.$slots, "default", {}, void 0, !0)
2176
+ ], 40, Jo),
2177
+ N(D, {
2178
+ class: "joy-select__chevron",
2179
+ name: "chevron-down"
2180
+ })
2154
2181
  ], 2)
2155
2182
  ], 512));
2156
2183
  }
2157
2184
  });
2158
- const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["aria-disabled"], Qo = ["id", "value", "checked", "disabled", "required", "name"], Zo = /* @__PURE__ */ $({
2185
+ const qo = /* @__PURE__ */ V(To, [["__scopeId", "data-v-b1af08d1"]]), zo = ["aria-disabled"], Ao = ["id", "value", "checked", "disabled", "required", "name"], Fo = /* @__PURE__ */ $({
2159
2186
  __name: "VJoySelectableItem",
2160
2187
  props: {
2161
2188
  disabled: {
@@ -2213,7 +2240,7 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["ari
2213
2240
  l("update:checked", f);
2214
2241
  }
2215
2242
  return (f, u) => (v(), p("div", {
2216
- class: k([
2243
+ class: S([
2217
2244
  "joy-selectable-item__wrapper",
2218
2245
  {
2219
2246
  "joy-selectable-item--focusing": r.value
@@ -2240,10 +2267,10 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["ari
2240
2267
  (...m) => n.onFocus && n.onFocus(...m)),
2241
2268
  onBlur: u[2] || (u[2] = //@ts-ignore
2242
2269
  (...m) => n.onBlur && n.onBlur(...m))
2243
- }, null, 40, Qo)),
2244
- (v(), T(ce(_(s)), {
2270
+ }, null, 40, Ao)),
2271
+ (v(), x(ce(_(s)), {
2245
2272
  for: e.id,
2246
- class: k([
2273
+ class: S([
2247
2274
  "joy-selectable-item",
2248
2275
  {
2249
2276
  "joy-selectable-item--disabled": e.disabled,
@@ -2254,8 +2281,8 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["ari
2254
2281
  ]),
2255
2282
  onClick: n.onLabelClick
2256
2283
  }, {
2257
- default: E(() => [
2258
- e.multiple ? (v(), T(_(he), {
2284
+ default: L(() => [
2285
+ e.multiple ? (v(), x(_(pe), {
2259
2286
  key: 0,
2260
2287
  id: e.id,
2261
2288
  checked: o.value,
@@ -2271,24 +2298,24 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["ari
2271
2298
  onFocus: n.onFocus,
2272
2299
  onBlur: n.onBlur
2273
2300
  }, {
2274
- default: E(() => [
2275
- b(f.$slots, "default", {}, void 0, !0)
2301
+ default: L(() => [
2302
+ h(f.$slots, "default", {}, void 0, !0)
2276
2303
  ]),
2277
2304
  _: 3
2278
2305
  }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : w("", !0),
2279
- e.multiple ? w("", !0) : b(f.$slots, "default", { key: 1 }, void 0, !0),
2280
- h("div", {
2281
- class: k([{ "joy-selectable-item__sublabel": f.$slots["selectable-item-sublabel"] }])
2306
+ e.multiple ? w("", !0) : h(f.$slots, "default", { key: 1 }, void 0, !0),
2307
+ b("div", {
2308
+ class: S([{ "joy-selectable-item__sublabel": f.$slots["selectable-item-sublabel"] }])
2282
2309
  }, [
2283
- b(f.$slots, "selectable-item-sublabel", {}, void 0, !0)
2310
+ h(f.$slots, "selectable-item-sublabel", {}, void 0, !0)
2284
2311
  ], 2)
2285
2312
  ]),
2286
2313
  _: 3
2287
2314
  }, 8, ["for", "class", "onClick"]))
2288
- ], 10, Ko));
2315
+ ], 10, zo));
2289
2316
  }
2290
2317
  });
2291
- const lt = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-cb2531c0"]]), Yo = ["id"], Xo = /* @__PURE__ */ $({
2318
+ const et = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-cb2531c0"]]), Do = ["id"], Ro = /* @__PURE__ */ $({
2292
2319
  __name: "VJoySelectableItemGroup",
2293
2320
  props: {
2294
2321
  options: {
@@ -2343,20 +2370,20 @@ const lt = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-cb2531c0"]]), Yo = ["id"
2343
2370
  id: e.id,
2344
2371
  class: "joy-selectable-item-group__wrapper"
2345
2372
  }, [
2346
- e.label ? (v(), T(_(N), {
2373
+ e.label ? (v(), x(_(W), {
2347
2374
  key: 0,
2348
2375
  "tag-name": "legend",
2349
2376
  required: e.required && e.requiredMark,
2350
2377
  "optional-label": e.optionalLabel,
2351
2378
  size: e.labelSize
2352
2379
  }, {
2353
- default: E(() => [
2354
- L(x(e.label), 1)
2380
+ default: L(() => [
2381
+ C(I(e.label), 1)
2355
2382
  ]),
2356
2383
  _: 1
2357
2384
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
2358
- h("div", {
2359
- class: k([
2385
+ b("div", {
2386
+ class: S([
2360
2387
  "joy-selectable-item-group",
2361
2388
  {
2362
2389
  "joy-selectable-item-group--multiple": e.multiple,
@@ -2365,7 +2392,7 @@ const lt = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-cb2531c0"]]), Yo = ["id"
2365
2392
  }
2366
2393
  ])
2367
2394
  }, [
2368
- (v(!0), p(ye, null, me(e.options, (n) => (v(), T(_(lt), {
2395
+ (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(_(et), {
2369
2396
  id: n.id,
2370
2397
  key: n.id,
2371
2398
  name: n.name,
@@ -2373,25 +2400,25 @@ const lt = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-cb2531c0"]]), Yo = ["id"
2373
2400
  multiple: e.multiple,
2374
2401
  checked: o(n),
2375
2402
  "onUpdate:checked": (c) => a(n.value, c)
2376
- }, He({
2377
- default: E(() => [
2378
- L(x(n.label) + " ", 1)
2403
+ }, Ne({
2404
+ default: L(() => [
2405
+ C(I(n.label) + " ", 1)
2379
2406
  ]),
2380
2407
  _: 2
2381
2408
  }, [
2382
2409
  n.subLabel ? {
2383
2410
  name: "selectable-item-sublabel",
2384
- fn: E(() => [
2385
- L(x(n.subLabel), 1)
2411
+ fn: L(() => [
2412
+ C(I(n.subLabel), 1)
2386
2413
  ]),
2387
2414
  key: "0"
2388
2415
  } : void 0
2389
2416
  ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2390
2417
  ], 2)
2391
- ], 8, Yo));
2418
+ ], 8, Do));
2392
2419
  }
2393
2420
  });
2394
- const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-3ba17434"]]), tn = /* @__PURE__ */ $({
2421
+ const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-3ba17434"]]), No = /* @__PURE__ */ $({
2395
2422
  __name: "VJoyWrapper",
2396
2423
  props: {
2397
2424
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2414,103 +2441,107 @@ const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-3ba17434"]]), tn = /* @_
2414
2441
  type: String,
2415
2442
  default: "wrap"
2416
2443
  },
2417
- /** Apply a flex-grow to children in order to stretch them all along horizontal space */
2444
+ /** Applies a flex-grow to children in order to stretch them all along horizontal space */
2418
2445
  itemStretch: {
2419
2446
  type: Boolean
2447
+ },
2448
+ /** Removes the default bottom margin applied to the wrapper */
2449
+ noMargin: {
2450
+ type: Boolean,
2451
+ default: !1
2420
2452
  }
2421
2453
  },
2422
2454
  setup(e) {
2423
- return ct("VJoyWrapperContext", e), (t, o) => (v(), p("div", {
2424
- class: k([
2455
+ return ut("VJoyWrapperContext", e), (t, o) => (v(), p("div", {
2456
+ class: S([
2425
2457
  "joy-wrapper",
2426
2458
  `joy-wrapper--justify-${e.justify}`,
2427
2459
  `joy-wrapper--align-${e.align}`,
2428
2460
  `joy-wrapper--direction-${e.direction}`,
2429
2461
  `joy-wrapper--wrap-${e.wrap}`,
2430
- { "joy-wrapper--item-stretch": e.itemStretch }
2462
+ { "joy-wrapper--item-stretch": e.itemStretch },
2463
+ { "joy-wrapper--has-margin": !e.noMargin }
2431
2464
  ])
2432
2465
  }, [
2433
- b(t.$slots, "default", {}, void 0, !0)
2466
+ h(t.$slots, "default", {}, void 0, !0)
2434
2467
  ], 2));
2435
2468
  }
2436
2469
  });
2437
- const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-ff154744"]]), on = { class: "joy-template__wrapper" }, nn = {
2470
+ const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-e2f29698"]]), Wo = { class: "joy-template__wrapper" }, Uo = {
2438
2471
  key: 0,
2439
2472
  class: "joy-template__heading"
2440
- }, an = {
2473
+ }, Go = {
2441
2474
  key: 0,
2442
2475
  class: "joy-template-slot-back"
2443
- }, rn = { class: "joy-template__heading___headings" }, sn = {
2476
+ }, Ko = { class: "joy-template__heading___headings" }, Qo = {
2444
2477
  key: 0,
2445
2478
  class: "joy-template-slot-title"
2446
- }, un = {
2479
+ }, Zo = {
2447
2480
  key: 1,
2448
2481
  class: "joy-template-slot-subtitle"
2449
- }, dn = {
2482
+ }, Yo = {
2450
2483
  key: 1,
2451
2484
  class: "joy-template-slot-actions"
2452
- }, cn = {
2485
+ }, Xo = {
2453
2486
  key: 0,
2454
2487
  class: "joy-template-slot-main"
2455
- }, fn = {
2488
+ }, en = {
2456
2489
  key: 1,
2457
2490
  class: "joy-template-slot-sidebar"
2458
- }, yn = /* @__PURE__ */ $({
2491
+ }, tn = /* @__PURE__ */ $({
2459
2492
  __name: "VJoyTemplate",
2460
2493
  props: {
2461
2494
  full: { type: Boolean, default: !1 },
2462
2495
  sidebar: { type: String, default: "right" }
2463
2496
  },
2464
2497
  setup(e) {
2465
- const l = e, t = W(), o = I(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
2498
+ const l = e, t = G(), o = B(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
2466
2499
  return (a, r) => (v(), p("main", {
2467
- class: k(["joy-template", { "joy-template--full": l.full }])
2500
+ class: S(["joy-template", { "joy-template--full": l.full }])
2468
2501
  }, [
2469
- h("div", on, [
2470
- _(o) ? (v(), p("div", nn, [
2471
- _(t)["template-back"] ? (v(), p("div", an, [
2472
- b(a.$slots, "template-back", {}, void 0, !0)
2502
+ b("div", Wo, [
2503
+ _(o) ? (v(), p("div", Uo, [
2504
+ _(t)["template-back"] ? (v(), p("div", Go, [
2505
+ h(a.$slots, "template-back", {}, void 0, !0)
2473
2506
  ])) : w("", !0),
2474
- h("div", rn, [
2475
- _(t)["template-title"] ? (v(), p("div", sn, [
2476
- b(a.$slots, "template-title", {}, void 0, !0)
2507
+ b("div", Ko, [
2508
+ _(t)["template-title"] ? (v(), p("div", Qo, [
2509
+ h(a.$slots, "template-title", {}, void 0, !0)
2477
2510
  ])) : w("", !0),
2478
- _(t)["template-subtitle"] ? (v(), p("div", un, [
2479
- b(a.$slots, "template-subtitle", {}, void 0, !0)
2511
+ _(t)["template-subtitle"] ? (v(), p("div", Zo, [
2512
+ h(a.$slots, "template-subtitle", {}, void 0, !0)
2480
2513
  ])) : w("", !0)
2481
2514
  ]),
2482
- _(t)["template-actions"] ? (v(), p("div", dn, [
2483
- b(a.$slots, "template-actions", {}, void 0, !0)
2515
+ _(t)["template-actions"] ? (v(), p("div", Yo, [
2516
+ h(a.$slots, "template-actions", {}, void 0, !0)
2484
2517
  ])) : w("", !0)
2485
2518
  ])) : w("", !0),
2486
- h("div", {
2487
- class: k([
2519
+ b("div", {
2520
+ class: S([
2488
2521
  "joy-template__content",
2489
2522
  {
2490
2523
  "joy-template__content--reverse": l.sidebar === "left"
2491
2524
  }
2492
2525
  ])
2493
2526
  }, [
2494
- a.$slots["template-main"] ? (v(), p("div", cn, [
2495
- b(a.$slots, "template-main", {}, void 0, !0)
2527
+ a.$slots["template-main"] ? (v(), p("div", Xo, [
2528
+ h(a.$slots, "template-main", {}, void 0, !0)
2496
2529
  ])) : w("", !0),
2497
- a.$slots["template-sidebar"] ? (v(), p("div", fn, [
2498
- b(a.$slots, "template-sidebar", {}, void 0, !0)
2530
+ a.$slots["template-sidebar"] ? (v(), p("div", en, [
2531
+ h(a.$slots, "template-sidebar", {}, void 0, !0)
2499
2532
  ])) : w("", !0)
2500
2533
  ], 2)
2501
2534
  ])
2502
2535
  ], 2));
2503
2536
  }
2504
2537
  });
2505
- const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["aria-disabled"], pn = { class: "joy-textarea_wrapper" }, hn = ["id", "disabled", "name", "required", "minlength", "value"], bn = {
2538
+ const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-85e0d8cf"]]), on = ["aria-disabled"], nn = { class: "joy-textarea_wrapper" }, an = ["id", "disabled", "name", "required", "minlength", "value"], rn = {
2506
2539
  key: 0,
2507
2540
  class: "joy-textarea_helpers"
2508
- }, gn = {
2509
- key: 0,
2510
- name: "check",
2511
- color: "grey",
2512
- size: "xxsmall"
2513
- }, _n = /* @__PURE__ */ $({
2541
+ }, sn = {
2542
+ inheritAttrs: !1
2543
+ }, un = /* @__PURE__ */ $({
2544
+ ...sn,
2514
2545
  __name: "VJoyTextarea",
2515
2546
  props: {
2516
2547
  disabled: {
@@ -2559,9 +2590,9 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
2559
2590
  },
2560
2591
  emits: ["update:modelValue"],
2561
2592
  setup(e, { expose: l, emit: t }) {
2562
- const o = e, a = g(), { triggerResize: r } = ol({
2593
+ const o = e, a = g(), { triggerResize: r } = Yt({
2563
2594
  element: o.autogrow ? a : void 0
2564
- }), s = g(!1), n = g(!1), c = I(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = I(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2595
+ }), s = g(!1), n = g(!1), c = B(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = B(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2565
2596
  onInput: (m) => {
2566
2597
  t("update:modelValue", m.target.value), r();
2567
2598
  },
@@ -2578,7 +2609,7 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
2578
2609
  valueUnderMinlength: f
2579
2610
  }), (m, i) => (v(), p("div", {
2580
2611
  "aria-disabled": e.disabled,
2581
- class: k([
2612
+ class: S([
2582
2613
  "joy-textarea",
2583
2614
  {
2584
2615
  "joy-textarea_invalid": s.value || e.invalid,
@@ -2588,21 +2619,21 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
2588
2619
  }
2589
2620
  ])
2590
2621
  }, [
2591
- fe(_(N), {
2622
+ N(_(W), {
2592
2623
  for: e.id,
2593
2624
  required: e.required && e.requiredMark,
2594
2625
  "optional-label": e.optionalLabel,
2595
2626
  size: e.labelSize
2596
2627
  }, {
2597
- default: E(() => [
2598
- b(m.$slots, "default", {}, () => [
2599
- L(x(e.label), 1)
2628
+ default: L(() => [
2629
+ h(m.$slots, "default", {}, () => [
2630
+ C(I(e.label), 1)
2600
2631
  ], !0)
2601
2632
  ]),
2602
2633
  _: 3
2603
2634
  }, 8, ["for", "required", "optional-label", "size"]),
2604
- h("div", pn, [
2605
- h("textarea", Q(m.$attrs, {
2635
+ b("div", nn, [
2636
+ b("textarea", Y(m.$attrs, {
2606
2637
  id: e.id,
2607
2638
  ref_key: "textarea",
2608
2639
  ref: a,
@@ -2618,38 +2649,43 @@ const mn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), vn = ["ari
2618
2649
  (...y) => u.onFocus && u.onFocus(...y)),
2619
2650
  onBlur: i[2] || (i[2] = //@ts-ignore
2620
2651
  (...y) => u.onBlur && u.onBlur(...y))
2621
- }), null, 16, hn)
2652
+ }), null, 16, an)
2622
2653
  ]),
2623
- e.minlength || e.maxlength ? (v(), p("div", bn, [
2654
+ e.minlength || e.maxlength ? (v(), p("div", rn, [
2624
2655
  e.minlength ? (v(), p("p", {
2625
2656
  key: 0,
2626
- class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2657
+ class: S(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2627
2658
  }, [
2628
- _(f) ? w("", !0) : (v(), p("joy-icon", gn)),
2629
- L(" " + x(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2659
+ _(f) ? w("", !0) : (v(), x(D, {
2660
+ key: 0,
2661
+ name: "check",
2662
+ color: "neutral",
2663
+ size: "xxsmall"
2664
+ })),
2665
+ C(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2630
2666
  ], 2)) : w("", !0),
2631
2667
  e.maxlength ? (v(), p("p", {
2632
2668
  key: 1,
2633
- class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
2634
- }, x(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2669
+ class: S(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
2670
+ }, I(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2635
2671
  ])) : w("", !0)
2636
- ], 10, vn));
2672
+ ], 10, on));
2637
2673
  }
2638
2674
  });
2639
- const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) => (te("data-v-cf79d999"), e = e(), le(), e), Sn = { class: "joy-toggle__wrapper" }, jn = ["name", "disabled", "checked", "required", "aria-checked", "value"], kn = { class: "joy-toggle__content" }, $n = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), Vn = { class: "joy-toggle__content-label" }, xn = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2640
- /* @__PURE__ */ h("svg", {
2675
+ const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-d0d2c93e"]]), tt = (e) => (dt("data-v-cf79d999"), e = e(), ct(), e), cn = { class: "joy-toggle__wrapper" }, fn = ["name", "disabled", "checked", "required", "aria-checked", "value"], yn = { class: "joy-toggle__content" }, mn = /* @__PURE__ */ tt(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), vn = { class: "joy-toggle__content-label" }, pn = /* @__PURE__ */ tt(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
2676
+ /* @__PURE__ */ b("svg", {
2641
2677
  width: "18",
2642
2678
  height: "10",
2643
2679
  viewBox: "0 0 18 10",
2644
2680
  fill: "currentColor",
2645
2681
  xmlns: "http://www.w3.org/2000/svg"
2646
2682
  }, [
2647
- /* @__PURE__ */ h("path", {
2683
+ /* @__PURE__ */ b("path", {
2648
2684
  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",
2649
2685
  fill: "currentColor"
2650
2686
  })
2651
2687
  ])
2652
- ], -1)), On = /* @__PURE__ */ $({
2688
+ ], -1)), hn = /* @__PURE__ */ $({
2653
2689
  __name: "VJoyToggle",
2654
2690
  props: {
2655
2691
  modelValue: {
@@ -2695,9 +2731,9 @@ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
2695
2731
  t.value = !1;
2696
2732
  }
2697
2733
  };
2698
- return (a, r) => (v(), p("div", Sn, [
2699
- h("label", {
2700
- class: k([
2734
+ return (a, r) => (v(), p("div", cn, [
2735
+ b("label", {
2736
+ class: S([
2701
2737
  "joy-toggle",
2702
2738
  {
2703
2739
  "joy-toggle__checked": e.modelValue,
@@ -2706,7 +2742,7 @@ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
2706
2742
  }
2707
2743
  ])
2708
2744
  }, [
2709
- h("input", {
2745
+ b("input", {
2710
2746
  ref: "input",
2711
2747
  type: "checkbox",
2712
2748
  class: "joy-toggle__input",
@@ -2723,77 +2759,79 @@ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
2723
2759
  (...s) => o.onFocus && o.onFocus(...s)),
2724
2760
  onBlur: r[2] || (r[2] = //@ts-ignore
2725
2761
  (...s) => o.onBlur && o.onBlur(...s))
2726
- }, null, 40, jn),
2727
- h("p", kn, [
2728
- $n,
2729
- h("span", Vn, [
2730
- b(a.$slots, "default", {}, () => [
2731
- L(x(e.label), 1)
2762
+ }, null, 40, fn),
2763
+ b("p", yn, [
2764
+ mn,
2765
+ b("span", vn, [
2766
+ h(a.$slots, "default", {}, () => [
2767
+ C(I(e.label), 1)
2732
2768
  ], !0)
2733
2769
  ]),
2734
- xn
2770
+ pn
2735
2771
  ])
2736
2772
  ], 2)
2737
2773
  ]));
2738
2774
  }
2739
2775
  });
2740
- const In = /* @__PURE__ */ V(On, [["__scopeId", "data-v-cf79d999"]]), Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2776
+ const bn = /* @__PURE__ */ V(hn, [["__scopeId", "data-v-cf79d999"]]), gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2741
2777
  __proto__: null,
2742
2778
  VJoyBadge: mt,
2743
- VJoyButton: Vt,
2744
- VJoyCheckbox: he,
2745
- VJoyCounter: Nt,
2746
- VJoyDropdown: Nl,
2747
- VJoyDropdownList: et,
2748
- VJoyFormError: tt,
2749
- VJoyHighlight: eo,
2750
- VJoyInput: co,
2751
- VJoyLabel: N,
2752
- VJoyLink: po,
2753
- VJoyMultiCheckbox: _o,
2754
- VJoyPanel: Io,
2755
- VJoyPanelSection: Po,
2756
- VJoyRadio: Fo,
2757
- VJoyRadioGroup: Mo,
2758
- VJoySelect: Go,
2759
- VJoySelectableItem: lt,
2760
- VJoySelectableItemGroup: en,
2761
- VJoySpinner: We,
2762
- VJoyTemplate: mn,
2763
- VJoyTextarea: wn,
2764
- VJoyToggle: In,
2765
- VJoyWrapper: ln
2766
- }, Symbol.toStringTag, { value: "Module" })), Ln = {
2779
+ VJoyButton: jt,
2780
+ VJoyCheckbox: pe,
2781
+ VJoyCounter: At,
2782
+ VJoyDropdown: Al,
2783
+ VJoyDropdownList: Ye,
2784
+ VJoyFormError: Xe,
2785
+ VJoyHighlight: Wl,
2786
+ VJoyIcon: D,
2787
+ VJoyInput: lo,
2788
+ VJoyLabel: W,
2789
+ VJoyLink: io,
2790
+ VJoyMultiCheckbox: co,
2791
+ VJoyPanel: _o,
2792
+ VJoyPanelSection: $o,
2793
+ VJoyRadio: Eo,
2794
+ VJoyRadioGroup: Po,
2795
+ VJoySelect: qo,
2796
+ VJoySelectableItem: et,
2797
+ VJoySelectableItemGroup: Mo,
2798
+ VJoySpinner: He,
2799
+ VJoyTemplate: ln,
2800
+ VJoyTextarea: dn,
2801
+ VJoyToggle: bn,
2802
+ VJoyWrapper: Ho
2803
+ }, Symbol.toStringTag, { value: "Module" })), wn = {
2767
2804
  install: (e) => {
2768
- Object.entries(Bn).forEach(([l, t]) => {
2805
+ Object.entries(gn).forEach(([l, t]) => {
2769
2806
  e.component(l, t);
2770
2807
  });
2771
2808
  }
2772
2809
  };
2773
2810
  export {
2774
- Ln as JoyVuePlugin,
2811
+ wn as JoyVuePlugin,
2775
2812
  mt as VJoyBadge,
2776
- Vt as VJoyButton,
2777
- he as VJoyCheckbox,
2778
- Nt as VJoyCounter,
2779
- Nl as VJoyDropdown,
2780
- et as VJoyDropdownList,
2781
- tt as VJoyFormError,
2782
- eo as VJoyHighlight,
2783
- co as VJoyInput,
2784
- N as VJoyLabel,
2785
- po as VJoyLink,
2786
- _o as VJoyMultiCheckbox,
2787
- Io as VJoyPanel,
2788
- Po as VJoyPanelSection,
2789
- Fo as VJoyRadio,
2790
- Mo as VJoyRadioGroup,
2791
- Go as VJoySelect,
2792
- lt as VJoySelectableItem,
2793
- en as VJoySelectableItemGroup,
2794
- We as VJoySpinner,
2795
- mn as VJoyTemplate,
2796
- wn as VJoyTextarea,
2797
- In as VJoyToggle,
2798
- ln as VJoyWrapper
2813
+ jt as VJoyButton,
2814
+ pe as VJoyCheckbox,
2815
+ At as VJoyCounter,
2816
+ Al as VJoyDropdown,
2817
+ Ye as VJoyDropdownList,
2818
+ Xe as VJoyFormError,
2819
+ Wl as VJoyHighlight,
2820
+ D as VJoyIcon,
2821
+ lo as VJoyInput,
2822
+ W as VJoyLabel,
2823
+ io as VJoyLink,
2824
+ co as VJoyMultiCheckbox,
2825
+ _o as VJoyPanel,
2826
+ $o as VJoyPanelSection,
2827
+ Eo as VJoyRadio,
2828
+ Po as VJoyRadioGroup,
2829
+ qo as VJoySelect,
2830
+ et as VJoySelectableItem,
2831
+ Mo as VJoySelectableItemGroup,
2832
+ He as VJoySpinner,
2833
+ ln as VJoyTemplate,
2834
+ dn as VJoyTextarea,
2835
+ bn as VJoyToggle,
2836
+ Ho as VJoyWrapper
2799
2837
  };