@maltjoy/core-vue 1.0.0-alpha.9 → 1.0.0-beta.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.
Files changed (39) hide show
  1. package/README.md +0 -1
  2. package/dist/components/JoyButton/JoyButton.types.d.ts +0 -4
  3. package/dist/components/JoyButton/{JoyButton.vue.d.ts → VJoyButton.vue.d.ts} +4 -17
  4. package/dist/components/JoyCounter/{JoyCounter.vue.d.ts → VJoyCounter.vue.d.ts} +7 -7
  5. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -0
  6. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +180 -0
  7. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -0
  8. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +84 -0
  9. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
  10. package/dist/components/JoyHighlight/{JoyHighlight.vue.d.ts → VJoyHighlight.vue.d.ts} +3 -3
  11. package/dist/components/JoyInput/{JoyInput.vue.d.ts → VJoyInput.vue.d.ts} +4 -4
  12. package/dist/components/JoyLabel/{JoyLabel.vue.d.ts → VJoyLabel.vue.d.ts} +3 -3
  13. package/dist/components/JoyMultiCheckbox/{JoyMultiCheckbox.vue.d.ts → VJoyMultiCheckbox.vue.d.ts} +11 -4
  14. package/dist/components/JoySelect/{JoySelect.vue.d.ts → VJoySelect.vue.d.ts} +4 -4
  15. package/dist/components/JoySelectableItemGroup/{JoySelectableItemGroup.vue.d.ts → VJoySelectableItemGroup.vue.d.ts} +6 -6
  16. package/dist/components/JoyTextarea/{JoyTextarea.vue.d.ts → VJoyTextarea.vue.d.ts} +4 -4
  17. package/dist/components/JoyWrapper/{JoyWrapper.vue.d.ts → VJoyWrapper.vue.d.ts} +9 -9
  18. package/dist/components/index.d.ts +24 -22
  19. package/dist/composables/events.d.ts +5 -0
  20. package/dist/composables/index.d.ts +1 -0
  21. package/dist/composables/props.d.ts +1 -1
  22. package/dist/joy-vue.js +1436 -568
  23. package/dist/joy-vue.umd.cjs +1 -1
  24. package/dist/style.css +1 -1
  25. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
  26. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +3 -3
  27. package/joy-components.d.ts +21 -21
  28. package/package.json +4 -2
  29. package/dist/components/JoyCheckbox/{JoyCheckbox.vue.d.ts → VJoyCheckbox.vue.d.ts} +1 -1
  30. package/dist/components/JoyFormError/{JoyFormError.vue.d.ts → VJoyFormError.vue.d.ts} +0 -0
  31. package/dist/components/JoyLink/{JoyLink.vue.d.ts → VJoyLink.vue.d.ts} +0 -0
  32. package/dist/components/JoyPanel/{JoyPanel.vue.d.ts → VJoyPanel.vue.d.ts} +0 -0
  33. package/dist/components/JoyPanelSection/{JoyPanelSection.vue.d.ts → VJoyPanelSection.vue.d.ts} +0 -0
  34. package/dist/components/JoyRadio/{JoyRadio.vue.d.ts → VJoyRadio.vue.d.ts} +0 -0
  35. package/dist/components/JoyRadioGroup/{JoyRadioGroup.vue.d.ts → VJoyRadioGroup.vue.d.ts} +0 -0
  36. package/dist/components/JoySelectableItem/{JoySelectableItem.vue.d.ts → VJoySelectableItem.vue.d.ts} +2 -2
  37. package/dist/components/JoySpinner/{JoySpinner.vue.d.ts → VJoySpinner.vue.d.ts} +0 -0
  38. package/dist/components/JoyTemplate/{JoyTemplate.vue.d.ts → VJoyTemplate.vue.d.ts} +0 -0
  39. package/dist/components/JoyToggle/{JoyToggle.vue.d.ts → VJoyToggle.vue.d.ts} +1 -1
package/dist/joy-vue.js CHANGED
@@ -1,27 +1,27 @@
1
- import { defineComponent as p, openBlock as o, createElementBlock as d, normalizeClass as b, useAttrs as O, computed as V, createBlock as J, resolveDynamicComponent as E, unref as m, withCtx as q, createCommentVNode as y, createElementVNode as u, renderSlot as c, ref as S, createTextVNode as B, toDisplayString as $, mergeProps as L, createVNode as R, pushScopeId as z, popScopeId as M, useSlots as w, onBeforeMount as W, Fragment as A, renderList as F, normalizeStyle as D, onMounted as N, watch as Z, createSlots as K } from "vue";
2
- const Q = ["teal", "white"], X = /* @__PURE__ */ p({
3
- __name: "JoySpinner",
1
+ import { defineComponent as $, openBlock as m, createElementBlock as p, normalizeClass as k, useAttrs as De, computed as I, createBlock as P, resolveDynamicComponent as de, unref as _, withCtx as L, createCommentVNode as w, createElementVNode as h, renderSlot as b, ref as g, createTextVNode as T, toDisplayString as O, mergeProps as K, createVNode as ce, pushScopeId as ee, popScopeId as te, getCurrentScope as et, onScopeDispose as tt, getCurrentInstance as lt, onMounted as W, nextTick as Me, watch as q, h as at, reactive as Y, onBeforeUnmount as Re, normalizeStyle as G, Fragment as fe, renderList as ye, normalizeProps as me, guardReactiveProps as ve, Teleport as ot, useSlots as F, onBeforeMount as nt, createSlots as it } from "vue";
2
+ const rt = ["teal", "white"], st = /* @__PURE__ */ $({
3
+ __name: "VJoySpinner",
4
4
  props: {
5
5
  color: {
6
6
  type: String,
7
7
  validator(e) {
8
- return Q.includes(e);
8
+ return rt.includes(e);
9
9
  }
10
10
  }
11
11
  },
12
12
  setup(e) {
13
- return (l, a) => (o(), d("div", {
14
- class: b(["joy-spinner", `joy-spinner_${e.color}`])
13
+ return (t, l) => (m(), p("div", {
14
+ class: k(["joy-spinner", `joy-spinner_${e.color}`])
15
15
  }, null, 2));
16
16
  }
17
17
  });
18
- const _ = (e, l) => {
19
- const a = e.__vccOpts || e;
20
- for (const [t, i] of l)
21
- a[t] = i;
22
- return a;
23
- }, P = /* @__PURE__ */ _(X, [["__scopeId", "data-v-b633f633"]]), Y = ["primary", "secondary"], ee = ["neutral", "success", "info", "warning", "error"], te = ["main", "admin", "ghost"], ae = [...Y, ...te], le = ["large", "medium", "small", "xsmall", "xxsmall"], ne = ["xxsmall", "xsmall", "small"], oe = ["name", "size"], ie = { class: "joy-button--slot" }, de = /* @__PURE__ */ p({
24
- __name: "JoyButton",
18
+ const V = (e, t) => {
19
+ const l = e.__vccOpts || e;
20
+ for (const [a, o] of t)
21
+ l[a] = o;
22
+ return l;
23
+ }, Ne = /* @__PURE__ */ V(st, [["__scopeId", "data-v-616a29d0"]]), ut = ["primary", "secondary"], dt = ["neutral", "success", "info", "warning", "error"], ct = ["main", "admin", "ghost"], ft = [...ut, ...ct], yt = ["large", "medium", "small", "xsmall", "xxsmall"], mt = ["name", "size"], vt = { class: "joy-button--slot" }, pt = /* @__PURE__ */ $({
24
+ __name: "VJoyButton",
25
25
  props: {
26
26
  /**
27
27
  * If you only need a button with an icon. To keep your component accessible, you can give a text as slot, it will be used as title and aria-label.
@@ -43,7 +43,7 @@ const _ = (e, l) => {
43
43
  type: String,
44
44
  default: "primary",
45
45
  validator(e) {
46
- return ae.includes(e);
46
+ return ft.includes(e);
47
47
  }
48
48
  },
49
49
  /** Button or Link size */
@@ -51,23 +51,24 @@ const _ = (e, l) => {
51
51
  type: String,
52
52
  default: "medium",
53
53
  validator(e) {
54
- return le.includes(e);
55
- }
56
- },
57
- /** Override the icon size. Default to xsmall */
58
- iconSize: {
59
- type: String,
60
- default: "xsmall",
61
- validator(e) {
62
- return ne.includes(e);
54
+ return yt.includes(e);
63
55
  }
64
56
  }
65
57
  },
66
58
  setup(e) {
67
- const l = e, a = O(), t = V(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
68
- return (i, s) => (o(), J(E(m(a).href ? "a" : "button"), {
69
- disabled: e.loading || m(a).disabled,
70
- class: b([
59
+ const t = e, l = De(), a = I(() => {
60
+ switch (t.size) {
61
+ case "xxsmall":
62
+ return "xsmall";
63
+ case "xsmall":
64
+ return "xxsmall";
65
+ case "small":
66
+ return "xsmall";
67
+ }
68
+ }), o = I(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
69
+ return (r, s) => (m(), P(de(_(l).href ? "a" : "button"), {
70
+ disabled: e.loading || _(l).disabled,
71
+ class: k([
71
72
  "joy-button",
72
73
  `joy-button_${e.variant}`,
73
74
  `joy-button_${e.size}`,
@@ -77,27 +78,27 @@ const _ = (e, l) => {
77
78
  }
78
79
  ])
79
80
  }, {
80
- default: q(() => [
81
- e.icon ? (o(), d("joy-icon", {
81
+ default: L(() => [
82
+ e.icon ? (m(), p("joy-icon", {
82
83
  key: 0,
83
84
  name: e.icon,
84
- size: e.iconSize,
85
+ size: _(a),
85
86
  lazy: !1
86
- }, null, 8, oe)) : y("", !0),
87
- e.loading ? (o(), J(P, {
87
+ }, null, 8, mt)) : w("", !0),
88
+ e.loading ? (m(), P(Ne, {
88
89
  key: 1,
89
- color: m(t)
90
- }, null, 8, ["color"])) : y("", !0),
91
- u("span", ie, [
92
- c(i.$slots, "default", {}, void 0, !0)
90
+ color: _(o)
91
+ }, null, 8, ["color"])) : w("", !0),
92
+ h("span", vt, [
93
+ b(r.$slots, "default", {}, void 0, !0)
93
94
  ])
94
95
  ]),
95
96
  _: 3
96
97
  }, 8, ["disabled", "class"]));
97
98
  }
98
99
  });
99
- const ue = /* @__PURE__ */ _(de, [["__scopeId", "data-v-958cc680"]]), se = ["aria-checked", "aria-hidden"], re = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], ce = { class: "joy-checkbox__content-wrapper" }, ye = { class: "joy-checkbox__content" }, me = /* @__PURE__ */ p({
100
- __name: "JoyCheckbox",
100
+ const ht = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-62aca3ad"]]), bt = ["aria-checked", "aria-hidden"], gt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], _t = { class: "joy-checkbox__content-wrapper" }, wt = { class: "joy-checkbox__content" }, St = /* @__PURE__ */ $({
101
+ __name: "VJoyCheckbox",
101
102
  props: {
102
103
  /** 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 */
103
104
  indeterminate: {
@@ -135,32 +136,32 @@ const ue = /* @__PURE__ */ _(de, [["__scopeId", "data-v-958cc680"]]), se = ["ari
135
136
  }
136
137
  },
137
138
  emits: ["update:checked"],
138
- setup(e, { expose: l, emit: a }) {
139
- const t = e, i = S(), s = S(t.indeterminate), f = {
139
+ setup(e, { expose: t, emit: l }) {
140
+ const a = e, o = g(), r = g(a.indeterminate), s = {
140
141
  onChange: (n) => {
141
- const r = n.target.checked;
142
- s.value = !1, a("update:checked", r);
142
+ const u = n.target.checked;
143
+ r.value = !1, l("update:checked", u);
143
144
  }
144
145
  };
145
- return l({
146
- isIndeterminate: s
147
- }), (n, r) => (o(), d("div", {
146
+ return t({
147
+ isIndeterminate: r
148
+ }), (n, u) => (m(), p("div", {
148
149
  "aria-checked": e.checked,
149
150
  "aria-hidden": e.disabled
150
151
  }, [
151
- u("label", {
152
- class: b([
152
+ h("label", {
153
+ class: k([
153
154
  "joy-checkbox",
154
155
  {
155
156
  "joy-checkbox__checked": e.checked,
156
- "joy-checkbox__indeterminate": s.value
157
+ "joy-checkbox__indeterminate": r.value
157
158
  }
158
159
  ])
159
160
  }, [
160
- u("input", {
161
+ h("input", {
161
162
  id: e.id,
162
163
  ref_key: "input",
163
- ref: i,
164
+ ref: o,
164
165
  type: "checkbox",
165
166
  class: "joy-checkbox__input",
166
167
  role: "checkbox",
@@ -170,39 +171,39 @@ const ue = /* @__PURE__ */ _(de, [["__scopeId", "data-v-958cc680"]]), se = ["ari
170
171
  required: e.required,
171
172
  "aria-checked": e.checked,
172
173
  value: e.value,
173
- indeterminate: s.value,
174
- onChange: r[0] || (r[0] = //@ts-ignore
175
- (...g) => f.onChange && f.onChange(...g))
176
- }, null, 40, re),
177
- u("div", ce, [
178
- c(n.$slots, "default", {}, () => [
179
- B($(e.label), 1)
174
+ indeterminate: r.value,
175
+ onChange: u[0] || (u[0] = //@ts-ignore
176
+ (...y) => s.onChange && s.onChange(...y))
177
+ }, null, 40, gt),
178
+ h("div", _t, [
179
+ b(n.$slots, "default", {}, () => [
180
+ T(O(e.label), 1)
180
181
  ], !0),
181
- u("div", ye, [
182
- c(n.$slots, "checkbox-content", {}, void 0, !0)
182
+ h("div", wt, [
183
+ b(n.$slots, "checkbox-content", {}, void 0, !0)
183
184
  ])
184
185
  ])
185
186
  ], 2)
186
- ], 8, se));
187
+ ], 8, bt));
187
188
  }
188
189
  });
189
- const T = /* @__PURE__ */ _(me, [["__scopeId", "data-v-7251a11b"]]), H = (e) => (z("data-v-47a76942"), e = e(), M(), e), fe = { class: "joy-counter" }, ve = { class: "joy-counter__wrapper" }, be = ["aria-label", "disabled"], ge = /* @__PURE__ */ H(() => /* @__PURE__ */ u("joy-icon", {
190
+ const pe = /* @__PURE__ */ V(St, [["__scopeId", "data-v-d6496829"]]), He = (e) => (ee("data-v-01418e7e"), e = e(), te(), e), kt = { class: "joy-counter" }, jt = { class: "joy-counter__wrapper" }, $t = ["aria-label", "disabled"], Vt = /* @__PURE__ */ He(() => /* @__PURE__ */ h("joy-icon", {
190
191
  name: "minus",
191
192
  color: "teal",
192
193
  lazy: !1
193
- }, null, -1)), he = [
194
- ge
195
- ], pe = ["id", "min", "max", "aria-invalid", "name", "required", "value"], _e = ["aria-label", "disabled"], ke = /* @__PURE__ */ H(() => /* @__PURE__ */ u("joy-icon", {
194
+ }, null, -1)), xt = [
195
+ Vt
196
+ ], It = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Ot = ["aria-label", "disabled"], Lt = /* @__PURE__ */ He(() => /* @__PURE__ */ h("joy-icon", {
196
197
  name: "add",
197
198
  lazy: !1,
198
199
  color: "teal"
199
- }, null, -1)), je = [
200
- ke
201
- ], Se = {
200
+ }, null, -1)), Et = [
201
+ Lt
202
+ ], Bt = {
202
203
  key: 0,
203
204
  class: "joy-counter_error"
204
- }, $e = /* @__PURE__ */ p({
205
- __name: "JoyCounter",
205
+ }, Ct = /* @__PURE__ */ $({
206
+ __name: "VJoyCounter",
206
207
  props: {
207
208
  /** Removes any interactivity */
208
209
  disabled: {
@@ -267,102 +268,963 @@ const T = /* @__PURE__ */ _(me, [["__scopeId", "data-v-7251a11b"]]), H = (e) =>
267
268
  }
268
269
  },
269
270
  emits: ["update:modelValue"],
270
- setup(e, { expose: l, emit: a }) {
271
- const t = e, i = S(!1);
272
- function s() {
273
- const v = r(!1);
274
- v >= 0 ? a("update:modelValue", v <= t.min ? t.min : v) : a("update:modelValue", 0), n();
271
+ setup(e, { expose: t, emit: l }) {
272
+ const a = e, o = g(!1);
273
+ function r() {
274
+ const d = u(!1);
275
+ d >= 0 ? l("update:modelValue", d <= a.min ? a.min : d) : l("update:modelValue", 0), n();
275
276
  }
276
- function f() {
277
- const v = r();
278
- t.max && v <= t.max ? a("update:modelValue", v >= t.max ? t.max : v) : t.max && v > t.max ? a("update:modelValue", t.max) : a("update:modelValue", v), n();
277
+ function s() {
278
+ const d = u();
279
+ a.max && d <= a.max ? l("update:modelValue", d >= a.max ? a.max : d) : a.max && d > a.max ? l("update:modelValue", a.max) : l("update:modelValue", d), n();
279
280
  }
280
281
  function n() {
281
- i.value = !g();
282
+ o.value = !y();
282
283
  }
283
- function r(v = !0) {
284
- const h = t.step.toString().split("."), x = h.length === 2 ? h[1].length : 0;
285
- return parseFloat(v ? (t.modelValue + t.step).toFixed(x) : (t.modelValue - t.step).toFixed(x));
284
+ function u(d = !0) {
285
+ const f = a.step.toString().split("."), S = f.length === 2 ? f[1].length : 0;
286
+ return parseFloat(d ? (a.modelValue + a.step).toFixed(S) : (a.modelValue - a.step).toFixed(S));
286
287
  }
287
- function g() {
288
- return k() && I();
288
+ function y() {
289
+ return c() && v();
289
290
  }
290
- function k() {
291
- return !t.max || t.modelValue <= t.max;
291
+ function c() {
292
+ return !a.max || a.modelValue <= a.max;
292
293
  }
293
- function I() {
294
- return t.min <= t.modelValue;
294
+ function v() {
295
+ return a.min <= a.modelValue;
295
296
  }
296
- const j = {
297
- onInput: (v) => {
298
- a("update:modelValue", +v.target.value || 0), i.value = !1;
297
+ const i = {
298
+ onInput: (d) => {
299
+ l("update:modelValue", +d.target.value || 0), o.value = !1;
299
300
  },
300
301
  onBlur: () => {
301
302
  n();
302
303
  }
303
304
  };
304
- return l({
305
- props: t
306
- }), (v, h) => (o(), d("div", fe, [
307
- e.label ? (o(), J(m(C), {
305
+ return t({
306
+ props: a
307
+ }), (d, f) => (m(), p("div", kt, [
308
+ e.label ? (m(), P(_(H), {
308
309
  key: 0,
309
310
  for: e.id,
310
311
  required: e.required && e.requiredMark,
311
312
  "optional-label": e.optionalLabel,
312
313
  size: e.labelSize
313
314
  }, {
314
- default: q(() => [
315
- c(v.$slots, "default", {}, () => [
316
- B($(e.label), 1)
315
+ default: L(() => [
316
+ b(d.$slots, "default", {}, () => [
317
+ T(O(e.label), 1)
317
318
  ], !0)
318
319
  ]),
319
320
  _: 3
320
- }, 8, ["for", "required", "optional-label", "size"])) : y("", !0),
321
- u("div", ve, [
322
- u("button", {
321
+ }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
322
+ h("div", jt, [
323
+ h("button", {
323
324
  class: "joy-counter__decrement",
324
325
  type: "button",
325
326
  "aria-label": e.labelDecrement,
326
327
  disabled: e.modelValue <= e.min,
327
- onClick: s
328
- }, he, 8, be),
329
- u("input", L({
328
+ onClick: r
329
+ }, xt, 8, $t),
330
+ h("input", K({
330
331
  id: e.id,
331
332
  ref: "input",
332
333
  type: "number",
333
- class: { "joy-counter__invalid": e.invalid || i.value },
334
+ class: { "joy-counter__invalid": e.invalid || o.value },
334
335
  min: e.min,
335
336
  max: e.max,
336
- "aria-invalid": e.invalid || i.value,
337
+ "aria-invalid": e.invalid || o.value,
337
338
  name: e.name,
338
339
  required: e.required,
339
340
  step: "any",
340
341
  value: e.modelValue
341
- }, v.$attrs, {
342
- onInput: h[0] || (h[0] = //@ts-ignore
343
- (...x) => j.onInput && j.onInput(...x)),
344
- onBlur: h[1] || (h[1] = //@ts-ignore
345
- (...x) => j.onBlur && j.onBlur(...x))
346
- }), null, 16, pe),
347
- u("button", {
342
+ }, d.$attrs, {
343
+ onInput: f[0] || (f[0] = //@ts-ignore
344
+ (...S) => i.onInput && i.onInput(...S)),
345
+ onBlur: f[1] || (f[1] = //@ts-ignore
346
+ (...S) => i.onBlur && i.onBlur(...S))
347
+ }), null, 16, It),
348
+ h("button", {
348
349
  class: "joy-counter__increment",
349
350
  type: "button",
350
351
  "aria-label": e.labelIncrement,
351
352
  disabled: e.max ? e.modelValue >= e.max : !1,
352
- onClick: f
353
- }, je, 8, _e),
354
- e.invalid && e.errorMessage ? (o(), d("div", Se, [
355
- R(m(G), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
356
- ])) : y("", !0)
353
+ onClick: s
354
+ }, Et, 8, Ot),
355
+ e.invalid && e.errorMessage ? (m(), p("div", Bt, [
356
+ ce(_(Ye), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
357
+ ])) : w("", !0)
357
358
  ])
358
359
  ]));
359
360
  }
360
361
  });
361
- const xe = /* @__PURE__ */ _($e, [["__scopeId", "data-v-47a76942"]]), Ie = (e) => (z("data-v-d693f93c"), e = e(), M(), e), qe = ["aria-hidden"], Be = /* @__PURE__ */ Ie(() => /* @__PURE__ */ u("joy-icon", {
362
+ const Pt = /* @__PURE__ */ V(Ct, [["__scopeId", "data-v-01418e7e"]]);
363
+ var ge;
364
+ const he = typeof window < "u", We = (e) => typeof e == "string", z = () => {
365
+ }, X = he && ((ge = window == null ? void 0 : window.navigator) == null ? void 0 : ge.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
366
+ function B(e) {
367
+ return typeof e == "function" ? e() : _(e);
368
+ }
369
+ function Fe(e, t) {
370
+ function l(...a) {
371
+ return new Promise((o, r) => {
372
+ Promise.resolve(e(() => t.apply(this, a), { fn: t, thisArg: this, args: a })).then(o).catch(r);
373
+ });
374
+ }
375
+ return l;
376
+ }
377
+ function qt(e, t = {}) {
378
+ let l, a, o = z;
379
+ const r = (n) => {
380
+ clearTimeout(n), o(), o = z;
381
+ };
382
+ return (n) => {
383
+ const u = B(e), y = B(t.maxWait);
384
+ return l && r(l), u <= 0 || y !== void 0 && y <= 0 ? (a && (r(a), a = null), Promise.resolve(n())) : new Promise((c, v) => {
385
+ o = t.rejectOnCancel ? v : c, y && !a && (a = setTimeout(() => {
386
+ l && r(l), a = null, c(n());
387
+ }, y)), l = setTimeout(() => {
388
+ a && r(a), a = null, c(n());
389
+ }, u);
390
+ });
391
+ };
392
+ }
393
+ function Jt(e, t = !0, l = !0, a = !1) {
394
+ let o = 0, r, s = !0, n = z, u;
395
+ const y = () => {
396
+ r && (clearTimeout(r), r = void 0, n(), n = z);
397
+ };
398
+ return (v) => {
399
+ const i = B(e), d = Date.now() - o, f = () => u = v();
400
+ return y(), i <= 0 ? (o = Date.now(), f()) : (d > i && (l || !s) ? (o = Date.now(), f()) : t && (u = new Promise((S, j) => {
401
+ n = a ? j : S, r = setTimeout(() => {
402
+ o = Date.now(), s = !0, S(f()), y();
403
+ }, Math.max(0, i - d));
404
+ })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, u);
405
+ };
406
+ }
407
+ const R = {
408
+ mounted: "mounted",
409
+ updated: "updated",
410
+ unmounted: "unmounted"
411
+ };
412
+ function Tt(e) {
413
+ return e;
414
+ }
415
+ function Q(e) {
416
+ return et() ? (tt(e), !0) : !1;
417
+ }
418
+ function zt(e, t = 200, l = {}) {
419
+ return Fe(qt(t, l), e);
420
+ }
421
+ function At(e, t = 200, l = !1, a = !0, o = !1) {
422
+ return Fe(Jt(t, l, a, o), e);
423
+ }
424
+ function Dt(e) {
425
+ return typeof e == "function" ? I(e) : g(e);
426
+ }
427
+ function Mt(e, t = !0) {
428
+ lt() ? W(e) : t ? e() : Me(e);
429
+ }
430
+ function U(e) {
431
+ var t;
432
+ const l = B(e);
433
+ return (t = l == null ? void 0 : l.$el) != null ? t : l;
434
+ }
435
+ const Ue = he ? window : void 0;
436
+ function oe(...e) {
437
+ let t, l, a, o;
438
+ if (We(e[0]) || Array.isArray(e[0]) ? ([l, a, o] = e, t = Ue) : [t, l, a, o] = e, !t)
439
+ return z;
440
+ Array.isArray(l) || (l = [l]), Array.isArray(a) || (a = [a]);
441
+ const r = [], s = () => {
442
+ r.forEach((c) => c()), r.length = 0;
443
+ }, n = (c, v, i, d) => (c.addEventListener(v, i, d), () => c.removeEventListener(v, i, d)), u = q(() => [U(t), B(o)], ([c, v]) => {
444
+ s(), c && r.push(...l.flatMap((i) => a.map((d) => n(c, i, d, v))));
445
+ }, { immediate: !0, flush: "post" }), y = () => {
446
+ u(), s();
447
+ };
448
+ return Q(y), y;
449
+ }
450
+ let _e = !1;
451
+ function Rt(e, t, l = {}) {
452
+ const { window: a = Ue, ignore: o = [], capture: r = !0, detectIframe: s = !1 } = l;
453
+ if (!a)
454
+ return;
455
+ X && !_e && (_e = !0, Array.from(a.document.body.children).forEach((i) => i.addEventListener("click", z)));
456
+ let n = !0;
457
+ const u = (i) => o.some((d) => {
458
+ if (typeof d == "string")
459
+ return Array.from(a.document.querySelectorAll(d)).some((f) => f === i.target || i.composedPath().includes(f));
460
+ {
461
+ const f = U(d);
462
+ return f && (i.target === f || i.composedPath().includes(f));
463
+ }
464
+ }), c = [
465
+ oe(a, "click", (i) => {
466
+ const d = U(e);
467
+ if (!(!d || d === i.target || i.composedPath().includes(d))) {
468
+ if (i.detail === 0 && (n = !u(i)), !n) {
469
+ n = !0;
470
+ return;
471
+ }
472
+ t(i);
473
+ }
474
+ }, { passive: !0, capture: r }),
475
+ oe(a, "pointerdown", (i) => {
476
+ const d = U(e);
477
+ d && (n = !i.composedPath().includes(d) && !u(i));
478
+ }, { passive: !0 }),
479
+ s && oe(a, "blur", (i) => {
480
+ var d;
481
+ const f = U(e);
482
+ ((d = a.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(f != null && f.contains(a.document.activeElement)) && t(i);
483
+ })
484
+ ].filter(Boolean);
485
+ return () => c.forEach((i) => i());
486
+ }
487
+ const ne = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ie = "__vueuse_ssr_handlers__";
488
+ ne[ie] = ne[ie] || {};
489
+ ne[ie];
490
+ var we;
491
+ (function(e) {
492
+ e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
493
+ })(we || (we = {}));
494
+ var Nt = Object.defineProperty, Se = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Wt = Object.prototype.propertyIsEnumerable, ke = (e, t, l) => t in e ? Nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ft = (e, t) => {
495
+ for (var l in t || (t = {}))
496
+ Ht.call(t, l) && ke(e, l, t[l]);
497
+ if (Se)
498
+ for (var l of Se(t))
499
+ Wt.call(t, l) && ke(e, l, t[l]);
500
+ return e;
501
+ };
502
+ const Ut = {
503
+ easeInSine: [0.12, 0, 0.39, 0],
504
+ easeOutSine: [0.61, 1, 0.88, 1],
505
+ easeInOutSine: [0.37, 0, 0.63, 1],
506
+ easeInQuad: [0.11, 0, 0.5, 0],
507
+ easeOutQuad: [0.5, 1, 0.89, 1],
508
+ easeInOutQuad: [0.45, 0, 0.55, 1],
509
+ easeInCubic: [0.32, 0, 0.67, 0],
510
+ easeOutCubic: [0.33, 1, 0.68, 1],
511
+ easeInOutCubic: [0.65, 0, 0.35, 1],
512
+ easeInQuart: [0.5, 0, 0.75, 0],
513
+ easeOutQuart: [0.25, 1, 0.5, 1],
514
+ easeInOutQuart: [0.76, 0, 0.24, 1],
515
+ easeInQuint: [0.64, 0, 0.78, 0],
516
+ easeOutQuint: [0.22, 1, 0.36, 1],
517
+ easeInOutQuint: [0.83, 0, 0.17, 1],
518
+ easeInExpo: [0.7, 0, 0.84, 0],
519
+ easeOutExpo: [0.16, 1, 0.3, 1],
520
+ easeInOutExpo: [0.87, 0, 0.13, 1],
521
+ easeInCirc: [0.55, 0, 1, 0.45],
522
+ easeOutCirc: [0, 0.55, 0.45, 1],
523
+ easeInOutCirc: [0.85, 0, 0.15, 1],
524
+ easeInBack: [0.36, 0, 0.66, -0.56],
525
+ easeOutBack: [0.34, 1.56, 0.64, 1],
526
+ easeInOutBack: [0.68, -0.6, 0.32, 1.6]
527
+ };
528
+ Ft({
529
+ linear: Tt
530
+ }, Ut);
531
+ const Gt = /* @__PURE__ */ $({
532
+ name: "OnClickOutside",
533
+ props: ["as", "options"],
534
+ emits: ["trigger"],
535
+ setup(e, { slots: t, emit: l }) {
536
+ const a = g();
537
+ return Rt(a, (o) => {
538
+ l("trigger", o);
539
+ }, e.options), () => {
540
+ if (t.default)
541
+ return at(e.as || "div", { ref: a }, t.default());
542
+ };
543
+ }
544
+ });
545
+ function C(e) {
546
+ var t;
547
+ const l = B(e);
548
+ return (t = l == null ? void 0 : l.$el) != null ? t : l;
549
+ }
550
+ const N = he ? window : void 0;
551
+ function A(...e) {
552
+ let t, l, a, o;
553
+ if (We(e[0]) || Array.isArray(e[0]) ? ([l, a, o] = e, t = N) : [t, l, a, o] = e, !t)
554
+ return z;
555
+ Array.isArray(l) || (l = [l]), Array.isArray(a) || (a = [a]);
556
+ const r = [], s = () => {
557
+ r.forEach((c) => c()), r.length = 0;
558
+ }, n = (c, v, i, d) => (c.addEventListener(v, i, d), () => c.removeEventListener(v, i, d)), u = q(() => [C(t), B(o)], ([c, v]) => {
559
+ s(), c && r.push(...l.flatMap((i) => a.map((d) => n(c, i, d, v))));
560
+ }, { immediate: !0, flush: "post" }), y = () => {
561
+ u(), s();
562
+ };
563
+ return Q(y), y;
564
+ }
565
+ let je = !1;
566
+ function $e(e, t, l = {}) {
567
+ const { window: a = N, ignore: o = [], capture: r = !0, detectIframe: s = !1 } = l;
568
+ if (!a)
569
+ return;
570
+ X && !je && (je = !0, Array.from(a.document.body.children).forEach((i) => i.addEventListener("click", z)));
571
+ let n = !0;
572
+ const u = (i) => o.some((d) => {
573
+ if (typeof d == "string")
574
+ return Array.from(a.document.querySelectorAll(d)).some((f) => f === i.target || i.composedPath().includes(f));
575
+ {
576
+ const f = C(d);
577
+ return f && (i.target === f || i.composedPath().includes(f));
578
+ }
579
+ }), c = [
580
+ A(a, "click", (i) => {
581
+ const d = C(e);
582
+ if (!(!d || d === i.target || i.composedPath().includes(d))) {
583
+ if (i.detail === 0 && (n = !u(i)), !n) {
584
+ n = !0;
585
+ return;
586
+ }
587
+ t(i);
588
+ }
589
+ }, { passive: !0, capture: r }),
590
+ A(a, "pointerdown", (i) => {
591
+ const d = C(e);
592
+ d && (n = !i.composedPath().includes(d) && !u(i));
593
+ }, { passive: !0 }),
594
+ s && A(a, "blur", (i) => {
595
+ var d;
596
+ const f = C(e);
597
+ ((d = a.document.activeElement) == null ? void 0 : d.tagName) === "IFRAME" && !(f != null && f.contains(a.document.activeElement)) && t(i);
598
+ })
599
+ ].filter(Boolean);
600
+ return () => c.forEach((i) => i());
601
+ }
602
+ R.mounted + "", R.unmounted + "";
603
+ const Kt = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
604
+ function Ve(...e) {
605
+ let t, l, a = {};
606
+ e.length === 3 ? (t = e[0], l = e[1], a = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, l = e[0], a = e[1]) : (t = e[0], l = e[1]) : (t = !0, l = e[0]);
607
+ const { target: o = N, eventName: r = "keydown", passive: s = !1 } = a, n = Kt(t);
608
+ return A(o, r, (y) => {
609
+ n(y) && l(y);
610
+ }, s);
611
+ }
612
+ var Qt = Object.defineProperty, xe = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Ie = (e, t, l) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Xt = (e, t) => {
613
+ for (var l in t || (t = {}))
614
+ Zt.call(t, l) && Ie(e, l, t[l]);
615
+ if (xe)
616
+ for (var l of xe(t))
617
+ Yt.call(t, l) && Ie(e, l, t[l]);
618
+ return e;
619
+ };
620
+ R.mounted + "";
621
+ const el = 500;
622
+ function Oe(e, t, l) {
623
+ var a, o;
624
+ const r = I(() => C(e));
625
+ let s;
626
+ function n() {
627
+ s && (clearTimeout(s), s = void 0);
628
+ }
629
+ function u(c) {
630
+ var v, i, d, f;
631
+ (v = l == null ? void 0 : l.modifiers) != null && v.self && c.target !== r.value || (n(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && c.preventDefault(), (d = l == null ? void 0 : l.modifiers) != null && d.stop && c.stopPropagation(), s = setTimeout(() => t(c), (f = l == null ? void 0 : l.delay) != null ? f : el));
632
+ }
633
+ const y = {
634
+ capture: (a = l == null ? void 0 : l.modifiers) == null ? void 0 : a.capture,
635
+ once: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.once
636
+ };
637
+ A(r, "pointerdown", u, y), A(r, "pointerup", n, y), A(r, "pointerleave", n, y);
638
+ }
639
+ R.mounted + "";
640
+ const re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, se = "__vueuse_ssr_handlers__";
641
+ re[se] = re[se] || {};
642
+ re[se];
643
+ function Ge(e, t = !1) {
644
+ const l = g(), a = () => l.value = Boolean(e());
645
+ return a(), Mt(a, t), l;
646
+ }
647
+ function tl(e, t = {}) {
648
+ const l = t ? t.delayEnter : 0, a = t ? t.delayLeave : 0, o = g(!1);
649
+ let r;
650
+ const s = (n) => {
651
+ const u = n ? l : a;
652
+ r && (clearTimeout(r), r = void 0), u ? r = setTimeout(() => o.value = n, u) : o.value = n;
653
+ };
654
+ return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), o;
655
+ }
656
+ R.mounted + "";
657
+ var Le = Object.getOwnPropertySymbols, ll = Object.prototype.hasOwnProperty, al = Object.prototype.propertyIsEnumerable, ol = (e, t) => {
658
+ var l = {};
659
+ for (var a in e)
660
+ ll.call(e, a) && t.indexOf(a) < 0 && (l[a] = e[a]);
661
+ if (e != null && Le)
662
+ for (var a of Le(e))
663
+ t.indexOf(a) < 0 && al.call(e, a) && (l[a] = e[a]);
664
+ return l;
665
+ };
666
+ function nl(e, t, l = {}) {
667
+ const a = l, { window: o = N } = a, r = ol(a, ["window"]);
668
+ let s;
669
+ const n = Ge(() => o && "ResizeObserver" in o), u = () => {
670
+ s && (s.disconnect(), s = void 0);
671
+ }, y = q(() => C(e), (v) => {
672
+ u(), n.value && o && v && (s = new ResizeObserver(t), s.observe(v, r));
673
+ }, { immediate: !0, flush: "post" }), c = () => {
674
+ u(), y();
675
+ };
676
+ return Q(c), {
677
+ isSupported: n,
678
+ stop: c
679
+ };
680
+ }
681
+ function il(e, t = { width: 0, height: 0 }, l = {}) {
682
+ const { window: a = N, box: o = "content-box" } = l, r = I(() => {
683
+ var u, y;
684
+ return (y = (u = C(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : y.includes("svg");
685
+ }), s = g(t.width), n = g(t.height);
686
+ return nl(e, ([u]) => {
687
+ const y = o === "border-box" ? u.borderBoxSize : o === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
688
+ if (a && r.value) {
689
+ const c = C(e);
690
+ if (c) {
691
+ const v = a.getComputedStyle(c);
692
+ s.value = parseFloat(v.width), n.value = parseFloat(v.height);
693
+ }
694
+ } else if (y) {
695
+ const c = Array.isArray(y) ? y : [y];
696
+ s.value = c.reduce((v, { inlineSize: i }) => v + i, 0), n.value = c.reduce((v, { blockSize: i }) => v + i, 0);
697
+ } else
698
+ s.value = u.contentRect.width, n.value = u.contentRect.height;
699
+ }, l), q(() => C(e), (u) => {
700
+ s.value = u ? t.width : 0, n.value = u ? t.height : 0;
701
+ }), {
702
+ width: s,
703
+ height: n
704
+ };
705
+ }
706
+ R.mounted + "";
707
+ function Ee(e, { window: t = N, scrollTarget: l } = {}) {
708
+ const a = g(!1), o = () => {
709
+ if (!t)
710
+ return;
711
+ const r = t.document, s = C(e);
712
+ if (!s)
713
+ a.value = !1;
714
+ else {
715
+ const n = s.getBoundingClientRect();
716
+ a.value = n.top <= (t.innerHeight || r.documentElement.clientHeight) && n.left <= (t.innerWidth || r.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
717
+ }
718
+ };
719
+ return q(() => C(e), () => o(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", o, {
720
+ capture: !1,
721
+ passive: !0
722
+ }), a;
723
+ }
724
+ R.mounted + "";
725
+ const Be = 1;
726
+ function ue(e, t = {}) {
727
+ const {
728
+ throttle: l = 0,
729
+ idle: a = 200,
730
+ onStop: o = z,
731
+ onScroll: r = z,
732
+ offset: s = {
733
+ left: 0,
734
+ right: 0,
735
+ top: 0,
736
+ bottom: 0
737
+ },
738
+ eventListenerOptions: n = {
739
+ capture: !1,
740
+ passive: !0
741
+ },
742
+ behavior: u = "auto"
743
+ } = t, y = g(0), c = g(0), v = I({
744
+ get() {
745
+ return y.value;
746
+ },
747
+ set(x) {
748
+ d(x, void 0);
749
+ }
750
+ }), i = I({
751
+ get() {
752
+ return c.value;
753
+ },
754
+ set(x) {
755
+ d(void 0, x);
756
+ }
757
+ });
758
+ function d(x, J) {
759
+ var M, D, be;
760
+ const ae = B(e);
761
+ ae && ((be = ae instanceof Document ? document.body : ae) == null || be.scrollTo({
762
+ top: (M = B(J)) != null ? M : i.value,
763
+ left: (D = B(x)) != null ? D : v.value,
764
+ behavior: B(u)
765
+ }));
766
+ }
767
+ const f = g(!1), S = Y({
768
+ left: !0,
769
+ right: !1,
770
+ top: !0,
771
+ bottom: !1
772
+ }), j = Y({
773
+ left: !1,
774
+ right: !1,
775
+ top: !1,
776
+ bottom: !1
777
+ }), Z = (x) => {
778
+ f.value && (f.value = !1, j.left = !1, j.right = !1, j.top = !1, j.bottom = !1, o(x));
779
+ }, le = zt(Z, l + a), E = (x) => {
780
+ const J = x.target === document ? x.target.documentElement : x.target, M = J.scrollLeft;
781
+ j.left = M < y.value, j.right = M > c.value, S.left = M <= 0 + (s.left || 0), S.right = M + J.clientWidth >= J.scrollWidth - (s.right || 0) - Be, y.value = M;
782
+ let D = J.scrollTop;
783
+ x.target === document && !D && (D = document.body.scrollTop), j.top = D < c.value, j.bottom = D > c.value, S.top = D <= 0 + (s.top || 0), S.bottom = D + J.clientHeight >= J.scrollHeight - (s.bottom || 0) - Be, c.value = D, f.value = !0, le(x), r(x);
784
+ };
785
+ return A(e, "scroll", l ? At(E, l, !0, !1) : E, n), A(e, "scrollend", Z, n), {
786
+ x: v,
787
+ y: i,
788
+ isScrolling: f,
789
+ arrivedState: S,
790
+ directions: j
791
+ };
792
+ }
793
+ var rl = Object.defineProperty, sl = Object.defineProperties, ul = Object.getOwnPropertyDescriptors, Ce = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, cl = Object.prototype.propertyIsEnumerable, Pe = (e, t, l) => t in e ? rl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, qe = (e, t) => {
794
+ for (var l in t || (t = {}))
795
+ dl.call(t, l) && Pe(e, l, t[l]);
796
+ if (Ce)
797
+ for (var l of Ce(t))
798
+ cl.call(t, l) && Pe(e, l, t[l]);
799
+ return e;
800
+ }, fl = (e, t) => sl(e, ul(t));
801
+ function Je(e, t, l = {}) {
802
+ var a, o;
803
+ const r = (a = l.direction) != null ? a : "bottom", s = Y(ue(e, fl(qe({}, l), {
804
+ offset: qe({
805
+ [r]: (o = l.distance) != null ? o : 0
806
+ }, l.offset)
807
+ })));
808
+ q(() => s.arrivedState[r], async (n) => {
809
+ var u, y;
810
+ if (n) {
811
+ const c = B(e), v = {
812
+ height: (u = c == null ? void 0 : c.scrollHeight) != null ? u : 0,
813
+ width: (y = c == null ? void 0 : c.scrollWidth) != null ? y : 0
814
+ };
815
+ await t(s), l.preserveScrollPosition && c && Me(() => {
816
+ c.scrollTo({
817
+ top: c.scrollHeight - v.height,
818
+ left: c.scrollWidth - v.width
819
+ });
820
+ });
821
+ }
822
+ });
823
+ }
824
+ R.mounted + "";
825
+ function Te(e, t, l = {}) {
826
+ const {
827
+ root: a,
828
+ rootMargin: o = "0px",
829
+ threshold: r = 0.1,
830
+ window: s = N
831
+ } = l, n = Ge(() => s && "IntersectionObserver" in s);
832
+ let u = z;
833
+ const y = n.value ? q(() => ({
834
+ el: C(e),
835
+ root: C(a)
836
+ }), ({ el: v, root: i }) => {
837
+ if (u(), !v)
838
+ return;
839
+ const d = new IntersectionObserver(t, {
840
+ root: i,
841
+ rootMargin: o,
842
+ threshold: r
843
+ });
844
+ d.observe(v), u = () => {
845
+ d.disconnect(), u = z;
846
+ };
847
+ }, { immediate: !0, flush: "post" }) : z, c = () => {
848
+ u(), y();
849
+ };
850
+ return Q(c), {
851
+ isSupported: n,
852
+ stop: c
853
+ };
854
+ }
855
+ R.mounted + "";
856
+ var yl = Object.defineProperty, ml = Object.defineProperties, vl = Object.getOwnPropertyDescriptors, ze = Object.getOwnPropertySymbols, pl = Object.prototype.hasOwnProperty, hl = Object.prototype.propertyIsEnumerable, Ae = (e, t, l) => t in e ? yl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, bl = (e, t) => {
857
+ for (var l in t || (t = {}))
858
+ pl.call(t, l) && Ae(e, l, t[l]);
859
+ if (ze)
860
+ for (var l of ze(t))
861
+ hl.call(t, l) && Ae(e, l, t[l]);
862
+ return e;
863
+ }, gl = (e, t) => ml(e, vl(t));
864
+ R.mounted + "";
865
+ function Ke(e) {
866
+ const t = window.getComputedStyle(e);
867
+ if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
868
+ return !0;
869
+ {
870
+ const l = e.parentNode;
871
+ return !l || l.tagName === "BODY" ? !1 : Ke(l);
872
+ }
873
+ }
874
+ function _l(e) {
875
+ const t = e || window.event, l = t.target;
876
+ return Ke(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
877
+ }
878
+ function wl(e, t = !1) {
879
+ const l = g(t);
880
+ let a = null, o;
881
+ q(Dt(e), (n) => {
882
+ if (n) {
883
+ const u = n;
884
+ o = u.style.overflow, l.value && (u.style.overflow = "hidden");
885
+ }
886
+ }, {
887
+ immediate: !0
888
+ });
889
+ const r = () => {
890
+ const n = B(e);
891
+ !n || l.value || (X && (a = A(n, "touchmove", (u) => {
892
+ _l(u);
893
+ }, { passive: !1 })), n.style.overflow = "hidden", l.value = !0);
894
+ }, s = () => {
895
+ const n = B(e);
896
+ !n || !l.value || (X && (a == null || a()), n.style.overflow = o, l.value = !1);
897
+ };
898
+ return Q(s), I({
899
+ get() {
900
+ return l.value;
901
+ },
902
+ set(n) {
903
+ n ? r() : s();
904
+ }
905
+ });
906
+ }
907
+ const Sl = () => {
908
+ let e = !1;
909
+ const t = g(!1);
910
+ return (l, a) => {
911
+ if (t.value = a.value, e)
912
+ return;
913
+ e = !0;
914
+ const o = wl(l, a.value);
915
+ q(t, (r) => o.value = r);
916
+ };
917
+ };
918
+ Sl();
919
+ const Qe = ["medium", "small"], kl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataLabel", "onClick"], jl = {
920
+ key: 0,
921
+ class: "joy-dropdown-list__footer"
922
+ }, $l = /* @__PURE__ */ $({
923
+ __name: "VJoyDropdownList",
924
+ props: {
925
+ options: {
926
+ type: Array,
927
+ validator(e) {
928
+ return e.every((l) => Object.keys(l).includes("label"));
929
+ },
930
+ default() {
931
+ return [];
932
+ }
933
+ },
934
+ size: {
935
+ type: String,
936
+ default: "medium",
937
+ validator(e) {
938
+ return Qe.includes(e);
939
+ }
940
+ },
941
+ modelValue: {
942
+ type: String
943
+ },
944
+ width: {
945
+ type: String,
946
+ default: "300"
947
+ },
948
+ height: {
949
+ type: String,
950
+ default: "300"
951
+ }
952
+ },
953
+ emits: ["update:modelValue", "close:dropdownList"],
954
+ setup(e, { expose: t, emit: l }) {
955
+ const a = e, o = g(), r = I(() => (i) => !a.modelValue && !i.value ? !1 : a.modelValue === i.label || a.modelValue === i.value);
956
+ function s(i) {
957
+ i.disabled || l("update:modelValue", i.label);
958
+ }
959
+ function n() {
960
+ var i;
961
+ return Array.from(((i = o.value) == null ? void 0 : i.querySelectorAll("li")) || []);
962
+ }
963
+ function u() {
964
+ const i = n().find((d) => d.getAttribute("aria-selected") === "true");
965
+ i && (i.focus(), o.value.scrollTo({
966
+ top: i.offsetTop
967
+ }));
968
+ }
969
+ function y() {
970
+ return n().find((i) => i === document.activeElement);
971
+ }
972
+ function c(i) {
973
+ var d;
974
+ if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), y() && ((d = o.value) != null && d.contains(y())))) {
975
+ const f = y();
976
+ if (!f)
977
+ return;
978
+ if (f.querySelector("a"))
979
+ return f.querySelector("a").click();
980
+ l("update:modelValue", f.dataLabel);
981
+ }
982
+ if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
983
+ const f = n(), S = y();
984
+ let j = f.indexOf(S);
985
+ if (f.length) {
986
+ i.preventDefault(), i.key === "ArrowDown" ? j++ : i.key === "ArrowUp" ? j-- : i.key === "Home" ? j = 0 : i.key === "End" && (j = f.length - 1), j < 0 && (j = 0), j > f.length - 1 && (j = 0), v(f[j]);
987
+ return;
988
+ }
989
+ }
990
+ }
991
+ function v(i) {
992
+ i.focus();
993
+ }
994
+ return W(() => {
995
+ window.addEventListener("keydown", c), u();
996
+ }), Re(() => {
997
+ window.removeEventListener("keydown", c);
998
+ }), t({
999
+ isSelected: r
1000
+ }), (i, d) => (m(), p("div", {
1001
+ class: "joy-dropdown-list",
1002
+ style: G({ "max-width": `${e.width}px`, "max-height": `${e.height}px` })
1003
+ }, [
1004
+ h("ul", {
1005
+ ref_key: "listbox",
1006
+ ref: o,
1007
+ role: "listbox",
1008
+ class: "joy-dropdown-list__items",
1009
+ style: G({ "max-height": `${e.height}px` })
1010
+ }, [
1011
+ (m(!0), p(fe, null, ye(e.options, (f) => (m(), p("li", {
1012
+ id: f.id,
1013
+ key: f.label,
1014
+ style: G({ "max-width": `${e.width}px` }),
1015
+ class: k([
1016
+ "joy-dropdown-list__item",
1017
+ `joy-dropdown-list__item--${e.size}`,
1018
+ {
1019
+ "joy-dropdown-list__item--selected": _(r)(f),
1020
+ "joy-dropdown-list__item--disabled": f.disabled
1021
+ }
1022
+ ]),
1023
+ tabindex: f.disabled ? void 0 : 0,
1024
+ "aria-disabled": f.disabled,
1025
+ "aria-selected": _(r)(f),
1026
+ title: f.label,
1027
+ "aria-label": f.label,
1028
+ ".dataLabel": f.value || f.label,
1029
+ role: "option",
1030
+ onClick: (S) => s(f)
1031
+ }, [
1032
+ b(i.$slots, "label", me(ve(f)), () => [
1033
+ h("span", null, O(f.label), 1)
1034
+ ], !0)
1035
+ ], 14, kl))), 128))
1036
+ ], 4),
1037
+ i.$slots.footer ? (m(), p("footer", jl, [
1038
+ b(i.$slots, "footer", {}, void 0, !0)
1039
+ ])) : w("", !0)
1040
+ ], 4));
1041
+ }
1042
+ });
1043
+ const Ze = /* @__PURE__ */ V($l, [["__scopeId", "data-v-5ab31622"]]);
1044
+ function Vl(e) {
1045
+ const t = () => e();
1046
+ W(() => {
1047
+ window.addEventListener("resize", t);
1048
+ }), Re(() => {
1049
+ window.removeEventListener("resize", t);
1050
+ });
1051
+ }
1052
+ const xl = /* @__PURE__ */ $({
1053
+ __name: "VJoyDropdown",
1054
+ props: {
1055
+ /** DOM valid selector to give to Vue3 Teleport "to" property */
1056
+ appendTo: {
1057
+ type: String,
1058
+ default: "body"
1059
+ },
1060
+ /**
1061
+ * Disable teleport for testing purpose mostly.
1062
+ */
1063
+ disableTeleport: {
1064
+ type: Boolean,
1065
+ default: !1
1066
+ },
1067
+ /** close the dropdown list when clicking on any item. Default to false */
1068
+ closeOnSelect: {
1069
+ type: Boolean,
1070
+ default: !0
1071
+ },
1072
+ /** Dropdown vertical position according to the trigger */
1073
+ direction: {
1074
+ type: String,
1075
+ default: "down"
1076
+ },
1077
+ /** Dropdown horizontal justify according to the trigger */
1078
+ justify: {
1079
+ type: String,
1080
+ default: "left"
1081
+ },
1082
+ /**
1083
+ * ```
1084
+ * interface Option {id?: string; value?: string; label: string; href?: string; disabled?:boolean; checked?:boolean}
1085
+ * ```
1086
+ */
1087
+ options: {
1088
+ type: Array,
1089
+ validator(e) {
1090
+ return e.every((l) => Object.keys(l).includes("label"));
1091
+ },
1092
+ default() {
1093
+ return [];
1094
+ }
1095
+ },
1096
+ size: {
1097
+ type: String,
1098
+ default: "medium",
1099
+ validator(e) {
1100
+ return Qe.includes(e);
1101
+ }
1102
+ },
1103
+ modelValue: {
1104
+ type: String,
1105
+ default: ""
1106
+ },
1107
+ /**
1108
+ * Space between the trigger and the list
1109
+ */
1110
+ dropdownGap: {
1111
+ type: String,
1112
+ default: "16"
1113
+ },
1114
+ /**
1115
+ * Max-width of the dropdown list
1116
+ */
1117
+ width: {
1118
+ type: String,
1119
+ default: "300"
1120
+ },
1121
+ /**
1122
+ * Max-height of the dropdown list
1123
+ */
1124
+ height: {
1125
+ type: String,
1126
+ default: "300"
1127
+ }
1128
+ },
1129
+ emits: ["update:modelValue"],
1130
+ setup(e, { expose: t, emit: l }) {
1131
+ const a = e, o = g(!1), r = g(null), s = g(), n = g(null), u = g(null), y = g(!1), c = {
1132
+ ignore: [s, ".joy-dropdown__list"]
1133
+ };
1134
+ let v = null;
1135
+ const i = Y({
1136
+ left: "auto",
1137
+ top: "0px",
1138
+ right: "auto"
1139
+ });
1140
+ function d() {
1141
+ v && clearTimeout(v), y.value = !0, v = setTimeout(() => {
1142
+ o.value = !1, y.value = !1;
1143
+ }, 300);
1144
+ }
1145
+ function f(E) {
1146
+ y.value = !1, v && clearTimeout(v), Z(), u.value = E.target, o.value = !0;
1147
+ }
1148
+ function S() {
1149
+ d(), j();
1150
+ }
1151
+ function j() {
1152
+ u.value && u.value.focus();
1153
+ }
1154
+ function Z() {
1155
+ const E = s.value.getBoundingClientRect(), x = document.documentElement.scrollTop + E.top, J = E.height, M = E.left, D = E.width;
1156
+ a.justify === "left" ? i.left = M + "px" : i.left = M + D - parseInt(a.width) + "px", a.direction === "down" ? i.top = x + J + parseInt(a.dropdownGap) + "px" : i.top = x - (parseInt(a.height) + parseInt(a.dropdownGap)) + "px";
1157
+ }
1158
+ function le(E) {
1159
+ l("update:modelValue", E), a.closeOnSelect && (d(), j());
1160
+ }
1161
+ return Vl(d), t({
1162
+ showDropdownList: o
1163
+ }), (E, x) => (m(), P(_(Gt), {
1164
+ ref_key: "dropdown",
1165
+ ref: r,
1166
+ options: c,
1167
+ class: "joy-dropdown",
1168
+ onTrigger: d
1169
+ }, {
1170
+ default: L(() => [
1171
+ h("div", {
1172
+ ref_key: "button",
1173
+ ref: s,
1174
+ class: "joy-dropdown__button",
1175
+ onClick: f
1176
+ }, [
1177
+ b(E.$slots, "dropdown-button", {}, void 0, !0)
1178
+ ], 512),
1179
+ (m(), P(ot, {
1180
+ to: e.appendTo,
1181
+ disabled: e.disableTeleport
1182
+ }, [
1183
+ o.value ? (m(), p("div", {
1184
+ key: 0,
1185
+ ref_key: "list",
1186
+ ref: n,
1187
+ class: k([
1188
+ "joy-dropdown__list",
1189
+ `joy-dropdown__list--${e.direction}`,
1190
+ {
1191
+ "joy-dropdown__list--visible": !y.value,
1192
+ "joy-dropdown__list--hiding": y.value
1193
+ }
1194
+ ]),
1195
+ style: G({
1196
+ top: i.top,
1197
+ left: i.left
1198
+ })
1199
+ }, [
1200
+ ce(Ze, {
1201
+ "model-value": e.modelValue,
1202
+ options: e.options,
1203
+ size: e.size,
1204
+ width: e.width,
1205
+ height: e.height,
1206
+ "onUpdate:modelValue": le,
1207
+ "onClose:dropdownList": S
1208
+ }, {
1209
+ label: L((J) => [
1210
+ b(E.$slots, "dropdown-item", me(ve(J)), () => [
1211
+ h("span", null, O(J.label), 1)
1212
+ ], !0)
1213
+ ]),
1214
+ _: 3
1215
+ }, 8, ["model-value", "options", "size", "width", "height"])
1216
+ ], 6)) : w("", !0)
1217
+ ], 8, ["to", "disabled"]))
1218
+ ]),
1219
+ _: 3
1220
+ }, 512));
1221
+ }
1222
+ });
1223
+ const Il = /* @__PURE__ */ V(xl, [["__scopeId", "data-v-49159b35"]]), Ol = (e) => (ee("data-v-50e209d6"), e = e(), te(), e), Ll = ["aria-hidden"], El = /* @__PURE__ */ Ol(() => /* @__PURE__ */ h("joy-icon", {
362
1224
  "custom-class": "joy-icon-error",
363
1225
  name: "warning-triangle"
364
- }, null, -1)), Je = /* @__PURE__ */ p({
365
- __name: "JoyFormError",
1226
+ }, null, -1)), Bl = /* @__PURE__ */ $({
1227
+ __name: "VJoyFormError",
366
1228
  props: {
367
1229
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
368
1230
  visible: {
@@ -373,37 +1235,37 @@ const xe = /* @__PURE__ */ _($e, [["__scopeId", "data-v-47a76942"]]), Ie = (e) =
373
1235
  noHtmlErrorText: String
374
1236
  },
375
1237
  setup(e) {
376
- return (l, a) => (o(), d("div", {
1238
+ return (t, l) => (m(), p("div", {
377
1239
  "aria-hidden": e.visible,
378
- class: b(["joy-form-error", { "joy-has-error": e.visible }]),
1240
+ class: k(["joy-form-error", { "joy-has-error": e.visible }]),
379
1241
  role: "alert"
380
1242
  }, [
381
- Be,
382
- u("div", null, [
383
- c(l.$slots, "default", {}, () => [
384
- B($(e.noHtmlErrorText), 1)
1243
+ El,
1244
+ h("div", null, [
1245
+ b(t.$slots, "default", {}, () => [
1246
+ T(O(e.noHtmlErrorText), 1)
385
1247
  ], !0)
386
1248
  ])
387
- ], 10, qe));
1249
+ ], 10, Ll));
388
1250
  }
389
1251
  });
390
- const G = /* @__PURE__ */ _(Je, [["__scopeId", "data-v-d693f93c"]]);
391
- function Ve(e) {
392
- let l;
1252
+ const Ye = /* @__PURE__ */ V(Bl, [["__scopeId", "data-v-50e209d6"]]);
1253
+ function Cl(e) {
1254
+ let t;
393
1255
  switch (e) {
394
1256
  case "error":
395
- l = "warning-triangle";
1257
+ t = "warning-triangle";
396
1258
  break;
397
1259
  case "success":
398
- l = "check";
1260
+ t = "check";
399
1261
  break;
400
1262
  default:
401
- l = "info-circle";
1263
+ t = "info-circle";
402
1264
  }
403
- return l;
1265
+ return t;
404
1266
  }
405
- const Ce = [...ee], we = ["name"], Le = { class: "joy-highlight--text" }, ze = /* @__PURE__ */ p({
406
- __name: "JoyHighlight",
1267
+ const Pl = [...dt], ql = ["name"], Jl = { class: "joy-highlight--text" }, Tl = /* @__PURE__ */ $({
1268
+ __name: "VJoyHighlight",
407
1269
  props: {
408
1270
  accent: {
409
1271
  type: Boolean,
@@ -418,51 +1280,51 @@ const Ce = [...ee], we = ["name"], Le = { class: "joy-highlight--text" }, ze = /
418
1280
  type: String,
419
1281
  default: "neutral",
420
1282
  validator(e) {
421
- return Ce.includes(e);
1283
+ return Pl.includes(e);
422
1284
  }
423
1285
  }
424
1286
  },
425
- setup(e, { expose: l }) {
426
- const a = e, t = V(() => a.icon ? a.icon : Ve(a.level));
427
- return l({
428
- getRelevantIcon: t
429
- }), (i, s) => (o(), d("div", {
430
- class: b([
1287
+ setup(e, { expose: t }) {
1288
+ const l = e, a = I(() => l.icon ? l.icon : Cl(l.level));
1289
+ return t({
1290
+ getRelevantIcon: a
1291
+ }), (o, r) => (m(), p("div", {
1292
+ class: k([
431
1293
  "joy-highlight",
432
1294
  `joy-highlight_${e.level}`,
433
1295
  {
434
1296
  "joy-highlight__accent": e.accent,
435
- "joy-highlight__titled": i.$slots["highlight-title"]
1297
+ "joy-highlight__titled": o.$slots["highlight-title"]
436
1298
  }
437
1299
  ])
438
1300
  }, [
439
- e.displayIcon ? (o(), d("joy-icon", {
1301
+ e.displayIcon ? (m(), p("joy-icon", {
440
1302
  key: 0,
441
- name: m(t)
442
- }, null, 8, we)) : y("", !0),
443
- u("div", Le, [
444
- u("strong", null, [
445
- c(i.$slots, "highlight-title", {}, void 0, !0)
1303
+ name: _(a)
1304
+ }, null, 8, ql)) : w("", !0),
1305
+ h("div", Jl, [
1306
+ h("strong", null, [
1307
+ b(o.$slots, "highlight-title", {}, void 0, !0)
446
1308
  ]),
447
- c(i.$slots, "default", {}, void 0, !0)
1309
+ b(o.$slots, "default", {}, void 0, !0)
448
1310
  ])
449
1311
  ], 2));
450
1312
  }
451
1313
  });
452
- const Me = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-15d3fa11"]]), Ee = ["small", "medium", "large"], Ne = {
1314
+ const zl = /* @__PURE__ */ V(Tl, [["__scopeId", "data-v-a0ff7a60"]]), Al = ["small", "medium", "large"], Dl = {
453
1315
  key: 0,
454
1316
  class: "joy-label-required"
455
- }, Te = {
1317
+ }, Ml = {
456
1318
  key: 1,
457
1319
  class: "joy-label-optional"
458
- }, Oe = /* @__PURE__ */ p({
459
- __name: "JoyLabel",
1320
+ }, Rl = /* @__PURE__ */ $({
1321
+ __name: "VJoyLabel",
460
1322
  props: {
461
1323
  size: {
462
1324
  type: String,
463
1325
  default: "medium",
464
1326
  validator(e) {
465
- return Ee.includes(e);
1327
+ return Al.includes(e);
466
1328
  }
467
1329
  },
468
1330
  tagName: {
@@ -478,20 +1340,20 @@ const Me = /* @__PURE__ */ _(ze, [["__scopeId", "data-v-15d3fa11"]]), Ee = ["sma
478
1340
  }
479
1341
  },
480
1342
  setup(e) {
481
- return (l, a) => (o(), J(E(e.tagName), L({
1343
+ return (t, l) => (m(), P(de(e.tagName), K({
482
1344
  class: ["joy-label", `joy-label--${e.size}`]
483
- }, l.$attrs), {
484
- default: q(() => [
485
- c(l.$slots, "default", {}, void 0, !0),
486
- e.required ? (o(), d("span", Ne, "*")) : y("", !0),
487
- e.optionalLabel ? (o(), d("span", Te, "- " + $(e.optionalLabel), 1)) : y("", !0)
1345
+ }, t.$attrs), {
1346
+ default: L(() => [
1347
+ b(t.$slots, "default", {}, void 0, !0),
1348
+ e.required ? (m(), p("span", Dl, "*")) : w("", !0),
1349
+ e.optionalLabel ? (m(), p("span", Ml, "- " + O(e.optionalLabel), 1)) : w("", !0)
488
1350
  ]),
489
1351
  _: 3
490
1352
  }, 16, ["class"]));
491
1353
  }
492
1354
  });
493
- const C = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-e3232407"]]), Re = ["large", "medium", "small"], Ae = ["id", "disabled", "type", "value"], Fe = ["name"], Pe = ["data-unit"], He = /* @__PURE__ */ p({
494
- __name: "JoyInput",
1355
+ const H = /* @__PURE__ */ V(Rl, [["__scopeId", "data-v-1e682734"]]), Nl = ["large", "medium", "small"], Hl = ["id", "disabled", "type", "value"], Wl = ["name"], Fl = ["data-unit"], Ul = /* @__PURE__ */ $({
1356
+ __name: "VJoyInput",
495
1357
  props: {
496
1358
  disabled: {
497
1359
  type: Boolean,
@@ -541,7 +1403,7 @@ const C = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-e3232407"]]), Re = ["larg
541
1403
  type: String,
542
1404
  default: "medium",
543
1405
  validator(e) {
544
- return Re.includes(e);
1406
+ return Nl.includes(e);
545
1407
  }
546
1408
  },
547
1409
  type: String,
@@ -549,74 +1411,74 @@ const C = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-e3232407"]]), Re = ["larg
549
1411
  unit: String
550
1412
  },
551
1413
  emits: ["update:modelValue"],
552
- setup(e, { emit: l }) {
553
- const a = e, t = S(), i = S(), s = O(), f = w(), n = S(!1), r = V(() => a.clearable && a.modelValue.length > 0 && !a.unit), g = V(() => f.default && f.default()), k = V(() => {
554
- var v, h;
555
- return !!((v = i.value) != null && v.closest("joy-wrapper")) || !!((h = i.value) != null && h.closest(".joy-wrapper"));
556
- }), I = S(a.type);
557
- W(() => {
558
- I.value = a.unit ? "number" : a.unit || "text";
1414
+ setup(e, { emit: t }) {
1415
+ const l = e, a = g(), o = g(), r = De(), s = F(), n = g(!1), u = I(() => l.clearable && l.modelValue.length > 0 && !l.unit), y = I(() => s.default && s.default()), c = I(() => {
1416
+ var d, f;
1417
+ return !!((d = o.value) != null && d.closest("joy-wrapper")) || !!((f = o.value) != null && f.closest(".joy-wrapper"));
1418
+ }), v = g(l.type);
1419
+ nt(() => {
1420
+ v.value = l.unit ? "number" : l.unit || "text";
559
1421
  });
560
- const j = {
1422
+ const i = {
561
1423
  onFocus: () => {
562
1424
  n.value = !0;
563
1425
  },
564
1426
  onBlur: () => {
565
1427
  n.value = !1;
566
1428
  },
567
- onInput: (v) => {
568
- let h = v.target.value;
569
- l("update:modelValue", h);
1429
+ onInput: (d) => {
1430
+ let f = d.target.value;
1431
+ t("update:modelValue", f);
570
1432
  },
571
1433
  clearValue: () => {
572
- a.disabled || l("update:modelValue", "");
1434
+ l.disabled || t("update:modelValue", "");
573
1435
  }
574
1436
  };
575
- return (v, h) => (o(), d("div", {
1437
+ return (d, f) => (m(), p("div", {
576
1438
  ref_key: "root",
577
- ref: i,
578
- class: b([`joy-input--${a.size}`])
1439
+ ref: o,
1440
+ class: k([`joy-input--${l.size}`])
579
1441
  }, [
580
- u("div", {
581
- class: b([
1442
+ h("div", {
1443
+ class: k([
582
1444
  "joy-input",
583
1445
  {
584
1446
  "joy-input--focusing": n.value,
585
1447
  "joy-input--disabled": e.disabled,
586
1448
  "joy-input--invalid": e.invalid,
587
- "joy-input--valid": !e.invalid && !m(s).disabled
1449
+ "joy-input--valid": !e.invalid && !_(r).disabled
588
1450
  }
589
1451
  ])
590
1452
  }, [
591
- m(g) || e.label ? (o(), J(C, {
1453
+ _(y) || e.label ? (m(), P(H, {
592
1454
  key: 0,
593
1455
  for: e.name,
594
1456
  required: e.required && e.requiredMark,
595
1457
  "optional-label": e.optionalLabel,
596
1458
  size: e.labelSize
597
1459
  }, {
598
- default: q(() => [
599
- c(v.$slots, "default", {}, () => [
600
- B($(e.label), 1)
1460
+ default: L(() => [
1461
+ b(d.$slots, "default", {}, () => [
1462
+ T(O(e.label), 1)
601
1463
  ], !0)
602
1464
  ]),
603
1465
  _: 3
604
- }, 8, ["for", "required", "optional-label", "size"])) : y("", !0),
605
- u("div", {
606
- class: b([
1466
+ }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
1467
+ h("div", {
1468
+ class: k([
607
1469
  "joy-input--wrapper",
608
1470
  {
609
1471
  "joy-input--wrapper-has-icon": !!e.icon,
610
1472
  "joy-input--wrapper---clearable": e.clearable,
611
1473
  "joy-input--wrapper-unit": !!e.unit,
612
- "joy-input--wrapper-margin": !m(k)
1474
+ "joy-input--wrapper-margin": !_(c)
613
1475
  }
614
1476
  ])
615
1477
  }, [
616
- u("input", L(v.$attrs, {
617
- id: a.name,
1478
+ h("input", K(d.$attrs, {
1479
+ id: l.name,
618
1480
  ref_key: "input",
619
- ref: t,
1481
+ ref: a,
620
1482
  disabled: e.disabled,
621
1483
  class: [
622
1484
  {
@@ -624,41 +1486,41 @@ const C = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-e3232407"]]), Re = ["larg
624
1486
  "joy-input--field-invalid": e.invalid
625
1487
  }
626
1488
  ],
627
- type: I.value,
1489
+ type: v.value,
628
1490
  value: e.modelValue,
629
- onFocus: h[0] || (h[0] = //@ts-ignore
630
- (...x) => j.onFocus && j.onFocus(...x)),
631
- onBlur: h[1] || (h[1] = //@ts-ignore
632
- (...x) => j.onBlur && j.onBlur(...x)),
633
- onInput: h[2] || (h[2] = //@ts-ignore
634
- (...x) => j.onInput && j.onInput(...x))
635
- }), null, 16, Ae),
636
- m(r) ? (o(), d("joy-icon", {
1491
+ onFocus: f[0] || (f[0] = //@ts-ignore
1492
+ (...S) => i.onFocus && i.onFocus(...S)),
1493
+ onBlur: f[1] || (f[1] = //@ts-ignore
1494
+ (...S) => i.onBlur && i.onBlur(...S)),
1495
+ onInput: f[2] || (f[2] = //@ts-ignore
1496
+ (...S) => i.onInput && i.onInput(...S))
1497
+ }), null, 16, Hl),
1498
+ _(u) ? (m(), p("joy-icon", {
637
1499
  key: 0,
638
1500
  size: "xxsmall",
639
1501
  name: "cross",
640
1502
  class: "joy-input--clear",
641
- onClick: h[3] || (h[3] = //@ts-ignore
642
- (...x) => j.clearValue && j.clearValue(...x))
643
- })) : y("", !0),
644
- e.icon && !e.clearable ? (o(), d("joy-icon", {
1503
+ onClick: f[3] || (f[3] = //@ts-ignore
1504
+ (...S) => i.clearValue && i.clearValue(...S))
1505
+ })) : w("", !0),
1506
+ e.icon && !e.clearable ? (m(), p("joy-icon", {
645
1507
  key: 1,
646
1508
  role: "img",
647
1509
  class: "joy-input--decorative-icon",
648
1510
  name: e.icon
649
- }, null, 8, Fe)) : y("", !0),
650
- e.unit ? (o(), d("div", {
1511
+ }, null, 8, Wl)) : w("", !0),
1512
+ e.unit ? (m(), p("div", {
651
1513
  key: 2,
652
1514
  "data-unit": e.unit,
653
1515
  class: "joy-input--unit"
654
- }, null, 8, Pe)) : y("", !0)
1516
+ }, null, 8, Fl)) : w("", !0)
655
1517
  ], 2)
656
1518
  ], 2)
657
1519
  ], 2));
658
1520
  }
659
1521
  });
660
- const Ge = /* @__PURE__ */ _(He, [["__scopeId", "data-v-023262dd"]]), Ue = ["teal", "white"], We = ["href"], De = ["color", "name"], Ze = /* @__PURE__ */ p({
661
- __name: "JoyLink",
1522
+ const Gl = /* @__PURE__ */ V(Ul, [["__scopeId", "data-v-8258d6d7"]]), Kl = ["teal", "white"], Ql = ["href"], Zl = ["color", "name"], Yl = /* @__PURE__ */ $({
1523
+ __name: "VJoyLink",
662
1524
  props: {
663
1525
  href: {
664
1526
  type: String,
@@ -668,36 +1530,36 @@ const Ge = /* @__PURE__ */ _(He, [["__scopeId", "data-v-023262dd"]]), Ue = ["tea
668
1530
  type: String,
669
1531
  default: "teal",
670
1532
  validator(e) {
671
- return Ue.includes(e);
1533
+ return Kl.includes(e);
672
1534
  }
673
1535
  },
674
1536
  icon: String
675
1537
  },
676
1538
  setup(e) {
677
- const l = e, a = V(() => l.color === "white" ? "white" : "teal");
678
- return (t, i) => (o(), d("a", L({ href: e.href }, t.$attrs, {
1539
+ const t = e, l = I(() => t.color === "white" ? "white" : "teal");
1540
+ return (a, o) => (m(), p("a", K({ href: e.href }, a.$attrs, {
679
1541
  class: ["joy-link", `joy-link_${e.color}`]
680
1542
  }), [
681
- e.icon ? (o(), d("joy-icon", {
1543
+ e.icon ? (m(), p("joy-icon", {
682
1544
  key: 0,
683
- color: m(a),
1545
+ color: _(l),
684
1546
  name: e.icon
685
- }, null, 8, De)) : y("", !0),
686
- c(t.$slots, "default", {}, void 0, !0)
687
- ], 16, We));
1547
+ }, null, 8, Zl)) : w("", !0),
1548
+ b(a.$slots, "default", {}, void 0, !0)
1549
+ ], 16, Ql));
688
1550
  }
689
1551
  });
690
- const Ke = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-640ee9a6"]]), Qe = ["id"], Xe = {
691
- class: /* @__PURE__ */ b(["joy-multi-checkbox"])
692
- }, Ye = /* @__PURE__ */ p({
693
- __name: "JoyMultiCheckbox",
1552
+ const Xl = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-7ef59bc8"]]), ea = ["id"], ta = {
1553
+ class: /* @__PURE__ */ k(["joy-multi-checkbox"])
1554
+ }, la = /* @__PURE__ */ $({
1555
+ __name: "VJoyMultiCheckbox",
694
1556
  props: {
695
1557
  options: {
696
1558
  type: Array,
697
1559
  required: !0,
698
1560
  validator(e) {
699
- const l = e.every((t) => Object.keys(t).includes("value")), a = e.every((t) => Object.keys(t).includes("label"));
700
- return l && a;
1561
+ const t = e.every((a) => Object.keys(a).includes("value")), l = e.every((a) => Object.keys(a).includes("label"));
1562
+ return t && l;
701
1563
  }
702
1564
  },
703
1565
  id: String,
@@ -727,62 +1589,64 @@ const Ke = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-640ee9a6"]]), Qe = ["id"
727
1589
  }
728
1590
  },
729
1591
  emits: ["update:value"],
730
- setup(e, { emit: l }) {
731
- const a = e;
732
- function t(s) {
733
- return a.value.includes(s.value);
1592
+ setup(e, { emit: t }) {
1593
+ const l = e;
1594
+ function a(r) {
1595
+ return l.value.includes(r.value);
734
1596
  }
735
- function i(s, f) {
736
- let n = [...a.value || []];
737
- f ? n.push(s) : n.splice(n.indexOf(s), 1), l("update:value", n);
1597
+ function o(r, s) {
1598
+ let n = [...l.value || []];
1599
+ s ? n.push(r) : n.splice(n.indexOf(r), 1), t("update:value", n);
738
1600
  }
739
- return (s, f) => (o(), d("fieldset", {
1601
+ return (r, s) => (m(), p("fieldset", {
740
1602
  id: e.id,
741
1603
  class: "joy-multi-checkbox__wrapper"
742
1604
  }, [
743
- e.label ? (o(), J(m(C), {
1605
+ e.label ? (m(), P(_(H), {
744
1606
  key: 0,
745
1607
  "tag-name": "legend",
746
1608
  required: e.required && e.requiredMark,
747
1609
  "optional-label": e.optionalLabel,
748
1610
  size: e.labelSize
749
1611
  }, {
750
- default: q(() => [
751
- B($(e.label), 1)
1612
+ default: L(() => [
1613
+ T(O(e.label), 1)
752
1614
  ]),
753
1615
  _: 1
754
- }, 8, ["required", "optional-label", "size"])) : y("", !0),
755
- u("div", Xe, [
756
- (o(!0), d(A, null, F(e.options, (n) => (o(), J(m(T), {
1616
+ }, 8, ["required", "optional-label", "size"])) : w("", !0),
1617
+ h("div", ta, [
1618
+ (m(!0), p(fe, null, ye(e.options, (n) => (m(), P(_(pe), {
757
1619
  id: n.id,
758
1620
  key: n.id,
759
1621
  name: n.name,
760
1622
  value: n.value,
761
- checked: t(n),
762
- "onUpdate:checked": (r) => i(n.value, r)
1623
+ checked: a(n),
1624
+ "onUpdate:checked": (u) => o(n.value, u)
763
1625
  }, {
764
- default: q(() => [
765
- B($(n.label), 1)
1626
+ default: L(() => [
1627
+ b(r.$slots, "checkbox", me(ve(n)), () => [
1628
+ T(O(n.label), 1)
1629
+ ], !0)
766
1630
  ]),
767
1631
  _: 2
768
1632
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
769
1633
  ])
770
- ], 8, Qe));
1634
+ ], 8, ea));
771
1635
  }
772
1636
  });
773
- const et = /* @__PURE__ */ _(Ye, [["__scopeId", "data-v-4a9e39e2"]]), tt = ["small", "medium", "large"], at = {
774
- class: /* @__PURE__ */ b(["joy-panel__header"])
775
- }, lt = {
1637
+ const aa = /* @__PURE__ */ V(la, [["__scopeId", "data-v-f4301a1f"]]), oa = ["small", "medium", "large"], na = {
1638
+ class: /* @__PURE__ */ k(["joy-panel__header"])
1639
+ }, ia = {
776
1640
  key: 0,
777
1641
  class: "joy-panel__header-title"
778
- }, nt = {
1642
+ }, ra = {
779
1643
  key: 1,
780
1644
  class: "joy-panel__header-action"
781
- }, ot = {
1645
+ }, sa = {
782
1646
  key: 2,
783
1647
  class: "joy-panel__header-subtitle"
784
- }, it = { class: "joy-panel__body" }, dt = { class: "joy-panel__footer" }, ut = /* @__PURE__ */ p({
785
- __name: "JoyPanel",
1648
+ }, ua = { class: "joy-panel__body" }, da = { class: "joy-panel__footer" }, ca = /* @__PURE__ */ $({
1649
+ __name: "VJoyPanel",
786
1650
  props: {
787
1651
  flex: {
788
1652
  type: String
@@ -795,63 +1659,63 @@ const et = /* @__PURE__ */ _(Ye, [["__scopeId", "data-v-4a9e39e2"]]), tt = ["sma
795
1659
  type: String,
796
1660
  defaut: "medium",
797
1661
  validator(e) {
798
- return tt.includes(e);
1662
+ return oa.includes(e);
799
1663
  }
800
1664
  }
801
1665
  },
802
1666
  setup(e) {
803
- const l = w(), a = S(), t = V(() => {
804
- var i;
805
- return (i = a.value) == null ? void 0 : i.closest(".joy-wrapper");
1667
+ const t = F(), l = g(), a = I(() => {
1668
+ var o;
1669
+ return (o = l.value) == null ? void 0 : o.closest(".joy-wrapper");
806
1670
  });
807
- return (i, s) => (o(), d("section", {
1671
+ return (o, r) => (m(), p("section", {
808
1672
  ref_key: "panel",
809
- ref: a,
810
- style: D({ flex: e.flex }),
811
- class: b(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin || m(t) }])
1673
+ ref: l,
1674
+ style: G({ flex: e.flex }),
1675
+ class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin || _(a) }])
812
1676
  }, [
813
- u("header", at, [
814
- m(l)["panel-title"] ? (o(), d("div", lt, [
815
- c(i.$slots, "panel-title", {}, void 0, !0)
816
- ])) : y("", !0),
817
- m(l)["panel-action"] ? (o(), d("div", nt, [
818
- c(i.$slots, "panel-title-action", {}, void 0, !0)
819
- ])) : y("", !0),
820
- m(l)["panel-subtitle"] ? (o(), d("div", ot, [
821
- c(i.$slots, "panel-subtitle", {}, void 0, !0)
822
- ])) : y("", !0)
1677
+ h("header", na, [
1678
+ _(t)["panel-title"] ? (m(), p("div", ia, [
1679
+ b(o.$slots, "panel-title", {}, void 0, !0)
1680
+ ])) : w("", !0),
1681
+ _(t)["panel-action"] ? (m(), p("div", ra, [
1682
+ b(o.$slots, "panel-title-action", {}, void 0, !0)
1683
+ ])) : w("", !0),
1684
+ _(t)["panel-subtitle"] ? (m(), p("div", sa, [
1685
+ b(o.$slots, "panel-subtitle", {}, void 0, !0)
1686
+ ])) : w("", !0)
823
1687
  ]),
824
- u("div", it, [
825
- c(i.$slots, "panel-body", {}, void 0, !0)
1688
+ h("div", ua, [
1689
+ b(o.$slots, "panel-body", {}, void 0, !0)
826
1690
  ]),
827
- u("footer", dt, [
828
- c(i.$slots, "panel-action", {}, void 0, !0)
1691
+ h("footer", da, [
1692
+ b(o.$slots, "panel-action", {}, void 0, !0)
829
1693
  ])
830
1694
  ], 6));
831
1695
  }
832
1696
  });
833
- const st = /* @__PURE__ */ _(ut, [["__scopeId", "data-v-ab3b6d88"]]), rt = { class: "joy-panel-section" }, ct = {
1697
+ const fa = /* @__PURE__ */ V(ca, [["__scopeId", "data-v-2e2ef043"]]), ya = { class: "joy-panel-section" }, ma = {
834
1698
  key: 0,
835
1699
  class: "joy-panel-section__title"
836
- }, yt = {
1700
+ }, va = {
837
1701
  key: 1,
838
1702
  class: "joy-panel-section__content"
839
- }, mt = /* @__PURE__ */ p({
840
- __name: "JoyPanelSection",
1703
+ }, pa = /* @__PURE__ */ $({
1704
+ __name: "VJoyPanelSection",
841
1705
  setup(e) {
842
- const l = w();
843
- return (a, t) => (o(), d("div", rt, [
844
- m(l)["panel-section-title"] ? (o(), d("div", ct, [
845
- c(a.$slots, "panel-section-title", {}, void 0, !0)
846
- ])) : y("", !0),
847
- m(l)["panel-section-content"] ? (o(), d("div", yt, [
848
- c(a.$slots, "panel-section-content", {}, void 0, !0)
849
- ])) : y("", !0)
1706
+ const t = F();
1707
+ return (l, a) => (m(), p("div", ya, [
1708
+ _(t)["panel-section-title"] ? (m(), p("div", ma, [
1709
+ b(l.$slots, "panel-section-title", {}, void 0, !0)
1710
+ ])) : w("", !0),
1711
+ _(t)["panel-section-content"] ? (m(), p("div", va, [
1712
+ b(l.$slots, "panel-section-content", {}, void 0, !0)
1713
+ ])) : w("", !0)
850
1714
  ]));
851
1715
  }
852
1716
  });
853
- const ft = /* @__PURE__ */ _(mt, [["__scopeId", "data-v-3b8a6001"]]), vt = ["id", "value", "checked", "disabled", "required", "name"], bt = { class: "joy-radio-label" }, gt = { class: "joy-radio-content__wrapper" }, ht = { class: "joy-radio-content" }, pt = /* @__PURE__ */ p({
854
- __name: "JoyRadio",
1717
+ const ha = /* @__PURE__ */ V(pa, [["__scopeId", "data-v-d88510ab"]]), ba = ["id", "value", "checked", "disabled", "required", "name"], ga = { class: "joy-radio-label" }, _a = { class: "joy-radio-content__wrapper" }, wa = { class: "joy-radio-content" }, Sa = /* @__PURE__ */ $({
1718
+ __name: "VJoyRadio",
855
1719
  props: {
856
1720
  disabled: {
857
1721
  type: Boolean,
@@ -885,67 +1749,67 @@ const ft = /* @__PURE__ */ _(mt, [["__scopeId", "data-v-3b8a6001"]]), vt = ["id"
885
1749
  }
886
1750
  },
887
1751
  emits: ["update:modelValue"],
888
- setup(e, { expose: l, emit: a }) {
889
- const t = e, i = S(!1), s = S(null), f = S(null), n = w(), r = V(() => !t.modelValue || !t.value ? !1 : t.modelValue === t.value);
890
- function g() {
891
- i.value = !!n["expandable-content"] && r.value;
1752
+ setup(e, { expose: t, emit: l }) {
1753
+ const a = e, o = g(!1), r = g(null), s = g(null), n = F(), u = I(() => !a.modelValue || !a.value ? !1 : a.modelValue === a.value);
1754
+ function y() {
1755
+ o.value = !!n["expandable-content"] && u.value;
892
1756
  }
893
- function k() {
894
- a("update:modelValue", t.value), g();
1757
+ function c() {
1758
+ l("update:modelValue", a.value), y();
895
1759
  }
896
- return N(() => {
897
- t.theme === "outline" && g();
898
- }), Z(
899
- () => t.modelValue,
1760
+ return W(() => {
1761
+ a.theme === "outline" && y();
1762
+ }), q(
1763
+ () => a.modelValue,
900
1764
  () => {
901
- g();
1765
+ y();
902
1766
  }
903
- ), l({
904
- checked: r,
905
- isExpanded: i
906
- }), (I, j) => (o(), d("label", {
1767
+ ), t({
1768
+ checked: u,
1769
+ isExpanded: o
1770
+ }), (v, i) => (m(), p("label", {
907
1771
  ref_key: "root",
908
- ref: s,
909
- class: b([
1772
+ ref: r,
1773
+ class: k([
910
1774
  "joy-radio",
911
1775
  `joy-radio--${e.theme}`,
912
1776
  {
913
- "joy-radio--checked": m(r),
1777
+ "joy-radio--checked": _(u),
914
1778
  "joy-radio--disabled": e.disabled,
915
1779
  "joy-radio--invalid": e.invalid
916
1780
  }
917
1781
  ])
918
1782
  }, [
919
- u("input", {
1783
+ h("input", {
920
1784
  id: e.id,
921
1785
  type: "radio",
922
1786
  value: e.value,
923
- checked: m(r),
1787
+ checked: _(u),
924
1788
  disabled: e.disabled,
925
1789
  required: e.required,
926
1790
  name: e.name,
927
- onChange: k
928
- }, null, 40, vt),
929
- u("span", bt, [
930
- c(I.$slots, "default", {}, void 0, !0)
1791
+ onChange: c
1792
+ }, null, 40, ba),
1793
+ h("span", ga, [
1794
+ b(v.$slots, "default", {}, void 0, !0)
931
1795
  ]),
932
- u("div", gt, [
933
- u("div", ht, [
934
- c(I.$slots, "radio-content", {}, void 0, !0)
1796
+ h("div", _a, [
1797
+ h("div", wa, [
1798
+ b(v.$slots, "radio-content", {}, void 0, !0)
935
1799
  ]),
936
- u("div", {
1800
+ h("div", {
937
1801
  ref_key: "expandableElement",
938
- ref: f,
939
- class: b(["joy-radio-expandable", { "joy-radio-expandable--expanded": i.value }])
1802
+ ref: s,
1803
+ class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": o.value }])
940
1804
  }, [
941
- c(I.$slots, "expandable-content", {}, void 0, !0)
1805
+ b(v.$slots, "expandable-content", {}, void 0, !0)
942
1806
  ], 2)
943
1807
  ])
944
1808
  ], 2));
945
1809
  }
946
1810
  });
947
- const _t = /* @__PURE__ */ _(pt, [["__scopeId", "data-v-5b66be9f"]]), kt = ["form", "name"], jt = /* @__PURE__ */ p({
948
- __name: "JoyRadioGroup",
1811
+ const ka = /* @__PURE__ */ V(Sa, [["__scopeId", "data-v-d5988486"]]), ja = ["form", "name"], $a = /* @__PURE__ */ $({
1812
+ __name: "VJoyRadioGroup",
949
1813
  props: {
950
1814
  direction: {
951
1815
  type: String,
@@ -959,27 +1823,27 @@ const _t = /* @__PURE__ */ _(pt, [["__scopeId", "data-v-5b66be9f"]]), kt = ["for
959
1823
  }
960
1824
  },
961
1825
  setup(e) {
962
- return (l, a) => (o(), d("fieldset", {
1826
+ return (t, l) => (m(), p("fieldset", {
963
1827
  ref: "root",
964
1828
  class: "joy-radio-group-fieldset",
965
1829
  role: "radiogroup",
966
1830
  form: e.form,
967
1831
  name: e.name
968
1832
  }, [
969
- c(l.$slots, "radio-group-legend", {}, void 0, !0),
970
- u("div", {
971
- class: b(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
1833
+ b(t.$slots, "radio-group-legend", {}, void 0, !0),
1834
+ h("div", {
1835
+ class: k(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
972
1836
  }, [
973
- c(l.$slots, "default", {}, void 0, !0)
1837
+ b(t.$slots, "default", {}, void 0, !0)
974
1838
  ], 2)
975
- ], 8, kt));
1839
+ ], 8, ja));
976
1840
  }
977
1841
  });
978
- const St = /* @__PURE__ */ _(jt, [["__scopeId", "data-v-d75cd96a"]]), $t = (e) => (z("data-v-0d978ea6"), e = e(), M(), e), xt = ["id", "name", "aria-invalid", "required", "disabled", "value"], It = /* @__PURE__ */ $t(() => /* @__PURE__ */ u("joy-icon", {
1842
+ const Va = /* @__PURE__ */ V($a, [["__scopeId", "data-v-de56c3c4"]]), xa = (e) => (ee("data-v-e856916f"), e = e(), te(), e), Ia = ["id", "name", "aria-invalid", "required", "disabled", "value"], Oa = /* @__PURE__ */ xa(() => /* @__PURE__ */ h("joy-icon", {
979
1843
  class: "joy-select__chevron",
980
1844
  name: "chevron-down"
981
- }, null, -1)), qt = /* @__PURE__ */ p({
982
- __name: "JoySelect",
1845
+ }, null, -1)), La = /* @__PURE__ */ $({
1846
+ __name: "VJoySelect",
983
1847
  props: {
984
1848
  disabled: {
985
1849
  type: Boolean,
@@ -1018,73 +1882,73 @@ const St = /* @__PURE__ */ _(jt, [["__scopeId", "data-v-d75cd96a"]]), $t = (e) =
1018
1882
  // ...TEXT_BASED_PROPS,
1019
1883
  },
1020
1884
  emits: ["update:modelValue"],
1021
- setup(e, { emit: l }) {
1022
- const a = e, t = S(), i = S(), s = w();
1023
- N(() => {
1024
- var g;
1025
- const n = s.label && s.label();
1885
+ setup(e, { emit: t }) {
1886
+ const l = e, a = g(), o = g(), r = F();
1887
+ W(() => {
1888
+ var y;
1889
+ const n = r.label && r.label();
1026
1890
  if (!n || !n.length)
1027
1891
  return;
1028
- const r = n[0];
1029
- if (r.type === "JoyLabel") {
1030
- const k = (g = r.props) == null ? void 0 : g.for;
1031
- if (!k) {
1892
+ const u = n[0];
1893
+ if (u.type === "JoyLabel") {
1894
+ const c = (y = u.props) == null ? void 0 : y.for;
1895
+ if (!c) {
1032
1896
  console.warn("JoyLabel for attribute is missing");
1033
1897
  return;
1034
1898
  }
1035
- k !== a.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
1899
+ c !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
1036
1900
  }
1037
1901
  });
1038
- function f(n) {
1039
- const r = n.target.value;
1040
- l("update:modelValue", r);
1902
+ function s(n) {
1903
+ const u = n.target.value;
1904
+ t("update:modelValue", u);
1041
1905
  }
1042
- return (n, r) => (o(), d("div", {
1906
+ return (n, u) => (m(), p("div", {
1043
1907
  ref_key: "root",
1044
- ref: t
1908
+ ref: a
1045
1909
  }, [
1046
- c(n.$slots, "label", {}, () => [
1047
- e.label ? (o(), J(C, {
1910
+ b(n.$slots, "label", {}, () => [
1911
+ e.label ? (m(), P(H, {
1048
1912
  key: 0,
1049
1913
  required: e.required && e.requiredMark,
1050
1914
  "optional-label": e.optionalLabel,
1051
1915
  for: e.id || e.name,
1052
1916
  size: e.labelSize
1053
1917
  }, {
1054
- default: q(() => [
1055
- B($(e.label), 1)
1918
+ default: L(() => [
1919
+ T(O(e.label), 1)
1056
1920
  ]),
1057
1921
  _: 1
1058
- }, 8, ["required", "optional-label", "for", "size"])) : y("", !0)
1922
+ }, 8, ["required", "optional-label", "for", "size"])) : w("", !0)
1059
1923
  ], !0),
1060
- u("div", {
1061
- class: b({
1924
+ h("div", {
1925
+ class: k({
1062
1926
  "joy-select__wrapper": !0,
1063
1927
  "joy-select--invalid": e.invalid,
1064
1928
  "joy-select--disabled": e.disabled
1065
1929
  })
1066
1930
  }, [
1067
- u("select", {
1931
+ h("select", {
1068
1932
  id: e.id || e.name,
1069
1933
  ref_key: "select",
1070
- ref: i,
1934
+ ref: o,
1071
1935
  class: "joy-select",
1072
1936
  name: e.name,
1073
1937
  "aria-invalid": e.invalid,
1074
1938
  required: e.required,
1075
1939
  disabled: e.disabled,
1076
1940
  value: e.modelValue,
1077
- onInput: f
1941
+ onInput: s
1078
1942
  }, [
1079
- c(n.$slots, "default", {}, void 0, !0)
1080
- ], 40, xt),
1081
- It
1943
+ b(n.$slots, "default", {}, void 0, !0)
1944
+ ], 40, Ia),
1945
+ Oa
1082
1946
  ], 2)
1083
1947
  ], 512));
1084
1948
  }
1085
1949
  });
1086
- const Bt = /* @__PURE__ */ _(qt, [["__scopeId", "data-v-0d978ea6"]]), Jt = ["aria-disabled"], Vt = ["id", "value", "checked", "disabled", "required", "name"], Ct = /* @__PURE__ */ p({
1087
- __name: "JoySelectableItem",
1950
+ const Ea = /* @__PURE__ */ V(La, [["__scopeId", "data-v-e856916f"]]), Ba = ["aria-disabled"], Ca = ["id", "value", "checked", "disabled", "required", "name"], Pa = /* @__PURE__ */ $({
1951
+ __name: "VJoySelectableItem",
1088
1952
  props: {
1089
1953
  disabled: {
1090
1954
  type: Boolean,
@@ -1119,44 +1983,44 @@ const Bt = /* @__PURE__ */ _(qt, [["__scopeId", "data-v-0d978ea6"]]), Jt = ["ari
1119
1983
  }
1120
1984
  },
1121
1985
  emits: ["update:checked"],
1122
- setup(e, { emit: l }) {
1123
- const a = e, t = S(a.checked), i = S(), s = a.multiple ? "div" : "label", f = {
1986
+ setup(e, { emit: t }) {
1987
+ const l = e, a = g(l.checked), o = g(), r = l.multiple ? "div" : "label", s = {
1124
1988
  onRadioChange: () => {
1125
- l("update:checked", a.value);
1989
+ t("update:checked", l.value);
1126
1990
  },
1127
1991
  onClick: () => {
1128
- a.checked && !a.multiple && l("update:checked", "");
1992
+ l.checked && !l.multiple && t("update:checked", "");
1129
1993
  },
1130
- onLabelClick: (r) => {
1131
- a.multiple || r.stopPropagation();
1994
+ onLabelClick: (u) => {
1995
+ l.multiple || u.stopPropagation();
1132
1996
  }
1133
1997
  };
1134
- function n(r) {
1135
- l("update:checked", r);
1998
+ function n(u) {
1999
+ t("update:checked", u);
1136
2000
  }
1137
- return (r, g) => (o(), d("div", {
2001
+ return (u, y) => (m(), p("div", {
1138
2002
  class: "joy-selectable-item__wrapper",
1139
2003
  "aria-disabled": e.disabled,
1140
- onClick: g[2] || (g[2] = //@ts-ignore
1141
- (...k) => f.onClick && f.onClick(...k))
2004
+ onClick: y[2] || (y[2] = //@ts-ignore
2005
+ (...c) => s.onClick && s.onClick(...c))
1142
2006
  }, [
1143
- e.multiple ? y("", !0) : (o(), d("input", {
2007
+ e.multiple ? w("", !0) : (m(), p("input", {
1144
2008
  key: 0,
1145
2009
  id: e.id,
1146
2010
  ref_key: "inputRadio",
1147
- ref: i,
2011
+ ref: o,
1148
2012
  type: "radio",
1149
2013
  value: e.value,
1150
2014
  checked: e.checked,
1151
2015
  disabled: e.disabled,
1152
2016
  required: e.required,
1153
2017
  name: e.name,
1154
- onChange: g[0] || (g[0] = //@ts-ignore
1155
- (...k) => f.onRadioChange && f.onRadioChange(...k))
1156
- }, null, 40, Vt)),
1157
- (o(), J(E(m(s)), {
2018
+ onChange: y[0] || (y[0] = //@ts-ignore
2019
+ (...c) => s.onRadioChange && s.onRadioChange(...c))
2020
+ }, null, 40, Ca)),
2021
+ (m(), P(de(_(r)), {
1158
2022
  for: e.id,
1159
- class: b([
2023
+ class: k([
1160
2024
  "joy-selectable-item",
1161
2025
  {
1162
2026
  "joy-selectable-item--disabled": e.disabled,
@@ -1165,15 +2029,15 @@ const Bt = /* @__PURE__ */ _(qt, [["__scopeId", "data-v-0d978ea6"]]), Jt = ["ari
1165
2029
  "joy-selectable-item--single": !e.multiple
1166
2030
  }
1167
2031
  ]),
1168
- onClick: f.onLabelClick
2032
+ onClick: s.onLabelClick
1169
2033
  }, {
1170
- default: q(() => [
1171
- e.multiple ? (o(), J(m(T), {
2034
+ default: L(() => [
2035
+ e.multiple ? (m(), P(_(pe), {
1172
2036
  key: 0,
1173
2037
  id: e.id,
1174
- checked: t.value,
2038
+ checked: a.value,
1175
2039
  "onUpdate:checked": [
1176
- g[1] || (g[1] = (k) => t.value = k),
2040
+ y[1] || (y[1] = (c) => a.value = c),
1177
2041
  n
1178
2042
  ],
1179
2043
  disabled: e.disabled,
@@ -1181,32 +2045,32 @@ const Bt = /* @__PURE__ */ _(qt, [["__scopeId", "data-v-0d978ea6"]]), Jt = ["ari
1181
2045
  name: e.name,
1182
2046
  required: e.required
1183
2047
  }, {
1184
- default: q(() => [
1185
- c(r.$slots, "default", {}, void 0, !0)
2048
+ default: L(() => [
2049
+ b(u.$slots, "default", {}, void 0, !0)
1186
2050
  ]),
1187
2051
  _: 3
1188
- }, 8, ["id", "checked", "disabled", "value", "name", "required"])) : y("", !0),
1189
- e.multiple ? y("", !0) : c(r.$slots, "default", { key: 1 }, void 0, !0),
1190
- u("div", {
1191
- class: b([{ "joy-selectable-item__sublabel": r.$slots["selectable-item-sublabel"] }])
2052
+ }, 8, ["id", "checked", "disabled", "value", "name", "required"])) : w("", !0),
2053
+ e.multiple ? w("", !0) : b(u.$slots, "default", { key: 1 }, void 0, !0),
2054
+ h("div", {
2055
+ class: k([{ "joy-selectable-item__sublabel": u.$slots["selectable-item-sublabel"] }])
1192
2056
  }, [
1193
- c(r.$slots, "selectable-item-sublabel", {}, void 0, !0)
2057
+ b(u.$slots, "selectable-item-sublabel", {}, void 0, !0)
1194
2058
  ], 2)
1195
2059
  ]),
1196
2060
  _: 3
1197
2061
  }, 8, ["for", "class", "onClick"]))
1198
- ], 8, Jt));
2062
+ ], 8, Ba));
1199
2063
  }
1200
2064
  });
1201
- const U = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-46f0bc5e"]]), wt = ["id"], Lt = /* @__PURE__ */ p({
1202
- __name: "JoySelectableItemGroup",
2065
+ const Xe = /* @__PURE__ */ V(Pa, [["__scopeId", "data-v-c40bf83e"]]), qa = ["id"], Ja = /* @__PURE__ */ $({
2066
+ __name: "VJoySelectableItemGroup",
1203
2067
  props: {
1204
2068
  options: {
1205
2069
  type: Array,
1206
2070
  required: !0,
1207
2071
  validator(e) {
1208
- const l = e.every((t) => Object.keys(t).includes("value")), a = e.every((t) => Object.keys(t).includes("label"));
1209
- return l && a;
2072
+ const t = e.every((a) => Object.keys(a).includes("value")), l = e.every((a) => Object.keys(a).includes("label"));
2073
+ return t && l;
1210
2074
  }
1211
2075
  },
1212
2076
  id: String,
@@ -1238,35 +2102,35 @@ const U = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-46f0bc5e"]]), wt = ["id"]
1238
2102
  }
1239
2103
  },
1240
2104
  emits: ["update:value"],
1241
- setup(e, { emit: l }) {
1242
- const a = e;
1243
- function t(s) {
1244
- return typeof a.value == "string" ? a.value === s.value : (a.value || []).includes(s.value);
2105
+ setup(e, { emit: t }) {
2106
+ const l = e;
2107
+ function a(r) {
2108
+ return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
1245
2109
  }
1246
- function i(s, f) {
1247
- if (!a.multiple)
1248
- return l("update:value", f);
1249
- let n = [...a.value || []];
1250
- f && typeof f == "boolean" ? n.push(s) : n.splice(n.indexOf(s), 1), l("update:value", n);
2110
+ function o(r, s) {
2111
+ if (!l.multiple)
2112
+ return t("update:value", s);
2113
+ let n = [...l.value || []];
2114
+ s && typeof s == "boolean" ? n.push(r) : n.splice(n.indexOf(r), 1), t("update:value", n);
1251
2115
  }
1252
- return (s, f) => (o(), d("fieldset", {
2116
+ return (r, s) => (m(), p("fieldset", {
1253
2117
  id: e.id,
1254
2118
  class: "joy-selectable-item-group__wrapper"
1255
2119
  }, [
1256
- e.label ? (o(), J(m(C), {
2120
+ e.label ? (m(), P(_(H), {
1257
2121
  key: 0,
1258
2122
  "tag-name": "legend",
1259
2123
  required: e.required && e.requiredMark,
1260
2124
  "optional-label": e.optionalLabel,
1261
2125
  size: e.labelSize
1262
2126
  }, {
1263
- default: q(() => [
1264
- B($(e.label), 1)
2127
+ default: L(() => [
2128
+ T(O(e.label), 1)
1265
2129
  ]),
1266
2130
  _: 1
1267
- }, 8, ["required", "optional-label", "size"])) : y("", !0),
1268
- u("div", {
1269
- class: b([
2131
+ }, 8, ["required", "optional-label", "size"])) : w("", !0),
2132
+ h("div", {
2133
+ class: k([
1270
2134
  "joy-selectable-item-group",
1271
2135
  {
1272
2136
  "joy-selectable-item-group--multiple": e.multiple,
@@ -1275,34 +2139,34 @@ const U = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-46f0bc5e"]]), wt = ["id"]
1275
2139
  }
1276
2140
  ])
1277
2141
  }, [
1278
- (o(!0), d(A, null, F(e.options, (n) => (o(), J(m(U), {
2142
+ (m(!0), p(fe, null, ye(e.options, (n) => (m(), P(_(Xe), {
1279
2143
  id: n.id,
1280
2144
  key: n.id,
1281
2145
  name: n.name,
1282
2146
  value: n.value,
1283
2147
  multiple: e.multiple,
1284
- checked: t(n),
1285
- "onUpdate:checked": (r) => i(n.value, r)
1286
- }, K({
1287
- default: q(() => [
1288
- B($(n.label) + " ", 1)
2148
+ checked: a(n),
2149
+ "onUpdate:checked": (u) => o(n.value, u)
2150
+ }, it({
2151
+ default: L(() => [
2152
+ T(O(n.label) + " ", 1)
1289
2153
  ]),
1290
2154
  _: 2
1291
2155
  }, [
1292
2156
  n.subLabel ? {
1293
2157
  name: "selectable-item-sublabel",
1294
- fn: q(() => [
1295
- B($(n.subLabel), 1)
2158
+ fn: L(() => [
2159
+ T(O(n.subLabel), 1)
1296
2160
  ]),
1297
2161
  key: "0"
1298
2162
  } : void 0
1299
2163
  ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
1300
2164
  ], 2)
1301
- ], 8, wt));
2165
+ ], 8, qa));
1302
2166
  }
1303
2167
  });
1304
- const zt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-cec63fed"]]), Mt = /* @__PURE__ */ p({
1305
- __name: "JoyWrapper",
2168
+ const Ta = /* @__PURE__ */ V(Ja, [["__scopeId", "data-v-3ba17434"]]), za = /* @__PURE__ */ $({
2169
+ __name: "VJoyWrapper",
1306
2170
  props: {
1307
2171
  justify: {
1308
2172
  type: String,
@@ -1322,80 +2186,80 @@ const zt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-cec63fed"]]), Mt = /* @_
1322
2186
  }
1323
2187
  },
1324
2188
  setup(e) {
1325
- return (l, a) => (o(), d("div", {
1326
- class: b(["joy-wrapper", `joy-wrapper--justify-${e.justify}`, `joy-wrapper--align-${e.align}`, `joy-wrapper--direction-${e.direction}`, `joy-wrapper--wrap-${e.wrap}`])
2189
+ return (t, l) => (m(), p("div", {
2190
+ class: k(["joy-wrapper", `joy-wrapper--justify-${e.justify}`, `joy-wrapper--align-${e.align}`, `joy-wrapper--direction-${e.direction}`, `joy-wrapper--wrap-${e.wrap}`])
1327
2191
  }, [
1328
- c(l.$slots, "default", {}, void 0, !0)
2192
+ b(t.$slots, "default", {}, void 0, !0)
1329
2193
  ], 2));
1330
2194
  }
1331
2195
  });
1332
- const Et = /* @__PURE__ */ _(Mt, [["__scopeId", "data-v-ce0e1214"]]), Nt = { class: "joy-template__heading" }, Tt = {
2196
+ const Aa = /* @__PURE__ */ V(za, [["__scopeId", "data-v-319d995e"]]), Da = { class: "joy-template__heading" }, Ma = {
1333
2197
  key: 0,
1334
2198
  class: "joy-template-slot-back"
1335
- }, Ot = { class: "joy-template__heading___headings" }, Rt = {
2199
+ }, Ra = { class: "joy-template__heading___headings" }, Na = {
1336
2200
  key: 0,
1337
2201
  class: "joy-template-slot-title"
1338
- }, At = {
2202
+ }, Ha = {
1339
2203
  key: 1,
1340
2204
  class: "joy-template-slot-subtitle"
1341
- }, Ft = {
2205
+ }, Wa = {
1342
2206
  key: 0,
1343
2207
  class: "joy-template-slot-main"
1344
- }, Pt = {
2208
+ }, Fa = {
1345
2209
  key: 1,
1346
2210
  class: "joy-template-slot-sidebar"
1347
- }, Ht = /* @__PURE__ */ p({
1348
- __name: "JoyTemplate",
2211
+ }, Ua = /* @__PURE__ */ $({
2212
+ __name: "VJoyTemplate",
1349
2213
  props: {
1350
2214
  full: { type: Boolean, default: !1 },
1351
2215
  sidebar: { type: String, default: "right" }
1352
2216
  },
1353
2217
  setup(e) {
1354
- const l = e, a = w();
1355
- return (t, i) => (o(), d("main", {
1356
- class: b(["joy-template", { "joy-template--full": l.full }])
2218
+ const t = e, l = F();
2219
+ return (a, o) => (m(), p("main", {
2220
+ class: k(["joy-template", { "joy-template--full": t.full }])
1357
2221
  }, [
1358
- u("div", Nt, [
1359
- m(a)["template-back"] ? (o(), d("div", Tt, [
1360
- c(t.$slots, "template-back", {}, void 0, !0)
1361
- ])) : y("", !0),
1362
- u("div", Ot, [
1363
- m(a)["template-title"] ? (o(), d("div", Rt, [
1364
- c(t.$slots, "template-title", {}, void 0, !0)
1365
- ])) : y("", !0),
1366
- m(a)["template-subtitle"] ? (o(), d("div", At, [
1367
- c(t.$slots, "template-subtitle", {}, void 0, !0)
1368
- ])) : y("", !0)
2222
+ h("div", Da, [
2223
+ _(l)["template-back"] ? (m(), p("div", Ma, [
2224
+ b(a.$slots, "template-back", {}, void 0, !0)
2225
+ ])) : w("", !0),
2226
+ h("div", Ra, [
2227
+ _(l)["template-title"] ? (m(), p("div", Na, [
2228
+ b(a.$slots, "template-title", {}, void 0, !0)
2229
+ ])) : w("", !0),
2230
+ _(l)["template-subtitle"] ? (m(), p("div", Ha, [
2231
+ b(a.$slots, "template-subtitle", {}, void 0, !0)
2232
+ ])) : w("", !0)
1369
2233
  ])
1370
2234
  ]),
1371
- u("div", {
1372
- class: b([
2235
+ h("div", {
2236
+ class: k([
1373
2237
  "joy-template__content",
1374
2238
  {
1375
- "joy-template__content--reverse": l.sidebar === "left"
2239
+ "joy-template__content--reverse": t.sidebar === "left"
1376
2240
  }
1377
2241
  ])
1378
2242
  }, [
1379
- t.$slots["template-main"] ? (o(), d("div", Ft, [
1380
- c(t.$slots, "template-main", {}, void 0, !0)
1381
- ])) : y("", !0),
1382
- t.$slots["template-sidebar"] ? (o(), d("div", Pt, [
1383
- c(t.$slots, "template-sidebar", {}, void 0, !0)
1384
- ])) : y("", !0)
2243
+ a.$slots["template-main"] ? (m(), p("div", Wa, [
2244
+ b(a.$slots, "template-main", {}, void 0, !0)
2245
+ ])) : w("", !0),
2246
+ a.$slots["template-sidebar"] ? (m(), p("div", Fa, [
2247
+ b(a.$slots, "template-sidebar", {}, void 0, !0)
2248
+ ])) : w("", !0)
1385
2249
  ], 2)
1386
2250
  ], 2));
1387
2251
  }
1388
2252
  });
1389
- const Gt = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-b332d474"]]), Ut = ["aria-disabled"], Wt = ["id", "disabled", "name", "required", "minlength", "value"], Dt = {
2253
+ const Ga = /* @__PURE__ */ V(Ua, [["__scopeId", "data-v-a03bc629"]]), Ka = ["aria-disabled"], Qa = ["id", "disabled", "name", "required", "minlength", "value"], Za = {
1390
2254
  key: 0,
1391
2255
  class: "joy-textarea_helpers"
1392
- }, Zt = {
2256
+ }, Ya = {
1393
2257
  key: 0,
1394
2258
  name: "check",
1395
2259
  color: "grey",
1396
2260
  size: "xxsmall"
1397
- }, Kt = /* @__PURE__ */ p({
1398
- __name: "JoyTextarea",
2261
+ }, Xa = /* @__PURE__ */ $({
2262
+ __name: "VJoyTextarea",
1399
2263
  props: {
1400
2264
  disabled: {
1401
2265
  type: Boolean,
@@ -1442,102 +2306,102 @@ const Gt = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-b332d474"]]), Ut = ["ari
1442
2306
  }
1443
2307
  },
1444
2308
  emits: ["update:modelValue"],
1445
- setup(e, { expose: l, emit: a }) {
1446
- const t = e, i = S(), s = S(), f = S(!1), n = V(() => t.maxlength ? t.modelValue.length > t.maxlength : !1), r = V(() => t.minlength ? t.modelValue.length < t.minlength : !1);
1447
- function g() {
1448
- i.value && t.autogrow && (i.value.style.height = "auto", i.value.style.height = i.value.scrollHeight + "px", s.value && (s.value.style.height = i.value.scrollHeight + "px"));
2309
+ setup(e, { expose: t, emit: l }) {
2310
+ const a = e, o = g(), r = g(), s = g(!1), n = I(() => a.maxlength ? a.modelValue.length > a.maxlength : !1), u = I(() => a.minlength ? a.modelValue.length < a.minlength : !1);
2311
+ function y() {
2312
+ o.value && a.autogrow && (o.value.style.height = "auto", o.value.style.height = o.value.scrollHeight + "px", r.value && (r.value.style.height = o.value.scrollHeight + "px"));
1449
2313
  }
1450
- N(() => {
1451
- g();
2314
+ W(() => {
2315
+ y();
1452
2316
  });
1453
- const k = {
1454
- onInput: (I) => {
1455
- a("update:modelValue", I.target.value), g();
2317
+ const c = {
2318
+ onInput: (v) => {
2319
+ l("update:modelValue", v.target.value), y();
1456
2320
  },
1457
2321
  onBlur: () => {
1458
- f.value = n.value || r.value;
2322
+ s.value = n.value || u.value;
1459
2323
  }
1460
2324
  };
1461
- return l({
1462
- isInvalid: f,
2325
+ return t({
2326
+ isInvalid: s,
1463
2327
  valueOverMaxlength: n,
1464
- valueUnderMinlength: r
1465
- }), (I, j) => (o(), d("div", {
2328
+ valueUnderMinlength: u
2329
+ }), (v, i) => (m(), p("div", {
1466
2330
  "aria-disabled": e.disabled,
1467
- class: b([
2331
+ class: k([
1468
2332
  "joy-textarea",
1469
2333
  {
1470
- "joy-textarea_invalid": f.value || e.invalid,
2334
+ "joy-textarea_invalid": s.value || e.invalid,
1471
2335
  "joy-textarea_disabled": e.disabled,
1472
2336
  "joy-textarea_autogrow": e.autogrow
1473
2337
  }
1474
2338
  ])
1475
2339
  }, [
1476
- R(m(C), {
2340
+ ce(_(H), {
1477
2341
  for: e.id,
1478
2342
  required: e.required && e.requiredMark,
1479
2343
  "optional-label": e.optionalLabel,
1480
2344
  size: e.labelSize
1481
2345
  }, {
1482
- default: q(() => [
1483
- c(I.$slots, "default", {}, () => [
1484
- B($(e.label), 1)
2346
+ default: L(() => [
2347
+ b(v.$slots, "default", {}, () => [
2348
+ T(O(e.label), 1)
1485
2349
  ], !0)
1486
2350
  ]),
1487
2351
  _: 3
1488
2352
  }, 8, ["for", "required", "optional-label", "size"]),
1489
- u("div", {
2353
+ h("div", {
1490
2354
  ref_key: "textareaWrapper",
1491
- ref: s,
2355
+ ref: r,
1492
2356
  class: "joy-textarea_wrapper"
1493
2357
  }, [
1494
- u("textarea", L(I.$attrs, {
2358
+ h("textarea", K(v.$attrs, {
1495
2359
  id: e.id,
1496
2360
  ref_key: "textarea",
1497
- ref: i,
2361
+ ref: o,
1498
2362
  class: "joy-native-textarea",
1499
2363
  disabled: e.disabled,
1500
2364
  name: e.name,
1501
2365
  required: e.required,
1502
2366
  minlength: e.minlength,
1503
2367
  value: e.modelValue,
1504
- onInput: j[0] || (j[0] = //@ts-ignore
1505
- (...v) => k.onInput && k.onInput(...v)),
1506
- onBlur: j[1] || (j[1] = //@ts-ignore
1507
- (...v) => k.onBlur && k.onBlur(...v))
1508
- }), null, 16, Wt)
2368
+ onInput: i[0] || (i[0] = //@ts-ignore
2369
+ (...d) => c.onInput && c.onInput(...d)),
2370
+ onBlur: i[1] || (i[1] = //@ts-ignore
2371
+ (...d) => c.onBlur && c.onBlur(...d))
2372
+ }), null, 16, Qa)
1509
2373
  ], 512),
1510
- e.minlength || e.maxlength ? (o(), d("div", Dt, [
1511
- e.minlength ? (o(), d("p", {
2374
+ e.minlength || e.maxlength ? (m(), p("div", Za, [
2375
+ e.minlength ? (m(), p("p", {
1512
2376
  key: 0,
1513
- class: b(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2377
+ class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
1514
2378
  }, [
1515
- m(r) ? y("", !0) : (o(), d("joy-icon", Zt)),
1516
- B(" " + $(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
1517
- ], 2)) : y("", !0),
1518
- e.maxlength ? (o(), d("p", {
2379
+ _(u) ? w("", !0) : (m(), p("joy-icon", Ya)),
2380
+ T(" " + O(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2381
+ ], 2)) : w("", !0),
2382
+ e.maxlength ? (m(), p("p", {
1519
2383
  key: 1,
1520
- class: b(["joy-textarea-count", { "joy-textarea-count-invalid": m(n) }])
1521
- }, $(e.modelValue.length + "/" + e.maxlength), 3)) : y("", !0)
1522
- ])) : y("", !0)
1523
- ], 10, Ut));
2384
+ class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(n) }])
2385
+ }, O(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2386
+ ])) : w("", !0)
2387
+ ], 10, Ka));
1524
2388
  }
1525
2389
  });
1526
- const Qt = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-4505e508"]]), Xt = (e) => (z("data-v-ab8aee40"), e = e(), M(), e), Yt = ["name", "disabled", "checked", "required", "aria-checked", "value"], ea = { class: "joy-toggle__content" }, ta = { class: "joy-toggle__content-label" }, aa = /* @__PURE__ */ Xt(() => /* @__PURE__ */ u("span", { class: "joy-toggle__smile" }, [
1527
- /* @__PURE__ */ u("svg", {
2390
+ const eo = /* @__PURE__ */ V(Xa, [["__scopeId", "data-v-650f33d9"]]), to = (e) => (ee("data-v-79792513"), e = e(), te(), e), lo = ["name", "disabled", "checked", "required", "aria-checked", "value"], ao = { class: "joy-toggle__content" }, oo = { class: "joy-toggle__content-label" }, no = /* @__PURE__ */ to(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2391
+ /* @__PURE__ */ h("svg", {
1528
2392
  width: "18",
1529
2393
  height: "10",
1530
2394
  viewBox: "0 0 18 10",
1531
2395
  fill: "currentColor",
1532
2396
  xmlns: "http://www.w3.org/2000/svg"
1533
2397
  }, [
1534
- /* @__PURE__ */ u("path", {
2398
+ /* @__PURE__ */ h("path", {
1535
2399
  d: "M9.0237 9.14856C15.7144 9.14856 17.8736 2.22231 17.9649 1.91853L17.9345 1.94891C18.1778 1.15908 17.7216 0.308485 16.9309 0.0654591C16.1402 -0.177566 15.2886 0.278108 15.0453 1.06794C14.9845 1.25021 13.5551 6.11073 8.99328 6.11073C4.43147 6.11073 3.03249 1.43248 2.97167 1.21983C2.75878 0.399622 1.90724 -0.0560541 1.11652 0.156593C0.295397 0.369241 -0.160787 1.18945 0.0520982 2.00967C0.721165 4.4703 3.48869 9.14856 9.0237 9.14856Z",
1536
2400
  fill: "currentColor"
1537
2401
  })
1538
2402
  ])
1539
- ], -1)), la = /* @__PURE__ */ p({
1540
- __name: "JoyToggle",
2403
+ ], -1)), io = /* @__PURE__ */ $({
2404
+ __name: "VJoyToggle",
1541
2405
  props: {
1542
2406
  modelValue: {
1543
2407
  type: Boolean,
@@ -1569,16 +2433,16 @@ const Qt = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-4505e508"]]), Xt = (e) =
1569
2433
  label: String
1570
2434
  },
1571
2435
  emits: ["update:modelValue"],
1572
- setup(e, { emit: l }) {
1573
- const a = {
1574
- onChange: (t) => {
1575
- const i = t.target.checked;
1576
- l("update:modelValue", i);
2436
+ setup(e, { emit: t }) {
2437
+ const l = {
2438
+ onChange: (a) => {
2439
+ const o = a.target.checked;
2440
+ t("update:modelValue", o);
1577
2441
  }
1578
2442
  };
1579
- return (t, i) => (o(), d("div", null, [
1580
- u("label", {
1581
- class: b([
2443
+ return (a, o) => (m(), p("div", null, [
2444
+ h("label", {
2445
+ class: k([
1582
2446
  "joy-toggle",
1583
2447
  {
1584
2448
  "joy-toggle__checked": e.modelValue,
@@ -1586,7 +2450,7 @@ const Qt = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-4505e508"]]), Xt = (e) =
1586
2450
  }
1587
2451
  ])
1588
2452
  }, [
1589
- u("input", {
2453
+ h("input", {
1590
2454
  ref: "input",
1591
2455
  type: "checkbox",
1592
2456
  class: "joy-toggle__input",
@@ -1597,72 +2461,76 @@ const Qt = /* @__PURE__ */ _(Kt, [["__scopeId", "data-v-4505e508"]]), Xt = (e) =
1597
2461
  required: e.required,
1598
2462
  "aria-checked": e.modelValue,
1599
2463
  value: e.value,
1600
- onChange: i[0] || (i[0] = //@ts-ignore
1601
- (...s) => a.onChange && a.onChange(...s))
1602
- }, null, 40, Yt),
1603
- u("p", ea, [
1604
- u("span", ta, [
1605
- c(t.$slots, "default", {}, () => [
1606
- B($(e.label), 1)
2464
+ onChange: o[0] || (o[0] = //@ts-ignore
2465
+ (...r) => l.onChange && l.onChange(...r))
2466
+ }, null, 40, lo),
2467
+ h("p", ao, [
2468
+ h("span", oo, [
2469
+ b(a.$slots, "default", {}, () => [
2470
+ T(O(e.label), 1)
1607
2471
  ], !0)
1608
2472
  ]),
1609
- aa
2473
+ no
1610
2474
  ])
1611
2475
  ], 2)
1612
2476
  ]));
1613
2477
  }
1614
2478
  });
1615
- const na = /* @__PURE__ */ _(la, [["__scopeId", "data-v-ab8aee40"]]), oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2479
+ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-79792513"]]), so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1616
2480
  __proto__: null,
1617
- JoyButton: ue,
1618
- JoyCheckbox: T,
1619
- JoyCounter: xe,
1620
- JoyFormError: G,
1621
- JoyHighlight: Me,
1622
- JoyInput: Ge,
1623
- JoyLabel: C,
1624
- JoyLink: Ke,
1625
- JoyMultiCheckbox: et,
1626
- JoyPanel: st,
1627
- JoyPanelSection: ft,
1628
- JoyRadio: _t,
1629
- JoyRadioGroup: St,
1630
- JoySelect: Bt,
1631
- JoySelectableItem: U,
1632
- JoySelectableItemGroup: zt,
1633
- JoySpinner: P,
1634
- JoyTemplate: Gt,
1635
- JoyTextarea: Qt,
1636
- JoyToggle: na,
1637
- JoyWrapper: Et
1638
- }, Symbol.toStringTag, { value: "Module" })), da = {
2481
+ VJoyButton: ht,
2482
+ VJoyCheckbox: pe,
2483
+ VJoyCounter: Pt,
2484
+ VJoyDropdown: Il,
2485
+ VJoyDropdownList: Ze,
2486
+ VJoyFormError: Ye,
2487
+ VJoyHighlight: zl,
2488
+ VJoyInput: Gl,
2489
+ VJoyLabel: H,
2490
+ VJoyLink: Xl,
2491
+ VJoyMultiCheckbox: aa,
2492
+ VJoyPanel: fa,
2493
+ VJoyPanelSection: ha,
2494
+ VJoyRadio: ka,
2495
+ VJoyRadioGroup: Va,
2496
+ VJoySelect: Ea,
2497
+ VJoySelectableItem: Xe,
2498
+ VJoySelectableItemGroup: Ta,
2499
+ VJoySpinner: Ne,
2500
+ VJoyTemplate: Ga,
2501
+ VJoyTextarea: eo,
2502
+ VJoyToggle: ro,
2503
+ VJoyWrapper: Aa
2504
+ }, Symbol.toStringTag, { value: "Module" })), co = {
1639
2505
  install: (e) => {
1640
- Object.entries(oa).forEach(([l, a]) => {
1641
- e.component(l, a);
2506
+ Object.entries(so).forEach(([t, l]) => {
2507
+ e.component(t, l);
1642
2508
  });
1643
2509
  }
1644
2510
  };
1645
2511
  export {
1646
- ue as JoyButton,
1647
- T as JoyCheckbox,
1648
- xe as JoyCounter,
1649
- G as JoyFormError,
1650
- Me as JoyHighlight,
1651
- Ge as JoyInput,
1652
- C as JoyLabel,
1653
- Ke as JoyLink,
1654
- et as JoyMultiCheckbox,
1655
- st as JoyPanel,
1656
- ft as JoyPanelSection,
1657
- _t as JoyRadio,
1658
- St as JoyRadioGroup,
1659
- Bt as JoySelect,
1660
- U as JoySelectableItem,
1661
- zt as JoySelectableItemGroup,
1662
- P as JoySpinner,
1663
- Gt as JoyTemplate,
1664
- Qt as JoyTextarea,
1665
- na as JoyToggle,
1666
- da as JoyVuePlugin,
1667
- Et as JoyWrapper
2512
+ co as JoyVuePlugin,
2513
+ ht as VJoyButton,
2514
+ pe as VJoyCheckbox,
2515
+ Pt as VJoyCounter,
2516
+ Il as VJoyDropdown,
2517
+ Ze as VJoyDropdownList,
2518
+ Ye as VJoyFormError,
2519
+ zl as VJoyHighlight,
2520
+ Gl as VJoyInput,
2521
+ H as VJoyLabel,
2522
+ Xl as VJoyLink,
2523
+ aa as VJoyMultiCheckbox,
2524
+ fa as VJoyPanel,
2525
+ ha as VJoyPanelSection,
2526
+ ka as VJoyRadio,
2527
+ Va as VJoyRadioGroup,
2528
+ Ea as VJoySelect,
2529
+ Xe as VJoySelectableItem,
2530
+ Ta as VJoySelectableItemGroup,
2531
+ Ne as VJoySpinner,
2532
+ Ga as VJoyTemplate,
2533
+ eo as VJoyTextarea,
2534
+ ro as VJoyToggle,
2535
+ Aa as VJoyWrapper
1668
2536
  };