@atelier-ui/vue 0.0.29 → 0.0.30
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/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as v, ref as C, provide as H, computed as p, openBlock as s, createElementBlock as
|
|
2
|
-
const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"),
|
|
1
|
+
import { defineComponent as v, ref as C, provide as H, computed as p, openBlock as s, createElementBlock as o, normalizeClass as y, renderSlot as b, useId as O, inject as q, onMounted as E, watch as z, onBeforeUnmount as j, createElementVNode as c, toDisplayString as L, createCommentVNode as w, useSlots as ue, Fragment as B, renderList as R, createBlock as W, resolveDynamicComponent as ce, normalizeStyle as G, unref as M, withModifiers as V, onUnmounted as J, createTextVNode as F, createVNode as me, nextTick as Z, useTemplateRef as Q, toRef as fe } from "vue";
|
|
2
|
+
const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), kt = /* @__PURE__ */ v({
|
|
3
3
|
name: "LlmAccordionGroup",
|
|
4
4
|
__name: "llm-accordion-group",
|
|
5
5
|
props: {
|
|
@@ -7,16 +7,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
7
7
|
variant: { default: "default" }
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
const t = e, a = C(/* @__PURE__ */ new Set()),
|
|
10
|
+
const t = e, a = C(/* @__PURE__ */ new Set()), n = /* @__PURE__ */ new Map();
|
|
11
11
|
function l(i) {
|
|
12
12
|
const m = new Set(a.value);
|
|
13
13
|
m.has(i) ? m.delete(i) : (t.multi || m.clear(), m.add(i)), a.value = m;
|
|
14
14
|
}
|
|
15
15
|
function d(i, m) {
|
|
16
|
-
|
|
16
|
+
n.set(i, m);
|
|
17
17
|
}
|
|
18
18
|
function u(i) {
|
|
19
|
-
|
|
19
|
+
n.delete(i);
|
|
20
20
|
}
|
|
21
21
|
H(X, {
|
|
22
22
|
get multi() {
|
|
@@ -28,13 +28,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
28
28
|
unregisterItem: u
|
|
29
29
|
});
|
|
30
30
|
const r = p(() => ["llm-accordion-group", `variant-${t.variant}`]);
|
|
31
|
-
return (i, m) => (s(),
|
|
31
|
+
return (i, m) => (s(), o("div", {
|
|
32
32
|
class: y(r.value)
|
|
33
33
|
}, [
|
|
34
34
|
b(i.$slots, "default")
|
|
35
35
|
], 2));
|
|
36
36
|
}
|
|
37
|
-
}), pe = { class: "accordion-heading" }, ve = ["aria-expanded", "disabled"],
|
|
37
|
+
}), pe = { class: "accordion-heading" }, ve = ["aria-expanded", "disabled"], _t = /* @__PURE__ */ v({
|
|
38
38
|
name: "LlmAccordionItem",
|
|
39
39
|
__name: "llm-accordion-item",
|
|
40
40
|
props: {
|
|
@@ -43,9 +43,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
43
43
|
},
|
|
44
44
|
emits: ["update:expanded"],
|
|
45
45
|
setup(e, { emit: t }) {
|
|
46
|
-
const a = e,
|
|
46
|
+
const a = e, n = t, l = O(), d = `llm-accordion-trigger-${l}`, u = `llm-accordion-panel-${l}`, r = q(X, null), i = C(null), m = p(() => r ? r.openItems.value.has(l) : a.expanded ?? !1);
|
|
47
47
|
function $() {
|
|
48
|
-
a.disabled || (r ? r.toggleItem(l) :
|
|
48
|
+
a.disabled || (r ? r.toggleItem(l) : n("update:expanded", !m.value));
|
|
49
49
|
}
|
|
50
50
|
function k(g) {
|
|
51
51
|
if (!r) return;
|
|
@@ -72,7 +72,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
72
72
|
m.value && "is-expanded",
|
|
73
73
|
a.disabled && "is-disabled"
|
|
74
74
|
]), _ = p(() => ["chevron", m.value && "is-expanded"]);
|
|
75
|
-
return (g, f) => (s(),
|
|
75
|
+
return (g, f) => (s(), o("div", {
|
|
76
76
|
class: y(h.value)
|
|
77
77
|
}, [
|
|
78
78
|
c("h3", pe, [
|
|
@@ -89,7 +89,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
89
89
|
onKeydown: k
|
|
90
90
|
}, [
|
|
91
91
|
b(g.$slots, "header"),
|
|
92
|
-
(s(),
|
|
92
|
+
(s(), o("svg", {
|
|
93
93
|
class: y(_.value),
|
|
94
94
|
width: "16",
|
|
95
95
|
height: "16",
|
|
@@ -121,18 +121,18 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
121
121
|
], 2)
|
|
122
122
|
], 2));
|
|
123
123
|
}
|
|
124
|
-
}), he = { class: "accordion-header-content" },
|
|
124
|
+
}), he = { class: "accordion-header-content" }, wt = /* @__PURE__ */ v({
|
|
125
125
|
name: "LlmAccordionHeader",
|
|
126
126
|
__name: "llm-accordion-header",
|
|
127
127
|
setup(e) {
|
|
128
|
-
return (t, a) => (s(),
|
|
128
|
+
return (t, a) => (s(), o("span", he, [
|
|
129
129
|
b(t.$slots, "default")
|
|
130
130
|
]));
|
|
131
131
|
}
|
|
132
132
|
}), be = ["aria-live"], ge = { class: "content" }, ye = {
|
|
133
133
|
class: "variant-icon",
|
|
134
134
|
"aria-hidden": "true"
|
|
135
|
-
},
|
|
135
|
+
}, Lt = /* @__PURE__ */ v({
|
|
136
136
|
name: "LlmAlert",
|
|
137
137
|
__name: "llm-alert",
|
|
138
138
|
props: {
|
|
@@ -146,10 +146,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
146
146
|
success: "✓",
|
|
147
147
|
warning: "⚠",
|
|
148
148
|
danger: "✕"
|
|
149
|
-
},
|
|
150
|
-
() =>
|
|
151
|
-
), r = p(() => a[
|
|
152
|
-
return (i, m) => (s(),
|
|
149
|
+
}, n = e, l = t, d = p(() => ["llm-alert", `variant-${n.variant}`]), u = p(
|
|
150
|
+
() => n.variant === "danger" || n.variant === "warning" ? "assertive" : "polite"
|
|
151
|
+
), r = p(() => a[n.variant]);
|
|
152
|
+
return (i, m) => (s(), o("div", {
|
|
153
153
|
class: y(d.value),
|
|
154
154
|
role: "alert",
|
|
155
155
|
"aria-live": u.value
|
|
@@ -158,7 +158,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
158
158
|
c("span", ye, L(r.value), 1),
|
|
159
159
|
b(i.$slots, "default")
|
|
160
160
|
]),
|
|
161
|
-
e.dismissible ? (s(),
|
|
161
|
+
e.dismissible ? (s(), o("button", {
|
|
162
162
|
key: 0,
|
|
163
163
|
class: "dismiss",
|
|
164
164
|
type: "button",
|
|
@@ -203,7 +203,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
203
203
|
viewBox: "0 0 24 24",
|
|
204
204
|
fill: "currentColor",
|
|
205
205
|
"aria-hidden": "true"
|
|
206
|
-
},
|
|
206
|
+
}, xt = /* @__PURE__ */ v({
|
|
207
207
|
name: "LlmAvatar",
|
|
208
208
|
__name: "llm-avatar",
|
|
209
209
|
props: {
|
|
@@ -219,35 +219,35 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
219
219
|
z(() => t.src, () => {
|
|
220
220
|
a.value = !1;
|
|
221
221
|
});
|
|
222
|
-
function
|
|
222
|
+
function n(r) {
|
|
223
223
|
return r.split(" ").filter(Boolean).slice(0, 2).map((i) => i[0].toUpperCase()).join("");
|
|
224
224
|
}
|
|
225
|
-
const l = p(() => t.name ?
|
|
225
|
+
const l = p(() => t.name ? n(t.name) : ""), d = p(() => t.alt || t.name || "Avatar"), u = p(() => [
|
|
226
226
|
"llm-avatar",
|
|
227
227
|
`size-${t.size}`,
|
|
228
228
|
`shape-${t.shape}`
|
|
229
229
|
]);
|
|
230
|
-
return (r, i) => (s(),
|
|
230
|
+
return (r, i) => (s(), o("div", {
|
|
231
231
|
class: y(u.value),
|
|
232
232
|
"aria-label": d.value,
|
|
233
233
|
role: "img"
|
|
234
234
|
}, [
|
|
235
|
-
e.src && !a.value ? (s(),
|
|
235
|
+
e.src && !a.value ? (s(), o("img", {
|
|
236
236
|
key: 0,
|
|
237
237
|
src: e.src,
|
|
238
238
|
alt: e.alt || e.name,
|
|
239
239
|
onError: i[0] || (i[0] = (m) => a.value = !0)
|
|
240
|
-
}, null, 40, ke)) : l.value ? (s(),
|
|
240
|
+
}, null, 40, ke)) : l.value ? (s(), o("span", _e, L(l.value), 1)) : (s(), o("svg", we, [...i[1] || (i[1] = [
|
|
241
241
|
c("path", { d: "M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5zm0 2c-3.314 0-10 1.343-10 4v2h20v-2c0-2.657-6.686-4-10-4z" }, null, -1)
|
|
242
242
|
])])),
|
|
243
|
-
e.status ? (s(),
|
|
243
|
+
e.status ? (s(), o("span", {
|
|
244
244
|
key: 3,
|
|
245
245
|
class: y(`status-dot status-${e.status}`),
|
|
246
246
|
"aria-hidden": "true"
|
|
247
247
|
}, null, 2)) : w("", !0)
|
|
248
248
|
], 10, $e));
|
|
249
249
|
}
|
|
250
|
-
}), Le = ["aria-label"],
|
|
250
|
+
}), Le = ["aria-label"], Ct = /* @__PURE__ */ v({
|
|
251
251
|
name: "LlmAvatarGroup",
|
|
252
252
|
__name: "llm-avatar-group",
|
|
253
253
|
props: {
|
|
@@ -255,12 +255,12 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
255
255
|
size: { default: "md" }
|
|
256
256
|
},
|
|
257
257
|
setup(e) {
|
|
258
|
-
const t = e, a = ue(),
|
|
259
|
-
return (u, r) => (s(),
|
|
258
|
+
const t = e, a = ue(), n = p(() => a.default?.() ?? []), l = p(() => n.value.slice(0, t.max)), d = p(() => Math.max(0, n.value.length - t.max));
|
|
259
|
+
return (u, r) => (s(), o("div", {
|
|
260
260
|
class: y(["llm-avatar-group", `size-${e.size}`])
|
|
261
261
|
}, [
|
|
262
|
-
(s(!0),
|
|
263
|
-
d.value > 0 ? (s(),
|
|
262
|
+
(s(!0), o(B, null, R(l.value, (i, m) => (s(), W(ce(i), { key: m }))), 128)),
|
|
263
|
+
d.value > 0 ? (s(), o("div", {
|
|
264
264
|
key: 0,
|
|
265
265
|
class: y(`overflow-badge size-${e.size}`),
|
|
266
266
|
"aria-label": `+${d.value} more`
|
|
@@ -271,7 +271,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
271
271
|
key: 0,
|
|
272
272
|
class: "variant-icon",
|
|
273
273
|
"aria-hidden": "true"
|
|
274
|
-
},
|
|
274
|
+
}, Bt = /* @__PURE__ */ v({
|
|
275
275
|
name: "LlmBadge",
|
|
276
276
|
__name: "llm-badge",
|
|
277
277
|
props: {
|
|
@@ -285,20 +285,20 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
285
285
|
warning: "⚠",
|
|
286
286
|
danger: "✕",
|
|
287
287
|
info: "ℹ"
|
|
288
|
-
}, a = e,
|
|
288
|
+
}, a = e, n = p(() => [
|
|
289
289
|
"llm-badge",
|
|
290
290
|
`variant-${a.variant}`,
|
|
291
291
|
`size-${a.size}`
|
|
292
292
|
]), l = p(() => t[a.variant]);
|
|
293
|
-
return (d, u) => (s(),
|
|
294
|
-
class: y(
|
|
293
|
+
return (d, u) => (s(), o("span", {
|
|
294
|
+
class: y(n.value),
|
|
295
295
|
role: "status"
|
|
296
296
|
}, [
|
|
297
|
-
l.value ? (s(),
|
|
297
|
+
l.value ? (s(), o("span", xe, L(l.value), 1)) : w("", !0),
|
|
298
298
|
b(d.$slots, "default")
|
|
299
299
|
], 2));
|
|
300
300
|
}
|
|
301
|
-
}), Ce = { class: "breadcrumbs-list" },
|
|
301
|
+
}), Ce = { class: "breadcrumbs-list" }, Tt = /* @__PURE__ */ v({
|
|
302
302
|
name: "LlmBreadcrumbs",
|
|
303
303
|
__name: "llm-breadcrumbs",
|
|
304
304
|
props: {
|
|
@@ -306,7 +306,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
306
306
|
},
|
|
307
307
|
setup(e) {
|
|
308
308
|
const t = e;
|
|
309
|
-
return (a,
|
|
309
|
+
return (a, n) => (s(), o("nav", {
|
|
310
310
|
class: "llm-breadcrumbs",
|
|
311
311
|
"aria-label": "Breadcrumb",
|
|
312
312
|
style: G({ "--llm-separator": `'${t.separator}'` })
|
|
@@ -316,7 +316,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
316
316
|
])
|
|
317
317
|
], 4));
|
|
318
318
|
}
|
|
319
|
-
}), Be = ["href"], Te = ["aria-current"],
|
|
319
|
+
}), Be = ["href"], Te = ["aria-current"], It = /* @__PURE__ */ v({
|
|
320
320
|
name: "LlmBreadcrumbItem",
|
|
321
321
|
__name: "llm-breadcrumb-item",
|
|
322
322
|
props: {
|
|
@@ -328,21 +328,21 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
328
328
|
"llm-breadcrumb-item",
|
|
329
329
|
t.current && "is-current"
|
|
330
330
|
].filter(Boolean));
|
|
331
|
-
return (
|
|
331
|
+
return (n, l) => (s(), o("li", {
|
|
332
332
|
class: y(a.value)
|
|
333
333
|
}, [
|
|
334
|
-
e.href && !e.current ? (s(),
|
|
334
|
+
e.href && !e.current ? (s(), o("a", {
|
|
335
335
|
key: 0,
|
|
336
336
|
href: e.href,
|
|
337
337
|
class: "breadcrumb-link"
|
|
338
338
|
}, [
|
|
339
|
-
b(
|
|
340
|
-
], 8, Be)) : (s(),
|
|
339
|
+
b(n.$slots, "default")
|
|
340
|
+
], 8, Be)) : (s(), o("span", {
|
|
341
341
|
key: 1,
|
|
342
342
|
class: "breadcrumb-current",
|
|
343
343
|
"aria-current": e.current ? "page" : void 0
|
|
344
344
|
}, [
|
|
345
|
-
b(
|
|
345
|
+
b(n.$slots, "default")
|
|
346
346
|
], 8, Te))
|
|
347
347
|
], 2));
|
|
348
348
|
}
|
|
@@ -350,7 +350,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "spinner",
|
|
352
352
|
"aria-hidden": "true"
|
|
353
|
-
},
|
|
353
|
+
}, Dt = /* @__PURE__ */ v({
|
|
354
354
|
name: "LlmButton",
|
|
355
355
|
__name: "llm-button",
|
|
356
356
|
props: {
|
|
@@ -361,24 +361,24 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
361
361
|
type: { default: "button" }
|
|
362
362
|
},
|
|
363
363
|
setup(e) {
|
|
364
|
-
const t = e, a = p(() => t.disabled || t.loading),
|
|
364
|
+
const t = e, a = p(() => t.disabled || t.loading), n = p(() => [
|
|
365
365
|
"llm-button",
|
|
366
366
|
`variant-${t.variant}`,
|
|
367
367
|
`size-${t.size}`,
|
|
368
368
|
a.value && "is-disabled",
|
|
369
369
|
t.loading && "is-loading"
|
|
370
370
|
].filter(Boolean));
|
|
371
|
-
return (l, d) => (s(),
|
|
372
|
-
class: y(
|
|
371
|
+
return (l, d) => (s(), o("button", {
|
|
372
|
+
class: y(n.value),
|
|
373
373
|
type: e.type,
|
|
374
374
|
disabled: a.value,
|
|
375
375
|
"aria-disabled": a.value || void 0
|
|
376
376
|
}, [
|
|
377
|
-
e.loading ? (s(),
|
|
377
|
+
e.loading ? (s(), o("span", De)) : w("", !0),
|
|
378
378
|
b(l.$slots, "default")
|
|
379
379
|
], 10, Ie));
|
|
380
380
|
}
|
|
381
|
-
}),
|
|
381
|
+
}), St = /* @__PURE__ */ v({
|
|
382
382
|
name: "LlmCard",
|
|
383
383
|
__name: "llm-card",
|
|
384
384
|
props: {
|
|
@@ -391,33 +391,33 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
391
391
|
`variant-${t.variant}`,
|
|
392
392
|
`padding-${t.padding}`
|
|
393
393
|
]);
|
|
394
|
-
return (
|
|
394
|
+
return (n, l) => (s(), o("div", {
|
|
395
395
|
class: y(a.value)
|
|
396
396
|
}, [
|
|
397
|
-
b(
|
|
397
|
+
b(n.$slots, "default")
|
|
398
398
|
], 2));
|
|
399
399
|
}
|
|
400
|
-
}), Se = { class: "llm-card-header" },
|
|
400
|
+
}), Se = { class: "llm-card-header" }, Mt = /* @__PURE__ */ v({
|
|
401
401
|
name: "LlmCardHeader",
|
|
402
402
|
__name: "llm-card-header",
|
|
403
403
|
setup(e) {
|
|
404
|
-
return (t, a) => (s(),
|
|
404
|
+
return (t, a) => (s(), o("div", Se, [
|
|
405
405
|
b(t.$slots, "default")
|
|
406
406
|
]));
|
|
407
407
|
}
|
|
408
|
-
}), Me = { class: "llm-card-content" },
|
|
408
|
+
}), Me = { class: "llm-card-content" }, At = /* @__PURE__ */ v({
|
|
409
409
|
name: "LlmCardContent",
|
|
410
410
|
__name: "llm-card-content",
|
|
411
411
|
setup(e) {
|
|
412
|
-
return (t, a) => (s(),
|
|
412
|
+
return (t, a) => (s(), o("div", Me, [
|
|
413
413
|
b(t.$slots, "default")
|
|
414
414
|
]));
|
|
415
415
|
}
|
|
416
|
-
}), Ae = { class: "llm-card-footer" },
|
|
416
|
+
}), Ae = { class: "llm-card-footer" }, Rt = /* @__PURE__ */ v({
|
|
417
417
|
name: "LlmCardFooter",
|
|
418
418
|
__name: "llm-card-footer",
|
|
419
419
|
setup(e) {
|
|
420
|
-
return (t, a) => (s(),
|
|
420
|
+
return (t, a) => (s(), o("div", Ae, [
|
|
421
421
|
b(t.$slots, "default")
|
|
422
422
|
]));
|
|
423
423
|
}
|
|
@@ -441,7 +441,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
441
441
|
},
|
|
442
442
|
emits: ["update:checked"],
|
|
443
443
|
setup(e, { emit: t }) {
|
|
444
|
-
const a = e,
|
|
444
|
+
const a = e, n = t, l = C(null), d = p(() => a.id || `checkbox-${Math.random().toString(36).slice(2)}`);
|
|
445
445
|
z(
|
|
446
446
|
() => a.indeterminate,
|
|
447
447
|
(r) => {
|
|
@@ -452,9 +452,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
452
452
|
});
|
|
453
453
|
function u(r) {
|
|
454
454
|
const i = r.target;
|
|
455
|
-
|
|
455
|
+
n("update:checked", i.checked);
|
|
456
456
|
}
|
|
457
|
-
return (r, i) => (s(),
|
|
457
|
+
return (r, i) => (s(), o("div", {
|
|
458
458
|
class: y(["llm-checkbox", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
459
459
|
}, [
|
|
460
460
|
c("label", {
|
|
@@ -476,15 +476,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
476
476
|
}, null, 40, ze),
|
|
477
477
|
b(r.$slots, "default")
|
|
478
478
|
], 8, Re),
|
|
479
|
-
e.errors.length ? (s(),
|
|
480
|
-
(s(!0),
|
|
479
|
+
e.errors.length ? (s(), o("ul", qe, [
|
|
480
|
+
(s(!0), o(B, null, R(e.errors, (m, $) => (s(), o("li", {
|
|
481
481
|
key: $,
|
|
482
482
|
class: "error"
|
|
483
483
|
}, L(m), 1))), 128))
|
|
484
484
|
])) : w("", !0)
|
|
485
485
|
], 2));
|
|
486
486
|
}
|
|
487
|
-
}), Ee = ["aria-label", "aria-labelledby"], Y = /* @__PURE__ */ Symbol("LlmDialog"),
|
|
487
|
+
}), Ee = ["aria-label", "aria-labelledby"], Y = /* @__PURE__ */ Symbol("LlmDialog"), zt = /* @__PURE__ */ v({
|
|
488
488
|
name: "LlmDialog",
|
|
489
489
|
__name: "llm-dialog",
|
|
490
490
|
props: {
|
|
@@ -495,9 +495,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
495
495
|
},
|
|
496
496
|
emits: ["update:open"],
|
|
497
497
|
setup(e, { emit: t }) {
|
|
498
|
-
const a = e,
|
|
498
|
+
const a = e, n = t, l = C(null), d = O();
|
|
499
499
|
function u() {
|
|
500
|
-
|
|
500
|
+
n("update:open", !1);
|
|
501
501
|
}
|
|
502
502
|
H(Y, {
|
|
503
503
|
headerId: d,
|
|
@@ -513,16 +513,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
513
513
|
{ flush: "post" }
|
|
514
514
|
);
|
|
515
515
|
function r() {
|
|
516
|
-
|
|
516
|
+
n("update:open", !1);
|
|
517
517
|
}
|
|
518
518
|
function i(k) {
|
|
519
|
-
k.preventDefault(),
|
|
519
|
+
k.preventDefault(), n("update:open", !1);
|
|
520
520
|
}
|
|
521
521
|
function m(k) {
|
|
522
|
-
a.closeOnBackdrop && k.target === l.value &&
|
|
522
|
+
a.closeOnBackdrop && k.target === l.value && n("update:open", !1);
|
|
523
523
|
}
|
|
524
524
|
const $ = p(() => ["panel", `size-${a.size}`]);
|
|
525
|
-
return (k, h) => (s(),
|
|
525
|
+
return (k, h) => (s(), o("dialog", {
|
|
526
526
|
ref_key: "dialogRef",
|
|
527
527
|
ref: l,
|
|
528
528
|
class: "llm-dialog",
|
|
@@ -542,13 +542,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
542
542
|
], 2)
|
|
543
543
|
], 40, Ee));
|
|
544
544
|
}
|
|
545
|
-
}), Oe = ["id"], Ke = { class: "header-content" },
|
|
545
|
+
}), Oe = ["id"], Ke = { class: "header-content" }, qt = /* @__PURE__ */ v({
|
|
546
546
|
name: "LlmDialogHeader",
|
|
547
547
|
__name: "llm-dialog-header",
|
|
548
548
|
setup(e) {
|
|
549
549
|
const t = q(Y, { headerId: "", close: () => {
|
|
550
550
|
} });
|
|
551
|
-
return (a,
|
|
551
|
+
return (a, n) => (s(), o("div", {
|
|
552
552
|
id: M(t).headerId,
|
|
553
553
|
class: "llm-dialog-header"
|
|
554
554
|
}, [
|
|
@@ -559,8 +559,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
559
559
|
class: "close-btn",
|
|
560
560
|
type: "button",
|
|
561
561
|
"aria-label": "Close dialog",
|
|
562
|
-
onClick:
|
|
563
|
-
}, [...
|
|
562
|
+
onClick: n[0] || (n[0] = (l) => M(t).close())
|
|
563
|
+
}, [...n[1] || (n[1] = [
|
|
564
564
|
c("svg", {
|
|
565
565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
566
566
|
width: "14",
|
|
@@ -589,23 +589,23 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
589
589
|
])])
|
|
590
590
|
], 8, Oe));
|
|
591
591
|
}
|
|
592
|
-
}), je = { class: "llm-dialog-content" },
|
|
592
|
+
}), je = { class: "llm-dialog-content" }, Ht = /* @__PURE__ */ v({
|
|
593
593
|
name: "LlmDialogContent",
|
|
594
594
|
__name: "llm-dialog-content",
|
|
595
595
|
setup(e) {
|
|
596
|
-
return (t, a) => (s(),
|
|
596
|
+
return (t, a) => (s(), o("div", je, [
|
|
597
597
|
b(t.$slots, "default")
|
|
598
598
|
]));
|
|
599
599
|
}
|
|
600
|
-
}), Fe = { class: "llm-dialog-footer" },
|
|
600
|
+
}), Fe = { class: "llm-dialog-footer" }, Et = /* @__PURE__ */ v({
|
|
601
601
|
name: "LlmDialogFooter",
|
|
602
602
|
__name: "llm-dialog-footer",
|
|
603
603
|
setup(e) {
|
|
604
|
-
return (t, a) => (s(),
|
|
604
|
+
return (t, a) => (s(), o("div", Fe, [
|
|
605
605
|
b(t.$slots, "default")
|
|
606
606
|
]));
|
|
607
607
|
}
|
|
608
|
-
}), Ge = ["aria-labelledby"], ee = /* @__PURE__ */ Symbol("LlmDrawer"),
|
|
608
|
+
}), Ge = ["aria-labelledby"], ee = /* @__PURE__ */ Symbol("LlmDrawer"), Ot = /* @__PURE__ */ v({
|
|
609
609
|
name: "LlmDrawer",
|
|
610
610
|
__name: "llm-drawer",
|
|
611
611
|
props: {
|
|
@@ -616,9 +616,9 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
616
616
|
},
|
|
617
617
|
emits: ["update:open"],
|
|
618
618
|
setup(e, { emit: t }) {
|
|
619
|
-
const a = e,
|
|
619
|
+
const a = e, n = t, l = C(null), d = O();
|
|
620
620
|
function u() {
|
|
621
|
-
|
|
621
|
+
n("update:open", !1);
|
|
622
622
|
}
|
|
623
623
|
H(ee, {
|
|
624
624
|
headerId: d,
|
|
@@ -634,13 +634,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
634
634
|
{ flush: "post" }
|
|
635
635
|
);
|
|
636
636
|
function r() {
|
|
637
|
-
|
|
637
|
+
n("update:open", !1);
|
|
638
638
|
}
|
|
639
639
|
function i(k) {
|
|
640
|
-
k.preventDefault(),
|
|
640
|
+
k.preventDefault(), n("update:open", !1);
|
|
641
641
|
}
|
|
642
642
|
function m(k) {
|
|
643
|
-
a.closeOnBackdrop && k.target === l.value &&
|
|
643
|
+
a.closeOnBackdrop && k.target === l.value && n("update:open", !1);
|
|
644
644
|
}
|
|
645
645
|
const $ = p(() => [
|
|
646
646
|
"llm-drawer-host",
|
|
@@ -648,7 +648,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
648
648
|
`size-${a.size}`,
|
|
649
649
|
a.open && "is-open"
|
|
650
650
|
]);
|
|
651
|
-
return (k, h) => (s(),
|
|
651
|
+
return (k, h) => (s(), o("dialog", {
|
|
652
652
|
ref_key: "dialogRef",
|
|
653
653
|
ref: l,
|
|
654
654
|
class: y($.value),
|
|
@@ -667,13 +667,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
667
667
|
])
|
|
668
668
|
], 42, Ge));
|
|
669
669
|
}
|
|
670
|
-
}), Pe = ["id"], Ve = { class: "header-content" },
|
|
670
|
+
}), Pe = ["id"], Ve = { class: "header-content" }, Kt = /* @__PURE__ */ v({
|
|
671
671
|
name: "LlmDrawerHeader",
|
|
672
672
|
__name: "llm-drawer-header",
|
|
673
673
|
setup(e) {
|
|
674
674
|
const t = q(ee, { headerId: "", close: () => {
|
|
675
675
|
} });
|
|
676
|
-
return (a,
|
|
676
|
+
return (a, n) => (s(), o("div", {
|
|
677
677
|
id: M(t).headerId,
|
|
678
678
|
class: "llm-drawer-header"
|
|
679
679
|
}, [
|
|
@@ -684,8 +684,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
684
684
|
class: "close-btn",
|
|
685
685
|
type: "button",
|
|
686
686
|
"aria-label": "Close drawer",
|
|
687
|
-
onClick:
|
|
688
|
-
}, [...
|
|
687
|
+
onClick: n[0] || (n[0] = (l) => M(t).close())
|
|
688
|
+
}, [...n[1] || (n[1] = [
|
|
689
689
|
c("svg", {
|
|
690
690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
691
691
|
width: "14",
|
|
@@ -714,19 +714,19 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
714
714
|
])])
|
|
715
715
|
], 8, Pe));
|
|
716
716
|
}
|
|
717
|
-
}), Ne = { class: "llm-drawer-content" },
|
|
717
|
+
}), Ne = { class: "llm-drawer-content" }, jt = /* @__PURE__ */ v({
|
|
718
718
|
name: "LlmDrawerContent",
|
|
719
719
|
__name: "llm-drawer-content",
|
|
720
720
|
setup(e) {
|
|
721
|
-
return (t, a) => (s(),
|
|
721
|
+
return (t, a) => (s(), o("div", Ne, [
|
|
722
722
|
b(t.$slots, "default")
|
|
723
723
|
]));
|
|
724
724
|
}
|
|
725
|
-
}), Ue = { class: "llm-drawer-footer" },
|
|
725
|
+
}), Ue = { class: "llm-drawer-footer" }, Ft = /* @__PURE__ */ v({
|
|
726
726
|
name: "LlmDrawerFooter",
|
|
727
727
|
__name: "llm-drawer-footer",
|
|
728
728
|
setup(e) {
|
|
729
|
-
return (t, a) => (s(),
|
|
729
|
+
return (t, a) => (s(), o("div", Ue, [
|
|
730
730
|
b(t.$slots, "default")
|
|
731
731
|
]));
|
|
732
732
|
}
|
|
@@ -734,7 +734,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
734
734
|
key: 1,
|
|
735
735
|
class: "errors",
|
|
736
736
|
"aria-live": "polite"
|
|
737
|
-
},
|
|
737
|
+
}, Gt = /* @__PURE__ */ v({
|
|
738
738
|
name: "LlmInput",
|
|
739
739
|
__name: "llm-input",
|
|
740
740
|
props: {
|
|
@@ -752,14 +752,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
752
752
|
},
|
|
753
753
|
emits: ["update:value"],
|
|
754
754
|
setup(e, { emit: t }) {
|
|
755
|
-
const a = e,
|
|
755
|
+
const a = e, n = t, l = p(() => a.id || (a.label ? `input-${Math.random().toString(36).slice(2)}` : void 0));
|
|
756
756
|
function d(u) {
|
|
757
|
-
|
|
757
|
+
n("update:value", u.target.value);
|
|
758
758
|
}
|
|
759
|
-
return (u, r) => (s(),
|
|
759
|
+
return (u, r) => (s(), o("div", {
|
|
760
760
|
class: y(["llm-input", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
761
761
|
}, [
|
|
762
|
-
e.label ? (s(),
|
|
762
|
+
e.label ? (s(), o("label", {
|
|
763
763
|
key: 0,
|
|
764
764
|
for: l.value,
|
|
765
765
|
class: "input-label"
|
|
@@ -778,19 +778,19 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
778
778
|
onInput: d
|
|
779
779
|
}, null, 40, Ze)
|
|
780
780
|
]),
|
|
781
|
-
e.errors.length ? (s(),
|
|
782
|
-
(s(!0),
|
|
781
|
+
e.errors.length ? (s(), o("ul", Qe, [
|
|
782
|
+
(s(!0), o(B, null, R(e.errors, (i, m) => (s(), o("li", {
|
|
783
783
|
key: m,
|
|
784
784
|
class: "error"
|
|
785
785
|
}, L(i), 1))), 128))
|
|
786
786
|
])) : w("", !0)
|
|
787
787
|
], 2));
|
|
788
788
|
}
|
|
789
|
-
}), Xe = { class: "llm-menu-trigger-wrapper" }, ae = /* @__PURE__ */ Symbol("LlmMenuTrigger"),
|
|
789
|
+
}), Xe = { class: "llm-menu-trigger-wrapper" }, ae = /* @__PURE__ */ Symbol("LlmMenuTrigger"), Pt = /* @__PURE__ */ v({
|
|
790
790
|
name: "LlmMenuTrigger",
|
|
791
791
|
__name: "llm-menu-trigger",
|
|
792
792
|
setup(e) {
|
|
793
|
-
const t = C(!1), a = C(null),
|
|
793
|
+
const t = C(!1), a = C(null), n = C(null);
|
|
794
794
|
function l() {
|
|
795
795
|
t.value = !t.value;
|
|
796
796
|
}
|
|
@@ -800,7 +800,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
800
800
|
H(ae, { close: d });
|
|
801
801
|
function u(i) {
|
|
802
802
|
if (!t.value) return;
|
|
803
|
-
const m = i.target, $ = a.value?.contains(m), k =
|
|
803
|
+
const m = i.target, $ = a.value?.contains(m), k = n.value?.contains(m);
|
|
804
804
|
!$ && !k && d();
|
|
805
805
|
}
|
|
806
806
|
function r(i) {
|
|
@@ -810,7 +810,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
810
810
|
document.addEventListener("mousedown", u), document.addEventListener("keydown", r);
|
|
811
811
|
}), j(() => {
|
|
812
812
|
document.removeEventListener("mousedown", u), document.removeEventListener("keydown", r);
|
|
813
|
-
}), (i, m) => (s(),
|
|
813
|
+
}), (i, m) => (s(), o("div", Xe, [
|
|
814
814
|
c("span", {
|
|
815
815
|
ref_key: "triggerRef",
|
|
816
816
|
ref: a,
|
|
@@ -818,17 +818,17 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
818
818
|
}, [
|
|
819
819
|
b(i.$slots, "trigger")
|
|
820
820
|
], 512),
|
|
821
|
-
t.value ? (s(),
|
|
821
|
+
t.value ? (s(), o("div", {
|
|
822
822
|
key: 0,
|
|
823
823
|
ref_key: "menuRef",
|
|
824
|
-
ref:
|
|
824
|
+
ref: n,
|
|
825
825
|
class: "llm-menu-panel"
|
|
826
826
|
}, [
|
|
827
827
|
b(i.$slots, "menu")
|
|
828
828
|
], 512)) : w("", !0)
|
|
829
829
|
]));
|
|
830
830
|
}
|
|
831
|
-
}),
|
|
831
|
+
}), Vt = /* @__PURE__ */ v({
|
|
832
832
|
name: "LlmMenu",
|
|
833
833
|
__name: "llm-menu",
|
|
834
834
|
props: {
|
|
@@ -836,14 +836,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
836
836
|
},
|
|
837
837
|
setup(e) {
|
|
838
838
|
const t = e, a = p(() => ["llm-menu", `variant-${t.variant}`]);
|
|
839
|
-
return (
|
|
839
|
+
return (n, l) => (s(), o("div", {
|
|
840
840
|
class: y(a.value),
|
|
841
841
|
role: "menu"
|
|
842
842
|
}, [
|
|
843
|
-
b(
|
|
843
|
+
b(n.$slots, "default")
|
|
844
844
|
], 2));
|
|
845
845
|
}
|
|
846
|
-
}), Ye = ["disabled"],
|
|
846
|
+
}), Ye = ["disabled"], Nt = /* @__PURE__ */ v({
|
|
847
847
|
name: "LlmMenuItem",
|
|
848
848
|
__name: "llm-menu-item",
|
|
849
849
|
props: {
|
|
@@ -851,12 +851,12 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
851
851
|
},
|
|
852
852
|
emits: ["triggered"],
|
|
853
853
|
setup(e, { emit: t }) {
|
|
854
|
-
const a = e,
|
|
854
|
+
const a = e, n = t, l = q(ae, null);
|
|
855
855
|
function d() {
|
|
856
|
-
a.disabled || (
|
|
856
|
+
a.disabled || (n("triggered"), l?.close());
|
|
857
857
|
}
|
|
858
858
|
const u = p(() => ["llm-menu-item", a.disabled && "is-disabled"]);
|
|
859
|
-
return (r, i) => (s(),
|
|
859
|
+
return (r, i) => (s(), o("button", {
|
|
860
860
|
class: y(u.value),
|
|
861
861
|
role: "menuitem",
|
|
862
862
|
type: "button",
|
|
@@ -869,11 +869,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
869
869
|
}), ea = {
|
|
870
870
|
class: "llm-menu-separator",
|
|
871
871
|
role: "separator"
|
|
872
|
-
},
|
|
872
|
+
}, Ut = /* @__PURE__ */ v({
|
|
873
873
|
name: "LlmMenuSeparator",
|
|
874
874
|
__name: "llm-menu-separator",
|
|
875
875
|
setup(e) {
|
|
876
|
-
return (t, a) => (s(),
|
|
876
|
+
return (t, a) => (s(), o("hr", ea));
|
|
877
877
|
}
|
|
878
878
|
}), aa = {
|
|
879
879
|
class: "llm-pagination",
|
|
@@ -882,7 +882,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
882
882
|
key: 0,
|
|
883
883
|
class: "ellipsis",
|
|
884
884
|
"aria-hidden": "true"
|
|
885
|
-
}, na = ["aria-label", "aria-current", "onClick"], oa = ["disabled"], ia = ["disabled"],
|
|
885
|
+
}, na = ["aria-label", "aria-current", "onClick"], oa = ["disabled"], ia = ["disabled"], Wt = /* @__PURE__ */ v({
|
|
886
886
|
name: "LlmPagination",
|
|
887
887
|
__name: "llm-pagination",
|
|
888
888
|
props: {
|
|
@@ -893,7 +893,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
893
893
|
},
|
|
894
894
|
emits: ["pageChange"],
|
|
895
895
|
setup(e, { emit: t }) {
|
|
896
|
-
const a = e,
|
|
896
|
+
const a = e, n = t;
|
|
897
897
|
function l(r, i, m) {
|
|
898
898
|
if (i <= 1) return [{ type: "page", page: 1 }];
|
|
899
899
|
const $ = [];
|
|
@@ -906,10 +906,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
906
906
|
const d = p(() => l(a.page, a.pageCount, a.siblingCount));
|
|
907
907
|
function u(r) {
|
|
908
908
|
const i = Math.min(Math.max(r, 1), a.pageCount);
|
|
909
|
-
i !== a.page &&
|
|
909
|
+
i !== a.page && n("pageChange", i);
|
|
910
910
|
}
|
|
911
|
-
return (r, i) => (s(),
|
|
912
|
-
e.showFirstLast ? (s(),
|
|
911
|
+
return (r, i) => (s(), o("nav", aa, [
|
|
912
|
+
e.showFirstLast ? (s(), o("button", {
|
|
913
913
|
key: 0,
|
|
914
914
|
class: "page-btn nav-btn",
|
|
915
915
|
disabled: e.page <= 1,
|
|
@@ -922,10 +922,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
922
922
|
"aria-label": "Previous page",
|
|
923
923
|
onClick: i[1] || (i[1] = (m) => u(e.page - 1))
|
|
924
924
|
}, " ‹ ", 8, la),
|
|
925
|
-
(s(!0),
|
|
925
|
+
(s(!0), o(B, null, R(d.value, (m) => (s(), o(B, {
|
|
926
926
|
key: m.type === "page" ? m.page : m.key
|
|
927
927
|
}, [
|
|
928
|
-
m.type === "ellipsis" ? (s(),
|
|
928
|
+
m.type === "ellipsis" ? (s(), o("span", sa, "…")) : (s(), o("button", {
|
|
929
929
|
key: 1,
|
|
930
930
|
class: y(["page-btn", { active: m.page === e.page }]),
|
|
931
931
|
"aria-label": `Page ${m.page}`,
|
|
@@ -939,7 +939,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
939
939
|
"aria-label": "Next page",
|
|
940
940
|
onClick: i[2] || (i[2] = (m) => u(e.page + 1))
|
|
941
941
|
}, " › ", 8, oa),
|
|
942
|
-
e.showFirstLast ? (s(),
|
|
942
|
+
e.showFirstLast ? (s(), o("button", {
|
|
943
943
|
key: 1,
|
|
944
944
|
class: "page-btn nav-btn",
|
|
945
945
|
disabled: e.page >= e.pageCount,
|
|
@@ -948,7 +948,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
948
948
|
}, " » ", 8, ia)) : w("", !0)
|
|
949
949
|
]));
|
|
950
950
|
}
|
|
951
|
-
}), ra = ["aria-valuenow", "aria-valuemax"], da = { class: "track" },
|
|
951
|
+
}), ra = ["aria-valuenow", "aria-valuemax"], da = { class: "track" }, Jt = /* @__PURE__ */ v({
|
|
952
952
|
name: "LlmProgress",
|
|
953
953
|
__name: "llm-progress",
|
|
954
954
|
props: {
|
|
@@ -959,7 +959,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
959
959
|
indeterminate: { type: Boolean, default: !1 }
|
|
960
960
|
},
|
|
961
961
|
setup(e) {
|
|
962
|
-
const t = e, a = p(() => Math.min(Math.max(t.value, 0), t.max)),
|
|
962
|
+
const t = e, a = p(() => Math.min(Math.max(t.value, 0), t.max)), n = p(
|
|
963
963
|
() => t.indeterminate ? "100%" : `${a.value / t.max * 100}%`
|
|
964
964
|
), l = p(() => [
|
|
965
965
|
"llm-progress",
|
|
@@ -967,7 +967,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
967
967
|
`size-${t.size}`,
|
|
968
968
|
t.indeterminate && "is-indeterminate"
|
|
969
969
|
].filter(Boolean));
|
|
970
|
-
return (d, u) => (s(),
|
|
970
|
+
return (d, u) => (s(), o("div", {
|
|
971
971
|
class: y(l.value),
|
|
972
972
|
role: "progressbar",
|
|
973
973
|
"aria-valuemin": 0,
|
|
@@ -977,7 +977,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
977
977
|
c("div", da, [
|
|
978
978
|
c("div", {
|
|
979
979
|
class: "fill",
|
|
980
|
-
style: G({ width:
|
|
980
|
+
style: G({ width: n.value })
|
|
981
981
|
}, null, 4)
|
|
982
982
|
])
|
|
983
983
|
], 10, ra));
|
|
@@ -1000,7 +1000,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1000
1000
|
class: "llm-combobox-errors",
|
|
1001
1001
|
role: "alert",
|
|
1002
1002
|
"aria-live": "polite"
|
|
1003
|
-
},
|
|
1003
|
+
}, Zt = /* @__PURE__ */ v({
|
|
1004
1004
|
name: "LlmCombobox",
|
|
1005
1005
|
__name: "llm-combobox",
|
|
1006
1006
|
props: {
|
|
@@ -1016,7 +1016,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1016
1016
|
},
|
|
1017
1017
|
emits: ["update:value"],
|
|
1018
1018
|
setup(e, { emit: t }) {
|
|
1019
|
-
const a = e,
|
|
1019
|
+
const a = e, n = t, l = C(null), d = C(null), u = C(""), r = C(!1), i = C(-1);
|
|
1020
1020
|
let m = Math.random().toString(36).slice(2);
|
|
1021
1021
|
const $ = `llm-combobox-input-${m}`, k = `llm-combobox-panel-${m}`, h = p(
|
|
1022
1022
|
() => a.options.find((D) => D.value === a.value)?.label ?? ""
|
|
@@ -1051,11 +1051,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1051
1051
|
document.removeEventListener("click", S);
|
|
1052
1052
|
});
|
|
1053
1053
|
function P(D) {
|
|
1054
|
-
D.disabled || a.disabled || a.readonly || (
|
|
1054
|
+
D.disabled || a.disabled || a.readonly || (n("update:value", D.value), u.value = D.label, x(), l.value?.focus());
|
|
1055
1055
|
}
|
|
1056
1056
|
function ne(D) {
|
|
1057
1057
|
const A = D.target.value;
|
|
1058
|
-
u.value = A, i.value = -1, A === "" &&
|
|
1058
|
+
u.value = A, i.value = -1, A === "" && n("update:value", ""), r.value || T();
|
|
1059
1059
|
}
|
|
1060
1060
|
function oe() {
|
|
1061
1061
|
T();
|
|
@@ -1100,7 +1100,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1100
1100
|
}
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
return (D, A) => (s(),
|
|
1103
|
+
return (D, A) => (s(), o("div", {
|
|
1104
1104
|
ref_key: "containerRef",
|
|
1105
1105
|
ref: d,
|
|
1106
1106
|
class: y(f.value)
|
|
@@ -1150,14 +1150,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1150
1150
|
])
|
|
1151
1151
|
], -1))
|
|
1152
1152
|
]),
|
|
1153
|
-
r.value ? (s(),
|
|
1153
|
+
r.value ? (s(), o("ul", {
|
|
1154
1154
|
key: 0,
|
|
1155
1155
|
id: k,
|
|
1156
1156
|
class: "llm-combobox-panel",
|
|
1157
1157
|
role: "listbox",
|
|
1158
1158
|
"aria-labelledby": $
|
|
1159
1159
|
}, [
|
|
1160
|
-
_.value.length > 0 ? (s(!0),
|
|
1160
|
+
_.value.length > 0 ? (s(!0), o(B, { key: 0 }, R(_.value, (I, K) => (s(), o("li", {
|
|
1161
1161
|
key: I.value,
|
|
1162
1162
|
id: `${k}-option-${K}`,
|
|
1163
1163
|
role: "option",
|
|
@@ -1173,7 +1173,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1173
1173
|
onMouseenter: (de) => i.value = K
|
|
1174
1174
|
}, [
|
|
1175
1175
|
c("span", null, L(I.label), 1),
|
|
1176
|
-
I.value === e.value ? (s(),
|
|
1176
|
+
I.value === e.value ? (s(), o("svg", fa, [...A[1] || (A[1] = [
|
|
1177
1177
|
c("path", {
|
|
1178
1178
|
d: "M2 7l4 4 6-7",
|
|
1179
1179
|
stroke: "currentColor",
|
|
@@ -1182,10 +1182,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1182
1182
|
"stroke-linejoin": "round"
|
|
1183
1183
|
}, null, -1)
|
|
1184
1184
|
])])) : w("", !0)
|
|
1185
|
-
], 42, ma))), 128)) : (s(),
|
|
1185
|
+
], 42, ma))), 128)) : (s(), o("li", pa, " No results found. "))
|
|
1186
1186
|
])) : w("", !0),
|
|
1187
|
-
e.invalid && e.errors.length > 0 ? (s(),
|
|
1188
|
-
(s(!0),
|
|
1187
|
+
e.invalid && e.errors.length > 0 ? (s(), o("div", va, [
|
|
1188
|
+
(s(!0), o(B, null, R(e.errors, (I, K) => (s(), o("p", {
|
|
1189
1189
|
key: K,
|
|
1190
1190
|
class: "llm-combobox-error-message"
|
|
1191
1191
|
}, L(I), 1))), 128))
|
|
@@ -1196,7 +1196,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
class: "errors",
|
|
1198
1198
|
role: "alert"
|
|
1199
|
-
}, te = /* @__PURE__ */ Symbol("LlmRadioGroup"),
|
|
1199
|
+
}, te = /* @__PURE__ */ Symbol("LlmRadioGroup"), Qt = /* @__PURE__ */ v({
|
|
1200
1200
|
name: "LlmRadioGroup",
|
|
1201
1201
|
__name: "llm-radio-group",
|
|
1202
1202
|
props: {
|
|
@@ -1210,7 +1210,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1210
1210
|
},
|
|
1211
1211
|
emits: ["update:value"],
|
|
1212
1212
|
setup(e, { emit: t }) {
|
|
1213
|
-
const a = e,
|
|
1213
|
+
const a = e, n = t;
|
|
1214
1214
|
H(te, {
|
|
1215
1215
|
get value() {
|
|
1216
1216
|
return a.value ?? "";
|
|
@@ -1228,7 +1228,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1228
1228
|
return a.invalid ?? !1;
|
|
1229
1229
|
},
|
|
1230
1230
|
onSelect(d) {
|
|
1231
|
-
!a.disabled && !a.readonly &&
|
|
1231
|
+
!a.disabled && !a.readonly && n("update:value", d);
|
|
1232
1232
|
}
|
|
1233
1233
|
});
|
|
1234
1234
|
const l = p(() => [
|
|
@@ -1236,15 +1236,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1236
1236
|
a.invalid && "is-invalid",
|
|
1237
1237
|
a.disabled && "is-disabled"
|
|
1238
1238
|
]);
|
|
1239
|
-
return (d, u) => (s(),
|
|
1239
|
+
return (d, u) => (s(), o("div", {
|
|
1240
1240
|
class: y(l.value),
|
|
1241
1241
|
role: "radiogroup",
|
|
1242
1242
|
"aria-invalid": e.invalid || void 0,
|
|
1243
1243
|
"aria-required": e.required || void 0
|
|
1244
1244
|
}, [
|
|
1245
1245
|
b(d.$slots, "default"),
|
|
1246
|
-
e.errors.length > 0 ? (s(),
|
|
1247
|
-
(s(!0),
|
|
1246
|
+
e.errors.length > 0 ? (s(), o("div", ba, [
|
|
1247
|
+
(s(!0), o(B, null, R(e.errors, (r, i) => (s(), o("p", {
|
|
1248
1248
|
key: i,
|
|
1249
1249
|
class: "error-message"
|
|
1250
1250
|
}, L(r), 1))), 128))
|
|
@@ -1254,7 +1254,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1254
1254
|
}), ga = ["name", "value", "checked", "disabled"], ya = {
|
|
1255
1255
|
key: 0,
|
|
1256
1256
|
class: "radio-text"
|
|
1257
|
-
},
|
|
1257
|
+
}, Xt = /* @__PURE__ */ v({
|
|
1258
1258
|
name: "LlmRadio",
|
|
1259
1259
|
__name: "llm-radio",
|
|
1260
1260
|
props: {
|
|
@@ -1270,16 +1270,16 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1270
1270
|
invalid: !1,
|
|
1271
1271
|
onSelect: () => {
|
|
1272
1272
|
}
|
|
1273
|
-
}),
|
|
1273
|
+
}), n = p(() => t.disabled || a.disabled), l = p(() => a.value === t.radioValue), d = p(() => [
|
|
1274
1274
|
"llm-radio",
|
|
1275
|
-
|
|
1275
|
+
n.value && "is-disabled",
|
|
1276
1276
|
l.value && "is-checked",
|
|
1277
1277
|
a.invalid && "is-invalid"
|
|
1278
1278
|
].filter(Boolean));
|
|
1279
1279
|
function u() {
|
|
1280
|
-
!
|
|
1280
|
+
!n.value && !a.readonly && a.onSelect(t.radioValue);
|
|
1281
1281
|
}
|
|
1282
|
-
return (r, i) => (s(),
|
|
1282
|
+
return (r, i) => (s(), o("label", {
|
|
1283
1283
|
class: y(d.value)
|
|
1284
1284
|
}, [
|
|
1285
1285
|
c("input", {
|
|
@@ -1287,7 +1287,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1287
1287
|
name: M(a).name || void 0,
|
|
1288
1288
|
value: e.radioValue,
|
|
1289
1289
|
checked: l.value,
|
|
1290
|
-
disabled:
|
|
1290
|
+
disabled: n.value,
|
|
1291
1291
|
class: "radio-input",
|
|
1292
1292
|
onChange: u
|
|
1293
1293
|
}, null, 40, ga),
|
|
@@ -1295,7 +1295,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1295
1295
|
class: "radio-indicator",
|
|
1296
1296
|
"aria-hidden": "true"
|
|
1297
1297
|
}, null, -1)),
|
|
1298
|
-
r.$slots.default ? (s(),
|
|
1298
|
+
r.$slots.default ? (s(), o("span", ya, [
|
|
1299
1299
|
b(r.$slots, "default")
|
|
1300
1300
|
])) : w("", !0)
|
|
1301
1301
|
], 2));
|
|
@@ -1305,7 +1305,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1305
1305
|
value: "",
|
|
1306
1306
|
disabled: "",
|
|
1307
1307
|
hidden: ""
|
|
1308
|
-
}, La = ["id"],
|
|
1308
|
+
}, La = ["id"], Yt = /* @__PURE__ */ v({
|
|
1309
1309
|
name: "LlmSelect",
|
|
1310
1310
|
__name: "llm-select",
|
|
1311
1311
|
props: {
|
|
@@ -1321,18 +1321,18 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1321
1321
|
},
|
|
1322
1322
|
emits: ["update:value"],
|
|
1323
1323
|
setup(e, { emit: t }) {
|
|
1324
|
-
const a = e,
|
|
1324
|
+
const a = e, n = t, l = O(), d = O(), u = p(() => [
|
|
1325
1325
|
"llm-select",
|
|
1326
1326
|
a.invalid && "is-invalid",
|
|
1327
1327
|
a.disabled && "is-disabled"
|
|
1328
1328
|
]);
|
|
1329
1329
|
function r(i) {
|
|
1330
|
-
a.readonly || a.disabled ||
|
|
1330
|
+
a.readonly || a.disabled || n("update:value", i.target.value);
|
|
1331
1331
|
}
|
|
1332
|
-
return (i, m) => (s(),
|
|
1332
|
+
return (i, m) => (s(), o("div", {
|
|
1333
1333
|
class: y(u.value)
|
|
1334
1334
|
}, [
|
|
1335
|
-
e.label ? (s(),
|
|
1335
|
+
e.label ? (s(), o("label", {
|
|
1336
1336
|
key: 0,
|
|
1337
1337
|
for: M(l),
|
|
1338
1338
|
class: "select-label"
|
|
@@ -1349,7 +1349,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1349
1349
|
class: "select-native",
|
|
1350
1350
|
onChange: r
|
|
1351
1351
|
}, [
|
|
1352
|
-
e.placeholder ? (s(),
|
|
1352
|
+
e.placeholder ? (s(), o("option", wa, L(e.placeholder), 1)) : w("", !0),
|
|
1353
1353
|
b(i.$slots, "default")
|
|
1354
1354
|
], 40, _a),
|
|
1355
1355
|
m[0] || (m[0] = c("span", {
|
|
@@ -1357,20 +1357,20 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1357
1357
|
"aria-hidden": "true"
|
|
1358
1358
|
}, "▾", -1))
|
|
1359
1359
|
]),
|
|
1360
|
-
e.errors.length > 0 ? (s(),
|
|
1360
|
+
e.errors.length > 0 ? (s(), o("div", {
|
|
1361
1361
|
key: 1,
|
|
1362
1362
|
id: M(d),
|
|
1363
1363
|
class: "errors",
|
|
1364
1364
|
role: "alert"
|
|
1365
1365
|
}, [
|
|
1366
|
-
(s(!0),
|
|
1366
|
+
(s(!0), o(B, null, R(e.errors, ($, k) => (s(), o("p", {
|
|
1367
1367
|
key: k,
|
|
1368
1368
|
class: "error-message"
|
|
1369
1369
|
}, L($), 1))), 128))
|
|
1370
1370
|
], 8, La)) : w("", !0)
|
|
1371
1371
|
], 2));
|
|
1372
1372
|
}
|
|
1373
|
-
}), xa = ["value", "disabled"],
|
|
1373
|
+
}), xa = ["value", "disabled"], el = /* @__PURE__ */ v({
|
|
1374
1374
|
name: "LlmOption",
|
|
1375
1375
|
__name: "llm-option",
|
|
1376
1376
|
props: {
|
|
@@ -1378,14 +1378,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1378
1378
|
disabled: { type: Boolean, default: !1 }
|
|
1379
1379
|
},
|
|
1380
1380
|
setup(e) {
|
|
1381
|
-
return (t, a) => (s(),
|
|
1381
|
+
return (t, a) => (s(), o("option", {
|
|
1382
1382
|
value: e.optionValue,
|
|
1383
1383
|
disabled: e.disabled
|
|
1384
1384
|
}, [
|
|
1385
1385
|
b(t.$slots, "default")
|
|
1386
1386
|
], 8, xa));
|
|
1387
1387
|
}
|
|
1388
|
-
}),
|
|
1388
|
+
}), al = /* @__PURE__ */ v({
|
|
1389
1389
|
name: "LlmSkeleton",
|
|
1390
1390
|
__name: "llm-skeleton",
|
|
1391
1391
|
props: {
|
|
@@ -1409,7 +1409,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1409
1409
|
return "1em";
|
|
1410
1410
|
}
|
|
1411
1411
|
}
|
|
1412
|
-
const
|
|
1412
|
+
const n = p(() => [
|
|
1413
1413
|
"llm-skeleton",
|
|
1414
1414
|
`variant-${t.variant}`,
|
|
1415
1415
|
t.animated && "is-animated"
|
|
@@ -1417,8 +1417,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1417
1417
|
width: t.width,
|
|
1418
1418
|
height: a(t.variant, t.width, t.height)
|
|
1419
1419
|
}));
|
|
1420
|
-
return (d, u) => (s(),
|
|
1421
|
-
class: y(
|
|
1420
|
+
return (d, u) => (s(), o("div", {
|
|
1421
|
+
class: y(n.value),
|
|
1422
1422
|
style: G(l.value),
|
|
1423
1423
|
"aria-hidden": "true"
|
|
1424
1424
|
}, null, 6));
|
|
@@ -1446,7 +1446,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1446
1446
|
}, Aa = {
|
|
1447
1447
|
key: 1,
|
|
1448
1448
|
class: "step-optional"
|
|
1449
|
-
}, Ra = { class: "stepper-content" }, le = /* @__PURE__ */ Symbol("LlmStepper"),
|
|
1449
|
+
}, Ra = { class: "stepper-content" }, le = /* @__PURE__ */ Symbol("LlmStepper"), tl = /* @__PURE__ */ v({
|
|
1450
1450
|
name: "LlmStepper",
|
|
1451
1451
|
__name: "llm-stepper",
|
|
1452
1452
|
props: {
|
|
@@ -1456,7 +1456,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1456
1456
|
},
|
|
1457
1457
|
emits: ["update:activeStep"],
|
|
1458
1458
|
setup(e, { emit: t }) {
|
|
1459
|
-
const a = e,
|
|
1459
|
+
const a = e, n = t, l = C(a.activeStep), d = C([]), u = p(() => a.linear);
|
|
1460
1460
|
z(
|
|
1461
1461
|
() => a.activeStep,
|
|
1462
1462
|
(f) => {
|
|
@@ -1474,14 +1474,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1474
1474
|
x !== -1 && (d.value[x] = { ...d.value[x], ...T });
|
|
1475
1475
|
}
|
|
1476
1476
|
function $(f) {
|
|
1477
|
-
f < 0 || f >= d.value.length || d.value[f].disabled || a.linear && f > l.value && !d.value.slice(0, f).every((x) => x.completed || x.optional) || (l.value = f,
|
|
1477
|
+
f < 0 || f >= d.value.length || d.value[f].disabled || a.linear && f > l.value && !d.value.slice(0, f).every((x) => x.completed || x.optional) || (l.value = f, n("update:activeStep", f));
|
|
1478
1478
|
}
|
|
1479
1479
|
function k() {
|
|
1480
1480
|
$(l.value + 1);
|
|
1481
1481
|
}
|
|
1482
1482
|
function h() {
|
|
1483
1483
|
const f = l.value - 1;
|
|
1484
|
-
f >= 0 && !d.value[f]?.disabled && (l.value = f,
|
|
1484
|
+
f >= 0 && !d.value[f]?.disabled && (l.value = f, n("update:activeStep", f));
|
|
1485
1485
|
}
|
|
1486
1486
|
H(le, {
|
|
1487
1487
|
activeStep: l,
|
|
@@ -1498,11 +1498,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1498
1498
|
function g(f) {
|
|
1499
1499
|
return l.value > f || d.value[f]?.completed;
|
|
1500
1500
|
}
|
|
1501
|
-
return (f, T) => (s(),
|
|
1501
|
+
return (f, T) => (s(), o("div", {
|
|
1502
1502
|
class: y(_.value)
|
|
1503
1503
|
}, [
|
|
1504
1504
|
c("div", Ca, [
|
|
1505
|
-
(s(!0),
|
|
1505
|
+
(s(!0), o(B, null, R(d.value, (x, S) => (s(), o(B, {
|
|
1506
1506
|
key: x.id
|
|
1507
1507
|
}, [
|
|
1508
1508
|
c("div", {
|
|
@@ -1526,7 +1526,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1526
1526
|
disabled: x.disabled || void 0,
|
|
1527
1527
|
onClick: (P) => $(S)
|
|
1528
1528
|
}, [
|
|
1529
|
-
x.completed && !x.error ? (s(),
|
|
1529
|
+
x.completed && !x.error ? (s(), o("svg", Ta, [...T[0] || (T[0] = [
|
|
1530
1530
|
c("path", {
|
|
1531
1531
|
d: "M2 7L5.5 10.5L12 3.5",
|
|
1532
1532
|
stroke: "currentColor",
|
|
@@ -1534,24 +1534,24 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1534
1534
|
"stroke-linecap": "round",
|
|
1535
1535
|
"stroke-linejoin": "round"
|
|
1536
1536
|
}, null, -1)
|
|
1537
|
-
])])) : x.error ? (s(),
|
|
1537
|
+
])])) : x.error ? (s(), o("svg", Ia, [...T[1] || (T[1] = [
|
|
1538
1538
|
c("path", {
|
|
1539
1539
|
d: "M3 3L11 11M11 3L3 11",
|
|
1540
1540
|
stroke: "currentColor",
|
|
1541
1541
|
"stroke-width": "2",
|
|
1542
1542
|
"stroke-linecap": "round"
|
|
1543
1543
|
}, null, -1)
|
|
1544
|
-
])])) : (s(),
|
|
1544
|
+
])])) : (s(), o(B, { key: 2 }, [
|
|
1545
1545
|
F(L(S + 1), 1)
|
|
1546
1546
|
], 64))
|
|
1547
1547
|
], 8, Ba),
|
|
1548
1548
|
c("div", Da, [
|
|
1549
1549
|
c("span", Sa, L(x.label), 1),
|
|
1550
|
-
x.description ? (s(),
|
|
1551
|
-
x.optional && !x.completed ? (s(),
|
|
1550
|
+
x.description ? (s(), o("span", Ma, L(x.description), 1)) : w("", !0),
|
|
1551
|
+
x.optional && !x.completed ? (s(), o("span", Aa, "Optional")) : w("", !0)
|
|
1552
1552
|
])
|
|
1553
1553
|
], 2),
|
|
1554
|
-
S < d.value.length - 1 ? (s(),
|
|
1554
|
+
S < d.value.length - 1 ? (s(), o("div", {
|
|
1555
1555
|
key: 0,
|
|
1556
1556
|
class: y(["step-connector", { "is-active": g(S) }])
|
|
1557
1557
|
}, null, 2)) : w("", !0)
|
|
@@ -1562,7 +1562,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1562
1562
|
])
|
|
1563
1563
|
], 2));
|
|
1564
1564
|
}
|
|
1565
|
-
}), za = ["id", "aria-labelledby", "hidden"],
|
|
1565
|
+
}), za = ["id", "aria-labelledby", "hidden"], ll = /* @__PURE__ */ v({
|
|
1566
1566
|
name: "LlmStep",
|
|
1567
1567
|
__name: "llm-step",
|
|
1568
1568
|
props: {
|
|
@@ -1574,10 +1574,10 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1574
1574
|
disabled: { type: Boolean, default: !1 }
|
|
1575
1575
|
},
|
|
1576
1576
|
setup(e) {
|
|
1577
|
-
const t = e, a = q(le),
|
|
1577
|
+
const t = e, a = q(le), n = O();
|
|
1578
1578
|
E(() => {
|
|
1579
1579
|
a.registerStep({
|
|
1580
|
-
id:
|
|
1580
|
+
id: n,
|
|
1581
1581
|
label: t.label,
|
|
1582
1582
|
description: t.description,
|
|
1583
1583
|
completed: t.completed,
|
|
@@ -1586,7 +1586,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1586
1586
|
disabled: t.disabled
|
|
1587
1587
|
});
|
|
1588
1588
|
}), j(() => {
|
|
1589
|
-
a.unregisterStep(
|
|
1589
|
+
a.unregisterStep(n);
|
|
1590
1590
|
}), z(
|
|
1591
1591
|
() => ({
|
|
1592
1592
|
label: t.label,
|
|
@@ -1597,11 +1597,11 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1597
1597
|
disabled: t.disabled
|
|
1598
1598
|
}),
|
|
1599
1599
|
(u) => {
|
|
1600
|
-
a.updateStep(
|
|
1600
|
+
a.updateStep(n, u);
|
|
1601
1601
|
}
|
|
1602
1602
|
);
|
|
1603
|
-
const l = p(() => a.steps.value.findIndex((u) => u.id ===
|
|
1604
|
-
return (u, r) => l.value >= 0 ? (s(),
|
|
1603
|
+
const l = p(() => a.steps.value.findIndex((u) => u.id === n)), d = p(() => l.value === a.activeStep.value);
|
|
1604
|
+
return (u, r) => l.value >= 0 ? (s(), o("div", {
|
|
1605
1605
|
key: 0,
|
|
1606
1606
|
id: `llm-step-panel-${l.value}`,
|
|
1607
1607
|
role: "tabpanel",
|
|
@@ -1612,7 +1612,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1612
1612
|
b(u.$slots, "default")
|
|
1613
1613
|
], 8, za)) : w("", !0);
|
|
1614
1614
|
}
|
|
1615
|
-
}), qa = { class: "llm-table-wrapper" },
|
|
1615
|
+
}), qa = { class: "llm-table-wrapper" }, sl = /* @__PURE__ */ v({
|
|
1616
1616
|
name: "LlmTable",
|
|
1617
1617
|
__name: "llm-table",
|
|
1618
1618
|
props: {
|
|
@@ -1627,25 +1627,25 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1627
1627
|
`size-${t.size}`,
|
|
1628
1628
|
t.stickyHeader && "is-sticky-header"
|
|
1629
1629
|
]);
|
|
1630
|
-
return (
|
|
1630
|
+
return (n, l) => (s(), o("div", {
|
|
1631
1631
|
class: y(a.value)
|
|
1632
1632
|
}, [
|
|
1633
1633
|
c("div", qa, [
|
|
1634
1634
|
c("table", null, [
|
|
1635
|
-
b(
|
|
1635
|
+
b(n.$slots, "default")
|
|
1636
1636
|
])
|
|
1637
1637
|
])
|
|
1638
1638
|
], 2));
|
|
1639
1639
|
}
|
|
1640
|
-
}),
|
|
1640
|
+
}), nl = /* @__PURE__ */ v({
|
|
1641
1641
|
name: "LlmThead",
|
|
1642
1642
|
__name: "llm-thead",
|
|
1643
1643
|
setup(e) {
|
|
1644
|
-
return (t, a) => (s(),
|
|
1644
|
+
return (t, a) => (s(), o("thead", null, [
|
|
1645
1645
|
b(t.$slots, "default")
|
|
1646
1646
|
]));
|
|
1647
1647
|
}
|
|
1648
|
-
}), Ha = { key: 1 }, Ea = ["colspan"],
|
|
1648
|
+
}), Ha = { key: 1 }, Ea = ["colspan"], ol = /* @__PURE__ */ v({
|
|
1649
1649
|
name: "LlmTbody",
|
|
1650
1650
|
__name: "llm-tbody",
|
|
1651
1651
|
props: {
|
|
@@ -1653,8 +1653,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1653
1653
|
colSpan: { default: 1 }
|
|
1654
1654
|
},
|
|
1655
1655
|
setup(e) {
|
|
1656
|
-
return (t, a) => (s(),
|
|
1657
|
-
e.empty ? (s(),
|
|
1656
|
+
return (t, a) => (s(), o("tbody", null, [
|
|
1657
|
+
e.empty ? (s(), o("tr", Ha, [
|
|
1658
1658
|
c("td", {
|
|
1659
1659
|
colspan: e.colSpan,
|
|
1660
1660
|
class: "llm-tbody-empty-cell"
|
|
@@ -1667,7 +1667,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1667
1667
|
}), Oa = ["aria-selected"], Ka = {
|
|
1668
1668
|
key: 0,
|
|
1669
1669
|
class: "llm-tr-select-cell"
|
|
1670
|
-
},
|
|
1670
|
+
}, il = /* @__PURE__ */ v({
|
|
1671
1671
|
name: "LlmTr",
|
|
1672
1672
|
__name: "llm-tr",
|
|
1673
1673
|
props: {
|
|
@@ -1677,20 +1677,20 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1677
1677
|
emits: ["update:selected"],
|
|
1678
1678
|
setup(e, { emit: t }) {
|
|
1679
1679
|
const a = t;
|
|
1680
|
-
return (
|
|
1680
|
+
return (n, l) => (s(), o("tr", {
|
|
1681
1681
|
"aria-selected": e.selectable ? e.selected : void 0,
|
|
1682
1682
|
class: y({ "is-selected": e.selected })
|
|
1683
1683
|
}, [
|
|
1684
|
-
e.selectable ? (s(),
|
|
1684
|
+
e.selectable ? (s(), o("td", Ka, [
|
|
1685
1685
|
me(He, {
|
|
1686
1686
|
checked: e.selected,
|
|
1687
1687
|
"onUpdate:checked": l[0] || (l[0] = (d) => a("update:selected", d))
|
|
1688
1688
|
}, null, 8, ["checked"])
|
|
1689
1689
|
])) : w("", !0),
|
|
1690
|
-
b(
|
|
1690
|
+
b(n.$slots, "default")
|
|
1691
1691
|
], 10, Oa));
|
|
1692
1692
|
}
|
|
1693
|
-
}), ja = ["aria-sort"],
|
|
1693
|
+
}), ja = ["aria-sort"], rl = /* @__PURE__ */ v({
|
|
1694
1694
|
name: "LlmTh",
|
|
1695
1695
|
__name: "llm-th",
|
|
1696
1696
|
props: {
|
|
@@ -1701,7 +1701,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1701
1701
|
},
|
|
1702
1702
|
emits: ["sort"],
|
|
1703
1703
|
setup(e, { emit: t }) {
|
|
1704
|
-
const a = e,
|
|
1704
|
+
const a = e, n = t, l = p(
|
|
1705
1705
|
() => [
|
|
1706
1706
|
`align-${a.align}`,
|
|
1707
1707
|
a.sortDirection && "is-sorted",
|
|
@@ -1714,14 +1714,14 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1714
1714
|
});
|
|
1715
1715
|
function u() {
|
|
1716
1716
|
const r = a.sortDirection === null ? "asc" : a.sortDirection === "asc" ? "desc" : null;
|
|
1717
|
-
|
|
1717
|
+
n("sort", r);
|
|
1718
1718
|
}
|
|
1719
|
-
return (r, i) => (s(),
|
|
1719
|
+
return (r, i) => (s(), o("th", {
|
|
1720
1720
|
class: y(l.value),
|
|
1721
1721
|
"aria-sort": d.value,
|
|
1722
1722
|
style: G(e.width ? { width: e.width } : void 0)
|
|
1723
1723
|
}, [
|
|
1724
|
-
e.sortable ? (s(),
|
|
1724
|
+
e.sortable ? (s(), o("button", {
|
|
1725
1725
|
key: 0,
|
|
1726
1726
|
type: "button",
|
|
1727
1727
|
class: "llm-th-sort-btn",
|
|
@@ -1750,7 +1750,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1750
1750
|
])) : b(r.$slots, "default", { key: 1 })
|
|
1751
1751
|
], 14, ja));
|
|
1752
1752
|
}
|
|
1753
|
-
}),
|
|
1753
|
+
}), dl = /* @__PURE__ */ v({
|
|
1754
1754
|
name: "LlmTd",
|
|
1755
1755
|
__name: "llm-td",
|
|
1756
1756
|
props: {
|
|
@@ -1758,13 +1758,13 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1758
1758
|
},
|
|
1759
1759
|
setup(e) {
|
|
1760
1760
|
const t = e, a = p(() => [`align-${t.align}`]);
|
|
1761
|
-
return (
|
|
1761
|
+
return (n, l) => (s(), o("td", {
|
|
1762
1762
|
class: y(a.value)
|
|
1763
1763
|
}, [
|
|
1764
|
-
b(
|
|
1764
|
+
b(n.$slots, "default")
|
|
1765
1765
|
], 2));
|
|
1766
1766
|
}
|
|
1767
|
-
}), Fa = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"], Ga = { class: "tab-panels" }, se = /* @__PURE__ */ Symbol("LlmTabGroup"),
|
|
1767
|
+
}), Fa = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"], Ga = { class: "tab-panels" }, se = /* @__PURE__ */ Symbol("LlmTabGroup"), ul = /* @__PURE__ */ v({
|
|
1768
1768
|
name: "LlmTabGroup",
|
|
1769
1769
|
__name: "llm-tab-group",
|
|
1770
1770
|
props: {
|
|
@@ -1773,7 +1773,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1773
1773
|
},
|
|
1774
1774
|
emits: ["update:selectedIndex"],
|
|
1775
1775
|
setup(e, { emit: t }) {
|
|
1776
|
-
const a = e,
|
|
1776
|
+
const a = e, n = t, l = C(a.selectedIndex), d = C([]);
|
|
1777
1777
|
z(
|
|
1778
1778
|
() => a.selectedIndex,
|
|
1779
1779
|
(h) => {
|
|
@@ -1787,7 +1787,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1787
1787
|
d.value = d.value.filter((_) => _.id !== h);
|
|
1788
1788
|
}
|
|
1789
1789
|
function i(h) {
|
|
1790
|
-
l.value = h,
|
|
1790
|
+
l.value = h, n("update:selectedIndex", h);
|
|
1791
1791
|
}
|
|
1792
1792
|
H(se, {
|
|
1793
1793
|
selectedIndex: l,
|
|
@@ -1815,7 +1815,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
1817
|
const $ = `llm-tab-group-${Math.random().toString(36).slice(2, 9)}`, k = p(() => ["llm-tab-group", `variant-${a.variant}`]);
|
|
1818
|
-
return (h, _) => (s(),
|
|
1818
|
+
return (h, _) => (s(), o("div", {
|
|
1819
1819
|
class: y(k.value)
|
|
1820
1820
|
}, [
|
|
1821
1821
|
c("div", {
|
|
@@ -1823,7 +1823,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1823
1823
|
role: "tablist",
|
|
1824
1824
|
onKeydown: m
|
|
1825
1825
|
}, [
|
|
1826
|
-
(s(!0),
|
|
1826
|
+
(s(!0), o(B, null, R(d.value, (g, f) => (s(), o("button", {
|
|
1827
1827
|
key: g.id,
|
|
1828
1828
|
role: "tab",
|
|
1829
1829
|
id: `${$}-tab-${f}`,
|
|
@@ -1841,7 +1841,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1841
1841
|
])
|
|
1842
1842
|
], 2));
|
|
1843
1843
|
}
|
|
1844
|
-
}), Pa = ["hidden"],
|
|
1844
|
+
}), Pa = ["hidden"], cl = /* @__PURE__ */ v({
|
|
1845
1845
|
name: "LlmTab",
|
|
1846
1846
|
__name: "llm-tab",
|
|
1847
1847
|
props: {
|
|
@@ -1849,15 +1849,15 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1849
1849
|
disabled: { type: Boolean, default: !1 }
|
|
1850
1850
|
},
|
|
1851
1851
|
setup(e) {
|
|
1852
|
-
const t = e, a = q(se),
|
|
1852
|
+
const t = e, a = q(se), n = O();
|
|
1853
1853
|
E(() => {
|
|
1854
|
-
a.registerTab({ id:
|
|
1854
|
+
a.registerTab({ id: n, label: t.label, disabled: t.disabled });
|
|
1855
1855
|
}), j(() => {
|
|
1856
|
-
a.unregisterTab(
|
|
1856
|
+
a.unregisterTab(n);
|
|
1857
1857
|
});
|
|
1858
|
-
const l = p(() => a.tabs.value.findIndex((u) => u.id ===
|
|
1858
|
+
const l = p(() => a.tabs.value.findIndex((u) => u.id === n)), d = p(() => l.value === a.selectedIndex.value);
|
|
1859
1859
|
return p(() => {
|
|
1860
|
-
}), (u, r) => l.value >= 0 ? (s(),
|
|
1860
|
+
}), (u, r) => l.value >= 0 ? (s(), o("div", {
|
|
1861
1861
|
key: 0,
|
|
1862
1862
|
role: "tabpanel",
|
|
1863
1863
|
hidden: !d.value,
|
|
@@ -1872,7 +1872,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1872
1872
|
key: 1,
|
|
1873
1873
|
class: "errors",
|
|
1874
1874
|
"aria-live": "polite"
|
|
1875
|
-
},
|
|
1875
|
+
}, ml = /* @__PURE__ */ v({
|
|
1876
1876
|
name: "LlmTextarea",
|
|
1877
1877
|
__name: "llm-textarea",
|
|
1878
1878
|
props: {
|
|
@@ -1891,7 +1891,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1891
1891
|
},
|
|
1892
1892
|
emits: ["update:value"],
|
|
1893
1893
|
setup(e, { emit: t }) {
|
|
1894
|
-
const a = e,
|
|
1894
|
+
const a = e, n = t, l = C(null), d = p(() => a.id || (a.label ? `textarea-${Math.random().toString(36).slice(2)}` : void 0));
|
|
1895
1895
|
function u() {
|
|
1896
1896
|
a.autoResize && l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`);
|
|
1897
1897
|
}
|
|
@@ -1899,12 +1899,12 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1899
1899
|
await Z(), u();
|
|
1900
1900
|
}), E(() => u());
|
|
1901
1901
|
function r(i) {
|
|
1902
|
-
|
|
1902
|
+
n("update:value", i.target.value), u();
|
|
1903
1903
|
}
|
|
1904
|
-
return (i, m) => (s(),
|
|
1904
|
+
return (i, m) => (s(), o("div", {
|
|
1905
1905
|
class: y(["llm-textarea", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
1906
1906
|
}, [
|
|
1907
|
-
e.label ? (s(),
|
|
1907
|
+
e.label ? (s(), o("label", {
|
|
1908
1908
|
key: 0,
|
|
1909
1909
|
for: d.value,
|
|
1910
1910
|
class: "textarea-label"
|
|
@@ -1925,8 +1925,8 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1925
1925
|
onInput: r
|
|
1926
1926
|
}, null, 40, Ua)
|
|
1927
1927
|
]),
|
|
1928
|
-
e.errors.length ? (s(),
|
|
1929
|
-
(s(!0),
|
|
1928
|
+
e.errors.length ? (s(), o("ul", Wa, [
|
|
1929
|
+
(s(!0), o(B, null, R(e.errors, ($, k) => (s(), o("li", {
|
|
1930
1930
|
key: k,
|
|
1931
1931
|
class: "error"
|
|
1932
1932
|
}, L($), 1))), 128))
|
|
@@ -1934,7 +1934,7 @@ const X = /* @__PURE__ */ Symbol("LlmAccordionGroup"), _t = /* @__PURE__ */ v({
|
|
|
1934
1934
|
], 2));
|
|
1935
1935
|
}
|
|
1936
1936
|
}), N = /* @__PURE__ */ Symbol("LlmToast");
|
|
1937
|
-
function
|
|
1937
|
+
function fl() {
|
|
1938
1938
|
const e = q(N);
|
|
1939
1939
|
if (!e)
|
|
1940
1940
|
throw new Error(
|
|
@@ -1942,12 +1942,12 @@ function pl() {
|
|
|
1942
1942
|
);
|
|
1943
1943
|
return { show: e.show, dismiss: e.dismiss, clear: e.clear };
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1945
|
+
const pl = /* @__PURE__ */ v({
|
|
1946
1946
|
name: "LlmToastProvider",
|
|
1947
1947
|
__name: "llm-toast-provider",
|
|
1948
1948
|
setup(e) {
|
|
1949
1949
|
const t = C([]), a = /* @__PURE__ */ new Map();
|
|
1950
|
-
function
|
|
1950
|
+
function n(u, r = {}) {
|
|
1951
1951
|
const i = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, m = r.duration ?? 5e3, $ = {
|
|
1952
1952
|
id: i,
|
|
1953
1953
|
message: u,
|
|
@@ -1973,7 +1973,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
1973
1973
|
clearTimeout(u);
|
|
1974
1974
|
a.clear(), t.value = [];
|
|
1975
1975
|
}
|
|
1976
|
-
return H(N, { toasts: t, show:
|
|
1976
|
+
return H(N, { toasts: t, show: n, dismiss: l, clear: d }), (u, r) => b(u.$slots, "default");
|
|
1977
1977
|
}
|
|
1978
1978
|
}), Ja = { class: "message" }, Za = /* @__PURE__ */ v({
|
|
1979
1979
|
name: "LlmToastItem",
|
|
@@ -1983,18 +1983,18 @@ const vl = /* @__PURE__ */ v({
|
|
|
1983
1983
|
},
|
|
1984
1984
|
emits: ["dismiss"],
|
|
1985
1985
|
setup(e, { emit: t }) {
|
|
1986
|
-
const a = e,
|
|
1987
|
-
return (d, u) => (s(),
|
|
1986
|
+
const a = e, n = t, l = p(() => ["llm-toast", `variant-${a.data.variant}`]);
|
|
1987
|
+
return (d, u) => (s(), o("div", {
|
|
1988
1988
|
class: y(l.value),
|
|
1989
1989
|
role: "status"
|
|
1990
1990
|
}, [
|
|
1991
1991
|
c("span", Ja, L(e.data.message), 1),
|
|
1992
|
-
e.data.dismissible ? (s(),
|
|
1992
|
+
e.data.dismissible ? (s(), o("button", {
|
|
1993
1993
|
key: 0,
|
|
1994
1994
|
class: "dismiss",
|
|
1995
1995
|
type: "button",
|
|
1996
1996
|
"aria-label": "Dismiss",
|
|
1997
|
-
onClick: u[0] || (u[0] = (r) =>
|
|
1997
|
+
onClick: u[0] || (u[0] = (r) => n("dismiss", e.data.id))
|
|
1998
1998
|
}, [...u[1] || (u[1] = [
|
|
1999
1999
|
c("svg", {
|
|
2000
2000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2024,24 +2024,24 @@ const vl = /* @__PURE__ */ v({
|
|
|
2024
2024
|
])])) : w("", !0)
|
|
2025
2025
|
], 2));
|
|
2026
2026
|
}
|
|
2027
|
-
}),
|
|
2027
|
+
}), vl = /* @__PURE__ */ v({
|
|
2028
2028
|
name: "LlmToastContainer",
|
|
2029
2029
|
__name: "llm-toast-container",
|
|
2030
2030
|
props: {
|
|
2031
2031
|
position: { default: "bottom-right" }
|
|
2032
2032
|
},
|
|
2033
2033
|
setup(e) {
|
|
2034
|
-
const t = e, a = q(N),
|
|
2034
|
+
const t = e, a = q(N), n = p(() => a.toasts.value);
|
|
2035
2035
|
function l(u) {
|
|
2036
2036
|
a.dismiss(u);
|
|
2037
2037
|
}
|
|
2038
2038
|
const d = p(() => ["llm-toast-container", `position-${t.position}`]);
|
|
2039
|
-
return (u, r) => (s(),
|
|
2039
|
+
return (u, r) => (s(), o("div", {
|
|
2040
2040
|
class: y(d.value),
|
|
2041
2041
|
"aria-live": "polite",
|
|
2042
2042
|
role: "status"
|
|
2043
2043
|
}, [
|
|
2044
|
-
(s(!0),
|
|
2044
|
+
(s(!0), o(B, null, R(n.value, (i) => (s(), W(Za, {
|
|
2045
2045
|
key: i.id,
|
|
2046
2046
|
data: i,
|
|
2047
2047
|
onDismiss: r[0] || (r[0] = (m) => l(m))
|
|
@@ -2052,7 +2052,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2052
2052
|
key: 0,
|
|
2053
2053
|
class: "errors",
|
|
2054
2054
|
"aria-live": "polite"
|
|
2055
|
-
},
|
|
2055
|
+
}, hl = /* @__PURE__ */ v({
|
|
2056
2056
|
name: "LlmToggle",
|
|
2057
2057
|
__name: "llm-toggle",
|
|
2058
2058
|
props: {
|
|
@@ -2067,11 +2067,11 @@ const vl = /* @__PURE__ */ v({
|
|
|
2067
2067
|
},
|
|
2068
2068
|
emits: ["update:checked"],
|
|
2069
2069
|
setup(e, { emit: t }) {
|
|
2070
|
-
const a = e,
|
|
2070
|
+
const a = e, n = t, l = p(() => a.id || `toggle-${Math.random().toString(36).slice(2)}`);
|
|
2071
2071
|
function d(u) {
|
|
2072
|
-
a.readonly ||
|
|
2072
|
+
a.readonly || n("update:checked", u.target.checked);
|
|
2073
2073
|
}
|
|
2074
|
-
return (u, r) => (s(),
|
|
2074
|
+
return (u, r) => (s(), o("div", {
|
|
2075
2075
|
class: y(["llm-toggle", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
2076
2076
|
}, [
|
|
2077
2077
|
c("label", {
|
|
@@ -2095,15 +2095,15 @@ const vl = /* @__PURE__ */ v({
|
|
|
2095
2095
|
], -1)),
|
|
2096
2096
|
b(u.$slots, "default")
|
|
2097
2097
|
], 8, Qa),
|
|
2098
|
-
e.errors.length ? (s(),
|
|
2099
|
-
(s(!0),
|
|
2098
|
+
e.errors.length ? (s(), o("ul", Ya, [
|
|
2099
|
+
(s(!0), o(B, null, R(e.errors, (i, m) => (s(), o("li", {
|
|
2100
2100
|
key: m,
|
|
2101
2101
|
class: "error"
|
|
2102
2102
|
}, L(i), 1))), 128))
|
|
2103
2103
|
])) : w("", !0)
|
|
2104
2104
|
], 2));
|
|
2105
2105
|
}
|
|
2106
|
-
}),
|
|
2106
|
+
}), bl = /* @__PURE__ */ v({
|
|
2107
2107
|
name: "LlmTooltip",
|
|
2108
2108
|
__name: "llm-tooltip",
|
|
2109
2109
|
props: {
|
|
@@ -2115,12 +2115,12 @@ const vl = /* @__PURE__ */ v({
|
|
|
2115
2115
|
},
|
|
2116
2116
|
setup(e) {
|
|
2117
2117
|
const t = e, a = C(!1);
|
|
2118
|
-
let
|
|
2118
|
+
let n = null, l = null;
|
|
2119
2119
|
function d() {
|
|
2120
|
-
|
|
2120
|
+
n && (clearTimeout(n), n = null), l && (clearTimeout(l), l = null);
|
|
2121
2121
|
}
|
|
2122
2122
|
function u() {
|
|
2123
|
-
t.llmTooltipDisabled || !t.llmTooltip || (d(),
|
|
2123
|
+
t.llmTooltipDisabled || !t.llmTooltip || (d(), n = setTimeout(() => {
|
|
2124
2124
|
a.value = !0;
|
|
2125
2125
|
}, t.llmTooltipShowDelay));
|
|
2126
2126
|
}
|
|
@@ -2132,7 +2132,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2132
2132
|
function i(m) {
|
|
2133
2133
|
m.key === "Escape" && (d(), a.value = !1);
|
|
2134
2134
|
}
|
|
2135
|
-
return J(() => d()), (m, $) => (s(),
|
|
2135
|
+
return J(() => d()), (m, $) => (s(), o("span", {
|
|
2136
2136
|
class: "llm-tooltip-wrapper",
|
|
2137
2137
|
onMouseenter: u,
|
|
2138
2138
|
onMouseleave: r,
|
|
@@ -2141,14 +2141,14 @@ const vl = /* @__PURE__ */ v({
|
|
|
2141
2141
|
onKeydown: i
|
|
2142
2142
|
}, [
|
|
2143
2143
|
b(m.$slots, "default"),
|
|
2144
|
-
a.value && !e.llmTooltipDisabled && e.llmTooltip ? (s(),
|
|
2144
|
+
a.value && !e.llmTooltipDisabled && e.llmTooltip ? (s(), o("div", {
|
|
2145
2145
|
key: 0,
|
|
2146
2146
|
role: "tooltip",
|
|
2147
2147
|
class: y(`llm-tooltip position-${e.llmTooltipPosition}`)
|
|
2148
2148
|
}, L(e.llmTooltip), 3)) : w("", !0)
|
|
2149
2149
|
], 32));
|
|
2150
2150
|
}
|
|
2151
|
-
}), et = { class: "llm-code-block" }, at = { class: "code-block-header" }, tt = { class: "code-block-label" }, lt = ["aria-label"], st = { class: "code-block-body" }, nt = { class: "code-block-pre" }, ot = { class: "code-line-number" }, it = { class: "code-line-text" },
|
|
2151
|
+
}), et = { class: "llm-code-block" }, at = { class: "code-block-header" }, tt = { class: "code-block-label" }, lt = ["aria-label"], st = { class: "code-block-body" }, nt = { class: "code-block-pre" }, ot = { class: "code-line-number" }, it = { class: "code-line-text" }, gl = /* @__PURE__ */ v({
|
|
2152
2152
|
name: "LlmCodeBlock",
|
|
2153
2153
|
__name: "llm-code-block",
|
|
2154
2154
|
props: {
|
|
@@ -2159,7 +2159,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2159
2159
|
showLineNumbers: { type: Boolean, default: !1 }
|
|
2160
2160
|
},
|
|
2161
2161
|
setup(e) {
|
|
2162
|
-
const t = e, a = C(!1),
|
|
2162
|
+
const t = e, a = C(!1), n = p(() => t.filename || t.language), l = p(() => t.code.split(`
|
|
2163
2163
|
`));
|
|
2164
2164
|
function d() {
|
|
2165
2165
|
navigator.clipboard.writeText(t.code).then(() => {
|
|
@@ -2168,17 +2168,17 @@ const vl = /* @__PURE__ */ v({
|
|
|
2168
2168
|
}, 1800);
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
2171
|
-
return (u, r) => (s(),
|
|
2171
|
+
return (u, r) => (s(), o("div", et, [
|
|
2172
2172
|
c("div", at, [
|
|
2173
|
-
c("span", tt, L(
|
|
2174
|
-
e.copyable ? (s(),
|
|
2173
|
+
c("span", tt, L(n.value), 1),
|
|
2174
|
+
e.copyable ? (s(), o("button", {
|
|
2175
2175
|
key: 0,
|
|
2176
2176
|
class: "code-block-copy",
|
|
2177
2177
|
type: "button",
|
|
2178
2178
|
"aria-label": a.value ? "Copied" : "Copy code",
|
|
2179
2179
|
onClick: d
|
|
2180
2180
|
}, [
|
|
2181
|
-
a.value ? (s(),
|
|
2181
|
+
a.value ? (s(), o(B, { key: 0 }, [
|
|
2182
2182
|
r[0] || (r[0] = c("svg", {
|
|
2183
2183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2184
2184
|
width: "14",
|
|
@@ -2194,7 +2194,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2194
2194
|
c("polyline", { points: "20 6 9 17 4 12" })
|
|
2195
2195
|
], -1)),
|
|
2196
2196
|
r[1] || (r[1] = F(" Copied ", -1))
|
|
2197
|
-
], 64)) : (s(),
|
|
2197
|
+
], 64)) : (s(), o(B, { key: 1 }, [
|
|
2198
2198
|
r[2] || (r[2] = c("svg", {
|
|
2199
2199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2200
2200
|
width: "14",
|
|
@@ -2224,13 +2224,13 @@ const vl = /* @__PURE__ */ v({
|
|
|
2224
2224
|
c("div", st, [
|
|
2225
2225
|
c("pre", nt, [
|
|
2226
2226
|
c("code", null, [
|
|
2227
|
-
e.showLineNumbers ? (s(!0),
|
|
2227
|
+
e.showLineNumbers ? (s(!0), o(B, { key: 0 }, R(l.value, (i, m) => (s(), o("span", {
|
|
2228
2228
|
key: m,
|
|
2229
2229
|
class: "code-line"
|
|
2230
2230
|
}, [
|
|
2231
2231
|
c("span", ot, L(m + 1), 1),
|
|
2232
2232
|
c("span", it, L(i), 1)
|
|
2233
|
-
]))), 128)) : (s(),
|
|
2233
|
+
]))), 128)) : (s(), o(B, { key: 1 }, [
|
|
2234
2234
|
F(L(e.code), 1)
|
|
2235
2235
|
], 64))
|
|
2236
2236
|
])
|
|
@@ -2238,7 +2238,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2238
2238
|
])
|
|
2239
2239
|
]));
|
|
2240
2240
|
}
|
|
2241
|
-
}), rt = ["aria-labelledby"], dt = ["aria-labelledby"], ut = ["aria-label", "aria-expanded"], ct = ["aria-labelledby"], U = /* @__PURE__ */ Symbol("LlmChat"),
|
|
2241
|
+
}), rt = ["aria-labelledby"], dt = ["aria-labelledby"], ut = ["aria-label", "aria-expanded"], ct = ["aria-labelledby"], U = /* @__PURE__ */ Symbol("LlmChat"), yl = /* @__PURE__ */ v({
|
|
2242
2242
|
name: "LlmChat",
|
|
2243
2243
|
__name: "llm-chat",
|
|
2244
2244
|
props: {
|
|
@@ -2248,12 +2248,12 @@ const vl = /* @__PURE__ */ v({
|
|
|
2248
2248
|
},
|
|
2249
2249
|
emits: ["update:open"],
|
|
2250
2250
|
setup(e, { emit: t }) {
|
|
2251
|
-
const a = e,
|
|
2251
|
+
const a = e, n = t, l = C(null), d = Q("hostRef"), u = O(), r = fe(a, "status");
|
|
2252
2252
|
function i() {
|
|
2253
|
-
|
|
2253
|
+
n("update:open", !1);
|
|
2254
2254
|
}
|
|
2255
2255
|
function m() {
|
|
2256
|
-
|
|
2256
|
+
n("update:open", !a.open);
|
|
2257
2257
|
}
|
|
2258
2258
|
H(U, {
|
|
2259
2259
|
headerId: u,
|
|
@@ -2278,13 +2278,13 @@ const vl = /* @__PURE__ */ v({
|
|
|
2278
2278
|
{ flush: "post", immediate: !0 }
|
|
2279
2279
|
);
|
|
2280
2280
|
function $() {
|
|
2281
|
-
|
|
2281
|
+
n("update:open", !1);
|
|
2282
2282
|
}
|
|
2283
2283
|
function k(g) {
|
|
2284
|
-
g.preventDefault(),
|
|
2284
|
+
g.preventDefault(), n("update:open", !1);
|
|
2285
2285
|
}
|
|
2286
2286
|
function h(g) {
|
|
2287
|
-
g.target === l.value &&
|
|
2287
|
+
g.target === l.value && n("update:open", !1);
|
|
2288
2288
|
}
|
|
2289
2289
|
const _ = p(() => [
|
|
2290
2290
|
"llm-chat",
|
|
@@ -2292,12 +2292,12 @@ const vl = /* @__PURE__ */ v({
|
|
|
2292
2292
|
`status-${a.status}`,
|
|
2293
2293
|
a.open && "is-open"
|
|
2294
2294
|
]);
|
|
2295
|
-
return (g, f) => (s(),
|
|
2295
|
+
return (g, f) => (s(), o("div", {
|
|
2296
2296
|
ref_key: "hostRef",
|
|
2297
2297
|
ref: d,
|
|
2298
2298
|
class: y(_.value)
|
|
2299
2299
|
}, [
|
|
2300
|
-
e.variant === "drawer" ? (s(),
|
|
2300
|
+
e.variant === "drawer" ? (s(), o("dialog", {
|
|
2301
2301
|
key: 0,
|
|
2302
2302
|
ref_key: "dialogRef",
|
|
2303
2303
|
ref: l,
|
|
@@ -2314,8 +2314,8 @@ const vl = /* @__PURE__ */ v({
|
|
|
2314
2314
|
}, [
|
|
2315
2315
|
b(g.$slots, "default")
|
|
2316
2316
|
])
|
|
2317
|
-
], 40, rt)) : e.variant === "popup" ? (s(),
|
|
2318
|
-
e.open ? (s(),
|
|
2317
|
+
], 40, rt)) : e.variant === "popup" ? (s(), o(B, { key: 1 }, [
|
|
2318
|
+
e.open ? (s(), o("div", {
|
|
2319
2319
|
key: 0,
|
|
2320
2320
|
class: "surface popup-surface",
|
|
2321
2321
|
role: "dialog",
|
|
@@ -2332,7 +2332,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2332
2332
|
}, [...f[1] || (f[1] = [
|
|
2333
2333
|
c("span", { "aria-hidden": "true" }, "AI", -1)
|
|
2334
2334
|
])], 8, ut)
|
|
2335
|
-
], 64)) : (s(),
|
|
2335
|
+
], 64)) : (s(), o("section", {
|
|
2336
2336
|
key: 2,
|
|
2337
2337
|
class: "surface inline-surface",
|
|
2338
2338
|
"aria-labelledby": M(u)
|
|
@@ -2341,7 +2341,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2341
2341
|
], 8, ct))
|
|
2342
2342
|
], 2));
|
|
2343
2343
|
}
|
|
2344
|
-
}), mt = ["id"], ft = { class: "title-block" },
|
|
2344
|
+
}), mt = ["id"], ft = { class: "title-block" }, $l = /* @__PURE__ */ v({
|
|
2345
2345
|
name: "LlmChatHeader",
|
|
2346
2346
|
__name: "llm-chat-header",
|
|
2347
2347
|
setup(e) {
|
|
@@ -2353,7 +2353,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2353
2353
|
toggle: () => {
|
|
2354
2354
|
}
|
|
2355
2355
|
});
|
|
2356
|
-
return (a,
|
|
2356
|
+
return (a, n) => (s(), o("div", {
|
|
2357
2357
|
id: M(t).headerId,
|
|
2358
2358
|
class: "llm-chat-header"
|
|
2359
2359
|
}, [
|
|
@@ -2364,8 +2364,8 @@ const vl = /* @__PURE__ */ v({
|
|
|
2364
2364
|
type: "button",
|
|
2365
2365
|
class: "close-btn",
|
|
2366
2366
|
"aria-label": "Close chat",
|
|
2367
|
-
onClick:
|
|
2368
|
-
}, [...
|
|
2367
|
+
onClick: n[0] || (n[0] = (l) => M(t).close())
|
|
2368
|
+
}, [...n[1] || (n[1] = [
|
|
2369
2369
|
c("svg", {
|
|
2370
2370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2371
2371
|
width: "14",
|
|
@@ -2394,30 +2394,30 @@ const vl = /* @__PURE__ */ v({
|
|
|
2394
2394
|
])])
|
|
2395
2395
|
], 8, mt));
|
|
2396
2396
|
}
|
|
2397
|
-
}),
|
|
2397
|
+
}), kl = /* @__PURE__ */ v({
|
|
2398
2398
|
name: "LlmChatMessages",
|
|
2399
2399
|
__name: "llm-chat-messages",
|
|
2400
2400
|
setup(e) {
|
|
2401
2401
|
const t = Q("root");
|
|
2402
2402
|
let a = null;
|
|
2403
2403
|
return E(() => {
|
|
2404
|
-
const
|
|
2405
|
-
if (!
|
|
2404
|
+
const n = t.value;
|
|
2405
|
+
if (!n) return;
|
|
2406
2406
|
const l = () => {
|
|
2407
|
-
|
|
2407
|
+
n.scrollTop = n.scrollHeight;
|
|
2408
2408
|
};
|
|
2409
|
-
l(), a = new MutationObserver(l), a.observe(
|
|
2409
|
+
l(), a = new MutationObserver(l), a.observe(n, { childList: !0, subtree: !0, characterData: !0 });
|
|
2410
2410
|
}), j(() => {
|
|
2411
2411
|
a?.disconnect(), a = null;
|
|
2412
|
-
}), (
|
|
2412
|
+
}), (n, l) => (s(), o("div", {
|
|
2413
2413
|
ref_key: "root",
|
|
2414
2414
|
ref: t,
|
|
2415
2415
|
class: "llm-chat-messages"
|
|
2416
2416
|
}, [
|
|
2417
|
-
b(
|
|
2417
|
+
b(n.$slots, "default")
|
|
2418
2418
|
], 512));
|
|
2419
2419
|
}
|
|
2420
|
-
}),
|
|
2420
|
+
}), _l = /* @__PURE__ */ v({
|
|
2421
2421
|
name: "LlmChatMessage",
|
|
2422
2422
|
__name: "llm-chat-message",
|
|
2423
2423
|
props: {
|
|
@@ -2430,32 +2430,39 @@ const vl = /* @__PURE__ */ v({
|
|
|
2430
2430
|
`role-${t.role}`,
|
|
2431
2431
|
t.failed && "is-failed"
|
|
2432
2432
|
]);
|
|
2433
|
-
return (
|
|
2433
|
+
return (n, l) => (s(), o("div", {
|
|
2434
2434
|
role: "listitem",
|
|
2435
2435
|
class: y(a.value)
|
|
2436
2436
|
}, [
|
|
2437
|
-
b(
|
|
2437
|
+
b(n.$slots, "default")
|
|
2438
2438
|
], 2));
|
|
2439
2439
|
}
|
|
2440
|
-
}),
|
|
2441
|
-
class: "llm-chat-typing",
|
|
2442
|
-
role: "status",
|
|
2443
|
-
"aria-live": "polite"
|
|
2444
|
-
}, Ll = /* @__PURE__ */ v({
|
|
2440
|
+
}), wl = /* @__PURE__ */ v({
|
|
2445
2441
|
name: "LlmChatTyping",
|
|
2446
2442
|
__name: "llm-chat-typing",
|
|
2443
|
+
props: {
|
|
2444
|
+
inline: { type: Boolean, default: !1 }
|
|
2445
|
+
},
|
|
2447
2446
|
setup(e) {
|
|
2448
|
-
|
|
2447
|
+
const t = e, a = p(() => [
|
|
2448
|
+
"llm-chat-typing",
|
|
2449
|
+
t.inline && "is-inline"
|
|
2450
|
+
]);
|
|
2451
|
+
return (n, l) => (s(), o("div", {
|
|
2452
|
+
class: y(a.value),
|
|
2453
|
+
role: "status",
|
|
2454
|
+
"aria-live": "polite"
|
|
2455
|
+
}, [...l[0] || (l[0] = [
|
|
2449
2456
|
c("span", { class: "dot" }, null, -1),
|
|
2450
2457
|
c("span", { class: "dot" }, null, -1),
|
|
2451
2458
|
c("span", { class: "dot" }, null, -1),
|
|
2452
2459
|
c("span", { class: "sr-only" }, "Assistant is typing", -1)
|
|
2453
|
-
])]));
|
|
2460
|
+
])], 2));
|
|
2454
2461
|
}
|
|
2455
|
-
}),
|
|
2462
|
+
}), pt = { class: "llm-chat-suggestion" }, vt = { class: "chip-label" }, ht = {
|
|
2456
2463
|
key: 0,
|
|
2457
2464
|
class: "chip-hint"
|
|
2458
|
-
},
|
|
2465
|
+
}, Ll = /* @__PURE__ */ v({
|
|
2459
2466
|
name: "LlmChatSuggestion",
|
|
2460
2467
|
__name: "llm-chat-suggestion",
|
|
2461
2468
|
props: {
|
|
@@ -2464,19 +2471,19 @@ const vl = /* @__PURE__ */ v({
|
|
|
2464
2471
|
},
|
|
2465
2472
|
emits: ["selected"],
|
|
2466
2473
|
setup(e, { emit: t }) {
|
|
2467
|
-
const a = e,
|
|
2468
|
-
return (l, d) => (s(),
|
|
2474
|
+
const a = e, n = t;
|
|
2475
|
+
return (l, d) => (s(), o("div", pt, [
|
|
2469
2476
|
c("button", {
|
|
2470
2477
|
type: "button",
|
|
2471
2478
|
class: "chip",
|
|
2472
|
-
onClick: d[0] || (d[0] = (u) =>
|
|
2479
|
+
onClick: d[0] || (d[0] = (u) => n("selected", a.label))
|
|
2473
2480
|
}, [
|
|
2474
|
-
c("span",
|
|
2475
|
-
a.hint ? (s(),
|
|
2481
|
+
c("span", vt, L(a.label), 1),
|
|
2482
|
+
a.hint ? (s(), o("span", ht, L(a.hint), 1)) : w("", !0)
|
|
2476
2483
|
])
|
|
2477
2484
|
]));
|
|
2478
2485
|
}
|
|
2479
|
-
}),
|
|
2486
|
+
}), bt = { class: "llm-chat-input" }, gt = ["value", "placeholder", "disabled", "aria-label"], yt = ["disabled"], xl = /* @__PURE__ */ v({
|
|
2480
2487
|
name: "LlmChatInput",
|
|
2481
2488
|
__name: "llm-chat-input",
|
|
2482
2489
|
props: {
|
|
@@ -2486,7 +2493,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2486
2493
|
},
|
|
2487
2494
|
emits: ["update:value", "send", "stop"],
|
|
2488
2495
|
setup(e, { emit: t }) {
|
|
2489
|
-
const a = e,
|
|
2496
|
+
const a = e, n = t, l = q(U, {
|
|
2490
2497
|
headerId: "",
|
|
2491
2498
|
status: C("idle"),
|
|
2492
2499
|
close: () => {
|
|
@@ -2496,7 +2503,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2496
2503
|
}), d = C(""), u = p(() => a.value !== void 0), r = p({
|
|
2497
2504
|
get: () => u.value ? a.value ?? "" : d.value,
|
|
2498
2505
|
set: (_) => {
|
|
2499
|
-
u.value || (d.value = _),
|
|
2506
|
+
u.value || (d.value = _), n("update:value", _);
|
|
2500
2507
|
}
|
|
2501
2508
|
}), i = p(() => l.status.value === "streaming"), m = p(() => {
|
|
2502
2509
|
if (a.placeholder) return a.placeholder;
|
|
@@ -2511,7 +2518,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2511
2518
|
});
|
|
2512
2519
|
function $() {
|
|
2513
2520
|
const _ = r.value.trim();
|
|
2514
|
-
!_ || i.value || (
|
|
2521
|
+
!_ || i.value || (n("send", _), r.value = "");
|
|
2515
2522
|
}
|
|
2516
2523
|
function k(_) {
|
|
2517
2524
|
_.key === "Enter" && !_.shiftKey && (_.preventDefault(), $());
|
|
@@ -2520,7 +2527,7 @@ const vl = /* @__PURE__ */ v({
|
|
|
2520
2527
|
const g = _.target;
|
|
2521
2528
|
r.value = g.value;
|
|
2522
2529
|
}
|
|
2523
|
-
return (_, g) => (s(),
|
|
2530
|
+
return (_, g) => (s(), o("div", bt, [
|
|
2524
2531
|
c("textarea", {
|
|
2525
2532
|
class: "field",
|
|
2526
2533
|
rows: "1",
|
|
@@ -2530,83 +2537,83 @@ const vl = /* @__PURE__ */ v({
|
|
|
2530
2537
|
"aria-label": a.ariaLabel,
|
|
2531
2538
|
onInput: h,
|
|
2532
2539
|
onKeydown: k
|
|
2533
|
-
}, null, 40,
|
|
2534
|
-
i.value ? (s(),
|
|
2540
|
+
}, null, 40, gt),
|
|
2541
|
+
i.value ? (s(), o("button", {
|
|
2535
2542
|
key: 0,
|
|
2536
2543
|
type: "button",
|
|
2537
2544
|
class: "action-btn variant-danger size-md",
|
|
2538
|
-
onClick: g[0] || (g[0] = (f) =>
|
|
2539
|
-
}, " Stop ")) : (s(),
|
|
2545
|
+
onClick: g[0] || (g[0] = (f) => n("stop"))
|
|
2546
|
+
}, " Stop ")) : (s(), o("button", {
|
|
2540
2547
|
key: 1,
|
|
2541
2548
|
type: "button",
|
|
2542
2549
|
class: "action-btn variant-primary size-md",
|
|
2543
2550
|
disabled: !r.value.trim(),
|
|
2544
2551
|
onClick: $
|
|
2545
|
-
}, " Send ", 8,
|
|
2552
|
+
}, " Send ", 8, yt))
|
|
2546
2553
|
]));
|
|
2547
2554
|
}
|
|
2548
2555
|
});
|
|
2549
2556
|
export {
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2557
|
+
kt as LlmAccordionGroup,
|
|
2558
|
+
wt as LlmAccordionHeader,
|
|
2559
|
+
_t as LlmAccordionItem,
|
|
2560
|
+
Lt as LlmAlert,
|
|
2561
|
+
xt as LlmAvatar,
|
|
2562
|
+
Ct as LlmAvatarGroup,
|
|
2563
|
+
Bt as LlmBadge,
|
|
2564
|
+
It as LlmBreadcrumbItem,
|
|
2565
|
+
Tt as LlmBreadcrumbs,
|
|
2566
|
+
Dt as LlmButton,
|
|
2567
|
+
St as LlmCard,
|
|
2568
|
+
At as LlmCardContent,
|
|
2569
|
+
Rt as LlmCardFooter,
|
|
2570
|
+
Mt as LlmCardHeader,
|
|
2571
|
+
yl as LlmChat,
|
|
2572
|
+
$l as LlmChatHeader,
|
|
2573
|
+
xl as LlmChatInput,
|
|
2567
2574
|
U as LlmChatKey,
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2575
|
+
_l as LlmChatMessage,
|
|
2576
|
+
kl as LlmChatMessages,
|
|
2577
|
+
Ll as LlmChatSuggestion,
|
|
2578
|
+
wl as LlmChatTyping,
|
|
2572
2579
|
He as LlmCheckbox,
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2580
|
+
gl as LlmCodeBlock,
|
|
2581
|
+
Zt as LlmCombobox,
|
|
2582
|
+
zt as LlmDialog,
|
|
2583
|
+
Ht as LlmDialogContent,
|
|
2584
|
+
Et as LlmDialogFooter,
|
|
2585
|
+
qt as LlmDialogHeader,
|
|
2586
|
+
Ot as LlmDrawer,
|
|
2587
|
+
jt as LlmDrawerContent,
|
|
2588
|
+
Ft as LlmDrawerFooter,
|
|
2589
|
+
Kt as LlmDrawerHeader,
|
|
2590
|
+
Gt as LlmInput,
|
|
2591
|
+
Vt as LlmMenu,
|
|
2592
|
+
Nt as LlmMenuItem,
|
|
2593
|
+
Ut as LlmMenuSeparator,
|
|
2594
|
+
Pt as LlmMenuTrigger,
|
|
2595
|
+
el as LlmOption,
|
|
2596
|
+
Wt as LlmPagination,
|
|
2597
|
+
Jt as LlmProgress,
|
|
2598
|
+
Xt as LlmRadio,
|
|
2599
|
+
Qt as LlmRadioGroup,
|
|
2600
|
+
Yt as LlmSelect,
|
|
2601
|
+
al as LlmSkeleton,
|
|
2602
|
+
ll as LlmStep,
|
|
2603
|
+
tl as LlmStepper,
|
|
2604
|
+
cl as LlmTab,
|
|
2605
|
+
ul as LlmTabGroup,
|
|
2606
|
+
sl as LlmTable,
|
|
2607
|
+
ol as LlmTbody,
|
|
2608
|
+
dl as LlmTd,
|
|
2609
|
+
ml as LlmTextarea,
|
|
2610
|
+
rl as LlmTh,
|
|
2611
|
+
nl as LlmThead,
|
|
2612
|
+
vl as LlmToastContainer,
|
|
2606
2613
|
Za as LlmToastItem,
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2614
|
+
pl as LlmToastProvider,
|
|
2615
|
+
hl as LlmToggle,
|
|
2616
|
+
bl as LlmTooltip,
|
|
2617
|
+
il as LlmTr,
|
|
2618
|
+
fl as useLlmToast
|
|
2612
2619
|
};
|