@atelier-ui/vue 0.0.21 → 0.0.23
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/CHANGELOG.md +22 -0
- package/index.css +1 -1
- package/index.mjs +502 -482
- package/libs/vue/src/lib/alert/llm-alert.vue.d.ts +3 -2
- package/libs/vue/src/lib/alert/llm-alert.vue.d.ts.map +1 -1
- package/libs/vue/src/lib/badge/llm-badge.vue.d.ts +3 -2
- package/libs/vue/src/lib/badge/llm-badge.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as p, ref as B, provide as
|
|
2
|
-
const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"),
|
|
1
|
+
import { defineComponent as p, ref as B, provide as H, computed as v, openBlock as s, createElementBlock as n, normalizeClass as g, renderSlot as h, useId as O, inject as R, onMounted as E, watch as A, onBeforeUnmount as F, createElementVNode as c, toDisplayString as L, createCommentVNode as k, useSlots as ie, Fragment as I, renderList as z, createBlock as N, resolveDynamicComponent as re, normalizeStyle as P, unref as q, withModifiers as U, onUnmounted as Z, createTextVNode as G, createVNode as de, nextTick as ue } from "vue";
|
|
2
|
+
const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), ot = /* @__PURE__ */ p({
|
|
3
3
|
name: "LlmAccordionGroup",
|
|
4
4
|
__name: "llm-accordion-group",
|
|
5
5
|
props: {
|
|
@@ -7,18 +7,18 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
7
7
|
variant: { default: "default" }
|
|
8
8
|
},
|
|
9
9
|
setup(e) {
|
|
10
|
-
const t = e, a = B(/* @__PURE__ */ new Set()),
|
|
10
|
+
const t = e, a = B(/* @__PURE__ */ new Set()), i = /* @__PURE__ */ new Map();
|
|
11
11
|
function l(o) {
|
|
12
12
|
const m = new Set(a.value);
|
|
13
13
|
m.has(o) ? m.delete(o) : (t.multi || m.clear(), m.add(o)), a.value = m;
|
|
14
14
|
}
|
|
15
15
|
function d(o, m) {
|
|
16
|
-
|
|
16
|
+
i.set(o, m);
|
|
17
17
|
}
|
|
18
18
|
function u(o) {
|
|
19
|
-
|
|
19
|
+
i.delete(o);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
H(J, {
|
|
22
22
|
get multi() {
|
|
23
23
|
return t.multi;
|
|
24
24
|
},
|
|
@@ -27,14 +27,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
27
27
|
registerItem: d,
|
|
28
28
|
unregisterItem: u
|
|
29
29
|
});
|
|
30
|
-
const
|
|
30
|
+
const r = v(() => ["llm-accordion-group", `variant-${t.variant}`]);
|
|
31
31
|
return (o, m) => (s(), n("div", {
|
|
32
|
-
class: g(
|
|
32
|
+
class: g(r.value)
|
|
33
33
|
}, [
|
|
34
34
|
h(o.$slots, "default")
|
|
35
35
|
], 2));
|
|
36
36
|
}
|
|
37
|
-
}), ce = { class: "accordion-heading" }, me = ["aria-expanded", "disabled"],
|
|
37
|
+
}), ce = { class: "accordion-heading" }, me = ["aria-expanded", "disabled"], it = /* @__PURE__ */ p({
|
|
38
38
|
name: "LlmAccordionItem",
|
|
39
39
|
__name: "llm-accordion-item",
|
|
40
40
|
props: {
|
|
@@ -43,35 +43,35 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
43
43
|
},
|
|
44
44
|
emits: ["update:expanded"],
|
|
45
45
|
setup(e, { emit: t }) {
|
|
46
|
-
const a = e,
|
|
46
|
+
const a = e, i = t, l = O(), d = `llm-accordion-trigger-${l}`, u = `llm-accordion-panel-${l}`, r = R(J, null), o = B(null), m = v(() => r ? r.openItems.value.has(l) : a.expanded ?? !1);
|
|
47
47
|
function $() {
|
|
48
|
-
a.disabled || (
|
|
48
|
+
a.disabled || (r ? r.toggleItem(l) : i("update:expanded", !m.value));
|
|
49
49
|
}
|
|
50
50
|
function y(_) {
|
|
51
|
-
if (!
|
|
51
|
+
if (!r) return;
|
|
52
52
|
const f = Array.from(
|
|
53
53
|
document.querySelectorAll(".llm-accordion-item:not(.is-disabled) .accordion-trigger")
|
|
54
54
|
), C = f.indexOf(_.currentTarget);
|
|
55
55
|
_.key === "ArrowDown" ? (_.preventDefault(), f[(C + 1) % f.length]?.focus()) : _.key === "ArrowUp" ? (_.preventDefault(), f[(C - 1 + f.length) % f.length]?.focus()) : _.key === "Home" ? (_.preventDefault(), f[0]?.focus()) : _.key === "End" && (_.preventDefault(), f[f.length - 1]?.focus());
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
E(() => {
|
|
58
|
+
r && o.value && r.registerItem(l, o.value), !r && a.expanded;
|
|
59
59
|
}), A(
|
|
60
60
|
() => a.expanded,
|
|
61
61
|
(_) => {
|
|
62
|
-
if (!
|
|
63
|
-
const f =
|
|
64
|
-
(_ && !f || !_ && f) &&
|
|
62
|
+
if (!r || _ === void 0) return;
|
|
63
|
+
const f = r.openItems.value.has(l);
|
|
64
|
+
(_ && !f || !_ && f) && r.toggleItem(l);
|
|
65
65
|
},
|
|
66
66
|
{ immediate: !0 }
|
|
67
67
|
), F(() => {
|
|
68
|
-
|
|
68
|
+
r && r.unregisterItem(l);
|
|
69
69
|
});
|
|
70
70
|
const b = v(() => [
|
|
71
71
|
"llm-accordion-item",
|
|
72
72
|
m.value && "is-expanded",
|
|
73
73
|
a.disabled && "is-disabled"
|
|
74
|
-
]),
|
|
74
|
+
]), x = v(() => ["chevron", m.value && "is-expanded"]);
|
|
75
75
|
return (_, f) => (s(), n("div", {
|
|
76
76
|
class: g(b.value)
|
|
77
77
|
}, [
|
|
@@ -90,7 +90,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
90
90
|
}, [
|
|
91
91
|
h(_.$slots, "header"),
|
|
92
92
|
(s(), n("svg", {
|
|
93
|
-
class: g(
|
|
93
|
+
class: g(x.value),
|
|
94
94
|
width: "16",
|
|
95
95
|
height: "16",
|
|
96
96
|
viewBox: "0 0 16 16",
|
|
@@ -121,7 +121,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
121
121
|
], 2)
|
|
122
122
|
], 2));
|
|
123
123
|
}
|
|
124
|
-
}), fe = { class: "accordion-header-content" },
|
|
124
|
+
}), fe = { class: "accordion-header-content" }, rt = /* @__PURE__ */ p({
|
|
125
125
|
name: "LlmAccordionHeader",
|
|
126
126
|
__name: "llm-accordion-header",
|
|
127
127
|
setup(e) {
|
|
@@ -129,7 +129,10 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
129
129
|
h(t.$slots, "default")
|
|
130
130
|
]));
|
|
131
131
|
}
|
|
132
|
-
}), ve = ["aria-live"], pe = { class: "content" },
|
|
132
|
+
}), ve = ["aria-live"], pe = { class: "content" }, be = {
|
|
133
|
+
class: "variant-icon",
|
|
134
|
+
"aria-hidden": "true"
|
|
135
|
+
}, dt = /* @__PURE__ */ p({
|
|
133
136
|
name: "LlmAlert",
|
|
134
137
|
__name: "llm-alert",
|
|
135
138
|
props: {
|
|
@@ -138,24 +141,30 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
138
141
|
},
|
|
139
142
|
emits: ["dismissed"],
|
|
140
143
|
setup(e, { emit: t }) {
|
|
141
|
-
const a =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
const a = {
|
|
145
|
+
info: "ℹ",
|
|
146
|
+
success: "✓",
|
|
147
|
+
warning: "⚠",
|
|
148
|
+
danger: "✕"
|
|
149
|
+
}, i = e, l = t, d = v(() => ["llm-alert", `variant-${i.variant}`]), u = v(
|
|
150
|
+
() => i.variant === "danger" || i.variant === "warning" ? "assertive" : "polite"
|
|
151
|
+
), r = v(() => a[i.variant]);
|
|
152
|
+
return (o, m) => (s(), n("div", {
|
|
153
|
+
class: g(d.value),
|
|
146
154
|
role: "alert",
|
|
147
|
-
"aria-live":
|
|
155
|
+
"aria-live": u.value
|
|
148
156
|
}, [
|
|
149
157
|
c("span", pe, [
|
|
150
|
-
|
|
158
|
+
c("span", be, L(r.value), 1),
|
|
159
|
+
h(o.$slots, "default")
|
|
151
160
|
]),
|
|
152
161
|
e.dismissible ? (s(), n("button", {
|
|
153
162
|
key: 0,
|
|
154
163
|
class: "dismiss",
|
|
155
164
|
type: "button",
|
|
156
165
|
"aria-label": "Dismiss",
|
|
157
|
-
onClick:
|
|
158
|
-
}, [...
|
|
166
|
+
onClick: m[0] || (m[0] = ($) => l("dismissed"))
|
|
167
|
+
}, [...m[1] || (m[1] = [
|
|
159
168
|
c("svg", {
|
|
160
169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
161
170
|
width: "16",
|
|
@@ -184,17 +193,17 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
184
193
|
])])) : k("", !0)
|
|
185
194
|
], 10, ve));
|
|
186
195
|
}
|
|
187
|
-
}),
|
|
196
|
+
}), he = ["aria-label"], ge = ["src", "alt"], ye = {
|
|
188
197
|
key: 1,
|
|
189
198
|
class: "initials"
|
|
190
|
-
},
|
|
199
|
+
}, $e = {
|
|
191
200
|
key: 2,
|
|
192
201
|
class: "icon",
|
|
193
202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
194
203
|
viewBox: "0 0 24 24",
|
|
195
204
|
fill: "currentColor",
|
|
196
205
|
"aria-hidden": "true"
|
|
197
|
-
},
|
|
206
|
+
}, ut = /* @__PURE__ */ p({
|
|
198
207
|
name: "LlmAvatar",
|
|
199
208
|
__name: "llm-avatar",
|
|
200
209
|
props: {
|
|
@@ -210,15 +219,15 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
210
219
|
A(() => t.src, () => {
|
|
211
220
|
a.value = !1;
|
|
212
221
|
});
|
|
213
|
-
function r
|
|
214
|
-
return
|
|
222
|
+
function i(r) {
|
|
223
|
+
return r.split(" ").filter(Boolean).slice(0, 2).map((o) => o[0].toUpperCase()).join("");
|
|
215
224
|
}
|
|
216
|
-
const l = v(() => t.name ?
|
|
225
|
+
const l = v(() => t.name ? i(t.name) : ""), d = v(() => t.alt || t.name || "Avatar"), u = v(() => [
|
|
217
226
|
"llm-avatar",
|
|
218
227
|
`size-${t.size}`,
|
|
219
228
|
`shape-${t.shape}`
|
|
220
229
|
]);
|
|
221
|
-
return (
|
|
230
|
+
return (r, o) => (s(), n("div", {
|
|
222
231
|
class: g(u.value),
|
|
223
232
|
"aria-label": d.value,
|
|
224
233
|
role: "img"
|
|
@@ -228,7 +237,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
228
237
|
src: e.src,
|
|
229
238
|
alt: e.alt || e.name,
|
|
230
239
|
onError: o[0] || (o[0] = (m) => a.value = !0)
|
|
231
|
-
}, null, 40,
|
|
240
|
+
}, null, 40, ge)) : l.value ? (s(), n("span", ye, L(l.value), 1)) : (s(), n("svg", $e, [...o[1] || (o[1] = [
|
|
232
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)
|
|
233
242
|
])])),
|
|
234
243
|
e.status ? (s(), n("span", {
|
|
@@ -236,9 +245,9 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
236
245
|
class: g(`status-dot status-${e.status}`),
|
|
237
246
|
"aria-hidden": "true"
|
|
238
247
|
}, null, 2)) : k("", !0)
|
|
239
|
-
], 10,
|
|
248
|
+
], 10, he));
|
|
240
249
|
}
|
|
241
|
-
}),
|
|
250
|
+
}), ke = ["aria-label"], ct = /* @__PURE__ */ p({
|
|
242
251
|
name: "LlmAvatarGroup",
|
|
243
252
|
__name: "llm-avatar-group",
|
|
244
253
|
props: {
|
|
@@ -246,19 +255,23 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
246
255
|
size: { default: "md" }
|
|
247
256
|
},
|
|
248
257
|
setup(e) {
|
|
249
|
-
const t = e, a = ie(),
|
|
250
|
-
return (u,
|
|
258
|
+
const t = e, a = ie(), i = v(() => a.default?.() ?? []), l = v(() => i.value.slice(0, t.max)), d = v(() => Math.max(0, i.value.length - t.max));
|
|
259
|
+
return (u, r) => (s(), n("div", {
|
|
251
260
|
class: g(["llm-avatar-group", `size-${e.size}`])
|
|
252
261
|
}, [
|
|
253
|
-
(s(!0), n(
|
|
262
|
+
(s(!0), n(I, null, z(l.value, (o, m) => (s(), N(re(o), { key: m }))), 128)),
|
|
254
263
|
d.value > 0 ? (s(), n("div", {
|
|
255
264
|
key: 0,
|
|
256
265
|
class: g(`overflow-badge size-${e.size}`),
|
|
257
266
|
"aria-label": `+${d.value} more`
|
|
258
|
-
}, " +" +
|
|
267
|
+
}, " +" + L(d.value), 11, ke)) : k("", !0)
|
|
259
268
|
], 2));
|
|
260
269
|
}
|
|
261
|
-
}),
|
|
270
|
+
}), _e = {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: "variant-icon",
|
|
273
|
+
"aria-hidden": "true"
|
|
274
|
+
}, mt = /* @__PURE__ */ p({
|
|
262
275
|
name: "LlmBadge",
|
|
263
276
|
__name: "llm-badge",
|
|
264
277
|
props: {
|
|
@@ -266,19 +279,26 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
266
279
|
size: { default: "md" }
|
|
267
280
|
},
|
|
268
281
|
setup(e) {
|
|
269
|
-
const t =
|
|
282
|
+
const t = {
|
|
283
|
+
default: null,
|
|
284
|
+
success: "✓",
|
|
285
|
+
warning: "⚠",
|
|
286
|
+
danger: "✕",
|
|
287
|
+
info: "ℹ"
|
|
288
|
+
}, a = e, i = v(() => [
|
|
270
289
|
"llm-badge",
|
|
271
|
-
`variant-${
|
|
272
|
-
`size-${
|
|
273
|
-
]);
|
|
274
|
-
return (
|
|
275
|
-
class: g(
|
|
290
|
+
`variant-${a.variant}`,
|
|
291
|
+
`size-${a.size}`
|
|
292
|
+
]), l = v(() => t[a.variant]);
|
|
293
|
+
return (d, u) => (s(), n("span", {
|
|
294
|
+
class: g(i.value),
|
|
276
295
|
role: "status"
|
|
277
296
|
}, [
|
|
278
|
-
|
|
297
|
+
l.value ? (s(), n("span", _e, L(l.value), 1)) : k("", !0),
|
|
298
|
+
h(d.$slots, "default")
|
|
279
299
|
], 2));
|
|
280
300
|
}
|
|
281
|
-
}),
|
|
301
|
+
}), we = { class: "breadcrumbs-list" }, ft = /* @__PURE__ */ p({
|
|
282
302
|
name: "LlmBreadcrumbs",
|
|
283
303
|
__name: "llm-breadcrumbs",
|
|
284
304
|
props: {
|
|
@@ -286,17 +306,17 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
286
306
|
},
|
|
287
307
|
setup(e) {
|
|
288
308
|
const t = e;
|
|
289
|
-
return (a,
|
|
309
|
+
return (a, i) => (s(), n("nav", {
|
|
290
310
|
class: "llm-breadcrumbs",
|
|
291
311
|
"aria-label": "Breadcrumb",
|
|
292
312
|
style: P({ "--llm-separator": `'${t.separator}'` })
|
|
293
313
|
}, [
|
|
294
|
-
c("ol",
|
|
314
|
+
c("ol", we, [
|
|
295
315
|
h(a.$slots, "default")
|
|
296
316
|
])
|
|
297
317
|
], 4));
|
|
298
318
|
}
|
|
299
|
-
}),
|
|
319
|
+
}), Le = ["href"], xe = ["aria-current"], vt = /* @__PURE__ */ p({
|
|
300
320
|
name: "LlmBreadcrumbItem",
|
|
301
321
|
__name: "llm-breadcrumb-item",
|
|
302
322
|
props: {
|
|
@@ -308,7 +328,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
308
328
|
"llm-breadcrumb-item",
|
|
309
329
|
t.current && "is-current"
|
|
310
330
|
].filter(Boolean));
|
|
311
|
-
return (
|
|
331
|
+
return (i, l) => (s(), n("li", {
|
|
312
332
|
class: g(a.value)
|
|
313
333
|
}, [
|
|
314
334
|
e.href && !e.current ? (s(), n("a", {
|
|
@@ -316,21 +336,21 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
316
336
|
href: e.href,
|
|
317
337
|
class: "breadcrumb-link"
|
|
318
338
|
}, [
|
|
319
|
-
h(
|
|
320
|
-
], 8,
|
|
339
|
+
h(i.$slots, "default")
|
|
340
|
+
], 8, Le)) : (s(), n("span", {
|
|
321
341
|
key: 1,
|
|
322
342
|
class: "breadcrumb-current",
|
|
323
343
|
"aria-current": e.current ? "page" : void 0
|
|
324
344
|
}, [
|
|
325
|
-
h(
|
|
326
|
-
], 8,
|
|
345
|
+
h(i.$slots, "default")
|
|
346
|
+
], 8, xe))
|
|
327
347
|
], 2));
|
|
328
348
|
}
|
|
329
|
-
}),
|
|
349
|
+
}), Be = ["type", "disabled", "aria-disabled"], Ce = {
|
|
330
350
|
key: 0,
|
|
331
351
|
class: "spinner",
|
|
332
352
|
"aria-hidden": "true"
|
|
333
|
-
},
|
|
353
|
+
}, pt = /* @__PURE__ */ p({
|
|
334
354
|
name: "LlmButton",
|
|
335
355
|
__name: "llm-button",
|
|
336
356
|
props: {
|
|
@@ -341,7 +361,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
341
361
|
type: { default: "button" }
|
|
342
362
|
},
|
|
343
363
|
setup(e) {
|
|
344
|
-
const t = e, a = v(() => t.disabled || t.loading),
|
|
364
|
+
const t = e, a = v(() => t.disabled || t.loading), i = v(() => [
|
|
345
365
|
"llm-button",
|
|
346
366
|
`variant-${t.variant}`,
|
|
347
367
|
`size-${t.size}`,
|
|
@@ -349,16 +369,16 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
349
369
|
t.loading && "is-loading"
|
|
350
370
|
].filter(Boolean));
|
|
351
371
|
return (l, d) => (s(), n("button", {
|
|
352
|
-
class: g(
|
|
372
|
+
class: g(i.value),
|
|
353
373
|
type: e.type,
|
|
354
374
|
disabled: a.value,
|
|
355
375
|
"aria-disabled": a.value || void 0
|
|
356
376
|
}, [
|
|
357
|
-
e.loading ? (s(), n("span",
|
|
377
|
+
e.loading ? (s(), n("span", Ce)) : k("", !0),
|
|
358
378
|
h(l.$slots, "default")
|
|
359
|
-
], 10,
|
|
379
|
+
], 10, Be));
|
|
360
380
|
}
|
|
361
|
-
}),
|
|
381
|
+
}), bt = /* @__PURE__ */ p({
|
|
362
382
|
name: "LlmCard",
|
|
363
383
|
__name: "llm-card",
|
|
364
384
|
props: {
|
|
@@ -371,41 +391,41 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
371
391
|
`variant-${t.variant}`,
|
|
372
392
|
`padding-${t.padding}`
|
|
373
393
|
]);
|
|
374
|
-
return (
|
|
394
|
+
return (i, l) => (s(), n("div", {
|
|
375
395
|
class: g(a.value)
|
|
376
396
|
}, [
|
|
377
|
-
h(
|
|
397
|
+
h(i.$slots, "default")
|
|
378
398
|
], 2));
|
|
379
399
|
}
|
|
380
|
-
}),
|
|
400
|
+
}), Te = { class: "llm-card-header" }, ht = /* @__PURE__ */ p({
|
|
381
401
|
name: "LlmCardHeader",
|
|
382
402
|
__name: "llm-card-header",
|
|
383
403
|
setup(e) {
|
|
384
|
-
return (t, a) => (s(), n("div",
|
|
404
|
+
return (t, a) => (s(), n("div", Te, [
|
|
385
405
|
h(t.$slots, "default")
|
|
386
406
|
]));
|
|
387
407
|
}
|
|
388
|
-
}),
|
|
408
|
+
}), Ie = { class: "llm-card-content" }, gt = /* @__PURE__ */ p({
|
|
389
409
|
name: "LlmCardContent",
|
|
390
410
|
__name: "llm-card-content",
|
|
391
411
|
setup(e) {
|
|
392
|
-
return (t, a) => (s(), n("div",
|
|
412
|
+
return (t, a) => (s(), n("div", Ie, [
|
|
393
413
|
h(t.$slots, "default")
|
|
394
414
|
]));
|
|
395
415
|
}
|
|
396
|
-
}),
|
|
416
|
+
}), De = { class: "llm-card-footer" }, yt = /* @__PURE__ */ p({
|
|
397
417
|
name: "LlmCardFooter",
|
|
398
418
|
__name: "llm-card-footer",
|
|
399
419
|
setup(e) {
|
|
400
|
-
return (t, a) => (s(), n("div",
|
|
420
|
+
return (t, a) => (s(), n("div", De, [
|
|
401
421
|
h(t.$slots, "default")
|
|
402
422
|
]));
|
|
403
423
|
}
|
|
404
|
-
}),
|
|
424
|
+
}), Se = ["for"], Me = ["id", "checked", "disabled", "readonly", "required", "name", "aria-invalid"], ze = {
|
|
405
425
|
key: 0,
|
|
406
426
|
class: "errors",
|
|
407
427
|
"aria-live": "polite"
|
|
408
|
-
},
|
|
428
|
+
}, qe = /* @__PURE__ */ p({
|
|
409
429
|
name: "LlmCheckbox",
|
|
410
430
|
__name: "llm-checkbox",
|
|
411
431
|
props: {
|
|
@@ -421,20 +441,20 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
421
441
|
},
|
|
422
442
|
emits: ["update:checked"],
|
|
423
443
|
setup(e, { emit: t }) {
|
|
424
|
-
const a = e,
|
|
444
|
+
const a = e, i = t, l = B(null), d = v(() => a.id || `checkbox-${Math.random().toString(36).slice(2)}`);
|
|
425
445
|
A(
|
|
426
446
|
() => a.indeterminate,
|
|
427
|
-
(
|
|
428
|
-
l.value && (l.value.indeterminate =
|
|
447
|
+
(r) => {
|
|
448
|
+
l.value && (l.value.indeterminate = r);
|
|
429
449
|
}
|
|
430
|
-
),
|
|
450
|
+
), E(() => {
|
|
431
451
|
l.value && (l.value.indeterminate = a.indeterminate);
|
|
432
452
|
});
|
|
433
|
-
function u(
|
|
434
|
-
const o =
|
|
435
|
-
|
|
453
|
+
function u(r) {
|
|
454
|
+
const o = r.target;
|
|
455
|
+
i("update:checked", o.checked);
|
|
436
456
|
}
|
|
437
|
-
return (
|
|
457
|
+
return (r, o) => (s(), n("div", {
|
|
438
458
|
class: g(["llm-checkbox", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
439
459
|
}, [
|
|
440
460
|
c("label", {
|
|
@@ -453,18 +473,18 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
453
473
|
name: e.name,
|
|
454
474
|
"aria-invalid": e.invalid || void 0,
|
|
455
475
|
onChange: u
|
|
456
|
-
}, null, 40,
|
|
457
|
-
h(
|
|
458
|
-
], 8,
|
|
459
|
-
e.errors.length ? (s(), n("ul",
|
|
460
|
-
(s(!0), n(
|
|
476
|
+
}, null, 40, Me),
|
|
477
|
+
h(r.$slots, "default")
|
|
478
|
+
], 8, Se),
|
|
479
|
+
e.errors.length ? (s(), n("ul", ze, [
|
|
480
|
+
(s(!0), n(I, null, z(e.errors, (m, $) => (s(), n("li", {
|
|
461
481
|
key: $,
|
|
462
482
|
class: "error"
|
|
463
|
-
},
|
|
483
|
+
}, L(m), 1))), 128))
|
|
464
484
|
])) : k("", !0)
|
|
465
485
|
], 2));
|
|
466
486
|
}
|
|
467
|
-
}),
|
|
487
|
+
}), Ae = ["aria-label", "aria-labelledby"], Q = /* @__PURE__ */ Symbol("LlmDialog"), $t = /* @__PURE__ */ p({
|
|
468
488
|
name: "LlmDialog",
|
|
469
489
|
__name: "llm-dialog",
|
|
470
490
|
props: {
|
|
@@ -475,14 +495,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
475
495
|
},
|
|
476
496
|
emits: ["update:open"],
|
|
477
497
|
setup(e, { emit: t }) {
|
|
478
|
-
const a = e,
|
|
498
|
+
const a = e, i = t, l = B(null), d = O();
|
|
479
499
|
function u() {
|
|
480
|
-
|
|
500
|
+
i("update:open", !1);
|
|
481
501
|
}
|
|
482
|
-
|
|
502
|
+
H(Q, {
|
|
483
503
|
headerId: d,
|
|
484
504
|
close: u
|
|
485
|
-
}),
|
|
505
|
+
}), E(() => {
|
|
486
506
|
a.open && l.value && l.value.showModal();
|
|
487
507
|
}), A(
|
|
488
508
|
() => a.open,
|
|
@@ -492,14 +512,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
492
512
|
},
|
|
493
513
|
{ flush: "post" }
|
|
494
514
|
);
|
|
495
|
-
function
|
|
496
|
-
|
|
515
|
+
function r() {
|
|
516
|
+
i("update:open", !1);
|
|
497
517
|
}
|
|
498
518
|
function o(y) {
|
|
499
|
-
y.preventDefault(),
|
|
519
|
+
y.preventDefault(), i("update:open", !1);
|
|
500
520
|
}
|
|
501
521
|
function m(y) {
|
|
502
|
-
a.closeOnBackdrop && y.target === l.value &&
|
|
522
|
+
a.closeOnBackdrop && y.target === l.value && i("update:open", !1);
|
|
503
523
|
}
|
|
504
524
|
const $ = v(() => ["panel", `size-${a.size}`]);
|
|
505
525
|
return (y, b) => (s(), n("dialog", {
|
|
@@ -509,7 +529,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
509
529
|
"aria-label": e.ariaLabel || void 0,
|
|
510
530
|
"aria-labelledby": e.ariaLabel ? void 0 : q(d),
|
|
511
531
|
"aria-modal": "true",
|
|
512
|
-
onClose:
|
|
532
|
+
onClose: r,
|
|
513
533
|
onCancel: o,
|
|
514
534
|
onClick: m
|
|
515
535
|
}, [
|
|
@@ -520,27 +540,27 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
520
540
|
}, [
|
|
521
541
|
h(y.$slots, "default")
|
|
522
542
|
], 2)
|
|
523
|
-
], 40,
|
|
543
|
+
], 40, Ae));
|
|
524
544
|
}
|
|
525
|
-
}),
|
|
545
|
+
}), Re = ["id"], He = { class: "header-content" }, kt = /* @__PURE__ */ p({
|
|
526
546
|
name: "LlmDialogHeader",
|
|
527
547
|
__name: "llm-dialog-header",
|
|
528
548
|
setup(e) {
|
|
529
549
|
const t = R(Q, { headerId: "", close: () => {
|
|
530
550
|
} });
|
|
531
|
-
return (a,
|
|
551
|
+
return (a, i) => (s(), n("div", {
|
|
532
552
|
id: q(t).headerId,
|
|
533
553
|
class: "llm-dialog-header"
|
|
534
554
|
}, [
|
|
535
|
-
c("span",
|
|
555
|
+
c("span", He, [
|
|
536
556
|
h(a.$slots, "default")
|
|
537
557
|
]),
|
|
538
558
|
c("button", {
|
|
539
559
|
class: "close-btn",
|
|
540
560
|
type: "button",
|
|
541
561
|
"aria-label": "Close dialog",
|
|
542
|
-
onClick:
|
|
543
|
-
}, [...
|
|
562
|
+
onClick: i[0] || (i[0] = (l) => q(t).close())
|
|
563
|
+
}, [...i[1] || (i[1] = [
|
|
544
564
|
c("svg", {
|
|
545
565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
546
566
|
width: "14",
|
|
@@ -567,25 +587,25 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
567
587
|
})
|
|
568
588
|
], -1)
|
|
569
589
|
])])
|
|
570
|
-
], 8,
|
|
590
|
+
], 8, Re));
|
|
571
591
|
}
|
|
572
|
-
}),
|
|
592
|
+
}), Ee = { class: "llm-dialog-content" }, _t = /* @__PURE__ */ p({
|
|
573
593
|
name: "LlmDialogContent",
|
|
574
594
|
__name: "llm-dialog-content",
|
|
575
595
|
setup(e) {
|
|
576
|
-
return (t, a) => (s(), n("div",
|
|
596
|
+
return (t, a) => (s(), n("div", Ee, [
|
|
577
597
|
h(t.$slots, "default")
|
|
578
598
|
]));
|
|
579
599
|
}
|
|
580
|
-
}),
|
|
600
|
+
}), Oe = { class: "llm-dialog-footer" }, wt = /* @__PURE__ */ p({
|
|
581
601
|
name: "LlmDialogFooter",
|
|
582
602
|
__name: "llm-dialog-footer",
|
|
583
603
|
setup(e) {
|
|
584
|
-
return (t, a) => (s(), n("div",
|
|
604
|
+
return (t, a) => (s(), n("div", Oe, [
|
|
585
605
|
h(t.$slots, "default")
|
|
586
606
|
]));
|
|
587
607
|
}
|
|
588
|
-
}),
|
|
608
|
+
}), je = ["aria-labelledby"], W = /* @__PURE__ */ Symbol("LlmDrawer"), Lt = /* @__PURE__ */ p({
|
|
589
609
|
name: "LlmDrawer",
|
|
590
610
|
__name: "llm-drawer",
|
|
591
611
|
props: {
|
|
@@ -596,14 +616,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
596
616
|
},
|
|
597
617
|
emits: ["update:open"],
|
|
598
618
|
setup(e, { emit: t }) {
|
|
599
|
-
const a = e,
|
|
619
|
+
const a = e, i = t, l = B(null), d = O();
|
|
600
620
|
function u() {
|
|
601
|
-
|
|
621
|
+
i("update:open", !1);
|
|
602
622
|
}
|
|
603
|
-
|
|
623
|
+
H(W, {
|
|
604
624
|
headerId: d,
|
|
605
625
|
close: u
|
|
606
|
-
}),
|
|
626
|
+
}), E(() => {
|
|
607
627
|
a.open && l.value && l.value.showModal();
|
|
608
628
|
}), A(
|
|
609
629
|
() => a.open,
|
|
@@ -613,14 +633,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
613
633
|
},
|
|
614
634
|
{ flush: "post" }
|
|
615
635
|
);
|
|
616
|
-
function
|
|
617
|
-
|
|
636
|
+
function r() {
|
|
637
|
+
i("update:open", !1);
|
|
618
638
|
}
|
|
619
639
|
function o(y) {
|
|
620
|
-
y.preventDefault(),
|
|
640
|
+
y.preventDefault(), i("update:open", !1);
|
|
621
641
|
}
|
|
622
642
|
function m(y) {
|
|
623
|
-
a.closeOnBackdrop && y.target === l.value &&
|
|
643
|
+
a.closeOnBackdrop && y.target === l.value && i("update:open", !1);
|
|
624
644
|
}
|
|
625
645
|
const $ = v(() => [
|
|
626
646
|
"llm-drawer-host",
|
|
@@ -634,7 +654,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
634
654
|
class: g($.value),
|
|
635
655
|
"aria-labelledby": q(d),
|
|
636
656
|
"aria-modal": "true",
|
|
637
|
-
onClose:
|
|
657
|
+
onClose: r,
|
|
638
658
|
onCancel: o,
|
|
639
659
|
onClick: m
|
|
640
660
|
}, [
|
|
@@ -645,27 +665,27 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
645
665
|
}, [
|
|
646
666
|
h(y.$slots, "default")
|
|
647
667
|
])
|
|
648
|
-
], 42,
|
|
668
|
+
], 42, je));
|
|
649
669
|
}
|
|
650
|
-
}),
|
|
670
|
+
}), Ge = ["id"], Fe = { class: "header-content" }, xt = /* @__PURE__ */ p({
|
|
651
671
|
name: "LlmDrawerHeader",
|
|
652
672
|
__name: "llm-drawer-header",
|
|
653
673
|
setup(e) {
|
|
654
674
|
const t = R(W, { headerId: "", close: () => {
|
|
655
675
|
} });
|
|
656
|
-
return (a,
|
|
676
|
+
return (a, i) => (s(), n("div", {
|
|
657
677
|
id: q(t).headerId,
|
|
658
678
|
class: "llm-drawer-header"
|
|
659
679
|
}, [
|
|
660
|
-
c("span",
|
|
680
|
+
c("span", Fe, [
|
|
661
681
|
h(a.$slots, "default")
|
|
662
682
|
]),
|
|
663
683
|
c("button", {
|
|
664
684
|
class: "close-btn",
|
|
665
685
|
type: "button",
|
|
666
686
|
"aria-label": "Close drawer",
|
|
667
|
-
onClick:
|
|
668
|
-
}, [...
|
|
687
|
+
onClick: i[0] || (i[0] = (l) => q(t).close())
|
|
688
|
+
}, [...i[1] || (i[1] = [
|
|
669
689
|
c("svg", {
|
|
670
690
|
xmlns: "http://www.w3.org/2000/svg",
|
|
671
691
|
width: "14",
|
|
@@ -692,29 +712,29 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
692
712
|
})
|
|
693
713
|
], -1)
|
|
694
714
|
])])
|
|
695
|
-
], 8,
|
|
715
|
+
], 8, Ge));
|
|
696
716
|
}
|
|
697
|
-
}),
|
|
717
|
+
}), Pe = { class: "llm-drawer-content" }, Bt = /* @__PURE__ */ p({
|
|
698
718
|
name: "LlmDrawerContent",
|
|
699
719
|
__name: "llm-drawer-content",
|
|
700
720
|
setup(e) {
|
|
701
|
-
return (t, a) => (s(), n("div",
|
|
721
|
+
return (t, a) => (s(), n("div", Pe, [
|
|
702
722
|
h(t.$slots, "default")
|
|
703
723
|
]));
|
|
704
724
|
}
|
|
705
|
-
}),
|
|
725
|
+
}), Ke = { class: "llm-drawer-footer" }, Ct = /* @__PURE__ */ p({
|
|
706
726
|
name: "LlmDrawerFooter",
|
|
707
727
|
__name: "llm-drawer-footer",
|
|
708
728
|
setup(e) {
|
|
709
|
-
return (t, a) => (s(), n("div",
|
|
729
|
+
return (t, a) => (s(), n("div", Ke, [
|
|
710
730
|
h(t.$slots, "default")
|
|
711
731
|
]));
|
|
712
732
|
}
|
|
713
|
-
}),
|
|
733
|
+
}), Ve = ["for"], Ne = { class: "input-field" }, Ue = ["id", "type", "value", "placeholder", "disabled", "readonly", "required", "name", "aria-invalid"], Ze = {
|
|
714
734
|
key: 1,
|
|
715
735
|
class: "errors",
|
|
716
736
|
"aria-live": "polite"
|
|
717
|
-
},
|
|
737
|
+
}, Tt = /* @__PURE__ */ p({
|
|
718
738
|
name: "LlmInput",
|
|
719
739
|
__name: "llm-input",
|
|
720
740
|
props: {
|
|
@@ -732,19 +752,19 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
732
752
|
},
|
|
733
753
|
emits: ["update:value"],
|
|
734
754
|
setup(e, { emit: t }) {
|
|
735
|
-
const a = e,
|
|
755
|
+
const a = e, i = t, l = v(() => a.id || (a.label ? `input-${Math.random().toString(36).slice(2)}` : void 0));
|
|
736
756
|
function d(u) {
|
|
737
|
-
|
|
757
|
+
i("update:value", u.target.value);
|
|
738
758
|
}
|
|
739
|
-
return (u,
|
|
759
|
+
return (u, r) => (s(), n("div", {
|
|
740
760
|
class: g(["llm-input", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
741
761
|
}, [
|
|
742
762
|
e.label ? (s(), n("label", {
|
|
743
763
|
key: 0,
|
|
744
764
|
for: l.value,
|
|
745
765
|
class: "input-label"
|
|
746
|
-
},
|
|
747
|
-
c("div",
|
|
766
|
+
}, L(e.label), 9, Ve)) : k("", !0),
|
|
767
|
+
c("div", Ne, [
|
|
748
768
|
c("input", {
|
|
749
769
|
id: l.value,
|
|
750
770
|
type: e.type,
|
|
@@ -756,41 +776,41 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
756
776
|
name: e.name,
|
|
757
777
|
"aria-invalid": e.invalid || void 0,
|
|
758
778
|
onInput: d
|
|
759
|
-
}, null, 40,
|
|
779
|
+
}, null, 40, Ue)
|
|
760
780
|
]),
|
|
761
|
-
e.errors.length ? (s(), n("ul",
|
|
762
|
-
(s(!0), n(
|
|
781
|
+
e.errors.length ? (s(), n("ul", Ze, [
|
|
782
|
+
(s(!0), n(I, null, z(e.errors, (o, m) => (s(), n("li", {
|
|
763
783
|
key: m,
|
|
764
784
|
class: "error"
|
|
765
|
-
},
|
|
785
|
+
}, L(o), 1))), 128))
|
|
766
786
|
])) : k("", !0)
|
|
767
787
|
], 2));
|
|
768
788
|
}
|
|
769
|
-
}),
|
|
789
|
+
}), Je = { class: "llm-menu-trigger-wrapper" }, X = /* @__PURE__ */ Symbol("LlmMenuTrigger"), It = /* @__PURE__ */ p({
|
|
770
790
|
name: "LlmMenuTrigger",
|
|
771
791
|
__name: "llm-menu-trigger",
|
|
772
792
|
setup(e) {
|
|
773
|
-
const t = B(!1), a = B(null),
|
|
793
|
+
const t = B(!1), a = B(null), i = B(null);
|
|
774
794
|
function l() {
|
|
775
795
|
t.value = !t.value;
|
|
776
796
|
}
|
|
777
797
|
function d() {
|
|
778
798
|
t.value = !1;
|
|
779
799
|
}
|
|
780
|
-
|
|
800
|
+
H(X, { close: d });
|
|
781
801
|
function u(o) {
|
|
782
802
|
if (!t.value) return;
|
|
783
|
-
const m = o.target, $ = a.value?.contains(m), y =
|
|
803
|
+
const m = o.target, $ = a.value?.contains(m), y = i.value?.contains(m);
|
|
784
804
|
!$ && !y && d();
|
|
785
805
|
}
|
|
786
|
-
function
|
|
806
|
+
function r(o) {
|
|
787
807
|
o.key === "Escape" && t.value && d();
|
|
788
808
|
}
|
|
789
|
-
return
|
|
790
|
-
document.addEventListener("mousedown", u), document.addEventListener("keydown",
|
|
809
|
+
return E(() => {
|
|
810
|
+
document.addEventListener("mousedown", u), document.addEventListener("keydown", r);
|
|
791
811
|
}), F(() => {
|
|
792
|
-
document.removeEventListener("mousedown", u), document.removeEventListener("keydown",
|
|
793
|
-
}), (o, m) => (s(), n("div",
|
|
812
|
+
document.removeEventListener("mousedown", u), document.removeEventListener("keydown", r);
|
|
813
|
+
}), (o, m) => (s(), n("div", Je, [
|
|
794
814
|
c("span", {
|
|
795
815
|
ref_key: "triggerRef",
|
|
796
816
|
ref: a,
|
|
@@ -801,14 +821,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
801
821
|
t.value ? (s(), n("div", {
|
|
802
822
|
key: 0,
|
|
803
823
|
ref_key: "menuRef",
|
|
804
|
-
ref:
|
|
824
|
+
ref: i,
|
|
805
825
|
class: "llm-menu-panel"
|
|
806
826
|
}, [
|
|
807
827
|
h(o.$slots, "menu")
|
|
808
828
|
], 512)) : k("", !0)
|
|
809
829
|
]));
|
|
810
830
|
}
|
|
811
|
-
}),
|
|
831
|
+
}), Dt = /* @__PURE__ */ p({
|
|
812
832
|
name: "LlmMenu",
|
|
813
833
|
__name: "llm-menu",
|
|
814
834
|
props: {
|
|
@@ -816,14 +836,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
816
836
|
},
|
|
817
837
|
setup(e) {
|
|
818
838
|
const t = e, a = v(() => ["llm-menu", `variant-${t.variant}`]);
|
|
819
|
-
return (
|
|
839
|
+
return (i, l) => (s(), n("div", {
|
|
820
840
|
class: g(a.value),
|
|
821
841
|
role: "menu"
|
|
822
842
|
}, [
|
|
823
|
-
h(
|
|
843
|
+
h(i.$slots, "default")
|
|
824
844
|
], 2));
|
|
825
845
|
}
|
|
826
|
-
}),
|
|
846
|
+
}), Qe = ["disabled"], St = /* @__PURE__ */ p({
|
|
827
847
|
name: "LlmMenuItem",
|
|
828
848
|
__name: "llm-menu-item",
|
|
829
849
|
props: {
|
|
@@ -831,38 +851,38 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
831
851
|
},
|
|
832
852
|
emits: ["triggered"],
|
|
833
853
|
setup(e, { emit: t }) {
|
|
834
|
-
const a = e,
|
|
854
|
+
const a = e, i = t, l = R(X, null);
|
|
835
855
|
function d() {
|
|
836
|
-
a.disabled || (
|
|
856
|
+
a.disabled || (i("triggered"), l?.close());
|
|
837
857
|
}
|
|
838
858
|
const u = v(() => ["llm-menu-item", a.disabled && "is-disabled"]);
|
|
839
|
-
return (
|
|
859
|
+
return (r, o) => (s(), n("button", {
|
|
840
860
|
class: g(u.value),
|
|
841
861
|
role: "menuitem",
|
|
842
862
|
type: "button",
|
|
843
863
|
disabled: e.disabled,
|
|
844
864
|
onClick: d
|
|
845
865
|
}, [
|
|
846
|
-
h(
|
|
847
|
-
], 10,
|
|
866
|
+
h(r.$slots, "default")
|
|
867
|
+
], 10, Qe));
|
|
848
868
|
}
|
|
849
|
-
}),
|
|
869
|
+
}), We = {
|
|
850
870
|
class: "llm-menu-separator",
|
|
851
871
|
role: "separator"
|
|
852
|
-
},
|
|
872
|
+
}, Mt = /* @__PURE__ */ p({
|
|
853
873
|
name: "LlmMenuSeparator",
|
|
854
874
|
__name: "llm-menu-separator",
|
|
855
875
|
setup(e) {
|
|
856
|
-
return (t, a) => (s(), n("hr",
|
|
876
|
+
return (t, a) => (s(), n("hr", We));
|
|
857
877
|
}
|
|
858
|
-
}),
|
|
878
|
+
}), Xe = {
|
|
859
879
|
class: "llm-pagination",
|
|
860
880
|
"aria-label": "Pagination"
|
|
861
|
-
},
|
|
881
|
+
}, Ye = ["disabled"], ea = ["disabled"], aa = {
|
|
862
882
|
key: 0,
|
|
863
883
|
class: "ellipsis",
|
|
864
884
|
"aria-hidden": "true"
|
|
865
|
-
},
|
|
885
|
+
}, ta = ["aria-label", "aria-current", "onClick"], la = ["disabled"], sa = ["disabled"], zt = /* @__PURE__ */ p({
|
|
866
886
|
name: "LlmPagination",
|
|
867
887
|
__name: "llm-pagination",
|
|
868
888
|
props: {
|
|
@@ -873,62 +893,62 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
873
893
|
},
|
|
874
894
|
emits: ["pageChange"],
|
|
875
895
|
setup(e, { emit: t }) {
|
|
876
|
-
const a = e,
|
|
877
|
-
function l(
|
|
896
|
+
const a = e, i = t;
|
|
897
|
+
function l(r, o, m) {
|
|
878
898
|
if (o <= 1) return [{ type: "page", page: 1 }];
|
|
879
899
|
const $ = [];
|
|
880
900
|
$.push({ type: "page", page: 1 });
|
|
881
|
-
const y = Math.max(2,
|
|
901
|
+
const y = Math.max(2, r - m), b = Math.min(o - 1, r + m);
|
|
882
902
|
y > 2 && $.push({ type: "ellipsis", key: "ellipsis-start" });
|
|
883
|
-
for (let
|
|
903
|
+
for (let x = y; x <= b; x++) $.push({ type: "page", page: x });
|
|
884
904
|
return b < o - 1 && $.push({ type: "ellipsis", key: "ellipsis-end" }), o > 1 && $.push({ type: "page", page: o }), $;
|
|
885
905
|
}
|
|
886
906
|
const d = v(() => l(a.page, a.pageCount, a.siblingCount));
|
|
887
|
-
function u(
|
|
888
|
-
const o = Math.min(Math.max(
|
|
889
|
-
o !== a.page &&
|
|
907
|
+
function u(r) {
|
|
908
|
+
const o = Math.min(Math.max(r, 1), a.pageCount);
|
|
909
|
+
o !== a.page && i("pageChange", o);
|
|
890
910
|
}
|
|
891
|
-
return (
|
|
911
|
+
return (r, o) => (s(), n("nav", Xe, [
|
|
892
912
|
e.showFirstLast ? (s(), n("button", {
|
|
893
913
|
key: 0,
|
|
894
914
|
class: "page-btn nav-btn",
|
|
895
915
|
disabled: e.page <= 1,
|
|
896
916
|
"aria-label": "First page",
|
|
897
917
|
onClick: o[0] || (o[0] = (m) => u(1))
|
|
898
|
-
}, " « ", 8,
|
|
918
|
+
}, " « ", 8, Ye)) : k("", !0),
|
|
899
919
|
c("button", {
|
|
900
920
|
class: "page-btn nav-btn",
|
|
901
921
|
disabled: e.page <= 1,
|
|
902
922
|
"aria-label": "Previous page",
|
|
903
923
|
onClick: o[1] || (o[1] = (m) => u(e.page - 1))
|
|
904
|
-
}, " ‹ ", 8,
|
|
905
|
-
(s(!0), n(
|
|
924
|
+
}, " ‹ ", 8, ea),
|
|
925
|
+
(s(!0), n(I, null, z(d.value, (m) => (s(), n(I, {
|
|
906
926
|
key: m.type === "page" ? m.page : m.key
|
|
907
927
|
}, [
|
|
908
|
-
m.type === "ellipsis" ? (s(), n("span",
|
|
928
|
+
m.type === "ellipsis" ? (s(), n("span", aa, "…")) : (s(), n("button", {
|
|
909
929
|
key: 1,
|
|
910
930
|
class: g(["page-btn", { active: m.page === e.page }]),
|
|
911
931
|
"aria-label": `Page ${m.page}`,
|
|
912
932
|
"aria-current": m.page === e.page ? "page" : void 0,
|
|
913
933
|
onClick: ($) => u(m.page)
|
|
914
|
-
},
|
|
934
|
+
}, L(m.page), 11, ta))
|
|
915
935
|
], 64))), 128)),
|
|
916
936
|
c("button", {
|
|
917
937
|
class: "page-btn nav-btn",
|
|
918
938
|
disabled: e.page >= e.pageCount,
|
|
919
939
|
"aria-label": "Next page",
|
|
920
940
|
onClick: o[2] || (o[2] = (m) => u(e.page + 1))
|
|
921
|
-
}, " › ", 8,
|
|
941
|
+
}, " › ", 8, la),
|
|
922
942
|
e.showFirstLast ? (s(), n("button", {
|
|
923
943
|
key: 1,
|
|
924
944
|
class: "page-btn nav-btn",
|
|
925
945
|
disabled: e.page >= e.pageCount,
|
|
926
946
|
"aria-label": "Last page",
|
|
927
947
|
onClick: o[3] || (o[3] = (m) => u(e.pageCount))
|
|
928
|
-
}, " » ", 8,
|
|
948
|
+
}, " » ", 8, sa)) : k("", !0)
|
|
929
949
|
]));
|
|
930
950
|
}
|
|
931
|
-
}),
|
|
951
|
+
}), na = ["aria-valuenow", "aria-valuemax"], oa = { class: "track" }, qt = /* @__PURE__ */ p({
|
|
932
952
|
name: "LlmProgress",
|
|
933
953
|
__name: "llm-progress",
|
|
934
954
|
props: {
|
|
@@ -939,7 +959,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
939
959
|
indeterminate: { type: Boolean, default: !1 }
|
|
940
960
|
},
|
|
941
961
|
setup(e) {
|
|
942
|
-
const t = e, a = v(() => Math.min(Math.max(t.value, 0), t.max)),
|
|
962
|
+
const t = e, a = v(() => Math.min(Math.max(t.value, 0), t.max)), i = v(
|
|
943
963
|
() => t.indeterminate ? "100%" : `${a.value / t.max * 100}%`
|
|
944
964
|
), l = v(() => [
|
|
945
965
|
"llm-progress",
|
|
@@ -954,15 +974,15 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
954
974
|
"aria-valuenow": e.indeterminate ? void 0 : a.value,
|
|
955
975
|
"aria-valuemax": e.indeterminate ? void 0 : e.max
|
|
956
976
|
}, [
|
|
957
|
-
c("div",
|
|
977
|
+
c("div", oa, [
|
|
958
978
|
c("div", {
|
|
959
979
|
class: "fill",
|
|
960
|
-
style: P({ width:
|
|
980
|
+
style: P({ width: i.value })
|
|
961
981
|
}, null, 4)
|
|
962
982
|
])
|
|
963
|
-
], 10,
|
|
983
|
+
], 10, na));
|
|
964
984
|
}
|
|
965
|
-
}),
|
|
985
|
+
}), ia = { class: "llm-combobox-wrapper" }, ra = ["aria-expanded", "aria-activedescendant", "aria-invalid", "disabled", "readonly", "required", "name", "placeholder", "value"], da = ["id", "aria-selected", "aria-disabled", "onMousedown", "onMouseenter"], ua = {
|
|
966
986
|
key: 0,
|
|
967
987
|
class: "llm-combobox-check",
|
|
968
988
|
width: "14",
|
|
@@ -970,17 +990,17 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
970
990
|
viewBox: "0 0 14 14",
|
|
971
991
|
fill: "none",
|
|
972
992
|
"aria-hidden": "true"
|
|
973
|
-
},
|
|
993
|
+
}, ca = {
|
|
974
994
|
key: 1,
|
|
975
995
|
class: "llm-combobox-no-results",
|
|
976
996
|
role: "option",
|
|
977
997
|
"aria-disabled": "true"
|
|
978
|
-
},
|
|
998
|
+
}, ma = {
|
|
979
999
|
key: 1,
|
|
980
1000
|
class: "llm-combobox-errors",
|
|
981
1001
|
role: "alert",
|
|
982
1002
|
"aria-live": "polite"
|
|
983
|
-
},
|
|
1003
|
+
}, At = /* @__PURE__ */ p({
|
|
984
1004
|
name: "LlmCombobox",
|
|
985
1005
|
__name: "llm-combobox",
|
|
986
1006
|
props: {
|
|
@@ -996,46 +1016,46 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
996
1016
|
},
|
|
997
1017
|
emits: ["update:value"],
|
|
998
1018
|
setup(e, { emit: t }) {
|
|
999
|
-
const a = e,
|
|
1019
|
+
const a = e, i = t, l = B(null), d = B(null), u = B(""), r = B(!1), o = B(-1);
|
|
1000
1020
|
let m = Math.random().toString(36).slice(2);
|
|
1001
1021
|
const $ = `llm-combobox-input-${m}`, y = `llm-combobox-panel-${m}`, b = v(
|
|
1002
|
-
() => a.options.find((
|
|
1003
|
-
),
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
1022
|
+
() => a.options.find((D) => D.value === a.value)?.label ?? ""
|
|
1023
|
+
), x = v(() => {
|
|
1024
|
+
const D = u.value.toLowerCase();
|
|
1025
|
+
return D ? a.options.filter((M) => M.label.toLowerCase().includes(D)) : a.options;
|
|
1006
1026
|
}), _ = v(
|
|
1007
1027
|
() => o.value >= 0 ? `${y}-option-${o.value}` : void 0
|
|
1008
1028
|
), f = v(() => [
|
|
1009
1029
|
"llm-combobox",
|
|
1010
|
-
|
|
1030
|
+
r.value && "is-open",
|
|
1011
1031
|
a.disabled && "is-disabled",
|
|
1012
1032
|
a.invalid && "is-invalid"
|
|
1013
1033
|
]);
|
|
1014
1034
|
A(
|
|
1015
1035
|
() => a.value,
|
|
1016
1036
|
() => {
|
|
1017
|
-
|
|
1037
|
+
r.value || (u.value = b.value);
|
|
1018
1038
|
},
|
|
1019
1039
|
{ immediate: !0 }
|
|
1020
1040
|
);
|
|
1021
1041
|
function C() {
|
|
1022
|
-
a.disabled || a.readonly ||
|
|
1042
|
+
a.disabled || a.readonly || r.value || (r.value = !0, o.value = -1, document.addEventListener("click", S));
|
|
1023
1043
|
}
|
|
1024
1044
|
function w() {
|
|
1025
|
-
|
|
1045
|
+
r.value && (r.value = !1, o.value = -1, document.removeEventListener("click", S));
|
|
1026
1046
|
}
|
|
1027
|
-
function S(
|
|
1028
|
-
d.value?.contains(
|
|
1047
|
+
function S(D) {
|
|
1048
|
+
d.value?.contains(D.target) || (u.value = b.value, w());
|
|
1029
1049
|
}
|
|
1030
1050
|
Z(() => {
|
|
1031
1051
|
document.removeEventListener("click", S);
|
|
1032
1052
|
});
|
|
1033
|
-
function K(
|
|
1034
|
-
|
|
1053
|
+
function K(D) {
|
|
1054
|
+
D.disabled || a.disabled || a.readonly || (i("update:value", D.value), u.value = D.label, w(), l.value?.focus());
|
|
1035
1055
|
}
|
|
1036
|
-
function te(
|
|
1037
|
-
const M =
|
|
1038
|
-
u.value = M, o.value = -1, M === "" &&
|
|
1056
|
+
function te(D) {
|
|
1057
|
+
const M = D.target.value;
|
|
1058
|
+
u.value = M, o.value = -1, M === "" && i("update:value", ""), r.value || C();
|
|
1039
1059
|
}
|
|
1040
1060
|
function le() {
|
|
1041
1061
|
C();
|
|
@@ -1043,11 +1063,11 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1043
1063
|
function se() {
|
|
1044
1064
|
u.value = b.value;
|
|
1045
1065
|
}
|
|
1046
|
-
function ne(
|
|
1047
|
-
const M =
|
|
1048
|
-
switch (
|
|
1066
|
+
function ne(D) {
|
|
1067
|
+
const M = x.value;
|
|
1068
|
+
switch (D.key) {
|
|
1049
1069
|
case "ArrowDown": {
|
|
1050
|
-
if (
|
|
1070
|
+
if (D.preventDefault(), !r.value) {
|
|
1051
1071
|
C();
|
|
1052
1072
|
return;
|
|
1053
1073
|
}
|
|
@@ -1056,7 +1076,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1056
1076
|
break;
|
|
1057
1077
|
}
|
|
1058
1078
|
case "ArrowUp": {
|
|
1059
|
-
if (
|
|
1079
|
+
if (D.preventDefault(), !r.value) {
|
|
1060
1080
|
C();
|
|
1061
1081
|
return;
|
|
1062
1082
|
}
|
|
@@ -1065,13 +1085,13 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1065
1085
|
break;
|
|
1066
1086
|
}
|
|
1067
1087
|
case "Enter": {
|
|
1068
|
-
|
|
1088
|
+
D.preventDefault();
|
|
1069
1089
|
const T = o.value;
|
|
1070
|
-
|
|
1090
|
+
r.value && T >= 0 && T < M.length && K(M[T]);
|
|
1071
1091
|
break;
|
|
1072
1092
|
}
|
|
1073
1093
|
case "Escape": {
|
|
1074
|
-
|
|
1094
|
+
D.preventDefault(), u.value = b.value, w();
|
|
1075
1095
|
break;
|
|
1076
1096
|
}
|
|
1077
1097
|
case "Tab": {
|
|
@@ -1080,12 +1100,12 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1080
1100
|
}
|
|
1081
1101
|
}
|
|
1082
1102
|
}
|
|
1083
|
-
return (
|
|
1103
|
+
return (D, M) => (s(), n("div", {
|
|
1084
1104
|
ref_key: "containerRef",
|
|
1085
1105
|
ref: d,
|
|
1086
1106
|
class: g(f.value)
|
|
1087
1107
|
}, [
|
|
1088
|
-
c("div",
|
|
1108
|
+
c("div", ia, [
|
|
1089
1109
|
c("input", {
|
|
1090
1110
|
ref_key: "inputRef",
|
|
1091
1111
|
ref: l,
|
|
@@ -1094,7 +1114,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1094
1114
|
autocomplete: "off",
|
|
1095
1115
|
role: "combobox",
|
|
1096
1116
|
id: $,
|
|
1097
|
-
"aria-expanded":
|
|
1117
|
+
"aria-expanded": r.value,
|
|
1098
1118
|
"aria-controls": y,
|
|
1099
1119
|
"aria-autocomplete": "list",
|
|
1100
1120
|
"aria-activedescendant": _.value,
|
|
@@ -1109,7 +1129,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1109
1129
|
onFocus: le,
|
|
1110
1130
|
onBlur: se,
|
|
1111
1131
|
onKeydown: ne
|
|
1112
|
-
}, null, 40,
|
|
1132
|
+
}, null, 40, ra),
|
|
1113
1133
|
M[0] || (M[0] = c("span", {
|
|
1114
1134
|
class: "llm-combobox-icon",
|
|
1115
1135
|
"aria-hidden": "true"
|
|
@@ -1130,30 +1150,30 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1130
1150
|
])
|
|
1131
1151
|
], -1))
|
|
1132
1152
|
]),
|
|
1133
|
-
|
|
1153
|
+
r.value ? (s(), n("ul", {
|
|
1134
1154
|
key: 0,
|
|
1135
1155
|
id: y,
|
|
1136
1156
|
class: "llm-combobox-panel",
|
|
1137
1157
|
role: "listbox",
|
|
1138
1158
|
"aria-labelledby": $
|
|
1139
1159
|
}, [
|
|
1140
|
-
|
|
1160
|
+
x.value.length > 0 ? (s(!0), n(I, { key: 0 }, z(x.value, (T, j) => (s(), n("li", {
|
|
1141
1161
|
key: T.value,
|
|
1142
|
-
id: `${y}-option-${
|
|
1162
|
+
id: `${y}-option-${j}`,
|
|
1143
1163
|
role: "option",
|
|
1144
1164
|
class: g([
|
|
1145
1165
|
"llm-combobox-option",
|
|
1146
|
-
o.value ===
|
|
1166
|
+
o.value === j && "is-active",
|
|
1147
1167
|
T.value === e.value && "is-selected",
|
|
1148
1168
|
T.disabled && "is-disabled"
|
|
1149
1169
|
]),
|
|
1150
1170
|
"aria-selected": T.value === e.value,
|
|
1151
1171
|
"aria-disabled": T.disabled || void 0,
|
|
1152
1172
|
onMousedown: (oe) => K(T),
|
|
1153
|
-
onMouseenter: (oe) => o.value =
|
|
1173
|
+
onMouseenter: (oe) => o.value = j
|
|
1154
1174
|
}, [
|
|
1155
|
-
c("span", null,
|
|
1156
|
-
T.value === e.value ? (s(), n("svg",
|
|
1175
|
+
c("span", null, L(T.label), 1),
|
|
1176
|
+
T.value === e.value ? (s(), n("svg", ua, [...M[1] || (M[1] = [
|
|
1157
1177
|
c("path", {
|
|
1158
1178
|
d: "M2 7l4 4 6-7",
|
|
1159
1179
|
stroke: "currentColor",
|
|
@@ -1162,21 +1182,21 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1162
1182
|
"stroke-linejoin": "round"
|
|
1163
1183
|
}, null, -1)
|
|
1164
1184
|
])])) : k("", !0)
|
|
1165
|
-
], 42,
|
|
1185
|
+
], 42, da))), 128)) : (s(), n("li", ca, " No results found. "))
|
|
1166
1186
|
])) : k("", !0),
|
|
1167
|
-
e.invalid && e.errors.length > 0 ? (s(), n("div",
|
|
1168
|
-
(s(!0), n(
|
|
1169
|
-
key:
|
|
1187
|
+
e.invalid && e.errors.length > 0 ? (s(), n("div", ma, [
|
|
1188
|
+
(s(!0), n(I, null, z(e.errors, (T, j) => (s(), n("p", {
|
|
1189
|
+
key: j,
|
|
1170
1190
|
class: "llm-combobox-error-message"
|
|
1171
|
-
},
|
|
1191
|
+
}, L(T), 1))), 128))
|
|
1172
1192
|
])) : k("", !0)
|
|
1173
1193
|
], 2));
|
|
1174
1194
|
}
|
|
1175
|
-
}),
|
|
1195
|
+
}), fa = ["aria-invalid", "aria-required"], va = {
|
|
1176
1196
|
key: 0,
|
|
1177
1197
|
class: "errors",
|
|
1178
1198
|
role: "alert"
|
|
1179
|
-
}, Y = /* @__PURE__ */ Symbol("LlmRadioGroup"),
|
|
1199
|
+
}, Y = /* @__PURE__ */ Symbol("LlmRadioGroup"), Rt = /* @__PURE__ */ p({
|
|
1180
1200
|
name: "LlmRadioGroup",
|
|
1181
1201
|
__name: "llm-radio-group",
|
|
1182
1202
|
props: {
|
|
@@ -1190,8 +1210,8 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1190
1210
|
},
|
|
1191
1211
|
emits: ["update:value"],
|
|
1192
1212
|
setup(e, { emit: t }) {
|
|
1193
|
-
const a = e,
|
|
1194
|
-
|
|
1213
|
+
const a = e, i = t;
|
|
1214
|
+
H(Y, {
|
|
1195
1215
|
get value() {
|
|
1196
1216
|
return a.value ?? "";
|
|
1197
1217
|
},
|
|
@@ -1208,7 +1228,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1208
1228
|
return a.invalid ?? !1;
|
|
1209
1229
|
},
|
|
1210
1230
|
onSelect(d) {
|
|
1211
|
-
!a.disabled && !a.readonly &&
|
|
1231
|
+
!a.disabled && !a.readonly && i("update:value", d);
|
|
1212
1232
|
}
|
|
1213
1233
|
});
|
|
1214
1234
|
const l = v(() => [
|
|
@@ -1223,18 +1243,18 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1223
1243
|
"aria-required": e.required || void 0
|
|
1224
1244
|
}, [
|
|
1225
1245
|
h(d.$slots, "default"),
|
|
1226
|
-
e.errors.length > 0 ? (s(), n("div",
|
|
1227
|
-
(s(!0), n(
|
|
1246
|
+
e.errors.length > 0 ? (s(), n("div", va, [
|
|
1247
|
+
(s(!0), n(I, null, z(e.errors, (r, o) => (s(), n("p", {
|
|
1228
1248
|
key: o,
|
|
1229
1249
|
class: "error-message"
|
|
1230
|
-
},
|
|
1250
|
+
}, L(r), 1))), 128))
|
|
1231
1251
|
])) : k("", !0)
|
|
1232
|
-
], 10,
|
|
1252
|
+
], 10, fa));
|
|
1233
1253
|
}
|
|
1234
|
-
}),
|
|
1254
|
+
}), pa = ["name", "value", "checked", "disabled"], ba = {
|
|
1235
1255
|
key: 0,
|
|
1236
1256
|
class: "radio-text"
|
|
1237
|
-
},
|
|
1257
|
+
}, Ht = /* @__PURE__ */ p({
|
|
1238
1258
|
name: "LlmRadio",
|
|
1239
1259
|
__name: "llm-radio",
|
|
1240
1260
|
props: {
|
|
@@ -1250,16 +1270,16 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1250
1270
|
invalid: !1,
|
|
1251
1271
|
onSelect: () => {
|
|
1252
1272
|
}
|
|
1253
|
-
}),
|
|
1273
|
+
}), i = v(() => t.disabled || a.disabled), l = v(() => a.value === t.radioValue), d = v(() => [
|
|
1254
1274
|
"llm-radio",
|
|
1255
|
-
|
|
1275
|
+
i.value && "is-disabled",
|
|
1256
1276
|
l.value && "is-checked",
|
|
1257
1277
|
a.invalid && "is-invalid"
|
|
1258
1278
|
].filter(Boolean));
|
|
1259
1279
|
function u() {
|
|
1260
|
-
!
|
|
1280
|
+
!i.value && !a.readonly && a.onSelect(t.radioValue);
|
|
1261
1281
|
}
|
|
1262
|
-
return (
|
|
1282
|
+
return (r, o) => (s(), n("label", {
|
|
1263
1283
|
class: g(d.value)
|
|
1264
1284
|
}, [
|
|
1265
1285
|
c("input", {
|
|
@@ -1267,25 +1287,25 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1267
1287
|
name: q(a).name || void 0,
|
|
1268
1288
|
value: e.radioValue,
|
|
1269
1289
|
checked: l.value,
|
|
1270
|
-
disabled:
|
|
1290
|
+
disabled: i.value,
|
|
1271
1291
|
class: "radio-input",
|
|
1272
1292
|
onChange: u
|
|
1273
|
-
}, null, 40,
|
|
1293
|
+
}, null, 40, pa),
|
|
1274
1294
|
o[0] || (o[0] = c("span", {
|
|
1275
1295
|
class: "radio-indicator",
|
|
1276
1296
|
"aria-hidden": "true"
|
|
1277
1297
|
}, null, -1)),
|
|
1278
|
-
|
|
1279
|
-
h(
|
|
1298
|
+
r.$slots.default ? (s(), n("span", ba, [
|
|
1299
|
+
h(r.$slots, "default")
|
|
1280
1300
|
])) : k("", !0)
|
|
1281
1301
|
], 2));
|
|
1282
1302
|
}
|
|
1283
|
-
}),
|
|
1303
|
+
}), ha = ["for"], ga = { class: "select-wrapper" }, ya = ["id", "name", "value", "disabled", "required", "aria-invalid", "aria-describedby"], $a = {
|
|
1284
1304
|
key: 0,
|
|
1285
1305
|
value: "",
|
|
1286
1306
|
disabled: "",
|
|
1287
1307
|
hidden: ""
|
|
1288
|
-
},
|
|
1308
|
+
}, ka = ["id"], Et = /* @__PURE__ */ p({
|
|
1289
1309
|
name: "LlmSelect",
|
|
1290
1310
|
__name: "llm-select",
|
|
1291
1311
|
props: {
|
|
@@ -1301,13 +1321,13 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1301
1321
|
},
|
|
1302
1322
|
emits: ["update:value"],
|
|
1303
1323
|
setup(e, { emit: t }) {
|
|
1304
|
-
const a = e,
|
|
1324
|
+
const a = e, i = t, l = O(), d = O(), u = v(() => [
|
|
1305
1325
|
"llm-select",
|
|
1306
1326
|
a.invalid && "is-invalid",
|
|
1307
1327
|
a.disabled && "is-disabled"
|
|
1308
1328
|
]);
|
|
1309
|
-
function
|
|
1310
|
-
a.readonly || a.disabled ||
|
|
1329
|
+
function r(o) {
|
|
1330
|
+
a.readonly || a.disabled || i("update:value", o.target.value);
|
|
1311
1331
|
}
|
|
1312
1332
|
return (o, m) => (s(), n("div", {
|
|
1313
1333
|
class: g(u.value)
|
|
@@ -1316,8 +1336,8 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1316
1336
|
key: 0,
|
|
1317
1337
|
for: q(l),
|
|
1318
1338
|
class: "select-label"
|
|
1319
|
-
},
|
|
1320
|
-
c("div",
|
|
1339
|
+
}, L(e.label), 9, ha)) : k("", !0),
|
|
1340
|
+
c("div", ga, [
|
|
1321
1341
|
c("select", {
|
|
1322
1342
|
id: q(l),
|
|
1323
1343
|
name: e.name,
|
|
@@ -1327,11 +1347,11 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1327
1347
|
"aria-invalid": e.invalid || void 0,
|
|
1328
1348
|
"aria-describedby": e.errors.length > 0 ? q(d) : void 0,
|
|
1329
1349
|
class: "select-native",
|
|
1330
|
-
onChange:
|
|
1350
|
+
onChange: r
|
|
1331
1351
|
}, [
|
|
1332
|
-
e.placeholder ? (s(), n("option",
|
|
1352
|
+
e.placeholder ? (s(), n("option", $a, L(e.placeholder), 1)) : k("", !0),
|
|
1333
1353
|
h(o.$slots, "default")
|
|
1334
|
-
], 40,
|
|
1354
|
+
], 40, ya),
|
|
1335
1355
|
m[0] || (m[0] = c("span", {
|
|
1336
1356
|
class: "select-arrow",
|
|
1337
1357
|
"aria-hidden": "true"
|
|
@@ -1343,14 +1363,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1343
1363
|
class: "errors",
|
|
1344
1364
|
role: "alert"
|
|
1345
1365
|
}, [
|
|
1346
|
-
(s(!0), n(
|
|
1366
|
+
(s(!0), n(I, null, z(e.errors, ($, y) => (s(), n("p", {
|
|
1347
1367
|
key: y,
|
|
1348
1368
|
class: "error-message"
|
|
1349
|
-
},
|
|
1350
|
-
], 8,
|
|
1369
|
+
}, L($), 1))), 128))
|
|
1370
|
+
], 8, ka)) : k("", !0)
|
|
1351
1371
|
], 2));
|
|
1352
1372
|
}
|
|
1353
|
-
}),
|
|
1373
|
+
}), _a = ["value", "disabled"], Ot = /* @__PURE__ */ p({
|
|
1354
1374
|
name: "LlmOption",
|
|
1355
1375
|
__name: "llm-option",
|
|
1356
1376
|
props: {
|
|
@@ -1363,9 +1383,9 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1363
1383
|
disabled: e.disabled
|
|
1364
1384
|
}, [
|
|
1365
1385
|
h(t.$slots, "default")
|
|
1366
|
-
], 8,
|
|
1386
|
+
], 8, _a));
|
|
1367
1387
|
}
|
|
1368
|
-
}),
|
|
1388
|
+
}), jt = /* @__PURE__ */ p({
|
|
1369
1389
|
name: "LlmSkeleton",
|
|
1370
1390
|
__name: "llm-skeleton",
|
|
1371
1391
|
props: {
|
|
@@ -1376,8 +1396,8 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1376
1396
|
},
|
|
1377
1397
|
setup(e) {
|
|
1378
1398
|
const t = e;
|
|
1379
|
-
function a(d, u,
|
|
1380
|
-
if (
|
|
1399
|
+
function a(d, u, r) {
|
|
1400
|
+
if (r) return r;
|
|
1381
1401
|
switch (d) {
|
|
1382
1402
|
case "text":
|
|
1383
1403
|
return "1em";
|
|
@@ -1389,7 +1409,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1389
1409
|
return "1em";
|
|
1390
1410
|
}
|
|
1391
1411
|
}
|
|
1392
|
-
const
|
|
1412
|
+
const i = v(() => [
|
|
1393
1413
|
"llm-skeleton",
|
|
1394
1414
|
`variant-${t.variant}`,
|
|
1395
1415
|
t.animated && "is-animated"
|
|
@@ -1398,35 +1418,35 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1398
1418
|
height: a(t.variant, t.width, t.height)
|
|
1399
1419
|
}));
|
|
1400
1420
|
return (d, u) => (s(), n("div", {
|
|
1401
|
-
class: g(
|
|
1421
|
+
class: g(i.value),
|
|
1402
1422
|
style: P(l.value),
|
|
1403
1423
|
"aria-hidden": "true"
|
|
1404
1424
|
}, null, 6));
|
|
1405
1425
|
}
|
|
1406
|
-
}),
|
|
1426
|
+
}), wa = {
|
|
1407
1427
|
class: "stepper-header",
|
|
1408
1428
|
role: "tablist"
|
|
1409
|
-
},
|
|
1429
|
+
}, La = ["id", "aria-label", "aria-selected", "aria-controls", "aria-disabled", "tabindex", "disabled", "onClick"], xa = {
|
|
1410
1430
|
key: 0,
|
|
1411
1431
|
width: "14",
|
|
1412
1432
|
height: "14",
|
|
1413
1433
|
viewBox: "0 0 14 14",
|
|
1414
1434
|
fill: "none",
|
|
1415
1435
|
"aria-hidden": "true"
|
|
1416
|
-
},
|
|
1436
|
+
}, Ba = {
|
|
1417
1437
|
key: 1,
|
|
1418
1438
|
width: "14",
|
|
1419
1439
|
height: "14",
|
|
1420
1440
|
viewBox: "0 0 14 14",
|
|
1421
1441
|
fill: "none",
|
|
1422
1442
|
"aria-hidden": "true"
|
|
1423
|
-
},
|
|
1443
|
+
}, Ca = { class: "step-text" }, Ta = { class: "step-label" }, Ia = {
|
|
1424
1444
|
key: 0,
|
|
1425
1445
|
class: "step-description"
|
|
1426
|
-
},
|
|
1446
|
+
}, Da = {
|
|
1427
1447
|
key: 1,
|
|
1428
1448
|
class: "step-optional"
|
|
1429
|
-
},
|
|
1449
|
+
}, Sa = { class: "stepper-content" }, ee = /* @__PURE__ */ Symbol("LlmStepper"), Gt = /* @__PURE__ */ p({
|
|
1430
1450
|
name: "LlmStepper",
|
|
1431
1451
|
__name: "llm-stepper",
|
|
1432
1452
|
props: {
|
|
@@ -1436,14 +1456,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1436
1456
|
},
|
|
1437
1457
|
emits: ["update:activeStep"],
|
|
1438
1458
|
setup(e, { emit: t }) {
|
|
1439
|
-
const a = e,
|
|
1459
|
+
const a = e, i = t, l = B(a.activeStep), d = B([]), u = v(() => a.linear);
|
|
1440
1460
|
A(
|
|
1441
1461
|
() => a.activeStep,
|
|
1442
1462
|
(f) => {
|
|
1443
1463
|
l.value = f;
|
|
1444
1464
|
}
|
|
1445
1465
|
);
|
|
1446
|
-
function
|
|
1466
|
+
function r(f) {
|
|
1447
1467
|
d.value.push(f);
|
|
1448
1468
|
}
|
|
1449
1469
|
function o(f) {
|
|
@@ -1454,35 +1474,35 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1454
1474
|
w !== -1 && (d.value[w] = { ...d.value[w], ...C });
|
|
1455
1475
|
}
|
|
1456
1476
|
function $(f) {
|
|
1457
|
-
f < 0 || f >= d.value.length || d.value[f].disabled || a.linear && f > l.value && !d.value.slice(0, f).every((w) => w.completed || w.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((w) => w.completed || w.optional) || (l.value = f, i("update:activeStep", f));
|
|
1458
1478
|
}
|
|
1459
1479
|
function y() {
|
|
1460
1480
|
$(l.value + 1);
|
|
1461
1481
|
}
|
|
1462
1482
|
function b() {
|
|
1463
1483
|
const f = l.value - 1;
|
|
1464
|
-
f >= 0 && !d.value[f]?.disabled && (l.value = f,
|
|
1484
|
+
f >= 0 && !d.value[f]?.disabled && (l.value = f, i("update:activeStep", f));
|
|
1465
1485
|
}
|
|
1466
|
-
|
|
1486
|
+
H(ee, {
|
|
1467
1487
|
activeStep: l,
|
|
1468
1488
|
steps: d,
|
|
1469
1489
|
linear: u,
|
|
1470
|
-
registerStep:
|
|
1490
|
+
registerStep: r,
|
|
1471
1491
|
unregisterStep: o,
|
|
1472
1492
|
updateStep: m,
|
|
1473
1493
|
goTo: $,
|
|
1474
1494
|
next: y,
|
|
1475
1495
|
prev: b
|
|
1476
1496
|
});
|
|
1477
|
-
const
|
|
1497
|
+
const x = v(() => ["llm-stepper", `orientation-${a.orientation}`]);
|
|
1478
1498
|
function _(f) {
|
|
1479
1499
|
return l.value > f || d.value[f]?.completed;
|
|
1480
1500
|
}
|
|
1481
1501
|
return (f, C) => (s(), n("div", {
|
|
1482
|
-
class: g(
|
|
1502
|
+
class: g(x.value)
|
|
1483
1503
|
}, [
|
|
1484
|
-
c("div",
|
|
1485
|
-
(s(!0), n(
|
|
1504
|
+
c("div", wa, [
|
|
1505
|
+
(s(!0), n(I, null, z(d.value, (w, S) => (s(), n(I, {
|
|
1486
1506
|
key: w.id
|
|
1487
1507
|
}, [
|
|
1488
1508
|
c("div", {
|
|
@@ -1506,7 +1526,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1506
1526
|
disabled: w.disabled || void 0,
|
|
1507
1527
|
onClick: (K) => $(S)
|
|
1508
1528
|
}, [
|
|
1509
|
-
w.completed && !w.error ? (s(), n("svg",
|
|
1529
|
+
w.completed && !w.error ? (s(), n("svg", xa, [...C[0] || (C[0] = [
|
|
1510
1530
|
c("path", {
|
|
1511
1531
|
d: "M2 7L5.5 10.5L12 3.5",
|
|
1512
1532
|
stroke: "currentColor",
|
|
@@ -1514,21 +1534,21 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1514
1534
|
"stroke-linecap": "round",
|
|
1515
1535
|
"stroke-linejoin": "round"
|
|
1516
1536
|
}, null, -1)
|
|
1517
|
-
])])) : w.error ? (s(), n("svg",
|
|
1537
|
+
])])) : w.error ? (s(), n("svg", Ba, [...C[1] || (C[1] = [
|
|
1518
1538
|
c("path", {
|
|
1519
1539
|
d: "M3 3L11 11M11 3L3 11",
|
|
1520
1540
|
stroke: "currentColor",
|
|
1521
1541
|
"stroke-width": "2",
|
|
1522
1542
|
"stroke-linecap": "round"
|
|
1523
1543
|
}, null, -1)
|
|
1524
|
-
])])) : (s(), n(
|
|
1525
|
-
|
|
1544
|
+
])])) : (s(), n(I, { key: 2 }, [
|
|
1545
|
+
G(L(S + 1), 1)
|
|
1526
1546
|
], 64))
|
|
1527
|
-
], 8,
|
|
1528
|
-
c("div",
|
|
1529
|
-
c("span",
|
|
1530
|
-
w.description ? (s(), n("span",
|
|
1531
|
-
w.optional && !w.completed ? (s(), n("span",
|
|
1547
|
+
], 8, La),
|
|
1548
|
+
c("div", Ca, [
|
|
1549
|
+
c("span", Ta, L(w.label), 1),
|
|
1550
|
+
w.description ? (s(), n("span", Ia, L(w.description), 1)) : k("", !0),
|
|
1551
|
+
w.optional && !w.completed ? (s(), n("span", Da, "Optional")) : k("", !0)
|
|
1532
1552
|
])
|
|
1533
1553
|
], 2),
|
|
1534
1554
|
S < d.value.length - 1 ? (s(), n("div", {
|
|
@@ -1537,12 +1557,12 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1537
1557
|
}, null, 2)) : k("", !0)
|
|
1538
1558
|
], 64))), 128))
|
|
1539
1559
|
]),
|
|
1540
|
-
c("div",
|
|
1560
|
+
c("div", Sa, [
|
|
1541
1561
|
h(f.$slots, "default")
|
|
1542
1562
|
])
|
|
1543
1563
|
], 2));
|
|
1544
1564
|
}
|
|
1545
|
-
}),
|
|
1565
|
+
}), Ma = ["id", "aria-labelledby", "hidden"], Ft = /* @__PURE__ */ p({
|
|
1546
1566
|
name: "LlmStep",
|
|
1547
1567
|
__name: "llm-step",
|
|
1548
1568
|
props: {
|
|
@@ -1554,10 +1574,10 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1554
1574
|
disabled: { type: Boolean, default: !1 }
|
|
1555
1575
|
},
|
|
1556
1576
|
setup(e) {
|
|
1557
|
-
const t = e, a = R(ee),
|
|
1558
|
-
|
|
1577
|
+
const t = e, a = R(ee), i = O();
|
|
1578
|
+
E(() => {
|
|
1559
1579
|
a.registerStep({
|
|
1560
|
-
id:
|
|
1580
|
+
id: i,
|
|
1561
1581
|
label: t.label,
|
|
1562
1582
|
description: t.description,
|
|
1563
1583
|
completed: t.completed,
|
|
@@ -1566,7 +1586,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1566
1586
|
disabled: t.disabled
|
|
1567
1587
|
});
|
|
1568
1588
|
}), F(() => {
|
|
1569
|
-
a.unregisterStep(
|
|
1589
|
+
a.unregisterStep(i);
|
|
1570
1590
|
}), A(
|
|
1571
1591
|
() => ({
|
|
1572
1592
|
label: t.label,
|
|
@@ -1577,11 +1597,11 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1577
1597
|
disabled: t.disabled
|
|
1578
1598
|
}),
|
|
1579
1599
|
(u) => {
|
|
1580
|
-
a.updateStep(
|
|
1600
|
+
a.updateStep(i, u);
|
|
1581
1601
|
}
|
|
1582
1602
|
);
|
|
1583
|
-
const l = v(() => a.steps.value.findIndex((u) => u.id ===
|
|
1584
|
-
return (u,
|
|
1603
|
+
const l = v(() => a.steps.value.findIndex((u) => u.id === i)), d = v(() => l.value === a.activeStep.value);
|
|
1604
|
+
return (u, r) => l.value >= 0 ? (s(), n("div", {
|
|
1585
1605
|
key: 0,
|
|
1586
1606
|
id: `llm-step-panel-${l.value}`,
|
|
1587
1607
|
role: "tabpanel",
|
|
@@ -1590,9 +1610,9 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1590
1610
|
tabindex: "0"
|
|
1591
1611
|
}, [
|
|
1592
1612
|
h(u.$slots, "default")
|
|
1593
|
-
], 8,
|
|
1613
|
+
], 8, Ma)) : k("", !0);
|
|
1594
1614
|
}
|
|
1595
|
-
}),
|
|
1615
|
+
}), za = { class: "llm-table-wrapper" }, Pt = /* @__PURE__ */ p({
|
|
1596
1616
|
name: "LlmTable",
|
|
1597
1617
|
__name: "llm-table",
|
|
1598
1618
|
props: {
|
|
@@ -1607,17 +1627,17 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1607
1627
|
`size-${t.size}`,
|
|
1608
1628
|
t.stickyHeader && "is-sticky-header"
|
|
1609
1629
|
]);
|
|
1610
|
-
return (
|
|
1630
|
+
return (i, l) => (s(), n("div", {
|
|
1611
1631
|
class: g(a.value)
|
|
1612
1632
|
}, [
|
|
1613
|
-
c("div",
|
|
1633
|
+
c("div", za, [
|
|
1614
1634
|
c("table", null, [
|
|
1615
|
-
h(
|
|
1635
|
+
h(i.$slots, "default")
|
|
1616
1636
|
])
|
|
1617
1637
|
])
|
|
1618
1638
|
], 2));
|
|
1619
1639
|
}
|
|
1620
|
-
}),
|
|
1640
|
+
}), Kt = /* @__PURE__ */ p({
|
|
1621
1641
|
name: "LlmThead",
|
|
1622
1642
|
__name: "llm-thead",
|
|
1623
1643
|
setup(e) {
|
|
@@ -1625,7 +1645,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1625
1645
|
h(t.$slots, "default")
|
|
1626
1646
|
]));
|
|
1627
1647
|
}
|
|
1628
|
-
}),
|
|
1648
|
+
}), qa = { key: 1 }, Aa = ["colspan"], Vt = /* @__PURE__ */ p({
|
|
1629
1649
|
name: "LlmTbody",
|
|
1630
1650
|
__name: "llm-tbody",
|
|
1631
1651
|
props: {
|
|
@@ -1634,20 +1654,20 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1634
1654
|
},
|
|
1635
1655
|
setup(e) {
|
|
1636
1656
|
return (t, a) => (s(), n("tbody", null, [
|
|
1637
|
-
e.empty ? (s(), n("tr",
|
|
1657
|
+
e.empty ? (s(), n("tr", qa, [
|
|
1638
1658
|
c("td", {
|
|
1639
1659
|
colspan: e.colSpan,
|
|
1640
1660
|
class: "llm-tbody-empty-cell"
|
|
1641
1661
|
}, [
|
|
1642
1662
|
h(t.$slots, "empty")
|
|
1643
|
-
], 8,
|
|
1663
|
+
], 8, Aa)
|
|
1644
1664
|
])) : h(t.$slots, "default", { key: 0 })
|
|
1645
1665
|
]));
|
|
1646
1666
|
}
|
|
1647
|
-
}),
|
|
1667
|
+
}), Ra = ["aria-selected"], Ha = {
|
|
1648
1668
|
key: 0,
|
|
1649
1669
|
class: "llm-tr-select-cell"
|
|
1650
|
-
},
|
|
1670
|
+
}, Nt = /* @__PURE__ */ p({
|
|
1651
1671
|
name: "LlmTr",
|
|
1652
1672
|
__name: "llm-tr",
|
|
1653
1673
|
props: {
|
|
@@ -1657,20 +1677,20 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1657
1677
|
emits: ["update:selected"],
|
|
1658
1678
|
setup(e, { emit: t }) {
|
|
1659
1679
|
const a = t;
|
|
1660
|
-
return (
|
|
1680
|
+
return (i, l) => (s(), n("tr", {
|
|
1661
1681
|
"aria-selected": e.selectable ? e.selected : void 0,
|
|
1662
1682
|
class: g({ "is-selected": e.selected })
|
|
1663
1683
|
}, [
|
|
1664
|
-
e.selectable ? (s(), n("td",
|
|
1665
|
-
de(
|
|
1684
|
+
e.selectable ? (s(), n("td", Ha, [
|
|
1685
|
+
de(qe, {
|
|
1666
1686
|
checked: e.selected,
|
|
1667
1687
|
"onUpdate:checked": l[0] || (l[0] = (d) => a("update:selected", d))
|
|
1668
1688
|
}, null, 8, ["checked"])
|
|
1669
1689
|
])) : k("", !0),
|
|
1670
|
-
h(
|
|
1671
|
-
], 10,
|
|
1690
|
+
h(i.$slots, "default")
|
|
1691
|
+
], 10, Ra));
|
|
1672
1692
|
}
|
|
1673
|
-
}),
|
|
1693
|
+
}), Ea = ["aria-sort"], Ut = /* @__PURE__ */ p({
|
|
1674
1694
|
name: "LlmTh",
|
|
1675
1695
|
__name: "llm-th",
|
|
1676
1696
|
props: {
|
|
@@ -1681,7 +1701,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1681
1701
|
},
|
|
1682
1702
|
emits: ["sort"],
|
|
1683
1703
|
setup(e, { emit: t }) {
|
|
1684
|
-
const a = e,
|
|
1704
|
+
const a = e, i = t, l = v(
|
|
1685
1705
|
() => [
|
|
1686
1706
|
`align-${a.align}`,
|
|
1687
1707
|
a.sortDirection && "is-sorted",
|
|
@@ -1693,10 +1713,10 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1693
1713
|
return a.sortDirection === "asc" ? "ascending" : a.sortDirection === "desc" ? "descending" : "none";
|
|
1694
1714
|
});
|
|
1695
1715
|
function u() {
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1716
|
+
const r = a.sortDirection === null ? "asc" : a.sortDirection === "asc" ? "desc" : null;
|
|
1717
|
+
i("sort", r);
|
|
1698
1718
|
}
|
|
1699
|
-
return (
|
|
1719
|
+
return (r, o) => (s(), n("th", {
|
|
1700
1720
|
class: g(l.value),
|
|
1701
1721
|
"aria-sort": d.value,
|
|
1702
1722
|
style: P(e.width ? { width: e.width } : void 0)
|
|
@@ -1707,7 +1727,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1707
1727
|
class: "llm-th-sort-btn",
|
|
1708
1728
|
onClick: u
|
|
1709
1729
|
}, [
|
|
1710
|
-
h(
|
|
1730
|
+
h(r.$slots, "default"),
|
|
1711
1731
|
o[0] || (o[0] = c("svg", {
|
|
1712
1732
|
class: "llm-th-sort-icon",
|
|
1713
1733
|
"aria-hidden": "true",
|
|
@@ -1727,10 +1747,10 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1727
1747
|
fill: "currentColor"
|
|
1728
1748
|
})
|
|
1729
1749
|
], -1))
|
|
1730
|
-
])) : h(
|
|
1731
|
-
], 14,
|
|
1750
|
+
])) : h(r.$slots, "default", { key: 1 })
|
|
1751
|
+
], 14, Ea));
|
|
1732
1752
|
}
|
|
1733
|
-
}),
|
|
1753
|
+
}), Zt = /* @__PURE__ */ p({
|
|
1734
1754
|
name: "LlmTd",
|
|
1735
1755
|
__name: "llm-td",
|
|
1736
1756
|
props: {
|
|
@@ -1738,13 +1758,13 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1738
1758
|
},
|
|
1739
1759
|
setup(e) {
|
|
1740
1760
|
const t = e, a = v(() => [`align-${t.align}`]);
|
|
1741
|
-
return (
|
|
1761
|
+
return (i, l) => (s(), n("td", {
|
|
1742
1762
|
class: g(a.value)
|
|
1743
1763
|
}, [
|
|
1744
|
-
h(
|
|
1764
|
+
h(i.$slots, "default")
|
|
1745
1765
|
], 2));
|
|
1746
1766
|
}
|
|
1747
|
-
}),
|
|
1767
|
+
}), Oa = ["id", "aria-selected", "aria-controls", "tabindex", "disabled", "onClick"], ja = { class: "tab-panels" }, ae = /* @__PURE__ */ Symbol("LlmTabGroup"), Jt = /* @__PURE__ */ p({
|
|
1748
1768
|
name: "LlmTabGroup",
|
|
1749
1769
|
__name: "llm-tab-group",
|
|
1750
1770
|
props: {
|
|
@@ -1753,7 +1773,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1753
1773
|
},
|
|
1754
1774
|
emits: ["update:selectedIndex"],
|
|
1755
1775
|
setup(e, { emit: t }) {
|
|
1756
|
-
const a = e,
|
|
1776
|
+
const a = e, i = t, l = B(a.selectedIndex), d = B([]);
|
|
1757
1777
|
A(
|
|
1758
1778
|
() => a.selectedIndex,
|
|
1759
1779
|
(b) => {
|
|
@@ -1763,39 +1783,39 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1763
1783
|
function u(b) {
|
|
1764
1784
|
d.value.push(b);
|
|
1765
1785
|
}
|
|
1766
|
-
function
|
|
1767
|
-
d.value = d.value.filter((
|
|
1786
|
+
function r(b) {
|
|
1787
|
+
d.value = d.value.filter((x) => x.id !== b);
|
|
1768
1788
|
}
|
|
1769
1789
|
function o(b) {
|
|
1770
|
-
l.value = b,
|
|
1790
|
+
l.value = b, i("update:selectedIndex", b);
|
|
1771
1791
|
}
|
|
1772
|
-
|
|
1792
|
+
H(ae, {
|
|
1773
1793
|
selectedIndex: l,
|
|
1774
1794
|
tabs: d,
|
|
1775
1795
|
registerTab: u,
|
|
1776
|
-
unregisterTab:
|
|
1796
|
+
unregisterTab: r,
|
|
1777
1797
|
selectTab: o
|
|
1778
1798
|
});
|
|
1779
1799
|
function m(b) {
|
|
1780
|
-
const
|
|
1800
|
+
const x = d.value.map((f, C) => ({ i: C, disabled: f.disabled })).filter((f) => !f.disabled).map((f) => f.i), _ = x.indexOf(l.value);
|
|
1781
1801
|
if (b.key === "ArrowRight") {
|
|
1782
1802
|
b.preventDefault();
|
|
1783
|
-
const f =
|
|
1803
|
+
const f = x[(_ + 1) % x.length];
|
|
1784
1804
|
f !== void 0 && o(f);
|
|
1785
1805
|
} else if (b.key === "ArrowLeft") {
|
|
1786
1806
|
b.preventDefault();
|
|
1787
|
-
const f =
|
|
1807
|
+
const f = x[(_ - 1 + x.length) % x.length];
|
|
1788
1808
|
f !== void 0 && o(f);
|
|
1789
1809
|
} else if (b.key === "Home")
|
|
1790
|
-
b.preventDefault(),
|
|
1810
|
+
b.preventDefault(), x[0] !== void 0 && o(x[0]);
|
|
1791
1811
|
else if (b.key === "End") {
|
|
1792
1812
|
b.preventDefault();
|
|
1793
|
-
const f =
|
|
1813
|
+
const f = x[x.length - 1];
|
|
1794
1814
|
f !== void 0 && o(f);
|
|
1795
1815
|
}
|
|
1796
1816
|
}
|
|
1797
1817
|
const $ = `llm-tab-group-${Math.random().toString(36).slice(2, 9)}`, y = v(() => ["llm-tab-group", `variant-${a.variant}`]);
|
|
1798
|
-
return (b,
|
|
1818
|
+
return (b, x) => (s(), n("div", {
|
|
1799
1819
|
class: g(y.value)
|
|
1800
1820
|
}, [
|
|
1801
1821
|
c("div", {
|
|
@@ -1803,7 +1823,7 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1803
1823
|
role: "tablist",
|
|
1804
1824
|
onKeydown: m
|
|
1805
1825
|
}, [
|
|
1806
|
-
(s(!0), n(
|
|
1826
|
+
(s(!0), n(I, null, z(d.value, (_, f) => (s(), n("button", {
|
|
1807
1827
|
key: _.id,
|
|
1808
1828
|
role: "tab",
|
|
1809
1829
|
id: `${$}-tab-${f}`,
|
|
@@ -1814,14 +1834,14 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1814
1834
|
class: g(["tab-button", f === l.value && "is-active", _.disabled && "is-disabled"]),
|
|
1815
1835
|
type: "button",
|
|
1816
1836
|
onClick: (C) => !_.disabled && o(f)
|
|
1817
|
-
},
|
|
1837
|
+
}, L(_.label), 11, Oa))), 128))
|
|
1818
1838
|
], 32),
|
|
1819
|
-
c("div",
|
|
1839
|
+
c("div", ja, [
|
|
1820
1840
|
h(b.$slots, "default", { groupId: $ })
|
|
1821
1841
|
])
|
|
1822
1842
|
], 2));
|
|
1823
1843
|
}
|
|
1824
|
-
}),
|
|
1844
|
+
}), Ga = ["hidden"], Qt = /* @__PURE__ */ p({
|
|
1825
1845
|
name: "LlmTab",
|
|
1826
1846
|
__name: "llm-tab",
|
|
1827
1847
|
props: {
|
|
@@ -1829,15 +1849,15 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1829
1849
|
disabled: { type: Boolean, default: !1 }
|
|
1830
1850
|
},
|
|
1831
1851
|
setup(e) {
|
|
1832
|
-
const t = e, a = R(ae),
|
|
1833
|
-
|
|
1834
|
-
a.registerTab({ id:
|
|
1852
|
+
const t = e, a = R(ae), i = O();
|
|
1853
|
+
E(() => {
|
|
1854
|
+
a.registerTab({ id: i, label: t.label, disabled: t.disabled });
|
|
1835
1855
|
}), F(() => {
|
|
1836
|
-
a.unregisterTab(
|
|
1856
|
+
a.unregisterTab(i);
|
|
1837
1857
|
});
|
|
1838
|
-
const l = v(() => a.tabs.value.findIndex((u) => u.id ===
|
|
1858
|
+
const l = v(() => a.tabs.value.findIndex((u) => u.id === i)), d = v(() => l.value === a.selectedIndex.value);
|
|
1839
1859
|
return v(() => {
|
|
1840
|
-
}), (u,
|
|
1860
|
+
}), (u, r) => l.value >= 0 ? (s(), n("div", {
|
|
1841
1861
|
key: 0,
|
|
1842
1862
|
role: "tabpanel",
|
|
1843
1863
|
hidden: !d.value,
|
|
@@ -1846,13 +1866,13 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1846
1866
|
tabindex: "0"
|
|
1847
1867
|
}, [
|
|
1848
1868
|
h(u.$slots, "default")
|
|
1849
|
-
], 8,
|
|
1869
|
+
], 8, Ga)) : k("", !0);
|
|
1850
1870
|
}
|
|
1851
|
-
}),
|
|
1871
|
+
}), Fa = ["for"], Pa = { class: "textarea-field" }, Ka = ["id", "value", "rows", "placeholder", "disabled", "readonly", "required", "name", "aria-invalid"], Va = {
|
|
1852
1872
|
key: 1,
|
|
1853
1873
|
class: "errors",
|
|
1854
1874
|
"aria-live": "polite"
|
|
1855
|
-
},
|
|
1875
|
+
}, Wt = /* @__PURE__ */ p({
|
|
1856
1876
|
name: "LlmTextarea",
|
|
1857
1877
|
__name: "llm-textarea",
|
|
1858
1878
|
props: {
|
|
@@ -1871,15 +1891,15 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1871
1891
|
},
|
|
1872
1892
|
emits: ["update:value"],
|
|
1873
1893
|
setup(e, { emit: t }) {
|
|
1874
|
-
const a = e,
|
|
1894
|
+
const a = e, i = t, l = B(null), d = v(() => a.id || (a.label ? `textarea-${Math.random().toString(36).slice(2)}` : void 0));
|
|
1875
1895
|
function u() {
|
|
1876
1896
|
a.autoResize && l.value && (l.value.style.height = "auto", l.value.style.height = `${l.value.scrollHeight}px`);
|
|
1877
1897
|
}
|
|
1878
1898
|
A(() => a.value, async () => {
|
|
1879
1899
|
await ue(), u();
|
|
1880
|
-
}),
|
|
1881
|
-
function
|
|
1882
|
-
|
|
1900
|
+
}), E(() => u());
|
|
1901
|
+
function r(o) {
|
|
1902
|
+
i("update:value", o.target.value), u();
|
|
1883
1903
|
}
|
|
1884
1904
|
return (o, m) => (s(), n("div", {
|
|
1885
1905
|
class: g(["llm-textarea", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
@@ -1888,8 +1908,8 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1888
1908
|
key: 0,
|
|
1889
1909
|
for: d.value,
|
|
1890
1910
|
class: "textarea-label"
|
|
1891
|
-
},
|
|
1892
|
-
c("div",
|
|
1911
|
+
}, L(e.label), 9, Fa)) : k("", !0),
|
|
1912
|
+
c("div", Pa, [
|
|
1893
1913
|
c("textarea", {
|
|
1894
1914
|
id: d.value,
|
|
1895
1915
|
ref_key: "textareaRef",
|
|
@@ -1902,19 +1922,19 @@ const J = /* @__PURE__ */ Symbol("LlmAccordionGroup"), st = /* @__PURE__ */ p({
|
|
|
1902
1922
|
required: e.required,
|
|
1903
1923
|
name: e.name,
|
|
1904
1924
|
"aria-invalid": e.invalid || void 0,
|
|
1905
|
-
onInput:
|
|
1906
|
-
}, null, 40,
|
|
1925
|
+
onInput: r
|
|
1926
|
+
}, null, 40, Ka)
|
|
1907
1927
|
]),
|
|
1908
|
-
e.errors.length ? (s(), n("ul",
|
|
1909
|
-
(s(!0), n(
|
|
1928
|
+
e.errors.length ? (s(), n("ul", Va, [
|
|
1929
|
+
(s(!0), n(I, null, z(e.errors, ($, y) => (s(), n("li", {
|
|
1910
1930
|
key: y,
|
|
1911
1931
|
class: "error"
|
|
1912
|
-
},
|
|
1932
|
+
}, L($), 1))), 128))
|
|
1913
1933
|
])) : k("", !0)
|
|
1914
1934
|
], 2));
|
|
1915
1935
|
}
|
|
1916
1936
|
}), V = /* @__PURE__ */ Symbol("LlmToast");
|
|
1917
|
-
function
|
|
1937
|
+
function Xt() {
|
|
1918
1938
|
const e = R(V);
|
|
1919
1939
|
if (!e)
|
|
1920
1940
|
throw new Error(
|
|
@@ -1922,18 +1942,18 @@ function Qt() {
|
|
|
1922
1942
|
);
|
|
1923
1943
|
return { show: e.show, dismiss: e.dismiss, clear: e.clear };
|
|
1924
1944
|
}
|
|
1925
|
-
const
|
|
1945
|
+
const Yt = /* @__PURE__ */ p({
|
|
1926
1946
|
name: "LlmToastProvider",
|
|
1927
1947
|
__name: "llm-toast-provider",
|
|
1928
1948
|
setup(e) {
|
|
1929
1949
|
const t = B([]), a = /* @__PURE__ */ new Map();
|
|
1930
|
-
function
|
|
1931
|
-
const o = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, m =
|
|
1950
|
+
function i(u, r = {}) {
|
|
1951
|
+
const o = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, m = r.duration ?? 5e3, $ = {
|
|
1932
1952
|
id: o,
|
|
1933
1953
|
message: u,
|
|
1934
|
-
variant:
|
|
1954
|
+
variant: r.variant ?? "default",
|
|
1935
1955
|
duration: m,
|
|
1936
|
-
dismissible:
|
|
1956
|
+
dismissible: r.dismissible ?? !0
|
|
1937
1957
|
};
|
|
1938
1958
|
if (t.value = [...t.value, $], m > 0) {
|
|
1939
1959
|
const y = setTimeout(() => {
|
|
@@ -1945,17 +1965,17 @@ const Wt = /* @__PURE__ */ p({
|
|
|
1945
1965
|
}
|
|
1946
1966
|
function l(u) {
|
|
1947
1967
|
t.value = t.value.filter((o) => o.id !== u);
|
|
1948
|
-
const
|
|
1949
|
-
|
|
1968
|
+
const r = a.get(u);
|
|
1969
|
+
r !== void 0 && (clearTimeout(r), a.delete(u));
|
|
1950
1970
|
}
|
|
1951
1971
|
function d() {
|
|
1952
1972
|
for (const u of a.values())
|
|
1953
1973
|
clearTimeout(u);
|
|
1954
1974
|
a.clear(), t.value = [];
|
|
1955
1975
|
}
|
|
1956
|
-
return
|
|
1976
|
+
return H(V, { toasts: t, show: i, dismiss: l, clear: d }), (u, r) => h(u.$slots, "default");
|
|
1957
1977
|
}
|
|
1958
|
-
}),
|
|
1978
|
+
}), Na = { class: "message" }, Ua = /* @__PURE__ */ p({
|
|
1959
1979
|
name: "LlmToastItem",
|
|
1960
1980
|
__name: "llm-toast-item",
|
|
1961
1981
|
props: {
|
|
@@ -1963,18 +1983,18 @@ const Wt = /* @__PURE__ */ p({
|
|
|
1963
1983
|
},
|
|
1964
1984
|
emits: ["dismiss"],
|
|
1965
1985
|
setup(e, { emit: t }) {
|
|
1966
|
-
const a = e,
|
|
1986
|
+
const a = e, i = t, l = v(() => ["llm-toast", `variant-${a.data.variant}`]);
|
|
1967
1987
|
return (d, u) => (s(), n("div", {
|
|
1968
1988
|
class: g(l.value),
|
|
1969
1989
|
role: "status"
|
|
1970
1990
|
}, [
|
|
1971
|
-
c("span",
|
|
1991
|
+
c("span", Na, L(e.data.message), 1),
|
|
1972
1992
|
e.data.dismissible ? (s(), n("button", {
|
|
1973
1993
|
key: 0,
|
|
1974
1994
|
class: "dismiss",
|
|
1975
1995
|
type: "button",
|
|
1976
1996
|
"aria-label": "Dismiss",
|
|
1977
|
-
onClick: u[0] || (u[0] = (
|
|
1997
|
+
onClick: u[0] || (u[0] = (r) => i("dismiss", e.data.id))
|
|
1978
1998
|
}, [...u[1] || (u[1] = [
|
|
1979
1999
|
c("svg", {
|
|
1980
2000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2004,35 +2024,35 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2004
2024
|
])])) : k("", !0)
|
|
2005
2025
|
], 2));
|
|
2006
2026
|
}
|
|
2007
|
-
}),
|
|
2027
|
+
}), el = /* @__PURE__ */ p({
|
|
2008
2028
|
name: "LlmToastContainer",
|
|
2009
2029
|
__name: "llm-toast-container",
|
|
2010
2030
|
props: {
|
|
2011
2031
|
position: { default: "bottom-right" }
|
|
2012
2032
|
},
|
|
2013
2033
|
setup(e) {
|
|
2014
|
-
const t = e, a = R(V),
|
|
2034
|
+
const t = e, a = R(V), i = v(() => a.toasts.value);
|
|
2015
2035
|
function l(u) {
|
|
2016
2036
|
a.dismiss(u);
|
|
2017
2037
|
}
|
|
2018
2038
|
const d = v(() => ["llm-toast-container", `position-${t.position}`]);
|
|
2019
|
-
return (u,
|
|
2039
|
+
return (u, r) => (s(), n("div", {
|
|
2020
2040
|
class: g(d.value),
|
|
2021
2041
|
"aria-live": "polite",
|
|
2022
2042
|
role: "status"
|
|
2023
2043
|
}, [
|
|
2024
|
-
(s(!0), n(
|
|
2044
|
+
(s(!0), n(I, null, z(i.value, (o) => (s(), N(Ua, {
|
|
2025
2045
|
key: o.id,
|
|
2026
2046
|
data: o,
|
|
2027
|
-
onDismiss:
|
|
2047
|
+
onDismiss: r[0] || (r[0] = (m) => l(m))
|
|
2028
2048
|
}, null, 8, ["data"]))), 128))
|
|
2029
2049
|
], 2));
|
|
2030
2050
|
}
|
|
2031
|
-
}),
|
|
2051
|
+
}), Za = ["for"], Ja = ["id", "checked", "disabled", "required", "name", "aria-invalid", "aria-checked"], Qa = {
|
|
2032
2052
|
key: 0,
|
|
2033
2053
|
class: "errors",
|
|
2034
2054
|
"aria-live": "polite"
|
|
2035
|
-
},
|
|
2055
|
+
}, al = /* @__PURE__ */ p({
|
|
2036
2056
|
name: "LlmToggle",
|
|
2037
2057
|
__name: "llm-toggle",
|
|
2038
2058
|
props: {
|
|
@@ -2047,11 +2067,11 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2047
2067
|
},
|
|
2048
2068
|
emits: ["update:checked"],
|
|
2049
2069
|
setup(e, { emit: t }) {
|
|
2050
|
-
const a = e,
|
|
2070
|
+
const a = e, i = t, l = v(() => a.id || `toggle-${Math.random().toString(36).slice(2)}`);
|
|
2051
2071
|
function d(u) {
|
|
2052
|
-
a.readonly ||
|
|
2072
|
+
a.readonly || i("update:checked", u.target.checked);
|
|
2053
2073
|
}
|
|
2054
|
-
return (u,
|
|
2074
|
+
return (u, r) => (s(), n("div", {
|
|
2055
2075
|
class: g(["llm-toggle", { "is-invalid": e.invalid, "is-disabled": e.disabled }])
|
|
2056
2076
|
}, [
|
|
2057
2077
|
c("label", {
|
|
@@ -2069,21 +2089,21 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2069
2089
|
"aria-invalid": e.invalid || void 0,
|
|
2070
2090
|
"aria-checked": e.checked,
|
|
2071
2091
|
onChange: d
|
|
2072
|
-
}, null, 40,
|
|
2073
|
-
|
|
2092
|
+
}, null, 40, Ja),
|
|
2093
|
+
r[0] || (r[0] = c("span", { class: "track" }, [
|
|
2074
2094
|
c("span", { class: "thumb" })
|
|
2075
2095
|
], -1)),
|
|
2076
2096
|
h(u.$slots, "default")
|
|
2077
|
-
], 8,
|
|
2078
|
-
e.errors.length ? (s(), n("ul",
|
|
2079
|
-
(s(!0), n(
|
|
2097
|
+
], 8, Za),
|
|
2098
|
+
e.errors.length ? (s(), n("ul", Qa, [
|
|
2099
|
+
(s(!0), n(I, null, z(e.errors, (o, m) => (s(), n("li", {
|
|
2080
2100
|
key: m,
|
|
2081
2101
|
class: "error"
|
|
2082
|
-
},
|
|
2102
|
+
}, L(o), 1))), 128))
|
|
2083
2103
|
])) : k("", !0)
|
|
2084
2104
|
], 2));
|
|
2085
2105
|
}
|
|
2086
|
-
}),
|
|
2106
|
+
}), tl = /* @__PURE__ */ p({
|
|
2087
2107
|
name: "LlmTooltip",
|
|
2088
2108
|
__name: "llm-tooltip",
|
|
2089
2109
|
props: {
|
|
@@ -2095,16 +2115,16 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2095
2115
|
},
|
|
2096
2116
|
setup(e) {
|
|
2097
2117
|
const t = e, a = B(!1);
|
|
2098
|
-
let
|
|
2118
|
+
let i = null, l = null;
|
|
2099
2119
|
function d() {
|
|
2100
|
-
|
|
2120
|
+
i && (clearTimeout(i), i = null), l && (clearTimeout(l), l = null);
|
|
2101
2121
|
}
|
|
2102
2122
|
function u() {
|
|
2103
|
-
t.llmTooltipDisabled || !t.llmTooltip || (d(),
|
|
2123
|
+
t.llmTooltipDisabled || !t.llmTooltip || (d(), i = setTimeout(() => {
|
|
2104
2124
|
a.value = !0;
|
|
2105
2125
|
}, t.llmTooltipShowDelay));
|
|
2106
2126
|
}
|
|
2107
|
-
function
|
|
2127
|
+
function r() {
|
|
2108
2128
|
d(), l = setTimeout(() => {
|
|
2109
2129
|
a.value = !1;
|
|
2110
2130
|
}, t.llmTooltipHideDelay);
|
|
@@ -2115,9 +2135,9 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2115
2135
|
return Z(() => d()), (m, $) => (s(), n("span", {
|
|
2116
2136
|
class: "llm-tooltip-wrapper",
|
|
2117
2137
|
onMouseenter: u,
|
|
2118
|
-
onMouseleave:
|
|
2138
|
+
onMouseleave: r,
|
|
2119
2139
|
onFocus: u,
|
|
2120
|
-
onBlur:
|
|
2140
|
+
onBlur: r,
|
|
2121
2141
|
onKeydown: o
|
|
2122
2142
|
}, [
|
|
2123
2143
|
h(m.$slots, "default"),
|
|
@@ -2125,10 +2145,10 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2125
2145
|
key: 0,
|
|
2126
2146
|
role: "tooltip",
|
|
2127
2147
|
class: g(`llm-tooltip position-${e.llmTooltipPosition}`)
|
|
2128
|
-
},
|
|
2148
|
+
}, L(e.llmTooltip), 3)) : k("", !0)
|
|
2129
2149
|
], 32));
|
|
2130
2150
|
}
|
|
2131
|
-
}),
|
|
2151
|
+
}), Wa = { class: "llm-code-block" }, Xa = { class: "code-block-header" }, Ya = { class: "code-block-label" }, et = ["aria-label"], at = { class: "code-block-body" }, tt = { class: "code-block-pre" }, lt = { class: "code-line-number" }, st = { class: "code-line-text" }, ll = /* @__PURE__ */ p({
|
|
2132
2152
|
name: "LlmCodeBlock",
|
|
2133
2153
|
__name: "llm-code-block",
|
|
2134
2154
|
props: {
|
|
@@ -2139,7 +2159,7 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2139
2159
|
showLineNumbers: { type: Boolean, default: !1 }
|
|
2140
2160
|
},
|
|
2141
2161
|
setup(e) {
|
|
2142
|
-
const t = e, a = B(!1),
|
|
2162
|
+
const t = e, a = B(!1), i = v(() => t.filename || t.language), l = v(() => t.code.split(`
|
|
2143
2163
|
`));
|
|
2144
2164
|
function d() {
|
|
2145
2165
|
navigator.clipboard.writeText(t.code).then(() => {
|
|
@@ -2148,9 +2168,9 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2148
2168
|
}, 1800);
|
|
2149
2169
|
});
|
|
2150
2170
|
}
|
|
2151
|
-
return (u,
|
|
2152
|
-
c("div",
|
|
2153
|
-
c("span",
|
|
2171
|
+
return (u, r) => (s(), n("div", Wa, [
|
|
2172
|
+
c("div", Xa, [
|
|
2173
|
+
c("span", Ya, L(i.value), 1),
|
|
2154
2174
|
e.copyable ? (s(), n("button", {
|
|
2155
2175
|
key: 0,
|
|
2156
2176
|
class: "code-block-copy",
|
|
@@ -2158,8 +2178,8 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2158
2178
|
"aria-label": a.value ? "Copied" : "Copy code",
|
|
2159
2179
|
onClick: d
|
|
2160
2180
|
}, [
|
|
2161
|
-
a.value ? (s(), n(
|
|
2162
|
-
|
|
2181
|
+
a.value ? (s(), n(I, { key: 0 }, [
|
|
2182
|
+
r[0] || (r[0] = c("svg", {
|
|
2163
2183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2164
2184
|
width: "14",
|
|
2165
2185
|
height: "14",
|
|
@@ -2173,9 +2193,9 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2173
2193
|
}, [
|
|
2174
2194
|
c("polyline", { points: "20 6 9 17 4 12" })
|
|
2175
2195
|
], -1)),
|
|
2176
|
-
|
|
2177
|
-
], 64)) : (s(), n(
|
|
2178
|
-
|
|
2196
|
+
r[1] || (r[1] = G(" Copied ", -1))
|
|
2197
|
+
], 64)) : (s(), n(I, { key: 1 }, [
|
|
2198
|
+
r[2] || (r[2] = c("svg", {
|
|
2179
2199
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2180
2200
|
width: "14",
|
|
2181
2201
|
height: "14",
|
|
@@ -2197,21 +2217,21 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2197
2217
|
}),
|
|
2198
2218
|
c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
2199
2219
|
], -1)),
|
|
2200
|
-
|
|
2220
|
+
r[3] || (r[3] = G(" Copy ", -1))
|
|
2201
2221
|
], 64))
|
|
2202
|
-
], 8,
|
|
2222
|
+
], 8, et)) : k("", !0)
|
|
2203
2223
|
]),
|
|
2204
|
-
c("div",
|
|
2205
|
-
c("pre",
|
|
2224
|
+
c("div", at, [
|
|
2225
|
+
c("pre", tt, [
|
|
2206
2226
|
c("code", null, [
|
|
2207
|
-
e.showLineNumbers ? (s(!0), n(
|
|
2227
|
+
e.showLineNumbers ? (s(!0), n(I, { key: 0 }, z(l.value, (o, m) => (s(), n("span", {
|
|
2208
2228
|
key: m,
|
|
2209
2229
|
class: "code-line"
|
|
2210
2230
|
}, [
|
|
2211
|
-
c("span",
|
|
2212
|
-
c("span",
|
|
2213
|
-
]))), 128)) : (s(), n(
|
|
2214
|
-
|
|
2231
|
+
c("span", lt, L(m + 1), 1),
|
|
2232
|
+
c("span", st, L(o), 1)
|
|
2233
|
+
]))), 128)) : (s(), n(I, { key: 1 }, [
|
|
2234
|
+
G(L(e.code), 1)
|
|
2215
2235
|
], 64))
|
|
2216
2236
|
])
|
|
2217
2237
|
])
|
|
@@ -2220,58 +2240,58 @@ const Wt = /* @__PURE__ */ p({
|
|
|
2220
2240
|
}
|
|
2221
2241
|
});
|
|
2222
2242
|
export {
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2243
|
+
ot as LlmAccordionGroup,
|
|
2244
|
+
rt as LlmAccordionHeader,
|
|
2245
|
+
it as LlmAccordionItem,
|
|
2246
|
+
dt as LlmAlert,
|
|
2247
|
+
ut as LlmAvatar,
|
|
2248
|
+
ct as LlmAvatarGroup,
|
|
2249
|
+
mt as LlmBadge,
|
|
2250
|
+
vt as LlmBreadcrumbItem,
|
|
2251
|
+
ft as LlmBreadcrumbs,
|
|
2252
|
+
pt as LlmButton,
|
|
2253
|
+
bt as LlmCard,
|
|
2254
|
+
gt as LlmCardContent,
|
|
2255
|
+
yt as LlmCardFooter,
|
|
2256
|
+
ht as LlmCardHeader,
|
|
2257
|
+
qe as LlmCheckbox,
|
|
2258
|
+
ll as LlmCodeBlock,
|
|
2259
|
+
At as LlmCombobox,
|
|
2260
|
+
$t as LlmDialog,
|
|
2261
|
+
_t as LlmDialogContent,
|
|
2262
|
+
wt as LlmDialogFooter,
|
|
2263
|
+
kt as LlmDialogHeader,
|
|
2264
|
+
Lt as LlmDrawer,
|
|
2265
|
+
Bt as LlmDrawerContent,
|
|
2266
|
+
Ct as LlmDrawerFooter,
|
|
2267
|
+
xt as LlmDrawerHeader,
|
|
2268
|
+
Tt as LlmInput,
|
|
2269
|
+
Dt as LlmMenu,
|
|
2270
|
+
St as LlmMenuItem,
|
|
2271
|
+
Mt as LlmMenuSeparator,
|
|
2272
|
+
It as LlmMenuTrigger,
|
|
2273
|
+
Ot as LlmOption,
|
|
2274
|
+
zt as LlmPagination,
|
|
2275
|
+
qt as LlmProgress,
|
|
2276
|
+
Ht as LlmRadio,
|
|
2277
|
+
Rt as LlmRadioGroup,
|
|
2278
|
+
Et as LlmSelect,
|
|
2279
|
+
jt as LlmSkeleton,
|
|
2280
|
+
Ft as LlmStep,
|
|
2281
|
+
Gt as LlmStepper,
|
|
2282
|
+
Qt as LlmTab,
|
|
2283
|
+
Jt as LlmTabGroup,
|
|
2284
|
+
Pt as LlmTable,
|
|
2285
|
+
Vt as LlmTbody,
|
|
2286
|
+
Zt as LlmTd,
|
|
2287
|
+
Wt as LlmTextarea,
|
|
2288
|
+
Ut as LlmTh,
|
|
2289
|
+
Kt as LlmThead,
|
|
2290
|
+
el as LlmToastContainer,
|
|
2291
|
+
Ua as LlmToastItem,
|
|
2292
|
+
Yt as LlmToastProvider,
|
|
2293
|
+
al as LlmToggle,
|
|
2294
|
+
tl as LlmTooltip,
|
|
2295
|
+
Nt as LlmTr,
|
|
2296
|
+
Xt as useLlmToast
|
|
2277
2297
|
};
|