@maltjoy/core-vue 1.0.0-beta.9 → 1.0.0-rc.2

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