@maltjoy/core-vue 3.9.3 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -0
  2. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +28 -0
  3. package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +13 -0
  4. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +60 -0
  5. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +17 -0
  6. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +2 -2
  7. package/dist/components/JoyButton/VJoyButton.vue.d.ts +4 -4
  8. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -3
  9. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +12 -12
  10. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +4 -4
  11. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
  12. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
  13. package/dist/components/JoyIcon/JoyIcon.types.d.ts +1 -1
  14. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -6
  15. package/dist/components/JoyInput/VJoyInput.vue.d.ts +17 -4
  16. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +3 -3
  17. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +4 -4
  18. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
  19. package/dist/components/JoySelect/VJoySelect.vue.d.ts +5 -8
  20. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +1 -1
  21. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +7 -7
  22. package/dist/components/JoyTag/JoyTag.types.d.ts +13 -0
  23. package/dist/components/JoyTag/VJoyTag.vue.d.ts +80 -0
  24. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +5 -0
  25. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +44 -0
  26. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +18 -5
  27. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
  28. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +2 -0
  29. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +31 -9
  30. package/dist/components/components.types.d.ts +4 -0
  31. package/dist/components/index.d.ts +6 -1
  32. package/dist/composables/props.d.ts +1 -1
  33. package/dist/joy-vue.js +1227 -907
  34. package/dist/joy-vue.umd.cjs +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +2 -2
  37. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
  38. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +4 -4
  39. package/dist/types/index.d.ts +2 -0
  40. package/joy-components.d.ts +5 -0
  41. package/package.json +5 -4
package/dist/joy-vue.js CHANGED
@@ -1,5 +1,187 @@
1
- import { defineComponent as V, openBlock as m, createElementBlock as p, normalizeClass as w, renderSlot as h, createTextVNode as C, toDisplayString as I, createElementVNode as b, useAttrs as Me, computed as B, createBlock as O, resolveDynamicComponent as fe, unref as $, withCtx as E, createCommentVNode as _, ref as g, createVNode as M, mergeProps as ee, getCurrentScope as at, onScopeDispose as it, getCurrentInstance as rt, onMounted as K, nextTick as Ne, watch as L, h as st, reactive as ne, onBeforeUnmount as He, normalizeStyle as X, Fragment as ye, renderList as ve, normalizeProps as me, guardReactiveProps as pe, Teleport as ut, createSlots as We, useSlots as Q, onBeforeMount as dt, inject as ct, provide as ft, pushScopeId as yt, popScopeId as vt } from "vue";
2
- const mt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], pt = /* @__PURE__ */ V({
1
+ import { defineComponent as k, computed as I, openBlock as y, createElementBlock as p, normalizeClass as w, createElementVNode as b, Fragment as H, createTextVNode as L, toDisplayString as C, createCommentVNode as g, createBlock as O, resolveDynamicComponent as re, mergeProps as W, withCtx as B, pushScopeId as Re, popScopeId as De, renderSlot as h, useAttrs as He, unref as x, ref as _, createVNode as R, getCurrentScope as st, onScopeDispose as ut, getCurrentInstance as dt, onMounted as Y, nextTick as We, watch as E, h as ct, reactive as ne, onBeforeUnmount as Ue, normalizeStyle as te, renderList as se, normalizeProps as me, guardReactiveProps as pe, Teleport as ft, createSlots as Ge, useSlots as Z, onBeforeMount as yt, inject as vt, provide as mt, withModifiers as pt } from "vue";
2
+ const gt = ["title"], ht = /* @__PURE__ */ k({
3
+ __name: "VJoyAvailability",
4
+ props: {
5
+ /** Don't fill it and you'll only have the colored dot */
6
+ label: String,
7
+ status: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ /**
12
+ * Partial availabilty. Not 5 days/week cases
13
+ */
14
+ isPartial: Boolean
15
+ },
16
+ setup(e) {
17
+ const l = e, t = I(() => ({
18
+ "joy-availability__dot": !0,
19
+ "joy-availability--partial": l.isPartial,
20
+ [l.status]: !0
21
+ }));
22
+ return (o, n) => (y(), p("div", {
23
+ class: w(["joy-availability", { "joy-availability-has-label": !!e.label }]),
24
+ title: e.label || void 0
25
+ }, [
26
+ b("span", {
27
+ class: w(t.value)
28
+ }, null, 2),
29
+ e.label ? (y(), p(H, { key: 0 }, [
30
+ L(C(e.label), 1)
31
+ ], 64)) : g("", !0)
32
+ ], 10, gt));
33
+ }
34
+ });
35
+ const $ = (e, l) => {
36
+ const t = e.__vccOpts || e;
37
+ for (const [o, n] of l)
38
+ t[o] = n;
39
+ return t;
40
+ }, bt = /* @__PURE__ */ $(ht, [["__scopeId", "data-v-34b760ee"]]), q = /* @__PURE__ */ k({
41
+ __name: "VJoyIcon",
42
+ props: {
43
+ name: {
44
+ type: String,
45
+ required: !0
46
+ },
47
+ color: {
48
+ type: String,
49
+ default: "secondary"
50
+ },
51
+ size: {
52
+ type: String,
53
+ default: "xsmall"
54
+ }
55
+ },
56
+ setup(e) {
57
+ return (l, t) => (y(), p("span", {
58
+ class: w(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
59
+ }, [
60
+ b("i", {
61
+ class: w(["icon", `icon-${e.name}`])
62
+ }, null, 2)
63
+ ], 2));
64
+ }
65
+ });
66
+ const _t = (e) => (Re("data-v-b3dcdecc"), e = e(), De(), e), wt = {
67
+ ref: "avatarEl",
68
+ class: "joy-avatar__wrapper"
69
+ }, St = ["src", "title", "alt"], jt = {
70
+ key: 0,
71
+ class: "joy-avatar__strategy"
72
+ }, kt = ["height"], $t = /* @__PURE__ */ _t(() => /* @__PURE__ */ b("path", {
73
+ d: "M6.40531 15.88C5.29156 15.88 4.31531 15.6737 3.47656 15.2612C2.63781 14.8487 1.98469 14.2644 1.51719 13.5081C1.04969 12.7519 0.809061 11.8719 0.795311 10.8681L4.01281 10.3525C4.01281 11.2188 4.25344 11.9131 4.73469 12.4356C5.21594 12.9581 5.82781 13.2194 6.57031 13.2194C7.16156 13.2194 7.63594 13.0612 7.99344 12.745C8.36469 12.4288 8.55031 12.0231 8.55031 11.5281C8.55031 11.1156 8.40594 10.7719 8.11719 10.4969C7.84219 10.2081 7.38844 9.95375 6.75594 9.73375L4.96156 9.15625C3.65531 8.7575 2.70656 8.21438 2.11531 7.52687C1.53781 6.83937 1.24906 5.93187 1.24906 4.80437C1.24906 3.47062 1.68219 2.39812 2.54844 1.58687C3.41469 0.775624 4.63156 0.369999 6.19906 0.369999C7.65656 0.369999 8.83219 0.768749 9.72594 1.56625C10.6197 2.35 11.0803 3.41562 11.1078 4.76312L7.97281 5.36125C7.98656 4.64625 7.82156 4.07562 7.47781 3.64937C7.13406 3.20937 6.68719 2.98937 6.13719 2.98937C5.65594 2.98937 5.26406 3.14062 4.96156 3.44313C4.65906 3.73187 4.50781 4.10312 4.50781 4.55687C4.50781 4.99687 4.64531 5.36125 4.92031 5.65C5.20906 5.925 5.67656 6.15875 6.32281 6.35125L8.03469 6.92875C9.36844 7.3275 10.3309 7.87063 10.9222 8.55812C11.5272 9.23188 11.8297 10.1325 11.8297 11.26C11.8297 12.1538 11.6166 12.9513 11.1903 13.6525C10.7641 14.3538 10.1453 14.9038 9.33406 15.3025C8.52281 15.6875 7.54656 15.88 6.40531 15.88Z",
74
+ fill: "#F7F7F5"
75
+ }, null, -1)), Vt = [
76
+ $t
77
+ ], xt = /* @__PURE__ */ k({
78
+ __name: "VJoyAvatar",
79
+ props: {
80
+ /** 3 different sizes of avatar */
81
+ size: {
82
+ type: String,
83
+ default: "medium"
84
+ },
85
+ /** Only visible if you apply a fullName but not any photoUrl. */
86
+ color: {
87
+ type: String,
88
+ default: "secondary"
89
+ },
90
+ /** Display the initials based on Firstname and Lastname */
91
+ fullName: String,
92
+ /** Pass a photo URL that will be displayed over the fullname */
93
+ photoUrl: String,
94
+ /** In a big avatar list, you may have to say "there are still XYZ more avatars". Use this to display the amount. */
95
+ totalNumber: Number,
96
+ /** No functional purpose here. Only style. You need to trigger router change manually, depending on the framework you use. */
97
+ link: Boolean,
98
+ /** Use it to display "strategy" tag. */
99
+ profile: {
100
+ type: String,
101
+ default: "default"
102
+ }
103
+ },
104
+ emits: ["click"],
105
+ setup(e, { expose: l, emit: t }) {
106
+ const o = e, n = I(() => o.size === "large" ? "medium" : o.size === "medium" ? "small" : o.size === "small" ? "xsmall" : "small"), r = I(() => o.link ? {
107
+ type: "button"
108
+ } : null), s = I(() => ({
109
+ "joy-avatar": !0,
110
+ "joy-avatar__link": o.link,
111
+ "joy-avatar__placeholder": a.value,
112
+ [`joy-avatar__${o.size}`]: !0,
113
+ [`joy-avatar__${o.color}`]: !0
114
+ })), a = I(() => !o.fullName && !o.photoUrl && !o.totalNumber), d = I(() => {
115
+ function u(i) {
116
+ return i.replace(/[';,:()]/g, "").charAt(0);
117
+ }
118
+ let v = o.fullName.split(" ");
119
+ return v = v.slice(0, 2), v.forEach((i, c) => {
120
+ v[c] = u(i);
121
+ }), v.join("").toUpperCase();
122
+ });
123
+ function m() {
124
+ t("click");
125
+ }
126
+ return l({
127
+ isAnonymous: a,
128
+ initials: d
129
+ }), (u, v) => (y(), p("div", wt, [
130
+ (y(), O(re(e.link ? "button" : "div"), W(r.value, {
131
+ class: [s.value],
132
+ onClick: m
133
+ }), {
134
+ default: B(() => [
135
+ a.value ? (y(), O(q, {
136
+ key: 0,
137
+ name: "user-photo",
138
+ color: "white",
139
+ size: n.value
140
+ }, null, 8, ["size"])) : g("", !0),
141
+ e.photoUrl ? (y(), p("img", {
142
+ key: 1,
143
+ src: e.photoUrl,
144
+ title: e.fullName,
145
+ alt: e.fullName || "",
146
+ loading: "lazy"
147
+ }, null, 8, St)) : g("", !0),
148
+ e.fullName ? (y(), p(H, { key: 2 }, [
149
+ L(C(d.value), 1)
150
+ ], 64)) : g("", !0),
151
+ e.totalNumber ? (y(), p(H, { key: 3 }, [
152
+ L(C("+" + e.totalNumber), 1)
153
+ ], 64)) : g("", !0)
154
+ ]),
155
+ _: 1
156
+ }, 16, ["class"])),
157
+ e.profile === "strategy" ? (y(), p("span", jt, [
158
+ (y(), p("svg", {
159
+ width: "12",
160
+ height: e.size === "small" ? "10" : "16",
161
+ viewBox: "0 0 12 16",
162
+ fill: "none",
163
+ xmlns: "http://www.w3.org/2000/svg"
164
+ }, Vt, 8, kt))
165
+ ])) : g("", !0)
166
+ ], 512));
167
+ }
168
+ });
169
+ const It = /* @__PURE__ */ $(xt, [["__scopeId", "data-v-b3dcdecc"]]), Ot = /* @__PURE__ */ k({
170
+ __name: "VJoyAvatarsList",
171
+ props: {
172
+ /** Renders a compact list of avatars */
173
+ compress: Boolean
174
+ },
175
+ setup(e) {
176
+ return (l, t) => (y(), p("div", {
177
+ ref: "avatarsList",
178
+ class: w(["joy-avatars-list", { "joy-avatars-list--compressed": e.compress }])
179
+ }, [
180
+ h(l.$slots, "default", {}, void 0, !0)
181
+ ], 2));
182
+ }
183
+ });
184
+ const Ct = /* @__PURE__ */ $(Ot, [["__scopeId", "data-v-46e4547e"]]), Bt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], Lt = /* @__PURE__ */ k({
3
185
  __name: "VJoyBadge",
4
186
  props: {
5
187
  /**
@@ -22,69 +204,38 @@ const mt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue
22
204
  variant: {
23
205
  type: String,
24
206
  validator(e) {
25
- return mt.includes(e);
207
+ return Bt.includes(e);
26
208
  }
27
209
  }
28
210
  },
29
211
  setup(e) {
30
- return (t, l) => (m(), p("span", {
212
+ return (l, t) => (y(), p("span", {
31
213
  class: w(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
32
214
  role: "status"
33
215
  }, [
34
- h(t.$slots, "default", {}, () => [
35
- C(I(e.label), 1)
216
+ h(l.$slots, "default", {}, () => [
217
+ L(C(e.label), 1)
36
218
  ], !0)
37
219
  ], 2));
38
220
  }
39
221
  });
40
- const x = (e, t) => {
41
- const l = e.__vccOpts || e;
42
- for (const [o, n] of t)
43
- l[o] = n;
44
- return l;
45
- }, ht = /* @__PURE__ */ x(pt, [["__scopeId", "data-v-1ed08e27"]]), gt = ["teal", "white"], bt = /* @__PURE__ */ V({
222
+ const Et = /* @__PURE__ */ $(Lt, [["__scopeId", "data-v-1ed08e27"]]), Jt = ["teal", "white"], zt = /* @__PURE__ */ k({
46
223
  __name: "VJoySpinner",
47
224
  props: {
48
225
  color: {
49
226
  type: String,
50
227
  validator(e) {
51
- return gt.includes(e);
228
+ return Jt.includes(e);
52
229
  }
53
230
  }
54
231
  },
55
232
  setup(e) {
56
- return (t, l) => (m(), p("div", {
233
+ return (l, t) => (y(), p("div", {
57
234
  class: w(["joy-spinner", `joy-spinner_${e.color}`])
58
235
  }, null, 2));
59
236
  }
60
237
  });
61
- const he = /* @__PURE__ */ x(bt, [["__scopeId", "data-v-616a29d0"]]), F = /* @__PURE__ */ V({
62
- __name: "VJoyIcon",
63
- props: {
64
- name: {
65
- type: String,
66
- required: !0
67
- },
68
- color: {
69
- type: String,
70
- default: "secondary"
71
- },
72
- size: {
73
- type: String,
74
- default: "xsmall"
75
- }
76
- },
77
- setup(e) {
78
- return (t, l) => (m(), p("span", {
79
- class: w(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
80
- }, [
81
- b("i", {
82
- class: w(["icon", `icon-${e.name}`])
83
- }, null, 2)
84
- ], 2));
85
- }
86
- });
87
- const _t = ["primary", "secondary"], wt = ["neutral", "success", "info", "warning", "error"], St = ["main", "admin", "ghost", "white"], jt = [..._t, ...St], kt = ["large", "medium", "small", "xsmall", "xxsmall"], $t = { class: "joy-button--slot" }, Vt = /* @__PURE__ */ V({
238
+ const ge = /* @__PURE__ */ $(zt, [["__scopeId", "data-v-616a29d0"]]), Tt = ["primary", "secondary"], Pt = ["neutral", "success", "info", "warning", "error"], qt = ["main", "admin", "ghost", "white"], At = [...Tt, ...qt], Ft = ["large", "medium", "small", "xsmall", "xxsmall"], Mt = { class: "joy-button--slot" }, Nt = /* @__PURE__ */ k({
88
239
  __name: "VJoyButton",
89
240
  props: {
90
241
  /**
@@ -120,7 +271,7 @@ const _t = ["primary", "secondary"], wt = ["neutral", "success", "info", "warnin
120
271
  type: String,
121
272
  default: "primary",
122
273
  validator(e) {
123
- return jt.includes(e);
274
+ return At.includes(e);
124
275
  }
125
276
  },
126
277
  /** Button or Link size */
@@ -128,13 +279,13 @@ const _t = ["primary", "secondary"], wt = ["neutral", "success", "info", "warnin
128
279
  type: String,
129
280
  default: "medium",
130
281
  validator(e) {
131
- return kt.includes(e);
282
+ return Ft.includes(e);
132
283
  }
133
284
  }
134
285
  },
135
286
  setup(e) {
136
- const t = e, l = Me(), o = B(() => {
137
- switch (t.size) {
287
+ const l = e, t = He(), o = I(() => {
288
+ switch (l.size) {
138
289
  case "xxsmall":
139
290
  return "xxsmall";
140
291
  case "xsmall":
@@ -144,10 +295,10 @@ const _t = ["primary", "secondary"], wt = ["neutral", "success", "info", "warnin
144
295
  default:
145
296
  return "small";
146
297
  }
147
- }), n = B(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
148
- return (r, s) => (m(), O(fe($(l).href ? "a" : "button"), {
149
- disabled: e.loading || $(l).disabled,
150
- type: $(l).type || "button",
298
+ }), n = I(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
299
+ return (r, s) => (y(), O(re(x(t).href ? "a" : "button"), {
300
+ disabled: e.loading || x(t).disabled,
301
+ type: x(t).type || "button",
151
302
  class: w([
152
303
  "joy-button",
153
304
  `joy-button_${e.variant}`,
@@ -158,34 +309,34 @@ const _t = ["primary", "secondary"], wt = ["neutral", "success", "info", "warnin
158
309
  }
159
310
  ])
160
311
  }, {
161
- default: E(() => [
162
- e.icon && e.iconPosition === "left" ? (m(), O(F, {
312
+ default: B(() => [
313
+ e.icon && e.iconPosition === "left" ? (y(), O(q, {
163
314
  key: 0,
164
315
  class: "joy-button_icon joy-button_icon--left",
165
316
  name: e.icon,
166
317
  size: o.value
167
- }, null, 8, ["name", "size"])) : _("", !0),
168
- e.loading ? (m(), O(he, {
318
+ }, null, 8, ["name", "size"])) : g("", !0),
319
+ e.loading ? (y(), O(ge, {
169
320
  key: 1,
170
321
  color: n.value
171
- }, null, 8, ["color"])) : _("", !0),
172
- b("span", $t, [
322
+ }, null, 8, ["color"])) : g("", !0),
323
+ b("span", Mt, [
173
324
  h(r.$slots, "default", {}, () => [
174
- C(I(e.label), 1)
325
+ L(C(e.label), 1)
175
326
  ], !0)
176
327
  ]),
177
- e.icon && e.iconPosition === "right" ? (m(), O(F, {
328
+ e.icon && e.iconPosition === "right" ? (y(), O(q, {
178
329
  key: 2,
179
330
  class: "joy-button_icon joy-button_icon--right",
180
331
  name: e.icon,
181
332
  size: o.value
182
- }, null, 8, ["name", "size"])) : _("", !0)
333
+ }, null, 8, ["name", "size"])) : g("", !0)
183
334
  ]),
184
335
  _: 3
185
336
  }, 8, ["disabled", "type", "class"]));
186
337
  }
187
338
  });
188
- const Ue = /* @__PURE__ */ x(Vt, [["__scopeId", "data-v-ae0676bb"]]), xt = ["aria-checked", "aria-hidden"], Ot = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Bt = { class: "joy-checkbox__content-wrapper" }, Et = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ V({
339
+ const Ke = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-ae0676bb"]]), Rt = ["aria-checked", "aria-hidden"], Dt = { class: "joy-checkbox__input-wrapper" }, Ht = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Wt = { class: "joy-checkbox__content-wrapper" }, Ut = { class: "joy-checkbox__content" }, Gt = /* @__PURE__ */ k({
189
340
  __name: "VJoyCheckbox",
190
341
  props: {
191
342
  /** 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 */
@@ -239,22 +390,22 @@ const Ue = /* @__PURE__ */ x(Vt, [["__scopeId", "data-v-ae0676bb"]]), xt = ["ari
239
390
  }
240
391
  },
241
392
  emits: ["update:checked", "focus", "blur"],
242
- setup(e, { expose: t, emit: l }) {
243
- const o = e, n = g(), r = g(o.indeterminate), s = g(o.invalid), a = g(!1), f = {
244
- onChange: (y) => {
245
- const u = y.target.checked;
246
- r.value = !1, s.value = !1, l("update:checked", u);
393
+ setup(e, { expose: l, emit: t }) {
394
+ const o = e, n = _(), r = _(o.indeterminate), s = _(o.invalid), a = _(!1), d = {
395
+ onChange: (m) => {
396
+ const u = m.target.checked;
397
+ r.value = !1, s.value = !1, t("update:checked", u);
247
398
  },
248
399
  onFocus: () => {
249
- a.value = !0, l("focus");
400
+ a.value = !0, t("focus");
250
401
  },
251
402
  onBlur: () => {
252
- a.value = !1, l("blur");
403
+ a.value = !1, t("blur");
253
404
  }
254
405
  };
255
- return t({
406
+ return l({
256
407
  isIndeterminate: r
257
- }), (y, u) => (m(), p("div", {
408
+ }), (m, u) => (y(), p("div", {
258
409
  class: "joy-checkbox__wrapper",
259
410
  "aria-checked": e.checked,
260
411
  "aria-hidden": e.disabled
@@ -271,7 +422,7 @@ const Ue = /* @__PURE__ */ x(Vt, [["__scopeId", "data-v-ae0676bb"]]), xt = ["ari
271
422
  }
272
423
  ])
273
424
  }, [
274
- b("div", Ot, [
425
+ b("div", Dt, [
275
426
  b("input", {
276
427
  id: e.id,
277
428
  ref_key: "input",
@@ -287,32 +438,32 @@ const Ue = /* @__PURE__ */ x(Vt, [["__scopeId", "data-v-ae0676bb"]]), xt = ["ari
287
438
  value: e.value,
288
439
  indeterminate: r.value,
289
440
  onChange: u[0] || (u[0] = //@ts-ignore
290
- (...v) => f.onChange && f.onChange(...v)),
441
+ (...v) => d.onChange && d.onChange(...v)),
291
442
  onFocus: u[1] || (u[1] = //@ts-ignore
292
- (...v) => f.onFocus && f.onFocus(...v)),
443
+ (...v) => d.onFocus && d.onFocus(...v)),
293
444
  onBlur: u[2] || (u[2] = //@ts-ignore
294
- (...v) => f.onBlur && f.onBlur(...v))
295
- }, null, 40, It)
445
+ (...v) => d.onBlur && d.onBlur(...v))
446
+ }, null, 40, Ht)
296
447
  ]),
297
- b("div", Bt, [
298
- h(y.$slots, "default", {}, () => [
299
- C(I(e.label), 1)
448
+ b("div", Wt, [
449
+ h(m.$slots, "default", {}, () => [
450
+ L(C(e.label), 1)
300
451
  ], !0),
301
- b("div", Et, [
302
- h(y.$slots, "checkbox-content", {}, void 0, !0)
452
+ b("div", Ut, [
453
+ h(m.$slots, "checkbox-content", {}, void 0, !0)
303
454
  ])
304
455
  ])
305
456
  ], 2)
306
- ], 8, xt));
457
+ ], 8, Rt));
307
458
  }
308
459
  });
309
- const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { class: "joy-counter" }, Jt = ["aria-label", "disabled"], Pt = { class: "joy-counter__input-wrapper" }, Tt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], qt = ["aria-label", "disabled"], zt = {
460
+ const he = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-27cc9d8c"]]), Kt = { class: "joy-counter" }, Qt = ["aria-label", "disabled"], Yt = { class: "joy-counter__input-wrapper" }, Zt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Xt = ["aria-label", "disabled"], el = {
310
461
  key: 0,
311
462
  class: "joy-counter_error"
312
- }, At = {
463
+ }, tl = {
313
464
  inheritAttrs: !1
314
- }, Ft = /* @__PURE__ */ V({
315
- ...At,
465
+ }, ll = /* @__PURE__ */ k({
466
+ ...tl,
316
467
  __name: "VJoyCounter",
317
468
  props: {
318
469
  /** Removes any interactivity */
@@ -378,22 +529,22 @@ const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { cla
378
529
  }
379
530
  },
380
531
  emits: ["update:modelValue"],
381
- setup(e, { expose: t, emit: l }) {
382
- const o = e, n = g(!1), r = g(!1);
532
+ setup(e, { expose: l, emit: t }) {
533
+ const o = e, n = _(!1), r = _(!1);
383
534
  function s() {
384
- const d = y(!1);
385
- d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), f();
535
+ const f = m(!1);
536
+ f >= 0 ? t("update:modelValue", f <= o.min ? o.min : f) : t("update:modelValue", 0), d();
386
537
  }
387
538
  function a() {
388
- const d = y();
389
- o.max && d <= o.max ? l("update:modelValue", d >= o.max ? o.max : d) : o.max && d > o.max ? l("update:modelValue", o.max) : l("update:modelValue", d), f();
539
+ const f = m();
540
+ o.max && f <= o.max ? t("update:modelValue", f >= o.max ? o.max : f) : o.max && f > o.max ? t("update:modelValue", o.max) : t("update:modelValue", f), d();
390
541
  }
391
- function f() {
542
+ function d() {
392
543
  n.value = !u();
393
544
  }
394
- function y(d = !0) {
545
+ function m(f = !0) {
395
546
  const S = o.step.toString().split("."), j = S.length === 2 ? S[1].length : 0;
396
- return parseFloat(d ? (o.modelValue + o.step).toFixed(j) : (o.modelValue - o.step).toFixed(j));
547
+ return parseFloat(f ? (o.modelValue + o.step).toFixed(j) : (o.modelValue - o.step).toFixed(j));
397
548
  }
398
549
  function u() {
399
550
  return v() && i();
@@ -405,33 +556,33 @@ const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { cla
405
556
  return o.min <= o.modelValue;
406
557
  }
407
558
  const c = {
408
- onInput: (d) => {
409
- l("update:modelValue", +d.target.value || 0), n.value = !1;
559
+ onInput: (f) => {
560
+ t("update:modelValue", +f.target.value || 0), n.value = !1;
410
561
  },
411
562
  onFocus: () => {
412
563
  r.value = !0;
413
564
  },
414
565
  onBlur: () => {
415
- r.value = !1, f();
566
+ r.value = !1, d();
416
567
  }
417
568
  };
418
- return t({
569
+ return l({
419
570
  props: o
420
- }), (d, S) => (m(), p("div", Ct, [
421
- e.label ? (m(), O($(W), {
571
+ }), (f, S) => (y(), p("div", Kt, [
572
+ e.label ? (y(), O(x(G), {
422
573
  key: 0,
423
574
  for: e.id,
424
575
  required: e.required && e.requiredMark,
425
576
  "optional-label": e.optionalLabel,
426
577
  size: e.labelSize
427
578
  }, {
428
- default: E(() => [
429
- h(d.$slots, "default", {}, () => [
430
- C(I(e.label), 1)
579
+ default: B(() => [
580
+ h(f.$slots, "default", {}, () => [
581
+ L(C(e.label), 1)
431
582
  ], !0)
432
583
  ]),
433
584
  _: 3
434
- }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
585
+ }, 8, ["for", "required", "optional-label", "size"])) : g("", !0),
435
586
  b("div", {
436
587
  class: w(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
437
588
  }, [
@@ -442,10 +593,10 @@ const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { cla
442
593
  disabled: e.modelValue <= e.min,
443
594
  onClick: s
444
595
  }, [
445
- M($(F), { name: "minus" })
446
- ], 8, Jt),
447
- b("div", Pt, [
448
- b("input", ee({
596
+ R(x(q), { name: "minus" })
597
+ ], 8, Qt),
598
+ b("div", Yt, [
599
+ b("input", W({
449
600
  id: e.id,
450
601
  ref: "input",
451
602
  type: "number",
@@ -457,14 +608,14 @@ const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { cla
457
608
  required: e.required,
458
609
  step: "any",
459
610
  value: e.modelValue
460
- }, d.$attrs, {
611
+ }, f.$attrs, {
461
612
  onInput: S[0] || (S[0] = //@ts-ignore
462
613
  (...j) => c.onInput && c.onInput(...j)),
463
614
  onBlur: S[1] || (S[1] = //@ts-ignore
464
615
  (...j) => c.onBlur && c.onBlur(...j)),
465
616
  onFocus: S[2] || (S[2] = //@ts-ignore
466
617
  (...j) => c.onFocus && c.onFocus(...j))
467
- }), null, 16, Tt)
618
+ }), null, 16, Zt)
468
619
  ]),
469
620
  b("button", {
470
621
  class: "joy-counter__increment",
@@ -473,170 +624,170 @@ const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { cla
473
624
  disabled: e.max ? e.modelValue >= e.max : !1,
474
625
  onClick: a
475
626
  }, [
476
- M($(F), { name: "add" })
477
- ], 8, qt),
478
- e.invalid && e.errorMessage ? (m(), p("div", zt, [
479
- M($(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
480
- ])) : _("", !0)
627
+ R(x(q), { name: "add" })
628
+ ], 8, Xt),
629
+ e.invalid && e.errorMessage ? (y(), p("div", el, [
630
+ R(x(ot), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
631
+ ])) : g("", !0)
481
632
  ], 2)
482
633
  ]));
483
634
  }
484
635
  });
485
- const Dt = /* @__PURE__ */ x(Ft, [["__scopeId", "data-v-a59ac0ad"]]);
636
+ const ol = /* @__PURE__ */ $(ll, [["__scopeId", "data-v-a59ac0ad"]]);
486
637
  var we;
487
- const Y = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
488
- }, ae = Y && ((we = window == null ? void 0 : window.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
638
+ const X = typeof window < "u", Qe = (e) => typeof e == "string", A = () => {
639
+ }, ie = X && ((we = window == null ? void 0 : window.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
489
640
  function T(e) {
490
- return typeof e == "function" ? e() : $(e);
641
+ return typeof e == "function" ? e() : x(e);
491
642
  }
492
- function Ke(e, t) {
493
- function l(...o) {
643
+ function Ye(e, l) {
644
+ function t(...o) {
494
645
  return new Promise((n, r) => {
495
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
646
+ Promise.resolve(e(() => l.apply(this, o), { fn: l, thisArg: this, args: o })).then(n).catch(r);
496
647
  });
497
648
  }
498
- return l;
649
+ return t;
499
650
  }
500
- function Rt(e, t = {}) {
501
- let l, o, n = z;
651
+ function al(e, l = {}) {
652
+ let t, o, n = A;
502
653
  const r = (a) => {
503
- clearTimeout(a), n(), n = z;
654
+ clearTimeout(a), n(), n = A;
504
655
  };
505
656
  return (a) => {
506
- const f = T(e), y = T(t.maxWait);
507
- return l && r(l), f <= 0 || y !== void 0 && y <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
508
- n = t.rejectOnCancel ? v : u, y && !o && (o = setTimeout(() => {
509
- l && r(l), o = null, u(a());
510
- }, y)), l = setTimeout(() => {
657
+ const d = T(e), m = T(l.maxWait);
658
+ return t && r(t), d <= 0 || m !== void 0 && m <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
659
+ n = l.rejectOnCancel ? v : u, m && !o && (o = setTimeout(() => {
660
+ t && r(t), o = null, u(a());
661
+ }, m)), t = setTimeout(() => {
511
662
  o && r(o), o = null, u(a());
512
- }, f);
663
+ }, d);
513
664
  });
514
665
  };
515
666
  }
516
- function Mt(e, t = !0, l = !0, o = !1) {
517
- let n = 0, r, s = !0, a = z, f;
518
- const y = () => {
519
- r && (clearTimeout(r), r = void 0, a(), a = z);
667
+ function nl(e, l = !0, t = !0, o = !1) {
668
+ let n = 0, r, s = !0, a = A, d;
669
+ const m = () => {
670
+ r && (clearTimeout(r), r = void 0, a(), a = A);
520
671
  };
521
672
  return (v) => {
522
- const i = T(e), c = Date.now() - n, d = () => f = v();
523
- return y(), i <= 0 ? (n = Date.now(), d()) : (c > i && (l || !s) ? (n = Date.now(), d()) : t && (f = new Promise((S, j) => {
673
+ const i = T(e), c = Date.now() - n, f = () => d = v();
674
+ return m(), i <= 0 ? (n = Date.now(), f()) : (c > i && (t || !s) ? (n = Date.now(), f()) : l && (d = new Promise((S, j) => {
524
675
  a = o ? j : S, r = setTimeout(() => {
525
- n = Date.now(), s = !0, S(d()), y();
676
+ n = Date.now(), s = !0, S(f()), m();
526
677
  }, Math.max(0, i - c));
527
- })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, f);
678
+ })), !t && !r && (r = setTimeout(() => s = !0, i)), s = !1, d);
528
679
  };
529
680
  }
530
- const R = {
681
+ const N = {
531
682
  mounted: "mounted",
532
683
  updated: "updated",
533
684
  unmounted: "unmounted"
534
685
  };
535
- function Nt(e) {
686
+ function il(e) {
536
687
  return e;
537
688
  }
538
- function Z(e) {
539
- return at() ? (it(e), !0) : !1;
689
+ function ee(e) {
690
+ return st() ? (ut(e), !0) : !1;
540
691
  }
541
- function Ht(e, t = 200, l = {}) {
542
- return Ke(Rt(t, l), e);
692
+ function rl(e, l = 200, t = {}) {
693
+ return Ye(al(l, t), e);
543
694
  }
544
- function Wt(e, t = 200, l = !1, o = !0, n = !1) {
545
- return Ke(Mt(t, l, o, n), e);
695
+ function sl(e, l = 200, t = !1, o = !0, n = !1) {
696
+ return Ye(nl(l, t, o, n), e);
546
697
  }
547
- function Ut(e) {
548
- return typeof e == "function" ? B(e) : g(e);
698
+ function ul(e) {
699
+ return typeof e == "function" ? I(e) : _(e);
549
700
  }
550
- function Qe(e, t = !0) {
551
- rt() ? K(e) : t ? e() : Ne(e);
701
+ function Ze(e, l = !0) {
702
+ dt() ? Y(e) : l ? e() : We(e);
552
703
  }
553
- function G(e) {
554
- var t;
555
- const l = T(e);
556
- return (t = l == null ? void 0 : l.$el) != null ? t : l;
704
+ function Q(e) {
705
+ var l;
706
+ const t = T(e);
707
+ return (l = t == null ? void 0 : t.$el) != null ? l : t;
557
708
  }
558
- const be = Y ? window : void 0;
559
- Y && window.document;
560
- Y && window.navigator;
561
- Y && window.location;
562
- function ie(...e) {
563
- let t, l, o, n;
564
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
565
- return z;
566
- Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
709
+ const be = X ? window : void 0;
710
+ X && window.document;
711
+ X && window.navigator;
712
+ X && window.location;
713
+ function ue(...e) {
714
+ let l, t, o, n;
715
+ if (Qe(e[0]) || Array.isArray(e[0]) ? ([t, o, n] = e, l = be) : [l, t, o, n] = e, !l)
716
+ return A;
717
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
567
718
  const r = [], s = () => {
568
719
  r.forEach((u) => u()), r.length = 0;
569
- }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), f = L(() => [G(t), T(n)], ([u, v]) => {
570
- s(), u && r.push(...l.flatMap((i) => o.map((c) => a(u, i, c, v))));
571
- }, { immediate: !0, flush: "post" }), y = () => {
572
- f(), s();
720
+ }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), d = E(() => [Q(l), T(n)], ([u, v]) => {
721
+ s(), u && r.push(...t.flatMap((i) => o.map((c) => a(u, i, c, v))));
722
+ }, { immediate: !0, flush: "post" }), m = () => {
723
+ d(), s();
573
724
  };
574
- return Z(y), y;
725
+ return ee(m), m;
575
726
  }
576
727
  let Se = !1;
577
- function Gt(e, t, l = {}) {
578
- const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
728
+ function dl(e, l, t = {}) {
729
+ const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = t;
579
730
  if (!o)
580
731
  return;
581
- ae && !Se && (Se = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
732
+ ie && !Se && (Se = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", A)));
582
733
  let a = !0;
583
- const f = (i) => n.some((c) => {
734
+ const d = (i) => n.some((c) => {
584
735
  if (typeof c == "string")
585
- return Array.from(o.document.querySelectorAll(c)).some((d) => d === i.target || i.composedPath().includes(d));
736
+ return Array.from(o.document.querySelectorAll(c)).some((f) => f === i.target || i.composedPath().includes(f));
586
737
  {
587
- const d = G(c);
588
- return d && (i.target === d || i.composedPath().includes(d));
738
+ const f = Q(c);
739
+ return f && (i.target === f || i.composedPath().includes(f));
589
740
  }
590
741
  }), u = [
591
- ie(o, "click", (i) => {
592
- const c = G(e);
742
+ ue(o, "click", (i) => {
743
+ const c = Q(e);
593
744
  if (!(!c || c === i.target || i.composedPath().includes(c))) {
594
- if (i.detail === 0 && (a = !f(i)), !a) {
745
+ if (i.detail === 0 && (a = !d(i)), !a) {
595
746
  a = !0;
596
747
  return;
597
748
  }
598
- t(i);
749
+ l(i);
599
750
  }
600
751
  }, { passive: !0, capture: r }),
601
- ie(o, "pointerdown", (i) => {
602
- const c = G(e);
603
- c && (a = !i.composedPath().includes(c) && !f(i));
752
+ ue(o, "pointerdown", (i) => {
753
+ const c = Q(e);
754
+ c && (a = !i.composedPath().includes(c) && !d(i));
604
755
  }, { passive: !0 }),
605
- s && ie(o, "blur", (i) => {
756
+ s && ue(o, "blur", (i) => {
606
757
  var c;
607
- const d = G(e);
608
- ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
758
+ const f = Q(e);
759
+ ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && l(i);
609
760
  })
610
761
  ].filter(Boolean);
611
762
  return () => u.forEach((i) => i());
612
763
  }
613
- function Kt(e, t = !1) {
614
- const l = g(), o = () => l.value = Boolean(e());
615
- return o(), Qe(o, t), l;
764
+ function cl(e, l = !1) {
765
+ const t = _(), o = () => t.value = Boolean(e());
766
+ return o(), Ze(o, l), t;
616
767
  }
617
- const re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, se = "__vueuse_ssr_handlers__";
618
- re[se] = re[se] || {};
619
- re[se];
620
- var je = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Zt = (e, t) => {
621
- var l = {};
768
+ const de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ce = "__vueuse_ssr_handlers__";
769
+ de[ce] = de[ce] || {};
770
+ de[ce];
771
+ var je = Object.getOwnPropertySymbols, fl = Object.prototype.hasOwnProperty, yl = Object.prototype.propertyIsEnumerable, vl = (e, l) => {
772
+ var t = {};
622
773
  for (var o in e)
623
- Qt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
774
+ fl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
624
775
  if (e != null && je)
625
776
  for (var o of je(e))
626
- t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
627
- return l;
777
+ l.indexOf(o) < 0 && yl.call(e, o) && (t[o] = e[o]);
778
+ return t;
628
779
  };
629
- function Xt(e, t, l = {}) {
630
- const o = l, { window: n = be } = o, r = Zt(o, ["window"]);
780
+ function ml(e, l, t = {}) {
781
+ const o = t, { window: n = be } = o, r = vl(o, ["window"]);
631
782
  let s;
632
- const a = Kt(() => n && "ResizeObserver" in n), f = () => {
783
+ const a = cl(() => n && "ResizeObserver" in n), d = () => {
633
784
  s && (s.disconnect(), s = void 0);
634
- }, y = L(() => G(e), (v) => {
635
- f(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
785
+ }, m = E(() => Q(e), (v) => {
786
+ d(), a.value && n && v && (s = new ResizeObserver(l), s.observe(v, r));
636
787
  }, { immediate: !0, flush: "post" }), u = () => {
637
- f(), y();
788
+ d(), m();
638
789
  };
639
- return Z(u), {
790
+ return ee(u), {
640
791
  isSupported: a,
641
792
  stop: u
642
793
  };
@@ -645,27 +796,27 @@ var ke;
645
796
  (function(e) {
646
797
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
647
798
  })(ke || (ke = {}));
648
- function el(e) {
649
- const t = g(e == null ? void 0 : e.element), l = g(e == null ? void 0 : e.input);
799
+ function pl(e) {
800
+ const l = _(e == null ? void 0 : e.element), t = _(e == null ? void 0 : e.input);
650
801
  function o() {
651
802
  var n, r;
652
- t.value && (t.value.style.height = "1px", t.value.style.height = `${(n = t.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
803
+ l.value && (l.value.style.height = "1px", l.value.style.height = `${(n = l.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
653
804
  }
654
- return L([l, t], o, { immediate: !0 }), Xt(t, () => o()), e != null && e.watch && L(e.watch, o, { immediate: !0, deep: !0 }), {
655
- textarea: t,
656
- input: l,
805
+ return E([t, l], o, { immediate: !0 }), ml(l, () => o()), e != null && e.watch && E(e.watch, o, { immediate: !0, deep: !0 }), {
806
+ textarea: l,
807
+ input: t,
657
808
  triggerResize: o
658
809
  };
659
810
  }
660
- var tl = Object.defineProperty, $e = Object.getOwnPropertySymbols, ll = Object.prototype.hasOwnProperty, ol = Object.prototype.propertyIsEnumerable, Ve = (e, t, l) => t in e ? tl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, nl = (e, t) => {
661
- for (var l in t || (t = {}))
662
- ll.call(t, l) && Ve(e, l, t[l]);
811
+ var gl = Object.defineProperty, $e = Object.getOwnPropertySymbols, hl = Object.prototype.hasOwnProperty, bl = Object.prototype.propertyIsEnumerable, Ve = (e, l, t) => l in e ? gl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, _l = (e, l) => {
812
+ for (var t in l || (l = {}))
813
+ hl.call(l, t) && Ve(e, t, l[t]);
663
814
  if ($e)
664
- for (var l of $e(t))
665
- ol.call(t, l) && Ve(e, l, t[l]);
815
+ for (var t of $e(l))
816
+ bl.call(l, t) && Ve(e, t, l[t]);
666
817
  return e;
667
818
  };
668
- const al = {
819
+ const wl = {
669
820
  easeInSine: [0.12, 0, 0.39, 0],
670
821
  easeOutSine: [0.61, 1, 0.88, 1],
671
822
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -691,210 +842,210 @@ const al = {
691
842
  easeOutBack: [0.34, 1.56, 0.64, 1],
692
843
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
693
844
  };
694
- nl({
695
- linear: Nt
696
- }, al);
697
- const il = /* @__PURE__ */ V({
845
+ _l({
846
+ linear: il
847
+ }, wl);
848
+ const Sl = /* @__PURE__ */ k({
698
849
  name: "OnClickOutside",
699
850
  props: ["as", "options"],
700
851
  emits: ["trigger"],
701
- setup(e, { slots: t, emit: l }) {
702
- const o = g();
703
- return Gt(o, (n) => {
704
- l("trigger", n);
852
+ setup(e, { slots: l, emit: t }) {
853
+ const o = _();
854
+ return dl(o, (n) => {
855
+ t("trigger", n);
705
856
  }, e.options), () => {
706
- if (t.default)
707
- return st(e.as || "div", { ref: o }, t.default());
857
+ if (l.default)
858
+ return ct(e.as || "div", { ref: o }, l.default());
708
859
  };
709
860
  }
710
861
  });
711
- function q(e) {
712
- var t;
713
- const l = T(e);
714
- return (t = l == null ? void 0 : l.$el) != null ? t : l;
862
+ function P(e) {
863
+ var l;
864
+ const t = T(e);
865
+ return (l = t == null ? void 0 : t.$el) != null ? l : t;
715
866
  }
716
- const H = Y ? window : void 0;
717
- function A(...e) {
718
- let t, l, o, n;
719
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = H) : [t, l, o, n] = e, !t)
720
- return z;
721
- Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
867
+ const U = X ? window : void 0;
868
+ function F(...e) {
869
+ let l, t, o, n;
870
+ if (Qe(e[0]) || Array.isArray(e[0]) ? ([t, o, n] = e, l = U) : [l, t, o, n] = e, !l)
871
+ return A;
872
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
722
873
  const r = [], s = () => {
723
874
  r.forEach((u) => u()), r.length = 0;
724
- }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), f = L(() => [q(t), T(n)], ([u, v]) => {
725
- s(), u && r.push(...l.flatMap((i) => o.map((c) => a(u, i, c, v))));
726
- }, { immediate: !0, flush: "post" }), y = () => {
727
- f(), s();
875
+ }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), d = E(() => [P(l), T(n)], ([u, v]) => {
876
+ s(), u && r.push(...t.flatMap((i) => o.map((c) => a(u, i, c, v))));
877
+ }, { immediate: !0, flush: "post" }), m = () => {
878
+ d(), s();
728
879
  };
729
- return Z(y), y;
880
+ return ee(m), m;
730
881
  }
731
882
  let xe = !1;
732
- function Oe(e, t, l = {}) {
733
- const { window: o = H, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
883
+ function Ie(e, l, t = {}) {
884
+ const { window: o = U, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = t;
734
885
  if (!o)
735
886
  return;
736
- ae && !xe && (xe = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
887
+ ie && !xe && (xe = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", A)));
737
888
  let a = !0;
738
- const f = (i) => n.some((c) => {
889
+ const d = (i) => n.some((c) => {
739
890
  if (typeof c == "string")
740
- return Array.from(o.document.querySelectorAll(c)).some((d) => d === i.target || i.composedPath().includes(d));
891
+ return Array.from(o.document.querySelectorAll(c)).some((f) => f === i.target || i.composedPath().includes(f));
741
892
  {
742
- const d = q(c);
743
- return d && (i.target === d || i.composedPath().includes(d));
893
+ const f = P(c);
894
+ return f && (i.target === f || i.composedPath().includes(f));
744
895
  }
745
896
  }), u = [
746
- A(o, "click", (i) => {
747
- const c = q(e);
897
+ F(o, "click", (i) => {
898
+ const c = P(e);
748
899
  if (!(!c || c === i.target || i.composedPath().includes(c))) {
749
- if (i.detail === 0 && (a = !f(i)), !a) {
900
+ if (i.detail === 0 && (a = !d(i)), !a) {
750
901
  a = !0;
751
902
  return;
752
903
  }
753
- t(i);
904
+ l(i);
754
905
  }
755
906
  }, { passive: !0, capture: r }),
756
- A(o, "pointerdown", (i) => {
757
- const c = q(e);
758
- c && (a = !i.composedPath().includes(c) && !f(i));
907
+ F(o, "pointerdown", (i) => {
908
+ const c = P(e);
909
+ c && (a = !i.composedPath().includes(c) && !d(i));
759
910
  }, { passive: !0 }),
760
- s && A(o, "blur", (i) => {
911
+ s && F(o, "blur", (i) => {
761
912
  var c;
762
- const d = q(e);
763
- ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
913
+ const f = P(e);
914
+ ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && l(i);
764
915
  })
765
916
  ].filter(Boolean);
766
917
  return () => u.forEach((i) => i());
767
918
  }
768
- R.mounted + "", R.unmounted + "";
769
- const rl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
770
- function Ie(...e) {
771
- let t, l, o = {};
772
- e.length === 3 ? (t = e[0], l = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, l = e[0], o = e[1]) : (t = e[0], l = e[1]) : (t = !0, l = e[0]);
773
- const { target: n = H, eventName: r = "keydown", passive: s = !1 } = o, a = rl(t);
774
- return A(n, r, (y) => {
775
- a(y) && l(y);
919
+ N.mounted + "", N.unmounted + "";
920
+ const jl = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
921
+ function Oe(...e) {
922
+ let l, t, o = {};
923
+ e.length === 3 ? (l = e[0], t = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], o = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
924
+ const { target: n = U, eventName: r = "keydown", passive: s = !1 } = o, a = jl(l);
925
+ return F(n, r, (m) => {
926
+ a(m) && t(m);
776
927
  }, s);
777
928
  }
778
- var sl = Object.defineProperty, Be = Object.getOwnPropertySymbols, ul = Object.prototype.hasOwnProperty, dl = Object.prototype.propertyIsEnumerable, Ee = (e, t, l) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, cl = (e, t) => {
779
- for (var l in t || (t = {}))
780
- ul.call(t, l) && Ee(e, l, t[l]);
781
- if (Be)
782
- for (var l of Be(t))
783
- dl.call(t, l) && Ee(e, l, t[l]);
929
+ var kl = Object.defineProperty, Ce = Object.getOwnPropertySymbols, $l = Object.prototype.hasOwnProperty, Vl = Object.prototype.propertyIsEnumerable, Be = (e, l, t) => l in e ? kl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, xl = (e, l) => {
930
+ for (var t in l || (l = {}))
931
+ $l.call(l, t) && Be(e, t, l[t]);
932
+ if (Ce)
933
+ for (var t of Ce(l))
934
+ Vl.call(l, t) && Be(e, t, l[t]);
784
935
  return e;
785
936
  };
786
- R.mounted + "";
787
- const fl = 500;
788
- function Le(e, t, l) {
937
+ N.mounted + "";
938
+ const Il = 500;
939
+ function Le(e, l, t) {
789
940
  var o, n;
790
- const r = B(() => q(e));
941
+ const r = I(() => P(e));
791
942
  let s;
792
943
  function a() {
793
944
  s && (clearTimeout(s), s = void 0);
794
945
  }
795
- function f(u) {
796
- var v, i, c, d;
797
- (v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== r.value || (a(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && u.preventDefault(), (c = l == null ? void 0 : l.modifiers) != null && c.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d : fl));
946
+ function d(u) {
947
+ var v, i, c, f;
948
+ (v = t == null ? void 0 : t.modifiers) != null && v.self && u.target !== r.value || (a(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (c = t == null ? void 0 : t.modifiers) != null && c.stop && u.stopPropagation(), s = setTimeout(() => l(u), (f = t == null ? void 0 : t.delay) != null ? f : Il));
798
949
  }
799
- const y = {
800
- capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
801
- once: (n = l == null ? void 0 : l.modifiers) == null ? void 0 : n.once
950
+ const m = {
951
+ capture: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.capture,
952
+ once: (n = t == null ? void 0 : t.modifiers) == null ? void 0 : n.once
802
953
  };
803
- A(r, "pointerdown", f, y), A(r, "pointerup", a, y), A(r, "pointerleave", a, y);
954
+ F(r, "pointerdown", d, m), F(r, "pointerup", a, m), F(r, "pointerleave", a, m);
804
955
  }
805
- R.mounted + "";
806
- const ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, de = "__vueuse_ssr_handlers__";
807
- ue[de] = ue[de] || {};
808
- ue[de];
809
- function Ye(e, t = !1) {
810
- const l = g(), o = () => l.value = Boolean(e());
811
- return o(), Qe(o, t), l;
956
+ N.mounted + "";
957
+ const fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ye = "__vueuse_ssr_handlers__";
958
+ fe[ye] = fe[ye] || {};
959
+ fe[ye];
960
+ function Xe(e, l = !1) {
961
+ const t = _(), o = () => t.value = Boolean(e());
962
+ return o(), Ze(o, l), t;
812
963
  }
813
- function yl(e, t = {}) {
814
- const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = g(!1);
964
+ function Ol(e, l = {}) {
965
+ const t = l ? l.delayEnter : 0, o = l ? l.delayLeave : 0, n = _(!1);
815
966
  let r;
816
967
  const s = (a) => {
817
- const f = a ? l : o;
818
- r && (clearTimeout(r), r = void 0), f ? r = setTimeout(() => n.value = a, f) : n.value = a;
968
+ const d = a ? t : o;
969
+ r && (clearTimeout(r), r = void 0), d ? r = setTimeout(() => n.value = a, d) : n.value = a;
819
970
  };
820
- return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
971
+ return window && (F(e, "mouseenter", () => s(!0), { passive: !0 }), F(e, "mouseleave", () => s(!1), { passive: !0 })), n;
821
972
  }
822
- R.mounted + "";
823
- var Ce = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, ml = Object.prototype.propertyIsEnumerable, pl = (e, t) => {
824
- var l = {};
973
+ N.mounted + "";
974
+ var Ee = Object.getOwnPropertySymbols, Cl = Object.prototype.hasOwnProperty, Bl = Object.prototype.propertyIsEnumerable, Ll = (e, l) => {
975
+ var t = {};
825
976
  for (var o in e)
826
- vl.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
827
- if (e != null && Ce)
828
- for (var o of Ce(e))
829
- t.indexOf(o) < 0 && ml.call(e, o) && (l[o] = e[o]);
830
- return l;
977
+ Cl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
978
+ if (e != null && Ee)
979
+ for (var o of Ee(e))
980
+ l.indexOf(o) < 0 && Bl.call(e, o) && (t[o] = e[o]);
981
+ return t;
831
982
  };
832
- function hl(e, t, l = {}) {
833
- const o = l, { window: n = H } = o, r = pl(o, ["window"]);
983
+ function El(e, l, t = {}) {
984
+ const o = t, { window: n = U } = o, r = Ll(o, ["window"]);
834
985
  let s;
835
- const a = Ye(() => n && "ResizeObserver" in n), f = () => {
986
+ const a = Xe(() => n && "ResizeObserver" in n), d = () => {
836
987
  s && (s.disconnect(), s = void 0);
837
- }, y = L(() => q(e), (v) => {
838
- f(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
988
+ }, m = E(() => P(e), (v) => {
989
+ d(), a.value && n && v && (s = new ResizeObserver(l), s.observe(v, r));
839
990
  }, { immediate: !0, flush: "post" }), u = () => {
840
- f(), y();
991
+ d(), m();
841
992
  };
842
- return Z(u), {
993
+ return ee(u), {
843
994
  isSupported: a,
844
995
  stop: u
845
996
  };
846
997
  }
847
- function gl(e, t = { width: 0, height: 0 }, l = {}) {
848
- const { window: o = H, box: n = "content-box" } = l, r = B(() => {
849
- var f, y;
850
- return (y = (f = q(e)) == null ? void 0 : f.namespaceURI) == null ? void 0 : y.includes("svg");
851
- }), s = g(t.width), a = g(t.height);
852
- return hl(e, ([f]) => {
853
- const y = n === "border-box" ? f.borderBoxSize : n === "content-box" ? f.contentBoxSize : f.devicePixelContentBoxSize;
998
+ function Jl(e, l = { width: 0, height: 0 }, t = {}) {
999
+ const { window: o = U, box: n = "content-box" } = t, r = I(() => {
1000
+ var d, m;
1001
+ return (m = (d = P(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : m.includes("svg");
1002
+ }), s = _(l.width), a = _(l.height);
1003
+ return El(e, ([d]) => {
1004
+ const m = n === "border-box" ? d.borderBoxSize : n === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
854
1005
  if (o && r.value) {
855
- const u = q(e);
1006
+ const u = P(e);
856
1007
  if (u) {
857
1008
  const v = o.getComputedStyle(u);
858
1009
  s.value = parseFloat(v.width), a.value = parseFloat(v.height);
859
1010
  }
860
- } else if (y) {
861
- const u = Array.isArray(y) ? y : [y];
1011
+ } else if (m) {
1012
+ const u = Array.isArray(m) ? m : [m];
862
1013
  s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
863
1014
  } else
864
- s.value = f.contentRect.width, a.value = f.contentRect.height;
865
- }, l), L(() => q(e), (f) => {
866
- s.value = f ? t.width : 0, a.value = f ? t.height : 0;
1015
+ s.value = d.contentRect.width, a.value = d.contentRect.height;
1016
+ }, t), E(() => P(e), (d) => {
1017
+ s.value = d ? l.width : 0, a.value = d ? l.height : 0;
867
1018
  }), {
868
1019
  width: s,
869
1020
  height: a
870
1021
  };
871
1022
  }
872
- R.mounted + "";
873
- function Je(e, { window: t = H, scrollTarget: l } = {}) {
874
- const o = g(!1), n = () => {
875
- if (!t)
1023
+ N.mounted + "";
1024
+ function Je(e, { window: l = U, scrollTarget: t } = {}) {
1025
+ const o = _(!1), n = () => {
1026
+ if (!l)
876
1027
  return;
877
- const r = t.document, s = q(e);
1028
+ const r = l.document, s = P(e);
878
1029
  if (!s)
879
1030
  o.value = !1;
880
1031
  else {
881
1032
  const a = s.getBoundingClientRect();
882
- o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
1033
+ o.value = a.top <= (l.innerHeight || r.documentElement.clientHeight) && a.left <= (l.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
883
1034
  }
884
1035
  };
885
- return L(() => q(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
1036
+ return E(() => P(e), () => n(), { immediate: !0, flush: "post" }), l && F(t || l, "scroll", n, {
886
1037
  capture: !1,
887
1038
  passive: !0
888
1039
  }), o;
889
1040
  }
890
- R.mounted + "";
891
- const Pe = 1;
892
- function ce(e, t = {}) {
1041
+ N.mounted + "";
1042
+ const ze = 1;
1043
+ function ve(e, l = {}) {
893
1044
  const {
894
- throttle: l = 0,
1045
+ throttle: t = 0,
895
1046
  idle: o = 200,
896
- onStop: n = z,
897
- onScroll: r = z,
1047
+ onStop: n = A,
1048
+ onScroll: r = A,
898
1049
  offset: s = {
899
1050
  left: 0,
900
1051
  right: 0,
@@ -905,15 +1056,15 @@ function ce(e, t = {}) {
905
1056
  capture: !1,
906
1057
  passive: !0
907
1058
  },
908
- behavior: f = "auto"
909
- } = t, y = g(0), u = g(0), v = B({
1059
+ behavior: d = "auto"
1060
+ } = l, m = _(0), u = _(0), v = I({
910
1061
  get() {
911
- return y.value;
1062
+ return m.value;
912
1063
  },
913
1064
  set(J) {
914
1065
  c(J, void 0);
915
1066
  }
916
- }), i = B({
1067
+ }), i = I({
917
1068
  get() {
918
1069
  return u.value;
919
1070
  },
@@ -921,16 +1072,16 @@ function ce(e, t = {}) {
921
1072
  c(void 0, J);
922
1073
  }
923
1074
  });
924
- function c(J, D) {
925
- var k, P, N;
926
- const U = T(e);
927
- U && ((N = U instanceof Document ? document.body : U) == null || N.scrollTo({
928
- top: (k = T(D)) != null ? k : i.value,
929
- left: (P = T(J)) != null ? P : v.value,
930
- behavior: T(f)
1075
+ function c(J, M) {
1076
+ var V, z, D;
1077
+ const K = T(e);
1078
+ K && ((D = K instanceof Document ? document.body : K) == null || D.scrollTo({
1079
+ top: (V = T(M)) != null ? V : i.value,
1080
+ left: (z = T(J)) != null ? z : v.value,
1081
+ behavior: T(d)
931
1082
  }));
932
1083
  }
933
- const d = g(!1), S = ne({
1084
+ const f = _(!1), S = ne({
934
1085
  left: !0,
935
1086
  right: !1,
936
1087
  top: !0,
@@ -940,45 +1091,45 @@ function ce(e, t = {}) {
940
1091
  right: !1,
941
1092
  top: !1,
942
1093
  bottom: !1
943
- }), te = (J) => {
944
- d.value && (d.value = !1, j.left = !1, j.right = !1, j.top = !1, j.bottom = !1, n(J));
945
- }, le = Ht(te, l + o), oe = (J) => {
946
- const D = J.target === document ? J.target.documentElement : J.target, k = D.scrollLeft;
947
- j.left = k < y.value, j.right = k > u.value, S.left = k <= 0 + (s.left || 0), S.right = k + D.clientWidth >= D.scrollWidth - (s.right || 0) - Pe, y.value = k;
948
- let P = D.scrollTop;
949
- J.target === document && !P && (P = document.body.scrollTop), j.top = P < u.value, j.bottom = P > u.value, S.top = P <= 0 + (s.top || 0), S.bottom = P + D.clientHeight >= D.scrollHeight - (s.bottom || 0) - Pe, u.value = P, d.value = !0, le(J), r(J);
1094
+ }), le = (J) => {
1095
+ f.value && (f.value = !1, j.left = !1, j.right = !1, j.top = !1, j.bottom = !1, n(J));
1096
+ }, oe = rl(le, t + o), ae = (J) => {
1097
+ const M = J.target === document ? J.target.documentElement : J.target, V = M.scrollLeft;
1098
+ j.left = V < m.value, j.right = V > u.value, S.left = V <= 0 + (s.left || 0), S.right = V + M.clientWidth >= M.scrollWidth - (s.right || 0) - ze, m.value = V;
1099
+ let z = M.scrollTop;
1100
+ J.target === document && !z && (z = document.body.scrollTop), j.top = z < u.value, j.bottom = z > u.value, S.top = z <= 0 + (s.top || 0), S.bottom = z + M.clientHeight >= M.scrollHeight - (s.bottom || 0) - ze, u.value = z, f.value = !0, oe(J), r(J);
950
1101
  };
951
- return A(e, "scroll", l ? Wt(oe, l, !0, !1) : oe, a), A(e, "scrollend", te, a), {
1102
+ return F(e, "scroll", t ? sl(ae, t, !0, !1) : ae, a), F(e, "scrollend", le, a), {
952
1103
  x: v,
953
1104
  y: i,
954
- isScrolling: d,
1105
+ isScrolling: f,
955
1106
  arrivedState: S,
956
1107
  directions: j
957
1108
  };
958
1109
  }
959
- var bl = Object.defineProperty, _l = Object.defineProperties, wl = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, Sl = Object.prototype.hasOwnProperty, jl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? bl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, ze = (e, t) => {
960
- for (var l in t || (t = {}))
961
- Sl.call(t, l) && qe(e, l, t[l]);
1110
+ var zl = Object.defineProperty, Tl = Object.defineProperties, Pl = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, ql = Object.prototype.hasOwnProperty, Al = Object.prototype.propertyIsEnumerable, Pe = (e, l, t) => l in e ? zl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, qe = (e, l) => {
1111
+ for (var t in l || (l = {}))
1112
+ ql.call(l, t) && Pe(e, t, l[t]);
962
1113
  if (Te)
963
- for (var l of Te(t))
964
- jl.call(t, l) && qe(e, l, t[l]);
1114
+ for (var t of Te(l))
1115
+ Al.call(l, t) && Pe(e, t, l[t]);
965
1116
  return e;
966
- }, kl = (e, t) => _l(e, wl(t));
967
- function Ae(e, t, l = {}) {
1117
+ }, Fl = (e, l) => Tl(e, Pl(l));
1118
+ function Ae(e, l, t = {}) {
968
1119
  var o, n;
969
- const r = (o = l.direction) != null ? o : "bottom", s = ne(ce(e, kl(ze({}, l), {
970
- offset: ze({
971
- [r]: (n = l.distance) != null ? n : 0
972
- }, l.offset)
1120
+ const r = (o = t.direction) != null ? o : "bottom", s = ne(ve(e, Fl(qe({}, t), {
1121
+ offset: qe({
1122
+ [r]: (n = t.distance) != null ? n : 0
1123
+ }, t.offset)
973
1124
  })));
974
- L(() => s.arrivedState[r], async (a) => {
975
- var f, y;
1125
+ E(() => s.arrivedState[r], async (a) => {
1126
+ var d, m;
976
1127
  if (a) {
977
1128
  const u = T(e), v = {
978
- height: (f = u == null ? void 0 : u.scrollHeight) != null ? f : 0,
979
- width: (y = u == null ? void 0 : u.scrollWidth) != null ? y : 0
1129
+ height: (d = u == null ? void 0 : u.scrollHeight) != null ? d : 0,
1130
+ width: (m = u == null ? void 0 : u.scrollWidth) != null ? m : 0
980
1131
  };
981
- await t(s), l.preserveScrollPosition && u && Ne(() => {
1132
+ await l(s), t.preserveScrollPosition && u && We(() => {
982
1133
  u.scrollTo({
983
1134
  top: u.scrollHeight - v.height,
984
1135
  left: u.scrollWidth - v.width
@@ -987,108 +1138,108 @@ function Ae(e, t, l = {}) {
987
1138
  }
988
1139
  });
989
1140
  }
990
- R.mounted + "";
991
- function Fe(e, t, l = {}) {
1141
+ N.mounted + "";
1142
+ function Fe(e, l, t = {}) {
992
1143
  const {
993
1144
  root: o,
994
1145
  rootMargin: n = "0px",
995
1146
  threshold: r = 0.1,
996
- window: s = H
997
- } = l, a = Ye(() => s && "IntersectionObserver" in s);
998
- let f = z;
999
- const y = a.value ? L(() => ({
1000
- el: q(e),
1001
- root: q(o)
1147
+ window: s = U
1148
+ } = t, a = Xe(() => s && "IntersectionObserver" in s);
1149
+ let d = A;
1150
+ const m = a.value ? E(() => ({
1151
+ el: P(e),
1152
+ root: P(o)
1002
1153
  }), ({ el: v, root: i }) => {
1003
- if (f(), !v)
1154
+ if (d(), !v)
1004
1155
  return;
1005
- const c = new IntersectionObserver(t, {
1156
+ const c = new IntersectionObserver(l, {
1006
1157
  root: i,
1007
1158
  rootMargin: n,
1008
1159
  threshold: r
1009
1160
  });
1010
- c.observe(v), f = () => {
1011
- c.disconnect(), f = z;
1161
+ c.observe(v), d = () => {
1162
+ c.disconnect(), d = A;
1012
1163
  };
1013
- }, { immediate: !0, flush: "post" }) : z, u = () => {
1014
- f(), y();
1164
+ }, { immediate: !0, flush: "post" }) : A, u = () => {
1165
+ d(), m();
1015
1166
  };
1016
- return Z(u), {
1167
+ return ee(u), {
1017
1168
  isSupported: a,
1018
1169
  stop: u
1019
1170
  };
1020
1171
  }
1021
- R.mounted + "";
1022
- var $l = Object.defineProperty, Vl = Object.defineProperties, xl = Object.getOwnPropertyDescriptors, De = Object.getOwnPropertySymbols, Ol = Object.prototype.hasOwnProperty, Il = Object.prototype.propertyIsEnumerable, Re = (e, t, l) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Bl = (e, t) => {
1023
- for (var l in t || (t = {}))
1024
- Ol.call(t, l) && Re(e, l, t[l]);
1025
- if (De)
1026
- for (var l of De(t))
1027
- Il.call(t, l) && Re(e, l, t[l]);
1172
+ N.mounted + "";
1173
+ var Ml = Object.defineProperty, Nl = Object.defineProperties, Rl = Object.getOwnPropertyDescriptors, Me = Object.getOwnPropertySymbols, Dl = Object.prototype.hasOwnProperty, Hl = Object.prototype.propertyIsEnumerable, Ne = (e, l, t) => l in e ? Ml(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Wl = (e, l) => {
1174
+ for (var t in l || (l = {}))
1175
+ Dl.call(l, t) && Ne(e, t, l[t]);
1176
+ if (Me)
1177
+ for (var t of Me(l))
1178
+ Hl.call(l, t) && Ne(e, t, l[t]);
1028
1179
  return e;
1029
- }, El = (e, t) => Vl(e, xl(t));
1030
- R.mounted + "";
1031
- function Ze(e) {
1032
- const t = window.getComputedStyle(e);
1033
- if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1180
+ }, Ul = (e, l) => Nl(e, Rl(l));
1181
+ N.mounted + "";
1182
+ function et(e) {
1183
+ const l = window.getComputedStyle(e);
1184
+ if (l.overflowX === "scroll" || l.overflowY === "scroll" || l.overflowX === "auto" && e.clientHeight < e.scrollHeight || l.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1034
1185
  return !0;
1035
1186
  {
1036
- const l = e.parentNode;
1037
- return !l || l.tagName === "BODY" ? !1 : Ze(l);
1187
+ const t = e.parentNode;
1188
+ return !t || t.tagName === "BODY" ? !1 : et(t);
1038
1189
  }
1039
1190
  }
1040
- function Ll(e) {
1041
- const t = e || window.event, l = t.target;
1042
- return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1191
+ function Gl(e) {
1192
+ const l = e || window.event, t = l.target;
1193
+ return et(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1043
1194
  }
1044
- function Cl(e, t = !1) {
1045
- const l = g(t);
1195
+ function Kl(e, l = !1) {
1196
+ const t = _(l);
1046
1197
  let o = null, n;
1047
- L(Ut(e), (a) => {
1198
+ E(ul(e), (a) => {
1048
1199
  if (a) {
1049
- const f = a;
1050
- n = f.style.overflow, l.value && (f.style.overflow = "hidden");
1200
+ const d = a;
1201
+ n = d.style.overflow, t.value && (d.style.overflow = "hidden");
1051
1202
  }
1052
1203
  }, {
1053
1204
  immediate: !0
1054
1205
  });
1055
1206
  const r = () => {
1056
1207
  const a = T(e);
1057
- !a || l.value || (ae && (o = A(a, "touchmove", (f) => {
1058
- Ll(f);
1059
- }, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
1208
+ !a || t.value || (ie && (o = F(a, "touchmove", (d) => {
1209
+ Gl(d);
1210
+ }, { passive: !1 })), a.style.overflow = "hidden", t.value = !0);
1060
1211
  }, s = () => {
1061
1212
  const a = T(e);
1062
- !a || !l.value || (ae && (o == null || o()), a.style.overflow = n, l.value = !1);
1213
+ !a || !t.value || (ie && (o == null || o()), a.style.overflow = n, t.value = !1);
1063
1214
  };
1064
- return Z(s), B({
1215
+ return ee(s), I({
1065
1216
  get() {
1066
- return l.value;
1217
+ return t.value;
1067
1218
  },
1068
1219
  set(a) {
1069
1220
  a ? r() : s();
1070
1221
  }
1071
1222
  });
1072
1223
  }
1073
- const Jl = () => {
1224
+ const Ql = () => {
1074
1225
  let e = !1;
1075
- const t = g(!1);
1076
- return (l, o) => {
1077
- if (t.value = o.value, e)
1226
+ const l = _(!1);
1227
+ return (t, o) => {
1228
+ if (l.value = o.value, e)
1078
1229
  return;
1079
1230
  e = !0;
1080
- const n = Cl(l, o.value);
1081
- L(t, (r) => n.value = r);
1231
+ const n = Kl(t, o.value);
1232
+ E(l, (r) => n.value = r);
1082
1233
  };
1083
1234
  };
1084
- Jl();
1085
- const Xe = ["medium", "small", "xsmall"], Pl = {
1235
+ Ql();
1236
+ const tt = ["medium", "small", "xsmall"], Yl = {
1086
1237
  key: 0,
1087
1238
  class: "joy-dropdown-list__header"
1088
- }, Tl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], ql = {
1239
+ }, Zl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Xl = {
1089
1240
  key: 1,
1090
1241
  class: "joy-dropdown-list__footer"
1091
- }, zl = /* @__PURE__ */ V({
1242
+ }, eo = /* @__PURE__ */ k({
1092
1243
  __name: "VJoyDropdownList",
1093
1244
  props: {
1094
1245
  /**
@@ -1097,7 +1248,7 @@ const Xe = ["medium", "small", "xsmall"], Pl = {
1097
1248
  options: {
1098
1249
  type: Array,
1099
1250
  validator(e) {
1100
- return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
1251
+ return e.every((l) => Object.keys(l).includes("value") || Object.keys(l).includes("id"));
1101
1252
  },
1102
1253
  default() {
1103
1254
  return [];
@@ -1108,7 +1259,7 @@ const Xe = ["medium", "small", "xsmall"], Pl = {
1108
1259
  type: String,
1109
1260
  default: "medium",
1110
1261
  validator(e) {
1111
- return Xe.includes(e);
1262
+ return tt.includes(e);
1112
1263
  }
1113
1264
  },
1114
1265
  modelValue: {
@@ -1124,40 +1275,40 @@ const Xe = ["medium", "small", "xsmall"], Pl = {
1124
1275
  }
1125
1276
  },
1126
1277
  emits: ["update:modelValue", "close:dropdownList"],
1127
- setup(e, { expose: t, emit: l }) {
1128
- const o = e, n = g(), r = B(() => (i) => !o.modelValue || !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1278
+ setup(e, { expose: l, emit: t }) {
1279
+ const o = e, n = _(), r = I(() => (i) => !o.modelValue || !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1129
1280
  function s(i) {
1130
- i.disabled || l("update:modelValue", i.value || i.id);
1281
+ i.disabled || t("update:modelValue", i.value || i.id);
1131
1282
  }
1132
1283
  function a() {
1133
1284
  var i;
1134
1285
  return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1135
1286
  }
1136
- function f() {
1287
+ function d() {
1137
1288
  const i = a().find((c) => c.getAttribute("aria-selected") === "true");
1138
1289
  i && (i.focus(), n.value.scrollTo({
1139
1290
  top: i.offsetTop
1140
1291
  }));
1141
1292
  }
1142
- function y() {
1293
+ function m() {
1143
1294
  return a().find((i) => i === document.activeElement);
1144
1295
  }
1145
1296
  function u(i) {
1146
1297
  var c;
1147
1298
  if (!(n.value && !n.value.contains(document.activeElement) || !n.value)) {
1148
- if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), y() && ((c = n.value) != null && c.contains(y())))) {
1149
- const d = y();
1150
- if (!d)
1299
+ if ((i.key === "Escape" || i.key === "Tab") && t("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), m() && ((c = n.value) != null && c.contains(m())))) {
1300
+ const f = m();
1301
+ if (!f)
1151
1302
  return;
1152
- if (d.querySelector("a"))
1153
- return d.querySelector("a").click();
1154
- l("update:modelValue", d.dataModel);
1303
+ if (f.querySelector("a"))
1304
+ return f.querySelector("a").click();
1305
+ t("update:modelValue", f.dataModel);
1155
1306
  }
1156
- if (y() && i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1157
- const d = a(), S = y();
1158
- let j = d.indexOf(S);
1159
- if (d.length) {
1160
- i.preventDefault(), i.key === "ArrowDown" ? j++ : i.key === "ArrowUp" ? j-- : i.key === "Home" ? j = 0 : i.key === "End" && (j = d.length - 1), j < 0 && (j = d.length - 1), j > d.length - 1 && (j = 0), v(d[j]);
1307
+ if (m() && i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1308
+ const f = a(), S = m();
1309
+ let j = f.indexOf(S);
1310
+ if (f.length) {
1311
+ 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 = f.length - 1), j > f.length - 1 && (j = 0), v(f[j]);
1161
1312
  return;
1162
1313
  }
1163
1314
  }
@@ -1166,113 +1317,113 @@ const Xe = ["medium", "small", "xsmall"], Pl = {
1166
1317
  function v(i) {
1167
1318
  i.focus();
1168
1319
  }
1169
- return K(() => {
1170
- window.addEventListener("keydown", u), f();
1171
- }), He(() => {
1320
+ return Y(() => {
1321
+ window.addEventListener("keydown", u), d();
1322
+ }), Ue(() => {
1172
1323
  window.removeEventListener("keydown", u);
1173
- }), t({
1324
+ }), l({
1174
1325
  isSelected: r
1175
- }), (i, c) => (m(), p("div", {
1326
+ }), (i, c) => (y(), p("div", {
1176
1327
  class: "joy-dropdown-list",
1177
- style: X({ width: `${e.width}px`, "max-width": `${e.width}px` })
1328
+ style: te({ width: `${e.width}px`, "max-width": `${e.width}px` })
1178
1329
  }, [
1179
- i.$slots["dropdown-list-header"] ? (m(), p("header", Pl, [
1330
+ i.$slots["dropdown-list-header"] ? (y(), p("header", Yl, [
1180
1331
  h(i.$slots, "dropdown-list-header", {}, void 0, !0)
1181
- ])) : _("", !0),
1332
+ ])) : g("", !0),
1182
1333
  b("div", {
1183
1334
  class: w(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1184
- style: X({ "max-height": `${e.height}px` })
1335
+ style: te({ "max-height": `${e.height}px` })
1185
1336
  }, [
1186
1337
  h(i.$slots, "dropdown-list-items", {}, void 0, !0),
1187
- e.options.length ? (m(), p("ul", {
1338
+ e.options.length ? (y(), p("ul", {
1188
1339
  key: 0,
1189
1340
  ref_key: "listbox",
1190
1341
  ref: n,
1191
1342
  role: "listbox",
1192
1343
  "aria-expanded": "true"
1193
1344
  }, [
1194
- (m(!0), p(ye, null, ve(e.options, (d) => (m(), p("li", {
1195
- id: d.id,
1196
- key: d.label,
1197
- style: X({ "max-width": `${e.width}px` }),
1345
+ (y(!0), p(H, null, se(e.options, (f) => (y(), p("li", {
1346
+ id: f.id,
1347
+ key: f.label,
1348
+ style: te({ "max-width": `${e.width}px` }),
1198
1349
  class: w([
1199
1350
  "joy-dropdown-list__item",
1200
1351
  `joy-dropdown-list__item--${e.size}`,
1201
1352
  {
1202
- "joy-dropdown-list__item--selected": r.value(d),
1203
- "joy-dropdown-list__item--disabled": d.disabled
1353
+ "joy-dropdown-list__item--selected": r.value(f),
1354
+ "joy-dropdown-list__item--disabled": f.disabled
1204
1355
  }
1205
1356
  ]),
1206
- tabindex: d.disabled ? void 0 : -1,
1207
- "aria-disabled": d.disabled,
1208
- "aria-selected": r.value(d),
1209
- title: d.label,
1210
- "aria-label": d.label,
1211
- ".dataModel": d.value || d.id,
1357
+ tabindex: f.disabled ? void 0 : -1,
1358
+ "aria-disabled": f.disabled,
1359
+ "aria-selected": r.value(f),
1360
+ title: f.label,
1361
+ "aria-label": f.label,
1362
+ ".dataModel": f.value || f.id,
1212
1363
  role: "option",
1213
- onClick: (S) => s(d)
1364
+ onClick: (S) => s(f)
1214
1365
  }, [
1215
- h(i.$slots, "label", me(pe(d)), () => [
1216
- b("span", null, I(d.label), 1)
1366
+ h(i.$slots, "label", me(pe(f)), () => [
1367
+ b("span", null, C(f.label), 1)
1217
1368
  ], !0)
1218
- ], 14, Tl))), 128))
1219
- ], 512)) : _("", !0)
1369
+ ], 14, Zl))), 128))
1370
+ ], 512)) : g("", !0)
1220
1371
  ], 6),
1221
- i.$slots["dropdown-list-footer"] ? (m(), p("footer", ql, [
1372
+ i.$slots["dropdown-list-footer"] ? (y(), p("footer", Xl, [
1222
1373
  h(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1223
- ])) : _("", !0)
1374
+ ])) : g("", !0)
1224
1375
  ], 4));
1225
1376
  }
1226
1377
  });
1227
- const et = /* @__PURE__ */ x(zl, [["__scopeId", "data-v-cd3f6251"]]);
1228
- function Al(e) {
1229
- const t = () => e();
1230
- K(() => {
1231
- window.addEventListener("resize", t);
1232
- }), He(() => {
1233
- window.removeEventListener("resize", t);
1378
+ const lt = /* @__PURE__ */ $(eo, [["__scopeId", "data-v-cd3f6251"]]);
1379
+ function to(e) {
1380
+ const l = () => e();
1381
+ Y(() => {
1382
+ window.addEventListener("resize", l);
1383
+ }), Ue(() => {
1384
+ window.removeEventListener("resize", l);
1234
1385
  });
1235
1386
  }
1236
- const Fl = ["JOY-DRAWER", "JOY-DIALOG", "JOY-BOTTOM-SHEET"];
1237
- function Dl(e) {
1238
- let t = e.value.parentElement, l = !1;
1239
- for (; t != null && t.parentElement; )
1240
- Fl.includes(t == null ? void 0 : t.tagName) && (l = !0), t = t.parentElement;
1241
- return l;
1387
+ const lo = ["JOY-DRAWER", "JOY-DIALOG", "JOY-BOTTOM-SHEET"];
1388
+ function oo(e) {
1389
+ let l = e.value.parentElement, t = !1;
1390
+ for (; l != null && l.parentElement; )
1391
+ lo.includes(l == null ? void 0 : l.tagName) && (t = !0), l = l.parentElement;
1392
+ return t;
1242
1393
  }
1243
- function Rl(e) {
1244
- const t = g(!1);
1245
- return K(() => {
1246
- t.value = Dl(e);
1394
+ function ao(e) {
1395
+ const l = _(!1);
1396
+ return Y(() => {
1397
+ l.value = oo(e);
1247
1398
  }), {
1248
- isInOverlay: t
1399
+ isInOverlay: l
1249
1400
  };
1250
1401
  }
1251
- function Ml(e) {
1252
- let t;
1402
+ function no(e) {
1403
+ let l;
1253
1404
  switch (e) {
1254
1405
  case "error":
1255
- t = "warning-triangle";
1406
+ l = "warning-triangle";
1256
1407
  break;
1257
1408
  case "success":
1258
- t = "check";
1409
+ l = "check";
1259
1410
  break;
1260
1411
  default:
1261
- t = "info-circle";
1412
+ l = "info-circle";
1262
1413
  }
1263
- return t;
1414
+ return l;
1264
1415
  }
1265
- function Nl(e) {
1416
+ function io(e) {
1266
1417
  if (!e) {
1267
1418
  console.warn("Missing ref element for focusOnFirstFocusableFormField use");
1268
1419
  return;
1269
1420
  }
1270
- let t = ["input", "textarea", "select"];
1271
- const l = (e.value ?? e).querySelectorAll(t.join(","));
1272
- if (l.length)
1273
- return l[0].focus();
1421
+ let l = ["input", "textarea", "select"];
1422
+ const t = (e.value ?? e).querySelectorAll(l.join(","));
1423
+ if (t.length)
1424
+ return t[0].focus();
1274
1425
  }
1275
- const Hl = /* @__PURE__ */ V({
1426
+ const ro = /* @__PURE__ */ k({
1276
1427
  __name: "VJoyDropdown",
1277
1428
  props: {
1278
1429
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1312,7 +1463,7 @@ const Hl = /* @__PURE__ */ V({
1312
1463
  options: {
1313
1464
  type: Array,
1314
1465
  validator(e) {
1315
- return e.every((l) => Object.keys(l).includes("label"));
1466
+ return e.every((t) => Object.keys(t).includes("label"));
1316
1467
  },
1317
1468
  default() {
1318
1469
  return [];
@@ -1322,7 +1473,7 @@ const Hl = /* @__PURE__ */ V({
1322
1473
  type: String,
1323
1474
  default: "medium",
1324
1475
  validator(e) {
1325
- return Xe.includes(e);
1476
+ return tt.includes(e);
1326
1477
  }
1327
1478
  },
1328
1479
  modelValue: {
@@ -1352,15 +1503,15 @@ const Hl = /* @__PURE__ */ V({
1352
1503
  }
1353
1504
  },
1354
1505
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1355
- setup(e, { expose: t, emit: l }) {
1356
- const o = e, n = g(!1), r = g(null), s = g(), a = g(null), { isInOverlay: f } = Rl(s), y = g(null), u = g(!1), v = {
1506
+ setup(e, { expose: l, emit: t }) {
1507
+ const o = e, n = _(!1), r = _(null), s = _(), a = _(null), { isInOverlay: d } = ao(s), m = _(null), u = _(!1), v = {
1357
1508
  ignore: [s, ".joy-dropdown__list"]
1358
1509
  };
1359
1510
  let i = null;
1360
- L(
1511
+ E(
1361
1512
  () => n.value,
1362
- (k) => {
1363
- k && Nl(a);
1513
+ (V) => {
1514
+ V && io(a);
1364
1515
  },
1365
1516
  { flush: "post" }
1366
1517
  );
@@ -1370,7 +1521,7 @@ const Hl = /* @__PURE__ */ V({
1370
1521
  right: "auto",
1371
1522
  zIndex: void 0,
1372
1523
  position: void 0
1373
- }), d = B(() => ({
1524
+ }), f = I(() => ({
1374
1525
  position: c.position,
1375
1526
  top: c.top,
1376
1527
  left: c.left,
@@ -1378,55 +1529,55 @@ const Hl = /* @__PURE__ */ V({
1378
1529
  }));
1379
1530
  function S() {
1380
1531
  i && clearTimeout(i), u.value = !0, i = setTimeout(() => {
1381
- n.value = !1, u.value = !1, l("dropdown:hide");
1532
+ n.value = !1, u.value = !1, t("dropdown:hide");
1382
1533
  }, 300);
1383
1534
  }
1384
- function j(k) {
1385
- u.value = !1, i && clearTimeout(i), J(), oe(), y.value = k.target, n.value = !0, l("dropdown:open");
1386
- }
1387
- function te() {
1388
- S(), le();
1535
+ function j(V) {
1536
+ u.value = !1, i && clearTimeout(i), J(), ae(), m.value = V.target, n.value = !0, t("dropdown:open");
1389
1537
  }
1390
1538
  function le() {
1391
- y.value && y.value.focus();
1539
+ S(), oe();
1392
1540
  }
1393
1541
  function oe() {
1394
- f.value && (c.zIndex = "9999", c.position = "fixed");
1542
+ m.value && m.value.focus();
1543
+ }
1544
+ function ae() {
1545
+ d.value && (c.zIndex = "9999", c.position = "fixed");
1395
1546
  }
1396
1547
  function J() {
1397
- const k = s.value.getBoundingClientRect();
1398
- let P = 0;
1399
- f.value ? P = document.documentElement.offsetTop + k.top : P = document.documentElement.scrollTop + k.top;
1400
- const N = k.height, U = k.left, nt = k.width;
1401
- o.justify === "left" ? c.left = U + "px" : c.left = U + nt - parseInt(o.width) + "px", o.direction === "down" ? c.top = P + N + parseInt(o.dropdownGap) + "px" : c.top = P - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1548
+ const V = s.value.getBoundingClientRect();
1549
+ let z = 0;
1550
+ d.value ? z = document.documentElement.offsetTop + V.top : z = document.documentElement.scrollTop + V.top;
1551
+ const D = V.height, K = V.left, rt = V.width;
1552
+ o.justify === "left" ? c.left = K + "px" : c.left = K + rt - parseInt(o.width) + "px", o.direction === "down" ? c.top = z + D + parseInt(o.dropdownGap) + "px" : c.top = z - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1402
1553
  }
1403
- function D(k) {
1404
- l("update:modelValue", k), o.closeOnSelect && (S(), le());
1554
+ function M(V) {
1555
+ t("update:modelValue", V), o.closeOnSelect && (S(), oe());
1405
1556
  }
1406
- return Al(S), t({
1557
+ return to(S), l({
1407
1558
  coords: c,
1408
1559
  showDropdownList: n
1409
- }), (k, P) => (m(), O($(il), {
1560
+ }), (V, z) => (y(), O(x(Sl), {
1410
1561
  ref_key: "dropdown",
1411
1562
  ref: r,
1412
1563
  options: v,
1413
1564
  class: "joy-dropdown",
1414
1565
  onTrigger: S
1415
1566
  }, {
1416
- default: E(() => [
1567
+ default: B(() => [
1417
1568
  b("div", {
1418
1569
  ref_key: "button",
1419
1570
  ref: s,
1420
1571
  class: "joy-dropdown__button",
1421
1572
  onClick: j
1422
1573
  }, [
1423
- h(k.$slots, "dropdown-button", {}, void 0, !0)
1574
+ h(V.$slots, "dropdown-button", {}, void 0, !0)
1424
1575
  ], 512),
1425
- (m(), O(ut, {
1576
+ (y(), O(ft, {
1426
1577
  to: e.appendTo,
1427
1578
  disabled: e.disableTeleport
1428
1579
  }, [
1429
- n.value ? (m(), p("div", {
1580
+ n.value ? (y(), p("div", {
1430
1581
  key: 0,
1431
1582
  ref_key: "list",
1432
1583
  ref: a,
@@ -1438,54 +1589,54 @@ const Hl = /* @__PURE__ */ V({
1438
1589
  "joy-dropdown__list--hiding": u.value
1439
1590
  }
1440
1591
  ]),
1441
- style: X(d.value)
1592
+ style: te(f.value)
1442
1593
  }, [
1443
- M(et, {
1594
+ R(lt, {
1444
1595
  "model-value": e.modelValue,
1445
1596
  options: e.options,
1446
1597
  size: e.size,
1447
1598
  width: e.width,
1448
1599
  height: e.height,
1449
- "onUpdate:modelValue": D,
1450
- "onClose:dropdownList": te
1451
- }, We({
1452
- label: E((N) => [
1453
- h(k.$slots, "dropdown-item", me(pe(N)), () => [
1454
- b("span", null, I(N.label), 1)
1600
+ "onUpdate:modelValue": M,
1601
+ "onClose:dropdownList": le
1602
+ }, Ge({
1603
+ label: B((D) => [
1604
+ h(V.$slots, "dropdown-item", me(pe(D)), () => [
1605
+ b("span", null, C(D.label), 1)
1455
1606
  ], !0)
1456
1607
  ]),
1457
1608
  _: 2
1458
1609
  }, [
1459
- k.$slots["dropdown-header"] ? {
1610
+ V.$slots["dropdown-header"] ? {
1460
1611
  name: "dropdown-list-header",
1461
- fn: E(() => [
1462
- h(k.$slots, "dropdown-header", {}, void 0, !0)
1612
+ fn: B(() => [
1613
+ h(V.$slots, "dropdown-header", {}, void 0, !0)
1463
1614
  ]),
1464
1615
  key: "0"
1465
1616
  } : void 0,
1466
- k.$slots["dropdown-items"] ? {
1617
+ V.$slots["dropdown-items"] ? {
1467
1618
  name: "dropdown-list-items",
1468
- fn: E(() => [
1469
- h(k.$slots, "dropdown-items", {}, void 0, !0)
1619
+ fn: B(() => [
1620
+ h(V.$slots, "dropdown-items", {}, void 0, !0)
1470
1621
  ]),
1471
1622
  key: "1"
1472
1623
  } : void 0,
1473
- k.$slots["dropdown-footer"] ? {
1624
+ V.$slots["dropdown-footer"] ? {
1474
1625
  name: "dropdown-list-footer",
1475
- fn: E(() => [
1476
- h(k.$slots, "dropdown-footer", {}, void 0, !0)
1626
+ fn: B(() => [
1627
+ h(V.$slots, "dropdown-footer", {}, void 0, !0)
1477
1628
  ]),
1478
1629
  key: "2"
1479
1630
  } : void 0
1480
1631
  ]), 1032, ["model-value", "options", "size", "width", "height"])
1481
- ], 6)) : _("", !0)
1632
+ ], 6)) : g("", !0)
1482
1633
  ], 8, ["to", "disabled"]))
1483
1634
  ]),
1484
1635
  _: 3
1485
1636
  }, 512));
1486
1637
  }
1487
1638
  });
1488
- const Wl = /* @__PURE__ */ x(Hl, [["__scopeId", "data-v-194e09e1"]]), Ul = ["aria-hidden"], Gl = /* @__PURE__ */ V({
1639
+ const so = /* @__PURE__ */ $(ro, [["__scopeId", "data-v-194e09e1"]]), uo = ["aria-hidden"], co = /* @__PURE__ */ k({
1489
1640
  __name: "VJoyFormError",
1490
1641
  props: {
1491
1642
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1497,24 +1648,24 @@ const Wl = /* @__PURE__ */ x(Hl, [["__scopeId", "data-v-194e09e1"]]), Ul = ["ari
1497
1648
  noHtmlErrorText: String
1498
1649
  },
1499
1650
  setup(e) {
1500
- return (t, l) => (m(), p("div", {
1651
+ return (l, t) => (y(), p("div", {
1501
1652
  "aria-hidden": e.visible,
1502
1653
  class: w(["joy-form-error", { "joy-has-error": e.visible }]),
1503
1654
  role: "alert"
1504
1655
  }, [
1505
- M(F, {
1656
+ R(q, {
1506
1657
  class: "joy-icon-error",
1507
1658
  name: "warning-triangle"
1508
1659
  }),
1509
1660
  b("div", null, [
1510
- h(t.$slots, "default", {}, () => [
1511
- C(I(e.noHtmlErrorText), 1)
1661
+ h(l.$slots, "default", {}, () => [
1662
+ L(C(e.noHtmlErrorText), 1)
1512
1663
  ], !0)
1513
1664
  ])
1514
- ], 10, Ul));
1665
+ ], 10, uo));
1515
1666
  }
1516
1667
  });
1517
- const tt = /* @__PURE__ */ x(Gl, [["__scopeId", "data-v-581fd33b"]]), Kl = [...wt], Ql = { class: "joy-highlight--text" }, Yl = { key: 0 }, Zl = /* @__PURE__ */ V({
1668
+ const ot = /* @__PURE__ */ $(co, [["__scopeId", "data-v-581fd33b"]]), fo = [...Pt], yo = { class: "joy-highlight--text" }, vo = { key: 0 }, mo = /* @__PURE__ */ k({
1518
1669
  __name: "VJoyHighlight",
1519
1670
  props: {
1520
1671
  accent: {
@@ -1532,15 +1683,15 @@ const tt = /* @__PURE__ */ x(Gl, [["__scopeId", "data-v-581fd33b"]]), Kl = [...w
1532
1683
  type: String,
1533
1684
  default: "neutral",
1534
1685
  validator(e) {
1535
- return Kl.includes(e);
1686
+ return fo.includes(e);
1536
1687
  }
1537
1688
  }
1538
1689
  },
1539
- setup(e, { expose: t }) {
1540
- const l = e, o = B(() => l.icon ? l.icon : Ml(l.level));
1541
- return t({
1690
+ setup(e, { expose: l }) {
1691
+ const t = e, o = I(() => t.icon ? t.icon : no(t.level));
1692
+ return l({
1542
1693
  getRelevantIcon: o
1543
- }), (n, r) => (m(), p("div", {
1694
+ }), (n, r) => (y(), p("div", {
1544
1695
  class: w([
1545
1696
  "joy-highlight",
1546
1697
  `joy-highlight_${e.level}`,
@@ -1550,33 +1701,33 @@ const tt = /* @__PURE__ */ x(Gl, [["__scopeId", "data-v-581fd33b"]]), Kl = [...w
1550
1701
  }
1551
1702
  ])
1552
1703
  }, [
1553
- e.displayIcon ? (m(), O(F, {
1704
+ e.displayIcon ? (y(), O(q, {
1554
1705
  key: 0,
1555
1706
  name: o.value
1556
- }, null, 8, ["name"])) : _("", !0),
1557
- b("div", Ql, [
1558
- n.$slots["highlight-title"] ? (m(), p("strong", Yl, [
1707
+ }, null, 8, ["name"])) : g("", !0),
1708
+ b("div", yo, [
1709
+ n.$slots["highlight-title"] ? (y(), p("strong", vo, [
1559
1710
  h(n.$slots, "highlight-title", {}, void 0, !0)
1560
- ])) : _("", !0),
1711
+ ])) : g("", !0),
1561
1712
  h(n.$slots, "default", {}, void 0, !0)
1562
1713
  ])
1563
1714
  ], 2));
1564
1715
  }
1565
1716
  });
1566
- const Xl = /* @__PURE__ */ x(Zl, [["__scopeId", "data-v-ba5e6101"]]), eo = ["small", "medium", "large"], to = {
1717
+ const po = /* @__PURE__ */ $(mo, [["__scopeId", "data-v-ba5e6101"]]), go = ["small", "medium", "large"], ho = {
1567
1718
  key: 0,
1568
1719
  class: "joy-label-required"
1569
- }, lo = {
1720
+ }, bo = {
1570
1721
  key: 1,
1571
1722
  class: "joy-label-optional"
1572
- }, oo = /* @__PURE__ */ V({
1723
+ }, _o = /* @__PURE__ */ k({
1573
1724
  __name: "VJoyLabel",
1574
1725
  props: {
1575
1726
  size: {
1576
1727
  type: String,
1577
1728
  default: "medium",
1578
1729
  validator(e) {
1579
- return eo.includes(e);
1730
+ return go.includes(e);
1580
1731
  }
1581
1732
  },
1582
1733
  tagName: {
@@ -1593,21 +1744,21 @@ const Xl = /* @__PURE__ */ x(Zl, [["__scopeId", "data-v-ba5e6101"]]), eo = ["sma
1593
1744
  text: String
1594
1745
  },
1595
1746
  setup(e) {
1596
- return (t, l) => (m(), O(fe(e.tagName), ee({
1747
+ return (l, t) => (y(), O(re(e.tagName), W({
1597
1748
  class: ["joy-label", `joy-label--${e.size}`]
1598
- }, t.$attrs), {
1599
- default: E(() => [
1600
- h(t.$slots, "default", {}, () => [
1601
- C(I(e.text), 1)
1749
+ }, l.$attrs), {
1750
+ default: B(() => [
1751
+ h(l.$slots, "default", {}, () => [
1752
+ L(C(e.text), 1)
1602
1753
  ], !0),
1603
- e.required ? (m(), p("span", to, "*")) : _("", !0),
1604
- e.optionalLabel ? (m(), p("span", lo, "- " + I(e.optionalLabel), 1)) : _("", !0)
1754
+ e.required ? (y(), p("span", ho, "*")) : g("", !0),
1755
+ e.optionalLabel ? (y(), p("span", bo, "- " + C(e.optionalLabel), 1)) : g("", !0)
1605
1756
  ]),
1606
1757
  _: 3
1607
1758
  }, 16, ["class"]));
1608
1759
  }
1609
1760
  });
1610
- const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["large", "medium", "small"], ao = ["id", "required", "disabled", "type", "value"], io = ["data-unit"], ro = /* @__PURE__ */ V({
1761
+ const G = /* @__PURE__ */ $(_o, [["__scopeId", "data-v-1265214a"]]), wo = ["large", "medium", "small"], So = ["id", "required", "disabled", "type", "value"], jo = ["data-unit"], ko = /* @__PURE__ */ k({
1611
1762
  inheritAttrs: !1,
1612
1763
  __name: "VJoyInput",
1613
1764
  props: {
@@ -1647,6 +1798,11 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1647
1798
  modelValue: {
1648
1799
  type: [String, Number]
1649
1800
  },
1801
+ modelModifiers: {
1802
+ default: () => ({
1803
+ lazy: !1
1804
+ })
1805
+ },
1650
1806
  /** Display a cross icon on the right that enables to clear the field */
1651
1807
  clearable: {
1652
1808
  type: Boolean,
@@ -1660,7 +1816,7 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1660
1816
  type: String,
1661
1817
  default: "medium",
1662
1818
  validator(e) {
1663
- return no.includes(e);
1819
+ return wo.includes(e);
1664
1820
  }
1665
1821
  },
1666
1822
  type: {
@@ -1671,13 +1827,13 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1671
1827
  unit: String
1672
1828
  },
1673
1829
  emits: ["update:modelValue"],
1674
- setup(e, { emit: t }) {
1675
- const l = e, o = g(), n = g(), r = Me(), s = Q(), a = g(!1), f = B(() => typeof l.modelValue == "number" || !l.clearable || l.unit || !l.modelValue ? !1 : l.modelValue.length > 0 && !l.unit), y = B(() => s.default && s.default()), u = B(() => {
1676
- var c, d;
1677
- return !!((c = n.value) != null && c.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1678
- }), v = g(l.type);
1679
- dt(() => {
1680
- v.value = l.unit ? "number" : l.type;
1830
+ setup(e, { emit: l }) {
1831
+ const t = e, o = _(), n = _(), r = He(), s = Z(), a = _(!1), d = I(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), m = I(() => s.default && s.default()), u = I(() => {
1832
+ var c, f;
1833
+ return !!((c = n.value) != null && c.closest("joy-wrapper")) || !!((f = n.value) != null && f.closest(".joy-wrapper"));
1834
+ }), v = _(t.type);
1835
+ yt(() => {
1836
+ v.value = t.unit ? "number" : t.type;
1681
1837
  });
1682
1838
  const i = {
1683
1839
  onFocus: () => {
@@ -1687,17 +1843,21 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1687
1843
  a.value = !1;
1688
1844
  },
1689
1845
  onInput: (c) => {
1690
- let d = c.target.value;
1691
- t("update:modelValue", d);
1846
+ let f = c.target.value;
1847
+ t.modelModifiers.lazy || l("update:modelValue", f);
1848
+ },
1849
+ onChange: (c) => {
1850
+ let f = c.target.value;
1851
+ t.modelModifiers.lazy && l("update:modelValue", f);
1692
1852
  },
1693
1853
  clearValue: () => {
1694
- l.disabled || t("update:modelValue", "");
1854
+ t.disabled || l("update:modelValue", "");
1695
1855
  }
1696
1856
  };
1697
- return (c, d) => (m(), p("div", {
1857
+ return (c, f) => (y(), p("div", {
1698
1858
  ref_key: "root",
1699
1859
  ref: n,
1700
- class: w([`joy-input--${l.size}`])
1860
+ class: w([`joy-input--${t.size}`])
1701
1861
  }, [
1702
1862
  b("div", {
1703
1863
  class: w([
@@ -1706,24 +1866,24 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1706
1866
  "joy-input--focusing": a.value,
1707
1867
  "joy-input--disabled": e.disabled,
1708
1868
  "joy-input--invalid": e.invalid,
1709
- "joy-input--valid": !e.invalid && !$(r).disabled
1869
+ "joy-input--valid": !e.invalid && !x(r).disabled
1710
1870
  }
1711
1871
  ])
1712
1872
  }, [
1713
- y.value || e.label ? (m(), O(W, {
1873
+ m.value || e.label ? (y(), O(G, {
1714
1874
  key: 0,
1715
1875
  for: e.name,
1716
1876
  required: e.required && e.requiredMark,
1717
1877
  "optional-label": e.optionalLabel,
1718
1878
  size: e.labelSize
1719
1879
  }, {
1720
- default: E(() => [
1880
+ default: B(() => [
1721
1881
  h(c.$slots, "default", {}, () => [
1722
- C(I(e.label), 1)
1882
+ L(C(e.label), 1)
1723
1883
  ], !0)
1724
1884
  ]),
1725
1885
  _: 3
1726
- }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
1886
+ }, 8, ["for", "required", "optional-label", "size"])) : g("", !0),
1727
1887
  b("div", {
1728
1888
  class: w([
1729
1889
  "joy-input--wrapper",
@@ -1735,8 +1895,8 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1735
1895
  }
1736
1896
  ])
1737
1897
  }, [
1738
- b("input", ee(c.$attrs, {
1739
- id: l.name,
1898
+ b("input", W(c.$attrs, {
1899
+ id: t.name,
1740
1900
  ref_key: "input",
1741
1901
  ref: o,
1742
1902
  required: e.required,
@@ -1749,14 +1909,16 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1749
1909
  ],
1750
1910
  type: v.value,
1751
1911
  value: e.modelValue,
1752
- onFocus: d[0] || (d[0] = //@ts-ignore
1912
+ onFocus: f[0] || (f[0] = //@ts-ignore
1753
1913
  (...S) => i.onFocus && i.onFocus(...S)),
1754
- onBlur: d[1] || (d[1] = //@ts-ignore
1914
+ onBlur: f[1] || (f[1] = //@ts-ignore
1755
1915
  (...S) => i.onBlur && i.onBlur(...S)),
1756
- onInput: d[2] || (d[2] = //@ts-ignore
1757
- (...S) => i.onInput && i.onInput(...S))
1758
- }), null, 16, ao),
1759
- f.value ? (m(), O(Ue, {
1916
+ onInput: f[2] || (f[2] = //@ts-ignore
1917
+ (...S) => i.onInput && i.onInput(...S)),
1918
+ onChange: f[3] || (f[3] = //@ts-ignore
1919
+ (...S) => i.onChange && i.onChange(...S))
1920
+ }), null, 16, So),
1921
+ d.value ? (y(), O(Ke, {
1760
1922
  key: 0,
1761
1923
  class: "joy-input--clear",
1762
1924
  circle: "",
@@ -1764,24 +1926,24 @@ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["larg
1764
1926
  size: "xxsmall",
1765
1927
  icon: "cross",
1766
1928
  onClick: i.clearValue
1767
- }, null, 8, ["onClick"])) : _("", !0),
1768
- e.icon ? (m(), O(F, {
1929
+ }, null, 8, ["onClick"])) : g("", !0),
1930
+ e.icon ? (y(), O(q, {
1769
1931
  key: 1,
1770
1932
  role: "img",
1771
1933
  class: "joy-input--decorative-icon",
1772
1934
  name: e.icon
1773
- }, null, 8, ["name"])) : _("", !0),
1774
- e.unit ? (m(), p("div", {
1935
+ }, null, 8, ["name"])) : g("", !0),
1936
+ e.unit ? (y(), p("div", {
1775
1937
  key: 2,
1776
1938
  "data-unit": e.unit,
1777
1939
  class: "joy-input--unit"
1778
- }, null, 8, io)) : _("", !0)
1940
+ }, null, 8, jo)) : g("", !0)
1779
1941
  ], 2)
1780
1942
  ], 2)
1781
1943
  ], 2));
1782
1944
  }
1783
1945
  });
1784
- const so = /* @__PURE__ */ x(ro, [["__scopeId", "data-v-ba3aad9d"]]), uo = ["teal", "white"], co = ["href"], fo = /* @__PURE__ */ V({
1946
+ const $o = /* @__PURE__ */ $(ko, [["__scopeId", "data-v-a49577c6"]]), Vo = ["teal", "white"], xo = ["href"], Io = /* @__PURE__ */ k({
1785
1947
  __name: "VJoyLink",
1786
1948
  props: {
1787
1949
  href: {
@@ -1792,37 +1954,37 @@ const so = /* @__PURE__ */ x(ro, [["__scopeId", "data-v-ba3aad9d"]]), uo = ["tea
1792
1954
  type: String,
1793
1955
  default: "teal",
1794
1956
  validator(e) {
1795
- return uo.includes(e);
1957
+ return Vo.includes(e);
1796
1958
  }
1797
1959
  },
1798
1960
  icon: String,
1799
1961
  text: String
1800
1962
  },
1801
1963
  setup(e) {
1802
- return (t, l) => (m(), p("a", ee({ href: e.href }, t.$attrs, {
1964
+ return (l, t) => (y(), p("a", W({ href: e.href }, l.$attrs, {
1803
1965
  class: ["joy-link", `joy-link_${e.color}`]
1804
1966
  }), [
1805
- e.icon ? (m(), O(F, {
1967
+ e.icon ? (y(), O(q, {
1806
1968
  key: 0,
1807
1969
  name: e.icon
1808
- }, null, 8, ["name"])) : _("", !0),
1809
- h(t.$slots, "default", {}, () => [
1810
- C(I(e.text), 1)
1970
+ }, null, 8, ["name"])) : g("", !0),
1971
+ h(l.$slots, "default", {}, () => [
1972
+ L(C(e.text), 1)
1811
1973
  ], !0)
1812
- ], 16, co));
1974
+ ], 16, xo));
1813
1975
  }
1814
1976
  });
1815
- const yo = /* @__PURE__ */ x(fo, [["__scopeId", "data-v-76f0342e"]]), vo = ["id"], mo = {
1977
+ const Oo = /* @__PURE__ */ $(Io, [["__scopeId", "data-v-76f0342e"]]), Co = ["id"], Bo = {
1816
1978
  class: /* @__PURE__ */ w(["joy-multi-checkbox"])
1817
- }, po = /* @__PURE__ */ V({
1979
+ }, Lo = /* @__PURE__ */ k({
1818
1980
  __name: "VJoyMultiCheckbox",
1819
1981
  props: {
1820
1982
  options: {
1821
1983
  type: Array,
1822
1984
  required: !0,
1823
1985
  validator(e) {
1824
- const t = e.every((o) => Object.keys(o).includes("value")), l = e.every((o) => Object.keys(o).includes("label"));
1825
- return t && l;
1986
+ const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
1987
+ return l && t;
1826
1988
  }
1827
1989
  },
1828
1990
  id: String,
@@ -1848,64 +2010,64 @@ const yo = /* @__PURE__ */ x(fo, [["__scopeId", "data-v-76f0342e"]]), vo = ["id"
1848
2010
  }
1849
2011
  },
1850
2012
  emits: ["update:value"],
1851
- setup(e, { emit: t }) {
1852
- const l = e;
2013
+ setup(e, { emit: l }) {
2014
+ const t = e;
1853
2015
  function o(r) {
1854
- return l.value.includes(r.value);
2016
+ return t.value.includes(r.value);
1855
2017
  }
1856
2018
  function n(r, s) {
1857
- let a = [...l.value || []];
1858
- s ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
2019
+ let a = [...t.value || []];
2020
+ s ? a.push(r) : a.splice(a.indexOf(r), 1), l("update:value", a);
1859
2021
  }
1860
- return (r, s) => (m(), p("fieldset", {
2022
+ return (r, s) => (y(), p("fieldset", {
1861
2023
  id: e.id,
1862
2024
  class: "joy-multi-checkbox__wrapper"
1863
2025
  }, [
1864
- e.label ? (m(), O($(W), {
2026
+ e.label ? (y(), O(x(G), {
1865
2027
  key: 0,
1866
2028
  "tag-name": "legend",
1867
2029
  required: e.required && e.requiredMark,
1868
2030
  "optional-label": e.optionalLabel,
1869
2031
  size: e.labelSize
1870
2032
  }, {
1871
- default: E(() => [
1872
- C(I(e.label), 1)
2033
+ default: B(() => [
2034
+ L(C(e.label), 1)
1873
2035
  ]),
1874
2036
  _: 1
1875
- }, 8, ["required", "optional-label", "size"])) : _("", !0),
1876
- b("div", mo, [
1877
- (m(!0), p(ye, null, ve(e.options, (a) => (m(), O($(ge), {
2037
+ }, 8, ["required", "optional-label", "size"])) : g("", !0),
2038
+ b("div", Bo, [
2039
+ (y(!0), p(H, null, se(e.options, (a) => (y(), O(x(he), {
1878
2040
  id: a.id,
1879
2041
  key: a.id,
1880
2042
  name: a.name,
1881
2043
  value: a.value,
1882
2044
  checked: o(a),
1883
- "onUpdate:checked": (f) => n(a.value, f)
2045
+ "onUpdate:checked": (d) => n(a.value, d)
1884
2046
  }, {
1885
- default: E(() => [
2047
+ default: B(() => [
1886
2048
  h(r.$slots, "checkbox", me(pe(a)), () => [
1887
- C(I(a.label), 1)
2049
+ L(C(a.label), 1)
1888
2050
  ], !0)
1889
2051
  ]),
1890
2052
  _: 2
1891
2053
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1892
2054
  ])
1893
- ], 8, vo));
2055
+ ], 8, Co));
1894
2056
  }
1895
2057
  });
1896
- const ho = /* @__PURE__ */ x(po, [["__scopeId", "data-v-47574ced"]]), go = ["small", "medium", "large"], bo = ["small", "large"], _o = {
2058
+ const Eo = /* @__PURE__ */ $(Lo, [["__scopeId", "data-v-47574ced"]]), Jo = ["small", "medium", "large"], zo = ["small", "large"], To = {
1897
2059
  key: 0,
1898
2060
  class: /* @__PURE__ */ w(["joy-panel__header"])
1899
- }, wo = {
2061
+ }, Po = {
1900
2062
  key: 1,
1901
2063
  class: "joy-panel__header-action"
1902
- }, So = {
2064
+ }, qo = {
1903
2065
  key: 2,
1904
2066
  class: "joy-panel__header-subtitle"
1905
- }, jo = { class: "joy-panel__body" }, ko = {
2067
+ }, Ao = { class: "joy-panel__body" }, Fo = {
1906
2068
  key: 1,
1907
2069
  class: "joy-panel__footer"
1908
- }, $o = /* @__PURE__ */ V({
2070
+ }, Mo = /* @__PURE__ */ k({
1909
2071
  __name: "VJoyPanel",
1910
2072
  props: {
1911
2073
  flex: {
@@ -1919,14 +2081,14 @@ const ho = /* @__PURE__ */ x(po, [["__scopeId", "data-v-47574ced"]]), go = ["sma
1919
2081
  type: String,
1920
2082
  default: "medium",
1921
2083
  validator(e) {
1922
- return go.includes(e);
2084
+ return Jo.includes(e);
1923
2085
  }
1924
2086
  },
1925
2087
  titleSize: {
1926
2088
  type: String,
1927
2089
  default: "large",
1928
2090
  validator(e) {
1929
- return bo.includes(e);
2091
+ return zo.includes(e);
1930
2092
  }
1931
2093
  },
1932
2094
  loading: {
@@ -1939,74 +2101,74 @@ const ho = /* @__PURE__ */ x(po, [["__scopeId", "data-v-47574ced"]]), go = ["sma
1939
2101
  }
1940
2102
  },
1941
2103
  setup(e) {
1942
- const t = ct("VJoyWrapperContext", {}), l = B(() => Object.keys(t).length > 0), o = Q(), n = g(), r = B(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1943
- return (s, a) => (m(), p("section", {
2104
+ const l = vt("VJoyWrapperContext", {}), t = I(() => Object.keys(l).length > 0), o = Z(), n = _(), r = I(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
2105
+ return (s, a) => (y(), p("section", {
1944
2106
  ref_key: "panel",
1945
2107
  ref: n,
1946
- style: X({ flex: e.flex }),
2108
+ style: te({ flex: e.flex }),
1947
2109
  class: w([
1948
2110
  "joy-panel",
1949
2111
  `joy-panel--${e.padding}`,
1950
2112
  {
1951
- "joy-panel--no-margin": e.noMargin || l.value,
2113
+ "joy-panel--no-margin": e.noMargin || t.value,
1952
2114
  "joy-panel--loading": e.loading
1953
2115
  }
1954
2116
  ])
1955
2117
  }, [
1956
- r.value ? (m(), p("header", _o, [
1957
- $(o)["panel-title"] ? (m(), p("div", {
2118
+ r.value ? (y(), p("header", To, [
2119
+ x(o)["panel-title"] ? (y(), p("div", {
1958
2120
  key: 0,
1959
2121
  class: w(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1960
2122
  }, [
1961
2123
  h(s.$slots, "panel-title", {}, void 0, !0)
1962
- ], 2)) : _("", !0),
1963
- $(o)["panel-title-action"] ? (m(), p("div", wo, [
2124
+ ], 2)) : g("", !0),
2125
+ x(o)["panel-title-action"] ? (y(), p("div", Po, [
1964
2126
  h(s.$slots, "panel-title-action", {}, void 0, !0)
1965
- ])) : _("", !0),
1966
- $(o)["panel-subtitle"] ? (m(), p("div", So, [
2127
+ ])) : g("", !0),
2128
+ x(o)["panel-subtitle"] ? (y(), p("div", qo, [
1967
2129
  h(s.$slots, "panel-subtitle", {}, void 0, !0)
1968
- ])) : _("", !0)
1969
- ])) : _("", !0),
1970
- b("div", jo, [
2130
+ ])) : g("", !0)
2131
+ ])) : g("", !0),
2132
+ b("div", Ao, [
1971
2133
  h(s.$slots, "panel-body", {}, void 0, !0)
1972
2134
  ]),
1973
- $(o)["panel-action"] ? (m(), p("footer", ko, [
2135
+ x(o)["panel-action"] ? (y(), p("footer", Fo, [
1974
2136
  h(s.$slots, "panel-action", {}, void 0, !0)
1975
- ])) : _("", !0),
1976
- e.loading ? (m(), O($(_e), {
2137
+ ])) : g("", !0),
2138
+ e.loading ? (y(), O(x(_e), {
1977
2139
  key: 2,
1978
2140
  overlay: "",
1979
2141
  color: e.loadingColor
1980
2142
  }, {
1981
- content: E(() => [
2143
+ content: B(() => [
1982
2144
  h(s.$slots, "panel-loader-content", {}, void 0, !0)
1983
2145
  ]),
1984
2146
  _: 3
1985
- }, 8, ["color"])) : _("", !0)
2147
+ }, 8, ["color"])) : g("", !0)
1986
2148
  ], 6));
1987
2149
  }
1988
2150
  });
1989
- const Vo = /* @__PURE__ */ x($o, [["__scopeId", "data-v-2e3a2baa"]]), xo = { class: "joy-panel-section" }, Oo = {
2151
+ const No = /* @__PURE__ */ $(Mo, [["__scopeId", "data-v-2e3a2baa"]]), Ro = { class: "joy-panel-section" }, Do = {
1990
2152
  key: 0,
1991
2153
  class: "joy-panel-section__title"
1992
- }, Io = {
2154
+ }, Ho = {
1993
2155
  key: 1,
1994
2156
  class: "joy-panel-section__content"
1995
- }, Bo = /* @__PURE__ */ V({
2157
+ }, Wo = /* @__PURE__ */ k({
1996
2158
  __name: "VJoyPanelSection",
1997
2159
  setup(e) {
1998
- const t = Q();
1999
- return (l, o) => (m(), p("div", xo, [
2000
- $(t)["panel-section-title"] ? (m(), p("div", Oo, [
2001
- h(l.$slots, "panel-section-title", {}, void 0, !0)
2002
- ])) : _("", !0),
2003
- $(t)["panel-section-content"] ? (m(), p("div", Io, [
2004
- h(l.$slots, "panel-section-content", {}, void 0, !0)
2005
- ])) : _("", !0)
2160
+ const l = Z();
2161
+ return (t, o) => (y(), p("div", Ro, [
2162
+ x(l)["panel-section-title"] ? (y(), p("div", Do, [
2163
+ h(t.$slots, "panel-section-title", {}, void 0, !0)
2164
+ ])) : g("", !0),
2165
+ x(l)["panel-section-content"] ? (y(), p("div", Ho, [
2166
+ h(t.$slots, "panel-section-content", {}, void 0, !0)
2167
+ ])) : g("", !0)
2006
2168
  ]));
2007
2169
  }
2008
2170
  });
2009
- const Eo = /* @__PURE__ */ x(Bo, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id", "value", "checked", "disabled", "required", "name"], Co = { class: "joy-radio-label" }, Jo = { class: "joy-radio-content__wrapper" }, Po = { class: "joy-radio-content" }, To = /* @__PURE__ */ V({
2171
+ const Uo = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-d88510ab"]]), Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = { class: "joy-radio-label" }, Qo = { class: "joy-radio-content__wrapper" }, Yo = { class: "joy-radio-content" }, Zo = /* @__PURE__ */ k({
2010
2172
  __name: "VJoyRadio",
2011
2173
  props: {
2012
2174
  disabled: {
@@ -2041,15 +2203,15 @@ const Eo = /* @__PURE__ */ x(Bo, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
2041
2203
  }
2042
2204
  },
2043
2205
  emits: ["update:modelValue"],
2044
- setup(e, { expose: t, emit: l }) {
2045
- const o = e, n = g(!1), r = g(!1), s = g(null), a = g(null), f = Q(), y = B(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
2206
+ setup(e, { expose: l, emit: t }) {
2207
+ const o = e, n = _(!1), r = _(!1), s = _(null), a = _(null), d = Z(), m = I(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
2046
2208
  function u() {
2047
- n.value = !!f["expandable-content"] && y.value;
2209
+ n.value = !!d["expandable-content"] && m.value;
2048
2210
  }
2049
2211
  function v() {
2050
- l("update:modelValue", o.value), u();
2212
+ t("update:modelValue", o.value), u();
2051
2213
  }
2052
- K(() => {
2214
+ Y(() => {
2053
2215
  o.theme === "outline" && u();
2054
2216
  });
2055
2217
  function i() {
@@ -2058,22 +2220,22 @@ const Eo = /* @__PURE__ */ x(Bo, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
2058
2220
  function c() {
2059
2221
  r.value = !1;
2060
2222
  }
2061
- return L(
2223
+ return E(
2062
2224
  () => o.modelValue,
2063
2225
  () => {
2064
2226
  u();
2065
2227
  }
2066
- ), t({
2067
- checked: y,
2228
+ ), l({
2229
+ checked: m,
2068
2230
  isExpanded: n
2069
- }), (d, S) => (m(), p("label", {
2231
+ }), (f, S) => (y(), p("label", {
2070
2232
  ref_key: "root",
2071
2233
  ref: s,
2072
2234
  class: w([
2073
2235
  "joy-radio",
2074
2236
  `joy-radio--${e.theme}`,
2075
2237
  {
2076
- "joy-radio--checked": y.value,
2238
+ "joy-radio--checked": m.value,
2077
2239
  "joy-radio--disabled": e.disabled,
2078
2240
  "joy-radio--invalid": e.invalid,
2079
2241
  "joy-radio--outline-focus": r.value && e.theme === "outline",
@@ -2085,33 +2247,33 @@ const Eo = /* @__PURE__ */ x(Bo, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
2085
2247
  id: e.id,
2086
2248
  type: "radio",
2087
2249
  value: e.value,
2088
- checked: y.value,
2250
+ checked: m.value,
2089
2251
  disabled: e.disabled,
2090
2252
  required: e.required,
2091
2253
  name: e.name,
2092
2254
  onChange: v,
2093
2255
  onFocus: i,
2094
2256
  onBlur: c
2095
- }, null, 40, Lo),
2096
- b("span", Co, [
2097
- h(d.$slots, "default", {}, void 0, !0)
2257
+ }, null, 40, Go),
2258
+ b("span", Ko, [
2259
+ h(f.$slots, "default", {}, void 0, !0)
2098
2260
  ]),
2099
- b("div", Jo, [
2100
- b("div", Po, [
2101
- h(d.$slots, "radio-content", {}, void 0, !0)
2261
+ b("div", Qo, [
2262
+ b("div", Yo, [
2263
+ h(f.$slots, "radio-content", {}, void 0, !0)
2102
2264
  ]),
2103
2265
  b("div", {
2104
2266
  ref_key: "expandableElement",
2105
2267
  ref: a,
2106
2268
  class: w(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
2107
2269
  }, [
2108
- h(d.$slots, "expandable-content", {}, void 0, !0)
2270
+ h(f.$slots, "expandable-content", {}, void 0, !0)
2109
2271
  ], 2)
2110
2272
  ])
2111
2273
  ], 2));
2112
2274
  }
2113
2275
  });
2114
- const qo = /* @__PURE__ */ x(To, [["__scopeId", "data-v-24cea99b"]]), zo = ["form", "name"], Ao = /* @__PURE__ */ V({
2276
+ const Xo = /* @__PURE__ */ $(Zo, [["__scopeId", "data-v-24cea99b"]]), ea = ["form", "name"], ta = /* @__PURE__ */ k({
2115
2277
  __name: "VJoyRadioGroup",
2116
2278
  props: {
2117
2279
  /**
@@ -2132,26 +2294,26 @@ const qo = /* @__PURE__ */ x(To, [["__scopeId", "data-v-24cea99b"]]), zo = ["for
2132
2294
  }
2133
2295
  },
2134
2296
  setup(e) {
2135
- return (t, l) => (m(), p("fieldset", {
2297
+ return (l, t) => (y(), p("fieldset", {
2136
2298
  ref: "root",
2137
2299
  class: "joy-radio-group-fieldset",
2138
2300
  role: "radiogroup",
2139
2301
  form: e.form,
2140
2302
  name: e.name
2141
2303
  }, [
2142
- h(t.$slots, "radio-group-legend", {}, void 0, !0),
2304
+ h(l.$slots, "radio-group-legend", {}, void 0, !0),
2143
2305
  b("div", {
2144
2306
  class: w(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2145
2307
  }, [
2146
- h(t.$slots, "default", {}, void 0, !0)
2308
+ h(l.$slots, "default", {}, void 0, !0)
2147
2309
  ], 2)
2148
- ], 8, zo));
2310
+ ], 8, ea));
2149
2311
  }
2150
2312
  });
2151
- const Fo = /* @__PURE__ */ x(Ao, [["__scopeId", "data-v-a77e7f95"]]), Do = { class: "joy-screen-loader__content" }, Ro = {
2313
+ const la = /* @__PURE__ */ $(ta, [["__scopeId", "data-v-a77e7f95"]]), oa = { class: "joy-screen-loader__content" }, aa = {
2152
2314
  key: 0,
2153
2315
  class: "joy-screen-loader__content"
2154
- }, Mo = /* @__PURE__ */ V({
2316
+ }, na = /* @__PURE__ */ k({
2155
2317
  __name: "VJoyScreenLoader",
2156
2318
  props: {
2157
2319
  /** Light or dark. Changes the spinner and background color */
@@ -2166,23 +2328,23 @@ const Fo = /* @__PURE__ */ x(Ao, [["__scopeId", "data-v-a77e7f95"]]), Do = { cla
2166
2328
  }
2167
2329
  },
2168
2330
  setup(e) {
2169
- return (t, l) => (m(), p("div", {
2331
+ return (l, t) => (y(), p("div", {
2170
2332
  class: w(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2171
2333
  }, [
2172
- b("div", Do, [
2173
- h(t.$slots, "spinner", {}, () => [
2174
- M(he, {
2334
+ b("div", oa, [
2335
+ h(l.$slots, "spinner", {}, () => [
2336
+ R(ge, {
2175
2337
  color: e.color === "dark" ? "white" : "teal"
2176
2338
  }, null, 8, ["color"])
2177
2339
  ], !0),
2178
- t.$slots.content ? (m(), p("div", Ro, [
2179
- h(t.$slots, "content", {}, void 0, !0)
2180
- ])) : _("", !0)
2340
+ l.$slots.content ? (y(), p("div", aa, [
2341
+ h(l.$slots, "content", {}, void 0, !0)
2342
+ ])) : g("", !0)
2181
2343
  ])
2182
2344
  ], 2));
2183
2345
  }
2184
2346
  });
2185
- const _e = /* @__PURE__ */ x(Mo, [["__scopeId", "data-v-5c4f6d7f"]]), No = ["id", "name", "aria-invalid", "required", "disabled", "value"], Ho = /* @__PURE__ */ V({
2347
+ const _e = /* @__PURE__ */ $(na, [["__scopeId", "data-v-5c4f6d7f"]]), ia = ["id", "name", "aria-invalid", "required", "disabled", "value"], ra = /* @__PURE__ */ k({
2186
2348
  __name: "VJoySelect",
2187
2349
  props: {
2188
2350
  disabled: {
@@ -2215,8 +2377,7 @@ const _e = /* @__PURE__ */ x(Mo, [["__scopeId", "data-v-5c4f6d7f"]]), No = ["id"
2215
2377
  },
2216
2378
  // ...LABEL_BASED_PROPS,
2217
2379
  modelValue: {
2218
- type: String,
2219
- default: ""
2380
+ type: [String, Number]
2220
2381
  },
2221
2382
  size: {
2222
2383
  type: String,
@@ -2225,50 +2386,50 @@ const _e = /* @__PURE__ */ x(Mo, [["__scopeId", "data-v-5c4f6d7f"]]), No = ["id"
2225
2386
  // ...TEXT_BASED_PROPS,
2226
2387
  },
2227
2388
  emits: ["update:modelValue"],
2228
- setup(e, { emit: t }) {
2229
- const l = e, o = g(), n = g(), r = Q(), s = g(!1), a = B(() => l.labelSize ? l.labelSize : l.size !== "medium" ? "small" : "medium");
2230
- K(() => {
2389
+ setup(e, { emit: l }) {
2390
+ const t = e, o = _(), n = _(), r = Z(), s = _(!1), a = I(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
2391
+ Y(() => {
2231
2392
  var c;
2232
2393
  const v = r.label && r.label();
2233
2394
  if (!v || !v.length)
2234
2395
  return;
2235
2396
  const i = v[0];
2236
2397
  if (i.type === "JoyLabel") {
2237
- const d = (c = i.props) == null ? void 0 : c.for;
2238
- if (!d) {
2398
+ const f = (c = i.props) == null ? void 0 : c.for;
2399
+ if (!f) {
2239
2400
  console.warn("JoyLabel for attribute is missing");
2240
2401
  return;
2241
2402
  }
2242
- d !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2403
+ f !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2243
2404
  }
2244
2405
  });
2245
- function f(v) {
2406
+ function d(v) {
2246
2407
  const i = v.target.value;
2247
- t("update:modelValue", i);
2408
+ l("update:modelValue", i);
2248
2409
  }
2249
- function y() {
2410
+ function m() {
2250
2411
  s.value = !0;
2251
2412
  }
2252
2413
  function u() {
2253
2414
  s.value = !1;
2254
2415
  }
2255
- return (v, i) => (m(), p("div", {
2416
+ return (v, i) => (y(), p("div", {
2256
2417
  ref_key: "root",
2257
2418
  ref: o
2258
2419
  }, [
2259
2420
  h(v.$slots, "select-label", {}, () => [
2260
- e.label ? (m(), O(W, {
2421
+ e.label ? (y(), O(G, {
2261
2422
  key: 0,
2262
2423
  required: e.required && e.requiredMark,
2263
2424
  "optional-label": e.optionalLabel,
2264
2425
  for: e.id || e.name,
2265
2426
  size: a.value
2266
2427
  }, {
2267
- default: E(() => [
2268
- C(I(e.label), 1)
2428
+ default: B(() => [
2429
+ L(C(e.label), 1)
2269
2430
  ]),
2270
2431
  _: 1
2271
- }, 8, ["required", "optional-label", "for", "size"])) : _("", !0)
2432
+ }, 8, ["required", "optional-label", "for", "size"])) : g("", !0)
2272
2433
  ], !0),
2273
2434
  b("div", {
2274
2435
  class: w([
@@ -2291,13 +2452,13 @@ const _e = /* @__PURE__ */ x(Mo, [["__scopeId", "data-v-5c4f6d7f"]]), No = ["id"
2291
2452
  required: e.required,
2292
2453
  disabled: e.disabled,
2293
2454
  value: e.modelValue,
2294
- onInput: f,
2295
- onFocus: y,
2455
+ onInput: d,
2456
+ onFocus: m,
2296
2457
  onBlur: u
2297
2458
  }, [
2298
2459
  h(v.$slots, "default", {}, void 0, !0)
2299
- ], 40, No),
2300
- M(F, {
2460
+ ], 40, ia),
2461
+ R(q, {
2301
2462
  class: "joy-select__chevron",
2302
2463
  name: "chevron-down"
2303
2464
  })
@@ -2305,7 +2466,7 @@ const _e = /* @__PURE__ */ x(Mo, [["__scopeId", "data-v-5c4f6d7f"]]), No = ["id"
2305
2466
  ], 512));
2306
2467
  }
2307
2468
  });
2308
- const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["aria-disabled"], Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = /* @__PURE__ */ V({
2469
+ const sa = /* @__PURE__ */ $(ra, [["__scopeId", "data-v-b8f98cc8"]]), ua = ["aria-disabled"], da = ["id", "value", "checked", "disabled", "required", "name"], ca = /* @__PURE__ */ k({
2309
2470
  __name: "VJoySelectableItem",
2310
2471
  props: {
2311
2472
  disabled: {
@@ -2341,16 +2502,16 @@ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["ari
2341
2502
  }
2342
2503
  },
2343
2504
  emits: ["update:checked"],
2344
- setup(e, { emit: t }) {
2345
- const l = e, o = g(l.checked), n = g(), r = g(!1), s = l.multiple ? "div" : "label", a = {
2505
+ setup(e, { emit: l }) {
2506
+ const t = e, o = _(t.checked), n = _(), r = _(!1), s = t.multiple ? "div" : "label", a = {
2346
2507
  onRadioChange: () => {
2347
- t("update:checked", l.value);
2508
+ l("update:checked", t.value);
2348
2509
  },
2349
2510
  onClick: () => {
2350
- l.checked && !l.multiple && t("update:checked", "");
2511
+ t.checked && !t.multiple && l("update:checked", "");
2351
2512
  },
2352
- onLabelClick: (y) => {
2353
- l.multiple || y.stopPropagation();
2513
+ onLabelClick: (m) => {
2514
+ t.multiple || m.stopPropagation();
2354
2515
  },
2355
2516
  onFocus: () => {
2356
2517
  r.value = !0;
@@ -2359,10 +2520,10 @@ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["ari
2359
2520
  r.value = !1;
2360
2521
  }
2361
2522
  };
2362
- function f(y) {
2363
- t("update:checked", y);
2523
+ function d(m) {
2524
+ l("update:checked", m);
2364
2525
  }
2365
- return (y, u) => (m(), p("div", {
2526
+ return (m, u) => (y(), p("div", {
2366
2527
  class: w([
2367
2528
  "joy-selectable-item__wrapper",
2368
2529
  {
@@ -2373,7 +2534,7 @@ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["ari
2373
2534
  onClick: u[4] || (u[4] = //@ts-ignore
2374
2535
  (...v) => a.onClick && a.onClick(...v))
2375
2536
  }, [
2376
- e.multiple ? _("", !0) : (m(), p("input", {
2537
+ e.multiple ? g("", !0) : (y(), p("input", {
2377
2538
  key: 0,
2378
2539
  id: e.id,
2379
2540
  ref_key: "inputRadio",
@@ -2390,8 +2551,8 @@ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["ari
2390
2551
  (...v) => a.onFocus && a.onFocus(...v)),
2391
2552
  onBlur: u[2] || (u[2] = //@ts-ignore
2392
2553
  (...v) => a.onBlur && a.onBlur(...v))
2393
- }, null, 40, Go)),
2394
- (m(), O(fe($(s)), {
2554
+ }, null, 40, da)),
2555
+ (y(), O(re(x(s)), {
2395
2556
  for: e.id,
2396
2557
  class: w([
2397
2558
  "joy-selectable-item",
@@ -2404,14 +2565,14 @@ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["ari
2404
2565
  ]),
2405
2566
  onClick: a.onLabelClick
2406
2567
  }, {
2407
- default: E(() => [
2408
- e.multiple ? (m(), O($(ge), {
2568
+ default: B(() => [
2569
+ e.multiple ? (y(), O(x(he), {
2409
2570
  key: 0,
2410
2571
  id: e.id,
2411
2572
  checked: o.value,
2412
2573
  "onUpdate:checked": [
2413
2574
  u[3] || (u[3] = (v) => o.value = v),
2414
- f
2575
+ d
2415
2576
  ],
2416
2577
  disabled: e.disabled,
2417
2578
  value: e.value,
@@ -2421,32 +2582,32 @@ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["ari
2421
2582
  onFocus: a.onFocus,
2422
2583
  onBlur: a.onBlur
2423
2584
  }, {
2424
- default: E(() => [
2425
- h(y.$slots, "default", {}, void 0, !0)
2585
+ default: B(() => [
2586
+ h(m.$slots, "default", {}, void 0, !0)
2426
2587
  ]),
2427
2588
  _: 3
2428
- }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : _("", !0),
2429
- e.multiple ? _("", !0) : h(y.$slots, "default", { key: 1 }, void 0, !0),
2589
+ }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : g("", !0),
2590
+ e.multiple ? g("", !0) : h(m.$slots, "default", { key: 1 }, void 0, !0),
2430
2591
  b("div", {
2431
- class: w([{ "joy-selectable-item__sublabel": y.$slots["selectable-item-sublabel"] }])
2592
+ class: w([{ "joy-selectable-item__sublabel": m.$slots["selectable-item-sublabel"] }])
2432
2593
  }, [
2433
- h(y.$slots, "selectable-item-sublabel", {}, void 0, !0)
2594
+ h(m.$slots, "selectable-item-sublabel", {}, void 0, !0)
2434
2595
  ], 2)
2435
2596
  ]),
2436
2597
  _: 3
2437
2598
  }, 8, ["for", "class", "onClick"]))
2438
- ], 10, Uo));
2599
+ ], 10, ua));
2439
2600
  }
2440
2601
  });
2441
- const lt = /* @__PURE__ */ x(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"], Yo = /* @__PURE__ */ V({
2602
+ const at = /* @__PURE__ */ $(ca, [["__scopeId", "data-v-cb2531c0"]]), fa = ["id"], ya = /* @__PURE__ */ k({
2442
2603
  __name: "VJoySelectableItemGroup",
2443
2604
  props: {
2444
2605
  options: {
2445
2606
  type: Array,
2446
2607
  required: !0,
2447
2608
  validator(e) {
2448
- const t = e.every((o) => Object.keys(o).includes("value")), l = e.every((o) => Object.keys(o).includes("label"));
2449
- return t && l;
2609
+ const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
2610
+ return l && t;
2450
2611
  }
2451
2612
  },
2452
2613
  id: String,
@@ -2478,33 +2639,33 @@ const lt = /* @__PURE__ */ x(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"
2478
2639
  }
2479
2640
  },
2480
2641
  emits: ["update:value"],
2481
- setup(e, { emit: t }) {
2482
- const l = e;
2642
+ setup(e, { emit: l }) {
2643
+ const t = e;
2483
2644
  function o(r) {
2484
- return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
2645
+ return typeof t.value == "string" ? t.value === r.value : (t.value || []).includes(r.value);
2485
2646
  }
2486
2647
  function n(r, s) {
2487
- if (!l.multiple)
2488
- return t("update:value", s);
2489
- let a = [...l.value || []];
2490
- s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
2648
+ if (!t.multiple)
2649
+ return l("update:value", s);
2650
+ let a = [...t.value || []];
2651
+ s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), l("update:value", a);
2491
2652
  }
2492
- return (r, s) => (m(), p("fieldset", {
2653
+ return (r, s) => (y(), p("fieldset", {
2493
2654
  id: e.id,
2494
2655
  class: "joy-selectable-item-group__wrapper"
2495
2656
  }, [
2496
- e.label ? (m(), O($(W), {
2657
+ e.label ? (y(), O(x(G), {
2497
2658
  key: 0,
2498
2659
  "tag-name": "legend",
2499
2660
  required: e.required && e.requiredMark,
2500
2661
  "optional-label": e.optionalLabel,
2501
2662
  size: e.labelSize
2502
2663
  }, {
2503
- default: E(() => [
2504
- C(I(e.label), 1)
2664
+ default: B(() => [
2665
+ L(C(e.label), 1)
2505
2666
  ]),
2506
2667
  _: 1
2507
- }, 8, ["required", "optional-label", "size"])) : _("", !0),
2668
+ }, 8, ["required", "optional-label", "size"])) : g("", !0),
2508
2669
  b("div", {
2509
2670
  class: w([
2510
2671
  "joy-selectable-item-group",
@@ -2515,7 +2676,7 @@ const lt = /* @__PURE__ */ x(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"
2515
2676
  }
2516
2677
  ])
2517
2678
  }, [
2518
- (m(!0), p(ye, null, ve(e.options, (a) => (m(), O($(lt), {
2679
+ (y(!0), p(H, null, se(e.options, (a) => (y(), O(x(at), {
2519
2680
  id: a.id,
2520
2681
  key: a.id,
2521
2682
  name: a.name,
@@ -2523,26 +2684,26 @@ const lt = /* @__PURE__ */ x(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"
2523
2684
  value: a.value,
2524
2685
  multiple: e.multiple,
2525
2686
  checked: o(a),
2526
- "onUpdate:checked": (f) => n(a.value, f)
2527
- }, We({
2528
- default: E(() => [
2529
- C(I(a.label) + " ", 1)
2687
+ "onUpdate:checked": (d) => n(a.value, d)
2688
+ }, Ge({
2689
+ default: B(() => [
2690
+ L(C(a.label) + " ", 1)
2530
2691
  ]),
2531
2692
  _: 2
2532
2693
  }, [
2533
2694
  a.subLabel ? {
2534
2695
  name: "selectable-item-sublabel",
2535
- fn: E(() => [
2536
- C(I(a.subLabel), 1)
2696
+ fn: B(() => [
2697
+ L(C(a.subLabel), 1)
2537
2698
  ]),
2538
2699
  key: "0"
2539
2700
  } : void 0
2540
2701
  ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2541
2702
  ], 2)
2542
- ], 8, Qo));
2703
+ ], 8, fa));
2543
2704
  }
2544
2705
  });
2545
- const Zo = /* @__PURE__ */ x(Yo, [["__scopeId", "data-v-0730aed0"]]), Xo = /* @__PURE__ */ V({
2706
+ const va = /* @__PURE__ */ $(ya, [["__scopeId", "data-v-0730aed0"]]), ma = /* @__PURE__ */ k({
2546
2707
  __name: "VJoyWrapper",
2547
2708
  props: {
2548
2709
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2573,46 +2734,185 @@ const Zo = /* @__PURE__ */ x(Yo, [["__scopeId", "data-v-0730aed0"]]), Xo = /* @_
2573
2734
  noMargin: {
2574
2735
  type: Boolean,
2575
2736
  default: !1
2737
+ },
2738
+ /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
2739
+ columnGap: {
2740
+ type: String,
2741
+ default: "4"
2742
+ },
2743
+ /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
2744
+ rowGap: {
2745
+ type: String,
2746
+ default: "8"
2576
2747
  }
2577
2748
  },
2578
2749
  setup(e) {
2579
- return ft("VJoyWrapperContext", e), (l, o) => (m(), p("div", {
2750
+ return mt("VJoyWrapperContext", e), (t, o) => (y(), p("div", {
2580
2751
  class: w([
2581
2752
  "joy-wrapper",
2582
2753
  `joy-wrapper--justify-${e.justify}`,
2583
2754
  `joy-wrapper--align-${e.align}`,
2584
2755
  `joy-wrapper--direction-${e.direction}`,
2585
2756
  `joy-wrapper--wrap-${e.wrap}`,
2757
+ `joy-wrapper--row-gap-${e.rowGap}`,
2758
+ `joy-wrapper--column-gap-${e.columnGap}`,
2586
2759
  { "joy-wrapper--item-stretch": e.itemStretch },
2587
2760
  { "joy-wrapper--has-margin": !e.noMargin }
2588
2761
  ])
2589
2762
  }, [
2590
- h(l.$slots, "default", {}, void 0, !0)
2763
+ h(t.$slots, "default", {}, void 0, !0)
2591
2764
  ], 2));
2592
2765
  }
2593
2766
  });
2594
- const en = /* @__PURE__ */ x(Xo, [["__scopeId", "data-v-e2f29698"]]), tn = { class: "joy-template__wrapper" }, ln = {
2767
+ const pa = /* @__PURE__ */ $(ma, [["__scopeId", "data-v-8a6c4326"]]), ga = ["role"], ha = /* @__PURE__ */ k({
2768
+ __name: "VJoyTag",
2769
+ props: {
2770
+ /** Text injected within the tag */
2771
+ label: {
2772
+ type: String,
2773
+ required: !0
2774
+ },
2775
+ size: {
2776
+ type: String,
2777
+ default: "medium"
2778
+ },
2779
+ variant: {
2780
+ type: String,
2781
+ default: "primary"
2782
+ },
2783
+ /** Use v-model:selected */
2784
+ selected: Boolean,
2785
+ selectable: Boolean,
2786
+ /** Mandatory, especially if you deal with tags list and v-model */
2787
+ value: {
2788
+ type: String,
2789
+ required: !0
2790
+ },
2791
+ draggable: {
2792
+ type: Boolean,
2793
+ default: !1
2794
+ },
2795
+ removable: {
2796
+ type: Boolean,
2797
+ default: !1
2798
+ },
2799
+ link: {
2800
+ type: Boolean,
2801
+ default: !1
2802
+ }
2803
+ },
2804
+ emits: ["selected", "remove", "click"],
2805
+ setup(e, { emit: l }) {
2806
+ const t = e, o = ["primary", "secondary"], n = I(() => ({
2807
+ "joy-tag": !0,
2808
+ "joy-tag__selected": t.selected,
2809
+ "joy-tag__selectable": t.selectable || t.link,
2810
+ "joy-tag_draggable": t.draggable,
2811
+ ["joy-tag__" + t.size]: !0,
2812
+ ["joy-tag__" + t.variant]: !0
2813
+ }));
2814
+ function r() {
2815
+ l("remove", { value: t.value });
2816
+ }
2817
+ function s() {
2818
+ l("click"), t.selectable && o.includes(t.variant) && l("selected", { selected: !t.selected, value: t.value });
2819
+ }
2820
+ return (a, d) => (y(), p("span", {
2821
+ class: w([n.value]),
2822
+ role: e.link || e.selectable ? "button" : void 0,
2823
+ onClick: s
2824
+ }, [
2825
+ e.draggable ? (y(), O(q, {
2826
+ key: 0,
2827
+ class: "joy-tag__drag",
2828
+ name: "drag",
2829
+ size: "xxsmall"
2830
+ })) : g("", !0),
2831
+ L(" " + C(e.label) + " ", 1),
2832
+ e.removable ? (y(), O(q, {
2833
+ key: 1,
2834
+ class: "joy-tag__removable",
2835
+ name: "cross",
2836
+ size: "xxsmall",
2837
+ onClick: pt(r, ["stop"])
2838
+ }, null, 8, ["onClick"])) : g("", !0)
2839
+ ], 10, ga));
2840
+ }
2841
+ });
2842
+ const nt = /* @__PURE__ */ $(ha, [["__scopeId", "data-v-01b9f7cc"]]), ba = /* @__PURE__ */ k({
2843
+ __name: "VJoyTagsList",
2844
+ props: {
2845
+ align: {
2846
+ type: String,
2847
+ default: "left"
2848
+ },
2849
+ modelValue: {
2850
+ type: Array
2851
+ },
2852
+ tags: {
2853
+ type: Array,
2854
+ default() {
2855
+ return [];
2856
+ },
2857
+ required: !0
2858
+ },
2859
+ /** You can either pass this property to make all generated tags removable, or pass the `removable: true` to each tag in "tags" prop. */
2860
+ removable: {
2861
+ type: Boolean,
2862
+ default: !1
2863
+ }
2864
+ },
2865
+ emits: ["update:modelValue", "removeTag"],
2866
+ setup(e, { emit: l }) {
2867
+ const t = e;
2868
+ function o(s) {
2869
+ var a;
2870
+ return t.removable ? !1 : (a = t.modelValue) == null ? void 0 : a.includes(s.value);
2871
+ }
2872
+ function n(s, a) {
2873
+ let d = [];
2874
+ s.selected && !o(a) ? d = [...t.modelValue || [], a.value] : d = (t.modelValue || []).filter((m) => m !== a.value), l("update:modelValue", d);
2875
+ }
2876
+ function r(s) {
2877
+ l("removeTag", s.value);
2878
+ }
2879
+ return (s, a) => (y(), p("div", {
2880
+ class: w(["joy-tags-list", `joy-tags-list--${e.align}`])
2881
+ }, [
2882
+ (y(!0), p(H, null, se(e.tags, (d) => (y(), O(x(nt), W({
2883
+ key: d.value,
2884
+ selectable: !!e.modelValue && !e.removable
2885
+ }, d, {
2886
+ removable: e.removable,
2887
+ selected: o(d),
2888
+ onRemove: r,
2889
+ onSelected: (m) => n(m, d)
2890
+ }), null, 16, ["selectable", "removable", "selected", "onSelected"]))), 128))
2891
+ ], 2));
2892
+ }
2893
+ });
2894
+ const _a = /* @__PURE__ */ $(ba, [["__scopeId", "data-v-510c6367"]]), wa = { class: "joy-template__wrapper" }, Sa = {
2595
2895
  key: 0,
2596
2896
  class: "joy-template__heading"
2597
- }, on = {
2897
+ }, ja = {
2598
2898
  key: 0,
2599
2899
  class: "joy-template-slot-back"
2600
- }, nn = { class: "joy-template__heading___headings" }, an = {
2900
+ }, ka = { class: "joy-template__heading___headings" }, $a = {
2601
2901
  key: 0,
2602
2902
  class: "joy-template-slot-title"
2603
- }, rn = {
2903
+ }, Va = {
2604
2904
  key: 1,
2605
2905
  class: "joy-template-slot-subtitle"
2606
- }, sn = {
2906
+ }, xa = {
2607
2907
  key: 1,
2608
2908
  class: "joy-template-slot-actions"
2609
- }, un = {
2909
+ }, Ia = {
2610
2910
  key: 0,
2611
2911
  class: "joy-template-slot-main"
2612
- }, dn = {
2912
+ }, Oa = {
2613
2913
  key: 1,
2614
2914
  class: "joy-template-slot-sidebar"
2615
- }, cn = /* @__PURE__ */ V({
2915
+ }, Ca = /* @__PURE__ */ k({
2616
2916
  __name: "VJoyTemplate",
2617
2917
  props: {
2618
2918
  full: { type: Boolean, default: !1 },
@@ -2627,63 +2927,63 @@ const en = /* @__PURE__ */ x(Xo, [["__scopeId", "data-v-e2f29698"]]), tn = { cla
2627
2927
  }
2628
2928
  },
2629
2929
  setup(e) {
2630
- const t = e, l = Q(), o = B(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"] || !!l["template-actions"]);
2631
- return (n, r) => (m(), p("main", {
2930
+ const l = e, t = Z(), o = I(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
2931
+ return (n, r) => (y(), p("main", {
2632
2932
  class: w(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
2633
2933
  }, [
2634
- b("div", tn, [
2635
- o.value ? (m(), p("div", ln, [
2636
- $(l)["template-back"] ? (m(), p("div", on, [
2934
+ b("div", wa, [
2935
+ o.value ? (y(), p("div", Sa, [
2936
+ x(t)["template-back"] ? (y(), p("div", ja, [
2637
2937
  h(n.$slots, "template-back", {}, void 0, !0)
2638
- ])) : _("", !0),
2639
- b("div", nn, [
2640
- $(l)["template-title"] ? (m(), p("div", an, [
2938
+ ])) : g("", !0),
2939
+ b("div", ka, [
2940
+ x(t)["template-title"] ? (y(), p("div", $a, [
2641
2941
  h(n.$slots, "template-title", {}, void 0, !0)
2642
- ])) : _("", !0),
2643
- $(l)["template-subtitle"] ? (m(), p("div", rn, [
2942
+ ])) : g("", !0),
2943
+ x(t)["template-subtitle"] ? (y(), p("div", Va, [
2644
2944
  h(n.$slots, "template-subtitle", {}, void 0, !0)
2645
- ])) : _("", !0)
2945
+ ])) : g("", !0)
2646
2946
  ]),
2647
- $(l)["template-actions"] ? (m(), p("div", sn, [
2947
+ x(t)["template-actions"] ? (y(), p("div", xa, [
2648
2948
  h(n.$slots, "template-actions", {}, void 0, !0)
2649
- ])) : _("", !0)
2650
- ])) : _("", !0),
2949
+ ])) : g("", !0)
2950
+ ])) : g("", !0),
2651
2951
  b("div", {
2652
2952
  class: w([
2653
2953
  "joy-template__content",
2654
2954
  {
2655
- "joy-template__content--reverse": t.sidebar === "left"
2955
+ "joy-template__content--reverse": l.sidebar === "left"
2656
2956
  }
2657
2957
  ])
2658
2958
  }, [
2659
- n.$slots["template-main"] ? (m(), p("div", un, [
2959
+ n.$slots["template-main"] ? (y(), p("div", Ia, [
2660
2960
  h(n.$slots, "template-main", {}, void 0, !0)
2661
- ])) : _("", !0),
2662
- n.$slots["template-sidebar"] ? (m(), p("div", dn, [
2961
+ ])) : g("", !0),
2962
+ n.$slots["template-sidebar"] ? (y(), p("div", Oa, [
2663
2963
  h(n.$slots, "template-sidebar", {}, void 0, !0)
2664
- ])) : _("", !0)
2964
+ ])) : g("", !0)
2665
2965
  ], 2)
2666
2966
  ]),
2667
- e.loading ? (m(), O(_e, {
2967
+ e.loading ? (y(), O(_e, {
2668
2968
  key: 0,
2669
2969
  overlay: "",
2670
2970
  color: e.loadingColor
2671
2971
  }, {
2672
- content: E(() => [
2972
+ content: B(() => [
2673
2973
  h(n.$slots, "template-loader-content", {}, void 0, !0)
2674
2974
  ]),
2675
2975
  _: 3
2676
- }, 8, ["color"])) : _("", !0)
2976
+ }, 8, ["color"])) : g("", !0)
2677
2977
  ], 2));
2678
2978
  }
2679
2979
  });
2680
- const fn = /* @__PURE__ */ x(cn, [["__scopeId", "data-v-a2355e4b"]]), yn = ["aria-disabled"], vn = { class: "joy-textarea_wrapper" }, mn = ["id", "disabled", "name", "required", "minlength", "value"], pn = {
2980
+ const Ba = /* @__PURE__ */ $(Ca, [["__scopeId", "data-v-a2355e4b"]]), La = ["aria-disabled"], Ea = { class: "joy-textarea_wrapper" }, Ja = ["id", "disabled", "name", "required", "minlength", "value"], za = {
2681
2981
  key: 0,
2682
2982
  class: "joy-textarea_helpers"
2683
- }, hn = {
2983
+ }, Ta = {
2684
2984
  inheritAttrs: !1
2685
- }, gn = /* @__PURE__ */ V({
2686
- ...hn,
2985
+ }, Pa = /* @__PURE__ */ k({
2986
+ ...Ta,
2687
2987
  __name: "VJoyTextarea",
2688
2988
  props: {
2689
2989
  disabled: {
@@ -2718,6 +3018,11 @@ const fn = /* @__PURE__ */ x(cn, [["__scopeId", "data-v-a2355e4b"]]), yn = ["ari
2718
3018
  type: String,
2719
3019
  default: ""
2720
3020
  },
3021
+ modelModifiers: {
3022
+ default: () => ({
3023
+ lazy: !1
3024
+ })
3025
+ },
2721
3026
  autogrow: {
2722
3027
  type: Boolean,
2723
3028
  default: !1
@@ -2731,25 +3036,28 @@ const fn = /* @__PURE__ */ x(cn, [["__scopeId", "data-v-a2355e4b"]]), yn = ["ari
2731
3036
  }
2732
3037
  },
2733
3038
  emits: ["update:modelValue"],
2734
- setup(e, { expose: t, emit: l }) {
2735
- const o = e, n = g(), { triggerResize: r } = el({
3039
+ setup(e, { expose: l, emit: t }) {
3040
+ const o = e, n = _(), { triggerResize: r } = pl({
2736
3041
  element: o.autogrow ? n : void 0
2737
- }), s = g(!1), a = g(!1), f = B(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), y = B(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
3042
+ }), s = _(!1), a = _(!1), d = I(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), m = I(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2738
3043
  onInput: (v) => {
2739
- l("update:modelValue", v.target.value), r();
3044
+ o.modelModifiers.lazy || t("update:modelValue", v.target.value), r();
3045
+ },
3046
+ onChange: (v) => {
3047
+ o.modelModifiers.lazy && t("update:modelValue", v.target.value);
2740
3048
  },
2741
3049
  onBlur: () => {
2742
- a.value = !1, s.value = f.value || y.value;
3050
+ a.value = !1, s.value = d.value || m.value;
2743
3051
  },
2744
3052
  onFocus: () => {
2745
3053
  a.value = !0;
2746
3054
  }
2747
3055
  };
2748
- return t({
3056
+ return l({
2749
3057
  isInvalid: s,
2750
- valueOverMaxlength: f,
2751
- valueUnderMinlength: y
2752
- }), (v, i) => (m(), p("div", {
3058
+ valueOverMaxlength: d,
3059
+ valueUnderMinlength: m
3060
+ }), (v, i) => (y(), p("div", {
2753
3061
  "aria-disabled": e.disabled,
2754
3062
  class: w([
2755
3063
  "joy-textarea",
@@ -2761,21 +3069,21 @@ const fn = /* @__PURE__ */ x(cn, [["__scopeId", "data-v-a2355e4b"]]), yn = ["ari
2761
3069
  }
2762
3070
  ])
2763
3071
  }, [
2764
- M($(W), {
3072
+ R(x(G), {
2765
3073
  for: e.id,
2766
3074
  required: e.required && e.requiredMark,
2767
3075
  "optional-label": e.optionalLabel,
2768
3076
  size: e.labelSize
2769
3077
  }, {
2770
- default: E(() => [
3078
+ default: B(() => [
2771
3079
  h(v.$slots, "default", {}, () => [
2772
- C(I(e.label), 1)
3080
+ L(C(e.label), 1)
2773
3081
  ], !0)
2774
3082
  ]),
2775
3083
  _: 3
2776
3084
  }, 8, ["for", "required", "optional-label", "size"]),
2777
- b("div", vn, [
2778
- b("textarea", ee(v.$attrs, {
3085
+ b("div", Ea, [
3086
+ b("textarea", W(v.$attrs, {
2779
3087
  id: e.id,
2780
3088
  ref_key: "textarea",
2781
3089
  ref: n,
@@ -2787,34 +3095,36 @@ const fn = /* @__PURE__ */ x(cn, [["__scopeId", "data-v-a2355e4b"]]), yn = ["ari
2787
3095
  value: e.modelValue,
2788
3096
  onInput: i[0] || (i[0] = //@ts-ignore
2789
3097
  (...c) => u.onInput && u.onInput(...c)),
2790
- onFocus: i[1] || (i[1] = //@ts-ignore
3098
+ onChange: i[1] || (i[1] = //@ts-ignore
3099
+ (...c) => u.onChange && u.onChange(...c)),
3100
+ onFocus: i[2] || (i[2] = //@ts-ignore
2791
3101
  (...c) => u.onFocus && u.onFocus(...c)),
2792
- onBlur: i[2] || (i[2] = //@ts-ignore
3102
+ onBlur: i[3] || (i[3] = //@ts-ignore
2793
3103
  (...c) => u.onBlur && u.onBlur(...c))
2794
- }), null, 16, mn)
3104
+ }), null, 16, Ja)
2795
3105
  ]),
2796
- e.minlength || e.maxlength ? (m(), p("div", pn, [
2797
- e.minlength ? (m(), p("p", {
3106
+ e.minlength || e.maxlength ? (y(), p("div", za, [
3107
+ e.minlength ? (y(), p("p", {
2798
3108
  key: 0,
2799
3109
  class: w(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2800
3110
  }, [
2801
- y.value ? _("", !0) : (m(), O(F, {
3111
+ m.value ? g("", !0) : (y(), O(q, {
2802
3112
  key: 0,
2803
3113
  name: "check",
2804
3114
  color: "neutral",
2805
3115
  size: "xxsmall"
2806
3116
  })),
2807
- C(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2808
- ], 2)) : _("", !0),
2809
- e.maxlength ? (m(), p("p", {
3117
+ L(" " + C(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3118
+ ], 2)) : g("", !0),
3119
+ e.maxlength ? (y(), p("p", {
2810
3120
  key: 1,
2811
- class: w(["joy-textarea-count", { "joy-textarea-count-invalid": f.value }])
2812
- }, I(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
2813
- ])) : _("", !0)
2814
- ], 10, yn));
3121
+ class: w(["joy-textarea-count", { "joy-textarea-count-invalid": d.value }])
3122
+ }, C(e.modelValue.length + "/" + e.maxlength), 3)) : g("", !0)
3123
+ ])) : g("", !0)
3124
+ ], 10, La));
2815
3125
  }
2816
3126
  });
2817
- const bn = /* @__PURE__ */ x(gn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) => (yt("data-v-cf79d999"), e = e(), vt(), e), _n = { class: "joy-toggle__wrapper" }, wn = ["name", "disabled", "checked", "required", "aria-checked", "value"], Sn = { class: "joy-toggle__content" }, jn = /* @__PURE__ */ ot(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), kn = { class: "joy-toggle__content-label" }, $n = /* @__PURE__ */ ot(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
3127
+ const qa = /* @__PURE__ */ $(Pa, [["__scopeId", "data-v-1d2165ca"]]), it = (e) => (Re("data-v-cf79d999"), e = e(), De(), e), Aa = { class: "joy-toggle__wrapper" }, Fa = ["name", "disabled", "checked", "required", "aria-checked", "value"], Ma = { class: "joy-toggle__content" }, Na = /* @__PURE__ */ it(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), Ra = { class: "joy-toggle__content-label" }, Da = /* @__PURE__ */ it(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
2818
3128
  /* @__PURE__ */ b("svg", {
2819
3129
  width: "18",
2820
3130
  height: "10",
@@ -2827,7 +3137,7 @@ const bn = /* @__PURE__ */ x(gn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2827
3137
  fill: "currentColor"
2828
3138
  })
2829
3139
  ])
2830
- ], -1)), Vn = /* @__PURE__ */ V({
3140
+ ], -1)), Ha = /* @__PURE__ */ k({
2831
3141
  __name: "VJoyToggle",
2832
3142
  props: {
2833
3143
  modelValue: {
@@ -2860,27 +3170,27 @@ const bn = /* @__PURE__ */ x(gn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2860
3170
  label: String
2861
3171
  },
2862
3172
  emits: ["update:modelValue"],
2863
- setup(e, { emit: t }) {
2864
- const l = g(!1), o = {
3173
+ setup(e, { emit: l }) {
3174
+ const t = _(!1), o = {
2865
3175
  onChange: (n) => {
2866
3176
  const r = n.target.checked;
2867
- t("update:modelValue", r);
3177
+ l("update:modelValue", r);
2868
3178
  },
2869
3179
  onFocus: () => {
2870
- l.value = !0;
3180
+ t.value = !0;
2871
3181
  },
2872
3182
  onBlur: () => {
2873
- l.value = !1;
3183
+ t.value = !1;
2874
3184
  }
2875
3185
  };
2876
- return (n, r) => (m(), p("div", _n, [
3186
+ return (n, r) => (y(), p("div", Aa, [
2877
3187
  b("label", {
2878
3188
  class: w([
2879
3189
  "joy-toggle",
2880
3190
  {
2881
3191
  "joy-toggle__checked": e.modelValue,
2882
3192
  "joy-toggle__disabled": e.disabled,
2883
- "joy-toggle__focusing": l.value
3193
+ "joy-toggle__focusing": t.value
2884
3194
  }
2885
3195
  ])
2886
3196
  }, [
@@ -2901,81 +3211,91 @@ const bn = /* @__PURE__ */ x(gn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2901
3211
  (...s) => o.onFocus && o.onFocus(...s)),
2902
3212
  onBlur: r[2] || (r[2] = //@ts-ignore
2903
3213
  (...s) => o.onBlur && o.onBlur(...s))
2904
- }, null, 40, wn),
2905
- b("p", Sn, [
2906
- jn,
2907
- b("span", kn, [
3214
+ }, null, 40, Fa),
3215
+ b("p", Ma, [
3216
+ Na,
3217
+ b("span", Ra, [
2908
3218
  h(n.$slots, "default", {}, () => [
2909
- C(I(e.label), 1)
3219
+ L(C(e.label), 1)
2910
3220
  ], !0)
2911
3221
  ]),
2912
- $n
3222
+ Da
2913
3223
  ])
2914
3224
  ], 2)
2915
3225
  ]));
2916
3226
  }
2917
3227
  });
2918
- const xn = /* @__PURE__ */ x(Vn, [["__scopeId", "data-v-cf79d999"]]), On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3228
+ const Wa = /* @__PURE__ */ $(Ha, [["__scopeId", "data-v-cf79d999"]]), Ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2919
3229
  __proto__: null,
2920
- VJoyBadge: ht,
2921
- VJoyButton: Ue,
2922
- VJoyCheckbox: ge,
2923
- VJoyCounter: Dt,
2924
- VJoyDropdown: Wl,
2925
- VJoyDropdownList: et,
2926
- VJoyFormError: tt,
2927
- VJoyHighlight: Xl,
2928
- VJoyIcon: F,
2929
- VJoyInput: so,
2930
- VJoyLabel: W,
2931
- VJoyLink: yo,
2932
- VJoyMultiCheckbox: ho,
2933
- VJoyPanel: Vo,
2934
- VJoyPanelSection: Eo,
2935
- VJoyRadio: qo,
2936
- VJoyRadioGroup: Fo,
3230
+ VJoyAvailability: bt,
3231
+ VJoyAvatar: It,
3232
+ VJoyAvatarsList: Ct,
3233
+ VJoyBadge: Et,
3234
+ VJoyButton: Ke,
3235
+ VJoyCheckbox: he,
3236
+ VJoyCounter: ol,
3237
+ VJoyDropdown: so,
3238
+ VJoyDropdownList: lt,
3239
+ VJoyFormError: ot,
3240
+ VJoyHighlight: po,
3241
+ VJoyIcon: q,
3242
+ VJoyInput: $o,
3243
+ VJoyLabel: G,
3244
+ VJoyLink: Oo,
3245
+ VJoyMultiCheckbox: Eo,
3246
+ VJoyPanel: No,
3247
+ VJoyPanelSection: Uo,
3248
+ VJoyRadio: Xo,
3249
+ VJoyRadioGroup: la,
2937
3250
  VJoyScreenLoader: _e,
2938
- VJoySelect: Wo,
2939
- VJoySelectableItem: lt,
2940
- VJoySelectableItemGroup: Zo,
2941
- VJoySpinner: he,
2942
- VJoyTemplate: fn,
2943
- VJoyTextarea: bn,
2944
- VJoyToggle: xn,
2945
- VJoyWrapper: en
2946
- }, Symbol.toStringTag, { value: "Module" })), Bn = {
3251
+ VJoySelect: sa,
3252
+ VJoySelectableItem: at,
3253
+ VJoySelectableItemGroup: va,
3254
+ VJoySpinner: ge,
3255
+ VJoyTag: nt,
3256
+ VJoyTagsList: _a,
3257
+ VJoyTemplate: Ba,
3258
+ VJoyTextarea: qa,
3259
+ VJoyToggle: Wa,
3260
+ VJoyWrapper: pa
3261
+ }, Symbol.toStringTag, { value: "Module" })), Ka = {
2947
3262
  install: (e) => {
2948
- Object.entries(On).forEach(([t, l]) => {
2949
- e.component(t, l);
3263
+ Object.entries(Ua).forEach(([l, t]) => {
3264
+ e.component(l, t);
2950
3265
  });
2951
3266
  }
2952
3267
  };
2953
3268
  export {
2954
- Bn as JoyVuePlugin,
2955
- ht as VJoyBadge,
2956
- Ue as VJoyButton,
2957
- ge as VJoyCheckbox,
2958
- Dt as VJoyCounter,
2959
- Wl as VJoyDropdown,
2960
- et as VJoyDropdownList,
2961
- tt as VJoyFormError,
2962
- Xl as VJoyHighlight,
2963
- F as VJoyIcon,
2964
- so as VJoyInput,
2965
- W as VJoyLabel,
2966
- yo as VJoyLink,
2967
- ho as VJoyMultiCheckbox,
2968
- Vo as VJoyPanel,
2969
- Eo as VJoyPanelSection,
2970
- qo as VJoyRadio,
2971
- Fo as VJoyRadioGroup,
3269
+ Ka as JoyVuePlugin,
3270
+ bt as VJoyAvailability,
3271
+ It as VJoyAvatar,
3272
+ Ct as VJoyAvatarsList,
3273
+ Et as VJoyBadge,
3274
+ Ke as VJoyButton,
3275
+ he as VJoyCheckbox,
3276
+ ol as VJoyCounter,
3277
+ so as VJoyDropdown,
3278
+ lt as VJoyDropdownList,
3279
+ ot as VJoyFormError,
3280
+ po as VJoyHighlight,
3281
+ q as VJoyIcon,
3282
+ $o as VJoyInput,
3283
+ G as VJoyLabel,
3284
+ Oo as VJoyLink,
3285
+ Eo as VJoyMultiCheckbox,
3286
+ No as VJoyPanel,
3287
+ Uo as VJoyPanelSection,
3288
+ Xo as VJoyRadio,
3289
+ la as VJoyRadioGroup,
2972
3290
  _e as VJoyScreenLoader,
2973
- Wo as VJoySelect,
2974
- lt as VJoySelectableItem,
2975
- Zo as VJoySelectableItemGroup,
2976
- he as VJoySpinner,
2977
- fn as VJoyTemplate,
2978
- bn as VJoyTextarea,
2979
- xn as VJoyToggle,
2980
- en as VJoyWrapper
3291
+ sa as VJoySelect,
3292
+ at as VJoySelectableItem,
3293
+ va as VJoySelectableItemGroup,
3294
+ ge as VJoySpinner,
3295
+ nt as VJoyTag,
3296
+ _a as VJoyTagsList,
3297
+ Ba as VJoyTemplate,
3298
+ qa as VJoyTextarea,
3299
+ Wa as VJoyToggle,
3300
+ pa as VJoyWrapper
2981
3301
  };