@wssto2/vue-core 0.4.16 → 0.4.18
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/{Activity-CVO3sJwy.js → Activity-DB9ABAMb.js} +3 -3
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js} +64 -63
- package/dist/{Changes-Bzvl3cEx.js → Changes-IIczcs6O.js} +2 -2
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CD5zZ29o.js → CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.js} +6 -6
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-ChS9ULwk.js → DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-BufoFwVQ.js → DateField.vue_vue_type_script_setup_true_lang-8mvjzRA-.js} +3 -3
- package/dist/{DeadLetters-DmwUtgf9.js → DeadLetters-Bq5YpnvT.js} +3 -3
- package/dist/{General-CUEjJBD4.js → General-DQruOZs2.js} +5 -5
- package/dist/{NewRolePage-Cyn-oV6r.js → NewRolePage-BcA8jBBQ.js} +3 -3
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a8kN3A7k.js → NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js} +1 -1
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js → Popover.vue_vue_type_script_setup_true_lang-BTOzgIQF.js} +12 -12
- package/dist/{ProfilePage-I74SQBFO.js → ProfilePage-BqdCzyax.js} +7 -7
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js → RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Da0M-hen.js → ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-Ce6wjptT.js → RoleEditor.vue_vue_type_script_setup_true_lang-DPpCuJWk.js} +2 -2
- package/dist/{RolePage-DWQP3qQl.js → RolePage-IES_ADt5.js} +6 -6
- package/dist/{RolesPage-BeEsHIQ2.js → RolesPage-D0K7tEL-.js} +3 -3
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js → SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D5Cnb4_O.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js} +2 -2
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DkbBJpYX.js +489 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-DoUo68xE.js → SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js} +1 -1
- package/dist/{Sessions-D8IXcb5M.js → Sessions-BfpiOhGs.js} +2 -2
- package/dist/{SettingsPage-DRQP2nrH.js → SettingsPage-BnEpURcU.js} +5 -5
- package/dist/{SignIn-CAZkovhb.js → SignIn-DrLE0gNr.js} +2 -2
- package/dist/{SignInPage-D-49oLY3.js → SignInPage-CRynZCU2.js} +2 -2
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CIv34nRn.js → SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js} +1 -1
- package/dist/{SignIns-BtNfgMLc.js → SignIns-BQ8tISWn.js} +2 -2
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js → TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js} +97 -90
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-pAdLPYXA.js → TimeField.vue_vue_type_script_setup_true_lang-BebAIPeL.js} +3 -3
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js → Timestamp.vue_vue_type_script_setup_true_lang-CU2Y5oYl.js} +1 -1
- package/dist/{UserRecord-BSbNuRFi.js → UserRecord-CqmPm4Fv.js} +7 -7
- package/dist/{UsersList-DPHxcaDm.js → UsersList-CHAray61.js} +8 -8
- package/dist/access/index.js +1 -1
- package/dist/app/index.js +1 -1
- package/dist/collection/index.js +3 -3
- package/dist/content/index.js +1 -1
- package/dist/{fieldMessages-DV6sESpn.js → fieldMessages-6HVzSDqG.js} +1 -1
- package/dist/form/ComboField.vue.d.ts +11 -8
- package/dist/form/CommandDialog.vue.d.ts +3 -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 +11 -8
- package/dist/form/SuggestionList.vue.d.ts +11 -6
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +981 -928
- 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/format/index.js +1 -1
- package/dist/format-D8X4zsx6.js +78 -0
- package/dist/identity/index.js +1 -1
- package/dist/{index-CWeNiBX6.js → index-91Lo0hJy.js} +4 -4
- package/dist/{index-Bq96L43f.js → index-sYamgVg7.js} +12 -12
- package/dist/{index-yKIOaisE.js → index-wlRejl73.js} +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/intlLocale.d.ts +2 -0
- package/dist/intlLocale-CeRU44qJ.js +4 -0
- package/dist/notifications/index.js +1 -1
- package/dist/overlay/index.js +1 -1
- package/dist/page/index.js +5 -5
- package/dist/phone/index.js +112 -111
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-D1cYQghV.js → rowLayout-BFz4Kdoy.js} +2 -2
- package/dist/shell/index.js +1 -1
- package/dist/{status-DzmySsWw.js → status-B_IMA25a.js} +1 -1
- package/dist/{suggestions-BxMm6MQA.js → suggestions-DHJFKB26.js} +50 -50
- package/dist/testing/index.js +1 -1
- package/dist/{useCommand-B-N6HJOz.js → useCommand-YN9EMb7s.js} +41 -38
- package/dist/{useTypedEntry-aTfPBAhw.js → useTypedEntry-C7k7Dyl-.js} +237 -236
- package/package.json +1 -1
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js +0 -465
- package/dist/format-B8mJm946.js +0 -77
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, computed as p, openBlock as y, createElementBlock as g, createVNode as l, unref as i, withCtx as s, createElementVNode as a, toDisplayString as r, createTextVNode as h } from "vue";
|
|
2
2
|
import { useI18n as b } from "vue-i18n";
|
|
3
|
-
import { _ as f } from "./DataTable.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as f } from "./DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js";
|
|
4
4
|
import { _ as v } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
5
5
|
const w = {
|
|
6
6
|
signed_in: { tone: "positive", byOther: !1 },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as g, ref as m, watch as p, openBlock as c, createElementBlock as v, createVNode as i, unref as e, withCtx as w, createBlock as x, createCommentVNode as y, createElementVNode as V, toDisplayString as $ } from "vue";
|
|
2
2
|
import { useI18n as N } from "vue-i18n";
|
|
3
|
-
import { P as S, i as b } from "./index-
|
|
3
|
+
import { P as S, i as b } from "./index-sYamgVg7.js";
|
|
4
4
|
import { u as k } from "./platform-q3cjODLx.js";
|
|
5
5
|
import { b as I } from "./routeResource-DlTsGTg_.js";
|
|
6
6
|
import { _ as R } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
7
7
|
import { u as C } from "./useLoad-M7V-AVwR.js";
|
|
8
8
|
import { _ as E } from "./PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js";
|
|
9
9
|
import { _ as B } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
|
|
10
|
-
import { _ as P } from "./SignInTable.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as P } from "./SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js";
|
|
11
11
|
import { _ as h } from "./ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js";
|
|
12
12
|
const U = {
|
|
13
13
|
class: "flex min-w-0 flex-col gap-group-gap",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as O, useTemplateRef as z, computed as
|
|
1
|
+
import { defineComponent as O, useTemplateRef as z, computed as v, watch as ee, nextTick as te, openBlock as a, createElementBlock as l, withModifiers as oe, normalizeStyle as se, unref as s, createElementVNode as f, toDisplayString as r, createCommentVNode as p, Fragment as F, renderList as ne, normalizeClass as B, createBlock as A, renderSlot as L, createTextVNode as P, useModel as ae, ref as ie, mergeProps as le, createSlots as re, withCtx as q, withDirectives as ce, vModelDynamic as de, mergeModels as K, mergeDefaults as ue } from "vue";
|
|
2
2
|
import { useI18n as G } from "vue-i18n";
|
|
3
3
|
import { b as pe } from "./controlSurface-t7OEFESJ.js";
|
|
4
4
|
import { a as me, c as fe, _ as he, f as ve, b as ge } from "./control-B_Nwtmag.js";
|
|
5
5
|
import { _ as ye } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
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-
|
|
7
|
+
import { l as U, m as be, u as ke, c as _e } from "./suggestions-DHJFKB26.js";
|
|
8
8
|
const we = ["id", "aria-busy"], $e = { class: "min-h-0 flex-1 overflow-y-auto p-1.5" }, Me = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "px-2.5 pb-1 pt-1.5 text-caption font-semibold uppercase text-content-disabled",
|
|
@@ -42,67 +42,74 @@ const we = ["id", "aria-busy"], $e = { class: "min-h-0 flex-1 overflow-y-auto p-
|
|
|
42
42
|
status: {},
|
|
43
43
|
recent: { type: Boolean },
|
|
44
44
|
emptyMessage: { type: Boolean },
|
|
45
|
-
hint: {}
|
|
45
|
+
hint: { default: void 0 },
|
|
46
|
+
selected: { default: null }
|
|
46
47
|
},
|
|
47
48
|
emits: ["pick", "hover"],
|
|
48
|
-
setup(
|
|
49
|
-
const o =
|
|
49
|
+
setup(_, { emit: S }) {
|
|
50
|
+
const o = _, t = S, { t: c } = G(), x = z("panel"), b = v(() => U(o.open, o.items.length, o.status, o.emptyMessage)), k = v(() => o.status === "loading"), w = (u) => u, g = (u) => be(u.label, o.query), { style: C } = xe(x, {
|
|
50
51
|
reference: () => o.anchor,
|
|
51
52
|
placement: () => "bottom-start",
|
|
52
53
|
offset: 4,
|
|
53
54
|
padding: 8,
|
|
54
|
-
fit: (
|
|
55
|
-
|
|
55
|
+
fit: (u, h) => {
|
|
56
|
+
u.style.width = `${o.anchor?.offsetWidth ?? 0}px`, u.style.maxHeight = `${Math.max(120, Math.min(320, h.height))}px`;
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
|
-
return ee(() => o.highlighted, () => void te(() =>
|
|
59
|
+
return ee(() => o.highlighted, () => void te(() => x.value?.querySelector("[aria-selected='true']")?.scrollIntoView?.({ block: "nearest" }))), (u, h) => b.value ? (a(), l("div", {
|
|
59
60
|
key: 0,
|
|
60
61
|
id: `${o.id}-list`,
|
|
61
62
|
ref_key: "panel",
|
|
62
|
-
ref:
|
|
63
|
+
ref: x,
|
|
63
64
|
role: "listbox",
|
|
64
|
-
"aria-busy":
|
|
65
|
-
style: se(s(
|
|
65
|
+
"aria-busy": k.value || void 0,
|
|
66
|
+
style: se(s(C)),
|
|
66
67
|
"data-test": "suggestion-list",
|
|
67
68
|
class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float",
|
|
68
|
-
onMousedown:
|
|
69
|
+
onMousedown: h[0] || (h[0] = oe(() => {
|
|
69
70
|
}, ["prevent"]))
|
|
70
71
|
}, [
|
|
71
|
-
|
|
72
|
-
o.recent ? (
|
|
73
|
-
o.items.length > 0 ? (
|
|
74
|
-
id: `${o.id}-option-${
|
|
75
|
-
key: String(
|
|
72
|
+
f("div", $e, [
|
|
73
|
+
o.recent ? (a(), l("p", Me, r(s(c)("core.form.suggestions.recent")), 1)) : p("", !0),
|
|
74
|
+
o.items.length > 0 ? (a(!0), l(F, { key: 1 }, ne(o.items, (i, n) => (a(), l("div", {
|
|
75
|
+
id: `${o.id}-option-${n}`,
|
|
76
|
+
key: String(i.value),
|
|
76
77
|
role: "option",
|
|
77
|
-
"aria-selected":
|
|
78
|
-
"aria-disabled":
|
|
78
|
+
"aria-selected": n === o.highlighted,
|
|
79
|
+
"aria-disabled": i.disabled || void 0,
|
|
79
80
|
"data-test": "suggestion-option",
|
|
80
|
-
class: B(["flex cursor-pointer items-center gap-2.5 rounded-control px-2.5 py-2", [
|
|
81
|
-
onMouseenter: (
|
|
82
|
-
onClick: (
|
|
81
|
+
class: B(["flex cursor-pointer items-center gap-2.5 rounded-control px-2.5 py-2", [n === o.highlighted ? "bg-tint-soft" : "hover:bg-fill", i.disabled ? "cursor-not-allowed opacity-45" : "", k.value ? "opacity-60" : ""]]),
|
|
82
|
+
onMouseenter: (d) => t("hover", n),
|
|
83
|
+
onClick: (d) => !i.disabled && t("pick", i)
|
|
83
84
|
}, [
|
|
84
|
-
o.recent ? (
|
|
85
|
+
o.recent ? (a(), A(s(ye), {
|
|
85
86
|
key: 0,
|
|
86
87
|
name: "history",
|
|
87
88
|
size: 16,
|
|
88
89
|
class: "shrink-0 text-content-disabled"
|
|
89
|
-
})) :
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
90
|
+
})) : p("", !0),
|
|
91
|
+
L(u.$slots, "option", {
|
|
92
|
+
option: w(i),
|
|
93
|
+
active: n === o.highlighted,
|
|
94
|
+
selected: o.selected === i.value
|
|
95
|
+
}, () => [
|
|
96
|
+
f("span", Be, [
|
|
97
|
+
f("span", Le, [
|
|
98
|
+
o.recent ? (a(), l(F, { key: 0 }, [
|
|
99
|
+
P(r(i.label), 1)
|
|
100
|
+
], 64)) : (a(), l(F, { key: 1 }, [
|
|
101
|
+
P(r(g(i).before), 1),
|
|
102
|
+
g(i).match ? (a(), l("strong", Se, r(g(i).match), 1)) : p("", !0),
|
|
103
|
+
P(r(g(i).after), 1)
|
|
104
|
+
], 64))
|
|
105
|
+
]),
|
|
106
|
+
i.description ? (a(), l("span", Ce, r(i.description), 1)) : p("", !0)
|
|
107
|
+
])
|
|
101
108
|
])
|
|
102
|
-
], 42, qe))), 128)) : o.status === "loading" ? (
|
|
109
|
+
], 42, qe))), 128)) : o.status === "loading" ? (a(), l("p", De, r(s(c)("core.form.select.loading")), 1)) : o.status === "failed" ? (a(), l("p", Ve, r(s(c)("core.form.select.failed")), 1)) : (a(), l("p", Te, r(s(c)("core.form.select.no_matches")), 1))
|
|
103
110
|
]),
|
|
104
|
-
o.hint && o.items.length > 0 ? (
|
|
105
|
-
], 44, we)) :
|
|
111
|
+
o.hint && o.items.length > 0 ? (a(), l("p", Ee, r(o.hint), 1)) : p("", !0)
|
|
112
|
+
], 44, we)) : p("", !0);
|
|
106
113
|
}
|
|
107
114
|
}), Pe = {
|
|
108
115
|
key: 0,
|
|
@@ -156,130 +163,130 @@ const we = ["id", "aria-busy"], $e = { class: "min-h-0 flex-1 overflow-y-auto p-
|
|
|
156
163
|
modelModifiers: {}
|
|
157
164
|
}),
|
|
158
165
|
emits: /* @__PURE__ */ K(["picked"], ["update:modelValue"]),
|
|
159
|
-
setup(
|
|
160
|
-
const t =
|
|
166
|
+
setup(_, { expose: S, emit: o }) {
|
|
167
|
+
const t = _, c = ae(_, "modelValue"), x = o, b = z("input"), k = z("anchor"), w = !!me(), g = fe("text", () => t.error ? "error" : t.disabled ? "locked" : "rest"), C = v(() => w ? pe(t.width) : "w-full"), { t: u } = G(), h = (e) => typeof e == "string" ? { value: e, label: e } : { value: e.text, label: e.text, ...e.detail !== void 0 ? { description: e.detail } : {} }, i = v(() => {
|
|
161
168
|
const e = t.suggestions;
|
|
162
169
|
if (e)
|
|
163
|
-
return typeof e == "function" ? async (
|
|
164
|
-
}),
|
|
165
|
-
source: () =>
|
|
170
|
+
return typeof e == "function" ? async (m, y) => (await e(m, y)).map(h) : e.map(h);
|
|
171
|
+
}), n = v(() => i.value !== void 0), d = ke({
|
|
172
|
+
source: () => i.value,
|
|
166
173
|
minLength: () => t.suggestionsMinLength,
|
|
167
174
|
debounce: () => t.suggestionsDebounce,
|
|
168
175
|
limit: () => t.suggestionsLimit,
|
|
169
176
|
listAllWhenEmpty: !1,
|
|
170
177
|
recents: () => t.recents
|
|
171
|
-
}), { items:
|
|
172
|
-
const e =
|
|
178
|
+
}), { items: D, open: V, status: N, highlighted: R, showingRecent: W } = d, H = ie(!0), T = () => {
|
|
179
|
+
const e = b.value;
|
|
173
180
|
H.value = !e || e.selectionStart === e.value.length && e.selectionEnd === e.value.length;
|
|
174
|
-
}, $ =
|
|
181
|
+
}, $ = v(() => n.value && V.value && !W.value && H.value && d.current.value ? _e(c.value, d.current.value.label) : ""), I = v(() => U(V.value, D.value.length, N.value, !1));
|
|
175
182
|
function j(e) {
|
|
176
|
-
|
|
183
|
+
T(), n.value && d.ask(e.target.value);
|
|
177
184
|
}
|
|
178
|
-
function
|
|
179
|
-
c.value = e.value, d.remember(e), d.close(),
|
|
185
|
+
function E(e) {
|
|
186
|
+
c.value = e.value, d.remember(e), d.close(), x("picked", { text: e.value, ...e.description !== void 0 ? { detail: e.description } : {} });
|
|
180
187
|
}
|
|
181
188
|
function J() {
|
|
182
|
-
|
|
189
|
+
n.value && c.value === "" && d.show("");
|
|
183
190
|
}
|
|
184
191
|
function Q() {
|
|
185
192
|
const e = d.current.value;
|
|
186
|
-
return !$.value || !e ? !1 : (
|
|
193
|
+
return !$.value || !e ? !1 : (E(e), !0);
|
|
187
194
|
}
|
|
188
195
|
const X = (e) => {
|
|
189
|
-
|
|
196
|
+
n.value && d.keydown(e, { pick: E, enterNeedsMove: !0, complete: Q });
|
|
190
197
|
};
|
|
191
|
-
return
|
|
198
|
+
return S({ focus: () => b.value?.focus() }), (e, m) => (a(), A(he, le(s(ve)(t), {
|
|
192
199
|
value: c.value,
|
|
193
200
|
prefix: t.prefix,
|
|
194
201
|
suffix: t.suffix,
|
|
195
202
|
"value-style": t.mono ? "mono" : void 0
|
|
196
203
|
}), re({
|
|
197
|
-
default: q(({ id:
|
|
198
|
-
|
|
204
|
+
default: q(({ id: y, describedby: Y, invalid: Z }) => [
|
|
205
|
+
f("div", {
|
|
199
206
|
ref_key: "anchor",
|
|
200
|
-
ref:
|
|
201
|
-
class: B(["flex items-center gap-1.5", [s(
|
|
207
|
+
ref: k,
|
|
208
|
+
class: B(["flex items-center gap-1.5", [s(g), C.value]])
|
|
202
209
|
}, [
|
|
203
|
-
t.prefix ? (
|
|
204
|
-
|
|
205
|
-
ce(
|
|
206
|
-
id:
|
|
210
|
+
t.prefix ? (a(), l("span", Pe, r(t.prefix), 1)) : p("", !0),
|
|
211
|
+
f("div", ze, [
|
|
212
|
+
ce(f("input", {
|
|
213
|
+
id: y,
|
|
207
214
|
ref_key: "input",
|
|
208
|
-
ref:
|
|
209
|
-
"onUpdate:modelValue":
|
|
215
|
+
ref: b,
|
|
216
|
+
"onUpdate:modelValue": m[0] || (m[0] = (M) => c.value = M),
|
|
210
217
|
type: t.type,
|
|
211
218
|
name: t.name,
|
|
212
219
|
placeholder: t.placeholder,
|
|
213
220
|
maxlength: t.maxLength,
|
|
214
|
-
autocomplete:
|
|
221
|
+
autocomplete: n.value ? "off" : t.autocomplete,
|
|
215
222
|
disabled: t.disabled,
|
|
216
223
|
required: t.required,
|
|
217
224
|
"aria-required": t.required || void 0,
|
|
218
225
|
"aria-invalid": Z || void 0,
|
|
219
226
|
"aria-describedby": Y,
|
|
220
|
-
role:
|
|
221
|
-
"aria-autocomplete":
|
|
222
|
-
"aria-expanded":
|
|
223
|
-
"aria-controls":
|
|
224
|
-
"aria-activedescendant":
|
|
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" : "",
|
|
227
|
+
role: n.value ? "combobox" : void 0,
|
|
228
|
+
"aria-autocomplete": n.value ? "both" : void 0,
|
|
229
|
+
"aria-expanded": n.value ? I.value : void 0,
|
|
230
|
+
"aria-controls": n.value ? `${y}-list` : void 0,
|
|
231
|
+
"aria-activedescendant": n.value && I.value && s(D).length > 0 ? `${y}-option-${s(R)}` : void 0,
|
|
232
|
+
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" : "", w && !n.value ? "compact:text-right" : ""]]),
|
|
226
233
|
onInput: j,
|
|
227
|
-
onKeyup:
|
|
228
|
-
onClick:
|
|
234
|
+
onKeyup: T,
|
|
235
|
+
onClick: T,
|
|
229
236
|
onKeydown: X,
|
|
230
237
|
onFocus: J,
|
|
231
|
-
onBlur:
|
|
238
|
+
onBlur: m[1] || (m[1] = (M) => s(d).close())
|
|
232
239
|
}, null, 42, Ae), [
|
|
233
240
|
[de, c.value]
|
|
234
241
|
]),
|
|
235
|
-
$.value ? (
|
|
242
|
+
$.value ? (a(), l("span", {
|
|
236
243
|
key: 0,
|
|
237
244
|
"aria-hidden": "true",
|
|
238
245
|
class: B(["pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-pre py-1 text-body", t.mono ? "font-mono" : ""]),
|
|
239
246
|
"data-test": "completion"
|
|
240
247
|
}, [
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
], 2)) :
|
|
248
|
+
f("span", Ne, r(c.value), 1),
|
|
249
|
+
f("span", Re, r($.value), 1)
|
|
250
|
+
], 2)) : p("", !0)
|
|
244
251
|
]),
|
|
245
|
-
t.suffix ? (
|
|
252
|
+
t.suffix ? (a(), l("span", We, r(t.suffix), 1)) : p("", !0)
|
|
246
253
|
], 2),
|
|
247
|
-
|
|
254
|
+
n.value ? (a(), A(Fe, {
|
|
248
255
|
key: 0,
|
|
249
|
-
id:
|
|
250
|
-
anchor:
|
|
251
|
-
open: s(
|
|
252
|
-
items: s(
|
|
256
|
+
id: y,
|
|
257
|
+
anchor: k.value,
|
|
258
|
+
open: s(V),
|
|
259
|
+
items: s(D),
|
|
253
260
|
highlighted: s(R),
|
|
254
261
|
query: c.value,
|
|
255
262
|
status: s(N),
|
|
256
263
|
recent: s(W),
|
|
257
264
|
"empty-message": !1,
|
|
258
|
-
hint: $.value ? s(
|
|
259
|
-
onPick:
|
|
260
|
-
onHover:
|
|
261
|
-
}, null, 8, ["id", "anchor", "open", "items", "highlighted", "query", "status", "recent", "hint"])) :
|
|
265
|
+
hint: $.value ? s(u)("core.form.suggestions.keys_complete") : s(u)("core.form.suggestions.keys_pick"),
|
|
266
|
+
onPick: E,
|
|
267
|
+
onHover: m[2] || (m[2] = (M) => s(d).highlight(M))
|
|
268
|
+
}, null, 8, ["id", "anchor", "open", "items", "highlighted", "query", "status", "recent", "hint"])) : p("", !0)
|
|
262
269
|
]),
|
|
263
270
|
_: 2
|
|
264
271
|
}, [
|
|
265
272
|
e.$slots.trailing ? {
|
|
266
273
|
name: "trailing",
|
|
267
274
|
fn: q(() => [
|
|
268
|
-
|
|
275
|
+
L(e.$slots, "trailing")
|
|
269
276
|
]),
|
|
270
277
|
key: "0"
|
|
271
278
|
} : void 0,
|
|
272
279
|
e.$slots.labelTrailing ? {
|
|
273
280
|
name: "labelTrailing",
|
|
274
281
|
fn: q(() => [
|
|
275
|
-
|
|
282
|
+
L(e.$slots, "labelTrailing")
|
|
276
283
|
]),
|
|
277
284
|
key: "1"
|
|
278
285
|
} : void 0,
|
|
279
286
|
e.$slots.readonly ? {
|
|
280
287
|
name: "readonly",
|
|
281
288
|
fn: q(() => [
|
|
282
|
-
|
|
289
|
+
L(e.$slots, "readonly")
|
|
283
290
|
]),
|
|
284
291
|
key: "2"
|
|
285
292
|
} : void 0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { computed as m, defineComponent as K, useModel as W, useTemplateRef as b, openBlock as d, createBlock as N, mergeProps as _, unref as o, createSlots as j, withCtx as u, createElementBlock as g, Fragment as P, createVNode as c, createTextVNode as G, toDisplayString as J, createCommentVNode as U, createElementVNode as h, normalizeClass as O, renderSlot as T, mergeModels as X, mergeDefaults as Y, nextTick as z } from "vue";
|
|
2
2
|
import { useI18n as M } from "vue-i18n";
|
|
3
3
|
import { _ as Z } from "./DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js";
|
|
4
|
-
import { u as ee } from "./format-
|
|
4
|
+
import { u as ee } from "./format-D8X4zsx6.js";
|
|
5
5
|
import { _ as te } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
6
|
import { u as oe } from "./mediaQuery-CygcXmFW.js";
|
|
7
|
-
import { _ as le } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as le } from "./Popover.vue_vue_type_script_setup_true_lang-BTOzgIQF.js";
|
|
8
8
|
import { c as ae, _ as re, f as se, b as ie } from "./control-B_Nwtmag.js";
|
|
9
|
-
import { d as ne, r as ue, t as F, p as me, u as de, a as ce, i as L, _ as pe, b as fe, c as ve } from "./useTypedEntry-
|
|
9
|
+
import { d as ne, r as ue, t as F, p as me, u as de, a as ce, i as L, _ as pe, b as fe, c as ve } from "./useTypedEntry-C7k7Dyl-.js";
|
|
10
10
|
function be(i) {
|
|
11
11
|
const { t: n } = M(), e = m(() => [n("core.form.time.words.now").toLowerCase(), "now"]);
|
|
12
12
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as p, computed as a, openBlock as n, createElementBlock as s, createVNode as v, unref as r, createTextVNode as _, toDisplayString as c } from "vue";
|
|
2
2
|
import { useI18n as f } from "vue-i18n";
|
|
3
|
-
import { u as x, t as y } from "./format-
|
|
3
|
+
import { u as x, t as y } from "./format-D8X4zsx6.js";
|
|
4
4
|
import { _ as T } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
5
5
|
const g = ["datetime"], k = {
|
|
6
6
|
key: 1,
|
|
@@ -3,23 +3,23 @@ import { useI18n as A } from "vue-i18n";
|
|
|
3
3
|
import { a as F } from "./neighbors-DVN_cADL.js";
|
|
4
4
|
import { _ as H } from "./Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
5
5
|
import { u as J } from "./describeError-B-NMa--w.js";
|
|
6
|
-
import { i as w, P as Q, p as W, f as X, M as Y, g as Z, d as ee } from "./index-
|
|
6
|
+
import { i as w, P as Q, p as W, f as X, M as Y, g as Z, d as ee } from "./index-sYamgVg7.js";
|
|
7
7
|
import { _ as se } from "./AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js";
|
|
8
8
|
import { t as k } from "./toast-CqSDTWRX.js";
|
|
9
|
-
import { _ as ae } from "./SectionNavigator.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as ae } from "./SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js";
|
|
10
10
|
import { u as E } from "./platform-q3cjODLx.js";
|
|
11
11
|
import { a as te } from "./routeResource-DlTsGTg_.js";
|
|
12
|
-
import { a as oe } from "./ResourcePage.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { a as oe } from "./ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js";
|
|
13
13
|
import { A as re } from "./access-DmAceEo5.js";
|
|
14
14
|
import { _ as ne } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
15
15
|
import { u as ie } from "./useLoad-M7V-AVwR.js";
|
|
16
16
|
import { _ as V } from "./IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js";
|
|
17
17
|
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js";
|
|
18
18
|
import { e as B } from "./control-B_Nwtmag.js";
|
|
19
|
-
import { u as z, _ as K } from "./useCommand-
|
|
20
|
-
import { u as U } from "./fieldMessages-
|
|
21
|
-
import { u as ce, s as le } from "./status-
|
|
22
|
-
import { _ as M } from "./TextField.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { u as z, _ as K } from "./useCommand-YN9EMb7s.js";
|
|
20
|
+
import { u as U } from "./fieldMessages-6HVzSDqG.js";
|
|
21
|
+
import { u as ce, s as le } from "./status-B_IMA25a.js";
|
|
22
|
+
import { _ as M } from "./TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js";
|
|
23
23
|
const ue = /* @__PURE__ */ R({
|
|
24
24
|
__name: "DeactivateDialog",
|
|
25
25
|
props: {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { defineComponent as U, openBlock as p, createBlock as C, unref as e, withCtx as c, createVNode as r, mergeProps as i, useTemplateRef as V, computed as q, createTextVNode as z, toDisplayString as $, createCommentVNode as A, createElementBlock as S, normalizeClass as N } from "vue";
|
|
2
2
|
import { useI18n as B } from "vue-i18n";
|
|
3
3
|
import { useRouter as M } from "vue-router";
|
|
4
|
-
import { u as P, _ as D } from "./CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { u as P, _ as D } from "./CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.js";
|
|
5
5
|
import { _ as I } from "./Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
6
|
-
import { u as F } from "./format-
|
|
6
|
+
import { u as F } from "./format-D8X4zsx6.js";
|
|
7
7
|
import { u as L } from "./platform-q3cjODLx.js";
|
|
8
8
|
import { _ as G } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
9
|
-
import { i as K, f as E, M as W } from "./index-
|
|
10
|
-
import { U as j, u as H, s as J } from "./status-
|
|
9
|
+
import { i as K, f as E, M as W } from "./index-sYamgVg7.js";
|
|
10
|
+
import { U as j, u as H, s as J } from "./status-B_IMA25a.js";
|
|
11
11
|
import { u as O } from "./environment-Dva-SG8D.js";
|
|
12
12
|
import { u as Q } from "./languages-BShG9LpE.js";
|
|
13
13
|
import { _ as X } from "./FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js";
|
|
14
|
-
import { _ as Y } from "./SelectField.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as d } from "./TextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { u as Z, _ as ee } from "./useCommand-
|
|
14
|
+
import { _ as Y } from "./SelectField.vue_vue_type_script_setup_true_lang-DkbBJpYX.js";
|
|
15
|
+
import { _ as d } from "./TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js";
|
|
16
|
+
import { u as Z, _ as ee } from "./useCommand-YN9EMb7s.js";
|
|
17
17
|
import { t as se } from "./toast-CqSDTWRX.js";
|
|
18
|
-
import { u as te } from "./fieldMessages-
|
|
18
|
+
import { u as te } from "./fieldMessages-6HVzSDqG.js";
|
|
19
19
|
const oe = /* @__PURE__ */ U({
|
|
20
20
|
__name: "NewUserDialog",
|
|
21
21
|
emits: ["created"],
|
package/dist/access/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as a, i as c, j as o, c as r, b as n, k as i, l as u, p as l, m as p, n as t, u as d, f as m } from "../index-
|
|
1
|
+
import { _ as a, i as c, j as o, c as r, b as n, k as i, l as u, p as l, m as p, n as t, u as d, f as m } from "../index-wlRejl73.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BindingRow,
|
|
4
4
|
c as PersonAccess,
|
package/dist/app/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { effectScope as P, watch as W, defineComponent as pe, openBlock as Me, c
|
|
|
5
5
|
import { useI18n as Ce, createI18n as _e } from "vue-i18n";
|
|
6
6
|
import { createRouter as Fe, isNavigationFailure as Ie } from "vue-router";
|
|
7
7
|
import { i as Te } from "../leaveGuard-Cc8yeLxM.js";
|
|
8
|
-
import { c as qe, i as De, f as Pe } from "../format-
|
|
8
|
+
import { c as qe, i as De, f as Pe } from "../format-D8X4zsx6.js";
|
|
9
9
|
import { coreMessages as oe, createMessageRuntime as We } from "../i18n/index.js";
|
|
10
10
|
import { i as Be, a as He } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
11
11
|
import { i as Ve, b as Ge } from "../bottomDock-BZEiOPYZ.js";
|
package/dist/collection/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { D as O, L as j, a as U, h as G, l as X, r as Z } from "../http-D_D9YbLH.js";
|
|
2
|
-
import { _ as H, a as J, u as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as H, a as J, u as K } from "../CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.js";
|
|
3
3
|
import { u as W, a as Y } from "../neighbors-DVN_cADL.js";
|
|
4
|
-
import { a as te, b as se } from "../rowLayout-
|
|
5
|
-
import { _ as ae } from "../DataTable.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as te, b as se } from "../rowLayout-BFz4Kdoy.js";
|
|
5
|
+
import { _ as ae } from "../DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js";
|
|
6
6
|
import { defineComponent as y, openBlock as c, createElementBlock as d, Fragment as h, renderList as v, createBlock as k, unref as f, withCtx as C, normalizeClass as m, createVNode as p, createCommentVNode as g, computed as w, toValue as E } from "vue";
|
|
7
7
|
import { _ } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
8
8
|
import { _ as S } from "../Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js";
|
package/dist/content/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as K, i as S } from "../Avatar.vue_vue_type_script_setup_true_lang-CF
|
|
|
2
2
|
import { defineComponent as o, openBlock as t, createElementBlock as l, createElementVNode as c, toDisplayString as u, createCommentVNode as d, normalizeClass as f, Fragment as _, renderList as g, createBlock as i, createSlots as x, withCtx as p, renderSlot as m, resolveDynamicComponent as y } from "vue";
|
|
3
3
|
import { _ as b } from "../KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
|
|
4
4
|
import { _ as F } from "../Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js";
|
|
5
|
-
import { _ as N } from "../Timestamp.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as N } from "../Timestamp.vue_vue_type_script_setup_true_lang-CU2Y5oYl.js";
|
|
6
6
|
const k = {
|
|
7
7
|
role: "separator",
|
|
8
8
|
class: "my-2 flex items-center gap-4"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useI18n as f } from "vue-i18n";
|
|
2
2
|
import { a as c } from "./error-CD7x0Jrz.js";
|
|
3
|
-
import { u as m } from "./format-
|
|
3
|
+
import { u as m } from "./format-D8X4zsx6.js";
|
|
4
4
|
import { u as l } from "./describeError-B-NMa--w.js";
|
|
5
5
|
function E() {
|
|
6
6
|
const { t: i, te: u } = f(), a = m(), d = l(), s = (e) => [`errors.${e}`, `core.errors.${e}`].find((t) => u(t));
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { type ControlWidth } from "../controls";
|
|
2
2
|
import { type FieldProps, type FieldSlots } from "./field";
|
|
3
|
-
import type { SelectOption } from "./options";
|
|
4
|
-
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
import type { OptionSlotScope, SelectOption } from "./options";
|
|
4
|
+
declare const _default: <Value extends string | number, Meta = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:modelValue"?: ((value: Value | null) => any) | undefined;
|
|
7
|
-
readonly onPicked?: ((option: SelectOption<Value>) => any) | undefined;
|
|
7
|
+
readonly onPicked?: ((option: SelectOption<Value, Meta>) => any) | undefined;
|
|
8
8
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue" | "onPicked"> & (FieldProps & {
|
|
9
9
|
/** A fixed list, filtered locally. */
|
|
10
|
-
options?: readonly SelectOption<Value>[];
|
|
10
|
+
options?: readonly SelectOption<Value, Meta>[];
|
|
11
11
|
/** Searches the server; the answer for the text typed. */
|
|
12
12
|
search?: (query: string, context: {
|
|
13
13
|
signal: AbortSignal;
|
|
14
|
-
}) => Promise<readonly SelectOption<Value>[]>;
|
|
14
|
+
}) => Promise<readonly SelectOption<Value, Meta>[]>;
|
|
15
15
|
/** The option of the current value when the caller already has it (a saved record's customer). */
|
|
16
|
-
selected?: SelectOption<Value> | null;
|
|
16
|
+
selected?: SelectOption<Value, Meta> | null;
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
/** The fewest characters before `search` is asked. */
|
|
19
19
|
minLength?: number;
|
|
@@ -31,8 +31,11 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
31
31
|
focus: () => void | undefined;
|
|
32
32
|
}>): void;
|
|
33
33
|
attrs: any;
|
|
34
|
-
slots: FieldSlots
|
|
35
|
-
|
|
34
|
+
slots: FieldSlots & {
|
|
35
|
+
/** Replaces what an option row says (an icon, a badge); the row, its keys and roles stay. */
|
|
36
|
+
option?: (scope: OptionSlotScope<Value, Meta>) => unknown;
|
|
37
|
+
};
|
|
38
|
+
emit: ((evt: "picked", option: SelectOption<Value, Meta>) => void) & ((evt: "update:modelValue", value: Value | null) => void);
|
|
36
39
|
}>) => import("vue").VNode & {
|
|
37
40
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
38
41
|
};
|
|
@@ -21,6 +21,8 @@ type __VLS_Props = {
|
|
|
21
21
|
subtitle?: string;
|
|
22
22
|
/** What the primary action says: exactly what it does ("Assign"). */
|
|
23
23
|
confirmLabel: string;
|
|
24
|
+
/** Disables the primary action while true (a proposal still loading). The inputs, Cancel and the leave guard work as before, and `run()` does nothing. */
|
|
25
|
+
confirmDisabled?: boolean;
|
|
24
26
|
/** What it says once done; by default "Saved". */
|
|
25
27
|
doneLabel?: string;
|
|
26
28
|
/** What it says while working; by default "Saving…". */
|
|
@@ -51,6 +53,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
51
53
|
subtitle: string;
|
|
52
54
|
fieldLabel: (field: string) => string;
|
|
53
55
|
doneLabel: string;
|
|
56
|
+
confirmDisabled: boolean;
|
|
54
57
|
busyLabel: string;
|
|
55
58
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
56
59
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type FieldProps, type FieldSlots } from "./field";
|
|
2
|
-
import type { SelectOption } from "./options";
|
|
2
|
+
import type { OptionSlotScope, SelectOption } from "./options";
|
|
3
3
|
import { type OptionsSource } from "./useOptions";
|
|
4
|
-
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
declare const _default: <Value extends string | number, Meta = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:modelValue"?: ((value: Value[]) => any) | undefined;
|
|
7
7
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & (FieldProps & {
|
|
8
|
-
options: OptionsSource<Value>;
|
|
8
|
+
options: OptionsSource<Value, Meta>;
|
|
9
9
|
/** The options of the current values when the caller already has them (a saved record's equipment): their labels show before the options arrive, or when they do not contain them. */
|
|
10
|
-
selected?: readonly SelectOption<Value>[];
|
|
10
|
+
selected?: readonly SelectOption<Value, Meta>[];
|
|
11
11
|
placeholder?: string;
|
|
12
12
|
searchFrom?: number;
|
|
13
13
|
} & {
|
|
@@ -15,7 +15,10 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
15
15
|
}) & Partial<{}>> & import("vue").PublicProps;
|
|
16
16
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
17
17
|
attrs: any;
|
|
18
|
-
slots: FieldSlots
|
|
18
|
+
slots: FieldSlots & {
|
|
19
|
+
/** Replaces what an option row says (an icon, a badge); the row, its check, keys and roles stay. */
|
|
20
|
+
option?: (scope: OptionSlotScope<Value, Meta>) => unknown;
|
|
21
|
+
};
|
|
19
22
|
emit: (evt: "update:modelValue", value: Value[]) => void;
|
|
20
23
|
}>) => import("vue").VNode & {
|
|
21
24
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type SelectOption } from "./options";
|
|
1
|
+
import { type OptionSlotScope, type SelectOption } from "./options";
|
|
2
2
|
import type { SuggestionStatus } from "./suggestions";
|
|
3
|
-
declare const _default: <Value extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
declare const _default: <Value extends string | number, Meta = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onSelect?: ((value: Value | null) => any) | undefined;
|
|
6
6
|
readonly onRetry?: (() => any) | undefined;
|
|
7
7
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect" | "onRetry"> & {
|
|
8
|
-
options: readonly SelectOption<Value>[];
|
|
8
|
+
options: readonly SelectOption<Value, Meta>[];
|
|
9
9
|
/** The chosen value, or the chosen values when `multiple`. */
|
|
10
10
|
modelValue?: Value | null | readonly Value[];
|
|
11
11
|
multiple?: boolean;
|
|
@@ -20,7 +20,10 @@ declare const _default: <Value extends string | number>(__VLS_props: NonNullable
|
|
|
20
20
|
} & Partial<{}>> & import("vue").PublicProps;
|
|
21
21
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
22
22
|
attrs: any;
|
|
23
|
-
slots: {
|
|
23
|
+
slots: {
|
|
24
|
+
/** Replaces what a row says (the dot, label and description): an icon, a badge. The row, its check, keys and roles stay. */
|
|
25
|
+
option?: (scope: OptionSlotScope<Value, Meta>) => unknown;
|
|
26
|
+
};
|
|
24
27
|
emit: ((evt: "select", value: Value | null) => void) & ((evt: "retry") => void);
|
|
25
28
|
}>) => import("vue").VNode & {
|
|
26
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|