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