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