@maltjoy/core-vue 1.0.0-beta.4 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/JoyButton/JoyButton.types.d.ts +2 -1
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +11 -0
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +1 -1
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +12 -5
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +9 -2
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +1 -1
- package/dist/joy-vue.js +576 -563
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/joy-vue.js
CHANGED
|
@@ -32,8 +32,8 @@ const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
|
|
|
32
32
|
});
|
|
33
33
|
const V = (e, t) => {
|
|
34
34
|
const l = e.__vccOpts || e;
|
|
35
|
-
for (const [o,
|
|
36
|
-
l[o] =
|
|
35
|
+
for (const [o, n] of t)
|
|
36
|
+
l[o] = n;
|
|
37
37
|
return l;
|
|
38
38
|
}, ft = /* @__PURE__ */ V(ct, [["__scopeId", "data-v-c0310e42"]]), yt = ["teal", "white"], vt = /* @__PURE__ */ $({
|
|
39
39
|
__name: "VJoySpinner",
|
|
@@ -51,7 +51,7 @@ const V = (e, t) => {
|
|
|
51
51
|
}, null, 2));
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...mt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = /* @__PURE__ */ $({
|
|
54
|
+
const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...mt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = ["name", "size"], jt = /* @__PURE__ */ $({
|
|
55
55
|
__name: "VJoyButton",
|
|
56
56
|
props: {
|
|
57
57
|
/**
|
|
@@ -64,6 +64,11 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
64
64
|
},
|
|
65
65
|
/** Name of the icon, placed before the text */
|
|
66
66
|
icon: String,
|
|
67
|
+
/** Left to the text or right */
|
|
68
|
+
iconPosition: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: "left"
|
|
71
|
+
},
|
|
67
72
|
/** Change the component's state and display a JoySpinner. */
|
|
68
73
|
loading: {
|
|
69
74
|
type: Boolean,
|
|
@@ -90,7 +95,7 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
90
95
|
const t = e, l = Re(), o = x(() => {
|
|
91
96
|
switch (t.size) {
|
|
92
97
|
case "xxsmall":
|
|
93
|
-
return "
|
|
98
|
+
return "xxsmall";
|
|
94
99
|
case "xsmall":
|
|
95
100
|
return "xxsmall";
|
|
96
101
|
case "small":
|
|
@@ -98,8 +103,8 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
98
103
|
default:
|
|
99
104
|
return "small";
|
|
100
105
|
}
|
|
101
|
-
}),
|
|
102
|
-
return (
|
|
106
|
+
}), n = x(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
|
|
107
|
+
return (r, s) => (m(), q(ce(_(l).href ? "a" : "button"), {
|
|
103
108
|
disabled: e.loading || _(l).disabled,
|
|
104
109
|
class: k([
|
|
105
110
|
"joy-button",
|
|
@@ -112,25 +117,33 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
|
|
|
112
117
|
])
|
|
113
118
|
}, {
|
|
114
119
|
default: L(() => [
|
|
115
|
-
e.icon ? (m(), p("joy-icon", {
|
|
120
|
+
e.icon && e.iconPosition === "left" ? (m(), p("joy-icon", {
|
|
116
121
|
key: 0,
|
|
122
|
+
class: "joy-button_icon joy-button_icon--left",
|
|
117
123
|
name: e.icon,
|
|
118
124
|
size: _(o),
|
|
119
125
|
lazy: !1
|
|
120
126
|
}, null, 8, _t)) : w("", !0),
|
|
121
127
|
e.loading ? (m(), q(He, {
|
|
122
128
|
key: 1,
|
|
123
|
-
color: _(
|
|
129
|
+
color: _(n)
|
|
124
130
|
}, null, 8, ["color"])) : w("", !0),
|
|
125
131
|
h("span", wt, [
|
|
126
|
-
g(
|
|
127
|
-
])
|
|
132
|
+
g(r.$slots, "default", {}, void 0, !0)
|
|
133
|
+
]),
|
|
134
|
+
e.icon && e.iconPosition === "right" ? (m(), p("joy-icon", {
|
|
135
|
+
key: 2,
|
|
136
|
+
class: "joy-button_icon joy-button_icon--right",
|
|
137
|
+
name: e.icon,
|
|
138
|
+
size: _(o),
|
|
139
|
+
lazy: !1
|
|
140
|
+
}, null, 8, St)) : w("", !0)
|
|
128
141
|
]),
|
|
129
142
|
_: 3
|
|
130
143
|
}, 8, ["disabled", "class"]));
|
|
131
144
|
}
|
|
132
145
|
});
|
|
133
|
-
const
|
|
146
|
+
const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["aria-checked", "aria-hidden"], Vt = { class: "joy-checkbox__input-wrapper" }, xt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, It = { class: "joy-checkbox__content" }, Bt = /* @__PURE__ */ $({
|
|
134
147
|
__name: "VJoyCheckbox",
|
|
135
148
|
props: {
|
|
136
149
|
/** 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 */
|
|
@@ -178,10 +191,10 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
178
191
|
},
|
|
179
192
|
emits: ["update:checked", "focus", "blur"],
|
|
180
193
|
setup(e, { expose: t, emit: l }) {
|
|
181
|
-
const o = e,
|
|
194
|
+
const o = e, n = b(), r = b(o.indeterminate), s = b(!1), a = {
|
|
182
195
|
onChange: (c) => {
|
|
183
196
|
const f = c.target.checked;
|
|
184
|
-
|
|
197
|
+
r.value = !1, l("update:checked", f);
|
|
185
198
|
},
|
|
186
199
|
onFocus: () => {
|
|
187
200
|
s.value = !0, l("focus");
|
|
@@ -191,7 +204,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
191
204
|
}
|
|
192
205
|
};
|
|
193
206
|
return t({
|
|
194
|
-
isIndeterminate:
|
|
207
|
+
isIndeterminate: r
|
|
195
208
|
}), (c, f) => (m(), p("div", {
|
|
196
209
|
"aria-checked": e.checked,
|
|
197
210
|
"aria-hidden": e.disabled
|
|
@@ -201,16 +214,16 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
201
214
|
"joy-checkbox",
|
|
202
215
|
{
|
|
203
216
|
"joy-checkbox__checked": e.checked,
|
|
204
|
-
"joy-checkbox__indeterminate":
|
|
217
|
+
"joy-checkbox__indeterminate": r.value,
|
|
205
218
|
"joy-checkbox__focusing": s.value && e.displayFocus
|
|
206
219
|
}
|
|
207
220
|
])
|
|
208
221
|
}, [
|
|
209
|
-
h("div",
|
|
222
|
+
h("div", Vt, [
|
|
210
223
|
h("input", {
|
|
211
224
|
id: e.id,
|
|
212
225
|
ref_key: "input",
|
|
213
|
-
ref:
|
|
226
|
+
ref: n,
|
|
214
227
|
type: "checkbox",
|
|
215
228
|
class: "joy-checkbox__input",
|
|
216
229
|
role: "checkbox",
|
|
@@ -220,43 +233,43 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
|
|
|
220
233
|
required: e.required,
|
|
221
234
|
"aria-checked": e.checked,
|
|
222
235
|
value: e.value,
|
|
223
|
-
indeterminate:
|
|
236
|
+
indeterminate: r.value,
|
|
224
237
|
onChange: f[0] || (f[0] = //@ts-ignore
|
|
225
|
-
(...u) =>
|
|
238
|
+
(...u) => a.onChange && a.onChange(...u)),
|
|
226
239
|
onFocus: f[1] || (f[1] = //@ts-ignore
|
|
227
|
-
(...u) =>
|
|
240
|
+
(...u) => a.onFocus && a.onFocus(...u)),
|
|
228
241
|
onBlur: f[2] || (f[2] = //@ts-ignore
|
|
229
|
-
(...u) =>
|
|
230
|
-
}, null, 40,
|
|
242
|
+
(...u) => a.onBlur && a.onBlur(...u))
|
|
243
|
+
}, null, 40, xt)
|
|
231
244
|
]),
|
|
232
|
-
h("div",
|
|
245
|
+
h("div", Ot, [
|
|
233
246
|
g(c.$slots, "default", {}, () => [
|
|
234
247
|
J(I(e.label), 1)
|
|
235
248
|
], !0),
|
|
236
|
-
h("div",
|
|
249
|
+
h("div", It, [
|
|
237
250
|
g(c.$slots, "checkbox-content", {}, void 0, !0)
|
|
238
251
|
])
|
|
239
252
|
])
|
|
240
253
|
], 2)
|
|
241
|
-
], 8,
|
|
254
|
+
], 8, $t));
|
|
242
255
|
}
|
|
243
256
|
});
|
|
244
|
-
const he = /* @__PURE__ */ V(
|
|
257
|
+
const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Lt = { class: "joy-counter" }, Et = ["aria-label", "disabled"], Pt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
|
|
245
258
|
name: "minus",
|
|
246
259
|
color: "teal",
|
|
247
260
|
lazy: !1
|
|
248
261
|
}, null, -1)), Ct = [
|
|
249
|
-
|
|
250
|
-
],
|
|
262
|
+
Pt
|
|
263
|
+
], Jt = { class: "joy-counter__input-wrapper" }, qt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], zt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
|
|
251
264
|
name: "add",
|
|
252
265
|
lazy: !1,
|
|
253
266
|
color: "teal"
|
|
254
|
-
}, null, -1)),
|
|
255
|
-
|
|
256
|
-
],
|
|
267
|
+
}, null, -1)), At = [
|
|
268
|
+
zt
|
|
269
|
+
], Ft = {
|
|
257
270
|
key: 0,
|
|
258
271
|
class: "joy-counter_error"
|
|
259
|
-
},
|
|
272
|
+
}, Dt = /* @__PURE__ */ $({
|
|
260
273
|
__name: "VJoyCounter",
|
|
261
274
|
props: {
|
|
262
275
|
/** Removes any interactivity */
|
|
@@ -323,45 +336,45 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
323
336
|
},
|
|
324
337
|
emits: ["update:modelValue"],
|
|
325
338
|
setup(e, { expose: t, emit: l }) {
|
|
326
|
-
const o = e,
|
|
339
|
+
const o = e, n = b(!1), r = b(!1);
|
|
327
340
|
function s() {
|
|
328
341
|
const d = f(!1);
|
|
329
342
|
d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), c();
|
|
330
343
|
}
|
|
331
|
-
function
|
|
344
|
+
function a() {
|
|
332
345
|
const d = f();
|
|
333
346
|
o.max && d <= o.max ? l("update:modelValue", d >= o.max ? o.max : d) : o.max && d > o.max ? l("update:modelValue", o.max) : l("update:modelValue", d), c();
|
|
334
347
|
}
|
|
335
348
|
function c() {
|
|
336
|
-
|
|
349
|
+
n.value = !u();
|
|
337
350
|
}
|
|
338
351
|
function f(d = !0) {
|
|
339
352
|
const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
|
|
340
353
|
return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
|
|
341
354
|
}
|
|
342
355
|
function u() {
|
|
343
|
-
return v() &&
|
|
356
|
+
return v() && i();
|
|
344
357
|
}
|
|
345
358
|
function v() {
|
|
346
359
|
return !o.max || o.modelValue <= o.max;
|
|
347
360
|
}
|
|
348
|
-
function
|
|
361
|
+
function i() {
|
|
349
362
|
return o.min <= o.modelValue;
|
|
350
363
|
}
|
|
351
364
|
const y = {
|
|
352
365
|
onInput: (d) => {
|
|
353
|
-
l("update:modelValue", +d.target.value || 0),
|
|
366
|
+
l("update:modelValue", +d.target.value || 0), n.value = !1;
|
|
354
367
|
},
|
|
355
368
|
onFocus: () => {
|
|
356
|
-
|
|
369
|
+
r.value = !0;
|
|
357
370
|
},
|
|
358
371
|
onBlur: () => {
|
|
359
|
-
|
|
372
|
+
r.value = !1, c();
|
|
360
373
|
}
|
|
361
374
|
};
|
|
362
375
|
return t({
|
|
363
376
|
props: o
|
|
364
|
-
}), (d, j) => (m(), p("div",
|
|
377
|
+
}), (d, j) => (m(), p("div", Lt, [
|
|
365
378
|
e.label ? (m(), q(_(N), {
|
|
366
379
|
key: 0,
|
|
367
380
|
for: e.id,
|
|
@@ -377,7 +390,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
377
390
|
_: 3
|
|
378
391
|
}, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
|
|
379
392
|
h("div", {
|
|
380
|
-
class: k(["joy-counter__wrapper", { "joy-counter--focusing":
|
|
393
|
+
class: k(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
|
|
381
394
|
}, [
|
|
382
395
|
h("button", {
|
|
383
396
|
class: "joy-counter__decrement",
|
|
@@ -385,16 +398,16 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
385
398
|
"aria-label": e.labelDecrement,
|
|
386
399
|
disabled: e.modelValue <= e.min,
|
|
387
400
|
onClick: s
|
|
388
|
-
}, Ct, 8,
|
|
389
|
-
h("div",
|
|
401
|
+
}, Ct, 8, Et),
|
|
402
|
+
h("div", Jt, [
|
|
390
403
|
h("input", Q({
|
|
391
404
|
id: e.id,
|
|
392
405
|
ref: "input",
|
|
393
406
|
type: "number",
|
|
394
|
-
class: { "joy-counter__invalid": e.invalid ||
|
|
407
|
+
class: { "joy-counter__invalid": e.invalid || n.value },
|
|
395
408
|
min: e.min,
|
|
396
409
|
max: e.max,
|
|
397
|
-
"aria-invalid": e.invalid ||
|
|
410
|
+
"aria-invalid": e.invalid || n.value,
|
|
398
411
|
name: e.name,
|
|
399
412
|
required: e.required,
|
|
400
413
|
step: "any",
|
|
@@ -406,65 +419,65 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
|
|
|
406
419
|
(...S) => y.onBlur && y.onBlur(...S)),
|
|
407
420
|
onFocus: j[2] || (j[2] = //@ts-ignore
|
|
408
421
|
(...S) => y.onFocus && y.onFocus(...S))
|
|
409
|
-
}), null, 16,
|
|
422
|
+
}), null, 16, qt)
|
|
410
423
|
]),
|
|
411
424
|
h("button", {
|
|
412
425
|
class: "joy-counter__increment",
|
|
413
426
|
type: "button",
|
|
414
427
|
"aria-label": e.labelIncrement,
|
|
415
428
|
disabled: e.max ? e.modelValue >= e.max : !1,
|
|
416
|
-
onClick:
|
|
417
|
-
},
|
|
418
|
-
e.invalid && e.errorMessage ? (m(), p("div",
|
|
429
|
+
onClick: a
|
|
430
|
+
}, At, 8, Tt),
|
|
431
|
+
e.invalid && e.errorMessage ? (m(), p("div", Ft, [
|
|
419
432
|
fe(_(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
|
|
420
433
|
])) : w("", !0)
|
|
421
434
|
], 2)
|
|
422
435
|
]));
|
|
423
436
|
}
|
|
424
437
|
});
|
|
425
|
-
const
|
|
438
|
+
const Rt = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-0d1ab3f2"]]);
|
|
426
439
|
var _e;
|
|
427
440
|
const U = typeof window < "u", Ue = (e) => typeof e == "string", z = () => {
|
|
428
441
|
}, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
429
|
-
function
|
|
442
|
+
function P(e) {
|
|
430
443
|
return typeof e == "function" ? e() : _(e);
|
|
431
444
|
}
|
|
432
445
|
function Ge(e, t) {
|
|
433
446
|
function l(...o) {
|
|
434
|
-
return new Promise((
|
|
435
|
-
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(
|
|
447
|
+
return new Promise((n, r) => {
|
|
448
|
+
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
|
|
436
449
|
});
|
|
437
450
|
}
|
|
438
451
|
return l;
|
|
439
452
|
}
|
|
440
|
-
function
|
|
441
|
-
let l, o,
|
|
442
|
-
const
|
|
443
|
-
clearTimeout(
|
|
453
|
+
function Mt(e, t = {}) {
|
|
454
|
+
let l, o, n = z;
|
|
455
|
+
const r = (a) => {
|
|
456
|
+
clearTimeout(a), n(), n = z;
|
|
444
457
|
};
|
|
445
|
-
return (
|
|
446
|
-
const c =
|
|
447
|
-
return l &&
|
|
448
|
-
|
|
449
|
-
l &&
|
|
458
|
+
return (a) => {
|
|
459
|
+
const c = P(e), f = P(t.maxWait);
|
|
460
|
+
return l && r(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
|
|
461
|
+
n = t.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
|
|
462
|
+
l && r(l), o = null, u(a());
|
|
450
463
|
}, f)), l = setTimeout(() => {
|
|
451
|
-
o &&
|
|
464
|
+
o && r(o), o = null, u(a());
|
|
452
465
|
}, c);
|
|
453
466
|
});
|
|
454
467
|
};
|
|
455
468
|
}
|
|
456
|
-
function
|
|
457
|
-
let
|
|
469
|
+
function Nt(e, t = !0, l = !0, o = !1) {
|
|
470
|
+
let n = 0, r, s = !0, a = z, c;
|
|
458
471
|
const f = () => {
|
|
459
|
-
|
|
472
|
+
r && (clearTimeout(r), r = void 0, a(), a = z);
|
|
460
473
|
};
|
|
461
474
|
return (v) => {
|
|
462
|
-
const
|
|
463
|
-
return f(),
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
}, Math.max(0,
|
|
467
|
-
})), !l && !
|
|
475
|
+
const i = P(e), y = Date.now() - n, d = () => c = v();
|
|
476
|
+
return f(), i <= 0 ? (n = Date.now(), d()) : (y > i && (l || !s) ? (n = Date.now(), d()) : t && (c = new Promise((j, S) => {
|
|
477
|
+
a = o ? S : j, r = setTimeout(() => {
|
|
478
|
+
n = Date.now(), s = !0, j(d()), f();
|
|
479
|
+
}, Math.max(0, i - y));
|
|
480
|
+
})), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, c);
|
|
468
481
|
};
|
|
469
482
|
}
|
|
470
483
|
const R = {
|
|
@@ -472,19 +485,19 @@ const R = {
|
|
|
472
485
|
updated: "updated",
|
|
473
486
|
unmounted: "unmounted"
|
|
474
487
|
};
|
|
475
|
-
function
|
|
488
|
+
function Ht(e) {
|
|
476
489
|
return e;
|
|
477
490
|
}
|
|
478
491
|
function G(e) {
|
|
479
492
|
return ot() ? (nt(e), !0) : !1;
|
|
480
493
|
}
|
|
481
|
-
function
|
|
482
|
-
return Ge(
|
|
494
|
+
function Wt(e, t = 200, l = {}) {
|
|
495
|
+
return Ge(Mt(t, l), e);
|
|
483
496
|
}
|
|
484
|
-
function
|
|
485
|
-
return Ge(
|
|
497
|
+
function Ut(e, t = 200, l = !1, o = !0, n = !1) {
|
|
498
|
+
return Ge(Nt(t, l, o, n), e);
|
|
486
499
|
}
|
|
487
|
-
function
|
|
500
|
+
function Gt(e) {
|
|
488
501
|
return typeof e == "function" ? x(e) : b(e);
|
|
489
502
|
}
|
|
490
503
|
function Ke(e, t = !0) {
|
|
@@ -492,7 +505,7 @@ function Ke(e, t = !0) {
|
|
|
492
505
|
}
|
|
493
506
|
function H(e) {
|
|
494
507
|
var t;
|
|
495
|
-
const l =
|
|
508
|
+
const l = P(e);
|
|
496
509
|
return (t = l == null ? void 0 : l.$el) != null ? t : l;
|
|
497
510
|
}
|
|
498
511
|
const be = U ? window : void 0;
|
|
@@ -500,84 +513,84 @@ U && window.document;
|
|
|
500
513
|
U && window.navigator;
|
|
501
514
|
U && window.location;
|
|
502
515
|
function ae(...e) {
|
|
503
|
-
let t, l, o,
|
|
504
|
-
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o,
|
|
516
|
+
let t, l, o, n;
|
|
517
|
+
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
|
|
505
518
|
return z;
|
|
506
519
|
Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
},
|
|
510
|
-
s(), u &&
|
|
520
|
+
const r = [], s = () => {
|
|
521
|
+
r.forEach((u) => u()), r.length = 0;
|
|
522
|
+
}, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [H(t), P(n)], ([u, v]) => {
|
|
523
|
+
s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
|
|
511
524
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
512
525
|
c(), s();
|
|
513
526
|
};
|
|
514
527
|
return G(f), f;
|
|
515
528
|
}
|
|
516
529
|
let we = !1;
|
|
517
|
-
function
|
|
518
|
-
const { window: o = be, ignore:
|
|
530
|
+
function Kt(e, t, l = {}) {
|
|
531
|
+
const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
|
|
519
532
|
if (!o)
|
|
520
533
|
return;
|
|
521
|
-
ee && !we && (we = !0, Array.from(o.document.body.children).forEach((
|
|
522
|
-
let
|
|
523
|
-
const c = (
|
|
534
|
+
ee && !we && (we = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
|
|
535
|
+
let a = !0;
|
|
536
|
+
const c = (i) => n.some((y) => {
|
|
524
537
|
if (typeof y == "string")
|
|
525
|
-
return Array.from(o.document.querySelectorAll(y)).some((d) => d ===
|
|
538
|
+
return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
|
|
526
539
|
{
|
|
527
540
|
const d = H(y);
|
|
528
|
-
return d && (
|
|
541
|
+
return d && (i.target === d || i.composedPath().includes(d));
|
|
529
542
|
}
|
|
530
543
|
}), u = [
|
|
531
|
-
ae(o, "click", (
|
|
544
|
+
ae(o, "click", (i) => {
|
|
532
545
|
const y = H(e);
|
|
533
|
-
if (!(!y || y ===
|
|
534
|
-
if (
|
|
535
|
-
|
|
546
|
+
if (!(!y || y === i.target || i.composedPath().includes(y))) {
|
|
547
|
+
if (i.detail === 0 && (a = !c(i)), !a) {
|
|
548
|
+
a = !0;
|
|
536
549
|
return;
|
|
537
550
|
}
|
|
538
|
-
t(
|
|
551
|
+
t(i);
|
|
539
552
|
}
|
|
540
|
-
}, { passive: !0, capture:
|
|
541
|
-
ae(o, "pointerdown", (
|
|
553
|
+
}, { passive: !0, capture: r }),
|
|
554
|
+
ae(o, "pointerdown", (i) => {
|
|
542
555
|
const y = H(e);
|
|
543
|
-
y && (
|
|
556
|
+
y && (a = !i.composedPath().includes(y) && !c(i));
|
|
544
557
|
}, { passive: !0 }),
|
|
545
|
-
s && ae(o, "blur", (
|
|
558
|
+
s && ae(o, "blur", (i) => {
|
|
546
559
|
var y;
|
|
547
560
|
const d = H(e);
|
|
548
|
-
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(
|
|
561
|
+
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
|
|
549
562
|
})
|
|
550
563
|
].filter(Boolean);
|
|
551
|
-
return () => u.forEach((
|
|
564
|
+
return () => u.forEach((i) => i());
|
|
552
565
|
}
|
|
553
|
-
function
|
|
566
|
+
function Qt(e, t = !1) {
|
|
554
567
|
const l = b(), o = () => l.value = Boolean(e());
|
|
555
568
|
return o(), Ke(o, t), l;
|
|
556
569
|
}
|
|
557
570
|
const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
|
|
558
571
|
ie[re] = ie[re] || {};
|
|
559
572
|
ie[re];
|
|
560
|
-
var Se = Object.getOwnPropertySymbols,
|
|
573
|
+
var Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Xt = (e, t) => {
|
|
561
574
|
var l = {};
|
|
562
575
|
for (var o in e)
|
|
563
|
-
|
|
576
|
+
Zt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
|
|
564
577
|
if (e != null && Se)
|
|
565
578
|
for (var o of Se(e))
|
|
566
|
-
t.indexOf(o) < 0 &&
|
|
579
|
+
t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
|
|
567
580
|
return l;
|
|
568
581
|
};
|
|
569
|
-
function
|
|
570
|
-
const o = l, { window:
|
|
582
|
+
function el(e, t, l = {}) {
|
|
583
|
+
const o = l, { window: n = be } = o, r = Xt(o, ["window"]);
|
|
571
584
|
let s;
|
|
572
|
-
const
|
|
585
|
+
const a = Qt(() => n && "ResizeObserver" in n), c = () => {
|
|
573
586
|
s && (s.disconnect(), s = void 0);
|
|
574
587
|
}, f = B(() => H(e), (v) => {
|
|
575
|
-
c(),
|
|
588
|
+
c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
|
|
576
589
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
577
590
|
c(), f();
|
|
578
591
|
};
|
|
579
592
|
return G(u), {
|
|
580
|
-
isSupported:
|
|
593
|
+
isSupported: a,
|
|
581
594
|
stop: u
|
|
582
595
|
};
|
|
583
596
|
}
|
|
@@ -585,27 +598,27 @@ var je;
|
|
|
585
598
|
(function(e) {
|
|
586
599
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
587
600
|
})(je || (je = {}));
|
|
588
|
-
function
|
|
601
|
+
function tl(e) {
|
|
589
602
|
const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
|
|
590
603
|
function o() {
|
|
591
|
-
var
|
|
592
|
-
t.value && (t.value.style.height = "1px", t.value.style.height = `${(
|
|
604
|
+
var n, r;
|
|
605
|
+
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));
|
|
593
606
|
}
|
|
594
|
-
return B([l, t], o, { immediate: !0 }),
|
|
607
|
+
return B([l, t], o, { immediate: !0 }), el(t, () => o()), e != null && e.watch && B(e.watch, o, { immediate: !0, deep: !0 }), {
|
|
595
608
|
textarea: t,
|
|
596
609
|
input: l,
|
|
597
610
|
triggerResize: o
|
|
598
611
|
};
|
|
599
612
|
}
|
|
600
|
-
var
|
|
613
|
+
var ll = Object.defineProperty, ke = Object.getOwnPropertySymbols, ol = Object.prototype.hasOwnProperty, nl = Object.prototype.propertyIsEnumerable, $e = (e, t, l) => t in e ? ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, al = (e, t) => {
|
|
601
614
|
for (var l in t || (t = {}))
|
|
602
|
-
|
|
615
|
+
ol.call(t, l) && $e(e, l, t[l]);
|
|
603
616
|
if (ke)
|
|
604
617
|
for (var l of ke(t))
|
|
605
|
-
|
|
618
|
+
nl.call(t, l) && $e(e, l, t[l]);
|
|
606
619
|
return e;
|
|
607
620
|
};
|
|
608
|
-
const
|
|
621
|
+
const il = {
|
|
609
622
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
610
623
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
611
624
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -631,38 +644,38 @@ const al = {
|
|
|
631
644
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
632
645
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
633
646
|
};
|
|
634
|
-
|
|
635
|
-
linear:
|
|
636
|
-
},
|
|
637
|
-
const
|
|
647
|
+
al({
|
|
648
|
+
linear: Ht
|
|
649
|
+
}, il);
|
|
650
|
+
const rl = /* @__PURE__ */ $({
|
|
638
651
|
name: "OnClickOutside",
|
|
639
652
|
props: ["as", "options"],
|
|
640
653
|
emits: ["trigger"],
|
|
641
654
|
setup(e, { slots: t, emit: l }) {
|
|
642
655
|
const o = b();
|
|
643
|
-
return
|
|
644
|
-
l("trigger",
|
|
656
|
+
return Kt(o, (n) => {
|
|
657
|
+
l("trigger", n);
|
|
645
658
|
}, e.options), () => {
|
|
646
659
|
if (t.default)
|
|
647
660
|
return it(e.as || "div", { ref: o }, t.default());
|
|
648
661
|
};
|
|
649
662
|
}
|
|
650
663
|
});
|
|
651
|
-
function
|
|
664
|
+
function C(e) {
|
|
652
665
|
var t;
|
|
653
|
-
const l =
|
|
666
|
+
const l = P(e);
|
|
654
667
|
return (t = l == null ? void 0 : l.$el) != null ? t : l;
|
|
655
668
|
}
|
|
656
669
|
const M = U ? window : void 0;
|
|
657
670
|
function A(...e) {
|
|
658
|
-
let t, l, o,
|
|
659
|
-
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o,
|
|
671
|
+
let t, l, o, n;
|
|
672
|
+
if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = M) : [t, l, o, n] = e, !t)
|
|
660
673
|
return z;
|
|
661
674
|
Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
},
|
|
665
|
-
s(), u &&
|
|
675
|
+
const r = [], s = () => {
|
|
676
|
+
r.forEach((u) => u()), r.length = 0;
|
|
677
|
+
}, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [C(t), P(n)], ([u, v]) => {
|
|
678
|
+
s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
|
|
666
679
|
}, { immediate: !0, flush: "post" }), f = () => {
|
|
667
680
|
c(), s();
|
|
668
681
|
};
|
|
@@ -670,77 +683,77 @@ function A(...e) {
|
|
|
670
683
|
}
|
|
671
684
|
let Ve = !1;
|
|
672
685
|
function xe(e, t, l = {}) {
|
|
673
|
-
const { window: o = M, ignore:
|
|
686
|
+
const { window: o = M, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
|
|
674
687
|
if (!o)
|
|
675
688
|
return;
|
|
676
|
-
ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((
|
|
677
|
-
let
|
|
678
|
-
const c = (
|
|
689
|
+
ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
|
|
690
|
+
let a = !0;
|
|
691
|
+
const c = (i) => n.some((y) => {
|
|
679
692
|
if (typeof y == "string")
|
|
680
|
-
return Array.from(o.document.querySelectorAll(y)).some((d) => d ===
|
|
693
|
+
return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
|
|
681
694
|
{
|
|
682
|
-
const d =
|
|
683
|
-
return d && (
|
|
695
|
+
const d = C(y);
|
|
696
|
+
return d && (i.target === d || i.composedPath().includes(d));
|
|
684
697
|
}
|
|
685
698
|
}), u = [
|
|
686
|
-
A(o, "click", (
|
|
687
|
-
const y =
|
|
688
|
-
if (!(!y || y ===
|
|
689
|
-
if (
|
|
690
|
-
|
|
699
|
+
A(o, "click", (i) => {
|
|
700
|
+
const y = C(e);
|
|
701
|
+
if (!(!y || y === i.target || i.composedPath().includes(y))) {
|
|
702
|
+
if (i.detail === 0 && (a = !c(i)), !a) {
|
|
703
|
+
a = !0;
|
|
691
704
|
return;
|
|
692
705
|
}
|
|
693
|
-
t(
|
|
706
|
+
t(i);
|
|
694
707
|
}
|
|
695
|
-
}, { passive: !0, capture:
|
|
696
|
-
A(o, "pointerdown", (
|
|
697
|
-
const y =
|
|
698
|
-
y && (
|
|
708
|
+
}, { passive: !0, capture: r }),
|
|
709
|
+
A(o, "pointerdown", (i) => {
|
|
710
|
+
const y = C(e);
|
|
711
|
+
y && (a = !i.composedPath().includes(y) && !c(i));
|
|
699
712
|
}, { passive: !0 }),
|
|
700
|
-
s && A(o, "blur", (
|
|
713
|
+
s && A(o, "blur", (i) => {
|
|
701
714
|
var y;
|
|
702
|
-
const d =
|
|
703
|
-
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(
|
|
715
|
+
const d = C(e);
|
|
716
|
+
((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
|
|
704
717
|
})
|
|
705
718
|
].filter(Boolean);
|
|
706
|
-
return () => u.forEach((
|
|
719
|
+
return () => u.forEach((i) => i());
|
|
707
720
|
}
|
|
708
721
|
R.mounted + "", R.unmounted + "";
|
|
709
|
-
const
|
|
722
|
+
const sl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
|
|
710
723
|
function Oe(...e) {
|
|
711
724
|
let t, l, o = {};
|
|
712
725
|
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]);
|
|
713
|
-
const { target:
|
|
714
|
-
return A(
|
|
715
|
-
|
|
726
|
+
const { target: n = M, eventName: r = "keydown", passive: s = !1 } = o, a = sl(t);
|
|
727
|
+
return A(n, r, (f) => {
|
|
728
|
+
a(f) && l(f);
|
|
716
729
|
}, s);
|
|
717
730
|
}
|
|
718
|
-
var
|
|
731
|
+
var ul = Object.defineProperty, Ie = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, cl = Object.prototype.propertyIsEnumerable, Be = (e, t, l) => t in e ? ul(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, fl = (e, t) => {
|
|
719
732
|
for (var l in t || (t = {}))
|
|
720
|
-
|
|
733
|
+
dl.call(t, l) && Be(e, l, t[l]);
|
|
721
734
|
if (Ie)
|
|
722
735
|
for (var l of Ie(t))
|
|
723
|
-
|
|
736
|
+
cl.call(t, l) && Be(e, l, t[l]);
|
|
724
737
|
return e;
|
|
725
738
|
};
|
|
726
739
|
R.mounted + "";
|
|
727
|
-
const
|
|
740
|
+
const yl = 500;
|
|
728
741
|
function Le(e, t, l) {
|
|
729
|
-
var o,
|
|
730
|
-
const
|
|
742
|
+
var o, n;
|
|
743
|
+
const r = x(() => C(e));
|
|
731
744
|
let s;
|
|
732
|
-
function
|
|
745
|
+
function a() {
|
|
733
746
|
s && (clearTimeout(s), s = void 0);
|
|
734
747
|
}
|
|
735
748
|
function c(u) {
|
|
736
|
-
var v,
|
|
737
|
-
(v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !==
|
|
749
|
+
var v, i, y, d;
|
|
750
|
+
(v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== r.value || (a(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && u.preventDefault(), (y = l == null ? void 0 : l.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d : yl));
|
|
738
751
|
}
|
|
739
752
|
const f = {
|
|
740
753
|
capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
|
|
741
|
-
once: (
|
|
754
|
+
once: (n = l == null ? void 0 : l.modifiers) == null ? void 0 : n.once
|
|
742
755
|
};
|
|
743
|
-
A(
|
|
756
|
+
A(r, "pointerdown", c, f), A(r, "pointerup", a, f), A(r, "pointerleave", a, f);
|
|
744
757
|
}
|
|
745
758
|
R.mounted + "";
|
|
746
759
|
const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
|
|
@@ -750,98 +763,98 @@ function Qe(e, t = !1) {
|
|
|
750
763
|
const l = b(), o = () => l.value = Boolean(e());
|
|
751
764
|
return o(), Ke(o, t), l;
|
|
752
765
|
}
|
|
753
|
-
function
|
|
754
|
-
const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0,
|
|
755
|
-
let
|
|
756
|
-
const s = (
|
|
757
|
-
const c =
|
|
758
|
-
|
|
766
|
+
function vl(e, t = {}) {
|
|
767
|
+
const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = b(!1);
|
|
768
|
+
let r;
|
|
769
|
+
const s = (a) => {
|
|
770
|
+
const c = a ? l : o;
|
|
771
|
+
r && (clearTimeout(r), r = void 0), c ? r = setTimeout(() => n.value = a, c) : n.value = a;
|
|
759
772
|
};
|
|
760
|
-
return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })),
|
|
773
|
+
return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
|
|
761
774
|
}
|
|
762
775
|
R.mounted + "";
|
|
763
|
-
var Ee = Object.getOwnPropertySymbols,
|
|
776
|
+
var Ee = Object.getOwnPropertySymbols, ml = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable, hl = (e, t) => {
|
|
764
777
|
var l = {};
|
|
765
778
|
for (var o in e)
|
|
766
|
-
|
|
779
|
+
ml.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
|
|
767
780
|
if (e != null && Ee)
|
|
768
781
|
for (var o of Ee(e))
|
|
769
|
-
t.indexOf(o) < 0 &&
|
|
782
|
+
t.indexOf(o) < 0 && pl.call(e, o) && (l[o] = e[o]);
|
|
770
783
|
return l;
|
|
771
784
|
};
|
|
772
|
-
function
|
|
773
|
-
const o = l, { window:
|
|
785
|
+
function bl(e, t, l = {}) {
|
|
786
|
+
const o = l, { window: n = M } = o, r = hl(o, ["window"]);
|
|
774
787
|
let s;
|
|
775
|
-
const
|
|
788
|
+
const a = Qe(() => n && "ResizeObserver" in n), c = () => {
|
|
776
789
|
s && (s.disconnect(), s = void 0);
|
|
777
|
-
}, f = B(() =>
|
|
778
|
-
c(),
|
|
790
|
+
}, f = B(() => C(e), (v) => {
|
|
791
|
+
c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
|
|
779
792
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
780
793
|
c(), f();
|
|
781
794
|
};
|
|
782
795
|
return G(u), {
|
|
783
|
-
isSupported:
|
|
796
|
+
isSupported: a,
|
|
784
797
|
stop: u
|
|
785
798
|
};
|
|
786
799
|
}
|
|
787
|
-
function
|
|
788
|
-
const { window: o = M, box:
|
|
800
|
+
function gl(e, t = { width: 0, height: 0 }, l = {}) {
|
|
801
|
+
const { window: o = M, box: n = "content-box" } = l, r = x(() => {
|
|
789
802
|
var c, f;
|
|
790
|
-
return (f = (c =
|
|
791
|
-
}), s = b(t.width),
|
|
792
|
-
return
|
|
793
|
-
const f =
|
|
794
|
-
if (o &&
|
|
795
|
-
const u =
|
|
803
|
+
return (f = (c = C(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
|
|
804
|
+
}), s = b(t.width), a = b(t.height);
|
|
805
|
+
return bl(e, ([c]) => {
|
|
806
|
+
const f = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
|
|
807
|
+
if (o && r.value) {
|
|
808
|
+
const u = C(e);
|
|
796
809
|
if (u) {
|
|
797
810
|
const v = o.getComputedStyle(u);
|
|
798
|
-
s.value = parseFloat(v.width),
|
|
811
|
+
s.value = parseFloat(v.width), a.value = parseFloat(v.height);
|
|
799
812
|
}
|
|
800
813
|
} else if (f) {
|
|
801
814
|
const u = Array.isArray(f) ? f : [f];
|
|
802
|
-
s.value = u.reduce((v, { inlineSize:
|
|
815
|
+
s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
|
|
803
816
|
} else
|
|
804
|
-
s.value = c.contentRect.width,
|
|
805
|
-
}, l), B(() =>
|
|
806
|
-
s.value = c ? t.width : 0,
|
|
817
|
+
s.value = c.contentRect.width, a.value = c.contentRect.height;
|
|
818
|
+
}, l), B(() => C(e), (c) => {
|
|
819
|
+
s.value = c ? t.width : 0, a.value = c ? t.height : 0;
|
|
807
820
|
}), {
|
|
808
821
|
width: s,
|
|
809
|
-
height:
|
|
822
|
+
height: a
|
|
810
823
|
};
|
|
811
824
|
}
|
|
812
825
|
R.mounted + "";
|
|
813
|
-
function
|
|
814
|
-
const o = b(!1),
|
|
826
|
+
function Pe(e, { window: t = M, scrollTarget: l } = {}) {
|
|
827
|
+
const o = b(!1), n = () => {
|
|
815
828
|
if (!t)
|
|
816
829
|
return;
|
|
817
|
-
const
|
|
830
|
+
const r = t.document, s = C(e);
|
|
818
831
|
if (!s)
|
|
819
832
|
o.value = !1;
|
|
820
833
|
else {
|
|
821
|
-
const
|
|
822
|
-
o.value =
|
|
834
|
+
const a = s.getBoundingClientRect();
|
|
835
|
+
o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
|
|
823
836
|
}
|
|
824
837
|
};
|
|
825
|
-
return B(() =>
|
|
838
|
+
return B(() => C(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
|
|
826
839
|
capture: !1,
|
|
827
840
|
passive: !0
|
|
828
841
|
}), o;
|
|
829
842
|
}
|
|
830
843
|
R.mounted + "";
|
|
831
|
-
const
|
|
844
|
+
const Ce = 1;
|
|
832
845
|
function de(e, t = {}) {
|
|
833
846
|
const {
|
|
834
847
|
throttle: l = 0,
|
|
835
848
|
idle: o = 200,
|
|
836
|
-
onStop:
|
|
837
|
-
onScroll:
|
|
849
|
+
onStop: n = z,
|
|
850
|
+
onScroll: r = z,
|
|
838
851
|
offset: s = {
|
|
839
852
|
left: 0,
|
|
840
853
|
right: 0,
|
|
841
854
|
top: 0,
|
|
842
855
|
bottom: 0
|
|
843
856
|
},
|
|
844
|
-
eventListenerOptions:
|
|
857
|
+
eventListenerOptions: a = {
|
|
845
858
|
capture: !1,
|
|
846
859
|
passive: !0
|
|
847
860
|
},
|
|
@@ -853,7 +866,7 @@ function de(e, t = {}) {
|
|
|
853
866
|
set(O) {
|
|
854
867
|
y(O, void 0);
|
|
855
868
|
}
|
|
856
|
-
}),
|
|
869
|
+
}), i = x({
|
|
857
870
|
get() {
|
|
858
871
|
return u.value;
|
|
859
872
|
},
|
|
@@ -863,11 +876,11 @@ function de(e, t = {}) {
|
|
|
863
876
|
});
|
|
864
877
|
function y(O, T) {
|
|
865
878
|
var D, F, ge;
|
|
866
|
-
const ne =
|
|
879
|
+
const ne = P(e);
|
|
867
880
|
ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
|
|
868
|
-
top: (D =
|
|
869
|
-
left: (F =
|
|
870
|
-
behavior:
|
|
881
|
+
top: (D = P(T)) != null ? D : i.value,
|
|
882
|
+
left: (F = P(O)) != null ? F : v.value,
|
|
883
|
+
behavior: P(c)
|
|
871
884
|
}));
|
|
872
885
|
}
|
|
873
886
|
const d = b(!1), j = X({
|
|
@@ -881,40 +894,40 @@ function de(e, t = {}) {
|
|
|
881
894
|
top: !1,
|
|
882
895
|
bottom: !1
|
|
883
896
|
}), Y = (O) => {
|
|
884
|
-
d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1,
|
|
885
|
-
}, oe =
|
|
897
|
+
d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(O));
|
|
898
|
+
}, oe = Wt(Y, l + o), E = (O) => {
|
|
886
899
|
const T = O.target === document ? O.target.documentElement : O.target, D = T.scrollLeft;
|
|
887
|
-
S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) -
|
|
900
|
+
S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) - Ce, f.value = D;
|
|
888
901
|
let F = T.scrollTop;
|
|
889
|
-
O.target === document && !F && (F = document.body.scrollTop), S.top = F < u.value, S.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + T.clientHeight >= T.scrollHeight - (s.bottom || 0) -
|
|
902
|
+
O.target === document && !F && (F = document.body.scrollTop), S.top = F < u.value, S.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + T.clientHeight >= T.scrollHeight - (s.bottom || 0) - Ce, u.value = F, d.value = !0, oe(O), r(O);
|
|
890
903
|
};
|
|
891
|
-
return A(e, "scroll", l ?
|
|
904
|
+
return A(e, "scroll", l ? Ut(E, l, !0, !1) : E, a), A(e, "scrollend", Y, a), {
|
|
892
905
|
x: v,
|
|
893
|
-
y:
|
|
906
|
+
y: i,
|
|
894
907
|
isScrolling: d,
|
|
895
908
|
arrivedState: j,
|
|
896
909
|
directions: S
|
|
897
910
|
};
|
|
898
911
|
}
|
|
899
|
-
var
|
|
912
|
+
var _l = Object.defineProperty, wl = Object.defineProperties, Sl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, jl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? _l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Te = (e, t) => {
|
|
900
913
|
for (var l in t || (t = {}))
|
|
901
|
-
|
|
914
|
+
jl.call(t, l) && qe(e, l, t[l]);
|
|
902
915
|
if (Je)
|
|
903
916
|
for (var l of Je(t))
|
|
904
|
-
|
|
917
|
+
kl.call(t, l) && qe(e, l, t[l]);
|
|
905
918
|
return e;
|
|
906
|
-
},
|
|
919
|
+
}, $l = (e, t) => wl(e, Sl(t));
|
|
907
920
|
function ze(e, t, l = {}) {
|
|
908
|
-
var o,
|
|
909
|
-
const
|
|
921
|
+
var o, n;
|
|
922
|
+
const r = (o = l.direction) != null ? o : "bottom", s = X(de(e, $l(Te({}, l), {
|
|
910
923
|
offset: Te({
|
|
911
|
-
[
|
|
924
|
+
[r]: (n = l.distance) != null ? n : 0
|
|
912
925
|
}, l.offset)
|
|
913
926
|
})));
|
|
914
|
-
B(() => s.arrivedState[
|
|
927
|
+
B(() => s.arrivedState[r], async (a) => {
|
|
915
928
|
var c, f;
|
|
916
|
-
if (
|
|
917
|
-
const u =
|
|
929
|
+
if (a) {
|
|
930
|
+
const u = P(e), v = {
|
|
918
931
|
height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
|
|
919
932
|
width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
|
|
920
933
|
};
|
|
@@ -931,21 +944,21 @@ R.mounted + "";
|
|
|
931
944
|
function Ae(e, t, l = {}) {
|
|
932
945
|
const {
|
|
933
946
|
root: o,
|
|
934
|
-
rootMargin:
|
|
935
|
-
threshold:
|
|
947
|
+
rootMargin: n = "0px",
|
|
948
|
+
threshold: r = 0.1,
|
|
936
949
|
window: s = M
|
|
937
|
-
} = l,
|
|
950
|
+
} = l, a = Qe(() => s && "IntersectionObserver" in s);
|
|
938
951
|
let c = z;
|
|
939
|
-
const f =
|
|
940
|
-
el:
|
|
941
|
-
root:
|
|
942
|
-
}), ({ el: v, root:
|
|
952
|
+
const f = a.value ? B(() => ({
|
|
953
|
+
el: C(e),
|
|
954
|
+
root: C(o)
|
|
955
|
+
}), ({ el: v, root: i }) => {
|
|
943
956
|
if (c(), !v)
|
|
944
957
|
return;
|
|
945
958
|
const y = new IntersectionObserver(t, {
|
|
946
|
-
root:
|
|
947
|
-
rootMargin:
|
|
948
|
-
threshold:
|
|
959
|
+
root: i,
|
|
960
|
+
rootMargin: n,
|
|
961
|
+
threshold: r
|
|
949
962
|
});
|
|
950
963
|
y.observe(v), c = () => {
|
|
951
964
|
y.disconnect(), c = z;
|
|
@@ -954,19 +967,19 @@ function Ae(e, t, l = {}) {
|
|
|
954
967
|
c(), f();
|
|
955
968
|
};
|
|
956
969
|
return G(u), {
|
|
957
|
-
isSupported:
|
|
970
|
+
isSupported: a,
|
|
958
971
|
stop: u
|
|
959
972
|
};
|
|
960
973
|
}
|
|
961
974
|
R.mounted + "";
|
|
962
|
-
var
|
|
975
|
+
var Vl = Object.defineProperty, xl = Object.defineProperties, Ol = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Il = Object.prototype.hasOwnProperty, Bl = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Vl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ll = (e, t) => {
|
|
963
976
|
for (var l in t || (t = {}))
|
|
964
|
-
|
|
977
|
+
Il.call(t, l) && De(e, l, t[l]);
|
|
965
978
|
if (Fe)
|
|
966
979
|
for (var l of Fe(t))
|
|
967
|
-
|
|
980
|
+
Bl.call(t, l) && De(e, l, t[l]);
|
|
968
981
|
return e;
|
|
969
|
-
},
|
|
982
|
+
}, El = (e, t) => xl(e, Ol(t));
|
|
970
983
|
R.mounted + "";
|
|
971
984
|
function Ze(e) {
|
|
972
985
|
const t = window.getComputedStyle(e);
|
|
@@ -977,61 +990,64 @@ function Ze(e) {
|
|
|
977
990
|
return !l || l.tagName === "BODY" ? !1 : Ze(l);
|
|
978
991
|
}
|
|
979
992
|
}
|
|
980
|
-
function
|
|
993
|
+
function Pl(e) {
|
|
981
994
|
const t = e || window.event, l = t.target;
|
|
982
995
|
return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
983
996
|
}
|
|
984
997
|
function Cl(e, t = !1) {
|
|
985
998
|
const l = b(t);
|
|
986
|
-
let o = null,
|
|
987
|
-
B(
|
|
988
|
-
if (
|
|
989
|
-
const c =
|
|
990
|
-
|
|
999
|
+
let o = null, n;
|
|
1000
|
+
B(Gt(e), (a) => {
|
|
1001
|
+
if (a) {
|
|
1002
|
+
const c = a;
|
|
1003
|
+
n = c.style.overflow, l.value && (c.style.overflow = "hidden");
|
|
991
1004
|
}
|
|
992
1005
|
}, {
|
|
993
1006
|
immediate: !0
|
|
994
1007
|
});
|
|
995
|
-
const
|
|
996
|
-
const
|
|
997
|
-
!
|
|
998
|
-
|
|
999
|
-
}, { passive: !1 })),
|
|
1008
|
+
const r = () => {
|
|
1009
|
+
const a = P(e);
|
|
1010
|
+
!a || l.value || (ee && (o = A(a, "touchmove", (c) => {
|
|
1011
|
+
Pl(c);
|
|
1012
|
+
}, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
|
|
1000
1013
|
}, s = () => {
|
|
1001
|
-
const
|
|
1002
|
-
!
|
|
1014
|
+
const a = P(e);
|
|
1015
|
+
!a || !l.value || (ee && (o == null || o()), a.style.overflow = n, l.value = !1);
|
|
1003
1016
|
};
|
|
1004
1017
|
return G(s), x({
|
|
1005
1018
|
get() {
|
|
1006
1019
|
return l.value;
|
|
1007
1020
|
},
|
|
1008
|
-
set(
|
|
1009
|
-
|
|
1021
|
+
set(a) {
|
|
1022
|
+
a ? r() : s();
|
|
1010
1023
|
}
|
|
1011
1024
|
});
|
|
1012
1025
|
}
|
|
1013
|
-
const
|
|
1026
|
+
const Jl = () => {
|
|
1014
1027
|
let e = !1;
|
|
1015
1028
|
const t = b(!1);
|
|
1016
1029
|
return (l, o) => {
|
|
1017
1030
|
if (t.value = o.value, e)
|
|
1018
1031
|
return;
|
|
1019
1032
|
e = !0;
|
|
1020
|
-
const
|
|
1021
|
-
B(t, (
|
|
1033
|
+
const n = Cl(l, o.value);
|
|
1034
|
+
B(t, (r) => n.value = r);
|
|
1022
1035
|
};
|
|
1023
1036
|
};
|
|
1024
|
-
|
|
1025
|
-
const Ye = ["medium", "small"],
|
|
1037
|
+
Jl();
|
|
1038
|
+
const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Tl = {
|
|
1026
1039
|
key: 0,
|
|
1027
1040
|
class: "joy-dropdown-list__footer"
|
|
1028
|
-
},
|
|
1041
|
+
}, zl = /* @__PURE__ */ $({
|
|
1029
1042
|
__name: "VJoyDropdownList",
|
|
1030
1043
|
props: {
|
|
1044
|
+
/**
|
|
1045
|
+
* In order to make it work with v-model, you need to pass for each option, a value or an ID.
|
|
1046
|
+
*/
|
|
1031
1047
|
options: {
|
|
1032
1048
|
type: Array,
|
|
1033
1049
|
validator(e) {
|
|
1034
|
-
return e.every((
|
|
1050
|
+
return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
|
|
1035
1051
|
},
|
|
1036
1052
|
default() {
|
|
1037
1053
|
return [];
|
|
@@ -1058,58 +1074,58 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1058
1074
|
},
|
|
1059
1075
|
emits: ["update:modelValue", "close:dropdownList"],
|
|
1060
1076
|
setup(e, { expose: t, emit: l }) {
|
|
1061
|
-
const o = e,
|
|
1062
|
-
function s(
|
|
1063
|
-
|
|
1077
|
+
const o = e, n = b(), r = x(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
|
|
1078
|
+
function s(i) {
|
|
1079
|
+
i.disabled || l("update:modelValue", i.value || i.id);
|
|
1064
1080
|
}
|
|
1065
|
-
function
|
|
1066
|
-
var
|
|
1067
|
-
return Array.from(((
|
|
1081
|
+
function a() {
|
|
1082
|
+
var i;
|
|
1083
|
+
return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
|
|
1068
1084
|
}
|
|
1069
1085
|
function c() {
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
top:
|
|
1086
|
+
const i = a().find((y) => y.getAttribute("aria-selected") === "true");
|
|
1087
|
+
i && (i.focus(), n.value.scrollTo({
|
|
1088
|
+
top: i.offsetTop
|
|
1073
1089
|
}));
|
|
1074
1090
|
}
|
|
1075
1091
|
function f() {
|
|
1076
|
-
return
|
|
1092
|
+
return a().find((i) => i === document.activeElement);
|
|
1077
1093
|
}
|
|
1078
|
-
function u(
|
|
1094
|
+
function u(i) {
|
|
1079
1095
|
var y;
|
|
1080
|
-
if ((
|
|
1096
|
+
if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), f() && ((y = n.value) != null && y.contains(f())))) {
|
|
1081
1097
|
const d = f();
|
|
1082
1098
|
if (!d)
|
|
1083
1099
|
return;
|
|
1084
1100
|
if (d.querySelector("a"))
|
|
1085
1101
|
return d.querySelector("a").click();
|
|
1086
|
-
l("update:modelValue", d.
|
|
1102
|
+
l("update:modelValue", d.dataModel);
|
|
1087
1103
|
}
|
|
1088
|
-
if (
|
|
1089
|
-
const d =
|
|
1104
|
+
if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
|
|
1105
|
+
const d = a(), j = f();
|
|
1090
1106
|
let S = d.indexOf(j);
|
|
1091
1107
|
if (d.length) {
|
|
1092
|
-
|
|
1108
|
+
i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), v(d[S]);
|
|
1093
1109
|
return;
|
|
1094
1110
|
}
|
|
1095
1111
|
}
|
|
1096
1112
|
}
|
|
1097
|
-
function v(
|
|
1098
|
-
|
|
1113
|
+
function v(i) {
|
|
1114
|
+
i.focus();
|
|
1099
1115
|
}
|
|
1100
1116
|
return Z(() => {
|
|
1101
1117
|
window.addEventListener("keydown", u), c();
|
|
1102
1118
|
}), Ne(() => {
|
|
1103
1119
|
window.removeEventListener("keydown", u);
|
|
1104
1120
|
}), t({
|
|
1105
|
-
isSelected:
|
|
1106
|
-
}), (
|
|
1121
|
+
isSelected: r
|
|
1122
|
+
}), (i, y) => (m(), p("div", {
|
|
1107
1123
|
class: "joy-dropdown-list",
|
|
1108
|
-
style: K({ "max-width": `${e.width}px`, "max-height": `${e.height}px` })
|
|
1124
|
+
style: K({ width: `${e.width}px`, "max-width": `${e.width}px`, "max-height": `${e.height}px` })
|
|
1109
1125
|
}, [
|
|
1110
1126
|
h("ul", {
|
|
1111
1127
|
ref_key: "listbox",
|
|
1112
|
-
ref:
|
|
1128
|
+
ref: n,
|
|
1113
1129
|
role: "listbox",
|
|
1114
1130
|
class: "joy-dropdown-list__items",
|
|
1115
1131
|
style: K({ "max-height": `${e.height}px` })
|
|
@@ -1122,32 +1138,32 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
|
|
|
1122
1138
|
"joy-dropdown-list__item",
|
|
1123
1139
|
`joy-dropdown-list__item--${e.size}`,
|
|
1124
1140
|
{
|
|
1125
|
-
"joy-dropdown-list__item--selected": _(
|
|
1141
|
+
"joy-dropdown-list__item--selected": _(r)(d),
|
|
1126
1142
|
"joy-dropdown-list__item--disabled": d.disabled
|
|
1127
1143
|
}
|
|
1128
1144
|
]),
|
|
1129
1145
|
tabindex: d.disabled ? void 0 : 0,
|
|
1130
1146
|
"aria-disabled": d.disabled,
|
|
1131
|
-
"aria-selected": _(
|
|
1147
|
+
"aria-selected": _(r)(d),
|
|
1132
1148
|
title: d.label,
|
|
1133
1149
|
"aria-label": d.label,
|
|
1134
|
-
".
|
|
1150
|
+
".dataModel": d.value || d.id,
|
|
1135
1151
|
role: "option",
|
|
1136
1152
|
onClick: (j) => s(d)
|
|
1137
1153
|
}, [
|
|
1138
|
-
g(
|
|
1154
|
+
g(i.$slots, "label", me(pe(d)), () => [
|
|
1139
1155
|
h("span", null, I(d.label), 1)
|
|
1140
1156
|
], !0)
|
|
1141
|
-
], 14,
|
|
1157
|
+
], 14, ql))), 128))
|
|
1142
1158
|
], 4),
|
|
1143
|
-
|
|
1144
|
-
g(
|
|
1159
|
+
i.$slots.footer ? (m(), p("footer", Tl, [
|
|
1160
|
+
g(i.$slots, "footer", {}, void 0, !0)
|
|
1145
1161
|
])) : w("", !0)
|
|
1146
1162
|
], 4));
|
|
1147
1163
|
}
|
|
1148
1164
|
});
|
|
1149
|
-
const Xe = /* @__PURE__ */ V(
|
|
1150
|
-
function
|
|
1165
|
+
const Xe = /* @__PURE__ */ V(zl, [["__scopeId", "data-v-af851385"]]);
|
|
1166
|
+
function Al(e) {
|
|
1151
1167
|
const t = () => e();
|
|
1152
1168
|
Z(() => {
|
|
1153
1169
|
window.addEventListener("resize", t);
|
|
@@ -1155,7 +1171,7 @@ function zl(e) {
|
|
|
1155
1171
|
window.removeEventListener("resize", t);
|
|
1156
1172
|
});
|
|
1157
1173
|
}
|
|
1158
|
-
const
|
|
1174
|
+
const Fl = /* @__PURE__ */ $({
|
|
1159
1175
|
__name: "VJoyDropdown",
|
|
1160
1176
|
props: {
|
|
1161
1177
|
/** DOM valid selector to give to Vue3 Teleport "to" property */
|
|
@@ -1232,24 +1248,24 @@ const Al = /* @__PURE__ */ $({
|
|
|
1232
1248
|
default: "300"
|
|
1233
1249
|
}
|
|
1234
1250
|
},
|
|
1235
|
-
emits: ["update:modelValue"],
|
|
1251
|
+
emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
|
|
1236
1252
|
setup(e, { expose: t, emit: l }) {
|
|
1237
|
-
const o = e,
|
|
1253
|
+
const o = e, n = b(!1), r = b(null), s = b(), a = b(null), c = b(null), f = b(!1), u = {
|
|
1238
1254
|
ignore: [s, ".joy-dropdown__list"]
|
|
1239
1255
|
};
|
|
1240
1256
|
let v = null;
|
|
1241
|
-
const
|
|
1257
|
+
const i = X({
|
|
1242
1258
|
left: "auto",
|
|
1243
1259
|
top: "0px",
|
|
1244
1260
|
right: "auto"
|
|
1245
1261
|
});
|
|
1246
1262
|
function y() {
|
|
1247
1263
|
v && clearTimeout(v), f.value = !0, v = setTimeout(() => {
|
|
1248
|
-
|
|
1264
|
+
n.value = !1, f.value = !1, l("dropdown:hide");
|
|
1249
1265
|
}, 300);
|
|
1250
1266
|
}
|
|
1251
1267
|
function d(E) {
|
|
1252
|
-
f.value = !1, v && clearTimeout(v), Y(), c.value = E.target,
|
|
1268
|
+
f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, n.value = !0, l("dropdown:open");
|
|
1253
1269
|
}
|
|
1254
1270
|
function j() {
|
|
1255
1271
|
y(), S();
|
|
@@ -1259,16 +1275,16 @@ const Al = /* @__PURE__ */ $({
|
|
|
1259
1275
|
}
|
|
1260
1276
|
function Y() {
|
|
1261
1277
|
const E = s.value.getBoundingClientRect(), O = document.documentElement.scrollTop + E.top, T = E.height, D = E.left, F = E.width;
|
|
1262
|
-
o.justify === "left" ?
|
|
1278
|
+
o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = O + T + parseInt(o.dropdownGap) + "px" : i.top = O - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
|
|
1263
1279
|
}
|
|
1264
1280
|
function oe(E) {
|
|
1265
1281
|
l("update:modelValue", E), o.closeOnSelect && (y(), S());
|
|
1266
1282
|
}
|
|
1267
|
-
return
|
|
1268
|
-
showDropdownList:
|
|
1269
|
-
}), (E, O) => (m(), q(_(
|
|
1283
|
+
return Al(y), t({
|
|
1284
|
+
showDropdownList: n
|
|
1285
|
+
}), (E, O) => (m(), q(_(rl), {
|
|
1270
1286
|
ref_key: "dropdown",
|
|
1271
|
-
ref:
|
|
1287
|
+
ref: r,
|
|
1272
1288
|
options: u,
|
|
1273
1289
|
class: "joy-dropdown",
|
|
1274
1290
|
onTrigger: y
|
|
@@ -1286,10 +1302,10 @@ const Al = /* @__PURE__ */ $({
|
|
|
1286
1302
|
to: e.appendTo,
|
|
1287
1303
|
disabled: e.disableTeleport
|
|
1288
1304
|
}, [
|
|
1289
|
-
|
|
1305
|
+
n.value ? (m(), p("div", {
|
|
1290
1306
|
key: 0,
|
|
1291
1307
|
ref_key: "list",
|
|
1292
|
-
ref:
|
|
1308
|
+
ref: a,
|
|
1293
1309
|
class: k([
|
|
1294
1310
|
"joy-dropdown__list",
|
|
1295
1311
|
`joy-dropdown__list--${e.direction}`,
|
|
@@ -1299,8 +1315,8 @@ const Al = /* @__PURE__ */ $({
|
|
|
1299
1315
|
}
|
|
1300
1316
|
]),
|
|
1301
1317
|
style: K({
|
|
1302
|
-
top:
|
|
1303
|
-
left:
|
|
1318
|
+
top: i.top,
|
|
1319
|
+
left: i.left
|
|
1304
1320
|
})
|
|
1305
1321
|
}, [
|
|
1306
1322
|
fe(Xe, {
|
|
@@ -1326,10 +1342,10 @@ const Al = /* @__PURE__ */ $({
|
|
|
1326
1342
|
}, 512));
|
|
1327
1343
|
}
|
|
1328
1344
|
});
|
|
1329
|
-
const
|
|
1345
|
+
const Dl = /* @__PURE__ */ V(Fl, [["__scopeId", "data-v-6caf97fb"]]), Rl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Ml = ["aria-hidden"], Nl = /* @__PURE__ */ Rl(() => /* @__PURE__ */ h("joy-icon", {
|
|
1330
1346
|
"custom-class": "joy-icon-error",
|
|
1331
1347
|
name: "warning-triangle"
|
|
1332
|
-
}, null, -1)),
|
|
1348
|
+
}, null, -1)), Hl = /* @__PURE__ */ $({
|
|
1333
1349
|
__name: "VJoyFormError",
|
|
1334
1350
|
props: {
|
|
1335
1351
|
/** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
|
|
@@ -1346,17 +1362,17 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-49159b35"]]), Dl = (e) =
|
|
|
1346
1362
|
class: k(["joy-form-error", { "joy-has-error": e.visible }]),
|
|
1347
1363
|
role: "alert"
|
|
1348
1364
|
}, [
|
|
1349
|
-
|
|
1365
|
+
Nl,
|
|
1350
1366
|
h("div", null, [
|
|
1351
1367
|
g(t.$slots, "default", {}, () => [
|
|
1352
1368
|
J(I(e.noHtmlErrorText), 1)
|
|
1353
1369
|
], !0)
|
|
1354
1370
|
])
|
|
1355
|
-
], 10,
|
|
1371
|
+
], 10, Ml));
|
|
1356
1372
|
}
|
|
1357
1373
|
});
|
|
1358
|
-
const et = /* @__PURE__ */ V(
|
|
1359
|
-
function
|
|
1374
|
+
const et = /* @__PURE__ */ V(Hl, [["__scopeId", "data-v-50e209d6"]]);
|
|
1375
|
+
function Wl(e) {
|
|
1360
1376
|
let t;
|
|
1361
1377
|
switch (e) {
|
|
1362
1378
|
case "error":
|
|
@@ -1370,7 +1386,7 @@ function Hl(e) {
|
|
|
1370
1386
|
}
|
|
1371
1387
|
return t;
|
|
1372
1388
|
}
|
|
1373
|
-
const
|
|
1389
|
+
const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /* @__PURE__ */ $({
|
|
1374
1390
|
__name: "VJoyHighlight",
|
|
1375
1391
|
props: {
|
|
1376
1392
|
accent: {
|
|
@@ -1386,51 +1402,51 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
|
|
|
1386
1402
|
type: String,
|
|
1387
1403
|
default: "neutral",
|
|
1388
1404
|
validator(e) {
|
|
1389
|
-
return
|
|
1405
|
+
return Ul.includes(e);
|
|
1390
1406
|
}
|
|
1391
1407
|
}
|
|
1392
1408
|
},
|
|
1393
1409
|
setup(e, { expose: t }) {
|
|
1394
|
-
const l = e, o = x(() => l.icon ? l.icon :
|
|
1410
|
+
const l = e, o = x(() => l.icon ? l.icon : Wl(l.level));
|
|
1395
1411
|
return t({
|
|
1396
1412
|
getRelevantIcon: o
|
|
1397
|
-
}), (
|
|
1413
|
+
}), (n, r) => (m(), p("div", {
|
|
1398
1414
|
class: k([
|
|
1399
1415
|
"joy-highlight",
|
|
1400
1416
|
`joy-highlight_${e.level}`,
|
|
1401
1417
|
{
|
|
1402
1418
|
"joy-highlight__accent": e.accent,
|
|
1403
|
-
"joy-highlight__titled":
|
|
1419
|
+
"joy-highlight__titled": n.$slots["highlight-title"]
|
|
1404
1420
|
}
|
|
1405
1421
|
])
|
|
1406
1422
|
}, [
|
|
1407
1423
|
e.displayIcon ? (m(), p("joy-icon", {
|
|
1408
1424
|
key: 0,
|
|
1409
1425
|
name: _(o)
|
|
1410
|
-
}, null, 8,
|
|
1411
|
-
h("div",
|
|
1426
|
+
}, null, 8, Gl)) : w("", !0),
|
|
1427
|
+
h("div", Kl, [
|
|
1412
1428
|
h("strong", null, [
|
|
1413
|
-
g(
|
|
1429
|
+
g(n.$slots, "highlight-title", {}, void 0, !0)
|
|
1414
1430
|
]),
|
|
1415
|
-
g(
|
|
1431
|
+
g(n.$slots, "default", {}, void 0, !0)
|
|
1416
1432
|
])
|
|
1417
1433
|
], 2));
|
|
1418
1434
|
}
|
|
1419
1435
|
});
|
|
1420
|
-
const
|
|
1436
|
+
const Zl = /* @__PURE__ */ V(Ql, [["__scopeId", "data-v-a0ff7a60"]]), Yl = ["small", "medium", "large"], Xl = {
|
|
1421
1437
|
key: 0,
|
|
1422
1438
|
class: "joy-label-required"
|
|
1423
|
-
},
|
|
1439
|
+
}, eo = {
|
|
1424
1440
|
key: 1,
|
|
1425
1441
|
class: "joy-label-optional"
|
|
1426
|
-
},
|
|
1442
|
+
}, to = /* @__PURE__ */ $({
|
|
1427
1443
|
__name: "VJoyLabel",
|
|
1428
1444
|
props: {
|
|
1429
1445
|
size: {
|
|
1430
1446
|
type: String,
|
|
1431
1447
|
default: "medium",
|
|
1432
1448
|
validator(e) {
|
|
1433
|
-
return
|
|
1449
|
+
return Yl.includes(e);
|
|
1434
1450
|
}
|
|
1435
1451
|
},
|
|
1436
1452
|
tagName: {
|
|
@@ -1451,14 +1467,14 @@ const Ql = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-a0ff7a60"]]), Zl = ["sma
|
|
|
1451
1467
|
}, t.$attrs), {
|
|
1452
1468
|
default: L(() => [
|
|
1453
1469
|
g(t.$slots, "default", {}, void 0, !0),
|
|
1454
|
-
e.required ? (m(), p("span",
|
|
1455
|
-
e.optionalLabel ? (m(), p("span",
|
|
1470
|
+
e.required ? (m(), p("span", Xl, "*")) : w("", !0),
|
|
1471
|
+
e.optionalLabel ? (m(), p("span", eo, "- " + I(e.optionalLabel), 1)) : w("", !0)
|
|
1456
1472
|
]),
|
|
1457
1473
|
_: 3
|
|
1458
1474
|
}, 16, ["class"]));
|
|
1459
1475
|
}
|
|
1460
1476
|
});
|
|
1461
|
-
const N = /* @__PURE__ */ V(
|
|
1477
|
+
const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["large", "medium", "small"], oo = ["id", "disabled", "type", "value"], no = ["name"], ao = ["data-unit"], io = /* @__PURE__ */ $({
|
|
1462
1478
|
__name: "VJoyInput",
|
|
1463
1479
|
props: {
|
|
1464
1480
|
disabled: {
|
|
@@ -1509,7 +1525,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1509
1525
|
type: String,
|
|
1510
1526
|
default: "medium",
|
|
1511
1527
|
validator(e) {
|
|
1512
|
-
return
|
|
1528
|
+
return lo.includes(e);
|
|
1513
1529
|
}
|
|
1514
1530
|
},
|
|
1515
1531
|
type: String,
|
|
@@ -1518,19 +1534,19 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1518
1534
|
},
|
|
1519
1535
|
emits: ["update:modelValue"],
|
|
1520
1536
|
setup(e, { emit: t }) {
|
|
1521
|
-
const l = e, o = b(),
|
|
1537
|
+
const l = e, o = b(), n = b(), r = Re(), s = W(), a = b(!1), c = x(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = x(() => s.default && s.default()), u = x(() => {
|
|
1522
1538
|
var y, d;
|
|
1523
|
-
return !!((y =
|
|
1539
|
+
return !!((y = n.value) != null && y.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
|
|
1524
1540
|
}), v = b(l.type);
|
|
1525
1541
|
st(() => {
|
|
1526
1542
|
v.value = l.unit ? "number" : l.unit || "text";
|
|
1527
1543
|
});
|
|
1528
|
-
const
|
|
1544
|
+
const i = {
|
|
1529
1545
|
onFocus: () => {
|
|
1530
|
-
|
|
1546
|
+
a.value = !0;
|
|
1531
1547
|
},
|
|
1532
1548
|
onBlur: () => {
|
|
1533
|
-
|
|
1549
|
+
a.value = !1;
|
|
1534
1550
|
},
|
|
1535
1551
|
onInput: (y) => {
|
|
1536
1552
|
let d = y.target.value;
|
|
@@ -1542,17 +1558,17 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1542
1558
|
};
|
|
1543
1559
|
return (y, d) => (m(), p("div", {
|
|
1544
1560
|
ref_key: "root",
|
|
1545
|
-
ref:
|
|
1561
|
+
ref: n,
|
|
1546
1562
|
class: k([`joy-input--${l.size}`])
|
|
1547
1563
|
}, [
|
|
1548
1564
|
h("div", {
|
|
1549
1565
|
class: k([
|
|
1550
1566
|
"joy-input",
|
|
1551
1567
|
{
|
|
1552
|
-
"joy-input--focusing":
|
|
1568
|
+
"joy-input--focusing": a.value,
|
|
1553
1569
|
"joy-input--disabled": e.disabled,
|
|
1554
1570
|
"joy-input--invalid": e.invalid,
|
|
1555
|
-
"joy-input--valid": !e.invalid && !_(
|
|
1571
|
+
"joy-input--valid": !e.invalid && !_(r).disabled
|
|
1556
1572
|
}
|
|
1557
1573
|
])
|
|
1558
1574
|
}, [
|
|
@@ -1595,37 +1611,37 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
|
|
|
1595
1611
|
type: v.value,
|
|
1596
1612
|
value: e.modelValue,
|
|
1597
1613
|
onFocus: d[0] || (d[0] = //@ts-ignore
|
|
1598
|
-
(...j) =>
|
|
1614
|
+
(...j) => i.onFocus && i.onFocus(...j)),
|
|
1599
1615
|
onBlur: d[1] || (d[1] = //@ts-ignore
|
|
1600
|
-
(...j) =>
|
|
1616
|
+
(...j) => i.onBlur && i.onBlur(...j)),
|
|
1601
1617
|
onInput: d[2] || (d[2] = //@ts-ignore
|
|
1602
|
-
(...j) =>
|
|
1603
|
-
}), null, 16,
|
|
1618
|
+
(...j) => i.onInput && i.onInput(...j))
|
|
1619
|
+
}), null, 16, oo),
|
|
1604
1620
|
_(c) ? (m(), p("joy-icon", {
|
|
1605
1621
|
key: 0,
|
|
1606
1622
|
size: "xxsmall",
|
|
1607
1623
|
name: "cross",
|
|
1608
1624
|
class: "joy-input--clear",
|
|
1609
1625
|
onClick: d[3] || (d[3] = //@ts-ignore
|
|
1610
|
-
(...j) =>
|
|
1626
|
+
(...j) => i.clearValue && i.clearValue(...j))
|
|
1611
1627
|
})) : w("", !0),
|
|
1612
1628
|
e.icon && !e.clearable ? (m(), p("joy-icon", {
|
|
1613
1629
|
key: 1,
|
|
1614
1630
|
role: "img",
|
|
1615
1631
|
class: "joy-input--decorative-icon",
|
|
1616
1632
|
name: e.icon
|
|
1617
|
-
}, null, 8,
|
|
1633
|
+
}, null, 8, no)) : w("", !0),
|
|
1618
1634
|
e.unit ? (m(), p("div", {
|
|
1619
1635
|
key: 2,
|
|
1620
1636
|
"data-unit": e.unit,
|
|
1621
1637
|
class: "joy-input--unit"
|
|
1622
|
-
}, null, 8,
|
|
1638
|
+
}, null, 8, ao)) : w("", !0)
|
|
1623
1639
|
], 2)
|
|
1624
1640
|
], 2)
|
|
1625
1641
|
], 2));
|
|
1626
1642
|
}
|
|
1627
1643
|
});
|
|
1628
|
-
const
|
|
1644
|
+
const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-8258d6d7"]]), so = ["teal", "white"], uo = ["href"], co = ["color", "name"], fo = /* @__PURE__ */ $({
|
|
1629
1645
|
__name: "VJoyLink",
|
|
1630
1646
|
props: {
|
|
1631
1647
|
href: {
|
|
@@ -1636,28 +1652,28 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
|
|
|
1636
1652
|
type: String,
|
|
1637
1653
|
default: "teal",
|
|
1638
1654
|
validator(e) {
|
|
1639
|
-
return
|
|
1655
|
+
return so.includes(e);
|
|
1640
1656
|
}
|
|
1641
1657
|
},
|
|
1642
1658
|
icon: String
|
|
1643
1659
|
},
|
|
1644
1660
|
setup(e) {
|
|
1645
1661
|
const t = e, l = x(() => t.color === "white" ? "white" : "teal");
|
|
1646
|
-
return (o,
|
|
1662
|
+
return (o, n) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
|
|
1647
1663
|
class: ["joy-link", `joy-link_${e.color}`]
|
|
1648
1664
|
}), [
|
|
1649
1665
|
e.icon ? (m(), p("joy-icon", {
|
|
1650
1666
|
key: 0,
|
|
1651
1667
|
color: _(l),
|
|
1652
1668
|
name: e.icon
|
|
1653
|
-
}, null, 8,
|
|
1669
|
+
}, null, 8, co)) : w("", !0),
|
|
1654
1670
|
g(o.$slots, "default", {}, void 0, !0)
|
|
1655
|
-
], 16,
|
|
1671
|
+
], 16, uo));
|
|
1656
1672
|
}
|
|
1657
1673
|
});
|
|
1658
|
-
const
|
|
1674
|
+
const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-7ef59bc8"]]), vo = ["id"], mo = {
|
|
1659
1675
|
class: /* @__PURE__ */ k(["joy-multi-checkbox"])
|
|
1660
|
-
},
|
|
1676
|
+
}, po = /* @__PURE__ */ $({
|
|
1661
1677
|
__name: "VJoyMultiCheckbox",
|
|
1662
1678
|
props: {
|
|
1663
1679
|
options: {
|
|
@@ -1697,14 +1713,14 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1697
1713
|
emits: ["update:value"],
|
|
1698
1714
|
setup(e, { emit: t }) {
|
|
1699
1715
|
const l = e;
|
|
1700
|
-
function o(
|
|
1701
|
-
return l.value.includes(
|
|
1716
|
+
function o(r) {
|
|
1717
|
+
return l.value.includes(r.value);
|
|
1702
1718
|
}
|
|
1703
|
-
function
|
|
1704
|
-
let
|
|
1705
|
-
s ?
|
|
1719
|
+
function n(r, s) {
|
|
1720
|
+
let a = [...l.value || []];
|
|
1721
|
+
s ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
|
|
1706
1722
|
}
|
|
1707
|
-
return (
|
|
1723
|
+
return (r, s) => (m(), p("fieldset", {
|
|
1708
1724
|
id: e.id,
|
|
1709
1725
|
class: "joy-multi-checkbox__wrapper"
|
|
1710
1726
|
}, [
|
|
@@ -1720,42 +1736,42 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
|
|
|
1720
1736
|
]),
|
|
1721
1737
|
_: 1
|
|
1722
1738
|
}, 8, ["required", "optional-label", "size"])) : w("", !0),
|
|
1723
|
-
h("div",
|
|
1724
|
-
(m(!0), p(ye, null, ve(e.options, (
|
|
1725
|
-
id:
|
|
1726
|
-
key:
|
|
1727
|
-
name:
|
|
1728
|
-
value:
|
|
1729
|
-
checked: o(
|
|
1730
|
-
"onUpdate:checked": (c) => a
|
|
1739
|
+
h("div", mo, [
|
|
1740
|
+
(m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(he), {
|
|
1741
|
+
id: a.id,
|
|
1742
|
+
key: a.id,
|
|
1743
|
+
name: a.name,
|
|
1744
|
+
value: a.value,
|
|
1745
|
+
checked: o(a),
|
|
1746
|
+
"onUpdate:checked": (c) => n(a.value, c)
|
|
1731
1747
|
}, {
|
|
1732
1748
|
default: L(() => [
|
|
1733
|
-
g(
|
|
1734
|
-
J(I(
|
|
1749
|
+
g(r.$slots, "checkbox", me(pe(a)), () => [
|
|
1750
|
+
J(I(a.label), 1)
|
|
1735
1751
|
], !0)
|
|
1736
1752
|
]),
|
|
1737
1753
|
_: 2
|
|
1738
1754
|
}, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
|
|
1739
1755
|
])
|
|
1740
|
-
], 8,
|
|
1756
|
+
], 8, vo));
|
|
1741
1757
|
}
|
|
1742
1758
|
});
|
|
1743
|
-
const
|
|
1759
|
+
const ho = /* @__PURE__ */ V(po, [["__scopeId", "data-v-f4301a1f"]]), bo = ["small", "medium", "large"], go = {
|
|
1744
1760
|
key: 0,
|
|
1745
1761
|
class: /* @__PURE__ */ k(["joy-panel__header"])
|
|
1746
|
-
},
|
|
1762
|
+
}, _o = {
|
|
1747
1763
|
key: 0,
|
|
1748
1764
|
class: "joy-panel__header-title"
|
|
1749
|
-
},
|
|
1765
|
+
}, wo = {
|
|
1750
1766
|
key: 1,
|
|
1751
1767
|
class: "joy-panel__header-action"
|
|
1752
|
-
},
|
|
1768
|
+
}, So = {
|
|
1753
1769
|
key: 2,
|
|
1754
1770
|
class: "joy-panel__header-subtitle"
|
|
1755
|
-
},
|
|
1771
|
+
}, jo = { class: "joy-panel__body" }, ko = {
|
|
1756
1772
|
key: 1,
|
|
1757
1773
|
class: "joy-panel__footer"
|
|
1758
|
-
},
|
|
1774
|
+
}, $o = /* @__PURE__ */ $({
|
|
1759
1775
|
__name: "VJoyPanel",
|
|
1760
1776
|
props: {
|
|
1761
1777
|
flex: {
|
|
@@ -1769,62 +1785,59 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
|
|
|
1769
1785
|
type: String,
|
|
1770
1786
|
default: "medium",
|
|
1771
1787
|
validator(e) {
|
|
1772
|
-
return
|
|
1788
|
+
return bo.includes(e);
|
|
1773
1789
|
}
|
|
1774
1790
|
}
|
|
1775
1791
|
},
|
|
1776
1792
|
setup(e) {
|
|
1777
|
-
const t = W(), l = b(), o = x(() =>
|
|
1778
|
-
|
|
1779
|
-
return (i = l.value) == null ? void 0 : i.closest(".joy-wrapper");
|
|
1780
|
-
}), a = x(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
|
|
1781
|
-
return (i, s) => (m(), p("section", {
|
|
1793
|
+
const t = W(), l = b(), o = x(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
|
|
1794
|
+
return (n, r) => (m(), p("section", {
|
|
1782
1795
|
ref_key: "panel",
|
|
1783
1796
|
ref: l,
|
|
1784
1797
|
style: K({ flex: e.flex }),
|
|
1785
|
-
class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin
|
|
1798
|
+
class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin }])
|
|
1786
1799
|
}, [
|
|
1787
|
-
_(
|
|
1788
|
-
_(t)["panel-title"] ? (m(), p("div",
|
|
1789
|
-
g(
|
|
1800
|
+
_(o) ? (m(), p("header", go, [
|
|
1801
|
+
_(t)["panel-title"] ? (m(), p("div", _o, [
|
|
1802
|
+
g(n.$slots, "panel-title", {}, void 0, !0)
|
|
1790
1803
|
])) : w("", !0),
|
|
1791
|
-
_(t)["panel-action"] ? (m(), p("div",
|
|
1792
|
-
g(
|
|
1804
|
+
_(t)["panel-title-action"] ? (m(), p("div", wo, [
|
|
1805
|
+
g(n.$slots, "panel-title-action", {}, void 0, !0)
|
|
1793
1806
|
])) : w("", !0),
|
|
1794
|
-
_(t)["panel-subtitle"] ? (m(), p("div",
|
|
1795
|
-
g(
|
|
1807
|
+
_(t)["panel-subtitle"] ? (m(), p("div", So, [
|
|
1808
|
+
g(n.$slots, "panel-subtitle", {}, void 0, !0)
|
|
1796
1809
|
])) : w("", !0)
|
|
1797
1810
|
])) : w("", !0),
|
|
1798
|
-
h("div",
|
|
1799
|
-
g(
|
|
1811
|
+
h("div", jo, [
|
|
1812
|
+
g(n.$slots, "panel-body", {}, void 0, !0)
|
|
1800
1813
|
]),
|
|
1801
|
-
_(t)["panel-action"] ? (m(), p("footer",
|
|
1802
|
-
g(
|
|
1814
|
+
_(t)["panel-action"] ? (m(), p("footer", ko, [
|
|
1815
|
+
g(n.$slots, "panel-action", {}, void 0, !0)
|
|
1803
1816
|
])) : w("", !0)
|
|
1804
1817
|
], 6));
|
|
1805
1818
|
}
|
|
1806
1819
|
});
|
|
1807
|
-
const
|
|
1820
|
+
const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-1aadee0b"]]), xo = { class: "joy-panel-section" }, Oo = {
|
|
1808
1821
|
key: 0,
|
|
1809
1822
|
class: "joy-panel-section__title"
|
|
1810
|
-
},
|
|
1823
|
+
}, Io = {
|
|
1811
1824
|
key: 1,
|
|
1812
1825
|
class: "joy-panel-section__content"
|
|
1813
|
-
},
|
|
1826
|
+
}, Bo = /* @__PURE__ */ $({
|
|
1814
1827
|
__name: "VJoyPanelSection",
|
|
1815
1828
|
setup(e) {
|
|
1816
1829
|
const t = W();
|
|
1817
|
-
return (l, o) => (m(), p("div",
|
|
1818
|
-
_(t)["panel-section-title"] ? (m(), p("div",
|
|
1830
|
+
return (l, o) => (m(), p("div", xo, [
|
|
1831
|
+
_(t)["panel-section-title"] ? (m(), p("div", Oo, [
|
|
1819
1832
|
g(l.$slots, "panel-section-title", {}, void 0, !0)
|
|
1820
1833
|
])) : w("", !0),
|
|
1821
|
-
_(t)["panel-section-content"] ? (m(), p("div",
|
|
1834
|
+
_(t)["panel-section-content"] ? (m(), p("div", Io, [
|
|
1822
1835
|
g(l.$slots, "panel-section-content", {}, void 0, !0)
|
|
1823
1836
|
])) : w("", !0)
|
|
1824
1837
|
]));
|
|
1825
1838
|
}
|
|
1826
1839
|
});
|
|
1827
|
-
const
|
|
1840
|
+
const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id", "value", "checked", "disabled", "required", "name"], Po = { class: "joy-radio-label" }, Co = { class: "joy-radio-content__wrapper" }, Jo = { class: "joy-radio-content" }, qo = /* @__PURE__ */ $({
|
|
1828
1841
|
__name: "VJoyRadio",
|
|
1829
1842
|
props: {
|
|
1830
1843
|
disabled: {
|
|
@@ -1860,9 +1873,9 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1860
1873
|
},
|
|
1861
1874
|
emits: ["update:modelValue"],
|
|
1862
1875
|
setup(e, { expose: t, emit: l }) {
|
|
1863
|
-
const o = e,
|
|
1876
|
+
const o = e, n = b(!1), r = b(!1), s = b(null), a = b(null), c = W(), f = x(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
|
|
1864
1877
|
function u() {
|
|
1865
|
-
|
|
1878
|
+
n.value = !!c["expandable-content"] && f.value;
|
|
1866
1879
|
}
|
|
1867
1880
|
function v() {
|
|
1868
1881
|
l("update:modelValue", o.value), u();
|
|
@@ -1870,11 +1883,11 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1870
1883
|
Z(() => {
|
|
1871
1884
|
o.theme === "outline" && u();
|
|
1872
1885
|
});
|
|
1873
|
-
function
|
|
1874
|
-
|
|
1886
|
+
function i() {
|
|
1887
|
+
r.value = !0;
|
|
1875
1888
|
}
|
|
1876
1889
|
function y() {
|
|
1877
|
-
|
|
1890
|
+
r.value = !1;
|
|
1878
1891
|
}
|
|
1879
1892
|
return B(
|
|
1880
1893
|
() => o.modelValue,
|
|
@@ -1883,7 +1896,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1883
1896
|
}
|
|
1884
1897
|
), t({
|
|
1885
1898
|
checked: f,
|
|
1886
|
-
isExpanded:
|
|
1899
|
+
isExpanded: n
|
|
1887
1900
|
}), (d, j) => (m(), p("label", {
|
|
1888
1901
|
ref_key: "root",
|
|
1889
1902
|
ref: s,
|
|
@@ -1894,8 +1907,8 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1894
1907
|
"joy-radio--checked": _(f),
|
|
1895
1908
|
"joy-radio--disabled": e.disabled,
|
|
1896
1909
|
"joy-radio--invalid": e.invalid,
|
|
1897
|
-
"joy-radio--outline-focus":
|
|
1898
|
-
"joy-radio--focus":
|
|
1910
|
+
"joy-radio--outline-focus": r.value && e.theme === "outline",
|
|
1911
|
+
"joy-radio--focus": r.value && e.theme === "default"
|
|
1899
1912
|
}
|
|
1900
1913
|
])
|
|
1901
1914
|
}, [
|
|
@@ -1908,20 +1921,20 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1908
1921
|
required: e.required,
|
|
1909
1922
|
name: e.name,
|
|
1910
1923
|
onChange: v,
|
|
1911
|
-
onFocus:
|
|
1924
|
+
onFocus: i,
|
|
1912
1925
|
onBlur: y
|
|
1913
|
-
}, null, 40,
|
|
1914
|
-
h("span",
|
|
1926
|
+
}, null, 40, Eo),
|
|
1927
|
+
h("span", Po, [
|
|
1915
1928
|
g(d.$slots, "default", {}, void 0, !0)
|
|
1916
1929
|
]),
|
|
1917
1930
|
h("div", Co, [
|
|
1918
|
-
h("div",
|
|
1931
|
+
h("div", Jo, [
|
|
1919
1932
|
g(d.$slots, "radio-content", {}, void 0, !0)
|
|
1920
1933
|
]),
|
|
1921
1934
|
h("div", {
|
|
1922
1935
|
ref_key: "expandableElement",
|
|
1923
|
-
ref:
|
|
1924
|
-
class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded":
|
|
1936
|
+
ref: a,
|
|
1937
|
+
class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
|
|
1925
1938
|
}, [
|
|
1926
1939
|
g(d.$slots, "expandable-content", {}, void 0, !0)
|
|
1927
1940
|
], 2)
|
|
@@ -1929,7 +1942,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
|
|
|
1929
1942
|
], 2));
|
|
1930
1943
|
}
|
|
1931
1944
|
});
|
|
1932
|
-
const
|
|
1945
|
+
const To = /* @__PURE__ */ V(qo, [["__scopeId", "data-v-24cea99b"]]), zo = ["form", "name"], Ao = /* @__PURE__ */ $({
|
|
1933
1946
|
__name: "VJoyRadioGroup",
|
|
1934
1947
|
props: {
|
|
1935
1948
|
direction: {
|
|
@@ -1957,13 +1970,13 @@ const qo = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-24cea99b"]]), To = ["for
|
|
|
1957
1970
|
}, [
|
|
1958
1971
|
g(t.$slots, "default", {}, void 0, !0)
|
|
1959
1972
|
], 2)
|
|
1960
|
-
], 8,
|
|
1973
|
+
], 8, zo));
|
|
1961
1974
|
}
|
|
1962
1975
|
});
|
|
1963
|
-
const
|
|
1976
|
+
const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-de56c3c4"]]), Do = (e) => (te("data-v-d251a432"), e = e(), le(), e), Ro = ["id", "name", "aria-invalid", "required", "disabled", "value"], Mo = /* @__PURE__ */ Do(() => /* @__PURE__ */ h("joy-icon", {
|
|
1964
1977
|
class: "joy-select__chevron",
|
|
1965
1978
|
name: "chevron-down"
|
|
1966
|
-
}, null, -1)),
|
|
1979
|
+
}, null, -1)), No = /* @__PURE__ */ $({
|
|
1967
1980
|
__name: "VJoySelect",
|
|
1968
1981
|
props: {
|
|
1969
1982
|
disabled: {
|
|
@@ -2004,15 +2017,15 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2004
2017
|
},
|
|
2005
2018
|
emits: ["update:modelValue"],
|
|
2006
2019
|
setup(e, { emit: t }) {
|
|
2007
|
-
const l = e, o = b(),
|
|
2020
|
+
const l = e, o = b(), n = b(), r = W(), s = b(!1);
|
|
2008
2021
|
Z(() => {
|
|
2009
|
-
var
|
|
2010
|
-
const u =
|
|
2022
|
+
var i;
|
|
2023
|
+
const u = r.label && r.label();
|
|
2011
2024
|
if (!u || !u.length)
|
|
2012
2025
|
return;
|
|
2013
2026
|
const v = u[0];
|
|
2014
2027
|
if (v.type === "JoyLabel") {
|
|
2015
|
-
const y = (
|
|
2028
|
+
const y = (i = v.props) == null ? void 0 : i.for;
|
|
2016
2029
|
if (!y) {
|
|
2017
2030
|
console.warn("JoyLabel for attribute is missing");
|
|
2018
2031
|
return;
|
|
@@ -2020,7 +2033,7 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2020
2033
|
y !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
|
|
2021
2034
|
}
|
|
2022
2035
|
});
|
|
2023
|
-
function
|
|
2036
|
+
function a(u) {
|
|
2024
2037
|
const v = u.target.value;
|
|
2025
2038
|
t("update:modelValue", v);
|
|
2026
2039
|
}
|
|
@@ -2059,25 +2072,25 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
|
|
|
2059
2072
|
h("select", {
|
|
2060
2073
|
id: e.id || e.name,
|
|
2061
2074
|
ref_key: "select",
|
|
2062
|
-
ref:
|
|
2075
|
+
ref: n,
|
|
2063
2076
|
class: "joy-select",
|
|
2064
2077
|
name: e.name,
|
|
2065
2078
|
"aria-invalid": e.invalid,
|
|
2066
2079
|
required: e.required,
|
|
2067
2080
|
disabled: e.disabled,
|
|
2068
2081
|
value: e.modelValue,
|
|
2069
|
-
onInput:
|
|
2082
|
+
onInput: a,
|
|
2070
2083
|
onFocus: c,
|
|
2071
2084
|
onBlur: f
|
|
2072
2085
|
}, [
|
|
2073
2086
|
g(u.$slots, "default", {}, void 0, !0)
|
|
2074
|
-
], 40,
|
|
2075
|
-
|
|
2087
|
+
], 40, Ro),
|
|
2088
|
+
Mo
|
|
2076
2089
|
], 2)
|
|
2077
2090
|
], 512));
|
|
2078
2091
|
}
|
|
2079
2092
|
});
|
|
2080
|
-
const
|
|
2093
|
+
const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["aria-disabled"], Uo = ["id", "value", "checked", "disabled", "required", "name"], Go = /* @__PURE__ */ $({
|
|
2081
2094
|
__name: "VJoySelectableItem",
|
|
2082
2095
|
props: {
|
|
2083
2096
|
disabled: {
|
|
@@ -2114,7 +2127,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2114
2127
|
},
|
|
2115
2128
|
emits: ["update:checked"],
|
|
2116
2129
|
setup(e, { emit: t }) {
|
|
2117
|
-
const l = e, o = b(l.checked),
|
|
2130
|
+
const l = e, o = b(l.checked), n = b(), r = b(!1), s = l.multiple ? "div" : "label", a = {
|
|
2118
2131
|
onRadioChange: () => {
|
|
2119
2132
|
t("update:checked", l.value);
|
|
2120
2133
|
},
|
|
@@ -2125,10 +2138,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2125
2138
|
l.multiple || f.stopPropagation();
|
|
2126
2139
|
},
|
|
2127
2140
|
onFocus: () => {
|
|
2128
|
-
|
|
2141
|
+
r.value = !0;
|
|
2129
2142
|
},
|
|
2130
2143
|
onBlur: () => {
|
|
2131
|
-
|
|
2144
|
+
r.value = !1;
|
|
2132
2145
|
}
|
|
2133
2146
|
};
|
|
2134
2147
|
function c(f) {
|
|
@@ -2138,18 +2151,18 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2138
2151
|
class: k([
|
|
2139
2152
|
"joy-selectable-item__wrapper",
|
|
2140
2153
|
{
|
|
2141
|
-
"joy-selectable-item--focusing":
|
|
2154
|
+
"joy-selectable-item--focusing": r.value
|
|
2142
2155
|
}
|
|
2143
2156
|
]),
|
|
2144
2157
|
"aria-disabled": e.disabled,
|
|
2145
2158
|
onClick: u[4] || (u[4] = //@ts-ignore
|
|
2146
|
-
(...v) =>
|
|
2159
|
+
(...v) => a.onClick && a.onClick(...v))
|
|
2147
2160
|
}, [
|
|
2148
2161
|
e.multiple ? w("", !0) : (m(), p("input", {
|
|
2149
2162
|
key: 0,
|
|
2150
2163
|
id: e.id,
|
|
2151
2164
|
ref_key: "inputRadio",
|
|
2152
|
-
ref:
|
|
2165
|
+
ref: n,
|
|
2153
2166
|
type: "radio",
|
|
2154
2167
|
value: e.value,
|
|
2155
2168
|
checked: e.checked,
|
|
@@ -2157,12 +2170,12 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2157
2170
|
required: e.required,
|
|
2158
2171
|
name: e.name,
|
|
2159
2172
|
onChange: u[0] || (u[0] = //@ts-ignore
|
|
2160
|
-
(...v) =>
|
|
2173
|
+
(...v) => a.onRadioChange && a.onRadioChange(...v)),
|
|
2161
2174
|
onFocus: u[1] || (u[1] = //@ts-ignore
|
|
2162
|
-
(...v) =>
|
|
2175
|
+
(...v) => a.onFocus && a.onFocus(...v)),
|
|
2163
2176
|
onBlur: u[2] || (u[2] = //@ts-ignore
|
|
2164
|
-
(...v) =>
|
|
2165
|
-
}, null, 40,
|
|
2177
|
+
(...v) => a.onBlur && a.onBlur(...v))
|
|
2178
|
+
}, null, 40, Uo)),
|
|
2166
2179
|
(m(), q(ce(_(s)), {
|
|
2167
2180
|
for: e.id,
|
|
2168
2181
|
class: k([
|
|
@@ -2174,7 +2187,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2174
2187
|
"joy-selectable-item--single": !e.multiple
|
|
2175
2188
|
}
|
|
2176
2189
|
]),
|
|
2177
|
-
onClick:
|
|
2190
|
+
onClick: a.onLabelClick
|
|
2178
2191
|
}, {
|
|
2179
2192
|
default: L(() => [
|
|
2180
2193
|
e.multiple ? (m(), q(_(he), {
|
|
@@ -2190,8 +2203,8 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2190
2203
|
name: e.name,
|
|
2191
2204
|
"display-focus": !1,
|
|
2192
2205
|
required: e.required,
|
|
2193
|
-
onFocus:
|
|
2194
|
-
onBlur:
|
|
2206
|
+
onFocus: a.onFocus,
|
|
2207
|
+
onBlur: a.onBlur
|
|
2195
2208
|
}, {
|
|
2196
2209
|
default: L(() => [
|
|
2197
2210
|
g(f.$slots, "default", {}, void 0, !0)
|
|
@@ -2207,10 +2220,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
|
|
|
2207
2220
|
]),
|
|
2208
2221
|
_: 3
|
|
2209
2222
|
}, 8, ["for", "class", "onClick"]))
|
|
2210
|
-
], 10,
|
|
2223
|
+
], 10, Wo));
|
|
2211
2224
|
}
|
|
2212
2225
|
});
|
|
2213
|
-
const tt = /* @__PURE__ */ V(
|
|
2226
|
+
const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"], Qo = /* @__PURE__ */ $({
|
|
2214
2227
|
__name: "VJoySelectableItemGroup",
|
|
2215
2228
|
props: {
|
|
2216
2229
|
options: {
|
|
@@ -2252,16 +2265,16 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
|
|
|
2252
2265
|
emits: ["update:value"],
|
|
2253
2266
|
setup(e, { emit: t }) {
|
|
2254
2267
|
const l = e;
|
|
2255
|
-
function o(
|
|
2256
|
-
return typeof l.value == "string" ? l.value ===
|
|
2268
|
+
function o(r) {
|
|
2269
|
+
return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
|
|
2257
2270
|
}
|
|
2258
|
-
function
|
|
2271
|
+
function n(r, s) {
|
|
2259
2272
|
if (!l.multiple)
|
|
2260
2273
|
return t("update:value", s);
|
|
2261
|
-
let
|
|
2262
|
-
s && typeof s == "boolean" ?
|
|
2274
|
+
let a = [...l.value || []];
|
|
2275
|
+
s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
|
|
2263
2276
|
}
|
|
2264
|
-
return (
|
|
2277
|
+
return (r, s) => (m(), p("fieldset", {
|
|
2265
2278
|
id: e.id,
|
|
2266
2279
|
class: "joy-selectable-item-group__wrapper"
|
|
2267
2280
|
}, [
|
|
@@ -2287,33 +2300,33 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
|
|
|
2287
2300
|
}
|
|
2288
2301
|
])
|
|
2289
2302
|
}, [
|
|
2290
|
-
(m(!0), p(ye, null, ve(e.options, (
|
|
2291
|
-
id:
|
|
2292
|
-
key:
|
|
2293
|
-
name:
|
|
2294
|
-
value:
|
|
2303
|
+
(m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(tt), {
|
|
2304
|
+
id: a.id,
|
|
2305
|
+
key: a.id,
|
|
2306
|
+
name: a.name,
|
|
2307
|
+
value: a.value,
|
|
2295
2308
|
multiple: e.multiple,
|
|
2296
|
-
checked: o(
|
|
2297
|
-
"onUpdate:checked": (c) => a
|
|
2309
|
+
checked: o(a),
|
|
2310
|
+
"onUpdate:checked": (c) => n(a.value, c)
|
|
2298
2311
|
}, ut({
|
|
2299
2312
|
default: L(() => [
|
|
2300
|
-
J(I(
|
|
2313
|
+
J(I(a.label) + " ", 1)
|
|
2301
2314
|
]),
|
|
2302
2315
|
_: 2
|
|
2303
2316
|
}, [
|
|
2304
|
-
|
|
2317
|
+
a.subLabel ? {
|
|
2305
2318
|
name: "selectable-item-sublabel",
|
|
2306
2319
|
fn: L(() => [
|
|
2307
|
-
J(I(
|
|
2320
|
+
J(I(a.subLabel), 1)
|
|
2308
2321
|
]),
|
|
2309
2322
|
key: "0"
|
|
2310
2323
|
} : void 0
|
|
2311
2324
|
]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
|
|
2312
2325
|
], 2)
|
|
2313
|
-
], 8,
|
|
2326
|
+
], 8, Ko));
|
|
2314
2327
|
}
|
|
2315
2328
|
});
|
|
2316
|
-
const
|
|
2329
|
+
const Zo = /* @__PURE__ */ V(Qo, [["__scopeId", "data-v-3ba17434"]]), Yo = /* @__PURE__ */ $({
|
|
2317
2330
|
__name: "VJoyWrapper",
|
|
2318
2331
|
props: {
|
|
2319
2332
|
justify: {
|
|
@@ -2352,25 +2365,25 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @_
|
|
|
2352
2365
|
], 2));
|
|
2353
2366
|
}
|
|
2354
2367
|
});
|
|
2355
|
-
const
|
|
2368
|
+
const Xo = /* @__PURE__ */ V(Yo, [["__scopeId", "data-v-477e149b"]]), en = { class: "joy-template__wrapper" }, tn = {
|
|
2356
2369
|
key: 0,
|
|
2357
2370
|
class: "joy-template__heading"
|
|
2358
|
-
},
|
|
2371
|
+
}, ln = {
|
|
2359
2372
|
key: 0,
|
|
2360
2373
|
class: "joy-template-slot-back"
|
|
2361
|
-
},
|
|
2374
|
+
}, on = { class: "joy-template__heading___headings" }, nn = {
|
|
2362
2375
|
key: 0,
|
|
2363
2376
|
class: "joy-template-slot-title"
|
|
2364
|
-
},
|
|
2377
|
+
}, an = {
|
|
2365
2378
|
key: 1,
|
|
2366
2379
|
class: "joy-template-slot-subtitle"
|
|
2367
|
-
},
|
|
2380
|
+
}, rn = {
|
|
2368
2381
|
key: 0,
|
|
2369
2382
|
class: "joy-template-slot-main"
|
|
2370
|
-
},
|
|
2383
|
+
}, sn = {
|
|
2371
2384
|
key: 1,
|
|
2372
2385
|
class: "joy-template-slot-sidebar"
|
|
2373
|
-
},
|
|
2386
|
+
}, un = /* @__PURE__ */ $({
|
|
2374
2387
|
__name: "VJoyTemplate",
|
|
2375
2388
|
props: {
|
|
2376
2389
|
full: { type: Boolean, default: !1 },
|
|
@@ -2378,20 +2391,20 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
|
|
|
2378
2391
|
},
|
|
2379
2392
|
setup(e) {
|
|
2380
2393
|
const t = e, l = W(), o = x(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"]);
|
|
2381
|
-
return (
|
|
2394
|
+
return (n, r) => (m(), p("main", {
|
|
2382
2395
|
class: k(["joy-template", { "joy-template--full": t.full }])
|
|
2383
2396
|
}, [
|
|
2384
|
-
h("div",
|
|
2385
|
-
_(o) ? (m(), p("div",
|
|
2386
|
-
_(l)["template-back"] ? (m(), p("div",
|
|
2387
|
-
g(
|
|
2397
|
+
h("div", en, [
|
|
2398
|
+
_(o) ? (m(), p("div", tn, [
|
|
2399
|
+
_(l)["template-back"] ? (m(), p("div", ln, [
|
|
2400
|
+
g(n.$slots, "template-back", {}, void 0, !0)
|
|
2388
2401
|
])) : w("", !0),
|
|
2389
|
-
h("div",
|
|
2390
|
-
_(l)["template-title"] ? (m(), p("div",
|
|
2391
|
-
g(
|
|
2402
|
+
h("div", on, [
|
|
2403
|
+
_(l)["template-title"] ? (m(), p("div", nn, [
|
|
2404
|
+
g(n.$slots, "template-title", {}, void 0, !0)
|
|
2392
2405
|
])) : w("", !0),
|
|
2393
|
-
_(l)["template-subtitle"] ? (m(), p("div",
|
|
2394
|
-
g(
|
|
2406
|
+
_(l)["template-subtitle"] ? (m(), p("div", an, [
|
|
2407
|
+
g(n.$slots, "template-subtitle", {}, void 0, !0)
|
|
2395
2408
|
])) : w("", !0)
|
|
2396
2409
|
])
|
|
2397
2410
|
])) : w("", !0),
|
|
@@ -2403,26 +2416,26 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
|
|
|
2403
2416
|
}
|
|
2404
2417
|
])
|
|
2405
2418
|
}, [
|
|
2406
|
-
|
|
2407
|
-
g(
|
|
2419
|
+
n.$slots["template-main"] ? (m(), p("div", rn, [
|
|
2420
|
+
g(n.$slots, "template-main", {}, void 0, !0)
|
|
2408
2421
|
])) : w("", !0),
|
|
2409
|
-
|
|
2410
|
-
g(
|
|
2422
|
+
n.$slots["template-sidebar"] ? (m(), p("div", sn, [
|
|
2423
|
+
g(n.$slots, "template-sidebar", {}, void 0, !0)
|
|
2411
2424
|
])) : w("", !0)
|
|
2412
2425
|
], 2)
|
|
2413
2426
|
])
|
|
2414
2427
|
], 2));
|
|
2415
2428
|
}
|
|
2416
2429
|
});
|
|
2417
|
-
const
|
|
2430
|
+
const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["aria-disabled"], fn = { class: "joy-textarea_wrapper" }, yn = ["id", "disabled", "name", "required", "minlength", "value"], vn = {
|
|
2418
2431
|
key: 0,
|
|
2419
2432
|
class: "joy-textarea_helpers"
|
|
2420
|
-
},
|
|
2433
|
+
}, mn = {
|
|
2421
2434
|
key: 0,
|
|
2422
2435
|
name: "check",
|
|
2423
2436
|
color: "grey",
|
|
2424
2437
|
size: "xxsmall"
|
|
2425
|
-
},
|
|
2438
|
+
}, pn = /* @__PURE__ */ $({
|
|
2426
2439
|
__name: "VJoyTextarea",
|
|
2427
2440
|
props: {
|
|
2428
2441
|
disabled: {
|
|
@@ -2471,24 +2484,24 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2471
2484
|
},
|
|
2472
2485
|
emits: ["update:modelValue"],
|
|
2473
2486
|
setup(e, { expose: t, emit: l }) {
|
|
2474
|
-
const o = e,
|
|
2475
|
-
element: o.autogrow ?
|
|
2476
|
-
}), s = b(!1),
|
|
2487
|
+
const o = e, n = b(), { triggerResize: r } = tl({
|
|
2488
|
+
element: o.autogrow ? n : void 0
|
|
2489
|
+
}), s = b(!1), a = b(!1), c = x(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = x(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
|
|
2477
2490
|
onInput: (v) => {
|
|
2478
|
-
l("update:modelValue", v.target.value),
|
|
2491
|
+
l("update:modelValue", v.target.value), r();
|
|
2479
2492
|
},
|
|
2480
2493
|
onBlur: () => {
|
|
2481
|
-
|
|
2494
|
+
a.value = !1, s.value = c.value || f.value;
|
|
2482
2495
|
},
|
|
2483
2496
|
onFocus: () => {
|
|
2484
|
-
|
|
2497
|
+
a.value = !0;
|
|
2485
2498
|
}
|
|
2486
2499
|
};
|
|
2487
2500
|
return t({
|
|
2488
2501
|
isInvalid: s,
|
|
2489
2502
|
valueOverMaxlength: c,
|
|
2490
2503
|
valueUnderMinlength: f
|
|
2491
|
-
}), (v,
|
|
2504
|
+
}), (v, i) => (m(), p("div", {
|
|
2492
2505
|
"aria-disabled": e.disabled,
|
|
2493
2506
|
class: k([
|
|
2494
2507
|
"joy-textarea",
|
|
@@ -2496,7 +2509,7 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2496
2509
|
"joy-textarea_invalid": s.value || e.invalid,
|
|
2497
2510
|
"joy-textarea_disabled": e.disabled,
|
|
2498
2511
|
"joy-textarea_autogrow": e.autogrow,
|
|
2499
|
-
"joy-textarea_focusing":
|
|
2512
|
+
"joy-textarea_focusing": a.value
|
|
2500
2513
|
}
|
|
2501
2514
|
])
|
|
2502
2515
|
}, [
|
|
@@ -2513,31 +2526,31 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2513
2526
|
]),
|
|
2514
2527
|
_: 3
|
|
2515
2528
|
}, 8, ["for", "required", "optional-label", "size"]),
|
|
2516
|
-
h("div",
|
|
2529
|
+
h("div", fn, [
|
|
2517
2530
|
h("textarea", Q(v.$attrs, {
|
|
2518
2531
|
id: e.id,
|
|
2519
2532
|
ref_key: "textarea",
|
|
2520
|
-
ref:
|
|
2533
|
+
ref: n,
|
|
2521
2534
|
class: "joy-native-textarea",
|
|
2522
2535
|
disabled: e.disabled,
|
|
2523
2536
|
name: e.name,
|
|
2524
2537
|
required: e.required,
|
|
2525
2538
|
minlength: e.minlength,
|
|
2526
2539
|
value: e.modelValue,
|
|
2527
|
-
onInput:
|
|
2540
|
+
onInput: i[0] || (i[0] = //@ts-ignore
|
|
2528
2541
|
(...y) => u.onInput && u.onInput(...y)),
|
|
2529
|
-
onFocus:
|
|
2542
|
+
onFocus: i[1] || (i[1] = //@ts-ignore
|
|
2530
2543
|
(...y) => u.onFocus && u.onFocus(...y)),
|
|
2531
|
-
onBlur:
|
|
2544
|
+
onBlur: i[2] || (i[2] = //@ts-ignore
|
|
2532
2545
|
(...y) => u.onBlur && u.onBlur(...y))
|
|
2533
|
-
}), null, 16,
|
|
2546
|
+
}), null, 16, yn)
|
|
2534
2547
|
]),
|
|
2535
|
-
e.minlength || e.maxlength ? (m(), p("div",
|
|
2548
|
+
e.minlength || e.maxlength ? (m(), p("div", vn, [
|
|
2536
2549
|
e.minlength ? (m(), p("p", {
|
|
2537
2550
|
key: 0,
|
|
2538
2551
|
class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
|
|
2539
2552
|
}, [
|
|
2540
|
-
_(f) ? w("", !0) : (m(), p("joy-icon",
|
|
2553
|
+
_(f) ? w("", !0) : (m(), p("joy-icon", mn)),
|
|
2541
2554
|
J(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
|
|
2542
2555
|
], 2)) : w("", !0),
|
|
2543
2556
|
e.maxlength ? (m(), p("p", {
|
|
@@ -2545,10 +2558,10 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
|
|
|
2545
2558
|
class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
|
|
2546
2559
|
}, I(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
|
|
2547
2560
|
])) : w("", !0)
|
|
2548
|
-
], 10,
|
|
2561
|
+
], 10, cn));
|
|
2549
2562
|
}
|
|
2550
2563
|
});
|
|
2551
|
-
const
|
|
2564
|
+
const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) => (te("data-v-cf79d999"), e = e(), le(), e), bn = { class: "joy-toggle__wrapper" }, gn = ["name", "disabled", "checked", "required", "aria-checked", "value"], _n = { class: "joy-toggle__content" }, wn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), Sn = { class: "joy-toggle__content-label" }, jn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
|
|
2552
2565
|
/* @__PURE__ */ h("svg", {
|
|
2553
2566
|
width: "18",
|
|
2554
2567
|
height: "10",
|
|
@@ -2561,7 +2574,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2561
2574
|
fill: "currentColor"
|
|
2562
2575
|
})
|
|
2563
2576
|
])
|
|
2564
|
-
], -1)),
|
|
2577
|
+
], -1)), kn = /* @__PURE__ */ $({
|
|
2565
2578
|
__name: "VJoyToggle",
|
|
2566
2579
|
props: {
|
|
2567
2580
|
modelValue: {
|
|
@@ -2596,9 +2609,9 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2596
2609
|
emits: ["update:modelValue"],
|
|
2597
2610
|
setup(e, { emit: t }) {
|
|
2598
2611
|
const l = b(!1), o = {
|
|
2599
|
-
onChange: (
|
|
2600
|
-
const
|
|
2601
|
-
t("update:modelValue",
|
|
2612
|
+
onChange: (n) => {
|
|
2613
|
+
const r = n.target.checked;
|
|
2614
|
+
t("update:modelValue", r);
|
|
2602
2615
|
},
|
|
2603
2616
|
onFocus: () => {
|
|
2604
2617
|
l.value = !0;
|
|
@@ -2607,7 +2620,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2607
2620
|
l.value = !1;
|
|
2608
2621
|
}
|
|
2609
2622
|
};
|
|
2610
|
-
return (
|
|
2623
|
+
return (n, r) => (m(), p("div", bn, [
|
|
2611
2624
|
h("label", {
|
|
2612
2625
|
class: k([
|
|
2613
2626
|
"joy-toggle",
|
|
@@ -2629,83 +2642,83 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
|
|
|
2629
2642
|
required: e.required,
|
|
2630
2643
|
"aria-checked": e.modelValue,
|
|
2631
2644
|
value: e.value,
|
|
2632
|
-
onChange:
|
|
2645
|
+
onChange: r[0] || (r[0] = //@ts-ignore
|
|
2633
2646
|
(...s) => o.onChange && o.onChange(...s)),
|
|
2634
|
-
onFocus:
|
|
2647
|
+
onFocus: r[1] || (r[1] = //@ts-ignore
|
|
2635
2648
|
(...s) => o.onFocus && o.onFocus(...s)),
|
|
2636
|
-
onBlur:
|
|
2649
|
+
onBlur: r[2] || (r[2] = //@ts-ignore
|
|
2637
2650
|
(...s) => o.onBlur && o.onBlur(...s))
|
|
2638
|
-
}, null, 40,
|
|
2639
|
-
h("p",
|
|
2640
|
-
|
|
2641
|
-
h("span",
|
|
2642
|
-
g(
|
|
2651
|
+
}, null, 40, gn),
|
|
2652
|
+
h("p", _n, [
|
|
2653
|
+
wn,
|
|
2654
|
+
h("span", Sn, [
|
|
2655
|
+
g(n.$slots, "default", {}, () => [
|
|
2643
2656
|
J(I(e.label), 1)
|
|
2644
2657
|
], !0)
|
|
2645
2658
|
]),
|
|
2646
|
-
|
|
2659
|
+
jn
|
|
2647
2660
|
])
|
|
2648
2661
|
], 2)
|
|
2649
2662
|
]));
|
|
2650
2663
|
}
|
|
2651
2664
|
});
|
|
2652
|
-
const
|
|
2665
|
+
const $n = /* @__PURE__ */ V(kn, [["__scopeId", "data-v-cf79d999"]]), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2653
2666
|
__proto__: null,
|
|
2654
2667
|
VJoyBadge: ft,
|
|
2655
|
-
VJoyButton:
|
|
2668
|
+
VJoyButton: kt,
|
|
2656
2669
|
VJoyCheckbox: he,
|
|
2657
|
-
VJoyCounter:
|
|
2658
|
-
VJoyDropdown:
|
|
2670
|
+
VJoyCounter: Rt,
|
|
2671
|
+
VJoyDropdown: Dl,
|
|
2659
2672
|
VJoyDropdownList: Xe,
|
|
2660
2673
|
VJoyFormError: et,
|
|
2661
|
-
VJoyHighlight:
|
|
2662
|
-
VJoyInput:
|
|
2674
|
+
VJoyHighlight: Zl,
|
|
2675
|
+
VJoyInput: ro,
|
|
2663
2676
|
VJoyLabel: N,
|
|
2664
|
-
VJoyLink:
|
|
2665
|
-
VJoyMultiCheckbox:
|
|
2666
|
-
VJoyPanel:
|
|
2667
|
-
VJoyPanelSection:
|
|
2668
|
-
VJoyRadio:
|
|
2669
|
-
VJoyRadioGroup:
|
|
2670
|
-
VJoySelect:
|
|
2677
|
+
VJoyLink: yo,
|
|
2678
|
+
VJoyMultiCheckbox: ho,
|
|
2679
|
+
VJoyPanel: Vo,
|
|
2680
|
+
VJoyPanelSection: Lo,
|
|
2681
|
+
VJoyRadio: To,
|
|
2682
|
+
VJoyRadioGroup: Fo,
|
|
2683
|
+
VJoySelect: Ho,
|
|
2671
2684
|
VJoySelectableItem: tt,
|
|
2672
|
-
VJoySelectableItemGroup:
|
|
2685
|
+
VJoySelectableItemGroup: Zo,
|
|
2673
2686
|
VJoySpinner: He,
|
|
2674
|
-
VJoyTemplate:
|
|
2675
|
-
VJoyTextarea:
|
|
2676
|
-
VJoyToggle:
|
|
2677
|
-
VJoyWrapper:
|
|
2678
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2687
|
+
VJoyTemplate: dn,
|
|
2688
|
+
VJoyTextarea: hn,
|
|
2689
|
+
VJoyToggle: $n,
|
|
2690
|
+
VJoyWrapper: Xo
|
|
2691
|
+
}, Symbol.toStringTag, { value: "Module" })), On = {
|
|
2679
2692
|
install: (e) => {
|
|
2680
|
-
Object.entries(
|
|
2693
|
+
Object.entries(Vn).forEach(([t, l]) => {
|
|
2681
2694
|
e.component(t, l);
|
|
2682
2695
|
});
|
|
2683
2696
|
}
|
|
2684
2697
|
};
|
|
2685
2698
|
export {
|
|
2686
|
-
|
|
2699
|
+
On as JoyVuePlugin,
|
|
2687
2700
|
ft as VJoyBadge,
|
|
2688
|
-
|
|
2701
|
+
kt as VJoyButton,
|
|
2689
2702
|
he as VJoyCheckbox,
|
|
2690
|
-
|
|
2691
|
-
|
|
2703
|
+
Rt as VJoyCounter,
|
|
2704
|
+
Dl as VJoyDropdown,
|
|
2692
2705
|
Xe as VJoyDropdownList,
|
|
2693
2706
|
et as VJoyFormError,
|
|
2694
|
-
|
|
2695
|
-
|
|
2707
|
+
Zl as VJoyHighlight,
|
|
2708
|
+
ro as VJoyInput,
|
|
2696
2709
|
N as VJoyLabel,
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2710
|
+
yo as VJoyLink,
|
|
2711
|
+
ho as VJoyMultiCheckbox,
|
|
2712
|
+
Vo as VJoyPanel,
|
|
2713
|
+
Lo as VJoyPanelSection,
|
|
2714
|
+
To as VJoyRadio,
|
|
2715
|
+
Fo as VJoyRadioGroup,
|
|
2716
|
+
Ho as VJoySelect,
|
|
2704
2717
|
tt as VJoySelectableItem,
|
|
2705
|
-
|
|
2718
|
+
Zo as VJoySelectableItemGroup,
|
|
2706
2719
|
He as VJoySpinner,
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2720
|
+
dn as VJoyTemplate,
|
|
2721
|
+
hn as VJoyTextarea,
|
|
2722
|
+
$n as VJoyToggle,
|
|
2723
|
+
Xo as VJoyWrapper
|
|
2711
2724
|
};
|