@wssto2/vue-core 0.4.17 → 0.4.19
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/{ActionRow.vue_vue_type_script_setup_true_lang-DOjn7fqy.js → ActionRow.vue_vue_type_script_setup_true_lang-QPvYudWc.js} +1 -1
- package/dist/{Activity-DnFB6WXf.js → Activity-CLyG5Y9o.js} +4 -4
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CxU9aNRQ.js} +1 -1
- package/dist/{Changes-DMrQYv2e.js → Changes-xF1VMbqD.js} +3 -3
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CVnZzaBm.js → CollectionPage.vue_vue_type_script_setup_true_lang-nojILoAf.js} +6 -6
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js → DataTable.vue_vue_type_script_setup_true_lang-DPuH84I7.js} +1 -1
- package/dist/{DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js → DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js} +5 -5
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-BIXzNzYo.js → DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js} +3 -3
- package/dist/{DeadLetters-BF9PS4mA.js → DeadLetters-AbbNs69D.js} +2 -2
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js → FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js → FormView.vue_vue_type_script_setup_true_lang-Dbfg_jGh.js} +1 -1
- package/dist/{General-yInbmj6I.js → General-De4Q6Wfn.js} +6 -6
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js → Menu.vue_vue_type_script_setup_true_lang-DsFOeCVe.js} +1 -1
- package/dist/{NewRolePage-09C3P6fE.js → NewRolePage-QAv_XsT0.js} +3 -3
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js → NumberField.vue_vue_type_script_setup_true_lang-djJvP6Og.js} +1 -1
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js → Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js} +20 -20
- package/dist/{ProfilePage-CvV44C0m.js → ProfilePage-CjjKhkHX.js} +6 -6
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js → RecordHeader.vue_vue_type_script_setup_true_lang-szzWzdDu.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js → ResourcePage.vue_vue_type_script_setup_true_lang-BFaaFQSm.js} +2 -2
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-BqWoby16.js → RoleEditor.vue_vue_type_script_setup_true_lang-FLJk6Kb2.js} +7 -7
- package/dist/{RolePage-DuIFjSKH.js → RolePage-De7s2sYr.js} +7 -7
- package/dist/{RolesPage-BzqBqils.js → RolesPage-TXQKtK_J.js} +5 -5
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js → SectionList.vue_vue_type_script_setup_true_lang-BJnz2ROc.js} +2 -2
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js → SectionNavigator.vue_vue_type_script_setup_true_lang-BltrQnrQ.js} +2 -2
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BMBkEmxr.js → SegmentedField.vue_vue_type_script_setup_true_lang-Dg-_ZjgR.js} +1 -1
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js +493 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js → SessionList.vue_vue_type_script_setup_true_lang-CuxVe7rm.js} +2 -2
- package/dist/{Sessions-_qmODKw2.js → Sessions-BDLI0o-z.js} +2 -2
- package/dist/{SettingsPage-Bz48sO08.js → SettingsPage-Kzcqv91E.js} +7 -7
- package/dist/{SignIn-DJsTGQ79.js → SignIn-DKo46hNK.js} +4 -4
- package/dist/{SignInPage-Bb78MIDk.js → SignInPage-B2v3is80.js} +3 -3
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js → SignInTable.vue_vue_type_script_setup_true_lang-ByEAVfjv.js} +1 -1
- package/dist/{SignIns-yRjJrf47.js → SignIns-D-_a_S6O.js} +2 -2
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js → SwitchField.vue_vue_type_script_setup_true_lang-ALvJisiP.js} +1 -1
- package/dist/TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js +314 -0
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-4wC3c0BM.js → TextareaField.vue_vue_type_script_setup_true_lang-XZRHwx-n.js} +1 -1
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DrLtIexs.js → TimeField.vue_vue_type_script_setup_true_lang-BB7ZGpvP.js} +3 -3
- package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js → Tooltip.vue_vue_type_script_setup_true_lang-mErNPt8e.js} +1 -1
- package/dist/{UserRecord-4L0FrCty.js → UserRecord-BR70ai9q.js} +7 -7
- package/dist/{UsersList-ww_-FoAq.js → UsersList-BC9S6omH.js} +6 -6
- package/dist/access/index.js +1 -1
- package/dist/{anchored-Cj4--8dT.js → anchored-DpuUwf-9.js} +17 -15
- package/dist/collection/index.js +4 -4
- package/dist/{control-B_Nwtmag.js → control-B4SdblL6.js} +134 -118
- package/dist/controls/index.js +1 -1
- package/dist/form/ComboField.vue.d.ts +13 -8
- package/dist/form/Field.vue.d.ts +2 -0
- package/dist/form/MultiSelectField.vue.d.ts +8 -5
- package/dist/form/OptionList.vue.d.ts +7 -4
- package/dist/form/SelectField.vue.d.ts +13 -8
- package/dist/form/SuggestionList.vue.d.ts +11 -6
- package/dist/form/TextField.vue.d.ts +6 -2
- package/dist/form/index.d.ts +3 -1
- package/dist/form/index.js +1196 -1137
- package/dist/form/options.d.ts +18 -5
- package/dist/form/suggestions.d.ts +12 -12
- package/dist/form/useOptions.d.ts +12 -12
- package/dist/form/useRecordDialog.d.ts +47 -0
- package/dist/identity/index.js +1 -1
- package/dist/{index-C6vCe149.js → index-B9KqrN-F.js} +3 -3
- package/dist/{index-DW9gyWL1.js → index-BrqxylSS.js} +7 -7
- package/dist/{index-JjALCpwi.js → index-D8akxuKo.js} +12 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/anchored.d.ts +2 -0
- package/dist/overlay/index.js +3 -3
- package/dist/page/index.js +5 -5
- package/dist/phone/index.js +2 -2
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-BFz4Kdoy.js → rowLayout-D1vrdy0s.js} +2 -2
- package/dist/shell/index.js +2 -2
- package/dist/{status-Cz54-7z7.js → status-vMwum3Y9.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{suggestions-BxMm6MQA.js → suggestions-DHJFKB26.js} +50 -50
- package/package.json +1 -1
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js +0 -465
- package/dist/TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js +0 -292
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, useTemplateRef as z, computed as y, watch as ee, nextTick as te, openBlock as n, createElementBlock as i, withModifiers as oe, normalizeStyle as se, unref as s, createElementVNode as m, toDisplayString as r, createCommentVNode as u, Fragment as E, renderList as ne, normalizeClass as B, createBlock as A, createTextVNode as F, useModel as ae, ref as ie, mergeProps as le, createSlots as re, withCtx as q, withDirectives as ce, vModelDynamic as de, renderSlot as P, mergeModels as K, mergeDefaults as ue } from "vue";
|
|
2
|
-
import { useI18n as G } from "vue-i18n";
|
|
3
|
-
import { b as pe } from "./controlSurface-t7OEFESJ.js";
|
|
4
|
-
import { a as me, c as fe, _ as he, f as ve, b as ge } from "./control-B_Nwtmag.js";
|
|
5
|
-
import { _ as ye } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
|
-
import { u as xe } from "./anchored-Cj4--8dT.js";
|
|
7
|
-
import { l as U, m as be, u as ke, c as _e } from "./suggestions-BxMm6MQA.js";
|
|
8
|
-
const we = ["id", "aria-busy"], $e = { class: "min-h-0 flex-1 overflow-y-auto p-1.5" }, Me = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "px-2.5 pb-1 pt-1.5 text-caption font-semibold uppercase text-content-disabled",
|
|
11
|
-
role: "presentation"
|
|
12
|
-
}, qe = ["id", "aria-selected", "aria-disabled", "onMouseenter", "onClick"], Be = { class: "min-w-0 flex-1" }, Le = { class: "block truncate text-body text-content-strong" }, Se = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "font-semibold"
|
|
15
|
-
}, Ce = {
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "block truncate text-footnote text-content-muted"
|
|
18
|
-
}, De = {
|
|
19
|
-
key: 2,
|
|
20
|
-
class: "px-3 py-2 text-footnote text-content-muted",
|
|
21
|
-
role: "status"
|
|
22
|
-
}, Ve = {
|
|
23
|
-
key: 3,
|
|
24
|
-
class: "px-3 py-2 text-footnote text-content-destructive",
|
|
25
|
-
role: "alert"
|
|
26
|
-
}, Te = {
|
|
27
|
-
key: 4,
|
|
28
|
-
class: "px-3 py-2 text-footnote text-content-muted"
|
|
29
|
-
}, Ee = {
|
|
30
|
-
key: 0,
|
|
31
|
-
class: "mx-1.5 mb-1.5 mt-0.5 border-t border-border-separator px-2.5 pb-0.5 pt-2 text-caption text-content-muted compact:hidden",
|
|
32
|
-
"aria-hidden": "true"
|
|
33
|
-
}, Fe = /* @__PURE__ */ O({
|
|
34
|
-
__name: "SuggestionList",
|
|
35
|
-
props: {
|
|
36
|
-
id: {},
|
|
37
|
-
anchor: {},
|
|
38
|
-
open: { type: Boolean },
|
|
39
|
-
items: {},
|
|
40
|
-
highlighted: {},
|
|
41
|
-
query: {},
|
|
42
|
-
status: {},
|
|
43
|
-
recent: { type: Boolean },
|
|
44
|
-
emptyMessage: { type: Boolean },
|
|
45
|
-
hint: {}
|
|
46
|
-
},
|
|
47
|
-
emits: ["pick", "hover"],
|
|
48
|
-
setup(w, { emit: L }) {
|
|
49
|
-
const o = w, t = L, { t: c } = G(), b = z("panel"), k = y(() => U(o.open, o.items.length, o.status, o.emptyMessage)), _ = y(() => o.status === "loading"), f = (h) => be(h.label, o.query), { style: S } = xe(b, {
|
|
50
|
-
reference: () => o.anchor,
|
|
51
|
-
placement: () => "bottom-start",
|
|
52
|
-
offset: 4,
|
|
53
|
-
padding: 8,
|
|
54
|
-
fit: (h, v) => {
|
|
55
|
-
h.style.width = `${o.anchor?.offsetWidth ?? 0}px`, h.style.maxHeight = `${Math.max(120, Math.min(320, v.height))}px`;
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
return ee(() => o.highlighted, () => void te(() => b.value?.querySelector("[aria-selected='true']")?.scrollIntoView?.({ block: "nearest" }))), (h, v) => k.value ? (n(), i("div", {
|
|
59
|
-
key: 0,
|
|
60
|
-
id: `${o.id}-list`,
|
|
61
|
-
ref_key: "panel",
|
|
62
|
-
ref: b,
|
|
63
|
-
role: "listbox",
|
|
64
|
-
"aria-busy": _.value || void 0,
|
|
65
|
-
style: se(s(S)),
|
|
66
|
-
"data-test": "suggestion-list",
|
|
67
|
-
class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float",
|
|
68
|
-
onMousedown: v[0] || (v[0] = oe(() => {
|
|
69
|
-
}, ["prevent"]))
|
|
70
|
-
}, [
|
|
71
|
-
m("div", $e, [
|
|
72
|
-
o.recent ? (n(), i("p", Me, r(s(c)("core.form.suggestions.recent")), 1)) : u("", !0),
|
|
73
|
-
o.items.length > 0 ? (n(!0), i(E, { key: 1 }, ne(o.items, (a, g) => (n(), i("div", {
|
|
74
|
-
id: `${o.id}-option-${g}`,
|
|
75
|
-
key: String(a.value),
|
|
76
|
-
role: "option",
|
|
77
|
-
"aria-selected": g === o.highlighted,
|
|
78
|
-
"aria-disabled": a.disabled || void 0,
|
|
79
|
-
"data-test": "suggestion-option",
|
|
80
|
-
class: B(["flex cursor-pointer items-center gap-2.5 rounded-control px-2.5 py-2", [g === o.highlighted ? "bg-tint-soft" : "hover:bg-fill", a.disabled ? "cursor-not-allowed opacity-45" : "", _.value ? "opacity-60" : ""]]),
|
|
81
|
-
onMouseenter: (l) => t("hover", g),
|
|
82
|
-
onClick: (l) => !a.disabled && t("pick", a)
|
|
83
|
-
}, [
|
|
84
|
-
o.recent ? (n(), A(s(ye), {
|
|
85
|
-
key: 0,
|
|
86
|
-
name: "history",
|
|
87
|
-
size: 16,
|
|
88
|
-
class: "shrink-0 text-content-disabled"
|
|
89
|
-
})) : u("", !0),
|
|
90
|
-
m("span", Be, [
|
|
91
|
-
m("span", Le, [
|
|
92
|
-
o.recent ? (n(), i(E, { key: 0 }, [
|
|
93
|
-
F(r(a.label), 1)
|
|
94
|
-
], 64)) : (n(), i(E, { key: 1 }, [
|
|
95
|
-
F(r(f(a).before), 1),
|
|
96
|
-
f(a).match ? (n(), i("strong", Se, r(f(a).match), 1)) : u("", !0),
|
|
97
|
-
F(r(f(a).after), 1)
|
|
98
|
-
], 64))
|
|
99
|
-
]),
|
|
100
|
-
a.description ? (n(), i("span", Ce, r(a.description), 1)) : u("", !0)
|
|
101
|
-
])
|
|
102
|
-
], 42, qe))), 128)) : o.status === "loading" ? (n(), i("p", De, r(s(c)("core.form.select.loading")), 1)) : o.status === "failed" ? (n(), i("p", Ve, r(s(c)("core.form.select.failed")), 1)) : (n(), i("p", Te, r(s(c)("core.form.select.no_matches")), 1))
|
|
103
|
-
]),
|
|
104
|
-
o.hint && o.items.length > 0 ? (n(), i("p", Ee, r(o.hint), 1)) : u("", !0)
|
|
105
|
-
], 44, we)) : u("", !0);
|
|
106
|
-
}
|
|
107
|
-
}), Pe = {
|
|
108
|
-
key: 0,
|
|
109
|
-
class: "shrink-0 text-footnote text-content-muted"
|
|
110
|
-
}, ze = { class: "relative min-w-0 flex-1" }, Ae = ["id", "type", "name", "placeholder", "maxlength", "autocomplete", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby", "role", "aria-autocomplete", "aria-expanded", "aria-controls", "aria-activedescendant"], Ne = { class: "invisible" }, Re = { class: "text-content-disabled" }, We = {
|
|
111
|
-
key: 1,
|
|
112
|
-
class: "shrink-0 text-footnote text-content-muted"
|
|
113
|
-
}, Je = /* @__PURE__ */ O({
|
|
114
|
-
__name: "TextField",
|
|
115
|
-
props: /* @__PURE__ */ K(/* @__PURE__ */ ue({
|
|
116
|
-
label: {},
|
|
117
|
-
labelHidden: { type: Boolean },
|
|
118
|
-
hint: {},
|
|
119
|
-
error: {},
|
|
120
|
-
required: { type: Boolean },
|
|
121
|
-
editable: { type: Boolean },
|
|
122
|
-
disabled: { type: Boolean },
|
|
123
|
-
lockedReason: {},
|
|
124
|
-
presentation: {},
|
|
125
|
-
name: {},
|
|
126
|
-
type: {},
|
|
127
|
-
placeholder: {},
|
|
128
|
-
maxLength: {},
|
|
129
|
-
autocomplete: {},
|
|
130
|
-
mono: { type: Boolean },
|
|
131
|
-
prefix: {},
|
|
132
|
-
suffix: {},
|
|
133
|
-
width: {},
|
|
134
|
-
suggestions: { type: [Array, Function] },
|
|
135
|
-
suggestionsMinLength: {},
|
|
136
|
-
suggestionsDebounce: {},
|
|
137
|
-
suggestionsLimit: {},
|
|
138
|
-
recents: {}
|
|
139
|
-
}, {
|
|
140
|
-
...ge,
|
|
141
|
-
type: "text",
|
|
142
|
-
placeholder: void 0,
|
|
143
|
-
maxLength: void 0,
|
|
144
|
-
autocomplete: void 0,
|
|
145
|
-
mono: !1,
|
|
146
|
-
prefix: void 0,
|
|
147
|
-
suffix: void 0,
|
|
148
|
-
width: "md",
|
|
149
|
-
suggestions: void 0,
|
|
150
|
-
suggestionsMinLength: 2,
|
|
151
|
-
suggestionsDebounce: 300,
|
|
152
|
-
suggestionsLimit: 8,
|
|
153
|
-
recents: void 0
|
|
154
|
-
}), {
|
|
155
|
-
modelValue: { default: "" },
|
|
156
|
-
modelModifiers: {}
|
|
157
|
-
}),
|
|
158
|
-
emits: /* @__PURE__ */ K(["picked"], ["update:modelValue"]),
|
|
159
|
-
setup(w, { expose: L, emit: o }) {
|
|
160
|
-
const t = w, c = ae(w, "modelValue"), b = o, k = z("input"), _ = z("anchor"), f = !!me(), S = fe("text", () => t.error ? "error" : t.disabled ? "locked" : "rest"), h = y(() => f ? pe(t.width) : "w-full"), { t: v } = G(), a = (e) => typeof e == "string" ? { value: e, label: e } : { value: e.text, label: e.text, ...e.detail !== void 0 ? { description: e.detail } : {} }, g = y(() => {
|
|
161
|
-
const e = t.suggestions;
|
|
162
|
-
if (e)
|
|
163
|
-
return typeof e == "function" ? async (p, x) => (await e(p, x)).map(a) : e.map(a);
|
|
164
|
-
}), l = y(() => g.value !== void 0), d = ke({
|
|
165
|
-
source: () => g.value,
|
|
166
|
-
minLength: () => t.suggestionsMinLength,
|
|
167
|
-
debounce: () => t.suggestionsDebounce,
|
|
168
|
-
limit: () => t.suggestionsLimit,
|
|
169
|
-
listAllWhenEmpty: !1,
|
|
170
|
-
recents: () => t.recents
|
|
171
|
-
}), { items: C, open: D, status: N, highlighted: R, showingRecent: W } = d, H = ie(!0), V = () => {
|
|
172
|
-
const e = k.value;
|
|
173
|
-
H.value = !e || e.selectionStart === e.value.length && e.selectionEnd === e.value.length;
|
|
174
|
-
}, $ = y(() => l.value && D.value && !W.value && H.value && d.current.value ? _e(c.value, d.current.value.label) : ""), I = y(() => U(D.value, C.value.length, N.value, !1));
|
|
175
|
-
function j(e) {
|
|
176
|
-
V(), l.value && d.ask(e.target.value);
|
|
177
|
-
}
|
|
178
|
-
function T(e) {
|
|
179
|
-
c.value = e.value, d.remember(e), d.close(), b("picked", { text: e.value, ...e.description !== void 0 ? { detail: e.description } : {} });
|
|
180
|
-
}
|
|
181
|
-
function J() {
|
|
182
|
-
l.value && c.value === "" && d.show("");
|
|
183
|
-
}
|
|
184
|
-
function Q() {
|
|
185
|
-
const e = d.current.value;
|
|
186
|
-
return !$.value || !e ? !1 : (T(e), !0);
|
|
187
|
-
}
|
|
188
|
-
const X = (e) => {
|
|
189
|
-
l.value && d.keydown(e, { pick: T, enterNeedsMove: !0, complete: Q });
|
|
190
|
-
};
|
|
191
|
-
return L({ focus: () => k.value?.focus() }), (e, p) => (n(), A(he, le(s(ve)(t), {
|
|
192
|
-
value: c.value,
|
|
193
|
-
prefix: t.prefix,
|
|
194
|
-
suffix: t.suffix,
|
|
195
|
-
"value-style": t.mono ? "mono" : void 0
|
|
196
|
-
}), re({
|
|
197
|
-
default: q(({ id: x, describedby: Y, invalid: Z }) => [
|
|
198
|
-
m("div", {
|
|
199
|
-
ref_key: "anchor",
|
|
200
|
-
ref: _,
|
|
201
|
-
class: B(["flex items-center gap-1.5", [s(S), h.value]])
|
|
202
|
-
}, [
|
|
203
|
-
t.prefix ? (n(), i("span", Pe, r(t.prefix), 1)) : u("", !0),
|
|
204
|
-
m("div", ze, [
|
|
205
|
-
ce(m("input", {
|
|
206
|
-
id: x,
|
|
207
|
-
ref_key: "input",
|
|
208
|
-
ref: k,
|
|
209
|
-
"onUpdate:modelValue": p[0] || (p[0] = (M) => c.value = M),
|
|
210
|
-
type: t.type,
|
|
211
|
-
name: t.name,
|
|
212
|
-
placeholder: t.placeholder,
|
|
213
|
-
maxlength: t.maxLength,
|
|
214
|
-
autocomplete: l.value ? "off" : t.autocomplete,
|
|
215
|
-
disabled: t.disabled,
|
|
216
|
-
required: t.required,
|
|
217
|
-
"aria-required": t.required || void 0,
|
|
218
|
-
"aria-invalid": Z || void 0,
|
|
219
|
-
"aria-describedby": Y,
|
|
220
|
-
role: l.value ? "combobox" : void 0,
|
|
221
|
-
"aria-autocomplete": l.value ? "both" : void 0,
|
|
222
|
-
"aria-expanded": l.value ? I.value : void 0,
|
|
223
|
-
"aria-controls": l.value ? `${x}-list` : void 0,
|
|
224
|
-
"aria-activedescendant": l.value && I.value && s(C).length > 0 ? `${x}-option-${s(R)}` : void 0,
|
|
225
|
-
class: B(["block w-full min-w-0 border-0 bg-transparent px-0 py-1 text-body text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed", [t.mono ? "font-mono" : "", f && !l.value ? "compact:text-right" : ""]]),
|
|
226
|
-
onInput: j,
|
|
227
|
-
onKeyup: V,
|
|
228
|
-
onClick: V,
|
|
229
|
-
onKeydown: X,
|
|
230
|
-
onFocus: J,
|
|
231
|
-
onBlur: p[1] || (p[1] = (M) => s(d).close())
|
|
232
|
-
}, null, 42, Ae), [
|
|
233
|
-
[de, c.value]
|
|
234
|
-
]),
|
|
235
|
-
$.value ? (n(), i("span", {
|
|
236
|
-
key: 0,
|
|
237
|
-
"aria-hidden": "true",
|
|
238
|
-
class: B(["pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-pre py-1 text-body", t.mono ? "font-mono" : ""]),
|
|
239
|
-
"data-test": "completion"
|
|
240
|
-
}, [
|
|
241
|
-
m("span", Ne, r(c.value), 1),
|
|
242
|
-
m("span", Re, r($.value), 1)
|
|
243
|
-
], 2)) : u("", !0)
|
|
244
|
-
]),
|
|
245
|
-
t.suffix ? (n(), i("span", We, r(t.suffix), 1)) : u("", !0)
|
|
246
|
-
], 2),
|
|
247
|
-
l.value ? (n(), A(Fe, {
|
|
248
|
-
key: 0,
|
|
249
|
-
id: x,
|
|
250
|
-
anchor: _.value,
|
|
251
|
-
open: s(D),
|
|
252
|
-
items: s(C),
|
|
253
|
-
highlighted: s(R),
|
|
254
|
-
query: c.value,
|
|
255
|
-
status: s(N),
|
|
256
|
-
recent: s(W),
|
|
257
|
-
"empty-message": !1,
|
|
258
|
-
hint: $.value ? s(v)("core.form.suggestions.keys_complete") : s(v)("core.form.suggestions.keys_pick"),
|
|
259
|
-
onPick: T,
|
|
260
|
-
onHover: p[2] || (p[2] = (M) => s(d).highlight(M))
|
|
261
|
-
}, null, 8, ["id", "anchor", "open", "items", "highlighted", "query", "status", "recent", "hint"])) : u("", !0)
|
|
262
|
-
]),
|
|
263
|
-
_: 2
|
|
264
|
-
}, [
|
|
265
|
-
e.$slots.trailing ? {
|
|
266
|
-
name: "trailing",
|
|
267
|
-
fn: q(() => [
|
|
268
|
-
P(e.$slots, "trailing")
|
|
269
|
-
]),
|
|
270
|
-
key: "0"
|
|
271
|
-
} : void 0,
|
|
272
|
-
e.$slots.labelTrailing ? {
|
|
273
|
-
name: "labelTrailing",
|
|
274
|
-
fn: q(() => [
|
|
275
|
-
P(e.$slots, "labelTrailing")
|
|
276
|
-
]),
|
|
277
|
-
key: "1"
|
|
278
|
-
} : void 0,
|
|
279
|
-
e.$slots.readonly ? {
|
|
280
|
-
name: "readonly",
|
|
281
|
-
fn: q(() => [
|
|
282
|
-
P(e.$slots, "readonly")
|
|
283
|
-
]),
|
|
284
|
-
key: "2"
|
|
285
|
-
} : void 0
|
|
286
|
-
]), 1040, ["value", "prefix", "suffix", "value-style"]));
|
|
287
|
-
}
|
|
288
|
-
});
|
|
289
|
-
export {
|
|
290
|
-
Je as _,
|
|
291
|
-
Fe as a
|
|
292
|
-
};
|