@wirecore/wirelayer-vue 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Checkbox-D175nhKK.js → Checkbox-DS2qfQK1.js} +2 -8
- package/dist/ContextMenu-B6agwyf_.js +2311 -0
- package/dist/{Field-B1EsNF84.js → Field-Cqe2BG_x.js} +1 -1
- package/dist/Input-C5dyvZfJ.js +183 -0
- package/dist/{InputStatus-D7kBGlew.js → InputStatus-Cgarj-yu.js} +16 -3
- package/dist/{Select-Bd2Vpr7G.js → Select-CeZbSy6K.js} +111 -95
- package/dist/Tree-DgHt0P5P.js +807 -0
- package/dist/components/Alert/Alert.vue.d.ts +5 -3
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +26 -23
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.vue.d.ts +9 -1
- package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +17 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog/DialogContent.vue.d.ts +5 -0
- package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts +1 -1
- package/dist/components/FilterPanel/FilterPanel.vue.d.ts +1 -1
- package/dist/components/HoverCard/HoverCard.vue.d.ts +1 -1
- package/dist/components/Input/Input.vue.d.ts +3 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/MaskInput/MaskInput.vue.d.ts +2 -1
- package/dist/components/MaskInput/MaskInput.vue.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts +9 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/state.d.ts +22 -0
- package/dist/components/Menu/state.d.ts.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.vue.d.ts +26 -17
- package/dist/components/NativeSelect/NativeSelect.vue.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.vue.d.ts +9 -3
- package/dist/components/PasswordInput/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -1
- package/dist/components/Progress/Progress.vue.d.ts +11 -0
- package/dist/components/Progress/Progress.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts +24 -25
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroupItem.vue.d.ts +2 -1
- package/dist/components/RadioGroup/RadioGroupItem.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/context.d.ts +4 -0
- package/dist/components/RadioGroup/context.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +23 -22
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +9 -1
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts +3 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/data-table.js +4 -4
- package/dist/editor.js +1 -1
- package/dist/form.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2691 -2636
- package/dist/pdf.js +3 -3
- package/dist/utils/text-field.d.ts +16 -0
- package/dist/utils/text-field.d.ts.map +1 -0
- package/llms-full.txt +66 -20
- package/llms.txt +5 -4
- package/package.json +2 -2
- package/dist/ContextMenu-BEOEyUa6.js +0 -2235
- package/dist/Input-Cn5q0yVE.js +0 -181
- package/dist/Tree-fd9LXqgZ.js +0 -792
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, n as t } from "./recipes-BlM9aKyt.js";
|
|
2
2
|
import { t as n } from "./attrs-KNjeRUCf.js";
|
|
3
3
|
import { a as r, n as i, r as a } from "./Highlight-uwptdaUw.js";
|
|
4
|
-
import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as ee, normalizeClass as y, normalizeProps as b, onBeforeUnmount as
|
|
4
|
+
import { Fragment as o, Teleport as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, guardReactiveProps as _, mergeProps as v, nextTick as ee, normalizeClass as y, normalizeProps as b, onBeforeUnmount as x, onMounted as S, openBlock as C, ref as w, renderList as T, renderSlot as E, resolveDynamicComponent as D, toDisplayString as O, unref as k, useAttrs as te, useId as ne, watch as A, withCtx as j } from "vue";
|
|
5
5
|
import { Check as M, ChevronDown as re, LoaderCircle as N, X as ie } from "@lucide/vue";
|
|
6
6
|
import { controlIds as ae, select as oe, spinner as P } from "@wirecore/wirelayer-recipes";
|
|
7
7
|
import { useFieldContext as se } from "@ark-ui/vue/field";
|
|
@@ -22,24 +22,24 @@ var I = [
|
|
|
22
22
|
classes: {}
|
|
23
23
|
},
|
|
24
24
|
setup(n) {
|
|
25
|
-
let r = e(), i = n, a = t("spinner", P, () => i.classes), o =
|
|
26
|
-
return (e, t) => n.value === void 0 ? (
|
|
27
|
-
...
|
|
28
|
-
class: s.value.base({ class: y(
|
|
29
|
-
}, { role: "status" }), [h(
|
|
25
|
+
let r = e(), i = n, a = t("spinner", P, () => i.classes), o = te(), s = c(() => a({ size: i.size })), l = c(() => Math.min(100, Math.max(0, i.value ?? 0))), u = 2 * Math.PI * 9;
|
|
26
|
+
return (e, t) => n.value === void 0 ? (C(), d("span", v({ key: 1 }, {
|
|
27
|
+
...k(o),
|
|
28
|
+
class: s.value.base({ class: y(k(o).class) })
|
|
29
|
+
}, { role: "status" }), [h(k(N), {
|
|
30
30
|
class: y(s.value.icon()),
|
|
31
31
|
"aria-hidden": "true"
|
|
32
|
-
}, null, 8, ["class"]), f("span", { class: y(s.value.label()) },
|
|
33
|
-
...
|
|
34
|
-
class: s.value.base({ class: y(
|
|
32
|
+
}, null, 8, ["class"]), f("span", { class: y(s.value.label()) }, O(n.label ?? k(r).common.loading), 3)], 16)) : (C(), d("span", v({ key: 0 }, {
|
|
33
|
+
...k(o),
|
|
34
|
+
class: s.value.base({ class: y(k(o).class) })
|
|
35
35
|
}, {
|
|
36
36
|
role: "progressbar",
|
|
37
|
-
"aria-label": n.label ??
|
|
37
|
+
"aria-label": n.label ?? k(r).common.loading,
|
|
38
38
|
"aria-valuemin": "0",
|
|
39
39
|
"aria-valuemax": "100",
|
|
40
40
|
"aria-valuenow": l.value,
|
|
41
41
|
"aria-valuetext": `${Math.round(l.value)} %`
|
|
42
|
-
}), [(
|
|
42
|
+
}), [(C(), d("svg", {
|
|
43
43
|
class: y(s.value.ring()),
|
|
44
44
|
viewBox: "0 0 24 24",
|
|
45
45
|
"aria-hidden": "true"
|
|
@@ -70,51 +70,51 @@ var I = [
|
|
|
70
70
|
draggable: { type: Boolean }
|
|
71
71
|
},
|
|
72
72
|
setup(e) {
|
|
73
|
-
return (t, n) => (
|
|
73
|
+
return (t, n) => (C(), l(D(e.parts.Item), {
|
|
74
74
|
item: e.option,
|
|
75
75
|
class: y(e.classes.item),
|
|
76
76
|
"data-description": e.option.description ? "" : void 0,
|
|
77
77
|
draggable: e.draggable && !e.option.disabled ? "true" : void 0
|
|
78
78
|
}, {
|
|
79
79
|
default: j(() => [
|
|
80
|
-
e.checkbox ? (
|
|
80
|
+
e.checkbox ? (C(), l(D(e.parts.ItemContext), { key: 0 }, {
|
|
81
81
|
default: j((t) => [f("span", {
|
|
82
82
|
class: y(e.classes.check),
|
|
83
83
|
"data-state": t.selected ? "checked" : "unchecked",
|
|
84
84
|
"aria-hidden": "true"
|
|
85
|
-
}, [t.selected ? (
|
|
85
|
+
}, [t.selected ? (C(), l(k(M), {
|
|
86
86
|
key: 0,
|
|
87
87
|
class: y(e.classes.checkIcon)
|
|
88
88
|
}, null, 8, ["class"])) : u("", !0)], 10, z)]),
|
|
89
89
|
_: 1
|
|
90
90
|
})) : u("", !0),
|
|
91
|
-
t.$slots.item ? (
|
|
92
|
-
default: j((n) => [
|
|
91
|
+
t.$slots.item ? (C(), l(D(e.parts.ItemContext), { key: 1 }, {
|
|
92
|
+
default: j((n) => [E(t.$slots, "item", {
|
|
93
93
|
item: e.option.item,
|
|
94
94
|
selected: n.selected,
|
|
95
95
|
highlighted: n.highlighted,
|
|
96
96
|
disabled: n.disabled
|
|
97
97
|
})]),
|
|
98
98
|
_: 3
|
|
99
|
-
})) : (
|
|
99
|
+
})) : (C(), d(o, { key: 2 }, [e.option.icon ? (C(), l(D(e.option.icon), {
|
|
100
100
|
key: 0,
|
|
101
101
|
class: y(e.classes.icon),
|
|
102
102
|
"aria-hidden": "true"
|
|
103
|
-
}, null, 8, ["class"])) : u("", !0), e.option.description ? (
|
|
103
|
+
}, null, 8, ["class"])) : u("", !0), e.option.description ? (C(), d("span", {
|
|
104
104
|
key: 1,
|
|
105
105
|
class: y(e.classes.itemBody)
|
|
106
|
-
}, [(
|
|
107
|
-
default: j(() => [m(
|
|
106
|
+
}, [(C(), l(D(e.parts.ItemText), { class: y(e.classes.itemText) }, {
|
|
107
|
+
default: j(() => [m(O(e.option.label), 1)]),
|
|
108
108
|
_: 1
|
|
109
|
-
}, 8, ["class"])), f("span", { class: y(e.classes.itemDescription) },
|
|
109
|
+
}, 8, ["class"])), f("span", { class: y(e.classes.itemDescription) }, O(e.option.description), 3)], 2)) : (C(), l(D(e.parts.ItemText), {
|
|
110
110
|
key: 2,
|
|
111
111
|
class: y(e.classes.itemText)
|
|
112
112
|
}, {
|
|
113
|
-
default: j(() => [m(
|
|
113
|
+
default: j(() => [m(O(e.option.label), 1)]),
|
|
114
114
|
_: 1
|
|
115
115
|
}, 8, ["class"]))], 64)),
|
|
116
|
-
!e.checkbox && !e.noIndicator ? (
|
|
117
|
-
default: j(() => [h(
|
|
116
|
+
!e.checkbox && !e.noIndicator ? (C(), l(D(e.parts.ItemIndicator), { key: 3 }, {
|
|
117
|
+
default: j(() => [h(k(M), {
|
|
118
118
|
class: y(e.classes.itemIndicator),
|
|
119
119
|
"aria-hidden": "true"
|
|
120
120
|
}, null, 8, ["class"])]),
|
|
@@ -137,13 +137,13 @@ var I = [
|
|
|
137
137
|
},
|
|
138
138
|
emits: ["load"],
|
|
139
139
|
setup(e, { emit: t }) {
|
|
140
|
-
let n = e, r = t, i =
|
|
140
|
+
let n = e, r = t, i = w(null), a;
|
|
141
141
|
function o() {
|
|
142
142
|
a?.disconnect(), n.active && i.value && typeof IntersectionObserver < "u" && (a = new IntersectionObserver((e) => {
|
|
143
143
|
e.some((e) => e.isIntersecting) && r("load");
|
|
144
144
|
}), a.observe(i.value));
|
|
145
145
|
}
|
|
146
|
-
return
|
|
146
|
+
return S(o), A(() => [n.active, n.count], o), x(() => a?.disconnect()), (e, t) => (C(), d("div", {
|
|
147
147
|
ref_key: "element",
|
|
148
148
|
ref: i,
|
|
149
149
|
"aria-hidden": "true"
|
|
@@ -166,8 +166,8 @@ var I = [
|
|
|
166
166
|
emits: ["loadMore"],
|
|
167
167
|
setup(e, { emit: t }) {
|
|
168
168
|
let n = t;
|
|
169
|
-
return (t, r) => (
|
|
170
|
-
(
|
|
169
|
+
return (t, r) => (C(), d(o, null, [
|
|
170
|
+
(C(!0), d(o, null, T(e.groups, (n, r) => (C(), d(o, { key: n.label ?? `#${r}` }, [n.label === void 0 ? (C(!0), d(o, { key: 1 }, T(n.options, (n) => (C(), l(B, {
|
|
171
171
|
key: n.key,
|
|
172
172
|
parts: e.parts,
|
|
173
173
|
option: n,
|
|
@@ -177,7 +177,7 @@ var I = [
|
|
|
177
177
|
draggable: e.draggable
|
|
178
178
|
}, p({ _: 2 }, [t.$slots.item ? {
|
|
179
179
|
name: "item",
|
|
180
|
-
fn: j((e) => [
|
|
180
|
+
fn: j((e) => [E(t.$slots, "item", v({ ref_for: !0 }, e))]),
|
|
181
181
|
key: "0"
|
|
182
182
|
} : void 0]), 1032, [
|
|
183
183
|
"parts",
|
|
@@ -186,14 +186,14 @@ var I = [
|
|
|
186
186
|
"checkbox",
|
|
187
187
|
"no-indicator",
|
|
188
188
|
"draggable"
|
|
189
|
-
]))), 128)) : (
|
|
189
|
+
]))), 128)) : (C(), l(D(e.parts.ItemGroup), {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: y(e.classes.group)
|
|
192
192
|
}, {
|
|
193
|
-
default: j(() => [(
|
|
194
|
-
default: j(() => [m(
|
|
193
|
+
default: j(() => [(C(), l(D(e.parts.ItemGroupLabel), { class: y(e.classes.groupLabel) }, {
|
|
194
|
+
default: j(() => [m(O(n.label), 1)]),
|
|
195
195
|
_: 2
|
|
196
|
-
}, 1032, ["class"])), (
|
|
196
|
+
}, 1032, ["class"])), (C(!0), d(o, null, T(n.options, (n) => (C(), l(B, {
|
|
197
197
|
key: n.key,
|
|
198
198
|
parts: e.parts,
|
|
199
199
|
option: n,
|
|
@@ -203,7 +203,7 @@ var I = [
|
|
|
203
203
|
draggable: e.draggable
|
|
204
204
|
}, p({ _: 2 }, [t.$slots.item ? {
|
|
205
205
|
name: "item",
|
|
206
|
-
fn: j((e) => [
|
|
206
|
+
fn: j((e) => [E(t.$slots, "item", v({ ref_for: !0 }, e))]),
|
|
207
207
|
key: "0"
|
|
208
208
|
} : void 0]), 1032, [
|
|
209
209
|
"parts",
|
|
@@ -215,20 +215,20 @@ var I = [
|
|
|
215
215
|
]))), 128))]),
|
|
216
216
|
_: 2
|
|
217
217
|
}, 1032, ["class"]))], 64))), 128)),
|
|
218
|
-
e.emptyText !== void 0 && !e.loading && !e.groups.length ? (
|
|
218
|
+
e.emptyText !== void 0 && !e.loading && !e.groups.length ? (C(), d("div", {
|
|
219
219
|
key: 0,
|
|
220
220
|
role: "option",
|
|
221
221
|
"aria-disabled": "true",
|
|
222
222
|
class: y(e.classes.empty)
|
|
223
|
-
},
|
|
224
|
-
e.loading ? (
|
|
223
|
+
}, O(e.emptyText), 3)) : u("", !0),
|
|
224
|
+
e.loading ? (C(), d("div", {
|
|
225
225
|
key: 1,
|
|
226
226
|
class: y(e.classes.loading)
|
|
227
|
-
}, [h(
|
|
227
|
+
}, [h(k(N), {
|
|
228
228
|
class: y(e.classes.loadingIcon),
|
|
229
229
|
"aria-hidden": "true"
|
|
230
|
-
}, null, 8, ["class"]), m(" " +
|
|
231
|
-
e.hasMore ? (
|
|
230
|
+
}, null, 8, ["class"]), m(" " + O(e.loadingText), 1)], 2)) : u("", !0),
|
|
231
|
+
e.hasMore ? (C(), l(V, {
|
|
232
232
|
key: 2,
|
|
233
233
|
class: y(e.classes.sentinel),
|
|
234
234
|
active: !e.loading,
|
|
@@ -287,26 +287,32 @@ var I = [
|
|
|
287
287
|
minSearchLength: {},
|
|
288
288
|
pageSize: {},
|
|
289
289
|
standalone: { type: Boolean },
|
|
290
|
+
open: {
|
|
291
|
+
type: Boolean,
|
|
292
|
+
default: void 0
|
|
293
|
+
},
|
|
294
|
+
stopKeyPropagation: { type: Boolean },
|
|
290
295
|
id: {},
|
|
291
296
|
classes: {}
|
|
292
297
|
},
|
|
293
298
|
emits: [
|
|
294
299
|
"update:modelValue",
|
|
295
300
|
"filterChange",
|
|
296
|
-
"loadMore"
|
|
301
|
+
"loadMore",
|
|
302
|
+
"update:open"
|
|
297
303
|
],
|
|
298
|
-
setup(g, { emit:
|
|
299
|
-
let
|
|
304
|
+
setup(g, { emit: x }) {
|
|
305
|
+
let T = e(), M = g, P = t("select", oe, () => M.classes), I = x, L = te(), R = c(() => n(L)), z = c(() => P({
|
|
300
306
|
size: M.size,
|
|
301
307
|
clearable: M.clearable
|
|
302
|
-
})), B =
|
|
308
|
+
})), B = T.select, V = c(() => ({
|
|
303
309
|
itemValue: M.itemValue,
|
|
304
310
|
itemLabel: M.itemLabel,
|
|
305
311
|
itemDisabled: M.itemDisabled,
|
|
306
312
|
itemGroup: M.itemGroup,
|
|
307
313
|
itemKeywords: M.itemKeywords,
|
|
308
314
|
valueKey: M.valueKey
|
|
309
|
-
})), U =
|
|
315
|
+
})), U = w(""), W = r({
|
|
310
316
|
items: () => M.items,
|
|
311
317
|
source: () => M.dataSource,
|
|
312
318
|
accessors: () => V.value,
|
|
@@ -324,7 +330,7 @@ var I = [
|
|
|
324
330
|
ready: () => !M.dataSource && !M.loading && M.items.length > 0
|
|
325
331
|
}
|
|
326
332
|
});
|
|
327
|
-
|
|
333
|
+
S(() => W.resolve(Y.value, q.value)), A(Y, (e) => W.resolve(e, q.value));
|
|
328
334
|
let Z = c(() => M.loading || W.loading.value), Q = c(() => M.hasMore || W.hasMore.value);
|
|
329
335
|
function pe() {
|
|
330
336
|
M.dataSource ? W.loadMore() : I("loadMore");
|
|
@@ -334,7 +340,7 @@ var I = [
|
|
|
334
340
|
itemToString: (e) => e.label,
|
|
335
341
|
itemToValue: (e) => e.key,
|
|
336
342
|
isItemDisabled: (e) => e.disabled
|
|
337
|
-
})), he = ne(), ge = c(() => M.emptyText ?? W.emptyText.value ?? (U.value ?
|
|
343
|
+
})), he = ne(), ge = c(() => M.emptyText ?? W.emptyText.value ?? (U.value ? T.common.noResults : T.common.empty)), _e = c(() => ({
|
|
338
344
|
item: z.value.item(),
|
|
339
345
|
itemText: z.value.itemText(),
|
|
340
346
|
icon: z.value.icon(),
|
|
@@ -352,7 +358,7 @@ var I = [
|
|
|
352
358
|
X([]), e.focus();
|
|
353
359
|
}
|
|
354
360
|
function ye(e) {
|
|
355
|
-
M.clearable && J.value.length && (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), X([]));
|
|
361
|
+
M.stopKeyPropagation && e.key === "Enter" && e.stopPropagation(), M.clearable && J.value.length && (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), X([]));
|
|
356
362
|
}
|
|
357
363
|
function be(e, t) {
|
|
358
364
|
U.value = t.target.value, I("filterChange", U.value), M.dataSource && W.search(U.value), !(M.manualFilter || M.dataSource) && ee(() => {
|
|
@@ -364,53 +370,61 @@ var I = [
|
|
|
364
370
|
(e.key === " " || e.key === "Home" || e.key === "End") && e.stopPropagation();
|
|
365
371
|
}
|
|
366
372
|
function Se(e) {
|
|
367
|
-
|
|
373
|
+
M.stopKeyPropagation && [
|
|
374
|
+
"Enter",
|
|
375
|
+
"Escape",
|
|
376
|
+
"Tab"
|
|
377
|
+
].includes(e.key) && e.stopPropagation();
|
|
378
|
+
}
|
|
379
|
+
function Ce(e) {
|
|
380
|
+
I("update:open", e), e && W.open(), !e && U.value && (U.value = "", I("filterChange", ""), M.dataSource && W.search(""));
|
|
368
381
|
}
|
|
369
|
-
let
|
|
382
|
+
let we = (e) => e.highlightedItem ? e.getItemProps({ item: e.highlightedItem }).id : void 0, Te = {
|
|
370
383
|
sameWidth: !0,
|
|
371
384
|
gutter: 4
|
|
372
|
-
},
|
|
373
|
-
label:
|
|
374
|
-
hiddenSelect:
|
|
385
|
+
}, Ee = se(), De = c(() => ae(M.id, "trigger", {
|
|
386
|
+
label: Ee?.value.ids.label,
|
|
387
|
+
hiddenSelect: Ee?.value.ids.control
|
|
375
388
|
}, M.standalone));
|
|
376
|
-
return (e, t) => (
|
|
389
|
+
return (e, t) => (C(), l(k(F).Root, v({
|
|
377
390
|
class: z.value.base({ class: R.value.className }),
|
|
378
391
|
style: R.value.style,
|
|
379
392
|
collection: me.value,
|
|
380
|
-
"model-value":
|
|
393
|
+
"model-value": k(Y),
|
|
381
394
|
disabled: g.disabled,
|
|
382
395
|
invalid: g.invalid,
|
|
383
396
|
required: g.required,
|
|
384
397
|
name: g.name,
|
|
385
|
-
positioning:
|
|
386
|
-
composite: !g.filter
|
|
387
|
-
|
|
398
|
+
positioning: Te,
|
|
399
|
+
composite: !g.filter,
|
|
400
|
+
open: g.open
|
|
401
|
+
}, De.value, {
|
|
388
402
|
"lazy-mount": "",
|
|
389
403
|
"unmount-on-exit": "",
|
|
390
|
-
onValueChange: t[0] ||= (e) =>
|
|
391
|
-
onOpenChange: t[1] ||= (e) =>
|
|
404
|
+
onValueChange: t[0] ||= (e) => k(fe)(e.value, e.items),
|
|
405
|
+
onOpenChange: t[1] ||= (e) => Ce(e.open)
|
|
392
406
|
}), {
|
|
393
407
|
default: j(() => [
|
|
394
|
-
h(
|
|
395
|
-
default: j(() => [h(
|
|
408
|
+
h(k(F).Control, b(_(g.clearable ? { class: z.value.control() } : {})), {
|
|
409
|
+
default: j(() => [h(k(F).Trigger, v(R.value.rest, {
|
|
396
410
|
class: z.value.trigger(),
|
|
397
411
|
"aria-busy": g.loading || void 0,
|
|
398
412
|
onKeydown: ye
|
|
399
413
|
}), {
|
|
400
|
-
default: j(() => [f("span", { class: y(z.value.value()) }, [e.$slots.value && $.value ?
|
|
414
|
+
default: j(() => [f("span", { class: y(z.value.value()) }, [e.$slots.value && $.value ? E(e.$slots, "value", { item: $.value.item }, void 0, void 0, 0) : (C(), d(o, { key: 1 }, [$.value?.icon ? (C(), l(D($.value.icon), {
|
|
401
415
|
key: 0,
|
|
402
416
|
class: y(z.value.icon()),
|
|
403
417
|
"aria-hidden": "true"
|
|
404
|
-
}, null, 8, ["class"])) : u("", !0), h(
|
|
418
|
+
}, null, 8, ["class"])) : u("", !0), h(k(F).ValueText, { placeholder: g.placeholder ?? k(T).common.placeholder }, p({ _: 2 }, [$.value ? {
|
|
405
419
|
name: "default",
|
|
406
|
-
fn: j(() => [m(
|
|
420
|
+
fn: j(() => [m(O($.value.label), 1)]),
|
|
407
421
|
key: "0"
|
|
408
|
-
} : void 0]), 1032, ["placeholder"])], 64))], 2), h(
|
|
409
|
-
default: j(() => [g.loading ? (
|
|
422
|
+
} : void 0]), 1032, ["placeholder"])], 64))], 2), h(k(F).Indicator, { class: y(z.value.indicator()) }, {
|
|
423
|
+
default: j(() => [g.loading ? (C(), l(k(N), {
|
|
410
424
|
key: 0,
|
|
411
425
|
class: y(z.value.spinner()),
|
|
412
426
|
"aria-hidden": "true"
|
|
413
|
-
}, null, 8, ["class"])) : (
|
|
427
|
+
}, null, 8, ["class"])) : (C(), l(k(re), {
|
|
414
428
|
key: 1,
|
|
415
429
|
class: y(z.value.indicatorIcon()),
|
|
416
430
|
"aria-hidden": "true"
|
|
@@ -418,15 +432,15 @@ var I = [
|
|
|
418
432
|
_: 1
|
|
419
433
|
}, 8, ["class"])]),
|
|
420
434
|
_: 3
|
|
421
|
-
}, 16, ["class", "aria-busy"]), g.clearable ? (
|
|
422
|
-
default: j((e) => [$.value && !e.disabled ? (
|
|
435
|
+
}, 16, ["class", "aria-busy"]), g.clearable ? (C(), l(k(F).Context, { key: 0 }, {
|
|
436
|
+
default: j((e) => [$.value && !e.disabled ? (C(), d("button", {
|
|
423
437
|
key: 0,
|
|
424
438
|
type: "button",
|
|
425
439
|
tabindex: "-1",
|
|
426
440
|
class: y(z.value.clear()),
|
|
427
|
-
"aria-label":
|
|
441
|
+
"aria-label": k(B).clear,
|
|
428
442
|
onClick: (t) => ve(e)
|
|
429
|
-
}, [h(
|
|
443
|
+
}, [h(k(ie), {
|
|
430
444
|
class: y(z.value.clearIcon()),
|
|
431
445
|
"aria-hidden": "true"
|
|
432
446
|
}, null, 8, ["class"])], 10, le)) : u("", !0)]),
|
|
@@ -434,13 +448,14 @@ var I = [
|
|
|
434
448
|
})) : u("", !0)]),
|
|
435
449
|
_: 3
|
|
436
450
|
}, 16),
|
|
437
|
-
(
|
|
438
|
-
default: j(() => [h(
|
|
451
|
+
(C(), l(s, { to: "body" }, [h(k(F).Positioner, null, {
|
|
452
|
+
default: j(() => [h(k(F).Content, {
|
|
439
453
|
class: y(z.value.content()),
|
|
440
454
|
"aria-busy": Z.value || void 0,
|
|
441
|
-
"aria-label": g.filter ? R.value.rest["aria-label"] : void 0
|
|
455
|
+
"aria-label": g.filter ? R.value.rest["aria-label"] : void 0,
|
|
456
|
+
onKeydown: Se
|
|
442
457
|
}, {
|
|
443
|
-
default: j(() => [g.filter ? (
|
|
458
|
+
default: j(() => [g.filter ? (C(), d(o, { key: 0 }, [f("div", { class: y(z.value.header()) }, [h(k(F).Context, null, {
|
|
444
459
|
default: j((e) => [f("input", {
|
|
445
460
|
type: "text",
|
|
446
461
|
role: "combobox",
|
|
@@ -448,32 +463,32 @@ var I = [
|
|
|
448
463
|
"aria-autocomplete": "list",
|
|
449
464
|
"aria-expanded": "true",
|
|
450
465
|
"data-autofocus": "",
|
|
451
|
-
"aria-controls":
|
|
452
|
-
"aria-activedescendant":
|
|
453
|
-
"aria-label":
|
|
454
|
-
placeholder:
|
|
466
|
+
"aria-controls": k(he),
|
|
467
|
+
"aria-activedescendant": we(e),
|
|
468
|
+
"aria-label": k(B).filter,
|
|
469
|
+
placeholder: k(T).combobox.search,
|
|
455
470
|
value: U.value,
|
|
456
471
|
class: y(z.value.search()),
|
|
457
472
|
onInput: (t) => be(e, t),
|
|
458
473
|
onKeydown: xe
|
|
459
474
|
}, null, 42, ue)]),
|
|
460
475
|
_: 1
|
|
461
|
-
})], 2), h(
|
|
462
|
-
id:
|
|
476
|
+
})], 2), h(k(F).List, {
|
|
477
|
+
id: k(he),
|
|
463
478
|
class: y(z.value.list())
|
|
464
479
|
}, {
|
|
465
480
|
default: j(() => [h(H, {
|
|
466
|
-
parts:
|
|
467
|
-
groups:
|
|
481
|
+
parts: k(F),
|
|
482
|
+
groups: k(G),
|
|
468
483
|
classes: _e.value,
|
|
469
484
|
loading: Z.value,
|
|
470
|
-
"loading-text": g.loadingText ??
|
|
485
|
+
"loading-text": g.loadingText ?? k(T).common.loading,
|
|
471
486
|
"has-more": Q.value,
|
|
472
487
|
"empty-text": ge.value,
|
|
473
488
|
onLoadMore: pe
|
|
474
489
|
}, p({ _: 2 }, [e.$slots.item ? {
|
|
475
490
|
name: "item",
|
|
476
|
-
fn: j((t) => [
|
|
491
|
+
fn: j((t) => [E(e.$slots, "item", b(_(t)))]),
|
|
477
492
|
key: "0"
|
|
478
493
|
} : void 0]), 1032, [
|
|
479
494
|
"parts",
|
|
@@ -485,19 +500,19 @@ var I = [
|
|
|
485
500
|
"empty-text"
|
|
486
501
|
])]),
|
|
487
502
|
_: 3
|
|
488
|
-
}, 8, ["id", "class"])], 64)) : (
|
|
503
|
+
}, 8, ["id", "class"])], 64)) : (C(), l(H, {
|
|
489
504
|
key: 1,
|
|
490
|
-
parts:
|
|
491
|
-
groups:
|
|
505
|
+
parts: k(F),
|
|
506
|
+
groups: k(G),
|
|
492
507
|
classes: _e.value,
|
|
493
508
|
loading: Z.value,
|
|
494
|
-
"loading-text": g.loadingText ??
|
|
509
|
+
"loading-text": g.loadingText ?? k(T).common.loading,
|
|
495
510
|
"has-more": Q.value,
|
|
496
511
|
"empty-text": ge.value,
|
|
497
512
|
onLoadMore: pe
|
|
498
513
|
}, p({ _: 2 }, [e.$slots.item ? {
|
|
499
514
|
name: "item",
|
|
500
|
-
fn: j((t) => [
|
|
515
|
+
fn: j((t) => [E(e.$slots, "item", b(_(t)))]),
|
|
501
516
|
key: "0"
|
|
502
517
|
} : void 0]), 1032, [
|
|
503
518
|
"parts",
|
|
@@ -516,12 +531,12 @@ var I = [
|
|
|
516
531
|
])]),
|
|
517
532
|
_: 3
|
|
518
533
|
})])),
|
|
519
|
-
h(
|
|
520
|
-
g.dataSource ? (
|
|
534
|
+
h(k(F).HiddenSelect),
|
|
535
|
+
g.dataSource ? (C(), d("span", {
|
|
521
536
|
key: 0,
|
|
522
537
|
role: "status",
|
|
523
538
|
class: y(z.value.status())
|
|
524
|
-
},
|
|
539
|
+
}, O(k(W).announcement.value), 3)) : u("", !0)
|
|
525
540
|
]),
|
|
526
541
|
_: 3
|
|
527
542
|
}, 16, [
|
|
@@ -533,7 +548,8 @@ var I = [
|
|
|
533
548
|
"invalid",
|
|
534
549
|
"required",
|
|
535
550
|
"name",
|
|
536
|
-
"composite"
|
|
551
|
+
"composite",
|
|
552
|
+
"open"
|
|
537
553
|
]));
|
|
538
554
|
}
|
|
539
555
|
});
|