@wssto2/vue-core 0.4.18 → 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-DB9ABAMb.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-IIczcs6O.js → Changes-xF1VMbqD.js} +3 -3
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.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-8mvjzRA-.js → DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js} +3 -3
- package/dist/{DeadLetters-Bq5YpnvT.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-DQruOZs2.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-BcA8jBBQ.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-BTOzgIQF.js → Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js} +8 -8
- package/dist/{ProfilePage-BqdCzyax.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-DPpCuJWk.js → RoleEditor.vue_vue_type_script_setup_true_lang-FLJk6Kb2.js} +7 -7
- package/dist/{RolePage-IES_ADt5.js → RolePage-De7s2sYr.js} +7 -7
- package/dist/{RolesPage-D0K7tEL-.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-BfpiOhGs.js → Sessions-BDLI0o-z.js} +2 -2
- package/dist/{SettingsPage-BnEpURcU.js → SettingsPage-Kzcqv91E.js} +7 -7
- package/dist/{SignIn-DrLE0gNr.js → SignIn-DKo46hNK.js} +4 -4
- package/dist/{SignInPage-CRynZCU2.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-BQ8tISWn.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-BebAIPeL.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-CqmPm4Fv.js → UserRecord-BR70ai9q.js} +7 -7
- package/dist/{UsersList-CHAray61.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 +2 -0
- package/dist/form/Field.vue.d.ts +2 -0
- package/dist/form/SelectField.vue.d.ts +2 -0
- package/dist/form/TextField.vue.d.ts +6 -2
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +964 -957
- package/dist/identity/index.js +1 -1
- package/dist/{index-91Lo0hJy.js → index-B9KqrN-F.js} +3 -3
- package/dist/{index-wlRejl73.js → index-BrqxylSS.js} +7 -7
- package/dist/{index-sYamgVg7.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-B_IMA25a.js → status-vMwum3Y9.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DkbBJpYX.js +0 -489
- package/dist/TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js +0 -299
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { defineComponent as K, useTemplateRef as N, computed as v, watch as ee, nextTick as te, openBlock as n, createElementBlock as l, withModifiers as oe, normalizeStyle as se, unref as a, createElementVNode as f, toDisplayString as r, createCommentVNode as p, Fragment as R, renderList as ne, normalizeClass as L, createBlock as P, renderSlot as x, createTextVNode as E, useModel as ae, ref as ie, mergeProps as le, createSlots as re, withCtx as w, withDirectives as de, vModelDynamic as ce, mergeModels as H, 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-B4SdblL6.js";
|
|
5
|
+
import { _ as ye } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
|
+
import { u as xe, N as be } from "./anchored-DpuUwf-9.js";
|
|
7
|
+
import { l as U, m as ke, u as _e, c as we } from "./suggestions-DHJFKB26.js";
|
|
8
|
+
const $e = ["id", "aria-busy"], Me = { class: "min-h-0 flex-1 overflow-y-auto p-1.5" }, qe = {
|
|
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
|
+
}, Be = ["id", "aria-selected", "aria-disabled", "onMouseenter", "onClick"], Le = { class: "min-w-0 flex-1" }, Se = { class: "block truncate text-body text-content-strong" }, Ce = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "font-semibold"
|
|
15
|
+
}, Ve = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "block truncate text-footnote text-content-muted"
|
|
18
|
+
}, We = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "px-3 py-2 text-footnote text-content-muted",
|
|
21
|
+
role: "status"
|
|
22
|
+
}, De = {
|
|
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
|
+
}, Re = {
|
|
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
|
+
}, Ee = /* @__PURE__ */ K({
|
|
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: { default: void 0 },
|
|
46
|
+
selected: { default: null }
|
|
47
|
+
},
|
|
48
|
+
emits: ["pick", "hover"],
|
|
49
|
+
setup($, { emit: S }) {
|
|
50
|
+
const o = $, t = S, { t: d } = G(), b = N("panel"), k = v(() => U(o.open, o.items.length, o.status, o.emptyMessage)), _ = v(() => o.status === "loading"), M = (u) => u, g = (u) => ke(u.label, o.query), { style: C } = xe(b, {
|
|
51
|
+
reference: () => o.anchor,
|
|
52
|
+
placement: () => "bottom-start",
|
|
53
|
+
offset: 4,
|
|
54
|
+
padding: 8,
|
|
55
|
+
fit: (u, h) => {
|
|
56
|
+
const s = window.innerWidth < be;
|
|
57
|
+
u.style.width = `${s ? window.innerWidth - 16 : o.anchor?.offsetWidth ?? 0}px`, u.style.minWidth = s ? "" : "min(20rem, calc(100vw - 16px))", u.style.maxHeight = `${Math.max(120, Math.min(320, h.height))}px`;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return ee(() => o.highlighted, () => void te(() => b.value?.querySelector("[aria-selected='true']")?.scrollIntoView?.({ block: "nearest" }))), (u, h) => k.value ? (n(), l("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
id: `${o.id}-list`,
|
|
63
|
+
ref_key: "panel",
|
|
64
|
+
ref: b,
|
|
65
|
+
role: "listbox",
|
|
66
|
+
"aria-busy": _.value || void 0,
|
|
67
|
+
style: se(a(C)),
|
|
68
|
+
"data-test": "suggestion-list",
|
|
69
|
+
class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float",
|
|
70
|
+
onMousedown: h[0] || (h[0] = oe(() => {
|
|
71
|
+
}, ["prevent"]))
|
|
72
|
+
}, [
|
|
73
|
+
f("div", Me, [
|
|
74
|
+
o.recent ? (n(), l("p", qe, r(a(d)("core.form.suggestions.recent")), 1)) : p("", !0),
|
|
75
|
+
o.items.length > 0 ? (n(!0), l(R, { key: 1 }, ne(o.items, (s, i) => (n(), l("div", {
|
|
76
|
+
id: `${o.id}-option-${i}`,
|
|
77
|
+
key: String(s.value),
|
|
78
|
+
role: "option",
|
|
79
|
+
"aria-selected": i === o.highlighted,
|
|
80
|
+
"aria-disabled": s.disabled || void 0,
|
|
81
|
+
"data-test": "suggestion-option",
|
|
82
|
+
class: L(["flex cursor-pointer items-center gap-2.5 rounded-control px-2.5 py-2", [i === o.highlighted ? "bg-tint-soft" : "hover:bg-fill", s.disabled ? "cursor-not-allowed opacity-45" : "", _.value ? "opacity-60" : ""]]),
|
|
83
|
+
onMouseenter: (c) => t("hover", i),
|
|
84
|
+
onClick: (c) => !s.disabled && t("pick", s)
|
|
85
|
+
}, [
|
|
86
|
+
o.recent ? (n(), P(a(ye), {
|
|
87
|
+
key: 0,
|
|
88
|
+
name: "history",
|
|
89
|
+
size: 16,
|
|
90
|
+
class: "shrink-0 text-content-disabled"
|
|
91
|
+
})) : p("", !0),
|
|
92
|
+
x(u.$slots, "option", {
|
|
93
|
+
option: M(s),
|
|
94
|
+
active: i === o.highlighted,
|
|
95
|
+
selected: o.selected === s.value
|
|
96
|
+
}, () => [
|
|
97
|
+
f("span", Le, [
|
|
98
|
+
f("span", Se, [
|
|
99
|
+
o.recent ? (n(), l(R, { key: 0 }, [
|
|
100
|
+
E(r(s.label), 1)
|
|
101
|
+
], 64)) : (n(), l(R, { key: 1 }, [
|
|
102
|
+
E(r(g(s).before), 1),
|
|
103
|
+
g(s).match ? (n(), l("strong", Ce, r(g(s).match), 1)) : p("", !0),
|
|
104
|
+
E(r(g(s).after), 1)
|
|
105
|
+
], 64))
|
|
106
|
+
]),
|
|
107
|
+
s.description ? (n(), l("span", Ve, r(s.description), 1)) : p("", !0)
|
|
108
|
+
])
|
|
109
|
+
])
|
|
110
|
+
], 42, Be))), 128)) : o.status === "loading" ? (n(), l("p", We, r(a(d)("core.form.select.loading")), 1)) : o.status === "failed" ? (n(), l("p", De, r(a(d)("core.form.select.failed")), 1)) : (n(), l("p", Te, r(a(d)("core.form.select.no_matches")), 1))
|
|
111
|
+
]),
|
|
112
|
+
o.hint && o.items.length > 0 ? (n(), l("p", Re, r(o.hint), 1)) : p("", !0)
|
|
113
|
+
], 44, $e)) : p("", !0);
|
|
114
|
+
}
|
|
115
|
+
}), Ne = {
|
|
116
|
+
key: 0,
|
|
117
|
+
class: "flex shrink-0 items-center",
|
|
118
|
+
"data-test": "field-prefix"
|
|
119
|
+
}, Pe = {
|
|
120
|
+
key: 1,
|
|
121
|
+
class: "shrink-0 text-footnote text-content-muted"
|
|
122
|
+
}, Ae = { class: "relative min-w-0 flex-1" }, Fe = ["id", "type", "name", "placeholder", "maxlength", "autocomplete", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby", "role", "aria-autocomplete", "aria-expanded", "aria-controls", "aria-activedescendant"], ze = { class: "invisible" }, Ie = { class: "text-content-disabled" }, Oe = {
|
|
123
|
+
key: 2,
|
|
124
|
+
class: "shrink-0 text-footnote text-content-muted"
|
|
125
|
+
}, Xe = /* @__PURE__ */ K({
|
|
126
|
+
__name: "TextField",
|
|
127
|
+
props: /* @__PURE__ */ H(/* @__PURE__ */ ue({
|
|
128
|
+
label: {},
|
|
129
|
+
labelHidden: { type: Boolean },
|
|
130
|
+
hint: {},
|
|
131
|
+
error: {},
|
|
132
|
+
required: { type: Boolean },
|
|
133
|
+
editable: { type: Boolean },
|
|
134
|
+
disabled: { type: Boolean },
|
|
135
|
+
lockedReason: {},
|
|
136
|
+
presentation: {},
|
|
137
|
+
name: {},
|
|
138
|
+
type: {},
|
|
139
|
+
placeholder: {},
|
|
140
|
+
maxLength: {},
|
|
141
|
+
autocomplete: {},
|
|
142
|
+
mono: { type: Boolean },
|
|
143
|
+
prefix: {},
|
|
144
|
+
suffix: {},
|
|
145
|
+
width: {},
|
|
146
|
+
suggestions: { type: [Array, Function] },
|
|
147
|
+
suggestionsMinLength: {},
|
|
148
|
+
suggestionsDebounce: {},
|
|
149
|
+
suggestionsLimit: {},
|
|
150
|
+
recents: {}
|
|
151
|
+
}, {
|
|
152
|
+
...ge,
|
|
153
|
+
type: "text",
|
|
154
|
+
placeholder: void 0,
|
|
155
|
+
maxLength: void 0,
|
|
156
|
+
autocomplete: void 0,
|
|
157
|
+
mono: !1,
|
|
158
|
+
prefix: void 0,
|
|
159
|
+
suffix: void 0,
|
|
160
|
+
width: "md",
|
|
161
|
+
suggestions: void 0,
|
|
162
|
+
suggestionsMinLength: 2,
|
|
163
|
+
suggestionsDebounce: 300,
|
|
164
|
+
suggestionsLimit: 8,
|
|
165
|
+
recents: void 0
|
|
166
|
+
}), {
|
|
167
|
+
modelValue: { default: "" },
|
|
168
|
+
modelModifiers: {}
|
|
169
|
+
}),
|
|
170
|
+
emits: /* @__PURE__ */ H(["picked"], ["update:modelValue"]),
|
|
171
|
+
setup($, { expose: S, emit: o }) {
|
|
172
|
+
const t = $, d = ae($, "modelValue"), b = o, k = N("input"), _ = N("anchor"), M = !!me(), g = fe("text", () => t.error ? "error" : t.disabled ? "locked" : "rest"), C = v(() => M ? 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 } : {} }, s = v(() => {
|
|
173
|
+
const e = t.suggestions;
|
|
174
|
+
if (e)
|
|
175
|
+
return typeof e == "function" ? async (m, y) => (await e(m, y)).map(h) : e.map(h);
|
|
176
|
+
}), i = v(() => s.value !== void 0), c = _e({
|
|
177
|
+
source: () => s.value,
|
|
178
|
+
minLength: () => t.suggestionsMinLength,
|
|
179
|
+
debounce: () => t.suggestionsDebounce,
|
|
180
|
+
limit: () => t.suggestionsLimit,
|
|
181
|
+
listAllWhenEmpty: !1,
|
|
182
|
+
recents: () => t.recents
|
|
183
|
+
}), { items: V, open: W, status: A, highlighted: F, showingRecent: z } = c, I = ie(!0), D = () => {
|
|
184
|
+
const e = k.value;
|
|
185
|
+
I.value = !e || e.selectionStart === e.value.length && e.selectionEnd === e.value.length;
|
|
186
|
+
}, q = v(() => i.value && W.value && !z.value && I.value && c.current.value ? we(d.value, c.current.value.label) : ""), O = v(() => U(W.value, V.value.length, A.value, !1));
|
|
187
|
+
function j(e) {
|
|
188
|
+
D(), i.value && c.ask(e.target.value);
|
|
189
|
+
}
|
|
190
|
+
function T(e) {
|
|
191
|
+
d.value = e.value, c.remember(e), c.close(), b("picked", { text: e.value, ...e.description !== void 0 ? { detail: e.description } : {} });
|
|
192
|
+
}
|
|
193
|
+
function J() {
|
|
194
|
+
i.value && d.value === "" && c.show("");
|
|
195
|
+
}
|
|
196
|
+
function Q() {
|
|
197
|
+
const e = c.current.value;
|
|
198
|
+
return !q.value || !e ? !1 : (T(e), !0);
|
|
199
|
+
}
|
|
200
|
+
const X = (e) => {
|
|
201
|
+
i.value && c.keydown(e, { pick: T, enterNeedsMove: !0, complete: Q });
|
|
202
|
+
};
|
|
203
|
+
return S({ focus: () => k.value?.focus() }), (e, m) => (n(), P(he, le(a(ve)(t), {
|
|
204
|
+
value: d.value,
|
|
205
|
+
prefix: t.prefix,
|
|
206
|
+
suffix: t.suffix,
|
|
207
|
+
"value-style": t.mono ? "mono" : void 0
|
|
208
|
+
}), re({
|
|
209
|
+
default: w(({ id: y, describedby: Y, invalid: Z }) => [
|
|
210
|
+
f("div", {
|
|
211
|
+
ref_key: "anchor",
|
|
212
|
+
ref: _,
|
|
213
|
+
class: L(["flex items-center gap-1.5", [a(g), C.value]])
|
|
214
|
+
}, [
|
|
215
|
+
e.$slots.prefix ? (n(), l("span", Ne, [
|
|
216
|
+
x(e.$slots, "prefix")
|
|
217
|
+
])) : p("", !0),
|
|
218
|
+
t.prefix ? (n(), l("span", Pe, r(t.prefix), 1)) : p("", !0),
|
|
219
|
+
f("div", Ae, [
|
|
220
|
+
de(f("input", {
|
|
221
|
+
id: y,
|
|
222
|
+
ref_key: "input",
|
|
223
|
+
ref: k,
|
|
224
|
+
"onUpdate:modelValue": m[0] || (m[0] = (B) => d.value = B),
|
|
225
|
+
type: t.type,
|
|
226
|
+
name: t.name,
|
|
227
|
+
placeholder: t.placeholder,
|
|
228
|
+
maxlength: t.maxLength,
|
|
229
|
+
autocomplete: i.value ? "off" : t.autocomplete,
|
|
230
|
+
disabled: t.disabled,
|
|
231
|
+
required: t.required,
|
|
232
|
+
"aria-required": t.required || void 0,
|
|
233
|
+
"aria-invalid": Z || void 0,
|
|
234
|
+
"aria-describedby": Y,
|
|
235
|
+
role: i.value ? "combobox" : void 0,
|
|
236
|
+
"aria-autocomplete": i.value ? "both" : void 0,
|
|
237
|
+
"aria-expanded": i.value ? O.value : void 0,
|
|
238
|
+
"aria-controls": i.value ? `${y}-list` : void 0,
|
|
239
|
+
"aria-activedescendant": i.value && O.value && a(V).length > 0 ? `${y}-option-${a(F)}` : void 0,
|
|
240
|
+
class: L(["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" : "", M && !i.value ? "compact:text-right" : ""]]),
|
|
241
|
+
onInput: j,
|
|
242
|
+
onKeyup: D,
|
|
243
|
+
onClick: D,
|
|
244
|
+
onKeydown: X,
|
|
245
|
+
onFocus: J,
|
|
246
|
+
onBlur: m[1] || (m[1] = (B) => a(c).close())
|
|
247
|
+
}, null, 42, Fe), [
|
|
248
|
+
[ce, d.value]
|
|
249
|
+
]),
|
|
250
|
+
q.value ? (n(), l("span", {
|
|
251
|
+
key: 0,
|
|
252
|
+
"aria-hidden": "true",
|
|
253
|
+
class: L(["pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-pre py-1 text-body", t.mono ? "font-mono" : ""]),
|
|
254
|
+
"data-test": "completion"
|
|
255
|
+
}, [
|
|
256
|
+
f("span", ze, r(d.value), 1),
|
|
257
|
+
f("span", Ie, r(q.value), 1)
|
|
258
|
+
], 2)) : p("", !0)
|
|
259
|
+
]),
|
|
260
|
+
t.suffix ? (n(), l("span", Oe, r(t.suffix), 1)) : p("", !0)
|
|
261
|
+
], 2),
|
|
262
|
+
i.value ? (n(), P(Ee, {
|
|
263
|
+
key: 0,
|
|
264
|
+
id: y,
|
|
265
|
+
anchor: _.value,
|
|
266
|
+
open: a(W),
|
|
267
|
+
items: a(V),
|
|
268
|
+
highlighted: a(F),
|
|
269
|
+
query: d.value,
|
|
270
|
+
status: a(A),
|
|
271
|
+
recent: a(z),
|
|
272
|
+
"empty-message": !1,
|
|
273
|
+
hint: q.value ? a(u)("core.form.suggestions.keys_complete") : a(u)("core.form.suggestions.keys_pick"),
|
|
274
|
+
onPick: T,
|
|
275
|
+
onHover: m[2] || (m[2] = (B) => a(c).highlight(B))
|
|
276
|
+
}, null, 8, ["id", "anchor", "open", "items", "highlighted", "query", "status", "recent", "hint"])) : p("", !0)
|
|
277
|
+
]),
|
|
278
|
+
_: 2
|
|
279
|
+
}, [
|
|
280
|
+
e.$slots.prefix ? {
|
|
281
|
+
name: "prefix",
|
|
282
|
+
fn: w(() => [
|
|
283
|
+
x(e.$slots, "prefix")
|
|
284
|
+
]),
|
|
285
|
+
key: "0"
|
|
286
|
+
} : void 0,
|
|
287
|
+
e.$slots.trailing ? {
|
|
288
|
+
name: "trailing",
|
|
289
|
+
fn: w(() => [
|
|
290
|
+
x(e.$slots, "trailing")
|
|
291
|
+
]),
|
|
292
|
+
key: "1"
|
|
293
|
+
} : void 0,
|
|
294
|
+
e.$slots.labelTrailing ? {
|
|
295
|
+
name: "labelTrailing",
|
|
296
|
+
fn: w(() => [
|
|
297
|
+
x(e.$slots, "labelTrailing")
|
|
298
|
+
]),
|
|
299
|
+
key: "2"
|
|
300
|
+
} : void 0,
|
|
301
|
+
e.$slots.readonly ? {
|
|
302
|
+
name: "readonly",
|
|
303
|
+
fn: w(() => [
|
|
304
|
+
x(e.$slots, "readonly")
|
|
305
|
+
]),
|
|
306
|
+
key: "3"
|
|
307
|
+
} : void 0
|
|
308
|
+
]), 1040, ["value", "prefix", "suffix", "value-style"]));
|
|
309
|
+
}
|
|
310
|
+
});
|
|
311
|
+
export {
|
|
312
|
+
Xe as _,
|
|
313
|
+
Ee as a
|
|
314
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as q, useModel as C, useTemplateRef as T, computed as n, openBlock as c, createBlock as V, mergeProps as _, unref as m, createSlots as L, withCtx as t, createElementVNode as p, normalizeClass as f, withDirectives as M, vModelText as D, createElementBlock as S, toDisplayString as z, createCommentVNode as E, renderSlot as s, mergeModels as F, mergeDefaults as P } from "vue";
|
|
2
2
|
import { u as R } from "./mediaQuery-CygcXmFW.js";
|
|
3
|
-
import { a as N, u as j, c as G, _ as H, f as U, b as A } from "./control-
|
|
3
|
+
import { a as N, u as j, c as G, _ as H, f as U, b as A } from "./control-B4SdblL6.js";
|
|
4
4
|
const I = ["id", "name", "rows", "placeholder", "maxlength", "autocomplete", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], J = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "mt-1 self-end text-footnote tabular-nums text-content-muted"
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
import { _ as Z } from "./DateButton.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as Z } from "./DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
|
|
4
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-
|
|
8
|
-
import { c as ae, _ as re, f as se, b as ie } from "./control-
|
|
7
|
+
import { _ as le } from "./Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js";
|
|
8
|
+
import { c as ae, _ as re, f as se, b as ie } from "./control-B4SdblL6.js";
|
|
9
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"]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, useId as $, ref as a, watch as _, onUnmounted as z, openBlock as f, createElementBlock as k, Fragment as I, createElementVNode as b, renderSlot as x, createBlock as N, Teleport as P, mergeProps as B, unref as e, createTextVNode as C, toDisplayString as F, normalizeStyle as L, normalizeClass as V, createCommentVNode as A } from "vue";
|
|
2
2
|
import { I as K } from "./dialogStack-DZZg55w0.js";
|
|
3
|
-
import { u as M, a as i } from "./anchored-
|
|
3
|
+
import { u as M, a as i } from "./anchored-DpuUwf-9.js";
|
|
4
4
|
const j = /* @__PURE__ */ S({
|
|
5
5
|
__name: "Tooltip",
|
|
6
6
|
props: {
|
|
@@ -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-D8akxuKo.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-BltrQnrQ.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-BFaaFQSm.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
|
-
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { e as B } from "./control-
|
|
17
|
+
import { _ as T } from "./FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js";
|
|
18
|
+
import { e as B } from "./control-B4SdblL6.js";
|
|
19
19
|
import { u as z, _ as K } from "./useCommand-YN9EMb7s.js";
|
|
20
20
|
import { u as U } from "./fieldMessages-6HVzSDqG.js";
|
|
21
|
-
import { u as ce, s as le } from "./status-
|
|
22
|
-
import { _ as M } from "./TextField.vue_vue_type_script_setup_true_lang-
|
|
21
|
+
import { u as ce, s as le } from "./status-vMwum3Y9.js";
|
|
22
|
+
import { _ as M } from "./TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js";
|
|
23
23
|
const ue = /* @__PURE__ */ R({
|
|
24
24
|
__name: "DeactivateDialog",
|
|
25
25
|
props: {
|
|
@@ -1,18 +1,18 @@
|
|
|
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-nojILoAf.js";
|
|
5
5
|
import { _ as I } from "./Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
6
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-D8akxuKo.js";
|
|
10
|
+
import { U as j, u as H, s as J } from "./status-vMwum3Y9.js";
|
|
11
11
|
import { u as O } from "./environment-Dva-SG8D.js";
|
|
12
12
|
import { u as Q } from "./languages-BShG9LpE.js";
|
|
13
|
-
import { _ as X } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
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-
|
|
13
|
+
import { _ as X } from "./FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js";
|
|
14
|
+
import { _ as Y } from "./SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js";
|
|
15
|
+
import { _ as d } from "./TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js";
|
|
16
16
|
import { u as Z, _ as ee } from "./useCommand-YN9EMb7s.js";
|
|
17
17
|
import { t as se } from "./toast-CqSDTWRX.js";
|
|
18
18
|
import { u as te } from "./fieldMessages-6HVzSDqG.js";
|
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-BrqxylSS.js";
|
|
2
2
|
export {
|
|
3
3
|
a as BindingRow,
|
|
4
4
|
c as PersonAccess,
|
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
import { ref as d, watch as E, nextTick as V, onScopeDispose as L } from "vue";
|
|
2
|
-
import { autoUpdate as
|
|
2
|
+
import { autoUpdate as P, offset as $, flip as z, shift as R, size as S, arrow as b, computePosition as A } from "@floating-ui/dom";
|
|
3
|
+
const O = 640;
|
|
3
4
|
function T(r, e) {
|
|
4
5
|
const s = d({ position: "fixed", left: "0px", top: "0px" }), c = d({}), f = d(e.placement());
|
|
5
6
|
let l = null;
|
|
6
7
|
async function o() {
|
|
7
|
-
const
|
|
8
|
-
if (!
|
|
8
|
+
const n = e.reference(), t = r.value;
|
|
9
|
+
if (!n || !t) return;
|
|
9
10
|
const u = [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
$(e.offset),
|
|
12
|
+
z({ padding: e.padding }),
|
|
13
|
+
R({ padding: e.padding }),
|
|
14
|
+
S({
|
|
14
15
|
padding: e.padding,
|
|
15
16
|
apply({ availableWidth: g, availableHeight: h, elements: y }) {
|
|
16
17
|
e.fit?.(y.floating, { width: g, height: h });
|
|
17
18
|
}
|
|
18
19
|
})
|
|
19
20
|
];
|
|
20
|
-
e.arrow?.value && u.push(
|
|
21
|
-
const { x: w, y: v, placement: m, middlewareData: x } = await
|
|
21
|
+
e.arrow?.value && u.push(b({ element: e.arrow.value, padding: 12 }));
|
|
22
|
+
const { x: w, y: v, placement: m, middlewareData: x } = await A(n, t, {
|
|
22
23
|
placement: e.placement(),
|
|
23
24
|
strategy: "fixed",
|
|
24
25
|
middleware: u
|
|
25
26
|
});
|
|
26
27
|
s.value = { position: "fixed", left: `${w}px`, top: `${v}px` }, f.value = m;
|
|
27
|
-
const
|
|
28
|
-
|
|
28
|
+
const i = x.arrow;
|
|
29
|
+
i && (c.value = { left: i.x != null ? `${i.x}px` : "", top: i.y != null ? `${i.y}px` : "" });
|
|
29
30
|
}
|
|
30
31
|
function p() {
|
|
31
32
|
l?.(), l = null, window.visualViewport?.removeEventListener("resize", a), window.visualViewport?.removeEventListener("scroll", a);
|
|
32
33
|
}
|
|
33
34
|
const a = () => void o();
|
|
34
|
-
return E(r, (
|
|
35
|
+
return E(r, (n) => {
|
|
35
36
|
p();
|
|
36
37
|
const t = e.reference();
|
|
37
|
-
!
|
|
38
|
+
!n || !t || (t instanceof Element ? l = P(t, n, () => void o()) : V(o), window.visualViewport?.addEventListener("resize", a), window.visualViewport?.addEventListener("scroll", a));
|
|
38
39
|
}), L(p), { style: s, arrowStyle: c, resolvedPlacement: f, update: o };
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function W(r) {
|
|
41
42
|
const e = r.split("-")[0];
|
|
42
43
|
return { top: "bottom", bottom: "top", left: "right", right: "left" }[e];
|
|
43
44
|
}
|
|
44
45
|
export {
|
|
45
|
-
|
|
46
|
+
O as N,
|
|
47
|
+
W as a,
|
|
46
48
|
T as u
|
|
47
49
|
};
|
package/dist/collection/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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-nojILoAf.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-D1vrdy0s.js";
|
|
5
|
+
import { _ as ae } from "../DataTable.vue_vue_type_script_setup_true_lang-DPuH84I7.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
|
-
import { _ as S } from "../Tooltip.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as S } from "../Tooltip.vue_vue_type_script_setup_true_lang-mErNPt8e.js";
|
|
9
9
|
import { useI18n as T } from "vue-i18n";
|
|
10
10
|
function $(r = {}) {
|
|
11
11
|
const s = new Map(Object.entries(r).map(([t, e]) => [t, [...e]]));
|